scope360-core 0.0.42 → 0.0.44

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.
@@ -1217,8 +1217,17 @@ const Sc = {
1217
1217
  }),
1218
1218
  emits: ["update:modelValue"],
1219
1219
  setup(n) {
1220
- const e = Tn(n, "modelValue"), t = n, a = U(() => t.width ? { width: t.width } : null), r = te(null), i = U(() => r.value && r.value.isOpen), s = U(() => !!e.value.length);
1221
- return (o, l) => (A(), V("div", {
1220
+ const e = Tn(n, "modelValue", {
1221
+ get(l) {
1222
+ return typeof l == "object" ? l.name : l;
1223
+ },
1224
+ set(l) {
1225
+ return l;
1226
+ }
1227
+ }), t = n, a = U(() => t.width ? { width: t.width } : null), r = te(null), i = U(() => r.value && r.value.isOpen), s = U(() => !!e.value.length), o = U(
1228
+ () => t.options.every((l) => typeof l == "object" && l !== null) ? t.options.map((l) => l.name) : t.options
1229
+ );
1230
+ return (l, c) => (A(), V("div", {
1222
1231
  class: "scope-multiselect-container",
1223
1232
  style: yt(a.value)
1224
1233
  }, [
@@ -1232,8 +1241,8 @@ const Sc = {
1232
1241
  { "-with-search": n.searchable, "-invalid": n.invalid }
1233
1242
  ]),
1234
1243
  modelValue: e.value,
1235
- "onUpdate:modelValue": l[0] || (l[0] = (c) => e.value = c),
1236
- options: n.options,
1244
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => e.value = u),
1245
+ options: o.value,
1237
1246
  searchable: n.searchable,
1238
1247
  disabled: n.disabled,
1239
1248
  "close-on-select": "",
@@ -1262,7 +1271,7 @@ const Sc = {
1262
1271
  ], 2)
1263
1272
  ], 4));
1264
1273
  }
1265
- }, ly = /* @__PURE__ */ Ft(Oc, [["__scopeId", "data-v-833b9eb5"]]), Ac = {
1274
+ }, ly = /* @__PURE__ */ Ft(Oc, [["__scopeId", "data-v-384c59c9"]]), Ac = {
1266
1275
  key: 0,
1267
1276
  class: "scope-input__label"
1268
1277
  }, Cc = ["disabled", "placeholder"], Rc = {