dtable-statistic 4.3.2 → 4.3.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/es/api/dtable-db-api.js +10 -3
- package/es/calculator/base-calculator.js +20 -12
- package/es/calculator/basic-chart-calculator.js +72 -65
- package/es/calculator/combination-calculator.js +64 -57
- package/es/calculator/compare-bar-calculator.js +33 -26
- package/es/calculator/completeness-calculator.js +37 -30
- package/es/calculator/copy-value.js +7 -1
- package/es/calculator/dashboard-calculator.js +20 -13
- package/es/calculator/heat-map-calculator.js +25 -18
- package/es/calculator/horizontal-bar-calculator.js +15 -8
- package/es/calculator/index.js +42 -35
- package/es/calculator/map-calculator.js +29 -22
- package/es/calculator/mirror-calculator.js +27 -20
- package/es/calculator/number-card-calculator.js +17 -10
- package/es/calculator/pivot-table-calculator.js +65 -58
- package/es/calculator/scatter-calculator.js +21 -14
- package/es/calculator/thread-manager.js +7 -1
- package/es/calculator/trend-calculator.js +29 -22
- package/es/calculator/workers/basic-chart-calculator-worker.js +83 -76
- package/es/calculator/workers/calculator.worker.js +33 -30
- package/es/calculator/workers/card-calculator-worker.js +19 -13
- package/es/calculator/workers/combination-calculator-worker.js +53 -46
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +29 -22
- package/es/calculator/workers/completeness-calculator-worker.js +41 -34
- package/es/calculator/workers/dashboard-calculator-worker.js +24 -18
- package/es/calculator/workers/mirror-calculator-worker.js +29 -22
- package/es/calculator/workers/pivot-table-calculator-worker.js +84 -77
- package/es/calculator/workers/scatter-calculator-worker.js +27 -20
- package/es/calculator/workers/trend-calculator-worker.js +34 -27
- package/es/calculator/world-map-calculator.js +24 -17
- package/es/components/common-add-tool.js +12 -5
- package/es/components/dialog/chart-addition-edit-dialog.js +20 -12
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +110 -103
- package/es/components/dialog/color-theme-dialog.js +22 -15
- package/es/components/dialog/delete-confirmation-dialog.js +18 -11
- package/es/components/dialog/enlarged-chart-dialog.js +28 -20
- package/es/components/dialog/new-table-dialog.js +23 -16
- package/es/components/dialog/new-view-dialog.js +22 -15
- package/es/components/dialog/rename-view-dialog.js +22 -14
- package/es/components/dialog/statistic-record-dialog/index.js +45 -37
- package/es/components/dialog/statistic-types-dialog/index.js +22 -14
- package/es/components/dialog/table-select-dialog.js +23 -15
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +56 -43
- package/es/components/dtable-popover.js +19 -12
- package/es/components/dtable-search-input.js +21 -13
- package/es/components/dtable-select.js +20 -12
- package/es/components/icon.js +11 -4
- package/es/components/index.js +76 -11
- package/es/components/loading.js +10 -3
- package/es/components/modal-portal.js +12 -5
- package/es/components/popover/color-rules/color-rule.js +33 -25
- package/es/components/popover/color-rules/index.js +14 -6
- package/es/components/popover/color-rules/rule-filters/filter.js +35 -28
- package/es/components/popover/color-rules/rule-filters/index.js +25 -17
- package/es/components/popover/color-rules/rule-filters/number-input.js +17 -9
- package/es/components/popover/color-rules-popover.js +32 -24
- package/es/components/popover/color-selector-popover.js +17 -10
- package/es/components/seatable-radio/index.js +16 -9
- package/es/components/select/index.js +9 -2
- package/es/components/select/option-group.js +27 -19
- package/es/components/select/option.js +14 -6
- package/es/components/select/select.js +25 -17
- package/es/components/toast/alert.js +31 -24
- package/es/components/toast/index.js +10 -3
- package/es/components/toast/toast.js +20 -12
- package/es/components/toast/toastManager.js +17 -9
- package/es/components/toast/toaster.js +14 -6
- package/es/constants/color-rules.js +12 -6
- package/es/constants/dtable-select-style.js +9 -4
- package/es/constants/event-types.js +10 -4
- package/es/constants/index.js +96 -67
- package/es/constants/key-codes.js +2 -0
- package/es/constants/map.js +8 -2
- package/es/constants/model.js +26 -20
- package/es/constants/regions.js +8 -3
- package/es/constants/zIndexes.js +7 -1
- package/es/custom-g2.js +236 -208
- package/es/dashboard.js +58 -50
- package/es/desktop-dashboard.js +55 -47
- package/es/index.js +6 -3
- package/es/locale/index.js +13 -10
- package/es/locale/lang/de.js +7 -1
- package/es/locale/lang/en.js +7 -1
- package/es/locale/lang/fr.js +7 -1
- package/es/locale/lang/zh_CN.js +7 -1
- package/es/mobile-dashboard.js +46 -38
- package/es/model/bar-group.js +19 -11
- package/es/model/bar.js +18 -10
- package/es/model/base-model.js +9 -2
- package/es/model/basic-number-card.js +16 -8
- package/es/model/collaborators.js +9 -2
- package/es/model/combination.js +20 -12
- package/es/model/compare-bar.js +24 -16
- package/es/model/completeness-group.js +16 -8
- package/es/model/completeness.js +13 -5
- package/es/model/custom-bar.js +14 -6
- package/es/model/dashboard.js +14 -6
- package/es/model/generic-model.js +141 -133
- package/es/model/heat-map.js +19 -11
- package/es/model/horizontal-bar-group.js +18 -10
- package/es/model/horizontal-bar.js +18 -10
- package/es/model/index.js +185 -53
- package/es/model/map.js +23 -15
- package/es/model/mirror.js +21 -13
- package/es/model/pie.js +18 -10
- package/es/model/ring.js +19 -11
- package/es/model/scatter.js +14 -6
- package/es/model/statistic-dashboard.js +9 -2
- package/es/model/table.js +18 -10
- package/es/model/trend.js +20 -12
- package/es/model/world-map.js +21 -13
- package/es/service/chart-service.js +14 -7
- package/es/service/dashboard-service.js +42 -35
- package/es/service/map-json.js +14 -8
- package/es/stat-editor/chart-name-editor.js +15 -8
- package/es/stat-editor/index.js +24 -16
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +30 -22
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +57 -49
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +32 -24
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +11 -4
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +27 -19
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +51 -43
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +31 -23
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +31 -23
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +48 -40
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +29 -21
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +34 -26
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +55 -47
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +30 -22
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +26 -18
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +35 -27
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +32 -24
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +41 -33
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +30 -22
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +25 -17
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +54 -46
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +31 -23
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +34 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +85 -77
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +29 -21
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +81 -73
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +24 -16
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +27 -19
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +26 -18
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +59 -51
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +27 -19
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +57 -49
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +20 -12
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +56 -48
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +17 -9
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +29 -21
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +38 -30
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +58 -50
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +25 -17
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +56 -47
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +20 -12
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +19 -12
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +70 -62
- package/es/stat-editor/stat-settings/map/map-level.js +20 -13
- package/es/stat-editor/stat-settings/map/map-province-city.js +27 -20
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +19 -11
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +28 -20
- package/es/stat-editor/stat-settings/public-setting/calender.js +29 -22
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +13 -6
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +16 -9
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +21 -13
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +15 -8
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +19 -11
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +35 -27
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +15 -8
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.js +26 -18
- package/es/stat-list/chart-preview.js +33 -20
- package/es/stat-list/index.js +36 -28
- package/es/stat-view/area-chart.js +51 -44
- package/es/stat-view/bar-chart.js +55 -48
- package/es/stat-view/base-chart.js +32 -24
- package/es/stat-view/basic-number-card.js +26 -19
- package/es/stat-view/combination-chart.js +57 -50
- package/es/stat-view/compare-chart.js +47 -40
- package/es/stat-view/completeness-chart.js +37 -30
- package/es/stat-view/custom-bar.js +38 -31
- package/es/stat-view/dashboard-chart.js +22 -15
- package/es/stat-view/heat-map.js +50 -43
- package/es/stat-view/horizontal-bar-chart.js +59 -52
- package/es/stat-view/index.js +80 -73
- package/es/stat-view/line-chart.js +47 -40
- package/es/stat-view/map.js +40 -33
- package/es/stat-view/mirror.js +28 -21
- package/es/stat-view/pie-chart.js +36 -29
- package/es/stat-view/pivot-table/index.js +39 -32
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +39 -31
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +37 -29
- package/es/stat-view/pivot-table/pivot-table-display-name.js +54 -46
- package/es/stat-view/pivot-table/two-dimension-table.js +70 -62
- package/es/stat-view/ring-chart.js +46 -39
- package/es/stat-view/scatter-chart.js +37 -30
- package/es/stat-view/treemap-chart.js +45 -38
- package/es/stat-view/trend-chart.js +39 -32
- package/es/stat-view/world-map.js +40 -33
- package/es/tabs/index.js +40 -32
- package/es/tabs/tab.js +35 -27
- package/es/utils/basic-chart-utils.js +9 -2
- package/es/utils/cell-format.js +22 -14
- package/es/utils/cell-value.js +14 -7
- package/es/utils/collaborator.js +13 -4
- package/es/utils/color-utils.js +29 -18
- package/es/utils/column-utils.js +29 -18
- package/es/utils/column.js +11 -4
- package/es/utils/common-utils.js +67 -43
- package/es/utils/date-format.js +8 -2
- package/es/utils/export-table-utils.js +91 -82
- package/es/utils/index.js +100 -11
- package/es/utils/map.js +36 -26
- package/es/utils/model.js +14 -6
- package/es/utils/object.js +15 -6
- package/es/utils/pivot-table.js +23 -16
- package/es/utils/row-utils.js +34 -24
- package/es/utils/search.js +29 -21
- package/es/utils/sql-utils.js +75 -65
- package/es/utils/stat-utils.js +67 -60
- package/es/utils/trend-utils.js +40 -32
- package/package.json +82 -125
package/es/mobile-dashboard.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
+
var _tabs = _interopRequireDefault(require("./tabs"));
|
|
12
|
+
var _statView = _interopRequireDefault(require("./stat-view"));
|
|
13
|
+
var _constants = require("./constants");
|
|
14
|
+
var _icon = _interopRequireDefault(require("./assets/images/icon.png"));
|
|
15
|
+
var _mobileDashboardModule = _interopRequireDefault(require("./assets/css/mobile-dashboard.module.css"));
|
|
16
|
+
class MobileDashboard extends _react.Component {
|
|
9
17
|
constructor() {
|
|
10
18
|
super(...arguments);
|
|
11
19
|
this.onCloseDashboard = () => {
|
|
@@ -29,20 +37,20 @@ class MobileDashboard extends Component {
|
|
|
29
37
|
const {
|
|
30
38
|
stat_items: statItems
|
|
31
39
|
} = statistic || {};
|
|
32
|
-
return /*#__PURE__*/
|
|
33
|
-
className: "".concat(
|
|
34
|
-
}, /*#__PURE__*/
|
|
35
|
-
className: "".concat(
|
|
36
|
-
}, /*#__PURE__*/
|
|
37
|
-
className:
|
|
38
|
-
}, /*#__PURE__*/
|
|
39
|
-
className:
|
|
40
|
-
src:
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
+
className: "".concat(_mobileDashboardModule.default['mobile-statistic-container'], " statistic-panel mobile-statistic-panel statistic-light")
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: "".concat(_mobileDashboardModule.default['mobile-statistic-header'])
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
+
className: _mobileDashboardModule.default['mobile-statistic-title']
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
47
|
+
className: _mobileDashboardModule.default['mobile-statistic-logo'],
|
|
48
|
+
src: _icon.default,
|
|
41
49
|
alt: ""
|
|
42
|
-
}), /*#__PURE__*/
|
|
43
|
-
className:
|
|
44
|
-
},
|
|
45
|
-
theme: THEME_NAME_MAP.LIGHT,
|
|
50
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
51
|
+
className: _mobileDashboardModule.default['mobile-statistic-name']
|
|
52
|
+
}, _reactIntlUniversal.default.get('Statistics'))), /*#__PURE__*/_react.default.createElement(_tabs.default, {
|
|
53
|
+
theme: _constants.THEME_NAME_MAP.LIGHT,
|
|
46
54
|
isMobile: true,
|
|
47
55
|
statistics: statistics,
|
|
48
56
|
selectedDashboardIdx: selectedDashboardIdx,
|
|
@@ -50,34 +58,34 @@ class MobileDashboard extends Component {
|
|
|
50
58
|
addDashboard: this.props.addDashboard,
|
|
51
59
|
renameDashboard: this.props.renameDashboard,
|
|
52
60
|
deleteDashboard: this.props.deleteDashboard
|
|
53
|
-
}), /*#__PURE__*/
|
|
54
|
-
className:
|
|
55
|
-
}, /*#__PURE__*/
|
|
56
|
-
className: "close ".concat(
|
|
61
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
className: _mobileDashboardModule.default['mobile-statistic-tool-container']
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
64
|
+
className: "close ".concat(_mobileDashboardModule.default['mobile-statistic-header-button']),
|
|
57
65
|
onClick: this.onCloseDashboard
|
|
58
|
-
}, /*#__PURE__*/
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
59
67
|
className: 'dtable-font dtable-icon-x'
|
|
60
|
-
})))), /*#__PURE__*/
|
|
61
|
-
className:
|
|
68
|
+
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
+
className: _mobileDashboardModule.default['mobile-statistic-dashboard-wrapper']
|
|
62
70
|
}, statItems.map(statItem => {
|
|
63
71
|
const {
|
|
64
72
|
_id,
|
|
65
73
|
type,
|
|
66
74
|
name
|
|
67
75
|
} = statItem;
|
|
68
|
-
const showStatName = !(type === STAT_TYPE.BASIC_NUMBER_CARD || type === STAT_TYPE.DASHBOARD);
|
|
69
|
-
return /*#__PURE__*/
|
|
76
|
+
const showStatName = !(type === _constants.STAT_TYPE.BASIC_NUMBER_CARD || type === _constants.STAT_TYPE.DASHBOARD);
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
70
78
|
key: "mobile-statistic-chart-".concat(_id),
|
|
71
|
-
className:
|
|
72
|
-
}, /*#__PURE__*/
|
|
73
|
-
className: "".concat(
|
|
74
|
-
}, showStatName && name), /*#__PURE__*/
|
|
75
|
-
className:
|
|
76
|
-
}, /*#__PURE__*/
|
|
79
|
+
className: _mobileDashboardModule.default['mobile-statistic-chart-wrapper']
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
81
|
+
className: "".concat(_mobileDashboardModule.default['mobile-statistic-chart-header'], " text-truncate")
|
|
82
|
+
}, showStatName && name), /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
+
className: _mobileDashboardModule.default['mobile-statistic-chart-container']
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_statView.default, {
|
|
77
85
|
isPreview: true,
|
|
78
86
|
isEnlarge: false,
|
|
79
87
|
dtableChangedTime: dtableChangedTime,
|
|
80
|
-
theme: THEME_NAME_MAP.LIGHT,
|
|
88
|
+
theme: _constants.THEME_NAME_MAP.LIGHT,
|
|
81
89
|
colorThemeName: colorThemeName,
|
|
82
90
|
statItem: statItem,
|
|
83
91
|
chartCalculator: chartCalculator,
|
|
@@ -89,4 +97,4 @@ class MobileDashboard extends Component {
|
|
|
89
97
|
})));
|
|
90
98
|
}
|
|
91
99
|
}
|
|
92
|
-
|
|
100
|
+
var _default = exports.default = MobileDashboard;
|
package/es/model/bar-group.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 _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
+
var _commonUtils = require("../utils/common-utils");
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
class BarGroup extends _baseModel.default {
|
|
5
12
|
constructor(object) {
|
|
6
13
|
super(object);
|
|
7
14
|
|
|
@@ -12,23 +19,23 @@ export default class BarGroup extends BaseModel {
|
|
|
12
19
|
this.x_axis_include_empty = object.x_axis_include_empty;
|
|
13
20
|
|
|
14
21
|
// x style
|
|
15
|
-
this.show_x_axis_label = isBoolean(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
22
|
+
this.show_x_axis_label = (0, _commonUtils.isBoolean)(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
16
23
|
this.x_axis_label_position = object.x_axis_label_position;
|
|
17
24
|
|
|
18
25
|
// y data
|
|
19
|
-
this.y_axis_summary_type = object.y_axis_summary_type || SUMMARY_TYPE.COUNT;
|
|
26
|
+
this.y_axis_summary_type = object.y_axis_summary_type || _constants.SUMMARY_TYPE.COUNT;
|
|
20
27
|
this.y_axis_column_key = object.y_axis_column_key;
|
|
21
28
|
this.y_axis_summary_method = object.y_axis_summary_method;
|
|
22
|
-
if (this.y_axis_summary_method === SUMMARY_METHOD_MAP.Row_count) {
|
|
23
|
-
this.y_axis_summary_method = SUMMARY_METHOD_MAP.Max;
|
|
29
|
+
if (this.y_axis_summary_method === _constants.SUMMARY_METHOD_MAP.Row_count) {
|
|
30
|
+
this.y_axis_summary_method = _constants.SUMMARY_METHOD_MAP.Max;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
// y style
|
|
27
|
-
this.y_axis_label_position = isBoolean(object.y_axis_label_position) ? object.y_axis_label_position : false;
|
|
34
|
+
this.y_axis_label_position = (0, _commonUtils.isBoolean)(object.y_axis_label_position) ? object.y_axis_label_position : false;
|
|
28
35
|
this.show_y_axis_label = object.show_y_axis_label;
|
|
29
36
|
this.y_axis_label_color = object.y_axis_label_color;
|
|
30
37
|
this.y_axis_use_stack = object.y_axis_use_stack;
|
|
31
|
-
if (this.type === STAT_TYPE.BAR_STACK) {
|
|
38
|
+
if (this.type === _constants.STAT_TYPE.BAR_STACK) {
|
|
32
39
|
this.y_axis_use_stack = true;
|
|
33
40
|
}
|
|
34
41
|
this.y_axis_auto_range = object.y_axis_auto_range;
|
|
@@ -47,4 +54,5 @@ export default class BarGroup extends BaseModel {
|
|
|
47
54
|
this.display_data = object.display_data;
|
|
48
55
|
this.sort_type = object.sort_type;
|
|
49
56
|
}
|
|
50
|
-
}
|
|
57
|
+
}
|
|
58
|
+
exports.default = BarGroup;
|
package/es/model/bar.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 _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
+
var _commonUtils = require("../utils/common-utils");
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
class Bar extends _baseModel.default {
|
|
5
12
|
constructor(object) {
|
|
6
13
|
super(object);
|
|
7
14
|
|
|
@@ -12,22 +19,22 @@ export default class Bar extends BaseModel {
|
|
|
12
19
|
this.x_axis_include_empty = object.x_axis_include_empty;
|
|
13
20
|
|
|
14
21
|
// x style
|
|
15
|
-
this.show_x_axis_label = isBoolean(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
22
|
+
this.show_x_axis_label = (0, _commonUtils.isBoolean)(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
16
23
|
this.x_axis_label_position = object.x_axis_label_position;
|
|
17
24
|
|
|
18
25
|
// y data
|
|
19
|
-
this.y_axis_summary_type = object.y_axis_summary_type || SUMMARY_TYPE.COUNT;
|
|
26
|
+
this.y_axis_summary_type = object.y_axis_summary_type || _constants.SUMMARY_TYPE.COUNT;
|
|
20
27
|
this.y_axis_column_key = object.y_axis_column_key;
|
|
21
28
|
this.y_axis_summary_method = object.y_axis_summary_method;
|
|
22
|
-
if (this.y_axis_summary_method === SUMMARY_METHOD_MAP.Row_count) {
|
|
23
|
-
this.y_axis_summary_method = SUMMARY_METHOD_MAP.Max;
|
|
29
|
+
if (this.y_axis_summary_method === _constants.SUMMARY_METHOD_MAP.Row_count) {
|
|
30
|
+
this.y_axis_summary_method = _constants.SUMMARY_METHOD_MAP.Max;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
// y style
|
|
27
34
|
this.color_option = object.color_option;
|
|
28
35
|
this.y_axis_label_color = object.y_axis_label_color;
|
|
29
36
|
this.y_axis_label_color_rules = object.y_axis_label_color_rules;
|
|
30
|
-
this.show_y_axis_label = isBoolean(object.show_y_axis_label) ? object.show_y_axis_label : false;
|
|
37
|
+
this.show_y_axis_label = (0, _commonUtils.isBoolean)(object.show_y_axis_label) ? object.show_y_axis_label : false;
|
|
31
38
|
this.y_axis_label_position = object.y_axis_label_position;
|
|
32
39
|
this.y_axis_auto_range = object.y_axis_auto_range;
|
|
33
40
|
this.y_axis_min = object.y_axis_min;
|
|
@@ -36,4 +43,5 @@ export default class Bar extends BaseModel {
|
|
|
36
43
|
this.label_font_size = object.label_font_size;
|
|
37
44
|
this.display_data = object.display_data;
|
|
38
45
|
}
|
|
39
|
-
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = Bar;
|
package/es/model/base-model.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
class BaseModel {
|
|
2
8
|
constructor(object) {
|
|
3
9
|
this._id = object._id || null;
|
|
4
10
|
this.name = object.name || null;
|
|
@@ -8,4 +14,5 @@ export default class BaseModel {
|
|
|
8
14
|
this.layout = object.layout;
|
|
9
15
|
this.chart_color_theme = object.chart_color_theme || 'theme0';
|
|
10
16
|
}
|
|
11
|
-
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = BaseModel;
|
|
@@ -1,17 +1,25 @@
|
|
|
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 _dtableStore = require("dtable-store");
|
|
9
|
+
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
class BasicNumberCard extends _baseModel.default {
|
|
5
12
|
constructor(object, table) {
|
|
6
13
|
super(object);
|
|
7
14
|
this.name = null;
|
|
8
15
|
this.numeric_column = object.x_axis_column_key;
|
|
9
16
|
if (this.numeric_column) {
|
|
10
|
-
const column = TableUtils.getTableColumnByKey(table, this.numeric_column);
|
|
11
|
-
if (!isNumericColumn(column)) {
|
|
17
|
+
const column = _dtableStore.TableUtils.getTableColumnByKey(table, this.numeric_column);
|
|
18
|
+
if (!(0, _dtableStore.isNumericColumn)(column)) {
|
|
12
19
|
this.numeric_column = null;
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
|
-
this.summary_method = object.y_axis_summary_method || SUMMARY_METHOD_MAP.Row_count;
|
|
22
|
+
this.summary_method = object.y_axis_summary_method || _constants.SUMMARY_METHOD_MAP.Row_count;
|
|
16
23
|
}
|
|
17
|
-
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = BasicNumberCard;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
class Collaborators {
|
|
2
8
|
constructor(object) {
|
|
3
9
|
this.avatar_url = object.avatar_url || '';
|
|
4
10
|
this.contact_email = object.contact_email || '';
|
|
@@ -7,4 +13,5 @@ export default class Collaborators {
|
|
|
7
13
|
this.name_pinyin = object.name_pinyin || '';
|
|
8
14
|
this.id = object.id_in_org || '';
|
|
9
15
|
}
|
|
10
|
-
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = Collaborators;
|
package/es/model/combination.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 _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
+
var _commonUtils = require("../utils/common-utils");
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
class Combination extends _baseModel.default {
|
|
5
12
|
constructor(object) {
|
|
6
13
|
super(object);
|
|
7
14
|
|
|
@@ -12,20 +19,20 @@ export default class Combination extends BaseModel {
|
|
|
12
19
|
this.x_axis_include_empty = object.x_axis_include_empty;
|
|
13
20
|
|
|
14
21
|
// y left/right data/style
|
|
15
|
-
this.y_axis_left_summary_type = object.y_axis_left_summary_type || STATISTICS_COUNT_TYPE.COUNT;
|
|
16
|
-
this.y_axis_right_summary_type = object.y_axis_right_summary_type || STATISTICS_COUNT_TYPE.COUNT;
|
|
22
|
+
this.y_axis_left_summary_type = object.y_axis_left_summary_type || _constants.STATISTICS_COUNT_TYPE.COUNT;
|
|
23
|
+
this.y_axis_right_summary_type = object.y_axis_right_summary_type || _constants.STATISTICS_COUNT_TYPE.COUNT;
|
|
17
24
|
this.y_axis_left_summary_method = object.y_axis_left_summary_method;
|
|
18
25
|
this.y_axis_right_summary_method = object.y_axis_right_summary_method;
|
|
19
26
|
this.y_axis_left_summary_column = object.y_axis_left__summary_column;
|
|
20
27
|
this.y_axis_right_summary_column = object.y_axis_right_summary_column;
|
|
21
|
-
this.y_axis_left_group_by_multiple_numeric_column = isBoolean(object.y_axis_left_group_by_multiple_numeric_column) ? object.y_axis_left_group_by_multiple_numeric_column : false;
|
|
28
|
+
this.y_axis_left_group_by_multiple_numeric_column = (0, _commonUtils.isBoolean)(object.y_axis_left_group_by_multiple_numeric_column) ? object.y_axis_left_group_by_multiple_numeric_column : false;
|
|
22
29
|
this.y_axis_left_group_by_numeric_columns = object.y_axis_left_group_by_numeric_columns;
|
|
23
|
-
this.y_axis_left_color = object.y_axis_left_color || LABEL_COLORS[0];
|
|
24
|
-
this.y_axis_right_color = object.y_axis_right_color || LABEL_COLORS[1];
|
|
30
|
+
this.y_axis_left_color = object.y_axis_left_color || _constants.LABEL_COLORS[0];
|
|
31
|
+
this.y_axis_right_color = object.y_axis_right_color || _constants.LABEL_COLORS[1];
|
|
25
32
|
this.show_x_axis_label = object.show_x_axis_label;
|
|
26
33
|
this.x_axis_label_position = object.x_axis_label_position;
|
|
27
|
-
this.show_y_axis_left_label = isBoolean(object.show_y_axis_left_label) ? object.show_y_axis_left_label : false;
|
|
28
|
-
this.show_y_axis_right_label = isBoolean(object.show_y_axis_right_label) ? object.show_y_axis_right_label : false;
|
|
34
|
+
this.show_y_axis_left_label = (0, _commonUtils.isBoolean)(object.show_y_axis_left_label) ? object.show_y_axis_left_label : false;
|
|
35
|
+
this.show_y_axis_right_label = (0, _commonUtils.isBoolean)(object.show_y_axis_right_label) ? object.show_y_axis_right_label : false;
|
|
29
36
|
this.y_axis_left_label_position = object.y_axis_left_label_position;
|
|
30
37
|
this.y_axis_right_label_position = object.y_axis_right_label_position;
|
|
31
38
|
this.y_axis_auto_range_left = object.y_axis_auto_range_left;
|
|
@@ -37,4 +44,5 @@ export default class Combination extends BaseModel {
|
|
|
37
44
|
this.display_data = object.display_data;
|
|
38
45
|
this.label_font_size = object.label_font_size;
|
|
39
46
|
}
|
|
40
|
-
}
|
|
47
|
+
}
|
|
48
|
+
exports.default = Combination;
|
package/es/model/compare-bar.js
CHANGED
|
@@ -1,36 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 _dtableStore = require("dtable-store");
|
|
9
|
+
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
10
|
+
var _commonUtils = require("../utils/common-utils");
|
|
11
|
+
var _columnUtils = require("../utils/column-utils");
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
class CompareBar extends _baseModel.default {
|
|
7
14
|
constructor(object, table) {
|
|
8
15
|
super(object);
|
|
9
16
|
|
|
10
17
|
// x data
|
|
11
18
|
this.x_axis_column_key = object.x_axis_column_key;
|
|
12
19
|
if (this.x_axis_column_key) {
|
|
13
|
-
const column = TableUtils.getTableColumnByKey(table, this.x_axis_column_key);
|
|
14
|
-
if (!isStatisticDateColumn(column)) {
|
|
20
|
+
const column = _dtableStore.TableUtils.getTableColumnByKey(table, this.x_axis_column_key);
|
|
21
|
+
if (!(0, _columnUtils.isStatisticDateColumn)(column)) {
|
|
15
22
|
this.x_axis_column_key = null;
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
|
-
this.x_axis_date_granularity = object.x_axis_date_granularity || DATE_GRANULARITY.MONTH;
|
|
25
|
+
this.x_axis_date_granularity = object.x_axis_date_granularity || _constants.DATE_GRANULARITY.MONTH;
|
|
19
26
|
this.x_axis_date_range_start = object.x_axis_date_range_start;
|
|
20
27
|
this.x_axis_date_range_end = object.x_axis_date_range_end;
|
|
21
28
|
this.x_axis_compared_date_range_start = object.x_axis_compared_date_range_start;
|
|
22
29
|
this.x_axis_compared_date_range_end = object.x_axis_compared_date_range_end;
|
|
23
30
|
|
|
24
31
|
// x style
|
|
25
|
-
this.show_x_axis_label = isBoolean(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
32
|
+
this.show_x_axis_label = (0, _commonUtils.isBoolean)(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
26
33
|
this.x_axis_label_position = object.x_axis_label_position;
|
|
27
34
|
|
|
28
35
|
// y data
|
|
29
|
-
this.y_axis_summary_type = object.y_axis_summary_type || SUMMARY_TYPE.COUNT;
|
|
36
|
+
this.y_axis_summary_type = object.y_axis_summary_type || _constants.SUMMARY_TYPE.COUNT;
|
|
30
37
|
this.y_axis_column_key = object.y_axis_column_key;
|
|
31
38
|
this.y_axis_summary_method = object.y_axis_summary_method;
|
|
32
|
-
if (this.y_axis_summary_method === SUMMARY_METHOD_MAP.Row_count) {
|
|
33
|
-
this.y_axis_summary_method = SUMMARY_METHOD_MAP.Max;
|
|
39
|
+
if (this.y_axis_summary_method === _constants.SUMMARY_METHOD_MAP.Row_count) {
|
|
40
|
+
this.y_axis_summary_method = _constants.SUMMARY_METHOD_MAP.Max;
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
// y style
|
|
@@ -38,11 +45,12 @@ export default class CompareBar extends BaseModel {
|
|
|
38
45
|
this.y_axis_label_position = object.y_axis_label_position;
|
|
39
46
|
this.y_axis_compare_label_color = object.y_axis_compare_label_color;
|
|
40
47
|
this.y_axis_compared_label_color = object.y_axis_compared_label_color;
|
|
41
|
-
this.display_increase = isBoolean(object.display_increase) ? object.display_increase : false;
|
|
42
|
-
this.display_increase_percentage = isBoolean(object.display_increase_percentage) ? object.display_increase_percentage : false;
|
|
48
|
+
this.display_increase = (0, _commonUtils.isBoolean)(object.display_increase) ? object.display_increase : false;
|
|
49
|
+
this.display_increase_percentage = (0, _commonUtils.isBoolean)(object.display_increase_percentage) ? object.display_increase_percentage : false;
|
|
43
50
|
this.increase_display_color = object.increase_display_color;
|
|
44
51
|
this.label_font_size = object.label_font_size;
|
|
45
52
|
this.display_data = object.display_data;
|
|
46
53
|
this.increase_line_color = object.increase_line_color || '#fbd44a';
|
|
47
54
|
}
|
|
48
|
-
}
|
|
55
|
+
}
|
|
56
|
+
exports.default = CompareBar;
|
|
@@ -1,17 +1,24 @@
|
|
|
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 _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
+
var _commonUtils = require("../utils/common-utils");
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
class CompletenessGroup extends _baseModel.default {
|
|
5
12
|
constructor(object) {
|
|
6
13
|
super(object);
|
|
7
14
|
this.name_column = object.x_axis_column_key;
|
|
8
15
|
this.target_value_column = object.target_value_column;
|
|
9
|
-
this.target_value_column_summary_method = object.target_value_column_summary_method || SUMMARY_METHOD_MAP.Row_count;
|
|
16
|
+
this.target_value_column_summary_method = object.target_value_column_summary_method || _constants.SUMMARY_METHOD_MAP.Row_count;
|
|
10
17
|
this.total_value_column = object.total_value_column;
|
|
11
|
-
this.total_value_column_summary_method = object.total_value_column_summary_method || SUMMARY_METHOD_MAP.Row_count;
|
|
18
|
+
this.total_value_column_summary_method = object.total_value_column_summary_method || _constants.SUMMARY_METHOD_MAP.Row_count;
|
|
12
19
|
this.completed_column = object.completed_column;
|
|
13
20
|
this.target_column = object.target_column;
|
|
14
|
-
this.display_percentage = isBoolean(object.display_percentage) ? object.display_percentage : true;
|
|
21
|
+
this.display_percentage = (0, _commonUtils.isBoolean)(object.display_percentage) ? object.display_percentage : true;
|
|
15
22
|
this.group_column = object.column_groupby_column_key;
|
|
16
23
|
this.date_granularity = object.column_groupby_date_granularity;
|
|
17
24
|
this.geolocation_granularity = object.column_groupby_geolocation_granularity;
|
|
@@ -20,4 +27,5 @@ export default class CompletenessGroup extends BaseModel {
|
|
|
20
27
|
this.y_axis_max = object.y_axis_max;
|
|
21
28
|
this.y_axis_min = object.y_axis_min;
|
|
22
29
|
}
|
|
23
|
-
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = CompletenessGroup;
|
package/es/model/completeness.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
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 _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
+
var _commonUtils = require("../utils/common-utils");
|
|
10
|
+
class Completeness extends _baseModel.default {
|
|
4
11
|
constructor(object) {
|
|
5
12
|
super(object);
|
|
6
13
|
this.name_column = object.name_column;
|
|
@@ -8,10 +15,11 @@ export default class Completeness extends BaseModel {
|
|
|
8
15
|
this.target_column = object.target_column;
|
|
9
16
|
this.total_value_column = object.total_value_column;
|
|
10
17
|
this.completed_color = object.completed_color || '#2a67d1';
|
|
11
|
-
this.display_percentage = isBoolean(object.display_percentage) ? object.display_percentage : true;
|
|
18
|
+
this.display_percentage = (0, _commonUtils.isBoolean)(object.display_percentage) ? object.display_percentage : true;
|
|
12
19
|
this.y_axis_auto_range = object.y_axis_auto_range;
|
|
13
20
|
this.y_axis_min = object.y_axis_min;
|
|
14
21
|
this.y_axis_max = object.y_axis_max;
|
|
15
22
|
this.label_font_size = object.label_font_size;
|
|
16
23
|
}
|
|
17
|
-
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = Completeness;
|
package/es/model/custom-bar.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
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 _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
+
var _commonUtils = require("../utils/common-utils");
|
|
10
|
+
class CustomBar extends _baseModel.default {
|
|
4
11
|
constructor(object) {
|
|
5
12
|
super(object);
|
|
6
13
|
this.x_axis_column_key = object.x_axis_column_key;
|
|
7
14
|
this.x_axis_date_granularity = object.x_axis_date_granularity;
|
|
8
15
|
this.x_axis_geolocation_granularity = object.x_axis_geolocation_granularity;
|
|
9
16
|
this.x_axis_include_empty = object.x_axis_include_empty;
|
|
10
|
-
this.show_x_axis_label = isBoolean(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
11
|
-
this.show_y_axis_label = isBoolean(object.show_y_axis_label) ? object.show_y_axis_label : false;
|
|
17
|
+
this.show_x_axis_label = (0, _commonUtils.isBoolean)(object.show_x_axis_label) ? object.show_x_axis_label : false;
|
|
18
|
+
this.show_y_axis_label = (0, _commonUtils.isBoolean)(object.show_y_axis_label) ? object.show_y_axis_label : false;
|
|
12
19
|
this.x_axis_label_position = object.x_axis_label_position;
|
|
13
20
|
this.y_axis_label_position = object.y_axis_label_position;
|
|
14
21
|
this.title_name = object.title_name;
|
|
15
22
|
this.y_axises = object.y_axises;
|
|
16
23
|
}
|
|
17
|
-
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = CustomBar;
|
package/es/model/dashboard.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
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 _constants = require("../constants");
|
|
9
|
+
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
10
|
+
class Dashboard extends _baseModel.default {
|
|
4
11
|
constructor(object) {
|
|
5
12
|
super(object);
|
|
6
13
|
this.name = null;
|
|
7
14
|
this.target_value_column = object.target_value_column;
|
|
8
|
-
this.target_value_column_summary_method = object.target_value_column_summary_method || SUMMARY_METHOD_MAP.Row_count;
|
|
15
|
+
this.target_value_column_summary_method = object.target_value_column_summary_method || _constants.SUMMARY_METHOD_MAP.Row_count;
|
|
9
16
|
this.total_value_column = object.total_value_column;
|
|
10
|
-
this.total_value_column_summary_method = object.total_value_column_summary_method || SUMMARY_METHOD_MAP.Row_count;
|
|
17
|
+
this.total_value_column_summary_method = object.total_value_column_summary_method || _constants.SUMMARY_METHOD_MAP.Row_count;
|
|
11
18
|
}
|
|
12
|
-
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = Dashboard;
|