@vc-shell/framework 1.1.6 → 1.1.8

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 (214) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/core/services/widget-service.ts +2 -1
  3. package/core/types/index.ts +6 -1
  4. package/dist/apl-B2DGVGxc.js +76 -0
  5. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  6. package/dist/asn1-jKiBa2Ya.js +95 -0
  7. package/dist/asterisk-DS281yxp.js +271 -0
  8. package/dist/brainfuck-C_p9pTT8.js +34 -0
  9. package/dist/clike-BUuHEmgZ.js +620 -0
  10. package/dist/clojure-CCKyeQKf.js +800 -0
  11. package/dist/cmake-CuaCgAKt.js +28 -0
  12. package/dist/cobol-BlTKFDRj.js +72 -0
  13. package/dist/coffeescript-BVCvwO8I.js +179 -0
  14. package/dist/commonlisp-D_kxz07b.js +75 -0
  15. package/dist/core/services/widget-service.d.ts +2 -1
  16. package/dist/core/services/widget-service.d.ts.map +1 -1
  17. package/dist/core/types/index.d.ts +2 -1
  18. package/dist/core/types/index.d.ts.map +1 -1
  19. package/dist/crystal-D309uH6_.js +217 -0
  20. package/dist/css-bIlmDBTK.js +1560 -0
  21. package/dist/cypher-BMq4Fwjl.js +68 -0
  22. package/dist/d-BZcgY6La.js +127 -0
  23. package/dist/diff-Cg9d_RX2.js +18 -0
  24. package/dist/dockerfile-DIy8NleC.js +194 -0
  25. package/dist/dtd-CtLokQ-U.js +84 -0
  26. package/dist/dylan-QYeExnWK.js +234 -0
  27. package/dist/ebnf-DUPDuY4r.js +78 -0
  28. package/dist/ecl-CiXN-g_D.js +121 -0
  29. package/dist/eiffel-yQhjl4T1.js +110 -0
  30. package/dist/elm-CNT9vbN0.js +108 -0
  31. package/dist/erlang-CFOYdy9e.js +487 -0
  32. package/dist/factor-DDOC7X6P.js +65 -0
  33. package/dist/fcl-CPC2WYrI.js +103 -0
  34. package/dist/forth-BmxRyE9S.js +60 -0
  35. package/dist/fortran-9bvPyrOW.js +442 -0
  36. package/dist/framework.js +289 -0
  37. package/dist/gas-BdfkXJT_.js +183 -0
  38. package/dist/gherkin-CJuwpceU.js +34 -0
  39. package/dist/groovy-DZeT_VM-.js +146 -0
  40. package/dist/haskell-Bvt3Qq1t.js +375 -0
  41. package/dist/haxe-70NVW1pR.js +359 -0
  42. package/dist/http-D9LttvKF.js +44 -0
  43. package/dist/idl-B6TRFYjl.js +947 -0
  44. package/dist/index-83AS8awQ.js +147093 -0
  45. package/dist/index-BRzLUR4F.js +71 -0
  46. package/dist/index-BSMDwAsD.js +58 -0
  47. package/dist/index-BcE8cPQ1.js +611 -0
  48. package/dist/index-BdXB4Rc2.js +98 -0
  49. package/dist/index-BeE65IDG.js +75 -0
  50. package/dist/index-BjulAuhE.js +156 -0
  51. package/dist/index-C1julODM.js +288 -0
  52. package/dist/index-CCh6DcPw.js +93 -0
  53. package/dist/index-CM-cQwyJ.js +265 -0
  54. package/dist/index-CcUXsEpB.js +134 -0
  55. package/dist/index-D77dHT9M.js +538 -0
  56. package/dist/index-DjGE0Oe5.js +341 -0
  57. package/dist/index-DkbufypA.js +299 -0
  58. package/dist/index-VBkCq_SK.js +137 -0
  59. package/dist/index-cAxs8v2c.js +249 -0
  60. package/dist/index-nY-vksAs.js +308 -0
  61. package/dist/index.css +9 -0
  62. package/dist/javascript-WMWNx-Vj.js +690 -0
  63. package/dist/jinja2-DnB6dQmV.js +154 -0
  64. package/dist/julia-DpvXAuO6.js +241 -0
  65. package/dist/livescript-CanGTf8u.js +272 -0
  66. package/dist/lua-XplVlWi_.js +217 -0
  67. package/dist/mathematica-jaRHnSxC.js +35 -0
  68. package/dist/mbox-BctzC1hL.js +76 -0
  69. package/dist/mirc-CFBPAOaF.js +72 -0
  70. package/dist/mllike-BSnXJBGA.js +272 -0
  71. package/dist/modelica-vUgVs--1.js +93 -0
  72. package/dist/mscgen-Cpl0NYLN.js +104 -0
  73. package/dist/mumps-CQoS1kWX.js +25 -0
  74. package/dist/nginx-zDPm3Z74.js +89 -0
  75. package/dist/nsis-fePjrhq7.js +62 -0
  76. package/dist/ntriples-CsNjv2QF.js +79 -0
  77. package/dist/octave-C8PmmSRH.js +143 -0
  78. package/dist/oz-Ce8aN8oE.js +151 -0
  79. package/dist/pascal-De0D6mP7.js +77 -0
  80. package/dist/perl-B4bSCe1C.js +915 -0
  81. package/dist/pig-D24Z8EXi.js +54 -0
  82. package/dist/powershell-DkYVfTzP.js +249 -0
  83. package/dist/properties-Dn9wna3M.js +26 -0
  84. package/dist/protobuf-BPIjwpzm.js +49 -0
  85. package/dist/pug-BqUR2bBq.js +248 -0
  86. package/dist/puppet-nyd4dhjf.js +45 -0
  87. package/dist/python-B5QdSKoL.js +313 -0
  88. package/dist/q-DXjKs-tC.js +83 -0
  89. package/dist/r-LKEuhEGI.js +104 -0
  90. package/dist/rpm-IznJm2Xc.js +57 -0
  91. package/dist/ruby-CcYfvIk6.js +228 -0
  92. package/dist/sas-7E8yHoCW.js +105 -0
  93. package/dist/scheme-DjibxsNh.js +124 -0
  94. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +15 -37
  95. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
  96. package/dist/shared/components/blade-navigation/types/index.d.ts +3 -0
  97. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  98. package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
  99. package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
  100. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  101. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  102. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +1 -1
  103. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -1
  104. package/dist/shared/modules/dynamic/factories/types/index.d.ts +0 -1
  105. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
  106. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +4 -4
  107. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  108. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +4 -4
  109. package/dist/shared/modules/dynamic/types/index.d.ts +6 -1
  110. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  111. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  112. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  113. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  114. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  115. package/dist/shell-C0C2sNA_.js +182 -0
  116. package/dist/sieve-Bwz7vjP5.js +72 -0
  117. package/dist/simple-mode-B0dvCdAA.js +89 -0
  118. package/dist/smalltalk-Bhddl2pB.js +48 -0
  119. package/dist/solr-BNlsLglM.js +41 -0
  120. package/dist/sparql-FarWu_Gb.js +197 -0
  121. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  122. package/dist/sql-mMre1Bo3.js +282 -0
  123. package/dist/stex-92raWT1r.js +129 -0
  124. package/dist/stylus-CAdqWld3.js +250 -0
  125. package/dist/swift-DSxqR9R6.js +230 -0
  126. package/dist/tcl-xfoLljhY.js +81 -0
  127. package/dist/textile-D1AWE-pc.js +295 -0
  128. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  129. package/dist/tiki-__Kn3CeS.js +181 -0
  130. package/dist/toml-BHiuTcfn.js +49 -0
  131. package/dist/troff-D2UO-fKf.js +35 -0
  132. package/dist/tsconfig.tsbuildinfo +1 -1
  133. package/dist/ttcn-Bsa4sfRm.js +123 -0
  134. package/dist/ttcn-cfg-Bac_acMi.js +88 -0
  135. package/dist/turtle-xwJUxoPV.js +80 -0
  136. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  137. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  138. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  139. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  140. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  141. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
  142. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  143. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  144. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  145. package/dist/ui/components/index.d.ts +0 -1
  146. package/dist/ui/components/index.d.ts.map +1 -1
  147. package/dist/ui/components/molecules/index.d.ts +1 -0
  148. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  149. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
  150. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  151. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  152. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -4
  153. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  154. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  155. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +10 -10
  156. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
  157. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  158. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  159. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  160. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  161. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
  162. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  163. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  164. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  165. package/dist/ui/components/organisms/vc-app/vc-app.backupsb.d.ts +50 -0
  166. package/dist/ui/components/organisms/vc-app/vc-app.backupsb.d.ts.map +1 -0
  167. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
  168. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  169. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  170. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
  171. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
  172. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  173. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts +1 -0
  174. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
  175. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts.map +1 -1
  176. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +89 -0
  177. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts.map +1 -0
  178. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  179. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  180. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  181. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  182. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  183. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  184. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  185. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  186. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  187. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  188. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  189. package/dist/vb-c2kQGd6-.js +74 -0
  190. package/dist/vbscript-Dz1TtKsy.js +324 -0
  191. package/dist/velocity-DJd0pTTC.js +96 -0
  192. package/dist/verilog-C4VGD9n1.js +263 -0
  193. package/dist/vhdl-T9HkrbI2.js +106 -0
  194. package/dist/webidl-CjfDENEo.js +155 -0
  195. package/dist/xquery-BUQdORAS.js +422 -0
  196. package/dist/yacas-C0absKBh.js +73 -0
  197. package/dist/z80-C8rPtw-0.js +61 -0
  198. package/package.json +5 -5
  199. package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +119 -56
  200. package/shared/components/blade-navigation/types/index.ts +3 -0
  201. package/shared/modules/dynamic/factories/types/index.ts +228 -229
  202. package/shared/modules/dynamic/types/index.ts +4 -1
  203. package/ui/components/atoms/vc-badge/vc-badge.stories.ts +2 -2
  204. package/ui/components/atoms/vc-badge/vc-badge.vue +1 -1
  205. package/ui/components/index.ts +0 -2
  206. package/ui/components/molecules/index.ts +1 -0
  207. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +6 -4
  208. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +7 -7
  209. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +3 -1
  210. package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue +15 -2
  211. package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue +5 -2
  212. package/ui/components/organisms/vc-blade/vc-blade.vue +5 -1
  213. /package/ui/components/organisms/vc-app/{vc-app.stories.ts → vc-app.backupsb.ts} +0 -0
  214. /package/ui/components/organisms/vc-blade/{vc-blade.stories.ts → vc-blade.backupsb.ts} +0 -0
@@ -0,0 +1,73 @@
1
+ function t(e) {
2
+ for (var n = {}, r = e.split(" "), o = 0; o < r.length; ++o) n[r[o]] = !0;
3
+ return n;
4
+ }
5
+ var a = t("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"), f = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)", u = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)", p = new RegExp(f), d = new RegExp(u), k = new RegExp(u + "?_" + u), s = new RegExp(u + "\\s*\\(");
6
+ function l(e, n) {
7
+ var r;
8
+ if (r = e.next(), r === '"')
9
+ return n.tokenize = v, n.tokenize(e, n);
10
+ if (r === "/") {
11
+ if (e.eat("*"))
12
+ return n.tokenize = h, n.tokenize(e, n);
13
+ if (e.eat("/"))
14
+ return e.skipToEnd(), "comment";
15
+ }
16
+ e.backUp(1);
17
+ var o = e.match(/^(\w+)\s*\(/, !1);
18
+ o !== null && a.hasOwnProperty(o[1]) && n.scopes.push("bodied");
19
+ var i = c(n);
20
+ if (i === "bodied" && r === "[" && n.scopes.pop(), (r === "[" || r === "{" || r === "(") && n.scopes.push(r), i = c(n), (i === "[" && r === "]" || i === "{" && r === "}" || i === "(" && r === ")") && n.scopes.pop(), r === ";")
21
+ for (; i === "bodied"; )
22
+ n.scopes.pop(), i = c(n);
23
+ return e.match(/\d+ *#/, !0, !1) ? "qualifier" : e.match(p, !0, !1) ? "number" : e.match(k, !0, !1) ? "variableName.special" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(s, !0, !1) ? (e.backUp(1), "variableName.function") : e.match(d, !0, !1) ? "variable" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, !0, !1) ? "operator" : "error";
24
+ }
25
+ function v(e, n) {
26
+ for (var r, o = !1, i = !1; (r = e.next()) != null; ) {
27
+ if (r === '"' && !i) {
28
+ o = !0;
29
+ break;
30
+ }
31
+ i = !i && r === "\\";
32
+ }
33
+ return o && !i && (n.tokenize = l), "string";
34
+ }
35
+ function h(e, n) {
36
+ for (var r, o; (o = e.next()) != null; ) {
37
+ if (r === "*" && o === "/") {
38
+ n.tokenize = l;
39
+ break;
40
+ }
41
+ r = o;
42
+ }
43
+ return "comment";
44
+ }
45
+ function c(e) {
46
+ var n = null;
47
+ return e.scopes.length > 0 && (n = e.scopes[e.scopes.length - 1]), n;
48
+ }
49
+ const b = {
50
+ name: "yacas",
51
+ startState: function() {
52
+ return {
53
+ tokenize: l,
54
+ scopes: []
55
+ };
56
+ },
57
+ token: function(e, n) {
58
+ return e.eatSpace() ? null : n.tokenize(e, n);
59
+ },
60
+ indent: function(e, n, r) {
61
+ if (e.tokenize !== l && e.tokenize !== null)
62
+ return null;
63
+ var o = 0;
64
+ return (n === "]" || n === "];" || n === "}" || n === "};" || n === ");") && (o = -1), (e.scopes.length + o) * r.unit;
65
+ },
66
+ languageData: {
67
+ electricInput: /[{}\[\]()\;]/,
68
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
69
+ }
70
+ };
71
+ export {
72
+ b as yacas
73
+ };
@@ -0,0 +1,61 @@
1
+ function o(t) {
2
+ var n, l;
3
+ t ? (n = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i, l = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i) : (n = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i, l = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);
4
+ var u = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i, d = /^(n?[zc]|p[oe]?|m)\b/i, f = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i, c = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;
5
+ return {
6
+ name: "z80",
7
+ startState: function() {
8
+ return {
9
+ context: 0
10
+ };
11
+ },
12
+ token: function(e, i) {
13
+ if (e.column() || (i.context = 0), e.eatSpace())
14
+ return null;
15
+ var r;
16
+ if (e.eatWhile(/\w/))
17
+ if (t && e.eat(".") && e.eatWhile(/\w/), r = e.current(), e.indentation()) {
18
+ if ((i.context == 1 || i.context == 4) && u.test(r))
19
+ return i.context = 4, "variable";
20
+ if (i.context == 2 && d.test(r))
21
+ return i.context = 4, "variableName.special";
22
+ if (n.test(r))
23
+ return i.context = 1, "keyword";
24
+ if (l.test(r))
25
+ return i.context = 2, "keyword";
26
+ if (i.context == 4 && c.test(r))
27
+ return "number";
28
+ if (f.test(r))
29
+ return "error";
30
+ } else return e.match(c) ? "number" : null;
31
+ else {
32
+ if (e.eat(";"))
33
+ return e.skipToEnd(), "comment";
34
+ if (e.eat('"')) {
35
+ for (; (r = e.next()) && r != '"'; )
36
+ r == "\\" && e.next();
37
+ return "string";
38
+ } else if (e.eat("'")) {
39
+ if (e.match(/\\?.'/))
40
+ return "number";
41
+ } else if (e.eat(".") || e.sol() && e.eat("#")) {
42
+ if (i.context = 5, e.eatWhile(/\w/))
43
+ return "def";
44
+ } else if (e.eat("$")) {
45
+ if (e.eatWhile(/[\da-f]/i))
46
+ return "number";
47
+ } else if (e.eat("%")) {
48
+ if (e.eatWhile(/[01]/))
49
+ return "number";
50
+ } else
51
+ e.next();
52
+ }
53
+ return null;
54
+ }
55
+ };
56
+ }
57
+ const a = o(!1), s = o(!0);
58
+ export {
59
+ s as ez80,
60
+ a as z80
61
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -70,9 +70,9 @@
70
70
  "devDependencies": {
71
71
  "@fullhuman/postcss-purgecss": "^7.0.2",
72
72
  "@types/dompurify": "^3.0.5",
73
- "@vc-shell/api-client-generator": "^1.1.6",
74
- "@vc-shell/config-generator": "^1.1.6",
75
- "@vc-shell/ts-config": "^1.1.6",
73
+ "@vc-shell/api-client-generator": "^1.1.8",
74
+ "@vc-shell/config-generator": "^1.1.8",
75
+ "@vc-shell/ts-config": "^1.1.8",
76
76
  "@vitejs/plugin-vue": "^5.2.3",
77
77
  "@vue/test-utils": "^2.4.5",
78
78
  "cypress-signalr-mock": "^1.5.0",
@@ -84,7 +84,7 @@
84
84
  "typescript": "^5.8.3",
85
85
  "vite": "^6.3.3",
86
86
  "vitest": "^1.3.1",
87
- "vue-component-type-helpers": "^1.8.27",
87
+ "vue-component-type-helpers": "^2.2.10",
88
88
  "vue-tsc": "^2.2.10"
89
89
  },
90
90
  "publishConfig": {
@@ -1,9 +1,43 @@
1
- import { Slot, defineComponent, h, provide, ref, VNode, PropType, Component, reactive, computed, toRefs } from "vue";
1
+ import {
2
+ h,
3
+ provide,
4
+ ref,
5
+ VNode,
6
+ PropType,
7
+ Component,
8
+ reactive,
9
+ computed,
10
+ toRefs,
11
+ Slot,
12
+ defineComponent,
13
+ SetupContext,
14
+ } from "vue";
2
15
  import { BladeInstance, navigationViewLocation, BLADE_BACK_BUTTON } from "./../../../../../injection-keys";
3
- import { BladeVNode, CoreBladeExposed } from "../../types";
16
+ import { BladeVNode, CoreBladeExposed, IBladeInstance } from "../../types";
4
17
  import { toRef, watchTriggerable } from "@vueuse/core";
5
18
  import { Breadcrumbs, FALLBACK_BLADE_ID } from "../../../../..";
6
19
 
20
+ /**
21
+ * Normalizes slot content
22
+ * @param slot The slot to normalize
23
+ * @param data The data to pass to the slot
24
+ * @returns Normalized slot content or null
25
+ */
26
+ function normalizeSlot(slot: Slot | undefined, data: { Component: VNode }): VNode | VNode[] | null {
27
+ if (!slot) return null;
28
+ const slotContent = slot(data);
29
+ return slotContent.length === 1 ? slotContent[0] : slotContent;
30
+ }
31
+
32
+ // Define the props type for type safety
33
+ interface BladeViewProps {
34
+ blade?: BladeVNode;
35
+ expandable?: boolean;
36
+ error?: string;
37
+ breadcrumbs?: Breadcrumbs[];
38
+ backButton?: Component;
39
+ }
40
+
7
41
  export const VcBladeView = defineComponent({
8
42
  name: "BladeView",
9
43
  inheritAttrs: false,
@@ -25,76 +59,111 @@ export const VcBladeView = defineComponent({
25
59
  default: undefined,
26
60
  },
27
61
  },
28
- setup(props, { attrs, slots }) {
29
- const maximized = ref(false);
30
- const viewRef = ref<CoreBladeExposed>();
62
+ setup(props: BladeViewProps, { attrs, slots }: SetupContext) {
63
+ const maximized = ref<boolean>(false);
64
+ const viewRef = ref<CoreBladeExposed | undefined>();
31
65
 
32
66
  const bl = toRef(props.blade);
33
67
  const { backButton } = toRefs(props);
34
68
 
35
- const { trigger } = watchTriggerable(
69
+ /**
70
+ * Links the blade instance to its navigation object.
71
+ *
72
+ * This is a crucial part of the blade navigation system:
73
+ * 1. When a blade is mounted, we need to associate its instance with the navigation props
74
+ * 2. This creates a two-way reference where the blade knows about its navigation context
75
+ * 3. The navigation instance property is implemented as a getter to ensure it always returns
76
+ * the current value of viewRef
77
+ *
78
+ * The flush:sync option ensures this happens immediately in the same tick to prevent
79
+ * timing issues where the instance might not be available when needed.
80
+ */
81
+ const linkBladeInstanceToNavigation = (): void => {
82
+ const instance = viewRef.value;
83
+ const blade = bl.value;
84
+
85
+ if (!instance || !blade || !blade.props?.navigation) {
86
+ return;
87
+ }
88
+
89
+ // Create a reactive getter for the instance property
90
+ // This ensures that navigation.instance always returns the current viewRef value
91
+ Object.defineProperty(blade.props.navigation, "instance", {
92
+ get: () => instance,
93
+ configurable: true,
94
+ enumerable: true,
95
+ });
96
+ };
97
+
98
+ // Use watchTriggerable to manually invoke the linking process when needed
99
+ const { trigger: syncNavigationWithInstance } = watchTriggerable(
36
100
  () => [viewRef.value, bl.value] as const,
37
- ([instance, blade]) => {
38
- if (instance && blade && blade.props?.navigation) {
39
- Object.assign(
40
- blade.props.navigation,
41
- reactive({
42
- get instance() {
43
- return instance;
44
- },
45
- }),
46
- );
47
- }
48
- },
101
+ () => linkBladeInstanceToNavigation(),
49
102
  { flush: "sync" },
50
103
  );
51
- provide(navigationViewLocation, bl.value!);
104
+
105
+ // Provide the navigation view location without using non-null assertion
106
+ if (bl.value) {
107
+ provide(navigationViewLocation, bl.value);
108
+ }
109
+
52
110
  provide(BLADE_BACK_BUTTON, backButton);
111
+
53
112
  provide(
54
113
  BladeInstance,
55
- computed(() => ({
114
+ computed<IBladeInstance>(() => ({
56
115
  id: bl.value?.type.name ?? FALLBACK_BLADE_ID,
57
- expandable: props.expandable,
116
+ param: bl.value?.props?.param,
117
+ options: bl.value?.props?.options,
118
+ expandable: props.expandable ?? false,
58
119
  maximized: maximized.value,
59
120
  error: props.error,
60
121
  navigation: bl.value?.props?.navigation,
61
122
  breadcrumbs: props.breadcrumbs,
123
+ title: bl.value?.props?.navigation?.instance?.title,
62
124
  })),
63
125
  );
64
- return () => {
65
- /**
66
- * Callback function onClose, which is passed while opening blade, called when a BladeVNode is unmounted.
67
- * @param vnode The unmounted VNode.
68
- */
69
- const onVnodeUnmounted: BladeVNode["props"]["onVnodeUnmounted"] = (vnode) => {
70
- if (vnode.component?.isUnmounted) {
71
- if (typeof vnode.props?.navigation?.onClose === "function") {
72
- vnode.props?.navigation.onClose();
73
- }
74
- }
75
- };
76
-
77
- /**
78
- * Callback function onOpen, which is passed while opening blade, called when a BladeVNode is mounted.
79
- * @param vnode The mounted VNode.
80
- */
81
- const onVnodeMounted: BladeVNode["props"]["onVnodeMounted"] = (vnode) => {
82
- if (vnode.component?.isMounted) {
83
- trigger();
84
- if (typeof vnode.props?.navigation?.onOpen === "function") {
85
- vnode.props?.navigation.onOpen();
86
- }
87
- }
88
- };
89
126
 
90
- function onExpand() {
91
- maximized.value = true;
127
+ /**
128
+ * Handler for expanding the blade
129
+ */
130
+ const onExpand = (): void => {
131
+ maximized.value = true;
132
+ };
133
+
134
+ /**
135
+ * Handler for collapsing the blade
136
+ */
137
+ const onCollapse = (): void => {
138
+ maximized.value = false;
139
+ };
140
+
141
+ /**
142
+ * Callback function onClose, which is passed while opening blade, called when a BladeVNode is unmounted.
143
+ * @param vnode The unmounted VNode.
144
+ */
145
+ const onVnodeUnmounted: BladeVNode["props"]["onVnodeUnmounted"] = (vnode): void => {
146
+ if (vnode.component?.isUnmounted && typeof vnode.props?.navigation?.onClose === "function") {
147
+ vnode.props.navigation.onClose();
92
148
  }
149
+ };
150
+
151
+ /**
152
+ * Callback function onOpen, which is passed while opening blade, called when a BladeVNode is mounted.
153
+ * @param vnode The mounted VNode.
154
+ */
155
+ const onVnodeMounted: BladeVNode["props"]["onVnodeMounted"] = (vnode): void => {
156
+ if (vnode.component?.isMounted) {
157
+ // Synchronize the blade instance with navigation when the component is mounted
158
+ syncNavigationWithInstance();
93
159
 
94
- function onCollapse() {
95
- maximized.value = false;
160
+ if (typeof vnode.props?.navigation?.onOpen === "function") {
161
+ vnode.props.navigation.onOpen();
162
+ }
96
163
  }
164
+ };
97
165
 
166
+ return () => {
98
167
  if (props.blade) {
99
168
  const component = h(
100
169
  props.blade as Component,
@@ -113,9 +182,3 @@ export const VcBladeView = defineComponent({
113
182
  };
114
183
  },
115
184
  });
116
-
117
- function normalizeSlot(slot: Slot | undefined, data: { Component: VNode }) {
118
- if (!slot) return null;
119
- const slotContent = slot(data);
120
- return slotContent.length === 1 ? slotContent[0] : slotContent;
121
- }
@@ -49,6 +49,9 @@ export interface IBladeInstance {
49
49
  error: string | undefined;
50
50
  navigation: BladeVNode["props"]["navigation"] | undefined;
51
51
  breadcrumbs: Breadcrumbs[] | undefined;
52
+ title?: string;
53
+ param?: string;
54
+ options?: Record<string, any>;
52
55
  }
53
56
 
54
57
  export interface IParentCallArgs {