sakana-element 2.2.0 → 2.3.0
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 +95 -22
- package/dist/es/{Alert-C76ZWSVk.js → Alert-BwTsp4X3.js} +2 -2
- package/dist/es/Avatar-CJu6JYV3.js +9 -0
- package/dist/es/{Badge-CoFWwBwv.js → Badge-BmxZXX8k.js} +2 -2
- package/dist/es/{Breadcrumb-BtrwTVKW.js → Breadcrumb-BP8MSklj.js} +2 -2
- package/dist/es/{Button-S_31-UWJ.js → Button-BJHtN7gh.js} +2 -2
- package/dist/es/{Card-DcW6nHYD.js → Card-DJHkCmsz.js} +2 -2
- package/dist/es/Checkbox-DX8L3fyp.js +51 -0
- package/dist/es/{Collapse-DsS7M-m3.js → Collapse-Ir3V9CuO.js} +2 -2
- package/dist/es/{ConfigProvider-BgIewHXP.js → ConfigProvider-CsbSqwwi.js} +1 -1
- package/dist/es/Divider-C7PtODSK.js +9 -0
- package/dist/es/Drawer-C2eVmvUp.js +40 -0
- package/dist/es/Dropdown-CVg_c2fB.js +104 -0
- package/dist/es/{FileInput-BQ59woas.js → FileInput-BE26BmXm.js} +3 -3
- package/dist/es/Form-7lZt5ehf.js +122 -0
- package/dist/es/{Icon-DpJyuj7c.js → Icon-BLDDdSU-.js} +1 -1
- package/dist/es/Indicator-B-en-MgG.js +9 -0
- package/dist/es/{Input-CiE4bPJN.js → Input-C5HuVehE.js} +6 -6
- package/dist/es/{Link-B9B2APZq.js → Link-Av9RdcFv.js} +1 -1
- package/dist/es/{Loading-BW99pE5N.js → Loading-CBNDUWQd.js} +12 -12
- package/dist/es/Message-DgnyyuXn.js +152 -0
- package/dist/es/Notification-LYRXnVAf.js +69 -0
- package/dist/es/{Overlay-BRDSWspM.js → Overlay-CpvMhnuU.js} +1 -1
- package/dist/es/Pixelate-BPypBgJU.js +67 -0
- package/dist/es/Popconfirm-DvxFdLrw.js +23 -0
- package/dist/es/Progress-Bc5INMhJ.js +12 -0
- package/dist/es/Radio-263_rtRl.js +33 -0
- package/dist/es/{Select-Dwqv8isB.js → Select-7ZxUCS8z.js} +13 -13
- package/dist/es/{Switch-B1Gnv1tB.js → Switch-DiCsMJT3.js} +3 -3
- package/dist/es/Table-BvA_xzDe.js +10 -0
- package/dist/es/Tooltip-J3ji6weH.js +74 -0
- package/dist/es/hooks-BqobYUzS.js +171 -0
- package/dist/es/index.js +90 -70
- package/dist/{theme → es/theme}/Avatar.css +13 -43
- package/dist/{theme → es/theme}/Breadcrumb.css +46 -4
- package/dist/es/theme/Card.css +347 -0
- package/dist/es/theme/Checkbox.css +484 -0
- package/dist/es/theme/Divider.css +111 -0
- package/dist/es/theme/Drawer.css +206 -0
- package/dist/es/theme/Dropdown.css +471 -0
- package/dist/es/theme/Indicator.css +159 -0
- package/dist/{theme → es/theme}/Input.css +1 -0
- package/dist/{theme → es/theme}/Link.css +22 -3
- package/dist/{theme → es/theme}/Loading.css +50 -12
- package/dist/{theme → es/theme}/Message.css +249 -40
- package/dist/es/theme/Notification.css +316 -0
- package/dist/es/theme/Popconfirm.css +46 -0
- package/dist/es/theme/Progress.css +278 -0
- package/dist/es/theme/Radio.css +426 -0
- package/dist/es/theme/Table.css +680 -0
- package/dist/es/theme/Tooltip.css +235 -0
- package/dist/es/utils-BS5vsvlM.js +101 -0
- package/dist/index.css +1 -1
- package/dist/types/components/Avatar/types.d.ts +0 -2
- package/dist/types/components/Checkbox/constants.d.ts +5 -0
- package/dist/types/components/Checkbox/index.d.ts +94 -0
- package/dist/types/components/Checkbox/types.d.ts +46 -0
- package/dist/types/components/Collapse/index.d.ts +5 -5
- package/dist/types/components/Divider/index.d.ts +30 -0
- package/dist/types/components/Divider/types.d.ts +10 -0
- package/dist/types/components/Drawer/constants.d.ts +1 -0
- package/dist/types/components/Drawer/index.d.ts +72 -0
- package/dist/types/components/Drawer/types.d.ts +20 -0
- package/dist/types/components/Dropdown/index.d.ts +11 -1
- package/dist/types/components/Dropdown/types.d.ts +3 -0
- package/dist/types/components/Dropdown/useDropdownKeyboard.d.ts +8 -0
- package/dist/types/components/FileInput/index.d.ts +5 -5
- package/dist/types/components/Indicator/constants.d.ts +2 -0
- package/dist/types/components/Indicator/index.d.ts +28 -0
- package/dist/types/components/Indicator/types.d.ts +10 -0
- package/dist/types/components/Input/index.d.ts +10 -10
- package/dist/types/components/Message/methods.d.ts +2 -0
- package/dist/types/components/Message/types.d.ts +7 -1
- package/dist/types/components/MessageBox/types.d.ts +14 -2
- package/dist/types/components/Notification/methods.d.ts +3 -0
- package/dist/types/components/Notification/types.d.ts +8 -2
- package/dist/types/components/Pixelate/constants.d.ts +2 -0
- package/dist/types/components/Pixelate/index.d.ts +71 -0
- package/dist/types/components/Pixelate/types.d.ts +23 -0
- package/dist/types/components/Popconfirm/index.d.ts +16 -7
- package/dist/types/components/Popconfirm/types.d.ts +2 -1
- package/dist/types/components/Progress/constants.d.ts +2 -0
- package/dist/types/components/Progress/index.d.ts +50 -0
- package/dist/types/components/Progress/types.d.ts +22 -0
- package/dist/types/components/Radio/constants.d.ts +5 -0
- package/dist/types/components/Radio/index.d.ts +88 -0
- package/dist/types/components/Radio/types.d.ts +43 -0
- package/dist/types/components/Select/index.d.ts +30 -21
- package/dist/types/components/Switch/index.d.ts +5 -5
- package/dist/types/components/Table/index.d.ts +27 -0
- package/dist/types/components/Table/types.d.ts +20 -0
- package/dist/types/components/Tooltip/index.d.ts +6 -0
- package/dist/types/components/Tooltip/types.d.ts +7 -0
- package/dist/types/components/index.d.ts +8 -0
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/useDraggable.d.ts +7 -0
- package/dist/types/hooks/useFocusTrap.d.ts +5 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/instance-management.d.ts +40 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +4 -4
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +59 -59
- package/dist/es/Avatar-CxsRW-wl.js +0 -9
- package/dist/es/Dropdown-GcomGMAI.js +0 -40
- package/dist/es/Form-j90EzLXU.js +0 -122
- package/dist/es/Message-DCNnTUje.js +0 -123
- package/dist/es/Notification-CBzY5904.js +0 -58
- package/dist/es/Popconfirm-DF6d2ORS.js +0 -23
- package/dist/es/Tooltip-k6gKnMyt.js +0 -74
- package/dist/es/hooks-BaG7l8K5.js +0 -116
- package/dist/es/utils-bsCscZfS.js +0 -84
- package/dist/theme/Card.css +0 -263
- package/dist/theme/Dropdown.css +0 -187
- package/dist/theme/Notification.css +0 -126
- package/dist/theme/Popconfirm.css +0 -30
- package/dist/theme/Tooltip.css +0 -111
- /package/dist/{theme → es/theme}/Alert.css +0 -0
- /package/dist/{theme → es/theme}/Badge.css +0 -0
- /package/dist/{theme → es/theme}/Button.css +0 -0
- /package/dist/{theme → es/theme}/Collapse.css +0 -0
- /package/dist/{theme → es/theme}/FileInput.css +0 -0
- /package/dist/{theme → es/theme}/Form.css +0 -0
- /package/dist/{theme → es/theme}/Icon.css +0 -0
- /package/dist/{theme → es/theme}/Overlay.css +0 -0
- /package/dist/{theme → es/theme}/Select.css +0 -0
- /package/dist/{theme → es/theme}/Switch.css +0 -0
- /package/dist/{theme → es/theme}/fonts/zpix.woff2 +0 -0
- /package/dist/{theme → es/theme}/index.css +0 -0
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export type AvatarSize = 'large' | 'default' | 'small';
|
|
2
2
|
export type AvatarShape = 'circle' | 'square';
|
|
3
|
-
export type AvatarStatus = 'online' | 'offline';
|
|
4
3
|
export interface AvatarProps {
|
|
5
4
|
size?: AvatarSize;
|
|
6
5
|
shape?: AvatarShape;
|
|
7
6
|
border?: boolean;
|
|
8
7
|
color?: string;
|
|
9
|
-
status?: AvatarStatus;
|
|
10
8
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ColorTemplate } from '@sakana-element/utils';
|
|
2
|
+
import { InjectionKey } from 'vue';
|
|
3
|
+
import { CheckboxGroupContext } from './types';
|
|
4
|
+
export declare const CHECKBOX_GROUP_CTX_KEY: InjectionKey<CheckboxGroupContext>;
|
|
5
|
+
export declare const CHECKBOX_COLOR_TEMPLATES: Record<string, ColorTemplate>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export declare const PxCheckbox: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CheckboxProps> & Readonly<{
|
|
3
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
4
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
focus(): void;
|
|
7
|
+
checked: import('vue').ComputedRef<boolean>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
change: (value: boolean) => any;
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
}, import('vue').PublicProps, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
modelValue: boolean;
|
|
14
|
+
indeterminate: boolean;
|
|
15
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
16
|
+
inputRef: HTMLInputElement;
|
|
17
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<import('packages/core').CheckboxProps> & Readonly<{
|
|
25
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
focus(): void;
|
|
29
|
+
checked: import('vue').ComputedRef<boolean>;
|
|
30
|
+
}, {}, {}, {}, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
modelValue: boolean;
|
|
33
|
+
indeterminate: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
__isFragment?: never;
|
|
36
|
+
__isTeleport?: never;
|
|
37
|
+
__isSuspense?: never;
|
|
38
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CheckboxProps> & Readonly<{
|
|
39
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
40
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
focus(): void;
|
|
43
|
+
checked: import('vue').ComputedRef<boolean>;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
45
|
+
change: (value: boolean) => any;
|
|
46
|
+
"update:modelValue": (value: boolean) => any;
|
|
47
|
+
}, string, {
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
modelValue: boolean;
|
|
50
|
+
indeterminate: boolean;
|
|
51
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
52
|
+
$slots: {
|
|
53
|
+
default?(_: {}): any;
|
|
54
|
+
};
|
|
55
|
+
}) & import('vue').Plugin;
|
|
56
|
+
export declare const PxCheckboxGroup: {
|
|
57
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CheckboxGroupProps> & Readonly<{
|
|
58
|
+
onChange?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
|
|
59
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
|
|
60
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
61
|
+
change: (value: import('packages/core').CheckboxValueType[]) => any;
|
|
62
|
+
"update:modelValue": (value: import('packages/core').CheckboxValueType[]) => any;
|
|
63
|
+
}, import('vue').PublicProps, {
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
66
|
+
P: {};
|
|
67
|
+
B: {};
|
|
68
|
+
D: {};
|
|
69
|
+
C: {};
|
|
70
|
+
M: {};
|
|
71
|
+
Defaults: {};
|
|
72
|
+
}, Readonly<import('packages/core').CheckboxGroupProps> & Readonly<{
|
|
73
|
+
onChange?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
|
|
74
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
|
|
75
|
+
}>, {}, {}, {}, {}, {
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
__isFragment?: never;
|
|
79
|
+
__isTeleport?: never;
|
|
80
|
+
__isSuspense?: never;
|
|
81
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CheckboxGroupProps> & Readonly<{
|
|
82
|
+
onChange?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
|
|
83
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
|
|
84
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
85
|
+
change: (value: import('packages/core').CheckboxValueType[]) => any;
|
|
86
|
+
"update:modelValue": (value: import('packages/core').CheckboxValueType[]) => any;
|
|
87
|
+
}, string, {
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
90
|
+
$slots: {
|
|
91
|
+
default?(_: {}): any;
|
|
92
|
+
};
|
|
93
|
+
}) & import('vue').Plugin;
|
|
94
|
+
export * from './types';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
export type CheckboxValueType = string | number | boolean;
|
|
3
|
+
export type CheckboxType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
export interface CheckboxProps {
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
value?: CheckboxValueType;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
indeterminate?: boolean;
|
|
9
|
+
size?: 'small' | 'large';
|
|
10
|
+
type?: CheckboxType;
|
|
11
|
+
color?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CheckboxEmits {
|
|
17
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
18
|
+
(e: 'change', value: boolean): void;
|
|
19
|
+
}
|
|
20
|
+
export interface CheckboxInstance {
|
|
21
|
+
focus(): void;
|
|
22
|
+
checked: ComputedRef<boolean>;
|
|
23
|
+
}
|
|
24
|
+
export interface CheckboxGroupProps {
|
|
25
|
+
modelValue: CheckboxValueType[];
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
size?: 'small' | 'large';
|
|
28
|
+
type?: CheckboxType;
|
|
29
|
+
color?: string;
|
|
30
|
+
min?: number;
|
|
31
|
+
max?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface CheckboxGroupEmits {
|
|
34
|
+
(e: 'update:modelValue', value: CheckboxValueType[]): void;
|
|
35
|
+
(e: 'change', value: CheckboxValueType[]): void;
|
|
36
|
+
}
|
|
37
|
+
export interface CheckboxGroupContext {
|
|
38
|
+
modelValue: ComputedRef<CheckboxValueType[]>;
|
|
39
|
+
disabled: ComputedRef<boolean>;
|
|
40
|
+
size: ComputedRef<'small' | 'large' | undefined>;
|
|
41
|
+
type: ComputedRef<CheckboxType | undefined>;
|
|
42
|
+
color: ComputedRef<string | undefined>;
|
|
43
|
+
min: ComputedRef<number | undefined>;
|
|
44
|
+
max: ComputedRef<number | undefined>;
|
|
45
|
+
changeEvent(value: CheckboxValueType[]): void;
|
|
46
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const PxCollapse: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CollapseProps> & Readonly<{
|
|
3
|
-
"onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
4
3
|
onChange?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
4
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
"update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
|
|
7
6
|
change: (value: import('packages/core').CollapseItemName[]) => any;
|
|
7
|
+
"update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
|
|
8
8
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
9
9
|
P: {};
|
|
10
10
|
B: {};
|
|
@@ -13,18 +13,18 @@ export declare const PxCollapse: {
|
|
|
13
13
|
M: {};
|
|
14
14
|
Defaults: {};
|
|
15
15
|
}, Readonly<import('packages/core').CollapseProps> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
17
16
|
onChange?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, {}>;
|
|
19
19
|
__isFragment?: never;
|
|
20
20
|
__isTeleport?: never;
|
|
21
21
|
__isSuspense?: never;
|
|
22
22
|
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CollapseProps> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
24
23
|
onChange?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
|
-
"update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
|
|
27
26
|
change: (value: import('packages/core').CollapseItemName[]) => any;
|
|
27
|
+
"update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
|
|
28
28
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
29
29
|
$slots: {
|
|
30
30
|
default?(_: {}): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const PxDivider: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
direction: "horizontal" | "vertical";
|
|
4
|
+
contentPosition: "left" | "center" | "right";
|
|
5
|
+
borderStyle: import('packages/core').DividerBorderStyle;
|
|
6
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<import('packages/core').DividerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
14
|
+
direction: "horizontal" | "vertical";
|
|
15
|
+
contentPosition: "left" | "center" | "right";
|
|
16
|
+
borderStyle: import('packages/core').DividerBorderStyle;
|
|
17
|
+
}>;
|
|
18
|
+
__isFragment?: never;
|
|
19
|
+
__isTeleport?: never;
|
|
20
|
+
__isSuspense?: never;
|
|
21
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
22
|
+
direction: "horizontal" | "vertical";
|
|
23
|
+
contentPosition: "left" | "center" | "right";
|
|
24
|
+
borderStyle: import('packages/core').DividerBorderStyle;
|
|
25
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
26
|
+
$slots: {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
}) & import('vue').Plugin;
|
|
30
|
+
export * from './types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type DividerType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
2
|
+
export type DividerBorderStyle = 'solid' | 'dashed' | 'dotted';
|
|
3
|
+
export interface DividerProps {
|
|
4
|
+
direction?: 'horizontal' | 'vertical';
|
|
5
|
+
contentPosition?: 'left' | 'center' | 'right';
|
|
6
|
+
type?: DividerType;
|
|
7
|
+
color?: string;
|
|
8
|
+
borderStyle?: DividerBorderStyle;
|
|
9
|
+
content?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DRAWER_DEFAULT_SIZE = "300px";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const PxDrawer: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').DrawerProps> & Readonly<{
|
|
3
|
+
onClose?: (() => any) | undefined;
|
|
4
|
+
onOpen?: (() => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
open(): void;
|
|
8
|
+
close(): void;
|
|
9
|
+
toggle(): void;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
close: () => any;
|
|
12
|
+
open: () => any;
|
|
13
|
+
"update:modelValue": (value: boolean) => any;
|
|
14
|
+
}, import('vue').PublicProps, {
|
|
15
|
+
size: string;
|
|
16
|
+
placement: "left" | "right";
|
|
17
|
+
showOverlay: boolean;
|
|
18
|
+
lockScroll: boolean;
|
|
19
|
+
closeOnClickOverlay: boolean;
|
|
20
|
+
closeOnEsc: boolean;
|
|
21
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
22
|
+
P: {};
|
|
23
|
+
B: {};
|
|
24
|
+
D: {};
|
|
25
|
+
C: {};
|
|
26
|
+
M: {};
|
|
27
|
+
Defaults: {};
|
|
28
|
+
}, Readonly<import('packages/core').DrawerProps> & Readonly<{
|
|
29
|
+
onClose?: (() => any) | undefined;
|
|
30
|
+
onOpen?: (() => any) | undefined;
|
|
31
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
open(): void;
|
|
34
|
+
close(): void;
|
|
35
|
+
toggle(): void;
|
|
36
|
+
}, {}, {}, {}, {
|
|
37
|
+
size: string;
|
|
38
|
+
placement: "left" | "right";
|
|
39
|
+
showOverlay: boolean;
|
|
40
|
+
lockScroll: boolean;
|
|
41
|
+
closeOnClickOverlay: boolean;
|
|
42
|
+
closeOnEsc: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').DrawerProps> & Readonly<{
|
|
48
|
+
onClose?: (() => any) | undefined;
|
|
49
|
+
onOpen?: (() => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
open(): void;
|
|
53
|
+
close(): void;
|
|
54
|
+
toggle(): void;
|
|
55
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
56
|
+
close: () => any;
|
|
57
|
+
open: () => any;
|
|
58
|
+
"update:modelValue": (value: boolean) => any;
|
|
59
|
+
}, string, {
|
|
60
|
+
size: string;
|
|
61
|
+
placement: "left" | "right";
|
|
62
|
+
showOverlay: boolean;
|
|
63
|
+
lockScroll: boolean;
|
|
64
|
+
closeOnClickOverlay: boolean;
|
|
65
|
+
closeOnEsc: boolean;
|
|
66
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
67
|
+
$slots: {
|
|
68
|
+
default?(_: {}): any;
|
|
69
|
+
sidebar?(_: {}): any;
|
|
70
|
+
};
|
|
71
|
+
}) & import('vue').Plugin;
|
|
72
|
+
export * from './types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DrawerProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
placement?: 'left' | 'right';
|
|
4
|
+
size?: string;
|
|
5
|
+
showOverlay?: boolean;
|
|
6
|
+
lockScroll?: boolean;
|
|
7
|
+
closeOnClickOverlay?: boolean;
|
|
8
|
+
closeOnEsc?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DrawerEmits {
|
|
12
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
13
|
+
(e: 'open'): void;
|
|
14
|
+
(e: 'close'): void;
|
|
15
|
+
}
|
|
16
|
+
export interface DrawerInstance {
|
|
17
|
+
open(): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
toggle(): void;
|
|
20
|
+
}
|
|
@@ -30,6 +30,11 @@ export declare const PxDropdown: {
|
|
|
30
30
|
readonly hideTimeout?: number | undefined;
|
|
31
31
|
readonly virtualRef?: HTMLElement | undefined;
|
|
32
32
|
readonly virtualTriggering?: boolean | undefined;
|
|
33
|
+
readonly effect?: import('packages/core').TooltipEffect | undefined;
|
|
34
|
+
readonly type?: import('packages/core').TooltipType | undefined;
|
|
35
|
+
readonly enterable?: boolean | undefined;
|
|
36
|
+
readonly maxWidth?: string | number | undefined;
|
|
37
|
+
readonly showArrow?: boolean | undefined;
|
|
33
38
|
readonly "onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
34
39
|
readonly "onClick-outside"?: (() => any) | undefined;
|
|
35
40
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
@@ -62,11 +67,13 @@ export declare const PxDropdown: {
|
|
|
62
67
|
"visible-change": (value: boolean) => any;
|
|
63
68
|
"click-outside": () => any;
|
|
64
69
|
}, string, {
|
|
70
|
+
effect: import('packages/core').TooltipEffect;
|
|
65
71
|
transition: string;
|
|
66
72
|
trigger: "hover" | "click" | "contextmenu";
|
|
67
73
|
placement: import('@popperjs/core').Placement;
|
|
68
74
|
showTimeout: number;
|
|
69
75
|
hideTimeout: number;
|
|
76
|
+
enterable: boolean;
|
|
70
77
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
71
78
|
beforeCreate?: (() => void) | (() => void)[];
|
|
72
79
|
created?: (() => void) | (() => void)[];
|
|
@@ -88,15 +95,17 @@ export declare const PxDropdown: {
|
|
|
88
95
|
$nextTick: typeof import('vue').nextTick;
|
|
89
96
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
90
97
|
} & Readonly<{
|
|
98
|
+
effect: import('packages/core').TooltipEffect;
|
|
91
99
|
transition: string;
|
|
92
100
|
trigger: "hover" | "click" | "contextmenu";
|
|
93
101
|
placement: import('@popperjs/core').Placement;
|
|
94
102
|
showTimeout: number;
|
|
95
103
|
hideTimeout: number;
|
|
104
|
+
enterable: boolean;
|
|
96
105
|
}> & Omit<Readonly<import('packages/core').TooltipProps> & Readonly<{
|
|
97
106
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
98
107
|
"onClick-outside"?: (() => any) | undefined;
|
|
99
|
-
}>, "toggle" | "show" | "hide" | ("transition" | "trigger" | "placement" | "showTimeout" | "hideTimeout")> & import('vue').ShallowUnwrapRef<{
|
|
108
|
+
}>, "toggle" | "show" | "hide" | ("effect" | "transition" | "trigger" | "placement" | "showTimeout" | "hideTimeout" | "enterable")> & import('vue').ShallowUnwrapRef<{
|
|
100
109
|
show(): void;
|
|
101
110
|
hide(): void;
|
|
102
111
|
toggle(): void;
|
|
@@ -107,6 +116,7 @@ export declare const PxDropdown: {
|
|
|
107
116
|
content?(_: {}): any;
|
|
108
117
|
};
|
|
109
118
|
}) | null;
|
|
119
|
+
menuRef: HTMLDivElement;
|
|
110
120
|
}, any, import('vue').ComponentProvideOptions, {
|
|
111
121
|
P: {};
|
|
112
122
|
B: {};
|
|
@@ -7,6 +7,7 @@ export interface DropdownItemProps {
|
|
|
7
7
|
label: string | VNode;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
divided?: boolean;
|
|
10
|
+
icon?: string;
|
|
10
11
|
}
|
|
11
12
|
export interface DropdownProps extends TooltipProps {
|
|
12
13
|
type?: ButtonType;
|
|
@@ -14,6 +15,8 @@ export interface DropdownProps extends TooltipProps {
|
|
|
14
15
|
items?: DropdownItemProps[];
|
|
15
16
|
hideOnClick?: boolean;
|
|
16
17
|
splitButton?: boolean;
|
|
18
|
+
maxHeight?: number | string;
|
|
19
|
+
hoverColor?: string;
|
|
17
20
|
}
|
|
18
21
|
export interface DropdownEmits {
|
|
19
22
|
(e: 'visible-change', value: boolean): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface UseDropdownKeyboardOptions {
|
|
3
|
+
menuRef: Ref<HTMLElement | undefined>;
|
|
4
|
+
triggerRef: Ref<HTMLElement | undefined>;
|
|
5
|
+
isOpen: Ref<boolean>;
|
|
6
|
+
close: () => void;
|
|
7
|
+
}
|
|
8
|
+
export default function useDropdownKeyboard(options: UseDropdownKeyboardOptions): void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const PxFileInput: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').FileInputProps> & Readonly<{
|
|
3
3
|
onClear?: (() => any) | undefined;
|
|
4
|
-
"onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
|
|
5
4
|
onChange?: ((value: FileList | null) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
ref: import('vue').Ref<HTMLInputElement | undefined>;
|
|
8
8
|
open(): void;
|
|
9
9
|
clear(): void;
|
|
10
10
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
11
|
clear: () => any;
|
|
12
|
-
"update:modelValue": (value: FileList | null) => any;
|
|
13
12
|
change: (value: FileList | null) => any;
|
|
13
|
+
"update:modelValue": (value: FileList | null) => any;
|
|
14
14
|
}, import('vue').PublicProps, {
|
|
15
15
|
placeholder: string;
|
|
16
16
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -24,8 +24,8 @@ export declare const PxFileInput: {
|
|
|
24
24
|
Defaults: {};
|
|
25
25
|
}, Readonly<import('packages/core').FileInputProps> & Readonly<{
|
|
26
26
|
onClear?: (() => any) | undefined;
|
|
27
|
-
"onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
|
|
28
27
|
onChange?: ((value: FileList | null) => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
ref: import('vue').Ref<HTMLInputElement | undefined>;
|
|
31
31
|
open(): void;
|
|
@@ -38,16 +38,16 @@ export declare const PxFileInput: {
|
|
|
38
38
|
__isSuspense?: never;
|
|
39
39
|
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').FileInputProps> & Readonly<{
|
|
40
40
|
onClear?: (() => any) | undefined;
|
|
41
|
-
"onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
|
|
42
41
|
onChange?: ((value: FileList | null) => any) | undefined;
|
|
42
|
+
"onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
44
|
ref: import('vue').Ref<HTMLInputElement | undefined>;
|
|
45
45
|
open(): void;
|
|
46
46
|
clear(): void;
|
|
47
47
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
48
48
|
clear: () => any;
|
|
49
|
-
"update:modelValue": (value: FileList | null) => any;
|
|
50
49
|
change: (value: FileList | null) => any;
|
|
50
|
+
"update:modelValue": (value: FileList | null) => any;
|
|
51
51
|
}, string, {
|
|
52
52
|
placeholder: string;
|
|
53
53
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const PxIndicator: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
type: import('packages/core').IndicatorType;
|
|
4
|
+
placement: import('packages/core').IndicatorPlacement;
|
|
5
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
6
|
+
P: {};
|
|
7
|
+
B: {};
|
|
8
|
+
D: {};
|
|
9
|
+
C: {};
|
|
10
|
+
M: {};
|
|
11
|
+
Defaults: {};
|
|
12
|
+
}, Readonly<import('packages/core').IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
13
|
+
type: import('packages/core').IndicatorType;
|
|
14
|
+
placement: import('packages/core').IndicatorPlacement;
|
|
15
|
+
}>;
|
|
16
|
+
__isFragment?: never;
|
|
17
|
+
__isTeleport?: never;
|
|
18
|
+
__isSuspense?: never;
|
|
19
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
20
|
+
type: import('packages/core').IndicatorType;
|
|
21
|
+
placement: import('packages/core').IndicatorPlacement;
|
|
22
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
23
|
+
$slots: {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
indicator?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
}) & import('vue').Plugin;
|
|
28
|
+
export * from './types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type IndicatorPlacement = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
2
|
+
export type IndicatorType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
3
|
+
export interface IndicatorProps {
|
|
4
|
+
placement?: IndicatorPlacement;
|
|
5
|
+
type?: IndicatorType;
|
|
6
|
+
color?: string;
|
|
7
|
+
offset?: [number, number];
|
|
8
|
+
inline?: boolean;
|
|
9
|
+
processing?: boolean;
|
|
10
|
+
}
|
|
@@ -2,10 +2,10 @@ export declare const PxInput: {
|
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').InputProps> & Readonly<{
|
|
3
3
|
onInput?: ((value: string) => any) | undefined;
|
|
4
4
|
onClear?: (() => any) | undefined;
|
|
5
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
6
|
+
onChange?: ((value: string) => any) | undefined;
|
|
5
7
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
6
8
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
7
|
-
onChange?: ((value: string) => any) | undefined;
|
|
8
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
11
11
|
focus(): Promise<void>;
|
|
@@ -15,10 +15,10 @@ export declare const PxInput: {
|
|
|
15
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
16
|
input: (value: string) => any;
|
|
17
17
|
clear: () => any;
|
|
18
|
+
blur: (value: FocusEvent) => any;
|
|
19
|
+
change: (value: string) => any;
|
|
18
20
|
focus: (value: FocusEvent) => any;
|
|
19
21
|
"update:modelValue": (value: string) => any;
|
|
20
|
-
change: (value: string) => any;
|
|
21
|
-
blur: (value: FocusEvent) => any;
|
|
22
22
|
}, import('vue').PublicProps, {
|
|
23
23
|
type: string;
|
|
24
24
|
autocomplete: string;
|
|
@@ -36,10 +36,10 @@ export declare const PxInput: {
|
|
|
36
36
|
}, Readonly<import('packages/core').InputProps> & Readonly<{
|
|
37
37
|
onInput?: ((value: string) => any) | undefined;
|
|
38
38
|
onClear?: (() => any) | undefined;
|
|
39
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
40
|
+
onChange?: ((value: string) => any) | undefined;
|
|
39
41
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
40
42
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
41
|
-
onChange?: ((value: string) => any) | undefined;
|
|
42
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
44
|
ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
45
45
|
focus(): Promise<void>;
|
|
@@ -56,10 +56,10 @@ export declare const PxInput: {
|
|
|
56
56
|
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').InputProps> & Readonly<{
|
|
57
57
|
onInput?: ((value: string) => any) | undefined;
|
|
58
58
|
onClear?: (() => any) | undefined;
|
|
59
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
60
|
+
onChange?: ((value: string) => any) | undefined;
|
|
59
61
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
60
62
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
61
|
-
onChange?: ((value: string) => any) | undefined;
|
|
62
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
65
65
|
focus(): Promise<void>;
|
|
@@ -69,10 +69,10 @@ export declare const PxInput: {
|
|
|
69
69
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
70
70
|
input: (value: string) => any;
|
|
71
71
|
clear: () => any;
|
|
72
|
+
blur: (value: FocusEvent) => any;
|
|
73
|
+
change: (value: string) => any;
|
|
72
74
|
focus: (value: FocusEvent) => any;
|
|
73
75
|
"update:modelValue": (value: string) => any;
|
|
74
|
-
change: (value: string) => any;
|
|
75
|
-
blur: (value: FocusEvent) => any;
|
|
76
76
|
}, string, {
|
|
77
77
|
type: string;
|
|
78
78
|
autocomplete: string;
|
|
@@ -8,5 +8,7 @@ export declare const messageDefaults: {
|
|
|
8
8
|
export declare function getLastBottomOffset(this: MessageProps): any;
|
|
9
9
|
export declare const message: MessageFn & Partial<Message>;
|
|
10
10
|
export declare function closeAll(type?: MessageType): void;
|
|
11
|
+
/** Forcefully unmount all message instances, bypassing CSS transitions. */
|
|
12
|
+
export declare function destroyAll(): void;
|
|
11
13
|
declare const _default: Message;
|
|
12
14
|
export default _default;
|
|
@@ -26,9 +26,15 @@ export interface MessageProps {
|
|
|
26
26
|
offset?: number;
|
|
27
27
|
zIndex: number;
|
|
28
28
|
transitionName?: string;
|
|
29
|
+
plain?: boolean;
|
|
30
|
+
ghost?: boolean;
|
|
31
|
+
icon?: string;
|
|
32
|
+
showTimer?: boolean;
|
|
29
33
|
onDestroy(): void;
|
|
30
34
|
}
|
|
31
|
-
export type MessageOptions = Partial<Omit<MessageProps, 'id'
|
|
35
|
+
export type MessageOptions = Partial<Omit<MessageProps, 'id'>> & {
|
|
36
|
+
max?: number;
|
|
37
|
+
};
|
|
32
38
|
export type MessageParams = string | VNode | MessageOptions;
|
|
33
39
|
export interface MessageInstance {
|
|
34
40
|
id: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ref, VNode } from 'vue';
|
|
1
|
+
import { CSSProperties, Ref, VNode } from 'vue';
|
|
2
|
+
import { ZodType } from 'zod';
|
|
2
3
|
import { ButtonType } from '../Button/types';
|
|
3
4
|
import { MessageType } from '../Message/types';
|
|
4
5
|
export type MessageBoxAction = 'confirm' | 'cancel' | 'close';
|
|
@@ -39,7 +40,18 @@ export interface MessageBoxOptions {
|
|
|
39
40
|
inputValue?: string;
|
|
40
41
|
inputType?: 'text' | 'textarea' | 'password' | 'number';
|
|
41
42
|
buttonSize?: 'default' | 'small' | 'large';
|
|
42
|
-
beforeClose?: (action: MessageBoxAction, instance: MessageBoxOptions, done: () => void) => void
|
|
43
|
+
beforeClose?: (action: MessageBoxAction, instance: MessageBoxOptions, done: () => void) => void | Promise<void>;
|
|
44
|
+
customClass?: string;
|
|
45
|
+
customStyle?: CSSProperties;
|
|
46
|
+
width?: string | number;
|
|
47
|
+
closeOnPressEscape?: boolean;
|
|
48
|
+
inputSchema?: ZodType;
|
|
49
|
+
inputErrorMessage?: string;
|
|
50
|
+
distinguishCancelAndClose?: boolean;
|
|
51
|
+
overlayClass?: string | string[] | Record<string, boolean>;
|
|
52
|
+
closeOnHashChange?: boolean;
|
|
53
|
+
draggable?: boolean;
|
|
54
|
+
footer?: VNode | (() => VNode);
|
|
43
55
|
}
|
|
44
56
|
export interface MessageBoxProps extends MessageBoxOptions {
|
|
45
57
|
visible?: Ref<boolean>;
|
|
@@ -7,9 +7,12 @@ export declare const notificationDefaults: {
|
|
|
7
7
|
readonly position: "top-right";
|
|
8
8
|
readonly transitionName: "fade";
|
|
9
9
|
readonly showClose: true;
|
|
10
|
+
readonly showTimer: true;
|
|
10
11
|
};
|
|
11
12
|
export declare const notification: NotificationFn & Partial<Notification>;
|
|
12
13
|
export declare function closeAll(type?: NotificationType): void;
|
|
14
|
+
/** Forcefully unmount all notification instances, bypassing CSS transitions. */
|
|
15
|
+
export declare function destroyAll(): void;
|
|
13
16
|
export declare function getLastBottomOffset(this: NotificationProps): any;
|
|
14
17
|
declare const _default: Notification;
|
|
15
18
|
export default _default;
|