@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.3.27",
3
+ "version": "1.3.30",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -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="fa fa-plus dr-icon-add"></i> ';
518
- arrowExpanded = opts.arrowExpanded != null ? opts.arrowExpanded : opts.arrowExpanded = '<i class="fa fa-minus dr-icon-minus"></i> ';
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 = $('<div class="noData"><i class="fa fa-info"></i> There are too many rows to display in the table.<br>Please filter or change the table type in options.</div>');
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="fa fa-filter"></i>';
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 .fa,
232
- table.pvtTable.newPvtTable thead tr th .dr-icon-add,
233
- table.pvtTable.newPvtTable thead tr th .dr-icon-minus {
234
- padding: 2px;
235
- background-color: #ffffff;
236
- border-radius: 2px;
237
- margin-right: 2px;
238
- margin-left: 1px;
239
- font-size: 8px;
240
- color: #151a41;
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="fa fa-filter"></i>'
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
  });