@maggioli-design-system/mds-paginator-item 2.7.0 → 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 (64) hide show
  1. package/dist/cjs/{index-ca3ab5ae.js → index-ed979b3c.js} +60 -23
  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-1d7e2aea.js → index-5129d91c.js} +60 -23
  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-5129d91c.js +1 -0
  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-0a3732e2.system.js +2 -0
  34. package/dist/mds-paginator-item/{p-0bbf5c4a.system.js → 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-0a3732e2.system.js +2 -0
  52. package/www/build/{p-0bbf5c4a.system.js → 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/esm-es5/index-1d7e2aea.js +0 -1
  57. package/dist/mds-paginator-item/p-01d3926b.js +0 -2
  58. package/dist/mds-paginator-item/p-14a1802e.system.entry.js +0 -1
  59. package/dist/mds-paginator-item/p-30a5273c.entry.js +0 -1
  60. package/dist/mds-paginator-item/p-902d51ca.system.js +0 -2
  61. package/www/build/p-01d3926b.js +0 -2
  62. package/www/build/p-14a1802e.system.entry.js +0 -1
  63. package/www/build/p-30a5273c.entry.js +0 -1
  64. package/www/build/p-902d51ca.system.js +0 -2
@@ -49,6 +49,13 @@ const uniqueTime = (key, measureText) => {
49
49
  }
50
50
  };
51
51
  const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
52
+ /**
53
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
54
+ *
55
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
56
+ * support as of Stencil v4.
57
+ */
58
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
52
59
  /**
53
60
  * Default style mode id
54
61
  */
@@ -269,6 +276,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
269
276
  }
270
277
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
271
278
  }
279
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
280
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
281
+ styleElm.innerHTML += SLOT_FB_CSS;
282
+ }
272
283
  if (appliedStyles) {
273
284
  appliedStyles.add(scopeId);
274
285
  }
@@ -353,7 +364,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
353
364
  elm[memberName] = newValue;
354
365
  }
355
366
  }
356
- 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
+ }
357
372
  }
358
373
  if (newValue == null || newValue === false) {
359
374
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -372,6 +387,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
372
387
  }
373
388
  };
374
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
+ */
375
395
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
376
396
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
377
397
  // if the element passed in is a shadow root, which is a document fragment
@@ -1051,10 +1071,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1051
1071
  */
1052
1072
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1053
1073
  var _a;
1074
+ const prototype = Cstr.prototype;
1054
1075
  if (cmpMeta.$members$) {
1055
1076
  // It's better to have a const than two Object.entries()
1056
1077
  const members = Object.entries(cmpMeta.$members$);
1057
- const prototype = Cstr.prototype;
1058
1078
  members.map(([memberName, [memberFlags]]) => {
1059
1079
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1060
1080
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1077,6 +1097,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1077
1097
  const attrNameToPropName = new Map();
1078
1098
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1079
1099
  plt.jmp(() => {
1100
+ var _a;
1080
1101
  const propName = attrNameToPropName.get(attrName);
1081
1102
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1082
1103
  // in the case where an attribute was set inline.
@@ -1132,11 +1153,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1132
1153
  // 1. The instance is ready
1133
1154
  // 2. The watchers are ready
1134
1155
  // 3. The value has changed
1135
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1156
+ if (flags &&
1157
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1136
1158
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1137
1159
  newValue !== oldValue) {
1138
1160
  const instance = hostRef.$lazyInstance$ ;
1139
- const entry = cmpMeta.$watchers$[attrName];
1161
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1140
1162
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1141
1163
  if (instance[callbackName] != null) {
1142
1164
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1158,10 +1180,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1158
1180
  ...members
1159
1181
  .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1160
1182
  .map(([propName, m]) => {
1183
+ var _a;
1161
1184
  const attrName = m[1] || propName;
1162
1185
  attrNameToPropName.set(attrName, propName);
1163
1186
  if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1164
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1187
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1165
1188
  }
1166
1189
  return attrName;
1167
1190
  }),
@@ -1319,12 +1342,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1319
1342
  const customElements = win.customElements;
1320
1343
  const head = doc.head;
1321
1344
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1322
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1345
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1323
1346
  const deferredConnectedCallbacks = [];
1324
1347
  let appLoadFallback;
1325
1348
  let isBootstrapping = true;
1326
1349
  Object.assign(plt, options);
1327
1350
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1351
+ let hasSlotRelocation = false;
1328
1352
  lazyBundles.map((lazyBundle) => {
1329
1353
  lazyBundle[1].map((compactMeta) => {
1330
1354
  const cmpMeta = {
@@ -1333,6 +1357,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1333
1357
  $members$: compactMeta[2],
1334
1358
  $listeners$: compactMeta[3],
1335
1359
  };
1360
+ // Check if we are using slots outside the shadow DOM in this component.
1361
+ // We'll use this information later to add styles for `slot-fb` elements
1362
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1363
+ hasSlotRelocation = true;
1364
+ }
1336
1365
  {
1337
1366
  cmpMeta.$members$ = compactMeta[2];
1338
1367
  }
@@ -1386,15 +1415,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1386
1415
  }
1387
1416
  });
1388
1417
  });
1418
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1419
+ if (hasSlotRelocation) {
1420
+ dataStyles.innerHTML += SLOT_FB_CSS;
1421
+ }
1422
+ // Add hydration styles
1389
1423
  {
1390
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1391
- visibilityStyle.setAttribute('data-styles', '');
1424
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1425
+ }
1426
+ // If we have styles, add them to the DOM
1427
+ if (dataStyles.innerHTML.length) {
1428
+ dataStyles.setAttribute('data-styles', '');
1429
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1392
1430
  // Apply CSP nonce to the style tag if it exists
1393
1431
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1394
1432
  if (nonce != null) {
1395
- visibilityStyle.setAttribute('nonce', nonce);
1433
+ dataStyles.setAttribute('nonce', nonce);
1396
1434
  }
1397
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1398
1435
  }
1399
1436
  // Process deferred connectedCallbacks now all components have been registered
1400
1437
  isBootstrapping = false;
@@ -1472,19 +1509,19 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1472
1509
  return module[exportName];
1473
1510
  }
1474
1511
 
1475
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1476
- const processMod = importedModule => {
1477
- cmpModules.set(bundleId, importedModule);
1478
- return importedModule[exportName];
1479
- }
1480
- switch(bundleId) {
1481
-
1482
- case 'mds-paginator-item.cjs':
1483
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1484
- /* webpackMode: "lazy" */
1485
- './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
+ }
1486
1524
  }
1487
- }
1488
1525
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1489
1526
  /* @vite-ignore */
1490
1527
  /* webpackInclude: /\.entry\.js$/ */
@@ -1559,7 +1596,7 @@ const flush = () => {
1559
1596
  }
1560
1597
  }
1561
1598
  };
1562
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1599
+ const nextTick = (cb) => promiseResolve().then(cb);
1563
1600
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1564
1601
 
1565
1602
  exports.Host = Host;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ca3ab5ae.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-ca3ab5ae.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-ca3ab5ae.js');
5
+ const index = require('./index-ed979b3c.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.7.1 | 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.1",
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
  }