xmlui 0.9.83 → 0.9.86
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/dist/lib/{index-aMRikNoc.mjs → index-Bm0sNu3Q.mjs} +17098 -21599
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-CYGUM37_.mjs → initMock-BJWFwa64.mjs} +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{server-common-LUcdzTQs.mjs → server-common-CfdMYx46.mjs} +4453 -4423
- package/dist/lib/syntax-monaco.d.ts +64 -0
- package/dist/lib/syntax-monaco.mjs +639 -0
- package/dist/lib/syntax-textmate.d.ts +2127 -0
- package/dist/lib/syntax-textmate.mjs +2491 -0
- package/dist/lib/xmlui-parser.d.ts +7 -1
- package/dist/lib/xmlui.d.ts +8 -2
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-BD1Fa8Cz.mjs → collectedComponentMetadata-BLxDndi5.mjs} +19018 -23504
- package/dist/metadata/{initMock-CzVkUblk.mjs → initMock-DRxSMFJz.mjs} +1 -1
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +138 -285
- package/dist/scripts/package.json +24 -4
- package/dist/scripts/src/components/APICall/APICall.js +4 -0
- package/dist/scripts/src/components/Accordion/Accordion.js +14 -4
- package/dist/scripts/src/components/AppState/AppState.js +7 -2
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +17 -3
- package/dist/scripts/src/components/Bookmark/Bookmark.js +1 -0
- package/dist/scripts/src/components/Carousel/Carousel.js +23 -5
- package/dist/scripts/src/components/Checkbox/Checkbox.js +15 -5
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +15 -3
- package/dist/scripts/src/components/ComponentProvider.js +0 -4
- package/dist/scripts/src/components/DatePicker/DatePicker.js +15 -3
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +8 -1
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +1 -0
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +16 -4
- package/dist/scripts/src/components/FileInput/FileInput.js +19 -6
- package/dist/scripts/src/components/Form/Form.js +12 -3
- package/dist/scripts/src/components/FormItem/FormItem.js +16 -5
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +5 -2
- package/dist/scripts/src/components/FormItem/Validations.js +4 -1
- package/dist/scripts/src/components/Heading/Heading.js +6 -0
- package/dist/scripts/src/components/Heading/HeadingNative.js +11 -1
- package/dist/scripts/src/components/HelloWorld/HelloWorld.js +8 -2
- package/dist/scripts/src/components/List/List.js +22 -4
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +14 -5
- package/dist/scripts/src/components/NumberBox/NumberBox.js +12 -3
- package/dist/scripts/src/components/NumberBox/NumberBox2.js +12 -3
- package/dist/scripts/src/components/Queue/Queue.js +38 -15
- package/dist/scripts/src/components/Select/Select.js +19 -4
- package/dist/scripts/src/components/Slider/Slider.js +15 -3
- package/dist/scripts/src/components/Switch/Switch.js +13 -3
- package/dist/scripts/src/components/Table/Table.js +26 -8
- package/dist/scripts/src/components/Tabs/Tabs.js +4 -1
- package/dist/scripts/src/components/TextArea/TextArea.js +8 -2
- package/dist/scripts/src/components/TextBox/TextBox.js +16 -4
- package/dist/scripts/src/components/Toggle/Toggle.js +9 -2
- package/dist/scripts/src/components/metadata-helpers.js +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +9 -3
- package/dist/standalone/xmlui-standalone.umd.js +251 -251
- package/package.json +24 -4
- package/src/syntax/monaco/grammar.monacoLanguage.ts +283 -0
- package/src/syntax/monaco/index.ts +4 -0
- package/src/syntax/monaco/xmlui-dark.ts +24 -0
- package/src/syntax/monaco/xmlui-light.ts +24 -0
- package/src/syntax/monaco/xmluiscript.monacoLanguage.ts +337 -0
- package/src/syntax/textMate/index.ts +6 -0
- package/src/syntax/textMate/xmlui-dark.json +631 -0
- package/src/syntax/textMate/xmlui-light.json +565 -0
- package/src/syntax/textMate/xmlui.json +564 -0
- package/src/syntax/textMate/xmlui.tmLanguage.json +341 -0
- package/dist/lib/core-CvFpTAHi.mjs +0 -5775
- package/dist/lib/wasm-DQxwEHae.mjs +0 -7
- package/dist/metadata/core-D3puiNN6.mjs +0 -5771
- package/dist/metadata/wasm-DQxwEHae.mjs +0 -7
- package/dist/scripts/src/components-core/XmluiCodeHighlighter.js +0 -109
- package/dist/scripts/src/syntax/grammar.tmLanguage.json +0 -341
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xmlui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.86",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start-test-bed": "cd src/testing/infrastructure && xmlui start",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@radix-ui/react-tabs": "1.1.0",
|
|
44
44
|
"@radix-ui/react-tooltip": "^1.2.4",
|
|
45
45
|
"@radix-ui/react-visually-hidden": "1.0.3",
|
|
46
|
-
"@remix-run/react": "2.
|
|
46
|
+
"@remix-run/react": "2.12.1",
|
|
47
47
|
"@tanstack/react-query": "^4.36.1",
|
|
48
48
|
"@tanstack/react-query-devtools": "^4.36.1",
|
|
49
49
|
"@tanstack/react-table": "8.17.3",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"react-popper": "2.3.0",
|
|
94
94
|
"react-resizable-panels": "2.0.19",
|
|
95
95
|
"react-rnd": "^10.5.2",
|
|
96
|
-
"react-router-dom": "6.
|
|
96
|
+
"react-router-dom": "6.26.2",
|
|
97
97
|
"react-select": "5.7.4",
|
|
98
98
|
"react-sticky-el": "^2.1.1",
|
|
99
99
|
"react-textarea-autosize": "8.5.3",
|
|
@@ -137,6 +137,9 @@
|
|
|
137
137
|
"@types/yargs": "17.0.31",
|
|
138
138
|
"@typescript-eslint/eslint-plugin": "8.15.0",
|
|
139
139
|
"@typescript-eslint/parser": "8.15.0",
|
|
140
|
+
"@remix-run/dev": "2.12.1",
|
|
141
|
+
"@remix-run/serve": "2.12.1",
|
|
142
|
+
"@remix-run/node": "2.12.1",
|
|
140
143
|
"babel-loader": "8.2.5",
|
|
141
144
|
"clean-package": "2.2.0",
|
|
142
145
|
"eslint": "^8.57.0",
|
|
@@ -164,7 +167,8 @@
|
|
|
164
167
|
},
|
|
165
168
|
"files": [
|
|
166
169
|
"dist",
|
|
167
|
-
"src/styles"
|
|
170
|
+
"src/styles",
|
|
171
|
+
"src/syntax"
|
|
168
172
|
],
|
|
169
173
|
"bin": {
|
|
170
174
|
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
@@ -205,6 +209,14 @@
|
|
|
205
209
|
"./vite-xmlui-plugin": {
|
|
206
210
|
"import": "./dist/scripts/bin/vite-xmlui-plugin.js",
|
|
207
211
|
"require": "./dist/scripts/bin/vite-xmlui-plugin.js"
|
|
212
|
+
},
|
|
213
|
+
"./syntax/monaco": {
|
|
214
|
+
"import": "./dist/lib/syntax-monaco.mjs",
|
|
215
|
+
"require": "./dist/lib/syntax-monaco.mjs"
|
|
216
|
+
},
|
|
217
|
+
"./syntax/textmate": {
|
|
218
|
+
"import": "./dist/lib/syntax-textmate.mjs",
|
|
219
|
+
"require": "./dist/lib/syntax-textmate.mjs"
|
|
208
220
|
}
|
|
209
221
|
}
|
|
210
222
|
}
|
|
@@ -238,6 +250,14 @@
|
|
|
238
250
|
"./vite-xmlui-plugin": {
|
|
239
251
|
"import": "./dist/scripts/bin/vite-xmlui-plugin.js",
|
|
240
252
|
"require": "./dist/scripts/bin/vite-xmlui-plugin.js"
|
|
253
|
+
},
|
|
254
|
+
"./syntax/monaco": {
|
|
255
|
+
"import": "./dist/lib/syntax-monaco.mjs",
|
|
256
|
+
"require": "./dist/lib/syntax-monaco.mjs"
|
|
257
|
+
},
|
|
258
|
+
"./syntax/textmate": {
|
|
259
|
+
"import": "./dist/lib/syntax-textmate.mjs",
|
|
260
|
+
"require": "./dist/lib/syntax-textmate.mjs"
|
|
241
261
|
}
|
|
242
262
|
},
|
|
243
263
|
"browserslist": {
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
export const XmluiGrammar: any = {
|
|
2
|
+
id: "xmlui",
|
|
3
|
+
config: {
|
|
4
|
+
comments: {
|
|
5
|
+
blockComment: ["<!--", "-->"],
|
|
6
|
+
},
|
|
7
|
+
brackets: [["<", ">"]],
|
|
8
|
+
autoClosingPairs: [
|
|
9
|
+
{ open: "<", close: ">" },
|
|
10
|
+
{ open: "'", close: "'" },
|
|
11
|
+
{ open: '"', close: '"' },
|
|
12
|
+
{ open: "`", close: "`" },
|
|
13
|
+
],
|
|
14
|
+
surroundingPairs: [
|
|
15
|
+
{ open: "<", close: ">" },
|
|
16
|
+
{ open: "'", close: "'" },
|
|
17
|
+
{ open: '"', close: '"' },
|
|
18
|
+
{ open: "`", close: "`" },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
language: {
|
|
22
|
+
defaultToken: "",
|
|
23
|
+
tokenPostfix: ".xmlui",
|
|
24
|
+
ignoreCase: false,
|
|
25
|
+
identifier: /[a-zA-Z$_][-\w.$]*/,
|
|
26
|
+
tokenizer: {
|
|
27
|
+
root: [
|
|
28
|
+
{ include: "@commentStart" },
|
|
29
|
+
{ include: "@helperTag" },
|
|
30
|
+
{ include: "@componentTagStart" },
|
|
31
|
+
{ include: "@escapeCharacter" },
|
|
32
|
+
{ include: "@textWithBindingExpr" },
|
|
33
|
+
{ include: "@entity" },
|
|
34
|
+
{ include: "@cdataStart" },
|
|
35
|
+
],
|
|
36
|
+
helperTag: [
|
|
37
|
+
{ include: "@scriptTagStart" },
|
|
38
|
+
{ include: "@eventTagStart" },
|
|
39
|
+
{ include: "@apiTagStart" },
|
|
40
|
+
{ include: "@methodTagStart" },
|
|
41
|
+
{ include: "@propOrVarTagStart" },
|
|
42
|
+
],
|
|
43
|
+
eventTagStart: [
|
|
44
|
+
[
|
|
45
|
+
/(<)((?:[a-zA-Z_][\w\.\-]*?:)?)(event)/,
|
|
46
|
+
["delimiter.angle", "namespace", { token: "tag-event", next: "@eventTag" }],
|
|
47
|
+
],
|
|
48
|
+
],
|
|
49
|
+
eventTag: [
|
|
50
|
+
{ include: "@commentStart" },
|
|
51
|
+
{ include: "@valueAttributeScriptInsideStart" },
|
|
52
|
+
{ include: "@attributeStart" },
|
|
53
|
+
[/\/>/, "delimiter.angle", "@pop"],
|
|
54
|
+
[
|
|
55
|
+
/(<\/)(event)(\s*>)/,
|
|
56
|
+
["delimiter.angle", "tag-event", { token: "delimiter.angle", next: "@pop" }],
|
|
57
|
+
],
|
|
58
|
+
[/>/, { token: "delimiter.angle", next: "@eventTagContent" }],
|
|
59
|
+
],
|
|
60
|
+
eventTagContent: [
|
|
61
|
+
{ include: "commentStart" },
|
|
62
|
+
{ include: "componentTagStart" },
|
|
63
|
+
[
|
|
64
|
+
/[^<]/,
|
|
65
|
+
{ token: "@rematch", next: "@eventTagScriptContent", nextEmbedded: "xmluiscript" },
|
|
66
|
+
],
|
|
67
|
+
[/<\/event\s*>/, { token: "@rematch", next: "@pop" }],
|
|
68
|
+
],
|
|
69
|
+
eventTagScriptContent: [
|
|
70
|
+
[/<\/event\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
71
|
+
[/[^<]/, ""],
|
|
72
|
+
],
|
|
73
|
+
methodTagStart: [
|
|
74
|
+
[
|
|
75
|
+
/(<)((?:[a-zA-Z_][\w\.\-]*?:)?)(method)/,
|
|
76
|
+
["delimiter.angle", "namespace", { token: "tag-helper", next: "@methodTag" }],
|
|
77
|
+
],
|
|
78
|
+
],
|
|
79
|
+
methodTag: [
|
|
80
|
+
{ include: "@commentStart" },
|
|
81
|
+
{ include: "@valueAttributeScriptInsideStart" },
|
|
82
|
+
{ include: "@attributeStart" },
|
|
83
|
+
[/\/>/, "delimiter.angle", "@pop"],
|
|
84
|
+
[
|
|
85
|
+
/>/,
|
|
86
|
+
{
|
|
87
|
+
token: "delimiter.angle",
|
|
88
|
+
next: "@methodTagScriptContent",
|
|
89
|
+
nextEmbedded: "xmluiscript",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
/(<\/)(method)(\s*>)/,
|
|
94
|
+
["delimiter.angle", "tag-helper", { token: "delimiter.angle", next: "@pop" }],
|
|
95
|
+
],
|
|
96
|
+
],
|
|
97
|
+
methodTagScriptContent: [
|
|
98
|
+
[/<\/method\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
99
|
+
[/[^</]/, ""],
|
|
100
|
+
],
|
|
101
|
+
apiTagStart: [
|
|
102
|
+
[
|
|
103
|
+
/(<)((?:[a-zA-Z_][\w\.\-]*?:)?)(api)/,
|
|
104
|
+
["delimiter.angle", "namespace", { token: "tag-helper", next: "@apiTag" }],
|
|
105
|
+
],
|
|
106
|
+
],
|
|
107
|
+
apiTag: [
|
|
108
|
+
{ include: "@commentStart" },
|
|
109
|
+
{ include: "@valueAttributeScriptInsideStart" },
|
|
110
|
+
{ include: "@attributeStart" },
|
|
111
|
+
[/\/>/, "delimiter.angle", "@pop"],
|
|
112
|
+
[
|
|
113
|
+
/>/,
|
|
114
|
+
{ token: "delimiter.angle", next: "@apiTagScriptContent", nextEmbedded: "xmluiscript" },
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
/(<\/)(api)(\s*>)/,
|
|
118
|
+
["delimiter.angle", "tag-helper", { token: "delimiter.angle", next: "@pop" }],
|
|
119
|
+
],
|
|
120
|
+
],
|
|
121
|
+
apiTagScriptContent: [
|
|
122
|
+
[/<\/api\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
123
|
+
[/[^</]/, ""],
|
|
124
|
+
],
|
|
125
|
+
valueAttributeScriptInsideStart: [
|
|
126
|
+
[
|
|
127
|
+
/(^|\s+)(value)(\s*=)(['\"`])/,
|
|
128
|
+
[
|
|
129
|
+
"",
|
|
130
|
+
"attribute",
|
|
131
|
+
"operators",
|
|
132
|
+
{
|
|
133
|
+
cases: {
|
|
134
|
+
"'": { token: "string", next: "@singleQuotedScript", nextEmbedded: "xmluiscript" },
|
|
135
|
+
'"': { token: "string", next: "@doubleQuotedScript", nextEmbedded: "xmluiscript" },
|
|
136
|
+
"`": {
|
|
137
|
+
token: "string",
|
|
138
|
+
next: "@backtickQuotedScript",
|
|
139
|
+
nextEmbedded: "xmluiscript",
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
],
|
|
145
|
+
],
|
|
146
|
+
scriptTagStart: [
|
|
147
|
+
[
|
|
148
|
+
/(<)(script\s*)(>)/,
|
|
149
|
+
[
|
|
150
|
+
"delimiter.angle",
|
|
151
|
+
"tag-script",
|
|
152
|
+
{ token: "delimiter.angle", nextEmbedded: "xmluiscript", next: "@scriptTag" },
|
|
153
|
+
],
|
|
154
|
+
],
|
|
155
|
+
[/(<\/)(script\s*)(>)/, ["delimiter.angle", "tag-script", "delimiter.angle"]],
|
|
156
|
+
],
|
|
157
|
+
scriptTag: [
|
|
158
|
+
[/<\/script>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
159
|
+
[/[^<]+/, ""],
|
|
160
|
+
],
|
|
161
|
+
propOrVarTagStart: [
|
|
162
|
+
[
|
|
163
|
+
/(<\/?)((?:[a-zA-Z_][\w\.\-]*?:)?)((?:property)|(?:prop)|(?:var))/,
|
|
164
|
+
["delimiter.angle", "namespace", { token: "tag-helper", next: "@propOrVarTag" }],
|
|
165
|
+
],
|
|
166
|
+
],
|
|
167
|
+
propOrVarTag: [
|
|
168
|
+
[/\/?>/, { token: "delimiter.angle", next: "@pop" }],
|
|
169
|
+
{ include: "@commentStart" },
|
|
170
|
+
{ include: "@attributeStart" },
|
|
171
|
+
],
|
|
172
|
+
componentTagStart: [
|
|
173
|
+
[
|
|
174
|
+
/(\s*<\/?)((?:[a-zA-Z_][\w\.\-]*?:)?)([A-Z][\w\.\-]*)/,
|
|
175
|
+
["delimiter.angle", "namespace", { token: "tag-component", next: "@componentTag" }],
|
|
176
|
+
],
|
|
177
|
+
],
|
|
178
|
+
componentTag: [
|
|
179
|
+
[/\/?>/, { token: "delimiter.angle", next: "@pop" }],
|
|
180
|
+
{ include: "@commentStart" },
|
|
181
|
+
{ include: "@eventHandler" },
|
|
182
|
+
{ include: "@attributeStart" },
|
|
183
|
+
],
|
|
184
|
+
eventHandler: [
|
|
185
|
+
[
|
|
186
|
+
/(^|\s+)(on[A-Z][-\w.]*)(\s*=)(['\"`])/,
|
|
187
|
+
[
|
|
188
|
+
"",
|
|
189
|
+
"attribute",
|
|
190
|
+
"operators",
|
|
191
|
+
{
|
|
192
|
+
cases: {
|
|
193
|
+
"'": { token: "string", next: "@singleQuotedScript", nextEmbedded: "xmluiscript" },
|
|
194
|
+
'"': { token: "string", next: "@doubleQuotedScript", nextEmbedded: "xmluiscript" },
|
|
195
|
+
"`": {
|
|
196
|
+
token: "string",
|
|
197
|
+
next: "@backtickQuotedScript",
|
|
198
|
+
nextEmbedded: "xmluiscript",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
],
|
|
204
|
+
],
|
|
205
|
+
doubleQuotedScript: [
|
|
206
|
+
[/"/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
207
|
+
[/[^"]/, ""],
|
|
208
|
+
],
|
|
209
|
+
singleQuotedScript: [
|
|
210
|
+
[/'/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
211
|
+
[/[^']/, ""],
|
|
212
|
+
],
|
|
213
|
+
backtickQuotedScript: [
|
|
214
|
+
[/`/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
215
|
+
[/[^`]/, ""],
|
|
216
|
+
],
|
|
217
|
+
attributeStart: [
|
|
218
|
+
[
|
|
219
|
+
/(^|\s+)(@identifier(?::@identifier)?)(\s*=\s*)(['\"`])/,
|
|
220
|
+
[
|
|
221
|
+
"",
|
|
222
|
+
"attribute",
|
|
223
|
+
"operators",
|
|
224
|
+
{
|
|
225
|
+
cases: {
|
|
226
|
+
"'": { token: "string", next: "@singleQuotedString" },
|
|
227
|
+
'"': { token: "string", next: "@doubleQuotedString" },
|
|
228
|
+
"`": { token: "string", next: "@backtickQuotedString" },
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
],
|
|
233
|
+
[
|
|
234
|
+
/(^|\s+)(@identifier(?::@identifier)?)(\s*=\s*)(@identifier)/,
|
|
235
|
+
["", "attribute", "operators", "string"],
|
|
236
|
+
],
|
|
237
|
+
[/(^|\s+)(@identifier(?::@identifier)?)/, ["", "attribute"]],
|
|
238
|
+
],
|
|
239
|
+
singleQuotedString: [
|
|
240
|
+
[/'/, "string", "@pop"],
|
|
241
|
+
{ include: "@textWithBindingExpr" },
|
|
242
|
+
[/[^']/, "string"],
|
|
243
|
+
],
|
|
244
|
+
doubleQuotedString: [
|
|
245
|
+
[/"/, "string", "@pop"],
|
|
246
|
+
{ include: "@textWithBindingExpr" },
|
|
247
|
+
[/[^"]/, "string"],
|
|
248
|
+
],
|
|
249
|
+
backtickQuotedString: [
|
|
250
|
+
[/`/, "string", "@pop"],
|
|
251
|
+
{ include: "@textWithBindingExpr" },
|
|
252
|
+
[/[^`]/, "string"],
|
|
253
|
+
],
|
|
254
|
+
textWithBindingExpr: [
|
|
255
|
+
{ include: "@escapeCharacter" },
|
|
256
|
+
{ include: "@entity" },
|
|
257
|
+
[/{/, { token: "delimiter.curly", next: "@bindingExpr", nextEmbedded: "xmluiscript" }],
|
|
258
|
+
],
|
|
259
|
+
bindingExpr: [
|
|
260
|
+
[/}/, { token: "delimiter.curly", next: "@pop", nextEmbedded: "@pop" }],
|
|
261
|
+
[/[^}]+/, ""],
|
|
262
|
+
],
|
|
263
|
+
cdataStart: [
|
|
264
|
+
[
|
|
265
|
+
/(<!\[)(CDATA)(\[)/,
|
|
266
|
+
["delimiter.angle", "tag-cdata", { token: "delimiter.angle", next: "@cdata" }],
|
|
267
|
+
],
|
|
268
|
+
],
|
|
269
|
+
cdata: [
|
|
270
|
+
[/]]>/, "delimiter.angle", "@pop"],
|
|
271
|
+
[/./, "string"],
|
|
272
|
+
],
|
|
273
|
+
commentStart: [[/<!--/, "comment", "@comment"]],
|
|
274
|
+
comment: [
|
|
275
|
+
[/[^<\-]+/, "comment.content"],
|
|
276
|
+
[/-->/, { token: "comment", next: "@pop" }],
|
|
277
|
+
[/[<\-]/, "comment.content"],
|
|
278
|
+
],
|
|
279
|
+
escapeCharacter: [[/\\S/, "string.escape"]],
|
|
280
|
+
entity: [[/&(amp|lt|gt|quot|apos|nbsp);/, "string.escape"]],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { XmluiGrammar as xmluiGrammar } from "./grammar.monacoLanguage";
|
|
2
|
+
export { XmluiScripGrammar as xmluiScriptGrammar } from "./xmluiscript.monacoLanguage";
|
|
3
|
+
export { default as xmluiThemeDark } from "./xmlui-dark";
|
|
4
|
+
export { default as xmluiThemeLight } from "./xmlui-light";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const darkTheme = {
|
|
2
|
+
base: "vs-dark",
|
|
3
|
+
inherit: true,
|
|
4
|
+
rules: [
|
|
5
|
+
{ token: "comment", foreground: "#9296a9" },
|
|
6
|
+
{ token: "comment.content", foreground: "#9296a9", fontStyle: "italic" },
|
|
7
|
+
{ token: "tag-component", foreground: "#FE6BAD" },
|
|
8
|
+
{ token: "tag-event", foreground: "#80A6F8" },
|
|
9
|
+
{ token: "tag-helper", foreground: "#80A6F8" },
|
|
10
|
+
{ token: "attribute", foreground: "#cbd5e1" },
|
|
11
|
+
{ token: "operators", foreground: "#cbd5e1" },
|
|
12
|
+
{ token: "delimiter.angle", foreground: "#97A7C5" },
|
|
13
|
+
{ token: "delimiter.curly", foreground: "#FFD502" },
|
|
14
|
+
{ token: "string", foreground: "#7dd3fc" },
|
|
15
|
+
{ token: "tag-cdata", foreground: "#5CC1F9" },
|
|
16
|
+
{ token: "tag-script", foreground: "#78DBDB" },
|
|
17
|
+
{ token: "string.escape", foreground: "#BAF80A" },
|
|
18
|
+
],
|
|
19
|
+
colors: {
|
|
20
|
+
"editor.background": "#17232b",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default darkTheme;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const lightTheme = {
|
|
2
|
+
base: "vs",
|
|
3
|
+
inherit: true,
|
|
4
|
+
rules: [
|
|
5
|
+
{ token: "comment", foreground: "#606060" },
|
|
6
|
+
{ token: "comment.content", foreground: "#606060", fontStyle: "italic" },
|
|
7
|
+
{ token: "tag-component", foreground: "#B33175" },
|
|
8
|
+
{ token: "tag-event", foreground: "#005AE1" },
|
|
9
|
+
{ token: "tag-helper", foreground: "#005AE1" },
|
|
10
|
+
{ token: "attribute", foreground: "#2D2D2D" },
|
|
11
|
+
{ token: "operators", foreground: "#2D2D2D" },
|
|
12
|
+
{ token: "delimiter.angle", foreground: "#66748E" },
|
|
13
|
+
{ token: "delimiter.curly", foreground: "#F07100", fontStyle: "bold" },
|
|
14
|
+
{ token: "string", foreground: "#0074a9"},
|
|
15
|
+
{ token: "tag-cdata", foreground: "#079CF1" },
|
|
16
|
+
{ token: "tag-script", foreground: "#02A1A1" },
|
|
17
|
+
{ token: "string.escape", foreground: "#708C00" },
|
|
18
|
+
],
|
|
19
|
+
colors: {
|
|
20
|
+
"editor.foreground": "#0D458C",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default lightTheme;
|