@ic3/reporting-api 8.0.0-alpha.6 → 8.0.0-rc.3

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.
Files changed (83) hide show
  1. package/dist/ApiUtils.d.ts +10 -0
  2. package/dist/ApiUtils.js +25 -1
  3. package/dist/ApiUtils.js.map +1 -1
  4. package/dist/INotification.d.ts +32 -0
  5. package/dist/INotification.js +3 -0
  6. package/dist/INotification.js.map +1 -0
  7. package/dist/IPluginDefinition.d.ts +4 -1
  8. package/dist/IReporting.d.ts +41 -4
  9. package/dist/IThemeManager.d.ts +13 -18
  10. package/dist/IThemeManager.js.map +1 -1
  11. package/dist/ITidyTableTransformation.d.ts +20 -1
  12. package/dist/IWidgetVariantManager.d.ts +20 -2
  13. package/dist/LazyTreeView.d.ts +43 -1
  14. package/dist/LazyTreeView.js +5 -1
  15. package/dist/LazyTreeView.js.map +1 -1
  16. package/dist/Loader.d.ts +10 -0
  17. package/dist/Loader.js +33 -0
  18. package/dist/Loader.js.map +1 -0
  19. package/dist/PublicContext.d.ts +75 -10
  20. package/dist/PublicContext.js.map +1 -1
  21. package/dist/PublicLayout.d.ts +6 -6
  22. package/dist/PublicTemplate.d.ts +161 -58
  23. package/dist/PublicTemplate.js +16 -1
  24. package/dist/PublicTemplate.js.map +1 -1
  25. package/dist/PublicTemplateForm.d.ts +131 -29
  26. package/dist/PublicTemplateForm.js +7 -1
  27. package/dist/PublicTemplateForm.js.map +1 -1
  28. package/dist/PublicTheme.d.ts +114 -69
  29. package/dist/PublicTheme.js.map +1 -1
  30. package/dist/PublicTidyColumn.d.ts +327 -259
  31. package/dist/PublicTidyColumn.js +48 -2
  32. package/dist/PublicTidyColumn.js.map +1 -1
  33. package/dist/PublicTidyHistogram.d.ts +24 -0
  34. package/dist/PublicTidyHistogram.js +77 -0
  35. package/dist/PublicTidyHistogram.js.map +1 -0
  36. package/dist/PublicTidyMath.d.ts +49 -45
  37. package/dist/PublicTidyMath.js +0 -280
  38. package/dist/PublicTidyMath.js.map +1 -1
  39. package/dist/PublicTidyTable.d.ts +170 -154
  40. package/dist/PublicTidyTableInteractions.d.ts +30 -23
  41. package/dist/PublicTidyTableInteractions.js +5 -4
  42. package/dist/PublicTidyTableInteractions.js.map +1 -1
  43. package/dist/PublicTidyTableTypes.d.ts +133 -55
  44. package/dist/PublicTidyTableTypes.js +35 -18
  45. package/dist/PublicTidyTableTypes.js.map +1 -1
  46. package/dist/PublicTidyTree.d.ts +27 -37
  47. package/dist/PublicTidyTree.js +30 -58
  48. package/dist/PublicTidyTree.js.map +1 -1
  49. package/dist/RemoteContainerUtils.d.ts +1 -1
  50. package/dist/RemoteContainerUtils.js +9 -1
  51. package/dist/RemoteContainerUtils.js.map +1 -1
  52. package/dist/ReportingVersion.d.ts +1 -1
  53. package/dist/ReportingVersion.js +1 -1
  54. package/dist/ReportingVersion.js.map +1 -1
  55. package/dist/index.d.ts +3 -0
  56. package/dist/index.js +3 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/theme/ThemeFilterAutocomplete.d.ts +30 -0
  59. package/dist/theme/ThemeFilterAutocomplete.js +23 -0
  60. package/dist/theme/ThemeFilterAutocomplete.js.map +1 -0
  61. package/dist/theme/ThemeFilterButtons.d.ts +28 -3
  62. package/dist/theme/ThemeFilterButtons.js +9 -3
  63. package/dist/theme/ThemeFilterButtons.js.map +1 -1
  64. package/dist/theme/ThemeFilterCheckboxes.d.ts +18 -0
  65. package/dist/theme/ThemeFilterCheckboxes.js +11 -0
  66. package/dist/theme/ThemeFilterCheckboxes.js.map +1 -0
  67. package/dist/theme/ThemeFilterSlider.d.ts +47 -0
  68. package/dist/theme/ThemeFilterSlider.js +29 -0
  69. package/dist/theme/ThemeFilterSlider.js.map +1 -0
  70. package/dist/theme/ThemeFilterTree.d.ts +70 -0
  71. package/dist/theme/ThemeFilterTree.js +11 -0
  72. package/dist/theme/ThemeFilterTree.js.map +1 -0
  73. package/dist/theme/ThemeGoogleMapMarker.d.ts +51 -0
  74. package/dist/theme/ThemeGoogleMapMarker.js +3 -0
  75. package/dist/theme/ThemeGoogleMapMarker.js.map +1 -0
  76. package/dist/theme/ThemeHtmlBox.d.ts +7 -1
  77. package/dist/theme/ThemePivotTable.d.ts +23 -0
  78. package/dist/theme/ThemePivotTable.js +21 -0
  79. package/dist/theme/ThemePivotTable.js.map +1 -0
  80. package/dist/theme/ThemeTable.d.ts +15 -0
  81. package/dist/theme/ThemeTable.js +5 -0
  82. package/dist/theme/ThemeTable.js.map +1 -0
  83. package/package.json +11 -10
@@ -1,10 +1,10 @@
1
1
  /// <reference types="google.maps" />
2
2
  /// <reference types="googlemaps" />
3
3
  /// <reference types="markerclustererplus" />
4
- import { ComponentsOverrides, ComponentsVariants } from "@material-ui/core";
4
+ import { ComponentsOverrides, ComponentsVariants } from "@mui/material";
5
5
  import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
6
6
  import { IWidgetLayoutDefinition } from "./PublicLayout";
7
- import { IThemeWidgetDefaults, IThemeWidgetVariant } from "./IThemeManager";
7
+ import { IThemeWidgetDefaults } from "./IThemeManager";
8
8
  import { AlertDialogClassKey } from "./theme/ThemeAlertDialog";
9
9
  import { AppClassKey } from "./theme/ThemeApp";
10
10
  import { DrilldownUserSelectMenuClassKey } from "./theme/ThemeDrilldownUserSelectMenu";
@@ -17,9 +17,17 @@ import { ReportAppMenuClassKey } from "./theme/ThemeReportAppMenu";
17
17
  import { WidgetBoxClassKey } from "./theme/ThemeWidgetBox";
18
18
  import { WidgetBoxContentMessageClassKey } from "./theme/ThemeWidgetBoxContentMessage";
19
19
  import { ReactElement } from "react";
20
- import { TypographyStyleOptions } from "@material-ui/core/styles/createTypography";
20
+ import { TypographyStyleOptions } from "@mui/material/styles/createTypography";
21
21
  import { Property } from "csstype";
22
- import { FilterButtonsClassKey } from "./theme/ThemeFilterButtons";
22
+ import { FilterButtonsClassKey, FilterButtonsProps } from "./theme/ThemeFilterButtons";
23
+ import { FilterSliderClassKey, FilterSliderProps } from "./theme/ThemeFilterSlider";
24
+ import { GoogleMapMarkerProps } from "./theme/ThemeGoogleMapMarker";
25
+ import { IPublicContext } from "./PublicContext";
26
+ import { TableClassKey, TableProps } from "./theme/ThemeTable";
27
+ import { PivotTableClassKey, PivotTableProps } from "./theme/ThemePivotTable";
28
+ export interface INoSchemaRendererOptions {
29
+ missingSchema: string;
30
+ }
23
31
  export declare type ThemeTextFormatter = {
24
32
  formatReport: ((value: any, locale: string) => string) | string;
25
33
  formatExcel?: string;
@@ -116,6 +124,12 @@ export interface ic3Palette {
116
124
  * Report Application Menu
117
125
  */
118
126
  reportAppMenu: string;
127
+ /**
128
+ * Darkens a color for an onhover effect
129
+ *
130
+ * If null or undefined, returns onHover color
131
+ */
132
+ onHover: (color?: Property.Color | undefined | null) => Property.Color;
119
133
  }
120
134
  interface MandatorySingleColors {
121
135
  /**
@@ -190,8 +204,9 @@ export interface ic3PaletteOptions {
190
204
  * Report Application Menu
191
205
  */
192
206
  reportAppMenu?: Property.Color;
207
+ onHover?: (color: Property.Color) => Property.Color;
193
208
  }
194
- declare module "@material-ui/core/styles/createPalette" {
209
+ declare module "@mui/material/styles/createPalette" {
195
210
  interface Palette {
196
211
  ic3: ic3Palette;
197
212
  }
@@ -205,7 +220,7 @@ export interface ic3Typography {
205
220
  export interface ic3TypographyOptions {
206
221
  amCharts4?: TypographyStyleOptions;
207
222
  }
208
- declare module "@material-ui/core/styles/createTypography" {
223
+ declare module "@mui/material/styles/createTypography" {
209
224
  interface Typography {
210
225
  ic3: ic3Typography;
211
226
  }
@@ -221,11 +236,13 @@ export interface ic3Theme {
221
236
  id: string;
222
237
  caption: string;
223
238
  cssClass: string;
239
+ loadFonts?: (continuation: () => void) => void;
224
240
  formatter: ThemeFormatters;
225
241
  /**
226
242
  * Icons used in tables and trees
227
243
  */
228
244
  icons: {
245
+ none: (className: string) => ReactElement | string;
229
246
  expanded: (className: string) => ReactElement | string;
230
247
  collapse: (className: string) => ReactElement | string;
231
248
  loading: (className: string) => ReactElement | string;
@@ -239,7 +256,6 @@ export interface ic3Theme {
239
256
  }>;
240
257
  googleMap: {
241
258
  options?: google.maps.MapOptions;
242
- markerOptions?: google.maps.Symbol;
243
259
  markerClustererOptions?: MarkerClustererOptions;
244
260
  };
245
261
  userMenu: {
@@ -280,18 +296,35 @@ export interface ic3Theme {
280
296
  */
281
297
  widgetDefaults?: IThemeWidgetDefaults;
282
298
  /**
283
- * Sort of named set of predefined options.
284
- *
285
- * <pre>
286
- * [plugin-id.template-id] -> [variant-id]
287
- * </pre>
299
+ * Styling for the sparklines in the sparkline transformation and the KPI card
288
300
  */
289
- widgetVariants?: Record<string, Record<string, IThemeWidgetVariant>>;
301
+ sparklineSettings: {
302
+ /**
303
+ * The width of the line in the sparkline
304
+ */
305
+ lineWidth: number;
306
+ /**
307
+ * The cursor when the user hovers over the sparkline
308
+ */
309
+ cursor: {
310
+ color: Property.Color;
311
+ /**
312
+ * The radius of the dot when hovering
313
+ */
314
+ radius: number;
315
+ /**
316
+ * The width of the stroke when hovering
317
+ */
318
+ width: number;
319
+ };
320
+ };
321
+ noSchemaRenderer?: (context: IPublicContext, options: INoSchemaRendererOptions) => ReactElement;
290
322
  }
291
323
  export interface ic3ThemeOptions {
292
324
  id: string;
293
325
  caption: string;
294
326
  cssClass?: string;
327
+ loadFonts?: (continuation: () => void) => void;
295
328
  formatter?: ThemeFormattersOptions;
296
329
  icons?: {
297
330
  expanded?: (className: string) => ReactElement | string;
@@ -319,50 +352,39 @@ export interface ic3ThemeOptions {
319
352
  };
320
353
  };
321
354
  /**
322
- * Default values.
355
+ * Default values (e.g., box options, chart options, etc..).
356
+ */
357
+ widgetDefaults?: IThemeWidgetDefaults;
358
+ /**
359
+ * The first defined layout is used as the default one.
360
+ */
361
+ layouts: IWidgetLayoutDefinition[];
362
+ /**
363
+ * Styling for the sparklines in the sparkline transformation and the KPI card
323
364
  */
324
- widgetDefaults?: {
365
+ sparklineSettings?: {
325
366
  /**
326
- * Default values for widget boxes.
327
- *
328
- * <pre>
329
- * IWidgetBoxDefinition
330
- * </pre>
367
+ * The width of the line in the sparkline
331
368
  */
332
- box?: Record<string, any>;
369
+ lineWidth: number;
333
370
  /**
334
- * Default values for widget chart options.
335
- *
336
- * <pre>
337
- * IWidgetDefinition
338
- * dataRenderOptions: IWidgetDataRenderDefinition
339
- * chartOptions: IChartTemplateDataRenderDefinition
340
- * </pre>
341
- *
342
- * Lookup order:
343
- *
344
- * <pre>
345
- * plugin-id.template-id.option
346
- * plugin-id.option
347
- * option
348
- * </pre>
371
+ * The cursor when the user hovers over the sparkline
349
372
  */
350
- options?: Record<string, any>;
373
+ cursor: {
374
+ color: Property.Color;
375
+ /**
376
+ * The radius of the dot when hovering
377
+ */
378
+ radius: number;
379
+ /**
380
+ * The width of the stroke when hovering
381
+ */
382
+ width: number;
383
+ };
351
384
  };
352
- /**
353
- * Sort of named set of options.
354
- *
355
- * <pre>
356
- * [plugin-id.template-id] -> [variant-id]
357
- * </pre>
358
- */
359
- widgetVariants?: Record<string, Record<string, IThemeWidgetVariant>>;
360
- /**
361
- * The first defined layout is used as the default one.
362
- */
363
- layouts: IWidgetLayoutDefinition[];
385
+ noSchemaRenderer?: (context: IPublicContext, options: INoSchemaRendererOptions) => ReactElement;
364
386
  }
365
- declare module '@material-ui/core/styles/createTheme' {
387
+ declare module '@mui/material/styles/createTheme' {
366
388
  interface Theme {
367
389
  ic3: ic3Theme;
368
390
  }
@@ -373,70 +395,93 @@ declare module '@material-ui/core/styles/createTheme' {
373
395
  ic3: ic3ThemeOptions;
374
396
  }
375
397
  }
376
- declare module '@material-ui/core/styles/components' {
398
+ /**
399
+ * All Components using Material-UI like variants (using styled)
400
+ */
401
+ declare module '@mui/material/styles/components' {
377
402
  interface Components {
378
- AlertDialog: {
403
+ AlertDialog?: {
379
404
  styleOverrides?: ComponentsOverrides["AlertDialog"];
380
405
  };
381
- App: {
406
+ App?: {
382
407
  styleOverrides?: ComponentsOverrides["App"];
383
408
  };
384
- DrilldownUserSelectMenu: {
409
+ DrilldownUserSelectMenu?: {
385
410
  styleOverrides?: ComponentsOverrides["DrilldownUserSelectMenu"];
386
411
  };
387
- ErrorRenderer: {
412
+ ErrorRenderer?: {
388
413
  styleOverrides?: ComponentsOverrides["ErrorRenderer"];
389
414
  };
390
- HtmlBox: {
391
- styleOverrides?: ComponentsOverrides["HtmlBox"];
392
- variants?: ComponentsVariants["HtmlBox"];
393
- };
394
- FilterButtons: {
415
+ FilterButtons?: {
395
416
  styleOverrides?: ComponentsOverrides["FilterButtons"];
396
417
  variants?: ComponentsVariants["FilterButtons"];
397
418
  };
398
- Layout: {
419
+ FilterSlider?: {
420
+ styleOverrides?: ComponentsOverrides["FilterSlider"];
421
+ variants?: ComponentsVariants["FilterSlider"];
422
+ };
423
+ GoogleMapMarker?: {
424
+ variants?: ComponentsVariants['GoogleMapMarker'];
425
+ };
426
+ HtmlBox?: {
427
+ styleOverrides?: ComponentsOverrides["HtmlBox"];
428
+ variants?: ComponentsVariants["HtmlBox"];
429
+ };
430
+ Layout?: {
399
431
  styleOverrides?: ComponentsOverrides["Layout"];
400
432
  };
401
- LayoutPage: {
433
+ LayoutPage?: {
402
434
  styleOverrides?: ComponentsOverrides["LayoutPage"];
403
435
  };
404
- ReportAppBar: {
436
+ PivotTable?: {
437
+ styleOverrides?: ComponentsOverrides["PivotTable"];
438
+ };
439
+ ReportAppBar?: {
405
440
  styleOverrides?: ComponentsOverrides["ReportAppBar"];
406
441
  };
407
- ReportAppMenu: {
442
+ ReportAppMenu?: {
408
443
  styleOverrides?: ComponentsOverrides["ReportAppMenu"];
409
444
  };
410
- WidgetBox: {
445
+ Table?: {
446
+ styleOverrides?: ComponentsOverrides["Table"];
447
+ };
448
+ WidgetBox?: {
411
449
  variants?: ComponentsVariants['WidgetBox'];
412
450
  styleOverrides?: ComponentsOverrides["WidgetBox"];
413
451
  };
414
- WidgetBoxContentMessage: {
452
+ WidgetBoxContentMessage?: {
415
453
  styleOverrides?: ComponentsOverrides["WidgetBoxContentMessage"];
416
454
  };
417
455
  }
418
456
  }
419
- declare module '@material-ui/core/styles/overrides' {
457
+ declare module '@mui/material/styles/overrides' {
420
458
  interface ComponentNameToClassKey {
421
459
  AlertDialog: AlertDialogClassKey;
422
460
  App: AppClassKey;
423
461
  DrilldownUserSelectMenu: DrilldownUserSelectMenuClassKey;
424
462
  ErrorRenderer: ErrorRendererClassKey;
425
463
  FilterButtons: FilterButtonsClassKey;
464
+ FilterSlider: FilterSliderClassKey;
426
465
  HtmlBox: HtmlBoxClassKey;
427
466
  Layout: LayoutClassKey;
428
467
  LayoutPage: LayoutPageClassKey;
468
+ PivotTable: PivotTableClassKey;
429
469
  ReportAppBar: ReportAppBarClassKey;
430
470
  ReportAppMenu: ReportAppMenuClassKey;
471
+ Table: TableClassKey;
431
472
  WidgetBox: WidgetBoxClassKey;
432
473
  WidgetBoxContentMessage: WidgetBoxContentMessageClassKey;
433
474
  }
434
475
  }
435
- declare module '@material-ui/core/styles/props' {
476
+ declare module '@mui/material/styles/props' {
436
477
  interface ComponentsPropsList {
478
+ FilterButtons: FilterButtonsProps;
479
+ FilterSlider: FilterSliderProps;
480
+ GoogleMapMarker: GoogleMapMarkerProps;
437
481
  HtmlBox: HtmlBoxProps;
482
+ PivotTable: PivotTableProps;
483
+ Table: TableProps;
438
484
  WidgetBox: Record<never, any>;
439
- FilterButtons: Record<never, any>;
440
485
  }
441
486
  }
442
487
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA6QA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
1
+ {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AAgSA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}