@septkit/ui 0.0.42 → 0.0.44
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/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/helpers.js +142 -0
- package/dist/external/.pnpm/@dialecte_core@0.4.6/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.6/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.6/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/hooks-abaf9148.js +25264 -0
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/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 +396 -21
- package/dist/index.js +24 -8
- 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,47 @@
|
|
|
1
|
+
import { useBodyScrollLock as e } from "../shared/useBodyScrollLock.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { Primitive as n } from "../Primitive/Primitive.js";
|
|
4
|
+
import { injectDialogRootContext as r } from "./DialogRoot.js";
|
|
5
|
+
import { createBlock as i, defineComponent as a, openBlock as o, renderSlot as s, unref as c, watch as l, withCtx as u, withModifiers as d } from "vue";
|
|
6
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js
|
|
7
|
+
var f = /* @__PURE__ */ a({
|
|
8
|
+
__name: "DialogOverlayImpl",
|
|
9
|
+
props: {
|
|
10
|
+
asChild: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
required: !1
|
|
13
|
+
},
|
|
14
|
+
as: {
|
|
15
|
+
type: null,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
present: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
required: !1,
|
|
21
|
+
default: !0
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(a) {
|
|
25
|
+
let f = a, p = r(), m = e(f.present);
|
|
26
|
+
return l(() => f.present, (e) => m.value = e), t(), (e, t) => (o(), i(c(n), {
|
|
27
|
+
as: e.as,
|
|
28
|
+
"as-child": e.asChild,
|
|
29
|
+
"data-state": c(p).open.value ? "open" : "closed",
|
|
30
|
+
style: { "pointer-events": "auto" },
|
|
31
|
+
onPointerdown: t[0] ||= d(() => {}, [
|
|
32
|
+
"left",
|
|
33
|
+
"self",
|
|
34
|
+
"prevent"
|
|
35
|
+
])
|
|
36
|
+
}, {
|
|
37
|
+
default: u(() => [s(e.$slots, "default")]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 8, [
|
|
40
|
+
"as",
|
|
41
|
+
"as-child",
|
|
42
|
+
"data-state"
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { f as DialogOverlayImpl_default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Teleport_default as e } from "../Teleport/Teleport.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, guardReactiveProps as r, normalizeProps as i, openBlock as a, renderSlot as o, unref as s, withCtx as c } from "vue";
|
|
3
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.js
|
|
4
|
+
var l = /* @__PURE__ */ n({
|
|
5
|
+
__name: "DialogPortal",
|
|
6
|
+
props: {
|
|
7
|
+
to: {
|
|
8
|
+
type: null,
|
|
9
|
+
required: !1
|
|
10
|
+
},
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
required: !1
|
|
14
|
+
},
|
|
15
|
+
defer: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
forceMount: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: !1
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(n) {
|
|
25
|
+
let l = n;
|
|
26
|
+
return (n, u) => (a(), t(s(e), i(r(l)), {
|
|
27
|
+
default: c(() => [o(n.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { l as DialogPortal_default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useVModel as e } from "../../../../../@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
|
|
2
|
+
import { createContext as t } from "../shared/createContext.js";
|
|
3
|
+
import { defineComponent as n, ref as r, renderSlot as i, toRefs as a, unref as o } from "vue";
|
|
4
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js
|
|
5
|
+
var [s, c] = /*#__PURE__*/ t("DialogRoot"), l = /* @__PURE__ */ n({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "DialogRoot",
|
|
8
|
+
props: {
|
|
9
|
+
open: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !1,
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
14
|
+
defaultOpen: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
modal: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: !1,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
unmountOnHide: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: !1,
|
|
27
|
+
default: !0
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:open"],
|
|
31
|
+
setup(t, { emit: n }) {
|
|
32
|
+
let s = t, l = e(s, "open", n, {
|
|
33
|
+
defaultValue: s.defaultOpen,
|
|
34
|
+
passive: s.open === void 0
|
|
35
|
+
}), u = r(), d = r(), { modal: f, unmountOnHide: p } = a(s);
|
|
36
|
+
return c({
|
|
37
|
+
open: l,
|
|
38
|
+
modal: f,
|
|
39
|
+
unmountOnHide: p,
|
|
40
|
+
openModal: () => {
|
|
41
|
+
l.value = !0;
|
|
42
|
+
},
|
|
43
|
+
onOpenChange: (e) => {
|
|
44
|
+
l.value = e;
|
|
45
|
+
},
|
|
46
|
+
onOpenToggle: () => {
|
|
47
|
+
l.value = !l.value;
|
|
48
|
+
},
|
|
49
|
+
contentId: "",
|
|
50
|
+
titleId: "",
|
|
51
|
+
descriptionId: "",
|
|
52
|
+
triggerElement: u,
|
|
53
|
+
contentElement: d
|
|
54
|
+
}), (e, t) => i(e.$slots, "default", {
|
|
55
|
+
open: o(l),
|
|
56
|
+
close: () => l.value = !1
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { l as DialogRoot_default, s as injectDialogRootContext };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useForwardExpose as e } from "../shared/useForwardExpose.js";
|
|
2
|
+
import { Primitive as t } from "../Primitive/Primitive.js";
|
|
3
|
+
import { injectDialogRootContext as n } from "./DialogRoot.js";
|
|
4
|
+
import { createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, withCtx as l } from "vue";
|
|
5
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js
|
|
6
|
+
var u = /* @__PURE__ */ i({
|
|
7
|
+
__name: "DialogTitle",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !1
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: !1,
|
|
16
|
+
default: "h2"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(i) {
|
|
20
|
+
let u = i, d = n();
|
|
21
|
+
return e(), (e, n) => (o(), r(c(t), a(u, { id: c(d).titleId }), {
|
|
22
|
+
default: l(() => [s(e.$slots, "default")]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 16, ["id"]));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { u as DialogTitle_default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { onMounted as e } from "vue";
|
|
2
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/utils.js
|
|
3
|
+
var t = "DialogTitle", n = "DialogContent";
|
|
4
|
+
function r({ titleName: r = t, contentName: i = n, componentLink: a = "dialog.html#title", titleId: o, descriptionId: s, contentElement: c }) {
|
|
5
|
+
let l = `Warning: \`${i}\` requires a \`${r}\` for the component to be accessible for screen reader users.
|
|
6
|
+
|
|
7
|
+
If you want to hide the \`${r}\`, you can wrap it with our VisuallyHidden component.
|
|
8
|
+
|
|
9
|
+
For more information, see https://www.reka-ui.com/docs/components/${a}`, u = `Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${i}.`;
|
|
10
|
+
e(() => {
|
|
11
|
+
document.getElementById(o) || console.warn(l);
|
|
12
|
+
let e = c.value?.getAttribute("aria-describedby");
|
|
13
|
+
s && e && (document.getElementById(s) || console.warn(u));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as useWarning };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Menu/utils.js
|
|
2
|
+
var e = ["Enter", " "], t = [
|
|
3
|
+
"ArrowDown",
|
|
4
|
+
"PageUp",
|
|
5
|
+
"Home"
|
|
6
|
+
], n = [
|
|
7
|
+
"ArrowUp",
|
|
8
|
+
"PageDown",
|
|
9
|
+
"End"
|
|
10
|
+
];
|
|
11
|
+
[...t, ...n], [...e], [...e];
|
|
12
|
+
function r(e) {
|
|
13
|
+
return e ? "open" : "closed";
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as LAST_KEYS, e as SELECTION_KEYS, r as getOpenState };
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { areEqual as e } from "../shared/arrays.js";
|
|
2
|
+
import { createContext as t } from "../shared/createContext.js";
|
|
3
|
+
import { useDirection as n } from "../shared/useDirection.js";
|
|
4
|
+
import { useForwardExpose as r } from "../shared/useForwardExpose.js";
|
|
5
|
+
import { useId as i } from "../shared/useId.js";
|
|
6
|
+
import { Primitive as a } from "../Primitive/Primitive.js";
|
|
7
|
+
import { assert as o } from "../utils/assert.js";
|
|
8
|
+
import { getResizeHandleElement as s } from "../utils/dom.js";
|
|
9
|
+
import { getResizeEventCursorPosition as c, isKeyDown as l, isMouseEvent as u, isTouchEvent as d } from "../utils/events.js";
|
|
10
|
+
import { calculateDeltaPercentage as f, calculateUnsafeDefaultLayout as p } from "../utils/calculate.js";
|
|
11
|
+
import { fuzzyCompareNumbers as m } from "../utils/compare.js";
|
|
12
|
+
import { callPanelCallbacks as h } from "../utils/callPanelCallbacks.js";
|
|
13
|
+
import { debounce as g } from "../utils/debounce.js";
|
|
14
|
+
import { adjustLayoutByDelta as _, compareLayouts as v } from "../utils/layout.js";
|
|
15
|
+
import { determinePivotIndices as ee } from "../utils/pivot.js";
|
|
16
|
+
import { reportConstraintsViolation as y } from "../utils/registry.js";
|
|
17
|
+
import { computePanelFlexBoxStyle as b } from "../utils/style.js";
|
|
18
|
+
import { convertPanelConstraintsToPercent as x, hasPixelSizedPanel as S, recalculateLayoutForPixelPanels as C } from "../utils/units.js";
|
|
19
|
+
import { validatePanelGroupLayout as w } from "../utils/validation.js";
|
|
20
|
+
import { useWindowSplitterPanelGroupBehavior as te } from "../composables/useWindowSplitterPanelGroupBehavior.js";
|
|
21
|
+
import { initializeDefaultStorage as T, loadPanelGroupState as ne, savePanelGroupState as re } from "../utils/storage.js";
|
|
22
|
+
import { computed as ie, createBlock as ae, defineComponent as E, normalizeStyle as oe, openBlock as se, ref as D, renderSlot as ce, toRefs as le, unref as O, watch as k, watchEffect as A, withCtx as ue } from "vue";
|
|
23
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js
|
|
24
|
+
var de = 100, j = {
|
|
25
|
+
getItem: (e) => (T(j), j.getItem(e)),
|
|
26
|
+
setItem: (e, t) => {
|
|
27
|
+
T(j), j.setItem(e, t);
|
|
28
|
+
}
|
|
29
|
+
}, [M, fe] = /*#__PURE__*/ t("PanelGroup"), N = /* @__PURE__ */ E({
|
|
30
|
+
__name: "SplitterGroup",
|
|
31
|
+
props: {
|
|
32
|
+
id: {
|
|
33
|
+
type: [String, null],
|
|
34
|
+
required: !1
|
|
35
|
+
},
|
|
36
|
+
autoSaveId: {
|
|
37
|
+
type: [String, null],
|
|
38
|
+
required: !1,
|
|
39
|
+
default: null
|
|
40
|
+
},
|
|
41
|
+
direction: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: !0
|
|
44
|
+
},
|
|
45
|
+
keyboardResizeBy: {
|
|
46
|
+
type: [Number, null],
|
|
47
|
+
required: !1,
|
|
48
|
+
default: 10
|
|
49
|
+
},
|
|
50
|
+
storage: {
|
|
51
|
+
type: Object,
|
|
52
|
+
required: !1,
|
|
53
|
+
default: () => j
|
|
54
|
+
},
|
|
55
|
+
asChild: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: !1
|
|
58
|
+
},
|
|
59
|
+
as: {
|
|
60
|
+
type: null,
|
|
61
|
+
required: !1
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
emits: ["layout"],
|
|
65
|
+
setup(t, { emit: T }) {
|
|
66
|
+
let E = t, j = T, M = {}, { direction: N } = le(E), P = i(E.id, "reka-splitter-group"), pe = n(), { forwardRef: me, currentElement: F } = r(), I = D(null), L = D(null), R = D(null), z = D([]), B = D({}), V = D(/* @__PURE__ */ new Map()), H = D(0), U = ie(() => ({
|
|
67
|
+
autoSaveId: E.autoSaveId,
|
|
68
|
+
direction: E.direction,
|
|
69
|
+
dragState: I.value,
|
|
70
|
+
id: P,
|
|
71
|
+
keyboardResizeBy: E.keyboardResizeBy,
|
|
72
|
+
storage: E.storage
|
|
73
|
+
})), W = D({
|
|
74
|
+
layout: z.value,
|
|
75
|
+
panelDataArray: [],
|
|
76
|
+
panelDataArrayChanged: !1
|
|
77
|
+
});
|
|
78
|
+
function G() {
|
|
79
|
+
if (L.value != null) return L.value;
|
|
80
|
+
let e = F.value;
|
|
81
|
+
if (e && e instanceof HTMLElement) {
|
|
82
|
+
let t = e.getBoundingClientRect(), n = N.value === "horizontal" ? t.width : t.height;
|
|
83
|
+
if (!Number.isNaN(n)) return L.value = n, n;
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
function K(e) {
|
|
88
|
+
let t = e ?? G();
|
|
89
|
+
return x({
|
|
90
|
+
panelDataArray: W.value.panelDataArray,
|
|
91
|
+
groupSizeInPixels: t
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function q(e) {
|
|
95
|
+
let t = K(e);
|
|
96
|
+
return t ? W.value.panelDataArray.map((e, n) => ({
|
|
97
|
+
...e,
|
|
98
|
+
constraints: t[n]
|
|
99
|
+
})) : null;
|
|
100
|
+
}
|
|
101
|
+
let J = (e) => z.value = e;
|
|
102
|
+
function Y(e) {
|
|
103
|
+
let { panelDataArray: t } = W.value, n = G();
|
|
104
|
+
return e.map((e, r) => {
|
|
105
|
+
let i = t[r];
|
|
106
|
+
return i && (i.constraints.sizeUnit ?? "%") === "px" && n != null ? e / 100 * n : e;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
te({
|
|
110
|
+
eagerValuesRef: W,
|
|
111
|
+
groupId: P,
|
|
112
|
+
layout: z,
|
|
113
|
+
panelDataArray: W.value.panelDataArray,
|
|
114
|
+
setLayout: J,
|
|
115
|
+
panelGroupElement: F,
|
|
116
|
+
getPanelDataWithPercentConstraints: q
|
|
117
|
+
}), A((e) => {
|
|
118
|
+
let t = F.value;
|
|
119
|
+
if (!t || typeof ResizeObserver != "function") return;
|
|
120
|
+
let n = new ResizeObserver((e) => {
|
|
121
|
+
let t = e[0];
|
|
122
|
+
if (!t) return;
|
|
123
|
+
let { height: n, width: r } = t.contentRect, i = N.value === "horizontal" ? r : n;
|
|
124
|
+
Number.isNaN(i) || (L.value = i);
|
|
125
|
+
});
|
|
126
|
+
t instanceof HTMLElement && n.observe(t), e(() => n.disconnect());
|
|
127
|
+
}), A(() => {
|
|
128
|
+
let { panelDataArray: e } = W.value, { autoSaveId: t } = E;
|
|
129
|
+
if (t) {
|
|
130
|
+
if (z.value.length === 0 || z.value.length !== e.length) return;
|
|
131
|
+
let n = M[t];
|
|
132
|
+
n || (n = g(re, de), M[t] = n);
|
|
133
|
+
let r = [...e], i = new Map(V.value);
|
|
134
|
+
n(t, r, i, z.value, E.storage);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
function he(e, t) {
|
|
138
|
+
let { panelDataArray: n } = W.value, r = Q(n, e);
|
|
139
|
+
return b({
|
|
140
|
+
defaultSize: t,
|
|
141
|
+
dragState: I.value,
|
|
142
|
+
layout: z.value,
|
|
143
|
+
panelData: n,
|
|
144
|
+
panelIndex: r
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function ge(e) {
|
|
148
|
+
let { panelDataArray: t } = W.value;
|
|
149
|
+
t.push(e), t.sort((e, t) => {
|
|
150
|
+
let n = e.order, r = t.order;
|
|
151
|
+
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
|
|
152
|
+
}), W.value.panelDataArrayChanged = !0;
|
|
153
|
+
}
|
|
154
|
+
k(() => W.value.panelDataArrayChanged, () => {
|
|
155
|
+
if (W.value.panelDataArrayChanged) {
|
|
156
|
+
W.value.panelDataArrayChanged = !1;
|
|
157
|
+
let { autoSaveId: t, storage: n } = U.value, { layout: r, panelDataArray: i } = W.value, a = null;
|
|
158
|
+
if (t) {
|
|
159
|
+
let e = ne(t, i, n);
|
|
160
|
+
e && (V.value = new Map(Object.entries(e.expandToSizes)), a = e.layout);
|
|
161
|
+
}
|
|
162
|
+
if (a === null) {
|
|
163
|
+
let e = q();
|
|
164
|
+
if (!e) return;
|
|
165
|
+
a = p({ panelDataArray: e });
|
|
166
|
+
}
|
|
167
|
+
let o = K();
|
|
168
|
+
if (!o) return;
|
|
169
|
+
let s = w({
|
|
170
|
+
layout: a,
|
|
171
|
+
panelConstraints: o
|
|
172
|
+
});
|
|
173
|
+
R.value = G(), e(r, s) || (J(s), W.value.layout = s, j("layout", Y(s)), h(i, s, B.value, G()));
|
|
174
|
+
}
|
|
175
|
+
}), k(L, (e, t) => {
|
|
176
|
+
if (t == null || e == null) return;
|
|
177
|
+
let { layout: n, panelDataArray: r } = W.value;
|
|
178
|
+
if (n.length === 0 || !S(r)) return;
|
|
179
|
+
let i = R.value;
|
|
180
|
+
if (i != null && i > 0 && i < 50 && e > i * 10) {
|
|
181
|
+
W.value.panelDataArrayChanged = !0;
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
let a = C({
|
|
185
|
+
layout: n,
|
|
186
|
+
panelDataArray: r,
|
|
187
|
+
prevGroupSize: t,
|
|
188
|
+
nextGroupSize: e
|
|
189
|
+
});
|
|
190
|
+
if (!a) return;
|
|
191
|
+
let o = K(e);
|
|
192
|
+
if (!o) return;
|
|
193
|
+
let s = w({
|
|
194
|
+
layout: a,
|
|
195
|
+
panelConstraints: o
|
|
196
|
+
});
|
|
197
|
+
v(n, s) || (J(s), W.value.layout = s, j("layout", Y(s)), h(r, s, B.value, G()));
|
|
198
|
+
});
|
|
199
|
+
function _e(e) {
|
|
200
|
+
return function(t) {
|
|
201
|
+
t.preventDefault();
|
|
202
|
+
let n = F.value;
|
|
203
|
+
if (!n) return () => null;
|
|
204
|
+
let { direction: r, dragState: i, id: a, keyboardResizeBy: o } = U.value, { layout: s, panelDataArray: c } = W.value, { initialLayout: p } = i ?? {}, m = ee(a, e, n), g = f(t, e, r, i, o, n);
|
|
205
|
+
if (g === 0) return;
|
|
206
|
+
let b = r === "horizontal";
|
|
207
|
+
pe.value === "rtl" && b && (g = -g);
|
|
208
|
+
let x = K();
|
|
209
|
+
if (!x) return;
|
|
210
|
+
let S = _({
|
|
211
|
+
delta: g,
|
|
212
|
+
layout: p ?? s,
|
|
213
|
+
panelConstraints: x,
|
|
214
|
+
pivotIndices: m,
|
|
215
|
+
trigger: l(t) ? "keyboard" : "mouse-or-touch"
|
|
216
|
+
}), C = !v(s, S);
|
|
217
|
+
(u(t) || d(t)) && H.value !== g && (H.value = g, C ? y(e, 0) : b ? y(e, g < 0 ? 1 : 2) : y(e, g < 0 ? 4 : 8)), C && (J(S), W.value.layout = S, j("layout", Y(S)), h(c, S, B.value, G()));
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function X(e, t) {
|
|
221
|
+
let { layout: n, panelDataArray: r } = W.value, i = K();
|
|
222
|
+
if (!i) return;
|
|
223
|
+
let a = Q(r, e), s = e.constraints.sizeUnit ?? "%", c = t;
|
|
224
|
+
if (s === "px") {
|
|
225
|
+
let e = G();
|
|
226
|
+
e != null && (c = t / e * 100);
|
|
227
|
+
}
|
|
228
|
+
let { panelSize: l, pivotIndices: u } = $(r, e, n, i);
|
|
229
|
+
o(l != null);
|
|
230
|
+
let d = _({
|
|
231
|
+
delta: a === r.length - 1 ? l - c : c - l,
|
|
232
|
+
layout: n,
|
|
233
|
+
panelConstraints: i,
|
|
234
|
+
pivotIndices: u,
|
|
235
|
+
trigger: "imperative-api"
|
|
236
|
+
});
|
|
237
|
+
v(n, d) || (J(d), W.value.layout = d, j("layout", Y(d)), h(r, d, B.value, G()));
|
|
238
|
+
}
|
|
239
|
+
function ve(e, t) {
|
|
240
|
+
let { layout: n, panelDataArray: r } = W.value, i = Q(r, e);
|
|
241
|
+
r[i] = e, W.value.panelDataArrayChanged = !0;
|
|
242
|
+
let a = K();
|
|
243
|
+
if (!a) return;
|
|
244
|
+
let o = a[i], { panelSize: s } = $(r, e, n, a);
|
|
245
|
+
if (s === null) return;
|
|
246
|
+
let c = o?.collapsedSize ?? 0, l = o?.maxSize ?? 100, u = o?.minSize ?? 0;
|
|
247
|
+
o?.collapsible && Z(e) ? s !== c && X(e, c) : s < u ? X(e, u) : s > l && X(e, l);
|
|
248
|
+
}
|
|
249
|
+
function ye(e, t) {
|
|
250
|
+
let { direction: n } = U.value, { layout: r } = W.value;
|
|
251
|
+
if (!F.value) return;
|
|
252
|
+
let i = s(e, F.value);
|
|
253
|
+
o(i);
|
|
254
|
+
let a = c(n, t);
|
|
255
|
+
I.value = {
|
|
256
|
+
dragHandleId: e,
|
|
257
|
+
dragHandleRect: i.getBoundingClientRect(),
|
|
258
|
+
initialCursorPosition: a,
|
|
259
|
+
initialLayout: r
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function be() {
|
|
263
|
+
I.value = null;
|
|
264
|
+
}
|
|
265
|
+
function xe(e) {
|
|
266
|
+
let { panelDataArray: t } = W.value, n = Q(t, e);
|
|
267
|
+
n >= 0 && (t.splice(n, 1), delete B.value[e.id], W.value.panelDataArrayChanged = !0);
|
|
268
|
+
}
|
|
269
|
+
function Se(e) {
|
|
270
|
+
let { layout: t, panelDataArray: n } = W.value;
|
|
271
|
+
if (e.constraints.collapsible) {
|
|
272
|
+
let r = K();
|
|
273
|
+
if (!r) return;
|
|
274
|
+
let { collapsedSize: i = 0, panelSize: a, pivotIndices: s } = $(n, e, t, r);
|
|
275
|
+
if (o(a != null, `Panel size not found for panel "${e.id}"`), a !== i) {
|
|
276
|
+
let o = e.constraints.sizeUnit ?? "%", c = L.value ?? G(), l = o === "px" && c ? a / 100 * c : a;
|
|
277
|
+
V.value.set(e.id, l);
|
|
278
|
+
let u = _({
|
|
279
|
+
delta: Q(n, e) === n.length - 1 ? a - i : i - a,
|
|
280
|
+
layout: t,
|
|
281
|
+
panelConstraints: r,
|
|
282
|
+
pivotIndices: s,
|
|
283
|
+
trigger: "imperative-api"
|
|
284
|
+
});
|
|
285
|
+
v(t, u) || (J(u), W.value.layout = u, j("layout", Y(u)), h(n, u, B.value, G()));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function Ce(e) {
|
|
290
|
+
let { layout: t, panelDataArray: n } = W.value;
|
|
291
|
+
if (e.constraints.collapsible) {
|
|
292
|
+
let r = K();
|
|
293
|
+
if (!r) return;
|
|
294
|
+
let { collapsedSize: i = 0, panelSize: a = 0, minSize: o = 0, pivotIndices: s } = $(n, e, t, r);
|
|
295
|
+
if (m(a, i) <= 0) {
|
|
296
|
+
let i = V.value.get(e.id), c = e.constraints.sizeUnit ?? "%", l = L.value ?? G(), u = c === "px" && l ? i == null ? null : i / l * 100 : i, d = u != null && u >= o ? u : o, f = _({
|
|
297
|
+
delta: Q(n, e) === n.length - 1 ? a - d : d - a,
|
|
298
|
+
layout: t,
|
|
299
|
+
panelConstraints: r,
|
|
300
|
+
pivotIndices: s,
|
|
301
|
+
trigger: "imperative-api"
|
|
302
|
+
});
|
|
303
|
+
v(t, f) || (J(f), W.value.layout = f, j("layout", Y(f)), h(n, f, B.value, G()));
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
function we(e) {
|
|
308
|
+
let { layout: t, panelDataArray: n } = W.value, { panelSize: r } = $(n, e, t);
|
|
309
|
+
if (o(r != null, `Panel size not found for panel "${e.id}"`), (e.constraints.sizeUnit ?? "%") === "px") {
|
|
310
|
+
let e = G();
|
|
311
|
+
if (e != null) return r / 100 * e;
|
|
312
|
+
}
|
|
313
|
+
return r;
|
|
314
|
+
}
|
|
315
|
+
function Z(e) {
|
|
316
|
+
let { layout: t, panelDataArray: n } = W.value, r = K(), { collapsedSize: i = 0, collapsible: a, panelSize: o } = $(n, e, t, r ?? void 0);
|
|
317
|
+
if (!a) return !1;
|
|
318
|
+
if (o === void 0) {
|
|
319
|
+
let t = Q(n, e), i = r?.[t] ?? e.constraints;
|
|
320
|
+
return i.defaultSize === i.collapsedSize;
|
|
321
|
+
} else return m(o, i) <= 0;
|
|
322
|
+
}
|
|
323
|
+
function Te(e) {
|
|
324
|
+
let { layout: t, panelDataArray: n } = W.value, { collapsedSize: r = 0, collapsible: i, panelSize: a } = $(n, e, t, K() ?? void 0);
|
|
325
|
+
return o(a != null, `Panel size not found for panel "${e.id}"`), !i || m(a, r) > 0;
|
|
326
|
+
}
|
|
327
|
+
fe({
|
|
328
|
+
direction: N,
|
|
329
|
+
dragState: I.value,
|
|
330
|
+
groupId: P,
|
|
331
|
+
reevaluatePanelConstraints: ve,
|
|
332
|
+
registerPanel: ge,
|
|
333
|
+
registerResizeHandle: _e,
|
|
334
|
+
resizePanel: X,
|
|
335
|
+
startDragging: ye,
|
|
336
|
+
stopDragging: be,
|
|
337
|
+
unregisterPanel: xe,
|
|
338
|
+
panelGroupElement: F,
|
|
339
|
+
collapsePanel: Se,
|
|
340
|
+
expandPanel: Ce,
|
|
341
|
+
isPanelCollapsed: Z,
|
|
342
|
+
isPanelExpanded: Te,
|
|
343
|
+
getPanelSize: we,
|
|
344
|
+
getPanelStyle: he
|
|
345
|
+
});
|
|
346
|
+
function Q(e, t) {
|
|
347
|
+
return e.findIndex((e) => e === t || e.id === t.id);
|
|
348
|
+
}
|
|
349
|
+
function $(e, t, n, r) {
|
|
350
|
+
let i = Q(e, t), a = i === e.length - 1 ? [i - 1, i] : [i, i + 1], o = (r ?? K())?.[i], s = n[i];
|
|
351
|
+
return {
|
|
352
|
+
...o ?? t.constraints,
|
|
353
|
+
panelSize: s,
|
|
354
|
+
pivotIndices: a
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
return (e, t) => (se(), ae(O(a), {
|
|
358
|
+
ref: O(me),
|
|
359
|
+
as: e.as,
|
|
360
|
+
"as-child": e.asChild,
|
|
361
|
+
style: oe({
|
|
362
|
+
display: "flex",
|
|
363
|
+
flexDirection: O(N) === "horizontal" ? "row" : "column",
|
|
364
|
+
height: "100%",
|
|
365
|
+
overflow: "hidden",
|
|
366
|
+
width: "100%"
|
|
367
|
+
}),
|
|
368
|
+
"data-panel-group": "",
|
|
369
|
+
"data-orientation": O(N),
|
|
370
|
+
"data-panel-group-id": O(P)
|
|
371
|
+
}, {
|
|
372
|
+
default: ue(() => [ce(e.$slots, "default", { layout: z.value })]),
|
|
373
|
+
_: 3
|
|
374
|
+
}, 8, [
|
|
375
|
+
"as",
|
|
376
|
+
"as-child",
|
|
377
|
+
"style",
|
|
378
|
+
"data-orientation",
|
|
379
|
+
"data-panel-group-id"
|
|
380
|
+
]));
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
//#endregion
|
|
384
|
+
export { N as SplitterGroup_default, M as injectPanelGroupContext };
|