@babsey/code-graph 0.0.9 → 0.0.11

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.
Files changed (46) hide show
  1. package/dist/code-graph.js +263 -257
  2. package/dist/code-graph.umd.cjs +1 -1
  3. package/dist/{lib/index.d.ts → index.d.ts} +1 -0
  4. package/dist/interfaceTypes/default.d.ts +8 -0
  5. package/dist/interfaceTypes/index.d.ts +1 -0
  6. package/package.json +2 -2
  7. /package/dist/{lib/code.d.ts → code.d.ts} +0 -0
  8. /package/dist/{lib/codeNode → codeNode}/codeNode.d.ts +0 -0
  9. /package/dist/{lib/codeNode → codeNode}/defineCodeNode.d.ts +0 -0
  10. /package/dist/{lib/codeNode → codeNode}/dynamicCodeNode.d.ts +0 -0
  11. /package/dist/{lib/codeNode → codeNode}/index.d.ts +0 -0
  12. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/baseNumericInterface.d.ts +0 -0
  13. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/button/buttonInterface.d.ts +0 -0
  14. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/checkbox/checkboxInterface.d.ts +0 -0
  15. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/codeInput/codeInputInterface.d.ts +0 -0
  16. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/codeNode/CodeNodeInterface.vue.d.ts +0 -0
  17. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/codeNode/codeNodeInterface.d.ts +0 -0
  18. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/codeOutput/codeOutputInterface.d.ts +0 -0
  19. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/index.d.ts +0 -0
  20. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/integer/integerInterface.d.ts +0 -0
  21. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/number/numberInterface.d.ts +0 -0
  22. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/select/selectInterface.d.ts +0 -0
  23. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/slider/sliderInterface.d.ts +0 -0
  24. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/text/textInterface.d.ts +0 -0
  25. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/textInput/textInputInterface.d.ts +0 -0
  26. /package/dist/{lib/codeNodeInterfaces → codeNodeInterfaces}/textareaInput/textareaInputInterface.d.ts +0 -0
  27. /package/dist/{lib/components → components}/CodeGraphEditor.vue.d.ts +0 -0
  28. /package/dist/{lib/components → components}/index.d.ts +0 -0
  29. /package/dist/{lib/components → components}/node/CodeGraphNode.vue.d.ts +0 -0
  30. /package/dist/{lib/components → components}/nodeInterface/CodeGraphNodeInterface.vue.d.ts +0 -0
  31. /package/dist/{lib/components → components}/nodePalette/CodeNodePalette.vue.d.ts +0 -0
  32. /package/dist/{lib/components → components}/nodePalette/PaletteEntry.vue.d.ts +0 -0
  33. /package/dist/{lib/components → components}/sidebar/Checkbox.vue.d.ts +0 -0
  34. /package/dist/{lib/components → components}/sidebar/CodeGraphSidebar.vue.d.ts +0 -0
  35. /package/dist/{lib/icons → icons}/LayoutSidebarLeftCollapse.vue.d.ts +0 -0
  36. /package/dist/{lib/icons → icons}/LayoutSidebarLeftExpand.vue.d.ts +0 -0
  37. /package/dist/{lib/icons → icons}/LayoutSidebarRight.vue.d.ts +0 -0
  38. /package/dist/{lib/icons → icons}/LayoutSidebarRightCollapse.vue.d.ts +0 -0
  39. /package/dist/{lib/icons → icons}/LayoutSidebarRightExpand.vue.d.ts +0 -0
  40. /package/dist/{lib/icons → icons}/Schema.vue.d.ts +0 -0
  41. /package/dist/{lib/icons → icons}/SchemaOff.vue.d.ts +0 -0
  42. /package/dist/{lib/icons → icons}/TrashOff.vue.d.ts +0 -0
  43. /package/dist/{lib/icons → icons}/VerticalDots.vue.d.ts +0 -0
  44. /package/dist/{lib/icons → icons}/index.d.ts +0 -0
  45. /package/dist/{lib/settings.d.ts → settings.d.ts} +0 -0
  46. /package/dist/{lib/viewModel.d.ts → viewModel.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
- import { AbstractNode as Be, NodeInterfaceType as P, NodeInterface as Ve, ButtonInterfaceComponent as Le, CheckboxInterfaceComponent as Ge, IntegerInterfaceComponent as Ue, NumberInterfaceComponent as je, SelectInterfaceComponent as Re, SliderInterfaceComponent as Pe, TextInputInterfaceComponent as ge, TextareaInputInterfaceComponent as De, setType as j, allowMultipleConnections as X, IntegerInterface as Ae, TextInputInterface as He, displayInSidebar as Fe, sortTopologically as We, useViewModel as H, useTemporaryConnection as Xe, Components as ve, useGraph as K, GRAPH_NODE_TYPE_PREFIX as J, useTransform as Ye, useNodeCategories as Je, BaklavaEditor as qe, DEFAULT_TOOLBAR_COMMANDS as Qe, useBaklava as Ze, DependencyEngine as Ke, applyResult as et } from "baklavajs";
2
- import { ButtonInterfaceComponent as an, CheckboxInterfaceComponent as rn, IntegerInterfaceComponent as ln, NumberInterfaceComponent as dn, SelectInterfaceComponent as un, SliderInterfaceComponent as cn, TextInputInterfaceComponent as pn, TextareaInputInterfaceComponent as hn } from "baklavajs";
1
+ import { AbstractNode as Le, NodeInterface as Ge, ButtonInterfaceComponent as Ue, CheckboxInterfaceComponent as je, IntegerInterfaceComponent as Re, NumberInterfaceComponent as Pe, SelectInterfaceComponent as De, SliderInterfaceComponent as Ae, TextInputInterfaceComponent as ge, TextareaInputInterfaceComponent as He, NodeInterfaceType as P, BaklavaInterfaceTypes as Fe, setType as j, allowMultipleConnections as Y, IntegerInterface as We, TextInputInterface as Xe, displayInSidebar as Ye, sortTopologically as Je, useViewModel as F, useTemporaryConnection as qe, Components as ve, useGraph as K, GRAPH_NODE_TYPE_PREFIX as J, useTransform as Qe, useNodeCategories as Ze, BaklavaEditor as Ke, DEFAULT_TOOLBAR_COMMANDS as et, useBaklava as tt, DependencyEngine as st, applyResult as nt } from "baklavajs";
2
+ import { ButtonInterfaceComponent as cn, CheckboxInterfaceComponent as pn, IntegerInterfaceComponent as hn, NumberInterfaceComponent as vn, SelectInterfaceComponent as mn, SliderInterfaceComponent as fn, TextInputInterfaceComponent as gn, TextareaInputInterfaceComponent as bn } from "baklavajs";
3
3
  import be from "mustache";
4
- import { reactive as R, defineComponent as G, createElementBlock as r, openBlock as i, toDisplayString as L, markRaw as $, ref as E, computed as f, onMounted as ee, onUpdated as _e, normalizeClass as U, createCommentVNode as N, createElementVNode as l, unref as _, renderSlot as q, createStaticVNode as te, onBeforeUnmount as tt, normalizeStyle as se, withModifiers as D, createBlock as V, withDirectives as ne, Fragment as T, createTextVNode as st, createVNode as S, withKeys as Q, vModelText as oe, renderList as A, nextTick as nt, toRef as ye, resolveDynamicComponent as ot, inject as at, Transition as it, withCtx as W, onUnmounted as rt, normalizeProps as lt, guardReactiveProps as dt, mergeProps as ut } from "vue";
5
- import ct from "toposort";
6
- import { v4 as pt } from "uuid";
7
- import { usePointer as ht } from "@vueuse/core";
8
- class vt extends Be {
4
+ import { reactive as R, defineComponent as G, createElementBlock as l, openBlock as i, toDisplayString as L, markRaw as $, ref as E, computed as f, onMounted as ee, onUpdated as _e, normalizeClass as U, createCommentVNode as N, createElementVNode as r, unref as _, renderSlot as q, createStaticVNode as te, onBeforeUnmount as ot, normalizeStyle as se, withModifiers as D, createBlock as V, withDirectives as ne, Fragment as T, createTextVNode as at, createVNode as S, withKeys as Q, vModelText as oe, renderList as A, nextTick as it, toRef as ye, resolveDynamicComponent as lt, inject as rt, Transition as dt, withCtx as X, onUnmounted as ut, normalizeProps as ct, guardReactiveProps as pt, mergeProps as ht } from "vue";
5
+ import vt from "toposort";
6
+ import { v4 as mt } from "uuid";
7
+ import { usePointer as ft } from "@vueuse/core";
8
+ class gt extends Le {
9
9
  state;
10
10
  code;
11
11
  isCodeNode = !0;
@@ -80,7 +80,7 @@ class vt extends Be {
80
80
  this.outputs.code && (this.outputs.code.name = this.variableName);
81
81
  }
82
82
  }
83
- class we extends vt {
83
+ class we extends gt {
84
84
  /**
85
85
  * The default implementation does nothing.
86
86
  * Overwrite this method to do calculation.
@@ -94,7 +94,7 @@ class we extends vt {
94
94
  }
95
95
  save() {
96
96
  const e = super.save();
97
- return mt(this.graph, e), e;
97
+ return bt(this.graph, e), e;
98
98
  }
99
99
  updateModules(e) {
100
100
  if (e)
@@ -115,7 +115,7 @@ const xe = (o, e) => {
115
115
  }), Object.entries(e.outputs).forEach(([n, a]) => {
116
116
  n !== "_node" && s.outputs[n] && (s.outputs[n].hidden = a.hidden);
117
117
  });
118
- }, mt = (o, e) => {
118
+ }, bt = (o, e) => {
119
119
  if (!o) return;
120
120
  const t = o.findNodeById(e.id);
121
121
  if (!t || t.subgraph) return;
@@ -125,22 +125,18 @@ const xe = (o, e) => {
125
125
  }), Object.entries(e.outputs).forEach(([n, a]) => {
126
126
  n !== "_node" && s.outputs[n] && (a.hidden = s.outputs[n].hidden);
127
127
  });
128
- };
129
- new P("boolean");
130
- new P("dict");
131
- new P("list");
132
- const Y = new P("node"), ft = new P("number"), gt = new P("string"), bt = ["title"], ae = /* @__PURE__ */ G({
128
+ }, _t = ["title"], ae = /* @__PURE__ */ G({
133
129
  __name: "CodeNodeInterface",
134
130
  props: {
135
131
  intf: {}
136
132
  },
137
133
  setup(o) {
138
- return (e, t) => (i(), r("div", {
134
+ return (e, t) => (i(), l("div", {
139
135
  title: e.intf.state?.script
140
- }, L(e.intf.name), 9, bt));
136
+ }, L(e.intf.name), 9, _t));
141
137
  }
142
138
  });
143
- class M extends Ve {
139
+ class M extends Ge {
144
140
  optional = !1;
145
141
  code;
146
142
  state;
@@ -160,15 +156,15 @@ class M extends Ve {
160
156
  // if (this.name !== '_node') this.setHidden(false);
161
157
  // }
162
158
  }
163
- class Ps extends M {
164
- component = $(Le);
159
+ class Fs extends M {
160
+ component = $(Ue);
165
161
  callback;
166
162
  constructor(e, t) {
167
163
  super(e, void 0), this.callback = t, this.setPort(!1);
168
164
  }
169
165
  }
170
- class Ds extends M {
171
- component = $(Ge);
166
+ class Ws extends M {
167
+ component = $(je);
172
168
  }
173
169
  class ie extends M {
174
170
  min;
@@ -180,19 +176,19 @@ class ie extends M {
180
176
  return (this.min === void 0 || e >= this.min) && (this.max === void 0 || e <= this.max);
181
177
  }
182
178
  }
183
- class As extends ie {
184
- component = $(Ue);
179
+ class Xs extends ie {
180
+ component = $(Re);
185
181
  validate(e) {
186
182
  return Number.isInteger(e) && super.validate(e);
187
183
  }
188
184
  }
189
- class Hs extends M {
185
+ class Ys extends M {
190
186
  isCodeInput = !0;
191
187
  constructor(e = "", t) {
192
188
  super(e, t), this.setComponent($(ae));
193
189
  }
194
190
  }
195
- class _t extends M {
191
+ class yt extends M {
196
192
  isCodeOutput = !0;
197
193
  constructor(e = "", t = "") {
198
194
  super(e, t), this.setComponent($(ae));
@@ -207,49 +203,52 @@ class _t extends M {
207
203
  super.value = e, this.state.script = this.name.length > 0 ? this.name : this.value;
208
204
  }
209
205
  }
210
- class Fs extends ie {
211
- component = $(je);
206
+ class Js extends ie {
207
+ component = $(Pe);
212
208
  }
213
- class Ws extends M {
214
- component = $(Re);
209
+ class qs extends M {
210
+ component = $(De);
215
211
  items;
216
212
  constructor(e, t, s) {
217
213
  super(e, t), this.items = s;
218
214
  }
219
215
  }
220
- class Xs extends ie {
221
- component = $(Pe);
216
+ class Qs extends ie {
217
+ component = $(Ae);
222
218
  min;
223
219
  max;
224
220
  constructor(e, t, s, n) {
225
221
  super(e, t, s, n), this.min = s, this.max = n;
226
222
  }
227
223
  }
228
- class Ys extends M {
224
+ class Zs extends M {
229
225
  component = $(ge);
230
226
  constructor(e, t) {
231
227
  super(e, t), this.setPort(!1);
232
228
  }
233
229
  }
234
- class Js extends M {
230
+ class Ks extends M {
235
231
  isString = !0;
236
232
  component = $(ge);
237
233
  }
238
- class qs extends M {
239
- component = $(De);
234
+ class en extends M {
235
+ component = $(He);
240
236
  }
241
- function Qs(o) {
237
+ const wt = new P("boolean"), xt = new P("dict"), kt = new P("list"), H = new P("node"), ke = new P("number"), Ce = new P("string"), tn = (o) => {
238
+ new Fe(o.editor, { viewPlugin: o }).addTypes(Ce, H, ke, wt, xt, kt);
239
+ };
240
+ function sn(o) {
242
241
  return class extends we {
243
242
  type = o.type;
244
243
  inputs = {};
245
244
  outputs = {};
246
245
  constructor() {
247
- super(), this._title = o.title ?? o.type, this.updateModules(o.modules), o.codeTemplate && (this.state.codeTemplate = o.codeTemplate(this)), o.variableName && (this.state.variableName = o.variableName), this.addInput(
246
+ super(), this._title = o.title ?? o.type, this.updateModules(o.modules), o.codeTemplate && (this.state.codeTemplate = o.codeTemplate.call(this)), o.variableName && (this.state.variableName = o.variableName), this.addInput(
248
247
  "_node",
249
- new M("", []).use(j, Y).use(X).setHidden(!0)
248
+ new M("", []).use(j, H).use(Y).setHidden(!0)
250
249
  ), this.addOutput(
251
250
  "_node",
252
- new M("", []).use(j, Y).use(X).setHidden(!0)
251
+ new M("", []).use(j, H).use(Y).setHidden(!0)
253
252
  ), this.executeFactory("input", o.inputs), this.executeFactory("output", o.outputs), o.onCreate?.call(this);
254
253
  }
255
254
  calculate = o.calculate ? (e, t) => ({
@@ -273,7 +272,7 @@ function Qs(o) {
273
272
  }
274
273
  };
275
274
  }
276
- class yt extends we {
275
+ class Ct extends we {
277
276
  /**
278
277
  * The default implementation does nothing.
279
278
  * Overwrite this method to do calculation.
@@ -283,8 +282,8 @@ class yt extends we {
283
282
  */
284
283
  calculate;
285
284
  }
286
- function Zs(o) {
287
- return class extends yt {
285
+ function nn(o) {
286
+ return class extends Ct {
288
287
  type = o.type;
289
288
  inputs = {};
290
289
  outputs = {};
@@ -293,12 +292,12 @@ function Zs(o) {
293
292
  staticInputKeys = Object.keys(o.inputs ?? {});
294
293
  staticOutputKeys = Object.keys(o.outputs ?? {});
295
294
  constructor() {
296
- super(), this._title = o.title ?? o.type, this.updateModules(o.modules), o.codeTemplate && (this.state.codeTemplate = o.codeTemplate(this)), o.variableName && (this.state.variableName = o.variableName), this.addInput(
295
+ super(), this._title = o.title ?? o.type, this.updateModules(o.modules), o.codeTemplate && (this.state.codeTemplate = o.codeTemplate.call(this)), o.variableName && (this.state.variableName = o.variableName), this.addInput(
297
296
  "_node",
298
- new M("", []).use(j, Y).use(X).setHidden(!0)
297
+ new M("", []).use(j, H).use(Y).setHidden(!0)
299
298
  ), this.addOutput(
300
299
  "_node",
301
- new M("", []).use(j, Y).use(X).setHidden(!0)
300
+ new M("", []).use(j, H).use(Y).setHidden(!0)
302
301
  ), this.staticInputKeys.push("_node"), this.staticOutputKeys.push("_node"), this.executeFactory("input", o.inputs), this.executeFactory("output", o.outputs), o.calculate && (this.calculate = (e, t) => ({
303
302
  ...o.calculate?.call(this, e, t),
304
303
  _node: null
@@ -327,14 +326,14 @@ function Zs(o) {
327
326
  if (!this.inputs[t]) {
328
327
  const s = e.inputs[t].value;
329
328
  let n;
330
- typeof s == "number" ? n = new Ae(t, s).use(j, ft) : n = new He(t, JSON.stringify(s)).use(j, gt), n.use(Fe, !0), this.addInput(t, n);
329
+ typeof s == "number" ? n = new We(t, s).use(j, ke) : n = new Xe(t, JSON.stringify(s)).use(j, Ce), n.use(Ye, !0), this.addInput(t, n);
331
330
  }
332
331
  this.inputs[t] && (this.inputs[t].load(e.inputs[t]), this.inputs[t].nodeId = this.id);
333
332
  }
334
333
  for (const t of Object.keys(e.outputs))
335
334
  if (!this.staticOutputKeys.includes(t)) {
336
335
  if (!this.outputs[t]) {
337
- const s = new _t(t);
336
+ const s = new yt(t);
338
337
  this.addOutput(t, s);
339
338
  }
340
339
  this.outputs[t] && (this.outputs[t].load(e.outputs[t]), this.outputs[t].nodeId = this.id);
@@ -371,12 +370,12 @@ function Zs(o) {
371
370
  }
372
371
  };
373
372
  }
374
- class wt {
373
+ class It {
375
374
  _id;
376
375
  _viewModel;
377
376
  _state;
378
377
  constructor(e) {
379
- this._id = pt(), this._viewModel = e, this._state = R({
378
+ this._id = mt(), this._viewModel = e, this._state = R({
380
379
  autosort: !1,
381
380
  modules: {},
382
381
  script: "",
@@ -557,7 +556,7 @@ class wt {
557
556
  a.from.nodeId
558
557
  ]);
559
558
  let t = [...this.nodeIds];
560
- t.reverse(), t = ct.array(t, e), t.reverse();
559
+ t.reverse(), t = vt.array(t, e), t.reverse();
561
560
  const s = this.graph.nodes.map((a) => a.id).filter((a) => !t.includes(a));
562
561
  t = t.concat(s);
563
562
  const n = t.map((a) => this.findNodeById(a));
@@ -575,14 +574,14 @@ const Z = (o) => {
575
574
  return o.nodes.forEach((t) => {
576
575
  t.subgraph ? e = e.concat(Z(t.subgraph)) : t.isCodeNode && e.push(t);
577
576
  }), e;
578
- }, Ks = (o = 0, e = 100) => ({
577
+ }, on = (o = 0, e = 100) => ({
579
578
  x: o * 420,
580
579
  y: e
581
- }), en = (o) => {
580
+ }), an = (o) => {
582
581
  const e = { ...o.position };
583
582
  return e.x -= 400, e.y += 50, e;
584
- }, xt = (o) => {
585
- const { calculationOrder: e, connectionsFromNode: t } = We(o);
583
+ }, Nt = (o) => {
584
+ const { calculationOrder: e, connectionsFromNode: t } = Je(o);
586
585
  e.forEach((s) => {
587
586
  if (!s.isCodeNode) return;
588
587
  const n = s;
@@ -590,14 +589,14 @@ const Z = (o) => {
590
589
  a.to.state && a.from.script && (a.to.state.script = a.from.script);
591
590
  });
592
591
  });
593
- }, kt = ["id"], Ct = { class: "align-middle" }, me = /* @__PURE__ */ G({
592
+ }, Mt = ["id"], Ot = { class: "align-middle" }, me = /* @__PURE__ */ G({
594
593
  __name: "CodeGraphNodeInterface",
595
594
  props: {
596
595
  node: {},
597
596
  intf: {}
598
597
  },
599
598
  setup(o) {
600
- const e = o, { viewModel: t } = H(), { hoveredOver: s, temporaryConnection: n } = Xe(), a = E(null), u = f(() => e.intf.connectionCount > 0), d = f(() => ({
599
+ const e = o, { viewModel: t } = F(), { hoveredOver: s, temporaryConnection: n } = qe(), a = E(null), u = f(() => e.intf.connectionCount > 0), d = f(() => ({
601
600
  "--connected": u.value
602
601
  })), h = () => {
603
602
  s(e.intf);
@@ -606,29 +605,29 @@ const Z = (o) => {
606
605
  }, x = () => {
607
606
  a.value && t.value.hooks.renderInterface.execute({ intf: e.intf, el: a.value });
608
607
  };
609
- return ee(x), _e(x), (k, B) => (i(), r("div", {
608
+ return ee(x), _e(x), (k, B) => (i(), l("div", {
610
609
  id: k.intf.id,
611
610
  ref_key: "el",
612
611
  ref: a,
613
612
  class: U(["baklava-node-interface", d.value])
614
613
  }, [
615
- k.intf.port ? (i(), r("div", {
614
+ k.intf.port ? (i(), l("div", {
616
615
  key: 0,
617
616
  class: U(["__port", { "--selected": _(n)?.from === k.intf }]),
618
617
  onPointerover: h,
619
618
  onPointerout: O
620
619
  }, null, 34)) : N("", !0),
621
- l("span", Ct, [
620
+ r("span", Ot, [
622
621
  q(k.$slots, "default")
623
622
  ])
624
- ], 10, kt));
623
+ ], 10, Mt));
625
624
  }
626
625
  }), z = (o, e) => {
627
626
  const t = o.__vccOpts || o;
628
627
  for (const [s, n] of e)
629
628
  t[s] = n;
630
629
  return t;
631
- }, It = {}, Nt = {
630
+ }, $t = {}, Et = {
632
631
  xmlns: "http://www.w3.org/2000/svg",
633
632
  width: "24",
634
633
  height: "24",
@@ -636,17 +635,17 @@ const Z = (o) => {
636
635
  fill: "currentColor",
637
636
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-collapse"
638
637
  };
639
- function Mt(o, e) {
640
- return i(), r("svg", Nt, [...e[0] || (e[0] = [
641
- l("path", {
638
+ function Tt(o, e) {
639
+ return i(), l("svg", Et, [...e[0] || (e[0] = [
640
+ r("path", {
642
641
  stroke: "none",
643
642
  d: "M0 0h24v24H0z",
644
643
  fill: "none"
645
644
  }, null, -1),
646
- l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
645
+ r("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
647
646
  ])]);
648
647
  }
649
- const Ot = /* @__PURE__ */ z(It, [["render", Mt]]), $t = {}, Et = {
648
+ const St = /* @__PURE__ */ z($t, [["render", Tt]]), zt = {}, Bt = {
650
649
  xmlns: "http://www.w3.org/2000/svg",
651
650
  width: "24",
652
651
  height: "24",
@@ -654,17 +653,17 @@ const Ot = /* @__PURE__ */ z(It, [["render", Mt]]), $t = {}, Et = {
654
653
  fill: "currentColor",
655
654
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
656
655
  };
657
- function Tt(o, e) {
658
- return i(), r("svg", Et, [...e[0] || (e[0] = [
659
- l("path", {
656
+ function Vt(o, e) {
657
+ return i(), l("svg", Bt, [...e[0] || (e[0] = [
658
+ r("path", {
660
659
  stroke: "none",
661
660
  d: "M0 0h24v24H0z",
662
661
  fill: "none"
663
662
  }, null, -1),
664
- l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-4.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
663
+ r("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-4.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
665
664
  ])]);
666
665
  }
667
- const St = /* @__PURE__ */ z($t, [["render", Tt]]), zt = {}, Bt = {
666
+ const Lt = /* @__PURE__ */ z(zt, [["render", Vt]]), Gt = {}, Ut = {
668
667
  xmlns: "http://www.w3.org/2000/svg",
669
668
  width: "24",
670
669
  height: "24",
@@ -672,17 +671,17 @@ const St = /* @__PURE__ */ z($t, [["render", Tt]]), zt = {}, Bt = {
672
671
  fill: "currentColor",
673
672
  class: "balkava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
674
673
  };
675
- function Vt(o, e) {
676
- return i(), r("svg", Bt, [...e[0] || (e[0] = [
677
- l("path", {
674
+ function jt(o, e) {
675
+ return i(), l("svg", Ut, [...e[0] || (e[0] = [
676
+ r("path", {
678
677
  stroke: "none",
679
678
  d: "M0 0h24v24H0z",
680
679
  fill: "none"
681
680
  }, null, -1),
682
- l("path", { d: "M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm8 -16h-8a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h8z" }, null, -1)
681
+ r("path", { d: "M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm8 -16h-8a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h8z" }, null, -1)
683
682
  ])]);
684
683
  }
685
- const Lt = /* @__PURE__ */ z(zt, [["render", Vt]]), Gt = {}, Ut = {
684
+ const Rt = /* @__PURE__ */ z(Gt, [["render", jt]]), Pt = {}, Dt = {
686
685
  xmlns: "http://www.w3.org/2000/svg",
687
686
  width: "24",
688
687
  height: "24",
@@ -690,17 +689,17 @@ const Lt = /* @__PURE__ */ z(zt, [["render", Vt]]), Gt = {}, Ut = {
690
689
  fill: "currentColor",
691
690
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
692
691
  };
693
- function jt(o, e) {
694
- return i(), r("svg", Ut, [...e[0] || (e[0] = [
695
- l("path", {
692
+ function At(o, e) {
693
+ return i(), l("svg", Dt, [...e[0] || (e[0] = [
694
+ r("path", {
696
695
  stroke: "none",
697
696
  d: "M0 0h24v24H0z",
698
697
  fill: "none"
699
698
  }, null, -1),
700
- l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-5.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
699
+ r("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-5.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
701
700
  ])]);
702
701
  }
703
- const Rt = /* @__PURE__ */ z(Gt, [["render", jt]]), Pt = {}, Dt = {
702
+ const Ht = /* @__PURE__ */ z(Pt, [["render", At]]), Ft = {}, Wt = {
704
703
  xmlns: "http://www.w3.org/2000/svg",
705
704
  width: "24",
706
705
  height: "24",
@@ -708,17 +707,17 @@ const Rt = /* @__PURE__ */ z(Gt, [["render", jt]]), Pt = {}, Dt = {
708
707
  fill: "currentColor",
709
708
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
710
709
  };
711
- function At(o, e) {
712
- return i(), r("svg", Dt, [...e[0] || (e[0] = [
713
- l("path", {
710
+ function Xt(o, e) {
711
+ return i(), l("svg", Wt, [...e[0] || (e[0] = [
712
+ r("path", {
714
713
  stroke: "none",
715
714
  d: "M0 0h24v24H0z",
716
715
  fill: "none"
717
716
  }, null, -1),
718
- l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-3.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
717
+ r("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-3.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
719
718
  ])]);
720
719
  }
721
- const Ht = /* @__PURE__ */ z(Pt, [["render", At]]), Ft = {}, Wt = {
720
+ const Yt = /* @__PURE__ */ z(Ft, [["render", Xt]]), Jt = {}, qt = {
722
721
  xmlns: "http://www.w3.org/2000/svg",
723
722
  class: "baklava-icon",
724
723
  width: "24",
@@ -730,12 +729,12 @@ const Ht = /* @__PURE__ */ z(Pt, [["render", At]]), Ft = {}, Wt = {
730
729
  "stroke-linecap": "round",
731
730
  "stroke-linejoin": "round"
732
731
  };
733
- function Xt(o, e) {
734
- return i(), r("svg", Wt, [...e[0] || (e[0] = [
732
+ function Qt(o, e) {
733
+ return i(), l("svg", qt, [...e[0] || (e[0] = [
735
734
  te('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 2h5v4h-5z"></path><path d="M15 10h5v4h-5z"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h5"></path><path d="M7.5 6v4"></path><path d="M7.5 14v4"></path>', 8)
736
735
  ])]);
737
736
  }
738
- const Yt = /* @__PURE__ */ z(Ft, [["render", Xt]]), Jt = {}, qt = {
737
+ const Zt = /* @__PURE__ */ z(Jt, [["render", Qt]]), Kt = {}, es = {
739
738
  xmlns: "http://www.w3.org/2000/svg",
740
739
  class: "baklava-icon",
741
740
  width: "24",
@@ -747,12 +746,12 @@ const Yt = /* @__PURE__ */ z(Ft, [["render", Xt]]), Jt = {}, qt = {
747
746
  "stroke-linecap": "round",
748
747
  "stroke-linejoin": "round"
749
748
  };
750
- function Qt(o, e) {
751
- return i(), r("svg", qt, [...e[0] || (e[0] = [
749
+ function ts(o, e) {
750
+ return i(), l("svg", es, [...e[0] || (e[0] = [
752
751
  te('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 2h4v4m-4 0h-1v-1"></path><path d="M15 11v-1h5v4h-2"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h2"></path><path d="M7.5 7.5v2.5"></path><path d="M7.5 14v4"></path><path d="M3 3l18 18"></path>', 9)
753
752
  ])]);
754
753
  }
755
- const Zt = /* @__PURE__ */ z(Jt, [["render", Qt]]), Kt = {}, es = {
754
+ const ss = /* @__PURE__ */ z(Kt, [["render", ts]]), ns = {}, os = {
756
755
  xmlns: "http://www.w3.org/2000/svg",
757
756
  class: "baklava-icon",
758
757
  width: "24",
@@ -764,12 +763,12 @@ const Zt = /* @__PURE__ */ z(Jt, [["render", Qt]]), Kt = {}, es = {
764
763
  "stroke-linecap": "round",
765
764
  "stroke-linejoin": "round"
766
765
  };
767
- function ts(o, e) {
768
- return i(), r("svg", es, [...e[0] || (e[0] = [
766
+ function as(o, e) {
767
+ return i(), l("svg", os, [...e[0] || (e[0] = [
769
768
  te('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 3l18 18"></path><path d="M4 7h3m4 0h9"></path><path d="M10 11l0 6"></path><path d="M14 14l0 3"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l.077 -.923"></path><path d="M18.384 14.373l.616 -7.373"></path><path d="M9 5v-1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 8)
770
769
  ])]);
771
770
  }
772
- const ss = /* @__PURE__ */ z(Kt, [["render", ts]]), ns = {}, os = {
771
+ const is = /* @__PURE__ */ z(ns, [["render", as]]), ls = {}, rs = {
773
772
  xmlns: "http://www.w3.org/2000/svg",
774
773
  class: "baklava-icon",
775
774
  width: "16",
@@ -781,37 +780,37 @@ const ss = /* @__PURE__ */ z(Kt, [["render", ts]]), ns = {}, os = {
781
780
  "stroke-linecap": "round",
782
781
  "stroke-linejoin": "round"
783
782
  };
784
- function as(o, e) {
785
- return i(), r("svg", os, [...e[0] || (e[0] = [
786
- l("path", {
783
+ function ds(o, e) {
784
+ return i(), l("svg", rs, [...e[0] || (e[0] = [
785
+ r("path", {
787
786
  stroke: "none",
788
787
  d: "M0 0h24v24H0z",
789
788
  fill: "none"
790
789
  }, null, -1),
791
- l("circle", {
790
+ r("circle", {
792
791
  cx: "12",
793
792
  cy: "12",
794
793
  r: "1"
795
794
  }, null, -1),
796
- l("circle", {
795
+ r("circle", {
797
796
  cx: "12",
798
797
  cy: "19",
799
798
  r: "1"
800
799
  }, null, -1),
801
- l("circle", {
800
+ r("circle", {
802
801
  cx: "12",
803
802
  cy: "5",
804
803
  r: "1"
805
804
  }, null, -1)
806
805
  ])]);
807
806
  }
808
- const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"], ls = {
807
+ const us = /* @__PURE__ */ z(ls, [["render", ds]]), cs = ["id", "data-node-type"], ps = {
809
808
  class: "__title-label",
810
809
  style: { "flex-grow": "1" }
811
- }, ds = { key: 0 }, us = {
810
+ }, hs = { key: 0 }, vs = {
812
811
  class: "__menu",
813
812
  style: { display: "flex" }
814
- }, cs = { class: "__outputs" }, ps = { key: 0 }, hs = ["id", "title"], vs = { class: "__inputs" }, ms = { key: 0 }, fs = ["id", "title"], gs = /* @__PURE__ */ G({
813
+ }, ms = { class: "__outputs" }, fs = { key: 0 }, gs = ["id", "title"], bs = { class: "__inputs" }, _s = { key: 0 }, ys = ["id", "title"], ws = /* @__PURE__ */ G({
815
814
  __name: "CodeGraphNode",
816
815
  props: {
817
816
  node: {},
@@ -820,7 +819,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
820
819
  },
821
820
  emits: ["select", "start-drag", "update"],
822
821
  setup(o, { emit: e }) {
823
- const t = ve.ContextMenu, s = ve.NodeInterface, n = o, a = f(() => n.node), u = e, { viewModel: d } = H(), { graph: h, switchGraph: O } = K(), x = E(null), k = E(!1), B = E(""), y = E(null), m = E(!1);
822
+ const t = ve.ContextMenu, s = ve.NodeInterface, n = o, a = f(() => n.node), u = e, { viewModel: d } = F(), { graph: h, switchGraph: O } = K(), x = E(null), k = E(!1), B = E(""), y = E(null), m = E(!1);
824
823
  let g = 0, b = 0;
825
824
  const p = E(!1), w = f(() => {
826
825
  const c = [
@@ -834,28 +833,28 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
834
833
  "--dragging": n.dragging,
835
834
  "--two-column": !!n.node.twoColumn,
836
835
  "--hidden": a.value.state?.hidden
837
- })), ke = f(() => ({
836
+ })), Ie = f(() => ({
838
837
  "--reverse-y": n.node.reverseY ?? d.value.settings.nodes.reverseY
839
- })), Ce = f(() => ({
838
+ })), Ne = f(() => ({
840
839
  top: `${n.node.position?.y ?? 0}px`,
841
840
  left: `${n.node.position?.x ?? 0}px`,
842
841
  "--width": `${n.node.width ?? d.value.settings.nodes.defaultWidth}px`
843
- })), Ie = f(() => Object.values(n.node.inputs).filter((c) => !c.hidden)), Ne = f(() => Object.values(n.node.outputs).filter((c) => !c.hidden)), re = () => {
842
+ })), Me = f(() => Object.values(n.node.inputs).filter((c) => !c.hidden)), Oe = f(() => Object.values(n.node.outputs).filter((c) => !c.hidden)), le = () => {
844
843
  u("select");
845
- }, Me = (c) => {
846
- n.selected || re(), u("start-drag", c);
847
- }, le = () => {
844
+ }, $e = (c) => {
845
+ n.selected || le(), u("start-drag", c);
846
+ }, re = () => {
848
847
  p.value = !0;
849
- }, Oe = () => {
848
+ }, Ee = () => {
850
849
  const c = d.value.displayedGraph.sidebar;
851
850
  c.nodeId = "", c.visible = !1;
852
851
  }, de = () => {
853
852
  const c = d.value.displayedGraph.sidebar;
854
853
  c.nodeId = n.node.id, c.visible = !0;
855
- }, $e = () => {
854
+ }, Te = () => {
856
855
  const c = d.value.displayedGraph.sidebar;
857
856
  c.nodeId = n.node.id;
858
- }, Ee = async (c) => {
857
+ }, Se = async (c) => {
859
858
  switch (c) {
860
859
  case "edit":
861
860
  de();
@@ -864,7 +863,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
864
863
  h.value.removeNode(n.node);
865
864
  break;
866
865
  case "rename":
867
- B.value = n.node.title, k.value = !0, await nt(), y.value?.focus();
866
+ B.value = n.node.title, k.value = !0, await it(), y.value?.focus();
868
867
  break;
869
868
  case "editSubgraph":
870
869
  O(n.node.template);
@@ -874,37 +873,37 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
874
873
  n.node.title = B.value, k.value = !1;
875
874
  }, ce = () => {
876
875
  x.value && d.value.hooks.renderNode.execute({ node: n.node, el: x.value });
877
- }, Te = (c) => {
876
+ }, ze = (c) => {
878
877
  m.value = !0, g = n.node.width, b = c.clientX, c.preventDefault();
879
878
  }, pe = (c) => {
880
879
  if (!m.value) return;
881
- const C = c.clientX - b, v = g + C / h.value.scaling, Se = d.value.settings.nodes.minWidth, ze = d.value.settings.nodes.maxWidth;
882
- n.node.width = Math.max(Se, Math.min(ze, v));
880
+ const C = c.clientX - b, v = g + C / h.value.scaling, Be = d.value.settings.nodes.minWidth, Ve = d.value.settings.nodes.maxWidth;
881
+ n.node.width = Math.max(Be, Math.min(Ve, v));
883
882
  }, he = () => {
884
883
  m.value = !1;
885
884
  };
886
885
  return ee(() => {
887
886
  ce(), window.addEventListener("mousemove", pe), window.addEventListener("mouseup", he);
888
- }), _e(ce), tt(() => {
887
+ }), _e(ce), ot(() => {
889
888
  window.removeEventListener("mousemove", pe), window.removeEventListener("mouseup", he);
890
- }), (c, C) => (i(), r("div", {
889
+ }), (c, C) => (i(), l("div", {
891
890
  id: a.value.id,
892
891
  ref_key: "el",
893
892
  ref: x,
894
893
  class: U([I.value, "baklava-node"]),
895
894
  "data-node-type": a.value.type,
896
- style: se(Ce.value),
897
- onPointerdown: re
895
+ style: se(Ne.value),
896
+ onPointerdown: le
898
897
  }, [
899
- _(d).settings.nodes.resizable ? (i(), r("div", {
898
+ _(d).settings.nodes.resizable ? (i(), l("div", {
900
899
  key: 0,
901
900
  class: "__resize-handle",
902
- onMousedown: Te
901
+ onMousedown: ze
903
902
  }, null, 32)) : N("", !0),
904
- l("div", {
903
+ r("div", {
905
904
  class: "__title",
906
- onPointerdown: D(Me, ["self", "stop"]),
907
- onContextmenu: D(le, ["prevent"])
905
+ onPointerdown: D($e, ["self", "stop"]),
906
+ onContextmenu: D(re, ["prevent"])
908
907
  }, [
909
908
  a.value.inputs._node ? (i(), V(me, {
910
909
  key: 0,
@@ -914,7 +913,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
914
913
  "data-interface-type": "node",
915
914
  style: { "flex-grow": "0" }
916
915
  }, null, 8, ["node", "intf"])) : N("", !0),
917
- k.value ? ne((i(), r("input", {
916
+ k.value ? ne((i(), l("input", {
918
917
  key: 2,
919
918
  ref_key: "renameInputEl",
920
919
  ref: y,
@@ -927,30 +926,30 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
927
926
  onKeydown: Q(ue, ["enter"])
928
927
  }, null, 544)), [
929
928
  [oe, B.value]
930
- ]) : (i(), r(T, { key: 1 }, [
931
- l("div", ls, [
932
- a.value.idx > -1 ? (i(), r("span", ds, L(a.value.idx + 1) + " - ", 1)) : N("", !0),
933
- st(L(a.value.title) + " (" + L(a.value.shortId) + ") ", 1)
929
+ ]) : (i(), l(T, { key: 1 }, [
930
+ r("div", ps, [
931
+ a.value.idx > -1 ? (i(), l("span", hs, L(a.value.idx + 1) + " - ", 1)) : N("", !0),
932
+ at(L(a.value.title) + " (" + L(a.value.shortId) + ") ", 1)
934
933
  ]),
935
- l("div", us, [
936
- a.value.subgraph ? N("", !0) : (i(), r(T, { key: 0 }, [
937
- !_(d).displayedGraph.sidebar.visible && _(d).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), V(_(Ht), {
934
+ r("div", vs, [
935
+ a.value.subgraph ? N("", !0) : (i(), l(T, { key: 0 }, [
936
+ !_(d).displayedGraph.sidebar.visible && _(d).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), V(_(Yt), {
938
937
  key: 0,
939
938
  class: "--clickable mx-1",
940
939
  onClick: de
941
- })) : _(d).displayedGraph.sidebar.visible && _(d).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), V(_(Lt), {
940
+ })) : _(d).displayedGraph.sidebar.visible && _(d).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), V(_(Rt), {
942
941
  key: 1,
943
942
  class: "--clickable mx-1",
944
- onClick: $e
945
- })) : (i(), V(_(Rt), {
943
+ onClick: Te
944
+ })) : (i(), V(_(Ht), {
946
945
  key: 2,
947
946
  class: "--clickable mx-1",
948
- onClick: Oe
947
+ onClick: Ee
949
948
  }))
950
949
  ], 64)),
951
- S(_(is), {
950
+ S(_(us), {
952
951
  class: "--clickable mx-1",
953
- onClick: le
952
+ onClick: re
954
953
  }),
955
954
  S(_(t), {
956
955
  modelValue: p.value,
@@ -958,7 +957,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
958
957
  x: 0,
959
958
  y: 0,
960
959
  items: w.value,
961
- onClick: Ee
960
+ onClick: Se
962
961
  }, null, 8, ["modelValue", "items"])
963
962
  ])
964
963
  ], 64)),
@@ -970,26 +969,26 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
970
969
  "data-interface-type": "node"
971
970
  }, null, 8, ["node", "intf"])) : N("", !0)
972
971
  ], 32),
973
- l("div", {
974
- class: U(["__content", ke.value]),
972
+ r("div", {
973
+ class: U(["__content", Ie.value]),
975
974
  onKeydown: C[2] || (C[2] = Q(D(() => {
976
975
  }, ["stop"]), ["delete"])),
977
976
  onContextmenu: C[3] || (C[3] = D(() => {
978
977
  }, ["prevent"]))
979
978
  }, [
980
- l("div", cs, [
981
- (i(!0), r(T, null, A(Ne.value, (v) => (i(), r(T, {
979
+ r("div", ms, [
980
+ (i(!0), l(T, null, A(Oe.value, (v) => (i(), l(T, {
982
981
  key: v.id
983
982
  }, [
984
- a.value.state?.hidden ? (i(), r("div", ps, [
985
- v.port ? (i(), r("div", {
983
+ a.value.state?.hidden ? (i(), l("div", fs, [
984
+ v.port ? (i(), l("div", {
986
985
  key: 0,
987
986
  id: v.id,
988
987
  title: v.name,
989
988
  class: "baklava-node-interface --output --connected"
990
989
  }, [...C[4] || (C[4] = [
991
- l("div", { class: "__port" }, null, -1)
992
- ])], 8, hs)) : N("", !0)
990
+ r("div", { class: "__port" }, null, -1)
991
+ ])], 8, gs)) : N("", !0)
993
992
  ])) : q(c.$slots, "nodeInterface", {
994
993
  key: 1,
995
994
  type: "output",
@@ -1003,19 +1002,19 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1003
1002
  ])
1004
1003
  ], 64))), 128))
1005
1004
  ]),
1006
- l("div", vs, [
1007
- (i(!0), r(T, null, A(Ie.value, (v) => (i(), r(T, {
1005
+ r("div", bs, [
1006
+ (i(!0), l(T, null, A(Me.value, (v) => (i(), l(T, {
1008
1007
  key: v.id
1009
1008
  }, [
1010
- a.value.state?.hidden ? (i(), r("div", ms, [
1011
- v.port ? (i(), r("div", {
1009
+ a.value.state?.hidden ? (i(), l("div", _s, [
1010
+ v.port ? (i(), l("div", {
1012
1011
  key: 0,
1013
1012
  id: v.id,
1014
1013
  title: v.name,
1015
1014
  class: "baklava-node-interface --input --connected"
1016
1015
  }, [...C[5] || (C[5] = [
1017
- l("div", { class: "__port" }, null, -1)
1018
- ])], 8, fs)) : N("", !0)
1016
+ r("div", { class: "__port" }, null, -1)
1017
+ ])], 8, ys)) : N("", !0)
1019
1018
  ])) : q(c.$slots, "nodeInterface", {
1020
1019
  key: 1,
1021
1020
  node: a.value,
@@ -1031,12 +1030,12 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1031
1030
  ], 64))), 128))
1032
1031
  ])
1033
1032
  ], 34)
1034
- ], 46, rs));
1033
+ ], 46, cs));
1035
1034
  }
1036
- }), bs = ["title"], _s = {
1035
+ }), xs = ["title"], ks = {
1037
1036
  key: 0,
1038
1037
  class: "__label"
1039
- }, ys = /* @__PURE__ */ G({
1038
+ }, Cs = /* @__PURE__ */ G({
1040
1039
  __name: "Checkbox",
1041
1040
  props: {
1042
1041
  modelValue: { type: Boolean },
@@ -1046,35 +1045,35 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1046
1045
  emits: ["update:modelValue"],
1047
1046
  setup(o, { emit: e }) {
1048
1047
  const t = e;
1049
- return (s, n) => (i(), r("div", {
1048
+ return (s, n) => (i(), l("div", {
1050
1049
  class: U(["baklava-checkbox", { "--checked": s.inversed ? !s.modelValue : s.modelValue }]),
1051
1050
  title: s.name,
1052
1051
  onClick: n[0] || (n[0] = (a) => t("update:modelValue", !s.modelValue))
1053
1052
  }, [
1054
- n[1] || (n[1] = l("div", { class: "__checkmark-container" }, [
1055
- l("svg", {
1053
+ n[1] || (n[1] = r("div", { class: "__checkmark-container" }, [
1054
+ r("svg", {
1056
1055
  xmlns: "http://www.w3.org/2000/svg",
1057
1056
  width: "18",
1058
1057
  height: "18",
1059
1058
  viewBox: "0 0 18 18"
1060
1059
  }, [
1061
- l("path", {
1060
+ r("path", {
1062
1061
  class: "__checkmark",
1063
1062
  d: "M 6 5 L 6 10 L 16 10",
1064
1063
  transform: "rotate(-45 10 10)"
1065
1064
  })
1066
1065
  ])
1067
1066
  ], -1)),
1068
- s.name ? (i(), r("div", _s, L(s.name), 1)) : N("", !0)
1069
- ], 10, bs));
1067
+ s.name ? (i(), l("div", ks, L(s.name), 1)) : N("", !0)
1068
+ ], 10, xs));
1070
1069
  }
1071
- }), ws = { class: "__header" }, xs = { class: "__node-name" }, ks = { style: { display: "flex" } }, Cs = {
1070
+ }), Is = { class: "__header" }, Ns = { class: "__node-name" }, Ms = { style: { display: "flex" } }, Os = {
1072
1071
  key: 1,
1073
1072
  class: "__interface"
1074
- }, Is = /* @__PURE__ */ G({
1073
+ }, $s = /* @__PURE__ */ G({
1075
1074
  __name: "CodeGraphSidebar",
1076
1075
  setup(o) {
1077
- const { viewModel: e } = H(), { graph: t } = K(), s = E(null), n = ye(e.value.settings.sidebar, "width"), a = f(() => e.value.settings.sidebar.resizable);
1076
+ const { viewModel: e } = F(), { graph: t } = K(), s = E(null), n = ye(e.value.settings.sidebar, "width"), a = f(() => e.value.settings.sidebar.resizable);
1078
1077
  let u = 0, d = 0;
1079
1078
  const h = f(() => {
1080
1079
  const b = t.value.sidebar.nodeId;
@@ -1098,33 +1097,33 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1098
1097
  let I = u - w;
1099
1098
  I < 300 ? I = 300 : I > 0.9 * p && (I = 0.9 * p), n.value = I;
1100
1099
  };
1101
- return (b, p) => (i(), r("div", {
1100
+ return (b, p) => (i(), l("div", {
1102
1101
  ref_key: "el",
1103
1102
  ref: s,
1104
1103
  class: U(["baklava-sidebar", { "--open": _(t).sidebar.visible }]),
1105
1104
  style: se(x.value)
1106
1105
  }, [
1107
- a.value ? (i(), r("div", {
1106
+ a.value ? (i(), l("div", {
1108
1107
  key: 0,
1109
1108
  class: "__resizer",
1110
1109
  onMousedown: m
1111
1110
  }, null, 32)) : N("", !0),
1112
- l("div", ws, [
1113
- l("button", {
1111
+ r("div", Is, [
1112
+ r("button", {
1114
1113
  tabindex: "-1",
1115
1114
  class: "__close",
1116
1115
  onClick: B
1117
1116
  }, "×"),
1118
- l("div", xs, [
1119
- l("b", null, L(h.value ? h.value.title : ""), 1)
1117
+ r("div", Ns, [
1118
+ r("b", null, L(h.value ? h.value.title : ""), 1)
1120
1119
  ])
1121
1120
  ]),
1122
- (i(!0), r(T, null, A(k.value, (w) => (i(), r("div", {
1121
+ (i(!0), l(T, null, A(k.value, (w) => (i(), l("div", {
1123
1122
  key: w.id,
1124
1123
  class: "__interface"
1125
1124
  }, [
1126
- l("div", ks, [
1127
- S(ys, {
1125
+ r("div", Ms, [
1126
+ S(Cs, {
1128
1127
  modelValue: w.hidden,
1129
1128
  "onUpdate:modelValue": [
1130
1129
  (I) => w.hidden = I,
@@ -1133,7 +1132,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1133
1132
  inversed: "",
1134
1133
  style: { "margin-right": "8px" }
1135
1134
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1136
- (i(), V(ot(w.component), {
1135
+ (i(), V(lt(w.component), {
1137
1136
  modelValue: w.value,
1138
1137
  "onUpdate:modelValue": (I) => w.value = I,
1139
1138
  node: h.value,
@@ -1142,9 +1141,9 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1142
1141
  }, null, 8, ["modelValue", "onUpdate:modelValue", "node", "intf"]))
1143
1142
  ])
1144
1143
  ]))), 128)),
1145
- O.value && O.value.state ? (i(), r("div", Cs, [
1146
- p[2] || (p[2] = l("label", null, "Variable name", -1)),
1147
- ne(l("input", {
1144
+ O.value && O.value.state ? (i(), l("div", Os, [
1145
+ p[2] || (p[2] = r("label", null, "Variable name", -1)),
1146
+ ne(r("input", {
1148
1147
  "onUpdate:modelValue": p[1] || (p[1] = (w) => O.value.state.variableName = w),
1149
1148
  type: "text",
1150
1149
  class: "baklava-input",
@@ -1157,7 +1156,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1157
1156
  ])) : N("", !0)
1158
1157
  ], 6));
1159
1158
  }
1160
- }), Ns = G({
1159
+ }), Es = G({
1161
1160
  props: {
1162
1161
  type: {
1163
1162
  type: String,
@@ -1169,7 +1168,7 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1169
1168
  }
1170
1169
  },
1171
1170
  setup(o) {
1172
- const { viewModel: e } = H(), { switchGraph: t } = K(), s = E(!1), n = f(() => o.type.startsWith(J));
1171
+ const { viewModel: e } = F(), { switchGraph: t } = K(), s = E(!1), n = f(() => o.type.startsWith(J));
1173
1172
  return { showContextMenu: s, hasContextMenu: n, contextMenuItems: [
1174
1173
  { label: "Edit Subgraph", value: "editSubgraph" },
1175
1174
  { label: "Delete Subgraph", value: "deleteSubgraph" }
@@ -1188,24 +1187,24 @@ const is = /* @__PURE__ */ z(ns, [["render", as]]), rs = ["id", "data-node-type"
1188
1187
  }
1189
1188
  } };
1190
1189
  }
1191
- }), Ms = ["data-node-type"], Os = { class: "__title" }, $s = { class: "__title-label" };
1192
- function Es(o, e, t, s, n, a) {
1193
- return i(), r("div", {
1190
+ }), Ts = ["data-node-type"], Ss = { class: "__title" }, zs = { class: "__title-label" };
1191
+ function Bs(o, e, t, s, n, a) {
1192
+ return i(), l("div", {
1194
1193
  class: "baklava-node --palette",
1195
1194
  "data-node-type": o.type
1196
1195
  }, [
1197
- l("div", Os, [
1198
- l("div", $s, L(o.title), 1)
1196
+ r("div", Ss, [
1197
+ r("div", zs, L(o.title), 1)
1199
1198
  ])
1200
- ], 8, Ms);
1199
+ ], 8, Ts);
1201
1200
  }
1202
- const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1201
+ const fe = /* @__PURE__ */ z(Es, [["render", Bs]]), Vs = {
1203
1202
  class: "baklava-node --palette",
1204
1203
  style: { "margin-top": "-20px", "margin-bottom": "30px" }
1205
- }, Ss = { key: 0 }, zs = /* @__PURE__ */ G({
1204
+ }, Ls = { key: 0 }, Gs = /* @__PURE__ */ G({
1206
1205
  __name: "CodeNodePalette",
1207
1206
  setup(o) {
1208
- const { viewModel: e } = H(), { x: t, y: s } = ht(), { transform: n } = Ye(), a = Je(e), u = at("editorEl"), d = E(""), h = E(null), O = (y) => d.value ? y.filter(
1207
+ const { viewModel: e } = F(), { x: t, y: s } = ft(), { transform: n } = Qe(), a = Ze(e), u = rt("editorEl"), d = E(""), h = E(null), O = (y) => d.value ? y.filter(
1209
1208
  (m) => Object.values(m.nodeTypes).some(
1210
1209
  (g) => g.title.toLowerCase().includes(d.value?.toLowerCase())
1211
1210
  )
@@ -1231,14 +1230,14 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1231
1230
  };
1232
1231
  document.addEventListener("pointerup", g);
1233
1232
  };
1234
- return (y, m) => (i(), r(T, null, [
1235
- l("div", {
1233
+ return (y, m) => (i(), l(T, null, [
1234
+ r("div", {
1236
1235
  class: U(["baklava-node-palette", { "--open": _(e).settings.palette.enabled }]),
1237
1236
  onContextmenu: m[1] || (m[1] = D(() => {
1238
1237
  }, ["stop", "prevent"]))
1239
1238
  }, [
1240
- l("div", Ts, [
1241
- ne(l("input", {
1239
+ r("div", Vs, [
1240
+ ne(r("input", {
1242
1241
  "onUpdate:modelValue": m[0] || (m[0] = (g) => d.value = g),
1243
1242
  type: "text",
1244
1243
  class: "baklava-input",
@@ -1247,11 +1246,11 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1247
1246
  [oe, d.value]
1248
1247
  ])
1249
1248
  ]),
1250
- (i(!0), r(T, null, A(O(_(a)), (g) => (i(), r("section", {
1249
+ (i(!0), l(T, null, A(O(_(a)), (g) => (i(), l("section", {
1251
1250
  key: g.name
1252
1251
  }, [
1253
- g.name !== "default" ? (i(), r("h3", Ss, L(g.name), 1)) : N("", !0),
1254
- (i(!0), r(T, null, A(x(g.nodeTypes), (b, p) => (i(), V(fe, {
1252
+ g.name !== "default" ? (i(), l("h3", Ls, L(g.name), 1)) : N("", !0),
1253
+ (i(!0), l(T, null, A(x(g.nodeTypes), (b, p) => (i(), V(fe, {
1255
1254
  key: p,
1256
1255
  type: p,
1257
1256
  title: b.title,
@@ -1259,9 +1258,9 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1259
1258
  }, null, 8, ["type", "title", "onPointerdown"]))), 128))
1260
1259
  ]))), 128))
1261
1260
  ], 34),
1262
- S(it, { name: "fade" }, {
1263
- default: W(() => [
1264
- h.value ? (i(), r("div", {
1261
+ S(dt, { name: "fade" }, {
1262
+ default: X(() => [
1263
+ h.value ? (i(), l("div", {
1265
1264
  key: 0,
1266
1265
  class: "baklava-dragged-node",
1267
1266
  style: se(k.value)
@@ -1276,7 +1275,7 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1276
1275
  })
1277
1276
  ], 64));
1278
1277
  }
1279
- }), tn = /* @__PURE__ */ G({
1278
+ }), ln = /* @__PURE__ */ G({
1280
1279
  __name: "CodeGraphEditor",
1281
1280
  props: {
1282
1281
  viewModel: {}
@@ -1285,24 +1284,24 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1285
1284
  const t = ye(o, "viewModel"), s = (n) => n.events.update.emit(null);
1286
1285
  return ee(() => {
1287
1286
  t.value.subscribe(), t.value.engine.start();
1288
- }), rt(() => {
1287
+ }), ut(() => {
1289
1288
  t.value.unsubscribe(), t.value.engine.stop();
1290
- }), (n, a) => (i(), V(_(qe), { "view-model": t.value }, {
1291
- palette: W(() => [
1292
- S(zs)
1289
+ }), (n, a) => (i(), V(_(Ke), { "view-model": t.value }, {
1290
+ palette: X(() => [
1291
+ S(Gs)
1293
1292
  ]),
1294
- node: W((u) => [
1295
- S(gs, ut(u, {
1293
+ node: X((u) => [
1294
+ S(ws, ht(u, {
1296
1295
  onUpdate: (d) => s(u.node)
1297
1296
  }), null, 16, ["onUpdate"])
1298
1297
  ]),
1299
- sidebar: W((u) => [
1300
- S(Is, lt(dt(u)), null, 16)
1298
+ sidebar: X((u) => [
1299
+ S($s, ct(pt(u)), null, 16)
1301
1300
  ]),
1302
1301
  _: 1
1303
1302
  }, 8, ["view-model"]));
1304
1303
  }
1305
- }), Bs = (o) => {
1304
+ }), Us = (o) => {
1306
1305
  const e = "TOGGLE_PALETTE";
1307
1306
  o.commandHandler.registerCommand(e, {
1308
1307
  execute: () => o.settings.palette.enabled = !o.settings.palette.enabled,
@@ -1322,23 +1321,23 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1322
1321
  command: e,
1323
1322
  title: "Toggle palette",
1324
1323
  // Tooltip text
1325
- icon: f(() => o.settings.palette.enabled ? Ot : St)
1324
+ icon: f(() => o.settings.palette.enabled ? St : Lt)
1326
1325
  },
1327
- ...Qe,
1326
+ ...et,
1328
1327
  {
1329
1328
  command: t,
1330
1329
  title: "Clear all",
1331
1330
  // Tooltip text
1332
- icon: ss
1331
+ icon: is
1333
1332
  },
1334
1333
  {
1335
1334
  command: s,
1336
1335
  title: "Toggle minimap",
1337
1336
  // Tooltip text
1338
- icon: f(() => o.settings.enableMinimap ? Zt : Yt)
1337
+ icon: f(() => o.settings.enableMinimap ? ss : Zt)
1339
1338
  }
1340
1339
  ];
1341
- }, F = {
1340
+ }, W = {
1342
1341
  enableMinimap: !1,
1343
1342
  toolbar: {
1344
1343
  enabled: !0
@@ -1353,22 +1352,22 @@ const fe = /* @__PURE__ */ z(Ns, [["render", Es]]), Ts = {
1353
1352
  },
1354
1353
  displayValueOnHover: !1
1355
1354
  };
1356
- function sn(o) {
1357
- const e = Ze(o?.existingEditor);
1358
- e.code = o?.code ? new o.code(e) : new wt(e), Bs(e);
1355
+ function rn(o) {
1356
+ const e = tt(o?.existingEditor);
1357
+ e.code = o?.code ? new o.code(e) : new It(e), Us(e);
1359
1358
  const t = {};
1360
- return Object.keys(F).forEach((s) => {
1361
- t[s] = typeof F[s] == "object" ? { ...e.settings[s], ...F[s] } : F[s];
1359
+ return Object.keys(W).forEach((s) => {
1360
+ t[s] = typeof W[s] == "object" ? { ...e.settings[s], ...W[s] } : W[s];
1362
1361
  }), e.settings = R({ ...e.settings, ...t }), e.settings.nodes.defaultWidth = 350, e.state = R({
1363
1362
  modules: {},
1364
1363
  token: null
1365
- }), e.engine = new Ke(e.editor), e.subscribe = () => {
1364
+ }), e.engine = new st(e.editor), e.subscribe = () => {
1366
1365
  e.state.token && e.unsubscribe();
1367
1366
  const s = Symbol();
1368
1367
  e.displayedGraph.events.addNode.subscribe(s, (n) => n.code = e.code), e.engine.events.beforeRun.subscribe(s, () => {
1369
1368
  e.engine.pause(), e.code && (e.code.onCodeUpdate(), e.code.sortNodes(), e.code.updateOutputVariableNames()), e.engine.resume();
1370
1369
  }), e.engine.events.afterRun.subscribe(s, (n) => {
1371
- e.engine.pause(), et(n, e.editor), xt(e.displayedGraph), e.code && (e.code.renderNodeCodes(), e.code.renderCode()), e.engine.resume();
1370
+ e.engine.pause(), nt(n, e.editor), Nt(e.displayedGraph), e.code && (e.code.renderNodeCodes(), e.code.renderCode()), e.engine.resume();
1372
1371
  }), e.state.token = s;
1373
1372
  }, e.unsubscribe = () => {
1374
1373
  if (!e.state.token) return;
@@ -1377,40 +1376,47 @@ function sn(o) {
1377
1376
  }, e;
1378
1377
  }
1379
1378
  export {
1380
- vt as AbstractCodeNode,
1381
- Ps as ButtonInterface,
1382
- an as ButtonInterfaceComponent,
1383
- Ds as CheckboxInterface,
1384
- rn as CheckboxInterfaceComponent,
1385
- wt as Code,
1386
- tn as CodeGraphEditor,
1387
- Hs as CodeInputInterface,
1379
+ gt as AbstractCodeNode,
1380
+ Fs as ButtonInterface,
1381
+ cn as ButtonInterfaceComponent,
1382
+ Ws as CheckboxInterface,
1383
+ pn as CheckboxInterfaceComponent,
1384
+ It as Code,
1385
+ ln as CodeGraphEditor,
1386
+ Ys as CodeInputInterface,
1388
1387
  we as CodeNode,
1389
1388
  M as CodeNodeInterface,
1390
- _t as CodeOutputInterface,
1391
- F as DEFAULT_SETTINGS,
1392
- yt as DynamicCodeNode,
1393
- As as IntegerInterface,
1394
- ln as IntegerInterfaceComponent,
1395
- Fs as NumberInterface,
1396
- dn as NumberInterfaceComponent,
1397
- Ws as SelectInterface,
1398
- un as SelectInterfaceComponent,
1399
- Xs as SliderInterface,
1400
- cn as SliderInterfaceComponent,
1401
- Js as TextInputInterface,
1402
- pn as TextInputInterfaceComponent,
1403
- Ys as TextInterface,
1404
- qs as TextareaInputInterface,
1405
- hn as TextareaInputInterfaceComponent,
1406
- Bs as addToolbarCommands,
1407
- Qs as defineCodeNode,
1408
- Zs as defineDynamicCodeNode,
1389
+ yt as CodeOutputInterface,
1390
+ W as DEFAULT_SETTINGS,
1391
+ Ct as DynamicCodeNode,
1392
+ Xs as IntegerInterface,
1393
+ hn as IntegerInterfaceComponent,
1394
+ Js as NumberInterface,
1395
+ vn as NumberInterfaceComponent,
1396
+ qs as SelectInterface,
1397
+ mn as SelectInterfaceComponent,
1398
+ Qs as SliderInterface,
1399
+ fn as SliderInterfaceComponent,
1400
+ Ks as TextInputInterface,
1401
+ gn as TextInputInterfaceComponent,
1402
+ Zs as TextInterface,
1403
+ en as TextareaInputInterface,
1404
+ bn as TextareaInputInterfaceComponent,
1405
+ tn as addDefaultTypes,
1406
+ Us as addToolbarCommands,
1407
+ wt as booleanType,
1408
+ sn as defineCodeNode,
1409
+ nn as defineDynamicCodeNode,
1410
+ xt as dictType,
1409
1411
  Z as getCodeNodes,
1410
- Ks as getPositionAtColumn,
1411
- en as getPositionBeforeNode,
1412
+ on as getPositionAtColumn,
1413
+ an as getPositionBeforeNode,
1414
+ kt as listType,
1412
1415
  xe as loadNodeState,
1413
- mt as saveNodeState,
1414
- xt as transferCodeScript,
1415
- sn as useCodeGraph
1416
+ H as nodeType,
1417
+ ke as numberType,
1418
+ bt as saveNodeState,
1419
+ Ce as stringType,
1420
+ Nt as transferCodeScript,
1421
+ rn as useCodeGraph
1416
1422
  };