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.
Files changed (148) hide show
  1. package/README.md +13 -16
  2. package/dist/abap-5361cc9f.js +1314 -0
  3. package/dist/apex-f9413e6f.js +315 -0
  4. package/dist/assets/css.worker-c3850ceb.js +88 -0
  5. package/dist/assets/editor.worker-94ffd778.js +12 -0
  6. package/dist/assets/html.worker-88b237e1.js +460 -0
  7. package/dist/assets/json.worker-8dd963f3.js +43 -0
  8. package/dist/assets/ts.worker-184cdfdf.js +37022 -0
  9. package/dist/azcli-36f2cb5e.js +74 -0
  10. package/dist/bat-6b05202d.js +95 -0
  11. package/dist/bicep-788415e3.js +108 -0
  12. package/dist/cameligo-4e85ec93.js +168 -0
  13. package/dist/clojure-40fa5799.js +754 -0
  14. package/dist/coffee-f557f5e0.js +228 -0
  15. package/dist/cpp-ebbf7759.js +390 -0
  16. package/dist/csharp-1616f566.js +320 -0
  17. package/dist/csp-5f0bc3c4.js +57 -0
  18. package/dist/css-2b1aec9b.js +186 -0
  19. package/dist/cssMode-0bcb1554.js +1447 -0
  20. package/dist/cypher-b12b4ba8.js +262 -0
  21. package/dist/dart-e0d70030.js +270 -0
  22. package/dist/dockerfile-f9d4b2b0.js +132 -0
  23. package/dist/ecl-5b91fdec.js +454 -0
  24. package/dist/elixir-deffd5a6.js +489 -0
  25. package/dist/flow9-84cd00d7.js +141 -0
  26. package/dist/form-imagining.js +3 -16340
  27. package/dist/form-imagining.umd.cjs +1978 -102
  28. package/dist/freemarker2-4d8e8e55.js +644 -0
  29. package/dist/fsharp-d296151f.js +210 -0
  30. package/dist/go-7e72ff3b.js +208 -0
  31. package/dist/graphql-a93568a1.js +141 -0
  32. package/dist/handlebars-c43672f7.js +392 -0
  33. package/dist/hcl-b3994d8f.js +177 -0
  34. package/dist/html-c6099a2e.js +282 -0
  35. package/dist/htmlMode-31c10440.js +1457 -0
  36. package/dist/index-a3197e12.js +122055 -0
  37. package/dist/ini-df84509a.js +68 -0
  38. package/dist/java-fba3d046.js +221 -0
  39. package/dist/javascript-ac2b4ae2.js +77 -0
  40. package/dist/jsonMode-36333022.js +1868 -0
  41. package/dist/julia-cefd45f6.js +496 -0
  42. package/dist/kotlin-b87b6942.js +245 -0
  43. package/dist/less-8a7f37bc.js +168 -0
  44. package/dist/lexon-cb95cd13.js +151 -0
  45. package/dist/liquid-b5021331.js +239 -0
  46. package/dist/lua-6d5b3ea4.js +157 -0
  47. package/dist/m3-d0daf5d0.js +210 -0
  48. package/dist/markdown-48bb0c6f.js +202 -0
  49. package/dist/mdx-bbae5f86.js +172 -0
  50. package/dist/mips-20dcf886.js +194 -0
  51. package/dist/msdax-e9759e23.js +377 -0
  52. package/dist/mysql-95f335b2.js +876 -0
  53. package/dist/objective-c-ad0cfb47.js +188 -0
  54. package/dist/pascal-eda19dc3.js +245 -0
  55. package/dist/pascaligo-b7e0c89b.js +158 -0
  56. package/dist/perl-bbe5d32a.js +599 -0
  57. package/dist/pgsql-7ebaee1c.js +847 -0
  58. package/dist/php-2526756d.js +471 -0
  59. package/dist/pla-9ebd6f68.js +131 -0
  60. package/dist/postiats-9ac05cf6.js +544 -0
  61. package/dist/powerquery-1cae399d.js +890 -0
  62. package/dist/powershell-093b5b87.js +233 -0
  63. package/dist/protobuf-37993cbc.js +422 -0
  64. package/dist/pug-c2a5db5f.js +393 -0
  65. package/dist/python-fc373d9f.js +260 -0
  66. package/dist/qsharp-1450aac5.js +282 -0
  67. package/dist/r-a0642b90.js +245 -0
  68. package/dist/razor-1e9d135a.js +513 -0
  69. package/dist/redis-405cb63d.js +298 -0
  70. package/dist/redshift-830f82de.js +806 -0
  71. package/dist/restructuredtext-d81f5ef4.js +162 -0
  72. package/dist/ruby-d607b87e.js +444 -0
  73. package/dist/rust-86e74dbb.js +337 -0
  74. package/dist/sb-b7e5010d.js +110 -0
  75. package/dist/scala-a4d4a3c6.js +353 -0
  76. package/dist/scheme-81927e94.js +114 -0
  77. package/dist/scss-3f112fcd.js +244 -0
  78. package/dist/shell-d795bcaa.js +224 -0
  79. package/dist/solidity-5b556d3e.js +1351 -0
  80. package/dist/sophia-1da55998.js +190 -0
  81. package/dist/sparql-ac34318e.js +193 -0
  82. package/dist/sql-eef6393b.js +818 -0
  83. package/dist/st-758b1972.js +415 -0
  84. package/dist/style.css +1 -1
  85. package/dist/swift-63cb1847.js +315 -0
  86. package/dist/systemverilog-2538c608.js +556 -0
  87. package/dist/tcl-53e6282a.js +232 -0
  88. package/dist/tsMode-ea3b05db.js +815 -0
  89. package/dist/twig-80c3dc23.js +323 -0
  90. package/dist/typescript-b2ef5e0f.js +329 -0
  91. package/dist/vb-32089525.js +364 -0
  92. package/dist/wgsl-e681d5a0.js +420 -0
  93. package/dist/xml-579a5775.js +96 -0
  94. package/dist/yaml-c31c56b7.js +185 -0
  95. package/package.json +11 -18
  96. package/dist/components/generate/GenerateForm.vue.d.ts +0 -2
  97. package/dist/components/index.d.ts +0 -9
  98. package/dist/components/model/baseModel.d.ts +0 -8
  99. package/dist/components/model/dataSourceModel.d.ts +0 -19
  100. package/dist/components/model/gridModel.d.ts +0 -55
  101. package/dist/components/model/inputModel.d.ts +0 -14
  102. package/dist/components/model/reportModel.d.ts +0 -43
  103. package/dist/components/model/scriptModel.d.ts +0 -6
  104. package/dist/components/model/sqlModel.d.ts +0 -7
  105. package/dist/components/model/tableModel.d.ts +0 -16
  106. package/dist/components/model/textModel.d.ts +0 -14
  107. package/dist/components/monaco/monacoEditorType.d.ts +0 -56
  108. package/dist/components/registerGlobComp.d.ts +0 -3
  109. package/dist/components/wonderform/HelloWord.vue.d.ts +0 -2
  110. package/dist/components/wonderform/config/index.vue.d.ts +0 -14
  111. package/dist/components/wonderform/config/modules/Col.vue.d.ts +0 -14
  112. package/dist/components/wonderform/config/modules/DataSource.vue.d.ts +0 -2
  113. package/dist/components/wonderform/config/modules/Form.vue.d.ts +0 -2
  114. package/dist/components/wonderform/config/modules/Grid.vue.d.ts +0 -14
  115. package/dist/components/wonderform/config/modules/Properties.vue.d.ts +0 -14
  116. package/dist/components/wonderform/config/modules/Table.vue.d.ts +0 -14
  117. package/dist/components/wonderform/config/modules/TypeScript.vue.d.ts +0 -2
  118. package/dist/components/wonderform/design/index.vue.d.ts +0 -6
  119. package/dist/components/wonderform/design/modules/FormGrid.vue.d.ts +0 -38
  120. package/dist/components/wonderform/design/modules/FormInput.vue.d.ts +0 -26
  121. package/dist/components/wonderform/design/modules/FormReport.vue.d.ts +0 -32
  122. package/dist/components/wonderform/design/modules/FormTable.vue.d.ts +0 -32
  123. package/dist/components/wonderform/dsource/index.vue.d.ts +0 -14
  124. package/dist/components/wonderform/dsource/modules/SqlModule.vue.d.ts +0 -40
  125. package/dist/components/wonderform/header/Header.vue.d.ts +0 -2
  126. package/dist/components/wonderform/header/modules/Code.vue.d.ts +0 -23
  127. package/dist/components/wonderform/header/modules/events.d.ts +0 -1
  128. package/dist/components/wonderform/index.vue.d.ts +0 -2
  129. package/dist/components/wonderform/tool/index.vue.d.ts +0 -2
  130. package/dist/enums/httpEnum.d.ts +0 -37
  131. package/dist/main.d.ts +0 -1
  132. package/dist/mock/dict.d.ts +0 -8
  133. package/dist/router/guard/index.d.ts +0 -2
  134. package/dist/router/guard/permissionGuard.d.ts +0 -2
  135. package/dist/router/index.d.ts +0 -3
  136. package/dist/router/routes/basicRoutes.d.ts +0 -8
  137. package/dist/stores/index.d.ts +0 -4
  138. package/dist/stores/modules/data.d.ts +0 -7177
  139. package/dist/stores/modules/form.d.ts +0 -2060
  140. package/dist/utils/form/commonUtils.d.ts +0 -8
  141. package/dist/utils/form/config.d.ts +0 -107
  142. package/dist/utils/form/generatecode.d.ts +0 -23
  143. package/dist/utils/form/validateUtil.d.ts +0 -13
  144. package/dist/utils/form/wonder1.0.1.d.ts +0 -29
  145. package/dist/utils/http/axios/axios.d.ts +0 -48
  146. package/dist/utils/http/axios/axiosModel.d.ts +0 -8
  147. package/dist/utils/http/axios/index.d.ts +0 -2
  148. package/dist/utils/utils.d.ts +0 -1
@@ -0,0 +1,320 @@
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 e = {
8
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
9
+ comments: {
10
+ lineComment: "//",
11
+ blockComment: ["/*", "*/"]
12
+ },
13
+ brackets: [
14
+ ["{", "}"],
15
+ ["[", "]"],
16
+ ["(", ")"]
17
+ ],
18
+ autoClosingPairs: [
19
+ { open: "{", close: "}" },
20
+ { open: "[", close: "]" },
21
+ { open: "(", close: ")" },
22
+ { open: "'", close: "'", notIn: ["string", "comment"] },
23
+ { open: '"', close: '"', notIn: ["string", "comment"] }
24
+ ],
25
+ surroundingPairs: [
26
+ { open: "{", close: "}" },
27
+ { open: "[", close: "]" },
28
+ { open: "(", close: ")" },
29
+ { open: "<", close: ">" },
30
+ { open: "'", close: "'" },
31
+ { open: '"', close: '"' }
32
+ ],
33
+ folding: {
34
+ markers: {
35
+ start: new RegExp("^\\s*#region\\b"),
36
+ end: new RegExp("^\\s*#endregion\\b")
37
+ }
38
+ }
39
+ }, t = {
40
+ defaultToken: "",
41
+ tokenPostfix: ".cs",
42
+ brackets: [
43
+ { open: "{", close: "}", token: "delimiter.curly" },
44
+ { open: "[", close: "]", token: "delimiter.square" },
45
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
46
+ { open: "<", close: ">", token: "delimiter.angle" }
47
+ ],
48
+ keywords: [
49
+ "extern",
50
+ "alias",
51
+ "using",
52
+ "bool",
53
+ "decimal",
54
+ "sbyte",
55
+ "byte",
56
+ "short",
57
+ "ushort",
58
+ "int",
59
+ "uint",
60
+ "long",
61
+ "ulong",
62
+ "char",
63
+ "float",
64
+ "double",
65
+ "object",
66
+ "dynamic",
67
+ "string",
68
+ "assembly",
69
+ "is",
70
+ "as",
71
+ "ref",
72
+ "out",
73
+ "this",
74
+ "base",
75
+ "new",
76
+ "typeof",
77
+ "void",
78
+ "checked",
79
+ "unchecked",
80
+ "default",
81
+ "delegate",
82
+ "var",
83
+ "const",
84
+ "if",
85
+ "else",
86
+ "switch",
87
+ "case",
88
+ "while",
89
+ "do",
90
+ "for",
91
+ "foreach",
92
+ "in",
93
+ "break",
94
+ "continue",
95
+ "goto",
96
+ "return",
97
+ "throw",
98
+ "try",
99
+ "catch",
100
+ "finally",
101
+ "lock",
102
+ "yield",
103
+ "from",
104
+ "let",
105
+ "where",
106
+ "join",
107
+ "on",
108
+ "equals",
109
+ "into",
110
+ "orderby",
111
+ "ascending",
112
+ "descending",
113
+ "select",
114
+ "group",
115
+ "by",
116
+ "namespace",
117
+ "partial",
118
+ "class",
119
+ "field",
120
+ "event",
121
+ "method",
122
+ "param",
123
+ "public",
124
+ "protected",
125
+ "internal",
126
+ "private",
127
+ "abstract",
128
+ "sealed",
129
+ "static",
130
+ "struct",
131
+ "readonly",
132
+ "volatile",
133
+ "virtual",
134
+ "override",
135
+ "params",
136
+ "get",
137
+ "set",
138
+ "add",
139
+ "remove",
140
+ "operator",
141
+ "true",
142
+ "false",
143
+ "implicit",
144
+ "explicit",
145
+ "interface",
146
+ "enum",
147
+ "null",
148
+ "async",
149
+ "await",
150
+ "fixed",
151
+ "sizeof",
152
+ "stackalloc",
153
+ "unsafe",
154
+ "nameof",
155
+ "when"
156
+ ],
157
+ namespaceFollows: ["namespace", "using"],
158
+ parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
159
+ operators: [
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
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
195
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
196
+ tokenizer: {
197
+ root: [
198
+ [
199
+ /\@?[a-zA-Z_]\w*/,
200
+ {
201
+ cases: {
202
+ "@namespaceFollows": {
203
+ token: "keyword.$0",
204
+ next: "@namespace"
205
+ },
206
+ "@keywords": {
207
+ token: "keyword.$0",
208
+ next: "@qualified"
209
+ },
210
+ "@default": { token: "identifier", next: "@qualified" }
211
+ }
212
+ }
213
+ ],
214
+ { include: "@whitespace" },
215
+ [
216
+ /}/,
217
+ {
218
+ cases: {
219
+ "$S2==interpolatedstring": {
220
+ token: "string.quote",
221
+ next: "@pop"
222
+ },
223
+ "$S2==litinterpstring": {
224
+ token: "string.quote",
225
+ next: "@pop"
226
+ },
227
+ "@default": "@brackets"
228
+ }
229
+ }
230
+ ],
231
+ [/[{}()\[\]]/, "@brackets"],
232
+ [/[<>](?!@symbols)/, "@brackets"],
233
+ [
234
+ /@symbols/,
235
+ {
236
+ cases: {
237
+ "@operators": "delimiter",
238
+ "@default": ""
239
+ }
240
+ }
241
+ ],
242
+ [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
243
+ [/0[xX][0-9a-fA-F_]+/, "number.hex"],
244
+ [/0[bB][01_]+/, "number.hex"],
245
+ [/[0-9_]+/, "number"],
246
+ [/[;,.]/, "delimiter"],
247
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
248
+ [/"/, { token: "string.quote", next: "@string" }],
249
+ [/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
250
+ [/\@"/, { token: "string.quote", next: "@litstring" }],
251
+ [/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
252
+ [/'[^\\']'/, "string"],
253
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
254
+ [/'/, "string.invalid"]
255
+ ],
256
+ qualified: [
257
+ [
258
+ /[a-zA-Z_][\w]*/,
259
+ {
260
+ cases: {
261
+ "@keywords": { token: "keyword.$0" },
262
+ "@default": "identifier"
263
+ }
264
+ }
265
+ ],
266
+ [/\./, "delimiter"],
267
+ ["", "", "@pop"]
268
+ ],
269
+ namespace: [
270
+ { include: "@whitespace" },
271
+ [/[A-Z]\w*/, "namespace"],
272
+ [/[\.=]/, "delimiter"],
273
+ ["", "", "@pop"]
274
+ ],
275
+ comment: [
276
+ [/[^\/*]+/, "comment"],
277
+ ["\\*/", "comment", "@pop"],
278
+ [/[\/*]/, "comment"]
279
+ ],
280
+ string: [
281
+ [/[^\\"]+/, "string"],
282
+ [/@escapes/, "string.escape"],
283
+ [/\\./, "string.escape.invalid"],
284
+ [/"/, { token: "string.quote", next: "@pop" }]
285
+ ],
286
+ litstring: [
287
+ [/[^"]+/, "string"],
288
+ [/""/, "string.escape"],
289
+ [/"/, { token: "string.quote", next: "@pop" }]
290
+ ],
291
+ litinterpstring: [
292
+ [/[^"{]+/, "string"],
293
+ [/""/, "string.escape"],
294
+ [/{{/, "string.escape"],
295
+ [/}}/, "string.escape"],
296
+ [/{/, { token: "string.quote", next: "root.litinterpstring" }],
297
+ [/"/, { token: "string.quote", next: "@pop" }]
298
+ ],
299
+ interpolatedstring: [
300
+ [/[^\\"{]+/, "string"],
301
+ [/@escapes/, "string.escape"],
302
+ [/\\./, "string.escape.invalid"],
303
+ [/{{/, "string.escape"],
304
+ [/}}/, "string.escape"],
305
+ [/{/, { token: "string.quote", next: "root.interpolatedstring" }],
306
+ [/"/, { token: "string.quote", next: "@pop" }]
307
+ ],
308
+ whitespace: [
309
+ [/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
310
+ [/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
311
+ [/[ \t\v\f\r\n]+/, ""],
312
+ [/\/\*/, "comment", "@comment"],
313
+ [/\/\/.*$/, "comment"]
314
+ ]
315
+ }
316
+ };
317
+ export {
318
+ e as conf,
319
+ t as language
320
+ };
@@ -0,0 +1,57 @@
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
+ brackets: [],
9
+ autoClosingPairs: [],
10
+ surroundingPairs: []
11
+ }, r = {
12
+ keywords: [],
13
+ typeKeywords: [],
14
+ tokenPostfix: ".csp",
15
+ operators: [],
16
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
17
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
18
+ tokenizer: {
19
+ root: [
20
+ [/child-src/, "string.quote"],
21
+ [/connect-src/, "string.quote"],
22
+ [/default-src/, "string.quote"],
23
+ [/font-src/, "string.quote"],
24
+ [/frame-src/, "string.quote"],
25
+ [/img-src/, "string.quote"],
26
+ [/manifest-src/, "string.quote"],
27
+ [/media-src/, "string.quote"],
28
+ [/object-src/, "string.quote"],
29
+ [/script-src/, "string.quote"],
30
+ [/style-src/, "string.quote"],
31
+ [/worker-src/, "string.quote"],
32
+ [/base-uri/, "string.quote"],
33
+ [/plugin-types/, "string.quote"],
34
+ [/sandbox/, "string.quote"],
35
+ [/disown-opener/, "string.quote"],
36
+ [/form-action/, "string.quote"],
37
+ [/frame-ancestors/, "string.quote"],
38
+ [/report-uri/, "string.quote"],
39
+ [/report-to/, "string.quote"],
40
+ [/upgrade-insecure-requests/, "string.quote"],
41
+ [/block-all-mixed-content/, "string.quote"],
42
+ [/require-sri-for/, "string.quote"],
43
+ [/reflected-xss/, "string.quote"],
44
+ [/referrer/, "string.quote"],
45
+ [/policy-uri/, "string.quote"],
46
+ [/'self'/, "string.quote"],
47
+ [/'unsafe-inline'/, "string.quote"],
48
+ [/'unsafe-eval'/, "string.quote"],
49
+ [/'strict-dynamic'/, "string.quote"],
50
+ [/'unsafe-hashed-attributes'/, "string.quote"]
51
+ ]
52
+ }
53
+ };
54
+ export {
55
+ t as conf,
56
+ r as language
57
+ };
@@ -0,0 +1,186 @@
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 e = {
8
+ wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
9
+ comments: {
10
+ blockComment: ["/*", "*/"]
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"]
16
+ ],
17
+ autoClosingPairs: [
18
+ { open: "{", close: "}", notIn: ["string", "comment"] },
19
+ { open: "[", close: "]", notIn: ["string", "comment"] },
20
+ { open: "(", close: ")", notIn: ["string", "comment"] },
21
+ { open: '"', close: '"', notIn: ["string", "comment"] },
22
+ { open: "'", close: "'", notIn: ["string", "comment"] }
23
+ ],
24
+ surroundingPairs: [
25
+ { open: "{", close: "}" },
26
+ { open: "[", close: "]" },
27
+ { open: "(", close: ")" },
28
+ { open: '"', close: '"' },
29
+ { open: "'", close: "'" }
30
+ ],
31
+ folding: {
32
+ markers: {
33
+ start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
34
+ end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
35
+ }
36
+ }
37
+ }, t = {
38
+ defaultToken: "",
39
+ tokenPostfix: ".css",
40
+ ws: `[
41
+ \r\f]*`,
42
+ identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
43
+ brackets: [
44
+ { open: "{", close: "}", token: "delimiter.bracket" },
45
+ { open: "[", close: "]", token: "delimiter.bracket" },
46
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
47
+ { open: "<", close: ">", token: "delimiter.angle" }
48
+ ],
49
+ tokenizer: {
50
+ root: [{ include: "@selector" }],
51
+ selector: [
52
+ { include: "@comments" },
53
+ { include: "@import" },
54
+ { include: "@strings" },
55
+ [
56
+ "[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
57
+ { token: "keyword", next: "@keyframedeclaration" }
58
+ ],
59
+ ["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
60
+ ["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
61
+ [
62
+ "(url-prefix)(\\()",
63
+ ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
64
+ ],
65
+ [
66
+ "(url)(\\()",
67
+ ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
68
+ ],
69
+ { include: "@selectorname" },
70
+ ["[\\*]", "tag"],
71
+ ["[>\\+,]", "delimiter"],
72
+ ["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
73
+ ["{", { token: "delimiter.bracket", next: "@selectorbody" }]
74
+ ],
75
+ selectorbody: [
76
+ { include: "@comments" },
77
+ ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
78
+ ["}", { token: "delimiter.bracket", next: "@pop" }]
79
+ ],
80
+ selectorname: [
81
+ ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
82
+ ],
83
+ selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
84
+ term: [
85
+ { include: "@comments" },
86
+ [
87
+ "(url-prefix)(\\()",
88
+ ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
89
+ ],
90
+ [
91
+ "(url)(\\()",
92
+ ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
93
+ ],
94
+ { include: "@functioninvocation" },
95
+ { include: "@numbers" },
96
+ { include: "@name" },
97
+ { include: "@strings" },
98
+ ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
99
+ [",", "delimiter"]
100
+ ],
101
+ rulevalue: [
102
+ { include: "@comments" },
103
+ { include: "@strings" },
104
+ { include: "@term" },
105
+ ["!important", "keyword"],
106
+ [";", "delimiter", "@pop"],
107
+ ["(?=})", { token: "", next: "@pop" }]
108
+ ],
109
+ warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
110
+ import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
111
+ urldeclaration: [
112
+ { include: "@strings" },
113
+ [`[^)\r
114
+ ]+`, "string"],
115
+ ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
116
+ ],
117
+ parenthizedterm: [
118
+ { include: "@term" },
119
+ ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
120
+ ],
121
+ declarationbody: [
122
+ { include: "@term" },
123
+ [";", "delimiter", "@pop"],
124
+ ["(?=})", { token: "", next: "@pop" }]
125
+ ],
126
+ comments: [
127
+ ["\\/\\*", "comment", "@comment"],
128
+ ["\\/\\/+.*", "comment"]
129
+ ],
130
+ comment: [
131
+ ["\\*\\/", "comment", "@pop"],
132
+ [/[^*/]+/, "comment"],
133
+ [/./, "comment"]
134
+ ],
135
+ name: [["@identifier", "attribute.value"]],
136
+ numbers: [
137
+ ["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
138
+ ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
139
+ ],
140
+ units: [
141
+ [
142
+ "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
143
+ "attribute.value.unit",
144
+ "@pop"
145
+ ]
146
+ ],
147
+ keyframedeclaration: [
148
+ ["@identifier", "attribute.value"],
149
+ ["{", { token: "delimiter.bracket", switchTo: "@keyframebody" }]
150
+ ],
151
+ keyframebody: [
152
+ { include: "@term" },
153
+ ["{", { token: "delimiter.bracket", next: "@selectorbody" }],
154
+ ["}", { token: "delimiter.bracket", next: "@pop" }]
155
+ ],
156
+ functioninvocation: [
157
+ ["@identifier\\(", { token: "attribute.value", next: "@functionarguments" }]
158
+ ],
159
+ functionarguments: [
160
+ ["\\$@identifier@ws:", "attribute.name"],
161
+ ["[,]", "delimiter"],
162
+ { include: "@term" },
163
+ ["\\)", { token: "attribute.value", next: "@pop" }]
164
+ ],
165
+ strings: [
166
+ ['~?"', { token: "string", next: "@stringenddoublequote" }],
167
+ ["~?'", { token: "string", next: "@stringendquote" }]
168
+ ],
169
+ stringenddoublequote: [
170
+ ["\\\\.", "string"],
171
+ ['"', { token: "string", next: "@pop" }],
172
+ [/[^\\"]+/, "string"],
173
+ [".", "string"]
174
+ ],
175
+ stringendquote: [
176
+ ["\\\\.", "string"],
177
+ ["'", { token: "string", next: "@pop" }],
178
+ [/[^\\']+/, "string"],
179
+ [".", "string"]
180
+ ]
181
+ }
182
+ };
183
+ export {
184
+ e as conf,
185
+ t as language
186
+ };