@infineon/infineon-design-system-stencil 32.1.3--canary.1732.e6c5088edba1a79eefeb928de57c62f713ee0908.0 → 32.1.3--canary.1723.ad5f2fc11d6ebec72c1f4c82bf17683c829ea518.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.
- package/dist/cjs/ifx-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-radio-button.cjs.entry.js +4 -11
- package/dist/cjs/ifx-radio-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +2 -2
- package/dist/cjs/ifx-select.cjs.entry.js +2 -2
- package/dist/cjs/ifx-slider.cjs.entry.js +2 -2
- package/dist/cjs/ifx-spinner_2.cjs.entry.js +6 -6
- package/dist/cjs/ifx-status.cjs.entry.js +1 -1
- package/dist/cjs/ifx-step.cjs.entry.js +4 -4
- package/dist/cjs/ifx-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
- package/dist/cjs/ifx-templates-ui.cjs.entry.js +1 -1
- package/dist/cjs/ifx-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/index-1ce5aae1.js +0 -4
- package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/overview-table/overview-table.js +1 -1
- package/dist/collection/components/overview-table/overview-table.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-button/radio-button.css +0 -4
- package/dist/collection/components/radio-button/radio-button.js +2 -25
- package/dist/collection/components/radio-button/radio-button.js.map +1 -1
- package/dist/collection/components/radio-button/radio-button.stories.js +1 -13
- package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
- package/dist/collection/components/search-bar/search-bar.js +1 -1
- package/dist/collection/components/search-field/search-field.js +1 -1
- package/dist/collection/components/segmented-control/segment/segment.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +2 -2
- package/dist/collection/components/select/single-select/select.js +2 -2
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/status/status.js +1 -1
- package/dist/collection/components/stepper/step/step.js +4 -4
- package/dist/collection/components/stepper/stepper.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +2 -2
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +1 -1
- package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -1
- package/dist/collection/components/table-advanced-version/table.js +2 -2
- package/dist/collection/components/table-basic-version/table.js +1 -1
- package/dist/collection/components/tabs/tab.js +1 -1
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/templates/template/template.js +1 -1
- package/dist/collection/components/templates/templates-ui/templates-ui.js +1 -1
- package/dist/collection/components/text-field/text-field.js +4 -4
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
- package/dist/components/ifx-basic-table.js +1 -1
- package/dist/components/ifx-faq.js +1 -1
- package/dist/components/ifx-filter-accordion.js +2 -2
- package/dist/components/ifx-filter-bar.js +1 -1
- package/dist/components/ifx-filter-search.js +2 -2
- package/dist/components/ifx-filter-type-group.js +1 -1
- package/dist/components/ifx-list-entry.js +2 -2
- package/dist/components/ifx-overview-table.js +1 -1
- package/dist/components/ifx-overview-table.js.map +1 -1
- package/dist/components/ifx-pagination.js +1 -1
- package/dist/components/ifx-progress-bar.js +1 -1
- package/dist/components/ifx-radio-button.js +1 -1
- package/dist/components/ifx-search-bar.js +2 -2
- package/dist/components/ifx-search-field.js +1 -1
- package/dist/components/ifx-segment.js +1 -1
- package/dist/components/ifx-segmented-control.js +2 -2
- package/dist/components/ifx-select.js +1 -1
- package/dist/components/ifx-set-filter.js +2 -2
- package/dist/components/ifx-slider.js +2 -2
- package/dist/components/ifx-spinner.js +1 -1
- package/dist/components/ifx-status.js +1 -1
- package/dist/components/ifx-step.js +4 -4
- package/dist/components/ifx-stepper.js +2 -2
- package/dist/components/ifx-switch.js +1 -1
- package/dist/components/ifx-tab.js +1 -1
- package/dist/components/ifx-table.js +4 -4
- package/dist/components/ifx-tabs.js +2 -2
- package/dist/components/ifx-tag.js +1 -1
- package/dist/components/ifx-template.js +1 -1
- package/dist/components/ifx-templates-ui.js +4 -4
- package/dist/components/ifx-text-field.js +1 -1
- package/dist/components/ifx-textarea.js +1 -1
- package/dist/components/ifx-tooltip.js +4 -4
- package/dist/components/{p-6758b716.js → p-25dce5bf.js} +2 -2
- package/dist/components/{p-6758b716.js.map → p-25dce5bf.js.map} +1 -1
- package/dist/components/{p-1ab9b2d3.js → p-30f4f454.js} +3 -3
- package/dist/components/{p-1ab9b2d3.js.map → p-30f4f454.js.map} +1 -1
- package/dist/components/{p-c24216e7.js → p-3d46d2af.js} +5 -5
- package/dist/components/{p-c24216e7.js.map → p-3d46d2af.js.map} +1 -1
- package/dist/components/{p-efb9a50a.js → p-47853a7b.js} +3 -3
- package/dist/components/{p-efb9a50a.js.map → p-47853a7b.js.map} +1 -1
- package/dist/components/{p-da211009.js → p-8002e444.js} +3 -3
- package/dist/components/{p-da211009.js.map → p-8002e444.js.map} +1 -1
- package/dist/components/{p-bf0b6855.js → p-80856f14.js} +4 -4
- package/dist/components/{p-bf0b6855.js.map → p-80856f14.js.map} +1 -1
- package/dist/components/{p-e3b1b73d.js → p-977668df.js} +6 -14
- package/dist/components/p-977668df.js.map +1 -0
- package/dist/esm/ifx-alert_2.entry.js +1 -1
- package/dist/esm/ifx-basic-table.entry.js +1 -1
- package/dist/esm/ifx-chip_3.entry.js +1 -1
- package/dist/esm/ifx-faq.entry.js +1 -1
- package/dist/esm/ifx-filter-accordion.entry.js +2 -2
- package/dist/esm/ifx-filter-bar.entry.js +1 -1
- package/dist/esm/ifx-filter-search.entry.js +1 -1
- package/dist/esm/ifx-filter-type-group.entry.js +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js.map +1 -1
- package/dist/esm/ifx-progress-bar.entry.js +1 -1
- package/dist/esm/ifx-radio-button.entry.js +4 -11
- package/dist/esm/ifx-radio-button.entry.js.map +1 -1
- package/dist/esm/ifx-search-bar.entry.js +1 -1
- package/dist/esm/ifx-search-field.entry.js +1 -1
- package/dist/esm/ifx-segment.entry.js +1 -1
- package/dist/esm/ifx-segmented-control.entry.js +2 -2
- package/dist/esm/ifx-select.entry.js +2 -2
- package/dist/esm/ifx-slider.entry.js +2 -2
- package/dist/esm/ifx-spinner_2.entry.js +6 -6
- package/dist/esm/ifx-status.entry.js +1 -1
- package/dist/esm/ifx-step.entry.js +4 -4
- package/dist/esm/ifx-stepper.entry.js +2 -2
- package/dist/esm/ifx-switch.entry.js +1 -1
- package/dist/esm/ifx-tab.entry.js +1 -1
- package/dist/esm/ifx-table.entry.js +2 -2
- package/dist/esm/ifx-tabs.entry.js +2 -2
- package/dist/esm/ifx-tag.entry.js +1 -1
- package/dist/esm/ifx-templates-ui.entry.js +1 -1
- package/dist/esm/ifx-textarea.entry.js +1 -1
- package/dist/esm/ifx-tooltip.entry.js +4 -4
- package/dist/esm/index-b4eaf00e.js +0 -4
- package/dist/esm/infineon-design-system-stencil.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/p-094349b2.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-094349b2.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-0ed489eb.entry.js → p-0c747aac.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a2616b8d.entry.js → p-16430d76.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-44c3ef6d.entry.js → p-182854c8.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-19ebd7a9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-19ebd7a9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-48701f83.entry.js → p-1a93de53.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-137b4109.entry.js → p-1b907dbd.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ce37b499.entry.js → p-1c869534.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2c83ff9d.entry.js → p-260c4f53.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e58a1c25.entry.js → p-272aab7f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0682ec9e.entry.js → p-2d8c79bc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9bc3708f.entry.js → p-37e5b4b4.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8a92bb07.entry.js → p-386f62f0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-73b7e3a5.entry.js → p-4ea09b73.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6ede583b.entry.js → p-65b50486.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-724a6be7.entry.js → p-70e4a919.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-bb2885be.entry.js → p-7b9fd2df.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1d4fc278.entry.js → p-8276469c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-89c4fae2.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-ece5ec08.entry.js → p-8ab52cac.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e69d348c.entry.js → p-8c0927d0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-939f2f37.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-484ab7c4.entry.js.map → p-939f2f37.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-ebef8ea8.entry.js → p-9901114e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-62396204.entry.js → p-b0156752.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a8fdba36.entry.js → p-b1bd480b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-daa1ac45.entry.js → p-c8fecc8e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b4982f52.entry.js → p-ccba569e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c70eddd7.entry.js → p-d2998185.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6cf93534.entry.js → p-f8f10567.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-42103a85.entry.js → p-f9298124.entry.js} +2 -2
- package/dist/types/components/radio-button/radio-button.d.ts +0 -2
- package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -11
- package/dist/types/components.d.ts +0 -30
- package/package.json +1 -1
- package/dist/cjs/ifx-radio-button-group.cjs.entry.js +0 -61
- package/dist/cjs/ifx-radio-button-group.cjs.entry.js.map +0 -1
- package/dist/collection/components/radio-button-group/radio-button-group.css +0 -59
- package/dist/collection/components/radio-button-group/radio-button-group.js +0 -238
- package/dist/collection/components/radio-button-group/radio-button-group.js.map +0 -1
- package/dist/collection/components/radio-button-group/radio-button-group.stories.js +0 -143
- package/dist/collection/components/radio-button-group/radio-button-group.stories.js.map +0 -1
- package/dist/components/ifx-radio-button-group.d.ts +0 -11
- package/dist/components/ifx-radio-button-group.js +0 -91
- package/dist/components/ifx-radio-button-group.js.map +0 -1
- package/dist/components/p-e3b1b73d.js.map +0 -1
- package/dist/esm/ifx-radio-button-group.entry.js +0 -57
- package/dist/esm/ifx-radio-button-group.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-484ab7c4.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-71b5d16a.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-71b5d16a.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-778a65ae.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-9631e187.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-9631e187.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-e5b0bae9.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e5b0bae9.entry.js.map +0 -1
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +0 -19
- package/dist/types/components/radio-button-group/radio-button-group.stories.d.ts +0 -171
- /package/dist/infineon-design-system-stencil/{p-0ed489eb.entry.js.map → p-0c747aac.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a2616b8d.entry.js.map → p-16430d76.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-44c3ef6d.entry.js.map → p-182854c8.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-48701f83.entry.js.map → p-1a93de53.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-137b4109.entry.js.map → p-1b907dbd.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ce37b499.entry.js.map → p-1c869534.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2c83ff9d.entry.js.map → p-260c4f53.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e58a1c25.entry.js.map → p-272aab7f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0682ec9e.entry.js.map → p-2d8c79bc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9bc3708f.entry.js.map → p-37e5b4b4.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8a92bb07.entry.js.map → p-386f62f0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-73b7e3a5.entry.js.map → p-4ea09b73.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6ede583b.entry.js.map → p-65b50486.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-724a6be7.entry.js.map → p-70e4a919.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-bb2885be.entry.js.map → p-7b9fd2df.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1d4fc278.entry.js.map → p-8276469c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-778a65ae.entry.js.map → p-89c4fae2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ece5ec08.entry.js.map → p-8ab52cac.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e69d348c.entry.js.map → p-8c0927d0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ebef8ea8.entry.js.map → p-9901114e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-62396204.entry.js.map → p-b0156752.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a8fdba36.entry.js.map → p-b1bd480b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-daa1ac45.entry.js.map → p-c8fecc8e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b4982f52.entry.js.map → p-ccba569e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c70eddd7.entry.js.map → p-d2998185.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6cf93534.entry.js.map → p-f8f10567.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-42103a85.entry.js.map → p-f9298124.entry.js.map} +0 -0
@@ -18,7 +18,7 @@ const ProgressBar = class {
|
|
18
18
|
this.internalValue = this.value;
|
19
19
|
}
|
20
20
|
render() {
|
21
|
-
return (h("div", { key: '
|
21
|
+
return (h("div", { key: '9a1fc68c768dc22c5926f0eae299862f2d2de371', "aria-label": 'a progress bar', "aria-value": this.value, class: `progress-bar ${this.size}` }, h("div", { key: '6e847900044f4bc04eacbcc194ffac8bf6b83e0a', class: "progress", style: { width: `${this.internalValue}%` } }, this.showLabel && this.size !== "s" && this.internalValue !== 0 && h("span", { key: '8e6fa2713fbcd0b956b8f27b873816adc0c3cb7f', class: "label" }, `${this.internalValue}%`))));
|
22
22
|
}
|
23
23
|
static get watchers() { return {
|
24
24
|
"value": ["valueChanged"]
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-b4eaf00e.js';
|
2
2
|
|
3
|
-
const radioButtonCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{display:inline-flex;--_ifx-fallback-display:none !important}._ifx-radiobutton-fallback{display:var(--_ifx-fallback-display);position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;border:0 !important}.radioButton__container{box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;padding:0px;gap:8px;cursor:pointer;font-family:var(--ifx-font-family)}.radioButton__container.m .radioButton__wrapper{width:24px;height:24px}.radioButton__container .radioButton__wrapper{width:20px;height:20px;position:relative;display:block;border-radius:50%;background-color:#FFFFFF;border:1px solid #575352}.radioButton__container .radioButton__wrapper:focus{outline:none}.radioButton__container .radioButton__wrapper:focus::before{content:\"\";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%);border:2px solid #0A8276;border-radius:50%}.radioButton__container .radioButton__wrapper .radioButton__wrapper-mark{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background-color:#0A8276;border-radius:50%;display:flex;justify-content:center;align-items:center;border-color:transparent}.radioButton__container .radioButton__wrapper:hover{background-color:#EEEDED}.radioButton__container .radioButton__wrapper.disabled{background-color:#BFBBBB;border-color:#BFBBBB}.radioButton__container .radioButton__wrapper.disabled.error:hover,.radioButton__container .radioButton__wrapper.disabled.error:focus-visible{border-color:#CD002F}.radioButton__container .radioButton__wrapper.checked{border-color:#0A8276}.radioButton__container .radioButton__wrapper.checked::after{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;background-color:#0A8276;border-radius:50%}.radioButton__container .radioButton__wrapper.checked.disabled::after{background-color:#BFBBBB}.radioButton__container .radioButton__wrapper.checked:hover{border-color:#08665C}.radioButton__container .radioButton__wrapper.checked:hover .radioButton__wrapper-mark{background-color:#08665C}.radioButton__container .radioButton__wrapper.checked.disabled{background-color:#FFFFFF;border-color:#BFBBBB}.radioButton__container .radioButton__wrapper.checked.disabled.disabled::after{background-color:#BFBBBB}.radioButton__container .radioButton__wrapper.checked.disabled .radioButton__wrapper-mark{background-color:#BFBBBB}.radioButton__container .radioButton__wrapper.
|
3
|
+
const radioButtonCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{display:inline-flex;--_ifx-fallback-display:none !important}._ifx-radiobutton-fallback{display:var(--_ifx-fallback-display);position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;border:0 !important}.radioButton__container{box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;padding:0px;gap:8px;cursor:pointer;font-family:var(--ifx-font-family)}.radioButton__container.m .radioButton__wrapper{width:24px;height:24px}.radioButton__container .radioButton__wrapper{width:20px;height:20px;position:relative;display:block;border-radius:50%;background-color:#FFFFFF;border:1px solid #575352}.radioButton__container .radioButton__wrapper:focus{outline:none}.radioButton__container .radioButton__wrapper:focus::before{content:\"\";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%);border:2px solid #0A8276;border-radius:50%}.radioButton__container .radioButton__wrapper .radioButton__wrapper-mark{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background-color:#0A8276;border-radius:50%;display:flex;justify-content:center;align-items:center;border-color:transparent}.radioButton__container .radioButton__wrapper:hover{background-color:#EEEDED}.radioButton__container .radioButton__wrapper.disabled{background-color:#BFBBBB;border-color:#BFBBBB}.radioButton__container .radioButton__wrapper.disabled.error:hover,.radioButton__container .radioButton__wrapper.disabled.error:focus-visible{border-color:#CD002F}.radioButton__container .radioButton__wrapper.checked{border-color:#0A8276}.radioButton__container .radioButton__wrapper.checked::after{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;background-color:#0A8276;border-radius:50%}.radioButton__container .radioButton__wrapper.checked.disabled::after{background-color:#BFBBBB}.radioButton__container .radioButton__wrapper.checked:hover{border-color:#08665C}.radioButton__container .radioButton__wrapper.checked:hover .radioButton__wrapper-mark{background-color:#08665C}.radioButton__container .radioButton__wrapper.checked.disabled{background-color:#FFFFFF;border-color:#BFBBBB}.radioButton__container .radioButton__wrapper.checked.disabled.disabled::after{background-color:#BFBBBB}.radioButton__container .radioButton__wrapper.checked.disabled .radioButton__wrapper-mark{background-color:#BFBBBB}.radioButton__container .radioButton__wrapper.error:not(.disabled){border-color:#CD002F}.radioButton__container .radioButton__wrapper.error:not(.disabled):hover,.radioButton__container .radioButton__wrapper.error:not(.disabled):focus-visible{border-color:#CD002F}.radioButton__container .label{display:flex;align-items:center;height:20px;font-style:normal;font-weight:400;font-size:0.875rem;line-height:1.25rem;color:#1D1D1D;flex:none;order:1;flex-grow:0}.radioButton__container .label.label-m{height:24px;font-size:1rem;line-height:1.5rem}.radioButton__container .label.disabled{color:#BFBBBB}.radioButton__container .label:hover{cursor:pointer}";
|
4
4
|
const IfxRadioButtonStyle0 = radioButtonCss;
|
5
5
|
|
6
6
|
const RadioButton = class {
|
7
7
|
constructor(hostRef) {
|
8
8
|
registerInstance(this, hostRef);
|
9
9
|
this.ifxChange = createEvent(this, "ifxChange", 7);
|
10
|
-
this.ifxError = createEvent(this, "ifxError", 7);
|
11
10
|
this.disabled = false;
|
12
11
|
this.error = false;
|
13
12
|
this.size = "s";
|
@@ -58,11 +57,6 @@ const RadioButton = class {
|
|
58
57
|
this.fallbackInput.value = this.value;
|
59
58
|
this.fallbackInput.disabled = this.disabled;
|
60
59
|
}
|
61
|
-
errorChanged(newValue, oldValue) {
|
62
|
-
if (newValue !== oldValue) {
|
63
|
-
this.ifxError.emit(newValue);
|
64
|
-
}
|
65
|
-
}
|
66
60
|
handleRadioButtonClick(event) {
|
67
61
|
if (this.disabled) {
|
68
62
|
event.stopPropagation();
|
@@ -94,17 +88,16 @@ const RadioButton = class {
|
|
94
88
|
}
|
95
89
|
}
|
96
90
|
render() {
|
97
|
-
return (h("div", { key: '
|
91
|
+
return (h("div", { key: '4a69126345effabdb522d209b4fb867ae55373bb', role: "radio", "aria-checked": String(this.internalChecked), "aria-disabled": String(this.disabled), class: `radioButton__container ${this.size} ${this.disabled ? 'disabled' : ''}`, onClick: (e) => this.handleRadioButtonClick(e), tabindex: this.disabled ? -1 : 0 }, h("div", { key: '66c27180f8f00aff7599a09368e740a8654917bd', class: `radioButton__wrapper
|
98
92
|
${this.internalChecked ? 'checked' : ''}
|
99
93
|
${this.disabled ? 'disabled' : ''}
|
100
|
-
${this.error ? 'error' : ''}` }, this.internalChecked && h("div", { key: '
|
94
|
+
${this.error ? 'error' : ''}` }, this.internalChecked && h("div", { key: '9012278070740bc5bfe976b66e1ca5098ca21bdc', class: "radioButton__wrapper-mark" })), this.hasSlot && (h("div", { key: '4a82098a237a794405ac69ec8a7898ca1ca3f41b', class: `label ${this.size === "m" ? "label-m" : ""} ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '805092a6667be8a22cead7a830dc483a8e53d42a' }))), h("input", { key: 'a9efb84dc6d54d9df3e704235702e7c1ea9587e0', type: "radio", hidden: true, ref: el => this.inputElement = el, name: this.name, value: this.value, checked: this.internalChecked, disabled: this.disabled, onClick: (e) => e.stopPropagation() })));
|
101
95
|
}
|
102
96
|
static get formAssociated() { return true; }
|
103
97
|
get el() { return getElement(this); }
|
104
98
|
static get watchers() { return {
|
105
99
|
"checked": ["handleCheckedChange"],
|
106
|
-
"internalChecked": ["updateFormValue"]
|
107
|
-
"error": ["errorChanged"]
|
100
|
+
"internalChecked": ["updateFormValue"]
|
108
101
|
}; }
|
109
102
|
};
|
110
103
|
RadioButton.style = IfxRadioButtonStyle0;
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"ifx-radio-button.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,2zGAA2zG,CAAC;AACn1G,6BAAe,cAAc;;MCOhB,WAAW;IANxB;;;;QAQU,aAAQ,GAAY,KAAK,CAAC;QAE1B,UAAK,GAAY,KAAK,CAAC;QACN,SAAI,GAAc,GAAG,CA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AAG,UAAU,GAAG,EAAE,EAAE,IAC1F,8DAAQ,CACJ,CACP,EAED,8DACE,IAAI,EAAC,OAAO,EACZ,MAAM,QACN,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,YAAY,GAAG,EAAE,EACjC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,eAAe,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,GACnC,CACE,EACN;KACH;;;;;;;;;;;;;","names":[],"sources":["src/components/radio-button/radio-button.scss?tag=ifx-radio-button&encapsulation=shadow","src/components/radio-button/radio-button.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n display: inline-flex;\n --_ifx-fallback-display: none !important;\n}\n\n._ifx-radiobutton-fallback {\n display: var(--_ifx-fallback-display);\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0,0,0,0) !important;\n border: 0 !important;\n }\n\n.radioButton__container {\n box-sizing: border-box;\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n padding: 0px;\n gap: tokens.$ifxSpace100;\n cursor: pointer;\n font-family: var(--ifx-font-family);\n\n &.m .radioButton__wrapper {\n width: tokens.$ifxSize300;\n height: tokens.$ifxSize300;\n }\n\n .radioButton__wrapper {\n width: tokens.$ifxSize250;\n height: tokens.$ifxSize250;\n position: relative;\n display: block;\n border-radius: 50%;\n background-color: tokens.$ifxColorBaseWhite;\n border: 1px solid #575352;\n\n &:focus {\n outline: none;\n\n &::before {\n content: '';\n position: absolute;\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: 2px solid tokens.$ifxColorOcean500;\n border-radius: 50%;\n }\n }\n\n .radioButton__wrapper-mark {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #0A8276;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n border-color: tokens.$ifxColorBaseTransparent;\n }\n\n &:hover {\n background-color: tokens.$ifxColorEngineering200;\n }\n\n &.disabled {\n background-color: #BFBBBB;\n border-color: #BFBBBB;\n\n &.error {\n\n &:hover,\n &:focus-visible {\n border-color: #CD002F;\n }\n }\n }\n\n &.checked {\n border-color: #0A8276;\n\n &::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 10px;\n height: 10px;\n background-color: #0A8276;\n border-radius: 50%;\n }\n\n &.disabled::after {\n background-color: #BFBBBB;\n }\n\n\n &:hover {\n border-color: tokens.$ifxColorOcean600;\n\n & .radioButton__wrapper-mark {\n background-color: tokens.$ifxColorOcean600;\n }\n }\n\n &.disabled {\n background-color: tokens.$ifxColorBaseWhite;\n border-color: #BFBBBB;\n\n &.disabled::after {\n background-color: #BFBBBB;\n }\n\n & .radioButton__wrapper-mark {\n background-color: #BFBBBB;\n }\n }\n &.error::after {\n border-color: #CD002F;\n background-color: #CD002F;\n }\n }\n\n &.error:not(.disabled) {\n border-color: #CD002F;\n\n &:hover,\n &:focus-visible {\n border-color: #CD002F;\n }\n }\n }\n\n .label {\n display: flex;\n align-items: center;\n height: tokens.$ifxSize250;\n font-style: normal;\n font-weight: 400;\n font-size: tokens.$ifxFontSizeS;\n line-height: tokens.$ifxLineHeightS;\n color: tokens.$ifxColorBaseBlack;\n flex: none;\n order: 1;\n flex-grow: 0;\n\n &.label-m {\n height: tokens.$ifxSize300;\n font-size: tokens.$ifxFontSizeM;\n line-height: tokens.$ifxLineHeightM;\n }\n\n &.disabled {\n color: #BFBBBB;\n }\n\n\n\n &:hover {\n cursor: pointer;\n }\n }\n}\n\n","import { Component, h, Prop, Element, State, Event, EventEmitter, Listen, Watch } from '@stencil/core';\n\n@Component({\n tag: 'ifx-radio-button',\n styleUrl: 'radio-button.scss',\n shadow: true,\n formAssociated: true\n})\nexport class RadioButton {\n @Element() el: HTMLElement;\n @Prop() disabled: boolean = false;\n @Prop() value: string;\n @Prop() error: boolean = false;\n @Prop({ reflect: true }) size: \"s\" | \"m\" = \"s\";\n @Prop({ reflect: true }) name: string;\n @Prop({ mutable: true }) checked: boolean;\n @State() internalChecked: boolean = false;\n @State() hasSlot: boolean = false;\n\n private inputElement: HTMLInputElement;\n private internals: ElementInternals;\n private fallbackInput: HTMLInputElement;\n\n @Event({ eventName: 'ifxChange' }) ifxChange: EventEmitter;\n @Event({ eventName: 'ifxError' }) ifxError: EventEmitter;\n\n componentWillLoad() {\n // Fallback for form association\n this.fallbackInput = document.createElement('input');\n this.fallbackInput.type = 'radio';\n this.fallbackInput.hidden = true;\n this.fallbackInput.className = '_ifx-radiobutton-fallback';\n this.fallbackInput.style.cssText = `\n display: none !important;\n position: absolute !important;\n opacity: 0 !important;\n pointer-events: none !important;\n width: 0 !important;\n height: 0 !important;\n `;\n this.fallbackInput.setAttribute('aria-hidden', 'true');\n this.fallbackInput.tabIndex = -1;\n this.el.appendChild(this.fallbackInput);\n\n // Initialize ElementInternals if supported\n if ('attachInternals' in HTMLElement.prototype) {\n try {\n this.internals = this.el.attachInternals();\n } catch (e) {\n console.warn('ElementInternals not supported');\n }\n }\n\n // Initial state\n this.internalChecked = this.checked || false;\n this.hasSlot = !!this.el.querySelector('[slot]') || this.el.innerHTML.trim() !== '';\n }\n\n @Watch('checked')\n handleCheckedChange(newValue: boolean) {\n this.internalChecked = newValue;\n }\n\n @Watch('internalChecked')\n updateFormValue() {\n // Update both ElementInternals and fallback input\n if (this.internals?.setFormValue) {\n this.internals.setFormValue(this.internalChecked ? this.value : null);\n }\n this.fallbackInput.checked = this.internalChecked;\n this.fallbackInput.name = this.name;\n this.fallbackInput.value = this.value;\n this.fallbackInput.disabled = this.disabled;\n }\n\n @Watch('error')\n errorChanged(newValue: boolean, oldValue: boolean) {\n if (newValue !== oldValue) {\n this.ifxError.emit(newValue);\n }\n }\n\n handleRadioButtonClick(event: Event) {\n if (this.disabled) {\n event.stopPropagation();\n return;\n }\n\n this.inputElement.click();\n this.internalChecked = this.inputElement.checked;\n this.checked = this.internalChecked;\n this.ifxChange.emit(this.internalChecked);\n\n const changeEvent = new CustomEvent('change', {\n bubbles: true,\n composed: true,\n detail: { checked: this.internalChecked }\n });\n this.el.dispatchEvent(changeEvent);\n }\n\n @Listen('keydown')\n handleKeyDown(ev: KeyboardEvent) {\n if ([' ', 'Enter'].includes(ev.key)) {\n ev.preventDefault();\n this.handleRadioButtonClick(new PointerEvent('click'));\n }\n }\n\n @Listen('change', { target: 'document' })\n handleExternalChange(event: Event) {\n const target = event.target as HTMLElement;\n if (target === this.el || target.tagName.toLowerCase() !== 'ifx-radio-button') return;\n \n if (target.getAttribute('name') === this.name) {\n this.internalChecked = false;\n }\n }\n\n render() {\n return (\n <div\n role=\"radio\"\n aria-checked={String(this.internalChecked)}\n aria-disabled={String(this.disabled)}\n class={`radioButton__container ${this.size} ${this.disabled ? 'disabled' : ''}`}\n onClick={(e) => this.handleRadioButtonClick(e)}\n tabindex={this.disabled ? -1 : 0}\n >\n <div\n class={`radioButton__wrapper \n ${this.internalChecked ? 'checked' : ''} \n ${this.disabled ? 'disabled' : ''} \n ${this.error ? 'error' : ''}`}\n >\n {this.internalChecked && <div class=\"radioButton__wrapper-mark\"></div>}\n </div>\n\n {this.hasSlot && (\n <div class={`label ${this.size === \"m\" ? \"label-m\" : \"\"} ${this.disabled ? 'disabled' : ''}`}>\n <slot />\n </div>\n )}\n\n <input\n type=\"radio\"\n hidden\n ref={el => this.inputElement = el}\n name={this.name}\n value={this.value}\n checked={this.internalChecked}\n disabled={this.disabled}\n onClick={(e) => e.stopPropagation()}\n />\n </div>\n );\n }\n}"],"version":3}
|
1
|
+
{"file":"ifx-radio-button.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,0sGAA0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G,EAAE,EAAE,IAC1F,8DAAQ,CACJ,CACP,EAED,8DACE,IAAI,EAAC,OAAO,EACZ,MAAM,QACN,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,YAAY,GAAG,EAAE,EACjC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,eAAe,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,GACnC,CACE,EACN;KACH;;;;;;;;;;;;","names":[],"sources":["src/components/radio-button/radio-button.scss?tag=ifx-radio-button&encapsulation=shadow","src/components/radio-button/radio-button.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n display: inline-flex;\n --_ifx-fallback-display: none !important;\n}\n\n._ifx-radiobutton-fallback {\n display: var(--_ifx-fallback-display);\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0,0,0,0) !important;\n border: 0 !important;\n }\n\n.radioButton__container {\n box-sizing: border-box;\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n padding: 0px;\n gap: tokens.$ifxSpace100;\n cursor: pointer;\n font-family: var(--ifx-font-family);\n\n &.m .radioButton__wrapper {\n width: tokens.$ifxSize300;\n height: tokens.$ifxSize300;\n }\n\n .radioButton__wrapper {\n width: tokens.$ifxSize250;\n height: tokens.$ifxSize250;\n position: relative;\n display: block;\n border-radius: 50%;\n background-color: tokens.$ifxColorBaseWhite;\n border: 1px solid #575352;\n\n &:focus {\n outline: none;\n\n &::before {\n content: '';\n position: absolute;\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: 2px solid tokens.$ifxColorOcean500;\n border-radius: 50%;\n }\n }\n\n .radioButton__wrapper-mark {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #0A8276;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n border-color: tokens.$ifxColorBaseTransparent;\n }\n\n &:hover {\n background-color: tokens.$ifxColorEngineering200;\n }\n\n &.disabled {\n background-color: #BFBBBB;\n border-color: #BFBBBB;\n\n &.error {\n\n &:hover,\n &:focus-visible {\n border-color: #CD002F;\n }\n }\n }\n\n &.checked {\n border-color: #0A8276;\n\n &::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 10px;\n height: 10px;\n background-color: #0A8276;\n border-radius: 50%;\n }\n\n &.disabled::after {\n background-color: #BFBBBB;\n }\n\n\n &:hover {\n border-color: tokens.$ifxColorOcean600;\n\n & .radioButton__wrapper-mark {\n background-color: tokens.$ifxColorOcean600;\n }\n }\n\n &.disabled {\n background-color: tokens.$ifxColorBaseWhite;\n border-color: #BFBBBB;\n\n &.disabled::after {\n background-color: #BFBBBB;\n }\n\n & .radioButton__wrapper-mark {\n background-color: #BFBBBB;\n }\n }\n }\n\n &.error:not(.disabled) {\n border-color: #CD002F;\n\n &:hover,\n &:focus-visible {\n border-color: #CD002F;\n }\n }\n }\n\n .label {\n display: flex;\n align-items: center;\n height: tokens.$ifxSize250;\n font-style: normal;\n font-weight: 400;\n font-size: tokens.$ifxFontSizeS;\n line-height: tokens.$ifxLineHeightS;\n color: tokens.$ifxColorBaseBlack;\n flex: none;\n order: 1;\n flex-grow: 0;\n\n &.label-m {\n height: tokens.$ifxSize300;\n font-size: tokens.$ifxFontSizeM;\n line-height: tokens.$ifxLineHeightM;\n }\n\n &.disabled {\n color: #BFBBBB;\n }\n\n\n\n &:hover {\n cursor: pointer;\n }\n }\n}\n\n","import { Component, h, Prop, Element, State, Event, EventEmitter, Listen, Watch } from '@stencil/core';\n\n@Component({\n tag: 'ifx-radio-button',\n styleUrl: 'radio-button.scss',\n shadow: true,\n formAssociated: true\n})\nexport class RadioButton {\n @Element() el: HTMLElement;\n @Prop() disabled: boolean = false;\n @Prop() value: string;\n @Prop() error: boolean = false;\n @Prop({ reflect: true }) size: \"s\" | \"m\" = \"s\";\n @Prop({ reflect: true }) name: string;\n @Prop({ mutable: true }) checked: boolean;\n @State() internalChecked: boolean = false;\n @State() hasSlot: boolean = false;\n\n private inputElement: HTMLInputElement;\n private internals: ElementInternals;\n private fallbackInput: HTMLInputElement;\n\n @Event({ eventName: 'ifxChange' }) ifxChange: EventEmitter;\n\n componentWillLoad() {\n // Fallback for form association\n this.fallbackInput = document.createElement('input');\n this.fallbackInput.type = 'radio';\n this.fallbackInput.hidden = true;\n this.fallbackInput.className = '_ifx-radiobutton-fallback';\n this.fallbackInput.style.cssText = `\n display: none !important;\n position: absolute !important;\n opacity: 0 !important;\n pointer-events: none !important;\n width: 0 !important;\n height: 0 !important;\n `;\n this.fallbackInput.setAttribute('aria-hidden', 'true');\n this.fallbackInput.tabIndex = -1;\n this.el.appendChild(this.fallbackInput);\n\n // Initialize ElementInternals if supported\n if ('attachInternals' in HTMLElement.prototype) {\n try {\n this.internals = this.el.attachInternals();\n } catch (e) {\n console.warn('ElementInternals not supported');\n }\n }\n\n // Initial state\n this.internalChecked = this.checked || false;\n this.hasSlot = !!this.el.querySelector('[slot]') || this.el.innerHTML.trim() !== '';\n }\n\n @Watch('checked')\n handleCheckedChange(newValue: boolean) {\n this.internalChecked = newValue;\n }\n\n @Watch('internalChecked')\n updateFormValue() {\n // Update both ElementInternals and fallback input\n if (this.internals?.setFormValue) {\n this.internals.setFormValue(this.internalChecked ? this.value : null);\n }\n this.fallbackInput.checked = this.internalChecked;\n this.fallbackInput.name = this.name;\n this.fallbackInput.value = this.value;\n this.fallbackInput.disabled = this.disabled;\n }\n\n handleRadioButtonClick(event: Event) {\n if (this.disabled) {\n event.stopPropagation();\n return;\n }\n\n this.inputElement.click();\n this.internalChecked = this.inputElement.checked;\n this.checked = this.internalChecked;\n this.ifxChange.emit(this.internalChecked);\n\n const changeEvent = new CustomEvent('change', {\n bubbles: true,\n composed: true,\n detail: { checked: this.internalChecked }\n });\n this.el.dispatchEvent(changeEvent);\n }\n\n @Listen('keydown')\n handleKeyDown(ev: KeyboardEvent) {\n if ([' ', 'Enter'].includes(ev.key)) {\n ev.preventDefault();\n this.handleRadioButtonClick(new PointerEvent('click'));\n }\n }\n\n @Listen('change', { target: 'document' })\n handleExternalChange(event: Event) {\n const target = event.target as HTMLElement;\n if (target === this.el || target.tagName.toLowerCase() !== 'ifx-radio-button') return;\n \n if (target.getAttribute('name') === this.name) {\n this.internalChecked = false;\n }\n }\n\n render() {\n return (\n <div\n role=\"radio\"\n aria-checked={String(this.internalChecked)}\n aria-disabled={String(this.disabled)}\n class={`radioButton__container ${this.size} ${this.disabled ? 'disabled' : ''}`}\n onClick={(e) => this.handleRadioButtonClick(e)}\n tabindex={this.disabled ? -1 : 0}\n >\n <div\n class={`radioButton__wrapper \n ${this.internalChecked ? 'checked' : ''} \n ${this.disabled ? 'disabled' : ''} \n ${this.error ? 'error' : ''}`}\n >\n {this.internalChecked && <div class=\"radioButton__wrapper-mark\"></div>}\n </div>\n\n {this.hasSlot && (\n <div class={`label ${this.size === \"m\" ? \"label-m\" : \"\"} ${this.disabled ? 'disabled' : ''}`}>\n <slot />\n </div>\n )}\n\n <input\n type=\"radio\"\n hidden\n ref={el => this.inputElement = el}\n name={this.name}\n value={this.value}\n checked={this.internalChecked}\n disabled={this.disabled}\n onClick={(e) => e.stopPropagation()}\n />\n </div>\n );\n }\n}"],"version":3}
|
@@ -36,7 +36,7 @@ const SearchBar = class {
|
|
36
36
|
this.value = event.detail;
|
37
37
|
}
|
38
38
|
render() {
|
39
|
-
return (h("div", { key: '
|
39
|
+
return (h("div", { key: '9a6033dd56aecd4444cf7b5bee7916ce8d534760', "aria-label": 'a search bar', "aria-disabled": this.disabled, class: `search-bar ${this.internalState ? 'open' : 'closed'}` }, this.internalState ? (h("div", { class: "search-bar-wrapper" }, h("ifx-search-field", { disabled: this.disabled, value: this.value, maxlength: this.maxlength, onIfxInput: this.handleInput.bind(this) }, h("ifx-icon", { icon: "search-16", slot: "search-icon" })), h("a", { tabindex: "-1", href: 'javascript:void(0)', onClick: this.handleCloseButton }, "Close"))) : (h("div", { class: "search-bar__icon-wrapper", onClick: this.handleCloseButton }, h("ifx-icon", { icon: "search-16" })))));
|
40
40
|
}
|
41
41
|
get el() { return getElement(this); }
|
42
42
|
static get watchers() { return {
|
@@ -51,7 +51,7 @@ const SearchField = class {
|
|
51
51
|
this.showDeleteIconInternalState = false;
|
52
52
|
}
|
53
53
|
render() {
|
54
|
-
return (h("div", { key: '
|
54
|
+
return (h("div", { key: 'dd5d16c933ec70acb8950279f4642ac93ab8b801', "aria-label": "a search field for user input", "aria-disabled": this.disabled, "aria-value": this.value, class: 'search-field' }, h("div", { key: '92159e695d65890de079c49c25dba47a0243e56b', class: this.getWrapperClassNames(), tabindex: 1, onFocus: () => this.focusInput(), onClick: () => this.focusInput() }, h("ifx-icon", { key: '27c96d542775740161ea3630851b0b19d90a177f', icon: "search-16", class: "search-icon" }), h("input", { key: 'df87749e87af361855083fc54ff76826d2ca12b2', ref: (el) => (this.inputElement = el), type: "text", onInput: () => this.handleInput(), placeholder: this.placeholder, disabled: this.disabled, maxlength: this.maxlength, value: this.value }), this.showDeleteIcon && this.showDeleteIconInternalState ? (h("ifx-icon", { icon: "cremove16", class: "delete-icon", onClick: this.handleDelete })) : null)));
|
55
55
|
}
|
56
56
|
getSizeClass() {
|
57
57
|
return `${this.size}` === "s"
|
@@ -24,7 +24,7 @@ const Segment = class {
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
render() {
|
27
|
-
return (h("div", { key: '
|
27
|
+
return (h("div", { key: '82774e43f27d8995c36d7d356780bbe14b76f70c', class: `segment ${this.selected ? 'segment--selected' : ''}`, tabIndex: 0, onClick: () => { this.handleSegmentClick(); }, onKeyDown: (e) => { this.handleSegmentKeyDown(e); } }, h("ifx-icon", { key: '58ea805311f071bf39562bb043a4ea4e77b6cd57', icon: this.icon }), " ", h("slot", { key: '659727a8768c1988b251d795c9a7ae5b9554b1f0' })));
|
28
28
|
}
|
29
29
|
};
|
30
30
|
Segment.style = IfxSegmentStyle0;
|
@@ -68,8 +68,8 @@ const SegmentedControl = class {
|
|
68
68
|
this.setActiveSegment();
|
69
69
|
}
|
70
70
|
render() {
|
71
|
-
return (h("div", { key: '
|
72
|
-
h("div", { key: '
|
71
|
+
return (h("div", { key: '9fb656fefd8b61e7c563ac77a20a303d40c6f146', "aria-value": this.selectedValue, "aria-label": 'segmented control', class: 'group' }, h("div", { key: 'de4f8bf1f2404f106ff180167bf4c79abd2b165b', class: 'group__label' }, this.label.trim()), h("div", { key: 'e110c6c98b981142df08e7dda574b2d3e102a19d', class: 'group__controls' }, h("slot", { key: '3dd13439a68201c2f42104c4853b371c669e18df' })), this.caption.trim() &&
|
72
|
+
h("div", { key: '946fe774c7cf3f9642447b9a8cb0e258d3f9d493', class: 'group__caption' }, h("ifx-icon", { key: '39f21a9eae4961da05f38d6930bcc373671e9794', icon: 'cinfo16' }), " ", this.caption.trim())));
|
73
73
|
}
|
74
74
|
componentDidRender() {
|
75
75
|
this.setSegmentSize();
|
@@ -7044,9 +7044,9 @@ const Choices = class {
|
|
7044
7044
|
// destroy choices element to restore previous dom structure
|
7045
7045
|
// so vdom can replace the element correctly
|
7046
7046
|
this.destroy();
|
7047
|
-
return (h("div", { key: '
|
7047
|
+
return (h("div", { key: '9f22a991b500016c41a63d7aa46fff087227f90b', class: `ifx-select-container` }, this.label ? (h("div", { class: "ifx-label-wrapper" }, h("span", null, this.label))) : null, h("div", { key: '259b6f62d0e5c60ea8fa11734fda41f969555a96', class: `${choicesWrapperClass}
|
7048
7048
|
${this.disabled ? 'disabled' : ''}
|
7049
|
-
${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: '
|
7049
|
+
${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: '9358b42323bf7828676c6423c89fb5179b8e4651', class: 'single__select-input-field', disabled: this.disabled }, attributes, { "data-trigger": true, onChange: () => this.handleChange() }), this.createSelectOptions(this.options)), h("div", { key: 'f1d7ce031e84ca4c55c1b2228c7cf2501cf8c78d', class: "single__select-icon-container" }, this.optionIsSelected && (h("div", { key: '3e72d6ecf1d7a5649baa99131ac76a1287678293', class: "ifx-choices__icon-wrapper-delete" }, h("ifx-icon", { key: '7e0e78337c13e780c3c3ee80b5252fd35dd103e0', icon: "cremove16", onClick: () => this.handleDeleteSelection() }))), h("div", { key: '8037dfe8733b35760da9fba0d63886c5086819b9', class: "ifx-choices__icon-wrapper-up" }, h("ifx-icon", { key: "icon-up", icon: "chevronup-16" })), h("div", { key: 'd3d78aec55206c83b2cf81c5d43a6bf8f4a3c37f', class: "ifx-choices__icon-wrapper-down" }, h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" })))), this.error ? (h("div", { class: "ifx-error-message-wrapper" }, h("span", null, this.errorMessage))) : null));
|
7050
7050
|
}
|
7051
7051
|
toggleDropdown() {
|
7052
7052
|
const div = this.root.querySelector('.ifx-choices__wrapper');
|
@@ -142,10 +142,10 @@ const IfxSlider = class {
|
|
142
142
|
this.updateValuePercent();
|
143
143
|
}
|
144
144
|
render() {
|
145
|
-
return (h("div", { key: '
|
145
|
+
return (h("div", { key: '3a43035d99bb5ae166d215994ba35dcc0a72f800', class: "ifx-slider" }, this.leftText && (h("span", { key: 'b5b672dd97b5fbe71f4e23ac0f35311fb4014112', class: `left-text` }, this.leftText)), this.leftIcon && (h("ifx-icon", { key: '1b167231afc1aba9165c7b0e340ba692ffb3ec04', icon: this.leftIcon, class: `left-icon${this.disabled ? ' disabled' : ''}` })), (this.type !== 'double') ?
|
146
146
|
h("input", { type: "range", min: this.min, max: this.max, step: this.step, value: this.internalValue, disabled: this.disabled, ref: (el) => (this.inputRef = el), onInput: (event) => this.handleInputChange(event), "aria-label": 'a slider', "aria-value": this.value, "aria-disabled": this.disabled })
|
147
147
|
:
|
148
|
-
h("div", { class: 'range-slider__wrapper', "aria-label": 'a range slider', "aria-value": this.value, "aria-disabled": this.disabled }, h("input", { id: 'min-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMinValue, disabled: this.disabled, ref: (el) => (this.minInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) }), h("input", { id: 'max-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMaxValue, disabled: this.disabled, ref: (el) => (this.maxInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) })), this.rightIcon && (h("ifx-icon", { key: '
|
148
|
+
h("div", { class: 'range-slider__wrapper', "aria-label": 'a range slider', "aria-value": this.value, "aria-disabled": this.disabled }, h("input", { id: 'min-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMinValue, disabled: this.disabled, ref: (el) => (this.minInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) }), h("input", { id: 'max-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMaxValue, disabled: this.disabled, ref: (el) => (this.maxInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event) })), this.rightIcon && (h("ifx-icon", { key: '7b199e3e1024289bfde3e200c3b03b1a7600f7fd', icon: this.rightIcon, class: `right-icon${this.disabled ? ' disabled' : ''}` })), this.rightText && (h("span", { key: 'a77ecafe2e47167c7014fdf5aa710d59cfc18659', class: `right-text${this.disabled ? ' disabled' : ''}` }, this.rightText)), this.showPercentage && (this.type !== "double") && (h("span", { key: '344dd484214e0a5cbd4a530cfaec229f90dc7e7a', class: `percentage-display${this.disabled ? ' disabled' : ''}` }, this.percentage, "%"))));
|
149
149
|
}
|
150
150
|
get el() { return getElement(this); }
|
151
151
|
static get watchers() { return {
|
@@ -10,8 +10,8 @@ const Spinner = class {
|
|
10
10
|
this.inverted = false;
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return (h("div", { key: '
|
14
|
-
&& h("div", { key: '
|
13
|
+
return (h("div", { key: 'd81d2a7692cb71c15f4aa895abcdf0d4441d2b3a', "aria-label": "spinner indicating a loading process", class: this.getClassNames() }, h("div", { key: '7813885c276e55354c47f2ff735a16f498b1e39f', class: `${this.variant !== 'brand' ? 'border' : ""} ${this.inverted ? 'inverted' : ""}` }), this.variant === 'brand'
|
14
|
+
&& h("div", { key: 'c4163967c2a5f58795ac974716cc4e831ec6264b', class: `semiconductor ${this.inverted ? 'inverted' : ""} ${this.getSizeClass()}` }, h("svg", { key: '0feafe9cdf7cfa8138a1d104824c8e5dff1b3caf', width: '40', height: '40', viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: 'ca3cdd02b91de714c12e1d2d6ad800fee938ac03', id: "spinner/conductor" }, h("path", { key: 'aedaa84532c0c51f8e0a7a8683fb7c24379b73a8', id: "Vector", d: "M38.75 18.75C39.4375 18.75 40 19.3125 40 20C40 20.6875 39.4409 21.25 38.75 21.25H35V26.25H38.75C39.4375 26.25 40 26.8125 40 27.5C40 28.1875 39.4409 28.75 38.75 28.75H35V30C35 32.7617 32.7617 35 30 35H28.75V38.75C28.75 39.4409 28.1875 40 27.5 40C26.8125 40 26.25 39.4409 26.25 38.75V35H21.25V38.75C21.25 39.4409 20.6875 40 20 40C19.3125 40 18.75 39.4409 18.75 38.75V35H13.75V38.75C13.75 39.4409 13.1875 40 12.5 40C11.8125 40 11.25 39.4409 11.25 38.75V35H10C7.23828 35 5 32.7617 5 30V28.75H1.25C0.559062 28.75 0 28.1875 0 27.5C0 26.8125 0.559062 26.25 1.25 26.25H5V21.25H1.25C0.559062 21.25 0 20.6875 0 20C0 19.3125 0.559062 18.75 1.25 18.75H5V13.75H1.25C0.559062 13.75 0 13.1875 0 12.5C0 11.8125 0.559062 11.25 1.25 11.25H5V10C5 7.23828 7.23828 5 10 5H11.25V1.25C11.25 0.5625 11.8125 0 12.5 0C13.1875 0 13.75 0.559063 13.75 1.25V5H18.75V1.25C18.75 0.559063 19.3091 0 20 0C20.6909 0 21.25 0.559063 21.25 1.25V5H26.25V1.25C26.25 0.559063 26.8091 0 27.5 0C28.1909 0 28.75 0.559063 28.75 1.25V5H30C32.7617 5 35 7.23828 35 10V11.25H38.75C39.4409 11.25 40 11.8091 40 12.5C40 13.1909 39.4409 13.75 38.75 13.75H35V18.75H38.75ZM32.5 10C32.5 8.62188 31.3781 7.5 30 7.5H10C8.62187 7.5 7.5 8.62188 7.5 10V30C7.5 31.3781 8.62187 32.5 10 32.5H30C31.3781 32.5 32.5 31.3781 32.5 30V10Z" }))))));
|
15
15
|
}
|
16
16
|
getSizeClass() {
|
17
17
|
return `${this.size}` === "s"
|
@@ -75,12 +75,12 @@ const TextField = class {
|
|
75
75
|
this.internals.setFormValue("");
|
76
76
|
}
|
77
77
|
render() {
|
78
|
-
return (h("div", { key: '
|
78
|
+
return (h("div", { key: '3569c6a5a0a23d5a04c2f87488bbc70b8d65b7e9', "aria-label": "a text field for user input", "aria-value": this.value, "aria-disabled": this.disabled, class: `textInput__container ${this.disabled ? 'disabled' : ""}` }, h("div", { key: '4a82c26a9a3ef86efa6d00bf903b121559844575', class: "textInput__top-wrapper" }, h("label", { key: 'cd5b5c574b857dfd4729db81a2c50ec3893398aa', htmlFor: "text-field" }, h("slot", { key: '5752e421626ad179a3f7562c5e99d549cd4b2a48' }), this.optional && this.required ? (h("span", { class: "optional-required" }, "(optional) *")) : this.optional ? (h("span", { class: "optional" }, "(optional)")) : this.required ? (h("span", { class: `required ${this.error ? 'error' : ""}` }, "*")) : null)), h("div", { key: '007dccc58661b185896b08ac896faf49848de347', class: "textInput__bottom-wrapper" }, h("div", { key: '87137bf9fc7d33242c15be5ce687e029e5a25e07', class: "input-container" }, this.icon && (h("ifx-icon", { key: 'cf3edf3e3b344a40a14d104c93270f4d08842281', class: 'input-icon', icon: this.icon })), h("input", { key: '930c56a46d53e729c034e6bbaf5cc72aadfaf655', ref: (el) => (this.inputElement = el), disabled: this.disabled, type: "text", id: 'text-field', value: this.value, onInput: () => this.handleInput(), placeholder: this.placeholder, maxlength: this.maxlength, class: `${this.icon ? 'icon' : ""}
|
79
79
|
${this.error ? 'error' : ""}
|
80
80
|
${this.size === "s" ? "input-s" : ""}
|
81
|
-
${this.success ? "success" : ""}` }), (this.showDeleteIcon && this.value) && (h("ifx-icon", { key: '
|
82
|
-
h("div", { key: '
|
83
|
-
h("div", { key: '
|
81
|
+
${this.success ? "success" : ""}` }), (this.showDeleteIcon && this.value) && (h("ifx-icon", { key: 'b850a3fdb13eab973c97cbfb59a029c5fdbe7ed3', class: "delete-icon", icon: "cremove16", onClick: () => this.handleDeleteContent() }))), this.caption && !this.error &&
|
82
|
+
h("div", { key: '384215f67bc0393452dd1fa0fba91bd48ebc7e2a', class: `textInput__bottom-wrapper-caption ${this.disabled} ? disabled : ""` }, this.caption), this.error &&
|
83
|
+
h("div", { key: 'ebe4a71136aa5e282ffae576aa191d5099383a34', class: "textInput__bottom-wrapper-caption error" }, this.caption))));
|
84
84
|
}
|
85
85
|
static get formAssociated() { return true; }
|
86
86
|
get el() { return getElement(this); }
|
@@ -13,7 +13,7 @@ const Status = class {
|
|
13
13
|
var _a;
|
14
14
|
const effectiveColor = ((_a = this.color) === null || _a === void 0 ? void 0 : _a.trim()) ? this.color : 'orange-500';
|
15
15
|
const containerClass = this.border ? `container border-${effectiveColor}` : 'container no-border';
|
16
|
-
return (h("div", { key: '
|
16
|
+
return (h("div", { key: 'd6594837b2884bfcb3aa73a47f335a240c6567b2', "aria-label": "a status indicator", "aria-value": this.label, class: containerClass }, h("span", { key: 'ebb8c7eaeb4a951ade8568b5fa08ba479e2f614d', class: `dot ${effectiveColor}` }), h("p", { key: '3061c0fa17b6f1f4895f43e627496c3469976191', class: "text" }, this.label)));
|
17
17
|
}
|
18
18
|
};
|
19
19
|
Status.style = IfxStatusStyle0;
|
@@ -47,7 +47,7 @@ const Step = class {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
render() {
|
50
|
-
return (h("div", { key: '
|
50
|
+
return (h("div", { key: 'cbee70d7f0f5c76a09d48423566bc3d485cd929a', "aria-current": this.active ? 'step' : false, "aria-disabled": this.active || this.complete ? false : true, onClick: (e) => this.stopOnClickPropogation(e), class: `step-wrapper ${this.stepId === 1 ? 'first-step' : ''}
|
51
51
|
${this.error ? 'error' : ''}
|
52
52
|
${this.stepperState.variant}
|
53
53
|
${this.complete ? 'complete' : ''}
|
@@ -55,11 +55,11 @@ const Step = class {
|
|
55
55
|
indicator-${this.stepperState.indicatorPosition}
|
56
56
|
${this.active ? 'active' : ''}
|
57
57
|
${this.clickable ? 'clickable' : ''}
|
58
|
-
${this.disabled ? 'disabled' : ''}` }, h("div", { key: '
|
59
|
-
h("div", { key: '
|
58
|
+
${this.disabled ? 'disabled' : ''}` }, h("div", { key: 'fee2738c8478680320ec50c53a92d6e7b92a86e3', class: 'step-icon-wrapper' }, this.stepperState.variant !== 'compact' && h("span", { key: '96aa1a741cd013b6ae17f32de2725c368ea51618', class: 'step-connector-l' }), (this.stepperState.variant !== 'compact' && (!this.error || (this.error && this.active))) &&
|
59
|
+
h("div", { key: 'c9c696ac8898befd165fed334c36e7f77c91aa4f', class: 'step-icon' }, (this.stepperState.showStepNumber && !this.complete && !this.active) ? this.stepId : '', (this.complete && !this.active) && h("ifx-icon", { key: '98ff6e603c94aa1a57c5f8491dcf2a17cd4a4864', icon: 'check16' }), this.active && h("span", { key: '2fc5ce8a43ef62ecae07fbf25688af0b629b8e6d', class: 'active-indic' })), (this.stepperState.variant !== 'compact' && this.error && !this.active) && h("ifx-icon", { key: '72db4eb91a114022e470d14e035c1ff4364f6f00', icon: 'warningf24' }), this.stepperState.variant !== 'compact' && h("span", { key: '0a215fa7c2df964b4743f0fb0b16652b92003bfa', class: `step-connector-r ${this.active ? 'active' : ''}` })),
|
60
60
|
/* Step labels */
|
61
61
|
(this.stepperState.variant !== 'compact' || (this.stepperState.variant === 'compact' && (this.active || this.stepId === this.stepperState.activeStep + 1))) &&
|
62
|
-
h("div", { key: '
|
62
|
+
h("div", { key: '9b77faa804a42714b79535bfe530854c68ca6372', tabIndex: !this.disabled && this.complete && !this.active ? 0 : -1, class: `step-label ${this.stepperState.variant === 'compact' ? (this.active ? 'curr-label' : 'next-label') : ''}`, onClick: () => { this.handleStepClick(); }, onKeyDown: (e) => { this.handleStepKeyDown(e); } }, (this.stepperState.variant !== 'compact') && h("slot", { key: 'a84af39da90db9e59e3b614f63de9802161a0e51' }), this.stepperState.variant === 'compact' && !this.active ? 'Next: ' : '', this.stepperState.variant === 'compact' && h("slot", { key: 'bdfaff2aed9faf5503fb89b7e2105c48d721dbe2' }))));
|
63
63
|
}
|
64
64
|
;
|
65
65
|
static get watchers() { return {
|
@@ -122,10 +122,10 @@ const Stepper = class {
|
|
122
122
|
this.syncIfxSteps();
|
123
123
|
}
|
124
124
|
render() {
|
125
|
-
return (h("div", { key: '
|
125
|
+
return (h("div", { key: 'c7e51b5fe17beb80cac38fe0da1600f44b4ca111', "aria-label": 'a stepper', role: 'navigation', class: `stepper ${(this.variant !== 'compact' && this.variant !== 'vertical') ? 'default' : this.variant} ${this.variant === 'compact' ? 'compact-' + this.indicatorPosition : ''}` },
|
126
126
|
/* Progress bar for compact variant. */
|
127
127
|
(this.variant === 'compact') &&
|
128
|
-
h("div", { key: '
|
128
|
+
h("div", { key: '233c1234510997adab316ffb47e341c575036b95', class: 'stepper-progress' }, h("div", { key: '45c775b8727bac00e4c57a6e6e6129fe320e5a5b', class: 'progress-detail' }, `${Math.min(this.activeStep, this.stepsCount)} of ${this.stepsCount}`)), h("div", { key: '35ad66a86c1b1f6d008a232ae33944a3d7e122a6', class: `stepper-wrapper` }, h("slot", { key: '671a05ed6ce3927369e202f2a9218944bb6bb7cf' }))));
|
129
129
|
}
|
130
130
|
;
|
131
131
|
componentDidRender() {
|
@@ -76,7 +76,7 @@ const Switch = class {
|
|
76
76
|
this.internals.setFormValue(null);
|
77
77
|
}
|
78
78
|
render() {
|
79
|
-
return (h("div", { key: '
|
79
|
+
return (h("div", { key: '0481403a878470cdb42c03be663b88f19fe59c58', class: "container", role: "switch", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-label": this.name, onClick: () => this.toggleSwitch(), onKeyDown: (event) => this.handleKeyDown(event) }, h("div", { key: 'c84f8e06349d1ffa03efb077e64881b12c4ac640', class: `switch__checkbox-container ${this.internalChecked ? 'checked' : ''} ${this.disabled ? 'disabled' : ''}`, tabindex: "0" }, h("div", { key: '533ca85af87c3edff93c76aaa0860f997b107e67', class: "switch__checkbox-wrapper" }, h("input", { key: 'fd9a8c6442c321a81161645c7e84f1d03cae3002', type: "checkbox", hidden: true, name: this.name, disabled: this.disabled, checked: this.internalChecked, value: `${this.value}` }), h("div", { key: 'ad951898b5b38de29aff0be91f734d443399f050', class: `switch ${this.internalChecked ? 'checked' : ''} ${this.disabled ? 'disabled' : ''}` }))), h("div", { key: '14219d030661fed97b8210d67ec3794147884225', class: `switch__label-wrapper ${this.disabled ? 'disabled' : ''}` }, h("label", { key: '3892d20ad28a1f1823e8302e9820973df938ee70', htmlFor: "switch" }, h("slot", { key: 'e350367180975d30978ec7c7d026b34e86c79741', onSlotchange: () => this.toggleLabelGap() })))));
|
80
80
|
}
|
81
81
|
static get formAssociated() { return true; }
|
82
82
|
get el() { return getElement(this); }
|
@@ -14,7 +14,7 @@ const IfxTab = class {
|
|
14
14
|
this.tabHeaderChange.emit(this.header);
|
15
15
|
}
|
16
16
|
render() {
|
17
|
-
return h("slot", { key: '
|
17
|
+
return h("slot", { key: '845e795d2a758c1612b8601ea2eafab0385f02dc' });
|
18
18
|
}
|
19
19
|
get el() { return getElement(this); }
|
20
20
|
};
|
@@ -454,12 +454,12 @@ const Table = class {
|
|
454
454
|
};
|
455
455
|
}
|
456
456
|
const filterClass = this.filterOrientation === 'topbar' ? 'topbar-layout' : 'sidebar-layout';
|
457
|
-
return (h(Host, { key: '
|
457
|
+
return (h(Host, { key: 'ef6d50ee7b08b86a5534feed83df514f7de1ca6d' }, h("div", { key: 'c3d3184293fe3b7bb34ca87126f56acc5abe2812', class: "table-container" }, this.filterOrientation === 'sidebar' && (h("div", { key: 'f0cd79a6d7a912f629a170998f53575c047529df', class: "sidebar-btn" }, h("ifx-button", { key: 'd4ac7961a437f6e18628693e3dee32ff357326c0', type: "button", disabled: false, variant: "secondary", size: "m", target: "_blank", theme: "default", "full-width": "false", onClick: () => this.toggleSidebarFilters() }, h("ifx-icon", { key: 'a46b1fc02a4a7888ed02aa7b7599f2687bb43291', icon: "cross-12" }), this.showSidebarFilters ? 'Hide Filters' : 'Show Filters'))), h("div", { key: '6f76f786bb6d06f02cbd54735bf042adbf892ae8', class: filterClass }, this.filterOrientation === 'sidebar' && this.showSidebarFilters && (h("div", { key: 'bc5966d2c801c7a660949ede006c3b9e81d228dc', class: "sidebar-container" }, h("div", { key: '646d3a6b689bedac78db621b50ba49b3f235f590', class: "filters-title-container" }, h("span", { key: '75420b67f11bd70a7bf88f6733a960b3b12a0877', class: "filters-title" }, "Filters")), h("div", { key: '4a26a7e37038cc124c5602871e9ae3efd03ece38', class: "set-filter-wrapper-sidebar" }, (this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (h("slot", { key: 'b57db55a41c57f5421c5a1cf1f41e1a895d70752', name: "sidebar-filter" }))))), this.filterOrientation !== 'none' && this.filterOrientation !== 'sidebar' && (h("div", { key: 'd44dd84651cd5a88736adb2ee3b93105569ea621', class: "set-filter-wrapper-topbar" }, (this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (h("slot", { key: '75cd86d074b880b9227df048222e6e1f71444c5c', name: "topbar-filter" })))), h("div", { key: '22ce3434d5073daac916a81975347c2635ebface', class: "table-pagination-wrapper" }, h("div", { key: '9986934e5c38ef7801523ba32edc9bc96d28cf91', class: "filter-chips" }, this.filterOrientation !== 'none' && this.filterOrientation !== 'topbar' && this.showSidebarFilters && (Object.keys(this.currentFilters).map(name => {
|
458
458
|
const filter = this.currentFilters[name];
|
459
459
|
const filterValues = filter.filterValues;
|
460
460
|
const isMultiSelect = filter.type !== 'text';
|
461
461
|
return filterValues.length > 0 ? (h("ifx-chip", { placeholder: name, size: "large", variant: isMultiSelect ? "multi" : "single", readOnly: true, value: filterValues, key: name }, filterValues.map(filterValue => (h("ifx-chip-item", { value: filterValue, selected: true, key: filterValue }, filterValue))))) : null;
|
462
|
-
})), this.filterOrientation !== 'none' && this.filterOrientation === 'sidebar' && this.showSidebarFilters && Object.keys(this.currentFilters).length > 0 && (h("ifx-button", { key: '
|
462
|
+
})), this.filterOrientation !== 'none' && this.filterOrientation === 'sidebar' && this.showSidebarFilters && Object.keys(this.currentFilters).length > 0 && (h("ifx-button", { key: 'c4bfcc611183bac5a09d0b4abc50e072e22c8bad', type: "button", disabled: false, variant: "tertiary", size: "m", target: "_blank", theme: "default", "full-width": "false", onClick: () => this.handleResetButtonClick() }, h("ifx-icon", { key: 'a0a23f693e59bb22d4d6d70d3a7fe37c4da70c87', icon: "curved-arrow-left-16" }), "Reset all"))), this.filterOrientation !== 'none' && (h("div", { key: '2d8e228d37046165d08054ba76cd3888224e2567', class: "matching-results-container" }, h("span", { key: 'fa68665c33fa576c64fd3def0eb0d1a2be287458', class: "matching-results-count" }, this.matchingResultsCount), h("span", { key: '6ce30960e908bc45f4d9d61f008174035ebd0f73', class: "matching-results-text" }, "matching results"))), h("div", { key: 'e888428f6e43473ccc1b18ee0a75f49c750ec70e', id: "table-wrapper", class: this.getTableClassNames() }, h("div", { key: 'c01494f8e3648908326f65d914c91a3a071f8c8d', id: `ifxTable-${this.uniqueKey}`, class: 'ifx-ag-grid', style: style, ref: (el) => this.container = el })), this.pagination ? h("ifx-pagination", { total: this.allRowData.length, "current-page": this.currentPage, "items-per-page": '[{"value":"ten","label":"10","selected":true}, {"value":"Twenty","label":"20","selected":false}, {"value":"Thirty","label":"30","selected":false}]' }) : null)))));
|
463
463
|
}
|
464
464
|
hasButtonCol() {
|
465
465
|
return this.getColData().some(column => column.field === 'button');
|
@@ -197,9 +197,9 @@ const IfxTabs = class {
|
|
197
197
|
}
|
198
198
|
render() {
|
199
199
|
var _a;
|
200
|
-
return (h("div", { key: '
|
200
|
+
return (h("div", { key: 'd4e05ff054e60c53638ed293d85986b20a831f9c', "aria-label": "navigation tabs", class: `tabs ${this.internalOrientation}` }, h("ul", { key: '6815e7449952ed21744ffe024d356bbd1e1ebc8a', role: "tablist", class: "tabs-list" }, (_a = this.tabObjects) === null || _a === void 0 ? void 0 :
|
201
201
|
_a.map((tab, index) => (h("li", { class: this.getTabItemClass(index), ref: (el) => (this.tabHeaderRefs[index] = el), onMouseDown: (event) => event.preventDefault(), onClick: () => this.handleClick(tab, index), "aria-selected": index === this.internalActiveTabIndex ? 'true' : 'false', "aria-disabled": tab.disabled ? 'true' : 'false', role: "tab" }, (tab === null || tab === void 0 ? void 0 : tab.icon) ? h("ifx-icon", { icon: tab.icon }) : '', tab === null || tab === void 0 ? void 0 :
|
202
|
-
tab.header))), h("div", { key: '
|
202
|
+
tab.header))), h("div", { key: '77b59e1fca18afe592610a35a26569538851b2b1', class: "active-border" })), h("div", { key: '89c6c472aee1a525e8be3a7d19008b372300b06c', class: "tab-content" }, Array.from(this.tabObjects).map((_, index) => (h("div", { style: { display: index === this.internalActiveTabIndex ? 'block' : 'none' } }, h("slot", { name: `tab-${index}` })))))));
|
203
203
|
}
|
204
204
|
get el() { return getElement(this); }
|
205
205
|
static get watchers() { return {
|
@@ -8,7 +8,7 @@ const Tag = class {
|
|
8
8
|
registerInstance(this, hostRef);
|
9
9
|
}
|
10
10
|
render() {
|
11
|
-
return (h("div", { key: '
|
11
|
+
return (h("div", { key: 'ebe5d8e2f3bc59ad1bdef92eb7e4fbc7a07f9c4c', "aria-label": "a tag", class: "container" }, this.icon && (h("ifx-icon", { key: 'accc8280c6248bb81a2d139e85da8a048329e917', icon: this.icon })), h("a", { key: '1282f2372cc961db61fefee89e2a21bf1a998537', href: "javascript:void(null);", class: "label-wrapper" }, h("p", { key: '76534734832475e44606e0fed6d3577802525d2f', class: "label" }, h("slot", { key: '6d422addc814889fc71d851bc2dc3ab65a7cb3e6' })))));
|
12
12
|
}
|
13
13
|
};
|
14
14
|
Tag.style = IfxTagStyle0;
|
@@ -45,7 +45,7 @@ const TemplatesUI = class {
|
|
45
45
|
alertWrapper.classList.remove('show');
|
46
46
|
}
|
47
47
|
render() {
|
48
|
-
return (h("div", { key: '
|
48
|
+
return (h("div", { key: '23e25649965f489853cb1ba784a53479e53847fb', class: 'templates__container' }, h("div", { key: '2eac1a1cba9d1f33fde04c0ea2589758efcafbd2', class: "back__btn-wrapper" }, h("ifx-icon-button", { key: '7244dba86edf6f82f77e621e412ccce4f2af38c2', onClick: () => this.filterTemplates(false), shape: "round", variant: "tertiary", icon: "arrow-left-16", target: "_blank", size: "m" }), h("div", { key: '58045bb50dbcc65ce2320277983f81a0f429f735', class: "alert__wrapper" }, h("ifx-alert", { key: '591a2adff63451c789490bfa086156099abce152', onClick: () => this.closeAlert(), "aria-live": "assertive", variant: "danger", icon: "c-info-24" }, "All fields are mandatory"))), h("h2", { key: 'f655cc87e64cfdc7a66b44e3e145a35ae594f66c', class: "templates__title" }, "Choose your template"), h("div", { key: '81019e69e74c00df6425ed113d0b3f9c657b96ef', class: "templates__wrapper" }, h("ifx-template", { key: '458caa648b5cfc03d821f1614659e10a17350eaa', name: 'template-01', thumbnail: this.tableTemplate }), h("ifx-template", { key: '33401929cfc91de74dc2f9c2a083c7c230c3b9c4', name: 'template-02', thumbnail: this.wizardTemplate }))));
|
49
49
|
}
|
50
50
|
static get assetsDirs() { return ["assets"]; }
|
51
51
|
get el() { return getElement(this); }
|
@@ -57,7 +57,7 @@ const TextArea = class {
|
|
57
57
|
}
|
58
58
|
render() {
|
59
59
|
var _a, _b;
|
60
|
-
return (h(Host, { key: '
|
60
|
+
return (h(Host, { key: 'f6dad1fd412d07775ede50165eee294a1bb527c7', class: `wrapper--${this.error ? 'error' : ''} wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: 'd9e433cf857369d09e9dc7b4439e4186f5c71dfa', class: 'wrapper__label', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()), h("div", { key: '9230ede30b10f47dc2868784e1bd5e41f6b1980c', class: 'wrapper__textarea' }, h("textarea", { key: '4499888b439a4f0d3e460e17ef6fb816178b6aeb', "aria-label": 'a textarea', "aria-value": this.value, "aria-disabled": this.disabled, id: this.inputId, style: { resize: this.resize }, name: this.name ? this.name : this.inputId, cols: this.cols, rows: this.rows, maxlength: this.maxlength, wrap: this.wrap, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, onInput: (e) => this.handleOnInput(e) })), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: '0a57adb212132a9afd51d60286c61d7df6707eb3', class: 'wrapper__caption' }, this.caption.trim()))));
|
61
61
|
}
|
62
62
|
static get formAssociated() { return true; }
|
63
63
|
get el() { return getElement(this); }
|
@@ -152,10 +152,10 @@ const Tooltip = class {
|
|
152
152
|
'tooltip-extended': true,
|
153
153
|
'visible': this.tooltipVisible,
|
154
154
|
};
|
155
|
-
return (h("div", { key: '
|
156
|
-
h("div", { key: '
|
157
|
-
h("div", { key: '
|
158
|
-
h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: '
|
155
|
+
return (h("div", { key: 'd1011613a465b3f6283965385fa58c0757d37b72', "aria-label": "a tooltip showing important information", "aria-value": this.header, class: "tooltip__container" }, h("slot", { key: '8ecdc7cfd8ace95c5201e5aef989fd5a2d690fb6' }), this.variant.toLowerCase() === 'dismissible' && h("div", { key: '4d855121ef44f72e920dafbe165fbbb28757e2fd', class: tooltipDismissible }, h("button", { key: '0e5459e6f90c3e966303e72c261002e8aae19e31', "aria-label": "Close Tooltip", class: "close-button", onClick: this.onDismissClick }, h("ifx-icon", { key: 'a7cee4fab2cfca1c88f8c5e5bdb55f10dbc77aa2', icon: "cross16" })), h("div", { key: '8d3c651b0fd3c9d74ce22edfe3dc7b21f065da54', class: "tooltip-dismissible-content" }, this.header && h("div", { key: '835731e8d02674197ed4e0ff479b0493fc4a89b4', class: "tooltip-dismissible-header" }, this.header), h("div", { key: 'ad5d1d9d66a05af968aadce2c85e0f51a54d19fc', class: "tooltip-dismissible-body" }, this.text)), h("svg", { key: 'ddd6f30d4e4e70e7eb00aaa8af172d00bd5a2000', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '9afaa9623221b73dbfc84197763ccf74a3f55044', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'compact' &&
|
156
|
+
h("div", { key: 'dce5e22d5cb05d2333cf5846f2c16f51a463423d', class: tooltipCompact }, this.text, h("svg", { key: 'd6cd8374b050b4c907aa9ab83fcf9e6b64468f3b', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'c3ae17c174a63d918614154ce424cb27a130fa7f', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'extended' &&
|
157
|
+
h("div", { key: '4c6b1a492d7950cb3441babbe74e2111bdbccb61', class: tooltipExtended }, h("slot", { key: '463bb3a005dba221542b3ba7ccd8c2a2e0ce8cd4', name: "icon" }, this.icon ? h("div", { class: "extended_icon" }, h("ifx-icon", { icon: this.icon })) :
|
158
|
+
h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: '8b513f1bb9d4a661570f00d8419a054827c81e2d', class: "tooltip-extended-content" }, this.header && h("div", { key: '13df155ca7f7182c5a4975f54e20bdee6845cc67', class: "tooltip-extended-header" }, this.header), h("div", { key: '20ff208b9337416c20561e9aff96b1ab54e69d9b', class: "tooltip-extended-body" }, this.text)), h("svg", { key: 'ba54cfd306135108839d9d8406fc7a2bde0f36ef', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'be0b68a7e3ccc70a0ab110bd2b847394c458bc23', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" })))));
|
159
159
|
}
|
160
160
|
get el() { return getElement(this); }
|
161
161
|
static get watchers() { return {
|
@@ -209,10 +209,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
209
209
|
return import(
|
210
210
|
/* webpackMode: "lazy" */
|
211
211
|
'./ifx-progress-bar.entry.js').then(processMod, consoleError);
|
212
|
-
case 'ifx-radio-button-group':
|
213
|
-
return import(
|
214
|
-
/* webpackMode: "lazy" */
|
215
|
-
'./ifx-radio-button-group.entry.js').then(processMod, consoleError);
|
216
212
|
case 'ifx-search-bar':
|
217
213
|
return import(
|
218
214
|
/* webpackMode: "lazy" */
|