form-imagining 0.0.6 → 0.0.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/README.md +13 -16
- package/dist/abap-5361cc9f.js +1314 -0
- package/dist/apex-f9413e6f.js +315 -0
- package/dist/assets/css.worker-c3850ceb.js +88 -0
- package/dist/assets/editor.worker-94ffd778.js +12 -0
- package/dist/assets/html.worker-88b237e1.js +460 -0
- package/dist/assets/json.worker-8dd963f3.js +43 -0
- package/dist/assets/ts.worker-184cdfdf.js +37022 -0
- package/dist/azcli-36f2cb5e.js +74 -0
- package/dist/bat-6b05202d.js +95 -0
- package/dist/bicep-788415e3.js +108 -0
- package/dist/cameligo-4e85ec93.js +168 -0
- package/dist/clojure-40fa5799.js +754 -0
- package/dist/coffee-f557f5e0.js +228 -0
- package/dist/cpp-ebbf7759.js +390 -0
- package/dist/csharp-1616f566.js +320 -0
- package/dist/csp-5f0bc3c4.js +57 -0
- package/dist/css-2b1aec9b.js +186 -0
- package/dist/cssMode-0bcb1554.js +1447 -0
- package/dist/cypher-b12b4ba8.js +262 -0
- package/dist/dart-e0d70030.js +270 -0
- package/dist/dockerfile-f9d4b2b0.js +132 -0
- package/dist/ecl-5b91fdec.js +454 -0
- package/dist/elixir-deffd5a6.js +489 -0
- package/dist/flow9-84cd00d7.js +141 -0
- package/dist/form-imagining.js +3 -16340
- package/dist/form-imagining.umd.cjs +1978 -102
- package/dist/freemarker2-4d8e8e55.js +644 -0
- package/dist/fsharp-d296151f.js +210 -0
- package/dist/go-7e72ff3b.js +208 -0
- package/dist/graphql-a93568a1.js +141 -0
- package/dist/handlebars-c43672f7.js +392 -0
- package/dist/hcl-b3994d8f.js +177 -0
- package/dist/html-c6099a2e.js +282 -0
- package/dist/htmlMode-31c10440.js +1457 -0
- package/dist/index-a3197e12.js +122055 -0
- package/dist/ini-df84509a.js +68 -0
- package/dist/java-fba3d046.js +221 -0
- package/dist/javascript-ac2b4ae2.js +77 -0
- package/dist/jsonMode-36333022.js +1868 -0
- package/dist/julia-cefd45f6.js +496 -0
- package/dist/kotlin-b87b6942.js +245 -0
- package/dist/less-8a7f37bc.js +168 -0
- package/dist/lexon-cb95cd13.js +151 -0
- package/dist/liquid-b5021331.js +239 -0
- package/dist/lua-6d5b3ea4.js +157 -0
- package/dist/m3-d0daf5d0.js +210 -0
- package/dist/markdown-48bb0c6f.js +202 -0
- package/dist/mdx-bbae5f86.js +172 -0
- package/dist/mips-20dcf886.js +194 -0
- package/dist/msdax-e9759e23.js +377 -0
- package/dist/mysql-95f335b2.js +876 -0
- package/dist/objective-c-ad0cfb47.js +188 -0
- package/dist/pascal-eda19dc3.js +245 -0
- package/dist/pascaligo-b7e0c89b.js +158 -0
- package/dist/perl-bbe5d32a.js +599 -0
- package/dist/pgsql-7ebaee1c.js +847 -0
- package/dist/php-2526756d.js +471 -0
- package/dist/pla-9ebd6f68.js +131 -0
- package/dist/postiats-9ac05cf6.js +544 -0
- package/dist/powerquery-1cae399d.js +890 -0
- package/dist/powershell-093b5b87.js +233 -0
- package/dist/protobuf-37993cbc.js +422 -0
- package/dist/pug-c2a5db5f.js +393 -0
- package/dist/python-fc373d9f.js +260 -0
- package/dist/qsharp-1450aac5.js +282 -0
- package/dist/r-a0642b90.js +245 -0
- package/dist/razor-1e9d135a.js +513 -0
- package/dist/redis-405cb63d.js +298 -0
- package/dist/redshift-830f82de.js +806 -0
- package/dist/restructuredtext-d81f5ef4.js +162 -0
- package/dist/ruby-d607b87e.js +444 -0
- package/dist/rust-86e74dbb.js +337 -0
- package/dist/sb-b7e5010d.js +110 -0
- package/dist/scala-a4d4a3c6.js +353 -0
- package/dist/scheme-81927e94.js +114 -0
- package/dist/scss-3f112fcd.js +244 -0
- package/dist/shell-d795bcaa.js +224 -0
- package/dist/solidity-5b556d3e.js +1351 -0
- package/dist/sophia-1da55998.js +190 -0
- package/dist/sparql-ac34318e.js +193 -0
- package/dist/sql-eef6393b.js +818 -0
- package/dist/st-758b1972.js +415 -0
- package/dist/style.css +1 -1
- package/dist/swift-63cb1847.js +315 -0
- package/dist/systemverilog-2538c608.js +556 -0
- package/dist/tcl-53e6282a.js +232 -0
- package/dist/tsMode-ea3b05db.js +815 -0
- package/dist/twig-80c3dc23.js +323 -0
- package/dist/typescript-b2ef5e0f.js +329 -0
- package/dist/vb-32089525.js +364 -0
- package/dist/wgsl-e681d5a0.js +420 -0
- package/dist/xml-579a5775.js +96 -0
- package/dist/yaml-c31c56b7.js +185 -0
- package/package.json +11 -18
- package/dist/components/generate/GenerateForm.vue.d.ts +0 -2
- package/dist/components/index.d.ts +0 -9
- package/dist/components/model/baseModel.d.ts +0 -8
- package/dist/components/model/dataSourceModel.d.ts +0 -19
- package/dist/components/model/gridModel.d.ts +0 -55
- package/dist/components/model/inputModel.d.ts +0 -14
- package/dist/components/model/reportModel.d.ts +0 -43
- package/dist/components/model/scriptModel.d.ts +0 -6
- package/dist/components/model/sqlModel.d.ts +0 -7
- package/dist/components/model/tableModel.d.ts +0 -16
- package/dist/components/model/textModel.d.ts +0 -14
- package/dist/components/monaco/monacoEditorType.d.ts +0 -56
- package/dist/components/registerGlobComp.d.ts +0 -3
- package/dist/components/wonderform/HelloWord.vue.d.ts +0 -2
- package/dist/components/wonderform/config/index.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Col.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/DataSource.vue.d.ts +0 -2
- package/dist/components/wonderform/config/modules/Form.vue.d.ts +0 -2
- package/dist/components/wonderform/config/modules/Grid.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Properties.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Table.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/TypeScript.vue.d.ts +0 -2
- package/dist/components/wonderform/design/index.vue.d.ts +0 -6
- package/dist/components/wonderform/design/modules/FormGrid.vue.d.ts +0 -38
- package/dist/components/wonderform/design/modules/FormInput.vue.d.ts +0 -26
- package/dist/components/wonderform/design/modules/FormReport.vue.d.ts +0 -32
- package/dist/components/wonderform/design/modules/FormTable.vue.d.ts +0 -32
- package/dist/components/wonderform/dsource/index.vue.d.ts +0 -14
- package/dist/components/wonderform/dsource/modules/SqlModule.vue.d.ts +0 -40
- package/dist/components/wonderform/header/Header.vue.d.ts +0 -2
- package/dist/components/wonderform/header/modules/Code.vue.d.ts +0 -23
- package/dist/components/wonderform/header/modules/events.d.ts +0 -1
- package/dist/components/wonderform/index.vue.d.ts +0 -2
- package/dist/components/wonderform/tool/index.vue.d.ts +0 -2
- package/dist/enums/httpEnum.d.ts +0 -37
- package/dist/main.d.ts +0 -1
- package/dist/mock/dict.d.ts +0 -8
- package/dist/router/guard/index.d.ts +0 -2
- package/dist/router/guard/permissionGuard.d.ts +0 -2
- package/dist/router/index.d.ts +0 -3
- package/dist/router/routes/basicRoutes.d.ts +0 -8
- package/dist/stores/index.d.ts +0 -4
- package/dist/stores/modules/data.d.ts +0 -7177
- package/dist/stores/modules/form.d.ts +0 -2060
- package/dist/utils/form/commonUtils.d.ts +0 -8
- package/dist/utils/form/config.d.ts +0 -107
- package/dist/utils/form/generatecode.d.ts +0 -23
- package/dist/utils/form/validateUtil.d.ts +0 -13
- package/dist/utils/form/wonder1.0.1.d.ts +0 -29
- package/dist/utils/http/axios/axios.d.ts +0 -48
- package/dist/utils/http/axios/axiosModel.d.ts +0 -8
- package/dist/utils/http/axios/index.d.ts +0 -2
- package/dist/utils/utils.d.ts +0 -1
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var t = {
|
|
8
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
9
|
+
comments: {
|
|
10
|
+
blockComment: ["{#", "#}"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{#", "#}"],
|
|
14
|
+
["{%", "%}"],
|
|
15
|
+
["{{", "}}"],
|
|
16
|
+
["(", ")"],
|
|
17
|
+
["[", "]"],
|
|
18
|
+
["<!--", "-->"],
|
|
19
|
+
["<", ">"]
|
|
20
|
+
],
|
|
21
|
+
autoClosingPairs: [
|
|
22
|
+
{ open: "{# ", close: " #}" },
|
|
23
|
+
{ open: "{% ", close: " %}" },
|
|
24
|
+
{ open: "{{ ", close: " }}" },
|
|
25
|
+
{ open: "[", close: "]" },
|
|
26
|
+
{ open: "(", close: ")" },
|
|
27
|
+
{ open: '"', close: '"' },
|
|
28
|
+
{ open: "'", close: "'" }
|
|
29
|
+
],
|
|
30
|
+
surroundingPairs: [
|
|
31
|
+
{ open: '"', close: '"' },
|
|
32
|
+
{ open: "'", close: "'" },
|
|
33
|
+
{ open: "<", close: ">" }
|
|
34
|
+
]
|
|
35
|
+
}, e = {
|
|
36
|
+
defaultToken: "",
|
|
37
|
+
tokenPostfix: "",
|
|
38
|
+
ignoreCase: !0,
|
|
39
|
+
keywords: [
|
|
40
|
+
"apply",
|
|
41
|
+
"autoescape",
|
|
42
|
+
"block",
|
|
43
|
+
"deprecated",
|
|
44
|
+
"do",
|
|
45
|
+
"embed",
|
|
46
|
+
"extends",
|
|
47
|
+
"flush",
|
|
48
|
+
"for",
|
|
49
|
+
"from",
|
|
50
|
+
"if",
|
|
51
|
+
"import",
|
|
52
|
+
"include",
|
|
53
|
+
"macro",
|
|
54
|
+
"sandbox",
|
|
55
|
+
"set",
|
|
56
|
+
"use",
|
|
57
|
+
"verbatim",
|
|
58
|
+
"with",
|
|
59
|
+
"endapply",
|
|
60
|
+
"endautoescape",
|
|
61
|
+
"endblock",
|
|
62
|
+
"endembed",
|
|
63
|
+
"endfor",
|
|
64
|
+
"endif",
|
|
65
|
+
"endmacro",
|
|
66
|
+
"endsandbox",
|
|
67
|
+
"endset",
|
|
68
|
+
"endwith",
|
|
69
|
+
"true",
|
|
70
|
+
"false"
|
|
71
|
+
],
|
|
72
|
+
tokenizer: {
|
|
73
|
+
root: [
|
|
74
|
+
[/\s+/],
|
|
75
|
+
[/{#/, "comment.twig", "@commentState"],
|
|
76
|
+
[/{%[-~]?/, "delimiter.twig", "@blockState"],
|
|
77
|
+
[/{{[-~]?/, "delimiter.twig", "@variableState"],
|
|
78
|
+
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
79
|
+
[/<!--/, "comment.html", "@comment"],
|
|
80
|
+
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
|
|
81
|
+
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
82
|
+
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
83
|
+
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
84
|
+
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
85
|
+
[/</, "delimiter.html"],
|
|
86
|
+
[/[^<{]+/]
|
|
87
|
+
],
|
|
88
|
+
commentState: [
|
|
89
|
+
[/#}/, "comment.twig", "@pop"],
|
|
90
|
+
[/./, "comment.twig"]
|
|
91
|
+
],
|
|
92
|
+
blockState: [
|
|
93
|
+
[/[-~]?%}/, "delimiter.twig", "@pop"],
|
|
94
|
+
[/\s+/],
|
|
95
|
+
[
|
|
96
|
+
/(verbatim)(\s*)([-~]?%})/,
|
|
97
|
+
["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
|
|
98
|
+
],
|
|
99
|
+
{ include: "expression" }
|
|
100
|
+
],
|
|
101
|
+
rawDataState: [
|
|
102
|
+
[
|
|
103
|
+
/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
|
|
104
|
+
["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
|
|
105
|
+
],
|
|
106
|
+
[/./, "string.twig"]
|
|
107
|
+
],
|
|
108
|
+
variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
|
|
109
|
+
stringState: [
|
|
110
|
+
[/"/, "string.twig", "@pop"],
|
|
111
|
+
[/#{\s*/, "string.twig", "@interpolationState"],
|
|
112
|
+
[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
|
|
113
|
+
],
|
|
114
|
+
interpolationState: [
|
|
115
|
+
[/}/, "string.twig", "@pop"],
|
|
116
|
+
{ include: "expression" }
|
|
117
|
+
],
|
|
118
|
+
expression: [
|
|
119
|
+
[/\s+/],
|
|
120
|
+
[/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
|
|
121
|
+
[/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
|
|
122
|
+
[/==|!=|<|>|>=|<=/, "operators.twig"],
|
|
123
|
+
[/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
|
|
124
|
+
[/(in)(\s+)/, ["operators.twig", ""]],
|
|
125
|
+
[/(is)(\s+)/, ["operators.twig", ""]],
|
|
126
|
+
[/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
|
|
127
|
+
[
|
|
128
|
+
/[^\W\d][\w]*/,
|
|
129
|
+
{
|
|
130
|
+
cases: {
|
|
131
|
+
"@keywords": "keyword.twig",
|
|
132
|
+
"@default": "variable.twig"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
[/\d+(\.\d+)?/, "number.twig"],
|
|
137
|
+
[/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
|
|
138
|
+
[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
|
|
139
|
+
[/"/, "string.twig", "@stringState"],
|
|
140
|
+
[/=>/, "operators.twig"],
|
|
141
|
+
[/=/, "operators.twig"]
|
|
142
|
+
],
|
|
143
|
+
doctype: [
|
|
144
|
+
[/[^>]+/, "metatag.content.html"],
|
|
145
|
+
[/>/, "metatag.html", "@pop"]
|
|
146
|
+
],
|
|
147
|
+
comment: [
|
|
148
|
+
[/-->/, "comment.html", "@pop"],
|
|
149
|
+
[/[^-]+/, "comment.content.html"],
|
|
150
|
+
[/./, "comment.content.html"]
|
|
151
|
+
],
|
|
152
|
+
otherTag: [
|
|
153
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
154
|
+
[/"([^"]*)"/, "attribute.value.html"],
|
|
155
|
+
[/'([^']*)'/, "attribute.value.html"],
|
|
156
|
+
[/[\w\-]+/, "attribute.name.html"],
|
|
157
|
+
[/=/, "delimiter.html"],
|
|
158
|
+
[/[ \t\r\n]+/]
|
|
159
|
+
],
|
|
160
|
+
script: [
|
|
161
|
+
[/type/, "attribute.name.html", "@scriptAfterType"],
|
|
162
|
+
[/"([^"]*)"/, "attribute.value.html"],
|
|
163
|
+
[/'([^']*)'/, "attribute.value.html"],
|
|
164
|
+
[/[\w\-]+/, "attribute.name.html"],
|
|
165
|
+
[/=/, "delimiter.html"],
|
|
166
|
+
[
|
|
167
|
+
/>/,
|
|
168
|
+
{
|
|
169
|
+
token: "delimiter.html",
|
|
170
|
+
next: "@scriptEmbedded",
|
|
171
|
+
nextEmbedded: "text/javascript"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
[/[ \t\r\n]+/],
|
|
175
|
+
[
|
|
176
|
+
/(<\/)(script\s*)(>)/,
|
|
177
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
178
|
+
]
|
|
179
|
+
],
|
|
180
|
+
scriptAfterType: [
|
|
181
|
+
[/=/, "delimiter.html", "@scriptAfterTypeEquals"],
|
|
182
|
+
[
|
|
183
|
+
/>/,
|
|
184
|
+
{
|
|
185
|
+
token: "delimiter.html",
|
|
186
|
+
next: "@scriptEmbedded",
|
|
187
|
+
nextEmbedded: "text/javascript"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
[/[ \t\r\n]+/],
|
|
191
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
192
|
+
],
|
|
193
|
+
scriptAfterTypeEquals: [
|
|
194
|
+
[
|
|
195
|
+
/"([^"]*)"/,
|
|
196
|
+
{
|
|
197
|
+
token: "attribute.value.html",
|
|
198
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
[
|
|
202
|
+
/'([^']*)'/,
|
|
203
|
+
{
|
|
204
|
+
token: "attribute.value.html",
|
|
205
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
/>/,
|
|
210
|
+
{
|
|
211
|
+
token: "delimiter.html",
|
|
212
|
+
next: "@scriptEmbedded",
|
|
213
|
+
nextEmbedded: "text/javascript"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
[/[ \t\r\n]+/],
|
|
217
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
218
|
+
],
|
|
219
|
+
scriptWithCustomType: [
|
|
220
|
+
[
|
|
221
|
+
/>/,
|
|
222
|
+
{
|
|
223
|
+
token: "delimiter.html",
|
|
224
|
+
next: "@scriptEmbedded.$S2",
|
|
225
|
+
nextEmbedded: "$S2"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
[/"([^"]*)"/, "attribute.value.html"],
|
|
229
|
+
[/'([^']*)'/, "attribute.value.html"],
|
|
230
|
+
[/[\w\-]+/, "attribute.name.html"],
|
|
231
|
+
[/=/, "delimiter.html"],
|
|
232
|
+
[/[ \t\r\n]+/],
|
|
233
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
234
|
+
],
|
|
235
|
+
scriptEmbedded: [
|
|
236
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
237
|
+
[/[^<]+/, ""]
|
|
238
|
+
],
|
|
239
|
+
style: [
|
|
240
|
+
[/type/, "attribute.name.html", "@styleAfterType"],
|
|
241
|
+
[/"([^"]*)"/, "attribute.value.html"],
|
|
242
|
+
[/'([^']*)'/, "attribute.value.html"],
|
|
243
|
+
[/[\w\-]+/, "attribute.name.html"],
|
|
244
|
+
[/=/, "delimiter.html"],
|
|
245
|
+
[
|
|
246
|
+
/>/,
|
|
247
|
+
{
|
|
248
|
+
token: "delimiter.html",
|
|
249
|
+
next: "@styleEmbedded",
|
|
250
|
+
nextEmbedded: "text/css"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
[/[ \t\r\n]+/],
|
|
254
|
+
[
|
|
255
|
+
/(<\/)(style\s*)(>)/,
|
|
256
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
257
|
+
]
|
|
258
|
+
],
|
|
259
|
+
styleAfterType: [
|
|
260
|
+
[/=/, "delimiter.html", "@styleAfterTypeEquals"],
|
|
261
|
+
[
|
|
262
|
+
/>/,
|
|
263
|
+
{
|
|
264
|
+
token: "delimiter.html",
|
|
265
|
+
next: "@styleEmbedded",
|
|
266
|
+
nextEmbedded: "text/css"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
[/[ \t\r\n]+/],
|
|
270
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
271
|
+
],
|
|
272
|
+
styleAfterTypeEquals: [
|
|
273
|
+
[
|
|
274
|
+
/"([^"]*)"/,
|
|
275
|
+
{
|
|
276
|
+
token: "attribute.value.html",
|
|
277
|
+
switchTo: "@styleWithCustomType.$1"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
[
|
|
281
|
+
/'([^']*)'/,
|
|
282
|
+
{
|
|
283
|
+
token: "attribute.value.html",
|
|
284
|
+
switchTo: "@styleWithCustomType.$1"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
/>/,
|
|
289
|
+
{
|
|
290
|
+
token: "delimiter.html",
|
|
291
|
+
next: "@styleEmbedded",
|
|
292
|
+
nextEmbedded: "text/css"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
[/[ \t\r\n]+/],
|
|
296
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
297
|
+
],
|
|
298
|
+
styleWithCustomType: [
|
|
299
|
+
[
|
|
300
|
+
/>/,
|
|
301
|
+
{
|
|
302
|
+
token: "delimiter.html",
|
|
303
|
+
next: "@styleEmbedded.$S2",
|
|
304
|
+
nextEmbedded: "$S2"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
[/"([^"]*)"/, "attribute.value.html"],
|
|
308
|
+
[/'([^']*)'/, "attribute.value.html"],
|
|
309
|
+
[/[\w\-]+/, "attribute.name.html"],
|
|
310
|
+
[/=/, "delimiter.html"],
|
|
311
|
+
[/[ \t\r\n]+/],
|
|
312
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
313
|
+
],
|
|
314
|
+
styleEmbedded: [
|
|
315
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
316
|
+
[/[^<]+/, ""]
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
export {
|
|
321
|
+
t as conf,
|
|
322
|
+
e as language
|
|
323
|
+
};
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { m as a } from "./index-a3197e12.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
/*!-----------------------------------------------------------------------------
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
|
+
*-----------------------------------------------------------------------------*/
|
|
9
|
+
var c = Object.defineProperty, p = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyNames, l = Object.prototype.hasOwnProperty, s = (t, e, o, i) => {
|
|
10
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
11
|
+
for (let n of g(e))
|
|
12
|
+
!l.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = p(e, n)) || i.enumerable });
|
|
13
|
+
return t;
|
|
14
|
+
}, d = (t, e, o) => (s(t, e, "default"), o && s(o, e, "default")), r = {};
|
|
15
|
+
d(r, a);
|
|
16
|
+
var b = {
|
|
17
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
18
|
+
comments: {
|
|
19
|
+
lineComment: "//",
|
|
20
|
+
blockComment: ["/*", "*/"]
|
|
21
|
+
},
|
|
22
|
+
brackets: [
|
|
23
|
+
["{", "}"],
|
|
24
|
+
["[", "]"],
|
|
25
|
+
["(", ")"]
|
|
26
|
+
],
|
|
27
|
+
onEnterRules: [
|
|
28
|
+
{
|
|
29
|
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
|
30
|
+
afterText: /^\s*\*\/$/,
|
|
31
|
+
action: {
|
|
32
|
+
indentAction: r.languages.IndentAction.IndentOutdent,
|
|
33
|
+
appendText: " * "
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
|
38
|
+
action: {
|
|
39
|
+
indentAction: r.languages.IndentAction.None,
|
|
40
|
+
appendText: " * "
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
|
45
|
+
action: {
|
|
46
|
+
indentAction: r.languages.IndentAction.None,
|
|
47
|
+
appendText: "* "
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
|
52
|
+
action: {
|
|
53
|
+
indentAction: r.languages.IndentAction.None,
|
|
54
|
+
removeText: 1
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
autoClosingPairs: [
|
|
59
|
+
{ open: "{", close: "}" },
|
|
60
|
+
{ open: "[", close: "]" },
|
|
61
|
+
{ open: "(", close: ")" },
|
|
62
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
63
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
64
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
|
65
|
+
{ open: "/**", close: " */", notIn: ["string"] }
|
|
66
|
+
],
|
|
67
|
+
folding: {
|
|
68
|
+
markers: {
|
|
69
|
+
start: new RegExp("^\\s*//\\s*#?region\\b"),
|
|
70
|
+
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, u = {
|
|
74
|
+
defaultToken: "invalid",
|
|
75
|
+
tokenPostfix: ".ts",
|
|
76
|
+
keywords: [
|
|
77
|
+
"abstract",
|
|
78
|
+
"any",
|
|
79
|
+
"as",
|
|
80
|
+
"asserts",
|
|
81
|
+
"bigint",
|
|
82
|
+
"boolean",
|
|
83
|
+
"break",
|
|
84
|
+
"case",
|
|
85
|
+
"catch",
|
|
86
|
+
"class",
|
|
87
|
+
"continue",
|
|
88
|
+
"const",
|
|
89
|
+
"constructor",
|
|
90
|
+
"debugger",
|
|
91
|
+
"declare",
|
|
92
|
+
"default",
|
|
93
|
+
"delete",
|
|
94
|
+
"do",
|
|
95
|
+
"else",
|
|
96
|
+
"enum",
|
|
97
|
+
"export",
|
|
98
|
+
"extends",
|
|
99
|
+
"false",
|
|
100
|
+
"finally",
|
|
101
|
+
"for",
|
|
102
|
+
"from",
|
|
103
|
+
"function",
|
|
104
|
+
"get",
|
|
105
|
+
"if",
|
|
106
|
+
"implements",
|
|
107
|
+
"import",
|
|
108
|
+
"in",
|
|
109
|
+
"infer",
|
|
110
|
+
"instanceof",
|
|
111
|
+
"interface",
|
|
112
|
+
"is",
|
|
113
|
+
"keyof",
|
|
114
|
+
"let",
|
|
115
|
+
"module",
|
|
116
|
+
"namespace",
|
|
117
|
+
"never",
|
|
118
|
+
"new",
|
|
119
|
+
"null",
|
|
120
|
+
"number",
|
|
121
|
+
"object",
|
|
122
|
+
"out",
|
|
123
|
+
"package",
|
|
124
|
+
"private",
|
|
125
|
+
"protected",
|
|
126
|
+
"public",
|
|
127
|
+
"override",
|
|
128
|
+
"readonly",
|
|
129
|
+
"require",
|
|
130
|
+
"global",
|
|
131
|
+
"return",
|
|
132
|
+
"satisfies",
|
|
133
|
+
"set",
|
|
134
|
+
"static",
|
|
135
|
+
"string",
|
|
136
|
+
"super",
|
|
137
|
+
"switch",
|
|
138
|
+
"symbol",
|
|
139
|
+
"this",
|
|
140
|
+
"throw",
|
|
141
|
+
"true",
|
|
142
|
+
"try",
|
|
143
|
+
"type",
|
|
144
|
+
"typeof",
|
|
145
|
+
"undefined",
|
|
146
|
+
"unique",
|
|
147
|
+
"unknown",
|
|
148
|
+
"var",
|
|
149
|
+
"void",
|
|
150
|
+
"while",
|
|
151
|
+
"with",
|
|
152
|
+
"yield",
|
|
153
|
+
"async",
|
|
154
|
+
"await",
|
|
155
|
+
"of"
|
|
156
|
+
],
|
|
157
|
+
operators: [
|
|
158
|
+
"<=",
|
|
159
|
+
">=",
|
|
160
|
+
"==",
|
|
161
|
+
"!=",
|
|
162
|
+
"===",
|
|
163
|
+
"!==",
|
|
164
|
+
"=>",
|
|
165
|
+
"+",
|
|
166
|
+
"-",
|
|
167
|
+
"**",
|
|
168
|
+
"*",
|
|
169
|
+
"/",
|
|
170
|
+
"%",
|
|
171
|
+
"++",
|
|
172
|
+
"--",
|
|
173
|
+
"<<",
|
|
174
|
+
"</",
|
|
175
|
+
">>",
|
|
176
|
+
">>>",
|
|
177
|
+
"&",
|
|
178
|
+
"|",
|
|
179
|
+
"^",
|
|
180
|
+
"!",
|
|
181
|
+
"~",
|
|
182
|
+
"&&",
|
|
183
|
+
"||",
|
|
184
|
+
"??",
|
|
185
|
+
"?",
|
|
186
|
+
":",
|
|
187
|
+
"=",
|
|
188
|
+
"+=",
|
|
189
|
+
"-=",
|
|
190
|
+
"*=",
|
|
191
|
+
"**=",
|
|
192
|
+
"/=",
|
|
193
|
+
"%=",
|
|
194
|
+
"<<=",
|
|
195
|
+
">>=",
|
|
196
|
+
">>>=",
|
|
197
|
+
"&=",
|
|
198
|
+
"|=",
|
|
199
|
+
"^=",
|
|
200
|
+
"@"
|
|
201
|
+
],
|
|
202
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
203
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
204
|
+
digits: /\d+(_+\d+)*/,
|
|
205
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
206
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
207
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
208
|
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
209
|
+
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
|
210
|
+
tokenizer: {
|
|
211
|
+
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
|
212
|
+
common: [
|
|
213
|
+
[
|
|
214
|
+
/#?[a-z_$][\w$]*/,
|
|
215
|
+
{
|
|
216
|
+
cases: {
|
|
217
|
+
"@keywords": "keyword",
|
|
218
|
+
"@default": "identifier"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
[/[A-Z][\w\$]*/, "type.identifier"],
|
|
223
|
+
{ include: "@whitespace" },
|
|
224
|
+
[
|
|
225
|
+
/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
|
226
|
+
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
|
227
|
+
],
|
|
228
|
+
[/[()\[\]]/, "@brackets"],
|
|
229
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
230
|
+
[/!(?=([^=]|$))/, "delimiter"],
|
|
231
|
+
[
|
|
232
|
+
/@symbols/,
|
|
233
|
+
{
|
|
234
|
+
cases: {
|
|
235
|
+
"@operators": "delimiter",
|
|
236
|
+
"@default": ""
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
|
241
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
|
242
|
+
[/0[xX](@hexdigits)n?/, "number.hex"],
|
|
243
|
+
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
|
244
|
+
[/0[bB](@binarydigits)n?/, "number.binary"],
|
|
245
|
+
[/(@digits)n?/, "number"],
|
|
246
|
+
[/[;,.]/, "delimiter"],
|
|
247
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
248
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
249
|
+
[/"/, "string", "@string_double"],
|
|
250
|
+
[/'/, "string", "@string_single"],
|
|
251
|
+
[/`/, "string", "@string_backtick"]
|
|
252
|
+
],
|
|
253
|
+
whitespace: [
|
|
254
|
+
[/[ \t\r\n]+/, ""],
|
|
255
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
|
256
|
+
[/\/\*/, "comment", "@comment"],
|
|
257
|
+
[/\/\/.*$/, "comment"]
|
|
258
|
+
],
|
|
259
|
+
comment: [
|
|
260
|
+
[/[^\/*]+/, "comment"],
|
|
261
|
+
[/\*\//, "comment", "@pop"],
|
|
262
|
+
[/[\/*]/, "comment"]
|
|
263
|
+
],
|
|
264
|
+
jsdoc: [
|
|
265
|
+
[/[^\/*]+/, "comment.doc"],
|
|
266
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
267
|
+
[/[\/*]/, "comment.doc"]
|
|
268
|
+
],
|
|
269
|
+
regexp: [
|
|
270
|
+
[
|
|
271
|
+
/(\{)(\d+(?:,\d*)?)(\})/,
|
|
272
|
+
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
|
276
|
+
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
|
277
|
+
],
|
|
278
|
+
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
|
279
|
+
[/[()]/, "regexp.escape.control"],
|
|
280
|
+
[/@regexpctl/, "regexp.escape.control"],
|
|
281
|
+
[/[^\\\/]/, "regexp"],
|
|
282
|
+
[/@regexpesc/, "regexp.escape"],
|
|
283
|
+
[/\\\./, "regexp.invalid"],
|
|
284
|
+
[/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
|
285
|
+
],
|
|
286
|
+
regexrange: [
|
|
287
|
+
[/-/, "regexp.escape.control"],
|
|
288
|
+
[/\^/, "regexp.invalid"],
|
|
289
|
+
[/@regexpesc/, "regexp.escape"],
|
|
290
|
+
[/[^\]]/, "regexp"],
|
|
291
|
+
[
|
|
292
|
+
/\]/,
|
|
293
|
+
{
|
|
294
|
+
token: "regexp.escape.control",
|
|
295
|
+
next: "@pop",
|
|
296
|
+
bracket: "@close"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
],
|
|
300
|
+
string_double: [
|
|
301
|
+
[/[^\\"]+/, "string"],
|
|
302
|
+
[/@escapes/, "string.escape"],
|
|
303
|
+
[/\\./, "string.escape.invalid"],
|
|
304
|
+
[/"/, "string", "@pop"]
|
|
305
|
+
],
|
|
306
|
+
string_single: [
|
|
307
|
+
[/[^\\']+/, "string"],
|
|
308
|
+
[/@escapes/, "string.escape"],
|
|
309
|
+
[/\\./, "string.escape.invalid"],
|
|
310
|
+
[/'/, "string", "@pop"]
|
|
311
|
+
],
|
|
312
|
+
string_backtick: [
|
|
313
|
+
[/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
|
|
314
|
+
[/[^\\`$]+/, "string"],
|
|
315
|
+
[/@escapes/, "string.escape"],
|
|
316
|
+
[/\\./, "string.escape.invalid"],
|
|
317
|
+
[/`/, "string", "@pop"]
|
|
318
|
+
],
|
|
319
|
+
bracketCounting: [
|
|
320
|
+
[/\{/, "delimiter.bracket", "@bracketCounting"],
|
|
321
|
+
[/\}/, "delimiter.bracket", "@pop"],
|
|
322
|
+
{ include: "common" }
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
export {
|
|
327
|
+
b as conf,
|
|
328
|
+
u as language
|
|
329
|
+
};
|