@septkit/ui 0.0.67 → 0.0.69
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/button/button.vue_vue_type_script_setup_true_lang.js +20 -17
- package/dist/code/code-block.js +1 -1
- package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/diagram-layout/diagram-node-card.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/diagram-layout/diagram-node-group.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/dialecte/create-document-store.js +4 -3
- package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +44 -35
- package/dist/dialog/use-dialog-host.js +12 -2
- package/dist/dropdown/combobox-options.js +17 -0
- package/dist/dropdown/combobox.vue_vue_type_script_setup_true_lang.js +155 -65
- package/dist/explorer/explorer.js +1 -1
- package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +52 -48
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js +229 -0
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js +3 -0
- package/dist/external/.pnpm/{@dialecte_core@0.5.2/node_modules/@dialecte/core/dist/project-Bd3fSPam.js → @dialecte_core@0.6.1/node_modules/@dialecte/core/dist/project-sK-5Xc-5.js} +1391 -1248
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js +440 -0
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js +44305 -0
- package/dist/external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js +22 -0
- package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +117 -59
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +60 -57
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js +39 -3
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxLabel.js +38 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogDescription.js +30 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxGroup.js +27 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +97 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js +31 -0
- package/dist/icons/element-badge.js +5 -0
- package/dist/icons/element-badge.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/icons/index.js +4 -0
- package/dist/index.d.ts +1880 -81
- package/dist/index.js +36 -33
- package/dist/merge/{merge-preflight.js → check-files/components/merge-preflight.js} +1 -1
- package/dist/merge/check-files/components/merge-preflight.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/merge/check-files/flags.js +17 -0
- package/dist/merge/check-files/identity-warning.js +18 -0
- package/dist/merge/{merge-summary.js → confirm/components/merge-summary.js} +1 -1
- package/dist/merge/confirm/components/merge-summary.vue_vue_type_script_setup_true_lang.js +207 -0
- package/dist/merge/confirm/landings.js +34 -0
- package/dist/merge/confirm/outcome.js +178 -0
- package/dist/merge/confirm/summary.js +57 -0
- package/dist/merge/done/applied-counts.js +16 -0
- package/dist/merge/done/applied-focus.js +15 -0
- package/dist/merge/help.js +76 -0
- package/dist/merge/index.js +8 -7
- package/dist/merge/match/components/merge-map.js +5 -0
- package/dist/merge/match/components/merge-map.vue_vue_type_script_setup_true_lang.js +230 -0
- package/dist/merge/match/match.js +211 -0
- package/dist/merge/review/affix.js +14 -0
- package/dist/merge/review/change-badge.js +10 -0
- package/dist/merge/{decision-toggle.js → review/components/decision-toggle.js} +1 -1
- package/dist/merge/review/components/decision-toggle.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/merge/{element-detail.js → review/components/element-detail.js} +1 -1
- package/dist/merge/review/components/element-detail.vue_vue_type_script_setup_true_lang.js +210 -0
- package/dist/merge/{merge-tree.js → review/components/merge-tree.js} +1 -1
- package/dist/merge/review/components/merge-tree.vue_vue_type_script_setup_true_lang.js +192 -0
- package/dist/merge/{type-name-authority.js → review/components/type-name-authority.js} +1 -1
- package/dist/merge/{type-name-authority.vue_vue_type_script_setup_true_lang.js → review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js} +7 -6
- package/dist/merge/review/decision.js +12 -0
- package/dist/merge/review/detail.js +63 -0
- package/dist/merge/{merge-highlight.js → review/highlight.js} +2 -2
- package/dist/merge/review/marks.js +17 -0
- package/dist/merge/review/navigation.js +82 -0
- package/dist/merge/review/title.js +7 -0
- package/dist/merge/review/tree.js +138 -0
- package/dist/merge/session/components/merge-help.js +7 -0
- package/dist/merge/session/components/merge-help.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/merge/{merge-progress.js → session/components/merge-progress.js} +1 -1
- package/dist/merge/{merge-progress.vue_vue_type_script_setup_true_lang.js → session/components/merge-progress.vue_vue_type_script_setup_true_lang.js} +1 -1
- package/dist/merge/{merge-review.js → session/components/merge-review.js} +1 -1
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +894 -0
- package/dist/merge/session/merge.service.js +107 -0
- package/dist/merge/session/shortcuts.js +22 -0
- package/dist/merge/session/staged-writes.js +47 -0
- package/dist/merge/session/steps.js +21 -0
- package/dist/merge/{use-document-progress.js → session/use-document-progress.js} +1 -1
- package/dist/merge/session/use-merge-session.js +360 -0
- package/dist/merge/wording.js +124 -0
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.5.2/node_modules/@dialecte/core/dist/helpers.js +0 -142
- package/dist/external/.pnpm/@dialecte_core@0.5.2/node_modules/@dialecte/core/dist/index.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.5.2/node_modules/@dialecte/core/dist/utils-ERge2irW.js +0 -254
- package/dist/external/.pnpm/@dialecte_scl@0.5.0/node_modules/@dialecte/scl/dist/hooks-2Y_WzKF4.js +0 -33971
- package/dist/external/.pnpm/@dialecte_scl@0.5.0/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -22
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/eye-off.js +0 -22
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/eye.js +0 -13
- package/dist/merge/affix.js +0 -14
- package/dist/merge/build-view-model.js +0 -215
- package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +0 -40
- package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +0 -185
- package/dist/merge/merge-decision.js +0 -6
- package/dist/merge/merge-preflight.vue_vue_type_script_setup_true_lang.js +0 -41
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +0 -409
- package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +0 -98
- package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +0 -112
- package/dist/merge/merge.service.js +0 -80
- package/dist/merge/use-merge-session.js +0 -164
package/dist/external/.pnpm/@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "../../../../../../@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js";
|
|
2
|
+
import { T as e, V as t, i as n, s as r } from "../hooks-C05NpRNi.js";
|
|
3
|
+
//#region node_modules/.pnpm/@dialecte+scl@0.8.1/node_modules/@dialecte/scl/dist/v2019C1/index.js
|
|
4
|
+
var i = {
|
|
5
|
+
"cross-type-template-uuid": {
|
|
6
|
+
title: "Placeholder templateUuid reused across element types",
|
|
7
|
+
description: "One templateUuid is carried by elements of several different types, so it cannot identify a single template element — it is an authoring placeholder, not real lineage.",
|
|
8
|
+
fallback: "Template lineage is ignored for these elements: none is recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
9
|
+
},
|
|
10
|
+
"duplicate-instance-uuid": {
|
|
11
|
+
title: "Duplicate instance uuid",
|
|
12
|
+
description: "The same uuid is used by more than one element. Every instance uuid in an SCL must be unique, so uuid-based identity is ambiguous for the affected elements.",
|
|
13
|
+
fallback: "Identity by uuid is ambiguous for the affected elements: which of them a reference or a template element resolves to is not defined."
|
|
14
|
+
},
|
|
15
|
+
"template-uuid-type-mismatch": {
|
|
16
|
+
title: "templateUuid resolves to a different element type",
|
|
17
|
+
description: "A templateUuid points in-file to an element of a different type than the one carrying it. An instance cannot derive from a template of another type, so the lineage is inconsistent.",
|
|
18
|
+
fallback: "The mismatched lineage is ignored: the element is not recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as SCL_ERRORS, t as TEMPLATE_NAME, i as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, n as presentationScope };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h,
|
|
2
|
-
import { computed as
|
|
1
|
+
import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h, tryOnMounted as g, tryOnScopeDispose as _, until as v, useDebounceFn as y, useTimeoutFn as b, watchImmediate as x } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
2
|
+
import { computed as S, getCurrentInstance as C, nextTick as w, onMounted as T, ref as E, shallowReadonly as D, shallowRef as O, toRaw as k, toValue as A, unref as j, watch as M } from "vue";
|
|
3
3
|
//#region node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js
|
|
4
|
-
var
|
|
4
|
+
var N = s ? window : void 0;
|
|
5
5
|
s && window.document;
|
|
6
|
-
var
|
|
6
|
+
var P = s ? window.navigator : void 0;
|
|
7
7
|
s && window.location;
|
|
8
|
-
function
|
|
9
|
-
let t =
|
|
8
|
+
function F(e) {
|
|
9
|
+
let t = A(e);
|
|
10
10
|
return t?.$el ?? t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n =
|
|
14
|
-
let t = m(
|
|
12
|
+
function I(...e) {
|
|
13
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = S(() => {
|
|
14
|
+
let t = m(A(e[0])).filter((e) => e != null);
|
|
15
15
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
16
16
|
});
|
|
17
|
-
return
|
|
18
|
-
n.value?.map((e) =>
|
|
19
|
-
m(
|
|
20
|
-
m(
|
|
21
|
-
|
|
17
|
+
return x(() => [
|
|
18
|
+
n.value?.map((e) => F(e)) ?? [N].filter((e) => e != null),
|
|
19
|
+
m(A(n.value ? e[1] : e[0])),
|
|
20
|
+
m(j(n.value ? e[2] : e[1])),
|
|
21
|
+
A(n.value ? e[3] : e[2])
|
|
22
22
|
], ([e, n, r, i], a, o) => {
|
|
23
23
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
24
24
|
let s = u(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
@@ -27,33 +27,33 @@ function F(...e) {
|
|
|
27
27
|
});
|
|
28
28
|
}, { flush: "post" });
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let e =
|
|
32
|
-
return t &&
|
|
30
|
+
function L() {
|
|
31
|
+
let e = O(!1), t = C();
|
|
32
|
+
return t && T(() => {
|
|
33
33
|
e.value = !0;
|
|
34
34
|
}, t), e;
|
|
35
35
|
}
|
|
36
36
|
/* @__NO_SIDE_EFFECTS__ */
|
|
37
|
-
function L(e) {
|
|
38
|
-
let t = I();
|
|
39
|
-
return x(() => (t.value, !!e()));
|
|
40
|
-
}
|
|
41
37
|
function R(e) {
|
|
38
|
+
let t = L();
|
|
39
|
+
return S(() => (t.value, !!e()));
|
|
40
|
+
}
|
|
41
|
+
function z(e) {
|
|
42
42
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function B(...e) {
|
|
45
45
|
let t, n, r = {};
|
|
46
46
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
47
|
-
let { target: i =
|
|
48
|
-
return
|
|
49
|
-
e.repeat &&
|
|
47
|
+
let { target: i = N, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = z(t);
|
|
48
|
+
return I(i, a, (e) => {
|
|
49
|
+
e.repeat && A(s) || c(e) && n(e);
|
|
50
50
|
}, o);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ?
|
|
54
|
-
async function
|
|
52
|
+
function V(e, t, n) {
|
|
53
|
+
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? O(t) : E(t), p = O(!1), m = O(!1), h = O(void 0), g = 0;
|
|
54
|
+
async function _(n = 0, ...r) {
|
|
55
55
|
let i = g += 1;
|
|
56
|
-
s && (u.value =
|
|
56
|
+
s && (u.value = A(t)), h.value = void 0, p.value = !1, m.value = !0, n > 0 && await f(n);
|
|
57
57
|
let c = typeof e == "function" ? e(...r) : e;
|
|
58
58
|
try {
|
|
59
59
|
let e = await c;
|
|
@@ -64,18 +64,18 @@ function B(e, t, n) {
|
|
|
64
64
|
i === g && (m.value = !1);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
r &&
|
|
67
|
+
r && _(i);
|
|
68
68
|
let y = {
|
|
69
69
|
state: u,
|
|
70
70
|
isReady: p,
|
|
71
71
|
isLoading: m,
|
|
72
72
|
error: h,
|
|
73
|
-
execute:
|
|
74
|
-
executeImmediate: (...e) =>
|
|
73
|
+
execute: _,
|
|
74
|
+
executeImmediate: (...e) => _(0, ...e)
|
|
75
75
|
};
|
|
76
76
|
function b() {
|
|
77
77
|
return new Promise((e, t) => {
|
|
78
|
-
|
|
78
|
+
v(m).toBe(!1).then(() => e(y)).catch(t);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
@@ -85,11 +85,11 @@ function B(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let { controls: n = !1, navigator: r =
|
|
88
|
+
function H(e, t = {}) {
|
|
89
|
+
let { controls: n = !1, navigator: r = P } = t, a = /* @__PURE__ */ R(() => r && "permissions" in r), o = O(), s = typeof e == "string" ? { name: e } : e, c = O(), l = () => {
|
|
90
90
|
c.value = o.value?.state ?? "prompt";
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
I(o, "change", l, { passive: !0 });
|
|
93
93
|
let u = i(async () => {
|
|
94
94
|
if (a.value) {
|
|
95
95
|
if (!o.value) try {
|
|
@@ -99,7 +99,7 @@ function V(e, t = {}) {
|
|
|
99
99
|
} finally {
|
|
100
100
|
l();
|
|
101
101
|
}
|
|
102
|
-
if (n) return
|
|
102
|
+
if (n) return k(o.value);
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
return u(), n ? {
|
|
@@ -108,23 +108,23 @@ function V(e, t = {}) {
|
|
|
108
108
|
query: u
|
|
109
109
|
} : c;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
let { navigator: t =
|
|
111
|
+
function U(e = {}) {
|
|
112
|
+
let { navigator: t = P, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ R(() => t && "clipboard" in t), s = H("clipboard-read"), c = H("clipboard-write"), l = S(() => o.value || a), u = O(""), d = O(!1), f = O(!1), p = b(() => d.value = !1, i, { immediate: !1 }), m = 0;
|
|
113
113
|
async function h() {
|
|
114
|
-
let e = !(o.value &&
|
|
114
|
+
let e = !(o.value && x(s.value));
|
|
115
115
|
if (!e) try {
|
|
116
116
|
u.value = await t.clipboard.readText();
|
|
117
117
|
} catch {
|
|
118
118
|
e = !0;
|
|
119
119
|
}
|
|
120
|
-
e && (u.value =
|
|
120
|
+
e && (u.value = y());
|
|
121
121
|
}
|
|
122
|
-
l.value && n &&
|
|
122
|
+
l.value && n && I(["copy", "cut"], h, { passive: !0 });
|
|
123
123
|
async function g(e) {
|
|
124
|
-
let n = e ??
|
|
124
|
+
let n = e ?? A(r);
|
|
125
125
|
if (l.value && n != null) {
|
|
126
126
|
f.value = !0;
|
|
127
|
-
let e = !(o.value &&
|
|
127
|
+
let e = !(o.value && x(c.value));
|
|
128
128
|
if (!e) try {
|
|
129
129
|
let e = _(n);
|
|
130
130
|
await t.clipboard.write([e]);
|
|
@@ -146,39 +146,97 @@ function H(e = {}) {
|
|
|
146
146
|
let t = document.createElement("textarea");
|
|
147
147
|
t.value = e, t.style.position = "absolute", t.style.opacity = "0", t.setAttribute("readonly", ""), document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function y() {
|
|
150
150
|
var e, t;
|
|
151
151
|
return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function x(e) {
|
|
154
154
|
return e === "granted" || e === "prompt";
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
|
-
copyPending:
|
|
157
|
+
copyPending: D(f),
|
|
158
158
|
isSupported: l,
|
|
159
|
-
text:
|
|
160
|
-
copied:
|
|
159
|
+
text: D(u),
|
|
160
|
+
copied: D(d),
|
|
161
161
|
copy: g
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function W(e) {
|
|
165
165
|
return JSON.parse(JSON.stringify(e));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function G(e, t, n = {}) {
|
|
168
|
+
let { window: r = N, ...i } = n, a, o = /* @__PURE__ */ R(() => r && "ResizeObserver" in r), s = () => {
|
|
169
|
+
a &&= (a.disconnect(), void 0);
|
|
170
|
+
}, c = M(S(() => {
|
|
171
|
+
let t = A(e);
|
|
172
|
+
return Array.isArray(t) ? t.map((e) => F(e)) : [F(t)];
|
|
173
|
+
}), (e) => {
|
|
174
|
+
if (s(), o.value && r) {
|
|
175
|
+
a = new ResizeObserver(t);
|
|
176
|
+
for (let t of e) t && a.observe(t, i);
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
immediate: !0,
|
|
180
|
+
flush: "post"
|
|
181
|
+
}), l = () => {
|
|
182
|
+
s(), c();
|
|
183
|
+
};
|
|
184
|
+
return _(l), {
|
|
185
|
+
isSupported: o,
|
|
186
|
+
stop: l
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function K(e, t = {
|
|
190
|
+
width: 0,
|
|
191
|
+
height: 0
|
|
192
|
+
}, n = {}) {
|
|
193
|
+
let { window: r = N, box: i = "content-box" } = n, a = S(() => {
|
|
194
|
+
var t;
|
|
195
|
+
return (t = F(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
|
|
196
|
+
}), o = O(t.width), s = O(t.height), { stop: c } = G(e, ([t]) => {
|
|
197
|
+
let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
198
|
+
if (r && a.value) {
|
|
199
|
+
let t = F(e);
|
|
200
|
+
if (t) {
|
|
201
|
+
let e = t.getBoundingClientRect();
|
|
202
|
+
o.value = e.width, s.value = e.height;
|
|
203
|
+
}
|
|
204
|
+
} else if (n) {
|
|
205
|
+
let e = m(n);
|
|
206
|
+
o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
|
|
207
|
+
} else o.value = t.contentRect.width, s.value = t.contentRect.height;
|
|
208
|
+
}, n);
|
|
209
|
+
g(() => {
|
|
210
|
+
let n = F(e);
|
|
211
|
+
n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, s.value = "offsetHeight" in n ? n.offsetHeight : t.height);
|
|
212
|
+
});
|
|
213
|
+
let l = M(() => F(e), (e) => {
|
|
214
|
+
o.value = e ? t.width : 0, s.value = e ? t.height : 0;
|
|
215
|
+
});
|
|
216
|
+
function u() {
|
|
217
|
+
c(), l();
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
width: o,
|
|
221
|
+
height: s,
|
|
222
|
+
stop: u
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
function q(e, t, n, r = {}) {
|
|
168
226
|
var i, a;
|
|
169
|
-
let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p =
|
|
227
|
+
let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = C(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = l;
|
|
170
228
|
t ||= "modelValue", h ||= `update:${t.toString()}`;
|
|
171
|
-
let g = (e) => o ? typeof o == "function" ? o(e) :
|
|
229
|
+
let g = (e) => o ? typeof o == "function" ? o(e) : W(e) : e, _ = () => c(e[t]) ? g(e[t]) : d, v = (e) => {
|
|
172
230
|
f ? f(e) && m(h, e) : m(h, e);
|
|
173
231
|
};
|
|
174
232
|
if (s) {
|
|
175
|
-
let n =
|
|
176
|
-
return
|
|
177
|
-
r || (r = !0, n.value = g(e),
|
|
178
|
-
}),
|
|
233
|
+
let n = E(_()), r = !1;
|
|
234
|
+
return M(() => e[t], (e) => {
|
|
235
|
+
r || (r = !0, n.value = g(e), w(() => r = !1));
|
|
236
|
+
}), M(n, (n) => {
|
|
179
237
|
!r && (n !== e[t] || u) && v(n);
|
|
180
238
|
}, { deep: u }), n;
|
|
181
|
-
} else return
|
|
239
|
+
} else return S({
|
|
182
240
|
get() {
|
|
183
241
|
return _();
|
|
184
242
|
},
|
|
@@ -188,4 +246,4 @@ function W(e, t, n, r = {}) {
|
|
|
188
246
|
});
|
|
189
247
|
}
|
|
190
248
|
//#endregion
|
|
191
|
-
export {
|
|
249
|
+
export { W as cloneFnJSON, e as createEventHook, t as createFilterWrapper, n as createGlobalState, r as createSharedComposable, i as createSingletonPromise, a as debounceFilter, P as defaultNavigator, N as defaultWindow, o as getLifeCycleTarget, s as isClient, c as isDef, l as isIOS, u as isObject, d as noop, B as onKeyStroke, f as promiseTimeout, p as refAutoReset, m as toArray, h as tryOnBeforeUnmount, g as tryOnMounted, _ as tryOnScopeDispose, F as unrefElement, v as until, V as useAsyncState, U as useClipboard, y as useDebounceFn, K as useElementSize, I as useEventListener, L as useMounted, H as usePermission, G as useResizeObserver, R as useSupported, b as useTimeoutFn, q as useVModel, x as watchImmediate };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o,
|
|
1
|
+
import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o, onMounted as s, onScopeDispose as c, shallowReadonly as l, shallowRef as u, toValue as d, watch as f } from "vue";
|
|
2
2
|
//#region node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
function
|
|
4
|
-
return r() ? (
|
|
3
|
+
function p(e, t) {
|
|
4
|
+
return r() ? (c(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function m() {
|
|
7
7
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
8
8
|
e.delete(t);
|
|
9
9
|
};
|
|
@@ -11,7 +11,7 @@ function p() {
|
|
|
11
11
|
on: (n) => {
|
|
12
12
|
e.add(n);
|
|
13
13
|
let r = () => t(n);
|
|
14
|
-
return
|
|
14
|
+
return p(r), { off: r };
|
|
15
15
|
},
|
|
16
16
|
off: t,
|
|
17
17
|
trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
|
|
@@ -20,18 +20,18 @@ function p() {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function h(e) {
|
|
24
24
|
let n = !1, r, i = t(!0);
|
|
25
25
|
return ((...t) => (n ||= (r = i.run(() => e(...t)), !0), r));
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var g = typeof window < "u" && typeof document < "u";
|
|
28
28
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var _ = (e) => e !== void 0, v = Object.prototype.toString, y = (e) => v.call(e) === "[object Object]", b = () => {}, x = /* @__PURE__ */ S();
|
|
30
|
+
function S() {
|
|
31
31
|
var e, t;
|
|
32
|
-
return
|
|
32
|
+
return g && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function C(e, t) {
|
|
35
35
|
function n(...n) {
|
|
36
36
|
return new Promise((r, i) => {
|
|
37
37
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -43,12 +43,12 @@ function S(e, t) {
|
|
|
43
43
|
}
|
|
44
44
|
return n;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
let n, r, i =
|
|
48
|
-
clearTimeout(e), i(), i =
|
|
46
|
+
function w(e, t = {}) {
|
|
47
|
+
let n, r, i = b, a = (e) => {
|
|
48
|
+
clearTimeout(e), i(), i = b;
|
|
49
49
|
}, o;
|
|
50
50
|
return (s) => {
|
|
51
|
-
let c =
|
|
51
|
+
let c = d(e), l = d(t.maxWait);
|
|
52
52
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
53
53
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
54
54
|
n && a(n), r = void 0, e(o());
|
|
@@ -58,12 +58,12 @@ function C(e, t = {}) {
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function T(e, t = !1, n = "Timeout") {
|
|
62
62
|
return new Promise((r, i) => {
|
|
63
63
|
t ? setTimeout(i, e, n) : setTimeout(r, e);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function E(e) {
|
|
67
67
|
let t;
|
|
68
68
|
function n() {
|
|
69
69
|
return t ||= e(), t;
|
|
@@ -73,25 +73,25 @@ function T(e) {
|
|
|
73
73
|
t = void 0, e && await e;
|
|
74
74
|
}, n;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function D(e) {
|
|
77
77
|
return Array.isArray(e) ? e : [e];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function O(e) {
|
|
80
80
|
return e || n();
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (!
|
|
82
|
+
function k(e) {
|
|
83
|
+
if (!g) return e;
|
|
84
84
|
let n = 0, r, i, a = () => {
|
|
85
85
|
--n, i && n <= 0 && (i.stop(), r = void 0, i = void 0);
|
|
86
86
|
};
|
|
87
|
-
return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))),
|
|
87
|
+
return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), p(a), r));
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function A(t, n = 1e4) {
|
|
90
90
|
return e((e, r) => {
|
|
91
|
-
let i =
|
|
92
|
-
i =
|
|
93
|
-
},
|
|
94
|
-
return
|
|
91
|
+
let i = d(t), a, o = () => setTimeout(() => {
|
|
92
|
+
i = d(t), r();
|
|
93
|
+
}, d(n));
|
|
94
|
+
return p(() => {
|
|
95
95
|
clearTimeout(a);
|
|
96
96
|
}), {
|
|
97
97
|
get() {
|
|
@@ -103,16 +103,19 @@ function k(t, n = 1e4) {
|
|
|
103
103
|
};
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function j(e, t = 200, n = {}) {
|
|
107
|
+
return C(w(t, n), e);
|
|
108
|
+
}
|
|
109
|
+
function M(e, t) {
|
|
110
|
+
O(t) && o(e, t);
|
|
108
111
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
112
|
+
function N(e, t = !0, n) {
|
|
113
|
+
O(n) ? s(e, n) : t ? e() : a(e);
|
|
111
114
|
}
|
|
112
|
-
function
|
|
115
|
+
function P(e, t = !1) {
|
|
113
116
|
function n(n, { flush: r = "sync", deep: i = !1, timeout: o, throwOnTimeout: s } = {}) {
|
|
114
117
|
let c = null, l = [new Promise((o) => {
|
|
115
|
-
c =
|
|
118
|
+
c = f(e, (e) => {
|
|
116
119
|
n(e) !== t && (c ? c() : a(() => c?.()), o(e));
|
|
117
120
|
}, {
|
|
118
121
|
flush: r,
|
|
@@ -120,12 +123,12 @@ function M(e, t = !1) {
|
|
|
120
123
|
immediate: !0
|
|
121
124
|
});
|
|
122
125
|
})];
|
|
123
|
-
return o != null && l.push(
|
|
126
|
+
return o != null && l.push(T(o, s).then(() => d(e)).finally(() => c?.())), Promise.race(l);
|
|
124
127
|
}
|
|
125
128
|
function r(r, o) {
|
|
126
129
|
if (!i(r)) return n((e) => e === r, o);
|
|
127
|
-
let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout:
|
|
128
|
-
p =
|
|
130
|
+
let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: u } = o ?? {}, p = null, m = [new Promise((n) => {
|
|
131
|
+
p = f([e, r], ([e, r]) => {
|
|
129
132
|
t !== (e === r) && (p ? p() : a(() => p?.()), n(e));
|
|
130
133
|
}, {
|
|
131
134
|
flush: s,
|
|
@@ -133,7 +136,7 @@ function M(e, t = !1) {
|
|
|
133
136
|
immediate: !0
|
|
134
137
|
});
|
|
135
138
|
})];
|
|
136
|
-
return l != null && m.push(
|
|
139
|
+
return l != null && m.push(T(l, u).then(() => d(e)).finally(() => (p?.(), d(e)))), Promise.race(m);
|
|
137
140
|
}
|
|
138
141
|
function o(e) {
|
|
139
142
|
return n((e) => !!e, e);
|
|
@@ -147,10 +150,10 @@ function M(e, t = !1) {
|
|
|
147
150
|
function l(e) {
|
|
148
151
|
return n(Number.isNaN, e);
|
|
149
152
|
}
|
|
150
|
-
function
|
|
153
|
+
function u(e, t) {
|
|
151
154
|
return n((t) => {
|
|
152
155
|
let n = Array.from(t);
|
|
153
|
-
return n.includes(e) || n.includes(
|
|
156
|
+
return n.includes(e) || n.includes(d(e));
|
|
154
157
|
}, t);
|
|
155
158
|
}
|
|
156
159
|
function p(e) {
|
|
@@ -160,13 +163,13 @@ function M(e, t = !1) {
|
|
|
160
163
|
let r = -1;
|
|
161
164
|
return n(() => (r += 1, r >= e), t);
|
|
162
165
|
}
|
|
163
|
-
return Array.isArray(
|
|
166
|
+
return Array.isArray(d(e)) ? {
|
|
164
167
|
toMatch: n,
|
|
165
|
-
toContains:
|
|
168
|
+
toContains: u,
|
|
166
169
|
changed: p,
|
|
167
170
|
changedTimes: m,
|
|
168
171
|
get not() {
|
|
169
|
-
return
|
|
172
|
+
return P(e, !t);
|
|
170
173
|
}
|
|
171
174
|
} : {
|
|
172
175
|
toMatch: n,
|
|
@@ -178,37 +181,37 @@ function M(e, t = !1) {
|
|
|
178
181
|
changed: p,
|
|
179
182
|
changedTimes: m,
|
|
180
183
|
get not() {
|
|
181
|
-
return
|
|
184
|
+
return P(e, !t);
|
|
182
185
|
}
|
|
183
186
|
};
|
|
184
187
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
188
|
+
function F(e) {
|
|
189
|
+
return P(e);
|
|
187
190
|
}
|
|
188
|
-
function
|
|
189
|
-
let { immediate: r = !0, immediateCallback: i = !1 } = n, a =
|
|
191
|
+
function I(e, t, n = {}) {
|
|
192
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = u(!1), o;
|
|
190
193
|
function s() {
|
|
191
194
|
o &&= (clearTimeout(o), void 0);
|
|
192
195
|
}
|
|
193
|
-
function
|
|
196
|
+
function c() {
|
|
194
197
|
a.value = !1, s();
|
|
195
198
|
}
|
|
196
|
-
function
|
|
199
|
+
function f(...n) {
|
|
197
200
|
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
198
201
|
a.value = !1, o = void 0, e(...n);
|
|
199
|
-
},
|
|
202
|
+
}, d(t));
|
|
200
203
|
}
|
|
201
|
-
return r && (a.value = !0,
|
|
202
|
-
isPending:
|
|
203
|
-
start:
|
|
204
|
-
stop:
|
|
204
|
+
return r && (a.value = !0, g && f()), p(c), {
|
|
205
|
+
isPending: l(a),
|
|
206
|
+
start: f,
|
|
207
|
+
stop: c
|
|
205
208
|
};
|
|
206
209
|
}
|
|
207
|
-
function
|
|
208
|
-
return
|
|
210
|
+
function L(e, t, n) {
|
|
211
|
+
return f(e, t, {
|
|
209
212
|
...n,
|
|
210
213
|
immediate: !0
|
|
211
214
|
});
|
|
212
215
|
}
|
|
213
216
|
//#endregion
|
|
214
|
-
export {
|
|
217
|
+
export { m as createEventHook, C as createFilterWrapper, h as createGlobalState, k as createSharedComposable, E as createSingletonPromise, w as debounceFilter, O as getLifeCycleTarget, g as isClient, _ as isDef, x as isIOS, y as isObject, b as noop, T as promiseTimeout, A as refAutoReset, D as toArray, M as tryOnBeforeUnmount, N as tryOnMounted, p as tryOnScopeDispose, F as until, j as useDebounceFn, I as useTimeoutFn, L as watchImmediate };
|
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
import { createContext as e } from "../shared/createContext.js";
|
|
2
|
-
import "
|
|
2
|
+
import { useId as t } from "../shared/useId.js";
|
|
3
|
+
import { ListboxGroup_default as n } from "../Listbox/ListboxGroup.js";
|
|
4
|
+
import { injectComboboxRootContext as r } from "./ComboboxRoot.js";
|
|
5
|
+
import { computed as i, createBlock as a, defineComponent as o, mergeProps as s, onMounted as c, onUnmounted as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
|
|
3
6
|
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js
|
|
4
|
-
var [
|
|
7
|
+
var [m, h] = /*#__PURE__*/ e("ComboboxGroup"), g = /* @__PURE__ */ o({
|
|
8
|
+
__name: "ComboboxGroup",
|
|
9
|
+
props: {
|
|
10
|
+
asChild: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
required: !1
|
|
13
|
+
},
|
|
14
|
+
as: {
|
|
15
|
+
type: null,
|
|
16
|
+
required: !1
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(e) {
|
|
20
|
+
let o = e, m = t(void 0, "reka-combobox-group"), g = r(), _ = i(() => g.ignoreFilter.value ? !0 : g.filterSearch.value ? g.filterState.value.groups.has(m) : !0), v = h({
|
|
21
|
+
id: m,
|
|
22
|
+
labelId: ""
|
|
23
|
+
});
|
|
24
|
+
return c(() => {
|
|
25
|
+
g.allGroups.value.has(m) || g.allGroups.value.set(m, /* @__PURE__ */ new Set());
|
|
26
|
+
}), l(() => {
|
|
27
|
+
g.allGroups.value.delete(m);
|
|
28
|
+
}), (e, t) => (u(), a(f(n), s({
|
|
29
|
+
id: f(m),
|
|
30
|
+
"aria-labelledby": f(v).labelId
|
|
31
|
+
}, o, { hidden: _.value ? void 0 : !0 }), {
|
|
32
|
+
default: p(() => [d(e.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, [
|
|
35
|
+
"id",
|
|
36
|
+
"aria-labelledby",
|
|
37
|
+
"hidden"
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
5
41
|
//#endregion
|
|
6
|
-
export {
|
|
42
|
+
export { g as ComboboxGroup_default, m as injectComboboxGroupContext };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useForwardExpose as e } from "../shared/useForwardExpose.js";
|
|
2
|
+
import { useId as t } from "../shared/useId.js";
|
|
3
|
+
import { Primitive as n } from "../Primitive/Primitive.js";
|
|
4
|
+
import { injectComboboxGroupContext as r } from "./ComboboxGroup.js";
|
|
5
|
+
import { createBlock as i, defineComponent as a, mergeProps as o, openBlock as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
6
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxLabel.js
|
|
7
|
+
var d = /* @__PURE__ */ a({
|
|
8
|
+
__name: "ComboboxLabel",
|
|
9
|
+
props: {
|
|
10
|
+
for: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !1
|
|
13
|
+
},
|
|
14
|
+
asChild: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
as: {
|
|
19
|
+
type: null,
|
|
20
|
+
required: !1,
|
|
21
|
+
default: "div"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(a) {
|
|
25
|
+
let d = a;
|
|
26
|
+
e();
|
|
27
|
+
let f = r({
|
|
28
|
+
id: "",
|
|
29
|
+
labelId: ""
|
|
30
|
+
});
|
|
31
|
+
return f.labelId ||= t(void 0, "reka-combobox-group-label"), (e, t) => (s(), i(l(n), o(d, { id: l(f).labelId }), {
|
|
32
|
+
default: u(() => [c(e.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["id"]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { d as ComboboxLabel_default };
|