lowcoder-comps 0.0.26 → 0.0.28
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/000297fb.js +5 -0
- package/{92fb34a2.js → 0205ce17.js} +27 -27
- package/{3f63d12d.js → 1269154d.js} +32711 -34763
- package/{6fbc4c21.js → 1f088099.js} +18 -18
- package/{2b3b3386.js → 2ae47d58.js} +548 -548
- package/2ff7471d.js +9 -0
- package/{44cd1a62.js → 42b75267.js} +11 -11
- package/{ed8c376c.js → 45a7c119.js} +286 -293
- package/4bc5ef7f.js +881 -0
- package/{90d3581f.js → 4c822e6b.js} +133 -132
- package/5bb002c8.js +64 -0
- package/{82c8e71b.js → 6517e88b.js} +12 -10
- package/65d3daa9.js +391 -0
- package/{87b4699c.js → 6909d829.js} +1 -1
- package/{b28dda80.js → 711961f8.js} +13 -12
- package/77491f00.js +86 -0
- package/7805c934.js +455 -0
- package/7dc7ce37.js +19104 -0
- package/{c3caea77.js → 83feec48.js} +45 -43
- package/{c66d9114.js → 8c8fb30b.js} +25 -24
- package/{3220cb2e.js → 945d7302.js} +2 -1
- package/{4891fa68.js → 9a9b397d.js} +6 -5
- package/{3ebbaeae.js → a2d32dbb.js} +18 -18
- package/{2c0287e1.js → a39d3869.js} +2 -2
- package/a40faea7.js +11624 -0
- package/b7bda09a.js +237 -0
- package/{5f138044.js → b99f5b2a.js} +158 -147
- package/bcc07d29.js +1536 -0
- package/c2bf7d82.js +819 -0
- package/c4bd6ed7.js +1269 -0
- package/c4c5f13b.js +8 -0
- package/d2bae1f4.js +2284 -0
- package/d4b9d281.js +1089 -0
- package/{11b36d97.js → d4ba48b2.js} +148 -145
- package/dd0ec77a.js +48428 -0
- package/{c889073f.js → e0bacb89.js} +1 -1
- package/{b70abaaf.js → e437d53e.js} +1 -1
- package/e95fa522.js +1102 -0
- package/ed46c11a.js +1276 -0
- package/f2b8cbc8.js +25 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/33035c6f.js +0 -86
- package/3f82489c.js +0 -2396
- package/454ca826.js +0 -46724
- package/4938ecf8.js +0 -22
- package/558b96ef.js +0 -18798
- package/596b7f71.js +0 -365
- package/637a168a.js +0 -235
- package/765a2a38.js +0 -1055
- package/8ed940ee.js +0 -786
- package/9c1ceb2f.js +0 -448
- package/aad4f2fa.js +0 -1235
- package/b053e17f.js +0 -1000
- package/bed24264.js +0 -2192
- package/d3478475.js +0 -64
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { U as H, V as at,
|
|
2
|
-
import { a as tt } from "./
|
|
3
|
-
import { o as
|
|
4
|
-
import { a as
|
|
5
|
-
import { c as
|
|
1
|
+
import { U as H, V as at, C as lt, D as ct, s as ot, g as ht, b as ut, a as yt, E as ft, d as pt, c as et, l as it, W as gt, T as dt, X as mt, i as _t } from "./1269154d.js";
|
|
2
|
+
import { a as tt } from "./77491f00.js";
|
|
3
|
+
import { o as xt } from "./92e85b65.js";
|
|
4
|
+
import { a as vt } from "./2ff2c7a6.js";
|
|
5
|
+
import { c as F } from "./256b619e.js";
|
|
6
6
|
import "./f9637058.js";
|
|
7
7
|
function kt(e, u) {
|
|
8
8
|
return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
|
|
@@ -11,80 +11,80 @@ function bt(e) {
|
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
13
|
function St() {
|
|
14
|
-
var e = bt, u = kt,
|
|
15
|
-
function
|
|
16
|
-
var l,
|
|
17
|
-
for (l = 0; l <
|
|
18
|
-
(t =
|
|
19
|
-
for (u != null ?
|
|
20
|
-
return u(
|
|
21
|
-
}) :
|
|
22
|
-
return
|
|
23
|
-
}), l = 0,
|
|
24
|
-
|
|
25
|
-
data:
|
|
14
|
+
var e = bt, u = kt, E = null, p = F(0), g = F(H), A = F(0);
|
|
15
|
+
function y(a) {
|
|
16
|
+
var l, d = (a = vt(a)).length, m, D, T = 0, _ = new Array(d), k = new Array(d), o = +p.apply(this, arguments), b = Math.min(H, Math.max(-H, g.apply(this, arguments) - o)), V, w = Math.min(Math.abs(b) / d, A.apply(this, arguments)), S = w * (b < 0 ? -1 : 1), t;
|
|
17
|
+
for (l = 0; l < d; ++l)
|
|
18
|
+
(t = k[_[l] = l] = +e(a[l], l, a)) > 0 && (T += t);
|
|
19
|
+
for (u != null ? _.sort(function(i, n) {
|
|
20
|
+
return u(k[i], k[n]);
|
|
21
|
+
}) : E != null && _.sort(function(i, n) {
|
|
22
|
+
return E(a[i], a[n]);
|
|
23
|
+
}), l = 0, D = T ? (b - d * S) / T : 0; l < d; ++l, o = V)
|
|
24
|
+
m = _[l], t = k[m], V = o + (t > 0 ? t * D : 0) + S, k[m] = {
|
|
25
|
+
data: a[m],
|
|
26
26
|
index: l,
|
|
27
27
|
value: t,
|
|
28
|
-
startAngle:
|
|
29
|
-
endAngle:
|
|
30
|
-
padAngle:
|
|
28
|
+
startAngle: o,
|
|
29
|
+
endAngle: V,
|
|
30
|
+
padAngle: w
|
|
31
31
|
};
|
|
32
|
-
return
|
|
32
|
+
return k;
|
|
33
33
|
}
|
|
34
|
-
return
|
|
35
|
-
return arguments.length ? (e = typeof
|
|
36
|
-
},
|
|
37
|
-
return arguments.length ? (u =
|
|
38
|
-
},
|
|
39
|
-
return arguments.length ? (
|
|
40
|
-
},
|
|
41
|
-
return arguments.length ? (
|
|
42
|
-
},
|
|
43
|
-
return arguments.length ? (
|
|
44
|
-
},
|
|
45
|
-
return arguments.length ? (
|
|
46
|
-
},
|
|
34
|
+
return y.value = function(a) {
|
|
35
|
+
return arguments.length ? (e = typeof a == "function" ? a : F(+a), y) : e;
|
|
36
|
+
}, y.sortValues = function(a) {
|
|
37
|
+
return arguments.length ? (u = a, E = null, y) : u;
|
|
38
|
+
}, y.sort = function(a) {
|
|
39
|
+
return arguments.length ? (E = a, u = null, y) : E;
|
|
40
|
+
}, y.startAngle = function(a) {
|
|
41
|
+
return arguments.length ? (p = typeof a == "function" ? a : F(+a), y) : p;
|
|
42
|
+
}, y.endAngle = function(a) {
|
|
43
|
+
return arguments.length ? (g = typeof a == "function" ? a : F(+a), y) : g;
|
|
44
|
+
}, y.padAngle = function(a) {
|
|
45
|
+
return arguments.length ? (A = typeof a == "function" ? a : F(+a), y) : A;
|
|
46
|
+
}, y;
|
|
47
47
|
}
|
|
48
48
|
var J = function() {
|
|
49
|
-
var e = function(
|
|
50
|
-
for (i = i || {}, n =
|
|
49
|
+
var e = function(S, t, i, n) {
|
|
50
|
+
for (i = i || {}, n = S.length; n--; i[S[n]] = t)
|
|
51
51
|
;
|
|
52
52
|
return i;
|
|
53
|
-
}, u = [1, 3],
|
|
53
|
+
}, u = [1, 3], E = [1, 4], p = [1, 5], g = [1, 6], A = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], D = [1, 13], T = [1, 14], _ = [1, 15], k = [1, 16], o = [1, 17], b = {
|
|
54
54
|
trace: function() {
|
|
55
55
|
},
|
|
56
56
|
yy: {},
|
|
57
57
|
symbols_: { error: 2, start: 3, eol: 4, PIE: 5, document: 6, showData: 7, line: 8, statement: 9, txt: 10, value: 11, title: 12, title_value: 13, acc_title: 14, acc_title_value: 15, acc_descr: 16, acc_descr_value: 17, acc_descr_multiline_value: 18, section: 19, NEWLINE: 20, ";": 21, EOF: 22, $accept: 0, $end: 1 },
|
|
58
58
|
terminals_: { 2: "error", 5: "PIE", 7: "showData", 10: "txt", 11: "value", 12: "title", 13: "title_value", 14: "acc_title", 15: "acc_title_value", 16: "acc_descr", 17: "acc_descr_value", 18: "acc_descr_multiline_value", 19: "section", 20: "NEWLINE", 21: ";", 22: "EOF" },
|
|
59
59
|
productions_: [0, [3, 2], [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [9, 0], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [4, 1], [4, 1], [4, 1]],
|
|
60
|
-
performAction: function(t, i, n,
|
|
61
|
-
var
|
|
60
|
+
performAction: function(t, i, n, r, c, s, P) {
|
|
61
|
+
var x = s.length - 1;
|
|
62
62
|
switch (c) {
|
|
63
63
|
case 3:
|
|
64
|
-
|
|
64
|
+
r.setShowData(!0);
|
|
65
65
|
break;
|
|
66
66
|
case 6:
|
|
67
|
-
this.$ = s[
|
|
67
|
+
this.$ = s[x - 1];
|
|
68
68
|
break;
|
|
69
69
|
case 8:
|
|
70
|
-
|
|
70
|
+
r.addSection(s[x - 1], r.cleanupValue(s[x]));
|
|
71
71
|
break;
|
|
72
72
|
case 9:
|
|
73
|
-
this.$ = s[
|
|
73
|
+
this.$ = s[x].trim(), r.setDiagramTitle(this.$);
|
|
74
74
|
break;
|
|
75
75
|
case 10:
|
|
76
|
-
this.$ = s[
|
|
76
|
+
this.$ = s[x].trim(), r.setAccTitle(this.$);
|
|
77
77
|
break;
|
|
78
78
|
case 11:
|
|
79
79
|
case 12:
|
|
80
|
-
this.$ = s[
|
|
80
|
+
this.$ = s[x].trim(), r.setAccDescription(this.$);
|
|
81
81
|
break;
|
|
82
82
|
case 13:
|
|
83
|
-
|
|
83
|
+
r.addSection(s[x].substr(8)), this.$ = s[x].substr(8);
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
table: [{ 3: 1, 4: 2, 5: u, 20:
|
|
87
|
+
table: [{ 3: 1, 4: 2, 5: u, 20: E, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: E, 21: p, 22: g }, e(A, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: D, 14: T, 16: _, 18: k, 19: o }), e(A, y, { 6: 18 }), e(A, [2, 5]), { 4: 19, 20: E, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: D, 14: T, 16: _, 18: k, 19: o }), e(A, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
|
|
88
88
|
defaultActions: { 7: [2, 1] },
|
|
89
89
|
parseError: function(t, i) {
|
|
90
90
|
if (i.recoverable)
|
|
@@ -95,60 +95,60 @@ var J = function() {
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
parse: function(t) {
|
|
98
|
-
var i = this, n = [0],
|
|
98
|
+
var i = this, n = [0], r = [], c = [null], s = [], P = this.table, x = "", f = 0, I = 0, R = 2, M = 1, B = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
|
|
99
99
|
for (var Y in this.yy)
|
|
100
|
-
Object.prototype.hasOwnProperty.call(this.yy, Y) && (
|
|
101
|
-
|
|
102
|
-
var X =
|
|
100
|
+
Object.prototype.hasOwnProperty.call(this.yy, Y) && (N.yy[Y] = this.yy[Y]);
|
|
101
|
+
h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc == "undefined" && (h.yylloc = {});
|
|
102
|
+
var X = h.yylloc;
|
|
103
103
|
s.push(X);
|
|
104
|
-
var st =
|
|
105
|
-
typeof
|
|
104
|
+
var st = h.options && h.options.ranges;
|
|
105
|
+
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
106
106
|
function rt() {
|
|
107
107
|
var O;
|
|
108
|
-
return O =
|
|
108
|
+
return O = r.pop() || h.lex() || M, typeof O != "number" && (O instanceof Array && (r = O, O = r.pop()), O = i.symbols_[O] || O), O;
|
|
109
109
|
}
|
|
110
|
-
for (var v,
|
|
111
|
-
if (
|
|
110
|
+
for (var v, L, $, Z, z = {}, j, C, Q, W; ; ) {
|
|
111
|
+
if (L = n[n.length - 1], this.defaultActions[L] ? $ = this.defaultActions[L] : ((v === null || typeof v == "undefined") && (v = rt()), $ = P[L] && P[L][v]), typeof $ == "undefined" || !$.length || !$[0]) {
|
|
112
112
|
var q = "";
|
|
113
|
-
|
|
114
|
-
for (
|
|
115
|
-
this.terminals_[
|
|
116
|
-
|
|
117
|
-
` +
|
|
118
|
-
Expecting ` +
|
|
119
|
-
text:
|
|
113
|
+
W = [];
|
|
114
|
+
for (j in P[L])
|
|
115
|
+
this.terminals_[j] && j > R && W.push("'" + this.terminals_[j] + "'");
|
|
116
|
+
h.showPosition ? q = "Parse error on line " + (f + 1) + `:
|
|
117
|
+
` + h.showPosition() + `
|
|
118
|
+
Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "Parse error on line " + (f + 1) + ": Unexpected " + (v == M ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(q, {
|
|
119
|
+
text: h.match,
|
|
120
120
|
token: this.terminals_[v] || v,
|
|
121
|
-
line:
|
|
121
|
+
line: h.yylineno,
|
|
122
122
|
loc: X,
|
|
123
|
-
expected:
|
|
123
|
+
expected: W
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
if (
|
|
127
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
128
|
-
switch (
|
|
126
|
+
if ($[0] instanceof Array && $.length > 1)
|
|
127
|
+
throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + v);
|
|
128
|
+
switch ($[0]) {
|
|
129
129
|
case 1:
|
|
130
|
-
n.push(v), c.push(
|
|
130
|
+
n.push(v), c.push(h.yytext), s.push(h.yylloc), n.push($[1]), v = null, I = h.yyleng, x = h.yytext, f = h.yylineno, X = h.yylloc;
|
|
131
131
|
break;
|
|
132
132
|
case 2:
|
|
133
|
-
if (C = this.productions_[
|
|
133
|
+
if (C = this.productions_[$[1]][1], z.$ = c[c.length - C], z._$ = {
|
|
134
134
|
first_line: s[s.length - (C || 1)].first_line,
|
|
135
135
|
last_line: s[s.length - 1].last_line,
|
|
136
136
|
first_column: s[s.length - (C || 1)].first_column,
|
|
137
137
|
last_column: s[s.length - 1].last_column
|
|
138
|
-
}, st && (
|
|
138
|
+
}, st && (z._$.range = [
|
|
139
139
|
s[s.length - (C || 1)].range[0],
|
|
140
140
|
s[s.length - 1].range[1]
|
|
141
|
-
]), Z = this.performAction.apply(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
]), Z = this.performAction.apply(z, [
|
|
142
|
+
x,
|
|
143
|
+
I,
|
|
144
|
+
f,
|
|
145
|
+
N.yy,
|
|
146
|
+
$[1],
|
|
147
147
|
c,
|
|
148
148
|
s
|
|
149
149
|
].concat(B)), typeof Z != "undefined")
|
|
150
150
|
return Z;
|
|
151
|
-
C && (n = n.slice(0, -1 * C * 2), c = c.slice(0, -1 * C), s = s.slice(0, -1 * C)), n.push(this.productions_[
|
|
151
|
+
C && (n = n.slice(0, -1 * C * 2), c = c.slice(0, -1 * C), s = s.slice(0, -1 * C)), n.push(this.productions_[$[1]][0]), c.push(z.$), s.push(z._$), Q = P[n[n.length - 2]][n[n.length - 1]], n.push(Q);
|
|
152
152
|
break;
|
|
153
153
|
case 3:
|
|
154
154
|
return !0;
|
|
@@ -156,8 +156,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
156
156
|
}
|
|
157
157
|
return !0;
|
|
158
158
|
}
|
|
159
|
-
},
|
|
160
|
-
var
|
|
159
|
+
}, V = function() {
|
|
160
|
+
var S = {
|
|
161
161
|
EOF: 1,
|
|
162
162
|
parseError: function(i, n) {
|
|
163
163
|
if (this.yy.parser)
|
|
@@ -185,14 +185,14 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
185
185
|
unput: function(t) {
|
|
186
186
|
var i = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
187
187
|
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
188
|
-
var
|
|
188
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
189
189
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
190
190
|
var c = this.yylloc.range;
|
|
191
191
|
return this.yylloc = {
|
|
192
192
|
first_line: this.yylloc.first_line,
|
|
193
193
|
last_line: this.yylineno + 1,
|
|
194
194
|
first_column: this.yylloc.first_column,
|
|
195
|
-
last_column: n ? (n.length ===
|
|
195
|
+
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - i
|
|
196
196
|
}, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
197
197
|
},
|
|
198
198
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -234,7 +234,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
234
234
|
},
|
|
235
235
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
236
236
|
test_match: function(t, i) {
|
|
237
|
-
var n,
|
|
237
|
+
var n, r, c;
|
|
238
238
|
if (this.options.backtrack_lexer && (c = {
|
|
239
239
|
yylineno: this.yylineno,
|
|
240
240
|
yylloc: {
|
|
@@ -254,11 +254,11 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
254
254
|
yy: this.yy,
|
|
255
255
|
conditionStack: this.conditionStack.slice(0),
|
|
256
256
|
done: this.done
|
|
257
|
-
}, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))),
|
|
257
|
+
}, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
258
258
|
first_line: this.yylloc.last_line,
|
|
259
259
|
last_line: this.yylineno + 1,
|
|
260
260
|
first_column: this.yylloc.last_column,
|
|
261
|
-
last_column:
|
|
261
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
262
262
|
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
263
263
|
return n;
|
|
264
264
|
if (this._backtrack) {
|
|
@@ -273,11 +273,11 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
273
273
|
if (this.done)
|
|
274
274
|
return this.EOF;
|
|
275
275
|
this._input || (this.done = !0);
|
|
276
|
-
var t, i, n,
|
|
276
|
+
var t, i, n, r;
|
|
277
277
|
this._more || (this.yytext = "", this.match = "");
|
|
278
278
|
for (var c = this._currentRules(), s = 0; s < c.length; s++)
|
|
279
279
|
if (n = this._input.match(this.rules[c[s]]), n && (!i || n[0].length > i[0].length)) {
|
|
280
|
-
if (i = n,
|
|
280
|
+
if (i = n, r = s, this.options.backtrack_lexer) {
|
|
281
281
|
if (t = this.test_match(n, c[s]), t !== !1)
|
|
282
282
|
return t;
|
|
283
283
|
if (this._backtrack) {
|
|
@@ -288,7 +288,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
288
288
|
} else if (!this.options.flex)
|
|
289
289
|
break;
|
|
290
290
|
}
|
|
291
|
-
return i ? (t = this.test_match(i, c[
|
|
291
|
+
return i ? (t = this.test_match(i, c[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
292
292
|
` + this.showPosition(), {
|
|
293
293
|
text: "",
|
|
294
294
|
token: null,
|
|
@@ -326,8 +326,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
326
326
|
return this.conditionStack.length;
|
|
327
327
|
},
|
|
328
328
|
options: { "case-insensitive": !0 },
|
|
329
|
-
performAction: function(i, n,
|
|
330
|
-
switch (
|
|
329
|
+
performAction: function(i, n, r, c) {
|
|
330
|
+
switch (r) {
|
|
331
331
|
case 0:
|
|
332
332
|
break;
|
|
333
333
|
case 1:
|
|
@@ -379,30 +379,30 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
|
|
|
379
379
|
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:[\s]+)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:pie\b)/i, /^(?:showData\b)/i, /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, /^(?:$)/i],
|
|
380
380
|
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [6], inclusive: !1 }, string: { rules: [15, 16], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 7, 9, 11, 14, 17, 18, 19, 20], inclusive: !0 } }
|
|
381
381
|
};
|
|
382
|
-
return
|
|
382
|
+
return S;
|
|
383
383
|
}();
|
|
384
|
-
|
|
385
|
-
function
|
|
384
|
+
b.lexer = V;
|
|
385
|
+
function w() {
|
|
386
386
|
this.yy = {};
|
|
387
387
|
}
|
|
388
|
-
return
|
|
388
|
+
return w.prototype = b, b.Parser = w, new w();
|
|
389
389
|
}();
|
|
390
390
|
J.parser = J;
|
|
391
|
-
const
|
|
391
|
+
const $t = J, nt = at.pie, G = {
|
|
392
392
|
sections: {},
|
|
393
393
|
showData: !1,
|
|
394
394
|
config: nt
|
|
395
395
|
};
|
|
396
|
-
let U =
|
|
397
|
-
const
|
|
398
|
-
U = structuredClone(
|
|
396
|
+
let U = G.sections, K = G.showData;
|
|
397
|
+
const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
|
|
398
|
+
U = structuredClone(G.sections), K = G.showData, ft();
|
|
399
399
|
}, Tt = (e, u) => {
|
|
400
400
|
e = pt(e, et()), U[e] === void 0 && (U[e] = u, it.debug(`added new section: ${e}, with value: ${u}`));
|
|
401
401
|
}, It = () => U, Dt = (e) => (e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim())), Ct = (e) => {
|
|
402
402
|
K = e;
|
|
403
403
|
}, Ot = () => K, Vt = {
|
|
404
|
-
getConfig:
|
|
405
|
-
clear:
|
|
404
|
+
getConfig: At,
|
|
405
|
+
clear: wt,
|
|
406
406
|
setDiagramTitle: lt,
|
|
407
407
|
getDiagramTitle: ct,
|
|
408
408
|
setAccTitle: ot,
|
|
@@ -443,58 +443,61 @@ const $t = structuredClone(nt), wt = () => structuredClone($t), At = () => {
|
|
|
443
443
|
font-size: ${e.pieLegendTextSize};
|
|
444
444
|
}
|
|
445
445
|
`, Nt = Pt, Lt = (e) => {
|
|
446
|
-
const u = Object.entries(e).map((
|
|
447
|
-
label:
|
|
448
|
-
value:
|
|
449
|
-
})).sort((
|
|
446
|
+
const u = Object.entries(e).map((p) => ({
|
|
447
|
+
label: p[0],
|
|
448
|
+
value: p[1]
|
|
449
|
+
})).sort((p, g) => g.value - p.value);
|
|
450
450
|
return St().value(
|
|
451
|
-
(
|
|
451
|
+
(p) => p.value
|
|
452
452
|
)(u);
|
|
453
|
-
}, Ft = (e, u,
|
|
454
|
-
var N;
|
|
455
|
-
var b, w;
|
|
453
|
+
}, Ft = (e, u, E, p) => {
|
|
456
454
|
it.debug(`rendering pie chart
|
|
457
455
|
` + e);
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
const L = d + x, B = L * s.domain().length / 2, y = 12 * d, D = R * L - B;
|
|
488
|
-
return "translate(" + y + "," + D + ")";
|
|
456
|
+
const g = p.db, A = et(), y = gt(g.getConfig(), A.pie), a = 40, l = 18, d = 4, m = 450, D = m, T = dt(u), _ = T.append("g"), k = g.getSections();
|
|
457
|
+
_.attr("transform", "translate(" + D / 2 + "," + m / 2 + ")");
|
|
458
|
+
const { themeVariables: o } = A;
|
|
459
|
+
let [b] = mt(o.pieOuterStrokeWidth);
|
|
460
|
+
b != null || (b = 2);
|
|
461
|
+
const V = y.textPosition, w = Math.min(D, m) / 2 - a, S = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * V).outerRadius(w * V);
|
|
462
|
+
_.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + b / 2).attr("class", "pieOuterCircle");
|
|
463
|
+
const i = Lt(k), n = [
|
|
464
|
+
o.pie1,
|
|
465
|
+
o.pie2,
|
|
466
|
+
o.pie3,
|
|
467
|
+
o.pie4,
|
|
468
|
+
o.pie5,
|
|
469
|
+
o.pie6,
|
|
470
|
+
o.pie7,
|
|
471
|
+
o.pie8,
|
|
472
|
+
o.pie9,
|
|
473
|
+
o.pie10,
|
|
474
|
+
o.pie11,
|
|
475
|
+
o.pie12
|
|
476
|
+
], r = xt(n);
|
|
477
|
+
_.selectAll("mySlices").data(i).enter().append("path").attr("d", S).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
|
|
478
|
+
let c = 0;
|
|
479
|
+
Object.keys(k).forEach((f) => {
|
|
480
|
+
c += k[f];
|
|
481
|
+
}), _.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / c * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
|
|
482
|
+
const s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, I) => {
|
|
483
|
+
const R = l + d, M = R * r.domain().length / 2, B = 12 * l, h = I * R - M;
|
|
484
|
+
return "translate(" + B + "," + h + ")";
|
|
489
485
|
});
|
|
490
|
-
|
|
491
|
-
const { label:
|
|
492
|
-
return
|
|
486
|
+
s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text((f) => {
|
|
487
|
+
const { label: I, value: R } = f.data;
|
|
488
|
+
return g.getShowData() ? `${I} [${R}]` : I;
|
|
493
489
|
});
|
|
494
|
-
|
|
495
|
-
|
|
490
|
+
const P = Math.max(
|
|
491
|
+
...s.selectAll("text").nodes().map((f) => {
|
|
492
|
+
var I;
|
|
493
|
+
return (I = f == null ? void 0 : f.getBoundingClientRect().width) != null ? I : 0;
|
|
494
|
+
})
|
|
495
|
+
), x = D + a + l + d + P;
|
|
496
|
+
T.attr("viewBox", `0 0 ${x} ${m}`), _t(T, m, x, y.useMaxWidth);
|
|
497
|
+
}, Rt = { draw: Ft }, Bt = {
|
|
498
|
+
parser: $t,
|
|
496
499
|
db: Vt,
|
|
497
|
-
renderer:
|
|
500
|
+
renderer: Rt,
|
|
498
501
|
styles: Nt
|
|
499
502
|
};
|
|
500
503
|
export {
|