@difizen/libro-core 0.2.34 → 0.2.35
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/es/add-cell/libro-add-cell-view.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-view.js +1 -7
- package/es/cell/libro-cell-service.d.ts.map +1 -1
- package/es/cell/libro-cell-service.js +3 -0
- package/es/cell/libro-edit-cell-view.d.ts +21 -3
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -1
- package/es/cell/libro-edit-cell-view.js +194 -15
- package/es/cell/libro-executable-cell-view.d.ts +5 -1
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -1
- package/es/cell/libro-executable-cell-view.js +15 -10
- package/es/components/cell-protocol.d.ts +4 -0
- package/es/components/cell-protocol.d.ts.map +1 -1
- package/es/components/cell-protocol.js +1 -0
- package/es/components/dnd-cell-item-render.d.ts +2 -0
- package/es/components/dnd-cell-item-render.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.js +15 -12
- package/es/components/dnd-component/index.less +4 -0
- package/es/index.less +9 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +4 -1
- package/es/toolbar/hide-all-selector.js +4 -4
- package/es/toolbar/libro-toolbar.d.ts.map +1 -1
- package/es/toolbar/libro-toolbar.js +3 -2
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -1
- package/es/toolbar/side-toolar-more-select.js +8 -7
- package/package.json +5 -5
- package/src/add-cell/libro-add-cell-view.tsx +14 -23
- package/src/cell/README.md +1 -1
- package/src/cell/libro-cell-service.ts +1 -0
- package/src/cell/libro-edit-cell-view.tsx +149 -5
- package/src/cell/libro-executable-cell-view.ts +6 -1
- package/src/components/cell-protocol.ts +4 -0
- package/src/components/dnd-cell-item-render.tsx +18 -15
- package/src/components/dnd-component/index.less +4 -0
- package/src/index.less +9 -1
- package/src/module.ts +6 -0
- package/src/toolbar/hide-all-selector.tsx +4 -4
- package/src/toolbar/libro-toolbar.tsx +3 -2
- package/src/toolbar/side-toolar-more-select.tsx +9 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-add-cell-view.d.ts","sourceRoot":"","sources":["../../src/add-cell/libro-add-cell-view.tsx"],"names":[],"mappings":";AACA,OAAO,EAKL,QAAQ,EAIT,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,cAAc,CAAC;AAOtB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"libro-add-cell-view.d.ts","sourceRoot":"","sources":["../../src/add-cell/libro-add-cell-view.tsx"],"names":[],"mappings":";AACA,OAAO,EAKL,QAAQ,EAIT,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,cAAc,CAAC;AAOtB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EA4BhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,mFAO9B,CAAC;AAEH,qBAEa,gBAAiB,SAAQ,QAAQ;IAC5C,MAAM,EAAE,SAAS,GAAG,SAAS,CAAa;IACjC,IAAI,oFAAuB;IAGpC,OAAO,EAAE,QAAQ,EAAE,CAAM;IAEzB,WAAW,EAAE,WAAW,CAAC;gBAEQ,WAAW,EAAE,WAAW;IAKhD,WAAW;IAIX,aAAa;IAIb,YAAY;IAIrB,aAAa,aAAc,QAAQ,aAA6B;IAEhE,WAAW,CAAC,MAAM,kCAAqB;CAGxC"}
|
|
@@ -48,13 +48,7 @@ export var LibroAddCell = function LibroAddCell() {
|
|
|
48
48
|
}();
|
|
49
49
|
return /*#__PURE__*/_jsx("div", {
|
|
50
50
|
className: "libro-add-cell-container default-add-cell-container",
|
|
51
|
-
children: instance.getCellList().
|
|
52
|
-
if (a.order < b.order) {
|
|
53
|
-
return -1;
|
|
54
|
-
} else {
|
|
55
|
-
return 1;
|
|
56
|
-
}
|
|
57
|
-
}).map(function (item) {
|
|
51
|
+
children: instance.getCellList().map(function (item) {
|
|
58
52
|
return /*#__PURE__*/_jsx(Button, {
|
|
59
53
|
className: "libro-add-cell-container-item ",
|
|
60
54
|
onClick: function onClick() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-cell-service.d.ts","sourceRoot":"","sources":["../../src/cell/libro-cell-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGzE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,WAAW,EAEX,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAElC,qBACa,gBAAiB,YAAW,WAAW,EAAE,uBAAuB;IAE3E,SAAS,EAAE,QAAQ,EAAE,CAAM;IAE3B,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC/E,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC7E,SAAS,CAAC,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAa;IACtF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAC5C,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAa;IAEtE,YAAY,EAAE,YAAY,CAAC;gBAGzB,WAAW,EAAE,WAAW,EACF,YAAY,EAAE,YAAY,EAEhD,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAE3D,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAQ3D,SAAS,CAAC,gCAAgC,CAAC,GAAG,EAAE,qBAAqB,GAAG,WAAW;IAOnF,UAAU;
|
|
1
|
+
{"version":3,"file":"libro-cell-service.d.ts","sourceRoot":"","sources":["../../src/cell/libro-cell-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGzE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,WAAW,EAEX,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAElC,qBACa,gBAAiB,YAAW,WAAW,EAAE,uBAAuB;IAE3E,SAAS,EAAE,QAAQ,EAAE,CAAM;IAE3B,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC/E,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC7E,SAAS,CAAC,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAa;IACtF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAC5C,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAa;IAEtE,YAAY,EAAE,YAAY,CAAC;gBAGzB,WAAW,EAAE,WAAW,EACF,YAAY,EAAE,YAAY,EAEhD,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAE3D,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAQ3D,SAAS,CAAC,gCAAgC,CAAC,GAAG,EAAE,qBAAqB,GAAG,WAAW;IAOnF,UAAU;IAaV,oBAAoB,CAAC,QAAQ,EAAE,MAAM;IAQrC,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW;IAIzD,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAK5C,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,SAAK,GAAG,OAAO,CAAC,SAAS,CAAC;IAqB7E,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAqBhF,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,oBAAoB,GAAG,SAAS;IASxE,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,GAAG,SAAS;IAS1E,SAAS,CAAC,4CAA4C,IAAI,qBAAqB,EAAE;IAWjF,SAAS,CAAC,eAAe,CACvB,GAAG,EAAE,qBAAqB,GAAG,oBAAoB,EACjD,OAAO,EAAE,WAAW;CAIvB"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import type { IEditor } from '@difizen/libro-code-editor';
|
|
1
|
+
import type { CodeEditorView, CodeEditorViewOptions, IEditor } from '@difizen/libro-code-editor';
|
|
2
|
+
import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
3
|
+
import { DisposableCollection } from '@difizen/mana-app';
|
|
2
4
|
import type { ReactNode } from 'react';
|
|
3
|
-
import
|
|
5
|
+
import { LibroContextKey } from '../libro-context-key.js';
|
|
6
|
+
import type { CellView, CellViewOptions } from '../libro-protocol.js';
|
|
7
|
+
import { EditorStatus } from '../libro-protocol.js';
|
|
8
|
+
import { CellService } from './libro-cell-protocol.js';
|
|
4
9
|
import { LibroCellView } from './libro-cell-view.js';
|
|
5
10
|
export interface EditorCellView extends CellView {
|
|
6
11
|
editor: IEditor | undefined;
|
|
@@ -16,9 +21,22 @@ export declare const EditorCellView: {
|
|
|
16
21
|
* 超出编辑器的相关能力放在其他的更高抽象中
|
|
17
22
|
*/
|
|
18
23
|
export declare abstract class LibroEditorCellView extends LibroCellView implements EditorCellView {
|
|
24
|
+
protected toDisposeOnEditor: DisposableCollection;
|
|
19
25
|
editor: IEditor | undefined;
|
|
26
|
+
protected readonly libroContextKey: LibroContextKey;
|
|
27
|
+
codeEditorManager: CodeEditorManager;
|
|
28
|
+
editorView?: CodeEditorView;
|
|
29
|
+
constructor(options: CellViewOptions, cellService: CellService);
|
|
30
|
+
protected getEditorOption(): CodeEditorViewOptions;
|
|
31
|
+
protected afterEditorReady(): Promise<void>;
|
|
32
|
+
createEditor(): Promise<void>;
|
|
20
33
|
editorStatus: EditorStatus;
|
|
21
|
-
renderEditor: () =>
|
|
34
|
+
renderEditor: () => import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
+
onViewMount(): void;
|
|
36
|
+
shouldEnterEditorMode(e: React.FocusEvent<HTMLElement>): boolean;
|
|
37
|
+
protected focusEditor(): void;
|
|
38
|
+
focus: (toEdit: boolean) => void;
|
|
39
|
+
blur: () => void;
|
|
22
40
|
get wrapperCls(): string;
|
|
23
41
|
redo(): void;
|
|
24
42
|
undo(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-edit-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/libro-edit-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"libro-edit-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/libro-edit-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,OAAO,EACR,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAEL,oBAAoB,EAOrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAE5B,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB,YAAY,EAAE,MAAM,SAAS,CAAC;CAC/B;AAED,eAAO,MAAM,cAAc;cACf,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAWvC,CAAC;AAEF;;;GAGG;AACH,8BAAsB,mBACpB,SAAQ,aACR,YAAW,cAAc;IAEzB,SAAS,CAAC,iBAAiB,uBAA8B;IAEzD,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAEH,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAClD,iBAAiB,EAAE,iBAAiB,CAAC;IAGhE,UAAU,CAAC,EAAE,cAAc,CAAC;gBAGN,OAAO,EAAE,eAAe,EACvB,WAAW,EAAE,WAAW;IAK/C,SAAS,CAAC,eAAe,IAAI,qBAAqB;cAalC,gBAAgB;IAoB1B,YAAY;IA2BlB,YAAY,EAAE,YAAY,CAA0B;IAEpD,YAAY,uDAKV;IAEO,WAAW;IAQX,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC;IAQ/D,SAAS,CAAC,WAAW;IAgBZ,KAAK,WAAY,OAAO,UAS/B;IAEO,IAAI,aAGX;IAEF,IAAI,UAAU,WAEb;IAED,IAAI,IAAI,IAAI;IAIZ,IAAI,IAAI,IAAI;CAGb"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _dec, _dec2, _class, _descriptor, _descriptor2;
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
3
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
4
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
5
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3
6
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
4
7
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
8
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
@@ -15,9 +18,15 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
15
18
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
19
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
20
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
-
import {
|
|
21
|
+
import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
22
|
+
import { CellUri } from '@difizen/libro-common';
|
|
23
|
+
import { Disposable, DisposableCollection, getOrigin, inject, prop, ViewOption, ViewRender, watch } from '@difizen/mana-app';
|
|
24
|
+
import { LibroContextKey } from "../libro-context-key.js";
|
|
25
|
+
import { EditorStatus } from "../libro-protocol.js";
|
|
19
26
|
import { isCellView } from "../libro-protocol.js";
|
|
27
|
+
import { CellService } from "./libro-cell-protocol.js";
|
|
20
28
|
import { LibroCellView } from "./libro-cell-view.js";
|
|
29
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
30
|
export var EditorCellView = {
|
|
22
31
|
is: function is(arg) {
|
|
23
32
|
return !!arg && isCellView(arg) &&
|
|
@@ -30,22 +39,175 @@ export var EditorCellView = {
|
|
|
30
39
|
* 带有编辑器能力的cell view,例如raw、markdown、python、sql等
|
|
31
40
|
* 超出编辑器的相关能力放在其他的更高抽象中
|
|
32
41
|
*/
|
|
33
|
-
export var LibroEditorCellView = (_dec = prop(), _dec2 = prop(), (_class = /*#__PURE__*/function (_LibroCellView) {
|
|
42
|
+
export var LibroEditorCellView = (_dec = prop(), _dec2 = inject(LibroContextKey), _dec3 = inject(CodeEditorManager), _dec4 = prop(), _dec5 = prop(), (_class = /*#__PURE__*/function (_LibroCellView) {
|
|
34
43
|
_inherits(LibroEditorCellView, _LibroCellView);
|
|
35
44
|
var _super = _createSuper(LibroEditorCellView);
|
|
36
|
-
function LibroEditorCellView() {
|
|
45
|
+
function LibroEditorCellView(options, cellService) {
|
|
37
46
|
var _this;
|
|
38
47
|
_classCallCheck(this, LibroEditorCellView);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
48
|
+
_this = _super.call(this, options, cellService);
|
|
49
|
+
_this.toDisposeOnEditor = new DisposableCollection();
|
|
43
50
|
_initializerDefineProperty(_this, "editor", _descriptor, _assertThisInitialized(_this));
|
|
44
|
-
_initializerDefineProperty(_this, "
|
|
45
|
-
_this
|
|
51
|
+
_initializerDefineProperty(_this, "libroContextKey", _descriptor2, _assertThisInitialized(_this));
|
|
52
|
+
_initializerDefineProperty(_this, "codeEditorManager", _descriptor3, _assertThisInitialized(_this));
|
|
53
|
+
_initializerDefineProperty(_this, "editorView", _descriptor4, _assertThisInitialized(_this));
|
|
54
|
+
_initializerDefineProperty(_this, "editorStatus", _descriptor5, _assertThisInitialized(_this));
|
|
55
|
+
_this.renderEditor = function () {
|
|
56
|
+
if (_this.editorView) {
|
|
57
|
+
return /*#__PURE__*/_jsx(ViewRender, {
|
|
58
|
+
view: _this.editorView
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
};
|
|
63
|
+
_this.focus = function (toEdit) {
|
|
64
|
+
if (toEdit) {
|
|
65
|
+
_this.focusEditor();
|
|
66
|
+
} else {
|
|
67
|
+
var _this$container, _this$container2;
|
|
68
|
+
if ((_this$container = _this.container) !== null && _this$container !== void 0 && (_this$container = _this$container.current) !== null && _this$container !== void 0 && (_this$container = _this$container.parentElement) !== null && _this$container !== void 0 && _this$container.contains(document.activeElement)) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
(_this$container2 = _this.container) === null || _this$container2 === void 0 || (_this$container2 = _this$container2.current) === null || _this$container2 === void 0 || (_this$container2 = _this$container2.parentElement) === null || _this$container2 === void 0 || _this$container2.focus();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
_this.blur = function () {
|
|
75
|
+
var _this$editorView, _this$editorView2;
|
|
76
|
+
(_this$editorView = _this.editorView) === null || _this$editorView === void 0 || (_this$editorView = _this$editorView.editor) === null || _this$editorView === void 0 || _this$editorView.setOption('styleActiveLine', false);
|
|
77
|
+
(_this$editorView2 = _this.editorView) === null || _this$editorView2 === void 0 || (_this$editorView2 = _this$editorView2.editor) === null || _this$editorView2 === void 0 || _this$editorView2.setOption('highlightActiveLineGutter', false);
|
|
78
|
+
};
|
|
46
79
|
return _this;
|
|
47
80
|
}
|
|
81
|
+
LibroEditorCellView = inject(CellService)(LibroEditorCellView, undefined, 1) || LibroEditorCellView;
|
|
82
|
+
LibroEditorCellView = inject(ViewOption)(LibroEditorCellView, undefined, 0) || LibroEditorCellView;
|
|
48
83
|
_createClass(LibroEditorCellView, [{
|
|
84
|
+
key: "getEditorOption",
|
|
85
|
+
value: function getEditorOption() {
|
|
86
|
+
var option = {
|
|
87
|
+
uuid: CellUri.from(this.parent.model.id, this.model.id).toString(),
|
|
88
|
+
editorHostId: this.parent.id + this.id,
|
|
89
|
+
model: this.model,
|
|
90
|
+
config: {
|
|
91
|
+
readOnly: !this.parent.model.inputEditable,
|
|
92
|
+
editable: this.parent.model.inputEditable
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
return option;
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: "afterEditorReady",
|
|
99
|
+
value: function () {
|
|
100
|
+
var _afterEditorReady = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
101
|
+
var _this2 = this,
|
|
102
|
+
_this$editorView$onMo,
|
|
103
|
+
_this$editorView3,
|
|
104
|
+
_this$editor$onModelC,
|
|
105
|
+
_this$editor,
|
|
106
|
+
_this$editor$onModelC2;
|
|
107
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
108
|
+
while (1) switch (_context.prev = _context.next) {
|
|
109
|
+
case 0:
|
|
110
|
+
this.focusEditor();
|
|
111
|
+
this.toDisposeOnEditor.push(watch(this.parent.model, 'inputEditable', function () {
|
|
112
|
+
var _this2$editorView;
|
|
113
|
+
(_this2$editorView = _this2.editorView) === null || _this2$editorView === void 0 || (_this2$editorView = _this2$editorView.editor) === null || _this2$editorView === void 0 || _this2$editorView.setOption('readOnly', getOrigin(!_this2.parent.model.inputEditable));
|
|
114
|
+
}));
|
|
115
|
+
this.toDisposeOnEditor.push((_this$editorView$onMo = (_this$editorView3 = this.editorView) === null || _this$editorView3 === void 0 ? void 0 : _this$editorView3.onModalChange(function (val) {
|
|
116
|
+
return _this2.hasModal = val;
|
|
117
|
+
})) !== null && _this$editorView$onMo !== void 0 ? _this$editorView$onMo : Disposable.NONE);
|
|
118
|
+
this.toDisposeOnEditor.push((_this$editor$onModelC = (_this$editor = this.editor) === null || _this$editor === void 0 || (_this$editor$onModelC2 = _this$editor.onModelContentChanged) === null || _this$editor$onModelC2 === void 0 ? void 0 : _this$editor$onModelC2.call(_this$editor, function (e) {
|
|
119
|
+
_this2.parent.model.onCellContentChange({
|
|
120
|
+
cell: _this2,
|
|
121
|
+
changes: e
|
|
122
|
+
});
|
|
123
|
+
})) !== null && _this$editor$onModelC !== void 0 ? _this$editor$onModelC : Disposable.NONE);
|
|
124
|
+
case 4:
|
|
125
|
+
case "end":
|
|
126
|
+
return _context.stop();
|
|
127
|
+
}
|
|
128
|
+
}, _callee, this);
|
|
129
|
+
}));
|
|
130
|
+
function afterEditorReady() {
|
|
131
|
+
return _afterEditorReady.apply(this, arguments);
|
|
132
|
+
}
|
|
133
|
+
return afterEditorReady;
|
|
134
|
+
}()
|
|
135
|
+
}, {
|
|
136
|
+
key: "createEditor",
|
|
137
|
+
value: function () {
|
|
138
|
+
var _createEditor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
139
|
+
var _this3 = this;
|
|
140
|
+
var option, editorView;
|
|
141
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
142
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
143
|
+
case 0:
|
|
144
|
+
option = this.getEditorOption();
|
|
145
|
+
this.editorStatus = EditorStatus.LOADING;
|
|
146
|
+
|
|
147
|
+
// 防止虚拟滚动中编辑器被频繁创建
|
|
148
|
+
if (!this.editorView) {
|
|
149
|
+
_context2.next = 5;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
this.editorStatus = EditorStatus.LOADED;
|
|
153
|
+
return _context2.abrupt("return");
|
|
154
|
+
case 5:
|
|
155
|
+
_context2.next = 7;
|
|
156
|
+
return this.codeEditorManager.getOrCreateEditorView(option);
|
|
157
|
+
case 7:
|
|
158
|
+
editorView = _context2.sent;
|
|
159
|
+
this.editorView = editorView;
|
|
160
|
+
this.editorStatus = EditorStatus.LOADED;
|
|
161
|
+
editorView.onEditorStatusChange(function (e) {
|
|
162
|
+
if (e.status === 'ready') {
|
|
163
|
+
_this3.editor = _this3.editorView.editor;
|
|
164
|
+
_this3.afterEditorReady();
|
|
165
|
+
} else if (e.status === 'disposed') {
|
|
166
|
+
_this3.toDisposeOnEditor.dispose();
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
case 11:
|
|
170
|
+
case "end":
|
|
171
|
+
return _context2.stop();
|
|
172
|
+
}
|
|
173
|
+
}, _callee2, this);
|
|
174
|
+
}));
|
|
175
|
+
function createEditor() {
|
|
176
|
+
return _createEditor.apply(this, arguments);
|
|
177
|
+
}
|
|
178
|
+
return createEditor;
|
|
179
|
+
}()
|
|
180
|
+
}, {
|
|
181
|
+
key: "onViewMount",
|
|
182
|
+
value: function onViewMount() {
|
|
183
|
+
var _this$parent$model$ac;
|
|
184
|
+
this.createEditor();
|
|
185
|
+
//选中cell时才focus
|
|
186
|
+
if (((_this$parent$model$ac = this.parent.model.active) === null || _this$parent$model$ac === void 0 ? void 0 : _this$parent$model$ac.id) === this.id) {
|
|
187
|
+
this.focus(!this.parent.model.commandMode);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
key: "shouldEnterEditorMode",
|
|
192
|
+
value: function shouldEnterEditorMode(e) {
|
|
193
|
+
var _getOrigin;
|
|
194
|
+
return (_getOrigin = getOrigin(this.editorView)) !== null && _getOrigin !== void 0 && (_getOrigin = _getOrigin.editor) !== null && _getOrigin !== void 0 && (_getOrigin = _getOrigin.host) !== null && _getOrigin !== void 0 && _getOrigin.contains(e.target) && this.parent.model.commandMode ? true : false;
|
|
195
|
+
}
|
|
196
|
+
}, {
|
|
197
|
+
key: "focusEditor",
|
|
198
|
+
value: function focusEditor() {
|
|
199
|
+
var _this$editorView4, _this$parent$model$ac2;
|
|
200
|
+
//选中cell、编辑模式、非只读时才focus
|
|
201
|
+
if ((_this$editorView4 = this.editorView) !== null && _this$editorView4 !== void 0 && _this$editorView4.editor && this.editorView.editorStatus === 'ready' && ((_this$parent$model$ac2 = this.parent.model.active) === null || _this$parent$model$ac2 === void 0 ? void 0 : _this$parent$model$ac2.id) === this.id && !this.parent.model.commandMode && this.libroContextKey.commandModeEnabled === true &&
|
|
202
|
+
// 排除弹窗等情况
|
|
203
|
+
this.parent.model.inputEditable) {
|
|
204
|
+
var _this$editorView5, _this$editorView6, _this$editorView7;
|
|
205
|
+
(_this$editorView5 = this.editorView) === null || _this$editorView5 === void 0 || _this$editorView5.editor.setOption('styleActiveLine', true);
|
|
206
|
+
(_this$editorView6 = this.editorView) === null || _this$editorView6 === void 0 || _this$editorView6.editor.setOption('highlightActiveLineGutter', true);
|
|
207
|
+
(_this$editorView7 = this.editorView) === null || _this$editorView7 === void 0 || _this$editorView7.editor.focus();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
49
211
|
key: "wrapperCls",
|
|
50
212
|
get: function get() {
|
|
51
213
|
return '';
|
|
@@ -53,14 +215,14 @@ export var LibroEditorCellView = (_dec = prop(), _dec2 = prop(), (_class = /*#__
|
|
|
53
215
|
}, {
|
|
54
216
|
key: "redo",
|
|
55
217
|
value: function redo() {
|
|
56
|
-
var _this$
|
|
57
|
-
(_this$
|
|
218
|
+
var _this$editor2;
|
|
219
|
+
(_this$editor2 = this.editor) === null || _this$editor2 === void 0 || _this$editor2.redo();
|
|
58
220
|
}
|
|
59
221
|
}, {
|
|
60
222
|
key: "undo",
|
|
61
223
|
value: function undo() {
|
|
62
|
-
var _this$
|
|
63
|
-
(_this$
|
|
224
|
+
var _this$editor3;
|
|
225
|
+
(_this$editor3 = this.editor) === null || _this$editor3 === void 0 || _this$editor3.undo();
|
|
64
226
|
}
|
|
65
227
|
}]);
|
|
66
228
|
return LibroEditorCellView;
|
|
@@ -69,9 +231,26 @@ export var LibroEditorCellView = (_dec = prop(), _dec2 = prop(), (_class = /*#__
|
|
|
69
231
|
enumerable: true,
|
|
70
232
|
writable: true,
|
|
71
233
|
initializer: null
|
|
72
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "
|
|
234
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "libroContextKey", [_dec2], {
|
|
73
235
|
configurable: true,
|
|
74
236
|
enumerable: true,
|
|
75
237
|
writable: true,
|
|
76
238
|
initializer: null
|
|
239
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "codeEditorManager", [_dec3], {
|
|
240
|
+
configurable: true,
|
|
241
|
+
enumerable: true,
|
|
242
|
+
writable: true,
|
|
243
|
+
initializer: null
|
|
244
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "editorView", [_dec4], {
|
|
245
|
+
configurable: true,
|
|
246
|
+
enumerable: true,
|
|
247
|
+
writable: true,
|
|
248
|
+
initializer: null
|
|
249
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "editorStatus", [_dec5], {
|
|
250
|
+
configurable: true,
|
|
251
|
+
enumerable: true,
|
|
252
|
+
writable: true,
|
|
253
|
+
initializer: function initializer() {
|
|
254
|
+
return EditorStatus.NOTLOADED;
|
|
255
|
+
}
|
|
77
256
|
})), _class));
|
|
@@ -17,7 +17,7 @@ export declare const ExecutableCellView: {
|
|
|
17
17
|
* 带有编辑器、执行、output相关能力的cell view,例如python、sql
|
|
18
18
|
* model 必须为 ExecutableCellModel
|
|
19
19
|
*/
|
|
20
|
-
export declare abstract class
|
|
20
|
+
export declare abstract class LibroEditableExecutableCellView extends LibroEditorCellView implements ExecutableCellView {
|
|
21
21
|
model: CellModel & ExecutableCellModel;
|
|
22
22
|
outputArea: BaseOutputArea;
|
|
23
23
|
noEditorAreaHeight: number;
|
|
@@ -26,5 +26,9 @@ export declare abstract class LibroExecutableCellView extends LibroEditorCellVie
|
|
|
26
26
|
hasCellHidden(): boolean;
|
|
27
27
|
outputWatch(): void;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated use LibroEditableExecutableCellView instead.
|
|
31
|
+
*/
|
|
32
|
+
export declare const LibroExecutableCellView: typeof LibroEditableExecutableCellView;
|
|
29
33
|
export {};
|
|
30
34
|
//# sourceMappingURL=libro-executable-cell-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-executable-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/libro-executable-cell-view.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,UAAU,kBAAmB,SAAQ,cAAc;IACjD,GAAG,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,UAAU,EAAE,cAAc,CAAC;IAE3B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB;cACnB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAYvC,CAAC;AAEF;;;GAGG;AACH,8BAAsB,
|
|
1
|
+
{"version":3,"file":"libro-executable-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/libro-executable-cell-view.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,UAAU,kBAAmB,SAAQ,cAAc;IACjD,GAAG,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,UAAU,EAAE,cAAc,CAAC;IAE3B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB;cACnB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAYvC,CAAC;AAEF;;;GAGG;AACH,8BAAsB,+BACpB,SAAQ,mBACR,YAAW,kBAAkB;IAErB,KAAK,EAAE,SAAS,GAAG,mBAAmB,CAAC;IAE/C,UAAU,EAAE,cAAc,CAAC;IAEnB,kBAAkB,EAAE,MAAM,CAAC;gBAGb,OAAO,EAAE,eAAe,EACvB,WAAW,EAAE,WAAW;IAM/C,cAAc,EAAE,MAAM,IAAI,CAExB;IAGO,aAAa;IAUtB,WAAW;CAOZ;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,wCAAkC,CAAC"}
|
|
@@ -29,12 +29,12 @@ export var ExecutableCellView = {
|
|
|
29
29
|
* 带有编辑器、执行、output相关能力的cell view,例如python、sql
|
|
30
30
|
* model 必须为 ExecutableCellModel
|
|
31
31
|
*/
|
|
32
|
-
export var
|
|
33
|
-
_inherits(
|
|
34
|
-
var _super = _createSuper(
|
|
35
|
-
function
|
|
32
|
+
export var LibroEditableExecutableCellView = /*#__PURE__*/function (_LibroEditorCellView) {
|
|
33
|
+
_inherits(LibroEditableExecutableCellView, _LibroEditorCellView);
|
|
34
|
+
var _super = _createSuper(LibroEditableExecutableCellView);
|
|
35
|
+
function LibroEditableExecutableCellView(options, cellService) {
|
|
36
36
|
var _this;
|
|
37
|
-
_classCallCheck(this,
|
|
37
|
+
_classCallCheck(this, LibroEditableExecutableCellView);
|
|
38
38
|
_this = _super.call(this, options, cellService);
|
|
39
39
|
_this.outputArea = void 0;
|
|
40
40
|
_this.clearExecution = function () {
|
|
@@ -43,9 +43,9 @@ export var LibroExecutableCellView = /*#__PURE__*/function (_LibroEditorCellView
|
|
|
43
43
|
_this.outputWatch();
|
|
44
44
|
return _this;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
_createClass(
|
|
46
|
+
LibroEditableExecutableCellView = inject(CellService)(LibroEditableExecutableCellView, undefined, 1) || LibroEditableExecutableCellView;
|
|
47
|
+
LibroEditableExecutableCellView = inject(ViewOption)(LibroEditableExecutableCellView, undefined, 0) || LibroEditableExecutableCellView;
|
|
48
|
+
_createClass(LibroEditableExecutableCellView, [{
|
|
49
49
|
key: "hasCellHidden",
|
|
50
50
|
value:
|
|
51
51
|
// TODO: 性能!
|
|
@@ -65,5 +65,10 @@ export var LibroExecutableCellView = /*#__PURE__*/function (_LibroEditorCellView
|
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
67
|
}]);
|
|
68
|
-
return
|
|
69
|
-
}(LibroEditorCellView);
|
|
68
|
+
return LibroEditableExecutableCellView;
|
|
69
|
+
}(LibroEditorCellView);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated use LibroEditableExecutableCellView instead.
|
|
73
|
+
*/
|
|
74
|
+
export var LibroExecutableCellView = LibroEditableExecutableCellView;
|
|
@@ -8,6 +8,10 @@ export type CellInputBottonBlankProvider = FC<{
|
|
|
8
8
|
cell: CellView;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const CellInputBottonBlankProvider: unique symbol;
|
|
11
|
+
export type CellOutputBottomBlankProvider = FC<{
|
|
12
|
+
cell: CellView;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const CellOutputBottomBlankProvider: unique symbol;
|
|
11
15
|
export type CellOutputVisulizationProvider = FC<{
|
|
12
16
|
cell: CellView;
|
|
13
17
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-protocol.d.ts","sourceRoot":"","sources":["../../src/components/cell-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,yBAAyB,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE/D,eAAO,MAAM,yBAAyB,eAAsC,CAAC;AAE7E,MAAM,MAAM,4BAA4B,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAElE,eAAO,MAAM,4BAA4B,eAAyC,CAAC;AAEnF,MAAM,MAAM,8BAA8B,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEpE,eAAO,MAAM,8BAA8B,eAA2C,CAAC;AAEvF,MAAM,MAAM,mBAAmB,GAAG,EAAE,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChF,CAAC,CAAC;AAEH,eAAO,MAAM,mBAAmB,eAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"cell-protocol.d.ts","sourceRoot":"","sources":["../../src/components/cell-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,yBAAyB,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE/D,eAAO,MAAM,yBAAyB,eAAsC,CAAC;AAE7E,MAAM,MAAM,4BAA4B,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAElE,eAAO,MAAM,4BAA4B,eAAyC,CAAC;AAEnF,MAAM,MAAM,6BAA6B,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEnE,eAAO,MAAM,6BAA6B,eAA0C,CAAC;AAErF,MAAM,MAAM,8BAA8B,GAAG,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEpE,eAAO,MAAM,8BAA8B,eAA2C,CAAC;AAEvF,MAAM,MAAM,mBAAmB,GAAG,EAAE,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChF,CAAC,CAAC;AAEH,eAAO,MAAM,mBAAmB,eAAgC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export var CellExecutionTimeProvider = Symbol('CellExecutionTimeProvider');
|
|
2
2
|
export var CellInputBottonBlankProvider = Symbol('CellInputBottonBlankProvider');
|
|
3
|
+
export var CellOutputBottomBlankProvider = Symbol('CellOutputBottomBlankProvider');
|
|
3
4
|
export var CellOutputVisulizationProvider = Symbol('CellOutputVisulizationProvider');
|
|
4
5
|
export var BetweenCellProvider = Symbol('BetweenCellProvider');
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '../index.less';
|
|
3
3
|
import type { CellView, DndItemProps } from '../libro-protocol.js';
|
|
4
|
+
import { CellOutputBottomBlankProvider } from './cell-protocol.js';
|
|
4
5
|
import { CellExecutionTimeProvider, CellInputBottonBlankProvider, CellOutputVisulizationProvider } from './cell-protocol.js';
|
|
5
6
|
export declare const CellOutputContent: React.FC<{
|
|
6
7
|
cell: CellView;
|
|
7
8
|
}>;
|
|
8
9
|
export declare const LibroCellExecutionTime: CellExecutionTimeProvider;
|
|
9
10
|
export declare const LibroCellInputBottonBlank: CellInputBottonBlankProvider;
|
|
11
|
+
export declare const LibroCellOutputBottomBlank: CellOutputBottomBlankProvider;
|
|
10
12
|
export declare const LibroCellVisualization: CellOutputVisulizationProvider;
|
|
11
13
|
export declare const DndCellItemContent: React.NamedExoticComponent<{
|
|
12
14
|
cell: CellView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnd-cell-item-render.d.ts","sourceRoot":"","sources":["../../src/components/dnd-cell-item-render.tsx"],"names":[],"mappings":"AAcA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAUlF,OAAO,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAkBnE,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"dnd-cell-item-render.d.ts","sourceRoot":"","sources":["../../src/components/dnd-cell-item-render.tsx"],"names":[],"mappings":"AAcA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAUlF,OAAO,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAkBnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oBAAoB,CAAC;AAuE5B,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CA4C1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,yBAIpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,4BAIvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,6BAIxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,8BAIpC,CAAC;AAyJF,eAAO,MAAM,kBAAkB;UACvB,QAAQ;EA+Bd,CAAC;AAEH,eAAO,MAAM,oBAAoB,0CAgD/B,CAAC;AAyCH,eAAO,MAAM,iBAAiB,gHAA+B,CAAC"}
|
|
@@ -17,6 +17,7 @@ import { isCellView, LibroToolbarArea } from "../libro-protocol.js";
|
|
|
17
17
|
import { CellSideToolbarVisible, CellTopToolbarSetting, CollapserClickActive, OutputScrollBtnVisiable } from "../libro-setting.js";
|
|
18
18
|
import { ArrowDown, ArrowRight, ContentMore, DisableOutputScroll, EnableOutputScroll } from "../material-from-designer.js";
|
|
19
19
|
import { hasErrorOutput } from "../output/index.js";
|
|
20
|
+
import { CellOutputBottomBlankProvider } from "./cell-protocol.js";
|
|
20
21
|
import { CellExecutionTimeProvider, CellInputBottonBlankProvider, CellOutputVisulizationProvider } from "./cell-protocol.js";
|
|
21
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -24,7 +25,6 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
24
25
|
var CellInputContent = /*#__PURE__*/memo(function CellInputContent(props) {
|
|
25
26
|
var cell = props.cell;
|
|
26
27
|
var observableCell = useObserve(cell);
|
|
27
|
-
var CellExecutionTime = useInject(CellExecutionTimeProvider);
|
|
28
28
|
var CellInputBottonBlank = useInject(CellInputBottonBlankProvider);
|
|
29
29
|
if (!(observableCell !== null && observableCell !== void 0 && observableCell.view) || !isCellView(observableCell)) {
|
|
30
30
|
return null;
|
|
@@ -38,9 +38,7 @@ var CellInputContent = /*#__PURE__*/memo(function CellInputContent(props) {
|
|
|
38
38
|
}
|
|
39
39
|
return /*#__PURE__*/_jsxs("div", {
|
|
40
40
|
className: "libro-cell-input-content",
|
|
41
|
-
children: [/*#__PURE__*/_jsx(
|
|
42
|
-
cell: cell
|
|
43
|
-
}), /*#__PURE__*/_jsx(ViewRender, {
|
|
41
|
+
children: [/*#__PURE__*/_jsx(ViewRender, {
|
|
44
42
|
view: observableCell
|
|
45
43
|
}), /*#__PURE__*/_jsx(CellInputBottonBlank, {
|
|
46
44
|
cell: cell
|
|
@@ -83,6 +81,8 @@ export var CellOutputContent = /*#__PURE__*/memo(function CellOutputContent(prop
|
|
|
83
81
|
var cell = props.cell;
|
|
84
82
|
var observableCell = useObserve(cell);
|
|
85
83
|
var CellOutputVisulization = useInject(CellOutputVisulizationProvider);
|
|
84
|
+
var CellOutputBottomBlank = useInject(CellOutputBottomBlankProvider);
|
|
85
|
+
var CellExecutionTime = useInject(CellExecutionTimeProvider);
|
|
86
86
|
if (!ExecutableCellView.is(cell) || !ExecutableCellView.is(observableCell)) {
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
@@ -99,10 +99,14 @@ export var CellOutputContent = /*#__PURE__*/memo(function CellOutputContent(prop
|
|
|
99
99
|
}
|
|
100
100
|
return /*#__PURE__*/_jsxs("div", {
|
|
101
101
|
className: "libro-cell-output-content ".concat(hasOutputsScrolled ? 'scrolled' : '', " "),
|
|
102
|
-
children: [/*#__PURE__*/_jsx(
|
|
102
|
+
children: [/*#__PURE__*/_jsx(CellExecutionTime, {
|
|
103
|
+
cell: cell
|
|
104
|
+
}), /*#__PURE__*/_jsx(CellOutputVisulization, {
|
|
103
105
|
cell: cell
|
|
104
|
-
}), /*#__PURE__*/_jsx(ViewRender, {
|
|
106
|
+
}), observableCell.outputArea.length > 0 && /*#__PURE__*/_jsx(ViewRender, {
|
|
105
107
|
view: cell.outputArea
|
|
108
|
+
}), /*#__PURE__*/_jsx(CellOutputBottomBlank, {
|
|
109
|
+
cell: cell
|
|
106
110
|
})]
|
|
107
111
|
});
|
|
108
112
|
});
|
|
@@ -112,11 +116,13 @@ export var LibroCellExecutionTime = /*#__PURE__*/forwardRef(function LibroCellEx
|
|
|
112
116
|
export var LibroCellInputBottonBlank = /*#__PURE__*/forwardRef(function LibroCellInputBottonBlank() {
|
|
113
117
|
return null;
|
|
114
118
|
});
|
|
119
|
+
export var LibroCellOutputBottomBlank = /*#__PURE__*/forwardRef(function LibroCellOutputBottomBlank() {
|
|
120
|
+
return null;
|
|
121
|
+
});
|
|
115
122
|
export var LibroCellVisualization = /*#__PURE__*/forwardRef(function LibroCellVisualization() {
|
|
116
123
|
return null;
|
|
117
124
|
});
|
|
118
125
|
var CellOutput = /*#__PURE__*/forwardRef(function CellOutput(props, ref) {
|
|
119
|
-
var _cell$outputArea;
|
|
120
126
|
var cell = props.cell;
|
|
121
127
|
var outputRef = useRef(null);
|
|
122
128
|
var outputCollapserRef = useRef(null);
|
|
@@ -160,10 +166,7 @@ var CellOutput = /*#__PURE__*/forwardRef(function CellOutput(props, ref) {
|
|
|
160
166
|
// };
|
|
161
167
|
// }, [outputRef.current, cell, isExecutingRef]);
|
|
162
168
|
|
|
163
|
-
if (!ExecutableCellView.is(cell)) {
|
|
164
|
-
return null;
|
|
165
|
-
}
|
|
166
|
-
if (!isCellView(cell) || !ExecutableCellModel.is(cell.model) || !((_cell$outputArea = cell.outputArea) !== null && _cell$outputArea !== void 0 && _cell$outputArea.length)) {
|
|
169
|
+
if (!ExecutableCellView.is(cell) || !ExecutableCellModel.is(cell.model)) {
|
|
167
170
|
return null;
|
|
168
171
|
}
|
|
169
172
|
var handleCellOutputCollapser = function handleCellOutputCollapser() {
|
|
@@ -190,7 +193,7 @@ var CellOutput = /*#__PURE__*/forwardRef(function CellOutput(props, ref) {
|
|
|
190
193
|
className: 'libro-cell-output-collapser',
|
|
191
194
|
ref: outputCollapserRef,
|
|
192
195
|
onClick: handleCellOutputCollapser
|
|
193
|
-
}), outputScrollBtnVisiable && /*#__PURE__*/_jsx("div", {
|
|
196
|
+
}), outputScrollBtnVisiable && cell.outputArea.length > 0 && /*#__PURE__*/_jsx("div", {
|
|
194
197
|
className: "libro-cell-output-scroll",
|
|
195
198
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
196
199
|
title: "".concat(cell.model.hasOutputsScrolled ? '取消固定 Output 高度' : '固定 Output 高度'),
|
package/es/index.less
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
height: 100%;
|
|
41
41
|
padding: 0;
|
|
42
42
|
overflow-y: auto;
|
|
43
|
+
scrollbar-gutter: stable;
|
|
43
44
|
|
|
44
45
|
.libro-dnd-list-container {
|
|
45
46
|
height: 100%;
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
|
|
84
85
|
.mana-toolbar {
|
|
85
86
|
.mana-toolbar-item {
|
|
87
|
+
height: 24px;
|
|
86
88
|
display: flex;
|
|
87
89
|
align-items: center;
|
|
88
90
|
justify-content: center;
|
|
@@ -408,6 +410,7 @@
|
|
|
408
410
|
height: 41px;
|
|
409
411
|
border-bottom-right-radius: 4px;
|
|
410
412
|
border-bottom-left-radius: 4px;
|
|
413
|
+
border-top: 1px solid var(--mana-libro-code-border-color);
|
|
411
414
|
|
|
412
415
|
svg {
|
|
413
416
|
position: absolute;
|
|
@@ -667,6 +670,11 @@
|
|
|
667
670
|
.mana-menu-item {
|
|
668
671
|
button {
|
|
669
672
|
display: block;
|
|
673
|
+
padding: 0 12px;
|
|
674
|
+
|
|
675
|
+
.mana-menu-item-icon {
|
|
676
|
+
display: none;
|
|
677
|
+
}
|
|
670
678
|
}
|
|
671
679
|
}
|
|
672
680
|
|
|
@@ -758,7 +766,7 @@
|
|
|
758
766
|
}
|
|
759
767
|
|
|
760
768
|
.libro-side-tooltip {
|
|
761
|
-
text-align:
|
|
769
|
+
text-align: center;
|
|
762
770
|
}
|
|
763
771
|
|
|
764
772
|
.libro-tooltip-text {
|
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AA2C/C,eAAO,MAAM,WAAW,YA2ErB,CAAC"}
|