@uxf/cms 2.12.0 → 2.12.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/package.json
CHANGED
@@ -82,7 +82,7 @@ var Autocomplete = function (_a) {
|
|
82
82
|
.catch(function (error) { return dispatch({ type: "LOADING_ERROR", loadingId: loadingId, error: error }); });
|
83
83
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
84
84
|
}, [state.loadingId]);
|
85
|
-
return (react_1.default.createElement(Autocomplete_1.default, __assign({ options: state.options, loading: state.loading, onInputChange: function (_, term) { return dispatch({ type: "SEARCH", term: term }); }, inputValue: state.term, size: "small", filterOptions: function (o) { return o; }, noOptionsText: state.error ? "Nepodařilo se načíst data" : "Nenalezeny žádné záznamy", loadingText: "Načítání\u2026", fullWidth: true, isOptionEqualToValue: function (o, v) { var _a, _b; return ((_a = o.id) !== null && _a !== void 0 ? _a : o.value) === ((_b = v.id) !== null && _b !== void 0 ? _b :
|
85
|
+
return (react_1.default.createElement(Autocomplete_1.default, __assign({ options: state.options, loading: state.loading, onInputChange: function (_, term) { return dispatch({ type: "SEARCH", term: term }); }, inputValue: state.term, size: "small", filterOptions: function (o) { return o; }, noOptionsText: state.error ? "Nepodařilo se načíst data" : "Nenalezeny žádné záznamy", loadingText: "Načítání\u2026", fullWidth: true, isOptionEqualToValue: function (o, v) { var _a, _b; return ((_a = o.id) !== null && _a !== void 0 ? _a : o.value) === ((_b = v.id) !== null && _b !== void 0 ? _b : v.value); }, getOptionLabel: function (o) { return o.label; }, renderInput: function (params) { return (react_1.default.createElement(TextField_1.default, __assign({ placeholder: placeholder, label: label, variant: "outlined" }, params, { InputProps: __assign(__assign({}, params.InputProps), { endAdornment: (react_1.default.createElement(react_1.default.Fragment, null,
|
86
86
|
state.loading ? react_1.default.createElement(CircularProgress_1.default, { color: "inherit", size: 20 }) : null,
|
87
87
|
params.InputProps.endAdornment)) }) }, TextFieldProps))); } }, autocompleteProps)));
|
88
88
|
};
|
@@ -82,7 +82,7 @@ var AutocompleteMultiple = function (_a) {
|
|
82
82
|
.catch(function (error) { return dispatch({ type: "LOADING_ERROR", loadingId: loadingId, error: error }); });
|
83
83
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
84
84
|
}, [state.loadingId]);
|
85
|
-
return (react_1.default.createElement(Autocomplete_1.default, __assign({ options: state.options, loading: state.loading, onInputChange: function (_, term) { return dispatch({ type: "SEARCH", term: term }); }, inputValue: state.term, size: "small", filterOptions: function (o) { return o; }, noOptionsText: state.error ? "Nepodařilo se načíst data" : "Nenalezeny žádné záznamy", loadingText: "Načítání\u2026", fullWidth: true, isOptionEqualToValue: function (o, v) { var _a, _b; return ((_a = o.id) !== null && _a !== void 0 ? _a : o.value) === ((_b = v.id) !== null && _b !== void 0 ? _b :
|
85
|
+
return (react_1.default.createElement(Autocomplete_1.default, __assign({ options: state.options, loading: state.loading, onInputChange: function (_, term) { return dispatch({ type: "SEARCH", term: term }); }, inputValue: state.term, size: "small", filterOptions: function (o) { return o; }, noOptionsText: state.error ? "Nepodařilo se načíst data" : "Nenalezeny žádné záznamy", loadingText: "Načítání\u2026", fullWidth: true, isOptionEqualToValue: function (o, v) { var _a, _b; return ((_a = o.id) !== null && _a !== void 0 ? _a : o.value) === ((_b = v.id) !== null && _b !== void 0 ? _b : v.value); }, renderInput: function (params) { return (react_1.default.createElement(TextField_1.default, __assign({ placeholder: placeholder, label: label, variant: "outlined" }, params, { InputProps: __assign(__assign({}, params.InputProps), { endAdornment: (react_1.default.createElement(react_1.default.Fragment, null,
|
86
86
|
state.loading ? react_1.default.createElement(CircularProgress_1.default, { color: "inherit", size: 20 }) : null,
|
87
87
|
params.InputProps.endAdornment)) }) }, TextFieldProps))); } }, autocompleteProps, { multiple: true })));
|
88
88
|
};
|