dtable-ui-component 6.0.29-beta2 → 6.0.29-beta4
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 +24 -118
- package/lib/CheckboxEditor/mb-editor.js +101 -0
- package/lib/CheckboxEditor/pc-editor.js +118 -0
- package/lib/CheckboxFormatter/index.css +1 -1
- package/lib/CheckboxFormatter/index.js +10 -25
- package/lib/CollaboratorEditor/index.js +23 -11
- package/lib/CollaboratorEditor/mb-editor/index.css +41 -0
- package/lib/CollaboratorEditor/mb-editor/index.js +88 -0
- package/lib/DTableCommonAddTool/index.js +1 -3
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +6 -6
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +6 -6
- package/lib/DateEditor/index.js +69 -95
- package/lib/DateEditor/mb-editor/custom-rc-calendar.css +118 -0
- package/lib/DateEditor/mb-editor/index.css +39 -0
- package/lib/DateEditor/mb-editor/index.js +215 -0
- package/lib/DateEditor/{pc-date-editor-popover.js → pc-editor.js} +9 -9
- package/lib/{Department-editor/department-multiple-select → DepartmentMultipleSelectEditor}/index.js +6 -6
- package/lib/DepartmentSingleSelectEditor/index.js +34 -0
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.css +4 -0
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +230 -0
- package/lib/{Department-editor → DepartmentSingleSelectEditor/pc-editor}/department-single-select.js +6 -6
- package/lib/{Department-editor → DepartmentSingleSelectEditor/pc-editor}/index.css +8 -3
- package/lib/{Department-editor → DepartmentSingleSelectEditor/pc-editor}/index.js +8 -25
- package/lib/DigitalSignEditor/index.js +24 -171
- package/lib/DigitalSignEditor/mb-editor/index.css +35 -0
- package/lib/DigitalSignEditor/mb-editor/index.js +144 -0
- package/lib/DigitalSignEditor/pc-editor/index.js +181 -0
- package/lib/FileEditor/files-previewer/index.js +26 -268
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +122 -0
- package/lib/FileEditor/files-previewer/mb-previewer/index.css +39 -0
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +64 -0
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/dropdown-menu.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/file-name-editor/index.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/index.css +0 -2
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/index.js +2 -2
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +276 -0
- package/lib/FileEditor/index.css +0 -5
- package/lib/FileEditor/index.js +26 -265
- package/lib/FileEditor/mb-editor/index.css +10 -0
- package/lib/FileEditor/mb-editor/index.js +136 -0
- package/lib/FileEditor/pc-editor/addition-previewer/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → pc-editor/addition-previewer}/index.js +1 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → pc-editor/addition-previewer}/local-file-addition/index.js +4 -4
- package/lib/FileEditor/pc-editor/index.css +5 -0
- package/lib/FileEditor/pc-editor/index.js +274 -0
- package/lib/FormulaFormatter/index.css +5 -5
- package/lib/GeolocationEditor/index.js +90 -230
- package/lib/GeolocationEditor/map-editor-utils.js +6 -2
- package/lib/GeolocationEditor/mb-editor/country-editor.js +79 -0
- package/lib/GeolocationEditor/mb-editor/index.css +11 -0
- package/lib/GeolocationEditor/mb-editor/index.js +125 -0
- package/lib/GeolocationEditor/mb-editor/location-editor.js +101 -0
- package/lib/GeolocationEditor/mb-editor/map-editor/index.css +11 -0
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +474 -0
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.css +158 -0
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +530 -0
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +77 -0
- package/lib/GeolocationEditor/mb-editor/province-editor.js +76 -0
- package/lib/GeolocationEditor/{country-editor.js → pc-editor/country-editor.js} +5 -50
- package/lib/GeolocationEditor/{index.css → pc-editor/index.css} +3 -4
- package/lib/GeolocationEditor/pc-editor/index.js +247 -0
- package/lib/GeolocationEditor/{location-editor.js → pc-editor/location-editor.js} +8 -41
- package/lib/GeolocationEditor/{map-editor → pc-editor/map-editor}/index.js +6 -6
- package/lib/GeolocationEditor/{map-editor → pc-editor/map-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → pc-editor/map-selection-editor}/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → pc-editor/map-selection-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{province-city-editor.js → pc-editor/province-city-editor.js} +7 -38
- package/lib/GeolocationEditor/{province-editor.js → pc-editor/province-editor.js} +7 -31
- package/lib/GeolocationEditor/{selector-header-item.js → pc-editor/selector-header-item.js} +1 -1
- package/lib/ImageEditor/images-previewer/image-preview/index.js +3 -3
- package/lib/ImageEditor/images-previewer/index.js +9 -4
- package/lib/ImageEditor/index.css +17 -16
- package/lib/ImageEditor/index.js +26 -185
- package/lib/ImageEditor/mb-editor/index.css +29 -0
- package/lib/ImageEditor/mb-editor/index.js +136 -0
- package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/image-link/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/local-image-addition/index.js +4 -4
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +140 -0
- package/lib/ImageEditor/pc-editor/index.css +24 -0
- package/lib/ImageEditor/pc-editor/index.js +194 -0
- package/lib/ImageThumbnail/index.js +2 -1
- package/lib/LinkEditor/index.js +5 -5
- package/lib/LinkEditor/{mb-link-editor-popover → mb-popover}/index.css +1 -1
- package/lib/MobileFullScreenPage/body/index.css +9 -0
- package/lib/MobileFullScreenPage/body/index.js +23 -0
- package/lib/MobileFullScreenPage/header/index.css +39 -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/MobileSelector/empty/index.css +3 -0
- package/lib/MobileSelector/empty/index.js +23 -0
- package/lib/MobileSelector/index.css +32 -0
- package/lib/MobileSelector/index.js +57 -0
- package/lib/MobileSelector/option/index.css +28 -0
- package/lib/MobileSelector/option/index.js +36 -0
- package/lib/MobileSelector/options/index.css +8 -0
- package/lib/MobileSelector/options/index.js +18 -0
- package/lib/MobileSelector/search/index.css +7 -0
- package/lib/MobileSelector/search/index.js +26 -0
- package/lib/MobileUpload/index.css +1 -0
- package/lib/MobileUpload/index.js +160 -0
- package/lib/MultipleSelectEditor/index.js +9 -14
- package/lib/RowExpand/index.js +24 -0
- package/lib/RowExpand/mb-expand/body/index.css +173 -0
- package/lib/RowExpand/mb-expand/body/index.js +111 -0
- package/lib/RowExpand/mb-expand/column-content/index.css +27 -0
- package/lib/RowExpand/mb-expand/column-content/index.js +25 -0
- package/lib/RowExpand/mb-expand/index.css +0 -0
- package/lib/RowExpand/mb-expand/index.js +178 -0
- package/lib/{RowExpandDialog → RowExpand/pc-expand}/body/index.js +4 -4
- package/lib/{RowExpandDialog → RowExpand/pc-expand}/column-content/index.js +2 -2
- package/lib/{RowExpandDialog → RowExpand/pc-expand}/header/index.js +3 -3
- package/lib/{RowExpandDialog → RowExpand/pc-expand}/index.js +8 -6
- package/lib/RowExpandEditor/add-btn/index.js +24 -0
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.css +3 -0
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +19 -0
- package/lib/RowExpandEditor/{RowExpandAddBtn → add-btn/pc-add-btn}/index.js +6 -4
- package/lib/RowExpandEditor/checkbox-editor/index.js +25 -0
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.css +6 -0
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +39 -0
- package/lib/RowExpandEditor/{RowExpandCheckboxEditor/index.js → checkbox-editor/pc-editor.js} +2 -3
- package/lib/RowExpandEditor/collaborator-editor/index.js +24 -0
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.css +9 -0
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +163 -0
- package/lib/RowExpandEditor/{RowExpandCollaboratorEditor → collaborator-editor/pc-editor}/index.css +1 -1
- package/lib/RowExpandEditor/{RowExpandCollaboratorEditor → collaborator-editor/pc-editor}/index.js +6 -7
- package/lib/RowExpandEditor/constants.js +34 -34
- package/lib/RowExpandEditor/date-editor/index.js +24 -0
- package/lib/RowExpandEditor/date-editor/mb-editor.js +82 -0
- package/lib/RowExpandEditor/{RowExpandDateEditor/index.js → date-editor/pc-editor.js} +2 -2
- package/lib/RowExpandEditor/department-editor/index.js +24 -0
- package/lib/RowExpandEditor/department-editor/mb-editor.js +65 -0
- package/lib/RowExpandEditor/{RowExpandDepartmentEditor/index.js → department-editor/pc-editor.js} +11 -14
- package/lib/RowExpandEditor/digital-sign-editor/index.js +24 -0
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.css +1 -0
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +130 -0
- package/lib/RowExpandEditor/{RowExpandDigitalSignEditor → digital-sign-editor/pc-editor}/index.css +1 -1
- package/lib/RowExpandEditor/{RowExpandDigitalSignEditor → digital-sign-editor/pc-editor}/index.js +11 -11
- package/lib/RowExpandEditor/duration-editor/index.js +24 -0
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +71 -0
- package/lib/RowExpandEditor/{RowExpandDurationEditor/index.js → duration-editor/pc-editor.js} +2 -2
- package/lib/RowExpandEditor/email-editor/index.js +24 -0
- package/lib/RowExpandEditor/email-editor/mb-editor/index.css +1 -0
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +84 -0
- package/lib/RowExpandEditor/email-editor/pc-editor/index.css +1 -0
- package/lib/RowExpandEditor/{RowExpandEmailEditor → email-editor/pc-editor}/index.js +3 -3
- package/lib/RowExpandEditor/file-editor/index.js +24 -0
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +114 -0
- package/lib/RowExpandEditor/file-editor/pc-editor/index.css +1 -0
- package/lib/RowExpandEditor/{RowExpandFileEditor → file-editor/pc-editor}/index.js +9 -9
- package/lib/RowExpandEditor/geolocation-editor/index.js +24 -0
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +100 -0
- package/lib/RowExpandEditor/{RowExpandGeolocationEditor → geolocation-editor/pc-editor}/index.js +10 -11
- package/lib/RowExpandEditor/image-editor/index.js +24 -0
- package/lib/RowExpandEditor/image-editor/mb-editor/index.css +30 -0
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +109 -0
- package/lib/RowExpandEditor/{RowExpandImageEditor → image-editor/pc-editor}/index.js +9 -9
- package/lib/RowExpandEditor/long-text-editor/index.js +24 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.css +10 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +80 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.css +3 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +91 -0
- package/lib/RowExpandEditor/{RowExpandLongTextEditor → long-text-editor/pc-editor}/index.js +7 -7
- package/lib/RowExpandEditor/multiple-select-editor/index.js +24 -0
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +154 -0
- package/lib/RowExpandEditor/{RowExpandMultipleSelectEditor → multiple-select-editor/pc-editor}/index.css +1 -1
- package/lib/RowExpandEditor/{RowExpandMultipleSelectEditor → multiple-select-editor/pc-editor}/index.js +6 -6
- package/lib/RowExpandEditor/number-editor/index.js +24 -0
- package/lib/RowExpandEditor/number-editor/mb-editor/index.css +3 -0
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +76 -0
- package/lib/RowExpandEditor/{RowExpandNumberEditor/index.js → number-editor/pc-editor.js} +2 -2
- package/lib/RowExpandEditor/rate-editor/index.css +34 -0
- package/lib/RowExpandEditor/rate-editor/index.js +25 -0
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +92 -0
- package/lib/RowExpandEditor/{RowExpandRateEditor/index.js → rate-editor/pc-editor.js} +2 -3
- package/lib/RowExpandEditor/right-angle/index.css +6 -0
- package/lib/RowExpandEditor/right-angle/index.js +17 -0
- package/lib/RowExpandEditor/single-select-editor/index.js +24 -0
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.css +8 -0
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +134 -0
- package/lib/RowExpandEditor/{RowExpandSingleSelectorEditor → single-select-editor/pc-editor}/index.js +17 -17
- package/lib/RowExpandEditor/text-editor/index.js +24 -0
- package/lib/RowExpandEditor/text-editor/mb-editor/index.css +14 -0
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +37 -0
- package/lib/RowExpandEditor/{RowExpandTextEditor → text-editor/pc-editor}/index.js +7 -7
- package/lib/RowExpandEditor/url-editor/index.js +24 -0
- package/lib/RowExpandEditor/url-editor/mb-editor/index.css +17 -0
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +87 -0
- package/lib/RowExpandEditor/{RowExpandUrlEditor → url-editor/pc-editor}/index.js +6 -6
- package/lib/RowExpandFormatter/constants.js +17 -17
- package/lib/RowExpandFormatter/department-formatter/index.js +19 -0
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +20 -0
- package/lib/RowExpandFormatter/{RowExpandDepartmentFormatter/index.js → department-formatter/pc-formatter.js} +2 -2
- package/lib/RowExpandFormatter/{RowExpandEmailFormatter → email-formatter}/index.css +4 -4
- package/lib/RowExpandFormatter/index.css +33 -18
- package/lib/RowExpandFormatter/index.js +1 -1
- package/lib/RowExpandFormatter/rate-formatter/index.css +5 -0
- package/lib/SelectItem/index.js +57 -33
- package/lib/{Department-editor/selected-departments → SelectedDepartments}/index.css +0 -1
- package/lib/{Department-editor/selected-departments → SelectedDepartments}/index.js +3 -3
- package/lib/SingleSelectEditor/index.js +9 -14
- package/lib/SvgIcon/index.js +15 -20
- package/lib/constants/index.js +3 -2
- package/lib/css/mb-cell-editor.css +1 -1
- package/lib/index.js +71 -8
- package/lib/locales/de.json +3 -1
- package/lib/locales/en.json +3 -1
- package/lib/locales/es.json +3 -1
- package/lib/locales/fr.json +3 -1
- package/lib/locales/pt.json +3 -1
- package/lib/locales/ru.json +3 -1
- package/lib/locales/zh-CN.json +3 -1
- package/lib/select-editor/index.js +27 -20
- package/lib/select-editor/mb-editor/index.css +1 -0
- package/lib/select-editor/mb-editor/index.js +105 -0
- package/lib/select-editor/{pc-select-editor → pc-editor}/index.css +1 -1
- package/lib/select-editor/{pc-select-editor → pc-editor}/index.js +7 -7
- package/lib/utils/editor-utils.js +6 -2
- package/lib/utils/get-event-transfer.js +2 -1
- package/lib/utils/utils.js +11 -2
- package/package.json +2 -2
- 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/DateEditor/mb-date-editor-popover/index.js +0 -226
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
- package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +0 -5
- package/lib/assets/icons/check.svg +0 -12
- package/lib/assets/icons/cross.svg +0 -13
- package/lib/assets/icons/dot.svg +0 -9
- 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 → pc-editor}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-editor}/index.js +0 -0
- /package/lib/{Department-editor/department-multiple-select → DepartmentMultipleSelectEditor}/index.css +0 -0
- /package/lib/DigitalSignEditor/{index.css → pc-editor/index.css} +0 -0
- /package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/file-name-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-editor → pc-editor/map-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-selection-editor → pc-editor/map-selection-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{parse-geolocation.js → pc-editor/parse-geolocation.js} +0 -0
- /package/lib/GeolocationEditor/{selector-list.js → pc-editor/selector-list.js} +0 -0
- /package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/image-link/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/local-image-addition/index.css +0 -0
- /package/lib/LinkEditor/{mb-link-editor-popover → mb-popover}/index.js +0 -0
- /package/lib/LinkEditor/{pc-link-editor-popover → pc-popover}/index.css +0 -0
- /package/lib/LinkEditor/{pc-link-editor-popover → pc-popover}/index.js +0 -0
- /package/lib/{RowExpandDialog → RowExpand/pc-expand}/body/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/pc-expand}/column-content/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/pc-expand}/header/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/pc-expand}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandAddBtn → add-btn/pc-add-btn}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandCheckboxEditor → checkbox-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandGeolocationEditor → geolocation-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandImageEditor → image-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandLongTextEditor → long-text-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandSingleSelectorEditor → single-select-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandTextEditor → text-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandUrlEditor → url-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandEmailFormatter → email-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFileFormatter → file-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFileFormatter → file-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFileFormatter → file-formatter}/row-expand-file-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFormulaFormatter → formula-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandImageFormatter → image-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandImageFormatter → image-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandImageFormatter → image-formatter}/row-expand-image-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/collaborator-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/value-display-utils.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandRateFormatter → rate-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandUrlFormatter → url-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandUrlFormatter → url-formatter}/index.js +0 -0
- /package/lib/{Department-editor/constants.js → constants/departments.js} +0 -0
- /package/lib/{Department-editor/utils.js → utils/departments.js} +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
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 _lang = require("../../lang");
|
|
10
|
+
var _SelectItem = _interopRequireDefault(require("../../SelectItem"));
|
|
11
|
+
var _MobileSelector = _interopRequireDefault(require("../../MobileSelector"));
|
|
12
|
+
var _DTableCommonAddTool = _interopRequireDefault(require("../../DTableCommonAddTool"));
|
|
13
|
+
require("./index.css");
|
|
14
|
+
const {
|
|
15
|
+
Search,
|
|
16
|
+
Option,
|
|
17
|
+
Options,
|
|
18
|
+
Empty
|
|
19
|
+
} = _MobileSelector.default;
|
|
20
|
+
class MBSelectEditor extends _react.default.Component {
|
|
21
|
+
constructor(props) {
|
|
22
|
+
super(props);
|
|
23
|
+
this.onChangeSearch = newValue => {
|
|
24
|
+
const {
|
|
25
|
+
searchVal
|
|
26
|
+
} = this.state;
|
|
27
|
+
if (searchVal === newValue) return;
|
|
28
|
+
this.setState({
|
|
29
|
+
searchVal: newValue
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
this.getDisplayOptions = () => {
|
|
33
|
+
const {
|
|
34
|
+
options
|
|
35
|
+
} = this.props;
|
|
36
|
+
const {
|
|
37
|
+
searchVal
|
|
38
|
+
} = this.state;
|
|
39
|
+
return searchVal ? options.filter(item => item.name.indexOf(searchVal) > -1) : options;
|
|
40
|
+
};
|
|
41
|
+
this.onChange = option => {
|
|
42
|
+
this.props.onCommit(option);
|
|
43
|
+
};
|
|
44
|
+
this.onAddNewOption = event => {
|
|
45
|
+
event.stopPropagation();
|
|
46
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
47
|
+
const name = this.state.searchValue.trim();
|
|
48
|
+
if (name) {
|
|
49
|
+
this.props.onAddNewOption(name);
|
|
50
|
+
this.props.onClose && this.props.onClose();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
this.renderOptions = options => {
|
|
54
|
+
const {
|
|
55
|
+
value = [],
|
|
56
|
+
valueKey
|
|
57
|
+
} = this.props;
|
|
58
|
+
return options.map(option => {
|
|
59
|
+
const isSelected = value.includes(option[valueKey]);
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(Option, {
|
|
61
|
+
key: option[valueKey],
|
|
62
|
+
isSelected: isSelected,
|
|
63
|
+
onChange: this.onChange.bind(this, option)
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
|
|
65
|
+
option: option
|
|
66
|
+
}));
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
this.state = {
|
|
70
|
+
searchVal: ''
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
const {
|
|
75
|
+
column,
|
|
76
|
+
isSupportNewOption,
|
|
77
|
+
options,
|
|
78
|
+
onAddNewOption
|
|
79
|
+
} = this.props;
|
|
80
|
+
const {
|
|
81
|
+
searchVal
|
|
82
|
+
} = this.state;
|
|
83
|
+
const displayOptions = this.getDisplayOptions();
|
|
84
|
+
const isShowCreateBtn = isSupportNewOption && onAddNewOption && !!searchVal && !options.find(item => item.name !== searchVal);
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(_MobileSelector.default, {
|
|
86
|
+
onClose: this.props.onClose,
|
|
87
|
+
title: column.name,
|
|
88
|
+
className: "dtable-ui-mobile-select-editor"
|
|
89
|
+
}, options.length > 10 && /*#__PURE__*/_react.default.createElement(Search, {
|
|
90
|
+
value: searchVal,
|
|
91
|
+
placeholder: (0, _lang.getLocale)('Search_option'),
|
|
92
|
+
onChange: this.onChangeSearch
|
|
93
|
+
}), /*#__PURE__*/_react.default.createElement(Options, null, displayOptions.length === 0 && /*#__PURE__*/_react.default.createElement(Empty, null, (0, _lang.getLocale)('No_options_available')), displayOptions.length > 0 && this.renderOptions(displayOptions), isShowCreateBtn && /*#__PURE__*/_react.default.createElement(_DTableCommonAddTool.default, {
|
|
94
|
+
footerName: (0, _lang.getLocale)('Add_option'),
|
|
95
|
+
callBack: this.onAddNewOption
|
|
96
|
+
})));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
MBSelectEditor.defaultProps = {
|
|
100
|
+
isShowRemoveIcon: false,
|
|
101
|
+
isSupportNewOption: false,
|
|
102
|
+
value: [],
|
|
103
|
+
valueKey: 'id'
|
|
104
|
+
};
|
|
105
|
+
var _default = exports.default = MBSelectEditor;
|
|
@@ -45,7 +45,7 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
45
45
|
option = this.filteredOptions[this.state.highlightIndex];
|
|
46
46
|
}
|
|
47
47
|
if (option) {
|
|
48
|
-
this.
|
|
48
|
+
this.onChange(option);
|
|
49
49
|
} else {
|
|
50
50
|
const {
|
|
51
51
|
searchValue
|
|
@@ -103,18 +103,18 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
103
103
|
this.setState({
|
|
104
104
|
searchValue
|
|
105
105
|
});
|
|
106
|
-
|
|
106
|
+
const val = searchValue.toLowerCase();
|
|
107
107
|
this.filteredOptions = val ? options.filter(item => item.name && item.name.toLowerCase().indexOf(val) > -1) : options;
|
|
108
108
|
this.setState({
|
|
109
109
|
highlightIndex: this.filteredOptions.length > 0 ? 0 : -1
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
this.onAddNewOption = () => {
|
|
113
|
-
|
|
113
|
+
const name = this.state.searchValue.trim();
|
|
114
114
|
this.props.onAddNewOption(name);
|
|
115
115
|
};
|
|
116
|
-
this.
|
|
117
|
-
this.props.onCommit(
|
|
116
|
+
this.onChange = option => {
|
|
117
|
+
this.props.onCommit(option);
|
|
118
118
|
};
|
|
119
119
|
this.onMenuMouseEnter = index => {
|
|
120
120
|
this.setState({
|
|
@@ -231,7 +231,7 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
231
231
|
onChange: this.onValueChanged,
|
|
232
232
|
autoFocus: true
|
|
233
233
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
234
|
-
className: "select-options-container",
|
|
234
|
+
className: "select-dtable-ui-mobile-selector-options-container",
|
|
235
235
|
ref: ref => this.container = ref
|
|
236
236
|
}, this.filteredOptions.length > 0 && this.filteredOptions.map((option, index) => {
|
|
237
237
|
let optionStyle = this.getOptionStyle(option);
|
|
@@ -248,7 +248,7 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
248
248
|
className: (0, _classnames.default)('select-option-item-container', {
|
|
249
249
|
'select-option-item-container-highlight': index === highlightIndex
|
|
250
250
|
}),
|
|
251
|
-
onMouseDown: this.
|
|
251
|
+
onMouseDown: this.onChange.bind(this, option),
|
|
252
252
|
onMouseEnter: this.onMenuMouseEnter.bind(this, index),
|
|
253
253
|
onMouseLeave: this.onMenuMouseLeave.bind(this, index)
|
|
254
254
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.initDateEditorLanguage = exports.getTrimmedString = exports.getSelectOptionItem = void 0;
|
|
6
|
+
exports.minDate = exports.maxDate = exports.initDateEditorLanguage = exports.getTrimmedString = exports.getSelectOptionItem = void 0;
|
|
7
7
|
const zhCN = require('@seafile/seafile-calendar/lib/locale/zh_CN');
|
|
8
8
|
const zhTW = require('@seafile/seafile-calendar/lib/locale/zh_TW');
|
|
9
9
|
const enUS = require('@seafile/seafile-calendar/lib/locale/en_US');
|
|
@@ -66,4 +66,8 @@ exports.getSelectOptionItem = getSelectOptionItem;
|
|
|
66
66
|
const getTrimmedString = value => {
|
|
67
67
|
return typeof value === 'string' ? value.trim() : '';
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
// min date and max date for mobile date picker
|
|
71
|
+
exports.getTrimmedString = getTrimmedString;
|
|
72
|
+
const minDate = exports.minDate = new Date('1900/01/01');
|
|
73
|
+
const maxDate = exports.maxDate = new Date('2100/12/31');
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _constants = require("../constants");
|
|
7
8
|
const HTML = 'text/html';
|
|
8
9
|
const TEXT = 'text/plain';
|
|
9
10
|
// const FILES = 'files';
|
|
@@ -36,7 +37,7 @@ function getEventTransfer(event) {
|
|
|
36
37
|
let html;
|
|
37
38
|
let text;
|
|
38
39
|
let files;
|
|
39
|
-
if (
|
|
40
|
+
if (_constants.isMobile) {
|
|
40
41
|
if (window.dtableTransfer) {
|
|
41
42
|
text = window.dtableTransfer['TEXT'];
|
|
42
43
|
}
|
package/lib/utils/utils.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getTrimmedString = exports.getFormulaArrayValue = exports.getEventClassName = exports.getErrorMsg = exports.downloadFiles = exports.downloadFile = exports.debounce = void 0;
|
|
7
7
|
exports.isArrayFormatColumn = isArrayFormatColumn;
|
|
8
|
-
exports.throttle = exports.openUrlLink = exports.isValidUrl = exports.isValidCellValue = exports.
|
|
8
|
+
exports.throttle = exports.openUrlLink = exports.isValidUrl = exports.isValidCellValue = exports.isQQBuiltInBrowser = exports.isMac = exports.isIPhone = exports.isFunction = void 0;
|
|
9
9
|
var _constants = require("../constants");
|
|
10
10
|
var _url = require("./url");
|
|
11
11
|
const debounce = (fn, wait) => {
|
|
@@ -34,13 +34,22 @@ const throttle = (func, delay) => {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
exports.throttle = throttle;
|
|
37
|
-
const isMobile = exports.isMobile = typeof window !== 'undefined' && (window.innerWidth < 768 || navigator.userAgent.toLowerCase().match(/(ipod|ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null);
|
|
38
37
|
const isMac = () => {
|
|
39
38
|
const platform = navigator.platform;
|
|
40
39
|
// eslint-disable-next-line eqeqeq
|
|
41
40
|
return platform == 'Mac68K' || platform == 'MacPPC' || platform == 'Macintosh' || platform == 'MacIntel';
|
|
42
41
|
};
|
|
43
42
|
exports.isMac = isMac;
|
|
43
|
+
const isQQBuiltInBrowser = () => {
|
|
44
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
45
|
+
return userAgent.indexOf(' qq') > -1 && userAgent.indexOf('mqqbrowser') < 0;
|
|
46
|
+
};
|
|
47
|
+
exports.isQQBuiltInBrowser = isQQBuiltInBrowser;
|
|
48
|
+
const isIPhone = () => {
|
|
49
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
50
|
+
return /iphone/gi.test(userAgent);
|
|
51
|
+
};
|
|
52
|
+
exports.isIPhone = isIPhone;
|
|
44
53
|
const downloadFile = downloadUrl => {
|
|
45
54
|
const downloadFrame = document.getElementById('dtableUiComponentDownloadFrame');
|
|
46
55
|
if (downloadFrame != null) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "6.0.29-
|
|
3
|
+
"version": "6.0.29-beta4",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "4.0.2",
|
|
7
|
-
"@seafile/seafile-calendar": "0.0.
|
|
7
|
+
"@seafile/seafile-calendar": "0.0.29",
|
|
8
8
|
"@seafile/seafile-editor": "~2.0.6",
|
|
9
9
|
"antd-mobile": "2.3.1",
|
|
10
10
|
"classnames": "2.3.2",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
@import url('../../css/mb-cell-editor.css');
|
|
2
|
-
|
|
3
|
-
@media screen and (max-width: 767.8px) {
|
|
4
|
-
.dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items {
|
|
5
|
-
padding: 8px 16px;
|
|
6
|
-
margin-top: 20px;
|
|
7
|
-
border-top: 1px solid #e9e9e9;
|
|
8
|
-
border-bottom: 1px solid #e9e9e9;
|
|
9
|
-
background-color: #fff;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input {
|
|
13
|
-
outline: none;
|
|
14
|
-
height: 30px;
|
|
15
|
-
padding: 0;
|
|
16
|
-
line-height: 30px;
|
|
17
|
-
border: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input:focus,
|
|
21
|
-
.dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input:active {
|
|
22
|
-
outline: none;
|
|
23
|
-
box-shadow: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborators-container {
|
|
27
|
-
flex: 1;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
margin-top: 10px;
|
|
31
|
-
min-height: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborators-container .title {
|
|
35
|
-
padding: 6px 16px;
|
|
36
|
-
border-bottom: 1px solid #e9e9e9;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborators-container .content {
|
|
40
|
-
flex: 1;
|
|
41
|
-
overflow: auto;
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
border-bottom: 1px solid #e9e9e9;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.dtable-ui-mb-collaborator-editor-body .search-result-none {
|
|
48
|
-
padding: 16px 0 16px 16px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
height: 50px;
|
|
56
|
-
padding: 10px 10px 10px 16px;
|
|
57
|
-
font-size: 13px;
|
|
58
|
-
background-color: #fff;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item {
|
|
62
|
-
border-bottom: 1px solid #e9e9e9;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .mb-collaborator-info {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .collaborator-avatar img {
|
|
71
|
-
width: 24px;
|
|
72
|
-
height: 24px;
|
|
73
|
-
border-radius: 50%;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .collaborator-name {
|
|
77
|
-
padding: 0 10px;
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .dtable-font {
|
|
82
|
-
font-size: 12px;
|
|
83
|
-
color: #798d99;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,148 +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.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _dtableUtils = require("dtable-utils");
|
|
10
|
-
var _MBEditorHeader = _interopRequireDefault(require("../../MBEditorHeader"));
|
|
11
|
-
var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
|
|
12
|
-
var _lang = require("../../lang");
|
|
13
|
-
require("./index.css");
|
|
14
|
-
class MBCollaboratorEditor extends _react.default.Component {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
this.handleHistoryBack = e => {
|
|
18
|
-
e.preventDefault();
|
|
19
|
-
this.props.onClosePopover();
|
|
20
|
-
};
|
|
21
|
-
this.onContainerClick = event => {
|
|
22
|
-
if (this.editorPopover && this.editorPopover.contains(event.target)) {
|
|
23
|
-
event.stopPropagation();
|
|
24
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
this.onChangeSearch = newValue => {
|
|
29
|
-
let {
|
|
30
|
-
searchVal
|
|
31
|
-
} = this.state;
|
|
32
|
-
if (searchVal === newValue) return;
|
|
33
|
-
this.setState({
|
|
34
|
-
searchVal: newValue
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
this.getSelectedCollaborators = () => {
|
|
38
|
-
let {
|
|
39
|
-
value,
|
|
40
|
-
collaborators
|
|
41
|
-
} = this.props;
|
|
42
|
-
if (!Array.isArray(value)) {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
return collaborators.filter(collaborator => {
|
|
46
|
-
return value.indexOf(collaborator.email) > -1;
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
this.getFilteredCollaborators = () => {
|
|
50
|
-
let {
|
|
51
|
-
collaborators
|
|
52
|
-
} = this.props;
|
|
53
|
-
let {
|
|
54
|
-
searchVal
|
|
55
|
-
} = this.state;
|
|
56
|
-
return searchVal ? (0, _dtableUtils.searchCollaborators)(collaborators, searchVal) : collaborators;
|
|
57
|
-
};
|
|
58
|
-
this.onCollaboratorClick = collaborator => {
|
|
59
|
-
this.props.onCommit(collaborator);
|
|
60
|
-
};
|
|
61
|
-
this.onRemoveCollaborator = collaborator => {
|
|
62
|
-
this.props.onCommit(collaborator);
|
|
63
|
-
};
|
|
64
|
-
this.renderFilteredCollaborators = collaborators => {
|
|
65
|
-
let {
|
|
66
|
-
value = []
|
|
67
|
-
} = this.props;
|
|
68
|
-
return collaborators.map((collaborator, index) => {
|
|
69
|
-
const isSelected = value.includes(collaborator.email);
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
-
className: "mb-collaborator-option-item",
|
|
72
|
-
key: index,
|
|
73
|
-
onMouseDown: this.onCollaboratorClick.bind(this, collaborator)
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
75
|
-
className: "mb-collaborator-info"
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
77
|
-
className: "collaborator-avatar"
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
79
|
-
src: collaborator.avatar_url,
|
|
80
|
-
width: "24",
|
|
81
|
-
height: "24",
|
|
82
|
-
alt: "avatar"
|
|
83
|
-
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
84
|
-
className: "collaborator-name"
|
|
85
|
-
}, collaborator.name)), isSelected && /*#__PURE__*/_react.default.createElement("i", {
|
|
86
|
-
className: "mb-collaborator-checked dtable-font dtable-icon-check-mark"
|
|
87
|
-
}));
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
this.setEditorPopover = editorPopover => {
|
|
91
|
-
this.editorPopover = editorPopover;
|
|
92
|
-
};
|
|
93
|
-
this.state = {
|
|
94
|
-
searchVal: ''
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
componentDidMount() {
|
|
98
|
-
history.pushState(null, null, '#'); // eslint-disable-line
|
|
99
|
-
window.addEventListener('popstate', this.handleHistoryBack, false);
|
|
100
|
-
}
|
|
101
|
-
componentWillUnmount() {
|
|
102
|
-
window.removeEventListener('popstate', this.handleHistoryBack, false);
|
|
103
|
-
}
|
|
104
|
-
render() {
|
|
105
|
-
const {
|
|
106
|
-
column
|
|
107
|
-
} = this.props;
|
|
108
|
-
const {
|
|
109
|
-
searchVal
|
|
110
|
-
} = this.state;
|
|
111
|
-
let filteredCollaborators = this.getFilteredCollaborators();
|
|
112
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
ref: this.setEditorPopover,
|
|
114
|
-
className: "dtable-ui-mb-editor-popover mb-collaborator-editor-popover",
|
|
115
|
-
onClick: this.onContainerClick
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement(_MBEditorHeader.default, {
|
|
117
|
-
title: column.name,
|
|
118
|
-
leftContent: /*#__PURE__*/_react.default.createElement("i", {
|
|
119
|
-
className: "dtable-font dtable-icon-return"
|
|
120
|
-
}),
|
|
121
|
-
rightContent: /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Done')),
|
|
122
|
-
onLeftClick: this.props.onClose,
|
|
123
|
-
onRightClick: this.props.onClose
|
|
124
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
className: "dtable-ui-mb-editor-body dtable-ui-mb-collaborator-editor-body"
|
|
126
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className: "mb-search-collaborator-items"
|
|
128
|
-
}, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
|
|
129
|
-
autoFocus: true,
|
|
130
|
-
value: searchVal,
|
|
131
|
-
placeholder: (0, _lang.getLocale)('Search_collaborator'),
|
|
132
|
-
onChange: this.onChangeSearch
|
|
133
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
134
|
-
className: "mb-collaborators-container"
|
|
135
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
136
|
-
className: "title"
|
|
137
|
-
}, (0, _lang.getLocale)('Choose_a_collaborator')), /*#__PURE__*/_react.default.createElement("div", {
|
|
138
|
-
className: "content"
|
|
139
|
-
}, filteredCollaborators.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
140
|
-
className: "search-result-none"
|
|
141
|
-
}, (0, _lang.getLocale)('No_collaborators_available')), filteredCollaborators.length > 0 && this.renderFilteredCollaborators(filteredCollaborators)))));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
MBCollaboratorEditor.defaultProps = {
|
|
145
|
-
isReadOnly: false,
|
|
146
|
-
value: []
|
|
147
|
-
};
|
|
148
|
-
var _default = exports.default = MBCollaboratorEditor;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
.dtable-ui.mb-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.mb-date-editor-picker .rc-calendar-date-panel {
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-selected-day .rc-calendar-date {
|
|
14
|
-
background-color: #FcEcD9;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-date:hover,
|
|
18
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-year-panel-year:hover,
|
|
19
|
-
.dtable-ui.mb-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.mb-date-editor-picker .rc-calendar .rc-calendar-selected-date .rc-calendar-date,
|
|
24
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-selected-date .rc-calendar-date:hover,
|
|
25
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year,
|
|
26
|
-
.dtable-ui.mb-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.mb-date-editor-picker .rc-calendar .rc-calendar-next-year-btn:not([href]):not([tabindex]),
|
|
31
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-year-btn:not([href]):not([tabindex]),
|
|
32
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-month-btn:not([href]):not([tabindex]),
|
|
33
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-month-btn:not([href]):not([tabindex]) {
|
|
34
|
-
color: #999;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-year-btn:not([href]):not([tabindex]):hover,
|
|
38
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-year-btn:not([href]):not([tabindex]):hover,
|
|
39
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-month-btn:not([href]):not([tabindex]):hover,
|
|
40
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-month-btn:not([href]):not([tabindex]):hover {
|
|
41
|
-
color: #666;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-today .rc-calendar-date {
|
|
45
|
-
border: none;
|
|
46
|
-
position: relative;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.dtable-ui.mb-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.mb-date-editor-picker .rc-calendar .rdg-editor-container input.editor-main[readonly] {
|
|
62
|
-
background-color: #fff;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-time-picker {
|
|
66
|
-
z-index: 1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.dtable-ui.mb-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.mb-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.mb-date-editor-picker .rc-calendar-date {
|
|
85
|
-
font-size: 14px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-date-panel {
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-body {
|
|
93
|
-
height: 22rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-table tr {
|
|
97
|
-
height: 3rem;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-prev-month-btn,
|
|
101
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-next-month-btn,
|
|
102
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-prev-year-btn,
|
|
103
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-next-year-btn {
|
|
104
|
-
font-size: 30px;
|
|
105
|
-
width: 50px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-header {
|
|
109
|
-
border-bottom: none;
|
|
110
|
-
margin-top: 0.5rem;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-year-select,
|
|
114
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-month-select,
|
|
115
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-day-select {
|
|
116
|
-
font-size: 16px;
|
|
117
|
-
padding: 5px;
|
|
118
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
@import url('./custom-rc-calendar.css');
|
|
2
|
-
@import url('../../css/mb-cell-editor.css');
|
|
3
|
-
|
|
4
|
-
@media screen and (max-width: 767.8px) {
|
|
5
|
-
.dtable-ui-mb-date-editor-body .mb-date-editor-input {
|
|
6
|
-
display: flex;
|
|
7
|
-
border-top: 1px solid #e9e9e9;
|
|
8
|
-
border-bottom: 1px solid #e9e9e9;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dtable-ui-mb-date-editor-body .mb-date-editor-input .date-input {
|
|
12
|
-
flex: 1;
|
|
13
|
-
background-color: #fff;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dtable-ui-mb-date-editor-body .mb-date-editor-input .date-input .date-input-day {
|
|
17
|
-
background-color: #f5f5f5;
|
|
18
|
-
border: 1px solid #e9e9e9;
|
|
19
|
-
margin: 10px;
|
|
20
|
-
padding: 3px 5px;
|
|
21
|
-
border-radius: 3px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dtable-ui-mb-date-editor-body .dtable-ui.mb-date-editor-picker {
|
|
25
|
-
display: block;
|
|
26
|
-
position: relative;
|
|
27
|
-
margin-top: 20px;
|
|
28
|
-
line-height: 1.5;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.dtable-ui-mb-date-editor-body .mb-date-editor-clear {
|
|
33
|
-
padding: 10px 0;
|
|
34
|
-
margin-top: 20px;
|
|
35
|
-
border-bottom: 1px solid #e9e9e9;
|
|
36
|
-
border-top: 1px solid #e9e9e9;
|
|
37
|
-
text-align: center;
|
|
38
|
-
color: #d27053;
|
|
39
|
-
background-color: #fff;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.dtable-ui .am-picker-popup-header .am-picker-popup-item {
|
|
43
|
-
color: #E5A252;
|
|
44
|
-
}
|
|
45
|
-
}
|