angular-t9n
Version:
A translation tool for Angular i18n
3 lines (2 loc) • 5.39 kB
JavaScript
import{a as F,b as k,c as ie,d as oe}from"./chunk-P2YDXC55.js";import"./chunk-DUG7CYPK.js";import"./chunk-X7N23RMT.js";import{a as v,b as L}from"./chunk-TCB7CPXY.js";import"./chunk-3MB47J2U.js";import{a as B,b as j,c as q,d as J,e as K,f as Q,g as U,h as V,i as W,j as Y,k as Z,l as ee,m as te,n as ne}from"./chunk-34LVLGVL.js";import{a as z,b as X}from"./chunk-27GPMXRH.js";import{a as y,c as w}from"./chunk-MFJLYQLJ.js";import{a as ae}from"./chunk-JZGDUES4.js";import"./chunk-LCKERP7W.js";import{f as G}from"./chunk-PTK3D5EO.js";import"./chunk-SML6JUFJ.js";import"./chunk-QTUSJNUZ.js";import"./chunk-DK3NDEDW.js";import"./chunk-MLPE3OCH.js";import"./chunk-RVNPJH6Y.js";import{$ as A,Bb as _,Cb as p,Cc as I,Dc as x,Ib as s,Kb as H,Qa as a,Yb as d,Zb as S,_b as D,bb as h,bc as u,dc as b,ec as g,fb as $,fc as M,gb as l,ua as N,ub as c,vb as i,wb as o,xb as T}from"./chunk-KWXDDR2S.js";import"./chunk-4CLCTAJ7.js";var C=class extends oe{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 re=()=>["id","description","meaning","source","target","state","action"],le=()=>[25,50,100,250],me=(e,t)=>["./",e,t];function _e(e,t){e&1&&(i(0,"th",22),s(1,0),o())}function pe(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(),D(" ",n.id," ")}}function de(e,t){e&1&&(i(0,"th",22),s(1,1),o())}function ce(e,t){if(e&1&&(i(0,"td",24),d(1),o()),e&2){let n=t.$implicit;a(),S(n.description)}}function se(e,t){e&1&&(i(0,"th",22),s(1,2),o())}function fe(e,t){if(e&1&&(i(0,"td",24),d(1),o()),e&2){let n=t.$implicit;a(),S(n.meaning)}}function Se(e,t){e&1&&(i(0,"th",22),s(1,3),o())}function Te(e,t){if(e&1&&(i(0,"td",24),d(1),o()),e&2){let n=t.$implicit;a(),S(n.source)}}function ue(e,t){e&1&&(i(0,"th",22),s(1,4),o())}function Ce(e,t){if(e&1&&(i(0,"td",24),d(1),o()),e&2){let n=t.$implicit;a(),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;a(),S(M(2,1,n.state))}}function Re(e,t){e&1&&T(0,"th",25)}function Oe(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,r=H();a(),c("routerLink",b(3,me,n.id,M(2,1,r.queryParams)))}}function Ee(e,t){e&1&&T(0,"tr",27)}function Pe(e,t){e&1&&T(0,"tr",28)}var Qe=(()=>{class e extends ie{constructor(){super(...arguments),this._translationTargetService=A(ae)}ngOnInit(){super.ngOnInit(),this.dataSource=new C(this._translationTargetService,this.paginator,this.sort)}static{this.\u0275fac=(()=>{let n;return function(m){return(n||(n=N(e)))(m||e)}})()}static{this.\u0275cmp=h({type:e,selectors:[["t9n-orphans"]],features:[$],decls:26,vars:10,consts:()=>{let n;n=$localize`:␟2798cc1e152b1ec07fd8daf94a2a073d1ba1ebcc␟7286430803380181008:Id`;let r;r=$localize`:␟eec715de352a6b114713b30b640d319fa78207a0␟4902817035128594900:Description`;let m;m=$localize`:␟f2081dbd0b230b2e61d03f870d85af5b54aed1ba␟2984907873245479480:Meaning`;let R;R=$localize`:␟6834fa6b43d1ecbdf147c48dd9c4d72f1484571d␟9155608366859514313:Source`;let O;O=$localize`:␟38baeb215c17af9d9e295e371a57f4a48ab4c191␟4854396465510517671:Target`;let E;E=$localize`:␟873b72903b1858a9cd6c8967521030b4d7d1435b␟5911214550882917183:State`;let P;return P=$localize`:␟52421cc98f4af0af7bc604b3e3ce9d9a622876ef␟1058384379333291031:Migrate orphan`,[n,r,m,R,O,E,[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",P,3,"routerLink"],["mat-header-row",""],["mat-row",""]]},template:function(r,m){r&1&&(i(0,"div",6)(1,"table",7),_(2,8),l(3,_e,2,0,"th",9)(4,pe,2,3,"td",10),p(),_(5,11),l(6,de,2,0,"th",9)(7,ce,2,1,"td",12),p(),_(8,13),l(9,se,2,0,"th",9)(10,fe,2,1,"td",12),p(),_(11,14),l(12,Se,2,0,"th",9)(13,Te,2,1,"td",12),p(),_(14,15),l(15,ue,2,0,"th",9)(16,Ce,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,Re,1,0,"th",18)(22,Oe,5,6,"td",12),p(),l(23,Ee,1,0,"tr",19)(24,Pe,1,0,"tr",20),o(),T(25,"mat-paginator",21),o()),r&2&&(a(),c("dataSource",m.dataSource),a(22),c("matHeaderRowDef",u(7,re))("matHeaderRowDefSticky",!0),a(),c("matRowDefColumns",u(8,re)),a(),c("pageSize",m.pageSize)("pageIndex",m.pageIndex)("pageSizeOptions",u(9,le)))},dependencies:[ne,J,Q,Y,U,K,Z,V,W,ee,te,q,B,j,X,z,w,y,G,L,v,k,F,I,x],encapsulation:2,changeDetection:0})}}return e})();export{Qe as OrphansComponent};