UNPKG

angular-t9n

Version:

A translation tool for Angular i18n

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