@singularsystems/neo-core 0.10.58 → 0.10.59
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.
|
@@ -133,6 +133,9 @@ var DatePicker = /** @class */ (function () {
|
|
|
133
133
|
this.bindProperty.value = dateValue;
|
|
134
134
|
if (suspend)
|
|
135
135
|
Utils.nextTick(function () { return _this.suspendLayout = false; });
|
|
136
|
+
if (this.options.onDateSelected !== undefined) {
|
|
137
|
+
this.options.onDateSelected(!suspend);
|
|
138
|
+
}
|
|
136
139
|
};
|
|
137
140
|
DatePicker.prototype.setInputValue = function () {
|
|
138
141
|
if (!this.options.alwaysShow) {
|
|
@@ -21,6 +21,11 @@ export default class DatePickerOptions {
|
|
|
21
21
|
yearsBeforeInYearView: number;
|
|
22
22
|
/** True if the date picker must close when the input loses focus. True by default. */
|
|
23
23
|
autoClose: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Callback to invoke when a new date is selected.
|
|
26
|
+
* `isClosing` will be false during scrolling with `autoChangeDate` set.
|
|
27
|
+
* */
|
|
28
|
+
onDateSelected?: (isClosing: boolean) => void;
|
|
24
29
|
}
|
|
25
30
|
export declare class ProcessedDatePickerOptions extends DatePickerOptions {
|
|
26
31
|
minDateNoTime: Date;
|