@selfeesas/shared-components 1.13.0 → 1.14.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.
@@ -279,6 +279,8 @@ declare type __VLS_NonUndefinedable_29<T> = T extends undefined ? never : T;
279
279
 
280
280
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
281
281
 
282
+ declare type __VLS_NonUndefinedable_30<T> = T extends undefined ? never : T;
283
+
282
284
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
283
285
 
284
286
  declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
@@ -351,6 +353,10 @@ declare type __VLS_PrettifyLocal_22<T> = {
351
353
  [K in keyof T]: T[K];
352
354
  } & {};
353
355
 
356
+ declare type __VLS_PrettifyLocal_23<T> = {
357
+ [K in keyof T]: T[K];
358
+ } & {};
359
+
354
360
  declare type __VLS_PrettifyLocal_3<T> = {
355
361
  [K in keyof T]: T[K];
356
362
  } & {};
@@ -722,6 +728,15 @@ declare type __VLS_TypePropsToOption_3<T> = {
722
728
  };
723
729
  };
724
730
 
731
+ declare type __VLS_TypePropsToOption_30<T> = {
732
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
733
+ type: PropType<__VLS_NonUndefinedable_30<T[K]>>;
734
+ } : {
735
+ type: PropType<T[K]>;
736
+ required: true;
737
+ };
738
+ };
739
+
725
740
  declare type __VLS_TypePropsToOption_4<T> = {
726
741
  [K in keyof T]-?: {} extends Pick<T, K> ? {
727
742
  type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
@@ -866,6 +881,12 @@ declare type __VLS_WithDefaults_22<P, D> = {
866
881
  }> : P[K];
867
882
  };
868
883
 
884
+ declare type __VLS_WithDefaults_23<P, D> = {
885
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_23<P[K] & {
886
+ default: D[K];
887
+ }> : P[K];
888
+ };
889
+
869
890
  declare type __VLS_WithDefaults_3<P, D> = {
870
891
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_3<P[K] & {
871
892
  default: D[K];
@@ -1424,6 +1445,67 @@ declare interface DateRangeValue {
1424
1445
  to: string;
1425
1446
  }
1426
1447
 
1448
+ export declare const DateTimeField: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_23<__VLS_TypePropsToOption_30<DateTimeFieldProps>, {
1449
+ required: boolean;
1450
+ minDate: undefined;
1451
+ maxDate: undefined;
1452
+ datesDisabled: () => never[];
1453
+ dateRules: () => never[];
1454
+ withSeconds: boolean;
1455
+ timeLabel: string;
1456
+ timeOptions: undefined;
1457
+ requiredErrorMessage: string;
1458
+ closeLabel: string;
1459
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1460
+ "update:date": (val: string) => void;
1461
+ "update:time": (val: string) => void;
1462
+ change: () => void;
1463
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_23<__VLS_TypePropsToOption_30<DateTimeFieldProps>, {
1464
+ required: boolean;
1465
+ minDate: undefined;
1466
+ maxDate: undefined;
1467
+ datesDisabled: () => never[];
1468
+ dateRules: () => never[];
1469
+ withSeconds: boolean;
1470
+ timeLabel: string;
1471
+ timeOptions: undefined;
1472
+ requiredErrorMessage: string;
1473
+ closeLabel: string;
1474
+ }>>> & Readonly<{
1475
+ "onUpdate:date"?: ((val: string) => any) | undefined;
1476
+ "onUpdate:time"?: ((val: string) => any) | undefined;
1477
+ onChange?: (() => any) | undefined;
1478
+ }>, {
1479
+ required: boolean;
1480
+ minDate: string;
1481
+ maxDate: string;
1482
+ datesDisabled: DisabledDate[];
1483
+ requiredErrorMessage: string;
1484
+ closeLabel: string;
1485
+ dateRules: ((val: string) => boolean | string)[];
1486
+ withSeconds: boolean;
1487
+ timeLabel: string;
1488
+ timeOptions: (hr: number, min: number | null, sec: number | null) => boolean | null | undefined;
1489
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1490
+
1491
+ export declare interface DateTimeFieldProps {
1492
+ date: string;
1493
+ time: string;
1494
+ label: string;
1495
+ required?: boolean;
1496
+ minDate?: string;
1497
+ maxDate?: string;
1498
+ datesDisabled?: DisabledDate[];
1499
+ dateRules?: ((val: string) => boolean | string)[];
1500
+ withSeconds?: boolean;
1501
+ timeLabel?: string;
1502
+ timeErrorMessage: string;
1503
+ timeOptions?: (hr: number, min: number | null, sec: number | null) => boolean | null | undefined;
1504
+ dataCyPrefix: string;
1505
+ requiredErrorMessage?: string;
1506
+ closeLabel?: string;
1507
+ }
1508
+
1427
1509
  export declare function dateWithoutTimezone(date: Date): Date;
1428
1510
 
1429
1511
  export declare const defaultLocale: DateRangeLocale;