arengibook 2.4.593 → 2.4.594
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 +7 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35946,7 +35946,8 @@ var PopupPresets = {
|
|
|
35946
35946
|
};
|
|
35947
35947
|
|
|
35948
35948
|
var Dropdown = function Dropdown(_ref) {
|
|
35949
|
-
var
|
|
35949
|
+
var ref = _ref.ref,
|
|
35950
|
+
_ref$options = _ref.options,
|
|
35950
35951
|
options = _ref$options === void 0 ? [] : _ref$options,
|
|
35951
35952
|
_ref$isGroupedOption = _ref.isGroupedOption,
|
|
35952
35953
|
isGroupedOption = _ref$isGroupedOption === void 0 ? false : _ref$isGroupedOption,
|
|
@@ -35998,22 +35999,16 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35998
35999
|
_useState2 = _slicedToArray$8(_useState, 2),
|
|
35999
36000
|
optionSelected = _useState2[0],
|
|
36000
36001
|
setOptionSelected = _useState2[1];
|
|
36001
|
-
useRef([]);
|
|
36002
36002
|
var _useState3 = useState(false),
|
|
36003
36003
|
_useState4 = _slicedToArray$8(_useState3, 2),
|
|
36004
36004
|
loading = _useState4[0],
|
|
36005
36005
|
setLoading = _useState4[1];
|
|
36006
|
-
useRef([]);
|
|
36007
36006
|
var currentPageRef = useRef(1);
|
|
36008
36007
|
var _useState5 = useState([]),
|
|
36009
36008
|
_useState6 = _slicedToArray$8(_useState5, 2),
|
|
36010
36009
|
loadedOptions = _useState6[0],
|
|
36011
36010
|
setLoadedOptions = _useState6[1];
|
|
36012
36011
|
var isOptionLoadFunction = typeof options === 'function';
|
|
36013
|
-
var _useState7 = useState(''),
|
|
36014
|
-
_useState8 = _slicedToArray$8(_useState7, 2);
|
|
36015
|
-
_useState8[0];
|
|
36016
|
-
_useState8[1];
|
|
36017
36012
|
var filterRef = useRef('');
|
|
36018
36013
|
useEffect(function () {
|
|
36019
36014
|
var handleScroll = function handleScroll(e) {
|
|
@@ -36028,7 +36023,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
36028
36023
|
var dropdownPanels = document.querySelectorAll('.p-dropdown-panel');
|
|
36029
36024
|
dropdownPanels.forEach(function (panel) {
|
|
36030
36025
|
if (panel && panel.style.display !== 'none') {
|
|
36031
|
-
document.body.click();
|
|
36026
|
+
document.body.click();
|
|
36032
36027
|
}
|
|
36033
36028
|
});
|
|
36034
36029
|
};
|
|
@@ -36128,8 +36123,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
36128
36123
|
}, option === null || option === void 0 ? void 0 : option[optionLabel])));
|
|
36129
36124
|
}
|
|
36130
36125
|
};
|
|
36131
|
-
({
|
|
36132
|
-
maxHeight: loadedOptions.length <= 6 ? "".concat(loadedOptions.length * 42, "px") : '240px'});
|
|
36133
36126
|
var valueTemplate = function valueTemplate(option) {
|
|
36134
36127
|
if (isSelectMeta) {
|
|
36135
36128
|
var iconColor = option !== null && option !== void 0 && option.color ? inverseColor(option === null || option === void 0 ? void 0 : option.color) : '#FFFFFF';
|
|
@@ -36283,6 +36276,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
36283
36276
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36284
36277
|
className: "flex flex-col gap-1"
|
|
36285
36278
|
}, /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$A({
|
|
36279
|
+
ref: ref,
|
|
36286
36280
|
value: optionSelected,
|
|
36287
36281
|
options: loadedOptions,
|
|
36288
36282
|
onChange: handleChange,
|
|
@@ -36461,7 +36455,7 @@ var DropdownPresets = {
|
|
|
36461
36455
|
fontFamily: 'Arial'
|
|
36462
36456
|
}
|
|
36463
36457
|
},
|
|
36464
|
-
|
|
36458
|
+
SelectMetaAsyncLoad: {
|
|
36465
36459
|
placeholder: 'Chargement distant simulé',
|
|
36466
36460
|
options: function () {
|
|
36467
36461
|
var _options = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(search, loadedOptions, _ref) {
|
|
@@ -36513,7 +36507,7 @@ var DropdownPresets = {
|
|
|
36513
36507
|
fontFamily: 'Arial'
|
|
36514
36508
|
}
|
|
36515
36509
|
},
|
|
36516
|
-
|
|
36510
|
+
SelectMetaAsyncSearch: {
|
|
36517
36511
|
placeholder: 'Recherchez une option...',
|
|
36518
36512
|
filter: true,
|
|
36519
36513
|
options: function () {
|
|
@@ -36556,7 +36550,7 @@ var DropdownPresets = {
|
|
|
36556
36550
|
}(),
|
|
36557
36551
|
isSelectMeta: true,
|
|
36558
36552
|
selectMetaConfig: {
|
|
36559
|
-
generalIcon: 'pi
|
|
36553
|
+
generalIcon: 'pi-circle-fill'
|
|
36560
36554
|
},
|
|
36561
36555
|
valueStyle: {
|
|
36562
36556
|
fontSize: '14px',
|