@septkit/ui 0.0.71 → 0.0.73
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/autocomplete/index.js +2 -0
- package/dist/autocomplete/text-input-autocomplete.js +5 -0
- package/dist/autocomplete/text-input-autocomplete.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/dropdown/multi-select.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/index.d.ts +101 -77
- package/dist/index.js +45 -43
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, mergeModels as s, normalizeClass as c, normalizeStyle as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, useModel as m, watch as h, withModifiers as g } from "vue";
|
|
2
|
+
//#region lib/autocomplete/text-input-autocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _ = { class: "relative w-full" }, v = ["value", "placeholder"], y = ["aria-selected", "onMousedown"], b = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "font-bold"
|
|
6
|
+
}, x = /*@__PURE__*/ o({
|
|
7
|
+
__name: "text-input-autocomplete",
|
|
8
|
+
props: /*@__PURE__*/ s({
|
|
9
|
+
suggestions: { default: () => [] },
|
|
10
|
+
placeholder: { default: "" },
|
|
11
|
+
suggestionsMaxHeight: { default: "13rem" }
|
|
12
|
+
}, {
|
|
13
|
+
modelValue: { default: "" },
|
|
14
|
+
modelModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(o) {
|
|
18
|
+
let s = o, x = m(o, "modelValue"), S = d(!1), C = d(-1), w = d(null), T = t(() => x.value.toLowerCase().split(/\s+/).filter(Boolean)), E = t(() => T.value.length === 0 ? s.suggestions : s.suggestions.filter((e) => {
|
|
19
|
+
let t = e.toLowerCase();
|
|
20
|
+
return T.value.every((e) => t.includes(e));
|
|
21
|
+
}));
|
|
22
|
+
h(C, (e) => {
|
|
23
|
+
e < 0 || w.value?.children[e]?.scrollIntoView({
|
|
24
|
+
block: "nearest",
|
|
25
|
+
inline: "nearest"
|
|
26
|
+
});
|
|
27
|
+
}, { flush: "post" });
|
|
28
|
+
function D(e) {
|
|
29
|
+
let t = e.toLowerCase(), n = Array(e.length).fill(!1);
|
|
30
|
+
for (let e of T.value) {
|
|
31
|
+
let r = t.indexOf(e);
|
|
32
|
+
for (; r !== -1;) n.fill(!0, r, r + e.length), r = t.indexOf(e, r + 1);
|
|
33
|
+
}
|
|
34
|
+
let r = [];
|
|
35
|
+
for (let t = 0; t < e.length; t++) {
|
|
36
|
+
let i = n[t], a = r[r.length - 1];
|
|
37
|
+
a && a.matched === i ? a.text += e[t] : r.push({
|
|
38
|
+
text: e[t],
|
|
39
|
+
matched: i
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return r;
|
|
43
|
+
}
|
|
44
|
+
function O(e) {
|
|
45
|
+
x.value = e.target.value, C.value = -1, S.value = E.value.length > 0;
|
|
46
|
+
}
|
|
47
|
+
function k() {
|
|
48
|
+
E.value.length > 0 && (S.value = !0);
|
|
49
|
+
}
|
|
50
|
+
function A() {
|
|
51
|
+
setTimeout(() => {
|
|
52
|
+
S.value = !1, C.value = -1;
|
|
53
|
+
}, 150);
|
|
54
|
+
}
|
|
55
|
+
function j(e) {
|
|
56
|
+
x.value = e, S.value = !1, C.value = -1;
|
|
57
|
+
}
|
|
58
|
+
function M(e) {
|
|
59
|
+
if (!S.value) {
|
|
60
|
+
e.key === "ArrowDown" && E.value.length > 0 && (S.value = !0);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
e.key === "ArrowDown" ? (e.preventDefault(), C.value = Math.min(C.value + 1, E.value.length - 1)) : e.key === "ArrowUp" ? (e.preventDefault(), C.value = Math.max(C.value - 1, -1)) : e.key === "Enter" && C.value >= 0 ? (e.preventDefault(), j(E.value[C.value])) : e.key === "Tab" && E.value.length > 0 ? (e.preventDefault(), j(C.value >= 0 ? E.value[C.value] : E.value[0])) : e.key === "Escape" && (S.value = !1, C.value = -1);
|
|
64
|
+
}
|
|
65
|
+
return (t, s) => (u(), r("div", _, [i("input", {
|
|
66
|
+
type: "text",
|
|
67
|
+
value: x.value,
|
|
68
|
+
placeholder: o.placeholder,
|
|
69
|
+
class: "input input-bordered w-full",
|
|
70
|
+
autocomplete: "off",
|
|
71
|
+
onInput: O,
|
|
72
|
+
onFocus: k,
|
|
73
|
+
onBlur: A,
|
|
74
|
+
onKeydown: M
|
|
75
|
+
}, null, 40, v), S.value ? (u(), r("ul", {
|
|
76
|
+
key: 0,
|
|
77
|
+
ref_key: "listbox",
|
|
78
|
+
ref: w,
|
|
79
|
+
class: "absolute z-50 mt-1 w-full bg-base-100 border border-base-300 rounded-box shadow-md overflow-y-auto p-1",
|
|
80
|
+
style: l({ maxHeight: o.suggestionsMaxHeight }),
|
|
81
|
+
role: "listbox"
|
|
82
|
+
}, [(u(!0), r(e, null, f(E.value, (t, n) => (u(), r("li", {
|
|
83
|
+
key: t,
|
|
84
|
+
class: c(["cursor-pointer text-sm px-3 py-1.5 rounded select-none", n === C.value ? "bg-primary text-primary-content" : "hover:bg-base-200"]),
|
|
85
|
+
"aria-selected": n === C.value,
|
|
86
|
+
role: "option",
|
|
87
|
+
onMousedown: g((e) => j(t), ["prevent"])
|
|
88
|
+
}, [(u(!0), r(e, null, f(D(t), (t, n) => (u(), r(e, { key: n }, [t.matched ? (u(), r("strong", b, p(t.text), 1)) : (u(), r(e, { key: 1 }, [a(p(t.text), 1)], 64))], 64))), 128))], 42, y))), 128))], 4)) : n("", !0)]));
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
export { x as default };
|
|
@@ -18,6 +18,7 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
18
18
|
options: {},
|
|
19
19
|
placeholder: {},
|
|
20
20
|
emptyText: {},
|
|
21
|
+
separator: { default: ", " },
|
|
21
22
|
color: { default: "primary" },
|
|
22
23
|
variant: {},
|
|
23
24
|
size: { default: "md" },
|
|
@@ -53,7 +54,7 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
53
54
|
"input-xl": b.size === "xl"
|
|
54
55
|
})), M = p(() => new Map(b.options.map((e) => [e.value, e.label]))), N = p(() => {
|
|
55
56
|
let e = k.value.map((e) => M.value.get(e) ?? e);
|
|
56
|
-
return e.length ? e.join(
|
|
57
|
+
return e.length ? e.join(b.separator) : b.placeholder ?? "Select...";
|
|
57
58
|
});
|
|
58
59
|
function P(e, t) {
|
|
59
60
|
return e.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()));
|
package/dist/index.d.ts
CHANGED
|
@@ -140,16 +140,16 @@ default?: (props: {}) => any;
|
|
|
140
140
|
}) | null;
|
|
141
141
|
}, any>;
|
|
142
142
|
|
|
143
|
-
declare const __VLS_component_4: DefineComponent<
|
|
143
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
144
144
|
"update:open": (value: boolean) => any;
|
|
145
|
-
}, string, PublicProps, Readonly<
|
|
145
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
146
146
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
147
147
|
}>, {
|
|
148
148
|
size: DialogSize;
|
|
149
149
|
closable: boolean;
|
|
150
150
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
151
151
|
|
|
152
|
-
declare const __VLS_component_5: DefineComponent<
|
|
152
|
+
declare const __VLS_component_5: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {
|
|
153
153
|
onlyWhenTruncated: boolean;
|
|
154
154
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
155
155
|
trigger: ({
|
|
@@ -268,14 +268,14 @@ default?: (props: {}) => any;
|
|
|
268
268
|
}) | null;
|
|
269
269
|
}, any>;
|
|
270
270
|
|
|
271
|
-
declare const __VLS_component_6: DefineComponent<
|
|
271
|
+
declare const __VLS_component_6: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
272
272
|
select: (node: ExplorerNode) => any;
|
|
273
273
|
contextmenu: (payload: {
|
|
274
274
|
node: ExplorerNode;
|
|
275
275
|
event: MouseEvent;
|
|
276
276
|
}) => any;
|
|
277
277
|
"update:expanded": (state: ExplorerExpandedState) => any;
|
|
278
|
-
}, string, PublicProps, Readonly<
|
|
278
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
279
279
|
onSelect?: ((node: ExplorerNode) => any) | undefined;
|
|
280
280
|
onContextmenu?: ((payload: {
|
|
281
281
|
node: ExplorerNode;
|
|
@@ -287,7 +287,7 @@ ariaLabel: string;
|
|
|
287
287
|
expanded: ExplorerExpandedState;
|
|
288
288
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
289
289
|
|
|
290
|
-
declare const __VLS_component_7: DefineComponent<
|
|
290
|
+
declare const __VLS_component_7: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
291
291
|
select: (payload: {
|
|
292
292
|
sourceId: string;
|
|
293
293
|
path: string;
|
|
@@ -296,7 +296,7 @@ path: string;
|
|
|
296
296
|
sourceId: string;
|
|
297
297
|
path: string;
|
|
298
298
|
}) => any;
|
|
299
|
-
}, string, PublicProps, Readonly<
|
|
299
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
300
300
|
onSelect?: ((payload: {
|
|
301
301
|
sourceId: string;
|
|
302
302
|
path: string;
|
|
@@ -307,19 +307,19 @@ path: string;
|
|
|
307
307
|
}) => any) | undefined;
|
|
308
308
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
309
309
|
|
|
310
|
-
declare const __VLS_component_8: DefineComponent<
|
|
310
|
+
declare const __VLS_component_8: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {
|
|
311
311
|
direction: "horizontal" | "vertical";
|
|
312
312
|
defaultSize: number;
|
|
313
313
|
maxSize: number;
|
|
314
314
|
minSize: number;
|
|
315
315
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
316
316
|
|
|
317
|
-
declare const __VLS_component_9: DefineComponent<
|
|
317
|
+
declare const __VLS_component_9: DefineComponent<__VLS_Props_26, {
|
|
318
318
|
focus: () => void | undefined;
|
|
319
319
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
320
320
|
toggle: (groupId: string) => any;
|
|
321
321
|
keydown: (event: KeyboardEvent) => any;
|
|
322
|
-
}, string, PublicProps, Readonly<
|
|
322
|
+
}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
|
|
323
323
|
onToggle?: ((groupId: string) => any) | undefined;
|
|
324
324
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
325
325
|
}>, {
|
|
@@ -344,6 +344,13 @@ declare type __VLS_Props = {
|
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
declare type __VLS_Props_10 = {
|
|
347
|
+
/** The SCL element whose kind is shown: its icon on the colour of its family. */
|
|
348
|
+
tagName: string;
|
|
349
|
+
/** `sm` beside small text (lists, rows), `md` beside a name in a tree. */
|
|
350
|
+
size?: 'sm' | 'md';
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
declare type __VLS_Props_11 = {
|
|
347
354
|
items: ExplorerNode[];
|
|
348
355
|
expanded?: ExplorerExpandedState;
|
|
349
356
|
ariaLabel?: string;
|
|
@@ -353,7 +360,7 @@ declare type __VLS_Props_10 = {
|
|
|
353
360
|
rowLabel?: (node: ExplorerNode) => string | undefined;
|
|
354
361
|
};
|
|
355
362
|
|
|
356
|
-
declare type
|
|
363
|
+
declare type __VLS_Props_12 = {
|
|
357
364
|
sources: LibraryBrowserSource[];
|
|
358
365
|
extensions: string[];
|
|
359
366
|
/** localStorage key for persisting expand state; omit to disable persistence. */
|
|
@@ -367,7 +374,7 @@ declare type __VLS_Props_11 = {
|
|
|
367
374
|
};
|
|
368
375
|
};
|
|
369
376
|
|
|
370
|
-
declare type
|
|
377
|
+
declare type __VLS_Props_13 = {
|
|
371
378
|
/** Code to render. */
|
|
372
379
|
code?: string;
|
|
373
380
|
/** Shiki language id. Defaults to `xml`. */
|
|
@@ -379,7 +386,7 @@ declare type __VLS_Props_12 = {
|
|
|
379
386
|
wrap?: boolean;
|
|
380
387
|
};
|
|
381
388
|
|
|
382
|
-
declare type
|
|
389
|
+
declare type __VLS_Props_14 = {
|
|
383
390
|
/** Baseline XML. Omit (or empty) for a purely-added element. */
|
|
384
391
|
before?: string;
|
|
385
392
|
/** Resulting XML. */
|
|
@@ -387,11 +394,11 @@ declare type __VLS_Props_13 = {
|
|
|
387
394
|
loading?: boolean;
|
|
388
395
|
};
|
|
389
396
|
|
|
390
|
-
declare type
|
|
397
|
+
declare type __VLS_Props_15 = {
|
|
391
398
|
category: NoteCategory;
|
|
392
399
|
};
|
|
393
400
|
|
|
394
|
-
declare type
|
|
401
|
+
declare type __VLS_Props_16 = {
|
|
395
402
|
size?: 'xs' | 'sm' | 'md';
|
|
396
403
|
disabled?: boolean;
|
|
397
404
|
/** What the decision is about, to name it for assistive technology. */
|
|
@@ -400,7 +407,7 @@ declare type __VLS_Props_15 = {
|
|
|
400
407
|
change?: ChangeStatus;
|
|
401
408
|
};
|
|
402
409
|
|
|
403
|
-
declare type
|
|
410
|
+
declare type __VLS_Props_17 = {
|
|
404
411
|
detail: ElementDetailVM | undefined;
|
|
405
412
|
/** Consumer-supplied fixed prefix/suffix per attribute; the user edits only the core. */
|
|
406
413
|
affixMask?: AffixMaskResolver;
|
|
@@ -408,32 +415,18 @@ declare type __VLS_Props_16 = {
|
|
|
408
415
|
disabled?: boolean;
|
|
409
416
|
};
|
|
410
417
|
|
|
411
|
-
declare type
|
|
418
|
+
declare type __VLS_Props_18 = {
|
|
412
419
|
view: MapView;
|
|
413
420
|
/** Said above the rows when the template lands below where the user started. */
|
|
414
421
|
notice?: string;
|
|
415
422
|
};
|
|
416
423
|
|
|
417
|
-
declare type
|
|
424
|
+
declare type __VLS_Props_19 = MergeSessionParams & {
|
|
418
425
|
source?: FileMeta;
|
|
419
426
|
target?: FileMeta;
|
|
420
427
|
affixMask?: AffixMaskResolver;
|
|
421
428
|
};
|
|
422
429
|
|
|
423
|
-
declare type __VLS_Props_19 = {
|
|
424
|
-
items: ExplorerNode[];
|
|
425
|
-
/** Per-node metadata keyed by node id (change, role, groupId, path). */
|
|
426
|
-
meta: Record<string, MergeNodeMeta>;
|
|
427
|
-
/** Current decision per group id. */
|
|
428
|
-
decisions: Record<string, DecisionAction>;
|
|
429
|
-
/** Node ids to expand by default (the path to every change). */
|
|
430
|
-
expandedItems?: string[];
|
|
431
|
-
/** The node the dialog shows: the path to it opens, it is selected, spotlighted and scrolled to. */
|
|
432
|
-
selected?: string;
|
|
433
|
-
/** What Check files found, by node id: the elements marked, with the warning. */
|
|
434
|
-
flagged?: Record<string, string>;
|
|
435
|
-
};
|
|
436
|
-
|
|
437
430
|
declare type __VLS_Props_2 = {
|
|
438
431
|
/** Trigger color */
|
|
439
432
|
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -453,25 +446,39 @@ declare type __VLS_Props_2 = {
|
|
|
453
446
|
};
|
|
454
447
|
|
|
455
448
|
declare type __VLS_Props_20 = {
|
|
449
|
+
items: ExplorerNode[];
|
|
450
|
+
/** Per-node metadata keyed by node id (change, role, groupId, path). */
|
|
451
|
+
meta: Record<string, MergeNodeMeta>;
|
|
452
|
+
/** Current decision per group id. */
|
|
453
|
+
decisions: Record<string, DecisionAction>;
|
|
454
|
+
/** Node ids to expand by default (the path to every change). */
|
|
455
|
+
expandedItems?: string[];
|
|
456
|
+
/** The node the dialog shows: the path to it opens, it is selected, spotlighted and scrolled to. */
|
|
457
|
+
selected?: string;
|
|
458
|
+
/** What Check files found, by node id: the elements marked, with the warning. */
|
|
459
|
+
flagged?: Record<string, string>;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
declare type __VLS_Props_21 = {
|
|
456
463
|
size?: 'xs' | 'sm' | 'md';
|
|
457
464
|
disabled?: boolean;
|
|
458
465
|
/** Render the segmented control only, without the leading label. */
|
|
459
466
|
hideLabel?: boolean;
|
|
460
467
|
};
|
|
461
468
|
|
|
462
|
-
declare type
|
|
469
|
+
declare type __VLS_Props_22 = {
|
|
463
470
|
columnId: string;
|
|
464
471
|
title: string;
|
|
465
472
|
};
|
|
466
473
|
|
|
467
|
-
declare type
|
|
474
|
+
declare type __VLS_Props_23 = {
|
|
468
475
|
x: number;
|
|
469
476
|
y: number;
|
|
470
477
|
visible: boolean;
|
|
471
478
|
items: ContextMenuItem[];
|
|
472
479
|
};
|
|
473
480
|
|
|
474
|
-
declare type
|
|
481
|
+
declare type __VLS_Props_24 = {
|
|
475
482
|
/** Unique key: drives the splitter group's auto-save-id and both panel ids. */
|
|
476
483
|
persistenceKey: string;
|
|
477
484
|
showSidebar: boolean;
|
|
@@ -484,7 +491,7 @@ declare type __VLS_Props_23 = {
|
|
|
484
491
|
maxSize?: number;
|
|
485
492
|
};
|
|
486
493
|
|
|
487
|
-
declare type
|
|
494
|
+
declare type __VLS_Props_25 = {
|
|
488
495
|
nodeId: string;
|
|
489
496
|
tagName: string;
|
|
490
497
|
label: string;
|
|
@@ -501,7 +508,7 @@ declare type __VLS_Props_24 = {
|
|
|
501
508
|
treeMeta?: TreeItemMeta;
|
|
502
509
|
};
|
|
503
510
|
|
|
504
|
-
declare type
|
|
511
|
+
declare type __VLS_Props_26 = {
|
|
505
512
|
groupId: string;
|
|
506
513
|
tagName: string;
|
|
507
514
|
label: string;
|
|
@@ -553,6 +560,7 @@ declare type __VLS_Props_4 = {
|
|
|
553
560
|
}[];
|
|
554
561
|
placeholder?: string;
|
|
555
562
|
emptyText?: string;
|
|
563
|
+
separator?: string;
|
|
556
564
|
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
557
565
|
variant?: 'ghost' | 'bordered' | 'soft' | 'dash';
|
|
558
566
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -560,6 +568,12 @@ declare type __VLS_Props_4 = {
|
|
|
560
568
|
};
|
|
561
569
|
|
|
562
570
|
declare type __VLS_Props_5 = {
|
|
571
|
+
suggestions?: string[];
|
|
572
|
+
placeholder?: string;
|
|
573
|
+
suggestionsMaxHeight?: string;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
declare type __VLS_Props_6 = {
|
|
563
577
|
/** Controlled open state (v-model:open). */
|
|
564
578
|
open: boolean;
|
|
565
579
|
title?: string;
|
|
@@ -575,11 +589,11 @@ declare type __VLS_Props_5 = {
|
|
|
575
589
|
scoped?: boolean;
|
|
576
590
|
};
|
|
577
591
|
|
|
578
|
-
declare type
|
|
592
|
+
declare type __VLS_Props_7 = {
|
|
579
593
|
host?: DialogController;
|
|
580
594
|
};
|
|
581
595
|
|
|
582
|
-
declare type
|
|
596
|
+
declare type __VLS_Props_8 = {
|
|
583
597
|
variant: FeedbackVariant;
|
|
584
598
|
message: string;
|
|
585
599
|
detail?: string;
|
|
@@ -591,19 +605,12 @@ declare type __VLS_Props_7 = {
|
|
|
591
605
|
autoCloseMs?: number;
|
|
592
606
|
};
|
|
593
607
|
|
|
594
|
-
declare type
|
|
608
|
+
declare type __VLS_Props_9 = {
|
|
595
609
|
content: string;
|
|
596
610
|
onlyWhenTruncated?: boolean;
|
|
597
611
|
truncationSelector?: string;
|
|
598
612
|
};
|
|
599
613
|
|
|
600
|
-
declare type __VLS_Props_9 = {
|
|
601
|
-
/** The SCL element whose kind is shown: its icon on the colour of its family. */
|
|
602
|
-
tagName: string;
|
|
603
|
-
/** `sm` beside small text (lists, rows), `md` beside a name in a tree. */
|
|
604
|
-
size?: 'sm' | 'md';
|
|
605
|
-
};
|
|
606
|
-
|
|
607
614
|
declare type __VLS_PublicProps = {
|
|
608
615
|
modelValue?: AcceptableValue;
|
|
609
616
|
} & __VLS_Props_3;
|
|
@@ -614,16 +621,20 @@ declare type __VLS_PublicProps_2 = {
|
|
|
614
621
|
} & __VLS_Props_4;
|
|
615
622
|
|
|
616
623
|
declare type __VLS_PublicProps_3 = {
|
|
624
|
+
modelValue?: string;
|
|
625
|
+
} & __VLS_Props_5;
|
|
626
|
+
|
|
627
|
+
declare type __VLS_PublicProps_4 = {
|
|
617
628
|
modelValue: NoteCategory[];
|
|
618
629
|
};
|
|
619
630
|
|
|
620
|
-
declare type
|
|
631
|
+
declare type __VLS_PublicProps_5 = {
|
|
621
632
|
modelValue: DecisionAction;
|
|
622
|
-
} &
|
|
633
|
+
} & __VLS_Props_16;
|
|
623
634
|
|
|
624
|
-
declare type
|
|
635
|
+
declare type __VLS_PublicProps_6 = {
|
|
625
636
|
modelValue: KeepNameTypesFrom;
|
|
626
|
-
} &
|
|
637
|
+
} & __VLS_Props_21;
|
|
627
638
|
|
|
628
639
|
declare function __VLS_template(): {
|
|
629
640
|
attrs: Partial<{}>;
|
|
@@ -1100,7 +1111,7 @@ export declare type ChangeStatus = 'added' | 'removed' | 'modified' | 'unchanged
|
|
|
1100
1111
|
|
|
1101
1112
|
declare function closeDropdown(): void;
|
|
1102
1113
|
|
|
1103
|
-
export declare const CodeBlock: DefineComponent<
|
|
1114
|
+
export declare const CodeBlock: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1104
1115
|
|
|
1105
1116
|
/**
|
|
1106
1117
|
* Collects the ids of every node that has children, for binding to
|
|
@@ -1169,9 +1180,9 @@ export declare type Connection = {
|
|
|
1169
1180
|
target: string;
|
|
1170
1181
|
};
|
|
1171
1182
|
|
|
1172
|
-
export declare const ContextMenu: DefineComponent<
|
|
1183
|
+
export declare const ContextMenu: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1173
1184
|
close: () => any;
|
|
1174
|
-
}, string, PublicProps, Readonly<
|
|
1185
|
+
}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
|
|
1175
1186
|
onClose?: (() => any) | undefined;
|
|
1176
1187
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1177
1188
|
|
|
@@ -1229,9 +1240,9 @@ export declare function createElkLayoutEngine(defaults?: LayoutOptions): LayoutE
|
|
|
1229
1240
|
/** A user's binary choice on a decision group. */
|
|
1230
1241
|
export declare type DecisionAction = 'accept' | 'skip';
|
|
1231
1242
|
|
|
1232
|
-
export declare const DecisionToggle: DefineComponent<
|
|
1243
|
+
export declare const DecisionToggle: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1233
1244
|
"update:modelValue": (value: DecisionAction) => any;
|
|
1234
|
-
}, string, PublicProps, Readonly<
|
|
1245
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
1235
1246
|
"onUpdate:modelValue"?: ((value: DecisionAction) => any) | undefined;
|
|
1236
1247
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1237
1248
|
|
|
@@ -1275,14 +1286,14 @@ export declare type DiagramLayoutOptions<TRecord extends LayoutTreeRecord, TNode
|
|
|
1275
1286
|
toEdge: (context: EdgeMapperContext) => TEdge;
|
|
1276
1287
|
};
|
|
1277
1288
|
|
|
1278
|
-
export declare const DiagramNodeCard: DefineComponent<
|
|
1289
|
+
export declare const DiagramNodeCard: DefineComponent<__VLS_Props_25, {
|
|
1279
1290
|
focus: () => void | undefined;
|
|
1280
1291
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1281
1292
|
select: (nodeId: string) => any;
|
|
1282
1293
|
keydown: (event: KeyboardEvent) => any;
|
|
1283
1294
|
"toggle-expand": (nodeId: string) => any;
|
|
1284
1295
|
"show-details": (nodeId: string) => any;
|
|
1285
|
-
}, string, PublicProps, Readonly<
|
|
1296
|
+
}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{
|
|
1286
1297
|
onSelect?: ((nodeId: string) => any) | undefined;
|
|
1287
1298
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
1288
1299
|
"onToggle-expand"?: ((nodeId: string) => any) | undefined;
|
|
@@ -1334,7 +1345,7 @@ export declare type DialogController = {
|
|
|
1334
1345
|
close: () => void;
|
|
1335
1346
|
};
|
|
1336
1347
|
|
|
1337
|
-
export declare const DialogHost: DefineComponent<
|
|
1348
|
+
export declare const DialogHost: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1338
1349
|
|
|
1339
1350
|
/** Injection key for the ambient dialog host. */
|
|
1340
1351
|
export declare const dialogHostKey: InjectionKey<DialogController>;
|
|
@@ -1395,16 +1406,16 @@ export declare const ELEMENT_TO_COLOR: Record<string, ElementColor>;
|
|
|
1395
1406
|
|
|
1396
1407
|
export declare const ELEMENT_TO_ICON: Record<string, Component>;
|
|
1397
1408
|
|
|
1398
|
-
export declare const ElementBadge: DefineComponent<
|
|
1409
|
+
export declare const ElementBadge: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1399
1410
|
|
|
1400
1411
|
export declare interface ElementColor {
|
|
1401
1412
|
text: string;
|
|
1402
1413
|
background: string;
|
|
1403
1414
|
}
|
|
1404
1415
|
|
|
1405
|
-
export declare const ElementDetail: DefineComponent<
|
|
1416
|
+
export declare const ElementDetail: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1406
1417
|
edit: (attr: string, value: string) => any;
|
|
1407
|
-
}, string, PublicProps, Readonly<
|
|
1418
|
+
}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{
|
|
1408
1419
|
onEdit?: ((attr: string, value: string) => any) | undefined;
|
|
1409
1420
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1410
1421
|
|
|
@@ -1437,10 +1448,10 @@ export declare type ExplorerNode = {
|
|
|
1437
1448
|
/** Map of named extension modules. */
|
|
1438
1449
|
export declare type ExtensionsConfig = Record<string, ExtensionModule>;
|
|
1439
1450
|
|
|
1440
|
-
export declare const FeedbackDialog: DefineComponent<
|
|
1451
|
+
export declare const FeedbackDialog: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1441
1452
|
dismiss: () => any;
|
|
1442
1453
|
retry: () => any;
|
|
1443
|
-
}, string, PublicProps, Readonly<
|
|
1454
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
1444
1455
|
onDismiss?: (() => any) | undefined;
|
|
1445
1456
|
onRetry?: (() => any) | undefined;
|
|
1446
1457
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1479,7 +1490,7 @@ export declare type FileMeta = {
|
|
|
1479
1490
|
revision: string;
|
|
1480
1491
|
};
|
|
1481
1492
|
|
|
1482
|
-
export declare const FilterableColumnHeader: DefineComponent<
|
|
1493
|
+
export declare const FilterableColumnHeader: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1483
1494
|
funnelRef: HTMLButtonElement;
|
|
1484
1495
|
popoverWrapperRef: HTMLDivElement;
|
|
1485
1496
|
}, HTMLDivElement>;
|
|
@@ -1812,9 +1823,9 @@ export declare type MapView = {
|
|
|
1812
1823
|
*/
|
|
1813
1824
|
export declare function memberCardHeight(hasChildCounts: boolean): number;
|
|
1814
1825
|
|
|
1815
|
-
export declare const MergeMap: DefineComponent<
|
|
1826
|
+
export declare const MergeMap: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1816
1827
|
map: (sourceId: string, mapping: DecisionMapping | undefined) => any;
|
|
1817
|
-
}, string, PublicProps, Readonly<
|
|
1828
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
1818
1829
|
onMap?: ((sourceId: string, mapping: DecisionMapping | undefined) => any) | undefined;
|
|
1819
1830
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1820
1831
|
|
|
@@ -1862,7 +1873,7 @@ declare type MergeOutcome = {
|
|
|
1862
1873
|
landed: ReadonlySet<string>;
|
|
1863
1874
|
};
|
|
1864
1875
|
|
|
1865
|
-
export declare const MergeReview: DefineComponent<
|
|
1876
|
+
export declare const MergeReview: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1866
1877
|
close: () => any;
|
|
1867
1878
|
show: (ref: {
|
|
1868
1879
|
readonly tagName: "P";
|
|
@@ -2496,7 +2507,7 @@ readonly tagName: "SclFileReference";
|
|
|
2496
2507
|
readonly id: string;
|
|
2497
2508
|
}) => any;
|
|
2498
2509
|
applied: () => any;
|
|
2499
|
-
}, string, PublicProps, Readonly<
|
|
2510
|
+
}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
|
|
2500
2511
|
onClose?: (() => any) | undefined;
|
|
2501
2512
|
onShow?: ((ref: {
|
|
2502
2513
|
readonly tagName: "P";
|
|
@@ -3305,10 +3316,10 @@ declare type MergeSummaryShow = {
|
|
|
3305
3316
|
nodeId: string;
|
|
3306
3317
|
};
|
|
3307
3318
|
|
|
3308
|
-
export declare const MergeTree: DefineComponent<
|
|
3319
|
+
export declare const MergeTree: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3309
3320
|
select: (node: ExplorerNode) => any;
|
|
3310
3321
|
"update:decision": (groupId: string, action: DecisionAction) => any;
|
|
3311
|
-
}, string, PublicProps, Readonly<
|
|
3322
|
+
}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{
|
|
3312
3323
|
onSelect?: ((node: ExplorerNode) => any) | undefined;
|
|
3313
3324
|
"onUpdate:decision"?: ((groupId: string, action: DecisionAction) => any) | undefined;
|
|
3314
3325
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -3436,6 +3447,7 @@ export declare const MultiSelect: DefineComponent<__VLS_PublicProps_2, {}, {}, {
|
|
|
3436
3447
|
}>, {
|
|
3437
3448
|
color: "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
3438
3449
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
3450
|
+
separator: string;
|
|
3439
3451
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3440
3452
|
|
|
3441
3453
|
export declare type NavNode = {
|
|
@@ -3468,13 +3480,13 @@ export declare const NOTE_STATUSES: readonly ["open", "resolved", "removed"];
|
|
|
3468
3480
|
|
|
3469
3481
|
export declare type NoteCategory = (typeof NOTE_CATEGORIES)[number];
|
|
3470
3482
|
|
|
3471
|
-
export declare const NoteCategoryPicker: DefineComponent<
|
|
3483
|
+
export declare const NoteCategoryPicker: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3472
3484
|
"update:modelValue": (value: ("feedback" | "instantiation" | "interlock")[]) => any;
|
|
3473
|
-
}, string, PublicProps, Readonly<
|
|
3485
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
|
|
3474
3486
|
"onUpdate:modelValue"?: ((value: ("feedback" | "instantiation" | "interlock")[]) => any) | undefined;
|
|
3475
3487
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
|
|
3476
3488
|
|
|
3477
|
-
export declare const NoteCategoryTag: DefineComponent<
|
|
3489
|
+
export declare const NoteCategoryTag: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
3478
3490
|
|
|
3479
3491
|
/** @ref=elia:note-json-format - stored contract in doc/note-format.md */
|
|
3480
3492
|
export declare interface NoteData {
|
|
@@ -3578,6 +3590,18 @@ declare type StructuralTree = {
|
|
|
3578
3590
|
expanded: string[];
|
|
3579
3591
|
};
|
|
3580
3592
|
|
|
3593
|
+
export declare const TextInputAutocomplete: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3594
|
+
"update:modelValue": (value: string) => any;
|
|
3595
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
3596
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
3597
|
+
}>, {
|
|
3598
|
+
placeholder: string;
|
|
3599
|
+
suggestions: string[];
|
|
3600
|
+
suggestionsMaxHeight: string;
|
|
3601
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
3602
|
+
listbox: HTMLUListElement;
|
|
3603
|
+
}, HTMLDivElement>;
|
|
3604
|
+
|
|
3581
3605
|
/** ARIA tree position, supplied by the consumer's navigation model. */
|
|
3582
3606
|
export declare type TreeItemMeta = {
|
|
3583
3607
|
level?: number;
|
|
@@ -3585,9 +3609,9 @@ export declare type TreeItemMeta = {
|
|
|
3585
3609
|
posinset?: number;
|
|
3586
3610
|
};
|
|
3587
3611
|
|
|
3588
|
-
export declare const TypeNameAuthority: DefineComponent<
|
|
3612
|
+
export declare const TypeNameAuthority: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3589
3613
|
"update:modelValue": (value: KeepNameTypesFrom) => any;
|
|
3590
|
-
}, string, PublicProps, Readonly<
|
|
3614
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
|
|
3591
3615
|
"onUpdate:modelValue"?: ((value: KeepNameTypesFrom) => any) | undefined;
|
|
3592
3616
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3593
3617
|
|
|
@@ -3837,6 +3861,6 @@ export declare type WrittenTarget = {
|
|
|
3837
3861
|
parentPath?: string;
|
|
3838
3862
|
};
|
|
3839
3863
|
|
|
3840
|
-
export declare const XmlDiff: DefineComponent<
|
|
3864
|
+
export declare const XmlDiff: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3841
3865
|
|
|
3842
3866
|
export { }
|