@deviceinsight/ng-ui-components 7.11.0 → 7.12.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/index.js CHANGED
@@ -10,7 +10,7 @@ import { HexColorPicker, RgbaStringColorPicker, RgbStringColorPicker } from "rea
10
10
  import timezone from "dayjs/plugin/timezone";
11
11
  import utc from "dayjs/plugin/utc";
12
12
  import DatePicker, { registerLocale } from "react-datepicker";
13
- import { debounce, isEqual, orderBy, uniqWith, difference } from "lodash";
13
+ import { debounce, isEqual, kebabCase, orderBy, uniqWith, difference } from "lodash";
14
14
  import dayjs from "dayjs";
15
15
  import localeData from "dayjs/plugin/localeData";
16
16
  import localizedFormat from "dayjs/plugin/localizedFormat";
@@ -1600,7 +1600,7 @@ class SelectWithSearch extends Component {
1600
1600
  isLoading: loading,
1601
1601
  menuPortalTarget: this.portalRoot,
1602
1602
  isDisabled: disabled,
1603
- formatOptionLabel: dataTestId ? (option) => /* @__PURE__ */ jsx("span", { "data-testid": `${dataTestId}-option-${option.label}`, children: option.label }) : void 0,
1603
+ formatOptionLabel: dataTestId ? (option) => /* @__PURE__ */ jsx("span", { "data-testid": `${dataTestId}-option-${kebabCase(option.label)}`, children: option.label }) : void 0,
1604
1604
  onBlur: () => {
1605
1605
  if (this.props.freeForm && this.state.inputValue !== null) {
1606
1606
  this.setState({ options: this.props.options });
@@ -2764,7 +2764,7 @@ class SelectWithSearchAsync extends Component {
2764
2764
  isDisabled: disabled,
2765
2765
  menuPortalTarget,
2766
2766
  placeholder: this.props.placeholder,
2767
- formatOptionLabel: dataTestId ? (option) => /* @__PURE__ */ jsx("span", { "data-testid": `${dataTestId}-option-${option.label}`, children: option.label }) : void 0
2767
+ formatOptionLabel: dataTestId ? (option) => /* @__PURE__ */ jsx("span", { "data-testid": `${dataTestId}-option-${kebabCase(option.label)}`, children: option.label }) : void 0
2768
2768
  }
2769
2769
  );
2770
2770
  }