@datapos/datapos-shared 0.3.85 → 0.3.87

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.
@@ -15,6 +15,8 @@ export interface ComponentConfig {
15
15
  export interface ComponentRef {
16
16
  id: string;
17
17
  label: Partial<LocalisedString>;
18
+ description: Partial<LocalisedString>;
19
+ order: number;
18
20
  }
19
21
  export type ComponentStatus = {
20
22
  id: string;
@@ -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, PresenterItemConfig, PresenterLocalisedConfig, PresenterTools } from './presenter';
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,9 +1,9 @@
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(): PresenterItemConfig[];
6
+ list(): ComponentRef[];
7
7
  render(presentationPath: string, renderTo: HTMLElement): Promise<void>;
8
8
  }
9
9
  export interface PresenterConfig extends ComponentConfig {
@@ -16,22 +16,6 @@ export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'descript
16
16
  export type PresenterTools = {
17
17
  markdownIt: typeof markdownIt;
18
18
  };
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
19
  export interface PresentationConfig extends ComponentConfig {
36
20
  attributes: {
37
21
  label: Record<string, string>;
@@ -39,33 +23,9 @@ export interface PresentationConfig extends ComponentConfig {
39
23
  order: number;
40
24
  };
41
25
  content: string;
26
+ order: number;
42
27
  }
43
- export interface PresentationBlockConfig {
44
- config: IHighchartsBasicConfig | Record<string, unknown>;
45
- typeId?: 'chartJSBasic' | 'cytoscapeMarkov' | 'cytoscapeNetwork' | 'highchartsBasic' | 'table' | 'text';
46
- }
47
- export interface PresentationData {
48
- dimensions: {
49
- id: string;
50
- type: {
51
- id: string;
52
- spanId?: string;
53
- intervalId?: string;
54
- };
55
- intervals: {
56
- label: string;
57
- }[];
58
- };
59
- measures: {
60
- id: string;
61
- label: string;
62
- values: number[];
63
- }[];
64
- }
65
- interface IHighchartsBasicConfig {
66
- series: {
67
- typeId: TChartSeriesTypeId;
68
- }[];
28
+ export interface PresentationView {
29
+ resize: () => void;
30
+ vendorId: string;
69
31
  }
70
- type TChartSeriesTypeId = 'areaLine' | 'areaSpline' | 'bar' | 'column' | 'line' | 'pyramid' | 'spline';
71
- export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.85",
5
+ "version": "0.3.87",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"