oolib 2.208.4 → 2.209.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/icons/custom/index.d.ts +8 -0
- package/dist/icons/custom/index.js +26 -1
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +3 -1
- package/dist/v2/components/Dropdowns/comps/SelectTagsInput/index.js +2 -3
- package/dist/v2/components/Dropdowns/comps/SelectTagsInput/styled.js +4 -1
- package/dist/v2/components/dataviz/HeatMapGrid/utils/usePrepareHeatMapData.js +12 -7
- package/package.json +1 -1
|
@@ -71,3 +71,11 @@ export declare const Learning: (props: any) => React.JSX.Element;
|
|
|
71
71
|
export declare const Like: (props: any) => React.JSX.Element;
|
|
72
72
|
export declare const Reactions: (props: any) => React.JSX.Element;
|
|
73
73
|
export declare const WarningDiamond: (props: any) => React.JSX.Element;
|
|
74
|
+
export declare const TagsSolid: ({ fill, ...props }: {
|
|
75
|
+
[x: string]: any;
|
|
76
|
+
fill?: string;
|
|
77
|
+
}) => React.JSX.Element;
|
|
78
|
+
export declare const FolderSolid: ({ fill, ...props }: {
|
|
79
|
+
[x: string]: any;
|
|
80
|
+
fill?: string;
|
|
81
|
+
}) => React.JSX.Element;
|
|
@@ -10,12 +10,23 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
13
24
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
26
|
};
|
|
16
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
28
|
exports.UKFlag = exports.MalaysiaFlag = exports.ColombiaFlag = exports.BrazilFlag = exports.AudioEmbedIcon = exports.VideoEmbedIcon = exports.Attachment2 = exports.PDFIcon = exports.RichFormatToolOrderedList = exports.RichFormatToolUnorderedList = exports.RichFormatToolH2 = exports.RichFormatToolBlockquote = exports.LinkIcon = exports.UnderlineBtn = exports.ItalicBtn = exports.BoldBtn = exports.SettingsSM = exports.Close_S = exports.UploadImage = exports.KebabMenu = exports.Website_solid_SM = exports.Phone_solid_SM = exports.Mail_solid_SM = exports.Youtube_solid_SM = exports.Instagram_solid_SM = exports.Twitter_solid_SM = exports.Linkedin_solid_SM = exports.Facebook_solid_SM = exports.EditSM = exports.AddXS = exports.UploadSM = exports.Download = exports.Download__nofill = exports.Index = exports.Person14 = exports.Location14 = exports.ModalBulbIcon = exports.SenegalFlag = exports.KenyaFlag = exports.NigeriaFlag = exports.IndiaFlag = exports.BadgeVetted = exports.BadgeMod = exports.BadgeSuperAdmin = exports.BadgeAdmin = exports.OkeGoogleIcon = exports.LetterH = exports.LanguageIcon = exports.MultipleImages = exports.IndexIcon = void 0;
|
|
18
|
-
exports.WarningDiamond = exports.Reactions = exports.Like = exports.Learning = exports.Inspiring = exports.Celebrate = exports.ArgentinaFlag = exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = exports.USAFlag = void 0;
|
|
29
|
+
exports.FolderSolid = exports.TagsSolid = exports.WarningDiamond = exports.Reactions = exports.Like = exports.Learning = exports.Inspiring = exports.Celebrate = exports.ArgentinaFlag = exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = exports.USAFlag = void 0;
|
|
19
30
|
var react_1 = __importDefault(require("react"));
|
|
20
31
|
var themes_1 = require("../../themes");
|
|
21
32
|
var DisplayIcon_1 = require("../../utils/comps/DisplayIcon");
|
|
@@ -504,3 +515,17 @@ var WarningDiamond = function (props) {
|
|
|
504
515
|
react_1.default.createElement("rect", { width: "12", height: "12", fill: "white" })))));
|
|
505
516
|
};
|
|
506
517
|
exports.WarningDiamond = WarningDiamond;
|
|
518
|
+
var TagsSolid = function (_a) {
|
|
519
|
+
var _b = _a.fill, fill = _b === void 0 ? "#C9E2FC" : _b, props = __rest(_a, ["fill"]);
|
|
520
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.size || "20", height: props.size || "20", fill: "none", viewBox: "0 0 20 20" },
|
|
521
|
+
react_1.default.createElement("path", { fill: fill, d: "m18.567 11.953-6.614 6.614a.625.625 0 0 1-.883 0l-7.762-7.76a.63.63 0 0 1-.183-.44V3.124h7.241c.166 0 .325.066.442.183l7.76 7.76a.626.626 0 0 1 0 .885" }),
|
|
522
|
+
react_1.default.createElement("path", { fill: "#000000CC", fillOpacity: "0.8", d: "M19.009 10.625 11.25 2.866a1.24 1.24 0 0 0-.884-.366H3.125a.625.625 0 0 0-.625.625v7.241a1.24 1.24 0 0 0 .366.884l7.759 7.759a1.25 1.25 0 0 0 1.768 0l6.616-6.616a1.25 1.25 0 0 0 0-1.768m-7.5 7.5L3.75 10.366V3.75h6.616l7.759 7.759zM7.5 6.563a.938.938 0 1 1-1.875 0 .938.938 0 0 1 1.875 0" })));
|
|
523
|
+
};
|
|
524
|
+
exports.TagsSolid = TagsSolid;
|
|
525
|
+
var FolderSolid = function (_a) {
|
|
526
|
+
var _b = _a.fill, fill = _b === void 0 ? "#C9E2FC" : _b, props = __rest(_a, ["fill"]);
|
|
527
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.size || "20", height: props.size || "20", fill: "none", viewBox: "0 0 20 20" },
|
|
528
|
+
react_1.default.createElement("path", { fill: fill, d: "M17.5 6.875v8.82a.555.555 0 0 1-.555.555H3.125a.625.625 0 0 1-.625-.625V5a.625.625 0 0 1 .625-.625h4.166c.136 0 .267.044.375.125L10 6.25h6.875a.625.625 0 0 1 .625.625" }),
|
|
529
|
+
react_1.default.createElement("path", { fill: "#000000CC", fillOpacity: "0.8", d: "M16.875 5.625h-6.666L8.04 4a1.26 1.26 0 0 0-.75-.25H3.125A1.25 1.25 0 0 0 1.875 5v10.625a1.25 1.25 0 0 0 1.25 1.25h13.82a1.18 1.18 0 0 0 1.18-1.18v-8.82a1.25 1.25 0 0 0-1.25-1.25m0 10H3.125V5h4.166l2.334 1.75c.108.081.24.125.375.125h6.875z" })));
|
|
530
|
+
};
|
|
531
|
+
exports.FolderSolid = FolderSolid;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -197,6 +197,8 @@ export namespace icons {
|
|
|
197
197
|
export { Like };
|
|
198
198
|
export { Reactions };
|
|
199
199
|
export { WarningDiamond };
|
|
200
|
+
export { TagsSolid };
|
|
201
|
+
export { FolderSolid };
|
|
200
202
|
}
|
|
201
203
|
import { PencilSimpleIcon as PencilSimple } from '@phosphor-icons/react';
|
|
202
204
|
import { PencilLineIcon as PencilLine } from '@phosphor-icons/react';
|
|
@@ -396,3 +398,5 @@ import { Learning } from "./custom";
|
|
|
396
398
|
import { Like } from "./custom";
|
|
397
399
|
import { Reactions } from "./custom";
|
|
398
400
|
import { WarningDiamond } from "./custom";
|
|
401
|
+
import { TagsSolid } from "./custom";
|
|
402
|
+
import { FolderSolid } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -202,5 +202,7 @@ exports.icons = {
|
|
|
202
202
|
Learning: custom_1.Learning,
|
|
203
203
|
Like: custom_1.Like,
|
|
204
204
|
Reactions: custom_1.Reactions,
|
|
205
|
-
WarningDiamond: custom_1.WarningDiamond
|
|
205
|
+
WarningDiamond: custom_1.WarningDiamond,
|
|
206
|
+
TagsSolid: custom_1.TagsSolid,
|
|
207
|
+
FolderSolid: custom_1.FolderSolid
|
|
206
208
|
};
|
|
@@ -77,9 +77,8 @@ var SelectTagsInput = function (_a) {
|
|
|
77
77
|
}
|
|
78
78
|
}, [focusSelectTagsInput]);
|
|
79
79
|
var genSelectComp = function () {
|
|
80
|
-
return (react_1.default.createElement(styled_1.StyledSelectTagsWrapper, { style: style, disabled: disabled, className: "".concat(isFocussed ? "focussed" : "") },
|
|
81
|
-
react_1.default.createElement("div", { style: { display: "flex", gap: "0.4rem", alignItems: "center"
|
|
82
|
-
" ",
|
|
80
|
+
return (react_1.default.createElement(styled_1.StyledSelectTagsWrapper, { style: style, disabled: disabled, className: "".concat(isFocussed ? "focussed" : ""), multi: single_multi === "multi" },
|
|
81
|
+
react_1.default.createElement("div", { style: { display: "flex", gap: "0.4rem", alignItems: "center" } },
|
|
83
82
|
single_multi === "multi" &&
|
|
84
83
|
react_1.default.createElement(Buttons_1.ButtonTertiaryCompact, { onClick: function () { return handleClearAll(); }, children: "Clear all", disabled: !value || !value.length }),
|
|
85
84
|
value &&
|
|
@@ -9,5 +9,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.StyledSelectTagsWrapper = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.StyledSelectTagsWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap:
|
|
12
|
+
exports.StyledSelectTagsWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n"])), function (_a) {
|
|
13
|
+
var multi = _a.multi;
|
|
14
|
+
return multi ? "0.8rem" : "0.6rem";
|
|
15
|
+
});
|
|
13
16
|
var templateObject_1;
|
|
@@ -33,14 +33,16 @@ var usePrepareHeatMapData = function (_a) {
|
|
|
33
33
|
if (Array.isArray(tooltipLabelsPath)) {
|
|
34
34
|
var labelPath_1 = tooltipLabelsPath[pathIndex];
|
|
35
35
|
if (labelPath_1) {
|
|
36
|
-
|
|
36
|
+
var labelValue = (0, _EXPORTS_1.getVal)(row, labelPath_1);
|
|
37
|
+
columnLabel = Array.isArray(labelValue) ? labelValue[0] : labelValue || "Column ".concat(pathIndex);
|
|
37
38
|
}
|
|
38
39
|
else {
|
|
39
40
|
columnLabel = "Column ".concat(pathIndex);
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
else {
|
|
43
|
-
|
|
44
|
+
var labelValue = (0, _EXPORTS_1.getVal)(row, tooltipLabelsPath);
|
|
45
|
+
columnLabel = Array.isArray(labelValue) ? labelValue[0] : labelValue || "Column ".concat(pathIndex);
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
else if (tooltipLabelsMapping) {
|
|
@@ -49,12 +51,15 @@ var usePrepareHeatMapData = function (_a) {
|
|
|
49
51
|
else {
|
|
50
52
|
columnLabel = path;
|
|
51
53
|
}
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
if (!
|
|
55
|
-
|
|
54
|
+
// Only add to cellValues if this column doesn't already exist for this row
|
|
55
|
+
// This prevents overwriting values when the same column appears multiple times
|
|
56
|
+
if (!cellValues.has(columnLabel)) {
|
|
57
|
+
cellValues.set(columnLabel, value);
|
|
58
|
+
if (!columnMap.has(columnLabel)) {
|
|
59
|
+
columnMap.set(columnLabel, columnMap.size);
|
|
60
|
+
}
|
|
61
|
+
rowTotal += value;
|
|
56
62
|
}
|
|
57
|
-
rowTotal += value;
|
|
58
63
|
}
|
|
59
64
|
});
|
|
60
65
|
rowTotals.push(rowTotal);
|