@infineon/infineon-design-system-stencil 36.0.1--canary.1908.e3c942b5c279a59bb3e5438726fa057c76c21c04.0 → 36.0.1--canary.1908.cf3e1b7f585cf71f1fed0fcfa052b595e47b0b87.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-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-image.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card.cjs.entry.js +3 -3
- package/dist/cjs/ifx-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ifx-chip_3.cjs.entry.js +10 -10
- package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-content-switcher.cjs.entry.js +1 -1
- package/dist/cjs/ifx-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/ifx-download.cjs.entry.js +2 -2
- package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/ifx-dropdown.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card-headline/card-headline.js +1 -1
- package/dist/collection/components/card/card-image/card-image.js +1 -1
- package/dist/collection/components/card/card-links/card-links.js +1 -1
- package/dist/collection/components/card/card-overline/card-overline.js +1 -1
- package/dist/collection/components/card/card-text/card-text.js +1 -1
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/checkbox-group/checkbox-group.js +1 -1
- package/dist/collection/components/chip/chip-item/chip-item.js +2 -2
- package/dist/collection/components/chip/chip.js +8 -8
- package/dist/collection/components/content-switcher/content-switcher-item.js +1 -1
- package/dist/collection/components/content-switcher/content-switcher.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +2 -2
- package/dist/collection/components/download/download.js +2 -2
- package/dist/collection/components/dropdown/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown/dropdown-menu/dropdown-menu.js +2 -2
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/components/ifx-button.js +1 -1
- package/dist/components/ifx-card-headline.js +1 -1
- package/dist/components/ifx-card-image.js +1 -1
- package/dist/components/ifx-card-links.js +1 -1
- package/dist/components/ifx-card-overline.js +1 -1
- package/dist/components/ifx-card-text.js +1 -1
- package/dist/components/ifx-card.js +3 -3
- package/dist/components/ifx-checkbox-group.js +1 -1
- package/dist/components/ifx-checkbox.js +1 -1
- package/dist/components/ifx-chip-item.js +1 -1
- package/dist/components/ifx-chip.js +1 -1
- package/dist/components/ifx-content-switcher-item.js +1 -1
- package/dist/components/ifx-content-switcher.js +1 -1
- package/dist/components/ifx-date-picker.js +2 -2
- package/dist/components/ifx-download.js +2 -2
- package/dist/components/ifx-dropdown-header.js +1 -1
- package/dist/components/ifx-dropdown-item.js +1 -1
- package/dist/components/ifx-dropdown-menu.js +2 -2
- package/dist/components/ifx-dropdown-trigger-button.js +1 -1
- package/dist/components/ifx-dropdown.js +1 -1
- package/dist/components/ifx-file-upload.js +1 -1
- package/dist/components/ifx-filter-bar.js +1 -1
- package/dist/components/ifx-list-entry.js +1 -1
- package/dist/components/ifx-multiselect.js +1 -1
- package/dist/components/ifx-set-filter.js +2 -2
- package/dist/components/ifx-table.js +4 -4
- package/dist/components/ifx-template.js +1 -1
- package/dist/components/ifx-templates-ui.js +2 -2
- package/dist/components/ifx-tree-view-item.js +1 -1
- package/dist/components/{p-CLl4t7rZ.js → p-CKMlWS4y.js} +5 -5
- package/dist/components/{p-CLl4t7rZ.js.map → p-CKMlWS4y.js.map} +1 -1
- package/dist/components/{p-DykkHkWI.js → p-CNAVtXXJ.js} +10 -10
- package/dist/components/{p-DykkHkWI.js.map → p-CNAVtXXJ.js.map} +1 -1
- package/dist/components/{p-CuJ0NwEB.js → p-CXa8Tzh0.js} +3 -3
- package/dist/components/{p-CuJ0NwEB.js.map → p-CXa8Tzh0.js.map} +1 -1
- package/dist/components/{p-BR9AF1o9.js → p-Dc5Rpizx.js} +5 -5
- package/dist/components/{p-BR9AF1o9.js.map → p-Dc5Rpizx.js.map} +1 -1
- package/dist/components/{p-BmU6FwNP.js → p-K2fu0fjV.js} +3 -3
- package/dist/components/{p-BmU6FwNP.js.map → p-K2fu0fjV.js.map} +1 -1
- package/dist/components/{p-BUo2bsev.js → p-obWLuERw.js} +3 -3
- package/dist/components/{p-BUo2bsev.js.map → p-obWLuERw.js.map} +1 -1
- package/dist/esm/ifx-button.entry.js +1 -1
- package/dist/esm/ifx-card-headline.entry.js +1 -1
- package/dist/esm/ifx-card-image.entry.js +1 -1
- package/dist/esm/ifx-card-links.entry.js +1 -1
- package/dist/esm/ifx-card-overline.entry.js +1 -1
- package/dist/esm/ifx-card-text.entry.js +1 -1
- package/dist/esm/ifx-card.entry.js +3 -3
- package/dist/esm/ifx-checkbox-group.entry.js +1 -1
- package/dist/esm/ifx-checkbox.entry.js +3 -3
- package/dist/esm/ifx-chip_3.entry.js +10 -10
- package/dist/esm/ifx-content-switcher-item.entry.js +1 -1
- package/dist/esm/ifx-content-switcher.entry.js +1 -1
- package/dist/esm/ifx-date-picker.entry.js +2 -2
- package/dist/esm/ifx-download.entry.js +2 -2
- package/dist/esm/ifx-dropdown-header.entry.js +1 -1
- package/dist/esm/ifx-dropdown-item.entry.js +1 -1
- package/dist/esm/ifx-dropdown-menu.entry.js +2 -2
- package/dist/esm/ifx-dropdown.entry.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/{p-162c9cad.entry.js → p-0d9a8474.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-1762b7e8.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-e95b86a3.entry.js.map → p-1762b7e8.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-2188c61d.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-12326ae3.entry.js.map → p-2188c61d.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-b79533b1.entry.js → p-27eea810.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b0e0fae1.entry.js → p-339089cc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4246a172.entry.js → p-432ff38b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-632812bd.entry.js → p-442feeec.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d98964d3.entry.js → p-62bc3b08.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-695e15e8.entry.js → p-7c87477f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f4686671.entry.js → p-9e6b7a1f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-92f5ed69.entry.js → p-9ff8fd9e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-928dd73e.entry.js → p-a741bcb2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b6c9ce34.entry.js → p-ab7200d3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9d30d64a.entry.js → p-b2e69e17.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-c038f13a.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-f77323b0.entry.js.map → p-c038f13a.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-cd094cb0.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-5bb72419.entry.js → p-d96a6f41.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5c810fa9.entry.js → p-ed781699.entry.js} +2 -2
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/icon-button/icon-button.d.ts +1 -1
- package/package.json +1 -1
- package/dist/infineon-design-system-stencil/p-12326ae3.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7a93907f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e95b86a3.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-f77323b0.entry.js +0 -2
- /package/dist/infineon-design-system-stencil/{p-162c9cad.entry.js.map → p-0d9a8474.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b79533b1.entry.js.map → p-27eea810.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b0e0fae1.entry.js.map → p-339089cc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4246a172.entry.js.map → p-432ff38b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-632812bd.entry.js.map → p-442feeec.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d98964d3.entry.js.map → p-62bc3b08.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-695e15e8.entry.js.map → p-7c87477f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f4686671.entry.js.map → p-9e6b7a1f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-92f5ed69.entry.js.map → p-9ff8fd9e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-928dd73e.entry.js.map → p-a741bcb2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b6c9ce34.entry.js.map → p-ab7200d3.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9d30d64a.entry.js.map → p-b2e69e17.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7a93907f.entry.js.map → p-cd094cb0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5bb72419.entry.js.map → p-d96a6f41.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5c810fa9.entry.js.map → p-ed781699.entry.js.map} +0 -0
@@ -100,7 +100,7 @@ const Button = class {
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
render() {
|
103
|
-
return (index.h(index.Host, { key: '
|
103
|
+
return (index.h(index.Host, { key: 'd7b3a89dcd4240f3a44aa05346c9bce375476826' }, index.h("a", { key: '55374b7ac6ba50bc074042f49b0718be4c1442f1', role: this.href ? 'link' : 'button', tabIndex: this.disabled ? -1 : 0, ref: (el) => (this.focusableElement = el), class: this.getClassNames(), href: !this.disabled ? this.internalHref : undefined, target: this.target, onClick: this.handleClick, rel: this.target === '_blank' ? 'noopener noreferrer' : undefined, onFocus: (event) => this.handleFocus(event), "aria-disabled": this.disabled ? 'true' : null, "aria-describedby": this.theme === 'danger' ? 'Dangerous action' : undefined, "aria-label": this.ariaLabel || undefined }, index.h("slot", { key: 'ae683451c19f6eb433211d46913f6d8b279f987a' }))));
|
104
104
|
}
|
105
105
|
getVariantClass() {
|
106
106
|
return `${this.variant}` === "secondary"
|
@@ -23,7 +23,7 @@ const CardHeadline = class {
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
render() {
|
26
|
-
return (index.h("div", { key: '
|
26
|
+
return (index.h("div", { key: '47588e8b38e5eadd66a42a132b54e55b2aab2072', class: `card__headline-wrapper ${this.hasDesc ? 'withDesc' : ""}` }, index.h("div", { key: '21458ea6b7000ae25a6665b34bcefe685685d505', class: `card-headline ${this.direction}` }, index.h("slot", { key: '5867b5fadc6f8da67d4123aa4cfdb968dca9ea51' }))));
|
27
27
|
}
|
28
28
|
get el() { return index.getElement(this); }
|
29
29
|
};
|
@@ -19,7 +19,7 @@ const CardImage = class {
|
|
19
19
|
this.handlePosition(this.position);
|
20
20
|
}
|
21
21
|
render() {
|
22
|
-
return (index.h("img", { key: '
|
22
|
+
return (index.h("img", { key: '78a305df396a6aa5a1bb5c4fcd58b327f946a60f', src: this.src, alt: this.alt, class: "card-image" }));
|
23
23
|
}
|
24
24
|
};
|
25
25
|
CardImage.style = cardImageCss;
|
@@ -9,7 +9,7 @@ const CardLinks = class {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return (index.h("div", { key: '
|
12
|
+
return (index.h("div", { key: '41e502507eeb40503dce46238ad0e2cd1dffeecc', class: 'container' }, index.h("slot", { key: 'ec074005fe54e49c6b6fb1ecaf12a2c1d0b6a626' })));
|
13
13
|
}
|
14
14
|
get el() { return index.getElement(this); }
|
15
15
|
};
|
@@ -9,7 +9,7 @@ const CardOverline = class {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return (index.h("div", { key: '
|
12
|
+
return (index.h("div", { key: '2e55a25825611cd059d62b8079faf8dce297a921', class: "card-overline" }, index.h("slot", { key: 'ff34f792d4f488c8de6bcb38a579a73cf3d4cadc' })));
|
13
13
|
}
|
14
14
|
};
|
15
15
|
CardOverline.style = cardOverlineCss;
|
@@ -16,7 +16,7 @@ const CardText = class {
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
render() {
|
19
|
-
return (index.h("div", { key: '
|
19
|
+
return (index.h("div", { key: 'd3ddbfaaa3b99504f89bc8e0e0dc32c50309f5d0', class: `card__text-wrapper ${this.hasBtn ? 'hasBtn' : ""}` }, index.h("div", { key: '1d3c8311a5100e6c85c99c64a82de5520d11e61f', class: `card-text` }, index.h("slot", { key: '73182b12dab027838499e75c72026e8d6f311b0c' }))));
|
20
20
|
}
|
21
21
|
get el() { return index.getElement(this); }
|
22
22
|
};
|
@@ -44,12 +44,12 @@ const Card = class {
|
|
44
44
|
this.handleComponentAdjustment();
|
45
45
|
}
|
46
46
|
render() {
|
47
|
-
return (index.h(index.Host, { key: '
|
47
|
+
return (index.h(index.Host, { key: '78369f8e134ac9a5be444a126e4f1c16cf326f72' }, index.h("div", { key: '11985e2318ed0a4a10901aa4105877b5b82f052e', "aria-label": this.ariaLabel, class: `card
|
48
48
|
${this.noBtns ? 'noBtns' : ""}
|
49
49
|
${this.direction}
|
50
50
|
${this.alignment}`, role: "region" }, this.direction === 'horizontal' &&
|
51
|
-
index.h("div", { key: '
|
52
|
-
index.h("div", { key: '
|
51
|
+
index.h("div", { key: 'a2953771fd2463dc22f61b2e0b2b74f0a72676e1', class: "horizontal" }, index.h("a", { key: '82e447ac989e6eb46da6537c6e8301d9cbc3f1fe', class: `card-img ${this.noImg ? 'noImage' : ""} ${this.internalHref ? 'card-href' : ''}`, href: this.internalHref }, index.h("slot", { key: '283b5316652ef266cd445f78fdc5b8e2714ed41e', name: "img" })), index.h("div", { key: 'bf364c4b4c85c815d274d70dc942b2eaf90c165d', class: 'lower__body-wrapper' }, index.h("a", { key: '9cf2b564ac56722a7c69132f09c2a91d74ff49eb', class: `upper-body ${this.internalHref ? 'card-href' : ''}`, href: this.internalHref }, index.h("slot", { key: '125d8b4ca59767385f3a84b5f43eaf00243b2ba6' })), index.h("div", { key: '48c5e246e17d842774d4de81c702675a6e7ffbfd' }, index.h("slot", { key: 'ec3b46c05b98ee9a45abde934cac6e91430e795f', name: 'buttons' })))), this.direction === 'vertical' &&
|
52
|
+
index.h("div", { key: '27bd695057b5c26376543f60945a11c8deb60e6a', class: "vertical" }, index.h("a", { key: '80f3f8ca47ad5b40ad5ec82ce4361a49ae3b38ad', class: `upper__body-wrapper ${this.internalHref ? 'card-href' : ''}`, href: this.internalHref, target: this.target }, index.h("div", { key: '8cad328c4d52256a52f5ab7c3b3d67c2f894ae13', class: `card-img ${this.noImg ? 'noImage' : ""}` }, index.h("slot", { key: '26d9ec8597f719881e6172fbfcb4ac4bf2886855', name: "img" })), index.h("div", { key: '634db847244c2ec83e5ef8795eb5103a7019157b', class: 'upper-body' }, index.h("slot", { key: 'f6a14b70ef7e679592e1481811125e5917d0924c' }))), index.h("div", { key: 'b61fbc4ae5f0e1d6275bb0f89ce0a9123368bb17', class: 'lower__body-wrapper' }, index.h("slot", { key: 'a1b5a9f6a08b440279306f2e722146021016c3cd', name: 'buttons' }))))));
|
53
53
|
}
|
54
54
|
get el() { return index.getElement(this); }
|
55
55
|
};
|
@@ -46,7 +46,7 @@ const CheckboxGroup = class {
|
|
46
46
|
this.hasErrors = Array.from(this.errorStates.values()).some((error) => error);
|
47
47
|
}
|
48
48
|
render() {
|
49
|
-
return (index.h("div", { key: '
|
49
|
+
return (index.h("div", { key: '0e1e1ee2ac0c55bf19f7a5fef5a667c49fc6bb0b', class: 'checkbox-group-container' }, this.showGroupLabel ? index.h("div", { class: 'group-label' }, this.groupLabelText, " *") : '', index.h("div", { key: '580f2958a972d42bc3f1fb38928fc53c65a45db1', class: `checkbox-group ${this.alignment} ${this.size}` }, index.h("slot", { key: '6e55a282d938a88a89f5653a604eb155307cfb3a', onSlotchange: this.handleSlotChange })), this.showCaption ? (index.h("div", { class: `caption ${this.hasErrors ? 'error' : 'default'}` }, this.showCaptionIcon ? index.h("div", { class: 'caption-icon' }, index.h("ifx-icon", { icon: "c-info-16" })) : '', index.h("div", { class: 'caption-text' }, this.captionText))) : ''));
|
50
50
|
}
|
51
51
|
static get formAssociated() { return true; }
|
52
52
|
get el() { return index.getElement(this); }
|
@@ -106,12 +106,12 @@ const Checkbox = class {
|
|
106
106
|
if (slot) {
|
107
107
|
hasSlot = true;
|
108
108
|
}
|
109
|
-
return (index.h("div", { key: '
|
109
|
+
return (index.h("div", { key: '149f6a9d6f3f1fbe0ed93d38484d9a7f28a05b7f', class: "checkbox__container" }, index.h("input", { key: '1d33a9ee96aa05071affc0a615d13556614b2c0e', type: "checkbox", hidden: true, ref: (el) => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleCheckbox.bind(this), id: 'checkbox', value: `${this.value}`, disabled: this.disabled ? true : undefined }), index.h("div", { key: 'e8f8c6530a21c653b7653cc91270b06a26d7b942', tabindex: "0", onClick: this.handleCheckbox.bind(this), onKeyDown: this.handleKeydown.bind(this), role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : this.internalChecked.toString(), "aria-disabled": this.disabled, "aria-labelledby": "label", class: `checkbox__wrapper
|
110
110
|
${this.getCheckedClassName()}
|
111
111
|
${this.size === "m" ? "checkbox-m" : ""}
|
112
112
|
${this.indeterminate ? 'indeterminate' : ""}
|
113
|
-
${this.disabled ? 'disabled' : ""}` }, this.internalChecked && !this.internalIndeterminate && index.h("ifx-icon", { key: '
|
114
|
-
index.h("div", { key: '
|
113
|
+
${this.disabled ? 'disabled' : ""}` }, this.internalChecked && !this.internalIndeterminate && index.h("ifx-icon", { key: 'aed8151d75e835576bf55ff1cc352e0d94488e3c', icon: "check-16", "aria-hidden": "true" })), hasSlot &&
|
114
|
+
index.h("div", { key: '1dc78c4309ffeb565d4ad53c676c62c38fa38413', id: "label", class: `label ${this.size === "m" ? "label-m" : ""} ${this.disabled ? 'disabled' : ""} `, onClick: this.handleCheckbox.bind(this) }, index.h("slot", { key: '15efbaff9fe6791627e0c8f6df987433ea0bb97b' }))));
|
115
115
|
}
|
116
116
|
static get formAssociated() { return true; }
|
117
117
|
get el() { return index.getElement(this); }
|
@@ -262,17 +262,17 @@ const Chip = class {
|
|
262
262
|
this.syncSelectedOptionsWithProp(this.value);
|
263
263
|
}
|
264
264
|
render() {
|
265
|
-
return (index.h("div", { key: '
|
265
|
+
return (index.h("div", { key: '637a568cd29e50b18f38f62a48777d7c54fbffa6', class: 'chip' }, index.h("div", { key: '3a6468c99f576279dd883082ed70afa42e64c7dc', class: `chip__wrapper chip__wrapper--${this.size === 'small' ? 'small' : 'large'}
|
266
266
|
chip__wrapper--${this.variant === 'multi' ? 'multi' : 'single'}
|
267
267
|
${this.opened && !this.readOnly ? 'chip__wrapper--opened' : ''}
|
268
|
-
${this.selectedOptions.length ? 'chip__wrapper--selected' : ''}`, tabIndex: 0, onClick: !this.readOnly ? () => { this.handleWrapperClick(); } : undefined, role: 'combobox', "aria-label": this.ariaLabel, "aria-value": this.getSelectedOptions(), "aria-haspopup": !this.readOnly ? 'listbox' : undefined, "aria-expanded": !this.readOnly ? this.opened.toString() : undefined, "aria-controls": !this.readOnly ? 'dropdown' : undefined, "aria-readonly": this.readOnly ? 'true' : undefined, "aria-multiselectable": this.variant === 'multi' ? 'true' : undefined }, index.h("div", { key: '
|
268
|
+
${this.selectedOptions.length ? 'chip__wrapper--selected' : ''}`, tabIndex: 0, onClick: !this.readOnly ? () => { this.handleWrapperClick(); } : undefined, role: 'combobox', "aria-label": this.ariaLabel, "aria-value": this.getSelectedOptions(), "aria-haspopup": !this.readOnly ? 'listbox' : undefined, "aria-expanded": !this.readOnly ? this.opened.toString() : undefined, "aria-controls": !this.readOnly ? 'dropdown' : undefined, "aria-readonly": this.readOnly ? 'true' : undefined, "aria-multiselectable": this.variant === 'multi' ? 'true' : undefined }, index.h("div", { key: '22ea9cf50a3e77f19116e64e51365a8bea48dd24', class: 'wrapper__label' }, (this.selectedOptions.length === 0) && `${this.placeholder}`, (this.selectedOptions.length !== 0 && (this.variant === 'multi' || this.readOnly) && this.placeholder !== '') &&
|
269
269
|
`${this.placeholder}:`, (this.selectedOptions.length !== 0) &&
|
270
|
-
index.h("div", { key: '
|
271
|
-
index.h("ifx-indicator", { key: '
|
272
|
-
index.h("div", { key: '
|
273
|
-
index.h("div", { key: '
|
274
|
-
index.h("div", { key: '
|
275
|
-
index.h("div", { key: '
|
270
|
+
index.h("div", { key: '778190ebe5bd68caf5594c8a9520a5cf52764cb5', class: 'label__selected-options' }, this.getSelectedOptions()), (this.selectedOptions.length > 2 && this.variant === 'multi') &&
|
271
|
+
index.h("ifx-indicator", { key: 'f8d961b9354940ab2dda4677539d64e858227551', variant: 'number', number: this.selectedOptions.length - 2 })), !this.readOnly && (this.variant !== 'multi' || (this.variant === 'multi' && this.selectedOptions.length === 0)) &&
|
272
|
+
index.h("div", { key: '349831d4e87ace96e02493456b6bc3d6dc3b779d', class: 'wrapper__open-button' }, index.h("ifx-icon", { key: 1, icon: `chevron-down-16` })), (this.variant !== 'multi' && this.readOnly !== false && this.selectedOptions.length > 0) &&
|
273
|
+
index.h("div", { key: 'dec4500f0204fa9f992c12369b85e9f65778a4a7', class: 'wrapper__unselect-button', onClick: (e) => { this.handleUnselectButtonClick(e); } }, index.h("ifx-icon", { key: 2, icon: `cross16` })), ((this.selectedOptions.length >= 1) && this.variant === 'multi') &&
|
274
|
+
index.h("div", { key: '58084d5bfac1199339c2a48ea5eeb331556adfc9', class: 'wrapper__unselect-button', onClick: (e) => { this.handleUnselectButtonClick(e); } }, index.h("ifx-icon", { key: 2, icon: `cross16` }))), this.opened && !this.readOnly &&
|
275
|
+
index.h("div", { key: 'ee77eb0d1345c1d14a3ae79751c34fe2449e7288', id: 'dropdown', role: 'listbox', class: 'chip__dropdown' }, index.h("slot", { key: '52c9433f93905262a10496a350a055d72d290ade' }))));
|
276
276
|
}
|
277
277
|
get chip() { return index.getElement(this); }
|
278
278
|
static get watchers() { return {
|
@@ -343,9 +343,9 @@ const ChipItem = class {
|
|
343
343
|
this.handleSelectedState();
|
344
344
|
}
|
345
345
|
render() {
|
346
|
-
return (index.h("div", { key: '
|
346
|
+
return (index.h("div", { key: '0feac58e2e7104e948633503bb6e1e41a7933963', class: `chip-item chip-item--${this.chipState.size}
|
347
347
|
chip-item--${(this.selected && this.chipState.variant) === 'single' ? 'selected' : ''}`, tabIndex: 0, onClick: () => { this.handleItemClick(); }, onKeyDown: (e) => { this.handleItemKeyDown(e); }, role: "option", "aria-selected": this.selected.toString() }, this.chipState.variant === 'multi' &&
|
348
|
-
index.h("ifx-checkbox", { key: '
|
348
|
+
index.h("ifx-checkbox", { key: '5bff8f27bda9843ffbad86fed014e6f5b1df3b9c', checked: this.selected, tabIndex: -1, size: 's' }), index.h("div", { key: 'e4ed1025410e1821e1549d8f29f7cc6c5ba57a2d', class: 'chip-item__label' }, " ", index.h("slot", { key: '541c9acff7c19e816f75cea1d17de319eefb8536' }), " "), index.h("div", { key: 'e5fc6f9e1d1e40bcc2ac591f2e550abcffa4cdad', class: 'chip-item__selected-indicator' }, index.h("ifx-icon", { key: '24c75f1d1eb8927d5193875aacda59ce9117e0df', icon: 'check-16' }, " "))));
|
349
349
|
}
|
350
350
|
get chipItem() { return index.getElement(this); }
|
351
351
|
static get watchers() { return {
|
@@ -10,7 +10,7 @@ const ContentSwitcherItem = class {
|
|
10
10
|
this.selected = false;
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return (index.h(index.Host, { key: '
|
13
|
+
return (index.h(index.Host, { key: 'b8dc41db465e008878deb175f09f334f1a5b4723' }, index.h("button", { key: 'e8bd11e7942d2b13e0f8c781724a88d2aa2c93c3', class: 'ifx-content-switcher-item' + (this.selected ? ' selected' : '') }, index.h("slot", { key: '22923a9ed26981d1f6d708a0fc4c60b02644ffff' }))));
|
14
14
|
}
|
15
15
|
};
|
16
16
|
ContentSwitcherItem.style = contentSwitcherItemCss;
|
@@ -157,7 +157,7 @@ const ContentSwitcher = class {
|
|
157
157
|
return this.items[index].getAttribute('value') || index.toLocaleString();
|
158
158
|
}
|
159
159
|
render() {
|
160
|
-
return (index.h(index.Host, { key: '
|
160
|
+
return (index.h(index.Host, { key: '1ead12dc6ed7c2eb6f372bfe04a45419233a0d7d' }, index.h("div", { key: 'e3f5b5051f91edae637b005f2c5820ea4695f04f', class: "ifx-content-switcher", role: "group" }, index.h("slot", { key: 'd45e3aed8934209c35ed230a4ce5d11f37a304f6' }))));
|
161
161
|
}
|
162
162
|
get el() { return index.getElement(this); }
|
163
163
|
};
|
@@ -100,8 +100,8 @@ const DatePicker = class {
|
|
100
100
|
}
|
101
101
|
render() {
|
102
102
|
var _a, _b;
|
103
|
-
return (index.h("div", { key: '
|
104
|
-
_a.trim(), index.h("span", { key: '
|
103
|
+
return (index.h("div", { key: '6de6b7ba329d65dd1f154d0eab1d74dfd7f346cb', class: `date__picker-container ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, index.h("label", { key: '32b1e8e8824ad9f505b66d81d85891b7930d49e1', class: 'label__wrapper', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
104
|
+
_a.trim(), index.h("span", { key: '9803a076232a7af6ca732526b3fd948268de84b6', class: `asterisk ${this.required ? 'required' : ""} ${this.error ? 'error' : ""}` }, "*")), index.h("div", { key: '1ffa98681899b3672a177d1d577f17b732aa5d67', class: `input__wrapper ${this.size === 'l' ? 'large' : 'small'} ${this.disabled ? 'disabled' : ''}` }, index.h("input", { key: 'a2b8b298f13e21c08664e04b84e1cd3129a4e722', type: this.type, autocomplete: this.autocomplete, class: `date__picker-input ${this.error ? 'error' : ""} ${this.success ? "success" : ""}`, disabled: this.disabled ? true : undefined, "aria-invalid": this.error ? true : undefined, "aria-label": this.ariaLabel, max: this.max, min: this.min, value: this.value, required: this.required, onChange: (e) => this.getDate(e) }), index.h("div", { key: '7e69c869e18d0397ae956906f088b0f1dcdaccec', class: "icon__wrapper", role: "button", onClick: () => this.handleInputFocusOnIconClick() }, index.h("ifx-icon", { key: '8748fde2f3a63c89de896cb04686339a907beaae', icon: 'calendar16', "aria-hidden": "true" }))), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (index.h("div", { key: 'b38f60b8e748b644c8d153ff4bb43853b85c22e9', class: 'caption__wrapper' }, this.caption.trim()))));
|
105
105
|
}
|
106
106
|
static get formAssociated() { return true; }
|
107
107
|
get el() { return index.getElement(this); }
|
@@ -17,7 +17,7 @@ const Download = class {
|
|
17
17
|
const fileName = `infineon-tokens.${this.tokens}`;
|
18
18
|
const sourceFile = fileMap[this.tokens];
|
19
19
|
const fileUrl = `https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-tokens/${sourceFile}`;
|
20
|
-
return (index.h("ifx-link", { key: '
|
20
|
+
return (index.h("ifx-link", { key: 'b290832f3e1e8edc05e409bb8c606cd3fccfca51', onClick: (e) => {
|
21
21
|
e.preventDefault();
|
22
22
|
fetch(fileUrl)
|
23
23
|
.then(res => res.blob())
|
@@ -27,7 +27,7 @@ const Download = class {
|
|
27
27
|
link.download = fileName;
|
28
28
|
link.click();
|
29
29
|
});
|
30
|
-
}, href: fileUrl, download: fileName, class: "download__wrapper", size: "m", variant: "bold" }, index.h("slot", { key: '
|
30
|
+
}, href: fileUrl, download: fileName, class: "download__wrapper", size: "m", variant: "bold" }, index.h("slot", { key: '4b42d276756903a8fbc44c5ab2cc1221a4591982' })));
|
31
31
|
}
|
32
32
|
};
|
33
33
|
Download.style = downloadCss;
|
@@ -9,7 +9,7 @@ const DropdownHeader = class {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return (index.h("div", { key: '
|
12
|
+
return (index.h("div", { key: 'bf3070867da1052a43e62eb7ae2cf92255929fe6', class: 'dropdown-header' }, index.h("span", { key: 'a3863497b2c3809cc3de61f00916cce34bbca402' }, index.h("slot", { key: '7aed6dfd2b675c52cbfdb83d0aadd69fd101b237' }))));
|
13
13
|
}
|
14
14
|
};
|
15
15
|
DropdownHeader.style = dropdownHeaderCss;
|
@@ -21,7 +21,7 @@ const DropdownItem = class {
|
|
21
21
|
}
|
22
22
|
render() {
|
23
23
|
let hrefAttr = this.href ? { href: this.href, target: this.target } : {};
|
24
|
-
return (index.h("a", Object.assign({ key: '
|
24
|
+
return (index.h("a", Object.assign({ key: 'c7b7bd06103652ae6fbededcb44dfea24647143a' }, hrefAttr, { onClick: () => this.handleEventEmission(), class: `dropdown-item ${this.size === 's' ? 'small' : ""} ${this.hide ? 'hide' : ""}` }), this.icon && index.h("ifx-icon", { key: '30905f5e873c10381da7aff35b3b69c451f00371', class: "icon", icon: this.icon }), index.h("span", { key: 'af4bd02d4eac4d31cc9237ef229dc6f2b2996971' }, index.h("slot", { key: '82719e39f672a3c6e6289ee8f681b49701f8c9c0' }))));
|
25
25
|
}
|
26
26
|
get el() { return index.getElement(this); }
|
27
27
|
};
|
@@ -50,10 +50,10 @@ const DropdownMenu = class {
|
|
50
50
|
this.hideTopPadding = false;
|
51
51
|
}
|
52
52
|
render() {
|
53
|
-
return (index.h("div", { key: '
|
53
|
+
return (index.h("div", { key: 'b5222d062a86989e49b0fb9a26eea515fee0290a', class: `dropdown-menu
|
54
54
|
${this.isOpen ? 'show' : ''}
|
55
55
|
${this.hideTopPadding ? 'hideTopPadding' : ""}
|
56
|
-
${this.size === 's' ? 'small' : ""}` }, index.h("slot", { key: '
|
56
|
+
${this.size === 's' ? 'small' : ""}` }, index.h("slot", { key: '5049f24687d23b4ab5a4bb084f3c0b2ef8044262' })));
|
57
57
|
}
|
58
58
|
get el() { return index.getElement(this); }
|
59
59
|
};
|
@@ -136,7 +136,7 @@ const Dropdown = class {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
render() {
|
139
|
-
return (index.h("div", { key: '
|
139
|
+
return (index.h("div", { key: '1b7a675f72490220302616078785eab0ff7d859d', "aria-label": 'dropdown menu', class: 'dropdown' }, index.h("slot", { key: '0d7a491172eb85948b010f114401972fcb089f11' })));
|
140
140
|
}
|
141
141
|
get el() { return index.getElement(this); }
|
142
142
|
static get watchers() { return {
|
@@ -7,6 +7,8 @@
|
|
7
7
|
"components/breadcrumb/breadcrumb-item-label.js",
|
8
8
|
"components/breadcrumb/breadcrumb-item.js",
|
9
9
|
"components/breadcrumb/breadcrumb.js",
|
10
|
+
"components/dropdown/dropdown-menu/dropdown-menu.js",
|
11
|
+
"components/dropdown/dropdown-item/dropdown-item.js",
|
10
12
|
"components/button/button.js",
|
11
13
|
"components/card/card.js",
|
12
14
|
"components/card/card-headline/card-headline.js",
|
@@ -24,8 +26,6 @@
|
|
24
26
|
"components/download/download.js",
|
25
27
|
"components/dropdown/dropdown.js",
|
26
28
|
"components/dropdown/dropdown-header/dropdown-header.js",
|
27
|
-
"components/dropdown/dropdown-item/dropdown-item.js",
|
28
|
-
"components/dropdown/dropdown-menu/dropdown-menu.js",
|
29
29
|
"components/dropdown/dropdown-seperator/dropdown-separator.js",
|
30
30
|
"components/dropdown/dropdown-trigger/dropdown-trigger.js",
|
31
31
|
"components/dropdown/dropdown-trigger-button/dropdown-trigger-button.js",
|
@@ -93,7 +93,7 @@ export class Button {
|
|
93
93
|
}
|
94
94
|
}
|
95
95
|
render() {
|
96
|
-
return (h(Host, { key: '
|
96
|
+
return (h(Host, { key: 'd7b3a89dcd4240f3a44aa05346c9bce375476826' }, h("a", { key: '55374b7ac6ba50bc074042f49b0718be4c1442f1', role: this.href ? 'link' : 'button', tabIndex: this.disabled ? -1 : 0, ref: (el) => (this.focusableElement = el), class: this.getClassNames(), href: !this.disabled ? this.internalHref : undefined, target: this.target, onClick: this.handleClick, rel: this.target === '_blank' ? 'noopener noreferrer' : undefined, onFocus: (event) => this.handleFocus(event), "aria-disabled": this.disabled ? 'true' : null, "aria-describedby": this.theme === 'danger' ? 'Dangerous action' : undefined, "aria-label": this.ariaLabel || undefined }, h("slot", { key: 'ae683451c19f6eb433211d46913f6d8b279f987a' }))));
|
97
97
|
}
|
98
98
|
getVariantClass() {
|
99
99
|
return `${this.variant}` === "secondary"
|
@@ -15,7 +15,7 @@ export class CardHeadline {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
render() {
|
18
|
-
return (h("div", { key: '
|
18
|
+
return (h("div", { key: '47588e8b38e5eadd66a42a132b54e55b2aab2072', class: `card__headline-wrapper ${this.hasDesc ? 'withDesc' : ""}` }, h("div", { key: '21458ea6b7000ae25a6665b34bcefe685685d505', class: `card-headline ${this.direction}` }, h("slot", { key: '5867b5fadc6f8da67d4123aa4cfdb968dca9ea51' }))));
|
19
19
|
}
|
20
20
|
static get is() { return "ifx-card-headline"; }
|
21
21
|
static get encapsulation() { return "shadow"; }
|
@@ -10,7 +10,7 @@ export class CardImage {
|
|
10
10
|
this.handlePosition(this.position);
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return (h("img", { key: '
|
13
|
+
return (h("img", { key: '78a305df396a6aa5a1bb5c4fcd58b327f946a60f', src: this.src, alt: this.alt, class: "card-image" }));
|
14
14
|
}
|
15
15
|
static get is() { return "ifx-card-image"; }
|
16
16
|
static get encapsulation() { return "shadow"; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { h } from "@stencil/core";
|
2
2
|
export class CardLinks {
|
3
3
|
render() {
|
4
|
-
return (h("div", { key: '
|
4
|
+
return (h("div", { key: '41e502507eeb40503dce46238ad0e2cd1dffeecc', class: 'container' }, h("slot", { key: 'ec074005fe54e49c6b6fb1ecaf12a2c1d0b6a626' })));
|
5
5
|
}
|
6
6
|
static get is() { return "ifx-card-links"; }
|
7
7
|
static get encapsulation() { return "shadow"; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { h } from "@stencil/core";
|
2
2
|
export class CardOverline {
|
3
3
|
render() {
|
4
|
-
return (h("div", { key: '
|
4
|
+
return (h("div", { key: '2e55a25825611cd059d62b8079faf8dce297a921', class: "card-overline" }, h("slot", { key: 'ff34f792d4f488c8de6bcb38a579a73cf3d4cadc' })));
|
5
5
|
}
|
6
6
|
static get is() { return "ifx-card-overline"; }
|
7
7
|
static get encapsulation() { return "shadow"; }
|
@@ -8,7 +8,7 @@ export class CardText {
|
|
8
8
|
}
|
9
9
|
}
|
10
10
|
render() {
|
11
|
-
return (h("div", { key: '
|
11
|
+
return (h("div", { key: 'd3ddbfaaa3b99504f89bc8e0e0dc32c50309f5d0', class: `card__text-wrapper ${this.hasBtn ? 'hasBtn' : ""}` }, h("div", { key: '1d3c8311a5100e6c85c99c64a82de5520d11e61f', class: `card-text` }, h("slot", { key: '73182b12dab027838499e75c72026e8d6f311b0c' }))));
|
12
12
|
}
|
13
13
|
static get is() { return "ifx-card-text"; }
|
14
14
|
static get encapsulation() { return "shadow"; }
|
@@ -38,12 +38,12 @@ export class Card {
|
|
38
38
|
this.handleComponentAdjustment();
|
39
39
|
}
|
40
40
|
render() {
|
41
|
-
return (h(Host, { key: '
|
41
|
+
return (h(Host, { key: '78369f8e134ac9a5be444a126e4f1c16cf326f72' }, h("div", { key: '11985e2318ed0a4a10901aa4105877b5b82f052e', "aria-label": this.ariaLabel, class: `card
|
42
42
|
${this.noBtns ? 'noBtns' : ""}
|
43
43
|
${this.direction}
|
44
44
|
${this.alignment}`, role: "region" }, this.direction === 'horizontal' &&
|
45
|
-
h("div", { key: '
|
46
|
-
h("div", { key: '
|
45
|
+
h("div", { key: 'a2953771fd2463dc22f61b2e0b2b74f0a72676e1', class: "horizontal" }, h("a", { key: '82e447ac989e6eb46da6537c6e8301d9cbc3f1fe', class: `card-img ${this.noImg ? 'noImage' : ""} ${this.internalHref ? 'card-href' : ''}`, href: this.internalHref }, h("slot", { key: '283b5316652ef266cd445f78fdc5b8e2714ed41e', name: "img" })), h("div", { key: 'bf364c4b4c85c815d274d70dc942b2eaf90c165d', class: 'lower__body-wrapper' }, h("a", { key: '9cf2b564ac56722a7c69132f09c2a91d74ff49eb', class: `upper-body ${this.internalHref ? 'card-href' : ''}`, href: this.internalHref }, h("slot", { key: '125d8b4ca59767385f3a84b5f43eaf00243b2ba6' })), h("div", { key: '48c5e246e17d842774d4de81c702675a6e7ffbfd' }, h("slot", { key: 'ec3b46c05b98ee9a45abde934cac6e91430e795f', name: 'buttons' })))), this.direction === 'vertical' &&
|
46
|
+
h("div", { key: '27bd695057b5c26376543f60945a11c8deb60e6a', class: "vertical" }, h("a", { key: '80f3f8ca47ad5b40ad5ec82ce4361a49ae3b38ad', class: `upper__body-wrapper ${this.internalHref ? 'card-href' : ''}`, href: this.internalHref, target: this.target }, h("div", { key: '8cad328c4d52256a52f5ab7c3b3d67c2f894ae13', class: `card-img ${this.noImg ? 'noImage' : ""}` }, h("slot", { key: '26d9ec8597f719881e6172fbfcb4ac4bf2886855', name: "img" })), h("div", { key: '634db847244c2ec83e5ef8795eb5103a7019157b', class: 'upper-body' }, h("slot", { key: 'f6a14b70ef7e679592e1481811125e5917d0924c' }))), h("div", { key: 'b61fbc4ae5f0e1d6275bb0f89ce0a9123368bb17', class: 'lower__body-wrapper' }, h("slot", { key: 'a1b5a9f6a08b440279306f2e722146021016c3cd', name: 'buttons' }))))));
|
47
47
|
}
|
48
48
|
static get is() { return "ifx-card"; }
|
49
49
|
static get encapsulation() { return "shadow"; }
|
@@ -91,12 +91,12 @@ export class Checkbox {
|
|
91
91
|
if (slot) {
|
92
92
|
hasSlot = true;
|
93
93
|
}
|
94
|
-
return (h("div", { key: '
|
94
|
+
return (h("div", { key: '149f6a9d6f3f1fbe0ed93d38484d9a7f28a05b7f', class: "checkbox__container" }, h("input", { key: '1d33a9ee96aa05071affc0a615d13556614b2c0e', type: "checkbox", hidden: true, ref: (el) => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleCheckbox.bind(this), id: 'checkbox', value: `${this.value}`, disabled: this.disabled ? true : undefined }), h("div", { key: 'e8f8c6530a21c653b7653cc91270b06a26d7b942', tabindex: "0", onClick: this.handleCheckbox.bind(this), onKeyDown: this.handleKeydown.bind(this), role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : this.internalChecked.toString(), "aria-disabled": this.disabled, "aria-labelledby": "label", class: `checkbox__wrapper
|
95
95
|
${this.getCheckedClassName()}
|
96
96
|
${this.size === "m" ? "checkbox-m" : ""}
|
97
97
|
${this.indeterminate ? 'indeterminate' : ""}
|
98
|
-
${this.disabled ? 'disabled' : ""}` }, this.internalChecked && !this.internalIndeterminate && h("ifx-icon", { key: '
|
99
|
-
h("div", { key: '
|
98
|
+
${this.disabled ? 'disabled' : ""}` }, this.internalChecked && !this.internalIndeterminate && h("ifx-icon", { key: 'aed8151d75e835576bf55ff1cc352e0d94488e3c', icon: "check-16", "aria-hidden": "true" })), hasSlot &&
|
99
|
+
h("div", { key: '1dc78c4309ffeb565d4ad53c676c62c38fa38413', id: "label", class: `label ${this.size === "m" ? "label-m" : ""} ${this.disabled ? 'disabled' : ""} `, onClick: this.handleCheckbox.bind(this) }, h("slot", { key: '15efbaff9fe6791627e0c8f6df987433ea0bb97b' }))));
|
100
100
|
}
|
101
101
|
static get is() { return "ifx-checkbox"; }
|
102
102
|
static get encapsulation() { return "shadow"; }
|
@@ -40,7 +40,7 @@ export class CheckboxGroup {
|
|
40
40
|
this.hasErrors = Array.from(this.errorStates.values()).some((error) => error);
|
41
41
|
}
|
42
42
|
render() {
|
43
|
-
return (h("div", { key: '
|
43
|
+
return (h("div", { key: '0e1e1ee2ac0c55bf19f7a5fef5a667c49fc6bb0b', class: 'checkbox-group-container' }, this.showGroupLabel ? h("div", { class: 'group-label' }, this.groupLabelText, " *") : '', h("div", { key: '580f2958a972d42bc3f1fb38928fc53c65a45db1', class: `checkbox-group ${this.alignment} ${this.size}` }, h("slot", { key: '6e55a282d938a88a89f5653a604eb155307cfb3a', onSlotchange: this.handleSlotChange })), this.showCaption ? (h("div", { class: `caption ${this.hasErrors ? 'error' : 'default'}` }, this.showCaptionIcon ? h("div", { class: 'caption-icon' }, h("ifx-icon", { icon: "c-info-16" })) : '', h("div", { class: 'caption-text' }, this.captionText))) : ''));
|
44
44
|
}
|
45
45
|
static get is() { return "ifx-checkbox-group"; }
|
46
46
|
static get encapsulation() { return "shadow"; }
|
@@ -56,9 +56,9 @@ export class ChipItem {
|
|
56
56
|
this.handleSelectedState();
|
57
57
|
}
|
58
58
|
render() {
|
59
|
-
return (h("div", { key: '
|
59
|
+
return (h("div", { key: '0feac58e2e7104e948633503bb6e1e41a7933963', class: `chip-item chip-item--${this.chipState.size}
|
60
60
|
chip-item--${(this.selected && this.chipState.variant) === 'single' ? 'selected' : ''}`, tabIndex: 0, onClick: () => { this.handleItemClick(); }, onKeyDown: (e) => { this.handleItemKeyDown(e); }, role: "option", "aria-selected": this.selected.toString() }, this.chipState.variant === 'multi' &&
|
61
|
-
h("ifx-checkbox", { key: '
|
61
|
+
h("ifx-checkbox", { key: '5bff8f27bda9843ffbad86fed014e6f5b1df3b9c', checked: this.selected, tabIndex: -1, size: 's' }), h("div", { key: 'e4ed1025410e1821e1549d8f29f7cc6c5ba57a2d', class: 'chip-item__label' }, " ", h("slot", { key: '541c9acff7c19e816f75cea1d17de319eefb8536' }), " "), h("div", { key: 'e5fc6f9e1d1e40bcc2ac591f2e550abcffa4cdad', class: 'chip-item__selected-indicator' }, h("ifx-icon", { key: '24c75f1d1eb8927d5193875aacda59ce9117e0df', icon: 'check-16' }, " "))));
|
62
62
|
}
|
63
63
|
static get is() { return "ifx-chip-item"; }
|
64
64
|
static get encapsulation() { return "shadow"; }
|
@@ -255,17 +255,17 @@ export class Chip {
|
|
255
255
|
this.syncSelectedOptionsWithProp(this.value);
|
256
256
|
}
|
257
257
|
render() {
|
258
|
-
return (h("div", { key: '
|
258
|
+
return (h("div", { key: '637a568cd29e50b18f38f62a48777d7c54fbffa6', class: 'chip' }, h("div", { key: '3a6468c99f576279dd883082ed70afa42e64c7dc', class: `chip__wrapper chip__wrapper--${this.size === 'small' ? 'small' : 'large'}
|
259
259
|
chip__wrapper--${this.variant === 'multi' ? 'multi' : 'single'}
|
260
260
|
${this.opened && !this.readOnly ? 'chip__wrapper--opened' : ''}
|
261
|
-
${this.selectedOptions.length ? 'chip__wrapper--selected' : ''}`, tabIndex: 0, onClick: !this.readOnly ? () => { this.handleWrapperClick(); } : undefined, role: 'combobox', "aria-label": this.ariaLabel, "aria-value": this.getSelectedOptions(), "aria-haspopup": !this.readOnly ? 'listbox' : undefined, "aria-expanded": !this.readOnly ? this.opened.toString() : undefined, "aria-controls": !this.readOnly ? 'dropdown' : undefined, "aria-readonly": this.readOnly ? 'true' : undefined, "aria-multiselectable": this.variant === 'multi' ? 'true' : undefined }, h("div", { key: '
|
261
|
+
${this.selectedOptions.length ? 'chip__wrapper--selected' : ''}`, tabIndex: 0, onClick: !this.readOnly ? () => { this.handleWrapperClick(); } : undefined, role: 'combobox', "aria-label": this.ariaLabel, "aria-value": this.getSelectedOptions(), "aria-haspopup": !this.readOnly ? 'listbox' : undefined, "aria-expanded": !this.readOnly ? this.opened.toString() : undefined, "aria-controls": !this.readOnly ? 'dropdown' : undefined, "aria-readonly": this.readOnly ? 'true' : undefined, "aria-multiselectable": this.variant === 'multi' ? 'true' : undefined }, h("div", { key: '22ea9cf50a3e77f19116e64e51365a8bea48dd24', class: 'wrapper__label' }, (this.selectedOptions.length === 0) && `${this.placeholder}`, (this.selectedOptions.length !== 0 && (this.variant === 'multi' || this.readOnly) && this.placeholder !== '') &&
|
262
262
|
`${this.placeholder}:`, (this.selectedOptions.length !== 0) &&
|
263
|
-
h("div", { key: '
|
264
|
-
h("ifx-indicator", { key: '
|
265
|
-
h("div", { key: '
|
266
|
-
h("div", { key: '
|
267
|
-
h("div", { key: '
|
268
|
-
h("div", { key: '
|
263
|
+
h("div", { key: '778190ebe5bd68caf5594c8a9520a5cf52764cb5', class: 'label__selected-options' }, this.getSelectedOptions()), (this.selectedOptions.length > 2 && this.variant === 'multi') &&
|
264
|
+
h("ifx-indicator", { key: 'f8d961b9354940ab2dda4677539d64e858227551', variant: 'number', number: this.selectedOptions.length - 2 })), !this.readOnly && (this.variant !== 'multi' || (this.variant === 'multi' && this.selectedOptions.length === 0)) &&
|
265
|
+
h("div", { key: '349831d4e87ace96e02493456b6bc3d6dc3b779d', class: 'wrapper__open-button' }, h("ifx-icon", { key: 1, icon: `chevron-down-16` })), (this.variant !== 'multi' && this.readOnly !== false && this.selectedOptions.length > 0) &&
|
266
|
+
h("div", { key: 'dec4500f0204fa9f992c12369b85e9f65778a4a7', class: 'wrapper__unselect-button', onClick: (e) => { this.handleUnselectButtonClick(e); } }, h("ifx-icon", { key: 2, icon: `cross16` })), ((this.selectedOptions.length >= 1) && this.variant === 'multi') &&
|
267
|
+
h("div", { key: '58084d5bfac1199339c2a48ea5eeb331556adfc9', class: 'wrapper__unselect-button', onClick: (e) => { this.handleUnselectButtonClick(e); } }, h("ifx-icon", { key: 2, icon: `cross16` }))), this.opened && !this.readOnly &&
|
268
|
+
h("div", { key: 'ee77eb0d1345c1d14a3ae79751c34fe2449e7288', id: 'dropdown', role: 'listbox', class: 'chip__dropdown' }, h("slot", { key: '52c9433f93905262a10496a350a055d72d290ade' }))));
|
269
269
|
}
|
270
270
|
static get is() { return "ifx-chip"; }
|
271
271
|
static get encapsulation() { return "shadow"; }
|
@@ -4,7 +4,7 @@ export class ContentSwitcherItem {
|
|
4
4
|
this.selected = false;
|
5
5
|
}
|
6
6
|
render() {
|
7
|
-
return (h(Host, { key: '
|
7
|
+
return (h(Host, { key: 'b8dc41db465e008878deb175f09f334f1a5b4723' }, h("button", { key: 'e8bd11e7942d2b13e0f8c781724a88d2aa2c93c3', class: 'ifx-content-switcher-item' + (this.selected ? ' selected' : '') }, h("slot", { key: '22923a9ed26981d1f6d708a0fc4c60b02644ffff' }))));
|
8
8
|
}
|
9
9
|
static get is() { return "ifx-content-switcher-item"; }
|
10
10
|
static get encapsulation() { return "shadow"; }
|
@@ -150,7 +150,7 @@ export class ContentSwitcher {
|
|
150
150
|
return this.items[index].getAttribute('value') || index.toLocaleString();
|
151
151
|
}
|
152
152
|
render() {
|
153
|
-
return (h(Host, { key: '
|
153
|
+
return (h(Host, { key: '1ead12dc6ed7c2eb6f372bfe04a45419233a0d7d' }, h("div", { key: 'e3f5b5051f91edae637b005f2c5820ea4695f04f', class: "ifx-content-switcher", role: "group" }, h("slot", { key: 'd45e3aed8934209c35ed230a4ce5d11f37a304f6' }))));
|
154
154
|
}
|
155
155
|
static get is() { return "ifx-content-switcher"; }
|
156
156
|
static get encapsulation() { return "shadow"; }
|
@@ -86,8 +86,8 @@ export class DatePicker {
|
|
86
86
|
}
|
87
87
|
render() {
|
88
88
|
var _a, _b;
|
89
|
-
return (h("div", { key: '
|
90
|
-
_a.trim(), h("span", { key: '
|
89
|
+
return (h("div", { key: '6de6b7ba329d65dd1f154d0eab1d74dfd7f346cb', class: `date__picker-container ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, h("label", { key: '32b1e8e8824ad9f505b66d81d85891b7930d49e1', class: 'label__wrapper', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
90
|
+
_a.trim(), h("span", { key: '9803a076232a7af6ca732526b3fd948268de84b6', class: `asterisk ${this.required ? 'required' : ""} ${this.error ? 'error' : ""}` }, "*")), h("div", { key: '1ffa98681899b3672a177d1d577f17b732aa5d67', class: `input__wrapper ${this.size === 'l' ? 'large' : 'small'} ${this.disabled ? 'disabled' : ''}` }, h("input", { key: 'a2b8b298f13e21c08664e04b84e1cd3129a4e722', type: this.type, autocomplete: this.autocomplete, class: `date__picker-input ${this.error ? 'error' : ""} ${this.success ? "success" : ""}`, disabled: this.disabled ? true : undefined, "aria-invalid": this.error ? true : undefined, "aria-label": this.ariaLabel, max: this.max, min: this.min, value: this.value, required: this.required, onChange: (e) => this.getDate(e) }), h("div", { key: '7e69c869e18d0397ae956906f088b0f1dcdaccec', class: "icon__wrapper", role: "button", onClick: () => this.handleInputFocusOnIconClick() }, h("ifx-icon", { key: '8748fde2f3a63c89de896cb04686339a907beaae', icon: 'calendar16', "aria-hidden": "true" }))), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: 'b38f60b8e748b644c8d153ff4bb43853b85c22e9', class: 'caption__wrapper' }, this.caption.trim()))));
|
91
91
|
}
|
92
92
|
static get is() { return "ifx-date-picker"; }
|
93
93
|
static get encapsulation() { return "shadow"; }
|
@@ -11,7 +11,7 @@ export class Download {
|
|
11
11
|
const fileName = `infineon-tokens.${this.tokens}`;
|
12
12
|
const sourceFile = fileMap[this.tokens];
|
13
13
|
const fileUrl = `https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-tokens/${sourceFile}`;
|
14
|
-
return (h("ifx-link", { key: '
|
14
|
+
return (h("ifx-link", { key: 'b290832f3e1e8edc05e409bb8c606cd3fccfca51', onClick: (e) => {
|
15
15
|
e.preventDefault();
|
16
16
|
fetch(fileUrl)
|
17
17
|
.then(res => res.blob())
|
@@ -21,7 +21,7 @@ export class Download {
|
|
21
21
|
link.download = fileName;
|
22
22
|
link.click();
|
23
23
|
});
|
24
|
-
}, href: fileUrl, download: fileName, class: "download__wrapper", size: "m", variant: "bold" }, h("slot", { key: '
|
24
|
+
}, href: fileUrl, download: fileName, class: "download__wrapper", size: "m", variant: "bold" }, h("slot", { key: '4b42d276756903a8fbc44c5ab2cc1221a4591982' })));
|
25
25
|
}
|
26
26
|
static get is() { return "ifx-download"; }
|
27
27
|
static get encapsulation() { return "shadow"; }
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { h } from "@stencil/core";
|
3
3
|
export class DropdownHeader {
|
4
4
|
render() {
|
5
|
-
return (h("div", { key: '
|
5
|
+
return (h("div", { key: 'bf3070867da1052a43e62eb7ae2cf92255929fe6', class: 'dropdown-header' }, h("span", { key: 'a3863497b2c3809cc3de61f00916cce34bbca402' }, h("slot", { key: '7aed6dfd2b675c52cbfdb83d0aadd69fd101b237' }))));
|
6
6
|
}
|
7
7
|
static get is() { return "ifx-dropdown-header"; }
|
8
8
|
static get encapsulation() { return "shadow"; }
|
@@ -15,7 +15,7 @@ export class DropdownItem {
|
|
15
15
|
}
|
16
16
|
render() {
|
17
17
|
let hrefAttr = this.href ? { href: this.href, target: this.target } : {};
|
18
|
-
return (h("a", Object.assign({ key: '
|
18
|
+
return (h("a", Object.assign({ key: 'c7b7bd06103652ae6fbededcb44dfea24647143a' }, hrefAttr, { onClick: () => this.handleEventEmission(), class: `dropdown-item ${this.size === 's' ? 'small' : ""} ${this.hide ? 'hide' : ""}` }), this.icon && h("ifx-icon", { key: '30905f5e873c10381da7aff35b3b69c451f00371', class: "icon", icon: this.icon }), h("span", { key: 'af4bd02d4eac4d31cc9237ef229dc6f2b2996971' }, h("slot", { key: '82719e39f672a3c6e6289ee8f681b49701f8c9c0' }))));
|
19
19
|
}
|
20
20
|
static get is() { return "ifx-dropdown-item"; }
|
21
21
|
static get encapsulation() { return "shadow"; }
|
@@ -43,10 +43,10 @@ export class DropdownMenu {
|
|
43
43
|
this.hideTopPadding = false;
|
44
44
|
}
|
45
45
|
render() {
|
46
|
-
return (h("div", { key: '
|
46
|
+
return (h("div", { key: 'b5222d062a86989e49b0fb9a26eea515fee0290a', class: `dropdown-menu
|
47
47
|
${this.isOpen ? 'show' : ''}
|
48
48
|
${this.hideTopPadding ? 'hideTopPadding' : ""}
|
49
|
-
${this.size === 's' ? 'small' : ""}` }, h("slot", { key: '
|
49
|
+
${this.size === 's' ? 'small' : ""}` }, h("slot", { key: '5049f24687d23b4ab5a4bb084f3c0b2ef8044262' })));
|
50
50
|
}
|
51
51
|
static get is() { return "ifx-dropdown-menu"; }
|
52
52
|
static get encapsulation() { return "shadow"; }
|