@selfeesas/shared-components 1.6.0 → 1.7.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.
@@ -19,10 +19,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsT
19
19
 
20
20
  declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_9<LayoutProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_9<LayoutProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
21
21
 
22
- declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<Props_2>, {
22
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<Props_2>, {
23
23
  to: string;
24
24
  useDiv: boolean;
25
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<Props_2>, {
25
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<Props_2>, {
26
26
  to: string;
27
27
  useDiv: boolean;
28
28
  }>>> & Readonly<{}>, {
@@ -30,7 +30,7 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
30
30
  useDiv: boolean;
31
31
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
32
32
 
33
- declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<SelfeeCardProps>, {
33
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<SelfeeCardProps>, {
34
34
  showHeader: boolean;
35
35
  colorScheme: string;
36
36
  shadowIntensity: string;
@@ -45,7 +45,7 @@ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefa
45
45
  subtitle: string;
46
46
  title: string;
47
47
  contentGap: boolean;
48
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<SelfeeCardProps>, {
48
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<SelfeeCardProps>, {
49
49
  showHeader: boolean;
50
50
  colorScheme: string;
51
51
  shadowIntensity: string;
@@ -77,14 +77,14 @@ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefa
77
77
  contentGap: boolean | string;
78
78
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
79
79
 
80
- declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<SmartFiltersProps>, {
80
+ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<SmartFiltersProps>, {
81
81
  containerClass: string;
82
82
  rowClass: string;
83
83
  activeHiddenCount: number;
84
84
  hasActiveFilters: boolean;
85
85
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
86
86
  reset: () => void;
87
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<SmartFiltersProps>, {
87
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<SmartFiltersProps>, {
88
88
  containerClass: string;
89
89
  rowClass: string;
90
90
  activeHiddenCount: number;
@@ -98,7 +98,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
98
98
  activeHiddenCount: number;
99
99
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
100
100
 
101
- declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<CustomTableProps>, {
101
+ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_24<CustomTableProps>, {
102
102
  filter: null;
103
103
  loading: boolean;
104
104
  pagination: () => {
@@ -147,7 +147,7 @@ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefa
147
147
  "selection-change": (...args: any[]) => void;
148
148
  "data-loaded": (...args: any[]) => void;
149
149
  "loading-change": (...args: any[]) => void;
150
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<CustomTableProps>, {
150
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_24<CustomTableProps>, {
151
151
  filter: null;
152
152
  loading: boolean;
153
153
  pagination: () => {
@@ -208,14 +208,14 @@ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefa
208
208
  filterSelected: Record<string, any>;
209
209
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
210
210
 
211
- declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_24<StatCardProps>, {
211
+ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_25<StatCardProps>, {
212
212
  size: string;
213
213
  titleSize: string;
214
214
  iconColor: string;
215
215
  iconSize: string;
216
216
  bodySize: string;
217
217
  subtitleSize: string;
218
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_24<StatCardProps>, {
218
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_25<StatCardProps>, {
219
219
  size: string;
220
220
  titleSize: string;
221
221
  iconColor: string;
@@ -267,6 +267,8 @@ declare type __VLS_NonUndefinedable_24<T> = T extends undefined ? never : T;
267
267
 
268
268
  declare type __VLS_NonUndefinedable_25<T> = T extends undefined ? never : T;
269
269
 
270
+ declare type __VLS_NonUndefinedable_26<T> = T extends undefined ? never : T;
271
+
270
272
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
271
273
 
272
274
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -329,6 +331,10 @@ declare type __VLS_PrettifyLocal_2<T> = {
329
331
  [K in keyof T]: T[K];
330
332
  } & {};
331
333
 
334
+ declare type __VLS_PrettifyLocal_20<T> = {
335
+ [K in keyof T]: T[K];
336
+ } & {};
337
+
332
338
  declare type __VLS_PrettifyLocal_3<T> = {
333
339
  [K in keyof T]: T[K];
334
340
  } & {};
@@ -655,6 +661,15 @@ declare type __VLS_TypePropsToOption_25<T> = {
655
661
  };
656
662
  };
657
663
 
664
+ declare type __VLS_TypePropsToOption_26<T> = {
665
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
666
+ type: PropType<__VLS_NonUndefinedable_26<T[K]>>;
667
+ } : {
668
+ type: PropType<T[K]>;
669
+ required: true;
670
+ };
671
+ };
672
+
658
673
  declare type __VLS_TypePropsToOption_3<T> = {
659
674
  [K in keyof T]-?: {} extends Pick<T, K> ? {
660
675
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -790,6 +805,12 @@ declare type __VLS_WithDefaults_2<P, D> = {
790
805
  }> : P[K];
791
806
  };
792
807
 
808
+ declare type __VLS_WithDefaults_20<P, D> = {
809
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_20<P[K] & {
810
+ default: D[K];
811
+ }> : P[K];
812
+ };
813
+
793
814
  declare type __VLS_WithDefaults_3<P, D> = {
794
815
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_3<P[K] & {
795
816
  default: D[K];
@@ -989,16 +1010,20 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
989
1010
  color: string;
990
1011
  confirmLabel: string;
991
1012
  cancelLabel: string;
1013
+ secondaryColor: string;
992
1014
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
993
1015
  "update:modelValue": (value: boolean) => void;
994
1016
  confirm: () => void;
995
1017
  cancel: () => void;
1018
+ secondary: () => void;
996
1019
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
997
1020
  icon: string;
998
1021
  color: string;
999
1022
  confirmLabel: string;
1000
1023
  cancelLabel: string;
1024
+ secondaryColor: string;
1001
1025
  }>>> & Readonly<{
1026
+ onSecondary?: (() => any) | undefined;
1002
1027
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1003
1028
  onConfirm?: (() => any) | undefined;
1004
1029
  onCancel?: (() => any) | undefined;
@@ -1007,6 +1032,7 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
1007
1032
  icon: string;
1008
1033
  confirmLabel: string;
1009
1034
  cancelLabel: string;
1035
+ secondaryColor: string;
1010
1036
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1011
1037
 
1012
1038
  export declare interface ConfirmDeleteDialogProps {
@@ -1017,6 +1043,8 @@ export declare interface ConfirmDeleteDialogProps {
1017
1043
  color?: string;
1018
1044
  confirmLabel?: string;
1019
1045
  cancelLabel?: string;
1046
+ secondaryLabel?: string;
1047
+ secondaryColor?: string;
1020
1048
  }
1021
1049
 
1022
1050
  export declare interface Context {
@@ -1414,7 +1442,7 @@ export declare interface ExportButtonProps<T = any> {
1414
1442
  onError?: (error: unknown) => void;
1415
1443
  }
1416
1444
 
1417
- export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_25<ExportDataButtonProps>, {
1445
+ export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_26<ExportDataButtonProps>, {
1418
1446
  label: string;
1419
1447
  color: string;
1420
1448
  disabled: boolean;
@@ -1425,7 +1453,7 @@ export declare const ExportDataButton: DefineComponent<ExtractPropTypes<__VLS_Wi
1425
1453
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1426
1454
  success: () => void;
1427
1455
  error: (error: unknown) => void;
1428
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_25<ExportDataButtonProps>, {
1456
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_26<ExportDataButtonProps>, {
1429
1457
  label: string;
1430
1458
  color: string;
1431
1459
  disabled: boolean;
@@ -1506,6 +1534,41 @@ export declare function getLastThreeFullMonths(currentDate?: Date): {
1506
1534
  to: string;
1507
1535
  };
1508
1536
 
1537
+ export declare interface ImportError {
1538
+ line?: number | null;
1539
+ message: string;
1540
+ }
1541
+
1542
+ export declare const ImportErrorsDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<ImportErrorsDialogProps>, {
1543
+ title: string;
1544
+ subtitle: undefined;
1545
+ lineLabel: string;
1546
+ closeLabel: string;
1547
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1548
+ "update:modelValue": (value: boolean) => void;
1549
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<ImportErrorsDialogProps>, {
1550
+ title: string;
1551
+ subtitle: undefined;
1552
+ lineLabel: string;
1553
+ closeLabel: string;
1554
+ }>>> & Readonly<{
1555
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1556
+ }>, {
1557
+ title: string;
1558
+ closeLabel: string;
1559
+ subtitle: string;
1560
+ lineLabel: string;
1561
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1562
+
1563
+ export declare interface ImportErrorsDialogProps {
1564
+ modelValue: boolean;
1565
+ errors: ImportError[];
1566
+ title?: string;
1567
+ subtitle?: string;
1568
+ lineLabel?: string;
1569
+ closeLabel?: string;
1570
+ }
1571
+
1509
1572
  export declare function isDateSelectable(date: DateInput, minDateProps?: DateInput | null, maxDateProps?: DateInput | null, datesDisabled?: DisabledDate[]): boolean;
1510
1573
 
1511
1574
  export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
@@ -1603,7 +1666,7 @@ export declare interface Particle {
1603
1666
  opacity: number;
1604
1667
  }
1605
1668
 
1606
- export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1669
+ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<PersistentDateRangeProps>, {
1607
1670
  modelValue: () => {
1608
1671
  from: string;
1609
1672
  to: string;
@@ -1638,7 +1701,7 @@ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS
1638
1701
  "update:modelValue": (value: DateRangeValue) => void;
1639
1702
  clear: () => void;
1640
1703
  "update:dateRange": (value: DateRangeValue) => void;
1641
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1704
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<PersistentDateRangeProps>, {
1642
1705
  modelValue: () => {
1643
1706
  from: string;
1644
1707
  to: string;