solid-panes 3.5.29-alpha → 3.5.29

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 (141) hide show
  1. package/lib/RDFXMLPane.js +10 -2
  2. package/lib/RDFXMLPane.js.map +1 -1
  3. package/lib/argument/argumentPane.js +7 -5
  4. package/lib/argument/argumentPane.js.map +1 -1
  5. package/lib/attach/attachPane.js +13 -7
  6. package/lib/attach/attachPane.js.map +1 -1
  7. package/lib/audio/audioPane.js +13 -6
  8. package/lib/audio/audioPane.js.map +1 -1
  9. package/lib/classInstancePane.js +11 -3
  10. package/lib/classInstancePane.js.map +1 -1
  11. package/lib/dashboard/basicPreferences.js +96 -104
  12. package/lib/dashboard/basicPreferences.js.map +1 -1
  13. package/lib/dashboard/homepage.js +27 -31
  14. package/lib/dashboard/homepage.js.map +1 -1
  15. package/lib/dataContentPane.js +12 -4
  16. package/lib/dataContentPane.js.map +1 -1
  17. package/lib/defaultPane.js +11 -3
  18. package/lib/defaultPane.js.map +1 -1
  19. package/lib/dokieli/dokieliPane.js +15 -11
  20. package/lib/dokieli/dokieliPane.js.map +1 -1
  21. package/lib/dokieli/new.js +6 -1
  22. package/lib/dokieli/new.js.map +1 -1
  23. package/lib/form/pane.js +8 -5
  24. package/lib/form/pane.js.map +1 -1
  25. package/lib/home/homePane.d.ts.map +1 -1
  26. package/lib/home/homePane.js +35 -49
  27. package/lib/home/homePane.js.map +1 -1
  28. package/lib/imagePane.js +11 -2
  29. package/lib/imagePane.js.map +1 -1
  30. package/lib/index.js +2 -2
  31. package/lib/index.js.map +1 -1
  32. package/lib/mainPage/header.js +65 -73
  33. package/lib/mainPage/header.js.map +1 -1
  34. package/lib/mainPage/index.js +17 -19
  35. package/lib/mainPage/index.js.map +1 -1
  36. package/lib/microblogPane/microblogPane.js +82 -84
  37. package/lib/microblogPane/microblogPane.js.map +1 -1
  38. package/lib/n3Pane.js +11 -2
  39. package/lib/n3Pane.js.map +1 -1
  40. package/lib/outline/licenseOptions.js +13 -11
  41. package/lib/outline/licenseOptions.js.map +1 -1
  42. package/lib/outline/manager.js +581 -615
  43. package/lib/outline/manager.js.map +1 -1
  44. package/lib/outline/manager.test.js +16 -15
  45. package/lib/outline/manager.test.js.map +1 -1
  46. package/lib/outline/outlineIcons.js +10 -2
  47. package/lib/outline/outlineIcons.js.map +1 -1
  48. package/lib/outline/propertyViews.d.ts +3 -2
  49. package/lib/outline/propertyViews.d.ts.map +1 -1
  50. package/lib/outline/propertyViews.js +7 -5
  51. package/lib/outline/propertyViews.js.map +1 -1
  52. package/lib/outline/propertyViews.test.js +6 -4
  53. package/lib/outline/propertyViews.test.js.map +1 -1
  54. package/lib/outline/queryByExample.js +6 -6
  55. package/lib/outline/queryByExample.js.map +1 -1
  56. package/lib/outline/userInput.js +7 -5
  57. package/lib/outline/userInput.js.map +1 -1
  58. package/lib/playlist/playlistPane.js +13 -6
  59. package/lib/playlist/playlistPane.js.map +1 -1
  60. package/lib/profile/editProfile.view.d.ts.map +1 -1
  61. package/lib/profile/editProfile.view.js +16 -0
  62. package/lib/profile/editProfile.view.js.map +1 -1
  63. package/lib/registerPanes.js +93 -50
  64. package/lib/registerPanes.js.map +1 -1
  65. package/lib/schedule/formsForSchedule.js +6 -1
  66. package/lib/schedule/formsForSchedule.js.map +1 -1
  67. package/lib/schedule/schedulePane.js +9 -4
  68. package/lib/schedule/schedulePane.js.map +1 -1
  69. package/lib/slideshow/slideshowPane.js +16 -11
  70. package/lib/slideshow/slideshowPane.js.map +1 -1
  71. package/lib/socialPane.js +16 -12
  72. package/lib/socialPane.js.map +1 -1
  73. package/lib/tabbed/tabbedPane.js +32 -34
  74. package/lib/tabbed/tabbedPane.js.map +1 -1
  75. package/lib/tableViewPane.js +12 -3
  76. package/lib/tableViewPane.js.map +1 -1
  77. package/lib/test-import-export/common.js +6 -2
  78. package/lib/test-import-export/common.js.map +1 -1
  79. package/lib/test-import-export/edit-importer.js +9 -11
  80. package/lib/test-import-export/edit-importer.js.map +1 -1
  81. package/lib/transaction/pane.js +12 -6
  82. package/lib/transaction/pane.js.map +1 -1
  83. package/lib/transaction/period.js +11 -4
  84. package/lib/transaction/period.js.map +1 -1
  85. package/lib/trip/tripPane.js +12 -5
  86. package/lib/trip/tripPane.js.map +1 -1
  87. package/lib/trustedApplications/trustedApplications.dom.js +4 -1
  88. package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
  89. package/lib/trustedApplications/trustedApplications.test.js +3 -0
  90. package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
  91. package/lib/trustedApplications/trustedApplications.utils.js +1 -1
  92. package/lib/trustedApplications/trustedApplications.view.js +38 -40
  93. package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
  94. package/lib/ui/pane.js +12 -5
  95. package/lib/ui/pane.js.map +1 -1
  96. package/lib/versionInfo.js +3 -3
  97. package/lib/versionInfo.js.map +1 -1
  98. package/lib/video/videoPane.js +12 -5
  99. package/lib/video/videoPane.js.map +1 -1
  100. package/package.json +20 -22
  101. package/src/RDFXMLPane.js +2 -2
  102. package/src/argument/argumentPane.js +1 -1
  103. package/src/attach/attachPane.js +3 -3
  104. package/src/audio/audioPane.js +3 -3
  105. package/src/classInstancePane.js +3 -3
  106. package/src/dataContentPane.js +3 -4
  107. package/src/defaultPane.js +3 -3
  108. package/src/dokieli/dokieliPane.js +5 -5
  109. package/src/dokieli/new.js +1 -1
  110. package/src/form/pane.js +2 -2
  111. package/src/home/homePane.ts +1 -14
  112. package/src/imagePane.js +2 -2
  113. package/src/index.ts +1 -1
  114. package/src/microblogPane/microblogPane.js +1 -1
  115. package/src/n3Pane.js +2 -2
  116. package/src/outline/licenseOptions.js +9 -8
  117. package/src/outline/manager.js +18 -20
  118. package/src/outline/manager.test.ts +6 -0
  119. package/src/outline/outlineIcons.js +4 -2
  120. package/src/outline/propertyViews.test.ts +7 -1
  121. package/src/outline/propertyViews.ts +3 -3
  122. package/src/outline/queryByExample.js +3 -9
  123. package/src/outline/userInput.js +1 -1
  124. package/src/playlist/playlistPane.js +3 -3
  125. package/src/profile/editProfile.view.ts +20 -0
  126. package/src/registerPanes.js +92 -52
  127. package/src/schedule/formsForSchedule.js +1 -1
  128. package/src/schedule/schedulePane.js +6 -2
  129. package/src/slideshow/slideshowPane.js +3 -6
  130. package/src/socialPane.js +4 -5
  131. package/src/tableViewPane.js +3 -3
  132. package/src/test-import-export/common.js +1 -1
  133. package/src/test-import-export/edit-importer.js +5 -10
  134. package/src/transaction/pane.js +3 -3
  135. package/src/transaction/period.js +2 -2
  136. package/src/trip/tripPane.js +3 -3
  137. package/src/trustedApplications/trustedApplications.test.ts +4 -0
  138. package/src/ui/pane.js +3 -3
  139. package/src/versionInfo.ts +3 -3
  140. package/src/video/videoPane.js +3 -3
  141. package/webpack.config.js +3 -1
@@ -1,14 +1,22 @@
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["default"] = void 0;
8
+ var UI = _interopRequireWildcard(require("solid-ui"));
9
+ var $rdf = _interopRequireWildcard(require("rdflib"));
10
+ 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); }
11
+ 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
12
  /* Playlist Pane
4
13
  **
5
14
  ** This pane allows playlists and playlists slots to be viewed
6
15
  ** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html
7
16
  */
8
- var UI = require('solid-ui');
9
- var $rdf = require('rdflib');
17
+
10
18
  var ns = UI.ns;
11
- module.exports = {
19
+ var _default = {
12
20
  icon: UI.icons.iconBase + 'noun_1619.svg',
13
21
  name: 'playlistSlot',
14
22
  audience: [ns.solid('PowerUser')],
@@ -114,7 +122,6 @@ module.exports = {
114
122
  div.appendChild(tr);
115
123
  return div;
116
124
  }
117
- };
118
-
119
- // ends
125
+ }; // ends
126
+ exports["default"] = _default;
120
127
  //# sourceMappingURL=playlistPane.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"playlistPane.js","names":["UI","require","$rdf","ns","module","exports","icon","icons","iconBase","name","audience","solid","label","subject","context","kb","session","store","anyStatementMatching","rdf","sym","render","myDocument","dom","isVideo","src","_index","html5","youtube","match","vimeo","dailymotion","vk","link","contents","uri","a","createElement","setAttribute","appendChild","addEventListener","widgets","openHrefInOutlineMode","text","str","createTextNode","obj","any","index","video","div","img","replace","value","descDiv","sl","statementsMatching","slots","i","length","push","parseInt","object","pIndex","indexOf","nIndex","prev","split","indexDiv","innerHTML","next","tr"],"sources":["../../src/playlist/playlistPane.js"],"sourcesContent":["/* Playlist Pane\n **\n ** This pane allows playlists and playlists slots to be viewed\n ** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html\n */\nconst UI = require('solid-ui')\nconst $rdf = require('rdflib')\nconst ns = UI.ns\n\nmodule.exports = {\n icon: UI.icons.iconBase + 'noun_1619.svg',\n\n name: 'playlistSlot',\n\n audience: [ns.solid('PowerUser')],\n\n label: function (subject, context) {\n const kb = context.session.store\n\n if (\n !kb.anyStatementMatching(\n subject,\n UI.ns.rdf('type'),\n kb.sym('http://purl.org/ontology/pbo/core#PlaylistSlot')\n )\n ) {\n return null\n }\n\n return 'playlist slot'\n },\n\n render: function (subject, context) {\n const myDocument = context.dom\n function isVideo (src, _index) {\n if (!src) {\n return {\n html5: true\n }\n }\n\n const youtube = src.match(\n /\\/\\/(?:www\\.)?youtu(?:\\.be|be\\.com)\\/(?:watch\\?v=|embed\\/)?([a-z0-9\\-_%]+)/i\n )\n const vimeo = src.match(/\\/\\/(?:www\\.)?vimeo.com\\/([0-9a-z\\-_]+)/i)\n const dailymotion = src.match(/\\/\\/(?:www\\.)?dai.ly\\/([0-9a-z\\-_]+)/i)\n const vk = src.match(\n /\\/\\/(?:www\\.)?(?:vk\\.com|vkontakte\\.ru)\\/(?:video_ext\\.php\\?)(.*)/i\n )\n\n if (youtube) {\n return {\n youtube: youtube\n }\n } else if (vimeo) {\n return {\n vimeo: vimeo\n }\n } else if (dailymotion) {\n return {\n dailymotion: dailymotion\n }\n } else if (vk) {\n return {\n vk: vk\n }\n }\n }\n\n const link = function (contents, uri) {\n if (!uri) return contents\n const a = myDocument.createElement('a')\n a.setAttribute('href', uri)\n a.appendChild(contents)\n a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true)\n return a\n }\n\n const text = function (str) {\n return myDocument.createTextNode(str)\n }\n\n const kb = context.session.store\n const obj = kb.any(\n subject,\n $rdf.sym('http://purl.org/ontology/pbo/core#playlist_item')\n )\n let index = kb.any(\n subject,\n $rdf.sym('http://purl.org/ontology/olo/core#index')\n )\n\n let uri = obj.uri\n const video = isVideo(uri)\n\n const div = myDocument.createElement('div')\n let img\n if (video && video.youtube) {\n uri = uri.replace('watch?v=', 'embed/')\n div.setAttribute('class', 'imageView')\n img = myDocument.createElement('IFRAME')\n img.setAttribute('src', uri)\n img.setAttribute('width', 560)\n img.setAttribute('height', 315)\n img.setAttribute('frameborder', 0)\n img.setAttribute('style', 'max-width: 850px; max-height: 100%;')\n img.setAttribute('allowfullscreen', 'true')\n } else {\n div.setAttribute('class', 'imageView')\n img = myDocument.createElement('IMG')\n img.setAttribute('src', obj.value)\n img.setAttribute('width', 560)\n img.setAttribute('height', 315)\n img.setAttribute('style', 'max-width: 560; max-height: 315;')\n }\n\n let descDiv\n if (index) {\n const sl = kb.statementsMatching(\n null,\n $rdf.sym('http://purl.org/ontology/olo/core#index')\n )\n const slots = []\n for (let i = 0; i < sl.length; i++) {\n if (sl[i]) {\n slots.push(parseInt(sl[i].object.value, 10))\n }\n }\n\n index = parseInt(index.value, 10)\n descDiv = myDocument.createElement('div')\n\n const pIndex =\n slots[(slots.indexOf(index) - 1 + slots.length) % slots.length]\n const nIndex =\n slots[(slots.indexOf(index) + 1 + slots.length) % slots.length]\n\n const prev = link(text('<<'), subject.uri.split('#')[0] + '#' + pIndex)\n\n descDiv.appendChild(prev)\n\n const indexDiv = myDocument.createElement('span')\n indexDiv.innerHTML = ' Playlist slot : ' + index + ' '\n\n descDiv.appendChild(indexDiv)\n\n const next = link(text('>>'), subject.uri.split('#')[0] + '#' + nIndex)\n descDiv.appendChild(next)\n }\n\n const tr = myDocument.createElement('TR') // why need tr?\n tr.appendChild(img)\n if (descDiv) {\n tr.appendChild(descDiv)\n }\n div.appendChild(tr)\n return div\n }\n}\n\n// ends\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA,IAAMA,EAAE,GAAGC,OAAO,CAAC,UAAU,CAAC;AAC9B,IAAMC,IAAI,GAAGD,OAAO,CAAC,QAAQ,CAAC;AAC9B,IAAME,EAAE,GAAGH,EAAE,CAACG,EAAE;AAEhBC,MAAM,CAACC,OAAO,GAAG;EACfC,IAAI,EAAEN,EAAE,CAACO,KAAK,CAACC,QAAQ,GAAG,eAAe;EAEzCC,IAAI,E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B,GAAG;EACZ;AACF,CAAC;;AAED"}
1
+ {"version":3,"file":"playlistPane.js","names":["ns","UI","icon","icons","iconBase","name","audience","solid","label","subject","context","kb","session","store","anyStatementMatching","rdf","sym","render","myDocument","dom","isVideo","src","_index","html5","youtube","match","vimeo","dailymotion","vk","link","contents","uri","a","createElement","setAttribute","appendChild","addEventListener","widgets","openHrefInOutlineMode","text","str","createTextNode","obj","any","$rdf","index","video","div","img","replace","value","descDiv","sl","statementsMatching","slots","i","length","push","parseInt","object","pIndex","indexOf","nIndex","prev","split","indexDiv","innerHTML","next","tr"],"sources":["../../src/playlist/playlistPane.js"],"sourcesContent":["/* Playlist Pane\n **\n ** This pane allows playlists and playlists slots to be viewed\n ** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html\n */\n import * as UI from 'solid-ui'\n import * as $rdf from 'rdflib'\nconst ns = UI.ns\n\nexport default {\n icon: UI.icons.iconBase + 'noun_1619.svg',\n\n name: 'playlistSlot',\n\n audience: [ns.solid('PowerUser')],\n\n label: function (subject, context) {\n const kb = context.session.store\n\n if (\n !kb.anyStatementMatching(\n subject,\n UI.ns.rdf('type'),\n kb.sym('http://purl.org/ontology/pbo/core#PlaylistSlot')\n )\n ) {\n return null\n }\n\n return 'playlist slot'\n },\n\n render: function (subject, context) {\n const myDocument = context.dom\n function isVideo (src, _index) {\n if (!src) {\n return {\n html5: true\n }\n }\n\n const youtube = src.match(\n /\\/\\/(?:www\\.)?youtu(?:\\.be|be\\.com)\\/(?:watch\\?v=|embed\\/)?([a-z0-9\\-_%]+)/i\n )\n const vimeo = src.match(/\\/\\/(?:www\\.)?vimeo.com\\/([0-9a-z\\-_]+)/i)\n const dailymotion = src.match(/\\/\\/(?:www\\.)?dai.ly\\/([0-9a-z\\-_]+)/i)\n const vk = src.match(\n /\\/\\/(?:www\\.)?(?:vk\\.com|vkontakte\\.ru)\\/(?:video_ext\\.php\\?)(.*)/i\n )\n\n if (youtube) {\n return {\n youtube: youtube\n }\n } else if (vimeo) {\n return {\n vimeo: vimeo\n }\n } else if (dailymotion) {\n return {\n dailymotion: dailymotion\n }\n } else if (vk) {\n return {\n vk: vk\n }\n }\n }\n\n const link = function (contents, uri) {\n if (!uri) return contents\n const a = myDocument.createElement('a')\n a.setAttribute('href', uri)\n a.appendChild(contents)\n a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true)\n return a\n }\n\n const text = function (str) {\n return myDocument.createTextNode(str)\n }\n\n const kb = context.session.store\n const obj = kb.any(\n subject,\n $rdf.sym('http://purl.org/ontology/pbo/core#playlist_item')\n )\n let index = kb.any(\n subject,\n $rdf.sym('http://purl.org/ontology/olo/core#index')\n )\n\n let uri = obj.uri\n const video = isVideo(uri)\n\n const div = myDocument.createElement('div')\n let img\n if (video && video.youtube) {\n uri = uri.replace('watch?v=', 'embed/')\n div.setAttribute('class', 'imageView')\n img = myDocument.createElement('IFRAME')\n img.setAttribute('src', uri)\n img.setAttribute('width', 560)\n img.setAttribute('height', 315)\n img.setAttribute('frameborder', 0)\n img.setAttribute('style', 'max-width: 850px; max-height: 100%;')\n img.setAttribute('allowfullscreen', 'true')\n } else {\n div.setAttribute('class', 'imageView')\n img = myDocument.createElement('IMG')\n img.setAttribute('src', obj.value)\n img.setAttribute('width', 560)\n img.setAttribute('height', 315)\n img.setAttribute('style', 'max-width: 560; max-height: 315;')\n }\n\n let descDiv\n if (index) {\n const sl = kb.statementsMatching(\n null,\n $rdf.sym('http://purl.org/ontology/olo/core#index')\n )\n const slots = []\n for (let i = 0; i < sl.length; i++) {\n if (sl[i]) {\n slots.push(parseInt(sl[i].object.value, 10))\n }\n }\n\n index = parseInt(index.value, 10)\n descDiv = myDocument.createElement('div')\n\n const pIndex =\n slots[(slots.indexOf(index) - 1 + slots.length) % slots.length]\n const nIndex =\n slots[(slots.indexOf(index) + 1 + slots.length) % slots.length]\n\n const prev = link(text('<<'), subject.uri.split('#')[0] + '#' + pIndex)\n\n descDiv.appendChild(prev)\n\n const indexDiv = myDocument.createElement('span')\n indexDiv.innerHTML = ' Playlist slot : ' + index + ' '\n\n descDiv.appendChild(indexDiv)\n\n const next = link(text('>>'), subject.uri.split('#')[0] + '#' + nIndex)\n descDiv.appendChild(next)\n }\n\n const tr = myDocument.createElement('TR') // why need tr?\n tr.appendChild(img)\n if (descDiv) {\n tr.appendChild(descDiv)\n }\n div.appendChild(tr)\n return div\n }\n}\n\n// ends\n"],"mappings":";;;;;;;AAKC;AACA;AAA8B;AAAA;AAN/B;AACA;AACA;AACA;AACA;;AAGA,IAAMA,EAAE,GAAGC,EAAE,CAACD,EAAE;AAAA,eAED;EACbE,IAAI,EAAED,EAAE,CAACE,KAAK,CAACC,QAAQ,GAAG,eAAe;EAEzCC,IAAI,EAAE,cAAc;EAEpBC,QAAQ,EAAE,CAACN,EAAE,CAACO,KAAK,CAAC,WAAW,CAAC,CAAC;EAEjCC,KAAK,EAAE,eAAUC,OAAO,EAAEC,OAAO,EAAE;IACjC,IAAMC,EAAE,GAAGD,OAAO,CAACE,OAAO,CAACC,KAAK;IAEhC,IACE,CAACF,EAAE,CAACG,oBAAoB,CACtBL,OAAO,EACPR,EAAE,CAACD,EAAE,CAACe,GAAG,CAAC,MAAM,CAAC,EACjBJ,EAAE,CAACK,GAAG,CAAC,gDAAgD,CAAC,CACzD,EACD;MACA,OAAO,IAAI;IACb;IAEA,OAAO,eAAe;EACxB,CAAC;EAEDC,MAAM,EAAE,gBAAUR,OAAO,EAAEC,OAAO,EAAE;IAClC,IAAMQ,UAAU,GAAGR,OAAO,CAACS,GAAG;IAC9B,SAASC,OAAO,CAAEC,GAAG,EAAEC,MAAM,EAAE;MAC7B,IAAI,CAACD,GAAG,EAAE;QACR,OAAO;UACLE,KAAK,EAAE;QACT,CAAC;MACH;MAEA,IAAMC,OAAO,GAAGH,GAAG,CAACI,KAAK,CACvB,6EAA6E,CAC9E;MACD,IAAMC,KAAK,GAAGL,GAAG,CAACI,KAAK,CAAC,0CAA0C,CAAC;MACnE,IAAME,WAAW,GAA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,GAAGtC,IAAI,CAACU,IAAI,CAAC,IAAI,CAAC,EAAE9B,OAAO,CAACsB,GAAG,CAACiC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAGF,MAAM,CAAC;MACvEX,OAAO,CAAChB,WAAW,CAACgC,IAAI,CAAC;IAC3B;IAEA,IAAMC,EAAE,GAAGlD,UAAU,CAACe,aAAa,CAAC,IAAI,CAAC,EAAC;IAC1CmC,EAAE,CAACjC,WAAW,CAACa,GAAG,CAAC;IACnB,IAAIG,OAAO,EAAE;MACXiB,EAAE,CAACjC,WAAW,CAACgB,OAAO,CAAC;IACzB;IACAJ,GAAG,CAACZ,WAAW,CAACiC,EAAE,CAAC;IACnB,OAAOrB,GAAG;EACZ;AACF,CAAC,EAED;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"editProfile.view.d.ts","sourceRoot":"","sources":["../../src/profile/editProfile.view.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAQ9C,QAAA,MAAM,eAAe,EAAE,cA2HtB,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"editProfile.view.d.ts","sourceRoot":"","sources":["../../src/profile/editProfile.view.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAQ9C,QAAA,MAAM,eAAe,EAAE,cA+ItB,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -106,6 +106,22 @@ var editProfileView = {
106
106
  predicate: _solidUi.ns.foaf('knows'),
107
107
  noun: 'friend'
108
108
  });
109
+ heading('Communities you participate in');
110
+ comment("These are organizations and projects (etc) whose stuff you share");
111
+
112
+ // TODO: would be useful to explain what it means to "drag organizations"
113
+ // what is it that is being dragged?
114
+ // is there a way to search for people (or things to drag) on this page?
115
+ // Also provide a way of using cut and paste
116
+ if (editableProfile) {
117
+ comment('Drag organizations onto the target below to add organizations.');
118
+ }
119
+ _solidUi.widgets.attachmentList(dom, me, main, {
120
+ doc: profile,
121
+ modify: !!editableProfile,
122
+ predicate: _solidUi.ns.solid('community'),
123
+ noun: 'community'
124
+ });
109
125
 
110
126
  // heading('The style of your public profile') headings are in form now
111
127
  renderProfileForm(main, me);
@@ -1 +1 @@
1
- {"version":3,"file":"editProfile.view.js","names":["highlightColor","style","editProfileView","global","icon","icons","iconBase","name","label","render","subject","context","dom","store","session","complainIfBad","ok","mess","div","appendChild","widgets","errorMessageBlock","renderProfileForm","preferencesForm","sym","preferencesFormDoc","doc","holds","undefined","parse","profileFormText","uri","appendForm","editableProfile","createElement","setAttribute","table","main","bottom","statusArea","comment","str","p","textContent","heading","h","profileContext","me","login","ensureLoadedProfile","then","theContext","profile","updater","Error","any","ns","solid","editable","paneDiv","attachmentList","modify","predicate","foaf","noun","error"],"sources":["../../src/profile/editProfile.view.ts"],"sourcesContent":["/**\n * Profile Editing App Pane\n *\n * Unlike view panes, this is available any place whatever the real subject,\n * and allows the user to edit their own profile.\n *\n * Usage: paneRegistry.register('profile/profilePane')\n * or standalone script adding onto existing mashlib.\n */\n\nimport { PaneDefinition } from 'pane-registry'\nimport { NamedNode, parse, Store, sym } from 'rdflib'\nimport { icons, login, ns, style, widgets } from 'solid-ui'\nimport { paneDiv } from './profile.dom'\nimport profileFormText from './profileFormText.ttl'\n\nconst highlightColor = style.highlightColor || '#7C4DFF'\n\nconst editProfileView: PaneDefinition = {\n global: true,\n\n icon: icons.iconBase + 'noun_492246.svg',\n\n name: 'editProfile',\n\n label: () => null,\n\n render: function (subject, context) {\n const dom = context.dom\n const store = context.session.store as Store\n\n function complainIfBad (ok: Boolean, mess: any) {\n if (ok) return\n div.appendChild(widgets.errorMessageBlock(dom, mess, '#fee'))\n }\n\n function renderProfileForm (div: HTMLElement, subject: NamedNode) {\n const preferencesForm = sym('https://solidos.github.io/solid-panes/dashboard/profileStyle.ttl#this')\n const preferencesFormDoc = preferencesForm.doc()\n if (!store.holds(undefined, undefined, undefined, preferencesFormDoc)) {\n // If not loaded already\n parse(profileFormText, store, preferencesFormDoc.uri, 'text/turtle', () => null) // Load form directly\n }\n\n widgets.appendForm(\n dom,\n div,\n {},\n subject,\n preferencesForm,\n editableProfile,\n complainIfBad\n )\n } // renderProfileForm\n\n const div = dom.createElement('div')\n let editableProfile: NamedNode | null\n div.setAttribute('style', `border: 0.3em solid ${highlightColor}; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;`)\n\n const table = div.appendChild(dom.createElement('table'))\n // const top = table.appendChild(dom.createElement('tr'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n\n function comment (str: string) {\n const p = main.appendChild(dom.createElement('p'))\n p.setAttribute('style', 'padding: 1em;')\n p.textContent = str\n return p\n }\n\n function heading (str: string) {\n const h = main.appendChild(dom.createElement('h3'))\n h.setAttribute('style', 'color:' + highlightColor + ';')\n h.textContent = str\n return h\n }\n\n const profileContext = {\n dom: dom,\n div: main,\n statusArea: statusArea,\n me: null\n }\n login.ensureLoadedProfile(profileContext)\n .then(theContext => {\n const me = theContext.me!\n\n heading('Edit your public profile')\n\n const profile = me.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n if (store.any(me, ns.solid('editableProfile'))) {\n editableProfile = store.any(me as any, ns.solid('editableProfile')) as NamedNode\n } else if (store.updater.editable(profile.uri, store)) {\n editableProfile = profile\n } else {\n statusArea.appendChild(widgets.errorMessageBlock(dom, `⚠️ Your profile ${profile} is not editable, so we cannot do much here.`, 'straw'))\n return\n }\n\n comment(`Everything you put here will be public.\n There will be other places to record private things.`)\n\n heading('Your contact information')\n\n main.appendChild(paneDiv(context, me, 'contact'))\n\n heading('People you know who have WebIDs')\n\n comment(`This is your public social network.\n Only put people here to whom you are happy to be publicly connected.\n (You can always keep private track of friends and family in your contacts.)`)\n\n // TODO: would be useful to explain what it means to \"drag people\"\n // what is it that is being dragged?\n // is there a way to search for people (or things to drag) on this page?\n if (editableProfile) {\n comment('Drag people onto the target below to add people.')\n }\n\n widgets.attachmentList(dom, me, main, {\n doc: profile,\n modify: !!editableProfile,\n predicate: ns.foaf('knows'),\n noun: 'friend'\n })\n\n // heading('The style of your public profile') headings are in form now\n renderProfileForm(main, me)\n\n heading('Thank you for filling your profile.')\n }).catch(error => {\n statusArea.appendChild(widgets.errorMessageBlock(dom, error, '#fee'))\n })\n return div\n }\n}\n\nexport default editProfileView\n"],"mappings":";;;;;;AAWA;AACA;AACA;AAbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAAA;AAgBA,IAAMA,cAAc,GAAGC,cAAK,CAACD,cAAc,IAAI,SAAS;AAExD,IAAME,eAA+B,GAAG;EACtCC,MAAM,EAAE,IAAI;EAEZC,IAAI,EAAEC,cAAK,CAACC,QAAQ,GAAG,iBAAiB;EAExCC,IAAI,EAAE,aAAa;EAEnBC,KAAK,EAAE;IAAA,OAAM,IAAI;EAAA;EAEjBC,MAAM,EAAE,gBAAUC,OAAO,EAAEC,OAAO,EAAE;IAClC,IAAMC,GAAG,GAAGD,OAAO,CAACC,GAAG;IACvB,IAAMC,KAAK,GAAGF,OAAO,CAACG,OAAO,CAACD,KAAc;IAE5C,SAASE,aAAa,CAAEC,EAAW,EAAEC,IAAS,EAAE;MAC9C,IAAID,EAAE,EAAE;MACRE,GAAG,CAACC,WAAW,CAACC,gBAAO,CAACC,iBAAiB,CAACT,GAAG,EAAEK,IAAI,EAAE,MAAM,CAAC,CAAC;IAC/D;IAEA,SAASK,iBAAiB,CAAEJ,GAAgB,EAAER,OAAkB,EAAE;MAChE,IAAMa,eAAe,GAAG,IAAAC,WAAG,EAAC,uEAAuE,CAAC;MACpG,IAAMC,kBAAkB,GAAGF,eAAe,CAACG,GAAG,EAAE;MAChD,IAAI,CAACb,KAAK,CAACc,KAAK,CAACC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MAEnCP,IAAI,CAAClB,WAAW,CAAC,IAAAwC,gBAAO,EAAChD,OAAO,EAAEoC,EAAE,EAAE,SAAS,CAAC,CAAC;MAEjDH,OAAO,CAAC,iCAAiC,CAAC;MAE1CJ,OAAO,0MAEsE;;MAE7E;MACA;MACA;MACA,IAAIP,eAAe,EAAE;QACnBO,OAAO,CAAC,kDAAkD,CAAC;MAC7D;MAEApB,gBAAO,CAACwC,cAAc,CAAChD,GAAG,EAAEmC,EAAE,EAAEV,IAAI,EAAE;QACpCX,GAAG,EAAE0B,OAAO;QACZS,MAAM,EAAE,CAAC,CAAC5B,eAAe;QACzB6B,SAAS,EAAEN,WAAE,CAACO,IAAI,CAAC,OAAO,CAAC;QAC3BC,IAAI,EAAE;MACR,CAAC,CAAC;;MAEF;MACA1C,iBAAiB,CAACe,IAAI,EAAEU,EAAE,CAAC;MAE3BH,OAAO,CAAC,qCAAqC,CAAC;IAChD,CAAC,CAAC,SAAM,CAAC,UAAAqB,KAAK,EAAI;MAChB1B,UAAU,CAACpB,WAAW,CAACC,gBAAO,CAACC,iBAAiB,CAACT,GAAG,EAAEqD,KAAK,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC,CAAC;IACJ,OAAO/C,GAAG;EACZ;AACF,CAAC;AAAA,eAEchB,eAAe;AAAA"}
1
+ {"version":3,"file":"editProfile.view.js","names":["highlightColor","style","editProfileView","global","icon","icons","iconBase","name","label","render","subject","context","dom","store","session","complainIfBad","ok","mess","div","appendChild","widgets","errorMessageBlock","renderProfileForm","preferencesForm","sym","preferencesFormDoc","doc","holds","undefined","parse","profileFormText","uri","appendForm","editableProfile","createElement","setAttribute","table","main","bottom","statusArea","comment","str","p","textContent","heading","h","profileContext","me","login","ensureLoadedProfile","then","theContext","profile","updater","Error","any","ns","solid","editable","paneDiv","attachmentList","modify","predicate","foaf","noun","error"],"sources":["../../src/profile/editProfile.view.ts"],"sourcesContent":["/**\n * Profile Editing App Pane\n *\n * Unlike view panes, this is available any place whatever the real subject,\n * and allows the user to edit their own profile.\n *\n * Usage: paneRegistry.register('profile/profilePane')\n * or standalone script adding onto existing mashlib.\n */\n\nimport { PaneDefinition } from 'pane-registry'\nimport { NamedNode, parse, Store, sym } from 'rdflib'\nimport { icons, login, ns, style, widgets } from 'solid-ui'\nimport { paneDiv } from './profile.dom'\nimport profileFormText from './profileFormText.ttl'\n\nconst highlightColor = style.highlightColor || '#7C4DFF'\n\nconst editProfileView: PaneDefinition = {\n global: true,\n\n icon: icons.iconBase + 'noun_492246.svg',\n\n name: 'editProfile',\n\n label: () => null,\n\n render: function (subject, context) {\n const dom = context.dom\n const store = context.session.store as Store\n\n function complainIfBad (ok: Boolean, mess: any) {\n if (ok) return\n div.appendChild(widgets.errorMessageBlock(dom, mess, '#fee'))\n }\n\n function renderProfileForm (div: HTMLElement, subject: NamedNode) {\n const preferencesForm = sym('https://solidos.github.io/solid-panes/dashboard/profileStyle.ttl#this')\n const preferencesFormDoc = preferencesForm.doc()\n if (!store.holds(undefined, undefined, undefined, preferencesFormDoc)) {\n // If not loaded already\n parse(profileFormText, store, preferencesFormDoc.uri, 'text/turtle', () => null) // Load form directly\n }\n\n widgets.appendForm(\n dom,\n div,\n {},\n subject,\n preferencesForm,\n editableProfile,\n complainIfBad\n )\n } // renderProfileForm\n\n const div = dom.createElement('div')\n let editableProfile: NamedNode | null\n div.setAttribute('style', `border: 0.3em solid ${highlightColor}; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;`)\n\n const table = div.appendChild(dom.createElement('table'))\n // const top = table.appendChild(dom.createElement('tr'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n\n function comment (str: string) {\n const p = main.appendChild(dom.createElement('p'))\n p.setAttribute('style', 'padding: 1em;')\n p.textContent = str\n return p\n }\n\n function heading (str: string) {\n const h = main.appendChild(dom.createElement('h3'))\n h.setAttribute('style', 'color:' + highlightColor + ';')\n h.textContent = str\n return h\n }\n\n const profileContext = {\n dom: dom,\n div: main,\n statusArea: statusArea,\n me: null\n }\n login.ensureLoadedProfile(profileContext)\n .then(theContext => {\n const me = theContext.me!\n\n heading('Edit your public profile')\n\n const profile = me.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n if (store.any(me, ns.solid('editableProfile'))) {\n editableProfile = store.any(me as any, ns.solid('editableProfile')) as NamedNode\n } else if (store.updater.editable(profile.uri, store)) {\n editableProfile = profile\n } else {\n statusArea.appendChild(widgets.errorMessageBlock(dom, `⚠️ Your profile ${profile} is not editable, so we cannot do much here.`, 'straw'))\n return\n }\n\n comment(`Everything you put here will be public.\n There will be other places to record private things.`)\n\n heading('Your contact information')\n\n main.appendChild(paneDiv(context, me, 'contact'))\n\n\n heading('People you know who have WebIDs')\n\n comment(`This is your public social network.\n Only put people here to whom you are happy to be publicly connected.\n (You can always keep private track of friends and family in your contacts.)`)\n\n // TODO: would be useful to explain what it means to \"drag people\"\n // what is it that is being dragged?\n // is there a way to search for people (or things to drag) on this page?\n if (editableProfile) {\n comment('Drag people onto the target below to add people.')\n }\n\n widgets.attachmentList(dom, me, main, {\n doc: profile,\n modify: !!editableProfile,\n predicate: ns.foaf('knows'),\n noun: 'friend'\n })\n\n heading('Communities you participate in')\n\n comment(`These are organizations and projects (etc) whose stuff you share`)\n\n // TODO: would be useful to explain what it means to \"drag organizations\"\n // what is it that is being dragged?\n // is there a way to search for people (or things to drag) on this page?\n // Also provide a way of using cut and paste\n if (editableProfile) {\n comment('Drag organizations onto the target below to add organizations.')\n }\n\n widgets.attachmentList(dom, me, main, {\n doc: profile,\n modify: !!editableProfile,\n predicate: ns.solid('community'),\n noun: 'community'\n })\n\n // heading('The style of your public profile') headings are in form now\n renderProfileForm(main, me)\n\n heading('Thank you for filling your profile.')\n }).catch(error => {\n statusArea.appendChild(widgets.errorMessageBlock(dom, error, '#fee'))\n })\n return div\n }\n}\n\nexport default editProfileView\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CAAC,CAAC5B,eAAe;QACzB6B,SAAS,EAAEN,WAAE,CAACO,IAAI,CAAC,OAAO,CAAC;QAC3BC,IAAI,EAAE;MACR,CAAC,CAAC;MAEFpB,OAAO,CAAC,gCAAgC,CAAC;MAEzCJ,OAAO,oEAAoE;;MAE3E;MACA;MACA;MACA;MACA,IAAIP,eAAe,EAAE;QACnBO,OAAO,CAAC,gEAAgE,CAAC;MAC3E;MAEApB,gBAAO,CAACwC,cAAc,CAAChD,GAAG,EAAEmC,EAAE,EAAEV,IAAI,EAAE;QACpCX,GAAG,EAAE0B,OAAO;QACZS,MAAM,EAAE,CAAC,CAAC5B,eAAe;QACzB6B,SAAS,EAAEN,WAAE,CAACC,KAAK,CAAC,WAAW,CAAC;QAChCO,IAAI,EAAE;MACR,CAAC,CAAC;;MAEF;MACA1C,iBAAiB,CAACe,IAAI,EAAEU,EAAE,CAAC;MAE3BH,OAAO,CAAC,qCAAqC,CAAC;IAChD,CAAC,CAAC,SAAM,CAAC,UAAAqB,KAAK,EAAI;MAChB1B,UAAU,CAACpB,WAAW,CAACC,gBAAO,CAACC,iBAAiB,CAACT,GAAG,EAAEqD,KAAK,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC,CAAC;IACJ,OAAO/C,GAAG;EACZ;AACF,CAAC;AAAA,eAEchB,eAAe;AAAA"}
@@ -1,72 +1,115 @@
1
1
  "use strict";
2
2
 
3
- module.exports = function registerPanes(register) {
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.registerPanes = registerPanes;
7
+ var _profilePane = _interopRequireDefault(require("profile-pane"));
8
+ var _editProfile = _interopRequireDefault(require("./profile/editProfile.view"));
9
+ var _trustedApplications = _interopRequireDefault(require("./trustedApplications/trustedApplications.view"));
10
+ var _dashboardPane = _interopRequireDefault(require("./dashboard/dashboardPane"));
11
+ var _basicPreferences = _interopRequireDefault(require("./dashboard/basicPreferences"));
12
+ var _issuePane = _interopRequireDefault(require("issue-pane"));
13
+ var _contactsPane = _interopRequireDefault(require("contacts-pane"));
14
+ var _activitystreamsPane = _interopRequireDefault(require("activitystreams-pane"));
15
+ var _padPane = _interopRequireDefault(require("./pad/padPane"));
16
+ var _pane = _interopRequireDefault(require("./transaction/pane.js"));
17
+ var _period = _interopRequireDefault(require("./transaction/period.js"));
18
+ var _meetingPane = _interopRequireDefault(require("meeting-pane"));
19
+ var _tabbedPane = _interopRequireDefault(require("./tabbed/tabbedPane"));
20
+ var _chatPane = require("chat-pane");
21
+ var _schedulePane = require("./schedule/schedulePane.js");
22
+ var _tripPane = _interopRequireDefault(require("./trip/tripPane.js"));
23
+ var _imagePane = require("./imagePane.js");
24
+ var _playlistPane = _interopRequireDefault(require("./playlist/playlistPane.js"));
25
+ var _videoPane = _interopRequireDefault(require("./video/videoPane.js"));
26
+ var _audioPane = _interopRequireDefault(require("./audio/audioPane.js"));
27
+ var _dokieliPane = _interopRequireDefault(require("./dokieli/dokieliPane.js"));
28
+ var _folderPane = _interopRequireDefault(require("folder-pane"));
29
+ var _classInstancePane = require("./classInstancePane.js");
30
+ var _slideshowPane = require("./slideshow/slideshowPane.js");
31
+ var _socialPane = require("./socialPane.js");
32
+ var _humanReadablePane = _interopRequireDefault(require("./humanReadablePane.js"));
33
+ var _dataContentPane = require("./dataContentPane.js");
34
+ var _sourcePane = _interopRequireDefault(require("source-pane"));
35
+ var _n3Pane = require("./n3Pane.js");
36
+ var _RDFXMLPane = require("./RDFXMLPane.js");
37
+ var _pane2 = require("./form/pane.js");
38
+ var _tableViewPane = require("./tableViewPane.js");
39
+ var _defaultPane = require("./defaultPane.js");
40
+ var _pane3 = _interopRequireDefault(require("./ui/pane.js"));
41
+ var _sharingPane = _interopRequireDefault(require("./sharing/sharingPane"));
42
+ var _internalPane = _interopRequireDefault(require("./internal/internalPane"));
43
+ var _homePane = _interopRequireDefault(require("./home/homePane"));
44
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
+ // import argumentPane from './argument/argumentPane.js'
46
+
47
+ // import publicationPane from './publication/publicationPane.js'
48
+
49
+ function registerPanes(register) {
4
50
  /* Note that the earliest panes have priority. So the most specific ones are first.
5
51
  **
6
52
  */
7
53
  // Developer designed:
8
54
 
9
- register(require('profile-pane')); // View someone's public profile - dominates all other panes.
10
-
11
- register(require('./profile/editProfile.view')); // Edit my profile. App. 201900802
12
- register(require('./trustedApplications/trustedApplications.view')); // must be registered before basicPreferences
13
- register(require('./dashboard/dashboardPane'));
14
- register(require('./dashboard/basicPreferences')); // 20190702
15
- register(require('issue-pane'));
16
- register(require('contacts-pane'));
17
- register(require('activitystreams-pane'));
18
- register(require('./pad/padPane'));
19
- // register(require('./argument/argumentPane.js')) // A position in an argument tree
20
-
21
- register(require('./transaction/pane.js'));
22
- register(require('./transaction/period.js'));
23
- var chatPanes = require('chat-pane');
24
- // FIXME: https://github.com/solidos/chat-pane/issues/40
25
- if (chatPanes.longChatPane) {
26
- register(chatPanes.longChatPane); // Long pane must have prio in case short pane tries to do a long pane
27
- register(chatPanes.shortChatPane); // was './chat/chatPane.js'
28
- } else {
29
- register(chatPanes);
30
- }
31
- // register(require('./publication/publicationPane.js'))
32
- register(require('meeting-pane'));
33
- register(require('./tabbed/tabbedPane'));
34
- register(require('./schedule/schedulePane.js'));
35
- register(require('./trip/tripPane.js'));
55
+ register(_profilePane["default"]); // View someone's public profile - dominates all other panes.
56
+ register(_editProfile["default"]); // Edit my profile. App. 201900802
57
+
58
+ register(_trustedApplications["default"]); // must be registered before basicPreferences
59
+ register(_dashboardPane["default"]);
60
+ register(_basicPreferences["default"]);
61
+ register(_issuePane["default"]);
62
+ register(_contactsPane["default"]);
63
+ register(_activitystreamsPane["default"]);
64
+ register(_padPane["default"]);
65
+ // register(argumentPane) // A position in an argument tree
66
+
67
+ register(_pane["default"]);
68
+ register(_period["default"]);
69
+ register(_meetingPane["default"]);
70
+ register(_tabbedPane["default"]);
71
+ register(_chatPane.longChatPane); // Long pane must have prio in case short pane tries to do a long pane
72
+ register(_chatPane.shortChatPane); // was './chat/chatPane.js'
73
+
74
+ // register(publicationPane) // Suppress for now
75
+
76
+ register(_schedulePane.schedulePane); // doodle poll
77
+
78
+ register(_tripPane["default"]);
36
79
  // register(require('./airPane.js'))
37
80
 
38
81
  // Content views
39
82
 
40
- register(require('./imagePane.js')); // Basic image view
41
- register(require('./playlist/playlistPane.js')); // Basic playlist view
83
+ register(_imagePane.imagePane); // Basic image view
84
+ register(_playlistPane["default"]); // Basic playlist view
42
85
 
43
- register(require('./video/videoPane.js')); // Video clip player
44
- register(require('./audio/audioPane.js')); // Audio clip player
86
+ register(_videoPane["default"]); // Video clip player
87
+ register(_audioPane["default"]); // Audio clip player
45
88
 
46
- register(require('./dokieli/dokieliPane.js')); // Should be above dataContentPane
47
- register(require('folder-pane')); // Should be above dataContentPane
48
- register(require('./classInstancePane.js')); // Should be above dataContentPane
89
+ register(_dokieliPane["default"]); // Should be above dataContentPane
90
+ register(_folderPane["default"]); // Should be above dataContentPane
91
+ register(_classInstancePane.classInstancePane); // Should be above dataContentPane
49
92
  // register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8
50
- register(require('./slideshow/slideshowPane.js'));
51
- register(require('./socialPane.js'));
52
- register(require('./humanReadablePane.js')); // A web page as a web page -- how to escape to tabr?
93
+ register(_slideshowPane.slideshowPane);
94
+ register(_socialPane.socialPane);
95
+ register(_humanReadablePane["default"]); // A web page as a web page -- how to escape to tabr?
53
96
  // register(require('markdown-pane').Pane) // replaced by markdown in humanReadablePane
54
97
 
55
- register(require('./dataContentPane.js')); // Preferred for a data file
56
- register(require('source-pane')); // edit source
57
- register(require('./n3Pane.js'));
58
- register(require('./RDFXMLPane.js'));
98
+ register(_dataContentPane.dataContentPane); // Preferred for a data file
99
+ register(_sourcePane["default"]); // edit source
100
+ register(_n3Pane.n3Pane);
101
+ register(_RDFXMLPane.RDFXMLPane);
59
102
 
60
103
  // User configured - data driven
61
- register(require('./form/pane.js'));
104
+ register(_pane2.formPane);
62
105
 
63
106
  // Generic:
64
107
 
65
- register(require('./tableViewPane.js'));
108
+ register(_tableViewPane.tableViewPane);
66
109
 
67
110
  // Fallback totally generic:
68
- register(require('./defaultPane.js'));
69
- register(require('./ui/pane.js'));
111
+ register(_defaultPane.defaultPane);
112
+ register(_pane3["default"]);
70
113
 
71
114
  // register(require("categoryPane.js")) // Not useful enough
72
115
  // register(require("pubsPane.js")) // not finished
@@ -87,12 +130,12 @@ module.exports = function registerPanes(register) {
87
130
  // register(require("photoImportPane.js"))
88
131
 
89
132
  // The sharing pane is fairly generic and administrative 201
90
- register(require('./sharing/sharingPane'));
133
+ register(_sharingPane["default"]);
91
134
 
92
135
  // The internals pane is always (almost?) the last as it is the least user-friendly
93
- register(require('./internal/internalPane'));
94
- register(require('./home/homePane'));
136
+ register(_internalPane["default"]);
137
+ register(_homePane["default"]); // This is a global pane
95
138
 
96
139
  // ENDS
97
- };
140
+ }
98
141
  //# sourceMappingURL=registerPanes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerPanes.js","names":["module","exports","registerPanes","register","require","chatPanes","longChatPane","shortChatPane"],"sources":["../src/registerPanes.js"],"sourcesContent":["module.exports = function registerPanes (register) {\n /* Note that the earliest panes have priority. So the most specific ones are first.\n **\n */\n // Developer designed:\n\n register(require('profile-pane')) // View someone's public profile - dominates all other panes.\n\n register(require('./profile/editProfile.view')) // Edit my profile. App. 201900802\n register(require('./trustedApplications/trustedApplications.view')) // must be registered before basicPreferences\n register(require('./dashboard/dashboardPane'))\n register(require('./dashboard/basicPreferences')) // 20190702\n register(require('issue-pane'))\n register(require('contacts-pane'))\n register(require('activitystreams-pane'))\n\n register(require('./pad/padPane'))\n // register(require('./argument/argumentPane.js')) // A position in an argument tree\n\n register(require('./transaction/pane.js'))\n register(require('./transaction/period.js'))\n\n const chatPanes = require('chat-pane')\n // FIXME: https://github.com/solidos/chat-pane/issues/40\n if (chatPanes.longChatPane) {\n register(chatPanes.longChatPane) // Long pane must have prio in case short pane tries to do a long pane\n register(chatPanes.shortChatPane) // was './chat/chatPane.js'\n } else {\n register(chatPanes)\n }\n // register(require('./publication/publicationPane.js'))\n register(require('meeting-pane'))\n register(require('./tabbed/tabbedPane'))\n register(require('./schedule/schedulePane.js'))\n\n register(require('./trip/tripPane.js'))\n // register(require('./airPane.js'))\n\n // Content views\n\n register(require('./imagePane.js')) // Basic image view\n register(require('./playlist/playlistPane.js')) // Basic playlist view\n\n register(require('./video/videoPane.js')) // Video clip player\n register(require('./audio/audioPane.js')) // Audio clip player\n\n register(require('./dokieli/dokieliPane.js')) // Should be above dataContentPane\n register(require('folder-pane')) // Should be above dataContentPane\n register(require('./classInstancePane.js')) // Should be above dataContentPane\n // register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8\n register(require('./slideshow/slideshowPane.js'))\n\n register(require('./socialPane.js'))\n\n register(require('./humanReadablePane.js')) // A web page as a web page -- how to escape to tabr?\n // register(require('markdown-pane').Pane) // replaced by markdown in humanReadablePane\n\n register(require('./dataContentPane.js')) // Preferred for a data file\n register(require('source-pane')) // edit source\n register(require('./n3Pane.js'))\n register(require('./RDFXMLPane.js'))\n\n // User configured - data driven\n register(require('./form/pane.js'))\n\n // Generic:\n\n register(require('./tableViewPane.js'))\n\n // Fallback totally generic:\n register(require('./defaultPane.js'))\n\n register(require('./ui/pane.js'))\n\n // register(require(\"categoryPane.js\")) // Not useful enough\n // register(require(\"pubsPane.js\")) // not finished\n\n // @@ jambo commented these things out to pare things down temporarily.\n // Note must use // not /* to comment out to make sure expander sees it\n // register(require(\"lawPane.js\"))\n\n // register(require('./microblogPane/microblogPane.js'))\n\n // register(require(\"./social/pane.js\")) // competitor to other social\n // register(require(\"./airPane.js\"))\n // register(require(\"./lawPane.js\"))\n // register(require(\"pushbackPane.js\"))\n // register(require(\"CVPane.js\"))\n // register(require(\"photoPane.js\"))\n // register(require(\"tagPane.js\"))\n // register(require(\"photoImportPane.js\"))\n\n // The sharing pane is fairly generic and administrative 201\n register(require('./sharing/sharingPane'))\n\n // The internals pane is always (almost?) the last as it is the least user-friendly\n register(require('./internal/internalPane'))\n\n register(require('./home/homePane'))\n\n // ENDS\n}\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG,SAASC,aAAa,CAAEC,QAAQ,EAAE;EACjD;AACF;AACA;EACE;;EAEAA,QAAQ,CAACC,OAAO,CAAC,cAAc,CAAC,CAAC,EAAC;;EAElCD,QAAQ,CAACC,OAAO,CAAC,4BAA4B,CAAC,CAAC,EAAC;EAChDD,QAAQ,CAACC,OAAO,CAAC,gDAAgD,CAAC,CAAC,EAAC;EACpED,QAAQ,CAACC,OAAO,CAAC,2BAA2B,CAAC,CAAC;EAC9CD,QAAQ,CAACC,OAAO,CAAC,8BAA8B,CAAC,CAAC,EAAC;EAClDD,QAAQ,CAACC,OAAO,CAAC,YAAY,CAAC,CAAC;EAC/BD,QAAQ,CAACC,OAAO,CAAC,eAAe,CAAC,CAAC;EAClCD,QAAQ,CAACC,OAAO,CAAC,sBAAsB,CAAC,CAAC;EAEzCD,QAAQ,CAACC,OAAO,CAAC,eAAe,CAAC,CAAC;EAClC;;EAEAD,QAAQ,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;EAC1CD,QAAQ,CAACC,OAAO,CAAC,yBAAyB,CAAC,CAAC;EAE5C,IAAMC,SAAS,GAAGD,OAAO,CAAC,WAAW,CAAC;EACtC;EACA,IAAIC,SAAS,CAACC,YAAY,EAAE;IAC1BH,QAAQ,CAACE,SAAS,CAACC,YAAY,CAAC,EAAC;IACjCH,QAAQ,CAACE,SAAS,CAACE,aAAa,CAAC,EAAC;EACpC,CAAC,MAAM;IACLJ,QAAQ,CAACE,SAAS,CAAC;EACrB;EACA;EACAF,QAAQ,CAACC,OAAO,CAAC,cAAc,CAAC,CAAC;EACjCD,QAAQ,CAACC,OAAO,CAAC,qBAAqB,CAAC,CAAC;EACxCD,QAAQ,CAACC,OAAO,CAAC,4BAA4B,CAAC,CAAC;EAE/CD,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AAuB,CAAC,CAAC;;EAE1C;EACAD,QAAQ,CAACC,OAAO,CAAC,yBAAyB,CAAC,CAAC;EAE5CD,QAAQ,CAACC,OAAO,CAAC,iBAAiB,CAAC,CAAC;;EAEpC;AACF,CAAC"}
1
+ {"version":3,"file":"registerPanes.js","names":["registerPanes","register","profilePane","editProfileView","trustedApplications","dashboardPane","basicPreferences","issuePane","contactsPane","activityStreamsPane","padPane","transactionPane","financialPeriodPane","meetingPane","tabbedPane","longChatPane","shortChatPane","schedulePane","tripPane","imagePane","playListPane","videoPane","audioPane","dokieliPane","folderPane","classInstancePane","slideshowPane","socialPane","humanReadablePane","dataContentPane","sourcePane","n3Pane","RDFXMLPane","formPane","tableViewPane","defaultPane","uiPane","sharingPane","internalPane","homePane"],"sources":["../src/registerPanes.js"],"sourcesContent":["import profilePane from 'profile-pane'\nimport editProfileView from './profile/editProfile.view'\nimport trustedApplications from './trustedApplications/trustedApplications.view'\nimport dashboardPane from './dashboard/dashboardPane'\nimport basicPreferences from './dashboard/basicPreferences'\nimport issuePane from 'issue-pane'\nimport contactsPane from 'contacts-pane'\nimport activityStreamsPane from 'activitystreams-pane'\nimport padPane from './pad/padPane'\n// import argumentPane from './argument/argumentPane.js'\nimport transactionPane from './transaction/pane.js'\nimport financialPeriodPane from './transaction/period.js'\nimport meetingPane from 'meeting-pane'\nimport tabbedPane from './tabbed/tabbedPane'\nimport { longChatPane, shortChatPane } from 'chat-pane'\nimport { schedulePane } from './schedule/schedulePane.js'\n// import publicationPane from './publication/publicationPane.js'\nimport tripPane from './trip/tripPane.js'\nimport { imagePane } from './imagePane.js'\nimport playListPane from './playlist/playlistPane.js'\nimport videoPane from './video/videoPane.js'\nimport audioPane from './audio/audioPane.js'\nimport dokieliPane from './dokieli/dokieliPane.js'\nimport folderPane from 'folder-pane'\nimport { classInstancePane } from './classInstancePane.js'\nimport { slideshowPane } from './slideshow/slideshowPane.js'\nimport { socialPane } from './socialPane.js'\nimport humanReadablePane from './humanReadablePane.js'\n\nimport { dataContentPane } from './dataContentPane.js'\nimport sourcePane from 'source-pane'\nimport { n3Pane } from './n3Pane.js'\nimport { RDFXMLPane } from './RDFXMLPane.js'\nimport { formPane } from './form/pane.js'\nimport { tableViewPane } from './tableViewPane.js'\nimport { defaultPane } from './defaultPane.js'\nimport uiPane from './ui/pane.js'\n\nimport sharingPane from './sharing/sharingPane'\nimport internalPane from './internal/internalPane'\n\nimport homePane from './home/homePane'\n\nexport function registerPanes (register) {\n /* Note that the earliest panes have priority. So the most specific ones are first.\n **\n */\n // Developer designed:\n\n register(profilePane) // View someone's public profile - dominates all other panes.\n register(editProfileView) // Edit my profile. App. 201900802\n\n register(trustedApplications) // must be registered before basicPreferences\n register(dashboardPane)\n register(basicPreferences)\n register(issuePane)\n register(contactsPane)\n register(activityStreamsPane)\n\n register(padPane)\n // register(argumentPane) // A position in an argument tree\n\n register(transactionPane)\n register(financialPeriodPane)\n\n register(meetingPane)\n register(tabbedPane)\n\n register(longChatPane) // Long pane must have prio in case short pane tries to do a long pane\n register(shortChatPane) // was './chat/chatPane.js'\n\n // register(publicationPane) // Suppress for now\n\n register(schedulePane) // doodle poll\n\n register(tripPane)\n // register(require('./airPane.js'))\n\n // Content views\n\n register(imagePane) // Basic image view\n register(playListPane) // Basic playlist view\n\n register(videoPane) // Video clip player\n register(audioPane) // Audio clip player\n\n register(dokieliPane) // Should be above dataContentPane\n register(folderPane) // Should be above dataContentPane\n register(classInstancePane) // Should be above dataContentPane\n // register(require('./dynamic/dynamicPanes.js')) // warp etc warp broken 2017/8\n register(slideshowPane)\n\n register(socialPane)\n\n register(humanReadablePane) // A web page as a web page -- how to escape to tabr?\n // register(require('markdown-pane').Pane) // replaced by markdown in humanReadablePane\n\n register(dataContentPane) // Preferred for a data file\n register(sourcePane) // edit source\n register(n3Pane)\n register(RDFXMLPane)\n\n // User configured - data driven\n register(formPane)\n\n // Generic:\n\n register(tableViewPane)\n\n // Fallback totally generic:\n register(defaultPane)\n\n register(uiPane)\n\n // register(require(\"categoryPane.js\")) // Not useful enough\n // register(require(\"pubsPane.js\")) // not finished\n\n // @@ jambo commented these things out to pare things down temporarily.\n // Note must use // not /* to comment out to make sure expander sees it\n // register(require(\"lawPane.js\"))\n\n // register(require('./microblogPane/microblogPane.js'))\n\n // register(require(\"./social/pane.js\")) // competitor to other social\n // register(require(\"./airPane.js\"))\n // register(require(\"./lawPane.js\"))\n // register(require(\"pushbackPane.js\"))\n // register(require(\"CVPane.js\"))\n // register(require(\"photoPane.js\"))\n // register(require(\"tagPane.js\"))\n // register(require(\"photoImportPane.js\"))\n\n // The sharing pane is fairly generic and administrative 201\n register(sharingPane)\n\n // The internals pane is always (almost?) the last as it is the least user-friendly\n register(internalPane)\n\n register(homePane) // This is a global pane\n\n // ENDS\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAAsC;AAhCtC;;AAOA;;AA2BO,SAASA,aAAa,CAAEC,QAAQ,EAAE;EACvC;AACF;AACA;EACE;;EAEAA,QAAQ,CAACC,uBAAW,CAAC,EAAC;EACtBD,QAAQ,CAACE,uBAAe,CAAC,EAAC;;EAE1BF,QAAQ,CAACG,+BAAmB,CAAC,EAAC;EAC9BH,QAAQ,CAACI,yBAAa,CAAC;EACvBJ,QAAQ,CAACK,4BAAgB,CAAC;EAC1BL,QAAQ,CAACM,qBAAS,CAAC;EACnBN,QAAQ,CAACO,wBAAY,CAAC;EACtBP,QAAQ,CAACQ,+BAAmB,CAAC;EAE7BR,QAAQ,CAACS,mBAAO,CAAC;EACjB;;EAEAT,QAAQ,CAACU,gBAAe,CAAC;EACzBV,QAAQ,CAACW,kBAAmB,CAAC;EAE7BX,QAAQ,CAACY,uBAAW,CAAC;EACrBZ,QAAQ,CA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exports = "\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = "\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n";
8
+ exports["default"] = _default;
4
9
  //# sourceMappingURL=formsForSchedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formsForSchedule.js","names":["module","exports"],"sources":["../../src/schedule/formsForSchedule.js"],"sourcesContent":["module.exports = `\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n`\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,m6GAoHb"}
1
+ {"version":3,"file":"formsForSchedule.js","names":[],"sources":["../../src/schedule/formsForSchedule.js"],"sourcesContent":["export default `\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n`\n"],"mappings":""}
@@ -1,8 +1,14 @@
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.schedulePane = void 0;
4
8
  var UI = _interopRequireWildcard(require("solid-ui"));
5
9
  var _solidLogic = require("solid-logic");
10
+ var _formsForSchedule = _interopRequireDefault(require("./formsForSchedule.js"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6
12
  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); }
7
13
  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; }
8
14
  /* Scheduler Pane
@@ -13,10 +19,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
13
19
 
14
20
  var $rdf = UI.rdf;
15
21
  var ns = UI.ns;
16
-
17
22
  // @@ Give other combos too-- see schedule ontology
18
23
  var possibleAvailabilities = [ns.sched('No'), ns.sched('Maybe'), ns.sched('Yes')];
19
- module.exports = {
24
+ var schedulePane = {
20
25
  icon: UI.icons.iconBase + 'noun_346777.svg',
21
26
  // @@ better?
22
27
 
@@ -257,8 +262,7 @@ module.exports = {
257
262
  var form1 = kb.sym(formsURI + '#form1');
258
263
  var form2 = kb.sym(formsURI + '#form2');
259
264
  var form3 = kb.sym(formsURI + '#form3');
260
- var formText = require('./formsForSchedule.js');
261
- $rdf.parse(formText, kb, formsURI, 'text/turtle'); // Load forms directly
265
+ $rdf.parse(_formsForSchedule["default"], kb, formsURI, 'text/turtle'); // Load forms directly
262
266
 
263
267
  var inputStyle = 'background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%'; // font-size: 120%
264
268
  var buttonIconStyle = 'width: 1.8em; height: 1.8em;';
@@ -894,4 +898,5 @@ module.exports = {
894
898
  } // render
895
899
  }; // property list
896
900
  // ends
901
+ exports.schedulePane = schedulePane;
897
902
  //# sourceMappingURL=schedulePane.js.map