arengibook 2.4.677 → 2.4.680
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 +5 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36633,8 +36633,10 @@ var Dropdown = function Dropdown(props) {
|
|
|
36633
36633
|
setIsEditing(false);
|
|
36634
36634
|
}
|
|
36635
36635
|
clickedFromList.current = false;
|
|
36636
|
-
if (onChange) {
|
|
36637
|
-
onChange(
|
|
36636
|
+
if (typeof onChange === 'function') {
|
|
36637
|
+
onChange(e);
|
|
36638
|
+
} else if (typeof onChange === 'string' && typeof window[onChange] === 'function') {
|
|
36639
|
+
window[onChange](e);
|
|
36638
36640
|
}
|
|
36639
36641
|
};
|
|
36640
36642
|
var groupedItemTemplate = function groupedItemTemplate(option) {
|
|
@@ -36852,7 +36854,7 @@ var DropdownPresets = {
|
|
|
36852
36854
|
},
|
|
36853
36855
|
choice_attr: function choice_attr(option) {
|
|
36854
36856
|
return {
|
|
36855
|
-
className: '
|
|
36857
|
+
className: ''
|
|
36856
36858
|
};
|
|
36857
36859
|
}
|
|
36858
36860
|
},
|
|
@@ -39474,8 +39476,6 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39474
39476
|
};
|
|
39475
39477
|
useEffect(function () {
|
|
39476
39478
|
var _numValue;
|
|
39477
|
-
console.log("obtenir option url");
|
|
39478
|
-
console.log(optionsUrl);
|
|
39479
39479
|
setSelectedOptions(numObjValue && Array.isArray(numObjValue) && numObjValue.length ? numObjValue.map(function (opt) {
|
|
39480
39480
|
return opt[optionValue];
|
|
39481
39481
|
}) : (_numValue = numValue()) !== null && _numValue !== void 0 ? _numValue : []);
|
|
@@ -39913,15 +39913,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39913
39913
|
optionsUrl = props.optionsUrl;
|
|
39914
39914
|
var isAsyncOptions = typeof options === 'function' || optionsUrl;
|
|
39915
39915
|
if (isAsyncOptions) {
|
|
39916
|
-
console.log("optionsUrl is async");
|
|
39917
|
-
console.log(isAsyncOptions);
|
|
39918
|
-
console.log(optionsUrl);
|
|
39919
|
-
console.log(!!optionsUrl);
|
|
39920
39916
|
return /*#__PURE__*/React__default.createElement(MultiSelectMetaAsync, props);
|
|
39921
|
-
} else {
|
|
39922
|
-
console.log("continuer");
|
|
39923
|
-
console.log(isAsyncOptions);
|
|
39924
|
-
console.log(optionsUrl);
|
|
39925
39917
|
}
|
|
39926
39918
|
var _useState = useState(objValue ? _toConsumableArray$7(objValue.map(function (opt) {
|
|
39927
39919
|
return opt[optionValue];
|
|
@@ -39938,10 +39930,6 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39938
39930
|
width: '100%'
|
|
39939
39931
|
};
|
|
39940
39932
|
useEffect(function () {
|
|
39941
|
-
console.log("optionsUrl is useEffect");
|
|
39942
|
-
console.log(isAsyncOptions);
|
|
39943
|
-
console.log(optionsUrl);
|
|
39944
|
-
console.log(!!optionsUrl);
|
|
39945
39933
|
var observer = new MutationObserver(function () {
|
|
39946
39934
|
var panel = document.querySelector('.p-multiselect-panel.p-component');
|
|
39947
39935
|
if (panel) {
|