@mailstep/design-system 0.13.3 → 0.13.5
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/package.json +1 -1
- package/ui/Blocks/Header/components/UserMenu/index.js +1 -1
- package/ui/Blocks/HidePrint/HidePrint.js +1 -1
- package/ui/Blocks/ImageList/ImageList.js +14 -7
- package/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +0 -1
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +5 -9
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +1 -4
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/index.js +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/styles.js +12 -7
- package/ui/Blocks/ImageList/components/ImageElement/index.d.ts +2 -0
- package/ui/Blocks/ImageList/components/ImageElement/index.js +9 -7
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +3 -5
- package/ui/Blocks/ImageList/components/ImageElement/styles.js +23 -15
- package/ui/Blocks/ImageList/styles.d.ts +0 -1
- package/ui/Blocks/ImageList/styles.js +1 -1
- package/ui/Blocks/ImageList/types.d.ts +3 -0
- package/ui/Blocks/LightBox/LightBox.js +38 -20
- package/ui/Blocks/LightBox/components/DownloadButton/index.d.ts +8 -0
- package/ui/Blocks/LightBox/components/DownloadButton/index.js +21 -0
- package/ui/Blocks/LightBox/components/DownloadButton/styles.d.ts +3 -0
- package/ui/Blocks/LightBox/components/DownloadButton/styles.js +22 -0
- package/ui/Blocks/LightBox/hooks/useImageDownload.d.ts +10 -0
- package/ui/Blocks/LightBox/hooks/useImageDownload.js +19 -0
- package/ui/Blocks/LightBox/styles.d.ts +1 -0
- package/ui/Blocks/LightBox/styles.js +6 -1
- package/ui/Blocks/LightBox/types.d.ts +4 -0
- package/ui/Blocks/LightBox/utils/downloadImage.d.ts +7 -0
- package/ui/Blocks/LightBox/utils/downloadImage.js +21 -0
- package/ui/Blocks/LightBox/utils/getImageFileName.d.ts +7 -0
- package/ui/Blocks/LightBox/utils/getImageFileName.js +8 -0
- package/ui/Blocks/LoginPage/LoginPage.js +1 -1
- package/ui/Blocks/LoginPage/components/LoginForm.js +3 -3
- package/ui/Blocks/LoginPage/components/SocialLinks.js +1 -1
- package/ui/Blocks/Modal/Modal.js +2 -2
- package/ui/Blocks/Modal/index.js +1 -1
- package/ui/Blocks/Popover/index.js +1 -1
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +1 -1
- package/ui/Blocks/Scheduler/components/DateChanger/index.js +2 -2
- package/ui/Blocks/SideMenu/components/Footer.js +1 -1
- package/ui/Blocks/SideMenu/components/HamburgerMenu.js +4 -4
- package/ui/Blocks/SideMenu/components/SubitemTooltip.js +1 -1
- package/ui/Blocks/Stepper/components/StepItem/index.js +1 -1
- package/ui/Elements/Alert/Alert.js +1 -1
- package/ui/Elements/Alert/styles.js +10 -10
- package/ui/Elements/AsyncSelect/AsyncSelect.js +1 -1
- package/ui/Elements/Badge/Badge.js +1 -1
- package/ui/Elements/BarChartSymbol/BarChartSymbol.js +1 -1
- package/ui/Elements/BorderedBox/BorderedBox.js +1 -1
- package/ui/Elements/Dropdown/Dropdown.js +1 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +1 -1
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
- package/ui/Elements/DropdownSelect/DropdownSelect.js +1 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -1
- package/ui/Elements/HighlightBox/HighlightBox.js +1 -1
- package/ui/Elements/Icon/BadgeIcon.js +1 -1
- package/ui/Elements/Icon/Icon.js +1 -1
- package/ui/Elements/Line/Line.js +1 -1
- package/ui/Elements/Link/Link.js +1 -1
- package/ui/Elements/Logo/Logo.js +1 -1
- package/ui/Elements/Select/Select.js +2 -2
- package/ui/Elements/Select/components/CountMultiValue.js +1 -1
- package/ui/Elements/Select/components/DropdownIndicator.js +1 -1
- package/ui/Elements/Select/components/IconValueContainer.js +1 -1
- package/ui/Elements/Select/components/SelectAll.js +1 -1
- package/ui/Elements/SpaceAround/SpaceAround.js +1 -1
- package/ui/Elements/Tag/stories/components/predefinedTags.js +1 -1
- package/ui/Elements/Text/Text.js +1 -1
- package/ui/Elements/Toast/Toast.js +1 -1
- package/ui/Elements/Toggle/Toggle.js +3 -3
- package/ui/Elements/Tooltip/Tooltip.js +1 -1
- package/ui/Forms/DatePicker/DatePicker.js +2 -2
- package/ui/Forms/DatePicker/Datetime/components/DateRepeater.js +1 -1
- package/ui/Forms/DatePicker/Datetime/components/Timepicker/Timepicker.js +1 -1
- package/ui/Forms/Input/Input.js +4 -4
- package/ui/Forms/TextArea/TextArea.js +2 -2
- package/ui/Modules/CommonGrid/CommonGrid.js +2 -2
- package/ui/Modules/CommonGrid/CommonGridContainer.js +2 -2
- package/ui/Modules/CommonGrid/components/ActionHead/ActionHead.js +2 -2
- package/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +1 -1
- package/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +1 -1
- package/ui/Modules/CommonGrid/components/ButtonMore/ButtonMore.js +2 -2
- package/ui/Modules/CommonGrid/components/ColumnFilterCell.js +1 -1
- package/ui/Modules/CommonGrid/components/ColumnTitle/ColumnTitle.js +1 -1
- package/ui/Modules/CommonGrid/components/ColumnTitle.js +1 -1
- package/ui/Modules/CommonGrid/components/ControlButtons/ControlButtons.js +2 -2
- package/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.js +2 -2
- package/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +1 -1
- package/ui/Modules/CommonGrid/components/FilterDropdown.js +1 -1
- package/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +2 -2
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +6 -4
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +10 -15
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/index.d.ts +1 -0
- package/ui/Modules/CommonGrid/components/FloatingButton/FloatingButton.js +1 -1
- package/ui/Modules/CommonGrid/components/GridInfo/index.js +1 -1
- package/ui/Modules/CommonGrid/components/IconList/IconList.js +1 -1
- package/ui/Modules/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +1 -1
- package/ui/Modules/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +2 -2
- package/ui/Modules/CommonGrid/components/MobileFilterModal.js +2 -2
- package/ui/Modules/CommonGrid/components/MobileSortModal.js +2 -2
- package/ui/Modules/CommonGrid/components/OversizedScroll.js +1 -1
- package/ui/Modules/CommonGrid/components/PresetsModalBody/index.js +1 -1
- package/ui/Modules/CommonGrid/components/QuickFilter/QuickFilter.js +2 -2
- package/ui/Modules/CommonGrid/components/Resize.js +1 -1
- package/ui/Modules/CommonGrid/components/TablePagination/TablePagination.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/BoolIcon.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/Date.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/DateTime.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/EnumInCell.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/HoverBubble.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/IconButtonInCell.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/ImageCell.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/RemoveItem.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/RowActionsCell.js +1 -1
- package/ui/Modules/CommonGrid/hooks/useCreatePreset.js +1 -1
- package/ui/Modules/CommonGrid/hooks/usePresetFileHandlers.js +1 -1
- package/ui/Modules/CommonGrid/hooks/useQuickFilter.js +2 -2
- package/ui/Modules/CommonGrid/index.d.ts +7 -5
- package/ui/Modules/CommonGrid/index.js +5 -4
- package/ui/Modules/CommonGrid/store/index.js +2 -2
- package/ui/Modules/CommonGrid/storybook/utils/utils.js +1 -1
- package/ui/Modules/CommonGrid/storybook/utils/withRedux.js +1 -1
- package/ui/Modules/CommonGrid/utils/index.js +1 -1
- package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.js +2 -2
- package/ui/Modules/Dashboard/components/Config/components/InputConfig.js +1 -1
- package/ui/Modules/Dashboard/components/Dashboard/Dashboard.js +1 -1
- package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/LayoutContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +1 -1
- package/ui/Modules/Dashboard/components/Picker/PickerContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useSort.js +1 -1
- package/ui/Modules/Dashboard/errors/ErrorMessage.js +1 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/index.js +22 -21
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { useToggleAllCheckbox } from "../../hooks/useToggleAllCheckbox.js";
|
|
1
2
|
import Button from "../../../../Elements/Button/Button.js";
|
|
2
3
|
import "../../../../Elements/Button/index.js";
|
|
3
4
|
import { useGridActionTrigger } from "../../hooks/useGridActionTrigger.js";
|
|
4
|
-
import { useToggleAllCheckbox } from "../../hooks/useToggleAllCheckbox.js";
|
|
5
5
|
import ButtonMore from "../ButtonMore/ButtonMore.js";
|
|
6
6
|
import { useCallback, useMemo } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import styled$1 from "@xstyled/styled-components";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
11
|
//#region packages/ui/Modules/CommonGrid/components/ActionHead/ActionHead.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownMenu.tsx
|
|
6
6
|
const StyledDropdownWrap = styled$1.div`
|
|
@@ -2,8 +2,8 @@ import Icon from "../../../../../Elements/Icon/Icon.js";
|
|
|
2
2
|
import Popover from "../../../../../Blocks/Popover/index.js";
|
|
3
3
|
import ActionDropdownMenu from "./ActionDropdownMenu.js";
|
|
4
4
|
import React, { memo, useRef } from "react";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { th as th$1 } from "@xstyled/system";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
9
|
//#region packages/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownSelect.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
1
2
|
import Button from "../../../../Elements/Button/Button.js";
|
|
2
3
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
3
4
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
4
|
-
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
5
5
|
import { useCallback, useState } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import styled$1 from "@xstyled/styled-components";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region packages/ui/Modules/CommonGrid/components/ButtonMore/ButtonMore.tsx
|
|
9
9
|
const ButtonWrapper = styled$1.div`
|
|
10
10
|
position: relative;
|
|
@@ -3,8 +3,8 @@ import { useAddFilter } from "../hooks/useAddFilter.js";
|
|
|
3
3
|
import { Cell } from "./Table.js";
|
|
4
4
|
import OverlayComponent from "./FilterDropdown.js";
|
|
5
5
|
import React from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import { x } from "@xstyled/styled-components";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region packages/ui/Modules/CommonGrid/components/ColumnFilterCell.tsx
|
|
9
9
|
const ColumnFilterCell = ({ onChange, value, others, displayColumnWidth, filters, column: columnDefinition, group, comparators, actionColumn, rowsData, uxState, handleUxChange, onAsyncLoadFilterOptions }) => {
|
|
10
10
|
const cellSizeProps = getCellSizeProps(columnDefinition, displayColumnWidth);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled$1, { css, x } from "@xstyled/styled-components";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle/ColumnTitle.tsx
|
|
6
6
|
const WRAPPER_WIDTH = 35;
|
|
7
7
|
const Wrap = styled$1.div`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SortingDown, SortingUp } from "./icons/Sorting.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/ColumnTitle.tsx
|
|
6
6
|
const Title = styled$1.span`
|
|
7
7
|
& + * {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Settings2 } from "../../../../Elements/Icon/icons/Settings2.js";
|
|
2
2
|
import { Filter } from "../../../../Elements/Icon/icons/Filter.js";
|
|
3
3
|
import { Sort } from "../../../../Elements/Icon/icons/Sort.js";
|
|
4
|
+
import { isFilterActive } from "../../utils/index.js";
|
|
4
5
|
import Button from "../../../../Elements/Button/Button.js";
|
|
5
6
|
import Tag from "../../../../Elements/Tag/Tag.js";
|
|
6
7
|
import { palettes } from "../../../../Elements/Tag/palettes.js";
|
|
7
8
|
import { H6 } from "../../../../Elements/Typography/Typography.js";
|
|
8
9
|
import "../../../../Elements/Typography/index.js";
|
|
9
|
-
import { isFilterActive } from "../../utils/index.js";
|
|
10
10
|
import useQuickFilter from "../../hooks/useQuickFilter.js";
|
|
11
11
|
import { useShareGrid } from "../../hooks/useShareGrid.js";
|
|
12
12
|
import "../../types.js";
|
|
@@ -14,8 +14,8 @@ import ExtraControlButtons_default from "../ExtraControlButtons/index.js";
|
|
|
14
14
|
import QuickFilter_default from "../QuickFilter/index.js";
|
|
15
15
|
import { ControlButtonsContainer, CopiedMessage, Left, Right, ShareButtonWrapper, StyledColumnButton } from "./styles.js";
|
|
16
16
|
import { useEffect, useMemo } from "react";
|
|
17
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
17
|
import { useColor, x } from "@xstyled/styled-components";
|
|
18
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { i18n } from "@lingui/core";
|
|
20
20
|
import { Trans } from "@lingui/react";
|
|
21
21
|
//#region packages/ui/Modules/CommonGrid/components/ControlButtons/ControlButtons.tsx
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
1
2
|
import { ArrowDown } from "../../../../Elements/Icon/icons/ArrowDown.js";
|
|
2
3
|
import { ArrowUp } from "../../../../Elements/Icon/icons/ArrowUp.js";
|
|
3
4
|
import "../../../../Elements/Icon/index.js";
|
|
4
5
|
import Button from "../../../../Elements/Button/Button.js";
|
|
5
6
|
import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js";
|
|
6
7
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
7
|
-
import { useClickOutside } from "../../../../Blocks/Modal/hooks/useClickOutside.js";
|
|
8
8
|
import React, { useCallback, useState } from "react";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import styled$1 from "@xstyled/styled-components";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { th as th$1 } from "@xstyled/system";
|
|
12
12
|
//#region packages/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.tsx
|
|
13
13
|
const ButtonWrapper = styled$1.div`
|
|
@@ -2,8 +2,8 @@ import Button from "../../../../Elements/Button/Button.js";
|
|
|
2
2
|
import ButtonMore from "../ButtonMore/ButtonMore.js";
|
|
3
3
|
import DropdownSelect_default from "../../../../Elements/DropdownSelect/index.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
6
5
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
6
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region packages/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.tsx
|
|
8
8
|
const Row = styled$1.div`
|
|
9
9
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region packages/ui/Modules/CommonGrid/components/FilterDropdown.tsx
|
|
5
5
|
const OverlayWrapper = styled$1.div`
|
|
6
6
|
position: absolute;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useToggleAllCheckbox } from "../../../hooks/useToggleAllCheckbox.js";
|
|
2
1
|
import Checkbox_default from "../../../../../Forms/Checkbox/index.js";
|
|
3
|
-
import {
|
|
2
|
+
import { useToggleAllCheckbox } from "../../../hooks/useToggleAllCheckbox.js";
|
|
4
3
|
import { x } from "@xstyled/styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.tsx
|
|
6
6
|
const ActionsFilter = ({ actionColumn, rowsData, uxState, handleUxChange }) => {
|
|
7
7
|
const [allChecked, toggleCheckbox] = useToggleAllCheckbox(rowsData, uxState, handleUxChange);
|
|
@@ -2,15 +2,17 @@ import { type FC } from 'react';
|
|
|
2
2
|
import type { DateTimeOthers } from '../../../../../Forms/DatePicker/Datetime/types';
|
|
3
3
|
import type { FilterComponentProps } from '../../../types';
|
|
4
4
|
type InitialView = 'past' | 'future';
|
|
5
|
-
type
|
|
6
|
-
filterTime?:
|
|
5
|
+
type DatePickerRangeBaseProps = FilterComponentProps<Date[]> & {
|
|
6
|
+
filterTime?: boolean;
|
|
7
7
|
initialView?: InitialView;
|
|
8
8
|
onChange: (value: Date[], others?: DateTimeOthers[]) => void;
|
|
9
9
|
};
|
|
10
|
-
type
|
|
10
|
+
export type DatePickerRangeProps = DatePickerRangeBaseProps & {
|
|
11
11
|
error?: string;
|
|
12
12
|
label?: string;
|
|
13
13
|
compact?: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
showRepeat?: boolean;
|
|
14
16
|
};
|
|
15
|
-
declare const DatePickerRange: FC<
|
|
17
|
+
declare const DatePickerRange: FC<DatePickerRangeProps>;
|
|
16
18
|
export default DatePickerRange;
|
|
@@ -4,10 +4,10 @@ import DatePicker_default from "../../../../../Forms/DatePicker/index.js";
|
|
|
4
4
|
import { getCleanValues } from "./utils/getCleanValues.js";
|
|
5
5
|
import { pickerRangeToString } from "./utils/pickerRangeToString.js";
|
|
6
6
|
import React, { useCallback, useMemo, useState } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { DateTime } from "luxon";
|
|
8
8
|
import styled$1, { css } from "@xstyled/styled-components";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { i18n } from "@lingui/core";
|
|
10
|
-
import { DateTime } from "luxon";
|
|
11
11
|
//#region packages/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.tsx
|
|
12
12
|
const RangeWrapper = styled$1.div`
|
|
13
13
|
display: ${({ $compact }) => $compact ? "flex" : "inline-flex"};
|
|
@@ -31,9 +31,7 @@ const RangeWrapper = styled$1.div`
|
|
|
31
31
|
`;
|
|
32
32
|
const OverlayComponentDefault = ({ children }) => /* @__PURE__ */ jsx("div", { children });
|
|
33
33
|
const DatePickerRange = (props) => {
|
|
34
|
-
const { onChange, error, label, value, others, filterTime, initialView, compact, OverlayComponent = OverlayComponentDefault, ...rest } = props;
|
|
35
|
-
const [startRangeValue, setStartRangeValue] = useState(value?.[0] ?? void 0);
|
|
36
|
-
const [endRangeValue, setEndRangeValue] = useState(value?.[1] ?? void 0);
|
|
34
|
+
const { onChange, error, label, value, others, filterTime, initialView, compact, placeholder, showRepeat = true, OverlayComponent = OverlayComponentDefault, ...rest } = props;
|
|
37
35
|
const timeFormat = filterTime ? "HH:mm" : false;
|
|
38
36
|
const cleanValue = React.useMemo(() => getCleanValues(value), [value]);
|
|
39
37
|
const initialViewDate = useMemo(() => {
|
|
@@ -48,7 +46,6 @@ const DatePickerRange = (props) => {
|
|
|
48
46
|
}, [cleanValue, initialView]);
|
|
49
47
|
const [isOpen, setOpen] = useState(false);
|
|
50
48
|
const setDateFrom = useCallback((v) => {
|
|
51
|
-
setStartRangeValue(v);
|
|
52
49
|
onChange([v, cleanValue[1]], others);
|
|
53
50
|
}, [
|
|
54
51
|
onChange,
|
|
@@ -56,7 +53,6 @@ const DatePickerRange = (props) => {
|
|
|
56
53
|
cleanValue
|
|
57
54
|
]);
|
|
58
55
|
const setDateTo = useCallback((v) => {
|
|
59
|
-
setEndRangeValue(v);
|
|
60
56
|
onChange([cleanValue[0], v], others);
|
|
61
57
|
}, [
|
|
62
58
|
onChange,
|
|
@@ -82,8 +78,6 @@ const DatePickerRange = (props) => {
|
|
|
82
78
|
}, [setOpen]);
|
|
83
79
|
const clear = useCallback(() => {
|
|
84
80
|
onChange([], []);
|
|
85
|
-
setStartRangeValue(void 0);
|
|
86
|
-
setEndRangeValue(void 0);
|
|
87
81
|
}, [onChange]);
|
|
88
82
|
const isValidDateFrom = useCallback((current) => !cleanValue[1] || DateTime.fromJSDate(cleanValue[1]) >= DateTime.fromJSDate(current), [cleanValue]);
|
|
89
83
|
const isValidDateTo = useCallback((current) => !cleanValue[0] || DateTime.fromJSDate(current) >= DateTime.fromJSDate(cleanValue[0]), [cleanValue]);
|
|
@@ -103,6 +97,7 @@ const DatePickerRange = (props) => {
|
|
|
103
97
|
iconOnClick: openPicker,
|
|
104
98
|
onClear: clear,
|
|
105
99
|
error,
|
|
100
|
+
placeholder,
|
|
106
101
|
readOnly: true
|
|
107
102
|
}), /* @__PURE__ */ jsx(OverlayComponent, { children: /* @__PURE__ */ jsx(Fragment, { children: isOpen && /* @__PURE__ */ jsxs(RangeWrapper, {
|
|
108
103
|
$compact: compact,
|
|
@@ -112,10 +107,10 @@ const DatePickerRange = (props) => {
|
|
|
112
107
|
timeFormat,
|
|
113
108
|
value: cleanValue[0] ?? "",
|
|
114
109
|
initialViewDate: initialViewDate[0],
|
|
115
|
-
secondValue:
|
|
110
|
+
secondValue: cleanValue[1],
|
|
116
111
|
onChange: setDateFrom,
|
|
117
|
-
others: others?.[0],
|
|
118
|
-
onChangeOthers: handleOthersChangeFrom,
|
|
112
|
+
others: showRepeat ? others?.[0] : void 0,
|
|
113
|
+
onChangeOthers: showRepeat ? handleOthersChangeFrom : void 0,
|
|
119
114
|
icon: false,
|
|
120
115
|
label: isOpen && i18n._({
|
|
121
116
|
id: "dataGrid.filterCell.from",
|
|
@@ -130,10 +125,10 @@ const DatePickerRange = (props) => {
|
|
|
130
125
|
timeFormat,
|
|
131
126
|
value: secondDatePickerValue,
|
|
132
127
|
initialViewDate: initialViewDate[1],
|
|
133
|
-
secondValue:
|
|
128
|
+
secondValue: cleanValue[0],
|
|
134
129
|
onChange: setDateTo,
|
|
135
|
-
others: others?.[1],
|
|
136
|
-
onChangeOthers: handleOthersChangeTo,
|
|
130
|
+
others: showRepeat ? others?.[1] : void 0,
|
|
131
|
+
onChangeOthers: showRepeat ? handleOthersChangeTo : void 0,
|
|
137
132
|
icon: false,
|
|
138
133
|
label: isOpen && i18n._({
|
|
139
134
|
id: "dataGrid.filterCell.to",
|
|
@@ -2,8 +2,8 @@ import { DropdownMenu } from "../../../../Elements/DropdownMenu/DropdownMenu.js"
|
|
|
2
2
|
import "../../../../Elements/DropdownMenu/index.js";
|
|
3
3
|
import Popover from "../../../../Blocks/Popover/index.js";
|
|
4
4
|
import { useCallback, useRef, useState } from "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region packages/ui/Modules/CommonGrid/components/FloatingButton/FloatingButton.tsx
|
|
8
8
|
const FloatingWrapper = styled$1.div`
|
|
9
9
|
display: block;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import "../../../../Elements/Icon/index.js";
|
|
3
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { x } from "@xstyled/styled-components";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Trans } from "@lingui/react";
|
|
6
6
|
//#region packages/ui/Modules/CommonGrid/components/GridInfo/index.tsx
|
|
7
7
|
const GridInfo = ({ isSortTerminatedAppeal, isSortTerminated }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { th as th$1 } from "@xstyled/system";
|
|
6
6
|
//#region packages/ui/Modules/CommonGrid/components/IconList/IconList.tsx
|
|
7
7
|
const List = styled$1.ul`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Input } from "../../../../Forms/Input/Input.js";
|
|
2
2
|
import { ManageColumnRow } from "./components/ManageColumnRow.js";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { x } from "@xstyled/styled-components";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { i18n } from "@lingui/core";
|
|
7
7
|
import { SortableContext, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
8
8
|
import { DndContext, PointerSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Group } from "../../../../../Elements/Icon/icons/Group.js";
|
|
2
|
+
import Toggle from "../../../../../Elements/Toggle/Toggle.js";
|
|
2
3
|
import { H6 } from "../../../../../Elements/Typography/Typography.js";
|
|
3
4
|
import { getTranslatedValue } from "../utils.js";
|
|
4
|
-
import Toggle from "../../../../../Elements/Toggle/Toggle.js";
|
|
5
5
|
import { RowLayout } from "../styles.js";
|
|
6
6
|
import { useCallback, useState } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { x } from "@xstyled/styled-components";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useSortable } from "@dnd-kit/sortable";
|
|
10
10
|
import { CSS } from "@dnd-kit/utilities";
|
|
11
11
|
//#region packages/ui/Modules/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { createFilterType, getFilterName, isFilterActive } from "../utils/index.js";
|
|
1
2
|
import { H6 } from "../../../Elements/Typography/Typography.js";
|
|
2
3
|
import "../../../Elements/Typography/index.js";
|
|
3
|
-
import { createFilterType, getFilterName, isFilterActive } from "../utils/index.js";
|
|
4
4
|
import { Modal } from "../../../Blocks/Modal/Modal.js";
|
|
5
5
|
import { MobileOverlayWrapper } from "./MobileOverlayWrapper.js";
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { x } from "@xstyled/styled-components";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Trans } from "@lingui/react";
|
|
10
10
|
import get from "lodash/fp/get";
|
|
11
11
|
//#region packages/ui/Modules/CommonGrid/components/MobileFilterModal.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Button_default from "../../../Elements/Button/index.js";
|
|
2
1
|
import { getSortName } from "../utils/index.js";
|
|
2
|
+
import Button_default from "../../../Elements/Button/index.js";
|
|
3
3
|
import { Modal } from "../../../Blocks/Modal/Modal.js";
|
|
4
4
|
import { SortingDown, SortingUp } from "./icons/Sorting.js";
|
|
5
5
|
import { useCallback } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import { x } from "@xstyled/styled-components";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
9
|
//#region packages/ui/Modules/CommonGrid/components/MobileSortModal.tsx
|
|
10
10
|
const AscIcon = /* @__PURE__ */ jsx(SortingUp, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { css } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region packages/ui/Modules/CommonGrid/components/OversizedScroll.tsx
|
|
5
5
|
const ScrollWrapper = styled$1.div`
|
|
6
6
|
${(props) => props.columnLayout !== "no-scroll" && css`
|
|
@@ -5,8 +5,8 @@ import { palettes } from "../../../../Elements/Tag/palettes.js";
|
|
|
5
5
|
import { H6 } from "../../../../Elements/Typography/Typography.js";
|
|
6
6
|
import { TagRemove } from "./components/TagRemove.js";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { x } from "@xstyled/styled-components";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
11
|
import isEmpty from "lodash/isEmpty";
|
|
12
12
|
//#region packages/ui/Modules/CommonGrid/components/PresetsModalBody/index.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Button_default from "../../../../Elements/Button/index.js";
|
|
2
1
|
import Input_default from "../../../../Forms/Input/index.js";
|
|
3
|
-
import
|
|
2
|
+
import Button_default from "../../../../Elements/Button/index.js";
|
|
4
3
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/QuickFilter/QuickFilter.tsx
|
|
6
6
|
const StyledInput = styled$1(Input_default)`
|
|
7
7
|
position: ${({ isMobileInputView }) => isMobileInputView ? "absolute" : "relative"};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region packages/ui/Modules/CommonGrid/components/Resize.tsx
|
|
5
5
|
const Resizer = styled$1.div`
|
|
6
6
|
height: 100%;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Select from "../../../../Elements/Select/Select.js";
|
|
2
2
|
import { rowsPerPageOptions } from "../../utils/constants.js";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Trans } from "@lingui/react";
|
|
7
7
|
//#region packages/ui/Modules/CommonGrid/components/TablePagination/TablePagination.tsx
|
|
8
8
|
const Wrapper = styled$1.span`
|
|
@@ -2,8 +2,8 @@ import { ToastSuccess } from "../../../../Elements/Icon/icons/ToastSuccess.js";
|
|
|
2
2
|
import { ToastError } from "../../../../Elements/Icon/icons/ToastError.js";
|
|
3
3
|
import "../../../../Elements/Icon/index.js";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import get from "lodash/fp/get";
|
|
8
8
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/BoolIcon.tsx
|
|
9
9
|
const Center = styled$1.div`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { DateTime } from "luxon";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/Date.tsx
|
|
6
6
|
const DateCell = ({ rowData, column }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { DateTime } from "luxon";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/DateTime.tsx
|
|
6
6
|
const defaultProps = { dateTimeFormat: "dd. MM. yyyy HH:mm" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import HighlightBox_default from "../../../../Elements/HighlightBox/index.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/EnumInCell.tsx
|
|
6
6
|
const Center = styled$1.div`
|
|
7
7
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/HoverBubble.tsx
|
|
6
6
|
const Wrapper = styled$1.div`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import { Spinner } from "../../../../Elements/Spinner/Spinner.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
4
|
import { x } from "@xstyled/styled-components";
|
|
5
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Link } from "react-router-dom";
|
|
7
7
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/IconButtonInCell.tsx
|
|
8
8
|
const IconButtonInCell = ({ icon, isLoading, onClick, linkTo }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Image from "../../../../Elements/Image/Image.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import get from "lodash/fp/get";
|
|
6
6
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/ImageCell.tsx
|
|
7
7
|
const ImageWrapper = styled$1.div`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Icon from "../../../../Elements/Icon/Icon.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Trans } from "@lingui/react";
|
|
6
6
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/RemoveItem.tsx
|
|
7
7
|
const Wrap = styled$1.div`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Checkbox_default from "../../../../Forms/Checkbox/index.js";
|
|
2
2
|
import { IconButtonInCell } from "./IconButtonInCell.js";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { x } from "@xstyled/styled-components";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { isFunction, omit } from "lodash/fp";
|
|
7
7
|
//#region packages/ui/Modules/CommonGrid/components/gridCells/RowActionsCell.tsx
|
|
8
8
|
const RowActionsCell = ({ actionColumnDefinition, rowData, addRowNumbers, rowIndex, rowNumberWidth = 0, checkedRows, withCheckboxes, onUxChange, onRowAction }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useModal } from "../../../Blocks/Modal/hooks/useModal.js";
|
|
2
1
|
import { useEvent } from "./useEvent.js";
|
|
2
|
+
import { useModal } from "../../../Blocks/Modal/hooks/useModal.js";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
4
|
import isEmpty from "lodash/isEmpty";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/hooks/useCreatePreset.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import omit from "lodash/omit";
|
|
1
2
|
import { useCallback, useRef } from "react";
|
|
2
3
|
import { i18n } from "@lingui/core";
|
|
3
|
-
import omit from "lodash/omit";
|
|
4
4
|
//#region packages/ui/Modules/CommonGrid/hooks/usePresetFileHandlers.ts
|
|
5
5
|
const usePresetFileHandlers = ({ gridName, gridActions, gridSelectors }) => {
|
|
6
6
|
const fileInputRef = useRef(null);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { createFilterType } from "../utils/index.js";
|
|
2
|
+
import { useAddFilter } from "./useAddFilter.js";
|
|
1
3
|
import { useCheckDeviceWidth } from "../../../utils/CheckDeviceWidth/checkDeviceWidth.js";
|
|
2
4
|
import { getTranslatedValue } from "../components/ManageColumnForm/utils.js";
|
|
3
|
-
import { createFilterType } from "../utils/index.js";
|
|
4
5
|
import { clearShareParams } from "../utils/shareUrl/clearShareParams.js";
|
|
5
6
|
import "../utils/shareUrl/index.js";
|
|
6
|
-
import { useAddFilter } from "./useAddFilter.js";
|
|
7
7
|
import { useCallback, useEffect, useState } from "react";
|
|
8
8
|
//#region packages/ui/Modules/CommonGrid/hooks/useQuickFilter.ts
|
|
9
9
|
const defaultVoidFunction = (...args) => null;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import CommonGrid from './CommonGridContainer';
|
|
2
1
|
import withReduxActions from './HoC/withReduxActions';
|
|
3
|
-
import
|
|
2
|
+
import DatePickerRange from './components/Filters/DatePickerRange';
|
|
3
|
+
import { useAddFilter } from './hooks/useAddFilter';
|
|
4
|
+
import { useEvent } from './hooks/useEvent';
|
|
4
5
|
import useFloatingButton from './hooks/useFloatingButton';
|
|
6
|
+
import CommonGrid from './CommonGridContainer';
|
|
7
|
+
import reducer, { actionPrefix, createActions, createSelectors, createFullSelector, actionTypes } from './store';
|
|
5
8
|
import * as Types from './types';
|
|
6
9
|
export * from './components/gridCells';
|
|
7
|
-
|
|
8
|
-
import { useEvent } from './hooks/useEvent';
|
|
10
|
+
export type { DatePickerRangeProps } from './components/Filters/DatePickerRange';
|
|
9
11
|
export default CommonGrid;
|
|
10
|
-
export { withReduxActions, reducer, actionPrefix, actionTypes, createActions, createSelectors, createFullSelector, Types, useFloatingButton, useAddFilter, useEvent, };
|
|
12
|
+
export { withReduxActions, reducer, actionPrefix, actionTypes, createActions, createSelectors, createFullSelector, Types, useFloatingButton, useAddFilter, useEvent, DatePickerRange };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import store_default, { actionPrefix, actionTypes, createActions, createFullSelector, createSelectors } from "./store/index.js";
|
|
2
|
+
import withReduxActions from "./HoC/withReduxActions.js";
|
|
3
|
+
import DatePickerRange_default from "./components/Filters/DatePickerRange/index.js";
|
|
1
4
|
import { useEvent } from "./hooks/useEvent.js";
|
|
2
5
|
import { useAddFilter } from "./hooks/useAddFilter.js";
|
|
6
|
+
import useFloatingButton from "./hooks/useFloatingButton.js";
|
|
3
7
|
import { types_exports } from "./types.js";
|
|
4
8
|
import { DateCell } from "./components/gridCells/Date.js";
|
|
5
9
|
import { DateTimeCell } from "./components/gridCells/DateTime.js";
|
|
@@ -16,11 +20,8 @@ import { HoverBubble } from "./components/gridCells/HoverBubble.js";
|
|
|
16
20
|
import { RowActionsCell } from "./components/gridCells/RowActionsCell.js";
|
|
17
21
|
import { ToggleCell } from "./components/gridCells/ToggleCell.js";
|
|
18
22
|
import "./components/gridCells/index.js";
|
|
19
|
-
import store_default, { actionPrefix, actionTypes, createActions, createFullSelector, createSelectors } from "./store/index.js";
|
|
20
23
|
import CommonGridContainer from "./CommonGridContainer.js";
|
|
21
|
-
import withReduxActions from "./HoC/withReduxActions.js";
|
|
22
|
-
import useFloatingButton from "./hooks/useFloatingButton.js";
|
|
23
24
|
//#region packages/ui/Modules/CommonGrid/index.ts
|
|
24
25
|
var CommonGrid_default = CommonGridContainer;
|
|
25
26
|
//#endregion
|
|
26
|
-
export { BoolIconCell, ButtonInCell, DateCell, DateTimeCell, EnumInCell, HoverBubble, IconButtonInCell, ImageCell, LinkInCell, RemoveCell, RowActionsCell, StringJoinCell, SwitchInCell, ToggleCell, types_exports as Types, actionPrefix, actionTypes, createActions, createFullSelector, createSelectors, CommonGrid_default as default, store_default as reducer, useAddFilter, useEvent, useFloatingButton, withReduxActions };
|
|
27
|
+
export { BoolIconCell, ButtonInCell, DateCell, DatePickerRange_default as DatePickerRange, DateTimeCell, EnumInCell, HoverBubble, IconButtonInCell, ImageCell, LinkInCell, RemoveCell, RowActionsCell, StringJoinCell, SwitchInCell, ToggleCell, types_exports as Types, actionPrefix, actionTypes, createActions, createFullSelector, createSelectors, CommonGrid_default as default, store_default as reducer, useAddFilter, useEvent, useFloatingButton, withReduxActions };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import migrateState_default from "./migrateState.js";
|
|
2
|
-
import getOr from "lodash/fp/getOr";
|
|
3
|
-
import omit from "lodash/omit";
|
|
4
2
|
import produce from "immer";
|
|
5
3
|
import { createSelector } from "reselect";
|
|
4
|
+
import getOr from "lodash/fp/getOr";
|
|
5
|
+
import omit from "lodash/omit";
|
|
6
6
|
//#region packages/ui/Modules/CommonGrid/store/index.ts
|
|
7
7
|
const initialState = {
|
|
8
8
|
page: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import withReduxActions from "../../HoC/withReduxActions.js";
|
|
1
2
|
import { rowClassSymbol } from "../../types.js";
|
|
2
3
|
import CommonGridContainer from "../../CommonGridContainer.js";
|
|
3
|
-
import withReduxActions from "../../HoC/withReduxActions.js";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import faker from "faker";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import store_default from "../../store/index.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { Provider } from "react-redux";
|
|
4
3
|
import { combineReducers, compose, createStore } from "redux";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region packages/ui/Modules/CommonGrid/storybook/utils/withRedux.tsx
|
|
6
6
|
const reduxComposeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
|
7
7
|
const withProvider = (story) => {
|