oolib 2.225.1 → 2.225.2

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.
@@ -18,6 +18,7 @@ export function SimpleTable({ id, readOnly, config, value: _value, onChange, def
18
18
  rowHeaderData: any;
19
19
  disableAddRow: boolean;
20
20
  disableRowActionsMenu: boolean;
21
+ disablePrimaryActionsMenu: boolean;
21
22
  blockConfig: {
22
23
  comp: string;
23
24
  props: {};
@@ -100,6 +100,7 @@ function SimpleTable(_a) {
100
100
  rowHeaderData: undefined,
101
101
  disableAddRow: false,
102
102
  disableRowActionsMenu: false,
103
+ disablePrimaryActionsMenu: false,
103
104
  blockConfig: [undefined, { comp: 'DropdownSingle', props: {} }, { comp: 'DropdownSingle', props: {} }]
104
105
  } : _b, _value = _a.value, onChange = _a.onChange, _c = _a.defaultColWidth, defaultColWidth = _c === void 0 ? 200 : _c;
105
106
  var props = arguments[0];
@@ -295,7 +296,7 @@ function SimpleTable(_a) {
295
296
  alignItems: "stretch" /**without stretch AddColButton will be wonky */,
296
297
  } },
297
298
  react_1.default.createElement("div", { style: { position: "relative" } },
298
- react_1.default.createElement("div", { style: {
299
+ !readOnly && !config.disablePrimaryActionsMenu && (react_1.default.createElement("div", { style: {
299
300
  position: "absolute",
300
301
  right: 0,
301
302
  top: "-" + primaryTableActionsMenuGap + "px",
@@ -338,7 +339,7 @@ function SimpleTable(_a) {
338
339
  },
339
340
  },
340
341
  ]
341
- : []), true) })),
342
+ : []), true) }))),
342
343
  react_1.default.createElement(styled_1.StyledSimpleTable, { onMouseLeave: function () {
343
344
  return setHoveredRowAndCol({ rowIdx: undefined, colIdx: undefined });
344
345
  } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.225.1",
3
+ "version": "2.225.2",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",