@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,14 @@
|
|
|
1
|
+
import { create as e } from "./util/create.js";
|
|
2
|
+
import { caseInsensitiveTransform as t } from "./util/case-insensitive-transform.js";
|
|
3
|
+
//#region node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js
|
|
4
|
+
var n = e({
|
|
5
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
6
|
+
properties: {
|
|
7
|
+
xmlnsXLink: null,
|
|
8
|
+
xmlns: null
|
|
9
|
+
},
|
|
10
|
+
space: "xmlns",
|
|
11
|
+
transform: t
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as xmlns };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Context as e, forEachUnescaped as t, getGroupContents as n, hasUnescaped as r, replaceUnescaped as i } from "../../../../regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js";
|
|
2
|
+
//#region node_modules/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js
|
|
3
|
+
var a = String.raw, o = a`\(\?R=(?<rDepth>[^\)]+)\)|${a`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`, s = a`\(\?<(?![=!])(?<captureName>[^>]+)>`, c = a`${s}|(?<unnamed>\()(?!\?)`, l = new RegExp(a`${s}|${o}|\(\?|\\?.`, "gsu"), u = "Cannot use multiple overlapping recursions";
|
|
4
|
+
function d(t, i) {
|
|
5
|
+
let { hiddenCaptures: c, mode: d } = {
|
|
6
|
+
hiddenCaptures: [],
|
|
7
|
+
mode: "plugin",
|
|
8
|
+
...i
|
|
9
|
+
}, m = i?.captureTransfers ?? /* @__PURE__ */ new Map();
|
|
10
|
+
if (!new RegExp(o, "su").test(t)) return {
|
|
11
|
+
pattern: t,
|
|
12
|
+
captureTransfers: m,
|
|
13
|
+
hiddenCaptures: c
|
|
14
|
+
};
|
|
15
|
+
if (d === "plugin" && r(t, a`\(\?\(DEFINE\)`, e.DEFAULT)) throw Error("DEFINE groups cannot be used with recursion");
|
|
16
|
+
let h = [], _ = r(t, a`\\[1-9]`, e.DEFAULT), v = /* @__PURE__ */ new Map(), y = [], b = !1, x = 0, S = 0, C;
|
|
17
|
+
for (l.lastIndex = 0; C = l.exec(t);) {
|
|
18
|
+
let { 0: i, groups: { captureName: w, rDepth: T, gRNameOrNum: E, gRDepth: D } } = C;
|
|
19
|
+
if (i === "[") x++;
|
|
20
|
+
else if (x) i === "]" && x--;
|
|
21
|
+
else if (T) {
|
|
22
|
+
if (f(T), b) throw Error(u);
|
|
23
|
+
if (_) throw Error(`${d === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
|
|
24
|
+
let n = t.slice(0, C.index), i = t.slice(l.lastIndex);
|
|
25
|
+
if (r(i, o, e.DEFAULT)) throw Error(u);
|
|
26
|
+
let a = T - 1;
|
|
27
|
+
t = p(n, i, a, !1, c, h, S), m = g(m, n, a, h.length, 0, S);
|
|
28
|
+
break;
|
|
29
|
+
} else if (E) {
|
|
30
|
+
f(D);
|
|
31
|
+
let o = !1;
|
|
32
|
+
for (let e of y) if (e.name === E || e.num === +E) {
|
|
33
|
+
if (o = !0, e.hasRecursedWithin) throw Error(u);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
if (!o) throw Error(a`Recursive \g cannot be used outside the referenced group "${d === "external" ? E : a`\g<${E}&R=${D}>`}"`);
|
|
37
|
+
let x = v.get(E), w = n(t, x);
|
|
38
|
+
if (_ && r(w, a`${s}|\((?!\?)`, e.DEFAULT)) throw Error(`${d === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
|
|
39
|
+
let T = t.slice(x, C.index), O = w.slice(T.length + i.length), k = h.length, A = D - 1, j = p(T, O, A, !0, c, h, S);
|
|
40
|
+
m = g(m, T, A, h.length - k, k, S), t = `${t.slice(0, x)}${j}${t.slice(x + w.length)}`, l.lastIndex += j.length - i.length - T.length - O.length, y.forEach((e) => e.hasRecursedWithin = !0), b = !0;
|
|
41
|
+
} else if (w) S++, v.set(String(S), l.lastIndex), v.set(w, l.lastIndex), y.push({
|
|
42
|
+
num: S,
|
|
43
|
+
name: w
|
|
44
|
+
});
|
|
45
|
+
else if (i[0] === "(") {
|
|
46
|
+
let e = i === "(";
|
|
47
|
+
e && (S++, v.set(String(S), l.lastIndex)), y.push(e ? { num: S } : {});
|
|
48
|
+
} else i === ")" && y.pop();
|
|
49
|
+
}
|
|
50
|
+
return c.push(...h), {
|
|
51
|
+
pattern: t,
|
|
52
|
+
captureTransfers: m,
|
|
53
|
+
hiddenCaptures: c
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function f(e) {
|
|
57
|
+
let t = `Max depth must be integer between 2 and 100; used ${e}`;
|
|
58
|
+
if (!/^[1-9]\d*$/.test(e) || (e = +e, e < 2 || e > 100)) throw Error(t);
|
|
59
|
+
}
|
|
60
|
+
function p(n, r, i, a, o, c, l) {
|
|
61
|
+
let u = /* @__PURE__ */ new Set();
|
|
62
|
+
a && t(n + r, s, ({ groups: { captureName: e } }) => {
|
|
63
|
+
u.add(e);
|
|
64
|
+
}, e.DEFAULT);
|
|
65
|
+
let d = [
|
|
66
|
+
i,
|
|
67
|
+
a ? u : null,
|
|
68
|
+
o,
|
|
69
|
+
c,
|
|
70
|
+
l
|
|
71
|
+
];
|
|
72
|
+
return `${n}${m(`(?:${n}`, "forward", ...d)}(?:)${m(`${r})`, "backward", ...d)}${r}`;
|
|
73
|
+
}
|
|
74
|
+
function m(t, n, r, o, s, l, u) {
|
|
75
|
+
let d = (e) => n === "forward" ? e + 2 : r - e + 2 - 1, f = "";
|
|
76
|
+
for (let n = 0; n < r; n++) {
|
|
77
|
+
let r = d(n);
|
|
78
|
+
f += i(t, a`${c}|\\k<(?<backref>[^>]+)>`, ({ 0: e, groups: { captureName: t, unnamed: n, backref: i } }) => {
|
|
79
|
+
if (i && o && !o.has(i)) return e;
|
|
80
|
+
let c = `_$${r}`;
|
|
81
|
+
if (n || t) {
|
|
82
|
+
let r = u + l.length + 1;
|
|
83
|
+
return l.push(r), h(s, r), n ? e : `(?<${t}${c}>`;
|
|
84
|
+
}
|
|
85
|
+
return a`\k<${i}${c}>`;
|
|
86
|
+
}, e.DEFAULT);
|
|
87
|
+
}
|
|
88
|
+
return f;
|
|
89
|
+
}
|
|
90
|
+
function h(e, t) {
|
|
91
|
+
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
92
|
+
}
|
|
93
|
+
function g(n, r, i, a, o, s) {
|
|
94
|
+
if (n.size && a) {
|
|
95
|
+
let l = 0;
|
|
96
|
+
t(r, c, () => l++, e.DEFAULT);
|
|
97
|
+
let u = s - l + o, d = /* @__PURE__ */ new Map();
|
|
98
|
+
return n.forEach((e, t) => {
|
|
99
|
+
let n = (a - l * i) / i, r = l * i, o = t > u + l ? t + a : t, s = [];
|
|
100
|
+
for (let t of e) if (t <= u) s.push(t);
|
|
101
|
+
else if (t > u + l + n) s.push(t + a);
|
|
102
|
+
else if (t <= u + l) for (let e = 0; e <= i; e++) s.push(t + l * e);
|
|
103
|
+
else for (let e = 0; e <= i; e++) s.push(t + r + n * e);
|
|
104
|
+
d.set(o, s);
|
|
105
|
+
}), d;
|
|
106
|
+
}
|
|
107
|
+
return n;
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
export { d as recursion };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js
|
|
2
|
+
var e = Object.freeze({
|
|
3
|
+
DEFAULT: "DEFAULT",
|
|
4
|
+
CHAR_CLASS: "CHAR_CLASS"
|
|
5
|
+
});
|
|
6
|
+
function t(t, n, r, i) {
|
|
7
|
+
let a = new RegExp(String.raw`${n}|(?<$skip>\[\^?|\\?.)`, "gsu"), o = [!1], s = 0, c = "";
|
|
8
|
+
for (let n of t.matchAll(a)) {
|
|
9
|
+
let { 0: t, groups: { $skip: a } } = n;
|
|
10
|
+
if (!a && (!i || i === e.DEFAULT == !s)) {
|
|
11
|
+
r instanceof Function ? c += r(n, {
|
|
12
|
+
context: s ? e.CHAR_CLASS : e.DEFAULT,
|
|
13
|
+
negated: o[o.length - 1]
|
|
14
|
+
}) : c += r;
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
t[0] === "[" ? (s++, o.push(t[1] === "^")) : t === "]" && s && (s--, o.pop()), c += t;
|
|
18
|
+
}
|
|
19
|
+
return c;
|
|
20
|
+
}
|
|
21
|
+
function n(e, n, r, i) {
|
|
22
|
+
t(e, n, r, i);
|
|
23
|
+
}
|
|
24
|
+
function r(t, n, r = 0, i) {
|
|
25
|
+
if (!new RegExp(n, "su").test(t)) return null;
|
|
26
|
+
let a = RegExp(`${n}|(?<$skip>\\\\?.)`, "gsu");
|
|
27
|
+
a.lastIndex = r;
|
|
28
|
+
let o = 0, s;
|
|
29
|
+
for (; s = a.exec(t);) {
|
|
30
|
+
let { 0: t, groups: { $skip: n } } = s;
|
|
31
|
+
if (!n && (!i || i === e.DEFAULT == !o)) return s;
|
|
32
|
+
t === "[" ? o++ : t === "]" && o && o--, a.lastIndex == s.index && a.lastIndex++;
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
function i(e, t, n) {
|
|
37
|
+
return !!r(e, t, 0, n);
|
|
38
|
+
}
|
|
39
|
+
function a(e, t) {
|
|
40
|
+
let n = /\\?./gsu;
|
|
41
|
+
n.lastIndex = t;
|
|
42
|
+
let r = e.length, i = 0, a = 1, o;
|
|
43
|
+
for (; o = n.exec(e);) {
|
|
44
|
+
let [e] = o;
|
|
45
|
+
if (e === "[") i++;
|
|
46
|
+
else if (i) e === "]" && i--;
|
|
47
|
+
else if (e === "(") a++;
|
|
48
|
+
else if (e === ")" && (a--, !a)) {
|
|
49
|
+
r = o.index;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return e.slice(t, r);
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { e as Context, r as execUnescaped, n as forEachUnescaped, a as getGroupContents, i as hasUnescaped, t as replaceUnescaped };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { incrementIfAtLeast as e, noncapturingDelim as t, spliceStr as n } from "./utils-internals.js";
|
|
2
|
+
import { Context as r, replaceUnescaped as i } from "../../../../regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js";
|
|
3
|
+
//#region node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js
|
|
4
|
+
var a = new RegExp(String.raw`(?<noncapturingStart>${t})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`, "gsu");
|
|
5
|
+
function o(t, n) {
|
|
6
|
+
let o = n?.hiddenCaptures ?? [], s = n?.captureTransfers ?? /* @__PURE__ */ new Map();
|
|
7
|
+
if (!/\(\?>/.test(t)) return {
|
|
8
|
+
pattern: t,
|
|
9
|
+
captureTransfers: s,
|
|
10
|
+
hiddenCaptures: o
|
|
11
|
+
};
|
|
12
|
+
let c = [0], l = [], u = 0, d = 0, f = NaN, p;
|
|
13
|
+
do {
|
|
14
|
+
p = !1;
|
|
15
|
+
let n = 0, r = 0, i = !1, m;
|
|
16
|
+
for (a.lastIndex = Number.isNaN(f) ? 0 : f + 7; m = a.exec(t);) {
|
|
17
|
+
let { 0: a, index: h, groups: { capturingStart: g, noncapturingStart: _ } } = m;
|
|
18
|
+
if (a === "[") n++;
|
|
19
|
+
else if (n) a === "]" && n--;
|
|
20
|
+
else if (a === "(?>" && !i) f = h, i = !0;
|
|
21
|
+
else if (i && _) r++;
|
|
22
|
+
else if (g) i ? r++ : (u++, c.push(u + d));
|
|
23
|
+
else if (a === ")" && i) {
|
|
24
|
+
if (!r) {
|
|
25
|
+
d++;
|
|
26
|
+
let n = u + d;
|
|
27
|
+
if (t = `${t.slice(0, f)}(?:(?=(${t.slice(f + 3, h)}))<$$${n}>)${t.slice(h + 1)}`, p = !0, l.push(n), e(o, n), s.size) {
|
|
28
|
+
let e = /* @__PURE__ */ new Map();
|
|
29
|
+
s.forEach((t, r) => {
|
|
30
|
+
e.set(r >= n ? r + 1 : r, t.map((e) => e >= n ? e + 1 : e));
|
|
31
|
+
}), s = e;
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
r--;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
} while (p);
|
|
39
|
+
return o.push(...l), t = i(t, String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`, ({ 0: e, groups: { backrefNum: t, wrappedBackrefNum: n } }) => {
|
|
40
|
+
if (t) {
|
|
41
|
+
let n = +t;
|
|
42
|
+
if (n > c.length - 1) throw Error(`Backref "${e}" greater than number of captures`);
|
|
43
|
+
return `\\${c[n]}`;
|
|
44
|
+
}
|
|
45
|
+
return `\\${n}`;
|
|
46
|
+
}, r.DEFAULT), {
|
|
47
|
+
pattern: t,
|
|
48
|
+
captureTransfers: s,
|
|
49
|
+
hiddenCaptures: o
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
var s = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, c = new RegExp(String.raw`
|
|
53
|
+
\\(?: \d+
|
|
54
|
+
| c[A-Za-z]
|
|
55
|
+
| [gk]<[^>]+>
|
|
56
|
+
| [pPu]\{[^\}]+\}
|
|
57
|
+
| u[A-Fa-f\d]{4}
|
|
58
|
+
| x[A-Fa-f\d]{2}
|
|
59
|
+
)
|
|
60
|
+
| \((?: \? (?: [:=!>]
|
|
61
|
+
| <(?:[=!]|[^>]+>)
|
|
62
|
+
| [A-Za-z\-]+:
|
|
63
|
+
| \(DEFINE\)
|
|
64
|
+
))?
|
|
65
|
+
| (?<qBase>${s})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
66
|
+
| \\?.
|
|
67
|
+
`.replace(/\s+/g, ""), "gsu");
|
|
68
|
+
function l(e) {
|
|
69
|
+
if (!RegExp(`${s}\\+`).test(e)) return { pattern: e };
|
|
70
|
+
let t = [], r = null, i = null, a = "", o = 0, l;
|
|
71
|
+
for (c.lastIndex = 0; l = c.exec(e);) {
|
|
72
|
+
let { 0: s, index: u, groups: { qBase: d, qMod: f, invalidQ: p } } = l;
|
|
73
|
+
if (s === "[") o || (i = u), o++;
|
|
74
|
+
else if (s === "]") o ? o-- : i = null;
|
|
75
|
+
else if (!o) if (f === "+" && a && !a.startsWith("(")) {
|
|
76
|
+
if (p) throw Error(`Invalid quantifier "${s}"`);
|
|
77
|
+
let t = -1;
|
|
78
|
+
if (/^\{\d+\}$/.test(d)) e = n(e, u + d.length, f, "");
|
|
79
|
+
else {
|
|
80
|
+
if (a === ")" || a === "]") {
|
|
81
|
+
let t = a === ")" ? r : i;
|
|
82
|
+
if (t === null) throw Error(`Invalid unmatched "${a}"`);
|
|
83
|
+
e = `${e.slice(0, t)}(?>${e.slice(t, u)}${d})${e.slice(u + s.length)}`;
|
|
84
|
+
} else e = `${e.slice(0, u - a.length)}(?>${a}${d})${e.slice(u + s.length)}`;
|
|
85
|
+
t += 4;
|
|
86
|
+
}
|
|
87
|
+
c.lastIndex += t;
|
|
88
|
+
} else s[0] === "(" ? t.push(u) : s === ")" && (r = t.length ? t.pop() : null);
|
|
89
|
+
a = s;
|
|
90
|
+
}
|
|
91
|
+
return { pattern: e };
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { o as atomic, l as possessive };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js
|
|
2
|
+
var e = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
5
|
+
}
|
|
6
|
+
function n(e, t, n, r) {
|
|
7
|
+
return e.slice(0, t) + r + e.slice(t + n.length);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as incrementIfAtLeast, e as noncapturingDelim, n as spliceStr };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { useEmitAsProps as e } from "../shared/useEmitAsProps.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { Presence_default as n } from "../Presence/Presence.js";
|
|
4
|
+
import { injectDialogRootContext as r } from "./DialogRoot.js";
|
|
5
|
+
import { DialogContentModal_default as i } from "./DialogContentModal.js";
|
|
6
|
+
import { DialogContentNonModal_default as a } from "./DialogContentNonModal.js";
|
|
7
|
+
import { createBlock as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, unref as d, vShow as f, withCtx as p, withDirectives as m } 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/Dialog/DialogContent.js
|
|
9
|
+
var h = /* @__PURE__ */ s({
|
|
10
|
+
__name: "DialogContent",
|
|
11
|
+
props: {
|
|
12
|
+
forceMount: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
required: !1
|
|
15
|
+
},
|
|
16
|
+
disableOutsidePointerEvents: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
required: !1,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
asChild: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: !1
|
|
24
|
+
},
|
|
25
|
+
as: {
|
|
26
|
+
type: null,
|
|
27
|
+
required: !1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: [
|
|
31
|
+
"escapeKeyDown",
|
|
32
|
+
"pointerDownOutside",
|
|
33
|
+
"focusOutside",
|
|
34
|
+
"interactOutside",
|
|
35
|
+
"openAutoFocus",
|
|
36
|
+
"closeAutoFocus"
|
|
37
|
+
],
|
|
38
|
+
setup(s, { emit: h }) {
|
|
39
|
+
let g = s, _ = h, v = r(), y = e(_), { forwardRef: b } = t();
|
|
40
|
+
return (e, t) => (l(), o(d(n), {
|
|
41
|
+
present: e.forceMount || d(v).open.value,
|
|
42
|
+
"force-mount": e.forceMount || !d(v).unmountOnHide.value
|
|
43
|
+
}, {
|
|
44
|
+
default: p(({ present: t }) => [d(v).modal.value ? m((l(), o(i, c({
|
|
45
|
+
key: 0,
|
|
46
|
+
ref: d(b),
|
|
47
|
+
present: d(v).unmountOnHide.value || t
|
|
48
|
+
}, {
|
|
49
|
+
...g,
|
|
50
|
+
...d(y),
|
|
51
|
+
...e.$attrs
|
|
52
|
+
}), {
|
|
53
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1040, ["present"])), [[f, d(v).unmountOnHide.value || t]]) : m((l(), o(a, c({
|
|
56
|
+
key: 1,
|
|
57
|
+
ref: d(b),
|
|
58
|
+
present: d(v).unmountOnHide.value || t
|
|
59
|
+
}, {
|
|
60
|
+
...g,
|
|
61
|
+
...d(y),
|
|
62
|
+
...e.$attrs
|
|
63
|
+
}), {
|
|
64
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
65
|
+
_: 2
|
|
66
|
+
}, 1040, ["present"])), [[f, d(v).unmountOnHide.value || t]])]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 8, ["present", "force-mount"]));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
export { h as DialogContent_default };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { getActiveElement as e } from "../shared/getActiveElement.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { useId as n } from "../shared/useId.js";
|
|
4
|
+
import { injectDialogRootContext as r } from "./DialogRoot.js";
|
|
5
|
+
import { DismissableLayer_default as i } from "../DismissableLayer/DismissableLayer.js";
|
|
6
|
+
import { FocusScope_default as a } from "../FocusScope/FocusScope.js";
|
|
7
|
+
import { getOpenState as o } from "../Menu/utils.js";
|
|
8
|
+
import { useWarning as s } from "./utils.js";
|
|
9
|
+
import { createBlock as c, createVNode as l, defineComponent as u, mergeProps as d, onMounted as f, openBlock as p, renderSlot as m, unref as h, withCtx as g } from "vue";
|
|
10
|
+
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js
|
|
11
|
+
var _ = /* @__PURE__ */ u({
|
|
12
|
+
__name: "DialogContentImpl",
|
|
13
|
+
props: {
|
|
14
|
+
forceMount: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
trapFocus: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
required: !1
|
|
21
|
+
},
|
|
22
|
+
disableOutsidePointerEvents: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
required: !1
|
|
25
|
+
},
|
|
26
|
+
asChild: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
required: !1
|
|
29
|
+
},
|
|
30
|
+
as: {
|
|
31
|
+
type: null,
|
|
32
|
+
required: !1
|
|
33
|
+
},
|
|
34
|
+
present: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: !1
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: [
|
|
40
|
+
"escapeKeyDown",
|
|
41
|
+
"pointerDownOutside",
|
|
42
|
+
"focusOutside",
|
|
43
|
+
"interactOutside",
|
|
44
|
+
"openAutoFocus",
|
|
45
|
+
"closeAutoFocus"
|
|
46
|
+
],
|
|
47
|
+
setup(u, { emit: _ }) {
|
|
48
|
+
let v = u, y = _, b = r(), { forwardRef: x, currentElement: S } = t();
|
|
49
|
+
return b.titleId ||= n(void 0, "reka-dialog-title"), b.descriptionId ||= n(void 0, "reka-dialog-description"), f(() => {
|
|
50
|
+
b.contentElement = S, e() !== document.body && (b.triggerElement.value = e());
|
|
51
|
+
}), process.env.NODE_ENV !== "production" && s({
|
|
52
|
+
titleName: "DialogTitle",
|
|
53
|
+
contentName: "DialogContent",
|
|
54
|
+
componentLink: "dialog.html#title",
|
|
55
|
+
titleId: b.titleId,
|
|
56
|
+
descriptionId: b.descriptionId,
|
|
57
|
+
contentElement: S
|
|
58
|
+
}), (e, t) => (p(), c(h(a), {
|
|
59
|
+
"as-child": "",
|
|
60
|
+
loop: "",
|
|
61
|
+
trapped: v.trapFocus,
|
|
62
|
+
present: v.present,
|
|
63
|
+
onMountAutoFocus: t[5] ||= (e) => y("openAutoFocus", e),
|
|
64
|
+
onUnmountAutoFocus: t[6] ||= (e) => y("closeAutoFocus", e)
|
|
65
|
+
}, {
|
|
66
|
+
default: g(() => [l(h(i), d({
|
|
67
|
+
id: h(b).contentId,
|
|
68
|
+
ref: h(x),
|
|
69
|
+
as: e.as,
|
|
70
|
+
"as-child": e.asChild,
|
|
71
|
+
present: v.present,
|
|
72
|
+
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
73
|
+
role: "dialog",
|
|
74
|
+
"aria-describedby": h(b).descriptionId,
|
|
75
|
+
"aria-labelledby": h(b).titleId,
|
|
76
|
+
"data-state": h(o)(h(b).open.value)
|
|
77
|
+
}, e.$attrs, {
|
|
78
|
+
onDismiss: t[0] ||= (e) => h(b).onOpenChange(!1),
|
|
79
|
+
onEscapeKeyDown: t[1] ||= (e) => y("escapeKeyDown", e),
|
|
80
|
+
onFocusOutside: t[2] ||= (e) => y("focusOutside", e),
|
|
81
|
+
onInteractOutside: t[3] ||= (e) => y("interactOutside", e),
|
|
82
|
+
onPointerDownOutside: t[4] ||= (e) => y("pointerDownOutside", e)
|
|
83
|
+
}), {
|
|
84
|
+
default: g(() => [m(e.$slots, "default")]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 16, [
|
|
87
|
+
"id",
|
|
88
|
+
"as",
|
|
89
|
+
"as-child",
|
|
90
|
+
"present",
|
|
91
|
+
"disable-outside-pointer-events",
|
|
92
|
+
"aria-describedby",
|
|
93
|
+
"aria-labelledby",
|
|
94
|
+
"data-state"
|
|
95
|
+
])]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 8, ["trapped", "present"]));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
export { _ as DialogContentImpl_default };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useEmitAsProps as e } from "../shared/useEmitAsProps.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { useHideOthers as n } from "../shared/useHideOthers.js";
|
|
4
|
+
import { injectDialogRootContext as r } from "./DialogRoot.js";
|
|
5
|
+
import { DialogContentImpl_default as i } from "./DialogContentImpl.js";
|
|
6
|
+
import { computed as a, createBlock as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, unref as d, watch as f, withCtx as p } 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/Dialog/DialogContentModal.js
|
|
8
|
+
var m = /* @__PURE__ */ s({
|
|
9
|
+
__name: "DialogContentModal",
|
|
10
|
+
props: {
|
|
11
|
+
forceMount: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
required: !1
|
|
14
|
+
},
|
|
15
|
+
trapFocus: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
disableOutsidePointerEvents: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: !1,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
asChild: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: !1
|
|
27
|
+
},
|
|
28
|
+
as: {
|
|
29
|
+
type: null,
|
|
30
|
+
required: !1
|
|
31
|
+
},
|
|
32
|
+
present: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
required: !0
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
emits: [
|
|
38
|
+
"escapeKeyDown",
|
|
39
|
+
"pointerDownOutside",
|
|
40
|
+
"focusOutside",
|
|
41
|
+
"interactOutside",
|
|
42
|
+
"openAutoFocus",
|
|
43
|
+
"closeAutoFocus"
|
|
44
|
+
],
|
|
45
|
+
setup(s, { emit: m }) {
|
|
46
|
+
let h = s, g = m, _ = r(), v = e(g), { forwardRef: y, currentElement: b } = t();
|
|
47
|
+
n(a(() => h.present ? b.value : void 0));
|
|
48
|
+
let x = a(() => {
|
|
49
|
+
let { present: e, ...t } = h;
|
|
50
|
+
return t;
|
|
51
|
+
});
|
|
52
|
+
return f(() => h.present, (e, t) => {
|
|
53
|
+
!e && t && _.triggerElement.value?.focus();
|
|
54
|
+
}), (e, t) => (l(), o(i, c({
|
|
55
|
+
...x.value,
|
|
56
|
+
...d(v)
|
|
57
|
+
}, {
|
|
58
|
+
ref: d(y),
|
|
59
|
+
present: e.present,
|
|
60
|
+
"trap-focus": d(_).open.value,
|
|
61
|
+
"disable-outside-pointer-events": h.disableOutsidePointerEvents,
|
|
62
|
+
onCloseAutoFocus: t[0] ||= (e) => {
|
|
63
|
+
e.defaultPrevented || (e.preventDefault(), d(_).triggerElement.value?.focus());
|
|
64
|
+
},
|
|
65
|
+
onPointerDownOutside: t[1] ||= (e) => {
|
|
66
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
67
|
+
(t.button === 2 || n) && e.preventDefault();
|
|
68
|
+
},
|
|
69
|
+
onFocusOutside: t[2] ||= (e) => {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
}
|
|
72
|
+
}), {
|
|
73
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 16, [
|
|
76
|
+
"present",
|
|
77
|
+
"trap-focus",
|
|
78
|
+
"disable-outside-pointer-events"
|
|
79
|
+
]));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { m as DialogContentModal_default };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useEmitAsProps as e } from "../shared/useEmitAsProps.js";
|
|
2
|
+
import { useForwardExpose as t } from "../shared/useForwardExpose.js";
|
|
3
|
+
import { injectDialogRootContext as n } from "./DialogRoot.js";
|
|
4
|
+
import { DialogContentImpl_default as r } from "./DialogContentImpl.js";
|
|
5
|
+
import { computed as i, createBlock as a, defineComponent as o, mergeProps as s, openBlock as c, ref as l, renderSlot as u, unref as d, watch as f, withCtx as p } 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/DialogContentNonModal.js
|
|
7
|
+
var m = /* @__PURE__ */ o({
|
|
8
|
+
__name: "DialogContentNonModal",
|
|
9
|
+
props: {
|
|
10
|
+
forceMount: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
required: !1
|
|
13
|
+
},
|
|
14
|
+
trapFocus: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
disableOutsidePointerEvents: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
required: !1
|
|
21
|
+
},
|
|
22
|
+
asChild: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
required: !1
|
|
25
|
+
},
|
|
26
|
+
as: {
|
|
27
|
+
type: null,
|
|
28
|
+
required: !1
|
|
29
|
+
},
|
|
30
|
+
present: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: !0
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: [
|
|
36
|
+
"escapeKeyDown",
|
|
37
|
+
"pointerDownOutside",
|
|
38
|
+
"focusOutside",
|
|
39
|
+
"interactOutside",
|
|
40
|
+
"openAutoFocus",
|
|
41
|
+
"closeAutoFocus"
|
|
42
|
+
],
|
|
43
|
+
setup(o, { emit: m }) {
|
|
44
|
+
let h = o, g = e(m);
|
|
45
|
+
t();
|
|
46
|
+
let _ = n(), v = l(!1), y = l(!1), b = i(() => {
|
|
47
|
+
let { present: e, ...t } = h;
|
|
48
|
+
return t;
|
|
49
|
+
});
|
|
50
|
+
return f(() => h.present, (e, t) => {
|
|
51
|
+
!e && t && (v.value || _.triggerElement.value?.focus(), v.value = !1, y.value = !1);
|
|
52
|
+
}), (e, t) => (c(), a(r, s({
|
|
53
|
+
...b.value,
|
|
54
|
+
...d(g)
|
|
55
|
+
}, {
|
|
56
|
+
present: e.present,
|
|
57
|
+
"trap-focus": !1,
|
|
58
|
+
"disable-outside-pointer-events": !1,
|
|
59
|
+
onCloseAutoFocus: t[0] ||= (e) => {
|
|
60
|
+
e.defaultPrevented || (v.value || d(_).triggerElement.value?.focus(), e.preventDefault()), v.value = !1, y.value = !1;
|
|
61
|
+
},
|
|
62
|
+
onInteractOutside: t[1] ||= (e) => {
|
|
63
|
+
e.defaultPrevented || (v.value = !0, e.detail.originalEvent.type === "pointerdown" && (y.value = !0));
|
|
64
|
+
let t = e.target;
|
|
65
|
+
d(_).triggerElement.value?.contains(t) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && y.value && e.preventDefault();
|
|
66
|
+
}
|
|
67
|
+
}), {
|
|
68
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 16, ["present"]));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
export { m as DialogContentNonModal_default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { useForwardExpose as e } from "../shared/useForwardExpose.js";
|
|
2
|
+
import { Presence_default as t } from "../Presence/Presence.js";
|
|
3
|
+
import { injectDialogRootContext as n } from "./DialogRoot.js";
|
|
4
|
+
import { DialogOverlayImpl_default as r } from "./DialogOverlayImpl.js";
|
|
5
|
+
import { createBlock as i, createCommentVNode as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, unref as d, vShow as f, withCtx as p, withDirectives as m } 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/DialogOverlay.js
|
|
7
|
+
var h = /* @__PURE__ */ s({
|
|
8
|
+
__name: "DialogOverlay",
|
|
9
|
+
props: {
|
|
10
|
+
forceMount: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
required: !1
|
|
13
|
+
},
|
|
14
|
+
asChild: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
as: {
|
|
19
|
+
type: null,
|
|
20
|
+
required: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(s) {
|
|
24
|
+
let h = n(), { forwardRef: g } = e();
|
|
25
|
+
return (e, n) => d(h)?.modal.value ? (l(), i(d(t), {
|
|
26
|
+
key: 0,
|
|
27
|
+
present: e.forceMount || d(h).open.value,
|
|
28
|
+
"force-mount": e.forceMount || !d(h).unmountOnHide.value
|
|
29
|
+
}, {
|
|
30
|
+
default: p(({ present: t }) => [m(o(r, c(e.$attrs, {
|
|
31
|
+
ref: d(g),
|
|
32
|
+
as: e.as,
|
|
33
|
+
"as-child": e.asChild,
|
|
34
|
+
present: d(h).unmountOnHide.value || t
|
|
35
|
+
}), {
|
|
36
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
37
|
+
_: 2
|
|
38
|
+
}, 1040, [
|
|
39
|
+
"as",
|
|
40
|
+
"as-child",
|
|
41
|
+
"present"
|
|
42
|
+
]), [[f, d(h).unmountOnHide.value || t]])]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 8, ["present", "force-mount"])) : a("v-if", !0);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { h as DialogOverlay_default };
|