@dpuse/dpuse-shared 0.3.627 → 0.3.631
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.
- package/dist/dpuse-shared-componentModuleContextModel.es.js +0 -0
- package/dist/dpuse-shared-componentModuleContextModelDimension.es.js +0 -0
- package/dist/dpuse-shared-componentModuleContextModelEntity.es.js +0 -0
- package/dist/dpuse-shared-componentModuleContextModelEntityDataItem.es.js +0 -0
- package/dist/dpuse-shared-componentModuleContextModelEntityEvent.es.js +0 -0
- package/dist/dpuse-shared-componentModuleContextModelEntityPrimaryMeasure.es.js +0 -0
- package/dist/dpuse-shared-componentModuleContextModelSecondaryMeasure.es.js +0 -0
- package/dist/dpuse-shared-encoding.es.js +107 -106
- package/dist/types/src/component/connection/index.d.ts +2 -5
- package/dist/types/src/component/dataView/index.d.ts +2 -4
- package/dist/types/src/component/dimension/index.d.ts +2 -4
- package/dist/types/src/component/eventQuery/index.d.ts +2 -4
- package/dist/types/src/component/index.d.ts +2 -5
- package/dist/types/src/component/module/connector/index.d.ts +2 -4
- package/dist/types/src/component/module/context/index.d.ts +3 -111
- package/dist/types/src/component/module/context/model/dimension/index.d.ts +12 -0
- package/dist/types/src/component/module/context/model/entity/dataItem/index.d.ts +6 -0
- package/dist/types/src/component/module/context/model/entity/event/index.d.ts +7 -0
- package/dist/types/src/component/module/context/model/entity/index.d.ts +13 -0
- package/dist/types/src/component/module/context/model/entity/primaryMeasure/index.d.ts +6 -0
- package/dist/types/src/component/module/context/model/index.d.ts +30 -0
- package/dist/types/src/component/module/context/model/secondaryMeasure/index.d.ts +6 -0
- package/dist/types/src/component/module/presenter/index.d.ts +2 -4
- package/dist/types/src/locale/index.d.ts +4 -0
- package/package.json +44 -16
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,91 +1,20 @@
|
|
|
1
|
-
//#
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/encoding/index.ts
|
|
2
3
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
label: "Chinese Simplified (gb18030)",
|
|
18
|
-
isDetectable: !0,
|
|
19
|
-
isDecodable: !0
|
|
20
|
-
}, r = {
|
|
21
|
-
id: "gbk",
|
|
22
|
-
groupLabel: "Chinese Simplified",
|
|
23
|
-
label: "Chinese Simplified (gbk)",
|
|
24
|
-
isDetectable: !1,
|
|
25
|
-
isDecodable: !0
|
|
26
|
-
}, i = {
|
|
27
|
-
id: "ibm866",
|
|
28
|
-
groupLabel: "Cyrillic",
|
|
29
|
-
label: "Cyrillic (ibm866)",
|
|
30
|
-
isDetectable: !1,
|
|
31
|
-
isDecodable: !0
|
|
32
|
-
}, a = {
|
|
33
|
-
id: "latin1",
|
|
34
|
-
groupLabel: "Western",
|
|
35
|
-
label: "Western (latin1)",
|
|
36
|
-
isDetectable: !1,
|
|
37
|
-
isDecodable: !0
|
|
38
|
-
}, o = {
|
|
39
|
-
id: "macintosh",
|
|
40
|
-
groupLabel: "Western",
|
|
41
|
-
label: "Western (macintosh)",
|
|
42
|
-
isDetectable: !1,
|
|
43
|
-
isDecodable: !0
|
|
44
|
-
}, s = {
|
|
45
|
-
id: "shift_jis",
|
|
46
|
-
groupLabel: "Japanese",
|
|
47
|
-
label: "Japanese (shift_jis)",
|
|
48
|
-
isDetectable: !0,
|
|
49
|
-
isDecodable: !0
|
|
50
|
-
}, c = {
|
|
51
|
-
id: "utf16",
|
|
52
|
-
groupLabel: "Unicode 16",
|
|
53
|
-
label: "Unicode 16 (utf16)",
|
|
54
|
-
isDetectable: !1,
|
|
55
|
-
isDecodable: !0
|
|
56
|
-
}, l = {
|
|
57
|
-
id: "utf16be",
|
|
58
|
-
groupLabel: "Unicode 16",
|
|
59
|
-
label: "Unicode 16 (utf16be)",
|
|
60
|
-
isDetectable: !0,
|
|
61
|
-
isDecodable: !0
|
|
62
|
-
}, u = {
|
|
63
|
-
id: "utf16le",
|
|
64
|
-
groupLabel: "Unicode 16",
|
|
65
|
-
label: "Unicode 16 (utf16le)",
|
|
66
|
-
isDetectable: !0,
|
|
67
|
-
isDecodable: !0
|
|
68
|
-
}, d = {
|
|
69
|
-
id: "utf32be",
|
|
70
|
-
groupLabel: "Unicode 32",
|
|
71
|
-
label: "Unicode 32 (utf32be)",
|
|
72
|
-
isDetectable: !0,
|
|
73
|
-
isDecodable: !1
|
|
74
|
-
}, f = {
|
|
75
|
-
id: "utf32le",
|
|
76
|
-
groupLabel: "Unicode 32",
|
|
77
|
-
label: "Unicode 32 (utf32le)",
|
|
78
|
-
isDetectable: !0,
|
|
79
|
-
isDecodable: !1
|
|
80
|
-
}, p = {
|
|
81
|
-
id: "utf8",
|
|
82
|
-
groupLabel: "",
|
|
83
|
-
label: "utf8",
|
|
84
|
-
isDetectable: !0,
|
|
85
|
-
isDecodable: !0
|
|
86
|
-
}, m = {
|
|
87
|
-
ascii: e,
|
|
88
|
-
big5: t,
|
|
4
|
+
ascii: {
|
|
5
|
+
id: "ascii",
|
|
6
|
+
groupLabel: "",
|
|
7
|
+
label: "ascii",
|
|
8
|
+
isDetectable: !1,
|
|
9
|
+
isDecodable: !0
|
|
10
|
+
},
|
|
11
|
+
big5: {
|
|
12
|
+
id: "big5",
|
|
13
|
+
groupLabel: "Chinese Traditional",
|
|
14
|
+
label: "Chinese Traditional (big5)",
|
|
15
|
+
isDetectable: !0,
|
|
16
|
+
isDecodable: !0
|
|
17
|
+
},
|
|
89
18
|
"euc-jp": {
|
|
90
19
|
id: "euc-jp",
|
|
91
20
|
groupLabel: "Japanese",
|
|
@@ -100,9 +29,27 @@ var e = {
|
|
|
100
29
|
isDetectable: !0,
|
|
101
30
|
isDecodable: !0
|
|
102
31
|
},
|
|
103
|
-
gb18030:
|
|
104
|
-
|
|
105
|
-
|
|
32
|
+
gb18030: {
|
|
33
|
+
id: "gb18030",
|
|
34
|
+
groupLabel: "Chinese Simplified",
|
|
35
|
+
label: "Chinese Simplified (gb18030)",
|
|
36
|
+
isDetectable: !0,
|
|
37
|
+
isDecodable: !0
|
|
38
|
+
},
|
|
39
|
+
gbk: {
|
|
40
|
+
id: "gbk",
|
|
41
|
+
groupLabel: "Chinese Simplified",
|
|
42
|
+
label: "Chinese Simplified (gbk)",
|
|
43
|
+
isDetectable: !1,
|
|
44
|
+
isDecodable: !0
|
|
45
|
+
},
|
|
46
|
+
ibm866: {
|
|
47
|
+
id: "ibm866",
|
|
48
|
+
groupLabel: "Cyrillic",
|
|
49
|
+
label: "Cyrillic (ibm866)",
|
|
50
|
+
isDetectable: !1,
|
|
51
|
+
isDecodable: !0
|
|
52
|
+
},
|
|
106
53
|
"iso-2022-cn": {
|
|
107
54
|
id: "iso-2022-cn",
|
|
108
55
|
groupLabel: "Japanese",
|
|
@@ -243,9 +190,27 @@ var e = {
|
|
|
243
190
|
isDetectable: !1,
|
|
244
191
|
isDecodable: !0
|
|
245
192
|
},
|
|
246
|
-
latin1:
|
|
247
|
-
|
|
248
|
-
|
|
193
|
+
latin1: {
|
|
194
|
+
id: "latin1",
|
|
195
|
+
groupLabel: "Western",
|
|
196
|
+
label: "Western (latin1)",
|
|
197
|
+
isDetectable: !1,
|
|
198
|
+
isDecodable: !0
|
|
199
|
+
},
|
|
200
|
+
macintosh: {
|
|
201
|
+
id: "macintosh",
|
|
202
|
+
groupLabel: "Western",
|
|
203
|
+
label: "Western (macintosh)",
|
|
204
|
+
isDetectable: !1,
|
|
205
|
+
isDecodable: !0
|
|
206
|
+
},
|
|
207
|
+
shift_jis: {
|
|
208
|
+
id: "shift_jis",
|
|
209
|
+
groupLabel: "Japanese",
|
|
210
|
+
label: "Japanese (shift_jis)",
|
|
211
|
+
isDetectable: !0,
|
|
212
|
+
isDecodable: !0
|
|
213
|
+
},
|
|
249
214
|
"tis-620": {
|
|
250
215
|
id: "tis-620",
|
|
251
216
|
groupLabel: "Thai",
|
|
@@ -253,12 +218,48 @@ var e = {
|
|
|
253
218
|
isDetectable: !1,
|
|
254
219
|
isDecodable: !0
|
|
255
220
|
},
|
|
256
|
-
utf16:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
221
|
+
utf16: {
|
|
222
|
+
id: "utf16",
|
|
223
|
+
groupLabel: "Unicode 16",
|
|
224
|
+
label: "Unicode 16 (utf16)",
|
|
225
|
+
isDetectable: !1,
|
|
226
|
+
isDecodable: !0
|
|
227
|
+
},
|
|
228
|
+
utf16be: {
|
|
229
|
+
id: "utf16be",
|
|
230
|
+
groupLabel: "Unicode 16",
|
|
231
|
+
label: "Unicode 16 (utf16be)",
|
|
232
|
+
isDetectable: !0,
|
|
233
|
+
isDecodable: !0
|
|
234
|
+
},
|
|
235
|
+
utf16le: {
|
|
236
|
+
id: "utf16le",
|
|
237
|
+
groupLabel: "Unicode 16",
|
|
238
|
+
label: "Unicode 16 (utf16le)",
|
|
239
|
+
isDetectable: !0,
|
|
240
|
+
isDecodable: !0
|
|
241
|
+
},
|
|
242
|
+
utf32be: {
|
|
243
|
+
id: "utf32be",
|
|
244
|
+
groupLabel: "Unicode 32",
|
|
245
|
+
label: "Unicode 32 (utf32be)",
|
|
246
|
+
isDetectable: !0,
|
|
247
|
+
isDecodable: !1
|
|
248
|
+
},
|
|
249
|
+
utf32le: {
|
|
250
|
+
id: "utf32le",
|
|
251
|
+
groupLabel: "Unicode 32",
|
|
252
|
+
label: "Unicode 32 (utf32le)",
|
|
253
|
+
isDetectable: !0,
|
|
254
|
+
isDecodable: !1
|
|
255
|
+
},
|
|
256
|
+
utf8: {
|
|
257
|
+
id: "utf8",
|
|
258
|
+
groupLabel: "",
|
|
259
|
+
label: "utf8",
|
|
260
|
+
isDetectable: !0,
|
|
261
|
+
isDecodable: !0
|
|
262
|
+
},
|
|
262
263
|
"windows-1250": {
|
|
263
264
|
id: "windows-1250",
|
|
264
265
|
groupLabel: "Central European",
|
|
@@ -344,13 +345,13 @@ var e = {
|
|
|
344
345
|
isDecodable: !0
|
|
345
346
|
}
|
|
346
347
|
};
|
|
347
|
-
function
|
|
348
|
-
let
|
|
349
|
-
for (let [,
|
|
350
|
-
...
|
|
351
|
-
label:
|
|
348
|
+
function t(t = "en") {
|
|
349
|
+
let n = [];
|
|
350
|
+
for (let [, t] of Object.entries(e)) n.push({
|
|
351
|
+
...t,
|
|
352
|
+
label: t.label || t.id
|
|
352
353
|
});
|
|
353
|
-
return
|
|
354
|
+
return n.toSorted((e, t) => e.groupLabel.localeCompare(t.groupLabel) || e.label.localeCompare(t.label));
|
|
354
355
|
}
|
|
355
356
|
//#endregion
|
|
356
|
-
export {
|
|
357
|
+
export { e as encodingConfigMap, t as getEncodingTypeConfigs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from '..';
|
|
2
2
|
import { ConnectorConfig } from '../module/connector';
|
|
3
|
-
import { LocaleLabel } from '../../locale';
|
|
3
|
+
import { Localised, LocaleLabel } from '../../locale';
|
|
4
4
|
import { DataSubtypeId, DataTypeId } from '../dataView';
|
|
5
5
|
export interface ConnectionConfig extends ComponentConfig {
|
|
6
6
|
authorisation: Record<string, ConnectionAuthorisationConfig>;
|
|
@@ -8,10 +8,7 @@ export interface ConnectionConfig extends ComponentConfig {
|
|
|
8
8
|
lastVerifiedAt: number;
|
|
9
9
|
notation: string | undefined;
|
|
10
10
|
}
|
|
11
|
-
export type ConnectionLocalisedConfig =
|
|
12
|
-
label: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
11
|
+
export type ConnectionLocalisedConfig = Localised<ConnectionConfig>;
|
|
15
12
|
export interface ConnectionAuthorisationConfig {
|
|
16
13
|
accessToken: string;
|
|
17
14
|
accountId: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
2
|
import { Component, ComponentConfig } from '..';
|
|
3
3
|
import { ConnectionNodeConfig, ObjectColumnConfig } from '../connection';
|
|
4
|
+
import { Localised } from '../../locale';
|
|
4
5
|
type DataViewInterface = Component;
|
|
5
6
|
interface DataViewConfig extends ComponentConfig {
|
|
6
7
|
connectionId: string | undefined;
|
|
@@ -9,10 +10,7 @@ interface DataViewConfig extends ComponentConfig {
|
|
|
9
10
|
contentAuditConfig: ContentAuditConfig | undefined;
|
|
10
11
|
relationshipsAuditConfig: RelationshipsAuditConfig | undefined;
|
|
11
12
|
}
|
|
12
|
-
type DataViewLocalisedConfig =
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
13
|
+
type DataViewLocalisedConfig = Localised<DataViewConfig>;
|
|
16
14
|
interface PreviewConfig {
|
|
17
15
|
asAt: number;
|
|
18
16
|
commentMarkId?: string | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from '..';
|
|
2
|
+
import { Localised } from '../../locale';
|
|
2
3
|
export interface DimensionConfig extends ComponentConfig {
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
}
|
|
5
|
-
export type DimensionLocalisedConfig =
|
|
6
|
-
label: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
6
|
+
export type DimensionLocalisedConfig = Localised<DimensionConfig>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from '..';
|
|
2
|
+
import { Localised } from '../../locale';
|
|
2
3
|
export interface EventQueryConfig extends ComponentConfig {
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
}
|
|
5
|
-
export type EventQueryLocalisedConfig =
|
|
6
|
-
label: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
6
|
+
export type EventQueryLocalisedConfig = Localised<EventQueryConfig>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { componentConfigSchema, componentReferenceSchema, componentStatusColorIdSchema, componentStatusConfigSchema } from './componentConfig.schema';
|
|
3
|
-
import { LocaleId } from '../locale';
|
|
3
|
+
import { LocaleId, Localised } from '../locale';
|
|
4
4
|
export { componentConfigSchema } from './componentConfig.schema';
|
|
5
5
|
export interface Component {
|
|
6
6
|
readonly config: ComponentConfig;
|
|
7
7
|
}
|
|
8
8
|
export type ComponentConfig = InferOutput<typeof componentConfigSchema>;
|
|
9
|
-
export type ComponentLocalisedConfig =
|
|
10
|
-
label: string;
|
|
11
|
-
description: string;
|
|
12
|
-
};
|
|
9
|
+
export type ComponentLocalisedConfig = Localised<ComponentConfig>;
|
|
13
10
|
export type ComponentReference = InferOutput<typeof componentReferenceSchema>;
|
|
14
11
|
export type ComponentStatus = InferOutput<typeof componentStatusConfigSchema>;
|
|
15
12
|
export type ComponentStatusColorId = InferOutput<typeof componentStatusColorIdSchema>;
|
|
@@ -4,6 +4,7 @@ import { ToolConfig } from '../tool';
|
|
|
4
4
|
import { ConnectionDescriptionConfig, ConnectionNodeConfig } from '../../connection';
|
|
5
5
|
import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
6
6
|
import { ContentAuditConfig, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
|
|
7
|
+
import { Localised } from '../../../locale';
|
|
7
8
|
import { EngineConnectorActionOptions, EngineUtilities } from '../../../engine';
|
|
8
9
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
9
10
|
export interface ConnectorInterface extends Component {
|
|
@@ -27,10 +28,7 @@ export interface ConnectorInterface extends Component {
|
|
|
27
28
|
}
|
|
28
29
|
export type ConnectorConstructor = new (engineUtilities: EngineUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
29
30
|
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
30
|
-
export type ConnectorLocalisedConfig =
|
|
31
|
-
label: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
31
|
+
export type ConnectorLocalisedConfig = Localised<ConnectorConfig>;
|
|
34
32
|
type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
|
|
35
33
|
type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> & {
|
|
36
34
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { contextConfigSchema } from './contextConfig.schema';
|
|
3
3
|
import { EngineContextActionOptions } from '../../../engine';
|
|
4
|
-
import {
|
|
4
|
+
import { Localised } from '../../../locale';
|
|
5
5
|
import { ModuleConfig } from '..';
|
|
6
6
|
import { Component, ComponentConfig, ComponentReference } from '../..';
|
|
7
7
|
export { contextConfigSchema } from './contextConfig.schema';
|
|
@@ -15,121 +15,13 @@ export interface ContextConfig1 extends ModuleConfig {
|
|
|
15
15
|
operations: ContextOperation[];
|
|
16
16
|
typeId: 'context';
|
|
17
17
|
}
|
|
18
|
-
export type ContextLocalisedConfig =
|
|
19
|
-
label: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
18
|
+
export type ContextLocalisedConfig = Localised<ContextConfig>;
|
|
22
19
|
export type ContextOperation = 'list';
|
|
23
20
|
export interface ContextModelGroupConfig extends ComponentConfig {
|
|
24
21
|
modelRefs: ComponentReference[];
|
|
25
22
|
order: number;
|
|
26
23
|
}
|
|
27
|
-
export type ContextModelGroupLocalisedConfig =
|
|
28
|
-
label: string;
|
|
29
|
-
description: string;
|
|
30
|
-
};
|
|
31
|
-
export interface ContextModelConfig extends ComponentConfig {
|
|
32
|
-
diagramURL?: string;
|
|
33
|
-
dimension: ContextModelDimensionGroupConfig[];
|
|
34
|
-
entities: ContextModelEntityGroupConfig[];
|
|
35
|
-
secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
|
|
36
|
-
}
|
|
37
|
-
export type ContextModelLocalisedConfig = Omit<ContextModelConfig, 'label' | 'description'> & {
|
|
38
|
-
label: string;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
export interface ContextModelDimensionGroupConfig {
|
|
42
|
-
id: string;
|
|
43
|
-
label: LocaleLabel;
|
|
44
|
-
description: LocaleLabel;
|
|
45
|
-
dimensionRefs: ComponentReference[];
|
|
46
|
-
}
|
|
47
|
-
export type ContextModelDimensionGroupLocalisedConfig = Omit<ContextModelDimensionGroupConfig, 'label' | 'description'> & {
|
|
48
|
-
label: string;
|
|
49
|
-
description: string;
|
|
50
|
-
};
|
|
51
|
-
export interface ContextModelDimensionConfig {
|
|
52
|
-
id: string;
|
|
53
|
-
label: LocaleLabel;
|
|
54
|
-
hierarchies: ContextModelDimensionHierarchyConfig[];
|
|
55
|
-
}
|
|
56
|
-
export type ContextModelDimensionLocalisedConfig = Omit<ContextModelDimensionConfig, 'label' | 'description'> & {
|
|
57
|
-
label: string;
|
|
58
|
-
description: string;
|
|
59
|
-
};
|
|
60
|
-
export interface ContextModelDimensionHierarchyConfig {
|
|
61
|
-
id: string;
|
|
62
|
-
label: LocaleLabel;
|
|
63
|
-
}
|
|
64
|
-
export type ContextModelDimensionHierarchyLocalisedConfig = Omit<ContextModelDimensionHierarchyConfig, 'label' | 'description'> & {
|
|
65
|
-
label: string;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
export interface ContextModelEntityGroupConfig {
|
|
69
|
-
id: string;
|
|
70
|
-
label: LocaleLabel;
|
|
71
|
-
description?: Record<string, unknown>;
|
|
72
|
-
entityRefs: ComponentReference[];
|
|
73
|
-
}
|
|
74
|
-
export type ContextModelEntityGroupLocalisedConfig = Omit<ContextModelEntityGroupConfig, 'label' | 'description'> & {
|
|
75
|
-
label: string;
|
|
76
|
-
description: string;
|
|
77
|
-
};
|
|
78
|
-
export interface ContextModelEntityConfig {
|
|
79
|
-
id: string;
|
|
80
|
-
label: LocaleLabel;
|
|
81
|
-
labelPlural: LocaleLabel;
|
|
82
|
-
dataItems: ContextModelEntityDataItemConfig[];
|
|
83
|
-
events: ContextModelEntityEventConfig[];
|
|
84
|
-
primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
|
|
85
|
-
}
|
|
86
|
-
export type ContextModelEntityLocalisedConfig = Omit<ContextModelEntityConfig, 'label' | 'description'> & {
|
|
87
|
-
label: string;
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
export interface ContextModelEntityDataItemConfig {
|
|
91
|
-
id: string;
|
|
92
|
-
label: LocaleLabel;
|
|
93
|
-
}
|
|
94
|
-
export type ContextModelEntityDataItemLocalisedConfig = Omit<ContextModelEntityDataItemConfig, 'label' | 'description'> & {
|
|
95
|
-
label: string;
|
|
96
|
-
description: string;
|
|
97
|
-
};
|
|
98
|
-
export interface ContextModelEntityEventConfig {
|
|
99
|
-
id: string;
|
|
100
|
-
labelAction: Record<string, string>;
|
|
101
|
-
labelState: Record<string, string>;
|
|
102
|
-
}
|
|
103
|
-
export type ContextModelEntityEventLocalisedConfig = Omit<ContextModelEntityEventConfig, 'label' | 'description'> & {
|
|
104
|
-
label: string;
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
export interface ContextModelEntityPrimaryMeasureConfig {
|
|
108
|
-
id: string;
|
|
109
|
-
label: LocaleLabel;
|
|
110
|
-
}
|
|
111
|
-
export type ContextModelEntityPrimaryMeasureLocalisedConfig = Omit<ContextModelEntityPrimaryMeasureConfig, 'label' | 'description'> & {
|
|
112
|
-
label: string;
|
|
113
|
-
description: string;
|
|
114
|
-
};
|
|
115
|
-
export interface ContextModelSecondaryMeasureGroupConfig {
|
|
116
|
-
id: string;
|
|
117
|
-
label: LocaleLabel;
|
|
118
|
-
description?: Record<string, unknown>;
|
|
119
|
-
secondaryMeasureRefs: ComponentReference[];
|
|
120
|
-
}
|
|
121
|
-
export type ContextModelSecondaryMeasureGroupLocalisedConfig = Omit<ContextModelSecondaryMeasureGroupConfig, 'label' | 'description'> & {
|
|
122
|
-
label: string;
|
|
123
|
-
description: string;
|
|
124
|
-
};
|
|
125
|
-
export interface ContextModelSecondaryMeasureConfig {
|
|
126
|
-
id: string;
|
|
127
|
-
label: LocaleLabel;
|
|
128
|
-
}
|
|
129
|
-
export type ContextModelSecondaryMeasureLocalisedConfig = Omit<ContextModelSecondaryMeasureConfig, 'label' | 'description'> & {
|
|
130
|
-
label: string;
|
|
131
|
-
description: string;
|
|
132
|
-
};
|
|
24
|
+
export type ContextModelGroupLocalisedConfig = Localised<ContextModelGroupConfig>;
|
|
133
25
|
export interface ListContextOptions extends EngineContextActionOptions {
|
|
134
26
|
placeholder: unknown;
|
|
135
27
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LocaleLabel, Localised } from '../../../../../locale';
|
|
2
|
+
export interface ContextModelDimensionConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
label: LocaleLabel;
|
|
5
|
+
hierarchies: ContextModelDimensionHierarchyConfig[];
|
|
6
|
+
}
|
|
7
|
+
export type ContextModelDimensionLocalisedConfig = Localised<ContextModelDimensionConfig>;
|
|
8
|
+
export interface ContextModelDimensionHierarchyConfig {
|
|
9
|
+
id: string;
|
|
10
|
+
label: LocaleLabel;
|
|
11
|
+
}
|
|
12
|
+
export type ContextModelDimensionHierarchyLocalisedConfig = Localised<ContextModelDimensionHierarchyConfig>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Localised } from '../../../../../../locale';
|
|
2
|
+
export interface ContextModelEntityEventConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
labelAction: Record<string, string>;
|
|
5
|
+
labelState: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export type ContextModelEntityEventLocalisedConfig = Localised<ContextModelEntityEventConfig>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContextModelEntityDataItemConfig } from './dataItem';
|
|
2
|
+
import { ContextModelEntityEventConfig } from './event';
|
|
3
|
+
import { ContextModelEntityPrimaryMeasureConfig } from './primaryMeasure';
|
|
4
|
+
import { LocaleLabel, Localised } from '../../../../../locale';
|
|
5
|
+
export interface ContextModelEntityConfig {
|
|
6
|
+
id: string;
|
|
7
|
+
label: LocaleLabel;
|
|
8
|
+
labelPlural: LocaleLabel;
|
|
9
|
+
dataItems: ContextModelEntityDataItemConfig[];
|
|
10
|
+
events: ContextModelEntityEventConfig[];
|
|
11
|
+
primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
|
|
12
|
+
}
|
|
13
|
+
export type ContextModelEntityLocalisedConfig = Localised<ContextModelEntityConfig>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LocaleLabel, Localised } from '../../../../../../locale';
|
|
2
|
+
export interface ContextModelEntityPrimaryMeasureConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
label: LocaleLabel;
|
|
5
|
+
}
|
|
6
|
+
export type ContextModelEntityPrimaryMeasureLocalisedConfig = Localised<ContextModelEntityPrimaryMeasureConfig>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentConfig, ComponentReference } from '../../..';
|
|
2
|
+
import { LocaleLabel, Localised } from '../../../../locale';
|
|
3
|
+
export interface ContextModelConfig extends ComponentConfig {
|
|
4
|
+
diagramURL?: string;
|
|
5
|
+
dimensions: ContextModelDimensionGroupConfig[];
|
|
6
|
+
entities: ContextModelEntityGroupConfig[];
|
|
7
|
+
secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
|
|
8
|
+
}
|
|
9
|
+
export type ContextModelLocalisedConfig = Localised<ContextModelConfig>;
|
|
10
|
+
export interface ContextModelDimensionGroupConfig {
|
|
11
|
+
id: string;
|
|
12
|
+
label: LocaleLabel;
|
|
13
|
+
description: LocaleLabel;
|
|
14
|
+
dimensionRefs: ComponentReference[];
|
|
15
|
+
}
|
|
16
|
+
export type ContextModelDimensionGroupLocalisedConfig = Localised<ContextModelDimensionGroupConfig>;
|
|
17
|
+
export interface ContextModelEntityGroupConfig {
|
|
18
|
+
id: string;
|
|
19
|
+
label: LocaleLabel;
|
|
20
|
+
description?: Record<string, unknown>;
|
|
21
|
+
entityRefs: ComponentReference[];
|
|
22
|
+
}
|
|
23
|
+
export type ContextModelEntityGroupLocalisedConfig = Localised<ContextModelEntityGroupConfig>;
|
|
24
|
+
export interface ContextModelSecondaryMeasureGroupConfig {
|
|
25
|
+
id: string;
|
|
26
|
+
label: LocaleLabel;
|
|
27
|
+
description?: Record<string, unknown>;
|
|
28
|
+
secondaryMeasureRefs: ComponentReference[];
|
|
29
|
+
}
|
|
30
|
+
export type ContextModelSecondaryMeasureGroupLocalisedConfig = Localised<ContextModelSecondaryMeasureGroupConfig>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ModuleConfig } from '..';
|
|
2
2
|
import { Component, ComponentReference } from '../..';
|
|
3
|
+
import { Localised } from '../../../locale';
|
|
3
4
|
export { presenterConfigSchema } from './presenterConfig.schema';
|
|
4
5
|
export interface PresenterInterface extends Component {
|
|
5
6
|
readonly config: PresenterConfig;
|
|
@@ -12,8 +13,5 @@ export interface PresenterConfig extends ModuleConfig {
|
|
|
12
13
|
operations: PresenterOperation[];
|
|
13
14
|
typeId: 'presenter';
|
|
14
15
|
}
|
|
15
|
-
export type PresenterLocalisedConfig =
|
|
16
|
-
label: string;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
16
|
+
export type PresenterLocalisedConfig = Localised<PresenterConfig>;
|
|
19
17
|
export type PresenterOperation = 'list' | 'render' | 'setColorMode';
|
|
@@ -2,6 +2,10 @@ export type FlagId = 'es' | 'gb';
|
|
|
2
2
|
export type LocaleId = 'en' | 'es';
|
|
3
3
|
export type LocaleLabel = Partial<Record<LocaleId, string>>;
|
|
4
4
|
export type LocaleLabelMap = ReadonlyMap<string, string>;
|
|
5
|
+
export type Localised<T> = Omit<T, 'label' | 'description'> & {
|
|
6
|
+
label: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
5
9
|
export declare const DEFAULT_LOCALE_ID: LocaleId;
|
|
6
10
|
export declare const SUPPORTED_LANGUAGES: {
|
|
7
11
|
id: LocaleId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.631",
|
|
4
4
|
"description": "Common constants, types and utilities used across all DPUse projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -49,6 +49,34 @@
|
|
|
49
49
|
"import": "./dist/dpuse-shared-componentModuleContext.es.js",
|
|
50
50
|
"types": "./dist/types/src/component/module/context/index.d.ts"
|
|
51
51
|
},
|
|
52
|
+
"./component/module/context/model": {
|
|
53
|
+
"import": "./dist/dpuse-shared-componentModuleContextModel.es.js",
|
|
54
|
+
"types": "./dist/types/src/component/module/context/model/index.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"./component/module/context/model/dimension": {
|
|
57
|
+
"import": "./dist/dpuse-shared-componentModuleContextModelDimension.es.js",
|
|
58
|
+
"types": "./dist/types/src/component/module/context/model/dimension/index.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./component/module/context/model/entity": {
|
|
61
|
+
"import": "./dist/dpuse-shared-componentModuleContextModelEntity.es.js",
|
|
62
|
+
"types": "./dist/types/src/component/module/context/model/entity/index.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./component/module/context/model/entity/dataItem": {
|
|
65
|
+
"import": "./dist/dpuse-shared-componentModuleContextModelEntityDataItem.es.js",
|
|
66
|
+
"types": "./dist/types/src/component/module/context/model/entity/dataItem/index.d.ts"
|
|
67
|
+
},
|
|
68
|
+
"./component/module/context/model/entity/event": {
|
|
69
|
+
"import": "./dist/dpuse-shared-componentModuleContextModelEntityEvent.es.js",
|
|
70
|
+
"types": "./dist/types/src/component/module/context/model/entity/event/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./component/module/context/model/entity/primaryMeasure": {
|
|
73
|
+
"import": "./dist/dpuse-shared-componentModuleContextModelEntityPrimaryMeasure.es.js",
|
|
74
|
+
"types": "./dist/types/src/component/module/context/model/entity/primaryMeasure/index.d.ts"
|
|
75
|
+
},
|
|
76
|
+
"./component/module/context/model/secondaryMeasure": {
|
|
77
|
+
"import": "./dist/dpuse-shared-componentModuleContextModelSecondaryMeasure.es.js",
|
|
78
|
+
"types": "./dist/types/src/component/module/context/model/secondaryMeasure/index.d.ts"
|
|
79
|
+
},
|
|
52
80
|
"./component/module/presenter": {
|
|
53
81
|
"import": "./dist/dpuse-shared-componentModulePresenter.es.js",
|
|
54
82
|
"types": "./dist/types/src/component/module/presenter/index.d.ts"
|
|
@@ -88,38 +116,38 @@
|
|
|
88
116
|
],
|
|
89
117
|
"prettier": "@dpuse/dpuse-development/prettierrc",
|
|
90
118
|
"devDependencies": {
|
|
91
|
-
"@dpuse/dpuse-development": "^0.3.
|
|
92
|
-
"@dpuse/eslint-config-dpuse": "^1.0.
|
|
93
|
-
"@types/node": "^25.
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
95
|
-
"@typescript-eslint/parser": "^8.
|
|
119
|
+
"@dpuse/dpuse-development": "^0.3.491",
|
|
120
|
+
"@dpuse/eslint-config-dpuse": "^1.0.55",
|
|
121
|
+
"@types/node": "^25.6.0",
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
123
|
+
"@typescript-eslint/parser": "^8.58.2",
|
|
96
124
|
"eslint": "^9.39.4",
|
|
97
125
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
98
126
|
"eslint-plugin-import": "^2.32.0",
|
|
99
127
|
"eslint-plugin-security": "^4.0.0",
|
|
100
|
-
"eslint-plugin-sonarjs": "^4.0.
|
|
128
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
101
129
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
102
|
-
"file-type": "^
|
|
130
|
+
"file-type": "^22.0.1",
|
|
103
131
|
"jiti": "^2.6.1",
|
|
104
132
|
"license-downloader": "^1.3.3",
|
|
105
133
|
"license-report": "^6.8.2",
|
|
106
|
-
"license-report-check": "^0.
|
|
107
|
-
"license-report-recursive": "^6.8.
|
|
134
|
+
"license-report-check": "^1.0.0",
|
|
135
|
+
"license-report-recursive": "^6.8.4",
|
|
108
136
|
"md-to-pdf": "^5.2.5",
|
|
109
|
-
"npm-check-updates": "^
|
|
137
|
+
"npm-check-updates": "^21.0.2",
|
|
110
138
|
"owasp-dependency-check": "^1.0.1",
|
|
111
|
-
"prettier": "^3.8.
|
|
139
|
+
"prettier": "^3.8.3",
|
|
112
140
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
113
141
|
"sonda": "^0.11.1",
|
|
114
|
-
"type-fest": "^5.
|
|
115
|
-
"typedoc": "^0.28.
|
|
142
|
+
"type-fest": "^5.6.0",
|
|
143
|
+
"typedoc": "^0.28.19",
|
|
116
144
|
"typedoc-github-theme": "^0.4.0",
|
|
117
145
|
"typedoc-material-theme": "^1.4.1",
|
|
118
146
|
"typescript": "^5.9.3",
|
|
119
147
|
"valibot": "^1.3.1",
|
|
120
|
-
"vite": "^8.0.
|
|
148
|
+
"vite": "^8.0.9",
|
|
121
149
|
"vite-plugin-dts": "^4.5.4",
|
|
122
|
-
"vitest": "^4.1.
|
|
150
|
+
"vitest": "^4.1.4"
|
|
123
151
|
},
|
|
124
152
|
"scripts": {
|
|
125
153
|
"audit": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
|