@m4l/components 9.2.10 → 9.2.12
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/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js +15 -5
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatusFormatter.js +15 -5
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/useColumnConcatenatedValue.js +15 -5
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js +18 -7
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js +15 -5
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +15 -5
- package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js +15 -5
- package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js +18 -8
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js +16 -6
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +16 -6
- package/components/DynamicFilter/DynamicFIlter.styles.js +123 -222
- package/components/DynamicFilter/slots/SlotsEnum.d.ts +3 -14
- package/components/DynamicFilter/slots/SlotsEnum.js +2 -13
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +5 -38
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +27 -80
- package/components/DynamicFilter/store/DynamicFilterContext.js +17 -2
- package/components/DynamicFilter/store/DynamicFilterStore.js +12 -1
- package/components/DynamicFilter/store/types.d.ts +10 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +17 -21
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.js +1 -4
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.js +2 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +8 -9
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +1 -5
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +31 -23
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +8 -0
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +10 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +12 -7
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -3
- package/components/DynamicFilter/tests/DynamicFilter.test.d.ts +1 -0
- package/components/DynamicFilter/tests/constants.d.ts +9 -0
- package/components/DynamicFilter/types.d.ts +9 -0
- package/components/DynamicSort/DynamicSort.styles.js +61 -112
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -14
- package/components/DynamicSort/slots/DynamicSortSlots.js +17 -40
- package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -5
- package/components/DynamicSort/slots/SlotsEnum.js +1 -5
- package/components/DynamicSort/slots/tests/DynamicSort.test.d.ts +1 -0
- package/components/DynamicSort/store/DynamicSortContext.js +5 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.js +2 -3
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -3
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +5 -4
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -5
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +11 -8
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +1 -1
- package/package.json +1 -1
- package/storybook/components/DynamicFilter/mocks/mocksData.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.js +0 -12
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.js +0 -19
- package/utils/containerQuery.js +0 -6
- /package/components/DynamicFilter/{__tests__/DynamicFilter.test.d.ts → store/tests/DynamicFilterStore.test.d.ts} +0 -0
|
@@ -6,10 +6,7 @@ import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
|
6
6
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
7
|
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
8
8
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
9
|
-
import { I as Icon } from "../../Icon/Icon.js";
|
|
10
|
-
import { C as Chip } from "../../Chip/Chip.js";
|
|
11
9
|
import { P as Popover } from "../../mui_extended/Popover/Popover.js";
|
|
12
|
-
import { M as MenuItem } from "../../mui_extended/MenuItem/MenuItem.js";
|
|
13
10
|
const RootStyled = styled("div", {
|
|
14
11
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
15
12
|
slot: DynamicSortSlots.root
|
|
@@ -26,10 +23,6 @@ const InputSortInputStyled = styled("input", {
|
|
|
26
23
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
27
24
|
slot: DynamicSortSlots.inputSortInput
|
|
28
25
|
})(dynamicSortStyles?.inputSortInput);
|
|
29
|
-
const InputSortIconStyled = styled(Icon, {
|
|
30
|
-
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
31
|
-
slot: DynamicSortSlots.inputSortIcon
|
|
32
|
-
})(dynamicSortStyles?.inputSortIcon);
|
|
33
26
|
const AppliedSortsStyled = styled("div", {
|
|
34
27
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
35
28
|
slot: DynamicSortSlots.appliedSorts
|
|
@@ -38,10 +31,6 @@ const AppliedSortInnerContainerStyled = styled("div", {
|
|
|
38
31
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
39
32
|
slot: DynamicSortSlots.appliedSortInnerContainer
|
|
40
33
|
})(dynamicSortStyles?.appliedSortInnerContainer);
|
|
41
|
-
const AppliedSortChipStyled = styled(Chip, {
|
|
42
|
-
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
43
|
-
slot: DynamicSortSlots.appliedSortChip
|
|
44
|
-
})(dynamicSortStyles?.appliedSortChip);
|
|
45
34
|
const ActionsStyled = styled("div", {
|
|
46
35
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
47
36
|
slot: DynamicSortSlots.actions
|
|
@@ -58,14 +47,6 @@ const PopoverMenuStyled = styled(Popover, {
|
|
|
58
47
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
59
48
|
slot: DynamicSortSlots.popoverMenu
|
|
60
49
|
})(dynamicSortStyles?.popoverMenu);
|
|
61
|
-
const PopoverMenuItemStyled = styled(MenuItem, {
|
|
62
|
-
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
63
|
-
slot: DynamicSortSlots.popoverMenuItem
|
|
64
|
-
})(dynamicSortStyles?.popoverMenuItem);
|
|
65
|
-
const PopoverMenuItemIconStyled = styled(Icon, {
|
|
66
|
-
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
67
|
-
slot: DynamicSortSlots.popoverMenuItemIcon
|
|
68
|
-
})(dynamicSortStyles?.popoverMenuItemIcon);
|
|
69
50
|
const PopoverStyled = styled(Popover, {
|
|
70
51
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
71
52
|
slot: DynamicSortSlots.popoverSort
|
|
@@ -78,10 +59,10 @@ const PopoverHeaderStyled = styled("div", {
|
|
|
78
59
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
79
60
|
slot: DynamicSortSlots.popoverSortHeader
|
|
80
61
|
})(dynamicSortStyles?.popoverSortHeader);
|
|
81
|
-
const
|
|
62
|
+
const ContentSortStyled = styled("div", {
|
|
82
63
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
83
|
-
slot: DynamicSortSlots.
|
|
84
|
-
})(dynamicSortStyles?.
|
|
64
|
+
slot: DynamicSortSlots.contentSort
|
|
65
|
+
})(dynamicSortStyles?.contentSort);
|
|
85
66
|
const PopoverHeaderTitleStyled = styled(Typography, {
|
|
86
67
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
87
68
|
slot: DynamicSortSlots.popoverSortHeaderTitle
|
|
@@ -95,25 +76,21 @@ const InputSortInputSkeletonStyled = styled(Skeleton, {
|
|
|
95
76
|
slot: DynamicSortSlots.inputSortInputSkeleton
|
|
96
77
|
})(dynamicSortStyles?.inputSortInputSkeleton);
|
|
97
78
|
export {
|
|
98
|
-
|
|
79
|
+
AppliedSortsStyled as A,
|
|
80
|
+
ContentSortStyled as C,
|
|
99
81
|
InnerContainerStyled as I,
|
|
100
82
|
PopoverMenuStyled as P,
|
|
101
83
|
RootStyled as R,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
PopoverContainerFieldsStyled as m,
|
|
115
|
-
PopoverHeaderActionsStyled as n,
|
|
116
|
-
ActionsStyled as o,
|
|
117
|
-
ActionsClearButtonStyled as p,
|
|
118
|
-
ActionsSubmitButtonStyled as q
|
|
84
|
+
AppliedSortInnerContainerStyled as a,
|
|
85
|
+
InputSortStyled as b,
|
|
86
|
+
InputSortInputSkeletonStyled as c,
|
|
87
|
+
InputSortInputStyled as d,
|
|
88
|
+
PopoverStyled as e,
|
|
89
|
+
PopoverHeaderStyled as f,
|
|
90
|
+
PopoverHeaderTitleStyled as g,
|
|
91
|
+
PopoverContainerFieldsStyled as h,
|
|
92
|
+
PopoverHeaderActionsStyled as i,
|
|
93
|
+
ActionsStyled as j,
|
|
94
|
+
ActionsClearButtonStyled as k,
|
|
95
|
+
ActionsSubmitButtonStyled as l
|
|
119
96
|
};
|
|
@@ -3,20 +3,16 @@ export declare enum DynamicSortSlots {
|
|
|
3
3
|
innerContainer = "innerContainer",
|
|
4
4
|
inputSort = "inputSort",
|
|
5
5
|
inputSortInput = "inputSortInput",
|
|
6
|
-
inputSortIcon = "inputSortIcon",
|
|
7
6
|
appliedSorts = "appliedSorts",
|
|
8
7
|
appliedSortInnerContainer = "appliedSortInnerContainer",
|
|
9
|
-
appliedSortChip = "appliedSortChip",
|
|
10
8
|
actions = "actions",
|
|
11
9
|
actionsClearButton = "actionsClearButton",
|
|
12
10
|
actionsSubmitButton = "actionsSubmitButton",
|
|
13
11
|
popoverMenu = "popoverMenu",
|
|
14
|
-
popoverMenuItem = "popoverMenuItem",
|
|
15
|
-
popoverMenuItemIcon = "popoverMenuItemIcon",
|
|
16
12
|
popoverSort = "popoverSort",
|
|
17
13
|
popoverSortContainerFields = "popoverSortContainerFields",
|
|
18
14
|
popoverSortHeader = "popoverSortHeader",
|
|
19
|
-
|
|
15
|
+
contentSort = "contentSort",
|
|
20
16
|
popoverSortHeaderTitle = "popoverSortHeaderTitle",
|
|
21
17
|
popoverSortActions = "popoverSortActions",
|
|
22
18
|
inputSortInputSkeleton = "inputSortInputSkeleton"
|
|
@@ -3,20 +3,16 @@ var DynamicSortSlots = /* @__PURE__ */ ((DynamicSortSlots2) => {
|
|
|
3
3
|
DynamicSortSlots2["innerContainer"] = "innerContainer";
|
|
4
4
|
DynamicSortSlots2["inputSort"] = "inputSort";
|
|
5
5
|
DynamicSortSlots2["inputSortInput"] = "inputSortInput";
|
|
6
|
-
DynamicSortSlots2["inputSortIcon"] = "inputSortIcon";
|
|
7
6
|
DynamicSortSlots2["appliedSorts"] = "appliedSorts";
|
|
8
7
|
DynamicSortSlots2["appliedSortInnerContainer"] = "appliedSortInnerContainer";
|
|
9
|
-
DynamicSortSlots2["appliedSortChip"] = "appliedSortChip";
|
|
10
8
|
DynamicSortSlots2["actions"] = "actions";
|
|
11
9
|
DynamicSortSlots2["actionsClearButton"] = "actionsClearButton";
|
|
12
10
|
DynamicSortSlots2["actionsSubmitButton"] = "actionsSubmitButton";
|
|
13
11
|
DynamicSortSlots2["popoverMenu"] = "popoverMenu";
|
|
14
|
-
DynamicSortSlots2["popoverMenuItem"] = "popoverMenuItem";
|
|
15
|
-
DynamicSortSlots2["popoverMenuItemIcon"] = "popoverMenuItemIcon";
|
|
16
12
|
DynamicSortSlots2["popoverSort"] = "popoverSort";
|
|
17
13
|
DynamicSortSlots2["popoverSortContainerFields"] = "popoverSortContainerFields";
|
|
18
14
|
DynamicSortSlots2["popoverSortHeader"] = "popoverSortHeader";
|
|
19
|
-
DynamicSortSlots2["
|
|
15
|
+
DynamicSortSlots2["contentSort"] = "contentSort";
|
|
20
16
|
DynamicSortSlots2["popoverSortHeaderTitle"] = "popoverSortHeaderTitle";
|
|
21
17
|
DynamicSortSlots2["popoverSortActions"] = "popoverSortActions";
|
|
22
18
|
DynamicSortSlots2["inputSortInputSkeleton"] = "inputSortInputSkeleton";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import { useModuleDictionary } from "@m4l/core";
|
|
|
6
6
|
import { f as formatToInitialSorts } from "../helpers/formatToInitialSorts.js";
|
|
7
7
|
import { f as formatToRowSort } from "../helpers/formatToRowSort.js";
|
|
8
8
|
import { c as createAreaStore } from "./DynamicSortStore.js";
|
|
9
|
+
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
10
|
const DynamicSortContext = createContext(null);
|
|
10
11
|
function DynamicSortProvider(props) {
|
|
11
12
|
const {
|
|
@@ -19,6 +20,8 @@ function DynamicSortProvider(props) {
|
|
|
19
20
|
storeDevtoolsEnabled,
|
|
20
21
|
children
|
|
21
22
|
} = props;
|
|
23
|
+
const { currentSize } = useComponentSize(size);
|
|
24
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
22
25
|
const { getLabel } = useModuleDictionary();
|
|
23
26
|
const dynamicSortStoreRef = useRef();
|
|
24
27
|
if (!dynamicSortStoreRef.current) {
|
|
@@ -57,8 +60,8 @@ function DynamicSortProvider(props) {
|
|
|
57
60
|
}
|
|
58
61
|
}, [countOnChangeSortsApplyed]);
|
|
59
62
|
useEffect(() => {
|
|
60
|
-
dynamicSortStoreRef.current?.getState().actions.setSize(
|
|
61
|
-
}, [
|
|
63
|
+
dynamicSortStoreRef.current?.getState().actions.setSize(adjustedSize);
|
|
64
|
+
}, [adjustedSize]);
|
|
62
65
|
return /* @__PURE__ */ jsx(DynamicSortContext.Provider, { value: dynamicSortStoreRef.current, children });
|
|
63
66
|
}
|
|
64
67
|
export {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { C as Chip } from "../../../Chip/Chip.js";
|
|
2
3
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
3
4
|
import { u as useAppliedSortChip } from "./useAppliedSortChip.js";
|
|
4
|
-
import { A as AppliedSortChipStyled } from "../../slots/DynamicSortSlots.js";
|
|
5
5
|
function AppliedSortChip(props) {
|
|
6
6
|
const { fixed } = props;
|
|
7
7
|
const { onEditSort, onDelete, iconFieldUrl, labels, iconSort } = useAppliedSortChip(props);
|
|
8
8
|
const { size } = useDynamicSortBase();
|
|
9
9
|
return /* @__PURE__ */ jsx(
|
|
10
|
-
|
|
10
|
+
Chip,
|
|
11
11
|
{
|
|
12
12
|
opacity: true,
|
|
13
13
|
variant: "contained",
|
|
14
|
-
ownerState: {},
|
|
15
14
|
onClick: onEditSort,
|
|
16
15
|
startIcon: iconFieldUrl,
|
|
17
16
|
label: labels.labelField,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as ScrollBar } from "../../../ScrollBar/ScrollBar.js";
|
|
3
2
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
4
3
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
4
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../../constants.js";
|
|
6
5
|
import { D as DynamicSortSlots } from "../../slots/SlotsEnum.js";
|
|
7
6
|
import { u as useAppliedSorts } from "./useAppliedSorts.js";
|
|
8
|
-
import {
|
|
7
|
+
import { A as AppliedSortsStyled, a as AppliedSortInnerContainerStyled } from "../../slots/DynamicSortSlots.js";
|
|
9
8
|
import { A as AppliedSortChip } from "../AppliedSortChip/AppliedSortChip.js";
|
|
10
9
|
function AppliedSorts() {
|
|
11
10
|
const { appliedSortsSorted, isSkeleton } = useAppliedSorts();
|
|
@@ -18,7 +17,7 @@ function AppliedSorts() {
|
|
|
18
17
|
{
|
|
19
18
|
...getPropDataTestId(DYNAMIC_SORT_KEY_COMPONENT, DynamicSortSlots.appliedSorts, dataTestId),
|
|
20
19
|
ownerState: { ...ownerState },
|
|
21
|
-
children: /* @__PURE__ */ jsx(
|
|
20
|
+
children: /* @__PURE__ */ jsx(AppliedSortInnerContainerStyled, { ownerState: {}, children: appliedSortsSorted?.reverse()?.map((sort) => /* @__PURE__ */ jsx(AppliedSortChip, { ...sort }, sort.id)) })
|
|
22
21
|
}
|
|
23
22
|
);
|
|
24
23
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { u as useInputSort } from "./useInputSort.js";
|
|
3
|
-
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
4
2
|
import { useRef, useEffect } from "react";
|
|
5
|
-
import {
|
|
3
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
4
|
+
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
5
|
+
import { u as useInputSort } from "./useInputSort.js";
|
|
6
|
+
import { b as InputSortStyled, c as InputSortInputSkeletonStyled, d as InputSortInputStyled } from "../../slots/DynamicSortSlots.js";
|
|
6
7
|
import { P as PopoverMenuFields } from "../PopoverMenuFields/PopoverMenuFields.js";
|
|
7
8
|
const InputSort = () => {
|
|
8
9
|
const {
|
|
@@ -23,7 +24,7 @@ const InputSort = () => {
|
|
|
23
24
|
}, [setElementRef]);
|
|
24
25
|
const { ownerState, size } = useDynamicSortBase();
|
|
25
26
|
return /* @__PURE__ */ jsxs(InputSortStyled, { ownerState: { ...ownerState }, "aria-expanded": isOpenPopoverMenuFields || isOpenPopoverSort, children: [
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(Icon, { src: iconUrl, size }),
|
|
27
28
|
isSkeleton ? /* @__PURE__ */ jsx(InputSortInputSkeletonStyled, { ownerState: { ...ownerState }, variant: "rounded" }) : /* @__PURE__ */ jsx(
|
|
28
29
|
InputSortInputStyled,
|
|
29
30
|
{
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { u as usePopoverMenuFields } from "./usePopoverMenuFields.js";
|
|
3
3
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
4
|
-
import {
|
|
4
|
+
import { M as MenuItem } from "../../../mui_extended/MenuItem/MenuItem.js";
|
|
5
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
6
|
+
import { P as PopoverMenuStyled } from "../../slots/DynamicSortSlots.js";
|
|
5
7
|
function PopoverMenuFields(props) {
|
|
6
8
|
const { fields, selectFieldIndex } = props;
|
|
7
9
|
const { elementRef, handleOpenPopUpClickItem, handleClosePopover, getItemLabel, isOpenPopoverMenuFields } = usePopoverMenuFields();
|
|
@@ -20,15 +22,14 @@ function PopoverMenuFields(props) {
|
|
|
20
22
|
anchorEl,
|
|
21
23
|
ownerState: {},
|
|
22
24
|
children: isOpenPopoverMenuFields && fields.map((field, index) => /* @__PURE__ */ jsx(
|
|
23
|
-
|
|
25
|
+
MenuItem,
|
|
24
26
|
{
|
|
25
|
-
startIcon: /* @__PURE__ */ jsx(
|
|
27
|
+
startIcon: /* @__PURE__ */ jsx(Icon, { size, src: field.urlIcon }),
|
|
26
28
|
label: getItemLabel(field),
|
|
27
29
|
dense: true,
|
|
28
30
|
size,
|
|
29
31
|
selected: index === selectFieldIndex,
|
|
30
|
-
onClick: (event) => handleOpenPopUpClickItem(event, field)
|
|
31
|
-
ownerState: {}
|
|
32
|
+
onClick: (event) => handleOpenPopUpClickItem(event, field)
|
|
32
33
|
},
|
|
33
34
|
`menu_action_${getItemLabel(field)}`
|
|
34
35
|
))
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
2
3
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
3
4
|
import { D as DataTypeComponent } from "../FieldTypes/DataTypeComponent.js";
|
|
4
5
|
import { u as usePopoverSort } from "./usePopoverSort.js";
|
|
5
|
-
import {
|
|
6
|
+
import { e as PopoverStyled, f as PopoverHeaderStyled, g as PopoverHeaderTitleStyled, C as ContentSortStyled, h as PopoverContainerFieldsStyled, i as PopoverHeaderActionsStyled } from "../../slots/DynamicSortSlots.js";
|
|
6
7
|
import { R as RHFormProvider } from "../../../hook-form/RHFormContext/index.js";
|
|
7
8
|
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
8
9
|
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
@@ -21,7 +22,7 @@ function PopoverSort() {
|
|
|
21
22
|
statusLoad,
|
|
22
23
|
canRender
|
|
23
24
|
} = usePopoverSort();
|
|
24
|
-
const { size } = useDynamicSortBase();
|
|
25
|
+
const { ownerState, size } = useDynamicSortBase();
|
|
25
26
|
if (!canRender) {
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
@@ -46,14 +47,16 @@ function PopoverSort() {
|
|
|
46
47
|
validationSchema: popupValidationSchema,
|
|
47
48
|
statusLoad,
|
|
48
49
|
children: [
|
|
49
|
-
/* @__PURE__ */ jsxs(PopoverHeaderStyled, { ownerState: {}, children: [
|
|
50
|
-
field.urlIcon && /* @__PURE__ */ jsx(
|
|
50
|
+
/* @__PURE__ */ jsxs(PopoverHeaderStyled, { ownerState: { ...ownerState }, children: [
|
|
51
|
+
field.urlIcon && /* @__PURE__ */ jsx(Icon, { src: field.urlIcon, size }),
|
|
51
52
|
/* @__PURE__ */ jsx(PopoverHeaderTitleStyled, { variant: "paragraphDens", size, ownerState: {}, children: labelField })
|
|
52
53
|
] }),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
54
|
+
/* @__PURE__ */ jsxs(ContentSortStyled, { ownerState: {}, children: [
|
|
55
|
+
/* @__PURE__ */ jsx(PopoverContainerFieldsStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(DataTypeComponent, { formSort, statusLoad }) }),
|
|
56
|
+
/* @__PURE__ */ jsxs(PopoverHeaderActionsStyled, { ownerState: {}, children: [
|
|
57
|
+
/* @__PURE__ */ jsx(ActionCancel, { size, onClick: onClose }),
|
|
58
|
+
/* @__PURE__ */ jsx(ActionIntro, { size })
|
|
59
|
+
] })
|
|
57
60
|
] })
|
|
58
61
|
]
|
|
59
62
|
}
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { u as useSortActions } from "./useSortActions.js";
|
|
3
3
|
import { g as getDynamicSortDictionary, a as DICCTIONARY } from "../../dictionary.js";
|
|
4
4
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
5
|
-
import {
|
|
5
|
+
import { j as ActionsStyled, k as ActionsClearButtonStyled, l as ActionsSubmitButtonStyled } from "../../slots/DynamicSortSlots.js";
|
|
6
6
|
function SortActions() {
|
|
7
7
|
const {
|
|
8
8
|
sortIconUrl,
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MockData: import('msw').HttpHandler[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Skeleton } from "@mui/material";
|
|
3
|
-
import { l as ActionsSkeletonButtonStyled } from "../../slots/dynamicFilterSlots.js";
|
|
4
|
-
function FilterActionsSkeleton() {
|
|
5
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6
|
-
/* @__PURE__ */ jsx(ActionsSkeletonButtonStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: "16px", height: "16px" }) }),
|
|
7
|
-
/* @__PURE__ */ jsx(ActionsSkeletonButtonStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: "16px", height: "16px" }) })
|
|
8
|
-
] });
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
FilterActionsSkeleton as F
|
|
12
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Skeleton } from "@mui/material";
|
|
3
|
-
function InputFilterSkeleton() {
|
|
4
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5
|
-
/* @__PURE__ */ jsx(
|
|
6
|
-
Skeleton,
|
|
7
|
-
{
|
|
8
|
-
variant: "circular",
|
|
9
|
-
width: "16px",
|
|
10
|
-
height: "16px",
|
|
11
|
-
sx: { minWidth: "16px", minHeight: "16px" }
|
|
12
|
-
}
|
|
13
|
-
),
|
|
14
|
-
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "100%", height: "16px", sx: { minWidth: "80px" } })
|
|
15
|
-
] });
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
InputFilterSkeleton as I
|
|
19
|
-
};
|
package/utils/containerQuery.js
DELETED
|
File without changes
|