@datapos/datapos-shared 0.3.230 → 0.3.232
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,35 +1,35 @@
|
|
|
1
1
|
const E = ["createObject", "dropObject", "removeRecords", "upsertRecords"], I = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
|
|
2
|
-
function
|
|
2
|
+
function C() {
|
|
3
3
|
function e(a, t, r) {
|
|
4
4
|
r.textContent = "Cytoscape.js diagram goes here...";
|
|
5
5
|
}
|
|
6
6
|
return { render: e };
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function x() {
|
|
9
9
|
function e(a, t, r) {
|
|
10
10
|
r.textContent = "values table goes here...";
|
|
11
11
|
}
|
|
12
12
|
return { render: e };
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
const S = 0, w = (e) => e, N = () => Date.now(), D = {
|
|
15
|
+
cartesianChart_areaLine: { categoryId: "cartesianChart", typeId: "areaLine", label: { "en-gb": "Area Line" } },
|
|
16
|
+
cartesianChart_areaSpline: { categoryId: "cartesianChart", typeId: "areaSpline", label: { "en-gb": "Area Spline" } },
|
|
17
|
+
cartesianChart_bar: { categoryId: "cartesianChart", typeId: "bar", label: { "en-gb": "Bar" } },
|
|
18
|
+
cartesianChart_column: { categoryId: "cartesianChart", typeId: "column", label: { "en-gb": "Column" } },
|
|
19
|
+
cartesianChart_line: { categoryId: "cartesianChart", typeId: "line", label: { "en-gb": "Line" } },
|
|
20
|
+
cartesianChart_pyramid: { categoryId: "cartesianChart", typeId: "pyramid", label: { "en-gb": "Pyramid" } },
|
|
21
|
+
cartesianChart_spline: { categoryId: "cartesianChart", typeId: "spline", label: { "en-gb": "Spline" } },
|
|
22
22
|
chordDiagram: { categoryId: "chordDiagram", label: { "en-gb": "Chord Diagram" } },
|
|
23
23
|
periodFlowBoundariesChart: { categoryId: "periodFlowBoundariesChart", label: { "en-gb": "Period Flow & Boundaries" } },
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
polarChart_areaLine: { categoryId: "polarChart", typeId: "areaLine", label: { "en-gb": "Radar (Area Line)" } },
|
|
25
|
+
polarChart_areaSpline: { categoryId: "polarChart", typeId: "areaSpline", label: { "en-gb": "Radar (Area Spline)" } },
|
|
26
|
+
polarChart_column: { categoryId: "polarChart", typeId: "column", label: { "en-gb": "Radar (Column)" } },
|
|
27
|
+
polarChart_line: { categoryId: "polarChart", typeId: "line", label: { "en-gb": "Radar (Line)" } },
|
|
28
|
+
polarChart_spline: { categoryId: "polarChart", typeId: "spline", label: { "en-gb": "Radar (Spline)" } },
|
|
29
|
+
rangeChart_areaLine: { categoryId: "rangeChart", typeId: "areaLine", label: { "en-gb": "Range (Area Line)" } },
|
|
30
|
+
rangeChart_areaSpline: { categoryId: "rangeChart", typeId: "areaSpline", label: { "en-gb": "Range (Area Spline)" } },
|
|
31
|
+
rangeChart_bar: { categoryId: "rangeChart", typeId: "bar", label: { "en-gb": "Range (Bar)" } },
|
|
32
|
+
rangeChart_column: { categoryId: "rangeChart", typeId: "column", label: { "en-gb": "Range (Column)" } },
|
|
33
33
|
sankeyDiagram: { categoryId: "sankeyDiagram", label: { "en-gb": "Sankey Diagram" } },
|
|
34
34
|
streamGraph: { categoryId: "streamGraph", label: { "en-gb": "Streamgraph" } },
|
|
35
35
|
valueTable: { categoryId: "valueTable", label: { "en-gb": "Values" } }
|
|
@@ -229,7 +229,7 @@ const m = "en-US", c = {}, k = (e) => {
|
|
|
229
229
|
for (const t of f)
|
|
230
230
|
a.push({ ...t, label: t.label[e] || t.label[l] || t.id });
|
|
231
231
|
return a;
|
|
232
|
-
},
|
|
232
|
+
}, h = [
|
|
233
233
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
234
234
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
235
235
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -243,10 +243,10 @@ const m = "en-US", c = {}, k = (e) => {
|
|
|
243
243
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
244
244
|
], X = (e = l) => {
|
|
245
245
|
const a = [];
|
|
246
|
-
for (const t of
|
|
246
|
+
for (const t of h)
|
|
247
247
|
a.push({ ...t, label: t.label[e] || t.label[l] || t.id });
|
|
248
248
|
return a;
|
|
249
|
-
},
|
|
249
|
+
}, y = [
|
|
250
250
|
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
251
251
|
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
252
252
|
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
@@ -257,7 +257,7 @@ const m = "en-US", c = {}, k = (e) => {
|
|
|
257
257
|
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
258
258
|
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
259
259
|
], z = (e, a = l) => {
|
|
260
|
-
const t =
|
|
260
|
+
const t = y.find((r) => r.id === e);
|
|
261
261
|
return t ? { ...t, label: t.label[a] || t.label[l] || e } : { id: e, color: "other", label: e };
|
|
262
262
|
}, l = "en-gb";
|
|
263
263
|
export {
|
|
@@ -266,7 +266,7 @@ export {
|
|
|
266
266
|
E as CONNECTOR_DESTINATION_OPERATIONS,
|
|
267
267
|
I as CONNECTOR_SOURCE_OPERATIONS,
|
|
268
268
|
l as DEFAULT_LOCALE_CODE,
|
|
269
|
-
|
|
269
|
+
S as DefaultTimestamp,
|
|
270
270
|
v as EngineError,
|
|
271
271
|
g as FetchError,
|
|
272
272
|
O as OperationalError,
|
|
@@ -293,6 +293,6 @@ export {
|
|
|
293
293
|
F as normalizeToError,
|
|
294
294
|
D as presentationViewTypeMap,
|
|
295
295
|
L as serialiseError,
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
C as useCytoscapeJS,
|
|
297
|
+
x as useDataTable
|
|
298
298
|
};
|
|
@@ -5,7 +5,7 @@ export interface PresentationConfig extends ComponentConfig {
|
|
|
5
5
|
}
|
|
6
6
|
export type PresentationCategoryId = 'cartesianChart' | 'chordDiagram' | 'periodFlowBoundariesChart' | 'polarChart' | 'rangeChart' | 'sankeyDiagram' | 'streamGraph' | 'valueTable';
|
|
7
7
|
export type PresentationCartesianTypeId = 'areaLine' | 'areaSpline' | 'bar' | 'column' | 'line' | 'pyramid' | 'spline';
|
|
8
|
-
export type PresentationPolarTypeId = 'areaLine' | 'areaSpline' | 'column' | 'line' | 'spline';
|
|
8
|
+
export type PresentationPolarTypeId = 'areaLine' | 'areaRange' | 'areaSpline' | 'column' | 'line' | 'spline';
|
|
9
9
|
export type PresentationRangeTypeId = 'areaLine' | 'areaSpline' | 'bar' | 'column';
|
|
10
10
|
export type PresentationVisualConfig = {
|
|
11
11
|
content: PresentationVisualContentConfig;
|
package/package.json
CHANGED