@everymatrix/lottery-pagination 1.51.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/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-249d3d4d.js +1186 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/lottery-pagination-e934e1e8.js +247 -0
  6. package/dist/cjs/lottery-pagination.cjs.entry.js +10 -0
  7. package/dist/cjs/lottery-pagination.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/lottery-pagination/index.js +1 -0
  10. package/dist/collection/components/lottery-pagination/lottery-pagination.css +136 -0
  11. package/dist/collection/components/lottery-pagination/lottery-pagination.js +440 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +43 -0
  14. package/dist/collection/utils/utils.js +15 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/index-49de5c89.js +1159 -0
  17. package/dist/esm/index.js +2 -0
  18. package/dist/esm/loader.js +11 -0
  19. package/dist/esm/lottery-pagination-50564510.js +245 -0
  20. package/dist/esm/lottery-pagination.entry.js +2 -0
  21. package/dist/esm/lottery-pagination.js +20 -0
  22. package/dist/index.cjs.js +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/lottery-pagination/index.esm.js +1 -0
  25. package/dist/lottery-pagination/lottery-pagination.esm.js +1 -0
  26. package/dist/lottery-pagination/p-9e29d391.js +1 -0
  27. package/dist/lottery-pagination/p-ce0101e8.js +2 -0
  28. package/dist/lottery-pagination/p-e0782a32.entry.js +1 -0
  29. package/dist/lottery-pagination/p-e1255160.js +1 -0
  30. package/dist/stencil.config.dev.js +16 -0
  31. package/dist/stencil.config.js +17 -0
  32. package/dist/storybook/main.js +21 -0
  33. package/dist/storybook/preview.js +9 -0
  34. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +2 -0
  35. 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
  36. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/main.d.ts +3 -0
  37. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/preview.d.ts +70 -0
  38. package/dist/types/components/lottery-pagination/index.d.ts +1 -0
  39. package/dist/types/components/lottery-pagination/lottery-pagination.d.ts +97 -0
  40. package/dist/types/components.d.ts +146 -0
  41. package/dist/types/index.d.ts +1 -0
  42. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  43. package/dist/types/utils/locale.utils.d.ts +1 -0
  44. package/dist/types/utils/utils.d.ts +8 -0
  45. package/loader/cdn.js +1 -0
  46. package/loader/index.cjs.js +1 -0
  47. package/loader/index.d.ts +24 -0
  48. package/loader/index.es2017.js +1 -0
  49. package/loader/index.js +2 -0
  50. package/loader/package.json +11 -0
  51. package/package.json +26 -0
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const lotteryPagination = require('./lottery-pagination-e934e1e8.js');
6
+ require('./index-249d3d4d.js');
7
+
8
+
9
+
10
+ exports.LotteryPagination = lotteryPagination.LotteryPagination;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-249d3d4d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
11
+ return index.bootstrapLazy([["lottery-pagination.cjs",[[1,"lottery-pagination",{"nextPage":[1540,"next-page"],"prevPage":[1540,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrlContent":[1537,"client-styling-url-content"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"isReset":[1540,"is-reset"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]]], options);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,247 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-249d3d4d.js');
4
+
5
+ /**
6
+ * @name isMobile
7
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
8
+ * @param {String} userAgent window.navigator.userAgent
9
+ * @returns {Boolean} true or false
10
+ */
11
+ const isMobile = (userAgent) => {
12
+ return !!(userAgent.toLowerCase().match(/android/i) ||
13
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
14
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
15
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
16
+ };
17
+
18
+ const DEFAULT_LANGUAGE = 'en';
19
+ const TRANSLATIONS = {
20
+ en: {
21
+ firstPage: 'First',
22
+ previousPage: 'Previous',
23
+ nextPage: 'Next',
24
+ lastPage: 'Last'
25
+ },
26
+ ro: {
27
+ firstPage: 'Prima',
28
+ previousPage: 'Anterior',
29
+ nextPage: 'Urmatoarea',
30
+ lastPage: 'Ultima'
31
+ },
32
+ fr: {
33
+ firstPage: 'First',
34
+ previousPage: 'Previous',
35
+ nextPage: 'Next',
36
+ lastPage: 'Last'
37
+ },
38
+ ar: {
39
+ firstPage: 'First',
40
+ previousPage: 'Previous',
41
+ nextPage: 'Next',
42
+ lastPage: 'Last'
43
+ },
44
+ hu: {
45
+ firstPage: 'First',
46
+ previousPage: 'Previous',
47
+ nextPage: 'Következő',
48
+ lastPage: 'Last'
49
+ },
50
+ hr: {
51
+ firstPage: 'Prva',
52
+ previousPage: 'Prethodna',
53
+ nextPage: 'Slijedeća',
54
+ lastPage: 'Zadnja'
55
+ }
56
+ };
57
+ const translate = (key, customLang) => {
58
+ const lang = customLang;
59
+ return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
60
+ };
61
+
62
+ const lotteryPaginationCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}#PaginationContainer{width:100%;margin:20px 0;display:inline-flex;justify-content:space-between;align-items:center}.LeftItems button:not(:first-child),.RightItems button:not(:last-child){margin:0 10px}.LeftItems button,.RightItems button{padding:0;background-color:var(--emw--color-background, #009993);border-color:var(--emw--color-typography, #009993)}.PaginationArea{display:inline-flex;gap:10px;list-style:none}.PaginationArea li{margin:0;padding:0}.PaginationArea li button{width:24px;height:24px;display:flex;border:0;padding:0;justify-content:center;align-items:center;background-color:transparent;color:var(--emw--button-text-color, #000);cursor:pointer;pointer-events:all}.PaginationItem.ActiveItem button{background:var(--emw--color-background, #009993);border-color:var(--emw--color-typography, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.PaginationItem.ActiveItem button:disabled{pointer-events:none;cursor:not-allowed}.PaginationItem button:hover,.PaginationItem button:active{background:var(--emw--color-background, #009993);border-color:var(--emw--color-typography, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));opacity:0.8}button{width:100px;height:32px;border:1px solid var(--emw--color-gray-transparency-30, #524e52);border-radius:5px;background:var(--emw--color-gray-transparency-30, #524e52);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));font-size:14px;font:inherit;cursor:pointer;transition:all 0.1s linear;text-transform:uppercase;text-align:center;letter-spacing:0}button:hover,button:active{background:var(--emw--color-primary-variant, #004D4A);border-color:var(--emw--color-primary-variant, #004D4A)}button:disabled{background-color:var(--emw--color-gray-transparency-80, #ccc);border-color:var(--emw--color-gray-transparency-80, #ccc);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));cursor:not-allowed}@media screen and (max-width: 720px){button{width:90px;font-size:14px}}@media screen and (max-width: 480px){button{width:70px;font-size:14px}.paginationArea{padding:5px}}@media screen and (max-width: 320px){button{width:58px;font-size:12px}.paginationArea{padding:5px;gap:5px}}@media (hover: none){.paginationItem button:hover{background:inherit;border-color:inherit;color:inherit;opacity:1}.paginationItem.activeItem button:hover{background:var(--emw--color-background, #009993);border-color:var(--emw--color-typography, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}}";
63
+ const LotteryPaginationStyle0 = lotteryPaginationCss;
64
+
65
+ const LotteryPagination = class {
66
+ constructor(hostRef) {
67
+ index.registerInstance(this, hostRef);
68
+ this.hpPageChange = index.createEvent(this, "hpPageChange", 7);
69
+ this.userAgent = window.navigator.userAgent;
70
+ this.currentPage = 1;
71
+ /**
72
+ * Navigation logic
73
+ */
74
+ this.navigateTo = (navigationPage) => {
75
+ switch (navigationPage) {
76
+ case 'firstPage':
77
+ this.offsetInt = 0;
78
+ break;
79
+ case 'lastPage':
80
+ this.offsetInt = this.endInt * this.limitInt;
81
+ break;
82
+ case 'previousPage':
83
+ this.offsetInt -= this.limitInt;
84
+ this.nextPage = true;
85
+ break;
86
+ case 'nextPage':
87
+ this.offsetInt += this.limitInt;
88
+ // this.nextPage = this.currentPage > this.endInt ? false : this.nextPage;
89
+ this.nextPage = this.offsetInt / this.limitInt >= this.endInt ? false : this.nextPage;
90
+ break;
91
+ case 'fivePagesBack':
92
+ this.offsetInt -= this.limitInt * 5;
93
+ this.offsetInt = this.offsetInt <= 0 ? 0 : this.offsetInt;
94
+ break;
95
+ case 'fivePagesForward':
96
+ this.offsetInt += this.limitInt * 5;
97
+ this.offsetInt = this.offsetInt / this.limitInt >= this.endInt ? this.endInt * this.limitInt : this.offsetInt;
98
+ this.nextPage = this.offsetInt / this.limitInt >= this.endInt ? false : this.nextPage;
99
+ break;
100
+ }
101
+ this.previousPage = !this.offsetInt ? false : true;
102
+ this.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });
103
+ };
104
+ /**
105
+ * Handle navigation from here
106
+ */
107
+ this.paginationNavigation = (pageNumber, index) => {
108
+ if (!isNaN(pageNumber)) {
109
+ if (pageNumber === 1) {
110
+ this.offsetInt = pageNumber - 1;
111
+ this.previousPage = false;
112
+ }
113
+ else {
114
+ this.offsetInt = (pageNumber - 1) * this.limitInt;
115
+ if (pageNumber > this.endInt) {
116
+ this.nextPage = false;
117
+ }
118
+ else {
119
+ this.nextPage = true;
120
+ }
121
+ }
122
+ this.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });
123
+ }
124
+ else {
125
+ if (index === 0 && this.currentPage <= 4) {
126
+ this.navigateTo('firstPage');
127
+ }
128
+ else if (index === 0 && this.currentPage > 4) {
129
+ this.navigateTo('fivePagesBack');
130
+ }
131
+ else if (index === 4 && this.endInt - this.currentPage >= 2) {
132
+ this.navigateTo('fivePagesForward');
133
+ }
134
+ }
135
+ };
136
+ this.setClientStyling = () => {
137
+ let sheet = document.createElement('style');
138
+ sheet.innerHTML = this.clientStyling;
139
+ this.stylingContainer.prepend(sheet);
140
+ };
141
+ this.setClientStylingURL = () => {
142
+ let cssFile = document.createElement('style');
143
+ setTimeout(() => {
144
+ cssFile.innerHTML = this.clientStylingUrlContent;
145
+ this.stylingContainer.prepend(cssFile);
146
+ }, 1);
147
+ };
148
+ this.nextPage = false;
149
+ this.prevPage = false;
150
+ this.offset = 0;
151
+ this.limit = 10;
152
+ this.total = 1;
153
+ this.language = 'en';
154
+ this.clientStyling = '';
155
+ this.clientStylingUrlContent = '';
156
+ this.arrowsActive = undefined;
157
+ this.secondaryArrowsActive = undefined;
158
+ this.numberedNavActive = undefined;
159
+ this.isReset = false;
160
+ this.offsetInt = undefined;
161
+ this.lastPage = false;
162
+ this.previousPage = false;
163
+ this.limitInt = undefined;
164
+ this.totalInt = undefined;
165
+ this.pagesArray = [];
166
+ this.endInt = 0;
167
+ this.limitStylingAppends = false;
168
+ }
169
+ componentWillRender() {
170
+ this.offsetInt = this.offset;
171
+ this.limitInt = this.limit;
172
+ this.nextPage = this.isReset ? true : this.nextPage;
173
+ this.currentPage = (this.offsetInt / this.limitInt) + 1;
174
+ this.limitInt = this.limit;
175
+ this.totalInt = this.total;
176
+ this.endInt = (Math.ceil(this.totalInt / this.limitInt) - 1);
177
+ this.lastPage = (this.offsetInt >= this.endInt * this.limitInt) ? false : true;
178
+ /**
179
+ * Construct numbered navigation area based on current page position
180
+ */
181
+ if (this.currentPage == 1 || this.currentPage == 2) {
182
+ if (this.endInt > 3) {
183
+ this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);
184
+ this.pagesArray.push('...');
185
+ }
186
+ else {
187
+ this.pagesArray = Array.from({ length: this.endInt + 1 }, (_, i) => i + 1);
188
+ }
189
+ }
190
+ else if (this.currentPage >= 3 && ((this.endInt - this.currentPage) >= 2)) {
191
+ this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);
192
+ this.pagesArray.push('...');
193
+ this.pagesArray.unshift('...');
194
+ }
195
+ else if ((this.endInt - this.currentPage) < 3) {
196
+ if (this.endInt > 4) {
197
+ this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endInt - 2 + i);
198
+ this.pagesArray.unshift('...');
199
+ }
200
+ else {
201
+ this.pagesArray = Array.from({ length: this.endInt + 1 }, (_, i) => i + 1);
202
+ }
203
+ }
204
+ }
205
+ componentDidRender() {
206
+ this.isReset = false;
207
+ // start custom styling area
208
+ if (!this.limitStylingAppends && this.stylingContainer) {
209
+ if (this.clientStyling)
210
+ this.setClientStyling();
211
+ if (this.clientStylingUrlContent)
212
+ this.setClientStylingURL();
213
+ this.limitStylingAppends = true;
214
+ }
215
+ // end custom styling area
216
+ }
217
+ render() {
218
+ /**
219
+ * Center navigation area
220
+ */
221
+ let navigationArea = index.h("ul", { class: "PaginationArea" }, this.pagesArray.map((item, index$1) => {
222
+ return (index.h("li", { class: 'PaginationItem' + (item === this.currentPage ? ' ActiveItem' : ' ') + ' ' + (isMobile(this.userAgent) ? 'MobileButtons' : '') }, index.h("button", { disabled: item === this.currentPage ? true : false, onClick: this.paginationNavigation.bind(this, item, index$1) }, index.h("span", null, item))));
223
+ }));
224
+ /**
225
+ * Left navigation area
226
+ */
227
+ let buttonSecondaryLeftSide = index.h("button", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'firstPage') }, index.h("span", { class: "NavigationButton" }, translate('firstPage', this.language)), index.h("span", { class: "NavigationIcon" }));
228
+ let buttonsLeftSide = index.h("div", { class: "LeftItems" }, this.secondaryArrowsActive && buttonSecondaryLeftSide, index.h("button", { disabled: this.prevPage && this.currentPage !== 1 ? false : true, onClick: this.navigateTo.bind(this, 'previousPage') }, index.h("span", { class: "NavigationButton" }, translate('previousPage', this.language)), index.h("span", { class: "NavigationIcon" })));
229
+ if (isMobile(this.userAgent)) {
230
+ buttonsLeftSide =
231
+ index.h("div", { class: "LeftItems" }, index.h("button", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'previousPage') }, index.h("span", { class: "NavigationButton" }, translate('previousPage', this.language)), index.h("span", { class: "NavigationIcon" })));
232
+ }
233
+ /**
234
+ * Right navigation area
235
+ */
236
+ let buttonSecondaryRightSide = index.h("button", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'lastPage') }, index.h("span", { class: "NavigationButton" }, translate('lastPage', this.language)), index.h("span", { class: "NavigationIcon" }));
237
+ let buttonsRightSide = index.h("div", { class: "RightItems" }, index.h("button", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'nextPage') }, index.h("span", { class: "NavigationButton" }, translate('nextPage', this.language)), index.h("span", { class: "NavigationIcon" })), this.secondaryArrowsActive && buttonSecondaryRightSide);
238
+ if (isMobile(this.userAgent)) {
239
+ buttonsRightSide =
240
+ index.h("div", { class: "RightItems" }, index.h("button", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'nextPage') }, index.h("span", { class: "NavigationButton" }, translate('nextPage', this.language)), index.h("span", { class: "NavigationIcon" })));
241
+ }
242
+ return (index.h("div", { id: "PaginationContainer", ref: el => this.stylingContainer = el }, this.arrowsActive && buttonsLeftSide, this.numberedNavActive && navigationArea, this.arrowsActive && buttonsRightSide));
243
+ }
244
+ };
245
+ LotteryPagination.style = LotteryPaginationStyle0;
246
+
247
+ exports.LotteryPagination = LotteryPagination;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const lotteryPagination = require('./lottery-pagination-e934e1e8.js');
6
+ require('./index-249d3d4d.js');
7
+
8
+
9
+
10
+ exports.lottery_pagination = lotteryPagination.LotteryPagination;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-249d3d4d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ /*
9
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-pagination.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
18
+ };
19
+
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["lottery-pagination.cjs",[[1,"lottery-pagination",{"nextPage":[1540,"next-page"],"prevPage":[1540,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrlContent":[1537,"client-styling-url-content"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"isReset":[1540,"is-reset"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]]], options);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/lottery-pagination/lottery-pagination.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.22.3",
8
+ "typescriptVersion": "5.5.4"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1 @@
1
+ export { LotteryPagination } from './lottery-pagination';
@@ -0,0 +1,136 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");
2
+ :host {
3
+ display: block;
4
+ font-family: "Roboto", sans-serif;
5
+ }
6
+
7
+ #PaginationContainer {
8
+ width: 100%;
9
+ margin: 20px 0;
10
+ display: inline-flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ }
14
+
15
+ .LeftItems button:not(:first-child), .RightItems button:not(:last-child) {
16
+ margin: 0 10px;
17
+ }
18
+
19
+ .LeftItems button, .RightItems button {
20
+ padding: 0;
21
+ background-color: var(--emw--color-background, #009993);
22
+ border-color: var(--emw--color-typography, #009993);
23
+ }
24
+
25
+ .PaginationArea {
26
+ display: inline-flex;
27
+ gap: 10px;
28
+ list-style: none;
29
+ }
30
+
31
+ .PaginationArea li {
32
+ margin: 0;
33
+ padding: 0;
34
+ }
35
+
36
+ .PaginationArea li button {
37
+ width: 24px;
38
+ height: 24px;
39
+ display: flex;
40
+ border: 0;
41
+ padding: 0;
42
+ justify-content: center;
43
+ align-items: center;
44
+ background-color: transparent;
45
+ color: var(--emw--button-text-color, #000);
46
+ cursor: pointer;
47
+ pointer-events: all;
48
+ }
49
+
50
+ .PaginationItem.ActiveItem button {
51
+ background: var(--emw--color-background, #009993);
52
+ border-color: var(--emw--color-typography, #009993);
53
+ color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
54
+ }
55
+
56
+ .PaginationItem.ActiveItem button:disabled {
57
+ pointer-events: none;
58
+ cursor: not-allowed;
59
+ }
60
+
61
+ .PaginationItem button:hover,
62
+ .PaginationItem button:active {
63
+ background: var(--emw--color-background, #009993);
64
+ border-color: var(--emw--color-typography, #009993);
65
+ color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
66
+ opacity: 0.8;
67
+ }
68
+
69
+ button {
70
+ width: 100px;
71
+ height: 32px;
72
+ border: 1px solid var(--emw--color-gray-transparency-30, #524e52);
73
+ border-radius: 5px;
74
+ background: var(--emw--color-gray-transparency-30, #524e52);
75
+ color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
76
+ font-size: 14px;
77
+ font: inherit;
78
+ cursor: pointer;
79
+ transition: all 0.1s linear;
80
+ text-transform: uppercase;
81
+ text-align: center;
82
+ letter-spacing: 0;
83
+ }
84
+
85
+ button:hover,
86
+ button:active {
87
+ background: var(--emw--color-primary-variant, #004D4A);
88
+ border-color: var(--emw--color-primary-variant, #004D4A);
89
+ }
90
+
91
+ button:disabled {
92
+ background-color: var(--emw--color-gray-transparency-80, #ccc);
93
+ border-color: var(--emw--color-gray-transparency-80, #ccc);
94
+ color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
95
+ cursor: not-allowed;
96
+ }
97
+
98
+ @media screen and (max-width: 720px) {
99
+ button {
100
+ width: 90px;
101
+ font-size: 14px;
102
+ }
103
+ }
104
+ @media screen and (max-width: 480px) {
105
+ button {
106
+ width: 70px;
107
+ font-size: 14px;
108
+ }
109
+ .paginationArea {
110
+ padding: 5px;
111
+ }
112
+ }
113
+ @media screen and (max-width: 320px) {
114
+ button {
115
+ width: 58px;
116
+ font-size: 12px;
117
+ }
118
+ .paginationArea {
119
+ padding: 5px;
120
+ gap: 5px;
121
+ }
122
+ }
123
+ /* fix for issue on hover/visited for mobile devices */
124
+ @media (hover: none) {
125
+ .paginationItem button:hover {
126
+ background: inherit;
127
+ border-color: inherit;
128
+ color: inherit;
129
+ opacity: 1;
130
+ }
131
+ .paginationItem.activeItem button:hover {
132
+ background: var(--emw--color-background, #009993);
133
+ border-color: var(--emw--color-typography, #009993);
134
+ color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
135
+ }
136
+ }