@aitronos/freddy-plugins 0.4.2 → 0.4.3
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 +471 -0
- package/dist/freddy-plugins.css +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +446 -215
- package/dist/index.js +3831 -2938
- package/dist/index.js.map +1 -1
- package/package.json +24 -6
- package/dist/vite.svg +0 -31
- package/dist/web-components.iife.js +0 -61
- package/dist/web-components.iife.js.map +0 -1
- package/dist/web-components.js +0 -10060
- package/dist/web-components.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,63 +13,63 @@ import { Ref } from 'vue';
|
|
|
13
13
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
|
|
15
15
|
declare const __VLS_component_2: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
click: (event: MouseEvent) => any;
|
|
17
|
+
hoverIconClick: (event: MouseEvent) => any;
|
|
18
18
|
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
20
|
+
onHoverIconClick?: ((event: MouseEvent) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
size: "s" | "sm" | "md" | "lg" | "xl";
|
|
23
|
+
label: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
loading: boolean;
|
|
26
|
+
showLeftIcon: boolean;
|
|
27
|
+
showRightIcon: boolean;
|
|
28
|
+
leftIcon: any;
|
|
29
|
+
rightIcon: any;
|
|
30
|
+
hoverIcon: any;
|
|
31
|
+
iconOnly: boolean;
|
|
32
|
+
hierarchy: "primary" | "secondary" | "tertiary" | "text" | "success";
|
|
33
|
+
destructive: boolean;
|
|
34
|
+
tooltip: string;
|
|
35
|
+
tooltipPlacement: "top" | "bottom" | "left" | "right";
|
|
36
36
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
|
|
38
38
|
declare const __VLS_component_3: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
select: (value: Option_2) => any;
|
|
40
|
+
toggle: (value: Option_2) => any;
|
|
41
41
|
}, string, PublicProps, Readonly<Props_2> & Readonly<{
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
onSelect?: ((value: Option_2) => any) | undefined;
|
|
43
|
+
onToggle?: ((value: Option_2) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
size: "s" | "sm" | "md" | "lg" | "xl";
|
|
46
|
+
label: string;
|
|
47
|
+
iconOnly: boolean;
|
|
48
|
+
options: Option_2[];
|
|
49
|
+
searchable: boolean;
|
|
50
|
+
searchPlaceholder: string;
|
|
51
|
+
openUp: boolean;
|
|
52
|
+
chevronRight: boolean;
|
|
53
|
+
showIcon: boolean;
|
|
54
|
+
customIcon: any;
|
|
55
|
+
optionIconRight: boolean;
|
|
56
|
+
showShortcut: boolean;
|
|
57
|
+
background: string;
|
|
58
|
+
borderRadius: string;
|
|
59
|
+
activeBackground: string;
|
|
60
|
+
openBackground: string;
|
|
61
|
+
variant: "primary" | "secondary" | "blanc";
|
|
62
|
+
stayOpen: boolean;
|
|
63
63
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
64
64
|
|
|
65
|
-
declare const __VLS_component_4: DefineComponent<
|
|
66
|
-
|
|
67
|
-
}, string, PublicProps, Readonly<
|
|
68
|
-
|
|
65
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
66
|
+
close: (...args: any[]) => void;
|
|
67
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
68
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
70
70
|
|
|
71
71
|
declare const __VLS_component_5: DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
72
|
-
|
|
72
|
+
tooltipWrapper: HTMLDivElement;
|
|
73
73
|
}, HTMLDivElement>;
|
|
74
74
|
|
|
75
75
|
declare type __VLS_Props = {
|
|
@@ -78,6 +78,11 @@ declare type __VLS_Props = {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
declare type __VLS_Props_2 = {
|
|
81
|
+
code: string;
|
|
82
|
+
language: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
declare type __VLS_Props_3 = {
|
|
81
86
|
isChecked: boolean;
|
|
82
87
|
isDashInput?: boolean;
|
|
83
88
|
blueCheckbox?: boolean;
|
|
@@ -85,29 +90,29 @@ declare type __VLS_Props_2 = {
|
|
|
85
90
|
ariaLabel?: string;
|
|
86
91
|
};
|
|
87
92
|
|
|
88
|
-
declare type
|
|
93
|
+
declare type __VLS_Props_4 = {
|
|
89
94
|
modalTitle: string;
|
|
90
95
|
headerClass: string;
|
|
91
96
|
disableClickOutside?: boolean;
|
|
92
97
|
};
|
|
93
98
|
|
|
94
|
-
declare type
|
|
99
|
+
declare type __VLS_Props_5 = {
|
|
95
100
|
disabled?: boolean;
|
|
96
101
|
active?: boolean;
|
|
97
102
|
size?: "s" | "sm" | "md" | "lg" | "xl";
|
|
98
103
|
};
|
|
99
104
|
|
|
100
|
-
declare type
|
|
105
|
+
declare type __VLS_Props_6 = {
|
|
101
106
|
type: SkeletonType;
|
|
102
107
|
hasHeader?: boolean;
|
|
103
108
|
count?: number;
|
|
104
109
|
};
|
|
105
110
|
|
|
106
|
-
declare type
|
|
111
|
+
declare type __VLS_Props_7 = {
|
|
107
112
|
customClass?: string;
|
|
108
113
|
};
|
|
109
114
|
|
|
110
|
-
declare type
|
|
115
|
+
declare type __VLS_Props_8 = {
|
|
111
116
|
modelValue: boolean;
|
|
112
117
|
disabled?: boolean;
|
|
113
118
|
size?: 's' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -223,32 +228,96 @@ export declare const calculatePercentage: (partialValue: number, totalValue: num
|
|
|
223
228
|
|
|
224
229
|
export declare function cloneDeepSafe<T>(value: T): T;
|
|
225
230
|
|
|
226
|
-
export declare const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
export declare const CodeBlock: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLPreElement>;
|
|
232
|
+
|
|
233
|
+
export declare interface ColorConfig {
|
|
234
|
+
name: string;
|
|
235
|
+
id: string;
|
|
236
|
+
version: number;
|
|
237
|
+
order: number;
|
|
238
|
+
isPublic: boolean;
|
|
239
|
+
isDefault: boolean;
|
|
240
|
+
sections: Record<string, ColorSection>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Interfaces for ColorComparison component
|
|
245
|
+
*/
|
|
246
|
+
export declare interface ColorInfo {
|
|
247
|
+
name: string;
|
|
248
|
+
id: string;
|
|
249
|
+
version: number;
|
|
250
|
+
value: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export declare interface ColorMode {
|
|
254
|
+
name: string;
|
|
255
|
+
id: string;
|
|
256
|
+
version: number;
|
|
257
|
+
order: number;
|
|
258
|
+
modeKey: string;
|
|
259
|
+
isDefault: boolean;
|
|
260
|
+
colorConfig: ColorConfig;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export declare interface ColorSection {
|
|
264
|
+
name: string;
|
|
265
|
+
id: string;
|
|
266
|
+
version: number;
|
|
267
|
+
colors: Record<string, ColorInfo>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export declare interface ComparisonItem {
|
|
271
|
+
colorName: string;
|
|
272
|
+
color1: string;
|
|
273
|
+
color2: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export declare type CompatibilityTest = {
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
textColor: string;
|
|
280
|
+
backgroundColor: string;
|
|
281
|
+
contrastRatio: number;
|
|
282
|
+
pass: boolean;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
export declare interface Configuration {
|
|
286
|
+
metadata: {
|
|
287
|
+
generatedAt: string;
|
|
288
|
+
source: string;
|
|
289
|
+
totalProjects: number;
|
|
290
|
+
note: string;
|
|
234
291
|
};
|
|
292
|
+
projects: Project[];
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export declare const ConfirmationModal: DefineComponent<ExtractPropTypes< {
|
|
296
|
+
title: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
required: true;
|
|
299
|
+
};
|
|
300
|
+
description: {
|
|
301
|
+
type: StringConstructor;
|
|
302
|
+
default: string;
|
|
303
|
+
};
|
|
235
304
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
236
|
-
|
|
237
|
-
|
|
305
|
+
close: (...args: any[]) => void;
|
|
306
|
+
confirmDeletion: (...args: any[]) => void;
|
|
238
307
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
308
|
+
title: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
required: true;
|
|
311
|
+
};
|
|
312
|
+
description: {
|
|
313
|
+
type: StringConstructor;
|
|
314
|
+
default: string;
|
|
315
|
+
};
|
|
247
316
|
}>> & Readonly<{
|
|
248
|
-
|
|
249
|
-
|
|
317
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
318
|
+
onConfirmDeletion?: ((...args: any[]) => any) | undefined;
|
|
250
319
|
}>, {
|
|
251
|
-
|
|
320
|
+
description: string;
|
|
252
321
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
253
322
|
|
|
254
323
|
/**
|
|
@@ -257,10 +326,10 @@ export declare const ConfirmationModal: DefineComponent<ExtractPropTypes< {
|
|
|
257
326
|
*/
|
|
258
327
|
export declare const copyToClipboard: (textToCopy: string) => Promise<void>;
|
|
259
328
|
|
|
260
|
-
export declare const CustomCheckbox: DefineComponent<
|
|
261
|
-
|
|
262
|
-
}, string, PublicProps, Readonly<
|
|
263
|
-
|
|
329
|
+
export declare const CustomCheckbox: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
330
|
+
"update:isChecked": (value: boolean) => any;
|
|
331
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
332
|
+
"onUpdate:isChecked"?: ((value: boolean) => any) | undefined;
|
|
264
333
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
265
334
|
|
|
266
335
|
export declare const daysInMonth: number;
|
|
@@ -275,7 +344,6 @@ export declare const daysInMonth: number;
|
|
|
275
344
|
* @returns A debounced version of the original function.
|
|
276
345
|
*
|
|
277
346
|
* @example
|
|
278
|
-
* const debouncedFn = debounce(() => console.log('Called!'), 500)
|
|
279
347
|
* window.addEventListener('resize', debouncedFn)
|
|
280
348
|
*/
|
|
281
349
|
export declare function debounce<T extends (...args: any[]) => void>(fn: T, wait?: number): (...args: Parameters<T>) => void;
|
|
@@ -294,35 +362,56 @@ export declare function deepEqual<T>(a: T, b: T): boolean;
|
|
|
294
362
|
export declare const defaultImageSrc = "https://img.freepik.com/premium-vector/default-image-icon-vector-missing-picture-page-website-design-mobile-app-no-photo-available_87543-11093.jpg";
|
|
295
363
|
|
|
296
364
|
export declare const DeleteConfirmationModal: DefineComponent<ExtractPropTypes< {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
365
|
+
title: {
|
|
366
|
+
type: StringConstructor;
|
|
367
|
+
required: true;
|
|
368
|
+
};
|
|
369
|
+
description: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
default: string;
|
|
372
|
+
};
|
|
305
373
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
306
|
-
|
|
307
|
-
|
|
374
|
+
close: (...args: any[]) => void;
|
|
375
|
+
confirmDeletion: (...args: any[]) => void;
|
|
308
376
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
377
|
+
title: {
|
|
378
|
+
type: StringConstructor;
|
|
379
|
+
required: true;
|
|
380
|
+
};
|
|
381
|
+
description: {
|
|
382
|
+
type: StringConstructor;
|
|
383
|
+
default: string;
|
|
384
|
+
};
|
|
317
385
|
}>> & Readonly<{
|
|
318
|
-
|
|
319
|
-
|
|
386
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
387
|
+
onConfirmDeletion?: ((...args: any[]) => any) | undefined;
|
|
320
388
|
}>, {
|
|
321
|
-
|
|
389
|
+
description: string;
|
|
322
390
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
323
391
|
|
|
324
392
|
export declare const Dropdown: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
325
393
|
|
|
394
|
+
export declare const EmailCodeVerification: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
395
|
+
verify: (code: string) => any;
|
|
396
|
+
resend: () => any;
|
|
397
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
398
|
+
onVerify?: ((code: string) => any) | undefined;
|
|
399
|
+
onResend?: (() => any) | undefined;
|
|
400
|
+
}>, {
|
|
401
|
+
loading: boolean;
|
|
402
|
+
error: string;
|
|
403
|
+
brand: "contentplate" | "flowplate" | "freddy";
|
|
404
|
+
resendCooldown: number;
|
|
405
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
406
|
+
|
|
407
|
+
export declare interface ErrorDetails {
|
|
408
|
+
message: string;
|
|
409
|
+
code?: string | number;
|
|
410
|
+
stack?: string;
|
|
411
|
+
timestamp: string;
|
|
412
|
+
context?: Record<string, unknown>;
|
|
413
|
+
}
|
|
414
|
+
|
|
326
415
|
/**
|
|
327
416
|
* Formats a file size in bytes into a human-readable string.
|
|
328
417
|
* @param bytes - The file size in bytes.
|
|
@@ -540,6 +629,8 @@ export declare const IconLense: DefineComponent< {}, {}, {}, {}, {}, Componen
|
|
|
540
629
|
|
|
541
630
|
export declare const IconLightCross: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
542
631
|
|
|
632
|
+
export declare const IconLink04: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
633
|
+
|
|
543
634
|
export declare const IconLoadingError: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
544
635
|
|
|
545
636
|
export declare const IconLoadingOrg: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -650,49 +741,51 @@ export declare const IconWarningOctal: DefineComponent< {}, {}, {}, {}, {}, C
|
|
|
650
741
|
|
|
651
742
|
export declare const IconZip: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
652
743
|
|
|
744
|
+
/**
|
|
745
|
+
* Interfaces for TabList component
|
|
746
|
+
*/
|
|
653
747
|
export declare interface IMenuListItem {
|
|
654
|
-
title: string;
|
|
655
748
|
id: number;
|
|
656
|
-
|
|
749
|
+
title: string;
|
|
657
750
|
}
|
|
658
751
|
|
|
659
|
-
export declare const InputField: DefineComponent<
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}, string, PublicProps, Readonly<
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
752
|
+
export declare const InputField: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
753
|
+
input: (value: string) => any;
|
|
754
|
+
blur: (event: FocusEvent) => any;
|
|
755
|
+
focus: (event: FocusEvent) => any;
|
|
756
|
+
"update:modelValue": (value: string) => any;
|
|
757
|
+
"trailing-button-click": (event: MouseEvent) => any;
|
|
758
|
+
}, string, PublicProps, Readonly<Props_4> & Readonly<{
|
|
759
|
+
onInput?: ((value: string) => any) | undefined;
|
|
760
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
761
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
762
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
763
|
+
"onTrailing-button-click"?: ((event: MouseEvent) => any) | undefined;
|
|
671
764
|
}>, {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
765
|
+
value: string;
|
|
766
|
+
size: "sm" | "md" | "lg";
|
|
767
|
+
label: string;
|
|
768
|
+
type: "default" | "leading-dropdown" | "trailing-dropdown" | "leading-text" | "payment" | "trailing-button" | "clear" | "freddy-input";
|
|
769
|
+
placeholder: string;
|
|
770
|
+
disabled: boolean;
|
|
771
|
+
destructive: boolean;
|
|
772
|
+
required: boolean;
|
|
773
|
+
modelValue: string;
|
|
774
|
+
colorStyle: "freddy" | "contentplate";
|
|
775
|
+
state: "placeholder" | "filled" | "focused" | "disabled" | "loading" | "success" | "error";
|
|
776
|
+
iconLeading: boolean;
|
|
777
|
+
leadingIcon: any;
|
|
778
|
+
hintText: string;
|
|
779
|
+
helpIcon: boolean;
|
|
780
|
+
helpText: string;
|
|
781
|
+
inputType: string;
|
|
782
|
+
readonly: boolean;
|
|
783
|
+
leadingDropdownText: string;
|
|
784
|
+
trailingDropdownText: string;
|
|
785
|
+
leadingText: string;
|
|
786
|
+
trailingButtonText: string;
|
|
694
787
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
695
|
-
|
|
788
|
+
inputRef: HTMLInputElement;
|
|
696
789
|
}, HTMLDivElement>;
|
|
697
790
|
|
|
698
791
|
/**
|
|
@@ -709,12 +802,6 @@ export declare interface ITabList {
|
|
|
709
802
|
currentTab?: number;
|
|
710
803
|
}
|
|
711
804
|
|
|
712
|
-
export declare const Logo: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
|
|
713
|
-
size: "sm" | "md" | "lg";
|
|
714
|
-
brand: "contentplate" | "flowplate" | "flowplate-csv" | "freddy";
|
|
715
|
-
showTitle: boolean;
|
|
716
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
717
|
-
|
|
718
805
|
export { ModalBox }
|
|
719
806
|
|
|
720
807
|
export declare const ModalOverlay: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
@@ -735,47 +822,61 @@ declare interface Option_2 {
|
|
|
735
822
|
}
|
|
736
823
|
|
|
737
824
|
export declare const Pagination: DefineComponent<ExtractPropTypes< {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
825
|
+
totalItems: {
|
|
826
|
+
type: NumberConstructor;
|
|
827
|
+
required: true;
|
|
828
|
+
default: number;
|
|
829
|
+
};
|
|
830
|
+
itemsPerPage: {
|
|
831
|
+
type: NumberConstructor;
|
|
832
|
+
required: true;
|
|
833
|
+
default: number;
|
|
834
|
+
};
|
|
835
|
+
currentPage: {
|
|
836
|
+
type: NumberConstructor;
|
|
837
|
+
required: true;
|
|
838
|
+
default: number;
|
|
839
|
+
};
|
|
753
840
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
754
|
-
|
|
841
|
+
"update:currentPage": (...args: any[]) => void;
|
|
755
842
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
843
|
+
totalItems: {
|
|
844
|
+
type: NumberConstructor;
|
|
845
|
+
required: true;
|
|
846
|
+
default: number;
|
|
847
|
+
};
|
|
848
|
+
itemsPerPage: {
|
|
849
|
+
type: NumberConstructor;
|
|
850
|
+
required: true;
|
|
851
|
+
default: number;
|
|
852
|
+
};
|
|
853
|
+
currentPage: {
|
|
854
|
+
type: NumberConstructor;
|
|
855
|
+
required: true;
|
|
856
|
+
default: number;
|
|
857
|
+
};
|
|
771
858
|
}>> & Readonly<{
|
|
772
|
-
|
|
859
|
+
"onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
|
|
773
860
|
}>, {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
861
|
+
totalItems: number;
|
|
862
|
+
itemsPerPage: number;
|
|
863
|
+
currentPage: number;
|
|
777
864
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
778
865
|
|
|
866
|
+
export declare interface PerformanceMetrics {
|
|
867
|
+
renderTime: number;
|
|
868
|
+
componentCount: number;
|
|
869
|
+
memoryUsage?: number;
|
|
870
|
+
timestamp: string;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
export declare interface Project {
|
|
874
|
+
name: string;
|
|
875
|
+
id: string;
|
|
876
|
+
version: number;
|
|
877
|
+
colorModes: ColorMode[];
|
|
878
|
+
}
|
|
879
|
+
|
|
779
880
|
declare interface Props {
|
|
780
881
|
size?: "s" | "sm" | "md" | "lg" | "xl";
|
|
781
882
|
disabled?: boolean;
|
|
@@ -815,10 +916,18 @@ declare interface Props_2 {
|
|
|
815
916
|
}
|
|
816
917
|
|
|
817
918
|
declare interface Props_3 {
|
|
919
|
+
email: string;
|
|
920
|
+
brand?: 'contentplate' | 'flowplate' | 'freddy';
|
|
921
|
+
loading?: boolean;
|
|
922
|
+
error?: string;
|
|
923
|
+
resendCooldown?: number;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
declare interface Props_4 {
|
|
818
927
|
size?: "sm" | "md" | "lg";
|
|
819
928
|
colorStyle?: "freddy" | "contentplate";
|
|
820
929
|
type?: "default" | "leading-dropdown" | "trailing-dropdown" | "leading-text" | "payment" | "trailing-button" | "clear" | "freddy-input";
|
|
821
|
-
state?:
|
|
930
|
+
state?: 'placeholder' | 'filled' | 'focused' | 'disabled' | 'loading' | 'success' | 'error';
|
|
822
931
|
destructive?: boolean;
|
|
823
932
|
iconLeading?: boolean;
|
|
824
933
|
leadingIcon?: any;
|
|
@@ -839,12 +948,6 @@ declare interface Props_3 {
|
|
|
839
948
|
modelValue?: string;
|
|
840
949
|
}
|
|
841
950
|
|
|
842
|
-
declare interface Props_4 {
|
|
843
|
-
brand?: 'contentplate' | 'flowplate' | 'flowplate-csv' | 'freddy';
|
|
844
|
-
size?: 'sm' | 'md' | 'lg';
|
|
845
|
-
showTitle?: boolean;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
951
|
/**
|
|
849
952
|
* Converts a date to a human-readable format (e.g., "12 Dec 2023 at 12:34").
|
|
850
953
|
* @param date - The date string or Date object to format.
|
|
@@ -852,6 +955,24 @@ declare interface Props_4 {
|
|
|
852
955
|
*/
|
|
853
956
|
export declare function readableDateFormat(date: Date | string): string;
|
|
854
957
|
|
|
958
|
+
export declare interface Reference {
|
|
959
|
+
id: string;
|
|
960
|
+
title?: string;
|
|
961
|
+
name?: string;
|
|
962
|
+
description?: string;
|
|
963
|
+
url?: string;
|
|
964
|
+
type?: string;
|
|
965
|
+
path?: string;
|
|
966
|
+
metadata?: Record<string, unknown>;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Scrolls a container element to its bottom.
|
|
971
|
+
* @param containerElement - The container element or its ID to scroll to bottom.
|
|
972
|
+
* @param smooth - Whether to use smooth scrolling. Defaults to false for better performance during streaming.
|
|
973
|
+
*/
|
|
974
|
+
export declare const scrollToBottom: (containerElement: HTMLElement | string, smooth?: boolean) => void;
|
|
975
|
+
|
|
855
976
|
/**
|
|
856
977
|
* Smoothly scrolls to a target element by its ID.
|
|
857
978
|
* @param targetElement - The ID of the target element.
|
|
@@ -859,16 +980,16 @@ export declare function readableDateFormat(date: Date | string): string;
|
|
|
859
980
|
export declare const scrollToElement: (targetElement: string) => void;
|
|
860
981
|
|
|
861
982
|
export declare const SearchInput: DefineComponent<SearchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
862
|
-
|
|
983
|
+
"update:searchInput": (inputValue: string | null) => any;
|
|
863
984
|
}, string, PublicProps, Readonly<SearchInputProps> & Readonly<{
|
|
864
|
-
|
|
985
|
+
"onUpdate:searchInput"?: ((inputValue: string | null) => any) | undefined;
|
|
865
986
|
}>, {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
987
|
+
placeholder: string;
|
|
988
|
+
showLoaderForSearch: boolean;
|
|
989
|
+
maxCharLimit: number;
|
|
869
990
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
870
|
-
|
|
871
|
-
|
|
991
|
+
dropdownRef: HTMLDivElement;
|
|
992
|
+
searchInput: HTMLInputElement;
|
|
872
993
|
}, any>;
|
|
873
994
|
|
|
874
995
|
declare interface SearchInputProps {
|
|
@@ -880,9 +1001,9 @@ declare interface SearchInputProps {
|
|
|
880
1001
|
maxCharLimit?: number;
|
|
881
1002
|
}
|
|
882
1003
|
|
|
883
|
-
export declare const SendButton: DefineComponent<
|
|
1004
|
+
export declare const SendButton: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
884
1005
|
|
|
885
|
-
export declare const SkeletonLoader: DefineComponent<
|
|
1006
|
+
export declare const SkeletonLoader: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
886
1007
|
|
|
887
1008
|
declare type SkeletonType = "card" | "paragraph" | "table" | "single-box" | "single-paragraph";
|
|
888
1009
|
|
|
@@ -903,22 +1024,33 @@ declare interface SpacemanLogoProps {
|
|
|
903
1024
|
customStyle?: string | Record<string, string>;
|
|
904
1025
|
}
|
|
905
1026
|
|
|
906
|
-
export declare const Spinner: DefineComponent<
|
|
1027
|
+
export declare const Spinner: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
907
1028
|
|
|
908
|
-
export declare const Switch: DefineComponent<
|
|
909
|
-
|
|
910
|
-
}, string, PublicProps, Readonly<
|
|
911
|
-
|
|
1029
|
+
export declare const Switch: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1030
|
+
"update:modelValue": (...args: any[]) => void;
|
|
1031
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
1032
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
912
1033
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
913
1034
|
|
|
914
1035
|
export declare const TabList: DefineComponent<ITabList, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
915
|
-
|
|
1036
|
+
tabSwitch: (...args: any[]) => void;
|
|
916
1037
|
}, string, PublicProps, Readonly<ITabList> & Readonly<{
|
|
917
|
-
|
|
1038
|
+
onTabSwitch?: ((...args: any[]) => any) | undefined;
|
|
918
1039
|
}>, {
|
|
919
|
-
|
|
1040
|
+
currentTab: number;
|
|
920
1041
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
921
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* Interfaces for ColorValidation component
|
|
1045
|
+
*/
|
|
1046
|
+
export declare type TestResult = {
|
|
1047
|
+
name: string;
|
|
1048
|
+
varName: string;
|
|
1049
|
+
expected: string;
|
|
1050
|
+
actual: string;
|
|
1051
|
+
pass: boolean;
|
|
1052
|
+
};
|
|
1053
|
+
|
|
922
1054
|
declare interface Toast {
|
|
923
1055
|
message: string;
|
|
924
1056
|
toastType: "success" | "danger" | "info";
|
|
@@ -942,19 +1074,110 @@ declare interface TooltipProps {
|
|
|
942
1074
|
contentClass?: string;
|
|
943
1075
|
}
|
|
944
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* Composable for centralized error handling
|
|
1079
|
+
*/
|
|
1080
|
+
export declare function useErrorHandler(options?: UseErrorHandlerOptions): {
|
|
1081
|
+
errors: ComputedRef< {
|
|
1082
|
+
message: string;
|
|
1083
|
+
code?: string | number | undefined;
|
|
1084
|
+
stack?: string | undefined;
|
|
1085
|
+
timestamp: string;
|
|
1086
|
+
context?: Record<string, unknown> | undefined;
|
|
1087
|
+
}[]>;
|
|
1088
|
+
hasErrors: ComputedRef<boolean>;
|
|
1089
|
+
latestError: ComputedRef< {
|
|
1090
|
+
message: string;
|
|
1091
|
+
code?: string | number | undefined;
|
|
1092
|
+
stack?: string | undefined;
|
|
1093
|
+
timestamp: string;
|
|
1094
|
+
context?: Record<string, unknown> | undefined;
|
|
1095
|
+
}>;
|
|
1096
|
+
isLoading: ComputedRef<boolean>;
|
|
1097
|
+
retryCount: ComputedRef<number>;
|
|
1098
|
+
handleError: (error: unknown, context?: Record<string, unknown>) => ErrorDetails;
|
|
1099
|
+
handleAsync: <T>(operation: () => Promise<T>, context?: Record<string, unknown>) => Promise<{
|
|
1100
|
+
data: T | null;
|
|
1101
|
+
error: ErrorDetails | null;
|
|
1102
|
+
}>;
|
|
1103
|
+
retryAsync: <T>(operation: () => Promise<T>, context?: Record<string, unknown>) => Promise<{
|
|
1104
|
+
data: T | null;
|
|
1105
|
+
error: ErrorDetails | null;
|
|
1106
|
+
}>;
|
|
1107
|
+
clearErrors: () => void;
|
|
1108
|
+
clearError: (index: number) => void;
|
|
1109
|
+
isCriticalError: (error: unknown) => boolean;
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
export declare interface UseErrorHandlerOptions {
|
|
1113
|
+
logErrors?: boolean;
|
|
1114
|
+
throwOnCritical?: boolean;
|
|
1115
|
+
maxRetries?: number;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Composable for performance monitoring and optimization
|
|
1120
|
+
*/
|
|
1121
|
+
export declare function usePerformance(options?: UsePerformanceOptions): {
|
|
1122
|
+
metrics: ComputedRef< {
|
|
1123
|
+
renderTime: number;
|
|
1124
|
+
componentCount: number;
|
|
1125
|
+
memoryUsage?: number | undefined;
|
|
1126
|
+
timestamp: string;
|
|
1127
|
+
}[]>;
|
|
1128
|
+
isTracking: ComputedRef<boolean>;
|
|
1129
|
+
averageRenderTime: ComputedRef<number>;
|
|
1130
|
+
maxRenderTime: ComputedRef<number>;
|
|
1131
|
+
startTracking: (label?: string) => void;
|
|
1132
|
+
endTracking: (label?: string, componentCount?: number) => PerformanceMetrics | undefined;
|
|
1133
|
+
measureAsync: <T>(operation: () => Promise<T>, label?: string) => Promise<{
|
|
1134
|
+
result: T;
|
|
1135
|
+
metrics: PerformanceMetrics;
|
|
1136
|
+
}>;
|
|
1137
|
+
debounce: <T extends (...args: any[]) => any>(func: T, wait: number) => ((...args: Parameters<T>) => void);
|
|
1138
|
+
throttle: <T extends (...args: any[]) => any>(func: T, limit: number) => ((...args: Parameters<T>) => void);
|
|
1139
|
+
scheduleWork: (callback: () => void, timeout?: number) => void;
|
|
1140
|
+
lazyLoad: <T>(loader: () => Promise<T>, delay?: number) => Promise<T>;
|
|
1141
|
+
createVirtualList: <T>(items: T[], itemHeight: number, containerHeight: number) => (scrollTop: number) => {
|
|
1142
|
+
visibleItems: T[];
|
|
1143
|
+
startIndex: number;
|
|
1144
|
+
endIndex: number;
|
|
1145
|
+
totalHeight: number;
|
|
1146
|
+
offsetY: number;
|
|
1147
|
+
};
|
|
1148
|
+
clearMetrics: () => void;
|
|
1149
|
+
getSummary: () => {
|
|
1150
|
+
totalMeasurements: number;
|
|
1151
|
+
averageRenderTime: number;
|
|
1152
|
+
maxRenderTime: number;
|
|
1153
|
+
recentMetrics: {
|
|
1154
|
+
renderTime: number;
|
|
1155
|
+
componentCount: number;
|
|
1156
|
+
memoryUsage?: number | undefined;
|
|
1157
|
+
timestamp: string;
|
|
1158
|
+
}[];
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
export declare interface UsePerformanceOptions {
|
|
1163
|
+
enableMetrics?: boolean;
|
|
1164
|
+
trackMemory?: boolean;
|
|
1165
|
+
sampleRate?: number;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
945
1168
|
export declare const useSnackBar: () => {
|
|
946
1169
|
snackQueue: Ref< {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1170
|
+
title: string;
|
|
1171
|
+
message: string;
|
|
1172
|
+
toastType: ToastType;
|
|
1173
|
+
duration?: number | undefined;
|
|
1174
|
+
toastContainerSize?: "full" | "half" | "side70" | undefined;
|
|
952
1175
|
}[], Snack[] | {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
1176
|
+
title: string;
|
|
1177
|
+
message: string;
|
|
1178
|
+
toastType: ToastType;
|
|
1179
|
+
duration?: number | undefined;
|
|
1180
|
+
toastContainerSize?: "full" | "half" | "side70" | undefined;
|
|
958
1181
|
}[]>;
|
|
959
1182
|
addSnackBar: (snack: Snack) => void;
|
|
960
1183
|
removeSnackBar: (snack: Snack) => void;
|
|
@@ -962,13 +1185,13 @@ export declare const useSnackBar: () => {
|
|
|
962
1185
|
|
|
963
1186
|
export declare const useToast: () => {
|
|
964
1187
|
toastQueue: Ref< {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1188
|
+
message: string;
|
|
1189
|
+
toastType: "success" | "danger" | "info";
|
|
1190
|
+
duration?: number | undefined;
|
|
968
1191
|
}[], Toast[] | {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1192
|
+
message: string;
|
|
1193
|
+
toastType: "success" | "danger" | "info";
|
|
1194
|
+
duration?: number | undefined;
|
|
972
1195
|
}[]>;
|
|
973
1196
|
addToast: (toast: Toast) => void;
|
|
974
1197
|
hasToasts: ComputedRef<boolean>;
|
|
@@ -980,3 +1203,11 @@ export declare const vFrSanitize: {
|
|
|
980
1203
|
};
|
|
981
1204
|
|
|
982
1205
|
export { }
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
declare module '@vue/runtime-core' {
|
|
1209
|
+
interface ComponentCustomProperties {
|
|
1210
|
+
$themeService: ReturnType<typeof useThemeService>;
|
|
1211
|
+
$theme: ReturnType<typeof useThemeService>;
|
|
1212
|
+
}
|
|
1213
|
+
}
|