awing-library 2.1.28-beta → 2.1.29-beta
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.
|
@@ -60,7 +60,7 @@ var AdvancedSearch = function (props) {
|
|
|
60
60
|
: undefined, onChange: function (val) {
|
|
61
61
|
var _a;
|
|
62
62
|
return onChangeValue(__assign(__assign({}, value), (_a = {}, _a[fieldName] = val, _a)));
|
|
63
|
-
}, isOutsideRange: fieldDef.isOutsideRange, isDayBlocked: fieldDef.isDayBlocked, children: fieldDef.label }, fieldName));
|
|
63
|
+
}, isOutsideRange: fieldDef.isOutsideRange, isDayBlocked: fieldDef.isDayBlocked, isShowCalendarInfo: fieldDef.isShowCalendarInfo, children: fieldDef.label }, fieldName));
|
|
64
64
|
case 'directory':
|
|
65
65
|
return ((0, jsx_runtime_1.jsx)(DirectoryTree_1.default, { labelSearch: fieldDef.label, rootDirectoryId: fieldDef.rootId || '', defaultValue: fieldValue, options: options !== null && options !== void 0 ? options : [], onChange: function (val) {
|
|
66
66
|
var _a;
|
|
@@ -7,6 +7,7 @@ export interface AdvancedSearchFieldDefinition extends BaseTextFieldProps {
|
|
|
7
7
|
icon?: React.ReactElement;
|
|
8
8
|
label: string;
|
|
9
9
|
type: 'select' | 'date-range' | 'autocomplete' | 'directory';
|
|
10
|
+
isShowCalendarInfo?: boolean;
|
|
10
11
|
options?: MenuOption[];
|
|
11
12
|
loading?: boolean;
|
|
12
13
|
width?: number;
|
|
@@ -50,7 +50,7 @@ var DateRangePicker_1 = __importDefault(require("../DateRangePicker"));
|
|
|
50
50
|
var react_i18next_1 = require("react-i18next");
|
|
51
51
|
var ButtonDateRangePicker = function (props) {
|
|
52
52
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
53
|
-
var defaultValue = props.value, onChange = props.onChange, isOutsideRange = props.isOutsideRange, isDayBlocked = props.isDayBlocked, other = __rest(props, ["value", "onChange", "isOutsideRange", "isDayBlocked"]);
|
|
53
|
+
var defaultValue = props.value, onChange = props.onChange, isOutsideRange = props.isOutsideRange, isDayBlocked = props.isDayBlocked, isShowCalendarInfo = props.isShowCalendarInfo, other = __rest(props, ["value", "onChange", "isOutsideRange", "isDayBlocked", "isShowCalendarInfo"]);
|
|
54
54
|
var _a = react_1.default.useState(false), open = _a[0], setOpen = _a[1];
|
|
55
55
|
var anchorRef = react_1.default.useRef(null);
|
|
56
56
|
var handleToggle = function () {
|
|
@@ -105,7 +105,7 @@ var ButtonDateRangePicker = function (props) {
|
|
|
105
105
|
dateRange.startDate,
|
|
106
106
|
dateRange.endDate,
|
|
107
107
|
]);
|
|
108
|
-
}, isOutsideRange: isOutsideRange, isDayBlocked: isDayBlocked }) })] }) }) }) })));
|
|
108
|
+
}, isOutsideRange: isOutsideRange, isDayBlocked: isDayBlocked, isShowCalendarInfo: isShowCalendarInfo }) })] }) }) }) })));
|
|
109
109
|
} })] }));
|
|
110
110
|
};
|
|
111
111
|
exports.ButtonDateRangePicker = ButtonDateRangePicker;
|