@everymatrix/lottery-pagination 1.56.0 → 1.56.3
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/dist/cjs/{index-ddbadb0f.js → index-94cc7cac.js} +67 -202
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lottery-pagination-038b9722.js → lottery-pagination-e0a51394.js} +22 -51
- package/dist/cjs/lottery-pagination.cjs.entry.js +2 -2
- package/dist/cjs/lottery-pagination.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/lottery-pagination/lottery-pagination.js +21 -76
- package/dist/esm/{index-893d5ea1.js → index-af8909e6.js} +67 -202
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{lottery-pagination-d8ef15e4.js → lottery-pagination-b349c62d.js} +22 -51
- package/dist/esm/lottery-pagination.entry.js +2 -2
- package/dist/esm/lottery-pagination.js +3 -3
- package/dist/lottery-pagination/index.esm.js +1 -1
- package/dist/lottery-pagination/lottery-pagination.esm.js +1 -1
- package/dist/lottery-pagination/p-19a4165f.js +1 -0
- package/dist/lottery-pagination/p-9fa953ac.entry.js +1 -0
- package/dist/lottery-pagination/p-f60ce5fa.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/lottery-pagination/p-5eeb537f.js +0 -2
- package/dist/lottery-pagination/p-6bb4c606.js +0 -1
- package/dist/lottery-pagination/p-716cfefa.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -3,58 +3,8 @@ import { isMobile } from "../../utils/utils";
|
|
|
3
3
|
import { translate, getTranslations } from "../../utils/locale.utils";
|
|
4
4
|
export class LotteryPagination {
|
|
5
5
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Next page string value - determines if the next page is disabled or active
|
|
8
|
-
*/
|
|
9
|
-
this.nextPage = false;
|
|
10
|
-
/**
|
|
11
|
-
* Previous page string value - determines if the previous page is disabled or active
|
|
12
|
-
*/
|
|
13
|
-
this.prevPage = false;
|
|
14
|
-
/**
|
|
15
|
-
* The received offset
|
|
16
|
-
*/
|
|
17
|
-
this.offset = 0;
|
|
18
|
-
/**
|
|
19
|
-
* The received limit for the number of pages
|
|
20
|
-
*/
|
|
21
|
-
this.limit = 10;
|
|
22
|
-
/**
|
|
23
|
-
* The received total number of pages
|
|
24
|
-
*/
|
|
25
|
-
this.total = 1;
|
|
26
|
-
/**
|
|
27
|
-
* Language
|
|
28
|
-
*/
|
|
29
|
-
this.language = 'en';
|
|
30
|
-
/**
|
|
31
|
-
* Client custom styling via string
|
|
32
|
-
*/
|
|
33
|
-
this.clientStyling = '';
|
|
34
|
-
/**
|
|
35
|
-
* Client custom styling via url content
|
|
36
|
-
*/
|
|
37
|
-
this.clientStylingUrlContent = '';
|
|
38
|
-
this.isReset = false;
|
|
39
|
-
/**
|
|
40
|
-
* Component working variable for last page
|
|
41
|
-
*/
|
|
42
|
-
this.lastPage = false;
|
|
43
|
-
/**
|
|
44
|
-
* Component working variable for prvious page
|
|
45
|
-
*/
|
|
46
|
-
this.previousPage = false;
|
|
47
|
-
/**
|
|
48
|
-
* In component working variable for the array of pages
|
|
49
|
-
*/
|
|
50
|
-
this.pagesArray = [];
|
|
51
|
-
/**
|
|
52
|
-
* In component working variable for last page
|
|
53
|
-
*/
|
|
54
|
-
this.endInt = 0;
|
|
55
6
|
this.userAgent = window.navigator.userAgent;
|
|
56
7
|
this.currentPage = 1;
|
|
57
|
-
this.limitStylingAppends = false;
|
|
58
8
|
/**
|
|
59
9
|
* Navigation logic
|
|
60
10
|
*/
|
|
@@ -132,6 +82,27 @@ export class LotteryPagination {
|
|
|
132
82
|
this.stylingContainer.prepend(cssFile);
|
|
133
83
|
}, 1);
|
|
134
84
|
};
|
|
85
|
+
this.nextPage = false;
|
|
86
|
+
this.prevPage = false;
|
|
87
|
+
this.offset = 0;
|
|
88
|
+
this.limit = 10;
|
|
89
|
+
this.total = 1;
|
|
90
|
+
this.language = 'en';
|
|
91
|
+
this.clientStyling = '';
|
|
92
|
+
this.clientStylingUrlContent = '';
|
|
93
|
+
this.arrowsActive = undefined;
|
|
94
|
+
this.secondaryArrowsActive = undefined;
|
|
95
|
+
this.numberedNavActive = undefined;
|
|
96
|
+
this.isReset = false;
|
|
97
|
+
this.translationUrl = undefined;
|
|
98
|
+
this.offsetInt = undefined;
|
|
99
|
+
this.lastPage = false;
|
|
100
|
+
this.previousPage = false;
|
|
101
|
+
this.limitInt = undefined;
|
|
102
|
+
this.totalInt = undefined;
|
|
103
|
+
this.pagesArray = [];
|
|
104
|
+
this.endInt = 0;
|
|
105
|
+
this.limitStylingAppends = false;
|
|
135
106
|
}
|
|
136
107
|
componentWillLoad() {
|
|
137
108
|
if (this.translationUrl) {
|
|
@@ -241,8 +212,6 @@ export class LotteryPagination {
|
|
|
241
212
|
"tags": [],
|
|
242
213
|
"text": "Next page string value - determines if the next page is disabled or active"
|
|
243
214
|
},
|
|
244
|
-
"getter": false,
|
|
245
|
-
"setter": false,
|
|
246
215
|
"attribute": "next-page",
|
|
247
216
|
"reflect": true,
|
|
248
217
|
"defaultValue": "false"
|
|
@@ -261,8 +230,6 @@ export class LotteryPagination {
|
|
|
261
230
|
"tags": [],
|
|
262
231
|
"text": "Previous page string value - determines if the previous page is disabled or active"
|
|
263
232
|
},
|
|
264
|
-
"getter": false,
|
|
265
|
-
"setter": false,
|
|
266
233
|
"attribute": "prev-page",
|
|
267
234
|
"reflect": true,
|
|
268
235
|
"defaultValue": "false"
|
|
@@ -281,8 +248,6 @@ export class LotteryPagination {
|
|
|
281
248
|
"tags": [],
|
|
282
249
|
"text": "The received offset"
|
|
283
250
|
},
|
|
284
|
-
"getter": false,
|
|
285
|
-
"setter": false,
|
|
286
251
|
"attribute": "offset",
|
|
287
252
|
"reflect": true,
|
|
288
253
|
"defaultValue": "0"
|
|
@@ -301,8 +266,6 @@ export class LotteryPagination {
|
|
|
301
266
|
"tags": [],
|
|
302
267
|
"text": "The received limit for the number of pages"
|
|
303
268
|
},
|
|
304
|
-
"getter": false,
|
|
305
|
-
"setter": false,
|
|
306
269
|
"attribute": "limit",
|
|
307
270
|
"reflect": true,
|
|
308
271
|
"defaultValue": "10"
|
|
@@ -321,8 +284,6 @@ export class LotteryPagination {
|
|
|
321
284
|
"tags": [],
|
|
322
285
|
"text": "The received total number of pages"
|
|
323
286
|
},
|
|
324
|
-
"getter": false,
|
|
325
|
-
"setter": false,
|
|
326
287
|
"attribute": "total",
|
|
327
288
|
"reflect": true,
|
|
328
289
|
"defaultValue": "1"
|
|
@@ -341,8 +302,6 @@ export class LotteryPagination {
|
|
|
341
302
|
"tags": [],
|
|
342
303
|
"text": "Language"
|
|
343
304
|
},
|
|
344
|
-
"getter": false,
|
|
345
|
-
"setter": false,
|
|
346
305
|
"attribute": "language",
|
|
347
306
|
"reflect": true,
|
|
348
307
|
"defaultValue": "'en'"
|
|
@@ -361,8 +320,6 @@ export class LotteryPagination {
|
|
|
361
320
|
"tags": [],
|
|
362
321
|
"text": "Client custom styling via string"
|
|
363
322
|
},
|
|
364
|
-
"getter": false,
|
|
365
|
-
"setter": false,
|
|
366
323
|
"attribute": "client-styling",
|
|
367
324
|
"reflect": true,
|
|
368
325
|
"defaultValue": "''"
|
|
@@ -381,8 +338,6 @@ export class LotteryPagination {
|
|
|
381
338
|
"tags": [],
|
|
382
339
|
"text": "Client custom styling via url content"
|
|
383
340
|
},
|
|
384
|
-
"getter": false,
|
|
385
|
-
"setter": false,
|
|
386
341
|
"attribute": "client-styling-url-content",
|
|
387
342
|
"reflect": true,
|
|
388
343
|
"defaultValue": "''"
|
|
@@ -401,8 +356,6 @@ export class LotteryPagination {
|
|
|
401
356
|
"tags": [],
|
|
402
357
|
"text": "Customize pagination: Activate pagination arrows"
|
|
403
358
|
},
|
|
404
|
-
"getter": false,
|
|
405
|
-
"setter": false,
|
|
406
359
|
"attribute": "arrows-active",
|
|
407
360
|
"reflect": true
|
|
408
361
|
},
|
|
@@ -420,8 +373,6 @@ export class LotteryPagination {
|
|
|
420
373
|
"tags": [],
|
|
421
374
|
"text": "Customize pagination: Activate pagination secondary arrows"
|
|
422
375
|
},
|
|
423
|
-
"getter": false,
|
|
424
|
-
"setter": false,
|
|
425
376
|
"attribute": "secondary-arrows-active",
|
|
426
377
|
"reflect": true
|
|
427
378
|
},
|
|
@@ -439,8 +390,6 @@ export class LotteryPagination {
|
|
|
439
390
|
"tags": [],
|
|
440
391
|
"text": "Customize pagination: Activate pagination numbered navigation"
|
|
441
392
|
},
|
|
442
|
-
"getter": false,
|
|
443
|
-
"setter": false,
|
|
444
393
|
"attribute": "numbered-nav-active",
|
|
445
394
|
"reflect": true
|
|
446
395
|
},
|
|
@@ -458,8 +407,6 @@ export class LotteryPagination {
|
|
|
458
407
|
"tags": [],
|
|
459
408
|
"text": ""
|
|
460
409
|
},
|
|
461
|
-
"getter": false,
|
|
462
|
-
"setter": false,
|
|
463
410
|
"attribute": "is-reset",
|
|
464
411
|
"reflect": true,
|
|
465
412
|
"defaultValue": "false"
|
|
@@ -478,8 +425,6 @@ export class LotteryPagination {
|
|
|
478
425
|
"tags": [],
|
|
479
426
|
"text": "Translations via parent component"
|
|
480
427
|
},
|
|
481
|
-
"getter": false,
|
|
482
|
-
"setter": false,
|
|
483
428
|
"attribute": "translation-url",
|
|
484
429
|
"reflect": true
|
|
485
430
|
}
|