@septkit/ui 0.0.64 → 0.0.66
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/diagram-layout/diagram-node-card.js +1 -1
- package/dist/diagram-layout/diagram-node-card.vue_vue_type_script_setup_true_lang.js +60 -48
- package/dist/dialecte/composables/use-live-data.js +43 -25
- package/dist/explorer/explorer.js +1 -1
- package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +45 -39
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipContent.js +90 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipContentHoverable.js +84 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipContentImpl.js +136 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipProvider.js +68 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipRoot.js +99 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipTrigger.js +88 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/utils.js +4 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useGraceArea.js +156 -0
- package/dist/index.d.ts +396 -71
- package/dist/index.js +37 -31
- package/dist/notes/index.js +4 -0
- package/dist/notes/note-category-colors.js +8 -0
- package/dist/notes/note-category-picker.js +5 -0
- package/dist/notes/note-category-picker.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/notes/note-category-tag.js +5 -0
- package/dist/notes/note-category-tag.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/notes/note-data.js +49 -0
- package/dist/tooltip/floating-tooltip.js +5 -0
- package/dist/tooltip/floating-tooltip.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -16,41 +16,47 @@ import _ from "./dialog/dialog-host.js";
|
|
|
16
16
|
import "./dialog/index.js";
|
|
17
17
|
import v from "./progress/document-progress-bar.js";
|
|
18
18
|
import "./progress/index.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
19
|
+
import y from "./tooltip/floating-tooltip.js";
|
|
20
|
+
import "./tooltip/index.js";
|
|
21
|
+
import { CATEGORY_ELEMENTS as b, ELEMENT_TO_COLOR as x } from "./icons/element-color-map.generated.js";
|
|
22
|
+
import { ELEMENT_TO_ICON as S } from "./icons/element-icon-mapper.js";
|
|
23
|
+
import { collectExpandableNodeIds as C } from "./explorer/collect-expandable-node-ids.js";
|
|
24
|
+
import w from "./explorer/explorer.js";
|
|
23
25
|
import "./explorer/index.js";
|
|
24
|
-
import { highlightCode as
|
|
25
|
-
import
|
|
26
|
-
import { diffLines as
|
|
27
|
-
import
|
|
26
|
+
import { highlightCode as T } from "./code/highlight.js";
|
|
27
|
+
import E from "./code/code-block.js";
|
|
28
|
+
import { diffLines as D } from "./code/diff.js";
|
|
29
|
+
import O from "./code/xml-diff.js";
|
|
28
30
|
import "./code/index.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
31
|
+
import { NOTE_CATEGORIES as k, NOTE_CATEGORY_LABELS as A, NOTE_STATUSES as j, parseNoteData as M, serializeNoteData as N } from "./notes/note-data.js";
|
|
32
|
+
import P from "./notes/note-category-tag.js";
|
|
33
|
+
import F from "./notes/note-category-picker.js";
|
|
34
|
+
import "./notes/index.js";
|
|
35
|
+
import I from "./merge/decision-toggle.js";
|
|
36
|
+
import L from "./merge/element-detail.js";
|
|
37
|
+
import R from "./merge/merge-tree.js";
|
|
38
|
+
import z from "./merge/type-name-authority.js";
|
|
39
|
+
import { useMergeSession as B } from "./merge/use-merge-session.js";
|
|
40
|
+
import V from "./merge/merge-review.js";
|
|
35
41
|
import "./merge/index.js";
|
|
36
|
-
import { KEY_SEPARATOR as
|
|
37
|
-
import { useColumnFilters as
|
|
38
|
-
import { useRowSort as
|
|
39
|
-
import { provideColumnFilterHeader as
|
|
40
|
-
import { provideRowSortHeader as
|
|
41
|
-
import
|
|
42
|
+
import { KEY_SEPARATOR as H, NO_VALUE_KEY as U, buildFlatOptions as W, buildMultiValueOptions as G, buildTreeOptions as K, collectLeafKeys as q, collectParentKeys as J, filterTree as Y } from "./table/filters/build-filter-options.js";
|
|
43
|
+
import { useColumnFilters as X } from "./table/filters/use-column-filters.js";
|
|
44
|
+
import { useRowSort as Z } from "./table/filters/use-row-sort.js";
|
|
45
|
+
import { provideColumnFilterHeader as Q, useColumnFilterHeaderContext as $ } from "./table/column-filter-context.js";
|
|
46
|
+
import { provideRowSortHeader as ee, useOptionalRowSortContext as te } from "./table/row-sort-context.js";
|
|
47
|
+
import ne from "./table/filterable-column-header.js";
|
|
42
48
|
import "./table/index.js";
|
|
43
|
-
import
|
|
49
|
+
import re from "./context-menu/context-menu.js";
|
|
44
50
|
import "./context-menu/index.js";
|
|
45
|
-
import
|
|
51
|
+
import ie from "./split-layout/split-layout.js";
|
|
46
52
|
import "./split-layout/index.js";
|
|
47
|
-
import { applyInitialVisibility as
|
|
48
|
-
import { groupStackMetrics as
|
|
49
|
-
import { GROUP_COLLAPSED_MEMBERS_HEIGHT as
|
|
50
|
-
import { computeGroups as
|
|
51
|
-
import { createElkLayoutEngine as
|
|
52
|
-
import { useDiagramLayout as
|
|
53
|
-
import
|
|
54
|
-
import
|
|
53
|
+
import { applyInitialVisibility as ae, buildRecordCache as oe, collectVisibleIds as se, hideDescendants as ce } from "./diagram-layout/visibility-model.js";
|
|
54
|
+
import { groupStackMetrics as le } from "./diagram-layout/group-stack.js";
|
|
55
|
+
import { GROUP_COLLAPSED_MEMBERS_HEIGHT as ue, GROUP_HEADER_HEIGHT as de, GROUP_MEMBER_GAP as fe, GROUP_MEMBER_HEIGHT as pe, GROUP_MEMBER_HEIGHT_COMPACT as me, memberCardHeight as he } from "./diagram-layout/group-geometry.js";
|
|
56
|
+
import { computeGroups as ge, isGroupId as _e, makeGroupId as ve } from "./diagram-layout/grouping.js";
|
|
57
|
+
import { createElkLayoutEngine as ye } from "./diagram-layout/elk-layout-engine.js";
|
|
58
|
+
import { useDiagramLayout as be } from "./diagram-layout/use-diagram-layout.js";
|
|
59
|
+
import xe from "./diagram-layout/diagram-node-card.js";
|
|
60
|
+
import Se from "./diagram-layout/diagram-node-group.js";
|
|
55
61
|
import "./diagram-layout/index.js";
|
|
56
|
-
export { s as Button,
|
|
62
|
+
export { s as Button, b as CATEGORY_ELEMENTS, E as CodeBlock, l as Combobox, re as ContextMenu, I as DecisionToggle, xe as DiagramNodeCard, Se as DiagramNodeGroup, d as Dialog, _ as DialogHost, v as DocumentProgressBar, c as Dropdown, x as ELEMENT_TO_COLOR, S as ELEMENT_TO_ICON, L as ElementDetail, f as FeedbackDialog, ne as FilterableColumnHeader, y as FloatingTooltip, ue as GROUP_COLLAPSED_MEMBERS_HEIGHT, de as GROUP_HEADER_HEIGHT, fe as GROUP_MEMBER_GAP, pe as GROUP_MEMBER_HEIGHT, me as GROUP_MEMBER_HEIGHT_COMPACT, H as KEY_SEPARATOR, V as MergeReview, R as MergeTree, u as MultiSelect, k as NOTE_CATEGORIES, A as NOTE_CATEGORY_LABELS, j as NOTE_STATUSES, U as NO_VALUE_KEY, F as NoteCategoryPicker, P as NoteCategoryTag, w as SclExplorer, ie as SplitLayout, z as TypeNameAuthority, O as XmlDiff, ae as applyInitialVisibility, W as buildFlatOptions, G as buildMultiValueOptions, oe as buildRecordCache, K as buildTreeOptions, C as collectExpandableNodeIds, q as collectLeafKeys, J as collectParentKeys, se as collectVisibleIds, ge as computeGroups, p as createDialogHost, e as createDocumentStore, ye as createElkLayoutEngine, m as dialogHostKey, D as diffLines, Y as filterTree, le as groupStackMetrics, ce as hideDescendants, T as highlightCode, _e as isGroupId, ve as makeGroupId, he as memberCardHeight, M as parseNoteData, Q as provideColumnFilterHeader, h as provideDialogHost, ee as provideRowSortHeader, N as serializeNoteData, i as useActiveDocument, $ as useColumnFilterHeaderContext, X as useColumnFilters, be as useDiagramLayout, t as useDialecteChannel, g as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, B as useMergeSession, te as useOptionalRowSortContext, r as useProjectLiveData, Z as useRowSort };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NOTE_CATEGORIES as e, NOTE_CATEGORY_LABELS as t, NOTE_STATUSES as n, parseNoteData as r, serializeNoteData as i } from "./note-data.js";
|
|
2
|
+
import a from "./note-category-tag.js";
|
|
3
|
+
import o from "./note-category-picker.js";
|
|
4
|
+
export { e as NOTE_CATEGORIES, t as NOTE_CATEGORY_LABELS, n as NOTE_STATUSES, o as NoteCategoryPicker, a as NoteCategoryTag, r as parseNoteData, i as serializeNoteData };
|
|
@@ -0,0 +1,31 @@
|
|
|
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/check.js";
|
|
2
|
+
import { NOTE_CATEGORIES as t, NOTE_CATEGORY_LABELS as n } from "./note-data.js";
|
|
3
|
+
import { NOTE_CATEGORY_COLOR_CLASSES as r } from "./note-category-colors.js";
|
|
4
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, useModel as g, vModelCheckbox as _, withDirectives as v } from "vue";
|
|
5
|
+
//#region lib/notes/note-category-picker.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var y = { class: "fieldset py-0" }, b = { class: "flex flex-wrap gap-1.5" }, x = ["value"], S = /*@__PURE__*/ u({
|
|
7
|
+
__name: "note-category-picker",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { required: !0 },
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(u) {
|
|
14
|
+
let S = g(u, "modelValue");
|
|
15
|
+
return (u, g) => (f(), s("fieldset", y, [g[1] ||= c("legend", { class: "fieldset-legend py-1 font-normal text-base-content/60" }, "Categories", -1), c("div", b, [(f(!0), s(i, null, p(h(t), (t) => (f(), s("label", {
|
|
16
|
+
key: t,
|
|
17
|
+
class: "cursor-pointer"
|
|
18
|
+
}, [v(c("input", {
|
|
19
|
+
"onUpdate:modelValue": g[0] ||= (e) => S.value = e,
|
|
20
|
+
class: "peer sr-only",
|
|
21
|
+
type: "checkbox",
|
|
22
|
+
value: t
|
|
23
|
+
}, null, 8, x), [[_, S.value]]), c("span", { class: d(["badge badge-sm gap-1 font-semibold select-none transition-colors peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-(--badge-color)", [h(r)[t], S.value.includes(t) ? "[--badge-fg:#fff]" : "badge-outline hover:[--badge-bg:color-mix(in_oklab,var(--badge-color)_12%,transparent)]"]]) }, [S.value.includes(t) ? (f(), a(h(e), {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "size-3",
|
|
26
|
+
"stroke-width": 3
|
|
27
|
+
})) : o("", !0), l(" " + m(h(n)[t]), 1)], 2)]))), 128))])]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { S as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NOTE_CATEGORY_LABELS as e } from "./note-data.js";
|
|
2
|
+
import { NOTE_CATEGORY_COLOR_CLASSES as t } from "./note-category-colors.js";
|
|
3
|
+
import { createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, toDisplayString as o, unref as s } from "vue";
|
|
4
|
+
//#region lib/notes/note-category-tag.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var c = /*@__PURE__*/ r({
|
|
6
|
+
__name: "note-category-tag",
|
|
7
|
+
props: { category: {} },
|
|
8
|
+
setup(r) {
|
|
9
|
+
return (c, l) => (a(), n("span", { class: i(["badge badge-sm font-semibold [--badge-fg:#fff]", s(t)[r.category]]) }, o(s(e)[r.category]), 3));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { c as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region lib/notes/note-data.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"open",
|
|
4
|
+
"resolved",
|
|
5
|
+
"removed"
|
|
6
|
+
], t = [
|
|
7
|
+
"feedback",
|
|
8
|
+
"instantiation",
|
|
9
|
+
"interlock"
|
|
10
|
+
], n = {
|
|
11
|
+
feedback: "Feedback",
|
|
12
|
+
instantiation: "Instantiation",
|
|
13
|
+
interlock: "Interlock"
|
|
14
|
+
};
|
|
15
|
+
function r(t) {
|
|
16
|
+
try {
|
|
17
|
+
let n = JSON.parse(t ?? "");
|
|
18
|
+
if (typeof n.user == "string" && typeof n.created == "string" && typeof n.lastModified == "string" && e.includes(n.status) && typeof n.text == "string") {
|
|
19
|
+
let { tags: e, ...t } = n;
|
|
20
|
+
return {
|
|
21
|
+
...t,
|
|
22
|
+
...a(e)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return;
|
|
26
|
+
} catch {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function i({ categories: e, otherTags: n, ...r }) {
|
|
31
|
+
let i = [...t.filter((t) => e.includes(t)), ...n].join(";");
|
|
32
|
+
return JSON.stringify(i ? {
|
|
33
|
+
...r,
|
|
34
|
+
tags: i
|
|
35
|
+
} : r);
|
|
36
|
+
}
|
|
37
|
+
function a(e) {
|
|
38
|
+
if (typeof e != "string") return {
|
|
39
|
+
categories: [],
|
|
40
|
+
otherTags: []
|
|
41
|
+
};
|
|
42
|
+
let n = [...new Set(e.split(";").map((e) => e.trim()))].filter(Boolean);
|
|
43
|
+
return {
|
|
44
|
+
categories: t.filter((e) => n.includes(e)),
|
|
45
|
+
otherTags: n.filter((e) => !t.includes(e))
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { t as NOTE_CATEGORIES, n as NOTE_CATEGORY_LABELS, e as NOTE_STATUSES, r as parseNoteData, i as serializeNoteData };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TooltipProvider_default as e } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipProvider.js";
|
|
2
|
+
import { TooltipRoot_default as t } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipRoot.js";
|
|
3
|
+
import { TooltipContent_default as n } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipContent.js";
|
|
4
|
+
import { TooltipPortal_default as r } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipPortal.js";
|
|
5
|
+
import { TooltipTrigger_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Tooltip/TooltipTrigger.js";
|
|
6
|
+
import { createBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, ref as u, renderSlot as d, toDisplayString as f, unref as p, useTemplateRef as m, watch as h, watchPostEffect as g, withCtx as _ } from "vue";
|
|
7
|
+
//#region lib/tooltip/floating-tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var v = /*@__PURE__*/ c({
|
|
9
|
+
__name: "floating-tooltip",
|
|
10
|
+
props: {
|
|
11
|
+
content: {},
|
|
12
|
+
onlyWhenTruncated: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
truncationSelector: {}
|
|
17
|
+
},
|
|
18
|
+
setup(c) {
|
|
19
|
+
let v = c, y = m("trigger"), b = m("panel"), x = u(!1), S = u("body"), C = /* @__PURE__ */ new WeakMap();
|
|
20
|
+
h(() => v.content, (e) => {
|
|
21
|
+
e || (x.value = !1);
|
|
22
|
+
}), g(() => {
|
|
23
|
+
let e = y.value?.$el;
|
|
24
|
+
if (!(e instanceof HTMLElement)) return;
|
|
25
|
+
C.has(e) || C.set(e, e.getAttribute("aria-describedby") ?? "");
|
|
26
|
+
let t = b.value?.$el, n = x.value && t instanceof HTMLElement ? t.querySelector("[role=\"tooltip\"]")?.id : void 0, r = [C.get(e), n].filter(Boolean).join(" ");
|
|
27
|
+
r ? e.setAttribute("aria-describedby", r) : e.removeAttribute("aria-describedby");
|
|
28
|
+
});
|
|
29
|
+
function w(e) {
|
|
30
|
+
let t = y.value?.$el;
|
|
31
|
+
if (!e || !v.content || !(t instanceof HTMLElement)) {
|
|
32
|
+
x.value = !1;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
let n = v.truncationSelector ? [...t.querySelectorAll(v.truncationSelector)] : [t];
|
|
36
|
+
S.value = t.closest("dialog[open]") ?? t.ownerDocument.body, x.value = !v.onlyWhenTruncated || n.some((e) => e.scrollWidth > e.clientWidth + 1);
|
|
37
|
+
}
|
|
38
|
+
return (u, m) => (l(), a(p(e), {
|
|
39
|
+
"delay-duration": 0,
|
|
40
|
+
"disable-hoverable-content": ""
|
|
41
|
+
}, {
|
|
42
|
+
default: _(() => [s(p(t), {
|
|
43
|
+
open: x.value,
|
|
44
|
+
"onUpdate:open": w
|
|
45
|
+
}, {
|
|
46
|
+
default: _(() => [s(p(i), {
|
|
47
|
+
ref_key: "trigger",
|
|
48
|
+
ref: y,
|
|
49
|
+
"as-child": ""
|
|
50
|
+
}, {
|
|
51
|
+
default: _(() => [d(u.$slots, "default")]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 512), s(p(r), { to: S.value }, {
|
|
54
|
+
default: _(() => [s(p(n), {
|
|
55
|
+
ref_key: "panel",
|
|
56
|
+
ref: b,
|
|
57
|
+
class: "pointer-events-none z-[9999] max-w-[min(32rem,calc(100vw-16px))] rounded-md bg-neutral px-2.5 py-1.5 text-xs leading-tight whitespace-normal text-neutral-content [overflow-wrap:anywhere] shadow-[0_4px_12px_rgb(0_0_0_/_0.18)]",
|
|
58
|
+
side: "bottom",
|
|
59
|
+
align: "start",
|
|
60
|
+
"position-strategy": "fixed",
|
|
61
|
+
"side-offset": 6,
|
|
62
|
+
"collision-padding": 8
|
|
63
|
+
}, {
|
|
64
|
+
default: _(() => [o(f(c.content), 1)]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 512)]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["to"])]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 8, ["open"])]),
|
|
71
|
+
_: 3
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
export { v as default };
|