@quoreadmin/ui 1.3.41 → 1.3.42
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.css +1 -1
- package/dist/index.js +40 -39
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71094,54 +71094,54 @@ const Pfe = Oe({
|
|
|
71094
71094
|
},
|
|
71095
71095
|
emits: ["update:model-value"],
|
|
71096
71096
|
setup(t, { slots: e, emit: n }) {
|
|
71097
|
-
const { t: r } = Js(), i = _(null), s = _(null), o = _(t.modelValue), a = _(""), l = _(!1), u = _([]), c = G(() => Array.isArray(t.options) ? t.options.length : 0), d = G(() => !!e.action), f = G(() => t.noResultMessage || r("HC_PRESS_ENTER_TO_CREATE_A_TAG")), h = G(() => t.tagPlaceholder || r("HC_PRESS_ENTER_TO_CREATE_A_TAG")), m = G(() => c.value === o.value.length ? r("HC_ALL") : o.value.length > 1 ? r("HC_MULTIPLE_SELECTED") : o.value[0].label || o.value[0].name || ""), y = G(() => t.taggable || t.showTags), g = (
|
|
71098
|
-
n("update:model-value",
|
|
71099
|
-
},
|
|
71100
|
-
a.value =
|
|
71101
|
-
},
|
|
71102
|
-
const
|
|
71103
|
-
label:
|
|
71104
|
-
name:
|
|
71097
|
+
const { t: r } = Js(), i = _(null), s = _(null), o = _(t.modelValue), a = _(""), l = _(!1), u = _([]), c = G(() => Array.isArray(t.options) ? t.options.length : 0), d = G(() => !!e.action), f = G(() => t.noResultMessage || r("HC_PRESS_ENTER_TO_CREATE_A_TAG")), h = G(() => t.tagPlaceholder || r("HC_PRESS_ENTER_TO_CREATE_A_TAG")), m = G(() => c.value === o.value.length ? r("HC_ALL") : o.value.length > 1 ? r("HC_MULTIPLE_SELECTED") : o.value[0].label || o.value[0].name || ""), y = G(() => t.taggable || t.showTags), g = G(() => !!(t.groupValues && t.groupLabel && t.groupSelectable)), v = (I) => {
|
|
71098
|
+
n("update:model-value", I);
|
|
71099
|
+
}, b = (I) => {
|
|
71100
|
+
a.value = I;
|
|
71101
|
+
}, S = async (I) => {
|
|
71102
|
+
const $ = {
|
|
71103
|
+
label: I,
|
|
71104
|
+
name: I,
|
|
71105
71105
|
added: !0
|
|
71106
71106
|
// maybe change this to class - I am going to use this for external emails
|
|
71107
71107
|
};
|
|
71108
|
-
if (!t.validationMethod(
|
|
71109
|
-
await gn(), i.value.search =
|
|
71108
|
+
if (!t.validationMethod($)) {
|
|
71109
|
+
await gn(), i.value.search = I;
|
|
71110
71110
|
return;
|
|
71111
71111
|
}
|
|
71112
|
-
u.value.push(
|
|
71113
|
-
},
|
|
71112
|
+
u.value.push($), o.value.push($);
|
|
71113
|
+
}, C = () => {
|
|
71114
71114
|
o.value = [], n("update:model-value", o.value);
|
|
71115
|
-
},
|
|
71116
|
-
typeof
|
|
71115
|
+
}, E = (I) => {
|
|
71116
|
+
typeof I == "number" && I >= 0 ? o.value.splice(I, 1) : o.value = [], gn(() => {
|
|
71117
71117
|
n("update:model-value", o.value);
|
|
71118
71118
|
});
|
|
71119
|
-
},
|
|
71120
|
-
t.multiple && o.value &&
|
|
71119
|
+
}, M = (I) => {
|
|
71120
|
+
t.multiple && o.value && I.length === o.value.length && gn(() => {
|
|
71121
71121
|
o.value = [], n("update:model-value", o.value);
|
|
71122
71122
|
});
|
|
71123
|
-
},
|
|
71123
|
+
}, T = async () => {
|
|
71124
71124
|
if (l.value || (l.value = !0, u.value = t.options), s.value && t.searchable) {
|
|
71125
71125
|
await gn();
|
|
71126
|
-
const
|
|
71126
|
+
const I = s.value.querySelector(
|
|
71127
71127
|
".multiselect__content-wrapper"
|
|
71128
|
-
),
|
|
71128
|
+
), $ = s.value.querySelector(
|
|
71129
71129
|
".multiselect__input"
|
|
71130
71130
|
);
|
|
71131
|
-
|
|
71131
|
+
$.style.width = I.clientWidth + "px";
|
|
71132
71132
|
}
|
|
71133
|
-
},
|
|
71133
|
+
}, N = async () => {
|
|
71134
71134
|
if (!i.value)
|
|
71135
71135
|
return;
|
|
71136
|
-
const
|
|
71137
|
-
o.value = [], t.groupValues ?
|
|
71138
|
-
o.value.push(
|
|
71139
|
-
}) : o.value =
|
|
71136
|
+
const I = i.value;
|
|
71137
|
+
o.value = [], t.groupValues ? I.filteredOptions.forEach(($) => {
|
|
71138
|
+
o.value.push($);
|
|
71139
|
+
}) : o.value = I.filteredOptions, n("update:model-value", o.value);
|
|
71140
71140
|
};
|
|
71141
|
-
return nt(() => t.modelValue, (
|
|
71142
|
-
o.value =
|
|
71143
|
-
}), nt(() => t.options, (
|
|
71144
|
-
l.value && (u.value =
|
|
71141
|
+
return nt(() => t.modelValue, (I) => {
|
|
71142
|
+
o.value = I;
|
|
71143
|
+
}), nt(() => t.options, (I) => {
|
|
71144
|
+
l.value && (u.value = I);
|
|
71145
71145
|
}), {
|
|
71146
71146
|
currentSelect: i,
|
|
71147
71147
|
search: a,
|
|
@@ -71155,14 +71155,15 @@ const Pfe = Oe({
|
|
|
71155
71155
|
selectedCount: c,
|
|
71156
71156
|
selectedText: m,
|
|
71157
71157
|
useTags: y,
|
|
71158
|
-
|
|
71159
|
-
|
|
71160
|
-
|
|
71161
|
-
|
|
71162
|
-
|
|
71163
|
-
|
|
71164
|
-
|
|
71165
|
-
|
|
71158
|
+
enableGroupSelect: g,
|
|
71159
|
+
addTag: S,
|
|
71160
|
+
clearAll: C,
|
|
71161
|
+
onOpen: T,
|
|
71162
|
+
onRemove: M,
|
|
71163
|
+
onUpdateValue: v,
|
|
71164
|
+
removeElement: E,
|
|
71165
|
+
searchChange: b,
|
|
71166
|
+
selectAll: N
|
|
71166
71167
|
};
|
|
71167
71168
|
}
|
|
71168
71169
|
}), Lfe = ["id"], Rfe = ["onMousedown"], _fe = {
|
|
@@ -71218,7 +71219,7 @@ function Jfe(t, e, n, r, i, s) {
|
|
|
71218
71219
|
"track-by": t.trackBy,
|
|
71219
71220
|
"group-values": t.groupValues,
|
|
71220
71221
|
"group-label": t.groupLabel,
|
|
71221
|
-
"group-select": t.
|
|
71222
|
+
"group-select": t.enableGroupSelect,
|
|
71222
71223
|
"block-keys": t.blockKeys,
|
|
71223
71224
|
class: B([
|
|
71224
71225
|
{ "has-checkboxes": t.hasCheckboxes },
|
|
@@ -71496,7 +71497,7 @@ function Jfe(t, e, n, r, i, s) {
|
|
|
71496
71497
|
]), 1032, ["id", "modelValue", "filtering-sort-func", "options", "searchable", "multiple", "taggable", "label", "track-by", "group-values", "group-label", "group-select", "block-keys", "class", "disabled", "loading", "allow-empty", "clear-on-select", "close-on-select", "show-tags", "tag-placeholder", "placeholder", "open-direction", "onOpen", "onTag"])
|
|
71497
71498
|
], 8, Lfe);
|
|
71498
71499
|
}
|
|
71499
|
-
const s4e = /* @__PURE__ */ Ze(Pfe, [["render", Jfe], ["__scopeId", "data-v-
|
|
71500
|
+
const s4e = /* @__PURE__ */ Ze(Pfe, [["render", Jfe], ["__scopeId", "data-v-a2411051"]]);
|
|
71500
71501
|
var _n = {
|
|
71501
71502
|
STARTS_WITH: "startsWith",
|
|
71502
71503
|
CONTAINS: "contains",
|