dealposbooks 1.9.6 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +26 -26
- package/assets/scss/style.scss +30 -0
- package/{chunk-RBDJZRHY.js → chunk-27P5HOS3.js} +1 -1
- package/chunk-2HOHR6C5.js +1 -0
- package/{chunk-CSMMP7XG.js → chunk-35ER6BC7.js} +1 -1
- package/{chunk-BNI5KUDE.js → chunk-3GHEXAAZ.js} +3 -3
- package/chunk-3HGVSC6D.js +7 -0
- package/{chunk-TC43COAE.js → chunk-3RM5CDGW.js} +1 -1
- package/{chunk-G6FJQBZZ.js → chunk-3ZFQSQVU.js} +1 -1
- package/chunk-45VFBAOS.js +1 -0
- package/{chunk-46TNY5N4.js → chunk-4V5YFD3N.js} +1 -1
- package/chunk-6332DY2I.js +82 -0
- package/chunk-6EL7TGVK.js +1 -0
- package/{chunk-OVCTOPAO.js → chunk-6PS3NJ62.js} +1 -1
- package/{chunk-J2SK4PGN.js → chunk-77BBQI2T.js} +1 -1
- package/{chunk-PGECEXRR.js → chunk-7ET5CSOO.js} +1 -1
- package/{chunk-6ZZARVQO.js → chunk-7IPVVF6Y.js} +1 -1
- package/chunk-7JGGV5FX.js +1 -0
- package/chunk-7TOJMYLE.js +1 -0
- package/chunk-AQRLC7NB.js +1 -0
- package/chunk-AZWJMXL6.js +449 -0
- package/chunk-BDJHC5O6.js +2 -0
- package/{chunk-IIB2DZLA.js → chunk-BPFL7VRT.js} +1 -1
- package/{chunk-EXVUABTO.js → chunk-BX74ZLQG.js} +1 -1
- package/chunk-C32DCO2H.js +1 -0
- package/chunk-C3N6HRIE.js +1 -0
- package/{chunk-TFV5QZKR.js → chunk-CEZEYAWZ.js} +1 -1
- package/chunk-CGUMUBB7.js +1 -0
- package/chunk-CIG34QJJ.js +129 -0
- package/{chunk-JDW35ZB5.js → chunk-CNLYDNON.js} +1 -1
- package/chunk-CUDRSVFH.js +1 -0
- package/{chunk-JP3F2QND.js → chunk-CZWWMQFD.js} +1 -1
- package/{chunk-BYD3JK4R.js → chunk-DAQCANBV.js} +1 -1
- package/{chunk-OZACNHDP.js → chunk-DJAICZNR.js} +1 -1
- package/chunk-DXIZC3FM.js +87 -0
- package/chunk-EJCLRSB2.js +1 -0
- package/chunk-EVVQ2SFY.js +1 -0
- package/{chunk-OEOAUJY5.js → chunk-FDZFCC3N.js} +1 -1
- package/{chunk-4S33ZRKF.js → chunk-FTI2QPWV.js} +1 -1
- package/{chunk-ASK2IVMC.js → chunk-H6BPUKCW.js} +1 -1
- package/{chunk-TK3G2BVM.js → chunk-HFUW7PYZ.js} +1 -1
- package/chunk-I3BTHUK3.js +160 -0
- package/chunk-IY6KCAQ4.js +1 -0
- package/{chunk-JMLETF7Y.js → chunk-J6H5UCJR.js} +1 -1
- package/chunk-JL2CIZE7.js +1 -0
- package/{chunk-J77A3DFB.js → chunk-JO3SI6HU.js} +1 -1
- package/{chunk-32BR7AQL.js → chunk-JZTK7BS7.js} +1 -1
- package/{chunk-P6CJ2ONT.js → chunk-K4ALA724.js} +1 -1
- package/{chunk-NF3TF3LT.js → chunk-KANHSSLO.js} +1 -1
- package/chunk-L5AUQL23.js +1 -0
- package/chunk-L66QS3IX.js +81 -0
- package/{chunk-YOEPO6LK.js → chunk-LMI4DLB5.js} +1 -1
- package/{chunk-GJXWL5XV.js → chunk-LWYZZP3I.js} +1 -1
- package/chunk-MF7TC5KB.js +1 -0
- package/chunk-NC6RBSOA.js +1 -0
- package/{chunk-3L7IWFXM.js → chunk-NR3EHEG3.js} +1 -1
- package/chunk-NXCHPBCH.js +1 -0
- package/chunk-OXGCSUUS.js +2 -0
- package/{chunk-LTZA6IIO.js → chunk-PDNXU4MC.js} +1 -1
- package/chunk-QVQOBBLJ.js +1 -0
- package/chunk-R6NK3ROE.js +1 -0
- package/{chunk-54OPMMIM.js → chunk-R6XNFCQM.js} +1 -1
- package/{chunk-HRQJ5DXP.js → chunk-RLR2HFSC.js} +1 -1
- package/{chunk-HFFH2WIX.js → chunk-RNOSD5RO.js} +1 -1
- package/chunk-RQ52IUQY.js +130 -0
- package/{chunk-DOM7WYRM.js → chunk-RSGEQTNJ.js} +1 -1
- package/{chunk-35CWG2OK.js → chunk-RYHNURUZ.js} +2 -2
- package/{chunk-3DN7TZCI.js → chunk-SH4ALZVS.js} +1 -1
- package/{chunk-3HW557B7.js → chunk-TDMJ2M6W.js} +1 -1
- package/chunk-TE7Y3LKA.js +1 -0
- package/{chunk-AKMHO3LC.js → chunk-TIX3GAPF.js} +1 -1
- package/{chunk-XKEV5AED.js → chunk-TLLNQB5C.js} +1 -1
- package/{chunk-C5GEP4MM.js → chunk-U75O34AW.js} +1 -1
- package/{chunk-I3HFXOYS.js → chunk-UNWDCLFZ.js} +1 -1
- package/chunk-UWWFSGE7.js +1 -0
- package/{chunk-6TA77CRR.js → chunk-V4IY7RIP.js} +1 -1
- package/chunk-VDBXI7BY.js +1 -0
- package/{chunk-RT5PUZ5F.js → chunk-VJLO7GNT.js} +1 -1
- package/chunk-VP6GWJ6D.js +1 -0
- package/{chunk-LKZL77YR.js → chunk-W4KTL6Y6.js} +1 -1
- package/{chunk-ZWHB7NI7.js → chunk-W6LBFCQQ.js} +1 -1
- package/{chunk-YVEUYFCE.js → chunk-WCXWWANV.js} +5 -5
- package/chunk-WVPOYMTO.js +1 -0
- package/{chunk-LR2DJRRL.js → chunk-WWWY3VE7.js} +1 -1
- package/{chunk-7WXXPCRV.js → chunk-XYU65DNE.js} +1 -1
- package/{chunk-34XRAZFC.js → chunk-Y45TAHWD.js} +1 -1
- package/chunk-YGADGNDB.js +1 -0
- package/chunk-YJ3CWPO4.js +1 -0
- package/{chunk-3WB76KQC.js → chunk-YVGWGEPX.js} +1 -1
- package/chunk-YXXRJV2N.js +1 -0
- package/{chunk-TQZNJ5WF.js → chunk-Z3SHAW6W.js} +1 -1
- package/{chunk-AOSPVPK7.js → chunk-ZHU3HOWQ.js} +1 -1
- package/chunk-ZWA7RUAY.js +1 -0
- package/index.html +2 -2
- package/{main-U5PC2W2C.js → main-VZEZO7AT.js} +1 -1
- package/package.json +1 -1
- package/{styles-GTUKYMN7.css → styles-XXVTW56A.css} +1 -1
- package/chunk-27SWEVDU.js +0 -1
- package/chunk-2DV653RD.js +0 -1
- package/chunk-2OECREUZ.js +0 -1
- package/chunk-35KDUCM3.js +0 -1
- package/chunk-3G3QSUWH.js +0 -1
- package/chunk-43WCLYRX.js +0 -1
- package/chunk-4FGQ5T64.js +0 -2
- package/chunk-4KXSM3HP.js +0 -1
- package/chunk-4QKRWFW4.js +0 -1
- package/chunk-6HQX2SM2.js +0 -1
- package/chunk-B7JILYJO.js +0 -1
- package/chunk-BX3CRF44.js +0 -1
- package/chunk-C4LZX33Q.js +0 -449
- package/chunk-C7UZ6ZYF.js +0 -1
- package/chunk-CTCQB63H.js +0 -1
- package/chunk-DNK2GUDB.js +0 -1
- package/chunk-ELWFWCNU.js +0 -246
- package/chunk-GNP7WGSH.js +0 -1
- package/chunk-GTGRV7IH.js +0 -1
- package/chunk-HRPP75N7.js +0 -1
- package/chunk-JYNZPVLW.js +0 -1
- package/chunk-K6753MGR.js +0 -7
- package/chunk-LD4G6ND6.js +0 -130
- package/chunk-M7MFX6BW.js +0 -1
- package/chunk-MCDQ2TIS.js +0 -1
- package/chunk-MJVSTWYY.js +0 -1
- package/chunk-N2RYBZK7.js +0 -1
- package/chunk-N6JCA3CN.js +0 -2
- package/chunk-OEJBOFI5.js +0 -1
- package/chunk-QPKNYNLC.js +0 -210
- package/chunk-UEOO2LYA.js +0 -82
- package/chunk-WEWEITR7.js +0 -1
- package/chunk-WGZN6AN2.js +0 -1
- package/chunk-WZO2ZLBL.js +0 -1
- package/chunk-X34Y3TVX.js +0 -1
- package/chunk-XFSZDZPJ.js +0 -1
- package/chunk-XZGFG6E3.js +0 -1
package/chunk-C4LZX33Q.js
DELETED
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
import{a as Ut,b as jt,c as qt,d as Wt,e as Gt,f as Jt}from"./chunk-46TNY5N4.js";import{b as Qt,c as ai,d as Xt}from"./chunk-3L7IWFXM.js";import{a as $t}from"./chunk-N2RYBZK7.js";import{a as Ke}from"./chunk-B7JILYJO.js";import{b as Ne,c as Fe,d as xt,e as It,f as Et,g as At,h as Kt}from"./chunk-HFFH2WIX.js";import"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import{a as He}from"./chunk-6TA77CRR.js";import{a as Oe}from"./chunk-JMLETF7Y.js";import{a as kt}from"./chunk-C5GEP4MM.js";import{b as vt,d as Ae}from"./chunk-TC43COAE.js";import{a as Rt,b as Mt}from"./chunk-JDW35ZB5.js";import{a as St}from"./chunk-WZO2ZLBL.js";import{a as Ht,b as Bt}from"./chunk-6ZZARVQO.js";import{e as Pt,f as Vt,g as Ft,h as Ot}from"./chunk-35CWG2OK.js";import{c as Nt}from"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{a as Pe,b as Ve,i as Be,p as zt,w as Lt,x as Dt}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{$ as ce,A as Ee,C as ke,Da as Tt,Ha as Ct,M as ft,Ma as ge,N as ze,Na as Me,Q as ee,R as E,S as me,T as Le,Va as wt,X as bt,Y as _t,Z as se,oa as De,ra as yt,sa as R,ta as Re,x as gt,z as Ie}from"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import{E as mt,c as re,e as ut,f as W,g as xe,h as ae,m as he,n as ue}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Aa as ie,Ab as we,Ac as Y,Cb as p,Cc as st,Ea as Ce,Ec as ct,Ga as X,I as Ge,Ic as dt,Jb as oe,Ka as Ze,Kb as a,Kc as pt,Lb as ot,Lc as x,Nb as Z,Ob as le,Pb as ve,Pc as ht,Ub as c,Uc as w,Vb as h,Vc as $,Wb as I,Xb as U,Yb as j,Z as _e,Zb as T,_b as F,ba as ye,ca as Je,dc as D,eb as Ye,ec as u,g as J,gb as s,ha as K,ic as b,jc as k,kc as g,lb as et,lc as f,m as We,mb as V,oa as Xe,oc as ne,pa as M,pc as _,qa as P,qc as B,rc as Se,ta as Te,uc as lt,vc as nt,wb as Q,wc as rt,xb as tt,xc as at,yb as it,yc as q,za as S,zc as z}from"./chunk-YVEUYFCE.js";import{a as G,b as qe,e as ri}from"./chunk-YQFG5XE2.js";var di=["colgroup"],pi=["caption"],hi=["header"],ui=["body"],mi=["footer"],gi=["summary"],fi=["emptymessage"],bi=["paginatorleft"],_i=["paginatorright"],yi=["paginatordropdownitem"],Ti=["frozenheader"],Ci=["frozenbody"],wi=["frozenfooter"],vi=["frozencolgroup"],Si=["loadingicon"],xi=["reorderindicatorupicon"],Ii=["reorderindicatordownicon"],Ei=["sorticon"],ki=["checkboxicon"],zi=["headercheckboxicon"],Li=["togglericon"],Di=["paginatorfirstpagelinkicon"],Ri=["paginatorlastpagelinkicon"],Mi=["paginatorpreviouspagelinkicon"],Pi=["paginatornextpagelinkicon"],Vi=["loader"],Ni=["container"],Fi=["resizeHelper"],Oi=["reorderIndicatorUp"],Hi=["reorderIndicatorDown"],Bi=["table"],Ai=["scrollableView"],Ki=["scrollableFrozenView"],$i=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),A=t=>({$implicit:t}),Qi=(t,r)=>({left:t,width:r}),Ui=t=>({width:t});function ji(t,r){if(t&1&&I(0,"i"),t&2){let e=u(2);le("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function qi(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function Wi(t,r){}function Gi(t,r){t&1&&p(0,Wi,0,0,"ng-template")}function Ji(t,r){if(t&1&&(c(0,"span",25),p(1,Gi,1,0,null,26),h()),t&2){let e=u(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Xi(t,r){if(t&1&&(U(0),p(1,qi,1,2,"SpinnerIcon",22)(2,Ji,2,1,"span",23),j()),t&2){let e=u(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Zi(t,r){if(t&1&&(c(0,"div",18)(1,"div",19),p(2,ji,1,2,"i",20)(3,Xi,3,2,"ng-container",21),h()()),t&2){let e=u();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function Yi(t,r){t&1&&T(0)}function eo(t,r){if(t&1&&(c(0,"div",27),p(1,Yi,1,0,"ng-container",26),h()),t&2){let e=u();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function to(t,r){t&1&&T(0)}function io(t,r){if(t&1&&p(0,to,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function oo(t,r){t&1&&p(0,io,1,1,"ng-template",29)}function lo(t,r){t&1&&T(0)}function no(t,r){if(t&1&&p(0,lo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function ro(t,r){t&1&&p(0,no,1,1,"ng-template",30)}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&p(0,ao,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function co(t,r){t&1&&p(0,so,1,1,"ng-template",31)}function po(t,r){t&1&&T(0)}function ho(t,r){if(t&1&&p(0,po,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function uo(t,r){t&1&&p(0,ho,1,1,"ng-template",32)}function mo(t,r){if(t&1){let e=F();c(0,"p-paginator",28),D("onPageChange",function(i){M(e);let l=u();return P(l.onPageChange(i))}),p(1,oo,1,0,null,21)(2,ro,1,0,null,21)(3,co,1,0,null,21)(4,uo,1,0,null,21),h()}if(t&2){let e,o,i,l=u();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function go(t,r){t&1&&T(0)}function fo(t,r){t&1&&T(0)}function bo(t,r){t&1&&T(0)}function _o(t,r){if(t&1&&(c(0,"div",33)(1,"table",34,1),p(3,go,1,0,"ng-container",35),c(4,"thead",36),p(5,fo,1,0,"ng-container",35),h(),I(6,"tbody",37),c(7,"tfoot",38),p(8,bo,1,0,"ng-container",35),h()()()),t&2){let e,o=u();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",z(10,A,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",z(12,A,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",z(14,A,o.columns))}}function yo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=u(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",z(4,Ui,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function To(t,r){if(t&1&&(c(0,"div",39),p(1,yo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=u();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",Y(5,Qi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Co(t,r){t&1&&T(0)}function wo(t,r){if(t&1&&p(0,Co,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function vo(t,r){t&1&&p(0,wo,1,1,"ng-template",29)}function So(t,r){t&1&&T(0)}function xo(t,r){if(t&1&&p(0,So,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Io(t,r){t&1&&p(0,xo,1,1,"ng-template",30)}function Eo(t,r){t&1&&T(0)}function ko(t,r){if(t&1&&p(0,Eo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function zo(t,r){t&1&&p(0,ko,1,1,"ng-template",31)}function Lo(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Lo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ro(t,r){t&1&&p(0,Do,1,1,"ng-template",32)}function Mo(t,r){if(t&1){let e=F();c(0,"p-paginator",43),D("onPageChange",function(i){M(e);let l=u();return P(l.onPageChange(i))}),p(1,vo,1,0,null,21)(2,Io,1,0,null,21)(3,zo,1,0,null,21)(4,Ro,1,0,null,21),h()}if(t&2){let e,o,i,l=u();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function Po(t,r){t&1&&T(0)}function Vo(t,r){if(t&1&&(c(0,"div",44),p(1,Po,1,0,"ng-container",26),h()),t&2){let e=u();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function No(t,r){t&1&&I(0,"div",45,4)}function Fo(t,r){t&1&&I(0,"ArrowDownIcon")}function Oo(t,r){}function Ho(t,r){t&1&&p(0,Oo,0,0,"ng-template")}function Bo(t,r){if(t&1&&(c(0,"span",46,5),p(2,Fo,1,0,"ArrowDownIcon",21)(3,Ho,1,0,null,26),h()),t&2){let e=u();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Ao(t,r){t&1&&I(0,"ArrowUpIcon")}function Ko(t,r){}function $o(t,r){t&1&&p(0,Ko,0,0,"ng-template")}function Qo(t,r){if(t&1&&(c(0,"span",47,6),p(2,Ao,1,0,"ArrowUpIcon",21)(3,$o,1,0,null,26),h()),t&2){let e=u();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Uo=["pTreeTableBody",""],jo=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),qo=(t,r)=>({$implicit:t,frozen:r});function Wo(t,r){t&1&&T(0)}function Go(t,r){if(t&1&&(U(0),p(1,Wo,1,0,"ng-container",2),j()),t&2){let e=u().$implicit,o=u();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",st(2,jo,e,e.node,e.node.data,o.columns))}}function Jo(t,r){if(t&1&&p(0,Go,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function Xo(t,r){t&1&&T(0)}function Zo(t,r){if(t&1&&(U(0),p(1,Xo,1,0,"ng-container",2),j()),t&2){let e=u();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",Y(2,qo,e.columns,e.frozen))}}var Yo=["scrollHeader"],el=["scrollHeaderBox"],tl=["scrollBody"],il=["scrollTable"],ol=["loadingTable"],ll=["scrollFooter"],nl=["scrollFooterBox"],rl=["scrollableAligner"],al=["scroller"],sl=["ttScrollableView",""],cl=t=>({height:t}),Yt=(t,r)=>({$implicit:t,options:r}),dl=t=>({options:t}),pl=(t,r)=>({"max-height":t,"overflow-y":r}),hl=()=>({});function ul(t,r){t&1&&T(0)}function ml(t,r){t&1&&T(0)}function gl(t,r){t&1&&T(0)}function fl(t,r){if(t&1&&p(0,gl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;u(2);let i=ne(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",Y(2,Yt,e,o))}}function bl(t,r){t&1&&T(0)}function _l(t,r){if(t&1&&p(0,bl,1,0,"ng-container",14),t&2){let e=r.options,o=u(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",z(2,dl,e))}}function yl(t,r){t&1&&(U(0),p(1,_l,1,4,"ng-template",null,5,x),j())}function Tl(t,r){if(t&1){let e=F();c(0,"p-scroller",19,3),D("onLazyLoad",function(i){M(e);let l=u();return P(l.tt.onLazyItemLoad(i))}),p(2,fl,1,5,"ng-template",null,4,x)(4,yl,3,0,"ng-container",17),h()}if(t&2){let e=u();Z(z(8,cl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Cl(t,r){t&1&&T(0)}function wl(t,r){if(t&1&&(U(0),c(1,"div",20,6),p(3,Cl,1,0,"ng-container",14),h(),j()),t&2){let e=u(),o=ne(11);s(),a("ngStyle",Y(3,pl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",Y(7,Yt,e.serializedValue,q(6,hl)))}}function vl(t,r){t&1&&T(0)}function Sl(t,r){t&1&&I(0,"div",24,8)}function xl(t,r){if(t&1&&(c(0,"table",21,7),p(2,vl,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Sl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=u();Z(o.contentStyle),le(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",z(13,A,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Il(t,r){t&1&&T(0)}function El(t,r){t&1&&T(0)}function kl(t,r){if(t&1&&(c(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Il,1,0,"ng-container",14),c(6,"tfoot",28),p(7,El,1,0,"ng-container",14),h()()()()),t&2){let e=u();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",z(6,A,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",z(8,A,e.columns))}}function zl(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&oe("aria-hidden",!0)}function Ll(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&oe("aria-hidden",!0)}function Dl(t,r){if(t&1&&(U(0),p(1,zl,1,1,"ChevronDownIcon",1)(2,Ll,1,1,"ChevronRightIcon",1),j()),t&2){let e=u();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Rl(t,r){}function Ml(t,r){t&1&&p(0,Rl,0,0,"ng-template")}var Pl=({dt:t})=>`
|
|
2
|
-
/* For PrimeNG */
|
|
3
|
-
.p-treetable {
|
|
4
|
-
position: relative;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.p-treetable table {
|
|
8
|
-
border-collapse: collapse;
|
|
9
|
-
width: 100%;
|
|
10
|
-
table-layout: fixed;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.p-treetable .p-sortable-column {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
user-select: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.p-treetable .p-sortable-column .p-column-title,
|
|
19
|
-
.p-treetable .p-sortable-column .p-sortable-column-icon,
|
|
20
|
-
.p-treetable .p-sortable-column .p-sortable-column-badge {
|
|
21
|
-
vertical-align: middle;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.p-treetable .p-sortable-column .p-sortable-column-badge {
|
|
25
|
-
display: inline-flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-treetable-auto-layout>.p-treetable-wrapper {
|
|
31
|
-
overflow-x: auto;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.p-treetable-auto-layout>.p-treetable-wrapper>table {
|
|
35
|
-
table-layout: auto;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-treetable-hoverable-rows .p-treetable-tbody>tr {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.p-treetable-toggler {
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
user-select: none;
|
|
45
|
-
display: inline-flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
vertical-align: middle;
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
position: relative;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* Scrollable */
|
|
55
|
-
.p-treetable-scrollable-wrapper {
|
|
56
|
-
position: relative;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-treetable-scrollable-header,
|
|
60
|
-
.p-treetable-scrollable-footer {
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.p-treetable-scrollable-body {
|
|
66
|
-
overflow: auto;
|
|
67
|
-
position: relative;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.p-treetable-virtual-table {
|
|
71
|
-
position: absolute;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* Frozen Columns */
|
|
75
|
-
.p-treetable-frozen-view .p-treetable-scrollable-body {
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child {
|
|
80
|
-
border-right: 0 none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.p-treetable-unfrozen-view {
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Flex Scrollable */
|
|
89
|
-
.p-treetable-flex-scrollable {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
flex: 1;
|
|
93
|
-
height: 100%;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.p-treetable-flex-scrollable .p-treetable-scrollable-wrapper,
|
|
97
|
-
.p-treetable-flex-scrollable .p-treetable-scrollable-view {
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
flex: 1;
|
|
101
|
-
height: 100%;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.p-treetable-flex-scrollable .p-treetable-virtual-scrollable-body {
|
|
105
|
-
flex: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* Resizable */
|
|
109
|
-
.p-treetable-resizable>.p-treetable-wrapper {
|
|
110
|
-
overflow-x: auto;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-treetable-resizable .p-treetable-thead>tr>th,
|
|
114
|
-
.p-treetable-resizable .p-treetable-tfoot>tr>td,
|
|
115
|
-
.p-treetable-resizable .p-treetable-tbody>tr>td {
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.p-treetable-resizable .p-resizable-column {
|
|
120
|
-
background-clip: padding-box;
|
|
121
|
-
position: relative;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {
|
|
125
|
-
display: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.p-treetable .p-column-resizer {
|
|
129
|
-
display: block;
|
|
130
|
-
position: absolute;
|
|
131
|
-
top: 0;
|
|
132
|
-
right: 0;
|
|
133
|
-
margin: 0;
|
|
134
|
-
width: ${t("treetable.column.resizer.width")};
|
|
135
|
-
height: 100%;
|
|
136
|
-
padding: 0px;
|
|
137
|
-
cursor: col-resize;
|
|
138
|
-
border: 1px solid transparent;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.p-treetable .p-column-resizer-helper {
|
|
142
|
-
width: ${t("treetable.resize.indicator.width")};
|
|
143
|
-
position: absolute;
|
|
144
|
-
z-index: 10;
|
|
145
|
-
display: none;
|
|
146
|
-
background: ${t("treetable.resize.indicator.color")};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.p-treetable .p-row-editor-init,
|
|
150
|
-
.p-treetable .p-row-editor-save,
|
|
151
|
-
.p-treetable .p-row-editor-cancel {
|
|
152
|
-
display: inline-flex;
|
|
153
|
-
align-items: center;
|
|
154
|
-
justify-content: center;
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
position: relative;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
/* Reorder */
|
|
161
|
-
.p-treetable-reorder-indicator-up,
|
|
162
|
-
.p-treetable-reorder-indicator-down {
|
|
163
|
-
position: absolute;
|
|
164
|
-
display: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
[ttReorderableColumn] {
|
|
168
|
-
cursor: move;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* Loader */
|
|
172
|
-
.p-treetable-mask {
|
|
173
|
-
position: absolute !important;
|
|
174
|
-
display: flex;
|
|
175
|
-
align-items: center;
|
|
176
|
-
justify-content: center;
|
|
177
|
-
z-index: 2;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.p-treetable-loading-icon {
|
|
181
|
-
font-size: ${t("treetable.loading.icon.size")};
|
|
182
|
-
width: ${t("treetable.loading.icon.size")};
|
|
183
|
-
height: ${t("treetable.loading.icon.size")};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/* Virtual Scroll */
|
|
187
|
-
.p-treetable .p-scroller-loading {
|
|
188
|
-
transform: none !important;
|
|
189
|
-
min-height: 0;
|
|
190
|
-
position: sticky;
|
|
191
|
-
top: 0;
|
|
192
|
-
left: 0;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.p-treetable .p-paginator-top {
|
|
196
|
-
border-color: ${t("treetable.paginator.top.border.color")};
|
|
197
|
-
border-style: solid;
|
|
198
|
-
border-width: ${t("treetable.paginator.top.border.width")};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.p-treetable .p-paginator-bottom {
|
|
202
|
-
border-color: ${t("treetable.paginator.bottom.border.color")};
|
|
203
|
-
border-style: solid;
|
|
204
|
-
border-width: ${t("treetable.paginator.bottom.border.width")};
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.p-treetable .p-treetable-header {
|
|
208
|
-
background: ${t("treetable.header.background")};
|
|
209
|
-
color: ${t("treetable.header.color")};
|
|
210
|
-
border-color: ${t("treetable.header.border.color")};
|
|
211
|
-
border-style: solid;
|
|
212
|
-
border-width: ${t("treetable.header.border.width")};
|
|
213
|
-
padding: ${t("treetable.header.padding")};
|
|
214
|
-
font-weight: ${t("treetable.column.title.font.weight")};
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.p-treetable .p-treetable-footer {
|
|
218
|
-
background: ${t("treetable.footer.background")};
|
|
219
|
-
color: ${t("treetable.footer.color")};
|
|
220
|
-
border-color: ${t("treetable.footer.border.color")};
|
|
221
|
-
border-style: solid;
|
|
222
|
-
border-width: ${t("treetable.footer.border.width")};
|
|
223
|
-
padding: ${t("treetable.footer.padding")};
|
|
224
|
-
font-weight: ${t("treetable.column.footer.font.weight")};
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.p-treetable .p-treetable-thead>tr>th {
|
|
228
|
-
padding: ${t("treetable.header.cell.padding")};
|
|
229
|
-
background: ${t("treetable.header.cell.background")};
|
|
230
|
-
border-color: ${t("treetable.header.cell.border.color")};
|
|
231
|
-
border-style: solid;
|
|
232
|
-
border-width: 0 0 1px 0;
|
|
233
|
-
color: ${t("treetable.header.cell.color")};
|
|
234
|
-
font-weight: ${t("treetable.column.title.font.weight")};
|
|
235
|
-
text-align: start;
|
|
236
|
-
transition: background ${t("treetable.transition.duration")}, color ${t("treetable.transition.duration")}, border-color ${t("treetable.transition.duration")},
|
|
237
|
-
outline-color ${t("treetable.transition.duration")}, box-shadow ${t("treetable.transition.duration")};
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.p-treetable .p-treetable-tfoot>tr>td {
|
|
241
|
-
text-align: start;
|
|
242
|
-
padding: ${t("treetable.footer.cell.padding")};
|
|
243
|
-
border-color: ${t("treetable.footer.cell.border.color")};
|
|
244
|
-
border-style: solid;
|
|
245
|
-
border-width: 0 0 1px 0;
|
|
246
|
-
color: ${t("treetable.footer.cell.color")};
|
|
247
|
-
background: ${t("treetable.footer.cell.background")};
|
|
248
|
-
font-weight: ${t("treetable.column.footer.font.weight")};
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.p-treetable .p-sortable-column {
|
|
252
|
-
cursor: pointer;
|
|
253
|
-
user-select: none;
|
|
254
|
-
outline-color: transparent;
|
|
255
|
-
vertical-align: middle;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.p-treetable .p-sortable-column .p-sortable-column-icon {
|
|
259
|
-
color: ${t("treetable.sort.icon.color")};
|
|
260
|
-
transition: color ${t("treetable.transition.duration")};
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
.p-treetable .p-sortable-column:not(.p-treetable-column-sorted):hover {
|
|
265
|
-
background: ${t("treetable.header.cell.hover.background")};
|
|
266
|
-
color: ${t("treetable.header.cell.hover.color")};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.p-treetable .p-sortable-column:not(.p-treetable-column-sorted):hover .p-sortable-column-icon {
|
|
270
|
-
color: ${t("treetable.sort.icon.hover.color")};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.p-treetable .p-sortable-column.p-treetable-column-sorted {
|
|
274
|
-
background: ${t("treetable.header.cell.selected.background")};
|
|
275
|
-
color: ${t("treetable.header.cell.selected.color")};
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.p-treetable .p-sortable-column.p-treetable-column-sorted .p-sortable-column-icon {
|
|
279
|
-
color: ${t("treetable.header.cell.selected.color")};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.p-treetable .p-sortable-column:focus-visible {
|
|
283
|
-
box-shadow: ${t("treetable.header.cell.focus.ring.shadow")};
|
|
284
|
-
outline: ${t("treetable.header.cell.focus.ring.width")} ${t("treetable.header.cell.focus.ring.style")} ${t("treetable.header.cell.focus.ring.color")};
|
|
285
|
-
outline-offset: ${t("treetable.header.cell.focus.ring.offset")};
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.p-treetable-hoverable .p-treetable-selectable-row {
|
|
289
|
-
cursor: pointer;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.p-treetable .p-treetable-tbody > tr {
|
|
293
|
-
outline-color: transparent;
|
|
294
|
-
background: ${t("treetable.row.background")};
|
|
295
|
-
color: ${t("treetable.row.color")};
|
|
296
|
-
transition: background ${t("treetable.transition.duration")}, color ${t("treetable.transition.duration")}, border-color ${t("treetable.transition.duration")},
|
|
297
|
-
outline-color ${t("treetable.transition.duration")}, box-shadow ${t("treetable.transition.duration")};
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.p-treetable .p-treetable-tbody>tr>td {
|
|
301
|
-
text-align: start;
|
|
302
|
-
border-color: ${t("treetable.body.cell.border.color")};
|
|
303
|
-
border-style: solid;
|
|
304
|
-
border-width: 0 0 1px 0;
|
|
305
|
-
padding: ${t("treetable.body.cell.padding")};
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler {
|
|
309
|
-
display: inline-flex;
|
|
310
|
-
align-items: center;
|
|
311
|
-
justify-content: center;
|
|
312
|
-
overflow: hidden;
|
|
313
|
-
position: relative;
|
|
314
|
-
width: ${t("treetable.node.toggle.button.size")};
|
|
315
|
-
height: ${t("treetable.node.toggle.button.size")};
|
|
316
|
-
color: ${t("treetable.node.toggle.button.color")};
|
|
317
|
-
border: 0 none;
|
|
318
|
-
background: transparent;
|
|
319
|
-
cursor: pointer;
|
|
320
|
-
border-radius: ${t("treetable.node.toggle.button.border.radius")};
|
|
321
|
-
transition: background ${t("treetable.transition.duration")}, color ${t("treetable.transition.duration")}, border-color ${t("treetable.transition.duration")},
|
|
322
|
-
outline-color ${t("treetable.transition.duration")}, box-shadow ${t("treetable.transition.duration")};
|
|
323
|
-
outline-color: transparent;
|
|
324
|
-
user-select: none;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler:enabled:hover {
|
|
328
|
-
color: ${t("treetable.node.toggle.button.hover.color")};
|
|
329
|
-
background: ${t("treetable.node.toggle.button.hover.background")};
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
.p-treetable .p-treetable-tbody>tr>tr.treetable-row-selected .p-treetable-toggler:hover {
|
|
333
|
-
background: ${t("treetable.node.toggle.button.selected.hover.background")};
|
|
334
|
-
color: ${t("treetable.node.toggle.button.selected.hover.color")};
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler:focus-visible {
|
|
338
|
-
box-shadow: ${t("treetable.node.toggle.button.focus.ring.shadow")};
|
|
339
|
-
outline: ${t("treetable.node.toggle.button.focus.ring.width")} ${t("treetable.node.toggle.button.focus.ring.style")} ${t("treetable.node.toggle.button.focus.ring.color")};
|
|
340
|
-
outline-offset: ${t("treetable.node.toggle.button.focus.ring.offset")};
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected {
|
|
345
|
-
background: ${t("treetable.row.selected.background")};
|
|
346
|
-
color: ${t("treetable.row.selected.color")};
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.p-treetable-tbody > tr:focus-visible,
|
|
350
|
-
.p-treetable-tbody > tr.p-treetable-contextmenu-row-selected {
|
|
351
|
-
box-shadow: ${t("treetable.row.focus.ring.shadow")};
|
|
352
|
-
outline: ${t("treetable.row.focus.ring.width")} ${t("treetable.row.focus.ring.style")} ${t("treetable.row.focus.ring.color")};
|
|
353
|
-
outline-offset: ${t("treetable.row.focus.ring.offset")};
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected .p-treetable-toggler {
|
|
357
|
-
color: inherit;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected .p-treetable-toggler:hover {
|
|
361
|
-
background: ${t("treetable.node.toggle.button.selected.hover.background")};
|
|
362
|
-
color: ${t("treetable.node.toggle.button.selected.hover.color")};
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody>tr:not(.p-treetable-row-selected):hover {
|
|
366
|
-
background: ${t("treetable.row.hover.background")};
|
|
367
|
-
color: ${t("treetable.row.hover.color")};
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.p-treetable.p-treetable-gridlines .p-datatable-header {
|
|
371
|
-
border-width: 1px 1px 0 1px;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.p-treetable.p-treetable-gridlines .p-treetable-footer {
|
|
375
|
-
border-width: 0 1px 1px 1px;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.p-treetable.p-treetable-gridlines .p-treetable-top {
|
|
379
|
-
border-width: 0 1px 0 1px;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.p-treetable.p-treetable-gridlines .p-treetable-bottom {
|
|
383
|
-
border-width: 0 1px 1px 1px;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.p-treetable.p-treetable-gridlines .p-treetable-thead>tr>th {
|
|
387
|
-
border-width: 1px;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.p-treetable.p-treetable-gridlines .p-treetable-tbody>tr>td {
|
|
391
|
-
border-width: 1px;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.p-treetable.p-treetable-gridlines .p-treetable-tfoot>tr>td {
|
|
395
|
-
border-width: 1px;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.p-treetable.p-treetable-sm .p-treetable-header {
|
|
399
|
-
padding: 0.65625rem 0.875rem;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.p-treetable.p-treetable-sm .p-treetable-thead>tr>th {
|
|
403
|
-
padding: 0.375rem 0.5rem;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.p-treetable.p-treetable-sm .p-treetable-tbody>tr>td {
|
|
407
|
-
padding: 0.375rem 0.5rem;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.p-treetable.p-treetable-sm .p-treetable-tfoot>tr>td {
|
|
411
|
-
padding: 0.375rem 0.5rem;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.p-treetable.p-treetable-sm .p-treetable-footer {
|
|
415
|
-
padding: 0.375rem 0.5rem;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.p-treetable.p-treetable-lg .p-treetable-header {
|
|
419
|
-
padding: 0.9375rem 1.25rem;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.p-treetable.p-treetable-lg .p-treetable-thead>tr>th {
|
|
423
|
-
padding: 0.9375rem 1.25rem;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.p-treetable.p-treetable-lg .p-treetable-tbody>tr>td {
|
|
427
|
-
padding: 0.9375rem 1.25rem;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.p-treetable.p-treetable-lg .p-treetable-tfoot>tr>td {
|
|
431
|
-
padding: 0.9375rem 1.25rem;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.p-treetable.p-treetable-lg .p-treetable-footer {
|
|
435
|
-
padding: 0.9375rem 1.25rem;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
p-treetabletoggler + p-treetablecheckbox .p-checkbox,
|
|
439
|
-
p-treetable-toggler + p-treetable-checkbox .p-checkbox,
|
|
440
|
-
p-tree-table-toggler + p-tree-table-checkbox .p-checkbox {
|
|
441
|
-
vertical-align: middle;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
p-treetabletoggler + p-treetablecheckbox + span,
|
|
445
|
-
p-treetable-toggler + p-treetable-checkbox + span,
|
|
446
|
-
p-tree-table-toggler + p-tree-table-checkbox + span {
|
|
447
|
-
vertical-align: middle;
|
|
448
|
-
}
|
|
449
|
-
`,Vl={root:({instance:t})=>({"p-treetable p-component":!0,"p-treetable-hoverable":t.rowHover||t.selectionMode,"p-treetable-resizable":t.resizableColumns,"p-treetable-resizable-fit":t.resizableColumns&&t.columnResizeMode==="fit","p-treetable-scrollable":t.scrollable,"p-treetable-flex-scrollable":t.scrollable&&t.scrollHeight==="flex","p-treetable-gridlines":t.showGridlines,"p-treetable-sm":t.size==="small","p-treetable-lg":t.size==="large"}),loading:"p-treetable-loading",mask:"p-treetable-mask p-overlay-mask",loadingIcon:"p-treetable-loading-icon",header:"p-treetable-header",paginator:({instance:t})=>"p-treetable-paginator-"+t.paginatorPosition,tableContainer:"p-treetable-table-container",table:({instance:t})=>({"p-treetable-table":!0,"p-treetable-scrollable-table":t.scrollable,"p-treetable-resizable-table":t.resizableColumns,"p-treetable-resizable-table-fit":t.resizableColumns&&t.columnResizeMode==="fit"}),thead:"p-treetable-thead",headerCell:({instance:t})=>({"p-treetable-header-cell":!0,"p-treetable-sortable-column":t.sortable,"p-treetable-resizable-column":t.resizableColumns,"p-treetable-column-sorted":t?.sorted,"p-treetable-frozen-column":t.columnProp("frozen")}),columnResizer:"p-treetable-column-resizer",columnHeaderContent:"p-treetable-column-header-content",columnTitle:"p-treetable-column-title",sortIcon:"p-treetable-sort-icon",pcSortBadge:"p-treetable-sort-badge",tbody:"p-treetable-tbody",row:({instance:t})=>({"p-treetable-row-selected":t.selected}),bodyCell:({instance:t})=>({"p-treetable-frozen-column":t.columnProp("frozen")}),bodyCellContent:({instance:t})=>({"p-treetable-body-cell-content":!0,"p-treetable-body-cell-content-expander":t.columnProp("expander")}),toggler:"p-treetable-body-cell-content-expander",nodeToggleButton:"p-treetable-node-toggle-button",nodeToggleIcon:"p-treetable-node-toggle-icon",pcNodeCheckbox:"p-treetable-node-checkbox",emptyMessage:"p-treetable-empty-message",tfoot:"p-treetable-tfoot",footerCell:({instance:t})=>({"p-treetable-frozen-column":t.columnProp("frozen")}),footer:"p-treetable-footer",columnResizeIndicator:"p-treetable-column-resize-indicator"},Nl={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},Zt=(()=>{class t extends wt{name="treetable";theme=Pl;classes=Vl;inlineStyles=Nl;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Te(t)))(i||t)}})();static \u0275prov=ye({token:t,factory:t.\u0275fac})}return t})();var $e=(()=>{class t{sortSource=new J;selectionSource=new J;contextMenuSource=new J;uiUpdateSource=new J;totalRecordsSource=new J;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();uiUpdateSource$=this.uiUpdateSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onUIUpdate(e){this.uiUpdateSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac})}return t})(),te=(()=>{class t extends Pe{_componentStyle=K(Zt);columns;style;styleClass;tableStyle;tableStyleClass;autoLayout;lazy=!1;lazyLoadOnInit=!0;paginator;rows;first=0;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;customSort;selectionMode;contextMenuSelection;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;compareSelectionBy="deepEquals";rowHover;loading;loadingIcon;showLoader=!0;scrollable;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=150;frozenWidth;frozenColumns;resizableColumns;columnResizeMode="fit";reorderableColumns;contextMenu;rowTrackBy=(e,o)=>o;filters={};globalFilterFields;filterDelay=300;filterMode="lenient";filterLocale;paginatorLocale;get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get value(){return this._value}set value(e){this._value=e}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.log("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}get selectionKeys(){return this._selectionKeys}set selectionKeys(e){this._selectionKeys=e,this.selectionKeysChange.emit(this._selectionKeys)}showGridlines=!1;selectionChange=new S;contextMenuSelectionChange=new S;onFilter=new S;onNodeExpand=new S;onNodeCollapse=new S;onPage=new S;onSort=new S;onLazyLoad=new S;sortFunction=new S;onColResize=new S;onColReorder=new S;onNodeSelect=new S;onNodeUnselect=new S;onContextMenuSelect=new S;onHeaderCheckboxToggle=new S;onEditInit=new S;onEditComplete=new S;onEditCancel=new S;selectionKeysChange=new S;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;tableViewChild;scrollableViewChild;scrollableFrozenViewChild;_value=[];_virtualRowHeight=28;_selectionKeys;serializedValue;_totalRecords=0;_multiSortMeta;_sortField;_sortOrder=1;filteredNodes;filterTimeout;_colGroupTemplate;colGroupTemplate;_captionTemplate;captionTemplate;_headerTemplate;headerTemplate;_bodyTemplate;bodyTemplate;_footerTemplate;footerTemplate;_summaryTemplate;summaryTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_togglerIconTemplate;togglerIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;_loaderTemplate;loaderTemplate;lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;dropPosition;preventSelectionSetterPropagation;_selection;selectedKeys={};rowTouched;editingCell;editingCellData;editingCellField;editingCellClick;documentEditListener;initialized;toggleRowIndex;ngOnInit(){super.ngOnInit(),this.lazy&&this.lazyLoadOnInit&&!this.virtualScroll&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.initialized=!0}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break;case"togglericon":this.togglerIconTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break}})}filterService=K(Ct);tableService=K($e);zone=K(ie);ngOnChanges(e){super.ngOnChanges(e),e.value&&(this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&this.sortField?this.sortSingle():this.sortMode=="multiple"&&this.multiSortMeta?this.sortMultiple():this.hasFilter()&&this._filter()),this.updateSerializedValue(),this.tableService.onUIUpdate(this.value)),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateselectedKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1)}updateSerializedValue(){this.serializedValue=[],this.paginator?this.serializePageNodes():this.serializeNodes(null,this.filteredNodes||this.value,0,!0)}serializeNodes(e,o,i,l){if(o&&o.length)for(let n of o){n.parent=e;let d={node:n,parent:e,level:i,visible:l&&(e?e.expanded:!0)};this.serializedValue.push(d),d.visible&&n.expanded&&this.serializeNodes(n,n.children,i+1,d.visible)}}serializePageNodes(){let e=this.filteredNodes||this.value;if(this.serializedValue=[],e&&e.length){let o=this.lazy?0:this.first;for(let i=o;i<o+this.rows;i++){let l=e[i];l&&(this.serializedValue.push({node:l,parent:null,level:0,visible:!0}),this.serializeNodes(l,l.children,1,!0))}}}updateselectedKeys(){if(this.dataKey&&this._selection)if(this.selectedKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectedKeys[String(R(e.data,this.dataKey))]=1;else this.selectedKeys[String(R(this._selection.data,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.serializePageNodes(),this.onPage.emit({first:this.first,rows:this.rows}),this.tableService.onUIUpdate(this.value),this.scrollable&&this.resetScrollTop()}sort(e){let o=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.sortSingle(),this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.sortMode==="multiple"){let i=o.metaKey||o.ctrlKey,l=this.getSortMeta(e.field);l?i?l.order=l.order*-1:(this._multiSortMeta=[{field:e.field,order:l.order*-1}],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()):((!i||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}}sortSingle(){if(this.sortField&&this.sortOrder){this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortNodes(this.value),this.hasFilter()&&this._filter());let e={field:this.sortField,order:this.sortOrder};this.onSort.emit(e),this.tableService.onSort(e),this.updateSerializedValue()}}sortNodes(e){if(!(!e||e.length===0)){this.customSort?this.sortFunction.emit({data:e,mode:this.sortMode,field:this.sortField,order:this.sortOrder}):e.sort((o,i)=>{let l=R(o.data,this.sortField),n=R(i.data,this.sortField),d=null;return l==null&&n!=null?d=-1:l!=null&&n==null?d=1:l==null&&n==null?d=0:typeof l=="string"&&typeof n=="string"?d=l.localeCompare(n,void 0,{numeric:!0}):d=l<n?-1:l>n?1:0,this.sortOrder*d});for(let o of e)this.sortNodes(o.children)}}sortMultiple(){this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortMultipleNodes(this.value),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.updateSerializedValue(),this.tableService.onSort(this.multiSortMeta))}sortMultipleNodes(e){if(!(!e||e.length===0)){this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):e.sort((o,i)=>this.multisortField(o,i,this.multiSortMeta,0));for(let o of e)this.sortMultipleNodes(o.children)}}multisortField(e,o,i,l){if(De(this.multiSortMeta)||De(i[l]))return 0;let n=R(e.data,i[l].field),d=R(o.data,i[l].field),m=null;if(n==null&&d!=null?m=-1:n!=null&&d==null?m=1:n==null&&d==null&&(m=0),typeof n=="string"||n instanceof String){if(n.localeCompare&&n!=d)return i[l].order*n.localeCompare(d,void 0,{numeric:!0})}else m=n<d?-1:1;return n==d?i.length-1>l?this.multisortField(e,o,i,l+1):0:i[l].order*m}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let o=0;o<this.multiSortMeta.length;o++)if(this.multiSortMeta[o].field===e)return this.multiSortMeta[o]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let o=!1;if(this.multiSortMeta){for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field==e){o=!0;break}}return o}}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}onLazyItemLoad(e){this.onLazyLoad.emit(qe(G(G({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scrollableViewChild&&this.scrollableViewChild.scrollToVirtualIndex(e),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollToVirtualIndex(e)}scrollTo(e){this.scrollableViewChild&&this.scrollableViewChild.scrollTo(e),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollTo(e)}isEmpty(){let e=this.filteredNodes||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}onColumnResizeBegin(e){let o=ce(this.containerViewChild?.nativeElement).left;this.lastResizerHelperX=e.pageX-o+this.containerViewChild?.nativeElement.scrollLeft,e.preventDefault()}onColumnResize(e){let o=ce(this.containerViewChild?.nativeElement).left;Ee(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-o+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(e,o){let i=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,l=o.offsetWidth,n=l+i,d=o.style.minWidth||15;if(l+i>parseInt(d)){if(this.columnResizeMode==="fit"){let m=o.nextElementSibling;for(;!m.offsetParent;)m=m.nextElementSibling;if(m){let y=m.offsetWidth-i,C=m.style.minWidth||15;if(n>15&&y>parseInt(C))if(this.scrollable){let L=this.findParentScrollableView(o),v=E(L,".p-treetable-scrollable-body table")||E(L,".p-scroller-viewport table"),N=E(L,"table.p-treetable-scrollable-header-table"),O=E(L,"table.p-treetable-scrollable-footer-table"),H=se(o);this.resizeColGroup(N,H,n,y),this.resizeColGroup(v,H,n,y),this.resizeColGroup(O,H,n,y)}else o.style.width=n+"px",m&&(m.style.width=y+"px")}}else if(this.columnResizeMode==="expand")if(this.scrollable){let m=this.findParentScrollableView(o),y=E(m,".p-treetable-scrollable-body")||E(m,".p-scroller-viewport"),C=E(m,".p-treetable-scrollable-header"),L=E(m,".p-treetable-scrollable-footer"),v=E(m,".p-treetable-scrollable-body table")||E(m,".p-scroller-viewport table"),N=E(m,"table.p-treetable-scrollable-header-table"),O=E(m,"table.p-treetable-scrollable-footer-table");v.style.width=v.offsetWidth+i+"px",N.style.width=N.offsetWidth+i+"px",O&&(O.style.width=O.offsetWidth+i+"px");let H=se(o),de=o?v.offsetWidth+i:n,pe=o?N.offsetWidth+i:n,fe=this.containerViewChild?.nativeElement.offsetWidth>=de,be=(Qe,Ue,je,ni)=>{Qe&&Ue&&(Qe.style.width=ni?je+ze(y)+"px":"auto",Ue.style.width=je+"px")};be(y,v,de,fe),be(C,N,pe,fe),be(L,O,pe,fe),this.resizeColGroup(N,H,n,null),this.resizeColGroup(v,H,n,null),this.resizeColGroup(O,H,n,null)}else{this.tableViewChild.nativeElement.style.width=this.tableViewChild?.nativeElement.offsetWidth+i+"px",o.style.width=n+"px";let m=this.tableViewChild?.nativeElement.style.width;this.containerViewChild.nativeElement.style.width=m+"px"}this.onColResize.emit({element:o,delta:i})}this.resizeHelperViewChild.nativeElement.style.display="none",ke(this.containerViewChild?.nativeElement,"p-unselectable-text")}findParentScrollableView(e){if(e){let o=e.parentElement;for(;o&&!Ie(o,"p-treetable-scrollable-view");)o=o.parentElement;return o}else return null}resizeColGroup(e,o,i,l){if(e){let n=e.children[0].nodeName==="COLGROUP"?e.children[0]:null;if(n){let d=n.children[o],m=d.nextElementSibling;d.style.width=i+"px",m&&l&&(m.style.width=l+"px")}else throw"Scrollable tables require a colgroup to support resizable columns"}}onColumnDragStart(e,o){this.reorderIconWidth=_t(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=bt(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=o,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,o){if(this.reorderableColumns&&this.draggedColumn&&o){e.preventDefault();let i=ce(this.containerViewChild?.nativeElement),l=ce(o);if(this.draggedColumn!=o){let n=l.left-i.left,d=i.top-l.top,m=l.left+o.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=l.top-i.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=l.top-i.top+o.offsetHeight+"px",e.pageX>m?(this.reorderIndicatorUpViewChild.nativeElement.style.left=n+o.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=n+o.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=n-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=n-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,o){if(e.preventDefault(),this.draggedColumn){let i=Ve.indexWithinGroup(this.draggedColumn,"ttreorderablecolumn"),l=Ve.indexWithinGroup(o,"ttreorderablecolumn"),n=i!=l;n&&(l-i==1&&this.dropPosition===-1||i-l==1&&this.dropPosition===1)&&(n=!1),n&&l<i&&this.dropPosition===1&&(l=l+1),n&&l>i&&this.dropPosition===-1&&(l=l-1),n&&(Tt(this.columns,i,l),this.onColReorder.emit({dragIndex:i,dropIndex:l,columns:this.columns})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}handleRowClick(e){let o=e.originalEvent.target.nodeName;if(!(o=="INPUT"||o=="BUTTON"||o=="A"||Ie(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){this.preventSelectionSetterPropagation=!0;let i=e.rowNode,l=this.isSelected(i.node),n=this.rowTouched?!1:this.metaKeySelection,d=this.dataKey?String(R(i.node.data,this.dataKey)):null;if(n){let m=e.originalEvent,y=m.metaKey||m.ctrlKey;if(l&&y){if(this.isSingleSelectionMode())this._selection=null,this.selectedKeys={},this.selectionChange.emit(null);else{let C=this.findIndexInSelection(i.node);this._selection=this.selection.filter((L,v)=>v!=C),this.selectionChange.emit(this.selection),d&&delete this.selectedKeys[d]}this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"})}else this.isSingleSelectionMode()?(this._selection=i.node,this.selectionChange.emit(i.node),d&&(this.selectedKeys={},this.selectedKeys[d]=1)):this.isMultipleSelectionMode()&&(y?this._selection=this.selection||[]:(this._selection=[],this.selectedKeys={}),this._selection=[...this.selection,i.node],this.selectionChange.emit(this.selection),d&&(this.selectedKeys[d]=1)),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectedKeys={},this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"})):(this._selection=i.node,this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex}),d&&(this.selectedKeys={},this.selectedKeys[d]=1));else if(this.selectionMode==="multiple")if(l){let m=this.findIndexInSelection(i.node);this._selection=this.selection.filter((y,C)=>C!=m),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"}),d&&delete this.selectedKeys[d]}else this._selection=this.selection?[...this.selection,i.node]:[i.node],this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex}),d&&(this.selectedKeys[d]=1);this.tableService.onSelectionChange()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let o=e.rowNode.node;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=o,this.contextMenuSelectionChange.emit(o),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:o}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(o);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let i=this.isSelected(o),l=this.dataKey?String(R(o.data,this.dataKey)):null;i||(this.isSingleSelectionMode()?(this.selection=o,this.selectionChange.emit(o)):this.isMultipleSelectionMode()&&(this.selection=[o],this.selectionChange.emit(this.selection)),l&&(this.selectedKeys[l]=1)),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:o})}}}toggleNodeWithCheckbox(e){this.selection=this.selection||[],this.preventSelectionSetterPropagation=!0;let o=e.rowNode.node;this.isSelected(o)?(this.propagateSelectionDown(o,!1),e.rowNode.parent&&this.propagateSelectionUp(o.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:o})):(this.propagateSelectionDown(o,!0),e.rowNode.parent&&this.propagateSelectionUp(o.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:o})),this.tableService.onSelectionChange()}toggleNodesWithCheckbox(e,o){let i=this.filteredNodes||this.value;this._selection=o&&i?i.slice():[],this.toggleAll(o),o||(this._selection=[],this.selectedKeys={}),this.preventSelectionSetterPropagation=!0,this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:o})}toggleAll(e){let o=this.filteredNodes||this.value;if(this.selectionKeys){if(o&&o.length){for(let i of o)this.propagateDown(i,e);this.selectionKeysChange.emit(this.selectionKeys)}}else if(o&&o.length)for(let i of o)this.propagateSelectionDown(i,e)}propagateSelectionUp(e,o){if(e.children&&e.children.length){let l=0,n=!1,d=this.dataKey?String(R(e.data,this.dataKey)):null;for(let m of e.children)this.isSelected(m)?l++:m.partialSelected&&(n=!0);if(o&&l==e.children.length)this._selection=[...this.selection||[],e],e.partialSelected=!1,d&&(this.selectedKeys[d]=1);else{if(!o){let m=this.findIndexInSelection(e);m>=0&&(this._selection=this.selection.filter((y,C)=>C!=m),d&&delete this.selectedKeys[d])}n||l>0&&l!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}}let i=e.parent;e.checked=o,i&&this.propagateSelectionUp(i,o)}propagateSelectionDown(e,o){let i=this.findIndexInSelection(e),l=this.dataKey?String(R(e.data,this.dataKey)):null;if(o&&i==-1?(this._selection=[...this.selection||[],e],l&&(this.selectedKeys[l]=1)):!o&&i>-1&&(this._selection=this.selection.filter((n,d)=>d!=i),l&&delete this.selectedKeys[l]),e.partialSelected=!1,e.checked=o,e.children&&e.children.length)for(let n of e.children)this.propagateSelectionDown(n,o)}isSelected(e){return e&&this.selection?this.dataKey?e.hasOwnProperty("checked")?e.checked:this.selectedKeys[R(e.data,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}isNodeSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.checked===!0:!1}isNodePartialSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.partialChecked===!0:!1}nodeKey(e){return R(e,this.dataKey)||R(e?.data,this.dataKey)}toggleCheckbox(e){let{rowNode:o,check:i,originalEvent:l}=e,n=o.node;this.selectionKeys?(this.propagateDown(n,i),n.parent&&this.propagateUp(n.parent,i),this.selectionKeysChange.emit(this.selectionKeys)):this.toggleNodeWithCheckbox({originalEvent:l,rowNode:o}),this.tableService.onSelectionChange()}propagateDown(e,o){if(o?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:delete this.selectionKeys[this.nodeKey(e)],e.children&&e.children.length)for(let i of e.children)this.propagateDown(i,o)}propagateUp(e,o){let i=0,l=!1;for(let d of e.children)this.selectionKeys[this.nodeKey(d)]&&this.selectionKeys[this.nodeKey(d)].checked?i++:this.selectionKeys[this.nodeKey(d)]&&this.selectionKeys[this.nodeKey(d)].partialChecked&&(l=!0);o&&i===e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:(o||delete this.selectionKeys[this.nodeKey(e)],l||i>0&&i!==e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!0}:this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!1});let n=e.parent;n&&this.propagateUp(n,o)}findIndexInSelection(e){let o=-1;if(this.selection&&this.selection.length){for(let i=0;i<this.selection.length;i++)if(this.equals(e,this.selection[i])){o=i;break}}return o}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}equals(e,o){return this.compareSelectionBy==="equals"?Re(e,o):Re(e.data,o.data,this.dataKey)}filter(e,o,i){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[o]&&delete this.filters[o]:this.filters[o]={value:e,matchMode:i},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay)}filterGlobal(e,o){this.filter(e,"global",o)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredNodes=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let o;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");o=this.globalFilterFields||this.columns}this.filteredNodes=[];let i=this.filterMode==="strict",l=!1;for(let n of this.value){let d=G({},n),m=!0,y=!1,C;for(let v in this.filters)if(this.filters.hasOwnProperty(v)&&v!=="global"){let N=this.filters[v],O=v,H=N.value,de=N.matchMode||"startsWith",pe=this.filterService.filters[de];if(C={filterField:O,filterValue:H,filterConstraint:pe,isStrictMode:i},(i&&!(this.findFilteredNodes(d,C)||this.isFilterMatched(d,C))||!i&&!(this.isFilterMatched(d,C)||this.findFilteredNodes(d,C)))&&(m=!1),!m)break}if(this.filters.global&&!y&&o){let v=G({},d),N,O=this.filters.global.value,H=this.filterService.filters[this.filters.global.matchMode];C={filterField:N,filterValue:O,filterConstraint:H,isStrictMode:i,globalFilterFieldsArray:o},(i&&(this.findFilteredNodes(v,C)||this.isFilterMatched(v,C))||!i&&(this.isFilterMatched(v,C)||this.findFilteredNodes(v,C)))&&(y=!0,d=v)}let L=m;this.filters.global&&(L=m&&y),L&&this.filteredNodes.push(d),l=l||!m||y||m&&this.filteredNodes.length>0||!y&&this.filteredNodes.length===0}l||(this.filteredNodes=null),this.paginator&&(this.totalRecords=this.filteredNodes?this.filteredNodes.length:this.value?this.value.length:0)}this.cd.markForCheck()}this.first=0;let e=this.filteredNodes||this.value;this.onFilter.emit({filters:this.filters,filteredValue:e}),this.tableService.onUIUpdate(e),this.updateSerializedValue(),this.scrollable&&this.resetScrollTop()}findFilteredNodes(e,o){if(e){let i=!1;if(e.children){let l=[...e.children];e.children=[];for(let n of l){let d=G({},n);this.isFilterMatched(d,o)&&(i=!0,e.children.push(d))}}if(i)return!0}}isFilterMatched(e,o){let{filterField:i,filterValue:l,filterConstraint:n,isStrictMode:d,globalFilterFieldsArray:m}=o,y=!1,C=L=>n(R(e.data,L),l,this.filterLocale);return y=m?.length?m.some(L=>C(L.field||L)):C(i),(!y||d&&!this.isNodeLeaf(e))&&(y=this.findFilteredNodes(e,{filterField:i,filterValue:l,filterConstraint:n,isStrictMode:d,globalFilterFieldsArray:m})||y),y}isNodeLeaf(e){return e.leaf===!1?!1:!(e.children&&e.children.length)}hasFilter(){let e=!0;for(let o in this.filters)if(this.filters.hasOwnProperty(o)){e=!1;break}return!e}reset(){this._sortField=null,this._sortOrder=1,this._multiSortMeta=null,this.tableService.onSort(null),this.filteredNodes=null,this.filters={},this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}updateEditingCell(e,o,i){this.editingCell=e,this.editingCellData=o,this.editingCellField=i,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&ee(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.editingCellClick&&this.isEditingCellValid()&&(ke(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData}),this.editingCellField=null,this.editingCellData=null,this.unbindDocumentEditListener()),this.editingCellClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.editingCellField=null,this.editingCellData=null,this.initialized=null,super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Te(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-treeTable"],["p-treetable"],["p-tree-table"]],contentQueries:function(o,i,l){if(o&1&&(b(l,di,4),b(l,pi,4),b(l,hi,4),b(l,ui,4),b(l,mi,4),b(l,gi,4),b(l,fi,4),b(l,bi,4),b(l,_i,4),b(l,yi,4),b(l,Ti,4),b(l,Ci,4),b(l,wi,4),b(l,vi,4),b(l,Si,4),b(l,xi,4),b(l,Ii,4),b(l,Ei,4),b(l,ki,4),b(l,zi,4),b(l,Li,4),b(l,Di,4),b(l,Ri,4),b(l,Mi,4),b(l,Pi,4),b(l,Vi,4),b(l,ge,4)),o&2){let n;g(n=f())&&(i._colGroupTemplate=n.first),g(n=f())&&(i._captionTemplate=n.first),g(n=f())&&(i._headerTemplate=n.first),g(n=f())&&(i._bodyTemplate=n.first),g(n=f())&&(i._footerTemplate=n.first),g(n=f())&&(i._summaryTemplate=n.first),g(n=f())&&(i._emptyMessageTemplate=n.first),g(n=f())&&(i._paginatorLeftTemplate=n.first),g(n=f())&&(i._paginatorRightTemplate=n.first),g(n=f())&&(i._paginatorDropdownItemTemplate=n.first),g(n=f())&&(i._frozenHeaderTemplate=n.first),g(n=f())&&(i._frozenBodyTemplate=n.first),g(n=f())&&(i._frozenFooterTemplate=n.first),g(n=f())&&(i._frozenColGroupTemplate=n.first),g(n=f())&&(i._loadingIconTemplate=n.first),g(n=f())&&(i._reorderIndicatorUpIconTemplate=n.first),g(n=f())&&(i._reorderIndicatorDownIconTemplate=n.first),g(n=f())&&(i._sortIconTemplate=n.first),g(n=f())&&(i._checkboxIconTemplate=n.first),g(n=f())&&(i._headerCheckboxIconTemplate=n.first),g(n=f())&&(i._togglerIconTemplate=n.first),g(n=f())&&(i._paginatorFirstPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorLastPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorPreviousPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorNextPageLinkIconTemplate=n.first),g(n=f())&&(i._loaderTemplate=n.first),g(n=f())&&(i.templates=n)}},viewQuery:function(o,i){if(o&1&&(k(Ni,5),k(Fi,5),k(Oi,5),k(Hi,5),k(Bi,5),k(Ai,5),k(Ki,5)),o&2){let l;g(l=f())&&(i.containerViewChild=l.first),g(l=f())&&(i.resizeHelperViewChild=l.first),g(l=f())&&(i.reorderIndicatorUpViewChild=l.first),g(l=f())&&(i.reorderIndicatorDownViewChild=l.first),g(l=f())&&(i.tableViewChild=l.first),g(l=f())&&(i.scrollableViewChild=l.first),g(l=f())&&(i.scrollableFrozenViewChild=l.first)}},inputs:{columns:"columns",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",autoLayout:[2,"autoLayout","autoLayout",w],lazy:[2,"lazy","lazy",w],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",w],paginator:[2,"paginator","paginator",w],rows:[2,"rows","rows",$],first:[2,"first","first",$],pageLinks:[2,"pageLinks","pageLinks",$],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",w],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",w],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",w],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",w],showPageLinks:[2,"showPageLinks","showPageLinks",w],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",$],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",w],customSort:[2,"customSort","customSort",w],selectionMode:"selectionMode",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",w],compareSelectionBy:"compareSelectionBy",rowHover:[2,"rowHover","rowHover",w],loading:[2,"loading","loading",w],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",w],scrollable:[2,"scrollable","scrollable",w],scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",$],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",$],frozenWidth:"frozenWidth",frozenColumns:"frozenColumns",resizableColumns:[2,"resizableColumns","resizableColumns",w],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",w],contextMenu:"contextMenu",rowTrackBy:"rowTrackBy",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",$],filterMode:"filterMode",filterLocale:"filterLocale",paginatorLocale:"paginatorLocale",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",value:"value",virtualRowHeight:"virtualRowHeight",selectionKeys:"selectionKeys",showGridlines:[2,"showGridlines","showGridlines",w]},outputs:{selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onFilter:"onFilter",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onPage:"onPage",onSort:"onSort",onLazyLoad:"onLazyLoad",sortFunction:"sortFunction",onColResize:"onColResize",onColReorder:"onColReorder",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onContextMenuSelect:"onContextMenuSelect",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",selectionKeysChange:"selectionKeysChange"},standalone:!1,features:[at([$e,Zt]),we,Xe],decls:12,vars:21,consts:[["container",""],["table",""],["scrollableView",""],["scrollableFrozenView",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],["data-scrollselectors",".p-treetable-scrollable-body",3,"ngStyle","ngClass"],["class","p-treetable-loading",4,"ngIf"],["class","p-treetable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-wrapper",4,"ngIf"],["class","p-treetable-scrollable-wrapper",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-treetable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-treetable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-treetable-loading"],[1,"p-overlay-mask","p-treetable-mask"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-treetable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-treetable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-treetable-header"],["styleClass","p-paginator-top",3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[1,"p-treetable-wrapper"],["role","table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate"],["role","rowgroup",1,"p-treetable-tfoot"],[1,"p-treetable-scrollable-wrapper"],["class","p-treetable-scrollable-view p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight",4,"ngIf"],[1,"p-treetable-scrollable-view",3,"ttScrollableView","frozen","scrollHeight","ngStyle"],[1,"p-treetable-scrollable-view","p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight"],["styleClass","p-paginator-bottom",3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale"],[1,"p-treetable-footer"],[1,"p-column-resizer-helper",2,"display","none"],[1,"p-treetable-reorder-indicator-up",2,"display","none"],[1,"p-treetable-reorder-indicator-down",2,"display","none"]],template:function(o,i){o&1&&(c(0,"div",7,0),p(2,Zi,4,2,"div",8)(3,eo,2,1,"div",9)(4,mo,5,21,"p-paginator",10)(5,_o,9,16,"div",11)(6,To,4,8,"div",12)(7,Mo,5,21,"p-paginator",13)(8,Vo,2,1,"div",14)(9,No,2,0,"div",15)(10,Bo,4,2,"span",16)(11,Qo,4,2,"span",17),h()),o&2&&(le(i.styleClass),a("ngStyle",i.style)("ngClass",ct(14,$i,i.showGridlines,i.rowHover||i.selectionMode==="single"||i.selectionMode==="multiple",i.autoLayout,i.resizableColumns,i.resizableColumns&&i.columnResizeMode==="fit",i.scrollable&&i.scrollHeight==="flex")),s(2),a("ngIf",i.loading&&i.showLoader),s(),a("ngIf",i.captionTemplate||i._captionTemplate),s(),a("ngIf",i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")),s(),a("ngIf",!i.scrollable),s(),a("ngIf",i.scrollable),s(),a("ngIf",i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")),s(),a("ngIf",i.summaryTemplate||i._summaryTemplate),s(),a("ngIf",i.resizableColumns),s(),a("ngIf",i.reorderableColumns),s(),a("ngIf",i.reorderableColumns))},dependencies:()=>[re,W,ae,xe,At,ge,Be,Ne,Fe,Fl,ei],encapsulation:2})}return t})(),ei=(()=>{class t{tt;treeTableService;cd;columns;template;frozen;serializedNodes;scrollerOptions;subscription;constructor(e,o,i){this.tt=e,this.treeTableService=o,this.cd=i,this.subscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.tt.virtualScroll&&this.cd.detectChanges()})}getScrollerOption(e,o){return this.tt.virtualScroll?(o=o||this.scrollerOptions,o?o[e]:null):null}getRowIndex(e){let o=this.getScrollerOption("getItemOptions");return o?o(e).index:e}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(o){return new(o||t)(V(te),V($e),V(ht))};static \u0275cmp=Q({type:t,selectors:[["","pTreeTableBody",""]],inputs:{columns:[0,"pTreeTableBody","columns"],template:[0,"pTreeTableBodyTemplate","template"],frozen:[2,"frozen","frozen",w],serializedNodes:"serializedNodes",scrollerOptions:"scrollerOptions"},standalone:!1,attrs:Uo,decls:2,vars:3,consts:[["ngFor","",3,"ngForOf","ngForTrackBy"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){o&1&&p(0,Jo,1,1,"ng-template",0)(1,Zo,2,5,"ng-container",1),o&2&&(a("ngForOf",i.serializedNodes||i.tt.serializedValue)("ngForTrackBy",i.tt.rowTrackBy),s(),a("ngIf",i.tt.isEmpty()))},dependencies:[ut,W,ae],encapsulation:2})}return t})(),Fl=(()=>{class t{platformId;renderer;tt;el;zone;columns;frozen;scrollHeaderViewChild;scrollHeaderBoxViewChild;scrollBodyViewChild;scrollTableViewChild;scrollLoadingTableViewChild;scrollFooterViewChild;scrollFooterBoxViewChild;scrollableAlignerViewChild;scroller;headerScrollListener;bodyScrollListener;footerScrollListener;frozenSiblingBody;totalRecordsSubscription;_scrollHeight;preventBodyScrollPropagation;get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e,e!=null&&(e.includes("%")||e.includes("calc"))&&console.log('Percentage scroll height calculation is removed in favor of the more performant CSS based flex mode, use scrollHeight="flex" instead.')}constructor(e,o,i,l,n){this.platformId=e,this.renderer=o,this.tt=i,this.el=l,this.zone=n}ngAfterViewInit(){if(ue(this.platformId)){if(this.frozen)this.scrollableAlignerViewChild&&this.scrollableAlignerViewChild.nativeElement&&(this.scrollableAlignerViewChild.nativeElement.style.height=ft()+"px");else{(this.tt.frozenColumns||this.tt.frozenBodyTemplate||this.tt._frozenBodyTemplate)&&Ee(this.el.nativeElement,"p-treetable-unfrozen-view");let e=this.el.nativeElement.previousElementSibling;if(e&&(this.tt.virtualScroll?this.frozenSiblingBody=E(e,".p-scroller-viewport"):this.frozenSiblingBody=E(e,".p-treetable-scrollable-body")),this.scrollHeight){let o=ze();this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight=o+"px",this.scrollFooterBoxViewChild&&this.scrollFooterBoxViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.paddingRight=o+"px")}}this.bindEvents()}}bindEvents(){ue(this.platformId)&&this.zone.runOutsideAngular(()=>{this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.headerScrollListener=this.renderer.listen(this.scrollHeaderBoxViewChild?.nativeElement,"scroll",this.onHeaderScroll.bind(this))),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.footerScrollListener=this.renderer.listen(this.scrollFooterViewChild.nativeElement,"scroll",this.onFooterScroll.bind(this))),this.frozen||(this.tt.virtualScroll?this.bodyScrollListener=this.renderer.listen((this.scroller?.getElementRef()).nativeElement,"scroll",this.onBodyScroll.bind(this)):this.bodyScrollListener=this.renderer.listen(this.scrollBodyViewChild?.nativeElement,"scroll",this.onBodyScroll.bind(this)))})}unbindEvents(){ue(this.platformId)&&(this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&this.headerScrollListener&&(this.headerScrollListener(),this.headerScrollListener=null),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&this.footerScrollListener&&(this.footerScrollListener(),this.footerScrollListener=null),this.scrollBodyViewChild&&this.scrollBodyViewChild.nativeElement&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null),this.scroller&&this.scroller.getElementRef()&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null))}onHeaderScroll(){let e=this.scrollHeaderViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onFooterScroll(){let e=this.scrollFooterViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onBodyScroll(e){if(this.preventBodyScrollPropagation){this.preventBodyScrollPropagation=!1;return}this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderBoxViewChild.nativeElement.style.marginLeft=-1*e.target.scrollLeft+"px"),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.marginLeft=-1*e.target.scrollLeft+"px"),this.frozenSiblingBody&&(this.frozenSiblingBody.scrollTop=e.target.scrollTop)}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.scroller?this.scroller.scrollTo(e):this.scrollBodyViewChild?.nativeElement.scrollTo?this.scrollBodyViewChild.nativeElement.scrollTo(e):(this.scrollBodyViewChild.nativeElement.scrollLeft=e.left,this.scrollBodyViewChild.nativeElement.scrollTop=e.top)}ngOnDestroy(){this.unbindEvents(),this.frozenSiblingBody=null}static \u0275fac=function(o){return new(o||t)(V(Ze),V(et),V(te),V(Ce),V(ie))};static \u0275cmp=Q({type:t,selectors:[["","ttScrollableView",""]],viewQuery:function(o,i){if(o&1&&(k(Yo,5),k(el,5),k(tl,5),k(il,5),k(ol,5),k(ll,5),k(nl,5),k(rl,5),k(al,5)),o&2){let l;g(l=f())&&(i.scrollHeaderViewChild=l.first),g(l=f())&&(i.scrollHeaderBoxViewChild=l.first),g(l=f())&&(i.scrollBodyViewChild=l.first),g(l=f())&&(i.scrollTableViewChild=l.first),g(l=f())&&(i.scrollLoadingTableViewChild=l.first),g(l=f())&&(i.scrollFooterViewChild=l.first),g(l=f())&&(i.scrollFooterBoxViewChild=l.first),g(l=f())&&(i.scrollableAlignerViewChild=l.first),g(l=f())&&(i.scroller=l.first)}},inputs:{columns:[0,"ttScrollableView","columns"],frozen:[2,"frozen","frozen",w],scrollHeight:"scrollHeight"},standalone:!1,attrs:sl,decls:13,vars:13,consts:[["scrollHeader",""],["scrollHeaderBox",""],["buildInItems",""],["scroller",""],["content",""],["loader",""],["scrollBody",""],["scrollTable",""],["scrollableAligner",""],["scrollFooter",""],["scrollFooterBox",""],[1,"p-treetable-scrollable-header"],[1,"p-treetable-scrollable-header-box"],[1,"p-treetable-scrollable-header-table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["styleClass","p-treetable-scrollable-body",3,"items","style","scrollHeight","itemSize","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-treetable-scrollable-footer",4,"ngIf"],["styleClass","p-treetable-scrollable-body",3,"onLazyLoad","items","scrollHeight","itemSize","lazy","options"],[1,"p-treetable-scrollable-body",3,"ngStyle"],["role","table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate","serializedNodes","frozen"],["style","background-color:transparent",4,"ngIf"],[2,"background-color","transparent"],[1,"p-treetable-scrollable-footer"],[1,"p-treetable-scrollable-footer-box"],[1,"p-treetable-scrollable-footer-table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tfoot"]],template:function(o,i){o&1&&(c(0,"div",11,0)(2,"div",12,1)(4,"table",13),p(5,ul,1,0,"ng-container",14),c(6,"thead",15),p(7,ml,1,0,"ng-container",14),h()()()(),p(8,Tl,5,10,"p-scroller",16)(9,wl,4,10,"ng-container",17)(10,xl,5,15,"ng-template",null,2,x)(12,kl,8,10,"div",18)),o&2&&(s(4),a("ngClass",i.tt.tableStyleClass)("ngStyle",i.tt.tableStyle),s(),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",z(9,A,i.columns)),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenHeaderTemplate||i.tt._frozenHeaderTemplate||i.tt.headerTemplate||i.tt._headerTemplate:i.tt.headerTemplate||i.tt._headerTemplate)("ngTemplateOutletContext",z(11,A,i.columns)),s(),a("ngIf",i.tt.virtualScroll),s(),a("ngIf",!i.tt.virtualScroll),s(3),a("ngIf",i.tt.footerTemplate||i.tt._footerTemplate))},dependencies:()=>[re,W,ae,xe,Ae,ei],encapsulation:2})}return t})();var ti=(()=>{class t{tt;el;zone;get level(){return this.rowNode?.level+1}get styleClass(){return this.rowNode?.node.styleClass||""}get expanded(){return this.rowNode?.node.expanded}rowNode;constructor(e,o,i){this.tt=e,this.el=o,this.zone=i}onKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Tab":this.onTabKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;default:break}}onArrowDownKey(e){let o=this.el?.nativeElement?.nextElementSibling;o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onArrowUpKey(e){let o=this.el?.nativeElement?.previousElementSibling;o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onArrowRightKey(e){let o=e.currentTarget;!(E(o,"button").style.visibility==="hidden")&&!this.expanded&&this.rowNode.node.children&&(this.expand(e),o.tabIndex=-1),e.preventDefault()}onArrowLeftKey(e){let o=this.tt.containerViewChild?.nativeElement,i=ee(o,'[aria-expanded="true"]'),l=i[i.length-1];this.expanded&&this.collapse(e),l&&(this.tt.toggleRowIndex=se(l)),this.restoreFocus(),e.preventDefault()}onHomeKey(e){let o=E(this.tt.containerViewChild?.nativeElement,`tr[aria-level="${this.level}"]`);o&&me(o),e.preventDefault()}onEndKey(e){let o=ee(this.tt.containerViewChild?.nativeElement,`tr[aria-level="${this.level}"]`),i=o[o.length-1];me(i),e.preventDefault()}onTabKey(e){let o=this.el.nativeElement?[...ee(this.el.nativeElement.parentNode,"tr")]:void 0;if(o&&yt(o)){let i=o.some(l=>Le(l,"data-p-highlight")||l.getAttribute("aria-checked")==="true");if(o.forEach(l=>{l.tabIndex=-1}),i){let l=o.filter(n=>Le(n,"data-p-highlight")||n.getAttribute("aria-checked")==="true");l[0].tabIndex=0;return}o[0].tabIndex=0}}expand(e){this.tt.toggleRowIndex=se(this.el.nativeElement),this.rowNode.node.expanded=!0,this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),this.rowNode.node.children?this.restoreFocus(this.tt.toggleRowIndex+1):this.restoreFocus(),this.tt.onNodeExpand.emit({originalEvent:e,node:this.rowNode.node})}collapse(e){this.rowNode.node.expanded=!1,this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),this.tt.onNodeCollapse.emit({originalEvent:e,node:this.rowNode.node})}focusRowChange(e,o,i){e.tabIndex="-1",o.tabIndex="0",me(o)}restoreFocus(e){this.zone.runOutsideAngular(()=>{setTimeout(()=>{let o=this.tt.containerViewChild?.nativeElement,i=E(o,".p-treetable-tbody").children[e||this.tt.toggleRowIndex],l=[...ee(o,"tr")];l&&l.forEach(n=>{i.isSameNode(n)||(n.tabIndex=-1)}),i&&(i.tabIndex=0,i.focus())},25)})}static \u0275fac=function(o){return new(o||t)(V(te),V(Ce),V(ie))};static \u0275dir=it({type:t,selectors:[["","ttRow",""]],hostVars:7,hostBindings:function(o,i){o&1&&D("keydown",function(n){return i.onKeyDown(n)}),o&2&&(oe("tabindex","0")("aria-expanded",i.expanded)("aria-level",i.level)("data-pc-section",i.row)("role",i.row),le("p-element "+i.styleClass))},inputs:{rowNode:[0,"ttRow","rowNode"]},standalone:!1})}return t})(),ii=(()=>{class t extends Pe{tt;rowNode;constructor(e){super(),this.tt=e}get toggleButtonAriaLabel(){return this.config.translation?this.rowNode.expanded?this.config.translation.aria.collapseRow:this.config.translation.aria.expandRow:void 0}onClick(e){this.rowNode.node.expanded=!this.rowNode.node.expanded,this.rowNode.node.expanded?this.tt.onNodeExpand.emit({originalEvent:e,node:this.rowNode.node}):this.tt.onNodeCollapse.emit({originalEvent:e,node:this.rowNode.node}),this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),e.preventDefault()}static \u0275fac=function(o){return new(o||t)(V(te))};static \u0275cmp=Q({type:t,selectors:[["p-treeTableToggler"],["p-treetabletoggler"],["p-treetable-toggler"]],inputs:{rowNode:"rowNode"},standalone:!1,features:[we],decls:3,vars:12,consts:[["type","button","tabindex","-1","pRipple","",1,"p-treetable-toggler",3,"click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){o&1&&(c(0,"button",0),D("click",function(n){return i.onClick(n)}),p(1,Dl,3,2,"ng-container",1)(2,Ml,1,0,null,2),h()),o&2&&(ot("visibility",i.rowNode.node.leaf===!1||i.rowNode.node.children&&i.rowNode.node.children.length?"visible":"hidden")("margin-inline-start",i.rowNode.level*16+"px"),oe("data-pc-section","rowtoggler")("data-pc-group-section","rowactionbutton")("aria-label",i.toggleButtonAriaLabel),s(),a("ngIf",!i.tt.togglerIconTemplate&&!i.tt._togglerIconTemplate),s(),a("ngTemplateOutlet",i.tt.togglerIconTemplate||i.tt._togglerIconTemplate)("ngTemplateOutletContext",z(10,A,i.rowNode.node.expanded)))},dependencies:()=>[W,ae,zt,Oe,He],encapsulation:2})}return t})(),oi=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=tt({type:t});static \u0275inj=Je({imports:[he,Kt,Ae,Be,Ne,Fe,xt,Et,It,vt,St,Oe,He,kt,Me,gt,Me]})}return t})();var li=ri(ai());var Hl=()=>({width:"30vw"}),Bl=()=>({"1199px":"75vw","575px":"100vw"}),Al=()=>({height:"calc(100vh - 70px)"}),Kl=t=>({"justify-content-center":t}),$l=t=>({"col-12":t}),Ql=()=>({"min-width":"50rem"});function Ul(t,r){if(t&1){let e=F();c(0,"p-button",12),D("click",function(){M(e);let i=u(2);return P(i.onPrevStep())}),h()}if(t&2){let e=u(2);a("disabled",e.stepActiveIndex()===1)}}function jl(t,r){if(t&1){let e=F();c(0,"p-button",13),D("click",function(){M(e);let i=u(2);return P(i.onNextStep())}),h()}if(t&2){let e=u(2);a("disabled",e.stepActiveIndex()===3||!e.COAImportPreview())}}function ql(t,r){if(t&1){let e=F();c(0,"p-button",14),D("click",function(){M(e);let i=u(2);return P(i.onReset())}),h()}}function Wl(t,r){if(t&1&&p(0,Ul,1,1,"p-button",9)(1,jl,1,1,"p-button",10)(2,ql,1,0,"p-button",11),t&2){let e=u();a("ngIf",e.stepActiveIndex()>1),s(),a("ngIf",e.stepActiveIndex()<3),s(),a("ngIf",e.stepActiveIndex()===3)}}function Gl(t,r){if(t&1){let e=F();c(0,"POS-uppy",23),D("fileUploaded",function(i){M(e);let l=u(2);return P(l.onFileUploaded(i))})("fileRemoved",function(i){M(e);let l=u(2);return P(l.onFileRemoved(i))}),h(),c(1,"p",24),_(2," Please refer this "),c(3,"a",25),_(4,"article"),h(),_(5," for more information "),h()}if(t&2){let e=u(2);a("uppyCoreConfiguration",e.uppyCore)("sampleUrl",e.SAMPLE_URL)}}function Jl(t,r){t&1&&(c(0,"tr")(1,"th"),_(2,"Type"),h(),c(3,"th"),_(4,"Name"),h(),c(5,"th"),_(6,"Code"),h(),c(7,"th"),_(8,"Status"),h(),c(9,"th"),_(10,"Message"),h()())}function Xl(t,r){if(t&1&&(c(0,"tr",27)(1,"td"),I(2,"p-treetable-toggler",28),_(3),dt(4,"truncate"),h(),c(5,"td"),_(6),h(),c(7,"td"),_(8),h(),c(9,"td"),_(10),h(),c(11,"td"),_(12),h()()),t&2){let e=r.$implicit,o=r.rowData;a("ttRow",e),s(2),a("rowNode",e),s(),Se(" ",pt(4,7,o.typeName,40)," "),s(3),B(o.accountName),s(2),B(o.code),s(2),B(o.action),s(2),B(o.action)}}function Zl(t,r){if(t&1&&(c(0,"p-treetable",26),p(1,Jl,11,0,"ng-template",null,3,x)(3,Xl,13,10,"ng-template",null,6,x),h()),t&2){let e=u(3);a("value",e.COAImportPreviewTreenode())("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("tableStyle",q(4,Ql))}}function Yl(t,r){if(t&1&&p(0,Zl,5,5,"p-treetable",26),t&2){let e=u(2);ve(e.COAImportPreview()?0:-1)}}function en(t,r){t&1&&(c(0,"h5"),_(1,"Successfully Imported"),h())}function tn(t,r){if(t&1&&(c(0,"p-panel")(1,"div",15)(2,"div",16)(3,"p-stepper",17,5)(5,"p-step-list")(6,"p-step",18)(7,"div",19),I(8,"i",20),c(9,"span"),_(10,"Upload"),h()()(),c(11,"p-step",18)(12,"div",19),I(13,"i",21),c(14,"span"),_(15,"Preview"),h()()(),c(16,"p-step",18)(17,"div",19),I(18,"i",22),c(19,"span"),_(20,"Finish"),h()()()(),c(21,"p-step-panels")(22,"p-step-panel",18),p(23,Gl,6,2,"ng-template",null,1,x),h(),c(25,"p-step-panel",18),p(26,Yl,1,1,"ng-template",null,1,x),h(),c(28,"p-step-panel",18),p(29,en,2,0,"ng-template",null,1,x),h()()()()()()),t&2){let e=u();Z(q(12,Al)),s(),a("ngClass",z(13,Kl,e.stepActiveIndex()===1||e.stepActiveIndex()===3)),s(),a("ngClass",z(15,$l,e.stepActiveIndex()===2)),s(),a("linear",!0)("value",e.stepActiveIndex()),s(3),a("value",1),s(5),a("value",2),s(5),a("value",3),s(6),a("value",1),s(3),a("value",2),s(3),a("value",3)}}function on(t,r){if(t&1){let e=F();c(0,"p-button",29),D("onClick",function(){M(e);let i=u();return P(i.summaryDialogVisible.set(!1))}),h()}t&2&&a("rounded",!0)("text",!0)}function ln(t,r){if(t&1&&(c(0,"div",30)(1,"h4",31),_(2,"Import Summary"),h(),c(3,"p",32),_(4),h()()),t&2){let e=u();s(4),Se("(",e.CSVRowCount()," rows ready for import)")}}function nn(t,r){t&1&&(c(0,"div",35)(1,"h4",36),_(2,"New"),h()())}function rn(t,r){t&1&&(c(0,"div",37)(1,"h4",36),_(2,"Updated"),h()())}function an(t,r){t&1&&(c(0,"div",38)(1,"h4",36),_(2,"Unchanged"),h()())}function sn(t,r){t&1&&(c(0,"div",39)(1,"h4",36),_(2,"Error"),h()())}function cn(t,r){if(t&1&&(c(0,"div",33)(1,"div",34)(2,"p-card"),p(3,nn,3,0,"ng-template",null,3,x),c(5,"div",33)(6,"div",34)(7,"h5"),_(8),h()()()()()(),I(9,"br"),c(10,"div",33)(11,"div",34)(12,"p-card"),p(13,rn,3,0,"ng-template",null,3,x),c(15,"div",33)(16,"div",34)(17,"h5"),_(18),h()()()()(),c(19,"div",34)(20,"p-card"),p(21,an,3,0,"ng-template",null,3,x),c(23,"div",33)(24,"div",34)(25,"h5"),_(26),h()()()()(),c(27,"div",34)(28,"p-card"),p(29,sn,3,0,"ng-template",null,3,x),c(31,"div",33)(32,"div",34)(33,"h5"),_(34),h()()()()()()),t&2){let e=u(2);s(8),B(e.COAImportPreview().summary.new),s(10),B(e.COAImportPreview().summary.updated),s(8),B(e.COAImportPreview().summary.noChanges),s(8),B(e.COAImportPreview().summary.error)}}function dn(t,r){if(t&1&&p(0,cn,35,4),t&2){let e=u();ve(e.COAImportPreview()?0:-1)}}function pn(t,r){if(t&1){let e=F();c(0,"p-button",40),D("click",function(){M(e);let i=u();return P(i.summaryDialogVisible.set(!1))}),h(),c(1,"p-button",41),D("click",function(){M(e);let i=u();return P(i.onConfirmImport())}),h()}if(t&2){let e=u();s(),a("disabled",!e.COAImportPreview().canProceed)}}var br=(()=>{class t{constructor(){this.service=K($t),this.router=K(mt),this.stepActiveIndex=X(1),this.COAImportPreview=X(null),this.COAImportPreviewTreenode=X([]),this.summaryDialogVisible=X(!1),this.CSVRowCount=X(0),this.uppyCore={restrictions:{allowedFileTypes:["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},this.SAMPLE_URL="https://res.cloudinary.com/pos/raw/upload/v1585879643/POS/CSV/ChartOfAccount-DealPOS-V1.csv",this.hasIssue=!1}onFileRemoved(e){console.log("File removed event:",e),this.COAImportPreview.set(null),this.COAImportPreviewTreenode.set([])}onNextStep(){if(this.stepActiveIndex()<3&&(this.stepActiveIndex.update(e=>e+1),this.stepActiveIndex()===3)){this.stepActiveIndex.update(()=>this.stepActiveIndex()-1),this.summaryDialogVisible.set(!0);return}}onPrevStep(){this.stepActiveIndex()>1&&this.stepActiveIndex.update(e=>e-1)}onFileUploaded(e){let o=new FormData;if("name"in e&&typeof e.name=="string")li.default.parse(e,{header:!0,skipEmptyLines:!0,complete:i=>{console.log("CSV Parsing Results:",i),this.CSVRowCount.set(i.data.length)},error:i=>{console.error("Error parsing CSV:",i)}}),o.append("File",e,e.name),this.service.importPreviewChartOfAccounts(o).pipe(Ke("Import Preview"),_e(i=>{this.COAImportPreview.set(i),this.COAImportPreviewTreenode.set(i.dataRow)})).subscribe();else return}getJournalEntryImportCount(){let e=this.COAImportPreview();return e&&e.summary?.total!==void 0?e.summary.total:0}onConfirmImport(){if(this.COAImportPreview()&&this.COAImportPreview().canProceed){let e={cacheKey:this.COAImportPreview().cacheKey};this.service.importConfirmChartOfAccounts(e).pipe(Ke("Import Confirm"),_e(()=>{this.router.navigate(["/pages/chart-of-account/account"]),this.stepActiveIndex.update(o=>o+1),this.summaryDialogVisible.update(o=>!o)}),Ge(o=>(console.error("Error occurred during import confirmation:",o),this.stepActiveIndex.update(i=>i+1),this.summaryDialogVisible.update(i=>!i),We(null)))).subscribe()}else{console.error("Cannot proceed with import, JournalEntryImport is not set or canProceed is false.");return}}onReset(){this.stepActiveIndex.set(1),this.COAImportPreview.set(null)}handleKeyboardEvent(e){e.key==="F2"&&this.onConfirmImport()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-coa-import"]],hostBindings:function(o,i){o&1&&D("keydown",function(n){return i.handleKeyboardEvent(n)},!1,Ye)},decls:14,vars:10,consts:[["actionButton",""],["content",""],["closeIconTemplate",""],["header",""],["footer",""],["stepper",""],["body",""],["pageTitle","Chart of Account Import"],["position","center","appendTo","body",3,"visibleChange","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["label","Back","severity","secondary","variant","outlined",3,"disabled","click",4,"ngIf"],["label","Next","severity","primary",3,"disabled","click",4,"ngIf"],["label","Finish","severity","primary",3,"click",4,"ngIf"],["label","Back","severity","secondary","variant","outlined",3,"click","disabled"],["label","Next","severity","primary",3,"click","disabled"],["label","Finish","severity","primary",3,"click"],[1,"row",3,"ngClass"],[1,"col-6",3,"ngClass"],[1,"basis-[50rem]",3,"linear","value"],[3,"value"],[1,"d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-upload"],[1,"fa-solid","fa-file"],[1,"fa-solid","fa-check"],["subtitle","Accepted file format: .csv & max file size: 1MB",3,"fileUploaded","fileRemoved","uppyCoreConfiguration","sampleUrl"],[1,"fst-italic"],["href","#","target","_blank",1,"link","link-primary"],[3,"value","scrollable","scrollHeight","tableStyle"],[3,"ttRow"],[3,"rowNode"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],[1,"d-flex","gap-2","align-items-baseline"],[1,"fs-4","text-white","m-0"],[1,"m-0","fs-3"],[1,"row"],[1,"col"],[1,"state-new"],[1,"fs-4","m-0"],[1,"state-updated"],[1,"state-unchanged"],[1,"state-error"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click","disabled"]],template:function(o,i){if(o&1){let l=F();c(0,"app-main-panel",7),p(1,Wl,3,3,"ng-template",null,0,x)(3,tn,31,17,"ng-template",null,1,x),h(),c(5,"p-dialog",8),rt("visibleChange",function(d){return M(l),nt(i.summaryDialogVisible,d)||(i.summaryDialogVisible=d),P(d)}),p(6,on,1,2,"ng-template",null,2,x)(8,ln,5,1,"ng-template",null,3,x)(10,dn,1,1,"ng-template",null,1,x)(12,pn,2,1,"ng-template",null,4,x),h()}if(o&2){let l=ne(7);s(5),Z(q(8,Hl)),a("modal",!0),lt("visible",i.summaryDialogVisible),a("breakpoints",q(9,Bl))("draggable",!1)("closeIconTemplate",l)("dismissableMask",!0)}},dependencies:[Ot,he,re,W,Mt,Rt,Qt,Bt,Ht,Jt,Gt,Ut,Wt,qt,jt,Xt,Dt,Lt,oi,te,ii,ti,Vt,Pt,Ft,Nt],styles:["[_nghost-%COMP%]{display:block} .p-card{border-radius:4px} .p-card .p-card-header{display:flex;align-items:center;width:100%} .p-card .p-card-header .state-new{width:inherit;padding:.75rem;vertical-align:middle;background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important} .p-card .p-card-header .state-updated{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important} .p-card .p-card-header .state-unchanged{width:inherit;padding:.75rem;border-bottom:1px solid #dee2e6} .p-card .p-card-header .state-error{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}"],changeDetection:0})}}return t})();export{br as CoaImportComponent};
|