@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,69 +0,0 @@
|
|
|
1
|
-
let a = [], d = [];
|
|
2
|
-
(() => {
|
|
3
|
-
let t = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,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,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
|
4
|
-
for (let e = 0, n = 0; e < t.length; e++)
|
|
5
|
-
(e % 2 ? d : a).push(n = n + t[e]);
|
|
6
|
-
})();
|
|
7
|
-
function h(t) {
|
|
8
|
-
if (t < 768) return !1;
|
|
9
|
-
for (let e = 0, n = a.length; ; ) {
|
|
10
|
-
let r = e + n >> 1;
|
|
11
|
-
if (t < a[r]) n = r;
|
|
12
|
-
else if (t >= d[r]) e = r + 1;
|
|
13
|
-
else return !0;
|
|
14
|
-
if (e == n) return !1;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function c(t) {
|
|
18
|
-
return t >= 127462 && t <= 127487;
|
|
19
|
-
}
|
|
20
|
-
const g = 8205;
|
|
21
|
-
function w(t, e, n = !0, r = !0) {
|
|
22
|
-
return (n ? b : k)(t, e, r);
|
|
23
|
-
}
|
|
24
|
-
function b(t, e, n) {
|
|
25
|
-
if (e == t.length) return e;
|
|
26
|
-
e && o(t.charCodeAt(e)) && m(t.charCodeAt(e - 1)) && e--;
|
|
27
|
-
let r = f(t, e);
|
|
28
|
-
for (e += x(r); e < t.length; ) {
|
|
29
|
-
let i = f(t, e);
|
|
30
|
-
if (r == g || i == g || n && h(i))
|
|
31
|
-
e += x(i), r = i;
|
|
32
|
-
else if (c(i)) {
|
|
33
|
-
let l = 0, u = e - 2;
|
|
34
|
-
for (; u >= 0 && c(f(t, u)); )
|
|
35
|
-
l++, u -= 2;
|
|
36
|
-
if (l % 2 == 0) break;
|
|
37
|
-
e += 2;
|
|
38
|
-
} else
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
return e;
|
|
42
|
-
}
|
|
43
|
-
function k(t, e, n) {
|
|
44
|
-
for (; e > 0; ) {
|
|
45
|
-
let r = b(t, e - 2, n);
|
|
46
|
-
if (r < e) return r;
|
|
47
|
-
e--;
|
|
48
|
-
}
|
|
49
|
-
return 0;
|
|
50
|
-
}
|
|
51
|
-
function f(t, e) {
|
|
52
|
-
let n = t.charCodeAt(e);
|
|
53
|
-
if (!m(n) || e + 1 == t.length) return n;
|
|
54
|
-
let r = t.charCodeAt(e + 1);
|
|
55
|
-
return o(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n;
|
|
56
|
-
}
|
|
57
|
-
function o(t) {
|
|
58
|
-
return t >= 56320 && t < 57344;
|
|
59
|
-
}
|
|
60
|
-
function m(t) {
|
|
61
|
-
return t >= 55296 && t < 56320;
|
|
62
|
-
}
|
|
63
|
-
function x(t) {
|
|
64
|
-
return t < 65536 ? 1 : 2;
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
w as findClusterBreak,
|
|
68
|
-
h as isExtendingChar
|
|
69
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
function s() {
|
|
2
|
-
var r = arguments[0];
|
|
3
|
-
typeof r == "string" && (r = document.createElement(r));
|
|
4
|
-
var e = 1, t = arguments[1];
|
|
5
|
-
if (t && typeof t == "object" && t.nodeType == null && !Array.isArray(t)) {
|
|
6
|
-
for (var n in t) if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
7
|
-
var o = t[n];
|
|
8
|
-
typeof o == "string" ? r.setAttribute(n, o) : o != null && (r[n] = o);
|
|
9
|
-
}
|
|
10
|
-
e++;
|
|
11
|
-
}
|
|
12
|
-
for (; e < arguments.length; e++) f(r, arguments[e]);
|
|
13
|
-
return r;
|
|
14
|
-
}
|
|
15
|
-
function f(r, e) {
|
|
16
|
-
if (typeof e == "string")
|
|
17
|
-
r.appendChild(document.createTextNode(e));
|
|
18
|
-
else if (e != null) if (e.nodeType != null)
|
|
19
|
-
r.appendChild(e);
|
|
20
|
-
else if (Array.isArray(e))
|
|
21
|
-
for (var t = 0; t < e.length; t++) f(r, e[t]);
|
|
22
|
-
else
|
|
23
|
-
throw new RangeError("Unsupported child node: " + e);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
s as default
|
|
27
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
const g = typeof Symbol > "u" ? "__ͼ" : /* @__PURE__ */ Symbol.for("ͼ"), S = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : /* @__PURE__ */ Symbol("styleSet"), m = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
2
|
-
class C {
|
|
3
|
-
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
4
|
-
// Create a style module from the given spec.
|
|
5
|
-
//
|
|
6
|
-
// When `finish` is given, it is called on regular (non-`@`)
|
|
7
|
-
// selectors (after `&` expansion) to compute the final selector.
|
|
8
|
-
constructor(e, s) {
|
|
9
|
-
this.rules = [];
|
|
10
|
-
let { finish: i } = s || {};
|
|
11
|
-
function n(t) {
|
|
12
|
-
return /^@/.test(t) ? [t] : t.split(/,\s*/);
|
|
13
|
-
}
|
|
14
|
-
function l(t, a, h, r) {
|
|
15
|
-
let p = [], f = /^@(\w+)\b/.exec(t[0]), c = f && f[1] == "keyframes";
|
|
16
|
-
if (f && a == null) return h.push(t[0] + ";");
|
|
17
|
-
for (let o in a) {
|
|
18
|
-
let u = a[o];
|
|
19
|
-
if (/&/.test(o))
|
|
20
|
-
l(
|
|
21
|
-
o.split(/,\s*/).map((d) => t.map((y) => d.replace(/&/, y))).reduce((d, y) => d.concat(y)),
|
|
22
|
-
u,
|
|
23
|
-
h
|
|
24
|
-
);
|
|
25
|
-
else if (u && typeof u == "object") {
|
|
26
|
-
if (!f) throw new RangeError("The value of a property (" + o + ") should be a primitive value.");
|
|
27
|
-
l(n(o), u, p, c);
|
|
28
|
-
} else u != null && p.push(o.replace(/_.*/, "").replace(/[A-Z]/g, (d) => "-" + d.toLowerCase()) + ": " + u + ";");
|
|
29
|
-
}
|
|
30
|
-
(p.length || c) && h.push((i && !f && !r ? t.map(i) : t).join(", ") + " {" + p.join(" ") + "}");
|
|
31
|
-
}
|
|
32
|
-
for (let t in e) l(n(t), e[t], this.rules);
|
|
33
|
-
}
|
|
34
|
-
// :: () → string
|
|
35
|
-
// Returns a string containing the module's CSS rules.
|
|
36
|
-
getRules() {
|
|
37
|
-
return this.rules.join(`
|
|
38
|
-
`);
|
|
39
|
-
}
|
|
40
|
-
// :: () → string
|
|
41
|
-
// Generate a new unique CSS class name.
|
|
42
|
-
static newName() {
|
|
43
|
-
let e = m[g] || 1;
|
|
44
|
-
return m[g] = e + 1, "ͼ" + e.toString(36);
|
|
45
|
-
}
|
|
46
|
-
// :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
|
|
47
|
-
//
|
|
48
|
-
// Mount the given set of modules in the given DOM root, which ensures
|
|
49
|
-
// that the CSS rules defined by the module are available in that
|
|
50
|
-
// context.
|
|
51
|
-
//
|
|
52
|
-
// Rules are only added to the document once per root.
|
|
53
|
-
//
|
|
54
|
-
// Rule order will follow the order of the modules, so that rules from
|
|
55
|
-
// modules later in the array take precedence of those from earlier
|
|
56
|
-
// modules. If you call this function multiple times for the same root
|
|
57
|
-
// in a way that changes the order of already mounted modules, the old
|
|
58
|
-
// order will be changed.
|
|
59
|
-
//
|
|
60
|
-
// If a Content Security Policy nonce is provided, it is added to
|
|
61
|
-
// the `<style>` tag generated by the library.
|
|
62
|
-
static mount(e, s, i) {
|
|
63
|
-
let n = e[S], l = i && i.nonce;
|
|
64
|
-
n ? l && n.setNonce(l) : n = new b(e, l), n.mount(Array.isArray(s) ? s : [s], e);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
let w = /* @__PURE__ */ new Map();
|
|
68
|
-
class b {
|
|
69
|
-
constructor(e, s) {
|
|
70
|
-
let i = e.ownerDocument || e, n = i.defaultView;
|
|
71
|
-
if (!e.head && e.adoptedStyleSheets && n.CSSStyleSheet) {
|
|
72
|
-
let l = w.get(i);
|
|
73
|
-
if (l) return e[S] = l;
|
|
74
|
-
this.sheet = new n.CSSStyleSheet(), w.set(i, this);
|
|
75
|
-
} else
|
|
76
|
-
this.styleTag = i.createElement("style"), s && this.styleTag.setAttribute("nonce", s);
|
|
77
|
-
this.modules = [], e[S] = this;
|
|
78
|
-
}
|
|
79
|
-
mount(e, s) {
|
|
80
|
-
let i = this.sheet, n = 0, l = 0;
|
|
81
|
-
for (let t = 0; t < e.length; t++) {
|
|
82
|
-
let a = e[t], h = this.modules.indexOf(a);
|
|
83
|
-
if (h < l && h > -1 && (this.modules.splice(h, 1), l--, h = -1), h == -1) {
|
|
84
|
-
if (this.modules.splice(l++, 0, a), i) for (let r = 0; r < a.rules.length; r++)
|
|
85
|
-
i.insertRule(a.rules[r], n++);
|
|
86
|
-
} else {
|
|
87
|
-
for (; l < h; ) n += this.modules[l++].rules.length;
|
|
88
|
-
n += a.rules.length, l++;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (i)
|
|
92
|
-
s.adoptedStyleSheets.indexOf(this.sheet) < 0 && (s.adoptedStyleSheets = [this.sheet, ...s.adoptedStyleSheets]);
|
|
93
|
-
else {
|
|
94
|
-
let t = "";
|
|
95
|
-
for (let h = 0; h < this.modules.length; h++)
|
|
96
|
-
t += this.modules[h].getRules() + `
|
|
97
|
-
`;
|
|
98
|
-
this.styleTag.textContent = t;
|
|
99
|
-
let a = s.head || s;
|
|
100
|
-
this.styleTag.parentNode != a && a.insertBefore(this.styleTag, a.firstChild);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
setNonce(e) {
|
|
104
|
-
this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
export {
|
|
108
|
-
C as StyleModule
|
|
109
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var o = {
|
|
2
|
-
8: "Backspace",
|
|
3
|
-
9: "Tab",
|
|
4
|
-
10: "Enter",
|
|
5
|
-
12: "NumLock",
|
|
6
|
-
13: "Enter",
|
|
7
|
-
16: "Shift",
|
|
8
|
-
17: "Control",
|
|
9
|
-
18: "Alt",
|
|
10
|
-
20: "CapsLock",
|
|
11
|
-
27: "Escape",
|
|
12
|
-
32: " ",
|
|
13
|
-
33: "PageUp",
|
|
14
|
-
34: "PageDown",
|
|
15
|
-
35: "End",
|
|
16
|
-
36: "Home",
|
|
17
|
-
37: "ArrowLeft",
|
|
18
|
-
38: "ArrowUp",
|
|
19
|
-
39: "ArrowRight",
|
|
20
|
-
40: "ArrowDown",
|
|
21
|
-
44: "PrintScreen",
|
|
22
|
-
45: "Insert",
|
|
23
|
-
46: "Delete",
|
|
24
|
-
59: ";",
|
|
25
|
-
61: "=",
|
|
26
|
-
91: "Meta",
|
|
27
|
-
92: "Meta",
|
|
28
|
-
106: "*",
|
|
29
|
-
107: "+",
|
|
30
|
-
108: ",",
|
|
31
|
-
109: "-",
|
|
32
|
-
110: ".",
|
|
33
|
-
111: "/",
|
|
34
|
-
144: "NumLock",
|
|
35
|
-
145: "ScrollLock",
|
|
36
|
-
160: "Shift",
|
|
37
|
-
161: "Shift",
|
|
38
|
-
162: "Control",
|
|
39
|
-
163: "Control",
|
|
40
|
-
164: "Alt",
|
|
41
|
-
165: "Alt",
|
|
42
|
-
173: "-",
|
|
43
|
-
186: ";",
|
|
44
|
-
187: "=",
|
|
45
|
-
188: ",",
|
|
46
|
-
189: "-",
|
|
47
|
-
190: ".",
|
|
48
|
-
191: "/",
|
|
49
|
-
192: "`",
|
|
50
|
-
219: "[",
|
|
51
|
-
220: "\\",
|
|
52
|
-
221: "]",
|
|
53
|
-
222: "'"
|
|
54
|
-
}, a = {
|
|
55
|
-
48: ")",
|
|
56
|
-
49: "!",
|
|
57
|
-
50: "@",
|
|
58
|
-
51: "#",
|
|
59
|
-
52: "$",
|
|
60
|
-
53: "%",
|
|
61
|
-
54: "^",
|
|
62
|
-
55: "&",
|
|
63
|
-
56: "*",
|
|
64
|
-
57: "(",
|
|
65
|
-
59: ":",
|
|
66
|
-
61: "+",
|
|
67
|
-
173: "_",
|
|
68
|
-
186: ":",
|
|
69
|
-
187: "+",
|
|
70
|
-
188: "<",
|
|
71
|
-
189: "_",
|
|
72
|
-
190: ">",
|
|
73
|
-
191: "?",
|
|
74
|
-
192: "~",
|
|
75
|
-
219: "{",
|
|
76
|
-
220: "|",
|
|
77
|
-
221: "}",
|
|
78
|
-
222: '"'
|
|
79
|
-
};
|
|
80
|
-
for (var r = 0; r < 10; r++) o[48 + r] = o[96 + r] = String(r);
|
|
81
|
-
for (var r = 1; r <= 24; r++) o[r + 111] = "F" + r;
|
|
82
|
-
for (var r = 65; r <= 90; r++)
|
|
83
|
-
o[r] = String.fromCharCode(r + 32), a[r] = String.fromCharCode(r);
|
|
84
|
-
for (var t in o) a.hasOwnProperty(t) || (a[t] = o[t]);
|
|
85
|
-
export {
|
|
86
|
-
o as base,
|
|
87
|
-
a as shift
|
|
88
|
-
};
|