arengibook 1.2.3201-main → 1.2.3202-main
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 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42384,9 +42384,9 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
42384
42384
|
selectedOptions = _useState2[0],
|
|
42385
42385
|
setSelectedOptions = _useState2[1];
|
|
42386
42386
|
var _useState3 = useState(initialSelected),
|
|
42387
|
-
_useState4 = _slicedToArray$d(_useState3, 2)
|
|
42388
|
-
_useState4[0]
|
|
42389
|
-
|
|
42387
|
+
_useState4 = _slicedToArray$d(_useState3, 2),
|
|
42388
|
+
appliedOptions = _useState4[0],
|
|
42389
|
+
setAppliedOptions = _useState4[1];
|
|
42390
42390
|
var _useState5 = useState(null),
|
|
42391
42391
|
_useState6 = _slicedToArray$d(_useState5, 2),
|
|
42392
42392
|
displayValue = _useState6[0],
|
|
@@ -43012,6 +43012,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
43012
43012
|
border: isInvalidEffective ? '1px solid red' : '1px solid #ccc',
|
|
43013
43013
|
width: '100%'
|
|
43014
43014
|
};
|
|
43015
|
+
var submitValues = applyEnabled ? appliedOptions : selectedOptions;
|
|
43015
43016
|
var effectiveShowClear = Boolean(showClear || typeof onClearAll === 'function');
|
|
43016
43017
|
var emptyMessage = loading ? 'Chargement…' : 'Aucune option disponible';
|
|
43017
43018
|
var handleMouseEnter = function handleMouseEnter() {
|
|
@@ -43437,10 +43438,10 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
43437
43438
|
style: {
|
|
43438
43439
|
width: '0px'
|
|
43439
43440
|
}
|
|
43440
|
-
}, (Array.isArray(
|
|
43441
|
+
}, (Array.isArray(submitValues) ? submitValues : []).filter(function (opt) {
|
|
43441
43442
|
return opt && (_typeof$g(opt) === 'object' || typeof opt === 'number' || typeof opt === 'string');
|
|
43442
43443
|
}).map(function (opt, index) {
|
|
43443
|
-
_typeof$g(opt) === 'object' && opt !== null ? opt[optionValue] : opt;
|
|
43444
|
+
var id = _typeof$g(opt) === 'object' && opt !== null ? opt[optionValue] : opt;
|
|
43444
43445
|
var nameAttr = _typeof$g(opt) === 'object' && opt !== null ? opt[optionLabel] || opt.nom || '' : '';
|
|
43445
43446
|
return /*#__PURE__*/React__default.createElement("input", {
|
|
43446
43447
|
key: index,
|
|
@@ -43448,9 +43449,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
43448
43449
|
name: name,
|
|
43449
43450
|
"data-id-onglet": ongletID,
|
|
43450
43451
|
"data-name": nameAttr,
|
|
43451
|
-
value:
|
|
43452
|
-
return _typeof$g(opt) === 'object' ? opt[optionValue] : opt;
|
|
43453
|
-
}).join(',')
|
|
43452
|
+
value: id
|
|
43454
43453
|
});
|
|
43455
43454
|
}), required && !hasSelection && /*#__PURE__*/React__default.createElement("input", {
|
|
43456
43455
|
tabIndex: -1,
|
|
@@ -43468,7 +43467,6 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
43468
43467
|
padding: 0,
|
|
43469
43468
|
margin: 0,
|
|
43470
43469
|
border: 'none',
|
|
43471
|
-
display: 'block',
|
|
43472
43470
|
pointerEvents: 'none'
|
|
43473
43471
|
}
|
|
43474
43472
|
})), isInvalidEffective && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
|