@fixefy/fixefy-ui-components 0.1.62 → 0.1.64
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.
|
@@ -161,23 +161,9 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props, parentRe
|
|
|
161
161
|
const [page, setPage] = (0, _react.useState)(1);
|
|
162
162
|
const [prevPage, setPrevPage] = (0, _react.useState)(0);
|
|
163
163
|
const pageSize = 20;
|
|
164
|
-
const { debug, onChange,
|
|
165
|
-
renderOptions, fetcher, // initialValue = {},
|
|
166
|
-
// multiple,
|
|
167
|
-
disabled, type = 'text', // showSelectedValue = true,
|
|
168
|
-
title_path, variables, search_path, modal_type, query, name } = props;
|
|
164
|
+
const { debug, onChange, renderOptions, fetcher, disabled, type = 'text', title_path, variables, search_path, modal_type, name } = props;
|
|
169
165
|
const { method_name } = variables;
|
|
170
166
|
const ws = (0, _nookies.parseCookies)().ws;
|
|
171
|
-
const storedFilters = sessionStorage.getItem(query) || {};
|
|
172
|
-
(0, _react.useEffect)(()=>{
|
|
173
|
-
if (storedFilters[name]) {
|
|
174
|
-
const storedOperator = Object.keys(storedFilters[name])[0];
|
|
175
|
-
setDisplayedValue((0, _helpers.titleCase)(storedFilters[name][storedOperator].replaceAll('_', ' ')));
|
|
176
|
-
}
|
|
177
|
-
}, [
|
|
178
|
-
name,
|
|
179
|
-
query
|
|
180
|
-
]);
|
|
181
167
|
const getWhere = ()=>{
|
|
182
168
|
if (variables.method_name == 'workspace') {
|
|
183
169
|
return searchValue ? _object_spread_props(_object_spread({}, fetcher.queryOptions.variables.where), {
|
package/package.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@react-spring/web": "^9.7.3",
|
|
14
14
|
"graphql-tag": "^2.12.6",
|
|
15
15
|
"next": "^13.5.3",
|
|
16
|
-
"react": "
|
|
17
|
-
"react-dom": "
|
|
16
|
+
"react": "17.0.2",
|
|
17
|
+
"react-dom": "17.0.2",
|
|
18
18
|
"swc-loader": "^0.2.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"require": "./dist/index.js"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
"version": "0.1.
|
|
73
|
+
"version": "0.1.64"
|
|
74
74
|
}
|