@covalent/components 9.0.0-beta.4 → 9.0.0

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 (40) hide show
  1. package/app-shell.js +1 -1
  2. package/app-shell.mjs +1 -1
  3. package/code-editor-Bshyfjyn.mjs +77079 -0
  4. package/code-editor-CSH3MdBF.js +718 -0
  5. package/code-editor.js +1 -1
  6. package/code-editor.mjs +1 -1
  7. package/{css-Bn4le2Sp.js → css-BbTDMrKE.js} +1 -1
  8. package/{css-DjwjINlv.mjs → css-CLWUu9O1.mjs} +8 -1
  9. package/{html-BMgGKfr0.js → html-DUGRoHaj.js} +2 -2
  10. package/{html-BFM6gjw5.mjs → html-DrhRpsz9.mjs} +37 -4
  11. package/icon-check-toggle.js +4 -4
  12. package/icon-check-toggle.mjs +1 -1
  13. package/icon-lockup/icon-lockup.d.ts +64 -0
  14. package/icon-lockup/icon-lockup.d.ts.map +1 -0
  15. package/icon-lockup.js +14 -0
  16. package/icon-lockup.mjs +99 -0
  17. package/index.d.ts +1 -0
  18. package/index.d.ts.map +1 -1
  19. package/index.js +1 -1
  20. package/index.mjs +69 -67
  21. package/{javascript-20JK5_5Y.js → javascript-54eqLOAw.js} +3 -3
  22. package/{javascript-BVQ0GGQP.mjs → javascript-DKtDcqDi.mjs} +4 -2
  23. package/{markdown-bAu8rWEZ.mjs → markdown-BKScSdMX.mjs} +34 -1
  24. package/{markdown-CrnizovQ.js → markdown-DldjjLzq.js} +1 -1
  25. package/notebook-cell.js +1 -1
  26. package/notebook-cell.mjs +1 -1
  27. package/package.json +6 -1
  28. package/{python-BRZC-1dQ.mjs → python-CEXbOLXn.mjs} +59 -11
  29. package/python-CzGtlN7c.js +6 -0
  30. package/{r-rF4J5dF2.mjs → r-BTwZKg_d.mjs} +5 -1
  31. package/{r-DKABafMl.js → r-DAAK96v0.js} +1 -1
  32. package/{sql-CL8qgBkR.mjs → sql-1GwNodTS.mjs} +42 -1
  33. package/{sql-CXm05EUD.js → sql-BMnYdyBG.js} +1 -1
  34. package/style.css +1 -1
  35. package/typescript-D_zVB3gH.js +6 -0
  36. package/{typescript-qqbekFoQ.mjs → typescript-DotYReBq.mjs} +25 -3
  37. package/code-editor-CxQzms2S.mjs +0 -62429
  38. package/code-editor-hT6MTCL6.js +0 -660
  39. package/python-B8sEpp0H.js +0 -6
  40. package/typescript-CqVUCaiQ.js +0 -6
@@ -1,7 +1,7 @@
1
- import { m as s } from "./code-editor-CxQzms2S.mjs";
1
+ import { m as s } from "./code-editor-Bshyfjyn.mjs";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
5
5
  * Released under the MIT license
6
6
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
7
7
  *-----------------------------------------------------------------------------*/
@@ -25,6 +25,7 @@ var x = {
25
25
  ],
26
26
  onEnterRules: [
27
27
  {
28
+ // e.g. /** | */
28
29
  beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
29
30
  afterText: /^\s*\*\/$/,
30
31
  action: {
@@ -33,6 +34,7 @@ var x = {
33
34
  }
34
35
  },
35
36
  {
37
+ // e.g. /** ...|
36
38
  beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
37
39
  action: {
38
40
  indentAction: r.languages.IndentAction.None,
@@ -40,6 +42,7 @@ var x = {
40
42
  }
41
43
  },
42
44
  {
45
+ // e.g. * ...|
43
46
  beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
44
47
  action: {
45
48
  indentAction: r.languages.IndentAction.None,
@@ -47,6 +50,7 @@ var x = {
47
50
  }
48
51
  },
49
52
  {
53
+ // e.g. */|
50
54
  beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
51
55
  action: {
52
56
  indentAction: r.languages.IndentAction.None,
@@ -70,9 +74,12 @@ var x = {
70
74
  }
71
75
  }
72
76
  }, b = {
77
+ // Set defaultToken to invalid to see what you do not tokenize yet
73
78
  defaultToken: "invalid",
74
79
  tokenPostfix: ".ts",
75
80
  keywords: [
81
+ // Should match the keys of textToKeywordObj in
82
+ // https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts
76
83
  "abstract",
77
84
  "any",
78
85
  "as",
@@ -128,6 +135,7 @@ var x = {
128
135
  "require",
129
136
  "global",
130
137
  "return",
138
+ "satisfies",
131
139
  "set",
132
140
  "static",
133
141
  "string",
@@ -197,6 +205,7 @@ var x = {
197
205
  "^=",
198
206
  "@"
199
207
  ],
208
+ // we include these common regular expressions
200
209
  symbols: /[=><!~?:&|+\-*\/\^%]+/,
201
210
  escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
202
211
  digits: /\d+(_+\d+)*/,
@@ -205,11 +214,13 @@ var x = {
205
214
  hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
206
215
  regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
207
216
  regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
217
+ // The main tokenizer for our languages
208
218
  tokenizer: {
209
219
  root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
210
220
  common: [
221
+ // identifiers and keywords
211
222
  [
212
- /[a-z_$][\w$]*/,
223
+ /#?[a-z_$][\w$]*/,
213
224
  {
214
225
  cases: {
215
226
  "@keywords": "keyword",
@@ -218,11 +229,16 @@ var x = {
218
229
  }
219
230
  ],
220
231
  [/[A-Z][\w\$]*/, "type.identifier"],
232
+ // to show class names nicely
233
+ // [/[A-Z][\w\$]*/, 'identifier'],
234
+ // whitespace
221
235
  { include: "@whitespace" },
236
+ // regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
222
237
  [
223
238
  /\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
224
239
  { token: "regexp", bracket: "@open", next: "@regexp" }
225
240
  ],
241
+ // delimiters and operators
226
242
  [/[()\[\]]/, "@brackets"],
227
243
  [/[<>](?!@symbols)/, "@brackets"],
228
244
  [/!(?=([^=]|$))/, "delimiter"],
@@ -235,15 +251,20 @@ var x = {
235
251
  }
236
252
  }
237
253
  ],
254
+ // numbers
238
255
  [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
239
256
  [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
240
257
  [/0[xX](@hexdigits)n?/, "number.hex"],
241
258
  [/0[oO]?(@octaldigits)n?/, "number.octal"],
242
259
  [/0[bB](@binarydigits)n?/, "number.binary"],
243
260
  [/(@digits)n?/, "number"],
261
+ // delimiter: after number because of .\d floats
244
262
  [/[;,.]/, "delimiter"],
263
+ // strings
245
264
  [/"([^"\\]|\\.)*$/, "string.invalid"],
265
+ // non-teminated string
246
266
  [/'([^'\\]|\\.)*$/, "string.invalid"],
267
+ // non-teminated string
247
268
  [/"/, "string", "@string_double"],
248
269
  [/'/, "string", "@string_single"],
249
270
  [/`/, "string", "@string_backtick"]
@@ -264,6 +285,7 @@ var x = {
264
285
  [/\*\//, "comment.doc", "@pop"],
265
286
  [/[\/*]/, "comment.doc"]
266
287
  ],
288
+ // We match regular expression quite precisely
267
289
  regexp: [
268
290
  [
269
291
  /(\{)(\d+(?:,\d*)?)(\})/,