@difizen/libro-core 0.1.0 → 0.1.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/es/add-cell/index.less +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +1 -2
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.js +12 -6
- package/es/add-cell/libro-add-cell-view.d.ts +4 -4
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-view.js +4 -6
- package/es/cell/libro-cell-contribution.d.ts +1 -2
- package/es/cell/libro-cell-contribution.d.ts.map +1 -1
- package/es/cell/libro-cell-contribution.js +14 -8
- package/es/cell/libro-cell-model.d.ts +9 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -1
- package/es/cell/libro-cell-model.js +53 -11
- package/es/cell/libro-cell-protocol.d.ts +2 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -1
- package/es/cell/libro-cell-view.d.ts +39 -3
- package/es/cell/libro-cell-view.d.ts.map +1 -1
- package/es/cell/libro-cell-view.js +54 -24
- package/es/cell/libro-edit-cell-view.d.ts +6 -12
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -1
- package/es/cell/libro-edit-cell-view.js +9 -4
- package/es/cell/libro-executable-cell-view.d.ts +2 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -1
- package/es/cell/libro-executable-cell-view.js +4 -1
- package/es/collapse-service.d.ts +1 -1
- package/es/collapse-service.d.ts.map +1 -1
- package/es/collapse-service.js +1 -1
- package/es/command/document-commands.d.ts +5 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +3 -2
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +3 -0
- package/es/command/libro-command-contribution.d.ts +0 -1
- package/es/command/libro-command-contribution.d.ts.map +1 -1
- package/es/command/libro-command-contribution.js +179 -129
- package/es/command/libro-command-register.d.ts +0 -1
- package/es/command/libro-command-register.d.ts.map +1 -1
- package/es/command/libro-command-register.js +13 -7
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +17 -4
- package/es/components/cell-protocol.d.ts +5 -5
- package/es/components/cell-protocol.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.d.ts +6 -2
- package/es/components/dnd-cell-item-render.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.js +194 -89
- package/es/components/dnd-component/custom-drag-layer.d.ts +1 -1
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -1
- package/es/components/dnd-component/custom-drag-layer.js +3 -4
- package/es/components/dnd-component/default-dnd-content.d.ts +2 -1
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -1
- package/es/components/dnd-component/default-dnd-content.js +100 -44
- package/es/components/dnd-component/dnd-context.js +1 -1
- package/es/components/dnd-component/dnd-list.d.ts +9 -5
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
- package/es/components/dnd-component/dnd-list.js +93 -26
- package/es/components/dnd-component/index.d.ts +1 -1
- package/es/components/dnd-component/index.d.ts.map +1 -1
- package/es/components/dnd-component/index.js +2 -2
- package/es/components/dnd-component/index.less +8 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts +22 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts.map +1 -0
- package/es/components/dnd-component/overscanIndices-getter.js +58 -0
- package/es/components/dnd-component/virtualized-manager.d.ts +19 -0
- package/es/components/dnd-component/virtualized-manager.d.ts.map +1 -0
- package/es/components/dnd-component/virtualized-manager.js +60 -0
- package/es/components/index.d.ts +2 -2
- package/es/components/index.d.ts.map +1 -1
- package/es/components/index.js +2 -2
- package/es/components/libro-virtualized-render.d.ts +15 -0
- package/es/components/libro-virtualized-render.d.ts.map +1 -0
- package/es/components/libro-virtualized-render.js +174 -0
- package/es/content/index.d.ts +1 -0
- package/es/content/index.d.ts.map +1 -1
- package/es/content/index.js +2 -1
- package/es/content/libro-content-contribution.d.ts +2 -2
- package/es/content/libro-content-contribution.d.ts.map +1 -1
- package/es/content/libro-content-contribution.js +2 -3
- package/es/content/libro-content-module.d.ts.map +1 -1
- package/es/content/libro-content-module.js +3 -2
- package/es/content/libro-content-protocol.d.ts +5 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -1
- package/es/content/libro-content-protocol.js +2 -1
- package/es/content/libro-content-service.d.ts +6 -4
- package/es/content/libro-content-service.d.ts.map +1 -1
- package/es/content/libro-content-service.js +36 -8
- package/es/content/libro-save-content-contribution.d.ts +6 -0
- package/es/content/libro-save-content-contribution.d.ts.map +1 -0
- package/es/content/libro-save-content-contribution.js +27 -0
- package/es/formatter/index.d.ts +6 -0
- package/es/formatter/index.d.ts.map +1 -0
- package/es/formatter/index.js +5 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-json-contribution.js +41 -0
- package/es/formatter/libro-formatter-manager.d.ts +16 -0
- package/es/formatter/libro-formatter-manager.d.ts.map +1 -0
- package/es/formatter/libro-formatter-manager.js +86 -0
- package/es/formatter/libro-formatter-module.d.ts +3 -0
- package/es/formatter/libro-formatter-module.d.ts.map +1 -0
- package/es/formatter/libro-formatter-module.js +7 -0
- package/es/formatter/libro-formatter-protocol.d.ts +37 -0
- package/es/formatter/libro-formatter-protocol.d.ts.map +1 -0
- package/es/formatter/libro-formatter-protocol.js +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-string-contribution.js +41 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts +7 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-trans-default-contribution.js +19 -0
- package/es/index.d.ts +5 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +6 -2
- package/es/index.less +135 -58
- package/es/libro-context-key.d.ts.map +1 -1
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-model.d.ts +13 -2
- package/es/libro-model.d.ts.map +1 -1
- package/es/libro-model.js +149 -70
- package/es/libro-protocol.d.ts +44 -2
- package/es/libro-protocol.d.ts.map +1 -1
- package/es/libro-protocol.js +16 -3
- package/es/libro-service.d.ts +1 -1
- package/es/libro-service.d.ts.map +1 -1
- package/es/libro-service.js +29 -20
- package/es/libro-setting-contribution.d.ts +5 -0
- package/es/libro-setting-contribution.d.ts.map +1 -0
- package/es/{configuration/libro-configuration-contribution.js → libro-setting-contribution.js} +8 -9
- package/es/libro-setting.d.ts +11 -0
- package/es/libro-setting.d.ts.map +1 -0
- package/es/{configuration/libro-configuration.js → libro-setting.js} +17 -7
- package/es/libro-view.d.ts +21 -8
- package/es/libro-view.d.ts.map +1 -1
- package/es/libro-view.js +477 -338
- package/es/material-from-designer.d.ts +30 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +112 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +20 -5
- package/es/output/output-area.d.ts +3 -4
- package/es/output/output-area.d.ts.map +1 -1
- package/es/output/output-area.js +23 -16
- package/es/output/output-contribution.d.ts +0 -1
- package/es/output/output-contribution.d.ts.map +1 -1
- package/es/output/output-contribution.js +14 -9
- package/es/output/output-model.d.ts +2 -2
- package/es/output/output-model.d.ts.map +1 -1
- package/es/output/output-model.js +2 -2
- package/es/output/output-protocol.d.ts.map +1 -1
- package/es/output/output-protocol.js +0 -2
- package/es/settings/index.d.ts +5 -0
- package/es/settings/index.d.ts.map +1 -0
- package/es/settings/index.js +4 -0
- package/es/settings/index.less +3 -0
- package/es/settings/module.d.ts +3 -0
- package/es/settings/module.d.ts.map +1 -0
- package/es/settings/module.js +4 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts +13 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-panel-view.js +115 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts +6 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-render-contribution.js +77 -0
- package/es/settings/setting-editor/default-node-render.d.ts +9 -0
- package/es/settings/setting-editor/default-node-render.d.ts.map +1 -0
- package/es/settings/setting-editor/default-node-render.js +79 -0
- package/es/settings/setting-editor/index.d.ts +7 -0
- package/es/settings/setting-editor/index.d.ts.map +1 -0
- package/es/settings/setting-editor/index.js +6 -0
- package/es/settings/setting-editor/index.less +12 -0
- package/es/settings/setting-editor/module.d.ts +3 -0
- package/es/settings/setting-editor/module.d.ts.map +1 -0
- package/es/settings/setting-editor/module.js +7 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts +15 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-editor-view.js +169 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts +9 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-service.js +118 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts +19 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-view.js +88 -0
- package/es/settings/settings-contribution.d.ts +7 -0
- package/es/settings/settings-contribution.d.ts.map +1 -0
- package/es/settings/settings-contribution.js +36 -0
- package/es/settings/settings-modal.d.ts +5 -0
- package/es/settings/settings-modal.d.ts.map +1 -0
- package/es/settings/settings-modal.js +53 -0
- package/es/settings/settings-modal.less +3 -0
- package/es/settings/settings-protocol.d.ts +4 -0
- package/es/settings/settings-protocol.d.ts.map +1 -0
- package/es/settings/settings-protocol.js +5 -0
- package/es/slot/libro-slot-manager.d.ts +2 -2
- package/es/slot/libro-slot-manager.d.ts.map +1 -1
- package/es/slot/libro-slot-manager.js +14 -8
- package/es/slot/libro-slot-view.d.ts +3 -3
- package/es/slot/libro-slot-view.d.ts.map +1 -1
- package/es/slot/libro-slot-view.js +2 -2
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +7 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts +3 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts.map +1 -0
- package/es/toolbar/all-outputs-scroll-icon.js +10 -0
- package/es/toolbar/libro-toolbar.d.ts +2 -1
- package/es/toolbar/libro-toolbar.d.ts.map +1 -1
- package/es/toolbar/libro-toolbar.js +44 -8
- package/es/toolbar/restart-clear-outputs-modal.d.ts +1 -2
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -1
- package/es/toolbar/restart-clear-outputs-modal.js +2 -2
- package/es/toolbar/shutdown-modal.d.ts +1 -2
- package/es/toolbar/shutdown-modal.d.ts.map +1 -1
- package/es/toolbar/shutdown-modal.js +2 -2
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -1
- package/es/toolbar/side-toolar-more-select.js +2 -2
- package/es/virtualized-manager-helper.d.ts +11 -0
- package/es/virtualized-manager-helper.d.ts.map +1 -0
- package/es/virtualized-manager-helper.js +51 -0
- package/es/virtualized-manager.d.ts +19 -0
- package/es/virtualized-manager.d.ts.map +1 -0
- package/es/virtualized-manager.js +61 -0
- package/package.json +9 -6
- package/src/add-cell/index.less +1 -1
- package/src/add-cell/libro-add-cell-slot-contribution.ts +1 -4
- package/src/add-cell/libro-add-cell-view.tsx +13 -6
- package/src/cell/libro-cell-contribution.ts +2 -6
- package/src/cell/libro-cell-model.ts +57 -4
- package/src/cell/libro-cell-protocol.ts +2 -0
- package/src/cell/libro-cell-view.tsx +21 -9
- package/src/cell/libro-edit-cell-view.tsx +10 -9
- package/src/cell/libro-executable-cell-view.ts +6 -1
- package/src/collapse-service.ts +1 -1
- package/src/command/document-commands.ts +3 -5
- package/src/command/kernel-command.ts +3 -0
- package/src/command/libro-command-contribution.ts +107 -91
- package/src/command/libro-command-register.ts +1 -4
- package/src/command/notebook-commands.ts +16 -3
- package/src/components/cell-protocol.ts +5 -5
- package/src/components/dnd-cell-item-render.tsx +239 -92
- package/src/components/dnd-component/custom-drag-layer.tsx +5 -6
- package/src/components/dnd-component/default-dnd-content.tsx +113 -42
- package/src/components/dnd-component/dnd-context.tsx +1 -1
- package/src/components/dnd-component/dnd-list.tsx +135 -43
- package/src/components/dnd-component/index.less +8 -0
- package/src/components/dnd-component/index.tsx +1 -1
- package/src/components/dnd-component/overscanIndices-getter.ts +92 -0
- package/src/components/dnd-component/virtualized-manager.ts +34 -0
- package/src/components/index.ts +2 -2
- package/src/components/libro-virtualized-render.tsx +178 -0
- package/src/content/index.ts +1 -0
- package/src/content/libro-content-contribution.ts +2 -3
- package/src/content/libro-content-module.ts +11 -3
- package/src/content/libro-content-protocol.ts +6 -0
- package/src/content/libro-content-service.ts +26 -8
- package/src/content/libro-save-content-contribution.ts +12 -0
- package/src/formatter/index.ts +5 -0
- package/src/formatter/libro-formatter-json-contribution.ts +42 -0
- package/src/formatter/libro-formatter-manager.ts +85 -0
- package/src/formatter/libro-formatter-module.ts +19 -0
- package/src/formatter/libro-formatter-protocol.ts +63 -0
- package/src/formatter/libro-formatter-string-contribution.ts +41 -0
- package/src/formatter/libro-formatter-trans-default-contribution.ts +15 -0
- package/src/index.less +135 -58
- package/src/index.tsx +6 -1
- package/src/libro-context-key.ts +3 -3
- package/src/libro-model.ts +87 -23
- package/src/libro-protocol.ts +81 -4
- package/src/libro-service.ts +4 -13
- package/src/{configuration/libro-configuration-contribution.ts → libro-setting-contribution.ts} +7 -8
- package/src/{configuration/libro-configuration.ts → libro-setting.ts} +18 -7
- package/src/libro-view.tsx +273 -141
- package/src/material-from-designer.tsx +93 -1
- package/src/module.ts +29 -7
- package/src/output/output-area.tsx +18 -12
- package/src/output/output-contribution.ts +2 -6
- package/src/output/output-model.tsx +3 -3
- package/src/output/output-protocol.ts +0 -1
- package/src/settings/index.less +3 -0
- package/src/settings/index.ts +4 -0
- package/src/settings/module.ts +8 -0
- package/src/settings/setting-editor/configuration-panel-view.tsx +89 -0
- package/src/settings/setting-editor/configuration-render-contribution.ts +81 -0
- package/src/settings/setting-editor/default-node-render.tsx +65 -0
- package/src/settings/setting-editor/index.less +12 -0
- package/src/settings/setting-editor/index.ts +6 -0
- package/src/settings/setting-editor/module.ts +17 -0
- package/src/settings/setting-editor/setting-editor-view.tsx +93 -0
- package/src/settings/setting-editor/setting-tree-service.ts +82 -0
- package/src/settings/setting-editor/setting-tree-view.tsx +95 -0
- package/src/settings/settings-contribution.tsx +24 -0
- package/src/settings/settings-modal.less +3 -0
- package/src/settings/settings-modal.tsx +50 -0
- package/src/settings/settings-protocol.ts +7 -0
- package/src/slot/libro-slot-manager.ts +1 -3
- package/src/slot/libro-slot-view.tsx +2 -5
- package/src/theme/libro-color-registry.ts +6 -0
- package/src/toolbar/all-outputs-scroll-icon.tsx +19 -0
- package/src/toolbar/libro-toolbar.tsx +30 -5
- package/src/toolbar/restart-clear-outputs-modal.tsx +3 -3
- package/src/toolbar/shutdown-modal.tsx +3 -3
- package/src/toolbar/side-toolar-more-select.tsx +2 -1
- package/src/virtualized-manager-helper.ts +29 -0
- package/src/virtualized-manager.ts +34 -0
|
@@ -1,5 +1,5 @@
|
|
|
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, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
3
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
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
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); }); }; }
|
|
@@ -39,7 +39,7 @@ export var LibroCellComponent = /*#__PURE__*/React.forwardRef(function LibroCell
|
|
|
39
39
|
children: instance.model.value
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
|
-
export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
42
|
+
export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec7 = prop(), _dec8 = prop(), _dec9 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
43
43
|
_inherits(LibroCellView, _BaseView);
|
|
44
44
|
var _super = _createSuper(LibroCellView);
|
|
45
45
|
function LibroCellView(options, cellService) {
|
|
@@ -48,14 +48,17 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
|
|
|
48
48
|
_this = _super.call(this);
|
|
49
49
|
_this.toDispose = new DisposableCollection();
|
|
50
50
|
_this.options = void 0;
|
|
51
|
-
_initializerDefineProperty(_this, "
|
|
51
|
+
_initializerDefineProperty(_this, "noEditorAreaHeight", _descriptor, _assertThisInitialized(_this));
|
|
52
|
+
_initializerDefineProperty(_this, "cellViewTopPos", _descriptor2, _assertThisInitialized(_this));
|
|
53
|
+
_initializerDefineProperty(_this, "renderEditorIntoVirtualized", _descriptor3, _assertThisInitialized(_this));
|
|
54
|
+
_initializerDefineProperty(_this, "model", _descriptor4, _assertThisInitialized(_this));
|
|
52
55
|
_this.cellService = void 0;
|
|
53
56
|
_this.view = LibroCellComponent;
|
|
54
57
|
_this.parent = void 0;
|
|
55
|
-
_initializerDefineProperty(_this, "className",
|
|
56
|
-
_initializerDefineProperty(_this, "hasInputHidden",
|
|
57
|
-
_initializerDefineProperty(_this, "collapsedHidden",
|
|
58
|
-
_initializerDefineProperty(_this, "hasModal",
|
|
58
|
+
_initializerDefineProperty(_this, "className", _descriptor5, _assertThisInitialized(_this));
|
|
59
|
+
_initializerDefineProperty(_this, "hasInputHidden", _descriptor6, _assertThisInitialized(_this));
|
|
60
|
+
_initializerDefineProperty(_this, "collapsedHidden", _descriptor7, _assertThisInitialized(_this));
|
|
61
|
+
_initializerDefineProperty(_this, "hasModal", _descriptor8, _assertThisInitialized(_this));
|
|
59
62
|
_this.disposed = false;
|
|
60
63
|
_this.toJSONWithoutId = function () {
|
|
61
64
|
var JsonObject = _this.toJSON();
|
|
@@ -81,20 +84,29 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
|
|
|
81
84
|
value: function cellWatch() {
|
|
82
85
|
var _this2 = this;
|
|
83
86
|
this.toDispose.push(watch(this.model, 'value', function () {
|
|
84
|
-
var _this2$parent$model$o, _this2$parent$model;
|
|
87
|
+
var _this2$parent$model$o, _this2$parent$model, _this2$parent$model$o2, _this2$parent$model2;
|
|
85
88
|
(_this2$parent$model$o = (_this2$parent$model = _this2.parent.model).onChange) === null || _this2$parent$model$o === void 0 || _this2$parent$model$o.call(_this2$parent$model);
|
|
89
|
+
(_this2$parent$model$o2 = (_this2$parent$model2 = _this2.parent.model).onSourceChange) === null || _this2$parent$model$o2 === void 0 || _this2$parent$model$o2.call(_this2$parent$model2);
|
|
86
90
|
}));
|
|
87
91
|
this.toDispose.push(watch(this.model, 'type', function () {
|
|
88
|
-
var _this2$parent$model$
|
|
89
|
-
(_this2$parent$model$
|
|
92
|
+
var _this2$parent$model$o3, _this2$parent$model3, _this2$parent$model$o4, _this2$parent$model4;
|
|
93
|
+
(_this2$parent$model$o3 = (_this2$parent$model3 = _this2.parent.model).onChange) === null || _this2$parent$model$o3 === void 0 || _this2$parent$model$o3.call(_this2$parent$model3);
|
|
94
|
+
(_this2$parent$model$o4 = (_this2$parent$model4 = _this2.parent.model).onSourceChange) === null || _this2$parent$model$o4 === void 0 || _this2$parent$model$o4.call(_this2$parent$model4);
|
|
90
95
|
}));
|
|
91
96
|
if (ExecutableCellModel.is(this.model)) {
|
|
92
97
|
this.toDispose.push(watch(this.model, 'executeCount', function () {
|
|
93
|
-
var _this2$parent$model$
|
|
94
|
-
(_this2$parent$model$
|
|
98
|
+
var _this2$parent$model$o5, _this2$parent$model5;
|
|
99
|
+
(_this2$parent$model$o5 = (_this2$parent$model5 = _this2.parent.model).onChange) === null || _this2$parent$model$o5 === void 0 || _this2$parent$model$o5.call(_this2$parent$model5);
|
|
95
100
|
}));
|
|
96
101
|
}
|
|
97
102
|
}
|
|
103
|
+
|
|
104
|
+
// 计算编辑器区相对于编辑器区垂直方向的偏移量
|
|
105
|
+
}, {
|
|
106
|
+
key: "calcEditorOffset",
|
|
107
|
+
value: function calcEditorOffset() {
|
|
108
|
+
return 16 + 1;
|
|
109
|
+
}
|
|
98
110
|
}, {
|
|
99
111
|
key: "hasCellHidden",
|
|
100
112
|
value: function hasCellHidden() {
|
|
@@ -121,7 +133,7 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
|
|
|
121
133
|
}() // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
122
134
|
}, {
|
|
123
135
|
key: "shouldEnterEditorMode",
|
|
124
|
-
value: function shouldEnterEditorMode(
|
|
136
|
+
value: function shouldEnterEditorMode(e) {
|
|
125
137
|
return false;
|
|
126
138
|
}
|
|
127
139
|
}, {
|
|
@@ -132,17 +144,14 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
|
|
|
132
144
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
145
|
}, {
|
|
134
146
|
key: "focus",
|
|
135
|
-
value: function focus(
|
|
147
|
+
value: function focus(isEdit) {
|
|
136
148
|
//
|
|
137
149
|
}
|
|
138
150
|
}, {
|
|
139
151
|
key: "dispose",
|
|
140
152
|
value: function dispose() {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
_get(_getPrototypeOf(LibroCellView.prototype), "dispose", this).call(this);
|
|
144
|
-
}
|
|
145
|
-
this.disposed = true;
|
|
153
|
+
this.toDispose.dispose();
|
|
154
|
+
_get(_getPrototypeOf(LibroCellView.prototype), "dispose", this).call(this);
|
|
146
155
|
}
|
|
147
156
|
}, {
|
|
148
157
|
key: "toJSON",
|
|
@@ -157,31 +166,52 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
|
|
|
157
166
|
}
|
|
158
167
|
}]);
|
|
159
168
|
return LibroCellView;
|
|
160
|
-
}(BaseView), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "
|
|
169
|
+
}(BaseView), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "noEditorAreaHeight", [_dec2], {
|
|
170
|
+
configurable: true,
|
|
171
|
+
enumerable: true,
|
|
172
|
+
writable: true,
|
|
173
|
+
initializer: function initializer() {
|
|
174
|
+
return 0;
|
|
175
|
+
}
|
|
176
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "cellViewTopPos", [_dec3], {
|
|
177
|
+
configurable: true,
|
|
178
|
+
enumerable: true,
|
|
179
|
+
writable: true,
|
|
180
|
+
initializer: function initializer() {
|
|
181
|
+
return 0;
|
|
182
|
+
}
|
|
183
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "renderEditorIntoVirtualized", [_dec4], {
|
|
184
|
+
configurable: true,
|
|
185
|
+
enumerable: true,
|
|
186
|
+
writable: true,
|
|
187
|
+
initializer: function initializer() {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "model", [_dec5], {
|
|
161
191
|
configurable: true,
|
|
162
192
|
enumerable: true,
|
|
163
193
|
writable: true,
|
|
164
194
|
initializer: null
|
|
165
|
-
}),
|
|
195
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "className", [_dec6], {
|
|
166
196
|
configurable: true,
|
|
167
197
|
enumerable: true,
|
|
168
198
|
writable: true,
|
|
169
199
|
initializer: function initializer() {
|
|
170
200
|
return 'libro-cell-view-container';
|
|
171
201
|
}
|
|
172
|
-
}),
|
|
202
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "hasInputHidden", [_dec7], {
|
|
173
203
|
configurable: true,
|
|
174
204
|
enumerable: true,
|
|
175
205
|
writable: true,
|
|
176
206
|
initializer: null
|
|
177
|
-
}),
|
|
207
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "collapsedHidden", [_dec8], {
|
|
178
208
|
configurable: true,
|
|
179
209
|
enumerable: true,
|
|
180
210
|
writable: true,
|
|
181
211
|
initializer: function initializer() {
|
|
182
212
|
return false;
|
|
183
213
|
}
|
|
184
|
-
}),
|
|
214
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "hasModal", [_dec9], {
|
|
185
215
|
configurable: true,
|
|
186
216
|
enumerable: true,
|
|
187
217
|
writable: true,
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type { IEditor
|
|
2
|
-
import type {
|
|
1
|
+
import type { IEditor } from '@difizen/libro-code-editor';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { CellView, EditorStatus } from '../libro-protocol.js';
|
|
3
4
|
import { LibroCellView } from './libro-cell-view.js';
|
|
4
5
|
export interface EditorCellView extends CellView {
|
|
5
6
|
editor: IEditor | undefined;
|
|
6
7
|
redo: () => void;
|
|
7
8
|
undo: () => void;
|
|
8
|
-
|
|
9
|
-
getSelectionsOffsetAt: (selection: IRange) => {
|
|
10
|
-
start: number;
|
|
11
|
-
end: number;
|
|
12
|
-
};
|
|
9
|
+
renderEditor: () => ReactNode;
|
|
13
10
|
}
|
|
14
11
|
export declare const EditorCellView: {
|
|
15
12
|
is: (arg: Record<any, any> | undefined) => arg is EditorCellView;
|
|
@@ -20,11 +17,8 @@ export declare const EditorCellView: {
|
|
|
20
17
|
*/
|
|
21
18
|
export declare abstract class LibroEditorCellView extends LibroCellView implements EditorCellView {
|
|
22
19
|
editor: IEditor | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
start: number;
|
|
26
|
-
end: number;
|
|
27
|
-
};
|
|
20
|
+
editorStatus: EditorStatus;
|
|
21
|
+
renderEditor: () => ReactNode;
|
|
28
22
|
get wrapperCls(): string;
|
|
29
23
|
redo(): void;
|
|
30
24
|
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,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-edit-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/libro-edit-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGnE,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;IAGzB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAG5B,YAAY,EAAE,YAAY,CAAC;IAE3B,YAAY,EAAE,MAAM,SAAS,CAAC;IAE9B,IAAI,UAAU,WAEb;IAED,IAAI,IAAI,IAAI;IAIZ,IAAI,IAAI,IAAI;CAGb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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, _class, _descriptor;
|
|
2
|
+
var _dec, _dec2, _class, _descriptor, _descriptor2;
|
|
3
3
|
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
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
5
|
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); } }
|
|
@@ -30,7 +30,7 @@ export var EditorCellView = {
|
|
|
30
30
|
* 带有编辑器能力的cell view,例如raw、markdown、python、sql等
|
|
31
31
|
* 超出编辑器的相关能力放在其他的更高抽象中
|
|
32
32
|
*/
|
|
33
|
-
export var LibroEditorCellView = (_dec = prop(), (_class = /*#__PURE__*/function (_LibroCellView) {
|
|
33
|
+
export var LibroEditorCellView = (_dec = prop(), _dec2 = prop(), (_class = /*#__PURE__*/function (_LibroCellView) {
|
|
34
34
|
_inherits(LibroEditorCellView, _LibroCellView);
|
|
35
35
|
var _super = _createSuper(LibroEditorCellView);
|
|
36
36
|
function LibroEditorCellView() {
|
|
@@ -41,8 +41,8 @@ export var LibroEditorCellView = (_dec = prop(), (_class = /*#__PURE__*/function
|
|
|
41
41
|
}
|
|
42
42
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
43
43
|
_initializerDefineProperty(_this, "editor", _descriptor, _assertThisInitialized(_this));
|
|
44
|
-
_this
|
|
45
|
-
_this.
|
|
44
|
+
_initializerDefineProperty(_this, "editorStatus", _descriptor2, _assertThisInitialized(_this));
|
|
45
|
+
_this.renderEditor = void 0;
|
|
46
46
|
return _this;
|
|
47
47
|
}
|
|
48
48
|
_createClass(LibroEditorCellView, [{
|
|
@@ -69,4 +69,9 @@ export var LibroEditorCellView = (_dec = prop(), (_class = /*#__PURE__*/function
|
|
|
69
69
|
enumerable: true,
|
|
70
70
|
writable: true,
|
|
71
71
|
initializer: null
|
|
72
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "editorStatus", [_dec2], {
|
|
73
|
+
configurable: true,
|
|
74
|
+
enumerable: true,
|
|
75
|
+
writable: true,
|
|
76
|
+
initializer: null
|
|
72
77
|
})), _class));
|
|
@@ -7,6 +7,7 @@ import { ExecutableCellModel } from './libro-executable-cell-model.js';
|
|
|
7
7
|
interface ExecutableCellView extends EditorCellView {
|
|
8
8
|
clearExecution: () => void;
|
|
9
9
|
outputArea: BaseOutputArea;
|
|
10
|
+
noEditorAreaHeight: number;
|
|
10
11
|
}
|
|
11
12
|
export declare const ExecutableCellView: {
|
|
12
13
|
is: (arg: Record<any, any> | undefined) => arg is ExecutableCellView;
|
|
@@ -18,6 +19,7 @@ export declare const ExecutableCellView: {
|
|
|
18
19
|
export declare abstract class LibroExecutableCellView extends LibroEditorCellView implements ExecutableCellView {
|
|
19
20
|
model: CellModel & ExecutableCellModel;
|
|
20
21
|
outputArea: BaseOutputArea;
|
|
22
|
+
noEditorAreaHeight: number;
|
|
21
23
|
constructor(options: CellViewOptions, cellService: CellService);
|
|
22
24
|
clearExecution: () => void;
|
|
23
25
|
hasCellHidden(): boolean;
|
|
@@ -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,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB;cACnB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAWvC,CAAC;AAEF;;;GAGG;AACH,8BAAsB,uBACpB,SAAQ,mBACR,YAAW,kBAAkB;IAErB,KAAK,EAAE,SAAS,GAAG,mBAAmB,CAAC;
|
|
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,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;CAWvC,CAAC;AAEF;;;GAGG;AACH,8BAAsB,uBACpB,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"}
|
|
@@ -36,6 +36,7 @@ export var LibroExecutableCellView = /*#__PURE__*/function (_LibroEditorCellView
|
|
|
36
36
|
var _this;
|
|
37
37
|
_classCallCheck(this, LibroExecutableCellView);
|
|
38
38
|
_this = _super.call(this, options, cellService);
|
|
39
|
+
_this.outputArea = void 0;
|
|
39
40
|
_this.clearExecution = function () {
|
|
40
41
|
//
|
|
41
42
|
};
|
|
@@ -46,7 +47,9 @@ export var LibroExecutableCellView = /*#__PURE__*/function (_LibroEditorCellView
|
|
|
46
47
|
LibroExecutableCellView = inject(ViewOption)(LibroExecutableCellView, undefined, 0) || LibroExecutableCellView;
|
|
47
48
|
_createClass(LibroExecutableCellView, [{
|
|
48
49
|
key: "hasCellHidden",
|
|
49
|
-
value:
|
|
50
|
+
value:
|
|
51
|
+
// TODO: 性能!
|
|
52
|
+
function hasCellHidden() {
|
|
50
53
|
if (!ExecutableCellModel.is(this.model) || this.outputArea && this.outputArea.length < 1) {
|
|
51
54
|
return this.hasInputHidden;
|
|
52
55
|
}
|
package/es/collapse-service.d.ts
CHANGED
|
@@ -31,6 +31,6 @@ export declare class DefaultCollapseService implements CollapseService {
|
|
|
31
31
|
view: LibroView;
|
|
32
32
|
constructor(option: CollapseServiceOption);
|
|
33
33
|
setHeadingCollapse(cell: CellView, collapsing: boolean): void;
|
|
34
|
-
getCollapsibleChildNumber(
|
|
34
|
+
getCollapsibleChildNumber(cell: CellView): number;
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=collapse-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-service.d.ts","sourceRoot":"","sources":["../src/collapse-service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,CAAC;CACjB;AACD,eAAO,MAAM,qBAAqB,eAAkC,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,qBAAqB,KAAK,eAAe,CAAC;AACxF,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,eAAe;cAChB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAQvC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,OAAO,CAAC;IAE1B,IAAI,EAAE,SAAS,CAAC;IAEhB,kBAAkB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAElE,yBAAyB,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;CACvD;AAED,eAAO,MAAM,eAAe,eAA4B,CAAC;AAEzD,qBACa,sBAAuB,YAAW,eAAe;IAE5D,gBAAgB,UAAS;IAEzB,IAAI,EAAE,SAAS,CAAC;gBAE2B,MAAM,EAAE,qBAAqB;IAIxE,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO;IAOtD,yBAAyB,CAAC,
|
|
1
|
+
{"version":3,"file":"collapse-service.d.ts","sourceRoot":"","sources":["../src/collapse-service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,CAAC;CACjB;AACD,eAAO,MAAM,qBAAqB,eAAkC,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,qBAAqB,KAAK,eAAe,CAAC;AACxF,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,eAAe;cAChB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAQvC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,OAAO,CAAC;IAE1B,IAAI,EAAE,SAAS,CAAC;IAEhB,kBAAkB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAElE,yBAAyB,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;CACvD;AAED,eAAO,MAAM,eAAe,eAA4B,CAAC;AAEzD,qBACa,sBAAuB,YAAW,eAAe;IAE5D,gBAAgB,UAAS;IAEzB,IAAI,EAAE,SAAS,CAAC;gBAE2B,MAAM,EAAE,qBAAqB;IAIxE,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO;IAOtD,yBAAyB,CAAC,IAAI,EAAE,QAAQ;CAGzC"}
|
package/es/collapse-service.js
CHANGED
|
@@ -40,7 +40,7 @@ export var DefaultCollapseService = (_dec = transient({
|
|
|
40
40
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
41
41
|
}, {
|
|
42
42
|
key: "getCollapsibleChildNumber",
|
|
43
|
-
value: function getCollapsibleChildNumber(
|
|
43
|
+
value: function getCollapsibleChildNumber(cell) {
|
|
44
44
|
return 0;
|
|
45
45
|
}
|
|
46
46
|
}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-commands.d.ts","sourceRoot":"","sources":["../../src/command/document-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAY3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kernel-command.d.ts","sourceRoot":"","sources":["../../src/command/kernel-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAsCzE,CAAC"}
|
|
@@ -29,6 +29,9 @@ export var KernelCommands = {
|
|
|
29
29
|
id: 'notebook:shutdown-kernel',
|
|
30
30
|
label: "Shutdown Kernel"
|
|
31
31
|
},
|
|
32
|
+
ShowKernelStatus: {
|
|
33
|
+
id: 'notebook:show-kernel-status'
|
|
34
|
+
},
|
|
32
35
|
// TODO: remove this command
|
|
33
36
|
ShowKernelStatusAndSelector: {
|
|
34
37
|
id: 'notebook:show-kernel-status-and-selector'
|
|
@@ -8,7 +8,6 @@ export declare class LibroCommandContribution implements CommandContribution {
|
|
|
8
8
|
protected readonly libroCommand: LibroCommandRegister;
|
|
9
9
|
protected readonly libroService: LibroService;
|
|
10
10
|
protected readonly lirboContextKey: LirboContextKey;
|
|
11
|
-
constructor(modalService: ModalService, libroCommand: LibroCommandRegister, libroService: LibroService, lirboContextKey: LirboContextKey);
|
|
12
11
|
registerCommands(command: CommandRegistry): void;
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=libro-command-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-command-contribution.d.ts","sourceRoot":"","sources":["../../src/command/libro-command-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAEL,YAAY,EAEZ,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"libro-command-contribution.d.ts","sourceRoot":"","sources":["../../src/command/libro-command-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAEL,YAAY,EAEZ,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,qBACa,wBAAyB,YAAW,mBAAmB;IAC5C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACtC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC9D,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAE7E,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;CA0yCjD"}
|