@m4l/components 9.59.1-beta-hotfix-semantic-width-dynamicform.0 → 9.59.1-beta-pkg-758-update-screen-device.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/components/CheckableList/slots/styled.d.ts +3 -3
  2. package/components/DynamicForm/DynamicForm.styles.d.ts.map +1 -1
  3. package/components/DynamicForm/DynamicForm.styles.js +72 -165
  4. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/numberInputStrategy.d.ts.map +1 -1
  5. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/numberInputStrategy.js +11 -21
  6. package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/textFieldStrategy.js +38 -38
  7. package/components/DynamicForm/helpers/resolveFieldComponent/types.d.ts +1 -1
  8. package/components/DynamicForm/helpers/resolveFieldContractAliases/resolveFieldContractAliases.d.ts +5 -1
  9. package/components/DynamicForm/helpers/resolveFieldContractAliases/resolveFieldContractAliases.d.ts.map +1 -1
  10. package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.d.ts.map +1 -1
  11. package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.js +120 -132
  12. package/components/DynamicForm/types.d.ts +14 -13
  13. package/components/DynamicForm/types.d.ts.map +1 -1
  14. package/components/Label/Label.d.ts.map +1 -1
  15. package/components/Label/Label.js +26 -40
  16. package/components/Label/Label.styles.d.ts.map +1 -1
  17. package/components/Label/Label.styles.js +53 -59
  18. package/components/Label/types.d.ts +0 -2
  19. package/components/Label/types.d.ts.map +1 -1
  20. package/components/PropertyValue/PropertyValue.d.ts.map +1 -1
  21. package/components/PropertyValue/PropertyValue.js +57 -82
  22. package/components/PropertyValue/PropertyValue.styles.d.ts.map +1 -1
  23. package/components/PropertyValue/PropertyValue.styles.js +100 -100
  24. package/components/PropertyValue/constants.d.ts +0 -1
  25. package/components/PropertyValue/constants.d.ts.map +1 -1
  26. package/components/PropertyValue/constants.js +4 -10
  27. package/components/PropertyValue/types.d.ts +1 -5
  28. package/components/PropertyValue/types.d.ts.map +1 -1
  29. package/components/Stepper/helpers/focusFirstErrorField/index.d.ts +5 -6
  30. package/components/Stepper/helpers/focusFirstErrorField/index.d.ts.map +1 -1
  31. package/components/Stepper/helpers/focusFirstErrorField/index.js +10 -8
  32. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  33. package/package.json +5 -5
  34. package/components/DynamicForm/helpers/resolveAdaptiveFieldLayout/resolveAdaptiveFieldLayout.d.ts +0 -49
  35. package/components/DynamicForm/helpers/resolveAdaptiveFieldLayout/resolveAdaptiveFieldLayout.d.ts.map +0 -1
  36. package/components/DynamicForm/helpers/resolveAdaptiveFieldLayout/resolveAdaptiveFieldLayout.js +0 -174
  37. package/components/PropertyValue/semanticWidth.d.ts +0 -7
  38. package/components/PropertyValue/semanticWidth.d.ts.map +0 -1
  39. package/components/PropertyValue/semanticWidth.js +0 -31
@@ -1,25 +1,44 @@
1
1
  import { getPropertyByString as n } from "@m4l/core";
2
2
  import { ICON_SVG_SHAPE_SELECTOR as s } from "@m4l/base";
3
3
  import { getSizeStyles as d } from "../../utils/getSizeStyles/getSizeStyles.js";
4
- import { resolveSemanticWidthPx as p, isFullRowSemanticWidth as b } from "./semanticWidth.js";
5
- const l = "container", h = {
4
+ const l = "container", g = {
6
5
  /**
7
6
  * Property Value Root Styles
8
7
  */
9
- Root: ({ theme: o, ownerState: i }) => {
10
- const r = (a) => ({
11
- maxWidth: `${a}px`,
12
- minWidth: `${a}px`,
13
- [`@container ${l} (max-width: ${a - 1}px)`]: {
8
+ Root: ({ theme: i, ownerState: r }) => {
9
+ const o = (t) => ({
10
+ maxWidth: `${t}px`,
11
+ minWidth: `${t}px`,
12
+ [`@container ${l} (max-width: ${t - 1}px)`]: {
14
13
  minWidth: "100px",
15
14
  maxWidth: "100%",
16
15
  width: "100%"
17
16
  }
18
- }), e = p(i?.semanticWidth), t = i?.semanticWidth && typeof e == "number" ? r(e) : {}, c = i?.semanticWidth && b(i.semanticWidth) ? {
19
- maxWidth: "100%",
20
- width: "100%",
21
- minWidth: i.semanticWidth === "bigDescription" ? "100px" : "0"
22
- } : {};
17
+ }), e = {
18
+ email: o(400),
19
+ shortName: o(90),
20
+ mediumName: o(260),
21
+ bigName: o(520),
22
+ shortId: o(44),
23
+ mediumId: o(60),
24
+ bigId: o(200),
25
+ shortDescription: o(796),
26
+ mediumDescription: o(1500),
27
+ bigDescription: {
28
+ maxWidth: "100%",
29
+ width: "100%",
30
+ minWidth: "100px"
31
+ },
32
+ shortNumber: o(50),
33
+ mediumNumber: o(60),
34
+ bigNumber: o(162),
35
+ percentNumber: o(50),
36
+ fullWidth: {
37
+ maxWidth: "100%",
38
+ width: "100%",
39
+ minWidth: "0"
40
+ }
41
+ }, a = r?.semanticWidth && e[r?.semanticWidth] ? e[r?.semanticWidth] : {};
23
42
  return {
24
43
  containerName: l,
25
44
  containerType: "inline-size",
@@ -27,21 +46,21 @@ const l = "container", h = {
27
46
  flexDirection: "row",
28
47
  justifyContent: "flex-start",
29
48
  alignItems: "center",
30
- gap: o.vars.size.baseSpacings.sp2,
31
- width: i?.semanticWidth ? "auto" : "200px",
32
- height: i?.valueHeight ? i?.valueHeight : "auto",
33
- color: o.vars.palette.text.primary,
49
+ gap: i.vars.size.baseSpacings.sp2,
50
+ width: r?.semanticWidth ? "auto" : "200px",
51
+ height: r?.valueHeight ? r?.valueHeight : "auto",
52
+ color: i.vars.palette.text.primary,
34
53
  /* [`@container ${CONTAINER_QUERY_NAME} (min-width: 0px) and (max-width: 400px)`]: {
35
54
  flexDirection: 'column',
36
55
  }, */
37
- ...o.generalSettings.isMobile && {
56
+ ...i.generalSettings.isMobile && {
38
57
  flexDirection: "column"
39
58
  },
40
- ...i?.borderStyle !== "none" && {
41
- paddingBottom: o.vars.size.baseSpacings.sp2
59
+ ...r?.borderStyle !== "none" && {
60
+ paddingBottom: i.vars.size.baseSpacings.sp2
42
61
  },
43
62
  // Estilos para borderStyle
44
- ...i?.borderStyle === "dashed" && {
63
+ ...r?.borderStyle === "dashed" && {
45
64
  // Para dashed, usamos un pseudo-elemento para controlar la longitud de los guiones
46
65
  position: "relative",
47
66
  overflow: "visible",
@@ -56,8 +75,8 @@ const l = "container", h = {
56
75
  width: "100%",
57
76
  backgroundImage: `repeating-linear-gradient(
58
77
  to right,
59
- ${o.vars.palette.border.secondary} 10px,
60
- ${o.vars.palette.border.secondary} 20px,
78
+ ${i.vars.palette.border.secondary} 10px,
79
+ ${i.vars.palette.border.secondary} 20px,
61
80
  transparent 20px,
62
81
  transparent 32px
63
82
  )`,
@@ -66,119 +85,100 @@ const l = "container", h = {
66
85
  pointerEvents: "none"
67
86
  }
68
87
  },
69
- ...i?.borderStyle === "solid" && {
88
+ ...r?.borderStyle === "solid" && {
70
89
  borderTop: 0,
71
90
  borderLeft: 0,
72
91
  borderRight: 0,
73
- borderBottom: o.vars.size.borderStroke.container,
74
- borderColor: o.vars.palette.border.secondary,
92
+ borderBottom: i.vars.size.borderStroke.container,
93
+ borderColor: i.vars.palette.border.secondary,
75
94
  borderStyle: "solid"
76
95
  },
77
- ...i?.borderStyle === "none" && {
96
+ ...r?.borderStyle === "none" && {
78
97
  border: "unset"
79
98
  },
80
- minHeight: o.vars.size.baseSpacings.sp5,
81
- ...t,
82
- ...c
99
+ minHeight: i.vars.size.baseSpacings.sp5,
100
+ ...a
83
101
  };
84
102
  },
85
103
  /**
86
104
  * Property Styles
87
105
  */
88
- name: ({ theme: o, ownerState: i }) => {
89
- const r = typeof i?.labelWidth == "number" ? `${i.labelWidth}px` : i?.labelWidth;
90
- return {
91
- display: "flex",
92
- alignItems: "center",
93
- fontSize: o.typography.body2.fontSize,
94
- color: o.vars.palette.text.primary,
95
- gap: o.vars.size.baseSpacings.sp1,
96
- overflow: i?.labelOverflow === "visible" ? "visible" : "hidden",
97
- // The name slot hugs its content instead of stretching, so the rendered label width is the
98
- // real one rather than whatever the consumer estimated. `labelWidth` survives as the
99
- // ceiling: it still clamps the slot, it just no longer dictates its width.
100
- maxWidth: r ?? "100%",
101
- width: "fit-content"
102
- };
103
- },
106
+ name: ({ theme: i }) => ({
107
+ display: "flex",
108
+ alignItems: "center",
109
+ fontSize: i.typography.body2.fontSize,
110
+ color: i.vars.palette.text.primary,
111
+ gap: i.vars.size.baseSpacings.sp1,
112
+ overflow: "hidden",
113
+ width: "100%"
114
+ }),
104
115
  /**
105
116
  * Value Styles (Form and No Form Combined)
106
117
  */
107
- value: ({ theme: o, ownerState: i }) => {
108
- const r = typeof i?.controlWidth == "number" ? `${i.controlWidth}px` : void 0;
109
- return {
110
- width: r ?? (i?.direction === "column" ? "100%" : "fit-content"),
111
- display: "flex",
112
- justifyContent: "flex-start",
113
- alignItems: "flex-start",
114
- height: i?.valueHeight ? i?.valueHeight : "auto",
115
- whiteSpace: "nowrap",
116
- ...i?.isForm && {
117
- gap: o.vars.size.baseSpacings["sp0-5"],
118
- flexDirection: "column"
119
- },
120
- ...r && {
121
- maxWidth: "100%",
122
- "& > *": {
123
- width: "100%",
124
- maxWidth: "100%",
125
- minWidth: 0
126
- }
127
- }
128
- };
129
- },
118
+ value: ({ theme: i, ownerState: r }) => ({
119
+ width: r?.direction === "column" ? "100%" : "fit-content",
120
+ display: "flex",
121
+ justifyContent: "flex-start",
122
+ alignItems: "flex-start",
123
+ height: r?.valueHeight ? r?.valueHeight : "auto",
124
+ whiteSpace: "nowrap",
125
+ ...r?.isForm && {
126
+ gap: i.vars.size.baseSpacings["sp0-5"],
127
+ flexDirection: "column"
128
+ }
129
+ }),
130
130
  /**
131
131
  * Container Start Adornment Styles
132
132
  */
133
- containerStartAdornment: ({ theme: o, ownerState: i }) => {
134
- const r = i?.iconColor === "text.primary" || i?.iconColor === "text.secondary" || i?.iconColor === "text.disabled", e = r ? n(o.vars.palette, String(i?.iconColor), o.vars.palette.text.primary) : n(o.vars.palette.chips, String(i?.iconColor), o.vars.palette.chips.primary)?.contained;
133
+ containerStartAdornment: ({ theme: i, ownerState: r }) => {
134
+ const o = r?.iconColor === "text.primary" || r?.iconColor === "text.secondary" || r?.iconColor === "text.disabled", e = o ? n(i.vars.palette, String(r?.iconColor), i.vars.palette.text.primary) : n(i.vars.palette.chips, String(r?.iconColor), i.vars.palette.chips.primary)?.contained;
135
135
  return {
136
136
  "&&&": {
137
137
  display: "flex",
138
138
  alignItems: "center",
139
139
  justifyContent: "center",
140
140
  overflow: "hidden",
141
- borderRadius: o.vars.size.borderRadius["r1-5"],
141
+ borderRadius: i.vars.size.borderRadius["r1-5"],
142
142
  ...d(
143
- o,
144
- i?.size || "medium",
143
+ i,
144
+ r?.size || "medium",
145
145
  "base",
146
- (t) => ({
147
- height: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`,
148
- width: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`,
149
- minHeight: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`,
150
- minWidth: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`
146
+ (a) => ({
147
+ height: `calc(${a} + ${i.vars.size.baseSpacings.sp2})`,
148
+ width: `calc(${a} + ${i.vars.size.baseSpacings.sp2})`,
149
+ minHeight: `calc(${a} + ${i.vars.size.baseSpacings.sp2})`,
150
+ minWidth: `calc(${a} + ${i.vars.size.baseSpacings.sp2})`
151
151
  })
152
152
  ),
153
153
  // variente de icono en modalidad outlined o containedOpacity
154
- ...(i?.iconVariant === "containedOpacity" || i?.iconVariant === "outlined") && {
155
- ...i?.iconVariant === "outlined" && {
156
- border: o.vars.size.borderStroke.container,
157
- borderColor: r ? o.vars.palette.border.disabled : e?.backgroundColor,
154
+ ...(r?.iconVariant === "containedOpacity" || r?.iconVariant === "outlined") && {
155
+ ...r?.iconVariant === "outlined" && {
156
+ border: i.vars.size.borderStroke.container,
157
+ borderColor: o ? i.vars.palette.border.disabled : e?.backgroundColor,
158
158
  backgroundColor: "transparent"
159
159
  },
160
- ...i?.iconVariant === "containedOpacity" && {
161
- backgroundColor: r ? o.vars.palette.border.disabled : e?.backgroundColor
160
+ ...r?.iconVariant === "containedOpacity" && {
161
+ backgroundColor: o ? i.vars.palette.border.disabled : e?.backgroundColor
162
162
  },
163
163
  // icon mask strategy
164
164
  "& .M4LIcon-icon": {
165
- backgroundColor: r ? e : e?.color
165
+ backgroundColor: o ? e : e?.color
166
166
  },
167
167
  // 🧪 Experimental m4l/icons strategy
168
168
  [s]: {
169
- fill: r ? e : e?.color,
169
+ fill: o ? e : e?.color,
170
170
  stroke: "none"
171
171
  }
172
172
  },
173
- ...i?.iconVariant === "text" && {
173
+ ...r?.iconVariant === "text" && {
174
174
  backgroundColor: "transparent",
175
175
  // icon mask strategy
176
176
  "& .M4LIcon-icon": {
177
- backgroundColor: r ? e : e?.color
177
+ backgroundColor: o ? e : e?.color
178
178
  },
179
179
  // 🧪 Experimental m4l/icons strategy
180
180
  [s]: {
181
- fill: r ? e : e?.color,
181
+ fill: o ? e : e?.color,
182
182
  stroke: "none"
183
183
  }
184
184
  }
@@ -188,33 +188,33 @@ const l = "container", h = {
188
188
  /**
189
189
  * Container Property And Value Styles
190
190
  */
191
- containerPropertyAndValue: ({ theme: o, ownerState: i }) => ({
191
+ containerPropertyAndValue: ({ theme: i, ownerState: r }) => ({
192
192
  display: "flex",
193
193
  justifyContent: "space-between",
194
- overflow: i?.labelOverflow === "visible" ? "visible" : "hidden",
195
- flexDirection: i?.direction || "row",
196
- borderColor: o.vars.palette.border.secondary,
194
+ overflow: "hidden",
195
+ flexDirection: r?.direction || "row",
196
+ borderColor: i.vars.palette.border.secondary,
197
197
  width: "100%",
198
- height: i?.valueHeight ? i?.valueHeight : "auto",
198
+ height: r?.valueHeight ? r?.valueHeight : "auto",
199
199
  "&&& .M4LLabel-root": {
200
200
  width: "auto"
201
201
  },
202
- ...i?.direction === "column" ? {
203
- gap: o.vars.size.baseSpacings["sp0-5"],
202
+ ...r?.direction === "column" ? {
203
+ gap: i.vars.size.baseSpacings["sp0-5"],
204
204
  alignItems: "flex-start"
205
205
  } : {
206
- gap: o.vars.size.baseSpacings.sp4,
206
+ gap: i.vars.size.baseSpacings.sp4,
207
207
  alignItems: "center"
208
208
  }
209
209
  }),
210
210
  /**
211
211
  * Typography Value Styles
212
212
  */
213
- typographyValue: ({ ownerState: o }) => ({
213
+ typographyValue: ({ ownerState: i }) => ({
214
214
  wordBreak: "break-word",
215
- whiteSpace: o?.direction === "column" ? "normal" : "nowrap"
215
+ whiteSpace: i?.direction === "column" ? "normal" : "nowrap"
216
216
  })
217
217
  };
218
218
  export {
219
- h as propertyValueStyles
219
+ g as propertyValueStyles
220
220
  };
@@ -2,5 +2,4 @@ export declare const COMPONENT_PREFIX = "m4l-property-value";
2
2
  export declare const PREFIX_TEST_ATTRIBUTE = "data-testid";
3
3
  export declare const TEST_PROPS_DATA = "m4l-property-value-data";
4
4
  export declare const PROPERTY_VALUE_KEY_COMPONENT = "M4LPropertyValue";
5
- export declare const PROPERTY_VALUE_CLASSNAMES: Record<"name" | "value" | "Root" | "containerStartAdornment" | "containerPropertyAndValue" | "typographyValue", string>;
6
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AACnD,eAAO,MAAM,eAAe,4BAA6B,CAAC;AAC1D,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,eAAO,MAAM,yBAAyB,yHAGrC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AACnD,eAAO,MAAM,eAAe,4BAA6B,CAAC;AAC1D,eAAO,MAAM,4BAA4B,qBAAqB,CAAC"}
@@ -1,12 +1,6 @@
1
- import { getComponentClasses as o } from "../../utils/getComponentSlotRoot.js";
2
- import { PropertyValueSlots as t } from "./slots/PropertyValueEnum.js";
3
- const r = "m4l-property-value", p = `${r}-data`, P = "M4LPropertyValue", s = o(
4
- P,
5
- t
6
- );
1
+ const P = "m4l-property-value", t = `${P}-data`, E = "M4LPropertyValue";
7
2
  export {
8
- r as COMPONENT_PREFIX,
9
- s as PROPERTY_VALUE_CLASSNAMES,
10
- P as PROPERTY_VALUE_KEY_COMPONENT,
11
- p as TEST_PROPS_DATA
3
+ P as COMPONENT_PREFIX,
4
+ E as PROPERTY_VALUE_KEY_COMPONENT,
5
+ t as TEST_PROPS_DATA
12
6
  };
@@ -80,10 +80,6 @@ interface PropertyValueBaseProps extends PropertyProps, ValueProps, Omit<LabelPr
80
80
  * Define el ancho semántico del componente según el contenido.
81
81
  */
82
82
  semanticWidth?: SemanticWidthOptions;
83
- /** Optional width used by adaptive form labels without changing the control width. */
84
- labelWidth?: number | string;
85
- /** Optional width used to keep form controls fixed to their backend semantic width. */
86
- controlWidth?: number;
87
83
  /**
88
84
  * Propiedad de tamaño para el componente `PropertyValue`.
89
85
  */
@@ -193,7 +189,7 @@ export type PropertyValueProps = PropertyValueWithStartAdornment | PropertyValue
193
189
  /**
194
190
  * Estado del propietario para el componente `PropertyValue`, utilizado para personalizar estilos y comportamientos.
195
191
  */
196
- export interface PropertyVaLueOwnerState extends Pick<PropertyValueBaseProps, 'controlWidth' | 'disabled' | 'labelOverflow' | 'labelWidth' | 'propertyWidth' | 'semanticWidth' | 'valueHeight'> {
192
+ export interface PropertyVaLueOwnerState extends Pick<PropertyValueBaseProps, 'disabled' | 'semanticWidth' | 'valueHeight' | 'propertyWidth'> {
197
193
  /**
198
194
  * Indica si el componente está en modo formulario.
199
195
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AACrE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAE5B;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AACD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,WAAW,GACX,YAAY,GACZ,SAAS,GACT,SAAS,GACT,UAAU,GACV,OAAO,GACP,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,WAAW,GACX,eAAe,GACf,WAAW,CAAC;AAChB;;GAEG;AACH,UAAU,sBACR,SAAQ,aAAa,EACrB,UAAU,EACV,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,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,EAAE,KAAK,CAAC;CACnB;AAED;;GAEG;AACH,KAAK,+BAA+B,GAChC,mCAAmC,GACnC,sCAAsC,GACtC,wCAAwC,CAAC;AAE7C;;GAEG;AACH,UAAU,kCAAmC,SAAQ,sBAAsB;IACzE;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,kBAAkB,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;AACtG;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,sBAAsB,EACpB,cAAc,GACd,UAAU,GACV,eAAe,GACf,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,CAChB;IACD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAChD;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC7B,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CACzF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,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;AACH,MAAM,MAAM,kBAAkB,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;AACtG;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,eAAe,GAAG,aAAa,GAAG,eAAe,CAAC;IAC3I;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAChD;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC7B,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CACzF"}
@@ -1,11 +1,10 @@
1
1
  import { FieldValues, UseFormSetFocus, UseFormGetFieldState } from 'react-hook-form';
2
2
  /**
3
- * Enfoca el primer campo con error y hace scroll suave hacia él.
4
- * Usa setFocus de react-hook-form que internamente tiene los refs registrados
5
- * por los componentes Controller.
6
- * @param fieldsToValidate - Array de nombres de campos a verificar (en orden de prioridad)
7
- * @param getFieldState - Función getFieldState de useFormContext() para obtener estado actualizado
8
- * @param setFocus - Función setFocus de useFormContext()
3
+ * Focuses the first field with an error and smoothly scrolls to it.
4
+ * Uses react-hook-form's registered Controller refs through setFocus.
5
+ * @param fieldsToValidate - Field names to check, ordered by priority.
6
+ * @param getFieldState - useFormContext() getFieldState function for current field state.
7
+ * @param setFocus - useFormContext() setFocus function.
9
8
  */
10
9
  export declare function focusFirstErrorField(fieldsToValidate: string[], getFieldState: UseFormGetFieldState<FieldValues>, setFocus: UseFormSetFocus<FieldValues>): Promise<void>;
11
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Stepper/helpers/focusFirstErrorField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAarF;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,EAAE,oBAAoB,CAAC,WAAW,CAAC,EAChD,QAAQ,EAAE,eAAe,CAAC,WAAW,CAAC,GACrC,OAAO,CAAC,IAAI,CAAC,CA0Bf"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/Stepper/helpers/focusFirstErrorField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAYrF;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,EAAE,oBAAoB,CAAC,WAAW,CAAC,EAChD,QAAQ,EAAE,eAAe,CAAC,WAAW,CAAC,GACrC,OAAO,CAAC,IAAI,CAAC,CAoCf"}
@@ -1,11 +1,13 @@
1
- import { delay as t } from "../delay/index.js";
1
+ import { delay as o } from "../delay/index.js";
2
2
  import { isElementInViewport as r } from "../isElementInViewport/index.js";
3
- const c = 0, l = 50;
4
- async function d(o, n, i) {
5
- await t(c);
6
- for (const e of o)
7
- if (n(e).error) {
8
- i(e, { shouldSelect: !0 }), await t(l), typeof document < "u" && document.activeElement && !r(document.activeElement) && document.activeElement.scrollIntoView({
3
+ const i = 0, a = 50;
4
+ async function s(c, l, n) {
5
+ await o(i);
6
+ for (const e of c)
7
+ if (l(e).error) {
8
+ n(e, { shouldSelect: !0 }), await o(a), (typeof document > "u" ? null : document.activeElement)?.getAttribute("name") !== e && (n(e, { shouldSelect: !0 }), await o(i));
9
+ const t = typeof document > "u" ? null : document.activeElement;
10
+ t && !r(t) && t.scrollIntoView({
9
11
  behavior: "smooth",
10
12
  block: "center"
11
13
  });
@@ -13,5 +15,5 @@ async function d(o, n, i) {
13
15
  }
14
16
  }
15
17
  export {
16
- d as focusFirstErrorField
18
+ s as focusFirstErrorField
17
19
  };
@@ -1,7 +1,7 @@
1
1
  export declare const RHFCheckboxRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
2
2
  ownerState?: (Partial<import('..').RHFCheckBoxOwnerState> & Record<string, unknown>) | undefined;
3
3
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
- export declare const CheckBoxStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../extended/mui/CheckBox/types').CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "symbol" | "color" | "content" | "translate" | "error" | "action" | "classes" | "children" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "value" | "indeterminate" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "skeletonWidth" | "htmlFor" | keyof import('react').RefAttributes<HTMLButtonElement> | "mandatory" | "required" | "readOnly" | "inputProps" | "inputRef" | "helperMessage" | "labelOverflow" | "mandatoryMessage" | "checkedIcon" | "indeterminateIcon" | "inlineText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
4
+ export declare const CheckBoxStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../extended/mui/CheckBox/types').CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "symbol" | "color" | "content" | "translate" | "error" | "action" | "classes" | "children" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "value" | "indeterminate" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "skeletonWidth" | "htmlFor" | keyof import('react').RefAttributes<HTMLButtonElement> | "mandatory" | "required" | "readOnly" | "inputProps" | "inputRef" | "helperMessage" | "mandatoryMessage" | "checkedIcon" | "indeterminateIcon" | "inlineText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
5
5
  ownerState?: (Partial<import('..').RHFCheckBoxOwnerState> & Record<string, unknown>) | undefined;
6
6
  }, {}, {}>;
7
7
  export declare const ContainerCheckTypography: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.59.1-beta-hotfix-semantic-width-dynamicform.0",
3
+ "version": "9.59.1-beta-pkg-758-update-screen-device.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -54,18 +54,18 @@
54
54
  "nprogress": "0.2.0",
55
55
  "react-transition-group": "4.4.5",
56
56
  "@tanstack/react-virtual": "3.13.23",
57
- "react-rnd": "10.5.2",
57
+ "@mui/x-date-pickers": "6.20.2",
58
58
  "react-color": "2.19.3",
59
+ "react-dropzone": "14.4.1",
59
60
  "react-draggable": "4.5.0",
60
- "@mui/x-date-pickers": "6.20.2",
61
+ "react-rnd": "10.5.2",
61
62
  "react-spinners": "0.13.8",
62
- "react-dropzone": "14.4.1",
63
63
  "chart.js": "4.5.1",
64
64
  "chartjs-chart-error-bars": "4.4.5",
65
65
  "qrcode.react": "3.2.0",
66
66
  "simplebar-react": "3.2.6",
67
- "react-resizable-panels": "2.1.9",
68
67
  "react-simple-code-editor": "0.14.1",
68
+ "react-resizable-panels": "2.1.9",
69
69
  "react-data-grid": "7.0.0-beta.47",
70
70
  "react-dnd": "16.0.1",
71
71
  "react-dnd-html5-backend": "16.0.1",
@@ -1,49 +0,0 @@
1
- import { SemanticWidthOptions } from '../../../PropertyValue/types';
2
- type AdaptiveFieldLayoutSize = 'small' | 'medium';
3
- export interface EstimateLabelWidthPxParams {
4
- hasHelperMessage?: boolean;
5
- label: string;
6
- mandatory?: boolean;
7
- size: AdaptiveFieldLayoutSize;
8
- }
9
- export interface ResolveAdaptiveFieldLayoutParams extends EstimateLabelWidthPxParams {
10
- requestedSemanticWidth?: SemanticWidthOptions | null;
11
- }
12
- export interface AdaptiveFieldLayout {
13
- controlWidth?: number;
14
- estimatedLabelWidth: number;
15
- gridColumnSpan: number;
16
- isFullWidth: boolean;
17
- labelWidth?: number;
18
- requestedSemanticWidth?: SemanticWidthOptions | null;
19
- wrapperWidth?: number;
20
- }
21
- export interface SemanticGridColumnBreakpoint {
22
- columns: number;
23
- maxContainerWidth: number;
24
- }
25
- export declare const DYNAMIC_FORM_SEMANTIC_GRID_BASE_COLUMN_WIDTH = 37;
26
- export declare const DYNAMIC_FORM_SEMANTIC_GRID_COLUMN_GAP = 16;
27
- export declare const DYNAMIC_FORM_SEMANTIC_GRID_MAX_COLUMNS = 24;
28
- export declare const DYNAMIC_FORM_SEMANTIC_GRID_SPAN_PRECISION_THRESHOLD = 0.06;
29
- export declare const DYNAMIC_FORM_SEMANTIC_GRID_COLUMN_BREAKPOINTS: readonly SemanticGridColumnBreakpoint[];
30
- /** Estimate the visual width needed by a single-line DynamicForm label. */
31
- export declare function estimateLabelWidthPx(params: EstimateLabelWidthPxParams): number;
32
- /** Resolve wrapper, label, and control widths without replacing the backend semantic width. */
33
- export declare function resolveAdaptiveFieldLayout(params: ResolveAdaptiveFieldLayoutParams): AdaptiveFieldLayout;
34
- /** Resolve the precise adaptive wrapper width allowed for a DynamicForm field. */
35
- export declare function resolveAdaptiveFieldLayoutVisualTrackWidth(requiredWidth: number): number | undefined;
36
- /** Resolve how many semantic grid columns a field needs to contain its visual width. */
37
- export declare function resolveSemanticGridFieldColumnSpan(wrapperWidth: number, minimumExactWidth?: number): number;
38
- /** Clamp a field span to the column count available in the current grid breakpoint. */
39
- export declare function resolveSemanticGridSpanForColumnCount(fieldColumnSpan: number, columnCount: number): number;
40
- /** Resolve the approximate rendered width of a semantic grid span. */
41
- export declare function resolveSemanticGridSpanWidth(columnSpan: number): number;
42
- /** Resolve the rendered width of a semantic grid span for an actual container width. */
43
- export declare function resolveSemanticGridSpanWidthForContainer(columnSpan: number, columnCount: number, containerWidth: number): number;
44
- /** Resolve the minimum container width required for a span to contain a field. */
45
- export declare function resolveSemanticGridContainerWidthForSpan(requiredWidth: number, columnSpan: number, columnCount: number): number;
46
- /** Resolve the smallest field span that can contain a width in the active container. */
47
- export declare function resolveSemanticGridSpanForContainerWidth(requiredWidth: number, columnCount: number, containerWidth: number): number;
48
- export {};
49
- //# sourceMappingURL=resolveAdaptiveFieldLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveAdaptiveFieldLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicForm/helpers/resolveAdaptiveFieldLayout/resolveAdaptiveFieldLayout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,KAAK,uBAAuB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAkClD,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,MAAM,WAAW,gCACf,SAAQ,0BAA0B;IAClC,sBAAsB,CAA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