x-next 1.5.0 → 1.7.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/AI_USAGE.md +57 -4
- package/CHANGELOG.md +72 -0
- package/dist/_utils/color.d.ts +53 -0
- package/dist/components/color-picker/ColorPicker.d.ts +239 -0
- package/dist/components/color-picker/gradient-slider.d.ts +52 -0
- package/dist/components/color-picker/index.d.ts +238 -0
- package/dist/components/color-picker/panel.d.ts +721 -0
- package/dist/components/color-picker/sv-panel.d.ts +48 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +3 -3
- package/dist/components/date-picker/index.d.ts +6 -6
- package/dist/components/draggable/Draggable.d.ts +1 -1
- package/dist/components/draggable/index.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +6 -6
- package/dist/components/drawer/src/Drawer.vue.d.ts +3 -3
- package/dist/components/dropdown/Dropdown.vue.d.ts +34 -4
- package/dist/components/dropdown/DropdownButton.vue.d.ts +35 -5
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +34 -4
- package/dist/components/dropdown/dropdown-panel.vue.d.ts +30 -0
- package/dist/components/dropdown/index.d.ts +209 -29
- package/dist/components/form/FormItem.vue.d.ts +12 -12
- package/dist/components/form/form-item-label.vue.d.ts +3 -3
- package/dist/components/form/index.d.ts +24 -24
- package/dist/components/form-select/Select.d.ts +3 -3
- package/dist/components/form-select/SelectDropdown.vue.d.ts +30 -0
- package/dist/components/form-select/index.d.ts +66 -6
- package/dist/components/form-slider/Slider.vue.d.ts +3 -3
- package/dist/components/form-slider/index.d.ts +6 -6
- package/dist/components/form-slider/slider-button.vue.d.ts +3 -3
- package/dist/components/grid/Row.vue.d.ts +3 -3
- package/dist/components/grid/index.d.ts +9 -9
- package/dist/components/heatmap/Heatmap.d.ts +311 -0
- package/dist/components/heatmap/helpers/matrix.d.ts +58 -0
- package/dist/components/heatmap/index.d.ts +372 -0
- package/dist/components/heatmap/interface.d.ts +57 -0
- package/dist/components/image/Image.vue.d.ts +125 -17
- package/dist/components/image/ImagePreview.vue.d.ts +97 -7
- package/dist/components/image/ImagePreviewAction.d.ts +3 -3
- package/dist/components/image/ImagePreviewGroup.vue.d.ts +100 -7
- package/dist/components/image/hooks/use-image-drag.d.ts +2 -2
- package/dist/components/image/index.d.ts +712 -124
- package/dist/components/image/interface.d.ts +9 -1
- package/dist/components/image/preview-toolbar.vue.d.ts +3 -3
- package/dist/components/index.d.ts +3 -0
- package/dist/components/menu/sub-menu-pop.vue.d.ts +3 -3
- package/dist/components/network/Network.vue.d.ts +1 -1
- package/dist/components/network/index.d.ts +3 -3
- package/dist/components/network/utils.d.ts +2 -0
- package/dist/components/pagination/page-item-ellipsis.vue.d.ts +9 -0
- package/dist/components/pagination/page-jumper.vue.d.ts +6 -0
- package/dist/components/pagination/page-options.vue.d.ts +6 -6
- package/dist/components/popconfirm/src/popup.vue.d.ts +3 -3
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popup/Popup.d.ts +1 -1
- package/dist/components/popup/index.d.ts +3 -3
- package/dist/components/skeleton/SkeletonShape.vue.d.ts +3 -3
- package/dist/components/skeleton/index.d.ts +6 -6
- package/dist/components/space/Space.d.ts +1 -1
- package/dist/components/space/index.d.ts +3 -3
- package/dist/components/spin/Spin.d.ts +38 -0
- package/dist/components/spin/index.d.ts +30 -0
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/time-picker/TimePicker.vue.d.ts +3 -3
- package/dist/components/time-picker/index.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/trigger/Trigger.d.ts +1 -1
- package/dist/components/trigger/index.d.ts +3 -3
- package/dist/components/upload/Upload.d.ts +372 -0
- package/dist/components/upload/context.d.ts +28 -0
- package/dist/components/upload/index.d.ts +656 -0
- package/dist/components/upload/interface.d.ts +110 -0
- package/dist/components/upload/props.d.ts +321 -0
- package/dist/components/upload/upload-list-item.d.ts +15 -0
- package/dist/components/upload/upload-list.d.ts +11 -0
- package/dist/components/upload/upload-picture-item.d.ts +20 -0
- package/dist/components/upload/upload-trigger.d.ts +8 -0
- package/dist/components/upload/utils.d.ts +48 -0
- package/dist/components/watermark/Watermark.d.ts +1 -1
- package/dist/components/watermark/index.d.ts +3 -3
- package/dist/es/_styles/palette-aliases.js +10 -4
- package/dist/es/_utils/color.js +73 -0
- package/dist/es/components/button/Button.js +2 -2
- package/dist/es/components/color-picker/ColorPicker.js +239 -0
- package/dist/es/components/color-picker/gradient-slider.js +79 -0
- package/dist/es/components/color-picker/index.js +8 -0
- package/dist/es/components/color-picker/panel.js +307 -0
- package/dist/es/components/color-picker/sv-panel.js +99 -0
- package/dist/es/components/dropdown/dropdown-panel.vue.js +17 -17
- package/dist/es/components/form-input/Input.js +7 -7
- package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
- package/dist/es/components/form-input/InputSearch.js +2 -2
- package/dist/es/components/form-input-number/InputNumber.js +12 -12
- package/dist/es/components/heatmap/Heatmap.js +334 -0
- package/dist/es/components/heatmap/helpers/matrix.js +106 -0
- package/dist/es/components/heatmap/index.js +8 -0
- package/dist/es/components/image/Image.vue.js +55 -45
- package/dist/es/components/image/Image.vue2.js +113 -92
- package/dist/es/components/image/ImagePreview.vue.js +66 -53
- package/dist/es/components/image/ImagePreview.vue2.js +219 -171
- package/dist/es/components/image/ImagePreviewAction.js +12 -15
- package/dist/es/components/image/ImagePreviewGroup.vue.js +21 -20
- package/dist/es/components/image/ImagePreviewGroup.vue2.js +45 -39
- package/dist/es/components/image/hooks/use-image-drag.js +16 -14
- package/dist/es/components/index.js +123 -117
- package/dist/es/components/menu/sub-menu-pop.vue2.js +12 -12
- package/dist/es/components/network/Network.vue2.js +72 -72
- package/dist/es/components/network/utils.js +44 -35
- package/dist/es/components/pagination/Pagination.js +113 -104
- package/dist/es/components/pagination/page-item-ellipsis.vue.js +13 -12
- package/dist/es/components/pagination/page-item-ellipsis.vue2.js +19 -15
- package/dist/es/components/pagination/page-jumper.vue.js +13 -12
- package/dist/es/components/pagination/page-jumper.vue2.js +7 -4
- package/dist/es/components/pagination/page-options.vue.js +4 -3
- package/dist/es/components/pagination/page-options.vue2.js +17 -15
- package/dist/es/components/skeleton/Skeleton.vue.js +11 -9
- package/dist/es/components/skeleton/SkeletonLine.vue.js +9 -8
- package/dist/es/components/skeleton/SkeletonShape.vue.js +8 -7
- package/dist/es/components/spin/Spin.js +124 -60
- package/dist/es/components/table/Table.js +3 -1
- package/dist/es/components/trigger/Trigger.js +19 -19
- package/dist/es/components/upload/Upload.js +420 -0
- package/dist/es/components/upload/context.js +4 -0
- package/dist/es/components/upload/index.js +8 -0
- package/dist/es/components/upload/props.js +321 -0
- package/dist/es/components/upload/upload-list-item.js +138 -0
- package/dist/es/components/upload/upload-list.js +48 -0
- package/dist/es/components/upload/upload-picture-item.js +109 -0
- package/dist/es/components/upload/upload-trigger.js +89 -0
- package/dist/es/components/upload/utils.js +195 -0
- package/dist/es/icons/_self/empty-better.js +25 -8
- package/dist/es/icons/_self/upload-icons.js +103 -0
- package/dist/es/index.js +168 -162
- package/dist/es/locale/en-US.js +39 -1
- package/dist/es/locale/zh-CN.js +39 -1
- package/dist/es/style.css +1 -1
- package/dist/icons/_self/upload-icons.d.ts +523 -0
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +60 -0
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/color-picker.css +1 -0
- package/dist/style/color-picker.js +2 -0
- package/dist/style/date-picker.css +1 -1
- package/dist/style/empty.css +1 -1
- package/dist/style/form-checkbox.css +1 -1
- package/dist/style/form-input-tag.css +1 -1
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-radio.css +1 -1
- package/dist/style/form-textarea.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/heatmap.css +1 -0
- package/dist/style/heatmap.js +2 -0
- package/dist/style/image.css +1 -1
- package/dist/style/menu.css +1 -1
- package/dist/style/pagination.css +1 -1
- package/dist/style/skeleton.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style/steps.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style/upload.css +1 -0
- package/dist/style/upload.js +2 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
- package/volar.d.ts +3 -0
- package/dist/es/_hooks/use-popup-overflow-hidden.js +0 -29
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
export declare const ColorPicker: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
defaultValue: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
show: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
defaultShow: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
modes: {
|
|
20
|
+
type: import('vue').PropType<import('.').ColorFormat[]>;
|
|
21
|
+
default: () => import('.').ColorFormat[];
|
|
22
|
+
};
|
|
23
|
+
showAlpha: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
swatches: {
|
|
28
|
+
type: import('vue').PropType<string[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
showConfirm: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
showClear: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
|
|
45
|
+
};
|
|
46
|
+
popupContainer: {
|
|
47
|
+
type: import('vue').PropType<string | HTMLElement>;
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onClear?: (() => any) | undefined;
|
|
51
|
+
onChange?: ((_value: string, _ev?: Event | undefined) => any) | undefined;
|
|
52
|
+
onConfirm?: ((_value: string) => any) | undefined;
|
|
53
|
+
"onUpdate:modelValue"?: ((_value: string, _ev?: Event | undefined) => any) | undefined;
|
|
54
|
+
"onUpdate:show"?: ((_visible: boolean) => any) | undefined;
|
|
55
|
+
onShowChange?: ((_visible: boolean) => any) | undefined;
|
|
56
|
+
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
'update:modelValue': (_value: string, _ev?: Event) => true;
|
|
58
|
+
change: (_value: string, _ev?: Event) => true;
|
|
59
|
+
'update:show': (_visible: boolean) => true;
|
|
60
|
+
showChange: (_visible: boolean) => true;
|
|
61
|
+
confirm: (_value: string) => true;
|
|
62
|
+
clear: () => true;
|
|
63
|
+
}, import('vue').PublicProps, {
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
defaultValue: string;
|
|
66
|
+
show: boolean;
|
|
67
|
+
modelValue: string;
|
|
68
|
+
modes: import('.').ColorFormat[];
|
|
69
|
+
showAlpha: boolean;
|
|
70
|
+
swatches: string[];
|
|
71
|
+
showConfirm: boolean;
|
|
72
|
+
showClear: boolean;
|
|
73
|
+
defaultShow: boolean;
|
|
74
|
+
}, true, {}, import('vue').SlotsType<{
|
|
75
|
+
default?: () => unknown;
|
|
76
|
+
trigger?: (props: {
|
|
77
|
+
value: string;
|
|
78
|
+
visible: boolean;
|
|
79
|
+
}) => unknown;
|
|
80
|
+
}>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
81
|
+
P: {};
|
|
82
|
+
B: {};
|
|
83
|
+
D: {};
|
|
84
|
+
C: {};
|
|
85
|
+
M: {};
|
|
86
|
+
Defaults: {};
|
|
87
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
88
|
+
modelValue: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
defaultValue: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
show: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
defaultShow: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
modes: {
|
|
105
|
+
type: import('vue').PropType<import('.').ColorFormat[]>;
|
|
106
|
+
default: () => import('.').ColorFormat[];
|
|
107
|
+
};
|
|
108
|
+
showAlpha: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
swatches: {
|
|
113
|
+
type: import('vue').PropType<string[]>;
|
|
114
|
+
default: () => never[];
|
|
115
|
+
};
|
|
116
|
+
showConfirm: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
showClear: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
disabled: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
size: {
|
|
129
|
+
type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
|
|
130
|
+
};
|
|
131
|
+
popupContainer: {
|
|
132
|
+
type: import('vue').PropType<string | HTMLElement>;
|
|
133
|
+
};
|
|
134
|
+
}>> & Readonly<{
|
|
135
|
+
onClear?: (() => any) | undefined;
|
|
136
|
+
onChange?: ((_value: string, _ev?: Event | undefined) => any) | undefined;
|
|
137
|
+
onConfirm?: ((_value: string) => any) | undefined;
|
|
138
|
+
"onUpdate:modelValue"?: ((_value: string, _ev?: Event | undefined) => any) | undefined;
|
|
139
|
+
"onUpdate:show"?: ((_visible: boolean) => any) | undefined;
|
|
140
|
+
onShowChange?: ((_visible: boolean) => any) | undefined;
|
|
141
|
+
}>, () => VNode, {}, {}, {}, {
|
|
142
|
+
disabled: boolean;
|
|
143
|
+
defaultValue: string;
|
|
144
|
+
show: boolean;
|
|
145
|
+
modelValue: string;
|
|
146
|
+
modes: import('.').ColorFormat[];
|
|
147
|
+
showAlpha: boolean;
|
|
148
|
+
swatches: string[];
|
|
149
|
+
showConfirm: boolean;
|
|
150
|
+
showClear: boolean;
|
|
151
|
+
defaultShow: boolean;
|
|
152
|
+
}>;
|
|
153
|
+
__isFragment?: never;
|
|
154
|
+
__isTeleport?: never;
|
|
155
|
+
__isSuspense?: never;
|
|
156
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
157
|
+
modelValue: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
defaultValue: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
default: undefined;
|
|
164
|
+
};
|
|
165
|
+
show: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: undefined;
|
|
168
|
+
};
|
|
169
|
+
defaultShow: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
modes: {
|
|
174
|
+
type: import('vue').PropType<import('.').ColorFormat[]>;
|
|
175
|
+
default: () => import('.').ColorFormat[];
|
|
176
|
+
};
|
|
177
|
+
showAlpha: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
swatches: {
|
|
182
|
+
type: import('vue').PropType<string[]>;
|
|
183
|
+
default: () => never[];
|
|
184
|
+
};
|
|
185
|
+
showConfirm: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
189
|
+
showClear: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
disabled: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
size: {
|
|
198
|
+
type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
|
|
199
|
+
};
|
|
200
|
+
popupContainer: {
|
|
201
|
+
type: import('vue').PropType<string | HTMLElement>;
|
|
202
|
+
};
|
|
203
|
+
}>> & Readonly<{
|
|
204
|
+
onClear?: (() => any) | undefined;
|
|
205
|
+
onChange?: ((_value: string, _ev?: Event | undefined) => any) | undefined;
|
|
206
|
+
onConfirm?: ((_value: string) => any) | undefined;
|
|
207
|
+
"onUpdate:modelValue"?: ((_value: string, _ev?: Event | undefined) => any) | undefined;
|
|
208
|
+
"onUpdate:show"?: ((_visible: boolean) => any) | undefined;
|
|
209
|
+
onShowChange?: ((_visible: boolean) => any) | undefined;
|
|
210
|
+
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
211
|
+
'update:modelValue': (_value: string, _ev?: Event) => true;
|
|
212
|
+
change: (_value: string, _ev?: Event) => true;
|
|
213
|
+
'update:show': (_visible: boolean) => true;
|
|
214
|
+
showChange: (_visible: boolean) => true;
|
|
215
|
+
confirm: (_value: string) => true;
|
|
216
|
+
clear: () => true;
|
|
217
|
+
}, string, {
|
|
218
|
+
disabled: boolean;
|
|
219
|
+
defaultValue: string;
|
|
220
|
+
show: boolean;
|
|
221
|
+
modelValue: string;
|
|
222
|
+
modes: import('.').ColorFormat[];
|
|
223
|
+
showAlpha: boolean;
|
|
224
|
+
swatches: string[];
|
|
225
|
+
showConfirm: boolean;
|
|
226
|
+
showClear: boolean;
|
|
227
|
+
defaultShow: boolean;
|
|
228
|
+
}, {}, string, import('vue').SlotsType<{
|
|
229
|
+
default?: () => unknown;
|
|
230
|
+
trigger?: (props: {
|
|
231
|
+
value: string;
|
|
232
|
+
visible: boolean;
|
|
233
|
+
}) => unknown;
|
|
234
|
+
}>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
235
|
+
install(app: import('vue').App): void;
|
|
236
|
+
};
|
|
237
|
+
export { ColorPicker as default };
|
|
238
|
+
export type { ColorFormat } from '../../_utils/color';
|