oolib 2.183.0 → 2.185.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);
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export namespace icons {
|
|
|
123
123
|
export { PaperPlaneTilt };
|
|
124
124
|
export { NotePencil };
|
|
125
125
|
export { CircleNotch };
|
|
126
|
+
export { PaintBucket };
|
|
126
127
|
export { OkeGoogleIcon };
|
|
127
128
|
export { LetterH };
|
|
128
129
|
export { IndexIcon };
|
|
@@ -311,6 +312,7 @@ import { ArrowLineDown } from 'phosphor-react';
|
|
|
311
312
|
import { PaperPlaneTilt } from 'phosphor-react';
|
|
312
313
|
import { NotePencil } from 'phosphor-react';
|
|
313
314
|
import { CircleNotch } from 'phosphor-react';
|
|
315
|
+
import { PaintBucket } from 'phosphor-react';
|
|
314
316
|
import { OkeGoogleIcon } from "./custom";
|
|
315
317
|
import { LetterH } from "./custom";
|
|
316
318
|
import { IndexIcon } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -128,6 +128,7 @@ exports.icons = {
|
|
|
128
128
|
PaperPlaneTilt: phosphor_react_1.PaperPlaneTilt,
|
|
129
129
|
NotePencil: phosphor_react_1.NotePencil,
|
|
130
130
|
CircleNotch: phosphor_react_1.CircleNotch,
|
|
131
|
+
PaintBucket: phosphor_react_1.PaintBucket,
|
|
131
132
|
//custom icons
|
|
132
133
|
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
133
134
|
LetterH: custom_1.LetterH,
|
|
@@ -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"
|