solid-panes 4.4.2-7 → 4.5.0
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 +40 -10
- package/dist/0314353e28ce6e5539af.svg +9 -0
- 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 +6 -0
- 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 +9 -0
- package/dist/92d03142abe6efc0b42d.svg +6 -0
- package/dist/976473cf5fe24d657d4b.png +0 -0
- package/dist/RDFXMLPane.css +70 -0
- package/dist/RDFXMLPane.d.ts +3 -2
- package/dist/RDFXMLPane.js +100 -0
- package/dist/argument/argumentPane.js +60 -0
- package/dist/attach/attachPane.js +393 -0
- package/dist/audio/audioPane.js +181 -0
- package/dist/bda84f59e7216675a208.png +0 -0
- package/dist/cd68e8f3990ba8b2139e.png +0 -0
- package/dist/classInstancePane.js +91 -0
- package/dist/dashboard/basicPreferences.d.ts +1 -1
- package/dist/dashboard/basicPreferences.js +147 -0
- package/dist/dashboard/dashboardPane.d.ts +1 -1
- package/dist/dashboard/dashboardPane.js +73 -0
- package/dist/dashboard/homepage.d.ts +1 -1
- package/dist/dashboard/homepage.js +42 -0
- package/dist/dataContentPane.css +271 -0
- package/dist/dataContentPane.d.ts +3 -2
- package/dist/dataContentPane.js +226 -0
- package/dist/defaultPane.css +97 -0
- package/dist/defaultPane.d.ts +3 -2
- package/dist/defaultPane.js +81 -0
- package/dist/dokieli/dokieliPane.js +74 -0
- package/dist/dokieli/{new.cjs.js → new.js} +10 -4
- package/dist/e7074a7e2cb69e51cfd3.png +0 -0
- package/dist/f3772696fb7ee53c23d8.png +0 -0
- package/dist/form/formPane.css +120 -0
- package/dist/form/pane.d.ts +2 -1
- package/dist/form/pane.js +250 -0
- package/dist/home/homePane.d.ts +1 -1
- package/dist/home/homePane.js +74 -0
- package/dist/humanReadablePane.css +129 -0
- package/dist/humanReadablePane.d.ts +3 -2
- package/dist/humanReadablePane.js +243 -0
- package/dist/icons/clock.svg +7 -0
- package/dist/icons/comment.svg +6 -0
- package/dist/icons/dashboard.svg +9 -0
- package/dist/icons/downArrow.svg +6 -0
- package/dist/icons/folder.svg +6 -0
- package/dist/icons/friends.svg +9 -0
- package/dist/icons/help.svg +8 -0
- package/dist/icons/iconHelper.js +23 -0
- package/dist/icons/menu.svg +8 -0
- package/dist/icons/person.svg +6 -0
- package/dist/icons/personInCircle.svg +8 -0
- package/dist/icons/sharing.svg +10 -0
- package/dist/icons/signOut.svg +8 -0
- package/dist/icons/signUp.svg +9 -0
- package/dist/icons/star.svg +3 -0
- package/dist/imagePane.css +4 -0
- package/dist/imagePane.d.ts +3 -2
- package/dist/imagePane.js +67 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +123 -0
- package/dist/internal/internalPane.css +14 -0
- package/dist/internal/internalPane.d.ts +2 -1
- package/dist/internal/internalPane.js +183 -0
- package/dist/mainPage/footer.d.ts +15 -0
- package/dist/mainPage/footer.d.ts.map +1 -0
- package/dist/mainPage/footer.js +29 -0
- package/dist/mainPage/header.d.ts +15 -1
- package/dist/mainPage/header.d.ts.map +1 -1
- package/dist/mainPage/header.js +203 -0
- package/dist/mainPage/index.d.ts +15 -3
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.js +78 -0
- package/dist/mainPage/menu.css +243 -0
- package/dist/mainPage/menu.d.ts +7 -0
- package/dist/mainPage/menu.d.ts.map +1 -0
- package/dist/mainPage/menu.js +436 -0
- package/dist/microblogPane/mbStyle.css +267 -0
- package/dist/microblogPane/microblogPane.js +1031 -0
- package/dist/n3Pane.css +49 -0
- package/dist/n3Pane.d.ts +3 -2
- package/dist/n3Pane.js +88 -0
- package/dist/outline/context.d.ts +3 -3
- package/dist/outline/context.js +21 -0
- package/dist/outline/manager.css +78 -0
- package/dist/outline/manager.js +2115 -0
- package/dist/outline/outlineIcons.js +126 -0
- package/dist/outline/propertyViews.js +43 -0
- package/dist/outline/queryByExample.js +285 -0
- package/dist/outline/userInput.js +1821 -0
- package/dist/outline/viewAsImage.js +14 -0
- package/dist/outline/viewAsMbox.js +21 -0
- package/dist/pad/padPane.css +40 -0
- package/dist/pad/padPane.d.ts +2 -1
- package/dist/pad/padPane.js +421 -0
- package/dist/playlist/playlistPane.js +119 -0
- package/dist/profileUtils/ownerProfile.d.ts +5 -0
- package/dist/profileUtils/ownerProfile.d.ts.map +1 -0
- package/dist/profileUtils/ownerProfile.js +84 -0
- package/dist/registerPanes.js +145 -0
- package/dist/schedule/schedulePane.css +294 -0
- package/dist/schedule/schedulePane.d.ts +4 -2
- package/dist/schedule/schedulePane.js +1022 -0
- package/dist/sharing/sharingPane.js +48 -0
- package/dist/slideshow/slideshowPane.js +79 -0
- package/dist/social/editProfileDetails.d.ts +2 -1
- package/dist/social/editProfileDetails.js +362 -0
- package/dist/social/{icons.esm.js → icons.js} +18 -12
- package/dist/social/socialPane.css +1464 -0
- package/dist/social/socialPane.d.ts +3 -2
- package/dist/social/socialPane.js +651 -0
- package/dist/social/socialSections.d.ts +2 -2
- package/dist/social/socialSections.js +393 -0
- package/dist/social/spinner.js +13 -0
- package/dist/social/triage.d.ts +2 -2
- package/dist/social/triage.js +79 -0
- package/dist/solid-panes.js +84629 -0
- package/dist/solid-panes.js.map +1 -0
- package/dist/solid-panes.min.js +3933 -0
- package/dist/solid-panes.min.js.map +1 -0
- package/dist/styles/tabbedtab.css +1066 -0
- package/dist/styles/utilities.css +5 -0
- package/dist/tabbed/tabbedPane.d.ts +1 -1
- package/dist/tabbed/tabbedPane.js +59 -0
- package/dist/tableViewPane.js +56 -0
- package/dist/transaction/pane.js +477 -0
- package/dist/transaction/period.js +323 -0
- package/dist/trip/tripPane.js +174 -0
- package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.dom.js +145 -0
- package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.utils.js +23 -0
- package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.view.js +55 -0
- package/dist/ui/pane.js +146 -0
- package/dist/versionInfo.js +41 -0
- package/dist/video/videoPane.js +42 -0
- package/package.json +66 -51
- package/dist/RDFXMLPane2.cjs.js +0 -3
- package/dist/RDFXMLPane2.cjs.js.map +0 -1
- package/dist/RDFXMLPane2.esm.js +0 -55
- package/dist/RDFXMLPane2.esm.js.map +0 -1
- package/dist/_virtual/_rolldown/runtime.cjs.js +0 -1
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/folder-open.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/globe.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/globe.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/globe.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/globe.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/help-circle.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/help-circle.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/pencil.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/pencil.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/pencil.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/settings-2.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/settings-2.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/share-2.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/share-2.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/share-2.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/trash-2.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/user.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/user.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/user.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/user.esm.js.map +0 -1
- package/dist/_virtual/~icons/lucide/users.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/users.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/users.esm.js +0 -11
- package/dist/_virtual/~icons/lucide/users.esm.js.map +0 -1
- package/dist/audio/audioPane.cjs.js +0 -2
- package/dist/audio/audioPane.cjs.js.map +0 -1
- package/dist/audio/audioPane.esm.js +0 -99
- package/dist/audio/audioPane.esm.js.map +0 -1
- package/dist/classInstancePane.cjs.js +0 -2
- package/dist/classInstancePane.cjs.js.map +0 -1
- package/dist/classInstancePane.esm.js +0 -50
- package/dist/classInstancePane.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +0 -14
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +0 -19
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +0 -292
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +0 -2
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +0 -7
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +0 -22
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +0 -15
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +0 -266
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +0 -2
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +0 -7
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +0 -19
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +0 -19
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +0 -321
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +0 -2
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +0 -7
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +0 -13
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +0 -36
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +0 -468
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +0 -2
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +0 -7
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +0 -1
- package/dist/components/file-explorer-header/helper.cjs.js +0 -2
- package/dist/components/file-explorer-header/helper.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/helper.d.ts +0 -15
- package/dist/components/file-explorer-header/helper.d.ts.map +0 -1
- package/dist/components/file-explorer-header/helper.esm.js +0 -64
- package/dist/components/file-explorer-header/helper.esm.js.map +0 -1
- package/dist/components/file-explorer-header/types.d.ts +0 -2
- package/dist/components/file-explorer-header/types.d.ts.map +0 -1
- package/dist/components/header/Header.cjs.js +0 -19
- package/dist/components/header/Header.cjs.js.map +0 -1
- package/dist/components/header/Header.d.ts +0 -8
- package/dist/components/header/Header.d.ts.map +0 -1
- package/dist/components/header/Header.esm.js +0 -228
- package/dist/components/header/Header.esm.js.map +0 -1
- package/dist/components/header/Header.styles.cjs.js +0 -2
- package/dist/components/header/Header.styles.cjs.js.map +0 -1
- package/dist/components/header/Header.styles.esm.js +0 -7
- package/dist/components/header/Header.styles.esm.js.map +0 -1
- package/dist/components/header/index.cjs.js +0 -1
- package/dist/components/header/index.d.ts +0 -4
- package/dist/components/header/index.d.ts.map +0 -1
- package/dist/components/header/index.esm.js +0 -1
- package/dist/components/navbar/Navbar.cjs.js +0 -15
- package/dist/components/navbar/Navbar.cjs.js.map +0 -1
- package/dist/components/navbar/Navbar.d.ts +0 -14
- package/dist/components/navbar/Navbar.d.ts.map +0 -1
- package/dist/components/navbar/Navbar.esm.js +0 -232
- package/dist/components/navbar/Navbar.esm.js.map +0 -1
- package/dist/components/navbar/Navbar.styles.cjs.js +0 -2
- package/dist/components/navbar/Navbar.styles.cjs.js.map +0 -1
- package/dist/components/navbar/Navbar.styles.esm.js +0 -7
- package/dist/components/navbar/Navbar.styles.esm.js.map +0 -1
- package/dist/components/navbar/index.cjs.js +0 -1
- package/dist/components/navbar/index.d.ts +0 -4
- package/dist/components/navbar/index.d.ts.map +0 -1
- package/dist/components/navbar/index.esm.js +0 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +0 -16
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +0 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +0 -8
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +0 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +0 -215
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +0 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +0 -18
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +0 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +0 -16
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +0 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +0 -260
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +0 -1
- package/dist/dashboard/basicPreferences.cjs.js +0 -2
- package/dist/dashboard/basicPreferences.cjs.js.map +0 -1
- package/dist/dashboard/basicPreferences.esm.js +0 -70
- package/dist/dashboard/basicPreferences.esm.js.map +0 -1
- package/dist/dashboard/dashboardPane.cjs.js +0 -2
- package/dist/dashboard/dashboardPane.cjs.js.map +0 -1
- package/dist/dashboard/dashboardPane.esm.js +0 -7
- package/dist/dashboard/dashboardPane.esm.js.map +0 -1
- package/dist/dashboard/homepage.cjs.js +0 -2
- package/dist/dashboard/homepage.cjs.js.map +0 -1
- package/dist/dashboard/homepage.esm.js +0 -26
- package/dist/dashboard/homepage.esm.js.map +0 -1
- package/dist/dashboard/ontologyData.cjs.js +0 -37
- package/dist/dashboard/ontologyData.cjs.js.map +0 -1
- package/dist/dashboard/ontologyData.esm.js +0 -6
- package/dist/dashboard/ontologyData.esm.js.map +0 -1
- package/dist/dashboard/preferencesFormText.cjs.js +0 -20
- package/dist/dashboard/preferencesFormText.cjs.js.map +0 -1
- package/dist/dashboard/preferencesFormText.esm.js +0 -6
- package/dist/dashboard/preferencesFormText.esm.js.map +0 -1
- package/dist/dataContentPane2.cjs.js +0 -2
- package/dist/dataContentPane2.cjs.js.map +0 -1
- package/dist/dataContentPane2.esm.js +0 -109
- package/dist/dataContentPane2.esm.js.map +0 -1
- package/dist/defaultPane2.cjs.js +0 -2
- package/dist/defaultPane2.cjs.js.map +0 -1
- package/dist/defaultPane2.esm.js +0 -41
- package/dist/defaultPane2.esm.js.map +0 -1
- package/dist/dev.d.ts +0 -10
- package/dist/dev.d.ts.map +0 -1
- package/dist/dokieli/dokieliPane.cjs.js +0 -2
- package/dist/dokieli/dokieliPane.cjs.js.map +0 -1
- package/dist/dokieli/dokieliPane.esm.js +0 -39
- package/dist/dokieli/dokieliPane.esm.js.map +0 -1
- package/dist/dokieli/new.cjs.js.map +0 -1
- package/dist/dokieli/new.esm.js +0 -6
- package/dist/dokieli/new.esm.js.map +0 -1
- package/dist/form/pane.cjs.js +0 -4
- package/dist/form/pane.cjs.js.map +0 -1
- package/dist/form/pane.esm.js +0 -122
- package/dist/form/pane.esm.js.map +0 -1
- package/dist/home/homePane.cjs.js +0 -2
- package/dist/home/homePane.cjs.js.map +0 -1
- package/dist/home/homePane.esm.js +0 -35
- package/dist/home/homePane.esm.js.map +0 -1
- package/dist/humanReadablePane2.cjs.js +0 -2
- package/dist/humanReadablePane2.cjs.js.map +0 -1
- package/dist/humanReadablePane2.esm.js +0 -123
- package/dist/humanReadablePane2.esm.js.map +0 -1
- package/dist/icons/folder.cjs.js +0 -2
- package/dist/icons/folder.cjs.js.map +0 -1
- package/dist/icons/folder.esm.js +0 -6
- package/dist/icons/folder.esm.js.map +0 -1
- package/dist/icons/friends.cjs.js +0 -2
- package/dist/icons/friends.cjs.js.map +0 -1
- package/dist/icons/friends.esm.js +0 -6
- package/dist/icons/friends.esm.js.map +0 -1
- package/dist/icons/person.cjs.js +0 -2
- package/dist/icons/person.cjs.js.map +0 -1
- package/dist/icons/person.esm.js +0 -6
- package/dist/icons/person.esm.js.map +0 -1
- package/dist/imagePane2.cjs.js +0 -2
- package/dist/imagePane2.cjs.js.map +0 -1
- package/dist/imagePane2.esm.js +0 -32
- package/dist/imagePane2.esm.js.map +0 -1
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -31
- package/dist/index.esm.js.map +0 -1
- package/dist/internal/internalPane2.cjs.js +0 -2
- package/dist/internal/internalPane2.cjs.js.map +0 -1
- package/dist/internal/internalPane2.esm.js +0 -104
- package/dist/internal/internalPane2.esm.js.map +0 -1
- package/dist/mainPage/header.cjs.js +0 -2
- package/dist/mainPage/header.cjs.js.map +0 -1
- package/dist/mainPage/header.esm.js +0 -72
- package/dist/mainPage/header.esm.js.map +0 -1
- package/dist/mainPage/index.cjs.js +0 -2
- package/dist/mainPage/index.cjs.js.map +0 -1
- package/dist/mainPage/index.esm.js +0 -36
- package/dist/mainPage/index.esm.js.map +0 -1
- package/dist/mainPage/navbar.cjs.js +0 -2
- package/dist/mainPage/navbar.cjs.js.map +0 -1
- package/dist/mainPage/navbar.d.ts +0 -3
- package/dist/mainPage/navbar.d.ts.map +0 -1
- package/dist/mainPage/navbar.esm.js +0 -66
- package/dist/mainPage/navbar.esm.js.map +0 -1
- package/dist/n3Pane2.cjs.js +0 -3
- package/dist/n3Pane2.cjs.js.map +0 -1
- package/dist/n3Pane2.esm.js +0 -52
- package/dist/n3Pane2.esm.js.map +0 -1
- package/dist/outline/context.cjs.js +0 -2
- package/dist/outline/context.cjs.js.map +0 -1
- package/dist/outline/context.esm.js +0 -18
- package/dist/outline/context.esm.js.map +0 -1
- package/dist/outline/manager2.cjs.js +0 -2
- package/dist/outline/manager2.cjs.js.map +0 -1
- package/dist/outline/manager2.esm.js +0 -711
- package/dist/outline/manager2.esm.js.map +0 -1
- package/dist/outline/outlineIcons.cjs.js +0 -2
- package/dist/outline/outlineIcons.cjs.js.map +0 -1
- package/dist/outline/outlineIcons.esm.js +0 -10
- package/dist/outline/outlineIcons.esm.js.map +0 -1
- package/dist/outline/propertyViews.cjs.js +0 -2
- package/dist/outline/propertyViews.cjs.js.map +0 -1
- package/dist/outline/propertyViews.esm.js +0 -19
- package/dist/outline/propertyViews.esm.js.map +0 -1
- package/dist/outline/queryByExample.cjs.js +0 -2
- package/dist/outline/queryByExample.cjs.js.map +0 -1
- package/dist/outline/queryByExample.esm.js +0 -26
- package/dist/outline/queryByExample.esm.js.map +0 -1
- package/dist/outline/sourcePaneIcon.d.ts +0 -2
- package/dist/outline/sourcePaneIcon.d.ts.map +0 -1
- package/dist/outline/userInput.cjs.js +0 -61
- package/dist/outline/userInput.cjs.js.map +0 -1
- package/dist/outline/userInput.esm.js +0 -784
- package/dist/outline/userInput.esm.js.map +0 -1
- package/dist/outline/viewAsImage.cjs.js +0 -2
- package/dist/outline/viewAsImage.cjs.js.map +0 -1
- package/dist/outline/viewAsImage.esm.js +0 -10
- package/dist/outline/viewAsImage.esm.js.map +0 -1
- package/dist/outline/viewAsMbox.cjs.js +0 -2
- package/dist/outline/viewAsMbox.cjs.js.map +0 -1
- package/dist/outline/viewAsMbox.esm.js +0 -9
- package/dist/outline/viewAsMbox.esm.js.map +0 -1
- package/dist/pad/padPane2.cjs.js +0 -2
- package/dist/pad/padPane2.cjs.js.map +0 -1
- package/dist/pad/padPane2.esm.js +0 -173
- package/dist/pad/padPane2.esm.js.map +0 -1
- package/dist/playlist/playlistPane.cjs.js +0 -2
- package/dist/playlist/playlistPane.cjs.js.map +0 -1
- package/dist/playlist/playlistPane.esm.js +0 -49
- package/dist/playlist/playlistPane.esm.js.map +0 -1
- package/dist/registerPanes.cjs.js +0 -2
- package/dist/registerPanes.cjs.js.map +0 -1
- package/dist/registerPanes.esm.js +0 -46
- package/dist/registerPanes.esm.js.map +0 -1
- package/dist/schedule/formsForSchedule.cjs.js +0 -117
- package/dist/schedule/formsForSchedule.cjs.js.map +0 -1
- package/dist/schedule/formsForSchedule.esm.js +0 -6
- package/dist/schedule/formsForSchedule.esm.js.map +0 -1
- package/dist/schedule/schedulePane2.cjs.js +0 -8
- package/dist/schedule/schedulePane2.cjs.js.map +0 -1
- package/dist/schedule/schedulePane2.esm.js +0 -385
- package/dist/schedule/schedulePane2.esm.js.map +0 -1
- package/dist/sharing/sharingPane.cjs.js +0 -2
- package/dist/sharing/sharingPane.cjs.js.map +0 -1
- package/dist/sharing/sharingPane.esm.js +0 -22
- package/dist/sharing/sharingPane.esm.js.map +0 -1
- package/dist/slideshow/slideshowPane.cjs.js +0 -2
- package/dist/slideshow/slideshowPane.cjs.js.map +0 -1
- package/dist/slideshow/slideshowPane.esm.js +0 -46
- package/dist/slideshow/slideshowPane.esm.js.map +0 -1
- package/dist/social/editProfileDetails.cjs.js +0 -2
- package/dist/social/editProfileDetails.cjs.js.map +0 -1
- package/dist/social/editProfileDetails.esm.js +0 -12
- package/dist/social/editProfileDetails.esm.js.map +0 -1
- package/dist/social/icons.cjs.js +0 -82
- package/dist/social/icons.cjs.js.map +0 -1
- package/dist/social/icons.esm.js.map +0 -1
- package/dist/social/socialPane2.cjs.js +0 -6
- package/dist/social/socialPane2.cjs.js.map +0 -1
- package/dist/social/socialPane2.esm.js +0 -326
- package/dist/social/socialPane2.esm.js.map +0 -1
- package/dist/social/socialSections.cjs.js +0 -2
- package/dist/social/socialSections.cjs.js.map +0 -1
- package/dist/social/socialSections.esm.js +0 -222
- package/dist/social/socialSections.esm.js.map +0 -1
- package/dist/social/spinner.cjs.js +0 -1
- package/dist/social/spinner.esm.js +0 -1
- package/dist/social/triage.cjs.js +0 -2
- package/dist/social/triage.cjs.js.map +0 -1
- package/dist/social/triage.esm.js +0 -44
- package/dist/social/triage.esm.js.map +0 -1
- package/dist/tabbed/tabbedPane.cjs.js +0 -2
- package/dist/tabbed/tabbedPane.cjs.js.map +0 -1
- package/dist/tabbed/tabbedPane.esm.js +0 -38
- package/dist/tabbed/tabbedPane.esm.js.map +0 -1
- package/dist/tableViewPane.cjs.js +0 -2
- package/dist/tableViewPane.cjs.js.map +0 -1
- package/dist/tableViewPane.esm.js +0 -20
- package/dist/tableViewPane.esm.js.map +0 -1
- package/dist/transaction/pane.cjs.js +0 -8
- package/dist/transaction/pane.cjs.js.map +0 -1
- package/dist/transaction/pane.esm.js +0 -212
- package/dist/transaction/pane.esm.js.map +0 -1
- package/dist/transaction/period.cjs.js +0 -4
- package/dist/transaction/period.cjs.js.map +0 -1
- package/dist/transaction/period.esm.js +0 -126
- package/dist/transaction/period.esm.js.map +0 -1
- package/dist/trip/tripPane.cjs.js +0 -2
- package/dist/trip/tripPane.cjs.js.map +0 -1
- package/dist/trip/tripPane.esm.js +0 -85
- package/dist/trip/tripPane.esm.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.dom.cjs.js +0 -2
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.dom.esm.js +0 -108
- package/dist/trustedApplications/trustedApplications.dom.esm.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.utils.cjs.js +0 -2
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.utils.esm.js +0 -20
- package/dist/trustedApplications/trustedApplications.utils.esm.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.view.cjs.js +0 -2
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.view.esm.js +0 -41
- package/dist/trustedApplications/trustedApplications.view.esm.js.map +0 -1
- package/dist/ui/pane.cjs.js +0 -4
- package/dist/ui/pane.cjs.js.map +0 -1
- package/dist/ui/pane.esm.js +0 -56
- package/dist/ui/pane.esm.js.map +0 -1
- package/dist/utils/paneUtils.cjs.js +0 -2
- package/dist/utils/paneUtils.cjs.js.map +0 -1
- package/dist/utils/paneUtils.d.ts +0 -19
- package/dist/utils/paneUtils.d.ts.map +0 -1
- package/dist/utils/paneUtils.esm.js +0 -52
- package/dist/utils/paneUtils.esm.js.map +0 -1
- package/dist/utils/podUtils.cjs.js +0 -2
- package/dist/utils/podUtils.cjs.js.map +0 -1
- package/dist/utils/podUtils.d.ts +0 -4
- package/dist/utils/podUtils.d.ts.map +0 -1
- package/dist/utils/podUtils.esm.js +0 -46
- package/dist/utils/podUtils.esm.js.map +0 -1
- package/dist/utils/webIdUtils.cjs.js +0 -2
- package/dist/utils/webIdUtils.cjs.js.map +0 -1
- package/dist/utils/webIdUtils.d.ts +0 -6
- package/dist/utils/webIdUtils.d.ts.map +0 -1
- package/dist/utils/webIdUtils.esm.js +0 -48
- package/dist/utils/webIdUtils.esm.js.map +0 -1
- package/dist/versionInfo.cjs.js +0 -2
- package/dist/versionInfo.cjs.js.map +0 -1
- package/dist/versionInfo.esm.js +0 -40
- package/dist/versionInfo.esm.js.map +0 -1
- package/dist/video/videoPane.cjs.js +0 -2
- package/dist/video/videoPane.cjs.js.map +0 -1
- package/dist/video/videoPane.esm.js +0 -25
- package/dist/video/videoPane.esm.js.map +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.basicPreferencesPane = void 0;
|
|
7
|
+
var _rdflib = require("rdflib");
|
|
8
|
+
var _solidUi = require("solid-ui");
|
|
9
|
+
/* babel-plugin-inline-import './ontologyData.ttl' */
|
|
10
|
+
const ontologyData = "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix schema: <http:/schema.org/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\nsolid:User a rdfs:Class;\n rdfs:label \"user\"@en, \"utilisateur\"@fr;\n rdfs:comment \"\"\"Any person who might use a Solid-based system\"\"\";\n rdfs:subClassOf foaf:Person, schema:Person, vcard:Individual.\n\n# Since these options are opt-in, it is a bit strange to have new users opt in\n# That they are new users - also we do not use this class for anything specific\n# yet\n# solid:NewUser a rdfs:Class;\n# rdfs:label \"new user\"@en;\n# rdfs:comment \"\"\"A person who might use a Solid-based system who has a low\n# level of familiarity with technical details.\"\"\";\n# rdfs:subClassOf solid:User.\n\nsolid:PowerUser a rdfs:Class;\n rdfs:label \"power user\"@en;\n rdfs:comment \"\"\"A person who might use a Solid-based system\n who is prepared to be given a more complex interface in order\n to be provided with more pwerful features.\"\"\";\n rdfs:subClassOf solid:User.\n\n solid:Developer a rdfs:Class;\n rdfs:label \"Developer\";\n rdfs:comment \"\"\"Any person who might use a Solid-based system,\n who has software development skills.\"\"\";\n rdfs:subClassOf solid:User.\n";
|
|
11
|
+
/* babel-plugin-inline-import './preferencesFormText.ttl' */
|
|
12
|
+
const preferencesFormText = "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <#>.\n\n:this <http://purl.org/dc/elements/1.1/title> \"Basic preferences\" ;\n a ui:Form ;\n ui:part :categorizeUser, :privateComment, :personalInformationHeading;\n ui:parts ( :personalInformationHeading :privateComment :categorizeUser ).\n\n:personalInformationHeading a ui:Heading;\n ui:contents \"Personal information\".\n\n:privateComment a ui:Comment;\n ui:contents \"This information is private.\".\n\n:categorizeUser a ui:Classifier;\n ui:label \"Level of user\"; ui:property rdf:type ; ui:category solid:User.\n";
|
|
13
|
+
const basicPreferencesPane = exports.basicPreferencesPane = {
|
|
14
|
+
icon: _solidUi.icons.iconBase + 'noun_Sliders_341315_000000.svg',
|
|
15
|
+
name: 'basicPreferences',
|
|
16
|
+
label: _subject => {
|
|
17
|
+
return null;
|
|
18
|
+
},
|
|
19
|
+
// Render the pane
|
|
20
|
+
// The subject should be the logged in user.
|
|
21
|
+
render: (subject, context) => {
|
|
22
|
+
const dom = context.dom;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
const store = context.session.store;
|
|
25
|
+
function complainIfBad(ok, mess) {
|
|
26
|
+
if (ok) return;
|
|
27
|
+
container.appendChild(_solidUi.widgets.errorMessageBlock(dom, mess, '#fee'));
|
|
28
|
+
}
|
|
29
|
+
const container = dom.createElement('div');
|
|
30
|
+
const formArea = setupUserTypesSection(container, dom);
|
|
31
|
+
function loadData(doc, turtle) {
|
|
32
|
+
doc = doc.doc(); // remove # from URI if nec
|
|
33
|
+
if (!store.holds(undefined, undefined, undefined, doc)) {
|
|
34
|
+
// If not loaded already
|
|
35
|
+
;
|
|
36
|
+
(0, _rdflib.parse)(turtle, store, doc.uri, 'text/turtle', null); // Load form directly
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const preferencesForm = store.sym('urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597#this');
|
|
40
|
+
loadData(preferencesForm, preferencesFormText);
|
|
41
|
+
const ontologyExtra = store.sym('urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597-ONT');
|
|
42
|
+
loadData(ontologyExtra, ontologyData);
|
|
43
|
+
async function doRender() {
|
|
44
|
+
const renderContext = await _solidUi.login.ensureLoadedPreferences({
|
|
45
|
+
dom,
|
|
46
|
+
div: container
|
|
47
|
+
});
|
|
48
|
+
if (!renderContext.preferencesFile) {
|
|
49
|
+
// Could be CORS
|
|
50
|
+
console.log('Not doing private class preferences as no access to preferences file. ' + renderContext.preferencesFileError);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const appendedForm = _solidUi.widgets.appendForm(dom, formArea, {}, renderContext.me, preferencesForm, renderContext.preferencesFile, complainIfBad);
|
|
54
|
+
appendedForm.style.borderStyle = 'none';
|
|
55
|
+
const trustedApplicationsView = context.session.paneRegistry.byName('trustedApplications');
|
|
56
|
+
if (trustedApplicationsView) {
|
|
57
|
+
container.appendChild(trustedApplicationsView.render(null, context));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @@ TODO Remove need for casting as any and bang (!) syntax
|
|
61
|
+
addDeleteSection(container, store, renderContext.me, dom);
|
|
62
|
+
}
|
|
63
|
+
doRender();
|
|
64
|
+
return container;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
function setupUserTypesSection(container, dom) {
|
|
68
|
+
const formContainer = createSection(container, dom, 'User types');
|
|
69
|
+
const description = formContainer.appendChild(dom.createElement('p'));
|
|
70
|
+
description.innerText = 'Here you can self-assign user types to help the data browser know which views you would like to access.';
|
|
71
|
+
const userTypesLink = formContainer.appendChild(dom.createElement('a'));
|
|
72
|
+
userTypesLink.href = 'https://github.com/solidos/userguide/#role';
|
|
73
|
+
userTypesLink.innerText = 'Read more';
|
|
74
|
+
const formArea = formContainer.appendChild(dom.createElement('div'));
|
|
75
|
+
return formArea;
|
|
76
|
+
}
|
|
77
|
+
var _default = exports.default = basicPreferencesPane; // ends
|
|
78
|
+
function addDeleteSection(container, store, profile, dom) {
|
|
79
|
+
const section = createSection(container, dom, 'Delete account');
|
|
80
|
+
const podServerNodes = store.each(profile, _solidUi.ns.space('storage'), null, profile.doc());
|
|
81
|
+
const podServers = podServerNodes.map(node => node.value);
|
|
82
|
+
const list = section.appendChild(dom.createElement('ul'));
|
|
83
|
+
podServers.forEach(async server => {
|
|
84
|
+
const deletionLink = await generateDeletionLink(server, dom);
|
|
85
|
+
if (deletionLink) {
|
|
86
|
+
const listItem = list.appendChild(dom.createElement('li'));
|
|
87
|
+
listItem.appendChild(deletionLink);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async function generateDeletionLink(podServer, dom) {
|
|
92
|
+
const link = dom.createElement('a');
|
|
93
|
+
link.textContent = `Delete your account at ${podServer}`;
|
|
94
|
+
const deletionUrl = await getDeletionUrlForServer(podServer);
|
|
95
|
+
if (typeof deletionUrl !== 'string') {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
link.href = deletionUrl;
|
|
99
|
+
return link;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Hacky way to get the deletion link to a Pod
|
|
104
|
+
*
|
|
105
|
+
* This function infers the deletion link by assuming the URL structure of Node Solid server.
|
|
106
|
+
* In the future, Solid will hopefully provide a standardised way of discovering the deletion link:
|
|
107
|
+
* https://github.com/solidos/data-interoperability-panel/issues/18
|
|
108
|
+
*
|
|
109
|
+
* If NSS is in multi-user mode (the case on inrupt.net and solid.community), the deletion URL for
|
|
110
|
+
* vincent.dev.inrupt.net would be at dev.inrupt.net/account/delete. In single-user mode, the
|
|
111
|
+
* deletion URL would be at vincent.dev.inrupt.net/account/delete.
|
|
112
|
+
*
|
|
113
|
+
* @param server Pod server containing the user's account.
|
|
114
|
+
* @returns URL of the page that Node Solid Server would offer to delete the account, or null if
|
|
115
|
+
* the URLs we tried give invalid responses.
|
|
116
|
+
*/
|
|
117
|
+
async function getDeletionUrlForServer(server) {
|
|
118
|
+
const singleUserUrl = new URL(server);
|
|
119
|
+
const multiUserUrl = new URL(server);
|
|
120
|
+
multiUserUrl.pathname = singleUserUrl.pathname = '/account/delete';
|
|
121
|
+
const hostnameParts = multiUserUrl.hostname.split('.');
|
|
122
|
+
// Remove `vincent.` from `vincent.dev.inrupt.net`, for example:
|
|
123
|
+
multiUserUrl.hostname = hostnameParts.slice(1).join('.');
|
|
124
|
+
const multiUserNssResponse = await fetch(multiUserUrl.href, {
|
|
125
|
+
method: 'HEAD'
|
|
126
|
+
});
|
|
127
|
+
if (multiUserNssResponse.ok) {
|
|
128
|
+
return multiUserUrl.href;
|
|
129
|
+
}
|
|
130
|
+
const singleUserNssResponse = await fetch(singleUserUrl.href, {
|
|
131
|
+
method: 'HEAD'
|
|
132
|
+
});
|
|
133
|
+
if (singleUserNssResponse.ok) {
|
|
134
|
+
return singleUserUrl.href;
|
|
135
|
+
}
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
function createSection(container, dom, title) {
|
|
139
|
+
const section = container.appendChild(dom.createElement('div'));
|
|
140
|
+
section.style.border = '0.3em solid #418d99';
|
|
141
|
+
section.style.borderRadius = '0.5em';
|
|
142
|
+
section.style.padding = '0.7em';
|
|
143
|
+
section.style.marginTop = '0.7em';
|
|
144
|
+
const titleElement = section.appendChild(dom.createElement('h3'));
|
|
145
|
+
titleElement.innerText = title;
|
|
146
|
+
return section;
|
|
147
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.dashboardPane = void 0;
|
|
7
|
+
var _solidUi = require("solid-ui");
|
|
8
|
+
var _solidLogic = require("solid-logic");
|
|
9
|
+
var _homepage = require("./homepage");
|
|
10
|
+
const dashboardPane = exports.dashboardPane = {
|
|
11
|
+
icon: _solidUi.icons.iconBase + 'noun_547570.svg',
|
|
12
|
+
name: 'dashboard',
|
|
13
|
+
label: subject => {
|
|
14
|
+
if (subject.termType === 'NamedNode' && subject.uri === subject.site().uri) {
|
|
15
|
+
return 'Dashboard';
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
},
|
|
19
|
+
render: (subject, context) => {
|
|
20
|
+
console.log('Dashboard Pane Render');
|
|
21
|
+
const dom = context.dom;
|
|
22
|
+
const container = dom.createElement('div');
|
|
23
|
+
const runBuildPage = () => {
|
|
24
|
+
container.innerHTML = '';
|
|
25
|
+
buildPage(container, _solidLogic.authn.currentUser() || null, context, subject);
|
|
26
|
+
};
|
|
27
|
+
_solidLogic.authSession.events.on('login', () => {
|
|
28
|
+
// console.log('On Login')
|
|
29
|
+
runBuildPage();
|
|
30
|
+
});
|
|
31
|
+
_solidLogic.authSession.events.on('sessionRestore', () => {
|
|
32
|
+
// console.log('On Session Restore')
|
|
33
|
+
runBuildPage();
|
|
34
|
+
});
|
|
35
|
+
// console.log('Initial Load')
|
|
36
|
+
runBuildPage();
|
|
37
|
+
return container;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
function buildPage(container, webId, context, subject) {
|
|
41
|
+
const uri = new URL(window.location.href).searchParams.get('uri');
|
|
42
|
+
if (uri && webId) {
|
|
43
|
+
return buildDashboard(container, context);
|
|
44
|
+
}
|
|
45
|
+
if (!uri && subject) {
|
|
46
|
+
return buildHomePage(container, subject);
|
|
47
|
+
}
|
|
48
|
+
if (!uri && !subject && webId) {
|
|
49
|
+
return buildDashboard(container, context);
|
|
50
|
+
}
|
|
51
|
+
const fallbackSubject = subject || webId || _solidLogic.store.sym(window.location.href);
|
|
52
|
+
return buildHomePage(container, fallbackSubject);
|
|
53
|
+
}
|
|
54
|
+
function buildDashboard(container, context) {
|
|
55
|
+
// console.log('build dashboard')
|
|
56
|
+
// @@ TODO get a proper type
|
|
57
|
+
const outliner = context.getOutliner(context.dom);
|
|
58
|
+
outliner.getDashboard().then(dashboard => container.appendChild(dashboard));
|
|
59
|
+
}
|
|
60
|
+
function buildHomePage(container, subject) {
|
|
61
|
+
// console.log('build home page')
|
|
62
|
+
const wrapper = document.createElement('div');
|
|
63
|
+
container.appendChild(wrapper);
|
|
64
|
+
const shadow = wrapper.attachShadow({
|
|
65
|
+
mode: 'open'
|
|
66
|
+
});
|
|
67
|
+
const link = document.createElement('link');
|
|
68
|
+
link.rel = 'stylesheet';
|
|
69
|
+
link.href = '/common/css/bootstrap.min.css';
|
|
70
|
+
shadow.appendChild(link);
|
|
71
|
+
(0, _homepage.generateHomepage)(subject, _solidLogic.store, _solidLogic.store.fetcher).then(homepage => shadow.appendChild(homepage));
|
|
72
|
+
}
|
|
73
|
+
var _default = exports.default = dashboardPane;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Fetcher, IndexedFormula, NamedNode } from '
|
|
1
|
+
import { Fetcher, IndexedFormula, NamedNode } from 'rdflib';
|
|
2
2
|
export declare function generateHomepage(uri: NamedNode, store: IndexedFormula, fetcher: Fetcher): Promise<HTMLElement>;
|
|
3
3
|
//# sourceMappingURL=homepage.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.generateHomepage = generateHomepage;
|
|
7
|
+
var _ownerProfile = require("../profileUtils/ownerProfile");
|
|
8
|
+
async function generateHomepage(uri, store, fetcher) {
|
|
9
|
+
const ownersProfile = await (0, _ownerProfile.loadProfileFromURI)(uri, store, fetcher);
|
|
10
|
+
const name = (0, _ownerProfile.getName)(store, ownersProfile);
|
|
11
|
+
const wrapper = document.createElement('div');
|
|
12
|
+
wrapper.classList.add('container');
|
|
13
|
+
wrapper.appendChild(createTitle(ownersProfile.uri, name));
|
|
14
|
+
wrapper.appendChild(createDataSection(name));
|
|
15
|
+
return wrapper;
|
|
16
|
+
}
|
|
17
|
+
function createDataSection(name) {
|
|
18
|
+
const dataSection = document.createElement('section');
|
|
19
|
+
const title = document.createElement('h2');
|
|
20
|
+
title.innerText = 'Data';
|
|
21
|
+
dataSection.appendChild(title);
|
|
22
|
+
const listGroup = document.createElement('div');
|
|
23
|
+
listGroup.classList.add('list-group');
|
|
24
|
+
dataSection.appendChild(listGroup);
|
|
25
|
+
const publicDataLink = document.createElement('a');
|
|
26
|
+
publicDataLink.classList.add('list-group-item');
|
|
27
|
+
publicDataLink.href = window.document.location.href + 'public/';
|
|
28
|
+
publicDataLink.innerText = `View ${name}'s files`;
|
|
29
|
+
listGroup.appendChild(publicDataLink);
|
|
30
|
+
return dataSection;
|
|
31
|
+
}
|
|
32
|
+
function createTitle(uri, name) {
|
|
33
|
+
const profileLink = document.createElement('a');
|
|
34
|
+
profileLink.href = uri;
|
|
35
|
+
profileLink.innerText = name;
|
|
36
|
+
const profileLinkPost = document.createElement('span');
|
|
37
|
+
profileLinkPost.innerText = '\'s Profile';
|
|
38
|
+
const title = document.createElement('h1');
|
|
39
|
+
title.appendChild(profileLink);
|
|
40
|
+
title.appendChild(profileLinkPost);
|
|
41
|
+
return title;
|
|
42
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
.data-content-pane__literal {
|
|
2
|
+
white-space: pre-wrap;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
div.data-content-pane {
|
|
6
|
+
border-top: solid 1px var(--color-data-pane-border-top, black);
|
|
7
|
+
border-left: solid 1px var(--color-data-pane-border-top, black);
|
|
8
|
+
border-bottom: solid 1px var(--color-data-pane-border-side, #777);
|
|
9
|
+
border-right: solid 1px var(--color-data-pane-border-side, #777);
|
|
10
|
+
padding: var(--spacing-base, 0.5rem);
|
|
11
|
+
margin-top: var(--spacing-base, 0.5rem);
|
|
12
|
+
margin-bottom: var(--spacing-base, 0.5rem);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.data-content-pane table.data-content-pane__table {
|
|
16
|
+
width: 100%;
|
|
17
|
+
border-collapse: separate;
|
|
18
|
+
border-spacing: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.data-content-pane table.data-content-pane__table--root {
|
|
22
|
+
table-layout: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
div.data-content-pane .data-content-pane__row--root {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
div.data-content-pane .data-content-pane__row--root > td {
|
|
31
|
+
vertical-align: top;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
div.data-content-pane .data-content-pane__subject-cell {
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
width: clamp(7rem, 12%, 10rem);
|
|
37
|
+
padding-right: 0.8rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.data-content-pane .data-content-pane__details-cell {
|
|
41
|
+
flex: 0 1 auto;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
div.data-content-pane .data-content-pane__subject-cell,
|
|
46
|
+
div.data-content-pane td.data-content-pane__predicate-cell,
|
|
47
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell),
|
|
48
|
+
div.data-content-pane .data-content-pane__subject-cell a,
|
|
49
|
+
div.data-content-pane td.data-content-pane__predicate-cell a,
|
|
50
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell) a {
|
|
51
|
+
white-space: normal;
|
|
52
|
+
overflow-wrap: anywhere;
|
|
53
|
+
word-break: break-word;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div.data-content-pane table.data-content-pane__table--property {
|
|
57
|
+
table-layout: auto;
|
|
58
|
+
width: auto;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.data-content-pane__nested-formula {
|
|
63
|
+
border-top: solid 1px var(--color-data-pane-border-top, black);
|
|
64
|
+
border-left: solid 1px var(--color-data-pane-border-top, black);
|
|
65
|
+
border-bottom: solid 1px var(--color-data-pane-border-side, #777);
|
|
66
|
+
border-right: solid 1px var(--color-data-pane-border-side, #777);
|
|
67
|
+
padding: var(--spacing-base, 0.5rem);
|
|
68
|
+
border-radius: var(--border-radius-md, 0.5rem);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
div.data-content-pane td {
|
|
72
|
+
padding-left: var(--spacing-xxxs, 0.2rem);
|
|
73
|
+
padding-top: var(--spacing-small, 0.1rem);
|
|
74
|
+
padding-right: var(--spacing-xxxs, 0.2rem);
|
|
75
|
+
padding-bottom: 0.05rem;
|
|
76
|
+
vertical-align: top;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
div.data-content-pane table.data-content-pane__table--property td {
|
|
80
|
+
padding-top: 0.3rem;
|
|
81
|
+
padding-bottom: 0.3rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
div.data-content-pane tr {
|
|
85
|
+
margin-bottom: var(--spacing-2xs, 0.625rem);
|
|
86
|
+
padding-top: var(--spacing-small, 0.1rem);
|
|
87
|
+
padding-bottom: var(--spacing-small, 0.1rem);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.data-content-pane a {
|
|
91
|
+
color: var(--color-text-link, #3b5998);
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.data-content-pane a:link {
|
|
97
|
+
color: var(--color-text-link, #3b5998);
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
font-weight: bold;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.data-content-pane a:visited {
|
|
103
|
+
color: var(--color-text-link-visited, #3b5998);
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
font-weight: bold;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.data-content-pane a:hover {
|
|
109
|
+
color: var(--color-text-link-hover, #3b5998);
|
|
110
|
+
text-decoration: underline;
|
|
111
|
+
font-weight: bold;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.data-content-pane a:active {
|
|
115
|
+
color: var(--color-text-link-active, #888);
|
|
116
|
+
text-decoration: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.data-content-pane.embeddedText {
|
|
120
|
+
white-space: pre-wrap;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
div.data-content-pane td.data-content-pane__predicate-cell {
|
|
124
|
+
min-width: 8.5rem;
|
|
125
|
+
width: clamp(8.5rem, 18vw, 12rem);
|
|
126
|
+
max-width: 12rem;
|
|
127
|
+
padding-right: var(--spacing-base, 0.5rem);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell) {
|
|
131
|
+
padding-left: var(--spacing-xxs, 0.3125rem);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
div.data-content-pane td.data-content-pane__predicate-cell a {
|
|
135
|
+
color: var(--color-text-muted, #444);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.data-content-pane__row--even {
|
|
139
|
+
background-color: var(--color-background-row-alternate, #f0f0f0);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.data-content-pane__row--odd {
|
|
143
|
+
background-color: var(--color-background-row-default, white);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.data-content-pane__row--top-aligned {
|
|
147
|
+
vertical-align: top;
|
|
148
|
+
margin-top: 0;
|
|
149
|
+
margin-bottom: 0;
|
|
150
|
+
padding-top: 0;
|
|
151
|
+
padding-bottom: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.data-content-pane__nested-table--light {
|
|
155
|
+
background-color: var(--color-background-row-default, white);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.data-content-pane__nested-table--dark {
|
|
159
|
+
background-color: var(--color-background-row-alternate, #f0f0f0);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__row--root {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: flex-start;
|
|
165
|
+
padding-bottom: var(--spacing-xs, 0.75rem);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__subject-cell {
|
|
169
|
+
flex: 0 0 40%;
|
|
170
|
+
width: 40%;
|
|
171
|
+
max-width: 40%;
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
padding-right: var(--spacing-xs, 0.75rem);
|
|
174
|
+
padding-bottom: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__details-cell {
|
|
178
|
+
flex: 0 0 60%;
|
|
179
|
+
width: 60%;
|
|
180
|
+
max-width: 60%;
|
|
181
|
+
min-width: 0;
|
|
182
|
+
box-sizing: border-box;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property > tbody > tr,
|
|
186
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property > tr {
|
|
187
|
+
margin-bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__row--top-aligned + .data-content-pane__row--top-aligned {
|
|
191
|
+
margin-top: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__row--top-aligned {
|
|
195
|
+
display: block;
|
|
196
|
+
margin-bottom: 0;
|
|
197
|
+
padding-top: 0;
|
|
198
|
+
padding-bottom: 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property,
|
|
202
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property > tbody {
|
|
203
|
+
display: block;
|
|
204
|
+
width: 100%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property td {
|
|
208
|
+
display: block;
|
|
209
|
+
width: 100%;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property td.data-content-pane__predicate-cell {
|
|
214
|
+
width: 100%;
|
|
215
|
+
min-width: 0;
|
|
216
|
+
padding-bottom: 0.1rem;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property td:not(.data-content-pane__predicate-cell) {
|
|
220
|
+
padding-top: 0;
|
|
221
|
+
padding-left: 0.85rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (max-width: 700px) {
|
|
225
|
+
div.data-content-pane .data-content-pane__row--root {
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: flex-start;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
div.data-content-pane .data-content-pane__subject-cell {
|
|
231
|
+
flex: 0 0 40%;
|
|
232
|
+
width: 40%;
|
|
233
|
+
max-width: 40%;
|
|
234
|
+
padding-right: var(--spacing-xs, 0.75rem);
|
|
235
|
+
padding-bottom: 0;
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
div.data-content-pane .data-content-pane__details-cell {
|
|
240
|
+
flex: 0 0 60%;
|
|
241
|
+
width: 60%;
|
|
242
|
+
max-width: 60%;
|
|
243
|
+
box-sizing: border-box;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
div.data-content-pane .data-content-pane__row--top-aligned {
|
|
247
|
+
display: block;
|
|
248
|
+
margin-top: 0;
|
|
249
|
+
margin-bottom: 0;
|
|
250
|
+
padding-top: 0;
|
|
251
|
+
padding-bottom: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td {
|
|
255
|
+
display: block;
|
|
256
|
+
width: 100%;
|
|
257
|
+
box-sizing: border-box;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td.data-content-pane__predicate-cell {
|
|
261
|
+
min-width: 0;
|
|
262
|
+
max-width: none;
|
|
263
|
+
width: 100%;
|
|
264
|
+
padding-bottom: var(--spacing-small, 0.1rem);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell) {
|
|
268
|
+
padding-top: 0;
|
|
269
|
+
padding-left: 0.85rem;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DataBrowserContext } from '
|
|
2
|
-
import { BlankNode, NamedNode, Statement } from '
|
|
1
|
+
import type { DataBrowserContext } from 'pane-registry';
|
|
2
|
+
import type { BlankNode, NamedNode, Statement } from 'rdflib';
|
|
3
|
+
import './dataContentPane.css';
|
|
3
4
|
type SubjectTerm = NamedNode | BlankNode;
|
|
4
5
|
export declare const dataContentPane: {
|
|
5
6
|
icon: string;
|