@selfeesas/shared-components 1.0.0 → 1.0.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.
@@ -10,15 +10,15 @@ import { RouteLocationRaw } from 'vue-router';
10
10
  import { RouteParamsRaw } from 'vue-router';
11
11
  import { Router } from 'vue-router';
12
12
 
13
- declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeHeaderProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
14
  "project-change": (...args: any[]) => void;
15
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>> & Readonly<{
15
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeHeaderProps>>> & Readonly<{
16
16
  "onProject-change"?: ((...args: any[]) => any) | undefined;
17
17
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
18
 
19
- declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_8<LayoutProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_8<LayoutProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
19
+ 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>;
20
20
 
21
- declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<CustomTableProps>, {
21
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<CustomTableProps>, {
22
22
  filter: string;
23
23
  loading: boolean;
24
24
  rowKey: string;
@@ -44,7 +44,7 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
44
44
  "update:pagination": (...args: any[]) => void;
45
45
  "update:selected": (...args: any[]) => void;
46
46
  "selection-change": (...args: any[]) => void;
47
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<CustomTableProps>, {
47
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<CustomTableProps>, {
48
48
  filter: string;
49
49
  loading: boolean;
50
50
  rowKey: string;
@@ -80,10 +80,10 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
80
80
  columnStorageKey: string;
81
81
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
82
82
 
83
- declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<Props_2>, {
83
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_18<Props_2>, {
84
84
  to: string;
85
85
  useDiv: boolean;
86
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<Props_2>, {
86
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_18<Props_2>, {
87
87
  to: string;
88
88
  useDiv: boolean;
89
89
  }>>> & Readonly<{}>, {
@@ -91,7 +91,7 @@ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefa
91
91
  useDiv: boolean;
92
92
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
93
93
 
94
- declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_18<SelfeeCardProps>, {
94
+ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_19<SelfeeCardProps>, {
95
95
  showHeader: boolean;
96
96
  colorScheme: string;
97
97
  shadowIntensity: string;
@@ -106,7 +106,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
106
106
  subtitle: string;
107
107
  title: string;
108
108
  contentGap: boolean;
109
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_13<__VLS_TypePropsToOption_18<SelfeeCardProps>, {
109
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_19<SelfeeCardProps>, {
110
110
  showHeader: boolean;
111
111
  colorScheme: string;
112
112
  shadowIntensity: string;
@@ -158,6 +158,8 @@ declare type __VLS_NonUndefinedable_17<T> = T extends undefined ? never : T;
158
158
 
159
159
  declare type __VLS_NonUndefinedable_18<T> = T extends undefined ? never : T;
160
160
 
161
+ declare type __VLS_NonUndefinedable_19<T> = T extends undefined ? never : T;
162
+
161
163
  declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
162
164
 
163
165
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
@@ -194,6 +196,10 @@ declare type __VLS_PrettifyLocal_13<T> = {
194
196
  [K in keyof T]: T[K];
195
197
  } & {};
196
198
 
199
+ declare type __VLS_PrettifyLocal_14<T> = {
200
+ [K in keyof T]: T[K];
201
+ } & {};
202
+
197
203
  declare type __VLS_PrettifyLocal_2<T> = {
198
204
  [K in keyof T]: T[K];
199
205
  } & {};
@@ -423,6 +429,15 @@ declare type __VLS_TypePropsToOption_18<T> = {
423
429
  };
424
430
  };
425
431
 
432
+ declare type __VLS_TypePropsToOption_19<T> = {
433
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
434
+ type: PropType<__VLS_NonUndefinedable_19<T[K]>>;
435
+ } : {
436
+ type: PropType<T[K]>;
437
+ required: true;
438
+ };
439
+ };
440
+
426
441
  declare type __VLS_TypePropsToOption_2<T> = {
427
442
  [K in keyof T]-?: {} extends Pick<T, K> ? {
428
443
  type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
@@ -525,6 +540,12 @@ declare type __VLS_WithDefaults_13<P, D> = {
525
540
  }> : P[K];
526
541
  };
527
542
 
543
+ declare type __VLS_WithDefaults_14<P, D> = {
544
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_14<P[K] & {
545
+ default: D[K];
546
+ }> : P[K];
547
+ };
548
+
528
549
  declare type __VLS_WithDefaults_2<P, D> = {
529
550
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
530
551
  default: D[K];
@@ -692,7 +713,7 @@ export declare interface CheckboxOption {
692
713
 
693
714
  declare function clearSelection(): void;
694
715
 
695
- export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<ConfirmDeleteDialogProps>, {
716
+ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
696
717
  icon: string;
697
718
  color: string;
698
719
  confirmLabel: string;
@@ -701,7 +722,7 @@ export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS
701
722
  "update:modelValue": (value: boolean) => void;
702
723
  confirm: () => void;
703
724
  cancel: () => void;
704
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<ConfirmDeleteDialogProps>, {
725
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<ConfirmDeleteDialogProps>, {
705
726
  icon: string;
706
727
  color: string;
707
728
  confirmLabel: string;
@@ -785,7 +806,7 @@ export declare const DATE_FORMAT_REGEX: RegExp;
785
806
 
786
807
  declare type DateInput = string | Date;
787
808
 
788
- export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_9<DatePickerProps>, {
809
+ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToOption_10<DatePickerProps>, {
789
810
  label: string;
790
811
  date: string;
791
812
  required: boolean;
@@ -801,7 +822,7 @@ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefa
801
822
  rules: () => never[];
802
823
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
803
824
  "update:date": (value: string) => void;
804
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_9<DatePickerProps>, {
825
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToOption_10<DatePickerProps>, {
805
826
  label: string;
806
827
  date: string;
807
828
  required: boolean;
@@ -849,7 +870,7 @@ export declare interface DatePickerProps {
849
870
  rules?: ((val: string) => boolean | string)[];
850
871
  }
851
872
 
852
- export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToOption_10<DateRangeProps>, {
873
+ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<DateRangeProps>, {
853
874
  from: string;
854
875
  to: string;
855
876
  labelStart: string;
@@ -882,7 +903,7 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
882
903
  to: string;
883
904
  }) => void;
884
905
  clear: () => void;
885
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToOption_10<DateRangeProps>, {
906
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<DateRangeProps>, {
886
907
  from: string;
887
908
  to: string;
888
909
  labelStart: string;
@@ -1017,7 +1038,7 @@ export declare interface ExcelExportFilters {
1017
1038
  [key: string]: string | number | boolean | string[] | null | undefined;
1018
1039
  }
1019
1040
 
1020
- export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<__VLS_Props_3>, {
1041
+ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<__VLS_Props_3>, {
1021
1042
  label: string;
1022
1043
  color: string;
1023
1044
  disabled: boolean;
@@ -1025,7 +1046,7 @@ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDe
1025
1046
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1026
1047
  success: () => void;
1027
1048
  error: (error: unknown) => void;
1028
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToOption_12<__VLS_Props_3>, {
1049
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<__VLS_Props_3>, {
1029
1050
  label: string;
1030
1051
  color: string;
1031
1052
  disabled: boolean;
@@ -1168,9 +1189,9 @@ declare interface Props_2 {
1168
1189
  to?: string;
1169
1190
  }
1170
1191
 
1171
- export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_15<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1192
+ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1172
1193
  reset: () => void;
1173
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_15<Props>>> & Readonly<{
1194
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_16<Props>>> & Readonly<{
1174
1195
  onReset?: (() => any) | undefined;
1175
1196
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1176
1197
 
@@ -1180,7 +1201,14 @@ export declare interface SelectOption<T = any> {
1180
1201
  [key: string]: any;
1181
1202
  }
1182
1203
 
1183
- export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<ProjectSelectionProps>, {
1204
+ export declare interface SelectOptionYear {
1205
+ modelValue: number | null;
1206
+ label?: string;
1207
+ startYear?: number;
1208
+ endYear?: number;
1209
+ }
1210
+
1211
+ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1184
1212
  projects: () => Project[];
1185
1213
  disabledIds: () => never[];
1186
1214
  title?: string | undefined;
@@ -1196,7 +1224,7 @@ export declare const SelectProjectLayout: DefineComponent<ExtractPropTypes<__VLS
1196
1224
  particleColor?: string | undefined;
1197
1225
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1198
1226
  "project-click": (project: Project) => void;
1199
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToOption_13<ProjectSelectionProps>, {
1227
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_14<ProjectSelectionProps>, {
1200
1228
  projects: () => Project[];
1201
1229
  disabledIds: () => never[];
1202
1230
  title?: string | undefined;
@@ -1253,6 +1281,24 @@ export declare interface SelectSearchProps<T = any> {
1253
1281
  modelValue?: string | number | T | null;
1254
1282
  }
1255
1283
 
1284
+ export declare const SelectYear: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_5<SelectOptionYear>, {
1285
+ label: string;
1286
+ startYear: number;
1287
+ endYear: undefined;
1288
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1289
+ "update:modelValue": (value: number | null) => void;
1290
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_5<SelectOptionYear>, {
1291
+ label: string;
1292
+ startYear: number;
1293
+ endYear: undefined;
1294
+ }>>> & Readonly<{
1295
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
1296
+ }>, {
1297
+ startYear: number;
1298
+ endYear: number;
1299
+ label: string;
1300
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1301
+
1256
1302
  export declare const SelfeeCard: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1257
1303
 
1258
1304
  declare interface SelfeeCardProps {
@@ -1272,7 +1318,7 @@ declare interface SelfeeCardProps {
1272
1318
  contentGap?: boolean | string;
1273
1319
  }
1274
1320
 
1275
- export declare const SelfeeFooter: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeFooterProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeFooterProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1321
+ export declare const SelfeeFooter: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_7<SelfeeFooterProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_7<SelfeeFooterProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1276
1322
 
1277
1323
  export declare interface SelfeeFooterProps {
1278
1324
  frontVersion: string;
@@ -1296,13 +1342,13 @@ export declare interface SelfeeHeaderProps {
1296
1342
  environment?: string;
1297
1343
  }
1298
1344
 
1299
- export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_14<SelfeeLoaderProps>, {
1345
+ export declare const SelfeeLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_15<SelfeeLoaderProps>, {
1300
1346
  size: string;
1301
1347
  variant: string;
1302
1348
  text: string;
1303
1349
  logoUrl: string;
1304
1350
  speed: number;
1305
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToOption_14<SelfeeLoaderProps>, {
1351
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_15<SelfeeLoaderProps>, {
1306
1352
  size: string;
1307
1353
  variant: string;
1308
1354
  text: string;
@@ -1380,13 +1426,13 @@ declare function toggleRowSelection(row: any, selected: boolean): void;
1380
1426
 
1381
1427
  declare function toggleSelectAll(selected: boolean): void;
1382
1428
 
1383
- export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_7<UserAvatarProps>, {
1429
+ export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_8<UserAvatarProps>, {
1384
1430
  logoutLabel: string;
1385
1431
  showVersionInfo: boolean;
1386
1432
  frontVersion: string;
1387
1433
  backVersion: string;
1388
1434
  platform: string;
1389
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_7<UserAvatarProps>, {
1435
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_8<UserAvatarProps>, {
1390
1436
  logoutLabel: string;
1391
1437
  showVersionInfo: boolean;
1392
1438
  frontVersion: string;