@datapos/datapos-shared 0.3.434 → 0.3.435

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,16 +1,16 @@
1
- import { l as d, o as a, b as s, d as i, f as m, a as p, i as b, D as r } from "./locale-CPeRw0Am.js";
1
+ import { l as d, o as r, b as s, d as i, f as m, a as p, i as b, D as a } from "./locale-CPeRw0Am.js";
2
2
  import { m as g } from "./moduleConfig.schema-ElDY1bZx.js";
3
- const u = d(["list"]), f = a({
3
+ const u = d(["list"]), f = r({
4
4
  ...p,
5
5
  typeId: i("contextModelGroup"),
6
6
  modelRefs: s(b),
7
7
  order: m()
8
- }), E = a({
8
+ }), E = r({
9
9
  ...g,
10
10
  typeId: i("context"),
11
11
  models: s(f),
12
12
  operations: s(u)
13
- }), C = d(["list", "render", "setColorMode"]), F = a({
13
+ }), C = d(["list", "render", "setColorMode"]), F = r({
14
14
  ...g,
15
15
  typeId: i("presenter"),
16
16
  presentations: s(b),
@@ -28,7 +28,7 @@ function O() {
28
28
  function x(t, o) {
29
29
  console.log(1111, t), console.log(2222, o), console.log(3333, o.childNodes), console.log(4444, o.children);
30
30
  }
31
- const e = (t) => new Map(Object.entries(t)), c = (t, o, n = r) => {
31
+ const e = (t) => new Map(Object.entries(t)), c = (t, o, n = a) => {
32
32
  const l = t.get(o);
33
33
  if (l !== void 0) return l;
34
34
  if (n !== o)
@@ -36,12 +36,12 @@ const e = (t) => new Map(Object.entries(t)), c = (t, o, n = r) => {
36
36
  }, h = [
37
37
  { id: "dtv", labels: e({ "en-gb": "Delimited Text" }) },
38
38
  { id: "e/e", labels: e({ "en-gb": "Entity/Event" }) },
39
- { id: "jsonArray", labels: e({ "en-gb": "JSON Array" }) },
39
+ { id: "json", labels: e({ "en-gb": "JSON" }) },
40
40
  { id: "spss", labels: e({ "en-gb": "SPSS" }) },
41
41
  { id: "xls", labels: e({ "en-gb": "XLS" }) },
42
42
  { id: "xlsx", labels: e({ "en-gb": "XLSX" }) },
43
43
  { id: "xml", labels: e({ "en-gb": "XML" }) }
44
- ], R = (t = r) => {
44
+ ], R = (t = a) => {
45
45
  const o = [];
46
46
  for (const n of h) {
47
47
  const l = c(n.labels, t);
@@ -54,7 +54,7 @@ const e = (t) => new Map(Object.entries(t)), c = (t, o, n = r) => {
54
54
  { id: "\r", labels: e({ "en-gb": "Carriage Return" }) },
55
55
  { id: `\r
56
56
  `, labels: e({ "en-gb": "Carriage Return/Newline" }) }
57
- ], T = (t = r) => {
57
+ ], T = (t = a) => {
58
58
  const o = [];
59
59
  for (const n of D) {
60
60
  const l = c(n.labels, t);
@@ -73,7 +73,7 @@ const e = (t) => new Map(Object.entries(t)), c = (t, o, n = r) => {
73
73
  { id: "_", labels: e({ "en-gb": "Underscore" }) },
74
74
  { id: "0x1F", labels: e({ "en-gb": "Unit Separator" }) },
75
75
  { id: "|", labels: e({ "en-gb": "Vertical Bar" }) }
76
- ], j = (t = r) => {
76
+ ], j = (t = a) => {
77
77
  const o = [];
78
78
  for (const n of L) {
79
79
  const l = c(n.labels, t);
@@ -1,3 +1,4 @@
1
+ import { FileTypeResult } from 'file-type';
1
2
  import { Component, ComponentConfig } from '..';
2
3
  import { ConnectionColumnConfig, ConnectionNodeConfig } from '../connector/connection';
3
4
  export type DataView = Component;
@@ -30,6 +31,7 @@ export interface DataViewPreviewConfig {
30
31
  encodingConfidenceLevel: number | undefined;
31
32
  encodingId: string | undefined;
32
33
  errorMessage?: string;
34
+ fileType: FileTypeResult;
33
35
  hasHeaders: boolean | undefined;
34
36
  recordDelimiterId?: RecordDelimiterId;
35
37
  records: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.434",
3
+ "version": "0.3.435",
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>",
@@ -67,6 +67,7 @@
67
67
  "eslint-plugin-security": "^3.0.1",
68
68
  "eslint-plugin-sonarjs": "^3.0.5",
69
69
  "eslint-plugin-unicorn": "^62.0.0",
70
+ "file-type": "^21.2.0",
70
71
  "jiti": "^2.6.1",
71
72
  "license-downloader": "^1.3.3",
72
73
  "license-report": "^6.8.1",