carconnect-gatherleads-ui-lib 3.1.2 → 3.1.3
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.
|
@@ -160,7 +160,7 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
160
160
|
* @param {string} timeZone - The IANA time zone identifier (e.g., 'America/Guayaquil')
|
|
161
161
|
* @return {Date} A new Date object where the local time matches the target time zone
|
|
162
162
|
*/
|
|
163
|
-
export declare const
|
|
163
|
+
export declare const convertToTimeZoneGatherDatePicker: (date: Date, timeZone: DateTimeZoneType) => Date;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Helper para crear columnas tipadas con autocompletado completo.
|
|
@@ -497,7 +497,7 @@ export declare interface GatherBaseCalendarProps {
|
|
|
497
497
|
* Callback called when the selected date changes.
|
|
498
498
|
* Always returns a DateRange.
|
|
499
499
|
*/
|
|
500
|
-
onSelect?: (date
|
|
500
|
+
onSelect?: (date?: DateRange) => void;
|
|
501
501
|
/** Minimum selectable date */
|
|
502
502
|
minDate?: Date;
|
|
503
503
|
/** Maximum selectable date */
|
|
@@ -2745,10 +2745,16 @@ export declare const generateValidationRules: (field: FieldConfig) => Validation
|
|
|
2745
2745
|
*
|
|
2746
2746
|
* @return {number[]} An array of years as numbers, sorted from newest to oldest.
|
|
2747
2747
|
*/
|
|
2748
|
-
export declare const
|
|
2748
|
+
export declare const generateYearsGatherDatePicker: (pastYearsCount?: number, futureYearsCount?: number) => number[];
|
|
2749
2749
|
|
|
2750
2750
|
export declare const getAllPaths: (obj: any, prefix?: string) => string[];
|
|
2751
2751
|
|
|
2752
|
+
/**
|
|
2753
|
+
* Calculates the exact UTC timestamp corresponding to the start (00:00) or end (23:59)
|
|
2754
|
+
* of a specific day in a specific timezone.
|
|
2755
|
+
*/
|
|
2756
|
+
export declare const getBoundaryGatherDateInTimeZone: (baseDate: Date, timeZone: DateTimeZoneType, isEnd: boolean) => Date;
|
|
2757
|
+
|
|
2752
2758
|
/**
|
|
2753
2759
|
* Determina las clases de layout dinámicamente en base al tipo (`grid`, `horizontal`, `stack`, etc).
|
|
2754
2760
|
*/
|
|
@@ -2759,6 +2765,32 @@ export declare const getLayoutClasses: (config: FormConfig) => string;
|
|
|
2759
2765
|
*/
|
|
2760
2766
|
export declare const getNestedField: (obj: any, path: string) => any;
|
|
2761
2767
|
|
|
2768
|
+
/**
|
|
2769
|
+
* Normalizes a date to a custom specific time in the target TimeZone.
|
|
2770
|
+
*/
|
|
2771
|
+
export declare const getNormalizeCustomGatherDate: (date: Date, options: TimeGatherOptions, timeZone?: DateTimeZoneType) => Date | undefined;
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* Normalizes a date range (Start of Day -> End of Day).
|
|
2775
|
+
*/
|
|
2776
|
+
export declare const getNormalizeRangeGatherDate: (range: DateRange, timeZone?: DateTimeZoneType) => {
|
|
2777
|
+
from: Date;
|
|
2778
|
+
to: Date;
|
|
2779
|
+
} | undefined;
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* Specific wrapper for Ecuador Range.
|
|
2783
|
+
*/
|
|
2784
|
+
export declare const getNormalizeToEcuadorRangeGatherDate: (dateRange: DateRange) => {
|
|
2785
|
+
from: Date;
|
|
2786
|
+
to: Date;
|
|
2787
|
+
} | undefined;
|
|
2788
|
+
|
|
2789
|
+
/**
|
|
2790
|
+
* Wrapper to normalize a single date to Noon (12:00) in Ecuador time.
|
|
2791
|
+
*/
|
|
2792
|
+
export declare const getNormalizeToNoonEcuadorGatherDate: (date: Date, options?: TimeGatherOptions) => Date | undefined;
|
|
2793
|
+
|
|
2762
2794
|
/**
|
|
2763
2795
|
* Ordena los campos en base al array `orderFields` definido en la config.
|
|
2764
2796
|
*/
|
|
@@ -2770,7 +2802,13 @@ export declare const getOrderedFields: (fields: FieldConfig[], orderFields?: str
|
|
|
2770
2802
|
* @param {DatePickerMode} mode - The mode of the date picker ('single' or 'range').
|
|
2771
2803
|
* @return {DatePreset[]} An array of default presets.
|
|
2772
2804
|
*/
|
|
2773
|
-
export declare const
|
|
2805
|
+
export declare const getPresetsGatherDatePicker: (mode?: DatePickerMode) => DatePreset[];
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
* Calculates the exact UTC timestamp corresponding to a SPECIFIC time (e.g., 14:30:00)
|
|
2809
|
+
* on a specific day in a specific timezone.
|
|
2810
|
+
*/
|
|
2811
|
+
export declare const getSpecificGatherTimeInTimeZone: (baseDate: Date, timeZone: DateTimeZoneType, time: TimeGatherOptions) => Date;
|
|
2774
2812
|
|
|
2775
2813
|
/**
|
|
2776
2814
|
* Tipo de opción para el componente MultiSelect
|
|
@@ -2833,6 +2871,21 @@ export declare interface SortConfig {
|
|
|
2833
2871
|
direction: 'asc' | 'desc';
|
|
2834
2872
|
}
|
|
2835
2873
|
|
|
2874
|
+
/**
|
|
2875
|
+
* Options for time selection in the date picker.
|
|
2876
|
+
* @interface TimeGatherOptions
|
|
2877
|
+
* @property {number} hour - The hour to select.
|
|
2878
|
+
* @property {number} minute - The minute to select.
|
|
2879
|
+
* @property {number} second - The second to select.
|
|
2880
|
+
* @property {number} millisecond - The millisecond to select.
|
|
2881
|
+
*/
|
|
2882
|
+
export declare type TimeGatherOptions = {
|
|
2883
|
+
hour?: number;
|
|
2884
|
+
minute?: number;
|
|
2885
|
+
second?: number;
|
|
2886
|
+
millisecond?: number;
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2836
2889
|
/**
|
|
2837
2890
|
* Props para el hook useModal
|
|
2838
2891
|
*/
|