@ic3/reporting-api 8.0.0-alpha.9 → 8.0.0-rc.4
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/dist/ApiUtils.d.ts +10 -0
- package/dist/ApiUtils.js +25 -1
- package/dist/ApiUtils.js.map +1 -1
- package/dist/INotification.d.ts +33 -0
- package/dist/INotification.js +3 -0
- package/dist/INotification.js.map +1 -0
- package/dist/IPluginDefinition.d.ts +4 -1
- package/dist/IReporting.d.ts +43 -4
- package/dist/IThemeManager.d.ts +1 -1
- package/dist/ITidyTableTransformation.d.ts +20 -1
- package/dist/ITypes.d.ts +3 -0
- package/dist/ITypes.js +3 -0
- package/dist/ITypes.js.map +1 -0
- package/dist/IWidgetVariantManager.d.ts +1 -1
- package/dist/LazyTreeView.d.ts +43 -1
- package/dist/LazyTreeView.js +5 -1
- package/dist/LazyTreeView.js.map +1 -1
- package/dist/Loader.d.ts +10 -0
- package/dist/Loader.js +33 -0
- package/dist/Loader.js.map +1 -0
- package/dist/PublicContext.d.ts +75 -10
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicLayout.d.ts +13 -29
- package/dist/PublicTemplate.d.ts +161 -58
- package/dist/PublicTemplate.js +16 -1
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +183 -20
- package/dist/PublicTemplateForm.js +7 -1
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTheme.d.ts +165 -69
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +331 -259
- package/dist/PublicTidyColumn.js +48 -2
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyHistogram.d.ts +24 -0
- package/dist/PublicTidyHistogram.js +77 -0
- package/dist/PublicTidyHistogram.js.map +1 -0
- package/dist/PublicTidyMath.d.ts +49 -45
- package/dist/PublicTidyMath.js +0 -280
- package/dist/PublicTidyMath.js.map +1 -1
- package/dist/PublicTidyTable.d.ts +170 -154
- package/dist/PublicTidyTableInteractions.d.ts +34 -23
- package/dist/PublicTidyTableInteractions.js +5 -4
- package/dist/PublicTidyTableInteractions.js.map +1 -1
- package/dist/PublicTidyTableTypes.d.ts +133 -55
- package/dist/PublicTidyTableTypes.js +35 -18
- package/dist/PublicTidyTableTypes.js.map +1 -1
- package/dist/PublicTidyTree.d.ts +27 -37
- package/dist/PublicTidyTree.js +30 -58
- package/dist/PublicTidyTree.js.map +1 -1
- package/dist/RemoteContainerUtils.d.ts +1 -1
- package/dist/RemoteContainerUtils.js +9 -1
- package/dist/RemoteContainerUtils.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeFilterAutocomplete.d.ts +30 -0
- package/dist/theme/ThemeFilterAutocomplete.js +23 -0
- package/dist/theme/ThemeFilterAutocomplete.js.map +1 -0
- package/dist/theme/ThemeFilterButtons.d.ts +14 -2
- package/dist/theme/ThemeFilterButtons.js +4 -0
- package/dist/theme/ThemeFilterButtons.js.map +1 -1
- package/dist/theme/ThemeFilterCheckboxes.d.ts +18 -0
- package/dist/theme/ThemeFilterCheckboxes.js +11 -0
- package/dist/theme/ThemeFilterCheckboxes.js.map +1 -0
- package/dist/theme/ThemeFilterTree.d.ts +70 -0
- package/dist/theme/ThemeFilterTree.js +11 -0
- package/dist/theme/ThemeFilterTree.js.map +1 -0
- package/dist/theme/ThemeGoogleMapMarker.d.ts +51 -0
- package/dist/theme/ThemeGoogleMapMarker.js +3 -0
- package/dist/theme/ThemeGoogleMapMarker.js.map +1 -0
- package/dist/theme/ThemeHtmlBox.d.ts +7 -1
- package/dist/theme/ThemePivotTable.d.ts +23 -0
- package/dist/theme/ThemePivotTable.js +21 -0
- package/dist/theme/ThemePivotTable.js.map +1 -0
- package/dist/theme/ThemeTable.d.ts +99 -0
- package/dist/theme/ThemeTable.js +169 -0
- package/dist/theme/ThemeTable.js.map +1 -0
- package/package.json +9 -8
package/dist/PublicTheme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
/// <reference types="googlemaps" />
|
|
3
3
|
/// <reference types="markerclustererplus" />
|
|
4
|
-
import { ComponentsOverrides, ComponentsVariants } from "@material
|
|
4
|
+
import { ComponentsOverrides, ComponentsVariants } from "@mui/material";
|
|
5
5
|
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
6
6
|
import { IWidgetLayoutDefinition } from "./PublicLayout";
|
|
7
7
|
import { IThemeWidgetDefaults } from "./IThemeManager";
|
|
@@ -17,10 +17,18 @@ 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
|
|
20
|
+
import { TypographyStyleOptions } from "@mui/material/styles/createTypography";
|
|
21
21
|
import { Property } from "csstype";
|
|
22
22
|
import { FilterButtonsClassKey, FilterButtonsProps } from "./theme/ThemeFilterButtons";
|
|
23
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
|
+
import { Components } from "@mui/material/styles/components";
|
|
29
|
+
export interface INoSchemaRendererOptions {
|
|
30
|
+
missingSchema: string;
|
|
31
|
+
}
|
|
24
32
|
export declare type ThemeTextFormatter = {
|
|
25
33
|
formatReport: ((value: any, locale: string) => string) | string;
|
|
26
34
|
formatExcel?: string;
|
|
@@ -117,6 +125,12 @@ export interface ic3Palette {
|
|
|
117
125
|
* Report Application Menu
|
|
118
126
|
*/
|
|
119
127
|
reportAppMenu: string;
|
|
128
|
+
/**
|
|
129
|
+
* Darkens a color for an onhover effect
|
|
130
|
+
*
|
|
131
|
+
* If null or undefined, returns onHover color
|
|
132
|
+
*/
|
|
133
|
+
onHover: (color?: Property.Color | undefined | null) => Property.Color;
|
|
120
134
|
}
|
|
121
135
|
interface MandatorySingleColors {
|
|
122
136
|
/**
|
|
@@ -191,29 +205,17 @@ export interface ic3PaletteOptions {
|
|
|
191
205
|
* Report Application Menu
|
|
192
206
|
*/
|
|
193
207
|
reportAppMenu?: Property.Color;
|
|
194
|
-
|
|
195
|
-
declare module "@material-ui/core/styles/createPalette" {
|
|
196
|
-
interface Palette {
|
|
197
|
-
ic3: ic3Palette;
|
|
198
|
-
}
|
|
199
|
-
interface PaletteOptions {
|
|
200
|
-
ic3?: ic3PaletteOptions;
|
|
201
|
-
}
|
|
208
|
+
onHover?: (color: Property.Color) => Property.Color;
|
|
202
209
|
}
|
|
203
210
|
export interface ic3Typography {
|
|
204
211
|
amCharts4: TypographyStyleOptions;
|
|
205
212
|
}
|
|
206
213
|
export interface ic3TypographyOptions {
|
|
214
|
+
/**
|
|
215
|
+
* Typography for the amCharts plugin.
|
|
216
|
+
*/
|
|
207
217
|
amCharts4?: TypographyStyleOptions;
|
|
208
218
|
}
|
|
209
|
-
declare module "@material-ui/core/styles/createTypography" {
|
|
210
|
-
interface Typography {
|
|
211
|
-
ic3: ic3Typography;
|
|
212
|
-
}
|
|
213
|
-
interface TypographyOptions {
|
|
214
|
-
ic3?: ic3TypographyOptions;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
219
|
export declare enum TableRowHeightOptions {
|
|
218
220
|
standard = "standard",
|
|
219
221
|
compact = "compact"
|
|
@@ -222,11 +224,13 @@ export interface ic3Theme {
|
|
|
222
224
|
id: string;
|
|
223
225
|
caption: string;
|
|
224
226
|
cssClass: string;
|
|
227
|
+
loadFonts?: (continuation: () => void) => void;
|
|
225
228
|
formatter: ThemeFormatters;
|
|
226
229
|
/**
|
|
227
230
|
* Icons used in tables and trees
|
|
228
231
|
*/
|
|
229
232
|
icons: {
|
|
233
|
+
none: (className: string) => ReactElement | string;
|
|
230
234
|
expanded: (className: string) => ReactElement | string;
|
|
231
235
|
collapse: (className: string) => ReactElement | string;
|
|
232
236
|
loading: (className: string) => ReactElement | string;
|
|
@@ -240,7 +244,6 @@ export interface ic3Theme {
|
|
|
240
244
|
}>;
|
|
241
245
|
googleMap: {
|
|
242
246
|
options?: google.maps.MapOptions;
|
|
243
|
-
markerOptions?: google.maps.Symbol;
|
|
244
247
|
markerClustererOptions?: MarkerClustererOptions;
|
|
245
248
|
};
|
|
246
249
|
userMenu: {
|
|
@@ -280,11 +283,36 @@ export interface ic3Theme {
|
|
|
280
283
|
* Default values (e.g., box options, chart options, etc..).
|
|
281
284
|
*/
|
|
282
285
|
widgetDefaults?: IThemeWidgetDefaults;
|
|
286
|
+
/**
|
|
287
|
+
* Styling for the sparklines in the sparkline transformation and the KPI card
|
|
288
|
+
*/
|
|
289
|
+
sparklineSettings: {
|
|
290
|
+
/**
|
|
291
|
+
* The width of the line in the sparkline
|
|
292
|
+
*/
|
|
293
|
+
lineWidth: number;
|
|
294
|
+
/**
|
|
295
|
+
* The cursor when the user hovers over the sparkline
|
|
296
|
+
*/
|
|
297
|
+
cursor: {
|
|
298
|
+
color: Property.Color;
|
|
299
|
+
/**
|
|
300
|
+
* The radius of the dot when hovering
|
|
301
|
+
*/
|
|
302
|
+
radius: number;
|
|
303
|
+
/**
|
|
304
|
+
* The width of the stroke when hovering
|
|
305
|
+
*/
|
|
306
|
+
width: number;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
noSchemaRenderer?: (context: IPublicContext, options: INoSchemaRendererOptions) => ReactElement;
|
|
283
310
|
}
|
|
284
311
|
export interface ic3ThemeOptions {
|
|
285
312
|
id: string;
|
|
286
313
|
caption: string;
|
|
287
314
|
cssClass?: string;
|
|
315
|
+
loadFonts?: (continuation: () => void) => void;
|
|
288
316
|
formatter?: ThemeFormattersOptions;
|
|
289
317
|
icons?: {
|
|
290
318
|
expanded?: (className: string) => ReactElement | string;
|
|
@@ -319,8 +347,114 @@ export interface ic3ThemeOptions {
|
|
|
319
347
|
* The first defined layout is used as the default one.
|
|
320
348
|
*/
|
|
321
349
|
layouts: IWidgetLayoutDefinition[];
|
|
350
|
+
/**
|
|
351
|
+
* Styling for the sparklines in the sparkline transformation and the KPI card
|
|
352
|
+
*/
|
|
353
|
+
sparklineSettings?: {
|
|
354
|
+
/**
|
|
355
|
+
* The width of the line in the sparkline
|
|
356
|
+
*/
|
|
357
|
+
lineWidth: number;
|
|
358
|
+
/**
|
|
359
|
+
* The cursor when the user hovers over the sparkline
|
|
360
|
+
*/
|
|
361
|
+
cursor: {
|
|
362
|
+
color: Property.Color;
|
|
363
|
+
/**
|
|
364
|
+
* The radius of the dot when hovering
|
|
365
|
+
*/
|
|
366
|
+
radius: number;
|
|
367
|
+
/**
|
|
368
|
+
* The width of the stroke when hovering
|
|
369
|
+
*/
|
|
370
|
+
width: number;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
noSchemaRenderer?: (context: IPublicContext, options: INoSchemaRendererOptions) => ReactElement;
|
|
374
|
+
}
|
|
375
|
+
interface ic3BaseComponents {
|
|
376
|
+
AlertDialog?: {
|
|
377
|
+
styleOverrides?: ComponentsOverrides["AlertDialog"];
|
|
378
|
+
};
|
|
379
|
+
App?: {
|
|
380
|
+
styleOverrides?: ComponentsOverrides["App"];
|
|
381
|
+
};
|
|
382
|
+
DrilldownUserSelectMenu?: {
|
|
383
|
+
styleOverrides?: ComponentsOverrides["DrilldownUserSelectMenu"];
|
|
384
|
+
};
|
|
385
|
+
ErrorRenderer?: {
|
|
386
|
+
styleOverrides?: ComponentsOverrides["ErrorRenderer"];
|
|
387
|
+
};
|
|
388
|
+
FilterButtons?: {
|
|
389
|
+
styleOverrides?: ComponentsOverrides["FilterButtons"];
|
|
390
|
+
variants?: ComponentsVariants["FilterButtons"];
|
|
391
|
+
};
|
|
392
|
+
FilterSlider?: {
|
|
393
|
+
styleOverrides?: ComponentsOverrides["FilterSlider"];
|
|
394
|
+
variants?: ComponentsVariants["FilterSlider"];
|
|
395
|
+
};
|
|
396
|
+
GoogleMapMarker?: {
|
|
397
|
+
variants?: ComponentsVariants['GoogleMapMarker'];
|
|
398
|
+
};
|
|
399
|
+
HtmlBox?: {
|
|
400
|
+
styleOverrides?: ComponentsOverrides["HtmlBox"];
|
|
401
|
+
variants?: ComponentsVariants["HtmlBox"];
|
|
402
|
+
};
|
|
403
|
+
Layout?: {
|
|
404
|
+
styleOverrides?: ComponentsOverrides["Layout"];
|
|
405
|
+
};
|
|
406
|
+
LayoutPage?: {
|
|
407
|
+
styleOverrides?: ComponentsOverrides["LayoutPage"];
|
|
408
|
+
};
|
|
409
|
+
PivotTable?: {
|
|
410
|
+
variants?: ComponentsVariants['PivotTable'];
|
|
411
|
+
styleOverrides?: ComponentsOverrides["PivotTable"];
|
|
412
|
+
};
|
|
413
|
+
ReportAppBar?: {
|
|
414
|
+
styleOverrides?: ComponentsOverrides["ReportAppBar"];
|
|
415
|
+
};
|
|
416
|
+
ReportAppMenu?: {
|
|
417
|
+
styleOverrides?: ComponentsOverrides["ReportAppMenu"];
|
|
418
|
+
};
|
|
419
|
+
Table?: {
|
|
420
|
+
variants?: ComponentsVariants['Table'];
|
|
421
|
+
styleOverrides?: ComponentsOverrides["Table"];
|
|
422
|
+
};
|
|
423
|
+
WidgetBox?: {
|
|
424
|
+
variants?: ComponentsVariants['WidgetBox'];
|
|
425
|
+
styleOverrides?: ComponentsOverrides["WidgetBox"];
|
|
426
|
+
};
|
|
427
|
+
WidgetBoxContentMessage?: {
|
|
428
|
+
styleOverrides?: ComponentsOverrides["WidgetBoxContentMessage"];
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* For Typing purpose extending MUI Theme with ic3 components
|
|
433
|
+
*/
|
|
434
|
+
export interface ic3Components extends ic3BaseComponents, Components {
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* MUI Module augmentation
|
|
439
|
+
*
|
|
440
|
+
*/
|
|
441
|
+
declare module "@mui/material/styles/createPalette" {
|
|
442
|
+
interface Palette {
|
|
443
|
+
ic3: ic3Palette;
|
|
444
|
+
}
|
|
445
|
+
interface PaletteOptions {
|
|
446
|
+
ic3?: ic3PaletteOptions;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
declare module "@mui/material/styles/createTypography" {
|
|
450
|
+
interface Typography {
|
|
451
|
+
ic3: ic3Typography;
|
|
452
|
+
}
|
|
453
|
+
interface TypographyOptions {
|
|
454
|
+
ic3?: ic3TypographyOptions;
|
|
455
|
+
}
|
|
322
456
|
}
|
|
323
|
-
declare module '@material
|
|
457
|
+
declare module '@mui/material/styles/createTheme' {
|
|
324
458
|
interface Theme {
|
|
325
459
|
ic3: ic3Theme;
|
|
326
460
|
}
|
|
@@ -334,54 +468,11 @@ declare module '@material-ui/core/styles/createTheme' {
|
|
|
334
468
|
/**
|
|
335
469
|
* All Components using Material-UI like variants (using styled)
|
|
336
470
|
*/
|
|
337
|
-
declare module '@material
|
|
338
|
-
interface Components {
|
|
339
|
-
AlertDialog: {
|
|
340
|
-
styleOverrides?: ComponentsOverrides["AlertDialog"];
|
|
341
|
-
};
|
|
342
|
-
App: {
|
|
343
|
-
styleOverrides?: ComponentsOverrides["App"];
|
|
344
|
-
};
|
|
345
|
-
DrilldownUserSelectMenu: {
|
|
346
|
-
styleOverrides?: ComponentsOverrides["DrilldownUserSelectMenu"];
|
|
347
|
-
};
|
|
348
|
-
ErrorRenderer: {
|
|
349
|
-
styleOverrides?: ComponentsOverrides["ErrorRenderer"];
|
|
350
|
-
};
|
|
351
|
-
HtmlBox: {
|
|
352
|
-
styleOverrides?: ComponentsOverrides["HtmlBox"];
|
|
353
|
-
variants?: ComponentsVariants["HtmlBox"];
|
|
354
|
-
};
|
|
355
|
-
FilterButtons: {
|
|
356
|
-
styleOverrides?: ComponentsOverrides["FilterButtons"];
|
|
357
|
-
variants?: ComponentsVariants["FilterButtons"];
|
|
358
|
-
};
|
|
359
|
-
FilterSlider: {
|
|
360
|
-
styleOverrides?: ComponentsOverrides["FilterSlider"];
|
|
361
|
-
variants?: ComponentsVariants["FilterSlider"];
|
|
362
|
-
};
|
|
363
|
-
Layout: {
|
|
364
|
-
styleOverrides?: ComponentsOverrides["Layout"];
|
|
365
|
-
};
|
|
366
|
-
LayoutPage: {
|
|
367
|
-
styleOverrides?: ComponentsOverrides["LayoutPage"];
|
|
368
|
-
};
|
|
369
|
-
ReportAppBar: {
|
|
370
|
-
styleOverrides?: ComponentsOverrides["ReportAppBar"];
|
|
371
|
-
};
|
|
372
|
-
ReportAppMenu: {
|
|
373
|
-
styleOverrides?: ComponentsOverrides["ReportAppMenu"];
|
|
374
|
-
};
|
|
375
|
-
WidgetBox: {
|
|
376
|
-
variants?: ComponentsVariants['WidgetBox'];
|
|
377
|
-
styleOverrides?: ComponentsOverrides["WidgetBox"];
|
|
378
|
-
};
|
|
379
|
-
WidgetBoxContentMessage: {
|
|
380
|
-
styleOverrides?: ComponentsOverrides["WidgetBoxContentMessage"];
|
|
381
|
-
};
|
|
471
|
+
declare module '@mui/material/styles/components' {
|
|
472
|
+
interface Components extends ic3BaseComponents {
|
|
382
473
|
}
|
|
383
474
|
}
|
|
384
|
-
declare module '@material
|
|
475
|
+
declare module '@mui/material/styles/overrides' {
|
|
385
476
|
interface ComponentNameToClassKey {
|
|
386
477
|
AlertDialog: AlertDialogClassKey;
|
|
387
478
|
App: AppClassKey;
|
|
@@ -392,18 +483,23 @@ declare module '@material-ui/core/styles/overrides' {
|
|
|
392
483
|
HtmlBox: HtmlBoxClassKey;
|
|
393
484
|
Layout: LayoutClassKey;
|
|
394
485
|
LayoutPage: LayoutPageClassKey;
|
|
486
|
+
PivotTable: PivotTableClassKey;
|
|
395
487
|
ReportAppBar: ReportAppBarClassKey;
|
|
396
488
|
ReportAppMenu: ReportAppMenuClassKey;
|
|
489
|
+
Table: TableClassKey;
|
|
397
490
|
WidgetBox: WidgetBoxClassKey;
|
|
398
491
|
WidgetBoxContentMessage: WidgetBoxContentMessageClassKey;
|
|
399
492
|
}
|
|
400
493
|
}
|
|
401
|
-
declare module '@material
|
|
494
|
+
declare module '@mui/material/styles/props' {
|
|
402
495
|
interface ComponentsPropsList {
|
|
403
|
-
HtmlBox: HtmlBoxProps;
|
|
404
|
-
WidgetBox: Record<never, any>;
|
|
405
496
|
FilterButtons: FilterButtonsProps;
|
|
406
497
|
FilterSlider: FilterSliderProps;
|
|
498
|
+
GoogleMapMarker: GoogleMapMarkerProps;
|
|
499
|
+
HtmlBox: HtmlBoxProps;
|
|
500
|
+
PivotTable: PivotTableProps;
|
|
501
|
+
Table: TableProps;
|
|
502
|
+
WidgetBox: Record<never, any>;
|
|
407
503
|
}
|
|
408
504
|
}
|
|
409
505
|
export {};
|
package/dist/PublicTheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AAsQA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|