@widergy/energy-ui 3.121.2 → 3.122.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 +14 -0
- package/dist/components/UTAvatar/constants.js +44 -1
- package/dist/components/UTAvatar/index.js +31 -8
- package/dist/components/UTAvatar/stories/UTAvatar.mdx +13 -0
- package/dist/components/UTAvatar/stories/UTAvatar.stories.js +38 -0
- package/dist/components/UTAvatar/stories/UTAvatarColors.stories.js +91 -0
- package/dist/components/UTAvatar/stories/UTAvatarShapes.stories.js +51 -0
- package/dist/components/UTAvatar/stories/UTAvatarSizes.stories.js +106 -0
- package/dist/components/UTAvatar/stories/UTAvatarTypes.stories.js +51 -0
- package/dist/components/UTAvatar/stories/storiesConstants.js +155 -0
- package/dist/components/UTAvatar/styles.module.scss +24 -0
- package/dist/components/UTBodyPlaceholder/UTBodyPlaceholder.mdx +11 -0
- package/dist/components/UTBodyPlaceholder/UTBodyPlaceholder.stories.js +76 -0
- package/dist/components/UTBodyPlaceholder/constants.js +14 -0
- package/dist/components/UTBodyPlaceholder/index.js +45 -0
- package/dist/components/UTBodyPlaceholder/styles.module.scss +34 -0
- package/dist/components/UTButton/constants.js +8 -5
- package/dist/components/UTButton/stories/UTButton.mdx +13 -0
- package/dist/components/UTButton/stories/UTButton.stories.js +38 -0
- package/dist/components/UTButton/stories/UTButtonAdornments.stories.js +52 -0
- package/dist/components/UTButton/stories/UTButtonColorThemes.stories.js +52 -0
- package/dist/components/UTButton/stories/UTButtonSizes.stories.js +40 -0
- package/dist/components/UTButton/stories/UTButtonStates.stories.js +34 -0
- package/dist/components/UTButton/stories/UTButtonVariants.stories.js +61 -0
- package/dist/components/UTButton/stories/storiesConstants.js +220 -0
- package/dist/components/UTButton/theme.js +15 -14
- package/dist/components/UTButton/utils.js +2 -2
- package/dist/components/UTDataElement/UTDataElement.stories.js +2 -1
- package/dist/components/UTDataElement/theme.js +2 -1
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/CollapsedPanelContent/constants.js +11 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/CollapsedPanelContent/index.js +34 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/CollapsedPanelContent/layout.js +46 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryEmpty/index.js +36 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryEmpty/layout.js +50 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryHeader/constants.js +8 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryHeader/index.js +55 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryHeader/layout.js +78 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/constants.js +21 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/index.js +80 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/layout.js +132 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/constants.js +7 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/index.js +62 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/layout.js +78 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/utils.js +23 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/constants.js +16 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/index.js +75 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/layout.js +136 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentPopper/constants.js +11 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentPopper/index.js +40 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentPopper/layout.js +55 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/index.js +37 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/layout.js +44 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/index.js +57 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/layout.js +64 -0
- package/dist/components/UTFilterGrouping/constants.js +10 -0
- package/dist/components/UTFilterGrouping/context.js +9 -0
- package/dist/components/UTFilterGrouping/index.js +187 -0
- package/dist/components/UTFilterGrouping/layout.js +43 -0
- package/dist/components/UTFilterGrouping/stories/UTFilterGrouping.mdx +13 -0
- package/dist/components/UTFilterGrouping/stories/UTFilterGrouping.stories.js +315 -0
- package/dist/components/UTFilterGrouping/stories/constants.json +282 -0
- package/dist/components/UTFilterGrouping/stories/fixtures.js +162 -0
- package/dist/components/UTFilterGrouping/stories/props.schema.json +163 -0
- package/dist/components/UTFilterGrouping/stories/styles.module.scss +19 -0
- package/dist/components/UTFilterGrouping/stories/tests.js +250 -0
- package/dist/components/UTFilterGrouping/stories/utils.js +178 -0
- package/dist/components/UTFilterGrouping/styles.module.scss +251 -0
- package/dist/components/UTFilterGrouping/theme.js +55 -0
- package/dist/components/UTFilterGrouping/types.js +51 -0
- package/dist/components/UTFilterGrouping/utils.js +27 -0
- package/dist/components/UTGraph/UTGraph.stories.js +1 -1
- package/dist/components/UTHeader/index.js +1 -1
- package/dist/components/UTIcon/UTIcon.mdx +17 -0
- package/dist/components/UTIcon/UTIcon.stories.js +2 -1
- package/dist/components/UTIcon/index.js +2 -19
- package/dist/components/UTKpi/UTKpi.stories.js +2 -1
- package/dist/components/UTLabel/UTLabel.stories.js +2 -1
- package/dist/components/UTLabel/constants.js +1 -1
- package/dist/components/UTPanel/UTPanel.stories.js +2 -1
- package/dist/components/UTRadioGroup/UTRadioGroup.stories.js +2 -1
- package/dist/components/UTSearchField/index.js +8 -2
- package/dist/components/UTSearchField/stories/UTSearchField.mdx +11 -0
- package/dist/components/UTSearchField/stories/UTSearchField.stories.js +250 -0
- package/dist/components/UTSignature/UTSignature.stories.js +2 -1
- package/dist/components/UTStatus/UTStatus.stories.js +2 -1
- package/dist/components/UTSwitch/versions/V1/theme.js +5 -4
- package/dist/components/UTTable/UTTable.stories.js +2 -1
- package/dist/components/UTTable/components/HeaderCell/styles.module.scss +0 -1
- package/dist/constants/Palette.js +1 -0
- package/dist/constants/testIds.js +53 -1
- package/dist/types/iconTypes.js +25 -0
- package/package.json +8 -1
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.TestingSite = exports.Playground = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _test = require("@storybook/test");
|
|
9
|
+
var _utils = require("stories/utils");
|
|
10
|
+
var _UTBodyPlaceholder = _interopRequireDefault(require("../../UTBodyPlaceholder"));
|
|
11
|
+
var _ = _interopRequireDefault(require(".."));
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
var _testIds = require("../../../constants/testIds");
|
|
14
|
+
var _propsSchema = _interopRequireDefault(require("./props.schema.json"));
|
|
15
|
+
var _constants2 = _interopRequireDefault(require("./constants.json"));
|
|
16
|
+
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
17
|
+
var _tests = require("./tests");
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
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); }
|
|
20
|
+
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); }
|
|
21
|
+
const {
|
|
22
|
+
filterGrouping
|
|
23
|
+
} = _testIds.TEST_IDS;
|
|
24
|
+
var _default = exports.default = {
|
|
25
|
+
args: {
|
|
26
|
+
categories: _constants2.default.CATEGORIES,
|
|
27
|
+
categoriesConfig: _constants2.default.CATEGORIES_CONFIG,
|
|
28
|
+
children: undefined,
|
|
29
|
+
classNames: undefined,
|
|
30
|
+
dataTestId: _constants2.default.DATA_TEST_ID,
|
|
31
|
+
handleSelectFilter: (0, _test.fn)(),
|
|
32
|
+
iconProps: undefined,
|
|
33
|
+
noFiltersTitle: _constants2.default.NO_FILTERS_TITLE,
|
|
34
|
+
noFiltersText: _constants2.default.NO_FILTERS_TEXT,
|
|
35
|
+
onDeleteFilterGrouping: (0, _test.fn)(),
|
|
36
|
+
onEditFilterGrouping: (0, _test.fn)(),
|
|
37
|
+
panelTitle: _constants2.default.PANEL_TITLE,
|
|
38
|
+
position: _constants2.default.POSITION,
|
|
39
|
+
selectedFilter: undefined,
|
|
40
|
+
startOpen: true,
|
|
41
|
+
tooltipsContentMap: _constants2.default.TOOLTIPS_CONTENT_MAP
|
|
42
|
+
},
|
|
43
|
+
argTypes: {
|
|
44
|
+
categories: {
|
|
45
|
+
control: {
|
|
46
|
+
type: 'none'
|
|
47
|
+
},
|
|
48
|
+
description: 'Data necesaria para renderizar el contenido del panel',
|
|
49
|
+
table: {
|
|
50
|
+
defaultValue: {
|
|
51
|
+
summary: 'undefined'
|
|
52
|
+
},
|
|
53
|
+
type: {
|
|
54
|
+
summary: 'categoryType[]'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
categoriesConfig: {
|
|
59
|
+
control: 'none',
|
|
60
|
+
description: 'Configuración de iconos y colores para el avatar de cada categoría',
|
|
61
|
+
table: {
|
|
62
|
+
defaultValue: {
|
|
63
|
+
summary: 'undefined'
|
|
64
|
+
},
|
|
65
|
+
type: {
|
|
66
|
+
summary: 'Record<string, categoryConfigType>'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
children: {
|
|
71
|
+
control: 'none',
|
|
72
|
+
description: 'Contenido wrappeado por el componente `UTFilterGrouping`.',
|
|
73
|
+
table: {
|
|
74
|
+
defaultValue: {
|
|
75
|
+
summary: 'undefined'
|
|
76
|
+
},
|
|
77
|
+
type: {
|
|
78
|
+
summary: 'node'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
classNames: {
|
|
83
|
+
control: 'none',
|
|
84
|
+
description: 'Clases personalizadas.',
|
|
85
|
+
table: {
|
|
86
|
+
defaultValue: {
|
|
87
|
+
summary: 'undefined'
|
|
88
|
+
},
|
|
89
|
+
type: {
|
|
90
|
+
summary: 'Record<string, string>'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
classes: {
|
|
95
|
+
control: 'none',
|
|
96
|
+
description: 'Tema personalizado. Esta prop NO debería ser usada.',
|
|
97
|
+
table: {
|
|
98
|
+
defaultValue: {
|
|
99
|
+
summary: 'undefined'
|
|
100
|
+
},
|
|
101
|
+
type: {
|
|
102
|
+
summary: 'Record<string, string>'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
dataTestId: {
|
|
107
|
+
control: 'text',
|
|
108
|
+
description: '`dataTestId` que se usará como base para generar los `ids` de los componentes internos.',
|
|
109
|
+
table: {
|
|
110
|
+
defaultValue: {
|
|
111
|
+
summary: filterGrouping.groupingPanel.collapsedPanelContent.expandButton
|
|
112
|
+
},
|
|
113
|
+
type: {
|
|
114
|
+
summary: 'string'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
handleSelectFilter: {
|
|
119
|
+
action: 'hi',
|
|
120
|
+
control: 'none',
|
|
121
|
+
description: 'Función callback que se ejecuta cuando se selecciona un filtro.',
|
|
122
|
+
table: {
|
|
123
|
+
defaultValue: {
|
|
124
|
+
summary: 'undefined'
|
|
125
|
+
},
|
|
126
|
+
type: {
|
|
127
|
+
summary: 'Function'
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
iconProps: {
|
|
132
|
+
control: 'select',
|
|
133
|
+
options: ['default', 'IconX, gray, 18', 'IconHome, error, 30'],
|
|
134
|
+
mapping: {
|
|
135
|
+
default: undefined,
|
|
136
|
+
'IconX, gray, 18': {
|
|
137
|
+
name: 'IconX',
|
|
138
|
+
colorTheme: 'gray',
|
|
139
|
+
size: 18
|
|
140
|
+
},
|
|
141
|
+
'IconHome, error, 30': {
|
|
142
|
+
name: 'IconHome',
|
|
143
|
+
colorTheme: 'error',
|
|
144
|
+
size: 30
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
description: 'Props para renderizar un icono custom cuando el paner está cerrado.',
|
|
148
|
+
table: {
|
|
149
|
+
defaultValue: {
|
|
150
|
+
summary: 'undefined'
|
|
151
|
+
},
|
|
152
|
+
type: {
|
|
153
|
+
summary: 'iconPropTypes'
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
noFiltersTitle: {
|
|
158
|
+
control: 'text',
|
|
159
|
+
description: 'Título para el componente de filtros vacíos.',
|
|
160
|
+
table: {
|
|
161
|
+
defaultValue: {
|
|
162
|
+
summary: 'undefined'
|
|
163
|
+
},
|
|
164
|
+
type: {
|
|
165
|
+
summary: 'string'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
noFiltersText: {
|
|
170
|
+
control: 'text',
|
|
171
|
+
description: 'Texto para el componente de filtros vacíos.',
|
|
172
|
+
table: {
|
|
173
|
+
defaultValue: {
|
|
174
|
+
summary: 'undefined'
|
|
175
|
+
},
|
|
176
|
+
type: {
|
|
177
|
+
summary: 'string'
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
onDeleteFilterGrouping: {
|
|
182
|
+
control: 'none',
|
|
183
|
+
description: 'Función callback que se ejecuta cuando se presiona el botón de eliminar un filtro.',
|
|
184
|
+
table: {
|
|
185
|
+
defaultValue: {
|
|
186
|
+
summary: 'undefined'
|
|
187
|
+
},
|
|
188
|
+
type: {
|
|
189
|
+
summary: 'Function'
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
onEditFilterGrouping: {
|
|
194
|
+
control: 'none',
|
|
195
|
+
description: 'Función callback que se ejecuta cuando se presiona el botón de editar un filtro.',
|
|
196
|
+
table: {
|
|
197
|
+
defaultValue: {
|
|
198
|
+
summary: 'undefined'
|
|
199
|
+
},
|
|
200
|
+
type: {
|
|
201
|
+
summary: 'Function'
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
panelTitle: {
|
|
206
|
+
control: 'text',
|
|
207
|
+
description: 'Título del panel.',
|
|
208
|
+
table: {
|
|
209
|
+
defaultValue: {
|
|
210
|
+
summary: 'undefined'
|
|
211
|
+
},
|
|
212
|
+
type: {
|
|
213
|
+
summary: 'string'
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
position: {
|
|
218
|
+
control: 'radio',
|
|
219
|
+
description: 'Posición del panel y la barra lateral.',
|
|
220
|
+
options: Object.values(_constants.PANEL_POSITIONS),
|
|
221
|
+
table: {
|
|
222
|
+
defaultValue: {
|
|
223
|
+
summary: 'left'
|
|
224
|
+
},
|
|
225
|
+
type: {
|
|
226
|
+
summary: (0, _utils.joinArgTypes)(Object.values(_constants.PANEL_POSITIONS))
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
selectedFilter: {
|
|
231
|
+
control: 'none',
|
|
232
|
+
description: 'Filtro seleccionado.',
|
|
233
|
+
table: {
|
|
234
|
+
defaultValue: {
|
|
235
|
+
summary: 'undefined'
|
|
236
|
+
},
|
|
237
|
+
type: {
|
|
238
|
+
summary: 'filterType'
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
startOpen: {
|
|
243
|
+
control: 'boolean',
|
|
244
|
+
description: 'Indica si el panel se renderiza abierto.',
|
|
245
|
+
table: {
|
|
246
|
+
defaultValue: {
|
|
247
|
+
summary: 'false'
|
|
248
|
+
},
|
|
249
|
+
type: {
|
|
250
|
+
summary: 'boolean'
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
tooltipsContentMap: {
|
|
255
|
+
control: 'none',
|
|
256
|
+
description: 'Mapa de contenido para los tooltips.',
|
|
257
|
+
table: {
|
|
258
|
+
defaultValue: {
|
|
259
|
+
summary: 'undefined'
|
|
260
|
+
},
|
|
261
|
+
type: {
|
|
262
|
+
summary: 'Record<string, string>'
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
component: _.default,
|
|
268
|
+
parameters: {
|
|
269
|
+
jsonschema: {
|
|
270
|
+
schema: _propsSchema.default
|
|
271
|
+
},
|
|
272
|
+
controls: {
|
|
273
|
+
exclude: ['categories', 'categoriesConfig', 'children', 'classNames', 'classes', 'handleSelectFilter', 'onDeleteFilterGrouping', 'onEditFilterGrouping', 'selectedFilter', 'tooltipsContentMap']
|
|
274
|
+
},
|
|
275
|
+
docs: {
|
|
276
|
+
description: {
|
|
277
|
+
component: 'Panel de filtros rápidos, con búsqueda y acciones de edición y eliminación de filtros y categorías colapsables.'
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
title: 'Energy-UI/UTFilterGrouping'
|
|
282
|
+
};
|
|
283
|
+
const Playground = exports.Playground = {
|
|
284
|
+
name: 'Playground',
|
|
285
|
+
parameters: {
|
|
286
|
+
backgrounds: {
|
|
287
|
+
default: 'Oscuro'
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
render: args => {
|
|
291
|
+
const [selectedFilter, setSelectedFilter] = (0, _react.useState)(args.selectedFilter);
|
|
292
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("section", {
|
|
293
|
+
className: _stylesModule.default.storyContainer
|
|
294
|
+
}, /*#__PURE__*/_react.default.createElement(_.default, _extends({}, args, {
|
|
295
|
+
handleSelectFilter: filter => {
|
|
296
|
+
args.handleSelectFilter(filter);
|
|
297
|
+
setSelectedFilter(filter);
|
|
298
|
+
},
|
|
299
|
+
selectedFilter: selectedFilter
|
|
300
|
+
}), /*#__PURE__*/_react.default.createElement("section", {
|
|
301
|
+
className: _stylesModule.default.defaultContainer
|
|
302
|
+
}, /*#__PURE__*/_react.default.createElement(_UTBodyPlaceholder.default, {
|
|
303
|
+
classNames: {
|
|
304
|
+
bodyPlaceholder: _stylesModule.default.bodyPlaceholder
|
|
305
|
+
}
|
|
306
|
+
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
307
|
+
"data-testid": "testingShield"
|
|
308
|
+
}));
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
const TestingSite = exports.TestingSite = {
|
|
312
|
+
...Playground,
|
|
313
|
+
name: 'Test Site',
|
|
314
|
+
play: _tests.UTFilterGroupingTests
|
|
315
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CATEGORIES": [
|
|
3
|
+
{
|
|
4
|
+
"category": "procedure",
|
|
5
|
+
"filters": [
|
|
6
|
+
{
|
|
7
|
+
"backoffice_user_id": null,
|
|
8
|
+
"category": "procedure",
|
|
9
|
+
"description": "Descripción moderadamente larga",
|
|
10
|
+
"filter_params": [
|
|
11
|
+
{
|
|
12
|
+
"assigned_user": null
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": 1,
|
|
16
|
+
"name": "Sin Asignar",
|
|
17
|
+
"order": 1,
|
|
18
|
+
"pinned": true,
|
|
19
|
+
"visible": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"backoffice_user_id": null,
|
|
23
|
+
"category": "procedure",
|
|
24
|
+
"description": "Filtro",
|
|
25
|
+
"filter_params": [],
|
|
26
|
+
"id": 7,
|
|
27
|
+
"name": "Todos Asignados",
|
|
28
|
+
"order": 2,
|
|
29
|
+
"pinned": true,
|
|
30
|
+
"visible": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"backoffice_user_id": "2",
|
|
34
|
+
"category": "procedure",
|
|
35
|
+
"description": "",
|
|
36
|
+
"filter_params": [
|
|
37
|
+
{
|
|
38
|
+
"key": "Key",
|
|
39
|
+
"values": "Values"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"key": "Key",
|
|
43
|
+
"values": "Values"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"id": 3,
|
|
47
|
+
"name": "Filtro Custom Muy Largo",
|
|
48
|
+
"order": 1,
|
|
49
|
+
"pinned": false,
|
|
50
|
+
"visible": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"backoffice_user_id": "2",
|
|
54
|
+
"category": "procedure",
|
|
55
|
+
"description": "",
|
|
56
|
+
"filter_params": [
|
|
57
|
+
{
|
|
58
|
+
"key": "Key",
|
|
59
|
+
"values": "Values"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"key": "Key",
|
|
63
|
+
"values": "Values"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"id": 4,
|
|
67
|
+
"name": "Filtro Custom 1",
|
|
68
|
+
"order": 2,
|
|
69
|
+
"pinned": false,
|
|
70
|
+
"visible": true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"backoffice_user_id": "2",
|
|
74
|
+
"category": "procedure",
|
|
75
|
+
"description": "Custom",
|
|
76
|
+
"filter_params": [
|
|
77
|
+
{
|
|
78
|
+
"key": "Key",
|
|
79
|
+
"values": "Values"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "Key",
|
|
83
|
+
"values": "Values"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"id": 5,
|
|
87
|
+
"name": "Filtro Custom 2",
|
|
88
|
+
"order": 3,
|
|
89
|
+
"pinned": false,
|
|
90
|
+
"visible": true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"backoffice_user_id": "2",
|
|
94
|
+
"category": "procedure",
|
|
95
|
+
"description": "Descripcion",
|
|
96
|
+
"filter_params": [
|
|
97
|
+
{
|
|
98
|
+
"key": "Key",
|
|
99
|
+
"values": "Values"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "Key",
|
|
103
|
+
"values": "Values"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"id": 6,
|
|
107
|
+
"name": "Filtro Custom 3",
|
|
108
|
+
"order": 4,
|
|
109
|
+
"pinned": false,
|
|
110
|
+
"visible": true
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"id": 1,
|
|
114
|
+
"name": "TRÁMITES"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"category": "claim",
|
|
118
|
+
"filters": [
|
|
119
|
+
{
|
|
120
|
+
"backoffice_user_id": null,
|
|
121
|
+
"category": "claim",
|
|
122
|
+
"description": "Reclamos",
|
|
123
|
+
"filter_params": [
|
|
124
|
+
{
|
|
125
|
+
"assigned_user": null
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"id": 2,
|
|
129
|
+
"name": "Sin Asignar",
|
|
130
|
+
"order": 1,
|
|
131
|
+
"pinned": true,
|
|
132
|
+
"visible": true
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"backoffice_user_id": null,
|
|
136
|
+
"category": "claim",
|
|
137
|
+
"description": "Filtro Cliente",
|
|
138
|
+
"filter_params": [],
|
|
139
|
+
"id": 8,
|
|
140
|
+
"name": "Cliente",
|
|
141
|
+
"order": 2,
|
|
142
|
+
"pinned": true,
|
|
143
|
+
"visible": true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"backoffice_user_id": "2",
|
|
147
|
+
"category": "claim",
|
|
148
|
+
"description": "Descripcion",
|
|
149
|
+
"filter_params": [
|
|
150
|
+
{
|
|
151
|
+
"key": "Key",
|
|
152
|
+
"values": "Values"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "Key",
|
|
156
|
+
"values": "Values"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"id": 9,
|
|
160
|
+
"name": "Filtro Custom 4",
|
|
161
|
+
"order": 1,
|
|
162
|
+
"pinned": false,
|
|
163
|
+
"visible": true
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"id": 2,
|
|
167
|
+
"name": "RECLAMOS"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"category": "test",
|
|
171
|
+
"filters": [
|
|
172
|
+
{
|
|
173
|
+
"backoffice_user_id": null,
|
|
174
|
+
"category": "test",
|
|
175
|
+
"description": "Categoría de prueba",
|
|
176
|
+
"filter_params": [
|
|
177
|
+
{
|
|
178
|
+
"assigned_user": null
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"id": 2,
|
|
182
|
+
"name": "Sin Asignar",
|
|
183
|
+
"order": 1,
|
|
184
|
+
"pinned": true,
|
|
185
|
+
"visible": true
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"id": 3,
|
|
189
|
+
"name": "PRUEBA"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"CATEGORIES_CONFIG": {
|
|
193
|
+
"procedure": {
|
|
194
|
+
"avatarPalette": [
|
|
195
|
+
{
|
|
196
|
+
"backgroundColor": "var(--identitySolidTone1)",
|
|
197
|
+
"color": "light",
|
|
198
|
+
"colorTheme": "light"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"icon": "IconFileDescription"
|
|
202
|
+
},
|
|
203
|
+
"claim": {
|
|
204
|
+
"avatarPalette": [
|
|
205
|
+
{
|
|
206
|
+
"backgroundColor": "var(--identitySolidTone3)",
|
|
207
|
+
"color": "light",
|
|
208
|
+
"colorTheme": "light"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"icon": "IconMessageExclamation"
|
|
212
|
+
},
|
|
213
|
+
"test": {
|
|
214
|
+
"avatarPalette": [
|
|
215
|
+
{
|
|
216
|
+
"backgroundColor": "var(--identitySolidTone4)",
|
|
217
|
+
"color": "light",
|
|
218
|
+
"colorTheme": "light"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"icon": "IconPencil"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"DATA_TEST_ID": "customCollapsedId",
|
|
225
|
+
"MISC": {
|
|
226
|
+
"HOVERABLE_KEY": "data-test-hover",
|
|
227
|
+
"HOVERABLE_VALUE": "true",
|
|
228
|
+
"HTML_ELEMENTS": {
|
|
229
|
+
"ARTICLE": "article",
|
|
230
|
+
"DIV": "div",
|
|
231
|
+
"HEADER": "header"
|
|
232
|
+
},
|
|
233
|
+
"INDEX_PLACEHOLDER": "{{index}}",
|
|
234
|
+
"SEARCH_STRING": "test",
|
|
235
|
+
"SHIELD_KEY": "style",
|
|
236
|
+
"SHIELD_VALUE": "height: 100vh; left: 0; position: fixed; top: 0; width: 100vw; z-index: 9999;",
|
|
237
|
+
"TESTING_SHIELD": "testingShield"
|
|
238
|
+
},
|
|
239
|
+
"NO_FILTERS_TEXT": "Agrega uno para tener un acceso desde este panel.",
|
|
240
|
+
"NO_FILTERS_TITLE": "No hay filtros personalizados",
|
|
241
|
+
"PANEL_TITLE": "Filtros rápidos",
|
|
242
|
+
"POSITION": "left",
|
|
243
|
+
"TEST_IDS": {
|
|
244
|
+
"categoryHeaderAvatar": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.avatar",
|
|
245
|
+
"categoryHeaderCollapse": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.collapseButton",
|
|
246
|
+
"categoryHeaderTitle": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.label",
|
|
247
|
+
"categoryItemClientDeleteButton": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.deleteButton",
|
|
248
|
+
"categoryItemClientDeleteButtonTooltip": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.deleteButtonTooltip",
|
|
249
|
+
"categoryItemClientEditButton": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.editButton",
|
|
250
|
+
"categoryItemClientEditButtonTooltip": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.editButtonTooltip",
|
|
251
|
+
"categoryItemClientName": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.name",
|
|
252
|
+
"categoryItemClientNameContainer": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.nameContainer",
|
|
253
|
+
"categoryItemPinnedIcon": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.clientFilter.{{index}}.pinned",
|
|
254
|
+
"categoryItemUserDeleteButton": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.{{index}}.deleteButton",
|
|
255
|
+
"categoryItemUserDeleteButtonTooltip": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.{{index}}.deleteButtonTooltip",
|
|
256
|
+
"categoryItemUserEditButton": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.{{index}}.editButton",
|
|
257
|
+
"categoryItemUserEditButtonTooltip": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.{{index}}.editButtonTooltip",
|
|
258
|
+
"categoryItemUserName": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.{{index}}.name",
|
|
259
|
+
"categoryItemUserNameContainer": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.{{index}}.nameContainer",
|
|
260
|
+
"emptyCategoryDescription": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryEmpty.description",
|
|
261
|
+
"emptyCategoryIcon": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryEmpty.icon",
|
|
262
|
+
"emptyCategoryTitle": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryEmpty.title",
|
|
263
|
+
"expandButton": "customCollapsedId.groupingPanel.collapsedPanelContent.expandButton",
|
|
264
|
+
"headerAddFilter": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.addFilterButton",
|
|
265
|
+
"headerCollapseButton": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.collapseButton",
|
|
266
|
+
"headerCollapseButtonTooltip": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.collapseButtonTooltip",
|
|
267
|
+
"headerSearchButton": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.searchButton",
|
|
268
|
+
"headerSearchButtonTooltip": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.searchButtonTooltip",
|
|
269
|
+
"headerSearchField": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.searchField",
|
|
270
|
+
"headerSearchFieldCustomAction": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.customSearchAction",
|
|
271
|
+
"headerTitle": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentHeader.title",
|
|
272
|
+
"persistentFilterContainer": "customCollapsedId.groupingPanel.expandedPanelContent.expandedPanelContentCategory.{{category}}.expandedPanelContentCategoryItem.userFilter.persistentFilter.nameContainer",
|
|
273
|
+
"popperLabel": "customCollapsedId.groupingPanel.expandedPanelContent.popper.label",
|
|
274
|
+
"popperTitle": "customCollapsedId.groupingPanel.expandedPanelContent.popper.title"
|
|
275
|
+
},
|
|
276
|
+
"TOOLTIPS_CONTENT_MAP": {
|
|
277
|
+
"collapseButton": "Colapsar panel",
|
|
278
|
+
"deleteButton": "Eliminar filtro",
|
|
279
|
+
"editButton": "Editar filtro",
|
|
280
|
+
"searchButton": "Buscar filtros"
|
|
281
|
+
}
|
|
282
|
+
}
|