sakana-element 2.2.0 → 2.4.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 +98 -25
- package/dist/es/{Alert-C76ZWSVk.js → Alert-DfLsJvQD.js} +2 -2
- package/dist/es/Avatar-Ci4OKsv7.js +9 -0
- package/dist/es/{Badge-CoFWwBwv.js → Badge-B4wEToK6.js} +2 -2
- package/dist/es/{Breadcrumb-BtrwTVKW.js → Breadcrumb-BFzww8jd.js} +2 -2
- package/dist/es/{Button-S_31-UWJ.js → Button-DbFviVWb.js} +3 -3
- package/dist/es/{Card-DcW6nHYD.js → Card-ClRqKkc_.js} +2 -2
- package/dist/es/ChatBubble-DFEV_lVI.js +9 -0
- package/dist/es/Checkbox-l86YI3Fr.js +51 -0
- package/dist/es/{Collapse-DsS7M-m3.js → Collapse-B67v6RSE.js} +4 -4
- package/dist/es/{ConfigProvider-BgIewHXP.js → ConfigProvider-BCoGbcS5.js} +2 -2
- package/dist/es/Diff-BLiniLom.js +64 -0
- package/dist/es/Divider-DDSOHv8G.js +9 -0
- package/dist/es/Drawer-apeXw6EO.js +40 -0
- package/dist/es/Dropdown-By9qIErf.js +104 -0
- package/dist/es/{FileInput-BQ59woas.js → FileInput-CZ5jTfB_.js} +3 -3
- package/dist/es/Filter-B_1zU4Dq.js +40 -0
- package/dist/es/Form-B_XDnSjK.js +123 -0
- package/dist/es/{Icon-DpJyuj7c.js → Icon-D6qRB3pq.js} +1 -1
- package/dist/es/Indicator-C6Ip4dpP.js +9 -0
- package/dist/es/{Input-CiE4bPJN.js → Input-bThwBbNZ.js} +7 -7
- package/dist/es/Kbd-DXNjs7at.js +13 -0
- package/dist/es/{Link-B9B2APZq.js → Link-08Ee61Fv.js} +1 -1
- package/dist/es/{Loading-BW99pE5N.js → Loading-ByI9mjss.js} +13 -13
- package/dist/es/Message-CGG-lV5I.js +152 -0
- package/dist/es/Notification-B4clKY5h.js +69 -0
- package/dist/es/{Overlay-BRDSWspM.js → Overlay-6iPenJB1.js} +1 -1
- package/dist/es/Pixelate-A8J7jxDW.js +39 -0
- package/dist/es/Popconfirm-gcHGcOTz.js +23 -0
- package/dist/es/Progress-DFUBJQ4X.js +12 -0
- package/dist/es/Radio-CLBa1XIM.js +33 -0
- package/dist/es/Resizable-BWrFr2oj.js +151 -0
- package/dist/es/{Select-Dwqv8isB.js → Select-BtLqds1d.js} +20 -20
- package/dist/es/Skeleton-CGUQv3nQ.js +15 -0
- package/dist/es/{Switch-B1Gnv1tB.js → Switch-CZJ-S77_.js} +3 -3
- package/dist/es/Table-lHbxiyGq.js +10 -0
- package/dist/es/Tooltip-CdPqNYdn.js +74 -0
- package/dist/es/Validator-7ZT_nXDZ.js +40 -0
- package/dist/es/hooks-pU4JmsO3.js +171 -0
- package/dist/es/index.js +107 -70
- package/dist/es/utils-BXICIEsD.js +139 -0
- package/dist/es/{vendor-DXmGx29U.js → vendor-DrBJKLFW.js} +254 -210
- package/dist/index.css +1 -1
- package/dist/theme/Avatar.css +13 -43
- package/dist/theme/Badge.css +151 -151
- package/dist/theme/Breadcrumb.css +46 -4
- package/dist/theme/Button.css +72 -8
- package/dist/theme/Card.css +177 -93
- package/dist/theme/ChatBubble.css +218 -0
- package/dist/theme/Checkbox.css +604 -0
- package/dist/theme/Collapse.css +96 -96
- package/dist/theme/Diff.css +110 -0
- package/dist/theme/Divider.css +150 -0
- package/dist/theme/Drawer.css +206 -0
- package/dist/theme/Dropdown.css +359 -75
- package/dist/theme/FileInput.css +32 -0
- package/dist/theme/Filter.css +598 -0
- package/dist/theme/Indicator.css +159 -0
- package/dist/theme/Input.css +414 -406
- package/dist/theme/Kbd.css +104 -0
- package/dist/theme/Link.css +22 -3
- package/dist/theme/Loading.css +50 -12
- package/dist/theme/Message.css +250 -41
- package/dist/theme/Notification.css +232 -42
- package/dist/theme/Popconfirm.css +23 -7
- package/dist/theme/Progress.css +278 -0
- package/dist/theme/Radio.css +492 -0
- package/dist/theme/Resizable.css +95 -0
- package/dist/theme/Select.css +198 -88
- package/dist/theme/Skeleton.css +192 -0
- package/dist/theme/Switch.css +22 -3
- package/dist/theme/Table.css +680 -0
- package/dist/theme/Tooltip.css +150 -26
- package/dist/theme/Validator.css +25 -0
- package/dist/types/components/Avatar/types.d.ts +0 -2
- package/dist/types/components/ChatBubble/constants.d.ts +2 -0
- package/dist/types/components/ChatBubble/index.d.ts +27 -0
- package/dist/types/components/ChatBubble/types.d.ts +10 -0
- 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/Diff/constants.d.ts +4 -0
- package/dist/types/components/Diff/index.d.ts +67 -0
- package/dist/types/components/Diff/types.d.ts +29 -0
- 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 +13 -3
- 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/Filter/constants.d.ts +5 -0
- package/dist/types/components/Filter/index.d.ts +59 -0
- package/dist/types/components/Filter/types.d.ts +38 -0
- 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/Kbd/constants.d.ts +3 -0
- package/dist/types/components/Kbd/index.d.ts +24 -0
- package/dist/types/components/Kbd/types.d.ts +10 -0
- 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 +18 -9
- 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/Resizable/constants.d.ts +3 -0
- package/dist/types/components/Resizable/index.d.ts +135 -0
- package/dist/types/components/Resizable/types.d.ts +52 -0
- package/dist/types/components/Select/index.d.ts +32 -23
- package/dist/types/components/Skeleton/index.d.ts +36 -0
- package/dist/types/components/Skeleton/types.d.ts +12 -0
- 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 +9 -3
- package/dist/types/components/Tooltip/types.d.ts +7 -0
- package/dist/types/components/Validator/index.d.ts +52 -0
- package/dist/types/components/Validator/types.d.ts +13 -0
- package/dist/types/components/index.d.ts +15 -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 +2 -0
- package/dist/types/utils/instance-management.d.ts +40 -0
- package/dist/types/utils/pixelate.d.ts +10 -0
- package/dist/types/utils/style.d.ts +1 -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
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export declare const PxSelect: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').SelectProps> & Readonly<{
|
|
3
3
|
onClear?: (() => any) | undefined;
|
|
4
|
+
onBlur?: (() => any) | undefined;
|
|
5
|
+
onChange?: ((value: string) => any) | undefined;
|
|
4
6
|
onFocus?: (() => any) | undefined;
|
|
5
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
6
|
-
onChange?: ((value: string) => any) | undefined;
|
|
7
8
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
8
|
-
onBlur?: (() => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
focus(): void;
|
|
11
11
|
blur(): void;
|
|
12
12
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
13
|
clear: () => any;
|
|
14
|
+
blur: () => any;
|
|
15
|
+
change: (value: string) => any;
|
|
14
16
|
focus: () => any;
|
|
15
17
|
"update:modelValue": (value: string) => any;
|
|
16
|
-
change: (value: string) => any;
|
|
17
18
|
"visible-change": (value: boolean) => any;
|
|
18
|
-
blur: () => any;
|
|
19
19
|
}, import('vue').PublicProps, {
|
|
20
20
|
options: import('packages/core').SelectOptionProps[];
|
|
21
21
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -35,6 +35,11 @@ export declare const PxSelect: {
|
|
|
35
35
|
readonly hideTimeout?: number | undefined;
|
|
36
36
|
readonly virtualRef?: HTMLElement | undefined;
|
|
37
37
|
readonly virtualTriggering?: boolean | undefined;
|
|
38
|
+
readonly effect?: import('packages/core').TooltipEffect | undefined;
|
|
39
|
+
readonly type?: import('packages/core').TooltipType | undefined;
|
|
40
|
+
readonly enterable?: boolean | undefined;
|
|
41
|
+
readonly maxWidth?: string | number | undefined;
|
|
42
|
+
readonly showArrow?: boolean | undefined;
|
|
38
43
|
readonly "onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
39
44
|
readonly "onClick-outside"?: (() => any) | undefined;
|
|
40
45
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
@@ -67,11 +72,13 @@ export declare const PxSelect: {
|
|
|
67
72
|
"visible-change": (value: boolean) => any;
|
|
68
73
|
"click-outside": () => any;
|
|
69
74
|
}, string, {
|
|
75
|
+
effect: import('packages/core').TooltipEffect;
|
|
70
76
|
transition: string;
|
|
71
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
72
77
|
placement: import('@popperjs/core').Placement;
|
|
78
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
73
79
|
showTimeout: number;
|
|
74
80
|
hideTimeout: number;
|
|
81
|
+
enterable: boolean;
|
|
75
82
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
76
83
|
beforeCreate?: (() => void) | (() => void)[];
|
|
77
84
|
created?: (() => void) | (() => void)[];
|
|
@@ -93,15 +100,17 @@ export declare const PxSelect: {
|
|
|
93
100
|
$nextTick: typeof import('vue').nextTick;
|
|
94
101
|
$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;
|
|
95
102
|
} & Readonly<{
|
|
103
|
+
effect: import('packages/core').TooltipEffect;
|
|
96
104
|
transition: string;
|
|
97
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
98
105
|
placement: import('@popperjs/core').Placement;
|
|
106
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
99
107
|
showTimeout: number;
|
|
100
108
|
hideTimeout: number;
|
|
109
|
+
enterable: boolean;
|
|
101
110
|
}> & Omit<Readonly<import('packages/core').TooltipProps> & Readonly<{
|
|
102
111
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
103
112
|
"onClick-outside"?: (() => any) | undefined;
|
|
104
|
-
}>, "toggle" | "show" | "hide" | ("
|
|
113
|
+
}>, "toggle" | "show" | "hide" | ("effect" | "transition" | "placement" | "trigger" | "showTimeout" | "hideTimeout" | "enterable")> & import('vue').ShallowUnwrapRef<{
|
|
105
114
|
show(): void;
|
|
106
115
|
hide(): void;
|
|
107
116
|
toggle(): void;
|
|
@@ -133,10 +142,10 @@ export declare const PxSelect: {
|
|
|
133
142
|
readonly form?: string | undefined;
|
|
134
143
|
readonly onInput?: ((value: string) => any) | undefined;
|
|
135
144
|
readonly onClear?: (() => any) | undefined;
|
|
145
|
+
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
146
|
+
readonly onChange?: ((value: string) => any) | undefined;
|
|
136
147
|
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
137
148
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
138
|
-
readonly onChange?: ((value: string) => any) | undefined;
|
|
139
|
-
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
140
149
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
141
150
|
$attrs: {
|
|
142
151
|
[x: string]: unknown;
|
|
@@ -154,15 +163,15 @@ export declare const PxSelect: {
|
|
|
154
163
|
$root: import('vue').ComponentPublicInstance | null;
|
|
155
164
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
156
165
|
$host: Element | null;
|
|
157
|
-
$emit: ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "
|
|
166
|
+
$emit: ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "blur", value: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "focus", value: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void);
|
|
158
167
|
$el: any;
|
|
159
168
|
$options: import('vue').ComponentOptionsBase<Readonly<import('packages/core').InputProps> & Readonly<{
|
|
160
169
|
onInput?: ((value: string) => any) | undefined;
|
|
161
170
|
onClear?: (() => any) | undefined;
|
|
171
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
172
|
+
onChange?: ((value: string) => any) | undefined;
|
|
162
173
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
163
174
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
164
|
-
onChange?: ((value: string) => any) | undefined;
|
|
165
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
166
175
|
}>, {
|
|
167
176
|
ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
168
177
|
focus(): Promise<void>;
|
|
@@ -172,10 +181,10 @@ export declare const PxSelect: {
|
|
|
172
181
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
173
182
|
input: (value: string) => any;
|
|
174
183
|
clear: () => any;
|
|
184
|
+
blur: (value: FocusEvent) => any;
|
|
185
|
+
change: (value: string) => any;
|
|
175
186
|
focus: (value: FocusEvent) => any;
|
|
176
187
|
"update:modelValue": (value: string) => any;
|
|
177
|
-
change: (value: string) => any;
|
|
178
|
-
blur: (value: FocusEvent) => any;
|
|
179
188
|
}, string, {
|
|
180
189
|
type: string;
|
|
181
190
|
autocomplete: string;
|
|
@@ -205,11 +214,11 @@ export declare const PxSelect: {
|
|
|
205
214
|
}> & Omit<Readonly<import('packages/core').InputProps> & Readonly<{
|
|
206
215
|
onInput?: ((value: string) => any) | undefined;
|
|
207
216
|
onClear?: (() => any) | undefined;
|
|
217
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
218
|
+
onChange?: ((value: string) => any) | undefined;
|
|
208
219
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
209
220
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
210
|
-
|
|
211
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
212
|
-
}>, "select" | "clear" | "ref" | "focus" | "blur" | ("type" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
221
|
+
}>, "select" | "clear" | "blur" | "focus" | "ref" | ("type" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
213
222
|
ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
214
223
|
focus(): Promise<void>;
|
|
215
224
|
blur(): void;
|
|
@@ -232,11 +241,11 @@ export declare const PxSelect: {
|
|
|
232
241
|
Defaults: {};
|
|
233
242
|
}, Readonly<import('packages/core').SelectProps> & Readonly<{
|
|
234
243
|
onClear?: (() => any) | undefined;
|
|
244
|
+
onBlur?: (() => any) | undefined;
|
|
245
|
+
onChange?: ((value: string) => any) | undefined;
|
|
235
246
|
onFocus?: (() => any) | undefined;
|
|
236
247
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
237
|
-
onChange?: ((value: string) => any) | undefined;
|
|
238
248
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
239
|
-
onBlur?: (() => any) | undefined;
|
|
240
249
|
}>, {
|
|
241
250
|
focus(): void;
|
|
242
251
|
blur(): void;
|
|
@@ -248,21 +257,21 @@ export declare const PxSelect: {
|
|
|
248
257
|
__isSuspense?: never;
|
|
249
258
|
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').SelectProps> & Readonly<{
|
|
250
259
|
onClear?: (() => any) | undefined;
|
|
260
|
+
onBlur?: (() => any) | undefined;
|
|
261
|
+
onChange?: ((value: string) => any) | undefined;
|
|
251
262
|
onFocus?: (() => any) | undefined;
|
|
252
263
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
253
|
-
onChange?: ((value: string) => any) | undefined;
|
|
254
264
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
255
|
-
onBlur?: (() => any) | undefined;
|
|
256
265
|
}>, {
|
|
257
266
|
focus(): void;
|
|
258
267
|
blur(): void;
|
|
259
268
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
260
269
|
clear: () => any;
|
|
270
|
+
blur: () => any;
|
|
271
|
+
change: (value: string) => any;
|
|
261
272
|
focus: () => any;
|
|
262
273
|
"update:modelValue": (value: string) => any;
|
|
263
|
-
change: (value: string) => any;
|
|
264
274
|
"visible-change": (value: boolean) => any;
|
|
265
|
-
blur: () => any;
|
|
266
275
|
}, string, {
|
|
267
276
|
options: import('packages/core').SelectOptionProps[];
|
|
268
277
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const PxSkeleton: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
animation: import('packages/core').SkeletonAnimation;
|
|
5
|
+
variant: import('packages/core').SkeletonVariant;
|
|
6
|
+
animated: boolean;
|
|
7
|
+
rows: number;
|
|
8
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<import('packages/core').SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
16
|
+
loading: boolean;
|
|
17
|
+
animation: import('packages/core').SkeletonAnimation;
|
|
18
|
+
variant: import('packages/core').SkeletonVariant;
|
|
19
|
+
animated: boolean;
|
|
20
|
+
rows: number;
|
|
21
|
+
}>;
|
|
22
|
+
__isFragment?: never;
|
|
23
|
+
__isTeleport?: never;
|
|
24
|
+
__isSuspense?: never;
|
|
25
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
26
|
+
loading: boolean;
|
|
27
|
+
animation: import('packages/core').SkeletonAnimation;
|
|
28
|
+
variant: import('packages/core').SkeletonVariant;
|
|
29
|
+
animated: boolean;
|
|
30
|
+
rows: number;
|
|
31
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
32
|
+
$slots: {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
};
|
|
35
|
+
}) & import('vue').Plugin;
|
|
36
|
+
export * from './types';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
2
|
+
export type SkeletonAnimation = 'shimmer' | 'pulse' | 'dither';
|
|
3
|
+
export interface SkeletonProps {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
animated?: boolean;
|
|
6
|
+
animation?: SkeletonAnimation;
|
|
7
|
+
variant?: SkeletonVariant;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
rows?: number;
|
|
11
|
+
size?: 'large' | 'default' | 'small';
|
|
12
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const PxSwitch: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').SwitchProps> & Readonly<{
|
|
3
|
-
"onUpdate:modelValue"?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
4
3
|
onChange?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
4
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
focus(): void;
|
|
7
7
|
checked: import('vue').ComputedRef<boolean>;
|
|
8
8
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
-
"update:modelValue": (value: import('packages/core').SwitchValueType) => any;
|
|
10
9
|
change: (value: import('packages/core').SwitchValueType) => any;
|
|
10
|
+
"update:modelValue": (value: import('packages/core').SwitchValueType) => any;
|
|
11
11
|
}, import('vue').PublicProps, {
|
|
12
12
|
activeValue: import('packages/core').SwitchValueType;
|
|
13
13
|
inactiveValue: import('packages/core').SwitchValueType;
|
|
@@ -21,8 +21,8 @@ export declare const PxSwitch: {
|
|
|
21
21
|
M: {};
|
|
22
22
|
Defaults: {};
|
|
23
23
|
}, Readonly<import('packages/core').SwitchProps> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
25
24
|
onChange?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
focus(): void;
|
|
28
28
|
checked: import('vue').ComputedRef<boolean>;
|
|
@@ -34,14 +34,14 @@ export declare const PxSwitch: {
|
|
|
34
34
|
__isTeleport?: never;
|
|
35
35
|
__isSuspense?: never;
|
|
36
36
|
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').SwitchProps> & Readonly<{
|
|
37
|
-
"onUpdate:modelValue"?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
38
37
|
onChange?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
38
|
+
"onUpdate:modelValue"?: ((value: import('packages/core').SwitchValueType) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
focus(): void;
|
|
41
41
|
checked: import('vue').ComputedRef<boolean>;
|
|
42
42
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
43
|
-
"update:modelValue": (value: import('packages/core').SwitchValueType) => any;
|
|
44
43
|
change: (value: import('packages/core').SwitchValueType) => any;
|
|
44
|
+
"update:modelValue": (value: import('packages/core').SwitchValueType) => any;
|
|
45
45
|
}, string, {
|
|
46
46
|
activeValue: import('packages/core').SwitchValueType;
|
|
47
47
|
inactiveValue: import('packages/core').SwitchValueType;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const PxTable: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').TableProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
size: import('packages/core').TableSize;
|
|
4
|
+
showHeader: boolean;
|
|
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').TableProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
13
|
+
size: import('packages/core').TableSize;
|
|
14
|
+
showHeader: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
__isFragment?: never;
|
|
17
|
+
__isTeleport?: never;
|
|
18
|
+
__isSuspense?: never;
|
|
19
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').TableProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
20
|
+
size: import('packages/core').TableSize;
|
|
21
|
+
showHeader: boolean;
|
|
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
|
+
};
|
|
26
|
+
}) & import('vue').Plugin;
|
|
27
|
+
export * from './types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const tableSize: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
2
|
+
export type TableSize = (typeof tableSize)[number];
|
|
3
|
+
export type TableType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
4
|
+
export interface TableProps {
|
|
5
|
+
type?: TableType;
|
|
6
|
+
zebra?: boolean;
|
|
7
|
+
hover?: boolean;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
stripe?: boolean;
|
|
10
|
+
pinRows?: boolean;
|
|
11
|
+
pinCols?: boolean;
|
|
12
|
+
size?: TableSize;
|
|
13
|
+
showHeader?: boolean;
|
|
14
|
+
outline?: boolean;
|
|
15
|
+
ghost?: boolean;
|
|
16
|
+
hoverable?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface TableInstance {
|
|
19
|
+
ref: HTMLDivElement;
|
|
20
|
+
}
|
|
@@ -10,11 +10,13 @@ export declare const PxTooltip: {
|
|
|
10
10
|
"visible-change": (value: boolean) => any;
|
|
11
11
|
"click-outside": () => any;
|
|
12
12
|
}, import('vue').PublicProps, {
|
|
13
|
+
effect: import('packages/core').TooltipEffect;
|
|
13
14
|
transition: string;
|
|
14
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
15
15
|
placement: import('@popperjs/core').Placement;
|
|
16
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
16
17
|
showTimeout: number;
|
|
17
18
|
hideTimeout: number;
|
|
19
|
+
enterable: boolean;
|
|
18
20
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
19
21
|
containerNode: HTMLDivElement;
|
|
20
22
|
_triggerNode: HTMLDivElement;
|
|
@@ -34,11 +36,13 @@ export declare const PxTooltip: {
|
|
|
34
36
|
hide(): void;
|
|
35
37
|
toggle(): void;
|
|
36
38
|
}, {}, {}, {}, {
|
|
39
|
+
effect: import('packages/core').TooltipEffect;
|
|
37
40
|
transition: string;
|
|
38
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
39
41
|
placement: import('@popperjs/core').Placement;
|
|
42
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
40
43
|
showTimeout: number;
|
|
41
44
|
hideTimeout: number;
|
|
45
|
+
enterable: boolean;
|
|
42
46
|
}>;
|
|
43
47
|
__isFragment?: never;
|
|
44
48
|
__isTeleport?: never;
|
|
@@ -54,11 +58,13 @@ export declare const PxTooltip: {
|
|
|
54
58
|
"visible-change": (value: boolean) => any;
|
|
55
59
|
"click-outside": () => any;
|
|
56
60
|
}, string, {
|
|
61
|
+
effect: import('packages/core').TooltipEffect;
|
|
57
62
|
transition: string;
|
|
58
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
59
63
|
placement: import('@popperjs/core').Placement;
|
|
64
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
60
65
|
showTimeout: number;
|
|
61
66
|
hideTimeout: number;
|
|
67
|
+
enterable: boolean;
|
|
62
68
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
63
69
|
$slots: {
|
|
64
70
|
default?(_: {}): any;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Options, Placement } from '@popperjs/core';
|
|
2
|
+
export type TooltipEffect = 'dark' | 'light';
|
|
3
|
+
export type TooltipType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
2
4
|
export interface TooltipProps {
|
|
3
5
|
content?: string;
|
|
4
6
|
trigger?: 'hover' | 'click' | 'contextmenu';
|
|
@@ -11,6 +13,11 @@ export interface TooltipProps {
|
|
|
11
13
|
hideTimeout?: number;
|
|
12
14
|
virtualRef?: HTMLElement | undefined;
|
|
13
15
|
virtualTriggering?: boolean;
|
|
16
|
+
effect?: TooltipEffect;
|
|
17
|
+
type?: TooltipType;
|
|
18
|
+
enterable?: boolean;
|
|
19
|
+
maxWidth?: string | number;
|
|
20
|
+
showArrow?: boolean;
|
|
14
21
|
}
|
|
15
22
|
export interface TooltipEmits {
|
|
16
23
|
(e: 'visible-change', value: boolean): void;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const PxValidator: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ValidatorProps> & Readonly<{
|
|
3
|
+
onValidate?: ((isValid: boolean, message: string) => any) | undefined;
|
|
4
|
+
}>, {
|
|
5
|
+
validate(trigger?: string): Promise<boolean>;
|
|
6
|
+
reset(): void;
|
|
7
|
+
validateStatus: import('vue').Ref<import('packages/core').ValidateStatus>;
|
|
8
|
+
validateMessage: import('vue').Ref<string>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
validate: (isValid: boolean, message: string) => any;
|
|
11
|
+
}, import('vue').PublicProps, {
|
|
12
|
+
rules: import('packages/core').FormItemRule[];
|
|
13
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<import('packages/core').ValidatorProps> & Readonly<{
|
|
21
|
+
onValidate?: ((isValid: boolean, message: string) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
validate(trigger?: string): Promise<boolean>;
|
|
24
|
+
reset(): void;
|
|
25
|
+
validateStatus: import('vue').Ref<import('packages/core').ValidateStatus>;
|
|
26
|
+
validateMessage: import('vue').Ref<string>;
|
|
27
|
+
}, {}, {}, {}, {
|
|
28
|
+
rules: import('packages/core').FormItemRule[];
|
|
29
|
+
}>;
|
|
30
|
+
__isFragment?: never;
|
|
31
|
+
__isTeleport?: never;
|
|
32
|
+
__isSuspense?: never;
|
|
33
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ValidatorProps> & Readonly<{
|
|
34
|
+
onValidate?: ((isValid: boolean, message: string) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
validate(trigger?: string): Promise<boolean>;
|
|
37
|
+
reset(): void;
|
|
38
|
+
validateStatus: import('vue').Ref<import('packages/core').ValidateStatus>;
|
|
39
|
+
validateMessage: import('vue').Ref<string>;
|
|
40
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
41
|
+
validate: (isValid: boolean, message: string) => any;
|
|
42
|
+
}, string, {
|
|
43
|
+
rules: import('packages/core').FormItemRule[];
|
|
44
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
45
|
+
$slots: {
|
|
46
|
+
default?(_: {}): any;
|
|
47
|
+
hint?(_: {
|
|
48
|
+
message: string;
|
|
49
|
+
}): any;
|
|
50
|
+
};
|
|
51
|
+
}) & import('vue').Plugin;
|
|
52
|
+
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FormItemRule, ValidateStatus } from '../Form/types';
|
|
3
|
+
export interface ValidatorProps {
|
|
4
|
+
modelValue?: unknown;
|
|
5
|
+
rules?: FormItemRule[];
|
|
6
|
+
}
|
|
7
|
+
export type ValidatorEmits = (e: 'validate', isValid: boolean, message: string) => void;
|
|
8
|
+
export interface ValidatorInstance {
|
|
9
|
+
validate(trigger?: string): Promise<boolean>;
|
|
10
|
+
reset(): void;
|
|
11
|
+
validateStatus: Ref<ValidateStatus>;
|
|
12
|
+
validateMessage: Ref<string>;
|
|
13
|
+
}
|
|
@@ -4,19 +4,34 @@ export * from './Badge';
|
|
|
4
4
|
export * from './Breadcrumb';
|
|
5
5
|
export * from './Button';
|
|
6
6
|
export * from './Card';
|
|
7
|
+
export * from './ChatBubble';
|
|
8
|
+
export * from './Checkbox';
|
|
7
9
|
export * from './Collapse';
|
|
8
10
|
export * from './ConfigProvider';
|
|
11
|
+
export * from './Diff';
|
|
12
|
+
export * from './Divider';
|
|
13
|
+
export * from './Drawer';
|
|
9
14
|
export * from './Dropdown';
|
|
10
15
|
export * from './FileInput';
|
|
16
|
+
export * from './Filter';
|
|
11
17
|
export * from './Form';
|
|
12
18
|
export * from './Icon';
|
|
19
|
+
export * from './Indicator';
|
|
13
20
|
export * from './Input';
|
|
21
|
+
export * from './Kbd';
|
|
14
22
|
export * from './Link';
|
|
15
23
|
export * from './Loading';
|
|
16
24
|
export * from './Message';
|
|
17
25
|
export * from './MessageBox';
|
|
18
26
|
export * from './Notification';
|
|
27
|
+
export * from './Pixelate';
|
|
19
28
|
export * from './Popconfirm';
|
|
29
|
+
export * from './Progress';
|
|
30
|
+
export * from './Radio';
|
|
31
|
+
export * from './Resizable';
|
|
20
32
|
export * from './Select';
|
|
33
|
+
export * from './Skeleton';
|
|
21
34
|
export * from './Switch';
|
|
35
|
+
export * from './Table';
|
|
22
36
|
export * from './Tooltip';
|
|
37
|
+
export * from './Validator';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { default as useClickOutside } from './useClickOutside';
|
|
2
2
|
import { default as useDisabledStyle } from './useDisabledStyle';
|
|
3
|
+
import { default as useDraggable } from './useDraggable';
|
|
3
4
|
import { default as useEventListener } from './useEventListener';
|
|
4
5
|
import { default as useFocusController } from './useFocusController';
|
|
6
|
+
import { default as useFocusTrap } from './useFocusTrap';
|
|
5
7
|
import { default as useId } from './useId';
|
|
6
8
|
import { default as useLocale } from './useLocale';
|
|
7
9
|
import { default as useOffset } from './useOffset';
|
|
8
10
|
import { default as useZIndex } from './useZIndex';
|
|
9
11
|
export { useSystemTheme } from './useSystemTheme';
|
|
10
12
|
export { type Theme, useTheme } from './useTheme';
|
|
11
|
-
export { useClickOutside, useEventListener, useDisabledStyle, useFocusController, useLocale, useOffset, useZIndex, useId, };
|
|
13
|
+
export { useClickOutside, useDraggable, useEventListener, useDisabledStyle, useFocusController, useFocusTrap, useLocale, useOffset, useZIndex, useId, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface UseDraggableOptions {
|
|
3
|
+
constrainToViewport?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function useDraggable(targetRef: Ref<HTMLElement | undefined>, handleRef: Ref<HTMLElement | undefined>, options?: UseDraggableOptions): {
|
|
6
|
+
reset: () => void;
|
|
7
|
+
};
|
|
@@ -15,6 +15,8 @@ export * from './error';
|
|
|
15
15
|
export * from './icon-map';
|
|
16
16
|
export * from './icon-registry';
|
|
17
17
|
export * from './install';
|
|
18
|
+
export * from './instance-management';
|
|
19
|
+
export * from './pixelate';
|
|
18
20
|
export * from './sanitize-svg';
|
|
19
21
|
export * from './style';
|
|
20
22
|
export * from './test';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared utilities for imperative component instance management
|
|
3
|
+
* (used by Message and Notification methods.ts).
|
|
4
|
+
*/
|
|
5
|
+
interface Destroyable {
|
|
6
|
+
props: {
|
|
7
|
+
onDestroy(): void;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface Closeable {
|
|
11
|
+
handler: {
|
|
12
|
+
close(): void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Forcefully unmount all instances in a flat array, bypassing CSS transitions.
|
|
17
|
+
*/
|
|
18
|
+
export declare function destroyAllInstances(instances: Destroyable[]): void;
|
|
19
|
+
/**
|
|
20
|
+
* Forcefully unmount all instances across a Map of position-keyed arrays.
|
|
21
|
+
*/
|
|
22
|
+
export declare function destroyAllInstancesMap(instancesMap: Map<string, Destroyable[]>): void;
|
|
23
|
+
/**
|
|
24
|
+
* Destroy oldest instances that exceed the maximum count.
|
|
25
|
+
*/
|
|
26
|
+
export declare function enforceMaxCount(instances: Destroyable[], max: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Create a lazy global Escape key listener that is only active when
|
|
29
|
+
* at least one instance exists. Call `register()` when an instance is
|
|
30
|
+
* created and `unregister()` when an instance is destroyed.
|
|
31
|
+
*
|
|
32
|
+
* @param getLatestCloseable - returns the instance to close on Escape, or undefined
|
|
33
|
+
*/
|
|
34
|
+
export declare function createLazyEscapeClose(getLatestCloseable: () => Closeable | undefined): {
|
|
35
|
+
/** Call when an instance is created. */
|
|
36
|
+
register(): void;
|
|
37
|
+
/** Call when an instance is destroyed. */
|
|
38
|
+
unregister(): void;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared pixelation utilities used by PxPixelate and PxDiff.
|
|
3
|
+
*/
|
|
4
|
+
export interface PixelateCanvasOptions {
|
|
5
|
+
pixelSize: number;
|
|
6
|
+
grayscale?: boolean;
|
|
7
|
+
palette?: string[] | number[][];
|
|
8
|
+
background?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function pixelateCanvas(canvas: HTMLCanvasElement, img: HTMLImageElement, options: PixelateCanvasOptions): void;
|