@difizen/libro-core 0.1.1 → 0.1.3
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 +6 -2
- 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 +1 -2
- package/es/command/document-commands.d.ts.map +1 -1
- package/es/command/document-commands.js +3 -2
- package/es/command/kernel-command.d.ts.map +1 -1
- 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.map +1 -1
- 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 +5 -3
- 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-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/{configuration/libro-configuration-contribution.d.ts → libro-setting-contribution.d.ts} +2 -2
- 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/{configuration/libro-configuration.d.ts → libro-setting.d.ts} +3 -2
- 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 +3 -0
- package/es/material-from-designer.d.ts.map +1 -1
- 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.map +1 -1
- 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
- package/es/configuration/libro-configuration-contribution.d.ts.map +0 -1
- package/es/configuration/libro-configuration.d.ts.map +0 -1
package/es/libro-model.js
CHANGED
|
@@ -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, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26;
|
|
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); }); }; }
|
|
@@ -19,26 +19,33 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
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.'); }
|
|
20
20
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
21
21
|
|
|
22
|
-
import {
|
|
23
|
-
import { ConfigurationService } from '@difizen/mana-app';
|
|
24
|
-
import { getOrigin } from '@difizen/mana-app';
|
|
22
|
+
import { createMutex, YNotebook } from '@difizen/libro-shared-model';
|
|
23
|
+
import { getOrigin, ConfigurationService } from '@difizen/mana-app';
|
|
25
24
|
import { Emitter } from '@difizen/mana-app';
|
|
26
|
-
import { inject, transient } from '@difizen/mana-app';
|
|
27
25
|
import { prop } from '@difizen/mana-app';
|
|
26
|
+
import { inject, transient } from '@difizen/mana-app';
|
|
28
27
|
import { v4 } from 'uuid';
|
|
29
28
|
import { LibroContentService } from "./content/index.js";
|
|
30
29
|
import { isCellView, NotebookOption } from "./libro-protocol.js";
|
|
31
|
-
import { EnterEditModeWhenAddCell } from "./
|
|
32
|
-
|
|
30
|
+
import { EnterEditModeWhenAddCell } from "./libro-setting.js";
|
|
31
|
+
import { VirtualizedManagerHelper } from "./virtualized-manager-helper.js";
|
|
32
|
+
export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _dec3 = inject(LibroContentService), _dec4 = inject(VirtualizedManagerHelper), _dec5 = inject(ConfigurationService), _dec6 = prop(), _dec7 = prop(), _dec8 = prop(), _dec9 = prop(), _dec10 = prop(), _dec11 = prop(), _dec12 = prop(), _dec13 = prop(), _dec14 = prop(), _dec15 = prop(), _dec16 = prop(), _dec17 = prop(), _dec18 = prop(), _dec19 = prop(), _dec20 = prop(), _dec21 = prop(), _dec22 = prop(), _dec23 = prop(), _dec24 = prop(), _dec25 = prop(), _dec26 = prop(), _dec27 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
33
33
|
function LibroModel() {
|
|
34
34
|
var _this = this;
|
|
35
35
|
_classCallCheck(this, LibroModel);
|
|
36
36
|
_initializerDefineProperty(this, "options", _descriptor, this);
|
|
37
37
|
_initializerDefineProperty(this, "libroContentService", _descriptor2, this);
|
|
38
|
-
_initializerDefineProperty(this, "
|
|
38
|
+
_initializerDefineProperty(this, "virtualizedManagerHelper", _descriptor3, this);
|
|
39
|
+
_initializerDefineProperty(this, "configurationService", _descriptor4, this);
|
|
40
|
+
this.scrollToCellViewEmitter = void 0;
|
|
41
|
+
this.cellViewChangeEmitter = new Emitter();
|
|
42
|
+
this.scrollToCellView = function (params) {
|
|
43
|
+
_this.scrollToCellViewEmitter.fire(params);
|
|
44
|
+
};
|
|
39
45
|
this.onCommandModeChangedEmitter = new Emitter();
|
|
40
46
|
this.onContentChangedEmitter = new Emitter();
|
|
41
|
-
this.
|
|
47
|
+
this.onSourceChangedEmitter = new Emitter();
|
|
48
|
+
this.id = void 0;
|
|
42
49
|
/**
|
|
43
50
|
* The shared notebook model.
|
|
44
51
|
*/
|
|
@@ -47,36 +54,36 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
47
54
|
* A mutex to update the shared model.
|
|
48
55
|
*/
|
|
49
56
|
this._modelDBMutex = createMutex();
|
|
50
|
-
_initializerDefineProperty(this, "lastClipboardInteraction",
|
|
57
|
+
_initializerDefineProperty(this, "lastClipboardInteraction", _descriptor5, this);
|
|
51
58
|
this.clipboard = void 0;
|
|
52
|
-
_initializerDefineProperty(this, "quickEditMode",
|
|
53
|
-
_initializerDefineProperty(this, "commandMode",
|
|
54
|
-
_initializerDefineProperty(this, "isEditMode",
|
|
55
|
-
_initializerDefineProperty(this, "dndAreaNullEnable",
|
|
56
|
-
_initializerDefineProperty(this, "dirty",
|
|
57
|
-
_initializerDefineProperty(this, "readOnly",
|
|
58
|
-
_initializerDefineProperty(this, "cells",
|
|
59
|
-
_initializerDefineProperty(this, "active",
|
|
60
|
-
_initializerDefineProperty(this, "activeIndex",
|
|
61
|
-
_initializerDefineProperty(this, "hover",
|
|
62
|
-
_initializerDefineProperty(this, "isInitialized",
|
|
63
|
-
_initializerDefineProperty(this, "executeCount",
|
|
64
|
-
_initializerDefineProperty(this, "mouseMode",
|
|
65
|
-
_initializerDefineProperty(this, "selections",
|
|
59
|
+
_initializerDefineProperty(this, "quickEditMode", _descriptor6, this);
|
|
60
|
+
_initializerDefineProperty(this, "commandMode", _descriptor7, this);
|
|
61
|
+
_initializerDefineProperty(this, "isEditMode", _descriptor8, this);
|
|
62
|
+
_initializerDefineProperty(this, "dndAreaNullEnable", _descriptor9, this);
|
|
63
|
+
_initializerDefineProperty(this, "dirty", _descriptor10, this);
|
|
64
|
+
_initializerDefineProperty(this, "readOnly", _descriptor11, this);
|
|
65
|
+
_initializerDefineProperty(this, "cells", _descriptor12, this);
|
|
66
|
+
_initializerDefineProperty(this, "active", _descriptor13, this);
|
|
67
|
+
_initializerDefineProperty(this, "activeIndex", _descriptor14, this);
|
|
68
|
+
_initializerDefineProperty(this, "hover", _descriptor15, this);
|
|
69
|
+
_initializerDefineProperty(this, "isInitialized", _descriptor16, this);
|
|
70
|
+
_initializerDefineProperty(this, "executeCount", _descriptor17, this);
|
|
71
|
+
_initializerDefineProperty(this, "mouseMode", _descriptor18, this);
|
|
72
|
+
_initializerDefineProperty(this, "selections", _descriptor19, this);
|
|
66
73
|
this.deletedCells = [];
|
|
67
74
|
this.metadata = {};
|
|
68
|
-
_initializerDefineProperty(this, "customParams",
|
|
69
|
-
_initializerDefineProperty(this, "libroViewClass",
|
|
70
|
-
_initializerDefineProperty(this, "canUndo",
|
|
71
|
-
_initializerDefineProperty(this, "canRedo",
|
|
75
|
+
_initializerDefineProperty(this, "customParams", _descriptor20, this);
|
|
76
|
+
_initializerDefineProperty(this, "libroViewClass", _descriptor21, this);
|
|
77
|
+
_initializerDefineProperty(this, "canUndo", _descriptor22, this);
|
|
78
|
+
_initializerDefineProperty(this, "canRedo", _descriptor23, this);
|
|
72
79
|
/**
|
|
73
80
|
* 默认为true,可以在metadata修改
|
|
74
81
|
*/
|
|
75
|
-
_initializerDefineProperty(this, "trusted",
|
|
82
|
+
_initializerDefineProperty(this, "trusted", _descriptor24, this);
|
|
76
83
|
// 字体大小
|
|
77
|
-
_initializerDefineProperty(this, "fontSize",
|
|
84
|
+
_initializerDefineProperty(this, "fontSize", _descriptor25, this);
|
|
78
85
|
// 主题
|
|
79
|
-
_initializerDefineProperty(this, "theme",
|
|
86
|
+
_initializerDefineProperty(this, "theme", _descriptor26, this);
|
|
80
87
|
this.cellViewCache = new Map();
|
|
81
88
|
this.nbformat_minor = 4;
|
|
82
89
|
this.nbformat = 4;
|
|
@@ -92,8 +99,20 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
92
99
|
});
|
|
93
100
|
_this.insertCellsView(cellViews, currpos);
|
|
94
101
|
currpos += delta.insert.length;
|
|
102
|
+
_this.cellViewChangeEmitter.fire({
|
|
103
|
+
insert: {
|
|
104
|
+
index: currpos,
|
|
105
|
+
cells: cellViews
|
|
106
|
+
}
|
|
107
|
+
});
|
|
95
108
|
} else if (delta.delete !== null && delta.delete !== undefined) {
|
|
96
109
|
_this.removeRange(currpos, currpos + delta.delete);
|
|
110
|
+
_this.cellViewChangeEmitter.fire({
|
|
111
|
+
delete: {
|
|
112
|
+
index: currpos,
|
|
113
|
+
number: delta.delete
|
|
114
|
+
}
|
|
115
|
+
});
|
|
97
116
|
} else if (delta.retain !== null && delta.retain !== undefined) {
|
|
98
117
|
currpos += delta.retain;
|
|
99
118
|
}
|
|
@@ -103,8 +122,17 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
103
122
|
return;
|
|
104
123
|
}
|
|
105
124
|
_this.selectCell(_this.cells[_this.activeIndex]);
|
|
106
|
-
|
|
107
|
-
|
|
125
|
+
var virtualizedManager = _this.virtualizedManagerHelper.getOrCreate(_this);
|
|
126
|
+
if (virtualizedManager.isVirtualized) {
|
|
127
|
+
if (_this.cells[_this.activeIndex]) {
|
|
128
|
+
_this.scrollToCellView({
|
|
129
|
+
cellIndex: _this.activeIndex
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
} else {
|
|
133
|
+
if (_this.cells[_this.activeIndex]) {
|
|
134
|
+
_this.scrollToView(_this.cells[_this.activeIndex]);
|
|
135
|
+
}
|
|
108
136
|
}
|
|
109
137
|
_this.configurationService.get(EnterEditModeWhenAddCell).then(function (value) {
|
|
110
138
|
if (value) {
|
|
@@ -119,12 +147,8 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
119
147
|
//
|
|
120
148
|
});
|
|
121
149
|
};
|
|
122
|
-
this.toString =
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
this.fromString = function (value) {
|
|
126
|
-
_this.fromJSON(JSON.parse(value));
|
|
127
|
-
};
|
|
150
|
+
this.toString = void 0;
|
|
151
|
+
this.fromString = void 0;
|
|
128
152
|
this.selectCell = function (cell) {
|
|
129
153
|
var _this$active;
|
|
130
154
|
if (!cell || ((_this$active = _this.active) === null || _this$active === void 0 ? void 0 : _this$active.id) === cell.id) {
|
|
@@ -201,8 +225,12 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
201
225
|
};
|
|
202
226
|
this.insertCellsView = function (cell, position) {
|
|
203
227
|
if (position === 0) {
|
|
204
|
-
|
|
205
|
-
|
|
228
|
+
// unshift 存在性能问题
|
|
229
|
+
// this.cells.unshift(...cell);
|
|
230
|
+
|
|
231
|
+
var arr = _toConsumableArray(_this.cells);
|
|
232
|
+
arr.splice.apply(arr, [0, 0].concat(_toConsumableArray(cell)));
|
|
233
|
+
_this.cells = arr;
|
|
206
234
|
return;
|
|
207
235
|
}
|
|
208
236
|
if (position !== undefined) {
|
|
@@ -216,8 +244,8 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
216
244
|
});
|
|
217
245
|
_this.cells = _cells;
|
|
218
246
|
} else {
|
|
219
|
-
var _this$
|
|
220
|
-
(_this$
|
|
247
|
+
var _this$cells;
|
|
248
|
+
(_this$cells = _this.cells).push.apply(_this$cells, _toConsumableArray(cell));
|
|
221
249
|
}
|
|
222
250
|
};
|
|
223
251
|
this.doDeleteCell = function (arg) {
|
|
@@ -239,10 +267,12 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
239
267
|
}
|
|
240
268
|
return false;
|
|
241
269
|
};
|
|
270
|
+
this.id = v4();
|
|
242
271
|
this.sharedModel = YNotebook.create({
|
|
243
272
|
disableDocumentWideUndoRedo: false,
|
|
244
273
|
cellTypeAdaptor: this.cellTypeAdaptor
|
|
245
274
|
});
|
|
275
|
+
this.scrollToCellViewEmitter = new Emitter();
|
|
246
276
|
this.sharedModel.changed(this.onSharedModelChanged);
|
|
247
277
|
this.sharedModel.undoChanged(function (value) {
|
|
248
278
|
if (value !== _this.canUndo) {
|
|
@@ -256,6 +286,21 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
256
286
|
});
|
|
257
287
|
}
|
|
258
288
|
_createClass(LibroModel, [{
|
|
289
|
+
key: "onScrollToCellView",
|
|
290
|
+
get: function get() {
|
|
291
|
+
return this.scrollToCellViewEmitter.event;
|
|
292
|
+
}
|
|
293
|
+
}, {
|
|
294
|
+
key: "onCellViewChanged",
|
|
295
|
+
get: function get() {
|
|
296
|
+
return this.cellViewChangeEmitter.event;
|
|
297
|
+
}
|
|
298
|
+
}, {
|
|
299
|
+
key: "disposeScrollToCellViewEmitter",
|
|
300
|
+
value: function disposeScrollToCellViewEmitter() {
|
|
301
|
+
this.scrollToCellViewEmitter.dispose();
|
|
302
|
+
}
|
|
303
|
+
}, {
|
|
259
304
|
key: "onCommandModeChanged",
|
|
260
305
|
get: function get() {
|
|
261
306
|
return this.onCommandModeChangedEmitter.event;
|
|
@@ -265,6 +310,11 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
265
310
|
get: function get() {
|
|
266
311
|
return this.onContentChangedEmitter.event;
|
|
267
312
|
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "onSourceChanged",
|
|
315
|
+
get: function get() {
|
|
316
|
+
return this.onSourceChangedEmitter.event;
|
|
317
|
+
}
|
|
268
318
|
}, {
|
|
269
319
|
key: "getCells",
|
|
270
320
|
value: function getCells() {
|
|
@@ -346,6 +396,12 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
346
396
|
this.dirty = true;
|
|
347
397
|
this.onContentChangedEmitter.fire(true);
|
|
348
398
|
}
|
|
399
|
+
}, {
|
|
400
|
+
key: "onSourceChange",
|
|
401
|
+
value: function onSourceChange() {
|
|
402
|
+
this.dirty = true;
|
|
403
|
+
this.onSourceChangedEmitter.fire(true);
|
|
404
|
+
}
|
|
349
405
|
|
|
350
406
|
/**
|
|
351
407
|
* override this method to load notebook from server
|
|
@@ -377,10 +433,12 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
377
433
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
378
434
|
while (1) switch (_context2.prev = _context2.next) {
|
|
379
435
|
case 0:
|
|
436
|
+
return _context2.abrupt("return", this.libroContentService.saveLibroContent(this.options, this));
|
|
437
|
+
case 1:
|
|
380
438
|
case "end":
|
|
381
439
|
return _context2.stop();
|
|
382
440
|
}
|
|
383
|
-
}, _callee2);
|
|
441
|
+
}, _callee2, this);
|
|
384
442
|
}));
|
|
385
443
|
function saveNotebookContent() {
|
|
386
444
|
return _saveNotebookContent.apply(this, arguments);
|
|
@@ -471,14 +529,23 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
471
529
|
if (offsetTop < _scrollTop) {
|
|
472
530
|
target.offsetParent.parentElement.scrollTop = offsetTop;
|
|
473
531
|
} else {
|
|
474
|
-
|
|
532
|
+
//目标cell的高度大于屏幕的高度
|
|
533
|
+
if (_targetheight >= _height) {
|
|
534
|
+
target.offsetParent.parentElement.scrollTop = offsetTop - _height / 2;
|
|
535
|
+
} else {
|
|
536
|
+
target.offsetParent.parentElement.scrollTop = offsetTop + _targetheight - _height + 30; // 加缓冲向上不贴底部
|
|
537
|
+
}
|
|
475
538
|
}
|
|
476
539
|
}
|
|
477
540
|
}
|
|
478
541
|
}, {
|
|
479
542
|
key: "removeRange",
|
|
480
543
|
value: function removeRange(start, end) {
|
|
481
|
-
this.cells.splice(start, end - start);
|
|
544
|
+
// this.cells.splice(start, end - start);
|
|
545
|
+
// 不使用splice的写法,除非设置了 ObservableConfig.async = true
|
|
546
|
+
var arr = _toConsumableArray(this.cells);
|
|
547
|
+
arr.splice(start, end - start);
|
|
548
|
+
this.cells = arr;
|
|
482
549
|
}
|
|
483
550
|
}, {
|
|
484
551
|
key: "deleteCell",
|
|
@@ -593,9 +660,16 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
593
660
|
cells.splice(sourceIndex, 1);
|
|
594
661
|
cells.splice(targetIndex, 0, sourceItem);
|
|
595
662
|
this.cells = cells;
|
|
663
|
+
var virtualizedManager = this.virtualizedManagerHelper.getOrCreate(this);
|
|
596
664
|
setTimeout(function () {
|
|
597
665
|
// 上下移动也需要调整可视区域范围
|
|
598
|
-
|
|
666
|
+
if (virtualizedManager.isVirtualized) {
|
|
667
|
+
_this6.scrollToCellView({
|
|
668
|
+
cellIndex: sourceIndex
|
|
669
|
+
});
|
|
670
|
+
} else {
|
|
671
|
+
_this6.scrollToView(sourceItem);
|
|
672
|
+
}
|
|
599
673
|
}, 300);
|
|
600
674
|
return true;
|
|
601
675
|
}
|
|
@@ -647,153 +721,158 @@ export var LibroModel = (_dec = transient(), _dec2 = inject(NotebookOption), _de
|
|
|
647
721
|
enumerable: true,
|
|
648
722
|
writable: true,
|
|
649
723
|
initializer: null
|
|
650
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
724
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "virtualizedManagerHelper", [_dec4], {
|
|
725
|
+
configurable: true,
|
|
726
|
+
enumerable: true,
|
|
727
|
+
writable: true,
|
|
728
|
+
initializer: null
|
|
729
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "configurationService", [_dec5], {
|
|
651
730
|
configurable: true,
|
|
652
731
|
enumerable: true,
|
|
653
732
|
writable: true,
|
|
654
733
|
initializer: null
|
|
655
|
-
}),
|
|
734
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "lastClipboardInteraction", [_dec6], {
|
|
656
735
|
configurable: true,
|
|
657
736
|
enumerable: true,
|
|
658
737
|
writable: true,
|
|
659
738
|
initializer: null
|
|
660
|
-
}),
|
|
739
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "quickEditMode", [_dec7], {
|
|
661
740
|
configurable: true,
|
|
662
741
|
enumerable: true,
|
|
663
742
|
writable: true,
|
|
664
743
|
initializer: function initializer() {
|
|
665
744
|
return false;
|
|
666
745
|
}
|
|
667
|
-
}),
|
|
746
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "commandMode", [_dec8], {
|
|
668
747
|
configurable: true,
|
|
669
748
|
enumerable: true,
|
|
670
749
|
writable: true,
|
|
671
750
|
initializer: function initializer() {
|
|
672
751
|
return true;
|
|
673
752
|
}
|
|
674
|
-
}),
|
|
753
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "isEditMode", [_dec9], {
|
|
675
754
|
configurable: true,
|
|
676
755
|
enumerable: true,
|
|
677
756
|
writable: true,
|
|
678
757
|
initializer: function initializer() {
|
|
679
758
|
return true;
|
|
680
759
|
}
|
|
681
|
-
}),
|
|
760
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "dndAreaNullEnable", [_dec10], {
|
|
682
761
|
configurable: true,
|
|
683
762
|
enumerable: true,
|
|
684
763
|
writable: true,
|
|
685
764
|
initializer: function initializer() {
|
|
686
765
|
return false;
|
|
687
766
|
}
|
|
688
|
-
}),
|
|
767
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "dirty", [_dec11], {
|
|
689
768
|
configurable: true,
|
|
690
769
|
enumerable: true,
|
|
691
770
|
writable: true,
|
|
692
771
|
initializer: function initializer() {
|
|
693
772
|
return false;
|
|
694
773
|
}
|
|
695
|
-
}),
|
|
774
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "readOnly", [_dec12], {
|
|
696
775
|
configurable: true,
|
|
697
776
|
enumerable: true,
|
|
698
777
|
writable: true,
|
|
699
778
|
initializer: function initializer() {
|
|
700
779
|
return false;
|
|
701
780
|
}
|
|
702
|
-
}),
|
|
781
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "cells", [_dec13], {
|
|
703
782
|
configurable: true,
|
|
704
783
|
enumerable: true,
|
|
705
784
|
writable: true,
|
|
706
785
|
initializer: function initializer() {
|
|
707
786
|
return [];
|
|
708
787
|
}
|
|
709
|
-
}),
|
|
788
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "active", [_dec14], {
|
|
710
789
|
configurable: true,
|
|
711
790
|
enumerable: true,
|
|
712
791
|
writable: true,
|
|
713
792
|
initializer: null
|
|
714
|
-
}),
|
|
793
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "activeIndex", [_dec15], {
|
|
715
794
|
configurable: true,
|
|
716
795
|
enumerable: true,
|
|
717
796
|
writable: true,
|
|
718
797
|
initializer: function initializer() {
|
|
719
798
|
return 0;
|
|
720
799
|
}
|
|
721
|
-
}),
|
|
800
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "hover", [_dec16], {
|
|
722
801
|
configurable: true,
|
|
723
802
|
enumerable: true,
|
|
724
803
|
writable: true,
|
|
725
804
|
initializer: function initializer() {
|
|
726
805
|
return undefined;
|
|
727
806
|
}
|
|
728
|
-
}),
|
|
807
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "isInitialized", [_dec17], {
|
|
729
808
|
configurable: true,
|
|
730
809
|
enumerable: true,
|
|
731
810
|
writable: true,
|
|
732
811
|
initializer: function initializer() {
|
|
733
812
|
return false;
|
|
734
813
|
}
|
|
735
|
-
}),
|
|
814
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "executeCount", [_dec18], {
|
|
736
815
|
configurable: true,
|
|
737
816
|
enumerable: true,
|
|
738
817
|
writable: true,
|
|
739
818
|
initializer: function initializer() {
|
|
740
819
|
return 0;
|
|
741
820
|
}
|
|
742
|
-
}),
|
|
821
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "mouseMode", [_dec19], {
|
|
743
822
|
configurable: true,
|
|
744
823
|
enumerable: true,
|
|
745
824
|
writable: true,
|
|
746
825
|
initializer: null
|
|
747
|
-
}),
|
|
826
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "selections", [_dec20], {
|
|
748
827
|
configurable: true,
|
|
749
828
|
enumerable: true,
|
|
750
829
|
writable: true,
|
|
751
830
|
initializer: function initializer() {
|
|
752
831
|
return [];
|
|
753
832
|
}
|
|
754
|
-
}),
|
|
833
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "customParams", [_dec21], {
|
|
755
834
|
configurable: true,
|
|
756
835
|
enumerable: true,
|
|
757
836
|
writable: true,
|
|
758
837
|
initializer: function initializer() {
|
|
759
838
|
return {};
|
|
760
839
|
}
|
|
761
|
-
}),
|
|
840
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "libroViewClass", [_dec22], {
|
|
762
841
|
configurable: true,
|
|
763
842
|
enumerable: true,
|
|
764
843
|
writable: true,
|
|
765
844
|
initializer: function initializer() {
|
|
766
845
|
return '';
|
|
767
846
|
}
|
|
768
|
-
}),
|
|
847
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "canUndo", [_dec23], {
|
|
769
848
|
configurable: true,
|
|
770
849
|
enumerable: true,
|
|
771
850
|
writable: true,
|
|
772
851
|
initializer: function initializer() {
|
|
773
852
|
return false;
|
|
774
853
|
}
|
|
775
|
-
}),
|
|
854
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "canRedo", [_dec24], {
|
|
776
855
|
configurable: true,
|
|
777
856
|
enumerable: true,
|
|
778
857
|
writable: true,
|
|
779
858
|
initializer: function initializer() {
|
|
780
859
|
return false;
|
|
781
860
|
}
|
|
782
|
-
}),
|
|
861
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "trusted", [_dec25], {
|
|
783
862
|
configurable: true,
|
|
784
863
|
enumerable: true,
|
|
785
864
|
writable: true,
|
|
786
865
|
initializer: function initializer() {
|
|
787
866
|
return true;
|
|
788
867
|
}
|
|
789
|
-
}),
|
|
868
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "fontSize", [_dec26], {
|
|
790
869
|
configurable: true,
|
|
791
870
|
enumerable: true,
|
|
792
871
|
writable: true,
|
|
793
872
|
initializer: function initializer() {
|
|
794
873
|
return 12;
|
|
795
874
|
}
|
|
796
|
-
}),
|
|
875
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "theme", [_dec27], {
|
|
797
876
|
configurable: true,
|
|
798
877
|
enumerable: true,
|
|
799
878
|
writable: true,
|
package/es/libro-protocol.d.ts
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import type { IModel } from '@difizen/libro-code-editor';
|
|
3
3
|
import type { CellType, ICell, ICellMetadata, INotebookContent, INotebookMetadata } from '@difizen/libro-common';
|
|
4
4
|
import type { ISharedNotebook } from '@difizen/libro-shared-model';
|
|
5
|
-
import { View } from '@difizen/mana-app';
|
|
6
5
|
import type { Disposable, Event } from '@difizen/mana-app';
|
|
6
|
+
import type { View } from '@difizen/mana-app';
|
|
7
7
|
import type { LibroCell } from './cell/index.js';
|
|
8
8
|
import type { LibroView } from './libro-view.js';
|
|
9
|
+
import type { VirtualizedManager } from './virtualized-manager.js';
|
|
9
10
|
export declare const LibroContextKeys: {
|
|
10
11
|
active: string;
|
|
11
12
|
focus: string;
|
|
@@ -28,13 +29,24 @@ export interface NotebookOption extends Options {
|
|
|
28
29
|
modelId?: string;
|
|
29
30
|
[key: string]: any;
|
|
30
31
|
}
|
|
32
|
+
export declare const PerformaceStatisticOption: unique symbol;
|
|
33
|
+
export type PerformaceStatisticOption = Options;
|
|
31
34
|
export declare const ModelFactory: unique symbol;
|
|
32
35
|
export type ModelFactory<T = NotebookOption> = (options: T) => NotebookModel;
|
|
33
36
|
export declare const NotebookModel: unique symbol;
|
|
37
|
+
export declare enum EditorStatus {
|
|
38
|
+
NOTLOADED = "not loaded",
|
|
39
|
+
LOADING = "loading",
|
|
40
|
+
LOADED = "loaded"
|
|
41
|
+
}
|
|
34
42
|
export type Options = {
|
|
35
43
|
id?: string;
|
|
36
44
|
[key: string]: any;
|
|
37
45
|
};
|
|
46
|
+
export interface ScrollParams {
|
|
47
|
+
cellIndex: number;
|
|
48
|
+
lineIndex?: number;
|
|
49
|
+
}
|
|
38
50
|
export type NotebookModel = BaseNotebookModel & DndListModel;
|
|
39
51
|
export interface BaseNotebookModel {
|
|
40
52
|
id: string;
|
|
@@ -66,6 +78,8 @@ export interface BaseNotebookModel {
|
|
|
66
78
|
trusted: boolean;
|
|
67
79
|
onCommandModeChanged: Event<boolean>;
|
|
68
80
|
onContentChanged: Event<boolean>;
|
|
81
|
+
onSourceChanged: Event<boolean>;
|
|
82
|
+
onCellViewChanged: Event<CellViewChange>;
|
|
69
83
|
getCells: () => CellView[];
|
|
70
84
|
/**
|
|
71
85
|
* Serialize the model to a string.
|
|
@@ -117,6 +131,7 @@ export interface BaseNotebookModel {
|
|
|
117
131
|
enterCommandMode?: () => void;
|
|
118
132
|
enterEditMode?: () => void;
|
|
119
133
|
onChange?: () => void;
|
|
134
|
+
onSourceChange?: () => void;
|
|
120
135
|
interrupt?: () => void;
|
|
121
136
|
canRun?: () => boolean;
|
|
122
137
|
restart?: () => void;
|
|
@@ -129,6 +144,9 @@ export interface BaseNotebookModel {
|
|
|
129
144
|
getCustomKey: (key: string) => any;
|
|
130
145
|
setCustomKey: (key: string, val: any) => void;
|
|
131
146
|
libroViewClass: string;
|
|
147
|
+
onScrollToCellView: Event<ScrollParams>;
|
|
148
|
+
scrollToCellView: (params: ScrollParams) => void;
|
|
149
|
+
disposeScrollToCellViewEmitter: () => void;
|
|
132
150
|
}
|
|
133
151
|
export declare const notebookViewFactoryId = "notebook-view-factory";
|
|
134
152
|
export type NotebookView = LibroView;
|
|
@@ -149,6 +167,13 @@ export interface CellView extends View {
|
|
|
149
167
|
collapsedHidden: boolean;
|
|
150
168
|
toJSON: () => ICell;
|
|
151
169
|
toJSONWithoutId: () => ICell;
|
|
170
|
+
editorAreaHeight?: number;
|
|
171
|
+
cellViewTopPos?: number;
|
|
172
|
+
noEditorAreaHeight: number;
|
|
173
|
+
editorStatus?: EditorStatus;
|
|
174
|
+
calcEditorAreaHeight?: () => number;
|
|
175
|
+
calcEditorOffset?: () => number;
|
|
176
|
+
renderEditorIntoVirtualized?: boolean;
|
|
152
177
|
}
|
|
153
178
|
export declare function isCellView(view: View): view is CellView;
|
|
154
179
|
export declare const CellOptions: unique symbol;
|
|
@@ -168,11 +193,22 @@ export interface CellViewOptions {
|
|
|
168
193
|
cell: ICell;
|
|
169
194
|
[key: string]: any;
|
|
170
195
|
}
|
|
196
|
+
export interface CellViewChange {
|
|
197
|
+
insert?: {
|
|
198
|
+
cells: CellView[];
|
|
199
|
+
index: number;
|
|
200
|
+
};
|
|
201
|
+
delete?: {
|
|
202
|
+
index: number;
|
|
203
|
+
number: number;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
171
206
|
export interface CellModel extends IModel, Disposable {
|
|
172
207
|
/**
|
|
173
208
|
* A unique identifier for the cell.
|
|
174
209
|
*/
|
|
175
210
|
id: string;
|
|
211
|
+
source: string;
|
|
176
212
|
/**
|
|
177
213
|
* The type of the cell.
|
|
178
214
|
*/
|
|
@@ -211,7 +247,7 @@ export interface DndListModel {
|
|
|
211
247
|
mouseMode?: MouseMode;
|
|
212
248
|
active?: CellView | undefined;
|
|
213
249
|
hover?: CellView | undefined;
|
|
214
|
-
selectCell: (cell
|
|
250
|
+
selectCell: (cell?: CellView) => void;
|
|
215
251
|
addCell: (cell: CellView, position?: number, mode?: string) => void;
|
|
216
252
|
insertCells: (cells: CellView[], position?: number, mode?: string) => void;
|
|
217
253
|
invertCell: (toAddcell: CellView, position: number) => void;
|
|
@@ -238,4 +274,10 @@ export interface DndItemProps {
|
|
|
238
274
|
cell: CellView;
|
|
239
275
|
isMouseOverDragArea?: boolean;
|
|
240
276
|
}
|
|
277
|
+
export interface VirtualizedManagerOption {
|
|
278
|
+
libroModel: NotebookModel;
|
|
279
|
+
}
|
|
280
|
+
export declare const VirtualizedManagerOption: unique symbol;
|
|
281
|
+
export declare const VirtualizedManagerOptionFactory: unique symbol;
|
|
282
|
+
export type VirtualizedManagerOptionFactory = (meta: VirtualizedManagerOption) => VirtualizedManager;
|
|
241
283
|
//# sourceMappingURL=libro-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-protocol.d.ts","sourceRoot":"","sources":["../src/libro-protocol.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EACV,QAAQ,EACR,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"libro-protocol.d.ts","sourceRoot":"","sources":["../src/libro-protocol.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EACV,QAAQ,EACR,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE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