solid-panes 3.5.16 → 3.5.18-18e626a8
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/.babelrc +0 -0
- package/.eslintignore +0 -0
- package/.eslintrc +0 -0
- package/.github/workflows/ci.yml +45 -6
- package/.nvmrc +0 -0
- package/Documentation/VisualLanguage.html +0 -0
- package/Documentation/conventions.md +0 -0
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dev/index.html +0 -0
- package/dev/loader.ts +11 -11
- package/dev/pane/index.ts +0 -0
- package/doc/images/panes-for-classes.epgz +0 -0
- package/doc/images/panes-for-classes.svg +0 -0
- package/jest.config.js +0 -0
- package/jest.setup.ts +0 -0
- package/lib/RDFXMLPane.js +0 -0
- package/lib/RDFXMLPane.js.map +0 -0
- package/lib/argument/argumentPane.js +15 -7
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +0 -0
- package/lib/attach/attachPane.js.map +0 -0
- package/lib/audio/audioPane.js +0 -0
- package/lib/audio/audioPane.js.map +0 -0
- package/lib/classInstancePane.js +0 -0
- package/lib/classInstancePane.js.map +0 -0
- package/lib/dashboard/basicPreferences.d.ts +0 -0
- package/lib/dashboard/basicPreferences.d.ts.map +1 -1
- package/lib/dashboard/basicPreferences.js +6 -6
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.d.ts +0 -0
- package/lib/dashboard/dashboardPane.d.ts.map +1 -1
- package/lib/dashboard/dashboardPane.js +6 -4
- package/lib/dashboard/dashboardPane.js.map +1 -1
- package/lib/dashboard/homepage.d.ts +0 -0
- package/lib/dashboard/homepage.d.ts.map +0 -0
- package/lib/dashboard/homepage.js +0 -0
- package/lib/dashboard/homepage.js.map +0 -0
- package/lib/dataContentPane.js +1 -1
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +0 -0
- package/lib/defaultPane.js.map +0 -0
- package/lib/dokieli/dokieliPane.js +0 -0
- package/lib/dokieli/dokieliPane.js.map +0 -0
- package/lib/dokieli/new.js +0 -0
- package/lib/dokieli/new.js.map +0 -0
- package/lib/form/pane.js +15 -6
- package/lib/form/pane.js.map +1 -1
- package/lib/global.d.js +0 -0
- package/lib/global.d.js.map +0 -0
- package/lib/home/homePane.d.ts +0 -0
- package/lib/home/homePane.d.ts.map +1 -1
- package/lib/home/homePane.js +7 -5
- package/lib/home/homePane.js.map +1 -1
- package/lib/humanReadablePane.js +0 -0
- package/lib/humanReadablePane.js.map +0 -0
- package/lib/imagePane.js +0 -0
- package/lib/imagePane.js.map +0 -0
- package/lib/index.d.ts +7 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +14 -14
- package/lib/index.js.map +1 -1
- package/lib/internal/internalPane.d.ts +0 -0
- package/lib/internal/internalPane.d.ts.map +0 -0
- package/lib/internal/internalPane.js +0 -0
- package/lib/internal/internalPane.js.map +0 -0
- package/lib/mainPage/footer.d.ts +0 -0
- package/lib/mainPage/footer.d.ts.map +0 -0
- package/lib/mainPage/footer.js +0 -0
- package/lib/mainPage/footer.js.map +0 -0
- package/lib/mainPage/header.d.ts +0 -0
- package/lib/mainPage/header.d.ts.map +1 -1
- package/lib/mainPage/header.js +4 -2
- package/lib/mainPage/header.js.map +1 -1
- package/lib/mainPage/index.d.ts +0 -0
- package/lib/mainPage/index.d.ts.map +0 -0
- package/lib/mainPage/index.js +0 -0
- package/lib/mainPage/index.js.map +0 -0
- package/lib/microblogPane/microblogPane.js +16 -14
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +0 -0
- package/lib/n3Pane.js.map +0 -0
- package/lib/outline/context.d.ts +0 -0
- package/lib/outline/context.d.ts.map +0 -0
- package/lib/outline/context.js +0 -0
- package/lib/outline/context.js.map +0 -0
- package/lib/outline/dragDrop.js +16 -6
- package/lib/outline/dragDrop.js.map +1 -1
- package/lib/outline/licenseOptions.js +12 -5
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +213 -176
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +0 -0
- package/lib/outline/manager.test.js.map +0 -0
- package/lib/outline/outlineIcons.js +0 -0
- package/lib/outline/outlineIcons.js.map +0 -0
- package/lib/outline/propertyViews.d.ts +0 -0
- package/lib/outline/propertyViews.d.ts.map +0 -0
- package/lib/outline/propertyViews.js +0 -0
- package/lib/outline/propertyViews.js.map +0 -0
- package/lib/outline/propertyViews.test.js +0 -0
- package/lib/outline/propertyViews.test.js.map +0 -0
- package/lib/outline/queryByExample.js +14 -6
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +90 -80
- package/lib/outline/userInput.js.map +1 -1
- package/lib/outline/viewAsImage.d.ts +0 -0
- package/lib/outline/viewAsImage.d.ts.map +0 -0
- package/lib/outline/viewAsImage.js +0 -0
- package/lib/outline/viewAsImage.js.map +0 -0
- package/lib/outline/viewAsMbox.d.ts +0 -0
- package/lib/outline/viewAsMbox.d.ts.map +0 -0
- package/lib/outline/viewAsMbox.js +0 -0
- package/lib/outline/viewAsMbox.js.map +0 -0
- package/lib/pad/padPane.d.ts +0 -0
- package/lib/pad/padPane.d.ts.map +1 -1
- package/lib/pad/padPane.js +6 -4
- package/lib/pad/padPane.js.map +1 -1
- package/lib/playlist/playlistPane.js +0 -0
- package/lib/playlist/playlistPane.js.map +0 -0
- package/lib/profile/editProfile.view.d.ts +0 -0
- package/lib/profile/editProfile.view.d.ts.map +1 -1
- package/lib/profile/editProfile.view.js +3 -3
- package/lib/profile/editProfile.view.js.map +1 -1
- package/lib/profile/profile.dom.d.ts +0 -0
- package/lib/profile/profile.dom.d.ts.map +0 -0
- package/lib/profile/profile.dom.js +0 -0
- package/lib/profile/profile.dom.js.map +0 -0
- package/lib/registerPanes.js +0 -0
- package/lib/registerPanes.js.map +0 -0
- package/lib/schedule/formsForSchedule.js +0 -0
- package/lib/schedule/formsForSchedule.js.map +0 -0
- package/lib/schedule/schedulePane.js +26 -14
- package/lib/schedule/schedulePane.js.map +1 -1
- package/lib/sharing/sharingPane.d.ts +0 -0
- package/lib/sharing/sharingPane.d.ts.map +0 -0
- package/lib/sharing/sharingPane.js +0 -0
- package/lib/sharing/sharingPane.js.map +0 -0
- package/lib/slideshow/slideshowPane.js +0 -0
- package/lib/slideshow/slideshowPane.js.map +0 -0
- package/lib/socialPane.js +16 -6
- package/lib/socialPane.js.map +1 -1
- package/lib/tabbed/tabbedPane.d.ts +0 -0
- package/lib/tabbed/tabbedPane.d.ts.map +0 -0
- package/lib/tabbed/tabbedPane.js +0 -0
- package/lib/tabbed/tabbedPane.js.map +0 -0
- package/lib/tableViewPane.js +0 -0
- package/lib/tableViewPane.js.map +0 -0
- package/lib/test-import-export/common.js +0 -0
- package/lib/test-import-export/common.js.map +0 -0
- package/lib/test-import-export/edit-importer.js +0 -0
- package/lib/test-import-export/edit-importer.js.map +0 -0
- package/lib/test-import-export/testImportExport.js +0 -0
- package/lib/test-import-export/testImportExport.js.map +0 -0
- package/lib/transaction/pane.js +1 -1
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +1 -1
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +1 -1
- package/lib/trip/tripPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.dom.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.js +11 -9
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +0 -0
- package/lib/trustedApplications/trustedApplications.test.js.map +0 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
- package/lib/trustedApplications/trustedApplications.utils.js +0 -0
- package/lib/trustedApplications/trustedApplications.utils.js.map +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +5 -3
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/types.d.ts +0 -0
- package/lib/types.d.ts.map +0 -0
- package/lib/types.js +0 -0
- package/lib/types.js.map +0 -0
- package/lib/ui/pane.js +0 -0
- package/lib/ui/pane.js.map +0 -0
- package/lib/versionInfo.d.ts +0 -0
- package/lib/versionInfo.d.ts.map +0 -0
- package/lib/versionInfo.js +14 -14
- package/lib/versionInfo.js.map +1 -1
- package/lib/video/videoPane.js +0 -0
- package/lib/video/videoPane.js.map +0 -0
- package/package.json +13 -13
- package/src/RDFXMLPane.js +0 -0
- package/src/argument/argumentPane.js +5 -5
- package/src/argument/argument_icon_v04.jpg +0 -0
- package/src/argument/icon_argument.png +0 -0
- package/src/argument/transparentyingyang.png +0 -0
- package/src/attach/attachPane.js +0 -0
- package/src/attach/tbl-paperclip-128.png +0 -0
- package/src/attach/tbl-paperclip-22.png +0 -0
- package/src/attach/tbl-paperclip-22a.png +0 -0
- package/src/audio/audioPane.js +0 -0
- package/src/chatPreferencesForm.ttl +0 -0
- package/src/classInstancePane.js +0 -0
- package/src/dashboard/basicPreferences.ts +4 -5
- package/src/dashboard/dashboardPane.ts +4 -3
- package/src/dashboard/homepage.ts +0 -0
- package/src/dashboard/languages/codes.html +0 -0
- package/src/dashboard/languages/codes.xml +0 -0
- package/src/dashboard/languages/codes2.txt +0 -0
- package/src/dashboard/languages/foo +0 -0
- package/src/dashboard/languages/foo.ttl +0 -0
- package/src/dashboard/languages/get-language-names.sh +0 -0
- package/src/dashboard/ontologyData.ttl +0 -0
- package/src/dashboard/preferencesFormText.ttl +0 -0
- package/src/dataContentPane.js +1 -1
- package/src/defaultPane.js +0 -0
- package/src/dokieli/Makefile +0 -0
- package/src/dokieli/dokieliPane.js +0 -0
- package/src/dokieli/new.html +0 -0
- package/src/dokieli/new.js +0 -0
- package/src/form/form-22.png +0 -0
- package/src/form/form-b-22.png +0 -0
- package/src/form/form.graffle +0 -0
- package/src/form/form.png +0 -0
- package/src/form/pane.js +5 -4
- package/src/form/psuedocode-notes.txt +0 -0
- package/src/global.d.ts +0 -0
- package/src/home/homePane.ts +7 -6
- package/src/humanReadablePane.js +0 -0
- package/src/imagePane.js +0 -0
- package/src/index.ts +24 -19
- package/src/internal/internalPane.ts +0 -0
- package/src/mainPage/footer.ts +0 -0
- package/src/mainPage/header.ts +3 -2
- package/src/mainPage/index.ts +0 -0
- package/src/meeting/Makefile +0 -0
- package/src/meeting/test/meeting1/Actions/actions.ttl +0 -0
- package/src/meeting/test/meeting1/Actions/config.ttl +0 -0
- package/src/meeting/test/meeting1/Actions/state.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/details.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/details.ttl.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/forms.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/index.html +0 -0
- package/src/meeting/test/meeting1/Schedule/index.html.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/results.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/results.ttl.acl +0 -0
- package/src/meeting/test/meeting1/SharedNotes/pad.ttl +0 -0
- package/src/meeting/test/meeting1/chat/chat.ttl +0 -0
- package/src/meeting/test/meeting1/details.ttl +0 -0
- package/src/meeting/test/meeting1/pad/pad.ttl +0 -0
- package/src/microblogPane/mbStyle.css +0 -0
- package/src/microblogPane/microblogPane.js +9 -8
- package/src/n3Pane.js +0 -0
- package/src/outline/context.ts +0 -0
- package/src/outline/dragDrop.js +5 -4
- package/src/outline/licenseOptions.js +4 -5
- package/src/outline/manager.js +42 -27
- package/src/outline/manager.test.ts +0 -0
- package/src/outline/outlineIcons.js +0 -0
- package/src/outline/propertyViews.test.ts +0 -0
- package/src/outline/propertyViews.ts +0 -0
- package/src/outline/queryByExample.js +4 -4
- package/src/outline/userInput.js +72 -72
- package/src/outline/viewAsImage.ts +0 -0
- package/src/outline/viewAsMbox.ts +0 -0
- package/src/pad/images/ColourOff.ai +0 -0
- package/src/pad/images/ColourOff.png +0 -0
- package/src/pad/images/ColourOn.ai +0 -0
- package/src/pad/images/ColourOn.png +0 -0
- package/src/pad/padPane.ts +3 -3
- package/src/playlist/playlistPane.js +0 -0
- package/src/profile/editProfile.view.ts +5 -8
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +0 -0
- package/src/schedule/Makefile +0 -0
- package/src/schedule/formsForSchedule.js +0 -0
- package/src/schedule/formsForSchedule.ttl +0 -0
- package/src/schedule/schedulePane.js +14 -13
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +0 -0
- package/src/socialPane.js +5 -4
- package/src/style/tabbedtab.css +0 -0
- package/src/tabbed/tabbedPane.ts +0 -0
- package/src/tableViewPane.js +0 -0
- package/src/test-import-export/common.js +0 -0
- package/src/test-import-export/edit-importer.js +0 -0
- package/src/test-import-export/testImportExport.js +0 -0
- package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
- package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/pane.js +1 -1
- package/src/transaction/period.js +1 -1
- package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
- package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
- package/src/trip/tripPane.js +1 -1
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
- package/src/trustedApplications/trustedApplications.dom.ts +2 -1
- package/src/trustedApplications/trustedApplications.test.ts +0 -0
- package/src/trustedApplications/trustedApplications.utils.ts +0 -0
- package/src/trustedApplications/trustedApplications.view.ts +4 -4
- package/src/types.ts +0 -0
- package/src/ui/22-builder.png +0 -0
- package/src/ui/builder.graffle +0 -0
- package/src/ui/builder.png +0 -0
- package/src/ui/builder2.png +0 -0
- package/src/ui/pane.js +0 -0
- package/src/versionInfo.ts +14 -14
- package/src/video/videoPane.js +0 -0
- package/timestamp.sh +0 -0
- package/travis/bumpversion.js +0 -0
- package/tsconfig.json +0 -0
- package/typings/raw-loader.d.ts +0 -0
- package/typings/solid-namespace/index.d.ts +0 -0
- package/webpack.config.js +0 -0
package/lib/outline/manager.js
CHANGED
|
@@ -9,6 +9,8 @@ exports["default"] = _default;
|
|
|
9
9
|
|
|
10
10
|
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
11
11
|
|
|
12
|
+
var _solidLogic = require("solid-logic");
|
|
13
|
+
|
|
12
14
|
var panes = _interopRequireWildcard(require("pane-registry"));
|
|
13
15
|
|
|
14
16
|
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
@@ -63,9 +65,9 @@ function _default(context) {
|
|
|
63
65
|
this.ancestor = UI.utils.ancestor; // make available as outline.ancestor in callbacks
|
|
64
66
|
|
|
65
67
|
this.sparql = UI.rdf.UpdateManager;
|
|
66
|
-
this.kb =
|
|
67
|
-
var kb =
|
|
68
|
-
var sf =
|
|
68
|
+
this.kb = _solidLogic.store;
|
|
69
|
+
var kb = _solidLogic.store;
|
|
70
|
+
var sf = _solidLogic.store.fetcher;
|
|
69
71
|
dom.outline = this;
|
|
70
72
|
this.qs = new _queryByExample["default"].QuerySource(); // Track queries in queryByExample
|
|
71
73
|
// var selection = [] // Array of statements which have been selected
|
|
@@ -368,7 +370,9 @@ function _default(context) {
|
|
|
368
370
|
|
|
369
371
|
containerDiv.innerHTML = '';
|
|
370
372
|
var table = containerDiv.appendChild(dom.createElement('table'));
|
|
371
|
-
|
|
373
|
+
|
|
374
|
+
var me = _solidLogic.authn.currentUser();
|
|
375
|
+
|
|
372
376
|
thisOutline.GotoSubject(item.subject || me, true, pane, false, undefined, table);
|
|
373
377
|
};
|
|
374
378
|
|
|
@@ -380,7 +384,7 @@ function _default(context) {
|
|
|
380
384
|
options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
381
385
|
console.log('globalAppTabs @@');
|
|
382
386
|
div = dom.createElement('div');
|
|
383
|
-
me =
|
|
387
|
+
me = _solidLogic.authn.currentUser();
|
|
384
388
|
|
|
385
389
|
if (me) {
|
|
386
390
|
_context.next = 9;
|
|
@@ -428,32 +432,32 @@ function _default(context) {
|
|
|
428
432
|
}
|
|
429
433
|
|
|
430
434
|
function _getDashboardItems() {
|
|
431
|
-
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
435
|
+
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
432
436
|
var me, div, _yield$Promise$all, _yield$Promise$all2, books, pods, getPods, _getPods, getAddressBooks, _getAddressBooks;
|
|
433
437
|
|
|
434
|
-
return regeneratorRuntime.wrap(function
|
|
438
|
+
return regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
435
439
|
while (1) {
|
|
436
|
-
switch (
|
|
440
|
+
switch (_context8.prev = _context8.next) {
|
|
437
441
|
case 0:
|
|
438
442
|
_getAddressBooks = function _getAddressBooks3() {
|
|
439
|
-
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
440
|
-
var
|
|
443
|
+
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
444
|
+
var _context6;
|
|
441
445
|
|
|
442
|
-
return regeneratorRuntime.wrap(function
|
|
446
|
+
return regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
443
447
|
while (1) {
|
|
444
|
-
switch (
|
|
448
|
+
switch (_context7.prev = _context7.next) {
|
|
445
449
|
case 0:
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
return UI.
|
|
450
|
+
_context7.prev = 0;
|
|
451
|
+
_context7.next = 3;
|
|
452
|
+
return UI.login.findAppInstances({
|
|
449
453
|
me: me,
|
|
450
454
|
div: div,
|
|
451
455
|
dom: dom
|
|
452
456
|
}, ns.vcard('AddressBook'));
|
|
453
457
|
|
|
454
458
|
case 3:
|
|
455
|
-
|
|
456
|
-
return
|
|
459
|
+
_context6 = _context7.sent;
|
|
460
|
+
return _context7.abrupt("return", (_context6.instances || []).map(function (book, index) {
|
|
457
461
|
return {
|
|
458
462
|
paneName: 'contact',
|
|
459
463
|
tabName: "contact-".concat(index),
|
|
@@ -464,19 +468,19 @@ function _default(context) {
|
|
|
464
468
|
}));
|
|
465
469
|
|
|
466
470
|
case 7:
|
|
467
|
-
|
|
468
|
-
|
|
471
|
+
_context7.prev = 7;
|
|
472
|
+
_context7.t0 = _context7["catch"](0);
|
|
469
473
|
console.error('oops in globalAppTabs AddressBook');
|
|
470
474
|
|
|
471
475
|
case 10:
|
|
472
|
-
return
|
|
476
|
+
return _context7.abrupt("return", []);
|
|
473
477
|
|
|
474
478
|
case 11:
|
|
475
479
|
case "end":
|
|
476
|
-
return
|
|
480
|
+
return _context7.stop();
|
|
477
481
|
}
|
|
478
482
|
}
|
|
479
|
-
},
|
|
483
|
+
}, _callee6, null, [[0, 7]]);
|
|
480
484
|
}));
|
|
481
485
|
return _getAddressBooks.apply(this, arguments);
|
|
482
486
|
};
|
|
@@ -486,142 +490,171 @@ function _default(context) {
|
|
|
486
490
|
};
|
|
487
491
|
|
|
488
492
|
_getPods = function _getPods3() {
|
|
489
|
-
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
490
|
-
var
|
|
493
|
+
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
494
|
+
var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques;
|
|
491
495
|
|
|
492
|
-
return regeneratorRuntime.wrap(function
|
|
496
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
493
497
|
while (1) {
|
|
494
|
-
switch (
|
|
498
|
+
switch (_context5.prev = _context5.next) {
|
|
495
499
|
case 0:
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
+
uniques = function _uniques(nodes) {
|
|
501
|
+
var uniqueNodes = [];
|
|
502
|
+
nodes.forEach(function (node) {
|
|
503
|
+
if (!uniqueNodes.find(function (uniqueNode) {
|
|
504
|
+
return uniqueNode.equals(node);
|
|
505
|
+
})) uniqueNodes.push(node);
|
|
506
|
+
});
|
|
507
|
+
return uniqueNodes;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
_addPodStorageFromUrl = function _addPodStorageFromUrl3() {
|
|
511
|
+
_addPodStorageFromUrl = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(url) {
|
|
512
|
+
var podStorage, pathStorage;
|
|
513
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
500
514
|
while (1) {
|
|
501
|
-
switch (
|
|
515
|
+
switch (_context4.prev = _context4.next) {
|
|
502
516
|
case 0:
|
|
503
|
-
podStorage = new URL(url); // check
|
|
517
|
+
podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
|
|
504
518
|
|
|
505
|
-
|
|
506
|
-
return pod.uri.includes(podStorage.origin);
|
|
507
|
-
})) {
|
|
508
|
-
_context3.next = 10;
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
_context3.t0 = podStorage.pathname === '/';
|
|
519
|
+
pathStorage = podStorage.pathname;
|
|
513
520
|
|
|
514
|
-
|
|
515
|
-
|
|
521
|
+
case 2:
|
|
522
|
+
if (!pathStorage.length) {
|
|
523
|
+
_context4.next = 10;
|
|
516
524
|
break;
|
|
517
525
|
}
|
|
518
526
|
|
|
519
|
-
|
|
520
|
-
|
|
527
|
+
pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'));
|
|
528
|
+
_context4.next = 6;
|
|
529
|
+
return addPodStorage(kb.sym("".concat(podStorage.origin).concat(pathStorage, "/")));
|
|
521
530
|
|
|
522
531
|
case 6:
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
case 7:
|
|
526
|
-
if (!_context3.t0) {
|
|
527
|
-
_context3.next = 10;
|
|
532
|
+
if (!_context4.sent) {
|
|
533
|
+
_context4.next = 8;
|
|
528
534
|
break;
|
|
529
535
|
}
|
|
530
536
|
|
|
531
|
-
|
|
532
|
-
|
|
537
|
+
return _context4.abrupt("return");
|
|
538
|
+
|
|
539
|
+
case 8:
|
|
540
|
+
_context4.next = 2;
|
|
541
|
+
break;
|
|
533
542
|
|
|
534
543
|
case 10:
|
|
535
544
|
case "end":
|
|
536
|
-
return
|
|
545
|
+
return _context4.stop();
|
|
537
546
|
}
|
|
538
547
|
}
|
|
539
|
-
},
|
|
548
|
+
}, _callee4);
|
|
540
549
|
}));
|
|
541
|
-
return
|
|
550
|
+
return _addPodStorageFromUrl.apply(this, arguments);
|
|
542
551
|
};
|
|
543
552
|
|
|
544
|
-
|
|
545
|
-
return
|
|
553
|
+
addPodStorageFromUrl = function _addPodStorageFromUrl2(_x8) {
|
|
554
|
+
return _addPodStorageFromUrl.apply(this, arguments);
|
|
546
555
|
};
|
|
547
556
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
return regeneratorRuntime.wrap(function
|
|
557
|
+
_addPodStorage = function _addPodStorage3() {
|
|
558
|
+
_addPodStorage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(pod) {
|
|
559
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
551
560
|
while (1) {
|
|
552
|
-
switch (
|
|
561
|
+
switch (_context3.prev = _context3.next) {
|
|
553
562
|
case 0:
|
|
554
|
-
|
|
555
|
-
return
|
|
563
|
+
_context3.next = 2;
|
|
564
|
+
return loadContainerRepresentation(pod);
|
|
556
565
|
|
|
557
566
|
case 2:
|
|
558
567
|
if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
|
|
559
|
-
|
|
568
|
+
_context3.next = 5;
|
|
560
569
|
break;
|
|
561
570
|
}
|
|
562
571
|
|
|
563
572
|
pods.push(pod);
|
|
564
|
-
return
|
|
573
|
+
return _context3.abrupt("return", true);
|
|
565
574
|
|
|
566
575
|
case 5:
|
|
567
|
-
return
|
|
576
|
+
return _context3.abrupt("return", false);
|
|
568
577
|
|
|
569
578
|
case 6:
|
|
570
579
|
case "end":
|
|
571
|
-
return
|
|
580
|
+
return _context3.stop();
|
|
572
581
|
}
|
|
573
582
|
}
|
|
574
|
-
},
|
|
583
|
+
}, _callee3);
|
|
575
584
|
}));
|
|
576
|
-
return
|
|
585
|
+
return _addPodStorage.apply(this, arguments);
|
|
577
586
|
};
|
|
578
587
|
|
|
579
|
-
|
|
580
|
-
return
|
|
588
|
+
addPodStorage = function _addPodStorage2(_x7) {
|
|
589
|
+
return _addPodStorage.apply(this, arguments);
|
|
581
590
|
};
|
|
582
591
|
|
|
583
|
-
|
|
584
|
-
|
|
592
|
+
_context5.prev = 5;
|
|
593
|
+
_context5.next = 8;
|
|
585
594
|
return kb.fetcher.load(me.doc());
|
|
586
595
|
|
|
587
|
-
case
|
|
588
|
-
|
|
596
|
+
case 8:
|
|
597
|
+
_context5.next = 14;
|
|
589
598
|
break;
|
|
590
599
|
|
|
591
|
-
case
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
console.error('Unable to load profile',
|
|
595
|
-
return
|
|
600
|
+
case 10:
|
|
601
|
+
_context5.prev = 10;
|
|
602
|
+
_context5.t0 = _context5["catch"](5);
|
|
603
|
+
console.error('Unable to load profile', _context5.t0);
|
|
604
|
+
return _context5.abrupt("return", []);
|
|
596
605
|
|
|
597
|
-
case
|
|
606
|
+
case 14:
|
|
607
|
+
// load pod's storages from profile
|
|
598
608
|
pods = kb.each(me, ns.space('storage'), null, me.doc());
|
|
599
|
-
|
|
609
|
+
pods.map( /*#__PURE__*/function () {
|
|
610
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(pod) {
|
|
611
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
612
|
+
while (1) {
|
|
613
|
+
switch (_context2.prev = _context2.next) {
|
|
614
|
+
case 0:
|
|
615
|
+
_context2.next = 2;
|
|
616
|
+
return loadContainerRepresentation(pod);
|
|
617
|
+
|
|
618
|
+
case 2:
|
|
619
|
+
case "end":
|
|
620
|
+
return _context2.stop();
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}, _callee2);
|
|
624
|
+
}));
|
|
625
|
+
|
|
626
|
+
return function (_x9) {
|
|
627
|
+
return _ref.apply(this, arguments);
|
|
628
|
+
};
|
|
629
|
+
}());
|
|
630
|
+
_context5.prev = 16;
|
|
600
631
|
// if uri then SolidOS is a browse.html web app
|
|
601
632
|
uri = new URL(window.location.href).searchParams.get('uri');
|
|
602
633
|
podUrl = uri || window.location.href;
|
|
603
|
-
|
|
604
|
-
return
|
|
634
|
+
_context5.next = 21;
|
|
635
|
+
return addPodStorageFromUrl(podUrl);
|
|
605
636
|
|
|
606
|
-
case
|
|
607
|
-
|
|
637
|
+
case 21:
|
|
638
|
+
_context5.next = 26;
|
|
608
639
|
break;
|
|
609
640
|
|
|
610
|
-
case
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
console.error('cannot load container',
|
|
641
|
+
case 23:
|
|
642
|
+
_context5.prev = 23;
|
|
643
|
+
_context5.t1 = _context5["catch"](16);
|
|
644
|
+
console.error('cannot load container', _context5.t1);
|
|
645
|
+
|
|
646
|
+
case 26:
|
|
647
|
+
pods = uniques(pods);
|
|
614
648
|
|
|
615
|
-
case 24:
|
|
616
649
|
if (pods.length) {
|
|
617
|
-
|
|
650
|
+
_context5.next = 29;
|
|
618
651
|
break;
|
|
619
652
|
}
|
|
620
653
|
|
|
621
|
-
return
|
|
654
|
+
return _context5.abrupt("return", []);
|
|
622
655
|
|
|
623
|
-
case
|
|
624
|
-
return
|
|
656
|
+
case 29:
|
|
657
|
+
return _context5.abrupt("return", pods.map(function (pod, index) {
|
|
625
658
|
function split(item) {
|
|
626
659
|
return item.uri.split('//')[1].slice(0, -1);
|
|
627
660
|
}
|
|
@@ -636,12 +669,12 @@ function _default(context) {
|
|
|
636
669
|
};
|
|
637
670
|
}));
|
|
638
671
|
|
|
639
|
-
case
|
|
672
|
+
case 30:
|
|
640
673
|
case "end":
|
|
641
|
-
return
|
|
674
|
+
return _context5.stop();
|
|
642
675
|
}
|
|
643
676
|
}
|
|
644
|
-
},
|
|
677
|
+
}, _callee5, null, [[5, 10], [16, 23]]);
|
|
645
678
|
}));
|
|
646
679
|
return _getPods.apply(this, arguments);
|
|
647
680
|
};
|
|
@@ -650,26 +683,26 @@ function _default(context) {
|
|
|
650
683
|
return _getPods.apply(this, arguments);
|
|
651
684
|
};
|
|
652
685
|
|
|
653
|
-
me =
|
|
686
|
+
me = _solidLogic.authn.currentUser();
|
|
654
687
|
|
|
655
688
|
if (me) {
|
|
656
|
-
|
|
689
|
+
_context8.next = 7;
|
|
657
690
|
break;
|
|
658
691
|
}
|
|
659
692
|
|
|
660
|
-
return
|
|
693
|
+
return _context8.abrupt("return", []);
|
|
661
694
|
|
|
662
695
|
case 7:
|
|
663
696
|
div = dom.createElement('div');
|
|
664
|
-
|
|
697
|
+
_context8.next = 10;
|
|
665
698
|
return Promise.all([getAddressBooks(), getPods()]);
|
|
666
699
|
|
|
667
700
|
case 10:
|
|
668
|
-
_yield$Promise$all =
|
|
701
|
+
_yield$Promise$all = _context8.sent;
|
|
669
702
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
670
703
|
books = _yield$Promise$all2[0];
|
|
671
704
|
pods = _yield$Promise$all2[1];
|
|
672
|
-
return
|
|
705
|
+
return _context8.abrupt("return", [{
|
|
673
706
|
paneName: 'home',
|
|
674
707
|
label: 'Your stuff',
|
|
675
708
|
icon: UI.icons.iconBase + 'noun_547570.svg'
|
|
@@ -685,10 +718,10 @@ function _default(context) {
|
|
|
685
718
|
|
|
686
719
|
case 15:
|
|
687
720
|
case "end":
|
|
688
|
-
return
|
|
721
|
+
return _context8.stop();
|
|
689
722
|
}
|
|
690
723
|
}
|
|
691
|
-
},
|
|
724
|
+
}, _callee7);
|
|
692
725
|
}));
|
|
693
726
|
return _getDashboardItems.apply(this, arguments);
|
|
694
727
|
}
|
|
@@ -707,7 +740,7 @@ function _default(context) {
|
|
|
707
740
|
}
|
|
708
741
|
|
|
709
742
|
function _showDashboard() {
|
|
710
|
-
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
743
|
+
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
711
744
|
var options,
|
|
712
745
|
dashboardContainer,
|
|
713
746
|
outlineContainer,
|
|
@@ -715,23 +748,23 @@ function _default(context) {
|
|
|
715
748
|
dashboard,
|
|
716
749
|
tab,
|
|
717
750
|
closeDashboard,
|
|
718
|
-
|
|
751
|
+
_args8 = arguments;
|
|
719
752
|
|
|
720
|
-
return regeneratorRuntime.wrap(function
|
|
753
|
+
return regeneratorRuntime.wrap(function _callee8$(_context9) {
|
|
721
754
|
while (1) {
|
|
722
|
-
switch (
|
|
755
|
+
switch (_context9.prev = _context9.next) {
|
|
723
756
|
case 0:
|
|
724
757
|
closeDashboard = function _closeDashboard() {
|
|
725
758
|
dashboardContainer.style.display = 'none';
|
|
726
759
|
outlineContainer.style.display = 'inherit';
|
|
727
760
|
};
|
|
728
761
|
|
|
729
|
-
options =
|
|
762
|
+
options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
730
763
|
dashboardContainer = getDashboardContainer();
|
|
731
764
|
outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
|
|
732
765
|
|
|
733
766
|
if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
|
|
734
|
-
|
|
767
|
+
_context9.next = 12;
|
|
735
768
|
break;
|
|
736
769
|
}
|
|
737
770
|
|
|
@@ -740,28 +773,30 @@ function _default(context) {
|
|
|
740
773
|
_tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
|
|
741
774
|
|
|
742
775
|
if (!_tab) {
|
|
743
|
-
|
|
776
|
+
_context9.next = 11;
|
|
744
777
|
break;
|
|
745
778
|
}
|
|
746
779
|
|
|
747
780
|
_tab.click();
|
|
748
781
|
|
|
749
|
-
return
|
|
782
|
+
return _context9.abrupt("return");
|
|
750
783
|
|
|
751
784
|
case 11:
|
|
752
785
|
console.warn('Did not find the referred tab in global dashboard, will open first one');
|
|
753
786
|
|
|
754
787
|
case 12:
|
|
755
|
-
|
|
788
|
+
_context9.next = 14;
|
|
756
789
|
return globalAppTabs({
|
|
757
790
|
selectedTab: options.pane,
|
|
758
791
|
onClose: closeDashboard
|
|
759
792
|
});
|
|
760
793
|
|
|
761
794
|
case 14:
|
|
762
|
-
dashboard =
|
|
795
|
+
dashboard = _context9.sent;
|
|
796
|
+
|
|
763
797
|
// close the dashboard if user log out
|
|
764
|
-
|
|
798
|
+
_solidLogic.authSession.onLogout(closeDashboard); // finally - switch to showing dashboard
|
|
799
|
+
|
|
765
800
|
|
|
766
801
|
outlineContainer.style.display = 'none';
|
|
767
802
|
dashboardContainer.appendChild(dashboard);
|
|
@@ -773,10 +808,10 @@ function _default(context) {
|
|
|
773
808
|
|
|
774
809
|
case 20:
|
|
775
810
|
case "end":
|
|
776
|
-
return
|
|
811
|
+
return _context9.stop();
|
|
777
812
|
}
|
|
778
813
|
}
|
|
779
|
-
},
|
|
814
|
+
}, _callee8);
|
|
780
815
|
}));
|
|
781
816
|
return _showDashboard.apply(this, arguments);
|
|
782
817
|
}
|
|
@@ -807,23 +842,23 @@ function _default(context) {
|
|
|
807
842
|
}();
|
|
808
843
|
}
|
|
809
844
|
|
|
810
|
-
function
|
|
811
|
-
return
|
|
845
|
+
function loadContainerRepresentation(_x) {
|
|
846
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
812
847
|
}
|
|
813
848
|
|
|
814
|
-
function
|
|
815
|
-
|
|
849
|
+
function _loadContainerRepresentation() {
|
|
850
|
+
_loadContainerRepresentation = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(subject) {
|
|
816
851
|
var response, containerTurtle;
|
|
817
|
-
return regeneratorRuntime.wrap(function
|
|
852
|
+
return regeneratorRuntime.wrap(function _callee9$(_context10) {
|
|
818
853
|
while (1) {
|
|
819
|
-
switch (
|
|
854
|
+
switch (_context10.prev = _context10.next) {
|
|
820
855
|
case 0:
|
|
821
856
|
if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
822
|
-
|
|
857
|
+
_context10.next = 6;
|
|
823
858
|
break;
|
|
824
859
|
}
|
|
825
860
|
|
|
826
|
-
|
|
861
|
+
_context10.next = 3;
|
|
827
862
|
return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
|
|
828
863
|
headers: {
|
|
829
864
|
accept: 'text/turtle'
|
|
@@ -831,18 +866,18 @@ function _default(context) {
|
|
|
831
866
|
}));
|
|
832
867
|
|
|
833
868
|
case 3:
|
|
834
|
-
response =
|
|
869
|
+
response = _context10.sent;
|
|
835
870
|
containerTurtle = response.responseText;
|
|
836
871
|
$rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
|
|
837
872
|
|
|
838
873
|
case 6:
|
|
839
874
|
case "end":
|
|
840
|
-
return
|
|
875
|
+
return _context10.stop();
|
|
841
876
|
}
|
|
842
877
|
}
|
|
843
|
-
},
|
|
878
|
+
}, _callee9);
|
|
844
879
|
}));
|
|
845
|
-
return
|
|
880
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
846
881
|
}
|
|
847
882
|
|
|
848
883
|
function getRelevantPanes(_x2, _x3) {
|
|
@@ -850,19 +885,19 @@ function _default(context) {
|
|
|
850
885
|
}
|
|
851
886
|
|
|
852
887
|
function _getRelevantPanes() {
|
|
853
|
-
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
888
|
+
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(subject, context) {
|
|
854
889
|
var panes, relevantPanes, filteredPanes, firstRelevantPaneIndex, firstFilteredPaneIndex;
|
|
855
|
-
return regeneratorRuntime.wrap(function
|
|
890
|
+
return regeneratorRuntime.wrap(function _callee10$(_context11) {
|
|
856
891
|
while (1) {
|
|
857
|
-
switch (
|
|
892
|
+
switch (_context11.prev = _context11.next) {
|
|
858
893
|
case 0:
|
|
859
894
|
if (!subject.uri.endsWith('/')) {
|
|
860
|
-
|
|
895
|
+
_context11.next = 3;
|
|
861
896
|
break;
|
|
862
897
|
}
|
|
863
898
|
|
|
864
|
-
|
|
865
|
-
return
|
|
899
|
+
_context11.next = 3;
|
|
900
|
+
return loadContainerRepresentation(subject);
|
|
866
901
|
|
|
867
902
|
case 3:
|
|
868
903
|
panes = context.session.paneRegistry;
|
|
@@ -871,38 +906,38 @@ function _default(context) {
|
|
|
871
906
|
});
|
|
872
907
|
|
|
873
908
|
if (!(relevantPanes.length === 0)) {
|
|
874
|
-
|
|
909
|
+
_context11.next = 7;
|
|
875
910
|
break;
|
|
876
911
|
}
|
|
877
912
|
|
|
878
|
-
return
|
|
913
|
+
return _context11.abrupt("return", [panes.byName('internal')]);
|
|
879
914
|
|
|
880
915
|
case 7:
|
|
881
|
-
|
|
882
|
-
return UI.
|
|
916
|
+
_context11.next = 9;
|
|
917
|
+
return UI.login.filterAvailablePanes(relevantPanes);
|
|
883
918
|
|
|
884
919
|
case 9:
|
|
885
|
-
filteredPanes =
|
|
920
|
+
filteredPanes = _context11.sent;
|
|
886
921
|
|
|
887
922
|
if (!(filteredPanes.length === 0)) {
|
|
888
|
-
|
|
923
|
+
_context11.next = 12;
|
|
889
924
|
break;
|
|
890
925
|
}
|
|
891
926
|
|
|
892
|
-
return
|
|
927
|
+
return _context11.abrupt("return", [relevantPanes[0]]);
|
|
893
928
|
|
|
894
929
|
case 12:
|
|
895
930
|
firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
|
|
896
931
|
firstFilteredPaneIndex = panes.list.indexOf(filteredPanes[0]); // if the first relevant pane is loaded before the panes available wrt role, we still want to offer the most relevant pane
|
|
897
932
|
|
|
898
|
-
return
|
|
933
|
+
return _context11.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
|
|
899
934
|
|
|
900
935
|
case 15:
|
|
901
936
|
case "end":
|
|
902
|
-
return
|
|
937
|
+
return _context11.stop();
|
|
903
938
|
}
|
|
904
939
|
}
|
|
905
|
-
},
|
|
940
|
+
}, _callee10);
|
|
906
941
|
}));
|
|
907
942
|
return _getRelevantPanes.apply(this, arguments);
|
|
908
943
|
}
|
|
@@ -940,50 +975,50 @@ function _default(context) {
|
|
|
940
975
|
|
|
941
976
|
|
|
942
977
|
function _expandedHeaderTR() {
|
|
943
|
-
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
978
|
+
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(subject, requiredPane, options) {
|
|
944
979
|
var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong;
|
|
945
980
|
|
|
946
|
-
return regeneratorRuntime.wrap(function
|
|
981
|
+
return regeneratorRuntime.wrap(function _callee12$(_context13) {
|
|
947
982
|
while (1) {
|
|
948
|
-
switch (
|
|
983
|
+
switch (_context13.prev = _context13.next) {
|
|
949
984
|
case 0:
|
|
950
985
|
_renderPaneIconTray = function _renderPaneIconTray3() {
|
|
951
|
-
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
986
|
+
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(td) {
|
|
952
987
|
var options,
|
|
953
988
|
paneShownStyle,
|
|
954
989
|
paneHiddenStyle,
|
|
955
990
|
paneIconTray,
|
|
956
991
|
relevantPanes,
|
|
957
992
|
paneNumber,
|
|
958
|
-
|
|
959
|
-
return regeneratorRuntime.wrap(function
|
|
993
|
+
_args11 = arguments;
|
|
994
|
+
return regeneratorRuntime.wrap(function _callee11$(_context12) {
|
|
960
995
|
while (1) {
|
|
961
|
-
switch (
|
|
996
|
+
switch (_context12.prev = _context12.next) {
|
|
962
997
|
case 0:
|
|
963
|
-
options =
|
|
998
|
+
options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
|
|
964
999
|
paneShownStyle = 'width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;';
|
|
965
1000
|
paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
|
|
966
1001
|
paneIconTray = td.appendChild(dom.createElement('nav'));
|
|
967
1002
|
paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
|
|
968
1003
|
|
|
969
1004
|
if (!options.hideList) {
|
|
970
|
-
|
|
1005
|
+
_context12.next = 9;
|
|
971
1006
|
break;
|
|
972
1007
|
}
|
|
973
1008
|
|
|
974
|
-
|
|
975
|
-
|
|
1009
|
+
_context12.t0 = [];
|
|
1010
|
+
_context12.next = 12;
|
|
976
1011
|
break;
|
|
977
1012
|
|
|
978
1013
|
case 9:
|
|
979
|
-
|
|
1014
|
+
_context12.next = 11;
|
|
980
1015
|
return getRelevantPanes(subject, context);
|
|
981
1016
|
|
|
982
1017
|
case 11:
|
|
983
|
-
|
|
1018
|
+
_context12.t0 = _context12.sent;
|
|
984
1019
|
|
|
985
1020
|
case 12:
|
|
986
|
-
relevantPanes =
|
|
1021
|
+
relevantPanes = _context12.t0;
|
|
987
1022
|
tr.firstPane = requiredPane || getPane(relevantPanes, subject);
|
|
988
1023
|
paneNumber = relevantPanes.indexOf(tr.firstPane);
|
|
989
1024
|
|
|
@@ -1100,19 +1135,19 @@ function _default(context) {
|
|
|
1100
1135
|
});
|
|
1101
1136
|
}
|
|
1102
1137
|
|
|
1103
|
-
return
|
|
1138
|
+
return _context12.abrupt("return", paneIconTray);
|
|
1104
1139
|
|
|
1105
1140
|
case 17:
|
|
1106
1141
|
case "end":
|
|
1107
|
-
return
|
|
1142
|
+
return _context12.stop();
|
|
1108
1143
|
}
|
|
1109
1144
|
}
|
|
1110
|
-
},
|
|
1145
|
+
}, _callee11);
|
|
1111
1146
|
}));
|
|
1112
1147
|
return _renderPaneIconTray.apply(this, arguments);
|
|
1113
1148
|
};
|
|
1114
1149
|
|
|
1115
|
-
renderPaneIconTray = function _renderPaneIconTray2(
|
|
1150
|
+
renderPaneIconTray = function _renderPaneIconTray2(_x10) {
|
|
1116
1151
|
return _renderPaneIconTray.apply(this, arguments);
|
|
1117
1152
|
};
|
|
1118
1153
|
|
|
@@ -1144,16 +1179,16 @@ function _default(context) {
|
|
|
1144
1179
|
UI.widgets.makeDraggable(strong, subject);
|
|
1145
1180
|
}
|
|
1146
1181
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1182
|
+
_context13.t0 = header;
|
|
1183
|
+
_context13.next = 16;
|
|
1149
1184
|
return renderPaneIconTray(td, {
|
|
1150
1185
|
hideList: showHeader
|
|
1151
1186
|
});
|
|
1152
1187
|
|
|
1153
1188
|
case 16:
|
|
1154
|
-
|
|
1189
|
+
_context13.t1 = _context13.sent;
|
|
1155
1190
|
|
|
1156
|
-
|
|
1191
|
+
_context13.t0.appendChild.call(_context13.t0, _context13.t1);
|
|
1157
1192
|
|
|
1158
1193
|
// set DOM methods
|
|
1159
1194
|
tr.firstChild.tabulatorSelect = function () {
|
|
@@ -1164,14 +1199,14 @@ function _default(context) {
|
|
|
1164
1199
|
setSelected(this, false);
|
|
1165
1200
|
};
|
|
1166
1201
|
|
|
1167
|
-
return
|
|
1202
|
+
return _context13.abrupt("return", tr);
|
|
1168
1203
|
|
|
1169
1204
|
case 21:
|
|
1170
1205
|
case "end":
|
|
1171
|
-
return
|
|
1206
|
+
return _context13.stop();
|
|
1172
1207
|
}
|
|
1173
1208
|
}
|
|
1174
|
-
},
|
|
1209
|
+
}, _callee12);
|
|
1175
1210
|
}));
|
|
1176
1211
|
return _expandedHeaderTR.apply(this, arguments);
|
|
1177
1212
|
}
|
|
@@ -1661,7 +1696,7 @@ function _default(context) {
|
|
|
1661
1696
|
|
|
1662
1697
|
if (target.label) {
|
|
1663
1698
|
window.content.location = target.label; // The following alternative does not work in the extension.
|
|
1664
|
-
// var s =
|
|
1699
|
+
// var s = store.sym(target.label);
|
|
1665
1700
|
// outline.GotoSubject(s, true);
|
|
1666
1701
|
}
|
|
1667
1702
|
};
|
|
@@ -1735,7 +1770,7 @@ function _default(context) {
|
|
|
1735
1770
|
// don't do these for headers or base nodes
|
|
1736
1771
|
var source = st.why; // var target = st.why
|
|
1737
1772
|
|
|
1738
|
-
var editable =
|
|
1773
|
+
var editable = _solidLogic.store.updater.editable(source.uri, kb);
|
|
1739
1774
|
|
|
1740
1775
|
if (!editable) {// let target = node.parentNode.AJAR_inverse ? st.object : st.subject
|
|
1741
1776
|
} // left hand side
|
|
@@ -1923,7 +1958,7 @@ function _default(context) {
|
|
|
1923
1958
|
// I don't know why 'HTML'
|
|
1924
1959
|
var object = UI.utils.getAbout(kb, selectedTd);
|
|
1925
1960
|
target = selectedTd.parentNode.AJAR_statement.why;
|
|
1926
|
-
editable =
|
|
1961
|
+
editable = _solidLogic.store.updater.editable(target.uri, kb);
|
|
1927
1962
|
|
|
1928
1963
|
if (object) {
|
|
1929
1964
|
// <Feature about='enterToExpand'>
|
|
@@ -1984,7 +2019,7 @@ function _default(context) {
|
|
|
1984
2019
|
case 8:
|
|
1985
2020
|
// backspace
|
|
1986
2021
|
target = selectedTd.parentNode.AJAR_statement.why;
|
|
1987
|
-
editable =
|
|
2022
|
+
editable = _solidLogic.store.updater.editable(target.uri, kb);
|
|
1988
2023
|
|
|
1989
2024
|
if (editable) {
|
|
1990
2025
|
e.preventDefault(); // prevent from going back
|
|
@@ -2253,7 +2288,9 @@ function _default(context) {
|
|
|
2253
2288
|
if (!st) return; // For example in the title TD of an expanded pane
|
|
2254
2289
|
|
|
2255
2290
|
var _target = st.why;
|
|
2256
|
-
|
|
2291
|
+
|
|
2292
|
+
var editable = _solidLogic.store.updater.editable(_target.uri, kb);
|
|
2293
|
+
|
|
2257
2294
|
if (sel && editable) thisOutline.UserInput.Click(e, selection[0]); // was next 2 lines
|
|
2258
2295
|
// var text='TabulatorMouseDown@Outline()';
|
|
2259
2296
|
// HCIoptions['able to edit in Discovery Mode by mouse'].setupHere([sel,e,thisOutline,selection[0]],text);
|