x-block-lib 0.8.31 → 0.8.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +68 -68
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
License: see project LICENSE
|
|
8
8
|
Touched: 2021
|
|
9
9
|
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-6cb62cd6]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
10
|
-
import { E as I, r as Tn, M as Rn, s as vo, a as Co, X as Dn, u as C, B as g, j as s, O as r, F as O, b as
|
|
10
|
+
import { E as I, r as Tn, M as Rn, s as vo, a as Co, X as Dn, u as C, B as g, j as s, O as r, F as O, b as $e, i as v, c as Tt, d as ko, e as M, f as T, g as No, h as $, k as ht, p as Yt, l as ot, m as En, n as B, C as Mn, N as it, o as Lo, P as He, q as Me, V as Nt, t as Un, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as Wt, T as Ae, A as Vn, D as Mo, G as Uo, H as xn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
|
|
11
11
|
import { globalState as E } from "x-state-lib";
|
|
12
12
|
import { globalObjects as vt, openConfirmDlg as Go, openPromptDlg as Wo, messageWarning as Yn, useColor as jt, useSystem as Fn, useViewStack as tn, eventBus as kt } from "x-essential-lib";
|
|
13
13
|
import { pkgs as ie, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as en, elements as tt, makeEventId as z, toEventName as Ie, unwrapMethodId as nn, makeMethodId as ee, toMethodName as on, unwrapPropertyId as Jo, makePropertyId as Zt, toPropertyName as wn, isLocaleOfMethodKind as Kn, makeTriggerId as Ot } from "x-runtime-lib";
|
|
14
|
-
import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as sn, useModel as Kt, ref as Lt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as Z, normalizeStyle as W, createElementVNode as w, createCommentVNode as rt, toDisplayString as
|
|
14
|
+
import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as sn, useModel as Kt, ref as Lt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as Z, normalizeStyle as W, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as Ge, Fragment as $n, renderList as ti, useId as We, onUnmounted as ei, useTemplateRef as wt, withKeys as Hn, isRef as ne, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
|
|
15
15
|
import { useI18n as Xt } from "vue-i18n";
|
|
16
16
|
import { useDisplay as ii } from "vuetify";
|
|
17
17
|
var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
|
|
@@ -339,7 +339,7 @@ const gi = (t, e) => {
|
|
|
339
339
|
let u, l;
|
|
340
340
|
if (c.ui === "pixelInput") {
|
|
341
341
|
const _ = jo(this.value) ?? 0;
|
|
342
|
-
u = new
|
|
342
|
+
u = new $e(
|
|
343
343
|
_,
|
|
344
344
|
c.min,
|
|
345
345
|
c.max,
|
|
@@ -350,7 +350,7 @@ const gi = (t, e) => {
|
|
|
350
350
|
), l = "px";
|
|
351
351
|
} else if (c.ui === "percentInput") {
|
|
352
352
|
const _ = Xo(this.value) ?? 0;
|
|
353
|
-
u = new
|
|
353
|
+
u = new $e(
|
|
354
354
|
_,
|
|
355
355
|
c.min,
|
|
356
356
|
c.max,
|
|
@@ -1167,7 +1167,7 @@ function ve(t) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
return k(n);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function Ht(t, e) {
|
|
1171
1171
|
const { properties: n } = E.runtime, { activeObject: o, activeComp: i, depends: a } = E.app, c = [], u = Mt(o.type, o.subtype);
|
|
1172
1172
|
if (!u)
|
|
1173
1173
|
return c;
|
|
@@ -1306,7 +1306,7 @@ function yt(t) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
1308
|
function eo(t, e) {
|
|
1309
|
-
const n = [], o =
|
|
1309
|
+
const n = [], o = Ht(t, e);
|
|
1310
1310
|
for (const { id: i, kind: a, names: c } of o)
|
|
1311
1311
|
n.push([wn(a, c), i]);
|
|
1312
1312
|
return k(n);
|
|
@@ -2248,7 +2248,7 @@ s.forBlock.navigate_to_v1 = function(t) {
|
|
|
2248
2248
|
return `__navigateToV1__(${n}, ${o});
|
|
2249
2249
|
`;
|
|
2250
2250
|
};
|
|
2251
|
-
const
|
|
2251
|
+
const $i = {
|
|
2252
2252
|
init: function() {
|
|
2253
2253
|
this.comp = {
|
|
2254
2254
|
id: void 0,
|
|
@@ -2308,12 +2308,12 @@ const Hi = {
|
|
|
2308
2308
|
this.setWarningText(null);
|
|
2309
2309
|
}
|
|
2310
2310
|
};
|
|
2311
|
-
g.select_comp_v1 =
|
|
2311
|
+
g.select_comp_v1 = $i;
|
|
2312
2312
|
s.forBlock.select_comp_v1 = function(t) {
|
|
2313
2313
|
const e = s.quote_, o = t.comp.id ?? "";
|
|
2314
2314
|
return [e(o), r.ATOMIC];
|
|
2315
2315
|
};
|
|
2316
|
-
const
|
|
2316
|
+
const Hi = {
|
|
2317
2317
|
init: function() {
|
|
2318
2318
|
this.node = {
|
|
2319
2319
|
id: "",
|
|
@@ -2337,7 +2337,7 @@ const $i = {
|
|
|
2337
2337
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2338
2338
|
const e = this.getField("NODE");
|
|
2339
2339
|
e.getOptions(!1), e.setValue(this.node.id);
|
|
2340
|
-
const n =
|
|
2340
|
+
const n = Ht(this.node.id, "read")?.[0];
|
|
2341
2341
|
if (!n)
|
|
2342
2342
|
return;
|
|
2343
2343
|
this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
|
|
@@ -2381,7 +2381,7 @@ const $i = {
|
|
|
2381
2381
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2382
2382
|
const o = this.getField("PROPERTY");
|
|
2383
2383
|
if (o.getOptions(!1), n || !yt(this.property.id)) {
|
|
2384
|
-
const i =
|
|
2384
|
+
const i = Ht(this.node.id, "read")?.[0];
|
|
2385
2385
|
o.setValue(i?.id ?? "");
|
|
2386
2386
|
}
|
|
2387
2387
|
this.onPropChange_(o.getValue());
|
|
@@ -2413,10 +2413,10 @@ const $i = {
|
|
|
2413
2413
|
M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
|
|
2414
2414
|
}
|
|
2415
2415
|
};
|
|
2416
|
-
g.get_app_property_v1 =
|
|
2416
|
+
g.get_app_property_v1 = Hi;
|
|
2417
2417
|
s.forBlock.get_app_property_v1 = function(t) {
|
|
2418
2418
|
const e = s.quote_;
|
|
2419
|
-
return [`__getPropertyV1__(${e(t.property.id)})`, r.ATOMIC];
|
|
2419
|
+
return [`__getPropertyV1__(${e(t.property.id)}, ${e("")})`, r.ATOMIC];
|
|
2420
2420
|
};
|
|
2421
2421
|
const Gi = {
|
|
2422
2422
|
init: function() {
|
|
@@ -2442,7 +2442,7 @@ const Gi = {
|
|
|
2442
2442
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2443
2443
|
const e = this.getField("NODE");
|
|
2444
2444
|
e.getOptions(!1), e.setValue(this.node.id);
|
|
2445
|
-
const n =
|
|
2445
|
+
const n = Ht(this.node.id, "write")?.[0];
|
|
2446
2446
|
if (!n)
|
|
2447
2447
|
return;
|
|
2448
2448
|
this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
|
|
@@ -2486,7 +2486,7 @@ const Gi = {
|
|
|
2486
2486
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2487
2487
|
const o = this.getField("PROPERTY");
|
|
2488
2488
|
if (o.getOptions(!1), n || !yt(this.property.id)) {
|
|
2489
|
-
const i =
|
|
2489
|
+
const i = Ht(this.node.id, "write")?.[0];
|
|
2490
2490
|
o.setValue(i?.id ?? "");
|
|
2491
2491
|
}
|
|
2492
2492
|
this.onPropChange_(o.getValue());
|
|
@@ -2536,8 +2536,8 @@ const Gi = {
|
|
|
2536
2536
|
};
|
|
2537
2537
|
g.set_app_property_v1 = Gi;
|
|
2538
2538
|
s.forBlock.set_app_property_v1 = function(t) {
|
|
2539
|
-
const e = s.quote_, n = t, o = s.valueToCode(n, "VALUE", r.NONE);
|
|
2540
|
-
return `__setPropertyV1__(${e(n.property.id)}, ${o});
|
|
2539
|
+
const e = s.quote_, n = t, o = "", i = s.valueToCode(n, "VALUE", r.NONE);
|
|
2540
|
+
return `__setPropertyV1__(${e(n.property.id)}, ${e(o)}, ${i});
|
|
2541
2541
|
`;
|
|
2542
2542
|
};
|
|
2543
2543
|
const Wi = {
|
|
@@ -4141,7 +4141,7 @@ function Ce() {
|
|
|
4141
4141
|
t.push([o, n]);
|
|
4142
4142
|
}), k(t);
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function H(t) {
|
|
4145
4145
|
const { spaces: e } = E.data, n = e.find((o) => o.id === t);
|
|
4146
4146
|
return n ? n.tables : [];
|
|
4147
4147
|
}
|
|
@@ -4152,7 +4152,7 @@ function J(t, e) {
|
|
|
4152
4152
|
}
|
|
4153
4153
|
function ke(t) {
|
|
4154
4154
|
const e = [];
|
|
4155
|
-
return
|
|
4155
|
+
return H(t).forEach(({ id: o, name: i }) => {
|
|
4156
4156
|
e.push([i, o]);
|
|
4157
4157
|
}), k(e);
|
|
4158
4158
|
}
|
|
@@ -4184,7 +4184,7 @@ function ss(t) {
|
|
|
4184
4184
|
let n, o;
|
|
4185
4185
|
const i = et()?.[0];
|
|
4186
4186
|
if (i) {
|
|
4187
|
-
const u =
|
|
4187
|
+
const u = H(i.id)?.[0];
|
|
4188
4188
|
if (u) {
|
|
4189
4189
|
n = {
|
|
4190
4190
|
space: {
|
|
@@ -4208,7 +4208,7 @@ function ss(t) {
|
|
|
4208
4208
|
type: "update_column_v1",
|
|
4209
4209
|
extraState: n,
|
|
4210
4210
|
fields: o
|
|
4211
|
-
}, c =
|
|
4211
|
+
}, c = $.blocks.append(a, t.workspace);
|
|
4212
4212
|
e.connect(c.outputConnection);
|
|
4213
4213
|
}
|
|
4214
4214
|
function as(t) {
|
|
@@ -4232,7 +4232,7 @@ function as(t) {
|
|
|
4232
4232
|
}
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
|
-
}, o =
|
|
4235
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
4236
4236
|
e.connect(o.previousConnection);
|
|
4237
4237
|
}
|
|
4238
4238
|
const cs = {
|
|
@@ -4317,7 +4317,7 @@ const rs = {
|
|
|
4317
4317
|
if (!t)
|
|
4318
4318
|
return;
|
|
4319
4319
|
this.space.id = t.id, this.space.name = t.name;
|
|
4320
|
-
const e =
|
|
4320
|
+
const e = H(this.space.id)?.[0];
|
|
4321
4321
|
if (!e)
|
|
4322
4322
|
return;
|
|
4323
4323
|
this.table.id = e.id, this.table.name = e.name;
|
|
@@ -4363,7 +4363,7 @@ const rs = {
|
|
|
4363
4363
|
}
|
|
4364
4364
|
const n = e.id !== this.space.id;
|
|
4365
4365
|
if (this.space.id = e.id, this.space.name = e.name, n || !J(this.space.id, this.table.id)) {
|
|
4366
|
-
const o =
|
|
4366
|
+
const o = H(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
|
|
4367
4367
|
i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
|
|
4368
4368
|
}
|
|
4369
4369
|
},
|
|
@@ -4547,7 +4547,7 @@ function ps(t) {
|
|
|
4547
4547
|
const e = t.getInput("TABLE").connection;
|
|
4548
4548
|
if (e.targetBlock())
|
|
4549
4549
|
return;
|
|
4550
|
-
const n = et()?.[0], o =
|
|
4550
|
+
const n = et()?.[0], o = H(n?.id ?? "")?.[0], i = {
|
|
4551
4551
|
type: "select_table_v1",
|
|
4552
4552
|
extraState: {
|
|
4553
4553
|
space: {
|
|
@@ -4559,14 +4559,14 @@ function ps(t) {
|
|
|
4559
4559
|
name: o?.name ?? ""
|
|
4560
4560
|
}
|
|
4561
4561
|
}
|
|
4562
|
-
}, a =
|
|
4562
|
+
}, a = $.blocks.append(i, t.workspace);
|
|
4563
4563
|
e.connect(a.outputConnection);
|
|
4564
4564
|
}
|
|
4565
4565
|
function ds(t) {
|
|
4566
4566
|
const e = t.getInput("CONDITION").connection;
|
|
4567
4567
|
if (e.targetBlock())
|
|
4568
4568
|
return;
|
|
4569
|
-
const n = et()?.[0], o =
|
|
4569
|
+
const n = et()?.[0], o = H(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
|
|
4570
4570
|
type: "cond_atomic_v1",
|
|
4571
4571
|
extraState: {
|
|
4572
4572
|
space: {
|
|
@@ -4584,7 +4584,7 @@ function ds(t) {
|
|
|
4584
4584
|
extend: i?.extend ?? ""
|
|
4585
4585
|
}
|
|
4586
4586
|
}
|
|
4587
|
-
}, c =
|
|
4587
|
+
}, c = $.blocks.append(a, t.workspace);
|
|
4588
4588
|
e.connect(c.outputConnection);
|
|
4589
4589
|
}
|
|
4590
4590
|
function hs(t) {
|
|
@@ -4608,7 +4608,7 @@ function hs(t) {
|
|
|
4608
4608
|
}
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
4611
|
-
}, o =
|
|
4611
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
4612
4612
|
e.connect(o.previousConnection);
|
|
4613
4613
|
}
|
|
4614
4614
|
const fs = {
|
|
@@ -4678,7 +4678,7 @@ function ms(t) {
|
|
|
4678
4678
|
let n, o;
|
|
4679
4679
|
const i = et()?.[0];
|
|
4680
4680
|
if (i) {
|
|
4681
|
-
const u =
|
|
4681
|
+
const u = H(i.id)?.[0];
|
|
4682
4682
|
if (u) {
|
|
4683
4683
|
n = {
|
|
4684
4684
|
space: {
|
|
@@ -4702,7 +4702,7 @@ function ms(t) {
|
|
|
4702
4702
|
type: "select_column_v1",
|
|
4703
4703
|
extraState: n,
|
|
4704
4704
|
fields: o
|
|
4705
|
-
}, c =
|
|
4705
|
+
}, c = $.blocks.append(a, t.workspace);
|
|
4706
4706
|
e.connect(c.outputConnection);
|
|
4707
4707
|
}
|
|
4708
4708
|
function Ts(t) {
|
|
@@ -4711,7 +4711,7 @@ function Ts(t) {
|
|
|
4711
4711
|
return;
|
|
4712
4712
|
const n = {
|
|
4713
4713
|
type: "cond_atomic_v1"
|
|
4714
|
-
}, o =
|
|
4714
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
4715
4715
|
e.connect(o.outputConnection);
|
|
4716
4716
|
}
|
|
4717
4717
|
function Es(t) {
|
|
@@ -4748,7 +4748,7 @@ function Es(t) {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
}
|
|
4750
4750
|
}
|
|
4751
|
-
}, o =
|
|
4751
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
4752
4752
|
e.connect(o.outputConnection);
|
|
4753
4753
|
}
|
|
4754
4754
|
function gs(t) {
|
|
@@ -4772,7 +4772,7 @@ function gs(t) {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
}
|
|
4774
4774
|
}
|
|
4775
|
-
}, o =
|
|
4775
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
4776
4776
|
e.connect(o.previousConnection);
|
|
4777
4777
|
}
|
|
4778
4778
|
T([
|
|
@@ -4929,7 +4929,7 @@ const ys = {
|
|
|
4929
4929
|
this.space.id = t.id, this.space.name = t.name;
|
|
4930
4930
|
const e = this.getField("SPACE");
|
|
4931
4931
|
e.getOptions(!1), e.setValue(this.space.id, !1);
|
|
4932
|
-
const n =
|
|
4932
|
+
const n = H(this.space.id)?.[0];
|
|
4933
4933
|
if (!n)
|
|
4934
4934
|
return;
|
|
4935
4935
|
this.table.id = n.id, this.table.name = n.name, this.table.columns = n.columns;
|
|
@@ -4990,7 +4990,7 @@ const ys = {
|
|
|
4990
4990
|
}
|
|
4991
4991
|
const n = e.id !== this.space.id;
|
|
4992
4992
|
if (this.space.id = e.id, this.space.name = e.name, n || !J(this.space.id, this.table.id)) {
|
|
4993
|
-
const o =
|
|
4993
|
+
const o = H(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
|
|
4994
4994
|
i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
|
|
4995
4995
|
}
|
|
4996
4996
|
},
|
|
@@ -5144,7 +5144,7 @@ const vs = {
|
|
|
5144
5144
|
this.space.id = t.id, this.space.name = t.name;
|
|
5145
5145
|
const e = this.getField("SPACE");
|
|
5146
5146
|
e.getOptions(!1), e.setValue(this.space.id);
|
|
5147
|
-
const n =
|
|
5147
|
+
const n = H(this.space.id)?.[0];
|
|
5148
5148
|
if (!n)
|
|
5149
5149
|
return;
|
|
5150
5150
|
this.table.id = n.id, this.table.name = n.name;
|
|
@@ -5184,7 +5184,7 @@ const vs = {
|
|
|
5184
5184
|
}
|
|
5185
5185
|
let n = !1;
|
|
5186
5186
|
if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !J(this.space.id, this.table.id)) {
|
|
5187
|
-
const i =
|
|
5187
|
+
const i = H(this.space.id)?.[0];
|
|
5188
5188
|
i ? this.setFieldValue(i.id, "TABLE") : this.setFieldValue("", "TABLE");
|
|
5189
5189
|
}
|
|
5190
5190
|
},
|
|
@@ -5325,7 +5325,7 @@ const Ls = {
|
|
|
5325
5325
|
this.space.id = t.id, this.space.name = t.name;
|
|
5326
5326
|
const e = this.getField("SPACE");
|
|
5327
5327
|
e.getOptions(!1), e.setValue(this.space.id, !1);
|
|
5328
|
-
const n =
|
|
5328
|
+
const n = H(this.space.id)?.[0];
|
|
5329
5329
|
if (!n)
|
|
5330
5330
|
return;
|
|
5331
5331
|
this.table.id = n.id, this.table.name = n.name, this.table.columns = n.columns;
|
|
@@ -5386,7 +5386,7 @@ const Ls = {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
const n = e.id !== this.space.id;
|
|
5388
5388
|
if (this.space.id = e.id, this.space.name = e.name, n || !J(this.space.id, this.table.id)) {
|
|
5389
|
-
const o =
|
|
5389
|
+
const o = H(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
|
|
5390
5390
|
i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
|
|
5391
5391
|
}
|
|
5392
5392
|
},
|
|
@@ -5557,7 +5557,7 @@ function Ss(t) {
|
|
|
5557
5557
|
let n, o;
|
|
5558
5558
|
const i = et()?.[0];
|
|
5559
5559
|
if (i) {
|
|
5560
|
-
const u =
|
|
5560
|
+
const u = H(i.id)?.[0];
|
|
5561
5561
|
if (u) {
|
|
5562
5562
|
n = {
|
|
5563
5563
|
space: {
|
|
@@ -5581,7 +5581,7 @@ function Ss(t) {
|
|
|
5581
5581
|
type: "update_column_v1",
|
|
5582
5582
|
extraState: n,
|
|
5583
5583
|
fields: o
|
|
5584
|
-
}, c =
|
|
5584
|
+
}, c = $.blocks.append(a, t.workspace);
|
|
5585
5585
|
e.connect(c.outputConnection);
|
|
5586
5586
|
}
|
|
5587
5587
|
function Bs(t) {
|
|
@@ -5590,7 +5590,7 @@ function Bs(t) {
|
|
|
5590
5590
|
return;
|
|
5591
5591
|
const n = {
|
|
5592
5592
|
type: "cond_atomic_v1"
|
|
5593
|
-
}, o =
|
|
5593
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
5594
5594
|
e.connect(o.outputConnection);
|
|
5595
5595
|
}
|
|
5596
5596
|
function bs(t) {
|
|
@@ -5614,7 +5614,7 @@ function bs(t) {
|
|
|
5614
5614
|
}
|
|
5615
5615
|
}
|
|
5616
5616
|
}
|
|
5617
|
-
}, o =
|
|
5617
|
+
}, o = $.blocks.append(n, t.workspace);
|
|
5618
5618
|
e.connect(o.previousConnection);
|
|
5619
5619
|
}
|
|
5620
5620
|
const Ps = {
|
|
@@ -5800,7 +5800,7 @@ const Ln = C.xml, Us = {
|
|
|
5800
5800
|
g.json_map_v1 = Us;
|
|
5801
5801
|
const Vs = {
|
|
5802
5802
|
init: function() {
|
|
5803
|
-
this.appendDummyInput().appendField(new
|
|
5803
|
+
this.appendDummyInput().appendField(new $e(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
|
|
5804
5804
|
}
|
|
5805
5805
|
};
|
|
5806
5806
|
g.json_number_v1 = Vs;
|
|
@@ -5828,7 +5828,7 @@ const Ks = {
|
|
|
5828
5828
|
}
|
|
5829
5829
|
};
|
|
5830
5830
|
g.list_create_item_v1 = Ks;
|
|
5831
|
-
const
|
|
5831
|
+
const $s = {
|
|
5832
5832
|
init: function() {
|
|
5833
5833
|
this.itemCount_ = 0, this.setMutator(
|
|
5834
5834
|
new Tt.MutatorIcon(
|
|
@@ -5910,7 +5910,7 @@ const Hs = {
|
|
|
5910
5910
|
this.removeInput("ADD" + t);
|
|
5911
5911
|
}
|
|
5912
5912
|
};
|
|
5913
|
-
g.list_create_v1 =
|
|
5913
|
+
g.list_create_v1 = $s;
|
|
5914
5914
|
s.forBlock.list_create_v1 = function(t) {
|
|
5915
5915
|
const e = t, n = new Array(e.itemCount_);
|
|
5916
5916
|
for (let i = 0; i < e.itemCount_; i++)
|
|
@@ -6126,7 +6126,7 @@ s.forBlock.list_set_v1 = function(t) {
|
|
|
6126
6126
|
return `${e}[${n}] = ${o};
|
|
6127
6127
|
`;
|
|
6128
6128
|
};
|
|
6129
|
-
const
|
|
6129
|
+
const Hs = {
|
|
6130
6130
|
// logic_compare
|
|
6131
6131
|
EQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_EQ}",
|
|
6132
6132
|
NEQ: "%{BKY_LOGIC_V1_COMPARE_TOOLTIP_NEQ}",
|
|
@@ -6140,7 +6140,7 @@ const $s = {
|
|
|
6140
6140
|
};
|
|
6141
6141
|
B.register(
|
|
6142
6142
|
"logic_op_tooltip_v1",
|
|
6143
|
-
B.buildTooltipForDropdown("OP",
|
|
6143
|
+
B.buildTooltipForDropdown("OP", Hs)
|
|
6144
6144
|
);
|
|
6145
6145
|
T([
|
|
6146
6146
|
{
|
|
@@ -7898,7 +7898,7 @@ const Sn = C.xml, na = {
|
|
|
7898
7898
|
g.procedure_def_container_v1 = na;
|
|
7899
7899
|
const oa = {
|
|
7900
7900
|
init: function() {
|
|
7901
|
-
const t = new ht(
|
|
7901
|
+
const t = new ht(He.DEFAULT_ARG);
|
|
7902
7902
|
t.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(t, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
|
|
7903
7903
|
},
|
|
7904
7904
|
validator_: function(t) {
|
|
@@ -7923,9 +7923,9 @@ const ia = {
|
|
|
7923
7923
|
init: function() {
|
|
7924
7924
|
this.withReturn = !1, this.args = [];
|
|
7925
7925
|
const t = new ht(
|
|
7926
|
-
|
|
7926
|
+
He.findLegalName("", this)
|
|
7927
7927
|
);
|
|
7928
|
-
t.setValidator(
|
|
7928
|
+
t.setValidator(He.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
|
|
7929
7929
|
new Tt.MutatorIcon(
|
|
7930
7930
|
["procedure_def_item_v1"],
|
|
7931
7931
|
this
|
|
@@ -9533,8 +9533,8 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9533
9533
|
onMouseover: h[3] || (h[3] = (P) => u.value = !0)
|
|
9534
9534
|
}, [
|
|
9535
9535
|
w("div", Va, [
|
|
9536
|
-
w("span", xa,
|
|
9537
|
-
a.desc ? (S(), Z("span", Ya,
|
|
9536
|
+
w("span", xa, $t(a.title), 1),
|
|
9537
|
+
a.desc ? (S(), Z("span", Ya, $t(a.desc), 1)) : rt("", !0)
|
|
9538
9538
|
]),
|
|
9539
9539
|
L(p),
|
|
9540
9540
|
L(m, {
|
|
@@ -9643,7 +9643,7 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9643
9643
|
onStart: l
|
|
9644
9644
|
}, {
|
|
9645
9645
|
default: at(() => [
|
|
9646
|
-
(S(!0), Z(
|
|
9646
|
+
(S(!0), Z($n, null, ti(a.value, (A) => (S(), st(Fa, {
|
|
9647
9647
|
id: A.id,
|
|
9648
9648
|
key: A.id,
|
|
9649
9649
|
desc: A.desc,
|
|
@@ -9653,14 +9653,14 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9653
9653
|
}, null, 8, ["id", "desc", "select", "title"]))), 128))
|
|
9654
9654
|
]),
|
|
9655
9655
|
_: 1
|
|
9656
|
-
}, 8, ["modelValue"])) : (S(), Z("span", wa,
|
|
9656
|
+
}, 8, ["modelValue"])) : (S(), Z("span", wa, $t(R(n)("x-block-lib.noOption")), 1));
|
|
9657
9657
|
}
|
|
9658
|
-
}),
|
|
9658
|
+
}), $a = (t, e) => {
|
|
9659
9659
|
const n = t.__vccOpts || t;
|
|
9660
9660
|
for (const [o, i] of e)
|
|
9661
9661
|
n[o] = i;
|
|
9662
9662
|
return n;
|
|
9663
|
-
},
|
|
9663
|
+
}, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-6cb62cd6"]]), Ga = /* @__PURE__ */ ct({
|
|
9664
9664
|
__name: "index",
|
|
9665
9665
|
props: {
|
|
9666
9666
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -9719,7 +9719,7 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9719
9719
|
t.type === "list" ? d.value?.update() : t.type === "tree" && h.value?.update();
|
|
9720
9720
|
} }), (m, A) => {
|
|
9721
9721
|
const P = D("v-sheet"), U = D("v-btn"), At = D("v-spacer"), nt = D("v-dialog"), Ct = D("v-tooltip");
|
|
9722
|
-
return S(), Z(
|
|
9722
|
+
return S(), Z($n, null, [
|
|
9723
9723
|
L(nt, {
|
|
9724
9724
|
modelValue: R(_),
|
|
9725
9725
|
"onUpdate:modelValue": A[5] || (A[5] = (G) => ne(_) ? _.value = G : null),
|
|
@@ -9728,7 +9728,7 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9728
9728
|
"no-click-animation": "",
|
|
9729
9729
|
persistent: "",
|
|
9730
9730
|
transition: "scroll-x-reverse-transition",
|
|
9731
|
-
onKeydown: A[6] || (A[6] =
|
|
9731
|
+
onKeydown: A[6] || (A[6] = Hn(Ft((G) => _.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
9732
9732
|
}, {
|
|
9733
9733
|
default: at(() => [
|
|
9734
9734
|
w("div", {
|
|
@@ -9757,7 +9757,7 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9757
9757
|
variant: "text",
|
|
9758
9758
|
onClick: A[0] || (A[0] = (G) => _.value = !1)
|
|
9759
9759
|
}),
|
|
9760
|
-
w("span", Wa,
|
|
9760
|
+
w("span", Wa, $t(R(n)("x-block-lib.navigator")), 1),
|
|
9761
9761
|
L(At)
|
|
9762
9762
|
]),
|
|
9763
9763
|
_: 1
|
|
@@ -9766,7 +9766,7 @@ const Ma = /* @__PURE__ */ ct({
|
|
|
9766
9766
|
class: "overflow-y-auto",
|
|
9767
9767
|
style: W(u.value)
|
|
9768
9768
|
}, [
|
|
9769
|
-
t.type === "list" ? (S(), st(
|
|
9769
|
+
t.type === "list" ? (S(), st(Ha, {
|
|
9770
9770
|
key: 0,
|
|
9771
9771
|
ref_key: "blockList",
|
|
9772
9772
|
ref: d,
|
|
@@ -11188,8 +11188,8 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ ct({
|
|
|
11188
11188
|
}
|
|
11189
11189
|
}
|
|
11190
11190
|
const Eo = (N) => {
|
|
11191
|
-
m.value = !0, t.type === "json" ? yc(N, p.workspace) :
|
|
11192
|
-
}, go = () => t.type === "json" ? vc(p.workspace) :
|
|
11191
|
+
m.value = !0, t.type === "json" ? yc(N, p.workspace) : $.workspaces.load(N, p.workspace);
|
|
11192
|
+
}, go = () => t.type === "json" ? vc(p.workspace) : $.workspaces.save(p.workspace), Ao = () => {
|
|
11193
11193
|
if (t.type === "json")
|
|
11194
11194
|
console.assert(!1);
|
|
11195
11195
|
else
|
|
@@ -11306,8 +11306,8 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ ct({
|
|
|
11306
11306
|
},
|
|
11307
11307
|
setup(t) {
|
|
11308
11308
|
const e = t;
|
|
11309
|
-
Ko.registerLanguage("javascript",
|
|
11310
|
-
const n =
|
|
11309
|
+
Ko.registerLanguage("javascript", $o);
|
|
11310
|
+
const n = Ho.component, { backgroundColor2: o } = jt();
|
|
11311
11311
|
return (i, a) => {
|
|
11312
11312
|
const c = D("v-sheet");
|
|
11313
11313
|
return S(), st(c, {
|
|
@@ -11346,7 +11346,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ ct({
|
|
|
11346
11346
|
"no-click-animation": "",
|
|
11347
11347
|
persistent: "",
|
|
11348
11348
|
transition: "dialog-bottom-transition",
|
|
11349
|
-
onKeydown: d[2] || (d[2] =
|
|
11349
|
+
onKeydown: d[2] || (d[2] = Hn(Ft((P) => l.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
11350
11350
|
}, {
|
|
11351
11351
|
default: at(() => [
|
|
11352
11352
|
L(h, {
|
|
@@ -11372,7 +11372,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ ct({
|
|
|
11372
11372
|
variant: "text",
|
|
11373
11373
|
onClick: d[0] || (d[0] = (P) => l.value = !1)
|
|
11374
11374
|
}),
|
|
11375
|
-
w("span", Lc,
|
|
11375
|
+
w("span", Lc, $t(R(e)("x-block-lib.dlg.source.title")), 1),
|
|
11376
11376
|
L(m)
|
|
11377
11377
|
]),
|
|
11378
11378
|
_: 1
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.32",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vue-router": "^4.6.3",
|
|
39
39
|
"vuetify": "^3.10.7",
|
|
40
40
|
"x-essential-lib": "^0.9.2",
|
|
41
|
-
"x-runtime-lib": "^0.8.
|
|
41
|
+
"x-runtime-lib": "^0.8.59",
|
|
42
42
|
"x-state-lib": "^0.3.23"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|