sea-chart 2.0.1 → 2.0.2-alpha.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.
- package/dist/components/cell-factory/SimpleCellFormatter.js +1 -1
- package/dist/components/cell-factory/link-content.js +4 -4
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-popover/color-rules/color-rule.js +1 -1
- package/dist/components/color-popover/color-rules/index.js +1 -1
- package/dist/components/color-popover/color-rules-popover.js +6 -6
- package/dist/components/color-popover/color-selector-popover.js +2 -2
- package/dist/components/color-setting/color-group-selector.js +1 -1
- package/dist/components/common-add-tool/index.js +2 -2
- package/dist/components/data-process-setter/hide-column-setter.js +1 -1
- package/dist/components/data-process-setter/sort-setter.js +2 -2
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +4 -4
- package/dist/components/icon/index.js +2 -2
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +1 -1
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +1 -1
- package/dist/components/popover/sort-popover/sort-popover.js +1 -1
- package/dist/components/row-card/row-card-header-cell.js +2 -2
- package/dist/components/row-card/row-card-header.js +1 -1
- package/dist/components/row-card/row-card-item.js +2 -2
- package/dist/components/row-card/row-card.js +2 -2
- package/dist/components/statistic-record-dialog/index.js +1 -1
- package/dist/components/types-dialog/index.js +7 -7
- package/dist/context.js +2 -2
- package/dist/services/map-json.js +4 -4
- package/dist/settings/basic-number-card/style-settings.js +1 -1
- package/dist/settings/index.js +3 -3
- package/dist/settings/map-settings/map-style-settings.js +1 -1
- package/dist/settings/stacks-settings/index.js +1 -1
- package/dist/settings/style-settings.js +1 -1
- package/dist/settings/table-settings/data-settings.js +1 -1
- package/dist/settings/trend-settings/style-setting.js +2 -2
- package/dist/settings/widgets/chart-type/index.js +3 -3
- package/dist/settings/widgets/date-summary-item.js +2 -2
- package/dist/settings/widgets/numeric-summary-item.js +2 -2
- package/dist/settings/widgets/summary-settings.js +2 -2
- package/dist/settings/widgets/switch/index.js +1 -1
- package/dist/settings/widgets/y-axis-group-settings.js +1 -1
- package/dist/utils/chart-utils/base-utils.js +7 -7
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +1 -1
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +2 -2
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +1 -1
- package/dist/utils/chart-utils/sql-statistics-utils.js +9 -9
- package/dist/utils/collaborator-utils.js +1 -1
- package/dist/utils/collaborator.js +2 -2
- package/dist/utils/column-utils.js +12 -12
- package/dist/utils/common-utils.js +1 -1
- package/dist/utils/date-translate.js +1 -1
- package/dist/utils/object-utils.js +1 -1
- package/dist/utils/options-utils.js +2 -2
- package/dist/utils/row-record-utils.js +2 -2
- package/dist/utils/sql/chart-data-sql.js +58 -58
- package/dist/utils/sql/column-2-sql-column.js +18 -18
- package/dist/view/index.js +2 -5
- package/dist/view/title/index.js +2 -2
- package/dist/view/wrapper/bar-group.js +22 -31
- package/dist/view/wrapper/bar.js +168 -95
- package/dist/view/wrapper/basic-number-card.js +8 -8
- package/dist/view/wrapper/chart-component.js +17 -54
- package/dist/view/wrapper/index.js +2 -231
- package/dist/view/wrapper/table/index.js +1 -1
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +3 -3
- package/dist/view/wrapper/table/pivot-table-display-name.js +1 -1
- package/dist/view/wrapper/table/two-dimension-table.js +8 -8
- package/dist/view/wrapper/table-element/components/formatter.js +2 -2
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +1 -1
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +17 -17
- package/dist/view/wrapper/table-element/components/link-formatter.js +17 -17
- package/dist/view/wrapper/table-element/components/record.js +3 -3
- package/dist/view/wrapper/table-element/components/records.js +4 -4
- package/dist/view/wrapper/table-element/components/utils.js +1 -1
- package/dist/view/wrapper/trend.js +18 -18
- package/package.json +5 -11
- package/dist/utils/custom-g2.js +0 -684
- package/dist/view/wrapper/area.js +0 -282
- package/dist/view/wrapper/bar-custom.js +0 -239
- package/dist/view/wrapper/combination.js +0 -728
- package/dist/view/wrapper/compare.js +0 -383
- package/dist/view/wrapper/completeness.js +0 -174
- package/dist/view/wrapper/dashboard.js +0 -179
- package/dist/view/wrapper/funnel.js +0 -206
- package/dist/view/wrapper/heat-map.js +0 -434
- package/dist/view/wrapper/horizontal-bar-group.js +0 -226
- package/dist/view/wrapper/horizontal-bar.js +0 -175
- package/dist/view/wrapper/horizontal-component.js +0 -89
- package/dist/view/wrapper/line-group.js +0 -219
- package/dist/view/wrapper/line.js +0 -222
- package/dist/view/wrapper/map.js +0 -368
- package/dist/view/wrapper/mirror.js +0 -218
- package/dist/view/wrapper/pie.js +0 -253
- package/dist/view/wrapper/ring.js +0 -328
- package/dist/view/wrapper/scatter.js +0 -140
- package/dist/view/wrapper/treemap.js +0 -206
- package/dist/view/wrapper/world-map.js +0 -413
- package/dist/view/wrapper/wrappers-d3/bar.js +0 -262
|
@@ -51,7 +51,7 @@ function LinkFormatter(props) {
|
|
|
51
51
|
if (!value) return null;
|
|
52
52
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
53
|
title: value,
|
|
54
|
-
key:
|
|
54
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
55
55
|
className: "table-element-link-item"
|
|
56
56
|
}, value);
|
|
57
57
|
}));
|
|
@@ -63,7 +63,7 @@ function LinkFormatter(props) {
|
|
|
63
63
|
}, cellValue.map((value, index) => {
|
|
64
64
|
if (!value && value !== 0) return null;
|
|
65
65
|
return /*#__PURE__*/_react.default.createElement(_NumberFormatter2.default, {
|
|
66
|
-
key:
|
|
66
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
67
67
|
containerClassName: "table-element-link-item",
|
|
68
68
|
data: displayColumnData || {},
|
|
69
69
|
value: value
|
|
@@ -80,7 +80,7 @@ function LinkFormatter(props) {
|
|
|
80
80
|
format
|
|
81
81
|
} = displayColumnData || {};
|
|
82
82
|
return /*#__PURE__*/_react.default.createElement(_DateFormatter2.default, {
|
|
83
|
-
key:
|
|
83
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
84
84
|
value: value,
|
|
85
85
|
format: format,
|
|
86
86
|
containerClassName: "table-element-link-item"
|
|
@@ -94,7 +94,7 @@ function LinkFormatter(props) {
|
|
|
94
94
|
}, cellValue.map((value, index) => {
|
|
95
95
|
if (!value) return null;
|
|
96
96
|
return /*#__PURE__*/_react.default.createElement(_CTimeFormatter2.default, {
|
|
97
|
-
key:
|
|
97
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
98
98
|
value: value,
|
|
99
99
|
containerClassName: "table-element-link-item"
|
|
100
100
|
});
|
|
@@ -107,7 +107,7 @@ function LinkFormatter(props) {
|
|
|
107
107
|
}, cellValue.map((value, index) => {
|
|
108
108
|
if (!value) return null;
|
|
109
109
|
return /*#__PURE__*/_react.default.createElement(_MTimeFormatter2.default, {
|
|
110
|
-
key:
|
|
110
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
111
111
|
value: value,
|
|
112
112
|
containerClassName: "table-element-link-item"
|
|
113
113
|
});
|
|
@@ -122,7 +122,7 @@ function LinkFormatter(props) {
|
|
|
122
122
|
const displayValue = (0, _dtableUtils.getDurationDisplayString)(value, displayColumnData);
|
|
123
123
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
124
124
|
title: displayValue,
|
|
125
|
-
key:
|
|
125
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
126
126
|
className: "table-element-link-item"
|
|
127
127
|
}, displayValue);
|
|
128
128
|
}));
|
|
@@ -152,7 +152,7 @@ function LinkFormatter(props) {
|
|
|
152
152
|
return /*#__PURE__*/_react.default.createElement(_MultipleSelectFormatter2.default, {
|
|
153
153
|
value: cellValue,
|
|
154
154
|
options: options || [],
|
|
155
|
-
containerClassName:
|
|
155
|
+
containerClassName: "table-element-".concat(displayColumnType, "-formatter")
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
case _dtableUtils.CellType.MULTIPLE_SELECT:
|
|
@@ -168,7 +168,7 @@ function LinkFormatter(props) {
|
|
|
168
168
|
const valueDisplayString = Array.isArray(value) ? (0, _dtableUtils.getMultipleOptionName)(options, value) : (0, _dtableUtils.getMultipleOptionName)(options, [value]);
|
|
169
169
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
170
170
|
title: valueDisplayString,
|
|
171
|
-
key:
|
|
171
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
172
172
|
className: "table-element-link-item"
|
|
173
173
|
}, valueDisplayString);
|
|
174
174
|
}));
|
|
@@ -190,7 +190,7 @@ function LinkFormatter(props) {
|
|
|
190
190
|
}, displayColumn, collaborators);
|
|
191
191
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
192
192
|
title: valueDisplayString,
|
|
193
|
-
key:
|
|
193
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
194
194
|
className: "table-element-link-item"
|
|
195
195
|
}, valueDisplayString);
|
|
196
196
|
}));
|
|
@@ -201,9 +201,9 @@ function LinkFormatter(props) {
|
|
|
201
201
|
className: containerClassName
|
|
202
202
|
}, cellValue.map((value, index) => {
|
|
203
203
|
return /*#__PURE__*/_react.default.createElement(_CheckboxFormatter2.default, {
|
|
204
|
-
key:
|
|
204
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
205
205
|
value: Boolean(value),
|
|
206
|
-
containerClassName:
|
|
206
|
+
containerClassName: "table-element-".concat(displayColumnType, "-item")
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
209
|
}
|
|
@@ -218,7 +218,7 @@ function LinkFormatter(props) {
|
|
|
218
218
|
});
|
|
219
219
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
220
220
|
title: displayString,
|
|
221
|
-
key:
|
|
221
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
222
222
|
className: "table-element-link-item"
|
|
223
223
|
}, displayString);
|
|
224
224
|
}));
|
|
@@ -230,9 +230,9 @@ function LinkFormatter(props) {
|
|
|
230
230
|
}, cellValue.map((value, index) => {
|
|
231
231
|
if (!value) return null;
|
|
232
232
|
return /*#__PURE__*/_react.default.createElement(_LongTextFormatter2.default, {
|
|
233
|
-
key:
|
|
233
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
234
234
|
value: value,
|
|
235
|
-
containerClassName:
|
|
235
|
+
containerClassName: "table-element-".concat(displayColumnType, "-item")
|
|
236
236
|
});
|
|
237
237
|
}));
|
|
238
238
|
}
|
|
@@ -248,7 +248,7 @@ function LinkFormatter(props) {
|
|
|
248
248
|
}, displayColumn, collaborators);
|
|
249
249
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
250
250
|
title: displayString,
|
|
251
|
-
key:
|
|
251
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
252
252
|
className: "table-element-link-item"
|
|
253
253
|
}, displayString);
|
|
254
254
|
}));
|
|
@@ -260,7 +260,7 @@ function LinkFormatter(props) {
|
|
|
260
260
|
}, cellValue.map((value, index) => {
|
|
261
261
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
262
262
|
title: value + '',
|
|
263
|
-
key:
|
|
263
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
264
264
|
className: "table-element-link-item"
|
|
265
265
|
}, value + '');
|
|
266
266
|
}));
|
|
@@ -274,7 +274,7 @@ function LinkFormatter(props) {
|
|
|
274
274
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
275
275
|
title: value,
|
|
276
276
|
value: value,
|
|
277
|
-
key:
|
|
277
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
278
278
|
className: "table-element-link-item"
|
|
279
279
|
}, value);
|
|
280
280
|
}));
|
|
@@ -50,7 +50,7 @@ function LinkFormatter(props) {
|
|
|
50
50
|
}, cellValue.map((value, index) => {
|
|
51
51
|
if (!value) return null;
|
|
52
52
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
-
key:
|
|
53
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
54
54
|
className: "table-element-link-item"
|
|
55
55
|
}, value);
|
|
56
56
|
}));
|
|
@@ -62,7 +62,7 @@ function LinkFormatter(props) {
|
|
|
62
62
|
}, cellValue.map((value, index) => {
|
|
63
63
|
if (!value && value !== 0) return null;
|
|
64
64
|
return /*#__PURE__*/_react.default.createElement(_NumberFormatter2.default, {
|
|
65
|
-
key:
|
|
65
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
66
66
|
containerClassName: "table-element-link-item",
|
|
67
67
|
data: displayColumnData || {},
|
|
68
68
|
value: value
|
|
@@ -79,7 +79,7 @@ function LinkFormatter(props) {
|
|
|
79
79
|
format
|
|
80
80
|
} = displayColumnData || {};
|
|
81
81
|
return /*#__PURE__*/_react.default.createElement(_DateFormatter2.default, {
|
|
82
|
-
key:
|
|
82
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
83
83
|
value: value,
|
|
84
84
|
format: format,
|
|
85
85
|
containerClassName: "table-element-link-item"
|
|
@@ -93,7 +93,7 @@ function LinkFormatter(props) {
|
|
|
93
93
|
}, cellValue.map((value, index) => {
|
|
94
94
|
if (!value) return null;
|
|
95
95
|
return /*#__PURE__*/_react.default.createElement(_CTimeFormatter2.default, {
|
|
96
|
-
key:
|
|
96
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
97
97
|
value: value,
|
|
98
98
|
containerClassName: "table-element-link-item"
|
|
99
99
|
});
|
|
@@ -106,7 +106,7 @@ function LinkFormatter(props) {
|
|
|
106
106
|
}, cellValue.map((value, index) => {
|
|
107
107
|
if (!value) return null;
|
|
108
108
|
return /*#__PURE__*/_react.default.createElement(_MTimeFormatter2.default, {
|
|
109
|
-
key:
|
|
109
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
110
110
|
value: value,
|
|
111
111
|
containerClassName: "table-element-link-item"
|
|
112
112
|
});
|
|
@@ -119,7 +119,7 @@ function LinkFormatter(props) {
|
|
|
119
119
|
}, cellValue.map((value, index) => {
|
|
120
120
|
if (!value) return null;
|
|
121
121
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
-
key:
|
|
122
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
123
123
|
className: "table-element-link-item"
|
|
124
124
|
}, (0, _dtableUtils.getDurationDisplayString)(value, displayColumnData));
|
|
125
125
|
}));
|
|
@@ -149,7 +149,7 @@ function LinkFormatter(props) {
|
|
|
149
149
|
return /*#__PURE__*/_react.default.createElement(_MultipleSelectFormatter2.default, {
|
|
150
150
|
value: cellValue,
|
|
151
151
|
options: options || [],
|
|
152
|
-
containerClassName:
|
|
152
|
+
containerClassName: "table-element-".concat(displayColumnType, "-formatter")
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
case _dtableUtils.CellType.MULTIPLE_SELECT:
|
|
@@ -164,7 +164,7 @@ function LinkFormatter(props) {
|
|
|
164
164
|
if (!value) return null;
|
|
165
165
|
const valueDisplayString = Array.isArray(value) ? (0, _dtableUtils.getMultipleOptionName)(options, value) : (0, _dtableUtils.getMultipleOptionName)(options, [value]);
|
|
166
166
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
167
|
-
key:
|
|
167
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
168
168
|
className: "table-element-link-item"
|
|
169
169
|
}, valueDisplayString);
|
|
170
170
|
}));
|
|
@@ -185,7 +185,7 @@ function LinkFormatter(props) {
|
|
|
185
185
|
[displayColumn.key]: [value]
|
|
186
186
|
}, displayColumn, collaborators);
|
|
187
187
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
188
|
-
key:
|
|
188
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
189
189
|
className: "table-element-link-item"
|
|
190
190
|
}, valueDisplayString);
|
|
191
191
|
}));
|
|
@@ -196,9 +196,9 @@ function LinkFormatter(props) {
|
|
|
196
196
|
className: containerClassName
|
|
197
197
|
}, cellValue.map((value, index) => {
|
|
198
198
|
return /*#__PURE__*/_react.default.createElement(_CheckboxFormatter2.default, {
|
|
199
|
-
key:
|
|
199
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
200
200
|
value: Boolean(value),
|
|
201
|
-
containerClassName:
|
|
201
|
+
containerClassName: "table-element-".concat(displayColumnType, "-item")
|
|
202
202
|
});
|
|
203
203
|
}));
|
|
204
204
|
}
|
|
@@ -209,7 +209,7 @@ function LinkFormatter(props) {
|
|
|
209
209
|
}, cellValue.map((value, index) => {
|
|
210
210
|
if (!value) return null;
|
|
211
211
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
-
key:
|
|
212
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
213
213
|
className: "table-element-link-item"
|
|
214
214
|
}, (0, _dtableUtils.getGeolocationDisplayString)(value, displayColumnData, {
|
|
215
215
|
hyphen: ' '
|
|
@@ -223,9 +223,9 @@ function LinkFormatter(props) {
|
|
|
223
223
|
}, cellValue.map((value, index) => {
|
|
224
224
|
if (!value) return null;
|
|
225
225
|
return /*#__PURE__*/_react.default.createElement(_LongTextFormatter2.default, {
|
|
226
|
-
key:
|
|
226
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
227
227
|
value: value,
|
|
228
|
-
containerClassName:
|
|
228
|
+
containerClassName: "table-element-".concat(displayColumnType, "-item")
|
|
229
229
|
});
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
@@ -237,7 +237,7 @@ function LinkFormatter(props) {
|
|
|
237
237
|
}, cellValue.map((value, index) => {
|
|
238
238
|
if (!value) return null;
|
|
239
239
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
240
|
-
key:
|
|
240
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
241
241
|
className: "table-element-link-item"
|
|
242
242
|
}, (0, _valueDisplayUtils.getCellDisplayValue)({
|
|
243
243
|
[displayColumn.key]: value
|
|
@@ -250,7 +250,7 @@ function LinkFormatter(props) {
|
|
|
250
250
|
className: containerClassName
|
|
251
251
|
}, cellValue.map((value, index) => {
|
|
252
252
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
253
|
-
key:
|
|
253
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
254
254
|
className: "table-element-link-item"
|
|
255
255
|
}, value + '');
|
|
256
256
|
}));
|
|
@@ -262,7 +262,7 @@ function LinkFormatter(props) {
|
|
|
262
262
|
}, cellValue.map((value, index) => {
|
|
263
263
|
if (!value) return null;
|
|
264
264
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
265
|
-
key:
|
|
265
|
+
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
266
266
|
className: "table-element-link-item"
|
|
267
267
|
}, value);
|
|
268
268
|
}));
|
|
@@ -37,12 +37,12 @@ function Record(_ref) {
|
|
|
37
37
|
className += 'table-element-result-table-formula-image-cell';
|
|
38
38
|
}
|
|
39
39
|
} else {
|
|
40
|
-
className +=
|
|
40
|
+
className += "table-element-result-table-".concat(type, "-cell");
|
|
41
41
|
}
|
|
42
42
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
-
key:
|
|
43
|
+
key: "".concat(key, "-").concat({
|
|
44
44
|
index
|
|
45
|
-
}
|
|
45
|
+
}),
|
|
46
46
|
className: className,
|
|
47
47
|
style: {
|
|
48
48
|
width,
|
|
@@ -21,7 +21,7 @@ class Records extends _react.Component {
|
|
|
21
21
|
chart
|
|
22
22
|
} = this.props;
|
|
23
23
|
const displayColumns = this.calcuteDisplayColumns(this.props.shownColumns);
|
|
24
|
-
const container = document.querySelector(
|
|
24
|
+
const container = document.querySelector("#sea-chart-cavans-container-".concat(chart.id));
|
|
25
25
|
let resultTotalwidth = displayColumns.reduce((cur, nextItem) => {
|
|
26
26
|
return cur + nextItem.width;
|
|
27
27
|
}, 0);
|
|
@@ -52,7 +52,7 @@ class Records extends _react.Component {
|
|
|
52
52
|
const {
|
|
53
53
|
chart
|
|
54
54
|
} = this.props;
|
|
55
|
-
const columnsWidthDataStr = localStorage.getItem(
|
|
55
|
+
const columnsWidthDataStr = localStorage.getItem("statistic_".concat(chart.id, "_columns_width"));
|
|
56
56
|
const columnsWidthData = columnsWidthDataStr ? JSON.parse(columnsWidthDataStr) : [];
|
|
57
57
|
const columns = shownColumns.filter(column => !_datasetUtils.DATASET_NOT_SUPPORT_COLUMN_TYPES.includes(column.type)).map(column => {
|
|
58
58
|
const {
|
|
@@ -95,7 +95,7 @@ class Records extends _react.Component {
|
|
|
95
95
|
};
|
|
96
96
|
});
|
|
97
97
|
// clear old data if there are new columns and not matched with the old data
|
|
98
|
-
localStorage.setItem(
|
|
98
|
+
localStorage.setItem("statistic_".concat(chart.id, "_columns_width"), JSON.stringify(newColumnsWidthData));
|
|
99
99
|
return columns;
|
|
100
100
|
};
|
|
101
101
|
this.resizeColumnWidth = (column, width) => {
|
|
@@ -120,7 +120,7 @@ class Records extends _react.Component {
|
|
|
120
120
|
const {
|
|
121
121
|
chart
|
|
122
122
|
} = this.props;
|
|
123
|
-
localStorage.setItem(
|
|
123
|
+
localStorage.setItem("statistic_".concat(chart.id, "_columns_width"), JSON.stringify(columnsWidthData));
|
|
124
124
|
};
|
|
125
125
|
this.setVerticalScrollbarTop = scrollTop => {
|
|
126
126
|
if (this.verticalScrollbar) {
|
|
@@ -15,7 +15,7 @@ const isValidUrl = url => {
|
|
|
15
15
|
exports.isValidUrl = isValidUrl;
|
|
16
16
|
const getValidUrl = value => {
|
|
17
17
|
const url = getTrimmedString(value);
|
|
18
|
-
return isValidUrl(url) ? url :
|
|
18
|
+
return isValidUrl(url) ? url : "http://".concat(url);
|
|
19
19
|
};
|
|
20
20
|
exports.getValidUrl = getValidUrl;
|
|
21
21
|
const openUrlLink = url => {
|
|
@@ -99,27 +99,27 @@ class Trend extends _react.Component {
|
|
|
99
99
|
if (labelFontSize <= 12) {
|
|
100
100
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
101
101
|
style: {
|
|
102
|
-
fontSize:
|
|
102
|
+
fontSize: "".concat(labelFontSize, "px"),
|
|
103
103
|
width: '100%'
|
|
104
104
|
}
|
|
105
105
|
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
106
106
|
style: {
|
|
107
|
-
color:
|
|
107
|
+
color: "".concat(color),
|
|
108
108
|
display: 'inline-block',
|
|
109
|
-
width:
|
|
110
|
-
height:
|
|
111
|
-
lineHeight:
|
|
109
|
+
width: "".concat(1.5 * labelFontSize, "px"),
|
|
110
|
+
height: "".concat(1.5 * labelFontSize, "px"),
|
|
111
|
+
lineHeight: "".concat(1.5 * labelFontSize, "px"),
|
|
112
112
|
borderRadius: '50%',
|
|
113
|
-
backgroundColor:
|
|
113
|
+
backgroundColor: "".concat(color, "26"),
|
|
114
114
|
textAlign: 'center',
|
|
115
115
|
marginRight: '8px',
|
|
116
116
|
fontWeight: 'bold',
|
|
117
117
|
fontSize: '10px'
|
|
118
118
|
},
|
|
119
|
-
className:
|
|
119
|
+
className: "dtable-font ".concat(icon)
|
|
120
120
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
121
121
|
style: {
|
|
122
|
-
color:
|
|
122
|
+
color: "".concat(color)
|
|
123
123
|
}
|
|
124
124
|
}, result));
|
|
125
125
|
}
|
|
@@ -128,7 +128,7 @@ class Trend extends _react.Component {
|
|
|
128
128
|
display: 'flex',
|
|
129
129
|
flexWrap: 'wrap',
|
|
130
130
|
justifyContent: label_text_align,
|
|
131
|
-
fontSize:
|
|
131
|
+
fontSize: "".concat(labelFontSize, "px"),
|
|
132
132
|
width: '100%'
|
|
133
133
|
}
|
|
134
134
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -142,17 +142,17 @@ class Trend extends _react.Component {
|
|
|
142
142
|
flexBasis: 'auto',
|
|
143
143
|
color: color,
|
|
144
144
|
display: 'inline-block',
|
|
145
|
-
width:
|
|
146
|
-
height:
|
|
147
|
-
lineHeight:
|
|
145
|
+
width: "".concat(1.5 * labelFontSize, "px"),
|
|
146
|
+
height: "".concat(1.5 * labelFontSize, "px"),
|
|
147
|
+
lineHeight: "".concat(1.5 * labelFontSize, "px"),
|
|
148
148
|
borderRadius: '50%',
|
|
149
|
-
backgroundColor:
|
|
149
|
+
backgroundColor: "".concat(color, "26"),
|
|
150
150
|
textAlign: 'center',
|
|
151
151
|
marginRight: '8px',
|
|
152
152
|
fontWeight: 'bold',
|
|
153
153
|
fontSize: '11px'
|
|
154
154
|
},
|
|
155
|
-
className:
|
|
155
|
+
className: "dtable-font ".concat(icon)
|
|
156
156
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
157
157
|
style: {
|
|
158
158
|
color: color,
|
|
@@ -207,11 +207,11 @@ class Trend extends _react.Component {
|
|
|
207
207
|
width: '100%',
|
|
208
208
|
top: 'calc((100% - 25px)/2)',
|
|
209
209
|
transform: 'translateY(-50%)',
|
|
210
|
-
fontSize:
|
|
210
|
+
fontSize: "".concat(num_font_size, "px"),
|
|
211
211
|
margin: '-8px 0 2px 0',
|
|
212
|
-
textAlign:
|
|
213
|
-
fontWeight:
|
|
214
|
-
color:
|
|
212
|
+
textAlign: "".concat(num_text_align),
|
|
213
|
+
fontWeight: "".concat(num_font_weight),
|
|
214
|
+
color: "".concat(num_font_color)
|
|
215
215
|
}
|
|
216
216
|
}, content), /*#__PURE__*/_react.default.createElement("p", {
|
|
217
217
|
className: "label-content",
|
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sea-chart",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2-alpha.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@antv/data-set": "0.11.8",
|
|
7
|
-
"@antv/g2": "4.1.46",
|
|
8
6
|
"@dnd-kit/core": "^6.1.0",
|
|
9
7
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
10
8
|
"@dnd-kit/sortable": "^8.0.0",
|
|
@@ -18,17 +16,12 @@
|
|
|
18
16
|
"lodash-es": "^4.17.21",
|
|
19
17
|
"rc-slider": "^10.5.0",
|
|
20
18
|
"react-i18next": "^14.1.2",
|
|
21
|
-
"react-select": "~5.10.0",
|
|
22
|
-
"react-sweet-progress": "~1.1.2",
|
|
23
19
|
"reactstrap": "~9.2.3",
|
|
24
20
|
"shallowequal": "^1.1.0",
|
|
25
|
-
"slugid": "~5.0.1"
|
|
26
|
-
"svg-sprite-loader": "^6.0.11",
|
|
27
|
-
"svgo-loader": "^3.0.0"
|
|
21
|
+
"slugid": "~5.0.1"
|
|
28
22
|
},
|
|
29
23
|
"peerDependencies": {
|
|
30
|
-
"
|
|
31
|
-
"dtable-ui-component": "6.0.2",
|
|
24
|
+
"dtable-ui-component": "6.0.4",
|
|
32
25
|
"dtable-utils": "~5.0.*",
|
|
33
26
|
"prop-types": "15.8.1",
|
|
34
27
|
"react": "18.3.1",
|
|
@@ -140,7 +133,6 @@
|
|
|
140
133
|
"raf": "3.4.0",
|
|
141
134
|
"react": "~18.3.1",
|
|
142
135
|
"react-app-polyfill": "~3.0.0",
|
|
143
|
-
"react-color": "~2.19.3",
|
|
144
136
|
"react-cookies": "0.1.1",
|
|
145
137
|
"react-dev-utils": "^12.0.1",
|
|
146
138
|
"react-dom": "~18.3.1",
|
|
@@ -151,6 +143,8 @@
|
|
|
151
143
|
"rimraf": "^5.0.7",
|
|
152
144
|
"sass-loader": "13.3.2",
|
|
153
145
|
"style-loader": "^1.0.1",
|
|
146
|
+
"svg-sprite-loader": "~6.0.11",
|
|
147
|
+
"svgo-loader": "~3.0.0",
|
|
154
148
|
"terser-webpack-plugin": "4.2.3",
|
|
155
149
|
"ts-pnp": "1.1.4",
|
|
156
150
|
"url-loader": "4.1.1",
|