@getflip/swirl-components 0.297.0 → 0.299.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/README.md +4 -4
  2. package/components.json +8 -4
  3. package/dist/cjs/swirl-action-list_2.cjs.entry.js +2 -2
  4. package/dist/cjs/swirl-app-layout_5.cjs.entry.js +7 -7
  5. package/dist/cjs/swirl-banner.cjs.entry.js +2 -2
  6. package/dist/cjs/swirl-button.cjs.entry.js +3 -3
  7. package/dist/cjs/swirl-chip.cjs.entry.js +2 -2
  8. package/dist/cjs/swirl-date-input.cjs.entry.js +2 -2
  9. package/dist/cjs/swirl-icon-check-small_2.cjs.entry.js +3 -3
  10. package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
  11. package/dist/cjs/swirl-inline-status.cjs.entry.js +2 -2
  12. package/dist/cjs/swirl-lightbox.cjs.entry.js +3 -2
  13. package/dist/cjs/swirl-menu.cjs.entry.js +3 -3
  14. package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +2 -2
  15. package/dist/cjs/swirl-search.cjs.entry.js +2 -2
  16. package/dist/cjs/swirl-skeleton-box.cjs.entry.js +4 -4
  17. package/dist/cjs/swirl-text-input.cjs.entry.js +2 -2
  18. package/dist/cjs/swirl-time-input.cjs.entry.js +2 -2
  19. package/dist/cjs/swirl-toast.cjs.entry.js +2 -2
  20. package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
  21. package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.js +2 -2
  22. package/dist/collection/components/swirl-app-layout/swirl-app-layout.js +5 -5
  23. package/dist/collection/components/swirl-banner/swirl-banner.js +2 -2
  24. package/dist/collection/components/swirl-button/swirl-button.js +3 -3
  25. package/dist/collection/components/swirl-chip/swirl-chip.js +2 -2
  26. package/dist/collection/components/swirl-date-input/swirl-date-input.js +2 -2
  27. package/dist/collection/components/swirl-inline-error/swirl-inline-error.js +2 -2
  28. package/dist/collection/components/swirl-inline-status/swirl-inline-status.js +2 -2
  29. package/dist/collection/components/swirl-lightbox/swirl-lightbox.js +3 -2
  30. package/dist/collection/components/swirl-lightbox/swirl-lightbox.stories.js +1 -1
  31. package/dist/collection/components/swirl-menu/swirl-menu.js +3 -3
  32. package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +3 -3
  33. package/dist/collection/components/swirl-resource-list-file-item/swirl-resource-list-file-item.js +2 -2
  34. package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +2 -2
  35. package/dist/collection/components/swirl-search/swirl-search.js +2 -2
  36. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.css +4 -0
  37. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.js +4 -4
  38. package/dist/collection/components/swirl-text-input/swirl-text-input.js +2 -2
  39. package/dist/collection/components/swirl-time-input/swirl-time-input.js +2 -2
  40. package/dist/collection/components/swirl-toast/swirl-toast.js +2 -2
  41. package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
  42. package/dist/components/swirl-action-list-item2.js +2 -2
  43. package/dist/components/swirl-app-layout2.js +5 -5
  44. package/dist/components/swirl-banner.js +2 -2
  45. package/dist/components/swirl-button2.js +3 -3
  46. package/dist/components/swirl-chip.js +2 -2
  47. package/dist/components/swirl-date-input.js +2 -2
  48. package/dist/components/swirl-inline-error2.js +2 -2
  49. package/dist/components/swirl-inline-status.js +2 -2
  50. package/dist/components/swirl-lightbox.js +3 -2
  51. package/dist/components/swirl-menu.js +3 -3
  52. package/dist/components/swirl-option-list-item2.js +3 -3
  53. package/dist/components/swirl-resource-list-file-item.js +2 -2
  54. package/dist/components/swirl-resource-list-item2.js +2 -2
  55. package/dist/components/swirl-search.js +2 -2
  56. package/dist/components/swirl-skeleton-box.js +4 -4
  57. package/dist/components/swirl-text-input2.js +2 -2
  58. package/dist/components/swirl-time-input.js +2 -2
  59. package/dist/components/swirl-toast2.js +2 -2
  60. package/dist/esm/swirl-action-list_2.entry.js +2 -2
  61. package/dist/esm/swirl-app-layout_5.entry.js +7 -7
  62. package/dist/esm/swirl-banner.entry.js +2 -2
  63. package/dist/esm/swirl-button.entry.js +3 -3
  64. package/dist/esm/swirl-chip.entry.js +2 -2
  65. package/dist/esm/swirl-date-input.entry.js +2 -2
  66. package/dist/esm/swirl-icon-check-small_2.entry.js +3 -3
  67. package/dist/esm/swirl-icon-error_3.entry.js +2 -2
  68. package/dist/esm/swirl-inline-status.entry.js +2 -2
  69. package/dist/esm/swirl-lightbox.entry.js +3 -2
  70. package/dist/esm/swirl-menu.entry.js +3 -3
  71. package/dist/esm/swirl-resource-list-file-item.entry.js +2 -2
  72. package/dist/esm/swirl-search.entry.js +2 -2
  73. package/dist/esm/swirl-skeleton-box.entry.js +4 -4
  74. package/dist/esm/swirl-text-input.entry.js +2 -2
  75. package/dist/esm/swirl-time-input.entry.js +2 -2
  76. package/dist/esm/swirl-toast.entry.js +2 -2
  77. package/dist/swirl-components/p-2d148cf8.entry.js +1 -0
  78. package/dist/swirl-components/p-3c5b114e.entry.js +1 -0
  79. package/dist/swirl-components/p-4372c68d.entry.js +1 -0
  80. package/dist/swirl-components/p-58ab0d31.entry.js +1 -0
  81. package/dist/swirl-components/p-5bea6fd3.entry.js +1 -0
  82. package/dist/swirl-components/p-7800ca4d.entry.js +1 -0
  83. package/dist/swirl-components/p-820fbb17.entry.js +1 -0
  84. package/dist/swirl-components/p-829fff09.entry.js +1 -0
  85. package/dist/swirl-components/p-99889b7b.entry.js +1 -0
  86. package/dist/swirl-components/{p-415a1080.entry.js → p-a36b160c.entry.js} +1 -1
  87. package/dist/swirl-components/p-ca27d895.entry.js +1 -0
  88. package/dist/swirl-components/p-cc758401.entry.js +1 -0
  89. package/dist/swirl-components/p-cd70ba86.entry.js +1 -0
  90. package/dist/swirl-components/p-ce86d711.entry.js +1 -0
  91. package/dist/swirl-components/p-ea76572f.entry.js +1 -0
  92. package/dist/swirl-components/p-f29f30f3.entry.js +1 -0
  93. package/dist/swirl-components/p-f71adfa0.entry.js +1 -0
  94. package/dist/swirl-components/swirl-components.esm.js +1 -1
  95. package/dist/types/components/swirl-skeleton-box/swirl-skeleton-box.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/vscode-data.json +3 -0
  98. package/dist/swirl-components/p-0083a620.entry.js +0 -1
  99. package/dist/swirl-components/p-151d50a5.entry.js +0 -1
  100. package/dist/swirl-components/p-16282e45.entry.js +0 -1
  101. package/dist/swirl-components/p-1abf02f9.entry.js +0 -1
  102. package/dist/swirl-components/p-21bf69e8.entry.js +0 -1
  103. package/dist/swirl-components/p-360a7193.entry.js +0 -1
  104. package/dist/swirl-components/p-68300fb3.entry.js +0 -1
  105. package/dist/swirl-components/p-6dd2c30a.entry.js +0 -1
  106. package/dist/swirl-components/p-7da150e3.entry.js +0 -1
  107. package/dist/swirl-components/p-7e51e859.entry.js +0 -1
  108. package/dist/swirl-components/p-8489a387.entry.js +0 -1
  109. package/dist/swirl-components/p-9122a6b8.entry.js +0 -1
  110. package/dist/swirl-components/p-c88d6162.entry.js +0 -1
  111. package/dist/swirl-components/p-e42f25e9.entry.js +0 -1
  112. package/dist/swirl-components/p-f4975e1f.entry.js +0 -1
  113. package/dist/swirl-components/p-f4c52863.entry.js +0 -1
@@ -25,7 +25,7 @@ export class SwirlActionListItem {
25
25
  }
26
26
  componentDidLoad() {
27
27
  this.forceIconProps(this.desktopMediaQuery.matches);
28
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
28
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
29
29
  }
30
30
  componentDidRender() {
31
31
  this.forceIconProps(this.desktopMediaQuery.matches);
@@ -50,7 +50,7 @@ export class SwirlActionListItem {
50
50
  const showSuffixSlot = Boolean(this.el.querySelector('[slot="suffix"]'));
51
51
  const showSuffix = (Boolean(this.suffix) || showSuffixSlot) && !this.disabled;
52
52
  const className = classnames("action-list-item", `action-list-item--intent-${this.intent}`, `action-list-item--size-${this.size}`);
53
- return (h(Host, { key: '7b4f52c16da4f4f5c2c9a51856c9aae7e9c04f23' }, h("button", { key: 'a74a9c60edc2a183c04f93e9030554c551ceba67', "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, class: className, disabled: this.disabled, part: "action-list-item", role: "menuitem", tabIndex: -1, type: "button" }, h("slot", { key: '9bb61a72d80c55a35e0dc3c809d8bebb7ff30437', name: "avatar" }), this.icon && (h("span", { key: 'ba49170992a1dc9e6d8b68e64af781273bf4b7e8', class: "action-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (h("span", { key: '3284724f84d3d6e018f244cde0a7ddc233f7459d', class: "action-list-item__icon-badge", innerHTML: this.iconBadge, ref: (el) => (this.iconBadgeEl = el) })))), h("span", { key: '2084ba440fee7881921d10781ab0100c8aef26d6', class: "action-list-item__label-container" }, h("span", { key: '81d4f0652172c6e468b7a6d5c2381d05905d5e22', class: "action-list-item__label" }, this.label), this.description && (h("span", { key: 'f09d273290bfc00630c592ed45013b565845eb5a', class: "action-list-item__description" }, this.description))), showBadge && (h("span", { key: '06cfa9c3a1af2b53a472b472529267549b4926de', class: "action-list-item__badge", innerHTML: this.badge })), showSuffix && (h("span", { key: '7ab7dd54bb3f1e2c9cac00dbf98775e18f66ab98', class: "action-list-item__suffix", innerHTML: !showSuffixSlot ? this.suffix : undefined, ref: (el) => (this.suffixEl = el) }, h("slot", { key: 'f2bd1ae7bf49c5e22757dbdb23fada915ab13e2a', name: "suffix" }))))));
53
+ return (h(Host, { key: 'cf72c77a7238b89ac5737fbd26a4f9c5fb8d2aaf' }, h("button", { key: 'b883df9fba48c6f1e3fa18cb2acbddcb1c4f7903', "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, class: className, disabled: this.disabled, part: "action-list-item", role: "menuitem", tabIndex: -1, type: "button" }, h("slot", { key: '2903ffa6a0b97a9d1f30a3ab485a5f4625016893', name: "avatar" }), this.icon && (h("span", { key: '687e8b468e26a239a45829f5448e3f4fae991a18', class: "action-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (h("span", { key: 'db6fa0aa9ee28b495febd9278f464add1d195295', class: "action-list-item__icon-badge", innerHTML: this.iconBadge, ref: (el) => (this.iconBadgeEl = el) })))), h("span", { key: 'd64137da6c8345faf3fb14f6963b267e2bc83f91', class: "action-list-item__label-container" }, h("span", { key: 'a7e623ccfdaef36bd426f4e0121337926a04132c', class: "action-list-item__label" }, this.label), this.description && (h("span", { key: 'eae257be5f0974019afdd7a1517c2efed55d397c', class: "action-list-item__description" }, this.description))), showBadge && (h("span", { key: 'f6837cf900a859145f4360ec9d407ea51659c0f0', class: "action-list-item__badge", innerHTML: this.badge })), showSuffix && (h("span", { key: '4aa5cd117be445a278cefcd6c7ffaea2e72a642e', class: "action-list-item__suffix", innerHTML: !showSuffixSlot ? this.suffix : undefined, ref: (el) => (this.suffixEl = el) }, h("slot", { key: 'c496345eea881fc5d6742710a053aa45cd4d94e6', name: "suffix" }))))));
54
54
  }
55
55
  static get is() { return "swirl-action-list-item"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -113,7 +113,7 @@ export class SwirlAppLayout {
113
113
  });
114
114
  }
115
115
  componentDidLoad() {
116
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
116
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
117
117
  queueMicrotask(() => {
118
118
  this.isDesktop = this.desktopMediaQuery.matches;
119
119
  this.restoreNavExpansionState();
@@ -349,14 +349,14 @@ export class SwirlAppLayout {
349
349
  "app-layout--sidebar-scrollable": this.sidebarScrollState.scrollable,
350
350
  "app-layout--sidebar-scrolled-to-top": this.sidebarScrollState.scrolledToTop,
351
351
  });
352
- return (h(Host, { key: 'bd1757d198f8e629b2e9754b47c30ebe5dc419a9' }, h("section", { key: '28b25940f98881967f1b39fabec35a839751159c', "aria-labelledby": "app-name", class: className }, h("div", { key: '52a19dc00ab90f4d0b774f84501e3eece9b4f42e', class: "app-layout__grid" }, h("header", { key: '820a3e03ad0c622e73df292141e78ffc5196f968', class: "app-layout__header", ref: (el) => (this.headerEl = el) }, h("span", { key: 'b3706641288a68f18319f0e4e5ba3ef47d6f398c', class: "app-layout__navigation-mobile-menu-button" }, h("slot", { key: 'e5cacf0ebf353dd1760ef0b7dc124b0160554b12', name: "navigation-mobile-menu-button" })), this.collapsibleNavigation && (h("span", { key: '1e5e367858b4ae2ff731d96c9274c2dc580f47aa', class: "app-layout__nav-overlay-toggle" }, h("swirl-button", { key: '50d53650575d35d0fa744371e4b1b66b8c34632f', hideLabel: true, icon: this.navExpansionState !== "expanded"
352
+ return (h(Host, { key: 'e9ce1a534b9acff55e07b798afb306e07a619a81' }, h("section", { key: '4d328d6707d7dff74ad9c6016af1ada8f1384e28', "aria-labelledby": "app-name", class: className }, h("div", { key: '2b7e59a9abf6c8d1379136e1446ce7e708974f43', class: "app-layout__grid" }, h("header", { key: 'e3e8a94655fa12bc7daa7b9ae984217654d5d8d0', class: "app-layout__header", ref: (el) => (this.headerEl = el) }, h("span", { key: '4842de5ed8cb9d055f75426f09d4c4221ce3248c', class: "app-layout__navigation-mobile-menu-button" }, h("slot", { key: '24607acca33855b93dba77e0cab7b43cc19dbf6f', name: "navigation-mobile-menu-button" })), this.collapsibleNavigation && (h("span", { key: 'b5e0b5c1ab49c9a77de1e6d8c9157cf907a5d331', class: "app-layout__nav-overlay-toggle" }, h("swirl-button", { key: 'de84a867b3b81da15a8a1a91feaf3d555b05d830', hideLabel: true, icon: this.navExpansionState !== "expanded"
353
353
  ? "<swirl-icon-dock-left-expand></swirl-icon-dock-left-expand>"
354
- : "<swirl-icon-dock-left-collapse></swirl-icon-dock-left-collapse>", label: this.navigationToggleLabel, onClick: this.toggleNavigation }))), this.showNavigationBackButton && (h("span", { key: 'c7ee551266b168aac662963dba75667cf201a48e', class: "app-layout__navigation-back-button" }, h("swirl-button", { key: '448cbde3919cdd986b7b49933d6afa8e96646db6', hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), h("swirl-heading", { key: '3c467742d3c0f80fe5aa56987c868a3b4e253988', as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 3, text: this.appName }), navigationActive && (h("span", { key: '80c04d971369df12490ae87d86664622aeb601b7', class: "app-layout__navigation-controls" }, h("slot", { key: '8e732928e682abe5eef49fc22614907f0fec0a91', name: "navigation-controls" })))), h("nav", { key: '71c3dc8235d56ce5c9cbfa5b701e020a735d6a22', "aria-label": this.navigationLabel, class: "app-layout__navigation", onScroll: this.onNavScroll, ref: (el) => (this.navEl = el), inert: this.isDesktop &&
354
+ : "<swirl-icon-dock-left-collapse></swirl-icon-dock-left-collapse>", label: this.navigationToggleLabel, onClick: this.toggleNavigation }))), this.showNavigationBackButton && (h("span", { key: '7a146162ce324567d3bd9ac1e94fb4270e841491', class: "app-layout__navigation-back-button" }, h("swirl-button", { key: '01e4e8588d68a858b3199883255a4de4a5890bf3', hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), h("swirl-heading", { key: '89125641f790dfc3134265a212768b6aa8f17f25', as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 3, text: this.appName }), navigationActive && (h("span", { key: '695f0de46afd902d3d69bd85d74ef9915a5a9c75', class: "app-layout__navigation-controls" }, h("slot", { key: '2f239735632860d0edfe5fb967bac05b21f14452', name: "navigation-controls" })))), h("nav", { key: '3bc5df6af2555a12164b8695f2b1b637ec2d086d', "aria-label": this.navigationLabel, class: "app-layout__navigation", onScroll: this.onNavScroll, ref: (el) => (this.navEl = el), inert: this.isDesktop &&
355
355
  this.collapsibleNavigation &&
356
- this.navExpansionState === "collapsed" }, h("slot", { key: 'f6a8b3b5bf48ca9a00017f907c7e1e4c245a129e', name: "navigation" })), h("section", { key: 'e44e1e6b08465e000378c80339b11680a1a8e725', "aria-labelledby": "app-name", class: "app-layout__body" }, !this.hideAppBar && (h("header", { key: '3e0019dd933bc095980a871010a8723ebf95c89d', class: "app-layout__app-bar" }, h("span", { key: '1d2437a685cbba57563aa942c6dea4f5dc7ad728', class: "app-layout__app-bar-mobile-menu-button" }, h("slot", { key: 'a6f8147d45b2cc9aa877cb549f2e52e47a02975b', name: "app-bar-mobile-menu-button" })), showBackToNavigationButton && (h("span", { key: '7678ad0057afab1ec8845940271a5e19d659c976', class: "app-layout__back-to-navigation-button" }, h("swirl-button", { key: '920ad1ff5b75f93179c4bf07ab56f3d042dd58ba', hideLabel: true, icon: this.transitionStyle === "dialog"
356
+ this.navExpansionState === "collapsed" }, h("slot", { key: 'd5e1ac3dc3187e1b4761b83d66d4fa98c7c4e3b4', name: "navigation" })), h("section", { key: '422313cc9de344ef4b66a37f0f69b709b6f71687', "aria-labelledby": "app-name", class: "app-layout__body" }, !this.hideAppBar && (h("header", { key: '46ea9b5669da12d8e78151977dc55b1e197e8dcb', class: "app-layout__app-bar" }, h("span", { key: 'b35d5938aadcdffa64b8927c096bb3f5b87fa349', class: "app-layout__app-bar-mobile-menu-button" }, h("slot", { key: '2be2762f6d1cfdf8f569006557b5c51b8fc28b36', name: "app-bar-mobile-menu-button" })), showBackToNavigationButton && (h("span", { key: 'edfb91e719c8b77c73e945ca138f334fca56540b', class: "app-layout__back-to-navigation-button" }, h("swirl-button", { key: 'e8cc48db20975a04dd63a8dc86c39b86bbb5630f', hideLabel: true, icon: this.transitionStyle === "dialog"
357
357
  ? "<swirl-icon-close></swirl-icon-close>"
358
358
  : "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backToNavigationViewButtonLabel, onClick: this.onBackToNavigationViewButtonClick }))), this.collapsibleNavigation &&
359
- this.navExpansionState !== "expanded" && (h("span", { key: '4356a054ba73b43ab719983f5e28f08618187c87', class: "app-layout__nav-expansion-toggle" }, h("swirl-button", { key: '0dcc0b5175f72e651e9ba8fc54343bb8b10f044b', hideLabel: true, icon: "<swirl-icon-hamburger-menu></swirl-icon-hamburger-menu>", label: this.navigationOverlayLabel, onClick: this.overlayNavigation }))), h("span", { key: 'c409377d66e5d9653c3a4edacd00a7d1c36d41d8', class: "app-layout__custom-app-bar-back-button" }, h("slot", { key: '19f1249cca6eb3d297c1bfb5c1237adf0563615d', name: "custom-app-bar-back-button" })), h("div", { key: '4d8ffb803fd1d60aeedc3abb27c2b587126b0809', class: "app-layout__app-bar-content" }, h("slot", { key: 'aa9769d6902c0dcea2873ed874d9efd39bcfdccb', name: "app-bar" })), h("div", { key: '87956c0906c878a60ba38a32ddd84b62e64c341d', class: "app-layout__app-bar-controls" }, h("slot", { key: 'de90973e95f87d557659269036fe3ba2ff841514', name: "app-bar-controls" })))), h("div", { key: '9092cbe26316ae42d16271d12ca0e22dba5f1d2d', class: "app-layout__banner" }, h("slot", { key: '442bba275cb42942e1f0910d9c02dda2a9af682f', name: "banner" })), h("div", { key: '924a188b2bbe99a0e75c70f1c7f5625995f1a099', class: "app-layout__content", onScroll: this.onContentScroll, ref: (el) => (this.contentEl = el) }, h("slot", { key: '94d6c1a191484f78595cc39eab5ff8229603d75d', name: "content" })), h("div", { key: '7c6aea10fad5a2852e7dd7c1faf2537e561ca7f7', class: "app-layout__bottom-bar" }, h("slot", { key: '425f8d91ec4c6970224cb8384ffa40c5f3242bec', name: "bottom-bar" }))), h("aside", { key: '7849759ec39060fa137dba9b466211568cd0746a', class: "app-layout__sidebar" }, h("header", { key: 'aaa9d7aaf245afee95d5b10bbe6cdd0fc3b0467f', class: "app-layout__custom-sidebar-header" }, h("slot", { key: '9d215a803a91fe07e6f819a19ee44ff87e279fe4', name: "custom-sidebar-header" })), h("header", { key: '4c148f600be258693004721d74cfeacce295a54b', class: "app-layout__sidebar-header" }, h("swirl-button", { key: 'f4b0155f52a24d448fe3215d765bd5c6984f100e', class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), h("swirl-heading", { key: '69992a92cd4ec148de847b7235ec35b50d28beae', as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 3, text: this.sidebarHeading })), h("div", { key: 'efba1faaebfc7fe100b0d53a1c5a5de79f5b7a29', class: "app-layout__sidebar-content", onScroll: this.onSidebarScroll, ref: (el) => (this.sidebarEl = el) }, h("slot", { key: 'f297a2f2db5bdafd7a88d7fea6fec50b8bac8e75', name: "sidebar" }))), h("span", { key: '4e87773e33eacaa27710a018e9f07803dc267ae9', class: "app-layout__floating-action-button" }, this.ctaLabel && (h("swirl-button", { key: '704b7695fd2ece0c20f971f158e04cec95ffdb4f', hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })), h("slot", { key: 'a4c4bcfb8f498c7c6b878016ca84a29c7443c3d1', name: "floating-action-button" }))))));
359
+ this.navExpansionState !== "expanded" && (h("span", { key: '8c96a9e2f67470bd86c72d66272306901585d81e', class: "app-layout__nav-expansion-toggle" }, h("swirl-button", { key: '36b26a023643f6fc3f43d2df344583004ee60b78', hideLabel: true, icon: "<swirl-icon-hamburger-menu></swirl-icon-hamburger-menu>", label: this.navigationOverlayLabel, onClick: this.overlayNavigation }))), h("span", { key: 'b005af6a600db164a8251478d8d6f0b63dad6d48', class: "app-layout__custom-app-bar-back-button" }, h("slot", { key: '829e1e1145543dbb9658566051e69d28095ed4ee', name: "custom-app-bar-back-button" })), h("div", { key: 'e25d3fe097657c6ce637d075d7f886faebb8dcde', class: "app-layout__app-bar-content" }, h("slot", { key: '7913c7ce6ca420a4ea5c6640e57e8718c5b8cdc5', name: "app-bar" })), h("div", { key: '5f6df0102cebfcaaa4e2bde25e218e6a506c81ca', class: "app-layout__app-bar-controls" }, h("slot", { key: 'b4b19bf2bb4a51732f9ea647758b42721169aa5e', name: "app-bar-controls" })))), h("div", { key: 'a1cbbdffab4675813ee104abcdcf5722ad33242e', class: "app-layout__banner" }, h("slot", { key: '0fc317305b8d94dc2670f2731ab7ac841ddad69e', name: "banner" })), h("div", { key: '6c434829a6c78aeaea9f084735122d685b1ca636', class: "app-layout__content", onScroll: this.onContentScroll, ref: (el) => (this.contentEl = el) }, h("slot", { key: '5ab35d69d738ac114725661f296f89624ce5aa21', name: "content" })), h("div", { key: '14a299ef135a30d6f8975db14bdb668e79c39b7b', class: "app-layout__bottom-bar" }, h("slot", { key: 'b6f039e3ca95a896c38bfa97943b46f21d0688e4', name: "bottom-bar" }))), h("aside", { key: '403077f3384c185e97eb0205f11a932e4c1ad76c', class: "app-layout__sidebar" }, h("header", { key: 'a951e471e8363a025b4ba1ce377e7e1ef17d7e79', class: "app-layout__custom-sidebar-header" }, h("slot", { key: 'f6e9ca768e57b30b3faa072250fe9c0cba196b5c', name: "custom-sidebar-header" })), h("header", { key: '1ff00d0311949b3bdacb38ebef268a5b6e3aa00d', class: "app-layout__sidebar-header" }, h("swirl-button", { key: 'cc5a33cb40af30a16fdd9442fc34de516022c15d', class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), h("swirl-heading", { key: '96241a517463e025991a2c376e450e5128086209', as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 3, text: this.sidebarHeading })), h("div", { key: 'a0f11ec60312ab95b56ae4465f23cd0e60f8c3e9', class: "app-layout__sidebar-content", onScroll: this.onSidebarScroll, ref: (el) => (this.sidebarEl = el) }, h("slot", { key: 'ed6139ae751d7701098e441d9bde7faa10d6ea1c', name: "sidebar" }))), h("span", { key: 'ea00d4875343af4d76c96c3591931b342098c0e4', class: "app-layout__floating-action-button" }, this.ctaLabel && (h("swirl-button", { key: 'd29b393a6ac566bf7b3eac1b6080f7da67e25b7f', hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })), h("slot", { key: '7952de1a32de0b06d50911abcd9267ccb323e819', name: "floating-action-button" }))))));
360
360
  }
361
361
  static get is() { return "swirl-app-layout"; }
362
362
  static get encapsulation() { return "shadow"; }
@@ -32,7 +32,7 @@ export class SwirlBanner {
32
32
  }
33
33
  componentDidLoad() {
34
34
  this.forceIconProps(this.desktopMediaQuery.matches);
35
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
35
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
36
36
  }
37
37
  disconnectedCallback() {
38
38
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -53,7 +53,7 @@ export class SwirlBanner {
53
53
  const className = classnames("banner", `banner--intent-${this.intent}`, `banner--size-${this.size}`, {
54
54
  "banner--has-icon": showIcon,
55
55
  });
56
- return (h(Host, { key: '2b926334556876ce750c890243dac923d8ae5b75' }, h("div", { key: 'f7aefa810673bd5e18a5c14aac01a078298df404', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, h("div", { key: '9712a2db49d78fc6228e91f696e442c316b62231', class: "banner__content", id: "content", part: "banner__content" }, showIcon && (h("span", { key: '5632af1834cd2ffd0918628e53dcbc766fc0c29c', "aria-hidden": "true", class: "banner__icon", innerHTML: icon, ref: (el) => (this.iconEl = el) })), h("span", { key: 'f5bfc1bf786936873522b8c42763166b9bb4b22a', class: "banner__text" }, this.content)), showControls && (h("div", { key: '18b8931ee8cfdbecca4ac7330049321023f3f1fb', class: "banner__controls" }, this.actionLabel && (h("button", { key: 'b6c7913a77b3872a74ba8c2770803379d268e5c3', class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel)), this.dismissable && (h("button", { key: '9119dad3a6d3526e5aebbd0ede243373b7072252', "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (el) => (this.dismissButtonEl = el), type: "button" }, h("swirl-icon-close", { key: 'b0a59c1a5104ee71bc31be6c2f5648afbf1748f1' }))))))));
56
+ return (h(Host, { key: 'be4bdebb17f5f9611c21c9eded65510ce2cf8427' }, h("div", { key: '2153f4b7cc6565e5a525f1131ce48b74ee2ebc7a', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, h("div", { key: '010865c0f43d00bfff18d7c510f48b191bb5b025', class: "banner__content", id: "content", part: "banner__content" }, showIcon && (h("span", { key: 'e33800d612c9bf594e3db60acf599357b0851383', "aria-hidden": "true", class: "banner__icon", innerHTML: icon, ref: (el) => (this.iconEl = el) })), h("span", { key: '03e082a2db918623b06b1487fd2bdfc6f270e08e', class: "banner__text" }, this.content)), showControls && (h("div", { key: 'a2041ef90d239380260e150581b7b06ed5dbc4b2', class: "banner__controls" }, this.actionLabel && (h("button", { key: 'c8a469c6d1ac12a9ba66fc1b3a4fdf252aeb8c52', class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel)), this.dismissable && (h("button", { key: 'a49e1ac3a5188b0344794fd93f7d5d56f3a520d1', "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (el) => (this.dismissButtonEl = el), type: "button" }, h("swirl-icon-close", { key: '95f2d21a48eeb6c5cc845d1dc674502ed89a0467' }))))))));
57
57
  }
58
58
  static get is() { return "swirl-banner"; }
59
59
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class SwirlButton {
40
40
  componentDidLoad() {
41
41
  this.forceIconProps(this.desktopMediaQuery.matches);
42
42
  this.updateFormAttribute();
43
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
43
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
44
44
  }
45
45
  componentDidRender() {
46
46
  this.forceIconProps(this.desktopMediaQuery.matches);
@@ -95,9 +95,9 @@ export class SwirlButton {
95
95
  "button--pressed": this.pressed,
96
96
  });
97
97
  const Tag = isLink ? "a" : "button";
98
- return (h(Host, { key: '644f280827046e78c58e7c45647c5c0552e95463', style: { pointerEvents: this.disabled ? "none" : "" } }, h(Tag, { key: '23a5862e91f6f7d9fd6a2dd85e9c75bc90c559a1', "aria-controls": this.swirlAriaControls, "aria-current": this.swirlAriaCurrent, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, "aria-label": ariaLabel, "aria-pressed": this.pressed ? "true" : undefined, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, ref: (el) => (this.buttonEl = el), target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value, style: this.inheritFontSize
98
+ return (h(Host, { key: '9c5a6973ea658678167f384b99703c2a5cc932e6', style: { pointerEvents: this.disabled ? "none" : "" } }, h(Tag, { key: 'd8d39728274e53aef4a028478ecc6834539c975f', "aria-controls": this.swirlAriaControls, "aria-current": this.swirlAriaCurrent, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, "aria-label": ariaLabel, "aria-pressed": this.pressed ? "true" : undefined, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, ref: (el) => (this.buttonEl = el), target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value, style: this.inheritFontSize
99
99
  ? { fontSize: "inherit", lineHeight: "inherit" }
100
- : {} }, Boolean(this.icon) && (h("span", { key: '37948fe0cb6315080a42a0a0e9d7f14df87db473', class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !Boolean(this.icon) && (h("span", { key: '39cb7279f339fc9b102edc990202adc71424cca0', class: "button__icon", ref: (el) => (this.iconEl = el) }, h("slot", { key: '9b176cfb970a3eabc3de0222cdb2dcc09a74017e', name: "icon" }))), !hideLabel && h("span", { key: '2784fc9b630954936434165b537358d5950083ae', class: "button__label" }, this.label), hasTag && (h("span", { key: '8e2335251d17103e3f79200090be9af69e4420e3', class: "button__tag" }, h("slot", { key: '101ab368afa228413d9aac05caa7b77ddbcc858d', name: "tag" }))))));
100
+ : {} }, Boolean(this.icon) && (h("span", { key: 'f8c59b55181804a88e7fbea215955394581085d0', class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !Boolean(this.icon) && (h("span", { key: 'f10549e0f2a5a0ad195bf7a9622dd6764f22074d', class: "button__icon", ref: (el) => (this.iconEl = el) }, h("slot", { key: 'd20e1abea1853532c4db9285554e08c01bbd2110', name: "icon" }))), !hideLabel && h("span", { key: '1953a32f75eab8d16f8d8b370869b58d7293b83d', class: "button__label" }, this.label), hasTag && (h("span", { key: 'ba2fd1ab2514f309dbe41b07440a1e034173756b', class: "button__tag" }, h("slot", { key: '79d7921baa4f8744ee3f1328f73f7427c4bf89ba', name: "tag" }))))));
101
101
  }
102
102
  static get is() { return "swirl-button"; }
103
103
  static get encapsulation() { return "scoped"; }
@@ -26,7 +26,7 @@ export class SwirlChip {
26
26
  }
27
27
  componentDidLoad() {
28
28
  this.forceIconProps(this.desktopMediaQuery.matches);
29
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
29
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
30
30
  }
31
31
  disconnectedCallback() {
32
32
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -49,7 +49,7 @@ export class SwirlChip {
49
49
  "chip--interactive": this.interactive || this.pressed !== undefined,
50
50
  "chip--removable": this.removable,
51
51
  });
52
- return (h(Host, { key: '9b1e52461918edbaac63ee90bf5a3e553f9d310e' }, h(Tag, { key: 'dcbc86988cd9e4227c8d567c84daa76b9ac739cd', "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined, class: className, onClick: this.chipClick.emit, type: this.interactive ? "button" : undefined }, h("span", { key: '04997af02a853a3baa62a1f26bcc2a6d7f0d0e23', class: "chip__inner" }, showAvatar && (h("span", { key: 'd58d29238444cdd44a7a4d1fc8e1f1dcba15c6d7', class: "chip__avatar" }, h("slot", { key: '59705540be0270d9c03dc282d0b95323baddc4fc', name: "avatar" }))), showIcon && (h("span", { key: '8d568bc86288170c642834787f6f62d14385cfe1', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: 'b8242740bd0becbd22b2569a9dee60ac46146f46', class: "chip__label" }, this.label)), this.progress !== undefined && (h("span", { key: '8dab74c41f4521d82cdc1aa7abac3d0a12c76af9', class: "chip__progress-indicator" }, h("swirl-progress-indicator", { key: '9ba51b553551ff5c0d2e163fc9c5b7106089bca7', label: this.progressBarLabel, value: this.progress })))), this.removable && (h("button", { key: '730613d93c56281943e0a036cc2afad9e967b1f0', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.removeChip.emit, type: "button" }, h("swirl-icon-close", { key: '06051a334307deb3d0e0b4de1b4fa23a986c4a17', size: 20 })))));
52
+ return (h(Host, { key: '3fa170e58fcdd39a85afb56ec10f8f77615eb9b9' }, h(Tag, { key: '4e96ce9cd653f9afa6a335734a25c10f92c42edc', "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined, class: className, onClick: this.chipClick.emit, type: this.interactive ? "button" : undefined }, h("span", { key: '9b6107cc84794c069d0ff46031b886b3f0d4b78e', class: "chip__inner" }, showAvatar && (h("span", { key: 'd8a1a42f5ddede7223b78b617171eff7dd065906', class: "chip__avatar" }, h("slot", { key: '1bc65807864057fca37fcfec7599bf3606e9384f', name: "avatar" }))), showIcon && (h("span", { key: '0baa6dc9f1241a05a11882a4bc748963241e681d', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: 'd215f1a4d64e8b41648aaa19571f23c90e8a1fc1', class: "chip__label" }, this.label)), this.progress !== undefined && (h("span", { key: '173af6fba33eb25cc8d07a24e38757dd5738138b', class: "chip__progress-indicator" }, h("swirl-progress-indicator", { key: '46bc43fcc5da5d003bfb71991941fa758d8bae36', label: this.progressBarLabel, value: this.progress })))), this.removable && (h("button", { key: 'eb8945c1ca5f26d8d95776c6cb6de10b1b9d985a', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.removeChip.emit, type: "button" }, h("swirl-icon-close", { key: 'c554907b6bcbfbf0b35da2091209b9256e60e545', size: 20 })))));
53
53
  }
54
54
  static get is() { return "swirl-chip"; }
55
55
  static get encapsulation() { return "scoped"; }
@@ -89,7 +89,7 @@ export class SwirlDateInput {
89
89
  componentDidLoad() {
90
90
  this.setupMask();
91
91
  this.updateIconSize(this.desktopMediaQuery.matches);
92
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
92
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
93
93
  // see https://stackoverflow.com/a/27314017
94
94
  if (this.autoFocus) {
95
95
  this.focus();
@@ -148,7 +148,7 @@ export class SwirlDateInput {
148
148
  const className = classnames("date-input", {
149
149
  "date-input--inline": this.inline,
150
150
  });
151
- return (h(Host, { key: '8c8bf188577829729309ee11a4de95303f72fcfe' }, h("div", { key: '9c2593938d02edaa8139ecc0476a9b0b3f50c909', class: className }, h("input", { key: '89f21a6cfc56b79f5898d088117f175d81b5e055', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, readonly: this.readonly, id: this.id, inputmode: "numeric", onClick: this.onClick, onMouseDown: this.onMouseDown, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), h("swirl-popover-trigger", { key: '0ce0f0b42b837a5ee839a03373dce8b604c85420', swirlPopover: `popover-${this.id}` }, h("button", { key: '01c8c8125a6941e800da12938f8b36abc4d095eb', "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, type: "button" }, h("swirl-icon-today", { key: '395679e33fecef4d7a949b80e8e5f345b4cdedef', size: this.iconSize })))), !this.disabled && (h("swirl-popover", { key: 'c939e2811538e1e3e9ca74e9159a282fa06449ca', animation: "scale-in-y", class: "date-input__date-picker-popover", id: `popover-${this.id}`, label: this.datePickerLabel, placement: "bottom-end", ref: (el) => (this.pickerPopover = el) }, h("swirl-date-picker", { key: '73375240299d16518e12ee97eeeafeda6946bb1b', disableDate: this.datePickerDisableDate, firstDayOfWeek: this.firstDayOfWeek, labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue, startDate: dateValue })))));
151
+ return (h(Host, { key: '40aee0ed18df588c7e7de56ac15d2a899229240d' }, h("div", { key: 'ec0931b258f5de0aed8f4bb474ee7fafdb6f015b', class: className }, h("input", { key: 'e167d4115c27b58cdb35b135dcbd90c048063cb2', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, readonly: this.readonly, id: this.id, inputmode: "numeric", onClick: this.onClick, onMouseDown: this.onMouseDown, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), h("swirl-popover-trigger", { key: '8935b2ae6de652d302dacf729a1d10c1e98b1a83', swirlPopover: `popover-${this.id}` }, h("button", { key: '1f409c2f827c813b76e06aa7c10204c5e5984dc4', "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, type: "button" }, h("swirl-icon-today", { key: '0ae84ce7a870a5a6ccb6de23db3f90aaeedafc7d', size: this.iconSize })))), !this.disabled && (h("swirl-popover", { key: '8770b10b3bee1fffd7a71afad25cc889882b17f4', animation: "scale-in-y", class: "date-input__date-picker-popover", id: `popover-${this.id}`, label: this.datePickerLabel, placement: "bottom-end", ref: (el) => (this.pickerPopover = el) }, h("swirl-date-picker", { key: '26269ce9a256f6dfedceeab811a427dd642a8aab', disableDate: this.datePickerDisableDate, firstDayOfWeek: this.firstDayOfWeek, labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue, startDate: dateValue })))));
152
152
  }
153
153
  static get is() { return "swirl-date-input"; }
154
154
  static get encapsulation() { return "scoped"; }
@@ -12,7 +12,7 @@ export class SwirlInlineError {
12
12
  }
13
13
  componentDidLoad() {
14
14
  this.forceIconProps(this.desktopMediaQuery.matches);
15
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
15
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
16
16
  }
17
17
  disconnectedCallback() {
18
18
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -33,7 +33,7 @@ export class SwirlInlineError {
33
33
  }
34
34
  render() {
35
35
  const className = classnames("inline-error", `inline-error--size-${this.size}`);
36
- return (h(Host, { key: '3f568bd195f0a6eabc82ad6a402434f3d7bcf3b8' }, h("span", { key: 'fc7e9ac9e6b5a6dc401737cdd6b9babf71811e95', class: className, part: "inline-error" }, h("span", { key: '88e7db779d383a22385a9fcfcfbd9a39319e803a', class: "inline-error__icon", ref: (el) => (this.iconEl = el) }, h("swirl-icon-error", { key: '712fd1796cda54600076d02e37a1fbc3380c71ba' })), h("span", { key: 'a17404c64edd76af0d83f273da947a82700402da', class: "inline-error__message" }, this.message))));
36
+ return (h(Host, { key: '03ae6eed446e44d9298186c4c4290636e77677b5' }, h("span", { key: 'a15e36cd1849e826a6cd578d50d3582e34bf1144', class: className, part: "inline-error" }, h("span", { key: 'c81ca9d7f26de1c5cd4d70a806b7e58b0baa3f6d', class: "inline-error__icon", ref: (el) => (this.iconEl = el) }, h("swirl-icon-error", { key: 'c2b57b25a9219581521dfe043e54c2580f2b198f' })), h("span", { key: '0709c36c7aa4b4bb6c415b1175d3f7d2564bd0d6', class: "inline-error__message" }, this.message))));
37
37
  }
38
38
  static get is() { return "swirl-inline-error"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class SwirlInlineStatus {
15
15
  }
16
16
  componentDidLoad() {
17
17
  this.forceIconProps(this.desktopMediaQuery.matches);
18
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
18
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
19
19
  }
20
20
  disconnectedCallback() {
21
21
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -39,7 +39,7 @@ export class SwirlInlineStatus {
39
39
  }
40
40
  render() {
41
41
  const className = classnames("inline-status", `inline-status--intent-${this.intent}`, `inline-status--size-${this.size}`);
42
- return (h(Host, { key: 'de620abe220b2a927c34fe15dc6c8e3fe8aa82f0' }, h("span", { key: 'f79711de79ff44b1582a3b037b22f2de9d287570', class: className, part: "inline-status" }, this.icon && (h("span", { key: '30ab76c74939d3a02d52ee4185dc59fff105e7d7', class: "inline-status__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: 'ec78edfd8460477db52a29c8998fe31cc21c9eaa', class: "inline-status__message" }, this.message))));
42
+ return (h(Host, { key: 'b89c28933bfaf10abc6df61372f46cc8d2e3deb1' }, h("span", { key: '26877b4b62596a851d4e01f0b646d9fa528ef8cb', class: className, part: "inline-status" }, this.icon && (h("span", { key: 'dfb79bb2dd83a3d1966de73079517dd2dabbfd95', class: "inline-status__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: 'ff61f8fed2c5c17cd0822fb3e92e5f1441a5f342', class: "inline-status__message" }, this.message))));
43
43
  }
44
44
  static get is() { return "swirl-inline-status"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -248,7 +248,8 @@ export class SwirlLightbox {
248
248
  });
249
249
  }
250
250
  getCurrentFileName() {
251
- return this.slides[this.activeSlideIndex]?.file?.split("/").pop();
251
+ const activeSlide = this.slides[this.activeSlideIndex];
252
+ return activeSlide?.fileName || activeSlide?.file?.split("/").pop();
252
253
  }
253
254
  getCurrentFileType() {
254
255
  return this.slides[this.activeSlideIndex]?.type;
@@ -290,7 +291,7 @@ export class SwirlLightbox {
290
291
  "lightbox--hide-menu": !hasMenuItems,
291
292
  "lightbox--hide-toolbar": !hasToolbar,
292
293
  });
293
- return (h(Host, { key: 'fd749b5440311691c5759cbb3e0c316fd780044a', onKeydown: this.onKeyDown }, h("section", { key: 'c1b73075fbd5b8ea0e5902fe2572507062661d3a', "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: className, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (el) => (this.modalEl = el), role: "dialog", tabIndex: this.isOpen ? 0 : -1 }, h("div", { key: '40bff6fe51a55333aa8f9f846dc063772d673a14', class: "lightbox__body", role: "document" }, h("header", { key: 'd873218685bda8f5daf3f9f3e3a55026327c06e6', class: "lightbox__header" }, h("button", { key: '4f64b484563822ba8c8cdd3a54840bb9a8b905c4', "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, h("swirl-icon-close", { key: 'ee46955a46ed6d4af310008773b562a59d461e27' })), h("div", { key: '0cb0e8b5c571214583c3480fd8b36c85338b4927', class: "lightbox__toolbar" }, h("slot", { key: '74eaa0012e2f2dadd0a09ee26b5921e4ddaf66f2', name: "toolbar" })), !this.hideMenu && (h("swirl-popover-trigger", { key: 'd4d0ac20646efdad6107a94a389972833924e328', swirlPopover: this.menu }, h("button", { key: '065bd64bdc562dd700133923b01f510857deda1b', "aria-label": this.menuTriggerLabel, class: "lightbox__menu-button" }, h("swirl-icon-more-vertikal", { key: '824e1f561dbe29483eab64c3575015a42c9a2cd1' }))))), h("div", { key: '7c6a9fc512afcfd567f12134368474edb353f823', "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, h("div", { key: 'e010d72cd7e03ec2cf66c2c25987e7d0c9654e6e', "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides", onClick: this.onBackdropClick, onContextMenu: this.onContextMenu, ref: (el) => (this.slidesContainer = el) }, h("slot", { key: 'e33c56f24ec2ffa6e0db22759e1a49a8803c310c', onSlotchange: this.registerSlides }))), h("div", { key: '288ab30b0ebeeebb6def666420f8d8112ce09825', class: "lightbox__controls" }, h("button", { key: 'cfa61cce95fd3a40199c11d730f0c6ac16c67e84', "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, h("swirl-icon-arrow-left", { key: '4f59b0f21ae4904cbe89f0d56b02507cdbc2e560' })), h("button", { key: 'abbb750db277657a0d4cb08dab1e04d56b563e93', "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, h("swirl-icon-arrow-right", { key: '29040991baf79195b2d9c3be534d643501109f07' }))), showPagination && (h("span", { key: '1c74102a6b6e44928411dd580e566ba00f1467ff', class: "lightbox__pagination" }, h("span", { key: 'e8f61205db2dd2f663ba41519eec1f80dcf33813', "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length))), !this.hideMenu && (h("swirl-popover", { key: '5c5e917aa0664ae2be453317d2bc8130140c3d63', animation: "scale-in-y", disableScrollLock: true, id: "slide-menu", label: this.menuLabel, placement: "bottom-end", ref: (el) => (this.menu = el) }, h("swirl-stack", { key: 'a9932821bb418ef810d3322a8eb7c3d6938f2a4d' }, h("div", { key: 'cc7994ab0d5c02ac53a581c6b6336ae2445f06e4', class: "lightbox__meta" }, currentThumbnailUrl && (h("div", { key: 'a9851fa2896b04275d849e30fc2445f833a5f342', class: "lightbox__thumbnail" }, h("swirl-thumbnail", { key: '7fba70275ebf5101332d1427b09ce9c692a30a0c', alt: "", src: currentThumbnailUrl }))), h("div", { key: '16575c201b1ef6fcd4832396a9105c87ee439a10', class: "lightbox__file-info" }, h("swirl-text", { key: '9e8adf46120676a184d8329a715fd634354a1e39', truncate: true, weight: "semibold" }, currentFileName), h("swirl-text", { key: '2c932779b2583d0f680f372397fa58b043593d83', color: "subdued", size: "sm", truncate: true }, currentFileType))), hasMenuItems && h("swirl-separator", { key: '35b8ace5c92822db36085179fe49cb947069c630' }), h("swirl-action-list", { key: 'e772be614a9837e9b92a006fe2c38da4f90869bd' }, this.downloadButtonEnabled && (h("swirl-action-list-item", { key: 'bfdaade1004852fe7dd11e494dca441b84d5b97b', icon: "<swirl-icon-download></swirl-icon-download>", label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick })), h("slot", { key: '29e86174c4ecbb04657372d6d686867563354747', name: "menu-items" }))))))));
294
+ return (h(Host, { key: 'd3d03598de6bc850b14983c65f50c4956f337db4', onKeydown: this.onKeyDown }, h("section", { key: '035520946bc86d9fd39f69a929429155f39128ac', "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: className, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (el) => (this.modalEl = el), role: "dialog", tabIndex: this.isOpen ? 0 : -1 }, h("div", { key: '924c6ddcf773f739a02f3eac40a85bebb05b00d8', class: "lightbox__body", role: "document" }, h("header", { key: 'abde93a32e109d23045b60ef021b5a6e395c5106', class: "lightbox__header" }, h("button", { key: 'cd106ff12b26c1cd4f20eff9b9b606c1eb3c2b0c', "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, h("swirl-icon-close", { key: '3daadf28b1572117fd80ef2ee5a01c9a5bf553a1' })), h("div", { key: '09faa1918dd1d158fb8db1ac62c92e9b7ef18dfc', class: "lightbox__toolbar" }, h("slot", { key: '494edef3a0449c2605b55abde0be66f92ad1191b', name: "toolbar" })), !this.hideMenu && (h("swirl-popover-trigger", { key: '48d9ea9f7fb0a8a56a402d2f52b72d82e2fafb0b', swirlPopover: this.menu }, h("button", { key: '4f8a369b128d508bd720e0fa66a8a45114d762d4', "aria-label": this.menuTriggerLabel, class: "lightbox__menu-button" }, h("swirl-icon-more-vertikal", { key: '882646fcab72ca10537c6a42b8109bdd38eb8283' }))))), h("div", { key: 'bb96acbb12f5cc7fa2fa7769bf2ee0257f1c2461', "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, h("div", { key: '60d4900f96d5833894267c2ad07c9880425ff010', "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides", onClick: this.onBackdropClick, onContextMenu: this.onContextMenu, ref: (el) => (this.slidesContainer = el) }, h("slot", { key: 'd29256b029b979ff95c214577cfedc1791a16b28', onSlotchange: this.registerSlides }))), h("div", { key: '6413fa0b0c71cfc02e53297f8593cc094bcc3bfe', class: "lightbox__controls" }, h("button", { key: 'fc77b0028b862e949d007b34c2e19e6beea7ed59', "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, h("swirl-icon-arrow-left", { key: 'a577e41ca07cdfce79f1800f34b6ad55f0fd4fe0' })), h("button", { key: '69dca0c03facabd87f06a684c2f9cd5b634c67a9', "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, h("swirl-icon-arrow-right", { key: '43672103b69379f241dfb29dd136d4b44415af1e' }))), showPagination && (h("span", { key: '59c60639d329faa44bbcd9c3aaee602c8bc2a4ed', class: "lightbox__pagination" }, h("span", { key: '40fcf4e2a7a9363811aaa7ee68830d4f560f2d8d', "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length))), !this.hideMenu && (h("swirl-popover", { key: '12c4c54e98cf2e3f26f97b9a5cc772e1ebc65eb6', animation: "scale-in-y", disableScrollLock: true, id: "slide-menu", label: this.menuLabel, placement: "bottom-end", ref: (el) => (this.menu = el) }, h("swirl-stack", { key: 'a02a33c1b7691396289aadb12fdc19086f13f72d' }, h("div", { key: 'dfe31fde3473c57810bdaf2b6c0e203bbe1fc588', class: "lightbox__meta" }, currentThumbnailUrl && (h("div", { key: '93539bc099e182a312b4d33e5bb75edd1a5acd2e', class: "lightbox__thumbnail" }, h("swirl-thumbnail", { key: '7bb1a238d96e2f85784703539e2201a3092f8c9e', alt: "", src: currentThumbnailUrl }))), h("div", { key: '59e97cd3a4dcee146524968816b45be44c8707a3', class: "lightbox__file-info" }, h("swirl-text", { key: '5e54b16cd8f73a15831d481f2d2067e1f0104f58', truncate: true, weight: "semibold" }, currentFileName), h("swirl-text", { key: 'd910adcec06527a16a7af587e7318b339ba89141', color: "subdued", size: "sm", truncate: true }, currentFileType))), hasMenuItems && h("swirl-separator", { key: '09b367a3dc2d06a3c5cfc80b436b1ddd747cca79' }), h("swirl-action-list", { key: '62cd42d711c2efe345c2f71ee0afe0f78b9b806b' }, this.downloadButtonEnabled && (h("swirl-action-list-item", { key: '7a93b6d1de3eac5d1af132d1feedae7912b61498', icon: "<swirl-icon-download></swirl-icon-download>", label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick })), h("slot", { key: 'ef2f9c8e826085094737fec86b19526bc7ee1c7b', name: "menu-items" }))))))));
294
295
  }
295
296
  static get is() { return "swirl-lightbox"; }
296
297
  static get encapsulation() { return "shadow"; }
@@ -30,7 +30,7 @@ const Template = (args) => {
30
30
  trigger.label = "Open lightbox";
31
31
  trigger.addEventListener("click", () => element.open());
32
32
  element.innerHTML = `
33
- <swirl-file-viewer description="Another cute dog in a blanket." file="/sample-2.jpg" thumbnail-url="/sample-2.jpg" type="image/jpeg"></swirl-file-viewer>
33
+ <swirl-file-viewer description="Another cute dog in a blanket." file="/sample-2.jpg" thumbnail-url="/sample-2.jpg" type="image/jpeg" file-name="Cute dog"></swirl-file-viewer>
34
34
  <swirl-file-viewer description="Cute dog in a blanket." file="/sample.jpg" thumbnail-url="/sample.jpg" type="image/jpeg"></swirl-file-viewer>
35
35
  <swirl-file-viewer description="Black puppy." file="/sample-3.jpg" thumbnail-url="/sample-3.jpg" type="image/jpeg"></swirl-file-viewer>
36
36
  <swirl-file-viewer file="/sample.mp4" type="video/mp4"></swirl-file-viewer>
@@ -103,7 +103,7 @@ export class SwirlMenu {
103
103
  this.observeSlotChanges();
104
104
  }
105
105
  componentDidLoad() {
106
- this.mobileMediaQuery.onchange = this.mediaQueryHandler;
106
+ this.mobileMediaQuery.addEventListener("change", this.mediaQueryHandler);
107
107
  this.parentMenu = closestPassShadow(this.el.parentElement, "swirl-menu");
108
108
  this.swirlPopover = closestPassShadow(this.el, "swirl-popover");
109
109
  this.rootMenu = parentsPassShadow(this.el, "swirl-menu").pop();
@@ -287,7 +287,7 @@ export class SwirlMenu {
287
287
  "menu--mobile": this.mobile,
288
288
  "menu--root": isTopLevelMenu,
289
289
  });
290
- return (h(Host, { key: 'f52fc57208c3860eb77be73bd242295c75e6dbb7' }, h("div", { key: 'b9acb6b584781ff85dab0848fe29d110b9363042', class: className }, this.mobile && isTopLevelMenu && (h("div", { key: '9226d13aa366e2bf5dd6db87eb34547e5f0bd331', class: "menu__mobile-header" }, this.activeLevel === 0 && (h("swirl-button", { key: 'e30ebeb2bd890289b5b458af6adb6ccd9c7cef75', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.mobileCloseMenuButtonLabel, onClick: this.onClose, variant: "plain" })), this.activeLevel > 0 && (h("swirl-button", { key: '9b67869307a99c48cd8ce7f28cace23e826cafe1', hideLabel: true, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", label: this.mobileBackButtonLabel, onClick: this.onGoBack, variant: "plain" })), h("span", { key: 'c1430a02e8ea197f3ac01bc343196c9ce8b7e7b6', class: "menu__title", id: "menu-title" }, h("swirl-heading", { key: '43dcb02b643accee22d6ddd24f7ae0c3a41aeef9', align: "center", as: "span", level: 4, text: this.label, truncate: true })), h("swirl-button", { key: '8137cb7fbbaa8884fe4f45b8a15dbc478dc73048', class: "menu__done-button", intent: "primary", label: this.mobileDoneButtonLabel, onClick: this.onDone }))), h("div", { key: 'e6f39a87523179133cea6cf88171a7beaba0337b', "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-orientation": "vertical", class: "menu__menu", onKeyDown: this.onKeyDown, ref: (el) => (this.menuContainer = el), role: role, style: !this.mobile && this.level > 0
290
+ return (h(Host, { key: '6902b3173cdb663accf161ccbae6ef7e6e7bcf5a' }, h("div", { key: '33fecf3dcb700082b1ca08ae37125a6c3d50ab2a', class: className }, this.mobile && isTopLevelMenu && (h("div", { key: '10a3926fdb1caf2726df95a4ee4a783dcd61ee19', class: "menu__mobile-header" }, this.activeLevel === 0 && (h("swirl-button", { key: '425ae346854eb859d46b028ba72501d6e14ee605', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.mobileCloseMenuButtonLabel, onClick: this.onClose, variant: "plain" })), this.activeLevel > 0 && (h("swirl-button", { key: 'add7164401a23532b6e618207d61c868f5455230', hideLabel: true, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", label: this.mobileBackButtonLabel, onClick: this.onGoBack, variant: "plain" })), h("span", { key: '8e13f2cb97b571d2e0568ebcff34b0ea8bd55571', class: "menu__title", id: "menu-title" }, h("swirl-heading", { key: '7c5a5e3cc7ad96969e4bf7452e0bdb3bb7b97ea5', align: "center", as: "span", level: 4, text: this.label, truncate: true })), h("swirl-button", { key: '0bc062508d7f2c31e6bbf1e9bb0cffed63756f9e', class: "menu__done-button", intent: "primary", label: this.mobileDoneButtonLabel, onClick: this.onDone }))), h("div", { key: '2b0e92f3446b2b9699247d4473bf64ac2a1e25f5', "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-orientation": "vertical", class: "menu__menu", onKeyDown: this.onKeyDown, ref: (el) => (this.menuContainer = el), role: role, style: !this.mobile && this.level > 0
291
291
  ? {
292
292
  top: Boolean(this.position) ? `${this.position?.y}px` : "",
293
293
  left: Boolean(this.position) ? `${this.position?.x}px` : "",
@@ -298,7 +298,7 @@ export class SwirlMenu {
298
298
  ? `calc(-100% * ${this.activeLevel})`
299
299
  : "100%",
300
300
  }
301
- : undefined }, h("slot", { key: '508ba36bb2f62d00041ac086fe6bf2d2244f1a7f' })))));
301
+ : undefined }, h("slot", { key: '0458992fd30bde4b5b3a5fa89322aae6617be081' })))));
302
302
  }
303
303
  static get is() { return "swirl-menu"; }
304
304
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class SwirlOptionListItem {
44
44
  componentDidLoad() {
45
45
  this.forceIconProps(this.desktopMediaQuery.matches);
46
46
  this.updateIconSize(this.desktopMediaQuery.matches);
47
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
47
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
48
48
  }
49
49
  disconnectedCallback() {
50
50
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -71,9 +71,9 @@ export class SwirlOptionListItem {
71
71
  "option-list-item--selected": this.selected,
72
72
  "option-list-item--show-avatar": showAvatar,
73
73
  });
74
- return (h(Host, { key: 'c352b994be2cdbfc53d0ff57905043b0995c0b63' }, h("div", { key: 'a5df3557b909367a719645cf06ba8d0d56e35878', "aria-checked": this.swirlAriaRole === "menuitemradio" ? ariaSelected : undefined, "aria-describedby": Boolean(this.description)
74
+ return (h(Host, { key: 'af019b6745db50086125eafef092fefec4529d9b' }, h("div", { key: 'e5fae098a7c87f3fcd569971e5befe1e937e6187', "aria-checked": this.swirlAriaRole === "menuitemradio" ? ariaSelected : undefined, "aria-describedby": Boolean(this.description)
75
75
  ? `option-list-item-${this.elementId}-description`
76
- : undefined, "aria-disabled": ariaDisabled, "aria-labelledby": `option-list-item-${this.elementId}-label`, "aria-selected": this.swirlAriaRole === "option" ? ariaSelected : undefined, class: className, id: `option-list-item-${this.elementId}`, onBlur: this.onBlur, onFocus: this.onFocus, part: "option-list-item", role: this.swirlAriaRole }, showIcon && (h("span", { key: '9d4ce11a38b414d2a41bc6aa5a6aa64aabb4e114', class: "option-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (h("span", { key: 'ed49ec954b74e0b617ca32d497eb8f24c3d18a5e', class: "option-list-item__icon-badge", innerHTML: this.iconBadge })))), showCheckbox && (h("span", { key: '8373d6ee0216266bda8d029a1a57cef1cfd98c43', class: "option-list-item__checkbox" }, h("span", { key: 'f14ed6dc6d445f7ecc6229e1310a78afe088c639', class: "option-list-item__checkbox-box" }, this.selected && (h("swirl-icon-check-strong", { key: 'adb91bda6f6f5c92277b6b47c595e608547759b0', class: "option-list-item__checkbox-icon", size: 16 }))))), h("span", { key: 'a0ea9adae0c92d7a38d69bdd30f37cbb5165d818', class: "option-list-item__avatar" }, h("slot", { key: 'cea3a84e3cb09c522c1fa1ad34d07ab66275cde1', name: "avatar" })), h("span", { key: '09480c168be263a8944974e91d7b98569260a74c', class: "option-list-item__label-container" }, h("span", { key: '450b0a356a9efd8a459a5df511223ab2c3a216c5', class: "option-list-item__label", id: `option-list-item-${this.elementId}-label`, part: "option-list-item__label" }, this.label), this.description && (h("span", { key: 'ed46cdaf3865dc8cf075597c8e305207e648ff10', class: "option-list-item__description", id: `option-list-item-${this.elementId}-description` }, this.description))), showSelectionIcon && (h("span", { key: 'e21954a823dead666a192351c874750756b715c2', class: "option-list-item__selection-icon" }, h("swirl-icon-check-small", { key: 'bfc5f344a391aec9923d73302963b435c6648e8c', size: this.iconSize })))), this.allowDrag && (h("button", { key: '7037a0ef7a3e8c1c994bcb5134cc7dfa07c87f48', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "option-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, tabIndex: this.focused ? 0 : -1, type: "button" }, h("swirl-icon-drag-handle", { key: '9b7d3b7697e726223053a6d7995a6dbd56769c66', size: this.iconSize })))));
76
+ : undefined, "aria-disabled": ariaDisabled, "aria-labelledby": `option-list-item-${this.elementId}-label`, "aria-selected": this.swirlAriaRole === "option" ? ariaSelected : undefined, class: className, id: `option-list-item-${this.elementId}`, onBlur: this.onBlur, onFocus: this.onFocus, part: "option-list-item", role: this.swirlAriaRole }, showIcon && (h("span", { key: '4bb4605bec790297e858dc191ce739ca7a7fc15f', class: "option-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (h("span", { key: '187934100efed7d64177dab42dfb2cf8f4fa3bcd', class: "option-list-item__icon-badge", innerHTML: this.iconBadge })))), showCheckbox && (h("span", { key: '73383423f4318beb554d29d19d3c084e644f2d9c', class: "option-list-item__checkbox" }, h("span", { key: '9d39a8728e8d3d349df5f29b8064ad3991e7c69a', class: "option-list-item__checkbox-box" }, this.selected && (h("swirl-icon-check-strong", { key: '19835649797e70c0163cef6ad77373141aa17ffb', class: "option-list-item__checkbox-icon", size: 16 }))))), h("span", { key: '6deeb6c90a6c65c26a8af36973ad4562cc86c06f', class: "option-list-item__avatar" }, h("slot", { key: '733db89be34cbcdd32c3831ef910628ff4da1e0a', name: "avatar" })), h("span", { key: '103881477943772f336b9e86e54ded03a66e7a42', class: "option-list-item__label-container" }, h("span", { key: 'fe86bafe56b7f9f66cf846a4b8fb49174b5aaca7', class: "option-list-item__label", id: `option-list-item-${this.elementId}-label`, part: "option-list-item__label" }, this.label), this.description && (h("span", { key: '0242394567de7fcd7f05c3827dac275b2159a60f', class: "option-list-item__description", id: `option-list-item-${this.elementId}-description` }, this.description))), showSelectionIcon && (h("span", { key: '665b080344e85b02111ebd390acc3e46a26cf054', class: "option-list-item__selection-icon" }, h("swirl-icon-check-small", { key: '112f73e489c034a85264fcc47d8bb89104b8ba53', size: this.iconSize })))), this.allowDrag && (h("button", { key: 'c8e74ab1c619b02008b5012ecc3369b4c23c1584', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "option-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, tabIndex: this.focused ? 0 : -1, type: "button" }, h("swirl-icon-drag-handle", { key: '8b45eb82b6616f811a3b54384cca5843ad8adc2c', size: this.iconSize })))));
77
77
  }
78
78
  static get is() { return "swirl-option-list-item"; }
79
79
  static get encapsulation() { return "scoped"; }
@@ -17,7 +17,7 @@ export class SwirlResourceListFileItem {
17
17
  }
18
18
  componentDidLoad() {
19
19
  this.forceIconProps(this.desktopMediaQuery.matches);
20
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
20
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
21
21
  }
22
22
  disconnectedCallback() {
23
23
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -37,7 +37,7 @@ export class SwirlResourceListFileItem {
37
37
  const className = classnames("resource-list-file-item", {
38
38
  "resource-list-file-item--has-control": showSpinner || showRemoveButton,
39
39
  });
40
- return (h(Host, { key: '434bfc015f37e68282c37a2d550bca0495ce465c', role: "row" }, h("div", { key: 'b38c5c3fc3db14591f105b4ce115576a1b177dd8', class: className, part: "resource-list-file-item", role: "gridcell" }, h("span", { key: '4c6c3e868fd3798aed17cf68270d9aae5ca0bb06', class: "resource-list-file-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }), h("span", { key: '6ae763f864856bfa26fdd6e7b24aa3d0ec5d5af6', class: "resource-list-file-item__label-container" }, h("span", { key: '06a77d786a0b15cb62d5baaa5c115c0068e3ee14', class: "resource-list-file-item__label", id: "label" }, this.label), showDescription && (h("span", { key: '8e9369ef52c81dabb749114e026fb48fe297ea47', class: "resource-list-file-item__description" }, this.description)), showError && (h("span", { key: '99a0c4c38bcef61ae816c5f0ee730f29442ded01', "aria-live": "polite", class: "resource-list-file-item__error-message" }, h("swirl-inline-error", { key: '04e57c429b3d2837236f32e5e308a9ca3d125bf6', message: this.errorMessage, size: "s" })))), showSpinner && (h("span", { key: 'f474d849b849655d92c4ff5922c19ed80c83db8e', class: "resource-list-file-item__spinner" }, h("swirl-spinner", { key: '14fbfd17f9d7c8f36b372e61a42fdd99cce73aa2', size: "s" }))), showRemoveButton && (h("span", { key: 'fc55a25dd2890c62cbd228e1a5aaa43d157b356c', class: "resource-list-file-item__remove-button" }, h("swirl-button", { key: 'fac36e13c2c85c26a2beb9183312350b7b3907e3', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))))));
40
+ return (h(Host, { key: 'd77b3a45aff46139e8af03ccdbeb81e9da91370b', role: "row" }, h("div", { key: '53df0ea414c05513cee0a17b661767a06442a954', class: className, part: "resource-list-file-item", role: "gridcell" }, h("span", { key: '4a72d58087710540e5c74f3cee050f91d48bc6f6', class: "resource-list-file-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }), h("span", { key: '33d67a51ce845f06f873b1ce61f3b6887ff9637b', class: "resource-list-file-item__label-container" }, h("span", { key: 'b080aa30dbb7b99c1fc888d90a2b69ab021cdd93', class: "resource-list-file-item__label", id: "label" }, this.label), showDescription && (h("span", { key: 'b6c86787f6f8dbe4fb22f30b2027f63d7d9d8d8c', class: "resource-list-file-item__description" }, this.description)), showError && (h("span", { key: 'f55cafd40457a920047a80f9d537aed786134d18', "aria-live": "polite", class: "resource-list-file-item__error-message" }, h("swirl-inline-error", { key: 'ccf0276e67f9d87ef36ede6f74f9e25b5ff6618e', message: this.errorMessage, size: "s" })))), showSpinner && (h("span", { key: 'd04e7bbaafbb626c891c3afdb02b20f2362c459d', class: "resource-list-file-item__spinner" }, h("swirl-spinner", { key: '2fa064bbfa49c90c45f8106aaac2ae4fe1f1b26d', size: "s" }))), showRemoveButton && (h("span", { key: '53ae0a5d63299d4367735ca297d9dd7406c82176', class: "resource-list-file-item__remove-button" }, h("swirl-button", { key: 'a7298dfdae92ef380516d5dadac8d7fdff8c7e6a', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))))));
41
41
  }
42
42
  static get is() { return "swirl-resource-list-file-item"; }
43
43
  static get encapsulation() { return "scoped"; }
@@ -74,7 +74,7 @@ export class SwirlResourceListItem {
74
74
  componentDidLoad() {
75
75
  this.forceIconProps(this.desktopMediaQuery.matches);
76
76
  this.updateIconSize(this.desktopMediaQuery.matches);
77
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
77
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
78
78
  this.makeControlUnfocusable();
79
79
  if (Boolean(this.menuTriggerId)) {
80
80
  console.warn('[Swirl] The "menu-trigger-id" prop of swirl-resource-list-item is deprecated and will be removed with the next major release. Please use the "control" slot to add a menu button instead. https://swirl-storybook.flip-app.dev/?path=/docs/components-swirlresourcelistitem--docs');
@@ -154,7 +154,7 @@ export class SwirlResourceListItem {
154
154
  "resource-list-item--wrap-description": this.descriptionWrap,
155
155
  "resource-list-item--wrap-label": this.labelWrap,
156
156
  });
157
- return (h(Host, { key: '9c6fbe47aad6cc3b8c64ff69f2908c39579382e1', role: "row" }, h("div", { key: 'a697f193501c11256a8f14bee06e8ae361ecd7d2', class: className, role: "gridcell" }, h(Tag, { key: '7ccaf53c57e8e025ae6a4f93ab1c1a2509b81f4e', "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-label": ariaLabel, "aria-labelledby": Boolean(this.swirlAriaLabel) ? undefined : this.elementId, class: "resource-list-item__content", href: href, disabled: disabled, onClick: this.onClick, onBlur: this.onBlur, onFocus: this.onFocus, part: "resource-list-item__content", role: role, tabIndex: 0, type: Tag === "button" ? "button" : undefined }, this.hasMedia && (h("span", { key: '1c99b371c6b4452c1302c4879a1c5b6946e2c8b1', class: "resource-list-item__media" }, h("slot", { key: '6b98cb9d04c7a361fe2668029d006d1e828a4e39', name: "media" }))), h("span", { key: '8ebcb1d3314724c5896d9f7ba356b2c52e95a8a1', class: "resource-list-item__label-container", style: labelContainerStyles }, h("span", { key: '593f64efd0fb0188c1f988b27056c829d1679d09', class: "resource-list-item__label", id: this.elementId, innerHTML: this.allowHtml ? this.label : undefined }, !this.allowHtml && this.label), this.description && (h("span", { key: 'c154c1d55e6933037643da9d0131b946b2dee4f3', class: "resource-list-item__description", innerHTML: this.allowHtml ? this.description : undefined }, !this.allowHtml && this.description))), showMeta && (h("span", { key: '5725705f0f20319d239805508d3b1d95f74e1147', class: "resource-list-item__meta" }, h("span", { key: '017c7cfe50539312d4d26383171fb6a7a20e6aea', class: "resource-list-item__meta-text" }, this.meta), h("span", { key: '67ae39458d0f21c7100481c6aa68f9455e468d86', class: "resource-list-item__badges" }, h("slot", { key: '14903c0b7742a843c77f2a4625cb7265aafa6f5b', name: "badges" }))))), this.selectable && (h("span", { key: '6077b4ada3640c6d5c66466c7fcb602f571bd846', "aria-hidden": "true", class: "resource-list-item__checkbox" }, h("span", { key: 'f3695886c4bc18a9c0105592a66e1bcb6970e133', class: "resource-list-item__checkbox-icon" }, this.checked && (h("swirl-icon-check-strong", { key: '6aefe6e5c14c3ed7704f9771b8cf5800d10addcb' }))))), h("span", { key: '8a25575b17dba502cf8ab76a9da951630c4afc74', class: "resource-list-item__control", onClick: this.onControlClick, ref: (el) => (this.controlContainer = el) }, h("slot", { key: 'ec9be5986f7bdc3e9054d5ff62f55b59b8a6108b', name: "control" })), showMenu && (h("swirl-popover-trigger", { key: '135faa65c00fc1a6af38b8159ccf7f074847d4f5', swirlPopover: this.menuTriggerId }, h("swirl-button", { key: '704ec57f5be74557cfb9bf56e2641faff8fe79a4', "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<swirl-icon-more-horizontal></swirl-icon-more-horizontal>", intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))), this.allowDrag && (h("button", { key: '3e9e5926918fc8c5839e8c19accc716ca81aed96', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "resource-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, h("swirl-icon-drag-handle", { key: 'd1f9c9cef19f4dfccaef48269f9cdf6265bd143c', size: this.iconSize })))));
157
+ return (h(Host, { key: '9ab8d5b6c71f699ada0554534d05231bcab05b4f', role: "row" }, h("div", { key: 'f1e3b59de7165503220e230256fe0dbaf584dbf1', class: className, role: "gridcell" }, h(Tag, { key: 'c018cd666438e26be62cceb14fc5b659298cb66c', "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-label": ariaLabel, "aria-labelledby": Boolean(this.swirlAriaLabel) ? undefined : this.elementId, class: "resource-list-item__content", href: href, disabled: disabled, onClick: this.onClick, onBlur: this.onBlur, onFocus: this.onFocus, part: "resource-list-item__content", role: role, tabIndex: 0, type: Tag === "button" ? "button" : undefined }, this.hasMedia && (h("span", { key: 'eb0648775d1a8d3f6279aaba67df5fc69078bc14', class: "resource-list-item__media" }, h("slot", { key: 'f9eed6eee88cfd13484830592bcde5ec9a8ff2fd', name: "media" }))), h("span", { key: 'abdf852d91330d353b3fa0d79ef286f8a654ed17', class: "resource-list-item__label-container", style: labelContainerStyles }, h("span", { key: '31d2e2095cfa5fa6d8c0ff6c9cd74352215bf31b', class: "resource-list-item__label", id: this.elementId, innerHTML: this.allowHtml ? this.label : undefined }, !this.allowHtml && this.label), this.description && (h("span", { key: 'bba851aebfc9ae97d8e86bc377b2645f2c008f40', class: "resource-list-item__description", innerHTML: this.allowHtml ? this.description : undefined }, !this.allowHtml && this.description))), showMeta && (h("span", { key: '1b92b21080990b5cd922becbca08ef8d491470e3', class: "resource-list-item__meta" }, h("span", { key: '87ddd62278eaded6e154af605dca7f568b1c1b24', class: "resource-list-item__meta-text" }, this.meta), h("span", { key: '74e13c780b46e097e429289f343855010abd262a', class: "resource-list-item__badges" }, h("slot", { key: '2684ae7f3771da2c15a91abe11e5376c092b5418', name: "badges" }))))), this.selectable && (h("span", { key: 'da36e0f78c70ef6639bc5969fed63e8e7191f69b', "aria-hidden": "true", class: "resource-list-item__checkbox" }, h("span", { key: 'a28270546758f11d38a4503b566d93b26cdbe8c5', class: "resource-list-item__checkbox-icon" }, this.checked && (h("swirl-icon-check-strong", { key: 'a302ecfae71661cd95adfee5a4a1479288b90131' }))))), h("span", { key: '3e85d9ed06e4d6dceee9db5c67799b83ef3e6701', class: "resource-list-item__control", onClick: this.onControlClick, ref: (el) => (this.controlContainer = el) }, h("slot", { key: '59321aba61fd5c10732db1281afc7d3487822bff', name: "control" })), showMenu && (h("swirl-popover-trigger", { key: '9f9d329b6be6921cc2a346462d6191e306ab8f6a', swirlPopover: this.menuTriggerId }, h("swirl-button", { key: '3171ea36c90c935bc9e3dcfd5227d4953a87a899', "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<swirl-icon-more-horizontal></swirl-icon-more-horizontal>", intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))), this.allowDrag && (h("button", { key: 'f2326a36dd18d5084fbc2c328649fdf806e81135', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "resource-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, h("swirl-icon-drag-handle", { key: '295742018c703c5a7c8da55c9e3c93f3be723407', size: this.iconSize })))));
158
158
  }
159
159
  static get is() { return "swirl-resource-list-item"; }
160
160
  static get encapsulation() { return "scoped"; }
@@ -36,7 +36,7 @@ export class SwirlSearch {
36
36
  }
37
37
  componentDidLoad() {
38
38
  this.forceIconProps(this.desktopMediaQuery.matches);
39
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
39
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
40
40
  // see https://stackoverflow.com/a/27314017
41
41
  if (this.autoFocus) {
42
42
  setTimeout(() => {
@@ -64,7 +64,7 @@ export class SwirlSearch {
64
64
  const className = classnames("search", `search--variant-${this.variant}`, {
65
65
  "search--disabled": this.disabled,
66
66
  });
67
- return (h(Host, { key: '043278fda8230b27446918e58293149e6fb4a39e' }, h("span", { key: '7f6ca1b136f77f95cb8c1eeab173fcbb70edb780', class: className, ref: (el) => (this.iconEl = el) }, h("swirl-icon-search", { key: 'f9a344e4e851a119da3b39bf4cf3d782e4bb3bc6', "aria-hidden": "true", class: "search__icon" }), h("input", { key: '5f1a760cebbe980d48a25b60a8326c6d13c3dee7', "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && (h("button", { key: 'c5e2d40efe21e15d83b46a1c3f6f4453108aa0a5', "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, h("swirl-icon-cancel", { key: 'a14f40e6264922d010c08ae717d50985491b6dbc' }))))));
67
+ return (h(Host, { key: 'f867baa30dafa694e189375973b69ee3827799ad' }, h("span", { key: '62bb2ef944cb42d3d2bec75c5ab1dd5cd5475bc9', class: className, ref: (el) => (this.iconEl = el) }, h("swirl-icon-search", { key: 'a96176fe032074b18d6dff234eb22cb9dd64a060', "aria-hidden": "true", class: "search__icon" }), h("input", { key: 'a4844bcc0b4841327500b0ea716e7de4134692d4', "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && (h("button", { key: '7d45015ee44044bdf388606f77b37593e27f001a', "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, h("swirl-icon-cancel", { key: '2fa532b767afe00feaf1d7c31999ae1a266476c6' }))))));
68
68
  }
69
69
  static get is() { return "swirl-search"; }
70
70
  static get encapsulation() { return "scoped"; }
@@ -45,3 +45,7 @@
45
45
  .skeleton-box--border-radius-pill {
46
46
  border-radius: 100rem;
47
47
  }
48
+
49
+ .skeleton-box--border-radius-none {
50
+ border-radius: 0;
51
+ }
@@ -10,13 +10,13 @@ export class SwirlSkeletonBox {
10
10
  }
11
11
  render() {
12
12
  const className = classnames("skeleton-box", `skeleton-box--border-radius-${this.borderRadius}`, { "skeleton-box--static": !this.animated });
13
- return (h(Host, { key: 'e5902a0a40b2349da2248f713d57b677e9c643d0', style: {
13
+ return (h(Host, { key: '23da455bc33e38b34976684865dc0051585c3040', style: {
14
14
  width: !Boolean(this.width) && !Boolean(this.aspectRatio)
15
15
  ? "100%"
16
16
  : undefined,
17
- } }, h("div", { key: 'fb4b6daa18f4ce93c44285e4493ed3c7fa065b42', class: className, style: {
17
+ } }, h("div", { key: 'a7226d23181a3e1ea3a824cc37e9ce6e7b2f34cb', class: className, style: {
18
18
  aspectRatio: this.aspectRatio,
19
- borderRadius: this.borderRadius !== "pill"
19
+ borderRadius: this.borderRadius !== "pill" && this.borderRadius !== "none"
20
20
  ? `var(--s-border-radius-${this.borderRadius})`
21
21
  : undefined,
22
22
  height: this.height,
@@ -77,7 +77,7 @@ export class SwirlSkeletonBox {
77
77
  "mutable": false,
78
78
  "complexType": {
79
79
  "original": "SwirlSkeletonBoxBorderRadius",
80
- "resolved": "\"base\" | \"pill\" | \"s\" | \"sm\"",
80
+ "resolved": "\"base\" | \"none\" | \"pill\" | \"s\" | \"sm\"",
81
81
  "references": {
82
82
  "SwirlSkeletonBoxBorderRadius": {
83
83
  "location": "local",
@@ -101,7 +101,7 @@ export class SwirlTextInput {
101
101
  }
102
102
  componentDidLoad() {
103
103
  this.updateIconSize(this.desktopMediaQuery.matches);
104
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
104
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
105
105
  // see https://stackoverflow.com/a/27314017
106
106
  if (this.autoFocus) {
107
107
  setTimeout(() => {
@@ -177,7 +177,7 @@ export class SwirlTextInput {
177
177
  "text-input--inline": this.inline,
178
178
  "text-input--show-password": this.type === "password" && this.showPassword,
179
179
  });
180
- return (h(Host, { key: '0b8eede30ea9a577bfebda81539cc5e1e4b5fe95' }, h("div", { key: 'bc2a3ab889a8419636c393f9092ab3ed4a56f11c', class: className }, this.prefixLabel && (h("span", { key: 'a01095f25187269a58a9cc5cae28975b8d6365a3', class: "text-input__prefix" }, this.prefixLabel)), h(Tag, { key: '3dbf1ce0097b57977a49a989eb2e4c842e990d79', "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": ariaInvalid, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : undefined, min: this.type === "number" ? this.min : undefined, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, placeholder: !Boolean(this.suffixLabel) ? this.placeholder : undefined, ref: (el) => (this.inputEl = el), required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : undefined, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : undefined, type: type, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && (h("span", { key: '3da40cda2b2f392da53a10797cc96fd726f48ef2', class: "text-input__suffix" }, this.suffixLabel)), showClearButton && (h("button", { key: '38cc8425b91dc70a26013a600e49da131db868cd', "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, h("swirl-icon-cancel", { key: 'aa9e6a263886a5447b4af70bc0156b74ac74ff46', size: this.iconSize }))), showPasswordToggle && (h("button", { key: 'fa338b9f668a7a2ce80c827a4a529a41f129a441', "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? (h("swirl-icon-visibility-off", { size: this.iconSize })) : (h("swirl-icon-visibility", { size: this.iconSize })))), showStepper && (h("span", { key: 'b113f02d036be11655038a48c5ed649d82b240a3', class: "text-input__stepper" }, h("button", { key: '61efb8ca9aebaacdeb8b1aac4e1bc96389a97487', "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, h("swirl-icon-expand-less", { key: 'd04ce617e500fe49751f0def355124c8a6913872', size: this.iconSize })), h("button", { key: 'dd2a2d378be0b6149332dcc49faca360cd96260a', "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, h("swirl-icon-expand-more", { key: '0615ab4dfe50d8ca22864e016df8634e8d47ffb8', size: this.iconSize })))), this.showCharacterCounter && (h("span", { key: '2d0ad8c0e8a8f894165ed20013a3e7429a93230c', class: "text-input__character-counter" }, this.value?.length || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")))));
180
+ return (h(Host, { key: 'e57f2ddeb2239ceffd449efacbc6bddf17777e2c' }, h("div", { key: '62eb95ad562fe4cbe7fd56cc9ac0b8d07b97afdf', class: className }, this.prefixLabel && (h("span", { key: 'c7d38898067ec7fdd924167e037323bacef742e3', class: "text-input__prefix" }, this.prefixLabel)), h(Tag, { key: 'ea0fff8fe61f6323d39dea8490fb722587e58080', "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": ariaInvalid, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : undefined, min: this.type === "number" ? this.min : undefined, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, placeholder: !Boolean(this.suffixLabel) ? this.placeholder : undefined, ref: (el) => (this.inputEl = el), required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : undefined, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : undefined, type: type, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && (h("span", { key: '2ae0f456126a27f0256b5dfd851da830ea379018', class: "text-input__suffix" }, this.suffixLabel)), showClearButton && (h("button", { key: 'ea47c05178f0ce61188ca8ed15f3bbe6f132b1dc', "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, h("swirl-icon-cancel", { key: 'd419f462f82b28bc6c8602f3d4cf65d2649d0234', size: this.iconSize }))), showPasswordToggle && (h("button", { key: '565f3c92ef3fd90d1d43c673b94feec9bcf213cf', "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? (h("swirl-icon-visibility-off", { size: this.iconSize })) : (h("swirl-icon-visibility", { size: this.iconSize })))), showStepper && (h("span", { key: 'ec02752a5258a06827fc156fd4b4cd5a0e712751', class: "text-input__stepper" }, h("button", { key: 'c698d2fda7bf64b338920410ef0c894955cf6372', "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, h("swirl-icon-expand-less", { key: '0f662dd62d1a315d288622a31e4f0dfb0ee530e0', size: this.iconSize })), h("button", { key: '49fc4ece3d4b67e3b6fa38ecdb681edf5e2e0791', "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, h("swirl-icon-expand-more", { key: '49de410032a3f513ba78e7f6a986645441db80eb', size: this.iconSize })))), this.showCharacterCounter && (h("span", { key: 'c2e4a3b9e5dc0c1eb4ef0ee686a7dd2cd2c1a6d7', class: "text-input__character-counter" }, this.value?.length || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")))));
181
181
  }
182
182
  static get is() { return "swirl-text-input"; }
183
183
  static get encapsulation() { return "scoped"; }
@@ -74,7 +74,7 @@ export class SwirlTimeInput {
74
74
  componentDidLoad() {
75
75
  this.setupMask();
76
76
  this.updateIconSize(this.desktopMediaQuery.matches);
77
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
77
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
78
78
  // see https://stackoverflow.com/a/27314017
79
79
  if (this.autoFocus) {
80
80
  setTimeout(() => {
@@ -117,7 +117,7 @@ export class SwirlTimeInput {
117
117
  const className = classnames("time-input", {
118
118
  "time-input--inline": this.inline,
119
119
  });
120
- return (h(Host, { key: '19d6ea6fee406249c4ae1220f966cd2a157e72bb' }, h("div", { key: '3a59905a0e5ec9e6591fd7467ede76511a8c9902', class: className }, h("input", { key: '621cc10e8441af59e22d26ebbeabbee3fb7f4f95', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "time-input__input", disabled: this.disabled, id: this.id, inputmode: "numeric", onBlur: this.onBlur, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), h("span", { key: '2c52f9937ba29729b2019bb11ebe8b5fdd18d1fa', class: "time-input__icon" }, h("swirl-icon-time-outlined", { key: '6d04cabe2577d1bf98686be52b2657acff08e604', size: this.iconSize })))));
120
+ return (h(Host, { key: '2c4924715b04c0e77299b48a29fe7ec044229884' }, h("div", { key: 'b8bceee82f8ee07a206515e8f3bf3ba6c7fd6320', class: className }, h("input", { key: 'd06d11faf603e2c8526ab780ac64bbe10b61d562', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "time-input__input", disabled: this.disabled, id: this.id, inputmode: "numeric", onBlur: this.onBlur, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), h("span", { key: 'b84dd53cb89b2532904f0978c951dcab01996d33', class: "time-input__icon" }, h("swirl-icon-time-outlined", { key: '0c6df7dcd4388bfd2b06c6e70e2a30e36474ea3a', size: this.iconSize })))));
121
121
  }
122
122
  static get is() { return "swirl-time-input"; }
123
123
  static get encapsulation() { return "scoped"; }
@@ -24,7 +24,7 @@ export class SwirlToast {
24
24
  componentDidLoad() {
25
25
  this.startTimer();
26
26
  this.forceIconProps(this.desktopMediaQuery.matches);
27
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
27
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
28
28
  }
29
29
  disconnectedCallback() {
30
30
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -53,7 +53,7 @@ export class SwirlToast {
53
53
  }
54
54
  render() {
55
55
  const className = classnames("toast", `toast--intent-${this.intent}`);
56
- return (h(Host, { key: 'd8b87d66d6b46d6e3678bbda5ff0dfed5b2973b1' }, h("div", { key: '0faa222d47f49ead1b9450850c123febe7802a23', class: className }, this.icon && (h("span", { key: 'de352e1b20de617a528012a84ab9f159c386738a', class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), h("span", { key: '748399536dd563bf5773974dbb44d54ede1154df', class: "toast__content", innerHTML: this.content, part: "toast__content" }, h("slot", { key: 'b33f4fb6706da2ba79af7eba95849021c795b848' })), h("button", { key: '8c0d380c4d712319db321fe2fbad913941d3d371', "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && (h("swirl-icon-close", { key: '8e0fa55a3901245b223242144daecd11ca4202ce', ref: (el) => (this.dismissIconEl = el) }))))));
56
+ return (h(Host, { key: 'ff494adb183bfd3b0cf64f854370f65d9025688d' }, h("div", { key: 'ec42812f4e085d3853d529c5155847d3166d7235', class: className }, this.icon && (h("span", { key: '9565980b265dfb58f2d3f4625642c4b42b286bb0', class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), h("span", { key: '20a9d20e6a1250d8584768db191033b7dca0faeb', class: "toast__content", innerHTML: this.content, part: "toast__content" }, h("slot", { key: '59a95eece747a0a434c6730c84ca8138b7036b5c' })), h("button", { key: '413e402fb6504c7791d68e21b2dd333a79fb4e2e', "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && (h("swirl-icon-close", { key: '76fb12bf16bdd0f7dfb1d51becf2774e438921a3', ref: (el) => (this.dismissIconEl = el) }))))));
57
57
  }
58
58
  static get is() { return "swirl-toast"; }
59
59
  static get encapsulation() { return "shadow"; }