arengibook 2.4.669 → 2.4.671
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 +28 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36368,6 +36368,14 @@ styleInject(css_248z$2);
|
|
|
36368
36368
|
var Dropdown = function Dropdown(props) {
|
|
36369
36369
|
var _props$options = props.options,
|
|
36370
36370
|
options = _props$options === void 0 ? [] : _props$options,
|
|
36371
|
+
_props$attr = props.attr,
|
|
36372
|
+
attr = _props$attr === void 0 ? {} : _props$attr,
|
|
36373
|
+
_props$choice_attr = props.choice_attr,
|
|
36374
|
+
choice_attr = _props$choice_attr === void 0 ? function () {
|
|
36375
|
+
return {};
|
|
36376
|
+
} : _props$choice_attr,
|
|
36377
|
+
_props$optionClassnam = props.optionClassname,
|
|
36378
|
+
optionClassname = _props$optionClassnam === void 0 ? null : _props$optionClassnam,
|
|
36371
36379
|
_props$isGroupedOptio = props.isGroupedOption,
|
|
36372
36380
|
isGroupedOption = _props$isGroupedOptio === void 0 ? false : _props$isGroupedOptio,
|
|
36373
36381
|
_props$showTooltipGro = props.showTooltipGroup,
|
|
@@ -36512,10 +36520,16 @@ var Dropdown = function Dropdown(props) {
|
|
|
36512
36520
|
};
|
|
36513
36521
|
var optionTemplate = function optionTemplate(option) {
|
|
36514
36522
|
if (!isSelectMeta) {
|
|
36515
|
-
|
|
36516
|
-
|
|
36523
|
+
var defaultAttrs = {
|
|
36524
|
+
className: optionClassname,
|
|
36525
|
+
style: {
|
|
36517
36526
|
fontSize: '14px'
|
|
36518
|
-
}
|
|
36527
|
+
}
|
|
36528
|
+
};
|
|
36529
|
+
var attrs = typeof choice_attr === 'function' ? choice_attr(option) : defaultAttrs;
|
|
36530
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
36531
|
+
className: attrs.className,
|
|
36532
|
+
style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
|
|
36519
36533
|
}, option === null || option === void 0 ? void 0 : option[optionLabel]);
|
|
36520
36534
|
} else {
|
|
36521
36535
|
var _ref = selectMetaConfig || {},
|
|
@@ -36671,9 +36685,9 @@ var Dropdown = function Dropdown(props) {
|
|
|
36671
36685
|
}, option.label)));
|
|
36672
36686
|
}
|
|
36673
36687
|
};
|
|
36674
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
36688
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$C({}, attr, {
|
|
36675
36689
|
className: "flex flex-col gap-1"
|
|
36676
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$C({
|
|
36690
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$C({
|
|
36677
36691
|
editable: isSelectMeta && isEditing,
|
|
36678
36692
|
value: optionSelected,
|
|
36679
36693
|
options: options,
|
|
@@ -36823,6 +36837,15 @@ var DropdownPresets = {
|
|
|
36823
36837
|
optionStyle: {
|
|
36824
36838
|
fontSize: '14px',
|
|
36825
36839
|
fontFamily: 'Arial'
|
|
36840
|
+
},
|
|
36841
|
+
attr: {
|
|
36842
|
+
className: 'class-custom',
|
|
36843
|
+
'data-item': 'monitem'
|
|
36844
|
+
},
|
|
36845
|
+
choice_attr: function choice_attr(option) {
|
|
36846
|
+
return {
|
|
36847
|
+
className: 'material-icons'
|
|
36848
|
+
};
|
|
36826
36849
|
}
|
|
36827
36850
|
},
|
|
36828
36851
|
SelectMetaSync: {
|