arengibook 2.4.615 → 2.4.617
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.js +23 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39131,35 +39131,30 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39131
39131
|
setLoading = _useState8[1];
|
|
39132
39132
|
var loadLazyTimeout = useRef();
|
|
39133
39133
|
var currentPageRef = useRef(1);
|
|
39134
|
-
var isOptionsArray = Array.isArray(options);
|
|
39135
39134
|
useEffect(function () {
|
|
39136
|
-
|
|
39137
|
-
|
|
39138
|
-
|
|
39139
|
-
|
|
39140
|
-
|
|
39141
|
-
|
|
39142
|
-
|
|
39143
|
-
|
|
39144
|
-
|
|
39145
|
-
|
|
39146
|
-
|
|
39147
|
-
|
|
39148
|
-
|
|
39149
|
-
|
|
39150
|
-
|
|
39151
|
-
|
|
39152
|
-
|
|
39153
|
-
|
|
39154
|
-
|
|
39155
|
-
|
|
39156
|
-
|
|
39157
|
-
|
|
39158
|
-
|
|
39159
|
-
};
|
|
39160
|
-
}();
|
|
39161
|
-
loadInitialOptions();
|
|
39162
|
-
}
|
|
39135
|
+
var loadInitialOptions = /*#__PURE__*/function () {
|
|
39136
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
39137
|
+
var result;
|
|
39138
|
+
return _regenerator().w(function (_context) {
|
|
39139
|
+
while (1) switch (_context.n) {
|
|
39140
|
+
case 0:
|
|
39141
|
+
_context.n = 1;
|
|
39142
|
+
return options('', [], {
|
|
39143
|
+
page: 1
|
|
39144
|
+
});
|
|
39145
|
+
case 1:
|
|
39146
|
+
result = _context.v;
|
|
39147
|
+
setLoadedOptions((result === null || result === void 0 ? void 0 : result.options) || []);
|
|
39148
|
+
case 2:
|
|
39149
|
+
return _context.a(2);
|
|
39150
|
+
}
|
|
39151
|
+
}, _callee);
|
|
39152
|
+
}));
|
|
39153
|
+
return function loadInitialOptions() {
|
|
39154
|
+
return _ref2.apply(this, arguments);
|
|
39155
|
+
};
|
|
39156
|
+
}();
|
|
39157
|
+
loadInitialOptions();
|
|
39163
39158
|
}, [options]);
|
|
39164
39159
|
|
|
39165
39160
|
// Gestion du changement de sélection
|
|
@@ -39243,7 +39238,6 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39243
39238
|
|
|
39244
39239
|
// Fonction de lazy loading
|
|
39245
39240
|
var onLazyLoad = function onLazyLoad(event) {
|
|
39246
|
-
if (isOptionsArray) return;
|
|
39247
39241
|
setLoading(true);
|
|
39248
39242
|
if (loadLazyTimeout.current) {
|
|
39249
39243
|
clearTimeout(loadLazyTimeout.current);
|