@covalent/components 8.14.0 → 8.15.0-beta.1
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/abap-1354785f.mjs +1314 -0
- package/abap-c7187853.js +6 -0
- package/action-ribbon.js +1 -1
- package/action-ribbon.mjs +4 -3
- package/alert.js +1 -1
- package/alert.mjs +4 -3
- package/apex-279d4f27.mjs +315 -0
- package/apex-fc5f2b3e.js +6 -0
- package/app-shell.js +1 -1
- package/app-shell.mjs +8 -7
- package/assets/css.worker-1af1972f.js +84 -0
- package/assets/editor.worker-df55e1ff.js +8 -0
- package/assets/html.worker-38c267f1.js +456 -0
- package/assets/json.worker-bf861c27.js +39 -0
- package/assets/ts.worker-e151483b.js +33972 -0
- package/async-directive-4a34f75e.js +5 -0
- package/async-directive-99a01ec7.mjs +78 -0
- package/azcli-ba812c55.mjs +74 -0
- package/azcli-eb191d91.js +6 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -3
- package/bat-34d38df4.js +6 -0
- package/bat-4d77495d.mjs +95 -0
- package/bicep-7b240724.mjs +108 -0
- package/bicep-a8264e77.js +7 -0
- package/button.js +1 -1
- package/button.mjs +10 -9
- package/cameligo-5d2daeb8.mjs +168 -0
- package/cameligo-6e71c8f3.js +6 -0
- package/card.js +1 -1
- package/card.mjs +4 -3
- package/cell/cell.d.ts +58 -0
- package/cell/cell.d.ts.map +1 -0
- package/cell.js +25 -0
- package/cell.mjs +129 -0
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +8 -7
- package/checkbox.js +1 -1
- package/checkbox.mjs +16 -15
- package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
- package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
- package/chip-set.js +2 -2
- package/chip-set.mjs +46 -45
- package/chip.js +1 -1
- package/chip.mjs +5 -4
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +5 -4
- package/class-map-0a4c6ca9.js +5 -0
- package/class-map-6e504a9a.mjs +38 -0
- package/clojure-355adae1.js +6 -0
- package/clojure-b7ea12a3.mjs +754 -0
- package/code-editor/code-editor.d.ts +51 -0
- package/code-editor/code-editor.d.ts.map +1 -0
- package/code-editor-383a8fae.mjs +94274 -0
- package/code-editor-4cce5e5d.js +1200 -0
- package/code-editor.js +1 -0
- package/code-editor.mjs +10 -0
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +4 -3
- package/coffee-1a8cfbf4.mjs +228 -0
- package/coffee-fd8a7421.js +6 -0
- package/cpp-642b10c4.mjs +387 -0
- package/cpp-7eec3311.js +6 -0
- package/csharp-32862cd2.js +6 -0
- package/csharp-d987ddad.mjs +320 -0
- package/csp-54919de0.js +6 -0
- package/csp-96407af0.mjs +57 -0
- package/css-5dd354ac.mjs +186 -0
- package/css-9be95551.js +8 -0
- package/cssMode-821261c4.js +9 -0
- package/cssMode-9b89f9af.mjs +1450 -0
- package/cypher-11e5a4b6.mjs +262 -0
- package/cypher-cc849b67.js +6 -0
- package/dart-031264ea.js +6 -0
- package/dart-5d209f63.mjs +270 -0
- package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
- package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
- package/dialog.js +1 -1
- package/dialog.mjs +5 -4
- package/directive-1186bc23.js +5 -0
- package/directive-daf4e9b6.mjs +27 -0
- package/dockerfile-2f8684f7.js +6 -0
- package/dockerfile-8739cff7.mjs +132 -0
- package/drawer.js +1 -1
- package/drawer.mjs +5 -4
- package/ecl-68a6f20f.js +6 -0
- package/ecl-a20c5155.mjs +454 -0
- package/elixir-32cc668e.js +6 -0
- package/elixir-8b028584.mjs +467 -0
- package/flow9-0dea2e73.mjs +141 -0
- package/flow9-1d2ab5f6.js +6 -0
- package/formfield.js +3 -3
- package/formfield.mjs +4 -3
- package/freemarker2-4fc0d2e6.mjs +648 -0
- package/freemarker2-7095cbc4.js +8 -0
- package/fsharp-49a70fad.mjs +210 -0
- package/fsharp-a22f5013.js +6 -0
- package/go-46e3b371.mjs +208 -0
- package/go-cdd943fd.js +6 -0
- package/graphql-1a14eb34.js +6 -0
- package/graphql-51a577e5.mjs +141 -0
- package/handlebars-6a356ce9.js +6 -0
- package/handlebars-82c24f9d.mjs +396 -0
- package/hcl-0833427e.js +6 -0
- package/hcl-56b85754.mjs +177 -0
- package/html-a95df2b1.mjs +286 -0
- package/html-d9124a1e.js +6 -0
- package/htmlMode-3946317b.js +9 -0
- package/htmlMode-45fac07b.mjs +1460 -0
- package/icon-button-toggle/icon-button-toggle.d.ts +7 -0
- package/icon-button-toggle/icon-button-toggle.d.ts.map +1 -1
- package/icon-button-toggle.js +12 -12
- package/icon-button-toggle.mjs +57 -47
- package/icon-button.js +1 -1
- package/icon-button.mjs +6 -5
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -6
- package/icon-radio-toggle.js +3 -3
- package/icon-radio-toggle.mjs +7 -6
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +125 -117
- package/ini-1d58d82f.mjs +68 -0
- package/ini-34a929df.js +6 -0
- package/java-32d7b433.js +6 -0
- package/java-cd017f60.mjs +221 -0
- package/javascript-0226b3a0.mjs +80 -0
- package/javascript-ec698494.js +6 -0
- package/jsonMode-a8e45f39.js +11 -0
- package/jsonMode-bdcd2ed9.mjs +1871 -0
- package/julia-7db1fb9a.js +6 -0
- package/julia-a0caf483.mjs +496 -0
- package/kotlin-4b9019e1.js +6 -0
- package/kotlin-c6e52a56.mjs +245 -0
- package/less-5219eae1.js +7 -0
- package/less-718543b4.mjs +168 -0
- package/lexon-5e6e7a44.mjs +151 -0
- package/lexon-dfd683ab.js +6 -0
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +5 -4
- package/liquid-2dc745b6.mjs +243 -0
- package/liquid-b6e2effe.js +6 -0
- package/list-item.js +2 -2
- package/list-item.mjs +7 -6
- package/list.js +1 -1
- package/list.mjs +8 -7
- package/lua-b46719a9.js +6 -0
- package/lua-f159160b.mjs +157 -0
- package/m3-87473279.js +6 -0
- package/m3-aadaf771.mjs +210 -0
- package/markdown-9b448c46.mjs +202 -0
- package/markdown-eae8e3ba.js +6 -0
- package/menu.js +5 -5
- package/menu.mjs +9 -8
- package/mips-161e49ce.mjs +194 -0
- package/mips-82a1ce59.js +6 -0
- package/msdax-b3b5017e.js +6 -0
- package/msdax-f65cb1e6.mjs +377 -0
- package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
- package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
- package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
- package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
- package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
- package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
- package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
- package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
- package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
- package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
- package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
- package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
- package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
- package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
- package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
- package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
- package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
- package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
- package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
- package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
- package/mysql-24549dd1.mjs +875 -0
- package/mysql-69f1c589.js +6 -0
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +7 -6
- package/notebook/notebook.d.ts +49 -0
- package/notebook/notebook.d.ts.map +1 -0
- package/notebook.js +90 -0
- package/notebook.mjs +3307 -0
- package/objective-c-c8319b65.js +6 -0
- package/objective-c-e129a5ca.mjs +188 -0
- package/package.json +16 -1
- package/pascal-4ccdf5ce.mjs +245 -0
- package/pascal-e5207a08.js +6 -0
- package/pascaligo-8eb79945.js +6 -0
- package/pascaligo-a9603dcd.mjs +158 -0
- package/perl-ba1fb97a.mjs +599 -0
- package/perl-e8264c91.js +6 -0
- package/pgsql-89978310.mjs +843 -0
- package/pgsql-c8ba6faf.js +6 -0
- package/php-987b9d87.mjs +471 -0
- package/php-a6dcde52.js +6 -0
- package/pla-96c2695d.mjs +131 -0
- package/pla-c85b0e59.js +6 -0
- package/postiats-3c2c478e.js +6 -0
- package/postiats-7b52ebac.mjs +544 -0
- package/powerquery-8954ec26.mjs +890 -0
- package/powerquery-b0d5f9e4.js +6 -0
- package/powershell-cdb88123.js +6 -0
- package/powershell-f00d0274.mjs +233 -0
- package/protobuf-3eb85f80.mjs +422 -0
- package/protobuf-a3b2ca94.js +7 -0
- package/pug-6fab415a.mjs +393 -0
- package/pug-c5df821d.js +6 -0
- package/python-7770f129.mjs +264 -0
- package/python-c7862f06.js +6 -0
- package/qsharp-4792f872.mjs +282 -0
- package/qsharp-7eddb7b9.js +6 -0
- package/r-42c6f0aa.js +6 -0
- package/r-630f5d6b.mjs +245 -0
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +8 -7
- package/radio.js +2 -2
- package/radio.mjs +7 -6
- package/razor-3871ef20.mjs +517 -0
- package/razor-4a6a11b1.js +6 -0
- package/redis-0d0a89dd.js +6 -0
- package/redis-276b8288.mjs +298 -0
- package/redshift-520a7359.mjs +806 -0
- package/redshift-b6bdaeca.js +6 -0
- package/restructuredtext-4676a3fc.mjs +162 -0
- package/restructuredtext-c83d56ed.js +6 -0
- package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
- package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
- package/ruby-764137cd.mjs +444 -0
- package/ruby-96103dcf.js +6 -0
- package/rust-87887495.js +6 -0
- package/rust-97f8f6e1.mjs +337 -0
- package/sb-8c22f14c.mjs +110 -0
- package/sb-e2701210.js +6 -0
- package/scala-c68c650c.mjs +353 -0
- package/scala-e8b7bd42.js +6 -0
- package/scheme-b9cbf7cb.js +6 -0
- package/scheme-e6a52cb0.mjs +114 -0
- package/scss-45104c77.mjs +244 -0
- package/scss-d0f4f80e.js +8 -0
- package/select.js +1 -1
- package/select.mjs +10 -9
- package/shell-09452d42.mjs +224 -0
- package/shell-43cfbe7d.js +6 -0
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +3 -2
- package/slider-range.js +1 -1
- package/slider-range.mjs +7 -6
- package/slider.js +1 -1
- package/slider.mjs +12 -11
- package/snackbar.js +14 -18
- package/snackbar.mjs +88 -159
- package/solidity-d4979008.mjs +1351 -0
- package/solidity-f1319e8a.js +6 -0
- package/sophia-21995caf.mjs +190 -0
- package/sophia-a1ce907f.js +6 -0
- package/sparql-5088743c.mjs +193 -0
- package/sparql-98d9e092.js +6 -0
- package/sql-63ec8e76.mjs +818 -0
- package/sql-faf05577.js +6 -0
- package/st-122893c4.js +6 -0
- package/st-fa9ab362.mjs +414 -0
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -6
- package/status-header.js +1 -1
- package/status-header.mjs +4 -3
- package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
- package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
- package/style.css +1 -0
- package/swift-724ff2a3.js +8 -0
- package/swift-abdf1835.mjs +315 -0
- package/switch.js +1 -1
- package/switch.mjs +6 -5
- package/systemverilog-8139818b.js +6 -0
- package/systemverilog-a4f858ed.mjs +556 -0
- package/tab-bar.js +2 -2
- package/tab-bar.mjs +7 -6
- package/tab.js +1 -1
- package/tab.mjs +9 -8
- package/tcl-8adf937f.mjs +232 -0
- package/tcl-e49fed0b.js +6 -0
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +4 -3
- package/textarea.js +1 -1
- package/textarea.mjs +6 -5
- package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
- package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
- package/textfield.js +1 -1
- package/textfield.mjs +6 -5
- package/toolbar.js +1 -1
- package/toolbar.mjs +5 -4
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +5 -4
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +8 -7
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -3
- package/tsMode-426fdb34.mjs +794 -0
- package/tsMode-9087ec29.js +16 -0
- package/twig-404eb73e.mjs +323 -0
- package/twig-4bfb5b04.js +6 -0
- package/typescript-37d9bf54.mjs +332 -0
- package/typescript-eb2ab867.js +6 -0
- package/vb-8dfd000c.js +6 -0
- package/vb-e21e8153.mjs +364 -0
- package/xml-349a9a42.js +6 -0
- package/xml-9970ffe1.mjs +100 -0
- package/yaml-167e3d82.mjs +189 -0
- package/yaml-837b2090.js +6 -0
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,168 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var e = {
|
8
|
+
comments: {
|
9
|
+
lineComment: "//",
|
10
|
+
blockComment: ["(*", "*)"]
|
11
|
+
},
|
12
|
+
brackets: [
|
13
|
+
["{", "}"],
|
14
|
+
["[", "]"],
|
15
|
+
["(", ")"],
|
16
|
+
["<", ">"]
|
17
|
+
],
|
18
|
+
autoClosingPairs: [
|
19
|
+
{ open: "{", close: "}" },
|
20
|
+
{ open: "[", close: "]" },
|
21
|
+
{ open: "(", close: ")" },
|
22
|
+
{ open: "<", close: ">" },
|
23
|
+
{ open: "'", close: "'" },
|
24
|
+
{ open: '"', close: '"' },
|
25
|
+
{ open: "(*", close: "*)" }
|
26
|
+
],
|
27
|
+
surroundingPairs: [
|
28
|
+
{ open: "{", close: "}" },
|
29
|
+
{ open: "[", close: "]" },
|
30
|
+
{ open: "(", close: ")" },
|
31
|
+
{ open: "<", close: ">" },
|
32
|
+
{ open: "'", close: "'" },
|
33
|
+
{ open: '"', close: '"' },
|
34
|
+
{ open: "(*", close: "*)" }
|
35
|
+
]
|
36
|
+
}, o = {
|
37
|
+
defaultToken: "",
|
38
|
+
tokenPostfix: ".cameligo",
|
39
|
+
ignoreCase: !0,
|
40
|
+
brackets: [
|
41
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
42
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
43
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
44
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
45
|
+
],
|
46
|
+
keywords: [
|
47
|
+
"abs",
|
48
|
+
"assert",
|
49
|
+
"block",
|
50
|
+
"Bytes",
|
51
|
+
"case",
|
52
|
+
"Crypto",
|
53
|
+
"Current",
|
54
|
+
"else",
|
55
|
+
"failwith",
|
56
|
+
"false",
|
57
|
+
"for",
|
58
|
+
"fun",
|
59
|
+
"if",
|
60
|
+
"in",
|
61
|
+
"let",
|
62
|
+
"let%entry",
|
63
|
+
"let%init",
|
64
|
+
"List",
|
65
|
+
"list",
|
66
|
+
"Map",
|
67
|
+
"map",
|
68
|
+
"match",
|
69
|
+
"match%nat",
|
70
|
+
"mod",
|
71
|
+
"not",
|
72
|
+
"operation",
|
73
|
+
"Operation",
|
74
|
+
"of",
|
75
|
+
"record",
|
76
|
+
"Set",
|
77
|
+
"set",
|
78
|
+
"sender",
|
79
|
+
"skip",
|
80
|
+
"source",
|
81
|
+
"String",
|
82
|
+
"then",
|
83
|
+
"to",
|
84
|
+
"true",
|
85
|
+
"type",
|
86
|
+
"with"
|
87
|
+
],
|
88
|
+
typeKeywords: ["int", "unit", "string", "tz", "nat", "bool"],
|
89
|
+
operators: [
|
90
|
+
"=",
|
91
|
+
">",
|
92
|
+
"<",
|
93
|
+
"<=",
|
94
|
+
">=",
|
95
|
+
"<>",
|
96
|
+
":",
|
97
|
+
":=",
|
98
|
+
"and",
|
99
|
+
"mod",
|
100
|
+
"or",
|
101
|
+
"+",
|
102
|
+
"-",
|
103
|
+
"*",
|
104
|
+
"/",
|
105
|
+
"@",
|
106
|
+
"&",
|
107
|
+
"^",
|
108
|
+
"%",
|
109
|
+
"->",
|
110
|
+
"<-",
|
111
|
+
"&&",
|
112
|
+
"||"
|
113
|
+
],
|
114
|
+
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
115
|
+
tokenizer: {
|
116
|
+
root: [
|
117
|
+
[
|
118
|
+
/[a-zA-Z_][\w]*/,
|
119
|
+
{
|
120
|
+
cases: {
|
121
|
+
"@keywords": { token: "keyword.$0" },
|
122
|
+
"@default": "identifier"
|
123
|
+
}
|
124
|
+
}
|
125
|
+
],
|
126
|
+
{ include: "@whitespace" },
|
127
|
+
[/[{}()\[\]]/, "@brackets"],
|
128
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
129
|
+
[
|
130
|
+
/@symbols/,
|
131
|
+
{
|
132
|
+
cases: {
|
133
|
+
"@operators": "delimiter",
|
134
|
+
"@default": ""
|
135
|
+
}
|
136
|
+
}
|
137
|
+
],
|
138
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
139
|
+
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
140
|
+
[/\d+/, "number"],
|
141
|
+
[/[;,.]/, "delimiter"],
|
142
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
143
|
+
[/'/, "string", "@string"],
|
144
|
+
[/'[^\\']'/, "string"],
|
145
|
+
[/'/, "string.invalid"],
|
146
|
+
[/\#\d+/, "string"]
|
147
|
+
],
|
148
|
+
comment: [
|
149
|
+
[/[^\(\*]+/, "comment"],
|
150
|
+
[/\*\)/, "comment", "@pop"],
|
151
|
+
[/\(\*/, "comment"]
|
152
|
+
],
|
153
|
+
string: [
|
154
|
+
[/[^\\']+/, "string"],
|
155
|
+
[/\\./, "string.escape.invalid"],
|
156
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
157
|
+
],
|
158
|
+
whitespace: [
|
159
|
+
[/[ \t\r\n]+/, "white"],
|
160
|
+
[/\(\*/, "comment", "@comment"],
|
161
|
+
[/\/\/.*$/, "comment"]
|
162
|
+
]
|
163
|
+
}
|
164
|
+
};
|
165
|
+
export {
|
166
|
+
e as conf,
|
167
|
+
o as language
|
168
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},o={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};exports.conf=e;exports.language=o;
|
package/card.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),m=require("./class-map-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),m=require("./class-map-0a4c6ca9.js"),p=require("./property-57f6f6fe.js");require("./directive-1186bc23.js");var s=Object.defineProperty,_=Object.getOwnPropertyDescriptor,l=(t,e,c,a)=>{for(var r=a>1?void 0:a?_(e,c):e,d=t.length-1,o;d>=0;d--)(o=t[d])&&(r=(a?o(e,c,r):o(r))||r);return a&&r&&s(e,c,r),r};class n extends i.s{constructor(){super(...arguments),this.cardTitle="",this.subTitle="",this.actionBar=!1,this.interactive=!1,this.outlined=!1,this.fullHeight=!1}render(){const e={"mdc-card":!0,"mdc-card--outlined":this.outlined,"cv-height-full":this.fullHeight};return i.x` <div class="${m.o(e)}">
|
2
2
|
${this.cardTitle?i.x`
|
3
3
|
<div class="mdc-card__actions mdc-typography--headline5">
|
4
4
|
${this.cardTitle}
|
package/card.mjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { s, x as l, i as _, r as f, e as g } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import { o as u } from "./class-map-
|
2
|
+
import { o as u } from "./class-map-6e504a9a.mjs";
|
3
3
|
import { n } from "./property-9b6ea53b.mjs";
|
4
|
+
import "./directive-daf4e9b6.mjs";
|
4
5
|
var b = Object.defineProperty, h = Object.getOwnPropertyDescriptor, p = (o, i, a, e) => {
|
5
6
|
for (var r = e > 1 ? void 0 : e ? h(i, a) : i, t = o.length - 1, c; t >= 0; t--)
|
6
7
|
(c = o[t]) && (r = (e ? c(i, a, r) : c(r)) || r);
|
@@ -69,8 +70,8 @@ m.styles = [
|
|
69
70
|
m = w([
|
70
71
|
g("cv-card")
|
71
72
|
], m);
|
72
|
-
const
|
73
|
+
const j = m;
|
73
74
|
export {
|
74
75
|
m as CovalentCard,
|
75
|
-
|
76
|
+
j as default
|
76
77
|
};
|
package/cell/cell.d.ts
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
2
|
+
import '../code-editor/code-editor';
|
3
|
+
import '../icon-button/icon-button';
|
4
|
+
import '../typography/typography';
|
5
|
+
declare global {
|
6
|
+
interface HTMLElementTagNameMap {
|
7
|
+
'cv-cell': CovalentCell;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
export declare class CovalentCell extends LitElement {
|
11
|
+
/**
|
12
|
+
* The index of the cell in a notebook
|
13
|
+
*/
|
14
|
+
index?: number;
|
15
|
+
/**
|
16
|
+
* Code written in the cell
|
17
|
+
*/
|
18
|
+
code: string;
|
19
|
+
/**
|
20
|
+
* Language of the code
|
21
|
+
*/
|
22
|
+
language: string;
|
23
|
+
/**
|
24
|
+
* Whether the cell is selected
|
25
|
+
*/
|
26
|
+
selected: boolean;
|
27
|
+
/**
|
28
|
+
* Number of times the cell was exceuted
|
29
|
+
*/
|
30
|
+
timesExecuted: number;
|
31
|
+
/**
|
32
|
+
* Whether the editor is shown
|
33
|
+
*/
|
34
|
+
showEditor?: boolean | undefined;
|
35
|
+
_editorFocused: boolean;
|
36
|
+
editorOptions: {
|
37
|
+
minimap: {
|
38
|
+
enabled: boolean;
|
39
|
+
};
|
40
|
+
wordWrap: string;
|
41
|
+
fontSize: string;
|
42
|
+
glyphMargin: boolean;
|
43
|
+
folding: boolean;
|
44
|
+
lineNumbers: string;
|
45
|
+
lineDecorationsWidth: number;
|
46
|
+
lineNumbersMinChars: number;
|
47
|
+
renderLineHighlight: string;
|
48
|
+
};
|
49
|
+
static styles: import("lit").CSSResult[];
|
50
|
+
handleCodeChange(e: CustomEvent): void;
|
51
|
+
handleRun(): void;
|
52
|
+
setEditorFocus(setFocus: boolean): void;
|
53
|
+
protected updated(changedProperties: PropertyValues): void;
|
54
|
+
renderEditor(): import("lit-html").TemplateResult<1>;
|
55
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
56
|
+
}
|
57
|
+
export default CovalentCell;
|
58
|
+
//# sourceMappingURL=cell.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/cell/cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAIvE,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAElC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,YAAY,CAAC;KACzB;CACF;AAMD,qBACa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,QAAQ,SAAM;IAEd;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,aAAa,SAAK;IAElB;;OAEG;IAEH,UAAU,CAAC,sBAAQ;IAEnB,cAAc,UAAS;IAEvB,aAAa;;;;;;;;;;;;MAUX;IAEF,OAAgB,MAAM,4BAIpB;IAEF,gBAAgB,CAAC,CAAC,EAAE,WAAW;IAI/B,SAAS;IAUT,cAAc,CAAC,QAAQ,EAAE,OAAO;IAKhC,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAUnD,YAAY;IAqBZ,SAAS,CAAC,MAAM;CAwBjB;AAED,eAAe,YAAY,CAAC"}
|
package/cell.js
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./query-assigned-elements-f623705d.js"),l=require("./property-57f6f6fe.js"),a=require("./class-map-0a4c6ca9.js");require("./code-editor-4cce5e5d.js");require("./icon-button.js");require("./typography.js");require("./directive-1186bc23.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./tslib.es6-98719205.js");require("./ripple-handlers-9fb4a31a.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./style-map-a135c6ab.js");require("./aria-property-849c8816.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");const u=`:host{--mdc-icon-button-size: 24px;font-family:var(--mdc-typography-body1-font-family);height:100%;width:100%}.selection-indicator{background-color:var(--cv-theme-primary);border-radius:2px;margin-top:2px;visibility:hidden;width:8px}.timesExecuted{color:var(--cv-theme-outline-variant);min-height:var(--mdc-icon-button-size);min-width:var(--mdc-icon-button-size)}.cell{box-sizing:border-box;display:flex;justify-content:space-between}.cell:hover .selection-indicator,.cell.focused .selection-indicator,.cell.selected .selection-indicator{visibility:visible}.cell:hover .timesExecuted,.cell.focused .timesExecuted,.cell.selected .timesExecuted{color:var(--cv-theme-primary)}.cellWrapper{display:flex;flex-direction:column;width:95%}.cellCodeWrapper{align-items:flex-start;display:flex;justify-content:space-between}.cellCodeWrapper .editor-output-wrapper{width:calc(95% - 8px)}.output{margin:.5rem .25rem}
|
2
|
+
`;var p=Object.defineProperty,h=Object.getOwnPropertyDescriptor,s=(n,e,i,o)=>{for(var r=o>1?void 0:o?h(e,i):e,d=n.length-1,c;d>=0;d--)(c=n[d])&&(r=(o?c(e,i,r):c(r))||r);return o&&r&&p(e,i,r),r};exports.CovalentCell=class extends t.s{constructor(){super(...arguments),this.code="",this.language="",this.selected=!1,this.timesExecuted=0,this.showEditor=!0,this._editorFocused=!1,this.editorOptions={minimap:{enabled:!1},wordWrap:"on",fontSize:"14px",glyphMargin:!1,folding:!1,lineNumbers:"off",lineDecorationsWidth:0,lineNumbersMinChars:0,renderLineHighlight:"none"}}handleCodeChange(e){this.code=e.detail.code}handleRun(){this.dispatchEvent(new CustomEvent("cell-run-code",{detail:{index:this.index,code:this.code},bubbles:!0,composed:!0}))}setEditorFocus(e){this._editorFocused=e,this.requestUpdate()}updated(e){var i;if(e.has("code")||e.has("language")){const o=(i=this.shadowRoot)==null?void 0:i.querySelector("cv-code-editor");o&&(o.code=this.code,o.language=this.language)}}renderEditor(){const e=t.x`<cv-code-editor
|
3
|
+
@code-change="${this.handleCodeChange}"
|
4
|
+
@editor-focus="${()=>this.setEditorFocus(!0)}"
|
5
|
+
@editor-blur="${()=>this.setEditorFocus(!1)}"
|
6
|
+
.code="${this.code}"
|
7
|
+
.language="${this.language}"
|
8
|
+
.options="${this.editorOptions}"
|
9
|
+
></cv-code-editor>`,i=t.x`<cv-typography class="output" scale="body1">
|
10
|
+
<slot name="output"></slot>
|
11
|
+
</cv-typography>`;return t.x`${this.showEditor?e:""}${!this.showEditor&&this.language==="markdown"||this.language!=="markdown"?i:""}`}render(){const e={cell:!0,selected:this.selected,focused:this._editorFocused};return t.x`
|
12
|
+
<div class="${a.o(e)}">
|
13
|
+
<span class="selection-indicator"></span>
|
14
|
+
<div class="cellWrapper">
|
15
|
+
<div class="cellCodeWrapper">
|
16
|
+
<span class="timesExecuted">
|
17
|
+
${this.showEditor?t.x`[${this.timesExecuted===0?" ":this.timesExecuted}]:`:""}
|
18
|
+
</span>
|
19
|
+
<div class="editor-output-wrapper">${this.renderEditor()}</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
`}};exports.CovalentCell.styles=[t.i`
|
24
|
+
${t.r(u)}
|
25
|
+
`];s([l.n({type:Number})],exports.CovalentCell.prototype,"index",2);s([l.n({type:String})],exports.CovalentCell.prototype,"code",2);s([l.n({type:String})],exports.CovalentCell.prototype,"language",2);s([l.n({type:Boolean,reflect:!0})],exports.CovalentCell.prototype,"selected",2);s([l.n({type:Number})],exports.CovalentCell.prototype,"timesExecuted",2);s([l.n({type:Boolean,reflect:!0})],exports.CovalentCell.prototype,"showEditor",2);exports.CovalentCell=s([t.e("cv-cell")],exports.CovalentCell);const v=exports.CovalentCell;exports.default=v;
|
package/cell.mjs
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
import { i as p, r as u, s as h, x as c, e as m } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { n as d } from "./property-9b6ea53b.mjs";
|
3
|
+
import { o as v } from "./class-map-6e504a9a.mjs";
|
4
|
+
import "./code-editor-383a8fae.mjs";
|
5
|
+
import "./icon-button.mjs";
|
6
|
+
import "./typography.mjs";
|
7
|
+
import "./directive-daf4e9b6.mjs";
|
8
|
+
import "./async-directive-99a01ec7.mjs";
|
9
|
+
import "./directive-helpers-e3ea6592.mjs";
|
10
|
+
import "./tslib.es6-c4b0f3b1.mjs";
|
11
|
+
import "./ripple-handlers-8883e893.mjs";
|
12
|
+
import "./base-element-acf30176.mjs";
|
13
|
+
import "./utils-dc65fdc9.mjs";
|
14
|
+
import "./state-b5e865db.mjs";
|
15
|
+
import "./query-d843aa92.mjs";
|
16
|
+
import "./style-map-e7ec6d41.mjs";
|
17
|
+
import "./aria-property-fa2717fe.mjs";
|
18
|
+
import "./event-options-78d6cf94.mjs";
|
19
|
+
import "./if-defined-c367f208.mjs";
|
20
|
+
const f = `:host{--mdc-icon-button-size: 24px;font-family:var(--mdc-typography-body1-font-family);height:100%;width:100%}.selection-indicator{background-color:var(--cv-theme-primary);border-radius:2px;margin-top:2px;visibility:hidden;width:8px}.timesExecuted{color:var(--cv-theme-outline-variant);min-height:var(--mdc-icon-button-size);min-width:var(--mdc-icon-button-size)}.cell{box-sizing:border-box;display:flex;justify-content:space-between}.cell:hover .selection-indicator,.cell.focused .selection-indicator,.cell.selected .selection-indicator{visibility:visible}.cell:hover .timesExecuted,.cell.focused .timesExecuted,.cell.selected .timesExecuted{color:var(--cv-theme-primary)}.cellWrapper{display:flex;flex-direction:column;width:95%}.cellCodeWrapper{align-items:flex-start;display:flex;justify-content:space-between}.cellCodeWrapper .editor-output-wrapper{width:calc(95% - 8px)}.output{margin:.5rem .25rem}
|
21
|
+
`;
|
22
|
+
var g = Object.defineProperty, y = Object.getOwnPropertyDescriptor, s = (e, o, i, l) => {
|
23
|
+
for (var r = l > 1 ? void 0 : l ? y(o, i) : o, a = e.length - 1, n; a >= 0; a--)
|
24
|
+
(n = e[a]) && (r = (l ? n(o, i, r) : n(r)) || r);
|
25
|
+
return l && r && g(o, i, r), r;
|
26
|
+
};
|
27
|
+
let t = class extends h {
|
28
|
+
constructor() {
|
29
|
+
super(...arguments), this.code = "", this.language = "", this.selected = !1, this.timesExecuted = 0, this.showEditor = !0, this._editorFocused = !1, this.editorOptions = {
|
30
|
+
minimap: { enabled: !1 },
|
31
|
+
// Disable minimap to save space
|
32
|
+
wordWrap: "on",
|
33
|
+
// Enable word wrap to avoid horizontal scroll
|
34
|
+
fontSize: "14px",
|
35
|
+
glyphMargin: !1,
|
36
|
+
folding: !1,
|
37
|
+
lineNumbers: "off",
|
38
|
+
lineDecorationsWidth: 0,
|
39
|
+
lineNumbersMinChars: 0,
|
40
|
+
renderLineHighlight: "none"
|
41
|
+
};
|
42
|
+
}
|
43
|
+
handleCodeChange(e) {
|
44
|
+
this.code = e.detail.code;
|
45
|
+
}
|
46
|
+
handleRun() {
|
47
|
+
this.dispatchEvent(
|
48
|
+
new CustomEvent("cell-run-code", {
|
49
|
+
detail: { index: this.index, code: this.code },
|
50
|
+
bubbles: !0,
|
51
|
+
composed: !0
|
52
|
+
})
|
53
|
+
);
|
54
|
+
}
|
55
|
+
setEditorFocus(e) {
|
56
|
+
this._editorFocused = e, this.requestUpdate();
|
57
|
+
}
|
58
|
+
updated(e) {
|
59
|
+
var o;
|
60
|
+
if (e.has("code") || e.has("language")) {
|
61
|
+
const i = (o = this.shadowRoot) == null ? void 0 : o.querySelector("cv-code-editor");
|
62
|
+
i && (i.code = this.code, i.language = this.language);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
renderEditor() {
|
66
|
+
const e = c`<cv-code-editor
|
67
|
+
@code-change="${this.handleCodeChange}"
|
68
|
+
@editor-focus="${() => this.setEditorFocus(!0)}"
|
69
|
+
@editor-blur="${() => this.setEditorFocus(!1)}"
|
70
|
+
.code="${this.code}"
|
71
|
+
.language="${this.language}"
|
72
|
+
.options="${this.editorOptions}"
|
73
|
+
></cv-code-editor>`, o = c`<cv-typography class="output" scale="body1">
|
74
|
+
<slot name="output"></slot>
|
75
|
+
</cv-typography>`;
|
76
|
+
return c`${this.showEditor ? e : ""}${!this.showEditor && this.language === "markdown" || this.language !== "markdown" ? o : ""}`;
|
77
|
+
}
|
78
|
+
render() {
|
79
|
+
const e = {
|
80
|
+
cell: !0,
|
81
|
+
selected: this.selected,
|
82
|
+
focused: this._editorFocused
|
83
|
+
};
|
84
|
+
return c`
|
85
|
+
<div class="${v(e)}">
|
86
|
+
<span class="selection-indicator"></span>
|
87
|
+
<div class="cellWrapper">
|
88
|
+
<div class="cellCodeWrapper">
|
89
|
+
<span class="timesExecuted">
|
90
|
+
${this.showEditor ? c`[${this.timesExecuted === 0 ? " " : this.timesExecuted}]:` : ""}
|
91
|
+
</span>
|
92
|
+
<div class="editor-output-wrapper">${this.renderEditor()}</div>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
`;
|
97
|
+
}
|
98
|
+
};
|
99
|
+
t.styles = [
|
100
|
+
p`
|
101
|
+
${u(f)}
|
102
|
+
`
|
103
|
+
];
|
104
|
+
s([
|
105
|
+
d({ type: Number })
|
106
|
+
], t.prototype, "index", 2);
|
107
|
+
s([
|
108
|
+
d({ type: String })
|
109
|
+
], t.prototype, "code", 2);
|
110
|
+
s([
|
111
|
+
d({ type: String })
|
112
|
+
], t.prototype, "language", 2);
|
113
|
+
s([
|
114
|
+
d({ type: Boolean, reflect: !0 })
|
115
|
+
], t.prototype, "selected", 2);
|
116
|
+
s([
|
117
|
+
d({ type: Number })
|
118
|
+
], t.prototype, "timesExecuted", 2);
|
119
|
+
s([
|
120
|
+
d({ type: Boolean, reflect: !0 })
|
121
|
+
], t.prototype, "showEditor", 2);
|
122
|
+
t = s([
|
123
|
+
m("cv-cell")
|
124
|
+
], t);
|
125
|
+
const R = t;
|
126
|
+
export {
|
127
|
+
t as CovalentCell,
|
128
|
+
R as default
|
129
|
+
};
|
package/check-list-item.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./tslib.es6-98719205.js"),r=require("./query-assigned-elements-f623705d.js"),x=require("./mwc-checkbox-base-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./tslib.es6-98719205.js"),r=require("./query-assigned-elements-f623705d.js"),x=require("./mwc-checkbox-base-935d9566.js"),b=require("./property-57f6f6fe.js"),s=require("./query-680f1868.js"),l=require("./class-map-0a4c6ca9.js"),p=require("./mwc-list-item-base-06d93e6e.js"),k=require("./list-item-e336fb0e.js");require("./ripple-handlers-9fb4a31a.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./style-map-a135c6ab.js");require("./directive-1186bc23.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./observer-a096ab43.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
package/check-list-item.mjs
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
import { _ as a } from "./tslib.es6-c4b0f3b1.mjs";
|
2
2
|
import { i as b, e as s, x as k, r as l } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
-
import { C as _ } from "./mwc-checkbox-base-
|
3
|
+
import { C as _ } from "./mwc-checkbox-base-02b4eb91.mjs";
|
4
4
|
import { n as x } from "./property-9b6ea53b.mjs";
|
5
5
|
import { i as p } from "./query-d843aa92.mjs";
|
6
|
-
import { o as u } from "./class-map-
|
7
|
-
import { L as g } from "./mwc-list-item-base-
|
6
|
+
import { o as u } from "./class-map-6e504a9a.mjs";
|
7
|
+
import { L as g } from "./mwc-list-item-base-3c6a3bfb.mjs";
|
8
8
|
import { s as f, a as v, c as y } from "./list-item-e628f363.mjs";
|
9
|
-
import "./ripple-handlers-
|
9
|
+
import "./ripple-handlers-8883e893.mjs";
|
10
10
|
import "./base-element-acf30176.mjs";
|
11
11
|
import "./utils-dc65fdc9.mjs";
|
12
12
|
import "./state-b5e865db.mjs";
|
13
|
-
import "./style-map-
|
13
|
+
import "./style-map-e7ec6d41.mjs";
|
14
|
+
import "./directive-daf4e9b6.mjs";
|
14
15
|
import "./aria-property-fa2717fe.mjs";
|
15
16
|
import "./form-element-abadd335.mjs";
|
16
17
|
import "./event-options-78d6cf94.mjs";
|
@@ -97,8 +98,8 @@ n.styles = [
|
|
97
98
|
n = F([
|
98
99
|
s("cv-check-list-item")
|
99
100
|
], n);
|
100
|
-
const
|
101
|
+
const N = n;
|
101
102
|
export {
|
102
103
|
n as CovalentCheckListItem,
|
103
|
-
|
104
|
+
N as default
|
104
105
|
};
|
package/checkbox.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),n=require("./mwc-checkbox-base-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),n=require("./mwc-checkbox-base-935d9566.js"),l=require("./mwc-checkbox.css-b3434429.js");require("./tslib.es6-98719205.js");require("./ripple-handlers-9fb4a31a.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./style-map-a135c6ab.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");const a=`:host{--mdc-checkbox-checked-color: var(--mdc-theme-primary);--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);--mdc-checkbox-ink-color: var(--mdc-theme-on-primary);--mdc-checkbox-unchecked-color: var(--mdc-theme-text-icon-on-background)}
|
2
2
|
`;var b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d=(o,r,t,c)=>{for(var e=c>1?void 0:c?h(r,t):r,s=o.length-1,u;s>=0;s--)(u=o[s])&&(e=(c?u(r,t,e):u(e))||e);return c&&e&&b(r,t,e),e};exports.CovalentCheckbox=class extends n.CheckboxBase{};exports.CovalentCheckbox.styles=[l.styles,i.i`${i.r(a)}`];exports.CovalentCheckbox=d([i.e("cv-checkbox")],exports.CovalentCheckbox);const v=exports.CovalentCheckbox;exports.default=v;
|
package/checkbox.mjs
CHANGED
@@ -1,34 +1,35 @@
|
|
1
1
|
import { i as s, r as a, e as l } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import { C as d } from "./mwc-checkbox-base-
|
2
|
+
import { C as d } from "./mwc-checkbox-base-02b4eb91.mjs";
|
3
3
|
import { s as h } from "./mwc-checkbox.css-8f4f1a9b.mjs";
|
4
4
|
import "./tslib.es6-c4b0f3b1.mjs";
|
5
|
-
import "./ripple-handlers-
|
5
|
+
import "./ripple-handlers-8883e893.mjs";
|
6
6
|
import "./base-element-acf30176.mjs";
|
7
7
|
import "./utils-dc65fdc9.mjs";
|
8
8
|
import "./property-9b6ea53b.mjs";
|
9
9
|
import "./state-b5e865db.mjs";
|
10
10
|
import "./query-d843aa92.mjs";
|
11
|
-
import "./class-map-
|
12
|
-
import "./
|
11
|
+
import "./class-map-6e504a9a.mjs";
|
12
|
+
import "./directive-daf4e9b6.mjs";
|
13
|
+
import "./style-map-e7ec6d41.mjs";
|
13
14
|
import "./aria-property-fa2717fe.mjs";
|
14
15
|
import "./form-element-abadd335.mjs";
|
15
16
|
import "./event-options-78d6cf94.mjs";
|
16
17
|
import "./if-defined-c367f208.mjs";
|
17
18
|
const n = `:host{--mdc-checkbox-checked-color: var(--mdc-theme-primary);--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);--mdc-checkbox-ink-color: var(--mdc-theme-on-primary);--mdc-checkbox-unchecked-color: var(--mdc-theme-text-icon-on-background)}
|
18
19
|
`;
|
19
|
-
var b = Object.defineProperty, v = Object.getOwnPropertyDescriptor, x = (i,
|
20
|
-
for (var o =
|
21
|
-
(p = i[m]) && (o = (
|
22
|
-
return
|
20
|
+
var b = Object.defineProperty, v = Object.getOwnPropertyDescriptor, x = (i, r, c, e) => {
|
21
|
+
for (var o = e > 1 ? void 0 : e ? v(r, c) : r, m = i.length - 1, p; m >= 0; m--)
|
22
|
+
(p = i[m]) && (o = (e ? p(r, c, o) : p(o)) || o);
|
23
|
+
return e && o && b(r, c, o), o;
|
23
24
|
};
|
24
|
-
let
|
25
|
+
let t = class extends d {
|
25
26
|
};
|
26
|
-
|
27
|
-
|
27
|
+
t.styles = [h, s`${a(n)}`];
|
28
|
+
t = x([
|
28
29
|
l("cv-checkbox")
|
29
|
-
],
|
30
|
-
const
|
30
|
+
], t);
|
31
|
+
const E = t;
|
31
32
|
export {
|
32
|
-
|
33
|
-
|
33
|
+
t as CovalentCheckbox,
|
34
|
+
E as default
|
34
35
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var kt=Object.defineProperty;var Bt=(e,i,t)=>i in e?kt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var p=(e,i,t)=>(Bt(e,typeof i!="symbol"?i+"":i,t),t);const b=require("./query-assigned-elements-f623705d.js"),jt=require("./utils-a8190a39.js"),s=require("./tslib.es6-98719205.js"),v=require("./keyboard-39125691.js"),$=require("./foundation-e830bd94.js"),R=require("./property-57f6f6fe.js"),Gt=require("./query-680f1868.js"),Kt=require("./class-map-
|
1
|
+
"use strict";var kt=Object.defineProperty;var Bt=(e,i,t)=>i in e?kt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var p=(e,i,t)=>(Bt(e,typeof i!="symbol"?i+"":i,t),t);const b=require("./query-assigned-elements-f623705d.js"),jt=require("./utils-a8190a39.js"),s=require("./tslib.es6-98719205.js"),v=require("./keyboard-39125691.js"),$=require("./foundation-e830bd94.js"),R=require("./property-57f6f6fe.js"),Gt=require("./query-680f1868.js"),Kt=require("./class-map-0a4c6ca9.js"),f=require("./_commonjsHelpers-2367a3a2.js");var w={};/**
|
2
2
|
* @license
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
4
4
|
*/const A={};function $t(e){if(e!==A)throw new Error("Bad secret")}/**
|
@@ -8,7 +8,7 @@ import { A as ne, K as _, n as re, i as oe } from "./keyboard-983b121c.mjs";
|
|
8
8
|
import { M as Q } from "./foundation-2334d146.mjs";
|
9
9
|
import { n as L } from "./property-9b6ea53b.mjs";
|
10
10
|
import { i as ae } from "./query-d843aa92.mjs";
|
11
|
-
import { o as ce } from "./class-map-
|
11
|
+
import { o as ce } from "./class-map-6e504a9a.mjs";
|
12
12
|
import { a as m } from "./_commonjsHelpers-2f131a27.mjs";
|
13
13
|
var T = {};
|
14
14
|
/**
|
package/chip-set.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-f623705d.js"),c=require("./chip-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-f623705d.js"),c=require("./chip-c65a4549.js"),d=require("./tslib.es6-98719205.js"),S=require("./foundation-e830bd94.js"),C=require("./keyboard-39125691.js"),E=require("./property-57f6f6fe.js"),N=require("./query-680f1868.js");require("./utils-a8190a39.js");require("./class-map-0a4c6ca9.js");require("./directive-1186bc23.js");require("./_commonjsHelpers-2367a3a2.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -73,4 +73,4 @@
|
|
73
73
|
</span>`}async updated(i){super.updated(i),await this.updateComplete,this.activeIndex!=this._previousActiveIndex&&this.mdcFoundation.setChipSelected(this.activeIndex,c.MDCChipActionType.PRIMARY,!0)}firstUpdated(i){var r;super.firstUpdated(i);const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),t=(e==null?void 0:e.assignedElements().filter(n=>n instanceof c.CovalentChip))??[];for(let n=0;n<t.length;n++){const o=t[n];this.chips.push(o)}this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new R(this.createAdapter()),this.mdcFoundation.init()}connectedCallback(){super.connectedCallback(),this.addEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.addEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.addEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.removeEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.removeEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}createAdapter(){return{announceMessage:D,emitEvent:(i,e)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:e})),getAttribute:i=>this.mdcRoot.getAttribute(i),getChipActionsAtIndex:i=>this.chips[i].getActions(),getChipCount:()=>this.chips.length,getChipIdAtIndex:i=>this.chips[i].getElementID(),getChipIndexById:i=>this.chips.findIndex(e=>e.getElementID()===i),isChipFocusableAtIndex:(i,e)=>this.chips[i].isActionFocusable(e),isChipSelectableAtIndex:(i,e)=>this.chips[i].isActionSelectable(e),isChipSelectedAtIndex:(i,e)=>this.chips[i].isActionSelected(e),removeChipAtIndex:i=>this.chips[i].remove(),setChipFocusAtIndex:(i,e,t)=>this.chips[i].setActionFocus(e,t),setChipSelectedAtIndex:(i,e,t)=>this.chips[i].setActionSelected(e,t),startChipAnimationAtIndex:(i,e)=>this.chips[i].startAnimation(e)}}_handleChipAnimation(i){this.mdcFoundation.handleChipAnimation(i)}_handleChipInteraction(i){this.mdcFoundation.handleChipInteraction(i)}_handleChipNavigation(i){this.mdcFoundation.handleChipNavigation(i)}}g([N.i(".mdc-evolution-chip-set")],A.prototype,"mdcRoot",2);g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable",2);g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi",2);g([E.n()],A.prototype,"label",2);g([E.n({type:Number})],A.prototype,"activeIndex",2);const _=`.mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}
|
74
74
|
`;var w=Object.defineProperty,B=Object.getOwnPropertyDescriptor,P=(a,i,e,t)=>{for(var r=t>1?void 0:t?B(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=(t?o(i,e,r):o(r))||r);return t&&r&&w(i,e,r),r};exports.CovalentChipSet=class extends A{};exports.CovalentChipSet.styles=[I.i`
|
75
75
|
${I.r(_)}
|
76
|
-
`];exports.CovalentChipSet=P([I.e("cv-chip-set")],exports.CovalentChipSet);const
|
76
|
+
`];exports.CovalentChipSet=P([I.e("cv-chip-set")],exports.CovalentChipSet);const q=exports.CovalentChipSet;exports.default=q;
|