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,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
|
+
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); }
|
|
10
|
+
/* Attachment Pane
|
|
11
|
+
**
|
|
12
|
+
** - Attach a document to a thing
|
|
13
|
+
** - View attachments
|
|
14
|
+
** - Look at all unattached Supporting Documents.
|
|
15
|
+
** - Drag a document onto the pane to attach it @@
|
|
16
|
+
**
|
|
17
|
+
**
|
|
18
|
+
*/
|
|
19
|
+
var _default = exports.default = {
|
|
20
|
+
icon: UI.icons.iconBase + 'noun_25830.svg',
|
|
21
|
+
// noun_25830
|
|
22
|
+
|
|
23
|
+
name: 'attachments',
|
|
24
|
+
// Does the subject deserve an attachments pane?
|
|
25
|
+
//
|
|
26
|
+
// In this case we will render any thing which is in any subclass of
|
|
27
|
+
// certain classes, or also the certain classes themselves, as a
|
|
28
|
+
// triage tool for correlating many attachees with attachments.
|
|
29
|
+
// We also offer the pane for anything of any class which just has an attachment already.
|
|
30
|
+
//
|
|
31
|
+
label: function (subject, context) {
|
|
32
|
+
const kb = context.session.store;
|
|
33
|
+
const t = kb.findTypeURIs(subject);
|
|
34
|
+
const QU = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#');
|
|
35
|
+
const WF = $rdf.Namespace('http://www.w3.org/2005/01/wf/flow#');
|
|
36
|
+
if (t['http://www.w3.org/ns/pim/trip#Trip'] ||
|
|
37
|
+
// If in any subclass
|
|
38
|
+
subject.uri === 'http://www.w3.org/ns/pim/trip#Trip' || t['http://www.w3.org/2005/01/wf/flow#Task'] || t['http://www.w3.org/2000/10/swap/pim/qif#Transaction'] ||
|
|
39
|
+
// subject.uri == 'http://www.w3.org/2000/10/swap/pim/qif#Transaction' ||
|
|
40
|
+
QU('Transaction') in kb.findSuperClassesNT(subject) || kb.holds(subject, WF('attachment'))) {
|
|
41
|
+
return 'attachments';
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
},
|
|
45
|
+
render: function (subject, context) {
|
|
46
|
+
const dom = context.dom;
|
|
47
|
+
const kb = context.session.store;
|
|
48
|
+
const WF = $rdf.Namespace('http://www.w3.org/2005/01/wf/flow#');
|
|
49
|
+
const QU = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#');
|
|
50
|
+
|
|
51
|
+
// ////////////////////////////////////////////////////////////////////////////
|
|
52
|
+
|
|
53
|
+
const complain = function complain(message) {
|
|
54
|
+
const pre = dom.createElement('pre');
|
|
55
|
+
pre.setAttribute('style', 'background-color: pink');
|
|
56
|
+
div.appendChild(pre);
|
|
57
|
+
pre.appendChild(dom.createTextNode(message));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// Where can we write about this thing?
|
|
61
|
+
//
|
|
62
|
+
// Returns term for document or null
|
|
63
|
+
const findStore = function (kb, subject) {
|
|
64
|
+
if (kb.updater.editable(subject.doc(), kb)) return subject.doc();
|
|
65
|
+
const store = kb.any(subject.doc(), QU('annotationStore'));
|
|
66
|
+
return store;
|
|
67
|
+
};
|
|
68
|
+
const div = dom.createElement('div');
|
|
69
|
+
const esc = UI.utils.escapeForXML;
|
|
70
|
+
div.setAttribute('class', 'attachPane');
|
|
71
|
+
div.innerHTML = '<h1>' + esc(UI.utils.label(subject, true)) + ' attachments</h1>'; //
|
|
72
|
+
|
|
73
|
+
const predicate = WF('attachment');
|
|
74
|
+
const range = QU('SupportingDocument');
|
|
75
|
+
let subjects, multi;
|
|
76
|
+
const options = {};
|
|
77
|
+
let currentMode = 0; // 0 -> Show all; 1 -> Attached; 2 -> unattached
|
|
78
|
+
let currentSubject = null;
|
|
79
|
+
let currentObject = null;
|
|
80
|
+
const objectType = QU('SupportingDocument');
|
|
81
|
+
|
|
82
|
+
// Find all members of the class which we know about
|
|
83
|
+
// and sort them by an appropriate property. @@ Move to library
|
|
84
|
+
//
|
|
85
|
+
|
|
86
|
+
const getSortKeySimple = function (_c) {
|
|
87
|
+
const uriMap = {
|
|
88
|
+
'http://www.w3.org/2005/01/wf/flow#Task': 'http://purl.org/dc/elements/1.1/created',
|
|
89
|
+
'http://www.w3.org/ns/pim/trip#Trip': 'http://www.w3.org/2002/12/cal/ical#dtstart',
|
|
90
|
+
'http://www.w3.org/2000/10/swap/pim/qif#Transaction': 'http://www.w3.org/2000/10/swap/pim/qif#date',
|
|
91
|
+
'http://www.w3.org/2000/10/swap/pim/qif#SupportingDocument': 'http://purl.org/dc/elements/1.1/date'
|
|
92
|
+
};
|
|
93
|
+
const uri = uriMap[subject.uri];
|
|
94
|
+
return uri ? kb.sym(uri) : kb.any(subject, UI.ns.ui('sortBy'));
|
|
95
|
+
};
|
|
96
|
+
const getSortKey = function (c) {
|
|
97
|
+
let k = getSortKeySimple(c.uri);
|
|
98
|
+
if (k) return k;
|
|
99
|
+
const sup = kb.findSuperClassesNT(c);
|
|
100
|
+
for (const cl in sup) {
|
|
101
|
+
// note unordered -- could be closest first
|
|
102
|
+
k = getSortKeySimple(kb.fromNT(cl).uri);
|
|
103
|
+
if (k) return k;
|
|
104
|
+
}
|
|
105
|
+
return undefined; // failure
|
|
106
|
+
};
|
|
107
|
+
const getMembersAndSort = function (subject) {
|
|
108
|
+
const sortBy = getSortKey(subject);
|
|
109
|
+
let u, x, key;
|
|
110
|
+
const uriHash = kb.findMemberURIs(subject);
|
|
111
|
+
const pairs = [];
|
|
112
|
+
const subjects = [];
|
|
113
|
+
for (u in uriHash) {
|
|
114
|
+
// @@ TODO: Write away the need for exception on next line
|
|
115
|
+
|
|
116
|
+
if (Object.prototype.hasOwnProperty.call(uriHash, u)) {
|
|
117
|
+
x = kb.sym(u);
|
|
118
|
+
if (sortBy) {
|
|
119
|
+
key = kb.any(x, sortBy);
|
|
120
|
+
if (!key) {
|
|
121
|
+
// complain("No key "+key+" sortby "+sortBy+" for "+x)
|
|
122
|
+
key = '8888-12-31';
|
|
123
|
+
} else {
|
|
124
|
+
key = key.value;
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
complain('No sortby ' + sortBy + ' for ' + x);
|
|
128
|
+
key = '9999-12-31';
|
|
129
|
+
}
|
|
130
|
+
// key = (sortBy && kb.any(x, sortBy)) || kb.literal("9999-12-31") // Undated appear future
|
|
131
|
+
// if (!key) complain("Sort: '"+key+"' No "+sortBy+" for "+x) // Assume just not in this year
|
|
132
|
+
pairs.push([key, x]);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
pairs.sort();
|
|
136
|
+
pairs.reverse(); // @@ Descending order .. made a toggle?
|
|
137
|
+
for (let i = 0; i < pairs.length; i++) {
|
|
138
|
+
subjects.push(pairs[i][1]);
|
|
139
|
+
}
|
|
140
|
+
return subjects;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// Set up a triage of many class members against documents or just one
|
|
144
|
+
if (subject.uri === 'http://www.w3.org/ns/pim/trip#Trip' || QU('Transaction') in kb.findSuperClassesNT(subject)
|
|
145
|
+
// subject.uri == 'http://www.w3.org/2000/10/swap/pim/qif#Transaction'
|
|
146
|
+
) {
|
|
147
|
+
multi = true;
|
|
148
|
+
subjects = getMembersAndSort(subject);
|
|
149
|
+
} else {
|
|
150
|
+
currentSubject = subject;
|
|
151
|
+
currentMode = 1; // Show attached only.
|
|
152
|
+
subjects = [subject];
|
|
153
|
+
multi = false;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// var store = findStore(kb, subject)
|
|
157
|
+
// if (!store) complain("There is no annotation store for: "+subject.uri)
|
|
158
|
+
|
|
159
|
+
// var objects = kb.each(undefined, ns.rdf('type'), range)
|
|
160
|
+
const objects = getMembersAndSort(range);
|
|
161
|
+
if (!objects) complain('objects:' + objects.length);
|
|
162
|
+
const deselectObject = function () {
|
|
163
|
+
currentObject = null;
|
|
164
|
+
preview.innerHTML = '';
|
|
165
|
+
};
|
|
166
|
+
const showFiltered = function (mode) {
|
|
167
|
+
const filtered = mode === 0 ? objects : getFiltered();
|
|
168
|
+
// eslint-enable
|
|
169
|
+
UI.widgets.selectorPanelRefresh(objectList, dom, kb, objectType, predicate, true, filtered, options, showObject, linkClicked);
|
|
170
|
+
if (filtered.length === 1) {
|
|
171
|
+
currentObject = filtered[0];
|
|
172
|
+
showObject(currentObject, null, true); // @@ (Sure?) if only one select it.
|
|
173
|
+
} else {
|
|
174
|
+
deselectObject();
|
|
175
|
+
}
|
|
176
|
+
function getFiltered() {
|
|
177
|
+
return mode === 1 ? currentSubject === null ? objects.filter(y => !!kb.holds(undefined, predicate, y)) : objects.filter(y => !!kb.holds(currentSubject, predicate, y)) : objects.filter(y => kb.each(undefined, predicate, y).length === 0);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
const setAttachment = function (x, y, value, refresh) {
|
|
181
|
+
if (kb.holds(x, predicate, y) === value) return;
|
|
182
|
+
const verb = value ? 'attach' : 'detach';
|
|
183
|
+
// complain("Info: starting to "+verb+" " + y.uri + " to "+x.uri+ ":\n")
|
|
184
|
+
const linkDone3 = function (uri, ok, body) {
|
|
185
|
+
if (ok) {
|
|
186
|
+
// complain("Success "+verb+" "+y.uri+" to "+x.uri+ ":\n"+ body)
|
|
187
|
+
refresh();
|
|
188
|
+
} else {
|
|
189
|
+
complain('Error: Unable to ' + verb + ' ' + y.uri + ' to ' + x.uri + ':\n' + body);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
const store = findStore(kb, x);
|
|
193
|
+
if (!store) {
|
|
194
|
+
complain('There is no annotation store for: ' + x.uri);
|
|
195
|
+
} else {
|
|
196
|
+
const sts = [$rdf.st(x, predicate, y, store)];
|
|
197
|
+
if (value) {
|
|
198
|
+
kb.updater.update([], sts, linkDone3);
|
|
199
|
+
} else {
|
|
200
|
+
kb.updater.update(sts, [], linkDone3);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const linkClicked = function (x, event, inverse, refresh) {
|
|
205
|
+
let s, o;
|
|
206
|
+
if (inverse) {
|
|
207
|
+
// Objectlist
|
|
208
|
+
if (!currentSubject) {
|
|
209
|
+
complain('No subject for the link has been selected');
|
|
210
|
+
return;
|
|
211
|
+
} else {
|
|
212
|
+
s = currentSubject;
|
|
213
|
+
o = x;
|
|
214
|
+
}
|
|
215
|
+
} else {
|
|
216
|
+
// Subjectlist
|
|
217
|
+
if (!currentObject) {
|
|
218
|
+
complain('No object for the link has been selected');
|
|
219
|
+
return;
|
|
220
|
+
} else {
|
|
221
|
+
s = x;
|
|
222
|
+
o = currentObject;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
setAttachment(s, o, !kb.holds(s, predicate, o), refresh); // @@ toggle
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// When you click on a subject, filter the objects connected to the subject in Mode 1
|
|
229
|
+
const showSubject = function (x, event, selected) {
|
|
230
|
+
if (selected) {
|
|
231
|
+
currentSubject = x;
|
|
232
|
+
} else {
|
|
233
|
+
currentSubject = null;
|
|
234
|
+
if (currentMode === 1) deselectObject();
|
|
235
|
+
} // If all are displayed, refresh would just annoy:
|
|
236
|
+
if (currentMode !== 0) showFiltered(currentMode); // Refresh the objects
|
|
237
|
+
};
|
|
238
|
+
if (multi) {
|
|
239
|
+
const subjectList = UI.widgets.selectorPanel(dom, kb, subject, predicate, false, subjects, options, showSubject, linkClicked);
|
|
240
|
+
subjectList.setAttribute('style', 'background-color: white; width: 25em; height: 100%; padding: 0 em; overflow:scroll; float:left');
|
|
241
|
+
div.appendChild(subjectList);
|
|
242
|
+
}
|
|
243
|
+
const showObject = function (x, event, selected) {
|
|
244
|
+
if (!selected) {
|
|
245
|
+
deselectObject();
|
|
246
|
+
preview.innerHTML = ''; // Clean out what is there
|
|
247
|
+
// complain("Show object "+x.uri)
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
currentObject = x;
|
|
251
|
+
try {
|
|
252
|
+
/*
|
|
253
|
+
var dispalyable = function (kb, x) {
|
|
254
|
+
var cts = kb.fetcher.getHeader(x, 'content-type')
|
|
255
|
+
if (cts) {
|
|
256
|
+
var displayables = ['text/html', 'image/png', 'application/pdf']
|
|
257
|
+
for (var j = 0; j < cts.length; j++) {
|
|
258
|
+
for (var k = 0; k < displayables.length; k++) {
|
|
259
|
+
if (cts[j].indexOf(displayables[k]) >= 0) {
|
|
260
|
+
return true
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return false
|
|
266
|
+
}
|
|
267
|
+
*/
|
|
268
|
+
preview.innerHTML = 'Loading ....';
|
|
269
|
+
if (x.uri) {
|
|
270
|
+
kb.fetcher.load(x.uri).then(() => {
|
|
271
|
+
const outliner = context.getOutliner(dom);
|
|
272
|
+
const display = outliner.propertyTable(x); // ,table, pane
|
|
273
|
+
preview.innerHTML = '';
|
|
274
|
+
preview.appendChild(display);
|
|
275
|
+
}).catch(err => {
|
|
276
|
+
preview.textContent = 'Error loading ' + x.uri + ': ' + err;
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/*
|
|
280
|
+
if (dispalyable(kb, x) || x.uri.slice(-4) == ".pdf" || x.uri.slice(-4) == ".png" || x.uri.slice(-5) == ".html" ||
|
|
281
|
+
x.uri.slice(-5) == ".jpeg") { // @@@@@@ MAJOR KLUDGE! use metadata after HEAD
|
|
282
|
+
preview.innerHTML = '<iframe height="100%" width="100%"src="'
|
|
283
|
+
+ x.uri + '">' + x.uri + '</iframe>'
|
|
284
|
+
} else {
|
|
285
|
+
}
|
|
286
|
+
*/
|
|
287
|
+
} catch (e) {
|
|
288
|
+
preview.innerHTML = '<span style="background-color: pink;">' + 'Error:' + e + '</span>'; // @@ enc
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
div.setAttribute('style', 'background-color: white; width:40cm; height:20cm;');
|
|
292
|
+
const headerButtons = function (dom, labels, intial, callback) {
|
|
293
|
+
const head = dom.createElement('table');
|
|
294
|
+
let current = intial;
|
|
295
|
+
head.setAttribute('style', 'float: left; width: 30em; padding: 0.5em; height: 1.5em; background-color: #ddd; color: #444; font-weight: bold');
|
|
296
|
+
const tr = dom.createElement('tr');
|
|
297
|
+
const style0 = 'border-radius: 0.6em; text-align: center;';
|
|
298
|
+
const style1 = style0 + 'background-color: #ccc; color: black;';
|
|
299
|
+
head.appendChild(tr);
|
|
300
|
+
const setStyles = function () {
|
|
301
|
+
for (i = 0; i < labels.length; i++) {
|
|
302
|
+
buttons[i].setAttribute('style', i === current ? style1 : style0);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
let i, b;
|
|
306
|
+
const buttons = [];
|
|
307
|
+
for (i = 0; i < labels.length; i++) {
|
|
308
|
+
b = buttons[i] = dom.createElement('td');
|
|
309
|
+
b.textContent = labels[i];
|
|
310
|
+
tr.appendChild(buttons[i]);
|
|
311
|
+
const listen = function (b, i) {
|
|
312
|
+
b.addEventListener('click', function (_e) {
|
|
313
|
+
current = i;
|
|
314
|
+
setStyles();
|
|
315
|
+
callback(i);
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
listen(b, i);
|
|
319
|
+
}
|
|
320
|
+
setStyles();
|
|
321
|
+
return head;
|
|
322
|
+
};
|
|
323
|
+
const setMode = function (mode) {
|
|
324
|
+
if (mode !== currentMode) {
|
|
325
|
+
currentMode = mode;
|
|
326
|
+
deselectObject();
|
|
327
|
+
showFiltered(mode);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
const wrapper = dom.createElement('div');
|
|
331
|
+
wrapper.setAttribute('style', ' width: 30em; height: 100%; padding: 0em; float:left;');
|
|
332
|
+
// wrapper.appendChild(head)
|
|
333
|
+
div.appendChild(wrapper);
|
|
334
|
+
wrapper.appendChild(headerButtons(dom, ['all', 'attached', 'not attached'], currentMode, setMode));
|
|
335
|
+
const objectList = UI.widgets.selectorPanel(dom, kb, objectType, predicate, true, objects, options, showObject, linkClicked);
|
|
336
|
+
objectList.setAttribute('style', 'background-color: #ffe; width: 30em; height: 100%; padding: 0em; overflow:scroll;'); // float:left
|
|
337
|
+
wrapper.appendChild(objectList);
|
|
338
|
+
|
|
339
|
+
// objectList.insertBefore(head, objectList.firstChild)
|
|
340
|
+
|
|
341
|
+
const preview = dom.createElement('div');
|
|
342
|
+
preview.setAttribute('style', /* background-color: black; */'padding: 0em; margin: 0; height: 100%; overflow:scroll;');
|
|
343
|
+
div.appendChild(preview);
|
|
344
|
+
showFiltered(currentMode);
|
|
345
|
+
if (subjects.length > 0 && multi) {
|
|
346
|
+
const stores = {};
|
|
347
|
+
for (let k = 0; k < subjects.length; k++) {
|
|
348
|
+
const store = findStore(kb, subjects[k]);
|
|
349
|
+
if (store) stores[store.uri] = subjects[k];
|
|
350
|
+
// if (!store) complain("No store for "+subjects[k].uri)
|
|
351
|
+
}
|
|
352
|
+
for (const storeURI in stores) {
|
|
353
|
+
// var store = findStore(kb,subjects[subjectList.length-1])
|
|
354
|
+
const store = kb.sym(storeURI);
|
|
355
|
+
const mintBox = dom.createElement('div');
|
|
356
|
+
mintBox.setAttribute('style', 'clear: left; width: 20em; margin-top:2em; background-color:#ccc; border-radius: 1em; padding: 1em; font-weight: bold;');
|
|
357
|
+
mintBox.textContent = '+ New ' + UI.utils.label(subject);
|
|
358
|
+
mintBox.textContent += ' in ' + UI.utils.label(store);
|
|
359
|
+
const storeLab = dom.createElement('span');
|
|
360
|
+
storeLab.setAttribute('style', 'font-weight: normal; font-size: 80%; color: #777;');
|
|
361
|
+
storeLab.textContent = storeURI;
|
|
362
|
+
mintBox.appendChild(dom.createElement('br'));
|
|
363
|
+
mintBox.appendChild(storeLab);
|
|
364
|
+
/*
|
|
365
|
+
var mintButton = dom.createElement('img')
|
|
366
|
+
mintBox.appendChild(mintButton)
|
|
367
|
+
mintButton.setAttribute('src', ...); @@ Invokes master handler
|
|
368
|
+
*/
|
|
369
|
+
mintBox.addEventListener('click', function (_event) {
|
|
370
|
+
const thisForm = UI.widgets.promptForNew(dom, kb, subject, predicate, subject, null, store, function (ok, _body) {
|
|
371
|
+
if (!ok) {
|
|
372
|
+
// callback(ok, body); // @@ if ok, need some form of refresh of the select for the new thing
|
|
373
|
+
} else {
|
|
374
|
+
// Refresh @@
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
try {
|
|
378
|
+
div.insertBefore(thisForm, mintBox.nextSibling); // Sigh no insertAfter
|
|
379
|
+
} catch (e) {
|
|
380
|
+
div.appendChild(thisForm);
|
|
381
|
+
}
|
|
382
|
+
// var newObject = thisForm.AJAR_subject
|
|
383
|
+
}, false);
|
|
384
|
+
div.appendChild(mintBox);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// if (!me) complain("(You do not have your Web Id set. Set your Web ID to make changes.)")
|
|
389
|
+
|
|
390
|
+
return div;
|
|
391
|
+
}
|
|
392
|
+
}; // pane object
|
|
393
|
+
// ends
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
|
+
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); }
|
|
10
|
+
/* Single audio play Pane
|
|
11
|
+
**
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const ns = UI.ns;
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
icon: UI.icons.iconBase + 'noun_534313.svg',
|
|
17
|
+
name: 'audio',
|
|
18
|
+
// Does the subject deserve an audio play pane?
|
|
19
|
+
label: function (subject, context) {
|
|
20
|
+
const kb = context.session.store;
|
|
21
|
+
const typeURIs = kb.findTypeURIs(subject);
|
|
22
|
+
const prefix = $rdf.Util.mediaTypeClass('audio/*').uri.split('*')[0];
|
|
23
|
+
for (const t in typeURIs) {
|
|
24
|
+
if (t.startsWith(prefix)) return 'Play audio';
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
},
|
|
28
|
+
render: function (subject, context) {
|
|
29
|
+
const kb = context.session.store;
|
|
30
|
+
const dom = context.dom;
|
|
31
|
+
const options = {
|
|
32
|
+
autoplay: false,
|
|
33
|
+
chain: true,
|
|
34
|
+
chainAlbums: true,
|
|
35
|
+
loop: false
|
|
36
|
+
};
|
|
37
|
+
const removeExtension = function (str) {
|
|
38
|
+
const dot = str.lastIndexOf('.');
|
|
39
|
+
if (dot < 0) return str; // if any
|
|
40
|
+
const slash = str.lastIndexOf('/');
|
|
41
|
+
if (dot < slash) return str;
|
|
42
|
+
return str.slice(0, dot);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// True if there is another file like song.mp3 when this is "song 1.mp3"
|
|
46
|
+
// or this is song.m4a
|
|
47
|
+
//
|
|
48
|
+
const looksRedundant = function (x) {
|
|
49
|
+
const folder = kb.any(undefined, ns.ldp('contains'), x);
|
|
50
|
+
if (!folder) return false;
|
|
51
|
+
const contents = kb.each(folder, ns.ldp('contains'));
|
|
52
|
+
if (contents.length < 2) return false;
|
|
53
|
+
const thisName = x.uri;
|
|
54
|
+
for (let k = 0; k < contents.length; k++) {
|
|
55
|
+
const otherName = contents[k].uri;
|
|
56
|
+
if (thisName.length > otherName.length && thisName.startsWith(removeExtension(otherName))) {
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
if (thisName.endsWith('.m4a') && otherName.endsWith('.mp3') && removeExtension(thisName) === removeExtension(otherName)) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return false;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// Alternative methods could include:
|
|
67
|
+
// Accesing metadata in the audio contol, or paring the audio file
|
|
68
|
+
const guessNames = function (x) {
|
|
69
|
+
const a = x.uri.split('/').slice(-3); // Hope artist, album, track
|
|
70
|
+
const decode = function (str) {
|
|
71
|
+
try {
|
|
72
|
+
return decodeURIComponent(str);
|
|
73
|
+
} catch (e) {
|
|
74
|
+
return str;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
artistRow.textContent = decode(a[0]);
|
|
78
|
+
albumRow.textContent = decode(a[1]);
|
|
79
|
+
trackRow.textContent = decode(removeExtension(a[2]));
|
|
80
|
+
};
|
|
81
|
+
const moveOn = function (current, level) {
|
|
82
|
+
return new Promise(function (resolve) {
|
|
83
|
+
level = level || 0;
|
|
84
|
+
if (!options.chain) return resolve(null);
|
|
85
|
+
// Ideally navigate graph else cheat with URI munging:
|
|
86
|
+
const folder = kb.any(undefined, ns.ldp('contains'), current) || current.dir();
|
|
87
|
+
if (!folder) return resolve(null);
|
|
88
|
+
kb.fetcher.load(folder).then(function (_xhr) {
|
|
89
|
+
const contents = kb.each(folder, ns.ldp('contains')); // @@ load if not loaded
|
|
90
|
+
// if (contents.length < 2) return resolve(null) NO might move on from 1-track album
|
|
91
|
+
let j;
|
|
92
|
+
contents.sort(); // sort by URI which hopefully will get tracks in order
|
|
93
|
+
for (let i = 0; i < contents.length; i++) {
|
|
94
|
+
if (current.uri === contents[i].uri) {
|
|
95
|
+
j = (i + 1) % contents.length;
|
|
96
|
+
if (j === 0) {
|
|
97
|
+
if (!options.chainAlbums) {
|
|
98
|
+
if (options.loop) {
|
|
99
|
+
return resolve(contents[j]);
|
|
100
|
+
}
|
|
101
|
+
return resolve(null); // No more music needed
|
|
102
|
+
} else {
|
|
103
|
+
// chain albums
|
|
104
|
+
if (level === 1 || !options.chainAlbums) return resolve(null); // limit of navigating treee
|
|
105
|
+
moveOn(folder, level + 1).then(function (folder2) {
|
|
106
|
+
if (folder2) {
|
|
107
|
+
kb.fetcher.load(folder2).then(function (_xhr) {
|
|
108
|
+
const contents = kb.each(folder2, ns.ldp('contains'));
|
|
109
|
+
if (contents.length === 0) return resolve(null);
|
|
110
|
+
contents.sort();
|
|
111
|
+
console.log('New Album: ' + folder2);
|
|
112
|
+
return resolve(contents[0]); // Start off new album
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
} else {
|
|
118
|
+
return resolve(contents[j]);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
} // for
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
const endedListener = function (event) {
|
|
126
|
+
const current = kb.sym(event.target.getAttribute('src'));
|
|
127
|
+
if (!options.chain) return;
|
|
128
|
+
const tryNext = function (cur) {
|
|
129
|
+
const current = cur;
|
|
130
|
+
moveOn(current).then(function (next) {
|
|
131
|
+
if (!next) {
|
|
132
|
+
console.log('No successor to ' + current);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (!looksRedundant(next)) {
|
|
136
|
+
console.log('Moving on to ' + next);
|
|
137
|
+
guessNames(next);
|
|
138
|
+
controlRow.appendChild(audioControl(next, true)); // Force autoplay
|
|
139
|
+
controlRow.removeChild(event.target);
|
|
140
|
+
} else {
|
|
141
|
+
console.log('Ignoring redundant ' + next);
|
|
142
|
+
tryNext(next);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
tryNext(current);
|
|
147
|
+
};
|
|
148
|
+
const audioControl = function (song, autoplay) {
|
|
149
|
+
const audio = dom.createElement('audio');
|
|
150
|
+
audio.setAttribute('controls', 'yes');
|
|
151
|
+
// get audio with authenticated fetch
|
|
152
|
+
kb.fetcher._fetch(song.uri).then(function (response) {
|
|
153
|
+
return response.blob();
|
|
154
|
+
}).then(function (myBlob) {
|
|
155
|
+
const objectURL = URL.createObjectURL(myBlob);
|
|
156
|
+
audio.setAttribute('src', objectURL); // w640 h480 //
|
|
157
|
+
});
|
|
158
|
+
if (autoplay) {
|
|
159
|
+
audio.setAttribute('autoplay', 'autoplay'); // Make this a personal preference
|
|
160
|
+
}
|
|
161
|
+
audio.addEventListener('ended', endedListener, false);
|
|
162
|
+
return audio;
|
|
163
|
+
};
|
|
164
|
+
const div = dom.createElement('div');
|
|
165
|
+
const table = div.appendChild(dom.createElement('table'));
|
|
166
|
+
const labelStyle = 'padding: 0.3em; color:white; background-color: black;';
|
|
167
|
+
const artistRow = table.appendChild(dom.createElement('tr'));
|
|
168
|
+
artistRow.style.cssText = labelStyle;
|
|
169
|
+
const albumRow = table.appendChild(dom.createElement('tr'));
|
|
170
|
+
albumRow.style.cssText = labelStyle;
|
|
171
|
+
const trackRow = table.appendChild(dom.createElement('tr'));
|
|
172
|
+
trackRow.style.cssText = labelStyle;
|
|
173
|
+
const controlRow = table.appendChild(dom.createElement('tr'));
|
|
174
|
+
guessNames(subject);
|
|
175
|
+
controlRow.appendChild(audioControl(subject, options.autoplay));
|
|
176
|
+
if (!kb.holds(undefined, ns.ldp('contains'), subject) && subject.dir()) {
|
|
177
|
+
kb.fetcher.load(subject.dir()); // Prefetch enclosing @@ or playlist
|
|
178
|
+
}
|
|
179
|
+
return div;
|
|
180
|
+
}
|
|
181
|
+
}; // ends
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.classInstancePane = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
|
+
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); }
|
|
10
|
+
/* Class member Pane
|
|
11
|
+
**
|
|
12
|
+
** This outline pane lists the members of a class
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const ns = UI.ns;
|
|
16
|
+
const classInstancePane = exports.classInstancePane = {
|
|
17
|
+
icon: UI.icons.originalIconBase + 'tango/22-folder-open.png',
|
|
18
|
+
name: 'classInstance',
|
|
19
|
+
// Create a new folder in a Solid system,
|
|
20
|
+
|
|
21
|
+
audience: [ns.solid('PowerUser')],
|
|
22
|
+
label: function (subject, context) {
|
|
23
|
+
const kb = context.session.store;
|
|
24
|
+
const n = kb.each(undefined, ns.rdf('type'), subject).length;
|
|
25
|
+
if (n > 0) return 'List (' + n + ')'; // Show how many in hover text
|
|
26
|
+
return null; // Suppress pane otherwise
|
|
27
|
+
},
|
|
28
|
+
render: function (subject, context) {
|
|
29
|
+
const dom = context.dom;
|
|
30
|
+
const outliner = context.getOutliner(dom);
|
|
31
|
+
const kb = context.session.store;
|
|
32
|
+
const complain = function complain(message, color) {
|
|
33
|
+
const pre = dom.createElement('pre');
|
|
34
|
+
pre.setAttribute('style', 'background-color: ' + color || '#eed' + ';');
|
|
35
|
+
div.appendChild(pre);
|
|
36
|
+
pre.appendChild(dom.createTextNode(message));
|
|
37
|
+
};
|
|
38
|
+
const div = dom.createElement('div');
|
|
39
|
+
div.setAttribute('class', 'instancePane');
|
|
40
|
+
div.setAttribute('style', ' border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ');
|
|
41
|
+
|
|
42
|
+
// If this is a class, look for all both explicit and implicit
|
|
43
|
+
const sts = kb.statementsMatching(undefined, ns.rdf('type'), subject);
|
|
44
|
+
if (sts.length > 0) {
|
|
45
|
+
const already = {};
|
|
46
|
+
const more = [];
|
|
47
|
+
sts.forEach(st => {
|
|
48
|
+
already[st.subject.toNT()] = st;
|
|
49
|
+
});
|
|
50
|
+
for (const nt in kb.findMembersNT(subject)) {
|
|
51
|
+
if (!already[nt]) {
|
|
52
|
+
more.push($rdf.st(kb.fromNT(nt), ns.rdf('type'), subject)); // @@ no provenance
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (more.length) {
|
|
56
|
+
complain('There are ' + sts.length + ' explicit and ' + more.length + ' implicit members of ' + UI.utils.label(subject));
|
|
57
|
+
}
|
|
58
|
+
if (subject.sameTerm(ns.rdf('Property'))) {
|
|
59
|
+
// / Do not find all properties used as properties .. unless look at kb index
|
|
60
|
+
} else if (subject.sameTerm(ns.rdfs('Class'))) {
|
|
61
|
+
const uses = kb.statementsMatching(undefined, ns.rdf('type'), undefined);
|
|
62
|
+
const usedTypes = {};
|
|
63
|
+
uses.forEach(function (st) {
|
|
64
|
+
usedTypes[st.object] = st;
|
|
65
|
+
}); // Get unique
|
|
66
|
+
const used = [];
|
|
67
|
+
for (const i in usedTypes) {
|
|
68
|
+
used.push($rdf.st($rdf.sym(i), ns.rdf('type'), ns.rdfs('Class')));
|
|
69
|
+
}
|
|
70
|
+
complain('Total of ' + uses.length + ' type statements and ' + used.length + ' unique types.');
|
|
71
|
+
}
|
|
72
|
+
if (sts.length > 10) {
|
|
73
|
+
const tr = dom.createElement('TR');
|
|
74
|
+
tr.appendChild(dom.createTextNode('' + sts.length));
|
|
75
|
+
// tr.AJAR_statement=sts[i]
|
|
76
|
+
div.appendChild(tr);
|
|
77
|
+
}
|
|
78
|
+
outliner.appendPropertyTRs(div, sts, true, function (_pred) {
|
|
79
|
+
return true;
|
|
80
|
+
});
|
|
81
|
+
if (more.length) {
|
|
82
|
+
complain('Implicit:');
|
|
83
|
+
outliner.appendPropertyTRs(div, more, true, function (_pred) {
|
|
84
|
+
return true;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return div;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
// ends
|