x-block-lib 0.6.15 → 0.6.17

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.
@@ -6,10 +6,10 @@ interface Props {
6
6
  dark: boolean;
7
7
  }
8
8
  type __VLS_Props = Props;
9
- type __VLS_PublicProps = {
9
+ type __VLS_PublicProps = __VLS_Props & {
10
10
  'lock': boolean;
11
11
  'scale': number;
12
- } & __VLS_Props;
12
+ };
13
13
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
14
14
  loading: import("vue").Ref<boolean, boolean>;
15
15
  load: (state: object) => void;
package/dist/index.js CHANGED
@@ -2090,7 +2090,7 @@ const Bd = {
2090
2090
  return;
2091
2091
  const e = [];
2092
2092
  this.event.params.forEach(({ key: t, name: n }, o) => {
2093
- e.push(["PARAM" + o, `__param@${t}__`, n, !1]);
2093
+ e.push(["PARAM" + o, t, n, !0]);
2094
2094
  }), e.length > 0 && je(this, e);
2095
2095
  },
2096
2096
  checkWarning_: function() {
@@ -2224,7 +2224,7 @@ const Rd = {
2224
2224
  return;
2225
2225
  const e = [];
2226
2226
  this.event.params.forEach(({ key: t, name: n }, o) => {
2227
- e.push(["PARAM" + o, `__param@${t}__`, n, !1]);
2227
+ e.push(["PARAM" + o, t, n, !0]);
2228
2228
  }), e.length > 0 && je(this, e);
2229
2229
  },
2230
2230
  checkWarning_: function() {
@@ -2276,14 +2276,14 @@ const Dd = {
2276
2276
  updateShadow_: function() {
2277
2277
  if (this.isInsertionMarker())
2278
2278
  return;
2279
- const e = fe({ type: "string", default: "" });
2279
+ const e = fe({ type: "string", default: "title" });
2280
2280
  this.getInput("TITLE").connection.setShadowDom(e);
2281
- const t = fe({ type: "string", default: "" });
2281
+ const t = fe({ type: "string", default: "text" });
2282
2282
  this.getInput("TEXT").connection.setShadowDom(t);
2283
2283
  },
2284
2284
  rebuildBlocks_: function() {
2285
2285
  this.isInsertionMarker() || je(this, [
2286
- ["RESULT", "__result__", "PARAM_RESULT", !1]
2286
+ ["RESULT", "__result__", "PARAM_RESULT", !0]
2287
2287
  ]);
2288
2288
  }
2289
2289
  };
@@ -2313,16 +2313,16 @@ const Md = {
2313
2313
  updateShadow_: function() {
2314
2314
  if (this.isInsertionMarker())
2315
2315
  return;
2316
- const e = fe({ type: "string", default: "" });
2316
+ const e = fe({ type: "string", default: "title" });
2317
2317
  this.getInput("TITLE").connection.setShadowDom(e);
2318
- const t = fe({ type: "string", default: "" });
2318
+ const t = fe({ type: "string", default: "label" });
2319
2319
  this.getInput("LABEL").connection.setShadowDom(t);
2320
2320
  const n = fe({ type: "string", default: "" });
2321
2321
  this.getInput("VALUE").connection.setShadowDom(n);
2322
2322
  },
2323
2323
  rebuildBlocks_: function() {
2324
2324
  this.isInsertionMarker() || je(this, [
2325
- ["RESULT", "__result__", "PARAM_RESULT", !1]
2325
+ ["RESULT", "__result__", "PARAM_RESULT", !0]
2326
2326
  ]);
2327
2327
  }
2328
2328
  };
@@ -13982,21 +13982,20 @@ const yg = /* @__PURE__ */ ft({
13982
13982
  }, 8, ["color"]);
13983
13983
  };
13984
13984
  }
13985
- }), Cg = { class: "text-subtitle-1 ml-3" }, Ng = /* @__PURE__ */ ft({
13985
+ }), Cg = { class: "text-subtitle-1" }, Ng = /* @__PURE__ */ ft({
13986
13986
  __name: "index",
13987
13987
  setup(e) {
13988
13988
  const { t } = Kn(), { sysBarAvail: n } = Pa(), { backgroundColor0: o, backgroundColor2: i } = Fo(), s = Mt(""), a = Be(() => {
13989
13989
  let _ = 48;
13990
13990
  return n.value && (_ += 24), {
13991
13991
  position: "relative",
13992
- width: "100%",
13993
13992
  height: `calc(100% - ${_}px)`
13994
13993
  };
13995
13994
  }), l = (_) => {
13996
13995
  s.value = _.code;
13997
13996
  }, { open: c } = Yo("sourceDlg", l);
13998
13997
  return (_, h) => {
13999
- const d = De("v-sheet"), g = De("v-icon"), m = De("v-spacer"), I = De("v-dialog");
13998
+ const d = De("v-sheet"), g = De("v-btn"), m = De("v-spacer"), I = De("v-dialog");
14000
13999
  return Ne(), pt(I, {
14001
14000
  modelValue: X(c),
14002
14001
  "onUpdate:modelValue": h[1] || (h[1] = (v) => kn(c) ? c.value = v : null),
@@ -14019,12 +14018,14 @@ const yg = /* @__PURE__ */ ft({
14019
14018
  height: 24
14020
14019
  }, null, 8, ["color"])) : $t("", !0),
14021
14020
  Oe(d, {
14022
- class: "d-flex align-center px-3",
14021
+ class: "d-flex align-center px-2",
14023
14022
  color: X(i),
14024
14023
  height: 48
14025
14024
  }, {
14026
14025
  default: _t(() => [
14027
14026
  Oe(g, {
14027
+ variant: "text",
14028
+ density: "comfortable",
14028
14029
  icon: X(Ua),
14029
14030
  onClick: h[0] || (h[0] = (v) => c.value = !1)
14030
14031
  }, null, 8, ["icon"]),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.6.15",
4
+ "version": "0.6.17",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,37 +24,39 @@
24
24
  "dependencies": {
25
25
  "@highlightjs/vue-plugin": "^2.1.0",
26
26
  "@mdi/js": "^7.4.47",
27
- "axios": "^1.7.9",
27
+ "axios": "^1.8.4",
28
28
  "blockly": "^11.2.2",
29
29
  "highlight.js": "^11.11.1",
30
30
  "lodash-es": "^4.17.21",
31
31
  "vue": "^3.5.13",
32
32
  "vue-draggable-plus": "^0.6.0",
33
- "vuetify": "^3.7.13",
34
- "x-essential-lib": "^0.8.3",
35
- "x-runtime-lib": "^0.6.9",
36
- "x-state-lib": "^0.2.0"
33
+ "vuetify": "^3.8.1",
34
+ "x-essential-lib": "^0.8.6",
35
+ "x-runtime-lib": "^0.6.11",
36
+ "x-state-lib": "^0.2.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@eslint/js": "^9.21.0",
39
+ "@eslint/js": "^9.24.0",
40
40
  "@types/lodash-es": "^4.17.12",
41
- "@types/node": "^22.13.5",
42
- "@vitejs/plugin-vue": "^5.2.1",
43
- "eslint": "^9.21.0",
44
- "eslint-config-prettier": "^10.0.1",
45
- "eslint-plugin-prettier": "^5.2.3",
46
- "eslint-plugin-vue": "^9.32.0",
41
+ "@types/node": "^22.14.0",
42
+ "@vitejs/plugin-vue": "^5.2.3",
43
+ "eslint": "^9.24.0",
44
+ "eslint-config-prettier": "^10.1.1",
45
+ "eslint-plugin-prettier": "^5.2.6",
46
+ "eslint-plugin-vue": "^10.0.0",
47
+ "globals": "^16.0.0",
47
48
  "husky": "^9.1.7",
48
- "lint-staged": "^15.4.3",
49
- "prettier": "3.5.2",
50
- "sass": "^1.85.1",
51
- "typescript": "^5.7.3",
52
- "typescript-eslint": "^8.25.0",
53
- "vite": "^6.2.0",
49
+ "lint-staged": "^15.5.0",
50
+ "prettier": "3.5.3",
51
+ "sass": "^1.86.3",
52
+ "typescript": "^5.8.3",
53
+ "typescript-eslint": "^8.29.1",
54
+ "vite": "^6.2.5",
54
55
  "vite-plugin-css-injected-by-js": "^3.5.2",
55
- "vite-plugin-vuetify": "^2.1.0",
56
- "vue-i18n": "^11.1.1",
56
+ "vite-plugin-vuetify": "^2.1.1",
57
+ "vue-eslint-parser": "^10.1.3",
58
+ "vue-i18n": "^11.1.3",
57
59
  "vue-router": "4.5.0",
58
- "vue-tsc": "^2.2.4"
60
+ "vue-tsc": "^2.2.8"
59
61
  }
60
62
  }