UNPKG

angular-t9n

Version:

A translation tool for Angular i18n

3 lines (2 loc) 5.38 kB
import{a as k,b as B,c as oe,d as ae}from"./chunk-JILWWMRM.js";import"./chunk-QA3CUK4L.js";import"./chunk-DOXYGUBM.js";import{a as L,b as z}from"./chunk-GKXKJW7N.js";import"./chunk-WVL5UBM6.js";import{a as j,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-F5XE4YAN.js";import{a as X,b as F}from"./chunk-YO72B5SH.js";import{a as w,c as v}from"./chunk-MFCYHQDO.js";import{a as re}from"./chunk-MPLUJE7X.js";import"./chunk-WUN63NIA.js";import{g as y}from"./chunk-6DDCRX73.js";import"./chunk-TOPF3UHX.js";import"./chunk-FK6IRHWX.js";import"./chunk-4NKRI2IB.js";import"./chunk-NRGBO6B5.js";import"./chunk-XUIN44YA.js";import{Ab as _,Bb as p,Hb as s,Jb as D,Kc as x,Lc as G,Ta as a,Xb as d,Yb as T,Zb as b,ac as C,cb as $,cc as I,da as N,dc as M,ec as R,fb as H,hb as l,wb as c,xa as h,xb as i,yb as o,zb as u}from"./chunk-IRWV2DJQ.js";import"./chunk-4CLCTAJ7.js";var g=class extends ae{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 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)),a(),b(" ",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;a(),T(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;a(),T(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;a(),T(n.source)}}function Ce(e,t){e&1&&(i(0,"th",22),s(1,4),o())}function ge(e,t){if(e&1&&(i(0,"td",24),d(1),o()),e&2){let n=t.$implicit;a(),T(n.target)}}function Me(e,t){e&1&&(i(0,"th",22),s(1,5),o())}function Re(e,t){if(e&1&&(i(0,"td",24),d(1),M(2,"titlecase"),o()),e&2){let n=t.$implicit;a(),T(R(2,1,n.state))}}function Ee(e,t){e&1&&u(0,"th",25)}function Oe(e,t){if(e&1&&(i(0,"td",24)(1,"a",26),M(2,"async"),i(3,"mat-icon"),d(4,"edit"),o()()()),e&2){let n=t.$implicit,r=D();a(),c("routerLink",I(3,_e,n.id,R(2,1,r.queryParams)))}}function Pe(e,t){e&1&&u(0,"tr",27)}function Ae(e,t){e&1&&u(0,"tr",28)}var Ue=(()=>{let t=class t extends oe{constructor(){super(...arguments),this._translationTargetService=N(re)}ngOnInit(){super.ngOnInit(),this.dataSource=new g(this._translationTargetService,this.paginator,this.sort)}};t.\u0275fac=(()=>{let r;return function(m){return(r||(r=h(t)))(m||t)}})(),t.\u0275cmp=$({type:t,selectors:[["t9n-orphans"]],features:[H],decls:26,vars:10,consts:()=>{let r;r=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`;let f;f=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`;let m;m=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`;let E;E=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`;let O;O=$localize`:␟38baeb215c17af9d9e295e371a57f4a48ab4c191␟4854396465510517671:Target`;let P;P=$localize`:␟873b72903b1858a9cd6c8967521030b4d7d1435b␟5911214550882917183:State`;let A;return A=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[r,f,m,E,O,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(f,m){f&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,ge,2,1,"td",12),p(),_(17,16),l(18,Me,2,0,"th",9)(19,Re,3,3,"td",12),p(),_(20,17),l(21,Ee,1,0,"th",18)(22,Oe,5,6,"td",12),p(),l(23,Pe,1,0,"tr",19)(24,Ae,1,0,"tr",20),o(),u(25,"mat-paginator",21),o()),f&2&&(a(),c("dataSource",m.dataSource),a(22),c("matHeaderRowDef",C(7,le))("matHeaderRowDefSticky",!0),a(),c("matRowDefColumns",C(8,le)),a(),c("pageSize",m.pageSize)("pageIndex",m.pageIndex)("pageSizeOptions",C(9,me)))},dependencies:[ie,K,U,Z,V,Q,ee,W,Y,te,ne,J,j,q,F,X,v,w,y,z,L,B,k,x,G],encapsulation:2,changeDetection:0});let e=t;return e})();export{Ue as OrphansComponent};