@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,296 @@
1
+ import { n as monaco_editor_core_star } from './arcade-defaults-7106421e.js';
2
+ import './index-022fb97b.js';
3
+
4
+ /*!-----------------------------------------------------------------------------
5
+ * Copyright (c) Microsoft Corporation. All rights reserved.
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
+ * Released under the MIT license
8
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
+ *-----------------------------------------------------------------------------*/
10
+
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
24
+
25
+ // src/fillers/monaco-editor-core.ts
26
+ var monaco_editor_core_exports = {};
27
+ __reExport(monaco_editor_core_exports, monaco_editor_core_star);
28
+
29
+ // src/basic-languages/html/html.ts
30
+ var EMPTY_ELEMENTS = [
31
+ "area",
32
+ "base",
33
+ "br",
34
+ "col",
35
+ "embed",
36
+ "hr",
37
+ "img",
38
+ "input",
39
+ "keygen",
40
+ "link",
41
+ "menuitem",
42
+ "meta",
43
+ "param",
44
+ "source",
45
+ "track",
46
+ "wbr"
47
+ ];
48
+ var conf = {
49
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
50
+ comments: {
51
+ blockComment: ["<!--", "-->"]
52
+ },
53
+ brackets: [
54
+ ["<!--", "-->"],
55
+ ["<", ">"],
56
+ ["{", "}"],
57
+ ["(", ")"]
58
+ ],
59
+ autoClosingPairs: [
60
+ { open: "{", close: "}" },
61
+ { open: "[", close: "]" },
62
+ { open: "(", close: ")" },
63
+ { open: '"', close: '"' },
64
+ { open: "'", close: "'" }
65
+ ],
66
+ surroundingPairs: [
67
+ { open: '"', close: '"' },
68
+ { open: "'", close: "'" },
69
+ { open: "{", close: "}" },
70
+ { open: "[", close: "]" },
71
+ { open: "(", close: ")" },
72
+ { open: "<", close: ">" }
73
+ ],
74
+ onEnterRules: [
75
+ {
76
+ beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
77
+ afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
78
+ action: {
79
+ indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
80
+ }
81
+ },
82
+ {
83
+ beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
84
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
85
+ }
86
+ ],
87
+ folding: {
88
+ markers: {
89
+ start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
90
+ end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
91
+ }
92
+ }
93
+ };
94
+ var language = {
95
+ defaultToken: "",
96
+ tokenPostfix: ".html",
97
+ ignoreCase: true,
98
+ tokenizer: {
99
+ root: [
100
+ [/<!DOCTYPE/, "metatag", "@doctype"],
101
+ [/<!--/, "comment", "@comment"],
102
+ [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
103
+ [/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
104
+ [/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
105
+ [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
106
+ [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
107
+ [/</, "delimiter"],
108
+ [/[^<]+/]
109
+ ],
110
+ doctype: [
111
+ [/[^>]+/, "metatag.content"],
112
+ [/>/, "metatag", "@pop"]
113
+ ],
114
+ comment: [
115
+ [/-->/, "comment", "@pop"],
116
+ [/[^-]+/, "comment.content"],
117
+ [/./, "comment.content"]
118
+ ],
119
+ otherTag: [
120
+ [/\/?>/, "delimiter", "@pop"],
121
+ [/"([^"]*)"/, "attribute.value"],
122
+ [/'([^']*)'/, "attribute.value"],
123
+ [/[\w\-]+/, "attribute.name"],
124
+ [/=/, "delimiter"],
125
+ [/[ \t\r\n]+/]
126
+ ],
127
+ script: [
128
+ [/type/, "attribute.name", "@scriptAfterType"],
129
+ [/"([^"]*)"/, "attribute.value"],
130
+ [/'([^']*)'/, "attribute.value"],
131
+ [/[\w\-]+/, "attribute.name"],
132
+ [/=/, "delimiter"],
133
+ [
134
+ />/,
135
+ {
136
+ token: "delimiter",
137
+ next: "@scriptEmbedded",
138
+ nextEmbedded: "text/javascript"
139
+ }
140
+ ],
141
+ [/[ \t\r\n]+/],
142
+ [/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
143
+ ],
144
+ scriptAfterType: [
145
+ [/=/, "delimiter", "@scriptAfterTypeEquals"],
146
+ [
147
+ />/,
148
+ {
149
+ token: "delimiter",
150
+ next: "@scriptEmbedded",
151
+ nextEmbedded: "text/javascript"
152
+ }
153
+ ],
154
+ [/[ \t\r\n]+/],
155
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
156
+ ],
157
+ scriptAfterTypeEquals: [
158
+ [
159
+ /"module"/,
160
+ {
161
+ token: "attribute.value",
162
+ switchTo: "@scriptWithCustomType.text/javascript"
163
+ }
164
+ ],
165
+ [
166
+ /'module'/,
167
+ {
168
+ token: "attribute.value",
169
+ switchTo: "@scriptWithCustomType.text/javascript"
170
+ }
171
+ ],
172
+ [
173
+ /"([^"]*)"/,
174
+ {
175
+ token: "attribute.value",
176
+ switchTo: "@scriptWithCustomType.$1"
177
+ }
178
+ ],
179
+ [
180
+ /'([^']*)'/,
181
+ {
182
+ token: "attribute.value",
183
+ switchTo: "@scriptWithCustomType.$1"
184
+ }
185
+ ],
186
+ [
187
+ />/,
188
+ {
189
+ token: "delimiter",
190
+ next: "@scriptEmbedded",
191
+ nextEmbedded: "text/javascript"
192
+ }
193
+ ],
194
+ [/[ \t\r\n]+/],
195
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
196
+ ],
197
+ scriptWithCustomType: [
198
+ [
199
+ />/,
200
+ {
201
+ token: "delimiter",
202
+ next: "@scriptEmbedded.$S2",
203
+ nextEmbedded: "$S2"
204
+ }
205
+ ],
206
+ [/"([^"]*)"/, "attribute.value"],
207
+ [/'([^']*)'/, "attribute.value"],
208
+ [/[\w\-]+/, "attribute.name"],
209
+ [/=/, "delimiter"],
210
+ [/[ \t\r\n]+/],
211
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
212
+ ],
213
+ scriptEmbedded: [
214
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
215
+ [/[^<]+/, ""]
216
+ ],
217
+ style: [
218
+ [/type/, "attribute.name", "@styleAfterType"],
219
+ [/"([^"]*)"/, "attribute.value"],
220
+ [/'([^']*)'/, "attribute.value"],
221
+ [/[\w\-]+/, "attribute.name"],
222
+ [/=/, "delimiter"],
223
+ [
224
+ />/,
225
+ {
226
+ token: "delimiter",
227
+ next: "@styleEmbedded",
228
+ nextEmbedded: "text/css"
229
+ }
230
+ ],
231
+ [/[ \t\r\n]+/],
232
+ [/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
233
+ ],
234
+ styleAfterType: [
235
+ [/=/, "delimiter", "@styleAfterTypeEquals"],
236
+ [
237
+ />/,
238
+ {
239
+ token: "delimiter",
240
+ next: "@styleEmbedded",
241
+ nextEmbedded: "text/css"
242
+ }
243
+ ],
244
+ [/[ \t\r\n]+/],
245
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
246
+ ],
247
+ styleAfterTypeEquals: [
248
+ [
249
+ /"([^"]*)"/,
250
+ {
251
+ token: "attribute.value",
252
+ switchTo: "@styleWithCustomType.$1"
253
+ }
254
+ ],
255
+ [
256
+ /'([^']*)'/,
257
+ {
258
+ token: "attribute.value",
259
+ switchTo: "@styleWithCustomType.$1"
260
+ }
261
+ ],
262
+ [
263
+ />/,
264
+ {
265
+ token: "delimiter",
266
+ next: "@styleEmbedded",
267
+ nextEmbedded: "text/css"
268
+ }
269
+ ],
270
+ [/[ \t\r\n]+/],
271
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
272
+ ],
273
+ styleWithCustomType: [
274
+ [
275
+ />/,
276
+ {
277
+ token: "delimiter",
278
+ next: "@styleEmbedded.$S2",
279
+ nextEmbedded: "$S2"
280
+ }
281
+ ],
282
+ [/"([^"]*)"/, "attribute.value"],
283
+ [/'([^']*)'/, "attribute.value"],
284
+ [/[\w\-]+/, "attribute.name"],
285
+ [/=/, "delimiter"],
286
+ [/[ \t\r\n]+/],
287
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
288
+ ],
289
+ styleEmbedded: [
290
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
291
+ [/[^<]+/, ""]
292
+ ]
293
+ }
294
+ };
295
+
296
+ export { conf, language };