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,210 @@
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
+ comments: {
9
+ lineComment: "//",
10
+ blockComment: ["(*", "*)"]
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"]
16
+ ],
17
+ autoClosingPairs: [
18
+ { open: "{", close: "}" },
19
+ { open: "[", close: "]" },
20
+ { open: "(", close: ")" },
21
+ { open: '"', close: '"' }
22
+ ],
23
+ surroundingPairs: [
24
+ { open: "{", close: "}" },
25
+ { open: "[", close: "]" },
26
+ { open: "(", close: ")" },
27
+ { open: '"', close: '"' },
28
+ { open: "'", close: "'" }
29
+ ],
30
+ folding: {
31
+ markers: {
32
+ start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),
33
+ end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")
34
+ }
35
+ }
36
+ }, n = {
37
+ defaultToken: "",
38
+ tokenPostfix: ".fs",
39
+ keywords: [
40
+ "abstract",
41
+ "and",
42
+ "atomic",
43
+ "as",
44
+ "assert",
45
+ "asr",
46
+ "base",
47
+ "begin",
48
+ "break",
49
+ "checked",
50
+ "component",
51
+ "const",
52
+ "constraint",
53
+ "constructor",
54
+ "continue",
55
+ "class",
56
+ "default",
57
+ "delegate",
58
+ "do",
59
+ "done",
60
+ "downcast",
61
+ "downto",
62
+ "elif",
63
+ "else",
64
+ "end",
65
+ "exception",
66
+ "eager",
67
+ "event",
68
+ "external",
69
+ "extern",
70
+ "false",
71
+ "finally",
72
+ "for",
73
+ "fun",
74
+ "function",
75
+ "fixed",
76
+ "functor",
77
+ "global",
78
+ "if",
79
+ "in",
80
+ "include",
81
+ "inherit",
82
+ "inline",
83
+ "interface",
84
+ "internal",
85
+ "land",
86
+ "lor",
87
+ "lsl",
88
+ "lsr",
89
+ "lxor",
90
+ "lazy",
91
+ "let",
92
+ "match",
93
+ "member",
94
+ "mod",
95
+ "module",
96
+ "mutable",
97
+ "namespace",
98
+ "method",
99
+ "mixin",
100
+ "new",
101
+ "not",
102
+ "null",
103
+ "of",
104
+ "open",
105
+ "or",
106
+ "object",
107
+ "override",
108
+ "private",
109
+ "parallel",
110
+ "process",
111
+ "protected",
112
+ "pure",
113
+ "public",
114
+ "rec",
115
+ "return",
116
+ "static",
117
+ "sealed",
118
+ "struct",
119
+ "sig",
120
+ "then",
121
+ "to",
122
+ "true",
123
+ "tailcall",
124
+ "trait",
125
+ "try",
126
+ "type",
127
+ "upcast",
128
+ "use",
129
+ "val",
130
+ "void",
131
+ "virtual",
132
+ "volatile",
133
+ "when",
134
+ "while",
135
+ "with",
136
+ "yield"
137
+ ],
138
+ symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
139
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
140
+ integersuffix: /[uU]?[yslnLI]?/,
141
+ floatsuffix: /[fFmM]?/,
142
+ tokenizer: {
143
+ root: [
144
+ [
145
+ /[a-zA-Z_]\w*/,
146
+ {
147
+ cases: {
148
+ "@keywords": { token: "keyword.$0" },
149
+ "@default": "identifier"
150
+ }
151
+ }
152
+ ],
153
+ { include: "@whitespace" },
154
+ [/\[<.*>\]/, "annotation"],
155
+ [/^#(if|else|endif)/, "keyword"],
156
+ [/[{}()\[\]]/, "@brackets"],
157
+ [/[<>](?!@symbols)/, "@brackets"],
158
+ [/@symbols/, "delimiter"],
159
+ [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
160
+ [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
161
+ [/0x[0-9a-fA-F]+LF/, "number.float"],
162
+ [/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"],
163
+ [/0b[0-1]+(@integersuffix)/, "number.bin"],
164
+ [/\d+(@integersuffix)/, "number"],
165
+ [/[;,.]/, "delimiter"],
166
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
167
+ [/"""/, "string", '@string."""'],
168
+ [/"/, "string", '@string."'],
169
+ [/\@"/, { token: "string.quote", next: "@litstring" }],
170
+ [/'[^\\']'B?/, "string"],
171
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
172
+ [/'/, "string.invalid"]
173
+ ],
174
+ whitespace: [
175
+ [/[ \t\r\n]+/, ""],
176
+ [/\(\*(?!\))/, "comment", "@comment"],
177
+ [/\/\/.*$/, "comment"]
178
+ ],
179
+ comment: [
180
+ [/[^*(]+/, "comment"],
181
+ [/\*\)/, "comment", "@pop"],
182
+ [/\*/, "comment"],
183
+ [/\(\*\)/, "comment"],
184
+ [/\(/, "comment"]
185
+ ],
186
+ string: [
187
+ [/[^\\"]+/, "string"],
188
+ [/@escapes/, "string.escape"],
189
+ [/\\./, "string.escape.invalid"],
190
+ [
191
+ /("""|"B?)/,
192
+ {
193
+ cases: {
194
+ "$#==$S2": { token: "string", next: "@pop" },
195
+ "@default": "string"
196
+ }
197
+ }
198
+ ]
199
+ ],
200
+ litstring: [
201
+ [/[^"]+/, "string"],
202
+ [/""/, "string.escape"],
203
+ [/"/, { token: "string.quote", next: "@pop" }]
204
+ ]
205
+ }
206
+ };
207
+ export {
208
+ e as conf,
209
+ n as language
210
+ };
@@ -0,0 +1,208 @@
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
+ comments: {
9
+ lineComment: "//",
10
+ blockComment: ["/*", "*/"]
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"]
16
+ ],
17
+ autoClosingPairs: [
18
+ { open: "{", close: "}" },
19
+ { open: "[", close: "]" },
20
+ { open: "(", close: ")" },
21
+ { open: "`", close: "`", notIn: ["string"] },
22
+ { open: '"', close: '"', notIn: ["string"] },
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
+ }, n = {
34
+ defaultToken: "",
35
+ tokenPostfix: ".go",
36
+ keywords: [
37
+ "break",
38
+ "case",
39
+ "chan",
40
+ "const",
41
+ "continue",
42
+ "default",
43
+ "defer",
44
+ "else",
45
+ "fallthrough",
46
+ "for",
47
+ "func",
48
+ "go",
49
+ "goto",
50
+ "if",
51
+ "import",
52
+ "interface",
53
+ "map",
54
+ "package",
55
+ "range",
56
+ "return",
57
+ "select",
58
+ "struct",
59
+ "switch",
60
+ "type",
61
+ "var",
62
+ "bool",
63
+ "true",
64
+ "false",
65
+ "uint8",
66
+ "uint16",
67
+ "uint32",
68
+ "uint64",
69
+ "int8",
70
+ "int16",
71
+ "int32",
72
+ "int64",
73
+ "float32",
74
+ "float64",
75
+ "complex64",
76
+ "complex128",
77
+ "byte",
78
+ "rune",
79
+ "uint",
80
+ "int",
81
+ "uintptr",
82
+ "string",
83
+ "nil"
84
+ ],
85
+ operators: [
86
+ "+",
87
+ "-",
88
+ "*",
89
+ "/",
90
+ "%",
91
+ "&",
92
+ "|",
93
+ "^",
94
+ "<<",
95
+ ">>",
96
+ "&^",
97
+ "+=",
98
+ "-=",
99
+ "*=",
100
+ "/=",
101
+ "%=",
102
+ "&=",
103
+ "|=",
104
+ "^=",
105
+ "<<=",
106
+ ">>=",
107
+ "&^=",
108
+ "&&",
109
+ "||",
110
+ "<-",
111
+ "++",
112
+ "--",
113
+ "==",
114
+ "<",
115
+ ">",
116
+ "=",
117
+ "!",
118
+ "!=",
119
+ "<=",
120
+ ">=",
121
+ ":=",
122
+ "...",
123
+ "(",
124
+ ")",
125
+ "",
126
+ "]",
127
+ "{",
128
+ "}",
129
+ ",",
130
+ ";",
131
+ ".",
132
+ ":"
133
+ ],
134
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
135
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
136
+ tokenizer: {
137
+ root: [
138
+ [
139
+ /[a-zA-Z_]\w*/,
140
+ {
141
+ cases: {
142
+ "@keywords": { token: "keyword.$0" },
143
+ "@default": "identifier"
144
+ }
145
+ }
146
+ ],
147
+ { include: "@whitespace" },
148
+ [/\[\[.*\]\]/, "annotation"],
149
+ [/^\s*#\w+/, "keyword"],
150
+ [/[{}()\[\]]/, "@brackets"],
151
+ [/[<>](?!@symbols)/, "@brackets"],
152
+ [
153
+ /@symbols/,
154
+ {
155
+ cases: {
156
+ "@operators": "delimiter",
157
+ "@default": ""
158
+ }
159
+ }
160
+ ],
161
+ [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
162
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
163
+ [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"],
164
+ [/0[0-7']*[0-7]/, "number.octal"],
165
+ [/0[bB][0-1']*[0-1]/, "number.binary"],
166
+ [/\d[\d']*/, "number"],
167
+ [/\d/, "number"],
168
+ [/[;,.]/, "delimiter"],
169
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
170
+ [/"/, "string", "@string"],
171
+ [/`/, "string", "@rawstring"],
172
+ [/'[^\\']'/, "string"],
173
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
174
+ [/'/, "string.invalid"]
175
+ ],
176
+ whitespace: [
177
+ [/[ \t\r\n]+/, ""],
178
+ [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
179
+ [/\/\*/, "comment", "@comment"],
180
+ [/\/\/.*$/, "comment"]
181
+ ],
182
+ comment: [
183
+ [/[^\/*]+/, "comment"],
184
+ [/\*\//, "comment", "@pop"],
185
+ [/[\/*]/, "comment"]
186
+ ],
187
+ doccomment: [
188
+ [/[^\/*]+/, "comment.doc"],
189
+ [/\/\*/, "comment.doc.invalid"],
190
+ [/\*\//, "comment.doc", "@pop"],
191
+ [/[\/*]/, "comment.doc"]
192
+ ],
193
+ string: [
194
+ [/[^\\"]+/, "string"],
195
+ [/@escapes/, "string.escape"],
196
+ [/\\./, "string.escape.invalid"],
197
+ [/"/, "string", "@pop"]
198
+ ],
199
+ rawstring: [
200
+ [/[^\`]/, "string"],
201
+ [/`/, "string", "@pop"]
202
+ ]
203
+ }
204
+ };
205
+ export {
206
+ e as conf,
207
+ n as language
208
+ };
@@ -0,0 +1,141 @@
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
+ comments: {
9
+ lineComment: "#"
10
+ },
11
+ brackets: [
12
+ ["{", "}"],
13
+ ["[", "]"],
14
+ ["(", ")"]
15
+ ],
16
+ autoClosingPairs: [
17
+ { open: "{", close: "}" },
18
+ { open: "[", close: "]" },
19
+ { open: "(", close: ")" },
20
+ { open: '"""', close: '"""', notIn: ["string", "comment"] },
21
+ { open: '"', close: '"', notIn: ["string", "comment"] }
22
+ ],
23
+ surroundingPairs: [
24
+ { open: "{", close: "}" },
25
+ { open: "[", close: "]" },
26
+ { open: "(", close: ")" },
27
+ { open: '"""', close: '"""' },
28
+ { open: '"', close: '"' }
29
+ ],
30
+ folding: {
31
+ offSide: !0
32
+ }
33
+ }, n = {
34
+ defaultToken: "invalid",
35
+ tokenPostfix: ".gql",
36
+ keywords: [
37
+ "null",
38
+ "true",
39
+ "false",
40
+ "query",
41
+ "mutation",
42
+ "subscription",
43
+ "extend",
44
+ "schema",
45
+ "directive",
46
+ "scalar",
47
+ "type",
48
+ "interface",
49
+ "union",
50
+ "enum",
51
+ "input",
52
+ "implements",
53
+ "fragment",
54
+ "on"
55
+ ],
56
+ typeKeywords: ["Int", "Float", "String", "Boolean", "ID"],
57
+ directiveLocations: [
58
+ "SCHEMA",
59
+ "SCALAR",
60
+ "OBJECT",
61
+ "FIELD_DEFINITION",
62
+ "ARGUMENT_DEFINITION",
63
+ "INTERFACE",
64
+ "UNION",
65
+ "ENUM",
66
+ "ENUM_VALUE",
67
+ "INPUT_OBJECT",
68
+ "INPUT_FIELD_DEFINITION",
69
+ "QUERY",
70
+ "MUTATION",
71
+ "SUBSCRIPTION",
72
+ "FIELD",
73
+ "FRAGMENT_DEFINITION",
74
+ "FRAGMENT_SPREAD",
75
+ "INLINE_FRAGMENT",
76
+ "VARIABLE_DEFINITION"
77
+ ],
78
+ operators: ["=", "!", "?", ":", "&", "|"],
79
+ symbols: /[=!?:&|]+/,
80
+ escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
81
+ tokenizer: {
82
+ root: [
83
+ [
84
+ /[a-z_][\w$]*/,
85
+ {
86
+ cases: {
87
+ "@keywords": "keyword",
88
+ "@default": "key.identifier"
89
+ }
90
+ }
91
+ ],
92
+ [
93
+ /[$][\w$]*/,
94
+ {
95
+ cases: {
96
+ "@keywords": "keyword",
97
+ "@default": "argument.identifier"
98
+ }
99
+ }
100
+ ],
101
+ [
102
+ /[A-Z][\w\$]*/,
103
+ {
104
+ cases: {
105
+ "@typeKeywords": "keyword",
106
+ "@default": "type.identifier"
107
+ }
108
+ }
109
+ ],
110
+ { include: "@whitespace" },
111
+ [/[{}()\[\]]/, "@brackets"],
112
+ [/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
113
+ [/@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }],
114
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
115
+ [/0[xX][0-9a-fA-F]+/, "number.hex"],
116
+ [/\d+/, "number"],
117
+ [/[;,.]/, "delimiter"],
118
+ [/"""/, { token: "string", next: "@mlstring", nextEmbedded: "markdown" }],
119
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
120
+ [/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
121
+ ],
122
+ mlstring: [
123
+ [/[^"]+/, "string"],
124
+ ['"""', { token: "string", next: "@pop", nextEmbedded: "@pop" }]
125
+ ],
126
+ string: [
127
+ [/[^\\"]+/, "string"],
128
+ [/@escapes/, "string.escape"],
129
+ [/\\./, "string.escape.invalid"],
130
+ [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
131
+ ],
132
+ whitespace: [
133
+ [/[ \t\r\n]+/, ""],
134
+ [/#.*$/, "comment"]
135
+ ]
136
+ }
137
+ };
138
+ export {
139
+ e as conf,
140
+ n as language
141
+ };