@infineon/infineon-design-system-stencil 30.5.0--canary.1653.e0dbd3314b37fb8bdea4791ccaa98bb5bd212c8f.0 → 30.5.1--canary.1655.9885959d458e06593271685d632a6120c4904eb3.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.
@@ -6904,12 +6904,15 @@ const Choices = class {
6904
6904
  }
6905
6905
  handleDeleteSelection() {
6906
6906
  this.clearInput();
6907
- this.selectedOption = null;
6907
+ this.clearSelectField();
6908
6908
  this.setPreSelected(null);
6909
6909
  this.closeDropdown();
6910
- this.ifxSelect.emit(null);
6911
6910
  this.optionIsSelected = false;
6912
6911
  }
6912
+ clearSelectField() {
6913
+ this.selectedOption = null;
6914
+ this.ifxSelect.emit(null);
6915
+ }
6913
6916
  async handleChange() {
6914
6917
  this.ifxSelect.emit(this.choice.getValue());
6915
6918
  this.selectedOption = this.choice.getValue(); //store the selected option to reflect it in the template function
@@ -7043,6 +7046,7 @@ const Choices = class {
7043
7046
  }
7044
7047
  componentWillUpdate() {
7045
7048
  this.handleCloseButton();
7049
+ this.clearSelectField();
7046
7050
  }
7047
7051
  addResizeObserver() {
7048
7052
  this.resizeObserver = new ResizeObserver(() => {
@@ -7078,9 +7082,9 @@ const Choices = class {
7078
7082
  // destroy choices element to restore previous dom structure
7079
7083
  // so vdom can replace the element correctly
7080
7084
  this.destroy();
7081
- return (index.h("div", { key: 'c41ec36261a1133b438648bc6a564107267c5b1a', class: `ifx-select-container` }, this.label ? (index.h("div", { class: "ifx-label-wrapper" }, index.h("span", null, this.label))) : null, index.h("div", { key: 'dae048e7ad4c6a40bf5c900fb5c2c2e01ea58a4e', class: `${choicesWrapperClass}
7085
+ return (index.h("div", { key: '0b80fbf12bc170ffd8d683244254c1203b7cff00', class: `ifx-select-container` }, this.label ? (index.h("div", { class: "ifx-label-wrapper" }, index.h("span", null, this.label))) : null, index.h("div", { key: '22c0014b84cb785547ca9f8ebf7ec4ea97aff799', class: `${choicesWrapperClass}
7082
7086
  ${this.disabled ? 'disabled' : ''}
7083
- ${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, index.h("select", Object.assign({ key: '8fa127e6a04061b43359c3131c607fbc001ea4c9', class: 'single__select-input-field', disabled: this.disabled }, attributes, { "data-trigger": true, onChange: () => this.handleChange() }), this.createSelectOptions(this.options)), index.h("div", { key: 'fcafbc54f77fcfcbc4ad7b78a71627f5bd415592', class: "single__select-icon-container" }, this.optionIsSelected && (index.h("div", { key: '590bdc1f9020dc23691d4aa590e6e679983545b0', class: "ifx-choices__icon-wrapper-delete" }, index.h("ifx-icon", { key: 'ff9536f8830baf07ae90492f99ec74b514abb3e5', icon: "cremove16", onClick: () => this.handleDeleteSelection() }))), index.h("div", { key: 'f60e834881062bcbd15df2d2a282860ee5be71c7', class: "ifx-choices__icon-wrapper-up" }, index.h("ifx-icon", { key: "icon-up", icon: "chevronup-16" })), index.h("div", { key: '9d61e8aeefd0714d80a7bf812f5f9a51bc1671a6', class: "ifx-choices__icon-wrapper-down" }, index.h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" })))), this.error ? (index.h("div", { class: "ifx-error-message-wrapper" }, index.h("span", null, this.errorMessage))) : null));
7087
+ ${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, index.h("select", Object.assign({ key: 'a622c7cf6ee90850ba1d640d1e600f26447b92ef', class: 'single__select-input-field', disabled: this.disabled }, attributes, { "data-trigger": true, onChange: () => this.handleChange() }), this.createSelectOptions(this.options)), index.h("div", { key: 'e6ce74bacf6aae8d8e6b4f7cb688ae480721ea42', class: "single__select-icon-container" }, this.optionIsSelected && (index.h("div", { key: '05c1838e33693050debb5ed83b2c95f4d9d958e3', class: "ifx-choices__icon-wrapper-delete" }, index.h("ifx-icon", { key: 'b490d8eca9861f636c5b478974d6df6d5a3ab19d', icon: "cremove16", onClick: () => this.handleDeleteSelection() }))), index.h("div", { key: '926b34f8f945fff2a9eaeea7ef5c8ef7dba976b4', class: "ifx-choices__icon-wrapper-up" }, index.h("ifx-icon", { key: "icon-up", icon: "chevronup-16" })), index.h("div", { key: 'cd4eadb735c2a3b49c80e5a77aa87b943998ee95', class: "ifx-choices__icon-wrapper-down" }, index.h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" })))), this.error ? (index.h("div", { class: "ifx-error-message-wrapper" }, index.h("span", null, this.errorMessage))) : null));
7084
7088
  }
7085
7089
  toggleDropdown() {
7086
7090
  const div = this.root.querySelector('.ifx-choices__wrapper');