prlg-ui 1.5.8 → 1.6.1
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/FileIcon-DkEbi-bi.js +101 -0
- package/dist/FileIcon-sxADkCIe.cjs +1 -0
- package/dist/Image-CqmYPuqB.js +174 -0
- package/dist/Image-DDHrjTpr.cjs +1 -0
- package/dist/TrashIcon-D9034G7A.js +148 -0
- package/dist/TrashIcon-DJApIo8R.cjs +1 -0
- package/dist/{WarningFillIcon-Drb2OS3I.js → WarningFillIcon-CM57QlUR.js} +63 -104
- package/dist/WarningFillIcon-D5bEU2m7.cjs +1 -0
- package/dist/blocks/index.cjs.js +1 -0
- package/dist/blocks/index.es.js +262 -0
- package/dist/blocks.d.ts +59 -0
- package/dist/dayjs.util-Dg65EiGQ.cjs +1 -0
- package/dist/dayjs.util-RJe77c19.js +725 -0
- package/dist/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +296 -423
- package/dist/icons.d.ts +8 -0
- package/dist/index.d.ts +80 -34
- package/dist/onClickOutside.util-CJueL_Rz.js +21 -0
- package/dist/onClickOutside.util-DD1l-Ra5.cjs +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +170 -165
- package/dist/useBodyScroll.util-Bbv2BXN4.cjs +1 -0
- package/dist/useBodyScroll.util-TIjN_8oq.js +63 -0
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +395 -1115
- package/dist/utils/parseFileSize.util.ts +38 -0
- package/dist/utils/typeFile.util.ts +32 -0
- package/package.json +6 -1
- package/dist/WarningFillIcon-cHWhG7dF.cjs +0 -1
- package/dist/useBodyScroll.util-BgQeA8Dg.js +0 -82
- package/dist/useBodyScroll.util-D-eNxODy.cjs +0 -1
package/dist/icons.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export declare const ErrorFillIcon: DefineComponent< {}, {}, {}, {}, {}, Comp
|
|
|
81
81
|
|
|
82
82
|
export declare const ErrorIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
83
83
|
|
|
84
|
+
export declare const ExcelIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
85
|
+
|
|
84
86
|
export declare const EyeCloseIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
85
87
|
|
|
86
88
|
export declare const EyeIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -105,6 +107,8 @@ export declare const HeartFillIcon: DefineComponent< {}, {}, {}, {}, {}, Comp
|
|
|
105
107
|
|
|
106
108
|
export declare const HeartOutlinedIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
107
109
|
|
|
110
|
+
export declare const ImageIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
111
|
+
|
|
108
112
|
export declare const InfoFillIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
109
113
|
|
|
110
114
|
export declare const InfoIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -121,6 +125,8 @@ export declare const NewIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentO
|
|
|
121
125
|
|
|
122
126
|
export declare const PackageIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
123
127
|
|
|
128
|
+
export declare const PdfIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
129
|
+
|
|
124
130
|
export declare const PencelLineIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
125
131
|
|
|
126
132
|
export declare const PlusIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -181,6 +187,8 @@ export declare const WarningFillIcon: DefineComponent< {}, {}, {}, {}, {}, Co
|
|
|
181
187
|
|
|
182
188
|
export declare const WarningIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
183
189
|
|
|
190
|
+
export declare const WordIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
191
|
+
|
|
184
192
|
export { }
|
|
185
193
|
|
|
186
194
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ComponentOptionsBase } from 'vue';
|
|
|
8
8
|
import { ComponentOptionsMixin } from 'vue';
|
|
9
9
|
import { ComponentProvideOptions } from 'vue';
|
|
10
10
|
import { ComponentPublicInstance } from 'vue';
|
|
11
|
+
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
11
12
|
import { CSSProperties } from 'vue';
|
|
12
13
|
import { DebuggerEvent } from 'vue';
|
|
13
14
|
import { DefineComponent } from 'vue';
|
|
@@ -31,9 +32,9 @@ import { WatchStopHandle } from 'vue';
|
|
|
31
32
|
|
|
32
33
|
declare const __VLS_component: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
34
|
|
|
34
|
-
declare const __VLS_component_10: DefineComponent<
|
|
35
|
+
declare const __VLS_component_10: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
35
36
|
remove: () => any;
|
|
36
|
-
}, string, PublicProps, Readonly<
|
|
37
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
37
38
|
onRemove?: (() => any) | undefined;
|
|
38
39
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
39
40
|
|
|
@@ -68,7 +69,7 @@ triggerRef: HTMLDivElement;
|
|
|
68
69
|
popoverRef: HTMLDivElement;
|
|
69
70
|
}, HTMLDivElement>;
|
|
70
71
|
|
|
71
|
-
declare const __VLS_component_14: DefineComponent<
|
|
72
|
+
declare const __VLS_component_14: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
72
73
|
|
|
73
74
|
declare const __VLS_component_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
74
75
|
contentRef: HTMLDivElement;
|
|
@@ -76,13 +77,13 @@ contentRef: HTMLDivElement;
|
|
|
76
77
|
|
|
77
78
|
declare const __VLS_component_16: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
78
79
|
|
|
79
|
-
declare const __VLS_component_17: DefineComponent<
|
|
80
|
+
declare const __VLS_component_17: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
80
81
|
|
|
81
|
-
declare const __VLS_component_18: DefineComponent<
|
|
82
|
+
declare const __VLS_component_18: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
82
83
|
|
|
83
|
-
declare const __VLS_component_19: DefineComponent<
|
|
84
|
+
declare const __VLS_component_19: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
84
85
|
"update:value": (value: string | number) => any;
|
|
85
|
-
}, string, PublicProps, Readonly<
|
|
86
|
+
}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
|
|
86
87
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
87
88
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
88
89
|
|
|
@@ -104,9 +105,9 @@ declare const __VLS_component_20: DefineComponent< {}, {}, {}, {}, {}, Compon
|
|
|
104
105
|
|
|
105
106
|
declare const __VLS_component_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
106
107
|
|
|
107
|
-
declare const __VLS_component_22: DefineComponent<
|
|
108
|
+
declare const __VLS_component_22: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
108
109
|
|
|
109
|
-
declare const __VLS_component_23: DefineComponent<
|
|
110
|
+
declare const __VLS_component_23: DefineComponent<__VLS_Props_25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
110
111
|
|
|
111
112
|
declare const __VLS_component_3: DefineComponent<ColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ColumnProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
112
113
|
|
|
@@ -164,7 +165,7 @@ outlined: boolean;
|
|
|
164
165
|
type: "error" | "info" | "warning";
|
|
165
166
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
166
167
|
|
|
167
|
-
declare const __VLS_component_9: DefineComponent<
|
|
168
|
+
declare const __VLS_component_9: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
168
169
|
|
|
169
170
|
declare type __VLS_Props = {
|
|
170
171
|
items: MenuItem[];
|
|
@@ -188,16 +189,30 @@ declare type __VLS_Props_10 = {
|
|
|
188
189
|
};
|
|
189
190
|
|
|
190
191
|
declare type __VLS_Props_11 = {
|
|
191
|
-
|
|
192
|
+
file: File;
|
|
193
|
+
viewName?: boolean;
|
|
194
|
+
outlined?: boolean;
|
|
195
|
+
removable?: boolean;
|
|
192
196
|
};
|
|
193
197
|
|
|
194
198
|
declare type __VLS_Props_12 = {
|
|
199
|
+
src: string;
|
|
200
|
+
alt?: string;
|
|
201
|
+
size?: 'small' | 'medium' | 'large';
|
|
202
|
+
fillScreen?: boolean;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
declare type __VLS_Props_13 = {
|
|
206
|
+
items: MenuItem[];
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
declare type __VLS_Props_14 = {
|
|
195
210
|
value?: string | number;
|
|
196
211
|
variant?: 'primary' | 'danger' | 'neutral';
|
|
197
212
|
strong?: boolean;
|
|
198
213
|
};
|
|
199
214
|
|
|
200
|
-
declare type
|
|
215
|
+
declare type __VLS_Props_15 = {
|
|
201
216
|
value?: number | string;
|
|
202
217
|
variant?: 'danger';
|
|
203
218
|
position?: 'left' | 'right';
|
|
@@ -208,7 +223,7 @@ declare type __VLS_Props_13 = {
|
|
|
208
223
|
};
|
|
209
224
|
};
|
|
210
225
|
|
|
211
|
-
declare type
|
|
226
|
+
declare type __VLS_Props_16 = {
|
|
212
227
|
width?: number | string;
|
|
213
228
|
height?: number | string;
|
|
214
229
|
borderRadius?: string | number;
|
|
@@ -216,13 +231,13 @@ declare type __VLS_Props_14 = {
|
|
|
216
231
|
size?: string;
|
|
217
232
|
};
|
|
218
233
|
|
|
219
|
-
declare type
|
|
234
|
+
declare type __VLS_Props_17 = {
|
|
220
235
|
strokeWidth?: string | number;
|
|
221
236
|
style?: CSSProperties;
|
|
222
237
|
size?: 'small' | 'default' | 'large';
|
|
223
238
|
};
|
|
224
239
|
|
|
225
|
-
declare type
|
|
240
|
+
declare type __VLS_Props_18 = {
|
|
226
241
|
removable?: boolean;
|
|
227
242
|
icon?: string;
|
|
228
243
|
iconPosition?: 'left' | 'right';
|
|
@@ -231,22 +246,12 @@ declare type __VLS_Props_16 = {
|
|
|
231
246
|
strong?: boolean;
|
|
232
247
|
};
|
|
233
248
|
|
|
234
|
-
declare type
|
|
249
|
+
declare type __VLS_Props_19 = {
|
|
235
250
|
title?: string;
|
|
236
251
|
style?: CSSProperties;
|
|
237
252
|
position?: 'top' | 'center' | 'bottom';
|
|
238
253
|
};
|
|
239
254
|
|
|
240
|
-
declare type __VLS_Props_18 = {
|
|
241
|
-
value?: string | number | (string | number)[];
|
|
242
|
-
multiple?: boolean;
|
|
243
|
-
styleView?: 'fill' | 'inline';
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
declare type __VLS_Props_19 = {
|
|
247
|
-
value: string | number;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
255
|
declare type __VLS_Props_2 = {
|
|
251
256
|
label?: string;
|
|
252
257
|
value?: string | number | object;
|
|
@@ -256,20 +261,30 @@ declare type __VLS_Props_2 = {
|
|
|
256
261
|
};
|
|
257
262
|
|
|
258
263
|
declare type __VLS_Props_20 = {
|
|
264
|
+
value?: string | number | (string | number)[];
|
|
265
|
+
multiple?: boolean;
|
|
266
|
+
styleView?: 'fill' | 'inline';
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
declare type __VLS_Props_21 = {
|
|
270
|
+
value: string | number;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
declare type __VLS_Props_22 = {
|
|
259
274
|
layouts?: 'vertical' | 'horizontal';
|
|
260
275
|
type?: 'solid' | 'dashed' | 'dotted';
|
|
261
276
|
align?: 'left' | 'right' | 'center';
|
|
262
277
|
};
|
|
263
278
|
|
|
264
|
-
declare type
|
|
279
|
+
declare type __VLS_Props_23 = {
|
|
265
280
|
value: string | number;
|
|
266
281
|
};
|
|
267
282
|
|
|
268
|
-
declare type
|
|
283
|
+
declare type __VLS_Props_24 = {
|
|
269
284
|
value: string | number;
|
|
270
285
|
};
|
|
271
286
|
|
|
272
|
-
declare type
|
|
287
|
+
declare type __VLS_Props_25 = {
|
|
273
288
|
value: string | number;
|
|
274
289
|
};
|
|
275
290
|
|
|
@@ -343,7 +358,7 @@ declare type __VLS_PublicProps_8 = {
|
|
|
343
358
|
|
|
344
359
|
declare type __VLS_PublicProps_9 = {
|
|
345
360
|
'open': boolean;
|
|
346
|
-
} &
|
|
361
|
+
} & __VLS_Props_19;
|
|
347
362
|
|
|
348
363
|
declare function __VLS_template(): {
|
|
349
364
|
attrs: Partial<{}>;
|
|
@@ -759,9 +774,9 @@ export declare const AccordionHeader: __VLS_WithTemplateSlots_16<typeof __VLS_co
|
|
|
759
774
|
|
|
760
775
|
export declare const AccordionPanel: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
|
|
761
776
|
|
|
762
|
-
export declare const Badge: DefineComponent<
|
|
777
|
+
export declare const Badge: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
763
778
|
|
|
764
|
-
export declare const Breadcrumb: DefineComponent<
|
|
779
|
+
export declare const Breadcrumb: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
765
780
|
|
|
766
781
|
export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
767
782
|
|
|
@@ -915,8 +930,39 @@ declare interface DropdownProps {
|
|
|
915
930
|
loading?: boolean;
|
|
916
931
|
}
|
|
917
932
|
|
|
933
|
+
declare const File_2: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
934
|
+
remove: (file: File) => any;
|
|
935
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
936
|
+
onRemove?: ((file: File) => any) | undefined;
|
|
937
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
938
|
+
export { File_2 as File }
|
|
939
|
+
|
|
918
940
|
export declare const IconField: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
919
941
|
|
|
942
|
+
declare const Image_2: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
943
|
+
imageFullModal: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
944
|
+
src: string;
|
|
945
|
+
alt?: string;
|
|
946
|
+
}> & Readonly<{}>, {
|
|
947
|
+
open: () => void;
|
|
948
|
+
close: () => void;
|
|
949
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
950
|
+
P: {};
|
|
951
|
+
B: {};
|
|
952
|
+
D: {};
|
|
953
|
+
C: {};
|
|
954
|
+
M: {};
|
|
955
|
+
Defaults: {};
|
|
956
|
+
}, Readonly<{
|
|
957
|
+
src: string;
|
|
958
|
+
alt?: string;
|
|
959
|
+
}> & Readonly<{}>, {
|
|
960
|
+
open: () => void;
|
|
961
|
+
close: () => void;
|
|
962
|
+
}, {}, {}, {}, {}> | null;
|
|
963
|
+
}, any>;
|
|
964
|
+
export { Image_2 as Image }
|
|
965
|
+
|
|
920
966
|
export declare const InputNumber: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
921
967
|
"update:modelValue": (value: number) => any;
|
|
922
968
|
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
@@ -998,7 +1044,7 @@ export declare const Radio: __VLS_WithTemplateSlots_6<typeof __VLS_component_6,
|
|
|
998
1044
|
|
|
999
1045
|
declare type SelectedMode = 'multiple' | 'single';
|
|
1000
1046
|
|
|
1001
|
-
export declare const Skeleton: DefineComponent<
|
|
1047
|
+
export declare const Skeleton: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1002
1048
|
|
|
1003
1049
|
export declare const SleedDeal: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1004
1050
|
menuRef: HTMLDivElement;
|
|
@@ -1059,7 +1105,7 @@ default?(_: {}): any;
|
|
|
1059
1105
|
}) | null;
|
|
1060
1106
|
}, HTMLDivElement>;
|
|
1061
1107
|
|
|
1062
|
-
export declare const Spinner: DefineComponent<
|
|
1108
|
+
export declare const Spinner: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1063
1109
|
|
|
1064
1110
|
export declare const Switch: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1065
1111
|
"update:modelValue": (value: boolean) => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const r = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
function f(n, a, o = {}) {
|
|
3
|
+
if (!n) return () => {
|
|
4
|
+
};
|
|
5
|
+
const c = r.get(n);
|
|
6
|
+
c && (c(), r.delete(n));
|
|
7
|
+
const t = (u) => {
|
|
8
|
+
const s = u.target instanceof Node ? u.target : null;
|
|
9
|
+
if (!s) return;
|
|
10
|
+
const d = (typeof o.ignore == "function" ? o.ignore() : o.ignore ?? []).map((e) => typeof e == "string" ? document.querySelector(e) : e instanceof HTMLElement ? e : null).filter((e) => e != null);
|
|
11
|
+
n.contains(s) || d.some((e) => e.contains(s)) || a(u);
|
|
12
|
+
};
|
|
13
|
+
document.addEventListener("mousedown", t, { capture: !0 }), document.addEventListener("touchstart", t, { capture: !0 });
|
|
14
|
+
const i = () => {
|
|
15
|
+
document.removeEventListener("mousedown", t, { capture: !0 }), document.removeEventListener("touchstart", t, { capture: !0 }), r.delete(n);
|
|
16
|
+
};
|
|
17
|
+
return r.set(n, i), i;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
f as o
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=new WeakMap;function l(t,a,o={}){if(!t)return()=>{};const c=r.get(t);c&&(c(),r.delete(t));const n=u=>{const s=u.target instanceof Node?u.target:null;if(!s)return;const d=(typeof o.ignore=="function"?o.ignore():o.ignore??[]).map(e=>typeof e=="string"?document.querySelector(e):e instanceof HTMLElement?e:null).filter(e=>e!=null);t.contains(s)||d.some(e=>e.contains(s))||a(u)};document.addEventListener("mousedown",n,{capture:!0}),document.addEventListener("touchstart",n,{capture:!0});const i=()=>{document.removeEventListener("mousedown",n,{capture:!0}),document.removeEventListener("touchstart",n,{capture:!0}),r.delete(t)};return r.set(t,i),i}exports.onClickOutside=l;
|