dtable-ui-component 6.0.25 → 6.0.26-beta
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/BodyPortal/index.js +29 -0
- package/lib/CheckboxEditor/index.js +17 -118
- package/lib/CheckboxEditor/lg.js +118 -0
- package/lib/CheckboxEditor/sm.js +101 -0
- package/lib/CollaboratorEditor/index.js +11 -4
- package/lib/CollaboratorEditor/{pc-collaborator-editor → lg}/index.js +2 -2
- package/lib/CollaboratorEditor/sm/index.css +41 -0
- package/lib/CollaboratorEditor/sm/index.js +87 -0
- package/lib/DTableCommonAddTool/index.js +1 -3
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +3 -3
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +4 -4
- package/lib/DateEditor/index.js +31 -30
- package/lib/DateEditor/{pc-date-editor-popover.js → large.js} +6 -6
- package/lib/DateEditor/sm/custom-rc-calendar.css +118 -0
- package/lib/DateEditor/sm/index.css +40 -0
- package/lib/DateEditor/{mb-date-editor-popover → sm}/index.js +18 -33
- package/lib/{Department-editor → DepartmentEditor}/constants.js +7 -0
- package/lib/{Department-editor → DepartmentEditor}/department-multiple-select/index.css +4 -1
- package/lib/{Department-editor → DepartmentEditor}/department-multiple-select/index.js +7 -4
- package/lib/DepartmentEditor/index.js +25 -0
- package/lib/{Department-editor → DepartmentEditor/lg}/department-single-select.js +10 -7
- package/lib/{Department-editor → DepartmentEditor/lg}/index.css +12 -3
- package/lib/{Department-editor → DepartmentEditor/lg}/index.js +8 -25
- package/lib/DepartmentEditor/sm/index.css +4 -0
- package/lib/DepartmentEditor/sm/index.js +220 -0
- package/lib/DigitalSignEditor/index.js +17 -173
- package/lib/DigitalSignEditor/lg/index.js +181 -0
- package/lib/DigitalSignEditor/sm/index.css +35 -0
- package/lib/DigitalSignEditor/sm/index.js +139 -0
- package/lib/FileEditor/files-previewer/index.js +16 -267
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/dropdown-menu.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/file-name-editor/index.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/index.css +0 -2
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/index.js +2 -2
- package/lib/FileEditor/files-previewer/lg/index.js +276 -0
- package/lib/FileEditor/files-previewer/sm/file-previewer/index.js +122 -0
- package/lib/FileEditor/files-previewer/sm/index.css +39 -0
- package/lib/FileEditor/files-previewer/sm/index.js +59 -0
- package/lib/FileEditor/index.css +0 -5
- package/lib/FileEditor/index.js +16 -264
- package/lib/FileEditor/lg/addition-previewer/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → lg/addition-previewer}/index.js +1 -1
- package/lib/FileEditor/lg/addition-previewer/local-file-addition/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → lg/addition-previewer}/local-file-addition/index.js +4 -4
- package/lib/FileEditor/lg/index.css +5 -0
- package/lib/FileEditor/lg/index.js +274 -0
- package/lib/FileEditor/sm/index.css +10 -0
- package/lib/FileEditor/sm/index.js +131 -0
- package/lib/FileFormatter/index.js +98 -38
- package/lib/FileItemFormatter/index.js +3 -1
- package/lib/FormulaFormatter/index.css +5 -5
- package/lib/GeolocationEditor/index.js +76 -231
- package/lib/GeolocationEditor/{country-editor.js → lg/country-editor.js} +5 -49
- package/lib/GeolocationEditor/{index.css → lg/index.css} +1 -2
- package/lib/GeolocationEditor/lg/index.js +247 -0
- package/lib/GeolocationEditor/{location-editor.js → lg/location-editor.js} +8 -41
- package/lib/GeolocationEditor/{map-editor → lg/map-editor}/index.js +6 -6
- package/lib/GeolocationEditor/{map-editor → lg/map-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → lg/map-selection-editor}/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → lg/map-selection-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{province-city-editor.js → lg/province-city-editor.js} +7 -38
- package/lib/GeolocationEditor/{province-editor.js → lg/province-editor.js} +7 -31
- package/lib/GeolocationEditor/{selector-header-item.js → lg/selector-header-item.js} +1 -1
- package/lib/GeolocationEditor/map-editor-utils.js +6 -2
- package/lib/GeolocationEditor/sm/country-editor.js +70 -0
- package/lib/GeolocationEditor/sm/index.css +11 -0
- package/lib/GeolocationEditor/sm/index.js +125 -0
- package/lib/GeolocationEditor/sm/location-editor.js +93 -0
- package/lib/GeolocationEditor/sm/map-editor/index.css +11 -0
- package/lib/GeolocationEditor/sm/map-editor/index.js +469 -0
- package/lib/GeolocationEditor/sm/map-selection-editor/index.css +158 -0
- package/lib/GeolocationEditor/sm/map-selection-editor/index.js +525 -0
- package/lib/GeolocationEditor/sm/province-city-editor.js +68 -0
- package/lib/GeolocationEditor/sm/province-editor.js +67 -0
- package/lib/ImageEditor/images-previewer/image-preview/index.js +2 -2
- package/lib/ImageEditor/images-previewer/index.js +3 -3
- package/lib/ImageEditor/index.css +17 -16
- package/lib/ImageEditor/index.js +16 -184
- package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/image-link/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/local-image-addition/index.js +4 -4
- package/lib/ImageEditor/lg/images-previewer/index.js +140 -0
- package/lib/ImageEditor/lg/index.css +24 -0
- package/lib/ImageEditor/lg/index.js +194 -0
- package/lib/ImageEditor/sm/index.css +29 -0
- package/lib/ImageEditor/sm/index.js +131 -0
- package/lib/ImageThumbnail/index.js +2 -1
- package/lib/LinkEditor/pc-link-editor-popover/index.css +1 -1
- package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
- package/lib/MobileFullScreenPage/body/index.css +9 -0
- package/lib/MobileFullScreenPage/body/index.js +23 -0
- package/lib/MobileFullScreenPage/header/index.css +35 -0
- package/lib/MobileFullScreenPage/header/index.js +38 -0
- package/lib/MobileFullScreenPage/index.css +13 -0
- package/lib/MobileFullScreenPage/index.js +81 -0
- package/lib/MobileModal/index.js +41 -0
- package/lib/MobileOperationSheet/index.css +27 -0
- package/lib/MobileOperationSheet/index.js +92 -0
- package/lib/MobileSelectorEditor/empty/index.css +3 -0
- package/lib/MobileSelectorEditor/empty/index.js +23 -0
- package/lib/MobileSelectorEditor/index.css +32 -0
- package/lib/MobileSelectorEditor/index.js +57 -0
- package/lib/MobileSelectorEditor/option/index.css +28 -0
- package/lib/MobileSelectorEditor/option/index.js +36 -0
- package/lib/MobileSelectorEditor/options/index.css +8 -0
- package/lib/MobileSelectorEditor/options/index.js +18 -0
- package/lib/MobileSelectorEditor/search/index.css +7 -0
- package/lib/MobileSelectorEditor/search/index.js +26 -0
- package/lib/MobileUpload/index.css +1 -0
- package/lib/MobileUpload/index.js +160 -0
- package/lib/MultipleSelectEditor/index.js +3 -10
- package/lib/RowExpand/index.js +19 -0
- package/lib/{RowExpandDialog → RowExpand/lg}/body/index.js +4 -4
- package/lib/{RowExpandDialog → RowExpand/lg}/column-content/index.js +2 -2
- package/lib/{RowExpandDialog → RowExpand/lg}/header/index.js +3 -3
- package/lib/{RowExpandDialog → RowExpand/lg}/index.js +6 -6
- package/lib/RowExpand/sm/body/index.css +173 -0
- package/lib/RowExpand/sm/body/index.js +111 -0
- package/lib/RowExpand/sm/column-content/index.css +27 -0
- package/lib/RowExpand/sm/column-content/index.js +25 -0
- package/lib/RowExpand/sm/index.css +0 -0
- package/lib/RowExpand/sm/index.js +172 -0
- package/lib/RowExpandEditor/RightAngle/index.css +6 -0
- package/lib/RowExpandEditor/RightAngle/index.js +17 -0
- package/lib/RowExpandEditor/RowExpandAddBtn/index.js +12 -17
- package/lib/RowExpandEditor/RowExpandAddBtn/lg/index.js +26 -0
- package/lib/RowExpandEditor/RowExpandAddBtn/sm/index.css +3 -0
- package/lib/RowExpandEditor/RowExpandAddBtn/sm/index.js +19 -0
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +10 -33
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/lg.js +42 -0
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/sm/index.css +6 -0
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/sm/index.js +39 -0
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +10 -223
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/{index.css → lg/index.css} +1 -1
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/lg/index.js +231 -0
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/sm/index.css +9 -0
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/sm/index.js +163 -0
- package/lib/RowExpandEditor/RowExpandDateEditor/index.js +10 -121
- package/lib/RowExpandEditor/RowExpandDateEditor/lg.js +130 -0
- package/lib/RowExpandEditor/RowExpandDateEditor/sm.js +84 -0
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +11 -96
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/lg.js +101 -0
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/sm.js +65 -0
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +10 -199
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/{index.css → lg/index.css} +1 -1
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/lg/index.js +208 -0
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/sm/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/sm/index.js +130 -0
- package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +11 -97
- package/lib/RowExpandEditor/RowExpandDurationEditor/lg.js +105 -0
- package/lib/RowExpandEditor/RowExpandDurationEditor/sm.js +71 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +10 -116
- package/lib/RowExpandEditor/RowExpandEmailEditor/lg/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/lg/index.js +125 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/sm/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/sm/index.js +84 -0
- package/lib/RowExpandEditor/RowExpandFileEditor/index.js +10 -139
- package/lib/RowExpandEditor/RowExpandFileEditor/lg/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandFileEditor/lg/index.js +148 -0
- package/lib/RowExpandEditor/RowExpandFileEditor/sm/index.js +116 -0
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +10 -156
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/lg/index.js +164 -0
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/sm/index.css +0 -0
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/sm/index.js +101 -0
- package/lib/RowExpandEditor/RowExpandImageEditor/index.js +10 -161
- package/lib/RowExpandEditor/RowExpandImageEditor/lg/index.js +170 -0
- package/lib/RowExpandEditor/RowExpandImageEditor/sm/index.css +25 -0
- package/lib/RowExpandEditor/RowExpandImageEditor/sm/index.js +109 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +11 -115
- package/lib/RowExpandEditor/RowExpandLongTextEditor/lg/index.js +123 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/editor/index.css +10 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/editor/index.js +80 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/index.css +3 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/index.js +91 -0
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +10 -238
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/{index.css → lg/index.css} +1 -1
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/lg/index.js +247 -0
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/sm/index.css +0 -0
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/sm/index.js +155 -0
- package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +10 -96
- package/lib/RowExpandEditor/RowExpandNumberEditor/lg.js +105 -0
- package/lib/RowExpandEditor/RowExpandNumberEditor/sm/index.css +3 -0
- package/lib/RowExpandEditor/RowExpandNumberEditor/sm/index.js +76 -0
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +21 -0
- package/lib/RowExpandEditor/RowExpandRateEditor/index.js +10 -142
- package/lib/RowExpandEditor/RowExpandRateEditor/lg.js +151 -0
- package/lib/RowExpandEditor/RowExpandRateEditor/sm.js +92 -0
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +11 -198
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/lg/index.js +206 -0
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/sm/index.css +8 -0
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/sm/index.js +134 -0
- package/lib/RowExpandEditor/RowExpandTextEditor/index.js +11 -128
- package/lib/RowExpandEditor/RowExpandTextEditor/lg/index.js +136 -0
- package/lib/RowExpandEditor/RowExpandTextEditor/sm/index.css +14 -0
- package/lib/RowExpandEditor/RowExpandTextEditor/sm/index.js +37 -0
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +10 -121
- package/lib/RowExpandEditor/RowExpandUrlEditor/lg/index.js +130 -0
- package/lib/RowExpandEditor/RowExpandUrlEditor/sm/index.css +17 -0
- package/lib/RowExpandEditor/RowExpandUrlEditor/sm/index.js +87 -0
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +10 -18
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/lg.js +27 -0
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/sm.js +20 -0
- package/lib/RowExpandFormatter/RowExpandEmailFormatter/index.css +4 -4
- package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +1 -1
- package/lib/RowExpandFormatter/index.css +18 -18
- package/lib/RowExpandFormatter/index.js +1 -1
- package/lib/SelectItem/index.js +57 -33
- package/lib/SingleSelectEditor/index.js +3 -10
- package/lib/SvgIcon/index.js +2 -1
- package/lib/constants/file.js +1 -0
- package/lib/constants/index.js +3 -2
- package/lib/index.js +42 -98
- package/lib/locales/zh-CN.json +1 -1
- package/lib/select-editor/index.js +19 -21
- package/lib/select-editor/{pc-select-editor → lg}/index.css +1 -1
- package/lib/select-editor/{pc-select-editor → lg}/index.js +10 -10
- package/lib/select-editor/sm/index.css +1 -0
- package/lib/select-editor/sm/index.js +104 -0
- package/lib/utils/get-event-transfer.js +2 -1
- package/lib/utils/utils.js +11 -2
- package/package.json +3 -12
- package/lib/ActionSheet/index.js +0 -194
- package/lib/ActionSheet/style/index.css +0 -365
- package/lib/ActivityIndicator/index.css +0 -108
- package/lib/ActivityIndicator/index.js +0 -76
- package/lib/Badge/index.css +0 -96
- package/lib/Badge/index.js +0 -65
- package/lib/CollaboratorEditor/mb-collaborator-editor/index.css +0 -85
- package/lib/CollaboratorEditor/mb-collaborator-editor/index.js +0 -148
- package/lib/DateEditor/mb-date-editor-popover/custom-rc-calendar.css +0 -118
- package/lib/DateEditor/mb-date-editor-popover/index.css +0 -45
- package/lib/DatePicker/index.js +0 -120
- package/lib/DatePicker/locale/en_US.js +0 -14
- package/lib/DatePicker/locale/ru_RU.js +0 -14
- package/lib/DatePicker/locale/sv_SE.js +0 -14
- package/lib/DatePicker/locale/zh_CN.js +0 -14
- package/lib/DatePicker/style/index.css +0 -290
- package/lib/DatePicker/utils.js +0 -36
- package/lib/Drawer/index.css +0 -142
- package/lib/Drawer/index.js +0 -21
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/Icon/index.css +0 -50
- package/lib/Icon/index.js +0 -34
- package/lib/Icon/load-sprite.js +0 -56
- package/lib/InputItem/custom-input.js +0 -321
- package/lib/InputItem/custom-keyboard.js +0 -162
- package/lib/InputItem/index.js +0 -388
- package/lib/InputItem/input.js +0 -45
- package/lib/InputItem/locale/en_US.js +0 -12
- package/lib/InputItem/locale/ru_RU.js +0 -12
- package/lib/InputItem/locale/sv_SE.js +0 -12
- package/lib/InputItem/locale/zh_CN.js +0 -12
- package/lib/InputItem/portal.js +0 -23
- package/lib/InputItem/style/index.css +0 -512
- package/lib/List/index.css +0 -381
- package/lib/List/index.js +0 -41
- package/lib/List/list-item.js +0 -169
- package/lib/Modal/alert.js +0 -82
- package/lib/Modal/index.js +0 -15
- package/lib/Modal/modal.js +0 -118
- package/lib/Modal/operation.js +0 -77
- package/lib/Modal/prompt.js +0 -207
- package/lib/Picker/AbstractPicker.js +0 -190
- package/lib/Picker/index.js +0 -28
- package/lib/Picker/locale/en_US.js +0 -12
- package/lib/Picker/locale/ru_RU.js +0 -12
- package/lib/Picker/locale/sv_SE.js +0 -12
- package/lib/Picker/locale/zh_CN.js +0 -12
- package/lib/Picker/popupProps.js +0 -12
- package/lib/Picker/style/index.css +0 -141
- package/lib/Popover/index.js +0 -62
- package/lib/Popover/item.js +0 -55
- package/lib/Popover/style/index.css +0 -229
- package/lib/Progress/index.css +0 -22
- package/lib/Progress/index.js +0 -65
- package/lib/Radio/Radio.js +0 -47
- package/lib/Radio/RadioItem.js +0 -57
- package/lib/Radio/index.css +0 -90
- package/lib/Radio/index.js +0 -12
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/TabBar/Tab.js +0 -76
- package/lib/TabBar/index.css +0 -138
- package/lib/TabBar/index.js +0 -128
- package/lib/Tabs/index.css +0 -443
- package/lib/Tabs/index.js +0 -38
- package/lib/TextareaItem/index.css +0 -231
- package/lib/TextareaItem/index.js +0 -231
- package/lib/Toast/index.css +0 -65
- package/lib/Toast/index.js +0 -131
- package/lib/_util/class.js +0 -34
- package/lib/_util/closest.js +0 -17
- package/lib/_util/exenv.js +0 -8
- package/lib/_util/getDataAttr.js +0 -15
- package/lib/_util/getLocale.js +0 -42
- package/lib/select-editor/mb-select-editor/index.css +0 -127
- package/lib/select-editor/mb-select-editor/index.js +0 -197
- package/lib/select-editor/select-editor-option.js +0 -84
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → lg}/index.css +0 -0
- /package/lib/{Department-editor → DepartmentEditor}/selected-departments/index.css +0 -0
- /package/lib/{Department-editor → DepartmentEditor}/selected-departments/index.js +0 -0
- /package/lib/{Department-editor → DepartmentEditor}/utils.js +0 -0
- /package/lib/DigitalSignEditor/{index.css → lg/index.css} +0 -0
- /package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/file-name-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-editor → lg/map-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-selection-editor → lg/map-selection-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{parse-geolocation.js → lg/parse-geolocation.js} +0 -0
- /package/lib/GeolocationEditor/{selector-list.js → lg/selector-list.js} +0 -0
- /package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/image-link/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/local-image-addition/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/body/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/column-content/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/header/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/index.css +0 -0
- /package/lib/RowExpandEditor/RowExpandAddBtn/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandGeolocationEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandImageEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandLongTextEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandTextEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandUrlEditor/{index.css → lg/index.css} +0 -0
package/lib/DateEditor/index.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
10
10
|
var _dayjs = _interopRequireDefault(require("../utils/dayjs"));
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var _large = _interopRequireDefault(require("./large"));
|
|
12
|
+
var _sm = _interopRequireDefault(require("./sm"));
|
|
13
13
|
require("dayjs/locale/zh-cn");
|
|
14
14
|
require("dayjs/locale/en-gb");
|
|
15
15
|
require("./index.css");
|
|
@@ -58,47 +58,48 @@ class DateEditor extends _react.default.Component {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
if (!this.state.isDateInit)
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
let {
|
|
61
|
+
if (!this.state.isDateInit) return null;
|
|
62
|
+
const {
|
|
65
63
|
lang,
|
|
66
64
|
column,
|
|
67
65
|
className,
|
|
68
66
|
isInModal,
|
|
69
|
-
firstDayOfWeek
|
|
67
|
+
firstDayOfWeek,
|
|
68
|
+
size,
|
|
69
|
+
hideCalendar
|
|
70
70
|
} = this.props;
|
|
71
|
-
|
|
71
|
+
const {
|
|
72
72
|
newValue,
|
|
73
73
|
dateFormat,
|
|
74
74
|
showHourAndMinute
|
|
75
75
|
} = this.state;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement(_pcDateEditorPopover.default, {
|
|
79
|
-
className: className,
|
|
80
|
-
lang: lang,
|
|
81
|
-
isInModal: isInModal,
|
|
76
|
+
const props = {
|
|
77
|
+
lang,
|
|
82
78
|
value: newValue,
|
|
83
|
-
dateFormat
|
|
84
|
-
showHourAndMinute
|
|
79
|
+
dateFormat,
|
|
80
|
+
showHourAndMinute,
|
|
81
|
+
firstDayOfWeek,
|
|
82
|
+
className,
|
|
85
83
|
onValueChanged: this.onValueChanged,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
onClose: hideCalendar
|
|
85
|
+
};
|
|
86
|
+
if (size === 'lg') return /*#__PURE__*/_react.default.createElement(_large.default, Object.assign({}, props, {
|
|
87
|
+
isInModal: isInModal
|
|
88
|
+
}));
|
|
89
|
+
if (size === 'sm') return /*#__PURE__*/_react.default.createElement(_sm.default, Object.assign({}, props, {
|
|
90
|
+
isReadOnly: this.props.isReadOnly,
|
|
91
|
+
column: column
|
|
92
|
+
}));
|
|
93
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
94
|
+
query: '(min-width: 768px)'
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(_large.default, Object.assign({}, props, {
|
|
96
|
+
isInModal: isInModal
|
|
97
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
89
98
|
query: '(max-width: 767.8px)'
|
|
90
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
91
|
-
className: className,
|
|
99
|
+
}, /*#__PURE__*/_react.default.createElement(_sm.default, Object.assign({}, props, {
|
|
92
100
|
isReadOnly: this.props.isReadOnly,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
dateFormat: dateFormat,
|
|
96
|
-
showHourAndMinute: showHourAndMinute,
|
|
97
|
-
column: column,
|
|
98
|
-
onValueChanged: this.onValueChanged,
|
|
99
|
-
onClosePopover: this.props.hideCalendar,
|
|
100
|
-
firstDayOfWeek: firstDayOfWeek
|
|
101
|
-
})));
|
|
101
|
+
column: column
|
|
102
|
+
}))));
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
DateEditor.defaultProps = {
|
|
@@ -12,10 +12,10 @@ var _Picker = _interopRequireDefault(require("@seafile/seafile-calendar/lib/Pick
|
|
|
12
12
|
var _seafileCalendar = _interopRequireDefault(require("@seafile/seafile-calendar"));
|
|
13
13
|
var _editorUtils = require("../utils/editor-utils");
|
|
14
14
|
var _constants = require("../constants");
|
|
15
|
-
require("@seafile/seafile-calendar/assets/index.css");
|
|
16
15
|
var _lang = require("../lang");
|
|
16
|
+
require("@seafile/seafile-calendar/assets/index.css");
|
|
17
17
|
let now = (0, _dayjs.default)();
|
|
18
|
-
class
|
|
18
|
+
class Large extends _react.default.Component {
|
|
19
19
|
constructor(props) {
|
|
20
20
|
super(props);
|
|
21
21
|
// event trigger sequence: onOpenChange --> onChange
|
|
@@ -55,7 +55,7 @@ class PCDateEditorPopover extends _react.default.Component {
|
|
|
55
55
|
this.toggleCalendar(open);
|
|
56
56
|
}
|
|
57
57
|
if (isInModal && !open) {
|
|
58
|
-
this.props.
|
|
58
|
+
this.props.onClose && this.props.onClose();
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
this.toggleCalendar = open => {
|
|
@@ -112,7 +112,7 @@ class PCDateEditorPopover extends _react.default.Component {
|
|
|
112
112
|
const {
|
|
113
113
|
isInModal
|
|
114
114
|
} = this.props;
|
|
115
|
-
let onClickRightPanelTime = isInModal ? this.props.
|
|
115
|
+
let onClickRightPanelTime = isInModal ? this.props.onClose : this.closeEditor;
|
|
116
116
|
// we should change value and save it(async function), then close Editor.
|
|
117
117
|
setTimeout(() => {
|
|
118
118
|
onClickRightPanelTime && onClickRightPanelTime();
|
|
@@ -122,7 +122,7 @@ class PCDateEditorPopover extends _react.default.Component {
|
|
|
122
122
|
if (e.keyCode === _constants.KeyCodes.Escape) {
|
|
123
123
|
if (this.props.isInModal) {
|
|
124
124
|
e.stopPropagation();
|
|
125
|
-
this.props.
|
|
125
|
+
this.props.onClose && this.props.onClose();
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
};
|
|
@@ -261,4 +261,4 @@ class PCDateEditorPopover extends _react.default.Component {
|
|
|
261
261
|
}));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
var _default = exports.default =
|
|
264
|
+
var _default = exports.default = Large;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-date {
|
|
2
|
+
width: 28px;
|
|
3
|
+
height: 30px;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
line-height: 30px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-date-panel {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-selected-day .rc-calendar-date {
|
|
14
|
+
background-color: #FcEcD9;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-date:hover,
|
|
18
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-year-panel-year:hover,
|
|
19
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-month-panel-cell .rc-calendar-month-panel-month:hover {
|
|
20
|
+
background-color: #FcEcD9;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-selected-date .rc-calendar-date,
|
|
24
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-selected-date .rc-calendar-date:hover,
|
|
25
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year,
|
|
26
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month {
|
|
27
|
+
background-color: #f09f3f;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-next-year-btn:not([href]):not([tabindex]),
|
|
31
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-prev-year-btn:not([href]):not([tabindex]),
|
|
32
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-next-month-btn:not([href]):not([tabindex]),
|
|
33
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-prev-month-btn:not([href]):not([tabindex]) {
|
|
34
|
+
color: #999;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-next-year-btn:not([href]):not([tabindex]):hover,
|
|
38
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-prev-year-btn:not([href]):not([tabindex]):hover,
|
|
39
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-next-month-btn:not([href]):not([tabindex]):hover,
|
|
40
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-prev-month-btn:not([href]):not([tabindex]):hover {
|
|
41
|
+
color: #666;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-today .rc-calendar-date {
|
|
45
|
+
border: none;
|
|
46
|
+
position: relative;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rc-calendar-today .rc-calendar-date::after {
|
|
50
|
+
content: '';
|
|
51
|
+
background: #f09f3f;
|
|
52
|
+
position: absolute;
|
|
53
|
+
width: 4px;
|
|
54
|
+
height: 4px;
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
left: 45%;
|
|
57
|
+
bottom: 0%;
|
|
58
|
+
display: inline-block;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar .rdg-editor-container input.editor-main[readonly] {
|
|
62
|
+
background-color: #fff;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-time-picker {
|
|
66
|
+
z-index: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-right-panel-body ul li.highlight {
|
|
70
|
+
margin: 0;
|
|
71
|
+
border: none;
|
|
72
|
+
background-color: #fff;
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar {
|
|
77
|
+
box-shadow: none;
|
|
78
|
+
border-radius: 0px;
|
|
79
|
+
border: 1px solid #e9e9e9;
|
|
80
|
+
border-left: none;
|
|
81
|
+
border-right: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-date {
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-date-panel {
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-body {
|
|
93
|
+
height: 22rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-table tr {
|
|
97
|
+
height: 3rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-prev-month-btn,
|
|
101
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-next-month-btn,
|
|
102
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-prev-year-btn,
|
|
103
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-next-year-btn {
|
|
104
|
+
font-size: 30px;
|
|
105
|
+
width: 50px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-header {
|
|
109
|
+
border-bottom: none;
|
|
110
|
+
margin-top: 0.5rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-year-select,
|
|
114
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-month-select,
|
|
115
|
+
.dtable-ui.mobile-dtable-ui-date-editor-picker .rc-calendar-day-select {
|
|
116
|
+
font-size: 16px;
|
|
117
|
+
padding: 5px;
|
|
118
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@import url('./custom-rc-calendar.css');
|
|
2
|
+
@import url('../../css/mb-cell-editor.css');
|
|
3
|
+
|
|
4
|
+
.mobile-dtable-ui-date-editor .mobile-dtable-ui-date-editor-input {
|
|
5
|
+
display: flex;
|
|
6
|
+
border-bottom: 1px solid #e9e9e9;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mobile-dtable-ui-date-editor .mobile-dtable-ui-date-editor-input .date-input {
|
|
10
|
+
flex: 1;
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mobile-dtable-ui-date-editor .mobile-dtable-ui-date-editor-input .date-input .date-input-day {
|
|
15
|
+
background-color: #f5f5f5;
|
|
16
|
+
border: 1px solid #e9e9e9;
|
|
17
|
+
margin: 10px;
|
|
18
|
+
padding: 3px 5px;
|
|
19
|
+
border-radius: 3px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.mobile-dtable-ui-date-editor .dtable-ui.mobile-dtable-ui-date-editor-picker {
|
|
23
|
+
display: block;
|
|
24
|
+
position: relative;
|
|
25
|
+
margin-top: 20px;
|
|
26
|
+
line-height: 1.5;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mobile-dtable-ui-date-editor .mobile-dtable-ui-date-editor-clear {
|
|
31
|
+
padding: 10px 0;
|
|
32
|
+
border-bottom: 1px solid #e9e9e9;
|
|
33
|
+
text-align: center;
|
|
34
|
+
color: #d27053;
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dtable-ui .am-picker-popup-header .am-picker-popup-item {
|
|
39
|
+
color: #E5A252;
|
|
40
|
+
}
|
|
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _datePicker = _interopRequireDefault(require("antd-mobile/lib/date-picker"));
|
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
|
10
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
12
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
12
13
|
var _seafileCalendar = _interopRequireDefault(require("@seafile/seafile-calendar"));
|
|
13
14
|
var SeaDatePicker = _interopRequireWildcard(require("@seafile/seafile-calendar/lib/Picker"));
|
|
14
|
-
var _DatePicker = _interopRequireDefault(require("../../DatePicker"));
|
|
15
15
|
var _lang = require("../../lang");
|
|
16
16
|
var _editorUtils = require("../../utils/editor-utils");
|
|
17
|
-
var
|
|
17
|
+
var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
|
|
18
18
|
require("@seafile/seafile-calendar/assets/index.css");
|
|
19
19
|
require("./index.css");
|
|
20
20
|
class DateEditorPopover extends _react.default.PureComponent {
|
|
@@ -61,7 +61,7 @@ class DateEditorPopover extends _react.default.PureComponent {
|
|
|
61
61
|
this.props.onValueChanged(datePickerValue.format(dateFormat));
|
|
62
62
|
};
|
|
63
63
|
this.closePopover = () => {
|
|
64
|
-
this.props.
|
|
64
|
+
this.props.onClose();
|
|
65
65
|
};
|
|
66
66
|
this.deleteDate = () => {
|
|
67
67
|
this.props.onValueChanged('');
|
|
@@ -77,16 +77,6 @@ class DateEditorPopover extends _react.default.PureComponent {
|
|
|
77
77
|
});
|
|
78
78
|
this.props.onValueChanged(value.format(dateFormat));
|
|
79
79
|
};
|
|
80
|
-
this.onContainerClick = event => {
|
|
81
|
-
if (this.editorPopover && this.editorPopover.contains(event.target)) {
|
|
82
|
-
event.stopPropagation();
|
|
83
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
this.setEditorPopover = editorPopover => {
|
|
88
|
-
this.editorPopover = editorPopover;
|
|
89
|
-
};
|
|
90
80
|
this.getCalendarContainer = () => {
|
|
91
81
|
return this.calendarContainerRef.current;
|
|
92
82
|
};
|
|
@@ -179,25 +169,20 @@ class DateEditorPopover extends _react.default.PureComponent {
|
|
|
179
169
|
const {
|
|
180
170
|
datePickerValue
|
|
181
171
|
} = this.state;
|
|
182
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
onRightClick: this.props.onClosePopover
|
|
194
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
195
|
-
className: "dtable-ui-mb-editor-body dtable-ui-mb-date-editor-body"
|
|
196
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
197
|
-
className: "mb-date-editor-input"
|
|
172
|
+
return /*#__PURE__*/_react.default.createElement(_MobileFullScreenPage.default, {
|
|
173
|
+
className: "mobile-dtable-ui-date-editor",
|
|
174
|
+
onClose: this.props.onClose,
|
|
175
|
+
onLeftClick: this.props.onClose,
|
|
176
|
+
onRightClick: this.props.onClose
|
|
177
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _lang.getLocale)('Cancel')), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, column.name), /*#__PURE__*/_react.default.createElement("span", {
|
|
178
|
+
style: {
|
|
179
|
+
color: '#f09f3f'
|
|
180
|
+
}
|
|
181
|
+
}, (0, _lang.getLocale)('Done')), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
182
|
+
className: "mobile-dtable-ui-date-editor-input"
|
|
198
183
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
199
184
|
className: "date-input"
|
|
200
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
185
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
201
186
|
mode: "date",
|
|
202
187
|
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
203
188
|
value: this.state.value,
|
|
@@ -206,7 +191,7 @@ class DateEditorPopover extends _react.default.PureComponent {
|
|
|
206
191
|
className: "date-input-day"
|
|
207
192
|
}, datePickerValue && datePickerValue.format(leftFormat)))), showHourAndMinute && /*#__PURE__*/_react.default.createElement("div", {
|
|
208
193
|
className: "date-input"
|
|
209
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
194
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
210
195
|
mode: "time",
|
|
211
196
|
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
212
197
|
value: this.state.value,
|
|
@@ -214,9 +199,9 @@ class DateEditorPopover extends _react.default.PureComponent {
|
|
|
214
199
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
215
200
|
className: "date-input-day"
|
|
216
201
|
}, datePickerValue && datePickerValue.format(rightFormat))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
217
|
-
className: "dtable-ui
|
|
202
|
+
className: "dtable-ui mobile-dtable-ui-date-editor-picker"
|
|
218
203
|
}, this.renderDataPicker()), /*#__PURE__*/_react.default.createElement("div", {
|
|
219
|
-
className: "
|
|
204
|
+
className: "mobile-dtable-ui-date-editor-clear"
|
|
220
205
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
221
206
|
onClick: this.deleteDate,
|
|
222
207
|
className: "clear-date"
|
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "DEPARTMENT_SELECT_RANGE_MAP", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _dtableUtils.DEPARTMENT_SELECT_RANGE_MAP;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
exports.DEPARTMENT_SELECT_RANGE_OPTIONS = void 0;
|
|
13
|
+
var _dtableUtils = require("dtable-utils");
|
|
7
14
|
const DEPARTMENT_SELECT_RANGE_OPTIONS = exports.DEPARTMENT_SELECT_RANGE_OPTIONS = [{
|
|
8
15
|
name: 'Current_user_department',
|
|
9
16
|
type: 'current_user_department'
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
.departments-container.dtable-ui .expand {
|
|
43
43
|
color: #b5b5b5;
|
|
44
44
|
font-size: 12px;
|
|
45
|
-
transform: scale(0.8);
|
|
46
45
|
cursor: pointer;
|
|
47
46
|
margin-left: 0px !important;
|
|
48
47
|
}
|
|
@@ -65,6 +64,10 @@
|
|
|
65
64
|
align-items: center;
|
|
66
65
|
}
|
|
67
66
|
|
|
67
|
+
.departments-container.dtable-ui .department-item .department-item-fold-btn {
|
|
68
|
+
margin-right: 2px;
|
|
69
|
+
}
|
|
70
|
+
|
|
68
71
|
.departments-container.dtable-ui .department-item:hover {
|
|
69
72
|
background: #f5f5f5;
|
|
70
73
|
color: #212529;
|
|
@@ -100,10 +100,13 @@ function DepartmentMultipleSelect(props) {
|
|
|
100
100
|
checked: inputChecked,
|
|
101
101
|
style: inputStyle,
|
|
102
102
|
onChange: () => {}
|
|
103
|
-
}), hasChild && !searchVal && /*#__PURE__*/_react.default.createElement("
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
}), hasChild && !searchVal && /*#__PURE__*/_react.default.createElement("div", {
|
|
104
|
+
onClick: event => onExpand(event, id, isExpanded),
|
|
105
|
+
role: "button",
|
|
106
|
+
className: "department-item-fold-btn"
|
|
107
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
108
|
+
className: "dtable-font expand dtable-icon-down3 ".concat(isExpanded ? '' : 'rotate-270')
|
|
109
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
107
110
|
style: searchVal ? {} : nameStyle,
|
|
108
111
|
title: name,
|
|
109
112
|
className: "text-truncate"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
10
|
+
var _lg = _interopRequireDefault(require("./lg"));
|
|
11
|
+
var _sm = _interopRequireDefault(require("./sm"));
|
|
12
|
+
const DepartmentEditor = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
size,
|
|
15
|
+
...props
|
|
16
|
+
} = _ref;
|
|
17
|
+
if (size === 'lg') return /*#__PURE__*/_react.default.createElement(_lg.default, props);
|
|
18
|
+
if (size === 'sm') return /*#__PURE__*/_react.default.createElement(_sm.default, props);
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
20
|
+
query: '(min-width: 768px)'
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(_lg.default, props)), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
22
|
+
query: '(max-width: 767.8px)'
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_sm.default, props)));
|
|
24
|
+
};
|
|
25
|
+
var _default = exports.default = DepartmentEditor;
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
|
-
var _Loading = _interopRequireDefault(require("
|
|
12
|
-
var _utils = require("
|
|
13
|
-
var _lang = require("
|
|
11
|
+
var _Loading = _interopRequireDefault(require("../../Loading"));
|
|
12
|
+
var _utils = require("../utils");
|
|
13
|
+
var _lang = require("../../lang");
|
|
14
14
|
require("./index.css");
|
|
15
15
|
class DepartmentSingleSelect extends _react.Component {
|
|
16
16
|
constructor(props) {
|
|
@@ -151,10 +151,13 @@ class DepartmentSingleSelect extends _react.Component {
|
|
|
151
151
|
style: itemStyle
|
|
152
152
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
153
153
|
className: "department-item-left-content d-flex align-items-center"
|
|
154
|
-
}, hasChild && /*#__PURE__*/_react.default.createElement("
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
}, hasChild && /*#__PURE__*/_react.default.createElement("div", {
|
|
155
|
+
onClick: event => this.onExpand(event, id, isExpanded),
|
|
156
|
+
role: "button",
|
|
157
|
+
className: "department-item-fold-btn"
|
|
158
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
159
|
+
className: "dtable-font expand dtable-icon-down3 ".concat(isExpanded ? '' : 'rotate-270')
|
|
160
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
158
161
|
style: nameStyle,
|
|
159
162
|
title: name,
|
|
160
163
|
className: "text-truncate department-name"
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
margin-left: 4px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.dtable-ui.department-editor-list .department-item-left-content .department-item-fold-btn {
|
|
42
|
+
margin-right: 2px;
|
|
43
|
+
}
|
|
44
|
+
|
|
41
45
|
.dtable-ui.department-editor-list .department-check-icon .dtable-icon-check-mark {
|
|
42
46
|
font-size: 12px;
|
|
43
47
|
color: #798d99;
|
|
@@ -64,19 +68,24 @@
|
|
|
64
68
|
color: #212529;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
.dtable-ui.department-editor-list .editor-department-container .
|
|
71
|
+
.dtable-ui.department-editor-list .editor-department-container .dtable-icon-down3 {
|
|
68
72
|
color: #b5b5b5;
|
|
69
73
|
font-size: 12px;
|
|
70
|
-
transform: scale(0.8);
|
|
74
|
+
transform: scale(0.8) rotate(-90deg);
|
|
75
|
+
|
|
71
76
|
cursor: pointer;
|
|
72
77
|
display: inline-block;
|
|
73
78
|
margin-left: 0px !important;
|
|
74
79
|
}
|
|
75
80
|
|
|
76
|
-
.dtable-ui.department-editor-list .editor-department-container .
|
|
81
|
+
.dtable-ui.department-editor-list .editor-department-container .dtable-icon-down3:hover {
|
|
77
82
|
color: #555;
|
|
78
83
|
}
|
|
79
84
|
|
|
85
|
+
.dtable-ui.department-editor-list .editor-department-container .dtable-icon-down3.expand {
|
|
86
|
+
transform: scale(0.8);
|
|
87
|
+
}
|
|
88
|
+
|
|
80
89
|
.selected-departments.dtable-ui {
|
|
81
90
|
background-color: #f6f6f6;
|
|
82
91
|
padding: 5px;
|
|
@@ -7,23 +7,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _DTablePopover = _interopRequireDefault(require("
|
|
11
|
-
var _constants = require("./constants");
|
|
10
|
+
var _DTablePopover = _interopRequireDefault(require("../../DTablePopover"));
|
|
12
11
|
var _departmentSingleSelect = _interopRequireDefault(require("./department-single-select"));
|
|
13
|
-
var _lang = require("../lang");
|
|
14
12
|
require("./index.css");
|
|
15
|
-
class
|
|
13
|
+
class Large extends _react.Component {
|
|
16
14
|
constructor(props) {
|
|
17
15
|
super(props);
|
|
18
16
|
this.onCommit = value => {
|
|
19
17
|
const {
|
|
20
|
-
onCommit
|
|
21
|
-
column
|
|
18
|
+
onCommit
|
|
22
19
|
} = this.props;
|
|
23
20
|
this.setState({
|
|
24
21
|
value
|
|
25
22
|
}, () => {
|
|
26
|
-
this.isRowExpand ? onCommit(
|
|
23
|
+
this.isRowExpand ? onCommit(value) : onCommit();
|
|
27
24
|
});
|
|
28
25
|
};
|
|
29
26
|
this.getValue = () => {
|
|
@@ -31,28 +28,14 @@ class DepartmentSingleSelectEditor extends _react.Component {
|
|
|
31
28
|
updated[this.props.column.key] = this.state.value;
|
|
32
29
|
return updated;
|
|
33
30
|
};
|
|
34
|
-
this.createSpecificDepartments = () => {
|
|
35
|
-
return _constants.DEPARTMENT_SELECT_RANGE_OPTIONS.slice(0, 2).map(option => {
|
|
36
|
-
const {
|
|
37
|
-
type,
|
|
38
|
-
name
|
|
39
|
-
} = option;
|
|
40
|
-
return {
|
|
41
|
-
value: type,
|
|
42
|
-
label: /*#__PURE__*/_react.default.createElement("span", {
|
|
43
|
-
className: "text-truncate department-name"
|
|
44
|
-
}, (0, _lang.getLocale)(name))
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
31
|
const {
|
|
49
|
-
column
|
|
32
|
+
column,
|
|
50
33
|
isInModal,
|
|
51
34
|
value: _value,
|
|
52
35
|
height
|
|
53
36
|
} = props;
|
|
54
|
-
const editorWidth =
|
|
55
|
-
const data =
|
|
37
|
+
const editorWidth = column.width > 300 ? column.width : 300;
|
|
38
|
+
const data = column.data || {};
|
|
56
39
|
this.state = {
|
|
57
40
|
value: _value || '',
|
|
58
41
|
menuStyle: isInModal ? {} : {
|
|
@@ -103,4 +86,4 @@ class DepartmentSingleSelectEditor extends _react.Component {
|
|
|
103
86
|
}, dom)) : dom;
|
|
104
87
|
}
|
|
105
88
|
}
|
|
106
|
-
var _default = exports.default =
|
|
89
|
+
var _default = exports.default = Large;
|