UNPKG

angular-t9n

Version:
2 lines 5.33 kB
import {J as Jt,j as jt,k,u as ut}from'./chunk-DdfFxTDG.js';import'./chunk-CyoIu4Ye.js';import'./chunk-BVUXkDrv.js';import {g,aa as al,e as en,Y as Yt,m as mt,h as hn,aL as Ie,M as Mt,aM as yt,aN as wt,x as xT,bU as OT,ac as Zl,L as Ls,aO as td,ad as xm,aP as nd,J as Jl,o as Lm,d as bg,P as Pm,aK as SC,W as Wb,E as EC,aQ as id,f as fy,b as xC,O as OC,aE as Zb,aR as NC}from'./main-XWPOM5LO.js';import'./chunk-Cfbj5Ou5.js';import {V as Vi,I as Ii,A as Ai,z as zi,H as Hi,N as Ni,L as Li,P as Pi,B as Bi,j as ji,U as Ui,w as wi,b as bt,g as gi}from'./chunk-BC8OLdk0.js';import {I}from'./chunk-C9OKxrz_.js';import'./chunk-Ce3BBnKT.js';import'./chunk-BaYJwvwh.js';import'./chunk-C1Idjiqb.js';import'./chunk-C2N3F-hv.js';import'./chunk-DvU4UsWB.js';var C=class extends ut{constructor(t,n,r){super(n,r),this._translationTargetService=t;}_fetchData(t,n){return this._translationTargetService.orphans({page:t.pageIndex,entriesPerPage:t.pageSize,sort:n})}};var re=()=>["id","description","meaning","source","target","state","action"],le=()=>[25,50,100,250],me=(e,t)=>["./",e,t];function _e(e,t){e&1&&(Ls(0,"th",22),Wb(1,0),Jl());}function pe(e,t){if(e&1&&(Ls(0,"td",23),EC(1),Jl()),e&2){let n=t.$implicit;Pm("matTooltip",n.locations==null?null:n.locations.join(` `))("matTooltipDisabled",!n.locations?.length),bg(),id(" ",n.id," ");}}function de(e,t){e&1&&(Ls(0,"th",22),Wb(1,1),Jl());}function ce(e,t){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let n=t.$implicit;bg(),fy(n.description);}}function se(e,t){e&1&&(Ls(0,"th",22),Wb(1,2),Jl());}function fe(e,t){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let n=t.$implicit;bg(),fy(n.meaning);}}function Se(e,t){e&1&&(Ls(0,"th",22),Wb(1,3),Jl());}function Te(e,t){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let n=t.$implicit;bg(),fy(n.source);}}function ue(e,t){e&1&&(Ls(0,"th",22),Wb(1,4),Jl());}function Ce(e,t){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let n=t.$implicit;bg(),fy(n.target);}}function ge(e,t){e&1&&(Ls(0,"th",22),Wb(1,5),Jl());}function Me(e,t){if(e&1&&(Ls(0,"td",24),EC(1),xC(2,"titlecase"),Jl()),e&2){let n=t.$implicit;bg(),fy(OC(2,1,n.state));}}function Re(e,t){e&1&&Lm(0,"th",25);}function Oe(e,t){if(e&1&&(Ls(0,"td",24)(1,"a",26),xC(2,"async"),Ls(3,"mat-icon"),EC(4,"edit"),Jl()()()),e&2){let n=t.$implicit,r=Zb();bg(),Pm("routerLink",NC(3,me,n.id,OC(2,1,r.queryParams)));}}function Ee(e,t){e&1&&Lm(0,"tr",27);}function Pe(e,t){e&1&&Lm(0,"tr",28);}var Qe=(()=>{class e extends Jt{constructor(){super(...arguments),this._translationTargetService=g(I);}ngOnInit(){super.ngOnInit(),this.dataSource=new C(this._translationTargetService,this.paginator,this.sort);}static{this.\u0275fac=(()=>{let n;return function(m){return (n||(n=al(e)))(m||e)}})();}static{this.\u0275cmp=en({type:e,selectors:[["t9n-orphans"]],features:[Zl],decls:26,vars:10,consts:()=>{let n;n=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`;let r;r=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`;let m;m=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`;let R;R=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`;let O;O=$localize`:␟38baeb215c17af9d9e295e371a57f4a48ab4c191␟4854396465510517671:Target`;let E;E=$localize`:␟873b72903b1858a9cd6c8967521030b4d7d1435b␟5911214550882917183:State`;let P;return P=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[n,r,m,R,O,E,[1,"mat-elevation-z8"],["mat-table","","matSort","","aria-label","Orphaned units",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","target"],["matColumnDef","state"],["matColumnDef","action"],["mat-header-cell","",4,"matHeaderCellDef"],["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",P,3,"routerLink"],["mat-header-row",""],["mat-row",""]]},template:function(r,m){r&1&&(Ls(0,"div",6)(1,"table",7),td(2,8),xm(3,_e,2,0,"th",9)(4,pe,2,3,"td",10),nd(),td(5,11),xm(6,de,2,0,"th",9)(7,ce,2,1,"td",12),nd(),td(8,13),xm(9,se,2,0,"th",9)(10,fe,2,1,"td",12),nd(),td(11,14),xm(12,Se,2,0,"th",9)(13,Te,2,1,"td",12),nd(),td(14,15),xm(15,ue,2,0,"th",9)(16,Ce,2,1,"td",12),nd(),td(17,16),xm(18,ge,2,0,"th",9)(19,Me,3,3,"td",12),nd(),td(20,17),xm(21,Re,1,0,"th",18)(22,Oe,5,6,"td",12),nd(),xm(23,Ee,1,0,"tr",19)(24,Pe,1,0,"tr",20),Jl(),Lm(25,"mat-paginator",21),Jl()),r&2&&(bg(),Pm("dataSource",m.dataSource),bg(22),Pm("matHeaderRowDef",SC(7,re))("matHeaderRowDefSticky",true),bg(),Pm("matRowDefColumns",SC(8,re)),bg(),Pm("pageSize",m.pageSize)("pageIndex",m.pageIndex)("pageSizeOptions",SC(9,le)));},dependencies:[Vi,Ii,Ai,zi,Hi,Ni,Li,Pi,Bi,ji,Ui,wi,bt,gi,Yt,mt,hn,Ie,Mt,yt,wt,jt,k,xT,OT],encapsulation:2});}}return e})();export{Qe as OrphansComponent};