@everymatrix/bonus-pagination-nav 1.43.4 → 1.45.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.
Files changed (51) hide show
  1. package/dist/bonus-pagination-nav/bonus-pagination-nav.esm.js +1 -1
  2. package/dist/bonus-pagination-nav/p-57809f35.js +2 -0
  3. package/dist/bonus-pagination-nav/p-e1255160.js +1 -0
  4. package/dist/bonus-pagination-nav/p-f71ef42b.entry.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/bonus-pagination-nav.cjs.entry.js +140 -165
  7. package/dist/cjs/bonus-pagination-nav.cjs.js +16 -10
  8. package/dist/cjs/index-5f4d615c.js +1233 -0
  9. package/dist/cjs/loader.cjs.js +6 -12
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/bonus-pagination-nav/bonus-pagination-nav.js +325 -350
  12. package/dist/collection/components/bonus-pagination-nav/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +55 -55
  14. package/dist/collection/utils/utils.js +3 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/bonus-pagination-nav.entry.js +140 -165
  17. package/dist/esm/bonus-pagination-nav.js +13 -10
  18. package/dist/esm/index-332d0149.js +1206 -0
  19. package/dist/esm/loader.js +6 -12
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -21
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/bonus-pagination-nav/bonus-pagination-nav.d.ts +52 -52
  25. package/dist/types/components/bonus-pagination-nav/index.d.ts +1 -0
  26. package/dist/types/components.d.ts +16 -1
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/dist/types/utils/locale.utils.d.ts +7 -7
  29. package/dist/types/utils/utils.d.ts +1 -0
  30. package/loader/cdn.js +1 -3
  31. package/loader/index.cjs.js +1 -3
  32. package/loader/index.d.ts +13 -1
  33. package/loader/index.es2017.js +1 -3
  34. package/loader/index.js +1 -3
  35. package/loader/package.json +1 -0
  36. package/package.json +9 -2
  37. package/dist/bonus-pagination-nav/p-06373b64.js +0 -1
  38. package/dist/bonus-pagination-nav/p-fc173a41.entry.js +0 -1
  39. package/dist/cjs/index-fb15607a.js +0 -1189
  40. package/dist/components/bonus-pagination-nav.d.ts +0 -11
  41. package/dist/components/bonus-pagination-nav.js +0 -215
  42. package/dist/components/index.d.ts +0 -26
  43. package/dist/components/index.js +0 -1
  44. package/dist/esm/index-7299a1fa.js +0 -1163
  45. package/dist/esm/polyfills/core-js.js +0 -11
  46. package/dist/esm/polyfills/css-shim.js +0 -1
  47. package/dist/esm/polyfills/dom.js +0 -79
  48. package/dist/esm/polyfills/es5-html-element.js +0 -1
  49. package/dist/esm/polyfills/index.js +0 -34
  50. package/dist/esm/polyfills/system.js +0 -6
  51. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/bonus-pagination-nav/.stencil/packages/bonus-pagination-nav/stencil.config.d.ts +0 -2
@@ -1,359 +1,334 @@
1
- import { Component, Event, h, Listen, Prop, State } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  import { translate, TRANSLATIONS } from "../../utils/locale.utils";
3
3
  export class BonusPaginationNav {
4
- constructor() {
5
- /**
6
- * The received length of dataset
7
- */
8
- this.total = 1;
9
- /**
10
- * The received limit for the number of pages
11
- */
12
- this.limit = 10;
13
- /**
14
- * The offset of dataset
15
- */
16
- this.offset = 0;
17
- /**
18
- * The table id, use to identify which table listen the page change message
19
- * when there is more than 1 table on same page
20
- */
21
- this.tableId = 'default';
22
- /**
23
- * Language
24
- */
25
- this.language = 'en';
26
- /**
27
- * Translation via url
28
- */
29
- this.translationUrl = '';
30
- /**
31
- * Customize pagination: Activate pagination arrows
32
- */
33
- this.arrowsActive = true;
34
- /**
35
- * Customize pagination: Activate pagination secondary arrows
36
- */
37
- this.secondaryArrowsActive = true;
38
- /**
39
- * Customize pagination: Activate pagination numbered navigation
40
- */
41
- this.displayPageNumbers = true;
42
- this.endPageIndex = 0;
43
- this.currentPage = 1;
44
- }
45
- pageLimitChangedHandler(event) {
46
- this.limit = event.detail.limit ? event.detail.limit : this.limit;
47
- //reset offset = 0, this.currentPage = 1 when page limit changed
48
- this.currentPage = 1;
49
- this.offset = 0;
50
- this.updatePageStatus();
51
- if (event.type == 'pageLimitChanged') {
52
- this.reloadPageEmitter.emit({ offset: 0, limit: this.limit, tableId: this.tableId });
4
+ constructor() {
5
+ this.total = 1;
6
+ this.limit = 10;
7
+ this.offset = 0;
8
+ this.tableId = 'default';
9
+ this.language = 'en';
10
+ this.translationUrl = '';
11
+ this.arrowsActive = true;
12
+ this.secondaryArrowsActive = true;
13
+ this.displayPageNumbers = true;
14
+ this.displayRangeOfTotal = undefined;
15
+ this.endPageIndex = 0;
16
+ this.pagesArray = undefined;
17
+ this.currentPage = 1;
53
18
  }
54
- }
55
- goTo(step) {
56
- if (step == '...' || step == 0 || step > this.endPageIndex + 1) {
57
- return;
19
+ pageLimitChangedHandler(event) {
20
+ this.limit = event.detail.limit ? event.detail.limit : this.limit;
21
+ //reset offset = 0, this.currentPage = 1 when page limit changed
22
+ this.currentPage = 1;
23
+ this.offset = 0;
24
+ this.updatePageStatus();
25
+ if (event.type == 'pageLimitChanged') {
26
+ this.reloadPageEmitter.emit({ offset: 0, limit: this.limit, tableId: this.tableId });
27
+ }
28
+ }
29
+ goTo(step) {
30
+ if (step == '...' || step == 0 || parseInt(step.toString(), 10) > (this.endPageIndex + 1)) {
31
+ return;
32
+ }
33
+ this.currentPage = step;
34
+ let offset = (this.currentPage - 1) * this.limit;
35
+ this.reloadPageEmitter.emit({ offset, limit: this.limit, tableId: this.tableId });
58
36
  }
59
- this.currentPage = step;
60
- let offset = (this.currentPage - 1) * this.limit;
61
- this.reloadPageEmitter.emit({ offset, limit: this.limit, tableId: this.tableId });
62
- }
63
- renderPageList() {
64
- return h("ul", { class: 'PaginationArea' }, this.pagesArray.map((page) => {
65
- return (h("li", { class: `PageItem ${this.currentPage == page ? 'Active' : ''}`, onClick: () => {
66
- this.goTo(page);
67
- } }, page));
68
- }));
69
- }
70
- renderStylingWrapper() {
71
- return h("general-styling-wrapper", { targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl });
72
- }
73
- updatePageStatus() {
74
- this.endPageIndex = (Math.ceil(this.total / this.limit) - 1);
75
- this.endPageIndex = this.endPageIndex < 0 ? this.endPageIndex = 0 : this.endPageIndex;
76
- this.pagesArray = [];
77
- if (this.endPageIndex < 5) {
78
- this.pagesArray = Array.from({ length: this.endPageIndex + 1 }, (_, i) => i + 1);
37
+ renderPageList() {
38
+ return h("ul", { class: 'PaginationArea' }, this.pagesArray.map((page) => {
39
+ return (h("li", { class: `PageItem ${this.currentPage == page ? 'Active' : ''}`, onClick: () => {
40
+ this.goTo(page);
41
+ } }, page));
42
+ }));
79
43
  }
80
- else {
81
- /**
82
- * Construct numbered navigation area based on current page position
83
- */
84
- if (this.currentPage == 1 || this.currentPage == 2) {
85
- this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);
86
- this.pagesArray.push('...');
87
- }
88
- else if (this.currentPage >= 3 && ((this.endPageIndex - this.currentPage) >= 2)) {
89
- this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);
90
- this.pagesArray.push('...');
91
- this.pagesArray.unshift('...');
92
- }
93
- else if ((this.endPageIndex - this.currentPage) < 3) {
94
- this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endPageIndex - 2 + i);
95
- this.pagesArray.unshift('...');
96
- }
44
+ renderStylingWrapper() {
45
+ return h("general-styling-wrapper", { targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl });
97
46
  }
98
- }
99
- componentWillRender() {
100
- this.currentPage = Math.floor(this.offset / this.limit) + 1;
101
- this.updatePageStatus();
102
- }
103
- render() {
104
- const startOffset = (this.currentPage - 1) * this.limit + 1;
105
- const endOffset = this.currentPage * this.limit > this.total ? this.total : this.currentPage * this.limit;
106
- return h("div", { class: 'PageNavigationWrapper' },
107
- this.displayRangeOfTotal && this.total > 0 && h("span", { class: 'PageOfMessage' }, translate('pageOfTotal', this.language, {
108
- values: {
109
- start: startOffset,
110
- end: endOffset,
111
- total: this.total
47
+ updatePageStatus() {
48
+ this.endPageIndex = (Math.ceil(this.total / this.limit) - 1);
49
+ this.endPageIndex = this.endPageIndex < 0 ? this.endPageIndex = 0 : this.endPageIndex;
50
+ this.pagesArray = [];
51
+ if (this.endPageIndex < 5) {
52
+ this.pagesArray = Array.from({ length: this.endPageIndex + 1 }, (_, i) => i + 1);
112
53
  }
113
- })),
114
- h("div", { class: 'PageNavigation' },
115
- this.arrowsActive &&
116
- h("div", { class: `PageArrow FirstPage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
117
- this.goTo(1);
118
- } }, translate('firstPage', this.language)),
119
- this.secondaryArrowsActive &&
120
- h("span", { class: `PageArrow PrePage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
121
- this.goTo(this.currentPage - 1);
122
- } }, translate('prePage', this.language)),
123
- this.displayPageNumbers && this.renderPageList(),
124
- this.secondaryArrowsActive &&
125
- h("span", { class: `PageArrow NextPage ${this.currentPage == (this.endPageIndex + 1) ? 'Disabled' : ''}`, onClick: () => {
126
- this.goTo(this.currentPage + 1);
127
- } }, translate('nextPage', this.language)),
128
- this.arrowsActive &&
129
- h("div", { class: `PageArrow LastPage ${this.currentPage == this.endPageIndex + 1 ? 'Disabled' : ''}`, onClick: () => {
130
- this.goTo(this.endPageIndex + 1);
131
- } },
132
- " ",
133
- translate('lastPage', this.language),
134
- " "),
135
- this.renderStylingWrapper()));
136
- }
137
- static get is() { return "bonus-pagination-nav"; }
138
- static get originalStyleUrls() { return {
139
- "$": ["bonus-pagination-nav.scss"]
140
- }; }
141
- static get styleUrls() { return {
142
- "$": ["bonus-pagination-nav.css"]
143
- }; }
144
- static get properties() { return {
145
- "total": {
146
- "type": "number",
147
- "mutable": true,
148
- "complexType": {
149
- "original": "number",
150
- "resolved": "number",
151
- "references": {}
152
- },
153
- "required": false,
154
- "optional": false,
155
- "docs": {
156
- "tags": [],
157
- "text": "The received length of dataset"
158
- },
159
- "attribute": "total",
160
- "reflect": true,
161
- "defaultValue": "1"
162
- },
163
- "limit": {
164
- "type": "number",
165
- "mutable": true,
166
- "complexType": {
167
- "original": "number",
168
- "resolved": "number",
169
- "references": {}
170
- },
171
- "required": false,
172
- "optional": false,
173
- "docs": {
174
- "tags": [],
175
- "text": "The received limit for the number of pages"
176
- },
177
- "attribute": "limit",
178
- "reflect": true,
179
- "defaultValue": "10"
180
- },
181
- "offset": {
182
- "type": "number",
183
- "mutable": true,
184
- "complexType": {
185
- "original": "number",
186
- "resolved": "number",
187
- "references": {}
188
- },
189
- "required": false,
190
- "optional": false,
191
- "docs": {
192
- "tags": [],
193
- "text": "The offset of dataset"
194
- },
195
- "attribute": "offset",
196
- "reflect": true,
197
- "defaultValue": "0"
198
- },
199
- "tableId": {
200
- "type": "string",
201
- "mutable": true,
202
- "complexType": {
203
- "original": "string",
204
- "resolved": "string",
205
- "references": {}
206
- },
207
- "required": false,
208
- "optional": false,
209
- "docs": {
210
- "tags": [],
211
- "text": "The table id, use to identify which table listen the page change message\nwhen there is more than 1 table on same page"
212
- },
213
- "attribute": "table-id",
214
- "reflect": true,
215
- "defaultValue": "'default'"
216
- },
217
- "language": {
218
- "type": "string",
219
- "mutable": true,
220
- "complexType": {
221
- "original": "string",
222
- "resolved": "string",
223
- "references": {}
224
- },
225
- "required": false,
226
- "optional": false,
227
- "docs": {
228
- "tags": [],
229
- "text": "Language"
230
- },
231
- "attribute": "language",
232
- "reflect": true,
233
- "defaultValue": "'en'"
234
- },
235
- "translationUrl": {
236
- "type": "string",
237
- "mutable": false,
238
- "complexType": {
239
- "original": "string",
240
- "resolved": "string",
241
- "references": {}
242
- },
243
- "required": false,
244
- "optional": false,
245
- "docs": {
246
- "tags": [],
247
- "text": "Translation via url"
248
- },
249
- "attribute": "translation-url",
250
- "reflect": true,
251
- "defaultValue": "''"
252
- },
253
- "arrowsActive": {
254
- "type": "boolean",
255
- "mutable": true,
256
- "complexType": {
257
- "original": "boolean",
258
- "resolved": "boolean",
259
- "references": {}
260
- },
261
- "required": false,
262
- "optional": false,
263
- "docs": {
264
- "tags": [],
265
- "text": "Customize pagination: Activate pagination arrows"
266
- },
267
- "attribute": "arrows-active",
268
- "reflect": true,
269
- "defaultValue": "true"
270
- },
271
- "secondaryArrowsActive": {
272
- "type": "boolean",
273
- "mutable": true,
274
- "complexType": {
275
- "original": "boolean",
276
- "resolved": "boolean",
277
- "references": {}
278
- },
279
- "required": false,
280
- "optional": false,
281
- "docs": {
282
- "tags": [],
283
- "text": "Customize pagination: Activate pagination secondary arrows"
284
- },
285
- "attribute": "secondary-arrows-active",
286
- "reflect": true,
287
- "defaultValue": "true"
288
- },
289
- "displayPageNumbers": {
290
- "type": "boolean",
291
- "mutable": true,
292
- "complexType": {
293
- "original": "boolean",
294
- "resolved": "boolean",
295
- "references": {}
296
- },
297
- "required": false,
298
- "optional": false,
299
- "docs": {
300
- "tags": [],
301
- "text": "Customize pagination: Activate pagination numbered navigation"
302
- },
303
- "attribute": "display-page-numbers",
304
- "reflect": true,
305
- "defaultValue": "true"
306
- },
307
- "displayRangeOfTotal": {
308
- "type": "boolean",
309
- "mutable": true,
310
- "complexType": {
311
- "original": "boolean",
312
- "resolved": "boolean",
313
- "references": {}
314
- },
315
- "required": false,
316
- "optional": false,
317
- "docs": {
318
- "tags": [],
319
- "text": "If show the page of message, eg: `1-20 of 100`"
320
- },
321
- "attribute": "display-range-of-total",
322
- "reflect": true
54
+ else {
55
+ /**
56
+ * Construct numbered navigation area based on current page position
57
+ */
58
+ if (this.currentPage == 1 || this.currentPage == 2) {
59
+ this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);
60
+ this.pagesArray.push('...');
61
+ }
62
+ else if (this.currentPage >= 3 && ((this.endPageIndex - this.currentPage) >= 2)) {
63
+ this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);
64
+ this.pagesArray.push('...');
65
+ this.pagesArray.unshift('...');
66
+ }
67
+ else if ((this.endPageIndex - this.currentPage) < 3) {
68
+ this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endPageIndex - 2 + i);
69
+ this.pagesArray.unshift('...');
70
+ }
71
+ }
72
+ }
73
+ componentWillRender() {
74
+ this.currentPage = Math.floor(this.offset / this.limit) + 1;
75
+ this.updatePageStatus();
76
+ }
77
+ render() {
78
+ const startOffset = (this.currentPage - 1) * this.limit + 1;
79
+ const endOffset = this.currentPage * this.limit > this.total ? this.total : this.currentPage * this.limit;
80
+ return h("div", { key: 'a6817c12f1e1e9960f8e91cfd5c5e2fa1ea72f7f', class: 'PageNavigationWrapper' }, this.displayRangeOfTotal && this.total > 0 && h("span", { key: '8f7a16c5835147e2a83808f882a66a2463e3998e', class: 'PageOfMessage' }, translate('pageOfTotal', this.language, {
81
+ values: {
82
+ start: startOffset,
83
+ end: endOffset,
84
+ total: this.total
85
+ }
86
+ })), h("div", { key: 'ddc20a86777c2fde667ad8b75ab86f3bc72ccfdb', class: 'PageNavigation' }, this.arrowsActive &&
87
+ h("div", { key: 'ce2a45b8c0d6e32cfa3f1c5cc8b3c9ac58acc409', class: `PageArrow FirstPage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
88
+ this.goTo(1);
89
+ } }, translate('firstPage', this.language)), this.secondaryArrowsActive &&
90
+ h("span", { key: '82dce028e4283dcac511b3b62823e87f2085f4b5', class: `PageArrow PrePage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
91
+ this.goTo(this.currentPage - 1);
92
+ } }, translate('prePage', this.language)), this.displayPageNumbers && this.renderPageList(), this.secondaryArrowsActive &&
93
+ h("span", { key: 'a6ed748ce3e2555ac3d9d4bae174ad5bad0fabec', class: `PageArrow NextPage ${this.currentPage == (this.endPageIndex + 1) ? 'Disabled' : ''}`, onClick: () => {
94
+ this.goTo(this.currentPage + 1);
95
+ } }, translate('nextPage', this.language)), this.arrowsActive &&
96
+ h("div", { key: '60a81a86f11e2bb07ee93b61d6f367a11b0e2b6c', class: `PageArrow LastPage ${this.currentPage == this.endPageIndex + 1 ? 'Disabled' : ''}`, onClick: () => {
97
+ this.goTo(this.endPageIndex + 1);
98
+ } }, " ", translate('lastPage', this.language), " "), this.renderStylingWrapper()));
99
+ }
100
+ static get is() { return "bonus-pagination-nav"; }
101
+ static get originalStyleUrls() {
102
+ return {
103
+ "$": ["bonus-pagination-nav.scss"]
104
+ };
105
+ }
106
+ static get styleUrls() {
107
+ return {
108
+ "$": ["bonus-pagination-nav.css"]
109
+ };
110
+ }
111
+ static get properties() {
112
+ return {
113
+ "total": {
114
+ "type": "number",
115
+ "mutable": true,
116
+ "complexType": {
117
+ "original": "number",
118
+ "resolved": "number",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "The received length of dataset"
126
+ },
127
+ "attribute": "total",
128
+ "reflect": true,
129
+ "defaultValue": "1"
130
+ },
131
+ "limit": {
132
+ "type": "number",
133
+ "mutable": true,
134
+ "complexType": {
135
+ "original": "number",
136
+ "resolved": "number",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "The received limit for the number of pages"
144
+ },
145
+ "attribute": "limit",
146
+ "reflect": true,
147
+ "defaultValue": "10"
148
+ },
149
+ "offset": {
150
+ "type": "number",
151
+ "mutable": true,
152
+ "complexType": {
153
+ "original": "number",
154
+ "resolved": "number",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": "The offset of dataset"
162
+ },
163
+ "attribute": "offset",
164
+ "reflect": true,
165
+ "defaultValue": "0"
166
+ },
167
+ "tableId": {
168
+ "type": "string",
169
+ "mutable": true,
170
+ "complexType": {
171
+ "original": "string",
172
+ "resolved": "string",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": "The table id, use to identify which table listen the page change message\nwhen there is more than 1 table on same page"
180
+ },
181
+ "attribute": "table-id",
182
+ "reflect": true,
183
+ "defaultValue": "'default'"
184
+ },
185
+ "language": {
186
+ "type": "string",
187
+ "mutable": true,
188
+ "complexType": {
189
+ "original": "string",
190
+ "resolved": "string",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Language"
198
+ },
199
+ "attribute": "language",
200
+ "reflect": true,
201
+ "defaultValue": "'en'"
202
+ },
203
+ "translationUrl": {
204
+ "type": "string",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "string",
208
+ "resolved": "string",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Translation via url"
216
+ },
217
+ "attribute": "translation-url",
218
+ "reflect": true,
219
+ "defaultValue": "''"
220
+ },
221
+ "arrowsActive": {
222
+ "type": "boolean",
223
+ "mutable": true,
224
+ "complexType": {
225
+ "original": "boolean",
226
+ "resolved": "boolean",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": "Customize pagination: Activate pagination arrows"
234
+ },
235
+ "attribute": "arrows-active",
236
+ "reflect": true,
237
+ "defaultValue": "true"
238
+ },
239
+ "secondaryArrowsActive": {
240
+ "type": "boolean",
241
+ "mutable": true,
242
+ "complexType": {
243
+ "original": "boolean",
244
+ "resolved": "boolean",
245
+ "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": "Customize pagination: Activate pagination secondary arrows"
252
+ },
253
+ "attribute": "secondary-arrows-active",
254
+ "reflect": true,
255
+ "defaultValue": "true"
256
+ },
257
+ "displayPageNumbers": {
258
+ "type": "boolean",
259
+ "mutable": true,
260
+ "complexType": {
261
+ "original": "boolean",
262
+ "resolved": "boolean",
263
+ "references": {}
264
+ },
265
+ "required": false,
266
+ "optional": false,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": "Customize pagination: Activate pagination numbered navigation"
270
+ },
271
+ "attribute": "display-page-numbers",
272
+ "reflect": true,
273
+ "defaultValue": "true"
274
+ },
275
+ "displayRangeOfTotal": {
276
+ "type": "boolean",
277
+ "mutable": true,
278
+ "complexType": {
279
+ "original": "boolean",
280
+ "resolved": "boolean",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": false,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": "If show the page of message, eg: `1-20 of 100`"
288
+ },
289
+ "attribute": "display-range-of-total",
290
+ "reflect": true
291
+ }
292
+ };
293
+ }
294
+ static get states() {
295
+ return {
296
+ "endPageIndex": {},
297
+ "pagesArray": {},
298
+ "currentPage": {}
299
+ };
300
+ }
301
+ static get events() {
302
+ return [{
303
+ "method": "reloadPageEmitter",
304
+ "name": "reloadPageByType",
305
+ "bubbles": true,
306
+ "cancelable": true,
307
+ "composed": true,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": ""
311
+ },
312
+ "complexType": {
313
+ "original": "any",
314
+ "resolved": "any",
315
+ "references": {}
316
+ }
317
+ }];
318
+ }
319
+ static get listeners() {
320
+ return [{
321
+ "name": "paginationReset",
322
+ "method": "pageLimitChangedHandler",
323
+ "target": "window",
324
+ "capture": false,
325
+ "passive": false
326
+ }, {
327
+ "name": "pageLimitChanged",
328
+ "method": "pageLimitChangedHandler",
329
+ "target": "window",
330
+ "capture": false,
331
+ "passive": false
332
+ }];
323
333
  }
324
- }; }
325
- static get states() { return {
326
- "endPageIndex": {},
327
- "pagesArray": {},
328
- "currentPage": {}
329
- }; }
330
- static get events() { return [{
331
- "method": "reloadPageEmitter",
332
- "name": "reloadPageByType",
333
- "bubbles": true,
334
- "cancelable": true,
335
- "composed": true,
336
- "docs": {
337
- "tags": [],
338
- "text": ""
339
- },
340
- "complexType": {
341
- "original": "any",
342
- "resolved": "any",
343
- "references": {}
344
- }
345
- }]; }
346
- static get listeners() { return [{
347
- "name": "paginationReset",
348
- "method": "pageLimitChangedHandler",
349
- "target": "window",
350
- "capture": false,
351
- "passive": false
352
- }, {
353
- "name": "pageLimitChanged",
354
- "method": "pageLimitChangedHandler",
355
- "target": "window",
356
- "capture": false,
357
- "passive": false
358
- }]; }
359
334
  }