@datapos/datapos-shared 0.3.31 → 0.3.32
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.
|
@@ -22,7 +22,8 @@ export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWo
|
|
|
22
22
|
export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
|
|
23
23
|
export type { SerialisedError } from './errors';
|
|
24
24
|
export type { EventQueryConfig } from './eventQuery';
|
|
25
|
-
export type {
|
|
25
|
+
export type { Presenter, PresenterConfig, PresenterItemConfig } from './presenter';
|
|
26
|
+
export type { Recipe, RecipeConfig } from './recipe';
|
|
26
27
|
export type { ServiceData } from './service';
|
|
27
28
|
export type { StateConfig } from './state';
|
|
28
29
|
export type { Timestamp } from './timestamp';
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { ComponentConfig } from './component';
|
|
2
|
-
export interface
|
|
3
|
-
readonly config:
|
|
4
|
-
list(path: string):
|
|
2
|
+
export interface Presenter {
|
|
3
|
+
readonly config: PresenterConfig;
|
|
4
|
+
list(path: string): PresenterItemConfig[];
|
|
5
5
|
render(id: string, renderTo: string | HTMLElement): Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
8
|
-
index:
|
|
7
|
+
export interface PresenterConfig extends ComponentConfig {
|
|
8
|
+
index: PresenterItemConfig[];
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
11
|
-
items?:
|
|
10
|
+
export interface PresenterItemConfig {
|
|
11
|
+
items?: PresenterItemConfig[];
|
|
12
12
|
label: Record<string, string>;
|
|
13
13
|
name: string;
|
|
14
14
|
typeId: 'folder' | 'object';
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
readonly config:
|
|
18
|
-
render(data:
|
|
16
|
+
export interface Presentation {
|
|
17
|
+
readonly config: PresentationConfig;
|
|
18
|
+
render(data: PresentationData, renderTo: string | HTMLElement | null, localeId?: string): void;
|
|
19
19
|
resize: () => void;
|
|
20
20
|
update: () => void;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface PresentationConfig {
|
|
23
23
|
id: string;
|
|
24
24
|
label: string;
|
|
25
25
|
typeId: 'declarative' | 'coded';
|
|
26
|
-
blocks?:
|
|
26
|
+
blocks?: PresentationBlockConfig[];
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface PresentationBlockConfig {
|
|
29
29
|
config: IHighchartsBasicConfig | Record<string, unknown>;
|
|
30
30
|
typeId?: 'chartJSBasic' | 'cytoscapeMarkov' | 'cytoscapeNetwork' | 'highchartsBasic' | 'table' | 'text';
|
|
31
31
|
}
|
|
32
|
-
export interface
|
|
32
|
+
export interface PresentationData {
|
|
33
33
|
dimensions: {
|
|
34
34
|
id: string;
|
|
35
35
|
type: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentConfig } from './component';
|
|
2
|
+
export interface Recipe {
|
|
3
|
+
readonly config: RecipeConfig;
|
|
4
|
+
list(path: string): RecipeItemConfig[];
|
|
5
|
+
render(id: string, renderTo: string | HTMLElement): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface RecipeConfig extends ComponentConfig {
|
|
8
|
+
index: RecipeItemConfig[];
|
|
9
|
+
}
|
|
10
|
+
export interface RecipeItemConfig {
|
|
11
|
+
items?: RecipeItemConfig[];
|
|
12
|
+
label: Record<string, string>;
|
|
13
|
+
name: string;
|
|
14
|
+
typeId: 'folder' | 'object';
|
|
15
|
+
}
|