x-block-lib 0.5.20 → 0.5.22

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 (2) hide show
  1. package/dist/index.js +17 -13
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var Ke = (e, t, n) => el(e, typeof t != "symbol" ? t + "" : t, n);
13
13
  import { getCurrentScope as tl, onScopeDispose as nl, unref as Y, computed as Ee, watch as ht, ref as at, getCurrentInstance as Ao, onMounted as qt, defineComponent as tt, onBeforeUnmount as oo, resolveComponent as ve, openBlock as me, createBlock as je, withCtx as Qe, createVNode as Ae, mergeProps as Di, useModel as di, toRefs as ol, reactive as il, h as hi, onUnmounted as sl, nextTick as Mi, isRef as pn, resolveDirective as al, withDirectives as rl, createElementBlock as st, normalizeStyle as qe, createElementVNode as We, toDisplayString as vo, withModifiers as _n, Fragment as da, renderList as ll, withKeys as ha, createCommentVNode as Lt, mergeModels as is } from "vue";
14
14
  import { d as b, j as r, O as u, M as g, u as I, X as cl, E as P, B as D, F as V, i as te, a as Dt, b as Oo, c as he, C as fa, e as ul, P as fi, N as Pi, V as jn, g as At, f as pl, h as ga, s as _l, S as Le, k as Xn, l as Ht, m as xn, n as $o, o as sn, p as kt, q as ss, G as Go, r as dl, t as hl, v as Wo, U as wn, D as Vn, w as wt, x as fl, T as bo, y as ma, z as gl, A as ml, H as Tl, I as as, J as El } from "./blockly-h1celjt4.js";
15
15
  import { openConfirmDlg as Al, openPromptDlg as vl, eventBus as Je, messageWarning as Ta, useColor as Io, useViewStack as yo, useSystem as Ea, injectDark as Ol, injectLocale as bl } from "x-essential-lib";
16
- import { state as U } from "x-state-lib";
16
+ import { globalState as U } from "x-state-lib";
17
17
  import { pkgs as Il, elements as ke, getPropTag as Co } from "x-runtime-lib";
18
18
  import { useI18n as Nn } from "vue-i18n";
19
19
  import { useDisplay as yl } from "vuetify";
@@ -278,6 +278,10 @@ const wl = I.xml, Vl = [
278
278
  type: "call_node_method_v1",
279
279
  prefixInputs: ["OUTPUT"]
280
280
  },
281
+ {
282
+ type: "comp_method_impl_v1",
283
+ prefixInputs: ["INPUT"]
284
+ },
281
285
  {
282
286
  type: "delete_data_v1",
283
287
  inputs: ["SUCCESS", "MESSAGE"]
@@ -5828,7 +5832,7 @@ const Kd = {
5828
5832
  const e = [];
5829
5833
  for (let t = 0; t < this.method.outputs.length; t++) {
5830
5834
  const { key: n, name: o } = this.method.outputs[t];
5831
- e.push(["OUTPUT" + t, `__param@${n}__`, o, !1]);
5835
+ e.push(["OUTPUT" + t, n, o, !0]);
5832
5836
  }
5833
5837
  e.length > 0 && Pe(this, e);
5834
5838
  },
@@ -6012,7 +6016,7 @@ const Hd = {
6012
6016
  const e = [];
6013
6017
  for (let t = 0; t < this.method.outputs.length; t++) {
6014
6018
  const { key: n, name: o } = this.method.outputs[t];
6015
- e.push(["OUTPUT" + t, `__param@${n}__`, o, !1]);
6019
+ e.push(["OUTPUT" + t, n, o, !0]);
6016
6020
  }
6017
6021
  e.length > 0 && Pe(this, e);
6018
6022
  },
@@ -6060,13 +6064,13 @@ ${s}}
6060
6064
  }
6061
6065
  };
6062
6066
  function $d() {
6063
- return U.app.activeObject.type !== "comp" ? !1 : U.app.activeComp.properties.length > 0 || U.app.activeComp.methods.length > 0 || U.app.activeComp.events.length > 0;
6067
+ return U.app.activeObject.type !== "comp" ? !1 : U.app.activeComp.meta.properties.length > 0 || U.app.activeComp.meta.methods.length > 0 || U.app.activeComp.meta.events.length > 0;
6064
6068
  }
6065
6069
  function In() {
6066
- return U.app.activeComp.methods;
6070
+ return U.app.activeComp.meta.methods;
6067
6071
  }
6068
6072
  function ro(e) {
6069
- return U.app.activeComp.methods.find((t) => t.id === e);
6073
+ return U.app.activeComp.meta.methods.find((t) => t.id === e);
6070
6074
  }
6071
6075
  function Za() {
6072
6076
  const e = [];
@@ -6075,13 +6079,13 @@ function Za() {
6075
6079
  }), _e(e);
6076
6080
  }
6077
6081
  function Ci(e) {
6078
- const t = U.app.activeComp.methods.find(
6082
+ const t = U.app.activeComp.meta.methods.find(
6079
6083
  (n) => n.id === e
6080
6084
  );
6081
6085
  return t ? t.outputs : [];
6082
6086
  }
6083
6087
  function ei(e, t) {
6084
- const n = U.app.activeComp.methods.find(
6088
+ const n = U.app.activeComp.meta.methods.find(
6085
6089
  (o) => o.id === e
6086
6090
  );
6087
6091
  if (n)
@@ -6094,10 +6098,10 @@ function Gd(e) {
6094
6098
  }), _e(t);
6095
6099
  }
6096
6100
  function er() {
6097
- return U.app.activeComp.events;
6101
+ return U.app.activeComp.meta.events;
6098
6102
  }
6099
6103
  function Ps(e) {
6100
- return U.app.activeComp.events.find((t) => t.id === e);
6104
+ return U.app.activeComp.meta.events.find((t) => t.id === e);
6101
6105
  }
6102
6106
  function Wd() {
6103
6107
  const e = [];
@@ -6460,13 +6464,13 @@ r.forBlock.get_node_prop_as_v1 = function(e) {
6460
6464
  return [`__getNodePropV1__(${n}, ${o})`, u.ATOMIC];
6461
6465
  };
6462
6466
  function Jd() {
6463
- if (U.app.activeObject.type !== "page" || U.app.activePage.arguments.length > 0) return !1;
6467
+ if (U.app.activeObject.type !== "page" || U.app.activePage.meta.arguments.length > 0) return !1;
6464
6468
  }
6465
6469
  function tr() {
6466
- return U.app.activePage.arguments;
6470
+ return U.app.activePage.meta.arguments;
6467
6471
  }
6468
6472
  function Us(e) {
6469
- return U.app.activePage.arguments.find((t) => t.id === e);
6473
+ return U.app.activePage.meta.arguments.find((t) => t.id === e);
6470
6474
  }
6471
6475
  function Qd() {
6472
6476
  const e = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.5.20",
4
+ "version": "0.5.22",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "vue-draggable-plus": "^0.5.4",
33
33
  "vuetify": "^3.7.3",
34
34
  "x-essential-lib": "^0.7.11",
35
- "x-runtime-lib": "^0.5.35",
36
- "x-state-lib": "^0.1.6"
35
+ "x-runtime-lib": "^0.5.39",
36
+ "x-state-lib": "^0.1.7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@eslint/js": "^10.0.0",