@ouestfrance/sipa-bms-ui 8.25.1 → 8.25.2

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.
@@ -87891,6 +87891,7 @@
87891
87891
  allServerLoadedOptions.value.push(element);
87892
87892
  }
87893
87893
  });
87894
+ synchronizeSearchWithValue(modelValue.value);
87894
87895
  }
87895
87896
  } catch (e) {
87896
87897
  console.error(e);
@@ -87944,20 +87945,19 @@
87944
87945
  return localOptions.value;
87945
87946
  });
87946
87947
  const localOptions = vue.computed(() => {
87947
- return Array.isArray(props.options) && !!props.options.length && typeof props.options[0] === "string" ? props.options.map((o) => ({ label: o, value: o })) : props.options;
87948
+ const options = props.request ? allServerLoadedOptions.value : props.options;
87949
+ return Array.isArray(options) && !!options.length && typeof options[0] === "string" ? options.map((o) => ({ label: o, value: o })) : options;
87948
87950
  });
87949
87951
  const selectedItems = vue.computed(() => {
87950
87952
  if (!modelValue.value || !Array.isArray(modelValue.value)) return [];
87951
87953
  const items = [];
87952
- (props.request ? allServerLoadedOptions : localOptions).value.forEach(
87953
- (option) => {
87954
- if (modelValue.value === option.value) {
87955
- items.push(option);
87956
- } else if (modelValue.value?.includes(option.value)) {
87957
- items.push(option);
87958
- }
87954
+ localOptions.value.forEach((option) => {
87955
+ if (modelValue.value === option.value) {
87956
+ items.push(option);
87957
+ } else if (modelValue.value?.includes(option.value)) {
87958
+ items.push(option);
87959
87959
  }
87960
- );
87960
+ });
87961
87961
  return items;
87962
87962
  });
87963
87963
  const isOptionSelected = (option) => {
@@ -88137,7 +88137,7 @@
88137
88137
  }
88138
88138
  });
88139
88139
 
88140
- const BmsCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-2cae8051"]]);
88140
+ const BmsCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-acd40993"]]);
88141
88141
 
88142
88142
  const _hoisted_1$F = ["value", "required", "placeholder", "disabled"];
88143
88143
  const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({