@ballistix.digital/react-components 2.3.0 → 3.0.1
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/dist/index.d.ts +1 -1
- package/dist/index.esm.js +8 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6291,11 +6291,16 @@ var DateMenuForm = function (props) {
|
|
|
6291
6291
|
var $datepickerInputRef = React.useRef(null);
|
|
6292
6292
|
var handleValueChange = React.useCallback(function (newValue) {
|
|
6293
6293
|
setState(newValue);
|
|
6294
|
-
|
|
6294
|
+
if (newValue.startDate === null && newValue.endDate === null) {
|
|
6295
|
+
onClear && onClear(name);
|
|
6296
|
+
}
|
|
6297
|
+
else {
|
|
6298
|
+
onChange && onChange(newValue);
|
|
6299
|
+
}
|
|
6295
6300
|
setTimeout(function () {
|
|
6296
6301
|
onBlur && onBlur();
|
|
6297
6302
|
}, 50);
|
|
6298
|
-
}, [onBlur, onChange]);
|
|
6303
|
+
}, [name, onBlur, onChange, onClear]);
|
|
6299
6304
|
var handleGenerateStyle = function () {
|
|
6300
6305
|
var result = deepCopyObject(styles$7.base);
|
|
6301
6306
|
var keys = calculateNestedKeys(styles$7.base);
|
|
@@ -6307,13 +6312,6 @@ var DateMenuForm = function (props) {
|
|
|
6307
6312
|
var styles = handleGenerateStyle();
|
|
6308
6313
|
var inputDataCy = "form-date-".concat(name);
|
|
6309
6314
|
var errorDataCy = "form-date-error-".concat(name);
|
|
6310
|
-
// Simulate onClear event.
|
|
6311
|
-
React.useEffect(function () {
|
|
6312
|
-
if (state.startDate === null && state.endDate === null) {
|
|
6313
|
-
onClear && onClear(name);
|
|
6314
|
-
}
|
|
6315
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6316
|
-
}, [state]);
|
|
6317
6315
|
// listen to value changes.
|
|
6318
6316
|
React.useEffect(function () {
|
|
6319
6317
|
setState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : { startDate: null, endDate: null });
|
|
@@ -14608,7 +14606,7 @@ exports.TableColumnOptionsCustom = TableColumnOptionsCustom;
|
|
|
14608
14606
|
exports.TableExportCustom = TableExcelExportCustom;
|
|
14609
14607
|
exports.TableList = TableList;
|
|
14610
14608
|
exports.TableList2 = TableList2;
|
|
14611
|
-
exports.
|
|
14609
|
+
exports.TooltipElement = TooltipElement;
|
|
14612
14610
|
exports.VerticalNavigation = VerticalNavigation;
|
|
14613
14611
|
exports.__DEPRECATED__CheckboxInputGroupForm = CheckboxInputGroupForm;
|
|
14614
14612
|
exports.createColumnHelper = createColumnHelper;
|