x-block-lib 0.6.56 → 0.6.57

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.
@@ -30,8 +30,6 @@ declare const _default: {
30
30
  TODAY: string;
31
31
  UNDO: string;
32
32
  UNNAMED_KEY: string;
33
- VARIABLE_GET_CREATE_SET: string;
34
- VARIABLE_SET_CREATE_GET: string;
35
33
  CROSS_TAB_COPY: string;
36
34
  CROSS_TAB_PASTE: string;
37
35
  NO_OPTION: string;
@@ -490,10 +488,10 @@ declare const _default: {
490
488
  UI_V1_TRIGGER_COMP_EVENT_TITLE: string;
491
489
  UI_V1_TRIGGER_COMP_EVENT_TOOLTIP: string;
492
490
  UI_V1_TRIGGER_COMP_EVENT_HELPURL: string;
493
- VARIABLE_V1_GET_CREATE_SET: string;
491
+ VARIABLE_GET_CREATE_SET: string;
492
+ VARIABLE_SET_CREATE_GET: string;
494
493
  VARIABLE_V1_GET_TOOLTIP: string;
495
494
  VARIABLE_V1_GET_HELPURL: string;
496
- VARIABLE_V1_SET_CREATE_GET: string;
497
495
  VARIABLE_V1_SET_TITLE: string;
498
496
  VARIABLE_V1_SET_TOOLTIP: string;
499
497
  VARIABLE_V1_SET_HELPURL: string;
@@ -30,8 +30,6 @@ declare const _default: {
30
30
  TODAY: string;
31
31
  UNDO: string;
32
32
  UNNAMED_KEY: string;
33
- VARIABLE_GET_CREATE_SET: string;
34
- VARIABLE_SET_CREATE_GET: string;
35
33
  CROSS_TAB_COPY: string;
36
34
  CROSS_TAB_PASTE: string;
37
35
  NO_OPTION: string;
@@ -490,10 +488,10 @@ declare const _default: {
490
488
  UI_V1_TRIGGER_COMP_EVENT_TITLE: string;
491
489
  UI_V1_TRIGGER_COMP_EVENT_TOOLTIP: string;
492
490
  UI_V1_TRIGGER_COMP_EVENT_HELPURL: string;
493
- VARIABLE_V1_GET_CREATE_SET: string;
491
+ VARIABLE_GET_CREATE_SET: string;
492
+ VARIABLE_SET_CREATE_GET: string;
494
493
  VARIABLE_V1_GET_TOOLTIP: string;
495
494
  VARIABLE_V1_GET_HELPURL: string;
496
- VARIABLE_V1_SET_CREATE_GET: string;
497
495
  VARIABLE_V1_SET_TITLE: string;
498
496
  VARIABLE_V1_SET_TOOLTIP: string;
499
497
  VARIABLE_V1_SET_HELPURL: string;
package/dist/index.js CHANGED
@@ -10,8 +10,8 @@
10
10
  var so = Object.defineProperty;
11
11
  var ao = (t, e, n) => e in t ? so(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
12
12
  var on = (t, e, n) => ao(t, typeof e != "symbol" ? e + "" : e, n);
13
- import { provide as co, inject as lo, defineComponent as se, resolveComponent as P, createBlock as ee, openBlock as U, unref as L, withCtx as te, createVNode as R, mergeProps as jt, useModel as xe, ref as Ie, computed as j, resolveDirective as uo, withDirectives as ro, createElementBlock as Q, normalizeStyle as q, createElementVNode as X, toDisplayString as rt, withModifiers as Ue, mergeModels as Vt, Fragment as En, renderList as _o, useId as Pt, onUnmounted as gn, useTemplateRef as Me, withKeys as An, isRef as Qe, createCommentVNode as fe, onMounted as sn, nextTick as po, onBeforeUnmount as ho, watch as Se } from "vue";
14
- import { d as f, j as a, O as l, f as fo, F as In, M as p, E as I, r as an, u as g, s as mo, X as me, B as m, i as M, a as y, c as Ve, b as xt, e as G, g as Te, h as pe, p as Pe, k as Z, l as cn, m as D, C as On, N as ne, n as To, P as Yt, V as Re, o as He, q as Cn, t as Eo, S as K, v as Ze, w as De, x as Ae, y as Je, z as vt, A as be, D as ln, G as Nt, H as go, T as _t, I as kn, J as Ao, K as Io, L as Oo, Q as Co, R as ko, U as yn, W as vn, Y as yo, Z as vo, _ as No, $ as Lo, a0 as So, a1 as bo, a2 as Bo, a3 as Ro, a4 as Do } from "./vendor.bxn11l2w.js";
13
+ import { provide as co, inject as lo, defineComponent as se, resolveComponent as P, createBlock as ee, openBlock as U, unref as L, withCtx as te, createVNode as R, mergeProps as jt, useModel as xe, ref as Oe, computed as j, resolveDirective as uo, withDirectives as ro, createElementBlock as Q, normalizeStyle as q, createElementVNode as X, toDisplayString as rt, withModifiers as Ue, mergeModels as Vt, Fragment as En, renderList as _o, useId as Pt, onUnmounted as gn, useTemplateRef as Me, withKeys as An, isRef as Qe, createCommentVNode as fe, onMounted as sn, nextTick as po, onBeforeUnmount as ho, watch as be } from "vue";
14
+ import { d as f, j as a, O as l, f as fo, F as In, M as p, E as I, r as an, u as g, s as mo, X as me, B as m, i as M, a as y, c as Ve, b as xt, e as G, g as Te, h as pe, p as Pe, k as Z, l as cn, m as D, C as On, N as ne, n as To, P as Yt, V as Ie, o as He, q as Cn, t as Eo, S as K, v as Ze, w as De, x as Ae, y as Je, z as vt, A as Be, D as ln, G as Nt, H as go, T as _t, I as kn, J as Ao, K as Io, L as Oo, Q as Co, R as ko, U as yn, W as vn, Y as yo, Z as vo, _ as No, $ as Lo, a0 as So, a1 as bo, a2 as Bo, a3 as Ro, a4 as Do } from "./vendor.bxn11l2w.js";
15
15
  import { openConfirmDlg as Uo, openPromptDlg as Mo, messageWarning as Nn, useColor as pt, useSystem as Ln, useViewStack as Xt } from "x-essential-lib";
16
16
  import { elements as Y, pkgs as Ye, getPropTag as ht, parsePixelStr as Vo, parsePercentStr as Po } from "x-runtime-lib";
17
17
  import { globalState as T } from "x-state-lib";
@@ -131,7 +131,7 @@ an.register(
131
131
  "state_change",
132
132
  Sn
133
133
  );
134
- const Oe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", tt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
134
+ const Ce = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", tt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
135
135
  function dt(t) {
136
136
  const e = t.lastIndexOf("V");
137
137
  if (e <= 0 || e >= t.length - 1)
@@ -139,7 +139,7 @@ function dt(t) {
139
139
  const n = mo(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
140
140
  return `${n}_${o}`;
141
141
  }
142
- function ke(t) {
142
+ function ye(t) {
143
143
  const e = t.lastIndexOf("V");
144
144
  if (e <= 0 || e >= t.length - 1)
145
145
  return console.assert(!1, `invalid key=${t}`), "";
@@ -173,7 +173,7 @@ function _e(t, e) {
173
173
  const n = `<block type="text_v1"><field name="TEXT">${e}</field></block>`, o = g.xml.textToDom(n);
174
174
  return me.domToBlock(o, t);
175
175
  }
176
- function ye(t, e) {
176
+ function ve(t, e) {
177
177
  const n = `<block type="math_number_v1"><field name="NUM">${e}</field></block>`, o = g.xml.textToDom(n);
178
178
  return me.domToBlock(o, t);
179
179
  }
@@ -195,7 +195,7 @@ function Rn(t) {
195
195
  }
196
196
  function un(t, e) {
197
197
  let n = null;
198
- return e === "string" ? n = _e(t, "") : e === "integer" || e === "float" ? n = ye(t, 0) : e === "boolean" ? n = ft(t, !1) : (e === "enum" || e === "dateTime") && (n = _e(t, "")), n;
198
+ return e === "string" ? n = _e(t, "") : e === "integer" || e === "float" ? n = ve(t, 0) : e === "boolean" ? n = ft(t, !1) : (e === "enum" || e === "dateTime") && (n = _e(t, "")), n;
199
199
  }
200
200
  function Jt(t, e, n, o) {
201
201
  const i = `
@@ -246,7 +246,7 @@ function he(t) {
246
246
  if (e)
247
247
  return e;
248
248
  }
249
- function ve(t) {
249
+ function Ne(t) {
250
250
  const { i18n: e } = T.base, n = [];
251
251
  return We(t).forEach(({ key: i, name: s }) => {
252
252
  n.push([e.global.t(s), i]);
@@ -312,7 +312,7 @@ function Dn(t, e) {
312
312
  }), o.push([u, s]);
313
313
  }), N(o);
314
314
  }
315
- function Le(t) {
315
+ function Se(t) {
316
316
  const { nodes: e } = T.app.activeObject, n = [];
317
317
  for (const o in e) {
318
318
  const i = e[o], s = Y[i.key];
@@ -334,7 +334,7 @@ function $(t) {
334
334
  }
335
335
  function je(t) {
336
336
  const { i18n: e } = T.base, n = [];
337
- return Le(t).forEach(({ id: i, key: s, alias: c }) => {
337
+ return Se(t).forEach(({ id: i, key: s, alias: c }) => {
338
338
  const u = Y[s];
339
339
  if (!u) {
340
340
  console.assert(!1, "invalid element", s);
@@ -439,7 +439,7 @@ const Ho = {
439
439
  var i, s;
440
440
  if (this.node.id)
441
441
  return;
442
- const t = (i = Le()) == null ? void 0 : i[0];
442
+ const t = (i = Se()) == null ? void 0 : i[0];
443
443
  if (!t)
444
444
  return;
445
445
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -471,7 +471,7 @@ const Ho = {
471
471
  return $o(this.node.id);
472
472
  },
473
473
  genElementOpts_: function() {
474
- return ve();
474
+ return Ne();
475
475
  },
476
476
  onchange: function(t) {
477
477
  if (t.type === S.STATE_CHANGE)
@@ -648,7 +648,7 @@ const Go = {
648
648
  }, 0);
649
649
  },
650
650
  genElementOpts_: function() {
651
- return ve("method");
651
+ return Ne("method");
652
652
  },
653
653
  genMethodOpts_: function() {
654
654
  return Fo(this.element.key);
@@ -692,7 +692,7 @@ const Go = {
692
692
  console.assert(!1);
693
693
  return;
694
694
  }
695
- t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(new E(() => ve()), "EXTRA1");
695
+ t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(new E(() => Ne()), "EXTRA1");
696
696
  },
697
697
  updateShape2_: function() {
698
698
  var t, e;
@@ -915,7 +915,7 @@ a.forBlock.comp_method_impl_v1 = function(t) {
915
915
  return `{${a.statementToCode(e, "HANDLE")}}`;
916
916
  };
917
917
  const qo = (t, e) => {
918
- const n = dt(t), o = ke(t);
918
+ const n = dt(t), o = ye(t);
919
919
  m[n] = {
920
920
  init: function() {
921
921
  this.appendDummyInput().appendField(
@@ -940,7 +940,7 @@ for (const t in Ye) {
940
940
  qo(n, e.items[n]);
941
941
  }
942
942
  const zo = (t, e) => {
943
- const n = dt(t), o = ke(t);
943
+ const n = dt(t), o = ye(t);
944
944
  m[n] = {
945
945
  init: function() {
946
946
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -1048,7 +1048,7 @@ const Qo = {
1048
1048
  var n;
1049
1049
  if (this.node.id)
1050
1050
  return;
1051
- const t = (n = Le()) == null ? void 0 : n[0];
1051
+ const t = (n = Se()) == null ? void 0 : n[0];
1052
1052
  if (!t)
1053
1053
  return;
1054
1054
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -1122,7 +1122,7 @@ const Zo = {
1122
1122
  var i, s;
1123
1123
  if (this.node.id)
1124
1124
  return;
1125
- const t = (i = Le()) == null ? void 0 : i[0];
1125
+ const t = (i = Se()) == null ? void 0 : i[0];
1126
1126
  if (!t)
1127
1127
  return;
1128
1128
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -1248,7 +1248,7 @@ const ei = {
1248
1248
  }, 0);
1249
1249
  },
1250
1250
  genElementOpts_: function() {
1251
- return ve();
1251
+ return Ne();
1252
1252
  },
1253
1253
  genPropOpts_: function() {
1254
1254
  return Dn(this.element.key);
@@ -1553,7 +1553,7 @@ const li = {
1553
1553
  var i, s;
1554
1554
  if (this.node.id)
1555
1555
  return;
1556
- const t = (i = Le("event")) == null ? void 0 : i[0];
1556
+ const t = (i = Se("event")) == null ? void 0 : i[0];
1557
1557
  if (!t)
1558
1558
  return;
1559
1559
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -1709,7 +1709,7 @@ const ui = {
1709
1709
  }, 0);
1710
1710
  },
1711
1711
  genElementOpts_: function() {
1712
- return ve("event");
1712
+ return Ne("event");
1713
1713
  },
1714
1714
  genEventOpts_: function() {
1715
1715
  return wo(this.element.key);
@@ -2124,7 +2124,7 @@ const di = {
2124
2124
  var i, s;
2125
2125
  if (this.node.id)
2126
2126
  return;
2127
- const t = (i = Le()) == null ? void 0 : i[0];
2127
+ const t = (i = Se()) == null ? void 0 : i[0];
2128
2128
  if (!t)
2129
2129
  return;
2130
2130
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -2196,14 +2196,14 @@ const di = {
2196
2196
  n && n.dispose();
2197
2197
  let o = null;
2198
2198
  const i = t.raw;
2199
- i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = _e(this.workspace, i.default) : i.ui === "numInput" ? o = ye(this.workspace, i.default) : i.ui === "switch" ? o = ft(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2199
+ i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = _e(this.workspace, i.default) : i.ui === "numInput" ? o = ve(this.workspace, i.default) : i.ui === "switch" ? o = ft(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2200
2200
  },
2201
2201
  updateCheck_: function() {
2202
2202
  const t = le(this.node.id, this.prop.keys);
2203
2203
  if (!t)
2204
2204
  return;
2205
2205
  const e = this.getInput("VALUE"), n = t.raw;
2206
- n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(ke(n.items)) : n.ui === "multiTypes" ? e.setCheck(ke(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2206
+ n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(ye(n.items)) : n.ui === "multiTypes" ? e.setCheck(ye(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2207
2207
  },
2208
2208
  checkWarning_: function() {
2209
2209
  const t = $(this.node.id);
@@ -2270,7 +2270,7 @@ const fi = {
2270
2270
  }, 0);
2271
2271
  },
2272
2272
  genElementOpts_: function() {
2273
- return ve();
2273
+ return Ne();
2274
2274
  },
2275
2275
  genPropOpts_: function() {
2276
2276
  return Dn(this.element.key);
@@ -2316,14 +2316,14 @@ const fi = {
2316
2316
  n && n.dispose();
2317
2317
  let o = null;
2318
2318
  const i = t.raw;
2319
- i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = _e(this.workspace, i.default) : i.ui === "numInput" ? o = ye(this.workspace, i.default) : i.ui === "switch" ? o = ft(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2319
+ i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = _e(this.workspace, i.default) : i.ui === "numInput" ? o = ve(this.workspace, i.default) : i.ui === "switch" ? o = ft(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2320
2320
  },
2321
2321
  updateCheck_: function() {
2322
2322
  const t = ce(this.element.key, this.prop.keys);
2323
2323
  if (!t)
2324
2324
  return;
2325
2325
  const e = this.getInput("VALUE"), n = t.raw;
2326
- n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(ke(n.items)) : n.ui === "multiTypes" ? e.setCheck(ke(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2326
+ n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(ye(n.items)) : n.ui === "multiTypes" ? e.setCheck(ye(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2327
2327
  },
2328
2328
  checkWarning_: function() {
2329
2329
  const t = he(this.element.key);
@@ -2711,7 +2711,7 @@ m.parameter_v1 = Ai;
2711
2711
  a.forBlock.parameter_v1 = function(t) {
2712
2712
  return [t.key, l.ATOMIC];
2713
2713
  };
2714
- function Ne(t) {
2714
+ function Le(t) {
2715
2715
  const e = [];
2716
2716
  return T.compute.spaces.forEach((n) => {
2717
2717
  n.funcs.length > 0 && e.push(n);
@@ -2722,7 +2722,7 @@ function ot(t) {
2722
2722
  }
2723
2723
  function wn(t) {
2724
2724
  const e = [];
2725
- return Ne().forEach(({ id: o, name: i }) => {
2725
+ return Le().forEach(({ id: o, name: i }) => {
2726
2726
  e.push([i, o]);
2727
2727
  }), N(e);
2728
2728
  }
@@ -2730,7 +2730,7 @@ function $e(t) {
2730
2730
  const e = T.compute.spaces.find((n) => n.id === t);
2731
2731
  return e ? e.funcs : [];
2732
2732
  }
2733
- function Ce(t, e) {
2733
+ function ke(t, e) {
2734
2734
  const n = T.compute.spaces.find((o) => o.id === t);
2735
2735
  if (n)
2736
2736
  return n.funcs.find((o) => o.id === e);
@@ -2770,7 +2770,7 @@ const Oi = {
2770
2770
  var i, s;
2771
2771
  if (this.space.id)
2772
2772
  return;
2773
- const t = (i = Ne()) == null ? void 0 : i[0];
2773
+ const t = (i = Le()) == null ? void 0 : i[0];
2774
2774
  if (!t)
2775
2775
  return;
2776
2776
  this.space.id = t.id, this.space.name = t.name;
@@ -2821,13 +2821,13 @@ const Oi = {
2821
2821
  return;
2822
2822
  }
2823
2823
  let n = !1;
2824
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !Ce(this.space.id, this.func.id)) {
2824
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !ke(this.space.id, this.func.id)) {
2825
2825
  const s = (i = $e(this.space.id)) == null ? void 0 : i[0];
2826
2826
  this.setFieldValue((s == null ? void 0 : s.id) ?? "", "FUNC");
2827
2827
  }
2828
2828
  },
2829
2829
  onFuncChange_: function(t) {
2830
- const e = Ce(this.space.id, t);
2830
+ const e = ke(this.space.id, t);
2831
2831
  if (!e) {
2832
2832
  console.assert(!1);
2833
2833
  return;
@@ -2897,7 +2897,7 @@ const Oi = {
2897
2897
  return;
2898
2898
  }
2899
2899
  t.name !== this.space.name && (this.space.name = t.name);
2900
- const e = Ce(this.space.id, this.func.id);
2900
+ const e = ke(this.space.id, this.func.id);
2901
2901
  if (!e) {
2902
2902
  this.setWarningText(p.WARN_FUNC_NOT_AVAILABLE);
2903
2903
  return;
@@ -2956,7 +2956,7 @@ const Ci = {
2956
2956
  var i, s;
2957
2957
  if (this.space.id)
2958
2958
  return;
2959
- const t = (i = Ne()) == null ? void 0 : i[0];
2959
+ const t = (i = Le()) == null ? void 0 : i[0];
2960
2960
  if (!t)
2961
2961
  return;
2962
2962
  this.space.id = t.id, this.space.name = t.name;
@@ -3007,13 +3007,13 @@ const Ci = {
3007
3007
  return;
3008
3008
  }
3009
3009
  let n = !1;
3010
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !Ce(this.space.id, this.func.id)) {
3010
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !ke(this.space.id, this.func.id)) {
3011
3011
  const s = (i = $e(this.space.id)) == null ? void 0 : i[0];
3012
3012
  s ? this.setFieldValue(s.id, "FUNC") : this.setFieldValue("", "FUNC");
3013
3013
  }
3014
3014
  },
3015
3015
  onFuncChange_: function(t) {
3016
- const e = Ce(this.space.id, t);
3016
+ const e = ke(this.space.id, t);
3017
3017
  if (!e) {
3018
3018
  console.assert(!1);
3019
3019
  return;
@@ -3083,7 +3083,7 @@ const Ci = {
3083
3083
  return;
3084
3084
  }
3085
3085
  t.name !== this.space.name && (this.space.name = t.name);
3086
- const e = Ce(this.space.id, this.func.id);
3086
+ const e = ke(this.space.id, this.func.id);
3087
3087
  if (!e) {
3088
3088
  this.setWarningText(p.WARN_FUNC_NOT_AVAILABLE);
3089
3089
  return;
@@ -3603,7 +3603,7 @@ const Bi = {
3603
3603
  return;
3604
3604
  let o = null;
3605
3605
  const { type: i } = this.column;
3606
- i === "string" ? o = _e(this.workspace, "") : i === "integer" ? o = ye(this.workspace, 0) : i === "float" ? o = ye(this.workspace, 0) : i === "boolean" ? o = ft(this.workspace, !1) : i === "enum" ? o = _e(this.workspace, "") : i === "dateTime" && (o = _e(this.workspace, "")), o && (e.setCheck(null), e.connect(o.outputConnection));
3606
+ i === "string" ? o = _e(this.workspace, "") : i === "integer" ? o = ve(this.workspace, 0) : i === "float" ? o = ve(this.workspace, 0) : i === "boolean" ? o = ft(this.workspace, !1) : i === "enum" ? o = _e(this.workspace, "") : i === "dateTime" && (o = _e(this.workspace, "")), o && (e.setCheck(null), e.connect(o.outputConnection));
3607
3607
  },
3608
3608
  updateCheck_: function() {
3609
3609
  const { type: t } = this.column, e = this.getInput("VALUE");
@@ -4849,7 +4849,7 @@ ${i}}
4849
4849
  const ns = g.xml, os = {
4850
4850
  init: function() {
4851
4851
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
4852
- new Z(Oe, 20, 20, void 0, () => {
4852
+ new Z(Ce, 20, 20, void 0, () => {
4853
4853
  this.isInFlyout || this.addEntry_();
4854
4854
  })
4855
4855
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -4868,7 +4868,7 @@ const ns = g.xml, os = {
4868
4868
  for (let t = 0; t < this.length; t++) {
4869
4869
  const e = "ENTRY" + t, n = this.appendValueInput(e);
4870
4870
  n.appendField(
4871
- new Z(Oe, 20, 20, void 0, () => {
4871
+ new Z(Ce, 20, 20, void 0, () => {
4872
4872
  this.isInFlyout || this.addEntry_(n);
4873
4873
  })
4874
4874
  ), n.appendField(new cn(String(t))), n.appendField(
@@ -4887,7 +4887,7 @@ const ns = g.xml, os = {
4887
4887
  }
4888
4888
  const n = this.appendValueInput("ENTRY" + e);
4889
4889
  n.appendField(
4890
- new Z(Oe, 20, 20, void 0, () => {
4890
+ new Z(Ce, 20, 20, void 0, () => {
4891
4891
  this.isInFlyout || this.addEntry_(n);
4892
4892
  })
4893
4893
  ), n.appendField(new cn(String(e))), n.appendField(
@@ -4923,7 +4923,7 @@ m.json_boolean_v1 = is;
4923
4923
  const fn = g.xml, ss = {
4924
4924
  init: function() {
4925
4925
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
4926
- new Z(Oe, 20, 20, void 0, () => {
4926
+ new Z(Ce, 20, 20, void 0, () => {
4927
4927
  this.isInFlyout || this.addEntry_();
4928
4928
  })
4929
4929
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -4951,7 +4951,7 @@ const fn = g.xml, ss = {
4951
4951
  for (let e = 0; e < t.length; e++) {
4952
4952
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
4953
4953
  i.appendField(
4954
- new Z(Oe, 20, 20, void 0, () => {
4954
+ new Z(Ce, 20, 20, void 0, () => {
4955
4955
  this.isInFlyout || this.addEntry_(i);
4956
4956
  })
4957
4957
  ), i.appendField(new pe(n), "KEY" + e), i.appendField(
@@ -4968,7 +4968,7 @@ const fn = g.xml, ss = {
4968
4968
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
4969
4969
  const n = this.appendValueInput("ENTRY" + e);
4970
4970
  n.appendField(
4971
- new Z(Oe, 20, 20, void 0, () => {
4971
+ new Z(Ce, 20, 20, void 0, () => {
4972
4972
  this.isInFlyout || this.addEntry_(n);
4973
4973
  })
4974
4974
  ), n.appendField(new pe("key"), "KEY" + e), n.appendField(
@@ -8092,7 +8092,7 @@ a.forBlock.delay_v1 = function(t) {
8092
8092
  const Fs = {
8093
8093
  customContextMenu: function(t) {
8094
8094
  if (this.isInFlyout) {
8095
- if (this.type === "variables_get_v1" || this.type === "variables_get_v1_reporter") {
8095
+ if (this.type === "variable_get_v1") {
8096
8096
  const e = {
8097
8097
  text: p.RENAME_VARIABLE,
8098
8098
  enabled: !0,
@@ -8106,7 +8106,7 @@ const Fs = {
8106
8106
  }
8107
8107
  } else {
8108
8108
  let e, n;
8109
- this.type === "variables_get_v1" ? (e = "variables_set_v1", n = p.VARIABLE_V1_GET_CREATE_SET) : this.type === "variables_set_v1" ? (e = "variables_get_v1", n = p.VARIABLE_V1_SET_CREATE_GET) : console.assert(!1);
8109
+ this.type === "variable_get_v1" ? (e = "variable_set_v1", n = p.VARIABLE_GET_CREATE_SET) : this.type === "variable_set_v1" ? (e = "variable_get_v1", n = p.VARIABLE_SET_CREATE_GET) : console.assert(!1);
8110
8110
  const o = this.getField("VAR"), i = {
8111
8111
  type: e,
8112
8112
  fields: { VAR: o.saveState(!0) }
@@ -8121,12 +8121,12 @@ const Fs = {
8121
8121
  }, Ks = function(t) {
8122
8122
  return function() {
8123
8123
  const e = t.workspace, o = t.getField("VAR").getVariable();
8124
- Re.renameVariable(e, o);
8124
+ Ie.renameVariable(e, o);
8125
8125
  };
8126
8126
  }, $s = function(t) {
8127
8127
  return function() {
8128
- const e = t.workspace, o = t.getField("VAR").getVariable();
8129
- e.deleteVariableById(o.getId()), e.refreshToolboxSelection();
8128
+ const n = t.getField("VAR").getVariable();
8129
+ n && Ie.deleteVariable(n.getWorkspace(), n, t);
8130
8130
  };
8131
8131
  };
8132
8132
  D.registerMixin(
@@ -8309,20 +8309,20 @@ function Gs() {
8309
8309
  const at = {
8310
8310
  name: "UI_CATEGORY",
8311
8311
  callback: Gs
8312
- }, Be = g.xml;
8312
+ }, Re = g.xml;
8313
8313
  function Ws() {
8314
8314
  const t = [];
8315
8315
  {
8316
- const e = Be.createElement("label");
8316
+ const e = Re.createElement("label");
8317
8317
  e.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), t.push(e);
8318
8318
  }
8319
8319
  {
8320
- const e = Be.createElement("block");
8320
+ const e = Re.createElement("block");
8321
8321
  e.setAttribute("type", "procedure_def_v1");
8322
8322
  {
8323
- const n = Be.createElement("field");
8323
+ const n = Re.createElement("field");
8324
8324
  n.setAttribute("name", "NAME");
8325
- const o = Be.createTextNode(
8325
+ const o = Re.createTextNode(
8326
8326
  p.PROCEDURE_DEFAULT_NAME
8327
8327
  );
8328
8328
  n.appendChild(o), e.appendChild(n);
@@ -8330,7 +8330,7 @@ function Ws() {
8330
8330
  t.push(e);
8331
8331
  }
8332
8332
  {
8333
- const e = Be.createElement("block");
8333
+ const e = Re.createElement("block");
8334
8334
  e.setAttribute("type", "procedure_return_v1"), t.push(e);
8335
8335
  }
8336
8336
  return t;
@@ -8350,7 +8350,7 @@ function js() {
8350
8350
  o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), t.registerButtonCallback(
8351
8351
  "CREATE_VARIABLE",
8352
8352
  function(i) {
8353
- Re.createVariableButtonHandler(
8353
+ Ie.createVariableButtonHandler(
8354
8354
  i.getTargetWorkspace()
8355
8355
  );
8356
8356
  }
@@ -8359,7 +8359,7 @@ function js() {
8359
8359
  const n = t.getVariablesOfType("");
8360
8360
  if (n.length <= 0)
8361
8361
  return e;
8362
- n.sort(Re.compareByName);
8362
+ n.sort(Ie.compareByName);
8363
8363
  {
8364
8364
  const o = ze.createElement("label");
8365
8365
  o.setAttribute("text", p.LABEL_CREATED), e.push(o);
@@ -8367,11 +8367,11 @@ function js() {
8367
8367
  return n.forEach((o) => {
8368
8368
  {
8369
8369
  const i = ze.createElement("block");
8370
- i.setAttribute("type", "variable_get_v1"), i.appendChild(Re.generateVariableFieldDom(o)), e.push(i);
8370
+ i.setAttribute("type", "variable_get_v1"), i.appendChild(Ie.generateVariableFieldDom(o)), e.push(i);
8371
8371
  }
8372
8372
  {
8373
8373
  const i = ze.createElement("block");
8374
- i.setAttribute("type", "variable_set_v1"), i.appendChild(Re.generateVariableFieldDom(o)), e.push(i);
8374
+ i.setAttribute("type", "variable_set_v1"), i.appendChild(Ie.generateVariableFieldDom(o)), e.push(i);
8375
8375
  }
8376
8376
  }), e;
8377
8377
  }
@@ -8406,7 +8406,7 @@ function Xs(t) {
8406
8406
  e.push(n);
8407
8407
  }
8408
8408
  } else if (t === "func") {
8409
- if (Ne().length > 0) {
8409
+ if (Le().length > 0) {
8410
8410
  const n = ge.createElement("block");
8411
8411
  n.setAttribute("type", "call_func_internal_v1"), e.push(n);
8412
8412
  }
@@ -8433,7 +8433,7 @@ function Js(t) {
8433
8433
  const o = ie.createElement("block");
8434
8434
  o.setAttribute("type", "procedure_return_v1"), n.push(o);
8435
8435
  }
8436
- if (Ne().length > 0) {
8436
+ if (Le().length > 0) {
8437
8437
  const o = ie.createElement("block");
8438
8438
  o.setAttribute("type", "call_func_internal_v1"), n.push(o);
8439
8439
  }
@@ -8457,7 +8457,7 @@ function Js(t) {
8457
8457
  n.push(o);
8458
8458
  }
8459
8459
  } else if (t === "flow") {
8460
- if (Ne().length > 0) {
8460
+ if (Le().length > 0) {
8461
8461
  const o = ie.createElement("block");
8462
8462
  o.setAttribute("type", "call_func_internal_v1"), n.push(o);
8463
8463
  }
@@ -8674,7 +8674,7 @@ const Gn = (t, e, n) => {
8674
8674
  });
8675
8675
  };
8676
8676
  async function Tn(t) {
8677
- const e = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.f38spzuo.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.l3erwxb3.js") }), `./msg/${t}.ts`, 3);
8677
+ const e = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.fj04iwzg.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.os4ap6q2.js") }), `./msg/${t}.ts`, 3);
8678
8678
  Eo(e.default);
8679
8679
  }
8680
8680
  function zt(t) {
@@ -8718,7 +8718,7 @@ class zs {
8718
8718
  },
8719
8719
  preconditionFn: function() {
8720
8720
  const n = Ae();
8721
- return !n || !Je(n) || !n.isDeletable() || !vt(n) || !n.isMovable() || !be(n) ? "disabled" : "enabled";
8721
+ return !n || !Je(n) || !n.isDeletable() || !vt(n) || !n.isMovable() || !Be(n) ? "disabled" : "enabled";
8722
8722
  },
8723
8723
  callback: function(n) {
8724
8724
  var o;
@@ -8775,12 +8775,12 @@ class zs {
8775
8775
  if (s.options.readOnly || Nt.inProgress())
8776
8776
  return !1;
8777
8777
  const c = Ae();
8778
- return !(!c || !Je(c) || !c.isDeletable() || !vt(c) || !c.isMovable() || !be(c));
8778
+ return !(!c || !Je(c) || !c.isDeletable() || !vt(c) || !c.isMovable() || !Be(c));
8779
8779
  },
8780
8780
  callback: function(s, c) {
8781
8781
  c.preventDefault();
8782
8782
  const u = Ae();
8783
- if (!u || !be(u))
8783
+ if (!u || !Be(u))
8784
8784
  return !1;
8785
8785
  const r = u.toCopyData();
8786
8786
  return r ? (s.hideChaff(), localStorage.setItem("blocklyStash", JSON.stringify(r)), !0) : !1;
@@ -8805,12 +8805,12 @@ class zs {
8805
8805
  if (s.options.readOnly || Nt.inProgress())
8806
8806
  return !1;
8807
8807
  const c = Ae();
8808
- return !(!c || !Je(c) || !c.isDeletable() || !vt(c) || !c.isMovable() || !be(c) || c.workspace.isFlyout);
8808
+ return !(!c || !Je(c) || !c.isDeletable() || !vt(c) || !c.isMovable() || !Be(c) || c.workspace.isFlyout);
8809
8809
  },
8810
8810
  callback: function(s, c) {
8811
8811
  c.preventDefault();
8812
8812
  const u = Ae();
8813
- if (!u || !Je(u) || !u.isDeletable() || !be(u))
8813
+ if (!u || !Je(u) || !u.isDeletable() || !Be(u))
8814
8814
  return !1;
8815
8815
  const r = u.toCopyData();
8816
8816
  return r ? (localStorage.setItem("blocklyStash", JSON.stringify(r)), u instanceof go ? u.checkAndDelete() : u.dispose(), !0) : !1;
@@ -10049,7 +10049,7 @@ const ra = /* @__PURE__ */ se({
10049
10049
  },
10050
10050
  emits: ["x-click"],
10051
10051
  setup(t, { emit: e }) {
10052
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = pt(), s = t, c = e, u = Ie(!1), r = j(() => ({
10052
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = pt(), s = t, c = e, u = Oe(!1), r = j(() => ({
10053
10053
  position: "relative",
10054
10054
  background: u.value ? i.value : o.value,
10055
10055
  height: "48px",
@@ -10103,7 +10103,7 @@ const ra = /* @__PURE__ */ se({
10103
10103
  }),
10104
10104
  emits: ["update:modelValue"],
10105
10105
  setup(t, { expose: e }) {
10106
- const { t: n } = Ge(), o = xe(t, "modelValue"), i = Qt(), s = Ie([]);
10106
+ const { t: n } = Ge(), o = xe(t, "modelValue"), i = Qt(), s = Oe([]);
10107
10107
  e({ update: () => {
10108
10108
  if (!i.workspace) {
10109
10109
  console.assert(!1);
@@ -10491,9 +10491,9 @@ const Na = { class: "position-relative w-100 h-100" }, La = /* @__PURE__ */ se({
10491
10491
  }),
10492
10492
  emits: /* @__PURE__ */ Vt(["ready"], ["update:lock", "update:scale"]),
10493
10493
  setup(t, { expose: e, emit: n }) {
10494
- const o = xe(t, "lock"), i = xe(t, "scale"), s = n, c = `blocklyEditor${Pt()}`, u = Ie(), r = Me("parentContainer"), _ = Me("clean"), h = Me("navigator"), d = {};
10494
+ const o = xe(t, "lock"), i = xe(t, "scale"), s = n, c = `blocklyEditor${Pt()}`, u = Oe(), r = Me("parentContainer"), _ = Me("clean"), h = Me("navigator"), d = {};
10495
10495
  ua(d);
10496
- const O = Ie(!0), k = Ie(!1), A = j(() => t.type === "json" ? "tree" : "list"), V = j(() => ({
10496
+ const O = Oe(!0), k = Oe(!1), A = j(() => t.type === "json" ? "tree" : "list"), V = j(() => ({
10497
10497
  position: "absolute",
10498
10498
  background: t.dark ? "#0000007f" : "#ffffff7f",
10499
10499
  top: "1px",
@@ -10602,22 +10602,22 @@ const Na = { class: "position-relative w-100 h-100" }, La = /* @__PURE__ */ se({
10602
10602
  window.addEventListener("keydown", nn, !1);
10603
10603
  }), gn(() => {
10604
10604
  window.removeEventListener("keydown", nn, !1);
10605
- }), Se(
10605
+ }), be(
10606
10606
  () => t.locale,
10607
10607
  (v) => {
10608
10608
  Tn(v);
10609
10609
  }
10610
- ), Se(
10610
+ ), be(
10611
10611
  () => t.dark,
10612
10612
  (v) => {
10613
10613
  oa(v ? "dark" : "light");
10614
10614
  }
10615
- ), Se(x, (v) => {
10615
+ ), be(x, (v) => {
10616
10616
  var F;
10617
10617
  v || (F = d.workspace) == null || F.hideChaff();
10618
- }), Se(o, () => {
10618
+ }), be(o, () => {
10619
10619
  en();
10620
- }), Se(i, () => {
10620
+ }), be(i, () => {
10621
10621
  tn();
10622
10622
  }), e({ loading: O, load: zn, save: Qn, generateCode: Zn, fireStateChange: eo }), (v, F) => {
10623
10623
  const yt = P("v-icon"), Xe = P("x-loading");
@@ -10708,7 +10708,7 @@ const Na = { class: "position-relative w-100 h-100" }, La = /* @__PURE__ */ se({
10708
10708
  }), ba = { class: "text-subtitle-1" }, Ba = { class: "w-100 h-100 overflow-auto" }, Ra = /* @__PURE__ */ se({
10709
10709
  __name: "index",
10710
10710
  setup(t) {
10711
- const { t: e } = Ge(), { sysBarAvail: n } = Ln(), { backgroundColor0: o, backgroundColor2: i } = pt(), s = Ie(""), c = j(() => {
10711
+ const { t: e } = Ge(), { sysBarAvail: n } = Ln(), { backgroundColor0: o, backgroundColor2: i } = pt(), s = Oe(""), c = j(() => {
10712
10712
  let _ = 48;
10713
10713
  return n.value && (_ += 24), {
10714
10714
  position: "relative",
@@ -31,8 +31,6 @@ const _ = {
31
31
  TODAY: "Today",
32
32
  UNDO: "Undo",
33
33
  UNNAMED_KEY: "unnamed",
34
- VARIABLE_GET_CREATE_SET: "Create 'Set %1'",
35
- VARIABLE_SET_CREATE_GET: "Create 'Get %1'",
36
34
  CROSS_TAB_COPY: "Copy",
37
35
  CROSS_TAB_PASTE: "Paste",
38
36
  NO_OPTION: "No Option",
@@ -511,10 +509,10 @@ const _ = {
511
509
  UI_V1_TRIGGER_COMP_EVENT_TOOLTIP: "UI_V1_TRIGGER_COMP_EVENT_TOOLTIP",
512
510
  UI_V1_TRIGGER_COMP_EVENT_HELPURL: "UI_V1_TRIGGER_COMP_EVENT_HELPURL",
513
511
  // variable
514
- VARIABLE_V1_GET_CREATE_SET: 'create "set %1"',
512
+ VARIABLE_GET_CREATE_SET: 'create "set %1"',
513
+ VARIABLE_SET_CREATE_GET: 'create "get %1"',
515
514
  VARIABLE_V1_GET_TOOLTIP: "VARIABLE_V1_GET_TOOLTIP",
516
515
  VARIABLE_V1_GET_HELPURL: "VARIABLE_V1_GET_HELPURL",
517
- VARIABLE_V1_SET_CREATE_GET: 'create "get %1"',
518
516
  VARIABLE_V1_SET_TITLE: "set %1 to %2",
519
517
  VARIABLE_V1_SET_TOOLTIP: "VARIABLE_V1_SET_TOOLTIP",
520
518
  VARIABLE_V1_SET_HELPURL: "VARIABLE_V1_SET_HELPURL"
@@ -5,10 +5,10 @@ const _ = {
5
5
  COLLAPSED_WARNINGS_WARNING: "已折叠的块内包含警告。",
6
6
  COLLAPSE_ALL: "折叠所有块",
7
7
  COLLAPSE_BLOCK: "折叠块",
8
- DELETE_ALL_BLOCKS: "删除所有块(%1个)吗?",
8
+ DELETE_ALL_BLOCKS: "删除所有块(%1个)吗?",
9
9
  DELETE_BLOCK: "删除块",
10
- DELETE_VARIABLE: "删除变量「%1",
11
- DELETE_VARIABLE_CONFIRMATION: "要删除对变量「%2」的%1个引用吗?",
10
+ DELETE_VARIABLE: "删除变量“%1",
11
+ DELETE_VARIABLE_CONFIRMATION: "要删除对变量“%2”的%1个引用吗?",
12
12
  DELETE_X_BLOCKS: "删除%1个块",
13
13
  DIALOG_CANCEL: "取消",
14
14
  DIALOG_OK: "确认",
@@ -27,12 +27,10 @@ const _ = {
27
27
  REDO: "重做",
28
28
  REMOVE_COMMENT: "删除注释",
29
29
  RENAME_VARIABLE: "重命名变量",
30
- RENAME_VARIABLE_TITLE: "将所有「%1」变量重命名为:",
30
+ RENAME_VARIABLE_TITLE: "将所有“%1”变量重命名为:",
31
31
  TODAY: "今天",
32
32
  UNDO: "撤销",
33
33
  UNNAMED_KEY: "未命名",
34
- VARIABLE_GET_CREATE_SET: "创建「设置%1」",
35
- VARIABLE_SET_CREATE_GET: "创建「获取%1」",
36
34
  CROSS_TAB_COPY: "拷贝",
37
35
  CROSS_TAB_PASTE: "黏贴",
38
36
  NO_OPTION: "没有选项",
@@ -511,10 +509,10 @@ const _ = {
511
509
  UI_V1_TRIGGER_COMP_EVENT_TOOLTIP: "UI_V1_TRIGGER_COMP_EVENT_TOOLTIP",
512
510
  UI_V1_TRIGGER_COMP_EVENT_HELPURL: "UI_V1_TRIGGER_COMP_EVENT_HELPURL",
513
511
  // variable
514
- VARIABLE_V1_GET_CREATE_SET: "创建”设置%1“",
512
+ VARIABLE_GET_CREATE_SET: "创建”设置%1“",
513
+ VARIABLE_SET_CREATE_GET: "创建”获取%1“",
515
514
  VARIABLE_V1_GET_TOOLTIP: "VARIABLE_V1_GET_TOOLTIP",
516
515
  VARIABLE_V1_GET_HELPURL: "VARIABLE_V1_GET_HELPURL",
517
- VARIABLE_V1_SET_CREATE_GET: "创建”获取%1“",
518
516
  VARIABLE_V1_SET_TITLE: "将变量%1设置为%2",
519
517
  VARIABLE_V1_SET_TOOLTIP: "VARIABLE_V1_SET_TOOLTIP",
520
518
  VARIABLE_V1_SET_HELPURL: "VARIABLE_V1_SET_HELPURL"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.6.56",
4
+ "version": "0.6.57",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",