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,134 @@
|
|
|
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 _SingleSelectEditor = _interopRequireDefault(require("../../../SingleSelectEditor"));
|
|
11
|
+
var _SelectItem = _interopRequireDefault(require("../../../SelectItem"));
|
|
12
|
+
var _lang = require("../../../lang");
|
|
13
|
+
var _rightAngle = _interopRequireDefault(require("../../right-angle"));
|
|
14
|
+
var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
|
|
15
|
+
var _constants = require("../../../constants");
|
|
16
|
+
var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
17
|
+
require("./index.css");
|
|
18
|
+
class RowExpandMBSingleSelectEditor extends _react.default.Component {
|
|
19
|
+
constructor(_props) {
|
|
20
|
+
super(_props);
|
|
21
|
+
this.getOptions = props => {
|
|
22
|
+
const {
|
|
23
|
+
column,
|
|
24
|
+
row,
|
|
25
|
+
columns
|
|
26
|
+
} = props;
|
|
27
|
+
const options = (0, _dtableUtils.getColumnOptions)(column);
|
|
28
|
+
const {
|
|
29
|
+
data
|
|
30
|
+
} = column;
|
|
31
|
+
const {
|
|
32
|
+
cascade_column_key,
|
|
33
|
+
cascade_settings
|
|
34
|
+
} = data || {};
|
|
35
|
+
if (cascade_column_key && Array.isArray(columns)) {
|
|
36
|
+
const cascadeColumn = columns.find(c => c.key === cascade_column_key);
|
|
37
|
+
if (cascadeColumn) {
|
|
38
|
+
const cascadeColumnValue = row[cascade_column_key];
|
|
39
|
+
if (!cascadeColumnValue) return [];
|
|
40
|
+
const cascadeSetting = cascade_settings[cascadeColumnValue];
|
|
41
|
+
if (!cascadeSetting || !Array.isArray(cascadeSetting) || cascadeSetting.length === 0) return [];
|
|
42
|
+
return options.filter(option => cascadeSetting.includes(option.id));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return options;
|
|
46
|
+
};
|
|
47
|
+
this.toggleEditor = value => {
|
|
48
|
+
this.setState({
|
|
49
|
+
showEditor: value
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
this.openEditor = event => {
|
|
53
|
+
event.stopPropagation();
|
|
54
|
+
this.toggleEditor(true);
|
|
55
|
+
};
|
|
56
|
+
this.closeEditor = () => {
|
|
57
|
+
this.toggleEditor(false);
|
|
58
|
+
};
|
|
59
|
+
this.onChange = option => {
|
|
60
|
+
let newValue = option[this.key];
|
|
61
|
+
if (this.state.value === newValue) newValue = null;
|
|
62
|
+
this.setState({
|
|
63
|
+
value: newValue
|
|
64
|
+
});
|
|
65
|
+
this.props.onCommit(newValue);
|
|
66
|
+
this.toggleEditor(false);
|
|
67
|
+
};
|
|
68
|
+
this.renderOption = () => {
|
|
69
|
+
const {
|
|
70
|
+
value
|
|
71
|
+
} = this.state;
|
|
72
|
+
let option = this.options.find(o => o[this.key] === value);
|
|
73
|
+
option = {
|
|
74
|
+
name: (0, _lang.getLocale)(_constants.DELETED_OPTION_TIPS),
|
|
75
|
+
color: _constants.DELETED_OPTION_BACKGROUND_COLOR,
|
|
76
|
+
...option
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, value ? /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
+
style: {
|
|
80
|
+
height: 50,
|
|
81
|
+
padding: '10px 0'
|
|
82
|
+
}
|
|
83
|
+
}, /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
|
|
84
|
+
option: option
|
|
85
|
+
})) : /*#__PURE__*/_react.default.createElement(_addBtn.default, {
|
|
86
|
+
text: (0, _lang.getLocale)('Select_an_option')
|
|
87
|
+
}));
|
|
88
|
+
};
|
|
89
|
+
this.state = {
|
|
90
|
+
value: _props.value,
|
|
91
|
+
isShowEditor: false
|
|
92
|
+
};
|
|
93
|
+
this.key = _props.valueKey === 'name' ? 'name' : 'id';
|
|
94
|
+
this.options = this.getOptions(_props);
|
|
95
|
+
}
|
|
96
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
97
|
+
const {
|
|
98
|
+
value,
|
|
99
|
+
column
|
|
100
|
+
} = nextProps;
|
|
101
|
+
if (value !== this.props.value || !_objectUtils.default.isSameObject(column, this.props.column)) {
|
|
102
|
+
this.options = this.getOptions(nextProps);
|
|
103
|
+
this.setState({
|
|
104
|
+
value,
|
|
105
|
+
isShowEditor: false
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
const {
|
|
111
|
+
column,
|
|
112
|
+
isSupportNewOption,
|
|
113
|
+
onAddNewOption
|
|
114
|
+
} = this.props;
|
|
115
|
+
const {
|
|
116
|
+
showEditor,
|
|
117
|
+
value
|
|
118
|
+
} = this.state;
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
120
|
+
className: "dtable-ui dtable-ui-mobile-row-expand-options-editor position-relative",
|
|
121
|
+
onClick: this.openEditor
|
|
122
|
+
}, this.renderOption(), /*#__PURE__*/_react.default.createElement(_rightAngle.default, null)), showEditor && /*#__PURE__*/_react.default.createElement(_SingleSelectEditor.default, {
|
|
123
|
+
value: value,
|
|
124
|
+
column: column,
|
|
125
|
+
valueKey: this.key,
|
|
126
|
+
options: this.options,
|
|
127
|
+
onCommit: this.onChange,
|
|
128
|
+
onClose: this.closeEditor,
|
|
129
|
+
isSupportNewOption: isSupportNewOption,
|
|
130
|
+
onAddNewOption: onAddNewOption
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
var _default = exports.default = RowExpandMBSingleSelectEditor;
|
|
@@ -7,13 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _dtableUtils = require("dtable-utils");
|
|
10
|
-
var _constants = require("../../constants");
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
11
|
+
var _constants = require("../../../constants");
|
|
12
|
+
var _SingleSelectEditor = _interopRequireDefault(require("../../../SingleSelectEditor"));
|
|
13
|
+
var _lang = require("../../../lang");
|
|
14
|
+
var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
|
|
15
15
|
require("./index.css");
|
|
16
|
-
class
|
|
16
|
+
class RowExpandPCSingleSelectEditor extends _react.default.Component {
|
|
17
17
|
constructor(_props) {
|
|
18
18
|
super(_props);
|
|
19
19
|
this.getOptions = props => {
|
|
@@ -43,15 +43,15 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
43
43
|
return options;
|
|
44
44
|
};
|
|
45
45
|
this.onKeyDown = e => {
|
|
46
|
-
if (e.keyCode === _constants.KeyCodes.Enter && this.props.isEditorFocus && !this.state.
|
|
46
|
+
if (e.keyCode === _constants.KeyCodes.Enter && this.props.isEditorFocus && !this.state.isShowEditor) {
|
|
47
47
|
this.setState({
|
|
48
|
-
|
|
48
|
+
isShowEditor: true
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
this.toggleSingleSelect = value => {
|
|
53
53
|
this.setState({
|
|
54
|
-
|
|
54
|
+
isShowEditor: value
|
|
55
55
|
}, () => {
|
|
56
56
|
var _this$selectRef;
|
|
57
57
|
if (value) return;
|
|
@@ -64,7 +64,7 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
64
64
|
};
|
|
65
65
|
this.hideDropDownMenu = event => {
|
|
66
66
|
if (!event.target) return;
|
|
67
|
-
if (!this.ref.contains(event.target) && this.state.
|
|
67
|
+
if (!this.ref.contains(event.target) && this.state.isShowEditor) {
|
|
68
68
|
const singleSelectEditor = document.getElementsByClassName('dtable-ui-select-editor-container')[0];
|
|
69
69
|
if (singleSelectEditor && singleSelectEditor.contains(event.target)) return;
|
|
70
70
|
this.toggleSingleSelect(false);
|
|
@@ -134,7 +134,7 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
134
134
|
};
|
|
135
135
|
this.state = {
|
|
136
136
|
value: _props.value,
|
|
137
|
-
|
|
137
|
+
isShowEditor: false
|
|
138
138
|
};
|
|
139
139
|
this.key = _props.valueKey === 'name' ? 'name' : 'id';
|
|
140
140
|
this.options = this.getOptions(_props);
|
|
@@ -154,16 +154,16 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
154
154
|
this.options = this.getOptions(nextProps);
|
|
155
155
|
this.setState({
|
|
156
156
|
value,
|
|
157
|
-
|
|
157
|
+
isShowEditor: false
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
componentDidUpdate(prevProps, prevState) {
|
|
162
|
-
if (this.state.
|
|
163
|
-
if (this.state.
|
|
162
|
+
if (this.state.isShowEditor !== prevState.isShowEditor) {
|
|
163
|
+
if (this.state.isShowEditor === true && this.props.onEditorOpen) {
|
|
164
164
|
this.props.onEditorOpen();
|
|
165
165
|
}
|
|
166
|
-
if (this.state.
|
|
166
|
+
if (this.state.isShowEditor === false && this.props.onEditorClose) {
|
|
167
167
|
this.props.onEditorClose();
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -180,7 +180,7 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
180
180
|
classNamePrefix
|
|
181
181
|
} = this.props;
|
|
182
182
|
const {
|
|
183
|
-
|
|
183
|
+
isShowEditor,
|
|
184
184
|
value
|
|
185
185
|
} = this.state;
|
|
186
186
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -188,7 +188,7 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
188
188
|
ref: ref => this.ref = ref
|
|
189
189
|
}, this.renderOption(), /*#__PURE__*/_react.default.createElement("span", {
|
|
190
190
|
ref: ref => this.targetRef = ref
|
|
191
|
-
}),
|
|
191
|
+
}), isShowEditor && /*#__PURE__*/_react.default.createElement(_SingleSelectEditor.default, {
|
|
192
192
|
isInModal: true,
|
|
193
193
|
options: this.options,
|
|
194
194
|
column: column,
|
|
@@ -203,4 +203,4 @@ class RowExpandSingleSelectEditor extends _react.default.Component {
|
|
|
203
203
|
}));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var _default = exports.default =
|
|
206
|
+
var _default = exports.default = RowExpandPCSingleSelectEditor;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
+
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
|
+
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
const RowExpandTextEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
+
query: "(min-width: 768px)"
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
|
|
17
|
+
ref: ref
|
|
18
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
+
query: "(max-width: 768px)"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}))));
|
|
23
|
+
});
|
|
24
|
+
var _default = exports.default = RowExpandTextEditor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.dtable-ui-mobile-row-expand-input-editor-container {
|
|
2
|
+
height: 50px;
|
|
3
|
+
line-height: 50px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dtable-ui-mobile-row-expand-input-editor-container .form-control {
|
|
7
|
+
border: none;
|
|
8
|
+
padding: 0;
|
|
9
|
+
height: 50px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dtable-ui-mobile-row-expand-input-editor-container .form-control:focus {
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 _TextEditor = _interopRequireDefault(require("../../../TextEditor"));
|
|
10
|
+
require("./index.css");
|
|
11
|
+
class RowExpandMBTextEditor extends _react.default.Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
this.onCommit = () => {
|
|
15
|
+
const value = this.editor.getValue();
|
|
16
|
+
this.props.onCommit(value);
|
|
17
|
+
};
|
|
18
|
+
this.editor = null;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const {
|
|
22
|
+
readOnly,
|
|
23
|
+
column,
|
|
24
|
+
value
|
|
25
|
+
} = this.props;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container"
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_TextEditor.default, {
|
|
29
|
+
ref: ref => this.editor = ref,
|
|
30
|
+
readOnly: readOnly,
|
|
31
|
+
column: column,
|
|
32
|
+
value: value,
|
|
33
|
+
onCommit: this.onCommit
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var _default = exports.default = RowExpandMBTextEditor;
|
|
@@ -7,13 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactstrap = require("reactstrap");
|
|
10
|
-
var _TextEditor = _interopRequireDefault(require("
|
|
11
|
-
var _columnUtils = require("
|
|
12
|
-
var _cell = require("
|
|
13
|
-
var _constants = require("
|
|
14
|
-
var _lang = require("
|
|
10
|
+
var _TextEditor = _interopRequireDefault(require("../../../TextEditor"));
|
|
11
|
+
var _columnUtils = require("../../../utils/column-utils");
|
|
12
|
+
var _cell = require("../../../utils/cell");
|
|
13
|
+
var _constants = require("../../../constants");
|
|
14
|
+
var _lang = require("../../../lang");
|
|
15
15
|
require("./index.css");
|
|
16
|
-
class
|
|
16
|
+
class RowExpandPCTextEditor extends _react.default.Component {
|
|
17
17
|
constructor(props) {
|
|
18
18
|
super(props);
|
|
19
19
|
this.setEditorRef = ref => {
|
|
@@ -133,4 +133,4 @@ class RowExpandSimpleText extends _react.default.Component {
|
|
|
133
133
|
}), inconformityFormat && /*#__PURE__*/_react.default.createElement(_reactstrap.FormFeedback, null, _lang.getLocale.get('Input_does_not_meet_specifications')));
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
var _default = exports.default =
|
|
136
|
+
var _default = exports.default = RowExpandPCTextEditor;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
+
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
|
+
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
const RowExpandUrlEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
+
query: "(min-width: 768px)"
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
|
|
17
|
+
ref: ref
|
|
18
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
+
query: "(max-width: 768px)"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}))));
|
|
23
|
+
});
|
|
24
|
+
var _default = exports.default = RowExpandUrlEditor;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.dtable-ui-mobile-row-expand-url-editor-container .dtable-ui-mobile-row-expand-url-input {
|
|
2
|
+
text-decoration: underline;
|
|
3
|
+
padding-right: 40px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dtable-ui-mobile-row-expand-url-editor-container .dtable-ui-mobile-row-expand-jump-link {
|
|
7
|
+
height: 22px;
|
|
8
|
+
line-height: 22px;
|
|
9
|
+
position: absolute;
|
|
10
|
+
right: 0;
|
|
11
|
+
top: 14px;
|
|
12
|
+
background: #fff;
|
|
13
|
+
color: #999;
|
|
14
|
+
border: 1px solid #eee;
|
|
15
|
+
box-shadow: 0 0 1px;
|
|
16
|
+
padding: 0 3px;
|
|
17
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 _toaster = _interopRequireDefault(require("../../../toaster"));
|
|
10
|
+
var _utils = require("../../../utils/utils");
|
|
11
|
+
var _lang = require("../../../lang");
|
|
12
|
+
require("./index.css");
|
|
13
|
+
class RowExpandMBUrlEditor extends _react.default.Component {
|
|
14
|
+
constructor(props) {
|
|
15
|
+
super(props);
|
|
16
|
+
this.onBlur = () => {
|
|
17
|
+
const {
|
|
18
|
+
onCommit
|
|
19
|
+
} = this.props;
|
|
20
|
+
onCommit(this.state.value.trim());
|
|
21
|
+
};
|
|
22
|
+
this.onChange = e => {
|
|
23
|
+
let value = e.target.value;
|
|
24
|
+
if (value === this.state.value) return;
|
|
25
|
+
this.setState({
|
|
26
|
+
value
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
this.onCut = e => {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
};
|
|
32
|
+
this.onPaste = e => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
};
|
|
35
|
+
this.onOpenUrlLink = () => {
|
|
36
|
+
const {
|
|
37
|
+
value
|
|
38
|
+
} = this.state;
|
|
39
|
+
let newValue = value.trim();
|
|
40
|
+
if (!(0, _utils.isValidUrl)(newValue)) {
|
|
41
|
+
newValue = "http://".concat(newValue);
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
(0, _utils.openUrlLink)(newValue);
|
|
45
|
+
} catch {
|
|
46
|
+
_toaster.default.danger((0, _lang.getLocale)('URL_is_invalid'));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
this.state = {
|
|
50
|
+
value: props.value || ''
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
54
|
+
const {
|
|
55
|
+
column,
|
|
56
|
+
row
|
|
57
|
+
} = nextProps;
|
|
58
|
+
if (row._id !== this.props.row._id) {
|
|
59
|
+
this.setState({
|
|
60
|
+
value: row[column[this.props.valueKey]] || ''
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
const {
|
|
66
|
+
value
|
|
67
|
+
} = this.state;
|
|
68
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container"
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
71
|
+
type: "text",
|
|
72
|
+
onFocus: this.onFocus,
|
|
73
|
+
onBlur: this.onBlur,
|
|
74
|
+
onCut: this.onCut,
|
|
75
|
+
onPaste: this.onPaste,
|
|
76
|
+
onChange: this.onChange,
|
|
77
|
+
className: "form-control dtable-ui-mobile-row-expand-url-input",
|
|
78
|
+
value: value || '',
|
|
79
|
+
onKeyDown: this.onKeyDown
|
|
80
|
+
}), value && value.trim() && /*#__PURE__*/_react.default.createElement("span", {
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
className: "dtable-font dtable-icon-url dtable-ui-mobile-row-expand-jump-link",
|
|
83
|
+
onClick: this.onOpenUrlLink
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
var _default = exports.default = RowExpandMBUrlEditor;
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _toaster = _interopRequireDefault(require("
|
|
10
|
-
var _utils = require("
|
|
11
|
-
var _constants = require("
|
|
12
|
-
var _lang = require("
|
|
9
|
+
var _toaster = _interopRequireDefault(require("../../../toaster"));
|
|
10
|
+
var _utils = require("../../../utils/utils");
|
|
11
|
+
var _constants = require("../../../constants");
|
|
12
|
+
var _lang = require("../../../lang");
|
|
13
13
|
require("./index.css");
|
|
14
|
-
class
|
|
14
|
+
class RowExpandPCUrlEditor extends _react.default.Component {
|
|
15
15
|
constructor(props) {
|
|
16
16
|
super(props);
|
|
17
17
|
this.focusInput = () => {
|
|
@@ -127,4 +127,4 @@ class RowExpandUrlEditor extends _react.default.Component {
|
|
|
127
127
|
}));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
var _default = exports.default =
|
|
130
|
+
var _default = exports.default = RowExpandPCUrlEditor;
|
|
@@ -22,15 +22,15 @@ var _MTimeFormatter = _interopRequireDefault(require("../MTimeFormatter"));
|
|
|
22
22
|
var _AutoNumberFormatter = _interopRequireDefault(require("../AutoNumberFormatter"));
|
|
23
23
|
var _DurationFormatter = _interopRequireDefault(require("../DurationFormatter"));
|
|
24
24
|
var _ButtonFormatter = _interopRequireDefault(require("../ButtonFormatter"));
|
|
25
|
-
var _RowExpandUrlFormatter = _interopRequireDefault(require("./RowExpandUrlFormatter"));
|
|
26
|
-
var _RowExpandEmailFormatter = _interopRequireDefault(require("./RowExpandEmailFormatter"));
|
|
27
|
-
var _RowExpandRateFormatter = _interopRequireDefault(require("./RowExpandRateFormatter"));
|
|
28
|
-
var _RowExpandImageFormatter = _interopRequireDefault(require("./RowExpandImageFormatter"));
|
|
29
|
-
var _RowExpandFileFormatter = _interopRequireDefault(require("./RowExpandFileFormatter"));
|
|
30
|
-
var _RowExpandLinkFormatter = _interopRequireDefault(require("./RowExpandLinkFormatter"));
|
|
31
|
-
var _RowExpandFormulaFormatter = _interopRequireDefault(require("./RowExpandFormulaFormatter"));
|
|
32
25
|
var _DigitalSignFormatter = _interopRequireDefault(require("../DigitalSignFormatter"));
|
|
33
|
-
var
|
|
26
|
+
var _urlFormatter = _interopRequireDefault(require("./url-formatter"));
|
|
27
|
+
var _emailFormatter = _interopRequireDefault(require("./email-formatter"));
|
|
28
|
+
var _rateFormatter = _interopRequireDefault(require("./rate-formatter"));
|
|
29
|
+
var _imageFormatter = _interopRequireDefault(require("./image-formatter"));
|
|
30
|
+
var _fileFormatter = _interopRequireDefault(require("./file-formatter"));
|
|
31
|
+
var _linkFormatter = _interopRequireDefault(require("./link-formatter"));
|
|
32
|
+
var _formulaFormatter = _interopRequireDefault(require("./formula-formatter"));
|
|
33
|
+
var _departmentFormatter = _interopRequireDefault(require("./department-formatter"));
|
|
34
34
|
const DEFAULT_FORMATTER = exports.DEFAULT_FORMATTER = {
|
|
35
35
|
[_dtableUtils.CellType.TEXT]: _TextFormatter.default,
|
|
36
36
|
[_dtableUtils.CellType.NUMBER]: _NumberFormatter.default,
|
|
@@ -48,14 +48,14 @@ const DEFAULT_FORMATTER = exports.DEFAULT_FORMATTER = {
|
|
|
48
48
|
[_dtableUtils.CellType.AUTO_NUMBER]: _AutoNumberFormatter.default,
|
|
49
49
|
[_dtableUtils.CellType.DURATION]: _DurationFormatter.default,
|
|
50
50
|
[_dtableUtils.CellType.BUTTON]: _ButtonFormatter.default,
|
|
51
|
-
[_dtableUtils.CellType.URL]:
|
|
52
|
-
[_dtableUtils.CellType.EMAIL]:
|
|
53
|
-
[_dtableUtils.CellType.RATE]:
|
|
54
|
-
[_dtableUtils.CellType.IMAGE]:
|
|
55
|
-
[_dtableUtils.CellType.FILE]:
|
|
56
|
-
[_dtableUtils.CellType.LINK]:
|
|
57
|
-
[_dtableUtils.CellType.FORMULA]:
|
|
58
|
-
[_dtableUtils.CellType.LINK_FORMULA]:
|
|
51
|
+
[_dtableUtils.CellType.URL]: _urlFormatter.default,
|
|
52
|
+
[_dtableUtils.CellType.EMAIL]: _emailFormatter.default,
|
|
53
|
+
[_dtableUtils.CellType.RATE]: _rateFormatter.default,
|
|
54
|
+
[_dtableUtils.CellType.IMAGE]: _imageFormatter.default,
|
|
55
|
+
[_dtableUtils.CellType.FILE]: _fileFormatter.default,
|
|
56
|
+
[_dtableUtils.CellType.LINK]: _linkFormatter.default,
|
|
57
|
+
[_dtableUtils.CellType.FORMULA]: _formulaFormatter.default,
|
|
58
|
+
[_dtableUtils.CellType.LINK_FORMULA]: _formulaFormatter.default,
|
|
59
59
|
[_dtableUtils.CellType.DIGITAL_SIGN]: _DigitalSignFormatter.default,
|
|
60
|
-
[_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]:
|
|
60
|
+
[_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]: _departmentFormatter.default
|
|
61
61
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 _pcFormatter = _interopRequireDefault(require("./pc-formatter"));
|
|
11
|
+
var _mbFormatter = _interopRequireDefault(require("./mb-formatter"));
|
|
12
|
+
const RowExpandDepartmentFormatter = props => {
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
14
|
+
query: '(min-width: 768px)'
|
|
15
|
+
}, /*#__PURE__*/_react.default.createElement(_pcFormatter.default, props)), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
16
|
+
query: '(max-width: 768px)'
|
|
17
|
+
}, /*#__PURE__*/_react.default.createElement(_mbFormatter.default, props)));
|
|
18
|
+
};
|
|
19
|
+
var _default = exports.default = RowExpandDepartmentFormatter;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../../DepartmentSingleSelectFormatter"));
|
|
10
|
+
function RowExpandMBDepartmentFormatter(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
value,
|
|
13
|
+
departments
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_DepartmentSingleSelectFormatter.default, {
|
|
16
|
+
value: value,
|
|
17
|
+
departments: departments
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
var _default = exports.default = RowExpandMBDepartmentFormatter;
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../../DepartmentSingleSelectFormatter"));
|
|
10
|
-
function
|
|
10
|
+
function RowExpandPCDepartmentFormatter(_ref) {
|
|
11
11
|
let {
|
|
12
12
|
value,
|
|
13
13
|
departments
|
|
@@ -24,4 +24,4 @@ function RowExpandDepartmentFormatter(_ref) {
|
|
|
24
24
|
departments: departments
|
|
25
25
|
}))));
|
|
26
26
|
}
|
|
27
|
-
var _default = exports.default =
|
|
27
|
+
var _default = exports.default = RowExpandPCDepartmentFormatter;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@import url('../../css/cell-formatter.css');
|
|
2
2
|
|
|
3
|
-
.dtable-row-expand-formatter .dtable-ui.email-formatter .email-formatter-value,
|
|
4
|
-
.dtable-row-expand-formatter .dtable-ui.url-formatter .url-formatter-value {
|
|
3
|
+
.dtable-ui-row-expand-formatter .dtable-ui.email-formatter .email-formatter-value,
|
|
4
|
+
.dtable-ui-row-expand-formatter .dtable-ui.url-formatter .url-formatter-value {
|
|
5
5
|
text-decoration: underline;
|
|
6
6
|
width: 95%;
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.dtable-row-expand-formatter .dtable-ui .row-expand-jump-link {
|
|
10
|
+
.dtable-ui-row-expand-formatter .dtable-ui .row-expand-jump-link {
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
font-size: 14px;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
box-shadow: 0 0 1px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.dtable-row-expand-formatter .dtable-ui .row-expand-jump-link:hover {
|
|
27
|
+
.dtable-ui-row-expand-formatter .dtable-ui .row-expand-jump-link:hover {
|
|
28
28
|
background: #eee;
|
|
29
29
|
border: 1px solid #c9c9c9;
|
|
30
30
|
}
|