@sis-cc/dotstatsuite-visions 7.9.0 → 7.10.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/es/Dataflow/Dataflow.js +23 -16
- package/es/Dataflow/index.js +1 -0
- package/lib/Dataflow/Dataflow.js +23 -16
- package/package.json +1 -1
package/es/Dataflow/Dataflow.js
CHANGED
|
@@ -142,6 +142,8 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
142
142
|
handleUrl = _ref2.handleUrl,
|
|
143
143
|
label = _ref2.label,
|
|
144
144
|
labels = _ref2.labels,
|
|
145
|
+
_ref2$dimensions = _ref2.dimensions,
|
|
146
|
+
dimensions = _ref2$dimensions === undefined ? [] : _ref2$dimensions,
|
|
145
147
|
_ref2$highlights = _ref2.highlights,
|
|
146
148
|
highlights = _ref2$highlights === undefined ? [] : _ref2$highlights,
|
|
147
149
|
_ref2$categories = _ref2.categories,
|
|
@@ -175,12 +177,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
175
177
|
{ className: classes.header, 'data-testid': testId + '_title' },
|
|
176
178
|
React.createElement(
|
|
177
179
|
Typography,
|
|
178
|
-
{
|
|
179
|
-
variant: 'h6',
|
|
180
|
-
color: 'primary',
|
|
181
|
-
display: 'inline',
|
|
182
|
-
className: classes.container
|
|
183
|
-
},
|
|
180
|
+
{ variant: 'h6', color: 'primary', display: 'inline' },
|
|
184
181
|
React.createElement(
|
|
185
182
|
Link,
|
|
186
183
|
{
|
|
@@ -234,6 +231,21 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
234
231
|
React.createElement(
|
|
235
232
|
CardContent,
|
|
236
233
|
{ className: classes.cardContent },
|
|
234
|
+
!R.isEmpty(dimensions) && React.createElement(
|
|
235
|
+
Typography,
|
|
236
|
+
{
|
|
237
|
+
variant: 'body2',
|
|
238
|
+
color: 'textSecondary',
|
|
239
|
+
'data-testid': testId + '_dimensions'
|
|
240
|
+
},
|
|
241
|
+
React.createElement(
|
|
242
|
+
'strong',
|
|
243
|
+
null,
|
|
244
|
+
R.prop('dimensions')(labels),
|
|
245
|
+
':\xA0'
|
|
246
|
+
),
|
|
247
|
+
React.createElement(HTMLRenderer, { html: R.join(', ', dimensions) })
|
|
248
|
+
),
|
|
237
249
|
R.map(function (_ref3) {
|
|
238
250
|
var field = _ref3[0],
|
|
239
251
|
fieldHighlights = _ref3[1];
|
|
@@ -243,7 +255,6 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
243
255
|
variant: 'body2',
|
|
244
256
|
key: field,
|
|
245
257
|
color: 'textSecondary',
|
|
246
|
-
className: classes.container,
|
|
247
258
|
'data-testid': testId + '_highlight_' + field
|
|
248
259
|
},
|
|
249
260
|
React.createElement(
|
|
@@ -266,12 +277,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
266
277
|
categorie = _ref4[1];
|
|
267
278
|
return React.createElement(
|
|
268
279
|
Typography,
|
|
269
|
-
{
|
|
270
|
-
variant: 'body2',
|
|
271
|
-
key: field,
|
|
272
|
-
color: 'textSecondary',
|
|
273
|
-
className: classes.container
|
|
274
|
-
},
|
|
280
|
+
{ variant: 'body2', key: field, color: 'textSecondary' },
|
|
275
281
|
React.createElement(
|
|
276
282
|
'strong',
|
|
277
283
|
null,
|
|
@@ -289,7 +295,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
289
295
|
R.not(R.isEmpty(categories)) && React.createElement(Divider, { className: classes.divider }),
|
|
290
296
|
label && React.createElement(
|
|
291
297
|
Typography,
|
|
292
|
-
{ variant: 'body2', color: 'textSecondary'
|
|
298
|
+
{ variant: 'body2', color: 'textSecondary' },
|
|
293
299
|
React.createElement(
|
|
294
300
|
'strong',
|
|
295
301
|
null,
|
|
@@ -305,7 +311,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
305
311
|
{ className: classes.footer, disableSpacing: true },
|
|
306
312
|
React.createElement(
|
|
307
313
|
Typography,
|
|
308
|
-
{ variant: 'caption', color: 'textSecondary'
|
|
314
|
+
{ variant: 'caption', color: 'textSecondary' },
|
|
309
315
|
React.createElement(
|
|
310
316
|
'strong',
|
|
311
317
|
null,
|
|
@@ -321,7 +327,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
321
327
|
),
|
|
322
328
|
React.createElement(
|
|
323
329
|
Typography,
|
|
324
|
-
{ variant: 'caption', color: 'textSecondary'
|
|
330
|
+
{ variant: 'caption', color: 'textSecondary' },
|
|
325
331
|
R.prop('note')(labels)
|
|
326
332
|
)
|
|
327
333
|
)
|
|
@@ -374,6 +380,7 @@ Dataflow.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
374
380
|
date: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
375
381
|
}),
|
|
376
382
|
highlights: PropTypes.array,
|
|
383
|
+
dimensions: PropTypes.array,
|
|
377
384
|
categories: PropTypes.array,
|
|
378
385
|
children: PropTypes.node,
|
|
379
386
|
HTMLRenderer: PropTypes.func
|
package/es/Dataflow/index.js
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
* note: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
28
28
|
* date: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
29
29
|
* }),
|
|
30
|
+
* dimensions: PropTypes.array,
|
|
30
31
|
* highlights: PropTypes.array,
|
|
31
32
|
* categories: PropTypes.array,
|
|
32
33
|
* HTMLRenderer: PropTypes.func,
|
package/lib/Dataflow/Dataflow.js
CHANGED
|
@@ -196,6 +196,8 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
196
196
|
handleUrl = _ref2.handleUrl,
|
|
197
197
|
label = _ref2.label,
|
|
198
198
|
labels = _ref2.labels,
|
|
199
|
+
_ref2$dimensions = _ref2.dimensions,
|
|
200
|
+
dimensions = _ref2$dimensions === undefined ? [] : _ref2$dimensions,
|
|
199
201
|
_ref2$highlights = _ref2.highlights,
|
|
200
202
|
highlights = _ref2$highlights === undefined ? [] : _ref2$highlights,
|
|
201
203
|
_ref2$categories = _ref2.categories,
|
|
@@ -229,12 +231,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
229
231
|
{ className: classes.header, 'data-testid': testId + '_title' },
|
|
230
232
|
_react2.default.createElement(
|
|
231
233
|
_Typography2.default,
|
|
232
|
-
{
|
|
233
|
-
variant: 'h6',
|
|
234
|
-
color: 'primary',
|
|
235
|
-
display: 'inline',
|
|
236
|
-
className: classes.container
|
|
237
|
-
},
|
|
234
|
+
{ variant: 'h6', color: 'primary', display: 'inline' },
|
|
238
235
|
_react2.default.createElement(
|
|
239
236
|
_Link2.default,
|
|
240
237
|
{
|
|
@@ -288,6 +285,21 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
288
285
|
_react2.default.createElement(
|
|
289
286
|
_CardContent2.default,
|
|
290
287
|
{ className: classes.cardContent },
|
|
288
|
+
!R.isEmpty(dimensions) && _react2.default.createElement(
|
|
289
|
+
_Typography2.default,
|
|
290
|
+
{
|
|
291
|
+
variant: 'body2',
|
|
292
|
+
color: 'textSecondary',
|
|
293
|
+
'data-testid': testId + '_dimensions'
|
|
294
|
+
},
|
|
295
|
+
_react2.default.createElement(
|
|
296
|
+
'strong',
|
|
297
|
+
null,
|
|
298
|
+
R.prop('dimensions')(labels),
|
|
299
|
+
':\xA0'
|
|
300
|
+
),
|
|
301
|
+
_react2.default.createElement(HTMLRenderer, { html: R.join(', ', dimensions) })
|
|
302
|
+
),
|
|
291
303
|
R.map(function (_ref3) {
|
|
292
304
|
var field = _ref3[0],
|
|
293
305
|
fieldHighlights = _ref3[1];
|
|
@@ -297,7 +309,6 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
297
309
|
variant: 'body2',
|
|
298
310
|
key: field,
|
|
299
311
|
color: 'textSecondary',
|
|
300
|
-
className: classes.container,
|
|
301
312
|
'data-testid': testId + '_highlight_' + field
|
|
302
313
|
},
|
|
303
314
|
_react2.default.createElement(
|
|
@@ -320,12 +331,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
320
331
|
categorie = _ref4[1];
|
|
321
332
|
return _react2.default.createElement(
|
|
322
333
|
_Typography2.default,
|
|
323
|
-
{
|
|
324
|
-
variant: 'body2',
|
|
325
|
-
key: field,
|
|
326
|
-
color: 'textSecondary',
|
|
327
|
-
className: classes.container
|
|
328
|
-
},
|
|
334
|
+
{ variant: 'body2', key: field, color: 'textSecondary' },
|
|
329
335
|
_react2.default.createElement(
|
|
330
336
|
'strong',
|
|
331
337
|
null,
|
|
@@ -343,7 +349,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
343
349
|
R.not(R.isEmpty(categories)) && _react2.default.createElement(_Divider2.default, { className: classes.divider }),
|
|
344
350
|
label && _react2.default.createElement(
|
|
345
351
|
_Typography2.default,
|
|
346
|
-
{ variant: 'body2', color: 'textSecondary'
|
|
352
|
+
{ variant: 'body2', color: 'textSecondary' },
|
|
347
353
|
_react2.default.createElement(
|
|
348
354
|
'strong',
|
|
349
355
|
null,
|
|
@@ -359,7 +365,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
359
365
|
{ className: classes.footer, disableSpacing: true },
|
|
360
366
|
_react2.default.createElement(
|
|
361
367
|
_Typography2.default,
|
|
362
|
-
{ variant: 'caption', color: 'textSecondary'
|
|
368
|
+
{ variant: 'caption', color: 'textSecondary' },
|
|
363
369
|
_react2.default.createElement(
|
|
364
370
|
'strong',
|
|
365
371
|
null,
|
|
@@ -375,7 +381,7 @@ var Dataflow = function Dataflow(_ref2) {
|
|
|
375
381
|
),
|
|
376
382
|
_react2.default.createElement(
|
|
377
383
|
_Typography2.default,
|
|
378
|
-
{ variant: 'caption', color: 'textSecondary'
|
|
384
|
+
{ variant: 'caption', color: 'textSecondary' },
|
|
379
385
|
R.prop('note')(labels)
|
|
380
386
|
)
|
|
381
387
|
)
|
|
@@ -428,6 +434,7 @@ Dataflow.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
428
434
|
date: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element])
|
|
429
435
|
}),
|
|
430
436
|
highlights: _propTypes2.default.array,
|
|
437
|
+
dimensions: _propTypes2.default.array,
|
|
431
438
|
categories: _propTypes2.default.array,
|
|
432
439
|
children: _propTypes2.default.node,
|
|
433
440
|
HTMLRenderer: _propTypes2.default.func
|