@septkit/ui 0.0.80 → 0.0.82
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/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js} +69 -69
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js} +1 -1
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js} +83 -83
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js} +2 -2
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js} +47 -47
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js} +64 -138
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/utils.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js → @dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js} +262 -234
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
- package/dist/index.d.ts +16 -11
- package/dist/index.js +12 -12
- package/dist/merge/check-files/identity-warning.js +2 -1
- package/dist/merge/confirm/outcome.js +4 -4
- package/dist/merge/done/applied-focus.js +1 -1
- package/dist/merge/match/match.js +4 -4
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/merge/session/merge.service.js +25 -19
- package/dist/merge/session/use-merge-session.js +11 -1
- package/dist/merge/wording.js +4 -4
- package/dist/selector-input/index.js +3 -3
- package/dist/selector-input/selector-input.js +4 -89
- package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +91 -89
- package/dist/selector-input/selector-xpath.js +92 -0
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +0 -5
- package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -22
- package/dist/selector-input/selector-input2.js +0 -5
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../../../../../../@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js";
|
|
2
|
+
import { g as e, i as t, n, p as r, tt as i } from "../declaration.constants-DSLNk1wh.js";
|
|
3
|
+
export { r as SCL_ERRORS, i as TEMPLATE_NAME, t as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, n as presentationScope };
|
package/dist/index.d.ts
CHANGED
|
@@ -336,8 +336,9 @@ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_7, {}, {}, {}
|
|
|
336
336
|
"onUpdate:invalid"?: ((value: boolean) => any) | undefined;
|
|
337
337
|
}>, {
|
|
338
338
|
targets: string[];
|
|
339
|
-
|
|
339
|
+
nameParent: boolean;
|
|
340
340
|
anywhereLabel: string;
|
|
341
|
+
nameLabel: string;
|
|
341
342
|
searchable: boolean;
|
|
342
343
|
allowXpath: boolean;
|
|
343
344
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -494,10 +495,11 @@ declare type __VLS_Props_23 = {
|
|
|
494
495
|
};
|
|
495
496
|
|
|
496
497
|
declare type __VLS_Props_24 = {
|
|
497
|
-
anchors:
|
|
498
|
+
anchors: AnchorOption[];
|
|
498
499
|
anywhereLabel?: string;
|
|
499
500
|
targets?: string[];
|
|
500
|
-
|
|
501
|
+
nameParent?: boolean;
|
|
502
|
+
nameLabel?: string;
|
|
501
503
|
searchable?: boolean;
|
|
502
504
|
allowXpath?: boolean;
|
|
503
505
|
};
|
|
@@ -1110,6 +1112,11 @@ export declare type AffixMaskResolver = (params: {
|
|
|
1110
1112
|
attr: string;
|
|
1111
1113
|
}) => AttributeAffix | undefined;
|
|
1112
1114
|
|
|
1115
|
+
export declare type AnchorOption = {
|
|
1116
|
+
value: string;
|
|
1117
|
+
label: string;
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1113
1120
|
/**
|
|
1114
1121
|
* Seed `visibleChildIds` from the initial expand/collapse options: BFS from the
|
|
1115
1122
|
* roots, expanding a node when it is explicitly expanded or within
|
|
@@ -1149,7 +1156,7 @@ export declare function buildRecordCache<TRecord extends LayoutTreeRecord>(recor
|
|
|
1149
1156
|
|
|
1150
1157
|
export declare function buildTreeOptions<T>(rows: readonly T[], getPath: (row: T) => string[]): FilterTreeNode[];
|
|
1151
1158
|
|
|
1152
|
-
export declare function buildXpath({ anchor, targets, nameFilter,
|
|
1159
|
+
export declare function buildXpath({ anchor, targets, nameFilter, nameParent, }: XpathBuilderState): string;
|
|
1153
1160
|
|
|
1154
1161
|
export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1155
1162
|
|
|
@@ -3296,6 +3303,8 @@ export declare type MergeSessionParams = {
|
|
|
3296
3303
|
sourceRef: Scl.Ref<'Function'> | Scl.Ref<'FunctionTemplate'> | Scl.Ref<'Application'> | Scl.Ref<TopologyStructuralTag>;
|
|
3297
3304
|
/** Target parent the instance lives under / is placed into. */
|
|
3298
3305
|
anchor: Scl.Ref<Scl.ElementsOf>;
|
|
3306
|
+
/** Element tags the consumer creates on instances and maintains itself: the merge does not list them as the project's own. */
|
|
3307
|
+
consumerManagedTags?: readonly Scl.ElementsOf[];
|
|
3299
3308
|
/** The consumer's own step after the apply, run by the merge in its preview and its commit. */
|
|
3300
3309
|
afterApply?: AfterApplyHook;
|
|
3301
3310
|
};
|
|
@@ -3606,18 +3615,12 @@ export declare interface NoteData {
|
|
|
3606
3615
|
|
|
3607
3616
|
export declare type NoteStatus = (typeof NOTE_STATUSES)[number];
|
|
3608
3617
|
|
|
3609
|
-
declare type Option_2 = {
|
|
3610
|
-
value: string;
|
|
3611
|
-
label: string;
|
|
3612
|
-
};
|
|
3613
|
-
|
|
3614
3618
|
/**
|
|
3615
3619
|
* Parse note data from the JSON value of a `<Text>` element.
|
|
3616
3620
|
* Returns undefined if the value is not a valid note JSON.
|
|
3617
3621
|
*/
|
|
3618
3622
|
export declare function parseNoteData(value: string | undefined): NoteData | undefined;
|
|
3619
3623
|
|
|
3620
|
-
/** Returns undefined for any XPath the builder could not have produced. */
|
|
3621
3624
|
export declare function parseXpath(xpath: string): XpathBuilderState | undefined;
|
|
3622
3625
|
|
|
3623
3626
|
/** Presentation progress: a held monotonic fraction in `[0, 1]` and its caption. */
|
|
@@ -3962,6 +3965,8 @@ export declare interface UseRowSortConfig<TRow, TColId extends string> {
|
|
|
3962
3965
|
sortAccessors: Partial<Record<TColId, (row: TRow) => string>>;
|
|
3963
3966
|
}
|
|
3964
3967
|
|
|
3968
|
+
export declare function validateSearchText(value: string): string | undefined;
|
|
3969
|
+
|
|
3965
3970
|
export declare function validateXpath(xpath: string): string | undefined;
|
|
3966
3971
|
|
|
3967
3972
|
/** Options that drive which nodes are initially visible. */
|
|
@@ -3983,7 +3988,7 @@ export declare type XpathBuilderState = {
|
|
|
3983
3988
|
anchor: string;
|
|
3984
3989
|
targets: string[];
|
|
3985
3990
|
nameFilter?: NameFilter;
|
|
3986
|
-
|
|
3991
|
+
nameParent?: boolean;
|
|
3987
3992
|
};
|
|
3988
3993
|
|
|
3989
3994
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -55,18 +55,18 @@ import oe from "./table/filterable-column-header.js";
|
|
|
55
55
|
import "./table/index.js";
|
|
56
56
|
import se from "./context-menu/context-menu.js";
|
|
57
57
|
import "./context-menu/index.js";
|
|
58
|
-
import { buildXpath as ce, matchName as le, parseXpath as ue,
|
|
59
|
-
import
|
|
58
|
+
import { buildXpath as ce, matchName as le, parseXpath as ue, validateSearchText as de, validateXpath as fe } from "./selector-input/selector-xpath.js";
|
|
59
|
+
import pe from "./selector-input/selector-input.js";
|
|
60
60
|
import "./selector-input/index.js";
|
|
61
|
-
import
|
|
61
|
+
import me from "./split-layout/split-layout.js";
|
|
62
62
|
import "./split-layout/index.js";
|
|
63
|
-
import { applyInitialVisibility as
|
|
64
|
-
import { groupStackMetrics as
|
|
65
|
-
import { GROUP_COLLAPSED_MEMBERS_HEIGHT as
|
|
66
|
-
import { computeGroups as
|
|
67
|
-
import { createElkLayoutEngine as
|
|
68
|
-
import { useDiagramLayout as
|
|
69
|
-
import
|
|
70
|
-
import
|
|
63
|
+
import { applyInitialVisibility as he, buildRecordCache as ge, collectVisibleIds as _e, hideDescendants as ve } from "./diagram-layout/visibility-model.js";
|
|
64
|
+
import { groupStackMetrics as ye } from "./diagram-layout/group-stack.js";
|
|
65
|
+
import { GROUP_COLLAPSED_MEMBERS_HEIGHT as be, GROUP_HEADER_HEIGHT as xe, GROUP_MEMBER_GAP as Se, GROUP_MEMBER_HEIGHT as Ce, GROUP_MEMBER_HEIGHT_COMPACT as we, memberCardHeight as Te } from "./diagram-layout/group-geometry.js";
|
|
66
|
+
import { computeGroups as Ee, isGroupId as De, makeGroupId as Oe } from "./diagram-layout/grouping.js";
|
|
67
|
+
import { createElkLayoutEngine as ke } from "./diagram-layout/elk-layout-engine.js";
|
|
68
|
+
import { useDiagramLayout as Ae } from "./diagram-layout/use-diagram-layout.js";
|
|
69
|
+
import je from "./diagram-layout/diagram-node-card.js";
|
|
70
|
+
import Me from "./diagram-layout/diagram-node-group.js";
|
|
71
71
|
import "./diagram-layout/index.js";
|
|
72
|
-
export { s as Button, x as CATEGORY_ELEMENTS, k as CodeBlock, l as Combobox, se as ContextMenu, z as DecisionToggle,
|
|
72
|
+
export { s as Button, x as CATEGORY_ELEMENTS, k as CodeBlock, l as Combobox, se as ContextMenu, z as DecisionToggle, je as DiagramNodeCard, Me as DiagramNodeGroup, p as Dialog, y as DialogHost, b as DocumentProgressBar, c as Dropdown, S as ELEMENT_TO_COLOR, C as ELEMENT_TO_ICON, w as ElementBadge, B as ElementDetail, m as FeedbackDialog, oe as FilterableColumnHeader, u as FloatingTooltip, be as GROUP_COLLAPSED_MEMBERS_HEIGHT, xe as GROUP_HEADER_HEIGHT, Se as GROUP_MEMBER_GAP, Ce as GROUP_MEMBER_HEIGHT, we as GROUP_MEMBER_HEIGHT_COMPACT, K as KEY_SEPARATOR, D as LibraryBrowser, V as MergeMap, G as MergeReview, H as MergeTree, d as MultiSelect, M as NOTE_CATEGORIES, N as NOTE_CATEGORY_LABELS, P as NOTE_STATUSES, q as NO_VALUE_KEY, R as NoteCategoryPicker, L as NoteCategoryTag, E as SclExplorer, pe as SelectorInput, me as SplitLayout, f as TextInputAutocomplete, U as TypeNameAuthority, j as XmlDiff, he as applyInitialVisibility, J as buildFlatOptions, Y as buildMultiValueOptions, ge as buildRecordCache, X as buildTreeOptions, ce as buildXpath, T as collectExpandableNodeIds, Z as collectLeafKeys, Q as collectParentKeys, _e as collectVisibleIds, Ee as computeGroups, h as createDialogHost, e as createDocumentStore, ke as createElkLayoutEngine, g as dialogHostKey, A as diffLines, $ as filterTree, ye as groupStackMetrics, ve as hideDescendants, O as highlightCode, De as isGroupId, Oe as makeGroupId, le as matchName, Te as memberCardHeight, F as parseNoteData, ue as parseXpath, ne as provideColumnFilterHeader, _ as provideDialogHost, ie as provideRowSortHeader, I as serializeNoteData, i as useActiveDocument, re as useColumnFilterHeaderContext, ee as useColumnFilters, Ae as useDiagramLayout, t as useDialecteChannel, v as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, W as useMergeSession, ae as useOptionalRowSortContext, r as useProjectLiveData, te as useRowSort, de as validateSearchText, fe as validateXpath };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e } from "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
|
|
2
|
+
import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
|
|
2
3
|
//#region lib/merge/check-files/identity-warning.ts
|
|
3
4
|
function t(t) {
|
|
4
5
|
let r = e[t];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as e, f as t } from "../../external/.pnpm/@dialecte_core@0.
|
|
2
|
-
import "../../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import {
|
|
4
|
-
import "../../external/.pnpm/@dialecte_scl@0.
|
|
1
|
+
import { d as e, f as t } from "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js";
|
|
2
|
+
import "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js";
|
|
3
|
+
import { g as n } from "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
|
|
4
|
+
import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
|
|
5
5
|
import { extractTitle as r, getAttributes as i } from "../session/merge.service.js";
|
|
6
6
|
import { allGroups as a } from "../review/tree.js";
|
|
7
7
|
import { countAttributeChanges as o, foldOperations as s } from "../session/staged-writes.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region lib/merge/done/applied-focus.ts
|
|
2
2
|
function e(e, n) {
|
|
3
3
|
let { instances: r } = e;
|
|
4
|
-
if (r.verb === "fsd") return r.functions[0];
|
|
4
|
+
if (r.verb === "fsd") return r.functions[0]?.ref;
|
|
5
5
|
if (!(r.verb === "asd" && !r.applications[0])) return r.verb === "ssd" ? t(e) : t(e) ?? n.anchor;
|
|
6
6
|
}
|
|
7
7
|
function t(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as e } from "../../external/.pnpm/@dialecte_core@0.
|
|
2
|
-
import "../../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import "../../external/.pnpm/@dialecte_scl@0.
|
|
4
|
-
import "../../external/.pnpm/@dialecte_scl@0.
|
|
1
|
+
import { f as e } from "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js";
|
|
2
|
+
import "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js";
|
|
3
|
+
import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
|
|
4
|
+
import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
|
|
5
5
|
import { extractTitle as t } from "../session/merge.service.js";
|
|
6
6
|
//#region lib/merge/match/match.ts
|
|
7
7
|
async function n(e) {
|
|
@@ -1,49 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../external/.pnpm/@dialecte_scl@0.
|
|
1
|
+
import { n as e } from "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
|
|
2
|
+
import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
|
|
3
3
|
//#region lib/merge/session/merge.service.ts
|
|
4
|
-
async function t(e, t, n) {
|
|
5
|
-
|
|
4
|
+
async function t({ doc: e, target: t, resolved: n }) {
|
|
5
|
+
let { decisionMappings: r, consumerManagedTags: i } = n;
|
|
6
|
+
if (!r && !i) return e.query.lifecycle.report(t);
|
|
7
|
+
let a = {};
|
|
8
|
+
return r && (a.mappings = r), i && (a.consumerManagedTags = i), e.query.lifecycle.report({
|
|
6
9
|
...t,
|
|
7
|
-
resolution:
|
|
8
|
-
})
|
|
10
|
+
resolution: a
|
|
11
|
+
});
|
|
9
12
|
}
|
|
10
|
-
function n({ decisions: e, decisionMappings: t, keepNameTypesFrom: n,
|
|
13
|
+
function n({ decisions: e, decisionMappings: t, keepNameTypesFrom: n, consumerManagedTags: r, afterApply: i }) {
|
|
11
14
|
return {
|
|
12
15
|
decisions: e,
|
|
13
16
|
mappings: t,
|
|
14
17
|
keepNameTypesFrom: n,
|
|
15
|
-
|
|
18
|
+
consumerManagedTags: r,
|
|
19
|
+
afterApply: i
|
|
16
20
|
};
|
|
17
21
|
}
|
|
18
|
-
async function r({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o,
|
|
19
|
-
let
|
|
22
|
+
async function r({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o, consumerManagedTags: s, afterApply: c }) {
|
|
23
|
+
let l = n({
|
|
20
24
|
decisions: i,
|
|
21
25
|
decisionMappings: a,
|
|
22
26
|
keepNameTypesFrom: o,
|
|
23
|
-
|
|
27
|
+
consumerManagedTags: s,
|
|
28
|
+
afterApply: c
|
|
24
29
|
});
|
|
25
30
|
return { prepared: await e.prepare(async (e) => {
|
|
26
31
|
await e.lifecycle.apply({
|
|
27
32
|
...t,
|
|
28
33
|
report: r,
|
|
29
|
-
resolution:
|
|
34
|
+
resolution: l
|
|
30
35
|
});
|
|
31
36
|
}) };
|
|
32
37
|
}
|
|
33
|
-
async function i({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o,
|
|
34
|
-
let
|
|
38
|
+
async function i({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o, consumerManagedTags: s, afterApply: c }) {
|
|
39
|
+
let l = n({
|
|
35
40
|
decisions: i,
|
|
36
41
|
decisionMappings: a,
|
|
37
42
|
keepNameTypesFrom: o,
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
consumerManagedTags: s,
|
|
44
|
+
afterApply: c
|
|
45
|
+
}), u;
|
|
40
46
|
return await e.transaction(async (e) => {
|
|
41
|
-
|
|
47
|
+
u = await e.lifecycle.apply({
|
|
42
48
|
...t,
|
|
43
49
|
report: r,
|
|
44
|
-
resolution:
|
|
50
|
+
resolution: l
|
|
45
51
|
});
|
|
46
|
-
}),
|
|
52
|
+
}), u;
|
|
47
53
|
}
|
|
48
54
|
function a(t) {
|
|
49
55
|
return e({ verb: t });
|
|
@@ -40,7 +40,14 @@ function p(p) {
|
|
|
40
40
|
await L(), N.value = await t([p.sourceQuery, p.targetDocument.query]), j.value = await s(p.sourceQuery), await $();
|
|
41
41
|
}
|
|
42
42
|
async function L() {
|
|
43
|
-
let e = await te(
|
|
43
|
+
let e = await te({
|
|
44
|
+
doc: p.targetDocument,
|
|
45
|
+
target: P(),
|
|
46
|
+
resolved: {
|
|
47
|
+
decisionMappings: new Map(g),
|
|
48
|
+
consumerManagedTags: p.consumerManagedTags
|
|
49
|
+
}
|
|
50
|
+
});
|
|
44
51
|
m.value = e;
|
|
45
52
|
let t = await re({
|
|
46
53
|
mappings: e.mappings,
|
|
@@ -204,6 +211,7 @@ function p(p) {
|
|
|
204
211
|
decisions: t,
|
|
205
212
|
decisionMappings: new Map(g),
|
|
206
213
|
keepNameTypesFrom: C.value,
|
|
214
|
+
consumerManagedTags: p.consumerManagedTags,
|
|
207
215
|
afterApply: p.afterApply
|
|
208
216
|
});
|
|
209
217
|
if (e !== Z) {
|
|
@@ -275,6 +283,7 @@ function p(p) {
|
|
|
275
283
|
decisions: q(),
|
|
276
284
|
decisionMappings: new Map(g),
|
|
277
285
|
keepNameTypesFrom: C.value,
|
|
286
|
+
consumerManagedTags: p.consumerManagedTags,
|
|
278
287
|
afterApply: p.afterApply
|
|
279
288
|
});
|
|
280
289
|
}
|
|
@@ -292,6 +301,7 @@ function p(p) {
|
|
|
292
301
|
decisions: q(),
|
|
293
302
|
decisionMappings: new Map(g),
|
|
294
303
|
keepNameTypesFrom: C.value,
|
|
304
|
+
consumerManagedTags: p.consumerManagedTags,
|
|
295
305
|
afterApply: p.afterApply
|
|
296
306
|
});
|
|
297
307
|
try {
|
package/dist/merge/wording.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as e, U as t } from "../external/.pnpm/@dialecte_core@0.
|
|
2
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import {
|
|
4
|
-
import "../external/.pnpm/@dialecte_scl@0.
|
|
1
|
+
import { G as e, U as t } from "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js";
|
|
3
|
+
import { p as n } from "../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
|
|
4
|
+
import "../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
|
|
5
5
|
//#region lib/merge/wording.ts
|
|
6
6
|
var r = {
|
|
7
7
|
added: "new",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { buildXpath as e, matchName as t, parseXpath as n,
|
|
2
|
-
import
|
|
3
|
-
export {
|
|
1
|
+
import { buildXpath as e, matchName as t, parseXpath as n, validateSearchText as r, validateXpath as i } from "./selector-xpath.js";
|
|
2
|
+
import a from "./selector-input.js";
|
|
3
|
+
export { a as SelectorInput, e as buildXpath, t as matchName, n as parseXpath, r as validateSearchText, i as validateXpath };
|
|
@@ -1,90 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
b(e, { optional: !0 }), t.forEach((e) => b(e)), r.forEach((e) => b(e));
|
|
5
|
-
let i = n?.value ? n : void 0;
|
|
6
|
-
if (!e && t.length === 0 && !i) return "";
|
|
7
|
-
let a = e ? `ancestor::*[local-name()='${e}'][1]` : "", o = i ? h(i) : "", s = i && r.length > 0 ? `[ancestor::*[${p(r)}][1][${o}]]` : i ? `[${o}]` : "";
|
|
8
|
-
return `${a}//*${t.length > 0 ? `[${p(t)}]` : ""}${s}`;
|
|
9
|
-
}
|
|
10
|
-
function d(e) {
|
|
11
|
-
let t = l.exec(e);
|
|
12
|
-
if (!t) return;
|
|
13
|
-
let [, n = "", r = "", i, a, o] = t, s = i ?? o, c = s ? g(s) : void 0;
|
|
14
|
-
if (c === null || !n && !r && !c) return;
|
|
15
|
-
let u = m(r);
|
|
16
|
-
return c ? a ? {
|
|
17
|
-
anchor: n,
|
|
18
|
-
targets: u,
|
|
19
|
-
nameFilter: c,
|
|
20
|
-
nameOwners: m(a)
|
|
21
|
-
} : {
|
|
22
|
-
anchor: n,
|
|
23
|
-
targets: u,
|
|
24
|
-
nameFilter: c
|
|
25
|
-
} : {
|
|
26
|
-
anchor: n,
|
|
27
|
-
targets: u
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function f({ match: e, value: t }, n) {
|
|
31
|
-
if (n === void 0) return !1;
|
|
32
|
-
switch (e) {
|
|
33
|
-
case "equals": return n === t;
|
|
34
|
-
case "starts-with": return n.startsWith(t);
|
|
35
|
-
case "ends-with": return n.endsWith(t);
|
|
36
|
-
case "contains": return n.includes(t);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function p(e) {
|
|
40
|
-
return e.map((e) => `local-name()='${e}'`).join(" or ");
|
|
41
|
-
}
|
|
42
|
-
function m(e) {
|
|
43
|
-
return [...e.matchAll(/local-name\(\)='([^']+)'/g)].map((e) => e[1]);
|
|
44
|
-
}
|
|
45
|
-
function h({ match: e, value: t }) {
|
|
46
|
-
let n = _(t);
|
|
47
|
-
switch (e) {
|
|
48
|
-
case "equals": return `@name=${n}`;
|
|
49
|
-
case "starts-with":
|
|
50
|
-
case "contains": return `${e}(@name,${n})`;
|
|
51
|
-
case "ends-with": return `substring(@name,string-length(@name)-string-length(${n})+1)=${n}`;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function g(e) {
|
|
55
|
-
let t = s.exec(e);
|
|
56
|
-
if (!t) return null;
|
|
57
|
-
let [, n, r, i, a, o] = t;
|
|
58
|
-
return n ? {
|
|
59
|
-
match: "equals",
|
|
60
|
-
value: v(n)
|
|
61
|
-
} : r && i ? {
|
|
62
|
-
match: r,
|
|
63
|
-
value: v(i)
|
|
64
|
-
} : a === o ? {
|
|
65
|
-
match: "ends-with",
|
|
66
|
-
value: v(a)
|
|
67
|
-
} : null;
|
|
68
|
-
}
|
|
69
|
-
function _(e) {
|
|
70
|
-
if (!e.includes("'")) return `'${e}'`;
|
|
71
|
-
if (!e.includes("\"")) return `"${e}"`;
|
|
72
|
-
throw Error("Search text must not contain both single and double quotes");
|
|
73
|
-
}
|
|
74
|
-
function v(e) {
|
|
75
|
-
return e.slice(1, -1);
|
|
76
|
-
}
|
|
77
|
-
function y(e) {
|
|
78
|
-
if (e.trim() !== "") try {
|
|
79
|
-
let t = document.implementation.createDocument(null, "root");
|
|
80
|
-
t.evaluate(e, t, null, XPathResult.ANY_TYPE, null);
|
|
81
|
-
return;
|
|
82
|
-
} catch (e) {
|
|
83
|
-
return e instanceof Error && e.message || "Invalid XPath";
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function b(e, { optional: n = !1 } = {}) {
|
|
87
|
-
if (!(n && e === "") && !t.test(e)) throw Error(`Invalid element name "${e}"`);
|
|
88
|
-
}
|
|
1
|
+
import e from "./selector-input.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region lib/selector-input/selector-input.vue
|
|
3
|
+
var t = e;
|
|
89
4
|
//#endregion
|
|
90
|
-
export {
|
|
5
|
+
export { t as default };
|