@datapos/datapos-shared 0.3.177 → 0.3.179
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.
|
@@ -11,7 +11,7 @@ function W() {
|
|
|
11
11
|
}
|
|
12
12
|
return { render: e };
|
|
13
13
|
}
|
|
14
|
-
const A = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/",
|
|
14
|
+
const A = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", D = "highcharts";
|
|
15
15
|
let b, R = !1;
|
|
16
16
|
function H() {
|
|
17
17
|
async function e(n, s, m, h) {
|
|
@@ -27,7 +27,7 @@ function H() {
|
|
|
27
27
|
xAxis: { categories: s.data.categoryLabels },
|
|
28
28
|
yAxis: { title: { text: s.data.name } }
|
|
29
29
|
}, u = b.chart(m, p, h);
|
|
30
|
-
return { chart: u, resize: () => u.reflow(), vendorId:
|
|
30
|
+
return { chart: u, resize: () => u.reflow(), vendorId: D };
|
|
31
31
|
}
|
|
32
32
|
async function r(n, s, m, h) {
|
|
33
33
|
await Promise.all([t(), o()]);
|
|
@@ -42,13 +42,13 @@ function H() {
|
|
|
42
42
|
xAxis: { categories: s.data.categoryLabels },
|
|
43
43
|
yAxis: { title: { text: s.data.name } }
|
|
44
44
|
}, u = b.chart(m, p, h);
|
|
45
|
-
return { chart: u, resize: () => u.reflow(), vendorId:
|
|
45
|
+
return { chart: u, resize: () => u.reflow(), vendorId: D };
|
|
46
46
|
}
|
|
47
47
|
async function a(n, s, m, h) {
|
|
48
48
|
await Promise.all([t(), o()]);
|
|
49
49
|
const l = [], p = [];
|
|
50
|
-
for (let
|
|
51
|
-
p.push([s.data.measures[0].data[
|
|
50
|
+
for (let f = 0; f < s.data.measures[0].data.length; f++)
|
|
51
|
+
p.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
|
|
52
52
|
l.push({ type: n.options.highchartsType, name: "Unknown", data: p });
|
|
53
53
|
const u = {
|
|
54
54
|
chart: { type: n.options.highchartsType, inverted: n.options.inverted },
|
|
@@ -58,7 +58,7 @@ function H() {
|
|
|
58
58
|
xAxis: { categories: s.data.categoryLabels },
|
|
59
59
|
yAxis: { title: { text: s.data.name } }
|
|
60
60
|
}, c = b.chart(m, u, h);
|
|
61
|
-
return { chart: c, resize: () => c.reflow(), vendorId:
|
|
61
|
+
return { chart: c, resize: () => c.reflow(), vendorId: D };
|
|
62
62
|
}
|
|
63
63
|
async function t() {
|
|
64
64
|
if (b) return;
|
|
@@ -77,31 +77,38 @@ function H() {
|
|
|
77
77
|
}
|
|
78
78
|
return { renderCartesianChart: e, renderPolarChart: r, renderRangeChart: a };
|
|
79
79
|
}
|
|
80
|
-
const O = 4, N = `https://cdn.jsdelivr.net/npm/micromark@${O}/+esm`,
|
|
81
|
-
let
|
|
80
|
+
const O = 4, N = `https://cdn.jsdelivr.net/npm/micromark@${O}/+esm`, T = 1, _ = `https://cdn.jsdelivr.net/npm/prismjs@${T}/+esm`, C = `https://cdn.jsdelivr.net/npm/prismjs@${T}/components/prism-javascript.min.js`, L = `https://cdn.jsdelivr.net/npm/prismjs@${T}/components/prism-javascript.min.js`;
|
|
81
|
+
let y, E;
|
|
82
82
|
function V() {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
function e() {
|
|
84
|
+
return { micromarkModule: y, prismModule: E };
|
|
85
85
|
}
|
|
86
|
-
function r() {
|
|
87
|
-
|
|
86
|
+
async function r() {
|
|
87
|
+
await a();
|
|
88
88
|
}
|
|
89
89
|
async function a() {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
90
|
+
if (y && E) return;
|
|
91
|
+
const t = await Promise.all([
|
|
92
|
+
import(
|
|
93
|
+
/* @vite-ignore */
|
|
94
|
+
N
|
|
95
|
+
),
|
|
96
|
+
import(
|
|
97
|
+
/* @vite-ignore */
|
|
98
|
+
_
|
|
99
|
+
),
|
|
100
|
+
import(
|
|
101
|
+
/* @vite-ignore */
|
|
102
|
+
C
|
|
103
|
+
),
|
|
104
|
+
import(
|
|
105
|
+
/* @vite-ignore */
|
|
106
|
+
L
|
|
107
|
+
)
|
|
108
|
+
]);
|
|
109
|
+
y = t[0], E = t[1], console.log("micromarkModule", y), console.log("prismModule", E);
|
|
103
110
|
}
|
|
104
|
-
return { getStuff:
|
|
111
|
+
return { getStuff: e, render: r };
|
|
105
112
|
}
|
|
106
113
|
const z = 0, X = (e) => e, G = () => Date.now(), J = {
|
|
107
114
|
cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
|
|
@@ -122,13 +129,13 @@ const z = 0, X = (e) => e, G = () => Date.now(), J = {
|
|
|
122
129
|
streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
|
|
123
130
|
values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
|
|
124
131
|
};
|
|
125
|
-
class
|
|
132
|
+
class w extends Error {
|
|
126
133
|
locator;
|
|
127
134
|
constructor(r, a, t) {
|
|
128
135
|
super(r, t), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
|
|
129
136
|
}
|
|
130
137
|
}
|
|
131
|
-
class g extends
|
|
138
|
+
class g extends w {
|
|
132
139
|
constructor(r, a, t) {
|
|
133
140
|
super(r, a, t), this.name = "ApplicationError";
|
|
134
141
|
}
|
|
@@ -166,7 +173,7 @@ class Y extends g {
|
|
|
166
173
|
super(r, a, t), this.name = "WindowHandledPromiseRejectionError";
|
|
167
174
|
}
|
|
168
175
|
}
|
|
169
|
-
class Z extends
|
|
176
|
+
class Z extends w {
|
|
170
177
|
constructor(r, a, t) {
|
|
171
178
|
super(r, a, t), this.name = "OperationalError";
|
|
172
179
|
}
|
|
@@ -197,7 +204,7 @@ function ae(e) {
|
|
|
197
204
|
o = { body: t.body, locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
|
|
198
205
|
else if (t instanceof $)
|
|
199
206
|
o = { componentName: t.componentName, info: t.info, locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
|
|
200
|
-
else if (t instanceof
|
|
207
|
+
else if (t instanceof w)
|
|
201
208
|
o = { locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
|
|
202
209
|
else if (t instanceof Error) {
|
|
203
210
|
const n = t;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { micromark } from 'micromark';
|
|
2
2
|
import { default as prism } from 'prismjs';
|
|
3
|
-
import { PresentationView } from '../index';
|
|
4
|
-
export interface CytoscapeJSView extends PresentationView {
|
|
5
|
-
diagram: unknown;
|
|
6
|
-
}
|
|
7
3
|
export declare function useMicromark(): {
|
|
8
4
|
getStuff: () => {
|
|
9
5
|
micromarkModule: typeof micromark | undefined;
|
|
10
6
|
prismModule: typeof prism | undefined;
|
|
11
7
|
};
|
|
12
|
-
micromarkModule: typeof micromark | undefined;
|
|
13
|
-
prismModule: typeof prism | undefined;
|
|
14
8
|
render: () => Promise<void>;
|
|
15
9
|
};
|
package/package.json
CHANGED