dtable-ui-component 6.0.126 → 7.0.0-xia.1
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 +16 -14
- package/lib/ActivityIndicator/index.js +8 -7
- package/lib/AsyncUserSelect/index.js +19 -40
- package/lib/AsyncUserSelect/user-item.js +6 -5
- package/lib/AutoNumberFormatter/index.js +4 -3
- package/lib/Badge/index.js +11 -9
- package/lib/ButtonFormatter/index.js +8 -6
- package/lib/CTimeFormatter/index.js +4 -3
- package/lib/CheckboxEditor/index.js +3 -1
- package/lib/CheckboxEditor/mb-editor.js +20 -9
- package/lib/CheckboxEditor/pc-editor.js +24 -12
- package/lib/CheckboxFormatter/index.js +5 -4
- package/lib/CollaboratorEditor/index.js +4 -2
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
- package/lib/CollaboratorEditor/pc-editor/index.js +34 -25
- package/lib/CollaboratorFormatter/index.js +10 -8
- package/lib/CollaboratorItem/index.js +5 -4
- package/lib/CollapsibleSettingLayout/index.js +7 -9
- package/lib/Comment/body/comment.js +18 -10
- package/lib/Comment/body/index.js +4 -2
- package/lib/Comment/footer/btns/index.js +7 -4
- package/lib/Comment/footer/index.js +20 -9
- package/lib/Comment/footer/input/index.js +50 -29
- package/lib/Comment/footer/input/participant/index.js +5 -4
- package/lib/Comment/footer/participants/index.js +5 -4
- package/lib/Comment/footer/participants/participant/index.js +3 -1
- package/lib/Comment/footer/participants/participant-select/index.js +24 -8
- package/lib/Comment/index.js +57 -39
- package/lib/Comment/utils/utilities.js +21 -15
- package/lib/CreatorFormatter/index.js +8 -6
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +18 -22
- package/lib/DTableColorPicker/index.js +40 -55
- package/lib/DTableColorPicker/utils.js +6 -4
- package/lib/DTableColumnIcon/index.js +7 -6
- package/lib/DTableCommonAddTool/index.js +8 -6
- package/lib/DTableCustomFooter/index.js +3 -1
- package/lib/DTableCustomizeCollaboratorSelect/index.js +20 -17
- package/lib/DTableCustomizeSelect/index.js +24 -19
- package/lib/DTableDropdownItem/index.js +18 -16
- package/lib/DTableDropdownMenu/index.js +10 -8
- package/lib/DTableEmptyTip/index.js +5 -4
- package/lib/DTableFiltersPopover/index.js +50 -34
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
- package/lib/DTableFiltersPopover/utils/index.js +113 -63
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
- package/lib/DTableFiltersPopover/widgets/filter-group.js +56 -35
- package/lib/DTableFiltersPopover/widgets/filter-item.js +171 -108
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +5 -5
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +161 -136
- package/lib/DTableFiltersPopover/widgets/rate-item.js +20 -15
- package/lib/DTableGroupSelect/index.js +15 -11
- package/lib/DTableGroupSelect/select-option-group.js +32 -23
- package/lib/DTableIcon/index.js +7 -6
- package/lib/DTableIcon/svg-icon.js +7 -5
- package/lib/DTableModalHeader/index.css +3 -20
- package/lib/DTableModalHeader/index.js +3 -1
- package/lib/DTablePopover/index.js +15 -11
- package/lib/DTableRadio/index.js +9 -10
- package/lib/DTableRadioGroup/index.js +17 -8
- package/lib/DTableSearchInput/index.js +29 -19
- package/lib/DTableSelect/dtable-select-label.js +5 -6
- package/lib/DTableSelect/index.js +22 -21
- package/lib/DTableSelect/utils.js +15 -7
- package/lib/DTableSubDropdownMenu/index.js +10 -8
- package/lib/DTableSubDropdownToggle/index.js +12 -12
- package/lib/DTableSwitch/index.js +11 -12
- package/lib/DTableToolTip/index.js +8 -7
- package/lib/DateEditor/index.js +15 -20
- package/lib/DateEditor/mb-editor/index.js +31 -18
- package/lib/DateEditor/pc-editor.js +45 -26
- package/lib/DateFormatter/index.js +5 -4
- package/lib/DatePicker/index.js +15 -9
- package/lib/DatePicker/utils.js +3 -1
- package/lib/DeleteTip/index.js +6 -5
- package/lib/DepartmentMultipleSelectEditor/index.js +23 -25
- package/lib/DepartmentSelectFilter/index.js +8 -6
- package/lib/DepartmentSingleSelectEditor/index.js +3 -1
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +47 -48
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +58 -36
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
- package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
- package/lib/DigitalSignEditor/index.js +3 -1
- package/lib/DigitalSignEditor/mb-editor/index.js +20 -12
- package/lib/DigitalSignEditor/pc-editor/index.js +24 -17
- package/lib/DigitalSignEditor/service.js +4 -2
- package/lib/DigitalSignEditor/signature-board/index.js +8 -5
- package/lib/DigitalSignEditor/utils.js +4 -2
- package/lib/DigitalSignFormatter/index.js +15 -12
- package/lib/DigitalSignFormatter/utils.js +5 -4
- package/lib/DurationEditor/index.js +31 -21
- package/lib/DurationFormatter/index.js +5 -4
- package/lib/EditEditorButton/index.js +3 -1
- package/lib/EmailFormatter/index.js +4 -3
- package/lib/FieldDisplaySetting/field-item.js +12 -12
- package/lib/FieldDisplaySetting/index.js +10 -12
- package/lib/FileEditor/files-previewer/index.js +3 -1
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +18 -10
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +21 -14
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
- package/lib/FileEditor/index.js +3 -1
- package/lib/FileEditor/mb-editor/index.js +20 -28
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +3 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +25 -11
- package/lib/FileEditor/pc-editor/index.js +27 -19
- package/lib/FileFormatter/index.js +19 -26
- package/lib/FileItemFormatter/index.js +9 -6
- package/lib/FileUploader/index.js +45 -28
- package/lib/FormulaFormatter/index.js +29 -15
- package/lib/GeolocationEditor/index.js +12 -11
- package/lib/GeolocationEditor/map-editor-utils.js +15 -17
- package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/index.js +6 -4
- package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +68 -41
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
- package/lib/GeolocationEditor/pc-editor/country-editor.js +23 -10
- package/lib/GeolocationEditor/pc-editor/index.js +20 -12
- package/lib/GeolocationEditor/pc-editor/location-editor.js +31 -26
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +54 -34
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +60 -36
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +62 -35
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +65 -36
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +25 -19
- package/lib/GeolocationEditor/pc-editor/province-editor.js +13 -6
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +7 -6
- package/lib/GeolocationFormatter/index.js +5 -4
- package/lib/HtmlLongTextFormatter/index.js +12 -4
- package/lib/Icon/index.js +5 -3
- package/lib/IconButton/index.js +6 -4
- package/lib/ImageEditor/images-previewer/image-preview/index.js +21 -12
- package/lib/ImageEditor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/index.js +3 -1
- package/lib/ImageEditor/mb-editor/index.js +20 -28
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +3 -1
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +21 -7
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/pc-editor/index.js +16 -11
- package/lib/ImageFormatter/images-lazy-load.js +11 -19
- package/lib/ImageFormatter/index.js +13 -11
- package/lib/ImagePreviewerLightbox/index.js +13 -15
- package/lib/ImageThumbnail/index.js +13 -10
- package/lib/InputItem/custom-input.js +46 -26
- package/lib/InputItem/custom-keyboard.js +18 -15
- package/lib/InputItem/index.js +50 -34
- package/lib/InputItem/input.js +4 -2
- package/lib/LastModifierFormatter/index.js +8 -6
- package/lib/LinkEditor/index.js +53 -33
- package/lib/LinkEditor/link-editor-option.js +4 -3
- package/lib/LinkEditor/mb-popover/index.js +22 -9
- package/lib/LinkEditor/pc-popover/index.js +10 -5
- package/lib/LinkFormatter/index.js +37 -21
- package/lib/List/index.js +8 -6
- package/lib/List/list-item.js +28 -22
- package/lib/LongTextFormatter/index.js +5 -4
- package/lib/MBEditorHeader/index.js +8 -7
- package/lib/MTimeFormatter/index.js +4 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +6 -4
- package/lib/MobileFullScreenPage/index.js +11 -13
- package/lib/MobileModal/index.js +3 -1
- package/lib/MobileOperationSheet/index.js +8 -7
- package/lib/MobileSelector/empty/index.js +3 -1
- package/lib/MobileSelector/index.js +7 -5
- package/lib/MobileSelector/option/index.js +5 -3
- package/lib/MobileSelector/options/index.js +3 -1
- package/lib/MobileSelector/search/index.js +5 -3
- package/lib/MobileUpload/index.js +5 -4
- package/lib/Modal/modal.js +15 -14
- package/lib/Modal/prompt.js +4 -4
- package/lib/MultipleSelectEditor/index.js +3 -1
- package/lib/MultipleSelectFormatter/index.js +8 -6
- package/lib/NotificationPopover/index.js +5 -4
- package/lib/NumberEditor/index.js +21 -12
- package/lib/NumberFormatter/index.js +5 -4
- package/lib/PhoneNumberLink/index.js +4 -2
- package/lib/Picker/AbstractPicker.js +27 -23
- package/lib/Popover/index.js +4 -3
- package/lib/Popover/item.js +9 -7
- package/lib/Progress/index.js +8 -9
- package/lib/Radio/Radio.js +8 -4
- package/lib/Radio/RadioItem.js +12 -8
- package/lib/RateFormatter/index.js +13 -13
- package/lib/RoleStatusEditor/index.js +17 -18
- package/lib/RowExpandDialog/body/index.js +49 -32
- package/lib/RowExpandDialog/column-content/index.js +9 -5
- package/lib/RowExpandDialog/header/index.js +8 -6
- package/lib/RowExpandDialog/index.js +34 -49
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
- package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
- package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
- package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
- package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +34 -20
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +35 -21
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -9
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +24 -13
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +25 -15
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +23 -13
- package/lib/RowExpandEditor/index.js +8 -4
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +19 -11
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +33 -22
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
- package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +25 -12
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +36 -20
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +28 -17
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +34 -22
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +13 -5
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +18 -9
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
- package/lib/RowExpandFormatter/email-formatter/index.js +7 -4
- package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +12 -10
- package/lib/RowExpandFormatter/formula-formatter/index.js +34 -19
- package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +8 -7
- package/lib/RowExpandFormatter/index.js +41 -27
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +14 -8
- package/lib/RowExpandFormatter/link-formatter/index.js +19 -11
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
- package/lib/RowExpandFormatter/rate-formatter/index.js +12 -11
- package/lib/RowExpandFormatter/text/index.js +5 -4
- package/lib/RowExpandFormatter/url-formatter/index.js +7 -4
- package/lib/RowExpandView/body/index.js +35 -22
- package/lib/RowExpandView/column-content/index.js +7 -3
- package/lib/RowExpandView/index.js +30 -42
- package/lib/SelectItem/index.js +8 -6
- package/lib/SelectOptionGroup/index.js +40 -30
- package/lib/SelectedDepartments/index.js +9 -7
- package/lib/SimpleLongTextFormatter/index.js +16 -10
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
- package/lib/SingleSelectEditor/index.js +3 -1
- package/lib/SingleSelectFormatter/index.js +9 -8
- package/lib/TabBar/Tab.js +16 -14
- package/lib/TabBar/index.js +21 -18
- package/lib/Tabs/index.js +3 -1
- package/lib/TextEditor/index.js +23 -14
- package/lib/TextFormatter/index.js +4 -3
- package/lib/TextareaItem/index.js +26 -19
- package/lib/Toast/index.js +4 -3
- package/lib/UrlFormatter/index.js +4 -3
- package/lib/common/editor-base.js +12 -7
- package/lib/hooks/common-hooks.js +4 -2
- package/lib/select-editor/index.js +3 -1
- package/lib/select-editor/mb-editor/index.js +28 -17
- package/lib/select-editor/pc-editor/index.js +42 -27
- package/lib/toaster/alert.js +7 -6
- package/lib/toaster/toast.js +3 -2
- package/lib/toaster/toastManager.js +4 -2
- package/lib/utils/cell.js +11 -8
- package/lib/utils/column-utils.js +14 -8
- package/lib/utils/departments.js +3 -1
- package/lib/utils/url.js +31 -24
- package/lib/utils/utils.js +6 -2
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
12
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -21,46 +20,34 @@ var _MobileFullScreenPage = _interopRequireDefault(require("../MobileFullScreenP
|
|
|
21
20
|
require("./index.css");
|
|
22
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
22
|
const _excluded = ["saveImmediately", "readonly", "isInsertingRow", "zIndex", "title", "className", "valueKey", "row", "columns", "commit", "onToggle", "uploadFile", "copyURL", "children", "historyCallback"];
|
|
24
|
-
const
|
|
25
|
-
|
|
23
|
+
const {
|
|
24
|
+
Header,
|
|
25
|
+
Body: MobileFullScreenPageBody
|
|
26
|
+
} = _MobileFullScreenPage.default;
|
|
26
27
|
const RowExpandView = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
children = _ref$children === void 0 ? [] : _ref$children,
|
|
46
|
-
historyCallback = _ref.historyCallback,
|
|
28
|
+
let {
|
|
29
|
+
saveImmediately = true,
|
|
30
|
+
readonly = false,
|
|
31
|
+
isInsertingRow = false,
|
|
32
|
+
zIndex,
|
|
33
|
+
title,
|
|
34
|
+
className,
|
|
35
|
+
valueKey = 'name',
|
|
36
|
+
// name or key
|
|
37
|
+
row: defaultRow,
|
|
38
|
+
columns: defaultColumns,
|
|
39
|
+
commit,
|
|
40
|
+
onToggle,
|
|
41
|
+
uploadFile,
|
|
42
|
+
copyURL,
|
|
43
|
+
children = [],
|
|
44
|
+
historyCallback
|
|
45
|
+
} = _ref,
|
|
47
46
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const _useState3 = (0, _react.useState)(false),
|
|
53
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
54
|
-
isSaving = _useState4[0],
|
|
55
|
-
setSaving = _useState4[1];
|
|
56
|
-
const _useState5 = (0, _react.useState)({}),
|
|
57
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
58
|
-
row = _useState6[0],
|
|
59
|
-
setRow = _useState6[1];
|
|
60
|
-
const _useState7 = (0, _react.useState)([]),
|
|
61
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
62
|
-
columns = _useState8[0],
|
|
63
|
-
setColumns = _useState8[1];
|
|
47
|
+
const [isLoading, setLoading] = (0, _react.useState)(true);
|
|
48
|
+
const [isSaving, setSaving] = (0, _react.useState)(false);
|
|
49
|
+
const [row, setRow] = (0, _react.useState)({});
|
|
50
|
+
const [columns, setColumns] = (0, _react.useState)([]);
|
|
64
51
|
const isChangedRef = (0, _react.useRef)(false);
|
|
65
52
|
const update = (0, _react.useRef)({});
|
|
66
53
|
const checkEditable = (0, _react.useCallback)(column => {
|
|
@@ -88,9 +75,10 @@ const RowExpandView = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
88
75
|
onToggle();
|
|
89
76
|
}, [isSaving, onToggle]);
|
|
90
77
|
const onSave = (0, _react.useCallback)(function (updated) {
|
|
91
|
-
let
|
|
92
|
-
successCallback
|
|
93
|
-
failCallback
|
|
78
|
+
let {
|
|
79
|
+
successCallback,
|
|
80
|
+
failCallback
|
|
81
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
94
82
|
commit(updated, columns, {
|
|
95
83
|
successCallback,
|
|
96
84
|
failCallback
|
package/lib/SelectItem/index.js
CHANGED
|
@@ -11,11 +11,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
require("./index.css");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
const SelectItem = _ref => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
let {
|
|
15
|
+
option,
|
|
16
|
+
fontSize,
|
|
17
|
+
className,
|
|
18
|
+
isShowRemove,
|
|
19
|
+
onRemove
|
|
20
|
+
} = _ref;
|
|
19
21
|
const selectItemStyle = (0, _react.useMemo)(() => {
|
|
20
22
|
return {
|
|
21
23
|
fontSize: fontSize || 13,
|
|
@@ -37,7 +39,7 @@ const SelectItem = _ref => {
|
|
|
37
39
|
title: option.name,
|
|
38
40
|
children: option.name
|
|
39
41
|
}), isShowRemove && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
40
|
-
className: "dtable-ui-select-item-remove-btn",
|
|
42
|
+
className: "dtable-ui-select-item-remove-btn seatable-icon-btn",
|
|
41
43
|
style: removeBtnStyle,
|
|
42
44
|
onClick: onRemove,
|
|
43
45
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
@@ -20,13 +20,15 @@ class SelectOptionGroup extends _react.Component {
|
|
|
20
20
|
super(props);
|
|
21
21
|
this.resetMenuStyle = () => {
|
|
22
22
|
if (!this.optionGroupRef) return;
|
|
23
|
-
const
|
|
24
|
-
isInModal
|
|
25
|
-
position
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
const {
|
|
24
|
+
isInModal,
|
|
25
|
+
position
|
|
26
|
+
} = this.props;
|
|
27
|
+
const {
|
|
28
|
+
top,
|
|
29
|
+
height,
|
|
30
|
+
width
|
|
31
|
+
} = this.optionGroupRef.getBoundingClientRect();
|
|
30
32
|
if (isInModal) {
|
|
31
33
|
if (position.y + position.height + height > window.innerHeight) {
|
|
32
34
|
this.optionGroupRef.style.top = position.y - height + 'px';
|
|
@@ -80,7 +82,9 @@ class SelectOptionGroup extends _react.Component {
|
|
|
80
82
|
}
|
|
81
83
|
};
|
|
82
84
|
this.onMouseDown = e => {
|
|
83
|
-
const
|
|
85
|
+
const {
|
|
86
|
+
isInModal
|
|
87
|
+
} = this.props;
|
|
84
88
|
// prevent event propagation when click option or search input
|
|
85
89
|
if (isInModal) {
|
|
86
90
|
e.stopPropagation();
|
|
@@ -92,9 +96,10 @@ class SelectOptionGroup extends _react.Component {
|
|
|
92
96
|
}
|
|
93
97
|
};
|
|
94
98
|
this.scrollContent = () => {
|
|
95
|
-
const
|
|
96
|
-
offsetHeight
|
|
97
|
-
scrollTop
|
|
99
|
+
const {
|
|
100
|
+
offsetHeight,
|
|
101
|
+
scrollTop
|
|
102
|
+
} = this.optionGroupContentRef;
|
|
98
103
|
this.setState({
|
|
99
104
|
disableHover: true
|
|
100
105
|
});
|
|
@@ -128,9 +133,10 @@ class SelectOptionGroup extends _react.Component {
|
|
|
128
133
|
}
|
|
129
134
|
};
|
|
130
135
|
this.renderOptGroup = searchVal => {
|
|
131
|
-
let
|
|
132
|
-
noOptionsPlaceholder
|
|
133
|
-
onSelectOption
|
|
136
|
+
let {
|
|
137
|
+
noOptionsPlaceholder,
|
|
138
|
+
onSelectOption
|
|
139
|
+
} = this.props;
|
|
134
140
|
this.filterOptions = this.props.getFilterOptions(searchVal);
|
|
135
141
|
if (this.filterOptions.length === 0) {
|
|
136
142
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -174,22 +180,26 @@ class SelectOptionGroup extends _react.Component {
|
|
|
174
180
|
window.removeEventListener('keydown', this.onHotKey);
|
|
175
181
|
}
|
|
176
182
|
render() {
|
|
177
|
-
const
|
|
178
|
-
searchable
|
|
179
|
-
searchPlaceholder
|
|
180
|
-
top
|
|
181
|
-
left
|
|
182
|
-
minWidth
|
|
183
|
-
value
|
|
184
|
-
isShowSelected
|
|
185
|
-
isInModal
|
|
186
|
-
position
|
|
187
|
-
className
|
|
188
|
-
addOptionAble
|
|
189
|
-
component
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
183
|
+
const {
|
|
184
|
+
searchable,
|
|
185
|
+
searchPlaceholder,
|
|
186
|
+
top,
|
|
187
|
+
left,
|
|
188
|
+
minWidth,
|
|
189
|
+
value,
|
|
190
|
+
isShowSelected,
|
|
191
|
+
isInModal,
|
|
192
|
+
position,
|
|
193
|
+
className,
|
|
194
|
+
addOptionAble,
|
|
195
|
+
component
|
|
196
|
+
} = this.props;
|
|
197
|
+
const {
|
|
198
|
+
AddOption
|
|
199
|
+
} = component || {};
|
|
200
|
+
let {
|
|
201
|
+
searchVal
|
|
202
|
+
} = this.state;
|
|
193
203
|
let style = {
|
|
194
204
|
top: top || 0,
|
|
195
205
|
left: left || 0
|
|
@@ -12,12 +12,12 @@ var _lang = require("../lang");
|
|
|
12
12
|
require("./index.css");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function SelectedDepartments(_ref) {
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
isShowRemoveIcon =
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
let {
|
|
16
|
+
value,
|
|
17
|
+
removeDepartment,
|
|
18
|
+
isShowRemoveIcon = false,
|
|
19
|
+
departments = []
|
|
20
|
+
} = _ref;
|
|
21
21
|
const idDepartmentMap = (0, _react.useMemo)(() => {
|
|
22
22
|
let idDepartmentMap = {};
|
|
23
23
|
departments.forEach(department => {
|
|
@@ -40,7 +40,9 @@ function SelectedDepartments(_ref) {
|
|
|
40
40
|
}
|
|
41
41
|
const department = idDepartmentMap[content];
|
|
42
42
|
if (department) {
|
|
43
|
-
const
|
|
43
|
+
const {
|
|
44
|
+
name
|
|
45
|
+
} = department;
|
|
44
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
45
47
|
className: "department mr-1",
|
|
46
48
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -56,17 +56,20 @@ class SimpleLongTextFormatter extends _react.default.Component {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
this.translateValue = () => {
|
|
59
|
-
const
|
|
59
|
+
const {
|
|
60
|
+
value
|
|
61
|
+
} = this.props;
|
|
60
62
|
if (!value) return {};
|
|
61
63
|
const valueType = Object.prototype.toString.call(value);
|
|
62
64
|
if (valueType === '[object String]') {
|
|
63
65
|
const isMarkdown = true;
|
|
64
66
|
const previewTextNeedSlice = false;
|
|
65
|
-
const
|
|
66
|
-
previewText
|
|
67
|
-
images
|
|
68
|
-
links
|
|
69
|
-
checklist
|
|
67
|
+
const {
|
|
68
|
+
previewText,
|
|
69
|
+
images,
|
|
70
|
+
links,
|
|
71
|
+
checklist
|
|
72
|
+
} = (0, _seafileEditor.getPreviewContent)(value, isMarkdown, previewTextNeedSlice);
|
|
70
73
|
const newValue = Object.assign({}, {
|
|
71
74
|
text: value,
|
|
72
75
|
preview: previewText,
|
|
@@ -139,10 +142,13 @@ class SimpleLongTextFormatter extends _react.default.Component {
|
|
|
139
142
|
this.clearClosePreviewTimer();
|
|
140
143
|
}
|
|
141
144
|
render() {
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
const {
|
|
146
|
+
isPreview
|
|
147
|
+
} = this.state;
|
|
148
|
+
const {
|
|
149
|
+
containerClassName,
|
|
150
|
+
previewClassName
|
|
151
|
+
} = this.props;
|
|
146
152
|
const className = (0, _classnames.default)('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
|
|
147
153
|
const value = this.translateValue();
|
|
148
154
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -46,9 +46,10 @@ const getPreviewContent = markdownContent => {
|
|
|
46
46
|
}
|
|
47
47
|
const hrefList = markdownContent.match(hrefReg);
|
|
48
48
|
if (hrefList) {
|
|
49
|
-
const
|
|
50
|
-
images
|
|
51
|
-
links
|
|
49
|
+
const {
|
|
50
|
+
images,
|
|
51
|
+
links
|
|
52
|
+
} = getLinks(hrefList);
|
|
52
53
|
return {
|
|
53
54
|
preview,
|
|
54
55
|
images,
|
|
@@ -14,12 +14,17 @@ class LongTextPreview extends _react.default.PureComponent {
|
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
16
16
|
this.getStyle = () => {
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
let {
|
|
18
|
+
formatterStyle
|
|
19
|
+
} = this.props;
|
|
20
|
+
let {
|
|
21
|
+
left,
|
|
22
|
+
top
|
|
23
|
+
} = formatterStyle;
|
|
24
|
+
const {
|
|
25
|
+
height,
|
|
26
|
+
opacity
|
|
27
|
+
} = this.state;
|
|
23
28
|
const width = 520;
|
|
24
29
|
const padding = 6;
|
|
25
30
|
left = left - width > 0 ? left - width - 12 : 0;
|
|
@@ -48,12 +53,15 @@ class LongTextPreview extends _react.default.PureComponent {
|
|
|
48
53
|
setTimeout(() => {
|
|
49
54
|
var _value$images;
|
|
50
55
|
if (!this.ref) return;
|
|
51
|
-
const
|
|
56
|
+
const {
|
|
57
|
+
value
|
|
58
|
+
} = this.props;
|
|
52
59
|
|
|
53
60
|
// If image is included, sets the preview height to the maximum height
|
|
54
61
|
const hasImage = (value === null || value === void 0 ? void 0 : (_value$images = value.images) === null || _value$images === void 0 ? void 0 : _value$images.length) >= 2 ? true : false;
|
|
55
|
-
let
|
|
56
|
-
domHeight
|
|
62
|
+
let {
|
|
63
|
+
height: domHeight
|
|
64
|
+
} = this.ref.getBoundingClientRect();
|
|
57
65
|
domHeight = hasImage ? 450 : domHeight;
|
|
58
66
|
this.setState({
|
|
59
67
|
height: Math.min(domHeight, 450),
|
|
@@ -62,9 +70,10 @@ class LongTextPreview extends _react.default.PureComponent {
|
|
|
62
70
|
}, 10);
|
|
63
71
|
}
|
|
64
72
|
render() {
|
|
65
|
-
const
|
|
66
|
-
className
|
|
67
|
-
value
|
|
73
|
+
const {
|
|
74
|
+
className,
|
|
75
|
+
value
|
|
76
|
+
} = this.props;
|
|
68
77
|
const markdownContent = value ? value.text : '';
|
|
69
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
79
|
className: (0, _classnames.default)('longtext-modal-dialog longtext-preview', className),
|
|
@@ -51,9 +51,10 @@ class DtableMarkdownViewer extends _react.default.PureComponent {
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
const
|
|
55
|
-
showTOC
|
|
56
|
-
markdownContent
|
|
54
|
+
const {
|
|
55
|
+
showTOC,
|
|
56
|
+
markdownContent
|
|
57
|
+
} = this.props;
|
|
57
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileEditor.MarkdownViewer, {
|
|
58
59
|
value: markdownContent,
|
|
59
60
|
isShowOutline: showTOC
|
|
@@ -13,7 +13,9 @@ var _selectEditor = _interopRequireDefault(require("../select-editor"));
|
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
const _excluded = ["value"];
|
|
15
15
|
const SingleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
16
|
-
let
|
|
16
|
+
let {
|
|
17
|
+
value: oldValue
|
|
18
|
+
} = _ref,
|
|
17
19
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
18
20
|
const value = oldValue ? [oldValue] : [];
|
|
19
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
@@ -14,11 +14,11 @@ class SingleSelectFormatter extends _react.default.PureComponent {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this.getOption = () => {
|
|
17
|
-
let
|
|
18
|
-
value
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
let {
|
|
18
|
+
value,
|
|
19
|
+
options = [],
|
|
20
|
+
fontSize
|
|
21
|
+
} = this.props;
|
|
22
22
|
let option = options.find(item => item.id === value || item.name === value);
|
|
23
23
|
if (option) {
|
|
24
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
|
|
@@ -29,9 +29,10 @@ class SingleSelectFormatter extends _react.default.PureComponent {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
const
|
|
33
|
-
containerClassName
|
|
34
|
-
value
|
|
32
|
+
const {
|
|
33
|
+
containerClassName,
|
|
34
|
+
value
|
|
35
|
+
} = this.props;
|
|
35
36
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container single-select-formatter', containerClassName);
|
|
36
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
38
|
className: classname,
|
package/lib/TabBar/Tab.js
CHANGED
|
@@ -14,14 +14,15 @@ class Tab extends React.PureComponent {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this.renderIcon = () => {
|
|
17
|
-
const
|
|
18
|
-
dot
|
|
19
|
-
badge
|
|
20
|
-
selected
|
|
21
|
-
selectedIcon
|
|
22
|
-
icon
|
|
23
|
-
title
|
|
24
|
-
prefixCls
|
|
17
|
+
const {
|
|
18
|
+
dot,
|
|
19
|
+
badge,
|
|
20
|
+
selected,
|
|
21
|
+
selectedIcon,
|
|
22
|
+
icon,
|
|
23
|
+
title,
|
|
24
|
+
prefixCls
|
|
25
|
+
} = this.props;
|
|
25
26
|
const iconRes = selected ? selectedIcon : icon;
|
|
26
27
|
const iconDom = /*#__PURE__*/React.isValidElement(iconRes) ? iconRes : /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
27
28
|
className: "".concat(prefixCls, "-image"),
|
|
@@ -52,12 +53,13 @@ class Tab extends React.PureComponent {
|
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
render() {
|
|
55
|
-
const
|
|
56
|
-
title
|
|
57
|
-
prefixCls
|
|
58
|
-
selected
|
|
59
|
-
unselectedTintColor
|
|
60
|
-
tintColor
|
|
56
|
+
const {
|
|
57
|
+
title,
|
|
58
|
+
prefixCls,
|
|
59
|
+
selected,
|
|
60
|
+
unselectedTintColor,
|
|
61
|
+
tintColor
|
|
62
|
+
} = this.props;
|
|
61
63
|
const iconColor = selected ? tintColor : unselectedTintColor;
|
|
62
64
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, this.props.dataAttrs), {}, {
|
|
63
65
|
onClick: this.onClick,
|
package/lib/TabBar/index.js
CHANGED
|
@@ -15,9 +15,10 @@ require("./index.css");
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
class Item extends React.Component {
|
|
17
17
|
render() {
|
|
18
|
-
const
|
|
19
|
-
prefixCls
|
|
20
|
-
style
|
|
18
|
+
const {
|
|
19
|
+
prefixCls,
|
|
20
|
+
style
|
|
21
|
+
} = this.props;
|
|
21
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
23
|
className: prefixCls,
|
|
23
24
|
style: style,
|
|
@@ -43,13 +44,14 @@ class AntTabBar extends React.Component {
|
|
|
43
44
|
return tabs;
|
|
44
45
|
};
|
|
45
46
|
this.renderTabBar = () => {
|
|
46
|
-
const
|
|
47
|
-
barTintColor
|
|
48
|
-
prefixCls
|
|
49
|
-
tintColor
|
|
50
|
-
unselectedTintColor
|
|
51
|
-
hidden
|
|
52
|
-
tabBarPosition
|
|
47
|
+
const {
|
|
48
|
+
barTintColor,
|
|
49
|
+
prefixCls,
|
|
50
|
+
tintColor,
|
|
51
|
+
unselectedTintColor,
|
|
52
|
+
hidden,
|
|
53
|
+
tabBarPosition
|
|
54
|
+
} = this.props;
|
|
53
55
|
const tabsData = this.getTabs();
|
|
54
56
|
const content = Array.isArray(tabsData) ? tabsData.map((cProps, index) => {
|
|
55
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tab.default, {
|
|
@@ -80,14 +82,15 @@ class AntTabBar extends React.Component {
|
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
84
|
render() {
|
|
83
|
-
const
|
|
84
|
-
prefixCls
|
|
85
|
-
children
|
|
86
|
-
animated
|
|
87
|
-
swipeable
|
|
88
|
-
noRenderContent
|
|
89
|
-
prerenderingSiblingsNumber
|
|
90
|
-
tabBarPosition
|
|
85
|
+
const {
|
|
86
|
+
prefixCls,
|
|
87
|
+
children,
|
|
88
|
+
animated,
|
|
89
|
+
swipeable,
|
|
90
|
+
noRenderContent,
|
|
91
|
+
prerenderingSiblingsNumber,
|
|
92
|
+
tabBarPosition
|
|
93
|
+
} = this.props;
|
|
91
94
|
const tabs = this.getTabs();
|
|
92
95
|
let activeIndex = 0;
|
|
93
96
|
if (Array.isArray(tabs)) {
|
package/lib/Tabs/index.js
CHANGED
|
@@ -20,7 +20,9 @@ class Tabs extends React.PureComponent {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.renderTabBar = props => {
|
|
23
|
-
const
|
|
23
|
+
const {
|
|
24
|
+
renderTab
|
|
25
|
+
} = this.props;
|
|
24
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultTabBar, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
25
27
|
renderTab: renderTab
|
|
26
28
|
}));
|
package/lib/TextEditor/index.js
CHANGED
|
@@ -16,7 +16,9 @@ class TextEditor extends _react.Component {
|
|
|
16
16
|
constructor(props) {
|
|
17
17
|
super(props);
|
|
18
18
|
this.getValue = () => {
|
|
19
|
-
const
|
|
19
|
+
const {
|
|
20
|
+
value
|
|
21
|
+
} = this.state;
|
|
20
22
|
const text = (0, _utils.getTrimmedString)(value) || null;
|
|
21
23
|
return text;
|
|
22
24
|
};
|
|
@@ -57,10 +59,11 @@ class TextEditor extends _react.Component {
|
|
|
57
59
|
});
|
|
58
60
|
};
|
|
59
61
|
this.onInputKeyDown = e => {
|
|
60
|
-
const
|
|
61
|
-
selectionStart
|
|
62
|
-
selectionEnd
|
|
63
|
-
value
|
|
62
|
+
const {
|
|
63
|
+
selectionStart,
|
|
64
|
+
selectionEnd,
|
|
65
|
+
value
|
|
66
|
+
} = e.currentTarget;
|
|
64
67
|
if (e.keyCode === _constants.KeyCodes.Enter) {
|
|
65
68
|
e.preventDefault();
|
|
66
69
|
this.onBlur();
|
|
@@ -104,10 +107,13 @@ class TextEditor extends _react.Component {
|
|
|
104
107
|
};
|
|
105
108
|
}
|
|
106
109
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
107
|
-
const
|
|
108
|
-
oldValue
|
|
109
|
-
column
|
|
110
|
-
|
|
110
|
+
const {
|
|
111
|
+
value: oldValue,
|
|
112
|
+
column
|
|
113
|
+
} = this.props;
|
|
114
|
+
const {
|
|
115
|
+
value: newValue
|
|
116
|
+
} = nextProps;
|
|
111
117
|
if ((0, _cellComparer.isCellValueChanged)(oldValue, newValue, column.type)) {
|
|
112
118
|
this.setState({
|
|
113
119
|
value: newValue || ''
|
|
@@ -115,11 +121,14 @@ class TextEditor extends _react.Component {
|
|
|
115
121
|
}
|
|
116
122
|
}
|
|
117
123
|
render() {
|
|
118
|
-
const
|
|
119
|
-
column
|
|
120
|
-
className
|
|
121
|
-
placeholder
|
|
122
|
-
|
|
124
|
+
const {
|
|
125
|
+
column,
|
|
126
|
+
className,
|
|
127
|
+
placeholder
|
|
128
|
+
} = this.props;
|
|
129
|
+
const {
|
|
130
|
+
value
|
|
131
|
+
} = this.state;
|
|
123
132
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
124
133
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
125
134
|
type: "text",
|
|
@@ -23,9 +23,10 @@ class TextFormatter extends _react.default.Component {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const
|
|
27
|
-
containerClassName
|
|
28
|
-
value
|
|
26
|
+
const {
|
|
27
|
+
containerClassName,
|
|
28
|
+
value
|
|
29
|
+
} = this.props;
|
|
29
30
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container text-formatter', containerClassName);
|
|
30
31
|
const formattedValue = this.getFormattedValue(value);
|
|
31
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|