@m4l/components 0.1.90 → 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 (174) hide show
  1. package/@types/export.d.ts +12 -15
  2. package/components/AccountPopover/AccountPopover.d.ts +2 -1
  3. package/components/AccountPopover/{index.724828f0.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.0328abec.js → index.16fe42a1.js} +3 -22
  8. package/components/CommonActions/components/ActionCancel/{index.441118b5.js → index.c3e23ad4.js} +2 -2
  9. package/components/CommonActions/components/ActionFormCancel/{index.435fcb53.js → index.6da52418.js} +4 -34
  10. package/components/CommonActions/components/ActionFormIntro/{index.edb131c4.js → index.c3af6d1d.js} +2 -2
  11. package/components/CommonActions/components/ActionIntro/{index.24367ed3.js → index.49631fcb.js} +2 -2
  12. package/components/CommonActions/components/Actions/{index.8dcaba29.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.c296f69c.js → index.abedf2c0.js} +44 -14
  17. package/components/DataGrid/subcomponents/Actions/{index.fadd92f2.js → index.c8408b73.js} +9 -38
  18. package/components/DraggableWindow/{index.c702d3f2.js → index.8f423ed7.js} +1 -1
  19. package/components/DynamicFilter/{index.6a22346e.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.8ae34c50.js → index.1421f0d4.js} +21 -18
  23. package/components/GridLayout/subcomponents/Griditem/{index.c7a33781.js → index.b2342897.js} +5 -4
  24. package/components/GridLayout/subcomponents/Responsive/helper.d.ts +1 -0
  25. package/components/GridLayout/subcomponents/Responsive/{index.96cdb1b4.js → index.f459804c.js} +33 -12
  26. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +2 -2
  27. package/components/GridLayout/subcomponents/Responsive/types.d.ts +22 -1
  28. package/components/GridLayout/types.d.ts +11 -0
  29. package/components/HelperText/{index.31f2a824.js → index.7d2afdb3.js} +2 -23
  30. package/components/Icon/{index.a70c4729.js → index.3211023d.js} +8 -6
  31. package/components/Image/{index.c18ebf5a.js → index.611cd930.js} +43 -14
  32. package/components/LanguagePopover/{index.c9876e63.js → index.b6dc03d0.js} +4 -20
  33. package/components/LinearProgressIndeterminate/{index.60dabc06.js → index.c46da124.js} +1 -1
  34. package/components/LoadingError/LoadingError.d.ts +3 -0
  35. package/components/LoadingError/classes/constants.d.ts +1 -0
  36. package/components/LoadingError/classes/index.d.ts +14 -0
  37. package/components/LoadingError/classes/types.d.ts +14 -0
  38. package/components/LoadingError/dictionary.d.ts +1 -0
  39. package/components/LoadingError/index.96bdc803.js +106 -0
  40. package/components/LoadingError/index.d.ts +2 -0
  41. package/components/LoadingError/types.d.ts +10 -0
  42. package/components/MFLoader/classes/constants.d.ts +1 -0
  43. package/components/MFLoader/classes/index.d.ts +7 -0
  44. package/components/MFLoader/classes/types.d.ts +7 -0
  45. package/components/MFLoader/dictionary.d.ts +1 -0
  46. package/components/MFLoader/index.caee87dd.js +296 -0
  47. package/components/MFLoader/index.d.ts +2 -0
  48. package/components/MFLoader/types.d.ts +7 -0
  49. package/components/ModalDialog/{index.7d0d3ea1.js → index.ec55087e.js} +5 -5
  50. package/components/NavLink/{index.4f927064.js → index.b75c91e1.js} +2 -22
  51. package/components/NoItemSelected/{index.1eaf72d8.js → index.3e29c208.js} +1 -1
  52. package/components/ObjectLogs/{index.87438c47.js → index.38fd657f.js} +12 -38
  53. package/components/Page/index.c4642a29.js +127 -0
  54. package/components/PaperForm/{index.e02c772c.js → index.cce9ed39.js} +1 -1
  55. package/components/Period/{index.d1182d4a.js → index.c35c6a6c.js} +5 -37
  56. package/components/PrintingSystem/PrintingSystem.d.ts +3 -0
  57. package/components/PrintingSystem/classes/constants.d.ts +1 -0
  58. package/components/PrintingSystem/classes/index.d.ts +32 -0
  59. package/components/PrintingSystem/classes/types.d.ts +33 -0
  60. package/components/PrintingSystem/index.d.ts +2 -0
  61. package/components/PrintingSystem/index.e18a2fa8.js +634 -0
  62. package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +3 -0
  63. package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +5 -0
  64. package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +3 -0
  65. package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +3 -0
  66. package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +3 -0
  67. package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +3 -0
  68. package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +3 -0
  69. package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +5 -0
  70. package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +3 -0
  71. package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +5 -0
  72. package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +3 -0
  73. package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +5 -0
  74. package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +3 -0
  75. package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +3 -0
  76. package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +3 -0
  77. package/components/PrintingSystem/subcomponents/PageNode/types.d.ts +5 -0
  78. package/components/PrintingSystem/subcomponents/Pager/index.d.ts +3 -0
  79. package/components/PrintingSystem/subcomponents/Pager/types.d.ts +5 -0
  80. package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +3 -0
  81. package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +5 -0
  82. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +3 -0
  83. package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +5 -0
  84. package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +3 -0
  85. package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +5 -0
  86. package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +3 -0
  87. package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +3 -0
  88. package/components/PrintingSystem/types.d.ts +214 -0
  89. package/components/PrintingSystem/utils/FactoryRender/index.d.ts +3 -0
  90. package/components/PrintingSystem/utils/FactoryRender/types.d.ts +4 -0
  91. package/components/PrintingSystem/utils/PageRender/index.d.ts +3 -0
  92. package/components/PrintingSystem/utils/PageRender/types.d.ts +13 -0
  93. package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
  94. package/components/PrintingSystem/utils/getSize/index.d.ts +1 -0
  95. package/components/PropertyValue/classes/index.d.ts +3 -2
  96. package/components/PropertyValue/classes/types.d.ts +2 -0
  97. package/components/PropertyValue/{index.3ee94e0f.js → index.3ee95452.js} +25 -9
  98. package/components/PropertyValue/types.d.ts +4 -0
  99. package/components/Resizeable/{index.676c96fe.js → index.8c53c1fa.js} +1 -1
  100. package/components/SideBar/{index.2dfc5445.js → index.5fd648d2.js} +44 -39
  101. package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
  102. package/components/areas/components/AreasAdmin/{index.98a54515.js → index.ddb384a1.js} +29 -62
  103. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  104. package/components/areas/components/AreasViewer/classes/types.d.ts +2 -8
  105. package/components/areas/components/AreasViewer/{index.ee7170bc.js → index.625bf23b.js} +70 -438
  106. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
  107. package/components/areas/components/index.558684b3.js +1 -0
  108. package/components/areas/components/index.d.ts +0 -1
  109. package/components/areas/contexts/AreasContext/helper.d.ts +14 -1
  110. package/components/areas/contexts/AreasContext/{index.1950eef9.js → index.646f3c8f.js} +16 -12
  111. package/components/areas/contexts/index.24025b97.js +1 -0
  112. package/components/areas/contexts/index.d.ts +1 -0
  113. package/components/areas/hooks/index.d9dc1e21.js +1 -0
  114. package/components/areas/hooks/useAreas/{index.ce75bfb5.js → index.ee66240b.js} +1 -1
  115. package/components/areas/index.4cc6a221.js +22 -0
  116. package/components/areas/index.d.ts +1 -1
  117. package/components/formatters/BooleanFormatter/{index.a013b080.js → index.3c2df7a8.js} +10 -4
  118. package/components/formatters/FormatterRoot/index.d.ts +3 -0
  119. package/components/formatters/FormatterRoot/types.d.ts +4 -0
  120. package/components/formatters/classes/index.d.ts +4 -0
  121. package/components/formatters/classes/types.d.ts +6 -0
  122. package/components/formatters/constants.d.ts +1 -0
  123. package/components/formatters/{index.576922c9.js → index.dc77adb7.js} +25 -8
  124. package/components/hook-form/RHFAutocomplete/{index.8e4ff8d7.js → index.52387f0f.js} +7 -22
  125. package/components/hook-form/RHFAutocompleteAsync/{index.78f8e4c4.js → index.638bd2ae.js} +3 -2
  126. package/components/hook-form/RHFCheckbox/{index.bdad2059.js → index.a38715e3.js} +2 -22
  127. package/components/hook-form/RHFDateTime/{index.73f8a11e.js → index.66e334b0.js} +23 -23
  128. package/components/hook-form/RHFPeriod/{index.71df31df.js → index.23099265.js} +2 -2
  129. package/components/hook-form/RHFTextField/{index.6d21060a.js → index.25b3627e.js} +6 -8
  130. package/components/hook-form/RHFUpload/{index.f04d24ee.js → index.65588e08.js} +5 -22
  131. package/components/index.d.ts +3 -0
  132. package/components/modal/{WindowBase.b9dd76a4.js → WindowBase.161ec78a.js} +5 -37
  133. package/components/modal/{WindowConfirm.d407f47a.js → WindowConfirm.7eed7c35.js} +8 -40
  134. package/components/modal/{index.764e2723.js → index.61389369.js} +0 -37
  135. package/components/mui_extended/Accordion/{index.a706b12f.js → index.92aae1a4.js} +4 -4
  136. package/components/mui_extended/Button/{index.f79eb74e.js → index.94fec33c.js} +3 -3
  137. package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
  138. package/components/mui_extended/IconButton/{index.76624519.js → index.53cd6388.js} +2 -2
  139. package/components/mui_extended/MenuActions/{index.570fbae0.js → index.dd9f65a2.js} +5 -19
  140. package/components/mui_extended/Pager/{index.ac2a21f0.js → index.de0bd62c.js} +2 -2
  141. package/components/mui_extended/Tab/{index.d0302c81.js → index.1fcabba2.js} +2 -2
  142. package/components/mui_extended/index.b606cd9d.js +1 -0
  143. package/contexts/ModalContext/{index.41fbf6bc.js → index.436c2938.js} +1 -1
  144. package/contexts/RHFormContext/classes/index.d.ts +1 -1
  145. package/hooks/useFormAddEdit/{index.0c6b6b68.js → index.3584a29f.js} +2 -26
  146. package/hooks/useModal/{index.71987a49.js → index.05d1821e.js} +1 -1
  147. package/index.js +199 -190
  148. package/node_modules.b55d04d9.js +15267 -0
  149. package/package.json +5 -1
  150. package/react-data-grid.d46d625e.js +2 -2
  151. package/react-draggable.e4725f3a.js +630 -0
  152. package/{react-resizable.ba08699a.js → react-resizable.c07d63fb.js} +2 -2
  153. package/utils/{index.c43a95f4.js → index.6469f148.js} +75 -107
  154. package/vendor.71883626.js +104 -0
  155. package/components/Page/index.4237c241.js +0 -27
  156. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +0 -8
  157. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +0 -3
  158. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +0 -5
  159. package/components/areas/components/index.431c5397.js +0 -31
  160. package/components/areas/contexts/index.b846bbcb.js +0 -2
  161. package/components/areas/hooks/index.0184c6f7.js +0 -4
  162. package/components/areas/index.5abba006.js +0 -54
  163. package/components/mui_extended/index.a8d347a9.js +0 -24
  164. package/node_modules.d73a220d.js +0 -363
  165. package/react-draggable.7abb5d0a.js +0 -962
  166. package/vendor.4dedf99e.js +0 -128
  167. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts → MFLoader/MFLoader.d.ts} +0 -0
  168. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/helper.d.ts +0 -0
  169. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/index.d.ts +0 -0
  170. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/types.d.ts +0 -0
  171. package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
  172. package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
  173. package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
  174. package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
@@ -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.4dedf99e.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
@@ -1,20 +1,20 @@
1
1
  import { useResponsiveDesktop } from "@m4l/graphics";
2
+ import { styled, alpha } from "@mui/material/styles";
3
+ import { styled as styled$1, generateUtilityClasses, ListItemText, Tooltip, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
2
4
  import { useEnvironment, useBase, BaseProvider } from "@m4l/core";
3
5
  import { createContext, useContext, useState, useEffect } from "react";
4
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
5
- import { I as Image } from "../Image/index.c18ebf5a.js";
6
- import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
6
+ import { unstable_composeClasses } from "@mui/base";
7
+ import { g as getComponentUtilityClass } from "../../utils/index.6469f148.js";
7
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
8
- import { styled as styled$1, generateUtilityClasses, ListItemText, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
9
- import { I as Icon, A as ArrowIcon } from "../Icon/index.a70c4729.js";
10
- import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
9
+ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
10
+ import { I as Image } from "../Image/index.611cd930.js";
11
+ import { I as IconButton } from "../mui_extended/IconButton/index.53cd6388.js";
12
+ import { I as Icon, A as ArrowIcon } from "../Icon/index.3211023d.js";
13
+ import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
11
14
  import clsx from "clsx";
12
15
  import { useLocation } from "react-router-dom";
13
- import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
16
+ import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
14
17
  import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
15
- import { styled, alpha } from "@mui/material/styles";
16
- import { unstable_composeClasses } from "@mui/base";
17
- import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
18
18
  const SideBarRoot = styled("div")(({
19
19
  theme
20
20
  }) => ({
@@ -207,6 +207,7 @@ const SideBarProvider = (props) => {
207
207
  });
208
208
  };
209
209
  const useSideBar = () => useContext(SideBarContext);
210
+ const useSideBar$1 = useSideBar;
210
211
  const SIDEBAR_PREFIX = "M4LSideBar";
211
212
  const getNameDataTestId = (KEY) => {
212
213
  return `${SIDEBAR_PREFIX}-${KEY}`;
@@ -223,7 +224,7 @@ function CollapseButton(props) {
223
224
  const {
224
225
  classes,
225
226
  companyLogoNormalUrl
226
- } = useSideBar();
227
+ } = useSideBar$1();
227
228
  return /* @__PURE__ */ jsxs(CollapseButtonRoot, {
228
229
  className: classes.collapseButton,
229
230
  ...process.env.NODE_ENV !== "production" ? {
@@ -353,30 +354,34 @@ const NavItemMainContent = (props) => {
353
354
  const {
354
355
  collapsed,
355
356
  classes
356
- } = useSideBar();
357
+ } = useSideBar$1();
357
358
  const isDesktop = useResponsiveDesktop();
358
359
  const handlerClick = (event) => {
359
360
  onClick && onClick(item);
360
361
  handlerOpen && handlerOpen(event);
361
362
  !isDesktop && changeVisible && changeVisible();
362
363
  };
363
- return /* @__PURE__ */ jsxs(NavItemMainContentRoot, {
364
- className: classes.navItemRootContent,
365
- collapsed,
366
- id: "WrapperNavItemRootContent",
367
- onClick: handlerClick,
368
- children: [/* @__PURE__ */ jsxs("div", {
369
- className: classes.navItemRootContentIconTypo,
370
- children: [icon ? /* @__PURE__ */ jsx(Icon, {
371
- src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/${icon}`
372
- }) : null, /* @__PURE__ */ jsx(Typography, {
373
- variant: "paragraph",
374
- color: "text.secondary",
375
- children: !collapsed ? title : " "
376
- })]
377
- }), !collapsed && children ? /* @__PURE__ */ jsx(ArrowIcon, {
378
- openState: open
379
- }) : null]
364
+ return /* @__PURE__ */ jsx(Tooltip, {
365
+ title,
366
+ placement: "right",
367
+ children: /* @__PURE__ */ jsxs(NavItemMainContentRoot, {
368
+ className: classes.navItemRootContent,
369
+ collapsed,
370
+ id: "WrapperNavItemRootContent",
371
+ onClick: handlerClick,
372
+ children: [/* @__PURE__ */ jsxs("div", {
373
+ className: classes.navItemRootContentIconTypo,
374
+ children: [icon ? /* @__PURE__ */ jsx(Icon, {
375
+ src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/${icon}`
376
+ }) : null, /* @__PURE__ */ jsx(Typography, {
377
+ variant: "paragraph",
378
+ color: "text.secondary",
379
+ children: !collapsed ? title : " "
380
+ })]
381
+ }), !collapsed && children ? /* @__PURE__ */ jsx(ArrowIcon, {
382
+ openState: open
383
+ }) : null]
384
+ })
380
385
  });
381
386
  };
382
387
  const NavListSubItemRoot = styled$1("div")(() => ({
@@ -439,7 +444,7 @@ const NavSubItemContent = (props) => {
439
444
  isItemActive,
440
445
  onToggleVisible,
441
446
  classes
442
- } = useSideBar();
447
+ } = useSideBar$1();
443
448
  const active = isItemActive(item);
444
449
  const isDesktop = useResponsiveDesktop();
445
450
  const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
@@ -483,7 +488,7 @@ function NavSubItem(props) {
483
488
  } = props;
484
489
  const {
485
490
  onClick
486
- } = useSideBar();
491
+ } = useSideBar$1();
487
492
  return /* @__PURE__ */ jsx(NavSubItemContent, {
488
493
  item,
489
494
  onClick: () => onClick(item),
@@ -505,7 +510,7 @@ function NavListSubItem(props) {
505
510
  const {
506
511
  classes,
507
512
  isItemActive
508
- } = useSideBar();
513
+ } = useSideBar$1();
509
514
  const active = isItemActive(list);
510
515
  const [openSub, setOpenSub] = useState(false);
511
516
  const hasChildren = list.children && Array.isArray(list.children) && list.children.length > 0;
@@ -573,7 +578,7 @@ function NavItemMain(props) {
573
578
  isItemActive,
574
579
  onToggleVisible,
575
580
  classes
576
- } = useSideBar();
581
+ } = useSideBar$1();
577
582
  const [popoverStatus, setPopoverStatus] = useState(null);
578
583
  const theme = useTheme();
579
584
  const active = isItemActive(item);
@@ -661,7 +666,7 @@ function ItemListMain(props) {
661
666
  collapsed: isSideBarCollapsed,
662
667
  isItemActive,
663
668
  classes
664
- } = useSideBar();
669
+ } = useSideBar$1();
665
670
  const location = useLocation();
666
671
  const [internalItemActive, setInternalItemActive] = useState(false);
667
672
  const [active, setActive] = useState(false);
@@ -778,7 +783,7 @@ const SkeletonNavSectionVertical = () => {
778
783
  const {
779
784
  collapsed,
780
785
  classes
781
- } = useSideBar();
786
+ } = useSideBar$1();
782
787
  return /* @__PURE__ */ jsxs(WrapperSKTNavSectionVertical, {
783
788
  collapse: collapsed,
784
789
  className: classes.skeleton,
@@ -839,7 +844,7 @@ const ContentGroups = () => {
839
844
  collapsed,
840
845
  menuData,
841
846
  classes
842
- } = useSideBar();
847
+ } = useSideBar$1();
843
848
  const [itemMainActive, setItemMainActive] = useState(-1);
844
849
  if (menuData && menuData.length > 0) {
845
850
  return /* @__PURE__ */ jsxs(ContentGroupsRoot, {
@@ -894,7 +899,7 @@ const ContentDesktop = () => {
894
899
  companyLogoSmallUrl,
895
900
  classes,
896
901
  companyName
897
- } = useSideBar();
902
+ } = useSideBar$1();
898
903
  return /* @__PURE__ */ jsxs(WrapperContentDesktop, {
899
904
  className: classes.contentDesktop,
900
905
  ...process.env.NODE_ENV !== "production" ? {
@@ -966,7 +971,7 @@ const ContentMobile = () => {
966
971
  collapsed,
967
972
  classes,
968
973
  companyName
969
- } = useSideBar();
974
+ } = useSideBar$1();
970
975
  const theme = useTheme();
971
976
  return /* @__PURE__ */ jsx(Drawer, {
972
977
  open: visible,
@@ -1071,5 +1076,5 @@ const SideBar = (props) => {
1071
1076
  export {
1072
1077
  SideBar as S,
1073
1078
  getNameDataTestId as g,
1074
- useSideBar as u
1079
+ useSideBar$1 as u
1075
1080
  };