@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.
- package/CHANGELOG.md +13 -0
- package/core/services/widget-service.ts +2 -1
- package/core/types/index.ts +6 -1
- package/dist/apl-B2DGVGxc.js +76 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-BUuHEmgZ.js +620 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/core/services/widget-service.d.ts +2 -1
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +2 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/css-bIlmDBTK.js +1560 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dockerfile-DIy8NleC.js +194 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/factor-DDOC7X6P.js +65 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/framework.js +289 -0
- package/dist/gas-BdfkXJT_.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-Bvt3Qq1t.js +375 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/index-83AS8awQ.js +147093 -0
- package/dist/index-BRzLUR4F.js +71 -0
- package/dist/index-BSMDwAsD.js +58 -0
- package/dist/index-BcE8cPQ1.js +611 -0
- package/dist/index-BdXB4Rc2.js +98 -0
- package/dist/index-BeE65IDG.js +75 -0
- package/dist/index-BjulAuhE.js +156 -0
- package/dist/index-C1julODM.js +288 -0
- package/dist/index-CCh6DcPw.js +93 -0
- package/dist/index-CM-cQwyJ.js +265 -0
- package/dist/index-CcUXsEpB.js +134 -0
- package/dist/index-D77dHT9M.js +538 -0
- package/dist/index-DjGE0Oe5.js +341 -0
- package/dist/index-DkbufypA.js +299 -0
- package/dist/index-VBkCq_SK.js +137 -0
- package/dist/index-cAxs8v2c.js +249 -0
- package/dist/index-nY-vksAs.js +308 -0
- package/dist/index.css +9 -0
- package/dist/javascript-WMWNx-Vj.js +690 -0
- package/dist/jinja2-DnB6dQmV.js +154 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-XplVlWi_.js +217 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nsis-fePjrhq7.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pug-BqUR2bBq.js +248 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-B5QdSKoL.js +313 -0
- package/dist/q-DXjKs-tC.js +83 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/ruby-CcYfvIk6.js +228 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +15 -37
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +3 -0
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +0 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +4 -4
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +4 -4
- package/dist/shared/modules/dynamic/types/index.d.ts +6 -1
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/simple-mode-B0dvCdAA.js +89 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-mMre1Bo3.js +282 -0
- package/dist/stex-92raWT1r.js +129 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/toml-BHiuTcfn.js +49 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts +0 -1
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +10 -10
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- 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
- 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
- package/dist/ui/components/organisms/vc-app/vc-app.backupsb.d.ts +50 -0
- package/dist/ui/components/organisms/vc-app/vc-app.backupsb.d.ts.map +1 -0
- 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
- 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
- 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
- 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
- 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
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +89 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vbscript-Dz1TtKsy.js +324 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-C4VGD9n1.js +263 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-BUQdORAS.js +422 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/z80-C8rPtw-0.js +61 -0
- package/package.json +5 -5
- package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +119 -56
- package/shared/components/blade-navigation/types/index.ts +3 -0
- package/shared/modules/dynamic/factories/types/index.ts +228 -229
- package/shared/modules/dynamic/types/index.ts +4 -1
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +2 -2
- package/ui/components/atoms/vc-badge/vc-badge.vue +1 -1
- package/ui/components/index.ts +0 -2
- package/ui/components/molecules/index.ts +1 -0
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +6 -4
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +7 -7
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +3 -1
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue +15 -2
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue +5 -2
- package/ui/components/organisms/vc-blade/vc-blade.vue +5 -1
- /package/ui/components/organisms/vc-app/{vc-app.stories.ts → vc-app.backupsb.ts} +0 -0
- /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.
|
|
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.
|
|
74
|
-
"@vc-shell/config-generator": "^1.1.
|
|
75
|
-
"@vc-shell/ts-config": "^1.1.
|
|
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": "^
|
|
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 {
|
|
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
|
-
|
|
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
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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
|
-
|
|
95
|
-
|
|
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 {
|