marketplacepos 3.22.0 → 3.22.2
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/Marketplace/3rdpartylicenses.txt +224 -13
- package/Marketplace/{chunk-7NE7ZI6R.js → chunk-2DQJZ4SM.js} +3 -3
- package/Marketplace/chunk-2OOIDPNY.js +1 -0
- package/Marketplace/chunk-2UKRBTWA.js +1 -0
- package/Marketplace/{chunk-UX3GY5M2.js → chunk-3QG5QJ5P.js} +1 -1
- package/Marketplace/chunk-3Y4WD5EY.js +1 -0
- package/Marketplace/{chunk-LIPM3QTO.js → chunk-44YUSAMN.js} +1 -1
- package/Marketplace/chunk-46AOM3SM.js +149 -0
- package/Marketplace/chunk-4E6A74GC.js +1 -0
- package/Marketplace/chunk-4LFFAE2I.js +1 -0
- package/Marketplace/chunk-4SAJUEHO.js +1 -0
- package/Marketplace/chunk-4YWF6TMR.js +5 -0
- package/Marketplace/{chunk-GCHJ4FTF.js → chunk-5JOW2QWK.js} +1 -1
- package/Marketplace/chunk-6DNNP4QT.js +1 -0
- package/Marketplace/chunk-6L2IXOY3.js +1 -0
- package/Marketplace/chunk-6SF7AUOH.js +1 -0
- package/Marketplace/{chunk-45PCYYJD.js → chunk-6YZFSP2B.js} +1 -1
- package/Marketplace/chunk-75I4TWVV.js +5 -0
- package/Marketplace/chunk-7AFVU7XM.js +1 -0
- package/Marketplace/chunk-ADRVUMMW.js +1 -0
- package/Marketplace/chunk-B2TH5YJH.js +1142 -0
- package/Marketplace/chunk-BO4PPSB5.js +2 -0
- package/Marketplace/chunk-BQ7NR3ET.js +1 -0
- package/Marketplace/chunk-BSN7ZAXG.js +1 -0
- package/Marketplace/chunk-CCXKODFV.js +2 -0
- package/Marketplace/{chunk-AGKVS3IQ.js → chunk-CODNZKCM.js} +1 -1
- package/Marketplace/chunk-CSSLFHG7.js +1 -0
- package/Marketplace/chunk-DR4IU4JY.js +1 -0
- package/Marketplace/chunk-E5GGIVK7.js +1 -0
- package/Marketplace/{chunk-QFU3JTYR.js → chunk-EW5A6GIY.js} +1 -1
- package/Marketplace/{chunk-PCKZD4LZ.js → chunk-FGPSBTFS.js} +1 -1
- package/Marketplace/chunk-FKYJVN2C.js +1 -0
- package/Marketplace/{chunk-UOT5GPQI.js → chunk-FMV4LYKN.js} +1 -1
- package/Marketplace/chunk-FY3BLGYI.js +1 -0
- package/Marketplace/{chunk-OUJF6YWV.js → chunk-GCKSYCMI.js} +5 -11
- package/Marketplace/chunk-GJIFVUBA.js +1 -0
- package/Marketplace/chunk-GOXRLSEL.js +1 -0
- package/Marketplace/{chunk-C2SGQUOH.js → chunk-HCDKYABV.js} +1 -1
- package/Marketplace/chunk-HHYOM3XB.js +1 -0
- package/Marketplace/chunk-HT7RB66L.js +1 -0
- package/Marketplace/chunk-HUUFOAKH.js +1 -0
- package/Marketplace/chunk-HVVW4B4W.js +1 -0
- package/Marketplace/chunk-HXJF7C6Q.js +1 -0
- package/Marketplace/chunk-I5BQWXUB.js +8 -0
- package/Marketplace/chunk-IJYSJN63.js +443 -0
- package/Marketplace/chunk-ILVEM7H5.js +1 -0
- package/Marketplace/chunk-J5D7PMX5.js +2 -0
- package/Marketplace/chunk-JHV7PQGJ.js +1 -0
- package/Marketplace/chunk-JKLGOAB3.js +2 -0
- package/Marketplace/chunk-JP44SOP7.js +13 -0
- package/Marketplace/chunk-JXTGH22T.js +1 -0
- package/Marketplace/chunk-KNWBPJ23.js +1 -0
- package/Marketplace/chunk-LI6EUEGJ.js +1 -0
- package/Marketplace/chunk-LRU7GIXZ.js +1 -0
- package/Marketplace/chunk-LZXKPCX7.js +1 -0
- package/Marketplace/chunk-MFAJDQPX.js +1 -0
- package/Marketplace/chunk-MJ6RQDI4.js +1 -0
- package/Marketplace/{chunk-ZRW4OZGG.js → chunk-MY4B7K3R.js} +1 -1
- package/Marketplace/{chunk-GDA72XOJ.js → chunk-N6IHFFFZ.js} +1 -1
- package/Marketplace/chunk-NJKWLKN6.js +1 -0
- package/Marketplace/{chunk-4NXO2JYR.js → chunk-NYDPS33K.js} +1 -1
- package/Marketplace/chunk-OCYDG646.js +1494 -0
- package/Marketplace/chunk-OKR5PVTL.js +1 -0
- package/Marketplace/chunk-OSSJKXND.js +1 -0
- package/Marketplace/chunk-OTFJUSZU.js +8 -0
- package/Marketplace/chunk-OULUJ2IO.js +189 -0
- package/Marketplace/chunk-OVEJFFL6.js +2 -0
- package/Marketplace/chunk-P674TVHC.js +1 -0
- package/Marketplace/chunk-PD4CUVAW.js +1 -0
- package/Marketplace/chunk-POGKTX46.js +1 -0
- package/Marketplace/chunk-PQDPS2ID.js +7 -0
- package/Marketplace/chunk-QN5QWB3Z.js +1 -0
- package/Marketplace/chunk-QP6O4KGV.js +1 -0
- package/Marketplace/chunk-QW4P7RSU.js +1 -0
- package/Marketplace/chunk-RDHVV7FZ.js +1 -0
- package/Marketplace/{chunk-EYZIWEGE.js → chunk-RENQ3YZH.js} +1 -1
- package/Marketplace/chunk-RGGT2KKB.js +1 -0
- package/Marketplace/chunk-RI7RZYID.js +1 -0
- package/Marketplace/chunk-T32TE7CZ.js +1 -0
- package/Marketplace/chunk-TPGBOTD4.js +1 -0
- package/Marketplace/chunk-TVRKGWQB.js +1 -0
- package/Marketplace/chunk-UMNGKENU.js +1 -0
- package/Marketplace/chunk-UN2U4YFQ.js +1 -0
- package/Marketplace/chunk-WT6W7RAQ.js +1 -0
- package/Marketplace/chunk-WTR5UFZI.js +5 -0
- package/Marketplace/chunk-X5Q6FPWS.js +315 -0
- package/Marketplace/chunk-XB345KSK.js +2 -0
- package/Marketplace/{chunk-J7V5HHYR.js → chunk-Y2T3CEPZ.js} +1 -1
- package/Marketplace/chunk-YC44HHHF.js +2 -0
- package/Marketplace/chunk-YIB7FZAQ.js +7 -0
- package/Marketplace/chunk-Z6PE5TYH.js +1 -0
- package/Marketplace/{chunk-XSYSCEVJ.js → chunk-ZRPSM5PK.js} +1 -1
- package/Marketplace/index.html +4 -4
- package/Marketplace/main-MTZIDUMD.js +1 -0
- package/Marketplace/styles-BTL6DIRV.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2KEQ33LI.js +0 -1
- package/Marketplace/chunk-2LJXM62F.js +0 -1
- package/Marketplace/chunk-47XYXHGL.js +0 -1
- package/Marketplace/chunk-4AUJZEST.js +0 -1
- package/Marketplace/chunk-5SIWWKAE.js +0 -1
- package/Marketplace/chunk-5SOVI5O5.js +0 -1
- package/Marketplace/chunk-633RG6PO.js +0 -15
- package/Marketplace/chunk-732MTT44.js +0 -1
- package/Marketplace/chunk-76JMXELT.js +0 -1
- package/Marketplace/chunk-7FSQ3UC2.js +0 -1
- package/Marketplace/chunk-7IIB5DLC.js +0 -2
- package/Marketplace/chunk-7N5WLZWW.js +0 -1
- package/Marketplace/chunk-AUBPDK26.js +0 -1
- package/Marketplace/chunk-BR6MS275.js +0 -1
- package/Marketplace/chunk-DAYV52M7.js +0 -9
- package/Marketplace/chunk-DSKMV7XY.js +0 -3
- package/Marketplace/chunk-EE7O2AZI.js +0 -1
- package/Marketplace/chunk-EJSGWKV7.js +0 -1
- package/Marketplace/chunk-ENIJ4MFV.js +0 -1
- package/Marketplace/chunk-EQIBEDOW.js +0 -1
- package/Marketplace/chunk-EXBAGUW2.js +0 -1
- package/Marketplace/chunk-F57GDDSE.js +0 -14
- package/Marketplace/chunk-FSOI4J4S.js +0 -1
- package/Marketplace/chunk-HDDGFXNT.js +0 -1
- package/Marketplace/chunk-HPD77AAI.js +0 -1
- package/Marketplace/chunk-IPSL7J32.js +0 -1
- package/Marketplace/chunk-IX4CXSQC.js +0 -1
- package/Marketplace/chunk-J5DBLKIA.js +0 -1
- package/Marketplace/chunk-JCKUKK6T.js +0 -1
- package/Marketplace/chunk-JXNW3RX5.js +0 -1
- package/Marketplace/chunk-KJ4SL5OX.js +0 -1
- package/Marketplace/chunk-KTXT25SP.js +0 -1
- package/Marketplace/chunk-KZ2VDCDO.js +0 -1
- package/Marketplace/chunk-L3JD55OC.js +0 -1
- package/Marketplace/chunk-LLLHVCIO.js +0 -1
- package/Marketplace/chunk-LQWFYVLD.js +0 -2
- package/Marketplace/chunk-LZVUS3GC.js +0 -3
- package/Marketplace/chunk-M4XSRDMC.js +0 -9
- package/Marketplace/chunk-MJH2IWI2.js +0 -1
- package/Marketplace/chunk-MTS7QNYE.js +0 -2
- package/Marketplace/chunk-NBSXPQ4I.js +0 -1
- package/Marketplace/chunk-NFEAHFS5.js +0 -1
- package/Marketplace/chunk-NLZCSTVO.js +0 -5
- package/Marketplace/chunk-NSXCPHWT.js +0 -52
- package/Marketplace/chunk-O4N2CCVN.js +0 -1
- package/Marketplace/chunk-OE7XFNYO.js +0 -1
- package/Marketplace/chunk-OI3SQ5ZO.js +0 -2
- package/Marketplace/chunk-OSRAARQQ.js +0 -1
- package/Marketplace/chunk-OZ7VTHZ5.js +0 -1
- package/Marketplace/chunk-P5VJV3CP.js +0 -2
- package/Marketplace/chunk-QBQUD3A5.js +0 -1
- package/Marketplace/chunk-QNL3BTRG.js +0 -8
- package/Marketplace/chunk-QNQ5QCZX.js +0 -1
- package/Marketplace/chunk-RQCGB4NH.js +0 -9
- package/Marketplace/chunk-RVEC755T.js +0 -1
- package/Marketplace/chunk-S66L7N22.js +0 -1
- package/Marketplace/chunk-SCVHFMF7.js +0 -1
- package/Marketplace/chunk-SF4KIL5M.js +0 -5
- package/Marketplace/chunk-TU4R4DL3.js +0 -1
- package/Marketplace/chunk-UAXJ7MHW.js +0 -1
- package/Marketplace/chunk-UEB6GFG5.js +0 -1
- package/Marketplace/chunk-UNLG5KU7.js +0 -1
- package/Marketplace/chunk-WYZ5MSYA.js +0 -1
- package/Marketplace/chunk-XNRK463Z.js +0 -1
- package/Marketplace/chunk-YUBBVFFI.js +0 -1
- package/Marketplace/chunk-ZGYDC5UC.js +0 -1
- package/Marketplace/chunk-ZSZQPMV2.js +0 -1
- package/Marketplace/main-HPUDU23P.js +0 -1
- package/Marketplace/media/color-3LUHUBGQ.png +0 -0
- package/Marketplace/media/hue-RMMBQOAC.png +0 -0
- package/Marketplace/styles-RZHRYK3K.css +0 -1
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import{b as qe,c as je,d as We,f as Je,g as Ge,h as Xe}from"./chunk-X5Q6FPWS.js";import{a as G,d as Pe,e as Be,f as fe,g as He,h as be,i as Ke,m as Ze,o as Ye}from"./chunk-46AOM3SM.js";import{$ as Ae,J as ve,K as Ue,R as Ce,S as _e,Y as ne,Z as R,_ as he,a as A,da as oe,o as Te,p as ze,q as ie,r as se,s as Re,v as Qe}from"./chunk-OULUJ2IO.js";import{a as Fe,h as $e,m as Le,y as ye}from"./chunk-BSN7ZAXG.js";import{$b as b,Bb as B,Ca as ue,Cd as J,Da as p,Ea as u,Eb as d,Fa as Ne,Fb as C,Gb as a,Ha as O,Hb as Y,Jb as X,Jc as k,Kb as w,Nb as me,Pa as v,Sb as _,Tb as h,Ub as x,Vb as S,Wb as I,Xb as M,Yb as E,bc as s,bd as T,cc as ke,cd as q,dc as Me,gb as we,gc as y,hc as V,ia as ce,ic as f,ja as Z,jb as c,jc as m,ka as de,kb as Ee,mc as re,nc as U,oc as ee,pa as P,pc as ge,rc as Ve,sc as De,sd as K,ta as $,tc as Oe,ua as pe,uc as te,ud as le,vc as z,vd as j,wd as ae,xc as D,xd as W,yc as H,zb as L}from"./chunk-PQDPS2ID.js";import{a as Q}from"./chunk-GNOSNGXM.js";var et=(()=>{class t extends Be{pathId;ngOnInit(){this.pathId="url(#"+_e()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[L,z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(Ne(),_(0,"svg",0)(1,"g"),x(2,"path",1),h(),_(3,"defs")(4,"clipPath",2),x(5,"rect",3),h()()()),n&2&&(w(i.getClassNames()),C("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),c(),C("clip-path",i.pathId),c(3),a("id",i.pathId))},encapsulation:2})}return t})();var gt=({dt:t})=>`
|
|
2
|
+
.p-chip {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
background: ${t("chip.background")};
|
|
6
|
+
color: ${t("chip.color")};
|
|
7
|
+
border-radius: ${t("chip.border.radius")};
|
|
8
|
+
padding: ${t("chip.padding.y")} ${t("chip.padding.x")};
|
|
9
|
+
gap: ${t("chip.gap")};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.p-chip-icon {
|
|
13
|
+
color: ${t("chip.icon.color")};
|
|
14
|
+
font-size: ${t("chip.icon.font.size")};
|
|
15
|
+
width: ${t("chip.icon.size")};
|
|
16
|
+
height: ${t("chip.icon.size")};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-chip-image {
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
width: ${t("chip.image.width")};
|
|
22
|
+
height: ${t("chip.image.height")};
|
|
23
|
+
margin-left: calc(-1 * ${t("chip.padding.y")});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.p-chip:has(.p-chip-remove-icon) {
|
|
27
|
+
padding-inline-end: ${t("chip.padding.y")};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-chip:has(.p-chip-image) {
|
|
31
|
+
padding-top: calc(${t("chip.padding.y")} / 2);
|
|
32
|
+
padding-bottom: calc(${t("chip.padding.y")} / 2);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.p-chip-remove-icon {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-size: ${t("chip.remove.icon.font.size")};
|
|
38
|
+
width: ${t("chip.remove.icon.size")};
|
|
39
|
+
height: ${t("chip.remove.icon.size")};
|
|
40
|
+
color: ${t("chip.remove.icon.color")};
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
transition: outline-color ${t("chip.transition.duration")}, box-shadow ${t("chip.transition.duration")};
|
|
43
|
+
outline-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-chip-remove-icon:focus-visible {
|
|
47
|
+
box-shadow: ${t("chip.remove.icon.focus.ring.shadow")};
|
|
48
|
+
outline: ${t("chip.remove.icon.focus.ring.width")} ${t("chip.remove.icon.focus.ring.style")} ${t("chip.remove.icon.focus.ring.color")};
|
|
49
|
+
outline-offset: ${t("chip.remove.icon.focus.ring.offset")};
|
|
50
|
+
}
|
|
51
|
+
`,_t={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},tt=(()=>{class t extends oe{name="chip";theme=gt;classes=_t;static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})();var ht=["removeicon"],ft=["*"];function mt(t,r){if(t&1){let e=E();_(0,"img",4),b("error",function(i){p(e);let o=s();return u(o.imageError(i))}),h()}if(t&2){let e=s();a("src",e.image,we)("alt",e.alt)}}function yt(t,r){if(t&1&&x(0,"span",6),t&2){let e=s(2);w(e.icon),a("ngClass","p-chip-icon"),C("data-pc-section","icon")}}function Tt(t,r){if(t&1&&d(0,yt,1,4,"span",5),t&2){let e=s();a("ngIf",e.icon)}}function vt(t,r){if(t&1&&(_(0,"div",7),U(1),h()),t&2){let e=s();C("data-pc-section","label"),c(),ee(e.label)}}function Ct(t,r){if(t&1){let e=E();_(0,"span",11),b("click",function(i){p(e);let o=s(3);return u(o.close(i))})("keydown",function(i){p(e);let o=s(3);return u(o.onKeydown(i))}),h()}if(t&2){let e=s(3);w(e.removeIcon),a("ngClass","p-chip-remove-icon"),C("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function bt(t,r){if(t&1){let e=E();_(0,"TimesCircleIcon",12),b("click",function(i){p(e);let o=s(3);return u(o.close(i))})("keydown",function(i){p(e);let o=s(3);return u(o.onKeydown(i))}),h()}if(t&2){let e=s(3);w("p-chip-remove-icon"),C("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function xt(t,r){if(t&1&&(S(0),d(1,Ct,1,5,"span",9)(2,bt,1,4,"TimesCircleIcon",10),I()),t&2){let e=s(2);c(),a("ngIf",e.removeIcon),c(),a("ngIf",!e.removeIcon)}}function St(t,r){}function It(t,r){t&1&&d(0,St,0,0,"ng-template")}function Nt(t,r){if(t&1){let e=E();_(0,"span",13),b("click",function(i){p(e);let o=s(2);return u(o.close(i))})("keydown",function(i){p(e);let o=s(2);return u(o.onKeydown(i))}),d(1,It,1,0,null,14),h()}if(t&2){let e=s(2);C("data-pc-section","removeicon")("aria-label",e.removeAriaLabel),c(),a("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function wt(t,r){if(t&1&&(S(0),d(1,xt,3,2,"ng-container",3)(2,Nt,2,3,"span",8),I()),t&2){let e=s();c(),a("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),c(),a("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var ot=(()=>{class t extends G{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new v;onImageError=new v;visible=!0;get removeAriaLabel(){return this.config.getTranslation(he.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([n,i])=>this[`_${n}`]!==i&&(this[`_${n}`]=i))}_chipProps;_componentStyle=P(tt);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"removeicon":this._removeIconTemplate=e.template;break;default:this._removeIconTemplate=e.template;break}})}ngOnChanges(e){if(super.ngOnChanges(e),e.chipProps&&e.chipProps.currentValue){let{currentValue:n}=e.chipProps;n.label!==void 0&&(this.label=n.label),n.icon!==void 0&&(this.icon=n.icon),n.image!==void 0&&(this.image=n.image),n.alt!==void 0&&(this.alt=n.alt),n.style!==void 0&&(this.style=n.style),n.styleClass!==void 0&&(this.styleClass=n.styleClass),n.removable!==void 0&&(this.removable=n.removable),n.removeIcon!==void 0&&(this.removeIcon=n.removeIcon)}}containerClass(){let e="p-chip p-component";return this.styleClass&&(e+=` ${this.styleClass}`),e}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-chip"]],contentQueries:function(n,i,o){if(n&1&&(y(o,ht,4),y(o,ne,4)),n&2){let l;f(l=m())&&(i.removeIconTemplate=l.first),f(l=m())&&(i.templates=l)}},hostVars:9,hostBindings:function(n,i){n&2&&(C("data-pc-name","chip")("aria-label",i.label)("data-pc-section","root"),X(i.style),w(i.containerClass()),Y("display",!i.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",T],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},standalone:!0,features:[te([tt]),B,L,ue,z],ngContentSelectors:ft,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(n,i){if(n&1&&(ke(),Me(0),d(1,mt,1,2,"img",1)(2,Tt,1,1,"ng-template",null,0,k)(4,vt,2,2,"div",2)(5,wt,3,2,"ng-container",3)),n&2){let o=re(3);c(),a("ngIf",i.image)("ngIfElse",o),c(3),a("ngIf",i.label),c(),a("ngIf",i.removable)}},dependencies:[J,K,j,W,et,R],encapsulation:2,changeDetection:0})}return t})();var Et=({dt:t})=>`
|
|
52
|
+
.p-tree {
|
|
53
|
+
background: ${t("tree.background")};
|
|
54
|
+
color: ${t("tree.color")};
|
|
55
|
+
padding: ${t("tree.padding")};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.p-tree-root-children,
|
|
59
|
+
.p-tree-node-children {
|
|
60
|
+
display: flex;
|
|
61
|
+
list-style-type: none;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
margin: 0;
|
|
64
|
+
gap: ${t("tree.gap")};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.p-tree-root-children {
|
|
68
|
+
padding: 0;
|
|
69
|
+
padding-block-start: ${t("tree.gap")};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.p-tree-node-children {
|
|
73
|
+
padding-block-start: ${t("tree.gap")};
|
|
74
|
+
padding-inline-start: ${t("tree.indent")};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-tree-node {
|
|
78
|
+
padding: 0;
|
|
79
|
+
outline: 0 none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.p-tree-node-content {
|
|
83
|
+
border-radius: ${t("tree.node.border.radius")};
|
|
84
|
+
padding: ${t("tree.node.padding")};
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
outline-color: transparent;
|
|
88
|
+
color: ${t("tree.node.color")};
|
|
89
|
+
gap: ${t("tree.node.gap")};
|
|
90
|
+
transition: background ${t("tree.transition.duration")}, color ${t("tree.transition.duration")}, outline-color ${t("tree.transition.duration")}, box-shadow ${t("tree.transition.duration")};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.p-tree-node:focus-visible > .p-tree-node-content {
|
|
94
|
+
box-shadow: ${t("tree.node.focus.ring.shadow")};
|
|
95
|
+
outline: ${t("tree.node.focus.ring.width")} ${t("tree.node.focus.ring.style")} ${t("tree.node.focus.ring.color")};
|
|
96
|
+
outline-offset: ${t("tree.node.focus.ring.offset")};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover {
|
|
100
|
+
background: ${t("tree.node.hover.background")};
|
|
101
|
+
color: ${t("tree.node.hover.color")};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon {
|
|
105
|
+
color: ${t("tree.node.icon.hover.color")};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.p-tree-node-content.p-tree-node-selected {
|
|
109
|
+
background: ${t("tree.node.selected.background")};
|
|
110
|
+
color: ${t("tree.node.selected.color")};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button {
|
|
114
|
+
color: inherit;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-tree-node-toggle-button {
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
user-select: none;
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
position: relative;
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
width: ${t("tree.node.toggle.button.size")};
|
|
127
|
+
height: ${t("tree.node.toggle.button.size")};
|
|
128
|
+
color: ${t("tree.node.toggle.button.color")};
|
|
129
|
+
border: 0 none;
|
|
130
|
+
background: transparent;
|
|
131
|
+
border-radius: ${t("tree.node.toggle.button.border.radius")};
|
|
132
|
+
transition: background ${t("tree.transition.duration")}, color ${t("tree.transition.duration")}, border-color ${t("tree.transition.duration")}, outline-color ${t("tree.transition.duration")}, box-shadow ${t("tree.transition.duration")};
|
|
133
|
+
outline-color: transparent;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.p-tree-node-toggle-button:enabled:hover {
|
|
138
|
+
background: ${t("tree.node.toggle.button.hover.background")};
|
|
139
|
+
color: ${t("tree.node.toggle.button.hover.color")};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover {
|
|
143
|
+
background: ${t("tree.node.toggle.button.selected.hover.background")};
|
|
144
|
+
color: ${t("tree.node.toggle.button.selected.hover.color")};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.p-tree-root {
|
|
148
|
+
overflow: auto;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.p-tree-node-selectable {
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
user-select: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button {
|
|
157
|
+
visibility: hidden;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.p-tree-node-icon {
|
|
161
|
+
color: ${t("tree.node.icon.color")};
|
|
162
|
+
transition: color ${t("tree.transition.duration")};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.p-tree-node-content.p-tree-node-selected .p-tree-node-icon {
|
|
166
|
+
color: ${t("tree.node.icon.selected.color")};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.p-tree-filter-input {
|
|
170
|
+
width: 100%;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.p-tree-loading {
|
|
174
|
+
position: relative;
|
|
175
|
+
height: 100%;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.p-tree-loading-icon {
|
|
179
|
+
font-size: ${t("tree.loading.icon.size")};
|
|
180
|
+
width: ${t("tree.loading.icon.size")};
|
|
181
|
+
height: ${t("tree.loading.icon.size")};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.p-tree .p-tree-mask {
|
|
185
|
+
position: absolute;
|
|
186
|
+
z-index: 1;
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.p-tree-flex-scrollable {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex: 1;
|
|
195
|
+
height: 100%;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.p-tree-flex-scrollable .p-tree-root {
|
|
200
|
+
flex: 1;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* For PrimeNG */
|
|
204
|
+
.p-tree .p-tree-node-droppoint {
|
|
205
|
+
height: 4px;
|
|
206
|
+
list-style-type: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.p-tree .p-tree-node-droppoint-active {
|
|
210
|
+
border: 0 none;
|
|
211
|
+
background-color: ${t("primary.color")};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.p-tree-node-content.p-tree-node-dragover {
|
|
215
|
+
background: ${t("tree.node.hover.background")};
|
|
216
|
+
color: ${t("tree.node.hover.color")};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.p-tree-node-content.p-tree-node-dragover .p-tree-node-icon {
|
|
220
|
+
color: ${t("tree.node.icon.hover.color")};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.p-tree-horizontal {
|
|
224
|
+
width: auto;
|
|
225
|
+
padding-inline-start: 0;
|
|
226
|
+
padding-inline-end: 0;
|
|
227
|
+
overflow: auto;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.p-tree.p-tree-horizontal table,
|
|
231
|
+
.p-tree.p-tree-horizontal tr,
|
|
232
|
+
.p-tree.p-tree-horizontal td {
|
|
233
|
+
border-collapse: collapse;
|
|
234
|
+
margin: 0;
|
|
235
|
+
padding: 0;
|
|
236
|
+
vertical-align: middle;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.p-tree-horizontal .p-tree-node-content {
|
|
240
|
+
font-weight: normal;
|
|
241
|
+
padding: 0.4em 1em 0.4em 0.2em;
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.p-tree-horizontal .p-tree-node-parent .p-tree-node-content {
|
|
247
|
+
font-weight: normal;
|
|
248
|
+
white-space: nowrap;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.p-tree.p-tree-horizontal .p-tree-node.p-tree-node-leaf,
|
|
252
|
+
.p-tree.p-tree-horizontal .p-tree-node.p-tree-node-collapsed {
|
|
253
|
+
padding-inline-end: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.p-tree.p-tree-horizontal .p-tree-node-children {
|
|
257
|
+
padding: 0;
|
|
258
|
+
margin: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.p-tree.p-tree-horizontal .p-tree-node-connector {
|
|
262
|
+
width: 1px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.p-tree.p-tree-horizontal .p-tree-node-connector-table {
|
|
266
|
+
height: 100%;
|
|
267
|
+
width: 1px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.p-tree.p-tree-horizontal table {
|
|
271
|
+
height: 0;
|
|
272
|
+
}
|
|
273
|
+
`,kt={root:({instance:t})=>({"p-tree p-component":!0,"p-tree-selectable":t.selectionMode!=null,"p-tree-loading":t.loading,"p-tree-flex-scrollable":t.scrollHeight==="flex","p-tree-node-dragover":t.dragHover}),mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:({instance:t})=>({"p-tree-node":!0,"p-tree-node-leaf":t.isLeaf()}),nodeContent:({instance:t})=>({"p-tree-node-content":!0,[t.styleClass]:!!t.styleClass,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.draghoverNode,"p-tree-node-selected":t.selectionMode==="checkbox"&&t.tree.highlightOnSelect?t.checked:t.selected}),nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children"},rt=(()=>{class t extends oe{name="tree";theme=Et;classes=kt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})();var at=t=>({height:t}),st=t=>({"p-tree-node-droppoint-active":t}),Se=t=>({$implicit:t}),Mt=(t,r)=>({$implicit:t,partialSelected:r,class:"p-tree-node-checkbox"});function Vt(t,r){if(t&1){let e=E();_(0,"li",11),b("drop",function(i){p(e);let o=s(2);return u(o.onDropPoint(i,-1))})("dragover",function(i){p(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){p(e);let o=s(2);return u(o.onDropPointDragEnter(i,-1))})("dragleave",function(i){p(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),h()}if(t&2){let e=s(2);a("ngClass",D(2,st,e.draghoverPrev)),C("aria-hidden",!0)}}function Dt(t,r){t&1&&x(0,"ChevronRightIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Ot(t,r){t&1&&x(0,"ChevronDownIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Ft(t,r){if(t&1&&(S(0),d(1,Dt,1,1,"ChevronRightIcon",12)(2,Ot,1,1,"ChevronDownIcon",12),I()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function $t(t,r){t&1&&(S(0),x(1,"SpinnerIcon",13),I()),t&2&&(c(),a("styleClass","pi-spin p-tree-node-toggle-icon"))}function Lt(t,r){if(t&1&&(S(0),d(1,Ft,3,2,"ng-container",5)(2,$t,2,1,"ng-container",5),I()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function zt(t,r){}function Rt(t,r){t&1&&d(0,zt,0,0,"ng-template")}function Qt(t,r){if(t&1&&(_(0,"span",14),d(1,Rt,1,0,null,15),h()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",D(2,Se,e.node.expanded))}}function Ut(t,r){}function At(t,r){t&1&&d(0,Ut,0,0,"ng-template")}function Pt(t,r){if(t&1&&d(0,At,1,0,null,15),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",H(2,Mt,e.isSelected(),e.node.partialSelected))}}function Bt(t,r){t&1&&(S(0),d(1,Pt,1,5,"ng-template",null,0,k),I())}function Ht(t,r){if(t&1&&(_(0,"p-checkbox",16),d(1,Bt,3,0,"ng-container",5),h()),t&2){let e=s(2);a("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",((e.tree==null?null:e.tree.config.inputStyle())==="filled","filled"))("tabindex",-1),C("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function qt(t,r){if(t&1&&x(0,"span"),t&2){let e=s(2);w(e.getIcon())}}function Kt(t,r){if(t&1&&(_(0,"span"),U(1),h()),t&2){let e=s(2);c(),ee(e.node.label)}}function jt(t,r){t&1&&M(0)}function Wt(t,r){if(t&1&&(_(0,"span"),d(1,jt,1,0,"ng-container",15),h()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",D(2,Se,e.node))}}function Jt(t,r){if(t&1&&x(0,"p-treeNode",19),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(3);a("node",e)("parentNode",l.node)("firstChild",n)("lastChild",i)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function Gt(t,r){if(t&1&&(_(0,"ul",17),d(1,Jt,1,8,"p-treeNode",18),h()),t&2){let e=s(2);Y("display",e.node.expanded?"block":"none"),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Zt(t,r){if(t&1){let e=E();_(0,"li",11),b("drop",function(i){p(e);let o=s(2);return u(o.onDropPoint(i,1))})("dragover",function(i){p(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){p(e);let o=s(2);return u(o.onDropPointDragEnter(i,1))})("dragleave",function(i){p(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),h()}if(t&2){let e=s(2);a("ngClass",D(2,st,e.draghoverNext)),C("aria-hidden",!0)}}function Yt(t,r){if(t&1){let e=E();d(0,Vt,1,4,"li",1),_(1,"li",2),b("keydown",function(i){p(e);let o=s();return u(o.onKeyDown(i))}),_(2,"div",3),b("click",function(i){p(e);let o=s();return u(o.onNodeClick(i))})("contextmenu",function(i){p(e);let o=s();return u(o.onNodeRightClick(i))})("touchend",function(){p(e);let i=s();return u(i.onNodeTouchEnd())})("drop",function(i){p(e);let o=s();return u(o.onDropNode(i))})("dragover",function(i){p(e);let o=s();return u(o.onDropNodeDragOver(i))})("dragenter",function(i){p(e);let o=s();return u(o.onDropNodeDragEnter(i))})("dragleave",function(i){p(e);let o=s();return u(o.onDropNodeDragLeave(i))})("dragstart",function(i){p(e);let o=s();return u(o.onDragStart(i))})("dragend",function(i){p(e);let o=s();return u(o.onDragStop(i))}),_(3,"button",4),b("click",function(i){p(e);let o=s();return u(o.toggle(i))}),d(4,Lt,3,2,"ng-container",5)(5,Qt,2,4,"span",6),h(),d(6,Ht,2,8,"p-checkbox",7)(7,qt,1,2,"span",8),_(8,"span",9),d(9,Kt,2,1,"span",5)(10,Wt,2,4,"span",5),h()(),d(11,Gt,2,4,"ul",10),h(),d(12,Zt,1,4,"li",1)}if(t&2){let e=s();a("ngIf",e.tree.droppableNodes),c(),X(e.node.style),a("ngClass",e.nodeClass)("ngStyle",D(27,at,e.itemSize+"px")),C("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),Y("padding-left",e.level*e.indentation+"rem"),a("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),c(),C("data-pc-section","toggler"),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(2),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),c(),a("ngIf",e.tree.droppableNodes&&e.lastChild)}}var lt=["filter"],Xt=["node"],ei=["header"],ti=["footer"],ii=["loader"],ni=["empty"],oi=["togglericon"],ri=["checkboxicon"],li=["loadingicon"],ai=["filtericon"],si=["scroller"],ci=["wrapper"],di=t=>({options:t});function pi(t,r){if(t&1&&x(0,"i"),t&2){let e=s(2);w("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function ui(t,r){t&1&&x(0,"SpinnerIcon",16),t&2&&a("spin",!0)("styleClass","p-tree-loading-icon")}function gi(t,r){}function _i(t,r){t&1&&d(0,gi,0,0,"ng-template")}function hi(t,r){if(t&1&&(_(0,"span",17),d(1,_i,1,0,null,9),h()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function fi(t,r){if(t&1&&(S(0),d(1,ui,1,2,"SpinnerIcon",14)(2,hi,2,1,"span",15),I()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function mi(t,r){if(t&1&&(_(0,"div",12),d(1,pi,1,2,"i",13)(2,fi,3,2,"ng-container",10),h()),t&2){let e=s();c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function yi(t,r){t&1&&M(0)}function Ti(t,r){t&1&&M(0)}function vi(t,r){if(t&1&&d(0,Ti,1,0,"ng-container",18),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",D(2,Se,e.filterOptions))}}function Ci(t,r){t&1&&x(0,"SearchIcon",21)}function bi(t,r){}function xi(t,r){t&1&&d(0,bi,0,0,"ng-template")}function Si(t,r){if(t&1&&(_(0,"span"),d(1,xi,1,0,null,9),h()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Ii(t,r){if(t&1){let e=E();_(0,"p-iconField")(1,"input",19,0),b("keydown.enter",function(i){return p(e),u(i.preventDefault())})("input",function(i){p(e);let o=s(2);return u(o._filter(i.target.value))}),h(),_(3,"p-inputIcon"),d(4,Ci,1,0,"SearchIcon",20)(5,Si,2,1,"span",10),h()()}if(t&2){let e=s(2);c(),C("placeholder",e.filterPlaceholder),c(3),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function Ni(t,r){if(t&1&&d(0,Ii,6,3,"p-iconField",10),t&2){let e=s();a("ngIf",e.filter)}}function wi(t,r){if(t&1&&x(0,"p-treeNode",27,3),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(2).options,g=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",n)("lastChild",i)("index",g.getIndex(l,o))("itemSize",l.itemSize)("indentation",g.indentation)("loadingMode",g.loadingMode)}}function Ei(t,r){if(t&1&&(_(0,"ul",25),d(1,wi,2,10,"p-treeNode",26),h()),t&2){let e=s(),n=e.$implicit,i=e.options,o=s(3);X(i.contentStyle),a("ngClass",i.contentStyleClass),C("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(),a("ngForOf",n)("ngForTrackBy",o.trackBy)}}function ki(t,r){if(t&1&&d(0,Ei,2,7,"ul",24),t&2){let e=r.$implicit;a("ngIf",e)}}function Mi(t,r){t&1&&M(0)}function Vi(t,r){if(t&1&&d(0,Mi,1,0,"ng-container",18),t&2){let e=r.options,n=s(4);a("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",D(2,di,e))}}function Di(t,r){t&1&&(S(0),d(1,Vi,1,4,"ng-template",null,4,k),I())}function Oi(t,r){if(t&1){let e=E();_(0,"p-scroller",23,1),b("onScroll",function(i){p(e);let o=s(2);return u(o.onScroll.emit(i))})("onScrollIndexChange",function(i){p(e);let o=s(2);return u(o.onScrollIndexChange.emit(i))})("onLazyLoad",function(i){p(e);let o=s(2);return u(o.onLazyLoad.emit(i))}),d(2,ki,1,1,"ng-template",null,2,k)(4,Di,3,0,"ng-container",10),h()}if(t&2){let e=s(2);X(D(9,at,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("items",e.serializedValue)("tabindex",-1)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Fi(t,r){if(t&1&&x(0,"p-treeNode",32),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(4);a("node",e)("firstChild",n)("lastChild",i)("index",o)("level",0)("loadingMode",l.loadingMode)}}function $i(t,r){if(t&1&&(_(0,"ul",30),d(1,Fi,1,6,"p-treeNode",31),h()),t&2){let e=s(3);C("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Li(t,r){if(t&1&&(S(0),_(1,"div",28,5),d(3,$i,2,4,"ul",29),h(),I()),t&2){let e=s(2);c(),Y("max-height",e.scrollHeight),c(2),a("ngIf",e.getRootNode())}}function zi(t,r){if(t&1&&(S(0),d(1,Oi,5,11,"p-scroller",22)(2,Li,4,3,"ng-container",10),I()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function Ri(t,r){if(t&1&&(S(0),U(1),I()),t&2){let e=s(2);c(),ge(" ",e.emptyMessageLabel," ")}}function Qi(t,r){}function Ui(t,r){t&1&&d(0,Qi,0,0,"ng-template",null,6,k)}function Ai(t,r){if(t&1&&(_(0,"div",33),d(1,Ri,2,1,"ng-container",34)(2,Ui,2,0,null,9),h()),t&2){let e=s();c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Pi(t,r){t&1&&M(0)}var Bi=(()=>{class t extends G{static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=P(ce(()=>Ie));timeout;draghoverPrev;draghoverNext;draghoverNode;get selected(){return this.tree.selectionMode==="single"||this.tree.selectionMode==="multiple"?this.isSelected():void 0}get checked(){return this.tree.selectionMode==="checkbox"?this.isSelected():void 0}get nodeClass(){return this.tree._componentStyle.classes.node({instance:this})}get nodeContentClass(){return this.tree._componentStyle.classes.nodeContent({instance:this})}get selectable(){return this.node.selectable===!1?!1:this.tree.selectionMode!=null}ngOnInit(){super.ngOnInit(),this.node.parent=this.parentNode;let n=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!n&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let e;return this.node.icon?e=this.node.icon:e=this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,t.ICON_CLASS+" "+e+" p-tree-node-icon"}isLeaf(){return this.tree.isNodeLeaf(this.node)}toggle(e){this.node.expanded?this.collapse(e):this.expand(e),e.stopPropagation()}expand(e){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:e,node:this.node})}collapse(e){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:e,node:this.node})}onNodeClick(e){this.tree.onNodeClick(e,this.node),e.preventDefault()}onNodeKeydown(e){e.key==="Enter"&&this.tree.onNodeClick(e,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(e){this.tree.onNodeRightClick(e,this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}onDropPoint(e,n){e.preventDefault();let i=this.tree.dragNode,o=this.tree.dragNodeIndex,l=this.tree.dragNodeScope,g=this.tree.dragNodeTree===this.tree?n===1||o!==this.index-1:!0;if(this.tree.allowDrop(i,this.node,l)&&g){let N=Q({},this.createDropPointEventMetadata(n));this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.processPointDrop(N)}}):(this.processPointDrop(N),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index}))}this.draghoverPrev=!1,this.draghoverNext=!1}processPointDrop(e){let n=e.dropNode.parent?e.dropNode.parent.children:this.tree.value;e.dragNodeSubNodes.splice(e.dragNodeIndex,1);let i=this.index;e.position<0?(i=e.dragNodeSubNodes===n?e.dragNodeIndex>e.index?e.index:e.index-1:e.index,n.splice(i,0,e.dragNode)):(i=n.length,n.push(e.dragNode)),this.tree.dragDropService.stopDrag({node:e.dragNode,subNodes:e.dropNode.parent?e.dropNode.parent.children:this.tree.value,index:e.dragNodeIndex})}createDropPointEventMetadata(e){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node,index:this.index,position:e}}onDropPointDragOver(e){e.dataTransfer.dropEffect="move",e.preventDefault()}onDropPointDragEnter(e,n){this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(n<0?this.draghoverPrev=!0:this.draghoverNext=!0)}onDropPointDragLeave(e){this.draghoverPrev=!1,this.draghoverNext=!1}onDragStart(e){this.tree.draggableNodes&&this.node.draggable!==!1?(e.dataTransfer.setData("text","data"),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index,scope:this.tree.draggableScope})):e.preventDefault()}onDragStop(e){this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index})}onDropNodeDragOver(e){e.dataTransfer.dropEffect="move",this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onDropNode(e){if(this.tree.droppableNodes&&this.node?.droppable!==!1){let n=this.tree.dragNode;if(this.tree.allowDrop(n,this.node,this.tree.dragNodeScope)){let i=Q({},this.createDropNodeEventMetadata());this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:this.node,index:this.index,accept:()=>{this.processNodeDrop(i)}}):(this.processNodeDrop(i),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:this.node,index:this.index}))}}e.preventDefault(),e.stopPropagation(),this.draghoverNode=!1}createDropNodeEventMetadata(){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node}}processNodeDrop(e){let n=e.dragNodeIndex;e.dragNodeSubNodes.splice(n,1),e.dropNode.children?e.dropNode.children.push(e.dragNode):e.dropNode.children=[e.dragNode],this.tree.dragDropService.stopDrag({node:e.dragNode,subNodes:e.dropNode.parent?e.dropNode.parent.children:this.tree.value,index:n})}onDropNodeDragEnter(e){this.tree.droppableNodes&&this.node?.droppable!==!1&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(this.draghoverNode=!0)}onDropNodeDragLeave(e){if(this.tree.droppableNodes){let n=e.currentTarget.getBoundingClientRect();(e.x>n.left+n.width||e.x<n.left||e.y>=Math.floor(n.top+n.height)||e.y<n.top)&&(this.draghoverNode=!1)}}onKeyDown(e){if(!(!this.isSameNode(e)||this.tree.contextMenu&&this.tree.contextMenu.containerViewChild?.nativeElement.style.display==="block"))switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnter(e);break;case"Tab":this.setAllNodesTabIndexes();break;default:break}}onArrowUp(e){let n=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(n.previousElementSibling)this.focusRowChange(n,n.previousElementSibling,this.findLastVisibleDescendant(n.previousElementSibling));else{let i=this.getParentNodeElement(n);i&&this.focusRowChange(n,i)}e.preventDefault()}onArrowDown(e){let n=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target,i=n.children[1];if(i&&i.children.length>0)this.focusRowChange(n,i.children[0]);else if(n.parentElement.nextElementSibling)this.focusRowChange(n,n.parentElement.nextElementSibling);else{let o=this.findNextSiblingOfAncestor(n.parentElement);o&&this.focusRowChange(n,o)}e.preventDefault()}onArrowRight(e){!this.node?.expanded&&!this.tree.isNodeLeaf(this.node)&&(this.expand(e),e.currentTarget.tabIndex=-1,setTimeout(()=>{this.onArrowDown(e)},1)),e.preventDefault()}onArrowLeft(e){let n=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target;if(this.level===0&&!this.node?.expanded)return!1;if(this.node?.expanded){this.collapse(e);return}let i=this.getParentNodeElement(n.parentElement);i&&this.focusRowChange(e.currentTarget,i),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){let e=Te(this.tree.el.nativeElement,".p-tree-node"),n=[...e].some(i=>i.getAttribute("aria-selected")==="true"||i.getAttribute("aria-checked")==="true");if([...e].forEach(i=>{i.tabIndex=-1}),n){let i=[...e].filter(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");i[0].tabIndex=0;return}e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,n){if(this.tree.selectionMode!==null){let i=[...Te(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=n===!1?-1:0,i.every(o=>o.tabIndex===-1)&&(i[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let n=this.getParentNodeElement(e);return n?n.nextElementSibling?n.nextElementSibling:this.findNextSiblingOfAncestor(n):null}findLastVisibleDescendant(e){let i=Array.from(e.children).find(o=>A(o,"p-tree-node"))?.children[1];if(i&&i.children.length>0){let o=i.children[i.children.length-1];return this.findLastVisibleDescendant(o)}else return e}getParentNodeElement(e){let n=e.parentElement?.parentElement?.parentElement;return n?.tagName==="P-TREENODE"?n:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,n,i){e.tabIndex="-1",n.children[0].tabIndex="0",this.focusNode(i||n)}focusVirtualNode(){this.timeout=setTimeout(()=>{let e=ze(document.body,`[data-id="${this.node?.key??this.node?.data}"]`);ie(e)},1)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",T],index:[2,"index","index",q],firstChild:[2,"firstChild","firstChild",T],lastChild:[2,"lastChild","lastChild",T],level:[2,"level","level",q],indentation:[2,"indentation","indentation",q],itemSize:[2,"itemSize","itemSize",q],loadingMode:"loadingMode"},standalone:!0,features:[B,L,z],decls:1,vars:1,consts:[["icon",""],["class","p-tree-node-droppoint",3,"ngClass","drop","dragover","dragenter","dragleave",4,"ngIf"],["role","treeitem",3,"keydown","ngClass","ngStyle"],[3,"click","contextmenu","touchend","drop","dragover","dragenter","dragleave","dragstart","dragend","ngClass","draggable"],["type","button","pRipple","","tabindex","-1",1,"p-tree-node-toggle-button",3,"click"],[4,"ngIf"],["class","p-tree-node-toggle-icon",4,"ngIf"],["styleClass","p-tree-node-checkbox",3,"ngModel","binary","indeterminate","disabled","variant","tabindex",4,"ngIf"],[3,"class",4,"ngIf"],[1,"p-tree-node-label"],["class","p-tree-node-children","style","display: none;","role","group",3,"display",4,"ngIf"],[1,"p-tree-node-droppoint",3,"drop","dragover","dragenter","dragleave","ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-tree-node-toggle-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-tree-node-checkbox",3,"ngModel","binary","indeterminate","disabled","variant","tabindex"],["role","group",1,"p-tree-node-children",2,"display","none"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(n,i){n&1&&d(0,Yt,13,29),n&2&&me(i.node?0:-1)},dependencies:[t,J,K,le,j,W,ae,Ye,We,ye,$e,Le,He,fe,be,R],encapsulation:2})}return t})(),Ie=(()=>{class t extends G{dragDropService;value;selectionMode;loadingMode="mask";selection;style;styleClass;contextMenu;draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterBy="label";filterMode="lenient";filterOptions;filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(e,n)=>n;highlightOnSelect=!1;_virtualNodeHeight;get virtualNodeHeight(){return this._virtualNodeHeight}set virtualNodeHeight(e){this._virtualNodeHeight=e,console.log("The virtualNodeHeight property is deprecated, use virtualScrollItemSize property instead.")}selectionChange=new v;onNodeSelect=new v;onNodeUnselect=new v;onNodeExpand=new v;onNodeCollapse=new v;onNodeContextMenuSelect=new v;onNodeDrop=new v;onLazyLoad=new v;onScroll=new v;onScrollIndexChange=new v;onFilter=new v;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;ngAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"empty":this._emptyMessageTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"togglericon":this._togglerIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;default:this._templateMap[e.name]=e.template;break}})}serializedValue;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;_componentStyle=P(rt);constructor(e){super(),this.dragDropService=e}ngOnInit(){super.ngOnInit(),this.filterBy&&(this.filterOptions={filter:e=>this._filter(e),reset:()=>this.resetFilter()}),this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe(e=>{this.dragNodeTree=e.tree,this.dragNode=e.node,this.dragNodeSubNodes=e.subNodes,this.dragNodeIndex=e.index,this.dragNodeScope=e.scope}),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe(e=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1}))}ngOnChanges(e){super.ngOnChanges(e),e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild.nativeElement.value))}get containerClass(){return this._componentStyle.classes.root({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(he.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,n,i,o){if(n&&n.length)for(let l of n){l.parent=e;let g={node:l,parent:e,level:i,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(g),g.visible&&l.expanded&&this.serializeNodes(l,l.children,i+1,g.visible)}}onNodeClick(e,n){let i=e.target;if(!(A(i,"p-tree-toggler")||A(i,"p-tree-toggler-icon"))){if(this.selectionMode){if(n.selectable===!1){n.style="--p-focus-ring-color: none;";return}else n.style="--p-focus-ring-color: var(--primary-color)";if(this.hasFilteredNodes()&&(n=this.getNodeWithKey(n.key,this.filteredNodes),!n))return;let o=this.findIndexInSelection(n),l=o>=0;if(this.isCheckboxSelectionMode())l?(this.propagateSelectionDown?this.propagateDown(n,!1):this.selection=this.selection.filter((g,N)=>N!=o),this.propagateSelectionUp&&n.parent&&this.propagateUp(n.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.propagateSelectionDown?this.propagateDown(n,!0):this.selection=[...this.selection||[],n],this.propagateSelectionUp&&n.parent&&this.propagateUp(n.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:n}));else if(this.nodeTouched?!1:this.metaKeySelection){let N=e.metaKey||e.ctrlKey;l&&N?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((F,ut)=>ut!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.isSingleSelectionMode()?this.selectionChange.emit(n):this.isMultipleSelectionMode()&&(this.selection=N?this.selection||[]:[],this.selection=[...this.selection,n],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:n}))}else this.isSingleSelectionMode()?l?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.selection=n,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:n})})):l?(this.selection=this.selection.filter((N,F)=>F!=o),this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.selection=[...this.selection||[],n],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:n})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,n){if(this.contextMenu){let i=e.target;if(i.className&&i.className.indexOf("p-tree-toggler")===0)return;this.findIndexInSelection(n)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(n):this.selectionChange.emit([n])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:n})}}findIndexInSelection(e){let n=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())n=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let i=0;i<this.selection.length;i++){let o=this.selection[i];if(o.key&&o.key===e.key||o==e){n=i;break}}return n}syncNodeOption(e,n,i,o){let l=this.hasFilteredNodes()?this.getNodeWithKey(e.key,n):null;l&&(l[i]=o||e[i])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,n){for(let i of n){if(i.key===e)return i;if(i.children){let o=this.getNodeWithKey(e,i.children);if(o)return o}}}propagateUp(e,n){if(e.children&&e.children.length){let o=0,l=!1;for(let g of e.children)this.isSelected(g)?o++:g.partialSelected&&(l=!0);if(n&&o==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!n){let g=this.findIndexInSelection(e);g>=0&&(this.selection=this.selection.filter((N,F)=>F!=g))}l||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let i=e.parent;i&&this.propagateUp(i,n)}propagateDown(e,n){let i=this.findIndexInSelection(e);if(n&&i==-1?this.selection=[...this.selection||[],e]:!n&&i>-1&&(this.selection=this.selection.filter((o,l)=>l!=i)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,n)}isSelected(e){return this.findIndexInSelection(e)!=-1}isSingleSelectionMode(){return this.selectionMode&&this.selectionMode=="single"}isMultipleSelectionMode(){return this.selectionMode&&this.selectionMode=="multiple"}isCheckboxSelectionMode(){return this.selectionMode&&this.selectionMode=="checkbox"}isNodeLeaf(e){return e.leaf==!1?!1:!(e.children&&e.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(e){return this._templateMap?e.type?this._templateMap[e.type]:this._templateMap.default:null}onDragOver(e){this.droppableNodes&&(!this.value||this.value.length===0)&&(e.dataTransfer.dropEffect="move",e.preventDefault())}onDrop(e){if(this.droppableNodes&&(!this.value||this.value.length===0)){e.preventDefault();let n=this.dragNode;if(this.allowDrop(n,null,this.dragNodeScope)){let i=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:null,index:i,accept:()=>{this.processTreeDrop(n,i)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:null,index:i}),this.processTreeDrop(n,i))}}}processTreeDrop(e,n){this.dragNodeSubNodes.splice(n,1),this.value.push(e),this.dragDropService.stopDrag({node:e})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(e){if(this.droppableNodes){let n=e.currentTarget.getBoundingClientRect();(e.x>n.left+n.width||e.x<n.left||e.y>n.top+n.height||e.y<n.top)&&(this.dragHover=!1)}}allowDrop(e,n,i){if(e)if(this.isValidDragScope(i)){let o=!0;if(n)if(e===n)o=!1;else{let l=n.parent;for(;l!=null;){if(l===e){o=!1;break}l=l.parent}}return o}else return!1;else return!1}isValidDragScope(e){let n=this.droppableScope;if(n){if(typeof n=="string"){if(typeof e=="string")return n===e;if(Array.isArray(e))return e.indexOf(n)!=-1}else if(Array.isArray(n)){if(typeof e=="string")return n.indexOf(e)!=-1;if(Array.isArray(e)){for(let i of n)for(let o of e)if(i===o)return!0}}return!1}else return!0}_filter(e){let n=e;if(n==="")this.filteredNodes=null;else{this.filteredNodes=[];let i=this.filterBy.split(","),o=Ce(n).toLocaleLowerCase(this.filterLocale),l=this.filterMode==="strict";for(let g of this.value){let N=Q({},g),F={searchFields:i,filterText:o,isStrictMode:l};(l&&(this.findFilteredNodes(N,F)||this.isFilterMatched(N,F))||!l&&(this.isFilterMatched(N,F)||this.findFilteredNodes(N,F)))&&this.filteredNodes.push(N)}}this.updateSerializedValue(),this.onFilter.emit({filter:n,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller?.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}findFilteredNodes(e,n){if(e){let i=!1;if(e.children){let o=[...e.children];e.children=[];for(let l of o){let g=Q({},l);this.isFilterMatched(g,n)&&(i=!0,e.children.push(g))}}if(i)return e.expanded=!0,!0}}isFilterMatched(e,n){let{searchFields:i,filterText:o,isStrictMode:l}=n,g=!1;for(let N of i)Ce(String(Ue(e,N))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(g=!0);return(!g||l&&!this.isNodeLeaf(e))&&(g=this.findFilteredNodes(e,{searchFields:i,filterText:o,isStrictMode:l})||g),g}getIndex(e,n){let i=e.getItemOptions;return i?i(n).index:n}getBlockableElement(){return this.el.nativeElement.children[0]}ngOnDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(n){return new(n||t)(Ee(Ae,8))};static \u0275cmp=$({type:t,selectors:[["p-tree"]],contentQueries:function(n,i,o){if(n&1&&(y(o,lt,4),y(o,Xt,4),y(o,ei,4),y(o,ti,4),y(o,ii,4),y(o,ni,4),y(o,oi,4),y(o,ri,4),y(o,li,4),y(o,ai,4),y(o,ne,4)),n&2){let l;f(l=m())&&(i.filterTemplate=l.first),f(l=m())&&(i.nodeTemplate=l.first),f(l=m())&&(i.headerTemplate=l.first),f(l=m())&&(i.footerTemplate=l.first),f(l=m())&&(i.loaderTemplate=l.first),f(l=m())&&(i.emptyMessageTemplate=l.first),f(l=m())&&(i.togglerIconTemplate=l.first),f(l=m())&&(i.checkboxIconTemplate=l.first),f(l=m())&&(i.loadingIconTemplate=l.first),f(l=m())&&(i.filterIconTemplate=l.first),f(l=m())&&(i.templates=l)}},viewQuery:function(n,i){if(n&1&&(V(lt,5),V(si,5),V(ci,5)),n&2){let o;f(o=m())&&(i.filterViewChild=o.first),f(o=m())&&(i.scroller=o.first),f(o=m())&&(i.wrapperViewChild=o.first)}},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",style:"style",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",T],droppableNodes:[2,"droppableNodes","droppableNodes",T],metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],loading:[2,"loading","loading",T],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",T],filter:[2,"filter","filter",T],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",T],virtualScroll:[2,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",q],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",q],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",T],virtualNodeHeight:"virtualNodeHeight"},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},standalone:!0,features:[te([rt]),B,L,ue,z],decls:8,vars:10,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"drop","dragover","dragenter","dragleave","ngClass","ngStyle"],["class","p-tree-mask p-overlay-mask",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-tree-empty-message",4,"ngIf"],[1,"p-tree-mask","p-overlay-mask"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-tree-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-tree-loading-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pInputText","","type","search","autocomplete","off",1,"p-tree-filter-input",3,"keydown.enter","input"],["class","p-tree-filter-icon",4,"ngIf"],[1,"p-tree-filter-icon"],["styleClass","p-tree-root",3,"items","tabindex","style","scrollHeight","itemSize","lazy","options","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["styleClass","p-tree-root",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","scrollHeight","itemSize","lazy","options"],["class","p-tree-root-children","role","tree",3,"ngClass","style",4,"ngIf"],["role","tree",1,"p-tree-root-children",3,"ngClass"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode"],[1,"p-tree-root"],["class","p-tree-root-children","role","tree",4,"ngIf"],["role","tree",1,"p-tree-root-children"],[3,"node","firstChild","lastChild","index","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode"],[1,"p-tree-empty-message"],[4,"ngIf","ngIfElse"]],template:function(n,i){if(n&1&&(_(0,"div",7),b("drop",function(l){return i.onDrop(l)})("dragover",function(l){return i.onDragOver(l)})("dragenter",function(){return i.onDragEnter()})("dragleave",function(l){return i.onDragLeave(l)}),d(1,mi,3,2,"div",8)(2,yi,1,0,"ng-container",9)(3,vi,1,4,"ng-container")(4,Ni,1,1,"p-iconField")(5,zi,3,2,"ng-container",10)(6,Ai,3,3,"div",11)(7,Pi,1,0,"ng-container",9),h()),n&2){let o;w(i.styleClass),a("ngClass",i.containerClass)("ngStyle",i.style),c(),a("ngIf",i.loading&&i.loadingMode==="mask"),c(),a("ngTemplateOutlet",i.headerTemplate||i._headerTemplate),c(),me(i.filterTemplate||i._filterTemplate?3:4),c(2),a("ngIf",(o=i.getRootNode())==null?null:o.length),c(),a("ngIf",!i.loading&&(i.getRootNode()==null||i.getRootNode().length===0)),c(),a("ngTemplateOutlet",i.footerTemplate||i._footerTemplate)}},dependencies:[J,K,le,j,W,ae,Xe,R,qe,be,Ze,ye,Je,Ge,Bi],encapsulation:2})}return t})();var Hi=({dt:t})=>`
|
|
274
|
+
.p-treeselect {
|
|
275
|
+
display: inline-flex;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
position: relative;
|
|
278
|
+
user-select: none;
|
|
279
|
+
background: ${t("treeselect.background")};
|
|
280
|
+
border: 1px solid ${t("treeselect.border.color")};
|
|
281
|
+
transition: background ${t("treeselect.transition.duration")}, color ${t("treeselect.transition.duration")}, border-color ${t("treeselect.transition.duration")}, outline-color ${t("treeselect.transition.duration")}, box-shadow ${t("treeselect.transition.duration")};
|
|
282
|
+
border-radius: ${t("treeselect.border.radius")};
|
|
283
|
+
outline-color: transparent;
|
|
284
|
+
box-shadow: ${t("treeselect.shadow")};
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
p-treeselect.ng-invalid.ng-dirty .p-treeselect {
|
|
288
|
+
border-color: ${t("treeselect.invalid.border.color")};
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
p-treeselect.ng-invalid.ng-dirty .p-treeselect.p-focus {
|
|
292
|
+
border-color: ${t("treeselect.focus.border.color")};
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.p-treeselect:not(.p-disabled):hover {
|
|
296
|
+
border-color: ${t("treeselect.hover.border.color")};
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.p-treeselect:not(.p-disabled).p-focus {
|
|
300
|
+
border-color: ${t("treeselect.focus.border.color")};
|
|
301
|
+
box-shadow: ${t("treeselect.focus.ring.shadow")};
|
|
302
|
+
outline: ${t("treeselect.focus.ring.width")} ${t("treeselect.focus.ring.style")} ${t("treeselect.focus.ring.color")};
|
|
303
|
+
outline-offset: ${t("treeselect.focus.ring.offset")};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.p-treeselect.p-variant-filled {
|
|
307
|
+
background: ${t("treeselect.filled.background")};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.p-treeselect.p-variant-filled:not(.p-disabled):hover {
|
|
311
|
+
background: ${t("treeselect.filled.hover.background")};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.p-treeselect.p-variant-filled.p-focus {
|
|
315
|
+
background: ${t("treeselect.filled.focus.background")};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.p-treeselect.p-disabled {
|
|
319
|
+
opacity: 1;
|
|
320
|
+
background: ${t("treeselect.disabled.background")};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.p-treeselect-dropdown {
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
justify-content: center;
|
|
327
|
+
flex-shrink: 0;
|
|
328
|
+
background: transparent;
|
|
329
|
+
color: ${t("treeselect.dropdown.color")};
|
|
330
|
+
width: ${t("treeselect.dropdown.width")};
|
|
331
|
+
border-start-end-radius: ${t("border.radius.md")};
|
|
332
|
+
border-end-end-radius: ${t("border.radius.md")};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.p-treeselect-label-container {
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
flex: 1 1 auto;
|
|
338
|
+
cursor: pointer;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.p-treeselect-label {
|
|
342
|
+
display: flex;
|
|
343
|
+
align-items-center;
|
|
344
|
+
gap: calc(${t("treeselect.padding.y")} / 2);
|
|
345
|
+
white-space: nowrap;
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
text-overflow: ellipsis;
|
|
349
|
+
padding: ${t("treeselect.padding.y")} ${t("treeselect.padding.x")};
|
|
350
|
+
color: ${t("treeselect.color")};
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.p-treeselect-label.p-placeholder {
|
|
354
|
+
color: ${t("treeselect.placeholder.color")};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
p-treeselect.ng-invalid.ng-dirty .p-treeselect-label.p-placeholder {
|
|
358
|
+
color: ${t("treeselect.invalid.placeholder.color")};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.p-treeselect.p-disabled .p-treeselect-label {
|
|
362
|
+
color: ${t("treeselect.disabled.color")};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.p-treeselect-label-empty {
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
visibility: hidden;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.p-treeselect .p-treeselect-overlay {
|
|
371
|
+
min-width: 100%;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.p-treeselect-overlay {
|
|
375
|
+
background: ${t("treeselect.overlay.background")};
|
|
376
|
+
color: ${t("treeselect.overlay.color")};
|
|
377
|
+
border: 1px solid ${t("treeselect.overlay.border.color")};
|
|
378
|
+
border-radius: ${t("treeselect.overlay.border.radius")};
|
|
379
|
+
box-shadow: ${t("treeselect.overlay.shadow")};
|
|
380
|
+
overflow: hidden;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
.p-treeselect-tree-container {
|
|
385
|
+
overflow: auto;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.p-treeselect-empty-message {
|
|
389
|
+
padding: ${t("treeselect.empty.message.padding")};
|
|
390
|
+
background: transparent;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.p-treeselect-fluid {
|
|
394
|
+
display: flex;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.p-treeselect-overlay .p-tree {
|
|
398
|
+
padding: ${t("treeselect.tree.padding")};
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.p-treeselect-label .p-chip {
|
|
402
|
+
padding-top: calc(${t("treeselect.padding.y")} / 2);
|
|
403
|
+
padding-bottom: calc(${t("treeselect.padding.y")} / 2);
|
|
404
|
+
border-radius: ${t("treeselect.chip.border.radius")};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.p-treeselect-label:has(.p-chip) {
|
|
408
|
+
padding: calc(${t("treeselect.padding.y")} / 2) calc(${t("treeselect.padding.x")} / 2);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.p-treeselect-sm .p-treeselect-label {
|
|
412
|
+
font-size: ${t("treeselect.sm.font.size")};
|
|
413
|
+
padding-block: ${t("treeselect.sm.padding.y")};
|
|
414
|
+
padding-inline: ${t("treeselect.sm.padding.x")};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.p-treeselect-sm .p-treeselect-dropdown .p-icon {
|
|
418
|
+
font-size: ${t("treeselect.sm.font.size")};
|
|
419
|
+
width: ${t("treeselect.sm.font.size")};
|
|
420
|
+
height: ${t("treeselect.sm.font.size")};
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.p-treeselect-lg .p-treeselect-label {
|
|
424
|
+
font-size: ${t("treeselect.lg.font.size")};
|
|
425
|
+
padding-block: ${t("treeselect.lg.padding.y")};
|
|
426
|
+
padding-inline: ${t("treeselect.lg.padding.x")};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.p-treeselect-lg .p-treeselect-dropdown .p-icon {
|
|
430
|
+
font-size: ${t("treeselect.lg.font.size")};
|
|
431
|
+
width: ${t("treeselect.lg.font.size")};
|
|
432
|
+
height: ${t("treeselect.lg.font.size")};
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.p-treeselect-clear-icon {
|
|
436
|
+
cursor: pointer;
|
|
437
|
+
display: flex;
|
|
438
|
+
align-items: center;
|
|
439
|
+
justify-content: center;
|
|
440
|
+
flex-shrink: 0;
|
|
441
|
+
background: transparent;
|
|
442
|
+
color: ${t("treeselect.clear.icon.color")};
|
|
443
|
+
}`,qi={root:({instance:t})=>({position:t.appendTo==="self"?"relative":void 0})},Ki={root:({instance:t})=>({"p-treeselect p-component p-inputwrapper":!0,"p-treeselect-display-chip":t.display==="chip","p-disabled":t.disabled,"p-invalid":t.invalid,"p-focus":t.focused,"p-variant-filled":t.variant?t.variant==="filled":t.config.inputStyle()==="filled","p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-treeselect-open":t.overlayVisible,"p-treeselect-clearable":t.showClear,"p-treeselect-fluid":t.hasFluid,"p-treeselect-sm p-inputfield-sm":t.size==="small","p-treeselect-lg p-inputfield-lg":t.size==="large"}),labelContainer:"p-treeselect-label-container",label:({instance:t})=>({"p-treeselect-label":!0,"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}),chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"},ct=(()=>{class t extends oe{name="treeselect";theme=Hi;classes=Ki;inlineStyles=qi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})();var ji=["value"],Wi=["header"],Ji=["empty"],Gi=["footer"],Zi=["clearicon"],Yi=["triggericon"],Xi=["dropdownicon"],en=["filtericon"],tn=["closeicon"],nn=["itemtogglericon"],on=["itemcheckboxicon"],rn=["itemloadingicon"],ln=["container"],an=["focusInput"],sn=["filter"],cn=["tree"],dn=["panel"],pn=["overlay"],un=["firstHiddenFocusableEl"],gn=["lastHiddenFocusableEl"],_n=(t,r)=>({$implicit:t,placeholder:r}),dt=(t,r)=>({$implicit:t,options:r}),hn=t=>({"max-height":t}),fn=t=>({$implicit:t}),mn=(t,r)=>({$implicit:t,partialSelected:r});function yn(t,r){t&1&&M(0)}function Tn(t,r){if(t&1&&(S(0),d(1,yn,1,0,"ng-container",25),I()),t&2){let e=s();c(),a("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",H(2,_n,e.value,e.placeholder))}}function vn(t,r){if(t&1&&(S(0),U(1),I()),t&2){let e=s(2);c(),ge(" ",e.label||"empty"," ")}}function Cn(t,r){if(t&1&&(_(0,"div",27),x(1,"p-chip",28),h()),t&2){let e=r.$implicit;c(),a("label",e.label)}}function bn(t,r){if(t&1&&(S(0),U(1),I()),t&2){let e=s(3);c(),ee(e.placeholder||"empty")}}function xn(t,r){if(t&1&&d(0,Cn,2,1,"div",26)(1,bn,2,1,"ng-container",20),t&2){let e=s(2);a("ngForOf",e.value),c(),a("ngIf",e.emptyValue)}}function Sn(t,r){if(t&1&&d(0,vn,2,1,"ng-container",19)(1,xn,2,2,"ng-template",null,5,k),t&2){let e=re(2),n=s();a("ngIf",n.display==="comma")("ngIfElse",e)}}function In(t,r){if(t&1){let e=E();_(0,"TimesIcon",31),b("click",function(i){p(e);let o=s(2);return u(o.clear(i))}),h()}t&2&&w("p-treeselect-clear-icon")}function Nn(t,r){}function wn(t,r){t&1&&d(0,Nn,0,0,"ng-template")}function En(t,r){if(t&1){let e=E();_(0,"span",32),b("click",function(i){p(e);let o=s(2);return u(o.clear(i))}),d(1,wn,1,0,null,33),h()}if(t&2){let e=s(2);c(),a("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function kn(t,r){if(t&1&&(S(0),d(1,In,1,2,"TimesIcon",29)(2,En,2,1,"span",30),I()),t&2){let e=s();c(),a("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),a("ngIf",e.clearIconTemplate||e.clearIconTemplate)}}function Mn(t,r){t&1&&x(0,"ChevronDownIcon",34),t&2&&a("styleClass","p-treeselect-dropdown-icon")}function Vn(t,r){}function Dn(t,r){t&1&&d(0,Vn,0,0,"ng-template")}function On(t,r){if(t&1&&(_(0,"span",35),d(1,Dn,1,0,null,33),h()),t&2){let e=s();c(),a("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate||e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Fn(t,r){t&1&&M(0)}function $n(t,r){t&1&&M(0)}function Ln(t,r){if(t&1&&d(0,$n,1,0,"ng-container",33),t&2){let e=s(3);a("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function zn(t,r){t&1&&(S(0),d(1,Ln,1,1,"ng-template",null,10,k),I())}function Rn(t,r){t&1&&M(0)}function Qn(t,r){if(t&1&&d(0,Rn,1,0,"ng-container",25),t&2){let e=r.$implicit,n=s(3);a("ngTemplateOutlet",n.itemTogglerIconTemplate||n._itemTogglerIconTemplate)("ngTemplateOutletContext",D(2,fn,e))}}function Un(t,r){t&1&&d(0,Qn,1,4,"ng-template",null,11,k)}function An(t,r){t&1&&M(0)}function Pn(t,r){if(t&1&&d(0,An,1,0,"ng-container",25),t&2){let e=r.$implicit,n=r.partialSelected,i=s(3);a("ngTemplateOutlet",i.itemCheckboxIconTemplate||i._itemCheckboxIconTemplate)("ngTemplateOutletContext",H(2,mn,e,n))}}function Bn(t,r){t&1&&d(0,Pn,1,5,"ng-template",null,12,k)}function Hn(t,r){t&1&&M(0)}function qn(t,r){if(t&1&&d(0,Hn,1,0,"ng-container",33),t&2){let e=s(3);a("ngTemplateOutlet",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate)}}function Kn(t,r){t&1&&d(0,qn,1,1,"ng-template",null,13,k)}function jn(t,r){t&1&&M(0)}function Wn(t,r){if(t&1){let e=E();_(0,"div",36,6)(2,"span",37,7),b("focus",function(i){p(e);let o=s();return u(o.onFirstHiddenFocus(i))}),h(),d(4,Fn,1,0,"ng-container",25),_(5,"div",38)(6,"p-tree",39,8),b("selectionChange",function(i){p(e);let o=s();return u(o.onSelectionChange(i))})("onNodeExpand",function(i){p(e);let o=s();return u(o.nodeExpand(i))})("onNodeCollapse",function(i){p(e);let o=s();return u(o.nodeCollapse(i))})("onNodeSelect",function(i){p(e);let o=s();return u(o.onSelect(i))})("onNodeUnselect",function(i){p(e);let o=s();return u(o.onUnselect(i))}),d(8,zn,3,0,"ng-container",20)(9,Un,2,0,null,20)(10,Bn,2,0,null,20)(11,Kn,2,0,null,20),h()(),d(12,jn,1,0,"ng-container",25),_(13,"span",37,9),b("focus",function(i){p(e);let o=s();return u(o.onLastHiddenFocus(i))}),h()()}if(t&2){let e=s();w(e.panelStyleClass),a("ngStyle",e.panelStyle)("ngClass",e.panelClass),C("id",e.listId),c(2),C("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",H(38,dt,e.value,e.options)),c(),a("ngStyle",D(41,hn,e.scrollHeight)),c(),a("value",e.options)("propagateSelectionDown",e.propagateSelectionDown)("propagateSelectionUp",e.propagateSelectionUp)("selectionMode",e.selectionMode)("selection",e.value)("metaKeySelection",e.metaKeySelection)("emptyMessage",e.emptyMessage)("filter",e.filter)("filterBy",e.filterBy)("filterMode",e.filterMode)("filterPlaceholder",e.filterPlaceholder)("filterLocale",e.filterLocale)("filteredNodes",e.filteredNodes)("virtualScroll",e.virtualScroll)("virtualScrollItemSize",e.virtualScrollItemSize)("virtualScrollOptions",e.virtualScrollOptions)("_templateMap",e.templateMap)("loading",e.loading),c(2),a("ngIf",e.emptyTemplate||e._emptyTemplate),c(),a("ngIf",e.itemTogglerIconTemplate||e._itemTogglerIconTemplate),c(),a("ngIf",e.itemCheckboxIconTemplate||e._itemCheckboxIconTemplate),c(),a("ngIf",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate),c(),a("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",H(43,dt,e.value,e.options)),c(),C("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Jn={provide:Fe,useExisting:ce(()=>pt),multi:!0},pt=(()=>{class t extends G{inputId;scrollHeight="400px";disabled;metaKeySelection=!1;variant="outlined";display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;fluid=!1;panelStyleClass;set containerStyle(e){let n=this._componentStyle.inlineStyles.root({instance:this});this._containerStyle=Q(Q({},n),e)}get containerStyle(){return this._containerStyle}_containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";appendTo;filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;size;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}loading;onNodeExpand=new v;onNodeCollapse=new v;onShow=new v;onHide=new v;onClear=new v;onFilter=new v;onFocus=new v;onBlur=new v;onNodeUnselect=new v;onNodeSelect=new v;_showTransitionOptions;_hideTransitionOptions;containerEl;focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;filteredNodes;filterValue=null;serializedValue;valueTemplate;headerTemplate;emptyTemplate;footerTemplate;clearIconTemplate;triggerIconTemplate;dropdownIconTemplate;filterIconTemplate;closeIconTemplate;itemTogglerIconTemplate;itemCheckboxIconTemplate;itemLoadingIconTemplate;templates;_valueTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_clearIconTemplate;_triggerIconTemplate;_filterIconTemplate;_closeIconTemplate;_itemTogglerIconTemplate;_itemCheckboxIconTemplate;_itemLoadingIconTemplate;_dropdownIconTemplate;focused;overlayVisible;selfChange;value;expandedNodes=[];_options;templateMap;onModelChange=()=>{};onModelTouched=()=>{};listId="";_componentStyle=P(ct);ngOnInit(){super.ngOnInit(),this.listId=_e("pn_id_")+"_list",this.updateTreeState()}ngAfterContentInit(){this.templates.length&&(this.templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"itemtogglericon":this._itemTogglerIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemloadingicon":this._itemLoadingIconTemplate=e.template;break;default:e.name?this.templateMap[e.name]=e.template:this.valueTemplate=e.template;break}})}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.filter)ve(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let n=se(this.panelEl.nativeElement);n&&n.length>0&&n[0].focus()}break}}onOverlayBeforeHide(e){let n=se(this.containerEl.nativeElement);n&&n.length>0&&n[0].focus()}onSelectionChange(e){this.value=e,this.onModelChange(this.value),this.cd.markForCheck()}onClick(e){this.disabled||!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!A(e.target,"p-treeselect-close")&&!A(e.target,"p-checkbox-box")&&!A(e.target,"p-checkbox-icon")&&(this.overlayVisible?this.hide():this.show(),this.focusInput?.nativeElement.focus())}onKeyDown(e){switch(e.code){case"ArrowDown":this.overlayVisible||(this.show(),e.preventDefault()),this.onArrowDown(e),e.preventDefault();break;case"Space":case"Enter":this.overlayVisible||(this.show(),e.preventDefault());break;case"Escape":this.overlayVisible&&(this.hide(),this.focusInput?.nativeElement.focus(),e.preventDefault());break;case"Tab":this.onTabKey(e);break;default:break}}onFilterInput(e){this.filterValue=e.target.value,this.treeViewChild?._filter(this.filterValue),this.onFilter.emit({filter:this.filterValue,filteredValue:this.treeViewChild?.filteredNodes}),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onArrowDown(e){if(this.overlayVisible&&this.panelEl?.nativeElement){let n=se(this.panelEl.nativeElement,".p-tree-node");n&&n.length>0&&n[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInput?.nativeElement?Re(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;ie(n)}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInput?.nativeElement?Qe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;ie(n)}show(){this.overlayVisible=!0}hide(e){this.overlayVisible=!1,this.resetFilter(),this.onHide.emit(e),this.cd.markForCheck()}clear(e){this.value=null,this.resetExpandedNodes(),this.resetPartialSelected(),this.onModelChange(this.value),this.onClear.emit(),e.stopPropagation()}checkValue(){return this.value!==null&&ve(this.value)}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(ie(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return se(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}resetFilter(){this.filter&&!this.resetFilterOnHide?(this.filteredNodes=this.treeViewChild?.filteredNodes,this.treeViewChild?.resetFilter()):this.filterValue=null}updateTreeState(){if(this.value){let e=this.selectionMode==="single"?[this.value]:[...this.value];this.resetExpandedNodes(),this.resetPartialSelected(),e&&this.options&&this.updateTreeBranchState(null,null,e)}}updateTreeBranchState(e,n,i){if(e){if(this.isSelected(e)&&(this.expandPath(n),i.splice(i.indexOf(e),1)),i.length>0&&e.children)for(let o of e.children)this.updateTreeBranchState(o,[...n,e],i)}else for(let o of this.options)this.updateTreeBranchState(o,[],i)}expandPath(e){for(let n of e)n.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node)}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1)}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let n of e)n.partialSelected=!1,n.children&&n.children?.length>0&&this.resetPartialSelected(n.children)}findSelectedNodes(e,n,i){if(e){if(this.isSelected(e)&&(i.push(e),delete n[e.key]),Object.keys(n).length&&e.children)for(let o of e.children)this.findSelectedNodes(o,n,i)}else for(let o of this.options)this.findSelectedNodes(o,n,i)}isSelected(e){return this.findIndexInSelection(e)!=-1}findIndexInSelection(e){let n=-1;if(this.value)if(this.selectionMode==="single")n=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let i=0;i<this.value.length;i++){let o=this.value[i];if(o.key&&o.key===e.key||o==e){n=i;break}}return n}onSelect(e){this.onNodeSelect.emit(e),this.selectionMode==="single"&&(this.hide(),this.focusInput?.nativeElement.focus())}onUnselect(e){this.onNodeUnselect.emit(e)}onInputFocus(e){this.disabled||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}writeValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}get containerClass(){return this._componentStyle.classes.root({instance:this})}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyValue(){return!this.value||Object.keys(this.value).length===0}get emptyOptions(){return!this.options||this.options.length===0}get label(){let e=this.value||[];return e.length?e.map(n=>n.label).join(", "):this.selectionMode==="single"&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(i){return(e||(e=O(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(n,i,o){if(n&1&&(y(o,ji,4),y(o,Wi,4),y(o,Ji,4),y(o,Gi,4),y(o,Zi,4),y(o,Yi,4),y(o,Xi,4),y(o,en,4),y(o,tn,4),y(o,nn,4),y(o,on,4),y(o,rn,4),y(o,ne,4)),n&2){let l;f(l=m())&&(i.valueTemplate=l.first),f(l=m())&&(i.headerTemplate=l.first),f(l=m())&&(i.emptyTemplate=l.first),f(l=m())&&(i.footerTemplate=l.first),f(l=m())&&(i.clearIconTemplate=l.first),f(l=m())&&(i.triggerIconTemplate=l.first),f(l=m())&&(i.dropdownIconTemplate=l.first),f(l=m())&&(i.filterIconTemplate=l.first),f(l=m())&&(i.closeIconTemplate=l.first),f(l=m())&&(i.itemTogglerIconTemplate=l.first),f(l=m())&&(i.itemCheckboxIconTemplate=l.first),f(l=m())&&(i.itemLoadingIconTemplate=l.first),f(l=m())&&(i.templates=l)}},viewQuery:function(n,i){if(n&1&&(V(ln,5),V(an,5),V(sn,5),V(cn,5),V(dn,5),V(pn,5),V(un,5),V(gn,5)),n&2){let o;f(o=m())&&(i.containerEl=o.first),f(o=m())&&(i.focusInput=o.first),f(o=m())&&(i.filterViewChild=o.first),f(o=m())&&(i.treeViewChild=o.first),f(o=m())&&(i.panelEl=o.first),f(o=m())&&(i.overlayViewChild=o.first),f(o=m())&&(i.firstHiddenFocusableElementOnOverlay=o.first),f(o=m())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",disabled:[2,"disabled","disabled",T],metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],variant:"variant",display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",fluid:[2,"fluid","fluid",T],panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",appendTo:"appendTo",filter:[2,"filter","filter",T],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],showClear:[2,"showClear","showClear",T],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",T],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",size:"size",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",T],options:"options",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",loading:[2,"loading","loading",T]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},standalone:!0,features:[te([Jn,ct]),B,L,z],decls:18,vars:30,consts:[["container",""],["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[3,"click","ngClass","ngStyle"],[1,"p-hidden-accessible"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","disabled","pAutoFocus"],[1,"p-treeselect-label-container"],[3,"ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",1,"p-treeselect-dropdown"],[3,"styleClass",4,"ngIf"],["class","p-treeselect-dropdown-icon",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-treeselect-chip-item",4,"ngFor","ngForOf"],[1,"p-treeselect-chip-item"],["styleClass","p-treeselect-chip",3,"label"],[3,"class","click",4,"ngIf"],["class","p-treeselect-clear-icon",3,"click",4,"ngIf"],[3,"click"],[1,"p-treeselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-treeselect-dropdown-icon"],[1,"p-treeselect-overlay","p-component",3,"ngStyle","ngClass"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],[1,"p-treeselect-tree-container",3,"ngStyle"],[3,"selectionChange","onNodeExpand","onNodeCollapse","onNodeSelect","onNodeUnselect","value","propagateSelectionDown","propagateSelectionUp","selectionMode","selection","metaKeySelection","emptyMessage","filter","filterBy","filterMode","filterPlaceholder","filterLocale","filteredNodes","virtualScroll","virtualScrollItemSize","virtualScrollOptions","_templateMap","loading"]],template:function(n,i){if(n&1){let o=E();_(0,"div",14,0),b("click",function(g){return p(o),u(i.onClick(g))}),_(2,"div",15)(3,"input",16,1),b("focus",function(g){return p(o),u(i.onInputFocus(g))})("blur",function(g){return p(o),u(i.onInputBlur(g))})("keydown",function(g){return p(o),u(i.onKeyDown(g))}),h()(),_(5,"div",17)(6,"div",18),d(7,Tn,2,5,"ng-container",19)(8,Sn,3,2,"ng-template",null,2,k),h()(),d(10,kn,3,2,"ng-container",20),_(11,"div",21),d(12,Mn,1,1,"ChevronDownIcon",22)(13,On,2,1,"span",23),h(),_(14,"p-overlay",24,3),Oe("visibleChange",function(g){return p(o),De(i.overlayVisible,g)||(i.overlayVisible=g),u(g)}),b("onAnimationStart",function(g){return p(o),u(i.onOverlayAnimationStart(g))})("onBeforeHide",function(g){return p(o),u(i.onOverlayBeforeHide(g))})("onShow",function(g){return p(o),u(i.onShow.emit(g))})("onHide",function(g){return p(o),u(i.hide(g))}),d(16,Wn,15,46,"ng-template",null,4,k),h()()}if(n&2){let o,l,g=re(9);w(i.containerStyleClass),a("ngClass",i.containerClass)("ngStyle",i.containerStyle),c(3),a("disabled",i.disabled)("pAutoFocus",i.autofocus),C("id",i.inputId)("tabindex",i.disabled?-1:i.tabindex)("aria-controls",i.overlayVisible?i.listId:null)("aria-haspopup","tree")("aria-expanded",(o=i.overlayVisible)!==null&&o!==void 0?o:!1)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label)),c(3),w(i.labelStyleClass),a("ngClass",i.labelClass)("ngStyle",i.labelStyle),c(),a("ngIf",i.valueTemplate||i._valueTemplate)("ngIfElse",g),c(3),a("ngIf",i.checkValue()&&!i.disabled&&i.showClear),c(),C("aria-expanded",(l=i.overlayVisible)!==null&&l!==void 0?l:!1)("aria-label","treeselect trigger"),c(),a("ngIf",!i.triggerIconTemplate&&!i._triggerIconTemplate&&!i.dropdownIconTemplate&&!i._dropdownIconTemplate),c(),a("ngIf",i.triggerIconTemplate||i._triggerIconTemplate||i.dropdownIconTemplate||i._dropdownIconTemplate),c(),Ve("visible",i.overlayVisible),a("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[J,K,le,j,W,ae,je,R,Ie,Pe,Ke,fe,ot],encapsulation:2,changeDetection:0})}return t})(),gr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[pt,R,R]})}return t})();export{pt as a,gr as b};
|