oolib 2.183.0 → 2.184.0
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.
|
@@ -78,6 +78,8 @@ var convertRowHeaderConfigToCellData_1 = require("./utils/convertRowHeaderConfig
|
|
|
78
78
|
var prepInitValueFromConfigIfNoValue_1 = require("./utils/prepInitValueFromConfigIfNoValue");
|
|
79
79
|
var DropdownSingle_1 = require("../Dropdowns/DropdownSingle");
|
|
80
80
|
var TextInputs_1 = require("../TextInputs");
|
|
81
|
+
var icons_1 = require("../../icons");
|
|
82
|
+
var ArrowDown = icons_1.icons.ArrowDown;
|
|
81
83
|
var greyColor100 = themes_1.colors.greyColor100;
|
|
82
84
|
/**
|
|
83
85
|
* PENDINGS
|
|
@@ -92,6 +94,7 @@ function SimpleTable(_a) {
|
|
|
92
94
|
var id = _a.id, readOnly = _a.readOnly, _b = _a.config, config = _b === void 0 ? {
|
|
93
95
|
noOfCols: 3,
|
|
94
96
|
noOfRows: 3,
|
|
97
|
+
headerForRowHeadersColumn: undefined,
|
|
95
98
|
colHeaderData: undefined,
|
|
96
99
|
rowHeaderData: undefined,
|
|
97
100
|
disableAddRow: false,
|
|
@@ -254,18 +257,24 @@ function SimpleTable(_a) {
|
|
|
254
257
|
var StyledWrapper = row.isColHeader
|
|
255
258
|
? styled_1.StyledSimpleTableHeader
|
|
256
259
|
: styled_1.StyledSimpleTableRow;
|
|
260
|
+
var CellCompNameForHeaderForRowHeadersColumn = function () { return RichTextEditor || react_1.default.createElement("div", null, "No Comp Name"); };
|
|
257
261
|
return (react_1.default.createElement(StyledWrapper, { actionsActiveOnRow: actionsActiveOnRow,
|
|
258
262
|
// onClick={() => row.link && history.push(row.link)}
|
|
259
263
|
style: { display: "flex" }, readOnly: readOnly, rowIdx: rowIdx, key: row.id },
|
|
260
|
-
config.rowHeaderData &&
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
config.rowHeaderData && (row.isColHeader && config.headerForRowHeadersColumn !== undefined ? (react_1.default.createElement(styled_1.StyledSimpleTableHeaderCell, { key: "cornerHeaderCell", id: "kp_table__cell__cornerHeaderCell", readOnly: true, style: {
|
|
265
|
+
color: greyColor100,
|
|
266
|
+
width: value.colWidthConfig["col_corner"] || defaultColWidth + 'px',
|
|
267
|
+
} },
|
|
268
|
+
react_1.default.createElement("div", { style: { display: "flex", gap: "0.5rem" } },
|
|
269
|
+
react_1.default.createElement(CellCompNameForHeaderForRowHeadersColumn, __assign({}, CellContentBlockDefaultProps.TextInput, { id: "kp_table_cell__cornerHeaderCell__rich_input", value: config.headerForRowHeadersColumn, readOnly: true })),
|
|
270
|
+
react_1.default.createElement(ArrowDown, null)))) : (genCell({
|
|
271
|
+
cell: (0, convertRowHeaderConfigToCellData_1.convertRowHeaderConfigToCellData)({
|
|
272
|
+
rowHeaderData: config.rowHeaderData,
|
|
273
|
+
convertToRichText: convertToRichText,
|
|
274
|
+
rowIdx: rowIdx
|
|
268
275
|
}),
|
|
276
|
+
enableColResizeActions: false
|
|
277
|
+
}))),
|
|
269
278
|
row.cellData.map(function (cell, cellIdx) { return genCell({ cell: cell, cellIdx: cellIdx, rowIdx: rowIdx }); })));
|
|
270
279
|
};
|
|
271
280
|
var fullWidthCompWrapper = (0, react_1.useRef)(null);
|
|
@@ -35,7 +35,7 @@ var CheckboxInput = function (_a) {
|
|
|
35
35
|
return option.loading ? (react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })) : inputStyle === "tagSelect" ? (react_1.default.createElement(Tags_1.TagSelect, { isSelected: isSelected, invert: invert, disabled: disabled, onClick: function () { return !disabled && onClick(isSelected, option); }, display: option.display, value: option.value, style: { alignSelf: "flex-start" } })) : (react_1.default.createElement(styled_1.StyledOption, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S, className: className, onClick: function () {
|
|
36
36
|
return !rightWrongResult && !disabled && onClick && onClick(isSelected, option);
|
|
37
37
|
} },
|
|
38
|
-
react_1.default.createElement("div", { style: { alignSelf: "flex-start"
|
|
38
|
+
react_1.default.createElement("div", { style: { alignSelf: "flex-start" } }, rightWrongResult
|
|
39
39
|
? ["markCorrect", "revealCorrect"].includes(markingCommand)
|
|
40
40
|
? genCheckSquare()
|
|
41
41
|
: markingCommand === "markWrong"
|