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.js
CHANGED
@@ -53221,6 +53221,7 @@ styleInject(css_248z$7);
|
|
53221
53221
|
var BaseDropdown = function (_a) {
|
53222
53222
|
var options = _a.options, children = _a.children, _b = _a.overlayStyle, overlayStyle = _b === void 0 ? {
|
53223
53223
|
border: 'solid 1px #000',
|
53224
|
+
backgroundColor: '#fff',
|
53224
53225
|
padding: '5px',
|
53225
53226
|
borderRadius: '5px'
|
53226
53227
|
} : _b, _c = _a.childOverlayStyle, childOverlayStyle = _c === void 0 ? {
|
@@ -53230,15 +53231,24 @@ var BaseDropdown = function (_a) {
|
|
53230
53231
|
var renderItem = React.useCallback(function (o) {
|
53231
53232
|
switch (o.type) {
|
53232
53233
|
case 'link':
|
53233
|
-
return (React__default["default"].createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function () {
|
53234
|
+
return (React__default["default"].createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53235
|
+
e.stopPropagation();
|
53236
|
+
window.location.href = o.to;
|
53237
|
+
} },
|
53234
53238
|
o.icon && React__default["default"].createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53235
53239
|
o.label));
|
53236
53240
|
case 'label':
|
53237
|
-
return (React__default["default"].createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function () {
|
53241
|
+
return (React__default["default"].createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53242
|
+
e.stopPropagation();
|
53243
|
+
onSelect(o);
|
53244
|
+
} },
|
53238
53245
|
o.icon && React__default["default"].createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53239
53246
|
o.label));
|
53240
53247
|
default:
|
53241
|
-
return (React__default["default"].createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function () {
|
53248
|
+
return (React__default["default"].createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function (e) {
|
53249
|
+
e.stopPropagation();
|
53250
|
+
onSelect(o);
|
53251
|
+
} },
|
53242
53252
|
o.icon,
|
53243
53253
|
o.label));
|
53244
53254
|
}
|
@@ -53357,7 +53367,7 @@ var SendGeometry = function (_a) {
|
|
53357
53367
|
backgroundColor: 'white',
|
53358
53368
|
color: 'black',
|
53359
53369
|
border: 'solid 1px #000'
|
53360
|
-
}, disabled: disabled, onSelect: onSelect, options: values },
|
53370
|
+
}, disabled: disabled, action: 'hover', onSelect: onSelect, options: values },
|
53361
53371
|
React__default["default"].createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
|
53362
53372
|
backgroundColor: 'white',
|
53363
53373
|
color: 'black',
|
@@ -53494,7 +53504,7 @@ var SendModel = function (_a) {
|
|
53494
53504
|
backgroundColor: 'white',
|
53495
53505
|
color: 'black',
|
53496
53506
|
border: 'solid 1px #000'
|
53497
|
-
}, disabled: disabled, onSelect: onSelect, options: values },
|
53507
|
+
}, disabled: disabled, onSelect: onSelect, action: 'hover', options: values },
|
53498
53508
|
React__default["default"].createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
|
53499
53509
|
backgroundColor: 'white',
|
53500
53510
|
color: 'black',
|
@@ -53629,7 +53639,7 @@ var SendResults = function (_a) {
|
|
53629
53639
|
backgroundColor: 'white',
|
53630
53640
|
color: 'black',
|
53631
53641
|
border: 'solid 1px #000'
|
53632
|
-
}, disabled: disabled, onSelect: onSelect, options: values },
|
53642
|
+
}, action: 'hover', disabled: disabled, onSelect: onSelect, options: values },
|
53633
53643
|
React__default["default"].createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
|
53634
53644
|
backgroundColor: 'white',
|
53635
53645
|
color: 'black',
|