@covalent/components 8.15.0-beta.1 → 8.15.0-beta.2
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/cell/cell.d.ts +5 -0
- package/cell/cell.d.ts.map +1 -1
- package/cell.js +2 -2
- package/cell.mjs +19 -14
- package/{code-editor-4cce5e5d.js → code-editor-7a36c890.js} +15 -15
- package/{code-editor-383a8fae.mjs → code-editor-b9acd487.mjs} +21 -21
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/{cssMode-821261c4.js → cssMode-2cffe81f.js} +1 -1
- package/{cssMode-9b89f9af.mjs → cssMode-6f4ea93a.mjs} +1 -1
- package/{freemarker2-7095cbc4.js → freemarker2-89c6e6f3.js} +1 -1
- package/{freemarker2-4fc0d2e6.mjs → freemarker2-906bf3f7.mjs} +1 -1
- package/{handlebars-82c24f9d.mjs → handlebars-dbc16556.mjs} +1 -1
- package/{handlebars-6a356ce9.js → handlebars-e0f7efbe.js} +1 -1
- package/{html-d9124a1e.js → html-d8278158.js} +1 -1
- package/{html-a95df2b1.mjs → html-feca0a24.mjs} +1 -1
- package/{htmlMode-45fac07b.mjs → htmlMode-45e8cd50.mjs} +1 -1
- package/{htmlMode-3946317b.js → htmlMode-989d6a85.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{javascript-0226b3a0.mjs → javascript-3fd1e5a8.mjs} +2 -2
- package/{javascript-ec698494.js → javascript-5d8f5f2a.js} +1 -1
- package/{jsonMode-a8e45f39.js → jsonMode-33e7baa8.js} +1 -1
- package/{jsonMode-bdcd2ed9.mjs → jsonMode-b4ecafe2.mjs} +1 -1
- package/{liquid-b6e2effe.js → liquid-97280cdd.js} +1 -1
- package/{liquid-2dc745b6.mjs → liquid-9be0367d.mjs} +1 -1
- package/notebook/notebook.d.ts +1 -0
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook.js +18 -9
- package/notebook.mjs +24 -5
- package/package.json +1 -1
- package/{python-7770f129.mjs → python-3deb7582.mjs} +1 -1
- package/{python-c7862f06.js → python-e4403078.js} +1 -1
- package/{razor-4a6a11b1.js → razor-9fd114ce.js} +1 -1
- package/{razor-3871ef20.mjs → razor-d49ab0c5.mjs} +1 -1
- package/{tsMode-426fdb34.mjs → tsMode-4448deef.mjs} +1 -1
- package/{tsMode-9087ec29.js → tsMode-c5cc89bc.js} +1 -1
- package/{typescript-eb2ab867.js → typescript-1b8311ff.js} +1 -1
- package/{typescript-37d9bf54.mjs → typescript-8fb83e8f.mjs} +1 -1
- package/{xml-349a9a42.js → xml-c437fe38.js} +1 -1
- package/{xml-9970ffe1.mjs → xml-eee8295b.mjs} +1 -1
- package/{yaml-167e3d82.mjs → yaml-083914d5.mjs} +1 -1
- package/{yaml-837b2090.js → yaml-8c10a8e6.js} +1 -1
package/cell/cell.d.ts
CHANGED
@@ -45,6 +45,11 @@ export declare class CovalentCell extends LitElement {
|
|
45
45
|
lineDecorationsWidth: number;
|
46
46
|
lineNumbersMinChars: number;
|
47
47
|
renderLineHighlight: string;
|
48
|
+
overviewRulerLanes: number;
|
49
|
+
hideCursorInOverviewRuler: boolean;
|
50
|
+
scrollbar: {
|
51
|
+
vertical: string;
|
52
|
+
};
|
48
53
|
};
|
49
54
|
static styles: import("lit").CSSResult[];
|
50
55
|
handleCodeChange(e: CustomEvent): void;
|
package/cell/cell.d.ts.map
CHANGED
@@ -1 +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
|
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;;;;;;;;;;;;;;;;;MAeX;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
CHANGED
@@ -1,5 +1,5 @@
|
|
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-
|
2
|
-
`;var p=Object.defineProperty,h=Object.getOwnPropertyDescriptor,s=(n,e,i,
|
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-7a36c890.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,r)=>{for(var o=r>1?void 0:r?h(e,i):e,d=n.length-1,c;d>=0;d--)(c=n[d])&&(o=(r?c(e,i,o):c(o))||o);return r&&o&&p(e,i,o),o};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",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{vertical:"hidden"}}}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 r=(i=this.shadowRoot)==null?void 0:i.querySelector("cv-code-editor");r&&(r.code=this.code,r.language=this.language)}}renderEditor(){const e=t.x`<cv-code-editor
|
3
3
|
@code-change="${this.handleCodeChange}"
|
4
4
|
@editor-focus="${()=>this.setEditorFocus(!0)}"
|
5
5
|
@editor-blur="${()=>this.setEditorFocus(!1)}"
|
package/cell.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { i as p, r as u, s as h, x as
|
1
|
+
import { i as p, r as u, s as h, x as l, e as m } from "./query-assigned-elements-4a39219d.mjs";
|
2
2
|
import { n as d } from "./property-9b6ea53b.mjs";
|
3
3
|
import { o as v } from "./class-map-6e504a9a.mjs";
|
4
|
-
import "./code-editor-
|
4
|
+
import "./code-editor-b9acd487.mjs";
|
5
5
|
import "./icon-button.mjs";
|
6
6
|
import "./typography.mjs";
|
7
7
|
import "./directive-daf4e9b6.mjs";
|
@@ -19,10 +19,10 @@ import "./event-options-78d6cf94.mjs";
|
|
19
19
|
import "./if-defined-c367f208.mjs";
|
20
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
21
|
`;
|
22
|
-
var g = Object.defineProperty, y = Object.getOwnPropertyDescriptor, s = (e, o, i,
|
23
|
-
for (var r =
|
24
|
-
(n = e[a]) && (r = (
|
25
|
-
return
|
22
|
+
var g = Object.defineProperty, y = Object.getOwnPropertyDescriptor, s = (e, o, i, c) => {
|
23
|
+
for (var r = c > 1 ? void 0 : c ? y(o, i) : o, a = e.length - 1, n; a >= 0; a--)
|
24
|
+
(n = e[a]) && (r = (c ? n(o, i, r) : n(r)) || r);
|
25
|
+
return c && r && g(o, i, r), r;
|
26
26
|
};
|
27
27
|
let t = class extends h {
|
28
28
|
constructor() {
|
@@ -37,7 +37,12 @@ let t = class extends h {
|
|
37
37
|
lineNumbers: "off",
|
38
38
|
lineDecorationsWidth: 0,
|
39
39
|
lineNumbersMinChars: 0,
|
40
|
-
renderLineHighlight: "none"
|
40
|
+
renderLineHighlight: "none",
|
41
|
+
overviewRulerLanes: 0,
|
42
|
+
hideCursorInOverviewRuler: !0,
|
43
|
+
scrollbar: {
|
44
|
+
vertical: "hidden"
|
45
|
+
}
|
41
46
|
};
|
42
47
|
}
|
43
48
|
handleCodeChange(e) {
|
@@ -63,17 +68,17 @@ let t = class extends h {
|
|
63
68
|
}
|
64
69
|
}
|
65
70
|
renderEditor() {
|
66
|
-
const e =
|
71
|
+
const e = l`<cv-code-editor
|
67
72
|
@code-change="${this.handleCodeChange}"
|
68
73
|
@editor-focus="${() => this.setEditorFocus(!0)}"
|
69
74
|
@editor-blur="${() => this.setEditorFocus(!1)}"
|
70
75
|
.code="${this.code}"
|
71
76
|
.language="${this.language}"
|
72
77
|
.options="${this.editorOptions}"
|
73
|
-
></cv-code-editor>`, o =
|
78
|
+
></cv-code-editor>`, o = l`<cv-typography class="output" scale="body1">
|
74
79
|
<slot name="output"></slot>
|
75
80
|
</cv-typography>`;
|
76
|
-
return
|
81
|
+
return l`${this.showEditor ? e : ""}${!this.showEditor && this.language === "markdown" || this.language !== "markdown" ? o : ""}`;
|
77
82
|
}
|
78
83
|
render() {
|
79
84
|
const e = {
|
@@ -81,13 +86,13 @@ let t = class extends h {
|
|
81
86
|
selected: this.selected,
|
82
87
|
focused: this._editorFocused
|
83
88
|
};
|
84
|
-
return
|
89
|
+
return l`
|
85
90
|
<div class="${v(e)}">
|
86
91
|
<span class="selection-indicator"></span>
|
87
92
|
<div class="cellWrapper">
|
88
93
|
<div class="cellCodeWrapper">
|
89
94
|
<span class="timesExecuted">
|
90
|
-
${this.showEditor ?
|
95
|
+
${this.showEditor ? l`[${this.timesExecuted === 0 ? " " : this.timesExecuted}]:` : ""}
|
91
96
|
</span>
|
92
97
|
<div class="editor-output-wrapper">${this.renderEditor()}</div>
|
93
98
|
</div>
|
@@ -122,8 +127,8 @@ s([
|
|
122
127
|
t = s([
|
123
128
|
m("cv-cell")
|
124
129
|
], t);
|
125
|
-
const
|
130
|
+
const L = t;
|
126
131
|
export {
|
127
132
|
t as CovalentCell,
|
128
|
-
|
133
|
+
L as default
|
129
134
|
};
|