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,250 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.formPane = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
var _solidLogic = require("solid-logic");
|
|
9
|
+
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
10
|
+
require("./formPane.css");
|
|
11
|
+
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); }
|
|
12
|
+
/*
|
|
13
|
+
** Pane for running existing forms for any object
|
|
14
|
+
**
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const ns = UI.ns;
|
|
18
|
+
function isNamedNode(term) {
|
|
19
|
+
return term?.termType === 'NamedNode';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* The following helper was generated by AI GPT-5.4 Model */
|
|
23
|
+
/* Prompt: Add a compatibility shim in the form pane for mixed `ui:Group` plus field typing. */
|
|
24
|
+
function normalizeAmbiguousFieldTypes(store, form) {
|
|
25
|
+
const formDoc = form.doc ? form.doc() : undefined;
|
|
26
|
+
const types = store.each(form, ns.rdf('type'), undefined, formDoc).filter(isNamedNode);
|
|
27
|
+
const hasGroupType = types.some(type => type.sameTerm(ns.ui('Group')));
|
|
28
|
+
const hasOtherFieldType = types.some(type => !type.sameTerm(ns.ui('Group')) && !type.sameTerm(ns.ui('Form')));
|
|
29
|
+
const hasProperty = !!store.any(form, ns.ui('property'), undefined, formDoc);
|
|
30
|
+
const partsList = store.any(form, ns.ui('parts'), undefined, formDoc);
|
|
31
|
+
const hasParts = !!partsList?.elements?.length || store.each(form, ns.ui('part'), undefined, formDoc).length > 0;
|
|
32
|
+
|
|
33
|
+
// Some legacy forms mark a leaf field as both ui:Group and a concrete input type.
|
|
34
|
+
// solid-ui may then choose the Group renderer and produce an empty nested box.
|
|
35
|
+
if (hasGroupType && hasOtherFieldType && hasProperty && !hasParts) {
|
|
36
|
+
store.removeMany(form, ns.rdf('type'), ns.ui('Group'), formDoc);
|
|
37
|
+
}
|
|
38
|
+
const listParts = partsList?.elements ?? [];
|
|
39
|
+
for (const part of listParts) {
|
|
40
|
+
if (isNamedNode(part)) {
|
|
41
|
+
normalizeAmbiguousFieldTypes(store, part);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const unorderedParts = store.each(form, ns.ui('part'), undefined, formDoc);
|
|
45
|
+
for (const part of unorderedParts) {
|
|
46
|
+
if (isNamedNode(part)) {
|
|
47
|
+
normalizeAmbiguousFieldTypes(store, part);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function tagMobileTextareaRows(renderedForm) {
|
|
52
|
+
const textareas = Array.from(renderedForm.querySelectorAll('textarea'));
|
|
53
|
+
for (const textarea of textareas) {
|
|
54
|
+
let row = textarea.parentElement;
|
|
55
|
+
while (row) {
|
|
56
|
+
const firstChild = row.firstElementChild;
|
|
57
|
+
const hasLabelColumn = !!firstChild && (firstChild.classList.contains('formFieldName') || firstChild.querySelector('a') !== null);
|
|
58
|
+
if (hasLabelColumn && row.children.length >= 2) {
|
|
59
|
+
row.classList.add('formPane__mobileTextareaRow');
|
|
60
|
+
firstChild.classList.add('formPane__mobileTextareaLabel');
|
|
61
|
+
const valueColumn = row.children[1];
|
|
62
|
+
valueColumn.classList.add('formPane__mobileTextareaValue');
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
row = row.parentElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const formPane = exports.formPane = {
|
|
70
|
+
icon: UI.icons.iconBase + 'noun_122196.svg',
|
|
71
|
+
name: 'form',
|
|
72
|
+
audience: [ns.solid('PowerUser')],
|
|
73
|
+
// Does the subject deserve this pane?
|
|
74
|
+
label: function (subject, _context) {
|
|
75
|
+
const n = UI.widgets.formsFor(subject).length;
|
|
76
|
+
UI.log.debug('Form pane: forms for ' + subject + ': ' + n);
|
|
77
|
+
if (!n) return null;
|
|
78
|
+
return '' + n + ' forms';
|
|
79
|
+
},
|
|
80
|
+
render: function (subject, context) {
|
|
81
|
+
const kb = context.session.store;
|
|
82
|
+
const dom = context.dom;
|
|
83
|
+
const box = dom.createElement('div');
|
|
84
|
+
box.setAttribute('class', 'formPane');
|
|
85
|
+
function applyEnvironmentAttributes(element) {
|
|
86
|
+
const environment = context.environment ?? {};
|
|
87
|
+
element.dataset.layout = environment.layout ?? 'desktop';
|
|
88
|
+
}
|
|
89
|
+
applyEnvironmentAttributes(box);
|
|
90
|
+
const mention = function (message, modifier = 'info') {
|
|
91
|
+
const pre = dom.createElement('p');
|
|
92
|
+
pre.className = `formPane__message formPane__message--${modifier}`;
|
|
93
|
+
box.appendChild(pre).textContent = message;
|
|
94
|
+
return pre;
|
|
95
|
+
};
|
|
96
|
+
const complain = function (message) {
|
|
97
|
+
return mention(message, 'error');
|
|
98
|
+
};
|
|
99
|
+
const complainIfBad = function (ok, body) {
|
|
100
|
+
if (ok) {
|
|
101
|
+
// setModifiedDate(store, kb, store);
|
|
102
|
+
// rerender(box); // Deleted forms at the moment
|
|
103
|
+
} else complain('Sorry, failed to save your change:\n' + body);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
// The question of where to store this data about subject
|
|
107
|
+
// This in general needs a whole lot more thought
|
|
108
|
+
// and it connects to the discoverbility through links
|
|
109
|
+
|
|
110
|
+
// const t = kb.findTypeURIs(subject)
|
|
111
|
+
|
|
112
|
+
const me = _solidLogic.authn.currentUser();
|
|
113
|
+
if (!me) {
|
|
114
|
+
mention('You are not logged in. If you log in and have ' + 'workspaces then you would be able to select workspace in which ' + 'to put this new information');
|
|
115
|
+
} else {
|
|
116
|
+
const ws = kb.each(me, ns.ui('workspace'));
|
|
117
|
+
if (ws.length === 0) {
|
|
118
|
+
mention('You don\'t seem to have any workspaces defined. ' + 'A workspace is a place on the web (http://..) or in ' + 'the file system (file:///) to store application data.\n');
|
|
119
|
+
} else {
|
|
120
|
+
// @@
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Render forms using a given store
|
|
125
|
+
|
|
126
|
+
const renderFormsFor = function (storeNode, targetSubject) {
|
|
127
|
+
kb.fetcher.nowOrWhenFetched(storeNode.uri, targetSubject, function (ok, body) {
|
|
128
|
+
if (!ok) return complain('Cannot load store ' + storeNode.uri + ': ' + body);
|
|
129
|
+
|
|
130
|
+
// Render the forms
|
|
131
|
+
|
|
132
|
+
const forms = UI.widgets.formsFor(targetSubject);
|
|
133
|
+
|
|
134
|
+
// complain('Form for editing this form:');
|
|
135
|
+
for (const form of forms) {
|
|
136
|
+
normalizeAmbiguousFieldTypes(kb, form);
|
|
137
|
+
const heading = dom.createElement('h4');
|
|
138
|
+
heading.classList.add('formPane__heading');
|
|
139
|
+
box.appendChild(heading);
|
|
140
|
+
/* The edit Form is not working in the local environment. it does not find
|
|
141
|
+
the ui FormForm ontology. Need to research further and check in production. */
|
|
142
|
+
if (form.uri) {
|
|
143
|
+
const formStore = $rdf.Util.uri.document(form.uri);
|
|
144
|
+
if (formStore.uri !== form.uri) {
|
|
145
|
+
const editButton = box.appendChild(UI.widgets.editFormButton(dom, box, form, formStore, complainIfBad));
|
|
146
|
+
editButton.classList.add('formPane__editButton');
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const anchor = dom.createElement('a');
|
|
150
|
+
anchor.classList.add('formPane__headingLink');
|
|
151
|
+
anchor.setAttribute('href', form.uri);
|
|
152
|
+
heading.insertBefore(anchor, heading.firstChild);
|
|
153
|
+
anchor.textContent = UI.utils.label(form, true);
|
|
154
|
+
|
|
155
|
+
/* Keep tis as a reminder to let a New one have its URI given by user
|
|
156
|
+
mention("Where will this information be stored?")
|
|
157
|
+
const ele = dom.createElement('input');
|
|
158
|
+
box.appendChild(ele);
|
|
159
|
+
ele.setAttribute('type', 'text');
|
|
160
|
+
ele.setAttribute('size', '72');
|
|
161
|
+
ele.setAttribute('maxlength', '1024');
|
|
162
|
+
ele.setAttribute('style', 'font-size: 80%; color:#222;');
|
|
163
|
+
ele.value = store.uri
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
UI.widgets.appendForm(dom, box, {}, targetSubject, form, storeNode, complainIfBad);
|
|
167
|
+
tagMobileTextareaRows(box);
|
|
168
|
+
}
|
|
169
|
+
}); // end: when store loded
|
|
170
|
+
}; // renderFormsFor
|
|
171
|
+
|
|
172
|
+
// Figure out what store
|
|
173
|
+
|
|
174
|
+
// Which places are editable and have stuff about the subject?
|
|
175
|
+
|
|
176
|
+
let targetStore = null;
|
|
177
|
+
|
|
178
|
+
// 1. The document URI of the subject itself
|
|
179
|
+
const docuri = $rdf.Util.uri.docpart(subject.uri);
|
|
180
|
+
if (kb.updater.editable(docuri, kb)) {
|
|
181
|
+
targetStore = subject.doc();
|
|
182
|
+
} // an editable data file with hash
|
|
183
|
+
|
|
184
|
+
const annotationStore = kb.any(kb.sym(docuri), ns.link('annotationStore'));
|
|
185
|
+
if (!targetStore && isNamedNode(annotationStore)) {
|
|
186
|
+
targetStore = annotationStore;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// 2. where stuff is already stored
|
|
190
|
+
if (!targetStore) {
|
|
191
|
+
const docs = new Map();
|
|
192
|
+
kb.statementsMatching(subject).forEach(function (st) {
|
|
193
|
+
if (st.why.value) {
|
|
194
|
+
docs.set(st.why.value, 1);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
kb.statementsMatching(undefined, undefined, subject).forEach(function (st) {
|
|
198
|
+
if (st.why.value) {
|
|
199
|
+
docs.set(st.why.value, 2);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
const docList = Array.from(docs.entries()).sort(function ([uriA, scoreA], [uriB, scoreB]) {
|
|
203
|
+
return scoreA - scoreB || uriA.localeCompare(uriB);
|
|
204
|
+
});
|
|
205
|
+
for (const [uri] of docList) {
|
|
206
|
+
if (uri && kb.updater.editable(uri, kb)) {
|
|
207
|
+
targetStore = kb.sym(uri);
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// 3. In a workspace store
|
|
214
|
+
const date = '2014'; // @@@@@@@@@@@@ pass as parameter
|
|
215
|
+
|
|
216
|
+
if (targetStore) {
|
|
217
|
+
// mention("@@ Ok, we have a store <" + store.uri + ">.");
|
|
218
|
+
renderFormsFor(targetStore, subject);
|
|
219
|
+
} else {
|
|
220
|
+
complain('No suitable store is known, to edit <' + subject.uri + '>.');
|
|
221
|
+
const workspaceDetails = {
|
|
222
|
+
noun: 'form',
|
|
223
|
+
appPathSegment: 'form'
|
|
224
|
+
};
|
|
225
|
+
const foobarbaz = UI.login.selectWorkspace(dom, workspaceDetails, function (workspaceUri) {
|
|
226
|
+
const workspace = workspaceUri ? kb.sym(workspaceUri) : null;
|
|
227
|
+
if (!workspace) {
|
|
228
|
+
complain('Workspace selection was cancelled.');
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
mention('Workspace selected OK: ' + workspace.uri);
|
|
232
|
+
const activities = kb.each(undefined, ns.space('workspace'), workspace).filter(isNamedNode);
|
|
233
|
+
for (let j = 0; j < activities.length; j++) {
|
|
234
|
+
const act = activities[j];
|
|
235
|
+
const subjectDoc2 = kb.any(act, ns.space('store'));
|
|
236
|
+
const start = kb.any(act, ns.cal('dtstart'))?.value;
|
|
237
|
+
const end = kb.any(act, ns.cal('dtend'))?.value;
|
|
238
|
+
if (isNamedNode(subjectDoc2) && start && end && start <= date && end > date) {
|
|
239
|
+
renderFormsFor(subjectDoc2, subject);
|
|
240
|
+
break;
|
|
241
|
+
} else {
|
|
242
|
+
complain('Note no suitable annotation store in activity: ' + act);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
box.appendChild(foobarbaz);
|
|
247
|
+
}
|
|
248
|
+
return box;
|
|
249
|
+
}
|
|
250
|
+
};
|
package/dist/home/homePane.d.ts
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
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 _solidUi = require("solid-ui");
|
|
9
|
+
/* Home Pane
|
|
10
|
+
**
|
|
11
|
+
** The home pane is avaiable everywhere and allows a user
|
|
12
|
+
** to
|
|
13
|
+
** - keep track of their stuff
|
|
14
|
+
** - make new things, and possibly
|
|
15
|
+
** - keep track of accounts and workspaces etc
|
|
16
|
+
**
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const HomePaneSource = {
|
|
20
|
+
icon: _solidUi.icons.iconBase + 'noun_547570.svg',
|
|
21
|
+
// noun_25830
|
|
22
|
+
|
|
23
|
+
global: true,
|
|
24
|
+
name: 'home',
|
|
25
|
+
// Does the subject deserve an home pane?
|
|
26
|
+
//
|
|
27
|
+
// yes, always!
|
|
28
|
+
//
|
|
29
|
+
label: function () {
|
|
30
|
+
return 'home';
|
|
31
|
+
},
|
|
32
|
+
audience: [_solidUi.ns.solid('PowerUser')],
|
|
33
|
+
render: function (subject, context) {
|
|
34
|
+
const dom = context.dom;
|
|
35
|
+
const showContent = async function () {
|
|
36
|
+
const homePaneContext = {
|
|
37
|
+
div,
|
|
38
|
+
dom,
|
|
39
|
+
statusArea: div,
|
|
40
|
+
me
|
|
41
|
+
};
|
|
42
|
+
/*
|
|
43
|
+
div.appendChild(dom.createElement('h4')).textContent = 'Login status'
|
|
44
|
+
var loginStatusDiv = div.appendChild(context.dom.createElement('div'))
|
|
45
|
+
// TODO: Find out what the actual type is:
|
|
46
|
+
type UriType = unknown;
|
|
47
|
+
loginStatusDiv.appendChild(UI.login.loginStatusBox(context.dom, () => {
|
|
48
|
+
// Here we know new log in status
|
|
49
|
+
}))
|
|
50
|
+
*/
|
|
51
|
+
div.appendChild(dom.createElement('h4')).textContent = 'Create new thing somewhere';
|
|
52
|
+
const creationDiv = div.appendChild(dom.createElement('div'));
|
|
53
|
+
const creationContext = {
|
|
54
|
+
div: creationDiv,
|
|
55
|
+
dom,
|
|
56
|
+
statusArea: div,
|
|
57
|
+
me
|
|
58
|
+
};
|
|
59
|
+
const relevantPanes = await _solidUi.login.filterAvailablePanes(context.session.paneRegistry.list);
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
_solidUi.create.newThingUI(creationContext, context, relevantPanes); // newUI Have to pass panes down
|
|
62
|
+
|
|
63
|
+
_solidUi.login.registrationList(homePaneContext, {}).then(function () {});
|
|
64
|
+
};
|
|
65
|
+
const div = dom.createElement('div');
|
|
66
|
+
const me = _solidLogic.authn.currentUser(); // this will be incorrect if not logged in
|
|
67
|
+
|
|
68
|
+
showContent();
|
|
69
|
+
return div;
|
|
70
|
+
}
|
|
71
|
+
}; // pane object
|
|
72
|
+
|
|
73
|
+
// ends
|
|
74
|
+
var _default = exports.default = HomePaneSource;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
.human-readable-pane {
|
|
2
|
+
display: block;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.human-readable-pane__container {
|
|
10
|
+
display: block;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
overflow-x: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.human-readable-pane__frame {
|
|
19
|
+
display: block;
|
|
20
|
+
border: 1px solid;
|
|
21
|
+
padding: 1rem;
|
|
22
|
+
height: var(--human-readable-pane-height, 30rem);
|
|
23
|
+
min-width: 0;
|
|
24
|
+
max-width: 100%;
|
|
25
|
+
width: 100%;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
resize: both;
|
|
28
|
+
overflow: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.human-readable-pane__frame--iframe {
|
|
32
|
+
padding: 0;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
width: 100%;
|
|
35
|
+
max-width: 100%;
|
|
36
|
+
min-height: 18rem;
|
|
37
|
+
background: var(--color-background, white);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.human-readable-pane__frame--markdown {
|
|
41
|
+
overflow-wrap: anywhere;
|
|
42
|
+
word-break: break-word;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.human-readable-pane__frame--plain-text {
|
|
46
|
+
font-family: monospace;
|
|
47
|
+
white-space: pre-wrap;
|
|
48
|
+
overflow-wrap: anywhere;
|
|
49
|
+
word-break: break-word;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.human-readable-pane__frame--markdown > * {
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.human-readable-pane__frame--markdown img,
|
|
58
|
+
.human-readable-pane__frame--markdown video,
|
|
59
|
+
.human-readable-pane__frame--markdown canvas,
|
|
60
|
+
.human-readable-pane__frame--markdown iframe {
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
height: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.human-readable-pane__frame--markdown pre,
|
|
66
|
+
.human-readable-pane__frame--markdown code {
|
|
67
|
+
max-width: 100%;
|
|
68
|
+
overflow-wrap: anywhere;
|
|
69
|
+
word-break: break-word;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.human-readable-pane__frame--markdown pre {
|
|
73
|
+
white-space: pre-wrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.human-readable-pane__frame--markdown table {
|
|
77
|
+
display: block;
|
|
78
|
+
width: 100%;
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
overflow-x: auto;
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.human-readable-pane__frame--markdown th,
|
|
85
|
+
.human-readable-pane__frame--markdown td {
|
|
86
|
+
white-space: normal;
|
|
87
|
+
overflow-wrap: anywhere;
|
|
88
|
+
word-break: break-word;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame {
|
|
92
|
+
padding: 0.75rem;
|
|
93
|
+
resize: none;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame--markdown,
|
|
98
|
+
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame--plain-text {
|
|
99
|
+
overflow-wrap: anywhere;
|
|
100
|
+
word-break: break-word;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame--iframe {
|
|
104
|
+
width: 100%;
|
|
105
|
+
max-width: 100%;
|
|
106
|
+
min-height: 16rem;
|
|
107
|
+
height: min(var(--human-readable-pane-height, 30rem), 75vh);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (max-width: 576px) {
|
|
111
|
+
.human-readable-pane__frame {
|
|
112
|
+
padding: 0.75rem;
|
|
113
|
+
resize: none;
|
|
114
|
+
min-width: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.human-readable-pane__frame--markdown,
|
|
118
|
+
.human-readable-pane__frame--plain-text {
|
|
119
|
+
overflow-wrap: anywhere;
|
|
120
|
+
word-break: break-word;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.human-readable-pane__frame--iframe {
|
|
124
|
+
width: 100%;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
min-height: 16rem;
|
|
127
|
+
height: min(var(--human-readable-pane-height, 30rem), 75vh);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DataBrowserContext } from '
|
|
2
|
-
import { NamedNode } from '
|
|
1
|
+
import type { DataBrowserContext } from 'pane-registry';
|
|
2
|
+
import type { NamedNode } from 'rdflib';
|
|
3
|
+
import './humanReadablePane.css';
|
|
3
4
|
type HumanReadableIcon = string | Promise<string>;
|
|
4
5
|
type HumanReadablePaneDefinition = {
|
|
5
6
|
icon: (subject: NamedNode, context: DataBrowserContext) => HumanReadableIcon;
|