solid-panes 4.4.2-2 → 4.4.2-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/RDFXMLPane.d.ts +2 -3
- package/dist/RDFXMLPane2.cjs.js +3 -0
- package/dist/RDFXMLPane2.cjs.js.map +1 -0
- package/dist/RDFXMLPane2.esm.js +55 -0
- package/dist/RDFXMLPane2.esm.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -0
- package/dist/audio/audioPane.cjs.js +2 -0
- package/dist/audio/audioPane.cjs.js.map +1 -0
- package/dist/audio/audioPane.esm.js +96 -0
- package/dist/audio/audioPane.esm.js.map +1 -0
- package/dist/classInstancePane.cjs.js +2 -0
- package/dist/classInstancePane.cjs.js.map +1 -0
- package/dist/classInstancePane.esm.js +50 -0
- package/dist/classInstancePane.esm.js.map +1 -0
- package/dist/components/header/Header.d.ts +8 -0
- package/dist/components/header/Header.d.ts.map +1 -0
- package/dist/components/header/index.d.ts +4 -0
- package/dist/components/header/index.d.ts.map +1 -0
- package/dist/dashboard/basicPreferences.cjs.js +2 -0
- package/dist/dashboard/basicPreferences.cjs.js.map +1 -0
- package/dist/dashboard/basicPreferences.d.ts +1 -1
- package/dist/dashboard/basicPreferences.esm.js +70 -0
- package/dist/dashboard/basicPreferences.esm.js.map +1 -0
- package/dist/dashboard/dashboardPane.d.ts +1 -1
- package/dist/dashboard/homepage.d.ts +1 -1
- package/dist/dashboard/ontologyData.cjs.js +37 -0
- package/dist/dashboard/ontologyData.cjs.js.map +1 -0
- package/dist/dashboard/ontologyData.esm.js +6 -0
- package/dist/dashboard/ontologyData.esm.js.map +1 -0
- package/dist/dashboard/preferencesFormText.cjs.js +20 -0
- package/dist/dashboard/preferencesFormText.cjs.js.map +1 -0
- package/dist/dashboard/preferencesFormText.esm.js +6 -0
- package/dist/dashboard/preferencesFormText.esm.js.map +1 -0
- package/dist/dataContentPane.d.ts +2 -3
- package/dist/dataContentPane2.cjs.js +2 -0
- package/dist/dataContentPane2.cjs.js.map +1 -0
- package/dist/dataContentPane2.esm.js +109 -0
- package/dist/dataContentPane2.esm.js.map +1 -0
- package/dist/defaultPane.d.ts +2 -3
- package/dist/defaultPane2.cjs.js +2 -0
- package/dist/defaultPane2.cjs.js.map +1 -0
- package/dist/defaultPane2.esm.js +41 -0
- package/dist/defaultPane2.esm.js.map +1 -0
- package/dist/dev.d.ts +10 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/dokieli/dokieliPane.cjs.js +2 -0
- package/dist/dokieli/dokieliPane.cjs.js.map +1 -0
- package/dist/dokieli/dokieliPane.esm.js +39 -0
- package/dist/dokieli/dokieliPane.esm.js.map +1 -0
- package/dist/dokieli/{new.js → new.cjs.js} +4 -10
- package/dist/dokieli/new.cjs.js.map +1 -0
- package/dist/dokieli/new.esm.js +6 -0
- package/dist/dokieli/new.esm.js.map +1 -0
- package/dist/form/pane.cjs.js +4 -0
- package/dist/form/pane.cjs.js.map +1 -0
- package/dist/form/pane.d.ts +1 -2
- package/dist/form/pane.esm.js +121 -0
- package/dist/form/pane.esm.js.map +1 -0
- package/dist/home/homePane.cjs.js +2 -0
- package/dist/home/homePane.cjs.js.map +1 -0
- package/dist/home/homePane.d.ts +1 -1
- package/dist/home/homePane.esm.js +35 -0
- package/dist/home/homePane.esm.js.map +1 -0
- package/dist/humanReadablePane.d.ts +2 -3
- package/dist/humanReadablePane2.cjs.js +2 -0
- package/dist/humanReadablePane2.cjs.js.map +1 -0
- package/dist/humanReadablePane2.esm.js +123 -0
- package/dist/humanReadablePane2.esm.js.map +1 -0
- package/dist/icons/dashboard.cjs.js +2 -0
- package/dist/icons/dashboard.cjs.js.map +1 -0
- package/dist/icons/dashboard.esm.js +6 -0
- package/dist/icons/dashboard.esm.js.map +1 -0
- package/dist/icons/folder.cjs.js +2 -0
- package/dist/icons/folder.cjs.js.map +1 -0
- package/dist/icons/folder.esm.js +6 -0
- package/dist/icons/folder.esm.js.map +1 -0
- package/dist/icons/friends.cjs.js +2 -0
- package/dist/icons/friends.cjs.js.map +1 -0
- package/dist/icons/friends.esm.js +6 -0
- package/dist/icons/friends.esm.js.map +1 -0
- package/dist/icons/iconHelper.cjs.js +2 -0
- package/dist/icons/iconHelper.cjs.js.map +1 -0
- package/dist/icons/iconHelper.esm.js +17 -0
- package/dist/icons/iconHelper.esm.js.map +1 -0
- package/dist/icons/{menu.svg → menu.cjs.js} +3 -2
- package/dist/icons/menu.cjs.js.map +1 -0
- package/dist/icons/menu.esm.js +6 -0
- package/dist/icons/menu.esm.js.map +1 -0
- package/dist/icons/person.cjs.js +2 -0
- package/dist/icons/person.cjs.js.map +1 -0
- package/dist/icons/person.esm.js +6 -0
- package/dist/icons/person.esm.js.map +1 -0
- package/dist/imagePane.d.ts +2 -3
- package/dist/imagePane2.cjs.js +2 -0
- package/dist/imagePane2.cjs.js.map +1 -0
- package/dist/imagePane2.esm.js +32 -0
- package/dist/imagePane2.esm.js.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +26 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/internal/internalPane.d.ts +1 -2
- package/dist/internal/internalPane2.cjs.js +2 -0
- package/dist/internal/internalPane2.cjs.js.map +1 -0
- package/dist/internal/internalPane2.esm.js +104 -0
- package/dist/internal/internalPane2.esm.js.map +1 -0
- package/dist/mainPage/footer.cjs.js +2 -0
- package/dist/mainPage/footer.cjs.js.map +1 -0
- package/dist/mainPage/footer.d.ts +1 -3
- package/dist/mainPage/footer.esm.js +18 -0
- package/dist/mainPage/footer.esm.js.map +1 -0
- package/dist/mainPage/header.cjs.js +2 -0
- package/dist/mainPage/header.cjs.js.map +1 -0
- package/dist/mainPage/header.d.ts +1 -15
- package/dist/mainPage/header.d.ts.map +1 -1
- package/dist/mainPage/header.esm.js +24 -0
- package/dist/mainPage/header.esm.js.map +1 -0
- package/dist/mainPage/index.cjs.js +2 -0
- package/dist/mainPage/index.cjs.js.map +1 -0
- package/dist/mainPage/index.d.ts +3 -7
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.esm.js +38 -0
- package/dist/mainPage/index.esm.js.map +1 -0
- package/dist/mainPage/menu.d.ts +1 -2
- package/dist/mainPage/menu2.cjs.js +2 -0
- package/dist/mainPage/menu2.cjs.js.map +1 -0
- package/dist/mainPage/menu2.esm.js +184 -0
- package/dist/mainPage/menu2.esm.js.map +1 -0
- package/dist/n3Pane.d.ts +2 -3
- package/dist/n3Pane2.cjs.js +3 -0
- package/dist/n3Pane2.cjs.js.map +1 -0
- package/dist/n3Pane2.esm.js +52 -0
- package/dist/n3Pane2.esm.js.map +1 -0
- package/dist/outline/context.cjs.js +2 -0
- package/dist/outline/context.cjs.js.map +1 -0
- package/dist/outline/context.d.ts +3 -3
- package/dist/outline/context.esm.js +18 -0
- package/dist/outline/context.esm.js.map +1 -0
- package/dist/outline/manager2.cjs.js +3 -0
- package/dist/outline/manager2.cjs.js.map +1 -0
- package/dist/outline/manager2.esm.js +875 -0
- package/dist/outline/manager2.esm.js.map +1 -0
- package/dist/outline/outlineIcons.cjs.js +2 -0
- package/dist/outline/outlineIcons.cjs.js.map +1 -0
- package/dist/outline/outlineIcons.esm.js +10 -0
- package/dist/outline/outlineIcons.esm.js.map +1 -0
- package/dist/outline/propertyViews.cjs.js +2 -0
- package/dist/outline/propertyViews.cjs.js.map +1 -0
- package/dist/outline/propertyViews.esm.js +19 -0
- package/dist/outline/propertyViews.esm.js.map +1 -0
- package/dist/outline/queryByExample.cjs.js +2 -0
- package/dist/outline/queryByExample.cjs.js.map +1 -0
- package/dist/outline/queryByExample.esm.js +25 -0
- package/dist/outline/queryByExample.esm.js.map +1 -0
- package/dist/outline/userInput.cjs.js +61 -0
- package/dist/outline/userInput.cjs.js.map +1 -0
- package/dist/outline/userInput.esm.js +784 -0
- package/dist/outline/userInput.esm.js.map +1 -0
- package/dist/outline/viewAsImage.cjs.js +2 -0
- package/dist/outline/viewAsImage.cjs.js.map +1 -0
- package/dist/outline/viewAsImage.esm.js +10 -0
- package/dist/outline/viewAsImage.esm.js.map +1 -0
- package/dist/outline/viewAsMbox.cjs.js +2 -0
- package/dist/outline/viewAsMbox.cjs.js.map +1 -0
- package/dist/outline/viewAsMbox.esm.js +9 -0
- package/dist/outline/viewAsMbox.esm.js.map +1 -0
- package/dist/pad/padPane.d.ts +1 -2
- package/dist/pad/padPane2.cjs.js +2 -0
- package/dist/pad/padPane2.cjs.js.map +1 -0
- package/dist/pad/padPane2.esm.js +172 -0
- package/dist/pad/padPane2.esm.js.map +1 -0
- package/dist/playlist/playlistPane.cjs.js +2 -0
- package/dist/playlist/playlistPane.cjs.js.map +1 -0
- package/dist/playlist/playlistPane.esm.js +49 -0
- package/dist/playlist/playlistPane.esm.js.map +1 -0
- package/dist/profileUtils/ownerProfile.cjs.js +2 -0
- package/dist/profileUtils/ownerProfile.cjs.js.map +1 -0
- package/dist/profileUtils/ownerProfile.d.ts +1 -1
- package/dist/profileUtils/ownerProfile.esm.js +50 -0
- package/dist/profileUtils/ownerProfile.esm.js.map +1 -0
- package/dist/registerPanes.cjs.js +2 -0
- package/dist/registerPanes.cjs.js.map +1 -0
- package/dist/registerPanes.esm.js +45 -0
- package/dist/registerPanes.esm.js.map +1 -0
- package/dist/schedule/formsForSchedule.cjs.js +117 -0
- package/dist/schedule/formsForSchedule.cjs.js.map +1 -0
- package/dist/schedule/formsForSchedule.esm.js +6 -0
- package/dist/schedule/formsForSchedule.esm.js.map +1 -0
- package/dist/schedule/schedulePane.d.ts +2 -4
- package/dist/schedule/schedulePane2.cjs.js +8 -0
- package/dist/schedule/schedulePane2.cjs.js.map +1 -0
- package/dist/schedule/schedulePane2.esm.js +384 -0
- package/dist/schedule/schedulePane2.esm.js.map +1 -0
- package/dist/sharing/sharingPane.cjs.js +2 -0
- package/dist/sharing/sharingPane.cjs.js.map +1 -0
- package/dist/sharing/sharingPane.esm.js +22 -0
- package/dist/sharing/sharingPane.esm.js.map +1 -0
- package/dist/slideshow/slideshowPane.cjs.js +2 -0
- package/dist/slideshow/slideshowPane.cjs.js.map +1 -0
- package/dist/slideshow/slideshowPane.esm.js +46 -0
- package/dist/slideshow/slideshowPane.esm.js.map +1 -0
- package/dist/social/editProfileDetails.cjs.js +2 -0
- package/dist/social/editProfileDetails.cjs.js.map +1 -0
- package/dist/social/editProfileDetails.d.ts +1 -2
- package/dist/social/editProfileDetails.esm.js +10 -0
- package/dist/social/editProfileDetails.esm.js.map +1 -0
- package/dist/social/icons.cjs.js +82 -0
- package/dist/social/icons.cjs.js.map +1 -0
- package/dist/social/{icons.js → icons.esm.js} +12 -18
- package/dist/social/icons.esm.js.map +1 -0
- package/dist/social/socialPane.d.ts +2 -3
- package/dist/social/socialPane2.cjs.js +6 -0
- package/dist/social/socialPane2.cjs.js.map +1 -0
- package/dist/social/socialPane2.esm.js +326 -0
- package/dist/social/socialPane2.esm.js.map +1 -0
- package/dist/social/socialSections.cjs.js +2 -0
- package/dist/social/socialSections.cjs.js.map +1 -0
- package/dist/social/socialSections.d.ts +2 -2
- package/dist/social/socialSections.esm.js +221 -0
- package/dist/social/socialSections.esm.js.map +1 -0
- package/dist/social/triage.cjs.js +2 -0
- package/dist/social/triage.cjs.js.map +1 -0
- package/dist/social/triage.d.ts +2 -2
- package/dist/social/triage.esm.js +44 -0
- package/dist/social/triage.esm.js.map +1 -0
- package/dist/tabbed/tabbedPane.cjs.js +2 -0
- package/dist/tabbed/tabbedPane.cjs.js.map +1 -0
- package/dist/tabbed/tabbedPane.d.ts +1 -1
- package/dist/tabbed/tabbedPane.esm.js +38 -0
- package/dist/tabbed/tabbedPane.esm.js.map +1 -0
- package/dist/tableViewPane.cjs.js +2 -0
- package/dist/tableViewPane.cjs.js.map +1 -0
- package/dist/tableViewPane.esm.js +20 -0
- package/dist/tableViewPane.esm.js.map +1 -0
- package/dist/transaction/pane.cjs.js +8 -0
- package/dist/transaction/pane.cjs.js.map +1 -0
- package/dist/transaction/pane.esm.js +212 -0
- package/dist/transaction/pane.esm.js.map +1 -0
- package/dist/transaction/period.cjs.js +4 -0
- package/dist/transaction/period.cjs.js.map +1 -0
- package/dist/transaction/period.esm.js +126 -0
- package/dist/transaction/period.esm.js.map +1 -0
- package/dist/trip/tripPane.cjs.js +2 -0
- package/dist/trip/tripPane.cjs.js.map +1 -0
- package/dist/trip/tripPane.esm.js +85 -0
- package/dist/trip/tripPane.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.dom.esm.js +108 -0
- package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.utils.esm.js +20 -0
- package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.view.esm.js +41 -0
- package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -0
- package/dist/ui/pane.cjs.js +4 -0
- package/dist/ui/pane.cjs.js.map +1 -0
- package/dist/ui/pane.esm.js +56 -0
- package/dist/ui/pane.esm.js.map +1 -0
- package/dist/versionInfo.cjs.js +2 -0
- package/dist/versionInfo.cjs.js.map +1 -0
- package/dist/versionInfo.esm.js +40 -0
- package/dist/versionInfo.esm.js.map +1 -0
- package/dist/video/videoPane.cjs.js +2 -0
- package/dist/video/videoPane.cjs.js.map +1 -0
- package/dist/video/videoPane.esm.js +25 -0
- package/dist/video/videoPane.esm.js.map +1 -0
- package/package.json +35 -59
- package/dist/0314353e28ce6e5539af.svg +0 -9
- package/dist/04567ff683933c35c465.png +0 -0
- package/dist/10163fd9b5a0e00d63a0.png +0 -0
- package/dist/1234dcb2eec2e45f252b.png +0 -0
- package/dist/20899934157df4db56cb.png +0 -0
- package/dist/33760bf79f097f449da5.png +0 -0
- package/dist/4cceba29ab33b1ddd9bb.svg +0 -6
- package/dist/578d2b6ed32e7624164e.png +0 -0
- package/dist/5f62a5b2b7e99b9640c7.png +0 -0
- package/dist/6525766ecd288ec60129.png +0 -0
- package/dist/7800be6f6c4b5b0f4f20.png +0 -0
- package/dist/7b7538c6f6b317968009.svg +0 -9
- package/dist/92d03142abe6efc0b42d.svg +0 -6
- package/dist/976473cf5fe24d657d4b.png +0 -0
- package/dist/RDFXMLPane.css +0 -70
- package/dist/RDFXMLPane.js +0 -100
- package/dist/argument/argumentPane.js +0 -60
- package/dist/attach/attachPane.js +0 -393
- package/dist/audio/audioPane.js +0 -181
- package/dist/bda84f59e7216675a208.png +0 -0
- package/dist/cd68e8f3990ba8b2139e.png +0 -0
- package/dist/classInstancePane.js +0 -91
- package/dist/dashboard/basicPreferences.js +0 -147
- package/dist/dashboard/dashboardPane.js +0 -73
- package/dist/dashboard/homepage.js +0 -42
- package/dist/dataContentPane.css +0 -271
- package/dist/dataContentPane.js +0 -226
- package/dist/defaultPane.css +0 -97
- package/dist/defaultPane.js +0 -81
- package/dist/dokieli/dokieliPane.js +0 -74
- package/dist/e7074a7e2cb69e51cfd3.png +0 -0
- package/dist/f3772696fb7ee53c23d8.png +0 -0
- package/dist/form/formPane.css +0 -120
- package/dist/form/pane.js +0 -250
- package/dist/home/homePane.js +0 -74
- package/dist/humanReadablePane.css +0 -129
- package/dist/humanReadablePane.js +0 -243
- package/dist/icons/clock.svg +0 -7
- package/dist/icons/comment.svg +0 -6
- package/dist/icons/dashboard.svg +0 -9
- package/dist/icons/downArrow.svg +0 -6
- package/dist/icons/folder.svg +0 -6
- package/dist/icons/friends.svg +0 -9
- package/dist/icons/help.svg +0 -8
- package/dist/icons/iconHelper.js +0 -23
- package/dist/icons/person.svg +0 -6
- package/dist/icons/personInCircle.svg +0 -8
- package/dist/icons/sharing.svg +0 -10
- package/dist/icons/signOut.svg +0 -8
- package/dist/icons/signUp.svg +0 -9
- package/dist/icons/star.svg +0 -3
- package/dist/imagePane.css +0 -4
- package/dist/imagePane.js +0 -67
- package/dist/index.js +0 -123
- package/dist/internal/internalPane.css +0 -14
- package/dist/internal/internalPane.js +0 -183
- package/dist/mainPage/footer.js +0 -29
- package/dist/mainPage/header.js +0 -203
- package/dist/mainPage/index.js +0 -78
- package/dist/mainPage/menu.css +0 -243
- package/dist/mainPage/menu.js +0 -449
- package/dist/microblogPane/mbStyle.css +0 -267
- package/dist/microblogPane/microblogPane.js +0 -1031
- package/dist/n3Pane.css +0 -49
- package/dist/n3Pane.js +0 -88
- package/dist/outline/context.js +0 -21
- package/dist/outline/manager.css +0 -78
- package/dist/outline/manager.js +0 -2115
- package/dist/outline/outlineIcons.js +0 -126
- package/dist/outline/propertyViews.js +0 -43
- package/dist/outline/queryByExample.js +0 -285
- package/dist/outline/userInput.js +0 -1821
- package/dist/outline/viewAsImage.js +0 -14
- package/dist/outline/viewAsMbox.js +0 -21
- package/dist/pad/padPane.css +0 -40
- package/dist/pad/padPane.js +0 -421
- package/dist/playlist/playlistPane.js +0 -119
- package/dist/profileUtils/ownerProfile.js +0 -84
- package/dist/registerPanes.js +0 -145
- package/dist/schedule/schedulePane.css +0 -294
- package/dist/schedule/schedulePane.js +0 -1022
- package/dist/sharing/sharingPane.js +0 -48
- package/dist/slideshow/slideshowPane.js +0 -79
- package/dist/social/editProfileDetails.js +0 -362
- package/dist/social/socialPane.css +0 -1464
- package/dist/social/socialPane.js +0 -651
- package/dist/social/socialSections.js +0 -393
- package/dist/social/spinner.js +0 -13
- package/dist/social/triage.js +0 -79
- package/dist/solid-panes.js +0 -87502
- package/dist/solid-panes.js.map +0 -1
- package/dist/solid-panes.min.js +0 -3811
- package/dist/solid-panes.min.js.map +0 -1
- package/dist/styles/tabbedtab.css +0 -1066
- package/dist/styles/utilities.css +0 -5
- package/dist/tabbed/tabbedPane.js +0 -59
- package/dist/tableViewPane.js +0 -56
- package/dist/transaction/pane.js +0 -477
- package/dist/transaction/period.js +0 -323
- package/dist/trip/tripPane.js +0 -174
- package/dist/trustedApplications/trustedApplications.dom.js +0 -145
- package/dist/trustedApplications/trustedApplications.utils.js +0 -23
- package/dist/trustedApplications/trustedApplications.view.js +0 -55
- package/dist/ui/pane.js +0 -146
- package/dist/versionInfo.js +0 -41
- package/dist/video/videoPane.js +0 -42
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videoPane.cjs.js","names":["UI","$rdf"],"sources":["../../src/video/videoPane.js"],"sourcesContent":["/* Single video play Pane\n **\n */\nimport * as UI from 'solid-ui'\nimport * as $rdf from 'rdflib'\n\nexport default {\n icon: UI.icons.iconBase + 'noun_1619.svg',\n\n name: 'video',\n\n // Does the subject deserve an slideshow pane?\n label: function (subject, context) {\n const kb = context.session.store\n const typeURIs = kb.findTypeURIs(subject)\n const prefix = $rdf.Util.mediaTypeClass('video/*').uri.split('*')[0]\n for (const t in typeURIs) {\n if (t.startsWith(prefix)) return 'Play video'\n }\n\n return null\n },\n\n render: function (subject, context) {\n const kb = context.session.store\n const dom = context.dom\n const div = dom.createElement('div')\n const video = div.appendChild(dom.createElement('video'))\n video.setAttribute('controls', 'yes')\n // get video with authenticated fetch\n kb.fetcher._fetch(subject.uri)\n .then(function (response) {\n return response.blob()\n })\n .then(function (myBlob) {\n const objectURL = URL.createObjectURL(myBlob)\n video.setAttribute('src', objectURL) // w640 h480 //\n })\n\n video.setAttribute('width', '100%')\n return div\n }\n}\n// ends\n"],"mappings":"wIAMA,IAAA,EAAe,CACb,KAAMA,EAAG,MAAM,SAAW,gBAE1B,KAAM,QAGN,MAAO,SAAU,EAAS,EAAS,CAEjC,IAAM,EADK,EAAQ,QAAQ,MACP,aAAa,CAAO,EAClC,EAASC,EAAK,KAAK,eAAe,SAAS,CAAC,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,GAClE,IAAK,IAAM,KAAK,EACd,GAAI,EAAE,WAAW,CAAM,EAAG,MAAO,aAGnC,OAAO,IACT,EAEA,OAAQ,SAAU,EAAS,EAAS,CAClC,IAAM,EAAK,EAAQ,QAAQ,MACrB,EAAM,EAAQ,IACd,EAAM,EAAI,cAAc,KAAK,EAC7B,EAAQ,EAAI,YAAY,EAAI,cAAc,OAAO,CAAC,EAaxD,OAZA,EAAM,aAAa,WAAY,KAAK,EAEpC,EAAG,QAAQ,OAAO,EAAQ,GAAG,CAAC,CAC3B,KAAK,SAAU,EAAU,CACxB,OAAO,EAAS,KAAK,CACvB,CAAC,CAAC,CACD,KAAK,SAAU,EAAQ,CACtB,IAAM,EAAY,IAAI,gBAAgB,CAAM,EAC5C,EAAM,aAAa,MAAO,CAAS,CACrC,CAAC,EAEH,EAAM,aAAa,QAAS,MAAM,EAC3B,CACT,CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as e from "solid-ui";
|
|
2
|
+
import * as t from "rdflib";
|
|
3
|
+
//#region src/video/videoPane.js
|
|
4
|
+
var n = {
|
|
5
|
+
icon: e.icons.iconBase + "noun_1619.svg",
|
|
6
|
+
name: "video",
|
|
7
|
+
label: function(e, n) {
|
|
8
|
+
let r = n.session.store.findTypeURIs(e), i = t.Util.mediaTypeClass("video/*").uri.split("*")[0];
|
|
9
|
+
for (let e in r) if (e.startsWith(i)) return "Play video";
|
|
10
|
+
return null;
|
|
11
|
+
},
|
|
12
|
+
render: function(e, t) {
|
|
13
|
+
let n = t.session.store, r = t.dom, i = r.createElement("div"), a = i.appendChild(r.createElement("video"));
|
|
14
|
+
return a.setAttribute("controls", "yes"), n.fetcher._fetch(e.uri).then(function(e) {
|
|
15
|
+
return e.blob();
|
|
16
|
+
}).then(function(e) {
|
|
17
|
+
let t = URL.createObjectURL(e);
|
|
18
|
+
a.setAttribute("src", t);
|
|
19
|
+
}), a.setAttribute("width", "100%"), i;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { n as default };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=videoPane.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videoPane.esm.js","names":[],"sources":["../../src/video/videoPane.js"],"sourcesContent":["/* Single video play Pane\n **\n */\nimport * as UI from 'solid-ui'\nimport * as $rdf from 'rdflib'\n\nexport default {\n icon: UI.icons.iconBase + 'noun_1619.svg',\n\n name: 'video',\n\n // Does the subject deserve an slideshow pane?\n label: function (subject, context) {\n const kb = context.session.store\n const typeURIs = kb.findTypeURIs(subject)\n const prefix = $rdf.Util.mediaTypeClass('video/*').uri.split('*')[0]\n for (const t in typeURIs) {\n if (t.startsWith(prefix)) return 'Play video'\n }\n\n return null\n },\n\n render: function (subject, context) {\n const kb = context.session.store\n const dom = context.dom\n const div = dom.createElement('div')\n const video = div.appendChild(dom.createElement('video'))\n video.setAttribute('controls', 'yes')\n // get video with authenticated fetch\n kb.fetcher._fetch(subject.uri)\n .then(function (response) {\n return response.blob()\n })\n .then(function (myBlob) {\n const objectURL = URL.createObjectURL(myBlob)\n video.setAttribute('src', objectURL) // w640 h480 //\n })\n\n video.setAttribute('width', '100%')\n return div\n }\n}\n// ends\n"],"mappings":";;;AAMA,IAAA,IAAe;CACb,MAAM,EAAG,MAAM,WAAW;CAE1B,MAAM;CAGN,OAAO,SAAU,GAAS,GAAS;EAEjC,IAAM,IADK,EAAQ,QAAQ,MACP,aAAa,CAAO,GAClC,IAAS,EAAK,KAAK,eAAe,SAAS,CAAC,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;EAClE,KAAK,IAAM,KAAK,GACd,IAAI,EAAE,WAAW,CAAM,GAAG,OAAO;EAGnC,OAAO;CACT;CAEA,QAAQ,SAAU,GAAS,GAAS;EAClC,IAAM,IAAK,EAAQ,QAAQ,OACrB,IAAM,EAAQ,KACd,IAAM,EAAI,cAAc,KAAK,GAC7B,IAAQ,EAAI,YAAY,EAAI,cAAc,OAAO,CAAC;EAaxD,OAZA,EAAM,aAAa,YAAY,KAAK,GAEpC,EAAG,QAAQ,OAAO,EAAQ,GAAG,CAAC,CAC3B,KAAK,SAAU,GAAU;GACxB,OAAO,EAAS,KAAK;EACvB,CAAC,CAAC,CACD,KAAK,SAAU,GAAQ;GACtB,IAAM,IAAY,IAAI,gBAAgB,CAAM;GAC5C,EAAM,aAAa,OAAO,CAAS;EACrC,CAAC,GAEH,EAAM,aAAa,SAAS,MAAM,GAC3B;CACT;AACF"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-panes",
|
|
3
|
-
"version": "4.4.2-
|
|
3
|
+
"version": "4.4.2-3",
|
|
4
4
|
"description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
|
|
5
|
-
"main": "dist/index.js",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.esm.js",
|
|
11
|
+
"require": "./dist/index.cjs.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"sideEffects": [
|
|
8
15
|
"*.css"
|
|
9
16
|
],
|
|
@@ -14,26 +21,19 @@
|
|
|
14
21
|
],
|
|
15
22
|
"scripts": {
|
|
16
23
|
"clean": "rm -rf dist src/versionInfo.ts",
|
|
17
|
-
"build": "npm run clean && npm run build-version && npm run typecheck &&
|
|
24
|
+
"build": "npm run clean && npm run build-version && npm run typecheck && vite build && npm run postbuild",
|
|
18
25
|
"build-version": "bash timestamp.sh > src/versionInfo.ts && ./node_modules/.bin/eslint 'src/versionInfo.ts' --fix",
|
|
19
|
-
"
|
|
20
|
-
"build-js": "babel src --out-dir dist --extensions '.ts,.js' && tsc --emitDeclarationOnly",
|
|
21
|
-
"postbuild-js": "rm -f dist/versionInfo.d.ts dist/versionInfo.d.ts.map",
|
|
26
|
+
"postbuild": "rm -f dist/versionInfo.d.ts dist/versionInfo.d.ts.map",
|
|
22
27
|
"lint": "eslint",
|
|
23
28
|
"lint-fix": "eslint --fix",
|
|
24
29
|
"typecheck": "tsc --noEmit",
|
|
25
|
-
"watch-js": "babel src --out-dir dist --source-maps --extensions '.ts,.js' --watch",
|
|
26
|
-
"watch-dist": "webpack --watch",
|
|
27
|
-
"watch-types": "tsc --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
28
30
|
"typecheck-test": "tsc --noEmit -p tsconfig.test.json",
|
|
29
|
-
"test": "
|
|
30
|
-
"test-
|
|
31
|
-
"test-coverage": "jest --coverage --collectCoverageFrom=src/**/*.[jt]s",
|
|
32
|
-
"test-debug": "node --inspect-brk ./node_modules/.bin/jest -i --env jest-environment-node-debug",
|
|
31
|
+
"test": "npm run typecheck-test && vitest run",
|
|
32
|
+
"test-coverage": "vitest run --coverage",
|
|
33
33
|
"ignore:prepublishOnly": "npm run build && npm run lint && npm test",
|
|
34
34
|
"preversion": "npm run lint && npm run typecheck && npm test",
|
|
35
|
-
"watch": "npm run build-version &&
|
|
36
|
-
"start": "
|
|
35
|
+
"watch": "npm run build-version && vite build --watch",
|
|
36
|
+
"start": "npm run build-version && vite"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
@@ -60,22 +60,23 @@
|
|
|
60
60
|
"homepage": "https://github.com/SolidOS/solid-panes",
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@solid/better-simple-slideshow": "^0.1.0",
|
|
63
|
-
"activitystreams-pane": "
|
|
64
|
-
"chat-pane": "
|
|
65
|
-
"contacts-pane": "
|
|
63
|
+
"activitystreams-pane": "1.0.3-3",
|
|
64
|
+
"chat-pane": "3.0.4-1",
|
|
65
|
+
"contacts-pane": "3.2.1-5",
|
|
66
66
|
"dompurify": "^3.4.4",
|
|
67
|
-
"folder-pane": "
|
|
68
|
-
"issue-pane": "
|
|
67
|
+
"folder-pane": "3.1.1-1",
|
|
68
|
+
"issue-pane": "3.0.3-1",
|
|
69
69
|
"lit-html": "^3.3.2",
|
|
70
70
|
"marked": "^18.0.3",
|
|
71
|
-
"meeting-pane": "
|
|
71
|
+
"meeting-pane": "3.0.3-1",
|
|
72
72
|
"mime-types": "^3.0.2",
|
|
73
|
-
"pane-registry": "
|
|
74
|
-
"
|
|
75
|
-
"
|
|
73
|
+
"pane-registry": "3.1.2-1",
|
|
74
|
+
"profile-pane": "3.2.3-1",
|
|
75
|
+
"rdflib": "2.4.0",
|
|
76
|
+
"solid-logic": "4.0.8-1",
|
|
76
77
|
"solid-namespace": "^0.5.4",
|
|
77
|
-
"solid-ui": "
|
|
78
|
-
"source-pane": "
|
|
78
|
+
"solid-ui": "3.1.3-8",
|
|
79
|
+
"source-pane": "3.1.1-1"
|
|
79
80
|
},
|
|
80
81
|
"overrides": {
|
|
81
82
|
"rdflib": "$rdflib",
|
|
@@ -84,46 +85,21 @@
|
|
|
84
85
|
"pane-registry": "$pane-registry"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
|
-
"@
|
|
88
|
-
"@babel/core": "^7.29.0",
|
|
89
|
-
"@babel/preset-env": "^7.29.5",
|
|
90
|
-
"@babel/preset-typescript": "^7.28.5",
|
|
88
|
+
"@iconify/json": "2.2.494",
|
|
91
89
|
"@testing-library/dom": "^10.4.1",
|
|
92
90
|
"@testing-library/jest-dom": "^6.9.1",
|
|
93
|
-
"@types/
|
|
94
|
-
"@types/webpack-env": "^1.18.8",
|
|
91
|
+
"@types/node": "^22.20.0",
|
|
95
92
|
"@typescript-eslint/parser": "^8.59.3",
|
|
96
|
-
"@
|
|
97
|
-
"babel-jest": "^30.4.1",
|
|
98
|
-
"babel-loader": "^10.1.1",
|
|
99
|
-
"babel-plugin-inline-import": "^3.0.0",
|
|
100
|
-
"babel-plugin-transform-import-meta": "^2.3.3",
|
|
101
|
-
"buffer": "^6.0.3",
|
|
102
|
-
"concurrently": "^9.2.1",
|
|
103
|
-
"copy-webpack-plugin": "^14.0.0",
|
|
104
|
-
"css-loader": "^7.1.4",
|
|
93
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
105
94
|
"eslint": "^9.39.4",
|
|
106
95
|
"globals": "^17.6.0",
|
|
107
|
-
"
|
|
108
|
-
"jest": "^30.4.2",
|
|
109
|
-
"jest-environment-jsdom": "^30.4.1",
|
|
110
|
-
"jest-fetch-mock": "^3.0.3",
|
|
96
|
+
"jsdom": "^28.1.0",
|
|
111
97
|
"neostandard": "^0.13.0",
|
|
112
|
-
"
|
|
113
|
-
"path-browserify": "^1.0.1",
|
|
114
|
-
"raw-loader": "^4.0.2",
|
|
115
|
-
"rdflib": "^2.3.9",
|
|
116
|
-
"react": "^19.2.6",
|
|
117
|
-
"react-dom": "^19.2.6",
|
|
118
|
-
"solid-logic": "^4.0.8-0",
|
|
119
|
-
"style-loader": "^4.0.0",
|
|
120
|
-
"terser-webpack-plugin": "^5.6.0",
|
|
121
|
-
"ts-jest": "^29.4.9",
|
|
122
|
-
"ts-loader": "^9.5.7",
|
|
98
|
+
"solidos-toolkit": "dev",
|
|
123
99
|
"typescript": "^6.0.3",
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
100
|
+
"unplugin-icons": "^23.0.1",
|
|
101
|
+
"vite": "^8.0.16",
|
|
102
|
+
"vitest": "^4.0.18"
|
|
127
103
|
},
|
|
128
104
|
"solidosDependencies": [
|
|
129
105
|
"rdflib",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
viewBox="0 0 20 20"
|
|
3
|
-
fill="none"
|
|
4
|
-
>
|
|
5
|
-
<path d="M13.3327 17.5V15.8333C13.3327 14.9493 12.9815 14.1014 12.3564 13.4763C11.7313 12.8512 10.8834 12.5 9.99935 12.5H4.99935C4.11529 12.5 3.26745 12.8512 2.64233 13.4763C2.01721 14.1014 1.66602 14.9493 1.66602 15.8333V17.5" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
-
<path d="M13.334 2.60669C14.0488 2.792 14.6818 3.20941 15.1337 3.79341C15.5856 4.37741 15.8308 5.09493 15.8308 5.83336C15.8308 6.57178 15.5856 7.28931 15.1337 7.8733C14.6818 8.4573 14.0488 8.87471 13.334 9.06002" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
-
<path d="M18.334 17.5001V15.8334C18.3334 15.0948 18.0876 14.3774 17.6351 13.7937C17.1826 13.2099 16.5491 12.793 15.834 12.6084" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
-
<path d="M7.49935 9.16667C9.3403 9.16667 10.8327 7.67428 10.8327 5.83333C10.8327 3.99238 9.3403 2.5 7.49935 2.5C5.6584 2.5 4.16602 3.99238 4.16602 5.83333C4.16602 7.67428 5.6584 9.16667 7.49935 9.16667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
viewBox="0 0 16 16"
|
|
3
|
-
fill="none"
|
|
4
|
-
>
|
|
5
|
-
<path d="M13.334 13.3333C13.6876 13.3333 14.0267 13.1929 14.2768 12.9428C14.5268 12.6928 14.6673 12.3536 14.6673 12V5.33333C14.6673 4.97971 14.5268 4.64057 14.2768 4.39052C14.0267 4.14048 13.6876 4 13.334 4H8.06732C7.84433 4.00219 7.62435 3.94841 7.42752 3.84359C7.23069 3.73877 7.06329 3.58625 6.94065 3.4L6.40065 2.6C6.27924 2.41565 6.11397 2.26432 5.91965 2.1596C5.72533 2.05488 5.50806 2.00004 5.28732 2H2.66732C2.3137 2 1.97456 2.14048 1.72451 2.39052C1.47446 2.64057 1.33398 2.97971 1.33398 3.33333V12C1.33398 12.3536 1.47446 12.6928 1.72451 12.9428C1.97456 13.1929 2.3137 13.3333 2.66732 13.3333H13.334Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
viewBox="0 0 20 20"
|
|
3
|
-
fill="none"
|
|
4
|
-
>
|
|
5
|
-
<path d="M7.5 2.5H3.33333C2.8731 2.5 2.5 2.8731 2.5 3.33333V9.16667C2.5 9.6269 2.8731 10 3.33333 10H7.5C7.96024 10 8.33333 9.6269 8.33333 9.16667V3.33333C8.33333 2.8731 7.96024 2.5 7.5 2.5Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
-
<path d="M16.666 2.5H12.4993C12.0391 2.5 11.666 2.8731 11.666 3.33333V5.83333C11.666 6.29357 12.0391 6.66667 12.4993 6.66667H16.666C17.1263 6.66667 17.4993 6.29357 17.4993 5.83333V3.33333C17.4993 2.8731 17.1263 2.5 16.666 2.5Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
-
<path d="M16.666 10H12.4993C12.0391 10 11.666 10.3731 11.666 10.8333V16.6667C11.666 17.1269 12.0391 17.5 12.4993 17.5H16.666C17.1263 17.5 17.4993 17.1269 17.4993 16.6667V10.8333C17.4993 10.3731 17.1263 10 16.666 10Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
-
<path d="M7.5 13.3333H3.33333C2.8731 13.3333 2.5 13.7063 2.5 14.1666V16.6666C2.5 17.1268 2.8731 17.4999 3.33333 17.4999H7.5C7.96024 17.4999 8.33333 17.1268 8.33333 16.6666V14.1666C8.33333 13.7063 7.96024 13.3333 7.5 13.3333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
viewBox="0 0 20 20"
|
|
3
|
-
fill="none"
|
|
4
|
-
>
|
|
5
|
-
<path d="M13.0151 9.27363C14.2948 8.34031 15.1282 6.82984 15.1282 5.1282C15.1282 2.30051 12.8277 0 9.99998 0C7.17228 0 4.87177 2.30051 4.87177 5.1282C4.87177 6.82984 5.70509 8.34031 6.98486 9.27363C3.80361 10.491 1.53845 13.5754 1.53845 17.1795C1.53845 18.7347 2.80373 20 4.35896 20H15.641C17.1962 20 18.4615 18.7347 18.4615 17.1795C18.4615 13.5754 16.1963 10.491 13.0151 9.27363ZM6.41025 5.1282C6.41025 3.14883 8.0206 1.53848 9.99998 1.53848C11.9794 1.53848 13.5897 3.14883 13.5897 5.1282C13.5897 7.10758 11.9794 8.71797 9.99998 8.71797C8.0206 8.71797 6.41025 7.10758 6.41025 5.1282ZM15.641 18.4615H4.35896C3.65205 18.4615 3.07693 17.8864 3.07693 17.1795C3.07693 13.362 6.18255 10.2564 10 10.2564C13.8175 10.2564 16.9231 13.362 16.9231 17.1795C16.9231 17.8864 16.3479 18.4615 15.641 18.4615Z" fill="currentColor"/>
|
|
6
|
-
</svg>
|
|
Binary file
|
package/dist/RDFXMLPane.css
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
.rdfxml-pane {
|
|
2
|
-
padding: 1rem;
|
|
3
|
-
border-top: solid 2px var(--color-data-pane-border-top, black);
|
|
4
|
-
border-left: solid 2px var(--color-data-pane-border-top, black);
|
|
5
|
-
border-bottom: solid 2px var(--color-data-pane-border-side, #777);
|
|
6
|
-
border-right: solid 2px var(--color-data-pane-border-side, #777);
|
|
7
|
-
color: var(--color-text-brown, #440);
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.rdfxml-pane__source {
|
|
12
|
-
overflow-x: auto;
|
|
13
|
-
max-width: 100%;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
font-family: monospace;
|
|
16
|
-
font-size: 120%;
|
|
17
|
-
margin: 0;
|
|
18
|
-
white-space: pre;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.rdfxml-pane__line {
|
|
22
|
-
display: grid;
|
|
23
|
-
grid-template-columns: var(--rdfxml-indent, 0) minmax(max-content, auto);
|
|
24
|
-
align-items: start;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.rdfxml-pane__line-indent {
|
|
28
|
-
display: block;
|
|
29
|
-
width: var(--rdfxml-indent, 0);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.rdfxml-pane__line-content {
|
|
33
|
-
white-space: pre;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.rdfxml-pane[data-layout='mobile'] .rdfxml-pane__source {
|
|
37
|
-
overflow-wrap: anywhere;
|
|
38
|
-
word-break: break-word;
|
|
39
|
-
white-space: normal;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.rdfxml-pane[data-layout='mobile'] .rdfxml-pane__line {
|
|
43
|
-
grid-template-columns: var(--rdfxml-indent, 0) minmax(0, 1fr);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.rdfxml-pane[data-layout='mobile'] .rdfxml-pane__line-content {
|
|
47
|
-
white-space: pre-wrap;
|
|
48
|
-
overflow-wrap: anywhere;
|
|
49
|
-
word-break: break-word;
|
|
50
|
-
min-width: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@media (max-width: 576px) {
|
|
54
|
-
.rdfxml-pane__source {
|
|
55
|
-
overflow-wrap: anywhere;
|
|
56
|
-
word-break: break-word;
|
|
57
|
-
white-space: normal;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.rdfxml-pane__line {
|
|
61
|
-
grid-template-columns: var(--rdfxml-indent, 0) minmax(0, 1fr);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.rdfxml-pane__line-content {
|
|
65
|
-
white-space: pre-wrap;
|
|
66
|
-
overflow-wrap: anywhere;
|
|
67
|
-
word-break: break-word;
|
|
68
|
-
min-width: 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
package/dist/RDFXMLPane.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.RDFXMLPane = void 0;
|
|
7
|
-
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
-
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
|
-
require("./RDFXMLPane.css");
|
|
10
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
-
/* RDF/XML content Pane
|
|
12
|
-
**
|
|
13
|
-
** This pane shows the content of a particular RDF resource
|
|
14
|
-
** or at least the RDF semantics we attribute to that resource,
|
|
15
|
-
** in generated N3 syntax.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
const ns = UI.ns;
|
|
19
|
-
function leadingIndentWidth(line) {
|
|
20
|
-
if (line.trim().length === 0) {
|
|
21
|
-
return 0;
|
|
22
|
-
}
|
|
23
|
-
let width = 0;
|
|
24
|
-
for (const character of line) {
|
|
25
|
-
if (character === ' ') {
|
|
26
|
-
width += 1;
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
if (character === '\t') {
|
|
30
|
-
width += 2;
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
return Math.max(width, 2);
|
|
36
|
-
}
|
|
37
|
-
function trimLeadingIndent(line) {
|
|
38
|
-
return line.replace(/^[ \t]+/, '');
|
|
39
|
-
}
|
|
40
|
-
const RDFXMLPane = exports.RDFXMLPane = {
|
|
41
|
-
icon: UI.icons.originalIconBase + '22-text-xml4.png',
|
|
42
|
-
name: 'RDFXML',
|
|
43
|
-
audience: [ns.solid('Developer')],
|
|
44
|
-
label: function (subject, context) {
|
|
45
|
-
const store = context.session.store;
|
|
46
|
-
if ('http://www.w3.org/2007/ont/link#ProtocolEvent' in store.findTypeURIs(subject)) {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
const n = store.statementsMatching(undefined, undefined, undefined, subject).length;
|
|
50
|
-
if (n === 0) return null;
|
|
51
|
-
return 'As RDF/XML (' + n + ')';
|
|
52
|
-
},
|
|
53
|
-
render: function (subject, context) {
|
|
54
|
-
const myDocument = context.dom;
|
|
55
|
-
const kb = context.session.store;
|
|
56
|
-
function applyEnvironmentAttributes(element) {
|
|
57
|
-
const environment = context.environment ?? {};
|
|
58
|
-
element.dataset.layout = environment.layout ?? 'desktop';
|
|
59
|
-
}
|
|
60
|
-
const div = myDocument.createElement('div');
|
|
61
|
-
div.setAttribute('class', 'rdfxml-pane');
|
|
62
|
-
applyEnvironmentAttributes(div);
|
|
63
|
-
// Because of smushing etc, this will not be a copy of the original source
|
|
64
|
-
// We could instead either fetch and re-parse the source,
|
|
65
|
-
// or we could keep all the pre-smushed triples.
|
|
66
|
-
const sts = kb.statementsMatching(undefined, undefined, undefined, subject); // @@ slow with current store!
|
|
67
|
-
/*
|
|
68
|
-
var kludge = kb.formula([]) // No features
|
|
69
|
-
for (var i=0; i< sts.length; i++) {
|
|
70
|
-
s = sts[i]
|
|
71
|
-
kludge.add(s.subject, s.predicate, s.object)
|
|
72
|
-
}
|
|
73
|
-
*/
|
|
74
|
-
const sz = $rdf.Serializer(kb);
|
|
75
|
-
sz.suggestNamespaces(kb.namespaces);
|
|
76
|
-
sz.setBase(subject.uri);
|
|
77
|
-
const str = sz.statementsToXML(sts);
|
|
78
|
-
const source = myDocument.createElement('div');
|
|
79
|
-
source.classList.add('rdfxml-pane__source');
|
|
80
|
-
str.split('\n').forEach(line => {
|
|
81
|
-
const lineElement = myDocument.createElement('div');
|
|
82
|
-
const indentElement = myDocument.createElement('span');
|
|
83
|
-
const contentElement = myDocument.createElement('span');
|
|
84
|
-
const indentWidth = leadingIndentWidth(line);
|
|
85
|
-
lineElement.classList.add('rdfxml-pane__line');
|
|
86
|
-
lineElement.style.setProperty('--rdfxml-indent', `${indentWidth}ch`);
|
|
87
|
-
indentElement.classList.add('rdfxml-pane__line-indent');
|
|
88
|
-
indentElement.setAttribute('aria-hidden', 'true');
|
|
89
|
-
contentElement.classList.add('rdfxml-pane__line-content');
|
|
90
|
-
contentElement.textContent = line.length > 0 ? trimLeadingIndent(line) : ' ';
|
|
91
|
-
lineElement.appendChild(indentElement);
|
|
92
|
-
lineElement.appendChild(contentElement);
|
|
93
|
-
source.appendChild(lineElement);
|
|
94
|
-
});
|
|
95
|
-
div.appendChild(source);
|
|
96
|
-
return div;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// ends
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _solidLogic = require("solid-logic");
|
|
8
|
-
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
9
|
-
var panes = _interopRequireWildcard(require("pane-registry"));
|
|
10
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
-
/* View argument Pane
|
|
12
|
-
**
|
|
13
|
-
** This pane shows a position and optionally the positions which
|
|
14
|
-
** support or oppose it.
|
|
15
|
-
** @@ Unfinsihed.
|
|
16
|
-
** Should allow editing the data too
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
// console.log('@@@ argument pane icon at ' + (module.__dirname || __dirname) + '/icon_argument.png')
|
|
20
|
-
var _default = exports.default = {
|
|
21
|
-
icon: (module.__dirname || __dirname) + '/icon_argument.png',
|
|
22
|
-
// @@ fix fro mashlib version
|
|
23
|
-
|
|
24
|
-
name: 'argument',
|
|
25
|
-
label: function (subject) {
|
|
26
|
-
const kb = _solidLogic.store;
|
|
27
|
-
const t = kb.findTypeURIs(subject);
|
|
28
|
-
if (t[UI.ns.arg('Position').uri]) return 'Argument';
|
|
29
|
-
return null;
|
|
30
|
-
},
|
|
31
|
-
// View the data in a file in user-friendly way
|
|
32
|
-
render: function (subject, dom) {
|
|
33
|
-
const outliner = panes.getOutliner(dom);
|
|
34
|
-
const kb = _solidLogic.store;
|
|
35
|
-
const arg = UI.ns.arg;
|
|
36
|
-
subject = kb.canon(subject);
|
|
37
|
-
// var types = kb.findTypeURIs(subject)
|
|
38
|
-
|
|
39
|
-
const div = dom.createElement('div');
|
|
40
|
-
div.setAttribute('class', 'argumentPane');
|
|
41
|
-
|
|
42
|
-
// var title = kb.any(subject, UI.ns.dc('title'))
|
|
43
|
-
|
|
44
|
-
const comment = kb.any(subject, UI.ns.rdfs('comment'));
|
|
45
|
-
if (comment) {
|
|
46
|
-
const para = dom.createElement('p');
|
|
47
|
-
para.setAttribute('style', 'margin-left: 2em; font-style: italic;');
|
|
48
|
-
div.appendChild(para);
|
|
49
|
-
para.textContent = comment.value;
|
|
50
|
-
}
|
|
51
|
-
div.appendChild(dom.createElement('hr'));
|
|
52
|
-
let plist = kb.statementsMatching(subject, arg('support'));
|
|
53
|
-
outliner.appendPropertyTRs(div, plist, false);
|
|
54
|
-
div.appendChild(dom.createElement('hr'));
|
|
55
|
-
plist = kb.statementsMatching(subject, arg('opposition'));
|
|
56
|
-
outliner.appendPropertyTRs(div, plist, false);
|
|
57
|
-
div.appendChild(dom.createElement('hr'));
|
|
58
|
-
return div;
|
|
59
|
-
}
|
|
60
|
-
}; // ends
|