UNPKG

angular-t9n

Version:
2 lines 6.16 kB
import {S}from'./chunk-XuDY5ztv.js';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$1,M as Mt,aM as yt,aN as wt,x as xT,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,aE as Zb,aR as NC,O as OC,p as sw,z as cw}from'./main-XWPOM5LO.js';import {V as Ve,B as Be$1}from'./chunk-VgysnmPQ.js';import {J as Jt$1,B as Be}from'./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'./chunk-Ce3BBnKT.js';import {M as Mn,E as En,L as Le,C as Cn,z as zt}from'./chunk-BaYJwvwh.js';import'./chunk-C1Idjiqb.js';import'./chunk-C2N3F-hv.js';import'./chunk-DvU4UsWB.js';var T=class extends ut{constructor(i,t,r,_){super(t,r,_),this._sourceOrphansService=i;}_fetchData(i,t,r){return this._sourceOrphansService.orphans({page:i.pageIndex,entriesPerPage:i.pageSize,sort:t,filter:r.value})}};var ue=()=>["id","description","meaning","source","action"],Ce=()=>["id-filter","description-filter","meaning-filter","source-filter","action"],Me=()=>[25,50,100,250],Se=(e,i)=>["./",e,i];function ge(e,i){e&1&&(Ls(0,"th",22),Wb(1,0),Jl());}function Ee(e,i){if(e&1&&(Ls(0,"td",23),EC(1),Jl()),e&2){let t=i.$implicit;Pm("matTooltip",t.locations==null?null:t.locations.join(` `))("matTooltipDisabled",!t.locations?.length),bg(),id(" ",t.id," ");}}function Te(e,i){e&1&&(Ls(0,"th",22),Wb(1,1),Jl());}function Re(e,i){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let t=i.$implicit;bg(),fy(t.description);}}function he(e,i){e&1&&(Ls(0,"th",22),Wb(1,2),Jl());}function Ae(e,i){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let t=i.$implicit;bg(),fy(t.meaning);}}function Oe(e,i){e&1&&(Ls(0,"th",22),Wb(1,3),Jl());}function Ie(e,i){if(e&1&&(Ls(0,"td",24),EC(1),Jl()),e&2){let t=i.$implicit;bg(),fy(t.source);}}function Pe(e,i){e&1&&Lm(0,"th",25);}function Ne(e,i){if(e&1&&(Ls(0,"td",24)(1,"a",26),xC(2,"async"),Ls(3,"mat-icon"),EC(4,"edit"),Jl()()()),e&2){let t=i.$implicit,r=Zb();bg(),Pm("routerLink",NC(3,Se,t.id,OC(2,1,r.queryParams)));}}function xe(e,i){if(e&1&&(Ls(0,"th",25)(1,"mat-form-field"),Lm(2,"input",27),sw(),Jl()()),e&2){let t=Zb();bg(2),Pm("formControl",t.filter.get("id")),cw();}}function De(e,i){if(e&1&&(Ls(0,"th",25)(1,"mat-form-field"),Lm(2,"input",27),sw(),Jl()()),e&2){let t=Zb();bg(2),Pm("formControl",t.filter.get("description")),cw();}}function Ge(e,i){if(e&1&&(Ls(0,"th",25)(1,"mat-form-field"),Lm(2,"input",27),sw(),Jl()()),e&2){let t=Zb();bg(2),Pm("formControl",t.filter.get("meaning")),cw();}}function $e(e,i){if(e&1&&(Ls(0,"th",25)(1,"mat-form-field"),Lm(2,"input",27),sw(),Jl()()),e&2){let t=Zb();bg(2),Pm("formControl",t.filter.get("source")),cw();}}function ye(e,i){e&1&&Lm(0,"tr",28);}function be(e,i){e&1&&Lm(0,"tr",28);}function ve(e,i){e&1&&Lm(0,"tr",29);}var pt=(()=>{class e extends Jt{constructor(){super(...arguments),this._sourceOrphansService=g(S),this.filter=g(Mn).group({id:"",description:"",meaning:"",source:""});}ngOnInit(){super.ngOnInit(),this.dataSource=new T(this._sourceOrphansService,this.paginator,this.sort,this.filter);}static{this.\u0275fac=(()=>{let t;return function(_){return (t||(t=al(e)))(_||e)}})();}static{this.\u0275cmp=en({type:e,selectors:[["t9n-migrate"]],features:[Zl],decls:29,vars:13,consts:()=>{let t;t=$localize`:␟2f4e117036784972ec955ba44ea3459b6915579d␟1422267617953582850:Orphaned units`;let r;r=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`;let _;_=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`;let h;h=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`;let A;A=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`;let O;return O=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[r,_,h,A,[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",O,3,"routerLink"],["matInput","","placeholder","Filter",3,"formControl"],["mat-header-row",""],["mat-row",""]]},template:function(r,_){r&1&&(Ls(0,"div",4)(1,"table",5),td(2,6),xm(3,ge,2,0,"th",7)(4,Ee,2,3,"td",8),nd(),td(5,9),xm(6,Te,2,0,"th",7)(7,Re,2,1,"td",10),nd(),td(8,11),xm(9,he,2,0,"th",7)(10,Ae,2,1,"td",10),nd(),td(11,12),xm(12,Oe,2,0,"th",7)(13,Ie,2,1,"td",10),nd(),td(14,13),xm(15,Pe,1,0,"th",14)(16,Ne,5,6,"td",10),nd(),td(17,15),xm(18,xe,3,1,"th",14),nd(),td(19,16),xm(20,De,3,1,"th",14),nd(),td(21,17),xm(22,Ge,3,1,"th",14),nd(),td(23,18),xm(24,$e,3,1,"th",14),nd(),xm(25,ye,1,0,"tr",19)(26,be,1,0,"tr",19)(27,ve,1,0,"tr",20),Jl(),Lm(28,"mat-paginator",21),Jl()),r&2&&(bg(),Pm("dataSource",_.dataSource),bg(24),Pm("matHeaderRowDef",SC(9,ue))("matHeaderRowDefSticky",true),bg(),Pm("matHeaderRowDef",SC(10,Ce))("matHeaderRowDefSticky",true),bg(),Pm("matRowDefColumns",SC(11,ue)),bg(),Pm("pageSize",_.pageSize)("pageIndex",_.pageIndex)("pageSizeOptions",SC(12,Me)));},dependencies:[Vi,Ii,Ai,zi,Hi,Ni,Li,Pi,Bi,ji,Ui,wi,bt,gi,Yt,mt,hn,Ie$1,Mt,yt,wt,Jt$1,Be,Ve,Be$1,En,Le,Cn,zt,jt,k,xT],encapsulation:2});}}return e})();export{pt as MigrateComponent};