@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.
- package/@types/types.d.ts +8 -0
- package/components/PrintingSystem/PrintingSystem.d.ts +30 -0
- package/components/PrintingSystem/PrintingSystem.js +40 -25
- package/components/PrintingSystem/PrintingSystem.styles.d.ts +2 -0
- package/components/PrintingSystem/PrintingSystem.styles.js +263 -0
- package/components/PrintingSystem/classes/index.d.ts +14 -14
- package/components/PrintingSystem/classes/index.js +2 -40
- package/components/PrintingSystem/constants.d.ts +1 -0
- package/components/PrintingSystem/constants.js +4 -0
- package/components/PrintingSystem/slots/PrintingSystemEnum.d.ts +23 -0
- package/components/PrintingSystem/slots/PrintingSystemEnum.js +27 -0
- package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +63 -0
- package/components/PrintingSystem/slots/PrintingSystemSlots.js +111 -0
- package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +6 -1
- package/components/PrintingSystem/subcomponents/BodyNode/index.js +3 -5
- package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +6 -1
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +3 -1
- package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +5 -1
- package/components/PrintingSystem/subcomponents/DividerNode/index.js +3 -1
- package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +6 -1
- package/components/PrintingSystem/subcomponents/FooterNode/index.js +3 -5
- package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +6 -1
- package/components/PrintingSystem/subcomponents/GridNode/index.js +30 -24
- package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +6 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/index.js +3 -5
- package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +7 -1
- package/components/PrintingSystem/subcomponents/ImageNode/index.js +1 -4
- package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +1 -1
- package/components/PrintingSystem/subcomponents/PageNode/index.js +3 -5
- package/components/PrintingSystem/subcomponents/Pager/index.d.ts +4 -1
- package/components/PrintingSystem/subcomponents/Pager/index.js +1 -4
- package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +4 -1
- package/components/PrintingSystem/subcomponents/PaperNode/index.js +34 -13
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +4 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +12 -16
- package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +4 -1
- package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/index.js +3 -5
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +4 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.js +4 -9
- package/components/PrintingSystem/tests/PrintingSystem.test.d.ts +1 -0
- package/components/PrintingSystem/tests/mocks/sourceData.d.ts +440 -0
- package/components/PrintingSystem/tests/mocks/templateData.d.ts +2 -0
- package/components/PrintingSystem/types.d.ts +26 -1
- package/components/SideBar/constants.js +3 -3
- package/components/SideBar/slots/SideBarEnum.d.ts +3 -1
- package/components/SideBar/slots/SideBarEnum.js +2 -0
- package/components/SideBar/slots/SideBarSlots.d.ts +6 -0
- package/components/SideBar/slots/SideBarSlots.js +23 -13
- package/components/SideBar/subcomponents/ContentComponent/index.js +41 -10
- package/components/SideBar/subcomponents/ContentComponent/style.js +30 -1
- package/components/SideBar/subcomponents/ContentGroups/index.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +2 -2
- package/components/SideBar/subcomponents/FooterSidebar/index.js +1 -1
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +14 -52
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +36 -33
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/package.json +1 -1
- package/storybook/components/PrintingSystem/PrintingSystem.stories.d.ts +6 -0
- package/components/PrintingSystem/styles.js +0 -7
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PropertyValueNodeProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Componente PropertyValueNode
|
|
4
|
+
*
|
|
5
|
+
* Este componente se utiliza para renderizar el valor de una propiedad.
|
|
6
|
+
* @param {PropertyValueNodeProps} props - Propiedades del componente.
|
|
4
7
|
*/
|
|
5
8
|
export declare const PropertyValueNode: (props: PropertyValueNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,9 @@
|
|
|
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
3
|
import { g as getSize } from "../../utils/getSize/index.js";
|
|
5
|
-
import
|
|
4
|
+
import { j as PropertyValueNodeRootStyled, k as PropertyValueNodeTitleStyled, l as PropertyValueNodeContentStyled } from "../../slots/PrintingSystemSlots.js";
|
|
6
5
|
const PropertyValueNode = (props) => {
|
|
7
6
|
const {
|
|
8
|
-
style = {},
|
|
9
|
-
className = "",
|
|
10
7
|
property,
|
|
11
8
|
children,
|
|
12
9
|
direction,
|
|
@@ -15,21 +12,14 @@ const PropertyValueNode = (props) => {
|
|
|
15
12
|
const { unitSize, mainColor, sourceData } = useBase();
|
|
16
13
|
const propertyFormated = evaluateWithContext(sourceData, property);
|
|
17
14
|
return /* @__PURE__ */ jsxs(
|
|
18
|
-
|
|
15
|
+
PropertyValueNodeRootStyled,
|
|
19
16
|
{
|
|
20
|
-
|
|
21
|
-
classes.propertyValueNodeRoot,
|
|
22
|
-
direction === "column" ? classes.propertyValueNodeHorizontal : classes.propertyValueNodeVertical,
|
|
23
|
-
className
|
|
24
|
-
),
|
|
25
|
-
style: {
|
|
26
|
-
...style
|
|
27
|
-
},
|
|
17
|
+
ownerState: { direction },
|
|
28
18
|
children: [
|
|
29
19
|
/* @__PURE__ */ jsx(
|
|
30
|
-
|
|
20
|
+
PropertyValueNodeTitleStyled,
|
|
31
21
|
{
|
|
32
|
-
|
|
22
|
+
ownerState: {},
|
|
33
23
|
style: {
|
|
34
24
|
width: getSize(propertyWidth, unitSize),
|
|
35
25
|
minWidth: getSize(propertyWidth, unitSize),
|
|
@@ -38,7 +28,13 @@ const PropertyValueNode = (props) => {
|
|
|
38
28
|
children: propertyFormated
|
|
39
29
|
}
|
|
40
30
|
),
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
PropertyValueNodeContentStyled,
|
|
33
|
+
{
|
|
34
|
+
ownerState: {},
|
|
35
|
+
children
|
|
36
|
+
}
|
|
37
|
+
)
|
|
42
38
|
]
|
|
43
39
|
}
|
|
44
40
|
);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { QRImageNodeProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Componente QRImageNode
|
|
4
|
+
*
|
|
5
|
+
* Este componente se utiliza para renderizar un código QR.
|
|
6
|
+
* @param {QRImageNodeProps} props - Propiedades del componente.
|
|
4
7
|
*/
|
|
5
8
|
export declare const QRImageNode: (props: QRImageNodeProps) => 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 { S as SectionNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
|
|
6
5
|
const SectionNode = (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 SectionNode = (props) => {
|
|
|
22
20
|
} = props;
|
|
23
21
|
const { unitSize } = useBase();
|
|
24
22
|
return /* @__PURE__ */ jsx(
|
|
25
|
-
|
|
23
|
+
SectionNodeRootStyled,
|
|
26
24
|
{
|
|
27
|
-
|
|
25
|
+
ownerState: {},
|
|
28
26
|
style: {
|
|
29
27
|
flexDirection: direction,
|
|
30
28
|
gap: getSize(gap, unitSize),
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { TextBoxNodeProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Componente TextBoxNode
|
|
4
|
+
*
|
|
5
|
+
* Este componente se utiliza para renderizar un texto.
|
|
6
|
+
* @param {TextBoxNodeProps} props - Propiedades del componente.
|
|
4
7
|
*/
|
|
5
8
|
export declare const TextBoxNode: (props: TextBoxNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
3
|
-
import {
|
|
4
|
-
import clsx from "clsx";
|
|
3
|
+
import { T as TextBoxNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
|
|
5
4
|
const TextBoxNode = (props) => {
|
|
6
|
-
const { variant = "body", style,
|
|
5
|
+
const { variant = "body", style, textAlign = "start", children } = props;
|
|
7
6
|
const { sourceData } = useBase();
|
|
8
7
|
const textFormated = evaluateWithContext(sourceData, children[1]);
|
|
9
8
|
return /* @__PURE__ */ jsx(
|
|
10
|
-
|
|
9
|
+
TextBoxNodeRootStyled,
|
|
11
10
|
{
|
|
12
|
-
|
|
13
|
-
classes.textBoxNodeRoot,
|
|
14
|
-
className,
|
|
15
|
-
`${classes.textBoxNodeVariant}-${variant}`
|
|
16
|
-
),
|
|
11
|
+
ownerState: { variant },
|
|
17
12
|
style: { textAlign, ...style },
|
|
18
13
|
children: textFormated
|
|
19
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
export declare const sourceData: {
|
|
2
|
+
data: {
|
|
3
|
+
id: number;
|
|
4
|
+
code: string;
|
|
5
|
+
order: {
|
|
6
|
+
id: number;
|
|
7
|
+
due_date: string;
|
|
8
|
+
confirmation_date: string;
|
|
9
|
+
billing_customer_name: string;
|
|
10
|
+
billing_customer_email: string;
|
|
11
|
+
billing_customer_city_name: string;
|
|
12
|
+
billing_customer_state_name: string;
|
|
13
|
+
billing_customer_country_name: string;
|
|
14
|
+
billing_customer_address: string;
|
|
15
|
+
billing_customer_phone_number: string;
|
|
16
|
+
};
|
|
17
|
+
instrument: {
|
|
18
|
+
id: number;
|
|
19
|
+
version: number;
|
|
20
|
+
active: boolean;
|
|
21
|
+
type_name: string;
|
|
22
|
+
magnitude: {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
unit: string;
|
|
26
|
+
symbol: string;
|
|
27
|
+
image_url: string;
|
|
28
|
+
};
|
|
29
|
+
location: string;
|
|
30
|
+
serie: string;
|
|
31
|
+
reference: string;
|
|
32
|
+
manufacturer: string;
|
|
33
|
+
model: string;
|
|
34
|
+
measure_range_min: number;
|
|
35
|
+
measure_range_max: number;
|
|
36
|
+
measure_resolution: number;
|
|
37
|
+
};
|
|
38
|
+
calibration: {
|
|
39
|
+
id: number;
|
|
40
|
+
status: {
|
|
41
|
+
id: number;
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
technician: {
|
|
45
|
+
id: number;
|
|
46
|
+
first_name: string;
|
|
47
|
+
last_name: string;
|
|
48
|
+
};
|
|
49
|
+
started_at: string;
|
|
50
|
+
ended_at: string;
|
|
51
|
+
};
|
|
52
|
+
results: {
|
|
53
|
+
environment_temperature_min_corrected: number;
|
|
54
|
+
environment_temperature_max_corrected: number;
|
|
55
|
+
environment_humidity_min_corrected: number;
|
|
56
|
+
environment_humidity_max_corrected: number;
|
|
57
|
+
points: {
|
|
58
|
+
set_point_value: number;
|
|
59
|
+
avg: number;
|
|
60
|
+
correction: number;
|
|
61
|
+
uncertainty: number;
|
|
62
|
+
coverage_factor: number;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
global_info: {
|
|
67
|
+
domain: {
|
|
68
|
+
name: string;
|
|
69
|
+
slogan: string;
|
|
70
|
+
};
|
|
71
|
+
domain_country: {
|
|
72
|
+
name: string;
|
|
73
|
+
address: string;
|
|
74
|
+
phone: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const dataIncludeDictionary: {
|
|
79
|
+
dictionary: {
|
|
80
|
+
certificate: {
|
|
81
|
+
title: {
|
|
82
|
+
primary: string;
|
|
83
|
+
secondary: string;
|
|
84
|
+
};
|
|
85
|
+
type: {
|
|
86
|
+
primary: string;
|
|
87
|
+
secondary: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
applicant: {
|
|
91
|
+
title: {
|
|
92
|
+
primary: string;
|
|
93
|
+
secondary: string;
|
|
94
|
+
};
|
|
95
|
+
name: {
|
|
96
|
+
primary: string;
|
|
97
|
+
secondary: string;
|
|
98
|
+
};
|
|
99
|
+
address: {
|
|
100
|
+
primary: string;
|
|
101
|
+
secondary: string;
|
|
102
|
+
};
|
|
103
|
+
city: {
|
|
104
|
+
primary: string;
|
|
105
|
+
secondary: string;
|
|
106
|
+
};
|
|
107
|
+
state: {
|
|
108
|
+
primary: string;
|
|
109
|
+
secondary: string;
|
|
110
|
+
};
|
|
111
|
+
country: {
|
|
112
|
+
primary: string;
|
|
113
|
+
secondary: string;
|
|
114
|
+
};
|
|
115
|
+
number: {
|
|
116
|
+
primary: string;
|
|
117
|
+
secondary: string;
|
|
118
|
+
};
|
|
119
|
+
email: {
|
|
120
|
+
primary: string;
|
|
121
|
+
secondary: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
calibrated_instrument: {
|
|
125
|
+
title: {
|
|
126
|
+
primary: string;
|
|
127
|
+
secondary: string;
|
|
128
|
+
};
|
|
129
|
+
thermohygrometer: {
|
|
130
|
+
primary: string;
|
|
131
|
+
secondary: string;
|
|
132
|
+
};
|
|
133
|
+
manufacturer: {
|
|
134
|
+
primary: string;
|
|
135
|
+
secondary: string;
|
|
136
|
+
};
|
|
137
|
+
model: {
|
|
138
|
+
primary: string;
|
|
139
|
+
secondary: string;
|
|
140
|
+
};
|
|
141
|
+
serie: {
|
|
142
|
+
primary: string;
|
|
143
|
+
secondary: string;
|
|
144
|
+
};
|
|
145
|
+
reference: {
|
|
146
|
+
primary: string;
|
|
147
|
+
secondary: string;
|
|
148
|
+
};
|
|
149
|
+
interval_measure: {
|
|
150
|
+
primary: string;
|
|
151
|
+
secondary: string;
|
|
152
|
+
};
|
|
153
|
+
interval_calibration: {
|
|
154
|
+
primary: string;
|
|
155
|
+
secondary: string;
|
|
156
|
+
};
|
|
157
|
+
resolution: {
|
|
158
|
+
primary: string;
|
|
159
|
+
secondary: string;
|
|
160
|
+
};
|
|
161
|
+
location: {
|
|
162
|
+
primary: string;
|
|
163
|
+
secondary: string;
|
|
164
|
+
};
|
|
165
|
+
calibration_site: {
|
|
166
|
+
primary: string;
|
|
167
|
+
secondary: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
method_calibration: {
|
|
171
|
+
title: {
|
|
172
|
+
primary: string;
|
|
173
|
+
secondary: string;
|
|
174
|
+
};
|
|
175
|
+
reception_date: {
|
|
176
|
+
primary: string;
|
|
177
|
+
secondary: string;
|
|
178
|
+
};
|
|
179
|
+
date: {
|
|
180
|
+
primary: string;
|
|
181
|
+
secondary: string;
|
|
182
|
+
};
|
|
183
|
+
issue_date: {
|
|
184
|
+
primary: string;
|
|
185
|
+
secondary: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
calibrated_by: {
|
|
189
|
+
primary: string;
|
|
190
|
+
secondary: string;
|
|
191
|
+
};
|
|
192
|
+
calibrated_by_role: {
|
|
193
|
+
primary: string;
|
|
194
|
+
secondary: string;
|
|
195
|
+
};
|
|
196
|
+
approver_by: {
|
|
197
|
+
primary: string;
|
|
198
|
+
secondary: string;
|
|
199
|
+
};
|
|
200
|
+
approver_by_role: {
|
|
201
|
+
primary: string;
|
|
202
|
+
secondary: string;
|
|
203
|
+
};
|
|
204
|
+
environment_condition: {
|
|
205
|
+
title: {
|
|
206
|
+
primary: string;
|
|
207
|
+
secondary: string;
|
|
208
|
+
};
|
|
209
|
+
min_tempeture: {
|
|
210
|
+
primary: string;
|
|
211
|
+
secondary: string;
|
|
212
|
+
};
|
|
213
|
+
max_tempeture: {
|
|
214
|
+
primary: string;
|
|
215
|
+
secondary: string;
|
|
216
|
+
};
|
|
217
|
+
min_humidity: {
|
|
218
|
+
primary: string;
|
|
219
|
+
secondary: string;
|
|
220
|
+
};
|
|
221
|
+
max_humedity: {
|
|
222
|
+
primary: string;
|
|
223
|
+
secondary: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
traceability_measurements: {
|
|
227
|
+
title: {
|
|
228
|
+
primary: string;
|
|
229
|
+
secondary: string;
|
|
230
|
+
};
|
|
231
|
+
id: {
|
|
232
|
+
primary: string;
|
|
233
|
+
secondary: string;
|
|
234
|
+
};
|
|
235
|
+
certification: {
|
|
236
|
+
primary: string;
|
|
237
|
+
secondary: string;
|
|
238
|
+
};
|
|
239
|
+
laboratory: {
|
|
240
|
+
primary: string;
|
|
241
|
+
secondary: string;
|
|
242
|
+
};
|
|
243
|
+
uncertainty: {
|
|
244
|
+
primary: string;
|
|
245
|
+
secondary: string;
|
|
246
|
+
};
|
|
247
|
+
propertyPatterns: {
|
|
248
|
+
primary: string;
|
|
249
|
+
secondary: string;
|
|
250
|
+
};
|
|
251
|
+
propertyIsothermal: {
|
|
252
|
+
primary: string;
|
|
253
|
+
secondary: string;
|
|
254
|
+
};
|
|
255
|
+
grid: {
|
|
256
|
+
instrument: {
|
|
257
|
+
primary: string;
|
|
258
|
+
secondary: string;
|
|
259
|
+
};
|
|
260
|
+
identification_code: {
|
|
261
|
+
primary: string;
|
|
262
|
+
secondary: string;
|
|
263
|
+
};
|
|
264
|
+
certification_number: {
|
|
265
|
+
primary: string;
|
|
266
|
+
secondary: string;
|
|
267
|
+
};
|
|
268
|
+
laboratory: {
|
|
269
|
+
primary: string;
|
|
270
|
+
secondary: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
measurement_uncertainty: {
|
|
275
|
+
title: {
|
|
276
|
+
primary: string;
|
|
277
|
+
secondary: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
measurement_results: {
|
|
281
|
+
title: {
|
|
282
|
+
primary: string;
|
|
283
|
+
secondary: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
temperature: {
|
|
287
|
+
title: {
|
|
288
|
+
primary: string;
|
|
289
|
+
secondary: string;
|
|
290
|
+
};
|
|
291
|
+
grid: {
|
|
292
|
+
standard_average_temperature: {
|
|
293
|
+
primary: string;
|
|
294
|
+
secondary: string;
|
|
295
|
+
};
|
|
296
|
+
ibc_average_temperature: {
|
|
297
|
+
primary: string;
|
|
298
|
+
secondary: string;
|
|
299
|
+
};
|
|
300
|
+
correction: {
|
|
301
|
+
primary: string;
|
|
302
|
+
secondary: string;
|
|
303
|
+
};
|
|
304
|
+
coverage_factor_k: {
|
|
305
|
+
primary: string;
|
|
306
|
+
secondary: string;
|
|
307
|
+
};
|
|
308
|
+
expanded_uncertainty: {
|
|
309
|
+
primary: string;
|
|
310
|
+
secondary: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
uncertainty_graph: {
|
|
315
|
+
title: {
|
|
316
|
+
primary: string;
|
|
317
|
+
secondary: string;
|
|
318
|
+
};
|
|
319
|
+
message_x: {
|
|
320
|
+
primary: string;
|
|
321
|
+
secondary: string;
|
|
322
|
+
};
|
|
323
|
+
message_y: {
|
|
324
|
+
primary: string;
|
|
325
|
+
secondary: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
humidity_relative: {
|
|
329
|
+
title: {
|
|
330
|
+
primary: string;
|
|
331
|
+
secondary: string;
|
|
332
|
+
};
|
|
333
|
+
grid: {
|
|
334
|
+
standard_average_humidity: {
|
|
335
|
+
primary: string;
|
|
336
|
+
secondary: string;
|
|
337
|
+
};
|
|
338
|
+
standard_average_humidity_ibc: {
|
|
339
|
+
primary: string;
|
|
340
|
+
secondary: string;
|
|
341
|
+
};
|
|
342
|
+
correction: {
|
|
343
|
+
primary: string;
|
|
344
|
+
secondary: string;
|
|
345
|
+
};
|
|
346
|
+
coverage_factor_k: {
|
|
347
|
+
primary: string;
|
|
348
|
+
secondary: string;
|
|
349
|
+
};
|
|
350
|
+
expanded_uncertainty: {
|
|
351
|
+
primary: string;
|
|
352
|
+
secondary: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
observations: {
|
|
357
|
+
primary: string;
|
|
358
|
+
secondary: string;
|
|
359
|
+
};
|
|
360
|
+
end_certificate: {
|
|
361
|
+
primary: string;
|
|
362
|
+
secondary: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
data: {
|
|
366
|
+
id: number;
|
|
367
|
+
code: string;
|
|
368
|
+
order: {
|
|
369
|
+
id: number;
|
|
370
|
+
due_date: string;
|
|
371
|
+
confirmation_date: string;
|
|
372
|
+
billing_customer_name: string;
|
|
373
|
+
billing_customer_email: string;
|
|
374
|
+
billing_customer_city_name: string;
|
|
375
|
+
billing_customer_state_name: string;
|
|
376
|
+
billing_customer_country_name: string;
|
|
377
|
+
billing_customer_address: string;
|
|
378
|
+
billing_customer_phone_number: string;
|
|
379
|
+
};
|
|
380
|
+
instrument: {
|
|
381
|
+
id: number;
|
|
382
|
+
version: number;
|
|
383
|
+
active: boolean;
|
|
384
|
+
type_name: string;
|
|
385
|
+
magnitude: {
|
|
386
|
+
id: number;
|
|
387
|
+
name: string;
|
|
388
|
+
unit: string;
|
|
389
|
+
symbol: string;
|
|
390
|
+
image_url: string;
|
|
391
|
+
};
|
|
392
|
+
location: string;
|
|
393
|
+
serie: string;
|
|
394
|
+
reference: string;
|
|
395
|
+
manufacturer: string;
|
|
396
|
+
model: string;
|
|
397
|
+
measure_range_min: number;
|
|
398
|
+
measure_range_max: number;
|
|
399
|
+
measure_resolution: number;
|
|
400
|
+
};
|
|
401
|
+
calibration: {
|
|
402
|
+
id: number;
|
|
403
|
+
status: {
|
|
404
|
+
id: number;
|
|
405
|
+
name: string;
|
|
406
|
+
};
|
|
407
|
+
technician: {
|
|
408
|
+
id: number;
|
|
409
|
+
first_name: string;
|
|
410
|
+
last_name: string;
|
|
411
|
+
};
|
|
412
|
+
started_at: string;
|
|
413
|
+
ended_at: string;
|
|
414
|
+
};
|
|
415
|
+
results: {
|
|
416
|
+
environment_temperature_min_corrected: number;
|
|
417
|
+
environment_temperature_max_corrected: number;
|
|
418
|
+
environment_humidity_min_corrected: number;
|
|
419
|
+
environment_humidity_max_corrected: number;
|
|
420
|
+
points: {
|
|
421
|
+
set_point_value: number;
|
|
422
|
+
avg: number;
|
|
423
|
+
correction: number;
|
|
424
|
+
uncertainty: number;
|
|
425
|
+
coverage_factor: number;
|
|
426
|
+
}[];
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
global_info: {
|
|
430
|
+
domain: {
|
|
431
|
+
name: string;
|
|
432
|
+
slogan: string;
|
|
433
|
+
};
|
|
434
|
+
domain_country: {
|
|
435
|
+
name: string;
|
|
436
|
+
address: string;
|
|
437
|
+
phone: string;
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypographyVariants } from '@m4l/styles';
|
|
1
|
+
import { Sizes, TypographyVariants } from '@m4l/styles';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { PageNodeProps } from './subcomponents/PageNode/types';
|
|
4
4
|
import { SectionNodeProps } from './subcomponents/SectionNode/types';
|
|
@@ -9,6 +9,10 @@ import { PaperNodeProps } from './subcomponents/PaperNode/types';
|
|
|
9
9
|
import { PropertyValueNodeProps } from './subcomponents/PropertyValueNode/types';
|
|
10
10
|
import { GridNodeProps } from './subcomponents/GridNode/types';
|
|
11
11
|
import { ChartNodeProps } from './subcomponents/ChartNode/types';
|
|
12
|
+
import { Theme } from '@mui/material';
|
|
13
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
14
|
+
import { PRINTING_SYSTEM_KEY_COMPONENT } from './constants';
|
|
15
|
+
import { PrintingSystemSlots } from './slots/PrintingSystemEnum';
|
|
12
16
|
export interface BaseProviderPrintSystem {
|
|
13
17
|
pageId: number;
|
|
14
18
|
unitSize: string;
|
|
@@ -82,6 +86,18 @@ export interface RootNode {
|
|
|
82
86
|
export interface PageNode extends BaseNode, PaddingProperties, SizeProperty {
|
|
83
87
|
type: 'page';
|
|
84
88
|
gap?: number | string;
|
|
89
|
+
rows?: Array<{
|
|
90
|
+
key: string;
|
|
91
|
+
cols: Array<{
|
|
92
|
+
key: string;
|
|
93
|
+
cells: Array<{
|
|
94
|
+
key: string;
|
|
95
|
+
component: string;
|
|
96
|
+
props: Record<string, any>;
|
|
97
|
+
styles?: CSSProperties;
|
|
98
|
+
}>;
|
|
99
|
+
}>;
|
|
100
|
+
}>;
|
|
85
101
|
}
|
|
86
102
|
/**
|
|
87
103
|
* SectionNode: Componente para distrubir elementos de NodeType en fila.
|
|
@@ -213,8 +229,17 @@ export interface PrintingSystemProps {
|
|
|
213
229
|
templateData: RootNode;
|
|
214
230
|
sourceData: any;
|
|
215
231
|
className?: string;
|
|
232
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
233
|
+
variant?: Extract<TypographyVariants, 'body' | 'bodyDens' | 'subtitle' | 'subtitleDens' | 'title' | 'titleDens' | 'h1' | 'h3'>;
|
|
234
|
+
dataTestId?: string;
|
|
216
235
|
}
|
|
217
236
|
export interface PrintingSystemRef {
|
|
218
237
|
GoPrint: () => void;
|
|
219
238
|
}
|
|
239
|
+
export type printingSystemType = keyof typeof PrintingSystemSlots;
|
|
240
|
+
export type PrintingSystemOwnerState = Pick<PrintingSystemProps, 'size'> & {
|
|
241
|
+
variant?: PrintingSystemProps['variant'];
|
|
242
|
+
size?: PrintingSystemProps['size'];
|
|
243
|
+
};
|
|
244
|
+
export type PrintingSystemStyles = OverridesStyleRules<printingSystemType, typeof PRINTING_SYSTEM_KEY_COMPONENT, Theme>;
|
|
220
245
|
export {};
|
|
@@ -10,9 +10,9 @@ export {
|
|
|
10
10
|
CONTAINER_BTN_ANCHORED as C,
|
|
11
11
|
ITEM_ACTIVE as I,
|
|
12
12
|
LIST_MENU_ITEM as L,
|
|
13
|
-
|
|
13
|
+
PATH_ARROW_RIGHT_ICON as P,
|
|
14
14
|
SIDEBAR_KEY_COMPONENT as S,
|
|
15
15
|
ITEM_IN_TREE_ACTIVE as a,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
PATH_ICONS as b,
|
|
17
|
+
PATH_ARROW_DOWN_ICON as c
|
|
18
18
|
};
|
|
@@ -22,7 +22,9 @@ export declare enum SideBarFooterSlots {
|
|
|
22
22
|
containerFooter = "containerFooter"
|
|
23
23
|
}
|
|
24
24
|
export declare enum ContentComponentSlots {
|
|
25
|
-
contentComponentRoot = "contentComponentRoot"
|
|
25
|
+
contentComponentRoot = "contentComponentRoot",
|
|
26
|
+
contentComponentHide = "contentComponentHide",
|
|
27
|
+
containerComponent = "containerComponent"
|
|
26
28
|
}
|
|
27
29
|
export declare enum ContainerMenuItemsMainSlots {
|
|
28
30
|
containerMenuItems = "containerMenuItems"
|
|
@@ -28,6 +28,8 @@ var SideBarFooterSlots = /* @__PURE__ */ ((SideBarFooterSlots2) => {
|
|
|
28
28
|
})(SideBarFooterSlots || {});
|
|
29
29
|
var ContentComponentSlots = /* @__PURE__ */ ((ContentComponentSlots2) => {
|
|
30
30
|
ContentComponentSlots2["contentComponentRoot"] = "contentComponentRoot";
|
|
31
|
+
ContentComponentSlots2["contentComponentHide"] = "contentComponentHide";
|
|
32
|
+
ContentComponentSlots2["containerComponent"] = "containerComponent";
|
|
31
33
|
return ContentComponentSlots2;
|
|
32
34
|
})(ContentComponentSlots || {});
|
|
33
35
|
var ContainerMenuItemsMainSlots = /* @__PURE__ */ ((ContainerMenuItemsMainSlots2) => {
|