@selfeesas/shared-components 1.13.0 → 1.15.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,10 @@ 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
+
284
+ declare type __VLS_NonUndefinedable_31<T> = T extends undefined ? never : T;
285
+
282
286
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
283
287
 
284
288
  declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
@@ -351,6 +355,14 @@ declare type __VLS_PrettifyLocal_22<T> = {
351
355
  [K in keyof T]: T[K];
352
356
  } & {};
353
357
 
358
+ declare type __VLS_PrettifyLocal_23<T> = {
359
+ [K in keyof T]: T[K];
360
+ } & {};
361
+
362
+ declare type __VLS_PrettifyLocal_24<T> = {
363
+ [K in keyof T]: T[K];
364
+ } & {};
365
+
354
366
  declare type __VLS_PrettifyLocal_3<T> = {
355
367
  [K in keyof T]: T[K];
356
368
  } & {};
@@ -722,6 +734,24 @@ declare type __VLS_TypePropsToOption_3<T> = {
722
734
  };
723
735
  };
724
736
 
737
+ declare type __VLS_TypePropsToOption_30<T> = {
738
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
739
+ type: PropType<__VLS_NonUndefinedable_30<T[K]>>;
740
+ } : {
741
+ type: PropType<T[K]>;
742
+ required: true;
743
+ };
744
+ };
745
+
746
+ declare type __VLS_TypePropsToOption_31<T> = {
747
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
748
+ type: PropType<__VLS_NonUndefinedable_31<T[K]>>;
749
+ } : {
750
+ type: PropType<T[K]>;
751
+ required: true;
752
+ };
753
+ };
754
+
725
755
  declare type __VLS_TypePropsToOption_4<T> = {
726
756
  [K in keyof T]-?: {} extends Pick<T, K> ? {
727
757
  type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
@@ -866,6 +896,18 @@ declare type __VLS_WithDefaults_22<P, D> = {
866
896
  }> : P[K];
867
897
  };
868
898
 
899
+ declare type __VLS_WithDefaults_23<P, D> = {
900
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_23<P[K] & {
901
+ default: D[K];
902
+ }> : P[K];
903
+ };
904
+
905
+ declare type __VLS_WithDefaults_24<P, D> = {
906
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_24<P[K] & {
907
+ default: D[K];
908
+ }> : P[K];
909
+ };
910
+
869
911
  declare type __VLS_WithDefaults_3<P, D> = {
870
912
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_3<P[K] & {
871
913
  default: D[K];
@@ -952,6 +994,20 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
952
994
 
953
995
  export declare type ActionPosition = 'row' | 'cell' | 'both';
954
996
 
997
+ export declare const AlertBanner: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_24<__VLS_TypePropsToOption_31<AlertBannerProps>, {
998
+ icon: string;
999
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_24<__VLS_TypePropsToOption_31<AlertBannerProps>, {
1000
+ icon: string;
1001
+ }>>> & Readonly<{}>, {
1002
+ icon: string;
1003
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1004
+
1005
+ export declare interface AlertBannerProps {
1006
+ message: string;
1007
+ icon?: string;
1008
+ dataCy: string;
1009
+ }
1010
+
955
1011
  export declare type Align = 'left' | 'right' | 'center';
956
1012
 
957
1013
  export declare interface BadgeConfig {
@@ -1424,6 +1480,67 @@ declare interface DateRangeValue {
1424
1480
  to: string;
1425
1481
  }
1426
1482
 
1483
+ export declare const DateTimeField: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_23<__VLS_TypePropsToOption_30<DateTimeFieldProps>, {
1484
+ required: boolean;
1485
+ minDate: undefined;
1486
+ maxDate: undefined;
1487
+ datesDisabled: () => never[];
1488
+ dateRules: () => never[];
1489
+ withSeconds: boolean;
1490
+ timeLabel: string;
1491
+ timeOptions: undefined;
1492
+ requiredErrorMessage: string;
1493
+ closeLabel: string;
1494
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1495
+ "update:date": (val: string) => void;
1496
+ "update:time": (val: string) => void;
1497
+ change: () => void;
1498
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_23<__VLS_TypePropsToOption_30<DateTimeFieldProps>, {
1499
+ required: boolean;
1500
+ minDate: undefined;
1501
+ maxDate: undefined;
1502
+ datesDisabled: () => never[];
1503
+ dateRules: () => never[];
1504
+ withSeconds: boolean;
1505
+ timeLabel: string;
1506
+ timeOptions: undefined;
1507
+ requiredErrorMessage: string;
1508
+ closeLabel: string;
1509
+ }>>> & Readonly<{
1510
+ "onUpdate:date"?: ((val: string) => any) | undefined;
1511
+ "onUpdate:time"?: ((val: string) => any) | undefined;
1512
+ onChange?: (() => any) | undefined;
1513
+ }>, {
1514
+ required: boolean;
1515
+ minDate: string;
1516
+ maxDate: string;
1517
+ datesDisabled: DisabledDate[];
1518
+ requiredErrorMessage: string;
1519
+ closeLabel: string;
1520
+ dateRules: ((val: string) => boolean | string)[];
1521
+ withSeconds: boolean;
1522
+ timeLabel: string;
1523
+ timeOptions: (hr: number, min: number | null, sec: number | null) => boolean | null | undefined;
1524
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1525
+
1526
+ export declare interface DateTimeFieldProps {
1527
+ date: string;
1528
+ time: string;
1529
+ label: string;
1530
+ required?: boolean;
1531
+ minDate?: string;
1532
+ maxDate?: string;
1533
+ datesDisabled?: DisabledDate[];
1534
+ dateRules?: ((val: string) => boolean | string)[];
1535
+ withSeconds?: boolean;
1536
+ timeLabel?: string;
1537
+ timeErrorMessage: string;
1538
+ timeOptions?: (hr: number, min: number | null, sec: number | null) => boolean | null | undefined;
1539
+ dataCyPrefix: string;
1540
+ requiredErrorMessage?: string;
1541
+ closeLabel?: string;
1542
+ }
1543
+
1427
1544
  export declare function dateWithoutTimezone(date: Date): Date;
1428
1545
 
1429
1546
  export declare const defaultLocale: DateRangeLocale;