@msrajawat298/do-graphs 1.0.1 → 1.0.3

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.
Files changed (49) hide show
  1. package/dist/App.js +124 -124
  2. package/dist/App.test.js +8 -8
  3. package/dist/Components/Charts/Bar/Form.js +231 -231
  4. package/dist/Components/Charts/Bar/Format.js +43 -43
  5. package/dist/Components/Charts/Bar/index.js +106 -106
  6. package/dist/Components/Charts/DoughnutAndPie/Form.js +232 -232
  7. package/dist/Components/Charts/DoughnutAndPie/Format.js +52 -52
  8. package/dist/Components/Charts/DoughnutAndPie/index.js +106 -106
  9. package/dist/Components/Charts/DrawGraph.js +32 -32
  10. package/dist/Components/Charts/Line/Form.js +231 -231
  11. package/dist/Components/Charts/Line/Format.js +47 -47
  12. package/dist/Components/Charts/Line/index.js +106 -106
  13. package/dist/Components/Charts/MixedChart/index.js +107 -107
  14. package/dist/Components/Charts/Options.js +139 -139
  15. package/dist/Components/Charts/PolarArea/Form.js +225 -225
  16. package/dist/Components/Charts/PolarArea/Format.js +42 -42
  17. package/dist/Components/Charts/PolarArea/index.js +106 -106
  18. package/dist/Components/Charts/Progess/Form.js +107 -107
  19. package/dist/Components/Charts/Progess/index.js +119 -119
  20. package/dist/Components/Charts/Scatter/Form.js +225 -225
  21. package/dist/Components/Charts/Scatter/Format.js +45 -45
  22. package/dist/Components/Charts/Scatter/index.js +106 -106
  23. package/dist/Components/Charts/Table/Form.js +70 -70
  24. package/dist/Components/Charts/Table/Styles.js +27 -27
  25. package/dist/Components/Charts/Table/index.js +56 -56
  26. package/dist/Components/Common/CustomComponent/index.js +85 -83
  27. package/dist/Components/Common/Menu/DynamicMenu/List.js +43 -43
  28. package/dist/Components/Common/Menu/DynamicMenu/index.js +155 -155
  29. package/dist/Components/Common/Menu/index.js +24 -24
  30. package/dist/Components/Common/Model/Model.js +56 -56
  31. package/dist/Components/Common/MultipleSelectDropdown/index.js +124 -124
  32. package/dist/Components/Common/NotFound/index.js +19 -19
  33. package/dist/Components/Common/Title/Form.js +36 -36
  34. package/dist/Components/Common/Title/Styles.js +16 -16
  35. package/dist/Components/Common/Title/index.js +41 -41
  36. package/dist/Components/Common/Widget/index.js +407 -407
  37. package/dist/Pages/Dashboard/CreatePage.js +115 -115
  38. package/dist/Pages/Dashboard/index.js +150 -150
  39. package/dist/Pages/LayoutPages/index.js +143 -143
  40. package/dist/Pages/Layouts/index.js +52 -52
  41. package/dist/Services/Menu.js +58 -58
  42. package/dist/Services/Routing.js +80 -80
  43. package/dist/Utility/Contexts.js +20 -20
  44. package/dist/Utility/Main.js +368 -368
  45. package/dist/Utility/Routes.js +10 -10
  46. package/dist/index.js +15 -15
  47. package/dist/reportWebVitals.js +13 -13
  48. package/dist/setupTests.js +5 -5
  49. package/package.json +5 -4
@@ -1,119 +1,119 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
- return new (P || (P = Promise))(function (resolve, reject) {
15
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
- var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
- function verb(n) { return function (v) { return step([n, v]); }; }
25
- function step(op) {
26
- if (f) throw new TypeError("Generator is already executing.");
27
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
- 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;
29
- if (y = 0, t) op = [op[0] & 2, t.value];
30
- switch (op[0]) {
31
- case 0: case 1: t = op; break;
32
- case 4: _.label++; return { value: op[1], done: false };
33
- case 5: _.label++; y = op[1]; op = [0]; continue;
34
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
- default:
36
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
- if (t[2]) _.ops.pop();
41
- _.trys.pop(); continue;
42
- }
43
- op = body.call(thisArg, _);
44
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
- }
47
- };
48
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
- import { useContext, useEffect, useState } from 'react';
50
- import { chartDrawData, ChartTypes, fetchApi, ModelTypes } from '../../../Utility/Main';
51
- import '../Chart.css';
52
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
53
- import { faEllipsisVertical, faLink } from '@fortawesome/free-solid-svg-icons';
54
- import Model from '../../Common/Model/Model';
55
- import { GraphContext, PopUpContext } from '../../../Utility/Contexts';
56
- import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
57
- import MultipleSelectDropdown from '../../Common/MultipleSelectDropdown';
58
- var ProgressChart = function (props) {
59
- var _a, _b, _c, _d, _e;
60
- var _f = useContext(PopUpContext), layout = _f.layout, setLayout = _f.setLayout, removeChart = _f.removeChart;
61
- var addNewFormat = ((_a = props === null || props === void 0 ? void 0 : props.datasets) === null || _a === void 0 ? void 0 : _a.data) || [];
62
- var _g = useState(chartDrawData(props, layout, addNewFormat)), drawData = _g[0], setDrawData = _g[1];
63
- var _h = useState((props === null || props === void 0 ? void 0 : props.chartOptions) || {}), graphOptions = _h[0], setGraphOptions = _h[1];
64
- var _j = useState(false), showPopup = _j[0], setshowPopup = _j[1];
65
- var _k = useState({}), gData = _k[0], setgData = _k[1];
66
- var _l = useState({
67
- headTitle: '',
68
- chart: '',
69
- data: {},
70
- type: ''
71
- }), modelData = _l[0], setModelData = _l[1];
72
- var showForm = function (formName, title, data, type) {
73
- setshowPopup(true);
74
- setModelData({
75
- headTitle: title,
76
- chart: formName,
77
- data: data,
78
- type: type
79
- });
80
- };
81
- var bgColor = function (value) {
82
- var color = '#fff';
83
- if (value <= 35) {
84
- color = '#ff6e6e';
85
- }
86
- else if (value > 35 && value <= 75) {
87
- color = 'orange';
88
- }
89
- else if (value > 75 && value <= 100) {
90
- color = '#04af2f';
91
- }
92
- return color;
93
- };
94
- var fetchResult = function () { return __awaiter(void 0, void 0, void 0, function () {
95
- var result, error_1;
96
- return __generator(this, function (_a) {
97
- switch (_a.label) {
98
- case 0:
99
- _a.trys.push([0, 2, , 3]);
100
- return [4 /*yield*/, fetchApi(props === null || props === void 0 ? void 0 : props.apiCall, drawData, ChartTypes === null || ChartTypes === void 0 ? void 0 : ChartTypes.PROGRESS, showPopup)];
101
- case 1:
102
- result = _a.sent();
103
- setgData(result);
104
- return [3 /*break*/, 3];
105
- case 2:
106
- error_1 = _a.sent();
107
- console.debug(error_1 === null || error_1 === void 0 ? void 0 : error_1.toString());
108
- return [3 /*break*/, 3];
109
- case 3: return [2 /*return*/];
110
- }
111
- });
112
- }); };
113
- useEffect(function () { fetchResult(); }, [drawData, graphOptions]);
114
- return (_jsx(GraphContext.Provider, __assign({ value: { drawData: drawData, setDrawData: setDrawData, graphOptions: graphOptions, setGraphOptions: setGraphOptions } }, { children: _jsxs(PopUpContext.Provider, __assign({ value: { showPopup: showPopup, setshowPopup: setshowPopup, modelData: modelData, setModelData: setModelData, layout: layout, setLayout: setLayout } }, { children: [_jsxs("div", __assign({ className: 'chart-container', style: { width: '100%', height: '100%' } }, { children: [_jsxs("div", __assign({ className: 'chart-title', style: __assign({}, drawData === null || drawData === void 0 ? void 0 : drawData.styles) }, { children: [_jsxs("h5", { children: [drawData === null || drawData === void 0 ? void 0 : drawData.title, " ", (drawData === null || drawData === void 0 ? void 0 : drawData.url) && _jsx("span", { children: _jsx(FontAwesomeIcon, { className: 'disable', icon: faLink, cursor: 'pointer', title: drawData === null || drawData === void 0 ? void 0 : drawData.urlTitle, style: { marginLeft: 5, color: '#0d6efd' }, onClick: function () { return window.open(drawData === null || drawData === void 0 ? void 0 : drawData.url, '_blank'); } }) })] }), ((_b = drawData === null || drawData === void 0 ? void 0 : drawData.filters) === null || _b === void 0 ? void 0 : _b.length) > 0 && _jsx(MultipleSelectDropdown, { existFilter: ((_c = props === null || props === void 0 ? void 0 : props.apiCall) === null || _c === void 0 ? void 0 : _c.body) || '{}', isEdit: props === null || props === void 0 ? void 0 : props.isConfigEdit }), (props === null || props === void 0 ? void 0 : props.isConfigEdit) && _jsxs("div", { children: [_jsx(FontAwesomeIcon, { className: 'disable', icon: faTrashAlt, color: 'red', style: { marginRight: 15 }, cursor: 'pointer', onClick: function () { return removeChart(props === null || props === void 0 ? void 0 : props.layoutId); } }), _jsx(FontAwesomeIcon, { className: 'settings disable', icon: faEllipsisVertical, cursor: 'pointer', onClick: function (e) { return showForm(ChartTypes === null || ChartTypes === void 0 ? void 0 : ChartTypes.PROGRESS, 'Configure Progress Chart Data', { gData: drawData, gOptions: graphOptions, layoutId: props === null || props === void 0 ? void 0 : props.layoutId }, ModelTypes === null || ModelTypes === void 0 ? void 0 : ModelTypes.CONFIGURE); } })] })] })), _jsx("div", __assign({ className: "graph-container pad-15" }, { children: ((_d = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _d === void 0 ? void 0 : _d.length) > 0 && ((_e = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _e === void 0 ? void 0 : _e.map(function (item, i) {
115
- var _a, _b, _c, _d, _e;
116
- return (_jsxs("div", __assign({ className: 'box-2' }, { children: [_jsx("p", { children: (_a = drawData === null || drawData === void 0 ? void 0 : drawData.labels) === null || _a === void 0 ? void 0 : _a[i] }), _jsx("div", __assign({ className: 'indicator-box' }, { children: _jsx("p", { style: { width: "".concat((_b = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _b === void 0 ? void 0 : _b[i], "%"), backgroundColor: bgColor(Number((_c = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _c === void 0 ? void 0 : _c[i])) } }) })), _jsxs("p", __assign({ style: { color: bgColor(Number((_d = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _d === void 0 ? void 0 : _d[i])), fontWeight: 600 } }, { children: [(_e = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _e === void 0 ? void 0 : _e[i], "%"] }))] }), i));
117
- })) }))] })), showPopup && _jsx(Model, { headTitle: modelData === null || modelData === void 0 ? void 0 : modelData.headTitle, chart: modelData === null || modelData === void 0 ? void 0 : modelData.chart, data: modelData === null || modelData === void 0 ? void 0 : modelData.data, type: modelData === null || modelData === void 0 ? void 0 : modelData.type })] })) })));
118
- };
119
- export default ProgressChart;
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ 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;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
+ import { useContext, useEffect, useState } from 'react';
50
+ import { chartDrawData, ChartTypes, fetchApi, ModelTypes } from '../../../Utility/Main';
51
+ import '../Chart.css';
52
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
53
+ import { faEllipsisVertical, faLink } from '@fortawesome/free-solid-svg-icons';
54
+ import Model from '../../Common/Model/Model';
55
+ import { GraphContext, PopUpContext } from '../../../Utility/Contexts';
56
+ import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
57
+ import MultipleSelectDropdown from '../../Common/MultipleSelectDropdown';
58
+ var ProgressChart = function (props) {
59
+ var _a, _b, _c, _d, _e;
60
+ var _f = useContext(PopUpContext), layout = _f.layout, setLayout = _f.setLayout, removeChart = _f.removeChart;
61
+ var addNewFormat = ((_a = props === null || props === void 0 ? void 0 : props.datasets) === null || _a === void 0 ? void 0 : _a.data) || [];
62
+ var _g = useState(chartDrawData(props, layout, addNewFormat)), drawData = _g[0], setDrawData = _g[1];
63
+ var _h = useState((props === null || props === void 0 ? void 0 : props.chartOptions) || {}), graphOptions = _h[0], setGraphOptions = _h[1];
64
+ var _j = useState(false), showPopup = _j[0], setshowPopup = _j[1];
65
+ var _k = useState({}), gData = _k[0], setgData = _k[1];
66
+ var _l = useState({
67
+ headTitle: '',
68
+ chart: '',
69
+ data: {},
70
+ type: ''
71
+ }), modelData = _l[0], setModelData = _l[1];
72
+ var showForm = function (formName, title, data, type) {
73
+ setshowPopup(true);
74
+ setModelData({
75
+ headTitle: title,
76
+ chart: formName,
77
+ data: data,
78
+ type: type
79
+ });
80
+ };
81
+ var bgColor = function (value) {
82
+ var color = '#fff';
83
+ if (value <= 35) {
84
+ color = '#ff6e6e';
85
+ }
86
+ else if (value > 35 && value <= 75) {
87
+ color = 'orange';
88
+ }
89
+ else if (value > 75 && value <= 100) {
90
+ color = '#04af2f';
91
+ }
92
+ return color;
93
+ };
94
+ var fetchResult = function () { return __awaiter(void 0, void 0, void 0, function () {
95
+ var result, error_1;
96
+ return __generator(this, function (_a) {
97
+ switch (_a.label) {
98
+ case 0:
99
+ _a.trys.push([0, 2, , 3]);
100
+ return [4 /*yield*/, fetchApi(props === null || props === void 0 ? void 0 : props.apiCall, drawData, ChartTypes === null || ChartTypes === void 0 ? void 0 : ChartTypes.PROGRESS, showPopup)];
101
+ case 1:
102
+ result = _a.sent();
103
+ setgData(result);
104
+ return [3 /*break*/, 3];
105
+ case 2:
106
+ error_1 = _a.sent();
107
+ console.debug(error_1 === null || error_1 === void 0 ? void 0 : error_1.toString());
108
+ return [3 /*break*/, 3];
109
+ case 3: return [2 /*return*/];
110
+ }
111
+ });
112
+ }); };
113
+ useEffect(function () { fetchResult(); }, [drawData, graphOptions]);
114
+ return (_jsx(GraphContext.Provider, __assign({ value: { drawData: drawData, setDrawData: setDrawData, graphOptions: graphOptions, setGraphOptions: setGraphOptions } }, { children: _jsxs(PopUpContext.Provider, __assign({ value: { showPopup: showPopup, setshowPopup: setshowPopup, modelData: modelData, setModelData: setModelData, layout: layout, setLayout: setLayout } }, { children: [_jsxs("div", __assign({ className: 'chart-container', style: { width: '100%', height: '100%' } }, { children: [_jsxs("div", __assign({ className: 'chart-title', style: __assign({}, drawData === null || drawData === void 0 ? void 0 : drawData.styles) }, { children: [_jsxs("h5", { children: [drawData === null || drawData === void 0 ? void 0 : drawData.title, " ", (drawData === null || drawData === void 0 ? void 0 : drawData.url) && _jsx("span", { children: _jsx(FontAwesomeIcon, { className: 'disable', icon: faLink, cursor: 'pointer', title: drawData === null || drawData === void 0 ? void 0 : drawData.urlTitle, style: { marginLeft: 5, color: '#0d6efd' }, onClick: function () { return window.open(drawData === null || drawData === void 0 ? void 0 : drawData.url, '_blank'); } }) })] }), ((_b = drawData === null || drawData === void 0 ? void 0 : drawData.filters) === null || _b === void 0 ? void 0 : _b.length) > 0 && _jsx(MultipleSelectDropdown, { existFilter: ((_c = props === null || props === void 0 ? void 0 : props.apiCall) === null || _c === void 0 ? void 0 : _c.body) || '{}', isEdit: props === null || props === void 0 ? void 0 : props.isConfigEdit }), (props === null || props === void 0 ? void 0 : props.isConfigEdit) && _jsxs("div", { children: [_jsx(FontAwesomeIcon, { className: 'disable', icon: faTrashAlt, color: 'red', style: { marginRight: 15 }, cursor: 'pointer', onClick: function () { return removeChart(props === null || props === void 0 ? void 0 : props.layoutId); } }), _jsx(FontAwesomeIcon, { className: 'settings disable', icon: faEllipsisVertical, cursor: 'pointer', onClick: function (e) { return showForm(ChartTypes === null || ChartTypes === void 0 ? void 0 : ChartTypes.PROGRESS, 'Configure Progress Chart Data', { gData: drawData, gOptions: graphOptions, layoutId: props === null || props === void 0 ? void 0 : props.layoutId }, ModelTypes === null || ModelTypes === void 0 ? void 0 : ModelTypes.CONFIGURE); } })] })] })), _jsx("div", __assign({ className: "graph-container pad-15" }, { children: ((_d = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _d === void 0 ? void 0 : _d.length) > 0 && ((_e = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _e === void 0 ? void 0 : _e.map(function (item, i) {
115
+ var _a, _b, _c, _d, _e;
116
+ return (_jsxs("div", __assign({ className: 'box-2' }, { children: [_jsx("p", { children: (_a = drawData === null || drawData === void 0 ? void 0 : drawData.labels) === null || _a === void 0 ? void 0 : _a[i] }), _jsx("div", __assign({ className: 'indicator-box' }, { children: _jsx("p", { style: { width: "".concat((_b = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _b === void 0 ? void 0 : _b[i], "%"), backgroundColor: bgColor(Number((_c = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _c === void 0 ? void 0 : _c[i])) } }) })), _jsxs("p", __assign({ style: { color: bgColor(Number((_d = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _d === void 0 ? void 0 : _d[i])), fontWeight: 600 } }, { children: [(_e = drawData === null || drawData === void 0 ? void 0 : drawData.datasets) === null || _e === void 0 ? void 0 : _e[i], "%"] }))] }), i));
117
+ })) }))] })), showPopup && _jsx(Model, { headTitle: modelData === null || modelData === void 0 ? void 0 : modelData.headTitle, chart: modelData === null || modelData === void 0 ? void 0 : modelData.chart, data: modelData === null || modelData === void 0 ? void 0 : modelData.data, type: modelData === null || modelData === void 0 ? void 0 : modelData.type })] })) })));
118
+ };
119
+ export default ProgressChart;