@selfeesas/shared-components 1.5.0 → 1.5.2

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];
@@ -933,6 +954,7 @@ export declare interface CheckboxOption {
933
954
  value: string | number;
934
955
  label: string;
935
956
  disabled?: boolean;
957
+ italic?: boolean;
936
958
  }
937
959
 
938
960
  declare function clearSelection(): void;
@@ -941,7 +963,7 @@ export declare interface ColumnVisibilityState {
941
963
  [columnName: string]: boolean;
942
964
  }
943
965
 
944
- 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>, {
945
967
  icon: string;
946
968
  color: string;
947
969
  confirmLabel: string;
@@ -950,7 +972,7 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
950
972
  "update:modelValue": (value: boolean) => void;
951
973
  confirm: () => void;
952
974
  cancel: () => void;
953
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
975
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_18<ConfirmDeleteDialogProps>, {
954
976
  icon: string;
955
977
  color: string;
956
978
  confirmLabel: string;
@@ -1371,6 +1393,38 @@ export declare interface ExportButtonProps<T = any> {
1371
1393
  onError?: (error: unknown) => void;
1372
1394
  }
1373
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
+
1374
1428
  export declare function formatDate(dateStr: string): string;
1375
1429
 
1376
1430
  export declare function formatDateToDDMMYYYY(date: Date | string): string;
@@ -1400,12 +1454,12 @@ export declare type LoaderSize = 'small' | 'medium' | 'large';
1400
1454
 
1401
1455
  export declare type LoaderVariant = 'spin' | 'pulse' | 'wave';
1402
1456
 
1403
- 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, {
1404
1458
  login: (credentials: {
1405
1459
  username: string;
1406
1460
  password: string;
1407
1461
  }) => void;
1408
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_13<__VLS_Props_4>>> & Readonly<{
1462
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_14<__VLS_Props_4>>> & Readonly<{
1409
1463
  onLogin?: ((credentials: {
1410
1464
  username: string;
1411
1465
  password: string;
@@ -1472,7 +1526,7 @@ export declare interface Particle {
1472
1526
  opacity: number;
1473
1527
  }
1474
1528
 
1475
- 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>, {
1476
1530
  modelValue: () => {
1477
1531
  from: string;
1478
1532
  to: string;
@@ -1507,7 +1561,7 @@ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS
1507
1561
  "update:modelValue": (value: DateRangeValue) => void;
1508
1562
  clear: () => void;
1509
1563
  "update:dateRange": (value: DateRangeValue) => void;
1510
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1564
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_22<PersistentDateRangeProps>, {
1511
1565
  modelValue: () => {
1512
1566
  from: string;
1513
1567
  to: string;
@@ -1597,9 +1651,9 @@ declare interface Props_2 {
1597
1651
  to?: string;
1598
1652
  }
1599
1653
 
1600
- 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, {
1601
1655
  reset: () => void;
1602
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>> & Readonly<{
1656
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_17<Props>>> & Readonly<{
1603
1657
  onReset?: (() => any) | undefined;
1604
1658
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1605
1659
 
@@ -1627,7 +1681,7 @@ export declare interface SelectOptionYear {
1627
1681
  endYear?: number;
1628
1682
  }
1629
1683
 
1630
- 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>, {
1631
1685
  projects: () => Project[];
1632
1686
  disabledIds: () => never[];
1633
1687
  title?: string | undefined;
@@ -1643,7 +1697,7 @@ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS
1643
1697
  particleColor?: string | undefined;
1644
1698
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1645
1699
  "project-click": (project: Project) => void;
1646
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1700
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_15<ProjectSelectionProps>, {
1647
1701
  projects: () => Project[];
1648
1702
  disabledIds: () => never[];
1649
1703
  title?: string | undefined;
@@ -1766,13 +1820,13 @@ export declare interface SelfeeHeaderProps {
1766
1820
  environment?: string;
1767
1821
  }
1768
1822
 
1769
- 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>, {
1770
1824
  size: string;
1771
1825
  variant: string;
1772
1826
  text: string;
1773
1827
  logoUrl: string;
1774
1828
  speed: number;
1775
- }>>, {}, {}, {}, {}, 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>, {
1776
1830
  size: string;
1777
1831
  variant: string;
1778
1832
  text: string;