@difizen/libro-lab 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/icon.d.ts +14 -0
- package/es/common/icon.d.ts.map +1 -0
- package/es/common/icon.js +368 -0
- package/es/common/index.d.ts +2 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.js +1 -0
- package/es/common/index.less +8 -0
- package/es/config/config-contribution.d.ts +7 -0
- package/es/config/config-contribution.d.ts.map +1 -0
- package/es/config/config-contribution.js +34 -0
- package/es/config/index.d.ts +2 -0
- package/es/config/index.d.ts.map +1 -0
- package/es/config/index.js +1 -0
- package/es/github-link/index.d.ts +9 -0
- package/es/github-link/index.d.ts.map +1 -0
- package/es/index.less +9 -0
- package/es/kernel-manager/index.d.ts +8 -0
- package/es/kernel-manager/index.d.ts.map +1 -0
- package/es/lab-app.d.ts +4 -1
- package/es/lab-app.d.ts.map +1 -1
- package/es/lab-app.js +26 -5
- package/es/layout/brand/index.d.ts +8 -0
- package/es/layout/brand/index.d.ts.map +1 -0
- package/es/layout/brand/index.js +1 -1
- package/es/layout/container.d.ts +8 -0
- package/es/layout/container.d.ts.map +1 -0
- package/es/layout/content-bottom-tab-view.d.ts +8 -0
- package/es/layout/content-bottom-tab-view.d.ts.map +1 -0
- package/es/layout/content-bottom-tab-view.js +49 -0
- package/es/layout/footer/current-file-footer-view.d.ts +1 -2
- package/es/layout/footer/current-file-footer-view.d.ts.map +1 -1
- package/es/layout/footer/current-file-footer-view.js +3 -7
- package/es/layout/footer/footer-view.d.ts +11 -0
- package/es/layout/footer/footer-view.d.ts.map +1 -0
- package/es/layout/footer/index.less +10 -7
- package/es/layout/footer/status-footer-view.d.ts +10 -0
- package/es/layout/footer/status-footer-view.d.ts.map +1 -0
- package/es/layout/footer/status-footer-view.js +73 -0
- package/es/layout/layout-service.d.ts +15 -0
- package/es/layout/layout-service.d.ts.map +1 -0
- package/es/layout/layout-service.js +19 -15
- package/es/layout/layout.d.ts +12 -0
- package/es/layout/layout.d.ts.map +1 -0
- package/es/layout/layout.js +43 -6
- package/es/layout/main.d.ts.map +1 -1
- package/es/layout/main.js +0 -1
- package/es/layout/module.d.ts.map +1 -1
- package/es/layout/module.js +7 -2
- package/es/layout/protocol.d.ts +17 -0
- package/es/layout/protocol.d.ts.map +1 -0
- package/es/layout/protocol.js +2 -1
- package/es/layout/{editor-tab-view.d.ts → saveable-tab-view.d.ts} +2 -2
- package/es/layout/saveable-tab-view.d.ts.map +1 -0
- package/es/layout/{editor-tab-view.js → saveable-tab-view.js} +9 -10
- package/es/menu/menu-bar-view.d.ts +9 -0
- package/es/menu/menu-bar-view.d.ts.map +1 -0
- package/es/menu/menu-command.d.ts +139 -0
- package/es/menu/menu-command.d.ts.map +1 -0
- package/es/menu/menu-contribution.d.ts +6 -1
- package/es/menu/menu-contribution.d.ts.map +1 -1
- package/es/menu/menu-contribution.js +37 -4
- package/es/module.d.ts.map +1 -1
- package/es/module.js +12 -4
- package/es/toc/libro-toc-panel-view.d.ts.map +1 -1
- package/es/toc/libro-toc-panel-view.js +2 -1
- package/es/welcome/entry-point-view.d.ts +8 -0
- package/es/welcome/entry-point-view.d.ts.map +1 -0
- package/es/welcome/entry-point-view.js +200 -0
- package/es/welcome/index.d.ts +13 -0
- package/es/welcome/index.d.ts.map +1 -0
- package/es/welcome/index.js +30 -7
- package/es/welcome/index.less +99 -0
- package/package.json +9 -5
- package/src/common/icon.tsx +300 -0
- package/src/common/index.less +8 -0
- package/src/common/index.tsx +1 -0
- package/src/config/config-contribution.ts +12 -0
- package/src/config/index.ts +1 -0
- package/src/index.less +9 -0
- package/src/index.spec.ts +0 -1
- package/src/lab-app.ts +16 -1
- package/src/layout/brand/index.tsx +1 -1
- package/src/layout/content-bottom-tab-view.tsx +18 -0
- package/src/layout/footer/current-file-footer-view.tsx +3 -7
- package/src/layout/footer/index.less +10 -7
- package/src/layout/footer/status-footer-view.tsx +45 -0
- package/src/layout/layout-service.ts +9 -8
- package/src/layout/layout.tsx +29 -1
- package/src/layout/main.tsx +0 -1
- package/src/layout/module.ts +10 -2
- package/src/layout/protocol.tsx +8 -0
- package/src/layout/{editor-tab-view.tsx → saveable-tab-view.tsx} +4 -5
- package/src/menu/menu-contribution.ts +24 -1
- package/src/module.tsx +15 -2
- package/src/toc/libro-toc-panel-view.tsx +2 -1
- package/src/welcome/entry-point-view.tsx +169 -0
- package/src/welcome/index.less +99 -0
- package/src/welcome/index.tsx +40 -7
- package/es/layout/brand/logo.js +0 -41
- package/es/layout/editor-tab-view.d.ts.map +0 -1
- package/es/toc/libro-toc-icons.d.ts +0 -7
- package/es/toc/libro-toc-icons.d.ts.map +0 -1
- package/es/toc/libro-toc-icons.js +0 -38
- package/es/welcome/welcome-icon.js +0 -66
- package/src/layout/brand/logo.tsx +0 -39
- package/src/toc/libro-toc-icons.tsx +0 -35
- package/src/welcome/welcome-icon.tsx +0 -64
package/es/layout/layout.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _dec, _dec2, _class;
|
|
2
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor;
|
|
3
|
+
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
|
+
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
|
+
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 _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 }); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
8
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
9
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
10
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
11
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
12
|
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); }
|
|
9
13
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
14
|
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); }; }
|
|
@@ -12,10 +16,14 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
12
16
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
17
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
18
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
-
|
|
19
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
20
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
|
+
import { inject, singleton, Slot, useInject, view } from '@difizen/mana-app';
|
|
16
22
|
import { BaseView } from '@difizen/mana-app';
|
|
17
23
|
import { BoxPanel } from '@difizen/mana-react';
|
|
24
|
+
import { Alert } from 'antd';
|
|
18
25
|
import { forwardRef } from 'react';
|
|
26
|
+
import { Loadding } from "../common/icon.js";
|
|
19
27
|
import "./index.less";
|
|
20
28
|
import { LayoutService } from "./layout-service.js";
|
|
21
29
|
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
@@ -32,6 +40,14 @@ export var LibroLabLayoutContainerComponent = /*#__PURE__*/forwardRef(function L
|
|
|
32
40
|
children: /*#__PURE__*/_jsx(Slot, {
|
|
33
41
|
name: LibroLabLayoutSlots.header
|
|
34
42
|
})
|
|
43
|
+
}), layoutService.isAreaVisible(LibroLabLayoutSlots.alert) && /*#__PURE__*/_jsx(Alert, {
|
|
44
|
+
message: "\u670D\u52A1\u542F\u52A8\u4E2D\uFF0C\u8BF7\u7A0D\u540E\uFF0C\u5F85\u5BB9\u5668\u542F\u52A8\u5B8C\u6210\u540E\u5373\u53EF\u7F16\u8F91\u6587\u4EF6\u3002",
|
|
45
|
+
type: "info",
|
|
46
|
+
banner: true,
|
|
47
|
+
closable: true,
|
|
48
|
+
icon: /*#__PURE__*/_jsx(Loadding, {
|
|
49
|
+
className: "libro-lab-loadding"
|
|
50
|
+
})
|
|
35
51
|
}), layoutService.isAreaVisible(LibroLabLayoutSlots.container) && /*#__PURE__*/_jsx(BoxPanel.Pane, {
|
|
36
52
|
className: "libro-lab-layout-container",
|
|
37
53
|
flex: 1,
|
|
@@ -42,7 +58,7 @@ export var LibroLabLayoutContainerComponent = /*#__PURE__*/forwardRef(function L
|
|
|
42
58
|
})
|
|
43
59
|
});
|
|
44
60
|
});
|
|
45
|
-
export var LibroLabLayoutView = (_dec = singleton(), _dec2 = view('libro-lab-layout'), _dec(_class = _dec2(_class = /*#__PURE__*/function (_BaseView) {
|
|
61
|
+
export var LibroLabLayoutView = (_dec = singleton(), _dec2 = view('libro-lab-layout'), _dec3 = inject(LayoutService), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
46
62
|
_inherits(LibroLabLayoutView, _BaseView);
|
|
47
63
|
var _super = _createSuper(LibroLabLayoutView);
|
|
48
64
|
function LibroLabLayoutView() {
|
|
@@ -53,7 +69,28 @@ export var LibroLabLayoutView = (_dec = singleton(), _dec2 = view('libro-lab-lay
|
|
|
53
69
|
}
|
|
54
70
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
55
71
|
_this.view = LibroLabLayoutContainerComponent;
|
|
72
|
+
_initializerDefineProperty(_this, "layoutService", _descriptor, _assertThisInitialized(_this));
|
|
56
73
|
return _this;
|
|
57
74
|
}
|
|
58
|
-
|
|
59
|
-
|
|
75
|
+
_createClass(LibroLabLayoutView, [{
|
|
76
|
+
key: "storeState",
|
|
77
|
+
value: function storeState() {
|
|
78
|
+
return {
|
|
79
|
+
visibilityMap: this.layoutService.visibilityMap
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
key: "restoreState",
|
|
84
|
+
value: function restoreState(oldState) {
|
|
85
|
+
var _objectSpread2;
|
|
86
|
+
var state = oldState;
|
|
87
|
+
this.layoutService.visibilityMap = _objectSpread(_objectSpread({}, state.visibilityMap), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, LibroLabLayoutSlots.navigator, false), _defineProperty(_objectSpread2, LibroLabLayoutSlots.alert, true), _objectSpread2));
|
|
88
|
+
}
|
|
89
|
+
}]);
|
|
90
|
+
return LibroLabLayoutView;
|
|
91
|
+
}(BaseView), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "layoutService", [_dec3], {
|
|
92
|
+
configurable: true,
|
|
93
|
+
enumerable: true,
|
|
94
|
+
writable: true,
|
|
95
|
+
initializer: null
|
|
96
|
+
})), _class2)) || _class) || _class);
|
package/es/layout/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/layout/main.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,cAAc,CAAC;AAItB,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/layout/main.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,cAAc,CAAC;AAItB,eAAO,MAAM,2BAA2B,mFAmDvC,CAAC;AAEF,qBAEa,sBAAuB,SAAQ,QAAQ;IACzC,IAAI,oFAA+B;CAC7C"}
|
package/es/layout/main.js
CHANGED
|
@@ -29,7 +29,6 @@ export var LibroLabLayoutMainComponent = /*#__PURE__*/forwardRef(function LibroL
|
|
|
29
29
|
id: "libro-lab-content-layout-left",
|
|
30
30
|
className: "libro-lab-content-layout-left",
|
|
31
31
|
defaultSize: 300,
|
|
32
|
-
minResize: 160,
|
|
33
32
|
children: /*#__PURE__*/_jsx(Slot, {
|
|
34
33
|
name: LibroLabLayoutSlots.navigator
|
|
35
34
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/layout/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACX,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/layout/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACX,MAAM,mBAAmB,CAAC;AAc3B,eAAO,MAAM,oBAAoB,YAiDhC,CAAC"}
|
package/es/layout/module.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { createSlotPreference, FlexSlotView, HeaderArea, HeaderView, ManaModule } from '@difizen/mana-app';
|
|
2
2
|
import { BrandView } from "./brand/index.js";
|
|
3
3
|
import { LibroLabLayoutContainerView } from "./container.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ContentBottomTabView } from "./content-bottom-tab-view.js";
|
|
5
5
|
import { LibroLabCurrentFileFooterView } from "./footer/current-file-footer-view.js";
|
|
6
6
|
import { FooterArea, LibroLabLayoutFooterView } from "./footer/footer-view.js";
|
|
7
|
+
import { LibroLabStatusFooterView } from "./footer/status-footer-view.js";
|
|
7
8
|
import { LayoutService } from "./layout-service.js";
|
|
8
9
|
import { LibroLabLayoutView } from "./layout.js";
|
|
9
10
|
import { LibroLabLayoutMainView } from "./main.js";
|
|
10
11
|
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
11
|
-
|
|
12
|
+
import { SaveableTabView } from "./saveable-tab-view.js";
|
|
13
|
+
export var LibroLabLayoutModule = ManaModule.create('LibroLabLayoutModule').register(LibroLabLayoutView, LibroLabLayoutContainerView, LibroLabLayoutMainView, BrandView, SaveableTabView, ContentBottomTabView, LibroLabLayoutFooterView, LibroLabCurrentFileFooterView, LayoutService, createSlotPreference({
|
|
12
14
|
slot: LibroLabLayoutSlots.header,
|
|
13
15
|
view: HeaderView
|
|
14
16
|
}), createSlotPreference({
|
|
@@ -38,4 +40,7 @@ export var LibroLabLayoutModule = ManaModule.create('LibroLabLayoutModule').regi
|
|
|
38
40
|
}), createSlotPreference({
|
|
39
41
|
slot: FooterArea.left,
|
|
40
42
|
view: LibroLabCurrentFileFooterView
|
|
43
|
+
}), LibroLabStatusFooterView, createSlotPreference({
|
|
44
|
+
slot: FooterArea.right,
|
|
45
|
+
view: LibroLabStatusFooterView
|
|
41
46
|
}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const LibroLabLayoutSlots: {
|
|
2
|
+
header: string;
|
|
3
|
+
container: string;
|
|
4
|
+
main: string;
|
|
5
|
+
footer: string;
|
|
6
|
+
navigator: string;
|
|
7
|
+
content: string;
|
|
8
|
+
contentBottom: string;
|
|
9
|
+
alert: string;
|
|
10
|
+
};
|
|
11
|
+
export type StatusType = 'loading' | 'success';
|
|
12
|
+
export interface StatusItem {
|
|
13
|
+
label: string;
|
|
14
|
+
icon: JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export type LibroLabLayoutSlotsType = (typeof LibroLabLayoutSlots)[keyof typeof LibroLabLayoutSlots];
|
|
17
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/layout/protocol.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;CAS/B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC"}
|
package/es/layout/protocol.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { View } from '@difizen/mana-app';
|
|
2
2
|
import { CardTabView } from '@difizen/mana-app';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SaveableTabView extends CardTabView {
|
|
4
4
|
protected renderTab(item: View): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
protected renderTail(item: View): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=saveable-tab-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saveable-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/saveable-tab-view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,WAAW,EAMZ,MAAM,mBAAmB,CAAC;AAK3B,qBAEa,eAAgB,SAAQ,WAAW;cAC3B,SAAS,CAAC,IAAI,EAAE,IAAI;IAuBvC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI;CAyBhC"}
|
|
@@ -13,21 +13,20 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13
13
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
15
|
import { CloseOutlined } from '@ant-design/icons';
|
|
16
|
-
import {
|
|
17
|
-
import { CardTabView, MenuRender, transient, view, ViewContext } from '@difizen/mana-app';
|
|
16
|
+
import { CardTabView, MenuRender, transient, view, ViewContext, Saveable } from '@difizen/mana-app';
|
|
18
17
|
import { Dropdown } from '@difizen/mana-react';
|
|
19
18
|
import { Badge } from 'antd';
|
|
20
19
|
import classnames from 'classnames';
|
|
21
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
export var
|
|
24
|
-
_inherits(
|
|
25
|
-
var _super = _createSuper(
|
|
26
|
-
function
|
|
27
|
-
_classCallCheck(this,
|
|
22
|
+
export var SaveableTabView = (_dec = transient(), _dec2 = view('libro-lab-saveable-tab'), _dec(_class = _dec2(_class = /*#__PURE__*/function (_CardTabView) {
|
|
23
|
+
_inherits(SaveableTabView, _CardTabView);
|
|
24
|
+
var _super = _createSuper(SaveableTabView);
|
|
25
|
+
function SaveableTabView() {
|
|
26
|
+
_classCallCheck(this, SaveableTabView);
|
|
28
27
|
return _super.apply(this, arguments);
|
|
29
28
|
}
|
|
30
|
-
_createClass(
|
|
29
|
+
_createClass(SaveableTabView, [{
|
|
31
30
|
key: "renderTab",
|
|
32
31
|
value: function renderTab(item) {
|
|
33
32
|
return /*#__PURE__*/_jsx(ViewContext, {
|
|
@@ -53,7 +52,7 @@ export var EditorTabView = (_dec = transient(), _dec2 = view('LibroLabEditorTab'
|
|
|
53
52
|
key: "renderTail",
|
|
54
53
|
value: function renderTail(item) {
|
|
55
54
|
var _this = this;
|
|
56
|
-
var isDirty =
|
|
55
|
+
var isDirty = Saveable.is(item) && Saveable.isDirty(item);
|
|
57
56
|
return /*#__PURE__*/_jsx("div", {
|
|
58
57
|
className: "libro-lab-editor-tab-tail",
|
|
59
58
|
children: isDirty ? /*#__PURE__*/_jsx("div", {
|
|
@@ -74,5 +73,5 @@ export var EditorTabView = (_dec = transient(), _dec2 = view('LibroLabEditorTab'
|
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
75
|
}]);
|
|
77
|
-
return
|
|
76
|
+
return SaveableTabView;
|
|
78
77
|
}(CardTabView)) || _class) || _class);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import { BaseView } from '@difizen/mana-app';
|
|
3
|
+
export declare const ManaMenubarComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
4
|
+
export declare class MenuBarView extends BaseView {
|
|
5
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
6
|
+
count: number;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=menu-bar-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-bar-view.d.ts","sourceRoot":"","sources":["../../src/menu/menu-bar-view.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,EAMT,MAAM,mBAAmB,CAAC;AAG3B,eAAO,MAAM,oBAAoB,mFAE/B,CAAC;AAEH,qBAEa,WAAY,SAAQ,QAAQ;IAC9B,IAAI,oFAAwB;IAErC,KAAK,SAAK;;CAOX"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export declare const MenuCommands: {
|
|
2
|
+
About: {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
OpenTerminal: {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
Save: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
};
|
|
14
|
+
CreateFile: {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
};
|
|
18
|
+
RedoCellAction: {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
UndoCellAction: {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
CutCell: {
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
};
|
|
30
|
+
CopyCell: {
|
|
31
|
+
id: string;
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
PasteCellAbove: {
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
};
|
|
38
|
+
PasteCellBelow: {
|
|
39
|
+
id: string;
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
PasteAndReplaceCell: {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
DeleteCell: {
|
|
47
|
+
id: string;
|
|
48
|
+
label: string;
|
|
49
|
+
};
|
|
50
|
+
SelectAll: {
|
|
51
|
+
id: string;
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
54
|
+
DeselectAll: {
|
|
55
|
+
id: string;
|
|
56
|
+
label: string;
|
|
57
|
+
};
|
|
58
|
+
MoveCellUp: {
|
|
59
|
+
id: string;
|
|
60
|
+
label: string;
|
|
61
|
+
};
|
|
62
|
+
MoveCellDown: {
|
|
63
|
+
id: string;
|
|
64
|
+
label: string;
|
|
65
|
+
};
|
|
66
|
+
SplitCellAntCursor: {
|
|
67
|
+
id: string;
|
|
68
|
+
label: string;
|
|
69
|
+
};
|
|
70
|
+
MergeCellAbove: {
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
};
|
|
74
|
+
MergeCellBelow: {
|
|
75
|
+
id: string;
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
78
|
+
MergeCells: {
|
|
79
|
+
id: string;
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
ClearCellOutput: {
|
|
83
|
+
id: string;
|
|
84
|
+
label: string;
|
|
85
|
+
};
|
|
86
|
+
ClearAllCellOutput: {
|
|
87
|
+
id: string;
|
|
88
|
+
label: string;
|
|
89
|
+
};
|
|
90
|
+
HideOrShowCellCode: {
|
|
91
|
+
id: string;
|
|
92
|
+
label: string;
|
|
93
|
+
};
|
|
94
|
+
HideOrShowOutputs: {
|
|
95
|
+
id: string;
|
|
96
|
+
label: string;
|
|
97
|
+
};
|
|
98
|
+
EnableOutputScrolling: {
|
|
99
|
+
id: string;
|
|
100
|
+
label: string;
|
|
101
|
+
};
|
|
102
|
+
DisableOutputScrolling: {
|
|
103
|
+
id: string;
|
|
104
|
+
label: string;
|
|
105
|
+
};
|
|
106
|
+
RestartAndRunToSelected: {
|
|
107
|
+
id: string;
|
|
108
|
+
label: string;
|
|
109
|
+
};
|
|
110
|
+
RestartRunAll: {
|
|
111
|
+
id: string;
|
|
112
|
+
label: string;
|
|
113
|
+
};
|
|
114
|
+
RunAllAbove: {
|
|
115
|
+
id: string;
|
|
116
|
+
label: string;
|
|
117
|
+
};
|
|
118
|
+
RunAllBelow: {
|
|
119
|
+
id: string;
|
|
120
|
+
label: string;
|
|
121
|
+
};
|
|
122
|
+
RunAllCells: {
|
|
123
|
+
id: string;
|
|
124
|
+
label: string;
|
|
125
|
+
};
|
|
126
|
+
RunCell: {
|
|
127
|
+
id: string;
|
|
128
|
+
label: string;
|
|
129
|
+
};
|
|
130
|
+
RunCellAndInsertBelow: {
|
|
131
|
+
id: string;
|
|
132
|
+
label: string;
|
|
133
|
+
};
|
|
134
|
+
RunCellAndSelectNext: {
|
|
135
|
+
id: string;
|
|
136
|
+
label: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=menu-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-command.d.ts","sourceRoot":"","sources":["../../src/menu/menu-command.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIxB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LibroService } from '@difizen/libro-jupyter';
|
|
2
|
+
import { TerminalManager } from '@difizen/libro-terminal';
|
|
2
3
|
import type { MenuRegistry } from '@difizen/mana-app';
|
|
3
|
-
import { CommandContribution, CommandRegistry, MenuContribution } from '@difizen/mana-app';
|
|
4
|
+
import { CommandContribution, CommandRegistry, MenuContribution, ViewManager } from '@difizen/mana-app';
|
|
5
|
+
import { LayoutService } from '../layout/layout-service.js';
|
|
4
6
|
export declare namespace HeaderMenus {
|
|
5
7
|
const FILE: string[];
|
|
6
8
|
const EDIT: string[];
|
|
@@ -12,6 +14,9 @@ export declare namespace HeaderMenus {
|
|
|
12
14
|
export declare class HeaderMenu implements MenuContribution, CommandContribution {
|
|
13
15
|
protected commandRegistry: CommandRegistry;
|
|
14
16
|
protected libroService: LibroService;
|
|
17
|
+
protected layoutService: LayoutService;
|
|
18
|
+
terminalManager: TerminalManager;
|
|
19
|
+
viewManager: ViewManager;
|
|
15
20
|
registerMenus(menu: MenuRegistry): void;
|
|
16
21
|
registerCommands(commands: CommandRegistry): void;
|
|
17
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-contribution.d.ts","sourceRoot":"","sources":["../../src/menu/menu-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,eAAe,EAGf,gBAAgB,
|
|
1
|
+
{"version":3,"file":"menu-contribution.d.ts","sourceRoot":"","sources":["../../src/menu/menu-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAqB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,eAAe,EAGf,gBAAgB,EAEhB,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,yBAAiB,WAAW,CAAC;IACpB,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,GAAG,UAA8B,CAAC;IACxC,MAAM,QAAQ,UAAmC,CAAC;IAClD,MAAM,IAAI,UAA+B,CAAC;CAClD;AAED,qBACa,UAAW,YAAW,gBAAgB,EAAE,mBAAmB;IAC7C,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAC9C,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC;IAE9C,aAAa,CAAC,IAAI,EAAE,YAAY;IAkLhC,gBAAgB,CAAC,QAAQ,EAAE,eAAe;CA6c3C"}
|
|
@@ -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, _class, _class2, _descriptor, _descriptor2;
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
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
5
|
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); }
|
|
@@ -18,7 +18,11 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
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; }
|
|
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
|
import { LibroJupyterView, LibroService, NotebookCommands } from '@difizen/libro-jupyter';
|
|
21
|
-
import {
|
|
21
|
+
import { LibroTerminalView, TerminalManager } from '@difizen/libro-terminal';
|
|
22
|
+
import { CommandContribution, CommandRegistry, inject, MAIN_MENU_BAR, MenuContribution, singleton, ViewManager } from '@difizen/mana-app';
|
|
23
|
+
import { v4 } from 'uuid';
|
|
24
|
+
import { LayoutService } from "../layout/layout-service.js";
|
|
25
|
+
import { LibroLabLayoutSlots } from "../layout/protocol.js";
|
|
22
26
|
import { MenuCommands } from "./menu-command.js";
|
|
23
27
|
export var HeaderMenus;
|
|
24
28
|
(function (_HeaderMenus) {
|
|
@@ -31,11 +35,14 @@ export var HeaderMenus;
|
|
|
31
35
|
})(HeaderMenus || (HeaderMenus = {}));
|
|
32
36
|
export var HeaderMenu = (_dec = singleton({
|
|
33
37
|
contrib: [MenuContribution, CommandContribution]
|
|
34
|
-
}), _dec2 = inject(CommandRegistry), _dec3 = inject(LibroService), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
38
|
+
}), _dec2 = inject(CommandRegistry), _dec3 = inject(LibroService), _dec4 = inject(LayoutService), _dec5 = inject(TerminalManager), _dec6 = inject(ViewManager), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
35
39
|
function HeaderMenu() {
|
|
36
40
|
_classCallCheck(this, HeaderMenu);
|
|
37
41
|
_initializerDefineProperty(this, "commandRegistry", _descriptor, this);
|
|
38
42
|
_initializerDefineProperty(this, "libroService", _descriptor2, this);
|
|
43
|
+
_initializerDefineProperty(this, "layoutService", _descriptor3, this);
|
|
44
|
+
_initializerDefineProperty(this, "terminalManager", _descriptor4, this);
|
|
45
|
+
_initializerDefineProperty(this, "viewManager", _descriptor5, this);
|
|
39
46
|
}
|
|
40
47
|
_createClass(HeaderMenu, [{
|
|
41
48
|
key: "registerMenus",
|
|
@@ -235,7 +242,18 @@ export var HeaderMenu = (_dec = singleton({
|
|
|
235
242
|
var _this = this;
|
|
236
243
|
commands.registerCommand(MenuCommands.OpenTerminal, {
|
|
237
244
|
execute: function execute() {
|
|
238
|
-
|
|
245
|
+
_this.viewManager.getOrCreateView(LibroTerminalView, {
|
|
246
|
+
id: v4()
|
|
247
|
+
}).then(function (terminalView) {
|
|
248
|
+
_this.layoutService.setAreaVisible(LibroLabLayoutSlots.contentBottom, true);
|
|
249
|
+
_this.layoutService.addView(terminalView, {
|
|
250
|
+
slot: LibroLabLayoutSlots.contentBottom,
|
|
251
|
+
reveal: true
|
|
252
|
+
});
|
|
253
|
+
return;
|
|
254
|
+
}).catch(function () {
|
|
255
|
+
//
|
|
256
|
+
});
|
|
239
257
|
}
|
|
240
258
|
});
|
|
241
259
|
commands.registerCommand(MenuCommands.About, {
|
|
@@ -988,4 +1006,19 @@ export var HeaderMenu = (_dec = singleton({
|
|
|
988
1006
|
enumerable: true,
|
|
989
1007
|
writable: true,
|
|
990
1008
|
initializer: null
|
|
1009
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "layoutService", [_dec4], {
|
|
1010
|
+
configurable: true,
|
|
1011
|
+
enumerable: true,
|
|
1012
|
+
writable: true,
|
|
1013
|
+
initializer: null
|
|
1014
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "terminalManager", [_dec5], {
|
|
1015
|
+
configurable: true,
|
|
1016
|
+
enumerable: true,
|
|
1017
|
+
writable: true,
|
|
1018
|
+
initializer: null
|
|
1019
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "viewManager", [_dec6], {
|
|
1020
|
+
configurable: true,
|
|
1021
|
+
enumerable: true,
|
|
1022
|
+
writable: true,
|
|
1023
|
+
initializer: null
|
|
991
1024
|
})), _class2)) || _class);
|
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EAMX,MAAM,mBAAmB,CAAC;AAa3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YAuExB,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { FileView, LibroJupyterModule } from '@difizen/libro-jupyter';
|
|
2
|
+
import { LibroPromptCellModule } from '@difizen/libro-prompt-cell';
|
|
3
|
+
import { TerminalModule } from '@difizen/libro-terminal';
|
|
2
4
|
import { ManaModule, createSlotPreference, RootSlotId, SideTabView, createViewPreference, HeaderArea } from '@difizen/mana-app';
|
|
5
|
+
import { LabConfigAppContribution } from "./config/config-contribution.js";
|
|
3
6
|
import { GithubLinkView } from "./github-link/index.js";
|
|
4
7
|
import { KernelManagerView } from "./kernel-manager/index.js";
|
|
5
8
|
import { LibroLabApp } from "./lab-app.js";
|
|
6
|
-
import {
|
|
9
|
+
import { ContentBottomTabView } from "./layout/content-bottom-tab-view.js";
|
|
7
10
|
import { LibroLabLayoutModule, LibroLabLayoutSlots, LibroLabLayoutView } from "./layout/index.js";
|
|
11
|
+
import { SaveableTabView } from "./layout/saveable-tab-view.js";
|
|
8
12
|
import "./index.less";
|
|
9
13
|
import { LibroLabHeaderMenuModule } from "./menu/module.js";
|
|
10
14
|
import { LibroLabTocModule } from "./toc/module.js";
|
|
15
|
+
import { EntryPointView } from "./welcome/entry-point-view.js";
|
|
11
16
|
import { WelcomeView } from "./welcome/index.js";
|
|
12
|
-
export var LibroLabModule = ManaModule.create().register(LibroLabApp, LibroLabLayoutView, GithubLinkView, createViewPreference({
|
|
17
|
+
export var LibroLabModule = ManaModule.create().register(LibroLabApp, LibroLabLayoutView, GithubLinkView, LabConfigAppContribution, createViewPreference({
|
|
13
18
|
view: GithubLinkView,
|
|
14
19
|
slot: HeaderArea.right,
|
|
15
20
|
openOptions: {
|
|
@@ -28,8 +33,11 @@ export var LibroLabModule = ManaModule.create().register(LibroLabApp, LibroLabLa
|
|
|
28
33
|
view: LibroLabLayoutView,
|
|
29
34
|
slot: RootSlotId
|
|
30
35
|
}), createSlotPreference({
|
|
31
|
-
view:
|
|
36
|
+
view: SaveableTabView,
|
|
32
37
|
slot: LibroLabLayoutSlots.content
|
|
38
|
+
}), createSlotPreference({
|
|
39
|
+
view: ContentBottomTabView,
|
|
40
|
+
slot: LibroLabLayoutSlots.contentBottom
|
|
33
41
|
}), createSlotPreference({
|
|
34
42
|
view: SideTabView,
|
|
35
43
|
slot: LibroLabLayoutSlots.navigator,
|
|
@@ -52,4 +60,4 @@ export var LibroLabModule = ManaModule.create().register(LibroLabApp, LibroLabLa
|
|
|
52
60
|
reveal: true,
|
|
53
61
|
order: 'welcome'
|
|
54
62
|
}
|
|
55
|
-
})).dependOn(LibroJupyterModule, LibroLabLayoutModule, LibroLabHeaderMenuModule, LibroLabTocModule);
|
|
63
|
+
}), EntryPointView).dependOn(LibroJupyterModule, LibroLabLayoutModule, LibroLabHeaderMenuModule, LibroLabTocModule, LibroPromptCellModule, TerminalModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-toc-panel-view.d.ts","sourceRoot":"","sources":["../../src/toc/libro-toc-panel-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAOR,WAAW,EAEZ,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"libro-toc-panel-view.d.ts","sourceRoot":"","sources":["../../src/toc/libro-toc-panel-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAOR,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,cAAc,CAAC;AAmBtB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,qBAEa,YAAa,SAAQ,QAAQ;IAC/B,IAAI,yBAAiB;IACT,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACjC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACtD,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;;IAQjC,WAAW,IAAI,IAAI;IAQ5B,IAAI,oBAAoB,qCAMvB;IAED,mBAAmB,aAiBjB;CACH"}
|
|
@@ -19,9 +19,9 @@ import { LibroNavigatableView } from '@difizen/libro-jupyter';
|
|
|
19
19
|
import { TOCView } from '@difizen/libro-toc';
|
|
20
20
|
import { BaseView, inject, prop, singleton, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/mana-app';
|
|
21
21
|
import { Empty } from 'antd';
|
|
22
|
+
import { TocIcon } from "../common/index.js";
|
|
22
23
|
import { LayoutService } from "../layout/layout-service.js";
|
|
23
24
|
import { LibroLabLayoutSlots } from "../layout/protocol.js";
|
|
24
|
-
import { TocIcon } from "./libro-toc-icons.js";
|
|
25
25
|
import "./index.less";
|
|
26
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
27
|
var TocViewRender = function TocViewRender() {
|
|
@@ -51,6 +51,7 @@ export var TocPanelView = (_dec = singleton(), _dec2 = view(TocViewFactoryId), _
|
|
|
51
51
|
_initializerDefineProperty(_this, "libroTocView", _descriptor3, _assertThisInitialized(_this));
|
|
52
52
|
_this.handleEditTabChange = function () {
|
|
53
53
|
if (!_this.libroNavigatableView) {
|
|
54
|
+
_this.libroTocView = undefined;
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
57
|
_this.viewManager.getOrCreateView(TOCView, {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import { BaseView } from '@difizen/mana-app';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare const EntryPointComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare class EntryPointView extends BaseView {
|
|
6
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=entry-point-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-point-view.d.ts","sourceRoot":"","sources":["../../src/welcome/entry-point-view.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAM7C,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,mBAAmB,mFA2I9B,CAAC;AAEH,qBAEa,cAAe,SAAQ,QAAQ;IACjC,IAAI,oFAAuB;CACrC"}
|