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,48 @@
|
|
|
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
|
+
/* Sharing Pane
|
|
9
|
+
**
|
|
10
|
+
** This outline pane allows a user to view and adjust the sharing -- access control lists
|
|
11
|
+
** for anything which has that capability.
|
|
12
|
+
**
|
|
13
|
+
** I am using in places single quotes strings like 'this'
|
|
14
|
+
** where internationalization ("i18n") is not a problem, and double quoted
|
|
15
|
+
** like "this" where the string is seen by the user and so I18n is an issue.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const sharingPane = {
|
|
19
|
+
icon: _solidUi.icons.iconBase + 'padlock-timbl.svg',
|
|
20
|
+
name: 'sharing',
|
|
21
|
+
label: (subject, context) => {
|
|
22
|
+
const store = context.session.store;
|
|
23
|
+
const t = store.findTypeURIs(subject);
|
|
24
|
+
if (t[_solidUi.ns.ldp('Resource').uri]) return 'Sharing'; // @@ be more sophisticated?
|
|
25
|
+
if (t[_solidUi.ns.ldp('Container').uri]) return 'Sharing'; // @@ be more sophisticated?
|
|
26
|
+
if (t[_solidUi.ns.ldp('BasicContainer').uri]) return 'Sharing'; // @@ be more sophisticated?
|
|
27
|
+
// check being allowed to see/change sharing?
|
|
28
|
+
return null; // No under other circumstances
|
|
29
|
+
},
|
|
30
|
+
render: (subject, context) => {
|
|
31
|
+
const dom = context.dom;
|
|
32
|
+
const store = context.session.store;
|
|
33
|
+
const noun = getNoun();
|
|
34
|
+
const div = dom.createElement('div');
|
|
35
|
+
div.classList.add('sharingPane');
|
|
36
|
+
_solidUi.aclControl.preventBrowserDropEvents(dom);
|
|
37
|
+
div.appendChild(_solidUi.aclControl.ACLControlBox5(subject, context, noun, store));
|
|
38
|
+
return div;
|
|
39
|
+
function getNoun() {
|
|
40
|
+
const t = store.findTypeURIs(subject);
|
|
41
|
+
if (t[_solidUi.ns.ldp('BasicContainer').uri] || t[_solidUi.ns.ldp('Container').uri]) {
|
|
42
|
+
return 'folder';
|
|
43
|
+
}
|
|
44
|
+
return 'file';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var _default = exports.default = sharingPane;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.slideshowPane = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
var _betterSimpleSlideshow = _interopRequireDefault(require("@solid/better-simple-slideshow"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
/* slideshow Pane
|
|
12
|
+
**
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const ns = UI.ns;
|
|
16
|
+
const slideshowPane = exports.slideshowPane = {
|
|
17
|
+
icon: UI.icons.iconBase + 'noun_138712.svg',
|
|
18
|
+
name: 'slideshow',
|
|
19
|
+
audience: [ns.solid('PowerUser')],
|
|
20
|
+
// Does the subject deserve an slideshow pane?
|
|
21
|
+
label: function (subject, context) {
|
|
22
|
+
const store = context.session.store;
|
|
23
|
+
const ns = UI.ns;
|
|
24
|
+
const t = store.findTypeURIs(subject);
|
|
25
|
+
if (t[ns.ldp('Container').uri] || t[ns.ldp('BasicContainer').uri]) {
|
|
26
|
+
const contents = store.each(subject, ns.ldp('contains'));
|
|
27
|
+
let count = 0;
|
|
28
|
+
contents.forEach(function (file) {
|
|
29
|
+
if (UI.widgets.isImage(file)) count++;
|
|
30
|
+
});
|
|
31
|
+
return count > 0 ? 'Slideshow' : null;
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
},
|
|
35
|
+
// See https://github.com/leemark/better-simple-slideshow
|
|
36
|
+
// and follow instructions there
|
|
37
|
+
render: function (subject, context) {
|
|
38
|
+
const dom = context.dom;
|
|
39
|
+
const styleSheet = 'https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css';
|
|
40
|
+
UI.widgets.addStyleSheet(dom, styleSheet);
|
|
41
|
+
const store = context.session.store;
|
|
42
|
+
const ns = UI.ns;
|
|
43
|
+
const div = dom.createElement('div');
|
|
44
|
+
div.setAttribute('class', 'bss-slides');
|
|
45
|
+
const t = store.findTypeURIs(subject);
|
|
46
|
+
let predicate;
|
|
47
|
+
if (t[ns.ldp('BasicContainer').uri] || t[ns.ldp('Container').uri]) {
|
|
48
|
+
predicate = ns.ldp('contains');
|
|
49
|
+
}
|
|
50
|
+
const images = store.each(subject, predicate); // @@ random order?
|
|
51
|
+
// @@ Ideally: sort by embedded time of image
|
|
52
|
+
images.sort(); // Sort for now by URI
|
|
53
|
+
for (let i = 0; i < images.length; i++) {
|
|
54
|
+
if (!UI.widgets.isImage(images[i])) continue;
|
|
55
|
+
const figure = div.appendChild(dom.createElement('figure'));
|
|
56
|
+
const img = figure.appendChild(dom.createElement('img'));
|
|
57
|
+
|
|
58
|
+
// get image with authenticated fetch
|
|
59
|
+
store.fetcher._fetch(images[i].uri).then(function (response) {
|
|
60
|
+
return response.blob();
|
|
61
|
+
}).then(function (myBlob) {
|
|
62
|
+
const objectURL = URL.createObjectURL(myBlob);
|
|
63
|
+
img.setAttribute('src', objectURL); // w640 h480 //
|
|
64
|
+
});
|
|
65
|
+
img.style.width = '100%';
|
|
66
|
+
figure.appendChild(dom.createElement('figcaption'));
|
|
67
|
+
}
|
|
68
|
+
const options = {
|
|
69
|
+
dom
|
|
70
|
+
};
|
|
71
|
+
setTimeout(function () {
|
|
72
|
+
(0, _betterSimpleSlideshow.default)('.bss-slides', options);
|
|
73
|
+
}, 1000); // Must run after the code which called this
|
|
74
|
+
|
|
75
|
+
return div;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// ends
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.appendProfileLinks = appendProfileLinks;
|
|
7
|
+
exports.createEditProfileDetailsButton = createEditProfileDetailsButton;
|
|
8
|
+
exports.profileLinkFields = void 0;
|
|
9
|
+
var _rdflib = require("rdflib");
|
|
10
|
+
var _litHtml = require("lit-html");
|
|
11
|
+
var _solidUi = require("solid-ui");
|
|
12
|
+
require("solid-ui/components/button");
|
|
13
|
+
var _icons = require("./icons");
|
|
14
|
+
var _spinner = require("./spinner");
|
|
15
|
+
/* The following code was generated by AI Model: GPT-5.4
|
|
16
|
+
Prompt: can you create me a form to enter this data [
|
|
17
|
+
ns.foaf('homepage'),
|
|
18
|
+
ns.foaf('weblog'),
|
|
19
|
+
ns.foaf('workplaceHomepage'),
|
|
20
|
+
ns.foaf('schoolHomepage')
|
|
21
|
+
] and put an edit button at the top left corner of the header
|
|
22
|
+
that when you click it pops up so you can enter this information
|
|
23
|
+
and save it to the Webid. You can look in
|
|
24
|
+
Dev2025/profile-pane/src/sections/heading/mutations to see how
|
|
25
|
+
to write this data in the profile. */
|
|
26
|
+
|
|
27
|
+
const profileLinkFields = exports.profileLinkFields = [{
|
|
28
|
+
key: 'homepage',
|
|
29
|
+
label: 'Homepage',
|
|
30
|
+
placeholder: 'https://example.com',
|
|
31
|
+
predicate: _solidUi.ns.foaf('homepage')
|
|
32
|
+
}, {
|
|
33
|
+
key: 'weblog',
|
|
34
|
+
label: 'Weblog',
|
|
35
|
+
placeholder: 'https://blog.example.com',
|
|
36
|
+
predicate: _solidUi.ns.foaf('weblog')
|
|
37
|
+
}, {
|
|
38
|
+
key: 'workplaceHomepage',
|
|
39
|
+
label: 'Workplace Homepage',
|
|
40
|
+
placeholder: 'https://company.example.com',
|
|
41
|
+
predicate: _solidUi.ns.foaf('workplaceHomepage')
|
|
42
|
+
}, {
|
|
43
|
+
key: 'schoolHomepage',
|
|
44
|
+
label: 'School Homepage',
|
|
45
|
+
placeholder: 'https://school.example.edu',
|
|
46
|
+
predicate: _solidUi.ns.foaf('schoolHomepage')
|
|
47
|
+
}];
|
|
48
|
+
function createEmptyProfileLinkValues() {
|
|
49
|
+
return {
|
|
50
|
+
homepage: [''],
|
|
51
|
+
weblog: [''],
|
|
52
|
+
workplaceHomepage: [''],
|
|
53
|
+
schoolHomepage: ['']
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function readProfileLinkValues(store, subject) {
|
|
57
|
+
const doc = subject.doc();
|
|
58
|
+
return profileLinkFields.reduce((result, field) => {
|
|
59
|
+
const values = store.statementsMatching(subject, field.predicate, undefined, doc).map(statement => statement.object?.value || '').filter(Boolean);
|
|
60
|
+
result[field.key] = values.length ? values : [''];
|
|
61
|
+
return result;
|
|
62
|
+
}, createEmptyProfileLinkValues());
|
|
63
|
+
}
|
|
64
|
+
function normalizeUrlList(values, fieldLabel) {
|
|
65
|
+
const unique = new Set();
|
|
66
|
+
const lines = values.map(entry => entry.trim()).filter(Boolean);
|
|
67
|
+
for (const line of lines) {
|
|
68
|
+
let parsed;
|
|
69
|
+
try {
|
|
70
|
+
parsed = new URL(line);
|
|
71
|
+
} catch {
|
|
72
|
+
throw new Error(`${fieldLabel} must contain valid absolute URLs.`);
|
|
73
|
+
}
|
|
74
|
+
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
|
|
75
|
+
throw new Error(`${fieldLabel} only supports http and https URLs.`);
|
|
76
|
+
}
|
|
77
|
+
unique.add(parsed.toString());
|
|
78
|
+
}
|
|
79
|
+
return [...unique];
|
|
80
|
+
}
|
|
81
|
+
async function saveProfileLinkValues(store, subject, values) {
|
|
82
|
+
const updater = store.updater;
|
|
83
|
+
const fetcher = store.fetcher;
|
|
84
|
+
if (!updater || typeof updater.serialize !== 'function' || !fetcher || typeof fetcher.webOperation !== 'function') {
|
|
85
|
+
throw new Error('This profile cannot be edited with the current store.');
|
|
86
|
+
}
|
|
87
|
+
const doc = subject.doc();
|
|
88
|
+
const insertions = [];
|
|
89
|
+
const existingStatements = [];
|
|
90
|
+
for (const field of profileLinkFields) {
|
|
91
|
+
existingStatements.push(...store.statementsMatching(subject, field.predicate, undefined, doc));
|
|
92
|
+
const nextValues = normalizeUrlList(values[field.key], field.label);
|
|
93
|
+
for (const nextValue of nextValues) {
|
|
94
|
+
insertions.push((0, _rdflib.st)(subject, field.predicate, (0, _rdflib.sym)(nextValue), doc));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const retainedStatements = store.statementsMatching(undefined, undefined, undefined, doc).filter(statement => {
|
|
98
|
+
return !profileLinkFields.some(field => {
|
|
99
|
+
return statement.subject.equals(subject) && statement.predicate.equals(field.predicate);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
const nextStatements = retainedStatements.concat(insertions);
|
|
103
|
+
const contentType = 'text/turtle';
|
|
104
|
+
const body = updater.serialize(doc.value, nextStatements, contentType);
|
|
105
|
+
const response = await fetcher.webOperation('PUT', doc.value, {
|
|
106
|
+
noMeta: true,
|
|
107
|
+
contentType,
|
|
108
|
+
body
|
|
109
|
+
});
|
|
110
|
+
if (!response || response.ok !== true) {
|
|
111
|
+
const status = response?.status || 'unknown';
|
|
112
|
+
throw new Error(`Unable to save profile links. Web error: ${status}`);
|
|
113
|
+
}
|
|
114
|
+
existingStatements.forEach(statement => {
|
|
115
|
+
store.removeStatement(statement);
|
|
116
|
+
});
|
|
117
|
+
for (const statement of insertions) {
|
|
118
|
+
store.add(statement.subject, statement.predicate, statement.object, statement.why);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function appendProfileLinks(_container, _dom, _store, _subject) {
|
|
122
|
+
// Hidden for now because social-pane website links are not part of the new design.
|
|
123
|
+
// Revisit later if we decide to show profile links in this header again.
|
|
124
|
+
}
|
|
125
|
+
function createEditProfileDetailsButton(options) {
|
|
126
|
+
const {
|
|
127
|
+
dom,
|
|
128
|
+
store,
|
|
129
|
+
subject,
|
|
130
|
+
onSaved
|
|
131
|
+
} = options;
|
|
132
|
+
const button = dom.createElement('solid-ui-button');
|
|
133
|
+
button.type = 'button';
|
|
134
|
+
button.className = 'social-pane__edit-button profile__action-button profile__heading-action-button profile-action-text flex-center profile-section-collapsible__edit-button';
|
|
135
|
+
button.variant = 'secondary';
|
|
136
|
+
button.size = 'sm';
|
|
137
|
+
const label = dom.createElement('span');
|
|
138
|
+
label.className = 'profile-section-collapsible__edit-label social-pane__edit-button-label';
|
|
139
|
+
label.innerHTML = `${_icons.editIcon} Edit`;
|
|
140
|
+
button.appendChild(label);
|
|
141
|
+
const icon = dom.createElement('span');
|
|
142
|
+
icon.className = 'profile-section-collapsible__edit-icon social-pane__edit-button-icon';
|
|
143
|
+
icon.setAttribute('aria-hidden', 'true');
|
|
144
|
+
icon.innerHTML = _icons.editIcon;
|
|
145
|
+
button.appendChild(icon);
|
|
146
|
+
button.setAttribute('aria-label', 'Edit profile links');
|
|
147
|
+
const openDialog = () => {
|
|
148
|
+
const initialValues = readProfileLinkValues(store, subject);
|
|
149
|
+
const formState = profileLinkFields.reduce((result, field) => {
|
|
150
|
+
result[field.key] = [...initialValues[field.key]];
|
|
151
|
+
return result;
|
|
152
|
+
}, createEmptyProfileLinkValues());
|
|
153
|
+
const overlay = dom.createElement('div');
|
|
154
|
+
overlay.classList.add('social-pane__dialog-backdrop', 'flex-center');
|
|
155
|
+
const dialog = dom.createElement('div');
|
|
156
|
+
dialog.classList.add('social-pane__dialog');
|
|
157
|
+
dialog.setAttribute('role', 'dialog');
|
|
158
|
+
dialog.setAttribute('aria-modal', 'true');
|
|
159
|
+
dialog.setAttribute('aria-label', 'Edit profile links');
|
|
160
|
+
overlay.appendChild(dialog);
|
|
161
|
+
const dialogHeader = dom.createElement('div');
|
|
162
|
+
dialogHeader.classList.add('social-pane__dialog-header');
|
|
163
|
+
dialog.appendChild(dialogHeader);
|
|
164
|
+
const title = dom.createElement('h2');
|
|
165
|
+
title.className = 'social-pane__dialog-title';
|
|
166
|
+
title.textContent = 'Edit profile links';
|
|
167
|
+
dialogHeader.appendChild(title);
|
|
168
|
+
const form = dom.createElement('form');
|
|
169
|
+
form.classList.add('social-pane__dialog-form', 'flex-column');
|
|
170
|
+
dialog.appendChild(form);
|
|
171
|
+
const savingOverlay = dom.createElement('div');
|
|
172
|
+
savingOverlay.className = 'social-pane__dialog-saving-overlay';
|
|
173
|
+
savingOverlay.hidden = true;
|
|
174
|
+
dialog.appendChild(savingOverlay);
|
|
175
|
+
const fieldsContainer = dom.createElement('div');
|
|
176
|
+
fieldsContainer.className = 'social-pane__dialog-fields';
|
|
177
|
+
form.appendChild(fieldsContainer);
|
|
178
|
+
const errorMessage = dom.createElement('p');
|
|
179
|
+
errorMessage.className = 'social-pane__dialog-error';
|
|
180
|
+
const focusRow = (fieldKey, rowIndex) => {
|
|
181
|
+
const nextField = fieldsContainer.querySelector(`input[data-profile-link-key="${fieldKey}"][data-profile-link-index="${String(rowIndex)}"]`);
|
|
182
|
+
nextField?.focus();
|
|
183
|
+
};
|
|
184
|
+
const renderFields = focusTarget => {
|
|
185
|
+
fieldsContainer.replaceChildren();
|
|
186
|
+
for (const field of profileLinkFields) {
|
|
187
|
+
const fieldWrapper = dom.createElement('section');
|
|
188
|
+
fieldWrapper.classList.add('social-pane__dialog-field', 'flex-column');
|
|
189
|
+
const fieldHeader = dom.createElement('div');
|
|
190
|
+
fieldHeader.className = 'social-pane__dialog-field-header';
|
|
191
|
+
fieldWrapper.appendChild(fieldHeader);
|
|
192
|
+
const fieldLabel = dom.createElement('h3');
|
|
193
|
+
fieldLabel.className = 'social-pane__dialog-label';
|
|
194
|
+
fieldLabel.textContent = field.label;
|
|
195
|
+
fieldHeader.appendChild(fieldLabel);
|
|
196
|
+
const addButton = dom.createElement('solid-ui-button');
|
|
197
|
+
addButton.type = 'button';
|
|
198
|
+
addButton.className = 'social-pane__dialog-row-button--add';
|
|
199
|
+
addButton.setAttribute('aria-label', `Add another ${field.label.toLowerCase()}`);
|
|
200
|
+
addButton.variant = 'secondary';
|
|
201
|
+
addButton.size = 'sm';
|
|
202
|
+
const addButtonContent = dom.createElement('span');
|
|
203
|
+
addButtonContent.className = 'social-pane__add-more-content';
|
|
204
|
+
const addButtonInline = dom.createElement('span');
|
|
205
|
+
addButtonInline.className = 'social-pane__add-more-inline';
|
|
206
|
+
const addButtonIcon = dom.createElement('span');
|
|
207
|
+
addButtonIcon.className = 'social-pane__add-more-icon';
|
|
208
|
+
addButtonIcon.setAttribute('aria-hidden', 'true');
|
|
209
|
+
addButtonIcon.innerHTML = _icons.plusIcon;
|
|
210
|
+
const addButtonText = dom.createElement('span');
|
|
211
|
+
addButtonText.textContent = 'Add More';
|
|
212
|
+
addButtonInline.appendChild(addButtonIcon);
|
|
213
|
+
addButtonInline.appendChild(addButtonText);
|
|
214
|
+
addButtonContent.appendChild(addButtonInline);
|
|
215
|
+
addButton.appendChild(addButtonContent);
|
|
216
|
+
addButton.addEventListener('click', () => {
|
|
217
|
+
formState[field.key].push('');
|
|
218
|
+
renderFields({
|
|
219
|
+
fieldKey: field.key,
|
|
220
|
+
rowIndex: formState[field.key].length - 1
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
fieldHeader.appendChild(addButton);
|
|
224
|
+
const rows = dom.createElement('div');
|
|
225
|
+
rows.className = 'social-pane__dialog-row-list';
|
|
226
|
+
fieldWrapper.appendChild(rows);
|
|
227
|
+
const values = formState[field.key].length ? formState[field.key] : [''];
|
|
228
|
+
values.forEach((value, index) => {
|
|
229
|
+
const row = dom.createElement('div');
|
|
230
|
+
row.className = 'social-pane__dialog-row';
|
|
231
|
+
const input = dom.createElement('input');
|
|
232
|
+
input.classList.add('social-pane__dialog-input', 'input');
|
|
233
|
+
input.type = 'url';
|
|
234
|
+
input.placeholder = field.placeholder;
|
|
235
|
+
input.value = value;
|
|
236
|
+
input.setAttribute('data-profile-link-key', field.key);
|
|
237
|
+
input.setAttribute('data-profile-link-index', String(index));
|
|
238
|
+
input.addEventListener('input', () => {
|
|
239
|
+
formState[field.key][index] = input.value;
|
|
240
|
+
});
|
|
241
|
+
row.appendChild(input);
|
|
242
|
+
const removeButton = dom.createElement('solid-ui-button');
|
|
243
|
+
removeButton.type = 'button';
|
|
244
|
+
removeButton.className = 'social-pane__dialog-row-button--remove';
|
|
245
|
+
removeButton.setAttribute('aria-label', `Remove ${field.label.toLowerCase()} ${index + 1}`);
|
|
246
|
+
removeButton.setAttribute('title', 'Remove');
|
|
247
|
+
removeButton.variant = 'icon';
|
|
248
|
+
removeButton.size = 'md';
|
|
249
|
+
const removeButtonIcon = dom.createElement('span');
|
|
250
|
+
removeButtonIcon.className = 'social-pane__dialog-row-button-icon social-pane__dialog-row-button-icon--remove';
|
|
251
|
+
removeButtonIcon.setAttribute('slot', 'icon');
|
|
252
|
+
removeButtonIcon.setAttribute('aria-hidden', 'true');
|
|
253
|
+
removeButtonIcon.innerHTML = _icons.trashIcon;
|
|
254
|
+
removeButton.appendChild(removeButtonIcon);
|
|
255
|
+
removeButton.addEventListener('click', () => {
|
|
256
|
+
if (formState[field.key].length === 1) {
|
|
257
|
+
formState[field.key][0] = '';
|
|
258
|
+
} else {
|
|
259
|
+
formState[field.key].splice(index, 1);
|
|
260
|
+
}
|
|
261
|
+
renderFields();
|
|
262
|
+
});
|
|
263
|
+
row.appendChild(removeButton);
|
|
264
|
+
rows.appendChild(row);
|
|
265
|
+
});
|
|
266
|
+
fieldsContainer.appendChild(fieldWrapper);
|
|
267
|
+
}
|
|
268
|
+
if (focusTarget) {
|
|
269
|
+
focusRow(focusTarget.fieldKey, focusTarget.rowIndex);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
renderFields();
|
|
273
|
+
form.appendChild(errorMessage);
|
|
274
|
+
const actions = dom.createElement('div');
|
|
275
|
+
actions.className = 'social-pane__dialog-actions';
|
|
276
|
+
form.appendChild(actions);
|
|
277
|
+
const closeButton = dom.createElement('solid-ui-button');
|
|
278
|
+
closeButton.type = 'button';
|
|
279
|
+
closeButton.className = 'social-pane__dialog-button--cancel';
|
|
280
|
+
closeButton.setAttribute('aria-label', 'Close dialog');
|
|
281
|
+
closeButton.label = 'Close';
|
|
282
|
+
closeButton.variant = 'secondary';
|
|
283
|
+
closeButton.size = 'md';
|
|
284
|
+
actions.appendChild(closeButton);
|
|
285
|
+
const saveButton = dom.createElement('solid-ui-button');
|
|
286
|
+
saveButton.type = 'button';
|
|
287
|
+
saveButton.className = 'social-pane__dialog-button--save';
|
|
288
|
+
saveButton.label = 'Save Changes';
|
|
289
|
+
saveButton.variant = 'primary';
|
|
290
|
+
saveButton.size = 'md';
|
|
291
|
+
actions.appendChild(saveButton);
|
|
292
|
+
let isSaving = false;
|
|
293
|
+
const setSavingState = nextSaving => {
|
|
294
|
+
isSaving = nextSaving;
|
|
295
|
+
dialog.classList.toggle('modal--saving', nextSaving);
|
|
296
|
+
dialog.setAttribute('aria-busy', String(nextSaving));
|
|
297
|
+
form.toggleAttribute('inert', nextSaving);
|
|
298
|
+
saveButton.disabled = nextSaving;
|
|
299
|
+
saveButton.setAttribute('aria-busy', String(nextSaving));
|
|
300
|
+
closeButton.disabled = nextSaving;
|
|
301
|
+
savingOverlay.hidden = !nextSaving;
|
|
302
|
+
if (nextSaving) {
|
|
303
|
+
const activeElement = dialog.ownerDocument.activeElement;
|
|
304
|
+
if (activeElement && dialog.contains(activeElement)) {
|
|
305
|
+
activeElement.blur();
|
|
306
|
+
}
|
|
307
|
+
(0, _litHtml.render)((0, _litHtml.html)`
|
|
308
|
+
<div class="modal__saving-indicator inline-flex-row justify-center" aria-live="polite" aria-label="Saving changes">
|
|
309
|
+
${(0, _spinner.createSpinner)()}
|
|
310
|
+
</div>
|
|
311
|
+
`, savingOverlay);
|
|
312
|
+
} else {
|
|
313
|
+
(0, _litHtml.render)((0, _litHtml.html)``, savingOverlay);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
const closeDialog = (force = false) => {
|
|
317
|
+
if (isSaving && !force) return;
|
|
318
|
+
overlay.remove();
|
|
319
|
+
};
|
|
320
|
+
const requestCloseDialog = () => {
|
|
321
|
+
closeDialog();
|
|
322
|
+
};
|
|
323
|
+
const handleSave = async () => {
|
|
324
|
+
errorMessage.textContent = '';
|
|
325
|
+
setSavingState(true);
|
|
326
|
+
const nextValues = profileLinkFields.reduce((result, field) => {
|
|
327
|
+
result[field.key] = [...formState[field.key]];
|
|
328
|
+
return result;
|
|
329
|
+
}, createEmptyProfileLinkValues());
|
|
330
|
+
try {
|
|
331
|
+
await saveProfileLinkValues(store, subject, nextValues);
|
|
332
|
+
setSavingState(false);
|
|
333
|
+
closeDialog(true);
|
|
334
|
+
onSaved();
|
|
335
|
+
} catch (error) {
|
|
336
|
+
errorMessage.textContent = error instanceof Error ? error.message : 'Unable to save profile links.';
|
|
337
|
+
} finally {
|
|
338
|
+
if (isSaving) {
|
|
339
|
+
setSavingState(false);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
overlay.addEventListener('click', event => {
|
|
344
|
+
if (event.target === overlay) closeDialog();
|
|
345
|
+
});
|
|
346
|
+
closeButton.addEventListener('click', requestCloseDialog);
|
|
347
|
+
saveButton.addEventListener('click', async event => {
|
|
348
|
+
event.preventDefault();
|
|
349
|
+
await handleSave();
|
|
350
|
+
});
|
|
351
|
+
overlay.addEventListener('keydown', event => {
|
|
352
|
+
if (event.key === 'Escape') closeDialog();
|
|
353
|
+
});
|
|
354
|
+
form.addEventListener('submit', event => {
|
|
355
|
+
event.preventDefault();
|
|
356
|
+
});
|
|
357
|
+
dom.body.appendChild(overlay);
|
|
358
|
+
focusRow('homepage', 0);
|
|
359
|
+
};
|
|
360
|
+
button.addEventListener('click', openDialog);
|
|
361
|
+
return button;
|
|
362
|
+
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.trashIcon = exports.plusIcon = exports.personInCircleIcon = exports.locationIcon = exports.editIcon = exports.closeIcon = void 0;
|
|
7
|
+
/* Simpliest solution for now since we are only using it for the symposium
|
|
8
|
+
and then we will use icons from solid-assets */
|
|
9
|
+
const html = String.raw;
|
|
10
|
+
const personInCircleIcon = exports.personInCircleIcon = html`
|
|
3
11
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
4
12
|
width="64"
|
|
5
13
|
height="64"
|
|
@@ -13,7 +21,7 @@ var e = String.raw, t = e`
|
|
|
13
21
|
<path d="M18.666 55.0986V50.6666C18.666 49.2521 19.2279 47.8955 20.2281 46.8954C21.2283 45.8952 22.5849 45.3333 23.9993 45.3333H39.9993C41.4138 45.3333 42.7704 45.8952 43.7706 46.8954C44.7708 47.8955 45.3327 49.2521 45.3327 50.6666V55.0986" stroke="#CBD5E1" stroke-width="5.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
22
|
</svg>
|
|
15
23
|
`;
|
|
16
|
-
|
|
24
|
+
const editIcon = exports.editIcon = html`
|
|
17
25
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
18
26
|
width="14"
|
|
19
27
|
height="14"
|
|
@@ -25,7 +33,7 @@ e`
|
|
|
25
33
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.3063 3.34814C14.9271 3.34832 15.5236 3.59563 15.9625 4.03467C16.4012 4.47362 16.648 5.06935 16.6481 5.68994C16.648 6.31072 16.4004 6.90719 15.9615 7.34619L15.9606 7.34521L7.95373 15.355L7.95275 15.356C7.73845 15.5696 7.47464 15.7278 7.18517 15.8159H7.1842L4.57287 16.6079H4.57092C4.40678 16.6572 4.23224 16.6614 4.06603 16.6196C3.89974 16.5778 3.74793 16.4918 3.62658 16.3706C3.50526 16.2494 3.41865 16.0974 3.37658 15.9312C3.33472 15.7651 3.3383 15.5903 3.38732 15.4263L3.3883 15.4243L4.18127 12.813V12.811C4.27013 12.5215 4.42882 12.2574 4.64318 12.0435L12.651 4.03467V4.03369C13.09 3.59513 13.6857 3.34816 14.3063 3.34814ZM5.56213 12.9634C5.49841 13.0269 5.4509 13.1059 5.42443 13.1919L5.42345 13.1909L4.82189 15.1733L6.80627 14.5718C6.89221 14.5456 6.97114 14.4985 7.03478 14.4351L13.274 8.19482L11.8014 6.72217L5.56213 12.9634ZM14.3063 4.64893C14.0303 4.64894 13.7652 4.75864 13.5699 4.95361L12.7213 5.80225L14.194 7.2749L15.0426 6.42627L15.1119 6.3501C15.2635 6.16488 15.3473 5.93141 15.3473 5.68994C15.3472 5.41394 15.2377 5.14881 15.0426 4.95361C14.8474 4.75846 14.5823 4.64906 14.3063 4.64893Z" fill="#1E2939"/>
|
|
26
34
|
</svg>
|
|
27
35
|
`;
|
|
28
|
-
|
|
36
|
+
const locationIcon = exports.locationIcon = html`
|
|
29
37
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
30
38
|
width="16"
|
|
31
39
|
height="16"
|
|
@@ -38,7 +46,7 @@ var n = e`
|
|
|
38
46
|
<path d="M8 8.66675C9.10457 8.66675 10 7.77132 10 6.66675C10 5.56218 9.10457 4.66675 8 4.66675C6.89543 4.66675 6 5.56218 6 6.66675C6 7.77132 6.89543 8.66675 8 8.66675Z" stroke="#4A5565" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
39
47
|
</svg>
|
|
40
48
|
`;
|
|
41
|
-
|
|
49
|
+
const closeIcon = exports.closeIcon = html`
|
|
42
50
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
43
51
|
width="12"
|
|
44
52
|
height="12"
|
|
@@ -49,7 +57,8 @@ e`
|
|
|
49
57
|
>
|
|
50
58
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5301 0.244005C10.8555 -0.0813835 11.3834 -0.0812864 11.7088 0.244005C12.0338 0.569352 12.0338 1.09639 11.7088 1.42174L7.15416 5.97545L11.7088 10.5301C12.0341 10.8556 12.0342 11.3835 11.7088 11.7088C11.3835 12.0342 10.8556 12.0341 10.5301 11.7088L5.97545 7.15416L1.42174 11.7088C1.09639 12.0338 0.569351 12.0338 0.244004 11.7088C-0.0812866 11.3834 -0.0813828 10.8555 0.244004 10.5301L4.79772 5.97545L0.244004 1.42174C-0.0812866 1.09629 -0.0813828 0.569393 0.244004 0.244005C0.569393 -0.0813835 1.09629 -0.0812864 1.42174 0.244005L5.97545 4.79772L10.5301 0.244005Z" fill="#4A5565"/>
|
|
51
59
|
</svg>
|
|
52
|
-
|
|
60
|
+
`;
|
|
61
|
+
const trashIcon = exports.trashIcon = html`
|
|
53
62
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
54
63
|
width="20"
|
|
55
64
|
height="20"
|
|
@@ -64,7 +73,8 @@ e`
|
|
|
64
73
|
<path d="M2.5 5H17.5" stroke="#D1D5DC" stroke-width="1.45833" stroke-linecap="round" stroke-linejoin="round"/>
|
|
65
74
|
<path d="M6.66699 5.00008V3.33341C6.66699 2.89139 6.84259 2.46746 7.15515 2.1549C7.46771 1.84234 7.89163 1.66675 8.33366 1.66675H11.667C12.109 1.66675 12.5329 1.84234 12.8455 2.1549C13.1581 2.46746 13.3337 2.89139 13.3337 3.33341V5.00008" stroke="#D1D5DC" stroke-width="1.45833" stroke-linecap="round" stroke-linejoin="round"/>
|
|
66
75
|
</svg>
|
|
67
|
-
|
|
76
|
+
`;
|
|
77
|
+
const plusIcon = exports.plusIcon = html`
|
|
68
78
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
69
79
|
width="12"
|
|
70
80
|
height="12"
|
|
@@ -82,8 +92,4 @@ e`
|
|
|
82
92
|
</clipPath>
|
|
83
93
|
</defs>
|
|
84
94
|
</svg>
|
|
85
|
-
`;
|
|
86
|
-
//#endregion
|
|
87
|
-
export { n as locationIcon, t as personInCircleIcon };
|
|
88
|
-
|
|
89
|
-
//# sourceMappingURL=icons.esm.js.map
|
|
95
|
+
`;
|