@difizen/libro-lab 0.1.7 → 0.1.9
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/editor-viewer/code-editor-viewer.js +8 -6
- package/es/layout/footer/index.less +5 -0
- package/es/layout/layout-service.d.ts +4 -0
- package/es/layout/layout-service.d.ts.map +1 -1
- package/es/layout/layout-service.js +55 -13
- package/es/layout/layout.d.ts.map +1 -1
- package/es/layout/layout.js +1 -1
- package/es/layout/protocol.d.ts +1 -0
- package/es/layout/protocol.d.ts.map +1 -1
- package/es/layout/side-tab-view.d.ts +1 -0
- package/es/layout/side-tab-view.d.ts.map +1 -1
- package/es/menu/menu-contribution.d.ts.map +1 -1
- package/es/menu/menu-contribution.js +192 -45
- package/es/welcome/entry-point-view.js +1 -32
- package/package.json +9 -9
- package/src/editor-viewer/code-editor-viewer.tsx +4 -4
- package/src/layout/footer/index.less +5 -0
- package/src/layout/layout-service.ts +33 -1
- package/src/layout/layout.tsx +29 -31
- package/src/menu/menu-contribution.ts +171 -24
- package/src/welcome/entry-point-view.tsx +3 -3
|
@@ -133,8 +133,10 @@ export var CodeEditorViewer = (_dec = transient(), _dec2 = view(CodeEditorViewer
|
|
|
133
133
|
key: "onViewMount",
|
|
134
134
|
value: function () {
|
|
135
135
|
var _onViewMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
136
|
-
var _this$languageSpec
|
|
137
|
-
_this$languageSpec,
|
|
136
|
+
var _this$languageSpec,
|
|
137
|
+
_this$languageSpec$be,
|
|
138
|
+
_this$languageSpec2,
|
|
139
|
+
_this$languageSpec3,
|
|
138
140
|
_this2 = this;
|
|
139
141
|
var content, editorPorvider, uri, options;
|
|
140
142
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -150,7 +152,7 @@ export var CodeEditorViewer = (_dec = transient(), _dec2 = view(CodeEditorViewer
|
|
|
150
152
|
return getOrigin(this.fileService).read(this.filePath);
|
|
151
153
|
case 4:
|
|
152
154
|
content = _context3.sent;
|
|
153
|
-
if (!(typeof content !== 'string'
|
|
155
|
+
if (!(typeof content !== 'string')) {
|
|
154
156
|
_context3.next = 7;
|
|
155
157
|
break;
|
|
156
158
|
}
|
|
@@ -166,19 +168,19 @@ export var CodeEditorViewer = (_dec = transient(), _dec2 = view(CodeEditorViewer
|
|
|
166
168
|
return MonacoEnvironment.init();
|
|
167
169
|
case 11:
|
|
168
170
|
_context3.next = 13;
|
|
169
|
-
return (_this$languageSpec
|
|
171
|
+
return (_this$languageSpec = this.languageSpec) === null || _this$languageSpec === void 0 || (_this$languageSpec$be = _this$languageSpec.beforeEditorInit) === null || _this$languageSpec$be === void 0 ? void 0 : _this$languageSpec$be.call(_this$languageSpec);
|
|
170
172
|
case 13:
|
|
171
173
|
editorPorvider = MonacoEnvironment.container.get(EditorProvider);
|
|
172
174
|
uri = MonacoUri.from({
|
|
173
175
|
scheme: LibroLabE2URIScheme,
|
|
174
|
-
path: "".concat(this.filePath).concat(this.languageSpec.ext[0])
|
|
176
|
+
path: "".concat(this.filePath).concat((_this$languageSpec2 = this.languageSpec) === null || _this$languageSpec2 === void 0 ? void 0 : _this$languageSpec2.ext[0])
|
|
175
177
|
});
|
|
176
178
|
options = {
|
|
177
179
|
/**
|
|
178
180
|
* language ia an uri:
|
|
179
181
|
*/
|
|
180
182
|
theme: 'libro-light',
|
|
181
|
-
language: this.languageSpec.language,
|
|
183
|
+
language: ((_this$languageSpec3 = this.languageSpec) === null || _this$languageSpec3 === void 0 ? void 0 : _this$languageSpec3.language) || 'markdown',
|
|
182
184
|
uri: uri,
|
|
183
185
|
value: content
|
|
184
186
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { LibroService } from '@difizen/libro-jupyter';
|
|
1
2
|
import type { View, ViewOpenHandlerOptions } from '@difizen/mana-app';
|
|
2
3
|
import { SlotViewManager } from '@difizen/mana-app';
|
|
3
4
|
import type { LibroLabLayoutSlotsType, StatusType } from './protocol.js';
|
|
4
5
|
export type VisibilityMap = Record<LibroLabLayoutSlotsType, boolean>;
|
|
5
6
|
export declare class LayoutService {
|
|
6
7
|
protected readonly slotViewManager: SlotViewManager;
|
|
8
|
+
protected readonly libroService: LibroService;
|
|
9
|
+
constructor(slotViewManager: SlotViewManager, libroService: LibroService);
|
|
7
10
|
serverSatus: StatusType;
|
|
8
11
|
visibilityMap: VisibilityMap;
|
|
9
12
|
isAreaVisible(slot: LibroLabLayoutSlotsType): boolean;
|
|
@@ -11,5 +14,6 @@ export declare class LayoutService {
|
|
|
11
14
|
addView(view: View, option?: ViewOpenHandlerOptions): Promise<void>;
|
|
12
15
|
getActiveView(slot: LibroLabLayoutSlotsType): View | undefined;
|
|
13
16
|
onSlotActiveChange(slot: LibroLabLayoutSlotsType, handler: () => void): import("@difizen/mana-app").Disposable | undefined;
|
|
17
|
+
onOpenSlotActiveChange(): Promise<void>;
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=layout-service.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"layout-service.d.ts","sourceRoot":"","sources":["../../src/layout/layout-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEtE,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;IACxB,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IACpD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;gBAGnB,eAAe,EAAE,eAAe,EACnC,YAAY,EAAE,YAAY;IAQlD,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;IAU/D,sBAAsB;CAmB7B"}
|
|
@@ -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,
|
|
3
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
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,15 +15,21 @@ 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 { LibroNavigatableView, LibroService } from '@difizen/libro-jupyter';
|
|
19
|
+
import { observable } from '@difizen/mana-app';
|
|
18
20
|
import { DefaultSlotView, inject, prop, singleton, SlotViewManager } from '@difizen/mana-app';
|
|
19
21
|
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
20
|
-
export var LayoutService = (_dec = singleton(), _dec2 =
|
|
21
|
-
function LayoutService() {
|
|
22
|
+
export var LayoutService = (_dec = singleton(), _dec2 = prop(), _dec3 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
23
|
+
function LayoutService(slotViewManager, libroService) {
|
|
22
24
|
_classCallCheck(this, LayoutService);
|
|
23
|
-
_initializerDefineProperty(this, "
|
|
24
|
-
_initializerDefineProperty(this, "
|
|
25
|
-
|
|
25
|
+
_initializerDefineProperty(this, "serverSatus", _descriptor, this);
|
|
26
|
+
_initializerDefineProperty(this, "visibilityMap", _descriptor2, this);
|
|
27
|
+
this.slotViewManager = slotViewManager;
|
|
28
|
+
this.libroService = libroService;
|
|
29
|
+
this.onOpenSlotActiveChange();
|
|
26
30
|
}
|
|
31
|
+
LayoutService = inject(LibroService)(LayoutService, undefined, 1) || LayoutService;
|
|
32
|
+
LayoutService = inject(SlotViewManager)(LayoutService, undefined, 0) || LayoutService;
|
|
27
33
|
_createClass(LayoutService, [{
|
|
28
34
|
key: "isAreaVisible",
|
|
29
35
|
value: function isAreaVisible(slot) {
|
|
@@ -78,21 +84,57 @@ export var LayoutService = (_dec = singleton(), _dec2 = inject(SlotViewManager),
|
|
|
78
84
|
}
|
|
79
85
|
return undefined;
|
|
80
86
|
}
|
|
87
|
+
}, {
|
|
88
|
+
key: "onOpenSlotActiveChange",
|
|
89
|
+
value: function () {
|
|
90
|
+
var _onOpenSlotActiveChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
91
|
+
var _this = this;
|
|
92
|
+
var slotView;
|
|
93
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
94
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
95
|
+
case 0:
|
|
96
|
+
if (!this.isAreaVisible(LibroLabLayoutSlots.content)) {
|
|
97
|
+
_context2.next = 6;
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
_context2.next = 3;
|
|
101
|
+
return this.slotViewManager.getOrCreateSlotView(LibroLabLayoutSlots.content);
|
|
102
|
+
case 3:
|
|
103
|
+
slotView = _context2.sent;
|
|
104
|
+
observable(slotView);
|
|
105
|
+
if (slotView instanceof DefaultSlotView) {
|
|
106
|
+
slotView.onActiveChange(function () {
|
|
107
|
+
var active = slotView.active;
|
|
108
|
+
if (active instanceof LibroNavigatableView) {
|
|
109
|
+
var _active$libroView;
|
|
110
|
+
(_active$libroView = active.libroView) === null || _active$libroView === void 0 || _active$libroView.focus();
|
|
111
|
+
_this.libroService.active = active.libroView;
|
|
112
|
+
} else {
|
|
113
|
+
_this.libroService.active = undefined;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
case 6:
|
|
118
|
+
case "end":
|
|
119
|
+
return _context2.stop();
|
|
120
|
+
}
|
|
121
|
+
}, _callee2, this);
|
|
122
|
+
}));
|
|
123
|
+
function onOpenSlotActiveChange() {
|
|
124
|
+
return _onOpenSlotActiveChange.apply(this, arguments);
|
|
125
|
+
}
|
|
126
|
+
return onOpenSlotActiveChange;
|
|
127
|
+
}()
|
|
81
128
|
}]);
|
|
82
129
|
return LayoutService;
|
|
83
|
-
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "
|
|
84
|
-
configurable: true,
|
|
85
|
-
enumerable: true,
|
|
86
|
-
writable: true,
|
|
87
|
-
initializer: null
|
|
88
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "serverSatus", [_dec3], {
|
|
130
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "serverSatus", [_dec2], {
|
|
89
131
|
configurable: true,
|
|
90
132
|
enumerable: true,
|
|
91
133
|
writable: true,
|
|
92
134
|
initializer: function initializer() {
|
|
93
135
|
return 'loading';
|
|
94
136
|
}
|
|
95
|
-
}),
|
|
137
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "visibilityMap", [_dec3], {
|
|
96
138
|
configurable: true,
|
|
97
139
|
enumerable: true,
|
|
98
140
|
writable: true,
|
|
@@ -1 +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,uBAAuB,
|
|
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,uBAAuB,mFA4BlC,CAAC;AAEH,qBAEa,kBAAmB,SAAQ,QAAQ;IACrC,IAAI,oFAA2B;IAEjB,aAAa,EAAE,aAAa,CAAC;IAEpD,UAAU,IAAI,MAAM;IAIpB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAQrC"}
|
package/es/layout/layout.js
CHANGED
|
@@ -41,7 +41,7 @@ export var LibroLabLayoutComponent = /*#__PURE__*/forwardRef(function LibroLabLa
|
|
|
41
41
|
name: LibroLabLayoutSlots.header
|
|
42
42
|
})
|
|
43
43
|
}), layoutService.isAreaVisible(LibroLabLayoutSlots.alert) && /*#__PURE__*/_jsx(Alert, {
|
|
44
|
-
message: "\u670D\u52A1\u542F\u52A8\u4E2D\uFF0C\u8BF7\u7A0D\u540E\uFF0C\u5F85\
|
|
44
|
+
message: "\u670D\u52A1\u542F\u52A8\u4E2D\uFF0C\u8BF7\u7A0D\u540E\uFF0C\u5F85\u670D\u52A1\u542F\u52A8\u5B8C\u6210\u540E\u5373\u53EF\u7F16\u8F91\u6587\u4EF6\u3002",
|
|
45
45
|
type: "info",
|
|
46
46
|
banner: true,
|
|
47
47
|
closable: true,
|
package/es/layout/protocol.d.ts
CHANGED
|
@@ -1 +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"}
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/side-tab-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,mBAAmB,CAAC;AAI/D,qBAEa,mBAAoB,SAAQ,WAAW;IACzC,gBAAgB,IAAI,GAAG,CAAC,OAAO;CAGzC"}
|
|
1
|
+
{"version":3,"file":"side-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/side-tab-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,mBAAmB,CAAC;AAI/D,qBAEa,mBAAoB,SAAQ,WAAW;IACzC,gBAAgB,IAAI,GAAG,CAAC,OAAO;CAGzC"}
|
|
@@ -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,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;
|
|
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;CAgmB3C"}
|