@septkit/ui 0.0.93 → 0.0.95
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/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +41 -25
- package/dist/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/dialecte-BEbOM6IE.js} +1808 -1564
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/helpers-Bfv2XDC-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/helpers-v10NItuU.js} +82 -82
- package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/open-connections-ClJo0-Af.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/open-connections-CWORY1A2.js} +2 -2
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/project-key-DD8DyQ8-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/project-key-WGrHzudb.js} +199 -199
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/qname-definition-Cnw9CbiG.js} +8 -8
- package/dist/external/.pnpm/{@dialecte_core@0.12.1 → @dialecte_core@0.14.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/same-json-value-DTtSsGUF.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/same-json-value-Co-vqEAg.js} +66 -66
- package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js} +2 -2
- package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +0 -6
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +0 -2
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s,
|
|
1
|
+
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderList as d, toDisplayString as f, withModifiers as p } from "vue";
|
|
2
2
|
//#region lib/context-menu/context-menu.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
3
|
+
var m = { class: "menu w-46 rounded-(--radius-box) border border-(--color-ocean-gray-150) bg-(--color-base-200)" }, h = [
|
|
4
|
+
"data-testid",
|
|
5
|
+
"aria-disabled",
|
|
6
|
+
"onClick"
|
|
7
|
+
], g = ["data-testid"], _ = {
|
|
4
8
|
key: 2,
|
|
5
9
|
class: "menu fixed m-0 hidden translate-x-40 rounded-(--radius-box) border border-(--color-ocean-gray-150) bg-(--color-base-200) peer-hover:block hover:block [&::before]:hidden"
|
|
6
|
-
},
|
|
10
|
+
}, v = [
|
|
11
|
+
"data-testid",
|
|
12
|
+
"aria-disabled",
|
|
13
|
+
"onClick"
|
|
14
|
+
], y = /*@__PURE__*/ s({
|
|
7
15
|
__name: "context-menu",
|
|
8
16
|
props: {
|
|
9
17
|
x: {},
|
|
@@ -12,42 +20,50 @@ var p = { class: "menu w-46 rounded-(--radius-box) border border-(--color-ocean-
|
|
|
12
20
|
items: {}
|
|
13
21
|
},
|
|
14
22
|
emits: ["close"],
|
|
15
|
-
setup(s, { emit:
|
|
16
|
-
let
|
|
17
|
-
left: `${
|
|
18
|
-
top: `${
|
|
19
|
-
display:
|
|
23
|
+
setup(s, { emit: y }) {
|
|
24
|
+
let b = s, x = y, S = n(() => ({
|
|
25
|
+
left: `${b.x}px`,
|
|
26
|
+
top: `${b.y}px`,
|
|
27
|
+
display: b.visible ? "flex" : "none"
|
|
20
28
|
}));
|
|
21
|
-
function
|
|
22
|
-
e(),
|
|
29
|
+
function C(e) {
|
|
30
|
+
e.disabled || (e.action(), (e.autoClose ?? !0) && x("close"));
|
|
23
31
|
}
|
|
24
|
-
return (n, s) => (
|
|
32
|
+
return (n, s) => (u(), a("div", {
|
|
25
33
|
class: "absolute z-10",
|
|
26
34
|
"data-testid": "context-menu",
|
|
27
|
-
style:
|
|
28
|
-
}, [o("ul",
|
|
29
|
-
t.
|
|
35
|
+
style: l(S.value)
|
|
36
|
+
}, [o("ul", m, [(u(!0), a(e, null, d(b.items, (t) => (u(), a("li", {
|
|
37
|
+
key: t.label,
|
|
38
|
+
class: c({ "menu-disabled": t.type === "action" && t.disabled })
|
|
39
|
+
}, [
|
|
40
|
+
t.type === "action" ? (u(), a("div", {
|
|
30
41
|
key: 0,
|
|
31
42
|
"data-testid": `context-menu-action-${t.label}`,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
"aria-disabled": t.disabled ? "true" : void 0,
|
|
44
|
+
onClick: (e) => C(t)
|
|
45
|
+
}, [o("a", null, f(t.label), 1)], 8, h)) : i("", !0),
|
|
46
|
+
t.type === "parent" ? (u(), a("span", {
|
|
35
47
|
key: 1,
|
|
36
48
|
class: "peer after:pointer-events-none after:block after:h-1.5 after:w-1.5 after:-translate-y-px after:rotate-135 after:justify-self-end after:shadow-[inset_2px_2px] after:transition-[rotate,translate] after:duration-200 after:content-['']",
|
|
37
49
|
"data-testid": `context-menu-parent-${t.label}`
|
|
38
|
-
},
|
|
39
|
-
t.type === "parent" ? (
|
|
50
|
+
}, f(t.label), 9, g)) : i("", !0),
|
|
51
|
+
t.type === "parent" ? (u(), a("ul", _, [(u(!0), a(e, null, d(t.children, (e) => (u(), a("li", {
|
|
52
|
+
key: e.label,
|
|
53
|
+
class: c({ "menu-disabled": e.disabled })
|
|
54
|
+
}, [o("div", {
|
|
40
55
|
"data-testid": `context-menu-action-${e.label}`,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
56
|
+
"aria-disabled": e.disabled ? "true" : void 0,
|
|
57
|
+
onClick: (t) => C(e)
|
|
58
|
+
}, [o("a", null, f(e.label), 1)], 8, v)], 2))), 128))])) : i("", !0)
|
|
59
|
+
], 2))), 128))]), (u(), r(t, { to: "body" }, [b.visible ? (u(), a("div", {
|
|
44
60
|
key: 0,
|
|
45
61
|
class: "fixed inset-0 z-5 h-screen w-screen bg-transparent",
|
|
46
62
|
"data-testid": "context-menu-backdrop",
|
|
47
|
-
onClick: s[0] ||=
|
|
48
|
-
onContextmenu: s[1] ||=
|
|
63
|
+
onClick: s[0] ||= p((e) => n.$emit("close"), ["prevent"]),
|
|
64
|
+
onContextmenu: s[1] ||= p((e) => n.$emit("close"), ["prevent"])
|
|
49
65
|
}, null, 32)) : i("", !0)]))], 4));
|
|
50
66
|
}
|
|
51
67
|
});
|
|
52
68
|
//#endregion
|
|
53
|
-
export {
|
|
69
|
+
export { y as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import { G as t } from "../external/.pnpm/@dialecte_core@0.
|
|
4
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
1
|
+
import { p as e } from "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { G as t } from "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/dialecte-BEbOM6IE.js";
|
|
4
|
+
import "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js";
|
|
5
5
|
import { computed as n, shallowRef as r } from "vue";
|
|
6
6
|
//#region lib/dialecte/create-document-store.ts
|
|
7
7
|
function i(i) {
|