@widergy/energy-ui 3.162.0 → 3.163.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 +27 -4
- package/dist/components/UTIcon/components/FlagsIcons/flagsComponents/index.js +61 -0
- package/dist/components/UTIcon/theme.js +5 -3
- package/dist/deprecated/UTBarChart/index.js +3 -1
- package/dist/esm/components/UTIcon/components/FlagsIcons/flagsComponents/index.js +54 -0
- package/dist/esm/components/UTIcon/theme.js +4 -2
- package/dist/esm/deprecated/UTBarChart/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,39 @@
|
|
|
1
|
-
# [3.
|
|
1
|
+
# [3.163.0](https://github.com/widergy/energy-ui/compare/v3.162.1...v3.163.0) (2026-06-08)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* [
|
|
6
|
+
* [CX-2600] add barPaddingOuter prop to UTBarChart ([#814](https://github.com/widergy/energy-ui/issues/814)) ([a7028cf](https://github.com/widergy/energy-ui/commit/a7028cf576d911e7ab7569045d0a4a85c74f3d36))
|
|
7
|
+
|
|
8
|
+
## [3.162.1](https://github.com/widergy/energy-ui/compare/v3.162.0...v3.162.1) (2026-06-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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))
|
|
14
|
+
|
|
15
|
+
# [3.162.0](https://github.com/widergy/energy-ui/compare/v3.161.0...v3.162.0) (2026-06-05)
|
|
16
|
+
|
|
17
|
+
### Novedades y Mejoras
|
|
18
|
+
|
|
19
|
+
* Se renovó el componente de banners informativos con soporte para múltiples combinaciones de colores, tamaños y estilos visuales (claro y oscuro), permitiendo mayor flexibilidad para comunicar alertas, errores, éxitos y otros mensajes dentro de la plataforma. [#806](https://github.com/widergy/Energy-UI/pull/806) [DIS-1105](https://widergy.atlassian.net/browse/DIS-1105)
|
|
20
|
+
* Los banners ahora pueden incluir botones de acción primaria y secundaria, con opciones de disposición horizontal o vertical, facilitando la interacción del usuario directamente desde el mensaje. [#806](https://github.com/widergy/Energy-UI/pull/806) [DIS-1105](https://widergy.atlassian.net/browse/DIS-1105)
|
|
21
|
+
* Se agregó soporte para mostrar íconos personalizados en los banners, con control sobre su posición, y la opción de incluir un botón de cierre para que el usuario descarte el mensaje. [#806](https://github.com/widergy/Energy-UI/pull/806) [DIS-1105](https://widergy.atlassian.net/browse/DIS-1105)
|
|
7
22
|
|
|
8
23
|
# [3.161.0](https://github.com/widergy/energy-ui/compare/v3.160.1...v3.161.0) (2026-06-05)
|
|
9
24
|
|
|
25
|
+
### Novedades y Mejoras
|
|
10
26
|
|
|
11
|
-
|
|
27
|
+
* El panel de filtros rápidos ahora resetea automáticamente la búsqueda interna al cambiar de categoría o pestaña, evitando que filtros anteriores persistan de forma inesperada. [#808](https://github.com/widergy/Energy-UI/pull/808) [AXCH-1712](https://widergy.atlassian.net/browse/AXCH-1712) [AXCH-1713](https://widergy.atlassian.net/browse/AXCH-1713) [AXCH-1716](https://widergy.atlassian.net/browse/AXCH-1716) [AXCH-1717](https://widergy.atlassian.net/browse/AXCH-1717)
|
|
28
|
+
* Los filtros con parámetros inválidos ahora muestran un ícono de advertencia visible junto a su nombre, facilitando la identificación de configuraciones que requieren atención. [#808](https://github.com/widergy/Energy-UI/pull/808) [AXCH-1712](https://widergy.atlassian.net/browse/AXCH-1712) [AXCH-1713](https://widergy.atlassian.net/browse/AXCH-1713) [AXCH-1716](https://widergy.atlassian.net/browse/AXCH-1716) [AXCH-1717](https://widergy.atlassian.net/browse/AXCH-1717)
|
|
29
|
+
* Se incorporó la opción de mostrar las acciones de edición y eliminación también en filtros fijados, con total retrocompatibilidad para integraciones existentes. [#808](https://github.com/widergy/Energy-UI/pull/808) [AXCH-1712](https://widergy.atlassian.net/browse/AXCH-1712) [AXCH-1713](https://widergy.atlassian.net/browse/AXCH-1713) [AXCH-1716](https://widergy.atlassian.net/browse/AXCH-1716) [AXCH-1717](https://widergy.atlassian.net/browse/AXCH-1717)
|
|
30
|
+
|
|
31
|
+
### Correcciones
|
|
12
32
|
|
|
13
|
-
*
|
|
33
|
+
* Se corrigió un desplazamiento involuntario del texto en los ítems del panel al aparecer los botones de acción al pasar el cursor. [#808](https://github.com/widergy/Energy-UI/pull/808) [AXCH-1712](https://widergy.atlassian.net/browse/AXCH-1712) [AXCH-1713](https://widergy.atlassian.net/browse/AXCH-1713) [AXCH-1716](https://widergy.atlassian.net/browse/AXCH-1716) [AXCH-1717](https://widergy.atlassian.net/browse/AXCH-1717)
|
|
34
|
+
* Se corrigió un problema de alineación visual en ítems no fijados, asegurando un margen consistente con el resto del panel. [#808](https://github.com/widergy/Energy-UI/pull/808) [AXCH-1712](https://widergy.atlassian.net/browse/AXCH-1712) [AXCH-1713](https://widergy.atlassian.net/browse/AXCH-1713) [AXCH-1716](https://widergy.atlassian.net/browse/AXCH-1716) [AXCH-1717](https://widergy.atlassian.net/browse/AXCH-1717)
|
|
35
|
+
* Se corrigió un comportamiento donde el campo de búsqueda no se cerraba correctamente al cambiar de categoría. [#808](https://github.com/widergy/Energy-UI/pull/808) [AXCH-1712](https://widergy.atlassian.net/browse/AXCH-1712) [AXCH-1713](https://widergy.atlassian.net/browse/AXCH-1713) [AXCH-1716](https://widergy.atlassian.net/browse/AXCH-1716) [AXCH-1717](https://widergy.atlassian.net/browse/AXCH-1717)
|
|
36
|
+
* Mejoras internas de la plataforma. [`6c86bce`](https://github.com/widergy/Energy-UI/commit/6c86bce)
|
|
14
37
|
|
|
15
38
|
## [3.160.1](https://github.com/widergy/energy-ui/compare/v3.160.0...v3.160.1) (2026-06-04)
|
|
16
39
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
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); }
|
|
8
|
+
const flagComponentMap = {
|
|
9
|
+
AG: () => Promise.resolve().then(() => _interopRequireWildcard(require('./AG'))),
|
|
10
|
+
AI: () => Promise.resolve().then(() => _interopRequireWildcard(require('./AI'))),
|
|
11
|
+
AR: () => Promise.resolve().then(() => _interopRequireWildcard(require('./AR'))),
|
|
12
|
+
AW: () => Promise.resolve().then(() => _interopRequireWildcard(require('./AW'))),
|
|
13
|
+
BB: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BB'))),
|
|
14
|
+
BL: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BL'))),
|
|
15
|
+
BM: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BM'))),
|
|
16
|
+
BO: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BO'))),
|
|
17
|
+
BR: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BR'))),
|
|
18
|
+
BS: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BS'))),
|
|
19
|
+
BZ: () => Promise.resolve().then(() => _interopRequireWildcard(require('./BZ'))),
|
|
20
|
+
CA: () => Promise.resolve().then(() => _interopRequireWildcard(require('./CA'))),
|
|
21
|
+
CL: () => Promise.resolve().then(() => _interopRequireWildcard(require('./CL'))),
|
|
22
|
+
CO: () => Promise.resolve().then(() => _interopRequireWildcard(require('./CO'))),
|
|
23
|
+
CR: () => Promise.resolve().then(() => _interopRequireWildcard(require('./CR'))),
|
|
24
|
+
CU: () => Promise.resolve().then(() => _interopRequireWildcard(require('./CU'))),
|
|
25
|
+
CW: () => Promise.resolve().then(() => _interopRequireWildcard(require('./CW'))),
|
|
26
|
+
DM: () => Promise.resolve().then(() => _interopRequireWildcard(require('./DM'))),
|
|
27
|
+
DO: () => Promise.resolve().then(() => _interopRequireWildcard(require('./DO'))),
|
|
28
|
+
EC: () => Promise.resolve().then(() => _interopRequireWildcard(require('./EC'))),
|
|
29
|
+
ES: () => Promise.resolve().then(() => _interopRequireWildcard(require('./ES'))),
|
|
30
|
+
GD: () => Promise.resolve().then(() => _interopRequireWildcard(require('./GD'))),
|
|
31
|
+
GF: () => Promise.resolve().then(() => _interopRequireWildcard(require('./GF'))),
|
|
32
|
+
GL: () => Promise.resolve().then(() => _interopRequireWildcard(require('./GL'))),
|
|
33
|
+
GP: () => Promise.resolve().then(() => _interopRequireWildcard(require('./GP'))),
|
|
34
|
+
GT: () => Promise.resolve().then(() => _interopRequireWildcard(require('./GT'))),
|
|
35
|
+
GY: () => Promise.resolve().then(() => _interopRequireWildcard(require('./GY'))),
|
|
36
|
+
HN: () => Promise.resolve().then(() => _interopRequireWildcard(require('./HN'))),
|
|
37
|
+
HT: () => Promise.resolve().then(() => _interopRequireWildcard(require('./HT'))),
|
|
38
|
+
JM: () => Promise.resolve().then(() => _interopRequireWildcard(require('./JM'))),
|
|
39
|
+
LC: () => Promise.resolve().then(() => _interopRequireWildcard(require('./LC'))),
|
|
40
|
+
MF: () => Promise.resolve().then(() => _interopRequireWildcard(require('./MF'))),
|
|
41
|
+
MQ: () => Promise.resolve().then(() => _interopRequireWildcard(require('./MQ'))),
|
|
42
|
+
MS: () => Promise.resolve().then(() => _interopRequireWildcard(require('./MS'))),
|
|
43
|
+
MX: () => Promise.resolve().then(() => _interopRequireWildcard(require('./MX'))),
|
|
44
|
+
NI: () => Promise.resolve().then(() => _interopRequireWildcard(require('./NI'))),
|
|
45
|
+
PA: () => Promise.resolve().then(() => _interopRequireWildcard(require('./PA'))),
|
|
46
|
+
PE: () => Promise.resolve().then(() => _interopRequireWildcard(require('./PE'))),
|
|
47
|
+
PM: () => Promise.resolve().then(() => _interopRequireWildcard(require('./PM'))),
|
|
48
|
+
PR: () => Promise.resolve().then(() => _interopRequireWildcard(require('./PR'))),
|
|
49
|
+
PY: () => Promise.resolve().then(() => _interopRequireWildcard(require('./PY'))),
|
|
50
|
+
SR: () => Promise.resolve().then(() => _interopRequireWildcard(require('./SR'))),
|
|
51
|
+
SV: () => Promise.resolve().then(() => _interopRequireWildcard(require('./SV'))),
|
|
52
|
+
TC: () => Promise.resolve().then(() => _interopRequireWildcard(require('./TC'))),
|
|
53
|
+
TT: () => Promise.resolve().then(() => _interopRequireWildcard(require('./TT'))),
|
|
54
|
+
US: () => Promise.resolve().then(() => _interopRequireWildcard(require('./US'))),
|
|
55
|
+
UY: () => Promise.resolve().then(() => _interopRequireWildcard(require('./UY'))),
|
|
56
|
+
VC: () => Promise.resolve().then(() => _interopRequireWildcard(require('./VC'))),
|
|
57
|
+
VE: () => Promise.resolve().then(() => _interopRequireWildcard(require('./VE'))),
|
|
58
|
+
VG: () => Promise.resolve().then(() => _interopRequireWildcard(require('./VG'))),
|
|
59
|
+
VI: () => Promise.resolve().then(() => _interopRequireWildcard(require('./VI')))
|
|
60
|
+
};
|
|
61
|
+
var _default = exports.default = flagComponentMap;
|
|
@@ -10,8 +10,9 @@ var _componentUtils = require("../../utils/componentUtils");
|
|
|
10
10
|
var _countries = _interopRequireDefault(require("../../constants/countries"));
|
|
11
11
|
var _constants = require("./constants");
|
|
12
12
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
13
|
-
|
|
13
|
+
var _flagsComponents = _interopRequireDefault(require("./components/FlagsIcons/flagsComponents"));
|
|
14
14
|
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); }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
16
|
const FLAG_CODES = new Set(_countries.default.map(_ref => {
|
|
16
17
|
let {
|
|
17
18
|
code
|
|
@@ -20,8 +21,9 @@ const FLAG_CODES = new Set(_countries.default.map(_ref => {
|
|
|
20
21
|
}));
|
|
21
22
|
const flagComponentCache = {};
|
|
22
23
|
const getFlagComponent = code => {
|
|
23
|
-
if (!flagComponentCache
|
|
24
|
-
|
|
24
|
+
if (!(code in flagComponentCache)) {
|
|
25
|
+
const loader = _flagsComponents.default[code];
|
|
26
|
+
flagComponentCache[code] = loader ? /*#__PURE__*/_react.default.lazy(loader) : null;
|
|
25
27
|
}
|
|
26
28
|
return flagComponentCache[code];
|
|
27
29
|
};
|
|
@@ -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]).
|
|
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,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const flagComponentMap = {
|
|
2
|
+
AG: () => import('./AG'),
|
|
3
|
+
AI: () => import('./AI'),
|
|
4
|
+
AR: () => import('./AR'),
|
|
5
|
+
AW: () => import('./AW'),
|
|
6
|
+
BB: () => import('./BB'),
|
|
7
|
+
BL: () => import('./BL'),
|
|
8
|
+
BM: () => import('./BM'),
|
|
9
|
+
BO: () => import('./BO'),
|
|
10
|
+
BR: () => import('./BR'),
|
|
11
|
+
BS: () => import('./BS'),
|
|
12
|
+
BZ: () => import('./BZ'),
|
|
13
|
+
CA: () => import('./CA'),
|
|
14
|
+
CL: () => import('./CL'),
|
|
15
|
+
CO: () => import('./CO'),
|
|
16
|
+
CR: () => import('./CR'),
|
|
17
|
+
CU: () => import('./CU'),
|
|
18
|
+
CW: () => import('./CW'),
|
|
19
|
+
DM: () => import('./DM'),
|
|
20
|
+
DO: () => import('./DO'),
|
|
21
|
+
EC: () => import('./EC'),
|
|
22
|
+
ES: () => import('./ES'),
|
|
23
|
+
GD: () => import('./GD'),
|
|
24
|
+
GF: () => import('./GF'),
|
|
25
|
+
GL: () => import('./GL'),
|
|
26
|
+
GP: () => import('./GP'),
|
|
27
|
+
GT: () => import('./GT'),
|
|
28
|
+
GY: () => import('./GY'),
|
|
29
|
+
HN: () => import('./HN'),
|
|
30
|
+
HT: () => import('./HT'),
|
|
31
|
+
JM: () => import('./JM'),
|
|
32
|
+
LC: () => import('./LC'),
|
|
33
|
+
MF: () => import('./MF'),
|
|
34
|
+
MQ: () => import('./MQ'),
|
|
35
|
+
MS: () => import('./MS'),
|
|
36
|
+
MX: () => import('./MX'),
|
|
37
|
+
NI: () => import('./NI'),
|
|
38
|
+
PA: () => import('./PA'),
|
|
39
|
+
PE: () => import('./PE'),
|
|
40
|
+
PM: () => import('./PM'),
|
|
41
|
+
PR: () => import('./PR'),
|
|
42
|
+
PY: () => import('./PY'),
|
|
43
|
+
SR: () => import('./SR'),
|
|
44
|
+
SV: () => import('./SV'),
|
|
45
|
+
TC: () => import('./TC'),
|
|
46
|
+
TT: () => import('./TT'),
|
|
47
|
+
US: () => import('./US'),
|
|
48
|
+
UY: () => import('./UY'),
|
|
49
|
+
VC: () => import('./VC'),
|
|
50
|
+
VE: () => import('./VE'),
|
|
51
|
+
VG: () => import('./VG'),
|
|
52
|
+
VI: () => import('./VI')
|
|
53
|
+
};
|
|
54
|
+
export default flagComponentMap;
|
|
@@ -4,6 +4,7 @@ import { capitalize, getDefaultColorShade } from '../../utils/componentUtils';
|
|
|
4
4
|
import countries from '../../constants/countries';
|
|
5
5
|
import { ENERGY_ICONS, ENERGY_ICON_PREFIX, FILLED_ICON_COLOR, FILLED_ICON_SUFIX, DEFAULT_INTERNAL_SHADE, DEFAULT_COLOR_THEME } from './constants';
|
|
6
6
|
import styles from './styles.module.scss';
|
|
7
|
+
import flagComponentMap from './components/FlagsIcons/flagsComponents';
|
|
7
8
|
const FLAG_CODES = new Set(countries.map(_ref => {
|
|
8
9
|
let {
|
|
9
10
|
code
|
|
@@ -12,8 +13,9 @@ const FLAG_CODES = new Set(countries.map(_ref => {
|
|
|
12
13
|
}));
|
|
13
14
|
const flagComponentCache = {};
|
|
14
15
|
const getFlagComponent = code => {
|
|
15
|
-
if (!flagComponentCache
|
|
16
|
-
|
|
16
|
+
if (!(code in flagComponentCache)) {
|
|
17
|
+
const loader = flagComponentMap[code];
|
|
18
|
+
flagComponentCache[code] = loader ? /*#__PURE__*/React.lazy(loader) : null;
|
|
17
19
|
}
|
|
18
20
|
return flagComponentCache[code];
|
|
19
21
|
};
|
|
@@ -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]).
|
|
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,
|