pollination-react-io 1.75.1 → 1.75.3
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/build/index.esm.js +16 -6
- package/build/index.esm.js.map +1 -1
- package/build/index.js +16 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
@@ -53194,6 +53194,7 @@ styleInject(css_248z$7);
|
|
53194
53194
|
var BaseDropdown = function (_a) {
|
53195
53195
|
var options = _a.options, children = _a.children, _b = _a.overlayStyle, overlayStyle = _b === void 0 ? {
|
53196
53196
|
border: 'solid 1px #000',
|
53197
|
+
backgroundColor: '#fff',
|
53197
53198
|
padding: '5px',
|
53198
53199
|
borderRadius: '5px'
|
53199
53200
|
} : _b, _c = _a.childOverlayStyle, childOverlayStyle = _c === void 0 ? {
|
@@ -53203,15 +53204,24 @@ var BaseDropdown = function (_a) {
|
|
53203
53204
|
var renderItem = useCallback(function (o) {
|
53204
53205
|
switch (o.type) {
|
53205
53206
|
case 'link':
|
53206
|
-
return (React__default.createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function () {
|
53207
|
+
return (React__default.createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53208
|
+
e.stopPropagation();
|
53209
|
+
window.location.href = o.to;
|
53210
|
+
} },
|
53207
53211
|
o.icon && React__default.createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53208
53212
|
o.label));
|
53209
53213
|
case 'label':
|
53210
|
-
return (React__default.createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function () {
|
53214
|
+
return (React__default.createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53215
|
+
e.stopPropagation();
|
53216
|
+
onSelect(o);
|
53217
|
+
} },
|
53211
53218
|
o.icon && React__default.createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53212
53219
|
o.label));
|
53213
53220
|
default:
|
53214
|
-
return (React__default.createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function () {
|
53221
|
+
return (React__default.createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function (e) {
|
53222
|
+
e.stopPropagation();
|
53223
|
+
onSelect(o);
|
53224
|
+
} },
|
53215
53225
|
o.icon,
|
53216
53226
|
o.label));
|
53217
53227
|
}
|
@@ -53330,7 +53340,7 @@ var SendGeometry = function (_a) {
|
|
53330
53340
|
backgroundColor: 'white',
|
53331
53341
|
color: 'black',
|
53332
53342
|
border: 'solid 1px #000'
|
53333
|
-
}, disabled: disabled, onSelect: onSelect, options: values },
|
53343
|
+
}, disabled: disabled, action: 'hover', onSelect: onSelect, options: values },
|
53334
53344
|
React__default.createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
|
53335
53345
|
backgroundColor: 'white',
|
53336
53346
|
color: 'black',
|
@@ -53467,7 +53477,7 @@ var SendModel = function (_a) {
|
|
53467
53477
|
backgroundColor: 'white',
|
53468
53478
|
color: 'black',
|
53469
53479
|
border: 'solid 1px #000'
|
53470
|
-
}, disabled: disabled, onSelect: onSelect, options: values },
|
53480
|
+
}, disabled: disabled, onSelect: onSelect, action: 'hover', options: values },
|
53471
53481
|
React__default.createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
|
53472
53482
|
backgroundColor: 'white',
|
53473
53483
|
color: 'black',
|
@@ -53602,7 +53612,7 @@ var SendResults = function (_a) {
|
|
53602
53612
|
backgroundColor: 'white',
|
53603
53613
|
color: 'black',
|
53604
53614
|
border: 'solid 1px #000'
|
53605
|
-
}, disabled: disabled, onSelect: onSelect, options: values },
|
53615
|
+
}, action: 'hover', disabled: disabled, onSelect: onSelect, options: values },
|
53606
53616
|
React__default.createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
|
53607
53617
|
backgroundColor: 'white',
|
53608
53618
|
color: 'black',
|