@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,48 @@
|
|
|
1
|
+
var o = /[+\-\/\\*~<>=@%|&?!.,:;^]/, p = /true|false|nil|self|super|thisContext/, l = function(e, n) {
|
|
2
|
+
this.next = e, this.parent = n;
|
|
3
|
+
}, r = function(e, n, t) {
|
|
4
|
+
this.name = e, this.context = n, this.eos = t;
|
|
5
|
+
}, c = function() {
|
|
6
|
+
this.context = new l(h, null), this.expectVariable = !0, this.indentation = 0, this.userIndentationDelta = 0;
|
|
7
|
+
};
|
|
8
|
+
c.prototype.userIndent = function(e, n) {
|
|
9
|
+
this.userIndentationDelta = e > 0 ? e / n - this.indentation : 0;
|
|
10
|
+
};
|
|
11
|
+
var h = function(e, n, t) {
|
|
12
|
+
var i = new r(null, n, !1), a = e.next();
|
|
13
|
+
return a === '"' ? i = u(e, new l(u, n)) : a === "'" ? i = s(e, new l(s, n)) : a === "#" ? e.peek() === "'" ? (e.next(), i = f(e, new l(f, n))) : e.eatWhile(/[^\s.{}\[\]()]/) ? i.name = "string.special" : i.name = "meta" : a === "$" ? (e.next() === "<" && (e.eatWhile(/[^\s>]/), e.next()), i.name = "string.special") : a === "|" && t.expectVariable ? i.context = new l(x, n) : /[\[\]{}()]/.test(a) ? (i.name = "bracket", i.eos = /[\[{(]/.test(a), a === "[" ? t.indentation++ : a === "]" && (t.indentation = Math.max(0, t.indentation - 1))) : o.test(a) ? (e.eatWhile(o), i.name = "operator", i.eos = a !== ";") : /\d/.test(a) ? (e.eatWhile(/[\w\d]/), i.name = "number") : /[\w_]/.test(a) ? (e.eatWhile(/[\w\d_]/), i.name = t.expectVariable ? p.test(e.current()) ? "keyword" : "variable" : null) : i.eos = t.expectVariable, i;
|
|
14
|
+
}, u = function(e, n) {
|
|
15
|
+
return e.eatWhile(/[^"]/), new r("comment", e.eat('"') ? n.parent : n, !0);
|
|
16
|
+
}, s = function(e, n) {
|
|
17
|
+
return e.eatWhile(/[^']/), new r("string", e.eat("'") ? n.parent : n, !1);
|
|
18
|
+
}, f = function(e, n) {
|
|
19
|
+
return e.eatWhile(/[^']/), new r("string.special", e.eat("'") ? n.parent : n, !1);
|
|
20
|
+
}, x = function(e, n) {
|
|
21
|
+
var t = new r(null, n, !1), i = e.next();
|
|
22
|
+
return i === "|" ? (t.context = n.parent, t.eos = !0) : (e.eatWhile(/[^|]/), t.name = "variable"), t;
|
|
23
|
+
};
|
|
24
|
+
const d = {
|
|
25
|
+
name: "smalltalk",
|
|
26
|
+
startState: function() {
|
|
27
|
+
return new c();
|
|
28
|
+
},
|
|
29
|
+
token: function(e, n) {
|
|
30
|
+
if (n.userIndent(e.indentation(), e.indentUnit), e.eatSpace())
|
|
31
|
+
return null;
|
|
32
|
+
var t = n.context.next(e, n.context, n);
|
|
33
|
+
return n.context = t.context, n.expectVariable = t.eos, t.name;
|
|
34
|
+
},
|
|
35
|
+
blankLine: function(e, n) {
|
|
36
|
+
e.userIndent(0, n);
|
|
37
|
+
},
|
|
38
|
+
indent: function(e, n, t) {
|
|
39
|
+
var i = e.context.next === h && n && n.charAt(0) === "]" ? -1 : e.userIndentationDelta;
|
|
40
|
+
return (e.indentation + i) * t.unit;
|
|
41
|
+
},
|
|
42
|
+
languageData: {
|
|
43
|
+
indentOnInput: /^\s*\]$/
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
d as smalltalk
|
|
48
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var u = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/, f = /[\|\!\+\-\*\?\~\^\&]/, l = /^(OR|AND|NOT|TO)$/;
|
|
2
|
+
function k(n) {
|
|
3
|
+
return parseFloat(n).toString() === n;
|
|
4
|
+
}
|
|
5
|
+
function a(n) {
|
|
6
|
+
return function(e, r) {
|
|
7
|
+
for (var t = !1, o; (o = e.next()) != null && !(o == n && !t); )
|
|
8
|
+
t = !t && o == "\\";
|
|
9
|
+
return t || (r.tokenize = i), "string";
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function c(n) {
|
|
13
|
+
return function(e, r) {
|
|
14
|
+
return n == "|" ? e.eat(/\|/) : n == "&" && e.eat(/\&/), r.tokenize = i, "operator";
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function s(n) {
|
|
18
|
+
return function(e, r) {
|
|
19
|
+
for (var t = n; (n = e.peek()) && n.match(u) != null; )
|
|
20
|
+
t += e.next();
|
|
21
|
+
return r.tokenize = i, l.test(t) ? "operator" : k(t) ? "number" : e.peek() == ":" ? "propertyName" : "string";
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function i(n, e) {
|
|
25
|
+
var r = n.next();
|
|
26
|
+
return r == '"' ? e.tokenize = a(r) : f.test(r) ? e.tokenize = c(r) : u.test(r) && (e.tokenize = s(r)), e.tokenize != i ? e.tokenize(n, e) : null;
|
|
27
|
+
}
|
|
28
|
+
const p = {
|
|
29
|
+
name: "solr",
|
|
30
|
+
startState: function() {
|
|
31
|
+
return {
|
|
32
|
+
tokenize: i
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
token: function(n, e) {
|
|
36
|
+
return n.eatSpace() ? null : e.tokenize(n, e);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
p as solr
|
|
41
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
var u;
|
|
2
|
+
function s(n) {
|
|
3
|
+
return new RegExp("^(?:" + n.join("|") + ")$", "i");
|
|
4
|
+
}
|
|
5
|
+
var d = s([
|
|
6
|
+
"str",
|
|
7
|
+
"lang",
|
|
8
|
+
"langmatches",
|
|
9
|
+
"datatype",
|
|
10
|
+
"bound",
|
|
11
|
+
"sameterm",
|
|
12
|
+
"isiri",
|
|
13
|
+
"isuri",
|
|
14
|
+
"iri",
|
|
15
|
+
"uri",
|
|
16
|
+
"bnode",
|
|
17
|
+
"count",
|
|
18
|
+
"sum",
|
|
19
|
+
"min",
|
|
20
|
+
"max",
|
|
21
|
+
"avg",
|
|
22
|
+
"sample",
|
|
23
|
+
"group_concat",
|
|
24
|
+
"rand",
|
|
25
|
+
"abs",
|
|
26
|
+
"ceil",
|
|
27
|
+
"floor",
|
|
28
|
+
"round",
|
|
29
|
+
"concat",
|
|
30
|
+
"substr",
|
|
31
|
+
"strlen",
|
|
32
|
+
"replace",
|
|
33
|
+
"ucase",
|
|
34
|
+
"lcase",
|
|
35
|
+
"encode_for_uri",
|
|
36
|
+
"contains",
|
|
37
|
+
"strstarts",
|
|
38
|
+
"strends",
|
|
39
|
+
"strbefore",
|
|
40
|
+
"strafter",
|
|
41
|
+
"year",
|
|
42
|
+
"month",
|
|
43
|
+
"day",
|
|
44
|
+
"hours",
|
|
45
|
+
"minutes",
|
|
46
|
+
"seconds",
|
|
47
|
+
"timezone",
|
|
48
|
+
"tz",
|
|
49
|
+
"now",
|
|
50
|
+
"uuid",
|
|
51
|
+
"struuid",
|
|
52
|
+
"md5",
|
|
53
|
+
"sha1",
|
|
54
|
+
"sha256",
|
|
55
|
+
"sha384",
|
|
56
|
+
"sha512",
|
|
57
|
+
"coalesce",
|
|
58
|
+
"if",
|
|
59
|
+
"strlang",
|
|
60
|
+
"strdt",
|
|
61
|
+
"isnumeric",
|
|
62
|
+
"regex",
|
|
63
|
+
"exists",
|
|
64
|
+
"isblank",
|
|
65
|
+
"isliteral",
|
|
66
|
+
"a",
|
|
67
|
+
"bind"
|
|
68
|
+
]), F = s([
|
|
69
|
+
"base",
|
|
70
|
+
"prefix",
|
|
71
|
+
"select",
|
|
72
|
+
"distinct",
|
|
73
|
+
"reduced",
|
|
74
|
+
"construct",
|
|
75
|
+
"describe",
|
|
76
|
+
"ask",
|
|
77
|
+
"from",
|
|
78
|
+
"named",
|
|
79
|
+
"where",
|
|
80
|
+
"order",
|
|
81
|
+
"limit",
|
|
82
|
+
"offset",
|
|
83
|
+
"filter",
|
|
84
|
+
"optional",
|
|
85
|
+
"graph",
|
|
86
|
+
"by",
|
|
87
|
+
"asc",
|
|
88
|
+
"desc",
|
|
89
|
+
"as",
|
|
90
|
+
"having",
|
|
91
|
+
"undef",
|
|
92
|
+
"values",
|
|
93
|
+
"group",
|
|
94
|
+
"minus",
|
|
95
|
+
"in",
|
|
96
|
+
"not",
|
|
97
|
+
"service",
|
|
98
|
+
"silent",
|
|
99
|
+
"using",
|
|
100
|
+
"insert",
|
|
101
|
+
"delete",
|
|
102
|
+
"union",
|
|
103
|
+
"true",
|
|
104
|
+
"false",
|
|
105
|
+
"with",
|
|
106
|
+
"data",
|
|
107
|
+
"copy",
|
|
108
|
+
"to",
|
|
109
|
+
"move",
|
|
110
|
+
"add",
|
|
111
|
+
"create",
|
|
112
|
+
"drop",
|
|
113
|
+
"clear",
|
|
114
|
+
"load",
|
|
115
|
+
"into"
|
|
116
|
+
]), x = /[*+\-<>=&|\^\/!\?]/, a = "[A-Za-z_\\-0-9]", h = new RegExp("[A-Za-z]"), g = new RegExp("((" + a + "|\\.)*(" + a + "))?:");
|
|
117
|
+
function p(n, e) {
|
|
118
|
+
var t = n.next();
|
|
119
|
+
if (u = null, t == "$" || t == "?")
|
|
120
|
+
return t == "?" && n.match(/\s/, !1) ? "operator" : (n.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/), "variableName.local");
|
|
121
|
+
if (t == "<" && !n.match(/^[\s\u00a0=]/, !1))
|
|
122
|
+
return n.match(/^[^\s\u00a0>]*>?/), "atom";
|
|
123
|
+
if (t == '"' || t == "'")
|
|
124
|
+
return e.tokenize = v(t), e.tokenize(n, e);
|
|
125
|
+
if (/[{}\(\),\.;\[\]]/.test(t))
|
|
126
|
+
return u = t, "bracket";
|
|
127
|
+
if (t == "#")
|
|
128
|
+
return n.skipToEnd(), "comment";
|
|
129
|
+
if (x.test(t))
|
|
130
|
+
return "operator";
|
|
131
|
+
if (t == ":")
|
|
132
|
+
return f(n), "atom";
|
|
133
|
+
if (t == "@")
|
|
134
|
+
return n.eatWhile(/[a-z\d\-]/i), "meta";
|
|
135
|
+
if (h.test(t) && n.match(g))
|
|
136
|
+
return f(n), "atom";
|
|
137
|
+
n.eatWhile(/[_\w\d]/);
|
|
138
|
+
var i = n.current();
|
|
139
|
+
return d.test(i) ? "builtin" : F.test(i) ? "keyword" : "variable";
|
|
140
|
+
}
|
|
141
|
+
function f(n) {
|
|
142
|
+
n.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i);
|
|
143
|
+
}
|
|
144
|
+
function v(n) {
|
|
145
|
+
return function(e, t) {
|
|
146
|
+
for (var i = !1, r; (r = e.next()) != null; ) {
|
|
147
|
+
if (r == n && !i) {
|
|
148
|
+
t.tokenize = p;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
i = !i && r == "\\";
|
|
152
|
+
}
|
|
153
|
+
return "string";
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function o(n, e, t) {
|
|
157
|
+
n.context = { prev: n.context, indent: n.indent, col: t, type: e };
|
|
158
|
+
}
|
|
159
|
+
function c(n) {
|
|
160
|
+
n.indent = n.context.indent, n.context = n.context.prev;
|
|
161
|
+
}
|
|
162
|
+
const m = {
|
|
163
|
+
name: "sparql",
|
|
164
|
+
startState: function() {
|
|
165
|
+
return {
|
|
166
|
+
tokenize: p,
|
|
167
|
+
context: null,
|
|
168
|
+
indent: 0,
|
|
169
|
+
col: 0
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
token: function(n, e) {
|
|
173
|
+
if (n.sol() && (e.context && e.context.align == null && (e.context.align = !1), e.indent = n.indentation()), n.eatSpace()) return null;
|
|
174
|
+
var t = e.tokenize(n, e);
|
|
175
|
+
if (t != "comment" && e.context && e.context.align == null && e.context.type != "pattern" && (e.context.align = !0), u == "(") o(e, ")", n.column());
|
|
176
|
+
else if (u == "[") o(e, "]", n.column());
|
|
177
|
+
else if (u == "{") o(e, "}", n.column());
|
|
178
|
+
else if (/[\]\}\)]/.test(u)) {
|
|
179
|
+
for (; e.context && e.context.type == "pattern"; ) c(e);
|
|
180
|
+
e.context && u == e.context.type && (c(e), u == "}" && e.context && e.context.type == "pattern" && c(e));
|
|
181
|
+
} else u == "." && e.context && e.context.type == "pattern" ? c(e) : /atom|string|variable/.test(t) && e.context && (/[\}\]]/.test(e.context.type) ? o(e, "pattern", n.column()) : e.context.type == "pattern" && !e.context.align && (e.context.align = !0, e.context.col = n.column()));
|
|
182
|
+
return t;
|
|
183
|
+
},
|
|
184
|
+
indent: function(n, e, t) {
|
|
185
|
+
var i = e && e.charAt(0), r = n.context;
|
|
186
|
+
if (/[\]\}]/.test(i))
|
|
187
|
+
for (; r && r.type == "pattern"; ) r = r.prev;
|
|
188
|
+
var l = r && i == r.type;
|
|
189
|
+
return r ? r.type == "pattern" ? r.col : r.align ? r.col + (l ? 0 : 1) : r.indent + (l ? 0 : t.unit) : 0;
|
|
190
|
+
},
|
|
191
|
+
languageData: {
|
|
192
|
+
commentTokens: { line: "#" }
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
export {
|
|
196
|
+
m as sparql
|
|
197
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
name: "spreadsheet",
|
|
3
|
+
startState: function() {
|
|
4
|
+
return {
|
|
5
|
+
stringType: null,
|
|
6
|
+
stack: []
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
token: function(e, n) {
|
|
10
|
+
if (e) {
|
|
11
|
+
switch (n.stack.length === 0 && (e.peek() == '"' || e.peek() == "'") && (n.stringType = e.peek(), e.next(), n.stack.unshift("string")), n.stack[0]) {
|
|
12
|
+
case "string":
|
|
13
|
+
for (; n.stack[0] === "string" && !e.eol(); )
|
|
14
|
+
e.peek() === n.stringType ? (e.next(), n.stack.shift()) : e.peek() === "\\" ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/);
|
|
15
|
+
return "string";
|
|
16
|
+
case "characterClass":
|
|
17
|
+
for (; n.stack[0] === "characterClass" && !e.eol(); )
|
|
18
|
+
e.match(/^[^\]\\]+/) || e.match(/^\\./) || n.stack.shift();
|
|
19
|
+
return "operator";
|
|
20
|
+
}
|
|
21
|
+
var c = e.peek();
|
|
22
|
+
switch (c) {
|
|
23
|
+
case "[":
|
|
24
|
+
return e.next(), n.stack.unshift("characterClass"), "bracket";
|
|
25
|
+
case ":":
|
|
26
|
+
return e.next(), "operator";
|
|
27
|
+
case "\\":
|
|
28
|
+
return e.match(/\\[a-z]+/) ? "string.special" : (e.next(), "atom");
|
|
29
|
+
case ".":
|
|
30
|
+
case ",":
|
|
31
|
+
case ";":
|
|
32
|
+
case "*":
|
|
33
|
+
case "-":
|
|
34
|
+
case "+":
|
|
35
|
+
case "^":
|
|
36
|
+
case "<":
|
|
37
|
+
case "/":
|
|
38
|
+
case "=":
|
|
39
|
+
return e.next(), "atom";
|
|
40
|
+
case "$":
|
|
41
|
+
return e.next(), "builtin";
|
|
42
|
+
}
|
|
43
|
+
return e.match(/\d+/) ? e.match(/^\w+/) ? "error" : "number" : e.match(/^[a-zA-Z_]\w*/) ? e.match(/(?=[\(.])/, !1) ? "keyword" : "variable" : ["[", "]", "(", ")", "{", "}"].indexOf(c) != -1 ? (e.next(), "bracket") : (e.eatSpace() || e.next(), null);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
i as spreadsheet
|
|
49
|
+
};
|