dtable-ui-component 6.0.49 → 6.0.50
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/lib/ActionSheet/index.js +94 -68
- package/lib/ActivityIndicator/index.js +36 -28
- package/lib/AsyncUserSelect/index.css +122 -0
- package/lib/AsyncUserSelect/index.js +260 -0
- package/lib/AsyncUserSelect/user-item.js +55 -0
- package/lib/AutoNumberFormatter/index.js +5 -3
- package/lib/Badge/index.js +12 -8
- package/lib/ButtonFormatter/index.js +15 -10
- package/lib/CTimeFormatter/index.js +5 -3
- package/lib/CheckboxEditor/index.js +22 -13
- package/lib/CheckboxEditor/mb-editor.js +7 -5
- package/lib/CheckboxEditor/pc-editor.js +7 -5
- package/lib/CheckboxFormatter/index.js +7 -5
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +78 -62
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +29 -27
- package/lib/Comment/footer/input/index.js +44 -39
- package/lib/Comment/footer/input/participant/index.js +18 -13
- package/lib/Comment/footer/participants/index.js +31 -28
- package/lib/Comment/footer/participants/participant/index.js +18 -15
- package/lib/Comment/footer/participants/participant-select/index.js +66 -55
- package/lib/Comment/index.js +33 -28
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableCommonAddTool/index.js +10 -7
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
- package/lib/DTableCustomizeSelect/index.js +51 -44
- package/lib/DTableEmptyTip/index.js +20 -16
- package/lib/DTableFiltersPopover/index.js +71 -61
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
- package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
- package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
- package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
- package/lib/DTableGroupSelect/index.js +52 -44
- package/lib/DTableGroupSelect/option.js +5 -3
- package/lib/DTableGroupSelect/select-option-group.js +31 -25
- package/lib/DTableModalHeader/index.js +13 -9
- package/lib/DTablePopover/index.js +9 -6
- package/lib/DTableRadio/index.js +20 -17
- package/lib/DTableRadioGroup/index.js +21 -18
- package/lib/DTableSearchInput/index.js +22 -18
- package/lib/DTableSelect/dtable-select-label.js +12 -7
- package/lib/DTableSelect/index.js +2 -1
- package/lib/DTableSelect/utils.js +34 -20
- package/lib/DTableSwitch/index.js +25 -17
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +38 -34
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DeleteTip/index.js +29 -20
- package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
- package/lib/DepartmentSelectFilter/index.js +8 -1
- package/lib/DepartmentSingleSelectEditor/index.js +22 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
- package/lib/DigitalSignEditor/index.js +22 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
- package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
- package/lib/DigitalSignEditor/signature-board/index.js +19 -15
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/Drawer/index.js +4 -1
- package/lib/DurationEditor/index.js +2 -1
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EditEditorButton/index.js +5 -3
- package/lib/EmailEditor/index.js +2 -1
- package/lib/EmailFormatter/index.js +5 -3
- package/lib/FieldDisplaySetting/field-item.js +25 -19
- package/lib/FieldDisplaySetting/index.js +47 -38
- package/lib/FileEditor/files-previewer/index.js +22 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
- package/lib/FileEditor/index.js +22 -13
- package/lib/FileEditor/mb-editor/index.js +43 -31
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +2 -1
- package/lib/FileUploader/index.js +22 -20
- package/lib/FormulaFormatter/index.js +21 -14
- package/lib/GeolocationEditor/index.js +28 -19
- package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/index.js +22 -14
- package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
- package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
- package/lib/GeolocationFormatter/index.js +5 -3
- package/lib/HtmlLongTextFormatter/index.js +2 -1
- package/lib/Icon/index.js +8 -5
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
- package/lib/ImageEditor/images-previewer/index.js +35 -32
- package/lib/ImageEditor/index.js +22 -13
- package/lib/ImageEditor/mb-editor/index.js +43 -31
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
- package/lib/ImageEditor/pc-editor/index.js +44 -32
- package/lib/ImageFormatter/images-lazy-load.js +12 -10
- package/lib/ImageFormatter/index.js +40 -34
- package/lib/ImagePreviewerLightbox/index.js +12 -8
- package/lib/ImageThumbnail/index.js +46 -38
- package/lib/InputItem/custom-input.js +23 -18
- package/lib/InputItem/custom-keyboard.js +65 -44
- package/lib/InputItem/index.js +66 -56
- package/lib/InputItem/input.js +5 -3
- package/lib/LastModifierFormatter/index.js +8 -7
- package/lib/LinkEditor/index.js +38 -32
- package/lib/LinkEditor/link-editor-option.js +25 -20
- package/lib/LinkEditor/mb-popover/index.js +53 -41
- package/lib/LinkEditor/pc-popover/index.js +41 -33
- package/lib/LinkFormatter/index.js +13 -10
- package/lib/List/index.js +15 -9
- package/lib/List/list-item.js +32 -23
- package/lib/Loading/index.js +2 -1
- package/lib/LongTextFormatter/index.js +3 -2
- package/lib/MBEditorHeader/index.js +19 -14
- package/lib/MTimeFormatter/index.js +5 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +21 -16
- package/lib/MobileFullScreenPage/index.js +11 -8
- package/lib/MobileModal/index.js +6 -3
- package/lib/MobileOperationSheet/index.js +28 -18
- package/lib/MobileSelector/empty/index.js +5 -3
- package/lib/MobileSelector/index.js +18 -12
- package/lib/MobileSelector/option/index.js +17 -12
- package/lib/MobileSelector/options/index.js +5 -3
- package/lib/MobileSelector/search/index.js +10 -8
- package/lib/MobileUpload/index.js +87 -67
- package/lib/Modal/alert.js +8 -5
- package/lib/Modal/modal.js +19 -15
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +74 -54
- package/lib/MultipleSelectEditor/index.js +4 -2
- package/lib/MultipleSelectFormatter/index.js +8 -7
- package/lib/NotificationPopover/index.js +43 -32
- package/lib/NumberEditor/index.js +2 -1
- package/lib/NumberFormatter/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +26 -22
- package/lib/Picker/index.js +2 -1
- package/lib/Popover/index.js +8 -5
- package/lib/Popover/item.js +22 -15
- package/lib/Progress/index.js +12 -10
- package/lib/Radio/Radio.js +11 -7
- package/lib/Radio/RadioItem.js +9 -3
- package/lib/RateFormatter/index.js +7 -6
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +52 -41
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +28 -21
- package/lib/RowExpandDialog/index.js +40 -27
- package/lib/RowExpandEditor/add-btn/index.js +16 -9
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
- package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
- package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
- package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
- package/lib/RowExpandEditor/date-editor/index.js +16 -9
- package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
- package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
- package/lib/RowExpandEditor/department-editor/index.js +16 -9
- package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
- package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
- package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
- package/lib/RowExpandEditor/duration-editor/index.js +16 -9
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
- package/lib/RowExpandEditor/email-editor/index.js +16 -9
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandEditor/file-editor/index.js +16 -9
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
- package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
- package/lib/RowExpandEditor/image-editor/index.js +16 -9
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
- package/lib/RowExpandEditor/index.js +4 -2
- package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
- package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
- package/lib/RowExpandEditor/number-editor/index.js +16 -9
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
- package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
- package/lib/RowExpandEditor/rate-editor/index.js +16 -9
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
- package/lib/RowExpandEditor/right-angle/index.js +8 -6
- package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
- package/lib/RowExpandEditor/text-editor/index.js +16 -9
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
- package/lib/RowExpandEditor/url-editor/index.js +16 -9
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
- package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
- package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
- package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
- package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
- package/lib/RowExpandFormatter/index.js +131 -114
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
- package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
- package/lib/RowExpandView/body/index.js +38 -32
- package/lib/RowExpandView/column-content/index.js +10 -5
- package/lib/RowExpandView/index.js +27 -16
- package/lib/SelectItem/index.js +16 -12
- package/lib/SelectOptionGroup/index.js +39 -32
- package/lib/SelectOptionGroup/option.js +5 -3
- package/lib/SelectedDepartments/index.js +54 -44
- package/lib/SimpleLongTextFormatter/index.js +39 -30
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
- package/lib/SingleSelectEditor/index.js +4 -2
- package/lib/SingleSelectFormatter/index.js +6 -4
- package/lib/SvgIcon/index.js +4 -1
- package/lib/TabBar/Tab.js +27 -20
- package/lib/TabBar/index.js +25 -21
- package/lib/Tabs/index.js +8 -5
- package/lib/TextEditor/index.js +21 -18
- package/lib/TextFormatter/index.js +5 -3
- package/lib/TextareaItem/index.js +35 -26
- package/lib/Toast/index.js +16 -10
- package/lib/UploadProgress/index.js +2 -1
- package/lib/UrlEditor/index.js +2 -1
- package/lib/UrlFormatter/index.js +5 -3
- package/lib/formatterConfig/base-formatter-config.js +24 -23
- package/lib/formatterConfig/index.js +3 -2
- package/lib/index.js +7 -0
- package/lib/locales/de.json +5 -1
- package/lib/locales/en.json +5 -1
- package/lib/locales/es.json +6 -2
- package/lib/locales/fr.json +5 -1
- package/lib/locales/pt.json +5 -1
- package/lib/locales/ru.json +5 -1
- package/lib/locales/zh-CN.json +5 -1
- package/lib/select-editor/index.js +22 -13
- package/lib/select-editor/mb-editor/index.js +22 -16
- package/lib/select-editor/pc-editor/index.js +74 -60
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +16 -13
- package/lib/toaster/toaster.js +2 -1
- package/package.json +2 -2
|
@@ -10,6 +10,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
var _constants = require("./constants");
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class RowExpandFormatter extends _react.default.Component {
|
|
14
15
|
constructor(_props) {
|
|
15
16
|
super(_props);
|
|
@@ -49,7 +50,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
49
50
|
return collaborators || [];
|
|
50
51
|
};
|
|
51
52
|
this.renderEmpty = () => {
|
|
52
|
-
return /*#__PURE__*/
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
54
|
className: "d-flex align-items-center form-control disabled h-auto"
|
|
54
55
|
});
|
|
55
56
|
};
|
|
@@ -72,125 +73,135 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
72
73
|
switch (columnType) {
|
|
73
74
|
case _dtableUtils.CellType.TEXT:
|
|
74
75
|
{
|
|
75
|
-
return /*#__PURE__*/
|
|
76
|
-
className: "form-control d-flex align-items-center w-100"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
77
|
+
className: "form-control d-flex align-items-center w-100",
|
|
78
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
79
|
+
value: cellValue,
|
|
80
|
+
containerClassName: containerClassName
|
|
81
|
+
})
|
|
82
|
+
});
|
|
81
83
|
}
|
|
82
84
|
case _dtableUtils.CellType.COLLABORATOR:
|
|
83
85
|
{
|
|
84
|
-
return /*#__PURE__*/
|
|
85
|
-
className: "form-control d-flex align-items-center w-100 h-auto"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
+
className: "form-control d-flex align-items-center w-100 h-auto",
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
89
|
+
value: cellValue,
|
|
90
|
+
collaborators: collaborators,
|
|
91
|
+
containerClassName: containerClassName
|
|
92
|
+
})
|
|
93
|
+
});
|
|
91
94
|
}
|
|
92
95
|
case _dtableUtils.CellType.LONG_TEXT:
|
|
93
96
|
{
|
|
94
|
-
if (!cellValue) return /*#__PURE__*/
|
|
97
|
+
if (!cellValue) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
98
|
className: "form-control d-flex align-items-center w-100"
|
|
96
99
|
});
|
|
97
|
-
return /*#__PURE__*/
|
|
98
|
-
className: "longtext-formatter-container"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
101
|
+
className: "longtext-formatter-container",
|
|
102
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
103
|
+
value: cellValue,
|
|
104
|
+
containerClassName: containerClassName,
|
|
105
|
+
isSample: false
|
|
106
|
+
})
|
|
107
|
+
});
|
|
104
108
|
}
|
|
105
109
|
case _dtableUtils.CellType.GEOLOCATION:
|
|
106
110
|
{
|
|
107
111
|
if (!cellValue) return null;
|
|
108
112
|
if (typeof cellValue !== 'object') return null;
|
|
109
|
-
return /*#__PURE__*/
|
|
110
|
-
className: "dtable-ui-geolocation-formatter-container"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
114
|
+
className: "dtable-ui-geolocation-formatter-container",
|
|
115
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
116
|
+
value: cellValue,
|
|
117
|
+
data: column.data,
|
|
118
|
+
containerClassName: containerClassName
|
|
119
|
+
})
|
|
120
|
+
});
|
|
116
121
|
}
|
|
117
122
|
case _dtableUtils.CellType.NUMBER:
|
|
118
123
|
{
|
|
119
|
-
return /*#__PURE__*/
|
|
124
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
120
125
|
className: "form-control d-flex align-items-center",
|
|
121
126
|
style: {
|
|
122
127
|
width: 320
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
},
|
|
129
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
130
|
+
value: cellValue,
|
|
131
|
+
data: column.data,
|
|
132
|
+
containerClassName: containerClassName
|
|
133
|
+
})
|
|
134
|
+
});
|
|
129
135
|
}
|
|
130
136
|
case _dtableUtils.CellType.DATE:
|
|
131
137
|
{
|
|
132
|
-
return /*#__PURE__*/
|
|
138
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
133
139
|
className: "form-control d-flex align-items-center",
|
|
134
140
|
style: {
|
|
135
141
|
width: 320
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
},
|
|
143
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
144
|
+
value: cellValue,
|
|
145
|
+
format: column.data.format,
|
|
146
|
+
containerClassName: containerClassName
|
|
147
|
+
})
|
|
148
|
+
});
|
|
142
149
|
}
|
|
143
150
|
case _dtableUtils.CellType.CTIME:
|
|
144
151
|
{
|
|
145
|
-
return /*#__PURE__*/
|
|
152
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
146
153
|
className: "form-control d-flex align-items-center ctime-formatter-container",
|
|
147
154
|
style: {
|
|
148
155
|
width: 320
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
},
|
|
157
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
158
|
+
value: cellValue,
|
|
159
|
+
containerClassName: containerClassName
|
|
160
|
+
})
|
|
161
|
+
});
|
|
154
162
|
}
|
|
155
163
|
case _dtableUtils.CellType.MTIME:
|
|
156
164
|
{
|
|
157
|
-
return /*#__PURE__*/
|
|
165
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
158
166
|
className: "form-control d-flex align-items-center mtime-formatter-container",
|
|
159
167
|
style: {
|
|
160
168
|
width: 320
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
},
|
|
170
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
171
|
+
value: cellValue,
|
|
172
|
+
containerClassName: containerClassName
|
|
173
|
+
})
|
|
174
|
+
});
|
|
166
175
|
}
|
|
167
176
|
case _dtableUtils.CellType.MULTIPLE_SELECT:
|
|
168
177
|
{
|
|
169
178
|
var _column, _column$data;
|
|
170
179
|
const options = ((_column = column) === null || _column === void 0 ? void 0 : (_column$data = _column.data) === null || _column$data === void 0 ? void 0 : _column$data.options) || [];
|
|
171
|
-
return /*#__PURE__*/
|
|
172
|
-
className: "form-control d-flex align-items-center w-100 h-auto"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
180
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
181
|
+
className: "form-control d-flex align-items-center w-100 h-auto",
|
|
182
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
183
|
+
value: cellValue,
|
|
184
|
+
options: options,
|
|
185
|
+
containerClassName: containerClassName
|
|
186
|
+
})
|
|
187
|
+
});
|
|
178
188
|
}
|
|
179
189
|
case _dtableUtils.CellType.SINGLE_SELECT:
|
|
180
190
|
{
|
|
181
191
|
var _column2, _column2$data;
|
|
182
192
|
const options = ((_column2 = column) === null || _column2 === void 0 ? void 0 : (_column2$data = _column2.data) === null || _column2$data === void 0 ? void 0 : _column2$data.options) || [];
|
|
183
|
-
return /*#__PURE__*/
|
|
184
|
-
className: "form-control d-flex align-items-center w-100"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
193
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
194
|
+
className: "form-control d-flex align-items-center w-100",
|
|
195
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
196
|
+
value: cellValue,
|
|
197
|
+
options: options,
|
|
198
|
+
containerClassName: containerClassName
|
|
199
|
+
})
|
|
200
|
+
});
|
|
190
201
|
}
|
|
191
202
|
case _dtableUtils.CellType.FILE:
|
|
192
203
|
{
|
|
193
|
-
return /*#__PURE__*/
|
|
204
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
194
205
|
value: cellValue,
|
|
195
206
|
column: column,
|
|
196
207
|
downloadFile: this.props.downloadFile,
|
|
@@ -200,7 +211,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
200
211
|
}
|
|
201
212
|
case _dtableUtils.CellType.IMAGE:
|
|
202
213
|
{
|
|
203
|
-
return /*#__PURE__*/
|
|
214
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
204
215
|
value: cellValue,
|
|
205
216
|
column: column,
|
|
206
217
|
downloadImage: this.props.downloadImage,
|
|
@@ -212,17 +223,18 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
212
223
|
case _dtableUtils.CellType.CHECKBOX:
|
|
213
224
|
{
|
|
214
225
|
var _column$data2;
|
|
215
|
-
return /*#__PURE__*/
|
|
216
|
-
className: "checkbox-formatter-container"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
226
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
227
|
+
className: "checkbox-formatter-container",
|
|
228
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
229
|
+
value: cellValue,
|
|
230
|
+
checkboxStyle: ((_column$data2 = column.data) === null || _column$data2 === void 0 ? void 0 : _column$data2.checkbox_style) || {}
|
|
231
|
+
})
|
|
232
|
+
});
|
|
221
233
|
}
|
|
222
234
|
case _dtableUtils.CellType.CREATOR:
|
|
223
235
|
case _dtableUtils.CellType.LAST_MODIFIER:
|
|
224
236
|
{
|
|
225
|
-
return /*#__PURE__*/
|
|
237
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
226
238
|
collaborators: collaborators,
|
|
227
239
|
value: cellValue,
|
|
228
240
|
containerClassName: containerClassName
|
|
@@ -231,7 +243,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
231
243
|
case _dtableUtils.CellType.FORMULA:
|
|
232
244
|
case _dtableUtils.CellType.LINK_FORMULA:
|
|
233
245
|
{
|
|
234
|
-
return /*#__PURE__*/
|
|
246
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
235
247
|
value: cellValue,
|
|
236
248
|
column: column,
|
|
237
249
|
collaborators: collaborators,
|
|
@@ -263,7 +275,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
263
275
|
}
|
|
264
276
|
};
|
|
265
277
|
}
|
|
266
|
-
return /*#__PURE__*/
|
|
278
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
267
279
|
value: cellValue,
|
|
268
280
|
column: column,
|
|
269
281
|
collaborators: collaborators,
|
|
@@ -273,58 +285,62 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
273
285
|
}
|
|
274
286
|
case _dtableUtils.CellType.AUTO_NUMBER:
|
|
275
287
|
{
|
|
276
|
-
return /*#__PURE__*/
|
|
288
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
277
289
|
value: cellValue,
|
|
278
290
|
containerClassName: containerClassName
|
|
279
291
|
});
|
|
280
292
|
}
|
|
281
293
|
case _dtableUtils.CellType.URL:
|
|
282
294
|
{
|
|
283
|
-
return /*#__PURE__*/
|
|
284
|
-
className: "form-control d-flex align-items-center w-100"
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
295
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
296
|
+
className: "form-control d-flex align-items-center w-100",
|
|
297
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
298
|
+
value: cellValue,
|
|
299
|
+
containerClassName: containerClassName
|
|
300
|
+
})
|
|
301
|
+
});
|
|
289
302
|
}
|
|
290
303
|
case _dtableUtils.CellType.EMAIL:
|
|
291
304
|
{
|
|
292
|
-
return /*#__PURE__*/
|
|
293
|
-
className: "form-control d-flex align-items-center w-100"
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
305
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
306
|
+
className: "form-control d-flex align-items-center w-100",
|
|
307
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
308
|
+
value: cellValue,
|
|
309
|
+
containerClassName: containerClassName
|
|
310
|
+
})
|
|
311
|
+
});
|
|
298
312
|
}
|
|
299
313
|
case _dtableUtils.CellType.DURATION:
|
|
300
314
|
{
|
|
301
|
-
return /*#__PURE__*/
|
|
315
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
302
316
|
className: "form-control d-flex align-items-center",
|
|
303
317
|
style: {
|
|
304
318
|
width: 320
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
319
|
+
},
|
|
320
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
321
|
+
value: cellValue,
|
|
322
|
+
format: column.data.duration_format,
|
|
323
|
+
containerClassName: containerClassName
|
|
324
|
+
})
|
|
325
|
+
});
|
|
311
326
|
}
|
|
312
327
|
case _dtableUtils.CellType.RATE:
|
|
313
328
|
{
|
|
314
|
-
return /*#__PURE__*/
|
|
329
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
315
330
|
className: "form-control d-flex align-items-center",
|
|
316
331
|
style: {
|
|
317
332
|
width: 320
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
333
|
+
},
|
|
334
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
335
|
+
value: cellValue,
|
|
336
|
+
data: column.data,
|
|
337
|
+
containerClassName: containerClassName
|
|
338
|
+
})
|
|
339
|
+
});
|
|
324
340
|
}
|
|
325
341
|
case _dtableUtils.CellType.BUTTON:
|
|
326
342
|
{
|
|
327
|
-
return /*#__PURE__*/
|
|
343
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
328
344
|
data: column.data,
|
|
329
345
|
containerClassName: containerClassName,
|
|
330
346
|
onClickButton: this.props.onClickButton
|
|
@@ -332,7 +348,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
332
348
|
}
|
|
333
349
|
case _dtableUtils.CellType.DIGITAL_SIGN:
|
|
334
350
|
{
|
|
335
|
-
return /*#__PURE__*/
|
|
351
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
336
352
|
value: cellValue,
|
|
337
353
|
containerClassName: containerClassName,
|
|
338
354
|
config: this.props.config
|
|
@@ -340,14 +356,14 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
340
356
|
}
|
|
341
357
|
case _dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT:
|
|
342
358
|
{
|
|
343
|
-
return /*#__PURE__*/
|
|
359
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
344
360
|
value: cellValue,
|
|
345
361
|
departments: this.props.departments
|
|
346
362
|
});
|
|
347
363
|
}
|
|
348
364
|
default:
|
|
349
365
|
{
|
|
350
|
-
return /*#__PURE__*/
|
|
366
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
351
367
|
value: cellValue,
|
|
352
368
|
containerClassName: containerClassName,
|
|
353
369
|
config: this.props.config
|
|
@@ -382,9 +398,10 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
382
398
|
const {
|
|
383
399
|
className
|
|
384
400
|
} = this.props;
|
|
385
|
-
return /*#__PURE__*/
|
|
386
|
-
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-formatter', className)
|
|
387
|
-
|
|
401
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
402
|
+
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-formatter', className),
|
|
403
|
+
children: this.renderFormatter()
|
|
404
|
+
});
|
|
388
405
|
}
|
|
389
406
|
}
|
|
390
407
|
RowExpandFormatter.defaultProps = {
|
|
@@ -9,6 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
var _CollaboratorItem = _interopRequireDefault(require("../../CollaboratorItem"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class CollaboratorItemFormatter extends _react.Component {
|
|
13
14
|
constructor(_props) {
|
|
14
15
|
super(_props);
|
|
@@ -115,7 +116,7 @@ class CollaboratorItemFormatter extends _react.Component {
|
|
|
115
116
|
if (!isDataLoaded || !cellValue || !collaborator) {
|
|
116
117
|
return this.props.renderEmpty();
|
|
117
118
|
}
|
|
118
|
-
return /*#__PURE__*/
|
|
119
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorItem.default, {
|
|
119
120
|
collaborator: collaborator,
|
|
120
121
|
enableDeleteCollaborator: false
|
|
121
122
|
});
|
|
@@ -16,6 +16,7 @@ var _collaboratorItemFormatter = _interopRequireDefault(require("./collaborator-
|
|
|
16
16
|
var _utils = require("../../utils/utils");
|
|
17
17
|
var _valueDisplayUtils = require("./value-display-utils");
|
|
18
18
|
require("./index.css");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
class RowExpandLinkFormatter extends _react.Component {
|
|
20
21
|
render() {
|
|
21
22
|
const props = this.props;
|
|
@@ -56,96 +57,98 @@ class RowExpandLinkFormatter extends _react.Component {
|
|
|
56
57
|
case _dtableUtils.CellType.DURATION:
|
|
57
58
|
case _dtableUtils.CellType.NUMBER:
|
|
58
59
|
{
|
|
59
|
-
return /*#__PURE__*/
|
|
60
|
-
className: containerClassName
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
className: containerClassName,
|
|
62
|
+
children: cellValue.map((value, index) => {
|
|
63
|
+
if (!value) return null;
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
className: "row-expand-link-item",
|
|
66
|
+
children: value
|
|
67
|
+
}, "link-".concat(displayColumnType, "-").concat(index));
|
|
68
|
+
})
|
|
69
|
+
});
|
|
68
70
|
}
|
|
69
71
|
case _dtableUtils.CellType.DATE:
|
|
70
72
|
{
|
|
71
|
-
return /*#__PURE__*/
|
|
72
|
-
className: containerClassName
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
})
|
|
84
|
-
})
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
|
+
className: containerClassName,
|
|
75
|
+
children: cellValue.map((value, index) => {
|
|
76
|
+
if (!value || typeof value !== 'string') return null;
|
|
77
|
+
const {
|
|
78
|
+
format
|
|
79
|
+
} = displayColumnData || {};
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateFormatter.default, {
|
|
81
|
+
value: value,
|
|
82
|
+
format: format,
|
|
83
|
+
containerClassName: "row-expand-link-item"
|
|
84
|
+
}, "link-".concat(displayColumnType, "-").concat(index));
|
|
85
|
+
})
|
|
86
|
+
});
|
|
85
87
|
}
|
|
86
88
|
case _dtableUtils.CellType.CTIME:
|
|
87
89
|
{
|
|
88
|
-
return /*#__PURE__*/
|
|
89
|
-
className: containerClassName
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
})
|
|
97
|
-
})
|
|
90
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
91
|
+
className: containerClassName,
|
|
92
|
+
children: cellValue.map((value, index) => {
|
|
93
|
+
if (!value) return null;
|
|
94
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CTimeFormatter.default, {
|
|
95
|
+
value: value,
|
|
96
|
+
containerClassName: "row-expand-link-item"
|
|
97
|
+
}, "link-".concat(displayColumnType, "-").concat(index));
|
|
98
|
+
})
|
|
99
|
+
});
|
|
98
100
|
}
|
|
99
101
|
case _dtableUtils.CellType.MTIME:
|
|
100
102
|
{
|
|
101
|
-
return /*#__PURE__*/
|
|
102
|
-
className: containerClassName
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
})
|
|
110
|
-
})
|
|
103
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
|
+
className: containerClassName,
|
|
105
|
+
children: cellValue.map((value, index) => {
|
|
106
|
+
if (!value) return null;
|
|
107
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MTimeFormatter.default, {
|
|
108
|
+
value: value,
|
|
109
|
+
containerClassName: "row-expand-link-item"
|
|
110
|
+
}, "link-".concat(displayColumnType, "-").concat(index));
|
|
111
|
+
})
|
|
112
|
+
});
|
|
111
113
|
}
|
|
112
114
|
case _dtableUtils.CellType.CREATOR:
|
|
113
115
|
case _dtableUtils.CellType.LAST_MODIFIER:
|
|
114
116
|
{
|
|
115
|
-
return /*#__PURE__*/
|
|
116
|
-
className: "dtable-ui cell-formatter-container collaborator-formatter sql-query-collaborator-formatter"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})
|
|
126
|
-
})
|
|
117
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
118
|
+
className: "dtable-ui cell-formatter-container collaborator-formatter sql-query-collaborator-formatter",
|
|
119
|
+
children: cellValue.map((value, index) => {
|
|
120
|
+
if (!value) return null;
|
|
121
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_collaboratorItemFormatter.default, {
|
|
122
|
+
cellValue: value,
|
|
123
|
+
collaborators: collaborators,
|
|
124
|
+
context: props.context,
|
|
125
|
+
renderEmpty: props.renderEmpty
|
|
126
|
+
}, "link-".concat(displayColumnType, "-").concat(index));
|
|
127
|
+
})
|
|
128
|
+
});
|
|
127
129
|
}
|
|
128
130
|
case _dtableUtils.CellType.SINGLE_SELECT:
|
|
129
131
|
{
|
|
130
132
|
const options = displayColumnData && Array.isArray(displayColumnData.options) ? displayColumnData.options : [];
|
|
131
|
-
return /*#__PURE__*/
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultipleSelectFormatter.default, {
|
|
132
134
|
value: cellValue,
|
|
133
135
|
options: options || []
|
|
134
136
|
});
|
|
135
137
|
}
|
|
136
138
|
case _dtableUtils.CellType.FORMULA:
|
|
137
139
|
{
|
|
138
|
-
return /*#__PURE__*/
|
|
139
|
-
className: containerClassName
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
141
|
+
className: containerClassName,
|
|
142
|
+
children: cellValue.map((value, index) => {
|
|
143
|
+
if (!value) return null;
|
|
144
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
|
+
className: "row-expand-link-item",
|
|
146
|
+
children: (0, _valueDisplayUtils.getCellDisplayValue)({
|
|
147
|
+
[displayColumn.key]: value
|
|
148
|
+
}, displayColumn, collaborators)
|
|
149
|
+
}, "link-".concat(displayColumnType, "-").concat(index));
|
|
150
|
+
})
|
|
151
|
+
});
|
|
149
152
|
}
|
|
150
153
|
default:
|
|
151
154
|
{
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RateExpendRateFormatter extends _react.default.Component {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -26,11 +27,10 @@ class RateExpendRateFormatter extends _react.default.Component {
|
|
|
26
27
|
let style = {
|
|
27
28
|
color: value >= i + 1 ? rate_style_color : '#e5e5e5'
|
|
28
29
|
};
|
|
29
|
-
rateList.push( /*#__PURE__*/
|
|
30
|
-
key: "dtable-ui-component-rate-".concat(i),
|
|
30
|
+
rateList.push( /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
31
31
|
className: "dtable-font ".concat(rate_style_type),
|
|
32
32
|
style: style
|
|
33
|
-
}));
|
|
33
|
+
}, "dtable-ui-component-rate-".concat(i)));
|
|
34
34
|
}
|
|
35
35
|
return rateList;
|
|
36
36
|
};
|
|
@@ -41,9 +41,10 @@ class RateExpendRateFormatter extends _react.default.Component {
|
|
|
41
41
|
} = this.props;
|
|
42
42
|
const className = (0, _classnames.default)('dtable-ui cell-formatter-container rate-formatter', containerClassName);
|
|
43
43
|
const rateList = this.getRateList();
|
|
44
|
-
return /*#__PURE__*/
|
|
45
|
-
className: className
|
|
46
|
-
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
+
className: className,
|
|
46
|
+
children: rateList
|
|
47
|
+
});
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
RateExpendRateFormatter.defaultProps = {
|