dealposbooks 1.9.0 → 1.9.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.
Files changed (123) hide show
  1. package/3rdpartylicenses.txt +43 -43
  2. package/assets/scss/layouts/_layout.scss +1 -1
  3. package/assets/scss/layouts/dark/_dark.scss +164 -153
  4. package/assets/scss/style.scss +1 -1
  5. package/assets/scss/variables/_variables.scss +4 -2
  6. package/assets/world.json +17808 -1
  7. package/{chunk-S64TQVWK.js → chunk-2GAPYNNZ.js} +1 -1
  8. package/chunk-2HYLQR56.js +1 -0
  9. package/chunk-2VTAWSHV.js +1 -0
  10. package/chunk-3R4UQAEP.js +1 -0
  11. package/chunk-3SPHZLLV.js +301 -0
  12. package/{chunk-CEMQLY34.js → chunk-4EDEITTK.js} +1 -1
  13. package/{chunk-3TRGIHUH.js → chunk-4FHVIHSY.js} +1 -1
  14. package/chunk-4OHRBQE4.js +1 -0
  15. package/chunk-4OXMK44M.js +1 -0
  16. package/chunk-4TTJBC5I.js +1 -0
  17. package/chunk-5CZUTVXD.js +47 -0
  18. package/chunk-5M3BH2HK.js +1 -0
  19. package/{chunk-UIM6GQ63.js → chunk-5MHVGNVO.js} +1 -1
  20. package/{chunk-VYTUB2DV.js → chunk-63XPN7AG.js} +1 -1
  21. package/chunk-74EMBNLM.js +1 -0
  22. package/chunk-75NY4EHJ.js +7 -0
  23. package/{chunk-ON4N4CPO.js → chunk-7CAU344O.js} +1 -1
  24. package/chunk-BS6MB7HD.js +1 -0
  25. package/chunk-C54Z7Z3J.js +246 -0
  26. package/{chunk-IF72X7RS.js → chunk-CCE4VMYO.js} +1 -1
  27. package/chunk-CP57YBBI.js +2 -0
  28. package/{chunk-SJTXIIX5.js → chunk-DCES5UJV.js} +1 -1
  29. package/{chunk-MS3UTNX6.js → chunk-DERWDCI5.js} +1 -1
  30. package/chunk-EDPSZYHH.js +1 -0
  31. package/{chunk-RNU2O7NF.js → chunk-ELUESCCC.js} +1 -1
  32. package/{chunk-CMHZLZ4E.js → chunk-FJ7IM55X.js} +1 -1
  33. package/{chunk-YILEWAVV.js → chunk-FNWWNWQP.js} +1 -1
  34. package/chunk-FOSJHYSQ.js +300 -0
  35. package/chunk-GH3BVHFE.js +1 -0
  36. package/{chunk-VVC3QQUI.js → chunk-GO3ETPB7.js} +1 -1
  37. package/chunk-GYI6FJNZ.js +1 -0
  38. package/{chunk-HZLUYZB3.js → chunk-GYOO2JKC.js} +1 -1
  39. package/chunk-HF7H6NPN.js +1 -0
  40. package/chunk-HGUXJRBI.js +1 -0
  41. package/{chunk-TL6UHPBU.js → chunk-HKFTHGN6.js} +1 -1
  42. package/{chunk-DWTUKOMR.js → chunk-JBLYOAVS.js} +1 -1
  43. package/chunk-JDKSRPMM.js +1 -0
  44. package/chunk-JWPV2SP2.js +59 -0
  45. package/chunk-K5GIEJY3.js +7 -0
  46. package/{chunk-QBJKUIXK.js → chunk-KOC7QQ5A.js} +1 -1
  47. package/{chunk-BTZS5NIZ.js → chunk-M66SFDOI.js} +1 -1
  48. package/chunk-MOGY4H6O.js +1 -0
  49. package/{chunk-PATWAZNE.js → chunk-OBBJFGOA.js} +1 -1
  50. package/{chunk-G7MS6UI4.js → chunk-OPNWLQQY.js} +1 -1
  51. package/{chunk-35EULUGT.js → chunk-OUJ6CGAI.js} +1 -1
  52. package/{chunk-AKZM2DMY.js → chunk-OVUTH3B6.js} +1 -1
  53. package/chunk-OWUXXKGD.js +180 -0
  54. package/{chunk-R3FUAON5.js → chunk-PAQGWJ3J.js} +1 -1
  55. package/chunk-PCZW753D.js +1 -0
  56. package/chunk-PMQ7L7VQ.js +1 -0
  57. package/chunk-PRVKVHZC.js +1 -0
  58. package/{chunk-UNNEEFI2.js → chunk-PZRWSIXN.js} +1 -1
  59. package/{chunk-G63G4UQZ.js → chunk-Q3HG4BLC.js} +2 -2
  60. package/chunk-QEQCMTMU.js +1 -0
  61. package/chunk-QMXENXYW.js +1 -0
  62. package/chunk-R4CV5F66.js +1 -0
  63. package/chunk-RJZW77TO.js +1 -0
  64. package/{chunk-DYZT7UKM.js → chunk-S6JRFIGG.js} +1 -1
  65. package/{chunk-F6SXKAYF.js → chunk-TO47DVWB.js} +1 -1
  66. package/chunk-UHDEQNDX.js +1 -0
  67. package/{chunk-34EMCCL5.js → chunk-V4MEQMDJ.js} +3 -3
  68. package/{chunk-GHZLR44M.js → chunk-VET2QT6C.js} +1 -1
  69. package/chunk-VHNXAKFS.js +1 -0
  70. package/chunk-W37QK7Z5.js +520 -0
  71. package/{chunk-HZ7WPLLK.js → chunk-W56XJVPD.js} +1 -1
  72. package/chunk-W5VZK5LZ.js +70 -0
  73. package/chunk-WF2ZEF5P.js +1 -0
  74. package/{chunk-Q4Y2IGA6.js → chunk-WLFERE5C.js} +1 -1
  75. package/chunk-WZ5MSCDB.js +1 -0
  76. package/chunk-XFW6LFAM.js +5 -0
  77. package/chunk-YAEJRHVD.js +1 -0
  78. package/chunk-Z5SFK23M.js +960 -0
  79. package/{chunk-ROX6NFMK.js → chunk-ZQKGNYP5.js} +1 -1
  80. package/{chunk-26X2X35R.js → chunk-ZZNYX7MX.js} +1 -1
  81. package/index.html +3 -3
  82. package/main-G22CDQKS.js +1 -0
  83. package/package.json +1 -1
  84. package/styles-ETBLCGC3.css +1 -0
  85. package/chunk-2VF35PRV.js +0 -7
  86. package/chunk-6TRUWOKK.js +0 -1
  87. package/chunk-7FE3ZTH3.js +0 -7
  88. package/chunk-7V4AFAU5.js +0 -1
  89. package/chunk-AVL6C3VX.js +0 -59
  90. package/chunk-CAI423H5.js +0 -1
  91. package/chunk-DDBPJDR6.js +0 -1
  92. package/chunk-DXCBV3NP.js +0 -1
  93. package/chunk-E2RBYY7Q.js +0 -1
  94. package/chunk-E2VJWAI2.js +0 -1
  95. package/chunk-EBTC6B2W.js +0 -2
  96. package/chunk-EHULZLLD.js +0 -300
  97. package/chunk-ESKS6LNH.js +0 -246
  98. package/chunk-G4MYTCDD.js +0 -1
  99. package/chunk-GGZEY27B.js +0 -1
  100. package/chunk-I7T4W6G2.js +0 -47
  101. package/chunk-JXI4NDYT.js +0 -1
  102. package/chunk-KFKLJQ2D.js +0 -1
  103. package/chunk-KLKIGY44.js +0 -1
  104. package/chunk-KO5IN2G2.js +0 -1
  105. package/chunk-L2BS7BTV.js +0 -1
  106. package/chunk-LUH5EEUM.js +0 -1
  107. package/chunk-MEKP6D5H.js +0 -1
  108. package/chunk-MQ5Y727W.js +0 -1
  109. package/chunk-NWVWD4IE.js +0 -1
  110. package/chunk-NXCLB2JQ.js +0 -1
  111. package/chunk-OVJSBJBH.js +0 -197
  112. package/chunk-PBI352JR.js +0 -1
  113. package/chunk-PKK7JSPR.js +0 -1
  114. package/chunk-PKPPDJWT.js +0 -301
  115. package/chunk-PMLVFBAT.js +0 -1
  116. package/chunk-TDHD3ZTF.js +0 -1
  117. package/chunk-UFS2HLAY.js +0 -1
  118. package/chunk-UM7MB5JU.js +0 -1
  119. package/chunk-USO7UKRV.js +0 -821
  120. package/chunk-YF4S6CQO.js +0 -524
  121. package/chunk-YNI2HWIV.js +0 -180
  122. package/main-YPUVQR54.js +0 -1
  123. package/styles-JMIKZHNX.css +0 -1
package/chunk-USO7UKRV.js DELETED
@@ -1,821 +0,0 @@
1
- import{i as Et,j as It,m as U,n as Lt,o as St,v as Ot}from"./chunk-OVJSBJBH.js";import{a as k}from"./chunk-26X2X35R.js";import{C as $,N as Tt,Q as V,T as tt,a as S,ca as et,f as xt,g as kt,h as Ct,k as y,ka as _t,la as x,m as Y,p as wt,r as W,ta as O}from"./chunk-35EULUGT.js";import{a as ft,j as mt,m as vt,n as yt,o as $t,s as H,v as q}from"./chunk-SJTXIIX5.js";import{Ca as g,Da as st,Ib as m,Ja as at,Jb as s,Kb as ut,Mb as dt,Nb as I,Rc as r,Sc as v,Tb as B,Ub as F,Uc as X,Vb as w,Wb as j,Xb as R,Yb as bt,ba as T,ca as h,cc as pt,dc as d,ec as ht,fb as c,fc as gt,ha as b,hb as lt,hc as M,jc as P,kc as A,lb as J,mc as Q,nb as ct,nc as Z,oa as z,ra as it,sa as u,tb as _,ub as f,uc as L,vb as E,wc as K,xb as p,ya as N,za as rt,zb as C}from"./chunk-2VF35PRV.js";import{a as D}from"./chunk-EQDQRRRY.js";var Dt=(()=>{class t extends k{autofocus=!1;_autofocus=!1;focused=!1;platformId=b(at);document=b(ft);host=b(st);ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){q(this.platformId)&&this._autofocus&&setTimeout(()=>{let e=Et.getFocusableElements(this.host?.nativeElement);e.length===0&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275dir=E({type:t,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[2,"autofocus","autofocus",r],_autofocus:[0,"pAutoFocus","_autofocus"]},features:[p]})}return t})(),me=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({})}return t})();var Ht=({dt:t})=>`
2
- .p-badge {
3
- display: inline-flex;
4
- border-radius: ${t("badge.border.radius")};
5
- justify-content: center;
6
- padding: ${t("badge.padding")};
7
- background: ${t("badge.primary.background")};
8
- color: ${t("badge.primary.color")};
9
- font-size: ${t("badge.font.size")};
10
- font-weight: ${t("badge.font.weight")};
11
- min-width: ${t("badge.min.width")};
12
- height: ${t("badge.height")};
13
- line-height: ${t("badge.height")};
14
- }
15
-
16
- .p-badge-dot {
17
- width: ${t("badge.dot.size")};
18
- min-width: ${t("badge.dot.size")};
19
- height: ${t("badge.dot.size")};
20
- border-radius: 50%;
21
- padding: 0;
22
- }
23
-
24
- .p-badge-circle {
25
- padding: 0;
26
- border-radius: 50%;
27
- }
28
-
29
- .p-badge-secondary {
30
- background: ${t("badge.secondary.background")};
31
- color: ${t("badge.secondary.color")};
32
- }
33
-
34
- .p-badge-success {
35
- background: ${t("badge.success.background")};
36
- color: ${t("badge.success.color")};
37
- }
38
-
39
- .p-badge-info {
40
- background: ${t("badge.info.background")};
41
- color: ${t("badge.info.color")};
42
- }
43
-
44
- .p-badge-warn {
45
- background: ${t("badge.warn.background")};
46
- color: ${t("badge.warn.color")};
47
- }
48
-
49
- .p-badge-danger {
50
- background: ${t("badge.danger.background")};
51
- color: ${t("badge.danger.color")};
52
- }
53
-
54
- .p-badge-contrast {
55
- background: ${t("badge.contrast.background")};
56
- color: ${t("badge.contrast.color")};
57
- }
58
-
59
- .p-badge-sm {
60
- font-size: ${t("badge.sm.font.size")};
61
- min-width: ${t("badge.sm.min.width")};
62
- height: ${t("badge.sm.height")};
63
- line-height: ${t("badge.sm.height")};
64
- }
65
-
66
- .p-badge-lg {
67
- font-size: ${t("badge.lg.font.size")};
68
- min-width: ${t("badge.lg.min.width")};
69
- height: ${t("badge.lg.height")};
70
- line-height: ${t("badge.lg.height")};
71
- }
72
-
73
- .p-badge-xl {
74
- font-size: ${t("badge.xl.font.size")};
75
- min-width: ${t("badge.xl.min.width")};
76
- height: ${t("badge.xl.height")};
77
- line-height: ${t("badge.xl.height")};
78
- }
79
-
80
- /* For PrimeNG (directive)*/
81
-
82
- .p-overlay-badge {
83
- position: relative;
84
- }
85
-
86
- .p-overlay-badge > .p-badge {
87
- position: absolute;
88
- top: 0;
89
- inset-inline-end: 0;
90
- transform: translate(50%, -50%);
91
- transform-origin: 100% 0;
92
- margin: 0;
93
- }
94
- `,Vt={root:({props:t,instance:i})=>["p-badge p-component",{"p-badge-circle":tt(t.value)&&String(t.value).length===1,"p-badge-dot":V(t.value)&&!i.$slots.default,"p-badge-sm":t.size==="small","p-badge-lg":t.size==="large","p-badge-xl":t.size==="xlarge","p-badge-info":t.severity==="info","p-badge-success":t.severity==="success","p-badge-warn":t.severity==="warn","p-badge-danger":t.severity==="danger","p-badge-secondary":t.severity==="secondary","p-badge-contrast":t.severity==="contrast"}]},zt=(()=>{class t extends O{name="badge";theme=Ht;classes=Vt;static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275prov=T({token:t,factory:t.\u0275fac})}return t})();var ot=(()=>{class t extends k{styleClass=g();style=g();badgeSize=g();size=g();severity=g();value=g();badgeDisabled=g(!1,{transform:r});_componentStyle=b(zt);containerClass=X(()=>{let e="p-badge p-component";return tt(this.value())&&String(this.value()).length===1&&(e+=" p-badge-circle"),this.badgeSize()==="large"?e+=" p-badge-lg":this.badgeSize()==="xlarge"?e+=" p-badge-xl":this.badgeSize()==="small"&&(e+=" p-badge-sm"),V(this.value())&&(e+=" p-badge-dot"),this.styleClass()&&(e+=` ${this.styleClass()}`),this.severity()&&(e+=` p-badge-${this.severity()}`),e});static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275cmp=_({type:t,selectors:[["p-badge"]],hostVars:6,hostBindings:function(o,n){o&2&&(dt(n.style()),I(n.containerClass()),ut("display",n.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],style:[1,"style"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[L([zt]),p],decls:1,vars:1,template:function(o,n){o&1&&Q(0),o&2&&Z(n.value())},dependencies:[H,x],encapsulation:2,changeDetection:0})}return t})(),Bt=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({imports:[ot,x,x]})}return t})();var Be=(()=>{class t extends Lt{static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275cmp=_({type:t,selectors:[["TimesIcon"]],features:[p],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(o,n){o&1&&(it(),B(0,"svg",0),w(1,"path",1),F()),o&2&&(I(n.getClassNames()),m("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return t})();var jt=["content"],Rt=["loadingicon"],Qt=["icon"],Zt=["*"],Mt=t=>({class:t});function qt(t,i){t&1&&bt(0)}function Wt(t,i){if(t&1&&w(0,"span",8),t&2){let e=d(3);s("ngClass",e.iconClass()),m("aria-hidden",!0)("data-pc-section","loadingicon")}}function Ut(t,i){if(t&1&&w(0,"SpinnerIcon",9),t&2){let e=d(3);s("styleClass",e.spinnerIconClass())("spin",!0),m("aria-hidden",!0)("data-pc-section","loadingicon")}}function Gt(t,i){if(t&1&&(j(0),C(1,Wt,1,3,"span",6)(2,Ut,1,4,"SpinnerIcon",7),R()),t&2){let e=d(2);c(),s("ngIf",e.loadingIcon),c(),s("ngIf",!e.loadingIcon)}}function Jt(t,i){}function Kt(t,i){if(t&1&&C(0,Jt,0,0,"ng-template",10),t&2){let e=d(2);s("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Xt(t,i){if(t&1&&(j(0),C(1,Gt,3,2,"ng-container",2)(2,Kt,1,1,null,5),R()),t&2){let e=d();c(),s("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),s("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)("ngTemplateOutletContext",K(3,Mt,e.iconClass()))}}function Yt(t,i){if(t&1&&w(0,"span",8),t&2){let e=d(2);I(e.icon),s("ngClass",e.iconClass()),m("data-pc-section","icon")}}function te(t,i){}function ee(t,i){if(t&1&&C(0,te,0,0,"ng-template",10),t&2){let e=d(2);s("ngIf",!e.icon&&(e.iconTemplate||e._iconTemplate))}}function oe(t,i){if(t&1&&(j(0),C(1,Yt,1,4,"span",11)(2,ee,1,1,null,5),R()),t&2){let e=d();c(),s("ngIf",e.icon&&!e.iconTemplate&&!e._iconTemplate),c(),s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",K(3,Mt,e.iconClass()))}}function ne(t,i){if(t&1&&(B(0,"span",12),Q(1),F()),t&2){let e=d();m("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),c(),Z(e.label)}}function ie(t,i){if(t&1&&w(0,"p-badge",13),t&2){let e=d();s("value",e.badge)("severity",e.badgeSeverity)}}var re=({dt:t})=>`
95
- .p-button {
96
- display: inline-flex;
97
- cursor: pointer;
98
- user-select: none;
99
- align-items: center;
100
- justify-content: center;
101
- overflow: hidden;
102
- position: relative;
103
- color: ${t("button.primary.color")};
104
- background: ${t("button.primary.background")};
105
- border: 1px solid ${t("button.primary.border.color")};
106
- padding-block: ${t("button.padding.y")};
107
- padding-inline: ${t("button.padding.x")};
108
- font-size: 1rem;
109
- font-family: inherit;
110
- font-feature-settings: inherit;
111
- transition: background ${t("button.transition.duration")}, color ${t("button.transition.duration")}, border-color ${t("button.transition.duration")},
112
- outline-color ${t("button.transition.duration")}, box-shadow ${t("button.transition.duration")};
113
- border-radius: ${t("button.border.radius")};
114
- outline-color: transparent;
115
- gap: ${t("button.gap")};
116
- }
117
-
118
- .p-button-icon,
119
- .p-button-icon:before,
120
- .p-button-icon:after {
121
- line-height: inherit;
122
- }
123
-
124
- .p-button:disabled {
125
- cursor: default;
126
- }
127
-
128
- .p-button-icon-right {
129
- order: 1;
130
- }
131
-
132
- .p-button-icon-right:dir(rtl) {
133
- order: -1;
134
- }
135
-
136
- .p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {
137
- order: 1;
138
- }
139
-
140
- .p-button-icon-bottom {
141
- order: 2;
142
- }
143
-
144
- .p-button-icon-only {
145
- width: ${t("button.icon.only.width")};
146
- padding-inline-start: 0;
147
- padding-inline-end: 0;
148
- gap: 0;
149
- }
150
-
151
- .p-button-icon-only.p-button-rounded {
152
- border-radius: 50%;
153
- height: ${t("button.icon.only.width")};
154
- }
155
-
156
- .p-button-icon-only .p-button-label {
157
- visibility: hidden;
158
- width: 0;
159
- }
160
-
161
- .p-button-sm {
162
- font-size: ${t("button.sm.font.size")};
163
- padding-block: ${t("button.sm.padding.y")};
164
- padding-inline: ${t("button.sm.padding.x")};
165
- }
166
-
167
- .p-button-sm .p-button-icon {
168
- font-size: ${t("button.sm.font.size")};
169
- }
170
-
171
- .p-button-sm.p-button-icon-only {
172
- width: ${t("button.sm.icon.only.width")};
173
- }
174
-
175
- .p-button-sm.p-button-icon-only.p-button-rounded {
176
- height: ${t("button.sm.icon.only.width")};
177
- }
178
-
179
- .p-button-lg {
180
- font-size: ${t("button.lg.font.size")};
181
- padding-block: ${t("button.lg.padding.y")};
182
- padding-inline: ${t("button.lg.padding.x")};
183
- }
184
-
185
- .p-button-lg .p-button-icon {
186
- font-size: ${t("button.lg.font.size")};
187
- }
188
-
189
- .p-button-lg.p-button-icon-only {
190
- width: ${t("button.lg.icon.only.width")};
191
- }
192
-
193
- .p-button-lg.p-button-icon-only.p-button-rounded {
194
- height: ${t("button.lg.icon.only.width")};
195
- }
196
-
197
- .p-button-vertical {
198
- flex-direction: column;
199
- }
200
-
201
- .p-button-label {
202
- font-weight: ${t("button.label.font.weight")};
203
- }
204
-
205
- .p-button-fluid {
206
- width: 100%;
207
- }
208
-
209
- .p-button-fluid.p-button-icon-only {
210
- width: ${t("button.icon.only.width")};
211
- }
212
-
213
- .p-button:not(:disabled):hover {
214
- background: ${t("button.primary.hover.background")};
215
- border: 1px solid ${t("button.primary.hover.border.color")};
216
- color: ${t("button.primary.hover.color")};
217
- }
218
-
219
- .p-button:not(:disabled):active {
220
- background: ${t("button.primary.active.background")};
221
- border: 1px solid ${t("button.primary.active.border.color")};
222
- color: ${t("button.primary.active.color")};
223
- }
224
-
225
- .p-button:focus-visible {
226
- box-shadow: ${t("button.primary.focus.ring.shadow")};
227
- outline: ${t("button.focus.ring.width")} ${t("button.focus.ring.style")} ${t("button.primary.focus.ring.color")};
228
- outline-offset: ${t("button.focus.ring.offset")};
229
- }
230
-
231
- .p-button .p-badge {
232
- min-width: ${t("button.badge.size")};
233
- height: ${t("button.badge.size")};
234
- line-height: ${t("button.badge.size")};
235
- }
236
-
237
- .p-button-raised {
238
- box-shadow: ${t("button.raised.shadow")};
239
- }
240
-
241
- .p-button-rounded {
242
- border-radius: ${t("button.rounded.border.radius")};
243
- }
244
-
245
- .p-button-secondary {
246
- background: ${t("button.secondary.background")};
247
- border: 1px solid ${t("button.secondary.border.color")};
248
- color: ${t("button.secondary.color")};
249
- }
250
-
251
- .p-button-secondary:not(:disabled):hover {
252
- background: ${t("button.secondary.hover.background")};
253
- border: 1px solid ${t("button.secondary.hover.border.color")};
254
- color: ${t("button.secondary.hover.color")};
255
- }
256
-
257
- .p-button-secondary:not(:disabled):active {
258
- background: ${t("button.secondary.active.background")};
259
- border: 1px solid ${t("button.secondary.active.border.color")};
260
- color: ${t("button.secondary.active.color")};
261
- }
262
-
263
- .p-button-secondary:focus-visible {
264
- outline-color: ${t("button.secondary.focus.ring.color")};
265
- box-shadow: ${t("button.secondary.focus.ring.shadow")};
266
- }
267
-
268
- .p-button-success {
269
- background: ${t("button.success.background")};
270
- border: 1px solid ${t("button.success.border.color")};
271
- color: ${t("button.success.color")};
272
- }
273
-
274
- .p-button-success:not(:disabled):hover {
275
- background: ${t("button.success.hover.background")};
276
- border: 1px solid ${t("button.success.hover.border.color")};
277
- color: ${t("button.success.hover.color")};
278
- }
279
-
280
- .p-button-success:not(:disabled):active {
281
- background: ${t("button.success.active.background")};
282
- border: 1px solid ${t("button.success.active.border.color")};
283
- color: ${t("button.success.active.color")};
284
- }
285
-
286
- .p-button-success:focus-visible {
287
- outline-color: ${t("button.success.focus.ring.color")};
288
- box-shadow: ${t("button.success.focus.ring.shadow")};
289
- }
290
-
291
- .p-button-info {
292
- background: ${t("button.info.background")};
293
- border: 1px solid ${t("button.info.border.color")};
294
- color: ${t("button.info.color")};
295
- }
296
-
297
- .p-button-info:not(:disabled):hover {
298
- background: ${t("button.info.hover.background")};
299
- border: 1px solid ${t("button.info.hover.border.color")};
300
- color: ${t("button.info.hover.color")};
301
- }
302
-
303
- .p-button-info:not(:disabled):active {
304
- background: ${t("button.info.active.background")};
305
- border: 1px solid ${t("button.info.active.border.color")};
306
- color: ${t("button.info.active.color")};
307
- }
308
-
309
- .p-button-info:focus-visible {
310
- outline-color: ${t("button.info.focus.ring.color")};
311
- box-shadow: ${t("button.info.focus.ring.shadow")};
312
- }
313
-
314
- .p-button-warn {
315
- background: ${t("button.warn.background")};
316
- border: 1px solid ${t("button.warn.border.color")};
317
- color: ${t("button.warn.color")};
318
- }
319
-
320
- .p-button-warn:not(:disabled):hover {
321
- background: ${t("button.warn.hover.background")};
322
- border: 1px solid ${t("button.warn.hover.border.color")};
323
- color: ${t("button.warn.hover.color")};
324
- }
325
-
326
- .p-button-warn:not(:disabled):active {
327
- background: ${t("button.warn.active.background")};
328
- border: 1px solid ${t("button.warn.active.border.color")};
329
- color: ${t("button.warn.active.color")};
330
- }
331
-
332
- .p-button-warn:focus-visible {
333
- outline-color: ${t("button.warn.focus.ring.color")};
334
- box-shadow: ${t("button.warn.focus.ring.shadow")};
335
- }
336
-
337
- .p-button-help {
338
- background: ${t("button.help.background")};
339
- border: 1px solid ${t("button.help.border.color")};
340
- color: ${t("button.help.color")};
341
- }
342
-
343
- .p-button-help:not(:disabled):hover {
344
- background: ${t("button.help.hover.background")};
345
- border: 1px solid ${t("button.help.hover.border.color")};
346
- color: ${t("button.help.hover.color")};
347
- }
348
-
349
- .p-button-help:not(:disabled):active {
350
- background: ${t("button.help.active.background")};
351
- border: 1px solid ${t("button.help.active.border.color")};
352
- color: ${t("button.help.active.color")};
353
- }
354
-
355
- .p-button-help:focus-visible {
356
- outline-color: ${t("button.help.focus.ring.color")};
357
- box-shadow: ${t("button.help.focus.ring.shadow")};
358
- }
359
-
360
- .p-button-danger {
361
- background: ${t("button.danger.background")};
362
- border: 1px solid ${t("button.danger.border.color")};
363
- color: ${t("button.danger.color")};
364
- }
365
-
366
- .p-button-danger:not(:disabled):hover {
367
- background: ${t("button.danger.hover.background")};
368
- border: 1px solid ${t("button.danger.hover.border.color")};
369
- color: ${t("button.danger.hover.color")};
370
- }
371
-
372
- .p-button-danger:not(:disabled):active {
373
- background: ${t("button.danger.active.background")};
374
- border: 1px solid ${t("button.danger.active.border.color")};
375
- color: ${t("button.danger.active.color")};
376
- }
377
-
378
- .p-button-danger:focus-visible {
379
- outline-color: ${t("button.danger.focus.ring.color")};
380
- box-shadow: ${t("button.danger.focus.ring.shadow")};
381
- }
382
-
383
- .p-button-contrast {
384
- background: ${t("button.contrast.background")};
385
- border: 1px solid ${t("button.contrast.border.color")};
386
- color: ${t("button.contrast.color")};
387
- }
388
-
389
- .p-button-contrast:not(:disabled):hover {
390
- background: ${t("button.contrast.hover.background")};
391
- border: 1px solid ${t("button.contrast.hover.border.color")};
392
- color: ${t("button.contrast.hover.color")};
393
- }
394
-
395
- .p-button-contrast:not(:disabled):active {
396
- background: ${t("button.contrast.active.background")};
397
- border: 1px solid ${t("button.contrast.active.border.color")};
398
- color: ${t("button.contrast.active.color")};
399
- }
400
-
401
- .p-button-contrast:focus-visible {
402
- outline-color: ${t("button.contrast.focus.ring.color")};
403
- box-shadow: ${t("button.contrast.focus.ring.shadow")};
404
- }
405
-
406
- .p-button-outlined {
407
- background: transparent;
408
- border-color: ${t("button.outlined.primary.border.color")};
409
- color: ${t("button.outlined.primary.color")};
410
- }
411
-
412
- .p-button-outlined:not(:disabled):hover {
413
- background: ${t("button.outlined.primary.hover.background")};
414
- border-color: ${t("button.outlined.primary.border.color")};
415
- color: ${t("button.outlined.primary.color")};
416
- }
417
-
418
- .p-button-outlined:not(:disabled):active {
419
- background: ${t("button.outlined.primary.active.background")};
420
- border-color: ${t("button.outlined.primary.border.color")};
421
- color: ${t("button.outlined.primary.color")};
422
- }
423
-
424
- .p-button-outlined.p-button-secondary {
425
- border-color: ${t("button.outlined.secondary.border.color")};
426
- color: ${t("button.outlined.secondary.color")};
427
- }
428
-
429
- .p-button-outlined.p-button-secondary:not(:disabled):hover {
430
- background: ${t("button.outlined.secondary.hover.background")};
431
- border-color: ${t("button.outlined.secondary.border.color")};
432
- color: ${t("button.outlined.secondary.color")};
433
- }
434
-
435
- .p-button-outlined.p-button-secondary:not(:disabled):active {
436
- background: ${t("button.outlined.secondary.active.background")};
437
- border-color: ${t("button.outlined.secondary.border.color")};
438
- color: ${t("button.outlined.secondary.color")};
439
- }
440
-
441
- .p-button-outlined.p-button-success {
442
- border-color: ${t("button.outlined.success.border.color")};
443
- color: ${t("button.outlined.success.color")};
444
- }
445
-
446
- .p-button-outlined.p-button-success:not(:disabled):hover {
447
- background: ${t("button.outlined.success.hover.background")};
448
- border-color: ${t("button.outlined.success.border.color")};
449
- color: ${t("button.outlined.success.color")};
450
- }
451
-
452
- .p-button-outlined.p-button-success:not(:disabled):active {
453
- background: ${t("button.outlined.success.active.background")};
454
- border-color: ${t("button.outlined.success.border.color")};
455
- color: ${t("button.outlined.success.color")};
456
- }
457
-
458
- .p-button-outlined.p-button-info {
459
- border-color: ${t("button.outlined.info.border.color")};
460
- color: ${t("button.outlined.info.color")};
461
- }
462
-
463
- .p-button-outlined.p-button-info:not(:disabled):hover {
464
- background: ${t("button.outlined.info.hover.background")};
465
- border-color: ${t("button.outlined.info.border.color")};
466
- color: ${t("button.outlined.info.color")};
467
- }
468
-
469
- .p-button-outlined.p-button-info:not(:disabled):active {
470
- background: ${t("button.outlined.info.active.background")};
471
- border-color: ${t("button.outlined.info.border.color")};
472
- color: ${t("button.outlined.info.color")};
473
- }
474
-
475
- .p-button-outlined.p-button-warn {
476
- border-color: ${t("button.outlined.warn.border.color")};
477
- color: ${t("button.outlined.warn.color")};
478
- }
479
-
480
- .p-button-outlined.p-button-warn:not(:disabled):hover {
481
- background: ${t("button.outlined.warn.hover.background")};
482
- border-color: ${t("button.outlined.warn.border.color")};
483
- color: ${t("button.outlined.warn.color")};
484
- }
485
-
486
- .p-button-outlined.p-button-warn:not(:disabled):active {
487
- background: ${t("button.outlined.warn.active.background")};
488
- border-color: ${t("button.outlined.warn.border.color")};
489
- color: ${t("button.outlined.warn.color")};
490
- }
491
-
492
- .p-button-outlined.p-button-help {
493
- border-color: ${t("button.outlined.help.border.color")};
494
- color: ${t("button.outlined.help.color")};
495
- }
496
-
497
- .p-button-outlined.p-button-help:not(:disabled):hover {
498
- background: ${t("button.outlined.help.hover.background")};
499
- border-color: ${t("button.outlined.help.border.color")};
500
- color: ${t("button.outlined.help.color")};
501
- }
502
-
503
- .p-button-outlined.p-button-help:not(:disabled):active {
504
- background: ${t("button.outlined.help.active.background")};
505
- border-color: ${t("button.outlined.help.border.color")};
506
- color: ${t("button.outlined.help.color")};
507
- }
508
-
509
- .p-button-outlined.p-button-danger {
510
- border-color: ${t("button.outlined.danger.border.color")};
511
- color: ${t("button.outlined.danger.color")};
512
- }
513
-
514
- .p-button-outlined.p-button-danger:not(:disabled):hover {
515
- background: ${t("button.outlined.danger.hover.background")};
516
- border-color: ${t("button.outlined.danger.border.color")};
517
- color: ${t("button.outlined.danger.color")};
518
- }
519
-
520
- .p-button-outlined.p-button-danger:not(:disabled):active {
521
- background: ${t("button.outlined.danger.active.background")};
522
- border-color: ${t("button.outlined.danger.border.color")};
523
- color: ${t("button.outlined.danger.color")};
524
- }
525
-
526
- .p-button-outlined.p-button-contrast {
527
- border-color: ${t("button.outlined.contrast.border.color")};
528
- color: ${t("button.outlined.contrast.color")};
529
- }
530
-
531
- .p-button-outlined.p-button-contrast:not(:disabled):hover {
532
- background: ${t("button.outlined.contrast.hover.background")};
533
- border-color: ${t("button.outlined.contrast.border.color")};
534
- color: ${t("button.outlined.contrast.color")};
535
- }
536
-
537
- .p-button-outlined.p-button-contrast:not(:disabled):active {
538
- background: ${t("button.outlined.contrast.active.background")};
539
- border-color: ${t("button.outlined.contrast.border.color")};
540
- color: ${t("button.outlined.contrast.color")};
541
- }
542
-
543
- .p-button-outlined.p-button-plain {
544
- border-color: ${t("button.outlined.plain.border.color")};
545
- color: ${t("button.outlined.plain.color")};
546
- }
547
-
548
- .p-button-outlined.p-button-plain:not(:disabled):hover {
549
- background: ${t("button.outlined.plain.hover.background")};
550
- border-color: ${t("button.outlined.plain.border.color")};
551
- color: ${t("button.outlined.plain.color")};
552
- }
553
-
554
- .p-button-outlined.p-button-plain:not(:disabled):active {
555
- background: ${t("button.outlined.plain.active.background")};
556
- border-color: ${t("button.outlined.plain.border.color")};
557
- color: ${t("button.outlined.plain.color")};
558
- }
559
-
560
- .p-button-text {
561
- background: transparent;
562
- border-color: transparent;
563
- color: ${t("button.text.primary.color")};
564
- }
565
-
566
- .p-button-text:not(:disabled):hover {
567
- background: ${t("button.text.primary.hover.background")};
568
- border-color: transparent;
569
- color: ${t("button.text.primary.color")};
570
- }
571
-
572
- .p-button-text:not(:disabled):active {
573
- background: ${t("button.text.primary.active.background")};
574
- border-color: transparent;
575
- color: ${t("button.text.primary.color")};
576
- }
577
-
578
- .p-button-text.p-button-secondary {
579
- background: transparent;
580
- border-color: transparent;
581
- color: ${t("button.text.secondary.color")};
582
- }
583
-
584
- .p-button-text.p-button-secondary:not(:disabled):hover {
585
- background: ${t("button.text.secondary.hover.background")};
586
- border-color: transparent;
587
- color: ${t("button.text.secondary.color")};
588
- }
589
-
590
- .p-button-text.p-button-secondary:not(:disabled):active {
591
- background: ${t("button.text.secondary.active.background")};
592
- border-color: transparent;
593
- color: ${t("button.text.secondary.color")};
594
- }
595
-
596
- .p-button-text.p-button-success {
597
- background: transparent;
598
- border-color: transparent;
599
- color: ${t("button.text.success.color")};
600
- }
601
-
602
- .p-button-text.p-button-success:not(:disabled):hover {
603
- background: ${t("button.text.success.hover.background")};
604
- border-color: transparent;
605
- color: ${t("button.text.success.color")};
606
- }
607
-
608
- .p-button-text.p-button-success:not(:disabled):active {
609
- background: ${t("button.text.success.active.background")};
610
- border-color: transparent;
611
- color: ${t("button.text.success.color")};
612
- }
613
-
614
- .p-button-text.p-button-info {
615
- background: transparent;
616
- border-color: transparent;
617
- color: ${t("button.text.info.color")};
618
- }
619
-
620
- .p-button-text.p-button-info:not(:disabled):hover {
621
- background: ${t("button.text.info.hover.background")};
622
- border-color: transparent;
623
- color: ${t("button.text.info.color")};
624
- }
625
-
626
- .p-button-text.p-button-info:not(:disabled):active {
627
- background: ${t("button.text.info.active.background")};
628
- border-color: transparent;
629
- color: ${t("button.text.info.color")};
630
- }
631
-
632
- .p-button-text.p-button-warn {
633
- background: transparent;
634
- border-color: transparent;
635
- color: ${t("button.text.warn.color")};
636
- }
637
-
638
- .p-button-text.p-button-warn:not(:disabled):hover {
639
- background: ${t("button.text.warn.hover.background")};
640
- border-color: transparent;
641
- color: ${t("button.text.warn.color")};
642
- }
643
-
644
- .p-button-text.p-button-warn:not(:disabled):active {
645
- background: ${t("button.text.warn.active.background")};
646
- border-color: transparent;
647
- color: ${t("button.text.warn.color")};
648
- }
649
-
650
- .p-button-text.p-button-help {
651
- background: transparent;
652
- border-color: transparent;
653
- color: ${t("button.text.help.color")};
654
- }
655
-
656
- .p-button-text.p-button-help:not(:disabled):hover {
657
- background: ${t("button.text.help.hover.background")};
658
- border-color: transparent;
659
- color: ${t("button.text.help.color")};
660
- }
661
-
662
- .p-button-text.p-button-help:not(:disabled):active {
663
- background: ${t("button.text.help.active.background")};
664
- border-color: transparent;
665
- color: ${t("button.text.help.color")};
666
- }
667
-
668
- .p-button-text.p-button-danger {
669
- background: transparent;
670
- border-color: transparent;
671
- color: ${t("button.text.danger.color")};
672
- }
673
-
674
- .p-button-text.p-button-danger:not(:disabled):hover {
675
- background: ${t("button.text.danger.hover.background")};
676
- border-color: transparent;
677
- color: ${t("button.text.danger.color")};
678
- }
679
-
680
- .p-button-text.p-button-danger:not(:disabled):active {
681
- background: ${t("button.text.danger.active.background")};
682
- border-color: transparent;
683
- color: ${t("button.text.danger.color")};
684
- }
685
-
686
- .p-button-text.p-button-plain {
687
- background: transparent;
688
- border-color: transparent;
689
- color: ${t("button.text.plain.color")};
690
- }
691
-
692
- .p-button-text.p-button-plain:not(:disabled):hover {
693
- background: ${t("button.text.plain.hover.background")};
694
- border-color: transparent;
695
- color: ${t("button.text.plain.color")};
696
- }
697
-
698
- .p-button-text.p-button-plain:not(:disabled):active {
699
- background: ${t("button.text.plain.active.background")};
700
- border-color: transparent;
701
- color: ${t("button.text.plain.color")};
702
- }
703
-
704
- .p-button-text.p-button-contrast {
705
- background: transparent;
706
- border-color: transparent;
707
- color: ${t("button.text.contrast.color")};
708
- }
709
-
710
- .p-button-text.p-button-contrast:not(:disabled):hover {
711
- background: ${t("button.text.contrast.hover.background")};
712
- border-color: transparent;
713
- color: ${t("button.text.contrast.color")};
714
- }
715
-
716
- .p-button-text.p-button-contrast:not(:disabled):active {
717
- background: ${t("button.text.contrast.active.background")};
718
- border-color: transparent;
719
- color: ${t("button.text.contrast.color")};
720
- }
721
-
722
- .p-button-link {
723
- background: transparent;
724
- border-color: transparent;
725
- color: ${t("button.link.color")};
726
- }
727
-
728
- .p-button-link:not(:disabled):hover {
729
- background: transparent;
730
- border-color: transparent;
731
- color: ${t("button.link.hover.color")};
732
- }
733
-
734
- .p-button-link:not(:disabled):hover .p-button-label {
735
- text-decoration: underline;
736
- }
737
-
738
- .p-button-link:not(:disabled):active {
739
- background: transparent;
740
- border-color: transparent;
741
- color: ${t("button.link.active.color")};
742
- }
743
-
744
- /* For PrimeNG */
745
- .p-button-icon-right {
746
- order: 1;
747
- }
748
-
749
- p-button[iconpos='right'] spinnericon {
750
- order: 1;
751
- }
752
- `,se={root:({instance:t,props:i})=>["p-button p-component",{"p-button-icon-only":t.hasIcon&&!i.label&&!i.badge,"p-button-vertical":(i.iconPos==="top"||i.iconPos==="bottom")&&i.label,"p-button-loading":i.loading,"p-button-link":i.link,[`p-button-${i.severity}`]:i.severity,"p-button-raised":i.raised,"p-button-rounded":i.rounded,"p-button-text":i.text,"p-button-outlined":i.outlined,"p-button-sm":i.size==="small","p-button-lg":i.size==="large","p-button-plain":i.plain,"p-button-fluid":i.fluid}],loadingIcon:"p-button-loading-icon",icon:({props:t})=>["p-button-icon",{[`p-button-icon-${t.iconPos}`]:t.label}],label:"p-button-label"},Ft=(()=>{class t extends O{name="button";theme=re;classes=se;static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275prov=T({token:t,factory:t.\u0275fac})}return t})();var ae=(()=>{class t extends k{type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;fluid;onClick=new N;onFocus=new N;onBlur=new N;contentTemplate;loadingIconTemplate;iconTemplate;_buttonProps;get buttonProps(){return this._buttonProps}set buttonProps(e){this._buttonProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([o,n])=>this[`_${o}`]!==n&&(this[`_${o}`]=n))}get hasFluid(){let o=this.el.nativeElement.closest("p-fluid");return V(this.fluid)?!!o:this.fluid}_componentStyle=b(Ft);templates;_contentTemplate;_iconTemplate;_loadingIconTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}ngOnChanges(e){super.ngOnChanges(e);let{buttonProps:o}=e;if(o){let n=o.currentValue;for(let l in n)this[l]=n[l]}}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[o])=>e+` ${o}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this._iconTemplate||this.loadingIcon||this.loadingIconTemplate||this._loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text||this.variant=="text","p-button-outlined":this.outlined||this.variant=="outlined","p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,"p-button-fluid":this.hasFluid,[`${this.styleClass}`]:this.styleClass}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275cmp=_({type:t,selectors:[["p-button"]],contentQueries:function(o,n,l){if(o&1&&(M(l,jt,5),M(l,Rt,5),M(l,Qt,5),M(l,_t,4)),o&2){let a;P(a=A())&&(n.contentTemplate=a.first),P(a=A())&&(n.loadingIconTemplate=a.first),P(a=A())&&(n.iconTemplate=a.first),P(a=A())&&(n.templates=a)}},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[2,"disabled","disabled",r],loading:[2,"loading","loading",r],loadingIcon:"loadingIcon",raised:[2,"raised","raised",r],rounded:[2,"rounded","rounded",r],text:[2,"text","text",r],plain:[2,"plain","plain",r],severity:"severity",outlined:[2,"outlined","outlined",r],link:[2,"link","link",r],tabindex:[2,"tabindex","tabindex",v],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",r],fluid:[2,"fluid","fluid",r],buttonProps:"buttonProps"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[L([Ft]),p,z],ngContentSelectors:Zt,decls:7,vars:14,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","ngClass","pAutoFocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"value","severity",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[3,"class","ngClass",4,"ngIf"],[1,"p-button-label"],[3,"value","severity"]],template:function(o,n){o&1&&(ht(),B(0,"button",0),pt("click",function(a){return n.onClick.emit(a)})("focus",function(a){return n.onFocus.emit(a)})("blur",function(a){return n.onBlur.emit(a)}),gt(1),C(2,qt,1,0,"ng-container",1)(3,Xt,3,5,"ng-container",2)(4,oe,3,5,"ng-container",2)(5,ne,2,3,"span",3)(6,ie,1,2,"p-badge",4),F()),o&2&&(s("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",n.buttonClass)("pAutoFocus",n.autofocus),m("type",n.type)("aria-label",n.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",n.tabindex),c(2),s("ngTemplateOutlet",n.contentTemplate||n._contentTemplate),c(),s("ngIf",n.loading),c(),s("ngIf",!n.loading),c(),s("ngIf",!n.contentTemplate&&!n._contentTemplate&&n.label),c(),s("ngIf",!n.contentTemplate&&!n._contentTemplate&&n.badge))},dependencies:[H,mt,vt,$t,yt,Ot,Dt,St,Bt,ot,x],encapsulation:2,changeDetection:0})}return t})(),ao=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({imports:[H,ae,x,x]})}return t})();var le=({dt:t})=>`
753
- .p-tooltip {
754
- position: absolute;
755
- display: none;
756
- max-width: ${t("tooltip.max.width")};
757
- }
758
-
759
- .p-tooltip-right,
760
- .p-tooltip-left {
761
- padding: 0 ${t("tooltip.gutter")};
762
- }
763
-
764
- .p-tooltip-top,
765
- .p-tooltip-bottom {
766
- padding: ${t("tooltip.gutter")} 0;
767
- }
768
-
769
- .p-tooltip-text {
770
- white-space: pre-line;
771
- word-break: break-word;
772
- background: ${t("tooltip.background")};
773
- color: ${t("tooltip.color")};
774
- padding: ${t("tooltip.padding")};
775
- box-shadow: ${t("tooltip.shadow")};
776
- border-radius: ${t("tooltip.border.radius")};
777
- }
778
-
779
- .p-tooltip-arrow {
780
- position: absolute;
781
- width: 0;
782
- height: 0;
783
- border-color: transparent;
784
- border-style: solid;
785
- scale: 2;
786
- }
787
-
788
- .p-tooltip-right .p-tooltip-arrow {
789
- top: 50%;
790
- left: 0;
791
- margin-top: calc(-1 * ${t("tooltip.gutter")});
792
- border-width: ${t("tooltip.gutter")} ${t("tooltip.gutter")} ${t("tooltip.gutter")} 0;
793
- border-right-color: ${t("tooltip.background")};
794
- }
795
-
796
- .p-tooltip-left .p-tooltip-arrow {
797
- top: 50%;
798
- right: 0;
799
- margin-top: calc(-1 * ${t("tooltip.gutter")});
800
- border-width: ${t("tooltip.gutter")} 0 ${t("tooltip.gutter")} ${t("tooltip.gutter")};
801
- border-left-color: ${t("tooltip.background")};
802
- }
803
-
804
- .p-tooltip-top .p-tooltip-arrow {
805
- bottom: 0;
806
- left: 50%;
807
- margin-left: calc(-1 * ${t("tooltip.gutter")});
808
- border-width: ${t("tooltip.gutter")} ${t("tooltip.gutter")} 0 ${t("tooltip.gutter")};
809
- border-top-color: ${t("tooltip.background")};
810
- border-bottom-color: ${t("tooltip.background")};
811
- }
812
-
813
- .p-tooltip-bottom .p-tooltip-arrow {
814
- top: 0;
815
- left: 50%;
816
- margin-left: calc(-1 * ${t("tooltip.gutter")});
817
- border-width: 0 ${t("tooltip.gutter")} ${t("tooltip.gutter")} ${t("tooltip.gutter")};
818
- border-top-color: ${t("tooltip.background")};
819
- border-bottom-color: ${t("tooltip.background")};
820
- }
821
- `,ce={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Pt=(()=>{class t extends O{name="tooltip";theme=le;classes=ce;static \u0275fac=(()=>{let e;return function(n){return(e||(e=u(t)))(n||t)}})();static \u0275prov=T({token:t,factory:t.\u0275fac})}return t})();var xo=(()=>{class t extends k{zone;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:et("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=b(Pt);interactionInProgress=!1;constructor(e,o){super(),this.zone=e,this.viewContainer=o}ngAfterViewInit(){super.ngAfterViewInit(),q(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),e==="focus"||e==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let o=this.el.nativeElement.querySelector(".p-component");o||(o=this.getTarget(this.el.nativeElement)),o.addEventListener("focus",this.focusListener),o.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){super.ngOnChanges(e),e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=D(D({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(S(e.relatedTarget,"p-tooltip")||S(e.relatedTarget,"p-tooltip-text")||S(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?Y(this.container,this.el.nativeElement):Y(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",o=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),wt(this.container,250),this.getOption("tooltipZIndex")==="auto"?U.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&U.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e instanceof lt){let o=this.viewContainer.createEmbeddedView(e);o.detectChanges(),o.rootNodes.forEach(n=>this.tooltipText.appendChild(n))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){let e=this.getOption("tooltipPosition"),o={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]};for(let[n,l]of o[e].entries())if(n===0)l.call(this);else if(this.isOutOfBounds())l.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),o=e.left+kt(),n=e.top+Ct();return{left:o,top:n}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?W(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let e=this.activeElement,o=y(e),n=($(e)-$(this.container))/2;this.alignTooltip(o,n)}alignLeft(){this.preAlign("left");let e=y(this.container),o=($(this.el.nativeElement)-$(this.container))/2;this.alignTooltip(-e,o)}alignTop(){this.preAlign("top");let e=(y(this.el.nativeElement)-y(this.container))/2,o=$(this.container);this.alignTooltip(e,-o)}alignBottom(){this.preAlign("bottom");let e=(y(this.el.nativeElement)-y(this.container))/2,o=$(this.el.nativeElement);this.alignTooltip(e,o)}alignTooltip(e,o){let n=this.getHostOffset(),l=n.left+e,a=n.top+o;this.container.style.left=l+this.getOption("positionLeft")+"px",this.container.style.top=a+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=D(D({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return S(e,"p-inputwrapper")?W(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let o="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?o+" "+this.getOption("tooltipStyleClass"):o}isOutOfBounds(){let e=this.container.getBoundingClientRect(),o=e.top,n=e.left,l=y(this.container),a=$(this.container),nt=xt();return n+l>nt.width||n<0||o<0||o+a>nt.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new It(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),e==="focus"||e==="both"){let o=this.el.nativeElement.querySelector(".p-component");o||(o=this.getTarget(this.el.nativeElement)),o.removeEventListener("focus",this.focusListener),o.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Tt(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),super.ngOnDestroy(),this.container&&U.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(o){return new(o||t)(J(rt),J(ct))};static \u0275dir=E({type:t,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",r],showDelay:[2,"showDelay","showDelay",v],hideDelay:[2,"hideDelay","hideDelay",v],life:[2,"life","life",v],positionTop:[2,"positionTop","positionTop",v],positionLeft:[2,"positionLeft","positionLeft",v],autoHide:[2,"autoHide","autoHide",r],fitContent:[2,"fitContent","fitContent",r],hideOnEscape:[2,"hideOnEscape","hideOnEscape",r],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[L([Pt]),p,z]})}return t})(),ko=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({})}return t})();export{Be as a,Dt as b,me as c,ot as d,Bt as e,ae as f,ao as g,xo as h,ko as i};