solid-panes 4.4.2-2 → 4.4.2-4
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 +10 -10
- package/dist/RDFXMLPane.d.ts +2 -3
- package/dist/RDFXMLPane2.cjs.js +3 -0
- package/dist/RDFXMLPane2.cjs.js.map +1 -0
- package/dist/RDFXMLPane2.esm.js +55 -0
- package/dist/RDFXMLPane2.esm.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
- package/dist/_virtual/~icons/lucide/help-circle.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/help-circle.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -0
- package/dist/audio/audioPane.cjs.js +2 -0
- package/dist/audio/audioPane.cjs.js.map +1 -0
- package/dist/audio/audioPane.esm.js +96 -0
- package/dist/audio/audioPane.esm.js.map +1 -0
- package/dist/classInstancePane.cjs.js +2 -0
- package/dist/classInstancePane.cjs.js.map +1 -0
- package/dist/classInstancePane.esm.js +50 -0
- package/dist/classInstancePane.esm.js.map +1 -0
- package/dist/components/header/Header.cjs.js +19 -0
- package/dist/components/header/Header.cjs.js.map +1 -0
- package/dist/components/header/Header.d.ts +8 -0
- package/dist/components/header/Header.d.ts.map +1 -0
- package/dist/components/header/Header.esm.js +228 -0
- package/dist/components/header/Header.esm.js.map +1 -0
- package/dist/components/header/Header.styles.cjs.js +2 -0
- package/dist/components/header/Header.styles.cjs.js.map +1 -0
- package/dist/components/header/Header.styles.esm.js +7 -0
- package/dist/components/header/Header.styles.esm.js.map +1 -0
- package/dist/components/header/index.cjs.js +1 -0
- package/dist/components/header/index.d.ts +4 -0
- package/dist/components/header/index.d.ts.map +1 -0
- package/dist/components/header/index.esm.js +1 -0
- package/dist/dashboard/basicPreferences.cjs.js +2 -0
- package/dist/dashboard/basicPreferences.cjs.js.map +1 -0
- package/dist/dashboard/basicPreferences.d.ts +1 -1
- package/dist/dashboard/basicPreferences.esm.js +70 -0
- package/dist/dashboard/basicPreferences.esm.js.map +1 -0
- package/dist/dashboard/dashboardPane.cjs.js +2 -0
- package/dist/dashboard/dashboardPane.cjs.js.map +1 -0
- package/dist/dashboard/dashboardPane.d.ts +1 -1
- package/dist/dashboard/dashboardPane.esm.js +7 -0
- package/dist/dashboard/dashboardPane.esm.js.map +1 -0
- package/dist/dashboard/homepage.cjs.js +2 -0
- package/dist/dashboard/homepage.cjs.js.map +1 -0
- package/dist/dashboard/homepage.d.ts +1 -1
- package/dist/dashboard/homepage.esm.js +26 -0
- package/dist/dashboard/homepage.esm.js.map +1 -0
- package/dist/dashboard/ontologyData.cjs.js +37 -0
- package/dist/dashboard/ontologyData.cjs.js.map +1 -0
- package/dist/dashboard/ontologyData.esm.js +6 -0
- package/dist/dashboard/ontologyData.esm.js.map +1 -0
- package/dist/dashboard/preferencesFormText.cjs.js +20 -0
- package/dist/dashboard/preferencesFormText.cjs.js.map +1 -0
- package/dist/dashboard/preferencesFormText.esm.js +6 -0
- package/dist/dashboard/preferencesFormText.esm.js.map +1 -0
- package/dist/dataContentPane.d.ts +2 -3
- package/dist/dataContentPane2.cjs.js +2 -0
- package/dist/dataContentPane2.cjs.js.map +1 -0
- package/dist/dataContentPane2.esm.js +109 -0
- package/dist/dataContentPane2.esm.js.map +1 -0
- package/dist/defaultPane.d.ts +2 -3
- package/dist/defaultPane2.cjs.js +2 -0
- package/dist/defaultPane2.cjs.js.map +1 -0
- package/dist/defaultPane2.esm.js +41 -0
- package/dist/defaultPane2.esm.js.map +1 -0
- package/dist/dev.d.ts +10 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/dokieli/dokieliPane.cjs.js +2 -0
- package/dist/dokieli/dokieliPane.cjs.js.map +1 -0
- package/dist/dokieli/dokieliPane.esm.js +39 -0
- package/dist/dokieli/dokieliPane.esm.js.map +1 -0
- package/dist/dokieli/{new.js → new.cjs.js} +4 -10
- package/dist/dokieli/new.cjs.js.map +1 -0
- package/dist/dokieli/new.esm.js +6 -0
- package/dist/dokieli/new.esm.js.map +1 -0
- package/dist/form/pane.cjs.js +4 -0
- package/dist/form/pane.cjs.js.map +1 -0
- package/dist/form/pane.d.ts +1 -2
- package/dist/form/pane.esm.js +121 -0
- package/dist/form/pane.esm.js.map +1 -0
- package/dist/home/homePane.cjs.js +2 -0
- package/dist/home/homePane.cjs.js.map +1 -0
- package/dist/home/homePane.d.ts +1 -1
- package/dist/home/homePane.esm.js +35 -0
- package/dist/home/homePane.esm.js.map +1 -0
- package/dist/humanReadablePane.d.ts +2 -3
- package/dist/humanReadablePane2.cjs.js +2 -0
- package/dist/humanReadablePane2.cjs.js.map +1 -0
- package/dist/humanReadablePane2.esm.js +123 -0
- package/dist/humanReadablePane2.esm.js.map +1 -0
- package/dist/icons/dashboard.cjs.js +2 -0
- package/dist/icons/dashboard.cjs.js.map +1 -0
- package/dist/icons/dashboard.esm.js +6 -0
- package/dist/icons/dashboard.esm.js.map +1 -0
- package/dist/icons/folder.cjs.js +2 -0
- package/dist/icons/folder.cjs.js.map +1 -0
- package/dist/icons/folder.esm.js +6 -0
- package/dist/icons/folder.esm.js.map +1 -0
- package/dist/icons/friends.cjs.js +2 -0
- package/dist/icons/friends.cjs.js.map +1 -0
- package/dist/icons/friends.esm.js +6 -0
- package/dist/icons/friends.esm.js.map +1 -0
- package/dist/icons/iconHelper.cjs.js +2 -0
- package/dist/icons/iconHelper.cjs.js.map +1 -0
- package/dist/icons/iconHelper.esm.js +17 -0
- package/dist/icons/iconHelper.esm.js.map +1 -0
- package/dist/icons/{menu.svg → menu.cjs.js} +3 -2
- package/dist/icons/menu.cjs.js.map +1 -0
- package/dist/icons/menu.esm.js +6 -0
- package/dist/icons/menu.esm.js.map +1 -0
- package/dist/icons/person.cjs.js +2 -0
- package/dist/icons/person.cjs.js.map +1 -0
- package/dist/icons/person.esm.js +6 -0
- package/dist/icons/person.esm.js.map +1 -0
- package/dist/imagePane.d.ts +2 -3
- package/dist/imagePane2.cjs.js +2 -0
- package/dist/imagePane2.cjs.js.map +1 -0
- package/dist/imagePane2.esm.js +32 -0
- package/dist/imagePane2.esm.js.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +26 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/internal/internalPane.d.ts +1 -2
- package/dist/internal/internalPane2.cjs.js +2 -0
- package/dist/internal/internalPane2.cjs.js.map +1 -0
- package/dist/internal/internalPane2.esm.js +104 -0
- package/dist/internal/internalPane2.esm.js.map +1 -0
- package/dist/mainPage/footer.cjs.js +2 -0
- package/dist/mainPage/footer.cjs.js.map +1 -0
- package/dist/mainPage/footer.d.ts +1 -3
- package/dist/mainPage/footer.esm.js +18 -0
- package/dist/mainPage/footer.esm.js.map +1 -0
- package/dist/mainPage/header.cjs.js +2 -0
- package/dist/mainPage/header.cjs.js.map +1 -0
- package/dist/mainPage/header.d.ts +1 -15
- package/dist/mainPage/header.d.ts.map +1 -1
- package/dist/mainPage/header.esm.js +25 -0
- package/dist/mainPage/header.esm.js.map +1 -0
- package/dist/mainPage/index.cjs.js +2 -0
- package/dist/mainPage/index.cjs.js.map +1 -0
- package/dist/mainPage/index.d.ts +3 -7
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.esm.js +38 -0
- package/dist/mainPage/index.esm.js.map +1 -0
- package/dist/mainPage/menu.d.ts +1 -2
- package/dist/mainPage/menu2.cjs.js +2 -0
- package/dist/mainPage/menu2.cjs.js.map +1 -0
- package/dist/mainPage/menu2.esm.js +184 -0
- package/dist/mainPage/menu2.esm.js.map +1 -0
- package/dist/n3Pane.d.ts +2 -3
- package/dist/n3Pane2.cjs.js +3 -0
- package/dist/n3Pane2.cjs.js.map +1 -0
- package/dist/n3Pane2.esm.js +52 -0
- package/dist/n3Pane2.esm.js.map +1 -0
- package/dist/outline/context.cjs.js +2 -0
- package/dist/outline/context.cjs.js.map +1 -0
- package/dist/outline/context.d.ts +3 -3
- package/dist/outline/context.esm.js +18 -0
- package/dist/outline/context.esm.js.map +1 -0
- package/dist/outline/manager2.cjs.js +3 -0
- package/dist/outline/manager2.cjs.js.map +1 -0
- package/dist/outline/manager2.esm.js +875 -0
- package/dist/outline/manager2.esm.js.map +1 -0
- package/dist/outline/outlineIcons.cjs.js +2 -0
- package/dist/outline/outlineIcons.cjs.js.map +1 -0
- package/dist/outline/outlineIcons.esm.js +10 -0
- package/dist/outline/outlineIcons.esm.js.map +1 -0
- package/dist/outline/propertyViews.cjs.js +2 -0
- package/dist/outline/propertyViews.cjs.js.map +1 -0
- package/dist/outline/propertyViews.esm.js +19 -0
- package/dist/outline/propertyViews.esm.js.map +1 -0
- package/dist/outline/queryByExample.cjs.js +2 -0
- package/dist/outline/queryByExample.cjs.js.map +1 -0
- package/dist/outline/queryByExample.esm.js +25 -0
- package/dist/outline/queryByExample.esm.js.map +1 -0
- package/dist/outline/userInput.cjs.js +61 -0
- package/dist/outline/userInput.cjs.js.map +1 -0
- package/dist/outline/userInput.esm.js +784 -0
- package/dist/outline/userInput.esm.js.map +1 -0
- package/dist/outline/viewAsImage.cjs.js +2 -0
- package/dist/outline/viewAsImage.cjs.js.map +1 -0
- package/dist/outline/viewAsImage.esm.js +10 -0
- package/dist/outline/viewAsImage.esm.js.map +1 -0
- package/dist/outline/viewAsMbox.cjs.js +2 -0
- package/dist/outline/viewAsMbox.cjs.js.map +1 -0
- package/dist/outline/viewAsMbox.esm.js +9 -0
- package/dist/outline/viewAsMbox.esm.js.map +1 -0
- package/dist/pad/padPane.d.ts +1 -2
- package/dist/pad/padPane2.cjs.js +2 -0
- package/dist/pad/padPane2.cjs.js.map +1 -0
- package/dist/pad/padPane2.esm.js +172 -0
- package/dist/pad/padPane2.esm.js.map +1 -0
- package/dist/playlist/playlistPane.cjs.js +2 -0
- package/dist/playlist/playlistPane.cjs.js.map +1 -0
- package/dist/playlist/playlistPane.esm.js +49 -0
- package/dist/playlist/playlistPane.esm.js.map +1 -0
- package/dist/profileUtils/ownerProfile.cjs.js +2 -0
- package/dist/profileUtils/ownerProfile.cjs.js.map +1 -0
- package/dist/profileUtils/ownerProfile.d.ts +1 -1
- package/dist/profileUtils/ownerProfile.esm.js +50 -0
- package/dist/profileUtils/ownerProfile.esm.js.map +1 -0
- package/dist/registerPanes.cjs.js +2 -0
- package/dist/registerPanes.cjs.js.map +1 -0
- package/dist/registerPanes.esm.js +46 -0
- package/dist/registerPanes.esm.js.map +1 -0
- package/dist/schedule/formsForSchedule.cjs.js +117 -0
- package/dist/schedule/formsForSchedule.cjs.js.map +1 -0
- package/dist/schedule/formsForSchedule.esm.js +6 -0
- package/dist/schedule/formsForSchedule.esm.js.map +1 -0
- package/dist/schedule/schedulePane.d.ts +2 -4
- package/dist/schedule/schedulePane2.cjs.js +8 -0
- package/dist/schedule/schedulePane2.cjs.js.map +1 -0
- package/dist/schedule/schedulePane2.esm.js +384 -0
- package/dist/schedule/schedulePane2.esm.js.map +1 -0
- package/dist/sharing/sharingPane.cjs.js +2 -0
- package/dist/sharing/sharingPane.cjs.js.map +1 -0
- package/dist/sharing/sharingPane.esm.js +22 -0
- package/dist/sharing/sharingPane.esm.js.map +1 -0
- package/dist/slideshow/slideshowPane.cjs.js +2 -0
- package/dist/slideshow/slideshowPane.cjs.js.map +1 -0
- package/dist/slideshow/slideshowPane.esm.js +46 -0
- package/dist/slideshow/slideshowPane.esm.js.map +1 -0
- package/dist/social/editProfileDetails.cjs.js +2 -0
- package/dist/social/editProfileDetails.cjs.js.map +1 -0
- package/dist/social/editProfileDetails.d.ts +1 -2
- package/dist/social/editProfileDetails.esm.js +12 -0
- package/dist/social/editProfileDetails.esm.js.map +1 -0
- package/dist/social/icons.cjs.js +82 -0
- package/dist/social/icons.cjs.js.map +1 -0
- package/dist/social/{icons.js → icons.esm.js} +12 -18
- package/dist/social/icons.esm.js.map +1 -0
- package/dist/social/socialPane.d.ts +2 -3
- package/dist/social/socialPane2.cjs.js +6 -0
- package/dist/social/socialPane2.cjs.js.map +1 -0
- package/dist/social/socialPane2.esm.js +326 -0
- package/dist/social/socialPane2.esm.js.map +1 -0
- package/dist/social/socialSections.cjs.js +2 -0
- package/dist/social/socialSections.cjs.js.map +1 -0
- package/dist/social/socialSections.d.ts +2 -2
- package/dist/social/socialSections.esm.js +221 -0
- package/dist/social/socialSections.esm.js.map +1 -0
- package/dist/social/spinner.cjs.js +1 -0
- package/dist/social/spinner.esm.js +1 -0
- package/dist/social/triage.cjs.js +2 -0
- package/dist/social/triage.cjs.js.map +1 -0
- package/dist/social/triage.d.ts +2 -2
- package/dist/social/triage.esm.js +44 -0
- package/dist/social/triage.esm.js.map +1 -0
- package/dist/tabbed/tabbedPane.cjs.js +2 -0
- package/dist/tabbed/tabbedPane.cjs.js.map +1 -0
- package/dist/tabbed/tabbedPane.d.ts +1 -1
- package/dist/tabbed/tabbedPane.esm.js +38 -0
- package/dist/tabbed/tabbedPane.esm.js.map +1 -0
- package/dist/tableViewPane.cjs.js +2 -0
- package/dist/tableViewPane.cjs.js.map +1 -0
- package/dist/tableViewPane.esm.js +20 -0
- package/dist/tableViewPane.esm.js.map +1 -0
- package/dist/transaction/pane.cjs.js +8 -0
- package/dist/transaction/pane.cjs.js.map +1 -0
- package/dist/transaction/pane.esm.js +212 -0
- package/dist/transaction/pane.esm.js.map +1 -0
- package/dist/transaction/period.cjs.js +4 -0
- package/dist/transaction/period.cjs.js.map +1 -0
- package/dist/transaction/period.esm.js +126 -0
- package/dist/transaction/period.esm.js.map +1 -0
- package/dist/trip/tripPane.cjs.js +2 -0
- package/dist/trip/tripPane.cjs.js.map +1 -0
- package/dist/trip/tripPane.esm.js +85 -0
- package/dist/trip/tripPane.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.dom.esm.js +108 -0
- package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.utils.esm.js +20 -0
- package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.view.esm.js +41 -0
- package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -0
- package/dist/ui/pane.cjs.js +4 -0
- package/dist/ui/pane.cjs.js.map +1 -0
- package/dist/ui/pane.esm.js +56 -0
- package/dist/ui/pane.esm.js.map +1 -0
- package/dist/versionInfo.cjs.js +2 -0
- package/dist/versionInfo.cjs.js.map +1 -0
- package/dist/versionInfo.esm.js +40 -0
- package/dist/versionInfo.esm.js.map +1 -0
- package/dist/video/videoPane.cjs.js +2 -0
- package/dist/video/videoPane.cjs.js.map +1 -0
- package/dist/video/videoPane.esm.js +25 -0
- package/dist/video/videoPane.esm.js.map +1 -0
- package/package.json +35 -62
- package/dist/0314353e28ce6e5539af.svg +0 -9
- 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 +0 -6
- 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 +0 -9
- package/dist/92d03142abe6efc0b42d.svg +0 -6
- package/dist/976473cf5fe24d657d4b.png +0 -0
- package/dist/RDFXMLPane.css +0 -70
- package/dist/RDFXMLPane.js +0 -100
- package/dist/argument/argumentPane.js +0 -60
- package/dist/attach/attachPane.js +0 -393
- package/dist/audio/audioPane.js +0 -181
- package/dist/bda84f59e7216675a208.png +0 -0
- package/dist/cd68e8f3990ba8b2139e.png +0 -0
- package/dist/classInstancePane.js +0 -91
- package/dist/dashboard/basicPreferences.js +0 -147
- package/dist/dashboard/dashboardPane.js +0 -73
- package/dist/dashboard/homepage.js +0 -42
- package/dist/dataContentPane.css +0 -271
- package/dist/dataContentPane.js +0 -226
- package/dist/defaultPane.css +0 -97
- package/dist/defaultPane.js +0 -81
- package/dist/dokieli/dokieliPane.js +0 -74
- package/dist/e7074a7e2cb69e51cfd3.png +0 -0
- package/dist/f3772696fb7ee53c23d8.png +0 -0
- package/dist/form/formPane.css +0 -120
- package/dist/form/pane.js +0 -250
- package/dist/home/homePane.js +0 -74
- package/dist/humanReadablePane.css +0 -129
- package/dist/humanReadablePane.js +0 -243
- package/dist/icons/clock.svg +0 -7
- package/dist/icons/comment.svg +0 -6
- package/dist/icons/dashboard.svg +0 -9
- package/dist/icons/downArrow.svg +0 -6
- package/dist/icons/folder.svg +0 -6
- package/dist/icons/friends.svg +0 -9
- package/dist/icons/help.svg +0 -8
- package/dist/icons/iconHelper.js +0 -23
- package/dist/icons/person.svg +0 -6
- package/dist/icons/personInCircle.svg +0 -8
- package/dist/icons/sharing.svg +0 -10
- package/dist/icons/signOut.svg +0 -8
- package/dist/icons/signUp.svg +0 -9
- package/dist/icons/star.svg +0 -3
- package/dist/imagePane.css +0 -4
- package/dist/imagePane.js +0 -67
- package/dist/index.js +0 -123
- package/dist/internal/internalPane.css +0 -14
- package/dist/internal/internalPane.js +0 -183
- package/dist/mainPage/footer.js +0 -29
- package/dist/mainPage/header.js +0 -203
- package/dist/mainPage/index.js +0 -78
- package/dist/mainPage/menu.css +0 -243
- package/dist/mainPage/menu.js +0 -449
- package/dist/microblogPane/mbStyle.css +0 -267
- package/dist/microblogPane/microblogPane.js +0 -1031
- package/dist/n3Pane.css +0 -49
- package/dist/n3Pane.js +0 -88
- package/dist/outline/context.js +0 -21
- package/dist/outline/manager.css +0 -78
- package/dist/outline/manager.js +0 -2115
- package/dist/outline/outlineIcons.js +0 -126
- package/dist/outline/propertyViews.js +0 -43
- package/dist/outline/queryByExample.js +0 -285
- package/dist/outline/userInput.js +0 -1821
- package/dist/outline/viewAsImage.js +0 -14
- package/dist/outline/viewAsMbox.js +0 -21
- package/dist/pad/padPane.css +0 -40
- package/dist/pad/padPane.js +0 -421
- package/dist/playlist/playlistPane.js +0 -119
- package/dist/profileUtils/ownerProfile.js +0 -84
- package/dist/registerPanes.js +0 -145
- package/dist/schedule/schedulePane.css +0 -294
- package/dist/schedule/schedulePane.js +0 -1022
- package/dist/sharing/sharingPane.js +0 -48
- package/dist/slideshow/slideshowPane.js +0 -79
- package/dist/social/editProfileDetails.js +0 -362
- package/dist/social/socialPane.css +0 -1464
- package/dist/social/socialPane.js +0 -651
- package/dist/social/socialSections.js +0 -393
- package/dist/social/spinner.js +0 -13
- package/dist/social/triage.js +0 -79
- package/dist/solid-panes.js +0 -87502
- package/dist/solid-panes.js.map +0 -1
- package/dist/solid-panes.min.js +0 -3811
- package/dist/solid-panes.min.js.map +0 -1
- package/dist/styles/tabbedtab.css +0 -1066
- package/dist/styles/utilities.css +0 -5
- package/dist/tabbed/tabbedPane.js +0 -59
- package/dist/tableViewPane.js +0 -56
- package/dist/transaction/pane.js +0 -477
- package/dist/transaction/period.js +0 -323
- package/dist/trip/tripPane.js +0 -174
- package/dist/trustedApplications/trustedApplications.dom.js +0 -145
- package/dist/trustedApplications/trustedApplications.utils.js +0 -23
- package/dist/trustedApplications/trustedApplications.view.js +0 -55
- package/dist/ui/pane.js +0 -146
- package/dist/versionInfo.js +0 -41
- package/dist/video/videoPane.js +0 -42
|
@@ -1,48 +0,0 @@
|
|
|
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;
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
|
@@ -1,362 +0,0 @@
|
|
|
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
|
-
}
|