arengibook 2.4.650 → 2.4.651

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39555,21 +39555,22 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
39555
39555
  loading: loading,
39556
39556
  delay: 25
39557
39557
  }
39558
- }), name && /*#__PURE__*/React__default.createElement("input", {
39559
- type: "hidden",
39560
- name: name,
39561
- value: (Array.isArray(selectedOptions) ? selectedOptions.map(function (opt) {
39562
- if (_typeof$b(opt) === 'object' && opt !== null) {
39563
- return opt[optionValue];
39564
- }
39565
- if (typeof opt === 'number' || typeof opt === 'string') {
39566
- return opt;
39567
- }
39568
- return null;
39569
- }).filter(function (v) {
39570
- return v !== null && v !== undefined;
39571
- }) : []).join(',')
39572
- }), invalid && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
39558
+ }), name && /*#__PURE__*/React__default.createElement("div", null, (Array.isArray(selectedOptions) ? selectedOptions : []).filter(function (opt) {
39559
+ return opt && (_typeof$b(opt) === 'object' || typeof opt === 'number' || typeof opt === 'string');
39560
+ }).map(function (opt, index) {
39561
+ // normalisation
39562
+ var id = _typeof$b(opt) === 'object' && opt !== null ? opt[optionValue] : opt;
39563
+ var nameAttr = _typeof$b(opt) === 'object' && opt !== null ? opt[optionLabel] || opt.nom || '' : '';
39564
+ return /*#__PURE__*/React__default.createElement("input", {
39565
+ key: index,
39566
+ type: "hidden",
39567
+ className: classInput || '',
39568
+ name: name,
39569
+ "data-id-onglet": ongletID,
39570
+ "data-name": nameAttr,
39571
+ value: id
39572
+ });
39573
+ })), invalid && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
39573
39574
  style: {
39574
39575
  color: 'red',
39575
39576
  fontStyle: 'italic'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.650",
4
+ "version": "2.4.651",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {