@davincihealthcare/elty-design-system-vue 2.2.2 → 2.2.4

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.
@@ -88,7 +88,7 @@ declare const _default: import('vue').DefineComponent<{
88
88
  default: string;
89
89
  };
90
90
  }, {
91
- resetAllAndFetch: () => void;
91
+ resetAllAndFetch: () => Promise<void>;
92
92
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
93
93
  "update:modelValue": (value: TextualValueType) => void;
94
94
  "item:click": (itemIndex: number) => void;
package/dist/index.js CHANGED
@@ -31028,9 +31028,11 @@ const Pg = {
31028
31028
  setup(t, { expose: e, emit: r }) {
31029
31029
  const A = t, o = r;
31030
31030
  e({
31031
- resetAllAndFetch: () => {
31032
- var w;
31033
- u.value = "", N.value = A.items, R.value = A.selectedItems, (w = A.dataController) == null || w.call(A, u.value);
31031
+ resetAllAndFetch: async () => {
31032
+ var D;
31033
+ u.value = void 0, N.value = A.items, R.value = A.selectedItems;
31034
+ const w = await ((D = A.dataController) == null ? void 0 : D.call(A, u.value));
31035
+ N.value = (w == null ? void 0 : w.data) || [];
31034
31036
  }
31035
31037
  });
31036
31038
  const s = q(!1), c = q(!1), u = q(A.modelValue), N = q([]), R = q(A.selectedItems), S = q(), f = q(), C = re(
@@ -31050,7 +31052,7 @@ const Pg = {
31050
31052
  );
31051
31053
  y !== -1 ? R.value = R.value.filter((k, j) => j !== y) : R.value.push({ ...D, check: !0 }), u.value = "", f.value = void 0, (V = S.value) == null || V.focus(), o("update:selectedItems", R.value);
31052
31054
  } else
31053
- u.value = D.text || D.value || D.label || "";
31055
+ u.value = D.text || D.label || D.value || "";
31054
31056
  o("update:modelValue", D.text || D.label || D.value || ""), o("item:click", P);
31055
31057
  }
31056
31058
  }));