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/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<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
35
+ declare const __VLS_component_10: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
35
36
  remove: () => any;
36
- }, string, PublicProps, Readonly<__VLS_Props_16> & 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<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
84
+ declare const __VLS_component_19: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
84
85
  "update:value": (value: string | number) => any;
85
- }, string, PublicProps, Readonly<__VLS_Props_21> & 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<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
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<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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
- items: MenuItem[];
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 __VLS_Props_13 = {
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 __VLS_Props_14 = {
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 __VLS_Props_15 = {
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 __VLS_Props_16 = {
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 __VLS_Props_17 = {
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 __VLS_Props_21 = {
279
+ declare type __VLS_Props_23 = {
265
280
  value: string | number;
266
281
  };
267
282
 
268
- declare type __VLS_Props_22 = {
283
+ declare type __VLS_Props_24 = {
269
284
  value: string | number;
270
285
  };
271
286
 
272
- declare type __VLS_Props_23 = {
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
- } & __VLS_Props_17;
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<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
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;