@selfeesas/shared-components 1.5.1 → 1.5.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.
@@ -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_12<__VLS_TypePropsToOption_18<Props_2>, {
22
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<Props_2>, {
23
23
  to: string;
24
24
  useDiv: boolean;
25
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<Props_2>, {
25
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_19<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_13<__VLS_TypePropsToOption_19<SelfeeCardProps>, {
33
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<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_13<__VLS_TypePropsToOption_19<SelfeeCardProps>, {
48
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_20<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_14<__VLS_TypePropsToOption_20<SmartFiltersProps>, {
80
+ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<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_14<__VLS_TypePropsToOption_20<SmartFiltersProps>, {
87
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<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_16<__VLS_TypePropsToOption_22<CustomTableProps>, {
101
+ declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<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_16<__VLS_TypePropsToOption_22<CustomTableProps>, {
150
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_23<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_17<__VLS_TypePropsToOption_23<StatCardProps>, {
211
+ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_24<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_17<__VLS_TypePropsToOption_23<StatCardProps>, {
218
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_24<StatCardProps>, {
219
219
  size: string;
220
220
  titleSize: string;
221
221
  iconColor: string;
@@ -263,6 +263,8 @@ declare type __VLS_NonUndefinedable_22<T> = T extends undefined ? never : T;
263
263
 
264
264
  declare type __VLS_NonUndefinedable_23<T> = T extends undefined ? never : T;
265
265
 
266
+ declare type __VLS_NonUndefinedable_24<T> = T extends undefined ? never : T;
267
+
266
268
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
267
269
 
268
270
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -313,6 +315,10 @@ declare type __VLS_PrettifyLocal_17<T> = {
313
315
  [K in keyof T]: T[K];
314
316
  } & {};
315
317
 
318
+ declare type __VLS_PrettifyLocal_18<T> = {
319
+ [K in keyof T]: T[K];
320
+ } & {};
321
+
316
322
  declare type __VLS_PrettifyLocal_2<T> = {
317
323
  [K in keyof T]: T[K];
318
324
  } & {};
@@ -625,6 +631,15 @@ declare type __VLS_TypePropsToOption_23<T> = {
625
631
  };
626
632
  };
627
633
 
634
+ declare type __VLS_TypePropsToOption_24<T> = {
635
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
636
+ type: PropType<__VLS_NonUndefinedable_24<T[K]>>;
637
+ } : {
638
+ type: PropType<T[K]>;
639
+ required: true;
640
+ };
641
+ };
642
+
628
643
  declare type __VLS_TypePropsToOption_3<T> = {
629
644
  [K in keyof T]-?: {} extends Pick<T, K> ? {
630
645
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -742,6 +757,12 @@ declare type __VLS_WithDefaults_17<P, D> = {
742
757
  }> : P[K];
743
758
  };
744
759
 
760
+ declare type __VLS_WithDefaults_18<P, D> = {
761
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_18<P[K] & {
762
+ default: D[K];
763
+ }> : P[K];
764
+ };
765
+
745
766
  declare type __VLS_WithDefaults_2<P, D> = {
746
767
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
747
768
  default: D[K];
@@ -942,7 +963,7 @@ export declare interface ColumnVisibilityState {
942
963
  [columnName: string]: boolean;
943
964
  }
944
965
 
945
- export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
966
+ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
946
967
  icon: string;
947
968
  color: string;
948
969
  confirmLabel: string;
@@ -951,7 +972,7 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
951
972
  "update:modelValue": (value: boolean) => void;
952
973
  confirm: () => void;
953
974
  cancel: () => void;
954
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
975
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
955
976
  icon: string;
956
977
  color: string;
957
978
  confirmLabel: string;
@@ -1372,6 +1393,38 @@ export declare interface ExportButtonProps<T = any> {
1372
1393
  onError?: (error: unknown) => void;
1373
1394
  }
1374
1395
 
1396
+ export declare const ExportPerimeterButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<ExportPerimeterButtonProps>, {
1397
+ label: string;
1398
+ disabled: boolean;
1399
+ disabledTooltip: undefined;
1400
+ onSuccess: undefined;
1401
+ onError: undefined;
1402
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<ExportPerimeterButtonProps>, {
1403
+ label: string;
1404
+ disabled: boolean;
1405
+ disabledTooltip: undefined;
1406
+ onSuccess: undefined;
1407
+ onError: undefined;
1408
+ }>>> & Readonly<{}>, {
1409
+ disabled: boolean;
1410
+ label: string;
1411
+ onError: (error: unknown) => void;
1412
+ onSuccess: () => void;
1413
+ disabledTooltip: string;
1414
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1415
+
1416
+ export declare interface ExportPerimeterButtonProps {
1417
+ label?: string;
1418
+ disabled?: boolean;
1419
+ disabledTooltip?: string;
1420
+ exportFn: () => Promise<{
1421
+ blob: Blob;
1422
+ fileName: string;
1423
+ }>;
1424
+ onSuccess?: () => void;
1425
+ onError?: (error: unknown) => void;
1426
+ }
1427
+
1375
1428
  export declare function formatDate(dateStr: string): string;
1376
1429
 
1377
1430
  export declare function formatDateToDDMMYYYY(date: Date | string): string;
@@ -1401,12 +1454,12 @@ export declare type LoaderSize = 'small' | 'medium' | 'large';
1401
1454
 
1402
1455
  export declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
1403
1456
 
1404
- export declare const LoginLayout: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_13<__VLS_Props_4>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1457
+ export declare const LoginLayout: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_14<__VLS_Props_4>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1405
1458
  login: (credentials: {
1406
1459
  username: string;
1407
1460
  password: string;
1408
1461
  }) => void;
1409
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_13<__VLS_Props_4>>> & Readonly<{
1462
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_14<__VLS_Props_4>>> & Readonly<{
1410
1463
  onLogin?: ((credentials: {
1411
1464
  username: string;
1412
1465
  password: string;
@@ -1473,7 +1526,7 @@ export declare interface Particle {
1473
1526
  opacity: number;
1474
1527
  }
1475
1528
 
1476
- export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1529
+ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1477
1530
  modelValue: () => {
1478
1531
  from: string;
1479
1532
  to: string;
@@ -1508,7 +1561,7 @@ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS
1508
1561
  "update:modelValue": (value: DateRangeValue) => void;
1509
1562
  clear: () => void;
1510
1563
  "update:dateRange": (value: DateRangeValue) => void;
1511
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1564
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1512
1565
  modelValue: () => {
1513
1566
  from: string;
1514
1567
  to: string;
@@ -1598,9 +1651,9 @@ declare interface Props_2 {
1598
1651
  to?: string;
1599
1652
  }
1600
1653
 
1601
- export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1654
+ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_17<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1602
1655
  reset: () => void;
1603
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>> & Readonly<{
1656
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_17<Props>>> & Readonly<{
1604
1657
  onReset?: (() => any) | undefined;
1605
1658
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1606
1659
 
@@ -1628,7 +1681,7 @@ export declare interface SelectOptionYear {
1628
1681
  endYear?: number;
1629
1682
  }
1630
1683
 
1631
- export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1684
+ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<ProjectSelectionProps>, {
1632
1685
  projects: () => Project[];
1633
1686
  disabledIds: () => never[];
1634
1687
  title?: string | undefined;
@@ -1644,7 +1697,7 @@ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS
1644
1697
  particleColor?: string | undefined;
1645
1698
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1646
1699
  "project-click": (project: Project) => void;
1647
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1700
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<ProjectSelectionProps>, {
1648
1701
  projects: () => Project[];
1649
1702
  disabledIds: () => never[];
1650
1703
  title?: string | undefined;
@@ -1767,13 +1820,13 @@ export declare interface SelfeeHeaderProps {
1767
1820
  environment?: string;
1768
1821
  }
1769
1822
 
1770
- export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<SelfeeLoaderProps>, {
1823
+ export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<SelfeeLoaderProps>, {
1771
1824
  size: string;
1772
1825
  variant: string;
1773
1826
  text: string;
1774
1827
  logoUrl: string;
1775
1828
  speed: number;
1776
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<SelfeeLoaderProps>, {
1829
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<SelfeeLoaderProps>, {
1777
1830
  size: string;
1778
1831
  variant: string;
1779
1832
  text: string;