dtable-statistic 4.4.24-alpha.9 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,11 +66,16 @@
66
66
  .statistic-chart-addition-dialog .statistic-modal-body .statistic-chart-render-container .statistic-chart-render .sea-chart-settings {
67
67
  width: 300px;
68
68
  height: 100%;
69
- background-color: #fff;
69
+ background-color: #f8f8f8;
70
70
  margin-left: 16px;
71
- border-top: 1px solid #e4e4e4;
72
- border-left: 1px solid #e4e4e4;
73
- border-right: 1px solid #e4e4e4;
71
+ border-top: 0px;
72
+ border-left: 0px;
73
+ border-right: 0px;
74
+ border-radius: 3px
75
+ }
76
+
77
+ .statistic-chart-addition-dialog .statistic-modal-body .statistic-chart-render-container .statistic-chart-render .sea-chart-settings .sea-chart-settings-type {
78
+ background: #f8f8f8;
74
79
  }
75
80
 
76
81
  .statistic-chart-addition-dialog .statistic-chart-settings {
@@ -85,7 +85,7 @@ class ChartEditDialog extends _react.Component {
85
85
  dataSources: "view",
86
86
  theme: theme,
87
87
  chartColorTheme: colorThemeName,
88
- integrator: "statistic",
88
+ isCalculateByView: true,
89
89
  onChange: this.onSettingChange
90
90
  })))));
91
91
  }
@@ -9,9 +9,10 @@ exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
11
11
  var _reactstrap = require("reactstrap");
12
+ var _DTableSearchInput = _interopRequireDefault(require("dtable-ui-component/lib/DTableSearchInput"));
13
+ var _Loading = _interopRequireDefault(require("dtable-ui-component/lib/Loading"));
12
14
  var _dtableUtils = require("dtable-utils");
13
15
  var _dtableDbApi = _interopRequireDefault(require("../../../api/dtable-db-api"));
14
- var _index = require("../../index");
15
16
  var _constants = require("../../../constants");
16
17
  require("./index.css");
17
18
  // import { searchRows } from '../../../utils';
@@ -314,7 +315,7 @@ class StatisticRecordDialog extends _react.default.Component {
314
315
  className: "search-input-container"
315
316
  }, /*#__PURE__*/_react.default.createElement("i", {
316
317
  className: "header-search-icon dtable-font dtable-icon-search"
317
- }), /*#__PURE__*/_react.default.createElement(_index.DtableSearchInput, {
318
+ }), /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
318
319
  autoFocus: true,
319
320
  isClearable: true,
320
321
  className: "search-tables-input",
@@ -337,7 +338,7 @@ class StatisticRecordDialog extends _react.default.Component {
337
338
  className: "statistic-records-container"
338
339
  }, loading ? /*#__PURE__*/_react.default.createElement("div", {
339
340
  className: "d-flex py-8"
340
- }, /*#__PURE__*/_react.default.createElement(_index.Loading, null)) : this.renderRowsCards())));
341
+ }, /*#__PURE__*/_react.default.createElement(_Loading.default, null)) : this.renderRowsCards())));
341
342
  }
342
343
  }
343
344
  var _default = exports.default = StatisticRecordDialog;
@@ -5,15 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.KEY_SELECTED_DASHBOARD = exports.INIT_STAT_ITEM = exports.GROUPBY_TYPE = exports.GEOLOCATION_GRANULARITY_LIST = exports.GEOLOCATION_GRANULARITY = exports.FILL_BORDER_COLOR_MAP = exports.EMPTY_NAME = exports.DTABLE_DB_SUMMARY_METHOD = exports.DEFAULT_NUMBER_FORMAT_OBJECT = exports.DEFAULT_LABEL_FONT_SIZE = exports.DEFAULT_GRID_SIZE = exports.DEFAULT_GRID_DISTANCE = exports.DEFAULT_ANNOTATION_SIZE = exports.DATE_GRANULARITY_LIST = exports.DATE_GRANULARITY = exports.DATA_SORT_TYPE_LABEL = exports.DATA_SORT_TYPES = exports.DATA_SORT_TYPE = exports.DASHBOARD_ACTION_TYPE = exports.CommonEventTypes = exports.COLOR_OPTIONS = exports.CHART_STYLE_COLORS = exports.BASIC_CHART_COLUMN_LIST = void 0;
8
+ exports.KEY_SELECTED_DASHBOARD = exports.EMPTY_NAME = exports.DASHBOARD_ACTION_TYPE = exports.CommonEventTypes = exports.CHART_STYLE_COLORS = void 0;
9
9
  Object.defineProperty(exports, "KeyCodes", {
10
10
  enumerable: true,
11
11
  get: function () {
12
12
  return _keyCodes.default;
13
13
  }
14
14
  });
15
- exports.Y_AXIS_TYPE_PREFIX = exports.USEABLE_COLOR_TYPES = exports.TYPE_DISPLAY_COLOR_USING = exports.TYPE_COLOR_USING = exports.TOO_MANY_STATISTIC_ENTRIES = exports.TITLE_TOTAL = exports.TITLE_INCREASE = exports.TITLE_AMOUNT = exports.TIME_COLUMN_LIST = exports.THEME_NAME_MAP = exports.SUPPORT_LABEL_FONT_SIZE_CHARTS = exports.SUMMARY_TYPE = exports.SUMMARY_METHOD_MAP = exports.SUMMARY_METHOD = exports.STAT_TYPE = exports.STAT_ITEM_THEME_COLORS = exports.STATISTIC_TYPE_SHOW = exports.STATISTICS_COUNT_TYPE = exports.STATISTICS_COUNT_SHOW = exports.PIE_COlOR_OPTIONS_MAP = exports.PIE_COLOR_OPTIONS = exports.PIE_CHART_COLORS = exports.NO_STATISTIC_RESULTS = exports.MULTIPLE_CELL_VALUE_COLUMN_TYPE_MAP = exports.MONTH_MIRROR = exports.MIRROR_COLUMN_LIST = exports.LEGEND_RIGHT = exports.LEGEND_LEFT = exports.LEGEND_DIRECTION_MAP = exports.LABEL_POSITIONS_MAP = exports.LABEL_POSITIONS = exports.LABEL_POSITION = exports.LABEL_FORMATS_MAP = exports.LABEL_FORMATS = exports.LABEL_CONFIG_CHANGED = exports.LABEL_COLORS = void 0;
16
- var _dtableUtils = require("dtable-utils");
15
+ exports.THEME_NAME_MAP = exports.SUMMARY_TYPE = exports.SUMMARY_METHOD_MAP = exports.SUMMARY_METHOD = exports.STAT_TYPE = exports.STATISTICS_COUNT_TYPE = void 0;
17
16
  var _keyCodes = _interopRequireDefault(require("./key-codes"));
18
17
  var CommonEventTypes = _interopRequireWildcard(require("./event-types"));
19
18
  exports.CommonEventTypes = CommonEventTypes;
@@ -65,24 +64,6 @@ const SUMMARY_TYPE = exports.SUMMARY_TYPE = {
65
64
  COUNT: 'count',
66
65
  ADVANCED: 'advanced'
67
66
  };
68
- const STATISTICS_COUNT_SHOW = exports.STATISTICS_COUNT_SHOW = {
69
- Max: 'Max',
70
- Mean: 'Mean',
71
- Min: 'Min',
72
- Sum: 'Sum',
73
- Distinct_values: 'Number_of_distinct_values',
74
- Row_count: 'Row_count',
75
- advanced: 'Summarize_a_field',
76
- city: 'By_city',
77
- district: 'By_district_county',
78
- province: 'By_province',
79
- count: 'Counting',
80
- day: 'By_day',
81
- week: 'By_week',
82
- month: 'By_month',
83
- quarter: 'By_quarter',
84
- year: 'By_year'
85
- };
86
67
  const STATISTICS_COUNT_TYPE = exports.STATISTICS_COUNT_TYPE = {
87
68
  COUNT: 'count',
88
69
  ADVANCED: 'advanced',
@@ -108,385 +89,11 @@ const SUMMARY_METHOD_MAP = exports.SUMMARY_METHOD_MAP = {
108
89
  Row_count: 'Row_count'
109
90
  };
110
91
  const SUMMARY_METHOD = exports.SUMMARY_METHOD = [SUMMARY_METHOD_MAP.Sum, SUMMARY_METHOD_MAP.Max, SUMMARY_METHOD_MAP.Min, SUMMARY_METHOD_MAP.Mean, SUMMARY_METHOD_MAP.Distinct_values];
111
- const MONTH_MIRROR = exports.MONTH_MIRROR = {
112
- '0': 'Jan',
113
- '1': 'Feb',
114
- '2': 'Mar',
115
- '3': 'Apr',
116
- '4': 'May',
117
- '5': 'Jun',
118
- '6': 'Jul',
119
- '7': 'Aug',
120
- '8': 'Sep',
121
- '9': 'Oct',
122
- '10': 'Nov',
123
- '11': 'Dec'
124
- };
125
- const TIME_COLUMN_LIST = exports.TIME_COLUMN_LIST = [_dtableUtils.CellType.CTIME, _dtableUtils.CellType.MTIME, _dtableUtils.CellType.DATE];
126
- const MIRROR_COLUMN_LIST = exports.MIRROR_COLUMN_LIST = [_dtableUtils.CellType.TEXT, _dtableUtils.CellType.NUMBER, _dtableUtils.CellType.CTIME, _dtableUtils.CellType.MTIME, _dtableUtils.CellType.DATE, _dtableUtils.CellType.COLLABORATOR, _dtableUtils.CellType.AUTO_NUMBER, _dtableUtils.CellType.FORMULA, _dtableUtils.CellType.GEOLOCATION, _dtableUtils.CellType.URL, _dtableUtils.CellType.SINGLE_SELECT, _dtableUtils.CellType.LINK, _dtableUtils.CellType.CREATOR, _dtableUtils.CellType.LAST_MODIFIER, _dtableUtils.CellType.DURATION, _dtableUtils.CellType.EMAIL];
127
- const BASIC_CHART_COLUMN_LIST = exports.BASIC_CHART_COLUMN_LIST = [_dtableUtils.CellType.DATE, _dtableUtils.CellType.SINGLE_SELECT, _dtableUtils.CellType.MULTIPLE_SELECT, _dtableUtils.CellType.COLLABORATOR, _dtableUtils.CellType.TEXT, _dtableUtils.CellType.NUMBER, _dtableUtils.CellType.FORMULA, _dtableUtils.CellType.GEOLOCATION, _dtableUtils.CellType.LINK, _dtableUtils.CellType.CTIME, _dtableUtils.CellType.MTIME, _dtableUtils.CellType.CREATOR, _dtableUtils.CellType.LAST_MODIFIER, _dtableUtils.CellType.RATE, _dtableUtils.CellType.LINK_FORMULA, _dtableUtils.CellType.CHECKBOX];
128
- const GEOLOCATION_GRANULARITY = exports.GEOLOCATION_GRANULARITY = {
129
- PROVINCE: 'province',
130
- CITY: 'city',
131
- DISTRICT: 'district'
132
- };
133
- const GEOLOCATION_GRANULARITY_LIST = exports.GEOLOCATION_GRANULARITY_LIST = [GEOLOCATION_GRANULARITY.PROVINCE, GEOLOCATION_GRANULARITY.CITY, GEOLOCATION_GRANULARITY.DISTRICT];
134
- const DATE_GRANULARITY = exports.DATE_GRANULARITY = {
135
- DAY: 'day',
136
- WEEK: 'week',
137
- MONTH: 'month',
138
- QUARTER: 'quarter',
139
- YEAR: 'year'
140
- };
141
- const DATE_GRANULARITY_LIST = exports.DATE_GRANULARITY_LIST = [DATE_GRANULARITY.DAY, DATE_GRANULARITY.WEEK, DATE_GRANULARITY.MONTH, DATE_GRANULARITY.QUARTER, DATE_GRANULARITY.YEAR];
142
- const LABEL_COLORS = exports.LABEL_COLORS = ['#2a67d1', '#4ecccb', '#59cb74', '#fbd44a', '#f4667c', '#9860e5', '#9f8cf1', '#dc82d2', '#eaa775', '#addf84', '#85e0be', '#89d2ea'];
143
- const GROUPBY_TYPE = exports.GROUPBY_TYPE = {
144
- ROW: 'row',
145
- COLUMN: 'column'
146
- };
147
- const INIT_STAT_ITEM = exports.INIT_STAT_ITEM = {
148
- [STAT_TYPE.MAP]: {
149
- geo_column: null,
150
- geolocation_granularity: null,
151
- summary_method: null,
152
- summary_column: null,
153
- summary_type: SUMMARY_TYPE.COUNT
154
- },
155
- [STAT_TYPE.WORLD_MAP]: {
156
- column: null,
157
- summary_method: null,
158
- summary_column: null,
159
- summary_type: SUMMARY_TYPE.COUNT
160
- },
161
- [STAT_TYPE.MAP_BUBBLE]: {
162
- geo_column: null,
163
- geolocation_granularity: null,
164
- summary_method: null,
165
- summary_column: null,
166
- summary_type: SUMMARY_TYPE.COUNT
167
- },
168
- [STAT_TYPE.WORLD_MAP_BUBBLE]: {
169
- column: null,
170
- summary_method: null,
171
- summary_column: null,
172
- summary_type: SUMMARY_TYPE.COUNT
173
- },
174
- [STAT_TYPE.HEAT_MAP]: {
175
- time_column: null,
176
- summary_method: null,
177
- summary_column: null,
178
- summary_type: SUMMARY_TYPE.COUNT
179
- },
180
- [STAT_TYPE.MIRROR]: {
181
- column: null,
182
- is_transpose: false,
183
- group_column: null,
184
- summary_method: null,
185
- summary_column: null,
186
- summary_type: SUMMARY_TYPE.COUNT
187
- },
188
- [STAT_TYPE.BAR]: {
189
- x_axis_column_key: null,
190
- y_axis_summary_type: SUMMARY_TYPE.COUNT,
191
- show_x_axis_label: false,
192
- show_y_axis_label: false
193
- },
194
- [STAT_TYPE.COMPARE_BAR]: {
195
- x_axis_column_key: null,
196
- y_axis_summary_type: SUMMARY_TYPE.COUNT,
197
- show_x_axis_label: false,
198
- show_y_axis_label: false
199
- },
200
- [STAT_TYPE.BAR_GROUP]: {
201
- x_axis_column_key: null,
202
- y_axis_summary_type: 'count',
203
- column_groupby_column_key: null,
204
- column_groupby_numeric_columns: null,
205
- column_groupby_multiple_numeric_column: false
206
- },
207
- [STAT_TYPE.BAR_STACK]: {
208
- x_axis_column_key: null,
209
- y_axis_summary_type: 'count',
210
- x_axis_date_granularity: null,
211
- x_axis_geolocation_granularity: null,
212
- column_groupby_column_key: null,
213
- column_groupby_multiple_numeric_column: false,
214
- column_groupby_numeric_columns: null
215
- },
216
- [STAT_TYPE.HORIZONTAL_BAR]: {
217
- vertical_axis_column_key: null,
218
- horizontal_axis_column_key: null,
219
- horizontal_axis_summary_method: null,
220
- horizontal_axis_summary_type: SUMMARY_TYPE.COUNT,
221
- show_vertical_axis_label: false,
222
- show_horizontal_axis_label: false
223
- },
224
- [STAT_TYPE.HORIZONTAL_GROUP_BAR]: {
225
- vertical_axis_column_key: null,
226
- horizontal_axis_column_key: null,
227
- horizontal_axis_summary_type: SUMMARY_TYPE.COUNT,
228
- horizontal_axis_summary_method: null,
229
- vertical_axis_date_granularity: null,
230
- vertical_axis_geolocation_granularity: null,
231
- column_groupby_column_key: null,
232
- column_groupby_numeric_columns: null,
233
- column_groupby_multiple_numeric_column: false
234
- },
235
- [STAT_TYPE.STACKED_HORIZONTAL_BAR]: {
236
- vertical_axis_column_key: null,
237
- horizontal_axis_column_key: null,
238
- horizontal_axis_summary_type: SUMMARY_TYPE.COUNT,
239
- horizontal_axis_summary_method: null,
240
- vertical_axis_date_granularity: null,
241
- vertical_axis_geolocation_granularity: null,
242
- column_groupby_column_key: null,
243
- column_groupby_numeric_columns: null,
244
- column_groupby_multiple_numeric_column: false
245
- },
246
- [STAT_TYPE.LINE]: {
247
- x_axis_column_key: null,
248
- y_axis_summary_type: SUMMARY_TYPE.COUNT,
249
- show_x_axis_label: false,
250
- show_y_axis_label: false
251
- },
252
- [STAT_TYPE.GROUP_LINE]: {
253
- x_axis_column_key: null,
254
- y_axis_summary_type: SUMMARY_TYPE.COUNT,
255
- column_groupby_column_key: null,
256
- column_groupby_numeric_columns: null,
257
- column_groupby_multiple_numeric_column: false
258
- },
259
- [STAT_TYPE.PIE]: {
260
- groupby_column_key: null,
261
- summary_type: SUMMARY_TYPE.COUNT,
262
- groupby_date_granularity: null,
263
- groupby_geolocation_granularity: null
264
- },
265
- [STAT_TYPE.RING]: {
266
- groupby_column_key: null,
267
- summary_type: SUMMARY_TYPE.COUNT,
268
- groupby_date_granularity: null,
269
- groupby_geolocation_granularity: null
270
- },
271
- [STAT_TYPE.TREEMAP]: {
272
- groupby_column_key: null,
273
- summary_type: SUMMARY_TYPE.COUNT,
274
- groupby_date_granularity: null,
275
- groupby_geolocation_granularity: null
276
- },
277
- [STAT_TYPE.SCATTER]: {
278
- x_axis_column: null,
279
- y_axis_column: null,
280
- group_column: null,
281
- show_x_axis_label: false,
282
- show_y_axis_label: false
283
- },
284
- [STAT_TYPE.BASIC_NUMBER_CARD]: {
285
- numeric_column: null,
286
- summary_method: SUMMARY_METHOD_MAP.Row_count
287
- },
288
- [STAT_TYPE.COMBINATION_CHART]: {
289
- x_axis_column_key: null,
290
- x_axis_geolocation_granularity: null,
291
- x_axis_date_granularity: null,
292
- y_axis_left_summary_type: 'count',
293
- y_axis_right_summary_type: 'count',
294
- y_axis_left_summary_column: null,
295
- y_axis_right_summary_column: null,
296
- show_x_axis_label: null,
297
- show_y_axis_left_label: null,
298
- show_y_axis_right_label: null,
299
- y_axis_left_group_by_multiple_numeric_column: false,
300
- y_axis_left_group_by_numeric_columns: []
301
- },
302
- [STAT_TYPE.TREND_CHART]: {
303
- date_column: null,
304
- summary_type: 'count',
305
- summary_column: null,
306
- summary_method: null
307
- },
308
- [STAT_TYPE.AREA_CHART]: {
309
- x_axis_column_key: null,
310
- y_axis_summary_type: SUMMARY_TYPE.COUNT,
311
- show_x_axis_label: false,
312
- show_y_axis_label: false
313
- },
314
- [STAT_TYPE.AREA_GROUP_CHART]: {
315
- x_axis_column_key: null,
316
- y_axis_summary_type: 'count',
317
- column_groupby_column_key: null,
318
- column_groupby_numeric_columns: null,
319
- column_groupby_multiple_numeric_column: false
320
- },
321
- [STAT_TYPE.COMPLETENESS_CHART]: {
322
- completed_column: null,
323
- target_column: null
324
- },
325
- [STAT_TYPE.DASHBOARD]: {
326
- target_value_column: null,
327
- target_value_column_summary_method: SUMMARY_METHOD_MAP.Row_count,
328
- total_value_column: null,
329
- total_value_column_summary_method: SUMMARY_METHOD_MAP.Row_count
330
- },
331
- [STAT_TYPE.GROUP_COMPLETENESS_CHART]: {
332
- completed_column: null,
333
- target_column: null,
334
- group_column: null,
335
- date_granularity: null,
336
- geolocation_granularity: null
337
- },
338
- [STAT_TYPE.PIVOT_TABLE]: {
339
- groupby_column_key: null,
340
- summary_column_key: null,
341
- summary_type: 'count',
342
- column_groupby_column_key: null,
343
- column_groupby_multiple_numeric_column: false
344
- }
345
- };
346
- const COLOR_OPTIONS = exports.COLOR_OPTIONS = [{
347
- name: 'blue',
348
- exampleColors: ['#CAE9FF', '#9AC5FF', '#7DAAFF', '#5C90F9', '#3C77DD', '#075FBF', '#0047A5', '#053791', '#001E79'],
349
- borderColor: '#5F7190',
350
- highlightedBorderColor: '#30343A'
351
- }, {
352
- name: 'green',
353
- exampleColors: ['#AAF7D2', '#74E6B6', '#42C090', '#17A675', '#008A5C', '#016F44', '#00572F', '#02421C', '#003300'],
354
- borderColor: '#5F7190',
355
- highlightedBorderColor: '#30343A'
356
- }, {
357
- name: 'purple',
358
- exampleColors: ['#EBE2F1', '#D4C4E2', '#BFA8D4', '#A989C5', '#956DB8', '#7B4CA4', '#663095', '#55148E', '#410475'],
359
- borderColor: '#5F7190',
360
- highlightedBorderColor: '#30343A'
361
- }, {
362
- name: 'red',
363
- exampleColors: ['#FBE2E1', '#F7C6C6', '#F3A9A9', '#F17F7E', '#ED5655', '#D73635', '#BD1615', '#920404', '#680303'],
364
- borderColor: '#5F7190',
365
- highlightedBorderColor: '#30343A'
366
- }, {
367
- name: 'yellow',
368
- exampleColors: ['#FFF2D4', '#FFE9B8', '#FFDD95', '#FFD470', '#FFC741', '#EDB408', '#D09C10', '#A37B17', '#775816'],
369
- borderColor: '#5F7190',
370
- highlightedBorderColor: '#30343A'
371
- }, {
372
- name: 'orange',
373
- exampleColors: ['#FEE6CE', '#FDD1A2', '#FDAD6B', '#FD8D3D', '#F06813', '#E64F04', '#C14308', '#943D04', '#6D2E02'],
374
- borderColor: '#5F7190',
375
- highlightedBorderColor: '#30343A'
376
- }];
377
- const FILL_BORDER_COLOR_MAP = exports.FILL_BORDER_COLOR_MAP = {
378
- '#EBEDFO': '#E1E3E6',
379
- '#9AC5FF': '#8BBBFB',
380
- '#5C90F9': '#5284EA',
381
- '#075FBF': '#0453A9',
382
- '#053791': '#022A72',
383
- '#CAE9FF': '#BDE1F7',
384
- '#7DAAFF': '#6F9FF8',
385
- '#3C77DD': '#356DCF',
386
- '#0047A5': '#013C8A',
387
- '#001E79': '#031859',
388
- '#AAF7D2': '#94E7BF',
389
- '#74E6B6': '#67D1A4',
390
- '#42C090': '#36A97D',
391
- '#17A675': '#139166',
392
- '#008A5C': '#00734C',
393
- '#016F44': '#005D39',
394
- '#00572F': '#004224',
395
- '#02421C': '#002E13',
396
- '#003300': '#001E00',
397
- '#EBE2F1': '#DDD2E4',
398
- '#D4C4E2': '#C5B1D6',
399
- '#BFA8D4': '#AE96C4',
400
- '#A989C5': '#9176A9',
401
- '#956DB8': '#8460A4',
402
- '#7B4CA4': '#69408D',
403
- '#663095': '#522479',
404
- '#55148E': '#3E0D69',
405
- '#410475': '#29014C',
406
- '#FBE2E1': '#EECBC9',
407
- '#F7C6C6': '#E9B0B0',
408
- '#F3A9A9': '#E19696',
409
- '#F17F7E': '#DB6B6A',
410
- '#ED5655': '#D44746',
411
- '#D73635': '#BA2C2B',
412
- '#BD1615': '#9C0C0B',
413
- '#920404': '#730101',
414
- '#680303': '#480000',
415
- '#FFF2D4': '#F4E5C5',
416
- '#FFE9B8': '#F3DBA5',
417
- '#FFDD95': '#EFCD84',
418
- '#FFD470': '#F0C665',
419
- '#FFC741': '#EDB737',
420
- '#EDB408': '#D9A405',
421
- '#D09C10': '#BB8A07',
422
- '#A37B17': '#8C6911',
423
- '#775816': '#65480C',
424
- '#FEE6CE': '#F2D4B5',
425
- '#FDD1A2': '#EFBF8B',
426
- '#FDAD6B': '#EF9A54',
427
- '#FD8D3D': '#EF7C2B',
428
- '#F06813': '#D75706',
429
- '#E64F04': '#C44100',
430
- '#C14308': '#9D3302',
431
- '#943D04': '#773001',
432
- '#6D2E02': '#542301',
433
- '#EBEDF0': '#E1E3E6'
434
- };
435
- const DTABLE_DB_SUMMARY_METHOD = exports.DTABLE_DB_SUMMARY_METHOD = {
436
- Mean: 'AVG',
437
- Max: 'MAX',
438
- Sum: 'SUM',
439
- Min: 'MIN',
440
- Row_count: 'COUNT',
441
- Count: 'COUNT',
442
- Distinct_values: 'Distinct_values'
443
- };
444
- const TITLE_AMOUNT = exports.TITLE_AMOUNT = 'Amount';
445
- const TITLE_TOTAL = exports.TITLE_TOTAL = 'Total';
446
- const TITLE_INCREASE = exports.TITLE_INCREASE = 'Increase';
447
- const LEGEND_LEFT = exports.LEGEND_LEFT = 'Left';
448
- const LEGEND_RIGHT = exports.LEGEND_RIGHT = 'Right';
449
92
  const EMPTY_NAME = exports.EMPTY_NAME = 'Empty';
450
- const NO_STATISTIC_RESULTS = exports.NO_STATISTIC_RESULTS = 'There_are_no_statistic_results_yet';
451
- const TOO_MANY_STATISTIC_ENTRIES = exports.TOO_MANY_STATISTIC_ENTRIES = 'There_are_too_many_statistics_entries_to_display';
452
- const MULTIPLE_CELL_VALUE_COLUMN_TYPE_MAP = exports.MULTIPLE_CELL_VALUE_COLUMN_TYPE_MAP = {
453
- [_dtableUtils.CellType.MULTIPLE_SELECT]: true,
454
- [_dtableUtils.CellType.COLLABORATOR]: true,
455
- [_dtableUtils.CellType.LINK]: true
456
- };
457
93
  const THEME_NAME_MAP = exports.THEME_NAME_MAP = {
458
94
  DARK: 'dark',
459
95
  LIGHT: 'light'
460
96
  };
461
- const STAT_ITEM_THEME_COLORS = exports.STAT_ITEM_THEME_COLORS = {
462
- [THEME_NAME_MAP.DARK]: {
463
- textColor: '#ffffff',
464
- gridColor: '#4E4E56',
465
- labelColor: '#ffffff',
466
- legendPageNavigatorMarkerColor: '#ffffff',
467
- cardColor: '#ffffff'
468
- },
469
- [THEME_NAME_MAP.LIGHT]: {
470
- textColor: '#6e6e6e',
471
- gridColor: '#bfbfbf',
472
- labelColor: '#212529',
473
- legendPageNavigatorMarkerColor: '#212529',
474
- cardColor: '#545454'
475
- }
476
- };
477
- const DATA_SORT_TYPE = exports.DATA_SORT_TYPE = {
478
- NOT_SORTED: 'not_sorted',
479
- ASCENDING: 'ascending',
480
- DESCENDING: 'descending'
481
- };
482
- const DATA_SORT_TYPES = exports.DATA_SORT_TYPES = [DATA_SORT_TYPE.NOT_SORTED, DATA_SORT_TYPE.ASCENDING, DATA_SORT_TYPE.DESCENDING];
483
- const DATA_SORT_TYPE_LABEL = exports.DATA_SORT_TYPE_LABEL = {
484
- [DATA_SORT_TYPE.NOT_SORTED]: 'Not_sorted',
485
- [DATA_SORT_TYPE.ASCENDING]: 'Ascending',
486
- [DATA_SORT_TYPE.DESCENDING]: 'Descending'
487
- };
488
- const LABEL_CONFIG_CHANGED = exports.LABEL_CONFIG_CHANGED = 'label_config_changed';
489
- const PIE_CHART_COLORS = exports.PIE_CHART_COLORS = ['#46A1FD', '#4ECCCB', '#59CB74', '#FBD44A', '#F4667C', '#9860E5', '#9F8CF1', '#DC82D2', '#EAA775', '#ADDF84', '#85E0BE', '#89D2EA'];
490
97
  const CHART_STYLE_COLORS = exports.CHART_STYLE_COLORS = [{
491
98
  name: 'theme0',
492
99
  colors: ['#5B8FF9', '#5AD8A6', '#5D7092', '#F6BD16', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3']
@@ -508,106 +115,4 @@ const CHART_STYLE_COLORS = exports.CHART_STYLE_COLORS = [{
508
115
  }, {
509
116
  name: 'theme6',
510
117
  colors: ['#F76856', '#FFAF53', '#6CCDFF', '#C4C4CC', '#D48C82', '#E3C19A', '#A47CFF', '#FFD637', '#96DCFF', '#FFB6B6']
511
- }];
512
- const DEFAULT_NUMBER_FORMAT_OBJECT = exports.DEFAULT_NUMBER_FORMAT_OBJECT = {
513
- format: _dtableUtils.DEFAULT_NUMBER_FORMAT
514
- };
515
- const SUPPORT_LABEL_FONT_SIZE_CHARTS = exports.SUPPORT_LABEL_FONT_SIZE_CHARTS = [STAT_TYPE.BAR, STAT_TYPE.BAR_GROUP, STAT_TYPE.BAR_STACK, STAT_TYPE.COMPARE_BAR, STAT_TYPE.LINE, STAT_TYPE.GROUP_LINE, STAT_TYPE.PIE, STAT_TYPE.RING, STAT_TYPE.HORIZONTAL_BAR, STAT_TYPE.HORIZONTAL_GROUP_BAR, STAT_TYPE.STACKED_HORIZONTAL_BAR, STAT_TYPE.AREA_CHART, STAT_TYPE.AREA_GROUP_CHART, STAT_TYPE.COMPLETENESS_CHART, STAT_TYPE.GROUP_COMPLETENESS_CHART, STAT_TYPE.COMBINATION_CHART];
516
- const DEFAULT_LABEL_FONT_SIZE = exports.DEFAULT_LABEL_FONT_SIZE = 12;
517
-
518
- // label formats for pie, ring charts
519
- const LABEL_FORMATS = exports.LABEL_FORMATS = ['Percent', 'Value', 'Value_percent'];
520
- const LABEL_FORMATS_MAP = exports.LABEL_FORMATS_MAP = {
521
- Value: 'Numeric_value',
522
- Percent: 'Percent',
523
- Value_percent: 'Numeric_value_and_percent'
524
- };
525
- const LABEL_POSITION = exports.LABEL_POSITION = {
526
- TOP: 'top',
527
- RIGHT: 'right',
528
- BOTTOM: 'bottom',
529
- LEFT: 'left',
530
- CENTER: 'center'
531
- };
532
-
533
- // label positions for pie, ring charts
534
- const LABEL_POSITIONS = exports.LABEL_POSITIONS = ['inside', 'outside'];
535
- const LABEL_POSITIONS_MAP = exports.LABEL_POSITIONS_MAP = {
536
- inside: 'Inside_the_chart',
537
- outside: 'Outside_the_chart'
538
- };
539
-
540
- // color options for pie, ring charts
541
- const PIE_COLOR_OPTIONS = exports.PIE_COLOR_OPTIONS = ['use_default', 'use_column_colors'];
542
- const PIE_COlOR_OPTIONS_MAP = exports.PIE_COlOR_OPTIONS_MAP = {
543
- use_default: 'Use_default_colors',
544
- use_column_colors: 'Use_column_colors'
545
- };
546
- const TYPE_COLOR_USING = exports.TYPE_COLOR_USING = {
547
- USE_DEFAULT: 'use_default',
548
- USE_COLUMN_COLORS: 'use_column_colors',
549
- USE_SPECIFIC_COLORS: 'use_specific_colors',
550
- USE_RULES: 'use_rules'
551
- };
552
- const USEABLE_COLOR_TYPES = exports.USEABLE_COLOR_TYPES = [TYPE_COLOR_USING.USE_DEFAULT, TYPE_COLOR_USING.USE_COLUMN_COLORS];
553
- const TYPE_DISPLAY_COLOR_USING = exports.TYPE_DISPLAY_COLOR_USING = {
554
- [TYPE_COLOR_USING.USE_DEFAULT]: 'Use_default_colors',
555
- [TYPE_COLOR_USING.USE_COLUMN_COLORS]: 'Use_column_colors',
556
- [TYPE_COLOR_USING.USE_SPECIFIC_COLORS]: 'Use_specific_colors',
557
- [TYPE_COLOR_USING.USE_RULES]: 'Use_rules'
558
- };
559
-
560
- // default annotation font size for ring charts
561
- const DEFAULT_ANNOTATION_SIZE = exports.DEFAULT_ANNOTATION_SIZE = 20;
562
-
563
- // default grid size, grid distance for heat map chart
564
- const DEFAULT_GRID_SIZE = exports.DEFAULT_GRID_SIZE = 12;
565
- const DEFAULT_GRID_DISTANCE = exports.DEFAULT_GRID_DISTANCE = 4;
566
- const LEGEND_DIRECTION_MAP = exports.LEGEND_DIRECTION_MAP = {
567
- VERTICAL: 'vertical'
568
- };
569
- const Y_AXIS_TYPE_PREFIX = exports.Y_AXIS_TYPE_PREFIX = '__y_axis__';
570
- const STATISTIC_TYPE_SHOW = exports.STATISTIC_TYPE_SHOW = {
571
- // bar
572
- [STAT_TYPE.BAR]: 'Basic_histogram',
573
- [STAT_TYPE.BAR_GROUP]: 'Grouped_histogram',
574
- [STAT_TYPE.BAR_STACK]: 'Stacked_histogram',
575
- [STAT_TYPE.COMPARE_BAR]: 'Time_comparison_histogram',
576
- [STAT_TYPE.CUSTOM_BAR]: 'Custom_histogram',
577
- // horizontal
578
- [STAT_TYPE.HORIZONTAL_BAR]: 'Basic_bar_chart',
579
- [STAT_TYPE.HORIZONTAL_GROUP_BAR]: 'Grouped_bar_chart',
580
- [STAT_TYPE.STACKED_HORIZONTAL_BAR]: 'Stacked_bar_chart',
581
- [STAT_TYPE.COMPLETENESS_CHART]: 'Completeness_chart',
582
- [STAT_TYPE.GROUP_COMPLETENESS_CHART]: 'Grouped_completeness_chart',
583
- // line
584
- [STAT_TYPE.LINE]: 'Basic_line_chart',
585
- [STAT_TYPE.GROUP_LINE]: 'Grouped_line_chart',
586
- // area
587
- [STAT_TYPE.AREA_CHART]: 'Area_chart',
588
- [STAT_TYPE.AREA_GROUP_CHART]: 'Grouped_area_chart',
589
- // pie
590
- [STAT_TYPE.PIE]: 'Basic_pie_chart',
591
- [STAT_TYPE.RING]: 'Ring_chart',
592
- // scatter
593
- [STAT_TYPE.SCATTER]: 'Scatter_chart',
594
- // Combination_chart
595
- [STAT_TYPE.COMBINATION_CHART]: 'Combination_chart',
596
- // map
597
- [STAT_TYPE.MAP]: '中国地图',
598
- [STAT_TYPE.MAP_BUBBLE]: '中国地图(气泡图)',
599
- [STAT_TYPE.WORLD_MAP]: 'World_map',
600
- // heat
601
- [STAT_TYPE.HEAT_MAP]: 'Heat_map',
602
- // facet
603
- [STAT_TYPE.MIRROR]: 'Mirror_chart',
604
- // card
605
- [STAT_TYPE.BASIC_NUMBER_CARD]: 'Basic_number_card',
606
- [STAT_TYPE.TREND_CHART]: 'Trend_card',
607
- // gauge
608
- [STAT_TYPE.DASHBOARD]: 'Gauge',
609
- // treemap
610
- [STAT_TYPE.TREEMAP]: 'Treemap',
611
- // table
612
- [STAT_TYPE.PIVOT_TABLE]: 'Pivot_table'
613
- };
118
+ }];