angular-t9n
Version:
A translation tool for Angular i18n
3 lines (2 loc) • 6.08 kB
JavaScript
import{a as ce}from"./chunk-KZXKYXXO.js";import{a as J,b as K,c as pe,d as de}from"./chunk-JILWWMRM.js";import"./chunk-QA3CUK4L.js";import"./chunk-DOXYGUBM.js";import{a as y,b as H}from"./chunk-GKXKJW7N.js";import{c as q,d as V}from"./chunk-PPUOYFLG.js";import"./chunk-3RK6DDJD.js";import{g as B,j}from"./chunk-WVL5UBM6.js";import{a as Q,b as W,c as Y,d as Z,e as ee,f as te,g as ie,h as ne,i as oe,j as ae,k as re,l as le,m as me,n as _e}from"./chunk-F5XE4YAN.js";import{a as w,b as F}from"./chunk-YO72B5SH.js";import{a as b,c as v}from"./chunk-MFCYHQDO.js";import"./chunk-WUN63NIA.js";import{g as $}from"./chunk-6DDCRX73.js";import{b as L,e as z,l as U,q as X,r as k}from"./chunk-TOPF3UHX.js";import"./chunk-FK6IRHWX.js";import"./chunk-4NKRI2IB.js";import"./chunk-NRGBO6B5.js";import"./chunk-XUIN44YA.js";import{Ab as p,Bb as c,Hb as C,Jb as s,Kc as G,Ta as a,Xb as u,Yb as E,Zb as P,ac as S,cb as O,cc as N,da as T,dc as x,ec as D,fb as I,hb as l,wb as r,xb as n,yb as o,zb as _}from"./chunk-IRWV2DJQ.js";import"./chunk-4CLCTAJ7.js";var g=class extends de{constructor(t,i,m,d){super(i,m,d),this._sourceOrphansService=t}_fetchData(t,i,m){return this._sourceOrphansService.orphans({page:t.pageIndex,entriesPerPage:t.pageSize,sort:i,filter:m.value})}};var fe=()=>["id","description","meaning","source","action"],se=()=>["id-filter","description-filter","meaning-filter","source-filter","action"],ue=()=>[25,50,100,250],Me=(e,t)=>["./",e,t];function Ce(e,t){e&1&&(n(0,"th",22),C(1,0),o())}function Se(e,t){if(e&1&&(n(0,"td",23),u(1),o()),e&2){let i=t.$implicit;r("matTooltip",i.locations==null?null:i.locations.join(`
`))("matTooltipDisabled",!(i.locations!=null&&i.locations.length)),a(),P(" ",i.id," ")}}function Ee(e,t){e&1&&(n(0,"th",22),C(1,1),o())}function ge(e,t){if(e&1&&(n(0,"td",24),u(1),o()),e&2){let i=t.$implicit;a(),E(i.description)}}function Te(e,t){e&1&&(n(0,"th",22),C(1,2),o())}function Re(e,t){if(e&1&&(n(0,"td",24),u(1),o()),e&2){let i=t.$implicit;a(),E(i.meaning)}}function Ae(e,t){e&1&&(n(0,"th",22),C(1,3),o())}function he(e,t){if(e&1&&(n(0,"td",24),u(1),o()),e&2){let i=t.$implicit;a(),E(i.source)}}function Oe(e,t){e&1&&_(0,"th",25)}function Ie(e,t){if(e&1&&(n(0,"td",24)(1,"a",26),x(2,"async"),n(3,"mat-icon"),u(4,"edit"),o()()()),e&2){let i=t.$implicit,m=s();a(),r("routerLink",N(3,Me,i.id,D(2,1,m.queryParams)))}}function Pe(e,t){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),_(2,"input",27),o()()),e&2){let i=s();a(2),r("formControl",i.filter.get("id"))}}function Ne(e,t){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),_(2,"input",27),o()()),e&2){let i=s();a(2),r("formControl",i.filter.get("description"))}}function xe(e,t){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),_(2,"input",27),o()()),e&2){let i=s();a(2),r("formControl",i.filter.get("meaning"))}}function De(e,t){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),_(2,"input",27),o()()),e&2){let i=s();a(2),r("formControl",i.filter.get("source"))}}function Ge(e,t){e&1&&_(0,"tr",28)}function $e(e,t){e&1&&_(0,"tr",28)}function be(e,t){e&1&&_(0,"tr",29)}var _t=(()=>{let t=class t extends pe{constructor(){super(T(X).group({id:"",description:"",meaning:"",source:""})),this._sourceOrphansService=T(ce)}ngOnInit(){super.ngOnInit(),this.dataSource=new g(this._sourceOrphansService,this.paginator,this.sort,this.filter)}};t.\u0275fac=function(d){return new(d||t)},t.\u0275cmp=O({type:t,selectors:[["t9n-migrate"]],features:[I],decls:29,vars:13,consts:()=>{let m;m=$localize`:␟2f4e117036784972ec955ba44ea3459b6915579d␟1422267617953582850:Orphaned units`;let d;d=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`;let f;f=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`;let R;R=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`;let A;A=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`;let h;return h=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[d,f,R,A,[1,"mat-elevation-z8"],["mat-table","","matSort","","aria-label",m,3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","matTooltipClass","tooltip-linebreak",3,"matTooltip","matTooltipDisabled",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","meaning"],["matColumnDef","source"],["matColumnDef","action"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","id-filter"],["matColumnDef","description-filter"],["matColumnDef","meaning-filter"],["matColumnDef","source-filter"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"pageSize","pageIndex","pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell","","matTooltipClass","tooltip-linebreak",3,"matTooltip","matTooltipDisabled"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","","matTooltip",h,3,"routerLink"],["matInput","","placeholder","Filter",3,"formControl"],["mat-header-row",""],["mat-row",""]]},template:function(d,f){d&1&&(n(0,"div",4)(1,"table",5),p(2,6),l(3,Ce,2,0,"th",7)(4,Se,2,3,"td",8),c(),p(5,9),l(6,Ee,2,0,"th",7)(7,ge,2,1,"td",10),c(),p(8,11),l(9,Te,2,0,"th",7)(10,Re,2,1,"td",10),c(),p(11,12),l(12,Ae,2,0,"th",7)(13,he,2,1,"td",10),c(),p(14,13),l(15,Oe,1,0,"th",14)(16,Ie,5,6,"td",10),c(),p(17,15),l(18,Pe,3,1,"th",14),c(),p(19,16),l(20,Ne,3,1,"th",14),c(),p(21,17),l(22,xe,3,1,"th",14),c(),p(23,18),l(24,De,3,1,"th",14),c(),l(25,Ge,1,0,"tr",19)(26,$e,1,0,"tr",19)(27,be,1,0,"tr",20),o(),_(28,"mat-paginator",21),o()),d&2&&(a(),r("dataSource",f.dataSource),a(24),r("matHeaderRowDef",S(9,fe))("matHeaderRowDefSticky",!0),a(),r("matHeaderRowDef",S(10,se))("matHeaderRowDefSticky",!0),a(),r("matRowDefColumns",S(11,fe)),a(),r("pageSize",f.pageSize)("pageIndex",f.pageIndex)("pageSizeOptions",S(12,ue)))},dependencies:[_e,Z,te,ae,ie,ee,re,ne,oe,le,me,Y,Q,W,F,w,v,b,$,H,y,j,B,V,q,k,L,z,U,K,J,G],encapsulation:2,changeDetection:0});let e=t;return e})();export{_t as MigrateComponent};