blixify-ui-web 0.4.86 → 0.4.88
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/lib/components/chart/areaChart/index.d.ts +40 -0
- package/lib/components/chart/areaChart/index.d.ts.map +1 -0
- package/lib/components/chart/areaChart/index.js +190 -0
- package/lib/components/chart/areaChart/index.js.map +1 -0
- package/lib/components/chart/boxPlotChart/index.d.ts +34 -0
- package/lib/components/chart/boxPlotChart/index.d.ts.map +1 -0
- package/lib/components/chart/boxPlotChart/index.js +189 -0
- package/lib/components/chart/boxPlotChart/index.js.map +1 -0
- package/lib/components/chart/bubbleChart/index.d.ts +36 -0
- package/lib/components/chart/bubbleChart/index.d.ts.map +1 -0
- package/lib/components/chart/bubbleChart/index.js +195 -0
- package/lib/components/chart/bubbleChart/index.js.map +1 -0
- package/lib/components/chart/heatmapChart/index.d.ts +34 -0
- package/lib/components/chart/heatmapChart/index.d.ts.map +1 -0
- package/lib/components/chart/heatmapChart/index.js +195 -0
- package/lib/components/chart/heatmapChart/index.js.map +1 -0
- package/lib/components/chart/polarAreaChart/index.d.ts +34 -0
- package/lib/components/chart/polarAreaChart/index.d.ts.map +1 -0
- package/lib/components/chart/polarAreaChart/index.js +188 -0
- package/lib/components/chart/polarAreaChart/index.js.map +1 -0
- package/lib/components/chart/treemapChart/index.d.ts +35 -0
- package/lib/components/chart/treemapChart/index.d.ts.map +1 -0
- package/lib/components/chart/treemapChart/index.js +181 -0
- package/lib/components/chart/treemapChart/index.js.map +1 -0
- package/lib/components/data/dataReference/index.d.ts +1 -0
- package/lib/components/data/dataReference/index.d.ts.map +1 -1
- package/lib/components/data/dataReference/index.js +1 -1
- package/lib/components/data/dataReference/index.js.map +1 -1
- package/lib/components/index.d.ts +7 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +16 -4
- package/lib/components/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
+
function step(op) {
|
|
54
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
56
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
+
switch (op[0]) {
|
|
59
|
+
case 0: case 1: t = op; break;
|
|
60
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
+
default:
|
|
64
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
+
if (t[2]) _.ops.pop();
|
|
69
|
+
_.trys.pop(); continue;
|
|
70
|
+
}
|
|
71
|
+
op = body.call(thisArg, _);
|
|
72
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
+
exports.BubbleChart = void 0;
|
|
78
|
+
var react_1 = __importStar(require("react"));
|
|
79
|
+
require("../../../index.css");
|
|
80
|
+
var link_1 = require("../../structure/link");
|
|
81
|
+
var DateRange_1 = require("../DateRange");
|
|
82
|
+
var BubbleChart = /** @class */ (function (_super) {
|
|
83
|
+
__extends(BubbleChart, _super);
|
|
84
|
+
function BubbleChart() {
|
|
85
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
86
|
+
_this.state = {
|
|
87
|
+
apexModule: null,
|
|
88
|
+
colors: [],
|
|
89
|
+
};
|
|
90
|
+
_this.componentDidMount = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
91
|
+
var reactApexChart, colors, propColors, primaryColor;
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
switch (_a.label) {
|
|
94
|
+
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("react-apexcharts")); })];
|
|
95
|
+
case 1:
|
|
96
|
+
reactApexChart = _a.sent();
|
|
97
|
+
colors = undefined;
|
|
98
|
+
propColors = this.props.colors;
|
|
99
|
+
primaryColor = localStorage.getItem("localChartColors");
|
|
100
|
+
primaryColor = primaryColor ? JSON.parse(primaryColor) : primaryColor;
|
|
101
|
+
if (propColors && propColors.length > 0)
|
|
102
|
+
colors = propColors;
|
|
103
|
+
else if (primaryColor)
|
|
104
|
+
colors = primaryColor;
|
|
105
|
+
this.setState({
|
|
106
|
+
apexModule: reactApexChart.default,
|
|
107
|
+
colors: colors,
|
|
108
|
+
});
|
|
109
|
+
return [2 /*return*/];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}); };
|
|
113
|
+
_this.renderChart = function () {
|
|
114
|
+
var _a;
|
|
115
|
+
var APEXModule = _this.state.apexModule;
|
|
116
|
+
var borderColor = _this.renderDarkModeSettings().borderColor;
|
|
117
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, APEXModule && (react_1.default.createElement(APEXModule, { options: {
|
|
118
|
+
grid: {
|
|
119
|
+
borderColor: borderColor,
|
|
120
|
+
},
|
|
121
|
+
dataLabels: {
|
|
122
|
+
enabled: (_a = _this.props.showDataLabel) !== null && _a !== void 0 ? _a : false,
|
|
123
|
+
formatter: function (_, opts) {
|
|
124
|
+
return opts.w.globals.seriesNames[opts.seriesIndex];
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
chart: {
|
|
128
|
+
foreColor: _this.props.darkMode ? "#FFFFFF" : undefined,
|
|
129
|
+
toolbar: {
|
|
130
|
+
show: _this.props.showToolbar,
|
|
131
|
+
},
|
|
132
|
+
events: {
|
|
133
|
+
click: function (_event, _chartContext, config) {
|
|
134
|
+
var _a, _b;
|
|
135
|
+
if (config.dataPointIndex !== -1) {
|
|
136
|
+
var data = config.w.globals.series[config.seriesIndex][config.dataPointIndex];
|
|
137
|
+
(_b = (_a = _this.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, data.x, data.y, data.z, data.name);
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
colors: _this.state.colors,
|
|
143
|
+
xaxis: {
|
|
144
|
+
type: "numeric",
|
|
145
|
+
title: {
|
|
146
|
+
text: "Time Spent (minutes)",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
yaxis: {
|
|
150
|
+
title: {
|
|
151
|
+
text: "Page Views",
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
plotOptions: {
|
|
155
|
+
bubble: {
|
|
156
|
+
minBubbleRadius: 5,
|
|
157
|
+
maxBubbleRadius: 50,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
}, series: [
|
|
161
|
+
{
|
|
162
|
+
name: _this.props.seriesName || "Pages",
|
|
163
|
+
data: _this.props.seriesData || [],
|
|
164
|
+
},
|
|
165
|
+
], type: "bubble", height: _this.props.chartSize ? _this.props.chartSize : "280" }))));
|
|
166
|
+
};
|
|
167
|
+
_this.renderDarkModeSettings = function () {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
var bgColor = "bg-white";
|
|
170
|
+
if (_this.props.darkMode) {
|
|
171
|
+
bgColor = (_a = _this.props.darkModeBg) !== null && _a !== void 0 ? _a : "bg-gray-900";
|
|
172
|
+
}
|
|
173
|
+
var textColor = _this.props.darkMode ? "text-white" : "text-gray-700";
|
|
174
|
+
var borderColor = (_b = _this.props.borderColor) !== null && _b !== void 0 ? _b : "#e7e7e7";
|
|
175
|
+
return { bgColor: bgColor, textColor: textColor, borderColor: borderColor };
|
|
176
|
+
};
|
|
177
|
+
return _this;
|
|
178
|
+
}
|
|
179
|
+
BubbleChart.prototype.render = function () {
|
|
180
|
+
var _a = this.renderDarkModeSettings(), bgColor = _a.bgColor, textColor = _a.textColor;
|
|
181
|
+
var defaultClass = "flex flex-col justify-center ".concat(bgColor, " overflow-hidden shadow rounded-lg pl-4 pb-3 w-full ");
|
|
182
|
+
if (this.props.containerStyle)
|
|
183
|
+
defaultClass += this.props.containerStyle;
|
|
184
|
+
return !this.props.chartOnly ? (react_1.default.createElement("div", { className: defaultClass },
|
|
185
|
+
react_1.default.createElement("div", { className: "ml-2 pr-5 my-4 flex flex-row items-center" },
|
|
186
|
+
react_1.default.createElement("div", { className: "flex-1 " }, this.props.newTabUrl ? (react_1.default.createElement(link_1.Link, { href: this.props.newTabUrl, linkType: this.props.linkType, custom: this.props.custom },
|
|
187
|
+
react_1.default.createElement("h3", { className: "text-lg truncate font-medium ".concat(textColor) }, this.props.title))) : (react_1.default.createElement("h3", { className: "text-lg truncate font-medium ".concat(textColor) }, this.props.title))),
|
|
188
|
+
this.props.tool),
|
|
189
|
+
react_1.default.createElement("div", { className: "mr-4 " }, this.renderChart()),
|
|
190
|
+
this.props.dateRangeVisible && (react_1.default.createElement(DateRange_1.DateRange, { className: "px-3", customDate: this.props.customDate, onChangeDate: this.props.onChangeDate, darkMode: this.props.darkMode })))) : (react_1.default.createElement("div", { className: this.props.containerStyle }, this.renderChart()));
|
|
191
|
+
};
|
|
192
|
+
return BubbleChart;
|
|
193
|
+
}(react_1.Component));
|
|
194
|
+
exports.BubbleChart = BubbleChart;
|
|
195
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/chart/bubbleChart/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,8BAA4B;AAC5B,6CAAuD;AAEvD,0CAAyC;AAoBzC;IAAiC,+BAAgB;IAAjD;;QACE,WAAK,GAAG;YACN,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,EAAE;SACX,CAAC;QAEF,uBAAiB,GAAG;;;;4BACK,sFAAa,kBAAkB,QAAC;;wBAAjD,cAAc,GAAG,SAAgC;wBAEnD,MAAM,GAAQ,SAAS,CAAC;wBACtB,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;wBACjC,YAAY,GAAG,Y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AAE,IAAI,CAAC,WAAW,EAAE,CAAO;YAChD,IAAI,CAAC,KAAK,CAAC,gBAAgB,IAAI,CAC9B,8BAAC,qBAAS,IACR,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EACrC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAC7B,CACH,CACG,CACP,CAAC,CAAC,CAAC,CACF,uCAAK,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,IAAG,IAAI,CAAC,WAAW,EAAE,CAAO,CACtE,CAAC;IACJ,CAAC;IACH,kBAAC;AAAD,CAAC,AA5ID,CAAiC,iBAAS,GA4IzC;AA5IY,kCAAW"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import "../../../index.css";
|
|
3
|
+
import { LinkProps } from "../../structure/link";
|
|
4
|
+
import { ChartUtils } from "../ChartUtils";
|
|
5
|
+
interface SeriesItem {
|
|
6
|
+
name: string;
|
|
7
|
+
data: number[];
|
|
8
|
+
}
|
|
9
|
+
interface Props extends ChartUtils, LinkProps {
|
|
10
|
+
title: string;
|
|
11
|
+
multiSeriesData?: SeriesItem[];
|
|
12
|
+
categories?: string[] | number[];
|
|
13
|
+
showDataLabel?: boolean;
|
|
14
|
+
showToolbar?: boolean;
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
newTabUrl?: string;
|
|
17
|
+
onClick?: (x: string, y: string, value: number) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare class HeatmapChart extends Component<Props> {
|
|
20
|
+
state: {
|
|
21
|
+
apexModule: null;
|
|
22
|
+
colors: never[];
|
|
23
|
+
};
|
|
24
|
+
componentDidMount: () => Promise<void>;
|
|
25
|
+
renderChart: () => React.JSX.Element;
|
|
26
|
+
renderDarkModeSettings: () => {
|
|
27
|
+
bgColor: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
};
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/heatmapChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAQ,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,UAAU,KAAM,SAAQ,UAAU,EAAE,SAAS;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAED,qBAAa,YAAa,SAAQ,SAAS,CAAC,KAAK,CAAC;IAChD,KAAK;;;MAGH;IAEF,iBAAiB,sBAcf;IAEF,WAAW,0BAgET;IAEF,sBAAsB;;;;MAQpB;IAEF,MAAM;CAyCP"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
+
function step(op) {
|
|
54
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
56
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
+
switch (op[0]) {
|
|
59
|
+
case 0: case 1: t = op; break;
|
|
60
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
+
default:
|
|
64
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
+
if (t[2]) _.ops.pop();
|
|
69
|
+
_.trys.pop(); continue;
|
|
70
|
+
}
|
|
71
|
+
op = body.call(thisArg, _);
|
|
72
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
+
exports.HeatmapChart = void 0;
|
|
78
|
+
var react_1 = __importStar(require("react"));
|
|
79
|
+
require("../../../index.css");
|
|
80
|
+
var link_1 = require("../../structure/link");
|
|
81
|
+
var DateRange_1 = require("../DateRange");
|
|
82
|
+
var HeatmapChart = /** @class */ (function (_super) {
|
|
83
|
+
__extends(HeatmapChart, _super);
|
|
84
|
+
function HeatmapChart() {
|
|
85
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
86
|
+
_this.state = {
|
|
87
|
+
apexModule: null,
|
|
88
|
+
colors: [],
|
|
89
|
+
};
|
|
90
|
+
_this.componentDidMount = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
91
|
+
var reactApexChart, colors, propColors, primaryColor;
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
switch (_a.label) {
|
|
94
|
+
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("react-apexcharts")); })];
|
|
95
|
+
case 1:
|
|
96
|
+
reactApexChart = _a.sent();
|
|
97
|
+
colors = undefined;
|
|
98
|
+
propColors = this.props.colors;
|
|
99
|
+
primaryColor = localStorage.getItem("localChartColors");
|
|
100
|
+
primaryColor = primaryColor ? JSON.parse(primaryColor) : primaryColor;
|
|
101
|
+
if (propColors && propColors.length > 0)
|
|
102
|
+
colors = propColors;
|
|
103
|
+
else if (primaryColor)
|
|
104
|
+
colors = primaryColor;
|
|
105
|
+
this.setState({
|
|
106
|
+
apexModule: reactApexChart.default,
|
|
107
|
+
colors: colors,
|
|
108
|
+
});
|
|
109
|
+
return [2 /*return*/];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}); };
|
|
113
|
+
_this.renderChart = function () {
|
|
114
|
+
var _a;
|
|
115
|
+
var APEXModule = _this.state.apexModule;
|
|
116
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, APEXModule && (react_1.default.createElement(APEXModule, { options: {
|
|
117
|
+
dataLabels: {
|
|
118
|
+
enabled: (_a = _this.props.showDataLabel) !== null && _a !== void 0 ? _a : true,
|
|
119
|
+
},
|
|
120
|
+
chart: {
|
|
121
|
+
foreColor: _this.props.darkMode ? "#FFFFFF" : undefined,
|
|
122
|
+
toolbar: {
|
|
123
|
+
show: _this.props.showToolbar,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
colors: _this.state.colors,
|
|
127
|
+
plotOptions: {
|
|
128
|
+
heatmap: {
|
|
129
|
+
shadeIntensity: 0.5,
|
|
130
|
+
radius: 0,
|
|
131
|
+
useFillColorAsStroke: true,
|
|
132
|
+
colorScale: {
|
|
133
|
+
ranges: [
|
|
134
|
+
{
|
|
135
|
+
from: 0,
|
|
136
|
+
to: 10,
|
|
137
|
+
color: "#00A100",
|
|
138
|
+
name: "Low",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
from: 11,
|
|
142
|
+
to: 50,
|
|
143
|
+
color: "#128FD9",
|
|
144
|
+
name: "Medium",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
from: 51,
|
|
148
|
+
to: 100,
|
|
149
|
+
color: "#FFB200",
|
|
150
|
+
name: "High",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
from: 101,
|
|
154
|
+
to: 200,
|
|
155
|
+
color: "#FF4560",
|
|
156
|
+
name: "Very High",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
xaxis: {
|
|
163
|
+
categories: _this.props.categories,
|
|
164
|
+
},
|
|
165
|
+
}, series: _this.props.multiSeriesData || [], type: "heatmap", height: _this.props.chartSize ? _this.props.chartSize : "280" }))));
|
|
166
|
+
};
|
|
167
|
+
_this.renderDarkModeSettings = function () {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
var bgColor = "bg-white";
|
|
170
|
+
if (_this.props.darkMode) {
|
|
171
|
+
bgColor = (_a = _this.props.darkModeBg) !== null && _a !== void 0 ? _a : "bg-gray-900";
|
|
172
|
+
}
|
|
173
|
+
var textColor = _this.props.darkMode ? "text-white" : "text-gray-700";
|
|
174
|
+
var borderColor = (_b = _this.props.borderColor) !== null && _b !== void 0 ? _b : "#e7e7e7";
|
|
175
|
+
return { bgColor: bgColor, textColor: textColor, borderColor: borderColor };
|
|
176
|
+
};
|
|
177
|
+
return _this;
|
|
178
|
+
}
|
|
179
|
+
HeatmapChart.prototype.render = function () {
|
|
180
|
+
var _a = this.renderDarkModeSettings(), bgColor = _a.bgColor, textColor = _a.textColor;
|
|
181
|
+
var defaultClass = "flex flex-col justify-center ".concat(bgColor, " overflow-hidden shadow rounded-lg pl-4 pb-3 w-full ");
|
|
182
|
+
if (this.props.containerStyle)
|
|
183
|
+
defaultClass += this.props.containerStyle;
|
|
184
|
+
return !this.props.chartOnly ? (react_1.default.createElement("div", { className: defaultClass },
|
|
185
|
+
react_1.default.createElement("div", { className: "ml-2 pr-5 my-4 flex flex-row items-center" },
|
|
186
|
+
react_1.default.createElement("div", { className: "flex-1 " }, this.props.newTabUrl ? (react_1.default.createElement(link_1.Link, { href: this.props.newTabUrl, linkType: this.props.linkType, custom: this.props.custom },
|
|
187
|
+
react_1.default.createElement("h3", { className: "text-lg truncate font-medium ".concat(textColor) }, this.props.title))) : (react_1.default.createElement("h3", { className: "text-lg truncate font-medium ".concat(textColor) }, this.props.title))),
|
|
188
|
+
this.props.tool),
|
|
189
|
+
react_1.default.createElement("div", { className: "mr-4 " }, this.renderChart()),
|
|
190
|
+
this.props.dateRangeVisible && (react_1.default.createElement(DateRange_1.DateRange, { className: "px-3", customDate: this.props.customDate, onChangeDate: this.props.onChangeDate, darkMode: this.props.darkMode })))) : (react_1.default.createElement("div", { className: this.props.containerStyle }, this.renderChart()));
|
|
191
|
+
};
|
|
192
|
+
return HeatmapChart;
|
|
193
|
+
}(react_1.Component));
|
|
194
|
+
exports.HeatmapChart = HeatmapChart;
|
|
195
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/chart/heatmapChart/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,8BAA4B;AAC5B,6CAAuD;AAEvD,0CAAyC;AAkBzC;IAAkC,gCAAgB;IAAlD;;QACE,WAAK,GAAG;YACN,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,EAAE;SACX,CAAC;QAEF,uBAAiB,GAAG;;;;4BACK,sFAAa,kBAAkB,QAAC;;wBAAjD,cAAc,GAAG,SAAgC;wBAEnD,MAAM,GAAQ,SAAS,CAAC;wBACtB,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;wBACjC,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;wBAC5D,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;wBACtE,IAAI,UAAU,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC;4BAAE,MA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AC,CAC7B,uCAAK,SAAS,EAAE,YAAY;YAC1B,uCAAK,SAAS,EAAC,2CAA2C;gBACxD,uCAAK,SAAS,EAAC,SAAS,IACrB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CACtB,8BAAC,WAAI,IACH,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC1B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;oBAEzB,sCAAI,SAAS,EAAE,uCAAgC,SAAS,CAAE,IACvD,IAAI,CAAC,KAAK,CAAC,KAAK,CACd,CACA,CACR,CAAC,CAAC,CAAC,CACF,sCAAI,SAAS,EAAE,uCAAgC,SAAS,CAAE,IACvD,IAAI,CAAC,KAAK,CAAC,KAAK,CACd,CACN,CACG;gBACL,IAAI,CAAC,KAAK,CAAC,IAAI,CACZ;YACN,uCAAK,SAAS,EAAC,OAAO,IAAE,IAAI,CAAC,WAAW,EAAE,CAAO;YAChD,IAAI,CAAC,KAAK,CAAC,gBAAgB,IAAI,CAC9B,8BAAC,qBAAS,IACR,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EACrC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAC7B,CACH,CACG,CACP,CAAC,CAAC,CAAC,CACF,uCAAK,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,IAAG,IAAI,CAAC,WAAW,EAAE,CAAO,CACtE,CAAC;IACJ,CAAC;IACH,mBAAC;AAAD,CAAC,AA3ID,CAAkC,iBAAS,GA2I1C;AA3IY,oCAAY"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import "../../../index.css";
|
|
3
|
+
import { LinkProps } from "../../structure/link";
|
|
4
|
+
import { ChartUtils } from "../ChartUtils";
|
|
5
|
+
interface PolarAreaData {
|
|
6
|
+
x: string;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
interface Props extends ChartUtils, LinkProps {
|
|
10
|
+
title: string;
|
|
11
|
+
seriesData?: PolarAreaData[];
|
|
12
|
+
seriesName?: string;
|
|
13
|
+
showDataLabel?: boolean;
|
|
14
|
+
showToolbar?: boolean;
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
newTabUrl?: string;
|
|
17
|
+
onClick?: (category: string, value: number) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare class PolarAreaChart extends Component<Props> {
|
|
20
|
+
state: {
|
|
21
|
+
apexModule: null;
|
|
22
|
+
colors: never[];
|
|
23
|
+
};
|
|
24
|
+
componentDidMount: () => Promise<void>;
|
|
25
|
+
renderChart: () => React.JSX.Element;
|
|
26
|
+
renderDarkModeSettings: () => {
|
|
27
|
+
bgColor: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
};
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/polarAreaChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAQ,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,UAAU,aAAa;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,KAAM,SAAQ,UAAU,EAAE,SAAS;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED,qBAAa,cAAe,SAAQ,SAAS,CAAC,KAAK,CAAC;IAClD,KAAK;;;MAGH;IAEF,iBAAiB,sBAcf;IAEF,WAAW,0BA2DT;IAEF,sBAAsB;;;;MAQpB;IAEF,MAAM;CAyCP"}
|