x-block-lib 0.7.21 → 0.7.23
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/core/locale/msg/en.d.ts +0 -1
- package/dist/core/locale/msg/zhHans.d.ts +0 -1
- package/dist/index.js +718 -728
- package/dist/{msg-en.d2bpkdwr.js → msg-en.ltxrwfye.js} +0 -1
- package/dist/{msg-zhHans.l3bo9qik.js → msg-zhHans.5rvy1pzo.js} +0 -1
- package/dist/{vendor.eugzj64g.js → vendor.yapsaj89.js} +60 -60
- package/package.json +4 -4
|
@@ -54,7 +54,7 @@ function H$(l) {
|
|
|
54
54
|
}
|
|
55
55
|
var la = { exports: {} }, wv = la.exports, gE;
|
|
56
56
|
function Jr() {
|
|
57
|
-
return gE || (gE = 1, function(l, m) {
|
|
57
|
+
return gE || (gE = 1, (function(l, m) {
|
|
58
58
|
(function(n, f) {
|
|
59
59
|
l.exports = f();
|
|
60
60
|
})(wv, function() {
|
|
@@ -3261,9 +3261,9 @@ Use ` + r + " instead."), Xm.has(e) || (Xm.add(e), console.warn(e));
|
|
|
3261
3261
|
return o !== "" && e ? o += "+" + e : e && (o = `${e}`), o;
|
|
3262
3262
|
}
|
|
3263
3263
|
};
|
|
3264
|
-
pt.registry = new pt(), function(e) {
|
|
3264
|
+
pt.registry = new pt(), (function(e) {
|
|
3265
3265
|
e = e.modifierKeys || (e.modifierKeys = {}), e[e.Shift = 16] = "Shift", e[e.Control = 17] = "Control", e[e.Alt = 18] = "Alt", e[e.Meta = 91] = "Meta";
|
|
3266
|
-
}(pt || (pt = {}));
|
|
3266
|
+
})(pt || (pt = {}));
|
|
3267
3267
|
var Ln = /* @__PURE__ */ Object.create(null), _m, Em, Dn = [], Tm = { defineBlocksWithJsonArrayInternal: p }, oo = { TEST_ONLY: Tm };
|
|
3268
3268
|
oo.createBlockDefinitionsFromJsonArray = n.createBlockDefinitionsFromJsonArray$$module$build$src$core$common, oo.defineBlocks = n.defineBlocks$$module$build$src$core$common, oo.defineBlocksWithJsonArray = d, oo.draggingConnections = Dn, oo.fireSelectedEvent = Ye, oo.getAllWorkspaces = $e, oo.getBlockTypeCounts = c, oo.getMainWorkspace = A, oo.getParentContainer = a, oo.getSelected = Te, oo.getWorkspaceById = Ae, oo.globalShortcutHandler = _, oo.registerWorkspace = Be, oo.setMainWorkspace = he, oo.setParentContainer = g, oo.setSelected = ye, oo.svgResize = u, oo.unregisterWorkpace = L;
|
|
3269
3269
|
var As = class {
|
|
@@ -3389,9 +3389,9 @@ Use ` + r + " instead."), Xm.has(e) || (Xm.add(e), console.warn(e));
|
|
|
3389
3389
|
return o;
|
|
3390
3390
|
}
|
|
3391
3391
|
};
|
|
3392
|
-
Tt.Capability = Pr, function(e) {
|
|
3392
|
+
Tt.Capability = Pr, (function(e) {
|
|
3393
3393
|
e = e.ComponentWeight || (e.ComponentWeight = {}), e[e.TOOLBOX_WEIGHT = 0] = "TOOLBOX_WEIGHT", e[e.FLYOUT_WEIGHT = 1] = "FLYOUT_WEIGHT", e[e.TRASHCAN_WEIGHT = 2] = "TRASHCAN_WEIGHT", e[e.ZOOM_CONTROLS_WEIGHT = 3] = "ZOOM_CONTROLS_WEIGHT";
|
|
3394
|
-
}(Tt || (Tt = {})), Tt.ComponentWeight;
|
|
3394
|
+
})(Tt || (Tt = {})), Tt.ComponentWeight;
|
|
3395
3395
|
var Pd = !1, Ud = `
|
|
3396
3396
|
.blocklySvg {
|
|
3397
3397
|
background-color: #fff;
|
|
@@ -4502,9 +4502,9 @@ input[type=number] {
|
|
|
4502
4502
|
e = e.getInjectionDiv().querySelector(`.${Pn}`), e instanceof HTMLElement && (!t || t === e.dataset.toastId) && e.remove();
|
|
4503
4503
|
}
|
|
4504
4504
|
};
|
|
4505
|
-
Ui.shownIds = /* @__PURE__ */ new Set(), function(e) {
|
|
4505
|
+
Ui.shownIds = /* @__PURE__ */ new Set(), (function(e) {
|
|
4506
4506
|
e = e.Assertiveness || (e.Assertiveness = {}), e.ASSERTIVE = "assertive", e.POLITE = "polite";
|
|
4507
|
-
}(Ui || (Ui = {})), M(`
|
|
4507
|
+
})(Ui || (Ui = {})), M(`
|
|
4508
4508
|
.${Pn} {
|
|
4509
4509
|
font-size: 1.2rem;
|
|
4510
4510
|
position: absolute;
|
|
@@ -6881,9 +6881,9 @@ children`), this.state = e;
|
|
|
6881
6881
|
super(`Tried to append an icon of type ${e.getType()} when an icon of that type already exists on the block. Use getIcon to access the existing icon.`), this.icon = e;
|
|
6882
6882
|
}
|
|
6883
6883
|
}, If = {};
|
|
6884
|
-
If.DuplicateIconType = Cf, function(e) {
|
|
6884
|
+
If.DuplicateIconType = Cf, (function(e) {
|
|
6885
6885
|
e[e.LEFT = -1] = "LEFT", e[e.CENTRE = 0] = "CENTRE", e[e.RIGHT = 1] = "RIGHT";
|
|
6886
|
-
}(n.Align$$module$build$src$core$inputs$align || (n.Align$$module$build$src$core$inputs$align = {})), n.Align$$module$build$src$core$inputs$align;
|
|
6886
|
+
})(n.Align$$module$build$src$core$inputs$align || (n.Align$$module$build$src$core$inputs$align = {})), n.Align$$module$build$src$core$inputs$align;
|
|
6887
6887
|
var Ki = class extends it {
|
|
6888
6888
|
constructor(e, t, o) {
|
|
6889
6889
|
super(it.SKIP_SETUP), this.class = null, this.EDITABLE = !1, this.maxDisplayLength = 1 / 0, e !== it.SKIP_SETUP && (o ? this.configure_(o) : this.class = t || null, this.setValue(e));
|
|
@@ -10201,9 +10201,9 @@ Blockly.YourGeneratorName.nameDB_.setVariableMap(workspace.getVariableMap());`),
|
|
|
10201
10201
|
static equals(e, t) {
|
|
10202
10202
|
return e.toLowerCase() === t.toLowerCase();
|
|
10203
10203
|
}
|
|
10204
|
-
}, function(e) {
|
|
10204
|
+
}, (function(e) {
|
|
10205
10205
|
e = e.NameType || (e.NameType = {}), e.DEVELOPER_VARIABLE = "DEVELOPER_VARIABLE", e.VARIABLE = "VARIABLE", e.PROCEDURE = "PROCEDURE";
|
|
10206
|
-
}(n.Names$$module$build$src$core$names || (n.Names$$module$build$src$core$names = {})), n.NameType$$module$build$src$core$names = n.Names$$module$build$src$core$names.NameType, n.Names$$module$build$src$core$names.DEVELOPER_VARIABLE_TYPE = n.NameType$$module$build$src$core$names.DEVELOPER_VARIABLE, n.NameType$$module$build$src$core$names, n.Names$$module$build$src$core$names;
|
|
10206
|
+
})(n.Names$$module$build$src$core$names || (n.Names$$module$build$src$core$names = {})), n.NameType$$module$build$src$core$names = n.Names$$module$build$src$core$names.NameType, n.Names$$module$build$src$core$names.DEVELOPER_VARIABLE_TYPE = n.NameType$$module$build$src$core$names.DEVELOPER_VARIABLE, n.NameType$$module$build$src$core$names, n.Names$$module$build$src$core$names;
|
|
10207
10207
|
var jf = class extends Map {
|
|
10208
10208
|
constructor() {
|
|
10209
10209
|
super();
|
|
@@ -15762,7 +15762,7 @@ Blockly.YourGeneratorName.nameDB_.setVariableMap(workspace.getVariableMap());`),
|
|
|
15762
15762
|
var x = {};
|
|
15763
15763
|
return x.Block = Vs, x.BlockFlyoutInflater = J_, x.BlockNavigationPolicy = xf, x.BlockSvg = ut, x.Blocks = Et, x.ButtonFlyoutInflater = K_, x.COLLAPSED_FIELD_NAME = mc, x.COLLAPSED_INPUT_NAME = Bn, x.COLLAPSE_CHARS = Nf, x.CodeGenerator = n.CodeGenerator$$module$build$src$core$generator, x.CollapsibleToolboxCategory = Ks, x.ComponentManager = Tt, x.Connection = Ze, x.ConnectionChecker = e_, x.ConnectionDB = Bs, x.ConnectionNavigationPolicy = Mf, x.ConnectionType = _e, x.ContextMenu = Xi, x.ContextMenuItems = ro, x.ContextMenuRegistry = je, x.Css = Vd, x.DELETE_VARIABLE_ID = Eh, x.DeleteArea = Pc, x.DragTarget = wf, x.DropDownDiv = go, x.Events = pe, x.Extensions = tr, x.Field = it, x.FieldCheckbox = Qi, x.FieldDropdown = ho, x.FieldImage = Zi, x.FieldLabel = Ki, x.FieldLabelSerializable = v_, x.FieldNavigationPolicy = Ff, x.FieldNumber = Yh, x.FieldTextInput = n.FieldTextInput$$module$build$src$core$field_textinput, x.FieldVariable = rl, x.Flyout = Vc, x.FlyoutButton = Co, x.FlyoutButtonNavigationPolicy = kf, x.FlyoutItem = Hs, x.FlyoutMetricsManager = Rf, x.FlyoutNavigationPolicy = Lf, x.FlyoutNavigator = Pf, x.FlyoutSeparator = Uc, x.FlyoutSeparatorNavigationPolicy = Df, x.FocusManager = uo, x.FocusableTreeTraverser = lo, x.Generator = n.CodeGenerator$$module$build$src$core$generator, x.Gesture = Gc, x.Grid = Ih, x.HorizontalFlyout = b_, x.INPUT_VALUE = av, x.Input = Us, x.InsertionMarkerPreviewer = __, x.KeyboardNavigationController = Vf, x.LabelFlyoutInflater = u_, x.LineCursor = Nh, x.Marker = Gf, x.MarkerManager = yh, x.Menu = Xd, x.MenuItem = gc, x.MetricsManager = bh, x.Msg = n.Msg$$module$build$src$core$msg, x.NEXT_STATEMENT = dv, x.Names = n.Names$$module$build$src$core$names, x.Navigator = vh, x.OPPOSITE_TYPE = Ji, x.OUTPUT_VALUE = uv, x.Options = fr, x.PREVIOUS_STATEMENT = hv, x.PROCEDURE_CATEGORY_NAME = Wc, x.Procedures = fo, x.RENAME_VARIABLE_ID = _h, x.RenderedConnection = co, x.Scrollbar = Ut, x.ScrollbarPair = Ch, x.SeparatorFlyoutInflater = Uf, x.ShortcutItems = vr, x.ShortcutRegistry = pt, x.TOOLBOX_AT_BOTTOM = pv, x.TOOLBOX_AT_LEFT = gv, x.TOOLBOX_AT_RIGHT = mv, x.TOOLBOX_AT_TOP = $v, x.Theme = Yi, x.ThemeManager = Qf, x.Themes = lv, x.Toast = Ui, x.Toolbox = cE, x.ToolboxCategory = rr, x.ToolboxItem = h$, x.ToolboxSeparator = nl, x.Tooltip = xo, x.Touch = Fi, x.Trashcan = i_, x.UnattachedFieldError = Gt, x.VARIABLE_CATEGORY_NAME = Zd, x.VARIABLE_DYNAMIC_CATEGORY_NAME = Fh, x.VERSION = cv, x.VariableMap = r_, x.VariableModel = o_, x.Variables = Ht, x.VariablesDynamic = pi, x.VerticalFlyout = Xh, x.WidgetDiv = er, x.Workspace = Ws, x.WorkspaceAudio = t_, x.WorkspaceDragger = Hf, x.WorkspaceNavigationPolicy = Bf, x.WorkspaceSvg = _o, x.Xml = mo, x.ZoomControls = Am, x.blockAnimations = Kn, x.blockRendering = nt, x.browserEvents = Mr, x.bubbles = sl, x.bumpObjects = Bc, x.clipboard = or, x.comments = gi, x.common = oo, x.config = n.config$$module$build$src$core$config, x.constants = xb, x.defineBlocksWithJsonArray = d, x.dialog = Vr, x.dragging = il, x.fieldRegistry = Lc, x.geras = Nr, x.getFocusManager = n.getFocusManager$$module$build$src$core$focus_manager, x.getMainWorkspace = A, x.getSelected = Te, x.hasBubble = Ri, x.hideChaff = Zg, x.icons = $i, x.inject = Pg, x.inputs = mi, x.isCopyable = An, x.isDeletable = jo, x.isDraggable = Os, x.isIcon = Lu, x.isObservable = Xl, x.isPaster = Kg, x.isRenderedElement = Jg, x.isSelectable = Oe, x.isSerializable = Oi, x.isVariableBackedParameterModel = Xt, x.keyboardNavigationController = Hc, x.layers = Mb, x.navigateBlock = Zo, x.navigateStacks = ys, x.procedures = fo, x.registry = xr, x.renderManagement = _c, x.serialization = ov, x.setLocale = qd, x.setParentContainer = g, x.svgResize = u, x.thrasos = d$, x.uiPosition = Pi, x.utils = It, x.zelos = Ir, x.__namespace__ = n, x;
|
|
15764
15764
|
});
|
|
15765
|
-
}(la)), la.exports;
|
|
15765
|
+
})(la)), la.exports;
|
|
15766
15766
|
}
|
|
15767
15767
|
var Rv = Jr();
|
|
15768
15768
|
const kv = /* @__PURE__ */ H$(Rv), {
|
|
@@ -15929,7 +15929,7 @@ const kv = /* @__PURE__ */ H$(Rv), {
|
|
|
15929
15929
|
} = kv;
|
|
15930
15930
|
var ca = { exports: {} }, Lv = ca.exports, mE;
|
|
15931
15931
|
function IT() {
|
|
15932
|
-
return mE || (mE = 1, function(l, m) {
|
|
15932
|
+
return mE || (mE = 1, (function(l, m) {
|
|
15933
15933
|
(function(n, f) {
|
|
15934
15934
|
l.exports = f(Jr());
|
|
15935
15935
|
})(Lv, function(n) {
|
|
@@ -16730,7 +16730,7 @@ function ${d.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
|
|
|
16730
16730
|
var c = {};
|
|
16731
16731
|
return c.JavascriptGenerator = O, c.Order = $, c.javascriptGenerator = g, c.__namespace__ = f, c;
|
|
16732
16732
|
});
|
|
16733
|
-
}(ca)), ca.exports;
|
|
16733
|
+
})(ca)), ca.exports;
|
|
16734
16734
|
}
|
|
16735
16735
|
var Dv = IT();
|
|
16736
16736
|
const xv = /* @__PURE__ */ H$(Dv), {
|
|
@@ -16791,10 +16791,10 @@ function AT(l) {
|
|
|
16791
16791
|
var m = ln(l);
|
|
16792
16792
|
return m == Kv || m == Jv || m == Yv || m == qv;
|
|
16793
16793
|
}
|
|
16794
|
-
var g$ = lr["__core-js_shared__"], TE = function() {
|
|
16794
|
+
var g$ = lr["__core-js_shared__"], TE = (function() {
|
|
16795
16795
|
var l = /[^.]+$/.exec(g$ && g$.keys && g$.keys.IE_PROTO || "");
|
|
16796
16796
|
return l ? "Symbol(src)_1." + l : "";
|
|
16797
|
-
}();
|
|
16797
|
+
})();
|
|
16798
16798
|
function Zv(l) {
|
|
16799
16799
|
return !!TE && TE in l;
|
|
16800
16800
|
}
|
|
@@ -16828,7 +16828,7 @@ function ss(l, m) {
|
|
|
16828
16828
|
var n = aC(l, m);
|
|
16829
16829
|
return cC(n) ? n : void 0;
|
|
16830
16830
|
}
|
|
16831
|
-
var R$ = ss(lr, "WeakMap"), bE = Object.create, uC = /* @__PURE__ */ function() {
|
|
16831
|
+
var R$ = ss(lr, "WeakMap"), bE = Object.create, uC = /* @__PURE__ */ (function() {
|
|
16832
16832
|
function l() {
|
|
16833
16833
|
}
|
|
16834
16834
|
return function(m) {
|
|
@@ -16840,13 +16840,13 @@ var R$ = ss(lr, "WeakMap"), bE = Object.create, uC = /* @__PURE__ */ function()
|
|
|
16840
16840
|
var n = new l();
|
|
16841
16841
|
return l.prototype = void 0, n;
|
|
16842
16842
|
};
|
|
16843
|
-
}(), vE = function() {
|
|
16843
|
+
})(), vE = (function() {
|
|
16844
16844
|
try {
|
|
16845
16845
|
var l = ss(Object, "defineProperty");
|
|
16846
16846
|
return l({}, "", {}), l;
|
|
16847
16847
|
} catch {
|
|
16848
16848
|
}
|
|
16849
|
-
}();
|
|
16849
|
+
})();
|
|
16850
16850
|
function dC(l, m) {
|
|
16851
16851
|
for (var n = -1, f = l == null ? 0 : l.length; ++n < f && m(l[n], n, l) !== !1; )
|
|
16852
16852
|
;
|
|
@@ -16894,9 +16894,9 @@ var CC = "[object Arguments]";
|
|
|
16894
16894
|
function CE(l) {
|
|
16895
16895
|
return bi(l) && ln(l) == CC;
|
|
16896
16896
|
}
|
|
16897
|
-
var RT = Object.prototype, IC = RT.hasOwnProperty, NC = RT.propertyIsEnumerable, yC = CE(/* @__PURE__ */ function() {
|
|
16897
|
+
var RT = Object.prototype, IC = RT.hasOwnProperty, NC = RT.propertyIsEnumerable, yC = CE(/* @__PURE__ */ (function() {
|
|
16898
16898
|
return arguments;
|
|
16899
|
-
}()) ? CE : function(l) {
|
|
16899
|
+
})()) ? CE : function(l) {
|
|
16900
16900
|
return bi(l) && IC.call(l, "callee") && !NC.call(l, "callee");
|
|
16901
16901
|
};
|
|
16902
16902
|
function OC() {
|
|
@@ -16913,13 +16913,13 @@ function W$(l) {
|
|
|
16913
16913
|
return l(m);
|
|
16914
16914
|
};
|
|
16915
16915
|
}
|
|
16916
|
-
var LT = typeof exports == "object" && exports && !exports.nodeType && exports, dl = LT && typeof module == "object" && module && !module.nodeType && module, tI = dl && dl.exports === LT, m$ = tI && NT.process, sn = function() {
|
|
16916
|
+
var LT = typeof exports == "object" && exports && !exports.nodeType && exports, dl = LT && typeof module == "object" && module && !module.nodeType && module, tI = dl && dl.exports === LT, m$ = tI && NT.process, sn = (function() {
|
|
16917
16917
|
try {
|
|
16918
16918
|
var l = dl && dl.require && dl.require("util").types;
|
|
16919
16919
|
return l || m$ && m$.binding && m$.binding("util");
|
|
16920
16920
|
} catch {
|
|
16921
16921
|
}
|
|
16922
|
-
}(), yE = sn && sn.isTypedArray, DT = yE ? W$(yE) : eI, oI = Object.prototype, rI = oI.hasOwnProperty;
|
|
16922
|
+
})(), yE = sn && sn.isTypedArray, DT = yE ? W$(yE) : eI, oI = Object.prototype, rI = oI.hasOwnProperty;
|
|
16923
16923
|
function iI(l, m) {
|
|
16924
16924
|
var n = rn(l), f = !n && yC(l), I = !n && !f && va(l), C = !n && !f && !I && DT(l), y = n || f || I || C, k = y ? vC(l.length, String) : [], v = k.length;
|
|
16925
16925
|
for (var H in l)
|
|
@@ -17678,7 +17678,7 @@ var XR = IN(function(l, m, n) {
|
|
|
17678
17678
|
return l + (n ? "_" : "") + m.toLowerCase();
|
|
17679
17679
|
}), ua = { exports: {} }, da = { exports: {} }, SO = da.exports, XE;
|
|
17680
17680
|
function wO() {
|
|
17681
|
-
return XE || (XE = 1, function(l, m) {
|
|
17681
|
+
return XE || (XE = 1, (function(l, m) {
|
|
17682
17682
|
(function(n, f) {
|
|
17683
17683
|
l.exports = f(Jr());
|
|
17684
17684
|
})(SO, function(n) {
|
|
@@ -18570,11 +18570,11 @@ int ${g.FUNCTION_NAME_PLACEHOLDER_}(String haystack, String needle) {
|
|
|
18570
18570
|
var Ye = {};
|
|
18571
18571
|
return Ye.DartGenerator = O, Ye.Order = $, Ye.dartGenerator = Te, Ye.__namespace__ = f, Ye;
|
|
18572
18572
|
});
|
|
18573
|
-
}(da)), da.exports;
|
|
18573
|
+
})(da)), da.exports;
|
|
18574
18574
|
}
|
|
18575
18575
|
var ha = { exports: {} }, RO = ha.exports, YE;
|
|
18576
18576
|
function kO() {
|
|
18577
|
-
return YE || (YE = 1, function(l, m) {
|
|
18577
|
+
return YE || (YE = 1, (function(l, m) {
|
|
18578
18578
|
(function(n, f) {
|
|
18579
18579
|
l.exports = f(Jr());
|
|
18580
18580
|
})(RO, function(n) {
|
|
@@ -19335,11 +19335,11 @@ end
|
|
|
19335
19335
|
var u = {};
|
|
19336
19336
|
return u.LuaGenerator = Oe, u.Order = O, u.luaGenerator = a, u.__namespace__ = f, u;
|
|
19337
19337
|
});
|
|
19338
|
-
}(ha)), ha.exports;
|
|
19338
|
+
})(ha)), ha.exports;
|
|
19339
19339
|
}
|
|
19340
19340
|
var $a = { exports: {} }, LO = $a.exports, KE;
|
|
19341
19341
|
function DO() {
|
|
19342
|
-
return KE || (KE = 1, function(l, m) {
|
|
19342
|
+
return KE || (KE = 1, (function(l, m) {
|
|
19343
19343
|
(function(n, f) {
|
|
19344
19344
|
l.exports = f(Jr());
|
|
19345
19345
|
})(LO, function(n) {
|
|
@@ -20137,11 +20137,11 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}($text, $where1, $at1, $where2, $at2) {
|
|
|
20137
20137
|
var Ye = {};
|
|
20138
20138
|
return Ye.Order = $, Ye.PhpGenerator = O, Ye.phpGenerator = Te, Ye.__namespace__ = f, Ye;
|
|
20139
20139
|
});
|
|
20140
|
-
}($a)), $a.exports;
|
|
20140
|
+
})($a)), $a.exports;
|
|
20141
20141
|
}
|
|
20142
20142
|
var pa = { exports: {} }, xO = pa.exports, JE;
|
|
20143
20143
|
function MO() {
|
|
20144
|
-
return JE || (JE = 1, function(l, m) {
|
|
20144
|
+
return JE || (JE = 1, (function(l, m) {
|
|
20145
20145
|
(function(n, f) {
|
|
20146
20146
|
l.exports = f(Jr());
|
|
20147
20147
|
})(xO, function(n) {
|
|
@@ -20868,15 +20868,15 @@ def ${c.FUNCTION_NAME_PLACEHOLDER_}(msg):
|
|
|
20868
20868
|
var g = {};
|
|
20869
20869
|
return g.Order = $, g.PythonGenerator = O, g.pythonGenerator = Ye, g.__namespace__ = f, g;
|
|
20870
20870
|
});
|
|
20871
|
-
}(pa)), pa.exports;
|
|
20871
|
+
})(pa)), pa.exports;
|
|
20872
20872
|
}
|
|
20873
20873
|
/*! For license information please see index.js.LICENSE.txt */
|
|
20874
20874
|
var FO = ua.exports, qE;
|
|
20875
20875
|
function BO() {
|
|
20876
|
-
return qE || (qE = 1, function(l, m) {
|
|
20876
|
+
return qE || (qE = 1, (function(l, m) {
|
|
20877
20877
|
(function(n, f) {
|
|
20878
20878
|
l.exports = f(Jr(), IT(), wO(), kO(), DO(), MO());
|
|
20879
|
-
})(FO, (n, f, I, C, y, k) => (() => {
|
|
20879
|
+
})(FO, ((n, f, I, C, y, k) => (() => {
|
|
20880
20880
|
var v = { 127: (S) => {
|
|
20881
20881
|
S.exports = f;
|
|
20882
20882
|
}, 157: (S) => {
|
|
@@ -20964,10 +20964,10 @@ function BO() {
|
|
|
20964
20964
|
}
|
|
20965
20965
|
var ke;
|
|
20966
20966
|
return fe;
|
|
20967
|
-
})(), Qe = new Ce(K, qe, xe, (ke) => {
|
|
20967
|
+
})(), Qe = new Ce(K, qe, xe, ((ke) => {
|
|
20968
20968
|
var Ve;
|
|
20969
20969
|
this.setSelectedValue(ke.getValue()), (Ve = this.selectionCallback) === null || Ve === void 0 || Ve.call(this, ke);
|
|
20970
|
-
});
|
|
20970
|
+
}));
|
|
20971
20971
|
this.itemIndices.set(Qe.getId(), this.itemIndices.size), this.items.push(Qe);
|
|
20972
20972
|
}
|
|
20973
20973
|
}
|
|
@@ -21062,9 +21062,9 @@ function BO() {
|
|
|
21062
21062
|
var K;
|
|
21063
21063
|
q.DropDownDiv.clearContent();
|
|
21064
21064
|
const ee = !!(!((K = this.getSourceBlock()) === null || K === void 0) && K.workspace.RTL);
|
|
21065
|
-
this.grid = new Le(q.DropDownDiv.getContentDiv(), this.getOptions(!1), this.columns, ee, (xe) => {
|
|
21065
|
+
this.grid = new Le(q.DropDownDiv.getContentDiv(), this.getOptions(!1), this.columns, ee, ((xe) => {
|
|
21066
21066
|
q.DropDownDiv.hideIfOwner(this), this.setValue(xe.getValue());
|
|
21067
|
-
}), q.DropDownDiv.getContentDiv().classList.add("blocklyFieldGridContainer");
|
|
21067
|
+
})), q.DropDownDiv.getContentDiv().classList.add("blocklyFieldGridContainer");
|
|
21068
21068
|
const ge = this.getColours();
|
|
21069
21069
|
ge && ge.border && q.DropDownDiv.setColour(ge.primary, ge.border), q.DropDownDiv.showPositionedByField(this, this.dropdownDispose_.bind(this));
|
|
21070
21070
|
const fe = this.getValue();
|
|
@@ -21220,10 +21220,10 @@ function BO() {
|
|
|
21220
21220
|
}
|
|
21221
21221
|
}
|
|
21222
21222
|
function oe(L, A) {
|
|
21223
|
-
return L.map((he, Te) => {
|
|
21223
|
+
return L.map(((he, Te) => {
|
|
21224
21224
|
const ye = document.createElement("div");
|
|
21225
21225
|
return ye.className = "blocklyColourSwatch", ye.style.backgroundColor = he, A && Te < A.length && (ye.title = A[Te]), [ye, he];
|
|
21226
|
-
});
|
|
21226
|
+
}));
|
|
21227
21227
|
}
|
|
21228
21228
|
function q() {
|
|
21229
21229
|
J.fieldRegistry.register("field_colour", ue);
|
|
@@ -21512,15 +21512,15 @@ def ${A.FUNCTION_NAME_PLACEHOLDER_}(colour1, colour2, ratio):
|
|
|
21512
21512
|
ne(L), vt(L), de(L), $e(L);
|
|
21513
21513
|
}
|
|
21514
21514
|
})(), P;
|
|
21515
|
-
})());
|
|
21516
|
-
}(ua)), ua.exports;
|
|
21515
|
+
})()));
|
|
21516
|
+
})(ua)), ua.exports;
|
|
21517
21517
|
}
|
|
21518
21518
|
var YR = BO(), ga = { exports: {} }, PO = ga.exports, ZE;
|
|
21519
21519
|
function UO() {
|
|
21520
|
-
return ZE || (ZE = 1, function(l, m) {
|
|
21520
|
+
return ZE || (ZE = 1, (function(l, m) {
|
|
21521
21521
|
(function(n, f) {
|
|
21522
21522
|
l.exports = f(Jr());
|
|
21523
|
-
})(PO, (n) => (() => {
|
|
21523
|
+
})(PO, ((n) => (() => {
|
|
21524
21524
|
var f = { 370: (S) => {
|
|
21525
21525
|
S.exports = n;
|
|
21526
21526
|
} }, I = {};
|
|
@@ -21661,8 +21661,8 @@ function UO() {
|
|
|
21661
21661
|
}
|
|
21662
21662
|
}
|
|
21663
21663
|
return y;
|
|
21664
|
-
})());
|
|
21665
|
-
}(ga)), ga.exports;
|
|
21664
|
+
})()));
|
|
21665
|
+
})(ga)), ga.exports;
|
|
21666
21666
|
}
|
|
21667
21667
|
var KR = UO(), VO = Object.defineProperty, Na = Object.getOwnPropertySymbols, tb = Object.prototype.hasOwnProperty, ob = Object.prototype.propertyIsEnumerable, QE = (l, m, n) => m in l ? VO(l, m, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[m] = n, en = (l, m) => {
|
|
21668
21668
|
for (var n in m || (m = {}))
|
|
@@ -22221,14 +22221,14 @@ function Io(l) {
|
|
|
22221
22221
|
newDraggableIndex: fi
|
|
22222
22222
|
}, l));
|
|
22223
22223
|
}
|
|
22224
|
-
var ce, Wt, Ge, yt, os, fa, kt, _i, tn, Ho, pl, fi, ra, po, Qs = !1, Oa = !1, Aa = [], es, ir, b$, v$, uT, dT, cl, qs, gl, ml = !1, ia = !1, _a, Eo, C$ = [], M$ = !1, Sa = [], xa = typeof document < "u", sa = sb, hT = El || Zr ? "cssFloat" : "float", $A = xa && !nb && !sb && "draggable" in document.createElement("div"), $b = function() {
|
|
22224
|
+
var ce, Wt, Ge, yt, os, fa, kt, _i, tn, Ho, pl, fi, ra, po, Qs = !1, Oa = !1, Aa = [], es, ir, b$, v$, uT, dT, cl, qs, gl, ml = !1, ia = !1, _a, Eo, C$ = [], M$ = !1, Sa = [], xa = typeof document < "u", sa = sb, hT = El || Zr ? "cssFloat" : "float", $A = xa && !nb && !sb && "draggable" in document.createElement("div"), $b = (function() {
|
|
22225
22225
|
if (xa) {
|
|
22226
22226
|
if (Zr)
|
|
22227
22227
|
return !1;
|
|
22228
22228
|
var l = document.createElement("x");
|
|
22229
22229
|
return l.style.cssText = "pointer-events:auto", l.style.pointerEvents === "auto";
|
|
22230
22230
|
}
|
|
22231
|
-
}(), pb = function(l, m) {
|
|
22231
|
+
})(), pb = function(l, m) {
|
|
22232
22232
|
var n = Me(l), f = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), I = nn(l, 0, m), C = nn(l, 1, m), y = I && Me(I), k = C && Me(C), v = y && parseInt(y.marginLeft) + parseInt(y.marginRight) + qt(I).width, H = k && parseInt(k.marginLeft) + parseInt(k.marginRight) + qt(C).width;
|
|
22233
22233
|
if (n.display === "flex")
|
|
22234
22234
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -23259,10 +23259,10 @@ var ba = { exports: {} };
|
|
|
23259
23259
|
/*! For license information please see index.js.LICENSE.txt */
|
|
23260
23260
|
var kA = ba.exports, mT;
|
|
23261
23261
|
function LA() {
|
|
23262
|
-
return mT || (mT = 1, function(l, m) {
|
|
23262
|
+
return mT || (mT = 1, (function(l, m) {
|
|
23263
23263
|
(function(n, f) {
|
|
23264
23264
|
l.exports = f(Jr());
|
|
23265
|
-
})(kA, (n) => (() => {
|
|
23265
|
+
})(kA, ((n) => (() => {
|
|
23266
23266
|
var f = { 370: (P) => {
|
|
23267
23267
|
P.exports = n;
|
|
23268
23268
|
} }, I = {};
|
|
@@ -23344,8 +23344,8 @@ function LA() {
|
|
|
23344
23344
|
S.group ? k.Events.setGroup(S.group) : k.Events.setGroup(!0), H(B, !0), k.Events.setGroup(z);
|
|
23345
23345
|
}
|
|
23346
23346
|
return v.EVENT_TYPE = "block_shadow_state_change", k.registry.register(k.registry.Type.EVENT, v.EVENT_TYPE, v), y;
|
|
23347
|
-
})());
|
|
23348
|
-
}(ba)), ba.exports;
|
|
23347
|
+
})()));
|
|
23348
|
+
})(ba)), ba.exports;
|
|
23349
23349
|
}
|
|
23350
23350
|
var qR = LA(), A$, fT;
|
|
23351
23351
|
function DA() {
|
|
@@ -25065,19 +25065,19 @@ function ZR(l) {
|
|
|
25065
25065
|
}
|
|
25066
25066
|
var UA = bT({ props: { code: { type: String, required: !0 }, language: { type: String, default: "" }, autodetect: { type: Boolean, default: !0 }, ignoreIllegals: { type: Boolean, default: !0 } }, setup: function(l) {
|
|
25067
25067
|
var m = vT(l.language);
|
|
25068
|
-
V$(function() {
|
|
25068
|
+
V$((function() {
|
|
25069
25069
|
return l.language;
|
|
25070
|
-
}, function(I) {
|
|
25070
|
+
}), (function(I) {
|
|
25071
25071
|
m.value = I;
|
|
25072
|
-
});
|
|
25073
|
-
var n = Ei(function() {
|
|
25072
|
+
}));
|
|
25073
|
+
var n = Ei((function() {
|
|
25074
25074
|
return l.autodetect || !m.value;
|
|
25075
|
-
}), f = Ei(function() {
|
|
25075
|
+
})), f = Ei((function() {
|
|
25076
25076
|
return !n.value && !S$.getLanguage(m.value);
|
|
25077
|
-
});
|
|
25078
|
-
return { className: Ei(function() {
|
|
25077
|
+
}));
|
|
25078
|
+
return { className: Ei((function() {
|
|
25079
25079
|
return f.value ? "" : "hljs " + m.value;
|
|
25080
|
-
}), highlightedCode: Ei(function() {
|
|
25080
|
+
})), highlightedCode: Ei((function() {
|
|
25081
25081
|
var I;
|
|
25082
25082
|
if (f.value) return console.warn('The language "' + m.value + '" you specified could not be found.'), l.code.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
25083
25083
|
if (n.value) {
|
|
@@ -25085,7 +25085,7 @@ var UA = bT({ props: { code: { type: String, required: !0 }, language: { type: S
|
|
|
25085
25085
|
return m.value = (I = C.language) !== null && I !== void 0 ? I : "", C.value;
|
|
25086
25086
|
}
|
|
25087
25087
|
return (C = S$.highlight(l.code, { language: m.value, ignoreIllegals: l.ignoreIllegals })).value;
|
|
25088
|
-
}) };
|
|
25088
|
+
})) };
|
|
25089
25089
|
}, render: function() {
|
|
25090
25090
|
return w$("pre", {}, [w$("code", { class: this.className, innerHTML: this.highlightedCode })]);
|
|
25091
25091
|
} }), QR = { component: UA };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.23",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"vue-i18n": "^11.1.11",
|
|
36
36
|
"vue-router": "^4.5.1",
|
|
37
37
|
"vuetify": "^3.9.5",
|
|
38
|
-
"x-essential-lib": "^0.8.
|
|
39
|
-
"x-runtime-lib": "^0.7.
|
|
40
|
-
"x-state-lib": "^0.3.
|
|
38
|
+
"x-essential-lib": "^0.8.30",
|
|
39
|
+
"x-runtime-lib": "^0.7.36",
|
|
40
|
+
"x-state-lib": "^0.3.11"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eslint/js": "^9.34.0",
|