@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/lab-app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
3
3
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
4
4
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
5
5
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -11,12 +11,14 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
11
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); }
|
|
12
12
|
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; }
|
|
13
13
|
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.'); }
|
|
14
|
-
import { LibroService, ServerConnection, LibroJupyterConfiguration } from '@difizen/libro-jupyter';
|
|
14
|
+
import { LibroService, ServerConnection, LibroJupyterConfiguration, ServerManager } from '@difizen/libro-jupyter';
|
|
15
15
|
import { ConfigurationService, FileTreeViewFactory, URI, ApplicationContribution, SlotViewManager, ViewManager, inject, singleton } from '@difizen/mana-app';
|
|
16
16
|
import { LibroLabLayoutSlots } from "./layout/index.js";
|
|
17
|
+
import { LayoutService } from "./layout/layout-service.js";
|
|
18
|
+
var ShouldPreventStoreViewKey = 'mana-should-prevent-store-view';
|
|
17
19
|
export var LibroLabApp = (_dec = singleton({
|
|
18
20
|
contrib: ApplicationContribution
|
|
19
|
-
}), _dec2 = inject(ServerConnection), _dec3 = inject(LibroService), _dec4 = inject(SlotViewManager), _dec5 = inject(ViewManager), _dec6 = inject(ConfigurationService), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
21
|
+
}), _dec2 = inject(ServerConnection), _dec3 = inject(LibroService), _dec4 = inject(SlotViewManager), _dec5 = inject(ViewManager), _dec6 = inject(ConfigurationService), _dec7 = inject(ServerManager), _dec8 = inject(LayoutService), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
20
22
|
function LibroLabApp() {
|
|
21
23
|
_classCallCheck(this, LibroLabApp);
|
|
22
24
|
_initializerDefineProperty(this, "serverConnection", _descriptor, this);
|
|
@@ -24,17 +26,26 @@ export var LibroLabApp = (_dec = singleton({
|
|
|
24
26
|
_initializerDefineProperty(this, "slotViewManager", _descriptor3, this);
|
|
25
27
|
_initializerDefineProperty(this, "viewManager", _descriptor4, this);
|
|
26
28
|
_initializerDefineProperty(this, "configurationService", _descriptor5, this);
|
|
29
|
+
_initializerDefineProperty(this, "serverManager", _descriptor6, this);
|
|
30
|
+
_initializerDefineProperty(this, "layoutService", _descriptor7, this);
|
|
27
31
|
}
|
|
28
32
|
_createClass(LibroLabApp, [{
|
|
29
33
|
key: "onStart",
|
|
30
34
|
value: function () {
|
|
31
35
|
var _onStart = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36
|
+
var _this = this;
|
|
32
37
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33
38
|
while (1) switch (_context.prev = _context.next) {
|
|
34
39
|
case 0:
|
|
40
|
+
localStorage.setItem(ShouldPreventStoreViewKey, 'false');
|
|
35
41
|
this.configurationService.set(LibroJupyterConfiguration['OpenSlot'], LibroLabLayoutSlots.content);
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
this.serverManager.ready.then(function () {
|
|
43
|
+
_this.layoutService.setAreaVisible(LibroLabLayoutSlots.navigator, true);
|
|
44
|
+
_this.layoutService.setAreaVisible(LibroLabLayoutSlots.alert, false);
|
|
45
|
+
_this.layoutService.serverSatus = 'success';
|
|
46
|
+
_this.initialWorkspace();
|
|
47
|
+
return;
|
|
48
|
+
}).catch(console.error);
|
|
38
49
|
case 3:
|
|
39
50
|
case "end":
|
|
40
51
|
return _context.stop();
|
|
@@ -100,4 +111,14 @@ export var LibroLabApp = (_dec = singleton({
|
|
|
100
111
|
enumerable: true,
|
|
101
112
|
writable: true,
|
|
102
113
|
initializer: null
|
|
114
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "serverManager", [_dec7], {
|
|
115
|
+
configurable: true,
|
|
116
|
+
enumerable: true,
|
|
117
|
+
writable: true,
|
|
118
|
+
initializer: null
|
|
119
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "layoutService", [_dec8], {
|
|
120
|
+
configurable: true,
|
|
121
|
+
enumerable: true,
|
|
122
|
+
writable: true,
|
|
123
|
+
initializer: null
|
|
103
124
|
})), _class2)) || _class);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseView } from '@difizen/mana-app';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare const Brand: React.ForwardRefExoticComponent<any>;
|
|
5
|
+
export declare class BrandView extends BaseView {
|
|
6
|
+
view: React.ForwardRefExoticComponent<any>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/brand/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAStD,CAAC;AAEF,qBAEa,SAAU,SAAQ,QAAQ;IAC5B,IAAI,uCAAS;CACvB"}
|
package/es/layout/brand/index.js
CHANGED
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
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 { BaseView, view, singleton } from '@difizen/mana-app';
|
|
16
16
|
import * as React from 'react';
|
|
17
|
-
import { Logo } from "
|
|
17
|
+
import { Logo } from "../../common/index.js";
|
|
18
18
|
import "./index.less";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -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 LibroLabLayoutContainerComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare class LibroLabLayoutContainerView extends BaseView {
|
|
6
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/layout/container.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,cAAc,CAAC;AAGtB,eAAO,MAAM,gCAAgC,mFAa5C,CAAC;AAEF,qBAEa,2BAA4B,SAAQ,QAAQ;IAC9C,IAAI,oFAAoC;CAClD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { View } from '@difizen/mana-app';
|
|
2
|
+
import { CardTabView } from '@difizen/mana-app';
|
|
3
|
+
import { LayoutService } from './layout-service.js';
|
|
4
|
+
export declare class ContentBottomTabView extends CardTabView {
|
|
5
|
+
layoutService: LayoutService;
|
|
6
|
+
close(item: View): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=content-bottom-tab-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-bottom-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/content-bottom-tab-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAmB,WAAW,EAAU,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,qBAEa,oBAAqB,SAAQ,WAAW;IAC5B,aAAa,EAAE,aAAa,CAAC;IAE3C,KAAK,CAAC,IAAI,EAAE,IAAI;CAM1B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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;
|
|
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
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); }
|
|
9
|
+
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
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
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
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
13
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
|
+
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; } }
|
|
15
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
+
import { transient, view, CardTabView, inject } from '@difizen/mana-app';
|
|
19
|
+
import { LayoutService } from "./layout-service.js";
|
|
20
|
+
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
21
|
+
export var ContentBottomTabView = (_dec = transient(), _dec2 = view('libro-lab-layout-content-bottom'), _dec3 = inject(LayoutService), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_CardTabView) {
|
|
22
|
+
_inherits(ContentBottomTabView, _CardTabView);
|
|
23
|
+
var _super = _createSuper(ContentBottomTabView);
|
|
24
|
+
function ContentBottomTabView() {
|
|
25
|
+
var _this;
|
|
26
|
+
_classCallCheck(this, ContentBottomTabView);
|
|
27
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
|
+
args[_key] = arguments[_key];
|
|
29
|
+
}
|
|
30
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
31
|
+
_initializerDefineProperty(_this, "layoutService", _descriptor, _assertThisInitialized(_this));
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
_createClass(ContentBottomTabView, [{
|
|
35
|
+
key: "close",
|
|
36
|
+
value: function close(item) {
|
|
37
|
+
item.dispose();
|
|
38
|
+
if (this.children.length === 0) {
|
|
39
|
+
this.layoutService.setAreaVisible(LibroLabLayoutSlots.contentBottom, false);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}]);
|
|
43
|
+
return ContentBottomTabView;
|
|
44
|
+
}(CardTabView), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "layoutService", [_dec3], {
|
|
45
|
+
configurable: true,
|
|
46
|
+
enumerable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
initializer: null
|
|
49
|
+
})), _class2)) || _class) || _class);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LibroNavigatableView } from '@difizen/libro-jupyter';
|
|
2
1
|
import { BaseView } from '@difizen/mana-app';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { LayoutService } from '../layout-service.js';
|
|
@@ -6,6 +5,6 @@ import './index.less';
|
|
|
6
5
|
export declare class LibroLabCurrentFileFooterView extends BaseView {
|
|
7
6
|
view: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
8
7
|
protected layoutService: LayoutService;
|
|
9
|
-
get
|
|
8
|
+
get navigatableView(): import("@difizen/mana-app").View | undefined;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=current-file-footer-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"current-file-footer-view.d.ts","sourceRoot":"","sources":["../../../src/layout/footer/current-file-footer-view.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"current-file-footer-view.d.ts","sourceRoot":"","sources":["../../../src/layout/footer/current-file-footer-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAMT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,cAAc,CAAC;AAiBtB,qBAEa,6BAA8B,SAAQ,QAAQ;IAChD,IAAI,uEAA8B;IACpB,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAE9D,IAAI,eAAe,iDAGlB;CACF"}
|
|
@@ -15,7 +15,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
15
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
16
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
17
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
-
import { LibroNavigatableView } from '@difizen/libro-jupyter';
|
|
19
18
|
import { BaseView, inject, singleton, useInject, view, ViewInstance } from '@difizen/mana-app';
|
|
20
19
|
import * as React from 'react';
|
|
21
20
|
import { LayoutService } from "../layout-service.js";
|
|
@@ -29,7 +28,7 @@ var CurrentFileFooterComponent = /*#__PURE__*/React.forwardRef(function CurrentF
|
|
|
29
28
|
className: "libro-lab-current-file-footer",
|
|
30
29
|
ref: ref,
|
|
31
30
|
children: /*#__PURE__*/_jsx("span", {
|
|
32
|
-
children: "\u5F53\u524D\u6587\u4EF6\uFF1A".concat(((_currentFileFooterVie = currentFileFooterView.
|
|
31
|
+
children: "\u5F53\u524D\u6587\u4EF6\uFF1A".concat(((_currentFileFooterVie = currentFileFooterView.navigatableView) === null || _currentFileFooterVie === void 0 ? void 0 : _currentFileFooterVie.title.label) || '')
|
|
33
32
|
})
|
|
34
33
|
});
|
|
35
34
|
});
|
|
@@ -48,13 +47,10 @@ export var LibroLabCurrentFileFooterView = (_dec = singleton(), _dec2 = view('li
|
|
|
48
47
|
return _this;
|
|
49
48
|
}
|
|
50
49
|
_createClass(LibroLabCurrentFileFooterView, [{
|
|
51
|
-
key: "
|
|
50
|
+
key: "navigatableView",
|
|
52
51
|
get: function get() {
|
|
53
52
|
var contentView = this.layoutService.getActiveView(LibroLabLayoutSlots.content);
|
|
54
|
-
|
|
55
|
-
return contentView;
|
|
56
|
-
}
|
|
57
|
-
return undefined;
|
|
53
|
+
return contentView;
|
|
58
54
|
}
|
|
59
55
|
}]);
|
|
60
56
|
return LibroLabCurrentFileFooterView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DefaultSlotView } from '@difizen/mana-app';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare enum FooterArea {
|
|
5
|
+
left = "libro-lab-footer-left",
|
|
6
|
+
right = "libro-lab-footer-right"
|
|
7
|
+
}
|
|
8
|
+
export declare class LibroLabLayoutFooterView extends DefaultSlotView {
|
|
9
|
+
view: React.ForwardRefExoticComponent<any>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=footer-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer-view.d.ts","sourceRoot":"","sources":["../../../src/layout/footer/footer-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAyB,MAAM,mBAAmB,CAAC;AAE3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AAEtB,oBAAY,UAAU;IACpB,IAAI,0BAA0B;IAC9B,KAAK,2BAA2B;CACjC;AAiBD,qBAEa,wBAAyB,SAAQ,eAAe;IAClD,IAAI,uCAAmB;CACjC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
.libro-lab-footer {
|
|
2
|
-
.libro-lab-footer-left
|
|
2
|
+
.libro-lab-footer-left,
|
|
3
|
+
.libro-lab-footer-right {
|
|
3
4
|
padding: 0 24px;
|
|
4
5
|
}
|
|
5
6
|
}
|
|
6
7
|
|
|
7
|
-
.libro-lab-current-file-footer
|
|
8
|
+
.libro-lab-current-file-footer,
|
|
9
|
+
.libro-lab-status-footer {
|
|
8
10
|
height: 100%;
|
|
9
11
|
display: flex;
|
|
10
12
|
align-items: center;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
color: rgba(0, 10, 26, 68%);
|
|
16
|
+
}
|
|
11
17
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-size: 12px;
|
|
15
|
-
color: rgba(0, 10, 26, 68%);
|
|
16
|
-
}
|
|
18
|
+
.libro-lab-status-footer {
|
|
19
|
+
justify-content: end;
|
|
17
20
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseView } from '@difizen/mana-app';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { LayoutService } from '../layout-service.js';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export declare class LibroLabStatusFooterView extends BaseView {
|
|
6
|
+
view: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
protected layoutService: LayoutService;
|
|
8
|
+
get navigatableView(): import("@difizen/mana-app").View | undefined;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=status-footer-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-footer-view.d.ts","sourceRoot":"","sources":["../../../src/layout/footer/status-footer-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAsC,MAAM,mBAAmB,CAAC;AACjF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,cAAc,CAAC;AA2BtB,qBAEa,wBAAyB,SAAQ,QAAQ;IAC3C,IAAI,uEAAyB;IACf,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAE9D,IAAI,eAAe,iDAGlB;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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;
|
|
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
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); }
|
|
9
|
+
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
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
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
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
13
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
|
+
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; } }
|
|
15
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
+
import { BaseView, inject, singleton, useInject, view } from '@difizen/mana-app';
|
|
19
|
+
import * as React from 'react';
|
|
20
|
+
import { Loadding, SuccIcon } from "../../common/icon.js";
|
|
21
|
+
import { LayoutService } from "../layout-service.js";
|
|
22
|
+
import { LibroLabLayoutSlots } from "../protocol.js";
|
|
23
|
+
import "./index.less";
|
|
24
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
var Status = {
|
|
27
|
+
loading: {
|
|
28
|
+
label: '启动中',
|
|
29
|
+
icon: /*#__PURE__*/_jsx(Loadding, {})
|
|
30
|
+
},
|
|
31
|
+
success: {
|
|
32
|
+
label: '启动成功',
|
|
33
|
+
icon: /*#__PURE__*/_jsx(SuccIcon, {})
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var StatusFooterComponent = /*#__PURE__*/React.forwardRef(function CurrentFileFooterComponent(_props, ref) {
|
|
37
|
+
var layoutService = useInject(LayoutService);
|
|
38
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
39
|
+
className: "libro-lab-status-footer",
|
|
40
|
+
ref: ref,
|
|
41
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
42
|
+
children: "\u670D\u52A1\u72B6\u6001\uFF1A"
|
|
43
|
+
}), Status[layoutService.serverSatus].icon, Status[layoutService.serverSatus].label]
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
export var LibroLabStatusFooterView = (_dec = singleton(), _dec2 = view('libro-lab-status-footer-view'), _dec3 = inject(LayoutService), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
47
|
+
_inherits(LibroLabStatusFooterView, _BaseView);
|
|
48
|
+
var _super = _createSuper(LibroLabStatusFooterView);
|
|
49
|
+
function LibroLabStatusFooterView() {
|
|
50
|
+
var _this;
|
|
51
|
+
_classCallCheck(this, LibroLabStatusFooterView);
|
|
52
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53
|
+
args[_key] = arguments[_key];
|
|
54
|
+
}
|
|
55
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
56
|
+
_this.view = StatusFooterComponent;
|
|
57
|
+
_initializerDefineProperty(_this, "layoutService", _descriptor, _assertThisInitialized(_this));
|
|
58
|
+
return _this;
|
|
59
|
+
}
|
|
60
|
+
_createClass(LibroLabStatusFooterView, [{
|
|
61
|
+
key: "navigatableView",
|
|
62
|
+
get: function get() {
|
|
63
|
+
var contentView = this.layoutService.getActiveView(LibroLabLayoutSlots.content);
|
|
64
|
+
return contentView;
|
|
65
|
+
}
|
|
66
|
+
}]);
|
|
67
|
+
return LibroLabStatusFooterView;
|
|
68
|
+
}(BaseView), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "layoutService", [_dec3], {
|
|
69
|
+
configurable: true,
|
|
70
|
+
enumerable: true,
|
|
71
|
+
writable: true,
|
|
72
|
+
initializer: null
|
|
73
|
+
})), _class2)) || _class) || _class);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { View, ViewOpenHandlerOptions } from '@difizen/mana-app';
|
|
2
|
+
import { SlotViewManager } from '@difizen/mana-app';
|
|
3
|
+
import type { LibroLabLayoutSlotsType, StatusType } from './protocol.js';
|
|
4
|
+
export type VisibilityMap = Record<LibroLabLayoutSlotsType, boolean>;
|
|
5
|
+
export declare class LayoutService {
|
|
6
|
+
protected readonly slotViewManager: SlotViewManager;
|
|
7
|
+
serverSatus: StatusType;
|
|
8
|
+
visibilityMap: VisibilityMap;
|
|
9
|
+
isAreaVisible(slot: LibroLabLayoutSlotsType): boolean;
|
|
10
|
+
setAreaVisible(slot: LibroLabLayoutSlotsType, visible: boolean): void;
|
|
11
|
+
addView(view: View, option?: ViewOpenHandlerOptions): Promise<void>;
|
|
12
|
+
getActiveView(slot: LibroLabLayoutSlotsType): View | undefined;
|
|
13
|
+
onSlotActiveChange(slot: LibroLabLayoutSlotsType, handler: () => void): import("@difizen/mana-app").Disposable | undefined;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=layout-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-service.d.ts","sourceRoot":"","sources":["../../src/layout/layout-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAKL,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGzE,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;AAErE,qBACa,aAAa;IACC,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAG7E,WAAW,EAAE,UAAU,CAAa;IAEpC,aAAa,EAAE,aAAa,CAS1B;IAEF,aAAa,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO;IAIrD,cAAc,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAO;IAIxD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzE,aAAa,CAAC,IAAI,EAAE,uBAAuB;IAU3C,kBAAkB,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,IAAI;CAStE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _excluded = ["slot"];
|
|
3
|
-
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
3
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
6
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -15,13 +15,14 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
15
15
|
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); }
|
|
16
16
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
17
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
-
import { DefaultSlotView, inject,
|
|
18
|
+
import { DefaultSlotView, inject, prop, singleton, SlotViewManager } from '@difizen/mana-app';
|
|
19
19
|
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
20
|
-
export var LayoutService = (_dec = singleton(), _dec2 = inject(SlotViewManager), _dec3 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
20
|
+
export var LayoutService = (_dec = singleton(), _dec2 = inject(SlotViewManager), _dec3 = prop(), _dec4 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
21
21
|
function LayoutService() {
|
|
22
22
|
_classCallCheck(this, LayoutService);
|
|
23
23
|
_initializerDefineProperty(this, "slotViewManager", _descriptor, this);
|
|
24
|
-
_initializerDefineProperty(this, "
|
|
24
|
+
_initializerDefineProperty(this, "serverSatus", _descriptor2, this);
|
|
25
|
+
_initializerDefineProperty(this, "visibilityMap", _descriptor3, this);
|
|
25
26
|
}
|
|
26
27
|
_createClass(LayoutService, [{
|
|
27
28
|
key: "isAreaVisible",
|
|
@@ -37,15 +38,14 @@ export var LayoutService = (_dec = singleton(), _dec2 = inject(SlotViewManager),
|
|
|
37
38
|
key: "addView",
|
|
38
39
|
value: function () {
|
|
39
40
|
var _addView = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(view, option) {
|
|
40
|
-
var _ref, _ref$slot, slot, viewOpenOption
|
|
41
|
+
var _ref, _ref$slot, slot, viewOpenOption;
|
|
41
42
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
42
43
|
while (1) switch (_context.prev = _context.next) {
|
|
43
44
|
case 0:
|
|
44
45
|
_ref = option || {}, _ref$slot = _ref.slot, slot = _ref$slot === void 0 ? LibroLabLayoutSlots.main : _ref$slot, viewOpenOption = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
case 4:
|
|
46
|
+
_context.next = 3;
|
|
47
|
+
return this.slotViewManager.addView(view, slot, viewOpenOption);
|
|
48
|
+
case 3:
|
|
49
49
|
case "end":
|
|
50
50
|
return _context.stop();
|
|
51
51
|
}
|
|
@@ -73,10 +73,7 @@ export var LayoutService = (_dec = singleton(), _dec2 = inject(SlotViewManager),
|
|
|
73
73
|
if (this.isAreaVisible(slot)) {
|
|
74
74
|
var slotView = this.slotViewManager.getSlotView(slot);
|
|
75
75
|
if (slotView instanceof DefaultSlotView) {
|
|
76
|
-
|
|
77
|
-
return (_Notifier$find = Notifier.find(slotView, 'active')) === null || _Notifier$find === void 0 ? void 0 : _Notifier$find.onChange(function () {
|
|
78
|
-
return handler();
|
|
79
|
-
});
|
|
76
|
+
return slotView.onActiveChange(handler);
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
return undefined;
|
|
@@ -88,12 +85,19 @@ export var LayoutService = (_dec = singleton(), _dec2 = inject(SlotViewManager),
|
|
|
88
85
|
enumerable: true,
|
|
89
86
|
writable: true,
|
|
90
87
|
initializer: null
|
|
91
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
88
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "serverSatus", [_dec3], {
|
|
89
|
+
configurable: true,
|
|
90
|
+
enumerable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
initializer: function initializer() {
|
|
93
|
+
return 'loading';
|
|
94
|
+
}
|
|
95
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "visibilityMap", [_dec4], {
|
|
92
96
|
configurable: true,
|
|
93
97
|
enumerable: true,
|
|
94
98
|
writable: true,
|
|
95
99
|
initializer: function initializer() {
|
|
96
100
|
var _ref2;
|
|
97
|
-
return _ref2 = {}, _defineProperty(_ref2, LibroLabLayoutSlots.header, true), _defineProperty(_ref2, LibroLabLayoutSlots.container, true), _defineProperty(_ref2, LibroLabLayoutSlots.main, true), _defineProperty(_ref2, LibroLabLayoutSlots.footer, true), _defineProperty(_ref2, LibroLabLayoutSlots.navigator,
|
|
101
|
+
return _ref2 = {}, _defineProperty(_ref2, LibroLabLayoutSlots.header, true), _defineProperty(_ref2, LibroLabLayoutSlots.container, true), _defineProperty(_ref2, LibroLabLayoutSlots.main, true), _defineProperty(_ref2, LibroLabLayoutSlots.footer, true), _defineProperty(_ref2, LibroLabLayoutSlots.navigator, false), _defineProperty(_ref2, LibroLabLayoutSlots.content, true), _defineProperty(_ref2, LibroLabLayoutSlots.contentBottom, false), _defineProperty(_ref2, LibroLabLayoutSlots.alert, true), _ref2;
|
|
98
102
|
}
|
|
99
103
|
})), _class2)) || _class);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import { BaseView } from '@difizen/mana-app';
|
|
3
|
+
import './index.less';
|
|
4
|
+
import { LayoutService } from './layout-service.js';
|
|
5
|
+
export declare const LibroLabLayoutContainerComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
6
|
+
export declare class LibroLabLayoutView extends BaseView {
|
|
7
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
8
|
+
layoutService: LayoutService;
|
|
9
|
+
storeState(): object;
|
|
10
|
+
restoreState(oldState: object): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/layout/layout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,eAAO,MAAM,gCAAgC,mFA8B5C,CAAC;AAEF,qBAEa,kBAAmB,SAAQ,QAAQ;IACrC,IAAI,oFAAoC;IAE1B,aAAa,EAAE,aAAa,CAAC;IAEpD,UAAU,IAAI,MAAM;IAIpB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAQrC"}
|