@arcgis/coding-components 4.29.0-beta.70 → 4.29.0-beta.73

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.
@@ -0,0 +1,345 @@
1
+ 'use strict';
2
+
3
+ const arcadeDefaults = require('./arcade-defaults-298b308e.js');
4
+ require('./index-ac186201.js');
5
+
6
+ /*!-----------------------------------------------------------------------------
7
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
9
+ * Released under the MIT license
10
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
11
+ *-----------------------------------------------------------------------------*/
12
+
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
26
+
27
+ // src/fillers/monaco-editor-core.ts
28
+ var monaco_editor_core_exports = {};
29
+ __reExport(monaco_editor_core_exports, arcadeDefaults.monaco_editor_core_star);
30
+
31
+ // src/basic-languages/typescript/typescript.ts
32
+ var conf = {
33
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
34
+ comments: {
35
+ lineComment: "//",
36
+ blockComment: ["/*", "*/"]
37
+ },
38
+ brackets: [
39
+ ["{", "}"],
40
+ ["[", "]"],
41
+ ["(", ")"]
42
+ ],
43
+ onEnterRules: [
44
+ {
45
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
46
+ afterText: /^\s*\*\/$/,
47
+ action: {
48
+ indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent,
49
+ appendText: " * "
50
+ }
51
+ },
52
+ {
53
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
54
+ action: {
55
+ indentAction: monaco_editor_core_exports.languages.IndentAction.None,
56
+ appendText: " * "
57
+ }
58
+ },
59
+ {
60
+ beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
61
+ action: {
62
+ indentAction: monaco_editor_core_exports.languages.IndentAction.None,
63
+ appendText: "* "
64
+ }
65
+ },
66
+ {
67
+ beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
68
+ action: {
69
+ indentAction: monaco_editor_core_exports.languages.IndentAction.None,
70
+ removeText: 1
71
+ }
72
+ }
73
+ ],
74
+ autoClosingPairs: [
75
+ { open: "{", close: "}" },
76
+ { open: "[", close: "]" },
77
+ { open: "(", close: ")" },
78
+ { open: '"', close: '"', notIn: ["string"] },
79
+ { open: "'", close: "'", notIn: ["string", "comment"] },
80
+ { open: "`", close: "`", notIn: ["string", "comment"] },
81
+ { open: "/**", close: " */", notIn: ["string"] }
82
+ ],
83
+ folding: {
84
+ markers: {
85
+ start: new RegExp("^\\s*//\\s*#?region\\b"),
86
+ end: new RegExp("^\\s*//\\s*#?endregion\\b")
87
+ }
88
+ }
89
+ };
90
+ var language = {
91
+ defaultToken: "invalid",
92
+ tokenPostfix: ".ts",
93
+ keywords: [
94
+ "abstract",
95
+ "any",
96
+ "as",
97
+ "asserts",
98
+ "bigint",
99
+ "boolean",
100
+ "break",
101
+ "case",
102
+ "catch",
103
+ "class",
104
+ "continue",
105
+ "const",
106
+ "constructor",
107
+ "debugger",
108
+ "declare",
109
+ "default",
110
+ "delete",
111
+ "do",
112
+ "else",
113
+ "enum",
114
+ "export",
115
+ "extends",
116
+ "false",
117
+ "finally",
118
+ "for",
119
+ "from",
120
+ "function",
121
+ "get",
122
+ "if",
123
+ "implements",
124
+ "import",
125
+ "in",
126
+ "infer",
127
+ "instanceof",
128
+ "interface",
129
+ "is",
130
+ "keyof",
131
+ "let",
132
+ "module",
133
+ "namespace",
134
+ "never",
135
+ "new",
136
+ "null",
137
+ "number",
138
+ "object",
139
+ "out",
140
+ "package",
141
+ "private",
142
+ "protected",
143
+ "public",
144
+ "override",
145
+ "readonly",
146
+ "require",
147
+ "global",
148
+ "return",
149
+ "satisfies",
150
+ "set",
151
+ "static",
152
+ "string",
153
+ "super",
154
+ "switch",
155
+ "symbol",
156
+ "this",
157
+ "throw",
158
+ "true",
159
+ "try",
160
+ "type",
161
+ "typeof",
162
+ "undefined",
163
+ "unique",
164
+ "unknown",
165
+ "var",
166
+ "void",
167
+ "while",
168
+ "with",
169
+ "yield",
170
+ "async",
171
+ "await",
172
+ "of"
173
+ ],
174
+ operators: [
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
+ "?",
203
+ ":",
204
+ "=",
205
+ "+=",
206
+ "-=",
207
+ "*=",
208
+ "**=",
209
+ "/=",
210
+ "%=",
211
+ "<<=",
212
+ ">>=",
213
+ ">>>=",
214
+ "&=",
215
+ "|=",
216
+ "^=",
217
+ "@"
218
+ ],
219
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
220
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
221
+ digits: /\d+(_+\d+)*/,
222
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
223
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
224
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
225
+ regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
226
+ regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
227
+ tokenizer: {
228
+ root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
229
+ common: [
230
+ [
231
+ /#?[a-z_$][\w$]*/,
232
+ {
233
+ cases: {
234
+ "@keywords": "keyword",
235
+ "@default": "identifier"
236
+ }
237
+ }
238
+ ],
239
+ [/[A-Z][\w\$]*/, "type.identifier"],
240
+ { include: "@whitespace" },
241
+ [
242
+ /\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
243
+ { token: "regexp", bracket: "@open", next: "@regexp" }
244
+ ],
245
+ [/[()\[\]]/, "@brackets"],
246
+ [/[<>](?!@symbols)/, "@brackets"],
247
+ [/!(?=([^=]|$))/, "delimiter"],
248
+ [
249
+ /@symbols/,
250
+ {
251
+ cases: {
252
+ "@operators": "delimiter",
253
+ "@default": ""
254
+ }
255
+ }
256
+ ],
257
+ [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
258
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
259
+ [/0[xX](@hexdigits)n?/, "number.hex"],
260
+ [/0[oO]?(@octaldigits)n?/, "number.octal"],
261
+ [/0[bB](@binarydigits)n?/, "number.binary"],
262
+ [/(@digits)n?/, "number"],
263
+ [/[;,.]/, "delimiter"],
264
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
265
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
266
+ [/"/, "string", "@string_double"],
267
+ [/'/, "string", "@string_single"],
268
+ [/`/, "string", "@string_backtick"]
269
+ ],
270
+ whitespace: [
271
+ [/[ \t\r\n]+/, ""],
272
+ [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
273
+ [/\/\*/, "comment", "@comment"],
274
+ [/\/\/.*$/, "comment"]
275
+ ],
276
+ comment: [
277
+ [/[^\/*]+/, "comment"],
278
+ [/\*\//, "comment", "@pop"],
279
+ [/[\/*]/, "comment"]
280
+ ],
281
+ jsdoc: [
282
+ [/[^\/*]+/, "comment.doc"],
283
+ [/\*\//, "comment.doc", "@pop"],
284
+ [/[\/*]/, "comment.doc"]
285
+ ],
286
+ regexp: [
287
+ [
288
+ /(\{)(\d+(?:,\d*)?)(\})/,
289
+ ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
290
+ ],
291
+ [
292
+ /(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
293
+ ["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
294
+ ],
295
+ [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
296
+ [/[()]/, "regexp.escape.control"],
297
+ [/@regexpctl/, "regexp.escape.control"],
298
+ [/[^\\\/]/, "regexp"],
299
+ [/@regexpesc/, "regexp.escape"],
300
+ [/\\\./, "regexp.invalid"],
301
+ [/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
302
+ ],
303
+ regexrange: [
304
+ [/-/, "regexp.escape.control"],
305
+ [/\^/, "regexp.invalid"],
306
+ [/@regexpesc/, "regexp.escape"],
307
+ [/[^\]]/, "regexp"],
308
+ [
309
+ /\]/,
310
+ {
311
+ token: "regexp.escape.control",
312
+ next: "@pop",
313
+ bracket: "@close"
314
+ }
315
+ ]
316
+ ],
317
+ string_double: [
318
+ [/[^\\"]+/, "string"],
319
+ [/@escapes/, "string.escape"],
320
+ [/\\./, "string.escape.invalid"],
321
+ [/"/, "string", "@pop"]
322
+ ],
323
+ string_single: [
324
+ [/[^\\']+/, "string"],
325
+ [/@escapes/, "string.escape"],
326
+ [/\\./, "string.escape.invalid"],
327
+ [/'/, "string", "@pop"]
328
+ ],
329
+ string_backtick: [
330
+ [/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
331
+ [/[^\\`$]+/, "string"],
332
+ [/@escapes/, "string.escape"],
333
+ [/\\./, "string.escape.invalid"],
334
+ [/`/, "string", "@pop"]
335
+ ],
336
+ bracketCounting: [
337
+ [/\{/, "delimiter.bracket", "@bracketCounting"],
338
+ [/\}/, "delimiter.bracket", "@pop"],
339
+ { include: "common" }
340
+ ]
341
+ }
342
+ };
343
+
344
+ exports.conf = conf;
345
+ exports.language = language;