@everymatrix/bonus-pagination-nav 1.44.0 → 1.45.2

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
@@ -0,0 +1 @@
1
+ export { BonusPaginationNav } from './bonus-pagination-nav';
@@ -1,65 +1,65 @@
1
1
  const DEFAULT_LANGUAGE = 'en';
2
2
  const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
3
3
  export const TRANSLATIONS = {
4
- "en": {
5
- "firstPage": '|<',
6
- "lastPage": '>|',
7
- "prePage": '<',
8
- "nextPage": '>',
9
- "pageOfTotal": '{start}-{end} of {total}',
10
- },
11
- "hu": {
12
- "firstPage": 'First',
13
- "lastPage": 'Last',
14
- "prePage": '<',
15
- "nextPage": '>',
16
- "pageOfTotal": '{start}-{end} of {total}',
17
- },
18
- "hr": {
19
- "firstPage": 'First',
20
- "lastPage": 'Last',
21
- "prePage": '<',
22
- "nextPage": '>',
23
- "pageOfTotal": '{start}-{end} of {total}',
24
- },
25
- "pt-br": {
26
- "firstPage": 'First',
27
- "lastPage": 'Last',
28
- "prePage": '<',
29
- "nextPage": '>',
30
- "pageOfTotal": '{start}-{end} of {total}',
31
- },
32
- "es-mx": {
33
- "firstPage": 'First',
34
- "lastPage": 'Last',
35
- "prePage": '<',
36
- "nextPage": '>',
37
- "pageOfTotal": '{start}-{end} of {total}',
38
- }
4
+ "en": {
5
+ "firstPage": '|<',
6
+ "lastPage": '>|',
7
+ "prePage": '<',
8
+ "nextPage": '>',
9
+ "pageOfTotal": '{start}-{end} of {total}',
10
+ },
11
+ "hu": {
12
+ "firstPage": 'First',
13
+ "lastPage": 'Last',
14
+ "prePage": '<',
15
+ "nextPage": '>',
16
+ "pageOfTotal": '{start}-{end} of {total}',
17
+ },
18
+ "hr": {
19
+ "firstPage": 'First',
20
+ "lastPage": 'Last',
21
+ "prePage": '<',
22
+ "nextPage": '>',
23
+ "pageOfTotal": '{start}-{end} of {total}',
24
+ },
25
+ "pt-br": {
26
+ "firstPage": 'First',
27
+ "lastPage": 'Last',
28
+ "prePage": '<',
29
+ "nextPage": '>',
30
+ "pageOfTotal": '{start}-{end} of {total}',
31
+ },
32
+ "es-mx": {
33
+ "firstPage": 'First',
34
+ "lastPage": 'Last',
35
+ "prePage": '<',
36
+ "nextPage": '>',
37
+ "pageOfTotal": '{start}-{end} of {total}',
38
+ }
39
39
  };
40
40
  export const translate = (key, customLang, values) => {
41
- const lang = customLang;
42
- let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
43
- if (values !== undefined) {
44
- for (const [key, value] of Object.entries(values.values)) {
45
- const regex = new RegExp(`{${key}}`, 'g');
46
- translation = translation.replace(regex, value);
41
+ const lang = customLang;
42
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
43
+ if (values !== undefined) {
44
+ for (const [key, value] of Object.entries(values.values)) {
45
+ const regex = new RegExp(`{${key}}`, 'g');
46
+ translation = translation.replace(regex, value);
47
+ }
47
48
  }
48
- }
49
- return translation;
49
+ return translation;
50
50
  };
51
51
  export const getTranslations = (url) => {
52
- // fetch url, get the data, replace the TRANSLATIONS content
53
- return new Promise((resolve) => {
54
- fetch(url)
55
- .then((res) => res.json())
56
- .then((data) => {
57
- Object.keys(data).forEach((item) => {
58
- for (let key in data[item]) {
59
- TRANSLATIONS[item][key] = data[item][key];
60
- }
61
- });
62
- resolve(true);
52
+ // fetch url, get the data, replace the TRANSLATIONS content
53
+ return new Promise((resolve) => {
54
+ fetch(url)
55
+ .then((res) => res.json())
56
+ .then((data) => {
57
+ Object.keys(data).forEach((item) => {
58
+ for (let key in data[item]) {
59
+ TRANSLATIONS[item][key] = data[item][key];
60
+ }
61
+ });
62
+ resolve(true);
63
+ });
63
64
  });
64
- });
65
65
  };
@@ -0,0 +1,3 @@
1
+ export function format(first, middle, last) {
2
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -1,184 +1,159 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-7299a1fa.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-332d0149.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
5
5
  const TRANSLATIONS = {
6
- "en": {
7
- "firstPage": '|<',
8
- "lastPage": '>|',
9
- "prePage": '<',
10
- "nextPage": '>',
11
- "pageOfTotal": '{start}-{end} of {total}',
12
- },
13
- "hu": {
14
- "firstPage": 'First',
15
- "lastPage": 'Last',
16
- "prePage": '<',
17
- "nextPage": '>',
18
- "pageOfTotal": '{start}-{end} of {total}',
19
- },
20
- "hr": {
21
- "firstPage": 'First',
22
- "lastPage": 'Last',
23
- "prePage": '<',
24
- "nextPage": '>',
25
- "pageOfTotal": '{start}-{end} of {total}',
26
- },
27
- "pt-br": {
28
- "firstPage": 'First',
29
- "lastPage": 'Last',
30
- "prePage": '<',
31
- "nextPage": '>',
32
- "pageOfTotal": '{start}-{end} of {total}',
33
- },
34
- "es-mx": {
35
- "firstPage": 'First',
36
- "lastPage": 'Last',
37
- "prePage": '<',
38
- "nextPage": '>',
39
- "pageOfTotal": '{start}-{end} of {total}',
40
- }
6
+ "en": {
7
+ "firstPage": '|<',
8
+ "lastPage": '>|',
9
+ "prePage": '<',
10
+ "nextPage": '>',
11
+ "pageOfTotal": '{start}-{end} of {total}',
12
+ },
13
+ "hu": {
14
+ "firstPage": 'First',
15
+ "lastPage": 'Last',
16
+ "prePage": '<',
17
+ "nextPage": '>',
18
+ "pageOfTotal": '{start}-{end} of {total}',
19
+ },
20
+ "hr": {
21
+ "firstPage": 'First',
22
+ "lastPage": 'Last',
23
+ "prePage": '<',
24
+ "nextPage": '>',
25
+ "pageOfTotal": '{start}-{end} of {total}',
26
+ },
27
+ "pt-br": {
28
+ "firstPage": 'First',
29
+ "lastPage": 'Last',
30
+ "prePage": '<',
31
+ "nextPage": '>',
32
+ "pageOfTotal": '{start}-{end} of {total}',
33
+ },
34
+ "es-mx": {
35
+ "firstPage": 'First',
36
+ "lastPage": 'Last',
37
+ "prePage": '<',
38
+ "nextPage": '>',
39
+ "pageOfTotal": '{start}-{end} of {total}',
40
+ }
41
41
  };
42
42
  const translate = (key, customLang, values) => {
43
- const lang = customLang;
44
- let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
45
- if (values !== undefined) {
46
- for (const [key, value] of Object.entries(values.values)) {
47
- const regex = new RegExp(`{${key}}`, 'g');
48
- translation = translation.replace(regex, value);
43
+ const lang = customLang;
44
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
45
+ if (values !== undefined) {
46
+ for (const [key, value] of Object.entries(values.values)) {
47
+ const regex = new RegExp(`{${key}}`, 'g');
48
+ translation = translation.replace(regex, value);
49
+ }
49
50
  }
50
- }
51
- return translation;
51
+ return translation;
52
52
  };
53
53
 
54
54
  const bonusPaginationNavCss = ":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emfe-w-color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emfe-w-color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emfe-w-color-primary, #f5f1f1);background-color:var(--emfe-w-color-secondary, #8c8989);border-radius:0.3rem}";
55
+ const BonusPaginationNavStyle0 = bonusPaginationNavCss;
55
56
 
56
57
  const BonusPaginationNav = class {
57
- constructor(hostRef) {
58
- registerInstance(this, hostRef);
59
- this.reloadPageEmitter = createEvent(this, "reloadPageByType", 7);
60
- /**
61
- * The received length of dataset
62
- */
63
- this.total = 1;
64
- /**
65
- * The received limit for the number of pages
66
- */
67
- this.limit = 10;
68
- /**
69
- * The offset of dataset
70
- */
71
- this.offset = 0;
72
- /**
73
- * The table id, use to identify which table listen the page change message
74
- * when there is more than 1 table on same page
75
- */
76
- this.tableId = 'default';
77
- /**
78
- * Language
79
- */
80
- this.language = 'en';
81
- /**
82
- * Translation via url
83
- */
84
- this.translationUrl = '';
85
- /**
86
- * Customize pagination: Activate pagination arrows
87
- */
88
- this.arrowsActive = true;
89
- /**
90
- * Customize pagination: Activate pagination secondary arrows
91
- */
92
- this.secondaryArrowsActive = true;
93
- /**
94
- * Customize pagination: Activate pagination numbered navigation
95
- */
96
- this.displayPageNumbers = true;
97
- this.endPageIndex = 0;
98
- this.currentPage = 1;
99
- }
100
- pageLimitChangedHandler(event) {
101
- this.limit = event.detail.limit ? event.detail.limit : this.limit;
102
- //reset offset = 0, this.currentPage = 1 when page limit changed
103
- this.currentPage = 1;
104
- this.offset = 0;
105
- this.updatePageStatus();
106
- if (event.type == 'pageLimitChanged') {
107
- this.reloadPageEmitter.emit({ offset: 0, limit: this.limit, tableId: this.tableId });
58
+ constructor(hostRef) {
59
+ registerInstance(this, hostRef);
60
+ this.reloadPageEmitter = createEvent(this, "reloadPageByType", 7);
61
+ this.total = 1;
62
+ this.limit = 10;
63
+ this.offset = 0;
64
+ this.tableId = 'default';
65
+ this.language = 'en';
66
+ this.translationUrl = '';
67
+ this.arrowsActive = true;
68
+ this.secondaryArrowsActive = true;
69
+ this.displayPageNumbers = true;
70
+ this.displayRangeOfTotal = undefined;
71
+ this.endPageIndex = 0;
72
+ this.pagesArray = undefined;
73
+ this.currentPage = 1;
74
+ }
75
+ pageLimitChangedHandler(event) {
76
+ this.limit = event.detail.limit ? event.detail.limit : this.limit;
77
+ //reset offset = 0, this.currentPage = 1 when page limit changed
78
+ this.currentPage = 1;
79
+ this.offset = 0;
80
+ this.updatePageStatus();
81
+ if (event.type == 'pageLimitChanged') {
82
+ this.reloadPageEmitter.emit({ offset: 0, limit: this.limit, tableId: this.tableId });
83
+ }
84
+ }
85
+ goTo(step) {
86
+ if (step == '...' || step == 0 || parseInt(step.toString(), 10) > (this.endPageIndex + 1)) {
87
+ return;
88
+ }
89
+ this.currentPage = step;
90
+ let offset = (this.currentPage - 1) * this.limit;
91
+ this.reloadPageEmitter.emit({ offset, limit: this.limit, tableId: this.tableId });
92
+ }
93
+ renderPageList() {
94
+ return h("ul", { class: 'PaginationArea' }, this.pagesArray.map((page) => {
95
+ return (h("li", { class: `PageItem ${this.currentPage == page ? 'Active' : ''}`, onClick: () => {
96
+ this.goTo(page);
97
+ } }, page));
98
+ }));
99
+ }
100
+ renderStylingWrapper() {
101
+ return h("general-styling-wrapper", { targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl });
108
102
  }
109
- }
110
- goTo(step) {
111
- if (step == '...' || step == 0 || step > this.endPageIndex + 1) {
112
- return;
103
+ updatePageStatus() {
104
+ this.endPageIndex = (Math.ceil(this.total / this.limit) - 1);
105
+ this.endPageIndex = this.endPageIndex < 0 ? this.endPageIndex = 0 : this.endPageIndex;
106
+ this.pagesArray = [];
107
+ if (this.endPageIndex < 5) {
108
+ this.pagesArray = Array.from({ length: this.endPageIndex + 1 }, (_, i) => i + 1);
109
+ }
110
+ else {
111
+ /**
112
+ * Construct numbered navigation area based on current page position
113
+ */
114
+ if (this.currentPage == 1 || this.currentPage == 2) {
115
+ this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);
116
+ this.pagesArray.push('...');
117
+ }
118
+ else if (this.currentPage >= 3 && ((this.endPageIndex - this.currentPage) >= 2)) {
119
+ this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);
120
+ this.pagesArray.push('...');
121
+ this.pagesArray.unshift('...');
122
+ }
123
+ else if ((this.endPageIndex - this.currentPage) < 3) {
124
+ this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endPageIndex - 2 + i);
125
+ this.pagesArray.unshift('...');
126
+ }
127
+ }
113
128
  }
114
- this.currentPage = step;
115
- let offset = (this.currentPage - 1) * this.limit;
116
- this.reloadPageEmitter.emit({ offset, limit: this.limit, tableId: this.tableId });
117
- }
118
- renderPageList() {
119
- return h("ul", { class: 'PaginationArea' }, this.pagesArray.map((page) => {
120
- return (h("li", { class: `PageItem ${this.currentPage == page ? 'Active' : ''}`, onClick: () => {
121
- this.goTo(page);
122
- } }, page));
123
- }));
124
- }
125
- renderStylingWrapper() {
126
- return h("general-styling-wrapper", { targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl });
127
- }
128
- updatePageStatus() {
129
- this.endPageIndex = (Math.ceil(this.total / this.limit) - 1);
130
- this.endPageIndex = this.endPageIndex < 0 ? this.endPageIndex = 0 : this.endPageIndex;
131
- this.pagesArray = [];
132
- if (this.endPageIndex < 5) {
133
- this.pagesArray = Array.from({ length: this.endPageIndex + 1 }, (_, i) => i + 1);
129
+ componentWillRender() {
130
+ this.currentPage = Math.floor(this.offset / this.limit) + 1;
131
+ this.updatePageStatus();
134
132
  }
135
- else {
136
- /**
137
- * Construct numbered navigation area based on current page position
138
- */
139
- if (this.currentPage == 1 || this.currentPage == 2) {
140
- this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);
141
- this.pagesArray.push('...');
142
- }
143
- else if (this.currentPage >= 3 && ((this.endPageIndex - this.currentPage) >= 2)) {
144
- this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);
145
- this.pagesArray.push('...');
146
- this.pagesArray.unshift('...');
147
- }
148
- else if ((this.endPageIndex - this.currentPage) < 3) {
149
- this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endPageIndex - 2 + i);
150
- this.pagesArray.unshift('...');
151
- }
133
+ render() {
134
+ const startOffset = (this.currentPage - 1) * this.limit + 1;
135
+ const endOffset = this.currentPage * this.limit > this.total ? this.total : this.currentPage * this.limit;
136
+ return h("div", { key: 'a6817c12f1e1e9960f8e91cfd5c5e2fa1ea72f7f', class: 'PageNavigationWrapper' }, this.displayRangeOfTotal && this.total > 0 && h("span", { key: '8f7a16c5835147e2a83808f882a66a2463e3998e', class: 'PageOfMessage' }, translate('pageOfTotal', this.language, {
137
+ values: {
138
+ start: startOffset,
139
+ end: endOffset,
140
+ total: this.total
141
+ }
142
+ })), h("div", { key: 'ddc20a86777c2fde667ad8b75ab86f3bc72ccfdb', class: 'PageNavigation' }, this.arrowsActive &&
143
+ h("div", { key: 'ce2a45b8c0d6e32cfa3f1c5cc8b3c9ac58acc409', class: `PageArrow FirstPage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
144
+ this.goTo(1);
145
+ } }, translate('firstPage', this.language)), this.secondaryArrowsActive &&
146
+ h("span", { key: '82dce028e4283dcac511b3b62823e87f2085f4b5', class: `PageArrow PrePage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
147
+ this.goTo(this.currentPage - 1);
148
+ } }, translate('prePage', this.language)), this.displayPageNumbers && this.renderPageList(), this.secondaryArrowsActive &&
149
+ h("span", { key: 'a6ed748ce3e2555ac3d9d4bae174ad5bad0fabec', class: `PageArrow NextPage ${this.currentPage == (this.endPageIndex + 1) ? 'Disabled' : ''}`, onClick: () => {
150
+ this.goTo(this.currentPage + 1);
151
+ } }, translate('nextPage', this.language)), this.arrowsActive &&
152
+ h("div", { key: '60a81a86f11e2bb07ee93b61d6f367a11b0e2b6c', class: `PageArrow LastPage ${this.currentPage == this.endPageIndex + 1 ? 'Disabled' : ''}`, onClick: () => {
153
+ this.goTo(this.endPageIndex + 1);
154
+ } }, " ", translate('lastPage', this.language), " "), this.renderStylingWrapper()));
152
155
  }
153
- }
154
- componentWillRender() {
155
- this.currentPage = Math.floor(this.offset / this.limit) + 1;
156
- this.updatePageStatus();
157
- }
158
- render() {
159
- const startOffset = (this.currentPage - 1) * this.limit + 1;
160
- const endOffset = this.currentPage * this.limit > this.total ? this.total : this.currentPage * this.limit;
161
- return h("div", { class: 'PageNavigationWrapper' }, this.displayRangeOfTotal && this.total > 0 && h("span", { class: 'PageOfMessage' }, translate('pageOfTotal', this.language, {
162
- values: {
163
- start: startOffset,
164
- end: endOffset,
165
- total: this.total
166
- }
167
- })), h("div", { class: 'PageNavigation' }, this.arrowsActive &&
168
- h("div", { class: `PageArrow FirstPage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
169
- this.goTo(1);
170
- } }, translate('firstPage', this.language)), this.secondaryArrowsActive &&
171
- h("span", { class: `PageArrow PrePage ${this.currentPage == 1 ? 'Disabled' : ''}`, onClick: () => {
172
- this.goTo(this.currentPage - 1);
173
- } }, translate('prePage', this.language)), this.displayPageNumbers && this.renderPageList(), this.secondaryArrowsActive &&
174
- h("span", { class: `PageArrow NextPage ${this.currentPage == (this.endPageIndex + 1) ? 'Disabled' : ''}`, onClick: () => {
175
- this.goTo(this.currentPage + 1);
176
- } }, translate('nextPage', this.language)), this.arrowsActive &&
177
- h("div", { class: `PageArrow LastPage ${this.currentPage == this.endPageIndex + 1 ? 'Disabled' : ''}`, onClick: () => {
178
- this.goTo(this.endPageIndex + 1);
179
- } }, " ", translate('lastPage', this.language), " "), this.renderStylingWrapper()));
180
- }
181
156
  };
182
- BonusPaginationNav.style = bonusPaginationNavCss;
157
+ BonusPaginationNav.style = BonusPaginationNavStyle0;
183
158
 
184
159
  export { BonusPaginationNav as bonus_pagination_nav };
@@ -1,17 +1,20 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-7299a1fa.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-332d0149.js';
2
+ export { s as setNonce } from './index-332d0149.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
2
4
 
3
5
  /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
13
15
  };
14
16
 
15
- patchBrowser().then(options => {
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
16
19
  return bootstrapLazy([["bonus-pagination-nav",[[0,"bonus-pagination-nav",{"total":[1538],"limit":[1538],"offset":[1538],"tableId":[1537,"table-id"],"language":[1537],"translationUrl":[513,"translation-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"displayRangeOfTotal":[1540,"display-range-of-total"],"endPageIndex":[32],"pagesArray":[32],"currentPage":[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]]]]], options);
17
20
  });