@ic3/reporting-api 9.0.1 → 9.1.1
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/README.md +1 -1
- package/dist/index.cjs +1906 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +11284 -81
- package/dist/index.js +1782 -96
- package/dist/index.js.map +1 -1
- package/package.json +51 -19
- package/dist/ApiUtils.d.ts +0 -57
- package/dist/ApiUtils.js +0 -79
- package/dist/ApiUtils.js.map +0 -1
- package/dist/ILocalizationManager.d.ts +0 -3
- package/dist/ILocalizationManager.js +0 -3
- package/dist/ILocalizationManager.js.map +0 -1
- package/dist/IMigrationManager.d.ts +0 -4
- package/dist/IMigrationManager.js +0 -3
- package/dist/IMigrationManager.js.map +0 -1
- package/dist/INotification.d.ts +0 -84
- package/dist/INotification.js +0 -3
- package/dist/INotification.js.map +0 -1
- package/dist/IOnNewEventJsContext.d.ts +0 -85
- package/dist/IOnNewEventJsContext.js +0 -3
- package/dist/IOnNewEventJsContext.js.map +0 -1
- package/dist/IPluginDefinition.d.ts +0 -41
- package/dist/IPluginDefinition.js +0 -3
- package/dist/IPluginDefinition.js.map +0 -1
- package/dist/IRemotePluginName.d.ts +0 -5
- package/dist/IRemotePluginName.js +0 -3
- package/dist/IRemotePluginName.js.map +0 -1
- package/dist/IThemeManager.d.ts +0 -87
- package/dist/IThemeManager.js +0 -8
- package/dist/IThemeManager.js.map +0 -1
- package/dist/ITidyTableTransformation.d.ts +0 -44
- package/dist/ITidyTableTransformation.js +0 -3
- package/dist/ITidyTableTransformation.js.map +0 -1
- package/dist/ITidyTableTransformationManager.d.ts +0 -4
- package/dist/ITidyTableTransformationManager.js +0 -3
- package/dist/ITidyTableTransformationManager.js.map +0 -1
- package/dist/ITypes.d.ts +0 -43
- package/dist/ITypes.js +0 -38
- package/dist/ITypes.js.map +0 -1
- package/dist/IUserMenuOptionManager.d.ts +0 -13
- package/dist/IUserMenuOptionManager.js +0 -3
- package/dist/IUserMenuOptionManager.js.map +0 -1
- package/dist/IVersionedPluginDefinition.d.ts +0 -8
- package/dist/IVersionedPluginDefinition.js +0 -3
- package/dist/IVersionedPluginDefinition.js.map +0 -1
- package/dist/IWidgetDefaultsManager.d.ts +0 -4
- package/dist/IWidgetDefaultsManager.js +0 -3
- package/dist/IWidgetDefaultsManager.js.map +0 -1
- package/dist/IWidgetManager.d.ts +0 -7
- package/dist/IWidgetManager.js +0 -3
- package/dist/IWidgetManager.js.map +0 -1
- package/dist/IWidgetVariantManager.d.ts +0 -22
- package/dist/IWidgetVariantManager.js +0 -3
- package/dist/IWidgetVariantManager.js.map +0 -1
- package/dist/IcEvent.d.ts +0 -59
- package/dist/IcEvent.js +0 -27
- package/dist/IcEvent.js.map +0 -1
- package/dist/LazyTreeView.d.ts +0 -130
- package/dist/LazyTreeView.js +0 -3
- package/dist/LazyTreeView.js.map +0 -1
- package/dist/Logger.d.ts +0 -13
- package/dist/Logger.js +0 -3
- package/dist/Logger.js.map +0 -1
- package/dist/PublicAmCharts4Base.d.ts +0 -91
- package/dist/PublicAmCharts4Base.js +0 -3
- package/dist/PublicAmCharts4Base.js.map +0 -1
- package/dist/PublicAmchartsData.d.ts +0 -116
- package/dist/PublicAmchartsData.js +0 -170
- package/dist/PublicAmchartsData.js.map +0 -1
- package/dist/PublicCommon.d.ts +0 -1
- package/dist/PublicCommon.js +0 -3
- package/dist/PublicCommon.js.map +0 -1
- package/dist/PublicContext.d.ts +0 -389
- package/dist/PublicContext.js +0 -19
- package/dist/PublicContext.js.map +0 -1
- package/dist/PublicDateShortcutUtils.d.ts +0 -41
- package/dist/PublicDateShortcutUtils.js +0 -3
- package/dist/PublicDateShortcutUtils.js.map +0 -1
- package/dist/PublicI18n.d.ts +0 -8
- package/dist/PublicI18n.js +0 -3
- package/dist/PublicI18n.js.map +0 -1
- package/dist/PublicLayout.d.ts +0 -247
- package/dist/PublicLayout.js +0 -3
- package/dist/PublicLayout.js.map +0 -1
- package/dist/PublicTemplate.d.ts +0 -630
- package/dist/PublicTemplate.js +0 -33
- package/dist/PublicTemplate.js.map +0 -1
- package/dist/PublicTemplateExprForm.d.ts +0 -30
- package/dist/PublicTemplateExprForm.js +0 -3
- package/dist/PublicTemplateExprForm.js.map +0 -1
- package/dist/PublicTemplateForm.d.ts +0 -866
- package/dist/PublicTemplateForm.js +0 -122
- package/dist/PublicTemplateForm.js.map +0 -1
- package/dist/PublicTemplates.d.ts +0 -70
- package/dist/PublicTemplates.js +0 -3
- package/dist/PublicTemplates.js.map +0 -1
- package/dist/PublicTheme.d.ts +0 -1013
- package/dist/PublicTheme.js +0 -14
- package/dist/PublicTheme.js.map +0 -1
- package/dist/PublicTidyColumn.d.ts +0 -755
- package/dist/PublicTidyColumn.js +0 -100
- package/dist/PublicTidyColumn.js.map +0 -1
- package/dist/PublicTidyHistogram.d.ts +0 -81
- package/dist/PublicTidyHistogram.js +0 -105
- package/dist/PublicTidyHistogram.js.map +0 -1
- package/dist/PublicTidyMath.d.ts +0 -175
- package/dist/PublicTidyMath.js +0 -3
- package/dist/PublicTidyMath.js.map +0 -1
- package/dist/PublicTidyTable.d.ts +0 -534
- package/dist/PublicTidyTable.js +0 -3
- package/dist/PublicTidyTable.js.map +0 -1
- package/dist/PublicTidyTableInteractions.d.ts +0 -317
- package/dist/PublicTidyTableInteractions.js +0 -31
- package/dist/PublicTidyTableInteractions.js.map +0 -1
- package/dist/PublicTidyTableTypeGuards.d.ts +0 -6
- package/dist/PublicTidyTableTypeGuards.js +0 -36
- package/dist/PublicTidyTableTypeGuards.js.map +0 -1
- package/dist/PublicTidyTableTypes.d.ts +0 -480
- package/dist/PublicTidyTableTypes.js +0 -154
- package/dist/PublicTidyTableTypes.js.map +0 -1
- package/dist/PublicTidyTree.d.ts +0 -71
- package/dist/PublicTidyTree.js +0 -89
- package/dist/PublicTidyTree.js.map +0 -1
- package/dist/RemoteContainerUtils.d.ts +0 -9
- package/dist/RemoteContainerUtils.js +0 -49
- package/dist/RemoteContainerUtils.js.map +0 -1
- package/dist/ReportingVersion.d.ts +0 -9
- package/dist/ReportingVersion.js +0 -13
- package/dist/ReportingVersion.js.map +0 -1
- package/dist/ThemeAugmentation.d.ts +0 -35
- package/dist/ThemeAugmentation.js +0 -3
- package/dist/ThemeAugmentation.js.map +0 -1
- package/dist/theme/ThemeAIWidgetChatBot.d.ts +0 -49
- package/dist/theme/ThemeAIWidgetChatBot.js +0 -19
- package/dist/theme/ThemeAIWidgetChatBot.js.map +0 -1
- package/dist/theme/ThemeAlertDialog.d.ts +0 -13
- package/dist/theme/ThemeAlertDialog.js +0 -17
- package/dist/theme/ThemeAlertDialog.js.map +0 -1
- package/dist/theme/ThemeAmCharts4.d.ts +0 -1634
- package/dist/theme/ThemeAmCharts4.js +0 -84
- package/dist/theme/ThemeAmCharts4.js.map +0 -1
- package/dist/theme/ThemeApp.d.ts +0 -66
- package/dist/theme/ThemeApp.js +0 -64
- package/dist/theme/ThemeApp.js.map +0 -1
- package/dist/theme/ThemeAppMenuIcon.d.ts +0 -7
- package/dist/theme/ThemeAppMenuIcon.js +0 -8
- package/dist/theme/ThemeAppMenuIcon.js.map +0 -1
- package/dist/theme/ThemeBaseTable.d.ts +0 -122
- package/dist/theme/ThemeBaseTable.js +0 -10
- package/dist/theme/ThemeBaseTable.js.map +0 -1
- package/dist/theme/ThemeCodeMirror.d.ts +0 -4
- package/dist/theme/ThemeCodeMirror.js +0 -8
- package/dist/theme/ThemeCodeMirror.js.map +0 -1
- package/dist/theme/ThemeDatePicker.d.ts +0 -214
- package/dist/theme/ThemeDatePicker.js +0 -37
- package/dist/theme/ThemeDatePicker.js.map +0 -1
- package/dist/theme/ThemeEditorTopBar.d.ts +0 -39
- package/dist/theme/ThemeEditorTopBar.js +0 -43
- package/dist/theme/ThemeEditorTopBar.js.map +0 -1
- package/dist/theme/ThemeEmbeddedReport.d.ts +0 -37
- package/dist/theme/ThemeEmbeddedReport.js +0 -9
- package/dist/theme/ThemeEmbeddedReport.js.map +0 -1
- package/dist/theme/ThemeErrorRenderer.d.ts +0 -51
- package/dist/theme/ThemeErrorRenderer.js +0 -55
- package/dist/theme/ThemeErrorRenderer.js.map +0 -1
- package/dist/theme/ThemeFilter.d.ts +0 -28
- package/dist/theme/ThemeFilter.js +0 -3
- package/dist/theme/ThemeFilter.js.map +0 -1
- package/dist/theme/ThemeFilterAutocomplete.d.ts +0 -58
- package/dist/theme/ThemeFilterAutocomplete.js +0 -15
- package/dist/theme/ThemeFilterAutocomplete.js.map +0 -1
- package/dist/theme/ThemeFilterButtons.d.ts +0 -74
- package/dist/theme/ThemeFilterButtons.js +0 -23
- package/dist/theme/ThemeFilterButtons.js.map +0 -1
- package/dist/theme/ThemeFilterCheckboxRadio.d.ts +0 -52
- package/dist/theme/ThemeFilterCheckboxRadio.js +0 -23
- package/dist/theme/ThemeFilterCheckboxRadio.js.map +0 -1
- package/dist/theme/ThemeFilterPanel.d.ts +0 -243
- package/dist/theme/ThemeFilterPanel.js +0 -127
- package/dist/theme/ThemeFilterPanel.js.map +0 -1
- package/dist/theme/ThemeFilterPanelViewsMenu.d.ts +0 -8
- package/dist/theme/ThemeFilterPanelViewsMenu.js +0 -12
- package/dist/theme/ThemeFilterPanelViewsMenu.js.map +0 -1
- package/dist/theme/ThemeFilterSlider.d.ts +0 -92
- package/dist/theme/ThemeFilterSlider.js +0 -41
- package/dist/theme/ThemeFilterSlider.js.map +0 -1
- package/dist/theme/ThemeFilterSwitch.d.ts +0 -41
- package/dist/theme/ThemeFilterSwitch.js +0 -15
- package/dist/theme/ThemeFilterSwitch.js.map +0 -1
- package/dist/theme/ThemeFilterTree.d.ts +0 -112
- package/dist/theme/ThemeFilterTree.js +0 -23
- package/dist/theme/ThemeFilterTree.js.map +0 -1
- package/dist/theme/ThemeGlobal.d.ts +0 -4
- package/dist/theme/ThemeGlobal.js +0 -9
- package/dist/theme/ThemeGlobal.js.map +0 -1
- package/dist/theme/ThemeGoogle.d.ts +0 -132
- package/dist/theme/ThemeGoogle.js +0 -64
- package/dist/theme/ThemeGoogle.js.map +0 -1
- package/dist/theme/ThemeGoogleHeatMap.d.ts +0 -58
- package/dist/theme/ThemeGoogleHeatMap.js +0 -3
- package/dist/theme/ThemeGoogleHeatMap.js.map +0 -1
- package/dist/theme/ThemeGoogleKmlLayer.d.ts +0 -40
- package/dist/theme/ThemeGoogleKmlLayer.js +0 -3
- package/dist/theme/ThemeGoogleKmlLayer.js.map +0 -1
- package/dist/theme/ThemeGoogleMarker.d.ts +0 -147
- package/dist/theme/ThemeGoogleMarker.js +0 -3
- package/dist/theme/ThemeGoogleMarker.js.map +0 -1
- package/dist/theme/ThemeHomeCard.d.ts +0 -9
- package/dist/theme/ThemeHomeCard.js +0 -10
- package/dist/theme/ThemeHomeCard.js.map +0 -1
- package/dist/theme/ThemeHomeConsole.d.ts +0 -16
- package/dist/theme/ThemeHomeConsole.js +0 -20
- package/dist/theme/ThemeHomeConsole.js.map +0 -1
- package/dist/theme/ThemeHtmlBox.d.ts +0 -33
- package/dist/theme/ThemeHtmlBox.js +0 -11
- package/dist/theme/ThemeHtmlBox.js.map +0 -1
- package/dist/theme/ThemeIc3CustomDrilldownMenu.d.ts +0 -7
- package/dist/theme/ThemeIc3CustomDrilldownMenu.js +0 -11
- package/dist/theme/ThemeIc3CustomDrilldownMenu.js.map +0 -1
- package/dist/theme/ThemeIc3TableCell.d.ts +0 -10
- package/dist/theme/ThemeIc3TableCell.js +0 -7
- package/dist/theme/ThemeIc3TableCell.js.map +0 -1
- package/dist/theme/ThemeIc3TableCellDrilldown.d.ts +0 -12
- package/dist/theme/ThemeIc3TableCellDrilldown.js +0 -11
- package/dist/theme/ThemeIc3TableCellDrilldown.js.map +0 -1
- package/dist/theme/ThemeIc3WidgetBoxSpinner.d.ts +0 -15
- package/dist/theme/ThemeIc3WidgetBoxSpinner.js +0 -13
- package/dist/theme/ThemeIc3WidgetBoxSpinner.js.map +0 -1
- package/dist/theme/ThemeImage.d.ts +0 -30
- package/dist/theme/ThemeImage.js +0 -12
- package/dist/theme/ThemeImage.js.map +0 -1
- package/dist/theme/ThemeKpiBox.d.ts +0 -33
- package/dist/theme/ThemeKpiBox.js +0 -3
- package/dist/theme/ThemeKpiBox.js.map +0 -1
- package/dist/theme/ThemeKpiCard.d.ts +0 -133
- package/dist/theme/ThemeKpiCard.js +0 -19
- package/dist/theme/ThemeKpiCard.js.map +0 -1
- package/dist/theme/ThemeLayout.d.ts +0 -10
- package/dist/theme/ThemeLayout.js +0 -14
- package/dist/theme/ThemeLayout.js.map +0 -1
- package/dist/theme/ThemeLayoutPage.d.ts +0 -24
- package/dist/theme/ThemeLayoutPage.js +0 -28
- package/dist/theme/ThemeLayoutPage.js.map +0 -1
- package/dist/theme/ThemeLazyTreeClasses.d.ts +0 -29
- package/dist/theme/ThemeLazyTreeClasses.js +0 -31
- package/dist/theme/ThemeLazyTreeClasses.js.map +0 -1
- package/dist/theme/ThemeListCounter.d.ts +0 -15
- package/dist/theme/ThemeListCounter.js +0 -17
- package/dist/theme/ThemeListCounter.js.map +0 -1
- package/dist/theme/ThemeMarkdownText.d.ts +0 -27
- package/dist/theme/ThemeMarkdownText.js +0 -3
- package/dist/theme/ThemeMarkdownText.js.map +0 -1
- package/dist/theme/ThemePivotTable.d.ts +0 -93
- package/dist/theme/ThemePivotTable.js +0 -31
- package/dist/theme/ThemePivotTable.js.map +0 -1
- package/dist/theme/ThemePrintButton.d.ts +0 -29
- package/dist/theme/ThemePrintButton.js +0 -10
- package/dist/theme/ThemePrintButton.js.map +0 -1
- package/dist/theme/ThemeQueryBuilderNode.d.ts +0 -13
- package/dist/theme/ThemeQueryBuilderNode.js +0 -13
- package/dist/theme/ThemeQueryBuilderNode.js.map +0 -1
- package/dist/theme/ThemeRegexFilter.d.ts +0 -24
- package/dist/theme/ThemeRegexFilter.js +0 -26
- package/dist/theme/ThemeRegexFilter.js.map +0 -1
- package/dist/theme/ThemeRepetitionWidget.d.ts +0 -57
- package/dist/theme/ThemeRepetitionWidget.js +0 -3
- package/dist/theme/ThemeRepetitionWidget.js.map +0 -1
- package/dist/theme/ThemeReportAppBar.d.ts +0 -17
- package/dist/theme/ThemeReportAppBar.js +0 -21
- package/dist/theme/ThemeReportAppBar.js.map +0 -1
- package/dist/theme/ThemeReportAppLeftPanel.d.ts +0 -8
- package/dist/theme/ThemeReportAppLeftPanel.js +0 -12
- package/dist/theme/ThemeReportAppLeftPanel.js.map +0 -1
- package/dist/theme/ThemeSeparator.d.ts +0 -13
- package/dist/theme/ThemeSeparator.js +0 -3
- package/dist/theme/ThemeSeparator.js.map +0 -1
- package/dist/theme/ThemeSinglePanelFilter.d.ts +0 -18
- package/dist/theme/ThemeSinglePanelFilter.js +0 -3
- package/dist/theme/ThemeSinglePanelFilter.js.map +0 -1
- package/dist/theme/ThemeTable.d.ts +0 -160
- package/dist/theme/ThemeTable.js +0 -157
- package/dist/theme/ThemeTable.js.map +0 -1
- package/dist/theme/ThemeWidgetBox.d.ts +0 -164
- package/dist/theme/ThemeWidgetBox.js +0 -124
- package/dist/theme/ThemeWidgetBox.js.map +0 -1
- package/dist/theme/ThemeWidgetBoxContentMessage.d.ts +0 -11
- package/dist/theme/ThemeWidgetBoxContentMessage.js +0 -15
- package/dist/theme/ThemeWidgetBoxContentMessage.js.map +0 -1
- package/dist/theme/ThemeWidgetFilteredBy.d.ts +0 -5
- package/dist/theme/ThemeWidgetFilteredBy.js +0 -9
- package/dist/theme/ThemeWidgetFilteredBy.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,33 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic3/reporting-api",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "icCube dashboards API",
|
|
5
5
|
"homepage": "https://github.com/ic3-software/ic3-reporting-api",
|
|
6
|
-
"repository":
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/ic3-software/ic3-reporting-api.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
10
24
|
"publishConfig": {
|
|
11
25
|
"access": "public"
|
|
12
26
|
},
|
|
13
|
-
"
|
|
27
|
+
"peerDependencies": {
|
|
14
28
|
"@emotion/react": "11.14.0",
|
|
15
29
|
"@emotion/styled": "11.14.1",
|
|
16
|
-
"@mui/material": "7.3.
|
|
17
|
-
"@mui/system": "7.3.
|
|
30
|
+
"@mui/material": "7.3.6",
|
|
31
|
+
"@mui/system": "7.3.6",
|
|
32
|
+
"@mui/icons-material": "7.3.6",
|
|
33
|
+
"react": "18.3.1",
|
|
18
34
|
"react-dom": "18.3.1"
|
|
19
35
|
},
|
|
20
36
|
"devDependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@types/
|
|
23
|
-
"@types/
|
|
24
|
-
"@types/react
|
|
25
|
-
"
|
|
26
|
-
"
|
|
37
|
+
"@ic3/common-api": "1.0.3",
|
|
38
|
+
"@types/markerclustererplus": "^2.1.33",
|
|
39
|
+
"@types/node": "^22.10.2",
|
|
40
|
+
"@types/react": "^18.3.23",
|
|
41
|
+
"@types/react-dom": "^18.3.7",
|
|
42
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
43
|
+
"rimraf": "^6.1.3",
|
|
44
|
+
"typescript": "^5.9.3",
|
|
45
|
+
"vite": "^7.3.1",
|
|
46
|
+
"vite-plugin-dts": "^4.5.4",
|
|
47
|
+
"@microsoft/api-extractor": "7.56.3"
|
|
27
48
|
},
|
|
28
49
|
"scripts": {
|
|
29
|
-
"build": "
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
50
|
+
"build": "rimraf dist && tsc --noEmit && vite build",
|
|
51
|
+
"build-tar": "npm run build && npm pack && mv *.tgz dist/",
|
|
52
|
+
"clean": "rimraf dist",
|
|
53
|
+
"prepublishOnly": "npm run build",
|
|
54
|
+
"pack": "npm pack"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=18.0.0"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"icCube",
|
|
61
|
+
"dashboards",
|
|
62
|
+
"reporting",
|
|
63
|
+
"api"
|
|
64
|
+
]
|
|
65
|
+
}
|
package/dist/ApiUtils.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { IPluginDefinition } from "./IPluginDefinition";
|
|
2
|
-
import { IVersionedPluginDefinition } from "./IVersionedPluginDefinition";
|
|
3
|
-
import { FormFieldObject } from "./PublicTemplateForm";
|
|
4
|
-
import { IPublicWidgetJsTemplateDefinition, IPublicWidgetTemplateDefinition, IWrappedWidgetTemplateDefinition } from "./PublicTemplate";
|
|
5
|
-
import { WidgetTemplateIDs } from "./PublicTemplates";
|
|
6
|
-
export interface AmCharts4WrappedDefinition<WIDGET extends WidgetTemplateIDs> {
|
|
7
|
-
/**
|
|
8
|
-
* Some free text used while registering the wrapper (e.g., error purpose).
|
|
9
|
-
*/
|
|
10
|
-
readonly registrationInfo: string;
|
|
11
|
-
/**
|
|
12
|
-
* e.g., amCharts4.AmCharts4DonutChart
|
|
13
|
-
*/
|
|
14
|
-
readonly wrappedWidgetTemplateId: WIDGET;
|
|
15
|
-
/**
|
|
16
|
-
* New overall meta-information (e.g., id, groupId, image, etc...).
|
|
17
|
-
*/
|
|
18
|
-
readonly props: Partial<IPublicWidgetTemplateDefinition<FormFieldObject>>;
|
|
19
|
-
/**
|
|
20
|
-
* Meta-information for the editing of the widget options as well as the actual processing of those options
|
|
21
|
-
* (i.e., AmCharts 4 chart configuration). Lazy-loaded (and the underlying AmCharts 4 library) once required.
|
|
22
|
-
*
|
|
23
|
-
* <pre>
|
|
24
|
-
* export default {
|
|
25
|
-
*
|
|
26
|
-
* hookChartOptionsMeta: () => {
|
|
27
|
-
* ...
|
|
28
|
-
* },
|
|
29
|
-
*
|
|
30
|
-
* hookChartOptions: () => {
|
|
31
|
-
* ...
|
|
32
|
-
* },
|
|
33
|
-
*
|
|
34
|
-
* }
|
|
35
|
-
* </pre>
|
|
36
|
-
*/
|
|
37
|
-
readonly hooks: Promise<any>;
|
|
38
|
-
}
|
|
39
|
-
export declare class ApiUtils {
|
|
40
|
-
/**
|
|
41
|
-
* Define the form field as being localized.
|
|
42
|
-
*/
|
|
43
|
-
static readonly TAG_I18N_FIELD = "ic3t_";
|
|
44
|
-
static makePlugin(definition: IPluginDefinition): () => IVersionedPluginDefinition;
|
|
45
|
-
/**
|
|
46
|
-
* A helper method to create a widget template using the resolveDefinition method.
|
|
47
|
-
* Webpack lazy load of dependencies.
|
|
48
|
-
*
|
|
49
|
-
* @see IPublicWidgetJsTemplateDefinition#resolveDefinition
|
|
50
|
-
*/
|
|
51
|
-
static createLazyJsWidgetTemplateDefinition<OPTIONS extends FormFieldObject>(definition: Omit<IPublicWidgetJsTemplateDefinition<OPTIONS>, "jsCode">): IPublicWidgetJsTemplateDefinition<OPTIONS>;
|
|
52
|
-
static resolveAmCharts4WidgetTemplateDefinition<OPTIONS extends FormFieldObject>(definition: IPublicWidgetTemplateDefinition<OPTIONS>, wrapped: IPublicWidgetTemplateDefinition<any>): IPublicWidgetTemplateDefinition<OPTIONS>;
|
|
53
|
-
/**
|
|
54
|
-
* A utility function creating a wrapper widget template definition for existing AmCharts 4 widgets.
|
|
55
|
-
*/
|
|
56
|
-
static makeAmCharts4WrappedWidgetTemplateDefinition<WIDGET extends WidgetTemplateIDs>(props: AmCharts4WrappedDefinition<WIDGET>): IWrappedWidgetTemplateDefinition<WIDGET>;
|
|
57
|
-
}
|
package/dist/ApiUtils.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApiUtils = void 0;
|
|
7
|
-
const ReportingVersion_1 = __importDefault(require("./ReportingVersion"));
|
|
8
|
-
class ApiUtils {
|
|
9
|
-
static makePlugin(definition) {
|
|
10
|
-
return () => {
|
|
11
|
-
return {
|
|
12
|
-
apiVersion: new ReportingVersion_1.default("9.0.1", "Fri, 21 Nov 2025 08:18:22 GMT"),
|
|
13
|
-
...definition,
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A helper method to create a widget template using the resolveDefinition method.
|
|
19
|
-
* Webpack lazy load of dependencies.
|
|
20
|
-
*
|
|
21
|
-
* @see IPublicWidgetJsTemplateDefinition#resolveDefinition
|
|
22
|
-
*/
|
|
23
|
-
static createLazyJsWidgetTemplateDefinition(definition) {
|
|
24
|
-
return {
|
|
25
|
-
...definition,
|
|
26
|
-
jsCode: (context, container) => {
|
|
27
|
-
throw new Error("JS Lazy: unexpected jsCode() call!");
|
|
28
|
-
},
|
|
29
|
-
reactComponent: false,
|
|
30
|
-
withDrilldownPivotTableLikeAs: false,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
static resolveAmCharts4WidgetTemplateDefinition(definition, wrapped) {
|
|
34
|
-
return {
|
|
35
|
-
...wrapped,
|
|
36
|
-
...definition /* since Typescript 5.0.2 */,
|
|
37
|
-
resolveDefinition: undefined,
|
|
38
|
-
jsCode: wrapped.jsCode,
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* A utility function creating a wrapper widget template definition for existing AmCharts 4 widgets.
|
|
43
|
-
*/
|
|
44
|
-
static makeAmCharts4WrappedWidgetTemplateDefinition(props) {
|
|
45
|
-
return {
|
|
46
|
-
registrationInfo: props.registrationInfo,
|
|
47
|
-
wrappedWidgetTemplateId: props.wrappedWidgetTemplateId,
|
|
48
|
-
wrapper: (wrapped) => {
|
|
49
|
-
return {
|
|
50
|
-
...wrapped /* unresolved */,
|
|
51
|
-
...props.props /* e.g., id, groupId, etc... */,
|
|
52
|
-
/**
|
|
53
|
-
* amCharts 4 widgets are loading the amCharts 4 Javascript library on the fly.
|
|
54
|
-
*
|
|
55
|
-
* This extended widget has to use the resolveDefinition() mechanism as well to be able to re-use
|
|
56
|
-
* the lazy-loaded jsCode (widgets are implemented as IPublicWidgetJsTemplateDefinition).
|
|
57
|
-
*/
|
|
58
|
-
resolveDefinition: function (wrappedR) {
|
|
59
|
-
const wrappedResolved = ApiUtils.resolveAmCharts4WidgetTemplateDefinition(this, wrappedR);
|
|
60
|
-
return new Promise((resolve, reject) => {
|
|
61
|
-
props.hooks.then(definition => resolve({
|
|
62
|
-
...wrappedResolved,
|
|
63
|
-
// our (lazy-loaded) widget meta-information and options hook.
|
|
64
|
-
chartOptionsMeta: definition.default.hookChartOptionsMeta(wrappedResolved.chartOptionsMeta),
|
|
65
|
-
hookChartOptions: definition.default.hookChartOptions,
|
|
66
|
-
})).catch(err => reject(err));
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.ApiUtils = ApiUtils;
|
|
75
|
-
/**
|
|
76
|
-
* Define the form field as being localized.
|
|
77
|
-
*/
|
|
78
|
-
ApiUtils.TAG_I18N_FIELD = "ic3t_";
|
|
79
|
-
//# sourceMappingURL=ApiUtils.js.map
|
package/dist/ApiUtils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../src/ApiUtils.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAiDlD,MAAa,QAAQ;IAOV,MAAM,CAAC,UAAU,CAAC,UAA6B;QAElD,OAAO,GAA+B,EAAE;YAEpC,OAAO;gBAEH,UAAU,EAAE,IAAI,0BAAgB,CAC5B,OAAO,EACP,+BAA+B,CAClC;gBAED,GAAG,UAAU;aAEhB,CAAA;QAEL,CAAC,CAAA;IACL,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oCAAoC,CAAkC,UAAsE;QAEtJ,OAAO;YAEH,GAAG,UAAU;YAEb,MAAM,EAAE,CAAC,OAA6B,EAAE,SAAyB,EAAE,EAAE;gBACjE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YAC1D,CAAC;YAED,cAAc,EAAE,KAAK;YAErB,6BAA6B,EAAE,KAAK;SAEvC,CAAA;IAEL,CAAC;IAEM,MAAM,CAAC,wCAAwC,CAAkC,UAAoD,EAAE,OAA6C;QAEvL,OAAO;YAEH,GAAG,OAAO;YACV,GAAG,UAAiB,CAAC,4BAA4B;YAEjD,iBAAiB,EAAE,SAAS;YAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;SAEmB,CAAA;IAEjD,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,4CAA4C,CAAmC,KAAyC;QAElI,OAAO;YAEH,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,uBAAuB,EAAE,KAAK,CAAC,uBAAuB;YAEtD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;gBAEjB,OAAO;oBAEH,GAAG,OAAO,CAAC,gBAAgB;oBAE3B,GAAG,KAAK,CAAC,KAAK,CAAC,+BAA+B;oBAE9C;;;;;uBAKG;oBACH,iBAAiB,EAAE,UAAU,QAAQ;wBAEjC,MAAM,eAAe,GAAG,QAAQ,CAAC,wCAAwC,CAAC,IAAI,EAAE,QAAS,CAAC,CAAC;wBAE3F,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;4BAEnC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC;gCAEnC,GAAG,eAAe;gCAElB,8DAA8D;gCAE9D,gBAAgB,EAAE,UAAU,CAAC,OAAO,CAAC,oBAAoB,CAAC,eAAe,CAAC,gBAAgB,CAAC;gCAC3F,gBAAgB,EAAE,UAAU,CAAC,OAAO,CAAC,gBAAgB;6BAExD,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;wBACjC,CAAC,CAAC,CAAC;oBAEP,CAAC;iBACJ,CAAA;YACL,CAAC;SAEwC,CAAC;IAElD,CAAC;;AA/GL,4BAiHC;AA/GG;;GAEG;AACoB,uBAAc,GAAG,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILocalizationManager.js","sourceRoot":"","sources":["../src/ILocalizationManager.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IMigrationManager.js","sourceRoot":"","sources":["../src/IMigrationManager.ts"],"names":[],"mappings":""}
|
package/dist/INotification.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { PaperOrientation, PaperSizeName } from "./ITypes";
|
|
2
|
-
export type AppNotificationType = "logout" | "edit-report" | "print-report-dialog" | "print-report" | "print-report-without-state" | "print-report-in-browser" | "clear-selection-all-widgets" | "initialize-selection-all-widgets" | "save-state-to-localstorage" | "restore-state-from-localstorage" | "save-ownprops-to-localstorage" | "restore-ownprops-from-localstorage" | "save-reportwidgets-ownprops-to-localstorage" | "restore-reportwidgets-ownprops-from-localstorage";
|
|
3
|
-
export interface IAppNotification {
|
|
4
|
-
/**
|
|
5
|
-
* E.g., print-report.
|
|
6
|
-
*/
|
|
7
|
-
readonly type: AppNotificationType;
|
|
8
|
-
}
|
|
9
|
-
export interface IAppNotificationWithPayload<PAYLOAD> extends IAppNotification {
|
|
10
|
-
/**
|
|
11
|
-
* E.g., print-report.
|
|
12
|
-
*/
|
|
13
|
-
readonly type: AppNotificationType;
|
|
14
|
-
/**
|
|
15
|
-
* E.g., print-report file name.
|
|
16
|
-
*/
|
|
17
|
-
readonly payload: PAYLOAD;
|
|
18
|
-
}
|
|
19
|
-
export interface AppLogoutNotification extends IAppNotification {
|
|
20
|
-
readonly type: "logout";
|
|
21
|
-
}
|
|
22
|
-
export interface AppEditReportNotification extends IAppNotification {
|
|
23
|
-
readonly type: "edit-report";
|
|
24
|
-
}
|
|
25
|
-
export interface AppPrintReportNotificationPayload {
|
|
26
|
-
fileName?: string;
|
|
27
|
-
paperSizeName?: PaperSizeName;
|
|
28
|
-
paperOrientation?: PaperOrientation;
|
|
29
|
-
marginTop?: number;
|
|
30
|
-
marginRight?: number;
|
|
31
|
-
marginBottom?: number;
|
|
32
|
-
marginLeft?: number;
|
|
33
|
-
}
|
|
34
|
-
export interface IAppPrintReportNotification extends IAppNotificationWithPayload<AppPrintReportNotificationPayload> {
|
|
35
|
-
}
|
|
36
|
-
export interface AppPrintReportNotification extends IAppPrintReportNotification {
|
|
37
|
-
readonly type: "print-report";
|
|
38
|
-
}
|
|
39
|
-
export interface AppPrintReportWithoutStateNotification extends IAppPrintReportNotification {
|
|
40
|
-
readonly type: "print-report-without-state";
|
|
41
|
-
}
|
|
42
|
-
export interface AppPrintReportInBrowserNotification extends IAppPrintReportNotification {
|
|
43
|
-
readonly type: "print-report-in-browser";
|
|
44
|
-
}
|
|
45
|
-
export interface AppPrintReportDialogNotification extends IAppNotification {
|
|
46
|
-
readonly type: "print-report-dialog";
|
|
47
|
-
}
|
|
48
|
-
export interface SaveStateToLocalStorageNotification extends IAppNotification {
|
|
49
|
-
readonly type: "save-state-to-localstorage";
|
|
50
|
-
}
|
|
51
|
-
export interface RestoreStateFromLocalStorageNotification extends IAppNotification {
|
|
52
|
-
readonly type: "restore-state-from-localstorage";
|
|
53
|
-
}
|
|
54
|
-
export interface SaveOwnPropsToLocalStorageNotification extends IAppNotification {
|
|
55
|
-
readonly type: "save-ownprops-to-localstorage";
|
|
56
|
-
}
|
|
57
|
-
export interface RestoreOwnPropsFromLocalStorageNotification extends IAppNotification {
|
|
58
|
-
readonly type: "restore-ownprops-from-localstorage";
|
|
59
|
-
}
|
|
60
|
-
export interface SaveWidgetOwnPropsToLocalStorageNotification extends IAppNotification {
|
|
61
|
-
readonly type: "save-reportwidgets-ownprops-to-localstorage";
|
|
62
|
-
}
|
|
63
|
-
export interface RestoreWidgetOwnPropsFromLocalStorageNotification extends IAppNotification {
|
|
64
|
-
readonly type: "restore-reportwidgets-ownprops-from-localstorage";
|
|
65
|
-
}
|
|
66
|
-
export interface ClearSelectionAllWidgetsNotification extends IAppNotification {
|
|
67
|
-
readonly type: "clear-selection-all-widgets";
|
|
68
|
-
}
|
|
69
|
-
export interface InitializeSelectionAllWidgetsNotification extends IAppNotification {
|
|
70
|
-
readonly type: "initialize-selection-all-widgets";
|
|
71
|
-
}
|
|
72
|
-
export type AppNotification = AppLogoutNotification | AppEditReportNotification | AppPrintReportDialogNotification | AppPrintReportNotification | AppPrintReportWithoutStateNotification | AppPrintReportInBrowserNotification | SaveStateToLocalStorageNotification | RestoreStateFromLocalStorageNotification | SaveOwnPropsToLocalStorageNotification | RestoreWidgetOwnPropsFromLocalStorageNotification | SaveWidgetOwnPropsToLocalStorageNotification | RestoreOwnPropsFromLocalStorageNotification | InitializeSelectionAllWidgetsNotification | ClearSelectionAllWidgetsNotification;
|
|
73
|
-
export interface IAppNotificationToken {
|
|
74
|
-
type: AppNotificationType;
|
|
75
|
-
uid: number;
|
|
76
|
-
}
|
|
77
|
-
export interface IAppNotificationCallback {
|
|
78
|
-
onStarted: (token: IAppNotificationToken) => void;
|
|
79
|
-
onSuccess: (token: IAppNotificationToken) => void;
|
|
80
|
-
/**
|
|
81
|
-
* Return true if the error has been handled : the app. error handler won't be called.
|
|
82
|
-
*/
|
|
83
|
-
onError: (token: IAppNotificationToken, error: any) => void | boolean;
|
|
84
|
-
}
|
package/dist/INotification.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"INotification.js","sourceRoot":"","sources":["../src/INotification.ts"],"names":[],"mappings":""}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { PublicIcEvent } from "./IcEvent";
|
|
2
|
-
export interface IEventPayLoad {
|
|
3
|
-
nsId: string;
|
|
4
|
-
widgetId: string;
|
|
5
|
-
eventName: string;
|
|
6
|
-
event: PublicIcEvent | null | undefined;
|
|
7
|
-
}
|
|
8
|
-
export interface IOnNewEventJsContext {
|
|
9
|
-
isAppConsole(): boolean;
|
|
10
|
-
isAppReportViewer(): boolean;
|
|
11
|
-
isAppReportEditor(): boolean;
|
|
12
|
-
isAppReportEditorPreview(): boolean;
|
|
13
|
-
isAppReportAppEditor(): boolean;
|
|
14
|
-
isAppGadgetEditor(): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* A context cache that persist over calls.
|
|
17
|
-
*/
|
|
18
|
-
getCache(): Map<string, any>;
|
|
19
|
-
/**
|
|
20
|
-
* Report user name.
|
|
21
|
-
*/
|
|
22
|
-
getUserName(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Report tenant, if any.
|
|
25
|
-
*/
|
|
26
|
-
getTenant(): string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Reporting version.
|
|
29
|
-
*/
|
|
30
|
-
getReportingVersion(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Returns true if the event is empty.
|
|
33
|
-
*/
|
|
34
|
-
isEmptyEvent(event: IEventPayLoad): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The name of the event/channel.
|
|
37
|
-
*/
|
|
38
|
-
getEventName(event: IEventPayLoad): string;
|
|
39
|
-
/**
|
|
40
|
-
* The caption of the event (i.e. 'United Kingdom').
|
|
41
|
-
*/
|
|
42
|
-
getEventCaption(event: IEventPayLoad): string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* The MDX of the event (i.e. [Geography].[Country].&[UK]).
|
|
45
|
-
*/
|
|
46
|
-
getEventMdx(event: IEventPayLoad): string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* The widgetId from the widget the event was generated, if available.
|
|
49
|
-
*/
|
|
50
|
-
getEventWidgetId(event: IEventPayLoad): string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Returns the widget, jQuery object
|
|
53
|
-
*
|
|
54
|
-
* Using JQuery might conflict with React's state.
|
|
55
|
-
* Use with care as you will modify the DOM directly.
|
|
56
|
-
*/
|
|
57
|
-
getWidget$(widgetId: string): any;
|
|
58
|
-
/**
|
|
59
|
-
* Returns a list of widgets, jQuery object
|
|
60
|
-
*
|
|
61
|
-
* selector : can be a list of class names .class1.class2
|
|
62
|
-
*
|
|
63
|
-
* Using JQuery might conflict with React's state.
|
|
64
|
-
* Use with care as you will modify the DOM directly.
|
|
65
|
-
*/
|
|
66
|
-
getWidgets$(selector: string): any;
|
|
67
|
-
/**
|
|
68
|
-
* Returns the widget header jQuery object.
|
|
69
|
-
*
|
|
70
|
-
* Using JQuery might conflit with React's state.
|
|
71
|
-
* Use with care as you will modify the DOM directly.
|
|
72
|
-
*/
|
|
73
|
-
getWidgetHeader$(widgetId: string): any;
|
|
74
|
-
/**
|
|
75
|
-
* Returns the widget header jQuery object (you can user text() to modify the header's title.
|
|
76
|
-
*
|
|
77
|
-
* Using JQuery might conflit with React's state.
|
|
78
|
-
* Use with care as you will modify the DOM directly.
|
|
79
|
-
*/
|
|
80
|
-
getWidgetHeaderTitle$(widgetId: string): any;
|
|
81
|
-
/**
|
|
82
|
-
* Localize the tag using the content localization files.
|
|
83
|
-
*/
|
|
84
|
-
localize(tag: string, ...args: any[]): string;
|
|
85
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IOnNewEventJsContext.js","sourceRoot":"","sources":["../src/IOnNewEventJsContext.ts"],"names":[],"mappings":""}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ILocalizationManager } from "./ILocalizationManager";
|
|
2
|
-
import { IThemeManager } from "./IThemeManager";
|
|
3
|
-
import { IWidgetManager } from "./IWidgetManager";
|
|
4
|
-
import { ITidyTableTransformationManager } from "./ITidyTableTransformationManager";
|
|
5
|
-
import { IWidgetDefaultsManager } from "./IWidgetDefaultsManager";
|
|
6
|
-
import { Theme } from "@mui/material/styles";
|
|
7
|
-
import { WidgetTemplateIDs } from "./PublicTemplates";
|
|
8
|
-
import { FormFieldObject } from "./PublicTemplateForm";
|
|
9
|
-
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
10
|
-
import { ILogger } from "./Logger";
|
|
11
|
-
import { IUserMenuOptionManager } from "./IUserMenuOptionManager";
|
|
12
|
-
import { IMigrationManager } from "./IMigrationManager";
|
|
13
|
-
export interface IPluginDefinition {
|
|
14
|
-
/**
|
|
15
|
-
* Keep that id simple (i.e., ASCII letter without any dot, space, separator, etc...) as it will be used
|
|
16
|
-
* as a folder name (once deployed into an icCube server), Webpack module name, localization id, etc...
|
|
17
|
-
*
|
|
18
|
-
* That name must be unique across all the plugins loaded into an icCube server.
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
/**
|
|
22
|
-
* When defining new widgets using amCharts 4, this method registers the icCube license.
|
|
23
|
-
*/
|
|
24
|
-
registerAmCharts4?: (logger: ILogger, callback: (am4core: any) => void) => void;
|
|
25
|
-
registerMigrator?: (logger: ILogger, manager: IMigrationManager) => void;
|
|
26
|
-
registerLocalization?: (logger: ILogger, manager: ILocalizationManager) => void;
|
|
27
|
-
registerUserMenuOptions?: (logger: ILogger, manager: IUserMenuOptionManager) => void;
|
|
28
|
-
registerThemes?: (logger: ILogger, manager: IThemeManager) => void;
|
|
29
|
-
registerWidgets?: (logger: ILogger, manager: IWidgetManager) => void;
|
|
30
|
-
registerTidyTableTransformations?: (logger: ILogger, manager: ITidyTableTransformationManager) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Register widget defaults for all themes.
|
|
33
|
-
*/
|
|
34
|
-
registerWidgetDefaults?: (logger: ILogger, theme: Theme, manager: IWidgetDefaultsManager) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Allows for selecting the available widgets.
|
|
37
|
-
*
|
|
38
|
-
* @param id pluginId.widgetId (e.g., ic3.Table)
|
|
39
|
-
*/
|
|
40
|
-
acceptWidget?: (id: WidgetTemplateIDs | string, widget: IPublicWidgetTemplateDefinition<FormFieldObject>) => boolean;
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPluginDefinition.js","sourceRoot":"","sources":["../src/IPluginDefinition.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IRemotePluginName.js","sourceRoot":"","sources":["../src/IRemotePluginName.ts"],"names":[],"mappings":""}
|
package/dist/IThemeManager.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { CSSInterpolation } from "@mui/system";
|
|
2
|
-
import { Components } from "@mui/material/styles";
|
|
3
|
-
export declare enum EmbeddedThemeNames {
|
|
4
|
-
Statos = "ic3-statos"
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Default values (e.g., box options, chart options, etc...).
|
|
8
|
-
*/
|
|
9
|
-
export interface IThemeWidgetDefaults {
|
|
10
|
-
/**
|
|
11
|
-
* Default values for widget boxes. Lookup order:
|
|
12
|
-
*
|
|
13
|
-
* <pre>
|
|
14
|
-
* plugin-id.template-id.option
|
|
15
|
-
* plugin-id.option
|
|
16
|
-
* option
|
|
17
|
-
* </pre>
|
|
18
|
-
*
|
|
19
|
-
* @see WidgetBoxOptions (ThemeWidgetBox.ts)
|
|
20
|
-
*/
|
|
21
|
-
box?: Record<string, any>;
|
|
22
|
-
/**
|
|
23
|
-
* Default values for widget chart options. Lookup order:
|
|
24
|
-
*
|
|
25
|
-
* <pre>
|
|
26
|
-
* plugin-id.template-id.option
|
|
27
|
-
* plugin-id.option
|
|
28
|
-
* option
|
|
29
|
-
* </pre>
|
|
30
|
-
*
|
|
31
|
-
* @see IWidgetTemplateChartOptions (PublicTemplates.ts)
|
|
32
|
-
*/
|
|
33
|
-
options?: Record<string, any>;
|
|
34
|
-
/**
|
|
35
|
-
* Default values for widget icons. These settings override the defaults set in the theme in `widgetIcons`.
|
|
36
|
-
*
|
|
37
|
-
* Lookup order:
|
|
38
|
-
*
|
|
39
|
-
* <pre>
|
|
40
|
-
* plugin-id.template-id.option
|
|
41
|
-
* plugin-id.option
|
|
42
|
-
* option
|
|
43
|
-
* </pre>
|
|
44
|
-
*
|
|
45
|
-
* @see IWidgetIcons (PublicTheme.ts)
|
|
46
|
-
*/
|
|
47
|
-
widgetIcons?: Record<string, any>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Sort of named set of predefined options.
|
|
51
|
-
*/
|
|
52
|
-
export type IThemeWidgetVariant = {
|
|
53
|
-
props: {
|
|
54
|
-
variant: string;
|
|
55
|
-
} & Record<string, string>;
|
|
56
|
-
style: CSSInterpolation;
|
|
57
|
-
defaultProps?: Record<string, any>;
|
|
58
|
-
} | {
|
|
59
|
-
props: {
|
|
60
|
-
variant: string;
|
|
61
|
-
} & Record<string, string>;
|
|
62
|
-
defaultProps: Record<string, any>;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Examples:
|
|
66
|
-
* - Change the primary color of the theme to red: `theme.palette.primary.main = "#ff0000";`
|
|
67
|
-
* - Change default chart color: `theme.palette.ic3.chartSingleColors.default = "#ff0000";`
|
|
68
|
-
* - Change background: `theme.palette.ic3.pageBackgroundColor = "#ff0000";`
|
|
69
|
-
* - Change selected color: `theme.palette.ic3.selected = "#ff0000";`
|
|
70
|
-
*/
|
|
71
|
-
export type IThemeProcessor = (theme: any, params?: any) => void;
|
|
72
|
-
export interface IThemeManager {
|
|
73
|
-
/**
|
|
74
|
-
* Used by IReportDefinition.setThemeProcessorCall().
|
|
75
|
-
*/
|
|
76
|
-
registerThemeProcessor(name: string, processor: IThemeProcessor): void;
|
|
77
|
-
/**
|
|
78
|
-
* The theme decorator allows to setup the Theme.components and Theme.ic3 using the theme
|
|
79
|
-
* created from its partial options (e.g., using palette, typography, spacing, etc...)
|
|
80
|
-
*/
|
|
81
|
-
registerTheme(themeOptions: any, themeDecorator?: (theme: any) => Components, baseTheme?: EmbeddedThemeNames): void;
|
|
82
|
-
/**
|
|
83
|
-
* Register editor themes. Change the editor theme in ic3report-config.js by setting defaultEditorThemeId to a
|
|
84
|
-
* themeId from a theme using this method.
|
|
85
|
-
*/
|
|
86
|
-
registerEditorTheme(themeOptions: any, themeDecorator?: (theme: any) => Components): void;
|
|
87
|
-
}
|
package/dist/IThemeManager.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmbeddedThemeNames = void 0;
|
|
4
|
-
var EmbeddedThemeNames;
|
|
5
|
-
(function (EmbeddedThemeNames) {
|
|
6
|
-
EmbeddedThemeNames["Statos"] = "ic3-statos";
|
|
7
|
-
})(EmbeddedThemeNames || (exports.EmbeddedThemeNames = EmbeddedThemeNames = {}));
|
|
8
|
-
//# sourceMappingURL=IThemeManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IThemeManager.js","sourceRoot":"","sources":["../src/IThemeManager.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAE1B,2CAAqB,CAAA;AAEzB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { FormFieldDef, FormFieldObject, FormFields } from "./PublicTemplateForm";
|
|
2
|
-
import { ITidyTable } from "./PublicTidyTable";
|
|
3
|
-
import { IPublicContext } from "./PublicContext";
|
|
4
|
-
export interface ILocalizationContext {
|
|
5
|
-
localizeDescription(...args: any[]): string;
|
|
6
|
-
localizeDescriptionEx<T extends FormFieldObject>(context: ILocalizationContext, fieldMeta: FormFieldDef[] | FormFields<T>, persistentOption: T, ...fields: (keyof T)[]): string;
|
|
7
|
-
localize(name: string, ...args: any[]): string;
|
|
8
|
-
}
|
|
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
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* The id of the editor group that the transformation is in.
|
|
16
|
-
*/
|
|
17
|
-
groupId: string;
|
|
18
|
-
/**
|
|
19
|
-
* Internal usage: pluginID.id
|
|
20
|
-
*/
|
|
21
|
-
qualifiedId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Widgets from these templates can use the transformation. Leave undefined for all widgets.
|
|
24
|
-
* E.g., ic3.Table for the table widget.
|
|
25
|
-
*/
|
|
26
|
-
allowedByWidgetTemplate?: string[];
|
|
27
|
-
/**
|
|
28
|
-
* Return the description to show below the transformation in the 'TRANSFORMATION' tab of the editor
|
|
29
|
-
* @param context used for accessing localization functions
|
|
30
|
-
* @param options user-set options for the transformation
|
|
31
|
-
*/
|
|
32
|
-
getDescription?(context: ILocalizationContext, options: OPTIONS): string;
|
|
33
|
-
/**
|
|
34
|
-
* Return the field meta for the user-editable options
|
|
35
|
-
*/
|
|
36
|
-
getFieldMeta(): FormFieldDef[] | FormFields<OPTIONS>;
|
|
37
|
-
/**
|
|
38
|
-
* Run the transformation.
|
|
39
|
-
* @param context public context
|
|
40
|
-
* @param table modify this table in the transformation. It is mutable.
|
|
41
|
-
* @param options user-set options for the transformation
|
|
42
|
-
*/
|
|
43
|
-
apply(context: IPublicContext, table: ITidyTable, options: OPTIONS): void;
|
|
44
|
-
}
|