@datapos/datapos-shared 0.3.231 → 0.3.233

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
- const E = ["createObject", "dropObject", "removeRecords", "upsertRecords"], I = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
- function x() {
1
+ const E = ["createObject", "dropObject", "removeRecords", "upsertRecords"], C = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
+ function I() {
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 S() {
8
+ function x() {
9
9
  function e(a, t, r) {
10
- r.textContent = "values table goes here...";
10
+ console.log(1111, a), console.log(2222, t), console.log(3333, r), console.log(4444, r.textContent), r.textContent = "values table goes here...", console.log(5555, r.textContent);
11
11
  }
12
12
  return { render: e };
13
13
  }
14
- const C = 0, w = (e) => e, N = () => Date.now(), D = {
15
- cartesian_areaLine: { categoryId: "cartesianChart", typeId: "areaLine", label: { "en-gb": "Area Line" } },
16
- cartesian_areaSpline: { categoryId: "cartesianChart", typeId: "areaSpline", label: { "en-gb": "Area Spline" } },
17
- cartesian_bar: { categoryId: "cartesianChart", typeId: "bar", label: { "en-gb": "Bar" } },
18
- cartesian_column: { categoryId: "cartesianChart", typeId: "column", label: { "en-gb": "Column" } },
19
- cartesian_line: { categoryId: "cartesianChart", typeId: "line", label: { "en-gb": "Line" } },
20
- cartesian_pyramid: { categoryId: "cartesianChart", typeId: "pyramid", label: { "en-gb": "Pyramid" } },
21
- cartesian_spline: { categoryId: "cartesianChart", typeId: "spline", label: { "en-gb": "Spline" } },
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
- polar_areaLine: { categoryId: "polarChart", typeId: "areaLine", label: { "en-gb": "Radar (Area Line)" } },
25
- polar_areaSpline: { categoryId: "polarChart", typeId: "areaSpline", label: { "en-gb": "Radar (Area Spline)" } },
26
- polar_column: { categoryId: "polarChart", typeId: "column", label: { "en-gb": "Radar (Column)" } },
27
- polar_line: { categoryId: "polarChart", typeId: "line", label: { "en-gb": "Radar (Line)" } },
28
- polar_spline: { categoryId: "polarChart", typeId: "spline", label: { "en-gb": "Radar (Spline)" } },
29
- range_areaLine: { categoryId: "rangeChart", typeId: "areaLine", label: { "en-gb": "Range (Area Line)" } },
30
- range_areaSpline: { categoryId: "rangeChart", typeId: "areaSpline", label: { "en-gb": "Range (Area Spline)" } },
31
- range_bar: { categoryId: "rangeChart", typeId: "bar", label: { "en-gb": "Range (Bar)" } },
32
- range_column: { categoryId: "rangeChart", typeId: "column", label: { "en-gb": "Range (Column)" } },
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
- }, y = [
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 y)
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
- }, h = [
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,16 +257,16 @@ 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 = h.find((r) => r.id === e);
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 {
264
264
  T as APIError,
265
265
  i as ApplicationError,
266
266
  E as CONNECTOR_DESTINATION_OPERATIONS,
267
- I as CONNECTOR_SOURCE_OPERATIONS,
267
+ C as CONNECTOR_SOURCE_OPERATIONS,
268
268
  l as DEFAULT_LOCALE_CODE,
269
- C as DefaultTimestamp,
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
- x as useCytoscapeJS,
297
- S as useDataTable
296
+ I as useCytoscapeJS,
297
+ x as useDataTable
298
298
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.231",
3
+ "version": "0.3.233",
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,