dealposbooks 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +56 -56
- package/assets/scss/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
- package/assets/scss/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
- package/assets/scss/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
- package/assets/scss/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
- package/assets/scss/layouts/_customizer.scss +11 -6
- package/assets/scss/layouts/_layout.scss +6 -6
- package/assets/scss/layouts/_sidebar.scss +19 -14
- package/assets/scss/style.scss +24 -8
- package/assets/scss/variables/_variables.scss +6 -52
- package/chunk-223MMYH7.js +141 -0
- package/chunk-33KLXB2L.js +180 -0
- package/{chunk-URKXDZJE.js → chunk-4Y3NYY52.js} +1 -1
- package/{chunk-I72ECAQH.js → chunk-5GQEUX4M.js} +1 -1
- package/chunk-5RRUIJ5U.js +1 -0
- package/{chunk-7X454BGN.js → chunk-6BFODHTZ.js} +1 -1
- package/chunk-AXJA6OO7.js +246 -0
- package/chunk-AYVR3RIS.js +297 -0
- package/{chunk-ZT4NOONZ.js → chunk-B6N6C3RA.js} +1 -1
- package/chunk-CINZRZMB.js +1 -0
- package/chunk-DBRLQ7BX.js +397 -0
- package/{chunk-QUR72LET.js → chunk-DJ5UHXOJ.js} +1 -1
- package/chunk-DUOJKP2G.js +300 -0
- package/chunk-E4ZVZRLO.js +210 -0
- package/chunk-EBOJJWD5.js +1 -0
- package/{chunk-D5U6AOFB.js → chunk-EMVZ65TI.js} +1 -1
- package/chunk-ENPYMVZG.js +1 -0
- package/chunk-EOLHIQHQ.js +1 -0
- package/chunk-ERX7ND7E.js +1 -0
- package/chunk-FKTEL4CU.js +524 -0
- package/chunk-FOUHOMEE.js +301 -0
- package/chunk-H4HFCRFZ.js +1660 -0
- package/chunk-HBVENULS.js +1 -0
- package/chunk-J53TOHZH.js +1 -0
- package/chunk-JC7YOUAM.js +1 -0
- package/chunk-JR4EQTPJ.js +59 -0
- package/chunk-JSAAKZBO.js +1 -0
- package/chunk-KZ2KGWUY.js +1 -0
- package/chunk-LON3T466.js +1 -0
- package/chunk-LYEN4UBW.js +1 -0
- package/chunk-MG3SLH6O.js +1 -0
- package/chunk-NQ3CKBYP.js +1 -0
- package/{chunk-YUFMXLRG.js → chunk-NS7JH3QF.js} +1 -1
- package/{chunk-2XZW23PQ.js → chunk-O65HPMSJ.js} +1 -1
- package/chunk-OCLABZZW.js +1 -0
- package/chunk-OH2CJBFF.js +1 -0
- package/chunk-OSV7AMB2.js +1 -0
- package/{chunk-2LKTSMUI.js → chunk-OWI3BWEZ.js} +7 -7
- package/chunk-OYYYX3IP.js +1 -0
- package/{chunk-MQJQRREL.js → chunk-PNQSQQIT.js} +1 -1
- package/chunk-Q5PJ63MA.js +1 -0
- package/{chunk-7RH6F4PN.js → chunk-R2KG54OT.js} +3 -1
- package/chunk-REHXXPZY.js +1 -0
- package/{chunk-ONU5ICNZ.js → chunk-RIALPB2D.js} +1 -1
- package/chunk-RJYO2KKV.js +1 -0
- package/chunk-ROKYJX6Q.js +193 -0
- package/chunk-RUGQ4OJG.js +1 -0
- package/chunk-RUP2SWYB.js +231 -0
- package/chunk-RUVT4SCE.js +1 -0
- package/{chunk-UZFJYFH2.js → chunk-SS3CMCAX.js} +4 -2
- package/chunk-TMY4NWZ6.js +1 -0
- package/chunk-TOJAZ32N.js +1 -0
- package/chunk-TUL6Y2HH.js +1 -0
- package/{chunk-33RD6RQS.js → chunk-UGKSIDKE.js} +1 -1
- package/chunk-UTL7D6E7.js +821 -0
- package/{chunk-4Z6KFX2O.js → chunk-V7Y6Z4AQ.js} +2 -2
- package/chunk-VY4Z33EE.js +7 -0
- package/chunk-VYKJK5YU.js +7 -0
- package/{chunk-M4ZOPGSP.js → chunk-WG7APCJU.js} +1 -1
- package/{chunk-EE4WG35V.js → chunk-X2NM4CIV.js} +6 -2
- package/chunk-XWVLTTMV.js +1 -0
- package/chunk-Y6MJGNH2.js +1 -0
- package/chunk-YKYI4A3V.js +1 -0
- package/chunk-ZL4DDXH7.js +348 -0
- package/{chunk-6TJIZZK6.js → chunk-ZU7I7MCL.js} +1 -1
- package/{chunk-U2S74ZLK.js → chunk-ZZPBK2XT.js} +1 -1
- package/index.html +6 -3
- package/main-MCP7AVEU.js +1 -0
- package/package.json +1 -1
- package/styles-IAH7RNKW.css +1 -0
- package/chunk-2QCAOSMO.js +0 -256
- package/chunk-3ROVFYLI.js +0 -189
- package/chunk-3UAQZJAG.js +0 -180
- package/chunk-7KARVIIN.js +0 -1
- package/chunk-A3I2VQNX.js +0 -141
- package/chunk-A3MXO6MA.js +0 -1
- package/chunk-B5ZO2I4D.js +0 -2
- package/chunk-BP2JJ6HZ.js +0 -160
- package/chunk-BWO4PVAG.js +0 -301
- package/chunk-C4WUUVLC.js +0 -1
- package/chunk-CH2GYE5J.js +0 -1
- package/chunk-DF2QDC4T.js +0 -1
- package/chunk-DKWZOSVY.js +0 -59
- package/chunk-EEJWF26F.js +0 -1
- package/chunk-F7FJPDUV.js +0 -1
- package/chunk-FDDNZH4H.js +0 -1633
- package/chunk-FYNIFRG5.js +0 -1
- package/chunk-HKMI4ZYY.js +0 -393
- package/chunk-HU6SF3HD.js +0 -1
- package/chunk-IWUDRSTJ.js +0 -235
- package/chunk-KJWN47PL.js +0 -1
- package/chunk-MVGPOIFT.js +0 -1
- package/chunk-OHEAUNEW.js +0 -1
- package/chunk-P4OJNULI.js +0 -1
- package/chunk-PCJXJ6O4.js +0 -370
- package/chunk-PFXPLNMA.js +0 -1
- package/chunk-PQTHPF23.js +0 -7
- package/chunk-PV6INEW2.js +0 -1
- package/chunk-QPA73UD5.js +0 -616
- package/chunk-RFZOXUTS.js +0 -1
- package/chunk-RIUEIX64.js +0 -1
- package/chunk-UPDO63XT.js +0 -1
- package/chunk-UQ3SWGEA.js +0 -1
- package/chunk-WZKSD7XN.js +0 -284
- package/chunk-X2CQD76I.js +0 -208
- package/chunk-YX7446ZM.js +0 -1
- package/chunk-Z53S4NM2.js +0 -736
- package/main-U76NYT5G.js +0 -1
- package/styles-OZO2XDGZ.css +0 -1
|
@@ -0,0 +1,821 @@
|
|
|
1
|
+
import{i as k,j as It,k as Lt,n as G,o as St,p as Ot,w as Dt}from"./chunk-OWI3BWEZ.js";import{B as kt,C as Ct,D as wt,G as y,Ga as Et,Ha as x,I as tt,L as Tt,N as U,Pa as D,Y as $,ha as _t,ka as N,na as et,w as O,ya as ot}from"./chunk-ROKYJX6Q.js";import{d as mt,k as vt,n as yt,o as $t,p as xt,t as V,v as W}from"./chunk-RUGQ4OJG.js";import{Aa as st,Ab as I,Bb as C,Da as g,Ea as at,Jb as m,Kb as s,La as lt,Lb as dt,Nb as bt,Ob as L,Rc as r,Sc as v,Tc as Y,Ub as F,Vb as M,Wb as w,Xb as R,Yb as Q,Zb as pt,ca as T,da as h,dc as ht,ec as d,fc as gt,gb as c,gc as ft,hb as K,hc as P,ia as b,jc as A,kb as ct,kc as H,mc as Z,nc as q,ob as ut,pa as B,sa as rt,ta as u,ub as _,uc as S,vb as f,wb as E,wc as X,yb as p,za as j}from"./chunk-VYKJK5YU.js";import{a as z}from"./chunk-EQDQRRRY.js";var zt=(()=>{class t extends k{autofocus=!1;_autofocus=!1;focused=!1;platformId=b(lt);document=b(mt);host=b(at);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(){W(this.platformId)&&this._autofocus&&setTimeout(()=>{let e=It.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:[I,p]})}return t})(),ve=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({})}return t})();var Vt=({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
|
+
`,Nt={root:({props:t,instance:i})=>["p-badge p-component",{"p-badge-circle":et(t.value)&&String(t.value).length===1,"p-badge-dot":N(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"}]},Bt=(()=>{class t extends D{name="badge";theme=Vt;classes=Nt;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 nt=(()=>{class t extends k{styleClass=g();style=g();badgeSize=g();size=g();severity=g();value=g();badgeDisabled=g(!1,{transform:r});_componentStyle=b(Bt);containerClass=Y(()=>{let e="p-badge p-component";return et(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"),N(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&&(bt(n.style()),L(n.containerClass()),dt("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:[S([Bt]),p],decls:1,vars:1,template:function(o,n){o&1&&Z(0),o&2&&q(n.value())},dependencies:[V,x],encapsulation:2,changeDetection:0})}return t})(),Ft=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({imports:[nt,x,x]})}return t})();var Fe=(()=>{class t extends St{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&&(rt(),F(0,"svg",0),w(1,"path",1),M()),o&2&&(L(n.getClassNames()),m("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return t})();var Rt=["content"],Qt=["loadingicon"],Zt=["icon"],qt=["*"],Pt=t=>({class:t});function Wt(t,i){t&1&&pt(0)}function Ut(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 Gt(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 Jt(t,i){if(t&1&&(R(0),C(1,Ut,1,3,"span",6)(2,Gt,1,4,"SpinnerIcon",7),Q()),t&2){let e=d(2);c(),s("ngIf",e.loadingIcon),c(),s("ngIf",!e.loadingIcon)}}function Kt(t,i){}function Xt(t,i){if(t&1&&C(0,Kt,0,0,"ng-template",10),t&2){let e=d(2);s("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Yt(t,i){if(t&1&&(R(0),C(1,Jt,3,2,"ng-container",2)(2,Xt,1,1,null,5),Q()),t&2){let e=d();c(),s("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),s("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)("ngTemplateOutletContext",X(3,Pt,e.iconClass()))}}function te(t,i){if(t&1&&w(0,"span",8),t&2){let e=d(2);L(e.icon),s("ngClass",e.iconClass()),m("data-pc-section","icon")}}function ee(t,i){}function oe(t,i){if(t&1&&C(0,ee,0,0,"ng-template",10),t&2){let e=d(2);s("ngIf",!e.icon&&(e.iconTemplate||e._iconTemplate))}}function ne(t,i){if(t&1&&(R(0),C(1,te,1,4,"span",11)(2,oe,1,1,null,5),Q()),t&2){let e=d();c(),s("ngIf",e.icon&&!e.iconTemplate&&!e._iconTemplate),c(),s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",X(3,Pt,e.iconClass()))}}function ie(t,i){if(t&1&&(F(0,"span",12),Z(1),M()),t&2){let e=d();m("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),c(),q(e.label)}}function re(t,i){if(t&1&&w(0,"p-badge",13),t&2){let e=d();s("value",e.badge)("severity",e.badgeSeverity)}}var se=({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
|
+
`,ae={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"},Mt=(()=>{class t extends D{name="button";theme=se;classes=ae;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 le=(()=>{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 j;onFocus=new j;onBlur=new j;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 N(this.fluid)?!!o:this.fluid}_componentStyle=b(Mt);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&&(P(l,Rt,5),P(l,Qt,5),P(l,Zt,5),P(l,Et,4)),o&2){let a;A(a=H())&&(n.contentTemplate=a.first),A(a=H())&&(n.loadingIconTemplate=a.first),A(a=H())&&(n.iconTemplate=a.first),A(a=H())&&(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:[S([Mt]),I,p,B],ngContentSelectors:qt,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&&(gt(),F(0,"button",0),ht("click",function(a){return n.onClick.emit(a)})("focus",function(a){return n.onFocus.emit(a)})("blur",function(a){return n.onBlur.emit(a)}),ft(1),C(2,Wt,1,0,"ng-container",1)(3,Yt,3,5,"ng-container",2)(4,ne,3,5,"ng-container",2)(5,ie,2,3,"span",3)(6,re,1,2,"p-badge",4),M()),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:[V,vt,yt,xt,$t,Dt,zt,Ot,Ft,nt,x],encapsulation:2,changeDetection:0})}return t})(),lo=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({imports:[V,le,x,x]})}return t})();var ce=({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
|
+
`,ue={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},At=(()=>{class t extends D{name="tooltip";theme=ce;classes=ue;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 ko=(()=>{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:ot("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=b(At);interactionInProgress=!1;constructor(e,o){super(),this.zone=e,this.viewContainer=o}ngAfterViewInit(){super.ngAfterViewInit(),W(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=z(z({},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():!(O(e.relatedTarget,"p-tooltip")||O(e.relatedTarget,"p-tooltip-text")||O(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"?tt(this.container,this.el.nativeElement):tt(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()),Tt(this.container,250),this.getOption("tooltipZIndex")==="auto"?G.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&G.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e instanceof ct){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+Ct(),n=e.top+wt();return{left:o,top:n}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?U(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=z(z({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return O(e,"p-inputwrapper")?U(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),it=kt();return n+l>it.width||n<0||o<0||o+a>it.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 Lt(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):_t(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&&G.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)(K(st),K(ut))};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:[S([At]),I,p,B]})}return t})(),Co=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=f({type:t});static \u0275inj=h({})}return t})();export{Fe as a,zt as b,ve as c,nt as d,Ft as e,le as f,lo as g,ko as h,Co as i};
|