@septkit/ui 0.0.64 → 0.0.65

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.
Files changed (20) hide show
  1. package/dist/diagram-layout/diagram-node-card.js +1 -1
  2. package/dist/diagram-layout/diagram-node-card.vue_vue_type_script_setup_true_lang.js +60 -48
  3. package/dist/explorer/explorer.js +1 -1
  4. package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +45 -39
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. package/dist/index.d.ts +342 -63
  15. package/dist/index.js +33 -31
  16. package/dist/tooltip/floating-tooltip.js +5 -0
  17. package/dist/tooltip/floating-tooltip.vue_vue_type_script_setup_true_lang.js +76 -0
  18. package/dist/tooltip/index.js +2 -0
  19. package/dist/ui.css +1 -1
  20. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -16,41 +16,43 @@ 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 { CATEGORY_ELEMENTS as y, ELEMENT_TO_COLOR as b } from "./icons/element-color-map.generated.js";
20
- import { ELEMENT_TO_ICON as x } from "./icons/element-icon-mapper.js";
21
- import { collectExpandableNodeIds as S } from "./explorer/collect-expandable-node-ids.js";
22
- import C from "./explorer/explorer.js";
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 w } from "./code/highlight.js";
25
- import T from "./code/code-block.js";
26
- import { diffLines as E } from "./code/diff.js";
27
- import D from "./code/xml-diff.js";
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 O from "./merge/decision-toggle.js";
30
- import k from "./merge/element-detail.js";
31
- import A from "./merge/merge-tree.js";
32
- import j from "./merge/type-name-authority.js";
33
- import { useMergeSession as M } from "./merge/use-merge-session.js";
34
- import N from "./merge/merge-review.js";
31
+ import k from "./merge/decision-toggle.js";
32
+ import A from "./merge/element-detail.js";
33
+ import j from "./merge/merge-tree.js";
34
+ import M from "./merge/type-name-authority.js";
35
+ import { useMergeSession as N } from "./merge/use-merge-session.js";
36
+ import P from "./merge/merge-review.js";
35
37
  import "./merge/index.js";
36
- import { KEY_SEPARATOR as P, NO_VALUE_KEY as F, buildFlatOptions as I, buildMultiValueOptions as L, buildTreeOptions as R, collectLeafKeys as z, collectParentKeys as B, filterTree as V } from "./table/filters/build-filter-options.js";
37
- import { useColumnFilters as H } from "./table/filters/use-column-filters.js";
38
- import { useRowSort as U } from "./table/filters/use-row-sort.js";
39
- import { provideColumnFilterHeader as W, useColumnFilterHeaderContext as G } from "./table/column-filter-context.js";
40
- import { provideRowSortHeader as K, useOptionalRowSortContext as q } from "./table/row-sort-context.js";
41
- import J from "./table/filterable-column-header.js";
38
+ import { KEY_SEPARATOR as F, NO_VALUE_KEY as I, buildFlatOptions as L, buildMultiValueOptions as R, buildTreeOptions as z, collectLeafKeys as B, collectParentKeys as V, filterTree as H } from "./table/filters/build-filter-options.js";
39
+ import { useColumnFilters as U } from "./table/filters/use-column-filters.js";
40
+ import { useRowSort as W } from "./table/filters/use-row-sort.js";
41
+ import { provideColumnFilterHeader as G, useColumnFilterHeaderContext as K } from "./table/column-filter-context.js";
42
+ import { provideRowSortHeader as q, useOptionalRowSortContext as J } from "./table/row-sort-context.js";
43
+ import Y from "./table/filterable-column-header.js";
42
44
  import "./table/index.js";
43
- import Y from "./context-menu/context-menu.js";
45
+ import X from "./context-menu/context-menu.js";
44
46
  import "./context-menu/index.js";
45
- import X from "./split-layout/split-layout.js";
47
+ import Z from "./split-layout/split-layout.js";
46
48
  import "./split-layout/index.js";
47
- import { applyInitialVisibility as Z, buildRecordCache as Q, collectVisibleIds as $, hideDescendants as ee } from "./diagram-layout/visibility-model.js";
48
- import { groupStackMetrics as te } from "./diagram-layout/group-stack.js";
49
- import { GROUP_COLLAPSED_MEMBERS_HEIGHT as ne, GROUP_HEADER_HEIGHT as re, GROUP_MEMBER_GAP as ie, GROUP_MEMBER_HEIGHT as ae, GROUP_MEMBER_HEIGHT_COMPACT as oe, memberCardHeight as se } from "./diagram-layout/group-geometry.js";
50
- import { computeGroups as ce, isGroupId as le, makeGroupId as ue } from "./diagram-layout/grouping.js";
51
- import { createElkLayoutEngine as de } from "./diagram-layout/elk-layout-engine.js";
52
- import { useDiagramLayout as fe } from "./diagram-layout/use-diagram-layout.js";
53
- import pe from "./diagram-layout/diagram-node-card.js";
54
- import me from "./diagram-layout/diagram-node-group.js";
49
+ import { applyInitialVisibility as Q, buildRecordCache as $, collectVisibleIds as ee, hideDescendants as te } from "./diagram-layout/visibility-model.js";
50
+ import { groupStackMetrics as ne } from "./diagram-layout/group-stack.js";
51
+ import { GROUP_COLLAPSED_MEMBERS_HEIGHT as re, GROUP_HEADER_HEIGHT as ie, GROUP_MEMBER_GAP as ae, GROUP_MEMBER_HEIGHT as oe, GROUP_MEMBER_HEIGHT_COMPACT as se, memberCardHeight as ce } from "./diagram-layout/group-geometry.js";
52
+ import { computeGroups as le, isGroupId as ue, makeGroupId as de } from "./diagram-layout/grouping.js";
53
+ import { createElkLayoutEngine as fe } from "./diagram-layout/elk-layout-engine.js";
54
+ import { useDiagramLayout as pe } from "./diagram-layout/use-diagram-layout.js";
55
+ import me from "./diagram-layout/diagram-node-card.js";
56
+ import he from "./diagram-layout/diagram-node-group.js";
55
57
  import "./diagram-layout/index.js";
56
- export { s as Button, y as CATEGORY_ELEMENTS, T as CodeBlock, l as Combobox, Y as ContextMenu, O as DecisionToggle, pe as DiagramNodeCard, me as DiagramNodeGroup, d as Dialog, _ as DialogHost, v as DocumentProgressBar, c as Dropdown, b as ELEMENT_TO_COLOR, x as ELEMENT_TO_ICON, k as ElementDetail, f as FeedbackDialog, J as FilterableColumnHeader, ne as GROUP_COLLAPSED_MEMBERS_HEIGHT, re as GROUP_HEADER_HEIGHT, ie as GROUP_MEMBER_GAP, ae as GROUP_MEMBER_HEIGHT, oe as GROUP_MEMBER_HEIGHT_COMPACT, P as KEY_SEPARATOR, N as MergeReview, A as MergeTree, u as MultiSelect, F as NO_VALUE_KEY, C as SclExplorer, X as SplitLayout, j as TypeNameAuthority, D as XmlDiff, Z as applyInitialVisibility, I as buildFlatOptions, L as buildMultiValueOptions, Q as buildRecordCache, R as buildTreeOptions, S as collectExpandableNodeIds, z as collectLeafKeys, B as collectParentKeys, $ as collectVisibleIds, ce as computeGroups, p as createDialogHost, e as createDocumentStore, de as createElkLayoutEngine, m as dialogHostKey, E as diffLines, V as filterTree, te as groupStackMetrics, ee as hideDescendants, w as highlightCode, le as isGroupId, ue as makeGroupId, se as memberCardHeight, W as provideColumnFilterHeader, h as provideDialogHost, K as provideRowSortHeader, i as useActiveDocument, G as useColumnFilterHeaderContext, H as useColumnFilters, fe as useDiagramLayout, t as useDialecteChannel, g as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, M as useMergeSession, q as useOptionalRowSortContext, r as useProjectLiveData, U as useRowSort };
58
+ export { s as Button, b as CATEGORY_ELEMENTS, E as CodeBlock, l as Combobox, X as ContextMenu, k as DecisionToggle, me as DiagramNodeCard, he as DiagramNodeGroup, d as Dialog, _ as DialogHost, v as DocumentProgressBar, c as Dropdown, x as ELEMENT_TO_COLOR, S as ELEMENT_TO_ICON, A as ElementDetail, f as FeedbackDialog, Y as FilterableColumnHeader, y as FloatingTooltip, re as GROUP_COLLAPSED_MEMBERS_HEIGHT, ie as GROUP_HEADER_HEIGHT, ae as GROUP_MEMBER_GAP, oe as GROUP_MEMBER_HEIGHT, se as GROUP_MEMBER_HEIGHT_COMPACT, F as KEY_SEPARATOR, P as MergeReview, j as MergeTree, u as MultiSelect, I as NO_VALUE_KEY, w as SclExplorer, Z as SplitLayout, M as TypeNameAuthority, O as XmlDiff, Q as applyInitialVisibility, L as buildFlatOptions, R as buildMultiValueOptions, $ as buildRecordCache, z as buildTreeOptions, C as collectExpandableNodeIds, B as collectLeafKeys, V as collectParentKeys, ee as collectVisibleIds, le as computeGroups, p as createDialogHost, e as createDocumentStore, fe as createElkLayoutEngine, m as dialogHostKey, D as diffLines, H as filterTree, ne as groupStackMetrics, te as hideDescendants, T as highlightCode, ue as isGroupId, de as makeGroupId, ce as memberCardHeight, G as provideColumnFilterHeader, h as provideDialogHost, q as provideRowSortHeader, i as useActiveDocument, K as useColumnFilterHeaderContext, U as useColumnFilters, pe as useDiagramLayout, t as useDialecteChannel, g as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, N as useMergeSession, J as useOptionalRowSortContext, r as useProjectLiveData, W as useRowSort };
@@ -0,0 +1,5 @@
1
+ import e from "./floating-tooltip.vue_vue_type_script_setup_true_lang.js";
2
+ //#region lib/tooltip/floating-tooltip.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -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 };
@@ -0,0 +1,2 @@
1
+ import e from "./floating-tooltip.js";
2
+ export { e as FloatingTooltip };