@banyan_cloud/roots 1.0.342 → 1.0.343
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/cjs/index.js +13 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -15635,7 +15635,8 @@ var Dates = function Dates(props) {
|
|
|
15635
15635
|
setSelectedRange = props.setSelectedRange,
|
|
15636
15636
|
disabledDates = props.disabledDates,
|
|
15637
15637
|
disableDatesBefore = props.disableDatesBefore,
|
|
15638
|
-
enableFutureDates = props.enableFutureDates
|
|
15638
|
+
enableFutureDates = props.enableFutureDates,
|
|
15639
|
+
disableDatesAfter = props.disableDatesAfter;
|
|
15639
15640
|
var _ref = selectedMonth || {},
|
|
15640
15641
|
monthAsNumber = _ref.monthAsNumber,
|
|
15641
15642
|
year = _ref.year;
|
|
@@ -15731,6 +15732,9 @@ var Dates = function Dates(props) {
|
|
|
15731
15732
|
return (disableDatesBefore === null || disableDatesBefore === void 0 ? void 0 : disableDatesBefore.length) > 0 && isBefore(date, fromUnixTime(disableDatesBefore));
|
|
15732
15733
|
};
|
|
15733
15734
|
var disabledAfterDate = function disabledAfterDate(date) {
|
|
15735
|
+
if (disableDatesAfter) {
|
|
15736
|
+
return (disableDatesAfter === null || disableDatesAfter === void 0 ? void 0 : disableDatesAfter.length) > 0 && isAfter(date, fromUnixTime(disableDatesAfter));
|
|
15737
|
+
}
|
|
15734
15738
|
var dObj = new Date();
|
|
15735
15739
|
dObj.setDate(dObj.getDate() + 1);
|
|
15736
15740
|
dObj.setHours(0, 0, 0, 0);
|
|
@@ -16192,6 +16196,7 @@ var Calender = function Calender(props) {
|
|
|
16192
16196
|
onClear = props.onClear,
|
|
16193
16197
|
disabledDates = props.disabledDates,
|
|
16194
16198
|
disableDatesBefore = props.disableDatesBefore,
|
|
16199
|
+
disableDatesAfter = props.disableDatesAfter,
|
|
16195
16200
|
value = props.value,
|
|
16196
16201
|
setFixedRange = props.setFixedRange,
|
|
16197
16202
|
fixedRange = props.fixedRange,
|
|
@@ -16397,6 +16402,7 @@ var Calender = function Calender(props) {
|
|
|
16397
16402
|
setSelectedMonth: setSelectedMonth,
|
|
16398
16403
|
disabledDates: disabledDates,
|
|
16399
16404
|
disableDatesBefore: disableDatesBefore,
|
|
16405
|
+
disableDatesAfter: disableDatesAfter,
|
|
16400
16406
|
enableFutureDates: enableFutureDates
|
|
16401
16407
|
})) : /*#__PURE__*/jsxRuntime.jsx(ClockView, _objectSpread2(_objectSpread2({}, commonCalenderProps), {}, {
|
|
16402
16408
|
setSelectedMonth: setSelectedMonth,
|
|
@@ -16551,6 +16557,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
16551
16557
|
disabled = props.disabled,
|
|
16552
16558
|
className = props.className,
|
|
16553
16559
|
disableDatesBefore = props.disableDatesBefore,
|
|
16560
|
+
disableDatesAfter = props.disableDatesAfter,
|
|
16554
16561
|
_onClear = props.onClear,
|
|
16555
16562
|
customRanges = props.customRanges,
|
|
16556
16563
|
custom = props.custom,
|
|
@@ -16677,6 +16684,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
16677
16684
|
},
|
|
16678
16685
|
disabledDates: disabledDates,
|
|
16679
16686
|
disableDatesBefore: disableDatesBefore,
|
|
16687
|
+
disableDatesAfter: disableDatesAfter,
|
|
16680
16688
|
value: value,
|
|
16681
16689
|
setFixedRange: setFixedRange,
|
|
16682
16690
|
customRanges: customRanges,
|
|
@@ -16816,7 +16824,8 @@ DatePicker.propTypes = {
|
|
|
16816
16824
|
type: propTypesExports.string
|
|
16817
16825
|
}),
|
|
16818
16826
|
className: propTypesExports.string,
|
|
16819
|
-
disableDatesBefore: propTypesExports.arrayOf(propTypesExports.
|
|
16827
|
+
disableDatesBefore: propTypesExports.arrayOf(propTypesExports.number),
|
|
16828
|
+
disableDatesAfter: propTypesExports.arrayOf(propTypesExports.number),
|
|
16820
16829
|
defaultRangeSelection: propTypesExports.arrayOf(propTypesExports.number),
|
|
16821
16830
|
customRanges: propTypesExports.arrayOf(propTypesExports.shape({
|
|
16822
16831
|
title: propTypesExports.string,
|
|
@@ -24687,7 +24696,7 @@ var modules_d563b0a9 = {"root":"BaseV2Widget_module_root__05b06aba","header":"Ba
|
|
|
24687
24696
|
n(css$5,{});
|
|
24688
24697
|
|
|
24689
24698
|
var generateOptions$1 = function generateOptions(_ref) {
|
|
24690
|
-
var _optionData$id, _optionData$placehold, _optionData$value, _optionData$onChange, _optionData$selectOpt, _optionData$title, _optionData$onClick, _optionData$placehold2, _optionData$range, _optionData$onApply, _optionData$onClear, _optionData$date;
|
|
24699
|
+
var _optionData$id, _optionData$placehold, _optionData$value, _optionData$onChange, _optionData$selectOpt, _optionData$title, _optionData$onClick, _optionData$placehold2, _optionData$range, _optionData$onApply, _optionData$onClear, _optionData$date, _optionData$title2;
|
|
24691
24700
|
var optionData = _ref.optionData,
|
|
24692
24701
|
toggleDrawer = _ref.toggleDrawer;
|
|
24693
24702
|
switch ((_optionData$id = optionData === null || optionData === void 0 ? void 0 : optionData.id) !== null && _optionData$id !== void 0 ? _optionData$id : '') {
|
|
@@ -24733,7 +24742,7 @@ var generateOptions$1 = function generateOptions(_ref) {
|
|
|
24733
24742
|
});
|
|
24734
24743
|
case 'filter':
|
|
24735
24744
|
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
24736
|
-
title:
|
|
24745
|
+
title: (_optionData$title2 = optionData === null || optionData === void 0 ? void 0 : optionData.title) !== null && _optionData$title2 !== void 0 ? _optionData$title2 : 'Filter',
|
|
24737
24746
|
variant: "outlined",
|
|
24738
24747
|
size: "auto",
|
|
24739
24748
|
className: modules_d563b0a9['filter-button'],
|