@m4l/components 9.16.0 → 9.17.1-beta-feature-731-m4l-components-code-editor.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/@types/types.d.ts +11 -0
- package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +12 -2
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +13 -13
- package/components/DynamicSort/DynamicSort.js +5 -5
- package/components/DynamicSort/DynamicSort.styles.d.ts.map +1 -1
- package/components/DynamicSort/DynamicSort.styles.js +217 -93
- package/components/DynamicSort/constants.js +4 -11
- package/components/DynamicSort/dictionary.d.ts +2 -0
- package/components/DynamicSort/dictionary.d.ts.map +1 -1
- package/components/DynamicSort/dictionary.js +10 -8
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +36 -0
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts.map +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.js +102 -64
- package/components/DynamicSort/slots/SlotsEnum.d.ts +10 -1
- package/components/DynamicSort/slots/SlotsEnum.d.ts.map +1 -1
- package/components/DynamicSort/slots/SlotsEnum.js +2 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.js +20 -15
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.d.ts +3 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.js +19 -19
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.d.ts +3 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +86 -16
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +10 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +29 -9
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.d.ts +2 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +9 -11
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.d.ts +2 -2
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +21 -21
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.d.ts +2 -1
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.js +2 -2
- package/components/DynamicSort/subcomponents/InputSort/InputSort.d.ts +2 -1
- package/components/DynamicSort/subcomponents/InputSort/InputSort.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +44 -35
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts +17 -41
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.js +57 -81
- package/components/DynamicSort/subcomponents/OverflowSortPopover/OverflowSortPopover.d.ts +9 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/OverflowSortPopover.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/OverflowSortPopover.js +85 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/index.d.ts +3 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/index.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/types.d.ts +11 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/types.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +16 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +52 -30
- package/components/DynamicSort/subcomponents/SortActions/SortActions.d.ts +5 -4
- package/components/DynamicSort/subcomponents/SortActions/SortActions.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +35 -32
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +4 -3
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +17 -18
- package/components/DynamicSort/types.d.ts +4 -0
- package/components/DynamicSort/types.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +247 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +3 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +297 -0
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +82 -0
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/constants.js +149 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +11 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +7 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +59 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +1063 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +7 -0
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +4 -0
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +18 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +4 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +84 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +63 -0
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +3 -0
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +15 -0
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +127 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -0
- package/components/extended/index.d.ts +1 -0
- package/components/extended/index.d.ts.map +1 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +7 -0
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +1 -0
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +6 -0
- package/components/hook-form/RHFCodeEditor/index.d.ts +3 -0
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +1 -0
- package/components/hook-form/index.d.ts +1 -0
- package/components/hook-form/index.d.ts.map +1 -1
- package/index.js +561 -548
- package/package.json +9 -6
- package/test/mocks/dictionary-mock.d.ts +3 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/DynamicSort/icons.js +0 -7
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useModuleDictionary as O } from "@m4l/core";
|
|
3
|
+
import { ActionsCloseSmOutlined as D } from "@m4l/icons";
|
|
4
|
+
import { useFormatter as g } from "@m4l/graphics";
|
|
5
|
+
import { useState as k, useEffect as x } from "react";
|
|
6
|
+
import { Chip as E } from "../../../Chip/Chip.js";
|
|
7
|
+
import { useDynamicSortStore as I } from "../../store/useDynamicSortStore.js";
|
|
8
|
+
import C from "../DynamicSortBase/useDynamicSortBase.js";
|
|
9
|
+
import { fieldFactory as F } from "../FieldTypes/fieldFactory.js";
|
|
10
|
+
import { usePopoverContainer as L } from "../../../../hooks/usePopoverContainer/usePopoverContainer.js";
|
|
11
|
+
import { OverflowSortPopoverStyled as P, OverflowSortListStyled as z, OverflowSortItemStyled as A, OverflowSortItemHeaderStyled as j, OverflowSortItemLabelStyled as B } from "../../slots/DynamicSortSlots.js";
|
|
12
|
+
import { Icon as R } from "../../../Icon/Icon.js";
|
|
13
|
+
import { IconButton as H } from "../../../extended/mui/IconButton/IconButton.js";
|
|
14
|
+
function Z(p) {
|
|
15
|
+
const { anchorEl: u, sorts: i, onClose: l } = p, { size: a } = C(), { getLabel: S } = O(), y = g(), s = L(!0), { hidePopoverSort: d, removeSort: w, showPopoverSortForEdit: h } = I(
|
|
16
|
+
(e) => e.actions
|
|
17
|
+
), [n, c] = k(-1);
|
|
18
|
+
function f(e) {
|
|
19
|
+
l(), d(!1), setTimeout(() => h(e), 10);
|
|
20
|
+
}
|
|
21
|
+
function v(e, o) {
|
|
22
|
+
e.stopPropagation(), d(!1), w(o.id);
|
|
23
|
+
}
|
|
24
|
+
return x(() => {
|
|
25
|
+
const e = (o) => {
|
|
26
|
+
o.key === "ArrowDown" ? (o.preventDefault(), c((t) => t < i.length - 1 ? t + 1 : t)) : o.key === "ArrowUp" ? (o.preventDefault(), c((t) => t > 0 ? t - 1 : 0)) : o.key === "Enter" && n >= 0 && n < i.length ? (o.preventDefault(), f(i[n])) : o.key === "Escape" && l();
|
|
27
|
+
};
|
|
28
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
29
|
+
}, [i, n]), s ? /* @__PURE__ */ r(
|
|
30
|
+
P,
|
|
31
|
+
{
|
|
32
|
+
open: !0,
|
|
33
|
+
disableAutoFocus: !0,
|
|
34
|
+
disableRestoreFocus: !0,
|
|
35
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
36
|
+
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
37
|
+
sx: (e) => ({
|
|
38
|
+
mt: e.vars.size.baseSpacings.sp2
|
|
39
|
+
}),
|
|
40
|
+
anchorEl: u,
|
|
41
|
+
onClose: l,
|
|
42
|
+
container: s,
|
|
43
|
+
children: /* @__PURE__ */ r(z, { children: i.map((e, o) => {
|
|
44
|
+
const t = F(e.field.type).getLabels(e, S, y, e.field);
|
|
45
|
+
return /* @__PURE__ */ m(
|
|
46
|
+
A,
|
|
47
|
+
{
|
|
48
|
+
ownerState: { selected: o === n },
|
|
49
|
+
"data-testid": "dynamic-sort-overflow-item",
|
|
50
|
+
"data-field-name": e.field.name,
|
|
51
|
+
onClick: () => f(e),
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ r(R, { src: e.field.urlIcon, size: a, color: "text.secondary" }),
|
|
54
|
+
/* @__PURE__ */ m(j, { children: [
|
|
55
|
+
/* @__PURE__ */ r(B, { children: t.labelField }),
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
E,
|
|
58
|
+
{
|
|
59
|
+
size: a,
|
|
60
|
+
variant: "contained",
|
|
61
|
+
opacity: !0,
|
|
62
|
+
color: "default",
|
|
63
|
+
label: t.labelOperator
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
!e.fixed && /* @__PURE__ */ r(
|
|
68
|
+
H,
|
|
69
|
+
{
|
|
70
|
+
size: a,
|
|
71
|
+
icon: /* @__PURE__ */ r(D, {}),
|
|
72
|
+
onClick: (b) => v(b, e)
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
e.id
|
|
78
|
+
);
|
|
79
|
+
}) })
|
|
80
|
+
}
|
|
81
|
+
) : null;
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
Z as default
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/OverflowSortPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SortFieldApplied } from '../../types';
|
|
2
|
+
/** Props del OverflowSortPopover. */
|
|
3
|
+
export interface OverflowSortPopoverProps {
|
|
4
|
+
/** Elemento DOM que sirve de ancla para el popover. */
|
|
5
|
+
anchorEl: HTMLElement | null;
|
|
6
|
+
/** Sorts que no caben en la vista principal. */
|
|
7
|
+
sorts: SortFieldApplied[];
|
|
8
|
+
/** Callback para cerrar el popover. */
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/OverflowSortPopover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,qCAAqC;AACrC,MAAM,WAAW,wBAAwB;IACvC,uDAAuD;IACvD,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,gDAAgD;IAChD,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
import { ChangeEvent, FocusEvent, KeyboardEvent } from 'react';
|
|
1
2
|
import { SortField } from '../../types';
|
|
2
3
|
export type PopoverMenuFieldsProps = {
|
|
3
4
|
selectFieldIndex: number;
|
|
4
5
|
fields: SortField[];
|
|
6
|
+
/** Texto actual del input "Ordenar por" (del store). */
|
|
7
|
+
inputData: string;
|
|
8
|
+
/** Placeholder del input (del diccionario). */
|
|
9
|
+
inputPlaceHolder: string;
|
|
10
|
+
/** Handlers del input (focus/change/keyDown) construidos en useInputSort. */
|
|
11
|
+
inputHandlersProps: {
|
|
12
|
+
onFocus: (event: FocusEvent<HTMLInputElement>) => void;
|
|
13
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
+
};
|
|
16
|
+
/** Modo skeleton mientras cargan los módulos. */
|
|
17
|
+
isSkeleton: boolean;
|
|
5
18
|
};
|
|
6
19
|
/**
|
|
7
|
-
* PopoverMenuFields
|
|
20
|
+
* PopoverMenuFields: Popover con el input "Ordenar por" en la parte superior
|
|
21
|
+
* y debajo el listado de campos disponibles para crear un nuevo sort.
|
|
22
|
+
* El popover se abre al hacer click en el IconButton trigger de InputSort.
|
|
8
23
|
*/
|
|
9
24
|
declare function PopoverMenuFields(props: PopoverMenuFieldsProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
10
25
|
export default PopoverMenuFields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverMenuFields.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.tsx"],"names":[],"mappings":"
|
|
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,wDAAwD;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;IACzB,6EAA6E;IAC7E,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,iDAAiD;IACjD,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2DAkFvD;AACD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,50 +1,72 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Icon as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as c, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as F, useEffect as D, cloneElement as M, isValidElement as O } from "react";
|
|
3
|
+
import { ActionsSearchOutlined as R } from "@m4l/icons";
|
|
4
|
+
import { Icon as u } from "@m4l/base";
|
|
5
|
+
import w from "../DynamicSortBase/useDynamicSortBase.js";
|
|
6
|
+
import _ from "./usePopoverMenuFields.js";
|
|
7
|
+
import { getDynamicSortDictionary as k, DICCTIONARY as z } from "../../dictionary.js";
|
|
8
|
+
import { useModuleDictionary as A } from "@m4l/core";
|
|
9
|
+
import { usePopoverContainer as E } from "../../../../hooks/usePopoverContainer/usePopoverContainer.js";
|
|
10
|
+
import { PopoverMenuStyled as j, InputSortStyled as H, InputSortInputSkeletonStyled as L, InputSortInputStyled as T } from "../../slots/DynamicSortSlots.js";
|
|
11
|
+
import { MenuItem as p } from "../../../extended/mui/MenuItem/MenuItem.js";
|
|
12
|
+
function W(m) {
|
|
13
|
+
const { fields: a, selectFieldIndex: d, inputData: f, inputPlaceHolder: I, inputHandlersProps: S, isSkeleton: b } = m, { elementRef: h, handleOpenPopUpClickItem: v, handleClosePopover: y, getItemLabel: l, isOpenPopoverMenuFields: o } = _(), x = h?.current, { getLabel: P } = A(), i = E(!!o), { size: r, ownerState: n } = w(), s = F(null);
|
|
14
|
+
return D(() => {
|
|
15
|
+
o && requestAnimationFrame(() => {
|
|
16
|
+
s.current?.focus();
|
|
17
|
+
});
|
|
18
|
+
}, [o]), !o || !i ? null : /* @__PURE__ */ c(
|
|
19
|
+
j,
|
|
14
20
|
{
|
|
15
21
|
disableAutoFocus: !0,
|
|
16
22
|
disableRestoreFocus: !0,
|
|
17
23
|
arrowType: "top-left",
|
|
18
24
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
19
25
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
20
|
-
open: !!o,
|
|
21
|
-
onClose: u,
|
|
22
|
-
anchorEl: d,
|
|
23
|
-
container: i,
|
|
24
26
|
sx: (e) => ({
|
|
25
27
|
mt: e.vars.size.baseSpacings.sp2
|
|
26
28
|
}),
|
|
29
|
+
open: !!o,
|
|
30
|
+
onClose: y,
|
|
31
|
+
anchorEl: x,
|
|
32
|
+
container: i,
|
|
27
33
|
children: [
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
/* @__PURE__ */ c(H, { ownerState: { ...n }, children: [
|
|
35
|
+
/* @__PURE__ */ t(u, { size: r, src: /* @__PURE__ */ t(R, {}), color: "text.secondary" }),
|
|
36
|
+
b ? /* @__PURE__ */ t(L, { ownerState: { ...n }, variant: "rounded" }) : /* @__PURE__ */ t(
|
|
37
|
+
T,
|
|
38
|
+
{
|
|
39
|
+
ref: s,
|
|
40
|
+
type: "text",
|
|
41
|
+
value: f,
|
|
42
|
+
placeholder: I,
|
|
43
|
+
ownerState: { ...n },
|
|
44
|
+
role: "searchbox",
|
|
45
|
+
"aria-label": "searchbox",
|
|
46
|
+
...S
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] }),
|
|
50
|
+
a.map((e, C) => /* @__PURE__ */ t(
|
|
51
|
+
p,
|
|
30
52
|
{
|
|
31
|
-
startIcon: /* @__PURE__ */
|
|
32
|
-
label:
|
|
53
|
+
startIcon: O(e.urlIcon) ? M(e.urlIcon, { size: r }) : /* @__PURE__ */ t(u, { size: r, src: e.urlIcon }),
|
|
54
|
+
label: l(e),
|
|
33
55
|
dense: !0,
|
|
34
|
-
size:
|
|
35
|
-
selected:
|
|
56
|
+
size: r,
|
|
57
|
+
selected: C === d,
|
|
36
58
|
"data-testid": "dynamic-sort-field-option",
|
|
37
59
|
"data-field-name": e.name,
|
|
38
|
-
onClick: (
|
|
60
|
+
onClick: (g) => v(g, e)
|
|
39
61
|
},
|
|
40
|
-
`menu_action_${
|
|
62
|
+
`menu_action_${l(e)}`
|
|
41
63
|
)),
|
|
42
|
-
|
|
43
|
-
|
|
64
|
+
a.length === 0 && /* @__PURE__ */ t(
|
|
65
|
+
p,
|
|
44
66
|
{
|
|
45
67
|
dense: !0,
|
|
46
|
-
size:
|
|
47
|
-
label:
|
|
68
|
+
size: r,
|
|
69
|
+
label: P(k(z.label_no_fields_available)),
|
|
48
70
|
disabled: !0
|
|
49
71
|
}
|
|
50
72
|
)
|
|
@@ -53,5 +75,5 @@ function A(l) {
|
|
|
53
75
|
);
|
|
54
76
|
}
|
|
55
77
|
export {
|
|
56
|
-
|
|
78
|
+
W as default
|
|
57
79
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* SortActions: Renderiza los botones de limpiar y aplicar sorts.
|
|
3
|
+
* Usa @m4l/icons directamente — sin URLs de S3.
|
|
4
|
+
* El botón de refresh solo aparece cuando hay sorts aplicados o hay cambios pendientes.
|
|
5
|
+
* Acepta `ref` para que useChipsOverflow pueda medir su ancho.
|
|
5
6
|
*/
|
|
6
|
-
declare
|
|
7
|
+
declare const SortActions: import('react').ForwardRefExoticComponent<import('react').RefAttributes<HTMLDivElement>>;
|
|
7
8
|
export default SortActions;
|
|
8
9
|
//# sourceMappingURL=SortActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/SortActions/SortActions.tsx"],"names":[],"mappings":"
|
|
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,0FAqCf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import C from "
|
|
5
|
-
import D from "
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { jsxs as u, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { useModuleDictionary as A } from "@m4l/core";
|
|
4
|
+
import { ActionsCleanOutlined as y, ArrowRefreshCcwOutlined as C, ActionsSortOutlined as w } from "@m4l/icons";
|
|
5
|
+
import { getDynamicSortDictionary as h, DICCTIONARY as D } from "../../dictionary.js";
|
|
6
|
+
import R from "../DynamicSortBase/useDynamicSortBase.js";
|
|
7
|
+
import b from "./useSortActions.js";
|
|
8
|
+
import { ActionsStyled as k, ActionsClearButtonStyled as B, ActionsSubmitButtonStyled as O } from "../../slots/DynamicSortSlots.js";
|
|
9
|
+
const x = d((_, c) => {
|
|
8
10
|
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
onClickClearSorts:
|
|
13
|
-
onClickSort:
|
|
14
|
-
sortButtonDictionaryTooltip:
|
|
15
|
-
ownerState:
|
|
16
|
-
} =
|
|
17
|
-
return /* @__PURE__ */ u(
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
automatic: a,
|
|
12
|
+
canShowRemoveAction: t,
|
|
13
|
+
hasAppliedSorts: l,
|
|
14
|
+
onClickClearSorts: m,
|
|
15
|
+
onClickSort: p,
|
|
16
|
+
sortButtonDictionaryTooltip: S,
|
|
17
|
+
ownerState: r
|
|
18
|
+
} = b(), { size: i, visibleRefresh: e, ownerState: { isDirty: n } } = R(), { getLabel: s } = A(), f = e && (l || n);
|
|
19
|
+
return /* @__PURE__ */ u(k, { ref: c, ownerState: { ...r, isDirty: t, visibleRefresh: e }, children: [
|
|
20
|
+
t && /* @__PURE__ */ o(
|
|
21
|
+
B,
|
|
20
22
|
{
|
|
21
|
-
size:
|
|
22
|
-
icon:
|
|
23
|
-
onClick:
|
|
24
|
-
tooltip:
|
|
23
|
+
size: i,
|
|
24
|
+
icon: /* @__PURE__ */ o(y, {}),
|
|
25
|
+
onClick: m,
|
|
26
|
+
tooltip: s(h(D.tooltip_clear_sort))
|
|
25
27
|
}
|
|
26
28
|
),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
f && /* @__PURE__ */ o(
|
|
30
|
+
O,
|
|
29
31
|
{
|
|
30
|
-
size:
|
|
31
|
-
icon:
|
|
32
|
+
size: i,
|
|
33
|
+
icon: a ? /* @__PURE__ */ o(C, {}) : /* @__PURE__ */ o(w, {}),
|
|
32
34
|
"aria-label": "refresh",
|
|
33
|
-
tooltip:
|
|
34
|
-
onClick:
|
|
35
|
-
ownerState: { ...
|
|
35
|
+
tooltip: s(S),
|
|
36
|
+
onClick: p,
|
|
37
|
+
ownerState: { ...r, isDirty: n }
|
|
36
38
|
}
|
|
37
|
-
)
|
|
39
|
+
)
|
|
38
40
|
] });
|
|
39
|
-
}
|
|
41
|
+
});
|
|
42
|
+
x.displayName = "SortActions";
|
|
40
43
|
export {
|
|
41
|
-
|
|
44
|
+
x as default
|
|
42
45
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hook que maneja la lógica de los botones de ordenamiento
|
|
2
|
+
* Hook que maneja la lógica de los botones de ordenamiento.
|
|
3
|
+
* Los íconos se pasan desde SortActions usando @m4l/icons (no URLs de S3).
|
|
3
4
|
*/
|
|
4
5
|
declare function useSortActions(): {
|
|
6
|
+
automatic: boolean | undefined;
|
|
5
7
|
isSkeleton: boolean;
|
|
6
|
-
sortIconUrl: string;
|
|
7
|
-
clearIconUrl: string;
|
|
8
8
|
canShowRemoveAction: boolean;
|
|
9
|
+
hasAppliedSorts: boolean;
|
|
9
10
|
onClickClearSorts: () => void;
|
|
10
11
|
onClickSort: VoidFunction;
|
|
11
12
|
sortButtonDictionaryTooltip: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSortActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/SortActions/useSortActions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSortActions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/SortActions/useSortActions.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,iBAAS,cAAc;;;;;;;;;;;;;EAsCtB;AACD,eAAe,cAAc,CAAC"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { getDynamicSortDictionary as w, DICCTIONARY as i } from "../../dictionary.js";
|
|
1
|
+
import { useModuleSkeleton as y } from "@m4l/core";
|
|
2
|
+
import { getDynamicSortDictionary as D, DICCTIONARY as i } from "../../dictionary.js";
|
|
4
3
|
import { useDynamicSortStore as o } from "../../store/useDynamicSortStore.js";
|
|
5
|
-
function
|
|
6
|
-
const
|
|
4
|
+
function w() {
|
|
5
|
+
const a = o((t) => t.automatic), c = y(), n = o((t) => t.ownerState?.isValid), r = o((t) => t.ownerState?.isDirty), e = o((t) => t.appliedSorts), l = o((t) => t.ownerState?.inEdition), { hidePopoverSort: S, clearSorts: d, fireOnChangeSorts: s } = o(
|
|
7
6
|
(t) => t.actions
|
|
8
7
|
);
|
|
9
|
-
function
|
|
10
|
-
|
|
8
|
+
function p() {
|
|
9
|
+
S(!1), d(), s();
|
|
11
10
|
}
|
|
12
|
-
const
|
|
13
|
-
|
|
11
|
+
const f = e.findIndex((t) => !t.fixed) > -1, m = e.length > 0, u = D(
|
|
12
|
+
n ? r ? i.sort_tooltip_dirty : i.sort_tooltip_refresh : i.sort_tooltip_invalid
|
|
14
13
|
);
|
|
15
14
|
return {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onClickClearSorts:
|
|
21
|
-
onClickSort:
|
|
22
|
-
sortButtonDictionaryTooltip:
|
|
23
|
-
ownerState: { isValid:
|
|
15
|
+
automatic: a,
|
|
16
|
+
isSkeleton: c,
|
|
17
|
+
canShowRemoveAction: f,
|
|
18
|
+
hasAppliedSorts: m,
|
|
19
|
+
onClickClearSorts: p,
|
|
20
|
+
onClickSort: s,
|
|
21
|
+
sortButtonDictionaryTooltip: u,
|
|
22
|
+
ownerState: { isValid: n, isDirty: r, inEdition: l }
|
|
24
23
|
};
|
|
25
24
|
}
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
w as default
|
|
28
27
|
};
|
|
@@ -172,6 +172,10 @@ export interface OwnerState extends Pick<DynamicSortProps, 'automatic'> {
|
|
|
172
172
|
* "isEmpty" Define si existen sorts aplicados
|
|
173
173
|
*/
|
|
174
174
|
isEmpty: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Marks an overflow popover item as keyboard-selected.
|
|
177
|
+
*/
|
|
178
|
+
selected?: boolean;
|
|
175
179
|
/**
|
|
176
180
|
* Propiedad para las variantes de tamaño
|
|
177
181
|
*/
|
|
@@ -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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B;AACD;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC;IACrE;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAC3C;AACD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,EAAE,UAAU;CAAG;AAC9E,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CACpD,oBAAoB,EACpB,OAAO,0BAA0B,EACjC,KAAK,CACN,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,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
|
+
{"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,MA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CAAC;IACvB,eAAe,EAAE,MAAM,gBAAgB,EAAE,CAAC;CAC3C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CodeEditorProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Render a syntax-highlighted code editor with optional self-managed fallback state.
|
|
4
|
+
*/
|
|
5
|
+
export declare function CodeEditor(props: CodeEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=CodeEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,SAAS,CAAC;AAgBjB;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,oDA8VhD"}
|