@septkit/ui 0.0.65 → 0.0.67

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.
@@ -1,38 +1,56 @@
1
- import { useDebounceFn as e } from "../../external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
- import { useAsyncState as t } from "../../external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
3
- import { useDialecteChannel as n } from "./use-dialecte-channel.js";
4
- import { computed as r, toValue as i, watch as a } from "vue";
1
+ import { tryOnScopeDispose as e, useDebounceFn as t } from "../../external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
+ import { useAsyncState as n } from "../../external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
3
+ import { useDialecteChannel as r } from "./use-dialecte-channel.js";
4
+ import { computed as i, toValue as a, watch as o } from "vue";
5
5
  //#region lib/dialecte/composables/use-live-data.ts
6
- function o(o) {
7
- let { document: s, fetcher: c, initial: l } = o, { state: u, isLoading: d, error: f, execute: p } = t(c, l, { immediate: !1 }), m = e(p, 50), h = r(() => i(s)), { data: g } = n(r(() => h.value?.channelName));
8
- return a(g, (e) => {
9
- e?.type === "commit" && e.documentId === h.value?.documentId && m();
10
- }), a(() => h.value?.documentId, (e) => {
11
- u.value = l, e && m();
6
+ function s(e) {
7
+ let { document: t, fetcher: n, initial: s } = e, { state: c, isLoading: u, error: d, execute: f, refresh: p } = l(n, s), m = i(() => a(t)), { data: h } = r(i(() => m.value?.channelName));
8
+ return o(h, (e) => {
9
+ e?.type === "commit" && e.documentId === m.value?.documentId && p();
10
+ }), o(() => m.value?.documentId, (e) => {
11
+ c.value = s, e && p();
12
12
  }, { immediate: !0 }), {
13
- state: u,
14
- isLoading: d,
15
- error: f,
16
- refresh: p
13
+ state: c,
14
+ isLoading: u,
15
+ error: d,
16
+ refresh: f
17
17
  };
18
18
  }
19
- function s(o) {
20
- let { project: s, fetcher: c, initial: l } = o, { state: u, isLoading: d, error: f, execute: p } = t(c, l, { immediate: !1 }), m = e(p, 50), h = r(() => i(s)?.channelName), { data: g } = n(h);
21
- return a(g, (e) => {
19
+ function c(e) {
20
+ let { project: t, fetcher: n, initial: s } = e, { state: c, isLoading: u, error: d, execute: f, refresh: p } = l(n, s), m = i(() => a(t)?.channelName), { data: h } = r(m);
21
+ return o(h, (e) => {
22
22
  switch (e?.type) {
23
23
  case "commit":
24
24
  case "init-empty-document":
25
25
  case "document-removed":
26
- case "document-imported": m();
26
+ case "document-imported": p();
27
27
  }
28
- }), a(h, (e) => {
29
- u.value = l, e && m();
28
+ }), o(m, (e) => {
29
+ c.value = s, e && p();
30
30
  }, { immediate: !0 }), {
31
- state: u,
32
- isLoading: d,
33
- error: f,
34
- refresh: p
31
+ state: c,
32
+ isLoading: u,
33
+ error: d,
34
+ refresh: f
35
+ };
36
+ }
37
+ function l(r, i) {
38
+ let a = !1;
39
+ e(() => {
40
+ a = !0;
41
+ });
42
+ let o = n(r, i, {
43
+ immediate: !1,
44
+ onError: (e) => {
45
+ a || globalThis.reportError?.(e);
46
+ }
47
+ }), s = t(async () => {
48
+ a || await o.execute();
49
+ }, 50);
50
+ return {
51
+ ...o,
52
+ refresh: s
35
53
  };
36
54
  }
37
55
  //#endregion
38
- export { o as useLiveData, s as useProjectLiveData };
56
+ export { s as useLiveData, c as useProjectLiveData };
package/dist/index.d.ts CHANGED
@@ -224,19 +224,19 @@ ariaLabel: string;
224
224
  expanded: ExplorerExpandedState;
225
225
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
226
226
 
227
- declare const __VLS_component_7: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {
227
+ declare const __VLS_component_7: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {
228
228
  direction: "horizontal" | "vertical";
229
229
  defaultSize: number;
230
230
  maxSize: number;
231
231
  minSize: number;
232
232
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
233
233
 
234
- declare const __VLS_component_8: DefineComponent<__VLS_Props_21, {
234
+ declare const __VLS_component_8: DefineComponent<__VLS_Props_23, {
235
235
  focus: () => void | undefined;
236
236
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
237
237
  toggle: (groupId: string) => any;
238
238
  keydown: (event: KeyboardEvent) => any;
239
- }, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{
239
+ }, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
240
240
  onToggle?: ((groupId: string) => any) | undefined;
241
241
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
242
242
  }>, {
@@ -261,6 +261,13 @@ declare type __VLS_Props = {
261
261
  };
262
262
 
263
263
  declare type __VLS_Props_10 = {
264
+ sources: LibraryBrowserSource[];
265
+ extensions: string[];
266
+ /** localStorage key for persisting expand state; omit to disable persistence. */
267
+ storageKey?: string;
268
+ };
269
+
270
+ declare type __VLS_Props_11 = {
264
271
  /** Code to render. */
265
272
  code?: string;
266
273
  /** Shiki language id. Defaults to `xml`. */
@@ -272,7 +279,7 @@ declare type __VLS_Props_10 = {
272
279
  wrap?: boolean;
273
280
  };
274
281
 
275
- declare type __VLS_Props_11 = {
282
+ declare type __VLS_Props_12 = {
276
283
  /** Baseline XML. Omit (or empty) for a purely-added element. */
277
284
  before?: string;
278
285
  /** Resulting XML. */
@@ -280,12 +287,16 @@ declare type __VLS_Props_11 = {
280
287
  loading?: boolean;
281
288
  };
282
289
 
283
- declare type __VLS_Props_12 = {
290
+ declare type __VLS_Props_13 = {
291
+ category: NoteCategory;
292
+ };
293
+
294
+ declare type __VLS_Props_14 = {
284
295
  size?: 'xs' | 'sm' | 'md';
285
296
  disabled?: boolean;
286
297
  };
287
298
 
288
- declare type __VLS_Props_13 = {
299
+ declare type __VLS_Props_15 = {
289
300
  detail: ElementDetailVM | undefined;
290
301
  /** Consumer-supplied fixed prefix/suffix per attribute; the user edits only the core. */
291
302
  affixMask?: AffixMaskResolver;
@@ -293,13 +304,13 @@ declare type __VLS_Props_13 = {
293
304
  disabled?: boolean;
294
305
  };
295
306
 
296
- declare type __VLS_Props_14 = MergeSessionParams & {
307
+ declare type __VLS_Props_16 = MergeSessionParams & {
297
308
  source?: FileMeta;
298
309
  target?: FileMeta;
299
310
  affixMask?: AffixMaskResolver;
300
311
  };
301
312
 
302
- declare type __VLS_Props_15 = {
313
+ declare type __VLS_Props_17 = {
303
314
  items: ExplorerNode[];
304
315
  /** Per-node metadata keyed by node id (change, role, groupId, path). */
305
316
  meta: Record<string, MergeNodeMeta>;
@@ -309,38 +320,18 @@ declare type __VLS_Props_15 = {
309
320
  expandedItems?: string[];
310
321
  };
311
322
 
312
- declare type __VLS_Props_16 = {
323
+ declare type __VLS_Props_18 = {
313
324
  size?: 'xs' | 'sm' | 'md';
314
325
  disabled?: boolean;
315
326
  /** Render the segmented control only, without the leading label. */
316
327
  hideLabel?: boolean;
317
328
  };
318
329
 
319
- declare type __VLS_Props_17 = {
330
+ declare type __VLS_Props_19 = {
320
331
  columnId: string;
321
332
  title: string;
322
333
  };
323
334
 
324
- declare type __VLS_Props_18 = {
325
- x: number;
326
- y: number;
327
- visible: boolean;
328
- items: ContextMenuItem[];
329
- };
330
-
331
- declare type __VLS_Props_19 = {
332
- /** Unique key: drives the splitter group's auto-save-id and both panel ids. */
333
- persistenceKey: string;
334
- showSidebar: boolean;
335
- direction?: 'horizontal' | 'vertical';
336
- /** Default size of the sidebar panel, in percent. */
337
- defaultSize?: number;
338
- /** Minimum size of the sidebar panel, in percent. */
339
- minSize?: number;
340
- /** Maximum size of the sidebar panel, in percent. */
341
- maxSize?: number;
342
- };
343
-
344
335
  declare type __VLS_Props_2 = {
345
336
  /** Trigger color */
346
337
  color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
@@ -360,6 +351,26 @@ declare type __VLS_Props_2 = {
360
351
  };
361
352
 
362
353
  declare type __VLS_Props_20 = {
354
+ x: number;
355
+ y: number;
356
+ visible: boolean;
357
+ items: ContextMenuItem[];
358
+ };
359
+
360
+ declare type __VLS_Props_21 = {
361
+ /** Unique key: drives the splitter group's auto-save-id and both panel ids. */
362
+ persistenceKey: string;
363
+ showSidebar: boolean;
364
+ direction?: 'horizontal' | 'vertical';
365
+ /** Default size of the sidebar panel, in percent. */
366
+ defaultSize?: number;
367
+ /** Minimum size of the sidebar panel, in percent. */
368
+ minSize?: number;
369
+ /** Maximum size of the sidebar panel, in percent. */
370
+ maxSize?: number;
371
+ };
372
+
373
+ declare type __VLS_Props_22 = {
363
374
  nodeId: string;
364
375
  tagName: string;
365
376
  label: string;
@@ -376,7 +387,7 @@ declare type __VLS_Props_20 = {
376
387
  treeMeta?: TreeItemMeta;
377
388
  };
378
389
 
379
- declare type __VLS_Props_21 = {
390
+ declare type __VLS_Props_23 = {
380
391
  groupId: string;
381
392
  tagName: string;
382
393
  label: string;
@@ -470,12 +481,16 @@ declare type __VLS_PublicProps_2 = {
470
481
  } & __VLS_Props_4;
471
482
 
472
483
  declare type __VLS_PublicProps_3 = {
473
- modelValue: DecisionAction;
474
- } & __VLS_Props_12;
484
+ modelValue: NoteCategory[];
485
+ };
475
486
 
476
487
  declare type __VLS_PublicProps_4 = {
488
+ modelValue: DecisionAction;
489
+ } & __VLS_Props_14;
490
+
491
+ declare type __VLS_PublicProps_5 = {
477
492
  modelValue: KeepNameTypesFrom;
478
- } & __VLS_Props_16;
493
+ } & __VLS_Props_18;
479
494
 
480
495
  declare function __VLS_template(): {
481
496
  attrs: Partial<{}>;
@@ -865,7 +880,7 @@ export declare type ChangeStatus = 'added' | 'removed' | 'modified' | 'unchanged
865
880
 
866
881
  declare function closeDropdown(): void;
867
882
 
868
- export declare const CodeBlock: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
883
+ export declare const CodeBlock: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
869
884
 
870
885
  /**
871
886
  * Collects the ids of every node that has children, for binding to
@@ -934,9 +949,9 @@ export declare type Connection = {
934
949
  target: string;
935
950
  };
936
951
 
937
- export declare const ContextMenu: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
952
+ export declare const ContextMenu: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
938
953
  close: () => any;
939
- }, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
954
+ }, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{
940
955
  onClose?: (() => any) | undefined;
941
956
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
942
957
 
@@ -994,9 +1009,9 @@ export declare function createElkLayoutEngine(defaults?: LayoutOptions): LayoutE
994
1009
  /** A user's binary choice on a decision group. */
995
1010
  export declare type DecisionAction = 'accept' | 'skip';
996
1011
 
997
- export declare const DecisionToggle: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1012
+ export declare const DecisionToggle: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
998
1013
  "update:modelValue": (value: DecisionAction) => any;
999
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
1014
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
1000
1015
  "onUpdate:modelValue"?: ((value: DecisionAction) => any) | undefined;
1001
1016
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1002
1017
 
@@ -1036,14 +1051,14 @@ export declare type DiagramLayoutOptions<TRecord extends LayoutTreeRecord, TNode
1036
1051
  toEdge: (context: EdgeMapperContext) => TEdge;
1037
1052
  };
1038
1053
 
1039
- export declare const DiagramNodeCard: DefineComponent<__VLS_Props_20, {
1054
+ export declare const DiagramNodeCard: DefineComponent<__VLS_Props_22, {
1040
1055
  focus: () => void | undefined;
1041
1056
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1042
1057
  select: (nodeId: string) => any;
1043
1058
  "toggle-expand": (nodeId: string) => any;
1044
1059
  keydown: (event: KeyboardEvent) => any;
1045
1060
  "show-details": (nodeId: string) => any;
1046
- }, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{
1061
+ }, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{
1047
1062
  onSelect?: ((nodeId: string) => any) | undefined;
1048
1063
  "onToggle-expand"?: ((nodeId: string) => any) | undefined;
1049
1064
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
@@ -1157,9 +1172,9 @@ export declare interface ElementColor {
1157
1172
  background: string;
1158
1173
  }
1159
1174
 
1160
- export declare const ElementDetail: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1175
+ export declare const ElementDetail: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1161
1176
  edit: (attr: string, value: string) => any;
1162
- }, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
1177
+ }, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{
1163
1178
  onEdit?: ((attr: string, value: string) => any) | undefined;
1164
1179
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1165
1180
 
@@ -1234,7 +1249,7 @@ export declare type FileMeta = {
1234
1249
  revision: string;
1235
1250
  };
1236
1251
 
1237
- export declare const FilterableColumnHeader: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1252
+ export declare const FilterableColumnHeader: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1238
1253
  funnelRef: HTMLButtonElement;
1239
1254
  popoverWrapperRef: HTMLDivElement;
1240
1255
  }, HTMLDivElement>;
@@ -1456,6 +1471,39 @@ export declare type LayoutTreeRelation = {
1456
1471
  tagName: string;
1457
1472
  };
1458
1473
 
1474
+ export declare const LibraryBrowser: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1475
+ select: (payload: {
1476
+ sourceId: string;
1477
+ path: string;
1478
+ }) => any;
1479
+ }, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
1480
+ onSelect?: ((payload: {
1481
+ sourceId: string;
1482
+ path: string;
1483
+ }) => any) | undefined;
1484
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1485
+
1486
+ export declare type LibraryBrowserEntry = {
1487
+ path: string;
1488
+ kind: 'file' | 'directory';
1489
+ };
1490
+
1491
+ export declare type LibraryBrowserNode = {
1492
+ path: string;
1493
+ name: string;
1494
+ kind: 'file' | 'directory';
1495
+ children: LibraryBrowserNode[];
1496
+ /** File: whether its extension matches the configured set. Directory: whether any descendant file matches. */
1497
+ matchesExtension: boolean;
1498
+ };
1499
+
1500
+ export declare type LibraryBrowserSource = {
1501
+ id: string;
1502
+ label: string;
1503
+ status: 'online' | 'offline';
1504
+ entries: LibraryBrowserEntry[];
1505
+ };
1506
+
1459
1507
  export declare type LineStatus = 'added' | 'removed' | 'unchanged';
1460
1508
 
1461
1509
  /**
@@ -1508,10 +1556,10 @@ export declare type MergeNodeMeta = {
1508
1556
  };
1509
1557
  };
1510
1558
 
1511
- export declare const MergeReview: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1559
+ export declare const MergeReview: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1512
1560
  close: () => any;
1513
1561
  applied: () => any;
1514
- }, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
1562
+ }, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{
1515
1563
  onClose?: (() => any) | undefined;
1516
1564
  onApplied?: (() => any) | undefined;
1517
1565
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1531,10 +1579,10 @@ export declare type MergeSessionParams = {
1531
1579
  afterApply?: AfterApply;
1532
1580
  };
1533
1581
 
1534
- export declare const MergeTree: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1582
+ export declare const MergeTree: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1535
1583
  select: (node: ExplorerNode) => any;
1536
1584
  "update:decision": (groupId: string, action: DecisionAction) => any;
1537
- }, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{
1585
+ }, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{
1538
1586
  onSelect?: ((node: ExplorerNode) => any) | undefined;
1539
1587
  "onUpdate:decision"?: ((groupId: string, action: DecisionAction) => any) | undefined;
1540
1588
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -1575,6 +1623,42 @@ export declare type NodeMapperContext<TRecord extends LayoutTreeRecord> = {
1575
1623
  position: LayoutPoint;
1576
1624
  };
1577
1625
 
1626
+ export declare const NOTE_CATEGORIES: readonly ["feedback", "instantiation", "interlock"];
1627
+
1628
+ export declare const NOTE_CATEGORY_LABELS: Record<NoteCategory, string>;
1629
+
1630
+ export declare const NOTE_STATUSES: readonly ["open", "resolved", "removed"];
1631
+
1632
+ export declare type NoteCategory = (typeof NOTE_CATEGORIES)[number];
1633
+
1634
+ export declare const NoteCategoryPicker: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1635
+ "update:modelValue": (value: ("feedback" | "instantiation" | "interlock")[]) => any;
1636
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
1637
+ "onUpdate:modelValue"?: ((value: ("feedback" | "instantiation" | "interlock")[]) => any) | undefined;
1638
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
1639
+
1640
+ export declare const NoteCategoryTag: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
1641
+
1642
+ /** @ref=elia:note-json-format - stored contract in doc/note-format.md */
1643
+ export declare interface NoteData {
1644
+ user: string;
1645
+ created: string;
1646
+ lastModified: string;
1647
+ status: NoteStatus;
1648
+ text: string;
1649
+ categories: NoteCategory[];
1650
+ /** `tags` values SET does not know (other tools, newer SET builds); written back unchanged. */
1651
+ otherTags: string[];
1652
+ }
1653
+
1654
+ export declare type NoteStatus = (typeof NOTE_STATUSES)[number];
1655
+
1656
+ /**
1657
+ * Parse note data from the JSON value of a `<Text>` element.
1658
+ * Returns undefined if the value is not a valid note JSON.
1659
+ */
1660
+ export declare function parseNoteData(value: string | undefined): NoteData | undefined;
1661
+
1578
1662
  /** Presentation progress: a held monotonic fraction in `[0, 1]` and its caption. */
1579
1663
  export declare type ProgressDisplay = {
1580
1664
  fraction: number;
@@ -1626,6 +1710,8 @@ export declare interface RowSortHeaderModel {
1626
1710
 
1627
1711
  export declare const SclExplorer: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1628
1712
 
1713
+ export declare function serializeNoteData({ categories, otherTags, ...rest }: NoteData): string;
1714
+
1629
1715
  export declare type SortDirection = 'asc' | 'desc';
1630
1716
 
1631
1717
  export declare const SplitLayout: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
@@ -1656,9 +1742,9 @@ export declare type TreeItemMeta = {
1656
1742
  posinset?: number;
1657
1743
  };
1658
1744
 
1659
- export declare const TypeNameAuthority: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1745
+ export declare const TypeNameAuthority: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1660
1746
  "update:modelValue": (value: KeepNameTypesFrom) => any;
1661
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
1747
+ }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
1662
1748
  "onUpdate:modelValue"?: ((value: KeepNameTypesFrom) => any) | undefined;
1663
1749
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1664
1750
 
@@ -1888,6 +1974,6 @@ export declare type VisibilityOptions = {
1888
1974
  defaultOpenDepth: number;
1889
1975
  };
1890
1976
 
1891
- export declare const XmlDiff: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1977
+ export declare const XmlDiff: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1892
1978
 
1893
1979
  export { }
package/dist/index.js CHANGED
@@ -23,36 +23,42 @@ import { ELEMENT_TO_ICON as S } from "./icons/element-icon-mapper.js";
23
23
  import { collectExpandableNodeIds as C } from "./explorer/collect-expandable-node-ids.js";
24
24
  import w from "./explorer/explorer.js";
25
25
  import "./explorer/index.js";
26
- import { highlightCode as T } from "./code/highlight.js";
27
- import E from "./code/code-block.js";
28
- import { diffLines as D } from "./code/diff.js";
29
- import O from "./code/xml-diff.js";
26
+ import T from "./library-browser/library-browser.js";
27
+ import "./library-browser/index.js";
28
+ import { highlightCode as E } from "./code/highlight.js";
29
+ import D from "./code/code-block.js";
30
+ import { diffLines as O } from "./code/diff.js";
31
+ import k from "./code/xml-diff.js";
30
32
  import "./code/index.js";
31
- import k from "./merge/decision-toggle.js";
32
- import A from "./merge/element-detail.js";
33
- import j from "./merge/merge-tree.js";
34
- import M from "./merge/type-name-authority.js";
35
- import { useMergeSession as N } from "./merge/use-merge-session.js";
36
- import P from "./merge/merge-review.js";
33
+ import { NOTE_CATEGORIES as A, NOTE_CATEGORY_LABELS as j, NOTE_STATUSES as M, parseNoteData as N, serializeNoteData as P } from "./notes/note-data.js";
34
+ import F from "./notes/note-category-tag.js";
35
+ import I from "./notes/note-category-picker.js";
36
+ import "./notes/index.js";
37
+ import L from "./merge/decision-toggle.js";
38
+ import R from "./merge/element-detail.js";
39
+ import z from "./merge/merge-tree.js";
40
+ import B from "./merge/type-name-authority.js";
41
+ import { useMergeSession as V } from "./merge/use-merge-session.js";
42
+ import H from "./merge/merge-review.js";
37
43
  import "./merge/index.js";
38
- import { KEY_SEPARATOR as F, NO_VALUE_KEY as I, buildFlatOptions as L, buildMultiValueOptions as R, buildTreeOptions as z, collectLeafKeys as B, collectParentKeys as V, filterTree as H } from "./table/filters/build-filter-options.js";
39
- import { useColumnFilters as U } from "./table/filters/use-column-filters.js";
40
- import { useRowSort as W } from "./table/filters/use-row-sort.js";
41
- import { provideColumnFilterHeader as G, useColumnFilterHeaderContext as K } from "./table/column-filter-context.js";
42
- import { provideRowSortHeader as q, useOptionalRowSortContext as J } from "./table/row-sort-context.js";
43
- import Y from "./table/filterable-column-header.js";
44
+ import { KEY_SEPARATOR as U, NO_VALUE_KEY as W, buildFlatOptions as G, buildMultiValueOptions as K, buildTreeOptions as q, collectLeafKeys as J, collectParentKeys as Y, filterTree as X } from "./table/filters/build-filter-options.js";
45
+ import { useColumnFilters as Z } from "./table/filters/use-column-filters.js";
46
+ import { useRowSort as Q } from "./table/filters/use-row-sort.js";
47
+ import { provideColumnFilterHeader as $, useColumnFilterHeaderContext as ee } from "./table/column-filter-context.js";
48
+ import { provideRowSortHeader as te, useOptionalRowSortContext as ne } from "./table/row-sort-context.js";
49
+ import re from "./table/filterable-column-header.js";
44
50
  import "./table/index.js";
45
- import X from "./context-menu/context-menu.js";
51
+ import ie from "./context-menu/context-menu.js";
46
52
  import "./context-menu/index.js";
47
- import Z from "./split-layout/split-layout.js";
53
+ import ae from "./split-layout/split-layout.js";
48
54
  import "./split-layout/index.js";
49
- import { applyInitialVisibility as Q, buildRecordCache as $, collectVisibleIds as ee, hideDescendants as te } from "./diagram-layout/visibility-model.js";
50
- import { groupStackMetrics as ne } from "./diagram-layout/group-stack.js";
51
- import { GROUP_COLLAPSED_MEMBERS_HEIGHT as re, GROUP_HEADER_HEIGHT as ie, GROUP_MEMBER_GAP as ae, GROUP_MEMBER_HEIGHT as oe, GROUP_MEMBER_HEIGHT_COMPACT as se, memberCardHeight as ce } from "./diagram-layout/group-geometry.js";
52
- import { computeGroups as le, isGroupId as ue, makeGroupId as de } from "./diagram-layout/grouping.js";
53
- import { createElkLayoutEngine as fe } from "./diagram-layout/elk-layout-engine.js";
54
- import { useDiagramLayout as pe } from "./diagram-layout/use-diagram-layout.js";
55
- import me from "./diagram-layout/diagram-node-card.js";
56
- import he from "./diagram-layout/diagram-node-group.js";
55
+ import { applyInitialVisibility as oe, buildRecordCache as se, collectVisibleIds as ce, hideDescendants as le } from "./diagram-layout/visibility-model.js";
56
+ import { groupStackMetrics as ue } from "./diagram-layout/group-stack.js";
57
+ import { GROUP_COLLAPSED_MEMBERS_HEIGHT as de, GROUP_HEADER_HEIGHT as fe, GROUP_MEMBER_GAP as pe, GROUP_MEMBER_HEIGHT as me, GROUP_MEMBER_HEIGHT_COMPACT as he, memberCardHeight as ge } from "./diagram-layout/group-geometry.js";
58
+ import { computeGroups as _e, isGroupId as ve, makeGroupId as ye } from "./diagram-layout/grouping.js";
59
+ import { createElkLayoutEngine as be } from "./diagram-layout/elk-layout-engine.js";
60
+ import { useDiagramLayout as xe } from "./diagram-layout/use-diagram-layout.js";
61
+ import Se from "./diagram-layout/diagram-node-card.js";
62
+ import Ce from "./diagram-layout/diagram-node-group.js";
57
63
  import "./diagram-layout/index.js";
58
- export { s as Button, b as CATEGORY_ELEMENTS, E as CodeBlock, l as Combobox, X as ContextMenu, k as DecisionToggle, me as DiagramNodeCard, he as DiagramNodeGroup, d as Dialog, _ as DialogHost, v as DocumentProgressBar, c as Dropdown, x as ELEMENT_TO_COLOR, S as ELEMENT_TO_ICON, A as ElementDetail, f as FeedbackDialog, Y as FilterableColumnHeader, y as FloatingTooltip, re as GROUP_COLLAPSED_MEMBERS_HEIGHT, ie as GROUP_HEADER_HEIGHT, ae as GROUP_MEMBER_GAP, oe as GROUP_MEMBER_HEIGHT, se as GROUP_MEMBER_HEIGHT_COMPACT, F as KEY_SEPARATOR, P as MergeReview, j as MergeTree, u as MultiSelect, I as NO_VALUE_KEY, w as SclExplorer, Z as SplitLayout, M as TypeNameAuthority, O as XmlDiff, Q as applyInitialVisibility, L as buildFlatOptions, R as buildMultiValueOptions, $ as buildRecordCache, z as buildTreeOptions, C as collectExpandableNodeIds, B as collectLeafKeys, V as collectParentKeys, ee as collectVisibleIds, le as computeGroups, p as createDialogHost, e as createDocumentStore, fe as createElkLayoutEngine, m as dialogHostKey, D as diffLines, H as filterTree, ne as groupStackMetrics, te as hideDescendants, T as highlightCode, ue as isGroupId, de as makeGroupId, ce as memberCardHeight, G as provideColumnFilterHeader, h as provideDialogHost, q as provideRowSortHeader, i as useActiveDocument, K as useColumnFilterHeaderContext, U as useColumnFilters, pe as useDiagramLayout, t as useDialecteChannel, g as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, N as useMergeSession, J as useOptionalRowSortContext, r as useProjectLiveData, W as useRowSort };
64
+ export { s as Button, b as CATEGORY_ELEMENTS, D as CodeBlock, l as Combobox, ie as ContextMenu, L as DecisionToggle, Se as DiagramNodeCard, Ce as DiagramNodeGroup, d as Dialog, _ as DialogHost, v as DocumentProgressBar, c as Dropdown, x as ELEMENT_TO_COLOR, S as ELEMENT_TO_ICON, R as ElementDetail, f as FeedbackDialog, re as FilterableColumnHeader, y as FloatingTooltip, de as GROUP_COLLAPSED_MEMBERS_HEIGHT, fe as GROUP_HEADER_HEIGHT, pe as GROUP_MEMBER_GAP, me as GROUP_MEMBER_HEIGHT, he as GROUP_MEMBER_HEIGHT_COMPACT, U as KEY_SEPARATOR, T as LibraryBrowser, H as MergeReview, z as MergeTree, u as MultiSelect, A as NOTE_CATEGORIES, j as NOTE_CATEGORY_LABELS, M as NOTE_STATUSES, W as NO_VALUE_KEY, I as NoteCategoryPicker, F as NoteCategoryTag, w as SclExplorer, ae as SplitLayout, B as TypeNameAuthority, k as XmlDiff, oe as applyInitialVisibility, G as buildFlatOptions, K as buildMultiValueOptions, se as buildRecordCache, q as buildTreeOptions, C as collectExpandableNodeIds, J as collectLeafKeys, Y as collectParentKeys, ce as collectVisibleIds, _e as computeGroups, p as createDialogHost, e as createDocumentStore, be as createElkLayoutEngine, m as dialogHostKey, O as diffLines, X as filterTree, ue as groupStackMetrics, le as hideDescendants, E as highlightCode, ve as isGroupId, ye as makeGroupId, ge as memberCardHeight, N as parseNoteData, $ as provideColumnFilterHeader, h as provideDialogHost, te as provideRowSortHeader, P as serializeNoteData, i as useActiveDocument, ee as useColumnFilterHeaderContext, Z as useColumnFilters, xe as useDiagramLayout, t as useDialecteChannel, g as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, V as useMergeSession, ne as useOptionalRowSortContext, r as useProjectLiveData, Q as useRowSort };
@@ -0,0 +1,57 @@
1
+ //#region lib/library-browser/build-tree.ts
2
+ function e(e, t) {
3
+ if (e.startsWith(".")) return !1;
4
+ let n = e.lastIndexOf(".");
5
+ return n === -1 ? !1 : t.includes(e.slice(n).toLowerCase());
6
+ }
7
+ function t(e) {
8
+ let t = e.lastIndexOf("/");
9
+ return t === -1 ? e : e.slice(t + 1);
10
+ }
11
+ function n(e) {
12
+ let t = e.lastIndexOf("/");
13
+ return t === -1 ? void 0 : e.slice(0, t);
14
+ }
15
+ function r(r, i) {
16
+ let a = /* @__PURE__ */ new Map(), o = [];
17
+ for (let n of r) a.set(n.path, {
18
+ path: n.path,
19
+ name: t(n.path),
20
+ kind: n.kind,
21
+ children: [],
22
+ matchesExtension: n.kind === "file" ? e(t(n.path), i) : !1
23
+ });
24
+ for (let e of r) {
25
+ let t = a.get(e.path);
26
+ if (!t) continue;
27
+ let r = n(e.path), i = r ? a.get(r) : void 0;
28
+ i ? i.children.push(t) : o.push(t);
29
+ }
30
+ function s(e) {
31
+ return e.kind === "file" ? e.matchesExtension : (e.children = e.children.filter((e) => {
32
+ let t = s(e);
33
+ return e.kind === "directory" || t;
34
+ }), e.matchesExtension = e.children.some((e) => e.matchesExtension), e.matchesExtension);
35
+ }
36
+ return o.filter((e) => {
37
+ let t = s(e);
38
+ return e.kind === "directory" || t;
39
+ });
40
+ }
41
+ function i(e, t) {
42
+ let n = [];
43
+ for (let r of e) {
44
+ if (r.kind === "file") {
45
+ r.path.toLowerCase().includes(t) && n.push(r);
46
+ continue;
47
+ }
48
+ let e = i(r.children, t);
49
+ e.length > 0 && n.push({
50
+ ...r,
51
+ children: e
52
+ });
53
+ }
54
+ return n;
55
+ }
56
+ //#endregion
57
+ export { r as buildTree, i as pruneForSearch };
@@ -0,0 +1,2 @@
1
+ import e from "./library-browser.js";
2
+ export { e as LibraryBrowser };
@@ -0,0 +1,7 @@
1
+ import e from "../_virtual/_plugin-vue_export-helper.js";
2
+ import t from "./library-browser.vue_vue_type_script_setup_true_lang.js";
3
+ /* empty css */
4
+ //#region lib/library-browser/library-browser.vue
5
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-21431b24"]]);
6
+ //#endregion
7
+ export { n as default };