@selfeesas/shared-components 1.0.6 → 1.1.0

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.
@@ -185,6 +185,8 @@ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
185
185
 
186
186
  declare type __VLS_NonUndefinedable_20<T> = T extends undefined ? never : T;
187
187
 
188
+ declare type __VLS_NonUndefinedable_21<T> = T extends undefined ? never : T;
189
+
188
190
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
189
191
 
190
192
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -227,6 +229,10 @@ declare type __VLS_PrettifyLocal_15<T> = {
227
229
  [K in keyof T]: T[K];
228
230
  } & {};
229
231
 
232
+ declare type __VLS_PrettifyLocal_16<T> = {
233
+ [K in keyof T]: T[K];
234
+ } & {};
235
+
230
236
  declare type __VLS_PrettifyLocal_2<T> = {
231
237
  [K in keyof T]: T[K];
232
238
  } & {};
@@ -496,6 +502,15 @@ declare type __VLS_TypePropsToOption_20<T> = {
496
502
  };
497
503
  };
498
504
 
505
+ declare type __VLS_TypePropsToOption_21<T> = {
506
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
507
+ type: PropType<__VLS_NonUndefinedable_21<T[K]>>;
508
+ } : {
509
+ type: PropType<T[K]>;
510
+ required: true;
511
+ };
512
+ };
513
+
499
514
  declare type __VLS_TypePropsToOption_3<T> = {
500
515
  [K in keyof T]-?: {} extends Pick<T, K> ? {
501
516
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -601,6 +616,12 @@ declare type __VLS_WithDefaults_15<P, D> = {
601
616
  }> : P[K];
602
617
  };
603
618
 
619
+ declare type __VLS_WithDefaults_16<P, D> = {
620
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_16<P[K] & {
621
+ default: D[K];
622
+ }> : P[K];
623
+ };
624
+
604
625
  declare type __VLS_WithDefaults_2<P, D> = {
605
626
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
606
627
  default: D[K];
@@ -958,6 +979,10 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
958
979
  from: string;
959
980
  to: string;
960
981
  }) => void;
982
+ getCurrentRange: () => {
983
+ from: string;
984
+ to: string;
985
+ };
961
986
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
962
987
  "update:dateRange": (value: {
963
988
  from: string;
@@ -1062,6 +1087,11 @@ export declare const dateRangeUtils: {
1062
1087
  handleInput(value: string | number | null, callback: (value: string) => void): void;
1063
1088
  };
1064
1089
 
1090
+ declare interface DateRangeValue {
1091
+ from: string;
1092
+ to: string;
1093
+ }
1094
+
1065
1095
  export declare function dateWithoutTimezone(date: Date): Date;
1066
1096
 
1067
1097
  export declare const defaultLocale: DateRangeLocale;
@@ -1216,6 +1246,97 @@ export declare interface Particle {
1216
1246
  opacity: number;
1217
1247
  }
1218
1248
 
1249
+ export declare const PersistentDateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1250
+ modelValue: () => {
1251
+ from: string;
1252
+ to: string;
1253
+ };
1254
+ storageKey: string;
1255
+ labelStart: string;
1256
+ labelEnd: string;
1257
+ idCy: string;
1258
+ hideActions: boolean;
1259
+ required: boolean;
1260
+ disabled: boolean;
1261
+ allowSameDate: boolean;
1262
+ minDate: undefined;
1263
+ maxDate: undefined;
1264
+ datesDisabled: () => never[];
1265
+ highlightEvents: () => never[];
1266
+ requiredErrorMessage: string;
1267
+ invalidDateErrorMessage: string;
1268
+ startDateHint: string;
1269
+ resetLabel: string;
1270
+ closeLabel: string;
1271
+ locale: undefined;
1272
+ rules: () => never[];
1273
+ }>>, {
1274
+ reset: () => void;
1275
+ getCurrentRange: () => {
1276
+ from: string;
1277
+ to: string;
1278
+ };
1279
+ setDateRange: (range: DateRangeValue) => void;
1280
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1281
+ "update:modelValue": (value: DateRangeValue) => void;
1282
+ clear: () => void;
1283
+ "update:dateRange": (value: DateRangeValue) => void;
1284
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_21<PersistentDateRangeProps>, {
1285
+ modelValue: () => {
1286
+ from: string;
1287
+ to: string;
1288
+ };
1289
+ storageKey: string;
1290
+ labelStart: string;
1291
+ labelEnd: string;
1292
+ idCy: string;
1293
+ hideActions: boolean;
1294
+ required: boolean;
1295
+ disabled: boolean;
1296
+ allowSameDate: boolean;
1297
+ minDate: undefined;
1298
+ maxDate: undefined;
1299
+ datesDisabled: () => never[];
1300
+ highlightEvents: () => never[];
1301
+ requiredErrorMessage: string;
1302
+ invalidDateErrorMessage: string;
1303
+ startDateHint: string;
1304
+ resetLabel: string;
1305
+ closeLabel: string;
1306
+ locale: undefined;
1307
+ rules: () => never[];
1308
+ }>>> & Readonly<{
1309
+ "onUpdate:modelValue"?: ((value: DateRangeValue) => any) | undefined;
1310
+ onClear?: (() => any) | undefined;
1311
+ "onUpdate:dateRange"?: ((value: DateRangeValue) => any) | undefined;
1312
+ }>, {
1313
+ required: boolean;
1314
+ disabled: boolean;
1315
+ modelValue: DateRangeValue;
1316
+ rules: Array<(val: string) => boolean | string>;
1317
+ minDate: string;
1318
+ maxDate: string;
1319
+ datesDisabled: Array<string | DisabledDateObject>;
1320
+ requiredErrorMessage: string;
1321
+ invalidDateErrorMessage: string;
1322
+ closeLabel: string;
1323
+ allowSameDate: boolean;
1324
+ labelStart: string;
1325
+ labelEnd: string;
1326
+ startDateHint: string;
1327
+ resetLabel: string;
1328
+ locale: DateRangeLocale;
1329
+ highlightEvents: string[];
1330
+ idCy: string;
1331
+ hideActions: boolean;
1332
+ storageKey: string;
1333
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1334
+
1335
+ declare interface PersistentDateRangeProps extends Omit<DateRangeProps, 'from' | 'to'> {
1336
+ modelValue?: DateRangeValue;
1337
+ storageKey?: string;
1338
+ }
1339
+
1219
1340
  export declare interface Project {
1220
1341
  id: string;
1221
1342
  title: string;