UNPKG

otus-localization

Version:

A translation tool for Angular i18n(angular-t9n)

1 lines 5.26 kB
"use strict";(self.webpackChunkotus_translation=self.webpackChunkotus_translation||[]).push([[199],{7199:(w,c,o)=>{o.r(c),o.d(c,{OrphansComponent:()=>Q});var r=o(6814),O=o(2296),d=o(617),R=o(1476),s=o(3566),i=o(5313),p=o(2596),S=o(1896),f=o(6529),u=o(2511),g=o(2887);class P extends g.k{constructor(e,n,a){super(n,a),this._translationTargetService=e}_fetchData(e,n){return this._translationTargetService.orphans({page:e.pageIndex,entriesPerPage:e.pageSize,sort:n})}}var _=o(5879);function h(t,e){1&t&&(_.TgZ(0,"th",16),_.SDv(1,17),_.qZA())}function M(t,e){if(1&t&&(_.TgZ(0,"td",18),_._uU(1),_.qZA()),2&t){const n=e.$implicit;_.Q6J("matTooltip",null==n.locations?null:n.locations.join("\n"))("matTooltipDisabled",!(null!=n.locations&&n.locations.length)),_.xp6(1),_.hij(" ",n.id," ")}}function U(t,e){1&t&&(_.TgZ(0,"th",16),_.SDv(1,19),_.qZA())}function D(t,e){if(1&t&&(_.TgZ(0,"td",20),_._uU(1),_.qZA()),2&t){const n=e.$implicit;_.xp6(1),_.Oqu(n.description)}}function H(t,e){1&t&&(_.TgZ(0,"th",16),_.SDv(1,21),_.qZA())}function I(t,e){if(1&t&&(_.TgZ(0,"td",20),_._uU(1),_.qZA()),2&t){const n=e.$implicit;_.xp6(1),_.Oqu(n.meaning)}}function G(t,e){1&t&&(_.TgZ(0,"th",16),_.SDv(1,22),_.qZA())}function $(t,e){if(1&t&&(_.TgZ(0,"td",20),_._uU(1),_.qZA()),2&t){const n=e.$implicit;_.xp6(1),_.Oqu(n.source)}}function Z(t,e){1&t&&(_.TgZ(0,"th",16),_.SDv(1,23),_.qZA())}function L(t,e){if(1&t&&(_.TgZ(0,"td",20),_._uU(1),_.qZA()),2&t){const n=e.$implicit;_.xp6(1),_.Oqu(n.target)}}function x(t,e){1&t&&(_.TgZ(0,"th",16),_.SDv(1,24),_.qZA())}function v(t,e){if(1&t&&(_.TgZ(0,"td",20),_._uU(1),_.ALo(2,"titlecase"),_.qZA()),2&t){const n=e.$implicit;_.xp6(1),_.Oqu(_.lcZ(2,1,n.state))}}function b(t,e){1&t&&_._UZ(0,"th",25)}const y=function(t,e){return["./",t,e]};function Y(t,e){if(1&t&&(_.TgZ(0,"td",20)(1,"a",26),_.ALo(2,"async"),_.TgZ(3,"mat-icon"),_._uU(4,"edit"),_.qZA()()()),2&t){const n=e.$implicit,a=_.oxw();_.xp6(1),_.Q6J("routerLink",_.WLB(3,y,n.id,_.lcZ(2,1,a.queryParams)))}}function z(t,e){1&t&&_._UZ(0,"tr",27)}function X(t,e){1&t&&_._UZ(0,"tr",28)}const A=function(){return["id","description","meaning","source","target","state","action"]},K=function(){return[25,50,100,250]};let Q=(()=>{class t extends f.t{constructor(n,a,T){super(a,T),this._translationTargetService=n}ngOnInit(){super.ngOnInit(),this.dataSource=new P(this._translationTargetService,this.paginator,this.sort)}static{this.\u0275fac=function(a){return new(a||t)(_.Y36(u.V),_.Y36(S.gz),_.Y36(S.F0))}}static{this.\u0275cmp=_.Xpm({type:t,selectors:[["t9n-orphans"]],standalone:!0,features:[_.qOj,_.jDz],decls:26,vars:10,consts:function(){let n,a,T,N,E,m,C;return n=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`,a=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`,T=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`,N=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`,E=$localize`:␟38baeb215c17af9d9e295e371a57f4a48ab4c191␟4854396465510517671:Target`,m=$localize`:␟873b72903b1858a9cd6c8967521030b4d7d1435b␟5911214550882917183:State`,C=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[[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",""],n,["mat-cell","","matTooltipClass","tooltip-linebreak",3,"matTooltip","matTooltipDisabled"],a,["mat-cell",""],T,N,E,m,["mat-header-cell",""],["mat-icon-button","","matTooltip",C,3,"routerLink"],["mat-header-row",""],["mat-row",""]]},template:function(a,T){1&a&&(_.TgZ(0,"div",0)(1,"table",1),_.ynx(2,2),_.YNc(3,h,2,0,"th",3),_.YNc(4,M,2,3,"td",4),_.BQk(),_.ynx(5,5),_.YNc(6,U,2,0,"th",3),_.YNc(7,D,2,1,"td",6),_.BQk(),_.ynx(8,7),_.YNc(9,H,2,0,"th",3),_.YNc(10,I,2,1,"td",6),_.BQk(),_.ynx(11,8),_.YNc(12,G,2,0,"th",3),_.YNc(13,$,2,1,"td",6),_.BQk(),_.ynx(14,9),_.YNc(15,Z,2,0,"th",3),_.YNc(16,L,2,1,"td",6),_.BQk(),_.ynx(17,10),_.YNc(18,x,2,0,"th",3),_.YNc(19,v,3,3,"td",6),_.BQk(),_.ynx(20,11),_.YNc(21,b,1,0,"th",12),_.YNc(22,Y,5,6,"td",6),_.BQk(),_.YNc(23,z,1,0,"tr",13),_.YNc(24,X,1,0,"tr",14),_.qZA(),_._UZ(25,"mat-paginator",15),_.qZA()),2&a&&(_.xp6(1),_.Q6J("dataSource",T.dataSource),_.xp6(22),_.Q6J("matHeaderRowDef",_.DdM(7,A))("matHeaderRowDefSticky",!0),_.xp6(1),_.Q6J("matRowDefColumns",_.DdM(8,A)),_.xp6(1),_.Q6J("pageSize",T.pageSize)("pageIndex",T.pageIndex)("pageSizeOptions",_.DdM(9,K)))},dependencies:[i.p0,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,s.JX,s.YE,s.nU,p.AV,p.gM,O.ot,O.o6,S.rH,d.Ps,d.Hw,R.TU,R.NW,r.Ov,r.rS],changeDetection:0})}}return t})()}}]);