@datapos/datapos-shared 0.3.245 → 0.3.247
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.
|
@@ -3,12 +3,14 @@ export interface Presenter extends Component {
|
|
|
3
3
|
readonly config: PresenterConfig;
|
|
4
4
|
list(): ComponentRef[];
|
|
5
5
|
render(presentationPath: string, renderTo: HTMLElement, data?: unknown): Promise<void>;
|
|
6
|
+
setColorMode(colorModeId: ColorModeId): void;
|
|
6
7
|
}
|
|
8
|
+
export type ColorModeId = 'dark' | 'light';
|
|
7
9
|
export interface PresenterConfig extends ModuleConfig {
|
|
8
10
|
presentations: ComponentRef[];
|
|
9
11
|
typeId: 'presenter';
|
|
10
12
|
}
|
|
11
|
-
export type PresenterModuleOperation = 'list' | 'render';
|
|
13
|
+
export type PresenterModuleOperation = 'list' | 'render' | 'setColorMode';
|
|
12
14
|
export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'description'> & {
|
|
13
15
|
label: string;
|
|
14
16
|
description: string;
|
|
@@ -36,6 +36,7 @@ export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineCo
|
|
|
36
36
|
export type { SerialisedError } from './errors';
|
|
37
37
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
|
|
38
38
|
export type { Presenter, PresenterConfig, PresenterLocalisedConfig } from './component/presenter';
|
|
39
|
+
export type { ColorModeId } from './component/presenter';
|
|
39
40
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
40
41
|
export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
|
|
41
42
|
export type { ToolConfig } from './component/tool';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.247",
|
|
4
4
|
"description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"zod": "^4.1.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@datapos/datapos-development": "^0.3.
|
|
34
|
+
"@datapos/datapos-development": "^0.3.94",
|
|
35
35
|
"@types/node": "^24.10.1",
|
|
36
36
|
"@types/prismjs": "^1.26.5",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^8.47.0",
|