@datapos/datapos-shared 0.3.30 → 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.
@@ -42,7 +42,7 @@ export interface ConnectorImplementation {
42
42
  maxConnectionCount?: number;
43
43
  params?: Record<string, string>[];
44
44
  }
45
- export type LocaleConnectorConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
45
+ export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
46
46
  label: string;
47
47
  description: string;
48
48
  };
@@ -15,7 +15,7 @@ export interface ContextFocusConfig extends ComponentConfig {
15
15
  modelRefs: ComponentRef[];
16
16
  order: number;
17
17
  }
18
- export type LocaleContextFocusConfig = Omit<ContextFocusConfig, 'label' | 'description'> & {
18
+ export type ContextFocusLocalisedConfig = Omit<ContextFocusConfig, 'label' | 'description'> & {
19
19
  label: string;
20
20
  description: string;
21
21
  };
@@ -3,7 +3,7 @@ export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId,
3
3
  export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './connection';
4
4
  export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './connection';
5
5
  export type { AuditContentResult, AuditContentSettings } from './connector';
6
- export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, LocaleConnectorConfig } from './connector';
6
+ export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, ConnectorLocalisedConfig } from './connector';
7
7
  export type { CreateSettings } from './connector';
8
8
  export type { DropSettings } from './connector';
9
9
  export type { FindResult, FindSettings } from './connector';
@@ -14,7 +14,7 @@ export type { PreviewResult, PreviewSettings } from './connector';
14
14
  export type { RemoveSettings } from './connector';
15
15
  export type { RetrieveResult, RetrieveSettings, RetrieveSummary, RetrieveTools } from './connector';
16
16
  export type { UpsertSettings } from './connector';
17
- export type { Context, ContextConfig, ContextFocusConfig, ContextFocusConfigListResult, ContextFocusConfigListSettings, ContextModelConfig, ContextDimensionConfig, ContextDimensionGroupConfig, ContextEntityCharacteristicConfig, ContextEntityGroupConfig, ContextEntityComputationConfig, ContextSecondaryMeasureGroupConfig, ContextViewGroupConfig, LocaleContextFocusConfig } from './context';
17
+ export type { Context, ContextConfig, ContextFocusConfig, ContextFocusConfigListResult, ContextFocusConfigListSettings, ContextModelConfig, ContextDimensionConfig, ContextDimensionGroupConfig, ContextEntityCharacteristicConfig, ContextEntityGroupConfig, ContextEntityComputationConfig, ContextSecondaryMeasureGroupConfig, ContextViewGroupConfig, ContextFocusLocalisedConfig } from './context';
18
18
  export type { ContextEntityConfig, ContextEntityEventConfig, ContextHierarchyConfig, ContextViewConfig, Event } from './context';
19
19
  export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './dataView';
20
20
  export type { DataViewConfig, DataViewContentAuditConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './dataView';
@@ -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 { IPresenter, IPresenterConfig, IPresenterItemConfig } from './presenter';
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 IPresenter {
3
- readonly config: IPresenterConfig;
4
- list(path: string): IPresenterItemConfig[];
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 IPresenterConfig extends ComponentConfig {
8
- index: IPresenterItemConfig[];
7
+ export interface PresenterConfig extends ComponentConfig {
8
+ index: PresenterItemConfig[];
9
9
  }
10
- export interface IPresenterItemConfig {
11
- items?: IPresenterItemConfig[];
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 IPresentation {
17
- readonly config: IPresentationConfig;
18
- render(data: IPresentationData, renderTo: string | HTMLElement | null, localeId?: string): void;
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 IPresentationConfig {
22
+ export interface PresentationConfig {
23
23
  id: string;
24
24
  label: string;
25
25
  typeId: 'declarative' | 'coded';
26
- blocks?: IPresentationBlockConfig[];
26
+ blocks?: PresentationBlockConfig[];
27
27
  }
28
- export interface IPresentationBlockConfig {
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 IPresentationData {
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
+ }
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.30",
5
+ "version": "0.3.32",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"