@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.
- package/app-shell.js +1 -1
- package/app-shell.mjs +1 -1
- package/code-editor-Bshyfjyn.mjs +77079 -0
- package/code-editor-CSH3MdBF.js +718 -0
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/{css-Bn4le2Sp.js → css-BbTDMrKE.js} +1 -1
- package/{css-DjwjINlv.mjs → css-CLWUu9O1.mjs} +8 -1
- package/{html-BMgGKfr0.js → html-DUGRoHaj.js} +2 -2
- package/{html-BFM6gjw5.mjs → html-DrhRpsz9.mjs} +37 -4
- package/icon-check-toggle.js +4 -4
- package/icon-check-toggle.mjs +1 -1
- package/icon-lockup/icon-lockup.d.ts +64 -0
- package/icon-lockup/icon-lockup.d.ts.map +1 -0
- package/icon-lockup.js +14 -0
- package/icon-lockup.mjs +99 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +69 -67
- package/{javascript-20JK5_5Y.js → javascript-54eqLOAw.js} +3 -3
- package/{javascript-BVQ0GGQP.mjs → javascript-DKtDcqDi.mjs} +4 -2
- package/{markdown-bAu8rWEZ.mjs → markdown-BKScSdMX.mjs} +34 -1
- package/{markdown-CrnizovQ.js → markdown-DldjjLzq.js} +1 -1
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +1 -1
- package/package.json +6 -1
- package/{python-BRZC-1dQ.mjs → python-CEXbOLXn.mjs} +59 -11
- package/python-CzGtlN7c.js +6 -0
- package/{r-rF4J5dF2.mjs → r-BTwZKg_d.mjs} +5 -1
- package/{r-DKABafMl.js → r-DAAK96v0.js} +1 -1
- package/{sql-CL8qgBkR.mjs → sql-1GwNodTS.mjs} +42 -1
- package/{sql-CXm05EUD.js → sql-BMnYdyBG.js} +1 -1
- package/style.css +1 -1
- package/typescript-D_zVB3gH.js +6 -0
- package/{typescript-qqbekFoQ.mjs → typescript-DotYReBq.mjs} +25 -3
- package/code-editor-CxQzms2S.mjs +0 -62429
- package/code-editor-hT6MTCL6.js +0 -660
- package/python-B8sEpp0H.js +0 -6
- package/typescript-CqVUCaiQ.js +0 -6
package/index.mjs
CHANGED
@@ -5,12 +5,12 @@ import { CovalentBadge as C } from "./badge.mjs";
|
|
5
5
|
import { CovalentButton as x } from "./button.mjs";
|
6
6
|
import { CovalentCard as v } from "./card.mjs";
|
7
7
|
import { CovalentCheckbox as s } from "./checkbox.mjs";
|
8
|
-
import { CovalentCheckListItem as
|
8
|
+
import { CovalentCheckListItem as d } from "./check-list-item.mjs";
|
9
9
|
import { C as T } from "./chip-C8L37ovG.mjs";
|
10
10
|
import { CovalentChipSet as I } from "./chip-set.mjs";
|
11
|
-
import { CovalentCircularProgress as
|
12
|
-
import { C as b } from "./code-editor-
|
13
|
-
import { CovalentCodeSnippet as
|
11
|
+
import { CovalentCircularProgress as L } from "./circular-progress.mjs";
|
12
|
+
import { C as b } from "./code-editor-Bshyfjyn.mjs";
|
13
|
+
import { CovalentCodeSnippet as B } from "./code-snippet.mjs";
|
14
14
|
import { C as R } from "./dialog-BoNH4r3n.mjs";
|
15
15
|
import { CovalentDrawer as P } from "./drawer.mjs";
|
16
16
|
import { CovalentEmptyState as E } from "./empty-state.mjs";
|
@@ -23,36 +23,37 @@ import { CovalentIcon as O } from "./icon.mjs";
|
|
23
23
|
import { CovalentIconButton as U } from "./icon-button.mjs";
|
24
24
|
import { CovalentIconButtonToggle as W } from "./icon-button-toggle.mjs";
|
25
25
|
import { CovalentIconCheckToggle as Y } from "./icon-check-toggle.mjs";
|
26
|
-
import {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
32
|
-
import {
|
33
|
-
import {
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
import {
|
45
|
-
import {
|
46
|
-
import {
|
47
|
-
import {
|
48
|
-
import {
|
49
|
-
import {
|
50
|
-
import {
|
51
|
-
import {
|
52
|
-
import {
|
53
|
-
import {
|
54
|
-
import {
|
55
|
-
import {
|
26
|
+
import { CovalentIconLockup as _ } from "./icon-lockup.mjs";
|
27
|
+
import { CovalentIconRadioToggle as oo } from "./icon-radio-toggle.mjs";
|
28
|
+
import { CovalentLinearProgress as to } from "./linear-progress.mjs";
|
29
|
+
import { CovalentList as ao } from "./list.mjs";
|
30
|
+
import { CovalentListItem as no } from "./list-item.mjs";
|
31
|
+
import { CovalentMenu as Co } from "./menu.mjs";
|
32
|
+
import { CovalentNavRailListItem as xo } from "./nav-list-item.mjs";
|
33
|
+
import { CovalentNotebookCell as vo } from "./notebook-cell.mjs";
|
34
|
+
import { CovalentRadio as so } from "./radio.mjs";
|
35
|
+
import { CovalentRadioListItem as go } from "./radio-list-item.mjs";
|
36
|
+
import { CovalentSelect as So } from "./select.mjs";
|
37
|
+
import { CovalentSideSheet as uo } from "./side-sheet.mjs";
|
38
|
+
import { CovalentSlider as ho } from "./slider.mjs";
|
39
|
+
import { CovalentSliderRange as ko } from "./slider-range.mjs";
|
40
|
+
import { CovalentSnackbar as Ao } from "./snackbar.mjs";
|
41
|
+
import { CovalentStatusDialog as Fo } from "./status-dialog.mjs";
|
42
|
+
import { CovalentStatusHeader as Do } from "./status-header.mjs";
|
43
|
+
import { CovalentStatusHeaderItem as yo } from "./status-header-item.mjs";
|
44
|
+
import { CovalentSwitch as Ho } from "./switch.mjs";
|
45
|
+
import { CovalentTab as Mo } from "./tab.mjs";
|
46
|
+
import { CovalentTabBar as qo } from "./tab-bar.mjs";
|
47
|
+
import { CovalentTextArea as Go } from "./textarea.mjs";
|
48
|
+
import { CovalentTextField as Ko } from "./textfield.mjs";
|
49
|
+
import { CovalentTextLockup as Qo } from "./text-lockup.mjs";
|
50
|
+
import { CovalentToolbar as Vo } from "./toolbar.mjs";
|
51
|
+
import { CovalentTooltip as Xo } from "./tooltip.mjs";
|
52
|
+
import { CovalentTopAppBar as Zo } from "./top-app-bar.mjs";
|
53
|
+
import { CovalentTopAppBarFixed as $o } from "./top-app-bar-fixed.mjs";
|
54
|
+
import { CovalentTreeList as ee } from "./tree-list.mjs";
|
55
|
+
import { CovalentTreeListItem as re } from "./tree-list-item.mjs";
|
56
|
+
import { CovalentTypography as le } from "./typography.mjs";
|
56
57
|
export {
|
57
58
|
t as CovalentActionRibbon,
|
58
59
|
a as CovalentAlert,
|
@@ -60,13 +61,13 @@ export {
|
|
60
61
|
C as CovalentBadge,
|
61
62
|
x as CovalentButton,
|
62
63
|
v as CovalentCard,
|
63
|
-
|
64
|
+
d as CovalentCheckListItem,
|
64
65
|
s as CovalentCheckbox,
|
65
66
|
T as CovalentChip,
|
66
67
|
I as CovalentChipSet,
|
67
|
-
|
68
|
+
L as CovalentCircularProgress,
|
68
69
|
b as CovalentCodeEditor,
|
69
|
-
|
70
|
+
B as CovalentCodeSnippet,
|
70
71
|
R as CovalentDialog,
|
71
72
|
P as CovalentDrawer,
|
72
73
|
E as CovalentEmptyState,
|
@@ -79,34 +80,35 @@ export {
|
|
79
80
|
U as CovalentIconButton,
|
80
81
|
W as CovalentIconButtonToggle,
|
81
82
|
Y as CovalentIconCheckToggle,
|
82
|
-
_ as
|
83
|
-
oo as
|
84
|
-
to as
|
85
|
-
ao as
|
86
|
-
no as
|
87
|
-
Co as
|
88
|
-
xo as
|
89
|
-
vo as
|
90
|
-
so as
|
91
|
-
go as
|
92
|
-
So as
|
93
|
-
uo as
|
94
|
-
|
95
|
-
|
96
|
-
Ao as
|
97
|
-
Fo as
|
98
|
-
Do as
|
99
|
-
yo as
|
100
|
-
Ho as
|
101
|
-
Mo as
|
102
|
-
qo as
|
103
|
-
Go as
|
104
|
-
Ko as
|
105
|
-
Qo as
|
106
|
-
Vo as
|
107
|
-
Xo as
|
108
|
-
Zo as
|
109
|
-
$o as
|
110
|
-
ee as
|
111
|
-
re as
|
83
|
+
_ as CovalentIconLockup,
|
84
|
+
oo as CovalentIconRadioToggle,
|
85
|
+
to as CovalentLinearProgress,
|
86
|
+
ao as CovalentList,
|
87
|
+
no as CovalentListItem,
|
88
|
+
Co as CovalentMenu,
|
89
|
+
xo as CovalentNavRailListItem,
|
90
|
+
vo as CovalentNotebookCell,
|
91
|
+
so as CovalentRadio,
|
92
|
+
go as CovalentRadioListItem,
|
93
|
+
So as CovalentSelect,
|
94
|
+
uo as CovalentSideSheet,
|
95
|
+
ho as CovalentSlider,
|
96
|
+
ko as CovalentSliderRange,
|
97
|
+
Ao as CovalentSnackbar,
|
98
|
+
Fo as CovalentStatusDialog,
|
99
|
+
Do as CovalentStatusHeader,
|
100
|
+
yo as CovalentStatusHeaderItem,
|
101
|
+
Ho as CovalentSwitch,
|
102
|
+
Mo as CovalentTab,
|
103
|
+
qo as CovalentTabBar,
|
104
|
+
Go as CovalentTextArea,
|
105
|
+
Ko as CovalentTextField,
|
106
|
+
Qo as CovalentTextLockup,
|
107
|
+
Vo as CovalentToolbar,
|
108
|
+
Xo as CovalentTooltip,
|
109
|
+
Zo as CovalentTopAppBar,
|
110
|
+
$o as CovalentTopAppBarFixed,
|
111
|
+
ee as CovalentTreeList,
|
112
|
+
re as CovalentTreeListItem,
|
113
|
+
le as CovalentTypography
|
112
114
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./typescript-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./typescript-D_zVB3gH.js");/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
4
|
* Released under the MIT license
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/var t=e.conf,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.language.operators,symbols:e.language.symbols,escapes:e.language.escapes,digits:e.language.digits,octaldigits:e.language.octaldigits,binarydigits:e.language.binarydigits,hexdigits:e.language.hexdigits,regexpctl:e.language.regexpctl,regexpesc:e.language.regexpesc,tokenizer:e.language.tokenizer};exports.conf=t;exports.language=a;
|
6
|
+
*-----------------------------------------------------------------------------*/var t=e.conf,a={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.language.operators,symbols:e.language.symbols,escapes:e.language.escapes,digits:e.language.digits,octaldigits:e.language.octaldigits,binarydigits:e.language.binarydigits,hexdigits:e.language.hexdigits,regexpctl:e.language.regexpctl,regexpesc:e.language.regexpesc,tokenizer:e.language.tokenizer};exports.conf=t;exports.language=a;
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
1
|
+
import { conf as t, language as e } from "./typescript-DotYReBq.mjs";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
* Version: 0.
|
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
|
*-----------------------------------------------------------------------------*/
|
8
8
|
var i = t, o = {
|
9
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
9
10
|
defaultToken: "invalid",
|
10
11
|
tokenPostfix: ".js",
|
11
12
|
keywords: [
|
@@ -38,6 +39,7 @@ var i = t, o = {
|
|
38
39
|
"null",
|
39
40
|
"return",
|
40
41
|
"set",
|
42
|
+
"static",
|
41
43
|
"super",
|
42
44
|
"switch",
|
43
45
|
"symbol",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
4
|
* Released under the MIT license
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
6
|
*-----------------------------------------------------------------------------*/
|
@@ -33,10 +33,13 @@ var e = {
|
|
33
33
|
}, t = {
|
34
34
|
defaultToken: "",
|
35
35
|
tokenPostfix: ".md",
|
36
|
+
// escape codes
|
36
37
|
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
37
38
|
noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
|
38
39
|
escapes: /\\(?:@control)/,
|
40
|
+
// escape codes for javascript/CSS strings
|
39
41
|
jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
42
|
+
// non matched elements
|
40
43
|
empty: [
|
41
44
|
"area",
|
42
45
|
"base",
|
@@ -54,37 +57,55 @@ var e = {
|
|
54
57
|
],
|
55
58
|
tokenizer: {
|
56
59
|
root: [
|
60
|
+
// markdown tables
|
57
61
|
[/^\s*\|/, "@rematch", "@table_header"],
|
62
|
+
// headers (with #)
|
58
63
|
[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]],
|
64
|
+
// headers (with =)
|
59
65
|
[/^\s*(=+|\-+)\s*$/, "keyword"],
|
66
|
+
// headers (with ***)
|
60
67
|
[/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
|
68
|
+
// quote
|
61
69
|
[/^\s*>+/, "comment"],
|
70
|
+
// list (starting with * or number)
|
62
71
|
[/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
|
72
|
+
// code block (4 spaces indent)
|
63
73
|
[/^(\t|[ ]{4})[^ ].*$/, "string"],
|
74
|
+
// code block (3 tilde)
|
64
75
|
[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: "string", next: "@codeblock" }],
|
76
|
+
// github style code blocks (with backticks and language)
|
65
77
|
[
|
66
78
|
/^\s*```\s*((?:\w|[\/\-#])+).*$/,
|
67
79
|
{ token: "string", next: "@codeblockgh", nextEmbedded: "$1" }
|
68
80
|
],
|
81
|
+
// github style code blocks (with backticks but no language)
|
69
82
|
[/^\s*```\s*$/, { token: "string", next: "@codeblock" }],
|
83
|
+
// markup within lines
|
70
84
|
{ include: "@linecontent" }
|
71
85
|
],
|
72
86
|
table_header: [
|
73
87
|
{ include: "@table_common" },
|
74
88
|
[/[^\|]+/, "keyword.table.header"]
|
89
|
+
// table header
|
75
90
|
],
|
76
91
|
table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
|
77
92
|
table_common: [
|
78
93
|
[/\s*[\-:]+\s*/, { token: "keyword", switchTo: "table_body" }],
|
94
|
+
// header-divider
|
79
95
|
[/^\s*\|/, "keyword.table.left"],
|
96
|
+
// opening |
|
80
97
|
[/^\s*[^\|]/, "@rematch", "@pop"],
|
98
|
+
// exiting
|
81
99
|
[/^\s*$/, "@rematch", "@pop"],
|
100
|
+
// exiting
|
82
101
|
[
|
83
102
|
/\|/,
|
84
103
|
{
|
85
104
|
cases: {
|
86
105
|
"@eos": "keyword.table.right",
|
106
|
+
// closing |
|
87
107
|
"@default": "keyword.table.middle"
|
108
|
+
// inner |
|
88
109
|
}
|
89
110
|
}
|
90
111
|
]
|
@@ -94,24 +115,35 @@ var e = {
|
|
94
115
|
[/^\s*```\s*$/, { token: "string", next: "@pop" }],
|
95
116
|
[/.*$/, "variable.source"]
|
96
117
|
],
|
118
|
+
// github style code blocks
|
97
119
|
codeblockgh: [
|
98
120
|
[/```\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
99
121
|
[/[^`]+/, "variable.source"]
|
100
122
|
],
|
101
123
|
linecontent: [
|
124
|
+
// escapes
|
102
125
|
[/&\w+;/, "string.escape"],
|
103
126
|
[/@escapes/, "escape"],
|
127
|
+
// various markup
|
104
128
|
[/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
|
105
129
|
[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
|
106
130
|
[/\b_[^_]+_\b/, "emphasis"],
|
107
131
|
[/\*([^\\*]|@escapes)+\*/, "emphasis"],
|
108
132
|
[/`([^\\`]|@escapes)+`/, "variable"],
|
133
|
+
// links
|
109
134
|
[/\{+[^}]+\}+/, "string.target"],
|
110
135
|
[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]],
|
111
136
|
[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
|
137
|
+
// or html
|
112
138
|
{ include: "html" }
|
113
139
|
],
|
140
|
+
// Note: it is tempting to rather switch to the real HTML mode instead of building our own here
|
141
|
+
// but currently there is a limitation in Monarch that prevents us from doing it: The opening
|
142
|
+
// '<' would start the HTML mode, however there is no way to jump 1 character back to let the
|
143
|
+
// HTML mode also tokenize the opening angle bracket. Thus, even though we could jump to HTML,
|
144
|
+
// we cannot correctly tokenize it in that mode yet.
|
114
145
|
html: [
|
146
|
+
// html tags
|
115
147
|
[/<(\w+)\/>/, "tag"],
|
116
148
|
[
|
117
149
|
/<(\w+)(\-|\w)*/,
|
@@ -131,6 +163,7 @@ var e = {
|
|
131
163
|
[/<!--/, "comment.content.invalid"],
|
132
164
|
[/[<\-]/, "comment.content"]
|
133
165
|
],
|
166
|
+
// Almost full HTML tag matching, complete with embedded scripts & styles
|
134
167
|
tag: [
|
135
168
|
[/[ \t\r\n]+/, "white"],
|
136
169
|
[
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
4
|
* Released under the MIT license
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
6
|
*-----------------------------------------------------------------------------*/var e={comments:{blockComment:["<!--","-->"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},t={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}};exports.conf=e;exports.language=t;
|
package/notebook-cell.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./query-assigned-elements-4CafVNR8.js"),r=require("./property-DYTC_2-m.js"),v=require("./state-C3HoXfoa.js"),p=require("./class-map-C8G1ALWK.js"),g=require("./code-editor-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./query-assigned-elements-4CafVNR8.js"),r=require("./property-DYTC_2-m.js"),v=require("./state-C3HoXfoa.js"),p=require("./class-map-C8G1ALWK.js"),g=require("./code-editor-CSH3MdBF.js");require("./code-snippet.js");require("./icon-button.js");require("./typography.js");const b=":host{--mdc-icon-button-size: 2rem;font-family:var(--mdc-typography-body1-font-family);width:100%}cv-code-snippet{background-color:var(--cv-theme-surface);border-radius:0;box-sizing:border-box}cv-code-snippet::part(code){font-size:var(--mdc-typography-body2-font-size);line-height:var(--mdc-typography-body2-line-height);padding:0;white-space:pre-wrap}cv-code-editor{margin-top:-1px}.selectionIndicator{background-color:var(--cv-theme-primary);border-radius:2px;height:100%;visibility:hidden}.selectionIndicatorWrapper{min-width:8px}.selectionIndicatorWrapper:hover .selectionIndicator{visibility:visible}.status{padding:0 1px;position:relative}.loading{top:2.5px}.timesExecuted{--cv-icon-button-cursor: grab;align-items:center;box-sizing:border-box;color:var(--cv-theme-on-surface-38);display:flex;font-family:var(--cv-typography-subtitle2-font-family);font-size:var(--cv-typography-subtitle2-font-size);gap:.5rem;height:56px;line-height:var(--cv-typography-headline6-line-height)}.timesExecuted .executionCount{padding-right:1rem;overflow:hidden;text-align:right;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap;width:52px}.timesExecuted .dragHandle{color:var(--cv-theme-on-surface-variant);cursor:grab;padding-left:.5rem;transition:visibility .3s ease;visibility:hidden}.timesExecuted .dragHandle:active{--cv-icon-button-cursor: grabbing}.timesExecutedWrapper{cursor:grab}.timesExecutedWrapper:active{cursor:grabbing}.timesExecutedWrapper:hover .dragHandle{visibility:visible}.cell{box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;position:relative;transition:background-color .2s ease;-webkit-user-select:auto;user-select:auto}.cell.focused .selectionIndicator,.cell.selected .selectionIndicator{visibility:visible}.cell:hover{background-color:var(--cv-theme-secondary-4)}.cell:hover .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-38)}.cell:active{background-color:var(--cv-theme-secondary-12)}.cell:active .selectionIndicator{visibility:visible;background-color:var(--cv-theme-on-secondary-container-74)}.cellWrapper{display:flex;flex-direction:column;width:100%}.cellOutputWrapper{display:flex;flex-direction:column;max-width:calc(100% - 130px);flex:1}.contextMenu{background-color:var(--cv-theme-surface-canvas);border-radius:8px;box-shadow:0 8px 12px 6px #00000026,0 4px 4px #0000004d;display:flex;flex-direction:column;position:fixed;visibility:hidden;z-index:1000}.contextMenuContent{border-radius:4px;flex-grow:1;max-height:100%;overflow:auto}.contextMenu.open{visibility:visible}.editorContainer{box-sizing:border-box;background-color:var(--cv-theme-surface);border:1px solid var(--cv-theme-outline-variant);border-radius:var(--cv-editor-border-radius, 4px);min-height:56px;overflow:hidden;padding:1rem}.errors,.output{max-width:100%;width:100%}";var x=Object.defineProperty,m=Object.getOwnPropertyDescriptor,s=(c,e,t,i)=>{for(var o=i>1?void 0:i?m(e,t):e,l=c.length-1,a;l>=0;l--)(a=c[l])&&(o=(i?a(e,t,o):a(o))||o);return i&&o&&x(e,t,o),o};exports.CovalentNotebookCell=class extends n.s{constructor(){super(),this.code="",this.language="",this.loading=!1,this.selected=!1,this.timesExecuted=0,this.hideEditor=!1,this.hideCount=!1,this.editorTheme="",this._editorFocused=!1,this._isMenuOpen=!1,this._menuMaxHeight="auto",this._menuPosition={top:0,left:0},this.editorOptions={minimap:{enabled:!1},wordWrap:"on",fontSize:"14px",glyphMargin:!1,folding:!1,lineHeight:20,lineNumbers:"off",lineDecorationsWidth:0,lineNumbersMinChars:0,renderIndentGuides:!1,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"}},this.closeContextMenu=this.closeContextMenu.bind(this),this.showContextMenu=this.showContextMenu.bind(this)}closeContextMenu(){this._isMenuOpen=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.closeContextMenu)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.closeContextMenu)}handleCodeChange(e){this.code=e.detail.code}setEditorFocus(e,t){e.stopImmediatePropagation(),this._editorFocused=t,this.requestUpdate()}setEditorInstance(e){e.stopImmediatePropagation(),this._editor=e.detail.editor,this._editor.onKeyDown(t=>{t.shiftKey&&t.keyCode===g.KeyCode.Enter&&t.preventDefault()})}showContextMenu(e){var u;e.preventDefault();const t=document.querySelectorAll("cv-notebook-cell");t==null||t.forEach(h=>{h.closeContextMenu()});const i=(u=this.shadowRoot)==null?void 0:u.querySelector(".contextMenu"),o=i==null?void 0:i.offsetHeight,a=window.innerHeight-e.clientY,d=e.clientY;a>=o?(this._menuPosition={top:e.clientY,left:e.clientX},this._menuMaxHeight=`${a}px`):d>=o?(this._menuPosition={top:e.clientY-o,left:e.clientX},this._menuMaxHeight=`${o}px`):(this._menuPosition={top:e.clientY-d,left:e.clientX},this._menuMaxHeight=`${d}px`),this._isMenuOpen=!0}updated(e){var i,o;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("cv-code-editor");if(e.has("code")||e.has("language"))if(t)t.code=this.code,t.language=this.language;else{const l=(o=this.shadowRoot)==null?void 0:o.querySelector("cv-code-snippet");l&&!this.selected&&l.highlight()}super.updated(e)}getEditorBgColor(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editorContainer");return e?window.getComputedStyle(e).getPropertyValue("background-color"):""}renderEditor(){const e=this.selected?n.x`<cv-code-editor
|
2
2
|
@code-change="${this.handleCodeChange}"
|
3
3
|
@editor-ready="${this.setEditorInstance}"
|
4
4
|
@editor-focus="${t=>this.setEditorFocus(t,!0)}"
|
package/notebook-cell.mjs
CHANGED
@@ -2,7 +2,7 @@ import { s as v, x as c, i as g, r as m, e as x } from "./query-assigned-element
|
|
2
2
|
import { n as d } from "./property-DJzm_oB9.mjs";
|
3
3
|
import { t as f } from "./state-DaD9o2aK.mjs";
|
4
4
|
import { o as p } from "./class-map-C1SJpero.mjs";
|
5
|
-
import { K as b } from "./code-editor-
|
5
|
+
import { K as b } from "./code-editor-Bshyfjyn.mjs";
|
6
6
|
import "./code-snippet.mjs";
|
7
7
|
import "./icon-button.mjs";
|
8
8
|
import "./typography.mjs";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/components",
|
3
|
-
"version": "9.0.0
|
3
|
+
"version": "9.0.0",
|
4
4
|
"description": "a catalog of material components for covalent",
|
5
5
|
"main": "./index.js",
|
6
6
|
"module": "./index.mjs",
|
@@ -141,6 +141,11 @@
|
|
141
141
|
"import": "./icon-check-toggle.mjs",
|
142
142
|
"require": "./icon-check-toggle.js"
|
143
143
|
},
|
144
|
+
"./icon-lockup": {
|
145
|
+
"types": "./icon-lockup/icon-lockup.d.ts",
|
146
|
+
"import": "./icon-lockup.mjs",
|
147
|
+
"require": "./icon-lockup.js"
|
148
|
+
},
|
144
149
|
"./icon-radio-toggle": {
|
145
150
|
"types": "./icon-radio/icon-radio-toggle.d.ts",
|
146
151
|
"import": "./icon-radio-toggle.mjs",
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import { m as
|
1
|
+
import { m as o } from "./code-editor-Bshyfjyn.mjs";
|
2
2
|
/*!-----------------------------------------------------------------------------
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
* Version: 0.
|
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
|
*-----------------------------------------------------------------------------*/
|
8
|
-
var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor,
|
8
|
+
var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, g = (t, e, n, s) => {
|
9
9
|
if (e && typeof e == "object" || typeof e == "function")
|
10
|
-
for (let r of
|
11
|
-
!
|
10
|
+
for (let r of p(e))
|
11
|
+
!c.call(t, r) && r !== n && a(t, r, { get: () => e[r], enumerable: !(s = l(e, r)) || s.enumerable });
|
12
12
|
return t;
|
13
|
-
},
|
14
|
-
|
13
|
+
}, d = (t, e, n) => (g(t, e, "default"), n), i = {};
|
14
|
+
d(i, o);
|
15
15
|
var m = {
|
16
16
|
comments: {
|
17
17
|
lineComment: "#",
|
@@ -38,8 +38,10 @@ var m = {
|
|
38
38
|
],
|
39
39
|
onEnterRules: [
|
40
40
|
{
|
41
|
-
beforeText: new RegExp(
|
42
|
-
|
41
|
+
beforeText: new RegExp(
|
42
|
+
"^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"
|
43
|
+
),
|
44
|
+
action: { indentAction: i.languages.IndentAction.Indent }
|
43
45
|
}
|
44
46
|
],
|
45
47
|
folding: {
|
@@ -49,21 +51,33 @@ var m = {
|
|
49
51
|
end: new RegExp("^\\s*#endregion\\b")
|
50
52
|
}
|
51
53
|
}
|
52
|
-
},
|
54
|
+
}, f = {
|
53
55
|
defaultToken: "",
|
54
56
|
tokenPostfix: ".python",
|
55
57
|
keywords: [
|
58
|
+
// This section is the result of running
|
59
|
+
// `import keyword; for k in sorted(keyword.kwlist + keyword.softkwlist): print(" '" + k + "',")`
|
60
|
+
// in a Python REPL,
|
61
|
+
// though note that the output from Python 3 is not a strict superset of the
|
62
|
+
// output from Python 2.
|
56
63
|
"False",
|
64
|
+
// promoted to keyword.kwlist in Python 3
|
57
65
|
"None",
|
66
|
+
// promoted to keyword.kwlist in Python 3
|
58
67
|
"True",
|
68
|
+
// promoted to keyword.kwlist in Python 3
|
59
69
|
"_",
|
70
|
+
// new in Python 3.10
|
60
71
|
"and",
|
61
72
|
"as",
|
62
73
|
"assert",
|
63
74
|
"async",
|
75
|
+
// new in Python 3
|
64
76
|
"await",
|
77
|
+
// new in Python 3
|
65
78
|
"break",
|
66
79
|
"case",
|
80
|
+
// new in Python 3.10
|
67
81
|
"class",
|
68
82
|
"continue",
|
69
83
|
"def",
|
@@ -72,6 +86,7 @@ var m = {
|
|
72
86
|
"else",
|
73
87
|
"except",
|
74
88
|
"exec",
|
89
|
+
// Python 2, but not 3.
|
75
90
|
"finally",
|
76
91
|
"for",
|
77
92
|
"from",
|
@@ -82,14 +97,19 @@ var m = {
|
|
82
97
|
"is",
|
83
98
|
"lambda",
|
84
99
|
"match",
|
100
|
+
// new in Python 3.10
|
85
101
|
"nonlocal",
|
102
|
+
// new in Python 3
|
86
103
|
"not",
|
87
104
|
"or",
|
88
105
|
"pass",
|
89
106
|
"print",
|
107
|
+
// Python 2, but not 3.
|
90
108
|
"raise",
|
91
109
|
"return",
|
92
110
|
"try",
|
111
|
+
"type",
|
112
|
+
// new in Python 3.12
|
93
113
|
"while",
|
94
114
|
"with",
|
95
115
|
"yield",
|
@@ -209,6 +229,7 @@ var m = {
|
|
209
229
|
}
|
210
230
|
]
|
211
231
|
],
|
232
|
+
// Deal with white space, including single and multi-line comments
|
212
233
|
whitespace: [
|
213
234
|
[/\s+/, "white"],
|
214
235
|
[/(^#.*$)/, "comment"],
|
@@ -227,16 +248,28 @@ var m = {
|
|
227
248
|
[/"""/, "string", "@popall"],
|
228
249
|
[/"/, "string"]
|
229
250
|
],
|
251
|
+
// Recognize hex, negatives, decimals, imaginaries, longs, and scientific notation
|
230
252
|
numbers: [
|
231
253
|
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
|
232
254
|
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
|
233
255
|
],
|
256
|
+
// Recognize strings, including those broken across lines with \ (but not without)
|
234
257
|
strings: [
|
235
258
|
[/'$/, "string.escape", "@popall"],
|
259
|
+
[/f'{1,3}/, "string.escape", "@fStringBody"],
|
236
260
|
[/'/, "string.escape", "@stringBody"],
|
237
261
|
[/"$/, "string.escape", "@popall"],
|
262
|
+
[/f"{1,3}/, "string.escape", "@fDblStringBody"],
|
238
263
|
[/"/, "string.escape", "@dblStringBody"]
|
239
264
|
],
|
265
|
+
fStringBody: [
|
266
|
+
[/[^\\'\{\}]+$/, "string", "@popall"],
|
267
|
+
[/[^\\'\{\}]+/, "string"],
|
268
|
+
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
269
|
+
[/\\./, "string"],
|
270
|
+
[/'/, "string.escape", "@popall"],
|
271
|
+
[/\\$/, "string"]
|
272
|
+
],
|
240
273
|
stringBody: [
|
241
274
|
[/[^\\']+$/, "string", "@popall"],
|
242
275
|
[/[^\\']+/, "string"],
|
@@ -244,16 +277,31 @@ var m = {
|
|
244
277
|
[/'/, "string.escape", "@popall"],
|
245
278
|
[/\\$/, "string"]
|
246
279
|
],
|
280
|
+
fDblStringBody: [
|
281
|
+
[/[^\\"\{\}]+$/, "string", "@popall"],
|
282
|
+
[/[^\\"\{\}]+/, "string"],
|
283
|
+
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
284
|
+
[/\\./, "string"],
|
285
|
+
[/"/, "string.escape", "@popall"],
|
286
|
+
[/\\$/, "string"]
|
287
|
+
],
|
247
288
|
dblStringBody: [
|
248
289
|
[/[^\\"]+$/, "string", "@popall"],
|
249
290
|
[/[^\\"]+/, "string"],
|
250
291
|
[/\\./, "string"],
|
251
292
|
[/"/, "string.escape", "@popall"],
|
252
293
|
[/\\$/, "string"]
|
294
|
+
],
|
295
|
+
fStringDetail: [
|
296
|
+
[/[:][^}]+/, "string"],
|
297
|
+
[/[!][ars]/, "string"],
|
298
|
+
// only !a, !r, !s are supported by f-strings: https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
|
299
|
+
[/=/, "string"],
|
300
|
+
[/\}/, "identifier", "@pop"]
|
253
301
|
]
|
254
302
|
}
|
255
303
|
};
|
256
304
|
export {
|
257
305
|
m as conf,
|
258
|
-
|
306
|
+
f as language
|
259
307
|
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./code-editor-CSH3MdBF.js");/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,g=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(s=l(e,r))||s.enumerable});return t},d=(t,e,n)=>(g(t,e,"default"),n),i={};d(i,o.monaco_editor_core_star);var _={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};exports.conf=_;exports.language=f;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
4
|
* Released under the MIT license
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
6
|
*-----------------------------------------------------------------------------*/
|
@@ -169,6 +169,7 @@ var e = {
|
|
169
169
|
}
|
170
170
|
]
|
171
171
|
],
|
172
|
+
// Recognize Roxygen comments
|
172
173
|
roxygen: [
|
173
174
|
[
|
174
175
|
/@\w+/,
|
@@ -191,10 +192,12 @@ var e = {
|
|
191
192
|
],
|
192
193
|
[/.*/, { token: "comment.doc", next: "@pop" }]
|
193
194
|
],
|
195
|
+
// Recognize positives, negatives, decimals, imaginaries, and scientific notation
|
194
196
|
numbers: [
|
195
197
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
196
198
|
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
|
197
199
|
],
|
200
|
+
// Recognize operators
|
198
201
|
operators: [
|
199
202
|
[/<{1,2}-/, "operator"],
|
200
203
|
[/->{1,2}/, "operator"],
|
@@ -207,6 +210,7 @@ var e = {
|
|
207
210
|
[/>>/, "operator"],
|
208
211
|
[/[-+=&|!<>^~*/:$]/, "operator"]
|
209
212
|
],
|
213
|
+
// Recognize strings, including those broken across lines
|
210
214
|
strings: [
|
211
215
|
[/'/, "string.escape", "@stringBody"],
|
212
216
|
[/"/, "string.escape", "@dblStringBody"]
|