@septkit/ui 0.0.42 → 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/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 +402 -2
- 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,136 @@
|
|
|
1
|
+
import { useId as e } from "../shared/useId.js";
|
|
2
|
+
import { Primitive as t } from "../Primitive/Primitive.js";
|
|
3
|
+
import { injectPanelGroupContext as n } from "./SplitterGroup.js";
|
|
4
|
+
import { computed as r, createBlock as i, defineComponent as a, normalizeStyle as o, onMounted as s, onUnmounted as c, openBlock as l, renderSlot as u, unref as d, watch as f, withCtx as p } 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/Splitter/SplitterPanel.js
|
|
6
|
+
var m = /* @__PURE__ */ a({
|
|
7
|
+
__name: "SplitterPanel",
|
|
8
|
+
props: {
|
|
9
|
+
collapsedSize: {
|
|
10
|
+
type: Number,
|
|
11
|
+
required: !1
|
|
12
|
+
},
|
|
13
|
+
collapsible: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
required: !1
|
|
16
|
+
},
|
|
17
|
+
defaultSize: {
|
|
18
|
+
type: Number,
|
|
19
|
+
required: !1
|
|
20
|
+
},
|
|
21
|
+
id: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: !1
|
|
24
|
+
},
|
|
25
|
+
maxSize: {
|
|
26
|
+
type: Number,
|
|
27
|
+
required: !1
|
|
28
|
+
},
|
|
29
|
+
minSize: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: !1
|
|
32
|
+
},
|
|
33
|
+
order: {
|
|
34
|
+
type: Number,
|
|
35
|
+
required: !1
|
|
36
|
+
},
|
|
37
|
+
sizeUnit: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: !1
|
|
40
|
+
},
|
|
41
|
+
asChild: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
required: !1
|
|
44
|
+
},
|
|
45
|
+
as: {
|
|
46
|
+
type: null,
|
|
47
|
+
required: !1
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: [
|
|
51
|
+
"collapse",
|
|
52
|
+
"expand",
|
|
53
|
+
"resize"
|
|
54
|
+
],
|
|
55
|
+
setup(a, { expose: m, emit: h }) {
|
|
56
|
+
let g = a, _ = h, v = n();
|
|
57
|
+
if (v === null) throw Error("SplitterPanel components must be rendered within a SplitterGroup container");
|
|
58
|
+
let { collapsePanel: y, expandPanel: b, getPanelSize: x, getPanelStyle: S, isPanelCollapsed: C, resizePanel: w, groupId: T, reevaluatePanelConstraints: E, registerPanel: D, unregisterPanel: O } = v, k = e(g.id, "reka-splitter-panel"), A = r(() => ({
|
|
59
|
+
callbacks: {
|
|
60
|
+
onCollapse: () => _("collapse"),
|
|
61
|
+
onExpand: () => _("expand"),
|
|
62
|
+
onResize: (...e) => _("resize", ...e)
|
|
63
|
+
},
|
|
64
|
+
constraints: {
|
|
65
|
+
collapsedSize: g.collapsedSize && Number.parseFloat(g.collapsedSize.toFixed(10)),
|
|
66
|
+
collapsible: g.collapsible,
|
|
67
|
+
defaultSize: g.defaultSize,
|
|
68
|
+
maxSize: g.maxSize,
|
|
69
|
+
minSize: g.minSize,
|
|
70
|
+
sizeUnit: g.sizeUnit ?? "%"
|
|
71
|
+
},
|
|
72
|
+
id: k,
|
|
73
|
+
idIsFromProps: g.id !== void 0,
|
|
74
|
+
order: g.order
|
|
75
|
+
}));
|
|
76
|
+
f(() => A.value.constraints, (e, t) => {
|
|
77
|
+
(t.collapsedSize !== e.collapsedSize || t.collapsible !== e.collapsible || t.maxSize !== e.maxSize || t.minSize !== e.minSize || t.sizeUnit !== e.sizeUnit) && E(A.value, t);
|
|
78
|
+
}, { deep: !0 }), s(() => {
|
|
79
|
+
D(A.value);
|
|
80
|
+
}), c(() => {
|
|
81
|
+
O(A.value);
|
|
82
|
+
});
|
|
83
|
+
let j = r(() => S(A.value, g.defaultSize)), M = r(() => C(A.value)), N = r(() => !M.value);
|
|
84
|
+
function P() {
|
|
85
|
+
y(A.value);
|
|
86
|
+
}
|
|
87
|
+
function F() {
|
|
88
|
+
b(A.value);
|
|
89
|
+
}
|
|
90
|
+
function I(e) {
|
|
91
|
+
w(A.value, e);
|
|
92
|
+
}
|
|
93
|
+
return m({
|
|
94
|
+
collapse: P,
|
|
95
|
+
expand: F,
|
|
96
|
+
getSize() {
|
|
97
|
+
return x(A.value);
|
|
98
|
+
},
|
|
99
|
+
resize: I,
|
|
100
|
+
isCollapsed: M,
|
|
101
|
+
isExpanded: N
|
|
102
|
+
}), (e, n) => (l(), i(d(t), {
|
|
103
|
+
id: d(k),
|
|
104
|
+
style: o(j.value),
|
|
105
|
+
as: e.as,
|
|
106
|
+
"as-child": e.asChild,
|
|
107
|
+
"data-panel": "",
|
|
108
|
+
"data-panel-collapsible": e.collapsible || void 0,
|
|
109
|
+
"data-panel-group-id": d(T),
|
|
110
|
+
"data-panel-id": d(k),
|
|
111
|
+
"data-panel-size": Number.parseFloat(`${j.value.flexGrow}`).toFixed(1),
|
|
112
|
+
"data-state": e.collapsible ? M.value ? "collapsed" : "expanded" : void 0
|
|
113
|
+
}, {
|
|
114
|
+
default: p(() => [u(e.$slots, "default", {
|
|
115
|
+
isCollapsed: M.value,
|
|
116
|
+
isExpanded: N.value,
|
|
117
|
+
expand: F,
|
|
118
|
+
collapse: P,
|
|
119
|
+
resize: I
|
|
120
|
+
})]),
|
|
121
|
+
_: 3
|
|
122
|
+
}, 8, [
|
|
123
|
+
"id",
|
|
124
|
+
"style",
|
|
125
|
+
"as",
|
|
126
|
+
"as-child",
|
|
127
|
+
"data-panel-collapsible",
|
|
128
|
+
"data-panel-group-id",
|
|
129
|
+
"data-panel-id",
|
|
130
|
+
"data-panel-size",
|
|
131
|
+
"data-state"
|
|
132
|
+
]));
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
//#endregion
|
|
136
|
+
export { m as SplitterPanel_default };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { isBrowser as e } from "../shared/browser.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { useId as n } from "../shared/useId.js";
|
|
4
|
+
import { Primitive as r } from "../Primitive/Primitive.js";
|
|
5
|
+
import { useNonce as i } from "../shared/useNonce.js";
|
|
6
|
+
import { assert as a } from "../utils/assert.js";
|
|
7
|
+
import { registerResizeHandle as o } from "../utils/registry.js";
|
|
8
|
+
import { injectPanelGroupContext as s } from "./SplitterGroup.js";
|
|
9
|
+
import { useWindowSplitterResizeHandlerBehavior as c } from "../composables/useWindowSplitterBehavior.js";
|
|
10
|
+
import { createBlock as l, defineComponent as u, openBlock as d, ref as f, renderSlot as p, toRefs as m, unref as h, watch as g, watchEffect as _, withCtx as v } from "vue";
|
|
11
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js
|
|
12
|
+
var y = /* @__PURE__ */ u({
|
|
13
|
+
__name: "SplitterResizeHandle",
|
|
14
|
+
props: {
|
|
15
|
+
id: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
hitAreaMargins: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: !1
|
|
22
|
+
},
|
|
23
|
+
tabindex: {
|
|
24
|
+
type: Number,
|
|
25
|
+
required: !1,
|
|
26
|
+
default: 0
|
|
27
|
+
},
|
|
28
|
+
disabled: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
required: !1
|
|
31
|
+
},
|
|
32
|
+
nonce: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: !1
|
|
35
|
+
},
|
|
36
|
+
asChild: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
required: !1
|
|
39
|
+
},
|
|
40
|
+
as: {
|
|
41
|
+
type: null,
|
|
42
|
+
required: !1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["dragging"],
|
|
46
|
+
setup(u, { emit: y }) {
|
|
47
|
+
let b = u, x = y, { forwardRef: S, currentElement: C } = t(), { disabled: w } = m(b), T = s();
|
|
48
|
+
if (T === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
49
|
+
let { direction: E, groupId: D, registerResizeHandle: O, startDragging: k, stopDragging: A, panelGroupElement: j } = T, M = n(b.id, "reka-splitter-resize-handle"), N = f("inactive"), P = f(!1), F = f(null), { nonce: I } = m(b), L = i(I);
|
|
50
|
+
return g(w, () => {
|
|
51
|
+
e && (w.value ? F.value = null : F.value = O(M));
|
|
52
|
+
}, { immediate: !0 }), _((e) => {
|
|
53
|
+
if (w.value || F.value === null) return;
|
|
54
|
+
let t = C.value;
|
|
55
|
+
t && (a(t), e(o(M, t, E, {
|
|
56
|
+
coarse: b.hitAreaMargins?.coarse ?? 15,
|
|
57
|
+
fine: b.hitAreaMargins?.fine ?? 5
|
|
58
|
+
}, L, (e, t, n) => {
|
|
59
|
+
if (t) switch (e) {
|
|
60
|
+
case "down":
|
|
61
|
+
N.value = "drag", k(M, n), x("dragging", !0);
|
|
62
|
+
break;
|
|
63
|
+
case "move":
|
|
64
|
+
N.value !== "drag" && (N.value = "hover"), F.value?.(n);
|
|
65
|
+
break;
|
|
66
|
+
case "up":
|
|
67
|
+
N.value = "hover", A(), x("dragging", !1);
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
else N.value = "inactive";
|
|
71
|
+
})));
|
|
72
|
+
}), c({
|
|
73
|
+
disabled: w,
|
|
74
|
+
resizeHandler: F,
|
|
75
|
+
handleId: M,
|
|
76
|
+
panelGroupElement: j
|
|
77
|
+
}), (e, t) => (d(), l(h(r), {
|
|
78
|
+
id: h(M),
|
|
79
|
+
ref: h(S),
|
|
80
|
+
style: {
|
|
81
|
+
touchAction: "none",
|
|
82
|
+
userSelect: "none"
|
|
83
|
+
},
|
|
84
|
+
as: e.as,
|
|
85
|
+
"as-child": e.asChild,
|
|
86
|
+
role: "separator",
|
|
87
|
+
"data-resize-handle": "",
|
|
88
|
+
tabindex: e.tabindex,
|
|
89
|
+
"data-state": N.value,
|
|
90
|
+
"data-disabled": h(w) ? "" : void 0,
|
|
91
|
+
"data-orientation": h(E),
|
|
92
|
+
"data-panel-group-id": h(D),
|
|
93
|
+
"data-resize-handle-active": N.value === "drag" ? "pointer" : P.value ? "keyboard" : void 0,
|
|
94
|
+
"data-resize-handle-state": N.value,
|
|
95
|
+
"data-panel-resize-handle-enabled": !h(w),
|
|
96
|
+
"data-panel-resize-handle-id": h(M),
|
|
97
|
+
onBlur: t[0] ||= (e) => P.value = !1,
|
|
98
|
+
onFocus: t[1] ||= (e) => P.value = !1
|
|
99
|
+
}, {
|
|
100
|
+
default: v(() => [p(e.$slots, "default")]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, [
|
|
103
|
+
"id",
|
|
104
|
+
"as",
|
|
105
|
+
"as-child",
|
|
106
|
+
"tabindex",
|
|
107
|
+
"data-state",
|
|
108
|
+
"data-disabled",
|
|
109
|
+
"data-orientation",
|
|
110
|
+
"data-panel-group-id",
|
|
111
|
+
"data-resize-handle-active",
|
|
112
|
+
"data-resize-handle-state",
|
|
113
|
+
"data-panel-resize-handle-enabled",
|
|
114
|
+
"data-panel-resize-handle-id"
|
|
115
|
+
]));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
//#endregion
|
|
119
|
+
export { y as SplitterResizeHandle_default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useForwardExpose as e } from "../shared/useForwardExpose.js";
|
|
2
|
+
import { Primitive as t } from "../Primitive/Primitive.js";
|
|
3
|
+
import { injectStepperItemContext as n } from "./StepperItem.js";
|
|
4
|
+
import { createBlock as r, createTextVNode as i, defineComponent as a, guardReactiveProps as o, normalizeProps as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d, withCtx as f } 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/Stepper/StepperIndicator.js
|
|
6
|
+
var p = /* @__PURE__ */ a({
|
|
7
|
+
__name: "StepperIndicator",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !1
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: !1
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(a) {
|
|
19
|
+
let p = a, m = n();
|
|
20
|
+
return e(), (e, n) => (c(), r(d(t), s(o(p)), {
|
|
21
|
+
default: f(() => [l(e.$slots, "default", { step: d(m).step.value }, () => [i(" Step " + u(d(m).step.value), 1)])]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 16));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { p as StepperIndicator_default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createContext as e } from "../shared/createContext.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { useId as n } from "../shared/useId.js";
|
|
4
|
+
import { Primitive as r } from "../Primitive/Primitive.js";
|
|
5
|
+
import { injectStepperRootContext as i } from "./StepperRoot.js";
|
|
6
|
+
import { computed as a, createBlock as o, defineComponent as s, openBlock as c, renderSlot as l, toRefs as u, unref as d, withCtx as f } from "vue";
|
|
7
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js
|
|
8
|
+
var [p, m] = /*#__PURE__*/ e("StepperItem"), h = /* @__PURE__ */ s({
|
|
9
|
+
__name: "StepperItem",
|
|
10
|
+
props: {
|
|
11
|
+
step: {
|
|
12
|
+
type: Number,
|
|
13
|
+
required: !0
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
required: !1,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
completed: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
required: !1,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
asChild: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
required: !1
|
|
28
|
+
},
|
|
29
|
+
as: {
|
|
30
|
+
type: null,
|
|
31
|
+
required: !1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(e) {
|
|
35
|
+
let { disabled: s, step: p, completed: h } = u(e), { forwardRef: g } = t(), _ = i(), v = n(void 0, "reka-stepper-item-title"), y = n(void 0, "reka-stepper-item-description"), b = a(() => h.value ? "completed" : _.modelValue.value === p.value ? "active" : _.modelValue.value > p.value ? "completed" : "inactive"), x = a(() => s.value ? !1 : _.linear.value ? p.value <= _.modelValue.value || p.value === _.modelValue.value + 1 : !0);
|
|
36
|
+
return m({
|
|
37
|
+
titleId: v,
|
|
38
|
+
descriptionId: y,
|
|
39
|
+
state: b,
|
|
40
|
+
disabled: s,
|
|
41
|
+
step: p,
|
|
42
|
+
isFocusable: x
|
|
43
|
+
}), (e, t) => (c(), o(d(r), {
|
|
44
|
+
ref: d(g),
|
|
45
|
+
as: e.as,
|
|
46
|
+
"as-child": e.asChild,
|
|
47
|
+
"aria-current": b.value === "active" ? "true" : void 0,
|
|
48
|
+
"data-state": b.value,
|
|
49
|
+
disabled: d(s) || !x.value ? "" : void 0,
|
|
50
|
+
"data-disabled": d(s) || !x.value ? "" : void 0,
|
|
51
|
+
"data-orientation": d(_).orientation.value
|
|
52
|
+
}, {
|
|
53
|
+
default: f(() => [l(e.$slots, "default", { state: b.value })]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, [
|
|
56
|
+
"as",
|
|
57
|
+
"as-child",
|
|
58
|
+
"aria-current",
|
|
59
|
+
"data-state",
|
|
60
|
+
"disabled",
|
|
61
|
+
"data-disabled",
|
|
62
|
+
"data-orientation"
|
|
63
|
+
]));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { h as StepperItem_default, p as injectStepperItemContext };
|
|
@@ -0,0 +1,136 @@
|
|
|
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 { useDirection as n } from "../shared/useDirection.js";
|
|
4
|
+
import { useForwardExpose as r } from "../shared/useForwardExpose.js";
|
|
5
|
+
import { Primitive as i } from "../Primitive/Primitive.js";
|
|
6
|
+
import { computed as a, createBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, toRefs as m, unref as h, watch as g, withCtx as _ } from "vue";
|
|
7
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js
|
|
8
|
+
var v = {
|
|
9
|
+
"aria-live": "polite",
|
|
10
|
+
"aria-atomic": "true",
|
|
11
|
+
role: "status",
|
|
12
|
+
style: {
|
|
13
|
+
transform: "translateX(-100%)",
|
|
14
|
+
position: "absolute",
|
|
15
|
+
pointerEvents: "none",
|
|
16
|
+
opacity: 0,
|
|
17
|
+
margin: 0
|
|
18
|
+
}
|
|
19
|
+
}, [y, b] = /*#__PURE__*/ t("StepperRoot"), x = /* @__PURE__ */ c({
|
|
20
|
+
__name: "StepperRoot",
|
|
21
|
+
props: {
|
|
22
|
+
defaultValue: {
|
|
23
|
+
type: Number,
|
|
24
|
+
required: !1,
|
|
25
|
+
default: 1
|
|
26
|
+
},
|
|
27
|
+
orientation: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: !1,
|
|
30
|
+
default: "horizontal"
|
|
31
|
+
},
|
|
32
|
+
dir: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: !1
|
|
35
|
+
},
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: Number,
|
|
38
|
+
required: !1
|
|
39
|
+
},
|
|
40
|
+
linear: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
required: !1,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
asChild: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: !1
|
|
48
|
+
},
|
|
49
|
+
as: {
|
|
50
|
+
type: null,
|
|
51
|
+
required: !1
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
emits: ["update:modelValue"],
|
|
55
|
+
setup(t, { expose: c, emit: y }) {
|
|
56
|
+
let x = t, S = y, { dir: C, orientation: w, linear: T } = m(x), E = n(C), D = d(/* @__PURE__ */ new Set()), O = e(x, "modelValue", S, {
|
|
57
|
+
defaultValue: x.defaultValue,
|
|
58
|
+
passive: x.modelValue === void 0
|
|
59
|
+
}), k = a(() => Array.from(D.value)), A = a(() => O.value === 1), j = a(() => O.value === k.value.length), M = a(() => D.value.size);
|
|
60
|
+
function N(e) {
|
|
61
|
+
e > M.value || e < 1 || D.value.size && k.value[e] && k.value[e].getAttribute("disabled") || T.value && e > (O.value ?? 1) + 1 || (O.value = e);
|
|
62
|
+
}
|
|
63
|
+
function P() {
|
|
64
|
+
N((O.value ?? 1) + 1);
|
|
65
|
+
}
|
|
66
|
+
function F() {
|
|
67
|
+
N((O.value ?? 1) - 1);
|
|
68
|
+
}
|
|
69
|
+
function I() {
|
|
70
|
+
return (O.value ?? 1) < M.value;
|
|
71
|
+
}
|
|
72
|
+
function L() {
|
|
73
|
+
return (O.value ?? 1) > 1;
|
|
74
|
+
}
|
|
75
|
+
let R = d(null), z = d(null), B = a(() => R.value ? R.value.getAttribute("disabled") === "" : !0), V = a(() => z.value ? z.value.getAttribute("disabled") === "" : !0);
|
|
76
|
+
return g(O, async () => {
|
|
77
|
+
await l(() => {
|
|
78
|
+
R.value = k.value.length && O.value < k.value.length ? k.value[O.value] : null, z.value = k.value.length && O.value > 1 ? k.value[O.value - 2] : null;
|
|
79
|
+
});
|
|
80
|
+
}), g(k, async () => {
|
|
81
|
+
await l(() => {
|
|
82
|
+
R.value = k.value.length && O.value < k.value.length ? k.value[O.value] : null, z.value = k.value.length && O.value > 1 ? k.value[O.value - 2] : null;
|
|
83
|
+
});
|
|
84
|
+
}), b({
|
|
85
|
+
modelValue: O,
|
|
86
|
+
changeModelValue: (e) => {
|
|
87
|
+
O.value = e;
|
|
88
|
+
},
|
|
89
|
+
orientation: w,
|
|
90
|
+
dir: E,
|
|
91
|
+
linear: T,
|
|
92
|
+
totalStepperItems: D
|
|
93
|
+
}), c({
|
|
94
|
+
goToStep: N,
|
|
95
|
+
nextStep: P,
|
|
96
|
+
prevStep: F,
|
|
97
|
+
modelValue: O,
|
|
98
|
+
totalSteps: M,
|
|
99
|
+
isNextDisabled: B,
|
|
100
|
+
isPrevDisabled: V,
|
|
101
|
+
isFirstStep: A,
|
|
102
|
+
isLastStep: j,
|
|
103
|
+
hasNext: I,
|
|
104
|
+
hasPrev: L
|
|
105
|
+
}), r(), (e, t) => (u(), o(h(i), {
|
|
106
|
+
role: "group",
|
|
107
|
+
"aria-label": "progress",
|
|
108
|
+
as: e.as,
|
|
109
|
+
"as-child": e.asChild,
|
|
110
|
+
"data-linear": h(T) ? "" : void 0,
|
|
111
|
+
"data-orientation": e.orientation
|
|
112
|
+
}, {
|
|
113
|
+
default: _(() => [f(e.$slots, "default", {
|
|
114
|
+
modelValue: h(O),
|
|
115
|
+
totalSteps: D.value.size,
|
|
116
|
+
isNextDisabled: B.value,
|
|
117
|
+
isPrevDisabled: V.value,
|
|
118
|
+
isFirstStep: A.value,
|
|
119
|
+
isLastStep: j.value,
|
|
120
|
+
goToStep: N,
|
|
121
|
+
nextStep: P,
|
|
122
|
+
prevStep: F,
|
|
123
|
+
hasNext: I,
|
|
124
|
+
hasPrev: L
|
|
125
|
+
}), s("div", v, " Step " + p(h(O)) + " of " + p(D.value.size), 1)]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 8, [
|
|
128
|
+
"as",
|
|
129
|
+
"as-child",
|
|
130
|
+
"data-linear",
|
|
131
|
+
"data-orientation"
|
|
132
|
+
]));
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
//#endregion
|
|
136
|
+
export { x as StepperRoot_default, y as injectStepperRootContext };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useForwardExpose as e } from "../shared/useForwardExpose.js";
|
|
2
|
+
import { Primitive as t } from "../Primitive/Primitive.js";
|
|
3
|
+
import { injectStepperItemContext as n } from "./StepperItem.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/Stepper/StepperTitle.js
|
|
6
|
+
var u = /* @__PURE__ */ i({
|
|
7
|
+
__name: "StepperTitle",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !1
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: !1,
|
|
16
|
+
default: "h4"
|
|
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 StepperTitle_default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { assert as e } from "../utils/assert.js";
|
|
2
|
+
import { getResizeHandleElement as t, getResizeHandleElementIndex as n, getResizeHandleElementsForGroup as r } from "../utils/dom.js";
|
|
3
|
+
import { watchEffect as i } 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/composables/useWindowSplitterBehavior.js
|
|
5
|
+
function a({ disabled: a, handleId: o, resizeHandler: s, panelGroupElement: c }) {
|
|
6
|
+
i((i) => {
|
|
7
|
+
let l = c.value;
|
|
8
|
+
if (a.value || s.value === null || l === null) return;
|
|
9
|
+
let u = t(o, l);
|
|
10
|
+
if (u == null) return;
|
|
11
|
+
let d = (t) => {
|
|
12
|
+
if (!t.defaultPrevented) switch (t.key) {
|
|
13
|
+
case "ArrowDown":
|
|
14
|
+
case "ArrowLeft":
|
|
15
|
+
case "ArrowRight":
|
|
16
|
+
case "ArrowUp":
|
|
17
|
+
case "End":
|
|
18
|
+
case "Home":
|
|
19
|
+
t.preventDefault(), s.value?.(t);
|
|
20
|
+
break;
|
|
21
|
+
case "F6": {
|
|
22
|
+
t.preventDefault();
|
|
23
|
+
let i = u.getAttribute("data-panel-group-id");
|
|
24
|
+
e(i);
|
|
25
|
+
let a = r(i, l), s = n(i, o, l);
|
|
26
|
+
e(s !== null), a[t.shiftKey ? s > 0 ? s - 1 : a.length - 1 : s + 1 < a.length ? s + 1 : 0].focus();
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
u.addEventListener("keydown", d), i(() => {
|
|
32
|
+
u.removeEventListener("keydown", d);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as useWindowSplitterResizeHandlerBehavior };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { assert as e } from "../utils/assert.js";
|
|
2
|
+
import { getPanelGroupElement as t, getResizeHandleElementsForGroup as n, getResizeHandlePanelIds as r } from "../utils/dom.js";
|
|
3
|
+
import { calculateAriaValues as i } from "../utils/calculate.js";
|
|
4
|
+
import { fuzzyNumbersEqual as a } from "../utils/compare.js";
|
|
5
|
+
import { adjustLayoutByDelta as o } from "../utils/layout.js";
|
|
6
|
+
import { determinePivotIndices as s } from "../utils/pivot.js";
|
|
7
|
+
import { watchEffect as c } from "vue";
|
|
8
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js
|
|
9
|
+
function l({ eagerValuesRef: l, groupId: u, layout: d, panelDataArray: f, panelGroupElement: p, setLayout: m, getPanelDataWithPercentConstraints: h }) {
|
|
10
|
+
c((t) => {
|
|
11
|
+
let r = p.value;
|
|
12
|
+
if (!r) return;
|
|
13
|
+
let a = h();
|
|
14
|
+
if (!a) return;
|
|
15
|
+
let o = n(u, r);
|
|
16
|
+
for (let t = 0; t < a.length - 1; t++) {
|
|
17
|
+
let { valueMax: n, valueMin: r, valueNow: s } = i({
|
|
18
|
+
layout: d.value,
|
|
19
|
+
panelsArray: a,
|
|
20
|
+
pivotIndices: [t, t + 1]
|
|
21
|
+
}), c = o[t];
|
|
22
|
+
if (c != null) {
|
|
23
|
+
let i = a[t];
|
|
24
|
+
e(i), c.setAttribute("aria-controls", i.id), c.setAttribute("aria-valuemax", `${Math.round(n)}`), c.setAttribute("aria-valuemin", `${Math.round(r)}`), c.setAttribute("aria-valuenow", s == null ? "" : `${Math.round(s)}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
t(() => {
|
|
28
|
+
o.forEach((e) => {
|
|
29
|
+
e.removeAttribute("aria-controls"), e.removeAttribute("aria-valuemax"), e.removeAttribute("aria-valuemin"), e.removeAttribute("aria-valuenow");
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}), c((i) => {
|
|
33
|
+
let c = p.value;
|
|
34
|
+
if (!c) return;
|
|
35
|
+
let f = l.value;
|
|
36
|
+
e(f);
|
|
37
|
+
let g = h();
|
|
38
|
+
if (!g) return;
|
|
39
|
+
let { panelDataArray: _ } = f;
|
|
40
|
+
e(t(u, c) != null, `No group found for id "${u}"`);
|
|
41
|
+
let v = n(u, c);
|
|
42
|
+
e(v);
|
|
43
|
+
let y = v.map((t) => {
|
|
44
|
+
let n = t.getAttribute("data-panel-resize-handle-id");
|
|
45
|
+
e(n);
|
|
46
|
+
let [i, l] = r(u, n, _, c);
|
|
47
|
+
if (i == null || l == null) return () => {};
|
|
48
|
+
let f = (t) => {
|
|
49
|
+
if (!t.defaultPrevented) switch (t.key) {
|
|
50
|
+
case "Enter": {
|
|
51
|
+
t.preventDefault();
|
|
52
|
+
let r = g.findIndex((e) => e.id === i);
|
|
53
|
+
if (r >= 0) {
|
|
54
|
+
let t = g[r];
|
|
55
|
+
e(t);
|
|
56
|
+
let i = d.value[r], { collapsedSize: l = 0, collapsible: f, minSize: p = 0 } = t.constraints;
|
|
57
|
+
if (i != null && f) {
|
|
58
|
+
let e = o({
|
|
59
|
+
delta: a(i, l) ? p - l : l - i,
|
|
60
|
+
layout: d.value,
|
|
61
|
+
panelConstraints: g.map((e) => e.constraints),
|
|
62
|
+
pivotIndices: s(u, n, c),
|
|
63
|
+
trigger: "keyboard"
|
|
64
|
+
});
|
|
65
|
+
d.value !== e && m(e);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return t.addEventListener("keydown", f), () => {
|
|
73
|
+
t.removeEventListener("keydown", f);
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
i(() => {
|
|
77
|
+
y.forEach((e) => e());
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { l as useWindowSplitterPanelGroupBehavior };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { i as e } from "../../../../../ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.js";
|
|
2
2
|
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js
|
|
3
|
-
function t(
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
if (e.length !== t.length) return !1;
|
|
5
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
6
|
+
return !0;
|
|
7
|
+
}
|
|
8
|
+
function n(t, n, r) {
|
|
4
9
|
let i = t.findIndex((t) => e(t, n)), a = t.findIndex((t) => e(t, r));
|
|
5
10
|
if (i === -1 || a === -1) return [];
|
|
6
11
|
let [o, s] = [i, a].sort((e, t) => e - t);
|
|
7
12
|
return t.slice(o, s + 1);
|
|
8
13
|
}
|
|
9
14
|
//#endregion
|
|
10
|
-
export { t as findValuesBetween };
|
|
15
|
+
export { t as areEqual, n as findValuesBetween };
|