dtable-ui-component 6.0.126 → 7.0.0-xia.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ActionSheet/index.js +16 -14
- package/lib/ActivityIndicator/index.js +8 -7
- package/lib/AsyncUserSelect/index.js +19 -40
- package/lib/AsyncUserSelect/user-item.js +6 -5
- package/lib/AutoNumberFormatter/index.js +4 -3
- package/lib/Badge/index.js +11 -9
- package/lib/ButtonFormatter/index.js +8 -6
- package/lib/CTimeFormatter/index.js +4 -3
- package/lib/CheckboxEditor/index.js +3 -1
- package/lib/CheckboxEditor/mb-editor.js +20 -9
- package/lib/CheckboxEditor/pc-editor.js +24 -12
- package/lib/CheckboxFormatter/index.js +5 -4
- package/lib/CollaboratorEditor/index.js +4 -2
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
- package/lib/CollaboratorEditor/pc-editor/index.js +34 -25
- package/lib/CollaboratorFormatter/index.js +10 -8
- package/lib/CollaboratorItem/index.js +5 -4
- package/lib/CollapsibleSettingLayout/index.js +7 -9
- package/lib/Comment/body/comment.js +18 -10
- package/lib/Comment/body/index.js +4 -2
- package/lib/Comment/footer/btns/index.js +7 -4
- package/lib/Comment/footer/index.js +20 -9
- package/lib/Comment/footer/input/index.js +50 -29
- package/lib/Comment/footer/input/participant/index.js +5 -4
- package/lib/Comment/footer/participants/index.js +5 -4
- package/lib/Comment/footer/participants/participant/index.js +3 -1
- package/lib/Comment/footer/participants/participant-select/index.js +24 -8
- package/lib/Comment/index.js +57 -39
- package/lib/Comment/utils/utilities.js +21 -15
- package/lib/CreatorFormatter/index.js +8 -6
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +18 -22
- package/lib/DTableColorPicker/index.js +40 -55
- package/lib/DTableColorPicker/utils.js +6 -4
- package/lib/DTableColumnIcon/index.js +7 -6
- package/lib/DTableCommonAddTool/index.js +8 -6
- package/lib/DTableCustomFooter/index.js +3 -1
- package/lib/DTableCustomizeCollaboratorSelect/index.js +20 -17
- package/lib/DTableCustomizeSelect/index.js +24 -19
- package/lib/DTableDropdownItem/index.js +18 -16
- package/lib/DTableDropdownMenu/index.js +10 -8
- package/lib/DTableEmptyTip/index.js +5 -4
- package/lib/DTableFiltersPopover/index.js +50 -34
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
- package/lib/DTableFiltersPopover/utils/index.js +113 -63
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
- package/lib/DTableFiltersPopover/widgets/filter-group.js +56 -35
- package/lib/DTableFiltersPopover/widgets/filter-item.js +171 -108
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +5 -5
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +161 -136
- package/lib/DTableFiltersPopover/widgets/rate-item.js +20 -15
- package/lib/DTableGroupSelect/index.js +15 -11
- package/lib/DTableGroupSelect/select-option-group.js +32 -23
- package/lib/DTableIcon/index.js +7 -6
- package/lib/DTableIcon/svg-icon.js +7 -5
- package/lib/DTableModalHeader/index.css +3 -20
- package/lib/DTableModalHeader/index.js +3 -1
- package/lib/DTablePopover/index.js +15 -11
- package/lib/DTableRadio/index.js +9 -10
- package/lib/DTableRadioGroup/index.js +17 -8
- package/lib/DTableSearchInput/index.js +29 -19
- package/lib/DTableSelect/dtable-select-label.js +5 -6
- package/lib/DTableSelect/index.js +22 -21
- package/lib/DTableSelect/utils.js +15 -7
- package/lib/DTableSubDropdownMenu/index.js +10 -8
- package/lib/DTableSubDropdownToggle/index.js +12 -12
- package/lib/DTableSwitch/index.js +11 -12
- package/lib/DTableToolTip/index.js +8 -7
- package/lib/DateEditor/index.js +15 -20
- package/lib/DateEditor/mb-editor/index.js +31 -18
- package/lib/DateEditor/pc-editor.js +45 -26
- package/lib/DateFormatter/index.js +5 -4
- package/lib/DatePicker/index.js +15 -9
- package/lib/DatePicker/utils.js +3 -1
- package/lib/DeleteTip/index.js +6 -5
- package/lib/DepartmentMultipleSelectEditor/index.js +23 -25
- package/lib/DepartmentSelectFilter/index.js +8 -6
- package/lib/DepartmentSingleSelectEditor/index.js +3 -1
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +47 -48
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +58 -36
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
- package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
- package/lib/DigitalSignEditor/index.js +3 -1
- package/lib/DigitalSignEditor/mb-editor/index.js +20 -12
- package/lib/DigitalSignEditor/pc-editor/index.js +24 -17
- package/lib/DigitalSignEditor/service.js +4 -2
- package/lib/DigitalSignEditor/signature-board/index.js +8 -5
- package/lib/DigitalSignEditor/utils.js +4 -2
- package/lib/DigitalSignFormatter/index.js +15 -12
- package/lib/DigitalSignFormatter/utils.js +5 -4
- package/lib/DurationEditor/index.js +31 -21
- package/lib/DurationFormatter/index.js +5 -4
- package/lib/EditEditorButton/index.js +3 -1
- package/lib/EmailFormatter/index.js +4 -3
- package/lib/FieldDisplaySetting/field-item.js +12 -12
- package/lib/FieldDisplaySetting/index.js +10 -12
- package/lib/FileEditor/files-previewer/index.js +3 -1
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +18 -10
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +21 -14
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
- package/lib/FileEditor/index.js +3 -1
- package/lib/FileEditor/mb-editor/index.js +20 -28
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +3 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +25 -11
- package/lib/FileEditor/pc-editor/index.js +27 -19
- package/lib/FileFormatter/index.js +19 -26
- package/lib/FileItemFormatter/index.js +9 -6
- package/lib/FileUploader/index.js +45 -28
- package/lib/FormulaFormatter/index.js +29 -15
- package/lib/GeolocationEditor/index.js +12 -11
- package/lib/GeolocationEditor/map-editor-utils.js +15 -17
- package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/index.js +6 -4
- package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +68 -41
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
- package/lib/GeolocationEditor/pc-editor/country-editor.js +23 -10
- package/lib/GeolocationEditor/pc-editor/index.js +20 -12
- package/lib/GeolocationEditor/pc-editor/location-editor.js +31 -26
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +54 -34
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +60 -36
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +62 -35
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +65 -36
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +25 -19
- package/lib/GeolocationEditor/pc-editor/province-editor.js +13 -6
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +7 -6
- package/lib/GeolocationFormatter/index.js +5 -4
- package/lib/HtmlLongTextFormatter/index.js +12 -4
- package/lib/Icon/index.js +5 -3
- package/lib/IconButton/index.js +6 -4
- package/lib/ImageEditor/images-previewer/image-preview/index.js +21 -12
- package/lib/ImageEditor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/index.js +3 -1
- package/lib/ImageEditor/mb-editor/index.js +20 -28
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +3 -1
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +21 -7
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/pc-editor/index.js +16 -11
- package/lib/ImageFormatter/images-lazy-load.js +11 -19
- package/lib/ImageFormatter/index.js +13 -11
- package/lib/ImagePreviewerLightbox/index.js +13 -15
- package/lib/ImageThumbnail/index.js +13 -10
- package/lib/InputItem/custom-input.js +46 -26
- package/lib/InputItem/custom-keyboard.js +18 -15
- package/lib/InputItem/index.js +50 -34
- package/lib/InputItem/input.js +4 -2
- package/lib/LastModifierFormatter/index.js +8 -6
- package/lib/LinkEditor/index.js +53 -33
- package/lib/LinkEditor/link-editor-option.js +4 -3
- package/lib/LinkEditor/mb-popover/index.js +22 -9
- package/lib/LinkEditor/pc-popover/index.js +10 -5
- package/lib/LinkFormatter/index.js +37 -21
- package/lib/List/index.js +8 -6
- package/lib/List/list-item.js +28 -22
- package/lib/LongTextFormatter/index.js +5 -4
- package/lib/MBEditorHeader/index.js +8 -7
- package/lib/MTimeFormatter/index.js +4 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +6 -4
- package/lib/MobileFullScreenPage/index.js +11 -13
- package/lib/MobileModal/index.js +3 -1
- package/lib/MobileOperationSheet/index.js +8 -7
- package/lib/MobileSelector/empty/index.js +3 -1
- package/lib/MobileSelector/index.js +7 -5
- package/lib/MobileSelector/option/index.js +5 -3
- package/lib/MobileSelector/options/index.js +3 -1
- package/lib/MobileSelector/search/index.js +5 -3
- package/lib/MobileUpload/index.js +5 -4
- package/lib/Modal/modal.js +15 -14
- package/lib/Modal/prompt.js +4 -4
- package/lib/MultipleSelectEditor/index.js +3 -1
- package/lib/MultipleSelectFormatter/index.js +8 -6
- package/lib/NotificationPopover/index.js +5 -4
- package/lib/NumberEditor/index.js +21 -12
- package/lib/NumberFormatter/index.js +5 -4
- package/lib/PhoneNumberLink/index.js +4 -2
- package/lib/Picker/AbstractPicker.js +27 -23
- package/lib/Popover/index.js +4 -3
- package/lib/Popover/item.js +9 -7
- package/lib/Progress/index.js +8 -9
- package/lib/Radio/Radio.js +8 -4
- package/lib/Radio/RadioItem.js +12 -8
- package/lib/RateFormatter/index.js +13 -13
- package/lib/RoleStatusEditor/index.js +17 -18
- package/lib/RowExpandDialog/body/index.js +49 -32
- package/lib/RowExpandDialog/column-content/index.js +9 -5
- package/lib/RowExpandDialog/header/index.js +8 -6
- package/lib/RowExpandDialog/index.js +34 -49
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
- package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
- package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
- package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
- package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +34 -20
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +35 -21
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -9
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +24 -13
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +25 -15
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +23 -13
- package/lib/RowExpandEditor/index.js +8 -4
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +19 -11
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +33 -22
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
- package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +25 -12
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +36 -20
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +28 -17
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +34 -22
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +13 -5
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +18 -9
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
- package/lib/RowExpandFormatter/email-formatter/index.js +7 -4
- package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +12 -10
- package/lib/RowExpandFormatter/formula-formatter/index.js +34 -19
- package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +8 -7
- package/lib/RowExpandFormatter/index.js +41 -27
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +14 -8
- package/lib/RowExpandFormatter/link-formatter/index.js +19 -11
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
- package/lib/RowExpandFormatter/rate-formatter/index.js +12 -11
- package/lib/RowExpandFormatter/text/index.js +5 -4
- package/lib/RowExpandFormatter/url-formatter/index.js +7 -4
- package/lib/RowExpandView/body/index.js +35 -22
- package/lib/RowExpandView/column-content/index.js +7 -3
- package/lib/RowExpandView/index.js +30 -42
- package/lib/SelectItem/index.js +8 -6
- package/lib/SelectOptionGroup/index.js +40 -30
- package/lib/SelectedDepartments/index.js +9 -7
- package/lib/SimpleLongTextFormatter/index.js +16 -10
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
- package/lib/SingleSelectEditor/index.js +3 -1
- package/lib/SingleSelectFormatter/index.js +9 -8
- package/lib/TabBar/Tab.js +16 -14
- package/lib/TabBar/index.js +21 -18
- package/lib/Tabs/index.js +3 -1
- package/lib/TextEditor/index.js +23 -14
- package/lib/TextFormatter/index.js +4 -3
- package/lib/TextareaItem/index.js +26 -19
- package/lib/Toast/index.js +4 -3
- package/lib/UrlFormatter/index.js +4 -3
- package/lib/common/editor-base.js +12 -7
- package/lib/hooks/common-hooks.js +4 -2
- package/lib/select-editor/index.js +3 -1
- package/lib/select-editor/mb-editor/index.js +28 -17
- package/lib/select-editor/pc-editor/index.js +42 -27
- package/lib/toaster/alert.js +7 -6
- package/lib/toaster/toast.js +3 -2
- package/lib/toaster/toastManager.js +4 -2
- package/lib/utils/cell.js +11 -8
- package/lib/utils/column-utils.js +14 -8
- package/lib/utils/departments.js +3 -1
- package/lib/utils/url.js +31 -24
- package/lib/utils/utils.js +6 -2
- package/package.json +1 -1
|
@@ -20,9 +20,10 @@ class CreatorFormatter extends _react.default.PureComponent {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.getCollaborators = () => {
|
|
23
|
-
let
|
|
24
|
-
value
|
|
25
|
-
collaborators
|
|
23
|
+
let {
|
|
24
|
+
value,
|
|
25
|
+
collaborators
|
|
26
|
+
} = this.props;
|
|
26
27
|
if (!Array.isArray(value)) {
|
|
27
28
|
value = [value];
|
|
28
29
|
}
|
|
@@ -42,9 +43,10 @@ class CreatorFormatter extends _react.default.PureComponent {
|
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
|
-
const
|
|
46
|
-
containerClassName
|
|
47
|
-
value
|
|
46
|
+
const {
|
|
47
|
+
containerClassName,
|
|
48
|
+
value
|
|
49
|
+
} = this.props;
|
|
48
50
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container creator-formatter', containerClassName);
|
|
49
51
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
50
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -7,37 +7,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = ColorPickerPortal;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
12
|
var _utils = require("../../utils/utils");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
14
|
function ColorPickerPortal(_ref) {
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
throttleDelay =
|
|
20
|
-
children
|
|
15
|
+
let {
|
|
16
|
+
target,
|
|
17
|
+
scrollContainerId,
|
|
18
|
+
throttleDelay = 16,
|
|
19
|
+
children
|
|
20
|
+
} = _ref;
|
|
21
21
|
const containerRef = (0, _react.useRef)(null);
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
visibility: 'hidden'
|
|
31
|
-
};
|
|
32
|
-
}),
|
|
33
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
34
|
-
position = _useState4[0],
|
|
35
|
-
setPosition = _useState4[1];
|
|
22
|
+
const [isPositioned, setIsPositioned] = (0, _react.useState)(false);
|
|
23
|
+
const [position, setPosition] = (0, _react.useState)(() => {
|
|
24
|
+
return {
|
|
25
|
+
top: '-9999px',
|
|
26
|
+
left: '-9999px',
|
|
27
|
+
visibility: 'hidden'
|
|
28
|
+
};
|
|
29
|
+
});
|
|
36
30
|
const updatePosition = (0, _react.useCallback)(() => {
|
|
37
31
|
if (!target || !containerRef.current) return;
|
|
38
32
|
const targetRect = target.getBoundingClientRect();
|
|
39
|
-
const
|
|
40
|
-
|
|
33
|
+
const {
|
|
34
|
+
top: spaceAbove,
|
|
35
|
+
left
|
|
36
|
+
} = targetRect;
|
|
41
37
|
const portalRectHeight = containerRef.current.clientHeight;
|
|
42
38
|
const newPosition = {
|
|
43
39
|
left: "".concat(left + 1, "px"),
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _reactstrap = require("reactstrap");
|
|
13
12
|
var _reactColor = require("react-color");
|
|
@@ -30,46 +29,25 @@ const RGB_COLORS_MAP = {
|
|
|
30
29
|
};
|
|
31
30
|
const LOCAL_STORAGE_KEY = 'dtable-color-picker';
|
|
32
31
|
const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
color =
|
|
37
|
-
defaultColors
|
|
38
|
-
useProtal
|
|
39
|
-
target
|
|
40
|
-
scrollContainerId
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
let {
|
|
33
|
+
onToggle,
|
|
34
|
+
popoverStyle,
|
|
35
|
+
color = '#ffffff',
|
|
36
|
+
defaultColors,
|
|
37
|
+
useProtal,
|
|
38
|
+
target,
|
|
39
|
+
scrollContainerId,
|
|
40
|
+
throttleDelay = 20,
|
|
41
|
+
onSubmit
|
|
42
|
+
} = _ref;
|
|
44
43
|
const initialRgbaColor = (0, _utils.hexToRgba)(color);
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
setHexVal = _useState4[1];
|
|
53
|
-
const _useState5 = (0, _react.useState)((0, _utils.toPercentage)(initialRgbaColor.a)),
|
|
54
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
55
|
-
alphaVal = _useState6[0],
|
|
56
|
-
setAlphaVal = _useState6[1];
|
|
57
|
-
const _useState7 = (0, _react.useState)(initialRgbaColor.r),
|
|
58
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
59
|
-
redVal = _useState8[0],
|
|
60
|
-
setRedVal = _useState8[1];
|
|
61
|
-
const _useState9 = (0, _react.useState)(initialRgbaColor.g),
|
|
62
|
-
_useState0 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
63
|
-
greenVal = _useState0[0],
|
|
64
|
-
setGreenVal = _useState0[1];
|
|
65
|
-
const _useState1 = (0, _react.useState)(initialRgbaColor.b),
|
|
66
|
-
_useState10 = (0, _slicedToArray2.default)(_useState1, 2),
|
|
67
|
-
blueVal = _useState10[0],
|
|
68
|
-
setBlueVal = _useState10[1];
|
|
69
|
-
const _useState11 = (0, _react.useState)(COLOR_PICKER_MODE.HEX),
|
|
70
|
-
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
71
|
-
colorMode = _useState12[0],
|
|
72
|
-
setColorMode = _useState12[1]; // hex or rgb
|
|
44
|
+
const [value, setValue] = (0, _react.useState)(initialRgbaColor);
|
|
45
|
+
const [hexVal, setHexVal] = (0, _react.useState)((0, _utils.getInitialHexVal)(color));
|
|
46
|
+
const [alphaVal, setAlphaVal] = (0, _react.useState)((0, _utils.toPercentage)(initialRgbaColor.a));
|
|
47
|
+
const [redVal, setRedVal] = (0, _react.useState)(initialRgbaColor.r);
|
|
48
|
+
const [greenVal, setGreenVal] = (0, _react.useState)(initialRgbaColor.g);
|
|
49
|
+
const [blueVal, setBlueVal] = (0, _react.useState)(initialRgbaColor.b);
|
|
50
|
+
const [colorMode, setColorMode] = (0, _react.useState)(COLOR_PICKER_MODE.HEX); // hex or rgb
|
|
73
51
|
const colorPickerRef = (0, _react.useRef)(null);
|
|
74
52
|
let currentUsedColors = [];
|
|
75
53
|
const currentUsedColorsStr = window.localStorage.getItem(LOCAL_STORAGE_KEY);
|
|
@@ -92,10 +70,12 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
92
70
|
rgba.a = Math.round(rgba.a * 100) / 100;
|
|
93
71
|
const transferedHex = (0, _utils.rgbaToHex)(rgba);
|
|
94
72
|
const hexVal = transferedHex.substring(1, 7);
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
73
|
+
const {
|
|
74
|
+
r,
|
|
75
|
+
g,
|
|
76
|
+
b,
|
|
77
|
+
a
|
|
78
|
+
} = rgba;
|
|
99
79
|
setAlphaVal((0, _utils.toPercentage)(a));
|
|
100
80
|
updateValue(rgba);
|
|
101
81
|
if (colorMode === COLOR_PICKER_MODE.HEX) {
|
|
@@ -111,9 +91,11 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
111
91
|
if (colorMode === COLOR_PICKER_MODE.HEX) {
|
|
112
92
|
newMode = COLOR_PICKER_MODE.RGBA;
|
|
113
93
|
const rgba = (0, _utils.hexToRgba)(color);
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
94
|
+
const {
|
|
95
|
+
r,
|
|
96
|
+
g,
|
|
97
|
+
b
|
|
98
|
+
} = rgba;
|
|
117
99
|
setRedVal(r);
|
|
118
100
|
setGreenVal(g);
|
|
119
101
|
setBlueVal(b);
|
|
@@ -140,10 +122,11 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
140
122
|
newHexVal = newHexVal.split('').map(char => char + char).join('');
|
|
141
123
|
}
|
|
142
124
|
setHexVal(newHexVal);
|
|
143
|
-
const
|
|
144
|
-
r
|
|
145
|
-
g
|
|
146
|
-
b
|
|
125
|
+
const {
|
|
126
|
+
r,
|
|
127
|
+
g,
|
|
128
|
+
b
|
|
129
|
+
} = (0, _utils.hexToRgba)(newHexVal);
|
|
147
130
|
const newValue = {
|
|
148
131
|
r,
|
|
149
132
|
g,
|
|
@@ -226,10 +209,12 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
226
209
|
};
|
|
227
210
|
const onSelectDefaultColor = color => {
|
|
228
211
|
const rgba = (0, _utils.hexToRgba)(color);
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
212
|
+
const {
|
|
213
|
+
r,
|
|
214
|
+
g,
|
|
215
|
+
b,
|
|
216
|
+
a
|
|
217
|
+
} = rgba;
|
|
233
218
|
const alphaVal = (0, _utils.toPercentage)(a);
|
|
234
219
|
if (colorMode === COLOR_PICKER_MODE.RGBA) {
|
|
235
220
|
setRedVal(r);
|
|
@@ -43,10 +43,12 @@ const rgbaToHex = function (color) {
|
|
|
43
43
|
let isNeedPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
44
44
|
let isNeedAlpha = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
45
45
|
if (hexRegex.test(color)) return color;
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
const {
|
|
47
|
+
r,
|
|
48
|
+
g,
|
|
49
|
+
b,
|
|
50
|
+
a
|
|
51
|
+
} = color;
|
|
50
52
|
const toHex = value => {
|
|
51
53
|
const hex = value.toString(16);
|
|
52
54
|
return hex.length === 1 ? '0' + hex : hex;
|
|
@@ -45,12 +45,13 @@ const COLUMN_DISPLAY_TYPE_ICON_CONFIG = {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
const DTableColumnIcon = _ref => {
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
ariaHidden =
|
|
53
|
-
getSvg
|
|
48
|
+
let {
|
|
49
|
+
column,
|
|
50
|
+
color,
|
|
51
|
+
className,
|
|
52
|
+
ariaHidden = false,
|
|
53
|
+
getSvg
|
|
54
|
+
} = _ref;
|
|
54
55
|
const columnType = column === null || column === void 0 ? void 0 : column.type;
|
|
55
56
|
if (!columnType) return null;
|
|
56
57
|
const columnDisplayType = (0, _dtableUtils.getColumnDisplayType)(column);
|
|
@@ -9,12 +9,14 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
require("./index.css");
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function DTableCommonAddTool(_ref) {
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
let {
|
|
13
|
+
callBack,
|
|
14
|
+
footerName,
|
|
15
|
+
className,
|
|
16
|
+
addIconClassName,
|
|
17
|
+
hideIcon,
|
|
18
|
+
style
|
|
19
|
+
} = _ref;
|
|
18
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
19
21
|
className: "dtable-ui add-item-btn ".concat(className ? className : ''),
|
|
20
22
|
style: style,
|
|
@@ -10,7 +10,9 @@ require("./index.css");
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
// DTableCustomFooter is used in geolocation editor and digital sign editor
|
|
12
12
|
const DTableCustomFooter = _ref => {
|
|
13
|
-
let
|
|
13
|
+
let {
|
|
14
|
+
children
|
|
15
|
+
} = _ref;
|
|
14
16
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
15
17
|
className: "dtable-custom-footer",
|
|
16
18
|
children: children
|
|
@@ -47,22 +47,24 @@ class CollaboratorSelect extends _react.Component {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
this.getFilterOptions = searchValue => {
|
|
50
|
-
const
|
|
51
|
-
options
|
|
52
|
-
searchable
|
|
50
|
+
const {
|
|
51
|
+
options,
|
|
52
|
+
searchable
|
|
53
|
+
} = this.props;
|
|
53
54
|
if (!searchable) return options || [];
|
|
54
55
|
return (0, _dtableUtils.searchCollaborators)(options, searchValue);
|
|
55
56
|
};
|
|
56
57
|
this.renderOptionGroup = () => {
|
|
57
|
-
const
|
|
58
|
-
value
|
|
59
|
-
options
|
|
60
|
-
searchable
|
|
61
|
-
searchPlaceholder
|
|
62
|
-
noOptionsPlaceholder
|
|
63
|
-
top
|
|
64
|
-
left
|
|
65
|
-
isUsePopover
|
|
58
|
+
const {
|
|
59
|
+
value,
|
|
60
|
+
options,
|
|
61
|
+
searchable,
|
|
62
|
+
searchPlaceholder,
|
|
63
|
+
noOptionsPlaceholder,
|
|
64
|
+
top,
|
|
65
|
+
left,
|
|
66
|
+
isUsePopover
|
|
67
|
+
} = this.props;
|
|
66
68
|
if (!isUsePopover) {
|
|
67
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
68
70
|
value: value,
|
|
@@ -121,11 +123,12 @@ class CollaboratorSelect extends _react.Component {
|
|
|
121
123
|
document.removeEventListener('mousedown', this.onMousedown);
|
|
122
124
|
}
|
|
123
125
|
render() {
|
|
124
|
-
let
|
|
125
|
-
className
|
|
126
|
-
value
|
|
127
|
-
placeholder
|
|
128
|
-
isLocked
|
|
126
|
+
let {
|
|
127
|
+
className,
|
|
128
|
+
value,
|
|
129
|
+
placeholder,
|
|
130
|
+
isLocked
|
|
131
|
+
} = this.props;
|
|
129
132
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
130
133
|
ref: node => this.selector = node,
|
|
131
134
|
className: (0, _classnames.default)('dtable-select custom-select collaborator-select', {
|
|
@@ -45,20 +45,24 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
45
45
|
};
|
|
46
46
|
this.getSelectedOptionTop = () => {
|
|
47
47
|
if (!this.selector) return 38;
|
|
48
|
-
const
|
|
49
|
-
height
|
|
48
|
+
const {
|
|
49
|
+
height
|
|
50
|
+
} = this.selector.getBoundingClientRect();
|
|
50
51
|
return height;
|
|
51
52
|
};
|
|
52
53
|
this.getFilterOptions = searchValue => {
|
|
53
|
-
const
|
|
54
|
-
options
|
|
55
|
-
searchable
|
|
54
|
+
const {
|
|
55
|
+
options,
|
|
56
|
+
searchable
|
|
57
|
+
} = this.props;
|
|
56
58
|
if (!searchable) return options || [];
|
|
57
59
|
const validSearchVal = searchValue.trim().toLowerCase();
|
|
58
60
|
if (!validSearchVal) return options || [];
|
|
59
61
|
return options.filter(option => {
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
+
const {
|
|
63
|
+
value,
|
|
64
|
+
name
|
|
65
|
+
} = option;
|
|
62
66
|
if (typeof name === 'string') {
|
|
63
67
|
return name.toLowerCase().indexOf(validSearchVal) > -1;
|
|
64
68
|
}
|
|
@@ -79,18 +83,19 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
79
83
|
};
|
|
80
84
|
}
|
|
81
85
|
render() {
|
|
82
|
-
let
|
|
83
|
-
className
|
|
84
|
-
value
|
|
85
|
-
options
|
|
86
|
-
placeholder
|
|
87
|
-
searchable
|
|
88
|
-
searchPlaceholder
|
|
89
|
-
noOptionsPlaceholder
|
|
90
|
-
isLocked
|
|
91
|
-
isInModal
|
|
92
|
-
addOptionAble
|
|
93
|
-
component
|
|
86
|
+
let {
|
|
87
|
+
className,
|
|
88
|
+
value,
|
|
89
|
+
options,
|
|
90
|
+
placeholder,
|
|
91
|
+
searchable,
|
|
92
|
+
searchPlaceholder,
|
|
93
|
+
noOptionsPlaceholder,
|
|
94
|
+
isLocked,
|
|
95
|
+
isInModal,
|
|
96
|
+
addOptionAble,
|
|
97
|
+
component
|
|
98
|
+
} = this.props;
|
|
94
99
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
95
100
|
ref: node => this.selector = node,
|
|
96
101
|
className: (0, _classnames.default)('dtable-select custom-select', {
|
|
@@ -13,22 +13,24 @@ var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
|
|
|
13
13
|
var _svgIcon = _interopRequireDefault(require("../DTableIcon/svg-icon"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
const DTableDropdownItem = _ref => {
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
let {
|
|
17
|
+
className,
|
|
18
|
+
divider,
|
|
19
|
+
id,
|
|
20
|
+
toggle,
|
|
21
|
+
disabled,
|
|
22
|
+
tooltip,
|
|
23
|
+
itemProps,
|
|
24
|
+
showChecked,
|
|
25
|
+
checked,
|
|
26
|
+
leftSlotContent,
|
|
27
|
+
rightSlotContent,
|
|
28
|
+
icon,
|
|
29
|
+
content,
|
|
30
|
+
onClick,
|
|
31
|
+
style,
|
|
32
|
+
tabIndex
|
|
33
|
+
} = _ref;
|
|
32
34
|
if (divider) {
|
|
33
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
|
|
34
36
|
divider: true,
|
|
@@ -10,14 +10,16 @@ var _reactstrap = require("reactstrap");
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
const DTableDropdownMenu = _ref => {
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
let {
|
|
14
|
+
id,
|
|
15
|
+
className,
|
|
16
|
+
container,
|
|
17
|
+
modifiers,
|
|
18
|
+
flip,
|
|
19
|
+
style,
|
|
20
|
+
menuProps,
|
|
21
|
+
children
|
|
22
|
+
} = _ref;
|
|
21
23
|
let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
|
|
22
24
|
customMenuProps.modifiers = [{
|
|
23
25
|
name: 'preventOverflow',
|
|
@@ -10,10 +10,11 @@ require("./index.css");
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
class DTableEmptyTip extends _react.default.Component {
|
|
12
12
|
render() {
|
|
13
|
-
const
|
|
14
|
-
text
|
|
15
|
-
title
|
|
16
|
-
type
|
|
13
|
+
const {
|
|
14
|
+
text,
|
|
15
|
+
title,
|
|
16
|
+
type
|
|
17
|
+
} = this.props;
|
|
17
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
18
19
|
className: "empty-tip",
|
|
19
20
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -29,8 +29,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
29
29
|
constructor(props) {
|
|
30
30
|
super(props);
|
|
31
31
|
this.updateFilters = _ref => {
|
|
32
|
-
let
|
|
33
|
-
|
|
32
|
+
let {
|
|
33
|
+
filter_conjunction,
|
|
34
|
+
filters
|
|
35
|
+
} = _ref;
|
|
34
36
|
const filterConjunction = filter_conjunction || this.state.filterConjunction;
|
|
35
37
|
if (this.isNeedSubmit) {
|
|
36
38
|
const isSubmitDisabled = false;
|
|
@@ -52,8 +54,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
52
54
|
});
|
|
53
55
|
};
|
|
54
56
|
this.addFilter = () => {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
+
const {
|
|
58
|
+
columns
|
|
59
|
+
} = this.props;
|
|
60
|
+
const {
|
|
61
|
+
filters
|
|
62
|
+
} = this.state;
|
|
57
63
|
const newFilter = (0, _utils.getDefaultFilter)(columns);
|
|
58
64
|
if (!newFilter) {
|
|
59
65
|
return;
|
|
@@ -63,8 +69,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
63
69
|
});
|
|
64
70
|
};
|
|
65
71
|
this.addFilterGroup = () => {
|
|
66
|
-
const
|
|
67
|
-
|
|
72
|
+
const {
|
|
73
|
+
columns
|
|
74
|
+
} = this.props;
|
|
75
|
+
const {
|
|
76
|
+
filters
|
|
77
|
+
} = this.state;
|
|
68
78
|
const newFilterGroup = (0, _utils.getDefaultFilterGroup)(columns);
|
|
69
79
|
if (!newFilterGroup) {
|
|
70
80
|
return;
|
|
@@ -77,9 +87,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
77
87
|
this.props.hidePopover();
|
|
78
88
|
};
|
|
79
89
|
this.onSubmitFilters = () => {
|
|
80
|
-
const
|
|
81
|
-
filters
|
|
82
|
-
filterConjunction
|
|
90
|
+
const {
|
|
91
|
+
filters,
|
|
92
|
+
filterConjunction
|
|
93
|
+
} = this.state;
|
|
83
94
|
const update = {
|
|
84
95
|
filters,
|
|
85
96
|
filter_conjunction: filterConjunction
|
|
@@ -90,10 +101,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
90
101
|
this.onPopoverInsideClick = e => {
|
|
91
102
|
e.stopPropagation();
|
|
92
103
|
};
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
const {
|
|
105
|
+
filterConjunction: _filterConjunction,
|
|
106
|
+
filters: _filters,
|
|
107
|
+
columns: _columns,
|
|
108
|
+
isNeedSubmit
|
|
109
|
+
} = props;
|
|
97
110
|
this.state = {
|
|
98
111
|
filters: (0, _dtableUtils.getValidFilters)(_filters, _columns),
|
|
99
112
|
filterConjunction: _constants.SUPPORT_CONJUNCTIONS.includes(_filterConjunction) ? _filterConjunction : _dtableUtils.FILTER_CONJUNCTION_TYPE.AND,
|
|
@@ -102,19 +115,21 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
102
115
|
this.isNeedSubmit = isNeedSubmit;
|
|
103
116
|
}
|
|
104
117
|
render() {
|
|
105
|
-
const
|
|
106
|
-
target
|
|
107
|
-
columns
|
|
108
|
-
placement
|
|
109
|
-
isSupportAdvanced
|
|
110
|
-
departments
|
|
111
|
-
lang
|
|
112
|
-
readOnly
|
|
113
|
-
userDepartmentIdsMap
|
|
114
|
-
firstDayOfWeek
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
const {
|
|
119
|
+
target,
|
|
120
|
+
columns,
|
|
121
|
+
placement,
|
|
122
|
+
isSupportAdvanced,
|
|
123
|
+
departments,
|
|
124
|
+
lang,
|
|
125
|
+
readOnly,
|
|
126
|
+
userDepartmentIdsMap,
|
|
127
|
+
firstDayOfWeek
|
|
128
|
+
} = this.props;
|
|
129
|
+
const {
|
|
130
|
+
filters,
|
|
131
|
+
filterConjunction
|
|
132
|
+
} = this.state;
|
|
118
133
|
const canAddFilter = columns.length > 0;
|
|
119
134
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTablePopover.default, {
|
|
120
135
|
target: target,
|
|
@@ -147,28 +162,29 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
147
162
|
addIconClassName: "popover-add-icon"
|
|
148
163
|
}), isSupportAdvanced && !readOnly && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
149
164
|
className: "add-buttons",
|
|
150
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
151
|
-
className: "
|
|
165
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Button, {
|
|
166
|
+
className: "mr-4",
|
|
152
167
|
onClick: canAddFilter ? () => this.addFilter() : () => {},
|
|
153
|
-
role: "button",
|
|
154
168
|
tabIndex: 0,
|
|
155
169
|
"aria-label": (0, _lang.getLocale)('Add_filter'),
|
|
170
|
+
color: "filled",
|
|
171
|
+
size: "middle",
|
|
156
172
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
157
173
|
"aria-hidden": "true",
|
|
158
|
-
className: "dtable-font dtable-icon-add-table
|
|
174
|
+
className: "dtable-font dtable-icon-add-table"
|
|
159
175
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
160
176
|
className: "add-new-option",
|
|
161
177
|
children: (0, _lang.getLocale)('Add_filter')
|
|
162
178
|
})]
|
|
163
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
164
|
-
className: "btn-add-filter-group",
|
|
179
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Button, {
|
|
165
180
|
onClick: canAddFilter ? () => this.addFilterGroup() : () => {},
|
|
166
|
-
|
|
181
|
+
color: "filled",
|
|
182
|
+
size: "middle",
|
|
167
183
|
tabIndex: 0,
|
|
168
184
|
"aria-label": (0, _lang.getLocale)('Add_filter_group'),
|
|
169
185
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
170
186
|
"aria-hidden": "true",
|
|
171
|
-
className: "dtable-font dtable-icon-add-table
|
|
187
|
+
className: "dtable-font dtable-icon-add-table"
|
|
172
188
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
173
189
|
className: "add-new-option",
|
|
174
190
|
children: (0, _lang.getLocale)('Add_filter_group')
|