sea-chart 2.0.40 → 2.0.42
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 +8 -15
- 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 +30 -38
- 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 +40 -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 +5 -12
- package/dist/components/index.js +7 -48
- package/dist/components/loading/index.js +6 -13
- package/dist/components/number-input/index.js +4 -11
- package/dist/components/pixel-editor/index.js +15 -23
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +8 -15
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +26 -34
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +9 -18
- package/dist/components/popover/sort-popover/sort-popover.js +55 -65
- 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 +56 -64
- package/dist/components/tooltip/index.js +14 -21
- package/dist/components/types-dialog/index.js +63 -72
- 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 +8 -15
- 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 +1 -7
- package/dist/locale/lang/en.js +1 -7
- package/dist/locale/lang/es.js +1 -7
- package/dist/locale/lang/fr.js +1 -7
- package/dist/locale/lang/pt.js +1 -7
- package/dist/locale/lang/ru.js +1 -7
- package/dist/locale/lang/zh_CN.js +1 -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 +12 -19
- 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 +11 -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 +63 -71
- 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 +49 -57
- package/dist/settings/basic-number-card/data-settings.js +49 -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 -63
- package/dist/settings/combination-settings/index.js +3 -20
- package/dist/settings/combination-settings/style-settings.js +65 -73
- 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 +43 -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 +20 -28
- 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 +52 -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 +30 -38
- package/dist/settings/table-element-settings/data-settings.js +21 -29
- package/dist/settings/table-element-settings/index.js +2 -13
- package/dist/settings/table-settings/data-settings.js +112 -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 +42 -50
- 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 +55 -63
- 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 +21 -29
- package/dist/settings/widgets/data-filter/index.js +35 -43
- 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 +51 -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 +74 -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 +64 -72
- package/dist/utils/cell-format-utils.js +17 -27
- package/dist/utils/cell-value-utils.js +4 -11
- package/dist/utils/chart-utils/base-utils.js +325 -333
- package/dist/utils/chart-utils/index.js +28 -41
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +77 -84
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +13 -20
- 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 +16 -23
- 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 +90 -96
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +19 -26
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +31 -38
- package/dist/utils/chart-utils/sql-statistics-utils.js +229 -237
- 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 +77 -104
- package/dist/utils/common-utils.js +28 -53
- package/dist/utils/concurrency-manager.js +1 -7
- package/dist/utils/contexts.js +5 -12
- 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 +54 -221
- 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 +166 -178
- 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 +158 -168
- package/dist/utils/sql/index.js +3 -27
- package/dist/utils/trend-utils.js +39 -47
- package/dist/view/index.js +90 -96
- package/dist/view/title/index.js +16 -24
- package/dist/view/wrapper/area-group.js +45 -53
- package/dist/view/wrapper/area.js +45 -52
- package/dist/view/wrapper/bar-compare.js +38 -46
- package/dist/view/wrapper/bar-custom-stack.js +39 -47
- package/dist/view/wrapper/bar-group.js +49 -53
- package/dist/view/wrapper/bar-stack.js +48 -56
- package/dist/view/wrapper/bar.js +40 -48
- package/dist/view/wrapper/basic-number-card.js +26 -34
- package/dist/view/wrapper/chart-component.js +126 -133
- package/dist/view/wrapper/combination.js +55 -63
- package/dist/view/wrapper/completeness-group.js +40 -48
- package/dist/view/wrapper/completeness.js +36 -44
- package/dist/view/wrapper/dashboard.js +39 -44
- 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 +54 -60
- package/dist/view/wrapper/horizontal-bar-stack.js +47 -55
- package/dist/view/wrapper/horizontal-bar.js +41 -49
- package/dist/view/wrapper/index.js +107 -115
- package/dist/view/wrapper/line-group.js +51 -53
- 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 +39 -47
- package/dist/view/wrapper/map-world.js +41 -49
- package/dist/view/wrapper/map.js +42 -50
- package/dist/view/wrapper/mirror.js +41 -49
- package/dist/view/wrapper/pie.js +44 -52
- package/dist/view/wrapper/ring.js +49 -57
- package/dist/view/wrapper/scatter.js +42 -50
- 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 -93
- package/dist/view/wrapper/table-element/components/dataset-utils.js +23 -36
- package/dist/view/wrapper/table-element/components/formatter.js +102 -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 -15
- 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 +5 -12
- 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/css/index.css +79 -0
- package/dist/view/wrapper/table-element/index.js +18 -26
- package/dist/view/wrapper/treemap.js +38 -46
- package/dist/view/wrapper/trend.js +58 -66
- package/package.json +1 -1
|
@@ -1,44 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var _toaster2 = _interopRequireDefault(require("dtable-ui-component/lib/toaster"));
|
|
31
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
32
|
-
var _dtableUtils = require("dtable-utils");
|
|
33
|
-
var _intl = _interopRequireDefault(require("../../../../intl"));
|
|
34
|
-
var _formulaFormatter = _interopRequireDefault(require("./formatters/formula-formatter"));
|
|
35
|
-
var _linkFormatter = _interopRequireDefault(require("./formatters/link-formatter"));
|
|
36
|
-
var _index = _interopRequireDefault(require("./formatters/FileFormatter/index"));
|
|
37
|
-
var _utils = require("./utils");
|
|
1
|
+
import _ButtonFormatter from "dtable-ui-component/lib/ButtonFormatter";
|
|
2
|
+
import _RateFormatter from "dtable-ui-component/lib/RateFormatter";
|
|
3
|
+
import _DurationFormatter from "dtable-ui-component/lib/DurationFormatter";
|
|
4
|
+
import _EmailFormatter from "dtable-ui-component/lib/EmailFormatter";
|
|
5
|
+
import _UrlFormatter from "dtable-ui-component/lib/UrlFormatter";
|
|
6
|
+
import _AutoNumberFormatter from "dtable-ui-component/lib/AutoNumberFormatter";
|
|
7
|
+
import _LastModifierFormatter from "dtable-ui-component/lib/LastModifierFormatter";
|
|
8
|
+
import _CreatorFormatter from "dtable-ui-component/lib/CreatorFormatter";
|
|
9
|
+
import _MTimeFormatter from "dtable-ui-component/lib/MTimeFormatter";
|
|
10
|
+
import _CTimeFormatter from "dtable-ui-component/lib/CTimeFormatter";
|
|
11
|
+
import _CheckboxFormatter from "dtable-ui-component/lib/CheckboxFormatter";
|
|
12
|
+
import _DepartmentSingleSelectFormatter from "dtable-ui-component/lib/DepartmentSingleSelectFormatter";
|
|
13
|
+
import _SingleSelectFormatter from "dtable-ui-component/lib/SingleSelectFormatter";
|
|
14
|
+
import _MultipleSelectFormatter from "dtable-ui-component/lib/MultipleSelectFormatter";
|
|
15
|
+
import _DateFormatter from "dtable-ui-component/lib/DateFormatter";
|
|
16
|
+
import _NumberFormatter from "dtable-ui-component/lib/NumberFormatter";
|
|
17
|
+
import _GeolocationFormatter from "dtable-ui-component/lib/GeolocationFormatter";
|
|
18
|
+
import _ImageFormatter from "dtable-ui-component/lib/ImageFormatter";
|
|
19
|
+
import _LongTextFormatter from "dtable-ui-component/lib/LongTextFormatter";
|
|
20
|
+
import _CollaboratorFormatter from "dtable-ui-component/lib/CollaboratorFormatter";
|
|
21
|
+
import _PhoneNumberLink from "dtable-ui-component/lib/PhoneNumberLink";
|
|
22
|
+
import _TextFormatter from "dtable-ui-component/lib/TextFormatter";
|
|
23
|
+
import _toaster from "dtable-ui-component/lib/toaster";
|
|
24
|
+
import React, { Fragment } from 'react';
|
|
25
|
+
import { CellType, checkIsDisplayAsPhoneNumberColumn } from 'dtable-utils';
|
|
26
|
+
import intl from '../../../../intl';
|
|
27
|
+
import DtableFormulaFormatter from './formatters/formula-formatter';
|
|
28
|
+
import LinkFormatter from './formatters/link-formatter';
|
|
29
|
+
import FileFormatter from './formatters/FileFormatter/index';
|
|
38
30
|
// import UrlFormatter from './formatters/UrlFormatter/index';
|
|
39
31
|
// import EmailFormatter from './formatters/EmailFormatter/index';
|
|
40
|
-
|
|
41
|
-
class Formatter extends
|
|
32
|
+
import { getTrimmedString, getValidUrl, openUrlLink } from './utils';
|
|
33
|
+
class Formatter extends React.Component {
|
|
42
34
|
constructor() {
|
|
43
35
|
super(...arguments);
|
|
44
36
|
this.renderEmptyFormatter = () => {
|
|
@@ -49,7 +41,7 @@ class Formatter extends _react.default.Component {
|
|
|
49
41
|
component
|
|
50
42
|
} = empty || {};
|
|
51
43
|
if (component) return component;
|
|
52
|
-
return /*#__PURE__*/
|
|
44
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
53
45
|
className: "row-cell-value-empty"
|
|
54
46
|
});
|
|
55
47
|
};
|
|
@@ -59,19 +51,19 @@ class Formatter extends _react.default.Component {
|
|
|
59
51
|
window.location.href = url + '?dl=1';
|
|
60
52
|
};
|
|
61
53
|
this.onUrlClick = url => {
|
|
62
|
-
const vaildUrl =
|
|
54
|
+
const vaildUrl = getValidUrl(url);
|
|
63
55
|
if (url.startsWith('file:///')) {
|
|
64
|
-
|
|
56
|
+
_toaster.danger(intl.get('Open_local_file_is_not_supported'));
|
|
65
57
|
return;
|
|
66
58
|
}
|
|
67
59
|
try {
|
|
68
|
-
|
|
60
|
+
openUrlLink(vaildUrl);
|
|
69
61
|
} catch {
|
|
70
|
-
|
|
62
|
+
_toaster.danger(intl.get('URL_is_invalid'));
|
|
71
63
|
}
|
|
72
64
|
};
|
|
73
65
|
this.onEmailClick = email => {
|
|
74
|
-
window.location.href =
|
|
66
|
+
window.location.href = `mailto:${getTrimmedString(email)}`;
|
|
75
67
|
};
|
|
76
68
|
this.renderFormatter = () => {
|
|
77
69
|
let {
|
|
@@ -85,41 +77,52 @@ class Formatter extends _react.default.Component {
|
|
|
85
77
|
const {
|
|
86
78
|
type: columnType
|
|
87
79
|
} = column || {};
|
|
88
|
-
const containerClassName =
|
|
80
|
+
const containerClassName = `table-element-${columnType}-formatter`;
|
|
89
81
|
switch (columnType) {
|
|
90
|
-
case
|
|
82
|
+
case CellType.TEXT:
|
|
91
83
|
{
|
|
92
84
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
93
|
-
|
|
85
|
+
if (checkIsDisplayAsPhoneNumberColumn(column) && !!getTrimmedString(cellValue)) {
|
|
86
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "table-element-link-value-wrapper"
|
|
88
|
+
}, /*#__PURE__*/React.createElement(_TextFormatter, {
|
|
89
|
+
value: cellValue,
|
|
90
|
+
containerClassName: "table-element-phone-number-formatter"
|
|
91
|
+
}), /*#__PURE__*/React.createElement(_PhoneNumberLink, {
|
|
92
|
+
phoneNumber: getTrimmedString(cellValue),
|
|
93
|
+
className: "table-element-cell-jump-link"
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
return /*#__PURE__*/React.createElement(_TextFormatter, {
|
|
94
97
|
value: cellValue,
|
|
95
98
|
containerClassName: containerClassName
|
|
96
99
|
});
|
|
97
100
|
}
|
|
98
|
-
case
|
|
101
|
+
case CellType.COLLABORATOR:
|
|
99
102
|
{
|
|
100
103
|
if (!Array.isArray(cellValue) || cellValue.length === 0) return this.renderEmptyFormatter();
|
|
101
104
|
cellValue = cellValue.filter(item => item);
|
|
102
105
|
if (cellValue.length === 0) return this.renderEmptyFormatter();
|
|
103
106
|
this.props.queryUsers(cellValue);
|
|
104
|
-
return /*#__PURE__*/
|
|
107
|
+
return /*#__PURE__*/React.createElement(_CollaboratorFormatter, {
|
|
105
108
|
value: cellValue,
|
|
106
109
|
collaborators: collaborators,
|
|
107
110
|
containerClassName: containerClassName
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
|
-
case
|
|
113
|
+
case CellType.LONG_TEXT:
|
|
111
114
|
{
|
|
112
115
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
113
|
-
return /*#__PURE__*/
|
|
116
|
+
return /*#__PURE__*/React.createElement(_LongTextFormatter, {
|
|
114
117
|
isSample: !isRowExpand,
|
|
115
118
|
value: cellValue,
|
|
116
119
|
containerClassName: containerClassName
|
|
117
120
|
});
|
|
118
121
|
}
|
|
119
|
-
case
|
|
122
|
+
case CellType.IMAGE:
|
|
120
123
|
{
|
|
121
124
|
if (!cellValue || Array.isArray(cellValue) && cellValue.length === 0) return this.renderEmptyFormatter();
|
|
122
|
-
return /*#__PURE__*/
|
|
125
|
+
return /*#__PURE__*/React.createElement(_ImageFormatter, {
|
|
123
126
|
value: cellValue,
|
|
124
127
|
containerClassName: containerClassName,
|
|
125
128
|
isSample: isSample,
|
|
@@ -128,34 +131,34 @@ class Formatter extends _react.default.Component {
|
|
|
128
131
|
downloadImage: this.downloadImage
|
|
129
132
|
});
|
|
130
133
|
}
|
|
131
|
-
case
|
|
134
|
+
case CellType.FILE:
|
|
132
135
|
{
|
|
133
136
|
if (!cellValue || Array.isArray(cellValue) && cellValue.length === 0) return this.renderEmptyFormatter();
|
|
134
|
-
return /*#__PURE__*/
|
|
137
|
+
return /*#__PURE__*/React.createElement(FileFormatter, {
|
|
135
138
|
value: cellValue,
|
|
136
139
|
containerClassName: containerClassName,
|
|
137
140
|
isSample: isSample
|
|
138
141
|
});
|
|
139
142
|
}
|
|
140
|
-
case
|
|
143
|
+
case CellType.GEOLOCATION:
|
|
141
144
|
{
|
|
142
145
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
143
|
-
return /*#__PURE__*/
|
|
146
|
+
return /*#__PURE__*/React.createElement(_GeolocationFormatter, {
|
|
144
147
|
value: cellValue,
|
|
145
148
|
data: column.data || {},
|
|
146
149
|
containerClassName: containerClassName
|
|
147
150
|
});
|
|
148
151
|
}
|
|
149
|
-
case
|
|
152
|
+
case CellType.NUMBER:
|
|
150
153
|
{
|
|
151
154
|
if (!cellValue && cellValue !== 0) return this.renderEmptyFormatter();
|
|
152
|
-
return /*#__PURE__*/
|
|
155
|
+
return /*#__PURE__*/React.createElement(_NumberFormatter, {
|
|
153
156
|
value: cellValue,
|
|
154
157
|
data: column.data || {},
|
|
155
158
|
containerClassName: containerClassName
|
|
156
159
|
});
|
|
157
160
|
}
|
|
158
|
-
case
|
|
161
|
+
case CellType.DATE:
|
|
159
162
|
{
|
|
160
163
|
if (!cellValue || typeof cellValue !== 'string') return this.renderEmptyFormatter();
|
|
161
164
|
const {
|
|
@@ -164,13 +167,13 @@ class Formatter extends _react.default.Component {
|
|
|
164
167
|
const {
|
|
165
168
|
format
|
|
166
169
|
} = data || {};
|
|
167
|
-
return /*#__PURE__*/
|
|
170
|
+
return /*#__PURE__*/React.createElement(_DateFormatter, {
|
|
168
171
|
value: cellValue,
|
|
169
172
|
format: format,
|
|
170
173
|
containerClassName: containerClassName
|
|
171
174
|
});
|
|
172
175
|
}
|
|
173
|
-
case
|
|
176
|
+
case CellType.MULTIPLE_SELECT:
|
|
174
177
|
{
|
|
175
178
|
if (!cellValue || cellValue.length === 0) return this.renderEmptyFormatter();
|
|
176
179
|
const {
|
|
@@ -179,13 +182,13 @@ class Formatter extends _react.default.Component {
|
|
|
179
182
|
const {
|
|
180
183
|
options
|
|
181
184
|
} = data || {};
|
|
182
|
-
return /*#__PURE__*/
|
|
185
|
+
return /*#__PURE__*/React.createElement(_MultipleSelectFormatter, {
|
|
183
186
|
value: cellValue,
|
|
184
187
|
options: options || [],
|
|
185
188
|
containerClassName: containerClassName
|
|
186
189
|
});
|
|
187
190
|
}
|
|
188
|
-
case
|
|
191
|
+
case CellType.SINGLE_SELECT:
|
|
189
192
|
{
|
|
190
193
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
191
194
|
const {
|
|
@@ -194,115 +197,115 @@ class Formatter extends _react.default.Component {
|
|
|
194
197
|
const {
|
|
195
198
|
options
|
|
196
199
|
} = data || {};
|
|
197
|
-
return /*#__PURE__*/
|
|
200
|
+
return /*#__PURE__*/React.createElement(_SingleSelectFormatter, {
|
|
198
201
|
value: cellValue,
|
|
199
202
|
options: options || [],
|
|
200
203
|
containerClassName: containerClassName
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
|
-
case
|
|
206
|
+
case CellType.DEPARTMENT_SINGLE_SELECT:
|
|
204
207
|
{
|
|
205
208
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
206
|
-
return /*#__PURE__*/
|
|
209
|
+
return /*#__PURE__*/React.createElement(_DepartmentSingleSelectFormatter, {
|
|
207
210
|
value: cellValue,
|
|
208
211
|
departments: departments || []
|
|
209
212
|
});
|
|
210
213
|
}
|
|
211
|
-
case
|
|
214
|
+
case CellType.CHECKBOX:
|
|
212
215
|
{
|
|
213
|
-
return /*#__PURE__*/
|
|
216
|
+
return /*#__PURE__*/React.createElement(_CheckboxFormatter, {
|
|
214
217
|
value: cellValue,
|
|
215
218
|
containerClassName: containerClassName
|
|
216
219
|
});
|
|
217
220
|
}
|
|
218
|
-
case
|
|
221
|
+
case CellType.CTIME:
|
|
219
222
|
{
|
|
220
223
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
221
|
-
return /*#__PURE__*/
|
|
224
|
+
return /*#__PURE__*/React.createElement(_CTimeFormatter, {
|
|
222
225
|
value: cellValue,
|
|
223
226
|
containerClassName: containerClassName
|
|
224
227
|
});
|
|
225
228
|
}
|
|
226
|
-
case
|
|
229
|
+
case CellType.MTIME:
|
|
227
230
|
{
|
|
228
231
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
229
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React.createElement(_MTimeFormatter, {
|
|
230
233
|
value: cellValue,
|
|
231
234
|
containerClassName: containerClassName
|
|
232
235
|
});
|
|
233
236
|
}
|
|
234
|
-
case
|
|
237
|
+
case CellType.CREATOR:
|
|
235
238
|
{
|
|
236
239
|
this.props.queryUsers([cellValue]);
|
|
237
|
-
return /*#__PURE__*/
|
|
240
|
+
return /*#__PURE__*/React.createElement(_CreatorFormatter, {
|
|
238
241
|
collaborators: collaborators,
|
|
239
242
|
value: cellValue
|
|
240
243
|
});
|
|
241
244
|
}
|
|
242
|
-
case
|
|
245
|
+
case CellType.LAST_MODIFIER:
|
|
243
246
|
{
|
|
244
247
|
this.props.queryUsers([cellValue]);
|
|
245
|
-
return /*#__PURE__*/
|
|
248
|
+
return /*#__PURE__*/React.createElement(_LastModifierFormatter, {
|
|
246
249
|
collaborators: collaborators,
|
|
247
250
|
value: cellValue
|
|
248
251
|
});
|
|
249
252
|
}
|
|
250
|
-
case
|
|
253
|
+
case CellType.AUTO_NUMBER:
|
|
251
254
|
{
|
|
252
255
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
253
|
-
return /*#__PURE__*/
|
|
256
|
+
return /*#__PURE__*/React.createElement(_AutoNumberFormatter, {
|
|
254
257
|
value: cellValue,
|
|
255
258
|
containerClassName: containerClassName
|
|
256
259
|
});
|
|
257
260
|
}
|
|
258
|
-
case
|
|
261
|
+
case CellType.URL:
|
|
259
262
|
{
|
|
260
263
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
261
|
-
return /*#__PURE__*/
|
|
264
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
262
265
|
onClick: () => this.onUrlClick(cellValue)
|
|
263
|
-
}, /*#__PURE__*/
|
|
266
|
+
}, /*#__PURE__*/React.createElement(_UrlFormatter, {
|
|
264
267
|
value: cellValue,
|
|
265
268
|
containerClassName: containerClassName
|
|
266
269
|
}), ";");
|
|
267
270
|
}
|
|
268
|
-
case
|
|
271
|
+
case CellType.EMAIL:
|
|
269
272
|
{
|
|
270
273
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
271
|
-
return /*#__PURE__*/
|
|
274
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
272
275
|
onClick: () => this.onEmailClick(cellValue)
|
|
273
|
-
}, /*#__PURE__*/
|
|
276
|
+
}, /*#__PURE__*/React.createElement(_EmailFormatter, {
|
|
274
277
|
value: cellValue,
|
|
275
278
|
containerClassName: containerClassName
|
|
276
279
|
}), ";");
|
|
277
280
|
}
|
|
278
|
-
case
|
|
281
|
+
case CellType.DURATION:
|
|
279
282
|
{
|
|
280
283
|
if (!cellValue) return this.renderEmptyFormatter();
|
|
281
|
-
return /*#__PURE__*/
|
|
284
|
+
return /*#__PURE__*/React.createElement(_DurationFormatter, {
|
|
282
285
|
value: cellValue,
|
|
283
286
|
format: column.data.duration_format,
|
|
284
287
|
containerClassName: containerClassName
|
|
285
288
|
});
|
|
286
289
|
}
|
|
287
|
-
case
|
|
290
|
+
case CellType.RATE:
|
|
288
291
|
{
|
|
289
|
-
return /*#__PURE__*/
|
|
292
|
+
return /*#__PURE__*/React.createElement(_RateFormatter, {
|
|
290
293
|
value: cellValue,
|
|
291
294
|
data: column.data || {},
|
|
292
295
|
containerClassName: containerClassName
|
|
293
296
|
});
|
|
294
297
|
}
|
|
295
|
-
case
|
|
298
|
+
case CellType.BUTTON:
|
|
296
299
|
{
|
|
297
|
-
return /*#__PURE__*/
|
|
300
|
+
return /*#__PURE__*/React.createElement(_ButtonFormatter, {
|
|
298
301
|
data: column.data || {},
|
|
299
302
|
containerClassName: containerClassName
|
|
300
303
|
});
|
|
301
304
|
}
|
|
302
|
-
case
|
|
303
|
-
case
|
|
305
|
+
case CellType.FORMULA:
|
|
306
|
+
case CellType.LINK_FORMULA:
|
|
304
307
|
{
|
|
305
|
-
return /*#__PURE__*/
|
|
308
|
+
return /*#__PURE__*/React.createElement(DtableFormulaFormatter, {
|
|
306
309
|
value: cellValue,
|
|
307
310
|
column: column,
|
|
308
311
|
collaborators: collaborators,
|
|
@@ -311,10 +314,10 @@ class Formatter extends _react.default.Component {
|
|
|
311
314
|
renderEmptyFormatter: this.renderEmptyFormatter
|
|
312
315
|
});
|
|
313
316
|
}
|
|
314
|
-
case
|
|
317
|
+
case CellType.LINK:
|
|
315
318
|
{
|
|
316
319
|
if (!Array.isArray(cellValue) || cellValue.length === 0) return this.renderEmptyFormatter();
|
|
317
|
-
return /*#__PURE__*/
|
|
320
|
+
return /*#__PURE__*/React.createElement(LinkFormatter, {
|
|
318
321
|
value: cellValue,
|
|
319
322
|
column: column,
|
|
320
323
|
collaborators: collaborators,
|
|
@@ -331,7 +334,7 @@ class Formatter extends _react.default.Component {
|
|
|
331
334
|
};
|
|
332
335
|
}
|
|
333
336
|
render() {
|
|
334
|
-
return /*#__PURE__*/
|
|
337
|
+
return /*#__PURE__*/React.createElement(Fragment, null, this.renderFormatter());
|
|
335
338
|
}
|
|
336
339
|
}
|
|
337
340
|
Formatter.defaultProps = {
|
|
@@ -339,4 +342,4 @@ Formatter.defaultProps = {
|
|
|
339
342
|
isRowExpand: false,
|
|
340
343
|
queryUsers: () => {}
|
|
341
344
|
};
|
|
342
|
-
|
|
345
|
+
export default Formatter;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _ImagePreviewerLightbox2 = _interopRequireDefault(require("dtable-ui-component/lib/ImagePreviewerLightbox"));
|
|
10
|
-
var _FileItemFormatter2 = _interopRequireDefault(require("dtable-ui-component/lib/FileItemFormatter"));
|
|
11
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
var _commonUtils = require("../../../../../../utils/common-utils");
|
|
14
|
-
var _context = _interopRequireDefault(require("../../../../../../context"));
|
|
15
|
-
require("./index.css");
|
|
16
|
-
class FileFormatter extends _react.default.PureComponent {
|
|
1
|
+
import _ImagePreviewerLightbox from "dtable-ui-component/lib/ImagePreviewerLightbox";
|
|
2
|
+
import _FileItemFormatter from "dtable-ui-component/lib/FileItemFormatter";
|
|
3
|
+
import React, { Fragment } from 'react';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import { imageCheck } from '../../../../../../utils/common-utils';
|
|
6
|
+
import context from '../../../../../../context';
|
|
7
|
+
import './index.css';
|
|
8
|
+
export default class FileFormatter extends React.PureComponent {
|
|
17
9
|
constructor(props) {
|
|
18
10
|
super(props);
|
|
19
11
|
this.getFileItemImageUrlList = value => {
|
|
@@ -25,7 +17,7 @@ class FileFormatter extends _react.default.PureComponent {
|
|
|
25
17
|
} = fileItem;
|
|
26
18
|
let assetFileIndex = typeof url === 'string' ? url.indexOf('/asset') : -1;
|
|
27
19
|
if (assetFileIndex > -1) {
|
|
28
|
-
const isImage =
|
|
20
|
+
const isImage = imageCheck(name);
|
|
29
21
|
if (isImage) {
|
|
30
22
|
fileImageUrlList.push(url);
|
|
31
23
|
}
|
|
@@ -40,7 +32,7 @@ class FileFormatter extends _react.default.PureComponent {
|
|
|
40
32
|
let previewerUrl;
|
|
41
33
|
let assetFileIndex = openFileUrl.indexOf('/asset');
|
|
42
34
|
if (assetFileIndex > -1) {
|
|
43
|
-
if (
|
|
35
|
+
if (imageCheck(fileItem.name)) {
|
|
44
36
|
this.showLargeImage(fileItem.url);
|
|
45
37
|
return;
|
|
46
38
|
}
|
|
@@ -79,9 +71,9 @@ class FileFormatter extends _react.default.PureComponent {
|
|
|
79
71
|
largeImageIndex: -1
|
|
80
72
|
});
|
|
81
73
|
};
|
|
82
|
-
this.server =
|
|
83
|
-
this.workspaceID =
|
|
84
|
-
this.dtableUuid =
|
|
74
|
+
this.server = context.getSetting('server');
|
|
75
|
+
this.workspaceID = context.getSetting('workspaceID');
|
|
76
|
+
this.dtableUuid = context.getSetting('dtableUuid');
|
|
85
77
|
this.state = {
|
|
86
78
|
isShowLargeImage: false,
|
|
87
79
|
largeImageIndex: -1,
|
|
@@ -105,28 +97,28 @@ class FileFormatter extends _react.default.PureComponent {
|
|
|
105
97
|
if (!Array.isArray(value) || value.length === 0) {
|
|
106
98
|
return null;
|
|
107
99
|
}
|
|
108
|
-
let className = (
|
|
100
|
+
let className = classnames('dtable-ui cell-formatter-container file-formatter', containerClassName);
|
|
109
101
|
if (isSample) {
|
|
110
102
|
let item = value[0];
|
|
111
|
-
return /*#__PURE__*/
|
|
103
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
112
104
|
className: className
|
|
113
|
-
}, /*#__PURE__*/
|
|
105
|
+
}, /*#__PURE__*/React.createElement(_FileItemFormatter, {
|
|
114
106
|
file: item
|
|
115
|
-
}), value.length !== 1 && /*#__PURE__*/
|
|
107
|
+
}), value.length !== 1 && /*#__PURE__*/React.createElement("span", {
|
|
116
108
|
className: "file-item-count"
|
|
117
|
-
},
|
|
109
|
+
}, `+${value.length}`));
|
|
118
110
|
}
|
|
119
|
-
return /*#__PURE__*/
|
|
111
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
120
112
|
className: className
|
|
121
113
|
}, value.map((item, index) => {
|
|
122
|
-
return /*#__PURE__*/
|
|
114
|
+
return /*#__PURE__*/React.createElement(Fragment, {
|
|
123
115
|
key: index
|
|
124
|
-
}, /*#__PURE__*/
|
|
116
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
125
117
|
onClick: () => this.openFile(item)
|
|
126
|
-
}, /*#__PURE__*/
|
|
118
|
+
}, /*#__PURE__*/React.createElement(_FileItemFormatter, {
|
|
127
119
|
file: item
|
|
128
120
|
})));
|
|
129
|
-
}), this.state.isShowLargeImage && /*#__PURE__*/
|
|
121
|
+
}), this.state.isShowLargeImage && /*#__PURE__*/React.createElement(_ImagePreviewerLightbox, {
|
|
130
122
|
server: this.server,
|
|
131
123
|
workspaceID: this.workspaceID,
|
|
132
124
|
dtableUuid: this.dtableUuid,
|
|
@@ -139,7 +131,6 @@ class FileFormatter extends _react.default.PureComponent {
|
|
|
139
131
|
}));
|
|
140
132
|
}
|
|
141
133
|
}
|
|
142
|
-
exports.default = FileFormatter;
|
|
143
134
|
FileFormatter.defaultProps = {
|
|
144
135
|
isSample: false,
|
|
145
136
|
value: [],
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _FormulaFormatter2 = _interopRequireDefault(require("dtable-ui-component/lib/FormulaFormatter"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _dtableUtils = require("dtable-utils");
|
|
11
|
-
var _datasetUtils = require("../dataset-utils");
|
|
1
|
+
import _FormulaFormatter from "dtable-ui-component/lib/FormulaFormatter";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CellType, COLLABORATOR_COLUMN_TYPES, FORMULA_RESULT_TYPE } from 'dtable-utils';
|
|
4
|
+
import { convertValueToDtableLongTextValue } from '../dataset-utils';
|
|
12
5
|
function DtableFormulaFormatter(props) {
|
|
13
6
|
const {
|
|
14
7
|
value,
|
|
@@ -25,19 +18,19 @@ function DtableFormulaFormatter(props) {
|
|
|
25
18
|
} = column.data || {};
|
|
26
19
|
let cellValue = value;
|
|
27
20
|
if (Array.isArray(cellValue)) {
|
|
28
|
-
if (array_type ===
|
|
29
|
-
cellValue = cellValue.map(item =>
|
|
21
|
+
if (array_type === CellType.LONG_TEXT) {
|
|
22
|
+
cellValue = cellValue.map(item => convertValueToDtableLongTextValue(item));
|
|
30
23
|
}
|
|
31
24
|
}
|
|
32
|
-
if (result_type ===
|
|
25
|
+
if (result_type === FORMULA_RESULT_TYPE.ARRAY && COLLABORATOR_COLUMN_TYPES.includes(array_type)) {
|
|
33
26
|
// need query user if not loaded
|
|
34
27
|
props.queryUsers(Array.isArray(cellValue) ? cellValue : [cellValue]);
|
|
35
28
|
}
|
|
36
|
-
return /*#__PURE__*/
|
|
29
|
+
return /*#__PURE__*/React.createElement(_FormulaFormatter, {
|
|
37
30
|
value: cellValue,
|
|
38
31
|
column: column,
|
|
39
32
|
collaborators: collaborators,
|
|
40
33
|
containerClassName: containerClassName
|
|
41
34
|
});
|
|
42
35
|
}
|
|
43
|
-
|
|
36
|
+
export default DtableFormulaFormatter;
|