arengibook 2.4.645 → 2.4.646
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 +0 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39346,28 +39346,6 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39346
39346
|
style: styleLabel
|
|
39347
39347
|
}, option[optionLabel]));
|
|
39348
39348
|
};
|
|
39349
|
-
useEffect(function () {
|
|
39350
|
-
loadedOptions.find(function (opt) {
|
|
39351
|
-
return opt[optionValue] === option;
|
|
39352
|
-
});
|
|
39353
|
-
|
|
39354
|
-
// À l'extérieur de selectedItemTemplate (dans le corps du composant)
|
|
39355
|
-
useMemo(function () {
|
|
39356
|
-
return selectedOptions.map(function (option) {
|
|
39357
|
-
// 1. Cherche d'abord dans objValue (pour l'affichage immédiat)
|
|
39358
|
-
var selectedOption = objValue.find(function (opt) {
|
|
39359
|
-
return opt[optionValue] === option;
|
|
39360
|
-
});
|
|
39361
|
-
// 2. Si non trouvé, cherche dans loadedOptions (fallback)
|
|
39362
|
-
if (!selectedOption && loadedOptions.length > 0) {
|
|
39363
|
-
selectedOption = loadedOptions.find(function (opt) {
|
|
39364
|
-
return opt[optionValue] === option;
|
|
39365
|
-
});
|
|
39366
|
-
}
|
|
39367
|
-
return selectedOption;
|
|
39368
|
-
}).filter(Boolean); // Filtre les valeurs "undefined" si une option n'est pas trouvée
|
|
39369
|
-
}, [selectedOptions, objValue, loadedOptions, optionValue]);
|
|
39370
|
-
});
|
|
39371
39349
|
var selectedItemTemplate = function selectedItemTemplate(option) {
|
|
39372
39350
|
var _selectedOption, _selectedOption2, _selectedOption3, _selectedOption4;
|
|
39373
39351
|
// const selectedOption = objValue.find(opt => opt[optionValue] === option);
|