@code0-tech/pictor 0.0.0-mvp.40 → 0.0.0-mvp.42
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/dist/assets/components/data-table/DataTable.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -1
- package/dist/components/d-flow/DFlow.service.js +80 -100
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +6 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +1 -1
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +15 -15
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +1 -1
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +17 -17
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +1 -1
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +1 -1
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -1
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +87 -85
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +2 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +2 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +5 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +2 -1
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +5 -5
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +1 -1
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +17 -17
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +5 -0
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +27 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +90 -91
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +1 -1
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +33 -33
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +2 -1
- package/dist/components/d-flow-validation/DValueValidation.hook.js +5 -5
- package/dist/components/d-project/DNamespaceProject.service.d.ts +2 -1
- package/dist/components/data-table/DataTable.d.ts +23 -0
- package/dist/components/data-table/DataTable.js +41 -0
- package/dist/components/data-table/DataTableColumn.d.ts +6 -0
- package/dist/components/data-table/DataTableColumn.js +22 -0
- package/dist/components/data-table/DataTableFilterInput.d.ts +18 -0
- package/dist/components/data-table/DataTableFilterInput.js +210 -0
- package/dist/components/data-table/DataTableFilterSuggestionMenu.d.ts +7 -0
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +53 -0
- package/dist/components/data-table/index.d.ts +4 -0
- package/dist/components/data-table/index.js +11 -0
- package/dist/components/editor/Editor.d.ts +9 -3
- package/dist/components/editor/Editor.js +249 -174
- package/dist/components/menu/Menu.d.ts +5 -1
- package/dist/components/menu/Menu.js +73 -57
- package/dist/index.d.ts +1 -0
- package/dist/index.js +182 -171
- package/dist/node_modules/@lezer/highlight/dist/index.js +132 -169
- package/dist/utils/generics.d.ts +2 -1
- package/dist/utils/generics.js +84 -80
- package/package.json +32 -21
- package/dist/node_modules/@codemirror/language/dist/index.js +0 -429
- package/dist/node_modules/@codemirror/lint/dist/index.js +0 -515
- package/dist/node_modules/@codemirror/state/dist/index.js +0 -2614
- package/dist/node_modules/@codemirror/view/dist/index.js +0 -6227
- package/dist/node_modules/@lezer/common/dist/index.js +0 -1357
- package/dist/node_modules/@marijn/find-cluster-break/src/index.js +0 -69
- package/dist/node_modules/crelt/index.js +0 -27
- package/dist/node_modules/style-mod/src/style-mod.js +0 -109
- package/dist/node_modules/w3c-keyname/index.js +0 -88
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { NodeProp as q } from "
|
|
2
|
-
let
|
|
3
|
-
class
|
|
1
|
+
import { NodeProp as q } from "@lezer/common";
|
|
2
|
+
let A = 0;
|
|
3
|
+
class l {
|
|
4
4
|
/**
|
|
5
5
|
@internal
|
|
6
6
|
*/
|
|
7
|
-
constructor(t, a,
|
|
8
|
-
this.name = t, this.set = a, this.base =
|
|
7
|
+
constructor(t, a, i, n) {
|
|
8
|
+
this.name = t, this.set = a, this.base = i, this.modified = n, this.id = A++;
|
|
9
9
|
}
|
|
10
10
|
toString() {
|
|
11
11
|
let { name: t } = this;
|
|
@@ -14,14 +14,14 @@ class d {
|
|
|
14
14
|
return t;
|
|
15
15
|
}
|
|
16
16
|
static define(t, a) {
|
|
17
|
-
let
|
|
18
|
-
if (t instanceof
|
|
17
|
+
let i = typeof t == "string" ? t : "?";
|
|
18
|
+
if (t instanceof l && (a = t), a?.base)
|
|
19
19
|
throw new Error("Can not derive from a modified tag");
|
|
20
|
-
let
|
|
21
|
-
if (
|
|
22
|
-
for (let
|
|
23
|
-
|
|
24
|
-
return
|
|
20
|
+
let n = new l(i, [], null, []);
|
|
21
|
+
if (n.set.push(n), a)
|
|
22
|
+
for (let r of a.set)
|
|
23
|
+
n.set.push(r);
|
|
24
|
+
return n;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
Define a tag _modifier_, which is a function that, given a tag,
|
|
@@ -36,93 +36,57 @@ class d {
|
|
|
36
36
|
`m1(m3(t1)`, and so on.
|
|
37
37
|
*/
|
|
38
38
|
static defineModifier(t) {
|
|
39
|
-
let a = new
|
|
40
|
-
return (
|
|
39
|
+
let a = new b(t);
|
|
40
|
+
return (i) => i.modified.indexOf(a) > -1 ? i : b.get(i.base || i, i.modified.concat(a).sort((n, r) => n.id - r.id));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
class
|
|
43
|
+
let I = 0;
|
|
44
|
+
class b {
|
|
45
45
|
constructor(t) {
|
|
46
|
-
this.name = t, this.instances = [], this.id =
|
|
46
|
+
this.name = t, this.instances = [], this.id = I++;
|
|
47
47
|
}
|
|
48
48
|
static get(t, a) {
|
|
49
49
|
if (!a.length)
|
|
50
50
|
return t;
|
|
51
|
-
let
|
|
52
|
-
if (
|
|
53
|
-
return
|
|
54
|
-
let
|
|
55
|
-
for (let
|
|
56
|
-
|
|
57
|
-
let
|
|
58
|
-
for (let
|
|
59
|
-
if (!
|
|
60
|
-
for (let
|
|
61
|
-
|
|
62
|
-
return
|
|
51
|
+
let i = a[0].instances.find((g) => g.base == t && j(a, g.modified));
|
|
52
|
+
if (i)
|
|
53
|
+
return i;
|
|
54
|
+
let n = [], r = new l(t.name, n, t, a);
|
|
55
|
+
for (let g of a)
|
|
56
|
+
g.instances.push(r);
|
|
57
|
+
let f = B(a);
|
|
58
|
+
for (let g of t.set)
|
|
59
|
+
if (!g.modified.length)
|
|
60
|
+
for (let w of f)
|
|
61
|
+
n.push(b.get(g, w));
|
|
62
|
+
return r;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
65
|
+
function j(s, t) {
|
|
66
|
+
return s.length == t.length && s.every((a, i) => a == t[i]);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function B(s) {
|
|
69
69
|
let t = [[]];
|
|
70
|
-
for (let a = 0; a <
|
|
71
|
-
for (let
|
|
72
|
-
t.push(t[
|
|
73
|
-
return t.sort((a,
|
|
74
|
-
}
|
|
75
|
-
function V(r) {
|
|
76
|
-
let t = /* @__PURE__ */ Object.create(null);
|
|
77
|
-
for (let a in r) {
|
|
78
|
-
let n = r[a];
|
|
79
|
-
Array.isArray(n) || (n = [n]);
|
|
80
|
-
for (let i of a.split(" "))
|
|
81
|
-
if (i) {
|
|
82
|
-
let s = [], c = 2, l = i;
|
|
83
|
-
for (let N = 0; ; ) {
|
|
84
|
-
if (l == "..." && N > 0 && N + 3 == i.length) {
|
|
85
|
-
c = 1;
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
let b = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);
|
|
89
|
-
if (!b)
|
|
90
|
-
throw new RangeError("Invalid path: " + i);
|
|
91
|
-
if (s.push(b[0] == "*" ? "" : b[0][0] == '"' ? JSON.parse(b[0]) : b[0]), N += b[0].length, N == i.length)
|
|
92
|
-
break;
|
|
93
|
-
let A = i[N++];
|
|
94
|
-
if (N == i.length && A == "!") {
|
|
95
|
-
c = 0;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
if (A != "/")
|
|
99
|
-
throw new RangeError("Invalid path: " + i);
|
|
100
|
-
l = i.slice(N);
|
|
101
|
-
}
|
|
102
|
-
let h = s.length - 1, k = s[h];
|
|
103
|
-
if (!k)
|
|
104
|
-
throw new RangeError("Invalid path: " + i);
|
|
105
|
-
let j = new C(n, c, h > 0 ? s.slice(0, h) : null);
|
|
106
|
-
t[k] = j.sort(t[k]);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return R.add(t);
|
|
70
|
+
for (let a = 0; a < s.length; a++)
|
|
71
|
+
for (let i = 0, n = t.length; i < n; i++)
|
|
72
|
+
t.push(t[i].concat(s[a]));
|
|
73
|
+
return t.sort((a, i) => i.length - a.length);
|
|
110
74
|
}
|
|
111
|
-
const
|
|
112
|
-
combine(
|
|
113
|
-
let a,
|
|
114
|
-
for (;
|
|
115
|
-
if (!
|
|
75
|
+
const D = new q({
|
|
76
|
+
combine(s, t) {
|
|
77
|
+
let a, i, n;
|
|
78
|
+
for (; s || t; ) {
|
|
79
|
+
if (!s || t && s.depth >= t.depth ? (n = t, t = t.next) : (n = s, s = s.next), a && a.mode == n.mode && !n.context && !a.context)
|
|
116
80
|
continue;
|
|
117
|
-
let
|
|
118
|
-
a ? a.next =
|
|
81
|
+
let r = new O(n.tags, n.mode, n.context);
|
|
82
|
+
a ? a.next = r : i = r, a = r;
|
|
119
83
|
}
|
|
120
|
-
return
|
|
84
|
+
return i;
|
|
121
85
|
}
|
|
122
86
|
});
|
|
123
|
-
class
|
|
124
|
-
constructor(t, a,
|
|
125
|
-
this.tags = t, this.mode = a, this.context =
|
|
87
|
+
class O {
|
|
88
|
+
constructor(t, a, i, n) {
|
|
89
|
+
this.tags = t, this.mode = a, this.context = i, this.next = n;
|
|
126
90
|
}
|
|
127
91
|
get opaque() {
|
|
128
92
|
return this.mode == 0;
|
|
@@ -137,55 +101,55 @@ class C {
|
|
|
137
101
|
return this.context ? this.context.length : 0;
|
|
138
102
|
}
|
|
139
103
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
104
|
+
O.empty = new O([], 2, null);
|
|
105
|
+
function $(s, t) {
|
|
142
106
|
let a = /* @__PURE__ */ Object.create(null);
|
|
143
|
-
for (let
|
|
144
|
-
if (!Array.isArray(
|
|
145
|
-
a[
|
|
107
|
+
for (let r of s)
|
|
108
|
+
if (!Array.isArray(r.tag))
|
|
109
|
+
a[r.tag.id] = r.class;
|
|
146
110
|
else
|
|
147
|
-
for (let
|
|
148
|
-
a[
|
|
149
|
-
let { scope:
|
|
111
|
+
for (let f of r.tag)
|
|
112
|
+
a[f.id] = r.class;
|
|
113
|
+
let { scope: i, all: n = null } = {};
|
|
150
114
|
return {
|
|
151
|
-
style: (
|
|
152
|
-
let
|
|
153
|
-
for (let
|
|
154
|
-
for (let
|
|
155
|
-
let
|
|
156
|
-
if (
|
|
157
|
-
|
|
115
|
+
style: (r) => {
|
|
116
|
+
let f = n;
|
|
117
|
+
for (let g of r)
|
|
118
|
+
for (let w of g.set) {
|
|
119
|
+
let v = a[w.id];
|
|
120
|
+
if (v) {
|
|
121
|
+
f = f ? f + " " + v : v;
|
|
158
122
|
break;
|
|
159
123
|
}
|
|
160
124
|
}
|
|
161
|
-
return
|
|
125
|
+
return f;
|
|
162
126
|
},
|
|
163
|
-
scope:
|
|
127
|
+
scope: i
|
|
164
128
|
};
|
|
165
129
|
}
|
|
166
|
-
function
|
|
167
|
-
let t =
|
|
168
|
-
for (; t && t.context && !
|
|
130
|
+
function H(s) {
|
|
131
|
+
let t = s.type.prop(D);
|
|
132
|
+
for (; t && t.context && !s.matchContext(t.context); )
|
|
169
133
|
t = t.next;
|
|
170
134
|
return t || null;
|
|
171
135
|
}
|
|
172
|
-
const e =
|
|
136
|
+
const e = l.define, N = e(), p = e(), S = e(p), K = e(p), u = e(), y = e(u), M = e(u), m = e(), h = e(m), c = e(), d = e(), C = e(), k = e(C), x = e(), o = {
|
|
173
137
|
/**
|
|
174
138
|
A comment.
|
|
175
139
|
*/
|
|
176
|
-
comment:
|
|
140
|
+
comment: N,
|
|
177
141
|
/**
|
|
178
142
|
A line [comment](#highlight.tags.comment).
|
|
179
143
|
*/
|
|
180
|
-
lineComment: e(
|
|
144
|
+
lineComment: e(N),
|
|
181
145
|
/**
|
|
182
146
|
A block [comment](#highlight.tags.comment).
|
|
183
147
|
*/
|
|
184
|
-
blockComment: e(
|
|
148
|
+
blockComment: e(N),
|
|
185
149
|
/**
|
|
186
150
|
A documentation [comment](#highlight.tags.comment).
|
|
187
151
|
*/
|
|
188
|
-
docComment: e(
|
|
152
|
+
docComment: e(N),
|
|
189
153
|
/**
|
|
190
154
|
Any kind of identifier.
|
|
191
155
|
*/
|
|
@@ -197,11 +161,11 @@ const e = d.define, x = e(), p = e(), E = e(p), K = e(p), u = e(), v = e(u), I =
|
|
|
197
161
|
/**
|
|
198
162
|
A type [name](#highlight.tags.name).
|
|
199
163
|
*/
|
|
200
|
-
typeName:
|
|
164
|
+
typeName: S,
|
|
201
165
|
/**
|
|
202
166
|
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
203
167
|
*/
|
|
204
|
-
tagName: e(
|
|
168
|
+
tagName: e(S),
|
|
205
169
|
/**
|
|
206
170
|
A property or field [name](#highlight.tags.name).
|
|
207
171
|
*/
|
|
@@ -233,31 +197,31 @@ const e = d.define, x = e(), p = e(), E = e(p), K = e(p), u = e(), v = e(u), I =
|
|
|
233
197
|
/**
|
|
234
198
|
A string [literal](#highlight.tags.literal).
|
|
235
199
|
*/
|
|
236
|
-
string:
|
|
200
|
+
string: y,
|
|
237
201
|
/**
|
|
238
202
|
A documentation [string](#highlight.tags.string).
|
|
239
203
|
*/
|
|
240
|
-
docString: e(
|
|
204
|
+
docString: e(y),
|
|
241
205
|
/**
|
|
242
206
|
A character literal (subtag of [string](#highlight.tags.string)).
|
|
243
207
|
*/
|
|
244
|
-
character: e(
|
|
208
|
+
character: e(y),
|
|
245
209
|
/**
|
|
246
210
|
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
247
211
|
*/
|
|
248
|
-
attributeValue: e(
|
|
212
|
+
attributeValue: e(y),
|
|
249
213
|
/**
|
|
250
214
|
A number [literal](#highlight.tags.literal).
|
|
251
215
|
*/
|
|
252
|
-
number:
|
|
216
|
+
number: M,
|
|
253
217
|
/**
|
|
254
218
|
An integer [number](#highlight.tags.number) literal.
|
|
255
219
|
*/
|
|
256
|
-
integer: e(
|
|
220
|
+
integer: e(M),
|
|
257
221
|
/**
|
|
258
222
|
A floating-point [number](#highlight.tags.number) literal.
|
|
259
223
|
*/
|
|
260
|
-
float: e(
|
|
224
|
+
float: e(M),
|
|
261
225
|
/**
|
|
262
226
|
A boolean [literal](#highlight.tags.literal).
|
|
263
227
|
*/
|
|
@@ -282,118 +246,118 @@ const e = d.define, x = e(), p = e(), E = e(p), K = e(p), u = e(), v = e(u), I =
|
|
|
282
246
|
/**
|
|
283
247
|
A language keyword.
|
|
284
248
|
*/
|
|
285
|
-
keyword:
|
|
249
|
+
keyword: c,
|
|
286
250
|
/**
|
|
287
251
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
288
252
|
object.
|
|
289
253
|
*/
|
|
290
|
-
self: e(
|
|
254
|
+
self: e(c),
|
|
291
255
|
/**
|
|
292
256
|
The [keyword](#highlight.tags.keyword) for null.
|
|
293
257
|
*/
|
|
294
|
-
null: e(
|
|
258
|
+
null: e(c),
|
|
295
259
|
/**
|
|
296
260
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
297
261
|
*/
|
|
298
|
-
atom: e(
|
|
262
|
+
atom: e(c),
|
|
299
263
|
/**
|
|
300
264
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
301
265
|
*/
|
|
302
|
-
unit: e(
|
|
266
|
+
unit: e(c),
|
|
303
267
|
/**
|
|
304
268
|
A modifier [keyword](#highlight.tags.keyword).
|
|
305
269
|
*/
|
|
306
|
-
modifier: e(
|
|
270
|
+
modifier: e(c),
|
|
307
271
|
/**
|
|
308
272
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
309
273
|
*/
|
|
310
|
-
operatorKeyword: e(
|
|
274
|
+
operatorKeyword: e(c),
|
|
311
275
|
/**
|
|
312
276
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
313
277
|
*/
|
|
314
|
-
controlKeyword: e(
|
|
278
|
+
controlKeyword: e(c),
|
|
315
279
|
/**
|
|
316
280
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
317
281
|
*/
|
|
318
|
-
definitionKeyword: e(
|
|
282
|
+
definitionKeyword: e(c),
|
|
319
283
|
/**
|
|
320
284
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
321
285
|
interfacing with modules.
|
|
322
286
|
*/
|
|
323
|
-
moduleKeyword: e(
|
|
287
|
+
moduleKeyword: e(c),
|
|
324
288
|
/**
|
|
325
289
|
An operator.
|
|
326
290
|
*/
|
|
327
|
-
operator:
|
|
291
|
+
operator: d,
|
|
328
292
|
/**
|
|
329
293
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
330
294
|
*/
|
|
331
|
-
derefOperator: e(
|
|
295
|
+
derefOperator: e(d),
|
|
332
296
|
/**
|
|
333
297
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
334
298
|
*/
|
|
335
|
-
arithmeticOperator: e(
|
|
299
|
+
arithmeticOperator: e(d),
|
|
336
300
|
/**
|
|
337
301
|
Logical [operator](#highlight.tags.operator).
|
|
338
302
|
*/
|
|
339
|
-
logicOperator: e(
|
|
303
|
+
logicOperator: e(d),
|
|
340
304
|
/**
|
|
341
305
|
Bit [operator](#highlight.tags.operator).
|
|
342
306
|
*/
|
|
343
|
-
bitwiseOperator: e(
|
|
307
|
+
bitwiseOperator: e(d),
|
|
344
308
|
/**
|
|
345
309
|
Comparison [operator](#highlight.tags.operator).
|
|
346
310
|
*/
|
|
347
|
-
compareOperator: e(
|
|
311
|
+
compareOperator: e(d),
|
|
348
312
|
/**
|
|
349
313
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
350
314
|
*/
|
|
351
|
-
updateOperator: e(
|
|
315
|
+
updateOperator: e(d),
|
|
352
316
|
/**
|
|
353
317
|
[Operator](#highlight.tags.operator) that defines something.
|
|
354
318
|
*/
|
|
355
|
-
definitionOperator: e(
|
|
319
|
+
definitionOperator: e(d),
|
|
356
320
|
/**
|
|
357
321
|
Type-related [operator](#highlight.tags.operator).
|
|
358
322
|
*/
|
|
359
|
-
typeOperator: e(
|
|
323
|
+
typeOperator: e(d),
|
|
360
324
|
/**
|
|
361
325
|
Control-flow [operator](#highlight.tags.operator).
|
|
362
326
|
*/
|
|
363
|
-
controlOperator: e(
|
|
327
|
+
controlOperator: e(d),
|
|
364
328
|
/**
|
|
365
329
|
Program or markup punctuation.
|
|
366
330
|
*/
|
|
367
|
-
punctuation:
|
|
331
|
+
punctuation: C,
|
|
368
332
|
/**
|
|
369
333
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
370
334
|
things.
|
|
371
335
|
*/
|
|
372
|
-
separator: e(
|
|
336
|
+
separator: e(C),
|
|
373
337
|
/**
|
|
374
338
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
375
339
|
*/
|
|
376
|
-
bracket:
|
|
340
|
+
bracket: k,
|
|
377
341
|
/**
|
|
378
342
|
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
379
343
|
tokens).
|
|
380
344
|
*/
|
|
381
|
-
angleBracket: e(
|
|
345
|
+
angleBracket: e(k),
|
|
382
346
|
/**
|
|
383
347
|
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
384
348
|
tokens).
|
|
385
349
|
*/
|
|
386
|
-
squareBracket: e(
|
|
350
|
+
squareBracket: e(k),
|
|
387
351
|
/**
|
|
388
352
|
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
389
353
|
[bracket](#highlight.tags.bracket).
|
|
390
354
|
*/
|
|
391
|
-
paren: e(
|
|
355
|
+
paren: e(k),
|
|
392
356
|
/**
|
|
393
357
|
Braces (usually `{` and `}` tokens). Subtag of
|
|
394
358
|
[bracket](#highlight.tags.bracket).
|
|
395
359
|
*/
|
|
396
|
-
brace: e(
|
|
360
|
+
brace: e(k),
|
|
397
361
|
/**
|
|
398
362
|
Content, for example plain text in XML or markup documents.
|
|
399
363
|
*/
|
|
@@ -401,31 +365,31 @@ const e = d.define, x = e(), p = e(), E = e(p), K = e(p), u = e(), v = e(u), I =
|
|
|
401
365
|
/**
|
|
402
366
|
[Content](#highlight.tags.content) that represents a heading.
|
|
403
367
|
*/
|
|
404
|
-
heading:
|
|
368
|
+
heading: h,
|
|
405
369
|
/**
|
|
406
370
|
A level 1 [heading](#highlight.tags.heading).
|
|
407
371
|
*/
|
|
408
|
-
heading1: e(
|
|
372
|
+
heading1: e(h),
|
|
409
373
|
/**
|
|
410
374
|
A level 2 [heading](#highlight.tags.heading).
|
|
411
375
|
*/
|
|
412
|
-
heading2: e(
|
|
376
|
+
heading2: e(h),
|
|
413
377
|
/**
|
|
414
378
|
A level 3 [heading](#highlight.tags.heading).
|
|
415
379
|
*/
|
|
416
|
-
heading3: e(
|
|
380
|
+
heading3: e(h),
|
|
417
381
|
/**
|
|
418
382
|
A level 4 [heading](#highlight.tags.heading).
|
|
419
383
|
*/
|
|
420
|
-
heading4: e(
|
|
384
|
+
heading4: e(h),
|
|
421
385
|
/**
|
|
422
386
|
A level 5 [heading](#highlight.tags.heading).
|
|
423
387
|
*/
|
|
424
|
-
heading5: e(
|
|
388
|
+
heading5: e(h),
|
|
425
389
|
/**
|
|
426
390
|
A level 6 [heading](#highlight.tags.heading).
|
|
427
391
|
*/
|
|
428
|
-
heading6: e(
|
|
392
|
+
heading6: e(h),
|
|
429
393
|
/**
|
|
430
394
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
431
395
|
*/
|
|
@@ -479,52 +443,52 @@ const e = d.define, x = e(), p = e(), E = e(p), K = e(p), u = e(), v = e(u), I =
|
|
|
479
443
|
/**
|
|
480
444
|
Metadata or meta-instruction.
|
|
481
445
|
*/
|
|
482
|
-
meta:
|
|
446
|
+
meta: x,
|
|
483
447
|
/**
|
|
484
448
|
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
485
449
|
document.
|
|
486
450
|
*/
|
|
487
|
-
documentMeta: e(
|
|
451
|
+
documentMeta: e(x),
|
|
488
452
|
/**
|
|
489
453
|
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
490
454
|
attributes to a given syntactic element.
|
|
491
455
|
*/
|
|
492
|
-
annotation: e(
|
|
456
|
+
annotation: e(x),
|
|
493
457
|
/**
|
|
494
458
|
Processing instruction or preprocessor directive. Subtag of
|
|
495
459
|
[meta](#highlight.tags.meta).
|
|
496
460
|
*/
|
|
497
|
-
processingInstruction: e(
|
|
461
|
+
processingInstruction: e(x),
|
|
498
462
|
/**
|
|
499
463
|
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
500
464
|
given element is being defined. Expected to be used with the
|
|
501
465
|
various [name](#highlight.tags.name) tags.
|
|
502
466
|
*/
|
|
503
|
-
definition:
|
|
467
|
+
definition: l.defineModifier("definition"),
|
|
504
468
|
/**
|
|
505
469
|
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
506
470
|
something is constant. Mostly expected to be used with
|
|
507
471
|
[variable names](#highlight.tags.variableName).
|
|
508
472
|
*/
|
|
509
|
-
constant:
|
|
473
|
+
constant: l.defineModifier("constant"),
|
|
510
474
|
/**
|
|
511
475
|
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
512
476
|
a [variable](#highlight.tags.variableName) or [property
|
|
513
477
|
name](#highlight.tags.propertyName) is being called or defined
|
|
514
478
|
as a function.
|
|
515
479
|
*/
|
|
516
|
-
function:
|
|
480
|
+
function: l.defineModifier("function"),
|
|
517
481
|
/**
|
|
518
482
|
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
519
483
|
[names](#highlight.tags.name) to indicate that they belong to
|
|
520
484
|
the language's standard environment.
|
|
521
485
|
*/
|
|
522
|
-
standard:
|
|
486
|
+
standard: l.defineModifier("standard"),
|
|
523
487
|
/**
|
|
524
488
|
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
525
489
|
[names](#highlight.tags.name) is local to some scope.
|
|
526
490
|
*/
|
|
527
|
-
local:
|
|
491
|
+
local: l.defineModifier("local"),
|
|
528
492
|
/**
|
|
529
493
|
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
530
494
|
can be used to tag language-specific alternative variants of
|
|
@@ -533,13 +497,13 @@ const e = d.define, x = e(), p = e(), E = e(p), K = e(p), u = e(), v = e(u), I =
|
|
|
533
497
|
[variable name](#highlight.tags.variableName) tags, since those
|
|
534
498
|
come up a lot.
|
|
535
499
|
*/
|
|
536
|
-
special:
|
|
500
|
+
special: l.defineModifier("special")
|
|
537
501
|
};
|
|
538
|
-
for (let
|
|
539
|
-
let t = o[
|
|
540
|
-
t instanceof
|
|
502
|
+
for (let s in o) {
|
|
503
|
+
let t = o[s];
|
|
504
|
+
t instanceof l && (t.name = s);
|
|
541
505
|
}
|
|
542
|
-
|
|
506
|
+
$([
|
|
543
507
|
{ tag: o.link, class: "tok-link" },
|
|
544
508
|
{ tag: o.heading, class: "tok-heading" },
|
|
545
509
|
{ tag: o.emphasis, class: "tok-emphasis" },
|
|
@@ -572,9 +536,8 @@ H([
|
|
|
572
536
|
{ tag: o.punctuation, class: "tok-punctuation" }
|
|
573
537
|
]);
|
|
574
538
|
export {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
H as tagHighlighter,
|
|
539
|
+
l as Tag,
|
|
540
|
+
H as getStyleTags,
|
|
541
|
+
$ as tagHighlighter,
|
|
579
542
|
o as tags
|
|
580
543
|
};
|
package/dist/utils/generics.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FunctionDefinitionView } from '../components/d-flow-function/DFlowFunction.view';
|
|
2
2
|
import { DFlowDataTypeReactiveService } from '../components/d-flow-data-type/DFlowDataType.service';
|
|
3
3
|
import { DataType, DataTypeIdentifier, DataTypeRule, DataTypeRulesConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { DFlowFunctionReactiveService } from '../components/d-flow-function';
|
|
4
5
|
type GenericMappingResult = Record<string, DataTypeIdentifier>;
|
|
5
6
|
type GenericReplacement = DataTypeIdentifier | GenericMapper;
|
|
6
7
|
export type GenericMap = Map<string, GenericReplacement>;
|
|
@@ -11,7 +12,7 @@ export declare const resolveGenericKeyMappings: (parameterType: DataTypeIdentifi
|
|
|
11
12
|
export declare const replaceGenericKeysInType: (type: DataTypeIdentifier, genericMap: GenericMap) => DataTypeIdentifier;
|
|
12
13
|
export declare const resolveAllGenericKeysInDataTypeObject: (genericObj: DataType, concreteObj: DataType, genericKeys: string[]) => Record<string, GenericReplacement | undefined>;
|
|
13
14
|
export declare const replaceGenericKeysInDataTypeObject: (dataType: DataType, genericMap: GenericMap) => DataType;
|
|
14
|
-
export declare const resolveGenericKeys: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, flow?: Flow) => GenericMap;
|
|
15
|
+
export declare const resolveGenericKeys: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, functionService: DFlowFunctionReactiveService, flow?: Flow) => GenericMap;
|
|
15
16
|
export declare function isMatchingDataTypeObject(source: DataType, target: DataType): boolean;
|
|
16
17
|
export declare function isMatchingType(source: DataTypeIdentifier, target: DataTypeIdentifier): boolean;
|
|
17
18
|
export declare const resolveType: (type: DataTypeIdentifier, service: DFlowDataTypeReactiveService) => DataTypeIdentifier;
|