@maggioli-design-system/mds-paginator-item 2.7.1 → 2.7.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 (61) hide show
  1. package/dist/cjs/{index-1c0a7765.js → index-ed979b3c.js} +29 -17
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-paginator-item.cjs.entry.js +67 -67
  4. package/dist/cjs/mds-paginator-item.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/aria.js +18 -18
  7. package/dist/collection/common/keyboard-manager.js +38 -38
  8. package/dist/collection/common/unit.js +7 -7
  9. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +6 -3
  10. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +93 -93
  11. package/dist/collection/dictionary/autocomplete.js +56 -56
  12. package/dist/collection/dictionary/button.js +19 -19
  13. package/dist/collection/dictionary/color.js +14 -14
  14. package/dist/collection/dictionary/floating-ui.js +14 -14
  15. package/dist/collection/dictionary/input.js +31 -15
  16. package/dist/collection/dictionary/loading.js +2 -2
  17. package/dist/collection/dictionary/typography.js +46 -46
  18. package/dist/collection/dictionary/variant.js +54 -54
  19. package/dist/collection/fixtures/cities.js +107 -107
  20. package/dist/components/mds-paginator-item.d.ts +2 -2
  21. package/dist/components/mds-paginator-item.js +84 -84
  22. package/dist/documentation.json +2 -2
  23. package/dist/esm/{index-38a622e0.js → index-5129d91c.js} +29 -17
  24. package/dist/esm/loader.js +2 -2
  25. package/dist/esm/mds-paginator-item.entry.js +67 -67
  26. package/dist/esm/mds-paginator-item.js +3 -3
  27. package/dist/esm-es5/{index-38a622e0.js → index-5129d91c.js} +1 -1
  28. package/dist/esm-es5/loader.js +1 -1
  29. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  30. package/dist/esm-es5/mds-paginator-item.js +1 -1
  31. package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -1
  32. package/dist/mds-paginator-item/mds-paginator-item.js +15 -15
  33. package/dist/mds-paginator-item/{p-bc9aee16.system.js → p-0a3732e2.system.js} +1 -1
  34. package/{www/build/p-5ef94557.system.js → dist/mds-paginator-item/p-23544ebe.system.js} +1 -1
  35. package/dist/mds-paginator-item/p-29f0c3bc.system.entry.js +1 -0
  36. package/dist/mds-paginator-item/p-51824862.js +2 -0
  37. package/dist/mds-paginator-item/p-6e7056ff.entry.js +1 -0
  38. package/dist/stats.json +30 -30
  39. package/dist/types/common/keyboard-manager.d.ts +9 -9
  40. package/dist/types/dictionary/input.d.ts +2 -1
  41. package/dist/types/interface/input-value.d.ts +1 -1
  42. package/dist/types/stencil-public-runtime.d.ts +8 -0
  43. package/documentation.json +14 -4
  44. package/package.json +3 -3
  45. package/src/components/mds-paginator-item/mds-paginator-item.css +3 -3
  46. package/src/dictionary/input.ts +18 -0
  47. package/src/fixtures/icons.json +3 -0
  48. package/src/fixtures/iconsauce.json +3 -0
  49. package/www/build/mds-paginator-item.esm.js +1 -1
  50. package/www/build/mds-paginator-item.js +15 -15
  51. package/www/build/{p-bc9aee16.system.js → p-0a3732e2.system.js} +1 -1
  52. package/{dist/mds-paginator-item/p-5ef94557.system.js → www/build/p-23544ebe.system.js} +1 -1
  53. package/www/build/p-29f0c3bc.system.entry.js +1 -0
  54. package/www/build/p-51824862.js +2 -0
  55. package/www/build/p-6e7056ff.entry.js +1 -0
  56. package/dist/mds-paginator-item/p-80e68688.system.entry.js +0 -1
  57. package/dist/mds-paginator-item/p-a1f76318.entry.js +0 -1
  58. package/dist/mds-paginator-item/p-fbee7c22.js +0 -2
  59. package/www/build/p-80e68688.system.entry.js +0 -1
  60. package/www/build/p-a1f76318.entry.js +0 -1
  61. package/www/build/p-fbee7c22.js +0 -2
@@ -364,7 +364,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
364
364
  elm[memberName] = newValue;
365
365
  }
366
366
  }
367
- catch (e) { }
367
+ catch (e) {
368
+ /**
369
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
370
+ */
371
+ }
368
372
  }
369
373
  if (newValue == null || newValue === false) {
370
374
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -383,6 +387,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
383
387
  }
384
388
  };
385
389
  const parseClassListRegex = /\s/;
390
+ /**
391
+ * Parsed a string of classnames into an array
392
+ * @param value className string, e.g. "foo bar baz"
393
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
394
+ */
386
395
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
387
396
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
388
397
  // if the element passed in is a shadow root, which is a document fragment
@@ -1062,10 +1071,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1062
1071
  */
1063
1072
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1064
1073
  var _a;
1074
+ const prototype = Cstr.prototype;
1065
1075
  if (cmpMeta.$members$) {
1066
1076
  // It's better to have a const than two Object.entries()
1067
1077
  const members = Object.entries(cmpMeta.$members$);
1068
- const prototype = Cstr.prototype;
1069
1078
  members.map(([memberName, [memberFlags]]) => {
1070
1079
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1071
1080
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1088,6 +1097,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1088
1097
  const attrNameToPropName = new Map();
1089
1098
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1090
1099
  plt.jmp(() => {
1100
+ var _a;
1091
1101
  const propName = attrNameToPropName.get(attrName);
1092
1102
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1093
1103
  // in the case where an attribute was set inline.
@@ -1143,11 +1153,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1143
1153
  // 1. The instance is ready
1144
1154
  // 2. The watchers are ready
1145
1155
  // 3. The value has changed
1146
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1156
+ if (flags &&
1157
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1147
1158
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1148
1159
  newValue !== oldValue) {
1149
1160
  const instance = hostRef.$lazyInstance$ ;
1150
- const entry = cmpMeta.$watchers$[attrName];
1161
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1151
1162
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1152
1163
  if (instance[callbackName] != null) {
1153
1164
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1169,10 +1180,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1169
1180
  ...members
1170
1181
  .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1171
1182
  .map(([propName, m]) => {
1183
+ var _a;
1172
1184
  const attrName = m[1] || propName;
1173
1185
  attrNameToPropName.set(attrName, propName);
1174
1186
  if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1175
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1187
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1176
1188
  }
1177
1189
  return attrName;
1178
1190
  }),
@@ -1497,19 +1509,19 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1497
1509
  return module[exportName];
1498
1510
  }
1499
1511
 
1500
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1501
- const processMod = importedModule => {
1502
- cmpModules.set(bundleId, importedModule);
1503
- return importedModule[exportName];
1504
- }
1505
- switch(bundleId) {
1506
-
1507
- case 'mds-paginator-item.cjs':
1508
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1509
- /* webpackMode: "lazy" */
1510
- './mds-paginator-item.cjs.entry.js')); }).then(processMod, consoleError);
1512
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1513
+ const processMod = importedModule => {
1514
+ cmpModules.set(bundleId, importedModule);
1515
+ return importedModule[exportName];
1516
+ }
1517
+ switch(bundleId) {
1518
+
1519
+ case 'mds-paginator-item.cjs':
1520
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1521
+ /* webpackMode: "lazy" */
1522
+ './mds-paginator-item.cjs.entry.js')); }).then(processMod, consoleError);
1523
+ }
1511
1524
  }
1512
- }
1513
1525
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1514
1526
  /* @vite-ignore */
1515
1527
  /* webpackInclude: /\.entry\.js$/ */
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c0a7765.js');
5
+ const index = require('./index-ed979b3c.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -2,79 +2,79 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c0a7765.js');
5
+ const index = require('./index-ed979b3c.js');
6
6
 
7
7
  class KeyboardManager {
8
- constructor() {
9
- this.elements = [];
10
- this.handleClickBehaviorDispatchEvent = (event) => {
11
- if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
12
- event.target.click();
13
- }
14
- };
15
- this.handleEscapeBehaviorDispatchEvent = (event) => {
16
- if (event.code === 'Escape' && this.escapeCallback) {
17
- this.escapeCallback();
18
- }
19
- };
20
- this.addElement = (el, name = 'element') => {
21
- this.elements[name] = el;
22
- };
23
- this.attachClickBehavior = (name = 'element') => {
24
- if (this.elements[name]) {
25
- this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
26
- }
27
- };
28
- this.detachClickBehavior = (name = 'element') => {
29
- if (this.elements[name]) {
30
- this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
31
- }
32
- };
33
- this.attachEscapeBehavior = (callBack) => {
34
- this.escapeCallback = callBack;
35
- if (window !== undefined) {
36
- window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
- }
38
- };
39
- this.detachEscapeBehavior = () => {
40
- this.escapeCallback = () => { return; };
41
- if (window !== undefined) {
42
- window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
43
- }
44
- };
45
- }
8
+ constructor() {
9
+ this.elements = [];
10
+ this.handleClickBehaviorDispatchEvent = (event) => {
11
+ if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
12
+ event.target.click();
13
+ }
14
+ };
15
+ this.handleEscapeBehaviorDispatchEvent = (event) => {
16
+ if (event.code === 'Escape' && this.escapeCallback) {
17
+ this.escapeCallback();
18
+ }
19
+ };
20
+ this.addElement = (el, name = 'element') => {
21
+ this.elements[name] = el;
22
+ };
23
+ this.attachClickBehavior = (name = 'element') => {
24
+ if (this.elements[name]) {
25
+ this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
26
+ }
27
+ };
28
+ this.detachClickBehavior = (name = 'element') => {
29
+ if (this.elements[name]) {
30
+ this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
31
+ }
32
+ };
33
+ this.attachEscapeBehavior = (callBack) => {
34
+ this.escapeCallback = callBack;
35
+ if (window !== undefined) {
36
+ window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
+ }
38
+ };
39
+ this.detachEscapeBehavior = () => {
40
+ this.escapeCallback = () => { return; };
41
+ if (window !== undefined) {
42
+ window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
43
+ }
44
+ };
45
+ }
46
46
  }
47
47
 
48
- const mdsPaginatorItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}:host{padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0px}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0px;padding-right:0px}";
48
+ const mdsPaginatorItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.text{font-size:1rem}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}:host{padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0rem}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0rem;padding-right:0rem}";
49
49
 
50
50
  const MdsPaginatorItem = class {
51
- constructor(hostRef) {
52
- index.registerInstance(this, hostRef);
53
- this.km = new KeyboardManager();
54
- this.componentDidLoad = () => {
55
- this.km.addElement(this.host);
56
- this.km.attachClickBehavior();
57
- };
58
- this.componentDidUpdate = () => {
59
- if (!this.disabled && !this.selected) {
60
- this.km.attachClickBehavior();
61
- return;
62
- }
63
- this.km.detachClickBehavior();
64
- };
65
- this.disconnectedCallback = () => {
66
- this.km.detachClickBehavior();
67
- };
68
- this.icon = undefined;
69
- this.selected = undefined;
70
- this.disabled = undefined;
71
- }
72
- render() {
73
- return (index.h(index.Host, { tabindex: "0" }, this.icon !== undefined
74
- ? index.h("mds-icon", { name: this.icon })
75
- : index.h("mds-text", { class: "text", typography: "detail" }, index.h("slot", null))));
76
- }
77
- get host() { return index.getElement(this); }
51
+ constructor(hostRef) {
52
+ index.registerInstance(this, hostRef);
53
+ this.km = new KeyboardManager();
54
+ this.componentDidLoad = () => {
55
+ this.km.addElement(this.host);
56
+ this.km.attachClickBehavior();
57
+ };
58
+ this.componentDidUpdate = () => {
59
+ if (!this.disabled && !this.selected) {
60
+ this.km.attachClickBehavior();
61
+ return;
62
+ }
63
+ this.km.detachClickBehavior();
64
+ };
65
+ this.disconnectedCallback = () => {
66
+ this.km.detachClickBehavior();
67
+ };
68
+ this.icon = undefined;
69
+ this.selected = undefined;
70
+ this.disabled = undefined;
71
+ }
72
+ render() {
73
+ return (index.h(index.Host, { tabindex: "0" }, this.icon !== undefined
74
+ ? index.h("mds-icon", { name: this.icon })
75
+ : index.h("mds-text", { class: "text", typography: "detail" }, index.h("slot", null))));
76
+ }
77
+ get host() { return index.getElement(this); }
78
78
  };
79
79
  MdsPaginatorItem.style = mdsPaginatorItemCss;
80
80
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c0a7765.js');
5
+ const index = require('./index-ed979b3c.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.7.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-paginator-item.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.7.2",
7
+ "version": "4.8.0",
8
8
  "typescriptVersion": "5.2.2"
9
9
  },
10
10
  "collections": [],
@@ -1,29 +1,29 @@
1
1
  const hash = (s) => {
2
- let i, h;
3
- for (i = 0, h = 0; i < s.length; i++) {
4
- h = Math.imul(31, h) + s.charCodeAt(i) | 0;
5
- }
6
- return h.toString();
2
+ let i, h;
3
+ for (i = 0, h = 0; i < s.length; i++) {
4
+ h = Math.imul(31, h) + s.charCodeAt(i) | 0;
5
+ }
6
+ return h.toString();
7
7
  };
8
8
  const randomInt = (max) => Math.floor(Math.random() * max);
9
9
  const unslugName = (name) => {
10
- var _a, _b, _c;
11
- return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
10
+ var _a, _b, _c;
11
+ return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
12
12
  };
13
13
  const setAttributeIfEmpty = (element, attribute, value) => {
14
- var _a;
15
- if (element.hasAttribute(attribute)) {
16
- return (_a = element.getAttribute(attribute)) !== null && _a !== void 0 ? _a : '';
17
- }
18
- element.setAttribute(attribute, value);
19
- return value;
14
+ var _a;
15
+ if (element.hasAttribute(attribute)) {
16
+ return (_a = element.getAttribute(attribute)) !== null && _a !== void 0 ? _a : '';
17
+ }
18
+ element.setAttribute(attribute, value);
19
+ return value;
20
20
  };
21
21
  const hashValue = (value) => `${value}-${hash(value)}`;
22
22
  const hashRandomValue = (value) => {
23
- const randomValue = randomInt(1000000);
24
- if (value) {
25
- return `${value}-${hash(randomValue.toString())}`;
26
- }
27
- return hash(randomValue.toString());
23
+ const randomValue = randomInt(1000000);
24
+ if (value) {
25
+ return `${value}-${hash(randomValue.toString())}`;
26
+ }
27
+ return hash(randomValue.toString());
28
28
  };
29
29
  export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
@@ -1,40 +1,40 @@
1
1
  export class KeyboardManager {
2
- constructor() {
3
- this.elements = [];
4
- this.handleClickBehaviorDispatchEvent = (event) => {
5
- if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
6
- event.target.click();
7
- }
8
- };
9
- this.handleEscapeBehaviorDispatchEvent = (event) => {
10
- if (event.code === 'Escape' && this.escapeCallback) {
11
- this.escapeCallback();
12
- }
13
- };
14
- this.addElement = (el, name = 'element') => {
15
- this.elements[name] = el;
16
- };
17
- this.attachClickBehavior = (name = 'element') => {
18
- if (this.elements[name]) {
19
- this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
20
- }
21
- };
22
- this.detachClickBehavior = (name = 'element') => {
23
- if (this.elements[name]) {
24
- this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
25
- }
26
- };
27
- this.attachEscapeBehavior = (callBack) => {
28
- this.escapeCallback = callBack;
29
- if (window !== undefined) {
30
- window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
31
- }
32
- };
33
- this.detachEscapeBehavior = () => {
34
- this.escapeCallback = () => { return; };
35
- if (window !== undefined) {
36
- window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
- }
38
- };
39
- }
2
+ constructor() {
3
+ this.elements = [];
4
+ this.handleClickBehaviorDispatchEvent = (event) => {
5
+ if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {
6
+ event.target.click();
7
+ }
8
+ };
9
+ this.handleEscapeBehaviorDispatchEvent = (event) => {
10
+ if (event.code === 'Escape' && this.escapeCallback) {
11
+ this.escapeCallback();
12
+ }
13
+ };
14
+ this.addElement = (el, name = 'element') => {
15
+ this.elements[name] = el;
16
+ };
17
+ this.attachClickBehavior = (name = 'element') => {
18
+ if (this.elements[name]) {
19
+ this.elements[name].addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
20
+ }
21
+ };
22
+ this.detachClickBehavior = (name = 'element') => {
23
+ if (this.elements[name]) {
24
+ this.elements[name].removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
25
+ }
26
+ };
27
+ this.attachEscapeBehavior = (callBack) => {
28
+ this.escapeCallback = callBack;
29
+ if (window !== undefined) {
30
+ window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
31
+ }
32
+ };
33
+ this.detachEscapeBehavior = () => {
34
+ this.escapeCallback = () => { return; };
35
+ if (window !== undefined) {
36
+ window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
+ }
38
+ };
39
+ }
40
40
  }
@@ -1,10 +1,10 @@
1
1
  const cssDurationToMilliseconds = (duration, defaultValue = 1000) => {
2
- if (duration.includes('s')) {
3
- return Number(duration.replace('s', '')) * 1000;
4
- }
5
- if (duration.includes('ms')) {
6
- return Number(duration.replace('s', ''));
7
- }
8
- return defaultValue;
2
+ if (duration.includes('s')) {
3
+ return Number(duration.replace('s', '')) * 1000;
4
+ }
5
+ if (duration.includes('ms')) {
6
+ return Number(duration.replace('s', ''));
7
+ }
8
+ return defaultValue;
9
9
  };
10
10
  export { cssDurationToMilliseconds, };
@@ -18,6 +18,9 @@
18
18
  .border {
19
19
  border-width: 1px;
20
20
  }
21
+ .text {
22
+ font-size: 1rem;
23
+ }
21
24
  .shadow {
22
25
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
23
26
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -115,7 +118,7 @@
115
118
  }
116
119
 
117
120
  :host( [icon] ) {
118
- padding: 0px;
121
+ padding: 0rem;
119
122
  }
120
123
 
121
124
  :host( [selected] ) {
@@ -135,6 +138,6 @@
135
138
  }
136
139
 
137
140
  .icon {
138
- padding-left: 0px;
139
- padding-right: 0px;
141
+ padding-left: 0rem;
142
+ padding-right: 0rem;
140
143
  }