@m4l/components 0.1.92 → 0.1.93

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 (168) hide show
  1. package/@types/export.d.ts +12 -15
  2. package/components/AccountPopover/AccountPopover.d.ts +2 -1
  3. package/components/AccountPopover/{index.eebea1c5.js → index.2ef0bf6d.js} +20 -31
  4. package/components/AccountPopover/index.d.ts +0 -1
  5. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +4 -3
  6. package/components/AccountPopover/types.d.ts +50 -26
  7. package/components/AppBar/{index.90cceb7d.js → index.16fe42a1.js} +3 -22
  8. package/components/CommonActions/components/ActionCancel/{index.54588e5b.js → index.c3e23ad4.js} +2 -2
  9. package/components/CommonActions/components/ActionFormCancel/{index.7907e6f4.js → index.6da52418.js} +4 -34
  10. package/components/CommonActions/components/ActionFormIntro/{index.f7cd515b.js → index.c3af6d1d.js} +2 -2
  11. package/components/CommonActions/components/ActionIntro/{index.f20cffae.js → index.49631fcb.js} +2 -2
  12. package/components/CommonActions/components/Actions/{index.7a196c44.js → index.ccf731c1.js} +2 -38
  13. package/components/DataGrid/classes/index.d.ts +1 -0
  14. package/components/DataGrid/classes/types.d.ts +1 -0
  15. package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +2 -2
  16. package/components/DataGrid/{index.95cea2ca.js → index.abedf2c0.js} +44 -14
  17. package/components/DataGrid/subcomponents/Actions/{index.5b0b1fbf.js → index.c8408b73.js} +9 -38
  18. package/components/DraggableWindow/{index.c702d3f2.js → index.8f423ed7.js} +1 -1
  19. package/components/DynamicFilter/{index.e9192ebd.js → index.cb1402aa.js} +23 -56
  20. package/components/DynamicFilter/index.d.ts +1 -1
  21. package/components/GridLayout/classes/index.d.ts +1 -1
  22. package/components/GridLayout/{index.5e43414d.js → index.1421f0d4.js} +7 -7
  23. package/components/GridLayout/subcomponents/Griditem/{index.d6f326d2.js → index.b2342897.js} +4 -4
  24. package/components/GridLayout/subcomponents/Responsive/{index.d41e31ca.js → index.f459804c.js} +2 -2
  25. package/components/HelperText/{index.191348cc.js → index.7d2afdb3.js} +2 -23
  26. package/components/Icon/{index.a70c4729.js → index.3211023d.js} +8 -6
  27. package/components/Image/{index.c18ebf5a.js → index.611cd930.js} +43 -14
  28. package/components/LanguagePopover/{index.a74f2065.js → index.b6dc03d0.js} +4 -20
  29. package/components/LinearProgressIndeterminate/{index.60dabc06.js → index.c46da124.js} +1 -1
  30. package/components/LoadingError/LoadingError.d.ts +3 -0
  31. package/components/LoadingError/classes/constants.d.ts +1 -0
  32. package/components/LoadingError/classes/index.d.ts +14 -0
  33. package/components/LoadingError/classes/types.d.ts +14 -0
  34. package/components/LoadingError/dictionary.d.ts +1 -0
  35. package/components/LoadingError/index.96bdc803.js +106 -0
  36. package/components/LoadingError/index.d.ts +2 -0
  37. package/components/LoadingError/types.d.ts +10 -0
  38. package/components/MFLoader/classes/constants.d.ts +1 -0
  39. package/components/MFLoader/classes/index.d.ts +7 -0
  40. package/components/MFLoader/classes/types.d.ts +7 -0
  41. package/components/MFLoader/dictionary.d.ts +1 -0
  42. package/components/MFLoader/index.caee87dd.js +296 -0
  43. package/components/MFLoader/index.d.ts +2 -0
  44. package/components/MFLoader/types.d.ts +7 -0
  45. package/components/ModalDialog/{index.99745527.js → index.ec55087e.js} +5 -5
  46. package/components/NavLink/{index.f12bba32.js → index.b75c91e1.js} +2 -22
  47. package/components/NoItemSelected/{index.1eaf72d8.js → index.3e29c208.js} +1 -1
  48. package/components/ObjectLogs/{index.9bbac2a0.js → index.38fd657f.js} +12 -38
  49. package/components/Page/index.c4642a29.js +127 -0
  50. package/components/PaperForm/{index.e02c772c.js → index.cce9ed39.js} +1 -1
  51. package/components/Period/{index.ebd5e3b7.js → index.c35c6a6c.js} +5 -37
  52. package/components/PrintingSystem/PrintingSystem.d.ts +3 -0
  53. package/components/PrintingSystem/classes/constants.d.ts +1 -0
  54. package/components/PrintingSystem/classes/index.d.ts +32 -0
  55. package/components/PrintingSystem/classes/types.d.ts +33 -0
  56. package/components/PrintingSystem/index.d.ts +2 -0
  57. package/components/PrintingSystem/index.e18a2fa8.js +634 -0
  58. package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +3 -0
  59. package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +5 -0
  60. package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +3 -0
  61. package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +3 -0
  62. package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +3 -0
  63. package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +3 -0
  64. package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +3 -0
  65. package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +5 -0
  66. package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +3 -0
  67. package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +5 -0
  68. package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +3 -0
  69. package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +5 -0
  70. package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +3 -0
  71. package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +3 -0
  72. package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +3 -0
  73. package/components/PrintingSystem/subcomponents/PageNode/types.d.ts +5 -0
  74. package/components/PrintingSystem/subcomponents/Pager/index.d.ts +3 -0
  75. package/components/PrintingSystem/subcomponents/Pager/types.d.ts +5 -0
  76. package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +3 -0
  77. package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +5 -0
  78. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +3 -0
  79. package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +5 -0
  80. package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +3 -0
  81. package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +5 -0
  82. package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +3 -0
  83. package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +3 -0
  84. package/components/PrintingSystem/types.d.ts +214 -0
  85. package/components/PrintingSystem/utils/FactoryRender/index.d.ts +3 -0
  86. package/components/PrintingSystem/utils/FactoryRender/types.d.ts +4 -0
  87. package/components/PrintingSystem/utils/PageRender/index.d.ts +3 -0
  88. package/components/PrintingSystem/utils/PageRender/types.d.ts +13 -0
  89. package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
  90. package/components/PrintingSystem/utils/getSize/index.d.ts +1 -0
  91. package/components/PropertyValue/classes/index.d.ts +3 -2
  92. package/components/PropertyValue/classes/types.d.ts +2 -0
  93. package/components/PropertyValue/{index.76fa6a12.js → index.3ee95452.js} +25 -9
  94. package/components/PropertyValue/types.d.ts +4 -0
  95. package/components/Resizeable/{index.676c96fe.js → index.8c53c1fa.js} +1 -1
  96. package/components/SideBar/{index.2dfc5445.js → index.5fd648d2.js} +44 -39
  97. package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
  98. package/components/areas/components/AreasAdmin/{index.cd054608.js → index.ddb384a1.js} +29 -62
  99. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  100. package/components/areas/components/AreasViewer/classes/types.d.ts +2 -8
  101. package/components/areas/components/AreasViewer/{index.62abf0bb.js → index.625bf23b.js} +68 -437
  102. package/components/areas/components/index.558684b3.js +1 -0
  103. package/components/areas/components/index.d.ts +0 -1
  104. package/components/areas/contexts/AreasContext/{index.d528f6e7.js → index.646f3c8f.js} +9 -7
  105. package/components/areas/contexts/index.24025b97.js +1 -0
  106. package/components/areas/contexts/index.d.ts +1 -0
  107. package/components/areas/hooks/index.d9dc1e21.js +1 -0
  108. package/components/areas/hooks/useAreas/{index.d417e4b2.js → index.ee66240b.js} +1 -1
  109. package/components/areas/index.4cc6a221.js +22 -0
  110. package/components/areas/index.d.ts +1 -1
  111. package/components/formatters/BooleanFormatter/{index.a013b080.js → index.3c2df7a8.js} +10 -4
  112. package/components/formatters/FormatterRoot/index.d.ts +3 -0
  113. package/components/formatters/FormatterRoot/types.d.ts +4 -0
  114. package/components/formatters/classes/index.d.ts +4 -0
  115. package/components/formatters/classes/types.d.ts +6 -0
  116. package/components/formatters/constants.d.ts +1 -0
  117. package/components/formatters/{index.576922c9.js → index.dc77adb7.js} +25 -8
  118. package/components/hook-form/RHFAutocomplete/{index.29a4c62c.js → index.52387f0f.js} +7 -22
  119. package/components/hook-form/RHFAutocompleteAsync/{index.647c3f9c.js → index.638bd2ae.js} +3 -2
  120. package/components/hook-form/RHFCheckbox/{index.0b89ea5c.js → index.a38715e3.js} +2 -22
  121. package/components/hook-form/RHFDateTime/{index.1adc88ad.js → index.66e334b0.js} +23 -23
  122. package/components/hook-form/RHFPeriod/{index.a4476d23.js → index.23099265.js} +2 -2
  123. package/components/hook-form/RHFTextField/{index.a1a240b1.js → index.25b3627e.js} +6 -8
  124. package/components/hook-form/RHFUpload/{index.a4582341.js → index.65588e08.js} +5 -22
  125. package/components/index.d.ts +3 -0
  126. package/components/modal/{WindowBase.a4752aa1.js → WindowBase.161ec78a.js} +5 -37
  127. package/components/modal/{WindowConfirm.7a9c12c0.js → WindowConfirm.7eed7c35.js} +8 -40
  128. package/components/modal/{index.b434146b.js → index.61389369.js} +0 -37
  129. package/components/mui_extended/Accordion/{index.cdedddba.js → index.92aae1a4.js} +4 -4
  130. package/components/mui_extended/Button/{index.f79eb74e.js → index.94fec33c.js} +3 -3
  131. package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
  132. package/components/mui_extended/IconButton/{index.76624519.js → index.53cd6388.js} +2 -2
  133. package/components/mui_extended/MenuActions/{index.7669b8af.js → index.dd9f65a2.js} +5 -19
  134. package/components/mui_extended/Pager/{index.ac2a21f0.js → index.de0bd62c.js} +2 -2
  135. package/components/mui_extended/Tab/{index.5f09e16a.js → index.1fcabba2.js} +2 -2
  136. package/components/mui_extended/index.b606cd9d.js +1 -0
  137. package/contexts/ModalContext/{index.347f6738.js → index.436c2938.js} +1 -1
  138. package/contexts/RHFormContext/classes/index.d.ts +1 -1
  139. package/hooks/useFormAddEdit/{index.e8e7f758.js → index.3584a29f.js} +2 -26
  140. package/hooks/useModal/{index.fa6dfaa1.js → index.05d1821e.js} +1 -1
  141. package/index.js +196 -187
  142. package/node_modules.b55d04d9.js +15267 -0
  143. package/package.json +5 -1
  144. package/react-data-grid.d46d625e.js +2 -2
  145. package/react-draggable.e4725f3a.js +630 -0
  146. package/{react-resizable.ba08699a.js → react-resizable.c07d63fb.js} +2 -2
  147. package/utils/{index.c43a95f4.js → index.6469f148.js} +75 -107
  148. package/vendor.71883626.js +104 -0
  149. package/components/Page/index.4237c241.js +0 -27
  150. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +0 -8
  151. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +0 -3
  152. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +0 -5
  153. package/components/areas/components/index.ea2f9914.js +0 -31
  154. package/components/areas/contexts/index.6e9bbc64.js +0 -2
  155. package/components/areas/hooks/index.0184c6f7.js +0 -4
  156. package/components/areas/index.8d6d8969.js +0 -54
  157. package/components/mui_extended/index.fe189e7d.js +0 -24
  158. package/node_modules.d73a220d.js +0 -363
  159. package/react-draggable.7abb5d0a.js +0 -962
  160. package/vendor.e14dec76.js +0 -128
  161. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts → MFLoader/MFLoader.d.ts} +0 -0
  162. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/helper.d.ts +0 -0
  163. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/index.d.ts +0 -0
  164. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/types.d.ts +0 -0
  165. package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
  166. package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
  167. package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
  168. package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SectionNode } from "../../types";
3
+ export interface BodyNodeProps extends Omit<SectionNode, 'children' | 'type'> {
4
+ children?: React.ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ChartNodeProps } from './types';
3
+ export declare const ChartNode: (props: ChartNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ChartNode } from '../../types';
2
+ export interface ChartNodeProps extends Omit<ChartNode, 'children'> {
3
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DividerNodeProps } from './types';
3
+ export declare const DividerNode: (props: DividerNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { DividerNode } from "../../types";
2
+ export interface DividerNodeProps extends Omit<DividerNode, 'children'> {
3
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FooterNodeProps } from './types';
3
+ export declare const FooterNode: (props: FooterNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SectionNode } from "../../types";
3
+ export interface FooterNodeProps extends Omit<SectionNode, 'children' | 'type'> {
4
+ children?: React.ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { GridNodeProps } from './types';
3
+ export declare const GridNode: (props: GridNodeProps) => import("react").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ import { GridNode } from "../../types";
3
+ export interface GridNodeProps extends Omit<GridNode, 'children'> {
4
+ children: ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { HeaderNodeProps } from './types';
3
+ export declare const HeaderNode: (props: HeaderNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { HeaderNode } from "../../types";
3
+ export interface HeaderNodeProps extends Omit<HeaderNode, 'children'> {
4
+ children?: React.ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ImageNodeProps } from './types';
3
+ export declare const ImageNode: (props: ImageNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ImageNode } from "../../types";
2
+ export interface ImageNodeProps extends Omit<ImageNode, 'children'> {
3
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PageNodeProps } from './types';
3
+ export declare const PageNode: (props: PageNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ import { PageNode } from '../../types';
3
+ export interface PageNodeProps extends Omit<PageNode, 'children'> {
4
+ children: ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PagerNodeProps } from './types';
3
+ export declare const PagerNode: (props: PagerNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ import { PaperNode } from "../../types";
3
+ export interface PagerNodeProps extends Omit<PaperNode, 'children'> {
4
+ children: ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PaperNodeProps } from './types';
3
+ export declare const PaperNode: (props: PaperNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ import { PaperNode } from "../../types";
3
+ export interface PaperNodeProps extends Omit<PaperNode, 'children'> {
4
+ children: ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PropertyValueNodeProps } from './types';
3
+ export declare const PropertyValueNode: (props: PropertyValueNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ import { PropertyValue } from "../../types";
3
+ export interface PropertyValueNodeProps extends Omit<PropertyValue, 'children'> {
4
+ children: ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SectionNodeProps } from './types';
3
+ export declare const SectionNode: (props: SectionNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SectionNode } from "../../types";
3
+ export interface SectionNodeProps extends Omit<SectionNode, 'children'> {
4
+ children?: React.ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { TextBoxNodeProps } from './types';
3
+ export declare const TextBoxNode: (props: TextBoxNodeProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { TextBoxNode } from "../../types";
2
+ export interface TextBoxNodeProps extends TextBoxNode {
3
+ }
@@ -0,0 +1,214 @@
1
+ /**
2
+ * NodeType: Se usa para definir el nombre de todos los posibles componentes.
3
+ */
4
+ import { M4LTypographyVariants } from '@m4l/styles';
5
+ import { CSSProperties, ReactNode } from 'react';
6
+ import { PageNodeProps } from './subcomponents/PageNode/types';
7
+ import { SectionNodeProps } from './subcomponents/SectionNode/types';
8
+ import { HeaderNodeProps } from './subcomponents/HeaderNode/types';
9
+ import { BodyNodeProps } from './subcomponents/BodyNode/types';
10
+ import { FooterNodeProps } from './subcomponents/FooterNode/types';
11
+ import { PaperNodeProps } from './subcomponents/PaperNode/types';
12
+ import { PropertyValueNodeProps } from './subcomponents/PropertyValueNode/types';
13
+ import { GridNodeProps } from './subcomponents/GridNode/types';
14
+ import { ChartNodeProps } from './subcomponents/ChartNode/types';
15
+ export interface BaseProviderPrintSystem {
16
+ pageId: number;
17
+ unitSize: string;
18
+ mainColor: string;
19
+ countPages: number;
20
+ HeaderGeneral?: (ancestor: any) => React.JSX.Element;
21
+ FooterGeneral?: (ancestor: any) => React.JSX.Element;
22
+ sourceData: any;
23
+ templateData: RootNode;
24
+ }
25
+ /**
26
+ * Direction: Propiedad para la dirección de contenidos
27
+ */
28
+ declare type Direction = 'column' | 'row';
29
+ /**
30
+ * Align: Propiedades de alineación de contenidos
31
+ */
32
+ declare type Align = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
33
+ export interface NodeTypeCollection {
34
+ page: () => ReactNode;
35
+ section: () => ReactNode;
36
+ textBox: () => ReactNode;
37
+ image: () => ReactNode;
38
+ header: () => ReactNode;
39
+ body: () => ReactNode;
40
+ footer: () => ReactNode;
41
+ paper: () => ReactNode;
42
+ propertyValue: () => ReactNode;
43
+ divider: () => ReactNode;
44
+ grid: () => ReactNode;
45
+ chart: () => ReactNode;
46
+ }
47
+ /**
48
+ * BaseNode: Se encarga de contener las propiedades comunes entre la lista de componentes.
49
+ */
50
+ export interface BaseNode {
51
+ key: string;
52
+ className?: string;
53
+ style?: CSSProperties;
54
+ children?: NodePrint[];
55
+ }
56
+ /**
57
+ * PaddingProperties: propiedades de espaciado interno.
58
+ */
59
+ export interface PaddingProperties {
60
+ paddingTop?: number;
61
+ paddingLeft?: number;
62
+ paddingRight?: number;
63
+ paddingBottom?: number;
64
+ }
65
+ /**
66
+ * PaddingProperties: propiedades de espaciado interno.
67
+ */
68
+ export interface SizeProperty {
69
+ width: number | 'auto' | string;
70
+ height: number | 'auto' | string;
71
+ }
72
+ /**
73
+ * RootNode: Componente que agrupa todas las posibles paginas
74
+ */
75
+ export interface RootNode {
76
+ unitSizes: string;
77
+ mainColor: string;
78
+ header: HeaderNode[];
79
+ footer: FooterNode[];
80
+ pages?: PageNode[];
81
+ }
82
+ /**
83
+ * PageNode: Componente de página, es el primer componente que se carga en las estructuras NodeType y se encarga de definir el formato de tamaño
84
+ */
85
+ export interface PageNode extends BaseNode, PaddingProperties, SizeProperty {
86
+ type: 'page';
87
+ gap?: number | string;
88
+ }
89
+ /**
90
+ * SectionNode: Componente para distrubir elementos de NodeType en fila.
91
+ */
92
+ export interface SectionNode extends BaseNode, PaddingProperties, SizeProperty {
93
+ type: 'section';
94
+ direction: Direction;
95
+ alignX?: Align;
96
+ alignY?: Align;
97
+ grow?: boolean;
98
+ gap?: number;
99
+ }
100
+ /**
101
+ * TextBox: Componente para visualizar estructuras de texto.
102
+ */
103
+ export interface TextBoxNode extends Omit<BaseNode, 'children'> {
104
+ type: 'textBox';
105
+ variant: M4LTypographyVariants;
106
+ textAlign: 'start' | 'center' | 'end' | 'justify';
107
+ children: string;
108
+ }
109
+ /**
110
+ * ImageNode: Componente para visualizar imagenes.
111
+ */
112
+ export interface ImageNode extends BaseNode {
113
+ type: 'image';
114
+ src: string;
115
+ width?: number;
116
+ height?: number;
117
+ }
118
+ /**
119
+ * HeaderNode: Componente para visualizar la cabecera del documento.
120
+ */
121
+ export interface HeaderNode extends Omit<SectionNode, 'type'> {
122
+ type: 'header';
123
+ }
124
+ /**
125
+ * BodyNode: Componente para visualizar el cuerpo del documento.
126
+ */
127
+ export interface BodyNode extends Omit<SectionNode, 'type'> {
128
+ type: 'body';
129
+ }
130
+ /**
131
+ * FooterNode: Componente para visualizar el pie de página del documento.
132
+ */
133
+ export interface FooterNode extends Omit<SectionNode, 'type'> {
134
+ type: 'footer';
135
+ }
136
+ /**
137
+ * PaperNode: Componente que contiene una lista de campos de valor.
138
+ */
139
+ export interface PaperNode extends BaseNode {
140
+ type: 'paper';
141
+ title: string;
142
+ titleSecondary?: string;
143
+ }
144
+ /**
145
+ * PropertyValue: Componente que organiza un campo con una etiqueta y valor.
146
+ */
147
+ export interface PagerNode extends BaseNode {
148
+ type: 'pager';
149
+ }
150
+ /**
151
+ * PropertyValue: Componente que organiza un campo con una etiqueta y valor.
152
+ */
153
+ export interface PropertyValue extends Omit<BaseNode, 'children'> {
154
+ type: 'propertyValue';
155
+ property: string;
156
+ propertyWidth?: number | string;
157
+ value: string;
158
+ direction: Direction;
159
+ children?: string;
160
+ }
161
+ /**
162
+ * DividerNode: Componente que aporta una división gráfica.
163
+ */
164
+ export interface DividerNode extends Omit<BaseNode, 'children'> {
165
+ type: 'divider';
166
+ direction: 'vertical' | 'horizontal';
167
+ children?: string;
168
+ }
169
+ export interface Columns {
170
+ key: string;
171
+ title: string;
172
+ alignX?: Align;
173
+ alignY?: Align;
174
+ nestedValue?: string;
175
+ width?: number | string;
176
+ }
177
+ /**
178
+ * GridNode: Componente dibuja una tabla de información con n canditad de registros y columnas.
179
+ */
180
+ export interface GridNode extends Omit<BaseNode, 'children'> {
181
+ type: 'grid';
182
+ columns: Array<Columns>;
183
+ rows: Array<any> | string;
184
+ children?: string;
185
+ }
186
+ /**
187
+ * ChartNode: Componente dibuja una grafica de información.
188
+ */
189
+ export interface UncertaintyType {
190
+ x: number;
191
+ xMin: 0;
192
+ xMax: 0;
193
+ y: number;
194
+ yMin: number;
195
+ yMax: number;
196
+ }
197
+ export interface ChartNode extends Omit<BaseNode, 'children'> {
198
+ type: 'chart';
199
+ children?: string;
200
+ points: Array<any> | string;
201
+ messageX: string;
202
+ messageY: string;
203
+ }
204
+ export declare type NodePrint = SectionNode | TextBoxNode | ImageNode | HeaderNode | BodyNode | FooterNode | PaperNode | PropertyValue | DividerNode | GridNode | ChartNode | PagerNode;
205
+ export declare type NodePrintComponent = ((props: PageNodeProps) => React.JSX.Element) | ((props: SectionNodeProps) => React.JSX.Element) | ((props: HeaderNodeProps) => React.JSX.Element) | ((props: BodyNodeProps) => React.JSX.Element) | ((props: FooterNodeProps) => React.JSX.Element) | ((props: PaperNodeProps) => React.JSX.Element) | ((props: PropertyValueNodeProps) => React.JSX.Element) | ((props: GridNodeProps) => React.JSX.Element) | ((props: ChartNodeProps) => React.JSX.Element);
206
+ export interface PrintingSystemProps {
207
+ templateData: RootNode;
208
+ sourceData: any;
209
+ className?: string;
210
+ }
211
+ export interface PrintingSystemRef {
212
+ GoPrint: () => void;
213
+ }
214
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FactoryRenderProps } from './types';
2
+ import React from 'react';
3
+ export declare const FactoryRender: (props: FactoryRenderProps) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { NodePrint } from "../../types";
2
+ export interface FactoryRenderProps {
3
+ data: NodePrint;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { PageRenderProps } from './types';
2
+ import React from 'react';
3
+ export declare const PageRender: (props: PageRenderProps) => React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { PageNode, RootNode } from "../../types";
3
+ export interface PageRenderProps {
4
+ data: PageNode;
5
+ id: number;
6
+ unitSize: string;
7
+ mainColor: string;
8
+ countPages: number;
9
+ HeaderGeneral?: (ancestor: any) => React.JSX.Element;
10
+ FooterGeneral?: (ancestor: any) => React.JSX.Element;
11
+ sourceData: any;
12
+ templateData: RootNode;
13
+ }
@@ -0,0 +1 @@
1
+ export declare const getEvalValue: (sourceData: any, key: string) => string | Array<any>;
@@ -0,0 +1 @@
1
+ export declare const getSize: (value: number | string, unitSize: string) => string;
@@ -1,9 +1,10 @@
1
1
  import { PropertyValueClassesType } from './types';
2
+ import { OwnerState } from '../types';
2
3
  export declare const propertyValueClasses: PropertyValueClassesType;
3
4
  export declare function getPropertyValueUtilityClass(slot: string): string;
4
- export declare const propertyValueUtilityClasses: () => {
5
+ export declare const propertyValueUtilityClasses: (ownerState: OwnerState) => {
5
6
  value: string;
6
- root: string;
7
7
  property: string;
8
+ root: string;
8
9
  skeletonProperty: string;
9
10
  };
@@ -4,6 +4,8 @@ export interface PropertyValueClassesType {
4
4
  property: string;
5
5
  value: string;
6
6
  skeletonProperty: string;
7
+ isDisabled: string;
8
+ isFocus: string;
7
9
  }
8
10
  export declare type PropertyValueClassesKey = keyof PropertyValueClassesType;
9
11
  export declare type Classes = ReturnType<typeof propertyValueUtilityClasses>;
@@ -1,12 +1,13 @@
1
1
  import { styled } from "@mui/material/styles";
2
2
  import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
3
3
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
4
- import { g as getNameDataTestId } from "../../vendor.e14dec76.js";
4
+ import { g as getNameDataTestId } from "../../vendor.71883626.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useResponsiveDesktop } from "@m4l/graphics";
7
7
  import { useModuleSkeleton } from "@m4l/core";
8
8
  import { unstable_composeClasses } from "@mui/base";
9
9
  import clsx from "clsx";
10
+ import { useState } from "react";
10
11
  const PropertyValueRoot = styled("div", {
11
12
  shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
12
13
  })(({
@@ -19,9 +20,6 @@ const PropertyValueRoot = styled("div", {
19
20
  alignItems: "flex-start",
20
21
  width: "100%",
21
22
  padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
22
- ":hover": {
23
- backgroundColor: isForm ? "unset" : theme.palette.grid?.rowHover
24
- },
25
23
  borderBottom: isForm ? "none" : `1px solid ${theme.palette.divider}`,
26
24
  flexDirection: "column",
27
25
  [theme.breakpoints.up("sm")]: {
@@ -109,14 +107,16 @@ generateUtilityClasses(componentName, [
109
107
  "root",
110
108
  "property",
111
109
  "value",
112
- "skeletonProperty"
110
+ "skeletonProperty",
111
+ "isDisabled",
112
+ "isFocus"
113
113
  ]);
114
114
  function getPropertyValueUtilityClass(slot) {
115
115
  return generateUtilityClass(componentName, slot);
116
116
  }
117
- const propertyValueUtilityClasses = () => {
117
+ const propertyValueUtilityClasses = (ownerState) => {
118
118
  const slots = {
119
- root: ["root"],
119
+ root: ["root", ownerState.disabled && "isDisabled", ownerState.focus && "isFocus"],
120
120
  property: ["property"],
121
121
  value: ["value"],
122
122
  skeletonProperty: ["skeletonProperty"]
@@ -136,10 +136,13 @@ function PropertyValue(props) {
136
136
  valueWidthMobile,
137
137
  isForm,
138
138
  className,
139
- dataTestId = ""
139
+ dataTestId = "",
140
+ disabled = false
140
141
  } = props;
141
142
  const isDesktop = useResponsiveDesktop();
142
143
  const isSkeleton = useModuleSkeleton();
144
+ const [isFocus, setIsFocus] = useState(false);
145
+ console.log("Estado de focus: ", isFocus);
143
146
  const getValueW = () => {
144
147
  if (valueWidthMobile && !isDesktop) {
145
148
  return valueWidthMobile;
@@ -165,11 +168,24 @@ function PropertyValue(props) {
165
168
  }
166
169
  return 100;
167
170
  };
168
- const classes = propertyValueUtilityClasses();
171
+ const handlerFocus = () => {
172
+ setIsFocus(true);
173
+ };
174
+ const handlerOnBlur = () => {
175
+ setIsFocus(false);
176
+ };
177
+ const ownerState = {
178
+ disabled,
179
+ focus: disabled === false ? isFocus : false
180
+ };
181
+ const classes = propertyValueUtilityClasses(ownerState);
169
182
  return /* @__PURE__ */ jsxs(PropertyValueRoot, {
183
+ tabIndex: 0,
170
184
  className: clsx(classes.root, className),
171
185
  isForm,
172
186
  propertyWidth,
187
+ onClick: handlerFocus,
188
+ onBlur: handlerOnBlur,
173
189
  ...process.env.NODE_ENV !== "production" ? {
174
190
  [TEST_PROPS_DATA]: JSON.stringify([{
175
191
  property: property ? true : false,
@@ -13,6 +13,7 @@ export interface PropertyValueProps extends PropertyProps, ValueProps {
13
13
  isForm?: boolean;
14
14
  className?: string;
15
15
  dataTestId?: string;
16
+ disabled?: boolean;
16
17
  }
17
18
  export declare type WrapperProps = PropertyProps & Pick<PropertyValueProps, 'isForm'>;
18
19
  export declare type WrapperPropertyProps = WrapperProps;
@@ -20,3 +21,6 @@ export declare type WrapperValueProps = Omit<ValueProps, 'valueWidthMobile'>;
20
21
  export interface SKTPropertyProps extends Pick<PropertyValueProps, 'dataTestId'> {
21
22
  className: string;
22
23
  }
24
+ export interface OwnerState extends Pick<PropertyValueProps, 'disabled'> {
25
+ focus: boolean;
26
+ }
@@ -1,5 +1,5 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { a as ResizableBox } from "../../react-resizable.ba08699a.js";
2
+ import { a as ResizableBox } from "../../react-resizable.c07d63fb.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  const WrapperResizeable = styled(ResizableBox)(({
5
5
  theme