@m4l/components 9.2.24 → 9.2.26

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 (62) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/PrintingSystem/PrintingSystem.d.ts +30 -0
  3. package/components/PrintingSystem/PrintingSystem.js +40 -25
  4. package/components/PrintingSystem/PrintingSystem.styles.d.ts +2 -0
  5. package/components/PrintingSystem/PrintingSystem.styles.js +263 -0
  6. package/components/PrintingSystem/classes/index.d.ts +14 -14
  7. package/components/PrintingSystem/classes/index.js +2 -40
  8. package/components/PrintingSystem/constants.d.ts +1 -0
  9. package/components/PrintingSystem/constants.js +4 -0
  10. package/components/PrintingSystem/slots/PrintingSystemEnum.d.ts +23 -0
  11. package/components/PrintingSystem/slots/PrintingSystemEnum.js +27 -0
  12. package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +63 -0
  13. package/components/PrintingSystem/slots/PrintingSystemSlots.js +111 -0
  14. package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +6 -1
  15. package/components/PrintingSystem/subcomponents/BodyNode/index.js +3 -5
  16. package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +6 -1
  17. package/components/PrintingSystem/subcomponents/ChartNode/index.js +3 -1
  18. package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +5 -1
  19. package/components/PrintingSystem/subcomponents/DividerNode/index.js +3 -1
  20. package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +6 -1
  21. package/components/PrintingSystem/subcomponents/FooterNode/index.js +3 -5
  22. package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +6 -1
  23. package/components/PrintingSystem/subcomponents/GridNode/index.js +30 -24
  24. package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +6 -1
  25. package/components/PrintingSystem/subcomponents/HeaderNode/index.js +3 -5
  26. package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +7 -1
  27. package/components/PrintingSystem/subcomponents/ImageNode/index.js +1 -4
  28. package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +1 -1
  29. package/components/PrintingSystem/subcomponents/PageNode/index.js +3 -5
  30. package/components/PrintingSystem/subcomponents/Pager/index.d.ts +4 -1
  31. package/components/PrintingSystem/subcomponents/Pager/index.js +1 -4
  32. package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +4 -1
  33. package/components/PrintingSystem/subcomponents/PaperNode/index.js +34 -13
  34. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +4 -1
  35. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +12 -16
  36. package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +4 -1
  37. package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +1 -1
  38. package/components/PrintingSystem/subcomponents/SectionNode/index.js +3 -5
  39. package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +4 -1
  40. package/components/PrintingSystem/subcomponents/TextBoxNode/index.js +4 -9
  41. package/components/PrintingSystem/tests/PrintingSystem.test.d.ts +1 -0
  42. package/components/PrintingSystem/tests/mocks/sourceData.d.ts +440 -0
  43. package/components/PrintingSystem/tests/mocks/templateData.d.ts +2 -0
  44. package/components/PrintingSystem/types.d.ts +26 -1
  45. package/components/SideBar/constants.js +3 -3
  46. package/components/SideBar/slots/SideBarEnum.d.ts +3 -1
  47. package/components/SideBar/slots/SideBarEnum.js +2 -0
  48. package/components/SideBar/slots/SideBarSlots.d.ts +6 -0
  49. package/components/SideBar/slots/SideBarSlots.js +23 -13
  50. package/components/SideBar/subcomponents/ContentComponent/index.js +41 -10
  51. package/components/SideBar/subcomponents/ContentComponent/style.js +30 -1
  52. package/components/SideBar/subcomponents/ContentGroups/index.js +1 -1
  53. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +2 -2
  54. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +2 -2
  55. package/components/SideBar/subcomponents/FooterSidebar/index.js +1 -1
  56. package/components/SideBar/subcomponents/HeaderSidebar/index.js +1 -1
  57. package/components/SideBar/subcomponents/SideBarDesktop/index.js +14 -52
  58. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +36 -33
  59. package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
  60. package/package.json +1 -1
  61. package/storybook/components/PrintingSystem/PrintingSystem.stories.d.ts +6 -0
  62. package/components/PrintingSystem/styles.js +0 -7
@@ -0,0 +1,63 @@
1
+ export declare const PrintingSystemRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
2
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const PageNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
5
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
6
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
+ export declare const SectionNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
8
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
9
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
+ export declare const HeaderNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
11
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
12
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
13
+ export declare const FooterNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
14
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
15
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
16
+ export declare const TextBoxNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
17
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
18
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
19
+ export declare const BodyNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
20
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
21
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
22
+ export declare const PaperNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
23
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
24
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
25
+ export declare const PaperNodeContainerTitlesStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
26
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
27
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
28
+ export declare const PaperNodeTitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
29
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
30
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
31
+ export declare const PaperNodeTitleSecondaryStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
32
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
33
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
34
+ export declare const PaperNodeContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
35
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
36
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
37
+ export declare const PropertyValueNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
38
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
39
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
40
+ export declare const PropertyValueNodeTitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
41
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
42
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
43
+ export declare const PropertyValueNodeContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
44
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
45
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
46
+ export declare const DividerNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
47
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
48
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
49
+ export declare const GridNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
50
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
51
+ }, Pick<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, keyof import('react').ClassAttributes<HTMLTableElement> | keyof import('react').TableHTMLAttributes<HTMLTableElement>>, {}>;
52
+ export declare const GridNodeTdStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
53
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
54
+ }, Pick<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, keyof import('react').ClassAttributes<HTMLTableDataCellElement> | keyof import('react').TdHTMLAttributes<HTMLTableDataCellElement>>, {}>;
55
+ export declare const GridNodeThStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
56
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
57
+ }, Pick<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, keyof import('react').ClassAttributes<HTMLTableHeaderCellElement> | keyof import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>>, {}>;
58
+ export declare const GridNodeTrStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
59
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
60
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, keyof import('react').ClassAttributes<HTMLTableRowElement> | keyof import('react').HTMLAttributes<HTMLTableRowElement>>, {}>;
61
+ export declare const ChartNodeRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown> & {
62
+ ownerState: Partial<import('../types').PrintingSystemOwnerState> & Record<string, unknown>;
63
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1,111 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { P as PRINTING_SYSTEM_KEY_COMPONENT } from "../constants.js";
3
+ import { P as PrintingSystemSlots } from "./PrintingSystemEnum.js";
4
+ import { p as printingSystemStyles } from "../PrintingSystem.styles.js";
5
+ const PrintingSystemRootStyled = styled("div", {
6
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
7
+ slot: PrintingSystemSlots.root
8
+ })(printingSystemStyles?.root);
9
+ const PageNodeRootStyled = styled("div", {
10
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
11
+ slot: PrintingSystemSlots.pageNodeRoot
12
+ })(printingSystemStyles?.pageNodeRoot);
13
+ const SectionNodeRootStyled = styled("div", {
14
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
15
+ slot: PrintingSystemSlots.sectionNodeRoot
16
+ })(printingSystemStyles?.sectionNodeRoot);
17
+ const HeaderNodeRootStyled = styled("div", {
18
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
19
+ slot: PrintingSystemSlots.headerNodeRoot
20
+ })(printingSystemStyles?.headerNodeRoot);
21
+ const FooterNodeRootStyled = styled("div", {
22
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
23
+ slot: PrintingSystemSlots.footerNodeRoot
24
+ })(printingSystemStyles?.footerNodeRoot);
25
+ const TextBoxNodeRootStyled = styled("span", {
26
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
27
+ slot: PrintingSystemSlots.textBoxNodeRoot
28
+ })(printingSystemStyles?.textBoxNodeRoot);
29
+ const BodyNodeRootStyled = styled("div", {
30
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
31
+ slot: PrintingSystemSlots.bodyNodeRoot
32
+ })(printingSystemStyles?.bodyNodeRoot);
33
+ const PaperNodeRootStyled = styled("div", {
34
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
35
+ slot: PrintingSystemSlots.paperNodeRoot
36
+ })(printingSystemStyles?.paperNodeRoot);
37
+ const PaperNodeContainerTitlesStyled = styled("div", {
38
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
39
+ slot: PrintingSystemSlots.paperNodeContainerTitles
40
+ })(printingSystemStyles?.paperNodeContainerTitles);
41
+ const PaperNodeTitleStyled = styled("div", {
42
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
43
+ slot: PrintingSystemSlots.paperNodeTitle
44
+ })(printingSystemStyles?.paperNodeTitle);
45
+ const PaperNodeTitleSecondaryStyled = styled("div", {
46
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
47
+ slot: PrintingSystemSlots.paperNodeTitleSecondary
48
+ })(printingSystemStyles?.paperNodeTitleSecondary);
49
+ const PaperNodeContentStyled = styled("div", {
50
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
51
+ slot: PrintingSystemSlots.paperNodeContent
52
+ })(printingSystemStyles?.paperNodeContent);
53
+ const PropertyValueNodeRootStyled = styled("div", {
54
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
55
+ slot: PrintingSystemSlots.propertyValueNodeRoot
56
+ })(printingSystemStyles?.propertyValueNodeRoot);
57
+ const PropertyValueNodeTitleStyled = styled("div", {
58
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
59
+ slot: PrintingSystemSlots.propertyValueNodeTitle
60
+ })(printingSystemStyles?.propertyValueNodeTitle);
61
+ const PropertyValueNodeContentStyled = styled("div", {
62
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
63
+ slot: PrintingSystemSlots.propertyValueNodeContent
64
+ })(printingSystemStyles?.propertyValueNodeContent);
65
+ const DividerNodeRootStyled = styled("div", {
66
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
67
+ slot: PrintingSystemSlots.dividerNodeRoot
68
+ })(printingSystemStyles?.dividerNodeRoot);
69
+ const GridNodeRootStyled = styled("table", {
70
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
71
+ slot: PrintingSystemSlots.gridNodeRoot
72
+ })(printingSystemStyles?.gridNodeRoot);
73
+ const GridNodeTdStyled = styled("td", {
74
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
75
+ slot: PrintingSystemSlots.gridNodeTd
76
+ })(printingSystemStyles?.gridNodeTd);
77
+ const GridNodeThStyled = styled("th", {
78
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
79
+ slot: PrintingSystemSlots.gridNodeTh
80
+ })(printingSystemStyles?.gridNodeTh);
81
+ const GridNodeTrStyled = styled("tr", {
82
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
83
+ slot: PrintingSystemSlots.gridNodeTr
84
+ })(printingSystemStyles?.gridNodeTr);
85
+ const ChartNodeRootStyled = styled("div", {
86
+ name: PRINTING_SYSTEM_KEY_COMPONENT,
87
+ slot: PrintingSystemSlots.chartNodeRoot
88
+ })(printingSystemStyles?.chartNodeRoot);
89
+ export {
90
+ BodyNodeRootStyled as B,
91
+ ChartNodeRootStyled as C,
92
+ DividerNodeRootStyled as D,
93
+ FooterNodeRootStyled as F,
94
+ GridNodeRootStyled as G,
95
+ HeaderNodeRootStyled as H,
96
+ PrintingSystemRootStyled as P,
97
+ SectionNodeRootStyled as S,
98
+ TextBoxNodeRootStyled as T,
99
+ GridNodeTrStyled as a,
100
+ GridNodeThStyled as b,
101
+ GridNodeTdStyled as c,
102
+ PageNodeRootStyled as d,
103
+ PaperNodeRootStyled as e,
104
+ PaperNodeContainerTitlesStyled as f,
105
+ PaperNodeTitleStyled as g,
106
+ PaperNodeTitleSecondaryStyled as h,
107
+ PaperNodeContentStyled as i,
108
+ PropertyValueNodeRootStyled as j,
109
+ PropertyValueNodeTitleStyled as k,
110
+ PropertyValueNodeContentStyled as l
111
+ };
@@ -1,5 +1,10 @@
1
1
  import { BodyNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente BodyNode
4
+ *
5
+ * Este componente se utiliza para renderizar el contenido de la sección principal de la página.
6
+ * @param {BodyNodeProps} props - Propiedades del componente.
7
+ * @param {ReactNode} props.children - Contenido a renderizar dentro del componente.
8
+ * @param {'row' | 'column'} [props.direction] - Dirección del contenido.
4
9
  */
5
10
  export declare const BodyNode: (props: BodyNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useBase } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
5
3
  import { g as getSize } from "../../utils/getSize/index.js";
4
+ import { B as BodyNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
6
5
  const BodyNode = (props) => {
7
6
  const {
8
7
  children,
9
- className,
10
8
  direction = "row",
11
9
  gap = "unset",
12
10
  style,
@@ -22,9 +20,9 @@ const BodyNode = (props) => {
22
20
  } = props;
23
21
  const { unitSize } = useBase();
24
22
  return /* @__PURE__ */ jsx(
25
- "div",
23
+ BodyNodeRootStyled,
26
24
  {
27
- className: clsx(classes.bodyNodeRoot, className),
25
+ ownerState: {},
28
26
  style: {
29
27
  flexDirection: direction,
30
28
  gap: getSize(gap, unitSize),
@@ -1,5 +1,10 @@
1
1
  import { ChartNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente ChartNode
4
+ *
5
+ * Este componente se utiliza para renderizar un gráfico de dispersión con barras de error.
6
+ * @param {ChartNodeProps} props - Propiedades del componente.
7
+ * @param {ReactNode} props.children - Contenido a renderizar dentro del componente.
8
+ * @param {'row' | 'column'} [props.direction] - Dirección del contenido.
4
9
  */
5
10
  export declare const ChartNode: (props: ChartNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,7 @@ import { createRef, useEffect } from "react";
5
5
  import { Chart, registerables } from "chart.js";
6
6
  import { ScatterWithErrorBarsController, LineWithErrorBarsChart, PointWithErrorBar } from "chartjs-chart-error-bars";
7
7
  import { useBase, getPropertyByString, evaluateWithContext } from "@m4l/core";
8
+ import { C as ChartNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
8
9
  Chart.register(
9
10
  ScatterWithErrorBarsController,
10
11
  LineWithErrorBarsChart,
@@ -90,8 +91,9 @@ const ChartNode = (props) => {
90
91
  }
91
92
  }, [canvasRef, points]);
92
93
  return /* @__PURE__ */ jsx(
93
- "div",
94
+ ChartNodeRootStyled,
94
95
  {
96
+ ownerState: {},
95
97
  className: clsx(classes.chartNodeRoot, className),
96
98
  style: {
97
99
  ...style
@@ -1,5 +1,9 @@
1
1
  import { DividerNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente DividerNode
4
+ *
5
+ * Este componente se utiliza para renderizar una línea divisoria.
6
+ * @param {DividerNodeProps} props - Propiedades del componente.
7
+ * @param {'vertical' | 'horizontal'} [props.direction] - Dirección de la línea divisoria.
4
8
  */
5
9
  export declare const DividerNode: (props: DividerNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { c as classes } from "../../classes/index.js";
3
+ import { D as DividerNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
3
4
  import clsx from "clsx";
4
5
  const DividerNode = (props) => {
5
6
  const { direction = "vertical", className = "", style = {} } = props;
6
7
  return /* @__PURE__ */ jsx(
7
- "div",
8
+ DividerNodeRootStyled,
8
9
  {
10
+ ownerState: {},
9
11
  className: clsx(
10
12
  classes.dividerNodeRoot,
11
13
  className,
@@ -1,5 +1,10 @@
1
1
  import { FooterNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente FooterNode
4
+ *
5
+ * Este componente se utiliza para renderizar el pie de página de la página.
6
+ * @param {FooterNodeProps} props - Propiedades del componente.
7
+ * @param {ReactNode} props.children - Contenido a renderizar dentro del componente.
8
+ * @param {'row' | 'column'} [props.direction] - Dirección del contenido.
4
9
  */
5
10
  export declare const FooterNode: (props: FooterNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useBase } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
5
3
  import { g as getSize } from "../../utils/getSize/index.js";
4
+ import { F as FooterNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
6
5
  const FooterNode = (props) => {
7
6
  const {
8
7
  children,
9
- className,
10
8
  direction = "row",
11
9
  gap = "unset",
12
10
  style,
@@ -22,9 +20,9 @@ const FooterNode = (props) => {
22
20
  } = props;
23
21
  const { unitSize } = useBase();
24
22
  return /* @__PURE__ */ jsx(
25
- "div",
23
+ FooterNodeRootStyled,
26
24
  {
27
- className: clsx(classes.footerNodeRoot, className),
25
+ ownerState: {},
28
26
  style: {
29
27
  flexDirection: direction,
30
28
  gap: getSize(gap, unitSize),
@@ -1,5 +1,10 @@
1
1
  import { GridNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente GridNode
4
+ *
5
+ * Este componente se utiliza para renderizar una tabla.
6
+ * @param {GridNodeProps} props - Propiedades del componente.
7
+ * @param {ReactNode} props.children - Contenido a renderizar dentro del componente.
8
+ * @param {'row' | 'column'} [props.direction] - Dirección del contenido.
4
9
  */
5
10
  export declare const GridNode: (props: GridNodeProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,9 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useBase, getPropertyByString, evaluateWithContext } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
5
3
  import { g as getSize } from "../../utils/getSize/index.js";
4
+ import { G as GridNodeRootStyled, a as GridNodeTrStyled, b as GridNodeThStyled, c as GridNodeTdStyled } from "../../slots/PrintingSystemSlots.js";
6
5
  const GridNode = (props) => {
7
- const { style = {}, className = "", rows, columns } = props;
6
+ const { style = {}, rows, columns } = props;
8
7
  const regexPattern = /\$\{([^{}]+)\}/g;
9
8
  const rowMaybeString = typeof rows === "string" && regexPattern.exec(rows) || "";
10
9
  const dataColumns = Array.isArray(columns) && columns.length > 0 ? columns : [];
@@ -18,39 +17,46 @@ const GridNode = (props) => {
18
17
  const rowsFormated = typeof rows === "string" ? rowEval : rows;
19
18
  if (dataColumns.length > 0) {
20
19
  return /* @__PURE__ */ jsxs(
21
- "table",
20
+ GridNodeRootStyled,
22
21
  {
23
- className: clsx(classes.gridNodeRoot, className),
22
+ ownerState: {},
24
23
  style: {
25
24
  ...style
26
25
  },
27
26
  children: [
28
- /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { className: classes.gridNodeTr, children: columns.map((column) => {
29
- return /* @__PURE__ */ jsx(
30
- "th",
31
- {
32
- className: classes.gridNodeTh,
33
- style: {
34
- minWidth: column.width ? getSize(column.width, unitSize) : "auto",
35
- maxWidth: column.width ? getSize(column.width, unitSize) : "auto",
36
- justifyContent: column.alignX ? column.alignX : "center"
37
- },
38
- children: evaluateWithContext(sourceData, column.title)
39
- },
40
- `th-${Math.random().toString(36).substring(7)}`
41
- );
42
- }) }, `tr-${Math.random().toString(36).substring(7)}`) }),
27
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx(
28
+ GridNodeTrStyled,
29
+ {
30
+ ownerState: {},
31
+ children: columns.map((column) => {
32
+ return /* @__PURE__ */ jsx(
33
+ GridNodeThStyled,
34
+ {
35
+ ownerState: {},
36
+ style: {
37
+ minWidth: column.width ? getSize(column.width, unitSize) : "auto",
38
+ maxWidth: column.width ? getSize(column.width, unitSize) : "auto",
39
+ justifyContent: column.alignX ? column.alignX : "center"
40
+ },
41
+ children: evaluateWithContext(sourceData, column.title)
42
+ },
43
+ `th-${Math.random().toString(36).substring(7)}`
44
+ );
45
+ })
46
+ },
47
+ `tr-${Math.random().toString(36).substring(7)}`
48
+ ) }),
43
49
  /* @__PURE__ */ jsx("tbody", { children: rowsFormated.map((row) => {
44
50
  return /* @__PURE__ */ jsx(
45
- "tr",
51
+ GridNodeTrStyled,
46
52
  {
47
- className: classes.gridNodeTr,
53
+ ownerState: {},
48
54
  children: columns.map((cell, id) => {
49
55
  const isNested = cell.nestedValue ? true : false;
50
56
  return /* @__PURE__ */ jsx(
51
- "td",
57
+ GridNodeTdStyled,
52
58
  {
53
- className: classes.gridNodeTd,
59
+ ownerState: {},
54
60
  style: {
55
61
  minWidth: getSize(dataColumns[id].width || "auto", unitSize),
56
62
  justifyContent: cell.alignX ? cell.alignX : "center"
@@ -1,5 +1,10 @@
1
1
  import { HeaderNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente HeaderNode
4
+ *
5
+ * Este componente se utiliza para renderizar el encabezado de la página.
6
+ * @param {HeaderNodeProps} props - Propiedades del componente.
7
+ * @param {ReactNode} props.children - Contenido a renderizar dentro del componente.
8
+ * @param {'row' | 'column'} [props.direction] - Dirección del contenido.
4
9
  */
5
10
  export declare const HeaderNode: (props: HeaderNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useBase } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
5
3
  import { g as getSize } from "../../utils/getSize/index.js";
4
+ import { H as HeaderNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
6
5
  const HeaderNode = (props) => {
7
6
  const {
8
7
  children,
9
- className,
10
8
  direction = "row",
11
9
  gap = "unset",
12
10
  style,
@@ -22,9 +20,9 @@ const HeaderNode = (props) => {
22
20
  } = props;
23
21
  const { unitSize } = useBase();
24
22
  return /* @__PURE__ */ jsx(
25
- "div",
23
+ HeaderNodeRootStyled,
26
24
  {
27
- className: clsx(classes.headerNodeRoot, className),
25
+ ownerState: {},
28
26
  style: {
29
27
  flexDirection: direction,
30
28
  gap: getSize(gap, unitSize),
@@ -1,5 +1,11 @@
1
1
  import { ImageNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente ImageNode
4
+ *
5
+ * Este componente se utiliza para renderizar una imagen.
6
+ * @param {ImageNodeProps} props - Propiedades del componente.
7
+ * @param {string} props.src - URL de la imagen a renderizar.
8
+ * @param {string} [props.width] - Ancho de la imagen.
9
+ * @param {string} [props.height] - Alto de la imagen.
4
10
  */
5
11
  export declare const ImageNode: (props: ImageNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useBase, useEnvironment, evaluateWithContext } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
3
  import { g as getSize } from "../../utils/getSize/index.js";
5
- import clsx from "clsx";
6
4
  const ImageNode = (props) => {
7
- const { className, style, src, width = "100%", height = "100%" } = props;
5
+ const { style, src, width = "100%", height = "100%" } = props;
8
6
  const { unitSize, sourceData } = useBase();
9
7
  const { host_static_assets, environment_assets } = useEnvironment();
10
8
  const resourceImg = evaluateWithContext(sourceData, src);
@@ -12,7 +10,6 @@ const ImageNode = (props) => {
12
10
  "img",
13
11
  {
14
12
  src: `${host_static_assets}/${environment_assets}/${resourceImg}`,
15
- className: clsx(classes.imageNodeRoot, className),
16
13
  style: {
17
14
  width: getSize(width, unitSize),
18
15
  height: getSize(height, unitSize),
@@ -1,5 +1,5 @@
1
1
  import { PageNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Página de impresión que contiene el contenido de la página.
4
4
  */
5
5
  export declare const PageNode: (props: PageNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useBase } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
5
3
  import { g as getSize } from "../../utils/getSize/index.js";
4
+ import { d as PageNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
6
5
  const PageNode = (props) => {
7
6
  const {
8
7
  children,
9
8
  style = {},
10
- className = "",
11
9
  width = "auto",
12
10
  height = "auto",
13
11
  paddingTop = "unset",
@@ -18,9 +16,9 @@ const PageNode = (props) => {
18
16
  } = props;
19
17
  const { unitSize } = useBase();
20
18
  return /* @__PURE__ */ jsx(
21
- "div",
19
+ PageNodeRootStyled,
22
20
  {
23
- className: clsx(classes.pageNodeRoot, className),
21
+ ownerState: {},
24
22
  style: {
25
23
  width: getSize(width, unitSize),
26
24
  gap: getSize(gap, unitSize),
@@ -1,5 +1,8 @@
1
1
  import { PagerNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente PagerNode
4
+ *
5
+ * Este componente se utiliza para renderizar el paginador de la página.
6
+ * @param {PagerNodeProps} props - Propiedades del componente.
4
7
  */
5
8
  export declare const PagerNode: (props: PagerNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useBase } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
5
3
  const PagerNode = (props) => {
6
- const { style = {}, className = "" } = props;
4
+ const { style = {} } = props;
7
5
  const { mainColor, countPages, pageId } = useBase();
8
6
  return /* @__PURE__ */ jsx(
9
7
  "div",
10
8
  {
11
- className: clsx(classes.pagerNodeRoot, className),
12
9
  style: {
13
10
  ...style,
14
11
  color: mainColor
@@ -1,5 +1,8 @@
1
1
  import { PaperNodeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente PaperNode
4
+ *
5
+ * Este componente se utiliza para renderizar el papel de la página.
6
+ * @param {PaperNodeProps} props - Propiedades del componente.
4
7
  */
5
8
  export declare const PaperNode: (props: PaperNodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,47 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useBase, evaluateWithContext } from "@m4l/core";
3
- import { c as classes } from "../../classes/index.js";
4
- import clsx from "clsx";
3
+ import { e as PaperNodeRootStyled, f as PaperNodeContainerTitlesStyled, g as PaperNodeTitleStyled, h as PaperNodeTitleSecondaryStyled, i as PaperNodeContentStyled } from "../../slots/PrintingSystemSlots.js";
5
4
  const PaperNode = (props) => {
6
- const { children, style = {}, className = "", title, titleSecondary } = props;
5
+ const { children, title, titleSecondary } = props;
7
6
  const { mainColor } = useBase();
8
7
  const { sourceData } = useBase();
9
8
  const titleFormated = evaluateWithContext(sourceData, title);
10
9
  const titleSecondaryFormated = evaluateWithContext(sourceData, titleSecondary || "");
11
10
  return /* @__PURE__ */ jsxs(
12
- "div",
11
+ PaperNodeRootStyled,
13
12
  {
14
- className: clsx(classes.paperNodeRoot, className),
15
- style: {
16
- ...style
17
- },
13
+ ownerState: {},
18
14
  children: [
19
- /* @__PURE__ */ jsxs("div", { className: classes.paperNodeContainerTitles, children: [
20
- /* @__PURE__ */ jsx("div", { className: classes.paperNodeTitle, children: titleFormated }),
21
- titleSecondary ? /* @__PURE__ */ jsx("div", { className: classes.paperNodeTitleSecondary, style: { color: mainColor }, children: titleSecondaryFormated }) : null
22
- ] }),
23
- /* @__PURE__ */ jsx("div", { className: classes.paperNodeContent, children })
15
+ /* @__PURE__ */ jsxs(
16
+ PaperNodeContainerTitlesStyled,
17
+ {
18
+ ownerState: {},
19
+ children: [
20
+ /* @__PURE__ */ jsx(
21
+ PaperNodeTitleStyled,
22
+ {
23
+ ownerState: {},
24
+ children: titleFormated
25
+ }
26
+ ),
27
+ titleSecondary ? /* @__PURE__ */ jsx(
28
+ PaperNodeTitleSecondaryStyled,
29
+ {
30
+ ownerState: {},
31
+ style: { color: mainColor },
32
+ children: titleSecondaryFormated
33
+ }
34
+ ) : null
35
+ ]
36
+ }
37
+ ),
38
+ /* @__PURE__ */ jsx(
39
+ PaperNodeContentStyled,
40
+ {
41
+ ownerState: {},
42
+ children
43
+ }
44
+ )
24
45
  ]
25
46
  }
26
47
  );