@septkit/ui 0.0.94 → 0.0.96
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/README.md +68 -0
- package/dist/bulk-edit/bulk-edit-field.js +5 -0
- package/dist/bulk-edit/bulk-edit-field.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/bulk-edit/bulk-edit-panel.js +5 -0
- package/dist/bulk-edit/bulk-edit-panel.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/bulk-edit/index.js +5 -0
- package/dist/bulk-edit/summarize-values.js +15 -0
- package/dist/bulk-edit/use-bulk-edit-form.js +41 -0
- package/dist/index.d.ts +254 -68
- package/dist/index.js +26 -18
- package/dist/table/filterable-column-header.js +1 -1
- package/dist/table/filterable-column-header.vue_vue_type_script_setup_true_lang.js +17 -4
- package/dist/table/index.js +6 -2
- package/dist/table/selection/index.js +4 -0
- package/dist/table/selection/selection-checkbox.js +5 -0
- package/dist/table/selection/selection-checkbox.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/table/selection/selection-toolbar.js +5 -0
- package/dist/table/selection/selection-toolbar.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/table/selection/use-row-selection.js +48 -0
- package/dist/ui.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -39,16 +39,47 @@ import { WatchStopHandle } from 'vue';
|
|
|
39
39
|
|
|
40
40
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
41
41
|
|
|
42
|
-
declare const __VLS_component_10: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
42
|
+
declare const __VLS_component_10: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
43
|
+
cancel: () => any;
|
|
44
|
+
apply: () => any;
|
|
45
|
+
}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{
|
|
46
|
+
onCancel?: (() => any) | undefined;
|
|
47
|
+
onApply?: (() => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
description: string;
|
|
50
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
51
|
+
|
|
52
|
+
declare const __VLS_component_11: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {
|
|
53
|
+
error: string;
|
|
54
|
+
hint: string;
|
|
55
|
+
changed: boolean;
|
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
57
|
+
|
|
58
|
+
declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
59
|
+
"update:modelValue": (value: string) => any;
|
|
60
|
+
"update:invalid": (value: boolean) => any;
|
|
61
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
|
|
62
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
63
|
+
"onUpdate:invalid"?: ((value: boolean) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
targets: string[];
|
|
66
|
+
nameParent: boolean;
|
|
67
|
+
anywhereLabel: string;
|
|
68
|
+
nameLabel: string;
|
|
69
|
+
searchable: boolean;
|
|
70
|
+
allowXpath: boolean;
|
|
71
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
72
|
+
|
|
73
|
+
declare const __VLS_component_13: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {
|
|
43
74
|
direction: "horizontal" | "vertical";
|
|
44
75
|
defaultSize: number;
|
|
45
76
|
minSize: number;
|
|
46
77
|
maxSize: number;
|
|
47
78
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
48
79
|
|
|
49
|
-
declare const
|
|
80
|
+
declare const __VLS_component_14: DefineComponent<__VLS_Props_25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
50
81
|
|
|
51
|
-
declare const
|
|
82
|
+
declare const __VLS_component_15: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
52
83
|
"update:open": (value: boolean) => any;
|
|
53
84
|
}, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
|
|
54
85
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -56,12 +87,12 @@ declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_7, {}, {}, {
|
|
|
56
87
|
hoverDelay: number;
|
|
57
88
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
58
89
|
|
|
59
|
-
declare const
|
|
90
|
+
declare const __VLS_component_16: DefineComponent<__VLS_Props_30, {
|
|
60
91
|
focus: () => void | undefined;
|
|
61
92
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
62
93
|
keydown: (event: KeyboardEvent) => any;
|
|
63
94
|
toggle: (groupId: string) => any;
|
|
64
|
-
}, string, PublicProps, Readonly<
|
|
95
|
+
}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{
|
|
65
96
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
66
97
|
onToggle?: ((groupId: string) => any) | undefined;
|
|
67
98
|
}>, {
|
|
@@ -358,19 +389,16 @@ path: string;
|
|
|
358
389
|
}) => any) | undefined;
|
|
359
390
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
360
391
|
|
|
361
|
-
declare const __VLS_component_9: DefineComponent<
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
392
|
+
declare const __VLS_component_9: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
393
|
+
clear: () => any;
|
|
394
|
+
selectAllVisible: () => any;
|
|
395
|
+
bulkEdit: () => any;
|
|
396
|
+
}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
|
|
397
|
+
onClear?: (() => any) | undefined;
|
|
398
|
+
onSelectAllVisible?: (() => any) | undefined;
|
|
399
|
+
onBulkEdit?: (() => any) | undefined;
|
|
367
400
|
}>, {
|
|
368
|
-
|
|
369
|
-
nameParent: boolean;
|
|
370
|
-
anywhereLabel: string;
|
|
371
|
-
nameLabel: string;
|
|
372
|
-
searchable: boolean;
|
|
373
|
-
allowXpath: boolean;
|
|
401
|
+
locked: boolean;
|
|
374
402
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
375
403
|
|
|
376
404
|
declare type __VLS_Props = {
|
|
@@ -454,23 +482,22 @@ declare type __VLS_Props_16 = {
|
|
|
454
482
|
declare type __VLS_Props_17 = {
|
|
455
483
|
columnId: string;
|
|
456
484
|
title: string;
|
|
485
|
+
disabled?: boolean;
|
|
457
486
|
};
|
|
458
487
|
|
|
459
488
|
declare type __VLS_Props_18 = {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
489
|
+
checked: boolean;
|
|
490
|
+
indeterminate?: boolean;
|
|
491
|
+
disabled?: boolean;
|
|
492
|
+
label: string;
|
|
464
493
|
};
|
|
465
494
|
|
|
466
495
|
declare type __VLS_Props_19 = {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
searchable?: boolean;
|
|
473
|
-
allowXpath?: boolean;
|
|
496
|
+
count: number;
|
|
497
|
+
totalCount: number;
|
|
498
|
+
visibleCount: number;
|
|
499
|
+
itemLabel: string;
|
|
500
|
+
locked?: boolean;
|
|
474
501
|
};
|
|
475
502
|
|
|
476
503
|
declare type __VLS_Props_2 = {
|
|
@@ -492,6 +519,37 @@ declare type __VLS_Props_2 = {
|
|
|
492
519
|
};
|
|
493
520
|
|
|
494
521
|
declare type __VLS_Props_20 = {
|
|
522
|
+
title: string;
|
|
523
|
+
description?: string;
|
|
524
|
+
canApply: boolean;
|
|
525
|
+
errorCount: number;
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
declare type __VLS_Props_21 = {
|
|
529
|
+
label: string;
|
|
530
|
+
hint?: string;
|
|
531
|
+
error?: string;
|
|
532
|
+
changed?: boolean;
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
declare type __VLS_Props_22 = {
|
|
536
|
+
x: number;
|
|
537
|
+
y: number;
|
|
538
|
+
visible: boolean;
|
|
539
|
+
items: ContextMenuItem[];
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
declare type __VLS_Props_23 = {
|
|
543
|
+
anchors: AnchorOption[];
|
|
544
|
+
anywhereLabel?: string;
|
|
545
|
+
targets?: string[];
|
|
546
|
+
nameParent?: boolean;
|
|
547
|
+
nameLabel?: string;
|
|
548
|
+
searchable?: boolean;
|
|
549
|
+
allowXpath?: boolean;
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
declare type __VLS_Props_24 = {
|
|
495
553
|
/** Unique key: drives the splitter group's auto-save-id and both panel ids. */
|
|
496
554
|
persistenceKey: string;
|
|
497
555
|
showSidebar: boolean;
|
|
@@ -504,26 +562,26 @@ declare type __VLS_Props_20 = {
|
|
|
504
562
|
maxSize?: number;
|
|
505
563
|
};
|
|
506
564
|
|
|
507
|
-
declare type
|
|
565
|
+
declare type __VLS_Props_25 = {
|
|
508
566
|
label: string;
|
|
509
567
|
};
|
|
510
568
|
|
|
511
|
-
declare type
|
|
569
|
+
declare type __VLS_Props_26 = {
|
|
512
570
|
label: string;
|
|
513
571
|
hoverDelay?: number;
|
|
514
572
|
};
|
|
515
573
|
|
|
516
|
-
declare type
|
|
574
|
+
declare type __VLS_Props_27 = {
|
|
517
575
|
value?: number;
|
|
518
576
|
label: string;
|
|
519
577
|
};
|
|
520
578
|
|
|
521
|
-
declare type
|
|
579
|
+
declare type __VLS_Props_28 = {
|
|
522
580
|
label?: string;
|
|
523
581
|
size?: number;
|
|
524
582
|
};
|
|
525
583
|
|
|
526
|
-
declare type
|
|
584
|
+
declare type __VLS_Props_29 = {
|
|
527
585
|
nodeId: string;
|
|
528
586
|
tagName: string;
|
|
529
587
|
label: string;
|
|
@@ -540,24 +598,6 @@ declare type __VLS_Props_25 = {
|
|
|
540
598
|
treeMeta?: TreeItemMeta;
|
|
541
599
|
};
|
|
542
600
|
|
|
543
|
-
declare type __VLS_Props_26 = {
|
|
544
|
-
groupId: string;
|
|
545
|
-
tagName: string;
|
|
546
|
-
label: string;
|
|
547
|
-
count: number;
|
|
548
|
-
width: number;
|
|
549
|
-
collapsedMembersHeight: number;
|
|
550
|
-
members?: GroupMember[];
|
|
551
|
-
expanded?: boolean;
|
|
552
|
-
expandable?: boolean;
|
|
553
|
-
testId?: string;
|
|
554
|
-
toggleTestId?: string;
|
|
555
|
-
/** undefined = consumer does not manage focus; no tabindex is rendered.
|
|
556
|
-
* true/false = consumer manages a roving tabindex (tabindex 0 / -1). */
|
|
557
|
-
tabbable?: boolean;
|
|
558
|
-
treeMeta?: TreeItemMeta;
|
|
559
|
-
};
|
|
560
|
-
|
|
561
601
|
declare type __VLS_Props_3 = {
|
|
562
602
|
options: AcceptableValue[];
|
|
563
603
|
displayValue: (item: AcceptableValue) => string;
|
|
@@ -587,6 +627,24 @@ declare type __VLS_Props_3 = {
|
|
|
587
627
|
inputId?: string;
|
|
588
628
|
};
|
|
589
629
|
|
|
630
|
+
declare type __VLS_Props_30 = {
|
|
631
|
+
groupId: string;
|
|
632
|
+
tagName: string;
|
|
633
|
+
label: string;
|
|
634
|
+
count: number;
|
|
635
|
+
width: number;
|
|
636
|
+
collapsedMembersHeight: number;
|
|
637
|
+
members?: GroupMember[];
|
|
638
|
+
expanded?: boolean;
|
|
639
|
+
expandable?: boolean;
|
|
640
|
+
testId?: string;
|
|
641
|
+
toggleTestId?: string;
|
|
642
|
+
/** undefined = consumer does not manage focus; no tabindex is rendered.
|
|
643
|
+
* true/false = consumer manages a roving tabindex (tabindex 0 / -1). */
|
|
644
|
+
tabbable?: boolean;
|
|
645
|
+
treeMeta?: TreeItemMeta;
|
|
646
|
+
};
|
|
647
|
+
|
|
590
648
|
declare type __VLS_Props_4 = {
|
|
591
649
|
options: {
|
|
592
650
|
value: string;
|
|
@@ -670,11 +728,11 @@ declare type __VLS_PublicProps_5 = {
|
|
|
670
728
|
declare type __VLS_PublicProps_6 = {
|
|
671
729
|
modelValue?: string;
|
|
672
730
|
'invalid'?: boolean;
|
|
673
|
-
} &
|
|
731
|
+
} & __VLS_Props_23;
|
|
674
732
|
|
|
675
733
|
declare type __VLS_PublicProps_7 = {
|
|
676
734
|
'open'?: boolean;
|
|
677
|
-
} &
|
|
735
|
+
} & __VLS_Props_26;
|
|
678
736
|
|
|
679
737
|
declare function __VLS_template(): {
|
|
680
738
|
attrs: Partial<{}>;
|
|
@@ -686,6 +744,33 @@ declare function __VLS_template(): {
|
|
|
686
744
|
};
|
|
687
745
|
|
|
688
746
|
declare function __VLS_template_10(): {
|
|
747
|
+
attrs: Partial<{}>;
|
|
748
|
+
slots: {
|
|
749
|
+
default?(_: {}): any;
|
|
750
|
+
};
|
|
751
|
+
refs: {};
|
|
752
|
+
rootEl: HTMLElement;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
declare function __VLS_template_11(): {
|
|
756
|
+
attrs: Partial<{}>;
|
|
757
|
+
slots: {
|
|
758
|
+
default?(_: {}): any;
|
|
759
|
+
};
|
|
760
|
+
refs: {};
|
|
761
|
+
rootEl: HTMLDivElement;
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
declare function __VLS_template_12(): {
|
|
765
|
+
attrs: Partial<{}>;
|
|
766
|
+
slots: {
|
|
767
|
+
footer?(_: {}): any;
|
|
768
|
+
};
|
|
769
|
+
refs: {};
|
|
770
|
+
rootEl: HTMLDivElement;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
declare function __VLS_template_13(): {
|
|
689
774
|
attrs: Partial<{}>;
|
|
690
775
|
slots: {
|
|
691
776
|
main?(_: {}): any;
|
|
@@ -695,7 +780,7 @@ declare function __VLS_template_10(): {
|
|
|
695
780
|
rootEl: any;
|
|
696
781
|
};
|
|
697
782
|
|
|
698
|
-
declare function
|
|
783
|
+
declare function __VLS_template_14(): {
|
|
699
784
|
attrs: Partial<{}>;
|
|
700
785
|
slots: {
|
|
701
786
|
default?(_: {}): any;
|
|
@@ -704,7 +789,7 @@ declare function __VLS_template_11(): {
|
|
|
704
789
|
rootEl: HTMLElement;
|
|
705
790
|
};
|
|
706
791
|
|
|
707
|
-
declare function
|
|
792
|
+
declare function __VLS_template_15(): {
|
|
708
793
|
attrs: Partial<{}>;
|
|
709
794
|
slots: Readonly<{
|
|
710
795
|
default(): unknown;
|
|
@@ -719,7 +804,7 @@ declare function __VLS_template_12(): {
|
|
|
719
804
|
rootEl: any;
|
|
720
805
|
};
|
|
721
806
|
|
|
722
|
-
declare function
|
|
807
|
+
declare function __VLS_template_16(): {
|
|
723
808
|
attrs: Partial<{}>;
|
|
724
809
|
slots: {
|
|
725
810
|
member?(_: {
|
|
@@ -1060,7 +1145,7 @@ declare function __VLS_template_8(): {
|
|
|
1060
1145
|
declare function __VLS_template_9(): {
|
|
1061
1146
|
attrs: Partial<{}>;
|
|
1062
1147
|
slots: {
|
|
1063
|
-
|
|
1148
|
+
notice?(_: {}): any;
|
|
1064
1149
|
};
|
|
1065
1150
|
refs: {};
|
|
1066
1151
|
rootEl: HTMLDivElement;
|
|
@@ -1076,6 +1161,12 @@ declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
|
1076
1161
|
|
|
1077
1162
|
declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
|
|
1078
1163
|
|
|
1164
|
+
declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
|
|
1165
|
+
|
|
1166
|
+
declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
|
|
1167
|
+
|
|
1168
|
+
declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
|
|
1169
|
+
|
|
1079
1170
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1080
1171
|
|
|
1081
1172
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1122,6 +1213,24 @@ declare type __VLS_WithTemplateSlots_13<T, S> = T & {
|
|
|
1122
1213
|
};
|
|
1123
1214
|
};
|
|
1124
1215
|
|
|
1216
|
+
declare type __VLS_WithTemplateSlots_14<T, S> = T & {
|
|
1217
|
+
new (): {
|
|
1218
|
+
$slots: S;
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
declare type __VLS_WithTemplateSlots_15<T, S> = T & {
|
|
1223
|
+
new (): {
|
|
1224
|
+
$slots: S;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
declare type __VLS_WithTemplateSlots_16<T, S> = T & {
|
|
1229
|
+
new (): {
|
|
1230
|
+
$slots: S;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1125
1234
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1126
1235
|
new (): {
|
|
1127
1236
|
$slots: S;
|
|
@@ -1242,6 +1351,15 @@ export declare function buildTreeOptions<T>(rows: readonly T[], getPath: (row: T
|
|
|
1242
1351
|
|
|
1243
1352
|
export declare function buildXpath({ anchor, targets, nameFilter, nameParent, }: XpathBuilderState): string;
|
|
1244
1353
|
|
|
1354
|
+
export declare const BulkEditField: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
1355
|
+
|
|
1356
|
+
export declare const BulkEditPanel: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
1357
|
+
|
|
1358
|
+
export declare interface BulkEditValidation<TFields> {
|
|
1359
|
+
fieldErrors: Partial<Record<FieldName<TFields>, string>>;
|
|
1360
|
+
rowErrors: Record<string, FieldName<TFields>[]>;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1245
1363
|
export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1246
1364
|
|
|
1247
1365
|
export declare const CATEGORY_ELEMENTS: Record<string, string[]>;
|
|
@@ -1349,9 +1467,9 @@ export declare type Connection = {
|
|
|
1349
1467
|
target: string;
|
|
1350
1468
|
};
|
|
1351
1469
|
|
|
1352
|
-
export declare const ContextMenu: DefineComponent<
|
|
1470
|
+
export declare const ContextMenu: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1353
1471
|
close: () => any;
|
|
1354
|
-
}, string, PublicProps, Readonly<
|
|
1472
|
+
}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{
|
|
1355
1473
|
onClose?: (() => any) | undefined;
|
|
1356
1474
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1357
1475
|
|
|
@@ -1431,14 +1549,14 @@ export declare type DiagramLayoutOptions<TRecord extends LayoutTreeRecord, TNode
|
|
|
1431
1549
|
toEdge: (context: EdgeMapperContext) => TEdge;
|
|
1432
1550
|
};
|
|
1433
1551
|
|
|
1434
|
-
export declare const DiagramNodeCard: DefineComponent<
|
|
1552
|
+
export declare const DiagramNodeCard: DefineComponent<__VLS_Props_29, {
|
|
1435
1553
|
focus: () => void | undefined;
|
|
1436
1554
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1437
1555
|
select: (nodeId: string) => any;
|
|
1438
1556
|
keydown: (event: KeyboardEvent) => any;
|
|
1439
1557
|
"toggle-expand": (nodeId: string) => any;
|
|
1440
1558
|
"show-details": (nodeId: string) => any;
|
|
1441
|
-
}, string, PublicProps, Readonly<
|
|
1559
|
+
}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{
|
|
1442
1560
|
onSelect?: ((nodeId: string) => any) | undefined;
|
|
1443
1561
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
1444
1562
|
"onToggle-expand"?: ((nodeId: string) => any) | undefined;
|
|
@@ -1456,7 +1574,7 @@ treeMeta: TreeItemMeta;
|
|
|
1456
1574
|
rootEl: HTMLDivElement;
|
|
1457
1575
|
}, HTMLDivElement>;
|
|
1458
1576
|
|
|
1459
|
-
export declare const DiagramNodeGroup:
|
|
1577
|
+
export declare const DiagramNodeGroup: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
1460
1578
|
|
|
1461
1579
|
/**
|
|
1462
1580
|
* What a dialecte project's BroadcastChannel carries — the public event contract
|
|
@@ -1609,6 +1727,8 @@ export declare type FeedbackPayload = {
|
|
|
1609
1727
|
/** The built-in feedback flavours the host renders (error/success/warning templates). */
|
|
1610
1728
|
export declare type FeedbackVariant = 'error' | 'success' | 'warning';
|
|
1611
1729
|
|
|
1730
|
+
declare type FieldName<TFields> = keyof TFields & string;
|
|
1731
|
+
|
|
1612
1732
|
export declare const FilterableColumnHeader: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1613
1733
|
funnelRef: HTMLButtonElement;
|
|
1614
1734
|
popoverWrapperRef: HTMLDivElement;
|
|
@@ -2087,7 +2207,7 @@ export declare function parseNoteData(value: string | undefined): NoteData | und
|
|
|
2087
2207
|
|
|
2088
2208
|
export declare function parseXpath(xpath: string): XpathBuilderState | undefined;
|
|
2089
2209
|
|
|
2090
|
-
export declare const ProgressBar: DefineComponent<
|
|
2210
|
+
export declare const ProgressBar: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2091
2211
|
|
|
2092
2212
|
/** Presentation progress: a held monotonic fraction in `[0, 1]` and its caption. */
|
|
2093
2213
|
export declare type ProgressDisplay = {
|
|
@@ -2137,6 +2257,8 @@ export declare type RowAriaParams = {
|
|
|
2137
2257
|
headerRows?: number;
|
|
2138
2258
|
};
|
|
2139
2259
|
|
|
2260
|
+
export declare type RowSelection<TKey> = ReturnType<typeof useRowSelection<TKey>>;
|
|
2261
|
+
|
|
2140
2262
|
export declare interface RowSortController<TRow, TColId extends string> {
|
|
2141
2263
|
isSortable: (column: TColId) => boolean;
|
|
2142
2264
|
getDirection: (column: TColId) => SortDirection | null;
|
|
@@ -2173,7 +2295,22 @@ export declare type ScrollToIndexParams = {
|
|
|
2173
2295
|
align?: ScrollAlign;
|
|
2174
2296
|
};
|
|
2175
2297
|
|
|
2176
|
-
export declare const
|
|
2298
|
+
export declare const SelectionCheckbox: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2299
|
+
toggle: () => any;
|
|
2300
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
2301
|
+
onToggle?: (() => any) | undefined;
|
|
2302
|
+
}>, {
|
|
2303
|
+
disabled: boolean;
|
|
2304
|
+
indeterminate: boolean;
|
|
2305
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2306
|
+
inputRef: HTMLInputElement;
|
|
2307
|
+
}, HTMLInputElement>;
|
|
2308
|
+
|
|
2309
|
+
export declare type SelectionHeaderState = 'none' | 'some' | 'all';
|
|
2310
|
+
|
|
2311
|
+
export declare const SelectionToolbar: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2312
|
+
|
|
2313
|
+
export declare const SelectorInput: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2177
2314
|
|
|
2178
2315
|
export declare function serializeNoteData({ categories, otherTags, ...rest }: NoteData): string;
|
|
2179
2316
|
|
|
@@ -2185,7 +2322,7 @@ export declare type Spacers = {
|
|
|
2185
2322
|
after: number;
|
|
2186
2323
|
};
|
|
2187
2324
|
|
|
2188
|
-
export declare const Spinner: DefineComponent<
|
|
2325
|
+
export declare const Spinner: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {
|
|
2189
2326
|
size: number;
|
|
2190
2327
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
2191
2328
|
|
|
@@ -2197,11 +2334,14 @@ export declare type SplitKeptItemsParams<T extends Pick<VirtualItem, 'start' | '
|
|
|
2197
2334
|
items: readonly T[];
|
|
2198
2335
|
};
|
|
2199
2336
|
|
|
2200
|
-
export declare const SplitLayout:
|
|
2337
|
+
export declare const SplitLayout: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
2201
2338
|
|
|
2202
|
-
export declare const StatusBar:
|
|
2339
|
+
export declare const StatusBar: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
2203
2340
|
|
|
2204
|
-
export declare const StatusBarItem:
|
|
2341
|
+
export declare const StatusBarItem: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
2342
|
+
|
|
2343
|
+
/** What a bulk-edit field shows for the selected rows: their shared value, or how many differ. */
|
|
2344
|
+
export declare function summarizeValues(values: string[]): ValueSummary;
|
|
2205
2345
|
|
|
2206
2346
|
export declare const TextInputAutocomplete: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2207
2347
|
"update:modelValue": (value: string) => any;
|
|
@@ -2262,6 +2402,24 @@ export declare function useActiveDocument<GenericDocument>(params: {
|
|
|
2262
2402
|
stop: () => void;
|
|
2263
2403
|
};
|
|
2264
2404
|
|
|
2405
|
+
export declare function useBulkEditForm<TRow, TFields extends Record<string, string>>(config: UseBulkEditFormConfig<TRow, TFields>): {
|
|
2406
|
+
values: TFields;
|
|
2407
|
+
summaries: ComputedRef<Record<FieldName<TFields>, ValueSummary>>;
|
|
2408
|
+
setValue: (field: FieldName<TFields>, value: string) => void;
|
|
2409
|
+
changedFields: ComputedRef<FieldName<TFields>[]>;
|
|
2410
|
+
edit: ComputedRef<Partial<TFields>>;
|
|
2411
|
+
errors: ComputedRef<BulkEditValidation<TFields>>;
|
|
2412
|
+
errorCount: ComputedRef<number>;
|
|
2413
|
+
canApply: ComputedRef<boolean>;
|
|
2414
|
+
reset: () => void;
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
export declare interface UseBulkEditFormConfig<TRow, TFields extends Record<string, string>> {
|
|
2418
|
+
rows: () => TRow[];
|
|
2419
|
+
read: (row: TRow) => TFields;
|
|
2420
|
+
validate: (edit: Partial<TFields>, rows: TRow[]) => BulkEditValidation<TFields>;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2265
2423
|
export declare function useColumnFilterHeaderContext(): ColumnFilterHeaderModel;
|
|
2266
2424
|
|
|
2267
2425
|
/**
|
|
@@ -2411,6 +2569,24 @@ export declare function useProjectLiveData<T>(params: {
|
|
|
2411
2569
|
refresh: () => Promise<void>;
|
|
2412
2570
|
};
|
|
2413
2571
|
|
|
2572
|
+
export declare function useRowSelection<TKey>(config: UseRowSelectionConfig<TKey>): {
|
|
2573
|
+
count: ComputedRef<number>;
|
|
2574
|
+
totalCount: ComputedRef<number>;
|
|
2575
|
+
visibleCount: ComputedRef<number>;
|
|
2576
|
+
selectedKeys: ComputedRef<TKey[]>;
|
|
2577
|
+
headerState: ComputedRef<SelectionHeaderState>;
|
|
2578
|
+
isSelected: (key: TKey) => boolean;
|
|
2579
|
+
toggle: (key: TKey) => void;
|
|
2580
|
+
selectAllVisible: () => void;
|
|
2581
|
+
toggleAllVisible: () => void;
|
|
2582
|
+
clear: () => void;
|
|
2583
|
+
};
|
|
2584
|
+
|
|
2585
|
+
export declare interface UseRowSelectionConfig<TKey> {
|
|
2586
|
+
allKeys: () => TKey[];
|
|
2587
|
+
visibleKeys: () => TKey[];
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2414
2590
|
/**
|
|
2415
2591
|
* Explicit, user-triggered row sort: rows keep whatever order they already have and
|
|
2416
2592
|
* only change when the user clicks a sortable column header. Clicking cycles
|
|
@@ -2466,6 +2642,16 @@ export declare function validateSearchText(value: string): string | undefined;
|
|
|
2466
2642
|
|
|
2467
2643
|
export declare function validateXpath(xpath: string): string | undefined;
|
|
2468
2644
|
|
|
2645
|
+
export declare type ValueSummary = {
|
|
2646
|
+
kind: 'same';
|
|
2647
|
+
value: string;
|
|
2648
|
+
hint: string;
|
|
2649
|
+
} | {
|
|
2650
|
+
kind: 'mixed';
|
|
2651
|
+
distinct: number;
|
|
2652
|
+
hint: string;
|
|
2653
|
+
};
|
|
2654
|
+
|
|
2469
2655
|
/** One axis of `useVirtualScroller`. */
|
|
2470
2656
|
export declare type VirtualAxis = {
|
|
2471
2657
|
count: MaybeRefOrGetter<number>;
|
package/dist/index.js
CHANGED
|
@@ -51,27 +51,35 @@ import { useColumnFilters as ie } from "./table/filters/use-column-filters.js";
|
|
|
51
51
|
import { useRowSort as ae } from "./table/filters/use-row-sort.js";
|
|
52
52
|
import { provideColumnFilterHeader as oe, useColumnFilterHeaderContext as se } from "./table/column-filter-context.js";
|
|
53
53
|
import { provideRowSortHeader as ce, useOptionalRowSortContext as le } from "./table/row-sort-context.js";
|
|
54
|
-
import ue from "./table/
|
|
54
|
+
import { useRowSelection as ue } from "./table/selection/use-row-selection.js";
|
|
55
|
+
import de from "./table/selection/selection-checkbox.js";
|
|
56
|
+
import fe from "./table/selection/selection-toolbar.js";
|
|
57
|
+
import pe from "./table/filterable-column-header.js";
|
|
55
58
|
import "./table/index.js";
|
|
56
|
-
import
|
|
59
|
+
import me from "./bulk-edit/bulk-edit-panel.js";
|
|
60
|
+
import he from "./bulk-edit/bulk-edit-field.js";
|
|
61
|
+
import { summarizeValues as ge } from "./bulk-edit/summarize-values.js";
|
|
62
|
+
import { useBulkEditForm as _e } from "./bulk-edit/use-bulk-edit-form.js";
|
|
63
|
+
import "./bulk-edit/index.js";
|
|
64
|
+
import ve from "./context-menu/context-menu.js";
|
|
57
65
|
import "./context-menu/index.js";
|
|
58
|
-
import { buildXpath as
|
|
59
|
-
import
|
|
66
|
+
import { buildXpath as ye, matchName as be, parseXpath as xe, validateSearchText as Se, validateXpath as Ce } from "./selector-input/selector-xpath.js";
|
|
67
|
+
import we from "./selector-input/selector-input.js";
|
|
60
68
|
import "./selector-input/index.js";
|
|
61
|
-
import
|
|
69
|
+
import Te from "./split-layout/split-layout.js";
|
|
62
70
|
import "./split-layout/index.js";
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
71
|
+
import Ee from "./status-bar/status-bar.js";
|
|
72
|
+
import De from "./status-bar/status-bar-item.js";
|
|
73
|
+
import Oe from "./status-bar/progress-bar.js";
|
|
74
|
+
import ke from "./status-bar/spinner.js";
|
|
67
75
|
import "./status-bar/index.js";
|
|
68
|
-
import { applyInitialVisibility as
|
|
69
|
-
import { groupStackMetrics as
|
|
70
|
-
import { GROUP_COLLAPSED_MEMBERS_HEIGHT as
|
|
71
|
-
import { computeGroups as
|
|
72
|
-
import { createElkLayoutEngine as
|
|
73
|
-
import { useDiagramLayout as
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
+
import { applyInitialVisibility as Ae, buildRecordCache as je, collectVisibleIds as Me, hideDescendants as Ne } from "./diagram-layout/visibility-model.js";
|
|
77
|
+
import { groupStackMetrics as Pe } from "./diagram-layout/group-stack.js";
|
|
78
|
+
import { GROUP_COLLAPSED_MEMBERS_HEIGHT as Fe, GROUP_HEADER_HEIGHT as Ie, GROUP_MEMBER_GAP as Le, GROUP_MEMBER_HEIGHT as Re, GROUP_MEMBER_HEIGHT_COMPACT as ze, memberCardHeight as Be } from "./diagram-layout/group-geometry.js";
|
|
79
|
+
import { computeGroups as Ve, isGroupId as He, makeGroupId as Ue } from "./diagram-layout/grouping.js";
|
|
80
|
+
import { createElkLayoutEngine as We } from "./diagram-layout/elk-layout-engine.js";
|
|
81
|
+
import { useDiagramLayout as Ge } from "./diagram-layout/use-diagram-layout.js";
|
|
82
|
+
import Ke from "./diagram-layout/diagram-node-card.js";
|
|
83
|
+
import qe from "./diagram-layout/diagram-node-group.js";
|
|
76
84
|
import "./diagram-layout/index.js";
|
|
77
|
-
export { s as Button, x as CATEGORY_ELEMENTS, B as CodeBlock, l as Combobox,
|
|
85
|
+
export { he as BulkEditField, me as BulkEditPanel, s as Button, x as CATEGORY_ELEMENTS, B as CodeBlock, l as Combobox, ve as ContextMenu, E as DEFAULT_OVERSCAN, Ke as DiagramNodeCard, qe as DiagramNodeGroup, p as Dialog, y as DialogHost, b as DocumentProgressBar, c as Dropdown, S as ELEMENT_TO_COLOR, C as ELEMENT_TO_ICON, w as ElementBadge, m as FeedbackDialog, pe as FilterableColumnHeader, u as FloatingTooltip, Fe as GROUP_COLLAPSED_MEMBERS_HEIGHT, Ie as GROUP_HEADER_HEIGHT, Le as GROUP_MEMBER_GAP, Re as GROUP_MEMBER_HEIGHT, ze as GROUP_MEMBER_HEIGHT_COMPACT, X as KEY_SEPARATOR, R as LibraryBrowser, d as MultiSelect, U as NOTE_CATEGORIES, W as NOTE_CATEGORY_LABELS, G as NOTE_STATUSES, Z as NO_VALUE_KEY, Y as NoteCategoryPicker, J as NoteCategoryTag, Oe as ProgressBar, L as SclExplorer, I as SclTree, de as SelectionCheckbox, fe as SelectionToolbar, we as SelectorInput, ke as Spinner, Te as SplitLayout, Ee as StatusBar, De as StatusBarItem, f as TextInputAutocomplete, H as XmlDiff, Ae as applyInitialVisibility, Q as buildFlatOptions, $ as buildMultiValueOptions, je as buildRecordCache, ee as buildTreeOptions, ye as buildXpath, N as cellAria, T as collectExpandableNodeIds, te as collectLeafKeys, ne as collectParentKeys, Me as collectVisibleIds, Ve as computeGroups, D as computeSpacers, h as createDialogHost, e as createDocumentStore, We as createElkLayoutEngine, g as dialogHostKey, V as diffLines, re as filterTree, j as findNextIndex, P as gridAria, Pe as groupStackMetrics, Ne as hideDescendants, z as highlightCode, He as isGroupId, Ue as makeGroupId, be as matchName, Be as memberCardHeight, O as mergeKeptIndices, M as moveGridPosition, K as parseNoteData, xe as parseXpath, oe as provideColumnFilterHeader, _ as provideDialogHost, ce as provideRowSortHeader, F as rowAria, q as serializeNoteData, k as splitKeptItems, ge as summarizeValues, i as useActiveDocument, _e as useBulkEditForm, se as useColumnFilterHeaderContext, ie as useColumnFilters, Ge as useDiagramLayout, t as useDialecteChannel, v as useDialog, a as useDocumentProgress, o as useDocumentState, n as useLiveData, le as useOptionalRowSortContext, r as useProjectLiveData, ue as useRowSelection, ae as useRowSort, A as useVirtualScroller, Se as validateSearchText, Ce as validateXpath };
|
|
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./filterable-column-header.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region lib/table/filterable-column-header.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-9e08e694"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|