@difizen/libro-core 0.2.0 → 0.2.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/libro-add-cell-view.js +1 -1
- package/es/cell/libro-cell-model.d.ts +2 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -1
- package/es/cell/libro-cell-model.js +8 -1
- package/es/cell/libro-cell-view.d.ts +6 -1
- package/es/cell/libro-cell-view.d.ts.map +1 -1
- package/es/cell/libro-cell-view.js +17 -1
- package/es/command/document-commands.d.ts.map +1 -1
- package/es/command/document-commands.js +5 -3
- package/es/command/libro-command-contribution.d.ts +2 -2
- package/es/command/libro-command-contribution.d.ts.map +1 -1
- package/es/command/libro-command-contribution.js +71 -59
- package/es/components/dnd-cell-item-render.js +1 -1
- package/es/components/dnd-component/default-dnd-content.js +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +3 -1
- package/es/index.less +5 -3
- package/es/libro-context-key.d.ts +5 -1
- package/es/libro-context-key.d.ts.map +1 -1
- package/es/libro-context-key.js +12 -8
- package/es/libro-model.d.ts +8 -2
- package/es/libro-model.d.ts.map +1 -1
- package/es/libro-model.js +81 -47
- package/es/libro-protocol.d.ts +15 -4
- package/es/libro-protocol.d.ts.map +1 -1
- package/es/libro-service.d.ts +1 -0
- package/es/libro-service.d.ts.map +1 -1
- package/es/libro-service.js +17 -9
- package/es/libro-setting.d.ts +1 -0
- package/es/libro-setting.d.ts.map +1 -1
- package/es/libro-setting.js +10 -0
- package/es/libro-view.d.ts +3 -3
- package/es/libro-view.d.ts.map +1 -1
- package/es/libro-view.js +7 -5
- package/es/libro-workspace-service.d.ts +17 -0
- package/es/libro-workspace-service.d.ts.map +1 -0
- package/es/libro-workspace-service.js +36 -0
- package/es/material-from-designer.d.ts +1 -0
- package/es/material-from-designer.d.ts.map +1 -1
- package/es/material-from-designer.js +38 -2
- package/es/module.d.ts.map +1 -1
- package/es/module.js +3 -2
- package/es/output/output-area.d.ts +1 -0
- package/es/output/output-area.d.ts.map +1 -1
- package/es/output/output-area.js +70 -24
- package/es/output/output-model.d.ts +1 -0
- package/es/output/output-model.d.ts.map +1 -1
- package/es/output/output-model.js +17 -7
- package/es/output/output-protocol.d.ts +4 -0
- package/es/output/output-protocol.d.ts.map +1 -1
- package/es/theme/libro-color-registry.js +1 -1
- package/es/toolbar/change-cell-to-selector.d.ts.map +1 -1
- package/es/toolbar/change-cell-to-selector.js +7 -4
- package/package.json +6 -6
- package/src/add-cell/libro-add-cell-view.tsx +1 -1
- package/src/cell/libro-cell-model.ts +10 -1
- package/src/cell/libro-cell-view.tsx +17 -1
- package/src/command/document-commands.ts +5 -2
- package/src/command/libro-command-contribution.ts +86 -59
- package/src/components/dnd-cell-item-render.tsx +1 -1
- package/src/components/dnd-component/default-dnd-content.tsx +1 -1
- package/src/index.less +5 -3
- package/src/index.tsx +2 -1
- package/src/libro-context-key.ts +5 -1
- package/src/libro-model.ts +24 -5
- package/src/libro-protocol.ts +18 -5
- package/src/libro-service.ts +5 -1
- package/src/libro-setting.ts +11 -0
- package/src/libro-view.tsx +16 -7
- package/src/libro-workspace-service.ts +28 -0
- package/src/material-from-designer.tsx +32 -2
- package/src/module.ts +4 -2
- package/src/output/output-area.tsx +34 -9
- package/src/output/output-model.tsx +5 -1
- package/src/output/output-protocol.ts +5 -0
- package/src/theme/libro-color-registry.ts +1 -1
- package/src/toolbar/change-cell-to-selector.tsx +12 -3
package/es/libro-view.js
CHANGED
|
@@ -38,7 +38,7 @@ import { CellService, EditorCellView, ExecutableCellModel, ExecutableCellView }
|
|
|
38
38
|
import { CollapseServiceFactory } from "./collapse-service.js";
|
|
39
39
|
import { CustomDragLayer, DndCellContainer, DndCellItemRender, DndContext, DndList } from "./components/index.js";
|
|
40
40
|
import { LibroViewHeader } from "./components/libro-view-header.js";
|
|
41
|
-
import {
|
|
41
|
+
import { LibroContextKey } from "./libro-context-key.js";
|
|
42
42
|
import { LibroModel } from "./libro-model.js";
|
|
43
43
|
import { NotebookService, notebookViewFactoryId } from "./libro-protocol.js";
|
|
44
44
|
import { LibroService } from "./libro-service.js";
|
|
@@ -173,14 +173,14 @@ export var LibroRender = /*#__PURE__*/forwardRef(function LibroRender(props, ref
|
|
|
173
173
|
if (ref !== null && ref !== void 0 && (_ref$current = ref.current) !== null && _ref$current !== void 0 && _ref$current.contains(e.relatedTarget)) {
|
|
174
174
|
var _ref$current2;
|
|
175
175
|
var dndDom = ref === null || ref === void 0 || (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.getElementsByClassName('libro-dnd-cells-container')[0];
|
|
176
|
-
if (!(dndDom !== null && dndDom !== void 0 && dndDom.contains(e.relatedTarget)) && instance.model.
|
|
176
|
+
if (!(dndDom !== null && dndDom !== void 0 && dndDom.contains(e.relatedTarget)) && (!instance.model.inputEditable || !instance.model.outputEditable || !instance.model.cellsEditable)) {
|
|
177
177
|
instance.selectCell(undefined);
|
|
178
178
|
}
|
|
179
179
|
} else {
|
|
180
180
|
instance.enterCommandMode(false);
|
|
181
181
|
libroService.focus = undefined;
|
|
182
182
|
instance.onBlurEmitter.fire('');
|
|
183
|
-
if (instance.model.
|
|
183
|
+
if (!instance.model.inputEditable || !instance.model.outputEditable || !instance.model.cellsEditable) {
|
|
184
184
|
instance.selectCell(undefined);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -195,7 +195,7 @@ export var LibroRender = /*#__PURE__*/forwardRef(function LibroRender(props, ref
|
|
|
195
195
|
children: /*#__PURE__*/_jsx(LibroContentComponent, {})
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
|
-
export var LibroView = (_dec = transient(), _dec2 = view(notebookViewFactoryId), _dec3 = inject(CellService), _dec4 = inject(LibroService), _dec5 = inject(LibroSlotManager), _dec6 = inject(
|
|
198
|
+
export var LibroView = (_dec = transient(), _dec2 = view(notebookViewFactoryId), _dec3 = inject(CellService), _dec4 = inject(LibroService), _dec5 = inject(LibroSlotManager), _dec6 = inject(LibroContextKey), _dec7 = inject(ViewManager), _dec8 = inject(ConfigurationService), _dec9 = prop(), _dec10 = prop(), _dec11 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
199
199
|
_inherits(LibroView, _BaseView);
|
|
200
200
|
var _super = _createSuper(LibroView);
|
|
201
201
|
function LibroView(_options, collapseServiceFactory, notebookService, virtualizedManagerHelper) {
|
|
@@ -425,7 +425,9 @@ export var LibroView = (_dec = transient(), _dec2 = view(notebookViewFactoryId),
|
|
|
425
425
|
}
|
|
426
426
|
return undefined;
|
|
427
427
|
})).then(function (resultList) {
|
|
428
|
-
return resultList.
|
|
428
|
+
return resultList.filter(function (item) {
|
|
429
|
+
return item !== undefined;
|
|
430
|
+
}).every(function (item) {
|
|
429
431
|
return !!item;
|
|
430
432
|
});
|
|
431
433
|
}).catch(function (reason) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Deferred, URI } from '@difizen/mana-app';
|
|
2
|
+
import type { NotebookView } from './libro-protocol.js';
|
|
3
|
+
export declare const ILibroWorkspaceService: unique symbol;
|
|
4
|
+
export interface ILibroWorkspaceService {
|
|
5
|
+
ready: Promise<void>;
|
|
6
|
+
get workspaceRoot(): URI;
|
|
7
|
+
get notebooks(): NotebookView[];
|
|
8
|
+
get files(): URI[];
|
|
9
|
+
}
|
|
10
|
+
export declare class BaseWorkspaceService implements ILibroWorkspaceService {
|
|
11
|
+
protected deferred: Deferred<void>;
|
|
12
|
+
ready: Promise<void>;
|
|
13
|
+
get workspaceRoot(): URI;
|
|
14
|
+
get notebooks(): never[];
|
|
15
|
+
get files(): never[];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=libro-workspace-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-workspace-service.d.ts","sourceRoot":"","sources":["../src/libro-workspace-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AACvE,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,aAAa,IAAI,GAAG,CAAC;IACzB,IAAI,SAAS,IAAI,YAAY,EAAE,CAAC;IAChC,IAAI,KAAK,IAAI,GAAG,EAAE,CAAC;CACpB;AAED,qBACa,oBAAqB,YAAW,sBAAsB;IACjE,SAAS,CAAC,QAAQ,iBAAwB;IAC1C,KAAK,gBAAyB;IAE9B,IAAI,aAAa,QAEhB;IACD,IAAI,SAAS,YAEZ;IACD,IAAI,KAAK,YAER;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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;
|
|
3
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
|
+
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); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
import { Deferred, URI } from '@difizen/mana-app';
|
|
9
|
+
import { singleton } from '@difizen/mana-app';
|
|
10
|
+
export var ILibroWorkspaceService = Symbol('ILibroWorkspaceService');
|
|
11
|
+
export var BaseWorkspaceService = (_dec = singleton({
|
|
12
|
+
contrib: ILibroWorkspaceService
|
|
13
|
+
}), _dec(_class = /*#__PURE__*/function () {
|
|
14
|
+
function BaseWorkspaceService() {
|
|
15
|
+
_classCallCheck(this, BaseWorkspaceService);
|
|
16
|
+
this.deferred = new Deferred();
|
|
17
|
+
this.ready = this.deferred.promise;
|
|
18
|
+
}
|
|
19
|
+
_createClass(BaseWorkspaceService, [{
|
|
20
|
+
key: "workspaceRoot",
|
|
21
|
+
get: function get() {
|
|
22
|
+
return new URI('/');
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
key: "notebooks",
|
|
26
|
+
get: function get() {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
key: "files",
|
|
31
|
+
get: function get() {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
}]);
|
|
35
|
+
return BaseWorkspaceService;
|
|
36
|
+
}()) || _class);
|
|
@@ -27,4 +27,5 @@ export declare const ArrowDown: React.FC;
|
|
|
27
27
|
export declare const ArrowRight: React.FC;
|
|
28
28
|
export declare const EnableOutputScroll: React.FC;
|
|
29
29
|
export declare const DisableOutputScroll: React.FC;
|
|
30
|
+
export declare const FormatCellIcon: React.FC;
|
|
30
31
|
//# sourceMappingURL=material-from-designer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material-from-designer.d.ts","sourceRoot":"","sources":["../src/material-from-designer.tsx"],"names":[],"mappings":"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CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAyB3D,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAU7B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAU9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAiCtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EA4BvC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EA4BlC,CAAC"}
|
|
@@ -57,7 +57,7 @@ export var PauseCircleOutlined = function PauseCircleOutlined() {
|
|
|
57
57
|
children: /*#__PURE__*/_jsxs("g", {
|
|
58
58
|
id: "time-out",
|
|
59
59
|
fillRule: "nonzero",
|
|
60
|
-
fill: "
|
|
60
|
+
fill: "currentColor",
|
|
61
61
|
children: [/*#__PURE__*/_jsx("rect", {
|
|
62
62
|
id: "\u77E9\u5F62",
|
|
63
63
|
fill: "#000000",
|
|
@@ -91,7 +91,7 @@ export var Reload = function Reload() {
|
|
|
91
91
|
children: /*#__PURE__*/_jsx("g", {
|
|
92
92
|
id: "2.1-kernel-\u72B6\u6001\u5C55\u793A",
|
|
93
93
|
transform: "translate(-776.000000, -80.000000)",
|
|
94
|
-
fill: "
|
|
94
|
+
fill: "currentColor",
|
|
95
95
|
fillRule: "nonzero",
|
|
96
96
|
children: /*#__PURE__*/_jsx("g", {
|
|
97
97
|
id: "\u7F16\u7EC4-24",
|
|
@@ -658,4 +658,40 @@ export var DisableOutputScroll = function DisableOutputScroll() {
|
|
|
658
658
|
})
|
|
659
659
|
})
|
|
660
660
|
});
|
|
661
|
+
};
|
|
662
|
+
export var FormatCellIcon = function FormatCellIcon() {
|
|
663
|
+
return /*#__PURE__*/_jsx("svg", {
|
|
664
|
+
width: "16px",
|
|
665
|
+
height: "16px",
|
|
666
|
+
viewBox: "0 0 16 16",
|
|
667
|
+
version: "1.1",
|
|
668
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
669
|
+
id: "\u9875\u9762-1",
|
|
670
|
+
stroke: "none",
|
|
671
|
+
strokeWidth: "1",
|
|
672
|
+
fill: "none",
|
|
673
|
+
fillRule: "evenodd",
|
|
674
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
675
|
+
id: "file",
|
|
676
|
+
fill: "#000000",
|
|
677
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
678
|
+
id: "\u77E9\u5F62",
|
|
679
|
+
fillRule: "nonzero",
|
|
680
|
+
opacity: "0",
|
|
681
|
+
x: "0",
|
|
682
|
+
y: "0",
|
|
683
|
+
width: "16",
|
|
684
|
+
height: "16"
|
|
685
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
686
|
+
d: "M13.353125,4.509375 L9.990625,1.146875 C9.896875,1.053125 9.7703125,1 9.6375,1 L3,1 C2.7234375,1 2.5,1.2234375 2.5,1.5 L2.5,14.5 C2.5,14.7765625 2.7234375,15 3,15 L13,15 C13.2765625,15 13.5,14.7765625 13.5,14.5 L13.5,4.8640625 C13.5,4.73125 13.446875,4.603125 13.353125,4.509375 Z M12.346875,5.09375 L9.40625,5.09375 L9.40625,2.153125 L12.346875,5.09375 Z M12.375,13.875 L3.625,13.875 L3.625,2.125 L8.34375,2.125 L8.34375,5.5 C8.34375,5.8625 8.6375,6.15625 9,6.15625 L12.375,6.15625 L12.375,13.875 Z",
|
|
687
|
+
id: "\u5F62\u72B6",
|
|
688
|
+
fillRule: "nonzero"
|
|
689
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
690
|
+
d: "M9.37349398,7 C9.47995851,7 9.56626506,7.08630655 9.56626506,7.19277108 L9.56626506,12.2048193 C9.56626506,12.3112838 9.47995851,12.3975904 9.37349398,12.3975904 L6.19277108,12.3975904 C6.08630655,12.3975904 6,12.3112838 6,12.2048193 L6,7.19277108 C6,7.08630655 6.08630655,7 6.19277108,7 L9.37349398,7 Z M8.81980094,7.74698795 L6.79570456,7.74698795 C6.68924003,7.74698795 6.60293347,7.83329451 6.60293347,7.93975904 L6.60293347,9.86746988 C6.60293347,9.97393441 6.68924003,10.060241 6.79570456,10.060241 L8.81980094,10.060241 C8.92626547,10.060241 9.01257203,9.97393441 9.01257203,9.86746988 L9.01257203,7.93975904 C9.01257203,7.83329451 8.92626547,7.74698795 8.81980094,7.74698795 Z",
|
|
691
|
+
id: "\u5F62\u72B6\u7ED3\u5408",
|
|
692
|
+
transform: "translate(7.783133, 9.698795) scale(1, -1) rotate(45.000000) translate(-7.783133, -9.698795) "
|
|
693
|
+
})]
|
|
694
|
+
})
|
|
695
|
+
})
|
|
696
|
+
});
|
|
661
697
|
};
|
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAyC/C,eAAO,MAAM,WAAW,YAuErB,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -7,19 +7,20 @@ import { LibroCommandModule } from "./command/index.js";
|
|
|
7
7
|
import { BetweenCellProvider, CellExecutionTimeProvider, CellInputBottonBlankProvider, CellOutputVisulizationProvider, LibroBetweenCellContent, LibroCellExecutionTime, LibroCellInputBottonBlank, LibroCellVisualization } from "./components/index.js";
|
|
8
8
|
import { LibroContentModule } from "./content/index.js";
|
|
9
9
|
import { LibroFormatterModule } from "./formatter/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { LibroContextKey } from "./libro-context-key.js";
|
|
11
11
|
import { LibroModel } from "./libro-model.js";
|
|
12
12
|
import { ModelFactory, NotebookOption, VirtualizedManagerOption, VirtualizedManagerOptionFactory } from "./libro-protocol.js";
|
|
13
13
|
import { LibroService } from "./libro-service.js";
|
|
14
14
|
import { LibroSettingContribution } from "./libro-setting-contribution.js";
|
|
15
15
|
import { LibroViewTracker } from "./libro-view-tracker.js";
|
|
16
16
|
import { LibroView } from "./libro-view.js";
|
|
17
|
+
import { BaseWorkspaceService } from "./libro-workspace-service.js";
|
|
17
18
|
import { OutputModule } from "./output/index.js";
|
|
18
19
|
import { LibroSlotModule } from "./slot/index.js";
|
|
19
20
|
import { LibroColorRegistry } from "./theme/libro-color-registry.js";
|
|
20
21
|
import { VirtualizedManagerHelper } from "./virtualized-manager-helper.js";
|
|
21
22
|
import { VirtualizedManager } from "./virtualized-manager.js";
|
|
22
|
-
export var LibroModule = ManaModule.create().register(VirtualizedManager, LibroService,
|
|
23
|
+
export var LibroModule = ManaModule.create().register(BaseWorkspaceService, VirtualizedManager, LibroService, LibroContextKey, LibroModel, LibroView, LibroSettingContribution, LibroColorRegistry, LibroViewTracker, {
|
|
23
24
|
token: ModelFactory,
|
|
24
25
|
useFactory: function useFactory(ctx) {
|
|
25
26
|
return function (options) {
|
|
@@ -24,6 +24,7 @@ export declare class LibroOutputArea extends BaseView implements BaseOutputArea
|
|
|
24
24
|
get(index: number): BaseOutputView;
|
|
25
25
|
protected doCreateOutput(options: IOutput): Promise<BaseOutputView>;
|
|
26
26
|
add: (output: IOutput) => Promise<number>;
|
|
27
|
+
protected remove(model: BaseOutputView): void;
|
|
27
28
|
set: (index: number, output: IOutput) => Promise<void>;
|
|
28
29
|
clear(wait?: boolean | undefined): void;
|
|
29
30
|
fromJSON: (values: IOutput[]) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-area.d.ts","sourceRoot":"","sources":["../../src/output/output-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAIL,QAAQ,EA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H,eAAe,gBAAuB;IAEtC,IAAI,QAAQ,4CAEX;IAED,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc;IAMlC,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC;IASnE,GAAG,WAAkB,OAAO,KAAG,QAAQ,MAAM,CAAC,CA4C5C;IAEF,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc;IAMtC,GAAG,UAAiB,MAAM,UAAU,OAAO,mBASzC;IACF,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS;IAUhC,QAAQ,WAAkB,OAAO,EAAE,mBAQjC;IACF,MAAM,QAAO,OAAO,EAAE,CAEpB;IAEF,aAAa,CAAC,IAAI,EAAE,QAAQ;IAI5B,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,kBAAkB;IAS5D;;;;;OAKG;IAEH,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE;QAC/B,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,EAAE,cAAc,CAAC;KAC3B,GAAG,OAAO;CAGZ;AAoCD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AAEH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAK1D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAQtD"}
|
package/es/output/output-area.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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
2
|
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2;
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
3
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
9
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
7
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
10
|
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; }
|
|
10
11
|
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); } }
|
|
11
12
|
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); }); }; }
|
|
@@ -24,6 +25,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
24
25
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
26
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
26
27
|
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.'); }
|
|
28
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
29
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
30
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
27
31
|
import { isError, isStream } from '@difizen/libro-common';
|
|
28
32
|
import { ViewOption, getOrigin, ViewRender, BaseView, Priority, useInject, view, ViewInstance } from '@difizen/mana-app';
|
|
29
33
|
import { Emitter, prop, contrib, inject, transient } from '@difizen/mana-app';
|
|
@@ -32,6 +36,7 @@ import { v4 } from 'uuid';
|
|
|
32
36
|
import { ExecutableCellView } from "../cell/index.js";
|
|
33
37
|
import { OutputContribution } from "./output-protocol.js";
|
|
34
38
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
39
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
40
|
var LibroOutputAreaRender = /*#__PURE__*/forwardRef(function LibroOutputAreaRender(props, ref) {
|
|
36
41
|
var outputArea = useInject(ViewInstance);
|
|
37
42
|
|
|
@@ -41,17 +46,39 @@ var LibroOutputAreaRender = /*#__PURE__*/forwardRef(function LibroOutputAreaRend
|
|
|
41
46
|
useEffect(function () {
|
|
42
47
|
outputArea.onUpdateEmitter.fire();
|
|
43
48
|
}, [outputArea.onUpdateEmitter, outputArea.outputs]);
|
|
44
|
-
|
|
49
|
+
var childrenCannotClear = [];
|
|
50
|
+
var children = [];
|
|
51
|
+
var _iterator = _createForOfIteratorHelper(outputArea.outputs),
|
|
52
|
+
_step;
|
|
53
|
+
try {
|
|
54
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
55
|
+
var output = _step.value;
|
|
56
|
+
if (output.allowClear === false) {
|
|
57
|
+
childrenCannotClear.push(output);
|
|
58
|
+
} else {
|
|
59
|
+
children.push(output);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
} catch (err) {
|
|
63
|
+
_iterator.e(err);
|
|
64
|
+
} finally {
|
|
65
|
+
_iterator.f();
|
|
66
|
+
}
|
|
67
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
45
68
|
className: "libro-output-area",
|
|
46
69
|
ref: ref
|
|
47
70
|
//设置最小高度,用于优化长文本输出再次执行时的页面的滚动控制
|
|
48
71
|
// style={{ minHeight: `${executing ? outputArea.lastOutputContainerHeight + 'px' : 'unset'}` }}
|
|
49
72
|
,
|
|
50
|
-
children:
|
|
73
|
+
children: [childrenCannotClear.map(function (output) {
|
|
51
74
|
return /*#__PURE__*/_jsx(ViewRender, {
|
|
52
75
|
view: output
|
|
53
76
|
}, output.id);
|
|
54
|
-
})
|
|
77
|
+
}), children.map(function (output) {
|
|
78
|
+
return /*#__PURE__*/_jsx(ViewRender, {
|
|
79
|
+
view: output
|
|
80
|
+
}, output.id);
|
|
81
|
+
})]
|
|
55
82
|
});
|
|
56
83
|
});
|
|
57
84
|
export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-area'), _dec3 = contrib(OutputContribution), _dec4 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
@@ -77,15 +104,20 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
77
104
|
_this.onUpdateEmitter = new Emitter();
|
|
78
105
|
_this.add = /*#__PURE__*/function () {
|
|
79
106
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(output) {
|
|
80
|
-
var index, outputModel;
|
|
107
|
+
var index, outputModel, model;
|
|
81
108
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
82
109
|
while (1) switch (_context.prev = _context.next) {
|
|
83
110
|
case 0:
|
|
111
|
+
if (_this.clearNext) {
|
|
112
|
+
_this.clear();
|
|
113
|
+
_this.clearNext = false;
|
|
114
|
+
}
|
|
115
|
+
// Consolidate outputs if they are stream outputs of the same kind.
|
|
84
116
|
if (!(isStream(output) && _this.lastStream && output.name === _this.lastName && _this.shouldCombine({
|
|
85
117
|
output: output,
|
|
86
118
|
lastModel: _this.outputs[_this.length - 1]
|
|
87
119
|
}))) {
|
|
88
|
-
_context.next =
|
|
120
|
+
_context.next = 8;
|
|
89
121
|
break;
|
|
90
122
|
}
|
|
91
123
|
// In order to get a list change event, we add the previous
|
|
@@ -97,7 +129,7 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
97
129
|
index = _this.length - 1;
|
|
98
130
|
_this.set(index, output);
|
|
99
131
|
return _context.abrupt("return", _this.length);
|
|
100
|
-
case
|
|
132
|
+
case 8:
|
|
101
133
|
if (isStream(output)) {
|
|
102
134
|
output.text = removeOverwrittenChars(normalize(output.text));
|
|
103
135
|
}
|
|
@@ -108,13 +140,15 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
108
140
|
} else {
|
|
109
141
|
_this.lastStream = '';
|
|
110
142
|
}
|
|
111
|
-
_context.t0 = _this.outputs;
|
|
112
143
|
_context.next = 13;
|
|
113
144
|
return outputModel;
|
|
114
145
|
case 13:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
146
|
+
model = _context.sent;
|
|
147
|
+
model.onDisposed(function () {
|
|
148
|
+
_this.remove(model);
|
|
149
|
+
});
|
|
150
|
+
return _context.abrupt("return", _this.outputs.push(model));
|
|
151
|
+
case 16:
|
|
118
152
|
case "end":
|
|
119
153
|
return _context.stop();
|
|
120
154
|
}
|
|
@@ -126,7 +160,7 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
126
160
|
}();
|
|
127
161
|
_this.set = /*#__PURE__*/function () {
|
|
128
162
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(index, output) {
|
|
129
|
-
var outputModel, current;
|
|
163
|
+
var outputModel, current, model;
|
|
130
164
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
131
165
|
while (1) switch (_context2.prev = _context2.next) {
|
|
132
166
|
case 0:
|
|
@@ -136,8 +170,12 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
136
170
|
_context2.next = 5;
|
|
137
171
|
return outputModel;
|
|
138
172
|
case 5:
|
|
139
|
-
|
|
140
|
-
|
|
173
|
+
model = _context2.sent;
|
|
174
|
+
model.onDisposed(function () {
|
|
175
|
+
_this.remove(model);
|
|
176
|
+
});
|
|
177
|
+
_this.outputs[index] = model;
|
|
178
|
+
case 8:
|
|
141
179
|
case "end":
|
|
142
180
|
return _context2.stop();
|
|
143
181
|
}
|
|
@@ -149,7 +187,7 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
149
187
|
}();
|
|
150
188
|
_this.fromJSON = /*#__PURE__*/function () {
|
|
151
189
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(values) {
|
|
152
|
-
var
|
|
190
|
+
var _iterator2, _step2, value;
|
|
153
191
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
154
192
|
while (1) switch (_context3.prev = _context3.next) {
|
|
155
193
|
case 0:
|
|
@@ -160,15 +198,15 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
160
198
|
return _context3.abrupt("return");
|
|
161
199
|
case 2:
|
|
162
200
|
// this.clear();
|
|
163
|
-
|
|
201
|
+
_iterator2 = _createForOfIteratorHelper(values);
|
|
164
202
|
_context3.prev = 3;
|
|
165
|
-
|
|
203
|
+
_iterator2.s();
|
|
166
204
|
case 5:
|
|
167
|
-
if ((
|
|
205
|
+
if ((_step2 = _iterator2.n()).done) {
|
|
168
206
|
_context3.next = 11;
|
|
169
207
|
break;
|
|
170
208
|
}
|
|
171
|
-
value =
|
|
209
|
+
value = _step2.value;
|
|
172
210
|
_context3.next = 9;
|
|
173
211
|
return _this.add(value);
|
|
174
212
|
case 9:
|
|
@@ -180,10 +218,10 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
180
218
|
case 13:
|
|
181
219
|
_context3.prev = 13;
|
|
182
220
|
_context3.t0 = _context3["catch"](3);
|
|
183
|
-
|
|
221
|
+
_iterator2.e(_context3.t0);
|
|
184
222
|
case 16:
|
|
185
223
|
_context3.prev = 16;
|
|
186
|
-
|
|
224
|
+
_iterator2.f();
|
|
187
225
|
return _context3.finish(16);
|
|
188
226
|
case 19:
|
|
189
227
|
case "end":
|
|
@@ -234,6 +272,15 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
234
272
|
cell: this.cell
|
|
235
273
|
});
|
|
236
274
|
}
|
|
275
|
+
}, {
|
|
276
|
+
key: "remove",
|
|
277
|
+
value: function remove(model) {
|
|
278
|
+
var outputs = _toConsumableArray(this.outputs);
|
|
279
|
+
outputs = outputs.filter(function (item) {
|
|
280
|
+
return item !== model;
|
|
281
|
+
});
|
|
282
|
+
this.outputs = outputs;
|
|
283
|
+
}
|
|
237
284
|
}, {
|
|
238
285
|
key: "clear",
|
|
239
286
|
value: function clear(wait) {
|
|
@@ -245,7 +292,6 @@ export var LibroOutputArea = (_dec = transient(), _dec2 = view('libro-output-are
|
|
|
245
292
|
this.outputs.forEach(function (output) {
|
|
246
293
|
output.dispose();
|
|
247
294
|
});
|
|
248
|
-
this.outputs = [];
|
|
249
295
|
}
|
|
250
296
|
}, {
|
|
251
297
|
key: "setupCellView",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-model.d.ts","sourceRoot":"","sources":["../../src/output/output-model.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAA0B,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAS5E,qBAEa,eAAgB,SAAQ,QAAS,YAAW,cAAc;IAC5D,EAAE,SAAQ;IAGnB,IAAI,EAAE,QAAQ,CAAC;IAGf,GAAG,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"output-model.d.ts","sourceRoot":"","sources":["../../src/output/output-model.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAA0B,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAS5E,qBAEa,eAAgB,SAAQ,QAAS,YAAW,cAAc;IAC5D,EAAE,SAAQ;IAGnB,IAAI,EAAE,QAAQ,CAAC;IAGf,GAAG,EAAE,OAAO,CAAC;IAGb,UAAU,UAAQ;IAGlB,IAAI,EAAE,UAAU,CAAC;IAEjB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;gBACe,OAAO,EAAE,cAAc;IAUvD,MAAM,EAAE,EAAE,CAAC;QAAE,MAAM,EAAE,cAAc,CAAA;KAAE,CAAC,CAA0B;IAEvD,OAAO;IAGhB,MAAM;IAGN,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;CAQxC;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,wBAAkB,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
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, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
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); } }
|
|
6
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
10
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
9
11
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
12
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -25,7 +27,7 @@ var LibroOutputModelRender = function LibroOutputModelRender(props) {
|
|
|
25
27
|
children: JSON.stringify(output.toJSON(), null, 2)
|
|
26
28
|
});
|
|
27
29
|
};
|
|
28
|
-
export var LibroOutputView = (_dec = transient(), _dec2 = view('libro-output-model'), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
30
|
+
export var LibroOutputView = (_dec = transient(), _dec2 = view('libro-output-model'), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
29
31
|
_inherits(LibroOutputView, _BaseView);
|
|
30
32
|
var _super = _createSuper(LibroOutputView);
|
|
31
33
|
function LibroOutputView(options) {
|
|
@@ -36,8 +38,9 @@ export var LibroOutputView = (_dec = transient(), _dec2 = view('libro-output-mod
|
|
|
36
38
|
// 增加cell属性,使得通过output可以找到Cell
|
|
37
39
|
_this.cell = void 0;
|
|
38
40
|
_initializerDefineProperty(_this, "raw", _descriptor, _assertThisInitialized(_this));
|
|
39
|
-
_initializerDefineProperty(_this, "
|
|
40
|
-
_initializerDefineProperty(_this, "
|
|
41
|
+
_initializerDefineProperty(_this, "allowClear", _descriptor2, _assertThisInitialized(_this));
|
|
42
|
+
_initializerDefineProperty(_this, "data", _descriptor3, _assertThisInitialized(_this));
|
|
43
|
+
_initializerDefineProperty(_this, "metadata", _descriptor4, _assertThisInitialized(_this));
|
|
41
44
|
_this.type = void 0;
|
|
42
45
|
_this.trusted = void 0;
|
|
43
46
|
_this.render = LibroOutputModelRender;
|
|
@@ -53,7 +56,7 @@ export var LibroOutputView = (_dec = transient(), _dec2 = view('libro-output-mod
|
|
|
53
56
|
_createClass(LibroOutputView, [{
|
|
54
57
|
key: "dispose",
|
|
55
58
|
value: function dispose() {
|
|
56
|
-
|
|
59
|
+
_get(_getPrototypeOf(LibroOutputView.prototype), "dispose", this).call(this);
|
|
57
60
|
}
|
|
58
61
|
}, {
|
|
59
62
|
key: "toJSON",
|
|
@@ -77,12 +80,19 @@ export var LibroOutputView = (_dec = transient(), _dec2 = view('libro-output-mod
|
|
|
77
80
|
enumerable: true,
|
|
78
81
|
writable: true,
|
|
79
82
|
initializer: null
|
|
80
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
83
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "allowClear", [_dec4], {
|
|
84
|
+
configurable: true,
|
|
85
|
+
enumerable: true,
|
|
86
|
+
writable: true,
|
|
87
|
+
initializer: function initializer() {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "data", [_dec5], {
|
|
81
91
|
configurable: true,
|
|
82
92
|
enumerable: true,
|
|
83
93
|
writable: true,
|
|
84
94
|
initializer: null
|
|
85
|
-
}),
|
|
95
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "metadata", [_dec6], {
|
|
86
96
|
configurable: true,
|
|
87
97
|
enumerable: true,
|
|
88
98
|
writable: true,
|
|
@@ -98,6 +98,10 @@ export interface BaseOutputView extends View {
|
|
|
98
98
|
* Depending on the implementation of the mime model,
|
|
99
99
|
*/
|
|
100
100
|
setData(options: ISetDataOptions): void;
|
|
101
|
+
/**
|
|
102
|
+
* undefined is considered allowed
|
|
103
|
+
*/
|
|
104
|
+
allowClear?: boolean;
|
|
101
105
|
}
|
|
102
106
|
/**
|
|
103
107
|
* @deprecated use BaseOutputView instead
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-protocol.d.ts","sourceRoot":"","sources":["../../src/output/output-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,yBAAyB,EACzB,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,UAAU,eAAuB,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI;IAC1C;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;OAEG;IAGH;;OAEG;IACH,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC;IAExC;;;;;;;;OAQG;IACH,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAE1C;;OAEG;IACH,GAAG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ector.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"change-cell-to-selector.d.ts","sourceRoot":"","sources":["../../src/toolbar/change-cell-to-selector.tsx"],"names":[],"mappings":";AAgBA,OAAO,cAAc,CAAC;AAQtB,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAwCvC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAA4B,CAAC"}
|