@pantograph/vue 0.34.2 → 0.34.3
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/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Comment/CommentMention.d.ts +1 -1
- package/dist/components/Comment/CommentTrigger.d.ts +1 -1
- package/dist/components/DataTable/types/index.d.ts +1 -1
- package/dist/components/DataTable/utils/useSelection.d.ts +2 -1
- package/dist/components/Menu/Menu.d.ts +3 -0
- package/dist/components/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/components/SubMenu/SubMenu.d.ts +14 -1
- package/dist/index.js +3889 -3855
- package/dist/index.umd.cjs +9 -9
- package/package.json +2 -2
|
@@ -389,8 +389,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
389
389
|
$slots: {
|
|
390
390
|
root?(_: {}): any;
|
|
391
391
|
root?(_: {}): any;
|
|
392
|
-
area?(_: {}): any;
|
|
393
392
|
default?(_: {}): any;
|
|
393
|
+
area?(_: {}): any;
|
|
394
394
|
};
|
|
395
395
|
}) | null;
|
|
396
396
|
treeRef: ({
|
|
@@ -421,8 +421,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
421
421
|
$slots: {
|
|
422
422
|
root?(_: {}): any;
|
|
423
423
|
root?(_: {}): any;
|
|
424
|
-
area?(_: {}): any;
|
|
425
424
|
default?(_: {}): any;
|
|
425
|
+
area?(_: {}): any;
|
|
426
426
|
};
|
|
427
427
|
}) | null;
|
|
428
428
|
treeRef: ({
|
|
@@ -73,7 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
73
73
|
}>, {
|
|
74
74
|
text: string;
|
|
75
75
|
disabled: boolean;
|
|
76
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>, Readonly<CommentTriggerSlots> & CommentTriggerSlots>;
|
|
77
77
|
export default _default;
|
|
78
78
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
79
|
new (): {
|
|
@@ -32,7 +32,6 @@ export interface DataTableProps {
|
|
|
32
32
|
childrenColumnName?: string | ((row: any) => any);
|
|
33
33
|
data: object[];
|
|
34
34
|
class?: ClassValue;
|
|
35
|
-
scrollContainerRootCls?: ClassValue;
|
|
36
35
|
theadCls?: ClassValue;
|
|
37
36
|
tbodyCls?: ClassValue;
|
|
38
37
|
actionHoverCls?: ClassValue;
|
|
@@ -76,6 +75,7 @@ export interface DataTableSlots {
|
|
|
76
75
|
emptyDescription?: (params?: object) => never;
|
|
77
76
|
emptyActions?: (params?: object) => never;
|
|
78
77
|
emptyImage?: (params?: object) => never;
|
|
78
|
+
extra?: (params?: object) => never;
|
|
79
79
|
}
|
|
80
80
|
export interface SortItem {
|
|
81
81
|
desc: boolean;
|
|
@@ -25,8 +25,9 @@ export interface SelectionActions {
|
|
|
25
25
|
selectedItemsLength: ComputedRef<number>;
|
|
26
26
|
getSelectCallbackProps: ComputedRef<TableSelectProps>;
|
|
27
27
|
}
|
|
28
|
-
export declare const useTableSelection: (table: Table<unknown>, { selectedRowKeys, props, rowSelection, }: {
|
|
28
|
+
export declare const useTableSelection: (table: Table<unknown>, { selectedRowKeys, props, rowSelection, getHasSelection, }: {
|
|
29
29
|
props: DataTableProps;
|
|
30
30
|
selectedRowKeys: ComputedRef<string[]>;
|
|
31
31
|
rowSelection: Ref<RowSelectionState>;
|
|
32
|
+
getHasSelection: () => boolean;
|
|
32
33
|
}) => SelectionActions;
|
|
@@ -111,6 +111,7 @@ export interface MenuProps {
|
|
|
111
111
|
* @type {MenuGap}
|
|
112
112
|
*/
|
|
113
113
|
gap?: MenuGap;
|
|
114
|
+
closeOnDisabled?: boolean;
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
117
|
* Slots for the Menu component
|
|
@@ -294,6 +295,7 @@ export declare const MENU_DEFAULT_PROPS: {
|
|
|
294
295
|
readonly size: "md";
|
|
295
296
|
readonly triggerSubMenuAction: "hover";
|
|
296
297
|
readonly selectable: true;
|
|
298
|
+
readonly closeOnDisabled: undefined;
|
|
297
299
|
readonly disabled: undefined;
|
|
298
300
|
};
|
|
299
301
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<MenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -328,6 +330,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Me
|
|
|
328
330
|
size: "sm" | "md" | "lg";
|
|
329
331
|
disabled: boolean;
|
|
330
332
|
triggerSubMenuAction: "click" | "hover";
|
|
333
|
+
closeOnDisabled: boolean;
|
|
331
334
|
selectable: boolean;
|
|
332
335
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<MenuSlots> & MenuSlots>;
|
|
333
336
|
export default _default;
|
|
@@ -244,8 +244,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Sc
|
|
|
244
244
|
}, any>, {
|
|
245
245
|
root?(_: {}): any;
|
|
246
246
|
root?(_: {}): any;
|
|
247
|
-
area?(_: {}): any;
|
|
248
247
|
default?(_: {}): any;
|
|
248
|
+
area?(_: {}): any;
|
|
249
249
|
}>;
|
|
250
250
|
export default _default;
|
|
251
251
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -23,6 +23,8 @@ export interface SubMenuProps extends Omit<MenuItemContentProps, 'hasChildren'>
|
|
|
23
23
|
})[];
|
|
24
24
|
/** Whether to extend the parent menu context */
|
|
25
25
|
unExtendParent?: boolean;
|
|
26
|
+
open?: boolean;
|
|
27
|
+
closeOnDisabled?: boolean;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* Slots for the SubMenu component
|
|
@@ -37,6 +39,9 @@ export interface SubMenuSlots extends MenuItemSlots {
|
|
|
37
39
|
key: string;
|
|
38
40
|
}) => never;
|
|
39
41
|
}
|
|
42
|
+
export interface SubMenuEmits {
|
|
43
|
+
'update:open': [value: boolean];
|
|
44
|
+
}
|
|
40
45
|
/**
|
|
41
46
|
* Context interface for the SubMenu component
|
|
42
47
|
*/
|
|
@@ -51,6 +56,7 @@ export declare const SUB_MENU_DEFAULT_PROPS: {
|
|
|
51
56
|
readonly size: "md";
|
|
52
57
|
readonly subMenuCloseDelay: 300;
|
|
53
58
|
readonly subMenuOpenDelay: 700;
|
|
59
|
+
readonly open: undefined;
|
|
54
60
|
readonly forceMountSubmenu: undefined;
|
|
55
61
|
readonly danger: undefined;
|
|
56
62
|
readonly unFocusable: undefined;
|
|
@@ -59,12 +65,18 @@ export declare const SUB_MENU_DEFAULT_PROPS: {
|
|
|
59
65
|
readonly leadingCenter: undefined;
|
|
60
66
|
readonly disabled: undefined;
|
|
61
67
|
readonly unExtendParent: false;
|
|
68
|
+
readonly closeOnDisabled: undefined;
|
|
62
69
|
readonly branchIcon: "tabler:chevron-right";
|
|
63
70
|
};
|
|
64
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SubMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SubMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
|
+
"update:open": (value: boolean) => any;
|
|
73
|
+
}, string, import('vue').PublicProps, Readonly<SubMenuProps> & Readonly<{
|
|
74
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
75
|
+
}>, {
|
|
65
76
|
size: "sm" | "md" | "lg";
|
|
66
77
|
danger: boolean;
|
|
67
78
|
disabled: boolean;
|
|
79
|
+
open: boolean;
|
|
68
80
|
unExtendParent: boolean;
|
|
69
81
|
hoverTrailing: boolean;
|
|
70
82
|
selected: boolean;
|
|
@@ -74,6 +86,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Su
|
|
|
74
86
|
subMenuCloseDelay: number;
|
|
75
87
|
subMenuOpenDelay: number;
|
|
76
88
|
forceMountSubmenu: boolean;
|
|
89
|
+
closeOnDisabled: boolean;
|
|
77
90
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<SubMenuSlots> & SubMenuSlots>;
|
|
78
91
|
export default _default;
|
|
79
92
|
type __VLS_WithTemplateSlots<T, S> = T & {
|