oolib 2.227.6 → 2.227.8

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.
Files changed (41) hide show
  1. package/dist/UIContent/index.d.ts +0 -15
  2. package/dist/UIContent/index.js +0 -14
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +2 -4
  5. package/dist/v2/components/TextInputs/index.d.ts +3 -2
  6. package/dist/v2/components/TextInputs/index.js +6 -6
  7. package/package.json +1 -1
  8. package/dist/components/SimpleTable/comps/AddRowColButtons/index.d.ts +0 -9
  9. package/dist/components/SimpleTable/comps/AddRowColButtons/index.js +0 -77
  10. package/dist/components/SimpleTable/comps/rowColActionMenus/ColActionsMenu/index.d.ts +0 -11
  11. package/dist/components/SimpleTable/comps/rowColActionMenus/ColActionsMenu/index.js +0 -95
  12. package/dist/components/SimpleTable/comps/rowColActionMenus/RowActionsMenu/index.d.ts +0 -12
  13. package/dist/components/SimpleTable/comps/rowColActionMenus/RowActionsMenu/index.js +0 -120
  14. package/dist/components/SimpleTable/comps/rowColActionMenus/styled.d.ts +0 -1
  15. package/dist/components/SimpleTable/comps/rowColActionMenus/styled.js +0 -18
  16. package/dist/components/SimpleTable/handlers/handleColActions.d.ts +0 -38
  17. package/dist/components/SimpleTable/handlers/handleColActions.js +0 -155
  18. package/dist/components/SimpleTable/handlers/handleRowActions.d.ts +0 -34
  19. package/dist/components/SimpleTable/handlers/handleRowActions.js +0 -96
  20. package/dist/components/SimpleTable/handlers/handleStretchToFullWidth.d.ts +0 -8
  21. package/dist/components/SimpleTable/handlers/handleStretchToFullWidth.js +0 -34
  22. package/dist/components/SimpleTable/handlers/handleToggleColHeader.d.ts +0 -5
  23. package/dist/components/SimpleTable/handlers/handleToggleColHeader.js +0 -21
  24. package/dist/components/SimpleTable/handlers/handleToggleRowHeader.d.ts +0 -5
  25. package/dist/components/SimpleTable/handlers/handleToggleRowHeader.js +0 -31
  26. package/dist/components/SimpleTable/index.d.ts +0 -31
  27. package/dist/components/SimpleTable/index.js +0 -366
  28. package/dist/components/SimpleTable/styled.d.ts +0 -5
  29. package/dist/components/SimpleTable/styled.js +0 -80
  30. package/dist/components/SimpleTable/useResizeTableColumns.d.ts +0 -21
  31. package/dist/components/SimpleTable/useResizeTableColumns.js +0 -88
  32. package/dist/components/SimpleTable/utils/convertColHeaderConfigToRowData.d.ts +0 -8
  33. package/dist/components/SimpleTable/utils/convertColHeaderConfigToRowData.js +0 -16
  34. package/dist/components/SimpleTable/utils/convertRowHeaderConfigToCellData.d.ts +0 -10
  35. package/dist/components/SimpleTable/utils/convertRowHeaderConfigToCellData.js +0 -13
  36. package/dist/components/SimpleTable/utils/genHash.d.ts +0 -1
  37. package/dist/components/SimpleTable/utils/genHash.js +0 -13
  38. package/dist/components/SimpleTable/utils/prepInitValueFromConfigIfNoValue.d.ts +0 -10
  39. package/dist/components/SimpleTable/utils/prepInitValueFromConfigIfNoValue.js +0 -79
  40. package/dist/stories/Oolib/components/SimpleTable.stories.d.ts +0 -67
  41. package/dist/stories/Oolib/components/SimpleTable.stories.js +0 -128
@@ -1,155 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.handleClearColContent = exports.handleInsertColBefore = exports.handleInsertColAfter = exports.handleDuplicateCol = exports.handleDeleteCol = exports.handleAddCol = void 0;
24
- var genHash_1 = require("../utils/genHash");
25
- var genNewCell = function () { return ({
26
- id: "cell_".concat((0, genHash_1.genHash)(8)),
27
- }); };
28
- var handleAddColAtIdx = function (_a) {
29
- var value = _a.value, onChange = _a.onChange, id = _a.id, defaultColWidth = _a.defaultColWidth, colIdx = _a.colIdx;
30
- var data = value.data, colWidthConfig = value.colWidthConfig;
31
- var newData = __spreadArray([], data, true);
32
- newData = newData.map(function (row) {
33
- var newCellData = __spreadArray([], row.cellData, true);
34
- newCellData.splice(colIdx, 0, genNewCell());
35
- return __assign(__assign({}, row), { cellData: newCellData });
36
- });
37
- var newColWidthValue = defaultColWidth + "px";
38
- var newColWidthConfigAsArray = Object.values(colWidthConfig);
39
- newColWidthConfigAsArray.splice(colIdx, 0, newColWidthValue);
40
- var newColWidthConfig = newColWidthConfigAsArray
41
- .map(function (width, i) { return ({
42
- colId: "col_".concat(i),
43
- width: width,
44
- }); })
45
- .reduce(function (a, b) {
46
- var _a;
47
- return (__assign(__assign({}, a), (_a = {}, _a[b.colId] = b.width, _a)));
48
- }, {});
49
- onChange &&
50
- onChange(id, { data: newData, colWidthConfig: newColWidthConfig });
51
- };
52
- var handleAddCol = function (_a) {
53
- var value = _a.value, onChange = _a.onChange, id = _a.id, defaultColWidth = _a.defaultColWidth;
54
- handleAddColAtIdx({
55
- value: value,
56
- onChange: onChange,
57
- id: id,
58
- defaultColWidth: defaultColWidth,
59
- colIdx: value.data[0].cellData.length,
60
- });
61
- };
62
- exports.handleAddCol = handleAddCol;
63
- var handleDeleteCol = function (_a) {
64
- var value = _a.value, colIdx = _a.colIdx, onChange = _a.onChange, id = _a.id;
65
- var data = value.data, colWidthConfig = value.colWidthConfig;
66
- var newData = data.map(function (row) {
67
- var newCellData = row.cellData.filter(function (cell, cellIdx) { return colIdx !== cellIdx; });
68
- return __assign(__assign({}, row), { cellData: newCellData });
69
- });
70
- var newColWidthConfig = __assign({}, colWidthConfig);
71
- delete newColWidthConfig["col_".concat(colIdx)];
72
- // now that we deleted this colIdx from widthconfig. we need to reset all the keys from col_0 to col_<length-1>
73
- newColWidthConfig = Object.values(newColWidthConfig)
74
- .map(function (width, i) { return ({
75
- colId: "col_".concat(i),
76
- width: width,
77
- }); })
78
- .reduce(function (a, b) {
79
- var _a;
80
- return (__assign(__assign({}, a), (_a = {}, _a[b.colId] = b.width, _a)));
81
- }, {});
82
- onChange &&
83
- onChange(id, { data: newData, colWidthConfig: newColWidthConfig });
84
- };
85
- exports.handleDeleteCol = handleDeleteCol;
86
- var handleDuplicateCol = function (_a) {
87
- var value = _a.value, colIdx = _a.colIdx, onChange = _a.onChange, id = _a.id;
88
- var data = value.data, colWidthConfig = value.colWidthConfig;
89
- var newData = data.map(function (row) {
90
- var newCellData = __spreadArray([], row.cellData, true);
91
- var dataToDuplicate = __assign(__assign({}, newCellData[colIdx]), { id: "cell_".concat((0, genHash_1.genHash)(8)) });
92
- newCellData.splice(colIdx + 1, 0, dataToDuplicate);
93
- return __assign(__assign({}, row), { cellData: newCellData });
94
- });
95
- var newColWidthValue = colWidthConfig["col_".concat(colIdx)];
96
- var newColWidthConfigAsArray = Object.values(colWidthConfig);
97
- newColWidthConfigAsArray.splice(colIdx + 1, 0, newColWidthValue);
98
- var newColWidthConfig = newColWidthConfigAsArray
99
- .map(function (width, i) { return ({
100
- colId: "col_".concat(i),
101
- width: width,
102
- }); })
103
- .reduce(function (a, b) {
104
- var _a;
105
- return (__assign(__assign({}, a), (_a = {}, _a[b.colId] = b.width, _a)));
106
- }, {});
107
- onChange &&
108
- onChange(id, { data: newData, colWidthConfig: newColWidthConfig });
109
- };
110
- exports.handleDuplicateCol = handleDuplicateCol;
111
- var handleInsertColAfter = function (_a) {
112
- var value = _a.value, colIdx = _a.colIdx, onChange = _a.onChange, id = _a.id, defaultColWidth = _a.defaultColWidth;
113
- handleAddColAtIdx({
114
- value: value,
115
- onChange: onChange,
116
- id: id,
117
- defaultColWidth: defaultColWidth,
118
- colIdx: colIdx + 1,
119
- });
120
- };
121
- exports.handleInsertColAfter = handleInsertColAfter;
122
- var handleInsertColBefore = function (_a) {
123
- var value = _a.value, colIdx = _a.colIdx, onChange = _a.onChange, id = _a.id, defaultColWidth = _a.defaultColWidth;
124
- handleAddColAtIdx({
125
- value: value,
126
- onChange: onChange,
127
- id: id,
128
- defaultColWidth: defaultColWidth,
129
- colIdx: colIdx,
130
- });
131
- };
132
- exports.handleInsertColBefore = handleInsertColBefore;
133
- var handleClearColContent = function (_a) {
134
- var value = _a.value, colIdx = _a.colIdx, onChange = _a.onChange, id = _a.id;
135
- var data = value.data, colWidthConfig = value.colWidthConfig;
136
- var newData = data.map(function (row) {
137
- var newCellData = __spreadArray([], row.cellData, true);
138
- // let cellToClear = newCellData[colIdx];
139
- // delete cellToClear.value;
140
- // console.log({cellToClear})
141
- /**
142
- * this genNewRow does one very important thing apart from the obvious of clearing the value:
143
- * it creates a fresh new row id, which changes the 'react key' of the row being rendered, which
144
- * ensures the the RTE used within the cell is reinitiated and the previous value in it is cleared.
145
- * (since RTEs are not controlled components)
146
- */
147
- newCellData.splice(colIdx, 1, genNewCell());
148
- // console.log({newCellData})
149
- return __assign(__assign({}, row), { cellData: newCellData });
150
- });
151
- // console.log({newData})
152
- onChange &&
153
- onChange(id, { data: newData, colWidthConfig: colWidthConfig });
154
- };
155
- exports.handleClearColContent = handleClearColContent;
@@ -1,34 +0,0 @@
1
- export function handleAddRow(value: any, props: any): void;
2
- export function handleDeleteRow({ value, rowIdx, onChange, id }: {
3
- value: any;
4
- rowIdx: any;
5
- onChange: any;
6
- id: any;
7
- }): void;
8
- export function handleDuplicateRow({ value, rowIdx, onChange, id }: {
9
- value: any;
10
- rowIdx: any;
11
- onChange: any;
12
- id: any;
13
- }): void;
14
- export function handleInsertRowAfter({ value, rowIdx, onChange, id, blockConfig }: {
15
- value: any;
16
- rowIdx: any;
17
- onChange: any;
18
- id: any;
19
- blockConfig: any;
20
- }): void;
21
- export function handleInsertRowBefore({ value, rowIdx, onChange, id, blockConfig }: {
22
- value: any;
23
- rowIdx: any;
24
- onChange: any;
25
- id: any;
26
- blockConfig: any;
27
- }): void;
28
- export function handleClearRowContent({ value, rowIdx, onChange, id, blockConfig }: {
29
- value: any;
30
- rowIdx: any;
31
- onChange: any;
32
- id: any;
33
- blockConfig: any;
34
- }): void;
@@ -1,96 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.handleClearRowContent = exports.handleInsertRowBefore = exports.handleInsertRowAfter = exports.handleDuplicateRow = exports.handleDeleteRow = exports.handleAddRow = void 0;
24
- var makeArrayFromLength_1 = require("../../../utils/makeArrayFromLength");
25
- var genHash_1 = require("../utils/genHash");
26
- var genNewRow = function (_a) {
27
- var data = _a.data, rowIdx = _a.rowIdx, blockConfig = _a.blockConfig;
28
- var totCells = data[rowIdx].cellData.length;
29
- return ({
30
- id: "row_".concat((0, genHash_1.genHash)(8)),
31
- cellData: (0, makeArrayFromLength_1.makeArrayFromLength)(totCells).map(function (d, i) {
32
- var _a, _b;
33
- return (__assign(__assign({ id: "cell_".concat((0, genHash_1.genHash)(8)) }, (((_a = blockConfig === null || blockConfig === void 0 ? void 0 : blockConfig[i]) === null || _a === void 0 ? void 0 : _a.comp) ? { comp: blockConfig[i].comp } : {})), (((_b = blockConfig === null || blockConfig === void 0 ? void 0 : blockConfig[i]) === null || _b === void 0 ? void 0 : _b.props) ? { props: blockConfig[i].props } : {})));
34
- })
35
- });
36
- };
37
- var handleAddRow = function (value, props) {
38
- var onChange = props.onChange, id = props.id, config = props.config;
39
- var data = value.data, colWidthConfig = value.colWidthConfig;
40
- var newData = __spreadArray([], data, true);
41
- var lastRowIdx = newData.length - 1;
42
- var newRow = genNewRow({ data: newData, rowIdx: lastRowIdx, blockConfig: config === null || config === void 0 ? void 0 : config.blockConfig });
43
- newData.push(newRow);
44
- onChange && onChange(id, { data: newData, colWidthConfig: colWidthConfig });
45
- };
46
- exports.handleAddRow = handleAddRow;
47
- var handleDeleteRow = function (_a) {
48
- var value = _a.value, rowIdx = _a.rowIdx, onChange = _a.onChange, id = _a.id;
49
- var data = value.data, colWidthConfig = value.colWidthConfig;
50
- var newData = __spreadArray([], data, true);
51
- newData.splice(rowIdx, 1);
52
- onChange && onChange(id, { data: newData, colWidthConfig: colWidthConfig });
53
- };
54
- exports.handleDeleteRow = handleDeleteRow;
55
- var handleDuplicateRow = function (_a) {
56
- var value = _a.value, rowIdx = _a.rowIdx, onChange = _a.onChange, id = _a.id;
57
- var data = value.data, colWidthConfig = value.colWidthConfig;
58
- var newData = __spreadArray([], data, true);
59
- var dataToDuplicate = __assign(__assign({}, newData[rowIdx]), { id: "row_".concat((0, genHash_1.genHash)(8)), cellData: newData[rowIdx].cellData.map(function (cell) { return (__assign(__assign({}, cell), { id: "cell_".concat((0, genHash_1.genHash)(8)) })); }) });
60
- newData.splice(rowIdx + 1, 0, dataToDuplicate);
61
- onChange && onChange(id, { data: newData, colWidthConfig: colWidthConfig });
62
- };
63
- exports.handleDuplicateRow = handleDuplicateRow;
64
- var handleInsertRowAfter = function (_a) {
65
- var value = _a.value, rowIdx = _a.rowIdx, onChange = _a.onChange, id = _a.id, blockConfig = _a.blockConfig;
66
- var data = value.data, colWidthConfig = value.colWidthConfig;
67
- var newData = __spreadArray([], data, true);
68
- var newRow = genNewRow({ data: newData, rowIdx: rowIdx, blockConfig: blockConfig });
69
- newData.splice(rowIdx + 1, 0, newRow);
70
- onChange && onChange(id, { data: newData, colWidthConfig: colWidthConfig });
71
- };
72
- exports.handleInsertRowAfter = handleInsertRowAfter;
73
- var handleInsertRowBefore = function (_a) {
74
- var value = _a.value, rowIdx = _a.rowIdx, onChange = _a.onChange, id = _a.id, blockConfig = _a.blockConfig;
75
- var data = value.data, colWidthConfig = value.colWidthConfig;
76
- var newData = __spreadArray([], data, true);
77
- var newRow = genNewRow({ data: newData, rowIdx: rowIdx, blockConfig: blockConfig });
78
- newData.splice(rowIdx, 0, newRow);
79
- onChange && onChange(id, { data: newData, colWidthConfig: colWidthConfig });
80
- };
81
- exports.handleInsertRowBefore = handleInsertRowBefore;
82
- var handleClearRowContent = function (_a) {
83
- var value = _a.value, rowIdx = _a.rowIdx, onChange = _a.onChange, id = _a.id, blockConfig = _a.blockConfig;
84
- var data = value.data, colWidthConfig = value.colWidthConfig;
85
- var newData = __spreadArray([], data, true);
86
- /**
87
- * this genNewRow does one very important thing apart from the obvious of clearing the value:
88
- * it creates a fresh new row id, which changes the 'react key' of the row being rendered, which
89
- * ensures the the RTE used within the cell is reinitiated and the previous value in it is cleared.
90
- * (since RTEs are not controlled components)
91
- */
92
- var newRow = genNewRow({ data: newData, rowIdx: rowIdx, blockConfig: blockConfig });
93
- newData.splice(rowIdx, 1, newRow);
94
- onChange && onChange(id, { data: newData, colWidthConfig: colWidthConfig });
95
- };
96
- exports.handleClearRowContent = handleClearRowContent;
@@ -1,8 +0,0 @@
1
- export function handleStretchToFullWidth({ value, onChange, id, enableColActions, addColButtonWidth, fullWidthCompWrapper, }: {
2
- value: any;
3
- onChange: any;
4
- id: any;
5
- enableColActions: any;
6
- addColButtonWidth: any;
7
- fullWidthCompWrapper: any;
8
- }): void;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.handleStretchToFullWidth = void 0;
15
- var handleStretchToFullWidth = function (_a) {
16
- var _b;
17
- var value = _a.value, onChange = _a.onChange, id = _a.id, enableColActions = _a.enableColActions, addColButtonWidth = _a.addColButtonWidth, fullWidthCompWrapper = _a.fullWidthCompWrapper;
18
- var data = value.data, colWidthConfig = value.colWidthConfig;
19
- var totalAvailableWidth = ((_b = fullWidthCompWrapper.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width) -
20
- (enableColActions ? addColButtonWidth : 0);
21
- var noOfCols = data[0].cellData.length;
22
- var widthPerCol = totalAvailableWidth / noOfCols + "px";
23
- var newColWidthConfig = Object.keys(colWidthConfig)
24
- .map(function (k) { return ({
25
- colId: k,
26
- width: widthPerCol,
27
- }); })
28
- .reduce(function (a, b) {
29
- var _a;
30
- return (__assign(__assign({}, a), (_a = {}, _a[b.colId] = b.width, _a)));
31
- }, {});
32
- onChange && onChange(id, { data: data, colWidthConfig: newColWidthConfig });
33
- };
34
- exports.handleStretchToFullWidth = handleStretchToFullWidth;
@@ -1,5 +0,0 @@
1
- export function handleToggleColHeader({ value, onChange, id }: {
2
- value: any;
3
- onChange: any;
4
- id: any;
5
- }): void;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleToggleColHeader = void 0;
4
- var lodash_1 = require("lodash");
5
- var handleToggleColHeader = function (_a) {
6
- var value = _a.value, onChange = _a.onChange, id = _a.id;
7
- var data = value.data, colWidthConfig = value.colWidthConfig;
8
- var newData = data.map(function (row) {
9
- var newRowData = (0, lodash_1.cloneDeep)(row);
10
- if (newRowData.cellData[0].isRowHeader) { //then remove
11
- delete newRowData.cellData[0].isRowHeader;
12
- }
13
- else {
14
- newRowData.cellData[0].isRowHeader = true;
15
- }
16
- return newRowData;
17
- });
18
- onChange &&
19
- onChange(id, { data: newData, colWidthConfig: colWidthConfig });
20
- };
21
- exports.handleToggleColHeader = handleToggleColHeader;
@@ -1,5 +0,0 @@
1
- export function handleToggleRowHeader({ value, onChange, id }: {
2
- value: any;
3
- onChange: any;
4
- id: any;
5
- }): void;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.handleToggleRowHeader = void 0;
15
- var handleToggleRowHeader = function (_a) {
16
- var value = _a.value, onChange = _a.onChange, id = _a.id;
17
- var data = value.data, colWidthConfig = value.colWidthConfig;
18
- var newData = data.map(function (row, rowIdx) {
19
- if (row.isColHeader) { //then remove
20
- var newRow = __assign({}, row);
21
- delete newRow.isColHeader;
22
- return newRow;
23
- }
24
- else { //else add
25
- return __assign(__assign({}, row), (rowIdx === 0 ? { isColHeader: true } : {}));
26
- }
27
- });
28
- onChange &&
29
- onChange(id, { data: newData, colWidthConfig: colWidthConfig });
30
- };
31
- exports.handleToggleRowHeader = handleToggleRowHeader;
@@ -1,31 +0,0 @@
1
- /**
2
- * PENDINGS
3
- * - Ideally should migrate RichTextEditor to Lexical
4
- * - Should run a function that converts rich text to plain text and sends that out in onChange. (like how we do for TitleInput)
5
- * - for backwards compatibility, in the initValueSetting function, we should convert all plain text values to lexical shape & all draftjs shaped values also to lexical shape
6
- * - memoization of cell comps maybe? there is some commented code for the same below..
7
- * - KNOWN ISSUE: when the number input block is used, the component is lagging like mad. might have something to
8
- * do with the memoization issue
9
- */
10
- export function SimpleTable({ id, readOnly, config, value: _value, onChange, defaultColWidth, }: {
11
- id: any;
12
- readOnly: any;
13
- config?: {
14
- noOfCols: number;
15
- noOfRows: number;
16
- headerForRowHeadersColumn: any;
17
- colHeaderData: any;
18
- rowHeaderData: any;
19
- disableAddRow: boolean;
20
- disableRowActionsMenu: boolean;
21
- disablePrimaryActionsMenu: boolean;
22
- blockConfig: {
23
- comp: string;
24
- props: {};
25
- }[];
26
- };
27
- value: any;
28
- onChange: any;
29
- defaultColWidth?: number;
30
- }, ...args: any[]): React.JSX.Element;
31
- import React from "react";