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,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _solidUi = require("solid-ui");
|
|
8
|
+
/* Tabbed view of anything
|
|
9
|
+
**
|
|
10
|
+
** data-driven
|
|
11
|
+
**
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const TabbedPane = {
|
|
15
|
+
icon: _solidUi.icons.iconBase + 'noun_688606.svg',
|
|
16
|
+
name: 'tabbed',
|
|
17
|
+
audience: [_solidUi.ns.solid('PowerUser')],
|
|
18
|
+
// Does the subject deserve this pane?
|
|
19
|
+
label: (subject, context) => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
const kb = context.session.store;
|
|
22
|
+
const typeURIs = kb.findTypeURIs(subject);
|
|
23
|
+
if (_solidUi.ns.meeting('Cluster').uri in typeURIs) {
|
|
24
|
+
return 'Tabbed';
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
},
|
|
28
|
+
render: (subject, context) => {
|
|
29
|
+
const dom = context.dom;
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const store = context.session.store;
|
|
32
|
+
const div = dom.createElement('div');
|
|
33
|
+
(async () => {
|
|
34
|
+
if (!store.fetcher) {
|
|
35
|
+
throw new Error('Store has no fetcher');
|
|
36
|
+
}
|
|
37
|
+
await store.fetcher.load(subject);
|
|
38
|
+
div.appendChild(_solidUi.tabs.tabWidget({
|
|
39
|
+
dom,
|
|
40
|
+
subject,
|
|
41
|
+
predicate: store.any(subject, _solidUi.ns.meeting('predicate')) || _solidUi.ns.meeting('toolList'),
|
|
42
|
+
ordered: true,
|
|
43
|
+
orientation: store.anyValue(subject, _solidUi.ns.meeting('orientation')) || '0',
|
|
44
|
+
renderMain: (containerDiv, item) => {
|
|
45
|
+
containerDiv.innerHTML = '';
|
|
46
|
+
const table = containerDiv.appendChild(context.dom.createElement('table'));
|
|
47
|
+
context.getOutliner(context.dom).GotoSubject(item, true, null, false, undefined, table);
|
|
48
|
+
},
|
|
49
|
+
renderTab: (containerDiv, item) => {
|
|
50
|
+
const predicate = store.the(subject, _solidUi.ns.meeting('predicate'));
|
|
51
|
+
containerDiv.appendChild(_solidUi.widgets.personTR(context.dom, predicate, item, {}));
|
|
52
|
+
},
|
|
53
|
+
backgroundColor: store.anyValue(subject, _solidUi.ns.ui('backgroundColor')) || '#ddddcc'
|
|
54
|
+
}));
|
|
55
|
+
})();
|
|
56
|
+
return div;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var _default = exports.default = TabbedPane;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.tableViewPane = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
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); }
|
|
9
|
+
// Format an array of RDF statements as an HTML table.
|
|
10
|
+
//
|
|
11
|
+
// This can operate in one of three modes: when the class of object is given
|
|
12
|
+
// or when the source document from which data is taken is given,
|
|
13
|
+
// or if a prepared query object is given.
|
|
14
|
+
// (In principle it could operate with neither class nor document
|
|
15
|
+
// given but typically
|
|
16
|
+
// there would be too much data.)
|
|
17
|
+
// When the tableClass is not given, it looks for common classes in the data,
|
|
18
|
+
// and gives the user the option.
|
|
19
|
+
//
|
|
20
|
+
// 2008 Written, Ilaria Liccardi
|
|
21
|
+
// 2014 core functionality now in common/table.js -timbl
|
|
22
|
+
|
|
23
|
+
// ///////////////////////////////////////////////////////////////////
|
|
24
|
+
|
|
25
|
+
// Table view pane -- view of a class as a table of properties of class members
|
|
26
|
+
|
|
27
|
+
const tableViewPane = exports.tableViewPane = {
|
|
28
|
+
icon: UI.icons.originalIconBase + 'table.png',
|
|
29
|
+
name: 'tableOfClass',
|
|
30
|
+
label: function (subject, context) {
|
|
31
|
+
const store = context.session.store;
|
|
32
|
+
// if (!store.holds(subject, UI.ns.rdf('type'),UI.ns.rdfs('Class'))) return null
|
|
33
|
+
if (!store.any(undefined, UI.ns.rdf('type'), subject)) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
const n = store.statementsMatching(undefined, UI.ns.rdf('type'), subject).length;
|
|
37
|
+
if (n === 0) {
|
|
38
|
+
// None, suppress pane
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
if (n > 15) {
|
|
42
|
+
// @@ At the moment this pane can be slow with too many @@ fixme by using limits
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return UI.utils.label(subject) + ' table';
|
|
46
|
+
},
|
|
47
|
+
render: function (subject, context) {
|
|
48
|
+
const myDocument = context.dom;
|
|
49
|
+
const div = myDocument.createElement('div');
|
|
50
|
+
div.setAttribute('class', 'tablePane');
|
|
51
|
+
div.appendChild(UI.table(myDocument, {
|
|
52
|
+
tableClass: subject
|
|
53
|
+
}));
|
|
54
|
+
return div;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,477 @@
|
|
|
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
|
+
/* Financial Transaction Pane
|
|
11
|
+
**
|
|
12
|
+
** This outline pane allows a user to interact with a transaction
|
|
13
|
+
** downloaded from a bank statement, annotting it with classes and comments,
|
|
14
|
+
** trips, etc
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const ns = UI.ns;
|
|
18
|
+
var _default = exports.default = {
|
|
19
|
+
// icon: (module.__dirname || __dirname) + '22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png',
|
|
20
|
+
icon: UI.icons.iconBase + 'noun_106746.svg',
|
|
21
|
+
name: 'transaction',
|
|
22
|
+
audience: [ns.solid('PowerUser')],
|
|
23
|
+
// Does the subject deserve this pane?
|
|
24
|
+
label: function (subject, context) {
|
|
25
|
+
const kb = context.session.store;
|
|
26
|
+
const t = kb.findTypeURIs(subject);
|
|
27
|
+
if (t['http://www.w3.org/2000/10/swap/pim/qif#Transaction']) return '$$';
|
|
28
|
+
if (kb.any(subject, UI.ns.qu('amount'))) return '$$$'; // In case schema not picked up
|
|
29
|
+
|
|
30
|
+
// if (t['http://www.w3.org/2000/10/swap/pim/qif#Period']) return "period $"
|
|
31
|
+
|
|
32
|
+
if (t['http://www.w3.org/ns/pim/trip#Trip']) return 'Trip $';
|
|
33
|
+
return null; // No under other circumstances (while testing at least!)
|
|
34
|
+
},
|
|
35
|
+
render: function (subject, context) {
|
|
36
|
+
const dom = context.dom;
|
|
37
|
+
const kb = context.session.store;
|
|
38
|
+
const fetcher = kb.fetcher;
|
|
39
|
+
const Q = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#');
|
|
40
|
+
const TRIP = $rdf.Namespace('http://www.w3.org/ns/pim/trip#');
|
|
41
|
+
const div = dom.createElement('div');
|
|
42
|
+
div.setAttribute('class', 'transactionPane');
|
|
43
|
+
const mention = function mention(message, style) {
|
|
44
|
+
if (style === undefined) style = 'color: grey';
|
|
45
|
+
const pre = dom.createElement('pre');
|
|
46
|
+
pre.setAttribute('style', style);
|
|
47
|
+
div.appendChild(pre);
|
|
48
|
+
pre.appendChild(dom.createTextNode(message));
|
|
49
|
+
};
|
|
50
|
+
const complain = function complain(message) {
|
|
51
|
+
return mention(message, 'color: #100; background-color: #fee');
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
var thisPane = this
|
|
56
|
+
var rerender = function (div) {
|
|
57
|
+
var parent = div.parentNode
|
|
58
|
+
var div2 = thisPane.render(subject, dom)
|
|
59
|
+
parent.replaceChild(div2, div)
|
|
60
|
+
}
|
|
61
|
+
*/
|
|
62
|
+
// //////////////////////////////////////////////////////////////////////////////
|
|
63
|
+
|
|
64
|
+
const plist = kb.statementsMatching(subject);
|
|
65
|
+
const qlist = kb.statementsMatching(undefined, undefined, subject);
|
|
66
|
+
const t = kb.findTypeURIs(subject);
|
|
67
|
+
|
|
68
|
+
// var me = authn.currentUser()
|
|
69
|
+
const predicateURIsDone = {};
|
|
70
|
+
const donePredicate = function (pred) {
|
|
71
|
+
predicateURIsDone[pred.uri] = true;
|
|
72
|
+
};
|
|
73
|
+
const setPaneStyle = function (account) {
|
|
74
|
+
let mystyle = 'padding: 0.5em 1.5em 1em 1.5em; ';
|
|
75
|
+
if (account) {
|
|
76
|
+
const backgroundColor = kb.any(account, UI.ns.ui('backgroundColor'));
|
|
77
|
+
if (backgroundColor) {
|
|
78
|
+
mystyle += 'background-color: ' + backgroundColor.value + '; ';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
div.setAttribute('style', mystyle);
|
|
82
|
+
};
|
|
83
|
+
// setPaneStyle()
|
|
84
|
+
|
|
85
|
+
// Functions for displaying lists of transactions
|
|
86
|
+
// Click on the transaction line to expand it into a pane
|
|
87
|
+
// Shift-click to expand without collapsing others
|
|
88
|
+
|
|
89
|
+
const d2 = function (n) {
|
|
90
|
+
if (n === undefined) return '';
|
|
91
|
+
const s = '' + n;
|
|
92
|
+
if (s.indexOf('.') >= 0) {
|
|
93
|
+
return s.split('.')[0] + '.' + (s.split('.')[1] + '00').slice(0, 2);
|
|
94
|
+
}
|
|
95
|
+
return s + '.00';
|
|
96
|
+
};
|
|
97
|
+
const numericCell = function numericCell(amount, suppressZero) {
|
|
98
|
+
const td = dom.createElement('td');
|
|
99
|
+
if (!(0.0 + amount === 0.0 && suppressZero)) {
|
|
100
|
+
td.textContent = d2(amount);
|
|
101
|
+
}
|
|
102
|
+
td.setAttribute('style', 'width: 6em; text-align: right; ');
|
|
103
|
+
return td;
|
|
104
|
+
};
|
|
105
|
+
const headerCell = function headerCell(str) {
|
|
106
|
+
const td = dom.createElement('th');
|
|
107
|
+
td.textContent = str;
|
|
108
|
+
td.setAttribute('style', 'text-align: right; ');
|
|
109
|
+
return td;
|
|
110
|
+
};
|
|
111
|
+
const oderByDate = function (x, y) {
|
|
112
|
+
const dx = kb.any(x, ns.qu('date'));
|
|
113
|
+
const dy = kb.any(y, ns.qu('date'));
|
|
114
|
+
if (dx !== undefined && dy !== undefined) {
|
|
115
|
+
if (dx.value < dy.value) return -1;
|
|
116
|
+
if (dx.value > dy.value) return 1;
|
|
117
|
+
}
|
|
118
|
+
if (x.uri < y.uri) return -1; // Arbitrary but repeatable
|
|
119
|
+
if (x.uri > y.uri) return 1;
|
|
120
|
+
return 0;
|
|
121
|
+
};
|
|
122
|
+
const insertedPane = function (context, subject, paneName) {
|
|
123
|
+
const p = context.session.paneRegistry.byName(paneName);
|
|
124
|
+
const d = p.render(subject, context);
|
|
125
|
+
d.setAttribute('style', 'border: 0.1em solid green;');
|
|
126
|
+
return d;
|
|
127
|
+
};
|
|
128
|
+
const expandAfterRow = function (dom, row, subject, paneName, solo) {
|
|
129
|
+
const siblings = row.parentNode.children;
|
|
130
|
+
if (solo) {
|
|
131
|
+
for (let j = siblings.length - 1; j >= 0; j--) {
|
|
132
|
+
if (siblings[j].expanded) {
|
|
133
|
+
siblings[j].parentNode.removeChild(siblings[j].expanded);
|
|
134
|
+
siblings[j].expanded = false;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const tr = dom.createElement('tr');
|
|
139
|
+
const td = tr.appendChild(dom.createElement('td'));
|
|
140
|
+
td.setAttribute('style', 'width: 98%; padding: 1em; border: 0.1em solid grey;');
|
|
141
|
+
const cols = row.children.length;
|
|
142
|
+
if (row.nextSibling) {
|
|
143
|
+
row.parentNode.insertBefore(tr, row.nextSibling);
|
|
144
|
+
} else {
|
|
145
|
+
row.parentNode.appendChild(tr);
|
|
146
|
+
}
|
|
147
|
+
row.expanded = tr;
|
|
148
|
+
td.setAttribute('colspan', '' + cols);
|
|
149
|
+
td.appendChild(insertedPane(context, subject, paneName));
|
|
150
|
+
};
|
|
151
|
+
const expandAfterRowOrCollapse = function (dom, row, subject, paneName, solo) {
|
|
152
|
+
if (row.expanded) {
|
|
153
|
+
row.parentNode.removeChild(row.expanded);
|
|
154
|
+
row.expanded = false;
|
|
155
|
+
} else {
|
|
156
|
+
expandAfterRow(dom, row, subject, paneName, solo);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const transactionTable = function (dom, list, filter) {
|
|
160
|
+
const table = dom.createElement('table');
|
|
161
|
+
table.setAttribute('style', 'padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;');
|
|
162
|
+
const transactionRow = function (dom, x) {
|
|
163
|
+
const tr = dom.createElement('tr');
|
|
164
|
+
const setTRStyle = function (tr, account) {
|
|
165
|
+
// var mystyle = "padding: 0.5em 1.5em 1em 1.5em; "
|
|
166
|
+
let mystyle = '\'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;';
|
|
167
|
+
if (account) {
|
|
168
|
+
const backgroundColor = kb.any(account, UI.ns.ui('backgroundColor'));
|
|
169
|
+
if (backgroundColor) {
|
|
170
|
+
mystyle += 'background-color: ' + backgroundColor.value + '; ';
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
tr.setAttribute('style', mystyle);
|
|
174
|
+
};
|
|
175
|
+
const account = kb.any(x, ns.qu('toAccount'));
|
|
176
|
+
setTRStyle(tr, account);
|
|
177
|
+
const c0 = tr.appendChild(dom.createElement('td'));
|
|
178
|
+
const date = kb.any(x, ns.qu('date'));
|
|
179
|
+
c0.textContent = date ? date.value.slice(0, 10) : '???';
|
|
180
|
+
c0.setAttribute('style', 'width: 7em;');
|
|
181
|
+
const c1 = tr.appendChild(dom.createElement('td'));
|
|
182
|
+
c1.setAttribute('style', 'width: 36em;');
|
|
183
|
+
const payee = kb.any(x, ns.qu('payee'));
|
|
184
|
+
c1.textContent = payee ? payee.value : '???';
|
|
185
|
+
const a1 = c1.appendChild(dom.createElement('a'));
|
|
186
|
+
a1.textContent = ' ➜';
|
|
187
|
+
a1.setAttribute('href', x.uri);
|
|
188
|
+
const c3 = tr.appendChild(dom.createElement('td'));
|
|
189
|
+
const amount = kb.any(x, ns.qu('in_USD'));
|
|
190
|
+
c3.textContent = amount ? d2(amount.value) : '???';
|
|
191
|
+
c3.setAttribute('style', 'width: 6em; text-align: right; '); // @@ decimal alignment?
|
|
192
|
+
tr.addEventListener('click', function (e) {
|
|
193
|
+
// solo unless shift key
|
|
194
|
+
expandAfterRowOrCollapse(dom, tr, x, 'transaction', !e.shiftKey);
|
|
195
|
+
}, false);
|
|
196
|
+
return tr;
|
|
197
|
+
};
|
|
198
|
+
const list2 = filter ? list.filter(filter) : list.slice(); // don't sort a paramater passed in place
|
|
199
|
+
list2.sort(oderByDate);
|
|
200
|
+
for (let i = 0; i < list2.length; i++) {
|
|
201
|
+
table.appendChild(transactionRow(dom, list2[i]));
|
|
202
|
+
}
|
|
203
|
+
return table;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// Render a single transaction
|
|
207
|
+
|
|
208
|
+
// This works only if enough metadata about the properties can drive the RDFS
|
|
209
|
+
// (or actual type statements whichtypically are NOT there on)
|
|
210
|
+
if (t['http://www.w3.org/2000/10/swap/pim/qif#Transaction'] || kb.any(subject, ns.qu('toAccount'))) {
|
|
211
|
+
// var trip = kb.any(subject, WF('trip'))
|
|
212
|
+
donePredicate(ns.rdf('type'));
|
|
213
|
+
const account = kb.any(subject, UI.ns.qu('toAccount'));
|
|
214
|
+
setPaneStyle(account);
|
|
215
|
+
if (!account) {
|
|
216
|
+
complain('(Error: There is no bank account known for this transaction <' + subject.uri + '>,\n -- every transaction needs one.)');
|
|
217
|
+
}
|
|
218
|
+
let store = null;
|
|
219
|
+
const statement = kb.any(subject, UI.ns.qu('accordingTo'));
|
|
220
|
+
if (statement === undefined) {
|
|
221
|
+
complain('(Error: There is no back link to the original data source foir this transaction <' + subject.uri + '>,\nso I can\'t tell how to annotate it.)');
|
|
222
|
+
} else {
|
|
223
|
+
store = statement !== undefined ? kb.any(statement, UI.ns.qu('annotationStore')) : null;
|
|
224
|
+
if (store === undefined) {
|
|
225
|
+
complain('(There is no annotation document for this statement\n<' + statement.uri + '>,\nso you cannot classify this transaction.)');
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const nav = dom.createElement('div');
|
|
229
|
+
nav.setAttribute('style', 'float:right');
|
|
230
|
+
div.appendChild(nav);
|
|
231
|
+
const navLink = function (pred, label) {
|
|
232
|
+
donePredicate(pred);
|
|
233
|
+
const obj = kb.any(subject, pred);
|
|
234
|
+
if (!obj) return;
|
|
235
|
+
const a = dom.createElement('a');
|
|
236
|
+
a.setAttribute('href', obj.uri);
|
|
237
|
+
a.setAttribute('style', 'float:right');
|
|
238
|
+
nav.appendChild(a).textContent = label || UI.utils.label(obj);
|
|
239
|
+
nav.appendChild(dom.createElement('br'));
|
|
240
|
+
};
|
|
241
|
+
navLink(UI.ns.qu('toAccount'));
|
|
242
|
+
navLink(UI.ns.qu('accordingTo'), 'Statement');
|
|
243
|
+
navLink(TRIP('trip'));
|
|
244
|
+
|
|
245
|
+
// Basic data:
|
|
246
|
+
const table = dom.createElement('table');
|
|
247
|
+
div.appendChild(table);
|
|
248
|
+
const preds = ['date', 'payee', 'amount', 'in_USD', 'currency'].map(Q);
|
|
249
|
+
const inner = preds.map(function (p) {
|
|
250
|
+
donePredicate(p);
|
|
251
|
+
const value = kb.any(subject, p);
|
|
252
|
+
const s = value ? UI.utils.labelForXML(value) : '';
|
|
253
|
+
return '<tr><td style="text-align: right; padding-right: 0.6em">' + UI.utils.labelForXML(p) + '</td><td style="font-weight: bold;">' + s + '</td></tr>';
|
|
254
|
+
}).join('\n');
|
|
255
|
+
table.innerHTML = inner;
|
|
256
|
+
const complainIfBad = function (ok, body) {
|
|
257
|
+
if (ok) {
|
|
258
|
+
// setModifiedDate(store, kb, store)
|
|
259
|
+
// rerender(div) // deletes the new trip form
|
|
260
|
+
} else complain('Sorry, failed to save your change:\n' + body);
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
// What trips do we know about?
|
|
264
|
+
|
|
265
|
+
// Classify:
|
|
266
|
+
if (store) {
|
|
267
|
+
kb.fetcher.nowOrWhenFetched(store.uri, subject, function (ok, body) {
|
|
268
|
+
if (!ok) complain('Cannot load store ' + store + ' ' + body);
|
|
269
|
+
const calendarYear = kb.any(store, ns.qu('calendarYear'));
|
|
270
|
+
const renderCatgorySelectors = function () {
|
|
271
|
+
div.insertBefore(UI.widgets.makeSelectForNestedCategory(dom, kb, subject, UI.ns.qu('Classified'), store, complainIfBad), table.nextSibling);
|
|
272
|
+
};
|
|
273
|
+
if (kb.any(undefined, ns.rdfs('subClassOf'), ns.qu.Classified)) {
|
|
274
|
+
renderCatgorySelectors();
|
|
275
|
+
} else if (calendarYear) {
|
|
276
|
+
fetcher.load(calendarYear).then(function (_xhrs) {
|
|
277
|
+
fetcher.load(kb.each(calendarYear, ns.rdfs('seeAlso'))).then(function () {
|
|
278
|
+
renderCatgorySelectors();
|
|
279
|
+
}).catch(function (e) {
|
|
280
|
+
console.log('Error loading background data: ' + e);
|
|
281
|
+
});
|
|
282
|
+
}).catch(function (e) {
|
|
283
|
+
console.log('Error loading calendarYear: ' + e);
|
|
284
|
+
});
|
|
285
|
+
} else {
|
|
286
|
+
console.log('Can\'t get categories, because no calendarYear');
|
|
287
|
+
}
|
|
288
|
+
div.appendChild(UI.widgets.makeDescription(dom, kb, subject, UI.ns.rdfs('comment'), store, complainIfBad));
|
|
289
|
+
let trips = kb.statementsMatching(undefined, TRIP('trip'), undefined, store).map(function (st) {
|
|
290
|
+
return st.object;
|
|
291
|
+
}); // @@ Use rdfs
|
|
292
|
+
const trips2 = kb.each(undefined, UI.ns.rdf('type'), TRIP('Trip'));
|
|
293
|
+
trips = trips.concat(trips2).sort(); // @@ Unique
|
|
294
|
+
|
|
295
|
+
const sortedBy = function (kb, list, pred, reverse) {
|
|
296
|
+
const l2 = list.map(function (x) {
|
|
297
|
+
let key = kb.any(x, pred);
|
|
298
|
+
key = key ? key.value : '9999-12-31';
|
|
299
|
+
return [key, x];
|
|
300
|
+
});
|
|
301
|
+
l2.sort();
|
|
302
|
+
if (reverse) l2.reverse();
|
|
303
|
+
return l2.map(function (pair) {
|
|
304
|
+
return pair[1];
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
trips = sortedBy(kb, trips, UI.ns.cal('dtstart'), true); // Reverse chron
|
|
308
|
+
|
|
309
|
+
if (trips.length > 1) {
|
|
310
|
+
div.appendChild(UI.widgets.makeSelectForOptions(dom, kb, subject, TRIP('trip'), trips, {
|
|
311
|
+
multiple: false,
|
|
312
|
+
nullLabel: '-- what trip? --',
|
|
313
|
+
mint: 'New Trip *',
|
|
314
|
+
mintClass: TRIP('Trip'),
|
|
315
|
+
mintStatementsFun: function (trip) {
|
|
316
|
+
const is = [];
|
|
317
|
+
is.push($rdf.st(trip, UI.ns.rdf('type'), TRIP('Trip'), trip.doc()));
|
|
318
|
+
return is;
|
|
319
|
+
}
|
|
320
|
+
}, store, complainIfBad));
|
|
321
|
+
}
|
|
322
|
+
div.appendChild(dom.createElement('br'));
|
|
323
|
+
|
|
324
|
+
// Add in simple comments about the transaction
|
|
325
|
+
|
|
326
|
+
const outliner = context.getOutliner(dom);
|
|
327
|
+
donePredicate(ns.rdfs('comment')); // Done above
|
|
328
|
+
|
|
329
|
+
UI.widgets.attachmentList(dom, subject, div);
|
|
330
|
+
donePredicate(ns.wf('attachment'));
|
|
331
|
+
div.appendChild(dom.createElement('tr')).setAttribute('style', 'height: 1em'); // spacer
|
|
332
|
+
|
|
333
|
+
// Remaining properties
|
|
334
|
+
outliner.appendPropertyTRs(div, plist, false, function (pred, _inverse) {
|
|
335
|
+
return !(pred.uri in predicateURIsDone);
|
|
336
|
+
});
|
|
337
|
+
outliner.appendPropertyTRs(div, qlist, true, function (pred, _inverse) {
|
|
338
|
+
return !(pred.uri in predicateURIsDone);
|
|
339
|
+
});
|
|
340
|
+
}); // fetch
|
|
341
|
+
}
|
|
342
|
+
// end of render tranasaction instance
|
|
343
|
+
|
|
344
|
+
// ////////////////////////////////////////////////////////////////////
|
|
345
|
+
//
|
|
346
|
+
// Render the transactions in a Trip
|
|
347
|
+
//
|
|
348
|
+
} else if (t['http://www.w3.org/ns/pim/trip#Trip']) {
|
|
349
|
+
/*
|
|
350
|
+
var query = new $rdf.Query(UI.utils.label(subject))
|
|
351
|
+
var vars = [ 'date', 'transaction', 'comment', 'type', 'in_USD']
|
|
352
|
+
var v = {}
|
|
353
|
+
vars.map(function(x){query.vars.push(v[x]=$rdf.variable(x))}) // Only used by UI
|
|
354
|
+
query.pat.add(v['transaction'], TRIP('trip'), subject)
|
|
355
|
+
var opt = kb.formula()
|
|
356
|
+
opt.add(v['transaction'], ns.rdf('type'), v['type']); // Issue: this will get stored supertypes too
|
|
357
|
+
query.pat.optional.push(opt)
|
|
358
|
+
query.pat.add(v['transaction'], UI.ns.qu('date'), v['date'])
|
|
359
|
+
var opt = kb.formula()
|
|
360
|
+
opt.add(v['transaction'], ns.rdfs('comment'), v['comment'])
|
|
361
|
+
query.pat.optional.push(opt)
|
|
362
|
+
//opt = kb.formula()
|
|
363
|
+
query.pat.add(v['transaction'], UI.ns.qu('in_USD'), v['in_USD'])
|
|
364
|
+
//query.pat.optional.push(opt)
|
|
365
|
+
var tableDiv = UI.widgets.renderTableViewPane(dom, {'query': query, 'onDone': calculations} )
|
|
366
|
+
div.appendChild(tableDiv)
|
|
367
|
+
*/
|
|
368
|
+
const calculations = function () {
|
|
369
|
+
const total = {};
|
|
370
|
+
const yearTotal = {};
|
|
371
|
+
const yearCategoryTotal = {};
|
|
372
|
+
const trans = kb.each(undefined, TRIP('trip'), subject);
|
|
373
|
+
const bankStatements = trans.map(function (t) {
|
|
374
|
+
return t.doc();
|
|
375
|
+
});
|
|
376
|
+
kb.fetcher.load(bankStatements).then(function () {
|
|
377
|
+
trans.forEach(function (t) {
|
|
378
|
+
const date = kb.the(t, ns.qu('date'));
|
|
379
|
+
const year = date ? ('' + date.value).slice(0, 4) : '????';
|
|
380
|
+
let ty = kb.the(t, ns.rdf('type')); // @@ find most specific type
|
|
381
|
+
// complain(" -- one trans: "+t.uri + ' -> '+kb.any(t, UI.ns.qu('in_USD')))
|
|
382
|
+
if (!ty) ty = UI.ns.qu('ErrorNoType');
|
|
383
|
+
if (ty && ty.uri) {
|
|
384
|
+
const tyuri = ty.uri;
|
|
385
|
+
if (!yearTotal[year]) yearTotal[year] = 0.0;
|
|
386
|
+
if (!yearCategoryTotal[year]) yearCategoryTotal[year] = {};
|
|
387
|
+
if (!total[tyuri]) total[tyuri] = 0.0;
|
|
388
|
+
if (!yearCategoryTotal[year][tyuri]) {
|
|
389
|
+
yearCategoryTotal[year][tyuri] = 0.0;
|
|
390
|
+
}
|
|
391
|
+
const lit = kb.any(t, UI.ns.qu('in_USD'));
|
|
392
|
+
if (!lit) {
|
|
393
|
+
complain('@@ No amount in USD: ' + lit + ' for ' + t);
|
|
394
|
+
}
|
|
395
|
+
if (lit) {
|
|
396
|
+
const amount = parseFloat(lit.value);
|
|
397
|
+
total[tyuri] += amount;
|
|
398
|
+
yearCategoryTotal[year][tyuri] += amount;
|
|
399
|
+
yearTotal[year] += amount;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
const types = [];
|
|
404
|
+
let grandTotal = 0.0;
|
|
405
|
+
const years = [];
|
|
406
|
+
let i;
|
|
407
|
+
for (const y in yearCategoryTotal) {
|
|
408
|
+
// @@ TODO: Write away the need for exception on next line
|
|
409
|
+
|
|
410
|
+
if (Object.prototype.hasOwnProperty.call(yearCategoryTotal, y)) {
|
|
411
|
+
years.push(y);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
years.sort();
|
|
415
|
+
const ny = years.length;
|
|
416
|
+
let cell;
|
|
417
|
+
const table = div.appendChild(dom.createElement('table'));
|
|
418
|
+
table.setAttribute('style', 'font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;');
|
|
419
|
+
if (ny > 1) {
|
|
420
|
+
const header = table.appendChild(dom.createElement('tr'));
|
|
421
|
+
header.appendChild(headerCell(''));
|
|
422
|
+
for (i = 0; i < ny; i++) {
|
|
423
|
+
header.appendChild(headerCell(years[i]));
|
|
424
|
+
}
|
|
425
|
+
header.appendChild(headerCell('total'));
|
|
426
|
+
}
|
|
427
|
+
for (const uri in total) {
|
|
428
|
+
// @@ TODO: Write away the need for exception on next line
|
|
429
|
+
|
|
430
|
+
if (Object.prototype.hasOwnProperty.call(total, uri)) {
|
|
431
|
+
types.push(uri);
|
|
432
|
+
grandTotal += total[uri];
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
types.sort();
|
|
436
|
+
let row, label, z;
|
|
437
|
+
for (let j = 0; j < types.length; j++) {
|
|
438
|
+
const cat = kb.sym(types[j]);
|
|
439
|
+
row = table.appendChild(dom.createElement('tr'));
|
|
440
|
+
label = row.appendChild(dom.createElement('td'));
|
|
441
|
+
label.textContent = UI.utils.label(cat);
|
|
442
|
+
if (ny > 1) {
|
|
443
|
+
for (i = 0; i < ny; i++) {
|
|
444
|
+
z = yearCategoryTotal[years[i]][types[j]];
|
|
445
|
+
cell = row.appendChild(numericCell(z, true));
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
row.appendChild(numericCell(total[types[j]], true));
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// Trailing totals
|
|
452
|
+
if (types.length > 1) {
|
|
453
|
+
row = table.appendChild(dom.createElement('tr'));
|
|
454
|
+
row.appendChild(headerCell('total'));
|
|
455
|
+
if (ny > 1) {
|
|
456
|
+
for (i = 0; i < ny; i++) {
|
|
457
|
+
z = yearTotal[years[i]];
|
|
458
|
+
cell = row.appendChild(numericCell(z ? d2(z) : ''));
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
cell = row.appendChild(numericCell(grandTotal));
|
|
462
|
+
cell.setAttribute('style', 'font-weight: bold; text-align: right;');
|
|
463
|
+
}
|
|
464
|
+
const tab = transactionTable(dom, trans);
|
|
465
|
+
tab.setAttribute('style', 'margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;');
|
|
466
|
+
div.appendChild(tab);
|
|
467
|
+
UI.widgets.attachmentList(dom, subject, div);
|
|
468
|
+
}).catch(function (e) {
|
|
469
|
+
complain('Error loading transactions: ' + e);
|
|
470
|
+
});
|
|
471
|
+
};
|
|
472
|
+
calculations();
|
|
473
|
+
} // if
|
|
474
|
+
|
|
475
|
+
return div;
|
|
476
|
+
}
|
|
477
|
+
}; // ends
|