@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.
Files changed (32) hide show
  1. package/dist/dialecte/create-document-store.js +4 -4
  2. 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
  3. 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
  4. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
  5. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +6 -0
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/utils.js +1 -1
  12. 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
  13. 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
  14. package/dist/index.d.ts +16 -11
  15. package/dist/index.js +12 -12
  16. package/dist/merge/check-files/identity-warning.js +2 -1
  17. package/dist/merge/confirm/outcome.js +4 -4
  18. package/dist/merge/done/applied-focus.js +1 -1
  19. package/dist/merge/match/match.js +4 -4
  20. package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +1 -0
  21. package/dist/merge/session/merge.service.js +25 -19
  22. package/dist/merge/session/use-merge-session.js +11 -1
  23. package/dist/merge/wording.js +4 -4
  24. package/dist/selector-input/index.js +3 -3
  25. package/dist/selector-input/selector-input.js +4 -89
  26. package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +91 -89
  27. package/dist/selector-input/selector-xpath.js +92 -0
  28. package/package.json +3 -3
  29. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
  30. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +0 -5
  31. 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
  32. package/dist/selector-input/selector-input2.js +0 -5
@@ -1,43 +1,25 @@
1
- import { A as e, B as t, O as n, R as r, S as i, W as a, a as o, f as s, h as c, w as l, y as u } from "./utils-USNkj4sT.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js
3
- var d = [
4
- "",
5
- ".",
6
- ".."
7
- ], f = "xel_";
8
- function p(e) {
9
- return `${f}${e}`;
10
- }
11
- function m(e) {
12
- let { project: t, dialecteId: n } = e;
13
- (d.includes(t) || n !== void 0 && d.includes(n)) && a("PROJECT_NAME_INVALID", {
14
- detail: `A project cannot be named ${JSON.stringify(t)}${n === void 0 ? "" : ` in dialecte ${JSON.stringify(n)}`}: neither its name nor its dialecte's id may be empty, \`.\` or \`..\``,
15
- meta: {
16
- project: t,
17
- ...n !== void 0 && { dialecteId: n }
18
- }
19
- });
20
- }
21
- var h = {
1
+ import { A as e, B as t, O as n, R as r, S as i, W as a, a as o, f as s, h as c, w as l, y as u } from "./utils-Cv4oHia0.js";
2
+ //#region node_modules/.pnpm/@dialecte+core@0.9.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js
3
+ var d = {
22
4
  bigint: "a BigInt",
23
5
  function: "a function",
24
6
  symbol: "a symbol"
25
- }, g = "not well-formed UTF-16 (a lone surrogate)", ee = `text that is ${g}`, te = `a key that is ${g}`;
26
- function ne(e) {
7
+ }, f = "not well-formed UTF-16 (a lone surrogate)", p = `text that is ${f}`, m = `a key that is ${f}`;
8
+ function h(e) {
27
9
  let { documentId: t } = e;
28
10
  a("STORE_DUPLICATE_ID", {
29
11
  detail: `Document "${t}" is already registered`,
30
12
  meta: { documentId: t }
31
13
  });
32
14
  }
33
- function re(e) {
15
+ function ee(e) {
34
16
  let { path: t, reason: n } = e;
35
17
  a("DOCUMENT_PATH_INVALID", {
36
18
  detail: `The document path ${JSON.stringify(t)} is refused: ${n}`,
37
19
  meta: { path: t }
38
20
  });
39
21
  }
40
- function ie(e) {
22
+ function te(e) {
41
23
  let { documentId: t, path: n, takenBy: r } = e;
42
24
  a("DOCUMENT_PATH_TAKEN", {
43
25
  detail: `Document "${t}" cannot take the path "${n}": document "${r}" holds that place`,
@@ -48,14 +30,14 @@ function ie(e) {
48
30
  }
49
31
  });
50
32
  }
51
- function ae(e) {
33
+ function ne(e) {
52
34
  let { documentId: t, what: n } = e;
53
35
  a("DOCUMENT_NOT_REGISTERED", {
54
36
  detail: `Cannot write ${n} to document "${t}": it is not registered`,
55
37
  meta: { documentId: t }
56
38
  });
57
39
  }
58
- function oe(e) {
40
+ function re(e) {
59
41
  let { documentId: t, recordId: n } = e;
60
42
  a("STORE_RECORD_NOT_FOUND", {
61
43
  detail: `Record "${n}" is not in document "${t}": nothing to update`,
@@ -65,21 +47,21 @@ function oe(e) {
65
47
  }
66
48
  });
67
49
  }
68
- function se(e) {
50
+ function ie(e) {
69
51
  let { documentId: t, held: n, repeated: r, cause: i } = e;
70
52
  a("STORE_DUPLICATE_ID", {
71
- detail: `Document "${t}" refuses ids to create - ${[n.length > 0 ? `already holds: ${_(n).join(", ")}` : void 0, r.length > 0 ? `given twice: ${_(r).join(", ")}` : void 0].filter((e) => e !== void 0).join("; ")}`,
53
+ detail: `Document "${t}" refuses ids to create - ${[n.length > 0 ? `already holds: ${g(n).join(", ")}` : void 0, r.length > 0 ? `given twice: ${g(r).join(", ")}` : void 0].filter((e) => e !== void 0).join("; ")}`,
72
54
  meta: {
73
55
  documentId: t,
74
- recordIds: _([...n, ...r])
56
+ recordIds: g([...n, ...r])
75
57
  },
76
58
  cause: i
77
59
  });
78
60
  }
79
- function _(e) {
61
+ function g(e) {
80
62
  return [...new Set(e)];
81
63
  }
82
- function ce(e) {
64
+ function ae(e) {
83
65
  let { storeName: t, connections: n } = e;
84
66
  a("PROJECT_OPEN_ELSEWHERE", {
85
67
  detail: `Project "${t}" cannot be destroyed while another connection has it open: close that one first`,
@@ -89,16 +71,16 @@ function ce(e) {
89
71
  }
90
72
  });
91
73
  }
92
- function le(e) {
74
+ function oe(e) {
93
75
  let { storeName: t } = e;
94
76
  a("STORE_CLOSED", {
95
77
  detail: `Store "${t}" is closed: open it again before using it`,
96
78
  meta: { storeName: t }
97
79
  });
98
80
  }
99
- function ue(e) {
100
- pe({ walk: function() {
101
- v({
81
+ function _(e) {
82
+ v({ walk: function() {
83
+ y({
102
84
  value: e.value,
103
85
  field: "",
104
86
  inArray: !1,
@@ -106,12 +88,12 @@ function ue(e) {
106
88
  });
107
89
  } });
108
90
  }
109
- function de(e) {
110
- ue({ value: { writeId: e.writeId } });
91
+ function se(e) {
92
+ _({ value: { writeId: e.writeId } });
111
93
  }
112
- function fe(e) {
113
- return pe({ walk: function() {
114
- return y({
94
+ function ce(e) {
95
+ return v({ walk: function() {
96
+ return b({
115
97
  value: e.value,
116
98
  field: "",
117
99
  inArray: !1,
@@ -119,7 +101,7 @@ function fe(e) {
119
101
  });
120
102
  } });
121
103
  }
122
- function pe(e) {
104
+ function v(e) {
123
105
  try {
124
106
  return e.walk();
125
107
  } catch (e) {
@@ -130,15 +112,15 @@ function pe(e) {
130
112
  });
131
113
  }
132
114
  }
133
- function v(e) {
134
- let t = ge(e);
115
+ function y(e) {
116
+ let t = de(e);
135
117
  if (t === "leaf") return;
136
118
  let { ancestors: n } = e;
137
119
  if (n.push(e.value), t === "array") {
138
120
  let t = e.value, { length: r } = t;
139
121
  for (let e = 0; e < r; e++) {
140
122
  let r = t[e];
141
- x({ value: r }) || v({
123
+ S({ value: r }) || y({
142
124
  value: r,
143
125
  field: e,
144
126
  inArray: !0,
@@ -150,10 +132,10 @@ function v(e) {
150
132
  for (let r of Object.keys(t)) {
151
133
  r.isWellFormed() || C({
152
134
  step: e,
153
- kind: te
135
+ kind: m
154
136
  });
155
137
  let i = t[r];
156
- x({ value: i }) || v({
138
+ S({ value: i }) || y({
157
139
  value: i,
158
140
  field: r,
159
141
  inArray: !1,
@@ -163,19 +145,19 @@ function v(e) {
163
145
  }
164
146
  n.pop();
165
147
  }
166
- function y(e) {
167
- let t = ge(e);
168
- if (t === "leaf") return b({ value: e.value });
148
+ function b(e) {
149
+ let t = de(e);
150
+ if (t === "leaf") return x({ value: e.value });
169
151
  let { ancestors: n } = e;
170
152
  n.push(e.value);
171
- let r = t === "array" ? me(e) : he(e);
153
+ let r = t === "array" ? le(e) : ue(e);
172
154
  return n.pop(), r;
173
155
  }
174
- function me(e) {
156
+ function le(e) {
175
157
  let { ancestors: t } = e, n = e.value, r = [], { length: i } = n;
176
158
  for (let e = 0; e < i; e++) {
177
159
  let i = n[e];
178
- r.push(x({ value: i }) ? b({ value: i }) : y({
160
+ r.push(S({ value: i }) ? x({ value: i }) : b({
179
161
  value: i,
180
162
  field: e,
181
163
  inArray: !0,
@@ -184,14 +166,14 @@ function me(e) {
184
166
  }
185
167
  return r;
186
168
  }
187
- function he(e) {
169
+ function ue(e) {
188
170
  let { ancestors: t } = e, n = e.value, r = {};
189
171
  for (let i of Object.keys(n)) {
190
172
  i.isWellFormed() || C({
191
173
  step: e,
192
- kind: te
174
+ kind: m
193
175
  });
194
- let a = n[i], o = x({ value: a }) ? b({ value: a }) : y({
176
+ let a = n[i], o = S({ value: a }) ? x({ value: a }) : b({
195
177
  value: a,
196
178
  field: i,
197
179
  inArray: !1,
@@ -206,10 +188,10 @@ function he(e) {
206
188
  }
207
189
  return r;
208
190
  }
209
- function b(e) {
191
+ function x(e) {
210
192
  return e.value === 0 ? 0 : e.value;
211
193
  }
212
- function x(e) {
194
+ function S(e) {
213
195
  let { value: t } = e;
214
196
  switch (typeof t) {
215
197
  case "string": return t.isWellFormed();
@@ -219,12 +201,12 @@ function x(e) {
219
201
  default: return !1;
220
202
  }
221
203
  }
222
- function ge(e) {
204
+ function de(e) {
223
205
  let { value: t } = e, n = typeof t;
224
206
  switch (n) {
225
207
  case "string": return t.isWellFormed() ? "leaf" : C({
226
208
  step: e,
227
- kind: ee
209
+ kind: p
228
210
  });
229
211
  case "boolean": return "leaf";
230
212
  case "number": return Number.isFinite(t) ? "leaf" : C({
@@ -234,23 +216,23 @@ function ge(e) {
234
216
  case "undefined": return t === void 0 ? e.inArray ? C({
235
217
  step: e,
236
218
  kind: "undefined in an array"
237
- }) : "leaf" : S({
219
+ }) : "leaf" : fe({
238
220
  step: e,
239
221
  held: t
240
222
  });
241
- case "object": return t === null ? "leaf" : S({
223
+ case "object": return t === null ? "leaf" : fe({
242
224
  step: e,
243
225
  held: t
244
226
  });
245
227
  default: return C({
246
228
  step: e,
247
- kind: h[n]
229
+ kind: d[n]
248
230
  });
249
231
  }
250
232
  }
251
- function S(e) {
233
+ function fe(e) {
252
234
  let { step: t, held: n } = e, r = Array.isArray(n), i = Object.getPrototypeOf(n);
253
- return _e({
235
+ return pe({
254
236
  prototype: i,
255
237
  name: r ? "Array" : "Object"
256
238
  }) || C({
@@ -270,7 +252,7 @@ function S(e) {
270
252
  kind: "a value nested more than 512 levels deep"
271
253
  }), r ? "array" : "object";
272
254
  }
273
- function _e(e) {
255
+ function pe(e) {
274
256
  let { prototype: t, name: n } = e;
275
257
  if (t === (n === "Array" ? Array.prototype : Object.prototype)) return !0;
276
258
  if (t === null) return n === "Object";
@@ -281,47 +263,65 @@ function C(e) {
281
263
  let t = String(e.step.field);
282
264
  throw TypeError(`${e.kind} is not a JSON value${t ? ` (field "${t}")` : ""}`);
283
265
  }
284
- var w = /* @__PURE__ */ new WeakSet();
285
- function T(e) {
266
+ var me = /* @__PURE__ */ new WeakSet();
267
+ function he(e) {
286
268
  let { listener: t, value: n, of: r, call: i } = e;
287
269
  if (t) try {
288
270
  let e = t(n);
289
- ye(e) && Promise.resolve(e).catch(function(e) {
290
- E({
271
+ _e(e) && Promise.resolve(e).catch(function(e) {
272
+ w({
291
273
  call: i,
292
274
  of: r,
293
275
  thrown: e
294
276
  });
295
277
  });
296
278
  } catch (e) {
297
- E({
279
+ w({
298
280
  call: i,
299
281
  of: r,
300
282
  thrown: e
301
283
  });
302
284
  }
303
285
  }
304
- function ve(e) {
286
+ function ge(e) {
305
287
  return `the changes of project "${e.name}"`;
306
288
  }
307
- function E(e) {
289
+ function w(e) {
308
290
  let { call: t } = e;
309
291
  if (t !== void 0) {
310
- if (w.has(t)) return;
311
- w.add(t);
292
+ if (me.has(t)) return;
293
+ me.add(t);
312
294
  }
313
295
  console.error(`[dialecte] a listener of ${e.of} threw; what told it goes on:`, e.thrown);
314
296
  }
315
- function ye(e) {
297
+ function _e(e) {
316
298
  return typeof e == "object" && !!e && typeof e.then == "function";
317
299
  }
318
- var D = {
300
+ var T = {
319
301
  importProgress: "an import's progress",
320
302
  exportProgress: "an export's progress",
321
303
  commitProgress: "a commit's progress",
322
304
  callProgress: "a call's progress",
323
305
  engineChanges: "a project engine's changes"
324
- }, O = Object.freeze({
306
+ }, E = [
307
+ "",
308
+ ".",
309
+ ".."
310
+ ], D = "xel_";
311
+ function ve(e) {
312
+ return `${D}${e}`;
313
+ }
314
+ function ye(e) {
315
+ let { project: t, dialecteId: n } = e;
316
+ (E.includes(t) || n !== void 0 && E.includes(n)) && a("PROJECT_NAME_INVALID", {
317
+ detail: `A project cannot be named ${JSON.stringify(t)}${n === void 0 ? "" : ` in dialecte ${JSON.stringify(n)}`}: neither its name nor its dialecte's id may be empty, \`.\` or \`..\``,
318
+ meta: {
319
+ project: t,
320
+ ...n !== void 0 && { dialecteId: n }
321
+ }
322
+ });
323
+ }
324
+ var O = Object.freeze({
325
325
  start() {},
326
326
  stop() {},
327
327
  count() {},
@@ -936,14 +936,14 @@ function Je(t) {
936
936
  qualifiedName: `xmlns:${h}`,
937
937
  value: l.namespace
938
938
  });
939
- let g = V({
939
+ let ee = V({
940
940
  element: a,
941
941
  namespaceURI: r.uri
942
942
  }) ?? "xsi";
943
943
  I({
944
944
  element: a,
945
945
  namespaceURI: r.uri,
946
- qualifiedName: `${g}:type`,
946
+ qualifiedName: `${ee}:type`,
947
947
  value: `${h}:${l.local}`
948
948
  });
949
949
  }
@@ -1324,13 +1324,13 @@ async function ft(e) {
1324
1324
  }
1325
1325
  async function X(e) {
1326
1326
  let { control: t, documentId: n, recordsWritten: r, totalRecords: i } = e;
1327
- return pt(e), T({
1327
+ return pt(e), he({
1328
1328
  listener: t.onProgress,
1329
1329
  value: {
1330
1330
  recordsWritten: r,
1331
1331
  totalRecords: i
1332
1332
  },
1333
- of: D.exportProgress,
1333
+ of: T.exportProgress,
1334
1334
  call: t
1335
1335
  }), $({
1336
1336
  signal: t.signal,
@@ -1367,4 +1367,4 @@ function ht(e) {
1367
1367
  return `${encodeURIComponent(t)}/${encodeURIComponent(n)}`;
1368
1368
  }
1369
1369
  //#endregion
1370
- export { ce as A, _e as C, re as D, ae as E, p as J, f as K, le as M, g as N, ie as O, m as P, de as S, ne as T, D as _, $ as a, nt as c, be as d, N as f, O as g, A as h, st as i, oe as j, se as k, et as l, j as m, ht as n, rt as o, M as p, $e as s, Qe as u, ve as v, fe as w, ue as x, T as y };
1370
+ export { T as A, ee as B, D, se as F, oe as G, ie as H, pe as I, f as K, ce as L, he as M, _ as P, h as R, ae as U, te as V, re as W, $e as a, Qe as c, M as d, j as f, ye as h, rt as i, ge as j, ve as k, be as l, O as m, st as n, nt as o, A as p, $ as r, et as s, ht as t, N as u, ne as z };
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@dialecte+core@0.8.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js
1
+ //#region node_modules/.pnpm/@dialecte+core@0.9.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js
2
2
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, i, o, s) => {
3
3
  if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
4
  get: ((e) => i[e]).bind(null, d),
@@ -1,5 +1,5 @@
1
- import "./utils-USNkj4sT.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js
1
+ import "./utils-Cv4oHia0.js";
2
+ //#region node_modules/.pnpm/@dialecte+core@0.9.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js
3
3
  function e() {
4
4
  let e = /* @__PURE__ */ new Map();
5
5
  return {