@datarailsshared/dr_renderer 1.3.27 → 1.3.30
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/package.json +1 -1
- package/src/dr_pivottable.js +8 -3
- package/src/highcharts_renderer.js +1 -1
- package/src/pivot.css +32 -18
- package/tests/highcharts_renderer.test.js +1 -1
package/package.json
CHANGED
package/src/dr_pivottable.js
CHANGED
@@ -514,8 +514,8 @@ let initDRPivotTable = function($, window, document) {
|
|
514
514
|
isColHideOnExpand = (ref5 = opts.colSubtotalDisplay) != null ? ref5.hideOnExpand : !opts.chartOptions.table_options.show_subtotals_for_columns;
|
515
515
|
isColDisableExpandCollapse = (ref6 = opts.colSubtotalDisplay) != null ? ref6.disableExpandCollapse : void 0;
|
516
516
|
colDisableAfter = (ref7 = opts.colSubtotalDisplay) != null ? ref7.disableAfter != null ? ref7.disableAfter : ref7.disableAfter = 9999 : void 0;
|
517
|
-
arrowCollapsed = opts.arrowCollapsed != null ? opts.arrowCollapsed : opts.arrowCollapsed = '<i class="
|
518
|
-
arrowExpanded = opts.arrowExpanded != null ? opts.arrowExpanded : opts.arrowExpanded = '<i class="
|
517
|
+
arrowCollapsed = opts.arrowCollapsed != null ? opts.arrowCollapsed : opts.arrowCollapsed = '<i class="dr-icon-add"></i> ';
|
518
|
+
arrowExpanded = opts.arrowExpanded != null ? opts.arrowExpanded : opts.arrowExpanded = '<i class="dr-icon-minus"></i> ';
|
519
519
|
colAttrs = pivotData.colAttrs;
|
520
520
|
rowAttrs = pivotData.rowAttrs;
|
521
521
|
rowKeys = pivotData.getRowKeys();
|
@@ -2476,7 +2476,12 @@ let initDRPivotTable = function($, window, document) {
|
|
2476
2476
|
}
|
2477
2477
|
|
2478
2478
|
if (tooMuch) {
|
2479
|
-
const defaultPlaceholder = $(
|
2479
|
+
const defaultPlaceholder = $(`
|
2480
|
+
<div class="noData--table-many-rows">
|
2481
|
+
<span><i class="noData-icon dr-icon-info"></i> There are too many rows to display in the table.</span>
|
2482
|
+
<span>Please filter or change the table type in options.</span>
|
2483
|
+
</div>
|
2484
|
+
`);
|
2480
2485
|
|
2481
2486
|
resultsArr.push($.pivotUtilities.errorHandling.getErrorPlaceholder(error_params) || defaultPlaceholder);
|
2482
2487
|
} else {
|
@@ -4294,7 +4294,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
4294
4294
|
let ret_str = '';
|
4295
4295
|
if (options && options.total_value_options && options.total_value_options.filter_options && options.total_value_options.filter_options.axis == tr_axis) {
|
4296
4296
|
//TODO add tooltip with description of filter
|
4297
|
-
ret_str += '<i class="
|
4297
|
+
ret_str += '<i class="dr-icon-filter-old"></i>';
|
4298
4298
|
}
|
4299
4299
|
|
4300
4300
|
return ret_str;
|
package/src/pivot.css
CHANGED
@@ -5,6 +5,17 @@
|
|
5
5
|
flex-direction: column;
|
6
6
|
}
|
7
7
|
|
8
|
+
.pivot-wrapper .noData--table-many-rows {
|
9
|
+
display: flex;
|
10
|
+
flex-direction: column;
|
11
|
+
}
|
12
|
+
.pivot-wrapper .noData--table-many-rows > *:first-child {
|
13
|
+
display: flex;
|
14
|
+
align-items: center;
|
15
|
+
justify-content: center;
|
16
|
+
line-height: 25px;
|
17
|
+
}
|
18
|
+
|
8
19
|
table.pvtTable {
|
9
20
|
font-size: 8pt;
|
10
21
|
text-align: left;
|
@@ -228,16 +239,27 @@ table.pvtTable.newPvtTable thead tr th {
|
|
228
239
|
border-right: 1px solid #fff;
|
229
240
|
}
|
230
241
|
|
231
|
-
table.pvtTable.newPvtTable thead tr th
|
232
|
-
table.pvtTable.newPvtTable
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
242
|
+
table.pvtTable.newPvtTable thead tr th i,
|
243
|
+
table.pvtTable.newPvtTable tbody tr th i {
|
244
|
+
position: relative;
|
245
|
+
bottom: -1px;
|
246
|
+
background-color: #ffffff;
|
247
|
+
border-radius: 2px;
|
248
|
+
margin-right: 2px;
|
249
|
+
margin-left: 1px;
|
250
|
+
font-weight: bold;
|
251
|
+
font-size: 10px;
|
252
|
+
color: #151a41;
|
253
|
+
}
|
254
|
+
|
255
|
+
table.pvtTable.newPvtTable tbody tr th i {
|
256
|
+
bottom: -2px;
|
257
|
+
background-color: #dfe6ec;
|
258
|
+
}
|
259
|
+
|
260
|
+
table.pvtTable.newPvtTable thead tr th .dr-icon-filter-old,
|
261
|
+
table.pvtTable.newPvtTable tbody tr th .dr-icon-filter-old {
|
262
|
+
font-weight: normal;
|
241
263
|
}
|
242
264
|
|
243
265
|
table.pvtTable.newPvtTable.colorized tr th.colTotal,
|
@@ -261,14 +283,6 @@ table.pvtTable.newPvtTable tbody tr td.rowTotal {
|
|
261
283
|
border-color: #ffffff !important;
|
262
284
|
}
|
263
285
|
|
264
|
-
table.pvtTable.newPvtTable tbody tr th .fa {
|
265
|
-
padding: 2px;
|
266
|
-
background-color: #dfe6ec;
|
267
|
-
border-radius: 2px;
|
268
|
-
margin-right: 2px;
|
269
|
-
font-size: 8px;
|
270
|
-
}
|
271
|
-
|
272
286
|
table.pvtTable.newPvtTable tbody tr th,
|
273
287
|
table.pvtTable.newPvtTable tbody tr td {
|
274
288
|
border: 1px solid #dfe6ec;
|
@@ -917,7 +917,7 @@ describe('highcharts_renderer', () => {
|
|
917
917
|
|
918
918
|
it('should return filter icon for matching axis', () => {
|
919
919
|
const axis = 'row'
|
920
|
-
const expected = '<i class="
|
920
|
+
const expected = '<i class="dr-icon-filter-old"></i>'
|
921
921
|
const result = highchartsRenderer.getIconsForTotalOptions(options, axis)
|
922
922
|
expect(result).toEqual(expected)
|
923
923
|
});
|