@datarailsshared/dr_renderer 1.3.59 → 1.4.5

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/src/index.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ export * from './types';
2
+ import DataFormatterType = require('./dataformatter');
3
+ import * as ErrorTypes from './types/errors';
4
+
5
+ declare module '*.css' {
6
+ const content: { [className: string]: string };
7
+ export default content;
8
+ }
9
+
10
+ declare namespace DrRenderFactory {
11
+ interface ColorsOptions {
12
+ colors: string[];
13
+ variance_color: string | null;
14
+ }
15
+
16
+ interface InitOptions {
17
+ $: any;
18
+ window: Window;
19
+ document: Document;
20
+ Handsontable?: any;
21
+ }
22
+
23
+ interface HighchartsRendererOptions {
24
+ $: any;
25
+ document: Document;
26
+ Highcharts: any;
27
+ default_colors: ColorsOptions;
28
+ highchartsRenderer: any;
29
+ lodash: any;
30
+ moment_lib: any;
31
+ isNewAngular: boolean;
32
+ }
33
+
34
+ interface Factory {
35
+ init($: any, window: Window, document: Document, Handsontable?: any): void;
36
+ getInitHighchartsRenderer(
37
+ $: any,
38
+ document: Document,
39
+ Highcharts: any,
40
+ default_colors: ColorsOptions,
41
+ highchartsRenderer: any,
42
+ lodash: any,
43
+ moment_lib: any,
44
+ isNewAngular: boolean
45
+ ): any;
46
+ getInitPublishedItemsRenderer(publishedItemsRenderer: any, bind?: any): any;
47
+
48
+ DataFormatter: typeof DataFormatterType;
49
+
50
+ // Error types and classes
51
+ RendererErrorCodes: typeof ErrorTypes.RendererErrorCodes;
52
+ BaseRendererError: typeof ErrorTypes.BaseRendererError;
53
+ TooMuchDataError: typeof ErrorTypes.TooMuchDataError;
54
+ NoDataError: typeof ErrorTypes.NoDataError;
55
+ DataConflictError: typeof ErrorTypes.DataConflictError;
56
+ GaugeConfigurationError: typeof ErrorTypes.GaugeConfigurationError;
57
+ GenericRenderingError: typeof ErrorTypes.GenericRenderingError;
58
+ GenericComputationalError: typeof ErrorTypes.GenericComputationalError;
59
+ }
60
+ }
61
+
62
+ declare const dr_render_factory: DrRenderFactory.Factory;
63
+ export = dr_render_factory;
package/src/index.js CHANGED
@@ -4,6 +4,7 @@ const initPivotTable = require('./pivottable');
4
4
  const initDRPivotTable = require('./dr_pivottable');
5
5
  const initNovixRenderer = require('./novix_renderer');
6
6
  const DataFormatter = require('./dataformatter');
7
+ const errors = require('./errors');
7
8
 
8
9
  let dr_render_factory = {};
9
10
 
@@ -24,5 +25,17 @@ dr_render_factory.getInitPublishedItemsRenderer = function (publishedItemsRender
24
25
  return getPublishedItemsRenderer.bind(bind)(publishedItemsRenderer);
25
26
  }
26
27
 
28
+ dr_render_factory.DataFormatter = DataFormatter;
29
+
30
+ // Export error types and classes
31
+ dr_render_factory.RendererErrorCodes = errors.RendererErrorCodes;
32
+ dr_render_factory.BaseRendererError = errors.BaseRendererError;
33
+ dr_render_factory.TooMuchDataError = errors.TooMuchDataError;
34
+ dr_render_factory.NoDataError = errors.NoDataError;
35
+ dr_render_factory.DataConflictError = errors.DataConflictError;
36
+ dr_render_factory.GaugeConfigurationError = errors.GaugeConfigurationError;
37
+ dr_render_factory.GenericRenderingError = errors.GenericRenderingError;
38
+ dr_render_factory.GenericComputationalError = errors.GenericComputationalError;
39
+
27
40
  //const $ = require( "jquery" )( window );
28
- module.exports = dr_render_factory;
41
+ module.exports = dr_render_factory;
package/src/pivot.css CHANGED
@@ -5,17 +5,6 @@
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
-
19
8
  table.pvtTable {
20
9
  font-size: 8pt;
21
10
  text-align: left;