sea-chart 1.1.64 → 2.0.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.
- package/dist/api/index.js +13 -6
- package/dist/assets/css/sea-chart-d3-tooltip.css +64 -0
- package/dist/components/cell-factory/FormatterConfig.js +62 -55
- package/dist/components/cell-factory/SimpleCellFormatter.js +11 -4
- package/dist/components/cell-factory/SingleSelectOption.js +18 -11
- package/dist/components/cell-factory/cell-editor-factory.js +12 -5
- package/dist/components/cell-factory/cell-formatter-factory.js +11 -4
- package/dist/components/cell-factory/link-content.js +35 -27
- package/dist/components/chart-color-selector/color-selector.js +18 -11
- package/dist/components/collaborator/index.js +14 -7
- package/dist/components/color-picker/index.js +18 -11
- package/dist/components/color-popover/color-rules/color-rule.js +33 -25
- package/dist/components/color-popover/color-rules/index.js +14 -6
- package/dist/components/color-popover/color-rules/rule-filters/filter.js +34 -27
- package/dist/components/color-popover/color-rules/rule-filters/index.js +25 -17
- package/dist/components/color-popover/color-rules/rule-filters/number-input.js +17 -9
- package/dist/components/color-popover/color-rules-popover.js +33 -25
- package/dist/components/color-popover/color-selector-popover.js +18 -10
- package/dist/components/color-setting/color-group-selector.js +20 -12
- package/dist/components/common-add-tool/index.js +13 -6
- package/dist/components/data-process-setter/data-setting-header.js +14 -7
- package/dist/components/data-process-setter/hide-column-setter.js +19 -12
- package/dist/components/data-process-setter/index.js +27 -4
- package/dist/components/data-process-setter/sort-setter.js +24 -16
- package/dist/components/draggable/Draggable.js +13 -7
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +48 -40
- package/dist/components/drill-down-settings/drill-down-fields-settings/index.js +18 -10
- package/dist/components/drill-down-settings/index.js +18 -11
- package/dist/components/dtable-popover/index.js +20 -13
- package/dist/components/dtable-search-input/index.js +21 -13
- package/dist/components/font-settings/index.js +22 -14
- package/dist/components/goal-line-setting/goal-setting-item.js +14 -6
- package/dist/components/goal-line-setting/index.js +19 -12
- package/dist/components/highlighter/highlighter.js +14 -7
- package/dist/components/icon/index.js +12 -5
- package/dist/components/index.js +48 -7
- package/dist/components/loading/index.js +13 -6
- package/dist/components/number-input/index.js +11 -4
- package/dist/components/pixel-editor/index.js +23 -15
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +14 -7
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +35 -27
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +18 -9
- package/dist/components/popover/sort-popover/sort-popover.js +65 -55
- package/dist/components/resize-handle/ResizeHandle.js +13 -6
- package/dist/components/row-card/row-card-header-cell.js +22 -15
- package/dist/components/row-card/row-card-header.js +21 -14
- package/dist/components/row-card/row-card-item.js +41 -33
- package/dist/components/row-card/row-card.js +23 -15
- package/dist/components/statistic-record-dialog/index.js +63 -55
- package/dist/components/types-dialog/index.js +63 -55
- package/dist/components/types-dialog/use-force-update.js +10 -4
- package/dist/constants/color-rules.js +14 -8
- package/dist/constants/common-constants.js +14 -8
- package/dist/constants/error.js +8 -2
- package/dist/constants/geolocation.js +15 -9
- package/dist/constants/index.js +271 -142
- package/dist/constants/key-codes.js +2 -0
- package/dist/constants/model.js +9 -3
- package/dist/constants/regions.js +8 -3
- package/dist/constants/style.js +12 -6
- package/dist/constants/table.js +7 -1
- package/dist/constants/type-image.js +39 -33
- package/dist/constants/type.js +9 -3
- package/dist/context.js +19 -12
- package/dist/editor/index.js +15 -12
- package/dist/index.js +104 -13
- package/dist/intl.js +17 -10
- package/dist/locale/index.js +23 -16
- package/dist/locale/lang/de.js +7 -1
- package/dist/locale/lang/en.js +7 -1
- package/dist/locale/lang/es.js +7 -1
- package/dist/locale/lang/fr.js +7 -1
- package/dist/locale/lang/pt.js +7 -1
- package/dist/locale/lang/ru.js +7 -1
- package/dist/locale/lang/zh_CN.js +7 -1
- package/dist/model/area-group.js +19 -12
- package/dist/model/area.js +19 -12
- package/dist/model/bar-custom.js +18 -11
- package/dist/model/bar-group.js +19 -12
- package/dist/model/bar-stack.js +17 -10
- package/dist/model/bar.js +18 -11
- package/dist/model/base-model.js +11 -4
- package/dist/model/basic-number-card.js +20 -13
- package/dist/model/chart.js +13 -7
- package/dist/model/combination.js +22 -15
- package/dist/model/compare-bar.js +21 -14
- package/dist/model/completeness-group.js +18 -11
- package/dist/model/completeness.js +17 -10
- package/dist/model/dashboard.js +14 -7
- package/dist/model/funnel.js +21 -14
- package/dist/model/generic-model.js +143 -135
- package/dist/model/heat-map.js +16 -9
- package/dist/model/horizontal-bar.js +18 -11
- package/dist/model/horizontal-group-bar.js +17 -10
- package/dist/model/index.js +93 -69
- package/dist/model/line-group.js +20 -13
- package/dist/model/line.js +19 -12
- package/dist/model/map-bubble.js +17 -10
- package/dist/model/map.js +19 -12
- package/dist/model/mirror.js +20 -13
- package/dist/model/pie.js +19 -12
- package/dist/model/ring.js +19 -12
- package/dist/model/scatter.js +17 -10
- package/dist/model/stacked-horizontal-bar.js +18 -11
- package/dist/model/table-element.js +12 -5
- package/dist/model/table.js +14 -7
- package/dist/model/tree-map.js +14 -7
- package/dist/model/trend.js +18 -11
- package/dist/model/user.js +7 -1
- package/dist/model/world-map-bubble.js +19 -12
- package/dist/model/world-map.js +19 -12
- package/dist/services/map-json.js +13 -7
- package/dist/settings/advance-bar-settings/data-settings.js +46 -42
- package/dist/settings/advance-bar-settings/index.js +20 -3
- package/dist/settings/advance-bar-settings/style-settings.js +73 -69
- package/dist/settings/bar-settings/data-settings.js +49 -45
- package/dist/settings/bar-settings/index.js +20 -3
- package/dist/settings/bar-settings/style-settings.js +59 -55
- package/dist/settings/basic-number-card/data-settings.js +57 -49
- package/dist/settings/basic-number-card/index.js +20 -3
- package/dist/settings/basic-number-card/style-settings.js +26 -18
- package/dist/settings/combination-settings/data-settings.js +65 -60
- package/dist/settings/combination-settings/index.js +20 -3
- package/dist/settings/combination-settings/style-settings.js +74 -69
- package/dist/settings/completeness-settings/callbacks/callbacks.js +27 -16
- package/dist/settings/completeness-settings/data-settings/completion-settings.js +28 -21
- package/dist/settings/completeness-settings/data-settings/data-settings.js +32 -25
- package/dist/settings/completeness-settings/index.js +20 -3
- package/dist/settings/completeness-settings/style-settings.js +26 -19
- package/dist/settings/dashboard-settings/data-settings.js +51 -43
- package/dist/settings/dashboard-settings/index.js +13 -2
- package/dist/settings/data-settings.js +79 -72
- package/dist/settings/funnel-settings/components/dnd-item/dnd-item.js +19 -12
- package/dist/settings/funnel-settings/components/dnd-list.js +23 -15
- package/dist/settings/funnel-settings/components/funnel-label-setting.js +40 -32
- package/dist/settings/funnel-settings/components/funnel-layer-setting.js +30 -22
- package/dist/settings/funnel-settings/data-settings.js +31 -23
- package/dist/settings/funnel-settings/index.js +20 -3
- package/dist/settings/funnel-settings/style-settings.js +19 -11
- package/dist/settings/heat-map-settings/data-settings.js +26 -18
- package/dist/settings/heat-map-settings/index.js +20 -3
- package/dist/settings/heat-map-settings/style-settings.js +26 -18
- package/dist/settings/horizontal-bar-settings/data-settings.js +19 -12
- package/dist/settings/horizontal-bar-settings/index.js +20 -3
- package/dist/settings/horizontal-bar-settings/style-settings.js +19 -12
- package/dist/settings/index.js +75 -58
- package/dist/settings/map-settings/components/location-field-selector.js +17 -10
- package/dist/settings/map-settings/components/map-level-selector.js +18 -11
- package/dist/settings/map-settings/components/map-province-city-selector.js +26 -19
- package/dist/settings/map-settings/index.js +20 -3
- package/dist/settings/map-settings/map-data-settings.js +30 -23
- package/dist/settings/map-settings/map-style-settings.js +34 -26
- package/dist/settings/mirror-settings/data-settings.js +34 -26
- package/dist/settings/mirror-settings/index.js +13 -2
- package/dist/settings/pie-settings/data-settings.js +41 -33
- package/dist/settings/pie-settings/index.js +20 -3
- package/dist/settings/pie-settings/style-settings.js +55 -47
- package/dist/settings/scatter/data-settings.js +34 -27
- package/dist/settings/scatter/index.js +12 -3
- package/dist/settings/stacks-settings/index.js +27 -19
- package/dist/settings/stacks-settings/stack-item-settings.js +27 -19
- package/dist/settings/style-settings.js +72 -64
- package/dist/settings/table-element-settings/components/data-filter.js +37 -29
- package/dist/settings/table-element-settings/data-settings.js +29 -21
- package/dist/settings/table-element-settings/index.js +13 -2
- package/dist/settings/table-settings/data-settings.js +119 -111
- package/dist/settings/table-settings/index.js +13 -2
- package/dist/settings/time-comparison-settings/data-settings.js +51 -43
- package/dist/settings/time-comparison-settings/index.js +20 -3
- package/dist/settings/time-comparison-settings/style-settings.js +50 -42
- package/dist/settings/trend-settings/data-settings.js +32 -24
- package/dist/settings/trend-settings/index.js +20 -3
- package/dist/settings/trend-settings/style-setting.js +25 -17
- package/dist/settings/widgets/basic-summary/index.js +66 -66
- package/dist/settings/widgets/chart-type/index.js +34 -19
- package/dist/settings/widgets/color-settings/index.js +80 -72
- package/dist/settings/widgets/common-data-settings.js +30 -25
- package/dist/settings/widgets/data-filter/index.js +40 -32
- package/dist/settings/widgets/data-sort.js +24 -16
- package/dist/settings/widgets/date-summary-item.js +32 -24
- package/dist/settings/widgets/display-values-settings/index.js +22 -14
- package/dist/settings/widgets/divider/index.js +16 -8
- package/dist/settings/widgets/font-settings/font-color-settings.js +19 -11
- package/dist/settings/widgets/font-settings/font-size-settings.js +22 -14
- package/dist/settings/widgets/font-settings/font-weight-settings.js +25 -17
- package/dist/settings/widgets/font-settings/index.js +27 -4
- package/dist/settings/widgets/group-by.js +59 -51
- package/dist/settings/widgets/min-max-setting.js +18 -10
- package/dist/settings/widgets/mininum-slice-percent.js +18 -10
- package/dist/settings/widgets/numeric-summary-item.js +31 -23
- package/dist/settings/widgets/select-line-type/index.js +17 -10
- package/dist/settings/widgets/select-table/index.js +16 -9
- package/dist/settings/widgets/select-view/index.js +28 -20
- package/dist/settings/widgets/stack.js +22 -14
- package/dist/settings/widgets/summary-method-setting.js +25 -17
- package/dist/settings/widgets/summary-settings.js +80 -72
- package/dist/settings/widgets/switch/index.js +15 -8
- package/dist/settings/widgets/text-horizontal-settings.js +23 -15
- package/dist/settings/widgets/time-picker.js +37 -29
- package/dist/settings/widgets/title-settings/index.js +37 -29
- package/dist/settings/widgets/title-settings/title-text.js +12 -5
- package/dist/settings/widgets/x-axios.js +1 -0
- package/dist/settings/widgets/y-axis-group-settings.js +71 -63
- package/dist/utils/cell-format-utils.js +29 -19
- package/dist/utils/cell-value-utils.js +11 -4
- package/dist/utils/chart-utils/base-utils.js +290 -279
- package/dist/utils/chart-utils/index.js +39 -26
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +84 -77
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +20 -13
- package/dist/utils/chart-utils/original-data-utils/combination-calculator.js +52 -45
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +26 -19
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +39 -32
- package/dist/utils/chart-utils/original-data-utils/dashboard-calculator.js +23 -16
- package/dist/utils/chart-utils/original-data-utils/index.js +57 -50
- package/dist/utils/chart-utils/original-data-utils/mirror-calculator.js +26 -19
- package/dist/utils/chart-utils/original-data-utils/pivot-table-calculator.js +96 -90
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +25 -18
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +34 -27
- package/dist/utils/chart-utils/sql-statistics-utils.js +237 -229
- package/dist/utils/chart.js +17 -9
- package/dist/utils/collaborator-manager.js +9 -3
- package/dist/utils/collaborator-utils.js +30 -18
- package/dist/utils/collaborator.js +13 -4
- package/dist/utils/color-utils.js +29 -18
- package/dist/utils/column-utils.js +88 -63
- package/dist/utils/common-utils.js +52 -27
- package/dist/utils/concurrency-manager.js +7 -1
- package/dist/utils/contexts.js +11 -4
- package/dist/utils/custom-g2.js +241 -212
- package/dist/utils/date-translate.js +19 -11
- package/dist/utils/digital-sign-utils.js +14 -7
- package/dist/utils/event-bus.js +7 -1
- package/dist/utils/hotkey.js +11 -5
- package/dist/utils/index.js +219 -53
- package/dist/utils/key-generator.js +9 -2
- package/dist/utils/map.js +31 -22
- package/dist/utils/object-utils.js +7 -1
- package/dist/utils/options-utils.js +16 -8
- package/dist/utils/row-record-utils.js +164 -152
- package/dist/utils/row-utils.js +38 -27
- package/dist/utils/search.js +32 -24
- package/dist/utils/sql/chart-data-sql.js +55 -49
- package/dist/utils/sql/column-2-sql-column.js +153 -143
- package/dist/utils/sql/index.js +27 -3
- package/dist/utils/trend-utils.js +45 -37
- package/dist/view/index.js +96 -87
- package/dist/view/title/index.js +23 -15
- package/dist/view/wrapper/area.js +46 -39
- package/dist/view/wrapper/bar-custom.js +40 -33
- package/dist/view/wrapper/bar-group.js +58 -51
- package/dist/view/wrapper/bar.js +42 -35
- package/dist/view/wrapper/basic-number-card.js +25 -17
- package/dist/view/wrapper/chart-component.js +116 -54
- package/dist/view/wrapper/combination.js +82 -75
- package/dist/view/wrapper/compare.js +57 -50
- package/dist/view/wrapper/completeness.js +32 -24
- package/dist/view/wrapper/dashboard.js +21 -14
- package/dist/view/wrapper/funnel.js +26 -19
- package/dist/view/wrapper/heat-map.js +60 -53
- package/dist/view/wrapper/horizontal-bar-group.js +48 -41
- package/dist/view/wrapper/horizontal-bar.js +39 -32
- package/dist/view/wrapper/horizontal-component.js +23 -15
- package/dist/view/wrapper/index.js +148 -96
- package/dist/view/wrapper/line-group.js +41 -34
- package/dist/view/wrapper/line.js +39 -32
- package/dist/view/wrapper/map.js +54 -46
- package/dist/view/wrapper/mirror.js +38 -31
- package/dist/view/wrapper/pie.js +50 -43
- package/dist/view/wrapper/ring.js +59 -52
- package/dist/view/wrapper/scatter.js +30 -22
- package/dist/view/wrapper/table/index.js +21 -13
- package/dist/view/wrapper/table/one-dimension-table-no-numeric-columns.js +57 -49
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +58 -50
- package/dist/view/wrapper/table/pivot-table-display-name.js +90 -82
- package/dist/view/wrapper/table/two-dimension-table.js +84 -76
- package/dist/view/wrapper/table-element/components/dataset-utils.js +36 -23
- package/dist/view/wrapper/table-element/components/formatter.js +98 -89
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +31 -22
- package/dist/view/wrapper/table-element/components/formatters/formula-formatter.js +16 -9
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +80 -73
- package/dist/view/wrapper/table-element/components/formula-formatter.js +16 -9
- package/dist/view/wrapper/table-element/components/link-formatter.js +80 -73
- package/dist/view/wrapper/table-element/components/record.js +17 -10
- package/dist/view/wrapper/table-element/components/records-body.js +17 -9
- package/dist/view/wrapper/table-element/components/records-header/index.js +16 -8
- package/dist/view/wrapper/table-element/components/records-header/records-header-cell.js +16 -8
- package/dist/view/wrapper/table-element/components/records.js +29 -21
- package/dist/view/wrapper/table-element/components/resize-column-handle/resize-column-handle.js +13 -6
- package/dist/view/wrapper/table-element/components/utils.js +15 -5
- package/dist/view/wrapper/table-element/components/value-display-utils.js +11 -4
- package/dist/view/wrapper/table-element/components/vertical-scrollbar/index.js +13 -6
- package/dist/view/wrapper/table-element/index.js +24 -16
- package/dist/view/wrapper/treemap.js +43 -36
- package/dist/view/wrapper/trend.js +47 -39
- package/dist/view/wrapper/world-map.js +60 -52
- package/dist/view/wrapper/wrappers-d3/bar.js +262 -0
- package/package.json +15 -17
package/dist/constants/style.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.STYLE_COLORS = exports.HORIZONTAL_ALIGN_SHOW = exports.HORIZONTAL_ALIGNS = exports.HORIZONTAL_ALIGN = exports.FILL_BORDER_COLOR_MAP = exports.COLOR_OPTIONS = void 0;
|
|
7
|
+
const HORIZONTAL_ALIGN = exports.HORIZONTAL_ALIGN = {
|
|
2
8
|
LEFT: 'left',
|
|
3
9
|
CENTER: 'center',
|
|
4
10
|
RIGHT: 'right'
|
|
5
11
|
};
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
const HORIZONTAL_ALIGNS = exports.HORIZONTAL_ALIGNS = [HORIZONTAL_ALIGN.LEFT, HORIZONTAL_ALIGN.CENTER, HORIZONTAL_ALIGN.RIGHT];
|
|
13
|
+
const HORIZONTAL_ALIGN_SHOW = exports.HORIZONTAL_ALIGN_SHOW = {
|
|
8
14
|
[HORIZONTAL_ALIGN.LEFT]: 'Left',
|
|
9
15
|
[HORIZONTAL_ALIGN.CENTER]: 'Center',
|
|
10
16
|
[HORIZONTAL_ALIGN.RIGHT]: 'Right'
|
|
11
17
|
};
|
|
12
|
-
|
|
18
|
+
const STYLE_COLORS = exports.STYLE_COLORS = [{
|
|
13
19
|
name: 'theme0',
|
|
14
20
|
colors: ['#5B8FF9', '#5AD8A6', '#5D7092', '#F6BD16', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3']
|
|
15
21
|
}, {
|
|
@@ -31,7 +37,7 @@ export const STYLE_COLORS = [{
|
|
|
31
37
|
name: 'theme6',
|
|
32
38
|
colors: ['#F76856', '#FFAF53', '#6CCDFF', '#C4C4CC', '#D48C82', '#E3C19A', '#A47CFF', '#FFD637', '#96DCFF', '#FFB6B6']
|
|
33
39
|
}];
|
|
34
|
-
|
|
40
|
+
const FILL_BORDER_COLOR_MAP = exports.FILL_BORDER_COLOR_MAP = {
|
|
35
41
|
'#EBEDFO': '#E1E3E6',
|
|
36
42
|
'#9AC5FF': '#8BBBFB',
|
|
37
43
|
'#5C90F9': '#5284EA',
|
|
@@ -89,7 +95,7 @@ export const FILL_BORDER_COLOR_MAP = {
|
|
|
89
95
|
'#6D2E02': '#542301',
|
|
90
96
|
'#EBEDF0': '#E1E3E6'
|
|
91
97
|
};
|
|
92
|
-
|
|
98
|
+
const COLOR_OPTIONS = exports.COLOR_OPTIONS = [{
|
|
93
99
|
name: 'blue',
|
|
94
100
|
exampleColors: ['#CAE9FF', '#9AC5FF', '#7DAAFF', '#5C90F9', '#3C77DD', '#075FBF', '#0047A5', '#053791', '#001E79'],
|
|
95
101
|
borderColor: '#5F7190',
|
package/dist/constants/table.js
CHANGED
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[CHART_TYPE.
|
|
10
|
-
[CHART_TYPE.
|
|
11
|
-
[CHART_TYPE.
|
|
12
|
-
[CHART_TYPE.
|
|
13
|
-
[CHART_TYPE.
|
|
14
|
-
[CHART_TYPE.
|
|
15
|
-
[CHART_TYPE.
|
|
16
|
-
[CHART_TYPE.
|
|
17
|
-
[CHART_TYPE.
|
|
18
|
-
[CHART_TYPE.
|
|
19
|
-
[CHART_TYPE.
|
|
20
|
-
[CHART_TYPE.
|
|
21
|
-
[CHART_TYPE.
|
|
22
|
-
[CHART_TYPE.
|
|
23
|
-
[CHART_TYPE.
|
|
24
|
-
[CHART_TYPE.
|
|
25
|
-
[CHART_TYPE.
|
|
26
|
-
[CHART_TYPE.
|
|
27
|
-
[CHART_TYPE.
|
|
28
|
-
[CHART_TYPE.
|
|
29
|
-
[CHART_TYPE.
|
|
30
|
-
[CHART_TYPE.
|
|
31
|
-
[CHART_TYPE.
|
|
32
|
-
[CHART_TYPE.
|
|
33
|
-
[CHART_TYPE.
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CHART_TYPE_IMAGE = void 0;
|
|
7
|
+
var _type = require("./type");
|
|
8
|
+
const CHART_TYPE_IMAGE = exports.CHART_TYPE_IMAGE = {
|
|
9
|
+
[_type.CHART_TYPE.BAR]: 'bar.png',
|
|
10
|
+
[_type.CHART_TYPE.BAR_GROUP]: 'bar-group.png',
|
|
11
|
+
[_type.CHART_TYPE.BAR_STACK]: 'bar-stack.png',
|
|
12
|
+
[_type.CHART_TYPE.COMPARE_BAR]: 'compared-chart.png',
|
|
13
|
+
[_type.CHART_TYPE.BAR_CUSTOM]: 'custom-bar.png',
|
|
14
|
+
[_type.CHART_TYPE.HORIZONTAL_BAR]: 'horizontal-bar.png',
|
|
15
|
+
[_type.CHART_TYPE.HORIZONTAL_GROUP_BAR]: 'horizontal-group-bar.png',
|
|
16
|
+
[_type.CHART_TYPE.STACKED_HORIZONTAL_BAR]: 'stacked-horizontal-bar.png',
|
|
17
|
+
[_type.CHART_TYPE.COMPLETENESS]: 'completeness-chart.png',
|
|
18
|
+
[_type.CHART_TYPE.COMPLETENESS_GROUP]: 'group-completeness-chart.png',
|
|
19
|
+
[_type.CHART_TYPE.LINE]: 'line.png',
|
|
20
|
+
[_type.CHART_TYPE.LINE_GROUP]: 'group_line.png',
|
|
21
|
+
[_type.CHART_TYPE.AREA]: 'area-chart.png',
|
|
22
|
+
[_type.CHART_TYPE.AREA_GROUP]: 'area-group-chart.png',
|
|
23
|
+
[_type.CHART_TYPE.PIE]: 'pie.png',
|
|
24
|
+
[_type.CHART_TYPE.RING]: 'ring.png',
|
|
25
|
+
[_type.CHART_TYPE.SCATTER]: 'scatter.png',
|
|
26
|
+
[_type.CHART_TYPE.COMBINATION]: 'combination-chart.png',
|
|
27
|
+
[_type.CHART_TYPE.MAP]: 'map.png',
|
|
28
|
+
[_type.CHART_TYPE.MAP_BUBBLE]: 'map-bubble.png',
|
|
29
|
+
[_type.CHART_TYPE.WORLD_MAP]: 'world-map.png',
|
|
30
|
+
[_type.CHART_TYPE.WORLD_MAP_BUBBLE]: 'world-map-bubble.png',
|
|
31
|
+
[_type.CHART_TYPE.HEAT_MAP]: 'heat-map.png',
|
|
32
|
+
[_type.CHART_TYPE.MIRROR]: 'mirror.png',
|
|
33
|
+
[_type.CHART_TYPE.BASIC_NUMBER_CARD]: 'number-card.png',
|
|
34
|
+
[_type.CHART_TYPE.TREND]: 'trend-chart.png',
|
|
35
|
+
[_type.CHART_TYPE.DASHBOARD]: 'dashboard-chart.png',
|
|
36
|
+
[_type.CHART_TYPE.TREE_MAP]: 'treemap.png',
|
|
37
|
+
[_type.CHART_TYPE.TABLE]: 'pivot-table.png',
|
|
38
|
+
[_type.CHART_TYPE.FUNNEL]: 'funnel.png',
|
|
39
|
+
[_type.CHART_TYPE.TABLE_ELEMENT]: 'table-element.png'
|
|
34
40
|
};
|
package/dist/constants/type.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CHART_TYPE_SHOW = exports.CHART_TYPES = exports.CHART_TYPE = void 0;
|
|
7
|
+
const CHART_TYPE = exports.CHART_TYPE = {
|
|
2
8
|
BAR: 'bar',
|
|
3
9
|
BAR_GROUP: 'bar_group',
|
|
4
10
|
BAR_STACK: 'bar_stack',
|
|
@@ -31,7 +37,7 @@ export const CHART_TYPE = {
|
|
|
31
37
|
FUNNEL: 'funnel',
|
|
32
38
|
TABLE_ELEMENT: 'table_element'
|
|
33
39
|
};
|
|
34
|
-
|
|
40
|
+
const CHART_TYPE_SHOW = exports.CHART_TYPE_SHOW = {
|
|
35
41
|
[CHART_TYPE.BAR]: 'Basic_histogram',
|
|
36
42
|
[CHART_TYPE.BAR_GROUP]: 'Grouped_histogram',
|
|
37
43
|
[CHART_TYPE.BAR_STACK]: 'Stacked_histogram',
|
|
@@ -64,7 +70,7 @@ export const CHART_TYPE_SHOW = {
|
|
|
64
70
|
[CHART_TYPE.FUNNEL]: 'Funnel',
|
|
65
71
|
[CHART_TYPE.TABLE_ELEMENT]: 'Basic_table'
|
|
66
72
|
};
|
|
67
|
-
|
|
73
|
+
const CHART_TYPES = exports.CHART_TYPES = [{
|
|
68
74
|
name: 'Histogram',
|
|
69
75
|
icon: 'histogram',
|
|
70
76
|
children: [CHART_TYPE.BAR, CHART_TYPE.BAR_GROUP, CHART_TYPE.BAR_STACK, CHART_TYPE.COMPARE_BAR, CHART_TYPE.BAR_CUSTOM]
|
package/dist/context.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _dtableUtils = require("dtable-utils");
|
|
9
|
+
var _collaboratorManager = _interopRequireDefault(require("./utils/collaborator-manager"));
|
|
10
|
+
var _utils = require("./utils");
|
|
11
|
+
var _constants = require("./constants");
|
|
5
12
|
class Context {
|
|
6
13
|
constructor() {
|
|
7
14
|
this.queryChartResult = _ref => {
|
|
@@ -22,10 +29,10 @@ class Context {
|
|
|
22
29
|
}
|
|
23
30
|
|
|
24
31
|
// use default api to get chart result data
|
|
25
|
-
const table = getTableById(tables, chart.config.table_id);
|
|
32
|
+
const table = (0, _dtableUtils.getTableById)(tables, chart.config.table_id);
|
|
26
33
|
const currentView = table.views.find(view => view._id === chart.config.view_id);
|
|
27
34
|
const defaultView = table.views.find(view => view._id === '0000');
|
|
28
|
-
const chartDataSQL = new ChartDataSQL({
|
|
35
|
+
const chartDataSQL = new _utils.ChartDataSQL({
|
|
29
36
|
table,
|
|
30
37
|
view: currentView || defaultView,
|
|
31
38
|
chart
|
|
@@ -39,7 +46,7 @@ class Context {
|
|
|
39
46
|
return;
|
|
40
47
|
}
|
|
41
48
|
const type = chart.config.type;
|
|
42
|
-
if (type === CHART_TYPE.BAR_CUSTOM) {
|
|
49
|
+
if (type === _constants.CHART_TYPE.BAR_CUSTOM) {
|
|
43
50
|
let allPromises = [];
|
|
44
51
|
Array.isArray(sql) && sql.forEach(item => {
|
|
45
52
|
if (item) {
|
|
@@ -83,7 +90,7 @@ class Context {
|
|
|
83
90
|
}).catch(error => {
|
|
84
91
|
var _error$response, _error$response$data;
|
|
85
92
|
// if geolocation format is wrong, still display the chart
|
|
86
|
-
if (type.includes('map') &&
|
|
93
|
+
if (type.includes('map') && error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.error_message.includes('invalid geolocation format')) {
|
|
87
94
|
var _error$response2, _error$response2$data;
|
|
88
95
|
console.error(error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message);
|
|
89
96
|
onSuccess && onSuccess({
|
|
@@ -108,7 +115,7 @@ class Context {
|
|
|
108
115
|
return this.api.getTableFormulaResults(table, rows, value, view_id);
|
|
109
116
|
};
|
|
110
117
|
this.getChartImageUrl = type => {
|
|
111
|
-
const name = CHART_TYPE_IMAGE[type];
|
|
118
|
+
const name = _constants.CHART_TYPE_IMAGE[type];
|
|
112
119
|
if (Reflect.ownKeys(this.settings).length !== 0) {
|
|
113
120
|
const {
|
|
114
121
|
server,
|
|
@@ -116,7 +123,7 @@ class Context {
|
|
|
116
123
|
} = this.settings;
|
|
117
124
|
return "".concat(server).concat(mediaUrl, "dtable-statistic/img/").concat(name, "?v=0.0.1");
|
|
118
125
|
}
|
|
119
|
-
return "".concat(DEFAULT_MEDIAURL, "dtable-statistic/img/").concat(name, "?v=0.0.1");
|
|
126
|
+
return "".concat(_constants.DEFAULT_MEDIAURL, "dtable-statistic/img/").concat(name, "?v=0.0.1");
|
|
120
127
|
};
|
|
121
128
|
this.api = null;
|
|
122
129
|
this.settings = {};
|
|
@@ -145,7 +152,7 @@ class Context {
|
|
|
145
152
|
this.hasInit = true;
|
|
146
153
|
this.collaborators = collaborators || [];
|
|
147
154
|
this.departments = departments || [];
|
|
148
|
-
this.collaboratorManager = collaboratorManager ? collaboratorManager : new
|
|
155
|
+
this.collaboratorManager = collaboratorManager ? collaboratorManager : new _collaboratorManager.default(collaborators);
|
|
149
156
|
}
|
|
150
157
|
setSettings() {
|
|
151
158
|
let settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -171,4 +178,4 @@ class Context {
|
|
|
171
178
|
}
|
|
172
179
|
}
|
|
173
180
|
const context = new Context();
|
|
174
|
-
|
|
181
|
+
var _default = exports.default = context;
|
package/dist/editor/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _view = _interopRequireWildcard(require("../view"));
|
|
11
|
+
var _settings = _interopRequireWildcard(require("../settings"));
|
|
12
|
+
require("./index.css");
|
|
6
13
|
function Editor(props) {
|
|
7
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
8
15
|
className: "sea-chart-editor"
|
|
9
|
-
}, /*#__PURE__*/
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(_view.default, props), /*#__PURE__*/_react.default.createElement(_settings.default, props, props.children));
|
|
10
17
|
}
|
|
11
|
-
|
|
12
|
-
...defaultProps,
|
|
13
|
-
...settingsDefaultProps
|
|
14
|
-
};
|
|
15
|
-
export default Editor;
|
|
18
|
+
var _default = exports.default = Editor;
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "CHART_TYPE", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return _type.CHART_TYPE;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "CHART_TYPES", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return _type.CHART_TYPES;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "ChartDataSQL", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _utils.ChartDataSQL;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "ChartModel", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return _model.ChartModel;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "Context", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _context.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "Divider", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _settings.Divider;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "EXTERNAL_EVENT", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () {
|
|
47
|
+
return _commonConstants.EXTERNAL_EVENT;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "Editor", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () {
|
|
53
|
+
return _editor.default;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "EventBus", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () {
|
|
59
|
+
return _eventBus.default;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "SeaChartAPI", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () {
|
|
65
|
+
return _api.default;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "Settings", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () {
|
|
71
|
+
return _settings.default;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "StyleSettings", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () {
|
|
77
|
+
return _settings.StyleSettings;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "TypesDialog", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () {
|
|
83
|
+
return _typesDialog.default;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "View", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () {
|
|
89
|
+
return _view.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
exports.default = void 0;
|
|
93
|
+
var _api = _interopRequireDefault(require("./api"));
|
|
94
|
+
var _type = require("./constants/type");
|
|
95
|
+
var _model = require("./model");
|
|
96
|
+
var _view = _interopRequireDefault(require("./view"));
|
|
97
|
+
var _editor = _interopRequireDefault(require("./editor"));
|
|
98
|
+
var _settings = _interopRequireWildcard(require("./settings"));
|
|
99
|
+
var _typesDialog = _interopRequireDefault(require("./components/types-dialog"));
|
|
100
|
+
var _utils = require("./utils");
|
|
101
|
+
var _context = _interopRequireDefault(require("./context"));
|
|
102
|
+
var _eventBus = _interopRequireDefault(require("./utils/event-bus"));
|
|
103
|
+
var _commonConstants = require("./constants/common-constants");
|
|
104
|
+
var _default = exports.default = _view.default;
|
package/dist/intl.js
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _lang2 = require("dtable-ui-component/lib/lang");
|
|
9
|
+
var _locale = _interopRequireDefault(require("./locale"));
|
|
10
|
+
var _constants = require("./constants");
|
|
4
11
|
class Intl {
|
|
5
12
|
constructor(_ref) {
|
|
6
13
|
var _this = this;
|
|
7
14
|
let {
|
|
8
|
-
lang: _lang = DEFAULT_LANG
|
|
15
|
+
lang: _lang = _constants.DEFAULT_LANG
|
|
9
16
|
} = _ref;
|
|
10
17
|
this.setLang = function () {
|
|
11
|
-
let lang = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_LANG;
|
|
18
|
+
let lang = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _constants.DEFAULT_LANG;
|
|
12
19
|
const validLang = lang.toLowerCase();
|
|
13
|
-
setLocale(validLang);
|
|
20
|
+
(0, _lang2.setLocale)(validLang);
|
|
14
21
|
if (validLang === _this.lang) return;
|
|
15
22
|
_this.lang = validLang;
|
|
16
|
-
_this.translation =
|
|
23
|
+
_this.translation = _locale.default[_this.lang];
|
|
17
24
|
};
|
|
18
25
|
this.get = function (key) {
|
|
19
26
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -31,10 +38,10 @@ class Intl {
|
|
|
31
38
|
}) || key;
|
|
32
39
|
};
|
|
33
40
|
this.lang = _lang.toLowerCase();
|
|
34
|
-
this.translation =
|
|
41
|
+
this.translation = _locale.default[this.lang];
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
44
|
const intl = new Intl({
|
|
38
|
-
lang: DEFAULT_LANG
|
|
45
|
+
lang: _constants.DEFAULT_LANG
|
|
39
46
|
});
|
|
40
|
-
|
|
47
|
+
var _default = exports.default = intl;
|
package/dist/locale/index.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _de = _interopRequireDefault(require("./lang/de"));
|
|
9
|
+
var _en = _interopRequireDefault(require("./lang/en"));
|
|
10
|
+
var _es = _interopRequireDefault(require("./lang/es"));
|
|
11
|
+
var _fr = _interopRequireDefault(require("./lang/fr"));
|
|
12
|
+
var _pt = _interopRequireDefault(require("./lang/pt"));
|
|
13
|
+
var _ru = _interopRequireDefault(require("./lang/ru"));
|
|
14
|
+
var _zh_CN = _interopRequireDefault(require("./lang/zh_CN"));
|
|
8
15
|
const LOCALES = {
|
|
9
|
-
'de':
|
|
10
|
-
'en':
|
|
11
|
-
'es':
|
|
12
|
-
'fr':
|
|
13
|
-
'pt':
|
|
14
|
-
'ru':
|
|
15
|
-
'zh-cn':
|
|
16
|
-
'zh_cn':
|
|
16
|
+
'de': _de.default,
|
|
17
|
+
'en': _en.default,
|
|
18
|
+
'es': _es.default,
|
|
19
|
+
'fr': _fr.default,
|
|
20
|
+
'pt': _pt.default,
|
|
21
|
+
'ru': _ru.default,
|
|
22
|
+
'zh-cn': _zh_CN.default,
|
|
23
|
+
'zh_cn': _zh_CN.default
|
|
17
24
|
};
|
|
18
|
-
|
|
25
|
+
var _default = exports.default = LOCALES;
|
package/dist/locale/lang/de.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const de = {
|
|
3
9
|
"Empty": "Leer",
|
|
@@ -295,4 +301,4 @@ const de = {
|
|
|
295
301
|
"All": "Alle",
|
|
296
302
|
"Label_value": "Etikettenwert"
|
|
297
303
|
};
|
|
298
|
-
|
|
304
|
+
var _default = exports.default = de;
|
package/dist/locale/lang/en.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const en = {
|
|
3
9
|
"Empty": "Empty",
|
|
@@ -298,4 +304,4 @@ const en = {
|
|
|
298
304
|
'Open_local_file_is_not_supported': 'Open local file is not supported',
|
|
299
305
|
'URL_is_invalid': 'URL is invalid'
|
|
300
306
|
};
|
|
301
|
-
|
|
307
|
+
var _default = exports.default = en;
|
package/dist/locale/lang/es.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const es = {
|
|
3
9
|
"Empty": "Empty",
|
|
@@ -295,4 +301,4 @@ const es = {
|
|
|
295
301
|
"All": "All",
|
|
296
302
|
"Label_value": "Label value"
|
|
297
303
|
};
|
|
298
|
-
|
|
304
|
+
var _default = exports.default = es;
|
package/dist/locale/lang/fr.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const fr = {
|
|
3
9
|
"Empty": "Vide",
|
|
@@ -295,4 +301,4 @@ const fr = {
|
|
|
295
301
|
"All": "All",
|
|
296
302
|
"Label_value": "Label value"
|
|
297
303
|
};
|
|
298
|
-
|
|
304
|
+
var _default = exports.default = fr;
|
package/dist/locale/lang/pt.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const pt = {
|
|
3
9
|
"Empty": "Empty",
|
|
@@ -295,4 +301,4 @@ const pt = {
|
|
|
295
301
|
"All": "All",
|
|
296
302
|
"Label_value": "Label value"
|
|
297
303
|
};
|
|
298
|
-
|
|
304
|
+
var _default = exports.default = pt;
|
package/dist/locale/lang/ru.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const ru = {
|
|
3
9
|
"Empty": "Empty",
|
|
@@ -295,4 +301,4 @@ const ru = {
|
|
|
295
301
|
"All": "All",
|
|
296
302
|
"Label_value": "Label value"
|
|
297
303
|
};
|
|
298
|
-
|
|
304
|
+
var _default = exports.default = ru;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
const zh_CN = {
|
|
3
9
|
"Empty": "空",
|
|
@@ -296,4 +302,4 @@ const zh_CN = {
|
|
|
296
302
|
"Label_value": "显示标签值",
|
|
297
303
|
"Basic_table": "基础表格"
|
|
298
304
|
};
|
|
299
|
-
|
|
305
|
+
var _default = exports.default = zh_CN;
|
package/dist/model/area-group.js
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _utils = require("../utils");
|
|
9
|
+
var _constants = require("../constants");
|
|
10
|
+
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
11
|
+
class AreaGroup extends _baseModel.default {
|
|
5
12
|
constructor(options) {
|
|
6
13
|
super({
|
|
7
14
|
...options,
|
|
8
|
-
type: CHART_TYPE.AREA_GROUP
|
|
15
|
+
type: _constants.CHART_TYPE.AREA_GROUP
|
|
9
16
|
});
|
|
10
17
|
|
|
11
18
|
// x-axis
|
|
12
19
|
this.x_axis_column_key = options.x_axis_column_key;
|
|
13
|
-
this.x_axis_include_empty_cells = isBoolean(options.x_axis_include_empty_cells) ? options.x_axis_include_empty_cells : false;
|
|
20
|
+
this.x_axis_include_empty_cells = (0, _utils.isBoolean)(options.x_axis_include_empty_cells) ? options.x_axis_include_empty_cells : false;
|
|
14
21
|
this.x_axis_date_granularity = options.x_axis_date_granularity;
|
|
15
22
|
this.x_axis_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
16
|
-
this.x_axis_show_label = isBoolean(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
23
|
+
this.x_axis_show_label = (0, _utils.isBoolean)(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
17
24
|
this.x_axis_label_position = options.x_axis_label_position;
|
|
18
25
|
|
|
19
26
|
// y-axis
|
|
20
27
|
this.y_axis_summary_column_key = options.y_axis_summary_column_key;
|
|
21
|
-
this.y_axis_summary_type = options.y_axis_summary_type || CHART_SUMMARY_TYPE.COUNT;
|
|
28
|
+
this.y_axis_summary_type = options.y_axis_summary_type || _constants.CHART_SUMMARY_TYPE.COUNT;
|
|
22
29
|
this.y_axis_summary_method = options.y_axis_summary_method;
|
|
23
|
-
this.y_axis_show_value = isBoolean(options.y_axis_show_value) ? options.y_axis_show_value : false;
|
|
24
|
-
this.y_axis_show_label = isBoolean(options.y_axis_show_label) ? options.y_axis_show_value : false;
|
|
30
|
+
this.y_axis_show_value = (0, _utils.isBoolean)(options.y_axis_show_value) ? options.y_axis_show_value : false;
|
|
31
|
+
this.y_axis_show_label = (0, _utils.isBoolean)(options.y_axis_show_label) ? options.y_axis_show_value : false;
|
|
25
32
|
this.y_axis_label_position = options.y_axis_label_position;
|
|
26
33
|
this.y_axis_auto_range = options.y_axis_auto_range;
|
|
27
34
|
this.y_axis_min = options.y_axis_min;
|
|
@@ -37,7 +44,7 @@ class AreaGroup extends BaseModel {
|
|
|
37
44
|
this.y_axis_use_stack = options.y_axis_use_stack;
|
|
38
45
|
this.label_font_size = options.label_font_size;
|
|
39
46
|
// default as curve
|
|
40
|
-
this.line_type = options.line_type || CHART_LINE_TYPES[1];
|
|
47
|
+
this.line_type = options.line_type || _constants.CHART_LINE_TYPES[1];
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
|
-
|
|
50
|
+
var _default = exports.default = AreaGroup;
|