otus-localization
Version:
A translation tool for Angular i18n(angular-t9n)
1 lines • 6.02 kB
JavaScript
;(self.webpackChunkotus_translation=self.webpackChunkotus_translation||[]).push([[896],{5896:(k,f,o)=>{o.r(f),o.d(f,{MigrateComponent:()=>j});var O=o(6814),l=o(6223),S=o(2296),d=o(5683),E=o(617),R=o(4516),C=o(1476),T=o(3566),a=o(5313),p=o(2596),m=o(1896),M=o(6529),N=o(7115),I=o(2887);class U extends I.k{constructor(n,e,i,r){super(e,i,r),this._sourceOrphansService=n}_fetchData(n,e,i){return this._sourceOrphansService.orphans({page:n.pageIndex,entriesPerPage:n.pageSize,sort:e,filter:i.value})}}var t=o(5879);function P(_,n){1&_&&(t.TgZ(0,"th",18),t.SDv(1,19),t.qZA())}function h(_,n){if(1&_&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&_){const e=n.$implicit;t.Q6J("matTooltip",null==e.locations?null:e.locations.join("\n"))("matTooltipDisabled",!(null!=e.locations&&e.locations.length)),t.xp6(1),t.hij(" ",e.id," ")}}function D(_,n){1&_&&(t.TgZ(0,"th",18),t.SDv(1,21),t.qZA())}function G(_,n){if(1&_&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&_){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function x(_,n){1&_&&(t.TgZ(0,"th",18),t.SDv(1,23),t.qZA())}function Z(_,n){if(1&_&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&_){const e=n.$implicit;t.xp6(1),t.Oqu(e.meaning)}}function H(_,n){1&_&&(t.TgZ(0,"th",18),t.SDv(1,24),t.qZA())}function $(_,n){if(1&_&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&_){const e=n.$implicit;t.xp6(1),t.Oqu(e.source)}}function v(_,n){1&_&&t._UZ(0,"th",25)}const L=function(_,n){return["./",_,n]};function y(_,n){if(1&_&&(t.TgZ(0,"td",22)(1,"a",26),t.ALo(2,"async"),t.TgZ(3,"mat-icon"),t._uU(4,"edit"),t.qZA()()()),2&_){const e=n.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(3,L,e.id,t.lcZ(2,1,i.queryParams)))}}function Q(_,n){if(1&_&&(t.TgZ(0,"th",25)(1,"mat-form-field"),t._UZ(2,"input",27),t.qZA()()),2&_){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.filter.get("id"))}}function Y(_,n){if(1&_&&(t.TgZ(0,"th",25)(1,"mat-form-field"),t._UZ(2,"input",27),t.qZA()()),2&_){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.filter.get("description"))}}function z(_,n){if(1&_&&(t.TgZ(0,"th",25)(1,"mat-form-field"),t._UZ(2,"input",27),t.qZA()()),2&_){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.filter.get("meaning"))}}function X(_,n){if(1&_&&(t.TgZ(0,"th",25)(1,"mat-form-field"),t._UZ(2,"input",27),t.qZA()()),2&_){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.filter.get("source"))}}function b(_,n){1&_&&t._UZ(0,"tr",28)}function J(_,n){1&_&&t._UZ(0,"tr",28)}function w(_,n){1&_&&t._UZ(0,"tr",29)}const g=function(){return["id","description","meaning","source","action"]},K=function(){return["id-filter","description-filter","meaning-filter","source-filter","action"]},B=function(){return[25,50,100,250]};let j=(()=>{class _ extends M.t{constructor(e,i,r,s){super(i,r,s.group({id:"",description:"",meaning:"",source:""})),this._sourceOrphansService=e}ngOnInit(){super.ngOnInit(),this.dataSource=new U(this._sourceOrphansService,this.paginator,this.sort,this.filter)}static{this.\u0275fac=function(i){return new(i||_)(t.Y36(N.e),t.Y36(m.gz),t.Y36(m.F0),t.Y36(l.QS))}}static{this.\u0275cmp=t.Xpm({type:_,selectors:[["t9n-migrate"]],standalone:!0,features:[t.qOj,t.jDz],decls:29,vars:13,consts:function(){let e,i,r,s,u,A;return e=$localize`:␟2f4e117036784972ec955ba44ea3459b6915579d␟1422267617953582850:Orphaned units`,i=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`,r=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`,s=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`,u=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`,A=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[[1,"mat-elevation-z8"],["mat-table","","matSort","","aria-label",e,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",""],i,["mat-cell","","matTooltipClass","tooltip-linebreak",3,"matTooltip","matTooltipDisabled"],r,["mat-cell",""],s,u,["mat-header-cell",""],["mat-icon-button","","matTooltip",A,3,"routerLink"],["matInput","","placeholder","Filter",3,"formControl"],["mat-header-row",""],["mat-row",""]]},template:function(i,r){1&i&&(t.TgZ(0,"div",0)(1,"table",1),t.ynx(2,2),t.YNc(3,P,2,0,"th",3),t.YNc(4,h,2,3,"td",4),t.BQk(),t.ynx(5,5),t.YNc(6,D,2,0,"th",3),t.YNc(7,G,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,x,2,0,"th",3),t.YNc(10,Z,2,1,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,H,2,0,"th",3),t.YNc(13,$,2,1,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,v,1,0,"th",10),t.YNc(16,y,5,6,"td",6),t.BQk(),t.ynx(17,11),t.YNc(18,Q,3,1,"th",10),t.BQk(),t.ynx(19,12),t.YNc(20,Y,3,1,"th",10),t.BQk(),t.ynx(21,13),t.YNc(22,z,3,1,"th",10),t.BQk(),t.ynx(23,14),t.YNc(24,X,3,1,"th",10),t.BQk(),t.YNc(25,b,1,0,"tr",15),t.YNc(26,J,1,0,"tr",15),t.YNc(27,w,1,0,"tr",16),t.qZA(),t._UZ(28,"mat-paginator",17),t.qZA()),2&i&&(t.xp6(1),t.Q6J("dataSource",r.dataSource),t.xp6(24),t.Q6J("matHeaderRowDef",t.DdM(9,g))("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matHeaderRowDef",t.DdM(10,K))("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(11,g)),t.xp6(1),t.Q6J("pageSize",r.pageSize)("pageIndex",r.pageIndex)("pageSizeOptions",t.DdM(12,B)))},dependencies:[a.p0,a.BZ,a.fO,a.as,a.w1,a.Dz,a.nj,a.ge,a.ev,a.XQ,a.Gk,T.JX,T.YE,T.nU,p.AV,p.gM,S.ot,S.o6,m.rH,E.Ps,E.Hw,d.lN,d.KE,R.c,R.Nt,l.UX,l.Fj,l.JJ,l.oH,C.TU,C.NW,O.Ov],changeDetection:0})}}return _})()}}]);