arengibook 2.4.676 → 2.4.677
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 +14 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39474,6 +39474,8 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39474
39474
|
};
|
|
39475
39475
|
useEffect(function () {
|
|
39476
39476
|
var _numValue;
|
|
39477
|
+
console.log("obtenir option url");
|
|
39478
|
+
console.log(optionsUrl);
|
|
39477
39479
|
setSelectedOptions(numObjValue && Array.isArray(numObjValue) && numObjValue.length ? numObjValue.map(function (opt) {
|
|
39478
39480
|
return opt[optionValue];
|
|
39479
39481
|
}) : (_numValue = numValue()) !== null && _numValue !== void 0 ? _numValue : []);
|
|
@@ -39909,12 +39911,17 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39909
39911
|
ongletID = _props$ongletID === void 0 ? null : _props$ongletID,
|
|
39910
39912
|
badgeSize = props.badgeSize,
|
|
39911
39913
|
optionsUrl = props.optionsUrl;
|
|
39912
|
-
console.log("optionsUrl");
|
|
39913
|
-
console.log(optionsUrl);
|
|
39914
|
-
console.log(!!optionsUrl);
|
|
39915
39914
|
var isAsyncOptions = typeof options === 'function' || optionsUrl;
|
|
39916
39915
|
if (isAsyncOptions) {
|
|
39916
|
+
console.log("optionsUrl is async");
|
|
39917
|
+
console.log(isAsyncOptions);
|
|
39918
|
+
console.log(optionsUrl);
|
|
39919
|
+
console.log(!!optionsUrl);
|
|
39917
39920
|
return /*#__PURE__*/React__default.createElement(MultiSelectMetaAsync, props);
|
|
39921
|
+
} else {
|
|
39922
|
+
console.log("continuer");
|
|
39923
|
+
console.log(isAsyncOptions);
|
|
39924
|
+
console.log(optionsUrl);
|
|
39918
39925
|
}
|
|
39919
39926
|
var _useState = useState(objValue ? _toConsumableArray$7(objValue.map(function (opt) {
|
|
39920
39927
|
return opt[optionValue];
|
|
@@ -39931,6 +39938,10 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39931
39938
|
width: '100%'
|
|
39932
39939
|
};
|
|
39933
39940
|
useEffect(function () {
|
|
39941
|
+
console.log("optionsUrl is useEffect");
|
|
39942
|
+
console.log(isAsyncOptions);
|
|
39943
|
+
console.log(optionsUrl);
|
|
39944
|
+
console.log(!!optionsUrl);
|
|
39934
39945
|
var observer = new MutationObserver(function () {
|
|
39935
39946
|
var panel = document.querySelector('.p-multiselect-panel.p-component');
|
|
39936
39947
|
if (panel) {
|