@datapos/datapos-shared 0.3.86 → 0.3.88
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.
|
@@ -26,7 +26,7 @@ export type { DimensionConfig, DimensionLocalisedConfig } from './dimension';
|
|
|
26
26
|
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWorker } from './engine';
|
|
27
27
|
export type { SerialisedError } from './errors';
|
|
28
28
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './eventQuery';
|
|
29
|
-
export type { Presenter, PresenterConfig,
|
|
29
|
+
export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterTools } from './presenter';
|
|
30
30
|
export type { PresentationConfig, PresentationView } from './presenter';
|
|
31
31
|
export type { Recipe, RecipeConfig, RecipeLocalisedConfig } from './recipe';
|
|
32
32
|
export type { ServiceData } from './service';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { default as markdownIt } from 'markdown-it';
|
|
2
|
-
import { ComponentConfig } from './component';
|
|
2
|
+
import { ComponentConfig, ComponentRef } from './component';
|
|
3
3
|
export interface Presenter {
|
|
4
4
|
readonly config: PresenterConfig;
|
|
5
5
|
readonly tools: PresenterTools;
|
|
6
|
-
list():
|
|
6
|
+
list(): ComponentRef[];
|
|
7
7
|
render(presentationPath: string, renderTo: HTMLElement): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
export interface PresenterConfig extends ComponentConfig {
|
|
10
|
+
presentations: ComponentRef[];
|
|
10
11
|
version: string;
|
|
11
12
|
}
|
|
12
13
|
export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'description'> & {
|
|
@@ -16,57 +17,16 @@ export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'descript
|
|
|
16
17
|
export type PresenterTools = {
|
|
17
18
|
markdownIt: typeof markdownIt;
|
|
18
19
|
};
|
|
19
|
-
export interface PresentationView {
|
|
20
|
-
resize: () => void;
|
|
21
|
-
vendorId: string;
|
|
22
|
-
}
|
|
23
|
-
export interface PresenterItemConfig {
|
|
24
|
-
items?: PresenterItemConfig[];
|
|
25
|
-
label: Record<string, string>;
|
|
26
|
-
name: string;
|
|
27
|
-
typeId: 'folder' | 'object';
|
|
28
|
-
}
|
|
29
|
-
export interface Presentation {
|
|
30
|
-
readonly config: PresentationConfig;
|
|
31
|
-
render(data: PresentationData, renderTo: string | HTMLElement | null, localeId?: string): void;
|
|
32
|
-
resize: () => void;
|
|
33
|
-
update: () => void;
|
|
34
|
-
}
|
|
35
20
|
export interface PresentationConfig extends ComponentConfig {
|
|
36
21
|
attributes: {
|
|
37
22
|
label: Record<string, string>;
|
|
38
23
|
description: Record<string, string>;
|
|
39
24
|
order: number;
|
|
40
25
|
};
|
|
41
|
-
order: number;
|
|
42
26
|
content: string;
|
|
27
|
+
order: number;
|
|
43
28
|
}
|
|
44
|
-
export interface
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
export interface PresentationData {
|
|
49
|
-
dimensions: {
|
|
50
|
-
id: string;
|
|
51
|
-
type: {
|
|
52
|
-
id: string;
|
|
53
|
-
spanId?: string;
|
|
54
|
-
intervalId?: string;
|
|
55
|
-
};
|
|
56
|
-
intervals: {
|
|
57
|
-
label: string;
|
|
58
|
-
}[];
|
|
59
|
-
};
|
|
60
|
-
measures: {
|
|
61
|
-
id: string;
|
|
62
|
-
label: string;
|
|
63
|
-
values: number[];
|
|
64
|
-
}[];
|
|
65
|
-
}
|
|
66
|
-
interface IHighchartsBasicConfig {
|
|
67
|
-
series: {
|
|
68
|
-
typeId: TChartSeriesTypeId;
|
|
69
|
-
}[];
|
|
29
|
+
export interface PresentationView {
|
|
30
|
+
resize: () => void;
|
|
31
|
+
vendorId: string;
|
|
70
32
|
}
|
|
71
|
-
type TChartSeriesTypeId = 'areaLine' | 'areaSpline' | 'bar' | 'column' | 'line' | 'pyramid' | 'spline';
|
|
72
|
-
export {};
|