@ic3/reporting-api 8.0.0-alpha.5 → 8.0.0-rc.2
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 +32 -0
- package/dist/{theme/ThemeWidgetBoxHeader.js → INotification.js} +1 -1
- package/dist/INotification.js.map +1 -0
- package/dist/IPluginDefinition.d.ts +4 -1
- package/dist/IReporting.d.ts +41 -4
- package/dist/IThemeManager.d.ts +13 -18
- package/dist/IThemeManager.js.map +1 -1
- package/dist/ITidyTableTransformation.d.ts +20 -1
- package/dist/IWidgetVariantManager.d.ts +20 -2
- 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 +58 -7
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicLayout.d.ts +6 -6
- 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 +129 -29
- package/dist/PublicTemplateForm.js +7 -1
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTheme.d.ts +117 -73
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +327 -257
- 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 +48 -44
- 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 +25 -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/ReportingVersion.d.ts +1 -1
- package/dist/ReportingVersion.js +1 -1
- package/dist/ReportingVersion.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- 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 +38 -0
- package/dist/theme/ThemeFilterButtons.js +23 -0
- package/dist/theme/ThemeFilterButtons.js.map +1 -0
- 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/ThemeFilterSlider.d.ts +47 -0
- package/dist/theme/ThemeFilterSlider.js +29 -0
- package/dist/theme/ThemeFilterSlider.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/{ThemeWidgetBoxUserMenu.js → ThemeGoogleMapMarker.js} +1 -1
- 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 +15 -0
- package/dist/theme/ThemeTable.js +5 -0
- package/dist/theme/ThemeTable.js.map +1 -0
- package/dist/theme/ThemeWidgetBox.d.ts +37 -17
- package/dist/theme/ThemeWidgetBox.js +56 -0
- package/dist/theme/ThemeWidgetBox.js.map +1 -1
- package/package.json +11 -10
- package/dist/theme/ThemeWidgetBoxHeader.d.ts +0 -11
- package/dist/theme/ThemeWidgetBoxHeader.js.map +0 -1
- package/dist/theme/ThemeWidgetBoxUserMenu.d.ts +0 -23
- package/dist/theme/ThemeWidgetBoxUserMenu.js.map +0 -1
package/dist/ApiUtils.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { IPluginDefinition } from "./IPluginDefinition";
|
|
2
2
|
import { IVersionedPluginDefinition } from "./IVersionedPluginDefinition";
|
|
3
|
+
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
3
4
|
export declare class ApiUtils {
|
|
4
5
|
/**
|
|
5
6
|
* Define the form field as being localized.
|
|
6
7
|
*/
|
|
7
8
|
static readonly TAG_I18N_FIELD = "ic3t_";
|
|
8
9
|
static makePlugin(definition: IPluginDefinition): () => IVersionedPluginDefinition;
|
|
10
|
+
/**
|
|
11
|
+
* Wrap the template from another widget. The widget can come from a plugin or from the included widgets.
|
|
12
|
+
* Wrapping means that the template receives its not-defined settings from the template that is wrapped.
|
|
13
|
+
* @param wrappedTemplateId the unique identifier of the template, e.g., amCharts4.AmCharts4DonutChart.
|
|
14
|
+
* @param newDefinition definition of the new widget.
|
|
15
|
+
* @param transformOptions create the available options using the options from the wrapped template.
|
|
16
|
+
*/
|
|
17
|
+
static makeWidgetTemplateWrapper<T extends IPublicWidgetTemplateDefinition<any>>(wrappedTemplateId: string, newDefinition: T, transformOptions?: (old: T['chartOptionsMeta']) => void): T;
|
|
18
|
+
private static resolveTemplateDefinition;
|
|
9
19
|
}
|
package/dist/ApiUtils.js
CHANGED
|
@@ -8,9 +8,33 @@ const ReportingVersion_1 = __importDefault(require("./ReportingVersion"));
|
|
|
8
8
|
class ApiUtils {
|
|
9
9
|
static makePlugin(definition) {
|
|
10
10
|
return () => {
|
|
11
|
-
return Object.assign({ apiVersion: new ReportingVersion_1.default("8.0.0-
|
|
11
|
+
return Object.assign({ apiVersion: new ReportingVersion_1.default("8.0.0-rc.2" || "-", "Fri, 17 Dec 2021 08:53:29 GMT" || "-") }, definition);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Wrap the template from another widget. The widget can come from a plugin or from the included widgets.
|
|
16
|
+
* Wrapping means that the template receives its not-defined settings from the template that is wrapped.
|
|
17
|
+
* @param wrappedTemplateId the unique identifier of the template, e.g., amCharts4.AmCharts4DonutChart.
|
|
18
|
+
* @param newDefinition definition of the new widget.
|
|
19
|
+
* @param transformOptions create the available options using the options from the wrapped template.
|
|
20
|
+
*/
|
|
21
|
+
static makeWidgetTemplateWrapper(wrappedTemplateId, newDefinition, transformOptions) {
|
|
22
|
+
return Object.assign(Object.assign({}, newDefinition), { resolveDefinition: function (lib) {
|
|
23
|
+
const self = newDefinition;
|
|
24
|
+
return lib.wrapTemplateDefinition(wrappedTemplateId)
|
|
25
|
+
.then(definition => ApiUtils.resolveTemplateDefinition(self, definition, transformOptions));
|
|
26
|
+
}, jsCode: () => {
|
|
27
|
+
throw Error("Wrapped widget template " + wrappedTemplateId + ": unexpected jsCode() call!");
|
|
28
|
+
} });
|
|
29
|
+
}
|
|
30
|
+
static resolveTemplateDefinition(self, definition, transformOptions) {
|
|
31
|
+
const newTemplate = Object.assign(Object.assign(Object.assign({}, definition), self), { resolveDefinition: undefined });
|
|
32
|
+
// TODO (tom) use deepClone for the optionsMeta.
|
|
33
|
+
if (transformOptions != null) {
|
|
34
|
+
transformOptions(newTemplate.chartOptionsMeta);
|
|
35
|
+
}
|
|
36
|
+
return newTemplate;
|
|
37
|
+
}
|
|
14
38
|
}
|
|
15
39
|
exports.ApiUtils = ApiUtils;
|
|
16
40
|
/**
|
package/dist/ApiUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../src/ApiUtils.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;
|
|
1
|
+
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../src/ApiUtils.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAGlD,MAAa,QAAQ;IAOjB,MAAM,CAAC,UAAU,CAAC,UAA6B;QAE3C,OAAO,GAA+B,EAAE;YAEpC,uBAEI,UAAU,EAAE,IAAI,0BAAgB,CAC5B,YAAY,IAAI,GAAG,EACnB,+BAA+B,IAAI,GAAG,CACzC,IAEE,UAAU,EAEhB;QAEL,CAAC,CAAA;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,yBAAyB,CAC5B,iBAAyB,EAAE,aAAgB,EAAE,gBAAuD;QAEpG,uCAGO,aAAa,KAEhB,iBAAiB,EAAE,UAAU,GAA8B;gBACvD,MAAM,IAAI,GAAG,aAAa,CAAC;gBAC3B,OAAO,GAAG,CAAC,sBAAsB,CAAC,iBAAiB,CAAC;qBAC/C,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC,IAAI,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAA;YACnG,CAAC,EAED,MAAM,EAAE,GAAG,EAAE;gBACT,MAAM,KAAK,CAAC,0BAA0B,GAAG,iBAAiB,GAAG,6BAA6B,CAAC,CAAC;YAChG,CAAC,IAEJ;IACL,CAAC;IAEO,MAAM,CAAC,yBAAyB,CACpC,IAAO,EAAE,UAAgD,EAAE,gBAAuD;QAElH,MAAM,WAAW,iDAAO,UAAU,GAAK,IAAI,KAAE,iBAAiB,EAAE,SAAS,GAAC,CAAC;QAC3E,gDAAgD;QAChD,IAAI,gBAAgB,IAAI,IAAI,EAAE;YAC1B,gBAAgB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;SAClD;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;;AA9DL,4BAgEC;AA9DG;;GAEG;AACoB,uBAAc,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare type AppNotificationType = "edit-report" | "print-report-dialog" | "print-report";
|
|
2
|
+
export interface IAppNotification {
|
|
3
|
+
/**
|
|
4
|
+
* E.g., print-report.
|
|
5
|
+
*/
|
|
6
|
+
readonly type: AppNotificationType;
|
|
7
|
+
}
|
|
8
|
+
export interface IAppNotificationWithPayload<PAYLOAD> extends IAppNotification {
|
|
9
|
+
/**
|
|
10
|
+
* E.g., print-report.
|
|
11
|
+
*/
|
|
12
|
+
readonly type: AppNotificationType;
|
|
13
|
+
/**
|
|
14
|
+
* E.g., print-report file name.
|
|
15
|
+
*/
|
|
16
|
+
readonly payload: PAYLOAD;
|
|
17
|
+
}
|
|
18
|
+
export interface AppEditReportNotification extends IAppNotification {
|
|
19
|
+
readonly type: "edit-report";
|
|
20
|
+
}
|
|
21
|
+
export interface AppPrintReportDialogNotification extends IAppNotification {
|
|
22
|
+
readonly type: "print-report-dialog";
|
|
23
|
+
}
|
|
24
|
+
export interface AppPrintReportNotificationPayload {
|
|
25
|
+
fileName?: string;
|
|
26
|
+
paperSizeName?: "A5" | "A4" | "A3" | "B5" | "B4" | "Letter" | "Legal" | "Ledger" | "JIS-B5" | "JIS-B4";
|
|
27
|
+
layout?: "portrait" | "landscape";
|
|
28
|
+
}
|
|
29
|
+
export interface AppPrintReportNotification extends IAppNotificationWithPayload<AppPrintReportNotificationPayload> {
|
|
30
|
+
readonly type: "print-report";
|
|
31
|
+
}
|
|
32
|
+
export declare type AppNotification = AppEditReportNotification | AppPrintReportDialogNotification | AppPrintReportNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INotification.js","sourceRoot":"","sources":["../src/INotification.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import { IThemeManager } from "./IThemeManager";
|
|
|
3
3
|
import { IWidgetManager } from "./IWidgetManager";
|
|
4
4
|
import { ITidyTableTransformationManager } from "./ITidyTableTransformationManager";
|
|
5
5
|
import { IWidgetDefaultsManager } from "./IWidgetDefaultsManager";
|
|
6
|
-
import { Theme } from "@material
|
|
6
|
+
import { Theme } from "@mui/material/styles";
|
|
7
7
|
export interface IPluginDefinition {
|
|
8
8
|
/**
|
|
9
9
|
* Keep that id simple (i.e., ASCII letter without any dot, space, separator, etc...) as it will be used
|
|
@@ -12,6 +12,9 @@ export interface IPluginDefinition {
|
|
|
12
12
|
* That name must be unique across all the plugins loaded into an icCube server.
|
|
13
13
|
*/
|
|
14
14
|
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* When defining new widgets using amCharts 4, this method registers the icCube license.
|
|
17
|
+
*/
|
|
15
18
|
registerAmCharts4?: (callback: (am4core: any) => void) => void;
|
|
16
19
|
registerLocalization?: (manager: ILocalizationManager) => void;
|
|
17
20
|
registerThemes?: (manager: IThemeManager) => void;
|
package/dist/IReporting.d.ts
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import ReportingVersion from "./ReportingVersion";
|
|
2
|
+
import { AppNotification } from "./INotification";
|
|
2
3
|
export interface IReportDefinition {
|
|
3
4
|
getName(): string;
|
|
4
5
|
getPath(): string;
|
|
5
6
|
getDefaultSchemaName(): string;
|
|
6
7
|
setDefaultSchemaName(name: string): void;
|
|
7
|
-
getDefaultCubeName(): string;
|
|
8
|
+
getDefaultCubeName(): string | undefined;
|
|
8
9
|
setDefaultCubeName(name: string): void;
|
|
9
10
|
}
|
|
11
|
+
export interface IReportAppDefinition {
|
|
12
|
+
}
|
|
13
|
+
export interface IEventContentItem {
|
|
14
|
+
/**
|
|
15
|
+
* Localized name or name.
|
|
16
|
+
*/
|
|
17
|
+
caption: string;
|
|
18
|
+
name: string;
|
|
19
|
+
uniqueName: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type IEventContent = IEventContentItem | IEventContentItem[];
|
|
10
22
|
/**
|
|
11
23
|
* Used to setup filter initial selection.
|
|
12
24
|
*/
|
|
13
25
|
export interface IReportParam {
|
|
14
26
|
channelName: string;
|
|
15
|
-
|
|
27
|
+
value: IEventContent;
|
|
16
28
|
}
|
|
17
29
|
export interface IOpenReportOptions {
|
|
18
30
|
embedded?: boolean;
|
|
@@ -40,12 +52,37 @@ export interface IOpenReportAppOptions {
|
|
|
40
52
|
* Full path of the report app. (e.g., shared:/my-report).
|
|
41
53
|
*/
|
|
42
54
|
path: string;
|
|
55
|
+
/**
|
|
56
|
+
* Called before the application definition is actually applied.
|
|
57
|
+
* Give the opportunity to change the definition.
|
|
58
|
+
*/
|
|
59
|
+
onDefinition?: (report: IReportAppDefinition) => void;
|
|
60
|
+
/**
|
|
61
|
+
* If the method exist and return true then the default error dispatcher is not
|
|
62
|
+
* being called. Give the caller the opportunity to render the error.
|
|
63
|
+
*/
|
|
64
|
+
onError?: (error: any) => boolean;
|
|
43
65
|
}
|
|
44
66
|
/**
|
|
45
67
|
* An instance of icCube reporting application.
|
|
46
68
|
*/
|
|
47
69
|
export interface IReporting {
|
|
48
70
|
getVersion(): ReportingVersion;
|
|
49
|
-
|
|
50
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @param options
|
|
73
|
+
* @param pushToHistory defaulted to true
|
|
74
|
+
* @param keepGlobalFilter defaulted to true
|
|
75
|
+
*/
|
|
76
|
+
openReport(options: IOpenReportOptions, pushToHistory?: boolean, keepGlobalFilter?: boolean): void;
|
|
77
|
+
/**
|
|
78
|
+
* @param options
|
|
79
|
+
* @param pushToHistory defaulted to true
|
|
80
|
+
*/
|
|
81
|
+
openReportApp(options: IOpenReportAppOptions, pushToHistory?: boolean): void;
|
|
82
|
+
fireEvent(eventName: string, value: IEventContent | null): void;
|
|
83
|
+
onEvent(eventName: string, callback: (value: IEventContent | null) => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* e.g., print-report
|
|
86
|
+
*/
|
|
87
|
+
fireAppNotification(notification: AppNotification): void;
|
|
51
88
|
}
|
package/dist/IThemeManager.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSInterpolation } from "@mui/system";
|
|
1
2
|
export declare enum EmbeddedThemeNames {
|
|
2
3
|
Statos = "ic3-statos"
|
|
3
4
|
}
|
|
@@ -35,24 +36,18 @@ export interface IThemeWidgetDefaults {
|
|
|
35
36
|
/**
|
|
36
37
|
* Sort of named set of predefined options.
|
|
37
38
|
*/
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
* chartOptions: IChartTemplateDataRenderDefinition
|
|
51
|
-
* </pre>
|
|
52
|
-
*/
|
|
53
|
-
options: Record<string, any>;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
39
|
+
export declare type IThemeWidgetVariant = {
|
|
40
|
+
props: {
|
|
41
|
+
variant: string;
|
|
42
|
+
} & Record<string, string>;
|
|
43
|
+
style: CSSInterpolation;
|
|
44
|
+
defaultProps?: Record<string, any>;
|
|
45
|
+
} | {
|
|
46
|
+
props: {
|
|
47
|
+
variant: string;
|
|
48
|
+
} & Record<string, string>;
|
|
49
|
+
defaultProps: Record<string, any>;
|
|
50
|
+
};
|
|
56
51
|
export interface IThemeManager {
|
|
57
52
|
/**
|
|
58
53
|
* The theme decorator allows to setup the Theme.components and Theme.ic3 using the theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IThemeManager.js","sourceRoot":"","sources":["../src/IThemeManager.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IThemeManager.js","sourceRoot":"","sources":["../src/IThemeManager.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAE1B,2CAAqB,CAAA;AAEzB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|
|
@@ -7,14 +7,33 @@ export interface ILocalizationContext {
|
|
|
7
7
|
localize(name: string, ...args: any[]): string;
|
|
8
8
|
}
|
|
9
9
|
export interface ITidyTableTransformation<OPTIONS extends FormFieldObject> {
|
|
10
|
+
/**
|
|
11
|
+
* The id of the transformation. Use this id to reference the transformation in the localization.
|
|
12
|
+
*/
|
|
10
13
|
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The id of the editor group that the transformation is in.
|
|
16
|
+
*/
|
|
11
17
|
groupId: string;
|
|
12
18
|
/**
|
|
13
19
|
* Internal usage: pluginID.id
|
|
14
20
|
*/
|
|
15
21
|
qualifiedId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Return the description to show below the transformation in the 'TRANSFORMATION' tab of the editor
|
|
24
|
+
* @param context used for accessing localization functions
|
|
25
|
+
* @param options user-set options for the transformation
|
|
26
|
+
*/
|
|
16
27
|
getDescription?(context: ILocalizationContext, options: OPTIONS): string;
|
|
28
|
+
/**
|
|
29
|
+
* Return the field meta for the user-editable options
|
|
30
|
+
*/
|
|
17
31
|
getFieldMeta(): FormFieldDef[] | FormFields<OPTIONS>;
|
|
18
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Run the transformation.
|
|
34
|
+
* @param context public context
|
|
35
|
+
* @param table modify this table in the transformation. It is mutable.
|
|
36
|
+
* @param options user-set options for the transformation
|
|
37
|
+
*/
|
|
19
38
|
apply(context: IPublicContext, table: ITidyTable, options: OPTIONS): void;
|
|
20
39
|
}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSInterpolation } from "@mui/system";
|
|
2
|
+
declare type variantName = string;
|
|
3
|
+
export declare type IThemeRegisterVariant = Record<variantName, {
|
|
4
|
+
/**
|
|
5
|
+
* for styled MUI like components additional properties defining when the variant applies
|
|
6
|
+
*/
|
|
7
|
+
props?: {
|
|
8
|
+
variant: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
/**
|
|
11
|
+
* default properties for the fields/options of the widget
|
|
12
|
+
*/
|
|
13
|
+
defaultProps: Record<string, any>;
|
|
14
|
+
/**
|
|
15
|
+
* for styled MUI like components, css styles
|
|
16
|
+
*/
|
|
17
|
+
style?: CSSInterpolation;
|
|
18
|
+
}>;
|
|
2
19
|
export interface IWidgetVariantManager {
|
|
3
|
-
registerVariants(variants:
|
|
20
|
+
registerVariants(variants: IThemeRegisterVariant): void;
|
|
4
21
|
}
|
|
22
|
+
export {};
|
package/dist/LazyTreeView.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityItem, MdxInfo } from "./PublicTidyTableTypes";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
|
+
import { SelectionMode } from "./PublicTidyTableInteractions";
|
|
3
4
|
/**
|
|
4
5
|
* A copy of MUI TreeItemClasses
|
|
5
6
|
*/
|
|
@@ -37,6 +38,14 @@ export interface LazyTreeClasses {
|
|
|
37
38
|
/** Styles applied to the TreeRoot element */
|
|
38
39
|
treeRoot: string;
|
|
39
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Global classes
|
|
43
|
+
*/
|
|
44
|
+
export interface Ic3GlobalClasses {
|
|
45
|
+
singleSelection: string;
|
|
46
|
+
multipleSelection: string;
|
|
47
|
+
}
|
|
48
|
+
export declare const ic3GlobalClasses: Ic3GlobalClasses;
|
|
40
49
|
export declare const lazyTreeClasses: LazyTreeClasses;
|
|
41
50
|
export interface ILazyTreeViewLoader {
|
|
42
51
|
/**
|
|
@@ -44,11 +53,13 @@ export interface ILazyTreeViewLoader {
|
|
|
44
53
|
*/
|
|
45
54
|
mapTree<T extends ReactElement>(expanded: (index: number) => boolean, factory: (index: number) => T, filter?: (info: MdxInfo) => boolean): T[];
|
|
46
55
|
hasLazyChildren(index: number): boolean;
|
|
56
|
+
getColumnLevelDepth(index: number): number;
|
|
47
57
|
lazyLoadChildren(index: number): void | number;
|
|
48
58
|
getNodeIdAndCaption(index: number): [string, string];
|
|
49
59
|
setCallbackOnChange(callback: () => void): void;
|
|
50
60
|
toEntityItems(nodeIds: string[]): EntityItem[];
|
|
51
61
|
mapNodeIds<T>(nodeIds: string[], callbackfn: (columnIdx: number) => T | null | undefined): T[];
|
|
62
|
+
map<T>(callback: (index: number) => T | undefined): T[];
|
|
52
63
|
}
|
|
53
64
|
/**
|
|
54
65
|
* Controlled properties of LazyTreeView (doesn't has to be lazy)
|
|
@@ -56,14 +67,45 @@ export interface ILazyTreeViewLoader {
|
|
|
56
67
|
export interface LazyTreeViewProps {
|
|
57
68
|
lazyLoader: ILazyTreeViewLoader;
|
|
58
69
|
allowEmptySelection?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
59
73
|
addFilterSelected?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Adds a search input to the tree filter
|
|
76
|
+
*/
|
|
60
77
|
addSearch?: boolean;
|
|
61
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Search/Filter text when controlled (addSearch needs to be false)
|
|
80
|
+
*/
|
|
81
|
+
search?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Message for the search/filter when empty
|
|
84
|
+
*/
|
|
85
|
+
searchPlaceholder?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Message for the search/filter component (might be 'compacted' selection)
|
|
88
|
+
*/
|
|
89
|
+
searchMessage?: string;
|
|
62
90
|
toggleFilterSelected?: string;
|
|
63
91
|
disableSelection?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* if undefined, the selection state is managed by the lazy tree as well
|
|
94
|
+
*/
|
|
64
95
|
selected?: string[];
|
|
96
|
+
/**
|
|
97
|
+
* Controlled mode for selection
|
|
98
|
+
*/
|
|
65
99
|
setSelected?: (nodeIdx: string[]) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Controlled mode for expanded
|
|
102
|
+
*/
|
|
66
103
|
expanded?: string[];
|
|
104
|
+
/**
|
|
105
|
+
* The level depth of initially open nodes ( 0 first level )
|
|
106
|
+
*/
|
|
107
|
+
openDepthLevel?: number;
|
|
108
|
+
selectionMode: SelectionMode;
|
|
67
109
|
/**
|
|
68
110
|
* Material-UI tree item classes Partial<TreeItemClasses>
|
|
69
111
|
*/
|
package/dist/LazyTreeView.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lazyTreeClasses = void 0;
|
|
3
|
+
exports.lazyTreeClasses = exports.ic3GlobalClasses = void 0;
|
|
4
|
+
exports.ic3GlobalClasses = {
|
|
5
|
+
singleSelection: 'Ic3-SingleSelection',
|
|
6
|
+
multipleSelection: 'Ic3-MultipleSelection',
|
|
7
|
+
};
|
|
4
8
|
exports.lazyTreeClasses = {
|
|
5
9
|
toolbar: 'Ic3-LazyTreeView-toolbar',
|
|
6
10
|
input: 'Ic3-LazyTreeView-toolbar-input',
|
package/dist/LazyTreeView.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyTreeView.js","sourceRoot":"","sources":["../src/LazyTreeView.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LazyTreeView.js","sourceRoot":"","sources":["../src/LazyTreeView.ts"],"names":[],"mappings":";;;AA0Da,QAAA,gBAAgB,GAAqB;IAC9C,eAAe,EAAE,qBAAqB;IACtC,iBAAiB,EAAE,uBAAuB;CAC7C,CAAA;AAGY,QAAA,eAAe,GAAoB;IAC5C,OAAO,EAAE,0BAA0B;IACnC,KAAK,EAAE,gCAAgC;IACvC,MAAM,EAAE,iCAAiC;IACzC,sBAAsB,EAAE,mCAAmC;IAC3D,uBAAuB,EAAE,oCAAoC;IAC7D,QAAQ,EAAE,2BAA2B;CACxC,CAAA"}
|
package/dist/Loader.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IReporting } from "./IReporting";
|
|
2
|
+
export interface IDashboardsLoaderFrameParams {
|
|
3
|
+
/**
|
|
4
|
+
* An unique ID (DOM) that is identifying the icCube dashboards instance.
|
|
5
|
+
*/
|
|
6
|
+
containerId: string;
|
|
7
|
+
onReady: (ic3: IReporting) => void;
|
|
8
|
+
url: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function DashboardsLoaderFrame(params: IDashboardsLoaderFrameParams): void;
|
package/dist/Loader.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DashboardsLoaderFrame = void 0;
|
|
4
|
+
function DashboardsLoaderFrame(params) {
|
|
5
|
+
const { containerId, onReady, url } = params;
|
|
6
|
+
const containerELT = document.getElementById(containerId);
|
|
7
|
+
if (!containerELT) {
|
|
8
|
+
throw new Error("[ic3loader] (iFrame) missing container [" + containerId + "]");
|
|
9
|
+
}
|
|
10
|
+
console.log("[ic3loader] (iFrame) icCube URL : " + url);
|
|
11
|
+
console.log("[ic3loader] (iFrame) container : " + containerId);
|
|
12
|
+
console.log("[ic3loader] (iFrame) callback : " + onReady);
|
|
13
|
+
const wnd = window;
|
|
14
|
+
wnd.ic3loader = wnd.ic3loader || {};
|
|
15
|
+
wnd.ic3loader[containerId] = (ic3) => {
|
|
16
|
+
console.log("[ic3loader] (iFrame) ready : ", ic3);
|
|
17
|
+
delete wnd.ic3loader[containerId];
|
|
18
|
+
onReady && onReady(ic3);
|
|
19
|
+
};
|
|
20
|
+
// setup an iFrame passing a url w/ &cb=window.name.of.callback
|
|
21
|
+
// window. or parent. then in icCube ...
|
|
22
|
+
const iFrame = document.createElement('iframe');
|
|
23
|
+
iFrame.width = "100%";
|
|
24
|
+
iFrame.height = "100%";
|
|
25
|
+
iFrame.style.border = "0px none";
|
|
26
|
+
const sep = url.indexOf("?") === -1 ? "?" : "&";
|
|
27
|
+
const src = url + sep + "ic3callback=ic3loader." + containerId;
|
|
28
|
+
iFrame.setAttribute("src", src);
|
|
29
|
+
console.log("[ic3loader] (iFrame) iFrame : " + src);
|
|
30
|
+
containerELT.appendChild(iFrame);
|
|
31
|
+
}
|
|
32
|
+
exports.DashboardsLoaderFrame = DashboardsLoaderFrame;
|
|
33
|
+
//# sourceMappingURL=Loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../src/Loader.ts"],"names":[],"mappings":";;;AAeA,SAAgB,qBAAqB,CAAC,MAAoC;IAEtE,MAAM,EAAC,WAAW,EAAE,OAAO,EAAE,GAAG,EAAC,GAAG,MAAM,CAAC;IAE3C,MAAM,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAE1D,IAAI,CAAC,YAAY,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,0CAA0C,GAAG,WAAW,GAAG,GAAG,CAAC,CAAA;KAClF;IAED,OAAO,CAAC,GAAG,CAAC,oCAAoC,GAAG,GAAG,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,oCAAoC,GAAG,WAAW,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,oCAAoC,GAAG,OAAO,CAAC,CAAC;IAE5D,MAAM,GAAG,GAAI,MAAc,CAAC;IAE5B,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;IAEpC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,GAAe,EAAE,EAAE;QAE7C,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;QAEvD,OAAO,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAClC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAE5B,CAAC,CAAA;IAED,iEAAiE;IACjE,6CAA6C;IAE7C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC;IAEjC,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAChD,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,wBAAwB,GAAG,WAAW,CAAC;IAE/D,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEhC,OAAO,CAAC,GAAG,CAAC,oCAAoC,GAAG,GAAG,CAAC,CAAC;IAExD,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAErC,CAAC;AA9CD,sDA8CC"}
|
package/dist/PublicContext.d.ts
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import { LazyTreeViewProps } from "./LazyTreeView";
|
|
3
3
|
import { ITidyTable } from "./PublicTidyTable";
|
|
4
4
|
import { ITidyTableTransformation } from "./ITidyTableTransformation";
|
|
5
|
-
import { Theme } from "@material
|
|
5
|
+
import { Theme } from "@mui/material/styles";
|
|
6
6
|
import { ThemeTextFormatter } from "./PublicTheme";
|
|
7
7
|
import { ITidyColumn } from "./PublicTidyColumn";
|
|
8
|
+
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
9
|
+
import { ITidyMath } from "./PublicTidyMath";
|
|
8
10
|
export declare enum WidgetRenderLayoutStatus {
|
|
9
11
|
RENDERING = "RENDERING",
|
|
10
12
|
RENDERED = "RENDERED"
|
|
@@ -29,6 +31,10 @@ export interface IPublicContext {
|
|
|
29
31
|
localizeError(name: string, ...args: any[]): string;
|
|
30
32
|
localize(name: string, ...args: any[]): string;
|
|
31
33
|
translateContent(content: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* A bunch of mathematical functions related to the tidy table.
|
|
36
|
+
*/
|
|
37
|
+
tidyMath(): ITidyMath;
|
|
32
38
|
/**
|
|
33
39
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
34
40
|
*
|
|
@@ -36,7 +42,7 @@ export interface IPublicContext {
|
|
|
36
42
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
37
43
|
* undefined.
|
|
38
44
|
*/
|
|
39
|
-
|
|
45
|
+
createTableRowTextExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => string) | undefined;
|
|
40
46
|
/**
|
|
41
47
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
42
48
|
*
|
|
@@ -44,7 +50,7 @@ export interface IPublicContext {
|
|
|
44
50
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
45
51
|
* undefined.
|
|
46
52
|
*/
|
|
47
|
-
|
|
53
|
+
createTableTextExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): (() => string) | undefined;
|
|
48
54
|
/**
|
|
49
55
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
50
56
|
*
|
|
@@ -52,7 +58,7 @@ export interface IPublicContext {
|
|
|
52
58
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
53
59
|
* undefined.
|
|
54
60
|
*/
|
|
55
|
-
|
|
61
|
+
createTableRowMarkdownExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => string) | undefined;
|
|
56
62
|
/**
|
|
57
63
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
58
64
|
*
|
|
@@ -60,7 +66,7 @@ export interface IPublicContext {
|
|
|
60
66
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
61
67
|
* undefined.
|
|
62
68
|
*/
|
|
63
|
-
|
|
69
|
+
createTableMarkdownExpr(field: string, table: ITidyTable, expression: string | undefined): (() => string) | undefined;
|
|
64
70
|
/**
|
|
65
71
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
66
72
|
*
|
|
@@ -69,6 +75,11 @@ export interface IPublicContext {
|
|
|
69
75
|
* undefined.
|
|
70
76
|
*/
|
|
71
77
|
createTableRowNumericExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => number | undefined) | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* same as createTableRowNumericExpr but returning a string
|
|
80
|
+
*/
|
|
81
|
+
createTableRowNumericStringExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => string | undefined) | undefined;
|
|
82
|
+
createTableScaleRowNumericExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => number | undefined) | undefined;
|
|
72
83
|
/**
|
|
73
84
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
74
85
|
*
|
|
@@ -79,11 +90,13 @@ export interface IPublicContext {
|
|
|
79
90
|
createTableNumericExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): (() => number | undefined) | undefined;
|
|
80
91
|
}
|
|
81
92
|
export interface IWidgetPublicContext extends IPublicContext {
|
|
82
|
-
onWidgetRenderStatusChange(status: WidgetRenderLayoutStatus): void;
|
|
83
93
|
getNsId(): string;
|
|
84
94
|
getWidgetId(): string;
|
|
85
95
|
getTemplateId(): string;
|
|
86
96
|
getWidgetPageId(): string;
|
|
97
|
+
isPrintingMode(): boolean;
|
|
98
|
+
getGoogleMapRenderedDelayMS(): number;
|
|
99
|
+
logInfoWidget(component: string, message: string): void;
|
|
87
100
|
renderWidgetContentMessage(type: IContentMessageType, message: string): any;
|
|
88
101
|
renderLazyTreeView<T>(props: LazyTreeViewProps): T;
|
|
89
102
|
formatDate(value: Date | string | undefined | null, format: ThemeTextFormatter | null | undefined, locale?: string): string;
|
|
@@ -105,10 +118,48 @@ export interface IWidgetPublicContext extends IPublicContext {
|
|
|
105
118
|
* the edited options in the widget editor panel will be updated.
|
|
106
119
|
*/
|
|
107
120
|
onUserMenuAction(userMenuAction: string, callback: (event: any) => Record<string, any> | undefined): void;
|
|
121
|
+
onWidgetRenderStatusChange(status: WidgetRenderLayoutStatus): void;
|
|
122
|
+
/**
|
|
123
|
+
* Event methods that do not depend on a Table
|
|
124
|
+
*
|
|
125
|
+
* @see ITidyTableInteractionEvent for more
|
|
126
|
+
*/
|
|
127
|
+
/**
|
|
128
|
+
* returns true if the actionName in bound to a channel
|
|
129
|
+
*/
|
|
130
|
+
firesEvent(actionName: string): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* actionName if the action is bound to a channel, clears the event (has no value)
|
|
133
|
+
*/
|
|
134
|
+
fireClearEvent(actionName: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* actionName if the action is bound to a channel, send an Mdx Event (value,mdx)
|
|
137
|
+
*/
|
|
138
|
+
fireMdxEvent(actionName: string, value: string, mdx: string): void;
|
|
139
|
+
/**
|
|
140
|
+
* Cypress testing purpose, after a rendering of the chart
|
|
141
|
+
*/
|
|
142
|
+
incrementWidgetContentRendering(): void;
|
|
143
|
+
getWidgetTemplateDefinition(qualifiedId: string): IPublicWidgetTemplateDefinition<any>;
|
|
144
|
+
resolveWidgetTemplateDefinition(definition: IPublicWidgetTemplateDefinition<any>): Promise<IPublicWidgetTemplateDefinition<any>>;
|
|
145
|
+
/**
|
|
146
|
+
* React -> combines useReduxOwnProps and setReduxOwnProps with a similar syntax to Redux.useState
|
|
147
|
+
*
|
|
148
|
+
* Note it's NOT the initial value but value if undefined
|
|
149
|
+
*/
|
|
150
|
+
useReduxOwnPropsState<T>(fieldName: string, valueIfUndefined?: T): [T, (newValue: T) => void];
|
|
151
|
+
/**
|
|
152
|
+
* React -> useSelector on widgetOwnProps[fieldName]
|
|
153
|
+
*/
|
|
154
|
+
useReduxOwnProps<T>(fieldName: string): T;
|
|
155
|
+
/**
|
|
156
|
+
* Redux -> set in Redux value in widgetOwnProps[fieldName]
|
|
157
|
+
*/
|
|
158
|
+
setReduxOwnProps(fieldName: string, value: any): void;
|
|
108
159
|
}
|
|
109
160
|
export interface IWidgetEditorPublicContext {
|
|
110
161
|
/**
|
|
111
162
|
* The variants available in the theme for the edited widget.
|
|
112
163
|
*/
|
|
113
|
-
getWidgetVariantIds(): string[];
|
|
164
|
+
getWidgetVariantIds(componentName?: string): string[];
|
|
114
165
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AASA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAAe"}
|
package/dist/PublicLayout.d.ts
CHANGED
|
@@ -62,17 +62,17 @@ export interface IPageHeaderFooterLogoDefinition {
|
|
|
62
62
|
}
|
|
63
63
|
export interface IPageHeaderFooterContentDefinition {
|
|
64
64
|
/**
|
|
65
|
-
* Used for formatting @dateTime variable
|
|
65
|
+
* Used for formatting @dateTime variable
|
|
66
66
|
*/
|
|
67
|
-
dateTimeFormat
|
|
67
|
+
dateTimeFormat: string;
|
|
68
68
|
/**
|
|
69
|
-
* Used for formatting @date variable
|
|
69
|
+
* Used for formatting @date variable
|
|
70
70
|
*/
|
|
71
|
-
dateFormat
|
|
71
|
+
dateFormat: string;
|
|
72
72
|
/**
|
|
73
|
-
* Used for formatting @time variable
|
|
73
|
+
* Used for formatting @time variable
|
|
74
74
|
*/
|
|
75
|
-
timeFormat
|
|
75
|
+
timeFormat: string;
|
|
76
76
|
text: string;
|
|
77
77
|
style?: CSSProperties;
|
|
78
78
|
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|