dtable-statistic 4.0.2-test-2
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/README.md +3 -0
- package/es/api/dtable-db-api.js +43 -0
- package/es/assets/css/color-picker.css +53 -0
- package/es/assets/css/color-rules-popover.css +144 -0
- package/es/assets/css/color-theme-dialog.css +40 -0
- package/es/assets/css/dashboard.css +562 -0
- package/es/assets/css/dialog.css +415 -0
- package/es/assets/css/mobile-dashboard.module.css +91 -0
- package/es/assets/css/slider.css +77 -0
- package/es/assets/css/statistic-chart.module.css +11 -0
- package/es/assets/css/statistic-custom-title.module.css +3 -0
- package/es/assets/css/statistic-custom.module.css +4 -0
- package/es/assets/css/statistic-numeric-column-item.module.css +43 -0
- package/es/assets/css/statistic-time-picker.module.css +21 -0
- package/es/assets/css/theme.css +61 -0
- package/es/assets/images/icon.png +0 -0
- package/es/calculator/base-calculator.js +111 -0
- package/es/calculator/basic-chart-calculator.js +571 -0
- package/es/calculator/combination-calculator.js +296 -0
- package/es/calculator/compare-bar-calculator.js +291 -0
- package/es/calculator/completeness-calculator.js +307 -0
- package/es/calculator/copy-value.js +47 -0
- package/es/calculator/dashboard-calculator.js +146 -0
- package/es/calculator/heat-map-calculator.js +225 -0
- package/es/calculator/horizontal-bar-calculator.js +100 -0
- package/es/calculator/index.js +88 -0
- package/es/calculator/map-calculator.js +169 -0
- package/es/calculator/mirror-calculator.js +217 -0
- package/es/calculator/number-card-calculator.js +135 -0
- package/es/calculator/pivot-table-calculator.js +810 -0
- package/es/calculator/scatter-calculator.js +150 -0
- package/es/calculator/thread-manager.js +70 -0
- package/es/calculator/trend-calculator.js +204 -0
- package/es/calculator/workers/basic-chart-calculator-worker.js +410 -0
- package/es/calculator/workers/calculator.worker.js +22 -0
- package/es/calculator/workers/card-calculator-worker.js +28 -0
- package/es/calculator/workers/combination-calculator-worker.js +257 -0
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +149 -0
- package/es/calculator/workers/completeness-calculator-worker.js +153 -0
- package/es/calculator/workers/dashboard-calculator-worker.js +56 -0
- package/es/calculator/workers/mirror-calculator-worker.js +132 -0
- package/es/calculator/workers/pivot-table-calculator-worker.js +615 -0
- package/es/calculator/workers/scatter-calculator-worker.js +67 -0
- package/es/calculator/workers/trend-calculator-worker.js +93 -0
- package/es/calculator/world-map-calculator.js +193 -0
- package/es/components/common-add-tool.js +19 -0
- package/es/components/dialog/chart-addition-edit-dialog.js +89 -0
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +261 -0
- package/es/components/dialog/chart-addition-widgets/statistic-chart-selector.module.css +74 -0
- package/es/components/dialog/color-theme-dialog.js +71 -0
- package/es/components/dialog/enlarged-chart-dialog.js +73 -0
- package/es/components/dialog/new-table-dialog.js +113 -0
- package/es/components/dialog/new-view-dialog.js +87 -0
- package/es/components/dialog/rename-view-dialog.js +87 -0
- package/es/components/dialog/statistic-record-dialog/index.css +114 -0
- package/es/components/dialog/statistic-record-dialog/index.js +174 -0
- package/es/components/dialog/table-select-dialog.js +93 -0
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +94 -0
- package/es/components/dtable-popover.js +109 -0
- package/es/components/dtable-search-input.js +137 -0
- package/es/components/dtable-select.js +104 -0
- package/es/components/index.js +11 -0
- package/es/components/loading.js +8 -0
- package/es/components/modal-portal.js +36 -0
- package/es/components/popover/color-rules/color-rule.js +179 -0
- package/es/components/popover/color-rules/index.js +87 -0
- package/es/components/popover/color-rules/rule-filters/filter.js +214 -0
- package/es/components/popover/color-rules/rule-filters/index.css +214 -0
- package/es/components/popover/color-rules/rule-filters/index.js +97 -0
- package/es/components/popover/color-rules/rule-filters/number-input.js +85 -0
- package/es/components/popover/color-rules-popover.js +213 -0
- package/es/components/popover/color-selector-popover.js +85 -0
- package/es/components/seatable-radio/index.css +51 -0
- package/es/components/seatable-radio/index.js +28 -0
- package/es/components/select/index.js +2 -0
- package/es/components/select/option-group.css +104 -0
- package/es/components/select/option-group.js +225 -0
- package/es/components/select/option.js +51 -0
- package/es/components/select/select.css +211 -0
- package/es/components/select/select.js +157 -0
- package/es/components/toast/alert.js +130 -0
- package/es/components/toast/index.js +3 -0
- package/es/components/toast/toast.js +164 -0
- package/es/components/toast/toastManager.js +150 -0
- package/es/components/toast/toaster.js +64 -0
- package/es/constants/color-rules.js +8 -0
- package/es/constants/dtable-select-style.js +61 -0
- package/es/constants/event-types.js +1 -0
- package/es/constants/index.js +501 -0
- package/es/constants/key-codes.js +102 -0
- package/es/constants/zIndexes.js +1 -0
- package/es/custom-g2.js +614 -0
- package/es/dashboard.js +408 -0
- package/es/desktop-dashboard.js +299 -0
- package/es/index.js +33 -0
- package/es/locale/index.js +17 -0
- package/es/locale/lang/de.js +237 -0
- package/es/locale/lang/en.js +237 -0
- package/es/locale/lang/fr.js +237 -0
- package/es/locale/lang/zh_CN.js +237 -0
- package/es/mobile-dashboard.js +103 -0
- package/es/model/collaborators.js +11 -0
- package/es/model/stat-item.js +340 -0
- package/es/model/statistic-dashboard.js +8 -0
- package/es/service/chart-service.js +192 -0
- package/es/service/dashboard-service.js +415 -0
- package/es/stat-editor/chart-name-editor.js +75 -0
- package/es/stat-editor/index.js +74 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +149 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +415 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +193 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +13 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +107 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +332 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +170 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +141 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +219 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +89 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +132 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +319 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +138 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +135 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +156 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +147 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +195 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +126 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +169 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +352 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +145 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +153 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +466 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +183 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +542 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +111 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +86 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +169 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +273 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +105 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +243 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +65 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +318 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +49 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +124 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +150 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +267 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +109 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +351 -0
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +60 -0
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +129 -0
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +348 -0
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +102 -0
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +124 -0
- package/es/stat-editor/stat-settings/public-setting/calender.js +124 -0
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +15 -0
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +60 -0
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +57 -0
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +41 -0
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +64 -0
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +118 -0
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +39 -0
- package/es/stat-list/chart-preview.js +139 -0
- package/es/stat-list/index.js +275 -0
- package/es/stat-view/area-chart.js +521 -0
- package/es/stat-view/bar-chart.js +568 -0
- package/es/stat-view/base-chart.js +44 -0
- package/es/stat-view/basic-number-card.js +255 -0
- package/es/stat-view/combination-chart.js +558 -0
- package/es/stat-view/compare-chart.js +485 -0
- package/es/stat-view/completeness-chart.js +389 -0
- package/es/stat-view/custom-bar.js +433 -0
- package/es/stat-view/dashboard-chart.js +317 -0
- package/es/stat-view/heat-map.js +501 -0
- package/es/stat-view/horizontal-bar-chart.js +569 -0
- package/es/stat-view/index.js +183 -0
- package/es/stat-view/line-chart.js +505 -0
- package/es/stat-view/map.js +428 -0
- package/es/stat-view/mirror.js +285 -0
- package/es/stat-view/pie-chart.js +326 -0
- package/es/stat-view/pivot-table/index.js +206 -0
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +133 -0
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +164 -0
- package/es/stat-view/pivot-table/statistic-pivot-table.module.css +132 -0
- package/es/stat-view/pivot-table/two-dimension-table.js +344 -0
- package/es/stat-view/ring-chart.js +416 -0
- package/es/stat-view/scatter-chart.js +367 -0
- package/es/stat-view/treemap-chart.js +318 -0
- package/es/stat-view/trend-chart.js +299 -0
- package/es/stat-view/world-map.js +443 -0
- package/es/tabs/index.js +252 -0
- package/es/tabs/statistic-tabs.module.css +154 -0
- package/es/tabs/tab.js +167 -0
- package/es/utils/basic-chart-utils.js +24 -0
- package/es/utils/cell-format.js +110 -0
- package/es/utils/cell-value.js +27 -0
- package/es/utils/collaborator.js +31 -0
- package/es/utils/color-utils.js +112 -0
- package/es/utils/column-utils.js +18 -0
- package/es/utils/column.js +13 -0
- package/es/utils/common-utils.js +303 -0
- package/es/utils/date-format.js +65 -0
- package/es/utils/export-table-utils.js +632 -0
- package/es/utils/index.js +26 -0
- package/es/utils/object.js +26 -0
- package/es/utils/row-utils.js +115 -0
- package/es/utils/search.js +67 -0
- package/es/utils/sql-utils.js +293 -0
- package/es/utils/stat-utils.js +353 -0
- package/es/utils/trend-utils.js +136 -0
- package/index.js +1 -0
- package/package.json +188 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
var zh_CN = {
|
|
2
|
+
'Statistics': '统计',
|
|
3
|
+
'New_chart': '新建统计图表',
|
|
4
|
+
'Close': '关闭',
|
|
5
|
+
'Dark_mode': '深色模式',
|
|
6
|
+
'Light_mode': '浅色模式',
|
|
7
|
+
'Full_screen': '全屏',
|
|
8
|
+
'Cancel_full_screen': '取消全屏',
|
|
9
|
+
'Default_dashboard': '默认仪表盘',
|
|
10
|
+
'New_dashboard': '新建仪表盘',
|
|
11
|
+
'Name': '名称',
|
|
12
|
+
'Submit': '提交',
|
|
13
|
+
'Cancel': '取消',
|
|
14
|
+
'Name_is_required': '名称为必填项',
|
|
15
|
+
'Rename_dashboard': '重命名仪表盘',
|
|
16
|
+
'Rename': '重命名',
|
|
17
|
+
'Delete': '删除',
|
|
18
|
+
'Edit': '编辑',
|
|
19
|
+
'Copy': '复制',
|
|
20
|
+
'Export_as_picture': '导出为图片',
|
|
21
|
+
'Edit_the_chart': '编辑图表',
|
|
22
|
+
'Choose_a_chart': '选择图表类型',
|
|
23
|
+
'Histogram': '柱状图',
|
|
24
|
+
'Basic_histogram': '基础柱状图',
|
|
25
|
+
'Grouped_histogram': '分组柱状图',
|
|
26
|
+
'Stacked_histogram': '堆叠柱状图',
|
|
27
|
+
'Time_comparison_histogram': '时间对比图',
|
|
28
|
+
'Custom_histogram': '自定义柱状图',
|
|
29
|
+
'Bar_chart': '条形图',
|
|
30
|
+
'Basic_bar_chart': '基础条形图',
|
|
31
|
+
'Grouped_bar_chart': '分组条形图',
|
|
32
|
+
'Stacked_bar_chart': '堆叠条形图',
|
|
33
|
+
'Line_chart': '折线图',
|
|
34
|
+
'Basic_line_chart': '基础折线图',
|
|
35
|
+
'Grouped_line_chart': '分组折线图',
|
|
36
|
+
'Pie_chart': '饼图',
|
|
37
|
+
'Basic_pie_chart': '基础饼图',
|
|
38
|
+
'Ring_chart': '环图',
|
|
39
|
+
'Scatter_chart': '散点图',
|
|
40
|
+
'Combination_chart': '组合图',
|
|
41
|
+
'Map': '地图',
|
|
42
|
+
'World_map': '世界地图',
|
|
43
|
+
'Heat_map': '热力图',
|
|
44
|
+
'Facet_chart': '分面图',
|
|
45
|
+
'Mirror_chart': '镜面图',
|
|
46
|
+
'Card': '卡片',
|
|
47
|
+
'Basic_number_card': '基础数字卡片',
|
|
48
|
+
'Trend_chart': '趋势图',
|
|
49
|
+
'Data_settings': '数据设置',
|
|
50
|
+
'Style_settings': '样式设置',
|
|
51
|
+
'Untitled': '未命名',
|
|
52
|
+
'Settings': '设置',
|
|
53
|
+
'Table': '表格',
|
|
54
|
+
'View': '视图',
|
|
55
|
+
'Display_title': '显示标题',
|
|
56
|
+
'X-axis': 'X 轴',
|
|
57
|
+
'Y-axis': 'Y 轴',
|
|
58
|
+
'Y-axis(left side)': 'Y 轴(左边)',
|
|
59
|
+
'Y-axis(right side)': 'Y 轴(右边)',
|
|
60
|
+
'Including_empty_cell': '包含空单元格',
|
|
61
|
+
'Color': '颜色',
|
|
62
|
+
'Count_the_records': '根据 X 轴给记录分组,然后计算每组中的记录的数量。',
|
|
63
|
+
'Compute_sum_max_min': '根据 X 轴给记录分组,然后按照记录的某个字段计算总和、最大值、最小值或者平均值',
|
|
64
|
+
'Numeric_column': '数值列',
|
|
65
|
+
'Select_a_column': '选择一列',
|
|
66
|
+
'No_options': '无选项',
|
|
67
|
+
'Counting': '计数',
|
|
68
|
+
'Count_by_column': '根据一列给记录分组然后计数',
|
|
69
|
+
'Display_legend': '显示图例',
|
|
70
|
+
'Display_percent': '显示百分数',
|
|
71
|
+
'Group_by': '分组',
|
|
72
|
+
'Summary_method': '归总方法',
|
|
73
|
+
'Summarize_a_field': '归总一个字段',
|
|
74
|
+
'Summarize_multiple_fields': '归总多个字段',
|
|
75
|
+
'Add_new_numeric_column': '添加新的数值列',
|
|
76
|
+
'Horizontal_axis': '横轴',
|
|
77
|
+
'Vertical_axis': '纵轴',
|
|
78
|
+
'Location_field': '位置字段',
|
|
79
|
+
'Time_field': '时间字段',
|
|
80
|
+
'Count_by_var': '根据 {var} 给记录分组,然后计算每组中的记录的数量',
|
|
81
|
+
'Compute_sum_max_min_by_var': '根据 {var} 给记录分组,然后按照记录的某个字段计算总和、最大值、最小值或者平均值',
|
|
82
|
+
'Count_the_number_of_records_in_each_group': '计算每个分组中记录的数量',
|
|
83
|
+
'Compute_the_sum_maximum_or_minimum_value_of_records_in_each_group_by_a_field': '按照一个字段计算每个分组中记录的总和、最大值、最小值或者平均值',
|
|
84
|
+
'Group_the_records_according_to_the_vertical_axis_and_count_the_records_in_each_group': '根据纵轴给记录分组,然后计算每组中的记录的数量',
|
|
85
|
+
'Group_the_records_according_to_the_vertical_axis_and_compute_the_sum_maximum_or_minimum_of_records_in_each_group_by_a_field': '根据纵轴给记录分组,然后按照记录的一个字段计算总和、最大值、最小值或者平均值',
|
|
86
|
+
'Compute_the_sum_maximum_or_minimum_value_of_records_in_each_group_by_multiple_fields': '按照多个字段计算分组中记录的总和、最大值、最小值或者平均值',
|
|
87
|
+
'Statistic_field': '统计字段',
|
|
88
|
+
'Reversing': '反转',
|
|
89
|
+
'Column_grouping_field': '列分组字段',
|
|
90
|
+
'Label': '标签',
|
|
91
|
+
'Row_count': '行数',
|
|
92
|
+
'Sum': '总和',
|
|
93
|
+
'Max': '最大值',
|
|
94
|
+
'Mean': '平均值',
|
|
95
|
+
'Min': '最小值',
|
|
96
|
+
'By_day': '按天',
|
|
97
|
+
'By_week': '按周',
|
|
98
|
+
'By_month': '按月',
|
|
99
|
+
'By_quarter': '按季度',
|
|
100
|
+
'By_year': '按年',
|
|
101
|
+
'By_city': '按市',
|
|
102
|
+
'By_district_county': '按区/县',
|
|
103
|
+
'By_province': '按省',
|
|
104
|
+
'Comparison_mode': '比较方式',
|
|
105
|
+
'Yesterday_vs_the_day_before_yesterday': '昨天对比前天',
|
|
106
|
+
'Last_week_vs_the_week_before_last': '上周对比上上周',
|
|
107
|
+
'Last_month_vs_the_month_before_last': '上个月对比上上个月',
|
|
108
|
+
'Last_quarter_vs_the_quarter_before_last': '上季度对比上上季度',
|
|
109
|
+
'Last_year_vs_the_year_before_last': '去年对比前年',
|
|
110
|
+
'Last_7_days_vs_previous_7_days': '过去 7 天对比之前 7 天',
|
|
111
|
+
'Last_30_days_vs_previous_30_days': '过去 30 天对比之前 30 天',
|
|
112
|
+
'The_year_before_last': '前年',
|
|
113
|
+
'The_quarter_before_last': '上上季度',
|
|
114
|
+
'The_month_before_last': '上上月',
|
|
115
|
+
'The_week_before_last': '上上周',
|
|
116
|
+
'Previous_7_days': '之前 7 天',
|
|
117
|
+
'Previous_30_days': '之前 30 天',
|
|
118
|
+
'The_day_before_yesterday': '前天',
|
|
119
|
+
'Can_not_compare_with_var': '无法和 {var} 比较',
|
|
120
|
+
'Calculate_the_number_of_records_in_two_time_periods': '计算两个时间段中记录的数量',
|
|
121
|
+
'Use_a_field_to_calculate_the_sum_maximum_or_minimum_value_of_records_in_two_time_periods': '使用一个字段计算两个时间段内记录的总和、最大值、最小值或者平均值',
|
|
122
|
+
'Sun': '周日',
|
|
123
|
+
'Mon': '周一',
|
|
124
|
+
'Tue': '周二',
|
|
125
|
+
'Wed': '周三',
|
|
126
|
+
'Thu': '周四',
|
|
127
|
+
'Fri': '周五',
|
|
128
|
+
'Sat': '周六',
|
|
129
|
+
'Jan': '一月',
|
|
130
|
+
'Feb': '二月',
|
|
131
|
+
'Mar': '三月',
|
|
132
|
+
'Apr': '四月',
|
|
133
|
+
'May': '五月',
|
|
134
|
+
'Jun': '六月',
|
|
135
|
+
'Jul': '七月',
|
|
136
|
+
'Aug': '八月',
|
|
137
|
+
'Sep': '九月',
|
|
138
|
+
'Oct': '十月',
|
|
139
|
+
'Nov': '十一月',
|
|
140
|
+
'Dec': '十二月',
|
|
141
|
+
'Total': '总计',
|
|
142
|
+
'Amount': '数量',
|
|
143
|
+
'Empty': '空',
|
|
144
|
+
'Left': '左边',
|
|
145
|
+
'Center': '中间',
|
|
146
|
+
'Right': '右边',
|
|
147
|
+
'Top': '顶部',
|
|
148
|
+
'Bottom': '底部',
|
|
149
|
+
'Display_data': '显示数据点上的值',
|
|
150
|
+
'Auto_range': '自动设置范围',
|
|
151
|
+
'Data_sorting': '数据排序',
|
|
152
|
+
'Not_sorted': '不排序',
|
|
153
|
+
'Ascending': '升序',
|
|
154
|
+
'Descending': '降序',
|
|
155
|
+
'Others': '其他',
|
|
156
|
+
'Minimum_slice_percent': '最小切片百分比',
|
|
157
|
+
'Label_font_size': '标签字体大小',
|
|
158
|
+
'Bubble': '气泡图',
|
|
159
|
+
'Bubble_color': '气泡颜色',
|
|
160
|
+
'Area_chart': '面积图',
|
|
161
|
+
'Grouped_area_chart': '分组面积图',
|
|
162
|
+
'Date_range': '日期范围',
|
|
163
|
+
'Compare_to_date_range': '对比日期范围',
|
|
164
|
+
'Vertical': '垂直',
|
|
165
|
+
'Horizontal': '水平',
|
|
166
|
+
'Legend_direction': '图例方向',
|
|
167
|
+
'Legend_size': '图例大小',
|
|
168
|
+
'Completeness_chart': '完成度图',
|
|
169
|
+
'Grouped_completeness_chart': '分组完成度图',
|
|
170
|
+
'Name_field': '名称字段',
|
|
171
|
+
'Completion_value_field': '完成值字段',
|
|
172
|
+
'Total_value_field': '总值字段',
|
|
173
|
+
'Uncompleted': '未完成',
|
|
174
|
+
'Completed': '已完成',
|
|
175
|
+
'Display_percentage': '显示百分比',
|
|
176
|
+
'Display_increase': '显示增幅',
|
|
177
|
+
'Display_percentage_increase': '显示百分比增幅',
|
|
178
|
+
'Gauge': '仪表盘',
|
|
179
|
+
'Current_value_field': '当前值字段',
|
|
180
|
+
'There_are_no_statistic_results_yet': '目前还没有统计结果',
|
|
181
|
+
'Treemap': '矩形树图',
|
|
182
|
+
'Display_stack_total_value': '显示每个堆叠的总值',
|
|
183
|
+
'Pivot_table': '透视表',
|
|
184
|
+
'Row_grouping_field': '行分组字段',
|
|
185
|
+
'Not_used': '不使用',
|
|
186
|
+
'Summary_column': '归总列',
|
|
187
|
+
'Add_new_summary_column': '添加新的归总列',
|
|
188
|
+
'Summary_type': '归总类型',
|
|
189
|
+
'Less': '少',
|
|
190
|
+
'More': '多',
|
|
191
|
+
'Checked': '勾选的',
|
|
192
|
+
'Unchecked': '未勾选的',
|
|
193
|
+
'Use_the_colors_from_column_{name}': '使用列“{name}”的颜色',
|
|
194
|
+
'Use_default_colors': '使用默认颜色',
|
|
195
|
+
'Use_column_colors': '使用列中的选项颜色',
|
|
196
|
+
'Use_specific_colors': '使用特定颜色',
|
|
197
|
+
'Use_rules': '使用规则',
|
|
198
|
+
'No_rules': '没有规则',
|
|
199
|
+
'Add_rule': '新增规则',
|
|
200
|
+
'Added_1_rule': '已添加 1 个规则',
|
|
201
|
+
'Added_xxx_rules': '已添加 {rules_count} 个规则',
|
|
202
|
+
'Define_rule': '定义规则',
|
|
203
|
+
'Or': '或者',
|
|
204
|
+
'And': '并且',
|
|
205
|
+
'Add_condition': '添加条件',
|
|
206
|
+
'equal': '等于',
|
|
207
|
+
'not_equal': '不等于',
|
|
208
|
+
'less': '小于',
|
|
209
|
+
'greater': '大于',
|
|
210
|
+
'less_or_equal': '小于或等于',
|
|
211
|
+
'greater_or_equal': '大于或等于',
|
|
212
|
+
'Increase': '增幅',
|
|
213
|
+
'Display_label': '显示标签',
|
|
214
|
+
'Label_position': '标签位置',
|
|
215
|
+
'Inside_the_chart': '在图表内',
|
|
216
|
+
'Outside_the_chart': '在图表外',
|
|
217
|
+
'Label_format': '标签格式',
|
|
218
|
+
'Numeric_value': '数值',
|
|
219
|
+
'Percent': '百分比',
|
|
220
|
+
'Numeric_value_and_percent': '数值(百分比)',
|
|
221
|
+
'Display_annotation': '在中间显示总计',
|
|
222
|
+
'Font_size': '字体大小',
|
|
223
|
+
'Grid_size': '网格大小',
|
|
224
|
+
'Grid_distance': '网格间距',
|
|
225
|
+
'Number_of_distinct_values': '不同值的数量',
|
|
226
|
+
'There_are_too_many_statistics_entries_to_display': '统计结果条目太多,无法显示。请设置正确的统计选项',
|
|
227
|
+
'Clear_search_text': '清除搜索文本',
|
|
228
|
+
'Search_records': '搜索记录',
|
|
229
|
+
'Display_value_of_each_block': '显示每个块的值',
|
|
230
|
+
'Chart_color_scheme': '图表配色方案',
|
|
231
|
+
'Custom_title': '自定义标题',
|
|
232
|
+
'Display_total': '显示总计',
|
|
233
|
+
'Line_color': '线条颜色',
|
|
234
|
+
'Stack': '堆叠',
|
|
235
|
+
'Add_new_stack': '添加新的堆叠'
|
|
236
|
+
};
|
|
237
|
+
export default zh_CN;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import React, { Component } from 'react';
|
|
6
|
+
import intl from 'react-intl-universal';
|
|
7
|
+
import Tabs from './tabs';
|
|
8
|
+
import StatView from './stat-view';
|
|
9
|
+
import { STAT_TYPE } from './constants';
|
|
10
|
+
import logo from './assets/images/icon.png';
|
|
11
|
+
import styles from './assets/css/mobile-dashboard.module.css';
|
|
12
|
+
var MobileDashboard = /*#__PURE__*/function (_Component) {
|
|
13
|
+
_inherits(MobileDashboard, _Component);
|
|
14
|
+
var _super = _createSuper(MobileDashboard);
|
|
15
|
+
function MobileDashboard() {
|
|
16
|
+
var _this;
|
|
17
|
+
_classCallCheck(this, MobileDashboard);
|
|
18
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
19
|
+
args[_key] = arguments[_key];
|
|
20
|
+
}
|
|
21
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
22
|
+
_this.onCloseDashboard = function () {
|
|
23
|
+
_this.props.onCloseDashboard({
|
|
24
|
+
isFullScreen: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
_createClass(MobileDashboard, [{
|
|
30
|
+
key: "render",
|
|
31
|
+
value: function render() {
|
|
32
|
+
var _this$props = this.props,
|
|
33
|
+
getTableById = _this$props.getTableById,
|
|
34
|
+
refresh = _this$props.refresh,
|
|
35
|
+
colorThemeName = _this$props.colorThemeName,
|
|
36
|
+
statistics = _this$props.statistics,
|
|
37
|
+
selectedDashboardIdx = _this$props.selectedDashboardIdx,
|
|
38
|
+
chartCalculator = _this$props.chartCalculator,
|
|
39
|
+
labelColorConfigs = _this$props.labelColorConfigs,
|
|
40
|
+
eventBus = _this$props.eventBus;
|
|
41
|
+
var statistic = statistics[selectedDashboardIdx];
|
|
42
|
+
var _ref = statistic || {},
|
|
43
|
+
statItems = _ref.stat_items;
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "".concat(styles['mobile-statistic-container'], " statistic-panel mobile-statistic-panel statistic-light")
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "".concat(styles['mobile-statistic-header'])
|
|
48
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: styles['mobile-statistic-title']
|
|
50
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
51
|
+
className: styles['mobile-statistic-logo'],
|
|
52
|
+
src: logo,
|
|
53
|
+
alt: ""
|
|
54
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
55
|
+
className: styles['mobile-statistic-name']
|
|
56
|
+
}, intl.get('Statistics'))), /*#__PURE__*/React.createElement(Tabs, {
|
|
57
|
+
theme: 'light',
|
|
58
|
+
isMobile: true,
|
|
59
|
+
statistics: statistics,
|
|
60
|
+
selectedDashboardIdx: selectedDashboardIdx,
|
|
61
|
+
selectDashboard: this.props.selectDashboard,
|
|
62
|
+
addDashboard: this.props.addDashboard,
|
|
63
|
+
renameDashboard: this.props.renameDashboard,
|
|
64
|
+
deleteDashboard: this.props.deleteDashboard
|
|
65
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: styles['mobile-statistic-tool-container']
|
|
67
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
68
|
+
className: "close ".concat(styles['mobile-statistic-header-button']),
|
|
69
|
+
onClick: this.onCloseDashboard
|
|
70
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
71
|
+
className: 'dtable-font dtable-icon-x'
|
|
72
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: styles['mobile-statistic-dashboard-wrapper']
|
|
74
|
+
}, statItems.map(function (statItem) {
|
|
75
|
+
var _id = statItem._id,
|
|
76
|
+
type = statItem.type,
|
|
77
|
+
name = statItem.name;
|
|
78
|
+
var showStatName = !(type === STAT_TYPE.BASIC_NUMBER_CARD || type === STAT_TYPE.DASHBOARD);
|
|
79
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
key: "mobile-statistic-chart-".concat(_id),
|
|
81
|
+
className: styles['mobile-statistic-chart-wrapper']
|
|
82
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: "".concat(styles['mobile-statistic-chart-header'], " text-truncate")
|
|
84
|
+
}, showStatName && name), /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
className: styles['mobile-statistic-chart-container']
|
|
86
|
+
}, /*#__PURE__*/React.createElement(StatView, {
|
|
87
|
+
isPreview: true,
|
|
88
|
+
isEnlarge: false,
|
|
89
|
+
refresh: refresh,
|
|
90
|
+
theme: "light",
|
|
91
|
+
colorThemeName: colorThemeName,
|
|
92
|
+
statItem: statItem,
|
|
93
|
+
chartCalculator: chartCalculator,
|
|
94
|
+
labelColorConfigs: labelColorConfigs,
|
|
95
|
+
eventBus: eventBus,
|
|
96
|
+
getTableById: getTableById
|
|
97
|
+
})));
|
|
98
|
+
})));
|
|
99
|
+
}
|
|
100
|
+
}]);
|
|
101
|
+
return MobileDashboard;
|
|
102
|
+
}(Component);
|
|
103
|
+
export default MobileDashboard;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
var Collaborators = function Collaborators(object) {
|
|
3
|
+
_classCallCheck(this, Collaborators);
|
|
4
|
+
this.avatar_url = object.avatar_url || '';
|
|
5
|
+
this.contact_email = object.contact_email || '';
|
|
6
|
+
this.email = object.email || '';
|
|
7
|
+
this.name = object.name || '';
|
|
8
|
+
this.name_pinyin = object.name_pinyin || '';
|
|
9
|
+
this.id = object.id_in_org || '';
|
|
10
|
+
};
|
|
11
|
+
export { Collaborators as default };
|