@rocketui/vue 0.2.91 → 0.2.93-beta.1
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/rocket-ui-vue.js +41 -11
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -9052,14 +9052,18 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9052
9052
|
document.querySelectorAll(".r-dropdown--active").forEach((G) => {
|
|
9053
9053
|
var B1;
|
|
9054
9054
|
if (G.id !== ((B1 = B.value) == null ? void 0 : B1.id) && G.classList.contains("r-dropdown--active")) {
|
|
9055
|
-
const H2 = n(
|
|
9055
|
+
const H2 = n(
|
|
9056
|
+
G
|
|
9057
|
+
);
|
|
9056
9058
|
H2 && o(H2), G.childNodes.forEach((V1) => {
|
|
9057
9059
|
V1 != null && V1.classList && (Object == null || Object.values(V1 == null ? void 0 : V1.classList).filter((N1) => N1.includes("--active")).forEach((N1) => {
|
|
9058
9060
|
V1 == null || V1.classList.remove(N1);
|
|
9059
9061
|
}));
|
|
9060
9062
|
}), G.classList.remove("r-dropdown--active");
|
|
9061
9063
|
}
|
|
9062
|
-
}), s != null && s.classList.contains("r-dropdown--active") ? (s.classList.remove("r-dropdown--active"), M.value = !1, (X = B.value) == null || X.blur(), (p = y.value) == null || p.blur(), d.value && o(d.value)) : (s == null || s.classList.add("r-dropdown--active"), M.value = !0, (Q = B.value) == null || Q.focus(), (k1 = y.value) == null || k1.focus(), d.value || (d.value = n(
|
|
9064
|
+
}), s != null && s.classList.contains("r-dropdown--active") ? (s.classList.remove("r-dropdown--active"), M.value = !1, (X = B.value) == null || X.blur(), (p = y.value) == null || p.blur(), d.value && o(d.value)) : (s == null || s.classList.add("r-dropdown--active"), M.value = !0, (Q = B.value) == null || Q.focus(), (k1 = y.value) == null || k1.focus(), d.value || (d.value = n(
|
|
9065
|
+
c.value || B.value
|
|
9066
|
+
)), d.value && u(d.value), s == null || s.childNodes.forEach((G) => {
|
|
9063
9067
|
G != null && G.classList && (Object == null || Object.values(G == null ? void 0 : G.classList).forEach((B1) => {
|
|
9064
9068
|
G == null || G.classList.add(`${B1}--active`);
|
|
9065
9069
|
}));
|
|
@@ -9080,7 +9084,9 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9080
9084
|
if (!L.value.find((Q) => Q.value === s.value))
|
|
9081
9085
|
L.value.push(s);
|
|
9082
9086
|
else {
|
|
9083
|
-
const Q = L.value.findIndex(
|
|
9087
|
+
const Q = L.value.findIndex(
|
|
9088
|
+
(k1) => k1.value === s.value
|
|
9089
|
+
);
|
|
9084
9090
|
L.value.splice(Q, 1), i("removeOption", s);
|
|
9085
9091
|
}
|
|
9086
9092
|
e.value = "", C.searchable && ((p = y.value) == null || p.focus());
|
|
@@ -9100,7 +9106,9 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9100
9106
|
if (t instanceof KeyboardEvent && t.key !== "Backspace" || e.value !== "")
|
|
9101
9107
|
return;
|
|
9102
9108
|
t.stopPropagation(), P();
|
|
9103
|
-
const X = L.value.findIndex(
|
|
9109
|
+
const X = L.value.findIndex(
|
|
9110
|
+
(p) => p.value === s.value
|
|
9111
|
+
);
|
|
9104
9112
|
L.value.splice(X, 1), i("removeOption", s), i("update:modelValue", L.value);
|
|
9105
9113
|
}
|
|
9106
9114
|
function J(t, s) {
|
|
@@ -9111,7 +9119,9 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9111
9119
|
const P = e.value;
|
|
9112
9120
|
if (P === "")
|
|
9113
9121
|
return;
|
|
9114
|
-
S.value.find(
|
|
9122
|
+
S.value.find(
|
|
9123
|
+
(Q) => Q.label === P
|
|
9124
|
+
) || (L.value.push({ value: P, label: P }), e.value = "", (p = y.value) == null || p.focus());
|
|
9115
9125
|
}
|
|
9116
9126
|
function h(t) {
|
|
9117
9127
|
var s;
|
|
@@ -9140,7 +9150,10 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9140
9150
|
}
|
|
9141
9151
|
const j = f(() => !C.multiple || !Array.isArray(C.modelValue) ? [] : C.modelValue.slice(0, C.maxVisibleChips)), z = f(() => !C.multiple || !Array.isArray(C.modelValue) ? 0 : Math.max(0, C.modelValue.length - C.maxVisibleChips));
|
|
9142
9152
|
return o2(() => {
|
|
9143
|
-
N(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute(
|
|
9153
|
+
N(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute(
|
|
9154
|
+
"content",
|
|
9155
|
+
"width=device-width, initial-scale=1, maximum-scale=1"
|
|
9156
|
+
);
|
|
9144
9157
|
}), W(
|
|
9145
9158
|
L,
|
|
9146
9159
|
(t) => {
|
|
@@ -9149,9 +9162,17 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9149
9162
|
{
|
|
9150
9163
|
deep: !0
|
|
9151
9164
|
}
|
|
9152
|
-
), W(
|
|
9153
|
-
|
|
9154
|
-
|
|
9165
|
+
), W(
|
|
9166
|
+
() => b.value,
|
|
9167
|
+
(t) => {
|
|
9168
|
+
N();
|
|
9169
|
+
}
|
|
9170
|
+
), W(
|
|
9171
|
+
() => M.value,
|
|
9172
|
+
(t) => {
|
|
9173
|
+
t && d.value ? u(d.value) : !t && d.value && o(d.value);
|
|
9174
|
+
}
|
|
9175
|
+
), q1(() => {
|
|
9155
9176
|
M.value && d.value && o(d.value);
|
|
9156
9177
|
}), (t, s) => (m(), a("div", {
|
|
9157
9178
|
id: t.id,
|
|
@@ -9266,7 +9287,11 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9266
9287
|
type: "text",
|
|
9267
9288
|
onInput: r1((p) => l1(P), ["prevent"]),
|
|
9268
9289
|
onKeydown: [
|
|
9269
|
-
L2((p) => $(
|
|
9290
|
+
L2((p) => $(
|
|
9291
|
+
p,
|
|
9292
|
+
L.value[L.value.length - 1],
|
|
9293
|
+
P
|
|
9294
|
+
), ["backspace"]),
|
|
9270
9295
|
L2((p) => J(p, P), ["enter"])
|
|
9271
9296
|
]
|
|
9272
9297
|
}, null, 42, u3), [
|
|
@@ -9325,7 +9350,12 @@ const i3 = ["id", "aria-disabled"], A3 = ["innerHTML"], e3 = ["id"], d3 = ["id"]
|
|
|
9325
9350
|
"r-dropdown-options__option--active": L.value.length === F.value.length,
|
|
9326
9351
|
"r-dropdown-options__option--disabled": !1
|
|
9327
9352
|
}]),
|
|
9328
|
-
onClick: r1((p) => x(
|
|
9353
|
+
onClick: r1((p) => x(
|
|
9354
|
+
p,
|
|
9355
|
+
{ label: C.selectAllText, value: "select-all" },
|
|
9356
|
+
P,
|
|
9357
|
+
X
|
|
9358
|
+
), ["prevent"])
|
|
9329
9359
|
}, [
|
|
9330
9360
|
Z("div", O3, [
|
|
9331
9361
|
Z("p", f3, v(C.selectAllText), 1)
|