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

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 (109) hide show
  1. package/lib/AutoNumberFormatter/index.js +5 -3
  2. package/lib/ButtonFormatter/index.js +9 -5
  3. package/lib/CTimeFormatter/index.js +5 -3
  4. package/lib/CheckboxEditor/index.js +15 -12
  5. package/lib/CheckboxFormatter/index.js +7 -5
  6. package/lib/CollaboratorEditor/index.js +46 -37
  7. package/lib/CollaboratorEditor/mb-collaborator-editor-popover/index.js +60 -47
  8. package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +37 -31
  9. package/lib/CollaboratorFormatter/index.js +8 -7
  10. package/lib/CollaboratorItem/index.js +21 -16
  11. package/lib/CollapsibleSettingLayout/index.css +22 -0
  12. package/lib/CollapsibleSettingLayout/index.js +36 -0
  13. package/lib/CreatorFormatter/index.js +8 -7
  14. package/lib/DTableCommonAddTool/index.js +10 -7
  15. package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
  16. package/lib/DTableCustomizeSelect/index.js +51 -44
  17. package/lib/DTableFiltersPopover/index.js +46 -41
  18. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +67 -51
  19. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
  20. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +38 -32
  21. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +42 -34
  22. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
  23. package/lib/DTableFiltersPopover/widgets/filter-item.js +92 -76
  24. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +19 -17
  25. package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
  26. package/lib/DTablePopover/index.js +9 -6
  27. package/lib/DTableRadio/index.js +20 -17
  28. package/lib/DTableSearchInput/index.js +22 -18
  29. package/lib/DTableSelect/dtable-select-label.js +12 -7
  30. package/lib/DTableSelect/index.js +2 -1
  31. package/lib/DTableSelect/utils.js +26 -13
  32. package/lib/DTableSwitch/index.js +20 -16
  33. package/lib/DateEditor/index.js +46 -36
  34. package/lib/DateEditor/mb-date-editor-popover/index.js +80 -63
  35. package/lib/DateEditor/pc-date-editor-popover.js +25 -22
  36. package/lib/DateFormatter/index.js +5 -3
  37. package/lib/Department-editor/department-multiple-select/index.js +49 -42
  38. package/lib/Department-editor/department-single-select.js +70 -54
  39. package/lib/Department-editor/index.js +18 -14
  40. package/lib/Department-editor/selected-departments/index.js +54 -44
  41. package/lib/DepartmentSelectFilter/index.js +8 -1
  42. package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
  43. package/lib/DigitalSignFormatter/index.js +21 -17
  44. package/lib/DurationFormatter/index.js +7 -5
  45. package/lib/EditEditorButton/index.js +5 -3
  46. package/lib/EmailFormatter/index.js +5 -3
  47. package/lib/FieldDisplaySetting/field-item.js +25 -19
  48. package/lib/FieldDisplaySetting/index.js +47 -38
  49. package/lib/FileEditor/index.js +10 -7
  50. package/lib/FileFormatter/index.js +18 -15
  51. package/lib/FileItemFormatter/index.js +2 -1
  52. package/lib/FileUploader/index.js +2 -1
  53. package/lib/FormulaFormatter/index.js +21 -14
  54. package/lib/GeolocationFormatter/index.js +8 -6
  55. package/lib/HtmlLongTextFormatter/index.js +2 -1
  56. package/lib/ImageFormatter/images-lazy-load.js +7 -6
  57. package/lib/ImageFormatter/index.js +35 -29
  58. package/lib/ImagePreviewerLightbox/index.js +12 -8
  59. package/lib/LastModifierFormatter/index.js +8 -7
  60. package/lib/LinkEditor/index.js +38 -32
  61. package/lib/LinkEditor/link-editor-option.js +25 -20
  62. package/lib/LinkEditor/mb-link-editor-popover/index.js +53 -41
  63. package/lib/LinkEditor/pc-link-editor-popover/index.js +41 -33
  64. package/lib/LinkFormatter/index.js +13 -10
  65. package/lib/Loading/index.js +2 -1
  66. package/lib/LongTextFormatter/index.js +3 -2
  67. package/lib/MBEditorHeader/index.js +19 -14
  68. package/lib/MTimeFormatter/index.js +5 -3
  69. package/lib/MultipleSelectEditor/index.js +43 -37
  70. package/lib/MultipleSelectFormatter/index.js +8 -7
  71. package/lib/NotificationPopover/index.js +43 -32
  72. package/lib/NumberEditor/index.js +24 -20
  73. package/lib/NumberFormatter/index.js +5 -3
  74. package/lib/RateFormatter/index.js +7 -6
  75. package/lib/RoleStatusEditor/index.js +35 -30
  76. package/lib/RowExpandEmailFormatter/index.js +11 -8
  77. package/lib/RowExpandFileFormatter/index.js +14 -13
  78. package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +43 -36
  79. package/lib/RowExpandFormatter/index.js +129 -112
  80. package/lib/RowExpandFormulaFormatter/index.js +37 -29
  81. package/lib/RowExpandImageFormatter/index.js +29 -26
  82. package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +47 -39
  83. package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +2 -1
  84. package/lib/RowExpandLinkFormatter/index.js +70 -67
  85. package/lib/RowExpandRateFormatter/index.js +7 -6
  86. package/lib/RowExpandUrlFormatter/index.js +11 -8
  87. package/lib/SelectItem/index.js +5 -3
  88. package/lib/SelectOptionGroup/index.js +38 -31
  89. package/lib/SelectOptionGroup/option.js +5 -3
  90. package/lib/SimpleLongTextFormatter/index.js +39 -30
  91. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
  92. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
  93. package/lib/SingleSelectEditor/index.js +42 -34
  94. package/lib/SingleSelectFormatter/index.js +6 -4
  95. package/lib/TextEditor/index.js +2 -1
  96. package/lib/TextFormatter/index.js +5 -3
  97. package/lib/UrlFormatter/index.js +5 -3
  98. package/lib/common/delete-tip.js +27 -19
  99. package/lib/formatterConfig/base-formatter-config.js +23 -22
  100. package/lib/formatterConfig/index.js +3 -2
  101. package/lib/index.js +8 -1
  102. package/lib/select-editor/mb-select-editor-popover/index.js +84 -64
  103. package/lib/select-editor/pc-select-editor-popover/index.js +50 -39
  104. package/lib/select-editor/select-editor-option.js +24 -19
  105. package/lib/toaster/alert.js +25 -16
  106. package/lib/toaster/toast.js +28 -24
  107. package/lib/toaster/toastManager.js +16 -13
  108. package/lib/toaster/toaster.js +2 -1
  109. package/package.json +1 -1
@@ -6,6 +6,7 @@ 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");
9
10
  class LinkEditorOption extends _react.default.Component {
10
11
  constructor() {
11
12
  super(...arguments);
@@ -61,27 +62,31 @@ class LinkEditorOption extends _react.default.Component {
61
62
  let optionStyle = this.getOptionStyle();
62
63
  let optionNameStyle = this.getOptionNameStyle();
63
64
  let operationStyle = this.getOperationStyle();
64
- return /*#__PURE__*/_react.default.createElement("div", {
65
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
65
66
  className: "dtable-ui link-option-item",
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
- })));
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
+ });
85
90
  }
86
91
  }
87
92
  LinkEditorOption.defaultProps = {
@@ -9,6 +9,7 @@ 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");
12
13
  class MBLinkEditorPopover extends _react.default.Component {
13
14
  constructor(props) {
14
15
  super(props);
@@ -68,18 +69,20 @@ class MBLinkEditorPopover extends _react.default.Component {
68
69
  } = this.props;
69
70
  return options.map((option, index) => {
70
71
  let isSelect = value.some(item => item === option.id);
71
- return /*#__PURE__*/_react.default.createElement("div", {
72
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
72
73
  className: "mb-link-option-item",
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
- }));
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);
83
86
  });
84
87
  };
85
88
  this.setEditorPopover = editorPopover => {
@@ -104,38 +107,47 @@ class MBLinkEditorPopover extends _react.default.Component {
104
107
  searchVal
105
108
  } = this.state;
106
109
  let filterOptions = this.getFilterOptions();
107
- return /*#__PURE__*/_react.default.createElement("div", {
110
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
108
111
  ref: this.setEditorPopover,
109
112
  className: "dtable-ui-mb-editor-popover mb-link-editor-popover",
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)))));
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
+ });
139
151
  }
140
152
  }
141
153
  MBLinkEditorPopover.defaultProps = {
@@ -8,6 +8,7 @@ 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");
11
12
  class PCLinkEditorPopover extends _react.default.Component {
12
13
  constructor(props) {
13
14
  super(props);
@@ -54,40 +55,47 @@ class PCLinkEditorPopover extends _react.default.Component {
54
55
  }, {
55
56
  position: 'absolute'
56
57
  });
57
- return /*#__PURE__*/_react.default.createElement("div", {
58
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
58
59
  className: "dtable-ui-editor-popover dtable-ui-link-editor-popover",
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'))));
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
+ });
91
99
  }
92
100
  }
93
101
  PCLinkEditorPopover.defaultProps = {
@@ -8,6 +8,7 @@ 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");
11
12
  // link value is get form parant's interface
12
13
  class LinkFormatter extends _react.default.Component {
13
14
  constructor(props) {
@@ -54,14 +55,15 @@ class LinkFormatter extends _react.default.Component {
54
55
  display_column_key: displayColumnKey
55
56
  } = column.data;
56
57
  let displayValue = this.getDisplayValue(linkedTable, row, displayColumnKey);
57
- return /*#__PURE__*/_react.default.createElement("div", {
58
- key: index,
58
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
59
59
  className: "link-item",
60
- onClick: this.expandLinkedTableRow.bind(this, row)
61
- }, /*#__PURE__*/_react.default.createElement("div", {
62
- className: "link-name",
63
- title: displayValue
64
- }, displayValue));
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);
65
67
  });
66
68
  return result;
67
69
  }
@@ -114,9 +116,10 @@ class LinkFormatter extends _react.default.Component {
114
116
  } = this.props;
115
117
  const classname = (0, _classnames.default)('dtable-ui cell-formatter-container link-formatter', containerClassName);
116
118
  let displayValues = this.getDisplayValues();
117
- return /*#__PURE__*/_react.default.createElement("div", {
118
- className: classname
119
- }, displayValues);
119
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
120
+ className: classname,
121
+ children: displayValues
122
+ });
120
123
  }
121
124
  }
122
125
  LinkFormatter.defaultProps = {
@@ -7,8 +7,9 @@ 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");
10
11
  function Loading() {
11
- return /*#__PURE__*/_react.default.createElement("span", {
12
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
12
13
  className: "loading-icon loading-tip"
13
14
  });
14
15
  }
@@ -8,6 +8,7 @@ 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");
11
12
  function LongTextFormatter(props) {
12
13
  const {
13
14
  isSample,
@@ -15,12 +16,12 @@ function LongTextFormatter(props) {
15
16
  containerClassName
16
17
  } = props;
17
18
  if (isSample) {
18
- return /*#__PURE__*/_react.default.createElement(_SimpleLongTextFormatter.default, {
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SimpleLongTextFormatter.default, {
19
20
  value: value,
20
21
  containerClassName: containerClassName
21
22
  });
22
23
  }
23
- return /*#__PURE__*/_react.default.createElement(_HtmlLongTextFormatter.default, {
24
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HtmlLongTextFormatter.default, {
24
25
  value: value,
25
26
  containerClassName: containerClassName
26
27
  });
@@ -6,6 +6,7 @@ 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");
9
10
  class MBEditorHeader extends _react.default.Component {
10
11
  render() {
11
12
  let {
@@ -16,20 +17,24 @@ class MBEditorHeader extends _react.default.Component {
16
17
  onLeftClick,
17
18
  onRightClick
18
19
  } = this.props;
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));
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
+ });
33
38
  }
34
39
  }
35
40
  var _default = exports.default = MBEditorHeader;
@@ -9,6 +9,7 @@ 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");
12
13
  class MTimeFormatter extends _react.default.Component {
13
14
  constructor() {
14
15
  super(...arguments);
@@ -25,9 +26,10 @@ class MTimeFormatter extends _react.default.Component {
25
26
  if (date) {
26
27
  date = this.formatDate(date);
27
28
  }
28
- return /*#__PURE__*/_react.default.createElement("div", {
29
- className: classname
30
- }, date);
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
30
+ className: classname,
31
+ children: date
32
+ });
31
33
  }
32
34
  }
33
35
  MTimeFormatter.defaultProps = {
@@ -12,6 +12,7 @@ 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");
15
16
  class MultipleSelectEditor extends _react.default.Component {
16
17
  constructor(props) {
17
18
  super(props);
@@ -141,44 +142,49 @@ class MultipleSelectEditor extends _react.default.Component {
141
142
  } = this.state;
142
143
  let options = this.options;
143
144
  let selectedOptions = this.getFormattedOptions();
144
- return /*#__PURE__*/_react.default.createElement("div", {
145
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
145
146
  ref: this.setEditorContainerRef,
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
- }))));
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
+ });
182
188
  }
183
189
  }
184
190
  MultipleSelectEditor.defaultProps = {
@@ -9,6 +9,7 @@ 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");
12
13
  class MultipleSelectFormatter extends _react.default.PureComponent {
13
14
  constructor() {
14
15
  super(...arguments);
@@ -21,10 +22,9 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
21
22
  let selectedOptions = options.filter(option => value.includes(option.id) || value.includes(option.name));
22
23
  if (selectedOptions.length === 0) return [];
23
24
  return selectedOptions.map(option => {
24
- return /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
25
- key: "multiple-".concat(option.id),
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
26
26
  option: option
27
- });
27
+ }, "multiple-".concat(option.id));
28
28
  });
29
29
  };
30
30
  }
@@ -35,14 +35,15 @@ 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__*/_react.default.createElement("div", {
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
39
39
  className: classname
40
40
  });
41
41
  }
42
42
  let options = this.getOptions();
43
- return /*#__PURE__*/_react.default.createElement("div", {
44
- className: classname
45
- }, options);
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
44
+ className: classname,
45
+ children: options
46
+ });
46
47
  }
47
48
  }
48
49
  MultipleSelectFormatter.defaultProps = {