dealposbooks 1.0.9 → 1.9.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 +147 -147
- package/assets/images/background/timeout.svg +2614 -0
- package/assets/scss/components/_forms.scss +5 -3
- package/assets/scss/layouts/_customizer.scss +11 -6
- package/assets/scss/layouts/_sidebar.scss +15 -12
- package/assets/scss/style.scss +21 -20
- package/assets/scss/variables/_variables.scss +39 -12
- package/chunk-26X2X35R.js +1 -0
- package/chunk-2VF35PRV.js +7 -0
- package/chunk-34EMCCL5.js +210 -0
- package/chunk-35EULUGT.js +193 -0
- package/{chunk-WTRMIJHX.js → chunk-3TRGIHUH.js} +1 -1
- package/chunk-6TRUWOKK.js +1 -0
- package/chunk-7FE3ZTH3.js +7 -0
- package/chunk-7V4AFAU5.js +1 -0
- package/{chunk-4ANSU2AT.js → chunk-AKZM2DMY.js} +2 -2
- package/{chunk-TJSPXPO6.js → chunk-AVL6C3VX.js} +1 -1
- package/{chunk-E6EWXQXJ.js → chunk-BTZS5NIZ.js} +1 -1
- package/chunk-CAI423H5.js +1 -0
- package/{chunk-LCATVZKP.js → chunk-CEMQLY34.js} +1 -1
- package/chunk-CMHZLZ4E.js +1 -0
- package/chunk-DDBPJDR6.js +1 -0
- package/chunk-DWTUKOMR.js +348 -0
- package/chunk-DXCBV3NP.js +1 -0
- package/{chunk-AH4LZWJY.js → chunk-DYZT7UKM.js} +1 -1
- package/chunk-E2RBYY7Q.js +1 -0
- package/chunk-E2VJWAI2.js +1 -0
- package/chunk-EBTC6B2W.js +2 -0
- package/chunk-EHULZLLD.js +300 -0
- package/chunk-EQDQRRRY.js +1 -0
- package/chunk-ESKS6LNH.js +246 -0
- package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
- package/chunk-F6SXKAYF.js +67 -0
- package/chunk-G4MYTCDD.js +1 -0
- package/{chunk-2ODJIB2A.js → chunk-G63G4UQZ.js} +2 -2
- package/{chunk-MNPBLC23.js → chunk-G7MS6UI4.js} +1 -1
- package/chunk-GGZEY27B.js +1 -0
- package/{chunk-KFHCGO62.js → chunk-GHZLR44M.js} +1 -1
- package/chunk-HBVENULS.js +1 -0
- package/{chunk-O7OAT4UO.js → chunk-HZ7WPLLK.js} +1 -1
- package/{chunk-ZNN2E36Y.js → chunk-HZLUYZB3.js} +1 -1
- package/chunk-I7T4W6G2.js +47 -0
- package/{chunk-PG4QL7N2.js → chunk-IF72X7RS.js} +1 -1
- package/chunk-JXI4NDYT.js +1 -0
- package/chunk-KFKLJQ2D.js +1 -0
- package/chunk-KLKIGY44.js +1 -0
- package/{chunk-2RWUYFYR.js → chunk-KO5IN2G2.js} +1 -1
- package/chunk-L2BS7BTV.js +1 -0
- package/chunk-LUH5EEUM.js +1 -0
- package/chunk-MEKP6D5H.js +1 -0
- package/chunk-MQ5Y727W.js +1 -0
- package/{chunk-HG23WDL5.js → chunk-MS3UTNX6.js} +14 -14
- package/chunk-NWVWD4IE.js +1 -0
- package/chunk-NXCLB2JQ.js +1 -0
- package/chunk-ON4N4CPO.js +51 -0
- package/chunk-OVJSBJBH.js +197 -0
- package/{chunk-NTDTN5DF.js → chunk-PATWAZNE.js} +1 -1
- package/chunk-PBI352JR.js +1 -0
- package/chunk-PKK7JSPR.js +1 -0
- package/chunk-PKPPDJWT.js +301 -0
- package/chunk-PMLVFBAT.js +1 -0
- package/{chunk-E6QGADC5.js → chunk-Q4Y2IGA6.js} +2 -2
- package/chunk-QBJKUIXK.js +627 -0
- package/chunk-R3FUAON5.js +1 -0
- package/{chunk-JFAO2CIB.js → chunk-RNU2O7NF.js} +1 -1
- package/{chunk-G52TDPSD.js → chunk-ROX6NFMK.js} +2 -2
- package/chunk-S64TQVWK.js +1 -0
- package/chunk-SJTXIIX5.js +1 -0
- package/chunk-TDHD3ZTF.js +1 -0
- package/{chunk-QJ2XA575.js → chunk-TL6UHPBU.js} +1 -1
- package/chunk-UFS2HLAY.js +1 -0
- package/chunk-UIM6GQ63.js +1 -0
- package/chunk-UM7MB5JU.js +1 -0
- package/chunk-UNNEEFI2.js +1 -0
- package/{chunk-Z4SGDPGH.js → chunk-USO7UKRV.js} +4 -4
- package/chunk-VVC3QQUI.js +1 -0
- package/{chunk-52HZNWBM.js → chunk-VYTUB2DV.js} +2 -2
- package/{chunk-WCQQSWYQ.js → chunk-YF4S6CQO.js} +20 -112
- package/chunk-YILEWAVV.js +1 -0
- package/chunk-YNI2HWIV.js +180 -0
- package/index.html +6 -3
- package/main-YPUVQR54.js +1 -0
- package/package.json +1 -1
- package/polyfills-OYTHSGNX.js +2 -0
- package/styles-JMIKZHNX.css +1 -0
- package/chunk-25PFXJAK.js +0 -2
- package/chunk-3GWDCNXX.js +0 -397
- package/chunk-63UNI6LK.js +0 -256
- package/chunk-7LG2CFYI.js +0 -1
- package/chunk-AKBPKNCH.js +0 -1
- package/chunk-AOB6BRGQ.js +0 -1
- package/chunk-ATVC2UCR.js +0 -47
- package/chunk-AWY6AD76.js +0 -1
- package/chunk-B4JAAGJX.js +0 -1
- package/chunk-BGKS3L73.js +0 -246
- package/chunk-C66O26ZI.js +0 -67
- package/chunk-C6Q5SG76.js +0 -1
- package/chunk-DOKYUX3G.js +0 -1
- package/chunk-EN5MVYJQ.js +0 -180
- package/chunk-EP22HTZC.js +0 -300
- package/chunk-FJ7O4K2Y.js +0 -1
- package/chunk-FVXLQNAC.js +0 -193
- package/chunk-GCTIPWTU.js +0 -1
- package/chunk-GMTXOQ6X.js +0 -1
- package/chunk-GRTIJ77T.js +0 -1
- package/chunk-I4HDCL3W.js +0 -1
- package/chunk-I7MT7OUB.js +0 -1
- package/chunk-ISXV3FIH.js +0 -1
- package/chunk-JQNCWTZN.js +0 -1
- package/chunk-JT2WCR5Q.js +0 -1
- package/chunk-JXNLXEJT.js +0 -1
- package/chunk-K36WQVFR.js +0 -1
- package/chunk-LJMMN36O.js +0 -1
- package/chunk-NQ24E7JY.js +0 -1
- package/chunk-OHVHLILJ.js +0 -1
- package/chunk-OJWZH7AB.js +0 -301
- package/chunk-PNAWRNGD.js +0 -197
- package/chunk-RJYIKNTI.js +0 -1
- package/chunk-RR5AUWZO.js +0 -1
- package/chunk-RSHFIZV3.js +0 -7
- package/chunk-SQKLMC5H.js +0 -231
- package/chunk-T3ZCO6EC.js +0 -1
- package/chunk-T7R7C3RX.js +0 -1
- package/chunk-TNXHYK2R.js +0 -7
- package/chunk-TTG6XQNP.js +0 -1
- package/chunk-UC2RR4WT.js +0 -210
- package/chunk-UOFRXQI7.js +0 -1
- package/chunk-UVBFYB2X.js +0 -51
- package/main-F2OQVLJM.js +0 -1
- package/polyfills-EQXJKH7W.js +0 -2
- package/styles-GUJHQHWA.css +0 -1
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
.form-check-input {
|
|
9
9
|
z-index: 1;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
//
|
|
12
|
+
// Default Form Page style including font weight and color
|
|
13
|
+
//
|
|
12
14
|
label {
|
|
13
15
|
margin-bottom: 0.5rem;
|
|
14
|
-
font-weight:
|
|
15
|
-
color:
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
color: #202123;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
//
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.btn-check:checked
|
|
38
|
-
:not(.btn-check)
|
|
37
|
+
.btn-check:checked + .btn,
|
|
38
|
+
:not(.btn-check) + .btn:active,
|
|
39
39
|
.btn:first-child:active,
|
|
40
40
|
.btn.active,
|
|
41
41
|
.btn.show {
|
|
@@ -47,9 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&.color-pallete {
|
|
50
|
-
|
|
51
|
-
.btn-check:
|
|
52
|
-
:not(.btn-check)+.btn:active,
|
|
50
|
+
.btn-check:checked + .btn,
|
|
51
|
+
:not(.btn-check) + .btn:active,
|
|
53
52
|
.btn:first-child:active,
|
|
54
53
|
.btn.active,
|
|
55
54
|
.btn.show {
|
|
@@ -97,4 +96,10 @@
|
|
|
97
96
|
.nav-item .nav-link {
|
|
98
97
|
padding: 15px 10px;
|
|
99
98
|
}
|
|
100
|
-
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Globally change Table TD Font size
|
|
102
|
+
// This will affect all tables in the application
|
|
103
|
+
table td {
|
|
104
|
+
font-size: 0.875rem;
|
|
105
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Sidebar
|
|
2
|
-
$sidebar-link-padding:
|
|
2
|
+
$sidebar-link-padding: 10px 15px;
|
|
3
3
|
$sidebar-icon-size: 20px;
|
|
4
4
|
$sidebar-first-level-padding: 0 0 0 0;
|
|
5
5
|
$sidebar-first-level-link-padding: 8px 15px;
|
|
@@ -77,7 +77,7 @@ sidebar navigation
|
|
|
77
77
|
gap: 10px;
|
|
78
78
|
font-weight: 400;
|
|
79
79
|
position: relative;
|
|
80
|
-
margin:
|
|
80
|
+
margin: 2px 5px 2px;
|
|
81
81
|
text-decoration: none;
|
|
82
82
|
|
|
83
83
|
.side-badge.badge {
|
|
@@ -103,6 +103,7 @@ sidebar navigation
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&.active {
|
|
106
|
+
background-color: var(--p-primary-color);
|
|
106
107
|
// color: #fff;
|
|
107
108
|
opacity: 1;
|
|
108
109
|
|
|
@@ -128,6 +129,7 @@ sidebar navigation
|
|
|
128
129
|
&.selected > .sidebar-link,
|
|
129
130
|
&:hover > .sidebar-link {
|
|
130
131
|
opacity: 1;
|
|
132
|
+
background-color: #2d2d2e;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
/*******************
|
|
@@ -138,8 +140,7 @@ sidebar navigation
|
|
|
138
140
|
|
|
139
141
|
.sidebar-item.active > .sidebar-link {
|
|
140
142
|
opacity: 1;
|
|
141
|
-
|
|
142
|
-
// color: #fff;
|
|
143
|
+
background: var(--p-primary-color);
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
.sidebar-item .sidebar-link {
|
|
@@ -154,10 +155,10 @@ sidebar navigation
|
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
&.active {
|
|
157
|
-
|
|
158
|
+
.sidebar-link {
|
|
158
159
|
opacity: 1;
|
|
159
160
|
color: #fff;
|
|
160
|
-
background: $green;
|
|
161
|
+
// background: $green;
|
|
161
162
|
border-radius: $border-radius;
|
|
162
163
|
}
|
|
163
164
|
|
|
@@ -165,8 +166,8 @@ sidebar navigation
|
|
|
165
166
|
&:has(> ul) {
|
|
166
167
|
> .sidebar-link {
|
|
167
168
|
// opacity: 0.8; // Bisa disesuaikan
|
|
168
|
-
color: #
|
|
169
|
-
background: $green;
|
|
169
|
+
color: #fff;
|
|
170
|
+
// background: $green;
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
}
|
|
@@ -221,11 +222,12 @@ Down arrow
|
|
|
221
222
|
&::after {
|
|
222
223
|
position: absolute;
|
|
223
224
|
content: '';
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
|
|
226
|
+
width: 5px;
|
|
227
|
+
height: 5px;
|
|
226
228
|
border-width: 1px 0 0 1px;
|
|
227
229
|
border-style: solid;
|
|
228
|
-
border-color:
|
|
230
|
+
border-color: #fff;
|
|
229
231
|
margin-left: 10px;
|
|
230
232
|
-webkit-transform: rotate(135deg) translate(0, -50%);
|
|
231
233
|
-ms-transform: rotate(135deg) translate(0, -50%);
|
|
@@ -235,8 +237,9 @@ Down arrow
|
|
|
235
237
|
-ms-transform-origin: top;
|
|
236
238
|
-o-transform-origin: top;
|
|
237
239
|
transform-origin: top;
|
|
238
|
-
top:
|
|
240
|
+
top: 50%;
|
|
239
241
|
right: 15px;
|
|
242
|
+
// transform: translateY(-50%);
|
|
240
243
|
-webkit-transition: all 0.3s ease-out;
|
|
241
244
|
-o-transition: all 0.3s ease-out;
|
|
242
245
|
transition: all 0.3s ease-out;
|
package/assets/scss/style.scss
CHANGED
|
@@ -109,32 +109,29 @@
|
|
|
109
109
|
// primeng
|
|
110
110
|
.p-datatable-thead > tr > th {
|
|
111
111
|
background-color: #f6f6f6 !important;
|
|
112
|
-
color: #
|
|
112
|
+
color: #202123 !important;
|
|
113
113
|
}
|
|
114
|
+
|
|
114
115
|
.p-dialog {
|
|
115
116
|
overflow: hidden;
|
|
116
117
|
border: none !important;
|
|
118
|
+
.p-dialog-header {
|
|
119
|
+
background-color: #0a8754;
|
|
117
120
|
|
|
118
|
-
// &::before {
|
|
119
|
-
// content: '';
|
|
120
|
-
// background-color: #2175d0;
|
|
121
|
-
// height: 5px;
|
|
122
|
-
// width: 100%;
|
|
123
|
-
// }
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.p-dialog-header-actions {
|
|
127
|
-
p-button {
|
|
128
|
-
background-color: white;
|
|
129
|
-
border-radius: 50%;
|
|
130
|
-
}
|
|
131
|
-
.p-dialog-close-button {
|
|
132
121
|
color: #ffffff;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
122
|
+
}
|
|
123
|
+
.p-dialog-header-actions {
|
|
124
|
+
p-button {
|
|
125
|
+
background-color: white;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
}
|
|
128
|
+
.p-dialog-close-button {
|
|
129
|
+
color: #ffffff;
|
|
130
|
+
width: 30px;
|
|
131
|
+
height: 30px;
|
|
132
|
+
background: #ffffff;
|
|
133
|
+
display: flex;
|
|
134
|
+
}
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
137
|
|
|
@@ -155,3 +152,7 @@
|
|
|
155
152
|
.custom-scrollbar-track {
|
|
156
153
|
background-color: var(--scrollbar-track-color, #f1f1f1);
|
|
157
154
|
}
|
|
155
|
+
|
|
156
|
+
.p-scrollpanel-bar-y {
|
|
157
|
+
width: 3px !important; /* change this to your desired value */
|
|
158
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// ----------------------------------------------
|
|
2
2
|
// Variables Style
|
|
3
3
|
// ----------------------------------------------
|
|
4
|
-
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
|
|
5
4
|
|
|
6
5
|
// colors
|
|
7
6
|
$white: #fff !default;
|
|
@@ -79,7 +78,7 @@ $light-text-emphasis: $gray-100 !default;
|
|
|
79
78
|
$dark-text-emphasis: $gray-600 !default;
|
|
80
79
|
|
|
81
80
|
// Spacer
|
|
82
|
-
$spacer: 1rem
|
|
81
|
+
$spacer: 1rem;
|
|
83
82
|
$spacers: (
|
|
84
83
|
0: 0,
|
|
85
84
|
1: $spacer * 0.25,
|
|
@@ -87,11 +86,36 @@ $spacers: (
|
|
|
87
86
|
3: $spacer,
|
|
88
87
|
4: $spacer * 1.5,
|
|
89
88
|
5: $spacer * 3,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
$extend-spacers: (
|
|
92
|
+
6: $spacer * 1.5,
|
|
93
|
+
7: $spacer * 1.75,
|
|
94
|
+
8: $spacer * 2,
|
|
95
|
+
9: $spacer * 2.25,
|
|
96
|
+
10: $spacer * 2.5,
|
|
97
|
+
11: $spacer * 2.75,
|
|
98
|
+
12: $spacer * 3,
|
|
99
|
+
14: $spacer * 3.5,
|
|
100
|
+
16: $spacer * 4,
|
|
101
|
+
20: $spacer * 5,
|
|
102
|
+
24: $spacer * 6,
|
|
103
|
+
28: $spacer * 7,
|
|
104
|
+
32: $spacer * 8,
|
|
105
|
+
36: $spacer * 9,
|
|
106
|
+
40: $spacer * 10,
|
|
107
|
+
44: $spacer * 11,
|
|
108
|
+
48: $spacer * 12,
|
|
109
|
+
52: $spacer * 13,
|
|
110
|
+
56: $spacer * 14,
|
|
111
|
+
60: $spacer * 15,
|
|
112
|
+
64: $spacer * 16,
|
|
113
|
+
72: $spacer * 18,
|
|
114
|
+
80: $spacer * 20,
|
|
115
|
+
96: $spacer * 24,
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
$spacers: map-merge($spacers, $extend-spacers);
|
|
95
119
|
|
|
96
120
|
$utilities: () !default;
|
|
97
121
|
$utilities: (
|
|
@@ -114,7 +138,7 @@ $utilities: (
|
|
|
114
138
|
),
|
|
115
139
|
);
|
|
116
140
|
|
|
117
|
-
$border-radius:
|
|
141
|
+
$border-radius: 3px !default;
|
|
118
142
|
|
|
119
143
|
// Common
|
|
120
144
|
$min-contrast-ratio: 1.7 !default;
|
|
@@ -142,7 +166,7 @@ $font-weight-light: 300 !default;
|
|
|
142
166
|
$font-weight-normal: 400 !default;
|
|
143
167
|
$font-weight-bold: 500 !default;
|
|
144
168
|
$font-weight-bolder: 700 !default;
|
|
145
|
-
$font-weight-base:
|
|
169
|
+
$font-weight-base: 400 !default;
|
|
146
170
|
|
|
147
171
|
// Buttons
|
|
148
172
|
$btn-padding-y: 7px !default;
|
|
@@ -153,10 +177,12 @@ $btn-box-shadow: unset !default;
|
|
|
153
177
|
$btn-font-size: 14px !default;
|
|
154
178
|
$btn-border-radius-lg: 60px !default;
|
|
155
179
|
|
|
156
|
-
//
|
|
180
|
+
// ======================================================
|
|
181
|
+
// Typography
|
|
182
|
+
// ======================================================
|
|
157
183
|
$font-size-base: 1rem;
|
|
158
|
-
|
|
159
|
-
$font-family-sans-serif: '
|
|
184
|
+
$font-weight-base: 300 !default;
|
|
185
|
+
$font-family-sans-serif: 'Poppins', sans-serif !default;
|
|
160
186
|
$font-weight-light: 300 !default;
|
|
161
187
|
$font-weight-normal: 400 !default;
|
|
162
188
|
$font-weight-medium: 500 !default;
|
|
@@ -167,6 +193,7 @@ $h3-font-size: 21px !default;
|
|
|
167
193
|
$h4-font-size: 18px !default;
|
|
168
194
|
$h5-font-size: 16px !default;
|
|
169
195
|
$h6-font-size: 14px !default;
|
|
196
|
+
$headings-font-family: 'Open Sans', sans-serif !default;
|
|
170
197
|
$headings-margin-bottom: 8px !default;
|
|
171
198
|
$headings-font-weight: 400 !default;
|
|
172
199
|
$headings-color: #455a64 !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Z as v,ca as L,pa as m,ra as a,sa as l,ta as r,ua as O}from"./chunk-35EULUGT.js";import{a as C,w as _}from"./chunk-SJTXIIX5.js";import{Da as p,Ja as S,Mc as b,ba as h,ha as i,kb as f,oa as c,sa as d,ua as y,uc as g,vb as u}from"./chunk-2VF35PRV.js";import{a as n}from"./chunk-EQDQRRRY.js";var T=(()=>{class o extends r{name="common";static \u0275fac=(()=>{let e;return function(s){return(e||(e=d(o)))(s||o)}})();static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),B=(()=>{class o{document=i(C);platformId=i(S);el=i(p);injector=i(y);cd=i(b);renderer=i(f);config=i(O);baseComponentStyle=i(T);baseStyle=i(r);scopedStyleEl;rootEl;dt;get styleOptions(){return{nonce:this.config?.csp().nonce}}get _name(){return this.constructor.name.replace(/^_/,"").toLowerCase()}get componentStyle(){return this._componentStyle}attrSelector=L("pc");themeChangeListeners=[];_getHostInstance(e){if(e)return e?this.hostName?e.name===this.hostName?e:this._getHostInstance(e.parentInstance):e.parentInstance:void 0}_getOptionValue(e,t="",s={}){return v(e,t,s)}ngOnInit(){this.document&&this._loadStyles()}ngAfterViewInit(){this.rootEl=this.el?.nativeElement,this.rootEl&&this.rootEl?.setAttribute(this.attrSelector,"")}ngOnChanges(e){if(this.document&&!_(this.platformId)){let{dt:t}=e;t&&t.currentValue&&(this._loadScopedThemeStyles(t.currentValue),this._themeChangeListener(()=>this._loadScopedThemeStyles(t.currentValue)))}}ngOnDestroy(){this._unloadScopedThemeStyles(),this.themeChangeListeners.forEach(e=>m.off("theme:change",e))}_loadStyles(){let e=()=>{l.isStyleNameLoaded("base")||(this.baseStyle.loadGlobalCSS(this.styleOptions),l.setLoadedStyleName("base")),this._loadThemeStyles()};e(),this._themeChangeListener(()=>e())}_loadCoreStyles(){!l.isStyleNameLoaded("base")&&this._name&&(this.baseComponentStyle.loadCSS(this.styleOptions),this.componentStyle&&this.componentStyle?.loadCSS(this.styleOptions),l.setLoadedStyleName(this.componentStyle?.name))}_loadThemeStyles(){if(!a.isStyleNameLoaded("common")){let{primitive:e,semantic:t,global:s,style:I}=this.componentStyle?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,n({name:"primitive-variables"},this.styleOptions)),this.baseStyle.load(t?.css,n({name:"semantic-variables"},this.styleOptions)),this.baseStyle.load(s?.css,n({name:"global-variables"},this.styleOptions)),this.baseStyle.loadGlobalTheme(n({name:"global-style"},this.styleOptions),I),a.setLoadedStyleName("common")}if(!a.isStyleNameLoaded(this.componentStyle?.name)&&this.componentStyle?.name){let{css:e,style:t}=this.componentStyle?.getComponentTheme?.()||{};this.componentStyle?.load(e,n({name:`${this.componentStyle?.name}-variables`},this.styleOptions)),this.componentStyle?.loadTheme(n({name:`${this.componentStyle?.name}-style`},this.styleOptions),t),a.setLoadedStyleName(this.componentStyle?.name)}if(!a.isStyleNameLoaded("layer-order")){let e=this.componentStyle?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,n({name:"layer-order",first:!0},this.styleOptions)),a.setLoadedStyleName("layer-order")}this.dt&&(this._loadScopedThemeStyles(this.dt),this._themeChangeListener(()=>this._loadScopedThemeStyles(this.dt)))}_loadScopedThemeStyles(e){let{css:t}=this.componentStyle?.getPresetTheme?.(e,`[${this.attrSelector}]`)||{},s=this.componentStyle?.load(t,n({name:`${this.attrSelector}-${this.componentStyle?.name}`},this.styleOptions));this.scopedStyleEl=s?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){l.clearLoadedStyleNames(),m.on("theme:change",e),this.themeChangeListeners.push(e)}cx(e,t){let s=this.parent?this.parent.componentStyle?.classes?.[e]:this.componentStyle?.classes?.[e];return typeof s=="function"?s({instance:this}):typeof s=="string"?s:e}sx(e){let t=this.componentStyle?.inlineStyles?.[e];return typeof t=="function"?t({instance:this}):typeof t=="string"?t:n({},t)}get parent(){return this.parentInstance}static \u0275fac=function(t){return new(t||o)};static \u0275dir=u({type:o,inputs:{dt:"dt"},features:[g([T,r]),c]})}return o})();export{B as a};
|