@datapos/datapos-shared 0.3.455 → 0.3.457
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 +1 -1
- package/dist/datapos-shared-connector.es.js +2 -2
- package/dist/datapos-shared.es.js +16 -30
- 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 +3 -3
- package/dist/types/src/component/dataView/index.d.ts +13 -16
- package/dist/types/src/index.d.ts +0 -3
- package/package.json +1 -1
|
@@ -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
1
|
import { D as a } from "./locale-DTTQsZic.js";
|
|
2
|
-
import { c as s } from "./componentConfig.schema-
|
|
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
1
|
import { D as s } from "./locale-DTTQsZic.js";
|
|
2
|
-
import { l as n, o as i,
|
|
3
|
-
import { m as h } from "./moduleConfig.schema-
|
|
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,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,7 +2,7 @@ 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
7
|
import { DataViewPreviewConfig, RecordValueDelimiterId } from '../dataView';
|
|
8
8
|
/**
|
|
@@ -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.
|
|
@@ -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,6 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
2
|
import { Component, ComponentConfig } from '..';
|
|
3
|
-
import { ConnectionColumnConfig, ConnectionNodeConfig
|
|
3
|
+
import { ConnectionColumnConfig, ConnectionNodeConfig } from '../connector/connection';
|
|
4
4
|
/**
|
|
5
5
|
* Data view interface.
|
|
6
6
|
*/
|
|
@@ -67,10 +67,6 @@ type RecordValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' |
|
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
69
|
declare const ORDERED_VALUE_DELIMITER_IDS: RecordValueDelimiterId[];
|
|
70
|
-
/**
|
|
71
|
-
* Parsed value.
|
|
72
|
-
*/
|
|
73
|
-
type ParsedValue = bigint | boolean | number | string | null;
|
|
74
70
|
/**
|
|
75
71
|
* Parse result.
|
|
76
72
|
*/
|
|
@@ -78,16 +74,17 @@ interface ParseResult {
|
|
|
78
74
|
isValid: boolean;
|
|
79
75
|
originalValue: string | null | undefined;
|
|
80
76
|
parsedValue: ParsedValue;
|
|
81
|
-
|
|
77
|
+
valueDataTypeId: ValueDataTypeId;
|
|
82
78
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
type
|
|
87
|
-
type
|
|
79
|
+
/**
|
|
80
|
+
* Parsed value.
|
|
81
|
+
*/
|
|
82
|
+
type ParsedValue = bigint | boolean | number | string | null;
|
|
83
|
+
type ValueDataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
|
|
84
|
+
type ValueNumericSignId = 'negative' | 'zero' | 'positive' | 'unknown';
|
|
85
|
+
type ValueNumericTypeId = 'bigint' | 'integer' | 'decimal' | 'unknown';
|
|
86
|
+
type ValueNumericUnitsId = 'currency' | 'percentage' | 'plain' | 'unknown';
|
|
87
|
+
type ValueStringTypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain' | 'unknown';
|
|
88
|
+
type ValueTemporalTypeId = 'date' | 'dateTime' | 'time' | 'unknown';
|
|
88
89
|
export { ORDERED_VALUE_DELIMITER_IDS };
|
|
89
|
-
export type {
|
|
90
|
-
export type { DataViewContentAuditConfig, DataViewPreviewConfig };
|
|
91
|
-
export type { ParseResult };
|
|
92
|
-
export type { ObjectDataFormatId, ObjectRecordDelimiterId, RecordValueDelimiterId };
|
|
93
|
-
export type { ValueDataTypeId, ValueNumericTypeId, ValueNumericUnitsId, ValueStringTypeId, ValueTemporalTypeId };
|
|
90
|
+
export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, ObjectDataFormatId, ObjectRecordDelimiterId, ParseResult, RecordValueDelimiterId, ValueDataTypeId, ValueNumericSignId, ValueNumericTypeId, ValueNumericUnitsId, ValueStringTypeId, ValueTemporalTypeId };
|
|
@@ -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 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.457",
|
|
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>",
|