@aquera/nile-elements 1.9.0 → 1.9.1
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/README.md +4 -0
- package/dist/{index-6faafdf4.cjs.js → index-2f006498.cjs.js} +2 -2
- package/dist/index-2f006498.cjs.js.map +1 -0
- package/dist/{index-9931b440.esm.js → index-646474e8.esm.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +540 -518
- package/dist/nile-card/nile-card.css.cjs.js +1 -1
- package/dist/nile-card/nile-card.css.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.esm.js +2 -4
- package/dist/nile-combobox/index.cjs.js +1 -1
- package/dist/nile-combobox/index.esm.js +1 -1
- package/dist/nile-combobox/nile-combobox.cjs.js +1 -1
- package/dist/nile-combobox/nile-combobox.esm.js +1 -1
- package/dist/nile-detail/index.cjs.js +1 -1
- package/dist/nile-detail/index.esm.js +1 -1
- package/dist/nile-detail/nile-detail.cjs.js +1 -1
- package/dist/nile-detail/nile-detail.esm.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +89 -89
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +42 -42
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +126 -105
- package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.esm.js +7 -4
- package/dist/src/nile-card/nile-card.css.js +0 -2
- package/dist/src/nile-card/nile-card.css.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.css.js +87 -87
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.js +4 -4
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.js +124 -103
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.d.ts +1 -0
- package/dist/src/nile-pagination/nile-pagination.js +9 -2
- package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-card/nile-card.css.ts +0 -2
- package/src/nile-file-preview/nile-file-preview.css.ts +87 -87
- package/src/nile-file-preview/nile-file-preview.template.ts +4 -4
- package/src/nile-file-upload/nile-file-upload.css.ts +124 -103
- package/src/nile-pagination/nile-pagination.ts +6 -2
- package/vscode-html-custom-data.json +6 -1
- package/dist/index-6faafdf4.cjs.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as r}from"lit";const e=r`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: 100%;
|
|
@@ -31,10 +31,10 @@ import{css as e}from"lit";const r=e`
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
gap: 18px;
|
|
34
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
35
|
-
border: 1px dashed var(--nile-colors-neutral-500);
|
|
36
|
-
color: var(--nile-colors-dark-900);
|
|
37
|
-
background-color: var(--nile-colors-white-base);
|
|
34
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
35
|
+
border: 1px dashed var(--nile-colors-neutral-500, var(--ng-colors-border-neutral));
|
|
36
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
37
|
+
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@media (width < 400px) {
|
|
@@ -48,13 +48,13 @@ import{css as e}from"lit";const r=e`
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.hover-border {
|
|
51
|
-
border-color: var(--nile-colors-primary-600);
|
|
51
|
+
border-color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.title {
|
|
55
|
-
font-size: var(--nile-type-scale-3);
|
|
56
|
-
font-weight: var(--nile-font-weight-regular);
|
|
57
|
-
color: var(--nile-colors-dark-900);
|
|
55
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
56
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
57
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
text-overflow: ellipsis;
|
|
60
60
|
overflow: hidden;
|
|
@@ -63,9 +63,9 @@ import{css as e}from"lit";const r=e`
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.subtitle {
|
|
66
|
-
font-size: var(--nile-type-scale-2);
|
|
67
|
-
font-weight: var(--nile-font-weight-regular);
|
|
68
|
-
color: var(--nile-colors-dark-500);
|
|
66
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
67
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
68
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
|
|
69
69
|
white-space: nowrap;
|
|
70
70
|
text-overflow: ellipsis;
|
|
71
71
|
overflow: hidden;
|
|
@@ -82,19 +82,19 @@ import{css as e}from"lit";const r=e`
|
|
|
82
82
|
justify-content: space-between;
|
|
83
83
|
align-items: center;
|
|
84
84
|
padding: 12px;
|
|
85
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
86
|
-
color: var(--nile-colors-dark-900);
|
|
87
|
-
border: 1px dashed var(--nile-colors-neutral-500);
|
|
88
|
-
background-color: var(--nile-colors-white-base);
|
|
85
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
86
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
87
|
+
border: 1px dashed var(--nile-colors-neutral-500, var(--ng-colors-border-neutral));
|
|
88
|
+
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
89
89
|
position: relative;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.vertical-div:hover {
|
|
93
|
-
border-color: var(--nile-colors-blue-500);
|
|
93
|
+
border-color: var(--nile-colors-blue-500, var(--ng-colors-border-brand));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.outer-div-border {
|
|
97
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
97
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.inner-div {
|
|
@@ -114,9 +114,9 @@ import{css as e}from"lit";const r=e`
|
|
|
114
114
|
|
|
115
115
|
.content h4 {
|
|
116
116
|
margin: 0px;
|
|
117
|
-
font-size: var(--nile-type-scale-3);
|
|
118
|
-
font-weight: var(--nile-font-weight-regular);
|
|
119
|
-
color: var(--nile-colors-dark-900);
|
|
117
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
118
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
119
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
120
120
|
text-align: center;
|
|
121
121
|
white-space: nowrap;
|
|
122
122
|
text-overflow: ellipsis;
|
|
@@ -126,8 +126,8 @@ import{css as e}from"lit";const r=e`
|
|
|
126
126
|
|
|
127
127
|
.content p {
|
|
128
128
|
margin: 0px;
|
|
129
|
-
font-size: var(--nile-type-scale-2);
|
|
130
|
-
color: var(--nile-colors-neutral-700);
|
|
129
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
130
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
131
131
|
text-align: center;
|
|
132
132
|
white-space: nowrap;
|
|
133
133
|
text-overflow: ellipsis;
|
|
@@ -147,26 +147,38 @@ import{css as e}from"lit";const r=e`
|
|
|
147
147
|
cursor: pointer;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
nile-button::part(base) {
|
|
151
|
+
border-color: var(--nile-colors-neutral-500, var(--ng-colors-border-neutral));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
nile-button:active::part(base) {
|
|
155
|
+
border-color: var(--nile-colors-neutral-700, var(--ng-colors-border-neutral));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
nile-button[disabled]::part(base) {
|
|
159
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
160
|
+
}
|
|
161
|
+
|
|
150
162
|
/* DISABLED STATE */
|
|
151
163
|
.disable {
|
|
152
|
-
background-color: var(--nile-colors-dark-200);
|
|
164
|
+
background-color: var(--nile-colors-dark-200, var(--ng-colors-bg-disabled));
|
|
153
165
|
opacity: 0.8;
|
|
154
166
|
cursor: not-allowed;
|
|
155
|
-
color: var(--nile-colors-neutral-500);
|
|
167
|
+
color: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));
|
|
156
168
|
pointer-events: none;
|
|
157
169
|
}
|
|
158
170
|
|
|
159
171
|
/* DRAGGING */
|
|
160
172
|
.dragging {
|
|
161
|
-
background-color: var(--nile-colors-blue-100);
|
|
162
|
-
border-color: var(--nile-colors-primary-600);
|
|
173
|
+
background-color: var(--nile-colors-blue-100, var(--ng-colors-bg-brand-secondary));
|
|
174
|
+
border-color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));
|
|
163
175
|
display: flex;
|
|
164
176
|
align-items: center;
|
|
165
177
|
justify-content: flex-start;
|
|
166
178
|
gap: 18px;
|
|
167
|
-
color: var(--nile-colors-blue-700);
|
|
168
|
-
font-size: var(--nile-type-scale-3);
|
|
169
|
-
font-weight: var(--nile-font-weight-regular);
|
|
179
|
+
color: var(--nile-colors-blue-700, var(--ng-colors-text-brand-secondary-700));
|
|
180
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
181
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
170
182
|
}
|
|
171
183
|
|
|
172
184
|
.icons-container {
|
|
@@ -197,11 +209,11 @@ import{css as e}from"lit";const r=e`
|
|
|
197
209
|
align-items: center;
|
|
198
210
|
gap: 18px;
|
|
199
211
|
box-sizing: border-box;
|
|
200
|
-
border: 1px solid var(--nile-colors-neutral-400)
|
|
212
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary))
|
|
201
213
|
}
|
|
202
|
-
|
|
214
|
+
|
|
203
215
|
.uploading:hover {
|
|
204
|
-
border-color: var(--nile-colors-neutral-400);
|
|
216
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
205
217
|
}
|
|
206
218
|
|
|
207
219
|
.progress-bar-container {
|
|
@@ -215,8 +227,8 @@ import{css as e}from"lit";const r=e`
|
|
|
215
227
|
width: 100%;
|
|
216
228
|
display: flex;
|
|
217
229
|
justify-content: space-between;
|
|
218
|
-
font-size: var(--nile-type-scale-2);
|
|
219
|
-
font-weight: var(--nile-font-weight-regular);
|
|
230
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
231
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
220
232
|
}
|
|
221
233
|
|
|
222
234
|
.progress-bar-container p {
|
|
@@ -224,17 +236,17 @@ import{css as e}from"lit";const r=e`
|
|
|
224
236
|
}
|
|
225
237
|
|
|
226
238
|
.progress-bar-container > p {
|
|
227
|
-
font-size: var(--nile-type-scale-1);
|
|
228
|
-
color: var(--nile-colors-dark-500);
|
|
239
|
+
font-size: var(--nile-type-scale-1, var(--ng-font-size-text-xs));
|
|
240
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
|
|
229
241
|
}
|
|
230
242
|
|
|
231
243
|
/* PREVIEW STATE */
|
|
232
244
|
.preview {
|
|
233
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
245
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
234
246
|
}
|
|
235
247
|
|
|
236
248
|
.preview:hover {
|
|
237
|
-
border-color: var(--nile-colors-neutral-400);
|
|
249
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
238
250
|
}
|
|
239
251
|
|
|
240
252
|
.preview-inner {
|
|
@@ -251,8 +263,8 @@ import{css as e}from"lit";const r=e`
|
|
|
251
263
|
height: 42px;
|
|
252
264
|
width: 42px;
|
|
253
265
|
object-fit: contain;
|
|
254
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
255
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
266
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
267
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
256
268
|
}
|
|
257
269
|
|
|
258
270
|
.preview-file-info {
|
|
@@ -266,14 +278,14 @@ import{css as e}from"lit";const r=e`
|
|
|
266
278
|
|
|
267
279
|
.preview-file-info p {
|
|
268
280
|
margin: 0px;
|
|
269
|
-
font-size: var(--nile-type-scale-3);
|
|
270
|
-
font-weight: var(--nile-font-weight-regular);
|
|
281
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
282
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
271
283
|
}
|
|
272
284
|
|
|
273
285
|
.preview-file-info p:last-of-type{
|
|
274
|
-
color: var(--nile-colors-neutral-700);
|
|
275
|
-
font-size: var(--nile-type-scale-2);
|
|
276
|
-
font-weight: var(--nile-font-weight-regular);
|
|
286
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
287
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
288
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
277
289
|
}
|
|
278
290
|
|
|
279
291
|
.preview nile-icon:hover {
|
|
@@ -282,11 +294,11 @@ import{css as e}from"lit";const r=e`
|
|
|
282
294
|
|
|
283
295
|
/* NO PREVIEW STATE */
|
|
284
296
|
.no-preview {
|
|
285
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
297
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
286
298
|
}
|
|
287
299
|
|
|
288
300
|
.no-preview:hover {
|
|
289
|
-
border-color: var(--nile-colors-neutral-400);
|
|
301
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
290
302
|
}
|
|
291
303
|
|
|
292
304
|
.no-preview-container {
|
|
@@ -297,13 +309,13 @@ import{css as e}from"lit";const r=e`
|
|
|
297
309
|
.document-icon {
|
|
298
310
|
height: 40px;
|
|
299
311
|
width: 40px;
|
|
300
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
312
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
301
313
|
padding: 2px 3px 2px 3px;
|
|
302
314
|
display: flex;
|
|
303
315
|
justify-content: center;
|
|
304
316
|
align-items: center;
|
|
305
|
-
border: 1px solid var(--nile-colors-blue-400);
|
|
306
|
-
background-color: var(--nile-colors-blue-100);
|
|
317
|
+
border: 1px solid var(--nile-colors-blue-400, var(--ng-componentcolors-utility-blue-400));
|
|
318
|
+
background-color: var(--nile-colors-blue-100, var(--ng-colors-bg-brand-secondary));
|
|
307
319
|
}
|
|
308
320
|
|
|
309
321
|
.document-icon nile-icon {
|
|
@@ -322,14 +334,14 @@ import{css as e}from"lit";const r=e`
|
|
|
322
334
|
|
|
323
335
|
.preview-file-info p {
|
|
324
336
|
margin: 0px;
|
|
325
|
-
font-size: var(--nile-type-scale-3);
|
|
326
|
-
font-weight: var(--nile-font-weight-regular);
|
|
337
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
338
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
327
339
|
}
|
|
328
340
|
|
|
329
341
|
.preview-file-info p:last-of-type{
|
|
330
|
-
color: var(--nile-colors-neutral-700);
|
|
331
|
-
font-size: var(--nile-type-scale-2);
|
|
332
|
-
font-weight: var(--nile-font-weight-regular);
|
|
342
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
343
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
344
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
333
345
|
}
|
|
334
346
|
|
|
335
347
|
.no-preview > nile-icon:hover {
|
|
@@ -339,11 +351,11 @@ import{css as e}from"lit";const r=e`
|
|
|
339
351
|
/* ERROR STATE */
|
|
340
352
|
|
|
341
353
|
.error {
|
|
342
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
354
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
343
355
|
}
|
|
344
356
|
|
|
345
357
|
.error:hover {
|
|
346
|
-
border-color: var(--nile-colors-neutral-400);
|
|
358
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
347
359
|
}
|
|
348
360
|
|
|
349
361
|
.error-container {
|
|
@@ -355,13 +367,13 @@ import{css as e}from"lit";const r=e`
|
|
|
355
367
|
.error-icon {
|
|
356
368
|
height: 40px;
|
|
357
369
|
width: 40px;
|
|
358
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
370
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
359
371
|
padding: 2px 3px 2px 3px;
|
|
360
372
|
display: flex;
|
|
361
373
|
justify-content: center;
|
|
362
374
|
align-items: center;
|
|
363
|
-
border: 1px solid var(--nile-colors-red-400);
|
|
364
|
-
background-color: var(--nile-colors-red-100);
|
|
375
|
+
border: 1px solid var(--nile-colors-red-400, var(--ng-colors-border-error-subtle));
|
|
376
|
+
background-color: var(--nile-colors-red-100, var(--ng-colors-bg-error-secondary));
|
|
365
377
|
}
|
|
366
378
|
|
|
367
379
|
.error-icon nile-icon {
|
|
@@ -380,14 +392,14 @@ import{css as e}from"lit";const r=e`
|
|
|
380
392
|
|
|
381
393
|
.file-info p {
|
|
382
394
|
margin: 0px;
|
|
383
|
-
font-size: var(--nile-type-scale-3);
|
|
384
|
-
font-weight: var(--nile-font-weight-regular);
|
|
395
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
396
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
385
397
|
}
|
|
386
398
|
|
|
387
399
|
.file-info p:last-of-type{
|
|
388
|
-
color: var(--nile-colors-red-700);
|
|
389
|
-
font-size: var(--nile-type-scale-2);
|
|
390
|
-
font-weight: var(--nile-font-weight-regular);
|
|
400
|
+
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
401
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
402
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
391
403
|
}
|
|
392
404
|
|
|
393
405
|
.error > nile-icon:hover {
|
|
@@ -414,9 +426,9 @@ import{css as e}from"lit";const r=e`
|
|
|
414
426
|
}
|
|
415
427
|
|
|
416
428
|
.content-container div.title {
|
|
417
|
-
font-size: var(--nile-type-scale-3);
|
|
418
|
-
font-weight: var(--nile-font-weight-regular);
|
|
419
|
-
color: var(--nile-colors-dark-900);
|
|
429
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
430
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
431
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
420
432
|
text-align: center;
|
|
421
433
|
white-space: nowrap;
|
|
422
434
|
text-overflow: ellipsis;
|
|
@@ -425,9 +437,9 @@ import{css as e}from"lit";const r=e`
|
|
|
425
437
|
}
|
|
426
438
|
|
|
427
439
|
.content-container div.subtitle {
|
|
428
|
-
font-size: var(--nile-type-scale-2);
|
|
429
|
-
font-weight: var(--nile-font-weight-regular);
|
|
430
|
-
color: var(--nile-colors-dark-500);
|
|
440
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
441
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
442
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
|
|
431
443
|
text-align: center;
|
|
432
444
|
white-space: nowrap;
|
|
433
445
|
text-overflow: ellipsis;
|
|
@@ -442,10 +454,10 @@ import{css as e}from"lit";const r=e`
|
|
|
442
454
|
justify-content: center;
|
|
443
455
|
align-items: center;
|
|
444
456
|
gap:18px;
|
|
445
|
-
font-size: var(--nile-type-scale-3);
|
|
446
|
-
color: var(--nile-colors-blue-700);
|
|
447
|
-
background-color: var(--nile-colors-blue-100);
|
|
448
|
-
border-color: var(--nile-colors-blue-500);
|
|
457
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
458
|
+
color: var(--nile-colors-blue-700, var(--ng-colors-text-brand-secondary-700));
|
|
459
|
+
background-color: var(--nile-colors-blue-100, var(--ng-colors-bg-brand-secondary));
|
|
460
|
+
border-color: var(--nile-colors-blue-500, var(--ng-colors-border-brand));
|
|
449
461
|
}
|
|
450
462
|
|
|
451
463
|
/* Uploading State */
|
|
@@ -454,11 +466,11 @@ import{css as e}from"lit";const r=e`
|
|
|
454
466
|
flex-direction: column;
|
|
455
467
|
justify-content: flex-end;
|
|
456
468
|
align-items: center;
|
|
457
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
469
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
458
470
|
}
|
|
459
471
|
|
|
460
472
|
.vertical-uploading:hover {
|
|
461
|
-
border-color: var(--nile-colors-neutral-400);
|
|
473
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
462
474
|
}
|
|
463
475
|
|
|
464
476
|
.loading {
|
|
@@ -475,28 +487,28 @@ import{css as e}from"lit";const r=e`
|
|
|
475
487
|
|
|
476
488
|
/* Preview State */
|
|
477
489
|
.vertical-preview {
|
|
478
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
490
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
479
491
|
}
|
|
480
492
|
|
|
481
493
|
.vertical-preview:hover {
|
|
482
|
-
border-color: var(--nile-colors-neutral-400);
|
|
494
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
483
495
|
}
|
|
484
496
|
|
|
485
497
|
.image-preview {
|
|
486
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
498
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
487
499
|
object-fit: cover;
|
|
488
500
|
width: 80px;
|
|
489
501
|
height: 80px;
|
|
490
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
502
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
491
503
|
}
|
|
492
504
|
|
|
493
505
|
/* Vertical No Preview State */
|
|
494
506
|
.vertical-no-preview {
|
|
495
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
507
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
496
508
|
}
|
|
497
509
|
|
|
498
510
|
.vertical-no-preview:hover {
|
|
499
|
-
border-color: var(--nile-colors-neutral-400);
|
|
511
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
500
512
|
}
|
|
501
513
|
|
|
502
514
|
.vertical-document-icon {
|
|
@@ -506,23 +518,23 @@ import{css as e}from"lit";const r=e`
|
|
|
506
518
|
display: flex;
|
|
507
519
|
justify-content: center;
|
|
508
520
|
align-items: center;
|
|
509
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
510
|
-
border: 1px solid var(--nile-colors-blue-400);
|
|
511
|
-
background-color: var(--nile-colors-blue-100);
|
|
521
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
522
|
+
border: 1px solid var(--nile-colors-blue-400, var(--ng-componentcolors-utility-blue-400));
|
|
523
|
+
background-color: var(--nile-colors-blue-100, var(--ng-colors-bg-brand-secondary));
|
|
512
524
|
}
|
|
513
525
|
|
|
514
526
|
/* Veritcal Error State */
|
|
515
527
|
.vertical-error {
|
|
516
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
528
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
517
529
|
}
|
|
518
530
|
|
|
519
531
|
.vertical-error:hover {
|
|
520
|
-
border-color: var(--nile-colors-neutral-400);
|
|
532
|
+
border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
521
533
|
}
|
|
522
534
|
|
|
523
535
|
.error-bg {
|
|
524
|
-
background-color: var(--nile-colors-red-100);
|
|
525
|
-
border: 1px solid var(--nile-colors-red-400);
|
|
536
|
+
background-color: var(--nile-colors-red-100, var(--ng-colors-bg-error-secondary));
|
|
537
|
+
border: 1px solid var(--nile-colors-red-400, var(--ng-colors-border-error-subtle));
|
|
526
538
|
}
|
|
527
539
|
|
|
528
540
|
.error-message {
|
|
@@ -532,14 +544,14 @@ import{css as e}from"lit";const r=e`
|
|
|
532
544
|
align-items: center;
|
|
533
545
|
gap: 8px;
|
|
534
546
|
margin: 0px;
|
|
535
|
-
font-size: var(--nile-type-scale-3);
|
|
536
|
-
font-weight: var(--nile-font-weight-regular);
|
|
547
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
548
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
537
549
|
text-align: start;
|
|
538
550
|
}
|
|
539
551
|
|
|
540
552
|
.error-p {
|
|
541
|
-
color: var(--nile-colors-red-700);
|
|
542
|
-
font-size: var(--nile-type-scale-2);
|
|
553
|
+
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
554
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
543
555
|
width: 216px;
|
|
544
556
|
white-space: nowrap;
|
|
545
557
|
overflow: hidden;
|
|
@@ -566,8 +578,8 @@ import{css as e}from"lit";const r=e`
|
|
|
566
578
|
min-width: 230px;
|
|
567
579
|
max-height: 200px;
|
|
568
580
|
overflow-y: auto;
|
|
569
|
-
border: 1px solid var(--nile-colors-neutral-700);
|
|
570
|
-
border-radius: var(--nile-radius-radius-xs);
|
|
581
|
+
border: 1px solid var(--nile-colors-neutral-700, var(--ng-colors-border-neutral));
|
|
582
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
571
583
|
scrollbar-width: none;
|
|
572
584
|
padding: 12px;
|
|
573
585
|
}
|
|
@@ -582,18 +594,18 @@ import{css as e}from"lit";const r=e`
|
|
|
582
594
|
|
|
583
595
|
/* for the upload error messages */
|
|
584
596
|
.upload-error {
|
|
585
|
-
font-size: var(--nile-type-scale-2);
|
|
586
|
-
font-weight: var(--nile-font-weight-regular);
|
|
587
|
-
color: var(--nile-colors-red-700);
|
|
597
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
598
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
599
|
+
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
588
600
|
display: flex;
|
|
589
601
|
justify-content: flex-start;
|
|
590
602
|
align-items: center;
|
|
591
|
-
gap: var(--nile-spacing-one-half-x);
|
|
603
|
+
gap: var(--nile-spacing-one-half-x, var(--ng-spacing-xxs));
|
|
592
604
|
margin-top: 10px;
|
|
593
605
|
}
|
|
594
606
|
|
|
595
607
|
.upload-error > nile-tooltip > span {
|
|
596
|
-
color: var(--nile-colors-red-700);
|
|
608
|
+
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
597
609
|
white-space: nowrap;
|
|
598
610
|
text-align: left;
|
|
599
611
|
max-width: 560px;
|
|
@@ -603,18 +615,27 @@ import{css as e}from"lit";const r=e`
|
|
|
603
615
|
|
|
604
616
|
.vertical-upload-error {
|
|
605
617
|
display: flex;
|
|
618
|
+
align-items: center;
|
|
606
619
|
gap: 4px;
|
|
607
620
|
margin-top: 10px;
|
|
608
621
|
}
|
|
609
622
|
|
|
610
623
|
.vertical-upload-error nile-tooltip span, .vertical-upload-error span {
|
|
611
|
-
color: var(--nile-colors-red-700);
|
|
624
|
+
color: var(--nile-colors-red-700, var(--ng-colors-text-error-primary-600));
|
|
612
625
|
white-space: nowrap;
|
|
613
626
|
text-align: left;
|
|
614
627
|
width: 222px;
|
|
615
628
|
overflow: hidden;
|
|
616
629
|
text-overflow: ellipsis;
|
|
617
|
-
font-size: var(--nile-type-scale-2);
|
|
630
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
618
631
|
display: inline-block;
|
|
619
632
|
}
|
|
620
|
-
|
|
633
|
+
|
|
634
|
+
.upload-error nile-lite-tooltip,
|
|
635
|
+
.vertical-upload-error nile-lite-tooltip {
|
|
636
|
+
display: flex;
|
|
637
|
+
align-items: center;
|
|
638
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
639
|
+
line-height: 1;
|
|
640
|
+
}
|
|
641
|
+
`;export{e as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-pagination.css.cjs.js","../internal/nile-element.cjs.js","./nile-pagination-utils.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var i,e,t,n,s,r,a,l,o,h,c,d,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_templateObject18,_templateObject19,_templateObject20,p;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){i=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;n=_litDecoratorsJs.state;s=_litDecoratorsJs.query;r=_litDecoratorsJs.customElement;},function(_nilePaginationCssCjsJs){a=_nilePaginationCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nilePaginationUtilsCjsJs){o=_nilePaginationUtilsCjsJs.c;h=_nilePaginationUtilsCjsJs.g;c=_nilePaginationUtilsCjsJs.a;d=_nilePaginationUtilsCjsJs.b;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",p=/*#__PURE__*/function(_l){function p(){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,arguments),_this.totalItems=0,_this.currentPage=1,_this.pageSize=50,_this.pageSizeOptions=[10,25,50,100],_this.variant="fluid",_this.disabled=!1,_this.showTitle=!0,_this._pageSizeOpen=!1,_this._pageOpen=!1,_this._miniPageOpen=!1;return _this;}_inherits(p,_l);return _createClass(p,[{key:"firstUpdated",value:function firstUpdated(){var _this2=this;this._pageSizeDropdown&&(this._pageSizeDropdown.addEventListener("nile-show",function(){_this2._pageSizeOpen=!0;}),this._pageSizeDropdown.addEventListener("nile-after-hide",function(){_this2._pageSizeOpen=!1;}));}},{key:"totalPages",get:function get(){return Math.max(1,o(this.totalItems,this.pageSize));}},{key:"goToPage",value:function goToPage(i){if(this.disabled)return;var e=this.currentPage;this.currentPage=i,this.emit("nile-change",{page:i,previousPage:e,pageSize:this.pageSize});}},{key:"onPageSizeSelect",value:function onPageSizeSelect(i){if(this.disabled||this.pageSize===i)return;var e=this.currentPage;this.pageSize=i,this.currentPage=1,this.emit("nile-change",{page:1,previousPage:e,pageSize:i});}},{key:"renderCompactRangeText",value:function renderCompactRangeText(){var i=h(this.totalItems,this.pageSize,this.currentPage).replace(/^Showing\s*/,"");return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<div class=\"range-text\">","</div>"])),i);}},{key:"renderRangeText",value:function renderRangeText(){return 0===this.totalItems?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div class=\"range-text\">Showing 0 of 0</div>"]))):e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div part=\"range-text\" class=\"range-text\">\n ","\n </div>\n "])),h(this.totalItems,this.pageSize,this.currentPage));}},{key:"renderPageSizeSelect",value:function renderPageSizeSelect(){var _this3=this;return"fluid"!==this.variant?null:e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <div class=\"page-size-select\">\n <nile-dropdown class=\"page-size-dropdown\" ?disabled=",">\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"down ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"14\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"down-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n <span part=\"pagesize-label\" class=\"page-size-label\">Items per page</span>\n </div>\n "])),this.disabled,this._pageSizeOpen?"open":"",this.disabled,this.pageSize,this.pageSizeOptions.map(function(i){return e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this3.disabled,function(){return _this3.onPageSizeSelect(i);},i);}));}},{key:"renderCompactPageSize",value:function renderCompactPageSize(){var _this4=this;return e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-dropdown\n class=\"compact-dropdown\"\n ?disabled=","\n @nile-show=","\n @nile-after-hide=","\n >\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"down ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"14\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"compact-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n "])),this.disabled,function(){return _this4._pageSizeOpen=!0;},function(){return _this4._pageSizeOpen=!1;},this._pageSizeOpen?"open":"",this.disabled,this.pageSize,this.pageSizeOptions.map(function(i){return e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this4.disabled,function(){return _this4.onPageSizeSelect(i);},i);}));}},{key:"renderPrevButton",value:function renderPrevButton(){var _this5=this;return e(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"prev-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-left, var(--ng-icon-chevron-left))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"14\"></nile-icon>\n </nile-button>\n </li>\n "])),1===this.currentPage||this.disabled,function(){return _this5.goToPage(_this5.currentPage-1);});}},{key:"renderNextButton",value:function renderNextButton(){var _this6=this;return e(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"next-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-right, var(--ng-icon-chevron-right))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"14\"></nile-icon>\n </nile-button>\n </li>\n "])),this.currentPage===this.totalPages||this.disabled,function(){return _this6.goToPage(_this6.currentPage+1);});}},{key:"renderPageItem",value:function renderPageItem(i,t,n){var _this7=this;return"…"===i?e(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <li>\n <nile-dropdown class=\"ellipsis-dropdown\" ?disabled=",">\n <nile-button slot=\"trigger\" variant=\"ghost\" ?disabled=",">\n \u2026\n </nile-button>\n <nile-menu>\n <div class=\"ellipsis-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n </li>\n "])),this.disabled,this.disabled,c(this.totalPages,n,this.currentPage,t<n.indexOf(this.currentPage)?"left":"right").map(function(i){return e(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this7.disabled,function(){return _this7.goToPage(i);},i);})):e(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=","\n ?disabled=","\n @click=","\n >\n ","\n </nile-button>\n </li>\n "])),i===this.currentPage?"primary":"ghost",this.disabled,function(){return _this7.goToPage(i);},i);}},{key:"renderMiniPrevButton",value:function renderMiniPrevButton(){var _this8=this;return e(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"mini-prev-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-left, var(--ng-icon-chevron-left))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"12\"></nile-icon>\n </nile-button>\n </li>\n "])),1===this.currentPage||this.disabled,function(){return _this8.goToPage(_this8.currentPage-1);});}},{key:"renderMiniNextButton",value:function renderMiniNextButton(){var _this9=this;return e(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"mini-next-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-right, var(--ng-icon-chevron-right))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"12\"></nile-icon>\n </nile-button>\n </li>\n "])),this.currentPage===this.totalPages||this.disabled,function(){return _this9.goToPage(_this9.currentPage+1);});}},{key:"renderMini",value:function renderMini(){var _this10=this;return e(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n <div part=\"wrapper\" class=\"pagination-wrapper mini\">\n <span part=\"mini-showing-label\" class=\"mini-showing-label\">Showing</span>\n <nile-dropdown\n part=\"mini-page-dropdown\"\n class=\"mini-page-dropdown\"\n ?disabled=","\n @nile-show=","\n @nile-after-hide=","\n >\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"mini-page-btn ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"12\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"mini-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n <span part=\"mini-of-label\" class=\"mini-of-label\">of ","</span>\n <nav aria-label=\"Pagination\" part=\"mini-nav\" class=\"mini-nav\">\n <ul part=\"mini-page-list\" class=\"pagination mini-pagination\">\n ","\n ","\n </ul>\n </nav>\n </div>\n "])),this.disabled,function(){return _this10._miniPageOpen=!0;},function(){return _this10._miniPageOpen=!1;},this._miniPageOpen?"open":"",this.disabled,this.currentPage,Array.from({length:this.totalPages},function(i,e){return e+1;}).map(function(i){return e(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this10.disabled,function(){return _this10.goToPage(i);},i);}),this.totalPages,this.renderMiniPrevButton(),this.renderMiniNextButton());}},{key:"renderPageList",value:function renderPageList(){var _this11=this;if("compact"===this.variant)return e(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["\n <nav aria-label=\"Pagination\">\n <ul class=\"pagination compact-pagination\">\n ","\n <li>\n <nile-dropdown\n class=\"compact-dropdown1\"\n ?disabled=","\n @nile-show=","\n @nile-after-hide=","\n >\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"current-page-btn ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"14\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"compact-scroll-wrapper1\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n </li>\n ","\n </ul>\n </nav>\n "])),this.renderPrevButton(),this.disabled,function(){return _this11._pageOpen=!0;},function(){return _this11._pageOpen=!1;},this._pageOpen?"open":"",this.disabled,this.currentPage,Array.from({length:this.totalPages},function(i,e){return e+1;}).map(function(i){return e(_templateObject18||(_templateObject18=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this11.disabled,function(){return _this11.goToPage(i);},i);}),this.renderNextButton());var i=d(this.totalPages,this.currentPage);return e(_templateObject19||(_templateObject19=_taggedTemplateLiteral(["\n <nav aria-label=\"Pagination\">\n <ul part=\"page-list\" class=\"pagination\">\n ","\n ","\n ","\n </ul>\n </nav>\n "])),this.renderPrevButton(),i.map(function(e,t){return _this11.renderPageItem(e,t,i);}),this.renderNextButton());}},{key:"render",value:function render(){return"mini"===this.variant?this.renderMini():e(_templateObject20||(_templateObject20=_taggedTemplateLiteral(["\n <div part=\"wrapper\" class=\"pagination-wrapper ","\">\n <div part=\"pager-container\" class=\"pager-container\">\n ","\n ","\n </div>\n ","\n </div>\n "])),this.variant,"fluid"===this.variant&&this.showTitle?this.renderRangeText():"compact"===this.variant?this.renderCompactRangeText():null,"fluid"===this.variant?this.renderPageSizeSelect():this.renderCompactPageSize(),this.renderPageList());}}],[{key:"styles",get:function get(){return[a];}}]);}(l));i([t({attribute:"totalitems",reflect:!0,converter:{fromAttribute:function fromAttribute(i){var e=Number(i);return Number.isFinite(e)&&e>=0?Math.floor(e):0;}}})],p.prototype,"totalItems",void 0),i([t({attribute:"currentpage",reflect:!0,converter:{fromAttribute:function fromAttribute(i){var e=Number(i);return Number.isFinite(e)&&e>=1?Math.floor(e):1;}}})],p.prototype,"currentPage",void 0),i([t({attribute:"pagesize",reflect:!0,converter:{fromAttribute:function fromAttribute(i){var e=Number(i);return Number.isFinite(e)&&e>=1?Math.floor(e):50;}}})],p.prototype,"pageSize",void 0),i([t({attribute:"pagesizeoptions",reflect:!1,converter:{fromAttribute:function fromAttribute(i){try{var _e=JSON.parse(i);if(Array.isArray(_e)&&_e.every(function(i){return"number"==typeof i;}))return _e;}catch(_unused){}return[10,25,50,100];}}})],p.prototype,"pageSizeOptions",void 0),i([t({type:String})],p.prototype,"variant",void 0),i([t({type:Boolean,reflect:!0})],p.prototype,"disabled",void 0),i([t({type:Boolean})],p.prototype,"showTitle",void 0),i([n()],p.prototype,"_pageSizeOpen",void 0),i([n()],p.prototype,"_pageOpen",void 0),i([n()],p.prototype,"_miniPageOpen",void 0),i([s(".page-size-dropdown")],p.prototype,"_pageSizeDropdown",void 0),_export("N",p=i([r("nile-pagination")],p));}};});
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-pagination.css.cjs.js","../internal/nile-element.cjs.js","./nile-pagination-utils.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var i,e,t,n,s,r,a,l,o,h,c,d,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_templateObject18,_templateObject19,_templateObject20,p;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){i=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;n=_litDecoratorsJs.state;s=_litDecoratorsJs.query;r=_litDecoratorsJs.customElement;},function(_nilePaginationCssCjsJs){a=_nilePaginationCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nilePaginationUtilsCjsJs){o=_nilePaginationUtilsCjsJs.c;h=_nilePaginationUtilsCjsJs.g;c=_nilePaginationUtilsCjsJs.a;d=_nilePaginationUtilsCjsJs.b;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",p=/*#__PURE__*/function(_l){function p(){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,arguments),_this.totalItems=0,_this.currentPage=1,_this.pageSize=50,_this.pageSizeOptions=[10,25,50,100],_this.variant="fluid",_this.disabled=!1,_this.showTitle=!0,_this.portal=!1,_this._pageSizeOpen=!1,_this._pageOpen=!1,_this._miniPageOpen=!1;return _this;}_inherits(p,_l);return _createClass(p,[{key:"firstUpdated",value:function firstUpdated(){var _this2=this;this._pageSizeDropdown&&(this._pageSizeDropdown.addEventListener("nile-show",function(){_this2._pageSizeOpen=!0;}),this._pageSizeDropdown.addEventListener("nile-after-hide",function(){_this2._pageSizeOpen=!1;}));}},{key:"totalPages",get:function get(){return Math.max(1,o(this.totalItems,this.pageSize));}},{key:"goToPage",value:function goToPage(i){if(this.disabled)return;var e=this.currentPage;this.currentPage=i,this.emit("nile-change",{page:i,previousPage:e,pageSize:this.pageSize});}},{key:"onPageSizeSelect",value:function onPageSizeSelect(i){if(this.disabled||this.pageSize===i)return;var e=this.currentPage;this.pageSize=i,this.currentPage=1,this.emit("nile-change",{page:1,previousPage:e,pageSize:i});}},{key:"renderCompactRangeText",value:function renderCompactRangeText(){var i=h(this.totalItems,this.pageSize,this.currentPage).replace(/^Showing\s*/,"");return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<div class=\"range-text\">","</div>"])),i);}},{key:"renderRangeText",value:function renderRangeText(){return 0===this.totalItems?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div class=\"range-text\">Showing 0 of 0</div>"]))):e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div part=\"range-text\" class=\"range-text\">\n ","\n </div>\n "])),h(this.totalItems,this.pageSize,this.currentPage));}},{key:"renderPageSizeSelect",value:function renderPageSizeSelect(){var _this3=this;return"fluid"!==this.variant?null:e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <div class=\"page-size-select\">\n <nile-dropdown class=\"page-size-dropdown\" ?portal="," ?disabled=",">\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"down ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"14\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"down-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n <span part=\"pagesize-label\" class=\"page-size-label\">Items per page</span>\n </div>\n "])),this.portal,this.disabled,this._pageSizeOpen?"open":"",this.disabled,this.pageSize,this.pageSizeOptions.map(function(i){return e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this3.disabled,function(){return _this3.onPageSizeSelect(i);},i);}));}},{key:"renderCompactPageSize",value:function renderCompactPageSize(){var _this4=this;return e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-dropdown\n class=\"compact-dropdown\"\n ?portal=","\n ?disabled=","\n @nile-show=","\n @nile-after-hide=","\n >\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"down ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"14\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"compact-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n "])),this.portal,this.disabled,function(){return _this4._pageSizeOpen=!0;},function(){return _this4._pageSizeOpen=!1;},this._pageSizeOpen?"open":"",this.disabled,this.pageSize,this.pageSizeOptions.map(function(i){return e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this4.disabled,function(){return _this4.onPageSizeSelect(i);},i);}));}},{key:"renderPrevButton",value:function renderPrevButton(){var _this5=this;return e(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"prev-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-left, var(--ng-icon-chevron-left))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"14\"></nile-icon>\n </nile-button>\n </li>\n "])),1===this.currentPage||this.disabled,function(){return _this5.goToPage(_this5.currentPage-1);});}},{key:"renderNextButton",value:function renderNextButton(){var _this6=this;return e(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"next-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-right, var(--ng-icon-chevron-right))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"14\"></nile-icon>\n </nile-button>\n </li>\n "])),this.currentPage===this.totalPages||this.disabled,function(){return _this6.goToPage(_this6.currentPage+1);});}},{key:"renderPageItem",value:function renderPageItem(i,t,n){var _this7=this;return"…"===i?e(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <li>\n <nile-dropdown class=\"ellipsis-dropdown\" ?portal="," ?disabled=",">\n <nile-button slot=\"trigger\" variant=\"ghost\" ?disabled=",">\n \u2026\n </nile-button>\n <nile-menu>\n <div class=\"ellipsis-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n </li>\n "])),this.portal,this.disabled,this.disabled,c(this.totalPages,n,this.currentPage,t<n.indexOf(this.currentPage)?"left":"right").map(function(i){return e(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this7.disabled,function(){return _this7.goToPage(i);},i);})):e(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=","\n ?disabled=","\n @click=","\n >\n ","\n </nile-button>\n </li>\n "])),i===this.currentPage?"primary":"ghost",this.disabled,function(){return _this7.goToPage(i);},i);}},{key:"renderMiniPrevButton",value:function renderMiniPrevButton(){var _this8=this;return e(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"mini-prev-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-left, var(--ng-icon-chevron-left))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"12\"></nile-icon>\n </nile-button>\n </li>\n "])),1===this.currentPage||this.disabled,function(){return _this8.goToPage(_this8.currentPage-1);});}},{key:"renderMiniNextButton",value:function renderMiniNextButton(){var _this9=this;return e(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n <li>\n <nile-button\n variant=\"tertiary\"\n ?disabled=","\n @click=","\n class=\"mini-next-button\"\n >\n <nile-icon name=\"var(--nile-icon-arrow-right, var(--ng-icon-chevron-right))\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"12\"></nile-icon>\n </nile-button>\n </li>\n "])),this.currentPage===this.totalPages||this.disabled,function(){return _this9.goToPage(_this9.currentPage+1);});}},{key:"renderMini",value:function renderMini(){var _this10=this;return e(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n <div part=\"wrapper\" class=\"pagination-wrapper mini\">\n <span part=\"mini-showing-label\" class=\"mini-showing-label\">Showing</span>\n <nile-dropdown\n part=\"mini-page-dropdown\"\n class=\"mini-page-dropdown\"\n ?portal=","\n ?disabled=","\n @nile-show=","\n @nile-after-hide=","\n >\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"mini-page-btn ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"12\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"mini-scroll-wrapper\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n <span part=\"mini-of-label\" class=\"mini-of-label\">of ","</span>\n <nav aria-label=\"Pagination\" part=\"mini-nav\" class=\"mini-nav\">\n <ul part=\"mini-page-list\" class=\"pagination mini-pagination\">\n ","\n ","\n </ul>\n </nav>\n </div>\n "])),this.portal,this.disabled,function(){return _this10._miniPageOpen=!0;},function(){return _this10._miniPageOpen=!1;},this._miniPageOpen?"open":"",this.disabled,this.currentPage,Array.from({length:this.totalPages},function(i,e){return e+1;}).map(function(i){return e(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this10.disabled,function(){return _this10.goToPage(i);},i);}),this.totalPages,this.renderMiniPrevButton(),this.renderMiniNextButton());}},{key:"renderPageList",value:function renderPageList(){var _this11=this;if("compact"===this.variant)return e(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["\n <nav aria-label=\"Pagination\">\n <ul class=\"pagination compact-pagination\">\n ","\n <li>\n <nile-dropdown\n class=\"compact-dropdown1\"\n ?portal=","\n ?disabled=","\n @nile-show=","\n @nile-after-hide=","\n >\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"current-page-btn ","\"\n ?disabled=","\n >\n ","\n <nile-icon\n name=\"var(--nile-icon-chevron-down, var(--ng-icon-chevron-down))\"\n size=\"14\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n class=\"chevron\"\n ></nile-icon>\n </nile-button>\n <nile-menu>\n <div class=\"compact-scroll-wrapper1\">\n ","\n </div>\n </nile-menu>\n </nile-dropdown>\n </li>\n ","\n </ul>\n </nav>\n "])),this.renderPrevButton(),this.portal,this.disabled,function(){return _this11._pageOpen=!0;},function(){return _this11._pageOpen=!1;},this._pageOpen?"open":"",this.disabled,this.currentPage,Array.from({length:this.totalPages},function(i,e){return e+1;}).map(function(i){return e(_templateObject18||(_templateObject18=_taggedTemplateLiteral(["\n <nile-menu-item\n ?disabled=","\n @click=","\n >\n ","\n </nile-menu-item>\n "])),_this11.disabled,function(){return _this11.goToPage(i);},i);}),this.renderNextButton());var i=d(this.totalPages,this.currentPage);return e(_templateObject19||(_templateObject19=_taggedTemplateLiteral(["\n <nav aria-label=\"Pagination\">\n <ul part=\"page-list\" class=\"pagination\">\n ","\n ","\n ","\n </ul>\n </nav>\n "])),this.renderPrevButton(),i.map(function(e,t){return _this11.renderPageItem(e,t,i);}),this.renderNextButton());}},{key:"render",value:function render(){return"mini"===this.variant?this.renderMini():e(_templateObject20||(_templateObject20=_taggedTemplateLiteral(["\n <div part=\"wrapper\" class=\"pagination-wrapper ","\">\n <div part=\"pager-container\" class=\"pager-container\">\n ","\n ","\n </div>\n ","\n </div>\n "])),this.variant,"fluid"===this.variant&&this.showTitle?this.renderRangeText():"compact"===this.variant?this.renderCompactRangeText():null,"fluid"===this.variant?this.renderPageSizeSelect():this.renderCompactPageSize(),this.renderPageList());}}],[{key:"styles",get:function get(){return[a];}}]);}(l));i([t({attribute:"totalitems",reflect:!0,converter:{fromAttribute:function fromAttribute(i){var e=Number(i);return Number.isFinite(e)&&e>=0?Math.floor(e):0;}}})],p.prototype,"totalItems",void 0),i([t({attribute:"currentpage",reflect:!0,converter:{fromAttribute:function fromAttribute(i){var e=Number(i);return Number.isFinite(e)&&e>=1?Math.floor(e):1;}}})],p.prototype,"currentPage",void 0),i([t({attribute:"pagesize",reflect:!0,converter:{fromAttribute:function fromAttribute(i){var e=Number(i);return Number.isFinite(e)&&e>=1?Math.floor(e):50;}}})],p.prototype,"pageSize",void 0),i([t({attribute:"pagesizeoptions",reflect:!1,converter:{fromAttribute:function fromAttribute(i){try{var _e=JSON.parse(i);if(Array.isArray(_e)&&_e.every(function(i){return"number"==typeof i;}))return _e;}catch(_unused){}return[10,25,50,100];}}})],p.prototype,"pageSizeOptions",void 0),i([t({type:String})],p.prototype,"variant",void 0),i([t({type:Boolean,reflect:!0})],p.prototype,"disabled",void 0),i([t({type:Boolean})],p.prototype,"showTitle",void 0),i([t({type:Boolean,reflect:!0})],p.prototype,"portal",void 0),i([n()],p.prototype,"_pageSizeOpen",void 0),i([n()],p.prototype,"_pageOpen",void 0),i([n()],p.prototype,"_miniPageOpen",void 0),i([s(".page-size-dropdown")],p.prototype,"_pageSizeDropdown",void 0),_export("N",p=i([r("nile-pagination")],p));}};});
|
|
2
2
|
//# sourceMappingURL=nile-pagination.cjs.js.map
|