@cyberpunk-vue/components 1.13.12 → 1.13.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button/index.d.ts +3 -3
- package/dist/button/src/button.vue.d.ts +1 -1
- package/dist/date-picker/index.d.ts +5 -5
- package/dist/date-picker/src/base-picker.vue.d.ts +2 -2
- package/dist/date-picker/src/date-picker-select.vue.d.ts +2 -2
- package/dist/date-time-picker/index.d.ts +5 -5
- package/dist/date-time-picker/src/date-time-picker.vue.d.ts +2 -2
- package/dist/dialog/index.d.ts +23 -8
- package/dist/dialog/src/dialog.d.ts +9 -1
- package/dist/dialog/src/dialog.vue.d.ts +12 -3
- package/dist/dropdown/index.d.ts +35 -5
- package/dist/dropdown/src/dropdown.d.ts +8 -0
- package/dist/image/index.d.ts +3 -3
- package/dist/image/src/image.vue.d.ts +1 -1
- package/dist/image-preview/index.d.ts +26 -11
- package/dist/image-preview/src/image-preview.d.ts +9 -1
- package/dist/image-preview/src/image-preview.vue.d.ts +13 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4335 -4247
- package/dist/input/index.d.ts +10 -10
- package/dist/input/src/input.vue.d.ts +4 -4
- package/dist/input-number/index.d.ts +2 -2
- package/dist/input-number/src/input-number.vue.d.ts +2 -2
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/src/menu.vue.d.ts +2 -2
- package/dist/menu-nav/index.d.ts +2 -2
- package/dist/menu-nav/src/menu-nav.vue.d.ts +2 -2
- package/dist/notification/index.d.ts +11 -11
- package/dist/notification/src/notification.vue.d.ts +4 -4
- package/dist/popover/index.d.ts +5 -5
- package/dist/popover/src/popover.vue.d.ts +2 -2
- package/dist/select/index.d.ts +35 -5
- package/dist/select/src/select.d.ts +16 -0
- package/dist/select/src/select.vue.d.ts +20 -2
- package/dist/slider/index.d.ts +2 -2
- package/dist/slider/src/slider.vue.d.ts +2 -2
- package/dist/textarea/index.d.ts +4 -4
- package/dist/textarea/src/textarea.vue.d.ts +4 -4
- package/dist/time-picker/index.d.ts +5 -5
- package/dist/time-picker/src/time-picker.vue.d.ts +2 -2
- package/dist/tree/index.d.ts +3 -3
- package/dist/tree/src/tree.vue.d.ts +1 -1
- package/dist/upload/index.d.ts +13 -13
- package/dist/upload/src/upload.vue.d.ts +5 -5
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/overlay-stack.d.ts +13 -0
- package/package.json +4 -4
package/dist/slider/index.d.ts
CHANGED
|
@@ -76,8 +76,8 @@ export declare const CpSlider: import('../utils').SFCWithInstall<import('vue').D
|
|
|
76
76
|
}>, {
|
|
77
77
|
sliderRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
78
78
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
-
input: (value: number | [number, number]) => void;
|
|
80
79
|
change: (value: number | [number, number]) => void;
|
|
80
|
+
input: (value: number | [number, number]) => void;
|
|
81
81
|
"update:modelValue": (value: number | [number, number]) => void;
|
|
82
82
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
83
83
|
readonly modelValue: {
|
|
@@ -141,8 +141,8 @@ export declare const CpSlider: import('../utils').SFCWithInstall<import('vue').D
|
|
|
141
141
|
readonly default: undefined;
|
|
142
142
|
};
|
|
143
143
|
}>> & Readonly<{
|
|
144
|
-
onInput?: ((value: number | [number, number]) => any) | undefined;
|
|
145
144
|
onChange?: ((value: number | [number, number]) => any) | undefined;
|
|
145
|
+
onInput?: ((value: number | [number, number]) => any) | undefined;
|
|
146
146
|
"onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
|
|
147
147
|
}>, {
|
|
148
148
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
@@ -62,8 +62,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
62
|
}>, {
|
|
63
63
|
sliderRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
64
64
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
-
input: (value: number | [number, number]) => void;
|
|
66
65
|
change: (value: number | [number, number]) => void;
|
|
66
|
+
input: (value: number | [number, number]) => void;
|
|
67
67
|
"update:modelValue": (value: number | [number, number]) => void;
|
|
68
68
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
69
69
|
readonly modelValue: {
|
|
@@ -127,8 +127,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
127
127
|
readonly default: undefined;
|
|
128
128
|
};
|
|
129
129
|
}>> & Readonly<{
|
|
130
|
-
onInput?: ((value: number | [number, number]) => any) | undefined;
|
|
131
130
|
onChange?: ((value: number | [number, number]) => any) | undefined;
|
|
131
|
+
onInput?: ((value: number | [number, number]) => any) | undefined;
|
|
132
132
|
"onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
|
|
133
133
|
}>, {
|
|
134
134
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
package/dist/textarea/index.d.ts
CHANGED
|
@@ -55,11 +55,11 @@ export declare const CpTextarea: import('../utils').SFCWithInstall<import('vue')
|
|
|
55
55
|
blur: () => void | undefined;
|
|
56
56
|
textareaRef: import('vue').Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
57
57
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
|
-
input: (value: string, event: Event) => void;
|
|
59
58
|
blur: (event: FocusEvent) => void;
|
|
60
59
|
change: (value: string) => void;
|
|
61
|
-
"update:modelValue": (value: string) => void;
|
|
62
60
|
focus: (event: FocusEvent) => void;
|
|
61
|
+
input: (value: string, event: Event) => void;
|
|
62
|
+
"update:modelValue": (value: string) => void;
|
|
63
63
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
64
64
|
readonly modelValue: {
|
|
65
65
|
readonly type: StringConstructor;
|
|
@@ -113,11 +113,11 @@ export declare const CpTextarea: import('../utils').SFCWithInstall<import('vue')
|
|
|
113
113
|
readonly default: "";
|
|
114
114
|
};
|
|
115
115
|
}>> & Readonly<{
|
|
116
|
-
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
117
116
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
118
117
|
onChange?: ((value: string) => any) | undefined;
|
|
119
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
120
118
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
119
|
+
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
120
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
121
121
|
}>, {
|
|
122
122
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
123
123
|
readonly color: string;
|
|
@@ -63,11 +63,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
63
63
|
blur: () => void | undefined;
|
|
64
64
|
textareaRef: import('vue').Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
65
65
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
66
|
-
input: (value: string, event: Event) => void;
|
|
67
66
|
blur: (event: FocusEvent) => void;
|
|
68
67
|
change: (value: string) => void;
|
|
69
|
-
"update:modelValue": (value: string) => void;
|
|
70
68
|
focus: (event: FocusEvent) => void;
|
|
69
|
+
input: (value: string, event: Event) => void;
|
|
70
|
+
"update:modelValue": (value: string) => void;
|
|
71
71
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
72
72
|
readonly modelValue: {
|
|
73
73
|
readonly type: StringConstructor;
|
|
@@ -129,11 +129,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
129
129
|
readonly default: "";
|
|
130
130
|
};
|
|
131
131
|
}>> & Readonly<{
|
|
132
|
-
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
133
132
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
134
133
|
onChange?: ((value: string) => any) | undefined;
|
|
135
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
136
134
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
135
|
+
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
136
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
137
137
|
}>, {
|
|
138
138
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
139
139
|
readonly color: string;
|
|
@@ -145,15 +145,15 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
|
|
|
145
145
|
onClear?: (() => any) | undefined;
|
|
146
146
|
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
147
147
|
onChange?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
148
|
-
"onUpdate:modelValue"?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
149
148
|
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
149
|
+
"onUpdate:modelValue"?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
150
150
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
151
151
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
152
152
|
clear: () => void;
|
|
153
153
|
blur: (event?: FocusEvent | undefined) => void;
|
|
154
154
|
change: (_value: import('../date-picker/src/picker').PickerModelValue) => void;
|
|
155
|
-
"update:modelValue": (_value: import('../date-picker/src/picker').PickerModelValue) => void;
|
|
156
155
|
focus: (event?: FocusEvent | undefined) => void;
|
|
156
|
+
"update:modelValue": (_value: import('../date-picker/src/picker').PickerModelValue) => void;
|
|
157
157
|
visibleChange: (visible: boolean) => void;
|
|
158
158
|
}, import('vue').PublicProps, {
|
|
159
159
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
@@ -338,8 +338,8 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
|
|
|
338
338
|
onClear?: (() => any) | undefined;
|
|
339
339
|
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
340
340
|
onChange?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
341
|
-
"onUpdate:modelValue"?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
342
341
|
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
342
|
+
"onUpdate:modelValue"?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
343
343
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
344
344
|
}>, {}, {}, {}, {}, {
|
|
345
345
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
@@ -521,15 +521,15 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
|
|
|
521
521
|
onClear?: (() => any) | undefined;
|
|
522
522
|
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
523
523
|
onChange?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
524
|
-
"onUpdate:modelValue"?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
525
524
|
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
525
|
+
"onUpdate:modelValue"?: ((_value: import('../date-picker/src/picker').PickerModelValue) => any) | undefined;
|
|
526
526
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
527
527
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
528
528
|
clear: () => void;
|
|
529
529
|
blur: (event?: FocusEvent | undefined) => void;
|
|
530
530
|
change: (_value: import('../date-picker/src/picker').PickerModelValue) => void;
|
|
531
|
-
"update:modelValue": (_value: import('../date-picker/src/picker').PickerModelValue) => void;
|
|
532
531
|
focus: (event?: FocusEvent | undefined) => void;
|
|
532
|
+
"update:modelValue": (_value: import('../date-picker/src/picker').PickerModelValue) => void;
|
|
533
533
|
visibleChange: (visible: boolean) => void;
|
|
534
534
|
}, string, {
|
|
535
535
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
@@ -154,8 +154,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
154
154
|
clear: () => void;
|
|
155
155
|
blur: (event?: FocusEvent | undefined) => void;
|
|
156
156
|
change: (_value: import('..').PickerModelValue) => void;
|
|
157
|
-
"update:modelValue": (_value: import('..').PickerModelValue) => void;
|
|
158
157
|
focus: (event?: FocusEvent | undefined) => void;
|
|
158
|
+
"update:modelValue": (_value: import('..').PickerModelValue) => void;
|
|
159
159
|
visibleChange: (visible: boolean) => void;
|
|
160
160
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
161
161
|
readonly type: {
|
|
@@ -298,8 +298,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
298
298
|
onClear?: (() => any) | undefined;
|
|
299
299
|
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
300
300
|
onChange?: ((_value: import('..').PickerModelValue) => any) | undefined;
|
|
301
|
-
"onUpdate:modelValue"?: ((_value: import('..').PickerModelValue) => any) | undefined;
|
|
302
301
|
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
302
|
+
"onUpdate:modelValue"?: ((_value: import('..').PickerModelValue) => any) | undefined;
|
|
303
303
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
304
304
|
}>, {
|
|
305
305
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
package/dist/tree/index.d.ts
CHANGED
|
@@ -190,9 +190,9 @@ export declare const CpTree: import('../utils').SFCWithInstall<{
|
|
|
190
190
|
}, import('vue').PublicProps, {
|
|
191
191
|
readonly data: import('.').TreeNodeData[];
|
|
192
192
|
readonly props: import('.').TreeFieldProps;
|
|
193
|
+
readonly load: (node: import('.').TreeNode, resolve: (data: import('.').TreeNodeData[]) => void) => void;
|
|
193
194
|
readonly type: import('.').TreeType;
|
|
194
195
|
readonly color: string;
|
|
195
|
-
readonly load: (node: import('.').TreeNode, resolve: (data: import('.').TreeNodeData[]) => void) => void;
|
|
196
196
|
readonly lazy: boolean;
|
|
197
197
|
readonly showCheckbox: boolean;
|
|
198
198
|
readonly showRadio: boolean;
|
|
@@ -392,9 +392,9 @@ export declare const CpTree: import('../utils').SFCWithInstall<{
|
|
|
392
392
|
}, {}, {}, {}, {
|
|
393
393
|
readonly data: import('.').TreeNodeData[];
|
|
394
394
|
readonly props: import('.').TreeFieldProps;
|
|
395
|
+
readonly load: (node: import('.').TreeNode, resolve: (data: import('.').TreeNodeData[]) => void) => void;
|
|
395
396
|
readonly type: import('.').TreeType;
|
|
396
397
|
readonly color: string;
|
|
397
|
-
readonly load: (node: import('.').TreeNode, resolve: (data: import('.').TreeNodeData[]) => void) => void;
|
|
398
398
|
readonly lazy: boolean;
|
|
399
399
|
readonly showCheckbox: boolean;
|
|
400
400
|
readonly showRadio: boolean;
|
|
@@ -600,9 +600,9 @@ export declare const CpTree: import('../utils').SFCWithInstall<{
|
|
|
600
600
|
}, string, {
|
|
601
601
|
readonly data: import('.').TreeNodeData[];
|
|
602
602
|
readonly props: import('.').TreeFieldProps;
|
|
603
|
+
readonly load: (node: import('.').TreeNode, resolve: (data: import('.').TreeNodeData[]) => void) => void;
|
|
603
604
|
readonly type: import('.').TreeType;
|
|
604
605
|
readonly color: string;
|
|
605
|
-
readonly load: (node: import('.').TreeNode, resolve: (data: import('.').TreeNodeData[]) => void) => void;
|
|
606
606
|
readonly lazy: boolean;
|
|
607
607
|
readonly showCheckbox: boolean;
|
|
608
608
|
readonly showRadio: boolean;
|
|
@@ -296,9 +296,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
296
296
|
}>, {
|
|
297
297
|
readonly data: TreeNodeData[];
|
|
298
298
|
readonly props: import('./tree').TreeFieldProps;
|
|
299
|
+
readonly load: (node: TreeNode, resolve: (data: TreeNodeData[]) => void) => void;
|
|
299
300
|
readonly type: import('./tree').TreeType;
|
|
300
301
|
readonly color: string;
|
|
301
|
-
readonly load: (node: TreeNode, resolve: (data: TreeNodeData[]) => void) => void;
|
|
302
302
|
readonly lazy: boolean;
|
|
303
303
|
readonly showCheckbox: boolean;
|
|
304
304
|
readonly showRadio: boolean;
|
package/dist/upload/index.d.ts
CHANGED
|
@@ -137,26 +137,27 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
137
137
|
readonly default: undefined;
|
|
138
138
|
};
|
|
139
139
|
}>> & Readonly<{
|
|
140
|
-
|
|
140
|
+
onChange?: ((file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
141
141
|
onError?: ((_error: Error, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
142
142
|
onProgress?: ((_percentage: number, file: import('.').UploadFile) => any) | undefined;
|
|
143
|
-
|
|
143
|
+
onSuccess?: ((_response: unknown, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
144
144
|
"onUpdate:modelValue"?: ((fileList: import('.').UploadFile[]) => any) | undefined;
|
|
145
145
|
onRemove?: ((file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
146
146
|
}>, {
|
|
147
147
|
submit: () => void;
|
|
148
148
|
clearFiles: () => void;
|
|
149
149
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
150
|
-
|
|
150
|
+
change: (file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
151
151
|
error: (_error: Error, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
152
152
|
progress: (_percentage: number, file: import('.').UploadFile) => void;
|
|
153
|
-
|
|
153
|
+
success: (_response: unknown, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
154
154
|
"update:modelValue": (fileList: import('.').UploadFile[]) => void;
|
|
155
155
|
remove: (file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
156
156
|
}, import('vue').PublicProps, {
|
|
157
157
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
158
158
|
readonly data: Record<string, string>;
|
|
159
159
|
readonly name: string;
|
|
160
|
+
readonly drag: boolean;
|
|
160
161
|
readonly type: import('.').UploadType;
|
|
161
162
|
readonly color: string;
|
|
162
163
|
readonly variant: import('.').UploadVariant;
|
|
@@ -165,7 +166,6 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
165
166
|
readonly shape: import('.').UploadShape;
|
|
166
167
|
readonly placeholder: string;
|
|
167
168
|
readonly modelValue: import('.').UploadFile[];
|
|
168
|
-
readonly drag: boolean;
|
|
169
169
|
readonly showInnerStripe: boolean;
|
|
170
170
|
readonly multiple: boolean;
|
|
171
171
|
readonly download: boolean;
|
|
@@ -320,10 +320,10 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
320
320
|
readonly default: undefined;
|
|
321
321
|
};
|
|
322
322
|
}>> & Readonly<{
|
|
323
|
-
|
|
323
|
+
onChange?: ((file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
324
324
|
onError?: ((_error: Error, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
325
325
|
onProgress?: ((_percentage: number, file: import('.').UploadFile) => any) | undefined;
|
|
326
|
-
|
|
326
|
+
onSuccess?: ((_response: unknown, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
327
327
|
"onUpdate:modelValue"?: ((fileList: import('.').UploadFile[]) => any) | undefined;
|
|
328
328
|
onRemove?: ((file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
329
329
|
}>, {
|
|
@@ -333,6 +333,7 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
333
333
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
334
334
|
readonly data: Record<string, string>;
|
|
335
335
|
readonly name: string;
|
|
336
|
+
readonly drag: boolean;
|
|
336
337
|
readonly type: import('.').UploadType;
|
|
337
338
|
readonly color: string;
|
|
338
339
|
readonly variant: import('.').UploadVariant;
|
|
@@ -341,7 +342,6 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
341
342
|
readonly shape: import('.').UploadShape;
|
|
342
343
|
readonly placeholder: string;
|
|
343
344
|
readonly modelValue: import('.').UploadFile[];
|
|
344
|
-
readonly drag: boolean;
|
|
345
345
|
readonly showInnerStripe: boolean;
|
|
346
346
|
readonly multiple: boolean;
|
|
347
347
|
readonly download: boolean;
|
|
@@ -491,26 +491,27 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
491
491
|
readonly default: undefined;
|
|
492
492
|
};
|
|
493
493
|
}>> & Readonly<{
|
|
494
|
-
|
|
494
|
+
onChange?: ((file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
495
495
|
onError?: ((_error: Error, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
496
496
|
onProgress?: ((_percentage: number, file: import('.').UploadFile) => any) | undefined;
|
|
497
|
-
|
|
497
|
+
onSuccess?: ((_response: unknown, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
498
498
|
"onUpdate:modelValue"?: ((fileList: import('.').UploadFile[]) => any) | undefined;
|
|
499
499
|
onRemove?: ((file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => any) | undefined;
|
|
500
500
|
}>, {
|
|
501
501
|
submit: () => void;
|
|
502
502
|
clearFiles: () => void;
|
|
503
503
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
504
|
-
|
|
504
|
+
change: (file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
505
505
|
error: (_error: Error, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
506
506
|
progress: (_percentage: number, file: import('.').UploadFile) => void;
|
|
507
|
-
|
|
507
|
+
success: (_response: unknown, file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
508
508
|
"update:modelValue": (fileList: import('.').UploadFile[]) => void;
|
|
509
509
|
remove: (file: import('.').UploadFile, _fileList: import('.').UploadFile[]) => void;
|
|
510
510
|
}, string, {
|
|
511
511
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
512
512
|
readonly data: Record<string, string>;
|
|
513
513
|
readonly name: string;
|
|
514
|
+
readonly drag: boolean;
|
|
514
515
|
readonly type: import('.').UploadType;
|
|
515
516
|
readonly color: string;
|
|
516
517
|
readonly variant: import('.').UploadVariant;
|
|
@@ -519,7 +520,6 @@ export declare const CpUpload: import('../utils').SFCWithInstall<{
|
|
|
519
520
|
readonly shape: import('.').UploadShape;
|
|
520
521
|
readonly placeholder: string;
|
|
521
522
|
readonly modelValue: import('.').UploadFile[];
|
|
522
|
-
readonly drag: boolean;
|
|
523
523
|
readonly showInnerStripe: boolean;
|
|
524
524
|
readonly multiple: boolean;
|
|
525
525
|
readonly download: boolean;
|
|
@@ -166,10 +166,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
166
166
|
/** 清空文件列表 */
|
|
167
167
|
clearFiles: () => void;
|
|
168
168
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
169
|
-
|
|
169
|
+
change: (file: UploadFile, _fileList: UploadFile[]) => void;
|
|
170
170
|
error: (_error: Error, file: UploadFile, _fileList: UploadFile[]) => void;
|
|
171
171
|
progress: (_percentage: number, file: UploadFile) => void;
|
|
172
|
-
|
|
172
|
+
success: (_response: unknown, file: UploadFile, _fileList: UploadFile[]) => void;
|
|
173
173
|
"update:modelValue": (fileList: UploadFile[]) => void;
|
|
174
174
|
remove: (file: UploadFile, _fileList: UploadFile[]) => void;
|
|
175
175
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -298,16 +298,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
298
298
|
readonly default: undefined;
|
|
299
299
|
};
|
|
300
300
|
}>> & Readonly<{
|
|
301
|
-
|
|
301
|
+
onChange?: ((file: UploadFile, _fileList: UploadFile[]) => any) | undefined;
|
|
302
302
|
onError?: ((_error: Error, file: UploadFile, _fileList: UploadFile[]) => any) | undefined;
|
|
303
303
|
onProgress?: ((_percentage: number, file: UploadFile) => any) | undefined;
|
|
304
|
-
|
|
304
|
+
onSuccess?: ((_response: unknown, file: UploadFile, _fileList: UploadFile[]) => any) | undefined;
|
|
305
305
|
"onUpdate:modelValue"?: ((fileList: UploadFile[]) => any) | undefined;
|
|
306
306
|
onRemove?: ((file: UploadFile, _fileList: UploadFile[]) => any) | undefined;
|
|
307
307
|
}>, {
|
|
308
308
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
309
309
|
readonly data: Record<string, string>;
|
|
310
310
|
readonly name: string;
|
|
311
|
+
readonly drag: boolean;
|
|
311
312
|
readonly type: import('./upload').UploadType;
|
|
312
313
|
readonly color: string;
|
|
313
314
|
readonly variant: import('./upload').UploadVariant;
|
|
@@ -316,7 +317,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
316
317
|
readonly shape: import('./upload').UploadShape;
|
|
317
318
|
readonly placeholder: string;
|
|
318
319
|
readonly modelValue: UploadFile[];
|
|
319
|
-
readonly drag: boolean;
|
|
320
320
|
readonly showInnerStripe: boolean;
|
|
321
321
|
readonly multiple: boolean;
|
|
322
322
|
readonly download: boolean;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type OverlayStackEntryOptions = {
|
|
2
|
+
zIndex: number;
|
|
3
|
+
stackPriority: number;
|
|
4
|
+
onKeydown: (event: KeyboardEvent) => boolean;
|
|
5
|
+
onZIndexChange: (zIndex: number) => void;
|
|
6
|
+
};
|
|
7
|
+
type OverlayStackController = {
|
|
8
|
+
update: (options: Partial<Pick<OverlayStackEntryOptions, 'zIndex' | 'stackPriority'>>) => void;
|
|
9
|
+
unregister: () => void;
|
|
10
|
+
isTop: () => boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const registerOverlay: (options: OverlayStackEntryOptions) => OverlayStackController;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.14",
|
|
4
4
|
"description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@floating-ui/dom": "^1.7.6",
|
|
27
27
|
"dayjs": "^1.11.20",
|
|
28
|
-
"@cyberpunk-vue/
|
|
29
|
-
"@cyberpunk-vue/hooks": "1.13.
|
|
30
|
-
"@cyberpunk-vue/
|
|
28
|
+
"@cyberpunk-vue/constants": "1.13.14",
|
|
29
|
+
"@cyberpunk-vue/hooks": "1.13.14",
|
|
30
|
+
"@cyberpunk-vue/theme-chalk": "1.13.14"
|
|
31
31
|
},
|
|
32
32
|
"author": "Juxest",
|
|
33
33
|
"license": "MIT",
|