@datapos/datapos-shared 0.3.454 → 0.3.456
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/{componentConfig.schema-DInGC5Y6.js → componentConfig.schema-C0C6ceb5.js} +6 -6
- package/dist/datapos-shared-component.es.js +2 -2
- package/dist/datapos-shared-connector.es.js +3 -3
- package/dist/datapos-shared-dataview.es.js +4 -4
- package/dist/datapos-shared.es.js +16 -30
- package/dist/locale-DTTQsZic.js +5 -0
- package/dist/{moduleConfig.schema-BJfbCrO6.js → moduleConfig.schema-DNq1iU4S.js} +1 -1
- package/dist/types/src/component/connector/connection.d.ts +29 -16
- package/dist/types/src/component/connector/index.d.ts +6 -6
- package/dist/types/src/component/dataView/index.d.ts +45 -28
- package/dist/types/src/engine/index.d.ts +11 -11
- package/dist/types/src/index.d.ts +0 -3
- package/dist/types/src/locale.d.ts +20 -6
- package/package.json +1 -1
- package/dist/locale-DR89RW6v.js +0 -4
|
@@ -449,13 +449,13 @@ export {
|
|
|
449
449
|
q as b,
|
|
450
450
|
z as c,
|
|
451
451
|
j as d,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
452
|
+
B as e,
|
|
453
|
+
v as f,
|
|
454
|
+
b as g,
|
|
455
|
+
T as h,
|
|
456
|
+
F as i,
|
|
457
457
|
E as l,
|
|
458
|
-
|
|
458
|
+
m as n,
|
|
459
459
|
d as o,
|
|
460
460
|
g as p,
|
|
461
461
|
K as r,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as a } from "./locale-
|
|
2
|
-
import { c as s } from "./componentConfig.schema-
|
|
1
|
+
import { D as a } from "./locale-DTTQsZic.js";
|
|
2
|
+
import { c as s } from "./componentConfig.schema-C0C6ceb5.js";
|
|
3
3
|
const n = [
|
|
4
4
|
{ id: "alpha", color: "red", labels: { "en-gb": "alpha" } },
|
|
5
5
|
{ id: "beta", color: "amber", labels: { "en-gb": "beta" } },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as s } from "./locale-
|
|
2
|
-
import { l as n, o as i,
|
|
3
|
-
import { m as h } from "./moduleConfig.schema-
|
|
1
|
+
import { D as s } from "./locale-DTTQsZic.js";
|
|
2
|
+
import { l as n, o as i, f as a, b as d, r as b, d as p, s as e, g as o, n as l, h as C, i as g, p as u } from "./componentConfig.schema-C0C6ceb5.js";
|
|
3
|
+
import { m as h } from "./moduleConfig.schema-DNq1iU4S.js";
|
|
4
4
|
const S = n(["apiKey", "disabled", "oAuth2", "none"]), f = i({
|
|
5
5
|
authMethodId: S,
|
|
6
6
|
activeConnectionCount: o(l()),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
e({ "en-gb": "
|
|
1
|
+
import { c as e } from "./locale-DTTQsZic.js";
|
|
2
|
+
e({ "en-gb": "Data Positioning Events" }), e({ "en-gb": "Delimited Text" }), e({ "en-gb": "JSON" }), e({ "en-gb": "SPSS" }), e({ "en-gb": "XLSX" }), e({ "en-gb": "XML" });
|
|
3
3
|
e({ "en-gb": "Newline" }), e({ "en-gb": "Carriage Return" }), e({ "en-gb": "Carriage Return/Newline" });
|
|
4
4
|
e({ "en-gb": "Colon" }), e({ "en-gb": "Comma" }), e({ "en-gb": "Exclamation Mark" }), e({ "en-gb": "Record Separator" }), e({ "en-gb": "Semicolon" }), e({ "en-gb": "Space" }), e({ "en-gb": "Tab" }), e({ "en-gb": "Underscore" }), e({ "en-gb": "Unit Separator" }), e({ "en-gb": "Vertical Bar" });
|
|
5
|
-
const
|
|
5
|
+
const a = [",", ";", " ", "|", " ", ":", "_", "!", "0x1F", "0x1E"];
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as ORDERED_VALUE_DELIMITER_IDS
|
|
8
8
|
};
|
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
import { m as
|
|
3
|
-
const
|
|
4
|
-
...
|
|
1
|
+
import { l as n, o, b as e, d as t, n as a, a as c, e as r } from "./componentConfig.schema-C0C6ceb5.js";
|
|
2
|
+
import { m as s } from "./moduleConfig.schema-DNq1iU4S.js";
|
|
3
|
+
const i = n(["list"]), p = o({
|
|
4
|
+
...c,
|
|
5
5
|
typeId: t("contextModelGroup"),
|
|
6
|
-
modelRefs: e(
|
|
7
|
-
order:
|
|
8
|
-
}),
|
|
9
|
-
...
|
|
6
|
+
modelRefs: e(r),
|
|
7
|
+
order: a()
|
|
8
|
+
}), f = o({
|
|
9
|
+
...s,
|
|
10
10
|
typeId: t("context"),
|
|
11
|
-
models: e(
|
|
12
|
-
operations: e(
|
|
13
|
-
}),
|
|
14
|
-
...
|
|
11
|
+
models: e(p),
|
|
12
|
+
operations: e(i)
|
|
13
|
+
}), m = n(["list", "render", "setColorMode"]), C = o({
|
|
14
|
+
...s,
|
|
15
15
|
typeId: t("presenter"),
|
|
16
|
-
presentations: e(
|
|
17
|
-
operations: e(
|
|
16
|
+
presentations: e(r),
|
|
17
|
+
operations: e(m)
|
|
18
18
|
});
|
|
19
|
-
function S() {
|
|
20
|
-
return { render: g };
|
|
21
|
-
}
|
|
22
|
-
function g(r, o, i) {
|
|
23
|
-
i.textContent = "Cytoscape.js diagram goes here...";
|
|
24
|
-
}
|
|
25
|
-
function b() {
|
|
26
|
-
return { render: u };
|
|
27
|
-
}
|
|
28
|
-
function u(r, o) {
|
|
29
|
-
console.log(1111, r), console.log(2222, o), console.log(3333, o.childNodes), console.log(4444, o.children);
|
|
30
|
-
}
|
|
31
19
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
S as useCytoscapeJS,
|
|
35
|
-
b as useDataTable
|
|
20
|
+
f as contextConfigSchema,
|
|
21
|
+
C as presenterConfigSchema
|
|
36
22
|
};
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ComponentConfig } from '..';
|
|
2
2
|
import { ConnectorConfig } from '.';
|
|
3
|
-
|
|
3
|
+
import { ValueDataTypeId } from '../dataView';
|
|
4
|
+
/**
|
|
5
|
+
* Connection configuration.
|
|
6
|
+
*/
|
|
4
7
|
interface ConnectionConfig extends ComponentConfig {
|
|
5
8
|
authorisation: Record<string, ConnectionAuthorisationConfig>;
|
|
6
9
|
connectorConfig: ConnectorConfig;
|
|
7
10
|
lastVerifiedAt: number;
|
|
8
|
-
notation
|
|
11
|
+
notation: string | undefined;
|
|
9
12
|
}
|
|
10
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Connection authorisation configuration.
|
|
15
|
+
*/
|
|
11
16
|
interface ConnectionAuthorisationConfig {
|
|
12
17
|
accessToken: string;
|
|
13
18
|
accountId: string;
|
|
@@ -18,7 +23,9 @@ interface ConnectionAuthorisationConfig {
|
|
|
18
23
|
tokenType: string;
|
|
19
24
|
uid: string;
|
|
20
25
|
}
|
|
21
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Connection node configuration.
|
|
28
|
+
*/
|
|
22
29
|
interface ConnectionNodeConfig {
|
|
23
30
|
childCount?: number;
|
|
24
31
|
columnsConfigs?: ConnectionColumnConfig[];
|
|
@@ -35,15 +42,27 @@ interface ConnectionNodeConfig {
|
|
|
35
42
|
size?: number;
|
|
36
43
|
typeId: ConnectionNodeTypeId;
|
|
37
44
|
}
|
|
45
|
+
interface DPAFileSystemFileHandle {
|
|
46
|
+
readonly kind: 'file';
|
|
47
|
+
getFile(): Promise<File>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Connection node type identifier.
|
|
51
|
+
*/
|
|
38
52
|
type ConnectionNodeTypeId = 'folder' | 'object';
|
|
39
|
-
/**
|
|
40
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Connection description configuration.
|
|
55
|
+
*/
|
|
56
|
+
interface ConnectionDescriptionConfig {
|
|
41
57
|
objects: {
|
|
42
58
|
id: string;
|
|
43
59
|
label: Record<string, string>;
|
|
44
60
|
columns: ConnectionColumnConfig[];
|
|
45
61
|
}[];
|
|
46
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Connection column configuration.
|
|
65
|
+
*/
|
|
47
66
|
interface ConnectionColumnConfig {
|
|
48
67
|
invalidValueCount?: number;
|
|
49
68
|
invalidValues?: string[];
|
|
@@ -58,17 +77,11 @@ interface ConnectionColumnConfig {
|
|
|
58
77
|
minSize?: number;
|
|
59
78
|
minValue?: string;
|
|
60
79
|
patterns?: Record<string, string>;
|
|
61
|
-
storageTypeId?:
|
|
62
|
-
|
|
80
|
+
storageTypeId?: StorageDataTypeId;
|
|
81
|
+
valueDataTypeId?: ValueDataTypeId;
|
|
63
82
|
validValueCount?: number;
|
|
64
83
|
validValues?: Record<string, string>;
|
|
65
84
|
voidValueCount?: number;
|
|
66
85
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
getFile(): Promise<File>;
|
|
70
|
-
}
|
|
71
|
-
type StorageTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
|
|
72
|
-
type UsageTypeId = 'boolean' | 'decimalNumber' | 'moment' | 'momentDate' | 'momentTime' | 'string' | 'unknown' | 'wholeNumber';
|
|
73
|
-
/** Exports. */
|
|
74
|
-
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionDescription, ConnectionNodeConfig, UsageTypeId };
|
|
86
|
+
type StorageDataTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
|
|
87
|
+
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionDescriptionConfig, ConnectionNodeConfig };
|
|
@@ -2,9 +2,9 @@ import { InferOutput } from 'valibot';
|
|
|
2
2
|
import { Component } from '..';
|
|
3
3
|
import { EngineUtilities } from '../../engine';
|
|
4
4
|
import { ToolConfig } from '../tool';
|
|
5
|
-
import {
|
|
5
|
+
import { ConnectionDescriptionConfig, ConnectionNodeConfig } from './connection';
|
|
6
6
|
import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
7
|
-
import { DataViewPreviewConfig,
|
|
7
|
+
import { DataViewPreviewConfig, RecordValueDelimiterId } from '../dataView';
|
|
8
8
|
/**
|
|
9
9
|
* Connector interface and constructor.
|
|
10
10
|
*/
|
|
@@ -109,7 +109,7 @@ interface CreateObjectOptions extends ConnectorOperationOptions {
|
|
|
109
109
|
*/
|
|
110
110
|
type DescribeConnectionOptions = ConnectorOperationOptions;
|
|
111
111
|
interface DescribeConnectionResult {
|
|
112
|
-
|
|
112
|
+
descriptionConfig: ConnectionDescriptionConfig;
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Drop object options.
|
|
@@ -178,7 +178,7 @@ interface RetrieveChunksOptions extends ConnectorOperationOptions {
|
|
|
178
178
|
chunkSize?: number;
|
|
179
179
|
encodingId: string;
|
|
180
180
|
path: string;
|
|
181
|
-
valueDelimiterId:
|
|
181
|
+
valueDelimiterId: RecordValueDelimiterId;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* Retrieve records options and summary.
|
|
@@ -187,7 +187,7 @@ interface RetrieveRecordsOptions extends ConnectorOperationOptions {
|
|
|
187
187
|
chunkSize?: number;
|
|
188
188
|
encodingId: string;
|
|
189
189
|
path: string;
|
|
190
|
-
valueDelimiterId:
|
|
190
|
+
valueDelimiterId: RecordValueDelimiterId;
|
|
191
191
|
}
|
|
192
192
|
interface RetrieveRecordsSummary {
|
|
193
193
|
/**
|
|
@@ -236,5 +236,5 @@ type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> &
|
|
|
236
236
|
declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../locale').LocaleCode) => ConnectorCategoryLocalisedConfig;
|
|
237
237
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
238
238
|
export { constructConnectorCategoryConfig };
|
|
239
|
-
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig
|
|
239
|
+
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './connection';
|
|
240
240
|
export type { ConnectorConfig, ConnectorConstructor, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorOperationOptions, ConnectorUsageId, CreateObjectOptions, DropObjectOptions, FindObjectFolderPathOptions, GetReadableStreamOptions, GetRecordResult, GetRecordOptions, ListNodesResult, ListNodesOptions, PreviewObjectOptions, RemoveRecordsOptions, RetrieveChunksOptions, RetrieveRecordsOptions, RetrieveRecordsSummary, UpsertRecordsOptions };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
|
-
import { ComponentConfig } from '..';
|
|
3
|
-
import { ConnectionColumnConfig, ConnectionNodeConfig
|
|
2
|
+
import { Component, ComponentConfig } from '..';
|
|
3
|
+
import { ConnectionColumnConfig, ConnectionNodeConfig } from '../connector/connection';
|
|
4
|
+
/**
|
|
5
|
+
* Data view interface.
|
|
6
|
+
*/
|
|
7
|
+
type DataViewInterface = Component;
|
|
4
8
|
/**
|
|
5
9
|
* Data view configuration.
|
|
6
10
|
*/
|
|
@@ -12,36 +16,43 @@ interface DataViewConfig extends ComponentConfig {
|
|
|
12
16
|
relationshipsAuditConfig?: DataViewRelationshipsAuditConfig;
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
|
-
* Data view
|
|
19
|
+
* Data view localised configuration.
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
emptyLineCount: number;
|
|
22
|
-
invalidFieldLengthCount: number;
|
|
23
|
-
duration: number;
|
|
24
|
-
lineCount: number;
|
|
25
|
-
recordCount: number;
|
|
26
|
-
}
|
|
21
|
+
type DataViewLocalisedConfig = Omit<DataViewConfig, 'label' | 'description'> & {
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
27
25
|
/**
|
|
28
26
|
* Data view preview configuration.
|
|
29
27
|
*/
|
|
30
28
|
interface DataViewPreviewConfig {
|
|
31
29
|
asAt: number;
|
|
32
30
|
columnConfigs: ConnectionColumnConfig[];
|
|
33
|
-
dataFormatId:
|
|
31
|
+
dataFormatId: ObjectDataFormatId | undefined;
|
|
34
32
|
duration: number;
|
|
35
33
|
encodingConfidenceLevel: number | undefined;
|
|
36
34
|
encodingId: string | undefined;
|
|
37
35
|
errorMessage?: string;
|
|
38
36
|
fileType: FileTypeResult | undefined;
|
|
39
37
|
hasHeaders: boolean | undefined;
|
|
40
|
-
recordDelimiterId?:
|
|
38
|
+
recordDelimiterId?: ObjectRecordDelimiterId;
|
|
41
39
|
records: ParseResult[][];
|
|
42
40
|
size: number;
|
|
43
41
|
text: string;
|
|
44
|
-
valueDelimiterId?:
|
|
42
|
+
valueDelimiterId?: RecordValueDelimiterId;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Data view content audit configuration.
|
|
46
|
+
*/
|
|
47
|
+
interface DataViewContentAuditConfig {
|
|
48
|
+
asAt: number;
|
|
49
|
+
columns: ConnectionColumnConfig[];
|
|
50
|
+
commentLineCount: number;
|
|
51
|
+
emptyLineCount: number;
|
|
52
|
+
invalidFieldLengthCount: number;
|
|
53
|
+
duration: number;
|
|
54
|
+
lineCount: number;
|
|
55
|
+
recordCount: number;
|
|
45
56
|
}
|
|
46
57
|
/**
|
|
47
58
|
* Data view relationships audit configuration.
|
|
@@ -49,7 +60,13 @@ interface DataViewPreviewConfig {
|
|
|
49
60
|
interface DataViewRelationshipsAuditConfig {
|
|
50
61
|
placeholder?: string;
|
|
51
62
|
}
|
|
52
|
-
|
|
63
|
+
type ObjectDataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml';
|
|
64
|
+
type ObjectRecordDelimiterId = '\n' | '\r' | '\r\n';
|
|
65
|
+
type RecordValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
declare const ORDERED_VALUE_DELIMITER_IDS: RecordValueDelimiterId[];
|
|
53
70
|
/**
|
|
54
71
|
* Parsed value.
|
|
55
72
|
*/
|
|
@@ -61,16 +78,16 @@ interface ParseResult {
|
|
|
61
78
|
isValid: boolean;
|
|
62
79
|
originalValue: string | null | undefined;
|
|
63
80
|
parsedValue: ParsedValue;
|
|
64
|
-
|
|
81
|
+
valueDataTypeId: ValueDataTypeId;
|
|
65
82
|
}
|
|
66
|
-
type
|
|
67
|
-
type
|
|
68
|
-
type
|
|
69
|
-
type
|
|
70
|
-
type
|
|
71
|
-
type NumericUnitsId = 'currency' | 'percentage' | 'plain';
|
|
72
|
-
type StringTypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain';
|
|
73
|
-
type TemporalTypeId = 'date' | 'dateTime' | 'time';
|
|
83
|
+
type ValueDataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal';
|
|
84
|
+
type ValueNumericTypeId = 'bigint' | 'integer' | 'decimal';
|
|
85
|
+
type ValueNumericUnitsId = 'currency' | 'percentage' | 'plain';
|
|
86
|
+
type ValueStringTypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain';
|
|
87
|
+
type ValueTemporalTypeId = 'date' | 'dateTime' | 'time';
|
|
74
88
|
export { ORDERED_VALUE_DELIMITER_IDS };
|
|
75
|
-
export type {
|
|
76
|
-
export type {
|
|
89
|
+
export type { DataViewInterface, DataViewConfig, DataViewLocalisedConfig };
|
|
90
|
+
export type { DataViewContentAuditConfig, DataViewPreviewConfig };
|
|
91
|
+
export type { ParseResult };
|
|
92
|
+
export type { ObjectDataFormatId, ObjectRecordDelimiterId, RecordValueDelimiterId };
|
|
93
|
+
export type { ValueDataTypeId, ValueNumericTypeId, ValueNumericUnitsId, ValueStringTypeId, ValueTemporalTypeId };
|
|
@@ -4,7 +4,7 @@ import { ModuleConfig } from '../component/module';
|
|
|
4
4
|
import { ToolConfig } from '../component/tool';
|
|
5
5
|
import { ConnectionColumnConfig, ConnectorOperationOptions } from '../component/connector';
|
|
6
6
|
import { ContextConfig, ContextOperationOptions } from '../component/context';
|
|
7
|
-
import { DataViewContentAuditConfig, ParseResult,
|
|
7
|
+
import { DataViewContentAuditConfig, ParseResult, RecordValueDelimiterId } from '../component/dataView';
|
|
8
8
|
/**
|
|
9
9
|
* Engine runtime interface.
|
|
10
10
|
*/
|
|
@@ -26,15 +26,6 @@ interface EngineWorkerInitialiseOptions {
|
|
|
26
26
|
connectorStorageURLPrefix: string;
|
|
27
27
|
toolConfigs: ToolConfig[];
|
|
28
28
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Engine shared.
|
|
31
|
-
*/
|
|
32
|
-
interface EngineUtilities {
|
|
33
|
-
parseRecord: (columnConfigs: ConnectionColumnConfig[], record: {
|
|
34
|
-
value: string | null | undefined;
|
|
35
|
-
isQuoted: boolean;
|
|
36
|
-
}[], isPreview: boolean) => ParseResult[];
|
|
37
|
-
}
|
|
38
29
|
/**
|
|
39
30
|
* Engine configuration.
|
|
40
31
|
*/
|
|
@@ -48,6 +39,15 @@ interface EngineCallbackData {
|
|
|
48
39
|
typeId: string;
|
|
49
40
|
properties: Record<string, unknown>;
|
|
50
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Engine utilities.
|
|
44
|
+
*/
|
|
45
|
+
interface EngineUtilities {
|
|
46
|
+
parseRecord: (columnConfigs: ConnectionColumnConfig[], record: {
|
|
47
|
+
value: string | null | undefined;
|
|
48
|
+
isQuoted: boolean;
|
|
49
|
+
}[], isPreview: boolean) => ParseResult[];
|
|
50
|
+
}
|
|
51
51
|
/**
|
|
52
52
|
* Audit object content options and result.
|
|
53
53
|
*/
|
|
@@ -55,7 +55,7 @@ interface AuditObjectContentOptions extends ConnectorOperationOptions {
|
|
|
55
55
|
chunkSize: number | undefined;
|
|
56
56
|
encodingId: string;
|
|
57
57
|
path: string;
|
|
58
|
-
valueDelimiterId:
|
|
58
|
+
valueDelimiterId: RecordValueDelimiterId;
|
|
59
59
|
}
|
|
60
60
|
interface AuditObjectContentResult {
|
|
61
61
|
contentAuditConfig: DataViewContentAuditConfig;
|
|
@@ -31,7 +31,4 @@ export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOpe
|
|
|
31
31
|
/** Interfaces/Types - Presenter presentation. */
|
|
32
32
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
33
33
|
export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
|
|
34
|
-
/** Composables */
|
|
35
|
-
export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
|
|
36
|
-
export { useDataTable } from './composables/useDataTable';
|
|
37
34
|
/** Utilities */
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Locale constants and type declarations.
|
|
3
3
|
*/
|
|
4
|
-
/** Constants */
|
|
5
4
|
declare const DEFAULT_LOCALE_CODE: LocaleCode;
|
|
6
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Locale codes.
|
|
7
|
+
*/
|
|
7
8
|
type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
8
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Localised string.
|
|
11
|
+
*/
|
|
9
12
|
type LocalisedString = Record<LocaleCode, string>;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
type LocaleLabelMap = ReadonlyMap<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
declare const createLabelMap: (labels: Record<string, string>) => LocaleLabelMap;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
declare const resolveLabel: (labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: "en-gb") => string | undefined;
|
|
25
|
+
export { createLabelMap, DEFAULT_LOCALE_CODE, resolveLabel };
|
|
26
|
+
export type { LocaleCode, LocaleLabelMap, LocalisedString };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.456",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
package/dist/locale-DR89RW6v.js
DELETED