@pantograph/vue 0.34.2 → 0.34.4
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/Alert/Alert.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +3 -1
- package/dist/components/Banner/Banner.model.d.ts +12 -0
- package/dist/components/Base/BaseInput/BaseInput.d.ts +11 -24
- package/dist/components/Combobox/Combobox.d.ts +3 -1
- package/dist/components/Combobox/context.d.ts +0 -1
- package/dist/components/Combobox/types.d.ts +1 -0
- package/dist/components/Comment/CommentMention.d.ts +6 -2
- 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/Input/Input.d.ts +5 -97
- package/dist/components/InputNumber/InputNumber.d.ts +5 -96
- package/dist/components/Link/Link.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts +3 -0
- package/dist/components/Popover/utils/portal.d.ts +3 -1
- package/dist/components/Popover/utils/usePopoverContext.d.ts +1 -1
- package/dist/components/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/types.d.ts +7 -5
- package/dist/components/SubMenu/SubMenu.d.ts +14 -1
- package/dist/components/Textarea/Textarea.d.ts +4 -3
- package/dist/index.js +9759 -9669
- package/dist/index.umd.cjs +11 -11
- package/package.json +3 -3
|
@@ -57,7 +57,9 @@ export type AlertDialogProps = Omit<DialogProps, 'noBody' | 'canFullScreen' | 'f
|
|
|
57
57
|
* <AlertDialog :go-props="{ size: 'lg', color: 'red' }" />
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
goProps?: GraphicalObjectProps
|
|
60
|
+
goProps?: GraphicalObjectProps & {
|
|
61
|
+
hide?: boolean;
|
|
62
|
+
};
|
|
61
63
|
/**
|
|
62
64
|
* Visual type of the alert dialog.
|
|
63
65
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of valid banner types
|
|
3
|
+
*/
|
|
4
|
+
export declare const BannerColors: readonly ["success-subtle", "primary-subtle", "danger-subtle", "warning-subtle", "info-subtle", "neutral-subtle", "primary", "danger", "warning", "info", "success", "neutral"];
|
|
5
|
+
/**
|
|
6
|
+
* Type representing the possible banner colors
|
|
7
|
+
*/
|
|
8
|
+
export type BannerColor = (typeof BannerColors)[number];
|
|
9
|
+
export declare const BannerPlacements: readonly ["top", "bottom"];
|
|
10
|
+
export type BannerPlacement = (typeof BannerPlacements)[number];
|
|
11
|
+
export declare const BannerPositions: readonly ["absolute", "fixed"];
|
|
12
|
+
export type BannerPosition = (typeof BannerPositions)[number];
|
|
@@ -6,6 +6,10 @@ import { Ref } from 'vue';
|
|
|
6
6
|
* Props for the BaseInput component
|
|
7
7
|
*/
|
|
8
8
|
export interface BaseInputProps {
|
|
9
|
+
/**
|
|
10
|
+
* Whether the input is read-only
|
|
11
|
+
*/
|
|
12
|
+
readonly?: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* Whether the input is disabled
|
|
11
15
|
*/
|
|
@@ -80,11 +84,7 @@ export interface BaseInputProps {
|
|
|
80
84
|
* Whether the input should fit its content
|
|
81
85
|
*/
|
|
82
86
|
contentFit?: boolean;
|
|
83
|
-
|
|
84
|
-
* Whether to apply autofill styles to the input
|
|
85
|
-
* @default true
|
|
86
|
-
*/
|
|
87
|
-
autofillStyle?: boolean;
|
|
87
|
+
outsideFgColor?: boolean;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Slots for the BaseInput component
|
|
@@ -116,10 +116,6 @@ export interface BaseInputSlots {
|
|
|
116
116
|
* Clear icon slot
|
|
117
117
|
*/
|
|
118
118
|
clearIcon?: (params?: object) => never;
|
|
119
|
-
/**
|
|
120
|
-
* Value slot
|
|
121
|
-
*/
|
|
122
|
-
value?: (params?: object) => never;
|
|
123
119
|
}
|
|
124
120
|
/**
|
|
125
121
|
* Emits for the BaseInput component
|
|
@@ -129,10 +125,7 @@ export interface BaseInputEmits {
|
|
|
129
125
|
* Emitted when the input is cleared
|
|
130
126
|
*/
|
|
131
127
|
clear: [];
|
|
132
|
-
|
|
133
|
-
* Emitted when the input size changes
|
|
134
|
-
*/
|
|
135
|
-
resize: [value: number];
|
|
128
|
+
pointerdown: [event: PointerEvent];
|
|
136
129
|
}
|
|
137
130
|
/**
|
|
138
131
|
* CSS BEM block prefix for the input component
|
|
@@ -145,7 +138,7 @@ export declare const inputPrefix: string;
|
|
|
145
138
|
*/
|
|
146
139
|
export declare const useInputExposes: (inputRef: Ref<HTMLInputElement | undefined>) => {
|
|
147
140
|
input: Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
148
|
-
focus: (option?: FocusOptions) => void
|
|
141
|
+
focus: (option?: FocusOptions) => void;
|
|
149
142
|
blur: () => void | undefined;
|
|
150
143
|
select: () => void | undefined;
|
|
151
144
|
setSelectionRange: (start: number, end: number, direction?: 'forward' | 'backward' | 'none') => void | undefined;
|
|
@@ -154,27 +147,21 @@ export declare const useInputExposes: (inputRef: Ref<HTMLInputElement | undefine
|
|
|
154
147
|
* Default props for the BaseInput component
|
|
155
148
|
*/
|
|
156
149
|
export declare const BASE_INPUT_DEFAULT_PROPS: {
|
|
150
|
+
readonly readonly: undefined;
|
|
157
151
|
readonly disabled: undefined;
|
|
158
152
|
readonly bordered: true;
|
|
159
|
-
readonly autofillStyle: true;
|
|
160
153
|
readonly clearIcon: "tabler:circle-x";
|
|
161
154
|
};
|
|
162
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseInputProps, {
|
|
163
|
-
adjustWidth: () => void;
|
|
164
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
165
|
-
resize: (value: number) => any;
|
|
155
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
166
156
|
clear: () => any;
|
|
167
157
|
}, string, import('vue').PublicProps, Readonly<BaseInputProps> & Readonly<{
|
|
168
|
-
onResize?: ((value: number) => any) | undefined;
|
|
169
158
|
onClear?: (() => any) | undefined;
|
|
170
159
|
}>, {
|
|
171
160
|
disabled: boolean;
|
|
161
|
+
readonly: boolean;
|
|
172
162
|
clearIcon: string;
|
|
173
163
|
bordered: boolean;
|
|
174
|
-
|
|
175
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
176
|
-
widthRef: HTMLSpanElement;
|
|
177
|
-
}, HTMLDivElement>, Readonly<BaseInputSlots> & BaseInputSlots>;
|
|
164
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<BaseInputSlots> & BaseInputSlots>;
|
|
178
165
|
export default _default;
|
|
179
166
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
180
167
|
new (): {
|
|
@@ -7,6 +7,7 @@ export declare const COMBO_BOX_DEFAULT_PROPS: {
|
|
|
7
7
|
readonly noValueOnPlaceholder: undefined;
|
|
8
8
|
readonly multiple: undefined;
|
|
9
9
|
readonly disabled: undefined;
|
|
10
|
+
readonly readonly: undefined;
|
|
10
11
|
readonly prioritizePosition: false;
|
|
11
12
|
readonly avoidCollisions: undefined;
|
|
12
13
|
readonly sideOffset: 4;
|
|
@@ -94,6 +95,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
94
95
|
onFetch?: (() => any) | undefined;
|
|
95
96
|
}>, {
|
|
96
97
|
disabled: boolean;
|
|
98
|
+
readonly: boolean;
|
|
97
99
|
bordered: boolean;
|
|
98
100
|
multiple: boolean;
|
|
99
101
|
open: boolean;
|
|
@@ -389,8 +391,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
389
391
|
$slots: {
|
|
390
392
|
root?(_: {}): any;
|
|
391
393
|
root?(_: {}): any;
|
|
392
|
-
area?(_: {}): any;
|
|
393
394
|
default?(_: {}): any;
|
|
395
|
+
area?(_: {}): any;
|
|
394
396
|
};
|
|
395
397
|
}) | null;
|
|
396
398
|
treeRef: ({
|
|
@@ -37,5 +37,4 @@ export interface ComboboxContext {
|
|
|
37
37
|
}
|
|
38
38
|
export declare const injectComboboxContext: <T extends ComboboxContext | null | undefined = ComboboxContext>(fallback?: T | undefined) => T extends null ? ComboboxContext | null : ComboboxContext, provideComboboxContext: (contextValue: ComboboxContext) => ComboboxContext;
|
|
39
39
|
export declare const comboboxPrefix: string;
|
|
40
|
-
export declare const comboboxValuePlaceholder: string;
|
|
41
40
|
export declare const comboboxOptionPrefix: string;
|
|
@@ -41,6 +41,7 @@ export interface ComboboxProps extends Partial<Pick<PopoverProps, 'placement' |
|
|
|
41
41
|
defaultValue?: string | string[];
|
|
42
42
|
multiple?: boolean;
|
|
43
43
|
disabled?: boolean;
|
|
44
|
+
readonly?: boolean;
|
|
44
45
|
highlightOnHover?: boolean;
|
|
45
46
|
resetHighlightedOptionAfterSelect?: boolean;
|
|
46
47
|
resetSearchTermOnBlur?: boolean;
|
|
@@ -7,6 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
7
7
|
onMention?: ((value: string | undefined, option?: ComboboxOptionType | undefined) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
disabled: boolean;
|
|
10
|
+
readonly: boolean;
|
|
10
11
|
bordered: boolean;
|
|
11
12
|
multiple: boolean;
|
|
12
13
|
open: boolean;
|
|
@@ -38,6 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
38
39
|
readonly defaultValue?: string | string[] | undefined;
|
|
39
40
|
readonly multiple?: boolean | undefined;
|
|
40
41
|
readonly disabled?: boolean | undefined;
|
|
42
|
+
readonly readonly?: boolean | undefined;
|
|
41
43
|
readonly highlightOnHover?: boolean | undefined;
|
|
42
44
|
readonly resetHighlightedOptionAfterSelect?: boolean | undefined;
|
|
43
45
|
readonly resetSearchTermOnBlur?: boolean | undefined;
|
|
@@ -421,8 +423,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
421
423
|
$slots: {
|
|
422
424
|
root?(_: {}): any;
|
|
423
425
|
root?(_: {}): any;
|
|
424
|
-
area?(_: {}): any;
|
|
425
426
|
default?(_: {}): any;
|
|
427
|
+
area?(_: {}): any;
|
|
426
428
|
};
|
|
427
429
|
}) | null;
|
|
428
430
|
treeRef: ({
|
|
@@ -710,6 +712,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
710
712
|
fetch: () => any;
|
|
711
713
|
}, string, {
|
|
712
714
|
disabled: boolean;
|
|
715
|
+
readonly: boolean;
|
|
713
716
|
bordered: boolean;
|
|
714
717
|
multiple: boolean;
|
|
715
718
|
open: boolean;
|
|
@@ -754,6 +757,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
754
757
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
755
758
|
} & Readonly<{
|
|
756
759
|
disabled: boolean;
|
|
760
|
+
readonly: boolean;
|
|
757
761
|
bordered: boolean;
|
|
758
762
|
multiple: boolean;
|
|
759
763
|
open: boolean;
|
|
@@ -793,7 +797,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
793
797
|
onKeydownEscape?: ((event: import('../Combobox').ComboboxKeydownEvent, search?: string | undefined, isEmpty?: boolean | undefined) => any) | undefined;
|
|
794
798
|
"onUpdate:search"?: ((value?: string | null | undefined) => any) | undefined;
|
|
795
799
|
onFetch?: (() => any) | undefined;
|
|
796
|
-
}>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "inputGroupClass"> & import('vue').ShallowUnwrapRef<{
|
|
800
|
+
}>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "readonly" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "inputGroupClass"> & import('vue').ShallowUnwrapRef<{
|
|
797
801
|
isOptionSelected: (value?: string | undefined) => boolean;
|
|
798
802
|
getOptionByValue: (value: string) => import('../Combobox').ComboboxFlattenOptionType | undefined;
|
|
799
803
|
getLabelByValue: (value: string) => string | undefined;
|
|
@@ -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;
|
|
@@ -29,10 +29,6 @@ export interface InputProps extends Omit<BaseInputProps, 'hasValue'> {
|
|
|
29
29
|
* Whether the input is required
|
|
30
30
|
*/
|
|
31
31
|
required?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the input is read-only
|
|
34
|
-
*/
|
|
35
|
-
readonly?: boolean;
|
|
36
32
|
/**
|
|
37
33
|
* Whether to fit the input width to its content
|
|
38
34
|
*/
|
|
@@ -70,14 +66,14 @@ export interface InputEmits extends HasRootInputEmits, BaseInputEmits {
|
|
|
70
66
|
* Default props for the Input component
|
|
71
67
|
*/
|
|
72
68
|
export declare const INPUT_DEFAULT_PROPS: {
|
|
69
|
+
readonly readonly: undefined;
|
|
73
70
|
readonly disabled: undefined;
|
|
74
71
|
readonly bordered: true;
|
|
75
|
-
readonly autofillStyle: true;
|
|
76
72
|
readonly clearIcon: "tabler:circle-x";
|
|
77
73
|
};
|
|
78
74
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InputProps, {
|
|
79
75
|
input: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
80
|
-
focus: (option?: FocusOptions | undefined) => void
|
|
76
|
+
focus: (option?: FocusOptions | undefined) => void;
|
|
81
77
|
blur: () => void | undefined;
|
|
82
78
|
select: () => void | undefined;
|
|
83
79
|
setSelectionRange: (start: number, end: number, direction?: "none" | "forward" | "backward" | undefined) => void | undefined;
|
|
@@ -85,110 +81,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
|
|
|
85
81
|
blur: (event: InputEvent) => any;
|
|
86
82
|
change: (value?: string | null | undefined) => any;
|
|
87
83
|
focus: (event: InputEvent) => any;
|
|
88
|
-
|
|
84
|
+
pointerdown: (event: PointerEvent) => any;
|
|
89
85
|
clear: () => any;
|
|
90
86
|
"update:modelValue": (value?: string | null | undefined) => any;
|
|
91
87
|
}, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
|
|
92
88
|
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
93
89
|
onChange?: ((value?: string | null | undefined) => any) | undefined;
|
|
94
90
|
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
95
|
-
|
|
91
|
+
onPointerdown?: ((event: PointerEvent) => any) | undefined;
|
|
96
92
|
onClear?: (() => any) | undefined;
|
|
97
93
|
"onUpdate:modelValue"?: ((value?: string | null | undefined) => any) | undefined;
|
|
98
94
|
}>, {
|
|
99
95
|
disabled: boolean;
|
|
96
|
+
readonly: boolean;
|
|
100
97
|
clearIcon: string;
|
|
101
98
|
bordered: boolean;
|
|
102
|
-
autofillStyle: boolean;
|
|
103
99
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
104
|
-
rootRef: ({
|
|
105
|
-
$: import('vue').ComponentInternalInstance;
|
|
106
|
-
$data: {};
|
|
107
|
-
$props: {
|
|
108
|
-
readonly disabled?: boolean | undefined;
|
|
109
|
-
readonly autoFocus?: boolean | undefined;
|
|
110
|
-
readonly leading?: string | undefined;
|
|
111
|
-
readonly trailing?: string | undefined;
|
|
112
|
-
readonly clearIcon?: string | undefined;
|
|
113
|
-
readonly trailingCls?: import('clsx').ClassValue;
|
|
114
|
-
readonly clearIconCls?: import('clsx').ClassValue;
|
|
115
|
-
readonly dividerCls?: import('clsx').ClassValue;
|
|
116
|
-
readonly leadingCls?: import('clsx').ClassValue;
|
|
117
|
-
readonly class?: import('clsx').ClassValue;
|
|
118
|
-
readonly allowClear?: boolean | undefined;
|
|
119
|
-
readonly bordered?: boolean | undefined;
|
|
120
|
-
readonly simple?: boolean | undefined;
|
|
121
|
-
readonly size?: "sm" | "md" | "lg" | undefined;
|
|
122
|
-
readonly status?: "none" | "error" | "success" | "warning" | undefined;
|
|
123
|
-
readonly hasValue?: boolean | undefined;
|
|
124
|
-
readonly steps?: boolean | undefined;
|
|
125
|
-
readonly contentFit?: boolean | undefined;
|
|
126
|
-
readonly autofillStyle?: boolean | undefined;
|
|
127
|
-
readonly onResize?: ((value: number) => any) | undefined;
|
|
128
|
-
readonly onClear?: (() => any) | undefined;
|
|
129
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
130
|
-
$attrs: {
|
|
131
|
-
[x: string]: unknown;
|
|
132
|
-
};
|
|
133
|
-
$refs: {
|
|
134
|
-
[x: string]: unknown;
|
|
135
|
-
} & {
|
|
136
|
-
widthRef: HTMLSpanElement;
|
|
137
|
-
};
|
|
138
|
-
$slots: Readonly<{
|
|
139
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
140
|
-
}>;
|
|
141
|
-
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
142
|
-
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
143
|
-
$host: Element | null;
|
|
144
|
-
$emit: ((event: "resize", value: number) => void) & ((event: "clear") => void);
|
|
145
|
-
$el: HTMLDivElement;
|
|
146
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseInputProps> & Readonly<{
|
|
147
|
-
onResize?: ((value: number) => any) | undefined;
|
|
148
|
-
onClear?: (() => any) | undefined;
|
|
149
|
-
}>, {
|
|
150
|
-
adjustWidth: () => void;
|
|
151
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
152
|
-
resize: (value: number) => any;
|
|
153
|
-
clear: () => any;
|
|
154
|
-
}, string, {
|
|
155
|
-
disabled: boolean;
|
|
156
|
-
clearIcon: string;
|
|
157
|
-
bordered: boolean;
|
|
158
|
-
autofillStyle: boolean;
|
|
159
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
160
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
161
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
162
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
163
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
164
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
165
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
166
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
167
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
168
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
169
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
170
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
171
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
172
|
-
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
173
|
-
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
174
|
-
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
|
|
175
|
-
};
|
|
176
|
-
$forceUpdate: () => void;
|
|
177
|
-
$nextTick: typeof import('vue').nextTick;
|
|
178
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
179
|
-
} & Readonly<{
|
|
180
|
-
disabled: boolean;
|
|
181
|
-
clearIcon: string;
|
|
182
|
-
bordered: boolean;
|
|
183
|
-
autofillStyle: boolean;
|
|
184
|
-
}> & Omit<Readonly<BaseInputProps> & Readonly<{
|
|
185
|
-
onResize?: ((value: number) => any) | undefined;
|
|
186
|
-
onClear?: (() => any) | undefined;
|
|
187
|
-
}>, "adjustWidth" | ("disabled" | "clearIcon" | "bordered" | "autofillStyle")> & import('vue').ShallowUnwrapRef<{
|
|
188
|
-
adjustWidth: () => void;
|
|
189
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
190
|
-
$slots: Readonly<BaseInputSlots> & BaseInputSlots;
|
|
191
|
-
}) | null;
|
|
192
100
|
inputRef: HTMLInputElement;
|
|
193
101
|
}, HTMLDivElement>, Readonly<InputSlots> & InputSlots>;
|
|
194
102
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
1
|
import { HasRootInputEmits } from '@pantograph/utils-vue';
|
|
3
2
|
import { BaseInputEmits, BaseInputProps, BaseInputSlots } from '../Base/BaseInput/BaseInput';
|
|
4
3
|
/**
|
|
@@ -25,8 +24,6 @@ export interface InputNumberProps extends Omit<BaseInputProps, 'hasValue'> {
|
|
|
25
24
|
step?: number;
|
|
26
25
|
/** Whether to show the increment/decrement controls */
|
|
27
26
|
controls?: boolean;
|
|
28
|
-
/** Whether the input is read-only */
|
|
29
|
-
readonly?: boolean;
|
|
30
27
|
}
|
|
31
28
|
/**
|
|
32
29
|
* Slots for the InputNumber component
|
|
@@ -61,14 +58,14 @@ export interface InputNumberEmits extends HasRootInputEmits, BaseInputEmits {
|
|
|
61
58
|
export declare const INPUT_NUMBER_DEFAULT_PROPS: {
|
|
62
59
|
readonly controls: true;
|
|
63
60
|
readonly step: 1;
|
|
61
|
+
readonly readonly: undefined;
|
|
64
62
|
readonly disabled: undefined;
|
|
65
63
|
readonly bordered: true;
|
|
66
|
-
readonly autofillStyle: true;
|
|
67
64
|
readonly clearIcon: "tabler:circle-x";
|
|
68
65
|
};
|
|
69
66
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InputNumberProps, {
|
|
70
67
|
input: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
71
|
-
focus: (option?: FocusOptions | undefined) => void
|
|
68
|
+
focus: (option?: FocusOptions | undefined) => void;
|
|
72
69
|
blur: () => void | undefined;
|
|
73
70
|
select: () => void | undefined;
|
|
74
71
|
setSelectionRange: (start: number, end: number, direction?: "none" | "forward" | "backward" | undefined) => void | undefined;
|
|
@@ -77,7 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
|
|
|
77
74
|
blur: (event: InputEvent) => any;
|
|
78
75
|
change: (value?: number | undefined) => any;
|
|
79
76
|
focus: (event: InputEvent) => any;
|
|
80
|
-
|
|
77
|
+
pointerdown: (event: PointerEvent) => any;
|
|
81
78
|
clear: () => any;
|
|
82
79
|
"update:modelValue": (value?: number | undefined) => any;
|
|
83
80
|
step: (event: {
|
|
@@ -92,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
|
|
|
92
89
|
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
93
90
|
onChange?: ((value?: number | undefined) => any) | undefined;
|
|
94
91
|
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
95
|
-
|
|
92
|
+
onPointerdown?: ((event: PointerEvent) => any) | undefined;
|
|
96
93
|
onClear?: (() => any) | undefined;
|
|
97
94
|
"onUpdate:modelValue"?: ((value?: number | undefined) => any) | undefined;
|
|
98
95
|
onStep?: ((event: {
|
|
@@ -104,100 +101,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
|
|
|
104
101
|
onKeydownEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
105
102
|
}>, {
|
|
106
103
|
disabled: boolean;
|
|
104
|
+
readonly: boolean;
|
|
107
105
|
clearIcon: string;
|
|
108
106
|
bordered: boolean;
|
|
109
|
-
autofillStyle: boolean;
|
|
110
107
|
step: number;
|
|
111
108
|
controls: boolean;
|
|
112
109
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
113
|
-
rootRef: ({
|
|
114
|
-
$: import('vue').ComponentInternalInstance;
|
|
115
|
-
$data: {};
|
|
116
|
-
$props: {
|
|
117
|
-
readonly disabled?: boolean | undefined;
|
|
118
|
-
readonly autoFocus?: boolean | undefined;
|
|
119
|
-
readonly leading?: string | undefined;
|
|
120
|
-
readonly trailing?: string | undefined;
|
|
121
|
-
readonly clearIcon?: string | undefined;
|
|
122
|
-
readonly trailingCls?: import('clsx').ClassValue;
|
|
123
|
-
readonly clearIconCls?: import('clsx').ClassValue;
|
|
124
|
-
readonly dividerCls?: import('clsx').ClassValue;
|
|
125
|
-
readonly leadingCls?: import('clsx').ClassValue;
|
|
126
|
-
readonly class?: import('clsx').ClassValue;
|
|
127
|
-
readonly allowClear?: boolean | undefined;
|
|
128
|
-
readonly bordered?: boolean | undefined;
|
|
129
|
-
readonly simple?: boolean | undefined;
|
|
130
|
-
readonly size?: "sm" | "md" | "lg" | undefined;
|
|
131
|
-
readonly status?: "none" | "error" | "success" | "warning" | undefined;
|
|
132
|
-
readonly hasValue?: boolean | undefined;
|
|
133
|
-
readonly steps?: boolean | undefined;
|
|
134
|
-
readonly contentFit?: boolean | undefined;
|
|
135
|
-
readonly autofillStyle?: boolean | undefined;
|
|
136
|
-
readonly onResize?: ((value: number) => any) | undefined;
|
|
137
|
-
readonly onClear?: (() => any) | undefined;
|
|
138
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
139
|
-
$attrs: {
|
|
140
|
-
[x: string]: unknown;
|
|
141
|
-
};
|
|
142
|
-
$refs: {
|
|
143
|
-
[x: string]: unknown;
|
|
144
|
-
} & {
|
|
145
|
-
widthRef: HTMLSpanElement;
|
|
146
|
-
};
|
|
147
|
-
$slots: Readonly<{
|
|
148
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
149
|
-
}>;
|
|
150
|
-
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
151
|
-
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
152
|
-
$host: Element | null;
|
|
153
|
-
$emit: ((event: "resize", value: number) => void) & ((event: "clear") => void);
|
|
154
|
-
$el: HTMLDivElement;
|
|
155
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseInputProps> & Readonly<{
|
|
156
|
-
onResize?: ((value: number) => any) | undefined;
|
|
157
|
-
onClear?: (() => any) | undefined;
|
|
158
|
-
}>, {
|
|
159
|
-
adjustWidth: () => void;
|
|
160
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
161
|
-
resize: (value: number) => any;
|
|
162
|
-
clear: () => any;
|
|
163
|
-
}, string, {
|
|
164
|
-
disabled: boolean;
|
|
165
|
-
clearIcon: string;
|
|
166
|
-
bordered: boolean;
|
|
167
|
-
autofillStyle: boolean;
|
|
168
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
169
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
170
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
171
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
172
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
173
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
174
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
175
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
176
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
177
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
178
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
179
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
180
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
181
|
-
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
182
|
-
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
183
|
-
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
|
|
184
|
-
};
|
|
185
|
-
$forceUpdate: () => void;
|
|
186
|
-
$nextTick: typeof nextTick;
|
|
187
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
188
|
-
} & Readonly<{
|
|
189
|
-
disabled: boolean;
|
|
190
|
-
clearIcon: string;
|
|
191
|
-
bordered: boolean;
|
|
192
|
-
autofillStyle: boolean;
|
|
193
|
-
}> & Omit<Readonly<BaseInputProps> & Readonly<{
|
|
194
|
-
onResize?: ((value: number) => any) | undefined;
|
|
195
|
-
onClear?: (() => any) | undefined;
|
|
196
|
-
}>, "adjustWidth" | ("disabled" | "clearIcon" | "bordered" | "autofillStyle")> & import('vue').ShallowUnwrapRef<{
|
|
197
|
-
adjustWidth: () => void;
|
|
198
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
199
|
-
$slots: Readonly<BaseInputSlots> & BaseInputSlots;
|
|
200
|
-
}) | null;
|
|
201
110
|
inputRef: HTMLInputElement;
|
|
202
111
|
}, HTMLDivElement>, Readonly<InputNumberSlots> & InputNumberSlots>;
|
|
203
112
|
export default _default;
|
|
@@ -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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
import { PopoverBaseProps } from '../type.ts';
|
|
2
3
|
/**
|
|
3
4
|
* Keys for PopoverPortal props
|
|
4
5
|
*/
|
|
@@ -7,6 +8,7 @@ declare const popoverPortalPropsKeys: readonly ["to", "defer", "disabled", "forc
|
|
|
7
8
|
* Type for PopoverPortal prop names
|
|
8
9
|
*/
|
|
9
10
|
export type PopoverPortalPropsName = Partial<Record<(typeof popoverPortalPropsKeys)[number], string>>;
|
|
11
|
+
export declare const getTOElement: (el: PopoverBaseProps['to'], triggerRef?: Ref<any>) => string | HTMLElement | undefined;
|
|
10
12
|
/**
|
|
11
13
|
* Gets the portal props for the Popover component
|
|
12
14
|
* @param triggerRef Reference to the trigger element
|
|
@@ -18,7 +20,7 @@ export declare const getPopoverPortalProps: ({ triggerRef, props: _props }: {
|
|
|
18
20
|
triggerRef?: Ref<any>;
|
|
19
21
|
props: object;
|
|
20
22
|
}, propsName?: PopoverPortalPropsName) => import('vue').ComputedRef<{
|
|
21
|
-
to: string | HTMLElement;
|
|
23
|
+
to: string | HTMLElement | undefined;
|
|
22
24
|
defer: boolean;
|
|
23
25
|
disabled: boolean;
|
|
24
26
|
forceMount: boolean;
|
|
@@ -29,7 +29,7 @@ export declare const usePopoverContext: ({ slots, prefix, props, emit, emitsAsPr
|
|
|
29
29
|
modal?: boolean | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
portalProps: import('vue').ComputedRef<{
|
|
32
|
-
to: string | HTMLElement;
|
|
32
|
+
to: string | HTMLElement | undefined;
|
|
33
33
|
defer: boolean;
|
|
34
34
|
disabled: boolean;
|
|
35
35
|
forceMount: boolean;
|
|
@@ -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 & {
|
|
@@ -7,6 +7,7 @@ export declare const SELECT_DEFAULT_PROPS: {
|
|
|
7
7
|
readonly defaultOpen: undefined;
|
|
8
8
|
readonly multiple: undefined;
|
|
9
9
|
readonly disabled: undefined;
|
|
10
|
+
readonly readonly: undefined;
|
|
10
11
|
readonly prioritizePosition: undefined;
|
|
11
12
|
readonly avoidCollisions: undefined;
|
|
12
13
|
readonly forceMount: undefined;
|
|
@@ -45,6 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Se
|
|
|
45
46
|
onPointerDownOutside?: ((event: import('reka-ui').PointerDownOutsideEvent) => any) | undefined;
|
|
46
47
|
}>, {
|
|
47
48
|
disabled: boolean;
|
|
49
|
+
readonly: boolean;
|
|
48
50
|
bordered: boolean;
|
|
49
51
|
multiple: boolean;
|
|
50
52
|
open: boolean;
|