@everymatrix/helper-pagination 1.53.0 → 1.53.11
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/helper-pagination.cjs.entry.js +50 -20
- package/dist/cjs/helper-pagination.cjs.js +2 -2
- package/dist/cjs/{index-502d881b.js → index-86ed1cf8.js} +161 -66
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/helper-pagination/helper-pagination.js +71 -19
- package/dist/esm/helper-pagination.entry.js +50 -20
- package/dist/esm/helper-pagination.js +3 -3
- package/dist/esm/{index-79ce7f1f.js → index-f8e68e4c.js} +161 -66
- package/dist/esm/loader.js +2 -2
- package/dist/helper-pagination/helper-pagination.esm.js +1 -1
- package/dist/helper-pagination/p-01304a1b.js +2 -0
- package/dist/helper-pagination/p-8bc25545.entry.js +1 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/helper-pagination/p-a3272d7a.entry.js +0 -1
- package/dist/helper-pagination/p-ddd49f2d.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.dev.d.ts +0 -2
|
@@ -3,8 +3,57 @@ import { isMobile } from "../../utils/utils";
|
|
|
3
3
|
import { translate } from "../../utils/locale.utils";
|
|
4
4
|
export class HelperPagination {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Next page string value - determines if the next page is disabled or active
|
|
8
|
+
*/
|
|
9
|
+
this.nextPage = '';
|
|
10
|
+
/**
|
|
11
|
+
* Previous page string value - determines if the previous page is disabled or active
|
|
12
|
+
*/
|
|
13
|
+
this.prevPage = '';
|
|
14
|
+
/**
|
|
15
|
+
* The received offset
|
|
16
|
+
*/
|
|
17
|
+
this.offset = 0;
|
|
18
|
+
/**
|
|
19
|
+
* The received limit for the number of pages
|
|
20
|
+
*/
|
|
21
|
+
this.limit = 1;
|
|
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
|
+
/**
|
|
39
|
+
* Component working variable for last page
|
|
40
|
+
*/
|
|
41
|
+
this.lastPage = false;
|
|
42
|
+
/**
|
|
43
|
+
* Component working variable for prvious page
|
|
44
|
+
*/
|
|
45
|
+
this.previousPage = false;
|
|
46
|
+
/**
|
|
47
|
+
* In component working variable for the array of pages
|
|
48
|
+
*/
|
|
49
|
+
this.pagesArray = [];
|
|
50
|
+
/**
|
|
51
|
+
* In component working variable for last page
|
|
52
|
+
*/
|
|
53
|
+
this.endInt = 0;
|
|
6
54
|
this.userAgent = window.navigator.userAgent;
|
|
7
55
|
this.currentPage = 1;
|
|
56
|
+
this.limitStylingAppends = false;
|
|
8
57
|
/**
|
|
9
58
|
* Navigation logic
|
|
10
59
|
*/
|
|
@@ -73,25 +122,6 @@ export class HelperPagination {
|
|
|
73
122
|
this.stylingContainer.prepend(cssFile);
|
|
74
123
|
}, 1);
|
|
75
124
|
};
|
|
76
|
-
this.nextPage = '';
|
|
77
|
-
this.prevPage = '';
|
|
78
|
-
this.offset = 0;
|
|
79
|
-
this.limit = 1;
|
|
80
|
-
this.total = 1;
|
|
81
|
-
this.language = 'en';
|
|
82
|
-
this.clientStyling = '';
|
|
83
|
-
this.clientStylingUrlContent = '';
|
|
84
|
-
this.arrowsActive = undefined;
|
|
85
|
-
this.secondaryArrowsActive = undefined;
|
|
86
|
-
this.numberedNavActive = undefined;
|
|
87
|
-
this.offsetInt = undefined;
|
|
88
|
-
this.lastPage = false;
|
|
89
|
-
this.previousPage = false;
|
|
90
|
-
this.limitInt = undefined;
|
|
91
|
-
this.totalInt = undefined;
|
|
92
|
-
this.pagesArray = [];
|
|
93
|
-
this.endInt = 0;
|
|
94
|
-
this.limitStylingAppends = false;
|
|
95
125
|
}
|
|
96
126
|
componentWillRender() {
|
|
97
127
|
this.offsetInt = this.offset;
|
|
@@ -184,6 +214,8 @@ export class HelperPagination {
|
|
|
184
214
|
"tags": [],
|
|
185
215
|
"text": "Next page string value - determines if the next page is disabled or active"
|
|
186
216
|
},
|
|
217
|
+
"getter": false,
|
|
218
|
+
"setter": false,
|
|
187
219
|
"attribute": "next-page",
|
|
188
220
|
"reflect": true,
|
|
189
221
|
"defaultValue": "''"
|
|
@@ -202,6 +234,8 @@ export class HelperPagination {
|
|
|
202
234
|
"tags": [],
|
|
203
235
|
"text": "Previous page string value - determines if the previous page is disabled or active"
|
|
204
236
|
},
|
|
237
|
+
"getter": false,
|
|
238
|
+
"setter": false,
|
|
205
239
|
"attribute": "prev-page",
|
|
206
240
|
"reflect": true,
|
|
207
241
|
"defaultValue": "''"
|
|
@@ -220,6 +254,8 @@ export class HelperPagination {
|
|
|
220
254
|
"tags": [],
|
|
221
255
|
"text": "The received offset"
|
|
222
256
|
},
|
|
257
|
+
"getter": false,
|
|
258
|
+
"setter": false,
|
|
223
259
|
"attribute": "offset",
|
|
224
260
|
"reflect": true,
|
|
225
261
|
"defaultValue": "0"
|
|
@@ -238,6 +274,8 @@ export class HelperPagination {
|
|
|
238
274
|
"tags": [],
|
|
239
275
|
"text": "The received limit for the number of pages"
|
|
240
276
|
},
|
|
277
|
+
"getter": false,
|
|
278
|
+
"setter": false,
|
|
241
279
|
"attribute": "limit",
|
|
242
280
|
"reflect": true,
|
|
243
281
|
"defaultValue": "1"
|
|
@@ -256,6 +294,8 @@ export class HelperPagination {
|
|
|
256
294
|
"tags": [],
|
|
257
295
|
"text": "The received total number of pages"
|
|
258
296
|
},
|
|
297
|
+
"getter": false,
|
|
298
|
+
"setter": false,
|
|
259
299
|
"attribute": "total",
|
|
260
300
|
"reflect": true,
|
|
261
301
|
"defaultValue": "1"
|
|
@@ -274,6 +314,8 @@ export class HelperPagination {
|
|
|
274
314
|
"tags": [],
|
|
275
315
|
"text": "Language"
|
|
276
316
|
},
|
|
317
|
+
"getter": false,
|
|
318
|
+
"setter": false,
|
|
277
319
|
"attribute": "language",
|
|
278
320
|
"reflect": true,
|
|
279
321
|
"defaultValue": "'en'"
|
|
@@ -292,6 +334,8 @@ export class HelperPagination {
|
|
|
292
334
|
"tags": [],
|
|
293
335
|
"text": "Client custom styling via string"
|
|
294
336
|
},
|
|
337
|
+
"getter": false,
|
|
338
|
+
"setter": false,
|
|
295
339
|
"attribute": "client-styling",
|
|
296
340
|
"reflect": true,
|
|
297
341
|
"defaultValue": "''"
|
|
@@ -310,6 +354,8 @@ export class HelperPagination {
|
|
|
310
354
|
"tags": [],
|
|
311
355
|
"text": "Client custom styling via url content"
|
|
312
356
|
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
313
359
|
"attribute": "client-styling-url-content",
|
|
314
360
|
"reflect": true,
|
|
315
361
|
"defaultValue": "''"
|
|
@@ -328,6 +374,8 @@ export class HelperPagination {
|
|
|
328
374
|
"tags": [],
|
|
329
375
|
"text": "Customize pagination: Activate pagination arrows"
|
|
330
376
|
},
|
|
377
|
+
"getter": false,
|
|
378
|
+
"setter": false,
|
|
331
379
|
"attribute": "arrows-active",
|
|
332
380
|
"reflect": true
|
|
333
381
|
},
|
|
@@ -345,6 +393,8 @@ export class HelperPagination {
|
|
|
345
393
|
"tags": [],
|
|
346
394
|
"text": "Customize pagination: Activate pagination secondary arrows"
|
|
347
395
|
},
|
|
396
|
+
"getter": false,
|
|
397
|
+
"setter": false,
|
|
348
398
|
"attribute": "secondary-arrows-active",
|
|
349
399
|
"reflect": true
|
|
350
400
|
},
|
|
@@ -362,6 +412,8 @@ export class HelperPagination {
|
|
|
362
412
|
"tags": [],
|
|
363
413
|
"text": "Customize pagination: Activate pagination numbered navigation"
|
|
364
414
|
},
|
|
415
|
+
"getter": false,
|
|
416
|
+
"setter": false,
|
|
365
417
|
"attribute": "numbered-nav-active",
|
|
366
418
|
"reflect": true
|
|
367
419
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-f8e68e4c.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @name isMobile
|
|
@@ -64,8 +64,57 @@ const HelperPagination = class {
|
|
|
64
64
|
constructor(hostRef) {
|
|
65
65
|
registerInstance(this, hostRef);
|
|
66
66
|
this.hpPageChange = createEvent(this, "hpPageChange", 7);
|
|
67
|
+
/**
|
|
68
|
+
* Next page string value - determines if the next page is disabled or active
|
|
69
|
+
*/
|
|
70
|
+
this.nextPage = '';
|
|
71
|
+
/**
|
|
72
|
+
* Previous page string value - determines if the previous page is disabled or active
|
|
73
|
+
*/
|
|
74
|
+
this.prevPage = '';
|
|
75
|
+
/**
|
|
76
|
+
* The received offset
|
|
77
|
+
*/
|
|
78
|
+
this.offset = 0;
|
|
79
|
+
/**
|
|
80
|
+
* The received limit for the number of pages
|
|
81
|
+
*/
|
|
82
|
+
this.limit = 1;
|
|
83
|
+
/**
|
|
84
|
+
* The received total number of pages
|
|
85
|
+
*/
|
|
86
|
+
this.total = 1;
|
|
87
|
+
/**
|
|
88
|
+
* Language
|
|
89
|
+
*/
|
|
90
|
+
this.language = 'en';
|
|
91
|
+
/**
|
|
92
|
+
* Client custom styling via string
|
|
93
|
+
*/
|
|
94
|
+
this.clientStyling = '';
|
|
95
|
+
/**
|
|
96
|
+
* Client custom styling via url content
|
|
97
|
+
*/
|
|
98
|
+
this.clientStylingUrlContent = '';
|
|
99
|
+
/**
|
|
100
|
+
* Component working variable for last page
|
|
101
|
+
*/
|
|
102
|
+
this.lastPage = false;
|
|
103
|
+
/**
|
|
104
|
+
* Component working variable for prvious page
|
|
105
|
+
*/
|
|
106
|
+
this.previousPage = false;
|
|
107
|
+
/**
|
|
108
|
+
* In component working variable for the array of pages
|
|
109
|
+
*/
|
|
110
|
+
this.pagesArray = [];
|
|
111
|
+
/**
|
|
112
|
+
* In component working variable for last page
|
|
113
|
+
*/
|
|
114
|
+
this.endInt = 0;
|
|
67
115
|
this.userAgent = window.navigator.userAgent;
|
|
68
116
|
this.currentPage = 1;
|
|
117
|
+
this.limitStylingAppends = false;
|
|
69
118
|
/**
|
|
70
119
|
* Navigation logic
|
|
71
120
|
*/
|
|
@@ -134,25 +183,6 @@ const HelperPagination = class {
|
|
|
134
183
|
this.stylingContainer.prepend(cssFile);
|
|
135
184
|
}, 1);
|
|
136
185
|
};
|
|
137
|
-
this.nextPage = '';
|
|
138
|
-
this.prevPage = '';
|
|
139
|
-
this.offset = 0;
|
|
140
|
-
this.limit = 1;
|
|
141
|
-
this.total = 1;
|
|
142
|
-
this.language = 'en';
|
|
143
|
-
this.clientStyling = '';
|
|
144
|
-
this.clientStylingUrlContent = '';
|
|
145
|
-
this.arrowsActive = undefined;
|
|
146
|
-
this.secondaryArrowsActive = undefined;
|
|
147
|
-
this.numberedNavActive = undefined;
|
|
148
|
-
this.offsetInt = undefined;
|
|
149
|
-
this.lastPage = false;
|
|
150
|
-
this.previousPage = false;
|
|
151
|
-
this.limitInt = undefined;
|
|
152
|
-
this.totalInt = undefined;
|
|
153
|
-
this.pagesArray = [];
|
|
154
|
-
this.endInt = 0;
|
|
155
|
-
this.limitStylingAppends = false;
|
|
156
186
|
}
|
|
157
187
|
componentWillRender() {
|
|
158
188
|
this.offsetInt = this.offset;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f8e68e4c.js';
|
|
2
|
+
export { s as setNonce } from './index-f8e68e4c.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|