@septkit/ui 0.0.92 → 0.0.94

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 (27) hide show
  1. package/dist/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +41 -25
  2. package/dist/dialecte/create-document-store.js +4 -4
  3. package/dist/explorer/explorer-search.js +2 -1
  4. package/dist/explorer/explorer.js +1 -1
  5. package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +123 -112
  6. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/dialecte-BEbOM6IE.js} +1808 -1564
  7. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/helpers-Bfv2XDC-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/helpers-v10NItuU.js} +82 -82
  8. package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js +6 -0
  9. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/open-connections-ClJo0-Af.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/open-connections-CWORY1A2.js} +2 -2
  10. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/project-key-DD8DyQ8-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/project-key-WGrHzudb.js} +199 -199
  11. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/qname-definition-Cnw9CbiG.js} +8 -8
  12. package/dist/external/.pnpm/{@dialecte_core@0.12.1 → @dialecte_core@0.14.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  13. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/same-json-value-DTtSsGUF.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/same-json-value-Co-vqEAg.js} +66 -66
  14. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js} +2 -2
  15. package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js +2 -0
  16. package/dist/index.d.ts +25 -12
  17. package/dist/tree/collect-expandable-node-ids.js +8 -10
  18. package/dist/tree/flatten-tree.js +25 -24
  19. package/dist/tree/has-children.js +6 -0
  20. package/dist/tree/tree-index.js +21 -23
  21. package/dist/tree/tree.js +1 -1
  22. package/dist/tree/tree.vue_vue_type_script_setup_true_lang.js +37 -38
  23. package/dist/tree/use-tree-virtualization.js +54 -34
  24. package/dist/ui.css +1 -1
  25. package/package.json +3 -3
  26. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +0 -6
  27. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +0 -2
@@ -1,8 +1,8 @@
1
- import { A as e, C as t, tt as n } from "./utils-Q5zsKl3Y.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js
1
+ import { j as e, nt as t, w as n } from "./utils-9L5_yIvs.js";
2
+ //#region node_modules/.pnpm/@dialecte+core@0.14.0/node_modules/@dialecte/core/dist/qname-definition-Cnw9CbiG.js
3
3
  function r(e) {
4
- let { dialecteConfig: n, record: r } = e, i = t({
5
- dialecteConfig: n,
4
+ let { dialecteConfig: t, record: r } = e, i = n({
5
+ dialecteConfig: t,
6
6
  record: r
7
7
  });
8
8
  if (i !== void 0 && i.namespace.uri === r.namespace?.uri) return i;
@@ -11,9 +11,9 @@ function i(e) {
11
11
  let { definition: t, attribute: n } = e, r = t.attributes.details[n.name];
12
12
  if (r !== void 0 && r.namespace?.uri === n.namespace?.uri) return r.type;
13
13
  }
14
- function a(t) {
15
- let { dialecteConfig: a, record: o, lexicalOnly: s } = t;
16
- if (!n({
14
+ function a(n) {
15
+ let { dialecteConfig: a, record: o, lexicalOnly: s } = n;
16
+ if (!t({
17
17
  dialecteConfig: a,
18
18
  tagName: o.tagName
19
19
  })) return o;
@@ -22,7 +22,7 @@ function a(t) {
22
22
  record: o
23
23
  });
24
24
  if (c === void 0) return o;
25
- let l = t.namespaceOf(), u = c.textContent?.type, d = u !== void 0 && o.value !== "" ? e({
25
+ let l = n.namespaceOf(), u = c.textContent?.type, d = u !== void 0 && o.value !== "" ? e({
26
26
  dialecteConfig: a,
27
27
  type: u,
28
28
  value: o.value,
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@dialecte+core@0.12.1/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js
1
+ //#region node_modules/.pnpm/@dialecte+core@0.14.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,8 +1,8 @@
1
- import { $ as e, H as t, O as n, ct as r, f as i, it as a, st as o } from "./utils-Q5zsKl3Y.js";
1
+ import { U as e, at as t, ct as n, et as r, k as i, lt as a, p as o } from "./utils-9L5_yIvs.js";
2
2
  import { n as s, t as c } from "./rolldown-runtime-CYdcPHCu.js";
3
- import { A as l, F as u, H as d, M as f, R as p, V as m, a as h, c as g, f as _, m as v, o as y, p as b, q as x, s as S } from "./project-key-DD8DyQ8-.js";
4
- import { l as C } from "./helpers-Bfv2XDC-.js";
5
- //#region node_modules/.pnpm/@dialecte+core@0.12.1/node_modules/@dialecte/core/dist/same-json-value-DTtSsGUF.js
3
+ import { A as l, F as u, H as d, M as f, R as p, V as m, a as h, c as g, f as _, m as v, o as y, p as b, q as x, s as S } from "./project-key-WGrHzudb.js";
4
+ import { l as C } from "./helpers-v10NItuU.js";
5
+ //#region node_modules/.pnpm/@dialecte+core@0.14.0/node_modules/@dialecte/core/dist/same-json-value-Co-vqEAg.js
6
6
  var w = [
7
7
  "get",
8
8
  "getMany",
@@ -12,14 +12,14 @@ var w = [
12
12
  ];
13
13
  async function T(e) {
14
14
  let { reads: t, read: n, versionOf: r } = e;
15
- i(w.includes(n.member), {
15
+ o(w.includes(n.member), {
16
16
  detail: `"${n.member}" is not a read a version is answered with`,
17
17
  meta: { member: n.member }
18
18
  });
19
- let a = t[n.member].apply(t, n.args), o = r();
19
+ let i = t[n.member].apply(t, n.args), a = r();
20
20
  return {
21
- value: await a,
22
- version: o
21
+ value: await i,
22
+ version: a
23
23
  };
24
24
  }
25
25
  var E = 1e3, D = "start";
@@ -1243,8 +1243,8 @@ function ve(e) {
1243
1243
  };
1244
1244
  }
1245
1245
  function ye(e) {
1246
- let { node: t, state: r, dialecteConfig: i, useCustomRecordsIds: a } = e, s = we(t);
1247
- r.stack.length === 0 && (r.sawRoot && o("PARSE_ERROR", {
1246
+ let { node: t, state: r, dialecteConfig: a, useCustomRecordsIds: o } = e, s = we(t);
1247
+ r.stack.length === 0 && (r.sawRoot && n("PARSE_ERROR", {
1248
1248
  detail: `XML parsing error: a second root element <${t.name}> after the root was closed`,
1249
1249
  meta: {
1250
1250
  reason: "second-root",
@@ -1252,19 +1252,19 @@ function ye(e) {
1252
1252
  }
1253
1253
  }), r.sawRoot = !0), r.defaultNamespace ||= Te({
1254
1254
  element: t,
1255
- defaultNamespace: i.namespaces.default,
1256
- rootElementName: i.rootElementName
1255
+ defaultNamespace: a.namespaces.default,
1256
+ rootElementName: a.rootElementName
1257
1257
  });
1258
1258
  let c = r.defaultNamespace, l = Ee({
1259
1259
  element: t,
1260
1260
  defaultNamespace: c
1261
1261
  }), u = je({
1262
1262
  attributes: t.attributes,
1263
- useCustomRecordsIds: a,
1263
+ useCustomRecordsIds: o,
1264
1264
  tagName: s
1265
1265
  }), d = Me({
1266
1266
  attributes: t.attributes,
1267
- useCustomRecordsIds: a
1267
+ useCustomRecordsIds: o
1268
1268
  });
1269
1269
  Oe({
1270
1270
  attributes: t.attributes,
@@ -1281,8 +1281,8 @@ function ye(e) {
1281
1281
  id: u,
1282
1282
  tagName: s,
1283
1283
  namespace: l,
1284
- attributes: n({
1285
- dialecteConfig: i,
1284
+ attributes: i({
1285
+ dialecteConfig: a,
1286
1286
  attributes: De(d),
1287
1287
  namespaceOf: f
1288
1288
  }),
@@ -1292,11 +1292,11 @@ function ye(e) {
1292
1292
  };
1293
1293
  return r.stack.push(p), f;
1294
1294
  }
1295
- function be(t) {
1296
- let { state: n } = t;
1295
+ function be(e) {
1296
+ let { state: t } = e;
1297
1297
  Y({
1298
- text: e({ text: t.text }),
1299
- state: n
1298
+ text: r({ text: e.text }),
1299
+ state: t
1300
1300
  });
1301
1301
  }
1302
1302
  function Y(e) {
@@ -1316,9 +1316,9 @@ function xe(e) {
1316
1316
  });
1317
1317
  }
1318
1318
  function X(e) {
1319
- let { character: t, where: n } = e;
1320
- o("PARSE_ERROR", {
1321
- detail: `XML parsing error: ${n} holds ${t}, a character XML does not allow (as written or as a character reference)`,
1319
+ let { character: t, where: r } = e;
1320
+ n("PARSE_ERROR", {
1321
+ detail: `XML parsing error: ${r} holds ${t}, a character XML does not allow (as written or as a character reference)`,
1322
1322
  meta: {
1323
1323
  reason: "not-xml-character",
1324
1324
  character: t
@@ -1351,7 +1351,7 @@ function Se(e) {
1351
1351
  }), t.recordsBatch.push(u);
1352
1352
  }
1353
1353
  function Ce(e) {
1354
- o("PARSE_ERROR", {
1354
+ n("PARSE_ERROR", {
1355
1355
  detail: `XML parsing error: ${e.message}`,
1356
1356
  meta: {
1357
1357
  reason: "malformed-xml",
@@ -1364,7 +1364,7 @@ function we(e) {
1364
1364
  }
1365
1365
  function Te(e) {
1366
1366
  let { element: t, defaultNamespace: n, rootElementName: r } = e;
1367
- return i(t.name === r, { detail: `Expected root element <${r}>, got <${t.name}>` }), t.attributes?.xmlns?.value ? {
1367
+ return o(t.name === r, { detail: `Expected root element <${r}>, got <${t.name}>` }), t.attributes?.xmlns?.value ? {
1368
1368
  prefix: "",
1369
1369
  uri: t.attributes.xmlns.value
1370
1370
  } : n;
@@ -1417,18 +1417,18 @@ function Ae(e) {
1417
1417
  tagName: t.tagName
1418
1418
  } : null;
1419
1419
  }
1420
- function je(e) {
1421
- let { attributes: n, useCustomRecordsIds: r, tagName: i } = e, a = n[t];
1420
+ function je(t) {
1421
+ let { attributes: n, useCustomRecordsIds: r, tagName: i } = t, a = n[e];
1422
1422
  if (!r || !a || !a.value) return crypto.randomUUID();
1423
1423
  let o = g({ text: a.value });
1424
1424
  return o && X({
1425
1425
  character: o,
1426
- where: `The attribute ${t} of <${i}>`
1426
+ where: `The attribute ${e} of <${i}>`
1427
1427
  }), a.value;
1428
1428
  }
1429
- function Me(e) {
1430
- let { attributes: n, useCustomRecordsIds: r } = e;
1431
- return r ? Object.values(n).filter((e) => e.name !== t) : Object.values(n);
1429
+ function Me(t) {
1430
+ let { attributes: n, useCustomRecordsIds: r } = t;
1431
+ return r ? Object.values(n).filter((t) => t.name !== e) : Object.values(n);
1432
1432
  }
1433
1433
  async function Z(e, t = {}) {
1434
1434
  let { file: n, perf: r = v } = e, i = e.reporter ? void 0 : J({
@@ -1446,8 +1446,8 @@ async function Z(e, t = {}) {
1446
1446
  }
1447
1447
  }
1448
1448
  async function Ne(e, t) {
1449
- let { documentId: n, configKey: r, store: a, config: o, useCustomRecordsIds: s = !1, chunkOptions: c, hooks: l, perf: u = v, reporter: d } = e, { file: f } = e;
1450
- if (i(z({ extensions: o.io.supportedFileExtensions }).some((e) => f.name.toLowerCase().endsWith(e)), {
1449
+ let { documentId: n, configKey: r, store: i, config: a, useCustomRecordsIds: s = !1, chunkOptions: c, hooks: l, perf: u = v, reporter: d } = e, { file: f } = e;
1450
+ if (o(z({ extensions: a.io.supportedFileExtensions }).some((e) => f.name.toLowerCase().endsWith(e)), {
1451
1451
  key: "ASSERTION_FAILED",
1452
1452
  detail: `Unsupported file type: ${f.name}`
1453
1453
  }), f.size === 0) return {
@@ -1464,7 +1464,7 @@ async function Ne(e, t) {
1464
1464
  documentId: n,
1465
1465
  configKey: r
1466
1466
  }), _ = ve({
1467
- dialecteConfig: o,
1467
+ dialecteConfig: a,
1468
1468
  useCustomRecordsIds: s,
1469
1469
  hooks: l,
1470
1470
  importSession: g,
@@ -1472,7 +1472,7 @@ async function Ne(e, t) {
1472
1472
  }), y = await Pe({
1473
1473
  file: f,
1474
1474
  sax: _,
1475
- store: a,
1475
+ store: i,
1476
1476
  documentId: n,
1477
1477
  chunkSize: m,
1478
1478
  batchSize: h,
@@ -1481,7 +1481,7 @@ async function Ne(e, t) {
1481
1481
  reporter: d
1482
1482
  }), { recordDelta: b, diagnostics: x } = await Fe({
1483
1483
  importSession: g,
1484
- store: a,
1484
+ store: i,
1485
1485
  documentId: n,
1486
1486
  file: f,
1487
1487
  perf: u,
@@ -1661,13 +1661,13 @@ function Re(e) {
1661
1661
  }
1662
1662
  }
1663
1663
  function ze(e) {
1664
- let { diagnostics: t, offset: n } = e;
1664
+ let { diagnostics: t, offset: r } = e;
1665
1665
  try {
1666
1666
  u({ value: t });
1667
1667
  } catch (e) {
1668
- let i = `among the diagnostics ${n}-${n + t.length - 1}`;
1669
- o("STORE_VALUE_NOT_JSON", {
1670
- detail: `A diagnostic of the import session: ${r(e)?.detail ?? String(e)} (${i})`,
1668
+ let i = `among the diagnostics ${r}-${r + t.length - 1}`;
1669
+ n("STORE_VALUE_NOT_JSON", {
1670
+ detail: `A diagnostic of the import session: ${a(e)?.detail ?? String(e)} (${i})`,
1671
1671
  cause: e instanceof Error ? e : void 0
1672
1672
  });
1673
1673
  }
@@ -1681,10 +1681,10 @@ function Q(e) {
1681
1681
  } });
1682
1682
  }
1683
1683
  function $(e) {
1684
- let { signal: t, file: n } = e;
1685
- t?.aborted && o("IMPORT_ABORTED", {
1686
- detail: `The import of "${n.name}" was aborted`,
1687
- meta: { fileName: n.name }
1684
+ let { signal: t, file: r } = e;
1685
+ t?.aborted && n("IMPORT_ABORTED", {
1686
+ detail: `The import of "${r.name}" was aborted`,
1687
+ meta: { fileName: r.name }
1688
1688
  });
1689
1689
  }
1690
1690
  function Be(e, t) {
@@ -1710,18 +1710,18 @@ async function Ve(e) {
1710
1710
  bytesRead: l
1711
1711
  }), u;
1712
1712
  }
1713
- async function He(e, t = {}) {
1714
- let { runtime: n, file: i, options: o, writeId: s } = e, c = e.perf ?? b({
1715
- enabled: n.perf ?? !1,
1713
+ async function He(e, n = {}) {
1714
+ let { runtime: r, file: i, options: o, writeId: s } = e, c = e.perf ?? b({
1715
+ enabled: r.perf ?? !1,
1716
1716
  timeline: !1
1717
1717
  });
1718
1718
  $({
1719
- signal: t.signal,
1719
+ signal: n.signal,
1720
1720
  file: i
1721
1721
  });
1722
1722
  let { configKey: l, config: u } = _({
1723
- configs: n.configs,
1724
- defaultConfigKey: n.defaultConfigKey,
1723
+ configs: r.configs,
1724
+ defaultConfigKey: r.defaultConfigKey,
1725
1725
  configKey: o?.configKey
1726
1726
  }), d = {
1727
1727
  id: crypto.randomUUID(),
@@ -1738,7 +1738,7 @@ async function He(e, t = {}) {
1738
1738
  ...o?.path !== void 0 && { path: o.path }
1739
1739
  }, f = J({
1740
1740
  totalBytes: i.size,
1741
- listener: t.onProgress,
1741
+ listener: n.onProgress,
1742
1742
  perf: c
1743
1743
  });
1744
1744
  c.start("import");
@@ -1746,14 +1746,14 @@ async function He(e, t = {}) {
1746
1746
  try {
1747
1747
  p = await We({
1748
1748
  ...e,
1749
- control: t,
1749
+ control: n,
1750
1750
  registered: d,
1751
1751
  config: u,
1752
1752
  perf: c,
1753
1753
  reporter: f
1754
1754
  });
1755
1755
  } catch (e) {
1756
- throw r(e) ? e : a("IMPORT_FAILED", {
1756
+ throw a(e) ? e : t("IMPORT_FAILED", {
1757
1757
  detail: e instanceof Error ? e.message : String(e),
1758
1758
  cause: e instanceof Error ? e : void 0
1759
1759
  });
@@ -1762,7 +1762,7 @@ async function He(e, t = {}) {
1762
1762
  }
1763
1763
  return {
1764
1764
  ...p,
1765
- ...n.perf && { perf: c.snapshot() }
1765
+ ...r.perf && { perf: c.snapshot() }
1766
1766
  };
1767
1767
  }
1768
1768
  function Ue(e) {
@@ -1776,7 +1776,7 @@ function Ue(e) {
1776
1776
  });
1777
1777
  }
1778
1778
  async function We(e) {
1779
- let { store: t, runtime: n, file: r, options: i, control: a, registered: s, config: c, perf: l, reporter: u } = e;
1779
+ let { store: t, runtime: r, file: i, options: a, control: o, registered: s, config: c, perf: l, reporter: u } = e;
1780
1780
  l.start("import::register");
1781
1781
  try {
1782
1782
  await t.registerDocument(s);
@@ -1785,24 +1785,24 @@ async function We(e) {
1785
1785
  }
1786
1786
  try {
1787
1787
  let e = await Z({
1788
- file: r,
1788
+ file: i,
1789
1789
  documentId: s.id,
1790
1790
  configKey: s.configKey,
1791
1791
  store: t,
1792
1792
  config: c,
1793
- useCustomRecordsIds: i?.useCustomRecordsIds,
1794
- chunkOptions: i?.chunkOptions,
1795
- hooks: n.hooks,
1793
+ useCustomRecordsIds: a?.useCustomRecordsIds,
1794
+ chunkOptions: a?.chunkOptions,
1795
+ hooks: r.hooks,
1796
1796
  perf: l,
1797
1797
  reporter: u
1798
- }, a);
1798
+ }, o);
1799
1799
  $({
1800
- signal: a.signal,
1801
- file: r
1800
+ signal: o.signal,
1801
+ file: i
1802
1802
  }), u.tell({ phase: "finishing" }), l.start("import::finalize");
1803
1803
  try {
1804
- await t.getDocument(s.id) || o("DOCUMENT_NOT_REGISTERED", {
1805
- detail: `Document "${s.id}" of "${r.name}" was removed while it imported`,
1804
+ await t.getDocument(s.id) || n("DOCUMENT_NOT_REGISTERED", {
1805
+ detail: `Document "${s.id}" of "${i.name}" was removed while it imported`,
1806
1806
  meta: { documentId: s.id }
1807
1807
  }), await t.markReady(s.id);
1808
1808
  } finally {
@@ -1834,8 +1834,8 @@ var Ke = {
1834
1834
  export: "ASSERTION_FAILED"
1835
1835
  };
1836
1836
  function qe(e) {
1837
- let { runtime: t, storeName: n, operation: r } = e;
1838
- return t || o(Ke[r], { detail: `Store "${n}" has no dialecte to ${r} with: build it with a runtime` }), t;
1837
+ let { runtime: t, storeName: r, operation: i } = e;
1838
+ return t || n(Ke[i], { detail: `Store "${r}" has no dialecte to ${i} with: build it with a runtime` }), t;
1839
1839
  }
1840
1840
  function Je(e, t) {
1841
1841
  return e.id < t.id ? -1 : +(e.id > t.id);
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@dialecte+core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js
1
+ //#region node_modules/.pnpm/@dialecte+core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js
2
2
  var e = "https://dialecte.github.io/core", t = /* @__PURE__ */ new Set([
3
3
  "throwDialecteError",
4
4
  "createDialecteError",
@@ -2446,4 +2446,4 @@ function $t(e) {
2446
2446
  });
2447
2447
  }
2448
2448
  //#endregion
2449
- export { re as $, Ct as A, Xe as B, $ as C, Dt as D, Q as E, _e as H, J as I, w as J, ye as K, wt as M, St as N, kt as O, Y as P, x as Q, tt as R, jt as S, Ot as T, he as U, R as V, ge as W, C as X, ve as Y, S as Z, Vt as _, Xt as a, Bt as b, Jt as c, a as ct, Kt as d, h as et, Ut as f, Ht as h, i as it, Tt as j, Wt as l, n as lt, f as nt, qt as o, u as rt, Yt as s, r as st, d as tt, Gt as u, e as ut, zt as v, At as x, Ze as z };
2449
+ export { x as $, Ze as B, jt as C, Q as D, Ot as E, Y as F, ge as G, R as H, J as L, Tt as M, wt as N, Dt as O, St as P, S as Q, At as S, _e as U, Xe as V, he as W, ve as X, w as Y, C as Z, i as at, Yt as c, r as ct, Gt as d, e as dt, re as et, Kt as f, Ht as g, u as it, Ct as j, kt as k, Jt as l, a as lt, d as nt, Xt as o, Ut as p, ye as q, f as rt, qt as s, h as tt, Wt as u, n as ut, Vt as v, $ as w, Bt as x, zt as y, tt as z };
@@ -0,0 +1,2 @@
1
+ import { p as e } from "./utils-9L5_yIvs.js";
2
+ export { e as invariant };
package/dist/index.d.ts CHANGED
@@ -48,9 +48,9 @@ maxSize: number;
48
48
 
49
49
  declare const __VLS_component_11: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
50
50
 
51
- declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
51
+ declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
52
52
  "update:open": (value: boolean) => any;
53
- }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
53
+ }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
54
54
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
55
55
  }>, {
56
56
  hoverDelay: number;
@@ -59,11 +59,11 @@ hoverDelay: number;
59
59
  declare const __VLS_component_13: DefineComponent<__VLS_Props_26, {
60
60
  focus: () => void | undefined;
61
61
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
62
- toggle: (groupId: string) => any;
63
62
  keydown: (event: KeyboardEvent) => any;
63
+ toggle: (groupId: string) => any;
64
64
  }, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
65
- onToggle?: ((groupId: string) => any) | undefined;
66
65
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
66
+ onToggle?: ((groupId: string) => any) | undefined;
67
67
  }>, {
68
68
  expanded: boolean;
69
69
  testId: string;
@@ -316,23 +316,26 @@ expanded: ExplorerExpandedState;
316
316
  root: {} | null;
317
317
  }, any>;
318
318
 
319
- declare const __VLS_component_7: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
319
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
320
320
  select: (node: ExplorerNode) => any;
321
321
  contextmenu: (payload: {
322
322
  node: ExplorerNode;
323
323
  event: MouseEvent;
324
324
  }) => any;
325
325
  "update:expanded": (state: ExplorerExpandedState) => any;
326
- }, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
326
+ "update:term": (value: string) => any;
327
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
327
328
  onSelect?: ((node: ExplorerNode) => any) | undefined;
328
329
  onContextmenu?: ((payload: {
329
330
  node: ExplorerNode;
330
331
  event: MouseEvent;
331
332
  }) => any) | undefined;
332
333
  "onUpdate:expanded"?: ((state: ExplorerExpandedState) => any) | undefined;
334
+ "onUpdate:term"?: ((value: string) => any) | undefined;
333
335
  }>, {
334
336
  ariaLabel: string;
335
337
  expanded: ExplorerExpandedState;
338
+ searchLoading: boolean;
336
339
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
337
340
 
338
341
  declare const __VLS_component_8: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -355,10 +358,10 @@ path: string;
355
358
  }) => any) | undefined;
356
359
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
357
360
 
358
- declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
361
+ declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
359
362
  "update:modelValue": (value: string) => any;
360
363
  "update:invalid": (value: boolean) => any;
361
- }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
364
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
362
365
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
363
366
  "onUpdate:invalid"?: ((value: boolean) => any) | undefined;
364
367
  }>, {
@@ -406,6 +409,8 @@ declare type __VLS_Props_12 = {
406
409
  selected?: string;
407
410
  /** What a row is called for assistive technology, when the text drawn in it says less or more. */
408
411
  rowLabel?: (node: ExplorerNode) => string | undefined;
412
+ /** The consumer is still loading the rows to search: the matches shown so far are not all of them. */
413
+ searchLoading?: boolean;
409
414
  };
410
415
 
411
416
  declare type __VLS_Props_13 = {
@@ -655,15 +660,19 @@ declare type __VLS_PublicProps_3 = {
655
660
  } & __VLS_Props_5;
656
661
 
657
662
  declare type __VLS_PublicProps_4 = {
663
+ 'term'?: string;
664
+ } & __VLS_Props_12;
665
+
666
+ declare type __VLS_PublicProps_5 = {
658
667
  modelValue: NoteCategory[];
659
668
  };
660
669
 
661
- declare type __VLS_PublicProps_5 = {
670
+ declare type __VLS_PublicProps_6 = {
662
671
  modelValue?: string;
663
672
  'invalid'?: boolean;
664
673
  } & __VLS_Props_19;
665
674
 
666
- declare type __VLS_PublicProps_6 = {
675
+ declare type __VLS_PublicProps_7 = {
667
676
  'open'?: boolean;
668
677
  } & __VLS_Props_22;
669
678
 
@@ -1351,6 +1360,8 @@ export declare type ContextMenuAction = {
1351
1360
  action: ActionFn;
1352
1361
  type: 'action';
1353
1362
  autoClose?: boolean;
1363
+ /** Shown greyed and marked disabled; a click runs nothing and keeps the menu open. */
1364
+ disabled?: boolean;
1354
1365
  };
1355
1366
 
1356
1367
  export declare type ContextMenuItem = ContextMenuAction | ContextMenuParent;
@@ -1561,6 +1572,8 @@ export declare type ExplorerNode = {
1561
1572
  name: string;
1562
1573
  selectable?: boolean;
1563
1574
  children?: ExplorerNode[];
1575
+ /** Has children not loaded yet: drawn as a branch the user can open. */
1576
+ hasChildren?: boolean;
1564
1577
  };
1565
1578
 
1566
1579
  /** Map of named extension modules. */
@@ -2044,9 +2057,9 @@ export declare const NOTE_STATUSES: readonly ["open", "resolved", "removed"];
2044
2057
 
2045
2058
  export declare type NoteCategory = (typeof NOTE_CATEGORIES)[number];
2046
2059
 
2047
- export declare const NoteCategoryPicker: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2060
+ export declare const NoteCategoryPicker: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2048
2061
  "update:modelValue": (value: ("feedback" | "instantiation" | "interlock")[]) => any;
2049
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
2062
+ }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
2050
2063
  "onUpdate:modelValue"?: ((value: ("feedback" | "instantiation" | "interlock")[]) => any) | undefined;
2051
2064
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
2052
2065
 
@@ -1,14 +1,12 @@
1
+ import { hasChildren as e } from "./has-children.js";
1
2
  //#region lib/tree/collect-expandable-node-ids.ts
2
- function e(e) {
3
- let t = [], n = [...e].reverse();
4
- for (; n.length;) {
5
- let e = n.pop();
6
- if (e.children?.length) {
7
- t.push(e.id);
8
- for (let t = e.children.length - 1; t >= 0; t--) n.push(e.children[t]);
9
- }
3
+ function t(t) {
4
+ let n = [], r = [...t].reverse();
5
+ for (; r.length;) {
6
+ let t = r.pop();
7
+ if (e(t) && (n.push(t.id), t.children)) for (let e = t.children.length - 1; e >= 0; e--) r.push(t.children[e]);
10
8
  }
11
- return t;
9
+ return n;
12
10
  }
13
11
  //#endregion
14
- export { e as collectExpandableNodeIds };
12
+ export { t as collectExpandableNodeIds };
@@ -1,36 +1,37 @@
1
+ import { hasChildren as e } from "./has-children.js";
1
2
  //#region lib/tree/flatten-tree.ts
2
- function e(e, t) {
3
- let n = [], r = [{
4
- nodes: e,
3
+ function t(t, n) {
4
+ let r = [], i = [{
5
+ nodes: t,
5
6
  index: 0,
6
7
  depth: 1,
7
8
  parentIndex: void 0
8
9
  }];
9
- for (; r.length;) {
10
- let e = r[r.length - 1];
11
- if (e.index >= e.nodes.length) {
12
- r.pop();
10
+ for (; i.length;) {
11
+ let t = i[i.length - 1];
12
+ if (t.index >= t.nodes.length) {
13
+ i.pop();
13
14
  continue;
14
15
  }
15
- let i = e.nodes[e.index++], a = n.length, o = !!i.children?.length, s = o && t.has(i.id);
16
- n.push({
17
- id: i.id,
18
- index: a,
19
- node: i,
20
- depth: e.depth,
21
- posInSet: e.index,
22
- setSize: e.nodes.length,
23
- parentIndex: e.parentIndex,
24
- hasChildren: o,
25
- expanded: s
26
- }), s && r.push({
27
- nodes: i.children,
16
+ let a = t.nodes[t.index++], o = r.length, s = e(a), c = s && n.has(a.id);
17
+ r.push({
18
+ id: a.id,
19
+ index: o,
20
+ node: a,
21
+ depth: t.depth,
22
+ posInSet: t.index,
23
+ setSize: t.nodes.length,
24
+ parentIndex: t.parentIndex,
25
+ hasChildren: s,
26
+ expanded: c
27
+ }), c && a.children?.length && i.push({
28
+ nodes: a.children,
28
29
  index: 0,
29
- depth: e.depth + 1,
30
- parentIndex: a
30
+ depth: t.depth + 1,
31
+ parentIndex: o
31
32
  });
32
33
  }
33
- return n;
34
+ return r;
34
35
  }
35
36
  //#endregion
36
- export { e as flattenTree };
37
+ export { t as flattenTree };
@@ -0,0 +1,6 @@
1
+ //#region lib/tree/has-children.ts
2
+ function e(e) {
3
+ return !!e.children?.length || e.hasChildren === !0;
4
+ }
5
+ //#endregion
6
+ export { e as hasChildren };