@mailstep/design-system 0.13.4 → 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.
Files changed (112) hide show
  1. package/package.json +1 -1
  2. package/ui/Blocks/Header/components/UserMenu/index.js +1 -1
  3. package/ui/Blocks/HidePrint/HidePrint.js +1 -1
  4. package/ui/Blocks/ImageList/ImageList.js +1 -1
  5. package/ui/Blocks/LoginPage/LoginPage.js +1 -1
  6. package/ui/Blocks/LoginPage/components/LoginForm.js +3 -3
  7. package/ui/Blocks/LoginPage/components/SocialLinks.js +1 -1
  8. package/ui/Blocks/Modal/Modal.js +2 -2
  9. package/ui/Blocks/Modal/index.js +1 -1
  10. package/ui/Blocks/Popover/index.js +1 -1
  11. package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +1 -1
  12. package/ui/Blocks/Scheduler/components/DateChanger/index.js +2 -2
  13. package/ui/Blocks/SideMenu/components/Footer.js +1 -1
  14. package/ui/Blocks/SideMenu/components/HamburgerMenu.js +4 -4
  15. package/ui/Blocks/SideMenu/components/SubitemTooltip.js +1 -1
  16. package/ui/Blocks/Stepper/components/StepItem/index.js +1 -1
  17. package/ui/Elements/Alert/Alert.js +1 -1
  18. package/ui/Elements/Alert/styles.js +10 -10
  19. package/ui/Elements/AsyncSelect/AsyncSelect.js +1 -1
  20. package/ui/Elements/Badge/Badge.js +1 -1
  21. package/ui/Elements/BarChartSymbol/BarChartSymbol.js +1 -1
  22. package/ui/Elements/BorderedBox/BorderedBox.js +1 -1
  23. package/ui/Elements/Dropdown/Dropdown.js +1 -1
  24. package/ui/Elements/DropdownMenu/DropdownMenu.js +1 -1
  25. package/ui/Elements/DropdownMenu/components/DefaultItem.js +1 -1
  26. package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
  27. package/ui/Elements/DropdownSelect/DropdownSelect.js +1 -1
  28. package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -1
  29. package/ui/Elements/HighlightBox/HighlightBox.js +1 -1
  30. package/ui/Elements/Icon/BadgeIcon.js +1 -1
  31. package/ui/Elements/Icon/Icon.js +1 -1
  32. package/ui/Elements/Line/Line.js +1 -1
  33. package/ui/Elements/Link/Link.js +1 -1
  34. package/ui/Elements/Logo/Logo.js +1 -1
  35. package/ui/Elements/Select/Select.js +2 -2
  36. package/ui/Elements/Select/components/CountMultiValue.js +1 -1
  37. package/ui/Elements/Select/components/DropdownIndicator.js +1 -1
  38. package/ui/Elements/Select/components/IconValueContainer.js +1 -1
  39. package/ui/Elements/Select/components/SelectAll.js +1 -1
  40. package/ui/Elements/SpaceAround/SpaceAround.js +1 -1
  41. package/ui/Elements/Tag/stories/components/predefinedTags.js +1 -1
  42. package/ui/Elements/Text/Text.js +1 -1
  43. package/ui/Elements/Toast/Toast.js +1 -1
  44. package/ui/Elements/Toggle/Toggle.js +3 -3
  45. package/ui/Elements/Tooltip/Tooltip.js +1 -1
  46. package/ui/Forms/DatePicker/DatePicker.js +2 -2
  47. package/ui/Forms/DatePicker/Datetime/components/DateRepeater.js +1 -1
  48. package/ui/Forms/DatePicker/Datetime/components/Timepicker/Timepicker.js +1 -1
  49. package/ui/Forms/Input/Input.js +4 -4
  50. package/ui/Forms/TextArea/TextArea.js +2 -2
  51. package/ui/Modules/CommonGrid/CommonGrid.js +2 -2
  52. package/ui/Modules/CommonGrid/CommonGridContainer.js +2 -2
  53. package/ui/Modules/CommonGrid/components/ActionHead/ActionHead.js +2 -2
  54. package/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +1 -1
  55. package/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +1 -1
  56. package/ui/Modules/CommonGrid/components/ButtonMore/ButtonMore.js +2 -2
  57. package/ui/Modules/CommonGrid/components/ColumnFilterCell.js +1 -1
  58. package/ui/Modules/CommonGrid/components/ColumnTitle/ColumnTitle.js +1 -1
  59. package/ui/Modules/CommonGrid/components/ColumnTitle.js +1 -1
  60. package/ui/Modules/CommonGrid/components/ControlButtons/ControlButtons.js +2 -2
  61. package/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.js +2 -2
  62. package/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +1 -1
  63. package/ui/Modules/CommonGrid/components/FilterDropdown.js +1 -1
  64. package/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +2 -2
  65. package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +6 -4
  66. package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +10 -15
  67. package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/index.d.ts +1 -0
  68. package/ui/Modules/CommonGrid/components/FloatingButton/FloatingButton.js +1 -1
  69. package/ui/Modules/CommonGrid/components/GridInfo/index.js +1 -1
  70. package/ui/Modules/CommonGrid/components/IconList/IconList.js +1 -1
  71. package/ui/Modules/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +1 -1
  72. package/ui/Modules/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +2 -2
  73. package/ui/Modules/CommonGrid/components/MobileFilterModal.js +2 -2
  74. package/ui/Modules/CommonGrid/components/MobileSortModal.js +2 -2
  75. package/ui/Modules/CommonGrid/components/OversizedScroll.js +1 -1
  76. package/ui/Modules/CommonGrid/components/PresetsModalBody/index.js +1 -1
  77. package/ui/Modules/CommonGrid/components/QuickFilter/QuickFilter.js +2 -2
  78. package/ui/Modules/CommonGrid/components/Resize.js +1 -1
  79. package/ui/Modules/CommonGrid/components/TablePagination/TablePagination.js +1 -1
  80. package/ui/Modules/CommonGrid/components/gridCells/BoolIcon.js +1 -1
  81. package/ui/Modules/CommonGrid/components/gridCells/Date.js +1 -1
  82. package/ui/Modules/CommonGrid/components/gridCells/DateTime.js +1 -1
  83. package/ui/Modules/CommonGrid/components/gridCells/EnumInCell.js +1 -1
  84. package/ui/Modules/CommonGrid/components/gridCells/HoverBubble.js +1 -1
  85. package/ui/Modules/CommonGrid/components/gridCells/IconButtonInCell.js +1 -1
  86. package/ui/Modules/CommonGrid/components/gridCells/ImageCell.js +1 -1
  87. package/ui/Modules/CommonGrid/components/gridCells/RemoveItem.js +1 -1
  88. package/ui/Modules/CommonGrid/components/gridCells/RowActionsCell.js +1 -1
  89. package/ui/Modules/CommonGrid/hooks/useCreatePreset.js +1 -1
  90. package/ui/Modules/CommonGrid/hooks/usePresetFileHandlers.js +1 -1
  91. package/ui/Modules/CommonGrid/hooks/useQuickFilter.js +2 -2
  92. package/ui/Modules/CommonGrid/index.d.ts +7 -5
  93. package/ui/Modules/CommonGrid/index.js +5 -4
  94. package/ui/Modules/CommonGrid/store/index.js +2 -2
  95. package/ui/Modules/CommonGrid/storybook/utils/utils.js +1 -1
  96. package/ui/Modules/CommonGrid/storybook/utils/withRedux.js +1 -1
  97. package/ui/Modules/CommonGrid/utils/index.js +1 -1
  98. package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.js +2 -2
  99. package/ui/Modules/Dashboard/components/Config/components/InputConfig.js +1 -1
  100. package/ui/Modules/Dashboard/components/Dashboard/Dashboard.js +1 -1
  101. package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.js +1 -1
  102. package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.js +1 -1
  103. package/ui/Modules/Dashboard/components/Layout/LayoutContainer.js +1 -1
  104. package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.js +1 -1
  105. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +1 -1
  106. package/ui/Modules/Dashboard/components/Picker/PickerContainer.js +1 -1
  107. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.js +1 -1
  108. package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.js +1 -1
  109. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useSort.js +1 -1
  110. package/ui/Modules/Dashboard/errors/ErrorMessage.js +1 -1
  111. package/ui/ThemeProvider/ThemeProvider.js +1 -1
  112. package/ui/index.js +22 -21
@@ -1,13 +1,13 @@
1
+ import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
2
+ import "../../Elements/SpaceAround/index.js";
1
3
  import Icon from "../../Elements/Icon/Icon.js";
2
4
  import "../../Elements/Icon/index.js";
3
- import { Spinner } from "../../Elements/Spinner/Spinner.js";
4
- import "../../Elements/Spinner/index.js";
5
5
  import ErrorMessage from "../../Elements/ErrorMessage/ErrorMessage.js";
6
6
  import "../../Elements/ErrorMessage/index.js";
7
7
  import { FieldLabel } from "../../Elements/Label/Label.js";
8
8
  import "../../Elements/Label/index.js";
9
- import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
10
- import "../../Elements/SpaceAround/index.js";
9
+ import { Spinner } from "../../Elements/Spinner/Spinner.js";
10
+ import "../../Elements/Spinner/index.js";
11
11
  import { ClearableInputIcon, IconWrapper, IconsController, InputIcon, InputRow, InputWrap, StyledInput, Suffix, Tooltip } from "./styles.js";
12
12
  import { useCallback, useEffect, useRef } from "react";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
+ import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
2
+ import "../../Elements/SpaceAround/index.js";
1
3
  import Icon from "../../Elements/Icon/Icon.js";
2
4
  import ErrorMessage from "../../Elements/ErrorMessage/ErrorMessage.js";
3
5
  import { FieldLabel } from "../../Elements/Label/Label.js";
4
6
  import "../../Elements/Label/index.js";
5
- import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
6
- import "../../Elements/SpaceAround/index.js";
7
7
  import { BorderWrap, IconWrap, InnerWrap, StyledTextArea, TextAreaWrap } from "./styles.js";
8
8
  import "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,3 +1,4 @@
1
+ import { initialState } from "./store/index.js";
1
2
  import { getGroups } from "./utils/index.js";
2
3
  import DataRow from "./components/DataRow.js";
3
4
  import FilterRow from "./components/FilterRow.js";
@@ -9,10 +10,9 @@ import OversizedScroll from "./components/OversizedScroll.js";
9
10
  import useColumnSizes from "./hooks/useColumnSizes.js";
10
11
  import useRowsKeyControls from "./hooks/useRowsKeyControls.js";
11
12
  import useUxReset from "./hooks/useUxReset.js";
12
- import { initialState } from "./store/index.js";
13
13
  import { useCallback, useMemo } from "react";
14
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
14
  import { x } from "@xstyled/styled-components";
15
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  //#region packages/ui/Modules/CommonGrid/CommonGrid.tsx
17
17
  const rowsStyles = { outline: "none" };
18
18
  const defaultVoidFunction = (...args) => null;
@@ -1,10 +1,10 @@
1
+ import { getFilters } from "./utils/index.js";
1
2
  import HidePrint from "../../Blocks/HidePrint/HidePrint.js";
2
3
  import { useModal } from "../../Blocks/Modal/hooks/useModal.js";
3
4
  import Pagination from "../../Elements/Pagination/Pagination.js";
4
5
  import "../../Elements/Pagination/index.js";
5
6
  import { useCheckDeviceWidth } from "../../utils/CheckDeviceWidth/checkDeviceWidth.js";
6
7
  import ActionHead_default from "./components/ActionHead/index.js";
7
- import { getFilters } from "./utils/index.js";
8
8
  import { clearShareParams } from "./utils/shareUrl/clearShareParams.js";
9
9
  import "./utils/shareUrl/index.js";
10
10
  import ControlButtons_default from "./components/ControlButtons/index.js";
@@ -25,8 +25,8 @@ import { getRowsPerPage } from "./utils/getRowsPerPage.js";
25
25
  import { hasSortTerminated } from "./utils/hasSortTerminated.js";
26
26
  import { BottomWrapper, CommonGridWithStyles, CommonGridWrap, ContentContainer, StyledButtonStrip } from "./styles.js";
27
27
  import { useCallback, useMemo, useRef, useState } from "react";
28
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
29
28
  import { x } from "@xstyled/styled-components";
29
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
30
30
  //#region packages/ui/Modules/CommonGrid/CommonGridContainer.tsx
31
31
  const CommonGridContainer = (props) => {
32
32
  const { optimizeFilters = false, extraControlButtons, onBatchAction, processCheckedValues, processCheckedValuesTitle, hideControlButtons, quickFilter, floatingButtonProps, queryRowsParam, customPaginationHandler, autoHeight = true, gridName, withPresets = true, withManageColumnButton = true, withPagination = true, withAggregation = true, withShare = true, allowSortingOnlyUnderTotalRows, onReload, ...passDownProps } = props;
@@ -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 { jsx, jsxs } from "react/jsx-runtime";
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 DatePickerRangeProps = FilterComponentProps<Date[]> & {
6
- filterTime?: number;
5
+ type DatePickerRangeBaseProps = FilterComponentProps<Date[]> & {
6
+ filterTime?: boolean;
7
7
  initialView?: InitialView;
8
8
  onChange: (value: Date[], others?: DateTimeOthers[]) => void;
9
9
  };
10
- type DateRangeProps = DatePickerRangeProps & {
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<DateRangeProps>;
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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
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: endRangeValue,
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: startRangeValue,
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",
@@ -1,2 +1,3 @@
1
1
  import DatePickerRange from './DatePickerRange';
2
+ export type { DatePickerRangeProps } from './DatePickerRange';
2
3
  export default DatePickerRange;
@@ -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 { jsx } from "react/jsx-runtime";
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;