x-block-lib 0.10.23 → 0.10.25

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.
Files changed (248) hide show
  1. package/dist/index.d.ts +250 -7
  2. package/dist/index.js +1993 -1992
  3. package/dist/{vendor.7ekzovn9.js → vendor.lsd4pit7.js} +74 -77
  4. package/package.json +9 -5
  5. package/dist/components/blockly/buildReactivity.d.ts +0 -3
  6. package/dist/components/blockly/clean/index.vue.d.ts +0 -8
  7. package/dist/components/blockly/index.vue.d.ts +0 -42
  8. package/dist/components/blockly/jsonHelper.d.ts +0 -3
  9. package/dist/components/blockly/lock/index.vue.d.ts +0 -10
  10. package/dist/components/blockly/navigator/blockList/index.vue.d.ts +0 -16
  11. package/dist/components/blockly/navigator/blockList/item.vue.d.ts +0 -13
  12. package/dist/components/blockly/navigator/blockTree/index.vue.d.ts +0 -12
  13. package/dist/components/blockly/navigator/index.vue.d.ts +0 -10
  14. package/dist/components/blockly/provideInject.d.ts +0 -6
  15. package/dist/components/blockly/workspace.d.ts +0 -3
  16. package/dist/components/index.d.ts +0 -4
  17. package/dist/components/sourceDlg/content/index.vue.d.ts +0 -7
  18. package/dist/components/sourceDlg/index.vue.d.ts +0 -3
  19. package/dist/core/blocks/app/argument/getPageArgument/v1/index.d.ts +0 -1
  20. package/dist/core/blocks/app/argument/index.d.ts +0 -1
  21. package/dist/core/blocks/app/define/index.d.ts +0 -2
  22. package/dist/core/blocks/app/define/items/v1/index.d.ts +0 -1
  23. package/dist/core/blocks/app/define/types/v1/index.d.ts +0 -1
  24. package/dist/core/blocks/app/event/appBind/v1/index.d.ts +0 -1
  25. package/dist/core/blocks/app/event/appBindEntry/v1/index.d.ts +0 -58
  26. package/dist/core/blocks/app/event/index.d.ts +0 -5
  27. package/dist/core/blocks/app/event/onAppEvent/v1/index.d.ts +0 -1
  28. package/dist/core/blocks/app/event/triggerAppEvent/v1/index.d.ts +0 -1
  29. package/dist/core/blocks/app/event/watchEffect/v1/index.d.ts +0 -1
  30. package/dist/core/blocks/app/index.d.ts +0 -8
  31. package/dist/core/blocks/app/message/appDebugTrace/v1/index.d.ts +0 -1
  32. package/dist/core/blocks/app/message/index.d.ts +0 -4
  33. package/dist/core/blocks/app/message/openConfirmDlg/v1/index.d.ts +0 -1
  34. package/dist/core/blocks/app/message/openPromptDlg/v1/index.d.ts +0 -1
  35. package/dist/core/blocks/app/message/popupMessage/v1/index.d.ts +0 -1
  36. package/dist/core/blocks/app/method/callAppMethod/v1/index.d.ts +0 -1
  37. package/dist/core/blocks/app/method/implementAppMethod/v1/index.d.ts +0 -1
  38. package/dist/core/blocks/app/method/index.d.ts +0 -3
  39. package/dist/core/blocks/app/method/setAppMethodOutput/v1/index.d.ts +0 -1
  40. package/dist/core/blocks/app/misc/appEnvIs/v1/index.d.ts +0 -1
  41. package/dist/core/blocks/app/misc/index.d.ts +0 -4
  42. package/dist/core/blocks/app/misc/navigateTo/v1/index.d.ts +0 -1
  43. package/dist/core/blocks/app/misc/selectComp/v1/index.d.ts +0 -1
  44. package/dist/core/blocks/app/misc/selectSlot/v1/index.d.ts +0 -1
  45. package/dist/core/blocks/app/property/getAppProperty/v1/index.d.ts +0 -42
  46. package/dist/core/blocks/app/property/index.d.ts +0 -2
  47. package/dist/core/blocks/app/property/setAppProperty/v1/index.d.ts +0 -1
  48. package/dist/core/blocks/app/state/getAppState/v1/index.d.ts +0 -28
  49. package/dist/core/blocks/app/state/index.d.ts +0 -2
  50. package/dist/core/blocks/app/state/setAppState/v1/index.d.ts +0 -1
  51. package/dist/core/blocks/color/colorBlend/v1/index.d.ts +0 -1
  52. package/dist/core/blocks/color/colorPicker/v1/index.d.ts +0 -1
  53. package/dist/core/blocks/color/colorRandom/v1/index.d.ts +0 -1
  54. package/dist/core/blocks/color/colorRgb/v1/index.d.ts +0 -1
  55. package/dist/core/blocks/color/index.d.ts +0 -4
  56. package/dist/core/blocks/common/index.d.ts +0 -1
  57. package/dist/core/blocks/common/parameter/v1/index.d.ts +0 -25
  58. package/dist/core/blocks/common/parameter/v1/whiteList.d.ts +0 -1
  59. package/dist/core/blocks/compute/flow/index.d.ts +0 -1
  60. package/dist/core/blocks/compute/flow/onFlowStateEvent/v1/index.d.ts +0 -1
  61. package/dist/core/blocks/compute/func/callFunc/v1/index.d.ts +0 -1
  62. package/dist/core/blocks/compute/func/callFuncInternal/v1/index.d.ts +0 -1
  63. package/dist/core/blocks/compute/func/funcEntry/v1/index.d.ts +0 -1
  64. package/dist/core/blocks/compute/func/index.d.ts +0 -4
  65. package/dist/core/blocks/compute/func/setFuncOutput/v1/index.d.ts +0 -1
  66. package/dist/core/blocks/compute/index.d.ts +0 -3
  67. package/dist/core/blocks/compute/misc/computeDebugTrace/v1/index.d.ts +0 -1
  68. package/dist/core/blocks/compute/misc/computeEnvIs/v1/index.d.ts +0 -1
  69. package/dist/core/blocks/compute/misc/index.d.ts +0 -2
  70. package/dist/core/blocks/data/addData/v1/blocks.d.ts +0 -3
  71. package/dist/core/blocks/data/addData/v1/index.d.ts +0 -1
  72. package/dist/core/blocks/data/condAtomic/v1/index.d.ts +0 -1
  73. package/dist/core/blocks/data/condLogic/v1/index.d.ts +0 -1
  74. package/dist/core/blocks/data/deleteData/v1/blocks.d.ts +0 -4
  75. package/dist/core/blocks/data/deleteData/v1/index.d.ts +0 -1
  76. package/dist/core/blocks/data/index.d.ts +0 -13
  77. package/dist/core/blocks/data/interruptTransaction/v1/index.d.ts +0 -1
  78. package/dist/core/blocks/data/queryData/v1/blocks.d.ts +0 -5
  79. package/dist/core/blocks/data/queryData/v1/index.d.ts +0 -1
  80. package/dist/core/blocks/data/queryExtraLimit/v1/index.d.ts +0 -1
  81. package/dist/core/blocks/data/queryExtraSortby/v1/index.d.ts +0 -1
  82. package/dist/core/blocks/data/selectColumn/v1/index.d.ts +0 -1
  83. package/dist/core/blocks/data/selectTable/v1/index.d.ts +0 -1
  84. package/dist/core/blocks/data/transaction/v1/index.d.ts +0 -1
  85. package/dist/core/blocks/data/updateColumn/v1/index.d.ts +0 -1
  86. package/dist/core/blocks/data/updateData/v1/blocks.d.ts +0 -4
  87. package/dist/core/blocks/data/updateData/v1/index.d.ts +0 -1
  88. package/dist/core/blocks/index.d.ts +0 -16
  89. package/dist/core/blocks/json/index.d.ts +0 -6
  90. package/dist/core/blocks/json/jsonArray/v1/index.d.ts +0 -1
  91. package/dist/core/blocks/json/jsonBoolean/v1/index.d.ts +0 -1
  92. package/dist/core/blocks/json/jsonMap/v1/index.d.ts +0 -1
  93. package/dist/core/blocks/json/jsonNumber/v1/index.d.ts +0 -1
  94. package/dist/core/blocks/json/jsonRoot/v1/index.d.ts +0 -1
  95. package/dist/core/blocks/json/jsonString/v1/index.d.ts +0 -1
  96. package/dist/core/blocks/list/index.d.ts +0 -9
  97. package/dist/core/blocks/list/listCreate/v1/index.d.ts +0 -1
  98. package/dist/core/blocks/list/listDelete/v1/index.d.ts +0 -1
  99. package/dist/core/blocks/list/listGet/v1/index.d.ts +0 -1
  100. package/dist/core/blocks/list/listGetSublist/v1/index.d.ts +0 -1
  101. package/dist/core/blocks/list/listIsEmpty/v1/index.d.ts +0 -1
  102. package/dist/core/blocks/list/listJoin/v1/index.d.ts +0 -1
  103. package/dist/core/blocks/list/listLength/v1/index.d.ts +0 -1
  104. package/dist/core/blocks/list/listReverse/v1/index.d.ts +0 -1
  105. package/dist/core/blocks/list/listSet/v1/index.d.ts +0 -1
  106. package/dist/core/blocks/logic/extensions/v1/index.d.ts +0 -1
  107. package/dist/core/blocks/logic/index.d.ts +0 -7
  108. package/dist/core/blocks/logic/logicBoolean/v1/index.d.ts +0 -1
  109. package/dist/core/blocks/logic/logicCompare/v1/index.d.ts +0 -1
  110. package/dist/core/blocks/logic/logicIf/v1/index.d.ts +0 -1
  111. package/dist/core/blocks/logic/logicNegate/v1/index.d.ts +0 -1
  112. package/dist/core/blocks/logic/logicOperation/v1/index.d.ts +0 -1
  113. package/dist/core/blocks/logic/logicTernary/v1/index.d.ts +0 -1
  114. package/dist/core/blocks/loop/extensions/v1/index.d.ts +0 -1
  115. package/dist/core/blocks/loop/flowControl/v1/extensions.d.ts +0 -10
  116. package/dist/core/blocks/loop/flowControl/v1/index.d.ts +0 -1
  117. package/dist/core/blocks/loop/for/v1/index.d.ts +0 -1
  118. package/dist/core/blocks/loop/forEach/v1/index.d.ts +0 -1
  119. package/dist/core/blocks/loop/index.d.ts +0 -6
  120. package/dist/core/blocks/loop/repeat/v1/index.d.ts +0 -1
  121. package/dist/core/blocks/loop/whileUntil/v1/index.d.ts +0 -1
  122. package/dist/core/blocks/math/extensions/v1/index.d.ts +0 -1
  123. package/dist/core/blocks/math/index.d.ts +0 -13
  124. package/dist/core/blocks/math/mathArithmetic/v1/index.d.ts +0 -1
  125. package/dist/core/blocks/math/mathConstant/v1/index.d.ts +0 -1
  126. package/dist/core/blocks/math/mathConstrain/v1/index.d.ts +0 -1
  127. package/dist/core/blocks/math/mathModulo/v1/index.d.ts +0 -1
  128. package/dist/core/blocks/math/mathNumber/v1/index.d.ts +0 -1
  129. package/dist/core/blocks/math/mathNumberProperty/v1/index.d.ts +0 -1
  130. package/dist/core/blocks/math/mathOnList/v1/index.d.ts +0 -1
  131. package/dist/core/blocks/math/mathRandomFloat/v1/index.d.ts +0 -1
  132. package/dist/core/blocks/math/mathRandomInt/v1/index.d.ts +0 -1
  133. package/dist/core/blocks/math/mathRound/v1/index.d.ts +0 -1
  134. package/dist/core/blocks/math/mathSingle/v1/index.d.ts +0 -1
  135. package/dist/core/blocks/math/mathTrig/v1/index.d.ts +0 -1
  136. package/dist/core/blocks/object/index.d.ts +0 -6
  137. package/dist/core/blocks/object/objectCreate/v1/index.d.ts +0 -1
  138. package/dist/core/blocks/object/objectDelete/v1/index.d.ts +0 -1
  139. package/dist/core/blocks/object/objectFromJson/v1/index.d.ts +0 -1
  140. package/dist/core/blocks/object/objectGet/v1/index.d.ts +0 -1
  141. package/dist/core/blocks/object/objectSet/v1/index.d.ts +0 -1
  142. package/dist/core/blocks/object/objectToJson/v1/index.d.ts +0 -1
  143. package/dist/core/blocks/procedure/index.d.ts +0 -2
  144. package/dist/core/blocks/procedure/procedureCall/v1/index.d.ts +0 -1
  145. package/dist/core/blocks/procedure/procedureDef/v1/index.d.ts +0 -29
  146. package/dist/core/blocks/procedure/procedureReturn/v1/index.d.ts +0 -1
  147. package/dist/core/blocks/resource/downloadResource/v1/index.d.ts +0 -1
  148. package/dist/core/blocks/resource/index.d.ts +0 -3
  149. package/dist/core/blocks/resource/selectResource/v1/index.d.ts +0 -1
  150. package/dist/core/blocks/resource/uploadResource/v1/index.d.ts +0 -1
  151. package/dist/core/blocks/text/index.d.ts +0 -14
  152. package/dist/core/blocks/text/text/v1/index.d.ts +0 -1
  153. package/dist/core/blocks/text/textAppend/v1/index.d.ts +0 -1
  154. package/dist/core/blocks/text/textChangeCase/v1/index.d.ts +0 -1
  155. package/dist/core/blocks/text/textCharAt/v1/index.d.ts +0 -1
  156. package/dist/core/blocks/text/textCount/v1/index.d.ts +0 -1
  157. package/dist/core/blocks/text/textIndexOf/v1/index.d.ts +0 -1
  158. package/dist/core/blocks/text/textIsEmpty/v1/index.d.ts +0 -1
  159. package/dist/core/blocks/text/textJoin/v1/index.d.ts +0 -21
  160. package/dist/core/blocks/text/textLength/v1/index.d.ts +0 -1
  161. package/dist/core/blocks/text/textReplace/v1/index.d.ts +0 -1
  162. package/dist/core/blocks/text/textReverse/v1/index.d.ts +0 -1
  163. package/dist/core/blocks/text/textSplit/v1/index.d.ts +0 -1
  164. package/dist/core/blocks/text/textSubstring/v1/index.d.ts +0 -1
  165. package/dist/core/blocks/text/textTrim/v1/index.d.ts +0 -1
  166. package/dist/core/blocks/text/utils/index.d.ts +0 -1
  167. package/dist/core/blocks/time/createTimer/v1/index.d.ts +0 -1
  168. package/dist/core/blocks/time/delay/v1/index.d.ts +0 -1
  169. package/dist/core/blocks/time/index.d.ts +0 -2
  170. package/dist/core/blocks/variable/extensions/v1/index.d.ts +0 -1
  171. package/dist/core/blocks/variable/index.d.ts +0 -3
  172. package/dist/core/blocks/variable/variableGet/v1/index.d.ts +0 -1
  173. package/dist/core/blocks/variable/variableSet/v1/index.d.ts +0 -1
  174. package/dist/core/category/app/comp/v1/index.d.ts +0 -7
  175. package/dist/core/category/app/compute/v1/index.d.ts +0 -7
  176. package/dist/core/category/app/index.d.ts +0 -6
  177. package/dist/core/category/app/message/v1/index.d.ts +0 -7
  178. package/dist/core/category/app/misc/v1/index.d.ts +0 -7
  179. package/dist/core/category/app/page/v1/index.d.ts +0 -7
  180. package/dist/core/category/app/resource/v1/index.d.ts +0 -7
  181. package/dist/core/category/common/index.d.ts +0 -2
  182. package/dist/core/category/common/procedure/v1/index.d.ts +0 -7
  183. package/dist/core/category/common/variable/v1/index.d.ts +0 -7
  184. package/dist/core/category/compute/data/v1/index.d.ts +0 -7
  185. package/dist/core/category/compute/flow/v1/index.d.ts +0 -7
  186. package/dist/core/category/compute/func/v1/index.d.ts +0 -7
  187. package/dist/core/category/compute/index.d.ts +0 -4
  188. package/dist/core/category/compute/misc/v1/index.d.ts +0 -7
  189. package/dist/core/category/index.d.ts +0 -3
  190. package/dist/core/category/utils/index.d.ts +0 -9
  191. package/dist/core/dialog/index.d.ts +0 -1
  192. package/dist/core/events/index.d.ts +0 -10
  193. package/dist/core/index.d.ts +0 -3
  194. package/dist/core/locale/index.d.ts +0 -2
  195. package/dist/core/locale/msg/en.d.ts +0 -517
  196. package/dist/core/locale/msg/zhHans.d.ts +0 -517
  197. package/dist/core/misc/index.d.ts +0 -3
  198. package/dist/core/plugins/disableTopBlocks/index.d.ts +0 -3
  199. package/dist/core/plugins/fieldDropdown/index.d.ts +0 -1
  200. package/dist/core/plugins/index.d.ts +0 -2
  201. package/dist/core/plugins/workspaceCleanUp/index.d.ts +0 -1
  202. package/dist/core/theme/index.d.ts +0 -1
  203. package/dist/core/toolbox/common/color/v1/index.d.ts +0 -74
  204. package/dist/core/toolbox/common/index.d.ts +0 -8
  205. package/dist/core/toolbox/common/list/v1/index.d.ts +0 -87
  206. package/dist/core/toolbox/common/logic/v1/index.d.ts +0 -14
  207. package/dist/core/toolbox/common/loop/v1/index.d.ts +0 -56
  208. package/dist/core/toolbox/common/math/v1/index.d.ts +0 -131
  209. package/dist/core/toolbox/common/message/v1/index.d.ts +0 -33
  210. package/dist/core/toolbox/common/object/v1/index.d.ts +0 -30
  211. package/dist/core/toolbox/common/text/v1/index.d.ts +0 -172
  212. package/dist/core/toolbox/common/time/v1/index.d.ts +0 -23
  213. package/dist/core/toolbox/comp/v1/index.d.ts +0 -172
  214. package/dist/core/toolbox/flow/v1/index.d.ts +0 -150
  215. package/dist/core/toolbox/func/v1/index.d.ts +0 -150
  216. package/dist/core/toolbox/index.d.ts +0 -5
  217. package/dist/core/toolbox/json/v1/index.d.ts +0 -12
  218. package/dist/core/toolbox/page/v1/index.d.ts +0 -172
  219. package/dist/core/utils/app/app.d.ts +0 -9
  220. package/dist/core/utils/app/argument.d.ts +0 -15
  221. package/dist/core/utils/app/bind.d.ts +0 -4
  222. package/dist/core/utils/app/comp.d.ts +0 -9
  223. package/dist/core/utils/app/event.d.ts +0 -22
  224. package/dist/core/utils/app/index.d.ts +0 -11
  225. package/dist/core/utils/app/method.d.ts +0 -27
  226. package/dist/core/utils/app/node.d.ts +0 -13
  227. package/dist/core/utils/app/page.d.ts +0 -9
  228. package/dist/core/utils/app/property.d.ts +0 -22
  229. package/dist/core/utils/app/slot.d.ts +0 -9
  230. package/dist/core/utils/app/state.d.ts +0 -12
  231. package/dist/core/utils/common/block.d.ts +0 -2
  232. package/dist/core/utils/common/check.d.ts +0 -4
  233. package/dist/core/utils/common/colour.d.ts +0 -1
  234. package/dist/core/utils/common/index.d.ts +0 -6
  235. package/dist/core/utils/common/misc.d.ts +0 -18
  236. package/dist/core/utils/common/parameter.d.ts +0 -3
  237. package/dist/core/utils/common/shadow.d.ts +0 -15
  238. package/dist/core/utils/compute/func.d.ts +0 -11
  239. package/dist/core/utils/compute/index.d.ts +0 -2
  240. package/dist/core/utils/compute/space.d.ts +0 -7
  241. package/dist/core/utils/data/index.d.ts +0 -2
  242. package/dist/core/utils/data/space.d.ts +0 -5
  243. package/dist/core/utils/data/table.d.ts +0 -17
  244. package/dist/core/utils/resource/dir.d.ts +0 -12
  245. package/dist/core/utils/resource/index.d.ts +0 -3
  246. package/dist/core/utils/resource/resource.d.ts +0 -5
  247. package/dist/core/utils/resource/space.d.ts +0 -5
  248. package/dist/i18n/index.d.ts +0 -1
@@ -23591,14 +23591,73 @@ var Zf = /* @__PURE__ */ t(((e, t) => {
23591
23591
  return Object.assign(e, we), e;
23592
23592
  }, Ke = Ge({});
23593
23593
  Ke.newInstance = () => Ge({}), t.exports = Ke, Ke.HighlightJS = Ke, Ke.default = Ke;
23594
- })))())).default, $f = "[A-Za-z$_][0-9A-Za-z$_]*", ep = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), tp = [
23594
+ })))())).default, $f = r({
23595
+ props: {
23596
+ code: {
23597
+ type: String,
23598
+ required: !0
23599
+ },
23600
+ language: {
23601
+ type: String,
23602
+ default: ""
23603
+ },
23604
+ autodetect: {
23605
+ type: Boolean,
23606
+ default: !0
23607
+ },
23608
+ ignoreIllegals: {
23609
+ type: Boolean,
23610
+ default: !0
23611
+ }
23612
+ },
23613
+ setup: function(e) {
23614
+ var t = p(e.language);
23615
+ v((function() {
23616
+ return e.language;
23617
+ }), (function(e) {
23618
+ t.value = e;
23619
+ }));
23620
+ var r = n((function() {
23621
+ return e.autodetect || !t.value;
23622
+ })), i = n((function() {
23623
+ return !r.value && !Qf.getLanguage(t.value);
23624
+ }));
23625
+ return {
23626
+ className: n((function() {
23627
+ return i.value ? "" : "hljs " + t.value;
23628
+ })),
23629
+ highlightedCode: n((function() {
23630
+ if (i.value) return console.warn("The language \"" + t.value + "\" you specified could not be found."), e.code.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
23631
+ if (r.value) {
23632
+ var n = Qf.highlightAuto(e.code);
23633
+ return t.value = n.language ?? "", n.value;
23634
+ }
23635
+ return (n = Qf.highlight(e.code, {
23636
+ language: t.value,
23637
+ ignoreIllegals: e.ignoreIllegals
23638
+ })).value;
23639
+ }))
23640
+ };
23641
+ },
23642
+ render: function() {
23643
+ return o("pre", {}, [o("code", {
23644
+ class: this.className,
23645
+ innerHTML: this.highlightedCode
23646
+ })]);
23647
+ }
23648
+ }), ep = {
23649
+ install: function(e) {
23650
+ e.component("highlightjs", $f);
23651
+ },
23652
+ component: $f
23653
+ }, tp = "[A-Za-z$_][0-9A-Za-z$_]*", np = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), rp = [
23595
23654
  "true",
23596
23655
  "false",
23597
23656
  "null",
23598
23657
  "undefined",
23599
23658
  "NaN",
23600
23659
  "Infinity"
23601
- ], np = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), rp = [
23660
+ ], ip = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), ap = [
23602
23661
  "Error",
23603
23662
  "EvalError",
23604
23663
  "InternalError",
@@ -23607,7 +23666,7 @@ var Zf = /* @__PURE__ */ t(((e, t) => {
23607
23666
  "SyntaxError",
23608
23667
  "TypeError",
23609
23668
  "URIError"
23610
- ], ip = [
23669
+ ], op = [
23611
23670
  "setInterval",
23612
23671
  "setTimeout",
23613
23672
  "clearInterval",
@@ -23625,7 +23684,7 @@ var Zf = /* @__PURE__ */ t(((e, t) => {
23625
23684
  "encodeURIComponent",
23626
23685
  "escape",
23627
23686
  "unescape"
23628
- ], ap = [
23687
+ ], sp = [
23629
23688
  "arguments",
23630
23689
  "this",
23631
23690
  "super",
@@ -23636,12 +23695,12 @@ var Zf = /* @__PURE__ */ t(((e, t) => {
23636
23695
  "sessionStorage",
23637
23696
  "module",
23638
23697
  "global"
23639
- ], op = [].concat(ip, np, rp);
23640
- function sp(e) {
23698
+ ], cp = [].concat(op, ip, ap);
23699
+ function lp(e) {
23641
23700
  let t = e.regex, n = (e, { after: t }) => {
23642
23701
  let n = "</" + e[0].slice(1);
23643
23702
  return e.input.indexOf(n, t) !== -1;
23644
- }, r = $f, i = {
23703
+ }, r = tp, i = {
23645
23704
  begin: "<>",
23646
23705
  end: "</>"
23647
23706
  }, a = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
@@ -23665,11 +23724,11 @@ function sp(e) {
23665
23724
  }
23666
23725
  }
23667
23726
  }, s = {
23668
- $pattern: $f,
23669
- keyword: ep,
23670
- literal: tp,
23671
- built_in: op,
23672
- "variable.language": ap
23727
+ $pattern: tp,
23728
+ keyword: np,
23729
+ literal: rp,
23730
+ built_in: cp,
23731
+ "variable.language": sp
23673
23732
  }, c = "[0-9](_?[0-9])*", l = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
23674
23733
  className: "number",
23675
23734
  variants: [
@@ -23816,7 +23875,7 @@ function sp(e) {
23816
23875
  relevance: 0,
23817
23876
  match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
23818
23877
  className: "title.class",
23819
- keywords: { _: [...np, ...rp] }
23878
+ keywords: { _: [...ip, ...ap] }
23820
23879
  }, re = {
23821
23880
  label: "use_strict",
23822
23881
  className: "meta",
@@ -23846,7 +23905,7 @@ function sp(e) {
23846
23905
  }
23847
23906
  let se = {
23848
23907
  match: t.concat(/\b/, oe([
23849
- ...ip,
23908
+ ...op,
23850
23909
  "super",
23851
23910
  "import"
23852
23911
  ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
@@ -24025,66 +24084,4 @@ function sp(e) {
24025
24084
  };
24026
24085
  }
24027
24086
  //#endregion
24028
- //#region node_modules/.pnpm/@highlightjs+vue-plugin@2.1.0_highlight.js@11.11.1_vue@3.5.30_typescript@5.9.3_/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js
24029
- var cp = r({
24030
- props: {
24031
- code: {
24032
- type: String,
24033
- required: !0
24034
- },
24035
- language: {
24036
- type: String,
24037
- default: ""
24038
- },
24039
- autodetect: {
24040
- type: Boolean,
24041
- default: !0
24042
- },
24043
- ignoreIllegals: {
24044
- type: Boolean,
24045
- default: !0
24046
- }
24047
- },
24048
- setup: function(e) {
24049
- var t = p(e.language);
24050
- v((function() {
24051
- return e.language;
24052
- }), (function(e) {
24053
- t.value = e;
24054
- }));
24055
- var r = n((function() {
24056
- return e.autodetect || !t.value;
24057
- })), i = n((function() {
24058
- return !r.value && !Qf.getLanguage(t.value);
24059
- }));
24060
- return {
24061
- className: n((function() {
24062
- return i.value ? "" : "hljs " + t.value;
24063
- })),
24064
- highlightedCode: n((function() {
24065
- if (i.value) return console.warn("The language \"" + t.value + "\" you specified could not be found."), e.code.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
24066
- if (r.value) {
24067
- var n = Qf.highlightAuto(e.code);
24068
- return t.value = n.language ?? "", n.value;
24069
- }
24070
- return (n = Qf.highlight(e.code, {
24071
- language: t.value,
24072
- ignoreIllegals: e.ignoreIllegals
24073
- })).value;
24074
- }))
24075
- };
24076
- },
24077
- render: function() {
24078
- return o("pre", {}, [o("code", {
24079
- class: this.className,
24080
- innerHTML: this.highlightedCode
24081
- })]);
24082
- }
24083
- }), lp = {
24084
- install: function(e) {
24085
- e.component("highlightjs", cp);
24086
- },
24087
- component: cp
24088
- };
24089
- //#endregion
24090
- export { Ze as A, en as B, Te as C, Ae as D, De as E, vt as F, fn as G, sn as H, Nt as I, jn as J, pn as K, Vt as L, ut as M, dt as N, je as O, gt as P, Ln as Q, Ht as R, Ce as S, C as T, cn as U, tn as V, dn as W, Nn as X, Mn as Y, Pn as Z, Hn as _, Yf as a, ge as b, Wl as c, Nl as d, Ml as f, Vn as g, Bc as h, Zf as i, it as j, Ye as k, V as l, Ol as m, sp as n, Ql as o, kl as p, kn as q, Qf as r, Gl as s, lp as t, Pl as u, re as v, Ee as w, Se as x, me as y, Zt as z };
24087
+ export { Ze as A, en as B, Te as C, Ae as D, De as E, vt as F, fn as G, sn as H, Nt as I, jn as J, pn as K, Vt as L, ut as M, dt as N, je as O, gt as P, Ln as Q, Ht as R, Ce as S, C as T, cn as U, tn as V, dn as W, Nn as X, Mn as Y, Pn as Z, Hn as _, Yf as a, ge as b, Wl as c, Nl as d, Ml as f, Vn as g, Bc as h, Zf as i, it as j, Ye as k, V as l, Ol as m, ep as n, Ql as o, kl as p, kn as q, Qf as r, Gl as s, lp as t, Pl as u, re as v, Ee as w, Se as x, me as y, Zt as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.10.23",
4
+ "version": "0.10.25",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -40,19 +40,22 @@
40
40
  "vuetify": "^4.0.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "x-error-lib": "^0.5.16",
44
- "x-essential-lib": "^0.9.29",
45
- "x-runtime-lib": "^0.9.26",
46
- "x-state-lib": "^0.3.42"
43
+ "x-error-lib": "^0.5.17",
44
+ "x-essential-lib": "^0.9.30",
45
+ "x-runtime-lib": "^0.9.32",
46
+ "x-state-lib": "^0.3.43"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@eslint/js": "^10.0.1",
50
+ "@tsconfig/node24": "^24.0.4",
50
51
  "@types/lodash-es": "^4.17.12",
51
52
  "@types/node": "^25.4.0",
52
53
  "@vitejs/plugin-vue": "^6.0.4",
54
+ "@vue/tsconfig": "^0.9.1",
53
55
  "eslint": "^10.0.3",
54
56
  "eslint-config-prettier": "^10.1.8",
55
57
  "eslint-plugin-prettier": "^5.5.5",
58
+ "eslint-plugin-simple-import-sort": "^12.1.1",
56
59
  "eslint-plugin-vue": "^10.8.0",
57
60
  "globals": "^17.4.0",
58
61
  "husky": "^9.1.7",
@@ -63,6 +66,7 @@
63
66
  "typescript-eslint": "^8.57.0",
64
67
  "vite": "^8.0.0",
65
68
  "vite-plugin-css-injected-by-js": "^4.0.1",
69
+ "vite-plugin-dts": "^4.5.4",
66
70
  "vite-plugin-vuetify": "^2.1.3",
67
71
  "vue-eslint-parser": "^10.4.0",
68
72
  "vue-tsc": "^3.2.5"
@@ -1,3 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- import { Reactivity } from 'x-runtime-lib';
3
- export declare function buildReactivity(workspace: Blockly.Workspace): Reactivity;
@@ -1,8 +0,0 @@
1
- type __VLS_Props = {
2
- lock: boolean;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
5
- cleanWorkspace: () => void;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
@@ -1,42 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- import { Type } from './workspace';
3
- type __VLS_Props = {
4
- type: Type;
5
- version: string;
6
- locale: string;
7
- dark: boolean;
8
- };
9
- type __VLS_ModelProps = {
10
- 'lock': boolean;
11
- 'scale': number;
12
- };
13
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_1: {};
15
- type __VLS_Slots = {} & {
16
- bottom?: (props: typeof __VLS_1) => any;
17
- };
18
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
19
- loading: import("vue").Ref<boolean, boolean>;
20
- load: (state: any) => void;
21
- save: () => any;
22
- appendBlock: (state: Blockly.serialization.blocks.State) => void;
23
- generateCode: () => string | undefined;
24
- generateReactivity: () => import("x-runtime-lib").Reactivity;
25
- fireStateChange: () => void;
26
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
- ready: (...args: any[]) => void;
28
- "update:lock": (value: boolean) => void;
29
- "update:scale": (value: number) => void;
30
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
- onReady?: ((...args: any[]) => any) | undefined;
32
- "onUpdate:lock"?: ((value: boolean) => any) | undefined;
33
- "onUpdate:scale"?: ((value: number) => any) | undefined;
34
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
- declare const _default: typeof __VLS_export;
37
- export default _default;
38
- type __VLS_WithSlots<T, S> = T & {
39
- new (): {
40
- $slots: S;
41
- };
42
- };
@@ -1,3 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- export declare function loadFromJson(json: any, workspace: Blockly.Workspace): void;
3
- export declare function saveToJson(workspace: Blockly.Workspace): any;
@@ -1,10 +0,0 @@
1
- type __VLS_ModelProps = {
2
- modelValue: boolean;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (value: boolean) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;
@@ -1,16 +0,0 @@
1
- type __VLS_Props = {
2
- lock: boolean;
3
- };
4
- type __VLS_ModelProps = {
5
- modelValue: boolean;
6
- };
7
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
9
- update: () => void;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:modelValue": (value: boolean) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
- declare const _default: typeof __VLS_export;
16
- export default _default;
@@ -1,13 +0,0 @@
1
- type __VLS_Props = {
2
- id: string;
3
- title: string;
4
- desc: string;
5
- select: boolean;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "x-click": (...args: any[]) => void;
9
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- "onX-click"?: ((...args: any[]) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_ModelProps = {
2
- modelValue: boolean;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {
5
- update: () => void;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:modelValue": (value: boolean) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
9
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,10 +0,0 @@
1
- type __VLS_Props = {
2
- type: 'list' | 'tree';
3
- lock: boolean;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
6
- open: import("vue").WritableComputedRef<boolean, boolean>;
7
- update: () => void;
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;
@@ -1,6 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- export interface Context {
3
- workspace?: Blockly.WorkspaceSvg;
4
- }
5
- export declare function provideContext(context: Context): void;
6
- export declare function injectContext(): Context;
@@ -1,3 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- export type Type = 'page' | 'comp' | 'func' | 'flow' | 'json';
3
- export declare function createWorkspace(container: HTMLDivElement, type: Type, version: string, dark: boolean): Blockly.WorkspaceSvg;
@@ -1,4 +0,0 @@
1
- import { App } from 'vue';
2
- import XBlockly from './blockly/index.vue';
3
- declare const install: (app: App) => void;
4
- export { XBlockly, install };
@@ -1,7 +0,0 @@
1
- import 'highlight.js/styles/default.min.css';
2
- type __VLS_Props = {
3
- code: string;
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
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1 +0,0 @@
1
- import './getPageArgument/v1';
@@ -1,2 +0,0 @@
1
- import './items/v1';
2
- import './types/v1';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,58 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- import { Type } from 'x-essential-lib';
3
- import { PropertyKind } from 'x-runtime-lib';
4
- import { BindKind } from '@/core/utils/app';
5
- type AppBindEntryV1Type = typeof APP_BIND_ENTRY_V1;
6
- interface AppBindEntryV1 extends AppBindEntryV1Type {
7
- kind: BindKind;
8
- node: {
9
- id: string;
10
- key: string;
11
- alias: string;
12
- };
13
- property: {
14
- id: string;
15
- kind: PropertyKind | '';
16
- names: string[];
17
- };
18
- state: {
19
- id: string;
20
- name: string;
21
- type: Type;
22
- };
23
- }
24
- export type AppBindEntryBlockV1 = Blockly.BlockSvg & AppBindEntryV1;
25
- declare const APP_BIND_ENTRY_V1: {
26
- init: (this: AppBindEntryBlockV1) => void;
27
- saveExtraState: (this: AppBindEntryBlockV1) => {
28
- kind: BindKind;
29
- node: {
30
- id: string;
31
- key: string;
32
- alias: string;
33
- };
34
- property: {
35
- id: string;
36
- kind: PropertyKind | "";
37
- names: string[];
38
- };
39
- state: {
40
- id: string;
41
- name: string;
42
- type: Type;
43
- };
44
- };
45
- loadExtraState: (this: AppBindEntryBlockV1, state: any) => void;
46
- genKindOpts_: (this: AppBindEntryBlockV1) => Blockly.MenuOption[];
47
- genNodeOpts_: (this: AppBindEntryBlockV1) => Blockly.MenuOption[];
48
- genPropertyOpts_: (this: AppBindEntryBlockV1) => Blockly.MenuOption[];
49
- genStateOpts_: (this: AppBindEntryBlockV1) => Blockly.MenuOption[];
50
- onchange: (this: AppBindEntryBlockV1, event: Blockly.Events.Abstract) => void;
51
- onKindChange_: (this: AppBindEntryBlockV1, value: BindKind) => void;
52
- onNodeChange_: (this: AppBindEntryBlockV1, value: string) => void;
53
- onPropertyChange_: (this: AppBindEntryBlockV1, value: string) => void;
54
- onStateChange_: (this: AppBindEntryBlockV1, value: string) => void;
55
- updateShape_: (this: AppBindEntryBlockV1) => void;
56
- checkWarning_: (this: AppBindEntryBlockV1) => void;
57
- };
58
- export {};
@@ -1,5 +0,0 @@
1
- import './appBind/v1';
2
- import './appBindEntry/v1';
3
- import './onAppEvent/v1';
4
- import './triggerAppEvent/v1';
5
- import './watchEffect/v1';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import './argument';
2
- import './define';
3
- import './event';
4
- import './message';
5
- import './method';
6
- import './misc';
7
- import './property';
8
- import './state';
@@ -1,4 +0,0 @@
1
- import './appDebugTrace/v1';
2
- import './openConfirmDlg/v1';
3
- import './openPromptDlg/v1';
4
- import './popupMessage/v1';
@@ -1,3 +0,0 @@
1
- import './callAppMethod/v1';
2
- import './implementAppMethod/v1';
3
- import './setAppMethodOutput/v1';
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import './appEnvIs/v1';
2
- import './navigateTo/v1';
3
- import './selectComp/v1';
4
- import './selectSlot/v1';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,42 +0,0 @@
1
- import * as Blockly from 'blockly/core';
2
- import { PropertyKind } from 'x-runtime-lib';
3
- type GetAppPropertyV1Type = typeof GET_APP_PROPERTY_V1;
4
- interface GetAppPropertyV1 extends GetAppPropertyV1Type {
5
- node: {
6
- id: string;
7
- key: string;
8
- alias: string;
9
- };
10
- property: {
11
- id: string;
12
- kind: PropertyKind | '';
13
- names: string[];
14
- };
15
- }
16
- export type GetAppPropertyBlockV1 = Blockly.Block & GetAppPropertyV1;
17
- declare const GET_APP_PROPERTY_V1: {
18
- init: (this: GetAppPropertyBlockV1) => void;
19
- initData_: (this: GetAppPropertyBlockV1) => void;
20
- saveExtraState: (this: GetAppPropertyBlockV1) => {
21
- node: {
22
- id: string;
23
- key: string;
24
- alias: string;
25
- };
26
- property: {
27
- id: string;
28
- kind: PropertyKind | "";
29
- names: string[];
30
- };
31
- };
32
- loadExtraState: (this: GetAppPropertyBlockV1, state: any) => void;
33
- genNodeOpts_: (this: GetAppPropertyBlockV1) => Blockly.MenuOption[];
34
- genPropertyOpts_: (this: GetAppPropertyBlockV1) => Blockly.MenuOption[];
35
- onchange: (this: GetAppPropertyBlockV1, event: Blockly.Events.Abstract) => void;
36
- onNodeChange_: (this: GetAppPropertyBlockV1, value: string) => void;
37
- onPropertyChange_: (this: GetAppPropertyBlockV1, value: string) => void;
38
- updateShape_: (this: GetAppPropertyBlockV1) => void;
39
- updateShadow_: (this: GetAppPropertyBlockV1) => void;
40
- checkWarning_: (this: GetAppPropertyBlockV1) => void;
41
- };
42
- export {};
@@ -1,2 +0,0 @@
1
- import './getAppProperty/v1';
2
- import './setAppProperty/v1';