x-block-lib 0.7.7 → 0.7.9
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 +33 -33
- package/dist/{vendor.1v4zfi9x.js → vendor.k6kjk1km.js} +5794 -5507
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
Website: https://highlightjs.org/
|
|
7
7
|
License: see project LICENSE
|
|
8
8
|
Touched: 2021
|
|
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-
|
|
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-2ba1be08]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:10px!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
10
|
import { provide as Zn, inject as eo, defineComponent as oe, resolveComponent as P, createBlock as Z, openBlock as D, unref as V, withCtx as ee, createVNode as B, mergeProps as wt, useModel as Me, ref as Ae, computed as K, resolveDirective as to, withDirectives as no, createElementBlock as Q, normalizeStyle as W, createElementVNode as j, toDisplayString as at, withModifiers as Be, mergeModels as bt, Fragment as _n, renderList as oo, useId as Bt, onUnmounted as pn, useTemplateRef as Re, withKeys as hn, isRef as Je, createCommentVNode as me, onMounted as zt, nextTick as io, onBeforeUnmount as so, watch as Se, renderSlot as ao } from "vue";
|
|
11
|
-
import { d as h, j as s, O as c, f as co, F as dn, M as _, E, r as Zt, u as v, s as lo, X as he, B as d, i as U, a as k, c as De, b as Rt, e as $, g as Te, h as re, p as Ue, k as z, l as en, m as R, C as fn, N as te, n as uo, P as Dt, V as ge, o as we, q as mn, t as ro, v as _o, w as po, S as ho, x as fo, y as mo, T as ct, z as Tn, A as To, D as Eo, G as En, H as go, I as Ao, J as Io, K as Oo, L as Co, Q as ko, R as vo } from "./vendor.
|
|
11
|
+
import { d as h, j as s, O as c, f as co, F as dn, M as _, E, r as Zt, u as v, s as lo, X as he, B as d, i as U, a as k, c as De, b as Rt, e as $, g as Te, h as re, p as Ue, k as z, l as en, m as R, C as fn, N as te, n as uo, P as Dt, V as ge, o as we, q as mn, t as ro, v as _o, w as po, S as ho, x as fo, y as mo, T as ct, z as Tn, A as To, D as Eo, G as En, H as go, I as Ao, J as Io, K as Oo, L as Co, Q as ko, R as vo } from "./vendor.k6kjk1km.js";
|
|
12
12
|
import { globalObjects as ie, openConfirmDlg as yo, openPromptDlg as No, messageWarning as gn, useColor as Ke, useSystem as An, useViewStack as Kt } from "x-essential-lib";
|
|
13
13
|
import { elements as x, pkgs as Ve, getPropTag as lt, parsePixelStr as Lo, parsePercentStr as So } from "x-runtime-lib";
|
|
14
14
|
import { globalState as T } from "x-state-lib";
|
|
@@ -9120,7 +9120,7 @@ mn.setPrompt(async (t, e, n) => {
|
|
|
9120
9120
|
title: "",
|
|
9121
9121
|
value: e
|
|
9122
9122
|
});
|
|
9123
|
-
n(String(o));
|
|
9123
|
+
o !== void 0 && n(String(o));
|
|
9124
9124
|
});
|
|
9125
9125
|
const Pn = (t, e, n) => {
|
|
9126
9126
|
const o = t[e];
|
|
@@ -10304,9 +10304,9 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10304
10304
|
}, {
|
|
10305
10305
|
activator: ee(({ props: I }) => [
|
|
10306
10306
|
B(p, wt(I, {
|
|
10307
|
-
variant: "outlined",
|
|
10308
10307
|
density: "comfortable",
|
|
10309
10308
|
icon: "mdi-broom",
|
|
10309
|
+
variant: "outlined",
|
|
10310
10310
|
onClick: l
|
|
10311
10311
|
}), null, 16)
|
|
10312
10312
|
]),
|
|
@@ -10330,9 +10330,9 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10330
10330
|
}, {
|
|
10331
10331
|
activator: ee(({ props: u }) => [
|
|
10332
10332
|
B(a, wt(u, {
|
|
10333
|
-
variant: "outlined",
|
|
10334
10333
|
density: "comfortable",
|
|
10335
10334
|
icon: n.value ? "mdi-lock" : "mdi-lock-open",
|
|
10335
|
+
variant: "outlined",
|
|
10336
10336
|
onClick: i[0] || (i[0] = (r) => n.value = !n.value)
|
|
10337
10337
|
}), null, 16, ["icon"])
|
|
10338
10338
|
]),
|
|
@@ -10371,8 +10371,8 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10371
10371
|
class: "d-flex align-center cursor-pointer",
|
|
10372
10372
|
style: W(r.value),
|
|
10373
10373
|
onClick: I[1] || (I[1] = (M) => l("x-click", a.id)),
|
|
10374
|
-
|
|
10375
|
-
|
|
10374
|
+
onMouseout: I[2] || (I[2] = (M) => u.value = !1),
|
|
10375
|
+
onMouseover: I[3] || (I[3] = (M) => u.value = !0)
|
|
10376
10376
|
}, [
|
|
10377
10377
|
j("span", oa, at(a.title), 1),
|
|
10378
10378
|
B(m),
|
|
@@ -10475,18 +10475,18 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10475
10475
|
animation: 150,
|
|
10476
10476
|
"ghost-class": "ghost",
|
|
10477
10477
|
handle: ".x-handle",
|
|
10478
|
-
|
|
10478
|
+
onEnd: A,
|
|
10479
10479
|
onMove: p,
|
|
10480
|
-
|
|
10480
|
+
onStart: r
|
|
10481
10481
|
}, {
|
|
10482
10482
|
default: ee(() => [
|
|
10483
10483
|
(D(!0), Q(_n, null, oo(a.value, (g) => (D(), Z(ia, {
|
|
10484
10484
|
id: g.id,
|
|
10485
10485
|
key: g.id,
|
|
10486
|
-
title: g.name,
|
|
10487
10486
|
select: g.select,
|
|
10487
|
+
title: g.name,
|
|
10488
10488
|
onXClick: I
|
|
10489
|
-
}, null, 8, ["id", "
|
|
10489
|
+
}, null, 8, ["id", "select", "title"]))), 128))
|
|
10490
10490
|
]),
|
|
10491
10491
|
_: 1
|
|
10492
10492
|
}, 8, ["modelValue"])) : (D(), Q("span", sa, at(V(n)("x-block-lib.noOption")), 1));
|
|
@@ -10496,7 +10496,7 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10496
10496
|
for (const [o, i] of e)
|
|
10497
10497
|
n[o] = i;
|
|
10498
10498
|
return n;
|
|
10499
|
-
}, la = /* @__PURE__ */ ca(aa, [["__scopeId", "data-v-
|
|
10499
|
+
}, la = /* @__PURE__ */ ca(aa, [["__scopeId", "data-v-2ba1be08"]]), ua = /* @__PURE__ */ oe({
|
|
10500
10500
|
__name: "index",
|
|
10501
10501
|
props: {
|
|
10502
10502
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -10559,11 +10559,11 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10559
10559
|
B(de, {
|
|
10560
10560
|
modelValue: V(p),
|
|
10561
10561
|
"onUpdate:modelValue": g[5] || (g[5] = (G) => Je(p) ? p.value = G : null),
|
|
10562
|
-
transition: "scroll-x-reverse-transition",
|
|
10563
|
-
persistent: "",
|
|
10564
|
-
"no-click-animation": "",
|
|
10565
|
-
fullscreen: "",
|
|
10566
10562
|
eager: "",
|
|
10563
|
+
fullscreen: "",
|
|
10564
|
+
"no-click-animation": "",
|
|
10565
|
+
persistent: "",
|
|
10566
|
+
transition: "scroll-x-reverse-transition",
|
|
10567
10567
|
onKeydown: g[6] || (g[6] = hn(Be((G) => p.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
10568
10568
|
}, {
|
|
10569
10569
|
default: ee(() => [
|
|
@@ -10588,9 +10588,9 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10588
10588
|
}, {
|
|
10589
10589
|
default: ee(() => [
|
|
10590
10590
|
B(w, {
|
|
10591
|
-
variant: "text",
|
|
10592
10591
|
density: "comfortable",
|
|
10593
10592
|
icon: "mdi-close",
|
|
10593
|
+
variant: "text",
|
|
10594
10594
|
onClick: g[0] || (g[0] = (G) => p.value = !1)
|
|
10595
10595
|
}),
|
|
10596
10596
|
j("span", ra, at(V(n)("x-block-lib.navigator")), 1),
|
|
@@ -10630,9 +10630,9 @@ const ta = /* @__PURE__ */ oe({
|
|
|
10630
10630
|
}, {
|
|
10631
10631
|
activator: ee(({ props: G }) => [
|
|
10632
10632
|
B(w, wt(G, {
|
|
10633
|
-
variant: "outlined",
|
|
10634
10633
|
density: "comfortable",
|
|
10635
10634
|
icon: "mdi-navigation-variant",
|
|
10635
|
+
variant: "outlined",
|
|
10636
10636
|
onClick: g[7] || (g[7] = (Xt) => p.value = !0)
|
|
10637
10637
|
}), null, 16)
|
|
10638
10638
|
]),
|
|
@@ -10942,8 +10942,8 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
|
|
|
10942
10942
|
style: W(de.value)
|
|
10943
10943
|
}, [
|
|
10944
10944
|
B(It, {
|
|
10945
|
-
|
|
10946
|
-
|
|
10945
|
+
icon: "mdi-delete",
|
|
10946
|
+
size: "x-large"
|
|
10947
10947
|
})
|
|
10948
10948
|
], 4)) : me("", !0),
|
|
10949
10949
|
C.value ? me("", !0) : (D(), Q("div", {
|
|
@@ -10963,9 +10963,9 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
|
|
|
10963
10963
|
B(_a, {
|
|
10964
10964
|
ref_key: "navigator",
|
|
10965
10965
|
ref: I,
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
}, null, 8, ["
|
|
10966
|
+
lock: i.value,
|
|
10967
|
+
type: M.value
|
|
10968
|
+
}, null, 8, ["lock", "type"])
|
|
10969
10969
|
], 4)),
|
|
10970
10970
|
i.value ? (D(), Q("div", {
|
|
10971
10971
|
key: 2,
|
|
@@ -11000,13 +11000,13 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
|
|
|
11000
11000
|
const l = P("v-sheet");
|
|
11001
11001
|
return D(), Z(l, {
|
|
11002
11002
|
color: V(o),
|
|
11003
|
-
|
|
11004
|
-
|
|
11003
|
+
height: "100%",
|
|
11004
|
+
width: "100%"
|
|
11005
11005
|
}, {
|
|
11006
11006
|
default: ee(() => [
|
|
11007
11007
|
B(V(n), {
|
|
11008
|
-
|
|
11009
|
-
|
|
11008
|
+
code: e.code,
|
|
11009
|
+
language: "js"
|
|
11010
11010
|
}, null, 8, ["code"])
|
|
11011
11011
|
]),
|
|
11012
11012
|
_: 1
|
|
@@ -11030,17 +11030,17 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
|
|
|
11030
11030
|
return D(), Z(g, {
|
|
11031
11031
|
modelValue: V(r),
|
|
11032
11032
|
"onUpdate:modelValue": A[1] || (A[1] = (M) => Je(r) ? r.value = M : null),
|
|
11033
|
-
transition: "dialog-bottom-transition",
|
|
11034
|
-
persistent: "",
|
|
11035
|
-
"no-click-animation": "",
|
|
11036
11033
|
fullscreen: "",
|
|
11034
|
+
"no-click-animation": "",
|
|
11035
|
+
persistent: "",
|
|
11036
|
+
transition: "dialog-bottom-transition",
|
|
11037
11037
|
onKeydown: A[2] || (A[2] = hn(Be((M) => r.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
11038
11038
|
}, {
|
|
11039
11039
|
default: ee(() => [
|
|
11040
11040
|
B(I, {
|
|
11041
11041
|
color: V(o),
|
|
11042
|
-
|
|
11043
|
-
|
|
11042
|
+
height: "100%",
|
|
11043
|
+
width: "100%"
|
|
11044
11044
|
}, {
|
|
11045
11045
|
default: ee(() => [
|
|
11046
11046
|
V(n) ? (D(), Z(I, {
|
|
@@ -11055,9 +11055,9 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
|
|
|
11055
11055
|
}, {
|
|
11056
11056
|
default: ee(() => [
|
|
11057
11057
|
B(m, {
|
|
11058
|
-
variant: "text",
|
|
11059
11058
|
density: "comfortable",
|
|
11060
11059
|
icon: "mdi-close",
|
|
11060
|
+
variant: "text",
|
|
11061
11061
|
onClick: A[0] || (A[0] = (M) => r.value = !1)
|
|
11062
11062
|
}),
|
|
11063
11063
|
j("span", Ia, at(V(e)("x-block-lib.dlg.source.title")), 1),
|