@cscfi/csc-ui 2.2.12 → 2.3.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 (94) hide show
  1. package/dist/cjs/c-accordion-item.cjs.entry.js +1 -1
  2. package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -1
  3. package/dist/cjs/c-autocomplete_34.cjs.entry.js +7 -5
  4. package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
  5. package/dist/cjs/c-tab-buttons.cjs.entry.js +1 -1
  6. package/dist/cjs/c-tab-item.cjs.entry.js +1 -1
  7. package/dist/cjs/c-tab-items.cjs.entry.js +1 -1
  8. package/dist/cjs/c-tab.cjs.entry.js +1 -1
  9. package/dist/cjs/c-tabs.cjs.entry.js +1 -1
  10. package/dist/cjs/c-tag.cjs.entry.js +1 -1
  11. package/dist/cjs/c-tags.cjs.entry.js +1 -1
  12. package/dist/cjs/c-toast.cjs.entry.js +1 -1
  13. package/dist/cjs/c-toasts.cjs.entry.js +1 -1
  14. package/dist/cjs/csc-ui.cjs.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/components/c-accordion-item/c-accordion-item.css +1 -1
  17. package/dist/collection/components/c-switch/c-switch.css +26 -0
  18. package/dist/collection/components/c-switch/c-switch.js +21 -1
  19. package/dist/collection/components/c-switch/c-switch.js.map +1 -1
  20. package/dist/collection/components/c-tab/c-tab.js +1 -1
  21. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +1 -1
  22. package/dist/collection/components/c-tab-item/c-tab-item.js +1 -1
  23. package/dist/collection/components/c-tab-items/c-tab-items.js +1 -1
  24. package/dist/collection/components/c-table/c-table.js +1 -1
  25. package/dist/collection/components/c-tabs/c-tabs.js +1 -1
  26. package/dist/collection/components/c-tag/c-tag.js +1 -1
  27. package/dist/collection/components/c-tags/c-tags.js +1 -1
  28. package/dist/collection/components/c-text-field/c-text-field.js +1 -1
  29. package/dist/collection/components/c-toast/c-toast.js +1 -1
  30. package/dist/collection/components/c-toasts/c-toasts.js +1 -1
  31. package/dist/collection/components/c-toolbar/c-toolbar.js +1 -1
  32. package/dist/components/c-accordion-item.js +1 -1
  33. package/dist/components/c-accordion-item.js.map +1 -1
  34. package/dist/components/c-switch.js +12 -3
  35. package/dist/components/c-switch.js.map +1 -1
  36. package/dist/components/c-tab-buttons.js +1 -1
  37. package/dist/components/c-tab-item.js +1 -1
  38. package/dist/components/c-tab-items.js +1 -1
  39. package/dist/components/c-tab.js +1 -1
  40. package/dist/components/c-table.js +1 -1
  41. package/dist/components/c-tabs.js +1 -1
  42. package/dist/components/c-tag.js +1 -1
  43. package/dist/components/c-tags.js +1 -1
  44. package/dist/components/c-text-field.js +1 -1
  45. package/dist/components/c-toast.js +1 -1
  46. package/dist/components/c-toasts.js +2 -2
  47. package/dist/components/c-toolbar.js +1 -1
  48. package/dist/components/{p-f4b8b4e1.js → p-1764b16f.js} +2 -2
  49. package/dist/components/{p-f4b8b4e1.js.map → p-1764b16f.js.map} +1 -1
  50. package/dist/csc-ui/csc-ui.esm.js +1 -1
  51. package/dist/csc-ui/csc-ui.esm.js.map +1 -1
  52. package/dist/csc-ui/{p-1eae6514.entry.js → p-04f96715.entry.js} +2 -2
  53. package/dist/csc-ui/{p-ff9cb75f.entry.js → p-6b3b2cf1.entry.js} +2 -2
  54. package/dist/csc-ui/{p-ff9cb75f.entry.js.map → p-6b3b2cf1.entry.js.map} +1 -1
  55. package/dist/csc-ui/{p-acce6632.entry.js → p-6c3cb9f3.entry.js} +2 -2
  56. package/dist/csc-ui/{p-06e13288.entry.js → p-725854f2.entry.js} +2 -2
  57. package/dist/csc-ui/{p-26526434.entry.js → p-7a303273.entry.js} +2 -2
  58. package/dist/csc-ui/{p-a84641e0.entry.js → p-7a97c209.entry.js} +2 -2
  59. package/dist/csc-ui/{p-6ec4e25e.entry.js → p-8f945add.entry.js} +2 -2
  60. package/dist/csc-ui/p-a0647489.entry.js +2 -0
  61. package/dist/csc-ui/p-a0647489.entry.js.map +1 -0
  62. package/dist/csc-ui/{p-eafe038d.entry.js → p-c29ab211.entry.js} +2 -2
  63. package/dist/csc-ui/{p-4a1cf8bf.entry.js → p-e7c448f3.entry.js} +2 -2
  64. package/dist/csc-ui/{p-f164b124.entry.js → p-f51e246f.entry.js} +2 -2
  65. package/dist/esm/c-accordion-item.entry.js +1 -1
  66. package/dist/esm/c-accordion-item.entry.js.map +1 -1
  67. package/dist/esm/c-autocomplete_34.entry.js +7 -5
  68. package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
  69. package/dist/esm/c-tab-buttons.entry.js +1 -1
  70. package/dist/esm/c-tab-item.entry.js +1 -1
  71. package/dist/esm/c-tab-items.entry.js +1 -1
  72. package/dist/esm/c-tab.entry.js +1 -1
  73. package/dist/esm/c-tabs.entry.js +1 -1
  74. package/dist/esm/c-tag.entry.js +1 -1
  75. package/dist/esm/c-tags.entry.js +1 -1
  76. package/dist/esm/c-toast.entry.js +1 -1
  77. package/dist/esm/c-toasts.entry.js +1 -1
  78. package/dist/esm/csc-ui.js +1 -1
  79. package/dist/esm/loader.js +1 -1
  80. package/dist/types/components/c-switch/c-switch.d.ts +1 -0
  81. package/dist/types/components.d.ts +8 -0
  82. package/package.json +1 -1
  83. package/vscode-data.json +4 -0
  84. package/dist/csc-ui/p-307f3fbc.entry.js +0 -2
  85. package/dist/csc-ui/p-307f3fbc.entry.js.map +0 -1
  86. /package/dist/csc-ui/{p-1eae6514.entry.js.map → p-04f96715.entry.js.map} +0 -0
  87. /package/dist/csc-ui/{p-acce6632.entry.js.map → p-6c3cb9f3.entry.js.map} +0 -0
  88. /package/dist/csc-ui/{p-06e13288.entry.js.map → p-725854f2.entry.js.map} +0 -0
  89. /package/dist/csc-ui/{p-26526434.entry.js.map → p-7a303273.entry.js.map} +0 -0
  90. /package/dist/csc-ui/{p-a84641e0.entry.js.map → p-7a97c209.entry.js.map} +0 -0
  91. /package/dist/csc-ui/{p-6ec4e25e.entry.js.map → p-8f945add.entry.js.map} +0 -0
  92. /package/dist/csc-ui/{p-eafe038d.entry.js.map → p-c29ab211.entry.js.map} +0 -0
  93. /package/dist/csc-ui/{p-4a1cf8bf.entry.js.map → p-e7c448f3.entry.js.map} +0 -0
  94. /package/dist/csc-ui/{p-f164b124.entry.js.map → p-f51e246f.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class CToolbar {
3
3
  render() {
4
- return (h(Host, { key: 'ba6e2d1bd6d3548116e7898c677add50d906f54f' }, h("div", { key: '2e39e920d67ffacbe183993a901198fc9399a644', class: "c-toolbar" }, h("slot", { key: 'fc839dee5eca175c3cc57fccf31796652e9bd82b' })), h("div", { key: '953fb86d66ea9bb0e1090dd6770a63a6706ae69d', class: "spacer" })));
4
+ return (h(Host, { key: '44e20bd1f1c33a3163e9d1d29a988294f5cee188' }, h("div", { key: '0b2ea5a890800110305b9bd695402361cf279dab', class: "c-toolbar" }, h("slot", { key: '5a91bc045a076a7a6967fa4158d57e0afc5e900f' })), h("div", { key: '37a4efc24fcaaeec1d7cdec333b36fb6c3aef361', class: "spacer" })));
5
5
  }
6
6
  static get is() { return "c-toolbar"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -2,7 +2,7 @@ import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-
2
2
  import { m as mdiChevronRight } from './p-3ea8acb0.js';
3
3
  import { d as defineCustomElement$2 } from './p-8068bc3d.js';
4
4
 
5
- const cAccordionItemCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-accordion-item-header-background-color:var(--c-accordion-item-header-background-color, var(--c-primary-200));--_c-accordion-item-outline-color:var(--c-accordion-item-outline-color, var(--c-primary-600));--_c-accordion-item-text-color:var(--c-accordion-item-text-color, var(--c-primary-600));max-width:100%}:host summary::-webkit-details-marker{display:none}.c-accordion-item{--_c-accordion-item-indicator-rotation:rotate(0deg);--_c-accordion-item-content-height:0;--_c-accordion-item-min-height:46px;--_c-accordion-item-border-radius:6px;--_c-accordion-item-padding:12px;--_c-accordion-item-overflow:visible;--_c-accordion-item-outline-color-offset:2px;display:block;overflow:var(--_c-accordion-item-overflow)}.c-accordion-item--expanding{--_c-accordion-item-overflow:hidden !important;--_c-accordion-item-outline-color:transparent}.c-accordion-item--expanded{--_c-accordion-item-content-height:auto;--_c-accordion-item-indicator-rotation:rotate(90deg);--_c-accordion-item-overflow:visible}.c-accordion-item--outlined{box-shadow:inset 0 0 0 2px var(--_c-accordion-item-header-background-color);border-radius:var(--_c-accordion-item-border-radius)}.c-accordion-item__header{min-height:var(--_c-accordion-item-min-height);user-select:none;background-color:var(--_c-accordion-item-header-background-color);display:grid;column-gap:8px;align-items:center;padding:0 var(--_c-accordion-item-padding);border-radius:var(--_c-accordion-item-border-radius);cursor:pointer;grid-template-columns:1fr auto;border:none;text-align:left;margin:0;font-family:var(--c-font-family);position:relative}.c-accordion-item__header--has-icon{grid-template-columns:auto 1fr auto}.c-accordion-item__header--expanded{cursor:default}.c-accordion-item__header--expanded.c-accordion-item__header--collapsable{cursor:pointer}.c-accordion-item__header:focus{outline:2px var(--_c-accordion-item-outline-color) solid;outline-offset:var(--_c-accordion-item-outline-color-offset)}@supports selector(:focus-visible){.c-accordion-item__header:focus{outline:none}}.c-accordion-item__header:focus-visible{outline:2px var(--_c-accordion-item-outline-color) solid;outline-offset:var(--_c-accordion-item-outline-color-offset)}.c-accordion-item__title{margin-top:0;margin-bottom:0;font-weight:500;font-size:16px;line-height:1;color:var(--_c-accordion-item-text-color)}.c-accordion-item__content{padding:16px}.c-accordion-item__content-wrapper{overflow:visible}.c-accordion-item__icon{height:24px;font-size:24px;color:var(--_c-accordion-item-text-color);display:flex;align-items:center}.c-accordion-item__icon>*{height:24px;display:flex;align-items:center}.c-accordion-item__indicator{display:flex;align-items:center;color:var(--_c-accordion-item-text-color);justify-self:end}.c-accordion-item__indicator c-icon{width:24px;height:24px !important;transform:var(--_c-accordion-item-indicator-rotation);transition:transform 0.3s ease}";
5
+ const cAccordionItemCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-accordion-item-header-background-color:var(--c-accordion-item-header-background-color, var(--c-primary-200));--_c-accordion-item-outline-color:var(--c-accordion-item-outline-color, var(--c-primary-600));--_c-accordion-item-text-color:var(--c-accordion-item-text-color, var(--c-primary-600));max-width:100%}:host summary::-webkit-details-marker{display:none}.c-accordion-item{--_c-accordion-item-indicator-rotation:rotate(-90deg);--_c-accordion-item-content-height:0;--_c-accordion-item-min-height:46px;--_c-accordion-item-border-radius:6px;--_c-accordion-item-padding:12px;--_c-accordion-item-overflow:visible;--_c-accordion-item-outline-color-offset:2px;display:block;overflow:var(--_c-accordion-item-overflow)}.c-accordion-item--expanding{--_c-accordion-item-overflow:hidden !important;--_c-accordion-item-outline-color:transparent}.c-accordion-item--expanded{--_c-accordion-item-content-height:auto;--_c-accordion-item-indicator-rotation:rotate(90deg);--_c-accordion-item-overflow:visible}.c-accordion-item--outlined{box-shadow:inset 0 0 0 2px var(--_c-accordion-item-header-background-color);border-radius:var(--_c-accordion-item-border-radius)}.c-accordion-item__header{min-height:var(--_c-accordion-item-min-height);user-select:none;background-color:var(--_c-accordion-item-header-background-color);display:grid;column-gap:8px;align-items:center;padding:0 var(--_c-accordion-item-padding);border-radius:var(--_c-accordion-item-border-radius);cursor:pointer;grid-template-columns:1fr auto;border:none;text-align:left;margin:0;font-family:var(--c-font-family);position:relative}.c-accordion-item__header--has-icon{grid-template-columns:auto 1fr auto}.c-accordion-item__header--expanded{cursor:default}.c-accordion-item__header--expanded.c-accordion-item__header--collapsable{cursor:pointer}.c-accordion-item__header:focus{outline:2px var(--_c-accordion-item-outline-color) solid;outline-offset:var(--_c-accordion-item-outline-color-offset)}@supports selector(:focus-visible){.c-accordion-item__header:focus{outline:none}}.c-accordion-item__header:focus-visible{outline:2px var(--_c-accordion-item-outline-color) solid;outline-offset:var(--_c-accordion-item-outline-color-offset)}.c-accordion-item__title{margin-top:0;margin-bottom:0;font-weight:500;font-size:16px;line-height:1;color:var(--_c-accordion-item-text-color)}.c-accordion-item__content{padding:16px}.c-accordion-item__content-wrapper{overflow:visible}.c-accordion-item__icon{height:24px;font-size:24px;color:var(--_c-accordion-item-text-color);display:flex;align-items:center}.c-accordion-item__icon>*{height:24px;display:flex;align-items:center}.c-accordion-item__indicator{display:flex;align-items:center;color:var(--_c-accordion-item-text-color);justify-self:end}.c-accordion-item__indicator c-icon{width:24px;height:24px !important;transform:var(--_c-accordion-item-indicator-rotation);transition:transform 0.3s ease}";
6
6
  const CAccordionItemStyle0 = cAccordionItemCss;
7
7
 
8
8
  const CAccordionItem$1 = proxyCustomElement(class CAccordionItem extends H {
@@ -1 +1 @@
1
- {"file":"c-accordion-item.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,ygGAAygG,CAAC;AACpiG,6BAAe,iBAAiB;;MCsBnBA,gBAAc;;;;;;QA4CjB,kBAAa,GAAG,KAAK,CAAC;QAEtB,iBAAY,GAAG,KAAK,CAAC;2BAvCP,KAAK;;;wBAeR,KAAK;wBAML,KAAK;+BA2IG,KAAK;uBAEb,KAAK;;IAtHxB,aAAa,CAAC,KAAoB;QAChC,IACG,KAAK,CAAC,MAAsB,CAAC,OAAO,KAAK,kBAAkB;aAC3D,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,EACjD;YACA,KAAK,CAAC,cAAc,EAAE,CAAC;YAEvB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;SAChC;KACF;IAGD,IAAI,CAAC,KAAY;QACf,KAAK,CAAC,eAAe,EAAE,CAAC;KACzB;IAED,IAAY,gBAAgB;QAC1B,MAAM,aAAa,GAAG,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AAH,CAAK;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CAccordionItem"],"sources":["src/components/c-accordion-item/c-accordion-item.scss?tag=c-accordion-item&encapsulation=shadow","src/components/c-accordion-item/c-accordion-item.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-accordion-item-header-background-color: Accordion item header background color\n * @prop --c-accordion-item-outline-color: Accordion item outline color\n * @prop --c-accordion-item-text-color: Accordion item text color\n */\n --_c-accordion-item-header-background-color: var(--c-accordion-item-header-background-color, var(--c-primary-200));\n --_c-accordion-item-outline-color: var(--c-accordion-item-outline-color, var(--c-primary-600));\n --_c-accordion-item-text-color: var(--c-accordion-item-text-color, var(--c-primary-600));\n\n max-width: 100%;\n\n summary::-webkit-details-marker {\n display: none;\n }\n}\n\n.c-accordion-item {\n $this: &;\n\n --_c-accordion-item-indicator-rotation: rotate(0deg);\n --_c-accordion-item-content-height: 0;\n --_c-accordion-item-min-height: 46px;\n --_c-accordion-item-border-radius: 6px;\n --_c-accordion-item-padding: 12px;\n --_c-accordion-item-overflow: visible;\n --_c-accordion-item-outline-color-offset: 2px;\n\n display: block;\n overflow: var(--_c-accordion-item-overflow);\n\n &--expanding {\n --_c-accordion-item-overflow: hidden !important;\n --_c-accordion-item-outline-color: transparent;\n }\n\n &--expanded {\n --_c-accordion-item-content-height: auto;\n --_c-accordion-item-indicator-rotation: rotate(90deg);\n --_c-accordion-item-overflow: visible;\n }\n\n &--outlined {\n box-shadow: inset 0 0 0 2px var(--_c-accordion-item-header-background-color);\n border-radius: var(--_c-accordion-item-border-radius);\n }\n\n &__header {\n min-height: var(--_c-accordion-item-min-height);\n user-select: none;\n background-color: var(--_c-accordion-item-header-background-color);\n display: grid;\n column-gap: 8px;\n align-items: center;\n padding: 0 var(--_c-accordion-item-padding);\n border-radius: var(--_c-accordion-item-border-radius);\n cursor: pointer;\n grid-template-columns: 1fr auto;\n border: none;\n text-align: left;\n margin: 0;\n font-family: var(--c-font-family);\n position: relative;\n\n &--has-icon {\n grid-template-columns: auto 1fr auto;\n }\n\n &--expanded {\n cursor: default;\n\n &#{$this}__header--collapsable {\n cursor: pointer;\n }\n }\n\n &:focus {\n outline: 2px var(--_c-accordion-item-outline-color) solid;\n outline-offset: var(--_c-accordion-item-outline-color-offset);\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: none;\n }\n }\n\n &:focus-visible {\n outline: 2px var(--_c-accordion-item-outline-color) solid;\n outline-offset: var(--_c-accordion-item-outline-color-offset);\n }\n }\n\n &__title {\n margin-top: 0;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 16px;\n line-height: 1;\n color: var(--_c-accordion-item-text-color);\n }\n\n &__content {\n padding: 16px;\n }\n\n &__content-wrapper {\n overflow: visible;\n }\n\n &__icon {\n height: 24px;\n font-size: 24px;\n color: var(--_c-accordion-item-text-color);\n display: flex;\n align-items: center;\n\n > * {\n height: 24px;\n display: flex;\n align-items: center;\n }\n }\n\n &__indicator {\n display: flex;\n align-items: center;\n color: var(--_c-accordion-item-text-color);\n justify-self: end;\n\n c-icon {\n width: 24px;\n height: 24px !important;\n transform: var(--_c-accordion-item-indicator-rotation);\n transition: transform 0.3s ease;\n }\n }\n}\n","import {\n Component,\n h,\n Prop,\n Event,\n EventEmitter,\n Listen,\n Element,\n Host,\n State,\n} from '@stencil/core';\nimport { mdiChevronRight } from '@mdi/js';\n\n/**\n * @parent c-accordion\n * @slot Default slot - Default slot\n * @slot header - Custom header slot\n */\n@Component({\n tag: 'c-accordion-item',\n styleUrl: 'c-accordion-item.scss',\n shadow: true,\n})\nexport class CAccordionItem {\n @Element() el: HTMLCAccordionItemElement;\n\n /**\n * Marks the item as collapsable\n * @private\n */\n @Prop() collapsable = false;\n\n /**\n * Heading of the accordion item\n */\n @Prop() heading: string;\n\n /**\n * Value of the accordion item\n */\n @Prop() value: number | string;\n\n /**\n * Expansion status of the item\n */\n @Prop() expanded = false;\n\n /**\n * Show an outline around the expanded item\n * @private\n */\n @Prop() outlined = false;\n\n /**\n * Emit changes to the c-accordion\n * @private\n */\n @Event() itemChange: EventEmitter;\n\n private _animation: Animation;\n\n private _accordionElement: HTMLDetailsElement;\n\n private _accordionHeader: HTMLDetailsElement;\n\n private _accordionContent: HTMLDivElement;\n\n private _isCollapsing = false;\n\n private _isExpanding = false;\n\n private static _uniqueId = 0;\n\n @Listen('keydown', { capture: true })\n handleKeyDown(event: KeyboardEvent) {\n if (\n (event.target as HTMLElement).tagName === 'C-ACCORDION-ITEM' &&\n (event.key === 'Enter' || event.code === 'Space')\n ) {\n event.preventDefault();\n\n this._onToggleAccordion(event);\n }\n }\n\n @Listen('changeValue')\n stop(event: Event) {\n event.stopPropagation();\n }\n\n private get _collapsedHeight() {\n const outlineHeight = this.outlined ? 4 : 0;\n\n return this._accordionHeader.offsetHeight + outlineHeight;\n }\n\n private get _expandedHeight() {\n const outlineHeight = this.outlined ? 4 : 0;\n const headerHeight = this._accordionHeader.offsetHeight;\n const contentHeight = this._accordionContent.offsetHeight;\n\n return headerHeight + contentHeight + outlineHeight;\n }\n\n private _onToggleAccordion(e) {\n e.preventDefault();\n\n if (!this.collapsable && this.expanded) return;\n\n this._accordionElement.classList.add('c-accordion-item--expanding');\n\n if (this._isCollapsing || !this.expanded) {\n this._expand();\n } else if (this._isExpanding || this.expanded) {\n this._collapse();\n }\n }\n\n private _collapse() {\n this._isCollapsing = true;\n\n this.expanded = false;\n\n const startHeight = `${this._accordionElement.offsetHeight}px`;\n\n const endHeight = `${this._collapsedHeight}px`;\n\n if (this._animation) {\n this._animation.cancel();\n }\n\n this.itemChange.emit({ value: this.value, expanded: this.expanded });\n\n this._animation = this._accordionElement.animate(\n { height: [startHeight, endHeight] },\n { duration: 300, easing: 'cubic-bezier(0.075, 0.82, 0.165, 1)' },\n );\n\n this._animation.onfinish = () => this._onAnimationFinish(false);\n this._animation.oncancel = () => (this._isCollapsing = false);\n }\n\n private _expand() {\n this._accordionElement.style.height = `${this._accordionElement.offsetHeight}px`;\n\n this.expanded = true;\n\n window.requestAnimationFrame(() => {\n this._isExpanding = true;\n\n const startHeight = `${this._collapsedHeight}px`;\n\n const endHeight = `${this._expandedHeight}px`;\n\n if (this._animation) {\n this._animation.cancel();\n }\n\n this.itemChange.emit({ value: this.value, expanded: this.expanded });\n\n this._animation = this._accordionElement.animate(\n { height: [startHeight, endHeight] },\n { duration: 300, easing: 'cubic-bezier(0.25, 0.8, 0.5, 1)' },\n );\n\n this._animation.onfinish = () => this._onAnimationFinish(true);\n this._animation.oncancel = () => (this._isExpanding = false);\n });\n }\n\n private _onAnimationFinish(isOpen: boolean) {\n this.expanded = isOpen;\n\n this._animation = null;\n\n this._isCollapsing = false;\n\n this._isExpanding = false;\n\n this._accordionElement.style.height = '';\n\n this._accordionElement.classList.remove('c-accordion-item--expanding');\n\n this.expanded = isOpen;\n }\n\n componentWillLoad() {\n CAccordionItem._uniqueId += 1;\n }\n\n @State() hasCustomHeader = false;\n\n @State() hasIcon = false;\n\n componentDidLoad() {\n this.hasCustomHeader = !!this.el.querySelector('[slot=\"header\"]');\n this.hasIcon = !!this.el.querySelector('[slot=\"icon\"]');\n }\n\n render() {\n const accordionClasses = {\n 'c-accordion-item': true,\n 'c-accordion-item--expanded': this.expanded,\n 'c-accordion-item--outlined': this.outlined,\n };\n\n const headerClasses = {\n 'c-accordion-item__header': true,\n 'c-accordion-item__header--collapsable': this.collapsable,\n 'c-accordion-item__header--expanded': this.expanded,\n 'c-accordion-item__header--has-icon': this.hasIcon,\n };\n\n const indicatorClasses = {\n 'c-accordion-item__indicator': true,\n 'c-accordion-item__indicator--expanded': this.expanded,\n };\n\n return (\n <Host>\n <details\n id={`panel__${CAccordionItem._uniqueId}`}\n ref={(el) => (this._accordionElement = el as HTMLDetailsElement)}\n class={accordionClasses}\n open={!!this.expanded}\n >\n <summary\n ref={(el) => (this._accordionHeader = el as HTMLDetailsElement)}\n class={headerClasses}\n onClick={(event) => this._onToggleAccordion(event)}\n >\n {this.hasIcon && (\n <div class=\"c-accordion-item__icon\" aria-visible=\"hidden\">\n <slot name=\"icon\"></slot>\n </div>\n )}\n\n {this.hasCustomHeader && <slot name=\"header\"></slot>}\n\n {!this.hasCustomHeader && (\n <div class=\"c-accordion-item__title\">{this.heading}</div>\n )}\n\n <div class={indicatorClasses}>\n <c-icon\n path={mdiChevronRight}\n class={{ expanded: this.expanded }}\n ></c-icon>\n </div>\n </summary>\n\n <div\n ref={(el) => (this._accordionContent = el as HTMLDivElement)}\n class=\"c-accordion-item__content-wrapper\"\n >\n <div\n class=\"c-accordion-item__content\"\n role=\"region\"\n aria-labelledby={`header__${CAccordionItem._uniqueId}`}\n >\n <slot></slot>\n </div>\n </div>\n </details>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"c-accordion-item.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,2gGAA2gG,CAAC;AACtiG,6BAAe,iBAAiB;;MCsBnBA,gBAAc;;;;;;QA4CjB,kBAAa,GAAG,KAAK,CAAC;QAEtB,iBAAY,GAAG,KAAK,CAAC;2BAvCP,KAAK;;;wBAeR,KAAK;wBAML,KAAK;+BA2IG,KAAK;uBAEb,KAAK;;IAtHxB,aAAa,CAAC,KAAoB;QAChC,IACG,KAAK,CAAC,MAAsB,CAAC,OAAO,KAAK,kBAAkB;aAC3D,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,EACjD;YACA,KAAK,CAAC,cAAc,EAAE,CAAC;YAEvB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;SAChC;KACF;IAGD,IAAI,CAAC,KAAY;QACf,KAAK,CAAC,eAAe,EAAE,CAAC;KACzB;IAED,IAAY,gBAAgB;QAC1B,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,GAAG,aAAa,CAAC;KAC3D;IAED,IAAY,eAAe;QACzB,MAAM,aAAa,GAAG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cAAc,CAAC,SAAS,EAAE,EACxC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,EAAwB,CAAC,EAChE,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,IAErB,gEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,gBAAgB,GAAG,EAAwB,CAAC,EAC/D,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAEjD,IAAI,CAAC,OAAO,KACX,4DAAK,KAAK,EAAC,wBAAwB,kBAAc,QAAQ,IACvD,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACrB,CACP,EAEA,IAAI,CAAC,eAAe,IAAI,6DAAM,IAAI,EAAC,QAAQ,GAAQ,EAEnD,CAAC,IAAI,CAAC,eAAe,KACpB,4DAAK,KAAK,EAAC,yBAAyB,IAAE,IAAI,CAAC,OAAO,CAAO,CAC1D,EAED,4DAAK,KAAK,EAAE,gBAAgB,IAC1B,+DACE,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,GAC1B,CACN,CACE,EAEV,4DACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,EAAoB,CAAC,EAC5D,KAAK,EAAC,mCAAmC,IAEzC,4DACE,KAAK,EAAC,2BAA2B,EACjC,IAAI,EAAC,QAAQ,qBACI,WAAW,cAAc,CAAC,SAAS,EAAE,IAEtD,8DAAa,CACT,CACF,CACE,CACL,EACP;KACH;;;;;;;;;;;;AAnMcA,0BAAS,GAAG,CAAH,CAAK;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CAccordionItem"],"sources":["src/components/c-accordion-item/c-accordion-item.scss?tag=c-accordion-item&encapsulation=shadow","src/components/c-accordion-item/c-accordion-item.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-accordion-item-header-background-color: Accordion item header background color\n * @prop --c-accordion-item-outline-color: Accordion item outline color\n * @prop --c-accordion-item-text-color: Accordion item text color\n */\n --_c-accordion-item-header-background-color: var(--c-accordion-item-header-background-color, var(--c-primary-200));\n --_c-accordion-item-outline-color: var(--c-accordion-item-outline-color, var(--c-primary-600));\n --_c-accordion-item-text-color: var(--c-accordion-item-text-color, var(--c-primary-600));\n\n max-width: 100%;\n\n summary::-webkit-details-marker {\n display: none;\n }\n}\n\n.c-accordion-item {\n $this: &;\n\n --_c-accordion-item-indicator-rotation: rotate(-90deg);\n --_c-accordion-item-content-height: 0;\n --_c-accordion-item-min-height: 46px;\n --_c-accordion-item-border-radius: 6px;\n --_c-accordion-item-padding: 12px;\n --_c-accordion-item-overflow: visible;\n --_c-accordion-item-outline-color-offset: 2px;\n\n display: block;\n overflow: var(--_c-accordion-item-overflow);\n\n &--expanding {\n --_c-accordion-item-overflow: hidden !important;\n --_c-accordion-item-outline-color: transparent;\n }\n\n &--expanded {\n --_c-accordion-item-content-height: auto;\n --_c-accordion-item-indicator-rotation: rotate(90deg);\n --_c-accordion-item-overflow: visible;\n }\n\n &--outlined {\n box-shadow: inset 0 0 0 2px var(--_c-accordion-item-header-background-color);\n border-radius: var(--_c-accordion-item-border-radius);\n }\n\n &__header {\n min-height: var(--_c-accordion-item-min-height);\n user-select: none;\n background-color: var(--_c-accordion-item-header-background-color);\n display: grid;\n column-gap: 8px;\n align-items: center;\n padding: 0 var(--_c-accordion-item-padding);\n border-radius: var(--_c-accordion-item-border-radius);\n cursor: pointer;\n grid-template-columns: 1fr auto;\n border: none;\n text-align: left;\n margin: 0;\n font-family: var(--c-font-family);\n position: relative;\n\n &--has-icon {\n grid-template-columns: auto 1fr auto;\n }\n\n &--expanded {\n cursor: default;\n\n &#{$this}__header--collapsable {\n cursor: pointer;\n }\n }\n\n &:focus {\n outline: 2px var(--_c-accordion-item-outline-color) solid;\n outline-offset: var(--_c-accordion-item-outline-color-offset);\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: none;\n }\n }\n\n &:focus-visible {\n outline: 2px var(--_c-accordion-item-outline-color) solid;\n outline-offset: var(--_c-accordion-item-outline-color-offset);\n }\n }\n\n &__title {\n margin-top: 0;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 16px;\n line-height: 1;\n color: var(--_c-accordion-item-text-color);\n }\n\n &__content {\n padding: 16px;\n }\n\n &__content-wrapper {\n overflow: visible;\n }\n\n &__icon {\n height: 24px;\n font-size: 24px;\n color: var(--_c-accordion-item-text-color);\n display: flex;\n align-items: center;\n\n > * {\n height: 24px;\n display: flex;\n align-items: center;\n }\n }\n\n &__indicator {\n display: flex;\n align-items: center;\n color: var(--_c-accordion-item-text-color);\n justify-self: end;\n\n c-icon {\n width: 24px;\n height: 24px !important;\n transform: var(--_c-accordion-item-indicator-rotation);\n transition: transform 0.3s ease;\n }\n }\n}\n","import {\n Component,\n h,\n Prop,\n Event,\n EventEmitter,\n Listen,\n Element,\n Host,\n State,\n} from '@stencil/core';\nimport { mdiChevronRight } from '@mdi/js';\n\n/**\n * @parent c-accordion\n * @slot Default slot - Default slot\n * @slot header - Custom header slot\n */\n@Component({\n tag: 'c-accordion-item',\n styleUrl: 'c-accordion-item.scss',\n shadow: true,\n})\nexport class CAccordionItem {\n @Element() el: HTMLCAccordionItemElement;\n\n /**\n * Marks the item as collapsable\n * @private\n */\n @Prop() collapsable = false;\n\n /**\n * Heading of the accordion item\n */\n @Prop() heading: string;\n\n /**\n * Value of the accordion item\n */\n @Prop() value: number | string;\n\n /**\n * Expansion status of the item\n */\n @Prop() expanded = false;\n\n /**\n * Show an outline around the expanded item\n * @private\n */\n @Prop() outlined = false;\n\n /**\n * Emit changes to the c-accordion\n * @private\n */\n @Event() itemChange: EventEmitter;\n\n private _animation: Animation;\n\n private _accordionElement: HTMLDetailsElement;\n\n private _accordionHeader: HTMLDetailsElement;\n\n private _accordionContent: HTMLDivElement;\n\n private _isCollapsing = false;\n\n private _isExpanding = false;\n\n private static _uniqueId = 0;\n\n @Listen('keydown', { capture: true })\n handleKeyDown(event: KeyboardEvent) {\n if (\n (event.target as HTMLElement).tagName === 'C-ACCORDION-ITEM' &&\n (event.key === 'Enter' || event.code === 'Space')\n ) {\n event.preventDefault();\n\n this._onToggleAccordion(event);\n }\n }\n\n @Listen('changeValue')\n stop(event: Event) {\n event.stopPropagation();\n }\n\n private get _collapsedHeight() {\n const outlineHeight = this.outlined ? 4 : 0;\n\n return this._accordionHeader.offsetHeight + outlineHeight;\n }\n\n private get _expandedHeight() {\n const outlineHeight = this.outlined ? 4 : 0;\n const headerHeight = this._accordionHeader.offsetHeight;\n const contentHeight = this._accordionContent.offsetHeight;\n\n return headerHeight + contentHeight + outlineHeight;\n }\n\n private _onToggleAccordion(e) {\n e.preventDefault();\n\n if (!this.collapsable && this.expanded) return;\n\n this._accordionElement.classList.add('c-accordion-item--expanding');\n\n if (this._isCollapsing || !this.expanded) {\n this._expand();\n } else if (this._isExpanding || this.expanded) {\n this._collapse();\n }\n }\n\n private _collapse() {\n this._isCollapsing = true;\n\n this.expanded = false;\n\n const startHeight = `${this._accordionElement.offsetHeight}px`;\n\n const endHeight = `${this._collapsedHeight}px`;\n\n if (this._animation) {\n this._animation.cancel();\n }\n\n this.itemChange.emit({ value: this.value, expanded: this.expanded });\n\n this._animation = this._accordionElement.animate(\n { height: [startHeight, endHeight] },\n { duration: 300, easing: 'cubic-bezier(0.075, 0.82, 0.165, 1)' },\n );\n\n this._animation.onfinish = () => this._onAnimationFinish(false);\n this._animation.oncancel = () => (this._isCollapsing = false);\n }\n\n private _expand() {\n this._accordionElement.style.height = `${this._accordionElement.offsetHeight}px`;\n\n this.expanded = true;\n\n window.requestAnimationFrame(() => {\n this._isExpanding = true;\n\n const startHeight = `${this._collapsedHeight}px`;\n\n const endHeight = `${this._expandedHeight}px`;\n\n if (this._animation) {\n this._animation.cancel();\n }\n\n this.itemChange.emit({ value: this.value, expanded: this.expanded });\n\n this._animation = this._accordionElement.animate(\n { height: [startHeight, endHeight] },\n { duration: 300, easing: 'cubic-bezier(0.25, 0.8, 0.5, 1)' },\n );\n\n this._animation.onfinish = () => this._onAnimationFinish(true);\n this._animation.oncancel = () => (this._isExpanding = false);\n });\n }\n\n private _onAnimationFinish(isOpen: boolean) {\n this.expanded = isOpen;\n\n this._animation = null;\n\n this._isCollapsing = false;\n\n this._isExpanding = false;\n\n this._accordionElement.style.height = '';\n\n this._accordionElement.classList.remove('c-accordion-item--expanding');\n\n this.expanded = isOpen;\n }\n\n componentWillLoad() {\n CAccordionItem._uniqueId += 1;\n }\n\n @State() hasCustomHeader = false;\n\n @State() hasIcon = false;\n\n componentDidLoad() {\n this.hasCustomHeader = !!this.el.querySelector('[slot=\"header\"]');\n this.hasIcon = !!this.el.querySelector('[slot=\"icon\"]');\n }\n\n render() {\n const accordionClasses = {\n 'c-accordion-item': true,\n 'c-accordion-item--expanded': this.expanded,\n 'c-accordion-item--outlined': this.outlined,\n };\n\n const headerClasses = {\n 'c-accordion-item__header': true,\n 'c-accordion-item__header--collapsable': this.collapsable,\n 'c-accordion-item__header--expanded': this.expanded,\n 'c-accordion-item__header--has-icon': this.hasIcon,\n };\n\n const indicatorClasses = {\n 'c-accordion-item__indicator': true,\n 'c-accordion-item__indicator--expanded': this.expanded,\n };\n\n return (\n <Host>\n <details\n id={`panel__${CAccordionItem._uniqueId}`}\n ref={(el) => (this._accordionElement = el as HTMLDetailsElement)}\n class={accordionClasses}\n open={!!this.expanded}\n >\n <summary\n ref={(el) => (this._accordionHeader = el as HTMLDetailsElement)}\n class={headerClasses}\n onClick={(event) => this._onToggleAccordion(event)}\n >\n {this.hasIcon && (\n <div class=\"c-accordion-item__icon\" aria-visible=\"hidden\">\n <slot name=\"icon\"></slot>\n </div>\n )}\n\n {this.hasCustomHeader && <slot name=\"header\"></slot>}\n\n {!this.hasCustomHeader && (\n <div class=\"c-accordion-item__title\">{this.heading}</div>\n )}\n\n <div class={indicatorClasses}>\n <c-icon\n path={mdiChevronRight}\n class={{ expanded: this.expanded }}\n ></c-icon>\n </div>\n </summary>\n\n <div\n ref={(el) => (this._accordionContent = el as HTMLDivElement)}\n class=\"c-accordion-item__content-wrapper\"\n >\n <div\n class=\"c-accordion-item__content\"\n role=\"region\"\n aria-labelledby={`header__${CAccordionItem._uniqueId}`}\n >\n <slot></slot>\n </div>\n </div>\n </details>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,7 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h } from './p-2fbcb4e1.js';
2
+ import { d as defineCustomElement$2 } from './p-7f5a7176.js';
2
3
 
3
- const cSwitchCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-switch){--_c-switch-border-color:var(--c-switch-border-color, var(--c-tertiary-600));--_c-switch-handle-color:var(--c-switch-handle-color, var(--c-tertiary-600));--_c-switch-slider-color:var(--c-switch-slider-color, var(--c-transparent));--_c-switch-border-color-disabled:var(--c-switch-border-color-disabled, var(--c-transparent));--_c-switch-handle-color-disabled:var(--c-switch-handle-color-disabled, var(--c-tertiary-500));--_c-switch-slider-color-disabled:var(--c-switch-slider-color-disabled, var(--c-tertiary-200));--_c-switch-border-color-active:var(--c-switch-border-color-active, var(--c-primary-600));--_c-switch-handle-color-active:var(--c-switch-handle-color-active, var(--c-white));--_c-switch-slider-color-active:var(--c-switch-slider-color-active, var(--c-primary-600));--_c-switch-border-color-active-disabled:var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));--_c-switch-handle-color-active-disabled:var(--c-switch-handle-color-active-disabled, var(--c-white));--_c-switch-slider-color-active-disabled:var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));display:inline-block}.c-switch{--_c-switch-handle-margin:5px;--_c-switch-pointer:pointer;--_c-switch-height:22px;--_c-switch-width:44px;--_c-switch-handle-size:calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));--_c-switch-handle-position-active:calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );backface-visibility:hidden;transform:translate3d(0, 0, 0);display:inline-grid;height:var(--_c-switch-height);position:relative;grid-template-columns:1fr;gap:12px;align-items:center}.c-switch--disabled{--_c-switch-pointer:default;--_c-switch-handle-color:var(--_c-switch-handle-color-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-disabled);--_c-switch-border-color:var(--_c-switch-border-color-disabled);--c-error-600:var(--c-tertiary-400);color:var(--c-tertiary-500)}.c-switch--label{grid-template-columns:var(--_c-switch-width) auto}.c-switch__label span.required{color:var(--c-error-600)}.c-switch__input{height:var(--_c-switch-height);position:relative;width:var(--_c-switch-width);align-self:start}.c-switch__slider{background-color:var(--_c-switch-slider-color);border-radius:var(--_c-switch-height);box-shadow:inset 0 0 0 2px var(--_c-switch-border-color);inset:0;cursor:var(--_c-switch-pointer);position:absolute;transform-origin:50% 50%;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider::before{background-color:var(--_c-switch-handle-color);border-radius:50%;bottom:var(--_c-switch-handle-margin);content:\"\";height:var(--_c-switch-handle-size);left:var(--_c-switch-handle-margin);position:absolute;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:var(--_c-switch-handle-size)}.c-switch input{height:0;opacity:0;width:0}.c-switch input:checked+.c-switch__slider{--_c-switch-handle-color:var(--_c-switch-handle-color-active);--_c-switch-slider-color:var(--_c-switch-slider-color-active);--_c-switch-border-color:var(--_c-switch-border-color-active)}.c-switch input:checked+.c-switch__slider::before{transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider--disabled{--_c-switch-handle-color:var(--_c-switch-handle-color-active-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-active-disabled);--_c-switch-border-color:var(--_c-switch-border-color-active-disabled)}.c-switch input:focus+.c-switch__slider{outline:none}.c-switch input:focus-visible+.c-switch__slider{outline:2px var(--c-primary-600) solid;outline-offset:2px}";
4
+ const cSwitchCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-switch){--_c-switch-border-color:var(--c-switch-border-color, var(--c-tertiary-600));--_c-switch-handle-color:var(--c-switch-handle-color, var(--c-tertiary-600));--_c-switch-slider-color:var(--c-switch-slider-color, var(--c-transparent));--_c-switch-border-color-disabled:var(--c-switch-border-color-disabled, var(--c-transparent));--_c-switch-handle-color-disabled:var(--c-switch-handle-color-disabled, var(--c-tertiary-500));--_c-switch-slider-color-disabled:var(--c-switch-slider-color-disabled, var(--c-tertiary-200));--_c-switch-border-color-active:var(--c-switch-border-color-active, var(--c-primary-600));--_c-switch-handle-color-active:var(--c-switch-handle-color-active, var(--c-white));--_c-switch-slider-color-active:var(--c-switch-slider-color-active, var(--c-primary-600));--_c-switch-border-color-active-disabled:var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));--_c-switch-handle-color-active-disabled:var(--c-switch-handle-color-active-disabled, var(--c-white));--_c-switch-slider-color-active-disabled:var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));display:inline-block}.c-switch{--_c-switch-handle-margin:5px;--_c-switch-pointer:pointer;--_c-switch-height:22px;--_c-switch-width:44px;--_c-switch-handle-size:calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));--_c-switch-handle-position-active:calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );backface-visibility:hidden;transform:translate3d(0, 0, 0);display:inline-grid;height:var(--_c-switch-height);position:relative;grid-template-columns:1fr;gap:12px;align-items:center}.c-switch--disabled{--_c-switch-pointer:default;--_c-switch-handle-color:var(--_c-switch-handle-color-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-disabled);--_c-switch-border-color:var(--_c-switch-border-color-disabled);--c-error-600:var(--c-tertiary-400);color:var(--c-tertiary-500)}.c-switch--disabled c-spinner{--c-color:var(--_c-switch-handle-color-disabled) !important}.c-switch--label{grid-template-columns:var(--_c-switch-width) auto}.c-switch__label span.required{color:var(--c-error-600)}.c-switch__input{height:var(--_c-switch-height);position:relative;width:var(--_c-switch-width);align-self:start}.c-switch__slider{background-color:var(--_c-switch-slider-color);border-radius:var(--_c-switch-height);box-shadow:inset 0 0 0 2px var(--_c-switch-border-color);inset:0;cursor:var(--_c-switch-pointer);position:absolute;transform-origin:50% 50%;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider::before{background-color:var(--_c-switch-handle-color);border-radius:50%;bottom:var(--_c-switch-handle-margin);content:\"\";height:var(--_c-switch-handle-size);left:var(--_c-switch-handle-margin);position:absolute;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:var(--_c-switch-handle-size)}.c-switch__slider c-spinner{--c-color:var(--_c-switch-handle-color) !important;pointer-events:none;z-index:2;position:absolute;left:4px;top:0;opacity:0;transition:all 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider--loading c-spinner{opacity:1}.c-switch__slider--loading::before{opacity:0}.c-switch input{height:0;opacity:0;width:0}.c-switch input:checked+.c-switch__slider{--_c-switch-handle-color:var(--_c-switch-handle-color-active);--_c-switch-slider-color:var(--_c-switch-slider-color-active);--_c-switch-border-color:var(--_c-switch-border-color-active)}.c-switch input:checked+.c-switch__slider::before{transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider c-spinner{--c-color:var(--_c-switch-handle-color-active) !important;transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider--disabled{--_c-switch-handle-color:var(--_c-switch-handle-color-active-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-active-disabled);--_c-switch-border-color:var(--_c-switch-border-color-active-disabled)}.c-switch input:checked+.c-switch__slider--disabled c-spinner{--c-color:var(--_c-switch-handle-color-active-disabled) !important}.c-switch input:focus+.c-switch__slider{outline:none}.c-switch input:focus-visible+.c-switch__slider{outline:2px var(--c-primary-600) solid;outline-offset:2px}";
4
5
  const CSwitchStyle0 = cSwitchCss;
5
6
 
6
7
  const CSwitch$1 = proxyCustomElement(class CSwitch extends H {
@@ -22,6 +23,7 @@ const CSwitch$1 = proxyCustomElement(class CSwitch extends H {
22
23
  this.trueValue = true;
23
24
  this.falseValue = false;
24
25
  this.hostDisabled = false;
26
+ this.loading = false;
25
27
  this.hostId = undefined;
26
28
  this.required = false;
27
29
  this.hasLabel = false;
@@ -47,8 +49,9 @@ const CSwitch$1 = proxyCustomElement(class CSwitch extends H {
47
49
  const sliderClasses = {
48
50
  'c-switch__slider': true,
49
51
  'c-switch__slider--disabled': !!this.hostDisabled,
52
+ 'c-switch__slider--loading': !!this.loading,
50
53
  };
51
- return (h("label", { key: '97ba8d3db240619d7bbcc913d95f4e9edb7b3285', class: classes, htmlFor: this.hostId }, h("div", { key: 'eebedaa5e4e044bacd1d9c30d952535c46a1d695', class: "c-switch__input" }, h("input", { key: '082c887f49b8bd8de2df453121ebc311d9db0ce5', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), h("span", { key: '21373e304164ebc191fb70b7a8561f31964fdf96', class: sliderClasses })), this.hasLabel ? (h("div", { class: "c-switch__label" }, h("slot", null), this.required && h("span", { class: "required" }, "\u00A0*"))) : null));
54
+ return (h("label", { key: '6c194cf0b5092d24009d79397d8b149e96948dab', class: classes, htmlFor: this.hostId }, h("div", { key: 'ccce15c32a014974761953adb66d18fb36a5cc82', class: "c-switch__input" }, h("input", { key: '70464e2327aee9cc1d1095e0afc1f6b9ca595805', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), h("span", { key: '6f24e4d7d3dcd1b1908096b412d3ce0290dc8d7a', class: sliderClasses }, h("c-spinner", { key: '8dd583521e38f96a476967ec8b053c7267a9338d', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (h("div", { class: "c-switch__label" }, h("slot", null), this.required && h("span", { class: "required" }, "\u00A0*"))) : null));
52
55
  }
53
56
  static get formAssociated() { return true; }
54
57
  get host() { return this; }
@@ -62,6 +65,7 @@ const CSwitch$1 = proxyCustomElement(class CSwitch extends H {
62
65
  "trueValue": [8, "true-value"],
63
66
  "falseValue": [8, "false-value"],
64
67
  "hostDisabled": [4, "disabled"],
68
+ "loading": [4],
65
69
  "hostId": [1, "id"],
66
70
  "required": [4],
67
71
  "hasLabel": [32]
@@ -72,13 +76,18 @@ function defineCustomElement$1() {
72
76
  if (typeof customElements === "undefined") {
73
77
  return;
74
78
  }
75
- const components = ["c-switch"];
79
+ const components = ["c-switch", "c-spinner"];
76
80
  components.forEach(tagName => { switch (tagName) {
77
81
  case "c-switch":
78
82
  if (!customElements.get(tagName)) {
79
83
  customElements.define(tagName, CSwitch$1);
80
84
  }
81
85
  break;
86
+ case "c-spinner":
87
+ if (!customElements.get(tagName)) {
88
+ defineCustomElement$2();
89
+ }
90
+ break;
82
91
  } });
83
92
  }
84
93
 
@@ -1 +1 @@
1
- {"file":"c-switch.js","mappings":";;AAAA,MAAM,UAAU,GAAG,0tHAA0tH,CAAC;AAC9uH,sBAAe,UAAU;;MCqBZA,SAAO;;;;;;;QAyEV,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,YAAY;gBAAE,OAAO;YAE9B,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;YAE7B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;YAEvE,IAAI,CAAC,SAAS,CAAC,YAAY,CACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,UAA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,EAAE,EAAE,IAAI,CAAC,MAAM,kBACD,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EACrC,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,EACxC,QAAQ,EAAE,MAAM,IAAI,CAAC,YAAY,EAAE,GACnC,EACF,6DAAM,KAAK,EAAE,aAAa,GAAS,CAC/B,EACL,IAAI,CAAC,QAAQ,IACZ,WAAK,KAAK,EAAC,iBAAiB,IAC1B,eAAa,EAEZ,IAAI,CAAC,QAAQ,IAAI,YAAM,KAAK,EAAC,UAAU,cAAe,CACnD,IACJ,IAAI,CACF,EACR;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CSwitch"],"sources":["src/components/c-switch/c-switch.scss?tag=c-switch&encapsulation=shadow","src/components/c-switch/c-switch.tsx"],"sourcesContent":[":host(c-switch) {\n /**\n * @prop --c-switch-border-color: Border color\n * @prop --c-switch-handle-color: Handle color\n * @prop --c-switch-slider-color: Background color\n */\n --_c-switch-border-color: var(--c-switch-border-color, var(--c-tertiary-600));\n --_c-switch-handle-color: var(--c-switch-handle-color, var(--c-tertiary-600));\n --_c-switch-slider-color: var(--c-switch-slider-color, var(--c-transparent));\n\n /**\n * @prop --c-switch-border-color-disabled: Disabled border color\n * @prop --c-switch-handle-color-disabled: Disabled handle color\n * @prop --c-switch-slider-color-disabled: Disabled background color\n */\n --_c-switch-border-color-disabled: var(--c-switch-border-color-disabled, var(--c-transparent));\n --_c-switch-handle-color-disabled: var(--c-switch-handle-color-disabled, var(--c-tertiary-500));\n --_c-switch-slider-color-disabled: var(--c-switch-slider-color-disabled, var(--c-tertiary-200));\n\n /**\n * @prop --c-switch-slider-color-active: Active background color\n * @prop --c-switch-border-color-active: Active border color\n * @prop --c-switch-handle-color-active: Active handle color\n */\n --_c-switch-border-color-active: var(--c-switch-border-color-active, var(--c-primary-600));\n --_c-switch-handle-color-active: var(--c-switch-handle-color-active, var(--c-white));\n --_c-switch-slider-color-active: var(--c-switch-slider-color-active, var(--c-primary-600));\n\n /**\n * @prop --c-switch-border-color-active-disabled: Disabled active border color\n * @prop --c-switch-handle-color-active-disabled: Disabled active handle color\n * @prop --c-switch-slider-color-active-disabled: Disabled active background color\n */\n --_c-switch-border-color-active-disabled: var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));\n --_c-switch-handle-color-active-disabled: var(--c-switch-handle-color-active-disabled, var(--c-white));\n --_c-switch-slider-color-active-disabled: var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));\n\n display: inline-block;\n}\n\n.c-switch {\n --_c-switch-handle-margin: 5px;\n --_c-switch-pointer: pointer;\n --_c-switch-height: 22px;\n --_c-switch-width: 44px;\n --_c-switch-handle-size: calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));\n --_c-switch-handle-position-active: calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );\n\n $this: &;\n\n backface-visibility: hidden;\n transform: translate3d(0, 0, 0);\n display: inline-grid;\n height: var(--_c-switch-height);\n position: relative;\n grid-template-columns: 1fr;\n gap: 12px;\n align-items: center;\n\n &--disabled {\n --_c-switch-pointer: default;\n --_c-switch-handle-color: var(--_c-switch-handle-color-disabled);\n --_c-switch-slider-color: var(--_c-switch-slider-color-disabled);\n --_c-switch-border-color: var(--_c-switch-border-color-disabled);\n --c-error-600: var(--c-tertiary-400);\n\n color: var(--c-tertiary-500);\n }\n\n &--label {\n grid-template-columns: var(--_c-switch-width) auto;\n }\n\n &__label {\n span.required {\n color: var(--c-error-600);\n }\n }\n\n &__input {\n height: var(--_c-switch-height);\n position: relative;\n width: var(--_c-switch-width);\n align-self: start;\n }\n\n &__slider {\n background-color: var(--_c-switch-slider-color);\n border-radius: var(--_c-switch-height);\n box-shadow: inset 0 0 0 2px var(--_c-switch-border-color);\n inset: 0;\n cursor: var(--_c-switch-pointer);\n position: absolute;\n transform-origin: 50% 50%;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n\n &::before {\n background-color: var(--_c-switch-handle-color);\n border-radius: 50%;\n bottom: var(--_c-switch-handle-margin);\n content: \"\";\n height: var(--_c-switch-handle-size);\n left: var(--_c-switch-handle-margin);\n position: absolute;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: var(--_c-switch-handle-size);\n }\n }\n\n input {\n height: 0;\n opacity: 0;\n width: 0;\n\n &:checked {\n + {\n #{$this} {\n &__slider {\n --_c-switch-handle-color: var(--_c-switch-handle-color-active);\n --_c-switch-slider-color: var(--_c-switch-slider-color-active);\n --_c-switch-border-color: var(--_c-switch-border-color-active);\n\n &::before {\n transform: translateX(var(--_c-switch-handle-position-active));\n }\n\n &--disabled {\n --_c-switch-handle-color: var(--_c-switch-handle-color-active-disabled);\n --_c-switch-slider-color: var(--_c-switch-slider-color-active-disabled);\n --_c-switch-border-color: var(--_c-switch-border-color-active-disabled);\n }\n }\n }\n }\n }\n\n &:focus {\n + {\n #{$this} {\n &__slider {\n outline: none;\n }\n }\n }\n }\n\n &:focus-visible {\n + {\n #{$this} {\n &__slider {\n outline: 2px var(--c-primary-600) solid;\n outline-offset: 2px;\n }\n }\n }\n }\n }\n}\n","import {\n Component,\n h,\n Element,\n Prop,\n State,\n Event,\n EventEmitter,\n AttachInternals,\n Watch,\n} from '@stencil/core';\n\n/**\n * @group Form\n * @slot label - Label text for the switch\n */\n@Component({\n tag: 'c-switch',\n styleUrl: 'c-switch.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CSwitch {\n // eslint-disable-next-line @stencil-community/own-props-must-be-private\n @AttachInternals() internals: ElementInternals;\n\n /**\n * If `true`, the checkbox is selected.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * The input value\n * - Only used when the checkbox participates in a native `<form>`\n */\n @Prop() value: string | boolean = false;\n\n /**\n * The value when the checkbox is checked\n */\n @Prop() trueValue: boolean | string = true;\n\n /**\n * The value when the checkbox is unchecked\n */\n @Prop() falseValue: boolean | string = false;\n\n /**\n * Disable the switch\n */\n @Prop({ attribute: 'disabled' }) hostDisabled = false;\n\n /**\n * Id for the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Set as required\n */\n @Prop() required = false;\n\n @Element() host: HTMLCSwitchElement;\n\n @State() hasLabel = false;\n\n @Watch('value')\n onValueChange(value: string | boolean) {\n this.checked = this.trueValue === value;\n\n this.internals.setFormValue(\n this.checked ? this.trueValue.toString() : this.falseValue.toString(),\n );\n }\n\n /**\n * Emit inner value change to parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n componentWillLoad() {\n this.checked = this.checked || this.value === this.trueValue;\n\n this.internals.setFormValue(\n this.checked ? this.trueValue.toString() : this.falseValue.toString(),\n );\n }\n\n componentDidLoad() {\n const slotted = this.host.childNodes;\n\n this.hasLabel = slotted && slotted.length > 0;\n }\n\n private _toggleState = () => {\n if (this.hostDisabled) return;\n\n this.checked = !this.checked;\n\n this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);\n\n this.internals.setFormValue(\n this.checked ? this.trueValue.toString() : this.falseValue.toString(),\n );\n };\n\n render() {\n const classes = {\n 'c-switch': true,\n 'c-switch--disabled': !!this.hostDisabled,\n 'c-switch--label': this.hasLabel,\n };\n\n const sliderClasses = {\n 'c-switch__slider': true,\n 'c-switch__slider--disabled': !!this.hostDisabled,\n };\n\n return (\n <label class={classes} htmlFor={this.hostId}>\n <div class=\"c-switch__input\">\n <input\n id={this.hostId}\n aria-checked={this.checked.toString()}\n type=\"checkbox\"\n role=\"switch\"\n disabled={this.hostDisabled}\n checked={this.checked ? true : undefined}\n onChange={() => this._toggleState()}\n />\n <span class={sliderClasses}></span>\n </div>\n {this.hasLabel ? (\n <div class=\"c-switch__label\">\n <slot></slot>\n\n {this.required && <span class=\"required\">&nbsp;*</span>}\n </div>\n ) : null}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ch.scss?tag=c-switch&encapsulation=shadow","src/components/c-switch/c-switch.tsx"],"sourcesContent":[":host(c-switch) {\n /**\n * @prop --c-switch-border-color: Border color\n * @prop --c-switch-handle-color: Handle color\n * @prop --c-switch-slider-color: Background color\n */\n --_c-switch-border-color: var(--c-switch-border-color, var(--c-tertiary-600));\n --_c-switch-handle-color: var(--c-switch-handle-color, var(--c-tertiary-600));\n --_c-switch-slider-color: var(--c-switch-slider-color, var(--c-transparent));\n\n /**\n * @prop --c-switch-border-color-disabled: Disabled border color\n * @prop --c-switch-handle-color-disabled: Disabled handle color\n * @prop --c-switch-slider-color-disabled: Disabled background color\n */\n --_c-switch-border-color-disabled: var(--c-switch-border-color-disabled, var(--c-transparent));\n --_c-switch-handle-color-disabled: var(--c-switch-handle-color-disabled, var(--c-tertiary-500));\n --_c-switch-slider-color-disabled: var(--c-switch-slider-color-disabled, var(--c-tertiary-200));\n\n /**\n * @prop --c-switch-slider-color-active: Active background color\n * @prop --c-switch-border-color-active: Active border color\n * @prop --c-switch-handle-color-active: Active handle color\n */\n --_c-switch-border-color-active: var(--c-switch-border-color-active, var(--c-primary-600));\n --_c-switch-handle-color-active: var(--c-switch-handle-color-active, var(--c-white));\n --_c-switch-slider-color-active: var(--c-switch-slider-color-active, var(--c-primary-600));\n\n /**\n * @prop --c-switch-border-color-active-disabled: Disabled active border color\n * @prop --c-switch-handle-color-active-disabled: Disabled active handle color\n * @prop --c-switch-slider-color-active-disabled: Disabled active background color\n */\n --_c-switch-border-color-active-disabled: var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));\n --_c-switch-handle-color-active-disabled: var(--c-switch-handle-color-active-disabled, var(--c-white));\n --_c-switch-slider-color-active-disabled: var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));\n\n display: inline-block;\n}\n\n.c-switch {\n --_c-switch-handle-margin: 5px;\n --_c-switch-pointer: pointer;\n --_c-switch-height: 22px;\n --_c-switch-width: 44px;\n --_c-switch-handle-size: calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));\n --_c-switch-handle-position-active: calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );\n\n $this: &;\n\n backface-visibility: hidden;\n transform: translate3d(0, 0, 0);\n display: inline-grid;\n height: var(--_c-switch-height);\n position: relative;\n grid-template-columns: 1fr;\n gap: 12px;\n align-items: center;\n\n &--disabled {\n --_c-switch-pointer: default;\n --_c-switch-handle-color: var(--_c-switch-handle-color-disabled);\n --_c-switch-slider-color: var(--_c-switch-slider-color-disabled);\n --_c-switch-border-color: var(--_c-switch-border-color-disabled);\n --c-error-600: var(--c-tertiary-400);\n\n color: var(--c-tertiary-500);\n\n c-spinner {\n --c-color: var(--_c-switch-handle-color-disabled) !important;\n }\n }\n\n &--label {\n grid-template-columns: var(--_c-switch-width) auto;\n }\n\n &__label {\n span.required {\n color: var(--c-error-600);\n }\n }\n\n &__input {\n height: var(--_c-switch-height);\n position: relative;\n width: var(--_c-switch-width);\n align-self: start;\n }\n\n &__slider {\n background-color: var(--_c-switch-slider-color);\n border-radius: var(--_c-switch-height);\n box-shadow: inset 0 0 0 2px var(--_c-switch-border-color);\n inset: 0;\n cursor: var(--_c-switch-pointer);\n position: absolute;\n transform-origin: 50% 50%;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n\n &::before {\n background-color: var(--_c-switch-handle-color);\n border-radius: 50%;\n bottom: var(--_c-switch-handle-margin);\n content: \"\";\n height: var(--_c-switch-handle-size);\n left: var(--_c-switch-handle-margin);\n position: absolute;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: var(--_c-switch-handle-size);\n }\n\n c-spinner {\n --c-color: var(--_c-switch-handle-color) !important;\n pointer-events: none;\n z-index: 2;\n position: absolute;\n left: 4px;\n top: 0;\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n }\n\n &--loading {\n c-spinner {\n opacity: 1;\n }\n\n &::before {\n opacity: 0;\n }\n }\n }\n\n input {\n height: 0;\n opacity: 0;\n width: 0;\n\n &:checked {\n + {\n #{$this} {\n &__slider {\n --_c-switch-handle-color: var(--_c-switch-handle-color-active);\n --_c-switch-slider-color: var(--_c-switch-slider-color-active);\n --_c-switch-border-color: var(--_c-switch-border-color-active);\n\n &::before {\n transform: translateX(var(--_c-switch-handle-position-active));\n }\n\n c-spinner {\n --c-color: var(--_c-switch-handle-color-active) !important;\n\n transform: translateX(var(--_c-switch-handle-position-active));\n }\n\n &--disabled {\n --_c-switch-handle-color: var(--_c-switch-handle-color-active-disabled);\n --_c-switch-slider-color: var(--_c-switch-slider-color-active-disabled);\n --_c-switch-border-color: var(--_c-switch-border-color-active-disabled);\n\n c-spinner {\n --c-color: var(--_c-switch-handle-color-active-disabled) !important;\n\n }\n }\n }\n }\n }\n }\n\n &:focus {\n + {\n #{$this} {\n &__slider {\n outline: none;\n }\n }\n }\n }\n\n &:focus-visible {\n + {\n #{$this} {\n &__slider {\n outline: 2px var(--c-primary-600) solid;\n outline-offset: 2px;\n }\n }\n }\n }\n }\n}\n","import {\n Component,\n h,\n Element,\n Prop,\n State,\n Event,\n EventEmitter,\n AttachInternals,\n Watch,\n} from '@stencil/core';\n\n/**\n * @group Form\n * @slot label - Label text for the switch\n */\n@Component({\n tag: 'c-switch',\n styleUrl: 'c-switch.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CSwitch {\n // eslint-disable-next-line @stencil-community/own-props-must-be-private\n @AttachInternals() internals: ElementInternals;\n\n /**\n * If `true`, the checkbox is selected.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * The input value\n * - Only used when the checkbox participates in a native `<form>`\n */\n @Prop() value: string | boolean = false;\n\n /**\n * The value when the checkbox is checked\n */\n @Prop() trueValue: boolean | string = true;\n\n /**\n * The value when the checkbox is unchecked\n */\n @Prop() falseValue: boolean | string = false;\n\n /**\n * Disable the switch\n */\n @Prop({ attribute: 'disabled' }) hostDisabled = false;\n\n /**\n * Loading state\n */\n @Prop() loading = false;\n\n /**\n * Id for the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Set as required\n */\n @Prop() required = false;\n\n @Element() host: HTMLCSwitchElement;\n\n @State() hasLabel = false;\n\n @Watch('value')\n onValueChange(value: string | boolean) {\n this.checked = this.trueValue === value;\n\n this.internals.setFormValue(\n this.checked ? this.trueValue.toString() : this.falseValue.toString(),\n );\n }\n\n /**\n * Emit inner value change to parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n componentWillLoad() {\n this.checked = this.checked || this.value === this.trueValue;\n\n this.internals.setFormValue(\n this.checked ? this.trueValue.toString() : this.falseValue.toString(),\n );\n }\n\n componentDidLoad() {\n const slotted = this.host.childNodes;\n\n this.hasLabel = slotted && slotted.length > 0;\n }\n\n private _toggleState = () => {\n if (this.hostDisabled) return;\n\n this.checked = !this.checked;\n\n this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);\n\n this.internals.setFormValue(\n this.checked ? this.trueValue.toString() : this.falseValue.toString(),\n );\n };\n\n render() {\n const classes = {\n 'c-switch': true,\n 'c-switch--disabled': !!this.hostDisabled,\n 'c-switch--label': this.hasLabel,\n };\n\n const sliderClasses = {\n 'c-switch__slider': true,\n 'c-switch__slider--disabled': !!this.hostDisabled,\n 'c-switch__slider--loading': !!this.loading,\n };\n\n return (\n <label class={classes} htmlFor={this.hostId}>\n <div class=\"c-switch__input\">\n <input\n id={this.hostId}\n aria-checked={this.checked.toString()}\n type=\"checkbox\"\n role=\"switch\"\n disabled={this.hostDisabled}\n checked={this.checked ? true : undefined}\n onChange={() => this._toggleState()}\n />\n <span class={sliderClasses}>\n <c-spinner size={14} width={2} color=\"#fff\"></c-spinner>\n </span>\n </div>\n {this.hasLabel ? (\n <div class=\"c-switch__label\">\n <slot></slot>\n\n {this.required && <span class=\"required\">&nbsp;*</span>}\n </div>\n ) : null}\n </label>\n );\n }\n}\n"],"version":3}
@@ -118,7 +118,7 @@ const CTabButtons$1 = proxyCustomElement(class CTabButtons extends H {
118
118
  'c-tab-buttons': true,
119
119
  disabled: this.hostDisabled,
120
120
  };
121
- return (h(Host, { key: '7215c44c6491c43b6986999b70f6b35adb42f336', class: classes }, h("slot", { key: 'c8de7c01c1626fe4b03ee977cbc3fd592ff0411c' })));
121
+ return (h(Host, { key: 'e5e56c25bdb9dfecea2d5f17829f0e186106189f', class: classes }, h("slot", { key: '216132f1daf3725ffed9081d4c4afd42215557aa' })));
122
122
  }
123
123
  get el() { return this; }
124
124
  static get watchers() { return {
@@ -29,7 +29,7 @@ const CTabItem$1 = proxyCustomElement(class CTabItem extends H {
29
29
  const attributes = {
30
30
  role: 'tabpanel',
31
31
  };
32
- return (h(Host, Object.assign({ key: '988401489dcd8bafbbbec105dac2ac2abebdfc26' }, attributes), h("div", { key: '81400eabf679e460b871c0c31bc1ca82de617dfb', class: { active: this.active } }, h("slot", { key: 'a9c8737154bc95ea7bf2a5d91502f3398d6f1fc9' }))));
32
+ return (h(Host, Object.assign({ key: '9e1e4fcf305067b5138e12f8b2f9ef093932c212' }, attributes), h("div", { key: '23ae20e5f9f6fdf1082f63b092689f769afb5c1a', class: { active: this.active } }, h("slot", { key: '340bdc75c7b091c00618ac4aa86b5c8a7f29d95c' }))));
33
33
  }
34
34
  get el() { return this; }
35
35
  static get style() { return CTabItemStyle0; }
@@ -66,7 +66,7 @@ const CTabItems$1 = proxyCustomElement(class CTabItems extends H {
66
66
  this._resizeObserver.observe(this.el);
67
67
  }
68
68
  render() {
69
- return (h(Host, { key: '96a8f83bb075adc290b69b435a2c939520ed99f8' }, h("div", { key: 'cb413ffc45e80f31df8f18f32935046988e4a253' }, h("slot", { key: 'b2a839a2fe9b53cc0ab820e5eede21c3381cd7c4' }))));
69
+ return (h(Host, { key: '70a32ea86fcc10aae98a3bd31a655f693ba08423' }, h("div", { key: '24e2951b3c555f3af4dde55683f8228f62cda8c0' }, h("slot", { key: 'f42858f9fe2e750939b6f0fa89d65e12fcecc3a4' }))));
70
70
  }
71
71
  get el() { return this; }
72
72
  static get watchers() { return {
@@ -48,7 +48,7 @@ const CTab$1 = proxyCustomElement(class CTab extends H {
48
48
  role: 'tab',
49
49
  tabindex: this.active && !this.disabled ? 0 : -1,
50
50
  };
51
- return (h(Host, Object.assign({ key: '85c1ded7fe2e48cc583fb8441f287309347b8f02' }, a11y, { id: this.hostId, "data-value": this.value, class: classes, onClick: this._onClick }), h("div", { key: '399f0f86324aac549a0a39c82658374a7412a104', class: "c-tab__content" }, h("slot", { key: 'a13138e7b127f63e0d139e44a0dcb46cef832f58' })), h("c-ripple", { key: '26188f66e9212bdc7a9862407c480ef869ea69c3', ref: (el) => (this._rippleElement = el) })));
51
+ return (h(Host, Object.assign({ key: '176ceea8c9264501b12fa06463076a8195746a76' }, a11y, { id: this.hostId, "data-value": this.value, class: classes, onClick: this._onClick }), h("div", { key: '3926214f17539796015a5c9f4c429cae6f281fd7', class: "c-tab__content" }, h("slot", { key: 'e754e2636097242c6604c317a650eb7eee48863b' })), h("c-ripple", { key: 'ff817eebcd9e2e8293fb118f4876b0e7364c6913', ref: (el) => (this._rippleElement = el) })));
52
52
  }
53
53
  get element() { return this; }
54
54
  static get style() { return CTabStyle0; }
@@ -37,7 +37,7 @@ const CTable$1 = proxyCustomElement(class CTable extends H {
37
37
  });
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '3b3048b62113e3038dcbf2ce8904fe85ee24e726' }, h("slot", { key: '09a4a6b53782178544762115b431b21e3188cac4' })));
40
+ return (h(Host, { key: 'a319d4c08ee7ccd151171c4ca9c9eb53887a8a25' }, h("slot", { key: 'a1f6a981a6326daae9ac9e9bfea10c0c464280f0' })));
41
41
  }
42
42
  get el() { return this; }
43
43
  static get style() { return CTableStyle0; }
@@ -412,7 +412,7 @@ const CTabs$1 = proxyCustomElement(class CTabs extends H {
412
412
  'c-tabs--mobile': this.isMobile,
413
413
  [`c-tabs--justify-${this.justify}`]: true,
414
414
  };
415
- return (h(Host, { key: '55cccb996d3ed8694fd0d9c1694c2934ab3d572b', role: "tablist", class: classes }, h("div", { key: '40f41b7bbada33806c418bd06569b7c0393f4890', class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (h("c-icon-button", { key: 'eefc5cb2a7c4f0273616c30c54b22fd3846611d5', size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, h("c-icon", { key: '0686eb5f32b87e1f0b5902c482b92098e52d34e9', path: mdiArrowLeft }))), h("div", { key: '74a38a52c05d3c3ff1cf09569006cefadcac4008', ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, h("div", { key: '6194a25f96ef1d6c2f4c46c56e88fb0e9f61b425', ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, h("slot", { key: '526ac235df9fff4284c835bee0d9c4fc70146537' }))), this.isOverflowing && !this.vertical && (h("c-icon-button", { key: '535e1480ee9521d93b5e0e05f69218854d63657e', size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, h("c-icon", { key: '40139ee099cd32ff6efbe7139283fdc7ee4876d5', path: mdiArrowRight })))), h("div", { key: 'af47c0e4ab3ef2a417905a4a67f9c7430279de8c', class: "c-tabs__content" }, h("slot", { key: 'ff8ae9187ce75652099932d9383c2c239eab8698', name: "items" }))));
415
+ return (h(Host, { key: '3c84ae02f5e3577e0c4bd3b3cf21af2d80cb0e30', role: "tablist", class: classes }, h("div", { key: '189b6fe7b86974102a8b8074af1744cb37328e61', class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (h("c-icon-button", { key: '8bffd373f17fb2ff1dad19e533ec1adf0ab6845b', size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, h("c-icon", { key: '755e5fbc4650e833d663d5674f17c4003fe8a9bc', path: mdiArrowLeft }))), h("div", { key: '6c7e64b7644493c3f11352c23449d525768799b0', ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, h("div", { key: '49d5e9918bd28770bd1b19a541de3e0068416f2d', ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, h("slot", { key: 'e7f4ffb673cde95161c3a97ac6ca7cf669c6c2c9' }))), this.isOverflowing && !this.vertical && (h("c-icon-button", { key: '83f3b249abd4adf43af6f3871a741644c8d6e7d6', size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, h("c-icon", { key: '767e626422d6175a7085918a47e912ad03c95c52', path: mdiArrowRight })))), h("div", { key: '323ddacdb1c63a154d1f9f846df200812b1ca372', class: "c-tabs__content" }, h("slot", { key: '8802b6abdc4cf6e4e78d789bf8537199df8ad2e2', name: "items" }))));
416
416
  }
417
417
  get el() { return this; }
418
418
  static get watchers() { return {
@@ -41,7 +41,7 @@ const CTag$1 = proxyCustomElement(class CTag extends H {
41
41
  const hostParams = Object.assign(Object.assign({ tabindex: this.flat ? -1 : 0 }, (!this.flat && {
42
42
  role: 'button',
43
43
  })), (hasBadge ? { 'data-badge': this.badge } : {}));
44
- return (h(Host, Object.assign({ key: '3fe78febd05f440e689bb71678de5ccdbb48e4b1' }, hostParams, { class: hostClasses }), h("slot", { key: '6e9ed76764bc05054c66e39edb51cd3cd44f28ef' }), this.closeable && (h("c-icon-button", { key: 'f107cdfcbb63d2242ccca07328c574376bddeab9', onClick: () => this._onClose() }, h("c-icon", { key: '37e72a400a60b41a8d535322ecd622d8efcad511', size: 16, path: mdiClose })))));
44
+ return (h(Host, Object.assign({ key: '14fa42ef32b4db730123791e9971cc8296a2e02f' }, hostParams, { class: hostClasses }), h("slot", { key: '562134aaefbc4e07cc577192856bb48ad6007e08' }), this.closeable && (h("c-icon-button", { key: 'fbae1e4a51b4099c1363a4516b10be75710b9923', onClick: () => this._onClose() }, h("c-icon", { key: '211f7cdb71c5389cdfc71d1c7fde6c10a127b059', size: 16, path: mdiClose })))));
45
45
  }
46
46
  static get style() { return CTagStyle0; }
47
47
  }, [1, "c-tag", {
@@ -19,7 +19,7 @@ const CTags$1 = proxyCustomElement(class CTags extends H {
19
19
  }
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: 'ee4335a8b771feda4deb0c5e8a41b284660c5d0b' }, h("slot", { key: '7150cc7dd52c2b6f5b9490addd5f7031bd896046' })));
22
+ return (h(Host, { key: '3eba3d885b1710bb7eba095897d1f0989e7a76c4' }, h("slot", { key: 'fb899a65640f226c93e6add3d90326bc08250a89' })));
23
23
  }
24
24
  get el() { return this; }
25
25
  static get style() { return CTagsStyle0; }
@@ -132,7 +132,7 @@ const CTextField$1 = proxyCustomElement(class CTextField extends H {
132
132
  return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
133
133
  }
134
134
  render() {
135
- return (h(Host, { key: '30e52b03222db98c2e7ea02e9055340a6cb5478a' }, h("c-input", { key: '7e0016c74fa52d4157ad4d19bd382f3b946bbaaf', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: '42617ce4d85480bad4a4860cc89e9585f245854f', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: 'e1621de972ff312ff35967e3fb8ac08bffedf8bd', name: "post" }))));
135
+ return (h(Host, { key: '5084d0758ada918adc8542fae6fe5d66c488079f' }, h("c-input", { key: 'dc8783c4d7b9416b3c9b3418f1c61fd4587e3fa8', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: '163918cc9e74b1eb7d84f157f1bb9bcce10c2fa5', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: '1316105617aa3fbe5f7e3ff3c8477a2532206e3d', name: "post" }))));
136
136
  }
137
137
  static get formAssociated() { return true; }
138
138
  get hiddenEl() { return this; }
@@ -1,4 +1,4 @@
1
- import { C as CToast$1, d as defineCustomElement$1 } from './p-f4b8b4e1.js';
1
+ import { C as CToast$1, d as defineCustomElement$1 } from './p-1764b16f.js';
2
2
 
3
3
  const CToast = CToast$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-2fbcb4e1.js';
2
2
  import { d as defineCustomElement$3 } from './p-8068bc3d.js';
3
- import { d as defineCustomElement$2 } from './p-f4b8b4e1.js';
3
+ import { d as defineCustomElement$2 } from './p-1764b16f.js';
4
4
 
5
5
  var CToastType;
6
6
  (function (CToastType) {
@@ -84,7 +84,7 @@ const CToasts$1 = proxyCustomElement(class CToasts extends H {
84
84
  CToasts._uniqueId += 1;
85
85
  }
86
86
  render() {
87
- return (h(Host, { key: '56243bc3119ff10df876984c119cfec1604559cb', class: {
87
+ return (h(Host, { key: '770472b47d7c45f120e5e6ab51e9332b6fb273ea', class: {
88
88
  absolute: this.absolute,
89
89
  [this.vertical]: true,
90
90
  [this.horizontal]: true,
@@ -10,7 +10,7 @@ const CToolbar$1 = proxyCustomElement(class CToolbar extends H {
10
10
  this.__attachShadow();
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: 'ba6e2d1bd6d3548116e7898c677add50d906f54f' }, h("div", { key: '2e39e920d67ffacbe183993a901198fc9399a644', class: "c-toolbar" }, h("slot", { key: 'fc839dee5eca175c3cc57fccf31796652e9bd82b' })), h("div", { key: '953fb86d66ea9bb0e1090dd6770a63a6706ae69d', class: "spacer" })));
13
+ return (h(Host, { key: '44e20bd1f1c33a3163e9d1d29a988294f5cee188' }, h("div", { key: '0b2ea5a890800110305b9bd695402361cf279dab', class: "c-toolbar" }, h("slot", { key: '5a91bc045a076a7a6967fa4158d57e0afc5e900f' })), h("div", { key: '37a4efc24fcaaeec1d7cdec333b36fb6c3aef361', class: "spacer" })));
14
14
  }
15
15
  static get style() { return CToolbarStyle0; }
16
16
  }, [1, "c-toolbar"]);
@@ -59,7 +59,7 @@ const CToast = proxyCustomElement(class CToast extends H {
59
59
  }
60
60
  render() {
61
61
  const showProgressBar = !this.message.persistent && this.message.progress;
62
- return (h(Host, { key: '1a5b697e7cc4465a6aedf937760652dae16fd70c', id: `c-toast--${this.message.id}`, class: { [this.message.type]: true }, role: "alert", "aria-atomic": "true", "aria-live": "assertive", onMouseEnter: () => this._onMouseEnter(), onMouseLeave: () => this._onMouseLeave() }, h("span", { key: '69e60bd9e19ddf3712e9767a44068256cb11817f', class: "visuallyhidden" }, this.message.type, " notification"), this.message.custom ? (h("div", { class: "c-toast__custom-item" }, h("div", { class: "c-toast__content" }, h("slot", null)))) : (h("div", { class: "c-toast__item" }, h("svg", { viewBox: "0 0 24 24" }, h("path", { d: this._icons[this.message.type] })), h("div", { class: "c-toast__content" }, !!this.message.title && h("p", null, this.message.title), this.message.message), !this.message.indeterminate && this._renderCloseButton())), showProgressBar && (h("div", { key: '68c1aaa6b273516400eeafffd05f64615fea112d', class: "c-toast__progress", style: { '--_c-toast-duration': `${this.message.duration}ms` } }, h("div", { key: '80f5220d5520ececce72694da82f2eb6c66d1efb', class: {
62
+ return (h(Host, { key: 'f69f86b98177e36faf879cda886409468a5f9279', id: `c-toast--${this.message.id}`, class: { [this.message.type]: true }, role: "alert", "aria-atomic": "true", "aria-live": "assertive", onMouseEnter: () => this._onMouseEnter(), onMouseLeave: () => this._onMouseLeave() }, h("span", { key: '64bba4e35ad1488cbae25219bac3e7b16c58418b', class: "visuallyhidden" }, this.message.type, " notification"), this.message.custom ? (h("div", { class: "c-toast__custom-item" }, h("div", { class: "c-toast__content" }, h("slot", null)))) : (h("div", { class: "c-toast__item" }, h("svg", { viewBox: "0 0 24 24" }, h("path", { d: this._icons[this.message.type] })), h("div", { class: "c-toast__content" }, !!this.message.title && h("p", null, this.message.title), this.message.message), !this.message.indeterminate && this._renderCloseButton())), showProgressBar && (h("div", { key: '62c6e7c67619524de97dfa99e5ef3576c8d1972c', class: "c-toast__progress", style: { '--_c-toast-duration': `${this.message.duration}ms` } }, h("div", { key: '3a2b3873f026df2202b97d761eb9c9f78d77de15', class: {
63
63
  'c-toast__progress__bar': true,
64
64
  indeterminate: this.message.indeterminate,
65
65
  } })))));
@@ -91,4 +91,4 @@ function defineCustomElement() {
91
91
 
92
92
  export { CToast as C, defineCustomElement as d };
93
93
 
94
- //# sourceMappingURL=p-f4b8b4e1.js.map
94
+ //# sourceMappingURL=p-1764b16f.js.map
@@ -1 +1 @@
1
- {"file":"p-f4b8b4e1.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,8+EAA8+E,CAAC;AACjgF,qBAAe,SAAS;;MC4BX,MAAM;;;;;;QAaT,YAAO,GAAG,KAAK,CAAC;QAMhB,WAAM,GAAG;YACf,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,cAAc;YACvB,IAAI,EAAE,cAAc;SACrB,CAAC;;;IAUF,MAAM,UAAU;QACd,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO;QAEzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,CAAC,eAAe,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/D;IAED,g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AC,KAAK,IAAI,aAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAK,EAEnD,IAAI,CAAC,OAAO,CAAC,OAAO,CACjB,EAEL,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,IAAI,CAAC,kBAAkB,EAAE,CACrD,CACP,EAEA,eAAe,KACd,4DACE,KAAK,EAAC,mBAAmB,EACzB,KAAK,EAAE,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,IAE9D,4DACE,KAAK,EAAE;gBACL,wBAAwB,EAAE,IAAI;gBAC9B,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;aAC1C,GACI,CACH,CACP,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-toast/c-toast.scss?tag=c-toast&encapsulation=shadow","src/components/c-toast/c-toast.tsx"],"sourcesContent":[":host(c-toast) {\n /**\n * @prop --c-toast-background-color: Toast background color\n * @prop --c-toast-text-color: Toast text color\n */\n --_c-toast-background-color: var(--c-toast-background-color, var(--c-white));\n --_c-toast-text-color: var(--c-toast-text-color, var(--c-text-system));\n\n // private\n --_c-toast-animation-state: running;\n\n align-items: center;\n background-color: var(--_c-toast-background-color);\n border-radius: 6px;\n border: 2px solid var(--_c-toast-color);\n border-left-width: 12px;\n box-shadow:\n rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px,\n rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px,\n rgba(0, 0, 0, 0.07) 0 16px 16px;\n box-sizing: border-box;\n color: var(--_c-toast-text-color);\n display: grid;\n min-height: 52px;\n opacity: 0;\n padding: 8px 12px;\n pointer-events: all;\n text-align: left;\n transform: translateY(20px);\n transition: opacity 0.5s ease, transform 0.5s ease;\n width: 100%;\n will-change: opacity, transform;\n z-index: 10001;\n position: relative;\n}\n\n:host(.show) {\n opacity: 1;\n transform: translateY(0);\n}\n\n:host(.info) {\n --_c-toast-color: var(--c-info-600);\n}\n\n:host(.error) {\n --_c-toast-color: var(--c-error-600);\n}\n\n:host(.warning) {\n --_c-toast-color: var(--c-warning-600);\n}\n\n:host(.success) {\n --_c-toast-color: var(--c-success-600);\n}\n\n.c-toast__content p {\n margin: 0;\n font-weight: 600;\n}\n\n.c-toast__item {\n align-items: center;\n display: grid;\n gap: 12px;\n grid-auto-columns: auto;\n grid-auto-flow: column;\n grid-template-columns: 24px 1fr;\n font-weight: 300;\n}\n\n.c-toast__item > svg {\n fill: var(--_c-toast-color);\n}\n\n.c-toast__item svg {\n height: 24px;\n width: 24px;\n}\n\n.c-toast__progress {\n background-color: var(--c-tertiary-200);\n border-radius: 8px;\n height: 6px;\n margin-top: 8px;\n overflow: hidden;\n transform: translateZ(0);\n}\n\n:host(:hover) {\n --_c-toast-animation-state: paused;\n}\n\n.c-toast__progress__bar {\n animation-duration: var(--_c-toast-duration);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: timer;\n animation-play-state: var(--_c-toast-animation-state);\n animation-timing-function: linear;\n background-color: var(--_c-toast-color);\n border-radius: 8px;\n height: 6px;\n width: 100%;\n}\n\n.c-toast__progress__bar.indeterminate {\n animation: indeterminate 2s infinite linear;\n left: -100%;\n width: 50%;\n position: relative;\n transform-origin: 0% 50%;\n}\n\n.visuallyhidden {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n@keyframes timer {\n 100% {\n transform: translateX(-100%);\n }\n}\n\n@keyframes indeterminate {\n 0% {\n transform: translateX(100%) scaleX(1);\n }\n\n 30% {\n transform: translateX(170%) scaleX(1.75);\n }\n\n 70% {\n transform: translateX(500%) scaleX(0.1);\n }\n\n 100% {\n transform: translateX(500%) scaleX(0.1);\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n EventEmitter,\n Event,\n Element,\n Method,\n} from '@stencil/core';\n\nimport {\n mdiClose,\n mdiAlert,\n mdiCloseCircle,\n mdiCheckCircle,\n mdiInformation,\n} from '@mdi/js';\n\nimport { CToastMessage } from '../../types';\n\n/**\n * @parent none\n */\n@Component({\n tag: 'c-toast',\n styleUrl: 'c-toast.scss',\n shadow: true,\n})\nexport class CToast {\n @Element() el: HTMLCToastElement;\n\n /**\n * Messages\n */\n @Prop() message: CToastMessage;\n\n /**\n * Emit inner value change to parent\n */\n @Event() close: EventEmitter<CToastMessage>;\n\n private _closed = false;\n\n private _startTime: number;\n\n private _remainingTime: number;\n\n private _icons = {\n close: mdiClose,\n warning: mdiAlert,\n error: mdiCloseCircle,\n success: mdiCheckCircle,\n info: mdiInformation,\n };\n\n private _timeout;\n\n /**\n * Close toast\n *\n * @emits close\n */\n @Method()\n async closeToast() {\n if (this._closed) return;\n\n this._closed = true;\n\n this.el.classList.remove('show');\n this.el.ontransitionend = () => this.close.emit(this.message);\n }\n\n componentDidLoad() {\n window.requestAnimationFrame(() => {\n this.el.classList.add('show');\n });\n\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._startTime = Date.now();\n this._remainingTime = this.message.duration;\n\n this._timeout = window.setTimeout(\n () => this.closeToast(),\n +this.message.duration,\n );\n }\n\n disconnectedCallback() {\n window.clearTimeout(this._timeout);\n }\n\n private _onMouseEnter() {\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._remainingTime = this._remainingTime - (Date.now() - this._startTime);\n\n window.clearTimeout(this._timeout);\n }\n\n private _onMouseLeave() {\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._startTime = Date.now();\n this._timeout = window.setTimeout(\n () => this.closeToast(),\n this._remainingTime,\n );\n }\n\n private _renderCloseButton() {\n const Tag = !!this.message.closeText ? 'c-button' : 'c-icon-button';\n\n return (\n <Tag\n aria-label=\"close\"\n size=\"small\"\n text\n onClick={() => this.closeToast()}\n >\n <c-icon\n {...{ ...(!!this.message.closeText && { slot: 'icon' }) }}\n color=\"var(--_c-toast-color)\"\n path={this._icons.close}\n />\n\n {this.message.closeText}\n </Tag>\n );\n }\n\n render() {\n const showProgressBar = !this.message.persistent && this.message.progress;\n\n return (\n <Host\n id={`c-toast--${this.message.id}`}\n class={{ [this.message.type]: true }}\n role=\"alert\"\n aria-atomic=\"true\"\n aria-live=\"assertive\"\n onMouseEnter={() => this._onMouseEnter()}\n onMouseLeave={() => this._onMouseLeave()}\n >\n <span class=\"visuallyhidden\">{this.message.type} notification</span>\n\n {this.message.custom ? (\n <div class=\"c-toast__custom-item\">\n <div class=\"c-toast__content\">\n <slot></slot>\n </div>\n </div>\n ) : (\n <div class=\"c-toast__item\">\n <svg viewBox=\"0 0 24 24\">\n <path d={this._icons[this.message.type]}></path>\n </svg>\n\n <div class=\"c-toast__content\">\n {!!this.message.title && <p>{this.message.title}</p>}\n\n {this.message.message}\n </div>\n\n {!this.message.indeterminate && this._renderCloseButton()}\n </div>\n )}\n\n {showProgressBar && (\n <div\n class=\"c-toast__progress\"\n style={{ '--_c-toast-duration': `${this.message.duration}ms` }}\n >\n <div\n class={{\n 'c-toast__progress__bar': true,\n indeterminate: this.message.indeterminate,\n }}\n ></div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-1764b16f.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,8+EAA8+E,CAAC;AACjgF,qBAAe,SAAS;;MC4BX,MAAM;;;;;;QAaT,YAAO,GAAG,KAAK,CAAC;QAMhB,WAAM,GAAG;YACf,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,cAAc;YACvB,IAAI,EAAE,cAAc;SACrB,CAAC;;;IAUF,MAAM,UAAU;QACd,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO;QAEzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC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,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAS,CAC5C,EAEN,WAAK,KAAK,EAAC,kBAAkB,IAC1B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,aAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAK,EAEnD,IAAI,CAAC,OAAO,CAAC,OAAO,CACjB,EAEL,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,IAAI,CAAC,kBAAkB,EAAE,CACrD,CACP,EAEA,eAAe,KACd,4DACE,KAAK,EAAC,mBAAmB,EACzB,KAAK,EAAE,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,IAE9D,4DACE,KAAK,EAAE;gBACL,wBAAwB,EAAE,IAAI;gBAC9B,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;aAC1C,GACI,CACH,CACP,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-toast/c-toast.scss?tag=c-toast&encapsulation=shadow","src/components/c-toast/c-toast.tsx"],"sourcesContent":[":host(c-toast) {\n /**\n * @prop --c-toast-background-color: Toast background color\n * @prop --c-toast-text-color: Toast text color\n */\n --_c-toast-background-color: var(--c-toast-background-color, var(--c-white));\n --_c-toast-text-color: var(--c-toast-text-color, var(--c-text-system));\n\n // private\n --_c-toast-animation-state: running;\n\n align-items: center;\n background-color: var(--_c-toast-background-color);\n border-radius: 6px;\n border: 2px solid var(--_c-toast-color);\n border-left-width: 12px;\n box-shadow:\n rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px,\n rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px,\n rgba(0, 0, 0, 0.07) 0 16px 16px;\n box-sizing: border-box;\n color: var(--_c-toast-text-color);\n display: grid;\n min-height: 52px;\n opacity: 0;\n padding: 8px 12px;\n pointer-events: all;\n text-align: left;\n transform: translateY(20px);\n transition: opacity 0.5s ease, transform 0.5s ease;\n width: 100%;\n will-change: opacity, transform;\n z-index: 10001;\n position: relative;\n}\n\n:host(.show) {\n opacity: 1;\n transform: translateY(0);\n}\n\n:host(.info) {\n --_c-toast-color: var(--c-info-600);\n}\n\n:host(.error) {\n --_c-toast-color: var(--c-error-600);\n}\n\n:host(.warning) {\n --_c-toast-color: var(--c-warning-600);\n}\n\n:host(.success) {\n --_c-toast-color: var(--c-success-600);\n}\n\n.c-toast__content p {\n margin: 0;\n font-weight: 600;\n}\n\n.c-toast__item {\n align-items: center;\n display: grid;\n gap: 12px;\n grid-auto-columns: auto;\n grid-auto-flow: column;\n grid-template-columns: 24px 1fr;\n font-weight: 300;\n}\n\n.c-toast__item > svg {\n fill: var(--_c-toast-color);\n}\n\n.c-toast__item svg {\n height: 24px;\n width: 24px;\n}\n\n.c-toast__progress {\n background-color: var(--c-tertiary-200);\n border-radius: 8px;\n height: 6px;\n margin-top: 8px;\n overflow: hidden;\n transform: translateZ(0);\n}\n\n:host(:hover) {\n --_c-toast-animation-state: paused;\n}\n\n.c-toast__progress__bar {\n animation-duration: var(--_c-toast-duration);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: timer;\n animation-play-state: var(--_c-toast-animation-state);\n animation-timing-function: linear;\n background-color: var(--_c-toast-color);\n border-radius: 8px;\n height: 6px;\n width: 100%;\n}\n\n.c-toast__progress__bar.indeterminate {\n animation: indeterminate 2s infinite linear;\n left: -100%;\n width: 50%;\n position: relative;\n transform-origin: 0% 50%;\n}\n\n.visuallyhidden {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n@keyframes timer {\n 100% {\n transform: translateX(-100%);\n }\n}\n\n@keyframes indeterminate {\n 0% {\n transform: translateX(100%) scaleX(1);\n }\n\n 30% {\n transform: translateX(170%) scaleX(1.75);\n }\n\n 70% {\n transform: translateX(500%) scaleX(0.1);\n }\n\n 100% {\n transform: translateX(500%) scaleX(0.1);\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n EventEmitter,\n Event,\n Element,\n Method,\n} from '@stencil/core';\n\nimport {\n mdiClose,\n mdiAlert,\n mdiCloseCircle,\n mdiCheckCircle,\n mdiInformation,\n} from '@mdi/js';\n\nimport { CToastMessage } from '../../types';\n\n/**\n * @parent none\n */\n@Component({\n tag: 'c-toast',\n styleUrl: 'c-toast.scss',\n shadow: true,\n})\nexport class CToast {\n @Element() el: HTMLCToastElement;\n\n /**\n * Messages\n */\n @Prop() message: CToastMessage;\n\n /**\n * Emit inner value change to parent\n */\n @Event() close: EventEmitter<CToastMessage>;\n\n private _closed = false;\n\n private _startTime: number;\n\n private _remainingTime: number;\n\n private _icons = {\n close: mdiClose,\n warning: mdiAlert,\n error: mdiCloseCircle,\n success: mdiCheckCircle,\n info: mdiInformation,\n };\n\n private _timeout;\n\n /**\n * Close toast\n *\n * @emits close\n */\n @Method()\n async closeToast() {\n if (this._closed) return;\n\n this._closed = true;\n\n this.el.classList.remove('show');\n this.el.ontransitionend = () => this.close.emit(this.message);\n }\n\n componentDidLoad() {\n window.requestAnimationFrame(() => {\n this.el.classList.add('show');\n });\n\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._startTime = Date.now();\n this._remainingTime = this.message.duration;\n\n this._timeout = window.setTimeout(\n () => this.closeToast(),\n +this.message.duration,\n );\n }\n\n disconnectedCallback() {\n window.clearTimeout(this._timeout);\n }\n\n private _onMouseEnter() {\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._remainingTime = this._remainingTime - (Date.now() - this._startTime);\n\n window.clearTimeout(this._timeout);\n }\n\n private _onMouseLeave() {\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._startTime = Date.now();\n this._timeout = window.setTimeout(\n () => this.closeToast(),\n this._remainingTime,\n );\n }\n\n private _renderCloseButton() {\n const Tag = !!this.message.closeText ? 'c-button' : 'c-icon-button';\n\n return (\n <Tag\n aria-label=\"close\"\n size=\"small\"\n text\n onClick={() => this.closeToast()}\n >\n <c-icon\n {...{ ...(!!this.message.closeText && { slot: 'icon' }) }}\n color=\"var(--_c-toast-color)\"\n path={this._icons.close}\n />\n\n {this.message.closeText}\n </Tag>\n );\n }\n\n render() {\n const showProgressBar = !this.message.persistent && this.message.progress;\n\n return (\n <Host\n id={`c-toast--${this.message.id}`}\n class={{ [this.message.type]: true }}\n role=\"alert\"\n aria-atomic=\"true\"\n aria-live=\"assertive\"\n onMouseEnter={() => this._onMouseEnter()}\n onMouseLeave={() => this._onMouseLeave()}\n >\n <span class=\"visuallyhidden\">{this.message.type} notification</span>\n\n {this.message.custom ? (\n <div class=\"c-toast__custom-item\">\n <div class=\"c-toast__content\">\n <slot></slot>\n </div>\n </div>\n ) : (\n <div class=\"c-toast__item\">\n <svg viewBox=\"0 0 24 24\">\n <path d={this._icons[this.message.type]}></path>\n </svg>\n\n <div class=\"c-toast__content\">\n {!!this.message.title && <p>{this.message.title}</p>}\n\n {this.message.message}\n </div>\n\n {!this.message.indeterminate && this._renderCloseButton()}\n </div>\n )}\n\n {showProgressBar && (\n <div\n class=\"c-toast__progress\"\n style={{ '--_c-toast-duration': `${this.message.duration}ms` }}\n >\n <div\n class={{\n 'c-toast__progress__bar': true,\n indeterminate: this.message.indeterminate,\n }}\n ></div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- import{p as e,b as a}from"./p-a3e3248c.js";export{s as setNonce}from"./p-a3e3248c.js";import{g as t}from"./p-e1255160.js";var i=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};i().then((async e=>{await t();return a(JSON.parse('[["p-3cade358",[[1,"c-data-table",{"data":[16],"externalData":[4,"external-data"],"headers":[16],"hideFooter":[4,"hide-footer"],"footerOptions":[16],"loading":[4],"loadingText":[1,"loading-text"],"noDataText":[1,"no-data-text"],"pagination":[1040],"selectable":[4],"singleSelection":[4,"single-selection"],"selectionProperty":[1,"selection-property"],"singleExpansion":[4,"single-expansion"],"sortBy":[1032,"sort-by"],"sortDirection":[1025,"sort-direction"],"stickyHeader":[4,"sticky-header"],"horizontalScrolling":[4,"horizontal-scrolling"],"_activeRows":[32],"_data":[32],"_isIndeterminate":[32],"_isPaginationSimple":[32],"_selections":[32],"hasOverflow":[32],"hiddenHeaders":[32],"initiallyHiddenHeaders":[32],"forceRender":[32],"breakpoints":[32],"markedFooterWidth":[32],"parentWidth":[32],"firstCellHidden":[32],"lastCellHidden":[32],"clearSelections":[64],"getData":[64]},null,{"hiddenHeaders":["onHiddenHeaderChange"],"data":["onDataChange"],"headers":["onHeaderChange"],"singleSelection":["onSingleSelectionChange"],"loading":["onLoadingChange"]}]]],["p-a84641e0",[[1,"c-tabs",{"value":[1032],"borderless":[4],"disableAnimation":[4,"disable-animation"],"justify":[1],"mobileBreakpoint":[2,"mobile-breakpoint"],"vertical":[4],"isOverflowing":[32],"isMobile":[32],"scrollOffset":[32]},[[1,"tabFocus","tabFocusHandler"],[1,"tabChange","tabChangeHandler"],[2,"keydown","handleKeyDown"],[2,"keyup","handleKeyUp"]],{"justify":["onJustificationChange"],"value":["onExternalValueChange"],"scrollOffset":["onScrollOffsetChange"]}]]],["p-6ec4e25e",[[1,"c-tag",{"active":[4],"block":[4],"fit":[4],"flat":[4],"closeable":[4],"badge":[8],"size":[1]}]]],["p-c80fa43f",[[4,"c-swiper",{"value":[1544],"elementId":[1,"id"],"isBeginning":[32],"isEnd":[32],"statusText":[32]},[[0,"changeValue","onTabClick"],[2,"keyup","handleKeyUp"]]]]],["p-06e13288",[[1,"c-toasts",{"absolute":[4],"horizontal":[1],"vertical":[1],"messages":[32],"addToast":[64],"removeToast":[64]}]]],["p-307f3fbc",[[1,"c-accordion-item",{"collapsable":[4],"heading":[1],"value":[8],"expanded":[4],"outlined":[4],"hasCustomHeader":[32],"hasIcon":[32]},[[2,"keydown","handleKeyDown"],[0,"changeValue","stop"]]]]],["p-b543f80e",[[1,"c-list-item",{"active":[4],"disabled":[4],"disabledByParent":[4,"disabled-by-parent"],"hoverable":[4],"ripple":[4],"href":[1],"target":[1]},null,{"active":["onActiveChange"]}]]],["p-8315aa49",[[1,"c-login-card-actions",{"align":[1],"justify":[1]}]]],["p-b09292de",[[1,"c-swiper-tab",{"disabled":[4],"active":[4],"label":[1],"hostId":[1,"id"],"setsize":[2],"position":[2],"value":[8]},[[1,"click","onTabClick"]]]]],["p-1eae6514",[[1,"c-tab",{"active":[4],"disabled":[4],"hostId":[1,"id"],"position":[2],"setsize":[2],"value":[8]},[[1,"focus","onTabFocus"],[1,"keydown","handleKeydown"]]]]],["p-c222df06",[[1,"c-accordion",{"value":[1032],"mandatory":[4],"multiple":[4],"outlined":[4]},[[1,"itemChange","onAccordionItemChange"]],{"value":["watchPropHandler"]}]]],["p-020643f8",[[1,"c-alert",{"type":[1]}]]],["p-ac5da8d1",[[1,"c-link",{"href":[1],"underline":[4],"target":[1],"weight":[1]}]]],["p-87b41fa4",[[0,"c-list",{"disabled":[4]},null,{"disabled":["onDisabledChange"]}]]],["p-68b100e9",[[1,"c-list-item-title",{"active":[4]}]]],["p-752f983d",[[1,"c-login-button",{"href":[1],"src":[1],"alt":[1]}]]],["p-e0e78a0d",[[1,"c-login-buttons"]]],["p-d67b56d8",[[4,"c-login-card",{"backgroundPosition":[1,"background-position"],"mobileBreakpoint":[2,"mobile-breakpoint"],"overlay":[4],"overlayBlendMode":[1,"overlay-blend-mode"],"src":[1],"path":[32],"imageHeight":[32]}]]],["p-900e4f04",[[1,"c-login-card-content"]]],["p-bcb87140",[[1,"c-login-card-title"]]],["p-47f76af6",[[1,"c-modal",{"value":[4],"dismissable":[4],"width":[8],"zIndex":[2,"z-index"],"disableBackdropBlur":[4,"disable-backdrop-blur"],"innerValue":[32],"animateModal":[32]},null,{"value":["onValueChange"]}]]],["p-7e0e5d26",[[1,"c-option-value"]]],["p-75ef652d",[[1,"c-progress-bar",{"value":[2],"hideDetails":[4,"hide-details"],"singleLine":[4,"single-line"],"label":[1],"indeterminate":[4]}]]],["p-9ce6cc51",[[1,"c-row",{"gap":[2],"nowrap":[4],"align":[1],"justify":[1]}]]],["p-1727bdd2",[[1,"c-slider",{"hostId":[1,"id"],"hostName":[1,"name"],"ariaLabelInternal":[1,"aria-label"],"max":[1],"min":[1],"step":[1],"value":[8],"unit":[1],"ticks":[4],"labels":[4],"disableTooltip":[4,"disable-tooltip"],"label":[1],"disabled":[4],"segments":[1],"trackPosition":[32],"tickPositions":[32]},null,{"segments":["onSegmentChange"],"value":["onValueChange"]}]]],["p-bb62b147",[[1,"c-status",{"type":[1]}]]],["p-e2a40b86",[[1,"c-step",{"complete":[4],"current":[4]}]]],["p-b1ab606b",[[1,"c-steps",{"value":[8],"isMobile":[32],"label":[32]},null,{"value":["watchPropHandler"]}]]],["p-f164b124",[[1,"c-tab-buttons",{"value":[1032],"mandatory":[4],"tabs":[4],"size":[1],"hostDisabled":[4,"disabled"]},[[1,"tabFocus","tabFocusHandler"],[2,"keyup","handleKeyUp"],[1,"tabChange","onTabChange"]],{"value":["onValueChange"]}]]],["p-eafe038d",[[1,"c-tab-item",{"value":[8],"active":[4]}]]],["p-26526434",[[1,"c-tab-items",{"value":[8],"disableAnimation":[4,"disable-animation"],"activeTab":[32]},[[1,"contentChange","tabContentChangeHandler"]],{"value":["onValueChange"]}]]],["p-acce6632",[[1,"c-tags",{"size":[1]}]]],["p-ff9cb75f",[[65,"c-autocomplete",{"items":[16],"value":[8],"query":[1],"hostId":[1,"id"],"disabled":[4],"label":[1],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"minimumQueryLength":[2,"minimum-query-length"],"minimumQueryLengthMessage":[1,"minimum-query-length-message"],"noMatchingItemsMessage":[1,"no-matching-items-message"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"query":["handleQueryChange"]}],[65,"c-select",{"items":[16],"value":[8],"hostId":[1,"id"],"clearable":[4],"disabled":[4],"label":[1],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"optionAsSelection":[4,"option-as-selection"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[1,"keydown","handleKeyDown"],[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"value":["onValueChanged"]}],[1,"c-card",{"fullscreen":[4],"isFullscreen":[32],"exitFullscreen":[64],"enterFullscreen":[64]}],[1,"c-navigation-button"],[1,"c-side-navigation",{"styles":[16],"mobile":[4],"menuVisible":[1028,"menu-visible"]},[[0,"itemChange","handleChange"]]],[1,"c-side-navigation-item",{"active":[4],"href":[1],"target":[1],"loading":[4]},[[0,"itemChange","handleChange"]],{"active":["onActiveChange"]}],[1,"c-button",{"inverted":[4],"outlined":[4],"ghost":[4],"danger":[4],"grouped":[4],"text":[4],"loading":[4],"fit":[4],"noRadius":[4,"no-radius"],"type":[1],"disabled":[516],"value":[8],"hostId":[1,"id"],"size":[1],"href":[1],"target":[1],"tabs":[4]},[[1,"focus","onTabFocus"]]],[65,"c-radio-group",{"value":[1032],"hideDetails":[4,"hide-details"],"hint":[1],"inline":[4],"label":[1],"color":[1],"hostId":[1,"id"],"items":[16],"disabled":[4],"returnObject":[4,"return-object"],"required":[4],"valid":[4],"validation":[1]}],[1,"c-sub-navigation-item",{"active":[4],"focusable":[4],"href":[1],"target":[1],"loading":[4]}],[65,"c-text-field",{"automaticFocus":[4,"autofocus"],"automaticCapitalize":[1,"autocapitalize"],"autocorrect":[1],"autocomplete":[1],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"trimWhitespace":[4,"trim-whitespace"],"label":[1],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[1025],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32]}],[65,"c-otp-input",{"hideDetails":[4,"hide-details"],"hint":[1],"elementId":[1,"id"],"length":[2],"valid":[4],"validation":[1],"value":[1025],"statusText":[32],"reset":[64]},null,{"validation":["onValidationMessageChange"],"value":["onValueChange"]}],[1,"c-card-content"],[1,"c-card-title"],[1,"c-csc-logo",{"width":[2]}],[1,"c-main",{"disableLayout":[4,"disable-layout"]}],[1,"c-option",{"selected":[4],"disabled":[4],"name":[1],"value":[8]}],[1,"c-page",{"scrollIndicator":[4,"scroll-indicator"]}],[1,"c-radio",{"checked":[4],"disabled":[4],"value":[1]}],[1,"c-side-navigation-title"],[65,"c-switch",{"checked":[1028],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostDisabled":[4,"disabled"],"hostId":[1,"id"],"required":[4],"hasLabel":[32]},null,{"value":["onValueChange"]}],[4,"c-table",{"mobileBreakpoint":[2,"mobile-breakpoint"],"responsive":[4]}],[1,"c-toolbar"],[65,"c-checkbox",{"checked":[1028],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"indeterminate":[4],"label":[1],"required":[4],"valid":[4],"validation":[1],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostName":[1,"name"]},[[1,"keydown","handleKeyDown"]],{"value":["onValueChange"]}],[1,"c-card-actions",{"align":[1],"justify":[1]}],[1,"c-spacer"],[1,"c-dropdown",{"itemsPerPage":[2,"items-per-page"],"parent":[16],"items":[16],"index":[2],"hostId":[1,"id"],"type":[1],"dropdownItemType":[1,"dropdown-item-type"],"renderedList":[32],"isOpen":[32],"statusText":[32],"setStatusText":[64],"focusItem":[64],"open":[64],"close":[64],"selectItem":[64],"updateList":[64]},null,{"items":["optionsWatcher"],"isOpen":["stateWatcher"],"index":["handleIndexChange"]}],[1,"c-loader",{"contentdelay":[2],"hide":[4],"size":[2],"width":[2]},null,{"hide":["onElementHide"]}],[4,"c-input",{"active":[4],"automaticFocus":[4,"autofocus"],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"inputId":[1,"input-id"],"items":[16],"itemsPerPage":[2,"items-per-page"],"label":[1],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[8],"variant":[1],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32],"statusText":[32],"currentIndex":[32],"reset":[64]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"value":["onValueChange"],"placeholder":["onPlaceholderChange"]}],[1,"c-message",{"hint":[1],"inputId":[1,"input-id"],"valid":[4],"validation":[1],"messageOptions":[32]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"hint":["onHintMessageChange"]}],[1,"c-icon-button",{"badge":[1],"danger":[4],"loading":[4],"text":[4],"inverted":[4],"outlined":[4],"path":[1],"ghost":[4],"disabled":[4],"size":[1]}],[1,"c-badge"],[1,"c-icon",{"path":[1],"size":[2],"color":[1]}],[1,"c-spinner",{"color":[1],"size":[2],"width":[2]}],[1,"c-ripple",{"createRipple":[64]}]]],["p-10ef7ca7",[[1,"c-menu",{"items":[16],"contentClass":[1,"content-class"],"custom":[4],"small":[4],"flat":[4],"itemsPerPage":[2,"items-per-page"],"menuItemsComponent":[32],"menuWrapperComponent":[32],"currentIndex":[32],"active":[32]},[[2,"keydown","handleKeyDown"]]],[1,"c-menu-items",{"items":[16],"small":[4],"active":[4],"parentType":[1,"parent-type"],"parent":[16],"top":[2],"index":[2],"itemsPerPage":[2,"items-per-page"],"scrollingParent":[32],"isInView":[32],"currentIndex":[32]},[[2,"keydown","handleKeyDown"]],{"currentIndex":["onIndexChange"]}]]],["p-32fa684b",[[1,"c-pagination",{"value":[16],"hideDetails":[4,"hide-details"],"simple":[4],"size":[1],"hideRange":[4,"hide-range"],"_currentPage":[32],"_itemsPerPage":[32],"_pageSizes":[32],"_totalVisible":[32],"tick":[32]},null,{"value":["valueHandler"]}]]],["p-4a1cf8bf",[[1,"c-toast",{"message":[16],"closeToast":[64]}]]]]'),e)}));
1
+ import{p as e,b as a}from"./p-a3e3248c.js";export{s as setNonce}from"./p-a3e3248c.js";import{g as t}from"./p-e1255160.js";var i=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};i().then((async e=>{await t();return a(JSON.parse('[["p-3cade358",[[1,"c-data-table",{"data":[16],"externalData":[4,"external-data"],"headers":[16],"hideFooter":[4,"hide-footer"],"footerOptions":[16],"loading":[4],"loadingText":[1,"loading-text"],"noDataText":[1,"no-data-text"],"pagination":[1040],"selectable":[4],"singleSelection":[4,"single-selection"],"selectionProperty":[1,"selection-property"],"singleExpansion":[4,"single-expansion"],"sortBy":[1032,"sort-by"],"sortDirection":[1025,"sort-direction"],"stickyHeader":[4,"sticky-header"],"horizontalScrolling":[4,"horizontal-scrolling"],"_activeRows":[32],"_data":[32],"_isIndeterminate":[32],"_isPaginationSimple":[32],"_selections":[32],"hasOverflow":[32],"hiddenHeaders":[32],"initiallyHiddenHeaders":[32],"forceRender":[32],"breakpoints":[32],"markedFooterWidth":[32],"parentWidth":[32],"firstCellHidden":[32],"lastCellHidden":[32],"clearSelections":[64],"getData":[64]},null,{"hiddenHeaders":["onHiddenHeaderChange"],"data":["onDataChange"],"headers":["onHeaderChange"],"singleSelection":["onSingleSelectionChange"],"loading":["onLoadingChange"]}]]],["p-7a97c209",[[1,"c-tabs",{"value":[1032],"borderless":[4],"disableAnimation":[4,"disable-animation"],"justify":[1],"mobileBreakpoint":[2,"mobile-breakpoint"],"vertical":[4],"isOverflowing":[32],"isMobile":[32],"scrollOffset":[32]},[[1,"tabFocus","tabFocusHandler"],[1,"tabChange","tabChangeHandler"],[2,"keydown","handleKeyDown"],[2,"keyup","handleKeyUp"]],{"justify":["onJustificationChange"],"value":["onExternalValueChange"],"scrollOffset":["onScrollOffsetChange"]}]]],["p-8f945add",[[1,"c-tag",{"active":[4],"block":[4],"fit":[4],"flat":[4],"closeable":[4],"badge":[8],"size":[1]}]]],["p-c80fa43f",[[4,"c-swiper",{"value":[1544],"elementId":[1,"id"],"isBeginning":[32],"isEnd":[32],"statusText":[32]},[[0,"changeValue","onTabClick"],[2,"keyup","handleKeyUp"]]]]],["p-725854f2",[[1,"c-toasts",{"absolute":[4],"horizontal":[1],"vertical":[1],"messages":[32],"addToast":[64],"removeToast":[64]}]]],["p-a0647489",[[1,"c-accordion-item",{"collapsable":[4],"heading":[1],"value":[8],"expanded":[4],"outlined":[4],"hasCustomHeader":[32],"hasIcon":[32]},[[2,"keydown","handleKeyDown"],[0,"changeValue","stop"]]]]],["p-b543f80e",[[1,"c-list-item",{"active":[4],"disabled":[4],"disabledByParent":[4,"disabled-by-parent"],"hoverable":[4],"ripple":[4],"href":[1],"target":[1]},null,{"active":["onActiveChange"]}]]],["p-8315aa49",[[1,"c-login-card-actions",{"align":[1],"justify":[1]}]]],["p-b09292de",[[1,"c-swiper-tab",{"disabled":[4],"active":[4],"label":[1],"hostId":[1,"id"],"setsize":[2],"position":[2],"value":[8]},[[1,"click","onTabClick"]]]]],["p-04f96715",[[1,"c-tab",{"active":[4],"disabled":[4],"hostId":[1,"id"],"position":[2],"setsize":[2],"value":[8]},[[1,"focus","onTabFocus"],[1,"keydown","handleKeydown"]]]]],["p-c222df06",[[1,"c-accordion",{"value":[1032],"mandatory":[4],"multiple":[4],"outlined":[4]},[[1,"itemChange","onAccordionItemChange"]],{"value":["watchPropHandler"]}]]],["p-020643f8",[[1,"c-alert",{"type":[1]}]]],["p-ac5da8d1",[[1,"c-link",{"href":[1],"underline":[4],"target":[1],"weight":[1]}]]],["p-87b41fa4",[[0,"c-list",{"disabled":[4]},null,{"disabled":["onDisabledChange"]}]]],["p-68b100e9",[[1,"c-list-item-title",{"active":[4]}]]],["p-752f983d",[[1,"c-login-button",{"href":[1],"src":[1],"alt":[1]}]]],["p-e0e78a0d",[[1,"c-login-buttons"]]],["p-d67b56d8",[[4,"c-login-card",{"backgroundPosition":[1,"background-position"],"mobileBreakpoint":[2,"mobile-breakpoint"],"overlay":[4],"overlayBlendMode":[1,"overlay-blend-mode"],"src":[1],"path":[32],"imageHeight":[32]}]]],["p-900e4f04",[[1,"c-login-card-content"]]],["p-bcb87140",[[1,"c-login-card-title"]]],["p-47f76af6",[[1,"c-modal",{"value":[4],"dismissable":[4],"width":[8],"zIndex":[2,"z-index"],"disableBackdropBlur":[4,"disable-backdrop-blur"],"innerValue":[32],"animateModal":[32]},null,{"value":["onValueChange"]}]]],["p-7e0e5d26",[[1,"c-option-value"]]],["p-75ef652d",[[1,"c-progress-bar",{"value":[2],"hideDetails":[4,"hide-details"],"singleLine":[4,"single-line"],"label":[1],"indeterminate":[4]}]]],["p-9ce6cc51",[[1,"c-row",{"gap":[2],"nowrap":[4],"align":[1],"justify":[1]}]]],["p-1727bdd2",[[1,"c-slider",{"hostId":[1,"id"],"hostName":[1,"name"],"ariaLabelInternal":[1,"aria-label"],"max":[1],"min":[1],"step":[1],"value":[8],"unit":[1],"ticks":[4],"labels":[4],"disableTooltip":[4,"disable-tooltip"],"label":[1],"disabled":[4],"segments":[1],"trackPosition":[32],"tickPositions":[32]},null,{"segments":["onSegmentChange"],"value":["onValueChange"]}]]],["p-bb62b147",[[1,"c-status",{"type":[1]}]]],["p-e2a40b86",[[1,"c-step",{"complete":[4],"current":[4]}]]],["p-b1ab606b",[[1,"c-steps",{"value":[8],"isMobile":[32],"label":[32]},null,{"value":["watchPropHandler"]}]]],["p-f51e246f",[[1,"c-tab-buttons",{"value":[1032],"mandatory":[4],"tabs":[4],"size":[1],"hostDisabled":[4,"disabled"]},[[1,"tabFocus","tabFocusHandler"],[2,"keyup","handleKeyUp"],[1,"tabChange","onTabChange"]],{"value":["onValueChange"]}]]],["p-c29ab211",[[1,"c-tab-item",{"value":[8],"active":[4]}]]],["p-7a303273",[[1,"c-tab-items",{"value":[8],"disableAnimation":[4,"disable-animation"],"activeTab":[32]},[[1,"contentChange","tabContentChangeHandler"]],{"value":["onValueChange"]}]]],["p-6c3cb9f3",[[1,"c-tags",{"size":[1]}]]],["p-6b3b2cf1",[[65,"c-autocomplete",{"items":[16],"value":[8],"query":[1],"hostId":[1,"id"],"disabled":[4],"label":[1],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"minimumQueryLength":[2,"minimum-query-length"],"minimumQueryLengthMessage":[1,"minimum-query-length-message"],"noMatchingItemsMessage":[1,"no-matching-items-message"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"query":["handleQueryChange"]}],[65,"c-select",{"items":[16],"value":[8],"hostId":[1,"id"],"clearable":[4],"disabled":[4],"label":[1],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"optionAsSelection":[4,"option-as-selection"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[1,"keydown","handleKeyDown"],[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"value":["onValueChanged"]}],[1,"c-card",{"fullscreen":[4],"isFullscreen":[32],"exitFullscreen":[64],"enterFullscreen":[64]}],[1,"c-navigation-button"],[1,"c-side-navigation",{"styles":[16],"mobile":[4],"menuVisible":[1028,"menu-visible"]},[[0,"itemChange","handleChange"]]],[1,"c-side-navigation-item",{"active":[4],"href":[1],"target":[1],"loading":[4]},[[0,"itemChange","handleChange"]],{"active":["onActiveChange"]}],[1,"c-button",{"inverted":[4],"outlined":[4],"ghost":[4],"danger":[4],"grouped":[4],"text":[4],"loading":[4],"fit":[4],"noRadius":[4,"no-radius"],"type":[1],"disabled":[516],"value":[8],"hostId":[1,"id"],"size":[1],"href":[1],"target":[1],"tabs":[4]},[[1,"focus","onTabFocus"]]],[65,"c-radio-group",{"value":[1032],"hideDetails":[4,"hide-details"],"hint":[1],"inline":[4],"label":[1],"color":[1],"hostId":[1,"id"],"items":[16],"disabled":[4],"returnObject":[4,"return-object"],"required":[4],"valid":[4],"validation":[1]}],[1,"c-sub-navigation-item",{"active":[4],"focusable":[4],"href":[1],"target":[1],"loading":[4]}],[65,"c-text-field",{"automaticFocus":[4,"autofocus"],"automaticCapitalize":[1,"autocapitalize"],"autocorrect":[1],"autocomplete":[1],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"trimWhitespace":[4,"trim-whitespace"],"label":[1],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[1025],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32]}],[65,"c-otp-input",{"hideDetails":[4,"hide-details"],"hint":[1],"elementId":[1,"id"],"length":[2],"valid":[4],"validation":[1],"value":[1025],"statusText":[32],"reset":[64]},null,{"validation":["onValidationMessageChange"],"value":["onValueChange"]}],[65,"c-switch",{"checked":[1028],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostDisabled":[4,"disabled"],"loading":[4],"hostId":[1,"id"],"required":[4],"hasLabel":[32]},null,{"value":["onValueChange"]}],[1,"c-card-content"],[1,"c-card-title"],[1,"c-csc-logo",{"width":[2]}],[1,"c-main",{"disableLayout":[4,"disable-layout"]}],[1,"c-option",{"selected":[4],"disabled":[4],"name":[1],"value":[8]}],[1,"c-page",{"scrollIndicator":[4,"scroll-indicator"]}],[1,"c-radio",{"checked":[4],"disabled":[4],"value":[1]}],[1,"c-side-navigation-title"],[4,"c-table",{"mobileBreakpoint":[2,"mobile-breakpoint"],"responsive":[4]}],[1,"c-toolbar"],[65,"c-checkbox",{"checked":[1028],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"indeterminate":[4],"label":[1],"required":[4],"valid":[4],"validation":[1],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostName":[1,"name"]},[[1,"keydown","handleKeyDown"]],{"value":["onValueChange"]}],[1,"c-card-actions",{"align":[1],"justify":[1]}],[1,"c-spacer"],[1,"c-dropdown",{"itemsPerPage":[2,"items-per-page"],"parent":[16],"items":[16],"index":[2],"hostId":[1,"id"],"type":[1],"dropdownItemType":[1,"dropdown-item-type"],"renderedList":[32],"isOpen":[32],"statusText":[32],"setStatusText":[64],"focusItem":[64],"open":[64],"close":[64],"selectItem":[64],"updateList":[64]},null,{"items":["optionsWatcher"],"isOpen":["stateWatcher"],"index":["handleIndexChange"]}],[1,"c-loader",{"contentdelay":[2],"hide":[4],"size":[2],"width":[2]},null,{"hide":["onElementHide"]}],[4,"c-input",{"active":[4],"automaticFocus":[4,"autofocus"],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"inputId":[1,"input-id"],"items":[16],"itemsPerPage":[2,"items-per-page"],"label":[1],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[8],"variant":[1],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32],"statusText":[32],"currentIndex":[32],"reset":[64]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"value":["onValueChange"],"placeholder":["onPlaceholderChange"]}],[1,"c-message",{"hint":[1],"inputId":[1,"input-id"],"valid":[4],"validation":[1],"messageOptions":[32]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"hint":["onHintMessageChange"]}],[1,"c-icon-button",{"badge":[1],"danger":[4],"loading":[4],"text":[4],"inverted":[4],"outlined":[4],"path":[1],"ghost":[4],"disabled":[4],"size":[1]}],[1,"c-badge"],[1,"c-icon",{"path":[1],"size":[2],"color":[1]}],[1,"c-spinner",{"color":[1],"size":[2],"width":[2]}],[1,"c-ripple",{"createRipple":[64]}]]],["p-10ef7ca7",[[1,"c-menu",{"items":[16],"contentClass":[1,"content-class"],"custom":[4],"small":[4],"flat":[4],"itemsPerPage":[2,"items-per-page"],"menuItemsComponent":[32],"menuWrapperComponent":[32],"currentIndex":[32],"active":[32]},[[2,"keydown","handleKeyDown"]]],[1,"c-menu-items",{"items":[16],"small":[4],"active":[4],"parentType":[1,"parent-type"],"parent":[16],"top":[2],"index":[2],"itemsPerPage":[2,"items-per-page"],"scrollingParent":[32],"isInView":[32],"currentIndex":[32]},[[2,"keydown","handleKeyDown"]],{"currentIndex":["onIndexChange"]}]]],["p-32fa684b",[[1,"c-pagination",{"value":[16],"hideDetails":[4,"hide-details"],"simple":[4],"size":[1],"hideRange":[4,"hide-range"],"_currentPage":[32],"_itemsPerPage":[32],"_pageSizes":[32],"_totalVisible":[32],"tick":[32]},null,{"value":["valueHandler"]}]]],["p-e7c448f3",[[1,"c-toast",{"message":[16],"closeToast":[64]}]]]]'),e)}));
2
2
  //# sourceMappingURL=csc-ui.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.1 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,s8XAAuCJ,EAAA","ignoreList":[]}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.1 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,o9XAAuCJ,EAAA","ignoreList":[]}