beesoft-components 0.2.22 → 0.2.23
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.
- package/build/index.cjs.js +24 -57
- package/build/index.js +24 -57
- package/build/index.min.js +4 -4
- package/build/index.min.js.gz +0 -0
- package/package.json +1 -1
- package/types/src/components/form/date-time/date-time-day-selector.component.d.ts +2 -1
- package/types/src/components/form/date-time/date-time-range-selector.component.d.ts +2 -1
- package/types/src/components/form/date-time/date-time-time-selector.component.d.ts +2 -1
- package/types/src/components/form/date-time/date-time.reducer.d.ts +2 -8
package/build/index.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ export interface DateTimeDaySelectorProps {
|
|
|
7
7
|
showTimeSelector: boolean;
|
|
8
8
|
selectableDate?: (currentDate: Date) => boolean;
|
|
9
9
|
isValidDate?: (selectedDate: Date) => boolean;
|
|
10
|
+
onChange?: (value?: Date | Array<Date>) => void;
|
|
10
11
|
dispatcher: React.Dispatch<DateTimeReducerAction>;
|
|
11
12
|
}
|
|
12
|
-
export default function DateTimeDaySelector({ selectedDate, viewDate, locale, showTimeSelector, selectableDate, isValidDate, dispatcher, }: DateTimeDaySelectorProps): JSX.Element;
|
|
13
|
+
export default function DateTimeDaySelector({ selectedDate, viewDate, locale, showTimeSelector, selectableDate, isValidDate, onChange, dispatcher, }: DateTimeDaySelectorProps): JSX.Element;
|
|
@@ -5,6 +5,7 @@ export interface DateTimeRangeSelectorProps {
|
|
|
5
5
|
selectedStartDate?: Date;
|
|
6
6
|
selectedEndDate?: Date;
|
|
7
7
|
locale: Locale;
|
|
8
|
+
onChange?: (value?: Date | Array<Date>) => void;
|
|
8
9
|
dispatcher: React.Dispatch<DateTimeReducerAction>;
|
|
9
10
|
}
|
|
10
|
-
export default function DateTimeRangeSelector({ viewDate, selectedStartDate, selectedEndDate, locale, dispatcher, }: DateTimeRangeSelectorProps): JSX.Element;
|
|
11
|
+
export default function DateTimeRangeSelector({ viewDate, selectedStartDate, selectedEndDate, locale, onChange, dispatcher, }: DateTimeRangeSelectorProps): JSX.Element;
|
|
@@ -6,6 +6,7 @@ export interface DateTimeTimeSelectorProps {
|
|
|
6
6
|
showDateSelector: boolean;
|
|
7
7
|
locale: Locale;
|
|
8
8
|
timeConstraints?: TimeConstraints;
|
|
9
|
+
onChange?: (value?: Date | Array<Date>) => void;
|
|
9
10
|
dispatcher: React.Dispatch<DateTimeReducerAction>;
|
|
10
11
|
}
|
|
11
|
-
export default function DateTimeTimeSelector({ viewDate, showDateSelector, locale, timeConstraints, dispatcher, }: DateTimeTimeSelectorProps): JSX.Element;
|
|
12
|
+
export default function DateTimeTimeSelector({ viewDate, showDateSelector, locale, timeConstraints, onChange, dispatcher, }: DateTimeTimeSelectorProps): JSX.Element;
|
|
@@ -9,10 +9,8 @@ export declare enum DateTimeActionType {
|
|
|
9
9
|
SetSelectedDateRange = 7,
|
|
10
10
|
SetSelectedStartDate = 8,
|
|
11
11
|
SetSelectedEndDate = 9,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ClearDates = 12,
|
|
15
|
-
InitializeDates = 13
|
|
12
|
+
ClearDates = 10,
|
|
13
|
+
InitializeDates = 11
|
|
16
14
|
}
|
|
17
15
|
export interface DateTimeState {
|
|
18
16
|
currentSelector: DateTimeActionType;
|
|
@@ -20,10 +18,6 @@ export interface DateTimeState {
|
|
|
20
18
|
selectedDate?: Date;
|
|
21
19
|
selectedStartDate?: Date;
|
|
22
20
|
selectedEndDate?: Date;
|
|
23
|
-
originalSetDate?: Date;
|
|
24
|
-
originalSetStartDate?: Date;
|
|
25
|
-
originalSetEndDate?: Date;
|
|
26
|
-
selectedDateChanged: boolean;
|
|
27
21
|
dateInitialized: boolean;
|
|
28
22
|
}
|
|
29
23
|
export interface DateTimeReducerAction {
|