dtable-ui-component 5.0.9-beta.2 → 5.0.9-beta.4

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.
Files changed (110) hide show
  1. package/lib/AutoNumberFormatter/index.js +3 -5
  2. package/lib/ButtonFormatter/index.js +5 -9
  3. package/lib/CTimeFormatter/index.js +3 -5
  4. package/lib/CheckboxEditor/index.js +12 -15
  5. package/lib/CheckboxFormatter/index.js +5 -7
  6. package/lib/CollaboratorEditor/index.js +37 -46
  7. package/lib/CollaboratorEditor/mb-collaborator-editor-popover/index.js +47 -60
  8. package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +31 -37
  9. package/lib/CollaboratorFormatter/index.js +7 -8
  10. package/lib/CollaboratorItem/index.js +16 -21
  11. package/lib/CollapsibleSettingLayout/index.js +14 -18
  12. package/lib/CreatorFormatter/index.js +7 -8
  13. package/lib/DTableCommonAddTool/index.js +7 -10
  14. package/lib/DTableCustomizeCollaboratorSelect/index.js +32 -38
  15. package/lib/DTableCustomizeSelect/index.js +44 -51
  16. package/lib/DTableFiltersPopover/index.js +41 -46
  17. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +51 -67
  18. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +49 -64
  19. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +32 -38
  20. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +34 -42
  21. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +31 -35
  22. package/lib/DTableFiltersPopover/widgets/filter-item.js +76 -92
  23. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +17 -19
  24. package/lib/DTableFiltersPopover/widgets/rate-item.js +9 -12
  25. package/lib/DTablePopover/index.js +6 -9
  26. package/lib/DTableRadio/index.js +17 -20
  27. package/lib/DTableSearchInput/index.js +18 -22
  28. package/lib/DTableSelect/dtable-select-label.js +7 -12
  29. package/lib/DTableSelect/index.js +1 -2
  30. package/lib/DTableSelect/utils.js +13 -26
  31. package/lib/DTableSwitch/index.js +16 -20
  32. package/lib/DateEditor/index.js +36 -46
  33. package/lib/DateEditor/mb-date-editor-popover/index.js +63 -80
  34. package/lib/DateEditor/pc-date-editor-popover.js +22 -25
  35. package/lib/DateFormatter/index.js +3 -5
  36. package/lib/Department-editor/department-multiple-select/index.js +42 -49
  37. package/lib/Department-editor/department-single-select.js +54 -70
  38. package/lib/Department-editor/index.js +14 -18
  39. package/lib/Department-editor/selected-departments/index.js +44 -54
  40. package/lib/DepartmentSelectFilter/index.js +1 -8
  41. package/lib/DepartmentSingleSelectFormatter/index.js +9 -13
  42. package/lib/DigitalSignFormatter/index.js +17 -21
  43. package/lib/DurationFormatter/index.js +5 -7
  44. package/lib/EditEditorButton/index.js +3 -5
  45. package/lib/EmailFormatter/index.js +3 -5
  46. package/lib/FieldDisplaySetting/field-item.js +19 -25
  47. package/lib/FieldDisplaySetting/index.js +38 -47
  48. package/lib/FileEditor/index.js +7 -10
  49. package/lib/FileFormatter/index.js +15 -18
  50. package/lib/FileItemFormatter/index.js +1 -2
  51. package/lib/FileUploader/index.js +1 -2
  52. package/lib/FormulaFormatter/index.js +14 -21
  53. package/lib/GeolocationFormatter/index.js +6 -8
  54. package/lib/HtmlLongTextFormatter/index.js +1 -2
  55. package/lib/ImageFormatter/images-lazy-load.js +6 -7
  56. package/lib/ImageFormatter/index.js +29 -35
  57. package/lib/ImagePreviewerLightbox/index.js +8 -12
  58. package/lib/LastModifierFormatter/index.js +7 -8
  59. package/lib/LinkEditor/index.js +32 -38
  60. package/lib/LinkEditor/link-editor-option.js +20 -25
  61. package/lib/LinkEditor/mb-link-editor-popover/index.js +41 -53
  62. package/lib/LinkEditor/pc-link-editor-popover/index.js +33 -41
  63. package/lib/LinkFormatter/index.js +10 -13
  64. package/lib/Loading/index.js +1 -2
  65. package/lib/LongTextFormatter/index.js +2 -3
  66. package/lib/MBEditorHeader/index.js +14 -19
  67. package/lib/MTimeFormatter/index.js +3 -5
  68. package/lib/MultipleSelectEditor/index.js +37 -43
  69. package/lib/MultipleSelectFormatter/index.js +7 -8
  70. package/lib/NotificationPopover/index.js +32 -43
  71. package/lib/NumberEditor/index.js +20 -24
  72. package/lib/NumberFormatter/index.js +3 -5
  73. package/lib/RadioGroup/index.css +48 -0
  74. package/lib/RadioGroup/index.js +58 -0
  75. package/lib/RateFormatter/index.js +6 -7
  76. package/lib/RoleStatusEditor/index.js +30 -35
  77. package/lib/RowExpandEmailFormatter/index.js +8 -11
  78. package/lib/RowExpandFileFormatter/index.js +13 -14
  79. package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +36 -43
  80. package/lib/RowExpandFormatter/index.js +112 -129
  81. package/lib/RowExpandFormulaFormatter/index.js +29 -37
  82. package/lib/RowExpandImageFormatter/index.js +26 -29
  83. package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +39 -47
  84. package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +1 -2
  85. package/lib/RowExpandLinkFormatter/index.js +67 -70
  86. package/lib/RowExpandRateFormatter/index.js +6 -7
  87. package/lib/RowExpandUrlFormatter/index.js +8 -11
  88. package/lib/SelectItem/index.js +3 -5
  89. package/lib/SelectOptionGroup/index.js +31 -38
  90. package/lib/SelectOptionGroup/option.js +3 -5
  91. package/lib/SimpleLongTextFormatter/index.js +30 -39
  92. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +8 -11
  93. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +2 -3
  94. package/lib/SingleSelectEditor/index.js +34 -42
  95. package/lib/SingleSelectFormatter/index.js +4 -6
  96. package/lib/TextEditor/index.js +1 -2
  97. package/lib/TextFormatter/index.js +3 -5
  98. package/lib/UrlFormatter/index.js +3 -5
  99. package/lib/common/delete-tip.js +19 -27
  100. package/lib/formatterConfig/base-formatter-config.js +22 -23
  101. package/lib/formatterConfig/index.js +2 -3
  102. package/lib/index.js +8 -1
  103. package/lib/select-editor/mb-select-editor-popover/index.js +64 -84
  104. package/lib/select-editor/pc-select-editor-popover/index.js +39 -50
  105. package/lib/select-editor/select-editor-option.js +19 -24
  106. package/lib/toaster/alert.js +16 -25
  107. package/lib/toaster/toast.js +24 -28
  108. package/lib/toaster/toastManager.js +13 -16
  109. package/lib/toaster/toaster.js +1 -2
  110. package/package.json +1 -1
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _jsxRuntime = require("react/jsx-runtime");
10
9
  class LinkEditorOption extends _react.default.Component {
11
10
  constructor() {
12
11
  super(...arguments);
@@ -62,31 +61,27 @@ class LinkEditorOption extends _react.default.Component {
62
61
  let optionStyle = this.getOptionStyle();
63
62
  let optionNameStyle = this.getOptionNameStyle();
64
63
  let operationStyle = this.getOperationStyle();
65
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
64
+ return /*#__PURE__*/_react.default.createElement("div", {
66
65
  className: "dtable-ui link-option-item",
67
- style: containerStyle,
68
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
69
- className: "option-info",
70
- style: optionStyle,
71
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
72
- className: "option-name",
73
- style: optionNameStyle,
74
- title: option.name,
75
- children: option.name
76
- })
77
- }), isShowRemoveIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
78
- className: "option-remove",
79
- style: operationStyle,
80
- onClick: this.onDeleteOption,
81
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
82
- className: "dtable-font dtable-icon-fork-number",
83
- style: {
84
- fontSize: '12px',
85
- lineHeight: '20px'
86
- }
87
- })
88
- })]
89
- });
66
+ style: containerStyle
67
+ }, /*#__PURE__*/_react.default.createElement("div", {
68
+ className: "option-info",
69
+ style: optionStyle
70
+ }, /*#__PURE__*/_react.default.createElement("div", {
71
+ className: "option-name",
72
+ style: optionNameStyle,
73
+ title: option.name
74
+ }, option.name)), isShowRemoveIcon && /*#__PURE__*/_react.default.createElement("div", {
75
+ className: "option-remove",
76
+ style: operationStyle,
77
+ onClick: this.onDeleteOption
78
+ }, /*#__PURE__*/_react.default.createElement("i", {
79
+ className: "dtable-font dtable-icon-fork-number",
80
+ style: {
81
+ fontSize: '12px',
82
+ lineHeight: '20px'
83
+ }
84
+ })));
90
85
  }
91
86
  }
92
87
  LinkEditorOption.defaultProps = {
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _lang = require("../../lang");
10
10
  var _MBEditorHeader = _interopRequireDefault(require("../../MBEditorHeader"));
11
11
  require("./index.css");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
12
  class MBLinkEditorPopover extends _react.default.Component {
14
13
  constructor(props) {
15
14
  super(props);
@@ -69,20 +68,18 @@ class MBLinkEditorPopover extends _react.default.Component {
69
68
  } = this.props;
70
69
  return options.map((option, index) => {
71
70
  let isSelect = value.some(item => item === option.id);
72
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
71
+ return /*#__PURE__*/_react.default.createElement("div", {
73
72
  className: "mb-link-option-item",
74
- onMouseDown: this.onSelectOption.bind(this, option),
75
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
76
- className: "mb-option-info",
77
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
78
- className: "option-name",
79
- title: option.name,
80
- children: option.name
81
- })
82
- }), isSelect && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
83
- className: "mb-option-checked dtable-font dtable-icon-check-mark"
84
- })]
85
- }, index);
73
+ key: index,
74
+ onMouseDown: this.onSelectOption.bind(this, option)
75
+ }, /*#__PURE__*/_react.default.createElement("span", {
76
+ className: "mb-option-info"
77
+ }, /*#__PURE__*/_react.default.createElement("span", {
78
+ className: "option-name",
79
+ title: option.name
80
+ }, option.name)), isSelect && /*#__PURE__*/_react.default.createElement("i", {
81
+ className: "mb-option-checked dtable-font dtable-icon-check-mark"
82
+ }));
86
83
  });
87
84
  };
88
85
  this.setEditorPopover = editorPopover => {
@@ -107,47 +104,38 @@ class MBLinkEditorPopover extends _react.default.Component {
107
104
  searchVal
108
105
  } = this.state;
109
106
  let filterOptions = this.getFilterOptions();
110
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
107
+ return /*#__PURE__*/_react.default.createElement("div", {
111
108
  ref: this.setEditorPopover,
112
109
  className: "dtable-ui-mb-editor-popover mb-link-editor-popover",
113
- onClick: this.onContainerClick,
114
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_MBEditorHeader.default, {
115
- title: column.name,
116
- leftContent: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
117
- className: "dtable-font dtable-icon-return"
118
- }),
119
- rightContent: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
120
- children: (0, _lang.getLocale)('Done')
121
- }),
122
- onLeftClick: this.props.onClosePopover,
123
- onRightClick: this.props.onClosePopover
124
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
125
- className: "dtable-ui-mb-editor-body dtable-ui-mb-link-editor-body",
126
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
127
- className: "mb-search-link-items",
128
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
129
- className: "form-control",
130
- type: "text",
131
- placeholder: (0, _lang.getLocale)('Search_option'),
132
- value: searchVal,
133
- onChange: this.onChangeSearch,
134
- onClick: this.onInputClick
135
- })
136
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
137
- className: "mb-link-container",
138
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
139
- className: "title",
140
- children: (0, _lang.getLocale)('Choose_an_option')
141
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
142
- className: "content",
143
- children: [filterOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
144
- className: "search-result-none",
145
- children: (0, _lang.getLocale)('No_options_available')
146
- }), filterOptions.length > 0 && this.renderFilteredOptions(filterOptions)]
147
- })]
148
- })]
149
- })]
150
- });
110
+ onClick: this.onContainerClick
111
+ }, /*#__PURE__*/_react.default.createElement(_MBEditorHeader.default, {
112
+ title: column.name,
113
+ leftContent: /*#__PURE__*/_react.default.createElement("i", {
114
+ className: "dtable-font dtable-icon-return"
115
+ }),
116
+ rightContent: /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Done')),
117
+ onLeftClick: this.props.onClosePopover,
118
+ onRightClick: this.props.onClosePopover
119
+ }), /*#__PURE__*/_react.default.createElement("div", {
120
+ className: "dtable-ui-mb-editor-body dtable-ui-mb-link-editor-body"
121
+ }, /*#__PURE__*/_react.default.createElement("div", {
122
+ className: "mb-search-link-items"
123
+ }, /*#__PURE__*/_react.default.createElement("input", {
124
+ className: "form-control",
125
+ type: "text",
126
+ placeholder: (0, _lang.getLocale)('Search_option'),
127
+ value: searchVal,
128
+ onChange: this.onChangeSearch,
129
+ onClick: this.onInputClick
130
+ })), /*#__PURE__*/_react.default.createElement("div", {
131
+ className: "mb-link-container"
132
+ }, /*#__PURE__*/_react.default.createElement("div", {
133
+ className: "title"
134
+ }, (0, _lang.getLocale)('Choose_an_option')), /*#__PURE__*/_react.default.createElement("div", {
135
+ className: "content"
136
+ }, filterOptions.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
137
+ className: "search-result-none"
138
+ }, (0, _lang.getLocale)('No_options_available')), filterOptions.length > 0 && this.renderFilteredOptions(filterOptions)))));
151
139
  }
152
140
  }
153
141
  MBLinkEditorPopover.defaultProps = {
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _lang = require("../../lang");
10
10
  require("./index.css");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
11
  class PCLinkEditorPopover extends _react.default.Component {
13
12
  constructor(props) {
14
13
  super(props);
@@ -55,47 +54,40 @@ class PCLinkEditorPopover extends _react.default.Component {
55
54
  }, {
56
55
  position: 'absolute'
57
56
  });
58
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
57
+ return /*#__PURE__*/_react.default.createElement("div", {
59
58
  className: "dtable-ui-editor-popover dtable-ui-link-editor-popover",
60
- style: popoverStyle,
61
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
- className: "link-options-search",
63
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
64
- className: "form-control",
65
- value: searchValue,
66
- onChange: this.onValueChanged,
67
- onClick: this.onInputClick,
68
- placeholder: (0, _lang.getLocale)('Search_option')
69
- })
70
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
71
- className: "link-options-container",
72
- children: [options.length > 0 && options.map((option, index) => {
73
- let isSelect = selectedOptions.some(selectedOption => {
74
- return selectedOption.id === option.id;
75
- });
76
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
77
- className: "link-option-item",
78
- onClick: this.onOptionItemToggle.bind(this, option),
79
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
80
- className: "option-info",
81
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
82
- className: "option-name",
83
- title: option.name,
84
- children: option.name
85
- })
86
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
87
- className: "option-checked",
88
- children: isSelect && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
89
- className: "dtable-font dtable-icon-check-mark"
90
- })
91
- })]
92
- }, index);
93
- }), options.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
94
- className: "link-option-null",
95
- children: (0, _lang.getLocale)('No_options_available')
96
- })]
97
- })]
98
- });
59
+ style: popoverStyle
60
+ }, /*#__PURE__*/_react.default.createElement("div", {
61
+ className: "link-options-search"
62
+ }, /*#__PURE__*/_react.default.createElement("input", {
63
+ className: "form-control",
64
+ value: searchValue,
65
+ onChange: this.onValueChanged,
66
+ onClick: this.onInputClick,
67
+ placeholder: (0, _lang.getLocale)('Search_option')
68
+ })), /*#__PURE__*/_react.default.createElement("div", {
69
+ className: "link-options-container"
70
+ }, options.length > 0 && options.map((option, index) => {
71
+ let isSelect = selectedOptions.some(selectedOption => {
72
+ return selectedOption.id === option.id;
73
+ });
74
+ return /*#__PURE__*/_react.default.createElement("div", {
75
+ key: index,
76
+ className: "link-option-item",
77
+ onClick: this.onOptionItemToggle.bind(this, option)
78
+ }, /*#__PURE__*/_react.default.createElement("div", {
79
+ className: "option-info"
80
+ }, /*#__PURE__*/_react.default.createElement("div", {
81
+ className: "option-name",
82
+ title: option.name
83
+ }, option.name)), /*#__PURE__*/_react.default.createElement("div", {
84
+ className: "option-checked"
85
+ }, isSelect && /*#__PURE__*/_react.default.createElement("i", {
86
+ className: "dtable-font dtable-icon-check-mark"
87
+ })));
88
+ }), options.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
89
+ className: "link-option-null"
90
+ }, (0, _lang.getLocale)('No_options_available'))));
99
91
  }
100
92
  }
101
93
  PCLinkEditorPopover.defaultProps = {
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _dtableUtils = require("dtable-utils");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
11
  // link value is get form parant's interface
13
12
  class LinkFormatter extends _react.default.Component {
14
13
  constructor(props) {
@@ -55,15 +54,14 @@ class LinkFormatter extends _react.default.Component {
55
54
  display_column_key: displayColumnKey
56
55
  } = column.data;
57
56
  let displayValue = this.getDisplayValue(linkedTable, row, displayColumnKey);
58
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
57
+ return /*#__PURE__*/_react.default.createElement("div", {
58
+ key: index,
59
59
  className: "link-item",
60
- onClick: this.expandLinkedTableRow.bind(this, row),
61
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
- className: "link-name",
63
- title: displayValue,
64
- children: displayValue
65
- })
66
- }, index);
60
+ onClick: this.expandLinkedTableRow.bind(this, row)
61
+ }, /*#__PURE__*/_react.default.createElement("div", {
62
+ className: "link-name",
63
+ title: displayValue
64
+ }, displayValue));
67
65
  });
68
66
  return result;
69
67
  }
@@ -116,10 +114,9 @@ class LinkFormatter extends _react.default.Component {
116
114
  } = this.props;
117
115
  const classname = (0, _classnames.default)('dtable-ui cell-formatter-container link-formatter', containerClassName);
118
116
  let displayValues = this.getDisplayValues();
119
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
120
- className: classname,
121
- children: displayValues
122
- });
117
+ return /*#__PURE__*/_react.default.createElement("div", {
118
+ className: classname
119
+ }, displayValues);
123
120
  }
124
121
  }
125
122
  LinkFormatter.defaultProps = {
@@ -7,9 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = Loading;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.css");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
10
  function Loading() {
12
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
11
+ return /*#__PURE__*/_react.default.createElement("span", {
13
12
  className: "loading-icon loading-tip"
14
13
  });
15
14
  }
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _HtmlLongTextFormatter = _interopRequireDefault(require("../HtmlLongTextFormatter"));
10
10
  var _SimpleLongTextFormatter = _interopRequireDefault(require("../SimpleLongTextFormatter"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
11
  function LongTextFormatter(props) {
13
12
  const {
14
13
  isSample,
@@ -16,12 +15,12 @@ function LongTextFormatter(props) {
16
15
  containerClassName
17
16
  } = props;
18
17
  if (isSample) {
19
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SimpleLongTextFormatter.default, {
18
+ return /*#__PURE__*/_react.default.createElement(_SimpleLongTextFormatter.default, {
20
19
  value: value,
21
20
  containerClassName: containerClassName
22
21
  });
23
22
  }
24
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HtmlLongTextFormatter.default, {
23
+ return /*#__PURE__*/_react.default.createElement(_HtmlLongTextFormatter.default, {
25
24
  value: value,
26
25
  containerClassName: containerClassName
27
26
  });
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _jsxRuntime = require("react/jsx-runtime");
10
9
  class MBEditorHeader extends _react.default.Component {
11
10
  render() {
12
11
  let {
@@ -17,24 +16,20 @@ class MBEditorHeader extends _react.default.Component {
17
16
  onLeftClick,
18
17
  onRightClick
19
18
  } = this.props;
20
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
21
- className: "dtable-ui-mb-editor-header ".concat(titleClass ? titleClass : ''),
22
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
23
- className: "editor-header-left-content",
24
- onClick: onLeftClick,
25
- children: leftContent
26
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
27
- className: "editor-header-title",
28
- children: title
29
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
30
- className: "editor-header-right-content",
31
- onClick: onRightClick,
32
- style: {
33
- color: '#f09f3f'
34
- },
35
- children: rightContent
36
- })]
37
- });
19
+ return /*#__PURE__*/_react.default.createElement("div", {
20
+ className: "dtable-ui-mb-editor-header ".concat(titleClass ? titleClass : '')
21
+ }, /*#__PURE__*/_react.default.createElement("span", {
22
+ className: "editor-header-left-content",
23
+ onClick: onLeftClick
24
+ }, leftContent), /*#__PURE__*/_react.default.createElement("span", {
25
+ className: "editor-header-title"
26
+ }, title), /*#__PURE__*/_react.default.createElement("span", {
27
+ className: "editor-header-right-content",
28
+ onClick: onRightClick,
29
+ style: {
30
+ color: '#f09f3f'
31
+ }
32
+ }, rightContent));
38
33
  }
39
34
  }
40
35
  var _default = exports.default = MBEditorHeader;
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _dayjs = _interopRequireDefault(require("dayjs"));
11
11
  require("./index.css");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
12
  class MTimeFormatter extends _react.default.Component {
14
13
  constructor() {
15
14
  super(...arguments);
@@ -26,10 +25,9 @@ class MTimeFormatter extends _react.default.Component {
26
25
  if (date) {
27
26
  date = this.formatDate(date);
28
27
  }
29
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
30
- className: classname,
31
- children: date
32
- });
28
+ return /*#__PURE__*/_react.default.createElement("div", {
29
+ className: classname
30
+ }, date);
33
31
  }
34
32
  }
35
33
  MTimeFormatter.defaultProps = {
@@ -12,7 +12,6 @@ var _lang = require("../lang");
12
12
  var _EditEditorButton = _interopRequireDefault(require("../EditEditorButton"));
13
13
  var _selectEditor = require("../select-editor");
14
14
  require("./index.css");
15
- var _jsxRuntime = require("react/jsx-runtime");
16
15
  class MultipleSelectEditor extends _react.default.Component {
17
16
  constructor(props) {
18
17
  super(props);
@@ -142,49 +141,44 @@ class MultipleSelectEditor extends _react.default.Component {
142
141
  } = this.state;
143
142
  let options = this.options;
144
143
  let selectedOptions = this.getFormattedOptions();
145
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
144
+ return /*#__PURE__*/_react.default.createElement("div", {
146
145
  ref: this.setEditorContainerRef,
147
- className: "cell-editor dtable-ui-multiple-select-editor",
148
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
149
- ref: this.setEditorRef,
150
- className: "dtable-ui-select-editor-container",
151
- onClick: this.onAddOptionToggle,
152
- children: [selectedOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditEditorButton.default, {
153
- text: (0, _lang.getLocale)('Add_an_option')
154
- }), selectedOptions.length !== 0 && selectedOptions.map(option => {
155
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.SelectEditorOption, {
156
- option: option,
157
- isShowRemoveIcon: true,
158
- onDeleteSelectOption: this.onDeleteOption
159
- }, option.id);
160
- })]
161
- }), isPopoverShow && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
162
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
163
- query: "(min-width: 768px)",
164
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.PCSelectEditorPopover, {
165
- popoverPosition: popoverPosition,
166
- options: options,
167
- selectedOptions: selectedOptions,
168
- onOptionItemToggle: this.onOptionItemToggle,
169
- isSupportNewOption: this.props.isSupportNewOption,
170
- onAddNewOption: this.onAddNewOption
171
- })
172
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
173
- query: "(max-width: 767.8px)",
174
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.MBSelectEditorPopover, {
175
- isReadOnly: this.props.isReadOnly,
176
- value: this.state.newValue,
177
- column: this.props.column,
178
- options: options,
179
- onOptionItemToggle: this.onOptionItemToggle,
180
- isShowRemoveIcon: true,
181
- isSupportNewOption: this.props.isSupportNewOption,
182
- onAddNewOption: this.onAddNewOption,
183
- onClosePopover: this.onClosePopover
184
- })
185
- })]
186
- })]
187
- });
146
+ className: "cell-editor dtable-ui-multiple-select-editor"
147
+ }, /*#__PURE__*/_react.default.createElement("div", {
148
+ ref: this.setEditorRef,
149
+ className: "dtable-ui-select-editor-container",
150
+ onClick: this.onAddOptionToggle
151
+ }, selectedOptions.length === 0 && /*#__PURE__*/_react.default.createElement(_EditEditorButton.default, {
152
+ text: (0, _lang.getLocale)('Add_an_option')
153
+ }), selectedOptions.length !== 0 && selectedOptions.map(option => {
154
+ return /*#__PURE__*/_react.default.createElement(_selectEditor.SelectEditorOption, {
155
+ key: option.id,
156
+ option: option,
157
+ isShowRemoveIcon: true,
158
+ onDeleteSelectOption: this.onDeleteOption
159
+ });
160
+ })), isPopoverShow && /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
161
+ query: "(min-width: 768px)"
162
+ }, /*#__PURE__*/_react.default.createElement(_selectEditor.PCSelectEditorPopover, {
163
+ popoverPosition: popoverPosition,
164
+ options: options,
165
+ selectedOptions: selectedOptions,
166
+ onOptionItemToggle: this.onOptionItemToggle,
167
+ isSupportNewOption: this.props.isSupportNewOption,
168
+ onAddNewOption: this.onAddNewOption
169
+ })), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
170
+ query: "(max-width: 767.8px)"
171
+ }, /*#__PURE__*/_react.default.createElement(_selectEditor.MBSelectEditorPopover, {
172
+ isReadOnly: this.props.isReadOnly,
173
+ value: this.state.newValue,
174
+ column: this.props.column,
175
+ options: options,
176
+ onOptionItemToggle: this.onOptionItemToggle,
177
+ isShowRemoveIcon: true,
178
+ isSupportNewOption: this.props.isSupportNewOption,
179
+ onAddNewOption: this.onAddNewOption,
180
+ onClosePopover: this.onClosePopover
181
+ }))));
188
182
  }
189
183
  }
190
184
  MultipleSelectEditor.defaultProps = {
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _SelectItem = _interopRequireDefault(require("../SelectItem"));
11
11
  require("./index.css");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
12
  class MultipleSelectFormatter extends _react.default.PureComponent {
14
13
  constructor() {
15
14
  super(...arguments);
@@ -22,9 +21,10 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
22
21
  let selectedOptions = options.filter(option => value.includes(option.id) || value.includes(option.name));
23
22
  if (selectedOptions.length === 0) return [];
24
23
  return selectedOptions.map(option => {
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
24
+ return /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
25
+ key: "multiple-".concat(option.id),
26
26
  option: option
27
- }, "multiple-".concat(option.id));
27
+ });
28
28
  });
29
29
  };
30
30
  }
@@ -35,15 +35,14 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
35
35
  } = this.props;
36
36
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container multiple-select-formatter', containerClassName);
37
37
  if (!value || Array.isArray(value) && value.length === 0) {
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
38
+ return /*#__PURE__*/_react.default.createElement("div", {
39
39
  className: classname
40
40
  });
41
41
  }
42
42
  let options = this.getOptions();
43
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
44
- className: classname,
45
- children: options
46
- });
43
+ return /*#__PURE__*/_react.default.createElement("div", {
44
+ className: classname
45
+ }, options);
47
46
  }
48
47
  }
49
48
  MultipleSelectFormatter.defaultProps = {