@platox/pivot-table 0.0.32 → 0.0.34
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/es/dashboard-workbench/components/add-module-btn/index.d.ts +11 -0
- package/es/dashboard-workbench/components/add-module-btn/index.js +97 -0
- package/es/dashboard-workbench/components/add-module-btn/index.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-calendar-modal/custome-data.d.ts +20 -0
- package/es/dashboard-workbench/components/add-module-modal/add-calendar-modal/custome-data.js +178 -0
- package/es/dashboard-workbench/components/add-module-modal/add-calendar-modal/custome-data.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-calendar-modal/index.d.ts +17 -0
- package/es/dashboard-workbench/components/add-module-modal/add-calendar-modal/index.js +91 -0
- package/es/dashboard-workbench/components/add-module-modal/add-calendar-modal/index.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/custome-data.d.ts +27 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/custome-data.js +328 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/custome-data.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/custome-styles.d.ts +15 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/custome-styles.js +58 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/custome-styles.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/index.d.ts +20 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/index.js +123 -0
- package/es/dashboard-workbench/components/add-module-modal/add-chart-modal/index.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/custome-data.d.ts +20 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/custome-data.js +180 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/custome-data.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/custome-styles.d.ts +13 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/custome-styles.js +119 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/custome-styles.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/index.d.ts +19 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/index.js +120 -0
- package/es/dashboard-workbench/components/add-module-modal/add-statistics-modal/index.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/debounce-select.d.ts +12 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/debounce-select.js +44 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/debounce-select.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/index.d.ts +21 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/index.js +510 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/index.js.map +1 -0
- package/es/dashboard-workbench/components/add-module-modal/components/condition-modal/utils.d.ts +25 -0
- package/es/dashboard-workbench/components/add-module-modal/components/select-color/index.d.ts +12 -0
- package/es/dashboard-workbench/components/add-module-modal/components/select-color/index.js +45 -0
- package/es/dashboard-workbench/components/add-module-modal/components/select-color/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/calendar-module/index.d.ts +14 -0
- package/es/dashboard-workbench/components/module-content/calendar-module/index.js +231 -0
- package/es/dashboard-workbench/components/module-content/calendar-module/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/chart-module/base-chart/index.d.ts +8 -0
- package/es/dashboard-workbench/components/module-content/chart-module/base-chart/index.js +62 -0
- package/es/dashboard-workbench/components/module-content/chart-module/base-chart/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/chart-module/index.d.ts +14 -0
- package/es/dashboard-workbench/components/module-content/chart-module/index.js +384 -0
- package/es/dashboard-workbench/components/module-content/chart-module/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/chart-module/utils.d.ts +9 -0
- package/es/dashboard-workbench/components/module-content/chart-module/utils.js +200 -0
- package/es/dashboard-workbench/components/module-content/chart-module/utils.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/index.d.ts +31 -0
- package/es/dashboard-workbench/components/module-content/index.js +81 -0
- package/es/dashboard-workbench/components/module-content/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/statistics-module/index.d.ts +15 -0
- package/es/dashboard-workbench/components/module-content/statistics-module/index.js +305 -0
- package/es/dashboard-workbench/components/module-content/statistics-module/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/statistics-module/utils.d.ts +4 -0
- package/es/dashboard-workbench/components/module-content/statistics-module/utils.js +41 -0
- package/es/dashboard-workbench/components/module-content/statistics-module/utils.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/text-module/editor/index.d.ts +7 -0
- package/es/dashboard-workbench/components/module-content/text-module/editor/index.js +224 -0
- package/es/dashboard-workbench/components/module-content/text-module/editor/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/text-module/editor/useDebounce.d.ts +2 -0
- package/es/dashboard-workbench/components/module-content/text-module/editor/useDebounce.js +24 -0
- package/es/dashboard-workbench/components/module-content/text-module/editor/useDebounce.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/text-module/index.d.ts +7 -0
- package/es/dashboard-workbench/components/module-content/text-module/index.js +11 -0
- package/es/dashboard-workbench/components/module-content/text-module/index.js.map +1 -0
- package/es/dashboard-workbench/components/module-content/utils.d.ts +15 -0
- package/es/dashboard-workbench/components/module-content/utils.js +113 -0
- package/es/dashboard-workbench/components/module-content/utils.js.map +1 -0
- package/es/dashboard-workbench/components/module-header/index.d.ts +12 -0
- package/es/dashboard-workbench/components/module-header/index.js +115 -0
- package/es/dashboard-workbench/components/module-header/index.js.map +1 -0
- package/es/dashboard-workbench/context.d.ts +16 -0
- package/es/dashboard-workbench/context.js +21 -0
- package/es/dashboard-workbench/context.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-bar-percentage.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-bar-percentage.js +17 -0
- package/es/dashboard-workbench/icon/icon-bar-percentage.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-bar-pile.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-bar-pile.js +17 -0
- package/es/dashboard-workbench/icon/icon-bar-pile.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-bar.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-bar.js +13 -0
- package/es/dashboard-workbench/icon/icon-bar.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-calendar.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-calendar.js +40 -0
- package/es/dashboard-workbench/icon/icon-calendar.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-drag.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-drag.js +25 -0
- package/es/dashboard-workbench/icon/icon-drag.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-editor.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-editor.js +40 -0
- package/es/dashboard-workbench/icon/icon-editor.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-line-smooth.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-line-smooth.js +28 -0
- package/es/dashboard-workbench/icon/icon-line-smooth.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-line.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-line.js +28 -0
- package/es/dashboard-workbench/icon/icon-line.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-move.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-move.js +25 -0
- package/es/dashboard-workbench/icon/icon-move.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-pie-circular.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-pie-circular.js +30 -0
- package/es/dashboard-workbench/icon/icon-pie-circular.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-pie.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-pie.js +24 -0
- package/es/dashboard-workbench/icon/icon-pie.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-statistics.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-statistics.js +37 -0
- package/es/dashboard-workbench/icon/icon-statistics.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-strip-bar-percentage.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-strip-bar-percentage.js +105 -0
- package/es/dashboard-workbench/icon/icon-strip-bar-percentage.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-strip-bar-pile.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-strip-bar-pile.js +105 -0
- package/es/dashboard-workbench/icon/icon-strip-bar-pile.js.map +1 -0
- package/es/dashboard-workbench/icon/icon-strip-bar.d.ts +2 -0
- package/es/dashboard-workbench/icon/icon-strip-bar.js +57 -0
- package/es/dashboard-workbench/icon/icon-strip-bar.js.map +1 -0
- package/es/dashboard-workbench/index.d.ts +33 -0
- package/es/dashboard-workbench/index.js +435 -0
- package/es/dashboard-workbench/index.js.map +1 -0
- package/es/dashboard-workbench/lang/en-US.d.ts +146 -0
- package/es/dashboard-workbench/lang/en-US.js +157 -0
- package/es/dashboard-workbench/lang/en-US.js.map +1 -0
- package/es/dashboard-workbench/lang/index.d.ts +2 -0
- package/es/dashboard-workbench/lang/index.js +25 -0
- package/es/dashboard-workbench/lang/index.js.map +1 -0
- package/es/dashboard-workbench/lang/zh-CN.d.ts +146 -0
- package/es/dashboard-workbench/lang/zh-CN.js +157 -0
- package/es/dashboard-workbench/lang/zh-CN.js.map +1 -0
- package/es/dashboard-workbench/types.d.ts +22 -0
- package/es/dashboard-workbench/utils/index.d.ts +9 -0
- package/es/dashboard-workbench/utils/index.js +30 -0
- package/es/dashboard-workbench/utils/index.js.map +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +5 -0
- package/es/index.js.map +1 -0
- package/es/style.css +1 -0
- package/package.json +27 -24
- package/umd/pivot-table.umd.cjs +178 -0
- package/umd/style.css +1 -0
- package/index.d.ts +0 -98
- package/lib/index.js +0 -52233
- package/lib/index.umd.cjs +0 -178
- package/lib/style.css +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconStripBarPile = () => {
|
|
3
|
+
return /* @__PURE__ */ jsxs("svg", { width: "72", height: "48", viewBox: "0 0 72 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4
|
+
/* @__PURE__ */ jsx(
|
|
5
|
+
"rect",
|
|
6
|
+
{
|
|
7
|
+
x: "40",
|
|
8
|
+
y: "11",
|
|
9
|
+
width: "4",
|
|
10
|
+
height: "15",
|
|
11
|
+
rx: "0.5",
|
|
12
|
+
transform: "rotate(90 40 11)",
|
|
13
|
+
fill: "#959bee"
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
"rect",
|
|
18
|
+
{
|
|
19
|
+
x: "24",
|
|
20
|
+
y: "11",
|
|
21
|
+
width: "4",
|
|
22
|
+
height: "8",
|
|
23
|
+
rx: "0.5",
|
|
24
|
+
transform: "rotate(90 24 11)",
|
|
25
|
+
fill: "#5b65f5"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"rect",
|
|
30
|
+
{
|
|
31
|
+
x: "48",
|
|
32
|
+
y: "18",
|
|
33
|
+
width: "4",
|
|
34
|
+
height: "15.5",
|
|
35
|
+
rx: "0.5",
|
|
36
|
+
transform: "rotate(90 48 18)",
|
|
37
|
+
fill: "#959bee"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
"rect",
|
|
42
|
+
{
|
|
43
|
+
x: "31.5",
|
|
44
|
+
y: "18",
|
|
45
|
+
width: "4",
|
|
46
|
+
height: "15.5",
|
|
47
|
+
rx: "0.5",
|
|
48
|
+
transform: "rotate(90 31.5 18)",
|
|
49
|
+
fill: "#5b65f5"
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
"rect",
|
|
54
|
+
{
|
|
55
|
+
x: "60",
|
|
56
|
+
y: "25",
|
|
57
|
+
width: "4",
|
|
58
|
+
height: "34",
|
|
59
|
+
rx: "0.5",
|
|
60
|
+
transform: "rotate(90 60 25)",
|
|
61
|
+
fill: "#959bee"
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
"rect",
|
|
66
|
+
{
|
|
67
|
+
x: "25",
|
|
68
|
+
y: "25",
|
|
69
|
+
width: "4",
|
|
70
|
+
height: "9",
|
|
71
|
+
rx: "0.5",
|
|
72
|
+
transform: "rotate(90 25 25)",
|
|
73
|
+
fill: "#5b65f5"
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
"rect",
|
|
78
|
+
{
|
|
79
|
+
x: "43",
|
|
80
|
+
y: "32",
|
|
81
|
+
width: "4",
|
|
82
|
+
height: "13",
|
|
83
|
+
rx: "0.5",
|
|
84
|
+
transform: "rotate(90 43 32)",
|
|
85
|
+
fill: "#959bee"
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
"rect",
|
|
90
|
+
{
|
|
91
|
+
x: "29",
|
|
92
|
+
y: "32",
|
|
93
|
+
width: "4",
|
|
94
|
+
height: "13",
|
|
95
|
+
rx: "0.5",
|
|
96
|
+
transform: "rotate(90 29 32)",
|
|
97
|
+
fill: "#5b65f5"
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] });
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
IconStripBarPile as default
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=icon-strip-bar-pile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-strip-bar-pile.js","sources":["../../../packages/dashboard-workbench/icon/icon-strip-bar-pile.tsx"],"sourcesContent":["const IconStripBarPile = () => {\n return (\n <svg width=\"72\" height=\"48\" viewBox=\"0 0 72 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect\n x=\"40\"\n y=\"11\"\n width=\"4\"\n height=\"15\"\n rx=\"0.5\"\n transform=\"rotate(90 40 11)\"\n fill=\"#959bee\"\n ></rect>\n <rect\n x=\"24\"\n y=\"11\"\n width=\"4\"\n height=\"8\"\n rx=\"0.5\"\n transform=\"rotate(90 24 11)\"\n fill=\"#5b65f5\"\n ></rect>\n <rect\n x=\"48\"\n y=\"18\"\n width=\"4\"\n height=\"15.5\"\n rx=\"0.5\"\n transform=\"rotate(90 48 18)\"\n fill=\"#959bee\"\n ></rect>\n <rect\n x=\"31.5\"\n y=\"18\"\n width=\"4\"\n height=\"15.5\"\n rx=\"0.5\"\n transform=\"rotate(90 31.5 18)\"\n fill=\"#5b65f5\"\n ></rect>\n <rect\n x=\"60\"\n y=\"25\"\n width=\"4\"\n height=\"34\"\n rx=\"0.5\"\n transform=\"rotate(90 60 25)\"\n fill=\"#959bee\"\n ></rect>\n <rect\n x=\"25\"\n y=\"25\"\n width=\"4\"\n height=\"9\"\n rx=\"0.5\"\n transform=\"rotate(90 25 25)\"\n fill=\"#5b65f5\"\n ></rect>\n <rect\n x=\"43\"\n y=\"32\"\n width=\"4\"\n height=\"13\"\n rx=\"0.5\"\n transform=\"rotate(90 43 32)\"\n fill=\"#959bee\"\n ></rect>\n <rect\n x=\"29\"\n y=\"32\"\n width=\"4\"\n height=\"13\"\n rx=\"0.5\"\n transform=\"rotate(90 29 32)\"\n fill=\"#5b65f5\"\n ></rect>\n </svg>\n )\n}\n\nexport default IconStripBarPile\n"],"names":[],"mappings":";AAAA,MAAM,mBAAmB,MAAM;AAE3B,SAAA,qBAAC,OAAI,EAAA,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAChE,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EACN,GACH;AAEJ;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconStripBar = () => {
|
|
3
|
+
return /* @__PURE__ */ jsxs("svg", { width: "72", height: "48", viewBox: "0 0 72 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4
|
+
/* @__PURE__ */ jsx(
|
|
5
|
+
"rect",
|
|
6
|
+
{
|
|
7
|
+
x: "31",
|
|
8
|
+
y: "11",
|
|
9
|
+
width: "4",
|
|
10
|
+
height: "15",
|
|
11
|
+
rx: "0.5",
|
|
12
|
+
transform: "rotate(90 31 11)",
|
|
13
|
+
fill: "#5b65f5"
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
"rect",
|
|
18
|
+
{
|
|
19
|
+
x: "44",
|
|
20
|
+
y: "18",
|
|
21
|
+
width: "4",
|
|
22
|
+
height: "28",
|
|
23
|
+
rx: "0.5",
|
|
24
|
+
transform: "rotate(90 44 18)",
|
|
25
|
+
fill: "#5b65f5"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"rect",
|
|
30
|
+
{
|
|
31
|
+
x: "56",
|
|
32
|
+
y: "25",
|
|
33
|
+
width: "4",
|
|
34
|
+
height: "40",
|
|
35
|
+
rx: "0.5",
|
|
36
|
+
transform: "rotate(90 56 25)",
|
|
37
|
+
fill: "#5b65f5"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
"rect",
|
|
42
|
+
{
|
|
43
|
+
x: "36",
|
|
44
|
+
y: "32",
|
|
45
|
+
width: "4",
|
|
46
|
+
height: "20",
|
|
47
|
+
rx: "0.5",
|
|
48
|
+
transform: "rotate(90 36 32)",
|
|
49
|
+
fill: "#5b65f5"
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] });
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
IconStripBar as default
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=icon-strip-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-strip-bar.js","sources":["../../../packages/dashboard-workbench/icon/icon-strip-bar.tsx"],"sourcesContent":["const IconStripBar = () => {\n return (\n <svg width=\"72\" height=\"48\" viewBox=\"0 0 72 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect\n x=\"31\"\n y=\"11\"\n width=\"4\"\n height=\"15\"\n rx=\"0.5\"\n transform=\"rotate(90 31 11)\"\n fill=\"#5b65f5\"\n ></rect>\n <rect\n x=\"44\"\n y=\"18\"\n width=\"4\"\n height=\"28\"\n rx=\"0.5\"\n transform=\"rotate(90 44 18)\"\n fill=\"#5b65f5\"\n ></rect>\n <rect\n x=\"56\"\n y=\"25\"\n width=\"4\"\n height=\"40\"\n rx=\"0.5\"\n transform=\"rotate(90 56 25)\"\n fill=\"#5b65f5\"\n ></rect>\n <rect\n x=\"36\"\n y=\"32\"\n width=\"4\"\n height=\"20\"\n rx=\"0.5\"\n transform=\"rotate(90 36 32)\"\n fill=\"#5b65f5\"\n ></rect>\n </svg>\n )\n}\n\nexport default IconStripBar\n"],"names":[],"mappings":";AAAA,MAAM,eAAe,MAAM;AAEvB,SAAA,qBAAC,OAAI,EAAA,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAChE,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IACN;AAAA,IACD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,WAAU;AAAA,QACV,MAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EACN,GACH;AAEJ;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Layout } from 'react-grid-layout';
|
|
3
|
+
import { ModuleData } from './components/module-content';
|
|
4
|
+
import { EnumDataApi, ModuleConfigDataTypes, ModuleDataApi, SourceDataTypes } from './types';
|
|
5
|
+
interface DashboardWorkbenchProps {
|
|
6
|
+
sourceData?: SourceDataTypes[];
|
|
7
|
+
moduleConfigData?: ModuleConfigDataTypes;
|
|
8
|
+
fieldMap?: Record<string, string>;
|
|
9
|
+
lang?: 'zh-CN' | 'en-US';
|
|
10
|
+
moduleDataApi?: ModuleDataApi;
|
|
11
|
+
enumDataApi?: EnumDataApi;
|
|
12
|
+
onCreateModule?: (val: ModuleData) => Promise<{
|
|
13
|
+
data: ModuleData;
|
|
14
|
+
}>;
|
|
15
|
+
onUpdateModule?: (val: ModuleData) => Promise<{
|
|
16
|
+
data: ModuleData;
|
|
17
|
+
}>;
|
|
18
|
+
onDeleteModule?: (val: string) => Promise<{
|
|
19
|
+
data: ModuleData;
|
|
20
|
+
}>;
|
|
21
|
+
onLayoutChange?: (layout: Layout[]) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
cols?: {
|
|
24
|
+
lg: number;
|
|
25
|
+
md: number;
|
|
26
|
+
sm: number;
|
|
27
|
+
xs: number;
|
|
28
|
+
xxs: number;
|
|
29
|
+
};
|
|
30
|
+
rowHeight?: number;
|
|
31
|
+
}
|
|
32
|
+
declare const _default: React.MemoExoticComponent<(props: DashboardWorkbenchProps) => import("react/jsx-runtime").JSX.Element>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
4
|
+
import ModuleContent from "./components/module-content/index.js";
|
|
5
|
+
import AddModuleBtn from "./components/add-module-btn/index.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { AppProvider, useAppContext } from "./context.js";
|
|
8
|
+
import AddStatisticsModal from "./components/add-module-modal/add-statistics-modal/index.js";
|
|
9
|
+
import AddStatisticsModal$1 from "./components/add-module-modal/add-calendar-modal/index.js";
|
|
10
|
+
import AddStatisticsModal$2 from "./components/add-module-modal/add-chart-modal/index.js";
|
|
11
|
+
import "./lang/index.js";
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
13
|
+
/* empty css */
|
|
14
|
+
import { Modal, message } from "antd";
|
|
15
|
+
import { ExclamationCircleOutlined } from "@ant-design/icons";
|
|
16
|
+
import ModuleHeader from "./components/module-header/index.js";
|
|
17
|
+
import { findChangedItems } from "./utils/index.js";
|
|
18
|
+
const ResponsiveReactGridLayout = WidthProvider(Responsive);
|
|
19
|
+
const DashboardWorkbench = ({
|
|
20
|
+
sourceData,
|
|
21
|
+
moduleConfigData,
|
|
22
|
+
fieldMap,
|
|
23
|
+
moduleDataApi,
|
|
24
|
+
enumDataApi,
|
|
25
|
+
onCreateModule,
|
|
26
|
+
onUpdateModule,
|
|
27
|
+
onDeleteModule,
|
|
28
|
+
lang,
|
|
29
|
+
// onLayoutChange,
|
|
30
|
+
className = "layout",
|
|
31
|
+
cols = { lg: 12, md: 12, sm: 12, xs: 12, xxs: 12 },
|
|
32
|
+
rowHeight = 79
|
|
33
|
+
}) => {
|
|
34
|
+
const { setGlobalData } = useAppContext();
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
setGlobalData({ fieldMap, sourceData });
|
|
37
|
+
}, [fieldMap, setGlobalData, sourceData]);
|
|
38
|
+
const { i18n, t } = useTranslation();
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
i18n.changeLanguage(lang || "zh_CN");
|
|
41
|
+
}, [i18n, lang]);
|
|
42
|
+
const [modules, setModules] = useState([]);
|
|
43
|
+
const [activeId, setActiveId] = useState();
|
|
44
|
+
const [selectModuleData, setSelectModuleData] = useState();
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
setModules(
|
|
47
|
+
(moduleConfigData == null ? void 0 : moduleConfigData.map((item) => ({
|
|
48
|
+
...item,
|
|
49
|
+
i: item.i ? item.i : item.id
|
|
50
|
+
}))) || []
|
|
51
|
+
);
|
|
52
|
+
}, [moduleConfigData]);
|
|
53
|
+
const addModule = async (data) => {
|
|
54
|
+
const wMultiple = data.type === "calendar" ? 5 : 4;
|
|
55
|
+
const hMultiple = data.type === "calendar" ? 5 : 3;
|
|
56
|
+
if (Array.isArray(modules) && data.type) {
|
|
57
|
+
const newModuleData = {
|
|
58
|
+
x: 0,
|
|
59
|
+
y: 0,
|
|
60
|
+
w: wMultiple,
|
|
61
|
+
h: hMultiple,
|
|
62
|
+
title: data.type.includes("chart") ? t("chartText") : title[data.type],
|
|
63
|
+
...data,
|
|
64
|
+
type: data.type
|
|
65
|
+
};
|
|
66
|
+
await (onCreateModule == null ? void 0 : onCreateModule(newModuleData).then((res) => {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
if (!res.success) {
|
|
69
|
+
message.error(res.message);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
setModules([...modules, { ...newModuleData, i: (_a = res.data) == null ? void 0 : _a.id, id: (_b = res.data) == null ? void 0 : _b.id }]);
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const updateModule = async (id, updatedProps) => {
|
|
77
|
+
if (modules == null ? void 0 : modules.length) {
|
|
78
|
+
const oldData = modules.find((m) => m.id === id);
|
|
79
|
+
const updatedModule = {
|
|
80
|
+
...oldData,
|
|
81
|
+
...updatedProps
|
|
82
|
+
};
|
|
83
|
+
const modulesData = modules.map((m) => m.id === id ? updatedModule : m);
|
|
84
|
+
setModules(modulesData);
|
|
85
|
+
await (onUpdateModule == null ? void 0 : onUpdateModule(updatedModule).then((res) => {
|
|
86
|
+
if (!res.success) {
|
|
87
|
+
message.error(res.message);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const updateModules = async (updatedItems) => {
|
|
94
|
+
if (!(modules == null ? void 0 : modules.length) || !(updatedItems == null ? void 0 : updatedItems.length)) return;
|
|
95
|
+
const updatedModules = modules.map((module) => {
|
|
96
|
+
const update = updatedItems.find((item) => item.id === module.id);
|
|
97
|
+
return update ? { ...module, ...update } : module;
|
|
98
|
+
});
|
|
99
|
+
setModules(updatedModules);
|
|
100
|
+
try {
|
|
101
|
+
for (const updatedItem of updatedItems) {
|
|
102
|
+
const res = await (onUpdateModule == null ? void 0 : onUpdateModule(updatedItem));
|
|
103
|
+
if (!(res == null ? void 0 : res.success)) {
|
|
104
|
+
throw new Error((res == null ? void 0 : res.message) || `Failed to update module: ${updatedItem.id}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
} catch (error) {
|
|
108
|
+
setModules(modules);
|
|
109
|
+
message.error(error.message || "Failed to update modules");
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const deleteModule = async (id) => {
|
|
113
|
+
if (modules == null ? void 0 : modules.length) {
|
|
114
|
+
setModules(modules.filter((m) => m.id !== id));
|
|
115
|
+
await (onDeleteModule == null ? void 0 : onDeleteModule(id || ""));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const margins = [10, 10];
|
|
119
|
+
const [rowWidth, setRowWidth] = useState(0);
|
|
120
|
+
const [, setCurrentCols] = useState(cols.lg);
|
|
121
|
+
const [isDragOrResize, setIsDragOrResize] = useState(false);
|
|
122
|
+
const [isDragOrResizeEnd, setIsDragOrResizeEnd] = useState(false);
|
|
123
|
+
const onBreakpointChange = (_breakpoint, cols2) => {
|
|
124
|
+
setCurrentCols(cols2);
|
|
125
|
+
};
|
|
126
|
+
const onDragResizeStop = (newLayout) => {
|
|
127
|
+
const changedItems = findChangedItems(newLayout, modules);
|
|
128
|
+
const newChangedItems = changedItems.map((item) => {
|
|
129
|
+
const module = modules == null ? void 0 : modules.find((module2) => module2.i === item.i);
|
|
130
|
+
return { ...module, ...item };
|
|
131
|
+
});
|
|
132
|
+
updateModules(newChangedItems);
|
|
133
|
+
};
|
|
134
|
+
const onDragStartOrEnd = (type, newLayout) => {
|
|
135
|
+
if (type === "start") {
|
|
136
|
+
setIsDragOrResize(true);
|
|
137
|
+
setIsDragOrResizeEnd(true);
|
|
138
|
+
} else {
|
|
139
|
+
setIsDragOrResize(false);
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
setIsDragOrResizeEnd(false);
|
|
142
|
+
}, 500);
|
|
143
|
+
onDragResizeStop(newLayout || []);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
const [isShowAddStatisticsModal, setIsShowAddStatisticsModal] = useState(false);
|
|
147
|
+
const [isShowAddCalendarModal, setIsShowAddCalendarModal] = useState(false);
|
|
148
|
+
const [isShowAddChartModal, setIsShowAddChartModal] = useState(false);
|
|
149
|
+
const onAddModule = (val) => {
|
|
150
|
+
if (val === "text") {
|
|
151
|
+
const data = {
|
|
152
|
+
type: val,
|
|
153
|
+
customData: {
|
|
154
|
+
title: t("text"),
|
|
155
|
+
editor: [
|
|
156
|
+
{
|
|
157
|
+
type: "paragraph",
|
|
158
|
+
children: [
|
|
159
|
+
{
|
|
160
|
+
text: ""
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
addModule(data);
|
|
168
|
+
} else if (val === "statistics") {
|
|
169
|
+
setIsShowAddStatisticsModal(true);
|
|
170
|
+
} else if (val === "calendar") {
|
|
171
|
+
setIsShowAddCalendarModal(true);
|
|
172
|
+
} else if (val == null ? void 0 : val.includes("chart")) {
|
|
173
|
+
setIsShowAddChartModal(true);
|
|
174
|
+
}
|
|
175
|
+
setSelectModuleData({
|
|
176
|
+
title: "",
|
|
177
|
+
type: val,
|
|
178
|
+
w: 0,
|
|
179
|
+
h: 0,
|
|
180
|
+
x: 0,
|
|
181
|
+
y: 0
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
const title = {
|
|
185
|
+
text: t("pb.text"),
|
|
186
|
+
calendar: t("calendarText"),
|
|
187
|
+
statistics: t("chartText")
|
|
188
|
+
};
|
|
189
|
+
return /* @__PURE__ */ jsxs("div", { className: "pivot-table", children: [
|
|
190
|
+
/* @__PURE__ */ jsxs("div", { className: "bitable-block-dashboard", children: [
|
|
191
|
+
/* @__PURE__ */ jsx("div", { className: "bitable-block-dashboard-toolbar bitable-toolbar", children: /* @__PURE__ */ jsx("div", { className: "bitable-block-dashboard-toolbar--left", children: /* @__PURE__ */ jsx(
|
|
192
|
+
AddModuleBtn,
|
|
193
|
+
{
|
|
194
|
+
onOk: (val) => {
|
|
195
|
+
onAddModule(val);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
) }) }),
|
|
199
|
+
/* @__PURE__ */ jsx("div", { className: "bitable-block-dashboard__mount", children: /* @__PURE__ */ jsx("div", { className: "dashboard-container", children: /* @__PURE__ */ jsx(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: `dashboard-content-container ${isDragOrResize ? "isDragOrResize" : ""} ${isDragOrResizeEnd ? "isDragOrResizeEnd" : ""}`,
|
|
203
|
+
children: /* @__PURE__ */ jsx(
|
|
204
|
+
ResponsiveReactGridLayout,
|
|
205
|
+
{
|
|
206
|
+
onBreakpointChange,
|
|
207
|
+
className,
|
|
208
|
+
compactType: "vertical",
|
|
209
|
+
preventCollision: false,
|
|
210
|
+
cols,
|
|
211
|
+
margin: margins,
|
|
212
|
+
rowHeight,
|
|
213
|
+
measureBeforeMount: false,
|
|
214
|
+
draggableHandle: ".isCanDrag",
|
|
215
|
+
onWidthChange: (containerWidth, _margin, cols2) => {
|
|
216
|
+
setRowWidth(containerWidth / cols2 - 1);
|
|
217
|
+
},
|
|
218
|
+
onDragStart: () => {
|
|
219
|
+
onDragStartOrEnd("start");
|
|
220
|
+
},
|
|
221
|
+
onDragStop: (newLayout) => {
|
|
222
|
+
onDragStartOrEnd("end", newLayout);
|
|
223
|
+
},
|
|
224
|
+
onResizeStart: () => {
|
|
225
|
+
onDragStartOrEnd("start");
|
|
226
|
+
},
|
|
227
|
+
onResizeStop: (newLayout) => {
|
|
228
|
+
onDragStartOrEnd("end", newLayout);
|
|
229
|
+
},
|
|
230
|
+
style: {
|
|
231
|
+
backgroundSize: `${rowWidth}px ${rowHeight + margins[0]}px`,
|
|
232
|
+
backgroundPosition: `${margins[0]}px ${margins[0]}px`,
|
|
233
|
+
minHeight: "100vh"
|
|
234
|
+
},
|
|
235
|
+
children: modules == null ? void 0 : modules.map((module) => /* @__PURE__ */ jsxs(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
className: `box-dashboard ${activeId === module.id ? "active" : ""}`,
|
|
239
|
+
onClick: () => {
|
|
240
|
+
setActiveId(module.id);
|
|
241
|
+
},
|
|
242
|
+
"data-grid": {
|
|
243
|
+
i: module.id,
|
|
244
|
+
x: module.x || 0,
|
|
245
|
+
y: module.y || 0,
|
|
246
|
+
// puts it at the bottom
|
|
247
|
+
w: module.w || 2,
|
|
248
|
+
h: module.h || 2,
|
|
249
|
+
minW: 2,
|
|
250
|
+
minH: 2
|
|
251
|
+
},
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ jsx(
|
|
254
|
+
ModuleHeader,
|
|
255
|
+
{
|
|
256
|
+
module,
|
|
257
|
+
defaultValue: module.title,
|
|
258
|
+
onChange: (val) => updateModule(module.id, {
|
|
259
|
+
title: val
|
|
260
|
+
}),
|
|
261
|
+
onDropdownItem: (key) => {
|
|
262
|
+
var _a;
|
|
263
|
+
if (key === "edit") {
|
|
264
|
+
setActiveId(module.id);
|
|
265
|
+
setSelectModuleData(module);
|
|
266
|
+
if (module.type === "statistics") {
|
|
267
|
+
setIsShowAddStatisticsModal(true);
|
|
268
|
+
}
|
|
269
|
+
if ((_a = module.type) == null ? void 0 : _a.includes("chart")) {
|
|
270
|
+
setIsShowAddChartModal(true);
|
|
271
|
+
}
|
|
272
|
+
if (module.type === "calendar") {
|
|
273
|
+
setIsShowAddCalendarModal(true);
|
|
274
|
+
}
|
|
275
|
+
} else if (key === "delete") {
|
|
276
|
+
Modal.confirm({
|
|
277
|
+
title: t("promptTitle"),
|
|
278
|
+
icon: /* @__PURE__ */ jsx(ExclamationCircleOutlined, {}),
|
|
279
|
+
content: t("promptContentDeleteComponents"),
|
|
280
|
+
onOk() {
|
|
281
|
+
deleteModule(module.id);
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
} else if (key === "copy") {
|
|
285
|
+
const data = JSON.parse(JSON.stringify(module));
|
|
286
|
+
delete data.id;
|
|
287
|
+
delete data.i;
|
|
288
|
+
addModule(data);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
),
|
|
293
|
+
/* @__PURE__ */ jsx(
|
|
294
|
+
ModuleContent,
|
|
295
|
+
{
|
|
296
|
+
module,
|
|
297
|
+
onUpdate: updateModule,
|
|
298
|
+
moduleDataApi,
|
|
299
|
+
activeId,
|
|
300
|
+
onClick: () => {
|
|
301
|
+
setActiveId(module.id);
|
|
302
|
+
},
|
|
303
|
+
rowWidth,
|
|
304
|
+
rowHeight,
|
|
305
|
+
onEdit: () => {
|
|
306
|
+
var _a;
|
|
307
|
+
setActiveId(module.id);
|
|
308
|
+
setSelectModuleData(module);
|
|
309
|
+
if (module.type === "statistics") {
|
|
310
|
+
setIsShowAddStatisticsModal(true);
|
|
311
|
+
}
|
|
312
|
+
if ((_a = module.type) == null ? void 0 : _a.includes("chart")) {
|
|
313
|
+
setIsShowAddChartModal(true);
|
|
314
|
+
}
|
|
315
|
+
if (module.type === "calendar") {
|
|
316
|
+
setIsShowAddCalendarModal(true);
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
onDelete: () => {
|
|
320
|
+
deleteModule(module.id);
|
|
321
|
+
},
|
|
322
|
+
onCopy: () => {
|
|
323
|
+
const data = JSON.parse(JSON.stringify(module));
|
|
324
|
+
delete data.id;
|
|
325
|
+
delete data.i;
|
|
326
|
+
addModule(data);
|
|
327
|
+
},
|
|
328
|
+
onStartDragOrResize: () => {
|
|
329
|
+
setIsDragOrResize(true);
|
|
330
|
+
},
|
|
331
|
+
onStopDragOrResize: () => {
|
|
332
|
+
setIsDragOrResize(false);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
)
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
module.id
|
|
339
|
+
))
|
|
340
|
+
}
|
|
341
|
+
)
|
|
342
|
+
}
|
|
343
|
+
) }) })
|
|
344
|
+
] }),
|
|
345
|
+
/* @__PURE__ */ jsx(
|
|
346
|
+
AddStatisticsModal,
|
|
347
|
+
{
|
|
348
|
+
open: isShowAddStatisticsModal,
|
|
349
|
+
selectModuleData,
|
|
350
|
+
onClose: () => {
|
|
351
|
+
setIsShowAddStatisticsModal(false);
|
|
352
|
+
},
|
|
353
|
+
onOk: ({ id, customData, customeStyle }) => {
|
|
354
|
+
if (id) {
|
|
355
|
+
updateModule(id, {
|
|
356
|
+
type: "statistics",
|
|
357
|
+
customData,
|
|
358
|
+
customeStyle
|
|
359
|
+
});
|
|
360
|
+
} else {
|
|
361
|
+
addModule({
|
|
362
|
+
type: "statistics",
|
|
363
|
+
customData,
|
|
364
|
+
customeStyle
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
setIsShowAddStatisticsModal(false);
|
|
368
|
+
},
|
|
369
|
+
moduleDataApi,
|
|
370
|
+
enumDataApi
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
/* @__PURE__ */ jsx(
|
|
374
|
+
AddStatisticsModal$1,
|
|
375
|
+
{
|
|
376
|
+
open: isShowAddCalendarModal,
|
|
377
|
+
selectModuleData,
|
|
378
|
+
onClose: () => {
|
|
379
|
+
setIsShowAddCalendarModal(false);
|
|
380
|
+
},
|
|
381
|
+
onOk: ({ id, customData }) => {
|
|
382
|
+
if (id) {
|
|
383
|
+
updateModule(id, {
|
|
384
|
+
type: "calendar",
|
|
385
|
+
customData
|
|
386
|
+
});
|
|
387
|
+
} else {
|
|
388
|
+
addModule({
|
|
389
|
+
type: "calendar",
|
|
390
|
+
customData
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
setIsShowAddCalendarModal(false);
|
|
394
|
+
},
|
|
395
|
+
moduleDataApi,
|
|
396
|
+
enumDataApi
|
|
397
|
+
}
|
|
398
|
+
),
|
|
399
|
+
/* @__PURE__ */ jsx(
|
|
400
|
+
AddStatisticsModal$2,
|
|
401
|
+
{
|
|
402
|
+
open: isShowAddChartModal,
|
|
403
|
+
selectModuleData,
|
|
404
|
+
onClose: () => {
|
|
405
|
+
setIsShowAddChartModal(false);
|
|
406
|
+
},
|
|
407
|
+
onOk: ({ id, type, customData, customeStyle }) => {
|
|
408
|
+
if (id) {
|
|
409
|
+
updateModule(id, {
|
|
410
|
+
type,
|
|
411
|
+
customData,
|
|
412
|
+
customeStyle
|
|
413
|
+
});
|
|
414
|
+
} else {
|
|
415
|
+
addModule({
|
|
416
|
+
type,
|
|
417
|
+
customData,
|
|
418
|
+
customeStyle
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
setIsShowAddChartModal(false);
|
|
422
|
+
},
|
|
423
|
+
moduleDataApi,
|
|
424
|
+
enumDataApi
|
|
425
|
+
}
|
|
426
|
+
)
|
|
427
|
+
] });
|
|
428
|
+
};
|
|
429
|
+
const index = React.memo((props) => {
|
|
430
|
+
return /* @__PURE__ */ jsx(AppProvider, { children: /* @__PURE__ */ jsx(DashboardWorkbench, { ...props }) });
|
|
431
|
+
});
|
|
432
|
+
export {
|
|
433
|
+
index as default
|
|
434
|
+
};
|
|
435
|
+
//# sourceMappingURL=index.js.map
|