@code0-tech/pictor 0.0.0-mvp.29 → 0.0.0-mvp.30
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/components/breadcrumb/Breadcrumb.js +12 -12
- package/dist/components/button-group/ButtonGroup.js +12 -12
- package/dist/components/d-flow/DFlow.edges.hook.js +57 -54
- package/dist/components/d-flow/DFlow.js +304 -268
- package/dist/components/d-flow/DFlow.nodes.hook.js +60 -59
- package/dist/components/d-flow/DFlow.service.d.ts +3 -2
- package/dist/components/d-flow/DFlow.service.js +62 -47
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- package/dist/components/d-flow/DFlowEdge.js +34 -34
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +17 -14
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +7 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +11 -6
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +77 -112
- package/dist/components/d-flow-file/DFlowTabTrigger.js +38 -49
- package/dist/components/d-flow-file/DFlowTabs.js +26 -27
- package/dist/components/d-flow-folder/DFlowFolder.js +170 -143
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +18 -11
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +1 -0
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +4 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +1 -1
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +14 -11
- package/dist/components/d-flow-function/DFlowFunction.view.js +19 -12
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +72 -75
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +27 -32
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +17 -10
- package/dist/components/d-flow-input/DFlowInputDataType.js +38 -33
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.js +1 -1
- package/dist/components/d-flow-panel/DFlowMiniMap.js +1 -1
- package/dist/components/d-flow-panel/DFlowPanelControl.js +34 -32
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -18
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +19 -156
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +47 -58
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +5 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +6 -6
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
- package/dist/components/d-flow-type/DFlowType.view.d.ts +5 -5
- package/dist/components/d-flow-type/DFlowType.view.js +22 -12
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +1 -1
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +39 -43
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +22 -21
- package/dist/components/d-user/DUserInput.js +23 -21
- package/dist/components/file-tabs/FileTabs.service.d.ts +0 -1
- package/dist/components/file-tabs/FileTabs.service.js +49 -53
- package/dist/components/form/EmailInput.js +9 -9
- package/dist/components/form/Input.d.ts +2 -1
- package/dist/components/form/Input.js +294 -397
- package/dist/components/form/Input.syntax.hook.d.ts +1 -18
- package/dist/components/form/Input.syntax.hook.js +7 -73
- package/dist/components/form/Input.utils.d.ts +1 -2
- package/dist/components/form/Input.utils.js +26 -21
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- package/dist/components/form/InputSuggestion.d.ts +2 -2
- package/dist/components/form/InputSuggestion.js +169 -107
- package/dist/components/form/PasswordInput.js +8 -8
- package/dist/components/form/TextInput.js +11 -11
- package/dist/components/form/useForm.d.ts +1 -0
- package/dist/components/form/useForm.js +45 -60
- package/dist/components/menu/Menu.js +4 -4
- package/dist/index.js +155 -154
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +30 -30
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +8 -8
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- package/dist/utils/generics.d.ts +2 -0
- package/dist/utils/generics.js +93 -80
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/package.json +10 -8
- package/dist/components/form/Input.selection.hook.d.ts +0 -17
- package/dist/components/form/Input.selection.hook.js +0 -78
- package/dist/components/form/InputSyntax.d.ts +0 -19
- package/dist/components/form/InputSyntax.js +0 -52
- package/dist/components/form/inputSyntaxMapping.d.ts +0 -3
- package/dist/components/form/inputSyntaxMapping.js +0 -42
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index2.js";
|
|
2
|
+
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
|
+
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
|
+
var r;
|
|
5
|
+
function p() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
p as __require
|
|
10
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { __exports as a } from "../../../_virtual/react-contenteditable2.js";
|
|
2
|
+
import C from "react";
|
|
3
|
+
import { __require as w } from "../../fast-deep-equal/index.js";
|
|
4
|
+
import { __require as E } from "../../prop-types/index.js";
|
|
5
|
+
var h;
|
|
6
|
+
function N() {
|
|
7
|
+
if (h) return a;
|
|
8
|
+
h = 1;
|
|
9
|
+
var d = a && a.__extends || /* @__PURE__ */ (function() {
|
|
10
|
+
var t = function(n, e) {
|
|
11
|
+
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
|
|
12
|
+
r.__proto__ = o;
|
|
13
|
+
} || function(r, o) {
|
|
14
|
+
for (var l in o) Object.prototype.hasOwnProperty.call(o, l) && (r[l] = o[l]);
|
|
15
|
+
}, t(n, e);
|
|
16
|
+
};
|
|
17
|
+
return function(n, e) {
|
|
18
|
+
if (typeof e != "function" && e !== null)
|
|
19
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
20
|
+
t(n, e);
|
|
21
|
+
function r() {
|
|
22
|
+
this.constructor = n;
|
|
23
|
+
}
|
|
24
|
+
n.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
25
|
+
};
|
|
26
|
+
})(), p = a && a.__assign || function() {
|
|
27
|
+
return p = Object.assign || function(t) {
|
|
28
|
+
for (var n, e = 1, r = arguments.length; e < r; e++) {
|
|
29
|
+
n = arguments[e];
|
|
30
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}, p.apply(this, arguments);
|
|
34
|
+
}, m = a && a.__createBinding || (Object.create ? (function(t, n, e, r) {
|
|
35
|
+
r === void 0 && (r = e);
|
|
36
|
+
var o = Object.getOwnPropertyDescriptor(n, e);
|
|
37
|
+
(!o || ("get" in o ? !n.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
|
|
38
|
+
return n[e];
|
|
39
|
+
} }), Object.defineProperty(t, r, o);
|
|
40
|
+
}) : (function(t, n, e, r) {
|
|
41
|
+
r === void 0 && (r = e), t[r] = n[e];
|
|
42
|
+
})), g = a && a.__setModuleDefault || (Object.create ? (function(t, n) {
|
|
43
|
+
Object.defineProperty(t, "default", { enumerable: !0, value: n });
|
|
44
|
+
}) : function(t, n) {
|
|
45
|
+
t.default = n;
|
|
46
|
+
}), s = a && a.__importStar || function(t) {
|
|
47
|
+
if (t && t.__esModule) return t;
|
|
48
|
+
var n = {};
|
|
49
|
+
if (t != null) for (var e in t) e !== "default" && Object.prototype.hasOwnProperty.call(t, e) && m(n, t, e);
|
|
50
|
+
return g(n, t), n;
|
|
51
|
+
}, y = a && a.__rest || function(t, n) {
|
|
52
|
+
var e = {};
|
|
53
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
|
|
54
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
55
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
|
56
|
+
n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
|
|
57
|
+
return e;
|
|
58
|
+
}, v = a && a.__importDefault || function(t) {
|
|
59
|
+
return t && t.__esModule ? t : { default: t };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
62
|
+
var f = s(C), b = v(w()), i = s(/* @__PURE__ */ E());
|
|
63
|
+
function c(t) {
|
|
64
|
+
return t && t.replace(/ |\u202F|\u00A0/g, " ").replace(/<br \/>/g, "<br>");
|
|
65
|
+
}
|
|
66
|
+
function O(t) {
|
|
67
|
+
var n = document.createTextNode("");
|
|
68
|
+
t.appendChild(n);
|
|
69
|
+
var e = document.activeElement === t;
|
|
70
|
+
if (n !== null && n.nodeValue !== null && e) {
|
|
71
|
+
var r = window.getSelection();
|
|
72
|
+
if (r !== null) {
|
|
73
|
+
var o = document.createRange();
|
|
74
|
+
o.setStart(n, n.nodeValue.length), o.collapse(!0), r.removeAllRanges(), r.addRange(o);
|
|
75
|
+
}
|
|
76
|
+
t instanceof HTMLElement && t.focus();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
var R = (
|
|
80
|
+
/** @class */
|
|
81
|
+
(function(t) {
|
|
82
|
+
d(n, t);
|
|
83
|
+
function n() {
|
|
84
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
85
|
+
return e.lastHtml = e.props.html, e.el = typeof e.props.innerRef == "function" ? { current: null } : f.createRef(), e.getEl = function() {
|
|
86
|
+
return (e.props.innerRef && typeof e.props.innerRef != "function" ? e.props.innerRef : e.el).current;
|
|
87
|
+
}, e.emitChange = function(r) {
|
|
88
|
+
var o = e.getEl();
|
|
89
|
+
if (o) {
|
|
90
|
+
var l = o.innerHTML;
|
|
91
|
+
if (e.props.onChange && l !== e.lastHtml) {
|
|
92
|
+
var u = Object.assign({}, r, {
|
|
93
|
+
target: {
|
|
94
|
+
value: l
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
e.props.onChange(u);
|
|
98
|
+
}
|
|
99
|
+
e.lastHtml = l;
|
|
100
|
+
}
|
|
101
|
+
}, e;
|
|
102
|
+
}
|
|
103
|
+
return n.prototype.render = function() {
|
|
104
|
+
var e = this, r = this.props, o = r.tagName, l = r.html, u = r.innerRef, j = y(r, ["tagName", "html", "innerRef"]);
|
|
105
|
+
return f.createElement(o || "div", p(p({}, j), { ref: typeof u == "function" ? function(_) {
|
|
106
|
+
u(_), e.el.current = _;
|
|
107
|
+
} : u || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: l } }), this.props.children);
|
|
108
|
+
}, n.prototype.shouldComponentUpdate = function(e) {
|
|
109
|
+
var r = this.props, o = this.getEl();
|
|
110
|
+
return !o || c(e.html) !== c(o.innerHTML) ? !0 : r.disabled !== e.disabled || r.tagName !== e.tagName || r.className !== e.className || r.innerRef !== e.innerRef || r.placeholder !== e.placeholder || !(0, b.default)(r.style, e.style);
|
|
111
|
+
}, n.prototype.componentDidUpdate = function() {
|
|
112
|
+
var e = this.getEl();
|
|
113
|
+
e && (this.props.html !== e.innerHTML && (e.innerHTML = this.props.html), this.lastHtml = this.props.html, O(e));
|
|
114
|
+
}, n.propTypes = {
|
|
115
|
+
html: i.string.isRequired,
|
|
116
|
+
onChange: i.func,
|
|
117
|
+
disabled: i.bool,
|
|
118
|
+
tagName: i.string,
|
|
119
|
+
className: i.string,
|
|
120
|
+
style: i.object,
|
|
121
|
+
innerRef: i.oneOfType([
|
|
122
|
+
i.object,
|
|
123
|
+
i.func
|
|
124
|
+
])
|
|
125
|
+
}, n;
|
|
126
|
+
})(f.Component)
|
|
127
|
+
);
|
|
128
|
+
return a.default = R, a;
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
N as __require
|
|
132
|
+
};
|