sea-chart 2.0.37 → 2.0.38
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 +20 -69
- package/dist/assets/css/sea-chart-d3-tooltip.css +0 -1
- package/dist/components/cell-factory/FormatterConfig.js +55 -62
- package/dist/components/cell-factory/SimpleCellFormatter.js +5 -12
- package/dist/components/cell-factory/SingleSelectOption.js +11 -18
- package/dist/components/cell-factory/cell-editor-factory.js +5 -12
- package/dist/components/cell-factory/cell-formatter-factory.js +4 -11
- package/dist/components/cell-factory/link-content.js +30 -38
- package/dist/components/chart-color-selector/color-selector.js +11 -18
- package/dist/components/collaborator/index.js +7 -14
- package/dist/components/color-picker/index.js +12 -19
- package/dist/components/color-popover/color-rules/color-rule.js +26 -34
- package/dist/components/color-popover/color-rules/index.js +7 -15
- package/dist/components/color-popover/color-rules/rule-filters/filter.js +27 -34
- package/dist/components/color-popover/color-rules/rule-filters/index.js +17 -25
- package/dist/components/color-popover/color-rules/rule-filters/number-input.js +9 -17
- package/dist/components/color-popover/color-rules-popover.js +31 -37
- package/dist/components/color-popover/color-selector-popover.js +12 -20
- package/dist/components/color-setting/color-group-selector.js +13 -21
- package/dist/components/common-add-tool/index.js +8 -15
- package/dist/components/data-process-setter/data-setting-header.js +7 -14
- package/dist/components/data-process-setter/hide-column-setter.js +13 -20
- package/dist/components/data-process-setter/index.js +4 -27
- package/dist/components/data-process-setter/sort-setter.js +18 -26
- package/dist/components/draggable/Draggable.js +7 -13
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +41 -48
- package/dist/components/drill-down-settings/drill-down-fields-settings/index.js +10 -18
- package/dist/components/drill-down-settings/index.js +11 -18
- package/dist/components/dtable-popover/index.js +13 -20
- package/dist/components/dtable-search-input/index.js +13 -21
- package/dist/components/font-settings/index.js +14 -22
- package/dist/components/goal-line-setting/goal-setting-item.js +6 -14
- package/dist/components/goal-line-setting/index.js +12 -19
- package/dist/components/highlighter/highlighter.js +7 -14
- package/dist/components/icon/index.js +12 -23
- package/dist/components/index.js +7 -48
- package/dist/components/loading/index.js +6 -13
- package/dist/components/number-input/index.js +11 -24
- package/dist/components/pixel-editor/index.js +15 -23
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +13 -16
- package/dist/components/popover/hide-column-popover/hide-column-popover.css +5 -1
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +28 -38
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +9 -18
- package/dist/components/popover/sort-popover/sort-popover.js +58 -69
- package/dist/components/resize-handle/ResizeHandle.js +6 -13
- package/dist/components/row-card/row-card-header-cell.js +17 -24
- package/dist/components/row-card/row-card-header.js +15 -22
- package/dist/components/row-card/row-card-item.js +35 -43
- package/dist/components/row-card/row-card.js +17 -25
- package/dist/components/statistic-record-dialog/index.js +61 -68
- package/dist/components/tooltip/index.js +39 -28
- package/dist/components/types-dialog/index.js +62 -70
- package/dist/components/types-dialog/use-force-update.js +4 -10
- package/dist/constants/color-rules.js +8 -14
- package/dist/constants/common-constants.js +8 -14
- package/dist/constants/error.js +2 -8
- package/dist/constants/geolocation.js +9 -15
- package/dist/constants/index.js +142 -271
- package/dist/constants/key-codes.js +0 -2
- package/dist/constants/model.js +3 -9
- package/dist/constants/regions.js +3 -8
- package/dist/constants/style.js +6 -12
- package/dist/constants/table.js +1 -7
- package/dist/constants/type-image.js +33 -39
- package/dist/constants/type.js +3 -9
- package/dist/context.js +13 -20
- package/dist/editor/index.js +13 -16
- package/dist/index.js +13 -104
- package/dist/intl.js +10 -17
- package/dist/locale/index.js +16 -23
- package/dist/locale/lang/de.js +2 -7
- package/dist/locale/lang/en.js +2 -7
- package/dist/locale/lang/es.js +2 -7
- package/dist/locale/lang/fr.js +2 -7
- package/dist/locale/lang/pt.js +2 -7
- package/dist/locale/lang/ru.js +2 -7
- package/dist/locale/lang/zh_CN.js +2 -7
- package/dist/model/area-group.js +12 -19
- package/dist/model/area.js +12 -19
- package/dist/model/bar-custom.js +11 -18
- package/dist/model/bar-group.js +12 -19
- package/dist/model/bar-stack.js +10 -17
- package/dist/model/bar.js +11 -18
- package/dist/model/base-model.js +4 -11
- package/dist/model/basic-number-card.js +13 -20
- package/dist/model/chart.js +7 -13
- package/dist/model/combination.js +15 -22
- package/dist/model/compare-bar.js +14 -21
- package/dist/model/completeness-group.js +11 -18
- package/dist/model/completeness.js +10 -17
- package/dist/model/dashboard.js +7 -14
- package/dist/model/funnel.js +14 -21
- package/dist/model/generic-model.js +135 -143
- package/dist/model/heat-map.js +9 -16
- package/dist/model/horizontal-bar.js +11 -18
- package/dist/model/horizontal-group-bar.js +10 -17
- package/dist/model/index.js +69 -93
- package/dist/model/line-group.js +13 -20
- package/dist/model/line.js +12 -19
- package/dist/model/map-bubble.js +14 -17
- package/dist/model/map.js +12 -19
- package/dist/model/mirror.js +13 -20
- package/dist/model/pie.js +12 -19
- package/dist/model/ring.js +12 -19
- package/dist/model/scatter.js +10 -17
- package/dist/model/stacked-horizontal-bar.js +11 -18
- package/dist/model/table-element.js +5 -12
- package/dist/model/table.js +7 -14
- package/dist/model/tree-map.js +7 -14
- package/dist/model/trend.js +11 -18
- package/dist/model/user.js +1 -7
- package/dist/model/world-map-bubble.js +12 -19
- package/dist/model/world-map.js +12 -19
- package/dist/services/map-json.js +14 -17
- package/dist/settings/advance-bar-settings/data-settings.js +36 -44
- package/dist/settings/advance-bar-settings/index.js +3 -20
- package/dist/settings/advance-bar-settings/style-settings.js +66 -73
- package/dist/settings/bar-settings/data-settings.js +39 -47
- package/dist/settings/bar-settings/index.js +3 -20
- package/dist/settings/bar-settings/style-settings.js +51 -59
- package/dist/settings/basic-number-card/data-settings.js +50 -57
- package/dist/settings/basic-number-card/index.js +3 -20
- package/dist/settings/basic-number-card/style-settings.js +19 -27
- package/dist/settings/combination-settings/data-settings.js +55 -64
- package/dist/settings/combination-settings/index.js +3 -20
- package/dist/settings/combination-settings/style-settings.js +67 -75
- package/dist/settings/completeness-settings/callbacks/callbacks.js +16 -27
- package/dist/settings/completeness-settings/data-settings/completion-settings.js +21 -28
- package/dist/settings/completeness-settings/data-settings/data-settings.js +25 -32
- package/dist/settings/completeness-settings/index.js +3 -20
- package/dist/settings/completeness-settings/style-settings.js +19 -26
- package/dist/settings/dashboard-settings/data-settings.js +44 -51
- package/dist/settings/dashboard-settings/index.js +2 -13
- package/dist/settings/data-settings.js +72 -79
- package/dist/settings/funnel-settings/components/dnd-item/dnd-item.js +12 -19
- package/dist/settings/funnel-settings/components/dnd-list.js +15 -23
- package/dist/settings/funnel-settings/components/funnel-label-setting.js +32 -40
- package/dist/settings/funnel-settings/components/funnel-layer-setting.js +22 -30
- package/dist/settings/funnel-settings/data-settings.js +23 -31
- package/dist/settings/funnel-settings/index.js +3 -20
- package/dist/settings/funnel-settings/style-settings.js +11 -19
- package/dist/settings/heat-map-settings/data-settings.js +18 -26
- package/dist/settings/heat-map-settings/index.js +3 -20
- package/dist/settings/heat-map-settings/style-settings.js +18 -26
- package/dist/settings/horizontal-bar-settings/data-settings.js +12 -19
- package/dist/settings/horizontal-bar-settings/index.js +3 -20
- package/dist/settings/horizontal-bar-settings/style-settings.js +12 -19
- package/dist/settings/index.js +57 -70
- package/dist/settings/map-settings/components/location-field-selector.js +10 -17
- package/dist/settings/map-settings/components/map-level-selector.js +11 -18
- package/dist/settings/map-settings/components/map-province-city-selector.js +19 -26
- package/dist/settings/map-settings/index.js +3 -20
- package/dist/settings/map-settings/map-data-settings.js +23 -30
- package/dist/settings/map-settings/map-style-settings.js +27 -35
- package/dist/settings/mirror-settings/data-settings.js +26 -34
- package/dist/settings/mirror-settings/index.js +2 -13
- package/dist/settings/pie-settings/data-settings.js +33 -41
- package/dist/settings/pie-settings/index.js +3 -20
- package/dist/settings/pie-settings/style-settings.js +47 -55
- package/dist/settings/scatter/data-settings.js +27 -34
- package/dist/settings/scatter/index.js +3 -12
- package/dist/settings/stacks-settings/index.js +19 -27
- package/dist/settings/stacks-settings/stack-item-settings.js +19 -27
- package/dist/settings/style-settings.js +65 -73
- package/dist/settings/table-element-settings/components/data-filter.js +49 -58
- package/dist/settings/table-element-settings/data-settings.js +21 -29
- package/dist/settings/table-element-settings/index.css +1 -31
- package/dist/settings/table-element-settings/index.js +2 -13
- package/dist/settings/table-settings/data-settings.js +113 -120
- package/dist/settings/table-settings/index.js +2 -13
- package/dist/settings/time-comparison-settings/data-settings.js +43 -51
- package/dist/settings/time-comparison-settings/index.js +3 -20
- package/dist/settings/time-comparison-settings/style-settings.js +44 -52
- package/dist/settings/trend-settings/data-settings.js +24 -32
- package/dist/settings/trend-settings/index.js +3 -20
- package/dist/settings/trend-settings/style-setting.js +19 -27
- package/dist/settings/widgets/basic-summary/index.js +59 -66
- package/dist/settings/widgets/chart-type/index.js +18 -26
- package/dist/settings/widgets/color-settings/index.js +72 -80
- package/dist/settings/widgets/common-data-settings.js +27 -34
- package/dist/settings/widgets/data-filter/index.js +59 -59
- package/dist/settings/widgets/data-sort.js +16 -24
- package/dist/settings/widgets/date-summary-item.js +26 -34
- package/dist/settings/widgets/display-values-settings/index.js +14 -22
- package/dist/settings/widgets/divider/index.js +8 -16
- package/dist/settings/widgets/font-settings/font-color-settings.js +11 -19
- package/dist/settings/widgets/font-settings/font-size-settings.js +14 -22
- package/dist/settings/widgets/font-settings/font-weight-settings.js +17 -25
- package/dist/settings/widgets/font-settings/index.js +4 -27
- package/dist/settings/widgets/group-by.js +52 -59
- package/dist/settings/widgets/min-max-setting.js +10 -18
- package/dist/settings/widgets/mininum-slice-percent.js +10 -18
- package/dist/settings/widgets/numeric-summary-item.js +25 -33
- package/dist/settings/widgets/select-line-type/index.js +10 -17
- package/dist/settings/widgets/select-table/index.js +9 -16
- package/dist/settings/widgets/select-view/index.js +20 -28
- package/dist/settings/widgets/stack.js +14 -22
- package/dist/settings/widgets/summary-method-setting.js +17 -25
- package/dist/settings/widgets/summary-settings.js +75 -82
- package/dist/settings/widgets/switch/index.js +9 -16
- package/dist/settings/widgets/text-horizontal-settings.js +15 -23
- package/dist/settings/widgets/time-picker.js +29 -37
- package/dist/settings/widgets/title-settings/index.js +29 -37
- package/dist/settings/widgets/title-settings/title-text.js +5 -12
- package/dist/settings/widgets/x-axios.js +0 -1
- package/dist/settings/widgets/y-axis-group-settings.js +65 -72
- package/dist/utils/cell-format-utils.js +25 -33
- package/dist/utils/cell-value-utils.js +4 -11
- package/dist/utils/chart-utils/base-utils.js +467 -367
- package/dist/utils/chart-utils/index.js +29 -40
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +78 -85
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +20 -21
- package/dist/utils/chart-utils/original-data-utils/combination-calculator.js +45 -52
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +21 -28
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +33 -40
- package/dist/utils/chart-utils/original-data-utils/dashboard-calculator.js +28 -26
- package/dist/utils/chart-utils/original-data-utils/index.js +50 -57
- package/dist/utils/chart-utils/original-data-utils/mirror-calculator.js +19 -26
- package/dist/utils/chart-utils/original-data-utils/pivot-table-calculator.js +94 -97
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +19 -25
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +50 -36
- package/dist/utils/chart-utils/sql-statistics-utils.js +385 -388
- package/dist/utils/chart.js +9 -17
- package/dist/utils/collaborator-manager.js +3 -9
- package/dist/utils/collaborator-utils.js +19 -31
- package/dist/utils/collaborator.js +6 -15
- package/dist/utils/color-utils.js +18 -29
- package/dist/utils/column-utils.js +88 -102
- package/dist/utils/common-utils.js +28 -53
- package/dist/utils/concurrency-manager.js +1 -7
- package/dist/utils/contexts.js +7 -11
- package/dist/utils/date-translate.js +12 -20
- package/dist/utils/digital-sign-utils.js +7 -14
- package/dist/utils/event-bus.js +1 -7
- package/dist/utils/hotkey.js +5 -11
- package/dist/utils/index.js +73 -219
- package/dist/utils/key-generator.js +2 -9
- package/dist/utils/map.js +22 -31
- package/dist/utils/object-utils.js +2 -8
- package/dist/utils/options-utils.js +10 -18
- package/dist/utils/row-record-utils.js +251 -183
- package/dist/utils/row-utils.js +27 -38
- package/dist/utils/search.js +24 -32
- package/dist/utils/sql/chart-data-sql.js +106 -112
- package/dist/utils/sql/column-2-sql-column.js +162 -172
- package/dist/utils/sql/index.js +3 -27
- package/dist/utils/trend-utils.js +50 -45
- package/dist/view/index.css +2 -8
- package/dist/view/index.js +102 -103
- package/dist/view/title/index.js +16 -24
- package/dist/view/wrapper/area-group.js +57 -57
- package/dist/view/wrapper/area.js +43 -51
- package/dist/view/wrapper/bar-compare.js +56 -48
- package/dist/view/wrapper/bar-custom-stack.js +73 -55
- package/dist/view/wrapper/bar-group.js +94 -73
- package/dist/view/wrapper/bar-stack.js +49 -57
- package/dist/view/wrapper/bar.js +40 -48
- package/dist/view/wrapper/basic-number-card.js +50 -34
- package/dist/view/wrapper/chart-component.js +164 -569
- package/dist/view/wrapper/combination.js +55 -63
- package/dist/view/wrapper/completeness-group.js +140 -93
- package/dist/view/wrapper/completeness.js +36 -44
- package/dist/view/wrapper/dashboard.js +104 -59
- package/dist/view/wrapper/funnel.js +40 -43
- package/dist/view/wrapper/heat-map.js +62 -70
- package/dist/view/wrapper/horizontal-bar-group.js +70 -58
- package/dist/view/wrapper/horizontal-bar-stack.js +48 -56
- package/dist/view/wrapper/horizontal-bar.js +41 -49
- package/dist/view/wrapper/index.js +107 -115
- package/dist/view/wrapper/line-group.js +49 -52
- package/dist/view/wrapper/line.js +42 -50
- package/dist/view/wrapper/map-bubble.js +40 -48
- package/dist/view/wrapper/map-world-bubble.js +40 -47
- package/dist/view/wrapper/map-world.js +42 -49
- package/dist/view/wrapper/map.js +42 -50
- package/dist/view/wrapper/mirror.js +41 -49
- package/dist/view/wrapper/pie.js +45 -53
- package/dist/view/wrapper/ring.js +50 -58
- package/dist/view/wrapper/scatter.js +50 -56
- package/dist/view/wrapper/table/index.js +14 -22
- package/dist/view/wrapper/table/one-dimension-table-no-numeric-columns.js +49 -57
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +53 -61
- package/dist/view/wrapper/table/pivot-table-display-name.js +82 -90
- package/dist/view/wrapper/table/two-dimension-table.js +85 -92
- package/dist/view/wrapper/table-element/components/dataset-utils.js +23 -36
- package/dist/view/wrapper/table-element/components/formatter.js +90 -99
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +23 -32
- package/dist/view/wrapper/table-element/components/formatters/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +90 -97
- package/dist/view/wrapper/table-element/components/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/link-formatter.js +90 -97
- package/dist/view/wrapper/table-element/components/record.js +13 -20
- package/dist/view/wrapper/table-element/components/records-body.js +9 -17
- package/dist/view/wrapper/table-element/components/records-header/index.js +7 -16
- package/dist/view/wrapper/table-element/components/records-header/records-header-cell.js +8 -16
- package/dist/view/wrapper/table-element/components/records.js +25 -33
- package/dist/view/wrapper/table-element/components/resize-column-handle/resize-column-handle.js +8 -13
- package/dist/view/wrapper/table-element/components/utils.js +6 -16
- package/dist/view/wrapper/table-element/components/value-display-utils.js +4 -11
- package/dist/view/wrapper/table-element/components/vertical-scrollbar/index.js +6 -13
- package/dist/view/wrapper/table-element/index.js +30 -43
- package/dist/view/wrapper/treemap.js +38 -46
- package/dist/view/wrapper/trend.js +80 -65
- package/package.json +15 -12
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _rowCardHeaderCell = _interopRequireDefault(require("./row-card-header-cell"));
|
|
11
|
-
class RowCardHeader extends _react.default.Component {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import RowCardHeaderCell from './row-card-header-cell';
|
|
4
|
+
class RowCardHeader extends React.Component {
|
|
12
5
|
constructor(props) {
|
|
13
6
|
super(props);
|
|
14
7
|
this.onScrollControlClick = type => {
|
|
@@ -76,7 +69,7 @@ class RowCardHeader extends _react.default.Component {
|
|
|
76
69
|
} = this.props;
|
|
77
70
|
for (let i = 0; i < renderedColumns.length; i++) {
|
|
78
71
|
const renderedColumn = renderedColumns[i];
|
|
79
|
-
cardHeaderCells.push(/*#__PURE__*/
|
|
72
|
+
cardHeaderCells.push(/*#__PURE__*/React.createElement(RowCardHeaderCell, {
|
|
80
73
|
key: renderedColumn.key,
|
|
81
74
|
column: renderedColumn,
|
|
82
75
|
rowCardType: rowCardType,
|
|
@@ -115,28 +108,28 @@ class RowCardHeader extends _react.default.Component {
|
|
|
115
108
|
linkRecordsNavScrollWidth
|
|
116
109
|
} = this.state;
|
|
117
110
|
const cardHeaderCells = this.getCardHeaderCells();
|
|
118
|
-
return /*#__PURE__*/
|
|
119
|
-
className:
|
|
120
|
-
}, /*#__PURE__*/
|
|
111
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
112
|
+
className: `row-card-header ${cardHeaderClassName ? cardHeaderClassName : ''}`
|
|
113
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
121
114
|
className: "row-card-column-names records-column-names",
|
|
122
115
|
ref: ref => this.recordItemRef = ref
|
|
123
|
-
}, showScrollBtn && /*#__PURE__*/
|
|
124
|
-
className: (
|
|
116
|
+
}, showScrollBtn && /*#__PURE__*/React.createElement("span", {
|
|
117
|
+
className: classnames('dtable-font', 'dtable-icon-left', 'row-card-scroll', 'link-scroll-prev', {
|
|
125
118
|
'scroll-active': scrollLeft > 0
|
|
126
119
|
}),
|
|
127
120
|
onClick: this.onScrollControlClick.bind(this, 'prev')
|
|
128
|
-
}), /*#__PURE__*/
|
|
121
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
129
122
|
className: "row-card-columns-container",
|
|
130
123
|
onScroll: this.onScrollHeader,
|
|
131
124
|
ref: ref => this.linkRecordsHeader = ref
|
|
132
|
-
}, /*#__PURE__*/
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
133
126
|
className: "d-inline-flex"
|
|
134
|
-
}, cardHeaderCells)), showScrollBtn && /*#__PURE__*/
|
|
135
|
-
className: (
|
|
127
|
+
}, cardHeaderCells)), showScrollBtn && /*#__PURE__*/React.createElement("span", {
|
|
128
|
+
className: classnames('dtable-font', 'dtable-icon-right', 'row-card-scroll', 'link-scroll-next', {
|
|
136
129
|
'scroll-active': scrollLeft + linkRecordsNavWidth < linkRecordsNavScrollWidth
|
|
137
130
|
}),
|
|
138
131
|
onClick: this.onScrollControlClick.bind(this, 'next')
|
|
139
132
|
})));
|
|
140
133
|
}
|
|
141
134
|
}
|
|
142
|
-
|
|
135
|
+
export default RowCardHeader;
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _dtableUtils = require("dtable-utils");
|
|
11
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var _rowRecordUtils = require("../../utils/row-record-utils");
|
|
13
|
-
var _highlighter = _interopRequireDefault(require("../highlighter/highlighter"));
|
|
14
|
-
var _linkContent = _interopRequireDefault(require("../cell-factory/link-content"));
|
|
15
|
-
var _eventBus = _interopRequireDefault(require("../../utils/event-bus"));
|
|
16
|
-
var _commonConstants = require("../../constants/common-constants");
|
|
17
|
-
const EMPTY_LINK = /*#__PURE__*/_react.default.createElement("span", {
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import { CellType } from 'dtable-utils';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { getFormattedCell, getRowRecord } from '../../utils/row-record-utils';
|
|
5
|
+
import Highlighter from '../highlighter/highlighter';
|
|
6
|
+
import LinkContent from '../cell-factory/link-content';
|
|
7
|
+
import EventBus from '../../utils/event-bus';
|
|
8
|
+
import { CommonEventTypes, EXTERNAL_EVENT } from '../../constants/common-constants';
|
|
9
|
+
const EMPTY_LINK = /*#__PURE__*/React.createElement("span", {
|
|
18
10
|
className: "row-cell-value-empty"
|
|
19
11
|
});
|
|
20
|
-
class RowCardItem extends
|
|
12
|
+
class RowCardItem extends PureComponent {
|
|
21
13
|
constructor(props) {
|
|
22
14
|
super(props);
|
|
23
15
|
this.setDraggedCell = draggedCell => {
|
|
@@ -36,11 +28,11 @@ class RowCardItem extends _react.PureComponent {
|
|
|
36
28
|
if (rowCardType !== 'link') {
|
|
37
29
|
var _window, _window$app;
|
|
38
30
|
// row card detail opened by module (statistic, big-screen)
|
|
39
|
-
if (isExpandRowDetail && (_window = window)
|
|
31
|
+
if (isExpandRowDetail && ((_window = window) === null || _window === void 0 ? void 0 : (_window$app = _window.app) === null || _window$app === void 0 ? void 0 : _window$app.expandRow)) {
|
|
40
32
|
window.app.expandRow(row, table);
|
|
41
33
|
} else {
|
|
42
34
|
// row card detail opened by module (universal-app)
|
|
43
|
-
|
|
35
|
+
EventBus.dispatch(EXTERNAL_EVENT.SHOW_ROW_DETAIL_DIALOG, {
|
|
44
36
|
row,
|
|
45
37
|
table,
|
|
46
38
|
formulaRows
|
|
@@ -61,7 +53,7 @@ class RowCardItem extends _react.PureComponent {
|
|
|
61
53
|
_id: tableId
|
|
62
54
|
} = table;
|
|
63
55
|
if (rowCardType === 'search') {
|
|
64
|
-
return
|
|
56
|
+
return getRowRecord(tableId, row, columns, unShowColumnKeyList, matchResult);
|
|
65
57
|
}
|
|
66
58
|
return this.linkRowRecord();
|
|
67
59
|
};
|
|
@@ -86,13 +78,13 @@ class RowCardItem extends _react.PureComponent {
|
|
|
86
78
|
data,
|
|
87
79
|
width
|
|
88
80
|
} = column;
|
|
89
|
-
const draggedCellId =
|
|
81
|
+
const draggedCellId = `${tableId}-${key}`;
|
|
90
82
|
const existedWidth = JSON.parse(localStorage.getItem(draggedCellId));
|
|
91
83
|
let columnWidth = existedWidth && rowCardType === 'link' ? existedWidth : width;
|
|
92
84
|
if (draggedCell.id === draggedCellId) {
|
|
93
85
|
columnWidth = draggedCell.width;
|
|
94
86
|
}
|
|
95
|
-
if (type ===
|
|
87
|
+
if (type === CellType.LINK) {
|
|
96
88
|
const {
|
|
97
89
|
display_column_key,
|
|
98
90
|
array_type,
|
|
@@ -104,24 +96,24 @@ class RowCardItem extends _react.PureComponent {
|
|
|
104
96
|
type: array_type,
|
|
105
97
|
data: array_data
|
|
106
98
|
};
|
|
107
|
-
return /*#__PURE__*/
|
|
99
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
108
100
|
className: "row-cell-value text-truncate",
|
|
109
101
|
key: row._id + '_' + key,
|
|
110
102
|
style: {
|
|
111
103
|
width: columnWidth
|
|
112
104
|
}
|
|
113
|
-
}, /*#__PURE__*/
|
|
105
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
114
106
|
className: "links-formatter"
|
|
115
|
-
}, /*#__PURE__*/
|
|
107
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
116
108
|
className: "formatter-show"
|
|
117
|
-
}, /*#__PURE__*/
|
|
118
|
-
key:
|
|
109
|
+
}, /*#__PURE__*/React.createElement(LinkContent, {
|
|
110
|
+
key: `link-formatter-${row._id}-${key}`,
|
|
119
111
|
linkedColumn: linkedColumn,
|
|
120
112
|
computedValue: formulaRow[key],
|
|
121
113
|
Empty: EMPTY_LINK
|
|
122
114
|
}))));
|
|
123
115
|
}
|
|
124
|
-
return
|
|
116
|
+
return getFormattedCell(column, row, {
|
|
125
117
|
formulaRow,
|
|
126
118
|
tableId
|
|
127
119
|
}, columnWidth);
|
|
@@ -169,7 +161,7 @@ class RowCardItem extends _react.PureComponent {
|
|
|
169
161
|
onRef
|
|
170
162
|
} = this.props;
|
|
171
163
|
onRef && onRef(this, rowIdx);
|
|
172
|
-
this.unsubscribeChangeHeaderWidth =
|
|
164
|
+
this.unsubscribeChangeHeaderWidth = EventBus.subscribe(CommonEventTypes.CHANGE_HEADER_WIDTH, this.setDraggedCell);
|
|
173
165
|
}
|
|
174
166
|
componentWillUnmount() {
|
|
175
167
|
this.unsubscribeChangeHeaderWidth();
|
|
@@ -188,34 +180,34 @@ class RowCardItem extends _react.PureComponent {
|
|
|
188
180
|
isShowRemoveCardItemBtn,
|
|
189
181
|
displayRowName
|
|
190
182
|
} = this.props;
|
|
191
|
-
const cardItemClass = (
|
|
183
|
+
const cardItemClass = classnames('row-card-item', {
|
|
192
184
|
'row-card-item-highlight': this.props.isHighlightRow
|
|
193
185
|
});
|
|
194
|
-
return /*#__PURE__*/
|
|
186
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
195
187
|
className: cardItemClass,
|
|
196
188
|
onClick: this.onSelectRow
|
|
197
|
-
}, /*#__PURE__*/
|
|
189
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
198
190
|
className: "row-card-item-container"
|
|
199
|
-
}, /*#__PURE__*/
|
|
191
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
200
192
|
className: "row-card-item-header"
|
|
201
|
-
}, matchResult ? /*#__PURE__*/
|
|
193
|
+
}, matchResult ? /*#__PURE__*/React.createElement(Highlighter, {
|
|
202
194
|
highlight: this.props.matchResult['0000'] || ''
|
|
203
|
-
}, displayRowName) : /*#__PURE__*/
|
|
195
|
+
}, displayRowName) : /*#__PURE__*/React.createElement("div", {
|
|
204
196
|
className: "row-card-item-name seatable-row-card-name"
|
|
205
|
-
}, displayRowName), row.isShowTick && /*#__PURE__*/
|
|
197
|
+
}, displayRowName), row.isShowTick && /*#__PURE__*/React.createElement("span", {
|
|
206
198
|
className: "row-card-item-check dtable-font dtable-icon-check-circle"
|
|
207
|
-
}), isShowRemoveCardItemBtn && /*#__PURE__*/
|
|
199
|
+
}), isShowRemoveCardItemBtn && /*#__PURE__*/React.createElement("span", {
|
|
208
200
|
className: "row-card-item-remove d-print-none",
|
|
209
201
|
onClick: this.removeCardItem
|
|
210
|
-
}, /*#__PURE__*/
|
|
202
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
211
203
|
className: "row-card-remove-icon dtable-font dtable-icon-x-"
|
|
212
|
-
}))), /*#__PURE__*/
|
|
204
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
213
205
|
className: "row-card-item-content",
|
|
214
206
|
onScroll: this.changeScroll,
|
|
215
207
|
ref: this.setCardRecordsItemRef
|
|
216
|
-
}, row._deleted ? /*#__PURE__*/
|
|
208
|
+
}, row._deleted ? /*#__PURE__*/React.createElement("div", {
|
|
217
209
|
className: "d-flex flex-fill justify-content-center error"
|
|
218
|
-
}, t('The_linked_row_has_been_deleted')) : /*#__PURE__*/
|
|
210
|
+
}, t('The_linked_row_has_been_deleted')) : /*#__PURE__*/React.createElement("div", {
|
|
219
211
|
className: "d-inline-flex"
|
|
220
212
|
}, this.getRowRecord()))));
|
|
221
213
|
}
|
|
@@ -223,4 +215,4 @@ class RowCardItem extends _react.PureComponent {
|
|
|
223
215
|
RowCardItem.defaultProps = {
|
|
224
216
|
unShowColumnKeyList: ['0000']
|
|
225
217
|
};
|
|
226
|
-
|
|
218
|
+
export default RowCardItem;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _commonUtils = require("../../utils/common-utils");
|
|
11
|
-
var _rowCardItem = _interopRequireDefault(require("./row-card-item"));
|
|
12
|
-
var _rowCardHeader = _interopRequireDefault(require("./row-card-header"));
|
|
13
|
-
require("./row-card.css");
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { getRowName } from '../../utils/common-utils';
|
|
3
|
+
import RowCardItem from './row-card-item';
|
|
4
|
+
import RowCardHeader from './row-card-header';
|
|
5
|
+
import './row-card.css';
|
|
14
6
|
// 98: row-card-item height + margin top = 88 + 10 = 98
|
|
15
7
|
const CARD_RECORD_ITEM_HEIGHT = 98;
|
|
16
|
-
class RowCard extends
|
|
8
|
+
class RowCard extends Component {
|
|
17
9
|
constructor(props) {
|
|
18
10
|
super(props);
|
|
19
11
|
this.scrollToMore = e => {
|
|
@@ -194,10 +186,10 @@ class RowCard extends _react.Component {
|
|
|
194
186
|
displayRows,
|
|
195
187
|
scrollLeft
|
|
196
188
|
} = this.state;
|
|
197
|
-
const rowCardListClass =
|
|
198
|
-
return /*#__PURE__*/
|
|
189
|
+
const rowCardListClass = `row-card-list ${cardListClassName ? cardListClassName : ''}`;
|
|
190
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
199
191
|
className: "row-card-container"
|
|
200
|
-
}, isShowRowCardHeader && /*#__PURE__*/
|
|
192
|
+
}, isShowRowCardHeader && /*#__PURE__*/React.createElement(RowCardHeader, {
|
|
201
193
|
cardHeaderClassName: cardHeaderClassName,
|
|
202
194
|
setItemScrollLeft: this.setItemScrollLeft,
|
|
203
195
|
renderedColumns: renderedColumns,
|
|
@@ -208,21 +200,21 @@ class RowCard extends _react.Component {
|
|
|
208
200
|
ref: ref => this.rowCardHeaderRef = ref,
|
|
209
201
|
rowCardType: rowCardType,
|
|
210
202
|
table: table
|
|
211
|
-
}), /*#__PURE__*/
|
|
203
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
212
204
|
className: rowCardListClass,
|
|
213
205
|
ref: this.setRecordsListRef,
|
|
214
206
|
onScroll: this.scrollToMore
|
|
215
|
-
}, displayRows.length === 0 && !viewDeletedTip && /*#__PURE__*/
|
|
207
|
+
}, displayRows.length === 0 && !viewDeletedTip && /*#__PURE__*/React.createElement("div", {
|
|
216
208
|
className: "no-records-tips"
|
|
217
|
-
}, noCardItemTip), viewDeletedTip && /*#__PURE__*/
|
|
209
|
+
}, noCardItemTip), viewDeletedTip && /*#__PURE__*/React.createElement("div", {
|
|
218
210
|
className: "no-views-tips"
|
|
219
|
-
}, viewDeletedTip), displayRows.length > 0 && /*#__PURE__*/
|
|
211
|
+
}, viewDeletedTip), displayRows.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
220
212
|
className: "row-card-content",
|
|
221
213
|
ref: ref => this.recordsContent = ref,
|
|
222
214
|
onScroll: this.mobileScrollToMore
|
|
223
215
|
}, displayRows.map((row, rowIdx) => {
|
|
224
216
|
const formulaRow = formulaRows && formulaRows[row._id] || {};
|
|
225
|
-
const displayRowName =
|
|
217
|
+
const displayRowName = getRowName(table.columns, row, formulaRows);
|
|
226
218
|
let renderedRow = {};
|
|
227
219
|
renderedColumns.forEach(column => {
|
|
228
220
|
renderedRow[column.key] = row[column.key];
|
|
@@ -232,8 +224,8 @@ class RowCard extends _react.Component {
|
|
|
232
224
|
...table,
|
|
233
225
|
columns: renderedColumns
|
|
234
226
|
};
|
|
235
|
-
return /*#__PURE__*/
|
|
236
|
-
key:
|
|
227
|
+
return /*#__PURE__*/React.createElement(RowCardItem, {
|
|
228
|
+
key: `row-card-${rowIdx}`,
|
|
237
229
|
setItemScrollLeft: this.setItemScrollLeft,
|
|
238
230
|
onRef: this.onRef,
|
|
239
231
|
rowCardType: rowCardType,
|
|
@@ -256,4 +248,4 @@ class RowCard extends _react.Component {
|
|
|
256
248
|
})), createBtn));
|
|
257
249
|
}
|
|
258
250
|
}
|
|
259
|
-
|
|
251
|
+
export default RowCard;
|
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var _chartDataSql = _interopRequireDefault(require("../../utils/sql/chart-data-sql"));
|
|
21
|
-
var _rowRecordUtils = require("../../utils/row-record-utils");
|
|
22
|
-
var _rowCard = _interopRequireDefault(require("../row-card/row-card"));
|
|
23
|
-
var _commonConstants = require("../../constants/common-constants");
|
|
24
|
-
var _utils = require("../../utils");
|
|
25
|
-
require("./index.css");
|
|
26
|
-
class StatisticRecordDialog extends _react.default.Component {
|
|
1
|
+
import _DTableEmptyTip from "dtable-ui-component/lib/DTableEmptyTip";
|
|
2
|
+
import _toaster from "dtable-ui-component/lib/toaster";
|
|
3
|
+
import React, { Fragment } from 'react';
|
|
4
|
+
import { Modal, ModalBody } from 'reactstrap';
|
|
5
|
+
import { getTableById, getViewById, isArchiveView, getFormulaColumnsContainLinks, getViewShownColumns } from 'dtable-utils';
|
|
6
|
+
import intl from '../../intl';
|
|
7
|
+
import context from '../../context';
|
|
8
|
+
import eventBus from '../../utils/event-bus';
|
|
9
|
+
import DtableSearchInput from '../dtable-search-input';
|
|
10
|
+
import Loading from '../loading';
|
|
11
|
+
import { searchRows } from '../../utils/search';
|
|
12
|
+
import ChartDataSQL from '../../utils/sql/chart-data-sql';
|
|
13
|
+
import { getFilterConditions } from '../../utils/row-record-utils';
|
|
14
|
+
import RowCard from '../row-card/row-card';
|
|
15
|
+
import { CommonEventTypes } from '../../constants/common-constants';
|
|
16
|
+
import { getErrorMessage } from '../../utils';
|
|
17
|
+
import { CHART_TYPE } from '../../constants';
|
|
18
|
+
import './index.css';
|
|
19
|
+
class StatisticRecordDialog extends React.Component {
|
|
27
20
|
constructor(_props) {
|
|
28
21
|
super(_props);
|
|
29
22
|
this.init = () => {
|
|
@@ -46,39 +39,43 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
46
39
|
view_id,
|
|
47
40
|
drill_down_fields
|
|
48
41
|
} = chart.config;
|
|
49
|
-
this.table =
|
|
42
|
+
this.table = getTableById(tables, table_id);
|
|
50
43
|
const currentElementId = chart.id;
|
|
51
44
|
if (view_id) {
|
|
52
|
-
this.view =
|
|
53
|
-
this.isArchiveView =
|
|
45
|
+
this.view = getViewById(this.table.views, view_id);
|
|
46
|
+
this.isArchiveView = isArchiveView(this.view);
|
|
54
47
|
}
|
|
55
48
|
this.unShowColumnKeyList = this.getUnShowColumnKeyList(this.view);
|
|
56
49
|
this.renderedColumns = this.getRenderedColumns(this.table, drill_down_fields, isCalculateByView);
|
|
57
50
|
if (this.isArchiveView || !isCalculateByView || statisticRecord.isQueryBySql) {
|
|
58
51
|
var _context$api, _context$api2;
|
|
59
|
-
if ((_context$api =
|
|
52
|
+
if ((_context$api = context.api) === null || _context$api === void 0 ? void 0 : _context$api.customQueryRows) {
|
|
60
53
|
const detailFilterConditions = {
|
|
61
|
-
filters:
|
|
54
|
+
filters: getFilterConditions(statisticRecord, chart, this.table)
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
// if more then 2 filters, use 'Or' conjunction to get them all
|
|
65
58
|
// if the statistic record is '_Others', use 'Or' conjunction to get them all
|
|
66
59
|
if ((detailFilterConditions === null || detailFilterConditions === void 0 ? void 0 : detailFilterConditions.filters.length) > 2 || statisticRecord.name === '_Others') {
|
|
67
|
-
|
|
60
|
+
if (chart.config.type === CHART_TYPE.SCATTER) {
|
|
61
|
+
detailFilterConditions.filter_conjunction = 'And';
|
|
62
|
+
} else {
|
|
63
|
+
detailFilterConditions.filter_conjunction = 'Or';
|
|
64
|
+
}
|
|
68
65
|
}
|
|
69
|
-
|
|
66
|
+
context.api.customQueryRows(currentElementId, detailFilterConditions).then(res => {
|
|
70
67
|
const {
|
|
71
68
|
results: rows
|
|
72
69
|
} = res.data;
|
|
73
70
|
this.processDrilledRows(rows);
|
|
74
71
|
}).catch(error => {
|
|
75
|
-
const errMsg =
|
|
76
|
-
|
|
72
|
+
const errMsg = getErrorMessage(error);
|
|
73
|
+
_toaster.danger(errMsg);
|
|
77
74
|
console.error(error);
|
|
78
75
|
});
|
|
79
76
|
return;
|
|
80
77
|
}
|
|
81
|
-
const chartDataSQL = new
|
|
78
|
+
const chartDataSQL = new ChartDataSQL({
|
|
82
79
|
table: this.table,
|
|
83
80
|
chart,
|
|
84
81
|
view: this.view
|
|
@@ -87,14 +84,14 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
87
84
|
isColumn,
|
|
88
85
|
isRow
|
|
89
86
|
});
|
|
90
|
-
((_context$api2 =
|
|
87
|
+
((_context$api2 = context.api) === null || _context$api2 === void 0 ? void 0 : _context$api2.sqlQuery) && context.api.sqlQuery(sqlString).then(res => {
|
|
91
88
|
const {
|
|
92
89
|
results: rows
|
|
93
90
|
} = res.data;
|
|
94
91
|
this.processDrilledRows(rows);
|
|
95
92
|
}).catch(error => {
|
|
96
|
-
const errMsg =
|
|
97
|
-
|
|
93
|
+
const errMsg = getErrorMessage(error);
|
|
94
|
+
_toaster.danger(errMsg);
|
|
98
95
|
console.error(error);
|
|
99
96
|
});
|
|
100
97
|
return;
|
|
@@ -151,7 +148,7 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
151
148
|
this.formulaRows = formulaRows;
|
|
152
149
|
return;
|
|
153
150
|
}
|
|
154
|
-
const formulaColumns =
|
|
151
|
+
const formulaColumns = getFormulaColumnsContainLinks(this.table);
|
|
155
152
|
if (formulaColumns.length === 0) return {};
|
|
156
153
|
let formulaRows = {};
|
|
157
154
|
drilledRows.forEach(row => {
|
|
@@ -184,7 +181,7 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
184
181
|
this.getSearchedRows = (rows, searchVal) => {
|
|
185
182
|
if (!Array.isArray(rows) || rows.length === 0) return [];
|
|
186
183
|
if (searchVal) {
|
|
187
|
-
return
|
|
184
|
+
return searchRows(rows, getViewShownColumns(this.view, this.table.columns), searchVal, row => {
|
|
188
185
|
return row;
|
|
189
186
|
}).map(row => row._id);
|
|
190
187
|
}
|
|
@@ -201,7 +198,7 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
201
198
|
};
|
|
202
199
|
this.toggle = () => {
|
|
203
200
|
if (this.valueChanged) {
|
|
204
|
-
|
|
201
|
+
eventBus.dispatch(CommonEventTypes.REFRESH_CHARTS);
|
|
205
202
|
}
|
|
206
203
|
this.props.toggleStatisticRecordsDialog();
|
|
207
204
|
};
|
|
@@ -270,7 +267,7 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
270
267
|
table,
|
|
271
268
|
view
|
|
272
269
|
} = this;
|
|
273
|
-
if (view
|
|
270
|
+
if ((view === null || view === void 0 ? void 0 : view.formula_rows) && Object.keys(view.formula_rows).length > 0) {
|
|
274
271
|
return {
|
|
275
272
|
formulaRows: view.formula_rows
|
|
276
273
|
};
|
|
@@ -297,11 +294,11 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
297
294
|
searchedRowsIds
|
|
298
295
|
} = this.state;
|
|
299
296
|
const searchedRows = this.getRowsByIds(searchedRowsIds);
|
|
300
|
-
if (searchedRows.length === 0) return /*#__PURE__*/
|
|
297
|
+
if (searchedRows.length === 0) return /*#__PURE__*/React.createElement("div", {
|
|
301
298
|
className: "w-100 h-100"
|
|
302
|
-
}, /*#__PURE__*/
|
|
303
|
-
src:
|
|
304
|
-
text:
|
|
299
|
+
}, /*#__PURE__*/React.createElement(_DTableEmptyTip, {
|
|
300
|
+
src: `${context.getSetting('mediaUrl')}img/no-items-tip.png`,
|
|
301
|
+
text: intl.get('No_record')
|
|
305
302
|
}));
|
|
306
303
|
const props = {
|
|
307
304
|
table: this.table,
|
|
@@ -314,7 +311,7 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
314
311
|
isExpandRowDetail: isCalculateByView,
|
|
315
312
|
rowCardType: 'statistic'
|
|
316
313
|
};
|
|
317
|
-
return /*#__PURE__*/
|
|
314
|
+
return /*#__PURE__*/React.createElement(RowCard, props);
|
|
318
315
|
};
|
|
319
316
|
this.state = {
|
|
320
317
|
loading: true,
|
|
@@ -347,49 +344,45 @@ class StatisticRecordDialog extends _react.default.Component {
|
|
|
347
344
|
loading,
|
|
348
345
|
title
|
|
349
346
|
} = this.state;
|
|
350
|
-
return /*#__PURE__*/
|
|
347
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
351
348
|
isOpen: true,
|
|
352
349
|
autoFocus: false,
|
|
353
350
|
toggle: this.toggle,
|
|
354
351
|
className: "sea-chart-statistic-records-dialog",
|
|
355
352
|
zIndex: 1048
|
|
356
|
-
}, /*#__PURE__*/
|
|
353
|
+
}, /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
357
354
|
className: "search-header"
|
|
358
|
-
}, /*#__PURE__*/
|
|
359
|
-
|
|
360
|
-
className: "close",
|
|
361
|
-
"aria-label": "Close",
|
|
355
|
+
}, /*#__PURE__*/React.createElement("span", null, title), /*#__PURE__*/React.createElement("span", {
|
|
356
|
+
className: "dtable-font dtable-icon-x btn-close-row-detail",
|
|
362
357
|
onClick: this.toggle
|
|
363
|
-
}, /*#__PURE__*/
|
|
364
|
-
"aria-hidden": "true"
|
|
365
|
-
}, "\xD7"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
358
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
366
359
|
className: "search-input-container"
|
|
367
|
-
}, /*#__PURE__*/
|
|
360
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
368
361
|
className: "header-search-icon dtable-font dtable-icon-search"
|
|
369
|
-
}), /*#__PURE__*/
|
|
362
|
+
}), /*#__PURE__*/React.createElement(DtableSearchInput, {
|
|
370
363
|
autoFocus: true,
|
|
371
364
|
isClearable: true,
|
|
372
365
|
className: "search-tables-input",
|
|
373
|
-
placeholder:
|
|
366
|
+
placeholder: intl.get('Search_records'),
|
|
374
367
|
onChange: this.onSearch,
|
|
375
368
|
clearValue: this.clearSearch,
|
|
376
369
|
components: {
|
|
377
370
|
ClearIndicator: props => {
|
|
378
|
-
return /*#__PURE__*/
|
|
371
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
379
372
|
className: "clear-search-text",
|
|
380
373
|
onClick: props.clearValue,
|
|
381
|
-
title:
|
|
382
|
-
"aria-label":
|
|
383
|
-
}, /*#__PURE__*/
|
|
374
|
+
title: intl.get('Clear_search_text'),
|
|
375
|
+
"aria-label": intl.get('Clear_search_text')
|
|
376
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
384
377
|
className: "dtable-font dtable-icon-x-"
|
|
385
378
|
}));
|
|
386
379
|
}
|
|
387
380
|
}
|
|
388
|
-
})), /*#__PURE__*/
|
|
381
|
+
})), /*#__PURE__*/React.createElement(ModalBody, {
|
|
389
382
|
className: "sea-chart-statistic-records-container"
|
|
390
|
-
}, loading ? /*#__PURE__*/
|
|
383
|
+
}, loading ? /*#__PURE__*/React.createElement("div", {
|
|
391
384
|
className: "d-flex py-8"
|
|
392
|
-
}, /*#__PURE__*/
|
|
385
|
+
}, /*#__PURE__*/React.createElement(Loading, null)) : this.renderRowsCards())));
|
|
393
386
|
}
|
|
394
387
|
}
|
|
395
|
-
|
|
388
|
+
export default StatisticRecordDialog;
|