@m4l/components 9.38.0 → 9.39.0
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/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +82 -60
- package/components/DynamicFilter/hooks/useChipsOverflow.d.ts +1 -0
- package/components/DynamicFilter/hooks/useChipsOverflow.d.ts.map +1 -1
- package/components/DynamicFilter/hooks/useChipsOverflow.js +50 -44
- package/components/DynamicFilter/slots/SlotsEnum.d.ts +1 -0
- package/components/DynamicFilter/slots/SlotsEnum.d.ts.map +1 -1
- package/components/DynamicFilter/slots/SlotsEnum.js +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +3 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts.map +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +43 -39
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +26 -19
- package/components/DynamicSort/DynamicSort.js +6 -6
- package/components/DynamicSort/DynamicSort.styles.d.ts.map +1 -1
- package/components/DynamicSort/DynamicSort.styles.js +40 -14
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +3 -0
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts.map +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.js +44 -40
- package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -0
- package/components/DynamicSort/slots/SlotsEnum.d.ts.map +1 -1
- package/components/DynamicSort/slots/SlotsEnum.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.d.ts +2 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +70 -54
- package/components/DynamicSort/subcomponents/AppliedSorts/types.d.ts +5 -0
- package/components/DynamicSort/subcomponents/AppliedSorts/types.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -0
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +23 -21
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +15 -17
- package/components/DynamicSort/subcomponents/DynamicSortBase/types.d.ts +2 -0
- package/components/DynamicSort/subcomponents/DynamicSortBase/types.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +58 -46
- package/components/DynamicSort/subcomponents/SortActions/SortActions.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +30 -30
- package/components/DynamicSort/types.d.ts +6 -0
- package/components/DynamicSort/types.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/constants.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/constants.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/constants.js +4 -3
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts +2 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.js +2 -2
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +3 -0
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js +19 -15
- package/hooks/useDynamicFilterAndSort/styles.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/styles.js +58 -37
- package/hooks/useDynamicFilterAndSort/types.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.d.ts.map +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +204 -172
- package/package.json +8 -8
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import { useModuleSkeleton as
|
|
3
|
-
import { useDynamicSortStore as
|
|
4
|
-
import { useChipsOverflow as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
() => [...
|
|
8
|
-
(e,
|
|
1
|
+
import { useMemo as d } from "react";
|
|
2
|
+
import { useModuleSkeleton as a } from "@m4l/core";
|
|
3
|
+
import { useDynamicSortStore as c } from "../../store/useDynamicSortStore.js";
|
|
4
|
+
import { useChipsOverflow as R } from "../../../DynamicFilter/hooks/useChipsOverflow.js";
|
|
5
|
+
function C() {
|
|
6
|
+
const o = c((e) => e.appliedSorts), r = a(), i = d(
|
|
7
|
+
() => [...o].sort(
|
|
8
|
+
(e, t) => e.isSet !== t.isSet ? Number(e.isSet) - Number(t.isSet) : t.id - e.id
|
|
9
9
|
),
|
|
10
|
-
[
|
|
10
|
+
[o]
|
|
11
11
|
), {
|
|
12
12
|
visibleFilters: s,
|
|
13
13
|
overflowFilters: p,
|
|
14
|
-
parentRef:
|
|
15
|
-
containerRef:
|
|
16
|
-
setChipRef:
|
|
17
|
-
setMoreChipRef:
|
|
18
|
-
setActionsRef: m
|
|
19
|
-
|
|
14
|
+
parentRef: f,
|
|
15
|
+
containerRef: l,
|
|
16
|
+
setChipRef: n,
|
|
17
|
+
setMoreChipRef: S,
|
|
18
|
+
setActionsRef: m,
|
|
19
|
+
setLeadingRef: u
|
|
20
|
+
} = R(i);
|
|
20
21
|
return {
|
|
21
22
|
appliedSortsSorted: i,
|
|
22
23
|
visibleSorts: s,
|
|
23
24
|
overflowSorts: p,
|
|
24
25
|
isSkeleton: r,
|
|
25
|
-
parentRef:
|
|
26
|
-
containerRef:
|
|
27
|
-
setChipRef:
|
|
28
|
-
setMoreChipRef:
|
|
29
|
-
setActionsRef: m
|
|
26
|
+
parentRef: f,
|
|
27
|
+
containerRef: l,
|
|
28
|
+
setChipRef: n,
|
|
29
|
+
setMoreChipRef: S,
|
|
30
|
+
setActionsRef: m,
|
|
31
|
+
setLeadingRef: u
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
export {
|
|
33
|
-
|
|
35
|
+
C as default
|
|
34
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicSortBase.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DynamicSortBase.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C;;;GAGG;AACH,iBAAS,eAAe,CAAE,KAAK,EAAC,oBAAoB,oDAmBnD;AACD,eAAe,eAAe,CAAC"}
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as S } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { getPropDataTestId as m } from "../../../../test/getNameDataTestId.js";
|
|
3
|
-
import { getComponentSlotRoot as
|
|
3
|
+
import { getComponentSlotRoot as c } from "../../../../utils/getComponentSlotRoot.js";
|
|
4
4
|
import { DYNAMIC_SORT_KEY_COMPONENT as t } from "../../constants.js";
|
|
5
|
-
import
|
|
5
|
+
import l from "./useDynamicSortBase.js";
|
|
6
6
|
import f from "clsx";
|
|
7
|
-
import { RootStyled as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import C from "../PopoverSort/PopoverSort.js";
|
|
7
|
+
import { RootStyled as d, InnerContainerStyled as y } from "../../slots/DynamicSortSlots.js";
|
|
8
|
+
import C from "../AppliedSorts/AppliedSorts.js";
|
|
9
|
+
import D from "../PopoverSort/PopoverSort.js";
|
|
11
10
|
import { DynamicSortSlots as n } from "../../slots/SlotsEnum.js";
|
|
12
|
-
function
|
|
13
|
-
const { className: i } = a, { ownerState: r, dataTestId: e } =
|
|
11
|
+
function _(a) {
|
|
12
|
+
const { className: i, leadingSeparator: s } = a, { ownerState: r, dataTestId: e } = l(), p = c(t);
|
|
14
13
|
return /* @__PURE__ */ o(
|
|
15
|
-
|
|
14
|
+
d,
|
|
16
15
|
{
|
|
17
|
-
className: f(
|
|
16
|
+
className: f(p, i),
|
|
18
17
|
ownerState: { ...r },
|
|
19
18
|
...m(t, n.root, e),
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
children: /* @__PURE__ */ S(
|
|
20
|
+
y,
|
|
22
21
|
{
|
|
23
22
|
ownerState: { ...r },
|
|
24
23
|
...m(t, n.innerContainer, e),
|
|
25
24
|
children: [
|
|
26
|
-
/* @__PURE__ */ o(
|
|
27
|
-
/* @__PURE__ */ o(
|
|
28
|
-
/* @__PURE__ */ o(C, {})
|
|
25
|
+
/* @__PURE__ */ o(C, { leadingSeparator: s }),
|
|
26
|
+
/* @__PURE__ */ o(D, {})
|
|
29
27
|
]
|
|
30
28
|
}
|
|
31
29
|
)
|
|
@@ -33,5 +31,5 @@ function h(a) {
|
|
|
33
31
|
);
|
|
34
32
|
}
|
|
35
33
|
export {
|
|
36
|
-
|
|
34
|
+
_ as default
|
|
37
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/DynamicSortBase/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/DynamicSortBase/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverMenuFields.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAqB,MAAM,OAAO,CAAC;AASlJ,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,kBAAkB,EAAE;QAClB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QACvD,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QACzD,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;KAC7D,CAAC;IACF,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"PopoverMenuFields.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAqB,MAAM,OAAO,CAAC;AASlJ,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,kBAAkB,EAAE;QAClB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QACvD,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QACzD,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;KAC7D,CAAC;IACF,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAoBF;;GAEG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2DAsFvD;AACD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,79 +1,91 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as F, useEffect as
|
|
3
|
-
import { ActionsSearchOutlined as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import
|
|
1
|
+
import { jsxs as f, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as F, useEffect as O, cloneElement as D, isValidElement as M } from "react";
|
|
3
|
+
import { ActionsSearchOutlined as k } from "@m4l/icons";
|
|
4
|
+
import { Icon as I } from "@m4l/base";
|
|
5
|
+
import T from "../DynamicSortBase/useDynamicSortBase.js";
|
|
6
6
|
import _ from "./usePopoverMenuFields.js";
|
|
7
|
-
import { getDynamicSortDictionary as
|
|
8
|
-
import { useModuleDictionary as
|
|
9
|
-
import { usePopoverContainer as
|
|
10
|
-
import { PopoverMenuStyled as
|
|
11
|
-
import { MenuItem as
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
import { getDynamicSortDictionary as A, DICCTIONARY as L } from "../../dictionary.js";
|
|
8
|
+
import { useModuleDictionary as z } from "@m4l/core";
|
|
9
|
+
import { usePopoverContainer as B } from "../../../../hooks/usePopoverContainer/usePopoverContainer.js";
|
|
10
|
+
import { PopoverMenuStyled as H, InputSortStyled as j, InputSortInputSkeletonStyled as E, InputSortInputStyled as q } from "../../slots/DynamicSortSlots.js";
|
|
11
|
+
import { MenuItem as S } from "../../../extended/mui/MenuItem/MenuItem.js";
|
|
12
|
+
function N(o) {
|
|
13
|
+
if (!o)
|
|
14
|
+
return !1;
|
|
15
|
+
const r = o.closest('[class*="stackCustomHeader"]');
|
|
16
|
+
if (!r)
|
|
17
|
+
return !1;
|
|
18
|
+
const i = o.getBoundingClientRect(), s = r.getBoundingClientRect();
|
|
19
|
+
return i.left + i.width / 2 > s.left + s.width / 2;
|
|
20
|
+
}
|
|
21
|
+
function te(o) {
|
|
22
|
+
const { fields: r, selectFieldIndex: i, inputData: s, inputPlaceHolder: b, inputHandlersProps: g, isSkeleton: h } = o, { elementRef: v, handleOpenPopUpClickItem: y, handleClosePopover: C, getItemLabel: u, isOpenPopoverMenuFields: a } = _(), l = v?.current, { getLabel: x } = z(), P = B(l), { size: n, ownerState: c } = T(), p = F(null);
|
|
23
|
+
if (O(() => {
|
|
24
|
+
a && requestAnimationFrame(() => {
|
|
25
|
+
p.current?.focus();
|
|
17
26
|
});
|
|
18
|
-
}, [
|
|
19
|
-
|
|
27
|
+
}, [a]), !a)
|
|
28
|
+
return null;
|
|
29
|
+
const m = N(l), d = m ? "right" : "left";
|
|
30
|
+
return /* @__PURE__ */ f(
|
|
31
|
+
H,
|
|
20
32
|
{
|
|
21
33
|
disableAutoFocus: !0,
|
|
22
34
|
disableRestoreFocus: !0,
|
|
23
|
-
arrowType: "top-left",
|
|
24
|
-
anchorOrigin: { vertical: "bottom", horizontal:
|
|
25
|
-
transformOrigin: { vertical: "top", horizontal:
|
|
35
|
+
arrowType: m ? "top-right" : "top-left",
|
|
36
|
+
anchorOrigin: { vertical: "bottom", horizontal: d },
|
|
37
|
+
transformOrigin: { vertical: "top", horizontal: d },
|
|
26
38
|
sx: (e) => ({
|
|
27
39
|
mt: e.vars.size.baseSpacings.sp2
|
|
28
40
|
}),
|
|
29
|
-
open: !!
|
|
30
|
-
onClose:
|
|
31
|
-
anchorEl:
|
|
41
|
+
open: !!a,
|
|
42
|
+
onClose: C,
|
|
43
|
+
anchorEl: l,
|
|
32
44
|
container: P ?? void 0,
|
|
33
45
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ t(
|
|
36
|
-
|
|
37
|
-
|
|
46
|
+
/* @__PURE__ */ f(j, { ownerState: { ...c }, children: [
|
|
47
|
+
/* @__PURE__ */ t(I, { size: n, src: /* @__PURE__ */ t(k, {}), color: "text.secondary" }),
|
|
48
|
+
h ? /* @__PURE__ */ t(E, { ownerState: { ...c }, variant: "rounded" }) : /* @__PURE__ */ t(
|
|
49
|
+
q,
|
|
38
50
|
{
|
|
39
|
-
ref:
|
|
51
|
+
ref: p,
|
|
40
52
|
type: "text",
|
|
41
|
-
value:
|
|
42
|
-
placeholder:
|
|
43
|
-
ownerState: { ...
|
|
53
|
+
value: s,
|
|
54
|
+
placeholder: b,
|
|
55
|
+
ownerState: { ...c },
|
|
44
56
|
role: "searchbox",
|
|
45
57
|
"aria-label": "searchbox",
|
|
46
|
-
...
|
|
58
|
+
...g
|
|
47
59
|
}
|
|
48
60
|
)
|
|
49
61
|
] }),
|
|
50
|
-
|
|
51
|
-
|
|
62
|
+
r.map((e, w) => /* @__PURE__ */ t(
|
|
63
|
+
S,
|
|
52
64
|
{
|
|
53
|
-
startIcon:
|
|
54
|
-
label:
|
|
65
|
+
startIcon: M(e.urlIcon) ? D(e.urlIcon, { size: n }) : /* @__PURE__ */ t(I, { size: n, src: e.urlIcon }),
|
|
66
|
+
label: u(e),
|
|
55
67
|
dense: !0,
|
|
56
|
-
size:
|
|
57
|
-
selected:
|
|
68
|
+
size: n,
|
|
69
|
+
selected: w === i,
|
|
58
70
|
"data-testid": "dynamic-sort-field-option",
|
|
59
71
|
"data-field-name": e.name,
|
|
60
|
-
onClick: (
|
|
72
|
+
onClick: (R) => y(R, e)
|
|
61
73
|
},
|
|
62
|
-
`menu_action_${
|
|
74
|
+
`menu_action_${u(e)}`
|
|
63
75
|
)),
|
|
64
|
-
|
|
65
|
-
|
|
76
|
+
r.length === 0 && /* @__PURE__ */ t(
|
|
77
|
+
S,
|
|
66
78
|
{
|
|
67
79
|
dense: !0,
|
|
68
|
-
size:
|
|
69
|
-
label: x(
|
|
80
|
+
size: n,
|
|
81
|
+
label: x(A(L.label_no_fields_available)),
|
|
70
82
|
disabled: !0
|
|
71
83
|
}
|
|
72
84
|
)
|
|
73
85
|
]
|
|
74
86
|
}
|
|
75
|
-
)
|
|
87
|
+
);
|
|
76
88
|
}
|
|
77
89
|
export {
|
|
78
|
-
|
|
90
|
+
te as default
|
|
79
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/SortActions/SortActions.tsx"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"SortActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/SortActions/SortActions.tsx"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,QAAA,MAAM,WAAW,0FA+Cf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useModuleDictionary as
|
|
4
|
-
import { ActionsCleanOutlined as
|
|
5
|
-
import { getDynamicSortDictionary as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { ActionsStyled as
|
|
9
|
-
const
|
|
1
|
+
import { jsxs as d, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A } from "react";
|
|
3
|
+
import { useModuleDictionary as y } from "@m4l/core";
|
|
4
|
+
import { ActionsCleanOutlined as C, ArrowRefreshCcwOutlined as w, ActionsSortOutlined as h } from "@m4l/icons";
|
|
5
|
+
import { getDynamicSortDictionary as D, DICCTIONARY as R } from "../../dictionary.js";
|
|
6
|
+
import b from "../DynamicSortBase/useDynamicSortBase.js";
|
|
7
|
+
import k from "./useSortActions.js";
|
|
8
|
+
import { ActionsStyled as B, ActionsClearButtonStyled as O, ActionsSubmitButtonStyled as x } from "../../slots/DynamicSortSlots.js";
|
|
9
|
+
const _ = A((g, l) => {
|
|
10
10
|
const {
|
|
11
11
|
automatic: a,
|
|
12
12
|
canShowRemoveAction: t,
|
|
13
|
-
hasAppliedSorts:
|
|
14
|
-
onClickClearSorts:
|
|
15
|
-
onClickSort:
|
|
16
|
-
sortButtonDictionaryTooltip:
|
|
17
|
-
ownerState:
|
|
18
|
-
} =
|
|
19
|
-
return /* @__PURE__ */
|
|
13
|
+
hasAppliedSorts: m,
|
|
14
|
+
onClickClearSorts: p,
|
|
15
|
+
onClickSort: S,
|
|
16
|
+
sortButtonDictionaryTooltip: u,
|
|
17
|
+
ownerState: i
|
|
18
|
+
} = k(), { size: e, visibleRefresh: n, ownerState: { isDirty: s } } = b(), { getLabel: c } = y(), r = n && (m || s), f = (t ? 1 : 0) + (r ? 1 : 0);
|
|
19
|
+
return !t && !r ? null : /* @__PURE__ */ d(B, { ref: l, ownerState: { ...i, isDirty: t, visibleRefresh: n, actionsCount: f }, children: [
|
|
20
20
|
t && /* @__PURE__ */ o(
|
|
21
|
-
|
|
21
|
+
O,
|
|
22
22
|
{
|
|
23
|
-
size:
|
|
24
|
-
icon: /* @__PURE__ */ o(
|
|
25
|
-
onClick:
|
|
26
|
-
tooltip:
|
|
23
|
+
size: e,
|
|
24
|
+
icon: /* @__PURE__ */ o(C, {}),
|
|
25
|
+
onClick: p,
|
|
26
|
+
tooltip: c(D(R.tooltip_clear_sort))
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
r && /* @__PURE__ */ o(
|
|
30
|
+
x,
|
|
31
31
|
{
|
|
32
|
-
size:
|
|
33
|
-
icon: a ? /* @__PURE__ */ o(
|
|
32
|
+
size: e,
|
|
33
|
+
icon: a ? /* @__PURE__ */ o(w, {}) : /* @__PURE__ */ o(h, {}),
|
|
34
34
|
"aria-label": "refresh",
|
|
35
|
-
tooltip:
|
|
36
|
-
onClick:
|
|
37
|
-
ownerState: { ...
|
|
35
|
+
tooltip: c(u),
|
|
36
|
+
onClick: S,
|
|
37
|
+
ownerState: { ...i, isDirty: s }
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] });
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
_.displayName = "SortActions";
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
_ as default
|
|
45
45
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { Maybe } from '@m4l/core';
|
|
2
3
|
import { Sizes } from '@m4l/styles';
|
|
3
4
|
import { Theme } from '@mui/material/styles';
|
|
@@ -151,6 +152,11 @@ export interface DynamicSortProps {
|
|
|
151
152
|
* visibleRefresh: indica si el boton de refresh debe estar visible
|
|
152
153
|
*/
|
|
153
154
|
visibleRefresh?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Separador líder opcional que el contenedor (useDynamicFilterAndSort) crea y
|
|
157
|
+
* pasa para renderizar junto al trigger del sort. Sin él, el sort no lo muestra.
|
|
158
|
+
*/
|
|
159
|
+
leadingSeparator?: ReactNode;
|
|
154
160
|
}
|
|
155
161
|
/**
|
|
156
162
|
* Interface que define la variables que se van a usar en clases del componente
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DynamicSort/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AACrE,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAC5C,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;AAC1C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAC5C;AACD,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AACD,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC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C;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,aAAa,CAAC;AACjE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;AAC1B;;GAEG;AACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC;AAChC;;;GAGG;AACH,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAC/B,IAAI,CAAC;AACV;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DynamicSort/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM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B,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,gBAAgB,EAAE,CAAC;CAC3C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const M4LDYNAMIC_KEY_FILTER_AND_SORT = "M4LDynamicFilterAndSort";
|
|
2
2
|
export declare const COOKIE_APPLIED_FILTERS = "applied_filters";
|
|
3
3
|
export declare const COOKIE_APPLIED_SORTS = "applied_sorts";
|
|
4
|
+
export declare const STACK_NARROW_BREAKPOINT_PX = 640;
|
|
4
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,4BAA4B,CAAC;AAGxE,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AACxD,eAAO,MAAM,oBAAoB,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,4BAA4B,CAAC;AAGxE,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AACxD,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAGpD,eAAO,MAAM,0BAA0B,MAAM,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const _ = "M4LDynamicFilterAndSort", t = "applied_filters",
|
|
1
|
+
const _ = "M4LDynamicFilterAndSort", t = "applied_filters", A = "applied_sorts", E = 640;
|
|
2
2
|
export {
|
|
3
3
|
t as COOKIE_APPLIED_FILTERS,
|
|
4
|
-
|
|
5
|
-
_ as M4LDYNAMIC_KEY_FILTER_AND_SORT
|
|
4
|
+
A as COOKIE_APPLIED_SORTS,
|
|
5
|
+
_ as M4LDYNAMIC_KEY_FILTER_AND_SORT,
|
|
6
|
+
E as STACK_NARROW_BREAKPOINT_PX
|
|
6
7
|
};
|
|
@@ -2,6 +2,7 @@ export declare enum DynamicFilterAndSortSlots {
|
|
|
2
2
|
stackLeftActions = "stackLeftActions",
|
|
3
3
|
stackCustomHeader = "stackCustomHeader",
|
|
4
4
|
stackRightActions = "stackRightActions",
|
|
5
|
-
actionRefresh = "actionRefresh"
|
|
5
|
+
actionRefresh = "actionRefresh",
|
|
6
|
+
separator = "separator"
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=DynamicFilterAndSortEnum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicFilterAndSortEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACnC,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"DynamicFilterAndSortEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACnC,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,SAAS,cAAc;CACxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = /* @__PURE__ */ ((s) => (s.stackLeftActions = "stackLeftActions", s.stackCustomHeader = "stackCustomHeader", s.stackRightActions = "stackRightActions", s.actionRefresh = "actionRefresh", s.separator = "separator", s))(a || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as DynamicFilterAndSortSlots
|
|
4
4
|
};
|
|
@@ -10,4 +10,7 @@ export declare const StackRightActionsStyled: import('@emotion/styled').StyledCo
|
|
|
10
10
|
export declare const ActionRefreshStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../..').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "action" | "classes" | "children" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "instaceDataTestId" | "variant" | "src" | "tooltip" | "value" | "icon" | "selected" | "dataTestId" | "placement" | "rotationAngle" | "instanceDataTestId" | "disabled" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
11
11
|
ownerState?: (Partial<import('../types').DynamicFilterAndSortOwnerState> & Record<string, unknown>) | undefined;
|
|
12
12
|
}, {}, {}>;
|
|
13
|
+
export declare const SeparatorStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
14
|
+
ownerState?: (Partial<import('../types').DynamicFilterAndSortOwnerState> & Record<string, unknown>) | undefined;
|
|
15
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
16
|
//# sourceMappingURL=DynamicFilterAndSortSlots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicFilterAndSortSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB;;UAGY,CAAC;AAEhD,eAAO,MAAM,uBAAuB;;UAGY,CAAC;AAEjD,eAAO,MAAM,uBAAuB;;UAGY,CAAC;AAGjD,eAAO,MAAM,mBAAmB;;UAGa,CAAC"}
|
|
1
|
+
{"version":3,"file":"DynamicFilterAndSortSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB;;UAGY,CAAC;AAEhD,eAAO,MAAM,uBAAuB;;UAGY,CAAC;AAEjD,eAAO,MAAM,uBAAuB;;UAGY,CAAC;AAGjD,eAAO,MAAM,mBAAmB;;UAGa,CAAC;AAI9C,eAAO,MAAM,eAAe;;6NAGa,CAAC"}
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { styled as t } from "@mui/material/styles";
|
|
2
2
|
import { M4LDYNAMIC_KEY_FILTER_AND_SORT as o } from "../constants.js";
|
|
3
|
-
import { Stack as
|
|
4
|
-
import { DynamicFilterAndSortSlots as
|
|
5
|
-
import { dynamicFilterAndSortStyles as
|
|
6
|
-
import { IconButton as
|
|
7
|
-
const
|
|
3
|
+
import { Stack as r } from "../../../components/extended/mui/Stack/Stack.js";
|
|
4
|
+
import { DynamicFilterAndSortSlots as e } from "./DynamicFilterAndSortEnum.js";
|
|
5
|
+
import { dynamicFilterAndSortStyles as s } from "../styles.js";
|
|
6
|
+
import { IconButton as a } from "../../../components/extended/mui/IconButton/IconButton.js";
|
|
7
|
+
const d = t(r, {
|
|
8
8
|
name: o,
|
|
9
|
-
slot:
|
|
10
|
-
})(
|
|
9
|
+
slot: e.stackLeftActions
|
|
10
|
+
})(s.stackLeftActions), f = t(r, {
|
|
11
11
|
name: o,
|
|
12
|
-
slot:
|
|
13
|
-
})(
|
|
12
|
+
slot: e.stackCustomHeader
|
|
13
|
+
})(s.stackCustomHeader), A = t(r, {
|
|
14
14
|
name: o,
|
|
15
|
-
slot:
|
|
16
|
-
})(
|
|
15
|
+
slot: e.stackRightActions
|
|
16
|
+
})(s.stackRightActions), k = t(a, {
|
|
17
17
|
name: o,
|
|
18
|
-
slot:
|
|
19
|
-
})(
|
|
18
|
+
slot: e.actionRefresh
|
|
19
|
+
})(s?.actionRefresh), p = t("div", {
|
|
20
|
+
name: o,
|
|
21
|
+
slot: e.separator
|
|
22
|
+
})(s?.separator);
|
|
20
23
|
export {
|
|
21
24
|
k as ActionRefreshStyled,
|
|
22
|
-
|
|
23
|
-
f as
|
|
25
|
+
p as SeparatorStyled,
|
|
26
|
+
f as StackCustomHeaderStyled,
|
|
27
|
+
d as StackLeftActionsStyled,
|
|
24
28
|
A as StackRightActionsStyled
|
|
25
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,0BAA0B,EAAE,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/hooks/useDynamicFilterAndSort/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,0BAA0B,EAAE,0BA2GxC,CAAC"}
|