@maggioli-design-system/mds-paginator-item 2.7.1 → 2.7.3

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-96b46685.js} +51 -31
  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 +3 -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.d.ts +1 -21
  23. package/dist/documentation.json +2 -2
  24. package/dist/esm/{index-38a622e0.js → index-d5935a07.js} +51 -31
  25. package/dist/esm/loader.js +2 -2
  26. package/dist/esm/mds-paginator-item.entry.js +67 -67
  27. package/dist/esm/mds-paginator-item.js +3 -3
  28. package/dist/esm-es5/index-d5935a07.js +1 -0
  29. package/dist/esm-es5/loader.js +1 -1
  30. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  31. package/dist/esm-es5/mds-paginator-item.js +1 -1
  32. package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -1
  33. package/dist/mds-paginator-item/mds-paginator-item.js +15 -15
  34. package/dist/mds-paginator-item/p-703ec1c4.system.js +2 -0
  35. package/dist/mds-paginator-item/{p-80e68688.system.entry.js → p-9448defc.system.entry.js} +1 -1
  36. package/{www/build/p-5ef94557.system.js → dist/mds-paginator-item/p-c45df86b.system.js} +1 -1
  37. package/dist/mds-paginator-item/{p-a1f76318.entry.js → p-e3623d7a.entry.js} +1 -1
  38. package/dist/mds-paginator-item/p-e9044500.js +2 -0
  39. package/dist/stats.json +37 -34
  40. package/dist/types/common/keyboard-manager.d.ts +9 -9
  41. package/dist/types/dictionary/input.d.ts +2 -1
  42. package/dist/types/interface/input-value.d.ts +1 -1
  43. package/dist/types/stencil-public-runtime.d.ts +8 -0
  44. package/documentation.json +14 -4
  45. package/package.json +3 -3
  46. package/src/components/mds-paginator-item/mds-paginator-item.css +3 -3
  47. package/src/dictionary/input.ts +18 -0
  48. package/src/fixtures/icons.json +3 -0
  49. package/src/fixtures/iconsauce.json +3 -0
  50. package/www/build/mds-paginator-item.esm.js +1 -1
  51. package/www/build/mds-paginator-item.js +15 -15
  52. package/www/build/p-703ec1c4.system.js +2 -0
  53. package/www/build/{p-80e68688.system.entry.js → p-9448defc.system.entry.js} +1 -1
  54. package/{dist/mds-paginator-item/p-5ef94557.system.js → www/build/p-c45df86b.system.js} +1 -1
  55. package/www/build/{p-a1f76318.entry.js → p-e3623d7a.entry.js} +1 -1
  56. package/www/build/p-e9044500.js +2 -0
  57. package/dist/esm-es5/index-38a622e0.js +0 -1
  58. package/dist/mds-paginator-item/p-bc9aee16.system.js +0 -2
  59. package/dist/mds-paginator-item/p-fbee7c22.js +0 -2
  60. package/www/build/p-bc9aee16.system.js +0 -2
  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
@@ -450,6 +459,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
450
459
  }
451
460
  }
452
461
  }
462
+ // This needs to always happen so we can hide nodes that are projected
463
+ // to another component but don't end up in a slot
464
+ elm['s-hn'] = hostTagName;
453
465
  return elm;
454
466
  };
455
467
  /**
@@ -573,8 +585,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
573
585
  * @param oldCh the old children of the parent node
574
586
  * @param newVNode the new VNode which will replace the parent
575
587
  * @param newCh the new children of the parent node
588
+ * @param isInitialRender whether or not this is the first render of the vdom
576
589
  */
577
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
590
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
578
591
  let oldStartIdx = 0;
579
592
  let newStartIdx = 0;
580
593
  let oldEndIdx = oldCh.length - 1;
@@ -598,25 +611,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
598
611
  else if (newEndVnode == null) {
599
612
  newEndVnode = newCh[--newEndIdx];
600
613
  }
601
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
614
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
602
615
  // if the start nodes are the same then we should patch the new VNode
603
616
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
604
617
  // indices to reflect that. We don't need to move any DOM Nodes around
605
618
  // since things are matched up in order.
606
- patch(oldStartVnode, newStartVnode);
619
+ patch(oldStartVnode, newStartVnode, isInitialRender);
607
620
  oldStartVnode = oldCh[++oldStartIdx];
608
621
  newStartVnode = newCh[++newStartIdx];
609
622
  }
610
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
623
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
611
624
  // likewise, if the end nodes are the same we patch new onto old and
612
625
  // decrement our end indices, and also likewise in this case we don't
613
626
  // need to move any DOM Nodes.
614
- patch(oldEndVnode, newEndVnode);
627
+ patch(oldEndVnode, newEndVnode, isInitialRender);
615
628
  oldEndVnode = oldCh[--oldEndIdx];
616
629
  newEndVnode = newCh[--newEndIdx];
617
630
  }
618
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
619
- patch(oldStartVnode, newEndVnode);
631
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
632
+ patch(oldStartVnode, newEndVnode, isInitialRender);
620
633
  // We need to move the element for `oldStartVnode` into a position which
621
634
  // will be appropriate for `newEndVnode`. For this we can use
622
635
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -638,8 +651,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
638
651
  oldStartVnode = oldCh[++oldStartIdx];
639
652
  newEndVnode = newCh[--newEndIdx];
640
653
  }
641
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
642
- patch(oldEndVnode, newStartVnode);
654
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
655
+ patch(oldEndVnode, newStartVnode, isInitialRender);
643
656
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
644
657
  // the same node, so since we're here we know that they are not. Thus we
645
658
  // can move the element for `oldEndVnode` _before_ the element for
@@ -693,9 +706,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
693
706
  *
694
707
  * @param leftVNode the first VNode to check
695
708
  * @param rightVNode the second VNode to check
709
+ * @param isInitialRender whether or not this is the first render of the vdom
696
710
  * @returns whether they're equal or not
697
711
  */
698
- const isSameVnode = (leftVNode, rightVNode) => {
712
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
699
713
  // compare if two vnode to see if they're "technically" the same
700
714
  // need to have the same element tag, and same key to be the same
701
715
  if (leftVNode.$tag$ === rightVNode.$tag$) {
@@ -710,8 +724,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
710
724
  *
711
725
  * @param oldVNode an old VNode whose DOM element and children we want to update
712
726
  * @param newVNode a new VNode representing an updated version of the old one
727
+ * @param isInitialRender whether or not this is the first render of the vdom
713
728
  */
714
- const patch = (oldVNode, newVNode) => {
729
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
715
730
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
716
731
  const oldChildren = oldVNode.$children$;
717
732
  const newChildren = newVNode.$children$;
@@ -731,7 +746,7 @@ const patch = (oldVNode, newVNode) => {
731
746
  if (oldChildren !== null && newChildren !== null) {
732
747
  // looks like there's child vnodes for both the old and new vnodes
733
748
  // so we need to call `updateChildren` to reconcile them
734
- updateChildren(elm, oldChildren, newVNode, newChildren);
749
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
735
750
  }
736
751
  else if (newChildren !== null) {
737
752
  // no old child vnodes, but there are new child vnodes to add
@@ -810,7 +825,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
810
825
  scopeId = hostElm['s-sc'];
811
826
  }
812
827
  // synchronous patch
813
- patch(oldVNode, rootVnode);
828
+ patch(oldVNode, rootVnode, isInitialLoad);
814
829
  };
815
830
  const attachToAncestor = (hostRef, ancestorComponent) => {
816
831
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1062,10 +1077,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1062
1077
  */
1063
1078
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1064
1079
  var _a;
1080
+ const prototype = Cstr.prototype;
1065
1081
  if (cmpMeta.$members$) {
1066
1082
  // It's better to have a const than two Object.entries()
1067
1083
  const members = Object.entries(cmpMeta.$members$);
1068
- const prototype = Cstr.prototype;
1069
1084
  members.map(([memberName, [memberFlags]]) => {
1070
1085
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1071
1086
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1088,6 +1103,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1088
1103
  const attrNameToPropName = new Map();
1089
1104
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1090
1105
  plt.jmp(() => {
1106
+ var _a;
1091
1107
  const propName = attrNameToPropName.get(attrName);
1092
1108
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1093
1109
  // in the case where an attribute was set inline.
@@ -1143,11 +1159,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1143
1159
  // 1. The instance is ready
1144
1160
  // 2. The watchers are ready
1145
1161
  // 3. The value has changed
1146
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1162
+ if (flags &&
1163
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1147
1164
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1148
1165
  newValue !== oldValue) {
1149
1166
  const instance = hostRef.$lazyInstance$ ;
1150
- const entry = cmpMeta.$watchers$[attrName];
1167
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1151
1168
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1152
1169
  if (instance[callbackName] != null) {
1153
1170
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1169,10 +1186,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1169
1186
  ...members
1170
1187
  .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1171
1188
  .map(([propName, m]) => {
1189
+ var _a;
1172
1190
  const attrName = m[1] || propName;
1173
1191
  attrNameToPropName.set(attrName, propName);
1174
1192
  if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1175
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1193
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1176
1194
  }
1177
1195
  return attrName;
1178
1196
  }),
@@ -1414,12 +1432,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1414
1432
  // If we have styles, add them to the DOM
1415
1433
  if (dataStyles.innerHTML.length) {
1416
1434
  dataStyles.setAttribute('data-styles', '');
1417
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1418
1435
  // Apply CSP nonce to the style tag if it exists
1419
1436
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1420
1437
  if (nonce != null) {
1421
1438
  dataStyles.setAttribute('nonce', nonce);
1422
1439
  }
1440
+ // Insert the styles into the document head
1441
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1442
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1423
1443
  }
1424
1444
  // Process deferred connectedCallbacks now all components have been registered
1425
1445
  isBootstrapping = false;
@@ -1497,19 +1517,19 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1497
1517
  return module[exportName];
1498
1518
  }
1499
1519
 
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);
1520
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1521
+ const processMod = importedModule => {
1522
+ cmpModules.set(bundleId, importedModule);
1523
+ return importedModule[exportName];
1524
+ }
1525
+ switch(bundleId) {
1526
+
1527
+ case 'mds-paginator-item.cjs':
1528
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1529
+ /* webpackMode: "lazy" */
1530
+ './mds-paginator-item.cjs.entry.js')); }).then(processMod, consoleError);
1531
+ }
1511
1532
  }
1512
- }
1513
1533
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1514
1534
  /* @vite-ignore */
1515
1535
  /* 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-96b46685.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-96b46685.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}.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-96b46685.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.7.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.9.1 | 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.9.1",
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, };
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  :host( [icon] ) {
118
- padding: 0px;
118
+ padding: 0rem;
119
119
  }
120
120
 
121
121
  :host( [selected] ) {
@@ -135,6 +135,6 @@
135
135
  }
136
136
 
137
137
  .icon {
138
- padding-left: 0px;
139
- padding-right: 0px;
138
+ padding-left: 0rem;
139
+ padding-right: 0rem;
140
140
  }