@septkit/ui 0.0.41 → 0.0.43
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/code/code-block.js +7 -0
- package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/code/diff.js +35 -0
- package/dist/code/highlight.js +30 -0
- package/dist/code/index.js +5 -0
- package/dist/code/xml-diff.js +5 -0
- package/dist/code/xml-diff.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/dialecte/composables/index.js +2 -1
- package/dist/dialecte/composables/use-active-document.js +24 -0
- package/dist/dialecte/create-document-store.js +3 -3
- package/dist/dialecte/index.js +2 -1
- package/dist/dialog/dialog-host.js +5 -0
- package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/dialog/dialog.js +5 -0
- package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/dialog/index.js +4 -0
- package/dist/dialog/use-dialog-host.js +32 -0
- package/dist/explorer/collect-expandable-node-ids.js +8 -0
- package/dist/explorer/explorer.js +1 -1
- package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +47 -33
- package/dist/explorer/index.js +3 -2
- package/dist/external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/helpers.js +142 -0
- package/dist/external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/index.js +3 -0
- package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js → @dialecte_core@0.4.5/node_modules/@dialecte/core/dist/project-wohrish5.js} +3352 -1170
- package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js → @dialecte_core@0.4.5/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.3/node_modules/@dialecte/scl/dist/hooks-BTkrNj6r.js +25264 -0
- package/dist/external/.pnpm/@dialecte_scl@0.3.3/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +11 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/copy.js +16 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/text-wrap.js +22 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js +11 -0
- package/dist/external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js +1299 -0
- package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js +34 -0
- package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.js +66 -0
- package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/java.js +3 -0
- package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
- package/dist/external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js +4 -0
- package/dist/external/.pnpm/@shikijs_types@3.23.0/node_modules/@shikijs/types/dist/index.js +8 -0
- package/dist/external/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +1576 -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 +126 -43
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +84 -55
- package/dist/external/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +10 -0
- package/dist/external/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +257 -0
- package/dist/external/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +4 -0
- package/dist/external/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +7 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +11 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +6 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +49 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +28 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +7 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +6 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +8 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +48 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +86 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +10 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +39 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +13 -0
- package/dist/external/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/external/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js +23 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js +419 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +487 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js +84 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js +30 -0
- package/dist/external/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js +970 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +25 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +31 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +326 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +564 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +14 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +18 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +16 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +15 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/external/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js +110 -0
- package/dist/external/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js +56 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js +94 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/internals.js +2 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js +10 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContent.js +72 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js +101 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentModal.js +83 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js +74 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlay.js +48 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js +47 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.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/Dialog/DialogRoot.js +61 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js +28 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/utils.js +17 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Menu/utils.js +16 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js +384 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.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/Splitter/SplitterResizeHandle.js +119 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.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/StepperItem.js +67 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.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/Stepper/StepperTitle.js +28 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js +37 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js +82 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js +7 -2
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/browser.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/utils/assert.js +6 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/calculate.js +73 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/callPanelCallbacks.js +19 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/compare.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/debounce.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/dom.js +20 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/events.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/utils/layout.js +103 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/pivot.js +8 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/rects.js +6 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/registry.js +106 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/resizePanel.js +15 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/stackingOrder.js +57 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/storage.js +50 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/style.js +35 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/units.js +57 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/validation.js +39 -0
- package/dist/external/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +13 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +23 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +14 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +17 -0
- package/dist/external/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +16 -0
- package/dist/index.d.ts +422 -4
- package/dist/index.js +24 -7
- package/dist/merge/build-view-model.js +168 -0
- package/dist/merge/decision-toggle.js +5 -0
- package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/merge/element-detail.js +5 -0
- package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/merge/index.js +6 -0
- package/dist/merge/merge-progress.js +5 -0
- package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/merge/merge-review.js +5 -0
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +305 -0
- package/dist/merge/merge-summary.js +5 -0
- package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/merge/merge-tree.js +5 -0
- package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/merge/merge.service.js +69 -0
- package/dist/merge/use-document-progress.js +27 -0
- package/dist/merge/use-merge-session.js +151 -0
- package/dist/ui.css +1 -1
- package/package.json +4 -2
- package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/helpers.js +0 -13
- package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/index.js +0 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { assert as e } from "./assert.js";
|
|
2
|
+
import { getPanelGroupElement as t, getResizeHandleElement as n } from "./dom.js";
|
|
3
|
+
import { getResizeEventCursorPosition as r, isKeyDown as i } from "./events.js";
|
|
4
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/calculate.js
|
|
5
|
+
function a(i, a, o, s, c) {
|
|
6
|
+
let l = o === "horizontal", u = n(a, c);
|
|
7
|
+
e(u);
|
|
8
|
+
let d = u.getAttribute("data-panel-group-id");
|
|
9
|
+
e(d);
|
|
10
|
+
let { initialCursorPosition: f } = s, p = r(o, i), m = t(d, c);
|
|
11
|
+
e(m);
|
|
12
|
+
let h = m.getBoundingClientRect(), g = l ? h.width : h.height;
|
|
13
|
+
return (p - f) / g * 100;
|
|
14
|
+
}
|
|
15
|
+
function o(e, t, n, r, o, s) {
|
|
16
|
+
if (i(e)) {
|
|
17
|
+
let t = n === "horizontal", r = 0;
|
|
18
|
+
r = e.shiftKey ? 100 : o ?? 10;
|
|
19
|
+
let i = 0;
|
|
20
|
+
switch (e.key) {
|
|
21
|
+
case "ArrowDown":
|
|
22
|
+
i = t ? 0 : r;
|
|
23
|
+
break;
|
|
24
|
+
case "ArrowLeft":
|
|
25
|
+
i = t ? -r : 0;
|
|
26
|
+
break;
|
|
27
|
+
case "ArrowRight":
|
|
28
|
+
i = t ? r : 0;
|
|
29
|
+
break;
|
|
30
|
+
case "ArrowUp":
|
|
31
|
+
i = t ? 0 : -r;
|
|
32
|
+
break;
|
|
33
|
+
case "End":
|
|
34
|
+
i = 100;
|
|
35
|
+
break;
|
|
36
|
+
case "Home":
|
|
37
|
+
i = -100;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
return i;
|
|
41
|
+
} else return r == null ? 0 : a(e, t, n, r, s);
|
|
42
|
+
}
|
|
43
|
+
function s({ layout: t, panelsArray: n, pivotIndices: r }) {
|
|
44
|
+
let i = 0, a = 100, o = 0, s = 0, c = r[0];
|
|
45
|
+
return e(c != null), n.forEach((e, t) => {
|
|
46
|
+
let { constraints: n } = e, { maxSize: r = 100, minSize: l = 0 } = n;
|
|
47
|
+
t === c ? (i = l, a = r) : (o += l, s += r);
|
|
48
|
+
}), {
|
|
49
|
+
valueMax: Math.min(a, 100 - o),
|
|
50
|
+
valueMin: Math.max(i, 100 - s),
|
|
51
|
+
valueNow: t[c]
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function c({ panelDataArray: t }) {
|
|
55
|
+
let n = Array.from({ length: t.length }), r = t.map((e) => e.constraints), i = 0, a = 100;
|
|
56
|
+
for (let o = 0; o < t.length; o++) {
|
|
57
|
+
let t = r[o];
|
|
58
|
+
e(t);
|
|
59
|
+
let { defaultSize: s } = t;
|
|
60
|
+
s != null && (i++, n[o] = s, a -= s);
|
|
61
|
+
}
|
|
62
|
+
for (let o = 0; o < t.length; o++) {
|
|
63
|
+
let s = r[o];
|
|
64
|
+
e(s);
|
|
65
|
+
let { defaultSize: c } = s;
|
|
66
|
+
if (c != null) continue;
|
|
67
|
+
let l = t.length - i, u = a / l;
|
|
68
|
+
i++, n[o] = u, a -= u;
|
|
69
|
+
}
|
|
70
|
+
return n;
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { s as calculateAriaValues, o as calculateDeltaPercentage, c as calculateUnsafeDefaultLayout };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { assert as e } from "./assert.js";
|
|
2
|
+
import { fuzzyNumbersEqual as t } from "./compare.js";
|
|
3
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/callPanelCallbacks.js
|
|
4
|
+
function n(n, r, i, a) {
|
|
5
|
+
r.forEach((r, o) => {
|
|
6
|
+
let s = n[o];
|
|
7
|
+
e(s);
|
|
8
|
+
let { callbacks: c, constraints: l, id: u } = s, { collapsedSize: d = 0, collapsible: f, sizeUnit: p } = l, m = r;
|
|
9
|
+
p === "px" && a != null && (m = r / 100 * a);
|
|
10
|
+
let h = i[u];
|
|
11
|
+
if (h == null || !t(m, h)) {
|
|
12
|
+
i[u] = m;
|
|
13
|
+
let { onCollapse: e, onExpand: n, onResize: r } = c;
|
|
14
|
+
r && r(m, h), f && (e || n) && (n && (h == null || t(h, d)) && !t(m, d) && n(), e && (h == null || !t(h, d)) && t(m, d) && e());
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as callPanelCallbacks };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/compare.js
|
|
2
|
+
function e(e, t, n = 10) {
|
|
3
|
+
e = Number.parseFloat(e.toFixed(n)), t = Number.parseFloat(t.toFixed(n));
|
|
4
|
+
let r = e - t;
|
|
5
|
+
return r === 0 ? 0 : r > 0 ? 1 : -1;
|
|
6
|
+
}
|
|
7
|
+
function t(t, n, r) {
|
|
8
|
+
return e(t, n, r) === 0;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as fuzzyCompareNumbers, t as fuzzyNumbersEqual };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/debounce.js
|
|
2
|
+
function e(e, t = 10) {
|
|
3
|
+
let n = null;
|
|
4
|
+
return (...r) => {
|
|
5
|
+
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
6
|
+
e(...r);
|
|
7
|
+
}, t);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as debounce };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isBrowser as e } from "../shared/browser.js";
|
|
2
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/dom.js
|
|
3
|
+
function t(t, n = document) {
|
|
4
|
+
return e ? n instanceof HTMLElement && n?.dataset?.panelGroupId === t ? n : n.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`) || null : null;
|
|
5
|
+
}
|
|
6
|
+
function n(t, n = document) {
|
|
7
|
+
return e && n.querySelector(`[data-panel-resize-handle-id="${t}"]`) || null;
|
|
8
|
+
}
|
|
9
|
+
function r(t, n, r = document) {
|
|
10
|
+
return e ? i(t, r).findIndex((e) => e.getAttribute("data-panel-resize-handle-id") === n) ?? null : null;
|
|
11
|
+
}
|
|
12
|
+
function i(t, n = document) {
|
|
13
|
+
return e ? Array.from(n.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`)) : [];
|
|
14
|
+
}
|
|
15
|
+
function a(e, t, r, a = document) {
|
|
16
|
+
let o = n(t, a), s = i(e, a), c = o ? s.indexOf(o) : -1;
|
|
17
|
+
return [r[c]?.id ?? null, r[c + 1]?.id ?? null];
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { t as getPanelGroupElement, n as getResizeHandleElement, r as getResizeHandleElementIndex, i as getResizeHandleElementsForGroup, a as getResizeHandlePanelIds };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/events.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.type === "keydown";
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return e.type.startsWith("mouse");
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return e.type.startsWith("touch");
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
if (t(e)) return {
|
|
13
|
+
x: e.clientX,
|
|
14
|
+
y: e.clientY
|
|
15
|
+
};
|
|
16
|
+
if (n(e)) {
|
|
17
|
+
let t = e.touches[0];
|
|
18
|
+
if (t && t.clientX && t.clientY) return {
|
|
19
|
+
x: t.clientX,
|
|
20
|
+
y: t.clientY
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
x: Infinity,
|
|
25
|
+
y: Infinity
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function i(e, t) {
|
|
29
|
+
let n = e === "horizontal", { x: i, y: a } = r(t);
|
|
30
|
+
return n ? i : a;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { r as getResizeEventCoordinates, i as getResizeEventCursorPosition, e as isKeyDown, t as isMouseEvent, n as isTouchEvent };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { assert as e } from "./assert.js";
|
|
2
|
+
import { fuzzyCompareNumbers as t, fuzzyNumbersEqual as n } from "./compare.js";
|
|
3
|
+
import { resizePanel as r } from "./resizePanel.js";
|
|
4
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/layout.js
|
|
5
|
+
function i(e, t) {
|
|
6
|
+
if (e.length !== t.length) return !1;
|
|
7
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
8
|
+
return !0;
|
|
9
|
+
}
|
|
10
|
+
function a({ delta: i, layout: a, panelConstraints: o, pivotIndices: s, trigger: c }) {
|
|
11
|
+
if (n(i, 0)) return a;
|
|
12
|
+
let l = [...a], [u, d] = s;
|
|
13
|
+
e(u != null), e(d != null);
|
|
14
|
+
let f = 0;
|
|
15
|
+
if (c === "keyboard") {
|
|
16
|
+
{
|
|
17
|
+
let r = i < 0 ? d : u, s = o[r];
|
|
18
|
+
if (e(s), s.collapsible) {
|
|
19
|
+
let s = a[r];
|
|
20
|
+
e(s != null);
|
|
21
|
+
let c = o[r];
|
|
22
|
+
e(c);
|
|
23
|
+
let { collapsedSize: l = 0, minSize: u = 0 } = c;
|
|
24
|
+
if (n(s, l)) {
|
|
25
|
+
let e = u - s;
|
|
26
|
+
t(e, Math.abs(i)) > 0 && (i = i < 0 ? 0 - e : e);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
{
|
|
31
|
+
let r = i < 0 ? u : d, s = o[r];
|
|
32
|
+
e(s);
|
|
33
|
+
let { collapsible: c } = s;
|
|
34
|
+
if (c) {
|
|
35
|
+
let s = a[r];
|
|
36
|
+
e(s != null);
|
|
37
|
+
let c = o[r];
|
|
38
|
+
e(c);
|
|
39
|
+
let { collapsedSize: l = 0, minSize: u = 0 } = c;
|
|
40
|
+
if (n(s, u)) {
|
|
41
|
+
let e = s - l;
|
|
42
|
+
t(e, Math.abs(i)) > 0 && (i = i < 0 ? 0 - e : e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
{
|
|
48
|
+
let t = i < 0 ? 1 : -1, n = i < 0 ? d : u, s = 0;
|
|
49
|
+
for (;;) {
|
|
50
|
+
let i = a[n];
|
|
51
|
+
e(i != null);
|
|
52
|
+
let c = r({
|
|
53
|
+
panelConstraints: o,
|
|
54
|
+
panelIndex: n,
|
|
55
|
+
size: 100
|
|
56
|
+
}) - i;
|
|
57
|
+
if (s += c, n += t, n < 0 || n >= o.length) break;
|
|
58
|
+
}
|
|
59
|
+
let c = Math.min(Math.abs(i), Math.abs(s));
|
|
60
|
+
i = i < 0 ? 0 - c : c;
|
|
61
|
+
}
|
|
62
|
+
{
|
|
63
|
+
let t = i < 0 ? u : d;
|
|
64
|
+
for (; t >= 0 && t < o.length;) {
|
|
65
|
+
let s = Math.abs(i) - Math.abs(f), c = a[t];
|
|
66
|
+
e(c != null);
|
|
67
|
+
let u = c - s, d = r({
|
|
68
|
+
panelConstraints: o,
|
|
69
|
+
panelIndex: t,
|
|
70
|
+
size: u
|
|
71
|
+
});
|
|
72
|
+
if (!n(c, d) && (f += c - d, l[t] = d, f.toPrecision(3).localeCompare(Math.abs(i).toPrecision(3), void 0, { numeric: !0 }) >= 0)) break;
|
|
73
|
+
i < 0 ? t-- : t++;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (n(f, 0)) return a;
|
|
77
|
+
{
|
|
78
|
+
let t = i < 0 ? d : u, s = a[t];
|
|
79
|
+
e(s != null);
|
|
80
|
+
let c = s + f, p = r({
|
|
81
|
+
panelConstraints: o,
|
|
82
|
+
panelIndex: t,
|
|
83
|
+
size: c
|
|
84
|
+
});
|
|
85
|
+
if (l[t] = p, !n(p, c)) {
|
|
86
|
+
let t = c - p, a = i < 0 ? d : u;
|
|
87
|
+
for (; a >= 0 && a < o.length;) {
|
|
88
|
+
let s = l[a];
|
|
89
|
+
e(s != null);
|
|
90
|
+
let c = s + t, u = r({
|
|
91
|
+
panelConstraints: o,
|
|
92
|
+
panelIndex: a,
|
|
93
|
+
size: c
|
|
94
|
+
});
|
|
95
|
+
if (n(s, u) || (t -= u - s, l[a] = u), n(t, 0)) break;
|
|
96
|
+
i > 0 ? a-- : a++;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return n(l.reduce((e, t) => t + e, 0), 100) ? l : a;
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { a as adjustLayoutByDelta, i as compareLayouts };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getResizeHandleElementIndex as e } from "./dom.js";
|
|
2
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/pivot.js
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
let i = e(t, n, r);
|
|
5
|
+
return i == null ? [-1, -1] : [i, i + 1];
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as determinePivotIndices };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/rects.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
return n ? e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y : e.x <= t.x + t.width && e.x + e.width >= t.x && e.y <= t.y + t.height && e.y + e.height >= t.y;
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as intersects };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { getResizeEventCoordinates as e } from "./events.js";
|
|
2
|
+
import { intersects as t } from "./rects.js";
|
|
3
|
+
import { compare as n } from "./stackingOrder.js";
|
|
4
|
+
import { resetGlobalCursorStyle as r, setGlobalCursorStyle as i } from "./style.js";
|
|
5
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/registry.js
|
|
6
|
+
function a() {
|
|
7
|
+
if (typeof matchMedia == "function") return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
8
|
+
}
|
|
9
|
+
var o = a() === "coarse", s = [], c = !1, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set();
|
|
10
|
+
function f(e, t, n, i, a, o) {
|
|
11
|
+
let { ownerDocument: s } = t, c = {
|
|
12
|
+
direction: n,
|
|
13
|
+
element: t,
|
|
14
|
+
hitAreaMargins: i,
|
|
15
|
+
nonce: a,
|
|
16
|
+
setResizeHandlerState: o
|
|
17
|
+
}, f = l.get(s) ?? 0;
|
|
18
|
+
return l.set(s, f + 1), d.add(c), y(), function() {
|
|
19
|
+
u.delete(e), d.delete(c);
|
|
20
|
+
let t = l.get(s) ?? 1;
|
|
21
|
+
l.set(s, t - 1), y(), r(), t === 1 && l.delete(s);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function p(t) {
|
|
25
|
+
let { target: n } = t, { x: r, y: i } = e(t);
|
|
26
|
+
c = !0, g({
|
|
27
|
+
target: n,
|
|
28
|
+
x: r,
|
|
29
|
+
y: i
|
|
30
|
+
}), y(), s.length > 0 && (b("down", t), t.preventDefault());
|
|
31
|
+
}
|
|
32
|
+
function m(t) {
|
|
33
|
+
let { x: n, y: r } = e(t);
|
|
34
|
+
if (!c) {
|
|
35
|
+
let { target: e } = t;
|
|
36
|
+
g({
|
|
37
|
+
target: e,
|
|
38
|
+
x: n,
|
|
39
|
+
y: r
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
b("move", t), v(), s.length > 0 && t.preventDefault();
|
|
43
|
+
}
|
|
44
|
+
function h(t) {
|
|
45
|
+
let { target: n } = t, { x: r, y: i } = e(t);
|
|
46
|
+
u.clear(), c = !1, s.length > 0 && t.preventDefault(), b("up", t), g({
|
|
47
|
+
target: n,
|
|
48
|
+
x: r,
|
|
49
|
+
y: i
|
|
50
|
+
}), v(), y();
|
|
51
|
+
}
|
|
52
|
+
function g({ target: e, x: r, y: i }) {
|
|
53
|
+
s.splice(0);
|
|
54
|
+
let a = null;
|
|
55
|
+
e instanceof HTMLElement && (a = e), d.forEach((e) => {
|
|
56
|
+
let { element: c, hitAreaMargins: l } = e, u = c.getBoundingClientRect(), { bottom: d, left: f, right: p, top: m } = u, h = o ? l.coarse : l.fine;
|
|
57
|
+
if (r >= f - h && r <= p + h && i >= m - h && i <= d + h) {
|
|
58
|
+
if (a !== null && c !== a && !c.contains(a) && !a.contains(c) && n(a, c) > 0) {
|
|
59
|
+
let e = a, n = !1;
|
|
60
|
+
for (; e && !e.contains(c);) {
|
|
61
|
+
if (t(e.getBoundingClientRect(), u, !0)) {
|
|
62
|
+
n = !0;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
e = e.parentElement;
|
|
66
|
+
}
|
|
67
|
+
if (n) return;
|
|
68
|
+
}
|
|
69
|
+
s.push(e);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function _(e, t) {
|
|
74
|
+
u.set(e, t);
|
|
75
|
+
}
|
|
76
|
+
function v() {
|
|
77
|
+
let e = !1, t = !1, n;
|
|
78
|
+
s.forEach((r) => {
|
|
79
|
+
let { direction: i, nonce: a } = r;
|
|
80
|
+
i.value === "horizontal" ? e = !0 : t = !0, n = a.value;
|
|
81
|
+
});
|
|
82
|
+
let a = 0;
|
|
83
|
+
u.forEach((e) => {
|
|
84
|
+
a |= e;
|
|
85
|
+
}), e && t ? i("intersection", a, n) : e ? i("horizontal", a, n) : t ? i("vertical", a, n) : r();
|
|
86
|
+
}
|
|
87
|
+
function y() {
|
|
88
|
+
l.forEach((e, t) => {
|
|
89
|
+
let { body: n } = t;
|
|
90
|
+
n.removeEventListener("contextmenu", h), n.removeEventListener("mousedown", p), n.removeEventListener("mouseleave", m), n.removeEventListener("mousemove", m), n.removeEventListener("touchmove", m), n.removeEventListener("touchstart", p);
|
|
91
|
+
}), window.removeEventListener("mouseup", h), window.removeEventListener("touchcancel", h), window.removeEventListener("touchend", h), d.size > 0 && (c ? (s.length > 0 && l.forEach((e, t) => {
|
|
92
|
+
let { body: n } = t;
|
|
93
|
+
e > 0 && (n.addEventListener("contextmenu", h), n.addEventListener("mouseleave", m), n.addEventListener("mousemove", m), n.addEventListener("touchmove", m, { passive: !1 }));
|
|
94
|
+
}), window.addEventListener("mouseup", h), window.addEventListener("touchcancel", h), window.addEventListener("touchend", h)) : l.forEach((e, t) => {
|
|
95
|
+
let { body: n } = t;
|
|
96
|
+
e > 0 && (n.addEventListener("mousedown", p), n.addEventListener("mousemove", m), n.addEventListener("touchmove", m, { passive: !1 }), n.addEventListener("touchstart", p));
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
function b(e, t) {
|
|
100
|
+
d.forEach((n) => {
|
|
101
|
+
let { setResizeHandlerState: r } = n;
|
|
102
|
+
r(e, s.includes(n), t);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
export { f as registerResizeHandle, _ as reportConstraintsViolation };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { assert as e } from "./assert.js";
|
|
2
|
+
import { fuzzyCompareNumbers as t } from "./compare.js";
|
|
3
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/resizePanel.js
|
|
4
|
+
function n({ panelConstraints: n, panelIndex: r, size: i }) {
|
|
5
|
+
let a = n[r];
|
|
6
|
+
e(a != null);
|
|
7
|
+
let { collapsedSize: o = 0, collapsible: s, maxSize: c = 100, minSize: l = 0 } = a;
|
|
8
|
+
if (t(i, l) < 0) if (s) {
|
|
9
|
+
let e = (o + l) / 2;
|
|
10
|
+
i = t(i, e) < 0 ? o : l;
|
|
11
|
+
} else i = l;
|
|
12
|
+
return i = Math.min(c, i), i = Number.parseFloat(i.toFixed(10)), i;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as resizePanel };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { assert as e } from "./assert.js";
|
|
2
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/stackingOrder.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
if (t === n) throw Error("Cannot compare node with itself");
|
|
5
|
+
let r = {
|
|
6
|
+
a: s(t),
|
|
7
|
+
b: s(n)
|
|
8
|
+
}, i;
|
|
9
|
+
for (; r.a.at(-1) === r.b.at(-1);) t = r.a.pop(), n = r.b.pop(), i = t;
|
|
10
|
+
e(i);
|
|
11
|
+
let c = {
|
|
12
|
+
a: o(a(r.a)),
|
|
13
|
+
b: o(a(r.b))
|
|
14
|
+
};
|
|
15
|
+
if (c.a === c.b) {
|
|
16
|
+
let e = i.childNodes, t = {
|
|
17
|
+
a: r.a.at(-1),
|
|
18
|
+
b: r.b.at(-1)
|
|
19
|
+
}, n = e.length;
|
|
20
|
+
for (; n--;) {
|
|
21
|
+
let r = e[n];
|
|
22
|
+
if (r === t.a) return 1;
|
|
23
|
+
if (r === t.b) return -1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return Math.sign(c.a - c.b);
|
|
27
|
+
}
|
|
28
|
+
var n = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
29
|
+
function r(e) {
|
|
30
|
+
let t = getComputedStyle(c(e)).display;
|
|
31
|
+
return t === "flex" || t === "inline-flex";
|
|
32
|
+
}
|
|
33
|
+
function i(e) {
|
|
34
|
+
let t = getComputedStyle(e);
|
|
35
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || r(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || n.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
36
|
+
}
|
|
37
|
+
function a(t) {
|
|
38
|
+
let n = t.length;
|
|
39
|
+
for (; n--;) {
|
|
40
|
+
let r = t[n];
|
|
41
|
+
if (e(r), i(r)) return r;
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function o(e) {
|
|
46
|
+
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
47
|
+
}
|
|
48
|
+
function s(e) {
|
|
49
|
+
let t = [];
|
|
50
|
+
for (; e;) t.push(e), e = c(e);
|
|
51
|
+
return t;
|
|
52
|
+
}
|
|
53
|
+
function c(e) {
|
|
54
|
+
return e.parentNode instanceof DocumentFragment && e.parentNode?.host || e.parentNode;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { t as compare };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/storage.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
try {
|
|
4
|
+
if (typeof localStorage < "u") e.getItem = (e) => localStorage.getItem(e), e.setItem = (e, t) => {
|
|
5
|
+
localStorage.setItem(e, t);
|
|
6
|
+
};
|
|
7
|
+
else throw TypeError("localStorage not supported in this environment");
|
|
8
|
+
} catch (t) {
|
|
9
|
+
console.error(t), e.getItem = () => null, e.setItem = () => {};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function t(e) {
|
|
13
|
+
return `reka:${e}`;
|
|
14
|
+
}
|
|
15
|
+
function n(e) {
|
|
16
|
+
return e.map((e) => {
|
|
17
|
+
let { constraints: t, id: n, idIsFromProps: r, order: i } = e;
|
|
18
|
+
return r ? n : i ? `${i}:${JSON.stringify(t)}` : JSON.stringify(t);
|
|
19
|
+
}).sort((e, t) => e.localeCompare(t)).join(",");
|
|
20
|
+
}
|
|
21
|
+
function r(e, n) {
|
|
22
|
+
try {
|
|
23
|
+
let r = t(e), i = n.getItem(r);
|
|
24
|
+
if (i) {
|
|
25
|
+
let e = JSON.parse(i);
|
|
26
|
+
if (typeof e == "object" && e) return e;
|
|
27
|
+
}
|
|
28
|
+
} catch {}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
function i(e, t, i) {
|
|
32
|
+
return (r(e, i) ?? {})[n(t)] ?? null;
|
|
33
|
+
}
|
|
34
|
+
function a(e, i, a, o, s) {
|
|
35
|
+
let c = t(e), l = n(i), u = r(e, s) ?? {}, d = {};
|
|
36
|
+
i.forEach((e, t) => {
|
|
37
|
+
(e.constraints.sizeUnit ?? "%") === "px" && (d[t] = "px");
|
|
38
|
+
}), u[l] = {
|
|
39
|
+
expandToSizes: Object.fromEntries(a.entries()),
|
|
40
|
+
layout: o,
|
|
41
|
+
...Object.keys(d).length > 0 && { sizeUnits: d }
|
|
42
|
+
};
|
|
43
|
+
try {
|
|
44
|
+
s.setItem(c, JSON.stringify(u));
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.error(e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { e as initializeDefaultStorage, i as loadPanelGroupState, a as savePanelGroupState };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/style.js
|
|
2
|
+
var e = null, t = null;
|
|
3
|
+
function n(e, t) {
|
|
4
|
+
if (t) {
|
|
5
|
+
let e = (t & 1) != 0, n = (t & 2) != 0, r = (t & 4) != 0, i = (t & 8) != 0;
|
|
6
|
+
if (e) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
|
|
7
|
+
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
|
|
8
|
+
if (r) return "s-resize";
|
|
9
|
+
if (i) return "n-resize";
|
|
10
|
+
}
|
|
11
|
+
switch (e) {
|
|
12
|
+
case "horizontal": return "ew-resize";
|
|
13
|
+
case "intersection": return "move";
|
|
14
|
+
case "vertical": return "ns-resize";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function r() {
|
|
18
|
+
t !== null && (document.head.removeChild(t), e = null, t = null);
|
|
19
|
+
}
|
|
20
|
+
function i(r, i, a) {
|
|
21
|
+
let o = n(r, i);
|
|
22
|
+
e !== o && (e = o, t === null && (t = document.createElement("style"), a && (t.nonce = a), document.head.appendChild(t)), t.textContent = `*{cursor: ${o}!important;}`);
|
|
23
|
+
}
|
|
24
|
+
function a({ defaultSize: e, dragState: t, layout: n, panelData: r, panelIndex: i, precision: a = 3 }) {
|
|
25
|
+
let o = n[i], s;
|
|
26
|
+
return s = o == null ? e === void 0 ? "1" : e.toPrecision(a) : r.length === 1 ? "1" : o.toPrecision(a), {
|
|
27
|
+
flexBasis: 0,
|
|
28
|
+
flexGrow: s,
|
|
29
|
+
flexShrink: 1,
|
|
30
|
+
overflow: "hidden",
|
|
31
|
+
pointerEvents: t === null ? void 0 : "none"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { a as computePanelFlexBoxStyle, r as resetGlobalCursorStyle, i as setGlobalCursorStyle };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/units.js
|
|
2
|
+
function e({ sizeUnit: e, groupSizeInPixels: t, value: n }) {
|
|
3
|
+
if (n == null || e === "%") return n;
|
|
4
|
+
if (!(t == null || t === 0)) return n / t * 100;
|
|
5
|
+
}
|
|
6
|
+
function t({ panelDataArray: t, groupSizeInPixels: n }) {
|
|
7
|
+
return t.some((e) => (e.constraints.sizeUnit ?? "%") === "px") && (!n || Number.isNaN(n)) ? null : t.map((t) => {
|
|
8
|
+
let r = t.constraints, i = r.sizeUnit ?? "%", a = e({
|
|
9
|
+
groupSizeInPixels: n,
|
|
10
|
+
sizeUnit: i,
|
|
11
|
+
value: r.collapsedSize
|
|
12
|
+
}), o = e({
|
|
13
|
+
groupSizeInPixels: n,
|
|
14
|
+
sizeUnit: i,
|
|
15
|
+
value: r.defaultSize
|
|
16
|
+
}), s = e({
|
|
17
|
+
groupSizeInPixels: n,
|
|
18
|
+
sizeUnit: i,
|
|
19
|
+
value: r.maxSize
|
|
20
|
+
}), c = e({
|
|
21
|
+
groupSizeInPixels: n,
|
|
22
|
+
sizeUnit: i,
|
|
23
|
+
value: r.minSize
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
...r,
|
|
27
|
+
collapsedSize: a ?? r.collapsedSize ?? 0,
|
|
28
|
+
defaultSize: o,
|
|
29
|
+
maxSize: s ?? 100,
|
|
30
|
+
minSize: c ?? 0,
|
|
31
|
+
sizeUnit: "%"
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function n(e) {
|
|
36
|
+
return e.some((e) => (e.constraints.sizeUnit ?? "%") === "px");
|
|
37
|
+
}
|
|
38
|
+
function r({ layout: e, panelDataArray: t, prevGroupSize: r, nextGroupSize: i }) {
|
|
39
|
+
if (!n(t) || r == null || i == null || r === 0 || i === 0 || Number.isNaN(r) || Number.isNaN(i)) return null;
|
|
40
|
+
let a = t.reduce((e, t, n) => ((t.constraints.sizeUnit ?? "%") === "px" && e.push(n), e), []);
|
|
41
|
+
if (a.length === 0) return null;
|
|
42
|
+
let o = new Set(a), s = e.map((e) => e ?? 0);
|
|
43
|
+
a.reduce((t, n) => t + (e[n] ?? 0), 0);
|
|
44
|
+
let c = a.map((t) => (e[t] ?? 0) / 100 * r / i * 100), l = c.reduce((e, t) => e + t, 0), u = e.reduce((e, t, n) => o.has(n) ? e : e + (t ?? 0), 0), d = Math.max(0, 100 - l), f = u > 0 ? d / u : 0;
|
|
45
|
+
a.forEach((e, t) => {
|
|
46
|
+
s[e] = c[t];
|
|
47
|
+
});
|
|
48
|
+
for (let t = 0; t < s.length; t++) o.has(t) || (s[t] = (e[t] ?? 0) * f);
|
|
49
|
+
let p = s.reduce((e, t) => e + t, 0);
|
|
50
|
+
if (p > 0 && Math.abs(p - 100) > 1e-9) {
|
|
51
|
+
let e = 100 / p;
|
|
52
|
+
for (let t = 0; t < s.length; t++) s[t] = (s[t] ?? 0) * e;
|
|
53
|
+
}
|
|
54
|
+
return s;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { t as convertPanelConstraintsToPercent, n as hasPixelSizedPanel, r as recalculateLayoutForPixelPanels };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { assert as e } from "./assert.js";
|
|
2
|
+
import { fuzzyNumbersEqual as t } from "./compare.js";
|
|
3
|
+
import { resizePanel as n } from "./resizePanel.js";
|
|
4
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/validation.js
|
|
5
|
+
function r({ layout: r, panelConstraints: i }) {
|
|
6
|
+
let a = [...r], o = a.reduce((e, t) => e + t, 0);
|
|
7
|
+
if (a.length !== i.length) throw Error(`Invalid ${i.length} panel layout: ${a.map((e) => `${e}%`).join(", ")}`);
|
|
8
|
+
if (!t(o, 100)) {
|
|
9
|
+
console.warn(`WARNING: Invalid layout total size: ${a.map((e) => `${e}%`).join(", ")}. Layout normalization will be applied.`);
|
|
10
|
+
for (let t = 0; t < i.length; t++) {
|
|
11
|
+
let n = a[t];
|
|
12
|
+
e(n != null), a[t] = 100 / o * n;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
let s = 0;
|
|
16
|
+
for (let t = 0; t < i.length; t++) {
|
|
17
|
+
let r = a[t];
|
|
18
|
+
e(r != null);
|
|
19
|
+
let o = n({
|
|
20
|
+
panelConstraints: i,
|
|
21
|
+
panelIndex: t,
|
|
22
|
+
size: r
|
|
23
|
+
});
|
|
24
|
+
r !== o && (s += r - o, a[t] = o);
|
|
25
|
+
}
|
|
26
|
+
if (!t(s, 0)) for (let r = 0; r < i.length; r++) {
|
|
27
|
+
let o = a[r];
|
|
28
|
+
e(o != null);
|
|
29
|
+
let c = o + s, l = n({
|
|
30
|
+
panelConstraints: i,
|
|
31
|
+
panelIndex: r,
|
|
32
|
+
size: c
|
|
33
|
+
});
|
|
34
|
+
if (o !== l && (s -= l - o, a[r] = l, t(s, 0))) break;
|
|
35
|
+
}
|
|
36
|
+
return a;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { r as validatePanelGroupLayout };
|