@widergy/energy-ui 3.162.1 → 3.164.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,9 +1,30 @@
1
- ## [3.162.1](https://github.com/widergy/energy-ui/compare/v3.162.0...v3.162.1) (2026-06-08)
1
+ # [3.164.0](https://github.com/widergy/energy-ui/compare/v3.163.0...v3.164.0) (2026-06-09)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * the request of a dependency is an expression ([#812](https://github.com/widergy/energy-ui/issues/812)) ([16f757b](https://github.com/widergy/energy-ui/commit/16f757bbd91c38ade07de0e10a9059cacb4ac80e))
6
+ * testid fix ([#816](https://github.com/widergy/energy-ui/issues/816)) ([0285aa9](https://github.com/widergy/energy-ui/commit/0285aa9c2f2fb10dd5a4a6a54788c2d9ea1760d5))
7
+
8
+
9
+ ### Features
10
+
11
+ * [AUTO-257] Add test ids to management search ([#807](https://github.com/widergy/energy-ui/issues/807)) ([655afe4](https://github.com/widergy/energy-ui/commit/655afe42a3170099e1bcbb0c971c77fe549fdbb2))
12
+
13
+ # [3.163.0](https://github.com/widergy/energy-ui/compare/v3.162.1...v3.163.0) (2026-06-08)
14
+
15
+ ### Novedades y Mejoras
16
+
17
+ * Se incorporó la posibilidad de controlar el espaciado en los extremos de los gráficos de barras de forma independiente al espaciado entre barras, brindando mayor flexibilidad en la presentación visual de datos. [#814](https://github.com/widergy/Energy-UI/pull/814) [CX-2600](https://widergy.atlassian.net/browse/CX-2600)
18
+
19
+ ## [3.162.1](https://github.com/widergy/energy-ui/compare/v3.162.0...v3.162.1) (2026-06-08)
20
+
21
+ ### Correcciones
22
+
23
+ * Se resolvió un problema que generaba errores al cargar íconos de banderas en ciertos entornos, mejorando además el rendimiento al evitar búsquedas repetidas para códigos no reconocidos. [#812](https://github.com/widergy/Energy-UI/pull/812) [OUG-5552](https://widergy.atlassian.net/browse/OUG-5552)
24
+
25
+ ### Novedades y Mejoras
26
+
27
+ * Mejoras internas de la plataforma. [`ed96d49`](https://github.com/widergy/Energy-UI/commit/ed96d49) [`df57c7c`](https://github.com/widergy/Energy-UI/commit/df57c7c)
7
28
 
8
29
  # [3.162.0](https://github.com/widergy/energy-ui/compare/v3.161.0...v3.162.0) (2026-06-05)
9
30
 
@@ -66,6 +66,7 @@ const UTDatePickerV0 = _ref => {
66
66
  classes: themeClasses,
67
67
  classNames,
68
68
  CustomIcon,
69
+ dataTestId,
69
70
  dayFormat,
70
71
  disableToolbar = true,
71
72
  disabled,
@@ -134,6 +135,7 @@ const UTDatePickerV0 = _ref => {
134
135
  locale: _es.default
135
136
  }, /*#__PURE__*/_react.default.createElement(_pickers.KeyboardDatePicker, _extends({
136
137
  disabled: disabled,
138
+ "data-testid": dataTestId,
137
139
  value: pickedDate,
138
140
  label: inputVariant === 'standard' && (field === null || field === void 0 ? void 0 : field.title),
139
141
  error: (0, _form.shouldShowErrors)(meta),
@@ -186,6 +188,7 @@ UTDatePickerV0.propTypes = {
186
188
  classes: _types.classesPropTypes,
187
189
  CustomIcon: _propTypes.node,
188
190
  dayFormat: _propTypes.string,
191
+ dataTestId: _propTypes.string,
189
192
  disableToolbar: _propTypes.bool,
190
193
  disabled: _propTypes.bool,
191
194
  field: _formTypes.fieldType,
@@ -15,7 +15,6 @@ var _UTFieldLabel = _interopRequireDefault(require("../../../UTFieldLabel"));
15
15
  var _UTLabel = _interopRequireDefault(require("../../../UTLabel"));
16
16
  var _UTValidation = _interopRequireDefault(require("../../../UTValidation"));
17
17
  var _constants = require("../../../UTBaseInputField/constants");
18
- var _testIds = require("../../../../constants/testIds");
19
18
  var _Calendar = _interopRequireDefault(require("./components/Calendar"));
20
19
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
21
20
  var _constants2 = require("./constants");
@@ -24,9 +23,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
24
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
25
24
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
26
25
  _dayjs.default.extend(_customParseFormat.default);
27
- const {
28
- UTDatePickerV1TestID
29
- } = _testIds.TEST_IDS;
30
26
  const CALENDAR_PAPER_PROPS = {
31
27
  onMouseDown: e => e.preventDefault()
32
28
  };
@@ -34,6 +30,7 @@ const UTDatePicker = _ref => {
34
30
  let {
35
31
  classNames = {},
36
32
  CustomIcon,
33
+ dataTestId,
37
34
  disabled,
38
35
  error = '',
39
36
  helpText,
@@ -185,8 +182,7 @@ const UTDatePicker = _ref => {
185
182
  variant: "text"
186
183
  }))) : undefined;
187
184
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
188
- className: _stylesModule.default.root,
189
- "data-testid": UTDatePickerV1TestID.root
185
+ className: _stylesModule.default.root
190
186
  }, title && /*#__PURE__*/_react.default.createElement(_UTFieldLabel.default, {
191
187
  className: classNames === null || classNames === void 0 ? void 0 : classNames.upperTitle,
192
188
  required: required,
@@ -196,7 +192,7 @@ const UTDatePicker = _ref => {
196
192
  }, /*#__PURE__*/_react.default.createElement(_UTBaseInputField.default, {
197
193
  alwaysShowPlaceholder: true,
198
194
  classNames: classNames,
199
- dataTestId: UTDatePickerV1TestID.input,
195
+ dataTestId: dataTestId,
200
196
  inputRef: inputRef,
201
197
  disabled: disabled,
202
198
  error: hasError,
@@ -220,7 +216,7 @@ const UTDatePicker = _ref => {
220
216
  variant: "small",
221
217
  withMarkdown: true
222
218
  }, helpText), variant === 'select' && errorMessage && /*#__PURE__*/_react.default.createElement(_UTValidation.default, {
223
- dataTestId: UTDatePickerV1TestID.errorMessage,
219
+ dataTestId: dataTestId ? "".concat(dataTestId, ".errorMessage") : undefined,
224
220
  validationData: [{
225
221
  items: [{
226
222
  status: 'error',
@@ -253,6 +249,7 @@ const UTDatePicker = _ref => {
253
249
  UTDatePicker.propTypes = {
254
250
  classNames: _propTypes.object,
255
251
  CustomIcon: _propTypes.elementType,
252
+ dataTestId: _propTypes.string,
256
253
  disabled: _propTypes.bool,
257
254
  error: _propTypes.string,
258
255
  helpText: _propTypes.string,
@@ -120,6 +120,7 @@ class UTTextInput extends _react.PureComponent {
120
120
  const fieldId = id || field !== null && field !== void 0 && field.id ? "".concat(id || field.id) : undefined;
121
121
  const TextInput = /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
122
122
  id: fieldId,
123
+ "data-testid": dataTestId,
123
124
  placeholder: placeholder,
124
125
  variant: variant,
125
126
  label: Icon ? /*#__PURE__*/_react.default.createElement("div", {
@@ -169,13 +169,10 @@ const TEST_IDS = exports.TEST_IDS = {
169
169
  actionIcon: 'wrapperObservation.actionIcon.'
170
170
  },
171
171
  UTDatePickerV1TestID: {
172
- root: 'UTDatePickerV1.root',
173
- input: 'UTDatePickerV1.input',
174
172
  calendar: 'UTDatePickerV1.calendar',
175
173
  calendarPrevBtn: 'UTDatePickerV1.calendarPrevBtn',
176
174
  calendarNextBtn: 'UTDatePickerV1.calendarNextBtn',
177
- calendarMonthYear: 'UTDatePickerV1.calendarMonthYear',
178
- errorMessage: 'UTDatePickerV1.errorMessage'
175
+ calendarMonthYear: 'UTDatePickerV1.calendarMonthYear'
179
176
  },
180
177
  workflowContainer: {
181
178
  bottomNav: {
@@ -34,6 +34,7 @@ const UTBarChart = _ref => {
34
34
  barBorderRadius,
35
35
  barData,
36
36
  barPadding,
37
+ barPaddingOuter,
37
38
  buttonProps,
38
39
  center,
39
40
  classes: theme,
@@ -140,7 +141,7 @@ const UTBarChart = _ref => {
140
141
  const maxAbsoluteValue = Math.max(linearUpperBound, barUpperBound);
141
142
  const barMaxValue = singleYAxis ? maxAbsoluteValue : barUpperBound;
142
143
  const yAxis = d3.scaleLinear().domain([barLowerBound, barMaxValue]).range([GRAPH_Y_START, GRAPH_Y_END]);
143
- const xAxis = d3.scaleBand().domain(d3.range(((_formattedData$2 = formattedData[0]) === null || _formattedData$2 === void 0 ? void 0 : _formattedData$2.length) || (xAxisDefinition === null || xAxisDefinition === void 0 ? void 0 : xAxisDefinition.length) || 0)).range([GRAPH_X_START, GRAPH_X_END]).padding(barPadding);
144
+ const xAxis = d3.scaleBand().domain(d3.range(((_formattedData$2 = formattedData[0]) === null || _formattedData$2 === void 0 ? void 0 : _formattedData$2.length) || (xAxisDefinition === null || xAxisDefinition === void 0 ? void 0 : xAxisDefinition.length) || 0)).range([GRAPH_X_START, GRAPH_X_END]).paddingInner(barPadding).paddingOuter(barPaddingOuter !== null && barPaddingOuter !== void 0 ? barPaddingOuter : barPadding);
144
145
  const groupWidth = fullSizeBars ? GRAPH_X_END : xAxis.bandwidth();
145
146
  const xSubAxis = d3.scaleBand().domain(d3.range(groups)).range([0, groupWidth]).padding(barPadding);
146
147
  const barWidth = xSubAxis.bandwidth();
@@ -315,6 +316,7 @@ UTBarChart.propTypes = {
315
316
  barBorderRadius: _propTypes.number,
316
317
  barData: _types.barDataType,
317
318
  barPadding: _propTypes.number,
319
+ barPaddingOuter: _propTypes.number,
318
320
  buttonProps: _types.buttonPropsTypes,
319
321
  center: _propTypes.bool,
320
322
  classes: _commonTypes.classesType,
@@ -58,6 +58,7 @@ const UTDatePickerV0 = _ref => {
58
58
  classes: themeClasses,
59
59
  classNames,
60
60
  CustomIcon,
61
+ dataTestId,
61
62
  dayFormat,
62
63
  disableToolbar = true,
63
64
  disabled,
@@ -126,6 +127,7 @@ const UTDatePickerV0 = _ref => {
126
127
  locale: es
127
128
  }, /*#__PURE__*/React.createElement(KeyboardDatePicker, _extends({
128
129
  disabled: disabled,
130
+ "data-testid": dataTestId,
129
131
  value: pickedDate,
130
132
  label: inputVariant === 'standard' && (field === null || field === void 0 ? void 0 : field.title),
131
133
  error: shouldShowErrors(meta),
@@ -178,6 +180,7 @@ UTDatePickerV0.propTypes = {
178
180
  classes: classesPropTypes,
179
181
  CustomIcon: node,
180
182
  dayFormat: string,
183
+ dataTestId: string,
181
184
  disableToolbar: bool,
182
185
  disabled: bool,
183
186
  field: fieldType,
@@ -10,15 +10,11 @@ import UTFieldLabel from '../../../UTFieldLabel';
10
10
  import UTLabel from '../../../UTLabel';
11
11
  import UTValidation from '../../../UTValidation';
12
12
  import { COMPONENT_KEYS } from '../../../UTBaseInputField/constants';
13
- import { TEST_IDS } from '../../../../constants/testIds';
14
13
  import Calendar from './components/Calendar';
15
14
  import styles from './styles.module.scss';
16
15
  import { DEFAULT_PROPS, DEFAULT_PLACEHOLDER, OUTPUT_LABEL_MASK, TYPING_ERROR_MESSAGE } from './constants';
17
16
  import { dateMatchesFormat, getFinalDate } from './utils';
18
17
  dayjs.extend(customParseFormat);
19
- const {
20
- UTDatePickerV1TestID
21
- } = TEST_IDS;
22
18
  const CALENDAR_PAPER_PROPS = {
23
19
  onMouseDown: e => e.preventDefault()
24
20
  };
@@ -26,6 +22,7 @@ const UTDatePicker = _ref => {
26
22
  let {
27
23
  classNames = {},
28
24
  CustomIcon,
25
+ dataTestId,
29
26
  disabled,
30
27
  error = '',
31
28
  helpText,
@@ -177,8 +174,7 @@ const UTDatePicker = _ref => {
177
174
  variant: "text"
178
175
  }))) : undefined;
179
176
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
180
- className: styles.root,
181
- "data-testid": UTDatePickerV1TestID.root
177
+ className: styles.root
182
178
  }, title && /*#__PURE__*/React.createElement(UTFieldLabel, {
183
179
  className: classNames === null || classNames === void 0 ? void 0 : classNames.upperTitle,
184
180
  required: required,
@@ -188,7 +184,7 @@ const UTDatePicker = _ref => {
188
184
  }, /*#__PURE__*/React.createElement(UTBaseInputField, {
189
185
  alwaysShowPlaceholder: true,
190
186
  classNames: classNames,
191
- dataTestId: UTDatePickerV1TestID.input,
187
+ dataTestId: dataTestId,
192
188
  inputRef: inputRef,
193
189
  disabled: disabled,
194
190
  error: hasError,
@@ -212,7 +208,7 @@ const UTDatePicker = _ref => {
212
208
  variant: "small",
213
209
  withMarkdown: true
214
210
  }, helpText), variant === 'select' && errorMessage && /*#__PURE__*/React.createElement(UTValidation, {
215
- dataTestId: UTDatePickerV1TestID.errorMessage,
211
+ dataTestId: dataTestId ? "".concat(dataTestId, ".errorMessage") : undefined,
216
212
  validationData: [{
217
213
  items: [{
218
214
  status: 'error',
@@ -245,6 +241,7 @@ const UTDatePicker = _ref => {
245
241
  UTDatePicker.propTypes = {
246
242
  classNames: object,
247
243
  CustomIcon: elementType,
244
+ dataTestId: string,
248
245
  disabled: bool,
249
246
  error: string,
250
247
  helpText: string,
@@ -112,6 +112,7 @@ class UTTextInput extends PureComponent {
112
112
  const fieldId = id || field !== null && field !== void 0 && field.id ? "".concat(id || field.id) : undefined;
113
113
  const TextInput = /*#__PURE__*/React.createElement(TextField, _extends({
114
114
  id: fieldId,
115
+ "data-testid": dataTestId,
115
116
  placeholder: placeholder,
116
117
  variant: variant,
117
118
  label: Icon ? /*#__PURE__*/React.createElement("div", {
@@ -163,13 +163,10 @@ export const TEST_IDS = {
163
163
  actionIcon: 'wrapperObservation.actionIcon.'
164
164
  },
165
165
  UTDatePickerV1TestID: {
166
- root: 'UTDatePickerV1.root',
167
- input: 'UTDatePickerV1.input',
168
166
  calendar: 'UTDatePickerV1.calendar',
169
167
  calendarPrevBtn: 'UTDatePickerV1.calendarPrevBtn',
170
168
  calendarNextBtn: 'UTDatePickerV1.calendarNextBtn',
171
- calendarMonthYear: 'UTDatePickerV1.calendarMonthYear',
172
- errorMessage: 'UTDatePickerV1.errorMessage'
169
+ calendarMonthYear: 'UTDatePickerV1.calendarMonthYear'
173
170
  },
174
171
  workflowContainer: {
175
172
  bottomNav: {
@@ -26,6 +26,7 @@ const UTBarChart = _ref => {
26
26
  barBorderRadius,
27
27
  barData,
28
28
  barPadding,
29
+ barPaddingOuter,
29
30
  buttonProps,
30
31
  center,
31
32
  classes: theme,
@@ -132,7 +133,7 @@ const UTBarChart = _ref => {
132
133
  const maxAbsoluteValue = Math.max(linearUpperBound, barUpperBound);
133
134
  const barMaxValue = singleYAxis ? maxAbsoluteValue : barUpperBound;
134
135
  const yAxis = d3.scaleLinear().domain([barLowerBound, barMaxValue]).range([GRAPH_Y_START, GRAPH_Y_END]);
135
- const xAxis = d3.scaleBand().domain(d3.range(((_formattedData$2 = formattedData[0]) === null || _formattedData$2 === void 0 ? void 0 : _formattedData$2.length) || (xAxisDefinition === null || xAxisDefinition === void 0 ? void 0 : xAxisDefinition.length) || 0)).range([GRAPH_X_START, GRAPH_X_END]).padding(barPadding);
136
+ const xAxis = d3.scaleBand().domain(d3.range(((_formattedData$2 = formattedData[0]) === null || _formattedData$2 === void 0 ? void 0 : _formattedData$2.length) || (xAxisDefinition === null || xAxisDefinition === void 0 ? void 0 : xAxisDefinition.length) || 0)).range([GRAPH_X_START, GRAPH_X_END]).paddingInner(barPadding).paddingOuter(barPaddingOuter !== null && barPaddingOuter !== void 0 ? barPaddingOuter : barPadding);
136
137
  const groupWidth = fullSizeBars ? GRAPH_X_END : xAxis.bandwidth();
137
138
  const xSubAxis = d3.scaleBand().domain(d3.range(groups)).range([0, groupWidth]).padding(barPadding);
138
139
  const barWidth = xSubAxis.bandwidth();
@@ -307,6 +308,7 @@ UTBarChart.propTypes = {
307
308
  barBorderRadius: number,
308
309
  barData: barDataType,
309
310
  barPadding: number,
311
+ barPaddingOuter: number,
310
312
  buttonProps: buttonPropsTypes,
311
313
  center: bool,
312
314
  classes: classesType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.162.1",
3
+ "version": "3.164.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",