@widergy/energy-ui 3.157.0 → 3.158.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.
package/CHANGELOG.md CHANGED
@@ -1,14 +1,25 @@
1
- # [3.157.0](https://github.com/widergy/energy-ui/compare/v3.156.0...v3.157.0) (2026-05-15)
1
+ # [3.158.0](https://github.com/widergy/energy-ui/compare/v3.157.1...v3.158.0) (2026-05-19)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * lint ([17b0e7a](https://github.com/widergy/energy-ui/commit/17b0e7a040c4ebe7502e090cbc5de07ddfd173d0))
6
+ * [BRILLA-294] keep attachmentlist clean on load ([#799](https://github.com/widergy/energy-ui/issues/799)) ([02e7554](https://github.com/widergy/energy-ui/commit/02e75545252df8f5ca2e501c5f7ae0afb0fd5f6f))
7
7
 
8
+ ## [3.157.1](https://github.com/widergy/energy-ui/compare/v3.157.0...v3.157.1) (2026-05-18)
8
9
 
9
- ### Features
10
+ ### Correcciones
11
+
12
+ * Mejoras internas de la plataforma. [#800](https://github.com/widergy/Energy-UI/pull/800) [`df70bc4`](https://github.com/widergy/Energy-UI/commit/df70bc4)
13
+
14
+ # [3.157.0](https://github.com/widergy/energy-ui/compare/v3.156.0...v3.157.0) (2026-05-15)
15
+
16
+ ### Novedades y Mejoras
17
+
18
+ * Los listados de archivos adjuntos ahora pueden configurarse en modo solo lectura, impidiendo modificaciones accidentales. [#796](https://github.com/widergy/Energy-UI/pull/796) [AXCH-1609](https://widergy.atlassian.net/browse/AXCH-1609)
19
+
20
+ ### Correcciones
10
21
 
11
- * add readonly ([fc534cd](https://github.com/widergy/energy-ui/commit/fc534cde072457bbeae7279e50508e196a84c6f2))
22
+ * Mejoras internas de la plataforma. [`1bc500a`](https://github.com/widergy/Energy-UI/commit/1bc500a)
12
23
 
13
24
  # [3.156.0](https://github.com/widergy/energy-ui/compare/v3.155.0...v3.156.0) (2026-05-14)
14
25
 
@@ -233,7 +233,7 @@ var _default = exports.default = {
233
233
  }
234
234
  },
235
235
  onLoaded: {
236
- description: 'Callback que se ejecuta cuando los archivos se han cargado.',
236
+ description: 'Callback que se ejecuta cuando los archivos se han cargado. Recibe como primer argumento el array de File objects resultante.',
237
237
  table: {
238
238
  defaultValue: {
239
239
  summary: 'undefined'
@@ -243,6 +243,18 @@ var _default = exports.default = {
243
243
  }
244
244
  }
245
245
  },
246
+ notifyOnInitialLoad: {
247
+ control: 'boolean',
248
+ description: 'Cuando es false, suprime el input.onChange que ocurre al terminar de cargar URLs como initialValues, evitando que el formulario se marque como dirty. onLoaded(files) sigue disponible para que el consumidor actualice el form state si lo necesita. Default: true (comportamiento existente).',
249
+ table: {
250
+ defaultValue: {
251
+ summary: 'true'
252
+ },
253
+ type: {
254
+ summary: 'boolean'
255
+ }
256
+ }
257
+ },
246
258
  previewDataTestId: {
247
259
  description: 'ID de prueba para el contenedor de vista previa.',
248
260
  table: {
@@ -40,6 +40,7 @@ const AttachmentListContainer = _ref => {
40
40
  loadingTextClassname,
41
41
  maxFileSize: defaultMaxFileSize = 99999999,
42
42
  onLoaded,
43
+ notifyOnInitialLoad = true,
43
44
  previewDataTestId,
44
45
  readOnly = false,
45
46
  resizeConfig,
@@ -180,7 +181,7 @@ const AttachmentListContainer = _ref => {
180
181
  const length = Array.isArray(input.value) ? input.value.length : 1;
181
182
  if (index === length) {
182
183
  if (onLoaded) onLoaded();
183
- if (input.onChange) input.onChange({
184
+ if (notifyOnInitialLoad && input.onChange) input.onChange({
184
185
  files: accumulatedFiles
185
186
  });
186
187
  setUpdatedFiles(accumulatedFiles);
@@ -287,6 +288,7 @@ AttachmentListContainer.propTypes = {
287
288
  loadingTextClassname: _propTypes.string,
288
289
  maxFileSize: _propTypes.number,
289
290
  onLoaded: _propTypes.func,
291
+ notifyOnInitialLoad: _propTypes.bool,
290
292
  previewDataTestId: _propTypes.string,
291
293
  readOnly: _propTypes.bool,
292
294
  resizeConfig: (0, _propTypes.shape)({
@@ -46,7 +46,7 @@ const getPadding = _ref4 => {
46
46
  [_constants.SIZES.large]: 'var(--UT-status-padding-y-large, 4px) var(--UT-status-padding-x-large, 8px)',
47
47
  [_constants.SIZES.medium]: 'var(--UT-status-padding-y-medium, 4px) var(--UT-status-padding-x-medium, 8px)',
48
48
  [_constants.SIZES.small]: 'var(--UT-status-padding-y-small, 4px) var(--UT-status-padding-x-small, 8px)',
49
- [_constants.SIZES.xlarge]: 'var(--UT-status-padding-y-xlarge, 4px) var(--UT-status-padding-x-xlarge, 8px)',
49
+ [_constants.SIZES.xlarge]: 'var(--UT-status-padding-y-xlarge, 8px) var(--UT-status-padding-x-xlarge, 12px)',
50
50
  [_constants.SIZES.xsmall]: 'var(--UT-status-padding-y-xsmall, 2px) var(--UT-status-padding-x-xsmall, 4px)'
51
51
  }[size];
52
52
  };
@@ -259,8 +259,8 @@ const baseTokens = exports.baseTokens = {
259
259
  'UT-status-padding-x-medium': 'padding-xs',
260
260
  'UT-status-padding-y-small': 'padding-2xs',
261
261
  'UT-status-padding-x-small': 'padding-xs',
262
- 'UT-status-padding-y-xlarge': 'padding-2xs',
263
- 'UT-status-padding-x-xlarge': 'padding-xs',
262
+ 'UT-status-padding-y-xlarge': 'padding-xs',
263
+ 'UT-status-padding-x-xlarge': 'padding-sm',
264
264
  'UT-status-padding-y-xsmall': 'padding-3xs',
265
265
  'UT-status-padding-x-xsmall': 'padding-2xs',
266
266
  'UT-status-radius': 'radius-sm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.157.0",
3
+ "version": "3.158.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",