x-block-lib 0.8.52 → 0.8.54
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/components/blockly/clean/index.vue.d.ts +4 -4
- package/dist/components/blockly/index.vue.d.ts +2 -3
- package/dist/components/blockly/navigator/blockList/index.vue.d.ts +2 -3
- package/dist/components/blockly/navigator/blockList/item.vue.d.ts +4 -4
- package/dist/components/blockly/navigator/index.vue.d.ts +4 -4
- package/dist/components/sourceDlg/content/index.vue.d.ts +3 -3
- package/dist/{i18n-zhHans.jba8gtia.js → i18n-zhHans.b828ufea.js} +1 -1
- package/dist/index.js +5 -5
- package/dist/{msg-zhHans.e9yn43wz.js → msg-zhHans.dkvb4o7c.js} +3 -3
- package/package.json +14 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
lock: boolean;
|
|
3
|
-
}
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
5
5
|
cleanWorkspace: () => void;
|
|
6
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const _default: typeof __VLS_export;
|
|
8
8
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
id: string;
|
|
3
3
|
title: string;
|
|
4
4
|
desc: string;
|
|
5
5
|
select: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"x-click": (...args: any[]) => void;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
10
|
"onX-click"?: ((...args: any[]) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
type: 'list' | 'tree';
|
|
3
3
|
lock: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
6
6
|
open: import("vue").WritableComputedRef<boolean, boolean>;
|
|
7
7
|
update: () => void;
|
|
8
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const _default: typeof __VLS_export;
|
|
10
10
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'highlight.js/styles/default.min.css';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = {
|
|
3
3
|
code: string;
|
|
4
|
-
}
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("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-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("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-a77ed323]{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(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import { E as O, r as On, M as Ro, s as Do, a as Mo, X as Kn, u as L, B as A, j as i, O as l, F as v, b as Je, i as S, c as It, d as Uo, e as w, f as g, g as Vo, h as J, k as Et, p as wt, l as ct, m as vn, n as M, C as $n, N as rt, o as xo, P as qe, q as we, V as bt, t as Hn, W as Yo, v as Fo, w as wo, S as Ko, x as $o, y as Ho, z as Xt, T as ve, A as Gn, D as Go, G as Wo, H as Wn, I as jo, J as Xo, K as Jo, L as qo, Q as Qo, R as zo, U as Zo, Y as ts } from "./vendor.je7mkgas.js";
|
|
3
3
|
import { globalState as I } from "x-state-lib";
|
|
4
4
|
import { globalObjects as St, openConfirmDlg as es, openPromptDlg as ns, messageWarning as jn, useColor as Jt, useSystem as Xn, useViewStack as rn, eventBus as Bt } from "x-essential-lib";
|
|
@@ -22,7 +22,7 @@ const no = (t, e, n) => {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
async function Bn(t) {
|
|
25
|
-
const e = await no(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.jch03670.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.
|
|
25
|
+
const e = await no(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.jch03670.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.dkvb4o7c.js") }), `./msg/${t}.ts`, 3);
|
|
26
26
|
Do(e.default);
|
|
27
27
|
}
|
|
28
28
|
function T(t) {
|
|
@@ -4612,7 +4612,7 @@ const mi = {
|
|
|
4612
4612
|
}, this.appendValueInput("VALUE").appendField("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TITLE}").appendField(
|
|
4613
4613
|
new v(() => this.genOutputOpts_()),
|
|
4614
4614
|
"OUTPUT"
|
|
4615
|
-
), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_();
|
|
4615
|
+
), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_(), this.updateShape_(), this.updateShadows_();
|
|
4616
4616
|
},
|
|
4617
4617
|
initData_: function() {
|
|
4618
4618
|
if (this.output.id)
|
|
@@ -10294,7 +10294,7 @@ const Xa = /* @__PURE__ */ pt({
|
|
|
10294
10294
|
for (const [o, s] of e)
|
|
10295
10295
|
n[o] = s;
|
|
10296
10296
|
return n;
|
|
10297
|
-
}, oc = /* @__PURE__ */ nc(ec, [["__scopeId", "data-v-
|
|
10297
|
+
}, oc = /* @__PURE__ */ nc(ec, [["__scopeId", "data-v-a77ed323"]]), sc = /* @__PURE__ */ pt({
|
|
10298
10298
|
__name: "index",
|
|
10299
10299
|
props: {
|
|
10300
10300
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -12047,7 +12047,7 @@ const Yc = { class: "position-relative w-100 h-100" }, Fc = /* @__PURE__ */ pt({
|
|
|
12047
12047
|
t.component("XBlockly", Fc), t.component("XSourceDlg", Hc);
|
|
12048
12048
|
};
|
|
12049
12049
|
async function Zc(t) {
|
|
12050
|
-
return (await no(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gy41k67q.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.
|
|
12050
|
+
return (await no(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gy41k67q.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.b828ufea.js") }), `./locales/${t}/index.ts`, 4)).default;
|
|
12051
12051
|
}
|
|
12052
12052
|
const tr = { install: Gc };
|
|
12053
12053
|
export {
|
|
@@ -52,7 +52,7 @@ const _ = {
|
|
|
52
52
|
CATEGORY_MISC: "杂项",
|
|
53
53
|
CATEGORY_OBJECT: "对象",
|
|
54
54
|
CATEGORY_PAGE: "页面",
|
|
55
|
-
CATEGORY_PROCEDURE: "
|
|
55
|
+
CATEGORY_PROCEDURE: "子程序",
|
|
56
56
|
CATEGORY_RESOURCE: "资源",
|
|
57
57
|
CATEGORY_TEXT: "文本",
|
|
58
58
|
CATEGORY_TIME: "时间",
|
|
@@ -74,7 +74,7 @@ const _ = {
|
|
|
74
74
|
LABEL_METHOD: "方法",
|
|
75
75
|
LABEL_OBJECT: "对象",
|
|
76
76
|
LABEL_OPERATION: "操作",
|
|
77
|
-
LABEL_PROCEDURE: "
|
|
77
|
+
LABEL_PROCEDURE: "子程序",
|
|
78
78
|
LABEL_PROPERTY: "属性",
|
|
79
79
|
LABEL_QUERY_EXTRA: "查询附加",
|
|
80
80
|
LABEL_SET: "设置",
|
|
@@ -452,7 +452,7 @@ const _ = {
|
|
|
452
452
|
OBJECT_V1_TO_JSON_TOOLTIP: "OBJECT_V1_TO_JSON_TOOLTIP",
|
|
453
453
|
OBJECT_V1_TO_JSON_HELPURL: "OBJECT_V1_TO_JSON_HELPURL",
|
|
454
454
|
// procedure
|
|
455
|
-
PROCEDURE_DEFAULT_NAME: "
|
|
455
|
+
PROCEDURE_DEFAULT_NAME: "子程序",
|
|
456
456
|
PROCEDURE_RETURN: "返回",
|
|
457
457
|
PROCEDURE_WITH_RETURN: "带返回值",
|
|
458
458
|
PROCEDURE_V1_DEF_CONTAINER_TITLE: "带返回值",
|
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.54",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -32,35 +32,35 @@
|
|
|
32
32
|
"blockly": "^12.3.1",
|
|
33
33
|
"highlight.js": "^11.11.1",
|
|
34
34
|
"lodash-es": "^4.17.21",
|
|
35
|
-
"vue": "^3.5.
|
|
35
|
+
"vue": "^3.5.25",
|
|
36
36
|
"vue-draggable-plus": "^0.6.0",
|
|
37
|
-
"vue-i18n": "^11.1
|
|
37
|
+
"vue-i18n": "^11.2.1",
|
|
38
38
|
"vue-router": "^4.6.3",
|
|
39
|
-
"vuetify": "^3.
|
|
40
|
-
"x-essential-lib": "^0.9.
|
|
41
|
-
"x-runtime-lib": "^0.8.
|
|
39
|
+
"vuetify": "^3.11.1",
|
|
40
|
+
"x-essential-lib": "^0.9.17",
|
|
41
|
+
"x-runtime-lib": "^0.8.98",
|
|
42
42
|
"x-state-lib": "^0.3.28"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@eslint/js": "^9.39.1",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^24.10.
|
|
48
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
47
|
+
"@types/node": "^24.10.1",
|
|
48
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
49
49
|
"eslint": "^9.39.1",
|
|
50
50
|
"eslint-config-prettier": "^10.1.8",
|
|
51
51
|
"eslint-plugin-prettier": "^5.5.4",
|
|
52
|
-
"eslint-plugin-vue": "^10.
|
|
52
|
+
"eslint-plugin-vue": "^10.6.0",
|
|
53
53
|
"globals": "^16.5.0",
|
|
54
54
|
"husky": "^9.1.7",
|
|
55
|
-
"lint-staged": "^16.2.
|
|
55
|
+
"lint-staged": "^16.2.7",
|
|
56
56
|
"prettier": "3.6.2",
|
|
57
|
-
"sass": "^1.
|
|
57
|
+
"sass": "^1.94.2",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
60
|
-
"vite": "^7.2.
|
|
59
|
+
"typescript-eslint": "^8.48.0",
|
|
60
|
+
"vite": "^7.2.4",
|
|
61
61
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
62
62
|
"vite-plugin-vuetify": "^2.1.2",
|
|
63
63
|
"vue-eslint-parser": "^10.2.0",
|
|
64
|
-
"vue-tsc": "^3.1.
|
|
64
|
+
"vue-tsc": "^3.1.5"
|
|
65
65
|
}
|
|
66
66
|
}
|