@septkit/ui 0.0.46 → 0.0.48
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 +3 -3
- package/dist/external/.pnpm/{@dialecte_core@0.4.6 → @dialecte_core@0.4.7}/node_modules/@dialecte/core/dist/helpers.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.4.6 → @dialecte_core@0.4.7}/node_modules/@dialecte/core/dist/index.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/project-wohrish5.js → @dialecte_core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js} +8 -7
- package/dist/external/.pnpm/{@dialecte_core@0.4.6 → @dialecte_core@0.4.7}/node_modules/@dialecte/core/dist/utils-C5_11hqg.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/hooks-abaf9148.js → @dialecte_scl@0.3.8/node_modules/@dialecte/scl/dist/hooks-DJJN-WU2.js} +5 -8
- package/dist/external/.pnpm/@dialecte_scl@0.3.8/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/eye-off.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/eye.js +13 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +4 -3
- package/dist/merge/build-view-model.js +24 -18
- package/dist/merge/index.js +4 -3
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +141 -127
- package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +35 -20
- package/dist/merge/merge.service.js +14 -12
- package/dist/merge/type-name-authority.js +5 -0
- package/dist/merge/type-name-authority.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/merge/use-merge-session.js +82 -63
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "../external/.pnpm/@dialecte_core@0.4.
|
|
2
|
-
import { ut as t } from "../external/.pnpm/@dialecte_core@0.4.
|
|
3
|
-
import "../external/.pnpm/@dialecte_core@0.4.
|
|
1
|
+
import { r as e } from "../external/.pnpm/@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/utils-C5_11hqg.js";
|
|
2
|
+
import { ut as t } from "../external/.pnpm/@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js";
|
|
3
|
+
import "../external/.pnpm/@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/index.js";
|
|
4
4
|
import { computed as n, shallowRef as r } from "vue";
|
|
5
5
|
//#region lib/dialecte/create-document-store.ts
|
|
6
6
|
function i(i) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, c as t, l as n, o as r, p as i, r as a, u as o } from "./utils-C5_11hqg.js";
|
|
2
|
-
//#region node_modules/.pnpm/@dialecte+core@0.4.
|
|
2
|
+
//#region node_modules/.pnpm/@dialecte+core@0.4.7/node_modules/@dialecte/core/dist/helpers.js
|
|
3
3
|
var s = "db-id", c = {
|
|
4
4
|
uri: "http://dialecte.dev/XML/DEV",
|
|
5
5
|
prefix: "dev"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, d as t, f as n, n as r, o as i, p as a, r as o } from "./utils-C5_11hqg.js";
|
|
2
2
|
import { assertNoFixedViolation as s, isRecordOf as c, standardizeRecord as l, toFullAttributeArray as u, toRawRecord as d, toRef as f, toTreeRecord as p } from "./helpers.js";
|
|
3
|
-
//#region node_modules/.pnpm/@dialecte+core@0.4.
|
|
3
|
+
//#region node_modules/.pnpm/@dialecte+core@0.4.7/node_modules/@dialecte/core/dist/project-DxIu-3AU.js
|
|
4
4
|
var m = Object.create, h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, v = Object.getPrototypeOf, y = Object.prototype.hasOwnProperty, b = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), x = (e, t, n, r) => {
|
|
5
5
|
if (t && typeof t == "object" || typeof t == "function") for (var i = _(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !y.call(e, s) && s !== n && h(e, s, {
|
|
6
6
|
get: ((e) => t[e]).bind(null, s),
|
|
@@ -1263,8 +1263,9 @@ function Re(e) {
|
|
|
1263
1263
|
return (0, Le.default)(e);
|
|
1264
1264
|
}
|
|
1265
1265
|
var ze = "_temp-idb-id";
|
|
1266
|
-
function Be(e) {
|
|
1267
|
-
|
|
1266
|
+
function Be(e, t = {}) {
|
|
1267
|
+
let { includeXmlDeclaration: n = !0 } = t, r = new XMLSerializer().serializeToString(e);
|
|
1268
|
+
return Re(n ? "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + r : r);
|
|
1268
1269
|
}
|
|
1269
1270
|
function Ve(e) {
|
|
1270
1271
|
let { records: t, config: n, withDatabaseIds: r = !1, rootId: i, declareNamespaces: a = !0 } = e, s = /* @__PURE__ */ new Map(), c;
|
|
@@ -2295,14 +2296,14 @@ async function Xe(e) {
|
|
|
2295
2296
|
depth: o,
|
|
2296
2297
|
includeDeleted: s
|
|
2297
2298
|
});
|
|
2298
|
-
if (u === "xml") return Qe(t, d, n.declareNamespaces);
|
|
2299
|
+
if (u === "xml") return Qe(t, d, n.declareNamespaces, n.includeXmlDeclaration);
|
|
2299
2300
|
let p = Ze(t, d, {
|
|
2300
2301
|
omit: c,
|
|
2301
2302
|
unwrap: l
|
|
2302
2303
|
});
|
|
2303
2304
|
return u === "tree" ? p : {
|
|
2304
2305
|
tree: p,
|
|
2305
|
-
xmlString: Qe(t, d, n.declareNamespaces)
|
|
2306
|
+
xmlString: Qe(t, d, n.declareNamespaces, n.includeXmlDeclaration)
|
|
2306
2307
|
};
|
|
2307
2308
|
}
|
|
2308
2309
|
function Ze(e, t, n) {
|
|
@@ -2320,13 +2321,13 @@ function Ze(e, t, n) {
|
|
|
2320
2321
|
childrenConfig: e.dialecteConfig.children
|
|
2321
2322
|
}), r;
|
|
2322
2323
|
}
|
|
2323
|
-
function Qe(e, t, n) {
|
|
2324
|
+
function Qe(e, t, n, r) {
|
|
2324
2325
|
return Be(Ve({
|
|
2325
2326
|
records: t.liveRecords,
|
|
2326
2327
|
config: e.dialecteConfig,
|
|
2327
2328
|
rootId: t.rootId,
|
|
2328
2329
|
declareNamespaces: n
|
|
2329
|
-
}));
|
|
2330
|
+
}), { includeXmlDeclaration: r });
|
|
2330
2331
|
}
|
|
2331
2332
|
var U = class {
|
|
2332
2333
|
constructor(e, t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../../../@dialecte_core@0.4.
|
|
2
|
-
import { XSI_NAMESPACE as e, toRawRecord as t } from "../../../../../@dialecte_core@0.4.
|
|
3
|
-
//#region node_modules/.pnpm/@dialecte+scl@0.3.
|
|
1
|
+
import "../../../../../@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/utils-C5_11hqg.js";
|
|
2
|
+
import { XSI_NAMESPACE as e, toRawRecord as t } from "../../../../../@dialecte_core@0.4.7/node_modules/@dialecte/core/dist/helpers.js";
|
|
3
|
+
//#region node_modules/.pnpm/@dialecte+scl@0.3.8/node_modules/@dialecte/scl/dist/hooks-DJJN-WU2.js
|
|
4
4
|
var n = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.AllocationRoleRef.AnalogueWiringParameters.AnalogueWiringParametersRef.Application.ApplicationSclRef.Association.Authentication.BDA.Bay.BayType.BehaviorDescription.BehaviorDescriptionRef.BehaviorReference.BinaryWiringParameters.BinaryWiringParametersRef.BitRate.CheckoutID.ClientLN.ClientServices.CommProt.Communication.CommunicationServiceSpecifications.ConductingEquipment.ConfDataSet.ConfLNs.ConfLdName.ConfLogControl.ConfReportControl.ConfSG.ConfSigRef.ConnectedAP.ConnectivityNode.ControlRef.ControllingLNode.DA.DAI.DAS.DAType.DO.DOI.DOS.DOType.DataObjectDirectory.DataSet.DataSetDirectory.DataTypeTemplates.DynAssociation.DynDataSet.EnumType.EnumVal.EqFunction.EqSubFunction.ExtCtrl.ExtRef.FCDA.FileHandling.Function.FunctionCatRef.FunctionCategory.FunctionCategoryRef.FunctionRef.FunctionRole.FunctionRoleContent.FunctionSclRef.FunctionTemplate.FunctionalSubVariant.FunctionalVariant.FunctionalVariantGroup.FunctionalVariantRef.GOOSE.GOOSEMcSecurity.GOOSESecurity.GSE.GSEControl.GSEDir.GSESettings.GSSE.GeneralEquipment.GetCBValues.GetDataObjectDefinition.GetDataSetValue.GetDirectory.GooseParameters.GooseParametersRef.Header.History.Hitem.IED.IEDName.IEDSourceFiles.InputVar.InputVarRef.Inputs.IssuerName.KDC.L2CommParameters.L3IPv4CommParameters.L3IPv6CommParameters.LDevice.LN.LN0.LNode.LNodeDataRef.LNodeInputRef.LNodeInputs.LNodeOutputRef.LNodeOutputs.LNodeSpecNaming.LNodeType.Label.Labels.Line.Log.LogControl.LogParameters.LogParametersRef.LogSettings.MaxTime.McSecurity.MinRequestedSCDFile.MinRequestedSCDFiles.MinTime.MultiAPPerSubNet.NeutralPoint.OptFields.OutputVar.OutputVarRef.Outputs.P.PhysConn.PowerSystemRelation.PowerSystemRelationRef.PowerSystemRelations.PowerTransformer.Private.Process.ProcessEcho.ProcessResource.ProcessResourceRef.ProcessResources.Project.ProjectProcessReference.ProtNs.Protocol.ReadWrite.RedProt.ReportControl.ReportParameters.ReportParametersRef.ReportSettings.Resource.RptEnabled.SCL.SCSM.SDI.SDO.SDS.SGEdit.SMV.SMVParameters.SMVParametersRef.SMVSecurity.SMVSettings.SMVsc.SVMcSecurity.SampledValueControl.SamplesPerSec.SclFileReference.SecPerSamples.Security.Server.ServerAt.ServiceSpecifications.Services.SetDataSetValue.SettingControl.SettingGroups.SignalRole.SmpRate.SmvOpts.SourceFiles.SourceRef.SubCategory.SubCheckoutID.SubEquipment.SubFunction.SubFunctionTemplate.SubNetwork.Subject.SubscriberLNode.Substation.SupSubscription.TapChanger.Terminal.Text.TimeSyncProt.TimerActivatedControl.TransformerWinding.TrgOps.Val.ValueHandling.Variable.VariableApplyTo.VariableRef.Voltage.VoltageLevel".split("."), r = {
|
|
5
5
|
AccessControl: [],
|
|
6
6
|
AccessPoint: [
|
|
@@ -25236,11 +25236,8 @@ function z(e) {
|
|
|
25236
25236
|
case "fsd":
|
|
25237
25237
|
case "asd": return {
|
|
25238
25238
|
rootTag: "Substation",
|
|
25239
|
-
omit: [
|
|
25240
|
-
|
|
25241
|
-
"Communication",
|
|
25242
|
-
"IED"
|
|
25243
|
-
]
|
|
25239
|
+
omit: ["Communication", "IED"],
|
|
25240
|
+
include: ["DataTypeTemplates"]
|
|
25244
25241
|
};
|
|
25245
25242
|
}
|
|
25246
25243
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
//#region node_modules/.pnpm/@lucide+vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/eye-off.mjs
|
|
3
|
+
var t = [
|
|
4
|
+
["path", {
|
|
5
|
+
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
6
|
+
key: "ct8e1f"
|
|
7
|
+
}],
|
|
8
|
+
["path", {
|
|
9
|
+
d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
|
|
10
|
+
key: "151rxh"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
|
|
14
|
+
key: "13bj9a"
|
|
15
|
+
}],
|
|
16
|
+
["path", {
|
|
17
|
+
d: "m2 2 20 20",
|
|
18
|
+
key: "1ooewy"
|
|
19
|
+
}]
|
|
20
|
+
], n = e("eye-off", t);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as __iconNode, n as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
//#region node_modules/.pnpm/@lucide+vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/eye.mjs
|
|
3
|
+
var t = [["path", {
|
|
4
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
5
|
+
key: "1nclc0"
|
|
6
|
+
}], ["circle", {
|
|
7
|
+
cx: "12",
|
|
8
|
+
cy: "12",
|
|
9
|
+
r: "3",
|
|
10
|
+
key: "1v7zrd"
|
|
11
|
+
}]], n = e("eye", t);
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as __iconNode, n as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { DiffReport } from '@dialecte/scl/v2019C1';
|
|
|
10
10
|
import { ExtensionModule } from '@dialecte/core';
|
|
11
11
|
import { GroupDecision } from '@dialecte/scl/v2019C1';
|
|
12
12
|
import { InjectionKey } from 'vue';
|
|
13
|
+
import { KeepNameTypesFrom } from '@dialecte/scl/v2019C1';
|
|
13
14
|
import { LifecycleScenario } from '@dialecte/scl/v2019C1';
|
|
14
15
|
import { LifecycleTarget } from '@dialecte/scl/v2019C1';
|
|
15
16
|
import { LifecycleVerb } from '@dialecte/scl/v2019C1';
|
|
@@ -114,6 +115,13 @@ declare type __VLS_Props_13 = {
|
|
|
114
115
|
expandedItems?: string[];
|
|
115
116
|
};
|
|
116
117
|
|
|
118
|
+
declare type __VLS_Props_14 = {
|
|
119
|
+
size?: 'xs' | 'sm' | 'md';
|
|
120
|
+
disabled?: boolean;
|
|
121
|
+
/** Render the segmented control only, without the leading label. */
|
|
122
|
+
hideLabel?: boolean;
|
|
123
|
+
};
|
|
124
|
+
|
|
117
125
|
declare type __VLS_Props_2 = {
|
|
118
126
|
/** Trigger color */
|
|
119
127
|
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -207,6 +215,10 @@ declare type __VLS_PublicProps_2 = {
|
|
|
207
215
|
modelValue: DecisionAction;
|
|
208
216
|
} & __VLS_Props_10;
|
|
209
217
|
|
|
218
|
+
declare type __VLS_PublicProps_3 = {
|
|
219
|
+
modelValue: KeepNameTypesFrom;
|
|
220
|
+
} & __VLS_Props_14;
|
|
221
|
+
|
|
210
222
|
declare function __VLS_template(): {
|
|
211
223
|
attrs: Partial<{}>;
|
|
212
224
|
slots: {
|
|
@@ -636,6 +648,7 @@ onClose?: (() => any) | undefined;
|
|
|
636
648
|
onApplied?: (() => any) | undefined;
|
|
637
649
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
638
650
|
|
|
651
|
+
/** Inputs for `useMergeSession`. */
|
|
639
652
|
export declare type MergeSessionParams = {
|
|
640
653
|
targetDocument: Scl.Document;
|
|
641
654
|
sourceQuery: Scl.Query;
|
|
@@ -690,6 +703,12 @@ declare type StructuralTree = {
|
|
|
690
703
|
expanded: string[];
|
|
691
704
|
};
|
|
692
705
|
|
|
706
|
+
export declare const TypeNameAuthority: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
707
|
+
"update:modelValue": (value: KeepNameTypesFrom) => any;
|
|
708
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
709
|
+
"onUpdate:modelValue"?: ((value: KeepNameTypesFrom) => any) | undefined;
|
|
710
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
711
|
+
|
|
693
712
|
export declare type UnifiedDiff = {
|
|
694
713
|
/** Every line (removed + added + unchanged), joined for a single highlight pass. */
|
|
695
714
|
code: string;
|
|
@@ -771,6 +790,7 @@ export declare function useLiveData<T>(params: {
|
|
|
771
790
|
export declare function useMergeSession(params: MergeSessionParams): {
|
|
772
791
|
report: ShallowRef<DiffReport | undefined, DiffReport | undefined>;
|
|
773
792
|
decisions: Reactive<Map<string, GroupDecision>>;
|
|
793
|
+
keepNameTypesFrom: ShallowRef<KeepNameTypesFrom, KeepNameTypesFrom>;
|
|
774
794
|
structuralTree: ShallowRef<StructuralTree, StructuralTree>;
|
|
775
795
|
previewXml: ShallowRef<string | undefined, string | undefined>;
|
|
776
796
|
previewBeforeXml: ShallowRef<string | undefined, string | undefined>;
|
|
@@ -782,6 +802,7 @@ export declare function useMergeSession(params: MergeSessionParams): {
|
|
|
782
802
|
editedValue: (groupId: string, attr: string) => string | undefined;
|
|
783
803
|
select: (sel: StructuralNodeInfo | undefined) => void;
|
|
784
804
|
stagedAttributes: (ref: Scl.Ref<Scl.ElementsOf>) => Promise<Record<string, string | undefined>>;
|
|
805
|
+
setKeepNameTypesFrom: (value: KeepNameTypesFrom) => void;
|
|
785
806
|
commit: () => Promise<void>;
|
|
786
807
|
};
|
|
787
808
|
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,8 @@ import "./code/index.js";
|
|
|
25
25
|
import w from "./merge/decision-toggle.js";
|
|
26
26
|
import T from "./merge/element-detail.js";
|
|
27
27
|
import E from "./merge/merge-tree.js";
|
|
28
|
-
import
|
|
29
|
-
import O from "./merge/merge-
|
|
28
|
+
import D from "./merge/type-name-authority.js";
|
|
29
|
+
import { useMergeSession as O } from "./merge/use-merge-session.js";
|
|
30
|
+
import k from "./merge/merge-review.js";
|
|
30
31
|
import "./merge/index.js";
|
|
31
|
-
export { a as Button, h as CATEGORY_ELEMENTS, x as CodeBlock, s as Combobox, w as DecisionToggle, c as Dialog, m as DialogHost, o as Dropdown, g as ELEMENT_TO_COLOR, _ as ELEMENT_TO_ICON, T as ElementDetail, l as FeedbackDialog,
|
|
32
|
+
export { a as Button, h as CATEGORY_ELEMENTS, x as CodeBlock, s as Combobox, w as DecisionToggle, c as Dialog, m as DialogHost, o as Dropdown, g as ELEMENT_TO_COLOR, _ as ELEMENT_TO_ICON, T as ElementDetail, l as FeedbackDialog, k as MergeReview, E as MergeTree, y as SclExplorer, D as TypeNameAuthority, C as XmlDiff, v as collectExpandableNodeIds, u as createDialogHost, e as createDocumentStore, d as dialogHostKey, S as diffLines, b as highlightCode, f as provideDialogHost, i as useActiveDocument, t as useDialecteChannel, p as useDialog, n as useLiveData, O as useMergeSession, r as useProjectLiveData };
|
|
@@ -47,35 +47,41 @@ async function r(t) {
|
|
|
47
47
|
index: {},
|
|
48
48
|
expanded: []
|
|
49
49
|
};
|
|
50
|
-
async function o(t) {
|
|
51
|
-
let
|
|
50
|
+
async function o(t, n) {
|
|
51
|
+
let s = r.get(t.id), c = s?.change ?? (n.added ? "added" : "unchanged"), l = s?.groupId ?? (c === "unchanged" ? void 0 : n.groupId), u = s?.role ?? "plain", d = {
|
|
52
52
|
tagName: t.tagName,
|
|
53
53
|
id: t.id
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
}, f = {
|
|
55
|
+
added: s ? s.change === "added" : n.added,
|
|
56
|
+
groupId: l ?? n.groupId
|
|
57
|
+
}, p = [];
|
|
58
|
+
for (let e of t.tree ?? []) p.push(await o(e, f));
|
|
59
|
+
let m = c !== "unchanged" || p.some((e) => e.changed);
|
|
57
60
|
return a.meta[t.id] = {
|
|
58
|
-
change:
|
|
59
|
-
role:
|
|
60
|
-
groupId:
|
|
61
|
+
change: c,
|
|
62
|
+
role: u,
|
|
63
|
+
groupId: l
|
|
61
64
|
}, a.index[t.id] = {
|
|
62
|
-
previewRef:
|
|
63
|
-
change:
|
|
64
|
-
role:
|
|
65
|
-
groupId:
|
|
66
|
-
node:
|
|
67
|
-
},
|
|
65
|
+
previewRef: d,
|
|
66
|
+
change: c,
|
|
67
|
+
role: u,
|
|
68
|
+
groupId: l,
|
|
69
|
+
node: s?.node
|
|
70
|
+
}, m && a.expanded.push(t.id), {
|
|
68
71
|
node: {
|
|
69
72
|
tag: t.tagName,
|
|
70
73
|
id: t.id,
|
|
71
|
-
name: await e(i,
|
|
74
|
+
name: await e(i, d),
|
|
72
75
|
selectable: !0,
|
|
73
|
-
children:
|
|
76
|
+
children: p.length ? p.map((e) => e.node) : void 0
|
|
74
77
|
},
|
|
75
|
-
changed:
|
|
78
|
+
changed: m
|
|
76
79
|
};
|
|
77
80
|
}
|
|
78
|
-
return a.items.push((await o(n
|
|
81
|
+
return a.items.push((await o(n, {
|
|
82
|
+
added: !1,
|
|
83
|
+
groupId: void 0
|
|
84
|
+
})).node), a;
|
|
79
85
|
}
|
|
80
86
|
async function i(e, n, r) {
|
|
81
87
|
let i = new Map((n?.editableAttributes ?? []).map((e) => [e.attr, e])), a = [];
|
package/dist/merge/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import e from "./decision-toggle.js";
|
|
2
2
|
import t from "./element-detail.js";
|
|
3
3
|
import n from "./merge-tree.js";
|
|
4
|
-
import
|
|
5
|
-
import i from "./merge-
|
|
6
|
-
|
|
4
|
+
import r from "./type-name-authority.js";
|
|
5
|
+
import { useMergeSession as i } from "./use-merge-session.js";
|
|
6
|
+
import a from "./merge-review.js";
|
|
7
|
+
export { e as DecisionToggle, t as ElementDetail, a as MergeReview, n as MergeTree, r as TypeNameAuthority, i as useMergeSession };
|