solid-panes 3.5.27 → 3.5.28-59efa615
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 +0 -0
- 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 -2
- package/dev/index.html +0 -0
- package/dev/loader.ts +0 -0
- 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 +15 -9
- package/lib/RDFXMLPane.js.map +1 -1
- package/lib/argument/argumentPane.js +12 -11
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +58 -90
- package/lib/attach/attachPane.js.map +1 -1
- package/lib/audio/audioPane.js +19 -37
- package/lib/audio/audioPane.js.map +1 -1
- package/lib/classInstancePane.js +21 -22
- package/lib/classInstancePane.js.map +1 -1
- package/lib/dashboard/basicPreferences.d.ts +0 -0
- package/lib/dashboard/basicPreferences.d.ts.map +0 -0
- package/lib/dashboard/basicPreferences.js +96 -154
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.d.ts +0 -0
- package/lib/dashboard/dashboardPane.d.ts.map +0 -0
- package/lib/dashboard/dashboardPane.js +2 -18
- 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 +27 -49
- package/lib/dashboard/homepage.js.map +1 -1
- package/lib/dataContentPane.js +26 -61
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +23 -23
- package/lib/defaultPane.js.map +1 -1
- package/lib/dokieli/dokieliPane.js +29 -34
- package/lib/dokieli/dokieliPane.js.map +1 -1
- package/lib/dokieli/new.js +6 -1
- package/lib/dokieli/new.js.map +1 -1
- package/lib/form/pane.js +34 -45
- 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 +0 -0
- package/lib/home/homePane.js +49 -67
- package/lib/home/homePane.js.map +1 -1
- package/lib/humanReadablePane.js +14 -28
- package/lib/humanReadablePane.js.map +1 -1
- package/lib/imagePane.js +19 -14
- package/lib/imagePane.js.map +1 -1
- package/lib/index.d.ts +0 -0
- package/lib/index.d.ts.map +0 -0
- package/lib/index.js +6 -20
- 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 +10 -41
- package/lib/internal/internalPane.js.map +1 -1
- package/lib/mainPage/footer.d.ts +0 -0
- package/lib/mainPage/footer.d.ts.map +0 -0
- package/lib/mainPage/footer.js +0 -4
- package/lib/mainPage/footer.js.map +1 -1
- package/lib/mainPage/header.d.ts +0 -0
- package/lib/mainPage/header.d.ts.map +0 -0
- package/lib/mainPage/header.js +66 -100
- 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 +17 -30
- package/lib/mainPage/index.js.map +1 -1
- package/lib/microblogPane/microblogPane.js +182 -321
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +12 -8
- package/lib/n3Pane.js.map +1 -1
- package/lib/outline/context.d.ts +0 -0
- package/lib/outline/context.d.ts.map +0 -0
- package/lib/outline/context.js +0 -2
- package/lib/outline/context.js.map +1 -1
- package/lib/outline/licenseOptions.js +21 -35
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +740 -1176
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +16 -25
- package/lib/outline/manager.test.js.map +1 -1
- package/lib/outline/outlineIcons.js +39 -26
- package/lib/outline/outlineIcons.js.map +1 -1
- package/lib/outline/propertyViews.d.ts +3 -2
- package/lib/outline/propertyViews.d.ts.map +1 -1
- package/lib/outline/propertyViews.js +7 -15
- package/lib/outline/propertyViews.js.map +1 -1
- package/lib/outline/propertyViews.test.js +7 -7
- package/lib/outline/propertyViews.test.js.map +1 -1
- package/lib/outline/queryByExample.js +28 -80
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +221 -459
- 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 -6
- package/lib/outline/viewAsImage.js.map +1 -1
- package/lib/outline/viewAsMbox.d.ts +0 -0
- package/lib/outline/viewAsMbox.d.ts.map +0 -0
- package/lib/outline/viewAsMbox.js +3 -4
- package/lib/outline/viewAsMbox.js.map +1 -1
- package/lib/pad/padPane.d.ts +0 -0
- package/lib/pad/padPane.d.ts.map +0 -0
- package/lib/pad/padPane.js +45 -93
- package/lib/pad/padPane.js.map +1 -1
- package/lib/playlist/playlistPane.js +11 -21
- package/lib/playlist/playlistPane.js.map +1 -1
- 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 +22 -23
- 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 -3
- package/lib/profile/profile.dom.js.map +1 -1
- package/lib/registerPanes.js +99 -54
- package/lib/registerPanes.js.map +1 -1
- package/lib/schedule/formsForSchedule.js +6 -1
- package/lib/schedule/formsForSchedule.js.map +1 -1
- package/lib/schedule/schedulePane.js +71 -126
- 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 +2 -10
- package/lib/sharing/sharingPane.js.map +1 -1
- package/lib/slideshow/slideshowPane.js +21 -21
- package/lib/slideshow/slideshowPane.js.map +1 -1
- package/lib/socialPane.js +58 -135
- 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 +32 -48
- package/lib/tabbed/tabbedPane.js.map +1 -1
- package/lib/tableViewPane.js +15 -9
- package/lib/tableViewPane.js.map +1 -1
- package/lib/test-import-export/common.js +8 -3
- package/lib/test-import-export/common.js.map +1 -1
- package/lib/test-import-export/edit-importer.js +10 -14
- package/lib/test-import-export/edit-importer.js.map +1 -1
- package/lib/test-import-export/testImportExport.js +0 -0
- package/lib/test-import-export/testImportExport.js.map +0 -0
- package/lib/transaction/pane.js +38 -91
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +27 -71
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +38 -35
- 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 +0 -0
- package/lib/trustedApplications/trustedApplications.dom.js +12 -35
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +6 -8
- package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
- 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 +1 -11
- package/lib/trustedApplications/trustedApplications.utils.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts.map +0 -0
- package/lib/trustedApplications/trustedApplications.view.js +38 -61
- 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 +30 -29
- package/lib/ui/pane.js.map +1 -1
- 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 +11 -7
- package/lib/video/videoPane.js.map +1 -1
- package/package.json +26 -26
- package/src/RDFXMLPane.js +2 -2
- package/src/argument/argumentPane.js +1 -1
- 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 +3 -3
- 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 +3 -3
- package/src/chatPreferencesForm.ttl +0 -0
- package/src/classInstancePane.js +3 -3
- package/src/dashboard/basicPreferences.ts +0 -0
- package/src/dashboard/dashboardPane.ts +0 -0
- 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 +3 -4
- package/src/defaultPane.js +3 -3
- package/src/dokieli/Makefile +0 -0
- package/src/dokieli/dokieliPane.js +5 -5
- package/src/dokieli/new.html +0 -0
- package/src/dokieli/new.js +1 -1
- 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 +2 -2
- package/src/form/psuedocode-notes.txt +0 -0
- package/src/global.d.ts +0 -0
- package/src/home/homePane.ts +0 -0
- package/src/humanReadablePane.js +0 -0
- package/src/imagePane.js +2 -2
- package/src/index.ts +1 -1
- package/src/internal/internalPane.ts +0 -0
- package/src/mainPage/footer.ts +0 -0
- package/src/mainPage/header.ts +0 -0
- 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 +1 -1
- package/src/n3Pane.js +2 -2
- package/src/outline/context.ts +0 -0
- package/src/outline/licenseOptions.js +9 -8
- package/src/outline/manager.js +18 -20
- package/src/outline/manager.test.ts +6 -0
- package/src/outline/outlineIcons.js +4 -2
- package/src/outline/propertyViews.test.ts +7 -1
- package/src/outline/propertyViews.ts +3 -3
- package/src/outline/queryByExample.js +3 -9
- package/src/outline/userInput.js +1 -1
- 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 +0 -0
- package/src/playlist/playlistPane.js +3 -3
- package/src/profile/editProfile.view.ts +20 -0
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +92 -52
- package/src/schedule/Makefile +0 -0
- package/src/schedule/formsForSchedule.js +1 -1
- package/src/schedule/formsForSchedule.ttl +0 -0
- package/src/schedule/schedulePane.js +6 -2
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +3 -6
- package/src/socialPane.js +4 -5
- package/src/style/tabbedtab.css +0 -0
- package/src/tabbed/tabbedPane.ts +0 -0
- package/src/tableViewPane.js +3 -3
- package/src/test-import-export/common.js +1 -1
- package/src/test-import-export/edit-importer.js +5 -10
- 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 +3 -3
- package/src/transaction/period.js +2 -2
- 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 +3 -3
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
- package/src/trustedApplications/trustedApplications.dom.ts +0 -0
- package/src/trustedApplications/trustedApplications.test.ts +4 -0
- package/src/trustedApplications/trustedApplications.utils.ts +0 -0
- package/src/trustedApplications/trustedApplications.view.ts +0 -0
- 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 +3 -3
- package/src/versionInfo.ts +14 -14
- package/src/video/videoPane.js +3 -3
- 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
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
4
|
+
var _util = require("util");
|
|
5
5
|
var _manager = _interopRequireDefault(require("./manager"));
|
|
6
|
-
|
|
7
6
|
var _rdflib = require("rdflib");
|
|
8
|
-
|
|
9
7
|
var _dom = require("@testing-library/dom");
|
|
10
|
-
|
|
11
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
|
|
13
|
-
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
14
|
-
|
|
9
|
+
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
15
10
|
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); } }
|
|
16
|
-
|
|
17
11
|
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); }); }; }
|
|
18
|
-
|
|
12
|
+
global.TextEncoder = _util.TextEncoder;
|
|
13
|
+
global.TextDecoder = _util.TextDecoder;
|
|
19
14
|
var MockPane = {
|
|
20
15
|
render: function render(subject) {
|
|
21
16
|
var div = document.createElement('div');
|
|
@@ -88,22 +83,18 @@ describe('manager', function () {
|
|
|
88
83
|
it('renders relevant pane', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
89
84
|
var expand, error;
|
|
90
85
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
91
|
-
while (1) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
case 6:
|
|
104
|
-
case "end":
|
|
105
|
-
return _context.stop();
|
|
106
|
-
}
|
|
86
|
+
while (1) switch (_context.prev = _context.next) {
|
|
87
|
+
case 0:
|
|
88
|
+
expand = result.firstChild;
|
|
89
|
+
expand.click();
|
|
90
|
+
_context.next = 4;
|
|
91
|
+
return (0, _dom.findByText)(result.parentNode, /Mock Pane/);
|
|
92
|
+
case 4:
|
|
93
|
+
error = _context.sent;
|
|
94
|
+
expect(error).toHaveTextContent('Mock Pane for https://namednode.example/');
|
|
95
|
+
case 6:
|
|
96
|
+
case "end":
|
|
97
|
+
return _context.stop();
|
|
107
98
|
}
|
|
108
99
|
}, _callee);
|
|
109
100
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.test.js","names":["MockPane","render","subject","div","document","createElement","appendChild","createTextNode","uri","mockPaneRegistry","list","byName","describe","result","beforeAll","table","row","manager","OutlineManager","dom","session","paneRegistry","outlineObjectTD","sym","it","expect","nodeName","toBe","toHaveAttribute","toHaveClass","toHaveStyle","img","firstChild","toHaveTextContent","label","getByText","linkIcon","beforeEach","lastChild","expand","click","findByText","parentNode","error","phoneLink","phoneIcon","lit","not","text","blankNode"],"sources":["../../src/outline/manager.test.ts"],"sourcesContent":["/* eslint-env jest */\nimport OutlineManager from './manager'\n\nimport { lit, NamedNode, sym, blankNode } from 'rdflib'\nimport { findByText, getByText } from '@testing-library/dom'\n\nconst MockPane = {\n render: (subject: NamedNode) => {\n const div = document.createElement('div')\n div.appendChild(document.createTextNode(`Mock Pane for ${subject.uri}`))\n return div\n }\n}\n\nconst mockPaneRegistry = {\n list: [],\n byName: () => MockPane\n}\n\ndescribe('manager', () => {\n describe('outline object td', () => {\n describe('for a named node', () => {\n let result\n beforeAll(() => {\n const table = document.createElement('table')\n const row = document.createElement('tr')\n table.appendChild(row)\n const manager = new OutlineManager({ dom: document, session: { paneRegistry: mockPaneRegistry } })\n result = manager.outlineObjectTD(sym('https://namednode.example/'), null, null, null)\n row.appendChild(result)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('about attribute refers to node', () => {\n expect(result).toHaveAttribute('about', '<https://namednode.example/>')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows an expand icon', () => {\n const img = result.firstChild\n expect(img.nodeName).toBe('IMG')\n expect(img).toHaveAttribute('src', 'https://solidos.github.io/solid-ui/src/originalIcons/tbl-expand-trans.png')\n })\n it('shows the node label', () => {\n expect(result).toHaveTextContent('namednode.example')\n })\n it('label is draggable', () => {\n const label = getByText(result, 'namednode.example')\n expect(label).toHaveAttribute('draggable', 'true')\n })\n describe('link icon', () => {\n let linkIcon\n beforeEach(() => {\n const label = getByText(result, 'namednode.example')\n linkIcon = label.lastChild\n })\n it('is linked to named node URI', () => {\n expect(linkIcon.nodeName).toBe('A')\n expect(linkIcon).toHaveAttribute('href', 'https://namednode.example/')\n })\n })\n describe('expanding', () => {\n it('renders relevant pane', async () => {\n const expand = result.firstChild\n expand.click()\n const error = await findByText(result.parentNode, /Mock Pane/)\n expect(error).toHaveTextContent('Mock Pane for https://namednode.example/')\n })\n })\n })\n\n describe('for a tel uri', () => {\n let result\n beforeAll(() => {\n const manager = new OutlineManager({ dom: document })\n result = manager.outlineObjectTD(sym('tel:+1-201-555-0123'), null, null, null)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('about attribute refers to tel uri', () => {\n expect(result).toHaveAttribute('about', '<tel:+1-201-555-0123>')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows an expand icon', () => {\n const img = result.firstChild\n expect(img.nodeName).toBe('IMG')\n expect(img).toHaveAttribute('src', 'https://solidos.github.io/solid-ui/src/originalIcons/tbl-expand-trans.png')\n })\n it('shows the phone number', () => {\n expect(result).toHaveTextContent('+1-201-555-0123')\n })\n describe('phone link', () => {\n let phoneLink\n beforeAll(() => {\n const label = getByText(result, '+1-201-555-0123')\n phoneLink = label.lastChild\n })\n it('is linked to tel uri', () => {\n expect(phoneLink.nodeName).toBe('A')\n expect(phoneLink).toHaveAttribute('href', 'tel:+1-201-555-0123')\n })\n it('is represented by phone icon', () => {\n const phoneIcon = phoneLink.lastChild\n expect(phoneIcon.nodeName).toBe('IMG')\n expect(phoneIcon).toHaveAttribute('src', 'https://solidos.github.io/solid-ui/src/originalIcons/silk/telephone.png')\n })\n })\n })\n\n describe('for a literal', () => {\n let result\n beforeAll(() => {\n const manager = new OutlineManager({ dom: document })\n result = manager.outlineObjectTD(lit('some text'), null, null, null)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('has no about attribute', () => {\n expect(result).not.toHaveAttribute('about')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows the literal text', () => {\n expect(result).toHaveTextContent('some text')\n })\n it('literal text preserves white space', () => {\n const text = getByText(result, 'some text')\n expect(text).toHaveStyle('white-space: pre-wrap;')\n })\n })\n\n describe('for a blank node', () => {\n let result\n beforeAll(() => {\n const manager = new OutlineManager({ dom: document })\n result = manager.outlineObjectTD(blankNode('blank-node'), null, null, null)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('has about attribute', () => {\n expect(result).toHaveAttribute('about', '_:blank-node')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows 3 dots', () => {\n expect(result).toHaveTextContent('...')\n })\n })\n })\n})\n"],"mappings":";;;;AACA;;AAEA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D,CAAN,CAAeiB,WAAf,CAA2B,+DAA3B;MACD,CAFC,CAAF;MAGAN,EAAE,CAAC,cAAD,EAAiB,YAAM;QACvBC,MAAM,CAACZ,MAAD,CAAN,CAAeoB,iBAAf,CAAiC,KAAjC;MACD,CAFC,CAAF;IAGD,CAxBO,CAAR;EAyBD,CAjKO,CAAR;AAkKD,CAnKO,CAAR"}
|
|
1
|
+
{"version":3,"file":"manager.test.js","names":["global","TextEncoder","TextDecoder","MockPane","render","subject","div","document","createElement","appendChild","createTextNode","uri","mockPaneRegistry","list","byName","describe","result","beforeAll","table","row","manager","OutlineManager","dom","session","paneRegistry","outlineObjectTD","sym","it","expect","nodeName","toBe","toHaveAttribute","toHaveClass","toHaveStyle","img","firstChild","toHaveTextContent","label","getByText","linkIcon","beforeEach","lastChild","expand","click","findByText","parentNode","error","phoneLink","phoneIcon","lit","not","text","blankNode"],"sources":["../../src/outline/manager.test.ts"],"sourcesContent":["/* eslint-env jest */\n\nimport { TextEncoder, TextDecoder } from 'util'\nglobal.TextEncoder = TextEncoder as any\nglobal.TextDecoder = TextDecoder as any\n\n\nimport OutlineManager from './manager'\n\nimport { lit, NamedNode, sym, blankNode } from 'rdflib'\nimport { findByText, getByText } from '@testing-library/dom'\n\nconst MockPane = {\n render: (subject: NamedNode) => {\n const div = document.createElement('div')\n div.appendChild(document.createTextNode(`Mock Pane for ${subject.uri}`))\n return div\n }\n}\n\nconst mockPaneRegistry = {\n list: [],\n byName: () => MockPane\n}\n\ndescribe('manager', () => {\n describe('outline object td', () => {\n describe('for a named node', () => {\n let result\n beforeAll(() => {\n const table = document.createElement('table')\n const row = document.createElement('tr')\n table.appendChild(row)\n const manager = new OutlineManager({ dom: document, session: { paneRegistry: mockPaneRegistry } })\n result = manager.outlineObjectTD(sym('https://namednode.example/'), null, null, null)\n row.appendChild(result)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('about attribute refers to node', () => {\n expect(result).toHaveAttribute('about', '<https://namednode.example/>')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows an expand icon', () => {\n const img = result.firstChild\n expect(img.nodeName).toBe('IMG')\n expect(img).toHaveAttribute('src', 'https://solidos.github.io/solid-ui/src/originalIcons/tbl-expand-trans.png')\n })\n it('shows the node label', () => {\n expect(result).toHaveTextContent('namednode.example')\n })\n it('label is draggable', () => {\n const label = getByText(result, 'namednode.example')\n expect(label).toHaveAttribute('draggable', 'true')\n })\n describe('link icon', () => {\n let linkIcon\n beforeEach(() => {\n const label = getByText(result, 'namednode.example')\n linkIcon = label.lastChild\n })\n it('is linked to named node URI', () => {\n expect(linkIcon.nodeName).toBe('A')\n expect(linkIcon).toHaveAttribute('href', 'https://namednode.example/')\n })\n })\n describe('expanding', () => {\n it('renders relevant pane', async () => {\n const expand = result.firstChild\n expand.click()\n const error = await findByText(result.parentNode, /Mock Pane/)\n expect(error).toHaveTextContent('Mock Pane for https://namednode.example/')\n })\n })\n })\n\n describe('for a tel uri', () => {\n let result\n beforeAll(() => {\n const manager = new OutlineManager({ dom: document })\n result = manager.outlineObjectTD(sym('tel:+1-201-555-0123'), null, null, null)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('about attribute refers to tel uri', () => {\n expect(result).toHaveAttribute('about', '<tel:+1-201-555-0123>')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows an expand icon', () => {\n const img = result.firstChild\n expect(img.nodeName).toBe('IMG')\n expect(img).toHaveAttribute('src', 'https://solidos.github.io/solid-ui/src/originalIcons/tbl-expand-trans.png')\n })\n it('shows the phone number', () => {\n expect(result).toHaveTextContent('+1-201-555-0123')\n })\n describe('phone link', () => {\n let phoneLink\n beforeAll(() => {\n const label = getByText(result, '+1-201-555-0123')\n phoneLink = label.lastChild\n })\n it('is linked to tel uri', () => {\n expect(phoneLink.nodeName).toBe('A')\n expect(phoneLink).toHaveAttribute('href', 'tel:+1-201-555-0123')\n })\n it('is represented by phone icon', () => {\n const phoneIcon = phoneLink.lastChild\n expect(phoneIcon.nodeName).toBe('IMG')\n expect(phoneIcon).toHaveAttribute('src', 'https://solidos.github.io/solid-ui/src/originalIcons/silk/telephone.png')\n })\n })\n })\n\n describe('for a literal', () => {\n let result\n beforeAll(() => {\n const manager = new OutlineManager({ dom: document })\n result = manager.outlineObjectTD(lit('some text'), null, null, null)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('has no about attribute', () => {\n expect(result).not.toHaveAttribute('about')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows the literal text', () => {\n expect(result).toHaveTextContent('some text')\n })\n it('literal text preserves white space', () => {\n const text = getByText(result, 'some text')\n expect(text).toHaveStyle('white-space: pre-wrap;')\n })\n })\n\n describe('for a blank node', () => {\n let result\n beforeAll(() => {\n const manager = new OutlineManager({ dom: document })\n result = manager.outlineObjectTD(blankNode('blank-node'), null, null, null)\n })\n it('is a html td element', () => {\n expect(result.nodeName).toBe('TD')\n })\n it('has about attribute', () => {\n expect(result).toHaveAttribute('about', '_:blank-node')\n })\n it('has class obj', () => {\n expect(result).toHaveClass('obj')\n })\n it('is selectable', () => {\n expect(result).toHaveAttribute('notselectable', 'false')\n })\n it('has style', () => {\n expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')\n })\n it('shows 3 dots', () => {\n expect(result).toHaveTextContent('...')\n })\n })\n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CAAC,eAAe,EAAE,OAAO,CAAC;MAC1D,CAAC,CAAC;MACFJ,EAAE,CAAC,WAAW,EAAE,YAAM;QACpBC,MAAM,CAACZ,MAAM,CAAC,CAACiB,WAAW,CAAC,+DAA+D,CAAC;MAC7F,CAAC,CAAC;MACFN,EAAE,CAAC,cAAc,EAAE,YAAM;QACvBC,MAAM,CAACZ,MAAM,CAAC,CAACoB,iBAAiB,CAAC,KAAK,CAAC;MACzC,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.outlineIcons = void 0;
|
|
8
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
3
11
|
// This is a system of tracking tooltip phrases used by the tabulator outliner
|
|
4
|
-
var outlineIcons = module.exports = {}; // was tabulator.Icon
|
|
5
|
-
|
|
6
|
-
var UI = require('solid-ui');
|
|
7
12
|
|
|
13
|
+
var outlineIcons = {};
|
|
14
|
+
exports.outlineIcons = outlineIcons;
|
|
8
15
|
outlineIcons.src = []; // collect the URIs of the icon filterColumns
|
|
9
|
-
|
|
10
16
|
outlineIcons.tooltips = []; // look up tool tips from URL
|
|
17
|
+
|
|
11
18
|
/// /////////////////////// Common icons
|
|
12
19
|
|
|
13
20
|
outlineIcons.src.icon_expand = UI.icons.originalIconBase + 'tbl-expand-trans.png';
|
|
14
21
|
outlineIcons.src.icon_more = UI.icons.originalIconBase + 'tbl-more-trans.png'; // looks just like expand, diff semantics
|
|
15
22
|
// Icon.src.icon_expand = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_expand.png';
|
|
16
|
-
|
|
17
23
|
outlineIcons.src.icon_collapse = UI.icons.originalIconBase + 'tbl-collapse.png';
|
|
18
24
|
outlineIcons.src.icon_internals = UI.icons.originalIconBase + 'tango/22-emblem-system.png';
|
|
19
25
|
outlineIcons.src.icon_instances = UI.icons.originalIconBase + 'tango/22-folder-open.png';
|
|
@@ -21,31 +27,31 @@ outlineIcons.src.icon_foaf = UI.icons.originalIconBase + 'foaf/foafTiny.gif';
|
|
|
21
27
|
outlineIcons.src.icon_social = UI.icons.originalIconBase + 'social/social.gif';
|
|
22
28
|
outlineIcons.src.icon_mb = UI.icons.originalIconBase + 'microblog/microblog.png';
|
|
23
29
|
outlineIcons.src.icon_shrink = UI.icons.originalIconBase + 'tbl-shrink.png'; // shrink list back up
|
|
30
|
+
outlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png';
|
|
31
|
+
// Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';
|
|
24
32
|
|
|
25
|
-
outlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png'; // Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';
|
|
26
33
|
// Status balls:
|
|
27
34
|
|
|
28
|
-
outlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif';
|
|
29
|
-
|
|
35
|
+
outlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif';
|
|
36
|
+
// outlineIcons.src.Icon.src.icon_parse = UI.icons.originalIconBase + '18x18-white.gif';
|
|
30
37
|
outlineIcons.src.icon_fetched = UI.icons.originalIconBase + '16dot-green.gif';
|
|
31
38
|
outlineIcons.src.icon_failed = UI.icons.originalIconBase + '16dot-red.gif';
|
|
32
|
-
outlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif';
|
|
33
|
-
//
|
|
39
|
+
outlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif';
|
|
40
|
+
// Icon.src.icon_maximize = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_con_max.png';
|
|
34
41
|
|
|
42
|
+
// Panes:
|
|
35
43
|
outlineIcons.src.icon_CVPane = UI.icons.originalIconBase + 'CV.png';
|
|
36
44
|
outlineIcons.src.icon_defaultPane = UI.icons.originalIconBase + 'about.png';
|
|
37
45
|
outlineIcons.src.icon_visit = UI.icons.originalIconBase + 'tango/22-text-x-generic.png';
|
|
38
46
|
outlineIcons.src.icon_dataContents = UI.icons.originalIconBase + 'rdf_flyer.24.gif'; // @@ Bad .. find better
|
|
39
|
-
|
|
40
47
|
outlineIcons.src.icon_n3Pane = UI.icons.originalIconBase + 'w3c/n3_smaller.png'; // @@ Bad .. find better
|
|
41
|
-
|
|
42
48
|
outlineIcons.src.icon_RDFXMLPane = UI.icons.originalIconBase + '22-text-xml4.png'; // @@ Bad .. find better
|
|
43
|
-
|
|
44
49
|
outlineIcons.src.icon_imageContents = UI.icons.originalIconBase + 'tango/22-image-x-generic.png';
|
|
45
50
|
outlineIcons.src.icon_airPane = UI.icons.originalIconBase + '1pt5a.gif';
|
|
46
51
|
outlineIcons.src.icon_LawPane = UI.icons.originalIconBase + 'law.jpg';
|
|
47
|
-
outlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png';
|
|
52
|
+
outlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png';
|
|
48
53
|
|
|
54
|
+
// For photo albums (By albert08@csail.mit.edu)
|
|
49
55
|
outlineIcons.src.icon_photoPane = UI.icons.originalIconBase + 'photo_small.png';
|
|
50
56
|
outlineIcons.src.icon_tagPane = UI.icons.originalIconBase + 'tag_small.png';
|
|
51
57
|
outlineIcons.src.icon_TinyTag = UI.icons.originalIconBase + 'tag_tiny.png';
|
|
@@ -53,11 +59,13 @@ outlineIcons.src.icon_photoBegin = UI.icons.originalIconBase + 'photo_begin.png'
|
|
|
53
59
|
outlineIcons.src.icon_photoNext = UI.icons.originalIconBase + 'photo_next.png';
|
|
54
60
|
outlineIcons.src.icon_photoBack = UI.icons.originalIconBase + 'photo_back.png';
|
|
55
61
|
outlineIcons.src.icon_photoEnd = UI.icons.originalIconBase + 'photo_end.png';
|
|
56
|
-
outlineIcons.src.icon_photoImportPane = UI.icons.originalIconBase + 'flickr_small.png';
|
|
62
|
+
outlineIcons.src.icon_photoImportPane = UI.icons.originalIconBase + 'flickr_small.png';
|
|
63
|
+
// Icon.src.icon_CloseButton = UI.icons.originalIconBase + 'close_tiny.png';
|
|
57
64
|
// Icon.src.icon_AddButton = UI.icons.originalIconBase + 'addphoto_tiny.png';
|
|
65
|
+
|
|
58
66
|
// For that one we need a document with grid lines. Make data-x-generix maybe
|
|
59
|
-
// actions for sources;
|
|
60
67
|
|
|
68
|
+
// actions for sources;
|
|
61
69
|
outlineIcons.src.icon_retract = UI.icons.originalIconBase + 'retract.gif';
|
|
62
70
|
outlineIcons.src.icon_refresh = UI.icons.originalIconBase + 'refresh.gif';
|
|
63
71
|
outlineIcons.src.icon_optoff = UI.icons.originalIconBase + 'optional_off.PNG';
|
|
@@ -65,7 +73,9 @@ outlineIcons.src.icon_opton = UI.icons.originalIconBase + 'optional_on.PNG';
|
|
|
65
73
|
outlineIcons.src.icon_map = UI.icons.originalIconBase + 'compassrose.png';
|
|
66
74
|
outlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested;
|
|
67
75
|
outlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested;
|
|
68
|
-
outlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png';
|
|
76
|
+
outlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png';
|
|
77
|
+
|
|
78
|
+
// Within outline mode:
|
|
69
79
|
|
|
70
80
|
outlineIcons.src.icon_telephone = UI.icons.originalIconBase + 'silk/telephone.png';
|
|
71
81
|
outlineIcons.src.icon_time = UI.icons.originalIconBase + 'Wclocksmall.png';
|
|
@@ -73,11 +83,12 @@ outlineIcons.src.icon_remove_node = UI.icons.originalIconBase + 'tbl-x-small.png
|
|
|
73
83
|
outlineIcons.src.icon_add_triple = UI.icons.originalIconBase + 'tango/22-list-add.png';
|
|
74
84
|
outlineIcons.src.icon_add_new_triple = UI.icons.originalIconBase + 'tango/22-list-add-new.png';
|
|
75
85
|
outlineIcons.src.icon_show_choices = UI.icons.originalIconBase + 'userinput_show_choices_temp.png'; // looks just like collapse, diff smmantics
|
|
76
|
-
// Inline Justification
|
|
77
86
|
|
|
87
|
+
// Inline Justification
|
|
78
88
|
outlineIcons.src.icon_display_reasons = UI.icons.originalIconBase + 'tango/22-help-browser.png';
|
|
79
|
-
outlineIcons.tooltips[outlineIcons.src.icon_display_reasons] = 'Display explanations';
|
|
89
|
+
outlineIcons.tooltips[outlineIcons.src.icon_display_reasons] = 'Display explanations';
|
|
80
90
|
|
|
91
|
+
// Other tooltips
|
|
81
92
|
outlineIcons.tooltips[outlineIcons.src.icon_add_triple] = 'Add more';
|
|
82
93
|
outlineIcons.tooltips[outlineIcons.src.icon_add_new_triple] = 'Add one';
|
|
83
94
|
outlineIcons.tooltips[outlineIcons.src.icon_remove_node] = 'Remove';
|
|
@@ -87,31 +98,33 @@ outlineIcons.tooltips[outlineIcons.src.icon_shrink] = 'Shrink list.';
|
|
|
87
98
|
outlineIcons.tooltips[outlineIcons.src.icon_internals] = 'Under the hood';
|
|
88
99
|
outlineIcons.tooltips[outlineIcons.src.icon_instances] = 'List';
|
|
89
100
|
outlineIcons.tooltips[outlineIcons.src.icon_foaf] = 'Friends';
|
|
90
|
-
outlineIcons.tooltips[outlineIcons.src.icon_rows] = 'Make a table of data like this';
|
|
91
|
-
|
|
101
|
+
outlineIcons.tooltips[outlineIcons.src.icon_rows] = 'Make a table of data like this';
|
|
102
|
+
// Note the string '[Tt]his resource' can be replaced with an actual URI by the code
|
|
92
103
|
outlineIcons.tooltips[outlineIcons.src.icon_unrequested] = 'Fetch this.';
|
|
93
104
|
outlineIcons.tooltips[outlineIcons.src.icon_fetched] = 'Fetched successfully.';
|
|
94
105
|
outlineIcons.tooltips[outlineIcons.src.icon_failed] = 'Failed to load. Click to retry.';
|
|
95
106
|
outlineIcons.tooltips[outlineIcons.src.icon_requested] = 'This is being fetched. Please wait...';
|
|
96
107
|
outlineIcons.tooltips[outlineIcons.src.icon_visit] = 'View document';
|
|
97
108
|
outlineIcons.tooltips[outlineIcons.src.icon_retract] = 'Remove this source and all its data from tabulator.';
|
|
98
|
-
outlineIcons.tooltips[outlineIcons.src.icon_refresh] = 'Refresh this source and reload its triples.';
|
|
109
|
+
outlineIcons.tooltips[outlineIcons.src.icon_refresh] = 'Refresh this source and reload its triples.';
|
|
110
|
+
|
|
111
|
+
/// ////////////////////////////// End comon area
|
|
99
112
|
|
|
100
113
|
outlineIcons.OutlinerIcon = function (src, width, alt, tooltip, filter) {
|
|
101
114
|
this.src = src;
|
|
102
115
|
this.alt = alt;
|
|
103
116
|
this.width = width;
|
|
104
117
|
this.tooltip = tooltip;
|
|
105
|
-
this.filter = filter;
|
|
118
|
+
this.filter = filter;
|
|
119
|
+
// filter: RDFStatement,('subj'|'pred'|'obj')->boolean, inverse->boolean (whether the statement is an inverse).
|
|
106
120
|
// Filter on whether to show this icon for a term; optional property.
|
|
107
121
|
// If filter is not passed, this icon will never AUTOMATICALLY be shown.
|
|
108
122
|
// You can show it with termWidget.addIcon
|
|
109
|
-
|
|
110
123
|
return this;
|
|
111
124
|
};
|
|
112
|
-
|
|
113
125
|
outlineIcons.termWidgets = {};
|
|
114
126
|
outlineIcons.termWidgets.optOn = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_opton, 20, 'opt on', 'Make this branch of your query mandatory.');
|
|
115
127
|
outlineIcons.termWidgets.optOff = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_optoff, 20, 'opt off', 'Make this branch of your query optional.');
|
|
116
|
-
outlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_add_triple, 18, 'add tri', 'Add one');
|
|
128
|
+
outlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_add_triple, 18, 'add tri', 'Add one');
|
|
129
|
+
// Ideally: "New "+label(subject)
|
|
117
130
|
//# sourceMappingURL=outlineIcons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outlineIcons.js","names":["outlineIcons","module","exports","UI","require","src","tooltips","icon_expand","icons","originalIconBase","icon_more","icon_collapse","icon_internals","icon_instances","icon_foaf","icon_social","icon_mb","icon_shrink","icon_rows","icon_unrequested","icon_fetched","icon_failed","icon_requested","icon_CVPane","icon_defaultPane","icon_visit","icon_dataContents","icon_n3Pane","icon_RDFXMLPane","icon_imageContents","icon_airPane","icon_LawPane","icon_pushbackPane","icon_photoPane","icon_tagPane","icon_TinyTag","icon_photoBegin","icon_photoNext","icon_photoBack","icon_photoEnd","icon_photoImportPane","icon_retract","icon_refresh","icon_optoff","icon_opton","icon_map","icon_retracted","icon_time","icon_telephone","icon_remove_node","icon_add_triple","icon_add_new_triple","icon_show_choices","icon_display_reasons","OutlinerIcon","width","alt","tooltip","filter","termWidgets","optOn","optOff","addTri"],"sources":["../../src/outline/outlineIcons.js"],"sourcesContent":["// This is a system of tracking tooltip phrases used by the tabulator outliner\n\nconst outlineIcons = (module.exports = {}) // was tabulator.Icon\nconst UI = require('solid-ui')\n\noutlineIcons.src = [] // collect the URIs of the icon filterColumns\noutlineIcons.tooltips = [] // look up tool tips from URL\n\n/// /////////////////////// Common icons\n\noutlineIcons.src.icon_expand =\n UI.icons.originalIconBase + 'tbl-expand-trans.png'\noutlineIcons.src.icon_more = UI.icons.originalIconBase + 'tbl-more-trans.png' // looks just like expand, diff semantics\n// Icon.src.icon_expand = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_expand.png';\noutlineIcons.src.icon_collapse = UI.icons.originalIconBase + 'tbl-collapse.png'\noutlineIcons.src.icon_internals =\n UI.icons.originalIconBase + 'tango/22-emblem-system.png'\noutlineIcons.src.icon_instances =\n UI.icons.originalIconBase + 'tango/22-folder-open.png'\noutlineIcons.src.icon_foaf = UI.icons.originalIconBase + 'foaf/foafTiny.gif'\noutlineIcons.src.icon_social = UI.icons.originalIconBase + 'social/social.gif'\noutlineIcons.src.icon_mb = UI.icons.originalIconBase + 'microblog/microblog.png'\noutlineIcons.src.icon_shrink = UI.icons.originalIconBase + 'tbl-shrink.png' // shrink list back up\noutlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png'\n// Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';\n\n// Status balls:\n\noutlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif'\n// outlineIcons.src.Icon.src.icon_parse = UI.icons.originalIconBase + '18x18-white.gif';\noutlineIcons.src.icon_fetched = UI.icons.originalIconBase + '16dot-green.gif'\noutlineIcons.src.icon_failed = UI.icons.originalIconBase + '16dot-red.gif'\noutlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif'\n// Icon.src.icon_maximize = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_con_max.png';\n\n// Panes:\noutlineIcons.src.icon_CVPane = UI.icons.originalIconBase + 'CV.png'\noutlineIcons.src.icon_defaultPane = UI.icons.originalIconBase + 'about.png'\noutlineIcons.src.icon_visit =\n UI.icons.originalIconBase + 'tango/22-text-x-generic.png'\noutlineIcons.src.icon_dataContents =\n UI.icons.originalIconBase + 'rdf_flyer.24.gif' // @@ Bad .. find better\noutlineIcons.src.icon_n3Pane = UI.icons.originalIconBase + 'w3c/n3_smaller.png' // @@ Bad .. find better\noutlineIcons.src.icon_RDFXMLPane =\n UI.icons.originalIconBase + '22-text-xml4.png' // @@ Bad .. find better\noutlineIcons.src.icon_imageContents =\n UI.icons.originalIconBase + 'tango/22-image-x-generic.png'\noutlineIcons.src.icon_airPane = UI.icons.originalIconBase + '1pt5a.gif'\noutlineIcons.src.icon_LawPane = UI.icons.originalIconBase + 'law.jpg'\noutlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png'\n\n// For photo albums (By albert08@csail.mit.edu)\noutlineIcons.src.icon_photoPane = UI.icons.originalIconBase + 'photo_small.png'\noutlineIcons.src.icon_tagPane = UI.icons.originalIconBase + 'tag_small.png'\noutlineIcons.src.icon_TinyTag = UI.icons.originalIconBase + 'tag_tiny.png'\noutlineIcons.src.icon_photoBegin = UI.icons.originalIconBase + 'photo_begin.png'\noutlineIcons.src.icon_photoNext = UI.icons.originalIconBase + 'photo_next.png'\noutlineIcons.src.icon_photoBack = UI.icons.originalIconBase + 'photo_back.png'\noutlineIcons.src.icon_photoEnd = UI.icons.originalIconBase + 'photo_end.png'\noutlineIcons.src.icon_photoImportPane =\n UI.icons.originalIconBase + 'flickr_small.png'\n// Icon.src.icon_CloseButton = UI.icons.originalIconBase + 'close_tiny.png';\n// Icon.src.icon_AddButton = UI.icons.originalIconBase + 'addphoto_tiny.png';\n\n// For that one we need a document with grid lines. Make data-x-generix maybe\n\n// actions for sources;\noutlineIcons.src.icon_retract = UI.icons.originalIconBase + 'retract.gif'\noutlineIcons.src.icon_refresh = UI.icons.originalIconBase + 'refresh.gif'\noutlineIcons.src.icon_optoff = UI.icons.originalIconBase + 'optional_off.PNG'\noutlineIcons.src.icon_opton = UI.icons.originalIconBase + 'optional_on.PNG'\noutlineIcons.src.icon_map = UI.icons.originalIconBase + 'compassrose.png'\noutlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested\noutlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested\n\noutlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png'\n\n// Within outline mode:\n\noutlineIcons.src.icon_telephone =\n UI.icons.originalIconBase + 'silk/telephone.png'\noutlineIcons.src.icon_time = UI.icons.originalIconBase + 'Wclocksmall.png'\noutlineIcons.src.icon_remove_node =\n UI.icons.originalIconBase + 'tbl-x-small.png'\noutlineIcons.src.icon_add_triple =\n UI.icons.originalIconBase + 'tango/22-list-add.png'\noutlineIcons.src.icon_add_new_triple =\n UI.icons.originalIconBase + 'tango/22-list-add-new.png'\noutlineIcons.src.icon_show_choices =\n UI.icons.originalIconBase + 'userinput_show_choices_temp.png' // looks just like collapse, diff smmantics\n\n// Inline Justification\noutlineIcons.src.icon_display_reasons =\n UI.icons.originalIconBase + 'tango/22-help-browser.png'\noutlineIcons.tooltips[outlineIcons.src.icon_display_reasons] =\n 'Display explanations'\n\n// Other tooltips\noutlineIcons.tooltips[outlineIcons.src.icon_add_triple] = 'Add more'\noutlineIcons.tooltips[outlineIcons.src.icon_add_new_triple] = 'Add one'\noutlineIcons.tooltips[outlineIcons.src.icon_remove_node] = 'Remove'\noutlineIcons.tooltips[outlineIcons.src.icon_expand] = 'View details.'\noutlineIcons.tooltips[outlineIcons.src.icon_collapse] = 'Hide details.'\noutlineIcons.tooltips[outlineIcons.src.icon_shrink] = 'Shrink list.'\noutlineIcons.tooltips[outlineIcons.src.icon_internals] = 'Under the hood'\noutlineIcons.tooltips[outlineIcons.src.icon_instances] = 'List'\noutlineIcons.tooltips[outlineIcons.src.icon_foaf] = 'Friends'\noutlineIcons.tooltips[outlineIcons.src.icon_rows] =\n 'Make a table of data like this'\n// Note the string '[Tt]his resource' can be replaced with an actual URI by the code\noutlineIcons.tooltips[outlineIcons.src.icon_unrequested] = 'Fetch this.'\noutlineIcons.tooltips[outlineIcons.src.icon_fetched] = 'Fetched successfully.'\noutlineIcons.tooltips[outlineIcons.src.icon_failed] =\n 'Failed to load. Click to retry.'\noutlineIcons.tooltips[outlineIcons.src.icon_requested] =\n 'This is being fetched. Please wait...'\n\noutlineIcons.tooltips[outlineIcons.src.icon_visit] = 'View document'\noutlineIcons.tooltips[outlineIcons.src.icon_retract] =\n 'Remove this source and all its data from tabulator.'\noutlineIcons.tooltips[outlineIcons.src.icon_refresh] =\n 'Refresh this source and reload its triples.'\n\n/// ////////////////////////////// End comon area\n\noutlineIcons.OutlinerIcon = function (src, width, alt, tooltip, filter) {\n this.src = src\n this.alt = alt\n this.width = width\n this.tooltip = tooltip\n this.filter = filter\n // filter: RDFStatement,('subj'|'pred'|'obj')->boolean, inverse->boolean (whether the statement is an inverse).\n // Filter on whether to show this icon for a term; optional property.\n // If filter is not passed, this icon will never AUTOMATICALLY be shown.\n // You can show it with termWidget.addIcon\n return this\n}\n\noutlineIcons.termWidgets = {}\noutlineIcons.termWidgets.optOn = new outlineIcons.OutlinerIcon(\n outlineIcons.src.icon_opton,\n 20,\n 'opt on',\n 'Make this branch of your query mandatory.'\n)\noutlineIcons.termWidgets.optOff = new outlineIcons.OutlinerIcon(\n outlineIcons.src.icon_optoff,\n 20,\n 'opt off',\n 'Make this branch of your query optional.'\n)\noutlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(\n outlineIcons.src.icon_add_triple,\n 18,\n 'add tri',\n 'Add one'\n)\n// Ideally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ips","icon_expand","UI","icons","originalIconBase","icon_more","icon_collapse","icon_internals","icon_instances","icon_foaf","icon_social","icon_mb","icon_shrink","icon_rows","icon_unrequested","icon_fetched","icon_failed","icon_requested","icon_CVPane","icon_defaultPane","icon_visit","icon_dataContents","icon_n3Pane","icon_RDFXMLPane","icon_imageContents","icon_airPane","icon_LawPane","icon_pushbackPane","icon_photoPane","icon_tagPane","icon_TinyTag","icon_photoBegin","icon_photoNext","icon_photoBack","icon_photoEnd","icon_photoImportPane","icon_retract","icon_refresh","icon_optoff","icon_opton","icon_map","icon_retracted","icon_time","icon_telephone","icon_remove_node","icon_add_triple","icon_add_new_triple","icon_show_choices","icon_display_reasons","OutlinerIcon","width","alt","tooltip","filter","termWidgets","optOn","optOff","addTri"],"sources":["../../src/outline/outlineIcons.js"],"sourcesContent":["// This is a system of tracking tooltip phrases used by the tabulator outliner\n\nimport * as UI from 'solid-ui'\n\n\nexport const outlineIcons = {}\n\noutlineIcons.src = [] // collect the URIs of the icon filterColumns\noutlineIcons.tooltips = [] // look up tool tips from URL\n\n/// /////////////////////// Common icons\n\noutlineIcons.src.icon_expand =\n UI.icons.originalIconBase + 'tbl-expand-trans.png'\noutlineIcons.src.icon_more = UI.icons.originalIconBase + 'tbl-more-trans.png' // looks just like expand, diff semantics\n// Icon.src.icon_expand = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_expand.png';\noutlineIcons.src.icon_collapse = UI.icons.originalIconBase + 'tbl-collapse.png'\noutlineIcons.src.icon_internals =\n UI.icons.originalIconBase + 'tango/22-emblem-system.png'\noutlineIcons.src.icon_instances =\n UI.icons.originalIconBase + 'tango/22-folder-open.png'\noutlineIcons.src.icon_foaf = UI.icons.originalIconBase + 'foaf/foafTiny.gif'\noutlineIcons.src.icon_social = UI.icons.originalIconBase + 'social/social.gif'\noutlineIcons.src.icon_mb = UI.icons.originalIconBase + 'microblog/microblog.png'\noutlineIcons.src.icon_shrink = UI.icons.originalIconBase + 'tbl-shrink.png' // shrink list back up\noutlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png'\n// Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';\n\n// Status balls:\n\noutlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif'\n// outlineIcons.src.Icon.src.icon_parse = UI.icons.originalIconBase + '18x18-white.gif';\noutlineIcons.src.icon_fetched = UI.icons.originalIconBase + '16dot-green.gif'\noutlineIcons.src.icon_failed = UI.icons.originalIconBase + '16dot-red.gif'\noutlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif'\n// Icon.src.icon_maximize = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_con_max.png';\n\n// Panes:\noutlineIcons.src.icon_CVPane = UI.icons.originalIconBase + 'CV.png'\noutlineIcons.src.icon_defaultPane = UI.icons.originalIconBase + 'about.png'\noutlineIcons.src.icon_visit =\n UI.icons.originalIconBase + 'tango/22-text-x-generic.png'\noutlineIcons.src.icon_dataContents =\n UI.icons.originalIconBase + 'rdf_flyer.24.gif' // @@ Bad .. find better\noutlineIcons.src.icon_n3Pane = UI.icons.originalIconBase + 'w3c/n3_smaller.png' // @@ Bad .. find better\noutlineIcons.src.icon_RDFXMLPane =\n UI.icons.originalIconBase + '22-text-xml4.png' // @@ Bad .. find better\noutlineIcons.src.icon_imageContents =\n UI.icons.originalIconBase + 'tango/22-image-x-generic.png'\noutlineIcons.src.icon_airPane = UI.icons.originalIconBase + '1pt5a.gif'\noutlineIcons.src.icon_LawPane = UI.icons.originalIconBase + 'law.jpg'\noutlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png'\n\n// For photo albums (By albert08@csail.mit.edu)\noutlineIcons.src.icon_photoPane = UI.icons.originalIconBase + 'photo_small.png'\noutlineIcons.src.icon_tagPane = UI.icons.originalIconBase + 'tag_small.png'\noutlineIcons.src.icon_TinyTag = UI.icons.originalIconBase + 'tag_tiny.png'\noutlineIcons.src.icon_photoBegin = UI.icons.originalIconBase + 'photo_begin.png'\noutlineIcons.src.icon_photoNext = UI.icons.originalIconBase + 'photo_next.png'\noutlineIcons.src.icon_photoBack = UI.icons.originalIconBase + 'photo_back.png'\noutlineIcons.src.icon_photoEnd = UI.icons.originalIconBase + 'photo_end.png'\noutlineIcons.src.icon_photoImportPane =\n UI.icons.originalIconBase + 'flickr_small.png'\n// Icon.src.icon_CloseButton = UI.icons.originalIconBase + 'close_tiny.png';\n// Icon.src.icon_AddButton = UI.icons.originalIconBase + 'addphoto_tiny.png';\n\n// For that one we need a document with grid lines. Make data-x-generix maybe\n\n// actions for sources;\noutlineIcons.src.icon_retract = UI.icons.originalIconBase + 'retract.gif'\noutlineIcons.src.icon_refresh = UI.icons.originalIconBase + 'refresh.gif'\noutlineIcons.src.icon_optoff = UI.icons.originalIconBase + 'optional_off.PNG'\noutlineIcons.src.icon_opton = UI.icons.originalIconBase + 'optional_on.PNG'\noutlineIcons.src.icon_map = UI.icons.originalIconBase + 'compassrose.png'\noutlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested\noutlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested\n\noutlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png'\n\n// Within outline mode:\n\noutlineIcons.src.icon_telephone =\n UI.icons.originalIconBase + 'silk/telephone.png'\noutlineIcons.src.icon_time = UI.icons.originalIconBase + 'Wclocksmall.png'\noutlineIcons.src.icon_remove_node =\n UI.icons.originalIconBase + 'tbl-x-small.png'\noutlineIcons.src.icon_add_triple =\n UI.icons.originalIconBase + 'tango/22-list-add.png'\noutlineIcons.src.icon_add_new_triple =\n UI.icons.originalIconBase + 'tango/22-list-add-new.png'\noutlineIcons.src.icon_show_choices =\n UI.icons.originalIconBase + 'userinput_show_choices_temp.png' // looks just like collapse, diff smmantics\n\n// Inline Justification\noutlineIcons.src.icon_display_reasons =\n UI.icons.originalIconBase + 'tango/22-help-browser.png'\noutlineIcons.tooltips[outlineIcons.src.icon_display_reasons] =\n 'Display explanations'\n\n// Other tooltips\noutlineIcons.tooltips[outlineIcons.src.icon_add_triple] = 'Add more'\noutlineIcons.tooltips[outlineIcons.src.icon_add_new_triple] = 'Add one'\noutlineIcons.tooltips[outlineIcons.src.icon_remove_node] = 'Remove'\noutlineIcons.tooltips[outlineIcons.src.icon_expand] = 'View details.'\noutlineIcons.tooltips[outlineIcons.src.icon_collapse] = 'Hide details.'\noutlineIcons.tooltips[outlineIcons.src.icon_shrink] = 'Shrink list.'\noutlineIcons.tooltips[outlineIcons.src.icon_internals] = 'Under the hood'\noutlineIcons.tooltips[outlineIcons.src.icon_instances] = 'List'\noutlineIcons.tooltips[outlineIcons.src.icon_foaf] = 'Friends'\noutlineIcons.tooltips[outlineIcons.src.icon_rows] =\n 'Make a table of data like this'\n// Note the string '[Tt]his resource' can be replaced with an actual URI by the code\noutlineIcons.tooltips[outlineIcons.src.icon_unrequested] = 'Fetch this.'\noutlineIcons.tooltips[outlineIcons.src.icon_fetched] = 'Fetched successfully.'\noutlineIcons.tooltips[outlineIcons.src.icon_failed] =\n 'Failed to load. Click to retry.'\noutlineIcons.tooltips[outlineIcons.src.icon_requested] =\n 'This is being fetched. Please wait...'\n\noutlineIcons.tooltips[outlineIcons.src.icon_visit] = 'View document'\noutlineIcons.tooltips[outlineIcons.src.icon_retract] =\n 'Remove this source and all its data from tabulator.'\noutlineIcons.tooltips[outlineIcons.src.icon_refresh] =\n 'Refresh this source and reload its triples.'\n\n/// ////////////////////////////// End comon area\n\noutlineIcons.OutlinerIcon = function (src, width, alt, tooltip, filter) {\n this.src = src\n this.alt = alt\n this.width = width\n this.tooltip = tooltip\n this.filter = filter\n // filter: RDFStatement,('subj'|'pred'|'obj')->boolean, inverse->boolean (whether the statement is an inverse).\n // Filter on whether to show this icon for a term; optional property.\n // If filter is not passed, this icon will never AUTOMATICALLY be shown.\n // You can show it with termWidget.addIcon\n return this\n}\n\noutlineIcons.termWidgets = {}\noutlineIcons.termWidgets.optOn = new outlineIcons.OutlinerIcon(\n outlineIcons.src.icon_opton,\n 20,\n 'opt on',\n 'Make this branch of your query mandatory.'\n)\noutlineIcons.termWidgets.optOff = new outlineIcons.OutlinerIcon(\n outlineIcons.src.icon_optoff,\n 20,\n 'opt off',\n 'Make this branch of your query optional.'\n)\noutlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(\n outlineIcons.src.icon_add_triple,\n 18,\n 'add tri',\n 'Add one'\n)\n// Ideally: \"New \"+label(subject)\n"],"mappings":";;;;;;;AAEA;AAA8B;AAAA;AAF9B;;AAKO,IAAMA,YAAY,GAAG,CAAC,CAAC;AAAA;AAE9BA,YAAY,CAACC,GAAG,GAAG,EAAE,EAAC;AACtBD,YAAY,CAACE,QAAQ,GAAG,EAAE,EAAC;;AAE3B;;AAEAF,YAAY,CAACC,GAAG,CAACE,WAAW,GAC1BC,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,sBAAsB;AACpDN,YAAY,CAACC,GAAG,CAACM,SAAS,GAAGH,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,oBAAoB,EAAC;AAC9E;AACAN,YAAY,CAACC,GAAG,CAACO,aAAa,GAAGJ,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,kBAAkB;AAC/EN,YAAY,CAACC,GAAG,CAACQ,cAAc,GAC7BL,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,4BAA4B;AAC1DN,YAAY,CAACC,GAAG,CAACS,cAAc,GAC7BN,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,0BAA0B;AACxDN,YAAY,CAACC,GAAG,CAACU,SAAS,GAAGP,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,mBAAmB;AAC5EN,YAAY,CAACC,GAAG,CAACW,WAAW,GAAGR,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,mBAAmB;AAC9EN,YAAY,CAACC,GAAG,CAACY,OAAO,GAAGT,EAAE,CAACC,KAAK,CAACC,gBAAgB,GAAG,yB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T,SAAS,CACV;AACD"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** some builtin simple views **/
|
|
2
|
-
declare
|
|
2
|
+
export declare function propertyViews(dom: any): {
|
|
3
3
|
properties: never[];
|
|
4
4
|
defaults: never[];
|
|
5
5
|
classes: never[];
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
/** add a property view function **/
|
|
8
|
+
export declare function viewsAddPropertyView(views: any, property: any, pviewfunc: any, isDefault: any): void;
|
|
8
9
|
//# sourceMappingURL=propertyViews.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyViews.d.ts","sourceRoot":"","sources":["../../src/outline/propertyViews.ts"],"names":[],"mappings":"AAIA,iCAAiC
|
|
1
|
+
{"version":3,"file":"propertyViews.d.ts","sourceRoot":"","sources":["../../src/outline/propertyViews.ts"],"names":[],"mappings":"AAIA,iCAAiC;AAEjC,wBAAgB,aAAa,CAAE,GAAG,KAAA;;;;EAkBjC;AAED,oCAAoC;AACpC,wBAAgB,oBAAoB,CAAE,KAAK,KAAA,EAAE,QAAQ,KAAA,EAAE,SAAS,KAAA,EAAE,SAAS,KAAA,QAS1E"}
|
|
@@ -3,18 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports.propertyViews = propertyViews;
|
|
7
|
+
exports.viewsAddPropertyView = viewsAddPropertyView;
|
|
8
8
|
var _solidUi = require("solid-ui");
|
|
9
|
-
|
|
10
9
|
var _viewAsImage = _interopRequireDefault(require("./viewAsImage"));
|
|
11
|
-
|
|
12
10
|
var _viewAsMbox = _interopRequireDefault(require("./viewAsMbox"));
|
|
13
|
-
|
|
14
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
12
|
/** some builtin simple views **/
|
|
17
|
-
|
|
13
|
+
|
|
14
|
+
function propertyViews(dom) {
|
|
18
15
|
// view that applies to items that are objects of certain properties.
|
|
19
16
|
var views = {
|
|
20
17
|
properties: [],
|
|
@@ -31,22 +28,17 @@ var _default = function _default(dom) {
|
|
|
31
28
|
viewsAddPropertyView(views, _solidUi.ns.schema('image').uri, asImage, true);
|
|
32
29
|
viewsAddPropertyView(views, _solidUi.ns.foaf('mbox').uri, asMbox, true);
|
|
33
30
|
return views;
|
|
34
|
-
}
|
|
35
|
-
/** add a property view function **/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
exports["default"] = _default;
|
|
31
|
+
}
|
|
39
32
|
|
|
33
|
+
/** add a property view function **/
|
|
40
34
|
function viewsAddPropertyView(views, property, pviewfunc, isDefault) {
|
|
41
35
|
if (!views.properties[property]) {
|
|
42
36
|
views.properties[property] = [];
|
|
43
37
|
}
|
|
44
|
-
|
|
45
38
|
views.properties[property].push(pviewfunc);
|
|
46
|
-
|
|
47
39
|
if (isDefault) {
|
|
48
40
|
// will override an existing default!
|
|
49
41
|
views.defaults[property] = pviewfunc;
|
|
50
42
|
}
|
|
51
|
-
} //
|
|
43
|
+
} // viewsAddPropertyView
|
|
52
44
|
//# sourceMappingURL=propertyViews.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyViews.js","names":["dom","views","properties","defaults","classes","asImage","viewAsImage","asMbox","viewAsMbox","viewsAddPropertyView","ns","foaf","uri","schema","property","pviewfunc","isDefault","push"],"sources":["../../src/outline/propertyViews.ts"],"sourcesContent":["import { ns } from 'solid-ui'\nimport viewAsImage from './viewAsImage'\nimport viewAsMbox from './viewAsMbox'\n\n/** some builtin simple views **/\n\nexport
|
|
1
|
+
{"version":3,"file":"propertyViews.js","names":["propertyViews","dom","views","properties","defaults","classes","asImage","viewAsImage","asMbox","viewAsMbox","viewsAddPropertyView","ns","foaf","uri","schema","property","pviewfunc","isDefault","push"],"sources":["../../src/outline/propertyViews.ts"],"sourcesContent":["import { ns } from 'solid-ui'\nimport viewAsImage from './viewAsImage'\nimport viewAsMbox from './viewAsMbox'\n\n/** some builtin simple views **/\n\nexport function propertyViews (dom) {\n // view that applies to items that are objects of certain properties.\n const views = {\n properties: [],\n defaults: [],\n classes: []\n } // views\n\n const asImage = viewAsImage(dom)\n const asMbox = viewAsMbox(dom)\n\n viewsAddPropertyView(views, ns.foaf('depiction').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('img').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('thumbnail').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('logo').uri, asImage, true)\n viewsAddPropertyView(views, ns.schema('image').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('mbox').uri, asMbox, true)\n return views\n}\n\n/** add a property view function **/\nexport function viewsAddPropertyView (views, property, pviewfunc, isDefault) {\n if (!views.properties[property]) {\n views.properties[property] = []\n }\n views.properties[property].push(pviewfunc)\n if (isDefault) {\n // will override an existing default!\n views.defaults[property] = pviewfunc\n }\n} // viewsAddPropertyView\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAAqC;AAErC;;AAEO,SAASA,aAAa,CAAEC,GAAG,EAAE;EAClC;EACA,IAAMC,KAAK,GAAG;IACZC,UAAU,EAAE,EAAE;IACdC,QAAQ,EAAE,EAAE;IACZC,OAAO,EAAE;EACX,CAAC,EAAC;;EAEF,IAAMC,OAAO,GAAG,IAAAC,uBAAW,EAACN,GAAG,CAAC;EAChC,IAAMO,MAAM,GAAG,IAAAC,sBAAU,EAACR,GAAG,CAAC;EAE9BS,oBAAoB,CAACR,KAAK,EAAES,WAAE,CAACC,IAAI,CAAC,WAAW,CAAC,CAACC,GAAG,EAAEP,OAAO,EAAE,IAAI,CAAC;EACpEI,oBAAoB,CAACR,KAAK,EAAES,WAAE,CAACC,IAAI,CAAC,KAAK,CAAC,CAACC,GAAG,EAAEP,OAAO,EAAE,IAAI,CAAC;EAC9DI,oBAAoB,CAACR,KAAK,EAAES,WAAE,CAACC,IAAI,CAAC,WAAW,CAAC,CAACC,GAAG,EAAEP,OAAO,EAAE,IAAI,CAAC;EACpEI,oBAAoB,CAACR,KAAK,EAAES,WAAE,CAACC,IAAI,CAAC,MAAM,CAAC,CAACC,GAAG,EAAEP,OAAO,EAAE,IAAI,CAAC;EAC/DI,oBAAoB,CAACR,KAAK,EAAES,WAAE,CAACG,MAAM,CAAC,OAAO,CAAC,CAACD,GAAG,EAAEP,OAAO,EAAE,IAAI,CAAC;EAClEI,oBAAoB,CAACR,KAAK,EAAES,WAAE,CAACC,IAAI,CAAC,MAAM,CAAC,CAACC,GAAG,EAAEL,MAAM,EAAE,IAAI,CAAC;EAC9D,OAAON,KAAK;AACd;;AAEA;AACO,SAASQ,oBAAoB,CAAER,KAAK,EAAEa,QAAQ,EAAEC,SAAS,EAAEC,SAAS,EAAE;EAC3E,IAAI,CAACf,KAAK,CAACC,UAAU,CAACY,QAAQ,CAAC,EAAE;IAC/Bb,KAAK,CAACC,UAAU,CAACY,QAAQ,CAAC,GAAG,EAAE;EACjC;EACAb,KAAK,CAACC,UAAU,CAACY,QAAQ,CAAC,CAACG,IAAI,CAACF,SAAS,CAAC;EAC1C,IAAIC,SAAS,EAAE;IACb;IACAf,KAAK,CAACE,QAAQ,CAACW,QAAQ,CAAC,GAAGC,SAAS;EACtC;AACF,CAAC,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _util = require("util");
|
|
3
4
|
var _rdflib = require("rdflib");
|
|
4
|
-
|
|
5
|
-
var _propertyViews = _interopRequireDefault(require("./propertyViews"));
|
|
6
|
-
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
|
-
|
|
5
|
+
var _propertyViews = require("./propertyViews");
|
|
9
6
|
/* eslint-env jest */
|
|
7
|
+
|
|
8
|
+
global.TextEncoder = _util.TextEncoder;
|
|
9
|
+
global.TextDecoder = _util.TextDecoder;
|
|
10
10
|
describe('property views', function () {
|
|
11
11
|
it.each(['http://xmlns.com/foaf/0.1/depiction', 'http://xmlns.com/foaf/0.1/img', 'http://xmlns.com/foaf/0.1/thumbnail', 'http://xmlns.com/foaf/0.1/logo', 'http://schema.org/image'])('renders %s as image', function (property) {
|
|
12
|
-
var views = (0, _propertyViews
|
|
12
|
+
var views = (0, _propertyViews.propertyViews)(document);
|
|
13
13
|
var view = views.defaults[property];
|
|
14
14
|
var result = view((0, _rdflib.sym)('https://pod.example/img.jpg'));
|
|
15
15
|
expect(result).toBeInstanceOf(HTMLImageElement);
|
|
16
16
|
expect(result).toHaveAttribute('src', 'https://pod.example/img.jpg');
|
|
17
17
|
});
|
|
18
18
|
it.each(['http://xmlns.com/foaf/0.1/mbox'])('renders %s as anchor', function (property) {
|
|
19
|
-
var views = (0, _propertyViews
|
|
19
|
+
var views = (0, _propertyViews.propertyViews)(document);
|
|
20
20
|
var view = views.defaults[property];
|
|
21
21
|
var result = view((0, _rdflib.sym)('mailto:alice@mail.example'));
|
|
22
22
|
expect(result).toBeInstanceOf(HTMLAnchorElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyViews.test.js","names":["describe","it","each","property","views","propertyViews","document","view","defaults","result","sym","expect","toBeInstanceOf","HTMLImageElement","toHaveAttribute","HTMLAnchorElement"],"sources":["../../src/outline/propertyViews.test.ts"],"sourcesContent":["/* eslint-env jest */\nimport { sym } from 'rdflib'\nimport propertyViews from './propertyViews'\n\ndescribe('property views', () => {\n it.each([\n 'http://xmlns.com/foaf/0.1/depiction',\n 'http://xmlns.com/foaf/0.1/img',\n 'http://xmlns.com/foaf/0.1/thumbnail',\n 'http://xmlns.com/foaf/0.1/logo',\n 'http://schema.org/image'\n ])('renders %s as image', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('https://pod.example/img.jpg'))\n expect(result).toBeInstanceOf(HTMLImageElement)\n expect(result).toHaveAttribute('src', 'https://pod.example/img.jpg')\n })\n\n it.each([\n 'http://xmlns.com/foaf/0.1/mbox'\n ])('renders %s as anchor', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('mailto:alice@mail.example'))\n expect(result).toBeInstanceOf(HTMLAnchorElement)\n expect(result).toHaveAttribute('href', 'mailto:alice@mail.example')\n })\n})\n"],"mappings":";;AACA;;
|
|
1
|
+
{"version":3,"file":"propertyViews.test.js","names":["global","TextEncoder","TextDecoder","describe","it","each","property","views","propertyViews","document","view","defaults","result","sym","expect","toBeInstanceOf","HTMLImageElement","toHaveAttribute","HTMLAnchorElement"],"sources":["../../src/outline/propertyViews.test.ts"],"sourcesContent":["/* eslint-env jest */\n\nimport { TextEncoder, TextDecoder } from 'util'\nglobal.TextEncoder = TextEncoder as any\nglobal.TextDecoder = TextDecoder as any\n\n\nimport { sym } from 'rdflib'\nimport { propertyViews } from './propertyViews'\n\ndescribe('property views', () => {\n it.each([\n 'http://xmlns.com/foaf/0.1/depiction',\n 'http://xmlns.com/foaf/0.1/img',\n 'http://xmlns.com/foaf/0.1/thumbnail',\n 'http://xmlns.com/foaf/0.1/logo',\n 'http://schema.org/image'\n ])('renders %s as image', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('https://pod.example/img.jpg'))\n expect(result).toBeInstanceOf(HTMLImageElement)\n expect(result).toHaveAttribute('src', 'https://pod.example/img.jpg')\n })\n\n it.each([\n 'http://xmlns.com/foaf/0.1/mbox'\n ])('renders %s as anchor', (property) => {\n const views = propertyViews(document)\n const view = views.defaults[property]\n const result = view(sym('mailto:alice@mail.example'))\n expect(result).toBeInstanceOf(HTMLAnchorElement)\n expect(result).toHaveAttribute('href', 'mailto:alice@mail.example')\n })\n})\n"],"mappings":";;AAEA;AAKA;AACA;AARA;;AAGAA,MAAM,CAACC,WAAW,GAAGA,iBAAkB;AACvCD,MAAM,CAACE,WAAW,GAAGA,iBAAkB;AAMvCC,QAAQ,CAAC,gBAAgB,EAAE,YAAM;EAC/BC,EAAE,CA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