@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,299 @@
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/html/html.ts
32
+ var EMPTY_ELEMENTS = [
33
+ "area",
34
+ "base",
35
+ "br",
36
+ "col",
37
+ "embed",
38
+ "hr",
39
+ "img",
40
+ "input",
41
+ "keygen",
42
+ "link",
43
+ "menuitem",
44
+ "meta",
45
+ "param",
46
+ "source",
47
+ "track",
48
+ "wbr"
49
+ ];
50
+ var conf = {
51
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
52
+ comments: {
53
+ blockComment: ["<!--", "-->"]
54
+ },
55
+ brackets: [
56
+ ["<!--", "-->"],
57
+ ["<", ">"],
58
+ ["{", "}"],
59
+ ["(", ")"]
60
+ ],
61
+ autoClosingPairs: [
62
+ { open: "{", close: "}" },
63
+ { open: "[", close: "]" },
64
+ { open: "(", close: ")" },
65
+ { open: '"', close: '"' },
66
+ { open: "'", close: "'" }
67
+ ],
68
+ surroundingPairs: [
69
+ { open: '"', close: '"' },
70
+ { open: "'", close: "'" },
71
+ { open: "{", close: "}" },
72
+ { open: "[", close: "]" },
73
+ { open: "(", close: ")" },
74
+ { open: "<", close: ">" }
75
+ ],
76
+ onEnterRules: [
77
+ {
78
+ beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
79
+ afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
80
+ action: {
81
+ indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
82
+ }
83
+ },
84
+ {
85
+ beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
86
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
87
+ }
88
+ ],
89
+ folding: {
90
+ markers: {
91
+ start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
92
+ end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
93
+ }
94
+ }
95
+ };
96
+ var language = {
97
+ defaultToken: "",
98
+ tokenPostfix: ".html",
99
+ ignoreCase: true,
100
+ tokenizer: {
101
+ root: [
102
+ [/<!DOCTYPE/, "metatag", "@doctype"],
103
+ [/<!--/, "comment", "@comment"],
104
+ [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
105
+ [/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
106
+ [/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
107
+ [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
108
+ [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
109
+ [/</, "delimiter"],
110
+ [/[^<]+/]
111
+ ],
112
+ doctype: [
113
+ [/[^>]+/, "metatag.content"],
114
+ [/>/, "metatag", "@pop"]
115
+ ],
116
+ comment: [
117
+ [/-->/, "comment", "@pop"],
118
+ [/[^-]+/, "comment.content"],
119
+ [/./, "comment.content"]
120
+ ],
121
+ otherTag: [
122
+ [/\/?>/, "delimiter", "@pop"],
123
+ [/"([^"]*)"/, "attribute.value"],
124
+ [/'([^']*)'/, "attribute.value"],
125
+ [/[\w\-]+/, "attribute.name"],
126
+ [/=/, "delimiter"],
127
+ [/[ \t\r\n]+/]
128
+ ],
129
+ script: [
130
+ [/type/, "attribute.name", "@scriptAfterType"],
131
+ [/"([^"]*)"/, "attribute.value"],
132
+ [/'([^']*)'/, "attribute.value"],
133
+ [/[\w\-]+/, "attribute.name"],
134
+ [/=/, "delimiter"],
135
+ [
136
+ />/,
137
+ {
138
+ token: "delimiter",
139
+ next: "@scriptEmbedded",
140
+ nextEmbedded: "text/javascript"
141
+ }
142
+ ],
143
+ [/[ \t\r\n]+/],
144
+ [/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
145
+ ],
146
+ scriptAfterType: [
147
+ [/=/, "delimiter", "@scriptAfterTypeEquals"],
148
+ [
149
+ />/,
150
+ {
151
+ token: "delimiter",
152
+ next: "@scriptEmbedded",
153
+ nextEmbedded: "text/javascript"
154
+ }
155
+ ],
156
+ [/[ \t\r\n]+/],
157
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
158
+ ],
159
+ scriptAfterTypeEquals: [
160
+ [
161
+ /"module"/,
162
+ {
163
+ token: "attribute.value",
164
+ switchTo: "@scriptWithCustomType.text/javascript"
165
+ }
166
+ ],
167
+ [
168
+ /'module'/,
169
+ {
170
+ token: "attribute.value",
171
+ switchTo: "@scriptWithCustomType.text/javascript"
172
+ }
173
+ ],
174
+ [
175
+ /"([^"]*)"/,
176
+ {
177
+ token: "attribute.value",
178
+ switchTo: "@scriptWithCustomType.$1"
179
+ }
180
+ ],
181
+ [
182
+ /'([^']*)'/,
183
+ {
184
+ token: "attribute.value",
185
+ switchTo: "@scriptWithCustomType.$1"
186
+ }
187
+ ],
188
+ [
189
+ />/,
190
+ {
191
+ token: "delimiter",
192
+ next: "@scriptEmbedded",
193
+ nextEmbedded: "text/javascript"
194
+ }
195
+ ],
196
+ [/[ \t\r\n]+/],
197
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
198
+ ],
199
+ scriptWithCustomType: [
200
+ [
201
+ />/,
202
+ {
203
+ token: "delimiter",
204
+ next: "@scriptEmbedded.$S2",
205
+ nextEmbedded: "$S2"
206
+ }
207
+ ],
208
+ [/"([^"]*)"/, "attribute.value"],
209
+ [/'([^']*)'/, "attribute.value"],
210
+ [/[\w\-]+/, "attribute.name"],
211
+ [/=/, "delimiter"],
212
+ [/[ \t\r\n]+/],
213
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
214
+ ],
215
+ scriptEmbedded: [
216
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
217
+ [/[^<]+/, ""]
218
+ ],
219
+ style: [
220
+ [/type/, "attribute.name", "@styleAfterType"],
221
+ [/"([^"]*)"/, "attribute.value"],
222
+ [/'([^']*)'/, "attribute.value"],
223
+ [/[\w\-]+/, "attribute.name"],
224
+ [/=/, "delimiter"],
225
+ [
226
+ />/,
227
+ {
228
+ token: "delimiter",
229
+ next: "@styleEmbedded",
230
+ nextEmbedded: "text/css"
231
+ }
232
+ ],
233
+ [/[ \t\r\n]+/],
234
+ [/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
235
+ ],
236
+ styleAfterType: [
237
+ [/=/, "delimiter", "@styleAfterTypeEquals"],
238
+ [
239
+ />/,
240
+ {
241
+ token: "delimiter",
242
+ next: "@styleEmbedded",
243
+ nextEmbedded: "text/css"
244
+ }
245
+ ],
246
+ [/[ \t\r\n]+/],
247
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
248
+ ],
249
+ styleAfterTypeEquals: [
250
+ [
251
+ /"([^"]*)"/,
252
+ {
253
+ token: "attribute.value",
254
+ switchTo: "@styleWithCustomType.$1"
255
+ }
256
+ ],
257
+ [
258
+ /'([^']*)'/,
259
+ {
260
+ token: "attribute.value",
261
+ switchTo: "@styleWithCustomType.$1"
262
+ }
263
+ ],
264
+ [
265
+ />/,
266
+ {
267
+ token: "delimiter",
268
+ next: "@styleEmbedded",
269
+ nextEmbedded: "text/css"
270
+ }
271
+ ],
272
+ [/[ \t\r\n]+/],
273
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
274
+ ],
275
+ styleWithCustomType: [
276
+ [
277
+ />/,
278
+ {
279
+ token: "delimiter",
280
+ next: "@styleEmbedded.$S2",
281
+ nextEmbedded: "$S2"
282
+ }
283
+ ],
284
+ [/"([^"]*)"/, "attribute.value"],
285
+ [/'([^']*)'/, "attribute.value"],
286
+ [/[\w\-]+/, "attribute.name"],
287
+ [/=/, "delimiter"],
288
+ [/[ \t\r\n]+/],
289
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
290
+ ],
291
+ styleEmbedded: [
292
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
293
+ [/[^<]+/, ""]
294
+ ]
295
+ }
296
+ };
297
+
298
+ exports.conf = conf;
299
+ exports.language = language;