angular-t9n
Version:
A translation tool for Angular i18n
3 lines (2 loc) • 6.02 kB
JavaScript
import{a as de}from"./chunk-5YNGG6ZH.js";import{a as K,b as Q,c as pe,d as fe}from"./chunk-N7P3G5O7.js";import"./chunk-G5LABWWD.js";import{a as H,b as w}from"./chunk-ZOA5KTCR.js";import{c as V,d as J}from"./chunk-IC7VJKW2.js";import{g as B,h as q}from"./chunk-CE7MWEFF.js";import{a as W,b as Y,c as Z,d as ee,e as te,f as ie,g as ne,h as oe,i as ae,j as re,k as le,l as me,m as _e,n as ce}from"./chunk-5X2CMPER.js";import{a as F,b as L}from"./chunk-2GFTPPRY.js";import{d as y,e as b}from"./chunk-3UMPV344.js";import{d as G,f as v,g as $}from"./chunk-JCOG3QZD.js";import{b as U,e as z,l as X,q as k,r as j}from"./chunk-IIDNLDIX.js";import"./chunk-SWXDJEZV.js";import"./chunk-IZB6ZOII.js";import"./chunk-OHHIBRCV.js";import{Db as n,Eb as o,Fb as c,Fc as D,Gb as p,Hb as d,Ob as C,Rb as f,Ya as r,Za as M,ac as s,bc as E,cc as I,eb as h,ec as S,gc as P,hc as N,ic as x,pb as O,sb as m,ub as l}from"./chunk-XN5ZPBP6.js";import"./chunk-4CLCTAJ7.js";var T=class extends fe{constructor(i,t,a,_){super(t,a,_),this._sourceOrphansService=i}_fetchData(i,t,a){return this._sourceOrphansService.orphans({page:i.pageIndex,entriesPerPage:i.pageSize,sort:t,filter:a.value})}};var se=()=>["id","description","meaning","source","action"],ue=()=>["id-filter","description-filter","meaning-filter","source-filter","action"],Me=()=>[25,50,100,250],Ce=(e,i)=>["./",e,i];function Se(e,i){e&1&&(n(0,"th",22),C(1,0),o())}function ge(e,i){if(e&1&&(n(0,"td",23),s(1),o()),e&2){let t=i.$implicit;l("matTooltip",t.locations==null?null:t.locations.join(`
`))("matTooltipDisabled",!(t.locations!=null&&t.locations.length)),r(),I(" ",t.id," ")}}function Ee(e,i){e&1&&(n(0,"th",22),C(1,1),o())}function Te(e,i){if(e&1&&(n(0,"td",24),s(1),o()),e&2){let t=i.$implicit;r(),E(t.description)}}function Re(e,i){e&1&&(n(0,"th",22),C(1,2),o())}function Ae(e,i){if(e&1&&(n(0,"td",24),s(1),o()),e&2){let t=i.$implicit;r(),E(t.meaning)}}function he(e,i){e&1&&(n(0,"th",22),C(1,3),o())}function Oe(e,i){if(e&1&&(n(0,"td",24),s(1),o()),e&2){let t=i.$implicit;r(),E(t.source)}}function Ie(e,i){e&1&&c(0,"th",25)}function Pe(e,i){if(e&1&&(n(0,"td",24)(1,"a",26),N(2,"async"),n(3,"mat-icon"),s(4,"edit"),o()()()),e&2){let t=i.$implicit,a=f();r(),l("routerLink",P(3,Ce,t.id,x(2,1,a.queryParams)))}}function Ne(e,i){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),c(2,"input",27),o()()),e&2){let t=f();r(2),l("formControl",t.filter.get("id"))}}function xe(e,i){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),c(2,"input",27),o()()),e&2){let t=f();r(2),l("formControl",t.filter.get("description"))}}function De(e,i){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),c(2,"input",27),o()()),e&2){let t=f();r(2),l("formControl",t.filter.get("meaning"))}}function Ge(e,i){if(e&1&&(n(0,"th",25)(1,"mat-form-field"),c(2,"input",27),o()()),e&2){let t=f();r(2),l("formControl",t.filter.get("source"))}}function ve(e,i){e&1&&c(0,"tr",28)}function $e(e,i){e&1&&c(0,"tr",28)}function ye(e,i){e&1&&c(0,"tr",29)}var ft=(()=>{class e extends pe{constructor(t,a,_,g){super(a,_,g.group({id:"",description:"",meaning:"",source:""})),this._sourceOrphansService=t}ngOnInit(){super.ngOnInit(),this.dataSource=new T(this._sourceOrphansService,this.paginator,this.sort,this.filter)}static{this.\u0275fac=function(a){return new(a||e)(M(de),M(G),M(v),M(k))}}static{this.\u0275cmp=h({type:e,selectors:[["t9n-migrate"]],features:[O],decls:29,vars:13,consts:()=>{let t;t=$localize`:␟2f4e117036784972ec955ba44ea3459b6915579d␟1422267617953582850:Orphaned units`;let a;a=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`;let _;_=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`;let g;g=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`;let R;R=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`;let A;return A=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[a,_,g,R,[1,"mat-elevation-z8"],["mat-table","","matSort","","aria-label",t,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",A,3,"routerLink"],["matInput","","placeholder","Filter",3,"formControl"],["mat-header-row",""],["mat-row",""]]},template:function(a,_){a&1&&(n(0,"div",4)(1,"table",5),p(2,6),m(3,Se,2,0,"th",7)(4,ge,2,3,"td",8),d(),p(5,9),m(6,Ee,2,0,"th",7)(7,Te,2,1,"td",10),d(),p(8,11),m(9,Re,2,0,"th",7)(10,Ae,2,1,"td",10),d(),p(11,12),m(12,he,2,0,"th",7)(13,Oe,2,1,"td",10),d(),p(14,13),m(15,Ie,1,0,"th",14)(16,Pe,5,6,"td",10),d(),p(17,15),m(18,Ne,3,1,"th",14),d(),p(19,16),m(20,xe,3,1,"th",14),d(),p(21,17),m(22,De,3,1,"th",14),d(),p(23,18),m(24,Ge,3,1,"th",14),d(),m(25,ve,1,0,"tr",19)(26,$e,1,0,"tr",19)(27,ye,1,0,"tr",20),o(),c(28,"mat-paginator",21),o()),a&2&&(r(),l("dataSource",_.dataSource),r(24),l("matHeaderRowDef",S(9,se))("matHeaderRowDefSticky",!0),r(),l("matHeaderRowDef",S(10,ue))("matHeaderRowDefSticky",!0),r(),l("matRowDefColumns",S(11,se)),r(),l("pageSize",_.pageSize)("pageIndex",_.pageIndex)("pageSizeOptions",S(12,Me)))},dependencies:[ce,ee,ie,re,ne,te,le,oe,ae,me,_e,Z,W,Y,L,F,b,y,$,w,H,q,B,J,V,j,U,z,X,Q,K,D],encapsulation:2,changeDetection:0})}}return e})();export{ft as MigrateComponent};