@septkit/ui 0.0.67 → 0.0.68
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.0/node_modules/@dialecte/scl/dist/hooks-VMnZqbr-.js +44305 -0
- package/dist/external/.pnpm/@dialecte_scl@0.8.0/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as e, createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a } from "vue";
|
|
2
2
|
//#region lib/button/button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var o = /*@__PURE__*/ n({
|
|
3
|
+
var o = ["disabled"], s = /*@__PURE__*/ n({
|
|
4
4
|
__name: "button",
|
|
5
5
|
props: {
|
|
6
6
|
color: {},
|
|
@@ -11,7 +11,7 @@ var o = /*@__PURE__*/ n({
|
|
|
11
11
|
modifier: {}
|
|
12
12
|
},
|
|
13
13
|
setup(n) {
|
|
14
|
-
let
|
|
14
|
+
let s = n, c = e(() => ({
|
|
15
15
|
neutral: "btn-neutral",
|
|
16
16
|
primary: "btn-primary",
|
|
17
17
|
secondary: "btn-secondary",
|
|
@@ -21,38 +21,41 @@ var o = /*@__PURE__*/ n({
|
|
|
21
21
|
warning: "btn-warning",
|
|
22
22
|
error: "btn-error",
|
|
23
23
|
undefined: ""
|
|
24
|
-
})[
|
|
24
|
+
})[s.color ?? "undefined"]), l = e(() => ({
|
|
25
25
|
outline: "btn-outline",
|
|
26
26
|
dash: "btn-dash",
|
|
27
27
|
soft: "btn-soft",
|
|
28
28
|
ghost: "btn-ghost",
|
|
29
29
|
link: "btn-link",
|
|
30
30
|
undefined: ""
|
|
31
|
-
})[
|
|
31
|
+
})[s.variant ?? "undefined"]), u = e(() => ({
|
|
32
32
|
xs: "btn-xs",
|
|
33
33
|
sm: "btn-sm",
|
|
34
34
|
md: "btn-md",
|
|
35
35
|
lg: "btn-lg",
|
|
36
36
|
xl: "btn-xl",
|
|
37
37
|
undefined: ""
|
|
38
|
-
})[
|
|
38
|
+
})[s.size ?? "undefined"]), d = e(() => ({
|
|
39
39
|
wide: "btn-wide",
|
|
40
40
|
block: "btn-block",
|
|
41
41
|
square: "btn-square",
|
|
42
42
|
circle: "btn-circle",
|
|
43
43
|
undefined: ""
|
|
44
|
-
})[
|
|
45
|
-
return (e,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
})[s.modifier ?? "undefined"]);
|
|
45
|
+
return (e, s) => (i(), t("button", {
|
|
46
|
+
class: r(["btn", [
|
|
47
|
+
c.value,
|
|
48
|
+
l.value,
|
|
49
|
+
u.value,
|
|
50
|
+
d.value,
|
|
51
|
+
{
|
|
52
|
+
"btn-active": n.active,
|
|
53
|
+
"btn-disabled": n.disabled
|
|
54
|
+
}
|
|
55
|
+
]]),
|
|
56
|
+
disabled: n.disabled
|
|
57
|
+
}, [a(e.$slots, "default")], 10, o));
|
|
55
58
|
}
|
|
56
59
|
});
|
|
57
60
|
//#endregion
|
|
58
|
-
export {
|
|
61
|
+
export { s as default };
|
package/dist/code/code-block.js
CHANGED
|
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./code-block.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region lib/code/code-block.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-de12066f"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -10,7 +10,7 @@ var v = {
|
|
|
10
10
|
class: "toolbar flex items-center justify-end gap-1"
|
|
11
11
|
}, y = { class: "code-scroll min-h-0 flex-1 overflow-auto" }, b = ["innerHTML"], x = {
|
|
12
12
|
key: 1,
|
|
13
|
-
class: "grid h-full place-items-center p-4 text-sm
|
|
13
|
+
class: "empty grid h-full place-items-center p-4 text-sm"
|
|
14
14
|
}, S = /*@__PURE__*/ u({
|
|
15
15
|
__name: "code-block",
|
|
16
16
|
props: {
|
|
@@ -3,6 +3,7 @@ import t from "../tooltip/floating-tooltip.js";
|
|
|
3
3
|
import "../tooltip/index.js";
|
|
4
4
|
import { ELEMENT_TO_COLOR as n } from "../icons/element-color-map.generated.js";
|
|
5
5
|
import { ELEMENT_TO_ICON as r } from "../icons/element-icon-mapper.js";
|
|
6
|
+
import "../icons/index.js";
|
|
6
7
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, renderList as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b, withModifiers as x } from "vue";
|
|
7
8
|
//#region lib/diagram-layout/diagram-node-card.vue?vue&type=script&setup=true&lang.ts
|
|
8
9
|
var S = [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import e from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/chevron-down.js";
|
|
2
2
|
import t from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/chevron-right.js";
|
|
3
3
|
import { ELEMENT_TO_COLOR as n } from "../icons/element-color-map.generated.js";
|
|
4
|
+
import "../icons/index.js";
|
|
4
5
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _ } from "vue";
|
|
5
6
|
//#region lib/diagram-layout/diagram-node-group.vue?vue&type=script&setup=true&lang.ts
|
|
6
7
|
var v = ["data-testid"], y = [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
1
|
+
import { l as e } from "../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { ht as t } from "../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/project-sK-5Xc-5.js";
|
|
4
|
+
import "../external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js";
|
|
4
5
|
import { computed as n, shallowRef as r } from "vue";
|
|
5
6
|
//#region lib/dialecte/create-document-store.ts
|
|
6
7
|
function i(i) {
|
|
@@ -14,11 +14,11 @@ var p = /*@__PURE__*/ o({
|
|
|
14
14
|
}, h = r(() => p.feedback.value ? "sm" : p.active.value?.options.size), g = r(() => {
|
|
15
15
|
let e = p.feedback.value;
|
|
16
16
|
return e ? e.title ?? m[e.variant] : p.active.value?.options.title;
|
|
17
|
-
}), _ = r(() => p.feedback.value ? !0 : p.active.value?.options.closable ?? !0),
|
|
18
|
-
function
|
|
17
|
+
}), _ = r(() => p.feedback.value ? void 0 : p.active.value?.options.description), v = r(() => p.feedback.value ? !0 : p.active.value?.options.closable ?? !0), y = r(() => p.feedback.value ? void 0 : p.active.value?.options.scoped);
|
|
18
|
+
function b(e) {
|
|
19
19
|
e || p.close();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function x() {
|
|
22
22
|
let e = p.feedback.value?.onRetry;
|
|
23
23
|
p.dismissFeedback(), e?.();
|
|
24
24
|
}
|
|
@@ -26,9 +26,10 @@ var p = /*@__PURE__*/ o({
|
|
|
26
26
|
open: d(p).open.value,
|
|
27
27
|
size: h.value,
|
|
28
28
|
title: g.value,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
description: _.value,
|
|
30
|
+
closable: v.value,
|
|
31
|
+
scoped: y.value,
|
|
32
|
+
"onUpdate:open": b
|
|
32
33
|
}, {
|
|
33
34
|
default: f(() => [d(p).feedback.value ? (l(), i(t, {
|
|
34
35
|
key: 0,
|
|
@@ -39,7 +40,7 @@ var p = /*@__PURE__*/ o({
|
|
|
39
40
|
"retry-label": d(p).feedback.value.retryLabel,
|
|
40
41
|
"auto-close-ms": d(p).feedback.value.autoCloseMs,
|
|
41
42
|
onDismiss: r[0] ||= (e) => d(p).dismissFeedback(),
|
|
42
|
-
onRetry:
|
|
43
|
+
onRetry: x
|
|
43
44
|
}, null, 8, [
|
|
44
45
|
"variant",
|
|
45
46
|
"message",
|
|
@@ -53,6 +54,7 @@ var p = /*@__PURE__*/ o({
|
|
|
53
54
|
"open",
|
|
54
55
|
"size",
|
|
55
56
|
"title",
|
|
57
|
+
"description",
|
|
56
58
|
"closable",
|
|
57
59
|
"scoped"
|
|
58
60
|
]));
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { DialogRoot_default as e } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js";
|
|
2
2
|
import { DialogContent_default as t } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContent.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import a from "../external/.pnpm
|
|
7
|
-
import
|
|
3
|
+
import { DialogDescription_default as n } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogDescription.js";
|
|
4
|
+
import { DialogOverlay_default as r } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlay.js";
|
|
5
|
+
import { DialogPortal_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.js";
|
|
6
|
+
import { DialogTitle_default as a } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js";
|
|
7
|
+
import o from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js";
|
|
8
|
+
import { computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, mergeProps as h, normalizeClass as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
8
9
|
//#region lib/dialog/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
-
key:
|
|
10
|
+
var S = { class: "flex items-center justify-between gap-2 p-2" }, C = {
|
|
11
|
+
key: 1,
|
|
11
12
|
class: "mt-3 px-4 pb-4"
|
|
12
|
-
},
|
|
13
|
+
}, w = /*@__PURE__*/ m({
|
|
13
14
|
__name: "dialog",
|
|
14
15
|
props: {
|
|
15
16
|
open: { type: Boolean },
|
|
16
17
|
title: {},
|
|
18
|
+
description: {},
|
|
17
19
|
size: { default: "md" },
|
|
18
20
|
closable: {
|
|
19
21
|
type: Boolean,
|
|
@@ -22,46 +24,53 @@ var b = { class: "flex items-center justify-between gap-2 p-2" }, x = {
|
|
|
22
24
|
scoped: { type: Boolean }
|
|
23
25
|
},
|
|
24
26
|
emits: ["update:open"],
|
|
25
|
-
setup(
|
|
26
|
-
let
|
|
27
|
+
setup(m, { emit: w }) {
|
|
28
|
+
let T = m, E = w, D = s(() => T.size === "full" ? "inset-0" : `left-1/2 top-1/2 max-h-[90%] -translate-x-1/2 -translate-y-1/2 rounded-box ${{
|
|
27
29
|
sm: "max-w-sm",
|
|
28
30
|
md: "max-w-md",
|
|
29
31
|
lg: "max-w-2xl",
|
|
30
32
|
xl: "max-w-5xl",
|
|
31
33
|
fit: "w-fit max-w-fit"
|
|
32
|
-
}[
|
|
33
|
-
function
|
|
34
|
-
e ||
|
|
34
|
+
}[T.size]}`), O = s(() => T.scoped ? "absolute" : "fixed");
|
|
35
|
+
function k(e) {
|
|
36
|
+
e || E("update:open", !1);
|
|
35
37
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
+
function A(e) {
|
|
39
|
+
T.closable || e.preventDefault();
|
|
38
40
|
}
|
|
39
|
-
return (
|
|
40
|
-
open:
|
|
41
|
-
"onUpdate:open":
|
|
41
|
+
return (s, w) => (_(), c(b(e), {
|
|
42
|
+
open: m.open,
|
|
43
|
+
"onUpdate:open": k
|
|
42
44
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
default:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
default: y(() => [d(_(p.title ?? "Dialog"), 1)]),
|
|
45
|
+
default: x(() => [p(b(i), { disabled: m.scoped }, {
|
|
46
|
+
default: x(() => [p(b(r), { class: g([O.value, "inset-0 z-40 bg-black/40"]) }, null, 8, ["class"]), p(b(t), h({ class: ["z-50 flex flex-col overflow-auto bg-base-100 text-base-content shadow-xl", [O.value, D.value]] }, m.description ? {} : { "aria-describedby": void 0 }, {
|
|
47
|
+
onEscapeKeyDown: A,
|
|
48
|
+
onPointerDownOutside: A
|
|
49
|
+
}), {
|
|
50
|
+
default: x(() => [
|
|
51
|
+
d("header", S, [p(b(a), { class: g(m.title ? "text-base font-medium" : "sr-only") }, {
|
|
52
|
+
default: x(() => [f(y(m.title ?? "Dialog"), 1)]),
|
|
52
53
|
_: 1
|
|
53
|
-
}, 8, ["class"]),
|
|
54
|
+
}, 8, ["class"]), m.closable ? (_(), u("button", {
|
|
54
55
|
key: 0,
|
|
55
56
|
type: "button",
|
|
56
57
|
class: "btn btn-sm btn-circle btn-ghost -mr-1",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
"aria-label": "Close",
|
|
59
|
+
onClick: w[0] ||= (e) => E("update:open", !1)
|
|
60
|
+
}, [p(b(o), { class: "h-4 w-4" })])) : l("", !0)]),
|
|
61
|
+
m.description ? (_(), c(b(n), {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "sr-only"
|
|
64
|
+
}, {
|
|
65
|
+
default: x(() => [f(y(m.description), 1)]),
|
|
66
|
+
_: 1
|
|
67
|
+
})) : l("", !0),
|
|
68
|
+
v(s.$slots, "header"),
|
|
69
|
+
d("div", { class: g(["min-h-0 flex-1", m.size === "full" ? "" : "px-4 pb-4"]) }, [v(s.$slots, "default")], 2),
|
|
70
|
+
s.$slots.footer ? (_(), u("footer", C, [v(s.$slots, "footer")])) : l("", !0)
|
|
62
71
|
]),
|
|
63
72
|
_: 3
|
|
64
|
-
},
|
|
73
|
+
}, 16, ["class"])]),
|
|
65
74
|
_: 3
|
|
66
75
|
}, 8, ["disabled"])]),
|
|
67
76
|
_: 3
|
|
@@ -69,4 +78,4 @@ var b = { class: "flex items-center justify-between gap-2 p-2" }, x = {
|
|
|
69
78
|
}
|
|
70
79
|
});
|
|
71
80
|
//#endregion
|
|
72
|
-
export {
|
|
81
|
+
export { w as default };
|
|
@@ -27,7 +27,16 @@ function a() {
|
|
|
27
27
|
function d() {
|
|
28
28
|
a.value = void 0, n.value || (e.value = !1);
|
|
29
29
|
}
|
|
30
|
-
function f() {
|
|
30
|
+
function f(e) {
|
|
31
|
+
n.value &&= {
|
|
32
|
+
...n.value,
|
|
33
|
+
options: {
|
|
34
|
+
...n.value.options,
|
|
35
|
+
closable: e
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function p() {
|
|
31
40
|
e.value = !1, n.value = void 0, a.value = void 0;
|
|
32
41
|
}
|
|
33
42
|
return {
|
|
@@ -39,7 +48,8 @@ function a() {
|
|
|
39
48
|
showSuccess: l,
|
|
40
49
|
showWarning: u,
|
|
41
50
|
dismissFeedback: d,
|
|
42
|
-
|
|
51
|
+
setClosable: f,
|
|
52
|
+
close: p
|
|
43
53
|
};
|
|
44
54
|
}
|
|
45
55
|
var o = Symbol("septkit-dialog-host");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region lib/dropdown/combobox-options.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let { options: t, search: n, searchText: r, groupOf: i, limit: a } = e, o = n.trim().toLowerCase(), s = o ? t.filter((e) => r(e).toLowerCase().includes(o)) : t, c = a === void 0 ? s : s.slice(0, a), l = [];
|
|
4
|
+
for (let e of c) {
|
|
5
|
+
let t = i?.(e) ?? "", n = l.find((e) => e.label === t);
|
|
6
|
+
n ? n.items.push(e) : l.push({
|
|
7
|
+
label: t,
|
|
8
|
+
items: [e]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
groups: l,
|
|
13
|
+
more: s.length - c.length
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as arrangeOptions };
|
|
@@ -2,19 +2,28 @@ import { ComboboxRoot_default as e } from "../external/.pnpm/reka-ui@2.10.1_vue@
|
|
|
2
2
|
import { ComboboxAnchor_default as t } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js";
|
|
3
3
|
import { ComboboxContent_default as n } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxContent.js";
|
|
4
4
|
import { ComboboxEmpty_default as r } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import u from "../external/.pnpm
|
|
12
|
-
import d from "../external/.pnpm
|
|
13
|
-
import
|
|
5
|
+
import { ComboboxGroup_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js";
|
|
6
|
+
import { ComboboxInput_default as a } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxInput.js";
|
|
7
|
+
import { ComboboxItem_default as o } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItem.js";
|
|
8
|
+
import { ComboboxItemIndicator_default as s } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js";
|
|
9
|
+
import { ComboboxLabel_default as c } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxLabel.js";
|
|
10
|
+
import { ComboboxPortal_default as l } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxPortal.js";
|
|
11
|
+
import { ComboboxTrigger_default as u } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js";
|
|
12
|
+
import { ComboboxViewport_default as d } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js";
|
|
13
|
+
import f from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/check.js";
|
|
14
|
+
import p from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/chevron-down.js";
|
|
15
|
+
import { arrangeOptions as m } from "./combobox-options.js";
|
|
16
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, mergeModels as w, nextTick as T, normalizeClass as E, openBlock as D, ref as O, renderList as k, renderSlot as A, toDisplayString as j, unref as M, useModel as N, withCtx as P } from "vue";
|
|
14
17
|
//#region lib/dropdown/combobox.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
18
|
+
var F = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "text-base-content/80 text-xs text-center py-2"
|
|
21
|
+
}, I = { class: "text-xs" }, L = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "px-2 py-1.5 text-xs text-base-content/80"
|
|
24
|
+
}, R = /*@__PURE__*/ C({
|
|
16
25
|
__name: "combobox",
|
|
17
|
-
props: /*@__PURE__*/
|
|
26
|
+
props: /*@__PURE__*/ w({
|
|
18
27
|
options: {},
|
|
19
28
|
displayValue: {},
|
|
20
29
|
placeholder: {},
|
|
@@ -22,54 +31,103 @@ var k = { class: "text-xs" }, A = /*@__PURE__*/ y({
|
|
|
22
31
|
color: { default: "primary" },
|
|
23
32
|
variant: {},
|
|
24
33
|
size: { default: "md" },
|
|
25
|
-
disabled: { type: Boolean }
|
|
34
|
+
disabled: { type: Boolean },
|
|
35
|
+
getKey: {},
|
|
36
|
+
searchText: {},
|
|
37
|
+
groupOf: {},
|
|
38
|
+
limit: {},
|
|
39
|
+
actionLabel: {},
|
|
40
|
+
ariaLabel: {},
|
|
41
|
+
ariaDescribedby: {}
|
|
26
42
|
}, {
|
|
27
43
|
modelValue: { default: null },
|
|
28
44
|
modelModifiers: {}
|
|
29
45
|
}),
|
|
30
|
-
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
let
|
|
33
|
-
"input-neutral":
|
|
34
|
-
"input-primary":
|
|
35
|
-
"input-secondary":
|
|
36
|
-
"input-accent":
|
|
37
|
-
"input-info":
|
|
38
|
-
"input-success":
|
|
39
|
-
"input-warning":
|
|
40
|
-
"input-error":
|
|
41
|
-
"input-ghost":
|
|
42
|
-
"input-bordered":
|
|
43
|
-
"input-soft":
|
|
44
|
-
"input-dash":
|
|
45
|
-
"input-xs":
|
|
46
|
-
"input-sm":
|
|
47
|
-
"input-md":
|
|
48
|
-
"input-lg":
|
|
49
|
-
"input-xl":
|
|
50
|
-
}))
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
emits: /*@__PURE__*/ w(["action"], ["update:modelValue"]),
|
|
47
|
+
setup(C, { emit: w }) {
|
|
48
|
+
let R = C, z = w, B = N(C, "modelValue"), V = { action: !0 }, H = O(""), U = O(), W = g(() => ({
|
|
49
|
+
"input-neutral": R.color === "neutral",
|
|
50
|
+
"input-primary": R.color === "primary",
|
|
51
|
+
"input-secondary": R.color === "secondary",
|
|
52
|
+
"input-accent": R.color === "accent",
|
|
53
|
+
"input-info": R.color === "info",
|
|
54
|
+
"input-success": R.color === "success",
|
|
55
|
+
"input-warning": R.color === "warning",
|
|
56
|
+
"input-error": R.color === "error",
|
|
57
|
+
"input-ghost": R.variant === "ghost",
|
|
58
|
+
"input-bordered": R.variant === "bordered",
|
|
59
|
+
"input-soft": R.variant === "soft",
|
|
60
|
+
"input-dash": R.variant === "dash",
|
|
61
|
+
"input-xs": R.size === "xs",
|
|
62
|
+
"input-sm": R.size === "sm",
|
|
63
|
+
"input-md": R.size === "md",
|
|
64
|
+
"input-lg": R.size === "lg",
|
|
65
|
+
"input-xl": R.size === "xl"
|
|
66
|
+
})), G = g(() => !!R.searchText), K = g(() => G.value ? m({
|
|
67
|
+
options: R.options,
|
|
68
|
+
search: H.value,
|
|
69
|
+
searchText: R.searchText,
|
|
70
|
+
groupOf: R.groupOf,
|
|
71
|
+
limit: R.limit
|
|
72
|
+
}) : {
|
|
73
|
+
groups: [{
|
|
74
|
+
label: "",
|
|
75
|
+
items: R.options
|
|
76
|
+
}],
|
|
77
|
+
more: 0
|
|
78
|
+
}), q = g(() => G.value && K.value.groups.length === 0), J = g(() => K.value.groups.reduce((e, t) => e + t.items.length, 0) + K.value.more);
|
|
79
|
+
function Y(e) {
|
|
80
|
+
return R.getKey ? R.getKey(e) : R.displayValue(e);
|
|
53
81
|
}
|
|
54
|
-
|
|
82
|
+
function X(e) {
|
|
83
|
+
return e == null || e === V ? "" : R.displayValue(e);
|
|
84
|
+
}
|
|
85
|
+
function Z(e) {
|
|
86
|
+
if (e === V) {
|
|
87
|
+
z("action", H.value.trim(), J.value);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
B.value = e;
|
|
91
|
+
}
|
|
92
|
+
function Q(e, t) {
|
|
93
|
+
return e === V || t === V ? e === t : e != null && t != null && Y(e) === Y(t);
|
|
94
|
+
}
|
|
95
|
+
async function $(e) {
|
|
96
|
+
e && (H.value = "", await T(), await T(), (U.value?.$el)?.select());
|
|
97
|
+
}
|
|
98
|
+
function ee(e) {
|
|
99
|
+
H.value = e.target.value;
|
|
100
|
+
}
|
|
101
|
+
return (m, g) => (D(), _(M(e), {
|
|
102
|
+
"model-value": B.value,
|
|
55
103
|
class: "dropdown w-full",
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
104
|
+
disabled: C.disabled,
|
|
105
|
+
"ignore-filter": G.value,
|
|
106
|
+
by: C.getKey ? Q : void 0,
|
|
107
|
+
"onUpdate:modelValue": Z,
|
|
108
|
+
"onUpdate:open": $
|
|
60
109
|
}, {
|
|
61
|
-
default:
|
|
62
|
-
default:
|
|
110
|
+
default: P(() => [S(M(t), { class: E(["input w-full flex items-center gap-2", W.value]) }, {
|
|
111
|
+
default: P(() => [S(M(a), {
|
|
112
|
+
ref_key: "input",
|
|
113
|
+
ref: U,
|
|
63
114
|
class: "input-ghost outline-none w-full",
|
|
64
|
-
placeholder:
|
|
65
|
-
"display-value":
|
|
66
|
-
|
|
67
|
-
|
|
115
|
+
placeholder: C.placeholder ?? "Search...",
|
|
116
|
+
"display-value": X,
|
|
117
|
+
"aria-label": C.ariaLabel,
|
|
118
|
+
"aria-describedby": C.ariaDescribedby,
|
|
119
|
+
onInput: ee
|
|
120
|
+
}, null, 8, [
|
|
121
|
+
"placeholder",
|
|
122
|
+
"aria-label",
|
|
123
|
+
"aria-describedby"
|
|
124
|
+
]), S(M(u), { "aria-label": C.ariaLabel ? `Show the choices for: ${C.ariaLabel}` : "Show the choices" }, {
|
|
125
|
+
default: P(() => [S(M(p), { class: "h-4 w-4 text-base-content/60 cursor-pointer" })]),
|
|
68
126
|
_: 1
|
|
69
|
-
})]),
|
|
127
|
+
}, 8, ["aria-label"])]),
|
|
70
128
|
_: 1
|
|
71
|
-
}, 8, ["class"]),
|
|
72
|
-
default:
|
|
129
|
+
}, 8, ["class"]), S(M(l), null, {
|
|
130
|
+
default: P(() => [S(M(n), {
|
|
73
131
|
position: "popper",
|
|
74
132
|
"side-offset": 4,
|
|
75
133
|
class: "bg-base-100 rounded-box shadow-md z-50 overflow-hidden",
|
|
@@ -78,21 +136,48 @@ var k = { class: "text-xs" }, A = /*@__PURE__*/ y({
|
|
|
78
136
|
minWidth: "12rem"
|
|
79
137
|
}
|
|
80
138
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
default:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
139
|
+
default: P(() => [S(M(d), { class: "max-h-64 overflow-y-auto p-1" }, {
|
|
140
|
+
default: P(() => [
|
|
141
|
+
G.value ? v("", !0) : (D(), _(M(r), {
|
|
142
|
+
key: 0,
|
|
143
|
+
class: "text-base-content/80 text-xs text-center py-2"
|
|
144
|
+
}, {
|
|
145
|
+
default: P(() => [x(j(C.emptyText ?? "No results found"), 1)]),
|
|
146
|
+
_: 1
|
|
147
|
+
})),
|
|
148
|
+
q.value ? (D(), y("p", F, j(C.emptyText ?? `Nothing matches “${H.value}”`), 1)) : v("", !0),
|
|
149
|
+
(D(!0), y(h, null, k(K.value.groups, (e) => (D(), _(M(i), { key: e.label }, {
|
|
150
|
+
default: P(() => [e.label ? (D(), _(M(c), {
|
|
151
|
+
key: 0,
|
|
152
|
+
"data-testid": "combobox-group-label",
|
|
153
|
+
class: "px-2 pt-2 pb-1 text-xs font-semibold text-base-content/80"
|
|
154
|
+
}, {
|
|
155
|
+
default: P(() => [x(j(e.label), 1)]),
|
|
156
|
+
_: 2
|
|
157
|
+
}, 1024)) : v("", !0), (D(!0), y(h, null, k(e.items, (e) => (D(), _(M(o), {
|
|
158
|
+
key: Y(e),
|
|
159
|
+
value: e,
|
|
160
|
+
class: "cursor-pointer text-xs leading-none w-full flex items-center gap-2 rounded px-2 min-h-7 py-1 pl-7 relative select-none data-disabled:opacity-40 data-disabled:pointer-events-none data-highlighted:outline-none data-highlighted:bg-primary data-highlighted:text-primary-content"
|
|
161
|
+
}, {
|
|
162
|
+
default: P(() => [S(M(s), { class: "absolute left-0 w-6.25 inline-flex items-center justify-center" }, {
|
|
163
|
+
default: P(() => [S(M(f), { class: "h-3 w-3" })]),
|
|
164
|
+
_: 1
|
|
165
|
+
}), A(m.$slots, "default", { item: e }, () => [b("span", I, j(C.displayValue(e)), 1)])]),
|
|
166
|
+
_: 2
|
|
167
|
+
}, 1032, ["value"]))), 128))]),
|
|
168
|
+
_: 2
|
|
169
|
+
}, 1024))), 128)),
|
|
170
|
+
K.value.more > 0 ? (D(), y("p", L, j(K.value.more) + " more: type to narrow ", 1)) : v("", !0),
|
|
171
|
+
C.actionLabel ? (D(), _(M(o), {
|
|
172
|
+
key: 3,
|
|
173
|
+
"data-testid": "combobox-action",
|
|
174
|
+
value: V,
|
|
175
|
+
class: "cursor-pointer text-xs leading-none w-full flex items-center gap-2 rounded px-2 min-h-7 py-1 pl-7 relative select-none border-t border-base-300 font-medium data-highlighted:outline-none data-highlighted:bg-primary data-highlighted:text-primary-content"
|
|
176
|
+
}, {
|
|
177
|
+
default: P(() => [x(j(C.actionLabel(H.value.trim(), J.value)), 1)]),
|
|
92
178
|
_: 1
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
}, 1032, ["value"]))), 128))]),
|
|
179
|
+
})) : v("", !0)
|
|
180
|
+
]),
|
|
96
181
|
_: 3
|
|
97
182
|
})]),
|
|
98
183
|
_: 3
|
|
@@ -100,8 +185,13 @@ var k = { class: "text-xs" }, A = /*@__PURE__*/ y({
|
|
|
100
185
|
_: 3
|
|
101
186
|
})]),
|
|
102
187
|
_: 3
|
|
103
|
-
}, 8, [
|
|
188
|
+
}, 8, [
|
|
189
|
+
"model-value",
|
|
190
|
+
"disabled",
|
|
191
|
+
"ignore-filter",
|
|
192
|
+
"by"
|
|
193
|
+
]));
|
|
104
194
|
}
|
|
105
195
|
});
|
|
106
196
|
//#endregion
|
|
107
|
-
export {
|
|
197
|
+
export { R as default };
|
|
@@ -2,6 +2,6 @@ import e from "./explorer.vue_vue_type_script_setup_true_lang.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
//#region lib/explorer/explorer.vue
|
|
5
|
-
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-9c9e7075"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|