oolib 2.195.2 → 2.197.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.
- package/dist/components/Accordion/index.js +4 -3
- package/dist/components/BlockLabel/index.js +0 -1
- package/dist/components/Tooltip/index.js +3 -2
- package/dist/icons/index.d.ts +135 -129
- package/dist/icons/index.js +133 -130
- package/dist/stories/Oolib/components/Tooltip.stories.js +3 -2
- package/dist/stories/v2/components/HeatMapGrid.stories.js +2970 -7
- package/dist/v2/components/Accordion/index.js +4 -3
- package/dist/v2/components/Hints/comps/HintsButton.js +3 -2
- package/dist/v2/components/List/comps/ListItem.js +1 -1
- package/dist/v2/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.js +2 -2
- package/dist/v2/components/TabBar/index.js +2 -2
- package/dist/v2/components/dataviz/BarChart/comps/Legend/index.js +1 -1
- package/dist/v2/components/dataviz/BarChart/index.js +1 -1
- package/dist/v2/components/dataviz/HeatMapGrid/index.d.ts +2 -1
- package/dist/v2/components/dataviz/HeatMapGrid/index.js +67 -61
- package/package.json +2 -2
|
@@ -45,10 +45,11 @@ var react_1 = __importStar(require("react"));
|
|
|
45
45
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
46
46
|
var colors_1 = require("../../themes/colors");
|
|
47
47
|
var ActionMenu_1 = require("../../../components/ActionMenu");
|
|
48
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
49
48
|
var mixins_1 = require("../../../themes/mixins");
|
|
50
49
|
var Typo2_1 = require("../Typo2");
|
|
51
50
|
var useStyleUpdateAfterToggleTransition_1 = require("../../../utils/useStyleUpdateAfterToggleTransition");
|
|
51
|
+
var icons_1 = require("../../../icons");
|
|
52
|
+
var CaretDown = icons_1.icons.CaretDown, DotsThree = icons_1.icons.DotsThree;
|
|
52
53
|
var StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 0.8rem;\n border: 1px solid ", ";\n background: #ffffff;\n box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.06);\n"], ["\n border-radius: 0.8rem;\n border: 1px solid ", ";\n background: #ffffff;\n box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.06);\n"])), colors_1.colors.grey10);
|
|
53
54
|
var StyledHeader = styled_components_1.default.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n padding: 1rem 1.6rem;\n text-align: left;\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n"], ["\n width: 100%;\n padding: 1rem 1.6rem;\n text-align: left;\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n"])));
|
|
54
55
|
var StyledRightHeaderSection = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
@@ -72,7 +73,7 @@ var CustomActionMenuSelectButton = function (_a) {
|
|
|
72
73
|
width: "2rem",
|
|
73
74
|
justifyContent: "center",
|
|
74
75
|
} },
|
|
75
|
-
react_1.default.createElement(
|
|
76
|
+
react_1.default.createElement(DotsThree, { size: 16, style: { pointerEvents: 'none' } })));
|
|
76
77
|
};
|
|
77
78
|
var useCalculateWrapperHeight = function (_a) {
|
|
78
79
|
var isExpanded = _a.isExpanded;
|
|
@@ -117,7 +118,7 @@ var Accordion = function (_a) {
|
|
|
117
118
|
react_1.default.createElement(Typo2_1.UI_BODY_BOLD_SM, null, title)),
|
|
118
119
|
react_1.default.createElement(StyledRightHeaderSection, null,
|
|
119
120
|
react_1.default.createElement(ArrowWrapper, { isExpanded: isExpanded },
|
|
120
|
-
react_1.default.createElement(
|
|
121
|
+
react_1.default.createElement(CaretDown, { size: 16 })),
|
|
121
122
|
actionsConfig && (react_1.default.createElement(ActionMenu_1.ActionMenu, { CustomSelectComp: CustomActionMenuSelectButton, actions: actionsConfig })))),
|
|
122
123
|
react_1.default.createElement(StyledContentWrapper, { height: wrapperHeight, style: { overflow: accordionOverflow }, expandAnimationDuration: expandAnimationDuration },
|
|
123
124
|
react_1.default.createElement(StyledContentInnerWrapper, { ref: wrapperRef }, children))));
|
|
@@ -9,15 +9,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.HintsButton = void 0;
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
13
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
13
|
var Typo2_1 = require("../../Typo2");
|
|
15
14
|
var colors_1 = require("../../../themes/colors");
|
|
15
|
+
var icons_1 = require("../../../../icons");
|
|
16
16
|
var hintHover = colors_1.colors.hintHover, hint = colors_1.colors.hint, white = colors_1.colors.white;
|
|
17
|
+
var Lightbulb = icons_1.icons.Lightbulb;
|
|
17
18
|
var HintsButton = function (_a) {
|
|
18
19
|
var id = _a.id, btnLabel = _a.btnLabel, onClick = _a.onClick;
|
|
19
20
|
return (react_1.default.createElement(StyledButton, { onClick: function () { return onClick(id); } },
|
|
20
|
-
react_1.default.createElement(
|
|
21
|
+
react_1.default.createElement(Lightbulb, { size: 13, weight: "bold", style: { marginBottom: "0.2rem" } }),
|
|
21
22
|
react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, null, btnLabel)));
|
|
22
23
|
};
|
|
23
24
|
exports.HintsButton = HintsButton;
|
|
@@ -34,7 +34,7 @@ var ListItem = function (_a) {
|
|
|
34
34
|
var opIsSelected = function (thisOpData) {
|
|
35
35
|
return value === null || value === void 0 ? void 0 : value.some(function (d) { return d.value === thisOpData.value; });
|
|
36
36
|
};
|
|
37
|
-
return (react_1.default.createElement(styled_1.StyledListItemWrapper, { index: index, isSelected: isSelected, isFocussed: isFocussed, className: "OKE-Dropdown__option", ref: function (el) { return isFocussed && el && scrollFocussedOpIntoView(el); }, onClick: handleClick, S: S, style: { pointerEvents: disabled && "none" } },
|
|
37
|
+
return (react_1.default.createElement(styled_1.StyledListItemWrapper, { index: index, isSelected: isSelected, isFocussed: isFocussed, className: "OKE-Dropdown__option", ref: function (el) { return isFocussed && el && scrollFocussedOpIntoView(el); }, onClick: handleClick, S: S, style: { pointerEvents: disabled && "none", cursor: !disabled && "pointer" } },
|
|
38
38
|
react_1.default.createElement("div", { ref: observerRef, style: {
|
|
39
39
|
display: "flex",
|
|
40
40
|
alignItems: "flex-start",
|
|
@@ -11,7 +11,6 @@ exports.CheckboxInput = void 0;
|
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
12
|
var icons_1 = require("../../../../../../../icons");
|
|
13
13
|
var themes_1 = require("../../../../../../themes");
|
|
14
|
-
var Tags_1 = require("../../../../../Tags");
|
|
15
14
|
var Typo2_1 = require("../../../../../Typo2");
|
|
16
15
|
var styled_1 = require("../../../../styled");
|
|
17
16
|
var utils_1 = require("../../../../utils");
|
|
@@ -19,6 +18,7 @@ var CheckboxButton_1 = require("../CheckboxButton");
|
|
|
19
18
|
var TextLoader_1 = require("../../../../../../../components/LoadersAndProgress/TextLoader");
|
|
20
19
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
21
20
|
var mixins_1 = require("../../../../../../../themes/mixins");
|
|
21
|
+
var Tags_1 = require("../../../../../Tags");
|
|
22
22
|
var CheckSquare = icons_1.icons.CheckSquare, XSquare = icons_1.icons.XSquare;
|
|
23
23
|
var red = themes_1.colors.red, grey40 = themes_1.colors.grey40, grey80 = themes_1.colors.grey80, onSecondary = themes_1.colors.onSecondary, invertRed = themes_1.colors.invertRed;
|
|
24
24
|
var UI_BODY_SM_DF_STYLED = (0, styled_components_1.default)(Typo2_1.UI_BODY_SM_DF)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n white-space: normal;\n"], ["\n ", ";\n white-space: normal;\n"])), (0, mixins_1.clampText)(2));
|
|
@@ -40,7 +40,7 @@ var CheckboxInput = function (_a) {
|
|
|
40
40
|
margin: "-7px -2.8px -7px -3.2px",
|
|
41
41
|
flexShrink: 0,
|
|
42
42
|
} })); };
|
|
43
|
-
return option.loading ? (react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })) : inputStyle === "tagSelect" ? (react_1.default.createElement(Tags_1.
|
|
43
|
+
return option.loading ? (react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })) : inputStyle === "tagSelect" ? (react_1.default.createElement(Tags_1.Tag, { 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 () {
|
|
44
44
|
return !rightWrongResult && !disabled && onClick && onClick(isSelected, option);
|
|
45
45
|
} },
|
|
46
46
|
react_1.default.createElement("div", { style: { alignSelf: "flex-start" } }, rightWrongResult
|
|
@@ -23,10 +23,10 @@ var _EXPORTS_1 = require("../../../utils/_EXPORTS");
|
|
|
23
23
|
var DropdownSingle_1 = require("../../../components/Dropdowns/DropdownSingle");
|
|
24
24
|
var mixins_1 = require("../../../themes/mixins");
|
|
25
25
|
var Typo2_1 = require("../Typo2");
|
|
26
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
27
26
|
var colors_1 = require("../../themes/colors");
|
|
28
27
|
var icons_1 = require("../../../icons");
|
|
29
28
|
var __1 = require("../../..");
|
|
29
|
+
var List = icons_1.icons.List;
|
|
30
30
|
var Base = function (_a) {
|
|
31
31
|
var id = _a.id, options = _a.options, valueProp = _a.value, onChange = _a.onChange, style = _a.style, errorTabs = _a.errorTabs, disabledTabs = _a.disabledTabs, _b = _a.tabBarStyle, tabBarStyle = _b === void 0 ? '1' : _b, saveValueAsString = _a.saveValueAsString, _c = _a.black, black = _c === void 0 ? false : _c, M = _a.M, S = _a.S, _size = _a.size //use any one of these 3
|
|
32
32
|
;
|
|
@@ -86,5 +86,5 @@ var CustomSelectComp = function (_a) {
|
|
|
86
86
|
react_1.default.createElement("div", null,
|
|
87
87
|
react_1.default.createElement(Typo2_1.UI_TAG, { style: { color: colors_1.colors.grey40 } }, title),
|
|
88
88
|
react_1.default.createElement(Typo2_1.UI_BODY_SEMIBOLD, { capitalize: true, style: { color: display ? colors_1.colors.black : colors_1.colors.grey60 } }, display || placeholder)),
|
|
89
|
-
react_1.default.createElement(
|
|
89
|
+
react_1.default.createElement(List, { size: 18, weight: "bold" })));
|
|
90
90
|
};
|
|
@@ -21,7 +21,7 @@ var Typo2_1 = require("../../../../Typo2");
|
|
|
21
21
|
var LegendTooltipGlyph_1 = require("../LegendTooltipGlyph");
|
|
22
22
|
var Legend = function (_a) {
|
|
23
23
|
var data = _a.data, label = _a.label, _b = _a.orientation, orientation = _b === void 0 ? "vertical" : _b;
|
|
24
|
-
return (react_1.default.createElement("div", { style: __assign(__assign({}, (orientation === 'vertical' ? { maxWidth: '200px' } : {})), { padding: "12px", borderRadius: '8px', border: "1px solid ".concat(__1.colors2.grey5), background: "linear-gradient(to bottom, hsla(0, 0%, 96%, 1), hsla(0, 0%, 100%, 0))", maxHeight: orientation === 'vertical' ? '100%' : '150px', overflow: '
|
|
24
|
+
return (react_1.default.createElement("div", { style: __assign(__assign({}, (orientation === 'vertical' ? { maxWidth: '200px' } : {})), { padding: "12px", borderRadius: '8px', border: "1px solid ".concat(__1.colors2.grey5), background: "linear-gradient(to bottom, hsla(0, 0%, 96%, 1), hsla(0, 0%, 100%, 0))", maxHeight: orientation === 'vertical' ? '100%' : '150px', overflow: 'auto' }) },
|
|
25
25
|
label && orientation === 'vertical' && (react_1.default.createElement("div", { style: { paddingBottom: "8px" } },
|
|
26
26
|
react_1.default.createElement(Typo2_1.UI_CAPTION_BOLD_DF, null, label))),
|
|
27
27
|
react_1.default.createElement("div", { style: __assign(__assign({ display: "flex", flexDirection: orientation === "vertical" ? "column" : "row" }, (orientation === 'horizontal' ? { flexWrap: 'wrap' } : {})), { gap: "8px" }) },
|
|
@@ -327,7 +327,7 @@ var BarChart = function (_a) {
|
|
|
327
327
|
// menu options for grouped and stacked
|
|
328
328
|
if (data.length === 0)
|
|
329
329
|
return react_1.default.createElement("div", null, "No data available");
|
|
330
|
-
return (react_1.default.createElement("div", { ref: vizWrapperRef, style: __assign(__assign({}, style), { width: "100%", background: _debug_controls.chartWrapperBgColor, display: 'flex', gap: '8px', flexDirection: orientation === 'vertical' ? 'row' : 'column', position: 'relative', overflow: '
|
|
330
|
+
return (react_1.default.createElement("div", { ref: vizWrapperRef, style: __assign(__assign({}, style), { width: "100%", background: _debug_controls.chartWrapperBgColor, display: 'flex', gap: '8px', flexDirection: orientation === 'vertical' ? 'row' : 'column', position: 'relative', overflow: 'auto' }) },
|
|
331
331
|
react_1.default.createElement("div", { style: { flexGrow: 1, position: 'relative' } },
|
|
332
332
|
react_1.default.createElement(BarChartRenderer, { data: data, dataToSummarize: dataToSummarize, isBreakdown: isBreakdown, breakdownDisplayType: breakdownDisplayType, showSumOfBreakdownValues: false, showPercent: showPercent, showCount: showCount, activeBar: activeBar, setActiveBar: setActiveBar, onClick: onClick, mousePosition: mousePosition, dataMaxValue: dataMaxValue, breakdownCategoryName: breakdownCategoryName }),
|
|
333
333
|
dataToSummarize && (react_1.default.createElement(BarChartRenderer, { data: dataToSummarize,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
export interface HeatMapGridProps {
|
|
3
3
|
data: any;
|
|
4
4
|
valuePath: string | string[];
|
|
@@ -14,6 +14,7 @@ export interface HeatMapGridProps {
|
|
|
14
14
|
breakdownDisplayType?: "grouped" | "stacked";
|
|
15
15
|
colorIdx?: number;
|
|
16
16
|
summarizeAfterIdx?: number;
|
|
17
|
+
style?: CSSProperties;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* expects exactly the same data structure as barcharts - breakdown version
|
|
@@ -117,7 +117,7 @@ var _configs = {
|
|
|
117
117
|
gridGap: 2,
|
|
118
118
|
cellRoundness: 4,
|
|
119
119
|
cellSize: 36,
|
|
120
|
-
axisLabelWidth:
|
|
120
|
+
axisLabelWidth: 200
|
|
121
121
|
};
|
|
122
122
|
var HeatMapCell = function (_a) {
|
|
123
123
|
var value = _a.value, dataMaxValue = _a.dataMaxValue, _b = _a.dataMinValue, dataMinValue = _b === void 0 ? 0 : _b, showPercent = _a.showPercent;
|
|
@@ -150,8 +150,8 @@ var HeatMapCell = function (_a) {
|
|
|
150
150
|
* expects exactly the same data structure as barcharts - breakdown version
|
|
151
151
|
*/
|
|
152
152
|
var HeatMapGrid = function (_a) {
|
|
153
|
-
var _data = _a.data, valuePath = _a.valuePath, tooltipLabelsMapping = _a.tooltipLabelsMapping, tooltipLabelsPath = _a.tooltipLabelsPath, _b = _a.labelPath, labelPath = _b === void 0 ? "name" : _b, onClick = _a.onClick, _c = _a.showCount, showCount = _c === void 0 ? true : _c, _d = _a.showPercent, showPercent = _d === void 0 ? true : _d, _e = _a.colorIdx, colorIdx = _e === void 0 ? 0 : _e, _f = _a.summarizeAfterIdx, summarizeAfterIdx = _f === void 0 ? 5 : _f;
|
|
154
|
-
var
|
|
153
|
+
var _data = _a.data, valuePath = _a.valuePath, tooltipLabelsMapping = _a.tooltipLabelsMapping, tooltipLabelsPath = _a.tooltipLabelsPath, _b = _a.labelPath, labelPath = _b === void 0 ? "name" : _b, onClick = _a.onClick, _c = _a.showCount, showCount = _c === void 0 ? true : _c, _d = _a.showPercent, showPercent = _d === void 0 ? true : _d, _e = _a.colorIdx, colorIdx = _e === void 0 ? 0 : _e, _f = _a.summarizeAfterIdx, summarizeAfterIdx = _f === void 0 ? 5 : _f, _g = _a.style, style = _g === void 0 ? {} : _g;
|
|
154
|
+
var _h = (0, usePrepareData_1.usePrepareData)({
|
|
155
155
|
_data: _data,
|
|
156
156
|
labelPath: labelPath,
|
|
157
157
|
valuePath: valuePath,
|
|
@@ -160,71 +160,77 @@ var HeatMapGrid = function (_a) {
|
|
|
160
160
|
isBreakdown: true,
|
|
161
161
|
showPercent: showPercent,
|
|
162
162
|
summarizeAfterIdx: summarizeAfterIdx,
|
|
163
|
-
}), data =
|
|
164
|
-
return (react_1.default.createElement("div",
|
|
163
|
+
}), data = _h.data, dataMaxValue = _h.dataMaxValue, dataToSummarize = _h.dataToSummarize;
|
|
164
|
+
return (react_1.default.createElement("div", { style: __assign({ display: "grid", gridTemplateColumns: "auto 1fr", gap: _configs.gridGap + 'px', overflow: "auto", alignItems: "end" }, style) },
|
|
165
165
|
react_1.default.createElement("div", { style: {
|
|
166
|
-
display: "
|
|
167
|
-
|
|
168
|
-
gap: _configs.gridGap +
|
|
166
|
+
display: "flex",
|
|
167
|
+
flexDirection: "column",
|
|
168
|
+
gap: _configs.gridGap + "px",
|
|
169
169
|
} },
|
|
170
|
-
react_1.default.createElement("div", { style: {
|
|
170
|
+
react_1.default.createElement("div", { style: { height: _configs.axisLabelWidth + "px" } }),
|
|
171
|
+
data.map(function (d) { return (react_1.default.createElement("div", { style: {
|
|
172
|
+
height: _configs.cellSize + "px",
|
|
173
|
+
textAlign: "right",
|
|
171
174
|
display: "flex",
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
alignItems: "center",
|
|
176
|
+
justifyContent: "flex-end",
|
|
174
177
|
} },
|
|
175
|
-
react_1.default.createElement(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
} },
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
178
|
+
react_1.default.createElement(Typo2_1.UI_CAPTION_SEMIBOLD_DF, { style: {
|
|
179
|
+
width: "fit-content",
|
|
180
|
+
maxWidth: _configs.axisLabelWidth + "px",
|
|
181
|
+
height: "2.4em",
|
|
182
|
+
lineHeight: "1.2em",
|
|
183
|
+
overflow: "hidden",
|
|
184
|
+
wordBreak: "break-word",
|
|
185
|
+
} }, d[0].labels.name.length > 50 ? d[0].labels.name.substring(0, 50) + "..." : d[0].labels.name))); })),
|
|
186
|
+
react_1.default.createElement("div", { style: {
|
|
187
|
+
display: "flex",
|
|
188
|
+
flexDirection: "column",
|
|
189
|
+
gap: _configs.gridGap + "px",
|
|
190
|
+
overflowX: "auto",
|
|
191
|
+
} },
|
|
189
192
|
react_1.default.createElement("div", { style: {
|
|
190
193
|
display: "flex",
|
|
191
|
-
|
|
194
|
+
alignItems: "center",
|
|
192
195
|
gap: _configs.gridGap + "px",
|
|
196
|
+
} }, data[0].map(function (dd) { return (react_1.default.createElement("div", { style: {
|
|
197
|
+
width: _configs.cellSize + "px",
|
|
198
|
+
height: _configs.axisLabelWidth + "px",
|
|
199
|
+
display: "flex",
|
|
200
|
+
alignItems: "flex-end",
|
|
201
|
+
textWrap: "nowrap",
|
|
202
|
+
justifyContent: 'center',
|
|
203
|
+
position: "relative",
|
|
204
|
+
overflow: "visible",
|
|
205
|
+
flexShrink: 0,
|
|
193
206
|
} },
|
|
194
|
-
react_1.default.createElement(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
gap: _configs.gridGap + "px",
|
|
223
|
-
} }, d.map(function (dd) {
|
|
224
|
-
// console.log({
|
|
225
|
-
// color: mapValueToColor(dd.labels.count, 0, dataMaxValue),
|
|
226
|
-
// });
|
|
227
|
-
return react_1.default.createElement(HeatMapCell, { showPercent: false, dataMaxValue: dataMaxValue, value: dd });
|
|
228
|
-
}))); })))));
|
|
207
|
+
react_1.default.createElement(Typo2_1.UI_CAPTION_SEMIBOLD_DF, { style: {
|
|
208
|
+
width: _configs.axisLabelWidth + "px",
|
|
209
|
+
height: "32px",
|
|
210
|
+
position: "absolute",
|
|
211
|
+
bottom: '-16px',
|
|
212
|
+
left: (_configs.cellSize / 2) + 'px',
|
|
213
|
+
transformOrigin: "left center",
|
|
214
|
+
transform: "rotate(-90deg)",
|
|
215
|
+
// Multi-line
|
|
216
|
+
whiteSpace: "normal",
|
|
217
|
+
overflow: "hidden",
|
|
218
|
+
display: "-webkit-box",
|
|
219
|
+
WebkitBoxOrient: "vertical",
|
|
220
|
+
WebkitLineClamp: 2,
|
|
221
|
+
textOverflow: "ellipsis",
|
|
222
|
+
lineHeight: "16px",
|
|
223
|
+
} }, dd.labels.tooltipLabel))); })),
|
|
224
|
+
data.map(function (d) { return (react_1.default.createElement("div", { style: {
|
|
225
|
+
display: "flex",
|
|
226
|
+
alignItems: "center",
|
|
227
|
+
gap: _configs.gridGap + "px",
|
|
228
|
+
// flexShrink: 0,
|
|
229
|
+
} }, d.map(function (dd) {
|
|
230
|
+
// console.log({
|
|
231
|
+
// color: mapValueToColor(dd.labels.count, 0, dataMaxValue),
|
|
232
|
+
// });
|
|
233
|
+
return react_1.default.createElement(HeatMapCell, { showPercent: false, dataMaxValue: dataMaxValue, value: dd });
|
|
234
|
+
}))); }))));
|
|
229
235
|
};
|
|
230
236
|
exports.HeatMapGrid = HeatMapGrid;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oolib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.197.0",
|
|
4
4
|
"description": " OKE Component Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"@lexical/react": "^0.13.1",
|
|
90
90
|
"@lexical/table": "^0.13.1",
|
|
91
91
|
"@material/material-color-utilities": "^0.3.0",
|
|
92
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
92
93
|
"@react-hook/resize-observer": "^1.2.6",
|
|
93
94
|
"babel-polyfill": "^6.26.0",
|
|
94
95
|
"d3": "^7.8.5",
|
|
@@ -103,7 +104,6 @@
|
|
|
103
104
|
"lodash": "^4.17.21",
|
|
104
105
|
"modularscale-js": "^3.0.1",
|
|
105
106
|
"moment": "^2.24.0",
|
|
106
|
-
"phosphor-react": "^1.4.1",
|
|
107
107
|
"react-datepicker": "^7.6.0",
|
|
108
108
|
"react-player": "^2.12.0",
|
|
109
109
|
"recharts": "^2.15.3"
|