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