@aitronos/freddy-plugins 0.1.22 → 0.1.24

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/index.d.ts CHANGED
@@ -1,10 +1,120 @@
1
1
  import { ComponentOptionsMixin } from 'vue';
2
2
  import { ComponentProvideOptions } from 'vue';
3
+ import { ComputedRef } from 'vue';
3
4
  import { DefineComponent } from 'vue';
4
5
  import { ExtractPropTypes } from 'vue';
5
6
  import { PublicProps } from 'vue';
6
7
  import { Ref } from 'vue';
7
8
 
9
+ declare const __VLS_component: DefineComponent<ExtractPropTypes< {
10
+ isVisible: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ largeModel: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ close: (...args: any[]) => void;
20
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
21
+ isVisible: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ largeModel: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ }>> & Readonly<{
30
+ onClose?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ isVisible: boolean;
33
+ largeModel: boolean;
34
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
35
+
36
+ declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
37
+ close: (...args: any[]) => void;
38
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
39
+ onClose?: ((...args: any[]) => any) | undefined;
40
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
41
+
42
+ declare type __VLS_Props = {
43
+ modalTitle: string;
44
+ headerClass: string;
45
+ disableClickOutside?: boolean;
46
+ };
47
+
48
+ declare type __VLS_Props_2 = {
49
+ customClass?: string;
50
+ };
51
+
52
+ declare function __VLS_template(): {
53
+ attrs: Partial<{}>;
54
+ slots: {
55
+ header?(_: {}): any;
56
+ body?(_: {}): any;
57
+ footer?(_: {}): any;
58
+ };
59
+ refs: {};
60
+ rootEl: any;
61
+ };
62
+
63
+ declare function __VLS_template_2(): {
64
+ attrs: Partial<{}>;
65
+ slots: {
66
+ content?(_: {}): any;
67
+ };
68
+ refs: {};
69
+ rootEl: HTMLDivElement;
70
+ };
71
+
72
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
73
+
74
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
75
+
76
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
81
+
82
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
83
+ new (): {
84
+ $slots: S;
85
+ };
86
+ };
87
+
88
+ export declare const calculatePercentage: (partialValue: number, totalValue: number) => string;
89
+
90
+ export declare const copyToClipboard: (textToCopy: string) => Promise<void>;
91
+
92
+ export declare const daysInMonth: number;
93
+
94
+ export declare const fileSizeFormatter: (bytes: number, decimals?: number) => string;
95
+
96
+ export declare const fillMissingDays: (month: number, dayData: Array<{
97
+ [key: number]: number;
98
+ }>) => {
99
+ [k: string]: number;
100
+ };
101
+
102
+ export declare function formatDate(inputDate: Date | string): string;
103
+
104
+ export declare function formatDateToLocaleString(dateString: Date | string): string;
105
+
106
+ export declare function formatLastUsedDate(inputDate: Date | string, createdOnDate?: Date | string): string;
107
+
108
+ export declare const getDatesForMonth: (monthNumber: number) => string[];
109
+
110
+ export declare function getDaysInMonth(month: number, year: number): number;
111
+
112
+ export declare function getFileNameFromUrl(url: string): string | null;
113
+
114
+ export declare const getShortMonthName: (monthNumber: number) => string;
115
+
116
+ export declare function hasOverflow(el: HTMLElement): boolean;
117
+
8
118
  export declare const IconAitronos: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
9
119
 
10
120
  export declare const IconApplePay: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
@@ -254,16 +364,104 @@ export declare const IconZip: DefineComponent< {}, {}, {}, {}, {}, ComponentO
254
364
 
255
365
  export declare const IconzipThumbnail: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
256
366
 
367
+ export declare const interpolateColor: (start: string, end: string, steps: number) => string[];
368
+
369
+ export declare const lineChartExternalTooltipWithCircularDots: (context: {
370
+ chart: any;
371
+ tooltip: any;
372
+ }, currentMonth: string) => void;
373
+
374
+ export declare const ModalBox: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
375
+
376
+ export declare const ModalOverlay: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
377
+
257
378
  export declare const MyButton: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
258
379
 
380
+ export declare const Pagination: DefineComponent<ExtractPropTypes< {
381
+ totalItems: {
382
+ type: NumberConstructor;
383
+ required: true;
384
+ };
385
+ itemsPerPage: {
386
+ type: NumberConstructor;
387
+ required: true;
388
+ };
389
+ currentPage: {
390
+ type: NumberConstructor;
391
+ required: true;
392
+ };
393
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
394
+ "update:currentPage": (...args: any[]) => void;
395
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
396
+ totalItems: {
397
+ type: NumberConstructor;
398
+ required: true;
399
+ };
400
+ itemsPerPage: {
401
+ type: NumberConstructor;
402
+ required: true;
403
+ };
404
+ currentPage: {
405
+ type: NumberConstructor;
406
+ required: true;
407
+ };
408
+ }>> & Readonly<{
409
+ "onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
410
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
411
+
412
+ export declare function readableDateFormat(date: Date | string): string;
413
+
414
+ export declare const scrollToElement: (targetElement: string) => void;
415
+
416
+ export declare const SearchInput: DefineComponent<ExtractPropTypes< {
417
+ placeholder: {
418
+ type: StringConstructor;
419
+ default: () => string;
420
+ };
421
+ showLoaderForSearch: {
422
+ type: BooleanConstructor;
423
+ default: () => boolean;
424
+ };
425
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
426
+ "update:searchInput": (inputValue: string | null) => any;
427
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
428
+ placeholder: {
429
+ type: StringConstructor;
430
+ default: () => string;
431
+ };
432
+ showLoaderForSearch: {
433
+ type: BooleanConstructor;
434
+ default: () => boolean;
435
+ };
436
+ }>> & Readonly<{
437
+ "onUpdate:searchInput"?: ((inputValue: string | null) => any) | undefined;
438
+ }>, {
439
+ placeholder: string;
440
+ showLoaderForSearch: boolean;
441
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
442
+ dropdownRef: HTMLDivElement;
443
+ searchInput: HTMLInputElement;
444
+ }, HTMLDivElement>;
445
+
259
446
  export declare interface Snack {
260
447
  title: string;
261
448
  message: string;
262
449
  toastType: ToastType;
450
+ duration?: number;
263
451
  }
264
452
 
265
453
  export declare const SnackBar: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
266
454
 
455
+ export declare const Spinner: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
456
+
457
+ declare interface Toast {
458
+ message: string;
459
+ toastType: "success" | "danger" | "info";
460
+ duration?: number;
461
+ }
462
+
463
+ export declare const ToastMessage: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
464
+
267
465
  declare type ToastType = "success" | "danger" | "info";
268
466
 
269
467
  export declare const useSnackBar: () => {
@@ -271,12 +469,29 @@ export declare const useSnackBar: () => {
271
469
  title: string;
272
470
  message: string;
273
471
  toastType: ToastType;
472
+ duration?: number | undefined;
274
473
  }[], Snack[] | {
275
474
  title: string;
276
475
  message: string;
277
476
  toastType: ToastType;
477
+ duration?: number | undefined;
278
478
  }[]>;
279
479
  showToast: (snack: Snack) => void;
480
+ removeToast: (snack: Snack) => void;
481
+ };
482
+
483
+ export declare const useToast: () => {
484
+ toastQueue: Ref< {
485
+ message: string;
486
+ toastType: "success" | "danger" | "info";
487
+ duration?: number | undefined;
488
+ }[], Toast[] | {
489
+ message: string;
490
+ toastType: "success" | "danger" | "info";
491
+ duration?: number | undefined;
492
+ }[]>;
493
+ addToast: (toast: Toast) => void;
494
+ hasToasts: ComputedRef<boolean>;
280
495
  };
281
496
 
282
497
  export { }