solid-panes 3.5.28-alpha → 3.5.28

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.
Files changed (118) hide show
  1. package/README.md +0 -2
  2. package/lib/RDFXMLPane.js +6 -8
  3. package/lib/RDFXMLPane.js.map +1 -1
  4. package/lib/argument/argumentPane.js +10 -11
  5. package/lib/argument/argumentPane.js.map +1 -1
  6. package/lib/attach/attachPane.js +47 -85
  7. package/lib/attach/attachPane.js.map +1 -1
  8. package/lib/audio/audioPane.js +11 -36
  9. package/lib/audio/audioPane.js.map +1 -1
  10. package/lib/classInstancePane.js +11 -20
  11. package/lib/classInstancePane.js.map +1 -1
  12. package/lib/dashboard/basicPreferences.js +3 -53
  13. package/lib/dashboard/basicPreferences.js.map +1 -1
  14. package/lib/dashboard/dashboardPane.js +2 -18
  15. package/lib/dashboard/dashboardPane.js.map +1 -1
  16. package/lib/dashboard/homepage.js +1 -19
  17. package/lib/dashboard/homepage.js.map +1 -1
  18. package/lib/dataContentPane.js +15 -58
  19. package/lib/dataContentPane.js.map +1 -1
  20. package/lib/defaultPane.js +13 -21
  21. package/lib/defaultPane.js.map +1 -1
  22. package/lib/dokieli/dokieliPane.js +19 -28
  23. package/lib/dokieli/dokieliPane.js.map +1 -1
  24. package/lib/dokieli/new.js.map +1 -1
  25. package/lib/form/pane.js +26 -40
  26. package/lib/form/pane.js.map +1 -1
  27. package/lib/home/homePane.js +7 -23
  28. package/lib/home/homePane.js.map +1 -1
  29. package/lib/humanReadablePane.js +14 -28
  30. package/lib/humanReadablePane.js.map +1 -1
  31. package/lib/imagePane.js +9 -13
  32. package/lib/imagePane.js.map +1 -1
  33. package/lib/index.js +4 -18
  34. package/lib/index.js.map +1 -1
  35. package/lib/internal/internalPane.js +10 -41
  36. package/lib/internal/internalPane.js.map +1 -1
  37. package/lib/mainPage/footer.js +0 -4
  38. package/lib/mainPage/footer.js.map +1 -1
  39. package/lib/mainPage/header.js +2 -28
  40. package/lib/mainPage/header.js.map +1 -1
  41. package/lib/mainPage/index.js +1 -12
  42. package/lib/mainPage/index.js.map +1 -1
  43. package/lib/microblogPane/microblogPane.js +100 -237
  44. package/lib/microblogPane/microblogPane.js.map +1 -1
  45. package/lib/n3Pane.js +2 -7
  46. package/lib/n3Pane.js.map +1 -1
  47. package/lib/outline/context.js +0 -2
  48. package/lib/outline/context.js.map +1 -1
  49. package/lib/outline/licenseOptions.js +9 -25
  50. package/lib/outline/licenseOptions.js.map +1 -1
  51. package/lib/outline/manager.js +178 -580
  52. package/lib/outline/manager.js.map +1 -1
  53. package/lib/outline/manager.test.js +1 -11
  54. package/lib/outline/manager.test.js.map +1 -1
  55. package/lib/outline/outlineIcons.js +30 -25
  56. package/lib/outline/outlineIcons.js.map +1 -1
  57. package/lib/outline/propertyViews.js +0 -10
  58. package/lib/outline/propertyViews.js.map +1 -1
  59. package/lib/outline/propertyViews.test.js +1 -3
  60. package/lib/outline/propertyViews.test.js.map +1 -1
  61. package/lib/outline/queryByExample.js +24 -76
  62. package/lib/outline/queryByExample.js.map +1 -1
  63. package/lib/outline/userInput.js +214 -454
  64. package/lib/outline/userInput.js.map +1 -1
  65. package/lib/outline/viewAsImage.js +0 -6
  66. package/lib/outline/viewAsImage.js.map +1 -1
  67. package/lib/outline/viewAsMbox.js +3 -4
  68. package/lib/outline/viewAsMbox.js.map +1 -1
  69. package/lib/pad/padPane.js +45 -93
  70. package/lib/pad/padPane.js.map +1 -1
  71. package/lib/playlist/playlistPane.js +3 -20
  72. package/lib/playlist/playlistPane.js.map +1 -1
  73. package/lib/profile/editProfile.view.js +7 -24
  74. package/lib/profile/editProfile.view.js.map +1 -1
  75. package/lib/profile/profile.dom.js +0 -3
  76. package/lib/profile/profile.dom.js.map +1 -1
  77. package/lib/registerPanes.js +29 -27
  78. package/lib/registerPanes.js.map +1 -1
  79. package/lib/schedule/formsForSchedule.js.map +1 -1
  80. package/lib/schedule/schedulePane.js +62 -122
  81. package/lib/schedule/schedulePane.js.map +1 -1
  82. package/lib/sharing/sharingPane.js +2 -10
  83. package/lib/sharing/sharingPane.js.map +1 -1
  84. package/lib/slideshow/slideshowPane.js +9 -14
  85. package/lib/slideshow/slideshowPane.js.map +1 -1
  86. package/lib/socialPane.js +43 -124
  87. package/lib/socialPane.js.map +1 -1
  88. package/lib/tabbed/tabbedPane.js +1 -15
  89. package/lib/tabbed/tabbedPane.js.map +1 -1
  90. package/lib/tableViewPane.js +4 -7
  91. package/lib/tableViewPane.js.map +1 -1
  92. package/lib/test-import-export/common.js +2 -1
  93. package/lib/test-import-export/common.js.map +1 -1
  94. package/lib/test-import-export/edit-importer.js +7 -9
  95. package/lib/test-import-export/edit-importer.js.map +1 -1
  96. package/lib/transaction/pane.js +31 -90
  97. package/lib/transaction/pane.js.map +1 -1
  98. package/lib/transaction/period.js +20 -71
  99. package/lib/transaction/period.js.map +1 -1
  100. package/lib/trip/tripPane.js +30 -34
  101. package/lib/trip/tripPane.js.map +1 -1
  102. package/lib/trustedApplications/__snapshots__/trustedApplications.test.js.snap +176 -0
  103. package/lib/trustedApplications/trustedApplications.dom.js +8 -34
  104. package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
  105. package/lib/trustedApplications/trustedApplications.test.js +3 -8
  106. package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
  107. package/lib/trustedApplications/trustedApplications.utils.js +0 -10
  108. package/lib/trustedApplications/trustedApplications.utils.js.map +1 -1
  109. package/lib/trustedApplications/trustedApplications.view.js +1 -22
  110. package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
  111. package/lib/ui/pane.js +22 -28
  112. package/lib/ui/pane.js.map +1 -1
  113. package/lib/versionInfo.js +4 -4
  114. package/lib/versionInfo.js.map +1 -1
  115. package/lib/video/videoPane.js +2 -5
  116. package/lib/video/videoPane.js.map +1 -1
  117. package/package.json +24 -24
  118. package/src/versionInfo.ts +4 -4
@@ -1,21 +1,13 @@
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
-
5
4
  var _manager = _interopRequireDefault(require("./manager"));
6
-
7
5
  var _rdflib = require("rdflib");
8
-
9
6
  var _dom = require("@testing-library/dom");
10
-
11
7
  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
-
8
+ 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 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, 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
9
  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
10
  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
-
19
11
  var MockPane = {
20
12
  render: function render(subject) {
21
13
  var div = document.createElement('div');
@@ -95,11 +87,9 @@ describe('manager', function () {
95
87
  expand.click();
96
88
  _context.next = 4;
97
89
  return (0, _dom.findByText)(result.parentNode, /Mock Pane/);
98
-
99
90
  case 4:
100
91
  error = _context.sent;
101
92
  expect(error).toHaveTextContent('Mock Pane for https://namednode.example/');
102
-
103
93
  case 6:
104
94
  case "end":
105
95
  return _context.stop();
@@ -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;;AACA;;;;+CAHA,oJ;;;;;;AAKA,IAAMA,QAAQ,GAAG;EACfC,MAAM,EAAE,gBAACC,OAAD,EAAwB;IAC9B,IAAMC,GAAG,GAAGC,QAAQ,CAACC,aAAT,CAAuB,KAAvB,CAAZ;IACAF,GAAG,CAACG,WAAJ,CAAgBF,QAAQ,CAACG,cAAT,yBAAyCL,OAAO,CAACM,GAAjD,EAAhB;IACA,OAAOL,GAAP;EACD;AALc,CAAjB;AAQA,IAAMM,gBAAgB,GAAG;EACvBC,IAAI,EAAE,EADiB;EAEvBC,MAAM,EAAE;IAAA,OAAMX,QAAN;EAAA;AAFe,CAAzB;AAKAY,QAAQ,CAAC,SAAD,EAAY,YAAM;EACxBA,QAAQ,CAAC,mBAAD,EAAsB,YAAM;IAClCA,QAAQ,CAAC,kBAAD,EAAqB,YAAM;MACjC,IAAIC,MAAJ;MACAC,SAAS,CAAC,YAAM;QACd,IAAMC,KAAK,GAAGX,QAAQ,CAACC,aAAT,CAAuB,OAAvB,CAAd;QACA,IAAMW,GAAG,GAAGZ,QAAQ,CAACC,aAAT,CAAuB,IAAvB,CAAZ;QACAU,KAAK,CAACT,WAAN,CAAkBU,GAAlB;QACA,IAAMC,OAAO,GAAG,IAAIC,mBAAJ,CAAmB;UAAEC,GAAG,EAAEf,QAAP;UAAiBgB,OAAO,EAAE;YAAEC,YAAY,EAAEZ;UAAhB;QAA1B,CAAnB,CAAhB;QACAI,MAAM,GAAGI,OAAO,CAACK,eAAR,CAAwB,IAAAC,WAAA,EAAI,4BAAJ,CAAxB,EAA2D,IAA3D,EAAiE,IAAjE,EAAuE,IAAvE,CAAT;QACAP,GAAG,CAACV,WAAJ,CAAgBO,MAAhB;MACD,CAPQ,CAAT;MAQ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,YAAM;QACxBC,MAAM,CAACZ,MAAD,CAAN,CAAee,eAAf,CAA+B,eAA/B,EAAgD,OAAhD;MACD,CAFC,CAAF;MAGAJ,EAAE,CAAC,WAAD,EAAc,YAAM;QACpBC,MAAM,CAACZ,MAAD,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":["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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AC;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,17 @@
1
1
  "use strict";
2
2
 
3
3
  // This is a system of tracking tooltip phrases used by the tabulator outliner
4
- var outlineIcons = module.exports = {}; // was tabulator.Icon
5
4
 
5
+ var outlineIcons = module.exports = {}; // was tabulator.Icon
6
6
  var UI = require('solid-ui');
7
-
8
7
  outlineIcons.src = []; // collect the URIs of the icon filterColumns
9
-
10
8
  outlineIcons.tooltips = []; // look up tool tips from URL
9
+
11
10
  /// /////////////////////// Common icons
12
11
 
13
12
  outlineIcons.src.icon_expand = UI.icons.originalIconBase + 'tbl-expand-trans.png';
14
13
  outlineIcons.src.icon_more = UI.icons.originalIconBase + 'tbl-more-trans.png'; // looks just like expand, diff semantics
15
14
  // Icon.src.icon_expand = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_expand.png';
16
-
17
15
  outlineIcons.src.icon_collapse = UI.icons.originalIconBase + 'tbl-collapse.png';
18
16
  outlineIcons.src.icon_internals = UI.icons.originalIconBase + 'tango/22-emblem-system.png';
19
17
  outlineIcons.src.icon_instances = UI.icons.originalIconBase + 'tango/22-folder-open.png';
@@ -21,31 +19,31 @@ outlineIcons.src.icon_foaf = UI.icons.originalIconBase + 'foaf/foafTiny.gif';
21
19
  outlineIcons.src.icon_social = UI.icons.originalIconBase + 'social/social.gif';
22
20
  outlineIcons.src.icon_mb = UI.icons.originalIconBase + 'microblog/microblog.png';
23
21
  outlineIcons.src.icon_shrink = UI.icons.originalIconBase + 'tbl-shrink.png'; // shrink list back up
22
+ outlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png';
23
+ // Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';
24
24
 
25
- outlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png'; // Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';
26
25
  // Status balls:
27
26
 
28
- outlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif'; // outlineIcons.src.Icon.src.icon_parse = UI.icons.originalIconBase + '18x18-white.gif';
29
-
27
+ outlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif';
28
+ // outlineIcons.src.Icon.src.icon_parse = UI.icons.originalIconBase + '18x18-white.gif';
30
29
  outlineIcons.src.icon_fetched = UI.icons.originalIconBase + '16dot-green.gif';
31
30
  outlineIcons.src.icon_failed = UI.icons.originalIconBase + '16dot-red.gif';
32
- outlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif'; // Icon.src.icon_maximize = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_con_max.png';
33
- // Panes:
31
+ outlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif';
32
+ // Icon.src.icon_maximize = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_con_max.png';
34
33
 
34
+ // Panes:
35
35
  outlineIcons.src.icon_CVPane = UI.icons.originalIconBase + 'CV.png';
36
36
  outlineIcons.src.icon_defaultPane = UI.icons.originalIconBase + 'about.png';
37
37
  outlineIcons.src.icon_visit = UI.icons.originalIconBase + 'tango/22-text-x-generic.png';
38
38
  outlineIcons.src.icon_dataContents = UI.icons.originalIconBase + 'rdf_flyer.24.gif'; // @@ Bad .. find better
39
-
40
39
  outlineIcons.src.icon_n3Pane = UI.icons.originalIconBase + 'w3c/n3_smaller.png'; // @@ Bad .. find better
41
-
42
40
  outlineIcons.src.icon_RDFXMLPane = UI.icons.originalIconBase + '22-text-xml4.png'; // @@ Bad .. find better
43
-
44
41
  outlineIcons.src.icon_imageContents = UI.icons.originalIconBase + 'tango/22-image-x-generic.png';
45
42
  outlineIcons.src.icon_airPane = UI.icons.originalIconBase + '1pt5a.gif';
46
43
  outlineIcons.src.icon_LawPane = UI.icons.originalIconBase + 'law.jpg';
47
- outlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png'; // For photo albums (By albert08@csail.mit.edu)
44
+ outlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png';
48
45
 
46
+ // For photo albums (By albert08@csail.mit.edu)
49
47
  outlineIcons.src.icon_photoPane = UI.icons.originalIconBase + 'photo_small.png';
50
48
  outlineIcons.src.icon_tagPane = UI.icons.originalIconBase + 'tag_small.png';
51
49
  outlineIcons.src.icon_TinyTag = UI.icons.originalIconBase + 'tag_tiny.png';
@@ -53,11 +51,13 @@ outlineIcons.src.icon_photoBegin = UI.icons.originalIconBase + 'photo_begin.png'
53
51
  outlineIcons.src.icon_photoNext = UI.icons.originalIconBase + 'photo_next.png';
54
52
  outlineIcons.src.icon_photoBack = UI.icons.originalIconBase + 'photo_back.png';
55
53
  outlineIcons.src.icon_photoEnd = UI.icons.originalIconBase + 'photo_end.png';
56
- outlineIcons.src.icon_photoImportPane = UI.icons.originalIconBase + 'flickr_small.png'; // Icon.src.icon_CloseButton = UI.icons.originalIconBase + 'close_tiny.png';
54
+ outlineIcons.src.icon_photoImportPane = UI.icons.originalIconBase + 'flickr_small.png';
55
+ // Icon.src.icon_CloseButton = UI.icons.originalIconBase + 'close_tiny.png';
57
56
  // Icon.src.icon_AddButton = UI.icons.originalIconBase + 'addphoto_tiny.png';
57
+
58
58
  // For that one we need a document with grid lines. Make data-x-generix maybe
59
- // actions for sources;
60
59
 
60
+ // actions for sources;
61
61
  outlineIcons.src.icon_retract = UI.icons.originalIconBase + 'retract.gif';
62
62
  outlineIcons.src.icon_refresh = UI.icons.originalIconBase + 'refresh.gif';
63
63
  outlineIcons.src.icon_optoff = UI.icons.originalIconBase + 'optional_off.PNG';
@@ -65,7 +65,9 @@ outlineIcons.src.icon_opton = UI.icons.originalIconBase + 'optional_on.PNG';
65
65
  outlineIcons.src.icon_map = UI.icons.originalIconBase + 'compassrose.png';
66
66
  outlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested;
67
67
  outlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested;
68
- outlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png'; // Within outline mode:
68
+ outlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png';
69
+
70
+ // Within outline mode:
69
71
 
70
72
  outlineIcons.src.icon_telephone = UI.icons.originalIconBase + 'silk/telephone.png';
71
73
  outlineIcons.src.icon_time = UI.icons.originalIconBase + 'Wclocksmall.png';
@@ -73,11 +75,12 @@ outlineIcons.src.icon_remove_node = UI.icons.originalIconBase + 'tbl-x-small.png
73
75
  outlineIcons.src.icon_add_triple = UI.icons.originalIconBase + 'tango/22-list-add.png';
74
76
  outlineIcons.src.icon_add_new_triple = UI.icons.originalIconBase + 'tango/22-list-add-new.png';
75
77
  outlineIcons.src.icon_show_choices = UI.icons.originalIconBase + 'userinput_show_choices_temp.png'; // looks just like collapse, diff smmantics
76
- // Inline Justification
77
78
 
79
+ // Inline Justification
78
80
  outlineIcons.src.icon_display_reasons = UI.icons.originalIconBase + 'tango/22-help-browser.png';
79
- outlineIcons.tooltips[outlineIcons.src.icon_display_reasons] = 'Display explanations'; // Other tooltips
81
+ outlineIcons.tooltips[outlineIcons.src.icon_display_reasons] = 'Display explanations';
80
82
 
83
+ // Other tooltips
81
84
  outlineIcons.tooltips[outlineIcons.src.icon_add_triple] = 'Add more';
82
85
  outlineIcons.tooltips[outlineIcons.src.icon_add_new_triple] = 'Add one';
83
86
  outlineIcons.tooltips[outlineIcons.src.icon_remove_node] = 'Remove';
@@ -87,31 +90,33 @@ outlineIcons.tooltips[outlineIcons.src.icon_shrink] = 'Shrink list.';
87
90
  outlineIcons.tooltips[outlineIcons.src.icon_internals] = 'Under the hood';
88
91
  outlineIcons.tooltips[outlineIcons.src.icon_instances] = 'List';
89
92
  outlineIcons.tooltips[outlineIcons.src.icon_foaf] = 'Friends';
90
- outlineIcons.tooltips[outlineIcons.src.icon_rows] = 'Make a table of data like this'; // Note the string '[Tt]his resource' can be replaced with an actual URI by the code
91
-
93
+ outlineIcons.tooltips[outlineIcons.src.icon_rows] = 'Make a table of data like this';
94
+ // Note the string '[Tt]his resource' can be replaced with an actual URI by the code
92
95
  outlineIcons.tooltips[outlineIcons.src.icon_unrequested] = 'Fetch this.';
93
96
  outlineIcons.tooltips[outlineIcons.src.icon_fetched] = 'Fetched successfully.';
94
97
  outlineIcons.tooltips[outlineIcons.src.icon_failed] = 'Failed to load. Click to retry.';
95
98
  outlineIcons.tooltips[outlineIcons.src.icon_requested] = 'This is being fetched. Please wait...';
96
99
  outlineIcons.tooltips[outlineIcons.src.icon_visit] = 'View document';
97
100
  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.'; /// ////////////////////////////// End comon area
101
+ outlineIcons.tooltips[outlineIcons.src.icon_refresh] = 'Refresh this source and reload its triples.';
102
+
103
+ /// ////////////////////////////// End comon area
99
104
 
100
105
  outlineIcons.OutlinerIcon = function (src, width, alt, tooltip, filter) {
101
106
  this.src = src;
102
107
  this.alt = alt;
103
108
  this.width = width;
104
109
  this.tooltip = tooltip;
105
- this.filter = filter; // filter: RDFStatement,('subj'|'pred'|'obj')->boolean, inverse->boolean (whether the statement is an inverse).
110
+ this.filter = filter;
111
+ // filter: RDFStatement,('subj'|'pred'|'obj')->boolean, inverse->boolean (whether the statement is an inverse).
106
112
  // Filter on whether to show this icon for a term; optional property.
107
113
  // If filter is not passed, this icon will never AUTOMATICALLY be shown.
108
114
  // You can show it with termWidget.addIcon
109
-
110
115
  return this;
111
116
  };
112
-
113
117
  outlineIcons.termWidgets = {};
114
118
  outlineIcons.termWidgets.optOn = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_opton, 20, 'opt on', 'Make this branch of your query mandatory.');
115
119
  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'); // Ideally: "New "+label(subject)
120
+ outlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_add_triple, 18, 'add tri', 'Add one');
121
+ // Ideally: "New "+label(subject)
117
122
  //# 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: \"New \"+label(subject)\n"],"mappings":";;AAAA;AAEA,IAAMA,YAAY,GAAIC,MAAM,CAACC,OAAP,GAAiB,EAAvC,C,CAA2C;;AAC3C,IAAMC,EAAE,GAAGC,OAAO,CAAC,UAAD,CAAlB;;AAEAJ,YAAY,CAACK,GAAb,GAAmB,EAAnB,C,CAAsB;;AACtBL,YAAY,CAACM,QAAb,GAAwB,EAAxB,C,CAA2B;AAE3B;;AAEAN,YAAY,CAACK,GAAb,CAAiBE,WAAjB,GACEJ,EAAE,CAACK,KAAH,CAASC,gBAAT,GAA4B,sBAD9B;AAEAT,YAAY,CAACK,GAAb,CAAiBK,SAAj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,GAAL,GAAWA,GAAX;EACA,KAAKmD,GAAL,GAAWA,GAAX;EACA,KAAKD,KAAL,GAAaA,KAAb;EACA,KAAKE,OAAL,GAAeA,OAAf;EACA,KAAKC,MAAL,GAAcA,MAAd,CALsE,CAMtE;EACA;EACA;EACA;;EACA,OAAO,IAAP;AACD,CAXD;;AAaA1D,YAAY,CAAC2D,WAAb,GAA2B,EAA3B;AACA3D,YAAY,CAAC2D,WAAb,CAAyBC,KAAzB,GAAiC,IAAI5D,YAAY,CAACsD,YAAjB,CAC/BtD,YAAY,CAACK,GAAb,CAAiBuC,UADc,EAE/B,EAF+B,EAG/B,QAH+B,EAI/B,2CAJ+B,CAAjC;AAMA5C,YAAY,CAAC2D,WAAb,CAAyBE,MAAzB,GAAkC,IAAI7D,YAAY,CAACsD,YAAjB,CAChCtD,YAAY,CAACK,GAAb,CAAiBsC,WADe,EAEhC,EAFgC,EAGhC,SAHgC,EAIhC,0CAJgC,CAAlC;AAMA3C,YAAY,CAAC2D,WAAb,CAAyBG,MAAzB,GAAkC,IAAI9D,YAAY,CAACsD,YAAjB,CAChCtD,YAAY,CAACK,GAAb,CAAiB6C,eADe,EAEhC,EAFgC,EAGhC,SAHgC,EAIhC,SAJgC,CAAlC,C,CAMA"}
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: \"New \"+label(subject)\n"],"mappings":";;AAAA;;AAEA,IAAMA,YAAY,GAAIC,MAAM,CAACC,OAAO,GAAG,CAAC,CAAE,EAAC;AAC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AG,CAACqC,YAAY,CAAC,GAClD,6CAA6C;;AAE/C;;AAEA1C,YAAY,CAACsD,YAAY,GAAG,UAAUjD,GAAG,EAAEkD,KAAK,EAAEC,GAAG,EAAEC,OAAO,EAAEC,MAAM,EAAE;EACtE,IAAI,CAACrD,GAAG,GAAGA,GAAG;EACd,IAAI,CAACmD,GAAG,GAAGA,GAAG;EACd,IAAI,CAACD,KAAK,GAAGA,KAAK;EAClB,IAAI,CAACE,OAAO,GAAGA,OAAO;EACtB,IAAI,CAACC,MAAM,GAAGA,MAAM;EACpB;EACA;EACA;EACA;EACA,OAAO,IAAI;AACb,CAAC;AAED1D,YAAY,CAAC2D,WAAW,GAAG,CAAC,CAAC;AAC7B3D,YAAY,CAAC2D,WAAW,CAACC,KAAK,GAAG,IAAI5D,YAAY,CAACsD,YAAY,CAC5DtD,YAAY,CAACK,GAAG,CAACuC,UAAU,EAC3B,EAAE,EACF,QAAQ,EACR,2CAA2C,CAC5C;AACD5C,YAAY,CAAC2D,WAAW,CAACE,MAAM,GAAG,IAAI7D,YAAY,CAACsD,YAAY,CAC7DtD,YAAY,CAACK,GAAG,CAACsC,WAAW,EAC5B,EAAE,EACF,SAAS,EACT,0CAA0C,CAC3C;AACD3C,YAAY,CAAC2D,WAAW,CAACG,MAAM,GAAG,IAAI9D,YAAY,CAACsD,YAAY,CAC7DtD,YAAY,CAACK,GAAG,CAAC6C,eAAe,EAChC,EAAE,EACF,SAAS,EACT,SAAS,CACV;AACD"}
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _solidUi = require("solid-ui");
9
-
10
8
  var _viewAsImage = _interopRequireDefault(require("./viewAsImage"));
11
-
12
9
  var _viewAsMbox = _interopRequireDefault(require("./viewAsMbox"));
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
11
  /** some builtin simple views **/
17
12
  var _default = function _default(dom) {
18
13
  // view that applies to items that are objects of certain properties.
@@ -33,17 +28,12 @@ var _default = function _default(dom) {
33
28
  return views;
34
29
  };
35
30
  /** add a property view function **/
36
-
37
-
38
31
  exports["default"] = _default;
39
-
40
32
  function viewsAddPropertyView(views, property, pviewfunc, isDefault) {
41
33
  if (!views.properties[property]) {
42
34
  views.properties[property] = [];
43
35
  }
44
-
45
36
  views.properties[property].push(pviewfunc);
46
-
47
37
  if (isDefault) {
48
38
  // will override an existing default!
49
39
  views.defaults[property] = pviewfunc;
@@ -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 default (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 **/\nfunction 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} // addPropertyView\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA;eAEe,kBAACA,GAAD,EAAS;EACtB;EACA,IAAMC,KA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3B,CAAgCF,SAAhC;;EACA,IAAIC,SAAJ,EAAe;IACb;IACAf,KAAK,CAACE,QAAN,CAAeW,QAAf,IAA2BC,SAA3B;EACD;AACF,C,CAAC"}
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 default (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 **/\nfunction 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} // addPropertyView\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAAqC;AAErC;AAAA,eAEe,kBAACA,GAAG,EAAK;EACtB;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,CAAC;AAED;AAAA;AACA,SAASQ,oBAAoB,CAAER,KAAK,EAAEa,QAAQ,EAAEC,SAAS,EAAEC,SAAS,EAAE;EACpE,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,12 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  var _rdflib = require("rdflib");
4
-
5
4
  var _propertyViews = _interopRequireDefault(require("./propertyViews"));
6
-
7
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
-
9
6
  /* eslint-env jest */
7
+
10
8
  describe('property views', function () {
11
9
  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
10
  var views = (0, _propertyViews["default"])(document);
@@ -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;;AACA;;;;AAFA;AAIAA,QAAQ,CAAC,gBAAD,EAAmB,YAAM;EAC/BC,EAAE,CAACC,IAAH,CAAQ,CACN,qCADM,EAEN,+BAFM,EAGN,qCAHM,EAIN,gCAJM,EAKN,yBALM,CAAR,EAMG,qBANH,EAM0B,UAACC,QAAD,EAAc;IACtC,IAAMC,KAAK,GAAG,IAAAC,yBAAA,EAAcC,QAAd,CAAd;IACA,IAAMC,IAAI,GAAGH,KAAK,CAACI,QAAN,CAAeL,QAAf,CAAb;IACA,IAAMM,MAAM,GAAGF,IAAI,CAAC,IAAAG,WAAA,EAAI,6BAAJ,CAAD,CAAnB;IACAC,MAAM,CAACF,MAAD,CAAN,CAAeG,cAAf,CAA8BC,gBAA9B;IACAF,MAAM,CAACF,MAAD,CAAN,CAAeK,eAAf,CAA+B,KAA/B,EAAsC,6BAAtC;EACD,CAZD;EAcAb,EAAE,CAACC,IAAH,CAAQ,CACN,gCADM,CAAR,EAEG,sBAFH,EAE2B,UAACC,QAAD,EAAc;IACvC,IAAMC,KAAK,GAAG,IAAAC,yBAAA,EAAcC,QAAd,CAAd;IACA,IAAMC,IAAI,GAAGH,KAAK,CAACI,QAAN,CAAeL,QAAf,CAAb;IACA,IAAMM,MAAM,GAAGF,IAAI,CAAC,IAAAG,WAAA,EAAI,2BAAJ,CAAD,CAAnB;IACAC,MAAM,CAACF,MAAD,CAAN,CAAeG,cAAf,CAA8BG,iBAA9B;IACAJ,MAAM,CAACF,MAAD,CAAN,CAAeK,eAAf,CAA+B,MAA/B,EAAuC,2BAAvC;EACD,CARD;AASD,CAxBO,CAAR"}
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;AACA;AAA2C;AAF3C;;AAIAA,QAAQ,CAAC,gBAAgB,EAAE,YAAM;EAC/BC,EAAE,CAACC,IAAI,CAAC,CACN,qCAAqC,EACrC,+BAA+B,EAC/B,qCAAqC,EACrC,gCAAgC,EAChC,yBAAyB,CAC1B,CAAC,CAAC,qBAAqB,EAAE,UAACC,QAAQ,EAAK;IACtC,IAAMC,KAAK,GAAG,IAAAC,yBAAa,EAACC,QAAQ,CAAC;IACrC,IAAMC,IAAI,GAAGH,KAAK,CAACI,QAAQ,CAACL,QAAQ,CAAC;IACrC,IAAMM,MAAM,GAAGF,IAAI,CAAC,IAAAG,WAAG,EAAC,6BAA6B,CAAC,CAAC;IACvDC,MAAM,CAACF,MAAM,CAAC,CAACG,cAAc,CAACC,gBAAgB,CAAC;IAC/CF,MAAM,CAACF,MAAM,CAAC,CAACK,eAAe,CAAC,KAAK,EAAE,6BAA6B,CAAC;EACtE,CAAC,CAAC;EAEFb,EAAE,CAACC,IAAI,CAAC,CACN,gCAAgC,CACjC,CAAC,CAAC,sBAAsB,EAAE,UAACC,QAAQ,EAAK;IACvC,IAAMC,KAAK,GAAG,IAAAC,yBAAa,EAACC,QAAQ,CAAC;IACrC,IAAMC,IAAI,GAAGH,KAAK,CAACI,QAAQ,CAACL,QAAQ,CAAC;IACrC,IAAMM,MAAM,GAAGF,IAAI,CAAC,IAAAG,WAAG,EAAC,2BAA2B,CAAC,CAAC;IACrDC,MAAM,CAACF,MAAM,CAAC,CAACG,cAAc,CAACG,iBAAiB,CAAC;IAChDJ,MAAM,CAACF,MAAM,CAAC,CAACK,eAAe,CAAC,MAAM,EAAE,2BAA2B,CAAC;EACrE,CAAC,CAAC;AACJ,CAAC,CAAC"}