@datapos/datapos-shared 0.3.240 → 0.3.242

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.
@@ -1,3 +1,4 @@
1
+ import { LocalisedString } from '../../index';
1
2
  import { Module } from '../../module';
2
3
  import { Component, ComponentConfig, ComponentRef } from '..';
3
4
  export interface Context extends Module, Component {
@@ -41,8 +42,8 @@ export type ContextModelLocalisedConfig = Omit<ContextModelConfig, 'label' | 'de
41
42
  };
42
43
  export interface ContextModelDimensionGroupConfig {
43
44
  id: string;
44
- label: Record<string, string>;
45
- description?: Record<string, unknown>;
45
+ label: Partial<LocalisedString>;
46
+ description: Partial<LocalisedString>;
46
47
  dimensionRefs: ComponentRef[];
47
48
  }
48
49
  export type ContextModelDimensionGroupLocalisedConfig = Omit<ContextModelDimensionGroupConfig, 'label' | 'description'> & {
@@ -51,7 +52,7 @@ export type ContextModelDimensionGroupLocalisedConfig = Omit<ContextModelDimensi
51
52
  };
52
53
  export interface ContextModelDimensionConfig {
53
54
  id: string;
54
- label: Record<string, string>;
55
+ label: Partial<LocalisedString>;
55
56
  hierarchies: ContextModelDimensionHierarchyConfig[];
56
57
  }
57
58
  export type ContextModelDimensionLocalisedConfig = Omit<ContextModelDimensionConfig, 'label' | 'description'> & {
@@ -60,7 +61,7 @@ export type ContextModelDimensionLocalisedConfig = Omit<ContextModelDimensionCon
60
61
  };
61
62
  export interface ContextModelDimensionHierarchyConfig {
62
63
  id: string;
63
- label: Record<string, string>;
64
+ label: Partial<LocalisedString>;
64
65
  }
65
66
  export type ContextModelDimensionHierarchyLocalisedConfig = Omit<ContextModelDimensionHierarchyConfig, 'label' | 'description'> & {
66
67
  label: string;
@@ -68,7 +69,7 @@ export type ContextModelDimensionHierarchyLocalisedConfig = Omit<ContextModelDim
68
69
  };
69
70
  export interface ContextModelEntityGroupConfig {
70
71
  id: string;
71
- label: Record<string, string>;
72
+ label: Partial<LocalisedString>;
72
73
  description?: Record<string, unknown>;
73
74
  entityRefs: ComponentRef[];
74
75
  }
@@ -78,8 +79,8 @@ export type ContextModelEntityGroupLocalisedConfig = Omit<ContextModelEntityGrou
78
79
  };
79
80
  export interface ContextModelEntityConfig {
80
81
  id: string;
81
- label: Record<string, string>;
82
- labelPlural: Record<string, string>;
82
+ label: Partial<LocalisedString>;
83
+ labelPlural: Partial<LocalisedString>;
83
84
  dataItems: ContextModelEntityDataItemConfig[];
84
85
  events: ContextModelEntityEventConfig[];
85
86
  primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
@@ -90,7 +91,7 @@ export type ContextModelEntityLocalisedConfig = Omit<ContextModelEntityConfig, '
90
91
  };
91
92
  export interface ContextModelEntityDataItemConfig {
92
93
  id: string;
93
- label: Record<string, string>;
94
+ label: Partial<LocalisedString>;
94
95
  }
95
96
  export type ContextModelEntityDataItemLocalisedConfig = Omit<ContextModelEntityDataItemConfig, 'label' | 'description'> & {
96
97
  label: string;
@@ -107,7 +108,7 @@ export type ContextModelEntityEventLocalisedConfig = Omit<ContextModelEntityEven
107
108
  };
108
109
  export interface ContextModelEntityPrimaryMeasureConfig {
109
110
  id: string;
110
- label: Record<string, string>;
111
+ label: Partial<LocalisedString>;
111
112
  }
112
113
  export type ContextModelEntityPrimaryMeasureLocalisedConfig = Omit<ContextModelEntityPrimaryMeasureConfig, 'label' | 'description'> & {
113
114
  label: string;
@@ -115,7 +116,7 @@ export type ContextModelEntityPrimaryMeasureLocalisedConfig = Omit<ContextModelE
115
116
  };
116
117
  export interface ContextModelSecondaryMeasureGroupConfig {
117
118
  id: string;
118
- label: Record<string, string>;
119
+ label: Partial<LocalisedString>;
119
120
  description?: Record<string, unknown>;
120
121
  secondaryMeasureRefs: ComponentRef[];
121
122
  }
@@ -125,7 +126,7 @@ export type ContextModelSecondaryMeasureGroupLocalisedConfig = Omit<ContextModel
125
126
  };
126
127
  export interface ContextModelSecondaryMeasureConfig {
127
128
  id: string;
128
- label: Record<string, string>;
129
+ label: Partial<LocalisedString>;
129
130
  }
130
131
  export type ContextModelSecondaryMeasureLocalisedConfig = Omit<ContextModelSecondaryMeasureConfig, 'label' | 'description'> & {
131
132
  label: string;
@@ -19,6 +19,8 @@ export type ComponentRef = {
19
19
  id: string;
20
20
  label: Partial<LocalisedString>;
21
21
  description: Partial<LocalisedString>;
22
+ icon?: string;
23
+ iconDark?: string;
22
24
  order: number;
23
25
  path: string;
24
26
  };
@@ -52,7 +52,7 @@ export interface PresentationVisualPolarChartViewConfig extends PresentationVisu
52
52
  categoryId: 'polarChart';
53
53
  typeId: PresentationPolarTypeId;
54
54
  }
55
- export type PresentationPolarTypeId = 'areaLine' | 'areaRange' | 'areaSpline' | 'column' | 'line' | 'spline';
55
+ export type PresentationPolarTypeId = 'areaLine' | 'areaRange' | 'areaSpline' | 'column' | 'columnRange' | 'line' | 'spline';
56
56
  export interface PresentationVisualRangeChartViewConfig extends PresentationVisualViewConfig {
57
57
  categoryId: 'rangeChart';
58
58
  typeId: PresentationRangeTypeId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.240",
3
+ "version": "0.3.242",
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,