dtable-ui-component 6.0.110-hap.1 → 6.0.110-hum.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.
- package/lib/ActionSheet/index.js +35 -42
- package/lib/ActivityIndicator/index.js +9 -9
- package/lib/AsyncUserSelect/index.js +3 -3
- package/lib/Badge/index.js +31 -27
- package/lib/CheckboxEditor/index.js +14 -15
- package/lib/CollaboratorEditor/index.js +15 -16
- package/lib/CollaboratorEditor/pc-editor/index.js +1 -1
- package/lib/CollapsibleSettingLayout/index.js +1 -1
- package/lib/Comment/body/comment.js +1 -1
- package/lib/Comment/body/index.js +9 -7
- package/lib/Comment/footer/index.js +1 -1
- package/lib/Comment/footer/input/index.js +5 -5
- package/lib/Comment/footer/input/participant/index.js +1 -1
- package/lib/Comment/footer/participants/participant-select/index.js +2 -2
- package/lib/Comment/utils/utilities.js +1 -1
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +6 -8
- package/lib/DTableColorPicker/index.js +12 -13
- package/lib/DTableColorPicker/utils.js +1 -1
- package/lib/DTableCommonAddTool/index.js +2 -2
- package/lib/DTableCustomizeSelect/index.css +30 -59
- package/lib/DTableCustomizeSelect/index.js +11 -10
- package/lib/DTableCustomizeSelect/select-option-group/KeyCodes.js +109 -0
- package/lib/DTableCustomizeSelect/select-option-group/index.css +130 -0
- package/lib/DTableCustomizeSelect/select-option-group/index.js +252 -0
- package/lib/DTableCustomizeSelect/select-option-group/option.js +48 -0
- package/lib/DTableCustomizeSelect/select-option-group/search-input.js +135 -0
- package/lib/DTableCustomizeSelect/util.js +12 -0
- package/lib/DTableFiltersPopover/index.js +1 -1
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +2 -2
- package/lib/DTableFiltersPopover/utils/index.js +1 -1
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +1 -1
- package/lib/DTableFiltersPopover/widgets/filter-group.js +2 -2
- package/lib/DTableFiltersPopover/widgets/filter-item.js +1 -1
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +3 -3
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
- package/lib/DTableFiltersPopover/widgets/rate-item.js +5 -5
- package/lib/DTableGroupSelect/index.css +3 -16
- package/lib/DTableGroupSelect/select-option-group.css +3 -3
- package/lib/DTableGroupSelect/select-option-group.js +10 -11
- package/lib/DTableIcon/index.js +4 -4
- package/lib/DTableIcon/svg-icon.js +4 -4
- package/lib/DTableModalHeader/index.js +8 -6
- package/lib/DTableRadioGroup/index.js +3 -3
- package/lib/DTableSelect/dtable-select-label.js +1 -1
- package/lib/DTableSelect/index.js +145 -44
- package/lib/DTableSelect/select-dropdown-indicator/index.css +12 -0
- package/lib/DTableSelect/select-dropdown-indicator/index.js +20 -0
- package/lib/DTableSelect/select-style.js +134 -0
- package/lib/DTableSelect/user-select.css +3 -50
- package/lib/DateEditor/index.js +10 -13
- package/lib/DateEditor/pc-editor.js +1 -1
- package/lib/DatePicker/utils.js +4 -4
- package/lib/DepartmentMultipleSelectEditor/index.js +3 -3
- package/lib/DepartmentSelectFilter/index.js +2 -5
- package/lib/DepartmentSingleSelectEditor/index.js +14 -15
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +6 -6
- package/lib/DigitalSignEditor/index.js +14 -15
- package/lib/DigitalSignEditor/mb-editor/index.js +4 -4
- package/lib/DigitalSignEditor/pc-editor/index.js +6 -7
- package/lib/DigitalSignEditor/service.js +1 -1
- package/lib/DigitalSignEditor/signature-board/index.js +2 -2
- package/lib/DigitalSignFormatter/utils.js +1 -1
- package/lib/Drawer/index.js +2 -3
- package/lib/FieldDisplaySetting/field-item.js +1 -1
- package/lib/FieldDisplaySetting/index.js +9 -11
- package/lib/FileEditor/files-previewer/index.js +14 -15
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
- package/lib/FileEditor/index.js +14 -15
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
- package/lib/FileEditor/pc-editor/index.js +3 -3
- package/lib/FileFormatter/index.js +1 -1
- package/lib/FileItemFormatter/index.js +1 -1
- package/lib/FileUploader/index.js +1 -1
- package/lib/FormulaFormatter/index.js +9 -15
- package/lib/GeolocationEditor/index.js +19 -23
- package/lib/GeolocationEditor/map-editor-utils.js +6 -10
- package/lib/GeolocationEditor/mb-editor/index.js +23 -27
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +6 -9
- package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/index.js +15 -21
- package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +9 -13
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +6 -9
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +7 -24
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +3 -20
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
- package/lib/GeolocationEditor/pc-editor/province-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
- package/lib/HtmlLongTextFormatter/index.js +1 -1
- package/lib/Icon/index.js +17 -13
- package/lib/Icon/load-sprite.js +2 -13
- package/lib/IconButton/index.js +14 -11
- package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
- package/lib/ImageEditor/index.js +14 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
- package/lib/ImageFormatter/index.js +1 -1
- package/lib/ImageThumbnail/index.js +2 -2
- package/lib/InputItem/custom-input.js +9 -9
- package/lib/InputItem/custom-keyboard.js +37 -34
- package/lib/InputItem/index.js +49 -52
- package/lib/InputItem/input.js +13 -9
- package/lib/LinkEditor/pc-popover/index.js +2 -3
- package/lib/List/index.js +21 -17
- package/lib/List/list-item.js +52 -50
- package/lib/MBEditorHeader/index.js +1 -1
- package/lib/MobileFullScreenPage/body/index.js +1 -1
- package/lib/MobileFullScreenPage/header/index.js +4 -4
- package/lib/MobileFullScreenPage/index.js +1 -1
- package/lib/MobileModal/index.js +10 -7
- package/lib/Modal/alert.js +2 -2
- package/lib/Modal/modal.js +31 -28
- package/lib/Modal/prompt.js +10 -10
- package/lib/MultipleSelectEditor/index.js +8 -6
- package/lib/MultipleSelectFormatter/index.js +1 -1
- package/lib/PhoneNumberLink/index.js +1 -1
- package/lib/Picker/AbstractPicker.js +28 -26
- package/lib/Popover/index.js +12 -9
- package/lib/Popover/item.js +26 -22
- package/lib/Progress/index.js +8 -10
- package/lib/Radio/Radio.js +15 -13
- package/lib/Radio/RadioItem.js +18 -18
- package/lib/RateFormatter/index.js +2 -2
- package/lib/RoleStatusEditor/index.js +1 -1
- package/lib/RowExpand/index.js +6 -7
- package/lib/RowExpandDialog/body/index.js +14 -14
- package/lib/RowExpandDialog/column-content/index.js +1 -1
- package/lib/RowExpandDialog/header/index.js +3 -4
- package/lib/RowExpandDialog/index.js +32 -43
- package/lib/RowExpandEditor/add-btn/index.js +6 -7
- package/lib/RowExpandEditor/checkbox-editor/index.js +6 -7
- package/lib/RowExpandEditor/collaborator-editor/index.js +6 -7
- package/lib/RowExpandEditor/date-editor/index.js +6 -7
- package/lib/RowExpandEditor/department-editor/index.js +6 -7
- package/lib/RowExpandEditor/digital-sign-editor/index.js +6 -7
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +4 -4
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +4 -4
- package/lib/RowExpandEditor/duration-editor/index.js +6 -7
- package/lib/RowExpandEditor/email-editor/index.js +6 -7
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/file-editor/index.js +6 -7
- package/lib/RowExpandEditor/geolocation-editor/index.js +6 -7
- package/lib/RowExpandEditor/image-editor/index.js +6 -7
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/index.js +10 -11
- package/lib/RowExpandEditor/long-text-editor/index.js +6 -7
- package/lib/RowExpandEditor/multiple-select-editor/index.js +6 -7
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
- package/lib/RowExpandEditor/number-editor/index.js +6 -7
- package/lib/RowExpandEditor/rate-editor/index.js +6 -7
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +5 -5
- package/lib/RowExpandEditor/single-select-editor/index.js +6 -7
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +4 -4
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
- package/lib/RowExpandEditor/text-editor/index.js +6 -7
- package/lib/RowExpandEditor/url-editor/index.js +6 -7
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +2 -2
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +2 -2
- package/lib/RowExpandFormatter/department-formatter/index.js +3 -6
- package/lib/RowExpandFormatter/email-formatter/index.js +1 -1
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
- package/lib/RowExpandFormatter/formula-formatter/index.js +11 -17
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
- package/lib/RowExpandFormatter/index.js +7 -11
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
- package/lib/RowExpandFormatter/rate-formatter/index.js +2 -2
- package/lib/RowExpandFormatter/url-formatter/index.js +2 -2
- package/lib/RowExpandView/body/index.js +15 -13
- package/lib/RowExpandView/index.js +28 -39
- package/lib/SelectOptionGroup/index.css +35 -17
- package/lib/SelectOptionGroup/index.js +44 -6
- package/lib/SelectedDepartments/index.js +3 -3
- package/lib/SimpleLongTextFormatter/index.js +2 -2
- package/lib/SingleSelectEditor/index.js +8 -6
- package/lib/TabBar/Tab.js +10 -10
- package/lib/TabBar/index.js +6 -7
- package/lib/Tabs/index.js +9 -10
- package/lib/TextareaItem/index.js +45 -43
- package/lib/Toast/index.js +5 -5
- package/lib/assets/icons/close.svg +1 -0
- package/lib/formatterConfig/index.js +3 -3
- package/lib/select-editor/index.js +14 -15
- package/lib/select-editor/pc-editor/index.js +5 -5
- package/lib/toaster/alert.js +1 -1
- package/lib/toaster/toast.js +1 -1
- package/lib/toaster/toastManager.js +14 -12
- package/lib/toaster/toaster.js +9 -12
- package/lib/utils/class.js +3 -3
- package/lib/utils/departments.js +4 -3
- package/lib/utils/getLocale.js +5 -11
- package/lib/utils/object-utils.js +4 -5
- package/lib/utils/url.js +4 -4
- package/package.json +2 -2
- package/lib/DTableSelect/utils.js +0 -227
|
@@ -6,37 +6,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
12
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
13
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
14
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
const _excluded = ["isMobile"];
|
|
14
17
|
const SelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
15
18
|
let {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
20
|
-
...props,
|
|
19
|
+
isMobile
|
|
20
|
+
} = _ref,
|
|
21
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
+
if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
21
23
|
ref: ref
|
|
22
|
-
});
|
|
23
|
-
if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
24
|
-
...props,
|
|
24
|
+
}));
|
|
25
|
+
if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
25
26
|
ref: ref
|
|
26
|
-
});
|
|
27
|
+
}));
|
|
27
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
28
29
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
29
30
|
query: "(min-width: 768px)",
|
|
30
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
31
|
-
...props,
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
32
32
|
ref: ref
|
|
33
|
-
})
|
|
33
|
+
}))
|
|
34
34
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
35
35
|
query: "(max-width: 768px)",
|
|
36
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
37
|
-
...props,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
38
37
|
ref: ref
|
|
39
|
-
})
|
|
38
|
+
}))
|
|
40
39
|
})]
|
|
41
40
|
});
|
|
42
41
|
});
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
11
|
var _reactstrap = require("reactstrap");
|
|
@@ -221,7 +222,7 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
221
222
|
let maxWidth = isInModal ? 250 : (column === null || column === void 0 ? void 0 : column.width) > 200 ? column.width - 62 : 138;
|
|
222
223
|
const dom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
223
224
|
className: (0, _classnames.default)('dtable-ui-editor-container dtable-ui-select-editor-container', className, {
|
|
224
|
-
[
|
|
225
|
+
["".concat(classNamePrefix, "-select-editor-container")]: classNamePrefix
|
|
225
226
|
}),
|
|
226
227
|
ref: ref => this.ref = ref,
|
|
227
228
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -237,10 +238,9 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
237
238
|
ref: ref => this.container = ref,
|
|
238
239
|
children: [this.filteredOptions.length > 0 && this.filteredOptions.map((option, index) => {
|
|
239
240
|
let optionStyle = this.getOptionStyle(option);
|
|
240
|
-
optionStyle = {
|
|
241
|
-
...optionStyle,
|
|
241
|
+
optionStyle = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, optionStyle), {}, {
|
|
242
242
|
maxWidth
|
|
243
|
-
};
|
|
243
|
+
});
|
|
244
244
|
let isSelected = value.includes(option[valueKey]);
|
|
245
245
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
246
246
|
className: "select-option-item",
|
|
@@ -292,7 +292,7 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
292
292
|
hideArrow: true,
|
|
293
293
|
fade: false,
|
|
294
294
|
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor-popover', {
|
|
295
|
-
[
|
|
295
|
+
["".concat(classNamePrefix, "-select-editor-popover")]: classNamePrefix
|
|
296
296
|
}),
|
|
297
297
|
children: dom
|
|
298
298
|
})
|
package/lib/toaster/alert.js
CHANGED
|
@@ -32,7 +32,7 @@ class Alert extends _react.default.PureComponent {
|
|
|
32
32
|
} = this.props;
|
|
33
33
|
const iconClass = this.getIconClass(intent);
|
|
34
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
|
-
className:
|
|
35
|
+
className: "dtable-toast-alert-container ".concat(intent || 'success'),
|
|
36
36
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
37
|
className: "toast-alert-icon",
|
|
38
38
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
package/lib/toaster/toast.js
CHANGED
|
@@ -84,7 +84,7 @@ class Toast extends _react.default.PureComponent {
|
|
|
84
84
|
onExited: this.props.onRemove,
|
|
85
85
|
children: state => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
86
|
"data-state": state,
|
|
87
|
-
className:
|
|
87
|
+
className: "dtable-toast-container ".concat(state),
|
|
88
88
|
onMouseEnter: this.handleMouseEnter,
|
|
89
89
|
onMouseLeave: this.handleMouseLeave,
|
|
90
90
|
style: {
|
|
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
9
11
|
var _toast = _interopRequireDefault(require("./toast"));
|
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
const _excluded = ["id", "description"];
|
|
11
14
|
const hasCustomId = settings => Object.hasOwnProperty.call(settings, 'id');
|
|
12
15
|
class ToastManager extends _react.default.PureComponent {
|
|
13
16
|
constructor(props, context) {
|
|
@@ -39,7 +42,7 @@ class ToastManager extends _react.default.PureComponent {
|
|
|
39
42
|
};
|
|
40
43
|
this.createToastInstance = (title, settings) => {
|
|
41
44
|
const uniqueId = ++ToastManager.idCounter;
|
|
42
|
-
const id = hasCustomId(settings) ?
|
|
45
|
+
const id = hasCustomId(settings) ? "".concat(settings.id, "-").concat(uniqueId) : uniqueId;
|
|
43
46
|
let hasCloseButton = settings.hasCloseButton || true;
|
|
44
47
|
let duration = settings.duration || 2;
|
|
45
48
|
if (settings.hasCloseButton !== undefined) {
|
|
@@ -67,10 +70,9 @@ class ToastManager extends _react.default.PureComponent {
|
|
|
67
70
|
return {
|
|
68
71
|
toasts: previousState.toasts.map(toast => {
|
|
69
72
|
if (toast.id === id) {
|
|
70
|
-
return {
|
|
71
|
-
...toast,
|
|
73
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, toast), {}, {
|
|
72
74
|
isShown: false
|
|
73
|
-
};
|
|
75
|
+
});
|
|
74
76
|
}
|
|
75
77
|
return toast;
|
|
76
78
|
})
|
|
@@ -96,15 +98,15 @@ class ToastManager extends _react.default.PureComponent {
|
|
|
96
98
|
className: "dtable-toast-manager",
|
|
97
99
|
children: this.state.toasts.map(_ref => {
|
|
98
100
|
let {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_toast.default, {
|
|
104
|
-
onRemove: () => this.removeToast(id)
|
|
105
|
-
|
|
101
|
+
id,
|
|
102
|
+
description
|
|
103
|
+
} = _ref,
|
|
104
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
105
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_toast.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
106
|
+
onRemove: () => this.removeToast(id)
|
|
107
|
+
}, props), {}, {
|
|
106
108
|
children: description
|
|
107
|
-
}, id);
|
|
109
|
+
}), id);
|
|
108
110
|
})
|
|
109
111
|
});
|
|
110
112
|
}
|
package/lib/toaster/toaster.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _client = require("react-dom/client");
|
|
10
11
|
var _toastManager = _interopRequireDefault(require("./toastManager"));
|
|
@@ -36,31 +37,27 @@ class Toaster {
|
|
|
36
37
|
};
|
|
37
38
|
this.notify = function (title) {
|
|
38
39
|
let settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
39
|
-
return _this.notifyHandler(title, {
|
|
40
|
-
...settings,
|
|
40
|
+
return _this.notifyHandler(title, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, settings), {}, {
|
|
41
41
|
intent: 'none'
|
|
42
|
-
});
|
|
42
|
+
}));
|
|
43
43
|
};
|
|
44
44
|
this.success = function (title) {
|
|
45
45
|
let settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46
|
-
return _this.notifyHandler(title, {
|
|
47
|
-
...settings,
|
|
46
|
+
return _this.notifyHandler(title, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, settings), {}, {
|
|
48
47
|
intent: 'success'
|
|
49
|
-
});
|
|
48
|
+
}));
|
|
50
49
|
};
|
|
51
50
|
this.warning = function (title) {
|
|
52
51
|
let settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
53
|
-
return _this.notifyHandler(title, {
|
|
54
|
-
...settings,
|
|
52
|
+
return _this.notifyHandler(title, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, settings), {}, {
|
|
55
53
|
intent: 'warning'
|
|
56
|
-
});
|
|
54
|
+
}));
|
|
57
55
|
};
|
|
58
56
|
this.danger = function (title) {
|
|
59
57
|
let settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
60
|
-
return _this.notifyHandler(title, {
|
|
61
|
-
...settings,
|
|
58
|
+
return _this.notifyHandler(title, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, settings), {}, {
|
|
62
59
|
intent: 'danger'
|
|
63
|
-
});
|
|
60
|
+
}));
|
|
64
61
|
};
|
|
65
62
|
if (!isBrowser) return;
|
|
66
63
|
const container = document.createElement('div');
|
package/lib/utils/class.js
CHANGED
|
@@ -11,14 +11,14 @@ function hasClass(node, className) {
|
|
|
11
11
|
return node.classList.contains(className);
|
|
12
12
|
}
|
|
13
13
|
const originClass = node.className;
|
|
14
|
-
return
|
|
14
|
+
return " ".concat(originClass, " ").indexOf(" ".concat(className, " ")) > -1;
|
|
15
15
|
}
|
|
16
16
|
function addClass(node, className) {
|
|
17
17
|
if (node.classList) {
|
|
18
18
|
node.classList.add(className);
|
|
19
19
|
} else {
|
|
20
20
|
if (!hasClass(node, className)) {
|
|
21
|
-
node.className =
|
|
21
|
+
node.className = "".concat(node.className, " ").concat(className);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ function removeClass(node, className) {
|
|
|
28
28
|
} else {
|
|
29
29
|
if (hasClass(node, className)) {
|
|
30
30
|
const originClass = node.className;
|
|
31
|
-
node.className =
|
|
31
|
+
node.className = " ".concat(originClass, " ").replace(" ".concat(className, " "), '');
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
package/lib/utils/departments.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.searchDepartments = exports.getNormalizedDepartments = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
7
9
|
const searchDepartments = (departments, searchValue) => {
|
|
8
10
|
const validSearchValue = searchValue ? searchValue.trim().toLowerCase() : '';
|
|
9
11
|
const validDepartments = Array.isArray(departments) ? departments : [];
|
|
@@ -27,11 +29,10 @@ const getNormalizedDepartments = function (departments) {
|
|
|
27
29
|
return departments.map(depart => {
|
|
28
30
|
const hasChild = canExpand && !!parentIdMap[depart.id];
|
|
29
31
|
const isExpanded = depart.parent_id === -1 ? true : false;
|
|
30
|
-
return {
|
|
31
|
-
...depart,
|
|
32
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, depart), {}, {
|
|
32
33
|
hasChild,
|
|
33
34
|
isExpanded
|
|
34
|
-
};
|
|
35
|
+
});
|
|
35
36
|
});
|
|
36
37
|
};
|
|
37
38
|
exports.getNormalizedDepartments = getNormalizedDepartments;
|
package/lib/utils/getLocale.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.getComponentLocale = getComponentLocale;
|
|
7
8
|
exports.getLocaleCode = getLocaleCode;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
8
10
|
function getComponentLocale(props, context, componentName, getDefaultLocale) {
|
|
9
11
|
let locale = {};
|
|
10
12
|
if (context && context.antLocale && context.antLocale[componentName]) {
|
|
@@ -15,19 +17,11 @@ function getComponentLocale(props, context, componentName, getDefaultLocale) {
|
|
|
15
17
|
// https://github.com/ant-design/ant-design/issues/6334
|
|
16
18
|
locale = defaultLocale.default || defaultLocale;
|
|
17
19
|
}
|
|
18
|
-
let result = {
|
|
19
|
-
...locale
|
|
20
|
-
};
|
|
20
|
+
let result = (0, _objectSpread2.default)({}, locale);
|
|
21
21
|
if (props.locale) {
|
|
22
|
-
result = {
|
|
23
|
-
...result,
|
|
24
|
-
...props.locale
|
|
25
|
-
};
|
|
22
|
+
result = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, result), props.locale);
|
|
26
23
|
if (props.locale.lang) {
|
|
27
|
-
result.lang = {
|
|
28
|
-
...locale.lang,
|
|
29
|
-
...props.locale.lang
|
|
30
|
-
};
|
|
24
|
+
result.lang = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, locale.lang), props.locale.lang);
|
|
31
25
|
}
|
|
32
26
|
}
|
|
33
27
|
return result;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.shallowCloneObject = exports.hasOwnProperty = exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
7
9
|
class ObjectUtils {
|
|
8
10
|
static getDataType(data) {
|
|
9
11
|
let type = typeof data;
|
|
@@ -17,16 +19,13 @@ class ObjectUtils {
|
|
|
17
19
|
}
|
|
18
20
|
static isObjectChanged(source, comparison) {
|
|
19
21
|
if (!this.iterable(source)) {
|
|
20
|
-
throw new Error(
|
|
22
|
+
throw new Error("source should be a Object or Array , but got ".concat(this.getDataType(source)));
|
|
21
23
|
}
|
|
22
24
|
if (this.getDataType(source) !== this.getDataType(comparison)) {
|
|
23
25
|
return true;
|
|
24
26
|
}
|
|
25
27
|
const sourceKeys = Object.keys(source);
|
|
26
|
-
const comparisonKeys = Object.keys({
|
|
27
|
-
...source,
|
|
28
|
-
...comparison
|
|
29
|
-
});
|
|
28
|
+
const comparisonKeys = Object.keys((0, _objectSpread2.default)((0, _objectSpread2.default)({}, source), comparison));
|
|
30
29
|
if (sourceKeys.length !== comparisonKeys.length) {
|
|
31
30
|
return true;
|
|
32
31
|
}
|
package/lib/utils/url.js
CHANGED
|
@@ -80,9 +80,9 @@ const generateCurrentBaseImageThumbnailUrl = _ref => {
|
|
|
80
80
|
} = _ref;
|
|
81
81
|
const validServer = server || ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.dtable) && window.dtable.server || '';
|
|
82
82
|
if (!partUrl || typeof partUrl !== 'string') return '';
|
|
83
|
-
let url =
|
|
84
|
-
if (url.indexOf('?') > -1) return
|
|
85
|
-
return
|
|
83
|
+
let url = "".concat(validServer, "/thumbnail/workspace/").concat(workspaceID, "/asset/").concat(dtableUuid).concat(partUrl);
|
|
84
|
+
if (url.indexOf('?') > -1) return "".concat(url, "&size=").concat(size);
|
|
85
|
+
return "".concat(url, "?size=").concat(size);
|
|
86
86
|
};
|
|
87
87
|
exports.generateCurrentBaseImageThumbnailUrl = generateCurrentBaseImageThumbnailUrl;
|
|
88
88
|
const generateCurrentBaseImageUrl = _ref2 => {
|
|
@@ -96,7 +96,7 @@ const generateCurrentBaseImageUrl = _ref2 => {
|
|
|
96
96
|
if (!partUrl || typeof partUrl !== 'string') return '';
|
|
97
97
|
if (partUrl.startsWith('http')) return partUrl;
|
|
98
98
|
const validServer = server || ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.dtable) && window.dtable.server || '';
|
|
99
|
-
return
|
|
99
|
+
return "".concat(validServer, "/workspace/").concat(workspaceID, "/asset/").concat(dtableUuid).concat(partUrl);
|
|
100
100
|
};
|
|
101
101
|
exports.generateCurrentBaseImageUrl = generateCurrentBaseImageUrl;
|
|
102
102
|
const getImageThumbnailUrl = function (url) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.110hum.4",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "^5.0.4",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"rmc-tooltip": "1.0.1"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"lint": "eslint ./src/ --fix",
|
|
31
|
+
"lint": "./node_modules/.bin/eslint ./src/ --fix",
|
|
32
32
|
"clean:esm": "rm -rf es && mkdir es",
|
|
33
33
|
"clean:lib": "rm -rf lib && mkdir lib",
|
|
34
34
|
"clean:dist": "rm -rf dist && mkdir dist",
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.UserSelectStyle = exports.Option = exports.MenuSelectStyle = exports.MenuList = exports.DropdownIndicator = exports.ClearIndicator = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactSelect = require("react-select");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
// DtableSelect is based on seatable-ui.css, so use the following content to override the default react-select style
|
|
12
|
-
const DEFAULT_CONTROL_STYLE = {
|
|
13
|
-
border: '1px solid rgba(0, 40, 100, 0.12) !important'
|
|
14
|
-
};
|
|
15
|
-
const FOCUS_CONTROL_STYLE = {
|
|
16
|
-
fontSize: '14px',
|
|
17
|
-
backgroundColor: '#ffffff',
|
|
18
|
-
borderColor: '#1991eb',
|
|
19
|
-
outline: '0',
|
|
20
|
-
boxShadow: '0 0 0 2px rgba(70, 127, 207, 0.25)'
|
|
21
|
-
};
|
|
22
|
-
const noneCallback = () => ({
|
|
23
|
-
display: 'none'
|
|
24
|
-
});
|
|
25
|
-
const controlCallback = (provided, state) => {
|
|
26
|
-
const {
|
|
27
|
-
isDisabled,
|
|
28
|
-
isFocused
|
|
29
|
-
} = state;
|
|
30
|
-
if (isFocused && !isDisabled) {
|
|
31
|
-
return {
|
|
32
|
-
...provided,
|
|
33
|
-
...FOCUS_CONTROL_STYLE,
|
|
34
|
-
'&:hover': {
|
|
35
|
-
...provided,
|
|
36
|
-
...FOCUS_CONTROL_STYLE
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
...provided,
|
|
42
|
-
fontSize: '14px',
|
|
43
|
-
lineHeight: '1.5',
|
|
44
|
-
cursor: 'pointer',
|
|
45
|
-
...DEFAULT_CONTROL_STYLE,
|
|
46
|
-
'&:hover': {
|
|
47
|
-
...DEFAULT_CONTROL_STYLE
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
const UserSelectStyle = exports.UserSelectStyle = {
|
|
52
|
-
option: (provided, state) => {
|
|
53
|
-
const {
|
|
54
|
-
isDisabled,
|
|
55
|
-
isFocused
|
|
56
|
-
} = state;
|
|
57
|
-
return {
|
|
58
|
-
...provided,
|
|
59
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
60
|
-
backgroundColor: isFocused ? '#f5f5f5' : '#fff'
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
control: controlCallback,
|
|
64
|
-
indicatorSeparator: noneCallback,
|
|
65
|
-
dropdownIndicator: noneCallback,
|
|
66
|
-
clearIndicator: noneCallback,
|
|
67
|
-
multiValue: provided => {
|
|
68
|
-
return {
|
|
69
|
-
...provided,
|
|
70
|
-
display: 'inline-flex',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
background: '#eaeaea',
|
|
73
|
-
borderRadius: '10px',
|
|
74
|
-
margin: '0 10px 0 0',
|
|
75
|
-
padding: '0 0 0 2px'
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
multiValueLabel: provided => {
|
|
79
|
-
return {
|
|
80
|
-
...provided,
|
|
81
|
-
padding: '0px'
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
multiValueRemove: provided => {
|
|
85
|
-
return {
|
|
86
|
-
...provided,
|
|
87
|
-
color: '#666',
|
|
88
|
-
':hover': {
|
|
89
|
-
backgroundColor: 'transparent',
|
|
90
|
-
color: '#555555'
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
},
|
|
94
|
-
singleValue: provided => {
|
|
95
|
-
return {
|
|
96
|
-
...provided,
|
|
97
|
-
display: 'inline-flex',
|
|
98
|
-
alignItems: 'center',
|
|
99
|
-
background: '#eaeaea',
|
|
100
|
-
borderRadius: '10px',
|
|
101
|
-
margin: '0',
|
|
102
|
-
padding: '0 2px',
|
|
103
|
-
width: 'fit-content'
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
108
|
-
option: (provided, state) => {
|
|
109
|
-
const {
|
|
110
|
-
isDisabled,
|
|
111
|
-
isFocused
|
|
112
|
-
} = state;
|
|
113
|
-
return {
|
|
114
|
-
...provided,
|
|
115
|
-
padding: '8px',
|
|
116
|
-
fontSize: '14px',
|
|
117
|
-
color: '#212529',
|
|
118
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
119
|
-
backgroundColor: isFocused ? '#f5f5f5' : '#fff',
|
|
120
|
-
borderRadius: '4px',
|
|
121
|
-
':active': {
|
|
122
|
-
backgroundColor: '#f5f5f5'
|
|
123
|
-
},
|
|
124
|
-
'.header-icon .dtable-font': {
|
|
125
|
-
color: '#aaa'
|
|
126
|
-
},
|
|
127
|
-
'.header-icon .multicolor-icon': {
|
|
128
|
-
color: '#aaa'
|
|
129
|
-
},
|
|
130
|
-
'.seatable-ui-select-tip': {
|
|
131
|
-
fontSize: '12px',
|
|
132
|
-
color: '#666666'
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
|
-
control: controlCallback,
|
|
137
|
-
menuPortal: base => ({
|
|
138
|
-
...base,
|
|
139
|
-
zIndex: 9999
|
|
140
|
-
}),
|
|
141
|
-
indicatorSeparator: noneCallback,
|
|
142
|
-
menuList: provided => ({
|
|
143
|
-
...provided,
|
|
144
|
-
padding: '8px'
|
|
145
|
-
}),
|
|
146
|
-
valueContainer: (provided, state) => ({
|
|
147
|
-
...provided,
|
|
148
|
-
padding: '2px 8px 2px 16px'
|
|
149
|
-
})
|
|
150
|
-
};
|
|
151
|
-
const DropdownIndicator = props => {
|
|
152
|
-
return _reactSelect.components.DropdownIndicator && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.DropdownIndicator, {
|
|
153
|
-
...props,
|
|
154
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
155
|
-
className: "dtable-font dtable-icon-down3",
|
|
156
|
-
style: {
|
|
157
|
-
fontSize: '12px',
|
|
158
|
-
marginLeft: '-2px',
|
|
159
|
-
color: '#666666',
|
|
160
|
-
paddingRight: '16px'
|
|
161
|
-
}
|
|
162
|
-
})
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
exports.DropdownIndicator = DropdownIndicator;
|
|
166
|
-
const ClearIndicator = _ref => {
|
|
167
|
-
let {
|
|
168
|
-
innerProps,
|
|
169
|
-
...props
|
|
170
|
-
} = _ref;
|
|
171
|
-
const onMouseDown = e => {
|
|
172
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
173
|
-
innerProps.onMouseDown(e);
|
|
174
|
-
};
|
|
175
|
-
props.innerProps = {
|
|
176
|
-
...innerProps,
|
|
177
|
-
onMouseDown
|
|
178
|
-
};
|
|
179
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.ClearIndicator, {
|
|
180
|
-
...props,
|
|
181
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
182
|
-
className: "dtable-font dtable-icon-fork-number",
|
|
183
|
-
style: {
|
|
184
|
-
fontSize: '12px',
|
|
185
|
-
marginRight: '-2px'
|
|
186
|
-
}
|
|
187
|
-
})
|
|
188
|
-
});
|
|
189
|
-
};
|
|
190
|
-
exports.ClearIndicator = ClearIndicator;
|
|
191
|
-
const MenuList = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
192
|
-
onClick: e => e.nativeEvent.stopImmediatePropagation(),
|
|
193
|
-
onMouseDown: e => e.nativeEvent.stopImmediatePropagation(),
|
|
194
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.MenuList, {
|
|
195
|
-
...props,
|
|
196
|
-
children: props.children
|
|
197
|
-
})
|
|
198
|
-
});
|
|
199
|
-
exports.MenuList = MenuList;
|
|
200
|
-
const Option = props => {
|
|
201
|
-
const {
|
|
202
|
-
isSelected,
|
|
203
|
-
label
|
|
204
|
-
} = props;
|
|
205
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.Option, {
|
|
206
|
-
...props,
|
|
207
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
208
|
-
style: {
|
|
209
|
-
display: 'flex',
|
|
210
|
-
alignItems: 'center',
|
|
211
|
-
justifyContent: 'space-between',
|
|
212
|
-
width: '100%'
|
|
213
|
-
},
|
|
214
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
215
|
-
children: label
|
|
216
|
-
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
217
|
-
className: "dtable-font dtable-icon-check",
|
|
218
|
-
style: {
|
|
219
|
-
fontSize: '14px',
|
|
220
|
-
color: '#666666',
|
|
221
|
-
paddingLeft: '16px'
|
|
222
|
-
}
|
|
223
|
-
})]
|
|
224
|
-
})
|
|
225
|
-
});
|
|
226
|
-
};
|
|
227
|
-
exports.Option = Option;
|