@apia/components 4.0.25 → 4.0.26

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.d.ts CHANGED
@@ -899,6 +899,7 @@ type AutocompleteCmpProps = {
899
899
  getHandler?: (handler: AutocompleteController) => unknown;
900
900
  properties?: AutocompleteProps;
901
901
  inputProps?: InputProps;
902
+ boxProps?: React.HTMLAttributes<HTMLDivElement>;
902
903
  };
903
904
  declare const Autocomplete: (props: AutocompleteCmpProps) => React$1.JSX.Element | null;
904
905
 
package/dist/index.js CHANGED
@@ -4338,6 +4338,7 @@ const Autocomplete = (props) => {
4338
4338
  return /* @__PURE__ */ jsx(AutocompleteContext.Provider, { value: handler, children: /* @__PURE__ */ jsx(
4339
4339
  KeyHandler$1,
4340
4340
  {
4341
+ ...props.boxProps,
4341
4342
  className: `autocomplete ${props.properties?.className || ""}`,
4342
4343
  "data-autocomplete-box": handler.state.id,
4343
4344
  ...getVariant("layout.common.components.autocomplete"),
@@ -10108,7 +10109,6 @@ class Parameter {
10108
10109
  this.state.values = this.state.values.filter((x) => !!x);
10109
10110
  }
10110
10111
  setValue(value, index) {
10111
- this.removeEmptyValues();
10112
10112
  index !== null && index !== void 0 ? this.state.values[index] = value : this.state.values = [value];
10113
10113
  }
10114
10114
  addValue(value) {
@@ -10176,7 +10176,7 @@ const ParameterRender = observer(
10176
10176
  onChange: (ev) => {
10177
10177
  parameter.setValue(ev.target.value, index);
10178
10178
  },
10179
- value: parameter.state.values[index]
10179
+ value: parameter.state.values[index] ?? ""
10180
10180
  }
10181
10181
  ),
10182
10182
  error
@@ -10556,7 +10556,14 @@ const Parameters = observer(
10556
10556
  label,
10557
10557
  Object.entries(params).map(([, c]) => {
10558
10558
  if (c instanceof Parameter) {
10559
- return /* @__PURE__ */ jsx(ParameterRender, { index: 0, parameter: c }, c.state.name);
10559
+ return /* @__PURE__ */ jsx(
10560
+ ParameterRender,
10561
+ {
10562
+ index: 0,
10563
+ parameter: c
10564
+ },
10565
+ uniqueId$4(c.state.name)
10566
+ );
10560
10567
  } else if (c instanceof ParametersGroup) {
10561
10568
  if (c.component) {
10562
10569
  const Component = importComponent(