@covalent/components 8.18.1 → 8.19.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/action-ribbon.js +1 -1
- package/action-ribbon.mjs +4 -3
- package/alert.js +1 -1
- package/alert.mjs +4 -3
- package/app-shell.js +3 -3
- package/app-shell.mjs +9 -8
- package/async-directive-4a34f75e.js +5 -0
- package/async-directive-99a01ec7.mjs +78 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -3
- package/button.js +1 -1
- package/button.mjs +10 -9
- package/card.js +1 -1
- package/card.mjs +14 -13
- 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/code-editor/code-editor.d.ts +58 -0
- package/code-editor/code-editor.d.ts.map +1 -0
- package/code-editor/code-editor.theme.d.ts +61 -0
- package/code-editor/code-editor.theme.d.ts.map +1 -0
- package/code-editor-8064b078.mjs +61268 -0
- package/code-editor-f85b0a6b.js +662 -0
- package/code-editor.js +1 -0
- package/code-editor.mjs +10 -0
- package/code-snippet.js +2 -2
- package/code-snippet.mjs +5 -4
- package/css-5dd354ac.mjs +186 -0
- package/css-9be95551.js +8 -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/drawer.js +1 -1
- package/drawer.mjs +5 -4
- package/formfield.js +3 -3
- package/formfield.mjs +4 -3
- package/html-5fd3a841.mjs +286 -0
- package/html-73c71ff4.js +6 -0
- package/icon-button-toggle.js +1 -1
- package/icon-button-toggle.mjs +6 -5
- 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 +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +123 -117
- package/javascript-204f9122.js +6 -0
- package/javascript-85aeeec4.mjs +80 -0
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +5 -4
- package/list-item.js +2 -2
- package/list-item.mjs +7 -6
- package/list.js +1 -1
- package/list.mjs +8 -7
- package/markdown-9b448c46.mjs +202 -0
- package/markdown-eae8e3ba.js +6 -0
- package/menu.js +5 -5
- package/menu.mjs +9 -8
- 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/nav-list-item.js +1 -1
- package/nav-list-item.mjs +7 -6
- package/notebook-cell/notebook-cell.d.ts +94 -0
- package/notebook-cell/notebook-cell.d.ts.map +1 -0
- package/notebook-cell.js +47 -0
- package/notebook-cell.mjs +217 -0
- package/package.json +11 -1
- package/python-abc06189.mjs +264 -0
- package/python-cb76a8a4.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/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
- package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
- package/select.js +2 -2
- package/select.mjs +11 -10
- 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/sql-63ec8e76.mjs +818 -0
- package/sql-faf05577.js +6 -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/switch.js +1 -1
- package/switch.mjs +6 -5
- package/tab-bar.js +2 -2
- package/tab-bar.mjs +7 -6
- package/tab.js +1 -1
- package/tab.mjs +9 -8
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +4 -3
- package/textarea.js +1 -1
- package/textarea.mjs +6 -5
- package/{textfield-a064a2b4.js → textfield-48207bf2.js} +16 -16
- package/{textfield-69844234.mjs → textfield-a994ca16.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/typescript-5cbac06a.mjs +332 -0
- package/typescript-95376fa5.js +6 -0
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,217 @@
|
|
1
|
+
import { i as v, r as m, s as g, x as c, e as b } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { n as l } from "./property-9b6ea53b.mjs";
|
3
|
+
import { t as f } from "./state-b5e865db.mjs";
|
4
|
+
import { o as u } from "./class-map-6e504a9a.mjs";
|
5
|
+
import "./code-editor-8064b078.mjs";
|
6
|
+
import "./code-snippet.mjs";
|
7
|
+
import "./icon-button.mjs";
|
8
|
+
import "./typography.mjs";
|
9
|
+
import "./directive-daf4e9b6.mjs";
|
10
|
+
import "./async-directive-99a01ec7.mjs";
|
11
|
+
import "./directive-helpers-e3ea6592.mjs";
|
12
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
13
|
+
import "./_commonjsHelpers-2f131a27.mjs";
|
14
|
+
import "./tslib.es6-c4b0f3b1.mjs";
|
15
|
+
import "./ripple-handlers-8883e893.mjs";
|
16
|
+
import "./base-element-acf30176.mjs";
|
17
|
+
import "./utils-dc65fdc9.mjs";
|
18
|
+
import "./query-d843aa92.mjs";
|
19
|
+
import "./style-map-e7ec6d41.mjs";
|
20
|
+
import "./aria-property-fa2717fe.mjs";
|
21
|
+
import "./event-options-78d6cf94.mjs";
|
22
|
+
import "./if-defined-c367f208.mjs";
|
23
|
+
const x = `:host{--mdc-icon-button-size: 24px;font-family:var(--mdc-typography-body1-font-family);width:100%}cv-code-snippet{background-color:var(--cv-theme-surface);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{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);height:56px;line-height:var(--cv-typography-headline6-line-height)}.timesExecuted .executionCount{padding-right:1rem;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap;width:50px}.timesExecuted cv-icon{color:var(--cv-theme-on-surface-variant);padding:.5rem;visibility:hidden;transition:visibility .3s ease}.timesExecutedWrapper{cursor:grab}.timesExecutedWrapper:active{cursor:grabbing}.timesExecutedWrapper:hover cv-icon{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% - 95px);flex:1}.contextMenu{overflow:auto;position:absolute;visibility:hidden;z-index:1000}.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%}
|
24
|
+
`;
|
25
|
+
var y = Object.defineProperty, C = Object.getOwnPropertyDescriptor, n = (e, i, o, r) => {
|
26
|
+
for (var s = r > 1 ? void 0 : r ? C(i, o) : i, a = e.length - 1, d; a >= 0; a--)
|
27
|
+
(d = e[a]) && (s = (r ? d(i, o, s) : d(s)) || s);
|
28
|
+
return r && s && y(i, o, s), s;
|
29
|
+
};
|
30
|
+
let t = class extends g {
|
31
|
+
constructor() {
|
32
|
+
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 = {
|
33
|
+
minimap: { enabled: !1 },
|
34
|
+
// Disable minimap to save space
|
35
|
+
wordWrap: "on",
|
36
|
+
// Enable word wrap to avoid horizontal scroll
|
37
|
+
fontSize: "14px",
|
38
|
+
glyphMargin: !1,
|
39
|
+
folding: !1,
|
40
|
+
lineHeight: 20,
|
41
|
+
lineNumbers: "off",
|
42
|
+
lineDecorationsWidth: 0,
|
43
|
+
lineNumbersMinChars: 0,
|
44
|
+
renderLineHighlight: "none",
|
45
|
+
overviewRulerLanes: 0,
|
46
|
+
hideCursorInOverviewRuler: !0,
|
47
|
+
scrollbar: {
|
48
|
+
alwaysConsumeMouseWheel: !1,
|
49
|
+
vertical: "hidden"
|
50
|
+
}
|
51
|
+
}, this.closeContextMenu = this.closeContextMenu.bind(this), this.showContextMenu = this.showContextMenu.bind(this);
|
52
|
+
}
|
53
|
+
closeContextMenu() {
|
54
|
+
this._isMenuOpen = !1;
|
55
|
+
}
|
56
|
+
connectedCallback() {
|
57
|
+
super.connectedCallback(), document.addEventListener("click", this.closeContextMenu);
|
58
|
+
}
|
59
|
+
disconnectedCallback() {
|
60
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.closeContextMenu);
|
61
|
+
}
|
62
|
+
handleCodeChange(e) {
|
63
|
+
this.code = e.detail.code;
|
64
|
+
}
|
65
|
+
handleRun() {
|
66
|
+
this.dispatchEvent(
|
67
|
+
new CustomEvent("cell-run-code", {
|
68
|
+
detail: { index: this.index, code: this.code },
|
69
|
+
bubbles: !0,
|
70
|
+
composed: !0
|
71
|
+
})
|
72
|
+
);
|
73
|
+
}
|
74
|
+
setEditorFocus(e) {
|
75
|
+
this._editorFocused = e, this.requestUpdate();
|
76
|
+
}
|
77
|
+
showContextMenu(e) {
|
78
|
+
var p;
|
79
|
+
e.preventDefault();
|
80
|
+
const i = document.querySelectorAll("cv-notebook-cell");
|
81
|
+
i == null || i.forEach((h) => {
|
82
|
+
h.closeContextMenu();
|
83
|
+
});
|
84
|
+
const o = (p = this.shadowRoot) == null ? void 0 : p.querySelector(
|
85
|
+
".contextMenu"
|
86
|
+
), r = o == null ? void 0 : o.offsetHeight, a = window.innerHeight - e.clientY, d = e.clientY;
|
87
|
+
a >= r ? (this._menuPosition = { top: e.clientY, left: e.clientX }, this._menuMaxHeight = `${a}px`) : d >= r ? (this._menuPosition = { top: e.clientY - r, left: e.clientX }, this._menuMaxHeight = `${r}px`) : (this._menuPosition = { top: e.clientY - d, left: e.clientX }, this._menuMaxHeight = `${d}px`), this._isMenuOpen = !0;
|
88
|
+
}
|
89
|
+
updated(e) {
|
90
|
+
var o, r;
|
91
|
+
const i = (o = this.shadowRoot) == null ? void 0 : o.querySelector("cv-code-editor");
|
92
|
+
if (e.has("code") || e.has("language"))
|
93
|
+
if (i)
|
94
|
+
i.code = this.code, i.language = this.language;
|
95
|
+
else {
|
96
|
+
const s = (r = this.shadowRoot) == null ? void 0 : r.querySelector("cv-code-snippet");
|
97
|
+
s && !this.selected && s.highlight();
|
98
|
+
}
|
99
|
+
super.updated(e);
|
100
|
+
}
|
101
|
+
getEditorBgColor() {
|
102
|
+
var o;
|
103
|
+
const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".editorContainer");
|
104
|
+
return e ? window.getComputedStyle(e).getPropertyValue("background-color") : "";
|
105
|
+
}
|
106
|
+
renderEditor() {
|
107
|
+
const e = this.selected ? c`<cv-code-editor
|
108
|
+
@code-change="${this.handleCodeChange}"
|
109
|
+
@editor-focus="${() => this.setEditorFocus(!0)}"
|
110
|
+
@editor-blur="${() => this.setEditorFocus(!1)}"
|
111
|
+
.code="${this.code}"
|
112
|
+
.language="${this.language}"
|
113
|
+
.options="${this.editorOptions}"
|
114
|
+
.theme="${this.editorTheme}"
|
115
|
+
></cv-code-editor>` : c`<cv-code-snippet hideHeader .language="${this.language}"
|
116
|
+
>${this.code}</cv-code-snippet
|
117
|
+
>`;
|
118
|
+
return c`${this.hideEditor ? "" : c`<div class="editorContainer">${e}</div>`}`;
|
119
|
+
}
|
120
|
+
renderOutput() {
|
121
|
+
const e = c` <div class="errors"><slot name="error"></slot></div>
|
122
|
+
<div class="output">
|
123
|
+
<slot name="output"></slot>
|
124
|
+
<slot name="input"></slot>
|
125
|
+
</div>`;
|
126
|
+
return c`${e}`;
|
127
|
+
}
|
128
|
+
renderExecutionCount() {
|
129
|
+
if (this.hideCount)
|
130
|
+
return c` `;
|
131
|
+
const e = {
|
132
|
+
status: !0,
|
133
|
+
loading: this.loading
|
134
|
+
};
|
135
|
+
return c`[<span class="${u(e)}"
|
136
|
+
>${this.loading ? "*" : this.timesExecuted || " "}</span
|
137
|
+
>] :`;
|
138
|
+
}
|
139
|
+
render() {
|
140
|
+
const e = {
|
141
|
+
cell: !0,
|
142
|
+
selected: this.selected,
|
143
|
+
focused: this._editorFocused
|
144
|
+
};
|
145
|
+
return c`
|
146
|
+
<div
|
147
|
+
class="${u(e)}"
|
148
|
+
draggable="true"
|
149
|
+
@contextmenu=${this.showContextMenu}
|
150
|
+
>
|
151
|
+
<div class="selectionIndicatorWrapper" draggable="false">
|
152
|
+
<div class="selectionIndicator"></div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
<div class="timesExecutedWrapper" draggable="false">
|
156
|
+
<div class="timesExecuted">
|
157
|
+
<cv-icon>drag_indicator</cv-icon>
|
158
|
+
<div class="executionCount">${this.renderExecutionCount()}</div>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<div class="cellOutputWrapper" draggable="false">
|
163
|
+
${this.renderEditor()} ${this.renderOutput()}
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
<div
|
167
|
+
class="contextMenu ${this._isMenuOpen ? "open" : ""}"
|
168
|
+
style="left: ${this._menuPosition.left}px; top: ${this._menuPosition.top}px; max-height: ${this._menuMaxHeight}"
|
169
|
+
>
|
170
|
+
<slot name="context-menu"></slot>
|
171
|
+
</div>
|
172
|
+
`;
|
173
|
+
}
|
174
|
+
};
|
175
|
+
t.styles = [
|
176
|
+
v`
|
177
|
+
${m(x)}
|
178
|
+
`
|
179
|
+
];
|
180
|
+
n([
|
181
|
+
l({ type: Number })
|
182
|
+
], t.prototype, "index", 2);
|
183
|
+
n([
|
184
|
+
l({ type: String })
|
185
|
+
], t.prototype, "code", 2);
|
186
|
+
n([
|
187
|
+
l({ type: String })
|
188
|
+
], t.prototype, "language", 2);
|
189
|
+
n([
|
190
|
+
l({ type: Boolean, reflect: !0 })
|
191
|
+
], t.prototype, "loading", 2);
|
192
|
+
n([
|
193
|
+
l({ type: Boolean, reflect: !0 })
|
194
|
+
], t.prototype, "selected", 2);
|
195
|
+
n([
|
196
|
+
l({ type: Number })
|
197
|
+
], t.prototype, "timesExecuted", 2);
|
198
|
+
n([
|
199
|
+
l({ type: Boolean, reflect: !0 })
|
200
|
+
], t.prototype, "hideEditor", 2);
|
201
|
+
n([
|
202
|
+
l({ type: Boolean, reflect: !0 })
|
203
|
+
], t.prototype, "hideCount", 2);
|
204
|
+
n([
|
205
|
+
l({ type: String })
|
206
|
+
], t.prototype, "editorTheme", 2);
|
207
|
+
n([
|
208
|
+
f()
|
209
|
+
], t.prototype, "_isMenuOpen", 2);
|
210
|
+
t = n([
|
211
|
+
b("cv-notebook-cell")
|
212
|
+
], t);
|
213
|
+
const T = t;
|
214
|
+
export {
|
215
|
+
t as CovalentNotebookCell,
|
216
|
+
T as default
|
217
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/components",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.19.1",
|
4
4
|
"description": "a catalog of material components for covalent",
|
5
5
|
"main": "./index.js",
|
6
6
|
"module": "./index.mjs",
|
@@ -66,6 +66,11 @@
|
|
66
66
|
"import": "./circular-progress.mjs",
|
67
67
|
"require": "./circular-progress.js"
|
68
68
|
},
|
69
|
+
"./code-editor": {
|
70
|
+
"types": "./code-editor/code-editor.d.ts",
|
71
|
+
"import": "./code-editor.mjs",
|
72
|
+
"require": "./code-editor.js"
|
73
|
+
},
|
69
74
|
"./code-snippet": {
|
70
75
|
"types": "./code-snippet/code-snippet.d.ts",
|
71
76
|
"import": "./code-snippet.mjs",
|
@@ -161,6 +166,11 @@
|
|
161
166
|
"import": "./menu.mjs",
|
162
167
|
"require": "./menu.js"
|
163
168
|
},
|
169
|
+
"./notebook-cell": {
|
170
|
+
"types": "./notebook-cell/notebook-cell.d.ts",
|
171
|
+
"import": "./notebook-cell.mjs",
|
172
|
+
"require": "./notebook-cell.js"
|
173
|
+
},
|
164
174
|
"./radio": {
|
165
175
|
"types": "./radio/radio.d.ts",
|
166
176
|
"import": "./radio.mjs",
|
@@ -0,0 +1,264 @@
|
|
1
|
+
import { m as a } from "./code-editor-8064b078.mjs";
|
2
|
+
import "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import "./property-9b6ea53b.mjs";
|
4
|
+
import "./async-directive-99a01ec7.mjs";
|
5
|
+
import "./directive-helpers-e3ea6592.mjs";
|
6
|
+
import "./directive-daf4e9b6.mjs";
|
7
|
+
/*!-----------------------------------------------------------------------------
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
9
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
10
|
+
* Released under the MIT license
|
11
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
12
|
+
*-----------------------------------------------------------------------------*/
|
13
|
+
var l = Object.defineProperty, c = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, s = (t, e, n, o) => {
|
14
|
+
if (e && typeof e == "object" || typeof e == "function")
|
15
|
+
for (let r of p(e))
|
16
|
+
!d.call(t, r) && r !== n && l(t, r, { get: () => e[r], enumerable: !(o = c(e, r)) || o.enumerable });
|
17
|
+
return t;
|
18
|
+
}, _ = (t, e, n) => (s(t, e, "default"), n && s(n, e, "default")), i = {};
|
19
|
+
_(i, a);
|
20
|
+
var w = {
|
21
|
+
comments: {
|
22
|
+
lineComment: "#",
|
23
|
+
blockComment: ["'''", "'''"]
|
24
|
+
},
|
25
|
+
brackets: [
|
26
|
+
["{", "}"],
|
27
|
+
["[", "]"],
|
28
|
+
["(", ")"]
|
29
|
+
],
|
30
|
+
autoClosingPairs: [
|
31
|
+
{ open: "{", close: "}" },
|
32
|
+
{ open: "[", close: "]" },
|
33
|
+
{ open: "(", close: ")" },
|
34
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
35
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
36
|
+
],
|
37
|
+
surroundingPairs: [
|
38
|
+
{ open: "{", close: "}" },
|
39
|
+
{ open: "[", close: "]" },
|
40
|
+
{ open: "(", close: ")" },
|
41
|
+
{ open: '"', close: '"' },
|
42
|
+
{ open: "'", close: "'" }
|
43
|
+
],
|
44
|
+
onEnterRules: [
|
45
|
+
{
|
46
|
+
beforeText: new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),
|
47
|
+
action: { indentAction: i.languages.IndentAction.Indent }
|
48
|
+
}
|
49
|
+
],
|
50
|
+
folding: {
|
51
|
+
offSide: !0,
|
52
|
+
markers: {
|
53
|
+
start: new RegExp("^\\s*#region\\b"),
|
54
|
+
end: new RegExp("^\\s*#endregion\\b")
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}, h = {
|
58
|
+
defaultToken: "",
|
59
|
+
tokenPostfix: ".python",
|
60
|
+
keywords: [
|
61
|
+
"False",
|
62
|
+
"None",
|
63
|
+
"True",
|
64
|
+
"_",
|
65
|
+
"and",
|
66
|
+
"as",
|
67
|
+
"assert",
|
68
|
+
"async",
|
69
|
+
"await",
|
70
|
+
"break",
|
71
|
+
"case",
|
72
|
+
"class",
|
73
|
+
"continue",
|
74
|
+
"def",
|
75
|
+
"del",
|
76
|
+
"elif",
|
77
|
+
"else",
|
78
|
+
"except",
|
79
|
+
"exec",
|
80
|
+
"finally",
|
81
|
+
"for",
|
82
|
+
"from",
|
83
|
+
"global",
|
84
|
+
"if",
|
85
|
+
"import",
|
86
|
+
"in",
|
87
|
+
"is",
|
88
|
+
"lambda",
|
89
|
+
"match",
|
90
|
+
"nonlocal",
|
91
|
+
"not",
|
92
|
+
"or",
|
93
|
+
"pass",
|
94
|
+
"print",
|
95
|
+
"raise",
|
96
|
+
"return",
|
97
|
+
"try",
|
98
|
+
"while",
|
99
|
+
"with",
|
100
|
+
"yield",
|
101
|
+
"int",
|
102
|
+
"float",
|
103
|
+
"long",
|
104
|
+
"complex",
|
105
|
+
"hex",
|
106
|
+
"abs",
|
107
|
+
"all",
|
108
|
+
"any",
|
109
|
+
"apply",
|
110
|
+
"basestring",
|
111
|
+
"bin",
|
112
|
+
"bool",
|
113
|
+
"buffer",
|
114
|
+
"bytearray",
|
115
|
+
"callable",
|
116
|
+
"chr",
|
117
|
+
"classmethod",
|
118
|
+
"cmp",
|
119
|
+
"coerce",
|
120
|
+
"compile",
|
121
|
+
"complex",
|
122
|
+
"delattr",
|
123
|
+
"dict",
|
124
|
+
"dir",
|
125
|
+
"divmod",
|
126
|
+
"enumerate",
|
127
|
+
"eval",
|
128
|
+
"execfile",
|
129
|
+
"file",
|
130
|
+
"filter",
|
131
|
+
"format",
|
132
|
+
"frozenset",
|
133
|
+
"getattr",
|
134
|
+
"globals",
|
135
|
+
"hasattr",
|
136
|
+
"hash",
|
137
|
+
"help",
|
138
|
+
"id",
|
139
|
+
"input",
|
140
|
+
"intern",
|
141
|
+
"isinstance",
|
142
|
+
"issubclass",
|
143
|
+
"iter",
|
144
|
+
"len",
|
145
|
+
"locals",
|
146
|
+
"list",
|
147
|
+
"map",
|
148
|
+
"max",
|
149
|
+
"memoryview",
|
150
|
+
"min",
|
151
|
+
"next",
|
152
|
+
"object",
|
153
|
+
"oct",
|
154
|
+
"open",
|
155
|
+
"ord",
|
156
|
+
"pow",
|
157
|
+
"print",
|
158
|
+
"property",
|
159
|
+
"reversed",
|
160
|
+
"range",
|
161
|
+
"raw_input",
|
162
|
+
"reduce",
|
163
|
+
"reload",
|
164
|
+
"repr",
|
165
|
+
"reversed",
|
166
|
+
"round",
|
167
|
+
"self",
|
168
|
+
"set",
|
169
|
+
"setattr",
|
170
|
+
"slice",
|
171
|
+
"sorted",
|
172
|
+
"staticmethod",
|
173
|
+
"str",
|
174
|
+
"sum",
|
175
|
+
"super",
|
176
|
+
"tuple",
|
177
|
+
"type",
|
178
|
+
"unichr",
|
179
|
+
"unicode",
|
180
|
+
"vars",
|
181
|
+
"xrange",
|
182
|
+
"zip",
|
183
|
+
"__dict__",
|
184
|
+
"__methods__",
|
185
|
+
"__members__",
|
186
|
+
"__class__",
|
187
|
+
"__bases__",
|
188
|
+
"__name__",
|
189
|
+
"__mro__",
|
190
|
+
"__subclasses__",
|
191
|
+
"__init__",
|
192
|
+
"__import__"
|
193
|
+
],
|
194
|
+
brackets: [
|
195
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
196
|
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
197
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
198
|
+
],
|
199
|
+
tokenizer: {
|
200
|
+
root: [
|
201
|
+
{ include: "@whitespace" },
|
202
|
+
{ include: "@numbers" },
|
203
|
+
{ include: "@strings" },
|
204
|
+
[/[,:;]/, "delimiter"],
|
205
|
+
[/[{}\[\]()]/, "@brackets"],
|
206
|
+
[/@[a-zA-Z_]\w*/, "tag"],
|
207
|
+
[
|
208
|
+
/[a-zA-Z_]\w*/,
|
209
|
+
{
|
210
|
+
cases: {
|
211
|
+
"@keywords": "keyword",
|
212
|
+
"@default": "identifier"
|
213
|
+
}
|
214
|
+
}
|
215
|
+
]
|
216
|
+
],
|
217
|
+
whitespace: [
|
218
|
+
[/\s+/, "white"],
|
219
|
+
[/(^#.*$)/, "comment"],
|
220
|
+
[/'''/, "string", "@endDocString"],
|
221
|
+
[/"""/, "string", "@endDblDocString"]
|
222
|
+
],
|
223
|
+
endDocString: [
|
224
|
+
[/[^']+/, "string"],
|
225
|
+
[/\\'/, "string"],
|
226
|
+
[/'''/, "string", "@popall"],
|
227
|
+
[/'/, "string"]
|
228
|
+
],
|
229
|
+
endDblDocString: [
|
230
|
+
[/[^"]+/, "string"],
|
231
|
+
[/\\"/, "string"],
|
232
|
+
[/"""/, "string", "@popall"],
|
233
|
+
[/"/, "string"]
|
234
|
+
],
|
235
|
+
numbers: [
|
236
|
+
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
|
237
|
+
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
|
238
|
+
],
|
239
|
+
strings: [
|
240
|
+
[/'$/, "string.escape", "@popall"],
|
241
|
+
[/'/, "string.escape", "@stringBody"],
|
242
|
+
[/"$/, "string.escape", "@popall"],
|
243
|
+
[/"/, "string.escape", "@dblStringBody"]
|
244
|
+
],
|
245
|
+
stringBody: [
|
246
|
+
[/[^\\']+$/, "string", "@popall"],
|
247
|
+
[/[^\\']+/, "string"],
|
248
|
+
[/\\./, "string"],
|
249
|
+
[/'/, "string.escape", "@popall"],
|
250
|
+
[/\\$/, "string"]
|
251
|
+
],
|
252
|
+
dblStringBody: [
|
253
|
+
[/[^\\"]+$/, "string", "@popall"],
|
254
|
+
[/[^\\"]+/, "string"],
|
255
|
+
[/\\./, "string"],
|
256
|
+
[/"/, "string.escape", "@popall"],
|
257
|
+
[/\\$/, "string"]
|
258
|
+
]
|
259
|
+
}
|
260
|
+
};
|
261
|
+
export {
|
262
|
+
w as conf,
|
263
|
+
h as language
|
264
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./code-editor-f85b0a6b.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
|
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 l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(r,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!d.call(r,t)&&t!==n&&l(r,t,{get:()=>e[t],enumerable:!(s=c(e,t))||s.enumerable});return r},g=(r,e,n)=>(o(r,e,"default"),n&&o(n,e,"default")),i={};g(i,a.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")}}},u={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","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"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};exports.conf=_;exports.language=u;
|
package/r-42c6f0aa.js
ADDED
@@ -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:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".r",roxygen:["@alias","@aliases","@assignee","@author","@backref","@callGraph","@callGraphDepth","@callGraphPrimitives","@concept","@describeIn","@description","@details","@docType","@encoding","@evalNamespace","@evalRd","@example","@examples","@export","@exportClass","@exportMethod","@exportPattern","@family","@field","@formals","@format","@import","@importClassesFrom","@importFrom","@importMethodsFrom","@include","@inherit","@inheritDotParams","@inheritParams","@inheritSection","@keywords","@md","@method","@name","@noMd","@noRd","@note","@param","@rawNamespace","@rawRd","@rdname","@references","@return","@S3method","@section","@seealso","@setClass","@slot","@source","@template","@templateVar","@title","@TODO","@usage","@useDynLib"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'$/,"comment.doc"],[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}};exports.conf=e;exports.language=o;
|