solid-panes 5.0.0-1 → 5.1.0-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 +67 -2
- package/dist/RDFXMLPane2.cjs.js.map +1 -1
- package/dist/RDFXMLPane2.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/cake.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/cake.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/cake.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/cake.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/camera.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/camera.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/camera.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/camera.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/circle-user-round.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/circle-user-round.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/circle-user-round.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/circle-user-round.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/mail.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/mail.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/mail.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/mail.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/map-pin.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/map-pin.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/map-pin.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/map-pin.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/phone.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/phone.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/phone.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/phone.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/user-round-plus.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user-round-plus.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-plus.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/user-round-plus.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/users.cjs.js.map +1 -1
- package/dist/_virtual/~icons/lucide/users.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/x.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/x.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/x.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/x.esm.js.map +1 -0
- package/dist/audio/audioPane.cjs.js +1 -1
- package/dist/audio/audioPane.cjs.js.map +1 -1
- package/dist/audio/audioPane.esm.js +1 -5
- package/dist/audio/audioPane.esm.js.map +1 -1
- package/dist/classInstancePane.cjs.js.map +1 -1
- package/dist/classInstancePane.esm.js.map +1 -1
- package/dist/components/editor-card/EditorCard.cjs.js +1 -1
- package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
- package/dist/components/editor-card/EditorCard.esm.js +4 -7
- package/dist/components/editor-card/EditorCard.esm.js.map +1 -1
- package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -1
- package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +2 -2
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +3 -3
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +2 -2
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +5 -5
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +97 -96
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -1
- package/dist/components/header/Header.cjs.js +1 -1
- package/dist/components/header/Header.cjs.js.map +1 -1
- package/dist/components/header/Header.esm.js +2 -2
- package/dist/components/header/Header.esm.js.map +1 -1
- package/dist/components/header/Header.styles.cjs.js +1 -1
- package/dist/components/header/Header.styles.cjs.js.map +1 -1
- package/dist/components/header/Header.styles.esm.js +1 -1
- package/dist/components/header/Header.styles.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.cjs.js +1 -1
- package/dist/components/navbar/Navbar.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.d.ts +2 -0
- package/dist/components/navbar/Navbar.d.ts.map +1 -1
- package/dist/components/navbar/Navbar.esm.js +2 -2
- package/dist/components/navbar/Navbar.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.styles.cjs.js +1 -1
- package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.styles.esm.js +1 -1
- package/dist/components/navbar/Navbar.styles.esm.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.cjs.js +95 -0
- package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -0
- package/dist/components/profile-heading/ProfileHeading.d.ts +45 -0
- package/dist/components/profile-heading/ProfileHeading.d.ts.map +1 -0
- package/dist/components/profile-heading/ProfileHeading.esm.js +480 -0
- package/dist/components/profile-heading/ProfileHeading.esm.js.map +1 -0
- package/dist/components/profile-heading/ProfileHeading.styles.cjs.js +2 -0
- package/dist/components/profile-heading/ProfileHeading.styles.cjs.js.map +1 -0
- package/dist/components/profile-heading/ProfileHeading.styles.esm.js +7 -0
- package/dist/components/profile-heading/ProfileHeading.styles.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/index.d.ts +3 -0
- package/dist/components/profile-heading/editor/index.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/contactInfo/types.d.ts +44 -0
- package/dist/components/profile-heading/editor/sections/contactInfo/types.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +297 -0
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.d.ts +5 -0
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +642 -0
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.d.ts +4 -0
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js +16 -0
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.d.ts +5 -0
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.esm.js +76 -0
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js +19 -0
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.d.ts +2 -0
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.esm.js +28 -0
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/mutations.d.ts +4 -0
- package/dist/components/profile-heading/editor/sections/heading/mutations.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +151 -0
- package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/heading/types.d.ts +34 -0
- package/dist/components/profile-heading/editor/sections/heading/types.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.d.ts +7 -0
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js +20 -0
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.d.ts +3 -0
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.esm.js +11 -0
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.d.ts +20 -0
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js +1291 -0
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.d.ts +45 -0
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js +211 -0
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/rowState.d.ts +21 -0
- package/dist/components/profile-heading/editor/sections/shared/rowState.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js +18 -0
- package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js +2 -0
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.d.ts +5 -0
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.esm.js +18 -0
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/sections/shared/types.d.ts +31 -0
- package/dist/components/profile-heading/editor/sections/shared/types.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/textUtils.cjs.js +2 -0
- package/dist/components/profile-heading/editor/textUtils.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/textUtils.d.ts +6 -0
- package/dist/components/profile-heading/editor/textUtils.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/textUtils.esm.js +26 -0
- package/dist/components/profile-heading/editor/textUtils.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/texts/buttonTexts.d.ts +9 -0
- package/dist/components/profile-heading/editor/texts/buttonTexts.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js +2 -0
- package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/texts/dialogTexts.d.ts +14 -0
- package/dist/components/profile-heading/editor/texts/dialogTexts.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js +6 -0
- package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js +2 -0
- package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/texts/messageTexts.d.ts +42 -0
- package/dist/components/profile-heading/editor/texts/messageTexts.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/texts/messageTexts.esm.js +6 -0
- package/dist/components/profile-heading/editor/texts/messageTexts.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/texts/profileTexts.d.ts +14 -0
- package/dist/components/profile-heading/editor/texts/profileTexts.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/texts/qrCodeTexts.d.ts +2 -0
- package/dist/components/profile-heading/editor/texts/qrCodeTexts.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/texts.d.ts +6 -0
- package/dist/components/profile-heading/editor/texts.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/ui/dialog.d.ts +41 -0
- package/dist/components/profile-heading/editor/ui/dialog.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +17 -0
- package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/ui/dialog2.esm.js +263 -0
- package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/ui/spinner.cjs.js +5 -0
- package/dist/components/profile-heading/editor/ui/spinner.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/ui/spinner.d.ts +3 -0
- package/dist/components/profile-heading/editor/ui/spinner.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/ui/spinner.esm.js +12 -0
- package/dist/components/profile-heading/editor/ui/spinner.esm.js.map +1 -0
- package/dist/components/profile-heading/editor/utils/errorDisplay.cjs.js +2 -0
- package/dist/components/profile-heading/editor/utils/errorDisplay.cjs.js.map +1 -0
- package/dist/components/profile-heading/editor/utils/errorDisplay.d.ts +2 -0
- package/dist/components/profile-heading/editor/utils/errorDisplay.d.ts.map +1 -0
- package/dist/components/profile-heading/editor/utils/errorDisplay.esm.js +18 -0
- package/dist/components/profile-heading/editor/utils/errorDisplay.esm.js.map +1 -0
- package/dist/components/profile-heading/friendActions.cjs.js +2 -0
- package/dist/components/profile-heading/friendActions.cjs.js.map +1 -0
- package/dist/components/profile-heading/friendActions.d.ts +11 -0
- package/dist/components/profile-heading/friendActions.d.ts.map +1 -0
- package/dist/components/profile-heading/friendActions.esm.js +32 -0
- package/dist/components/profile-heading/friendActions.esm.js.map +1 -0
- package/dist/components/profile-heading/index.cjs.js +1 -0
- package/dist/components/profile-heading/index.d.ts +5 -0
- package/dist/components/profile-heading/index.d.ts.map +1 -0
- package/dist/components/profile-heading/index.esm.js +1 -0
- package/dist/components/profile-heading/profileHeadingData.cjs.js +2 -0
- package/dist/components/profile-heading/profileHeadingData.cjs.js.map +1 -0
- package/dist/components/profile-heading/profileHeadingData.d.ts +6 -0
- package/dist/components/profile-heading/profileHeadingData.d.ts.map +1 -0
- package/dist/components/profile-heading/profileHeadingData.esm.js +81 -0
- package/dist/components/profile-heading/profileHeadingData.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +2 -2
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -1
- package/dist/dashboard/basicPreferences.cjs.js.map +1 -1
- package/dist/dashboard/basicPreferences.esm.js.map +1 -1
- package/dist/dashboard/dashboardPane.cjs.js.map +1 -1
- package/dist/dashboard/dashboardPane.esm.js.map +1 -1
- package/dist/dashboard/homepage.cjs.js.map +1 -1
- package/dist/dashboard/homepage.esm.js.map +1 -1
- package/dist/dashboard/ontologyData.cjs.js.map +1 -1
- package/dist/dashboard/ontologyData.esm.js.map +1 -1
- package/dist/dashboard/preferencesFormText.cjs.js.map +1 -1
- package/dist/dashboard/preferencesFormText.esm.js.map +1 -1
- package/dist/dataContentPane2.cjs.js.map +1 -1
- package/dist/dataContentPane2.esm.js.map +1 -1
- package/dist/defaultPane2.cjs.js.map +1 -1
- package/dist/defaultPane2.esm.js.map +1 -1
- package/dist/dokieli/dokieliPane.cjs.js.map +1 -1
- package/dist/dokieli/dokieliPane.esm.js.map +1 -1
- package/dist/dokieli/new.cjs.js.map +1 -1
- package/dist/dokieli/new.esm.js.map +1 -1
- package/dist/form/pane.cjs.js.map +1 -1
- package/dist/form/pane.esm.js.map +1 -1
- package/dist/home/homePane.cjs.js.map +1 -1
- package/dist/home/homePane.esm.js.map +1 -1
- package/dist/humanReadablePane2.cjs.js.map +1 -1
- package/dist/humanReadablePane2.esm.js.map +1 -1
- package/dist/icons/folder.cjs.js.map +1 -1
- package/dist/icons/folder.esm.js.map +1 -1
- package/dist/icons/friends.cjs.js.map +1 -1
- package/dist/icons/friends.esm.js.map +1 -1
- package/dist/icons/person.cjs.js.map +1 -1
- package/dist/icons/person.esm.js.map +1 -1
- package/dist/imagePane2.cjs.js.map +1 -1
- package/dist/imagePane2.esm.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +15 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/internal/internalPane2.cjs.js +1 -1
- package/dist/internal/internalPane2.cjs.js.map +1 -1
- package/dist/internal/internalPane2.esm.js +2 -5
- package/dist/internal/internalPane2.esm.js.map +1 -1
- package/dist/mainPage/header.cjs.js +1 -1
- package/dist/mainPage/header.cjs.js.map +1 -1
- package/dist/mainPage/header.d.ts +2 -2
- package/dist/mainPage/header.d.ts.map +1 -1
- package/dist/mainPage/header.esm.js +48 -44
- package/dist/mainPage/header.esm.js.map +1 -1
- package/dist/mainPage/index.cjs.js +1 -1
- package/dist/mainPage/index.cjs.js.map +1 -1
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.esm.js +27 -21
- package/dist/mainPage/index.esm.js.map +1 -1
- package/dist/mainPage/navbar.cjs.js +1 -1
- package/dist/mainPage/navbar.cjs.js.map +1 -1
- package/dist/mainPage/navbar.d.ts +3 -2
- package/dist/mainPage/navbar.d.ts.map +1 -1
- package/dist/mainPage/navbar.esm.js +77 -42
- package/dist/mainPage/navbar.esm.js.map +1 -1
- package/dist/mainPage/navigation.cjs.js +2 -0
- package/dist/mainPage/navigation.cjs.js.map +1 -0
- package/dist/mainPage/navigation.d.ts +6 -0
- package/dist/mainPage/navigation.d.ts.map +1 -0
- package/dist/mainPage/navigation.esm.js +22 -0
- package/dist/mainPage/navigation.esm.js.map +1 -0
- package/dist/mainPage/profileHeading.d.ts +5 -0
- package/dist/mainPage/profileHeading.d.ts.map +1 -0
- package/dist/mainPage/profileHeading2.cjs.js +2 -0
- package/dist/mainPage/profileHeading2.cjs.js.map +1 -0
- package/dist/mainPage/profileHeading2.esm.js +158 -0
- package/dist/mainPage/profileHeading2.esm.js.map +1 -0
- package/dist/n3Pane2.cjs.js.map +1 -1
- package/dist/n3Pane2.esm.js.map +1 -1
- package/dist/navigation/browserEvents.cjs.js +2 -0
- package/dist/navigation/browserEvents.cjs.js.map +1 -0
- package/dist/navigation/browserEvents.d.ts +15 -0
- package/dist/navigation/browserEvents.d.ts.map +1 -0
- package/dist/navigation/browserEvents.esm.js +32 -0
- package/dist/navigation/browserEvents.esm.js.map +1 -0
- package/dist/navigation/chrome.cjs.js +2 -0
- package/dist/navigation/chrome.cjs.js.map +1 -0
- package/dist/navigation/chrome.d.ts +69 -0
- package/dist/navigation/chrome.d.ts.map +1 -0
- package/dist/navigation/chrome.esm.js +43 -0
- package/dist/navigation/chrome.esm.js.map +1 -0
- package/dist/navigation/controller.cjs.js +2 -0
- package/dist/navigation/controller.cjs.js.map +1 -0
- package/dist/navigation/controller.d.ts +51 -0
- package/dist/navigation/controller.d.ts.map +1 -0
- package/dist/navigation/controller.esm.js +45 -0
- package/dist/navigation/controller.esm.js.map +1 -0
- package/dist/navigation/events.cjs.js +2 -0
- package/dist/navigation/events.cjs.js.map +1 -0
- package/dist/navigation/events.d.ts +17 -0
- package/dist/navigation/events.d.ts.map +1 -0
- package/dist/navigation/events.esm.js +18 -0
- package/dist/navigation/events.esm.js.map +1 -0
- package/dist/navigation/navbarVisibility.cjs.js +2 -0
- package/dist/navigation/navbarVisibility.cjs.js.map +1 -0
- package/dist/navigation/navbarVisibility.d.ts +5 -0
- package/dist/navigation/navbarVisibility.d.ts.map +1 -0
- package/dist/navigation/navbarVisibility.esm.js +26 -0
- package/dist/navigation/navbarVisibility.esm.js.map +1 -0
- package/dist/navigation/options.cjs.js +2 -0
- package/dist/navigation/options.cjs.js.map +1 -0
- package/dist/navigation/options.d.ts +16 -0
- package/dist/navigation/options.d.ts.map +1 -0
- package/dist/navigation/options.esm.js +8 -0
- package/dist/navigation/options.esm.js.map +1 -0
- package/dist/navigation/podContext.cjs.js +2 -0
- package/dist/navigation/podContext.cjs.js.map +1 -0
- package/dist/navigation/podContext.d.ts +21 -0
- package/dist/navigation/podContext.d.ts.map +1 -0
- package/dist/navigation/podContext.esm.js +62 -0
- package/dist/navigation/podContext.esm.js.map +1 -0
- package/dist/navigation/state.cjs.js +2 -0
- package/dist/navigation/state.cjs.js.map +1 -0
- package/dist/navigation/state.d.ts +40 -0
- package/dist/navigation/state.d.ts.map +1 -0
- package/dist/navigation/state.esm.js +41 -0
- package/dist/navigation/state.esm.js.map +1 -0
- package/dist/outline/context.cjs.js.map +1 -1
- package/dist/outline/context.esm.js.map +1 -1
- package/dist/outline/manager2.cjs.js +1 -1
- package/dist/outline/manager2.cjs.js.map +1 -1
- package/dist/outline/manager2.esm.js +388 -354
- package/dist/outline/manager2.esm.js.map +1 -1
- package/dist/outline/outlineIcons.cjs.js.map +1 -1
- package/dist/outline/outlineIcons.esm.js.map +1 -1
- package/dist/outline/propertyViews.cjs.js.map +1 -1
- package/dist/outline/propertyViews.esm.js.map +1 -1
- package/dist/outline/queryByExample.cjs.js.map +1 -1
- package/dist/outline/queryByExample.esm.js.map +1 -1
- package/dist/outline/userInput.cjs.js +1 -1
- package/dist/outline/userInput.cjs.js.map +1 -1
- package/dist/outline/userInput.esm.js +12 -13
- package/dist/outline/userInput.esm.js.map +1 -1
- package/dist/outline/viewAsImage.cjs.js.map +1 -1
- package/dist/outline/viewAsImage.esm.js.map +1 -1
- package/dist/outline/viewAsMbox.cjs.js.map +1 -1
- package/dist/outline/viewAsMbox.esm.js.map +1 -1
- package/dist/pad/padPane2.cjs.js +1 -1
- package/dist/pad/padPane2.cjs.js.map +1 -1
- package/dist/pad/padPane2.esm.js +2 -6
- package/dist/pad/padPane2.esm.js.map +1 -1
- package/dist/playlist/playlistPane.cjs.js.map +1 -1
- package/dist/playlist/playlistPane.esm.js.map +1 -1
- package/dist/registerPanes.cjs.js.map +1 -1
- package/dist/registerPanes.esm.js.map +1 -1
- package/dist/schedule/formsForSchedule.cjs.js.map +1 -1
- package/dist/schedule/formsForSchedule.esm.js.map +1 -1
- package/dist/schedule/schedulePane2.cjs.js +1 -1
- package/dist/schedule/schedulePane2.cjs.js.map +1 -1
- package/dist/schedule/schedulePane2.esm.js +1 -5
- package/dist/schedule/schedulePane2.esm.js.map +1 -1
- package/dist/sharing/sharingPane.cjs.js.map +1 -1
- package/dist/sharing/sharingPane.esm.js.map +1 -1
- package/dist/slideshow/slideshowPane.cjs.js.map +1 -1
- package/dist/slideshow/slideshowPane.esm.js.map +1 -1
- package/dist/social/editProfileDetails.cjs.js +1 -1
- package/dist/social/editProfileDetails.cjs.js.map +1 -1
- package/dist/social/editProfileDetails.esm.js +0 -2
- package/dist/social/editProfileDetails.esm.js.map +1 -1
- package/dist/social/icons.cjs.js +4 -4
- package/dist/social/icons.cjs.js.map +1 -1
- package/dist/social/icons.esm.js +5 -5
- package/dist/social/icons.esm.js.map +1 -1
- package/dist/social/socialPane.d.ts +0 -1
- package/dist/social/socialPane.d.ts.map +1 -1
- package/dist/social/socialPane2.cjs.js +3 -3
- package/dist/social/socialPane2.cjs.js.map +1 -1
- package/dist/social/socialPane2.esm.js +97 -154
- package/dist/social/socialPane2.esm.js.map +1 -1
- package/dist/social/socialSections.cjs.js +1 -1
- package/dist/social/socialSections.cjs.js.map +1 -1
- package/dist/social/socialSections.d.ts +2 -1
- package/dist/social/socialSections.d.ts.map +1 -1
- package/dist/social/socialSections.esm.js +54 -129
- package/dist/social/socialSections.esm.js.map +1 -1
- package/dist/social/triage.cjs.js.map +1 -1
- package/dist/social/triage.esm.js.map +1 -1
- package/dist/tabbed/tabbedPane.cjs.js.map +1 -1
- package/dist/tabbed/tabbedPane.esm.js.map +1 -1
- package/dist/tableViewPane.cjs.js.map +1 -1
- package/dist/tableViewPane.esm.js.map +1 -1
- package/dist/transaction/pane.cjs.js.map +1 -1
- package/dist/transaction/pane.esm.js +1 -1
- package/dist/transaction/pane.esm.js.map +1 -1
- package/dist/transaction/period.cjs.js.map +1 -1
- package/dist/transaction/period.esm.js.map +1 -1
- package/dist/trip/tripPane.cjs.js.map +1 -1
- package/dist/trip/tripPane.esm.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/ui/pane.cjs.js +1 -1
- package/dist/ui/pane.cjs.js.map +1 -1
- package/dist/ui/pane.esm.js +2 -5
- package/dist/ui/pane.esm.js.map +1 -1
- package/dist/utils/paneUtils.cjs.js +1 -1
- package/dist/utils/paneUtils.cjs.js.map +1 -1
- package/dist/utils/paneUtils.esm.js +4 -4
- package/dist/utils/paneUtils.esm.js.map +1 -1
- package/dist/utils/podUtils.cjs.js.map +1 -1
- package/dist/utils/podUtils.esm.js.map +1 -1
- package/dist/utils/viewerUtils.cjs.js +2 -0
- package/dist/utils/viewerUtils.cjs.js.map +1 -0
- package/dist/utils/viewerUtils.d.ts +5 -0
- package/dist/utils/viewerUtils.d.ts.map +1 -0
- package/dist/utils/viewerUtils.esm.js +13 -0
- package/dist/utils/viewerUtils.esm.js.map +1 -0
- package/dist/utils/webIdUtils.cjs.js +1 -1
- package/dist/utils/webIdUtils.cjs.js.map +1 -1
- package/dist/utils/webIdUtils.d.ts +1 -0
- package/dist/utils/webIdUtils.d.ts.map +1 -1
- package/dist/utils/webIdUtils.esm.js +23 -19
- package/dist/utils/webIdUtils.esm.js.map +1 -1
- package/dist/versionInfo.cjs.js +1 -1
- package/dist/versionInfo.cjs.js.map +1 -1
- package/dist/versionInfo.esm.js +11 -11
- package/dist/versionInfo.esm.js.map +1 -1
- package/dist/video/videoPane.cjs.js.map +1 -1
- package/dist/video/videoPane.esm.js.map +1 -1
- package/package.json +15 -14
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import "../../_virtual/~icons/lucide/pencil.esm.js";
|
|
2
|
+
import { formatDisplayError as e } from "./editor/utils/errorDisplay.esm.js";
|
|
3
|
+
import "../../_virtual/~icons/lucide/circle-user-round.esm.js";
|
|
4
|
+
import { createHeadingEditDialog as t } from "./editor/sections/heading/HeadingEditDialog.esm.js";
|
|
5
|
+
import { addFriend as n, checkFriend as r, friendTexts as i } from "./friendActions.esm.js";
|
|
6
|
+
import "../../_virtual/~icons/lucide/cake.esm.js";
|
|
7
|
+
import "../../_virtual/~icons/lucide/mail.esm.js";
|
|
8
|
+
import "../../_virtual/~icons/lucide/map-pin.esm.js";
|
|
9
|
+
import "../../_virtual/~icons/lucide/phone.esm.js";
|
|
10
|
+
import "../../_virtual/~icons/lucide/user-round-plus.esm.js";
|
|
11
|
+
import a from "./ProfileHeading.styles.esm.js";
|
|
12
|
+
import { WebComponent as o, customElement as s } from "solid-ui";
|
|
13
|
+
import { authn as c, store as l } from "solid-logic";
|
|
14
|
+
import { property as u, state as d } from "lit/decorators.js";
|
|
15
|
+
import { html as f, nothing as p } from "lit";
|
|
16
|
+
import "solid-ui/components/button";
|
|
17
|
+
//#region src/components/profile-heading/ProfileHeading.ts
|
|
18
|
+
var m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, z, B, V, H, U, W;
|
|
19
|
+
function G(e, t, n) {
|
|
20
|
+
ee(e, t), t.set(e, n);
|
|
21
|
+
}
|
|
22
|
+
function ee(e, t) {
|
|
23
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
24
|
+
}
|
|
25
|
+
function K(e, t, n) {
|
|
26
|
+
return e.set(J(e, t), n), n;
|
|
27
|
+
}
|
|
28
|
+
function q(e, t) {
|
|
29
|
+
return e.get(J(e, t));
|
|
30
|
+
}
|
|
31
|
+
function J(e, t, n) {
|
|
32
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
33
|
+
throw TypeError("Private element is not present on this object");
|
|
34
|
+
}
|
|
35
|
+
function Y(e, t, n) {
|
|
36
|
+
return (t = X(t)) in e ? Object.defineProperty(e, t, {
|
|
37
|
+
value: n,
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0
|
|
41
|
+
}) : e[t] = n, e;
|
|
42
|
+
}
|
|
43
|
+
function te(e, t, n, r, i, a) {
|
|
44
|
+
function o(e, t, n) {
|
|
45
|
+
return function(r, i) {
|
|
46
|
+
return n && n(r), e[t].call(r, i);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function s(e, t) {
|
|
50
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
51
|
+
return t;
|
|
52
|
+
}
|
|
53
|
+
function c(e, t, n, r) {
|
|
54
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
55
|
+
return e;
|
|
56
|
+
}
|
|
57
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
58
|
+
function h(e) {
|
|
59
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
60
|
+
}
|
|
61
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
62
|
+
if (!y) {
|
|
63
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
64
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
65
|
+
d ? (f || p ? b = {
|
|
66
|
+
get: Z(function() {
|
|
67
|
+
return v(this);
|
|
68
|
+
}, r, "get"),
|
|
69
|
+
set: function(e) {
|
|
70
|
+
t[4](this, e);
|
|
71
|
+
}
|
|
72
|
+
} : b[S] = v, f || Z(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
73
|
+
}
|
|
74
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
75
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
76
|
+
kind: [
|
|
77
|
+
"field",
|
|
78
|
+
"accessor",
|
|
79
|
+
"method",
|
|
80
|
+
"getter",
|
|
81
|
+
"setter",
|
|
82
|
+
"class"
|
|
83
|
+
][i],
|
|
84
|
+
name: r,
|
|
85
|
+
metadata: a,
|
|
86
|
+
addInitializer: function(e, t) {
|
|
87
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
88
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
89
|
+
}.bind(null, D)
|
|
90
|
+
};
|
|
91
|
+
try {
|
|
92
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
93
|
+
else {
|
|
94
|
+
var k, A;
|
|
95
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
96
|
+
return h(e), b.value;
|
|
97
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
98
|
+
return e[r];
|
|
99
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
100
|
+
e[r] = t;
|
|
101
|
+
}));
|
|
102
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
103
|
+
return r in e;
|
|
104
|
+
} };
|
|
105
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
106
|
+
get: b.get,
|
|
107
|
+
set: b.set
|
|
108
|
+
} : b[S], O), p) {
|
|
109
|
+
if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
|
|
110
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
111
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
112
|
+
}
|
|
113
|
+
} finally {
|
|
114
|
+
D.v = !0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return (f || p) && l.push(function(e, t) {
|
|
118
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
119
|
+
return t;
|
|
120
|
+
}), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
|
|
121
|
+
}
|
|
122
|
+
function u(e, t) {
|
|
123
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
124
|
+
configurable: !0,
|
|
125
|
+
enumerable: !0,
|
|
126
|
+
value: t
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
130
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
131
|
+
var i, a, o = [], c = function(t) {
|
|
132
|
+
return re(t) === e;
|
|
133
|
+
}, u = /* @__PURE__ */ new Map();
|
|
134
|
+
function d(e) {
|
|
135
|
+
e && o.push(s.bind(null, e));
|
|
136
|
+
}
|
|
137
|
+
for (var f = 0; f < t.length; f++) {
|
|
138
|
+
var p = t[f];
|
|
139
|
+
if (Array.isArray(p)) {
|
|
140
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
141
|
+
if (!y && !g) {
|
|
142
|
+
var x = u.get(b);
|
|
143
|
+
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
144
|
+
u.set(b, !(m > 2) || m);
|
|
145
|
+
}
|
|
146
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : X(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return d(i), d(a), o;
|
|
150
|
+
}(e, t, i, f);
|
|
151
|
+
return n.length || u(e, f), {
|
|
152
|
+
e: p,
|
|
153
|
+
get c() {
|
|
154
|
+
var t = [];
|
|
155
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function X(e) {
|
|
160
|
+
var t = ne(e, "string");
|
|
161
|
+
return typeof t == "symbol" ? t : t + "";
|
|
162
|
+
}
|
|
163
|
+
function ne(e, t) {
|
|
164
|
+
if (typeof e != "object" || !e) return e;
|
|
165
|
+
var n;
|
|
166
|
+
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
167
|
+
var r = n.call(e, t || "default");
|
|
168
|
+
if (typeof r != "object") return r;
|
|
169
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
170
|
+
}
|
|
171
|
+
return (t === "string" ? String : Number)(e);
|
|
172
|
+
}
|
|
173
|
+
function Z(e, t, n) {
|
|
174
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
175
|
+
try {
|
|
176
|
+
Object.defineProperty(e, "name", {
|
|
177
|
+
configurable: !0,
|
|
178
|
+
value: n ? n + " " + t : t
|
|
179
|
+
});
|
|
180
|
+
} catch {}
|
|
181
|
+
return e;
|
|
182
|
+
}
|
|
183
|
+
function re(e) {
|
|
184
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
185
|
+
return e;
|
|
186
|
+
}
|
|
187
|
+
function ie(e) {
|
|
188
|
+
return e;
|
|
189
|
+
}
|
|
190
|
+
E = [s("solid-panes-profile-heading")];
|
|
191
|
+
var Q;
|
|
192
|
+
new (U = (g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), W = (D = u({ attribute: !1 }), k = u({ attribute: !1 }), j = u({ attribute: !1 }), N = u({
|
|
193
|
+
type: Boolean,
|
|
194
|
+
reflect: !0
|
|
195
|
+
}), F = d(), L = d(), z = d(), V = d(), "profileData"), h = class extends o {
|
|
196
|
+
constructor(...e) {
|
|
197
|
+
super(...e), G(this, g, (w(this), O(this, void 0))), G(this, _, A(this, void 0)), G(this, v, M(this, void 0)), G(this, y, P(this, !1)), G(this, b, I(this, void 0)), G(this, x, R(this, "loading")), G(this, S, B(this, "")), G(this, C, H(this, !1)), Y(this, "friendRequest", 0), Y(this, "friendRequestInterrupted", !1), Y(this, "friendMessageTimer", void 0), Y(this, "handleAddFriend", async (e) => {
|
|
198
|
+
if (e.preventDefault(), this.friendState !== "available" && this.friendState !== "error") return;
|
|
199
|
+
let t = this.friendSubject;
|
|
200
|
+
if (!t) return;
|
|
201
|
+
let r = this.friendRequest;
|
|
202
|
+
this.friendState = "saving", this.clearFriendMessage();
|
|
203
|
+
try {
|
|
204
|
+
let e = c.currentUser();
|
|
205
|
+
if (!e) throw Error(i.loginRequired);
|
|
206
|
+
if (await n(e, t), r !== this.friendRequest || this.friendSubject !== t) return;
|
|
207
|
+
this.friendState = "exists", await this.showFriendMessage(i.success, !1);
|
|
208
|
+
} catch (e) {
|
|
209
|
+
if (r !== this.friendRequest || this.friendSubject !== t) return;
|
|
210
|
+
this.friendState = "error", await this.showFriendMessage(e, !0);
|
|
211
|
+
}
|
|
212
|
+
}), Y(this, "handleEdit", (e) => {
|
|
213
|
+
let n = this.editContext;
|
|
214
|
+
n && t(e, l, n.subject, n.profileData, n.viewerMode, async () => {
|
|
215
|
+
this.dispatchEvent(new CustomEvent("profile-heading-saved", {
|
|
216
|
+
bubbles: !0,
|
|
217
|
+
composed: !0,
|
|
218
|
+
detail: { subjectUri: n.subject.value }
|
|
219
|
+
})), await n.onSaved();
|
|
220
|
+
}).catch((e) => {
|
|
221
|
+
console.error("Failed to edit profile heading.", e);
|
|
222
|
+
});
|
|
223
|
+
}), Y(this, "handleImageError", (e) => {
|
|
224
|
+
this.failedImageSrc = e.currentTarget.getAttribute("src") ?? void 0;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
get [W]() {
|
|
228
|
+
return q(g, this);
|
|
229
|
+
}
|
|
230
|
+
set profileData(e) {
|
|
231
|
+
K(g, this, e);
|
|
232
|
+
}
|
|
233
|
+
get editContext() {
|
|
234
|
+
return q(_, this);
|
|
235
|
+
}
|
|
236
|
+
set editContext(e) {
|
|
237
|
+
K(_, this, e);
|
|
238
|
+
}
|
|
239
|
+
get friendSubject() {
|
|
240
|
+
return q(v, this);
|
|
241
|
+
}
|
|
242
|
+
set friendSubject(e) {
|
|
243
|
+
K(v, this, e);
|
|
244
|
+
}
|
|
245
|
+
get compact() {
|
|
246
|
+
return q(y, this);
|
|
247
|
+
}
|
|
248
|
+
set compact(e) {
|
|
249
|
+
K(y, this, e);
|
|
250
|
+
}
|
|
251
|
+
get failedImageSrc() {
|
|
252
|
+
return q(b, this);
|
|
253
|
+
}
|
|
254
|
+
set failedImageSrc(e) {
|
|
255
|
+
K(b, this, e);
|
|
256
|
+
}
|
|
257
|
+
get friendState() {
|
|
258
|
+
return q(x, this);
|
|
259
|
+
}
|
|
260
|
+
set friendState(e) {
|
|
261
|
+
K(x, this, e);
|
|
262
|
+
}
|
|
263
|
+
get friendMessage() {
|
|
264
|
+
return q(S, this);
|
|
265
|
+
}
|
|
266
|
+
set friendMessage(e) {
|
|
267
|
+
K(S, this, e);
|
|
268
|
+
}
|
|
269
|
+
get friendError() {
|
|
270
|
+
return q(C, this);
|
|
271
|
+
}
|
|
272
|
+
set friendError(e) {
|
|
273
|
+
K(C, this, e);
|
|
274
|
+
}
|
|
275
|
+
connectedCallback() {
|
|
276
|
+
super.connectedCallback(), this.friendRequestInterrupted && (this.friendRequestInterrupted = !1, this.startFriendCheck());
|
|
277
|
+
}
|
|
278
|
+
disconnectedCallback() {
|
|
279
|
+
super.disconnectedCallback(), this.friendRequest++, (this.friendState === "loading" || this.friendState === "saving") && (this.friendRequestInterrupted = !0), this.clearFriendMessage();
|
|
280
|
+
}
|
|
281
|
+
clearFriendMessage() {
|
|
282
|
+
clearTimeout(this.friendMessageTimer), this.friendMessageTimer = void 0, this.friendMessage = "";
|
|
283
|
+
}
|
|
284
|
+
willUpdate(e) {
|
|
285
|
+
super.willUpdate(e), e.has("profileData") && e.get("profileData")?.imageSrc !== this.profileData?.imageSrc && (this.failedImageSrc = void 0), e.has("friendSubject") && (this.friendRequestInterrupted = !1, this.startFriendCheck());
|
|
286
|
+
}
|
|
287
|
+
startFriendCheck() {
|
|
288
|
+
let e = ++this.friendRequest;
|
|
289
|
+
this.friendState = "loading", this.clearFriendMessage(), this.friendError = !1;
|
|
290
|
+
let t = this.friendSubject, n = c.currentUser();
|
|
291
|
+
t && n && !n.sameTerm(t) && r(n, t).then((n) => {
|
|
292
|
+
e === this.friendRequest && this.friendSubject === t && (this.friendState = n ? "exists" : "available");
|
|
293
|
+
}).catch((n) => {
|
|
294
|
+
e === this.friendRequest && this.friendSubject === t && (this.friendState = "error", this.showFriendMessage(n, !0));
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
async showFriendMessage(t, n) {
|
|
298
|
+
this.clearFriendMessage(), this.friendMessage = e(t), this.friendError = n, this.friendMessageTimer = setTimeout(() => {
|
|
299
|
+
this.clearFriendMessage();
|
|
300
|
+
}, 1e4), await this.updateComplete, this.shadowRoot?.querySelector(".friend-message")?.focus();
|
|
301
|
+
}
|
|
302
|
+
render() {
|
|
303
|
+
let e = this.profileData;
|
|
304
|
+
if (!e) return f``;
|
|
305
|
+
let t = $(e.primaryPhone?.valueNode).replace(/^tel:/i, ""), n = $(e.primaryEmail?.valueNode).replace(/^mailto:/i, ""), r = ae(e.dateOfBirth), a = !!(e.imageSrc && this.failedImageSrc !== e.imageSrc), o = c.currentUser(), s = !!(this.friendSubject && o && !o.sameTerm(this.friendSubject));
|
|
306
|
+
return f`
|
|
307
|
+
<section class="profile-heading" aria-labelledby="profile-heading-name">
|
|
308
|
+
<div class="avatar">
|
|
309
|
+
<div class="image-frame ${a ? "" : "image-frame--fallback"}">
|
|
310
|
+
${a ? f`<img
|
|
311
|
+
class="hero"
|
|
312
|
+
src=${e.imageSrc}
|
|
313
|
+
alt=${e.name}
|
|
314
|
+
width="140"
|
|
315
|
+
height="140"
|
|
316
|
+
loading="eager"
|
|
317
|
+
@error=${this.handleImageError}
|
|
318
|
+
/>` : p}
|
|
319
|
+
<div class="hero-fallback" role="img" aria-label=${e.name}>
|
|
320
|
+
<icon-lucide-circle-user-round aria-hidden="true"></icon-lucide-circle-user-round>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
|
|
325
|
+
<div class="info">
|
|
326
|
+
<header class="header-bar">
|
|
327
|
+
<div class="identity" role="group" aria-label=${this.compact ? "Name" : "Name and pronouns"}>
|
|
328
|
+
<h1 id="profile-heading-name" class="name">${e.name}</h1>
|
|
329
|
+
${e.pronouns ? f`<span class="pronouns" ?hidden=${this.compact}>(${e.pronouns})</span>` : p}
|
|
330
|
+
</div>
|
|
331
|
+
${e.jobTitle ? f`<div class="role">${e.jobTitle}</div>` : p}
|
|
332
|
+
</header>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
${(this.editContext || s) && !this.compact ? f`
|
|
336
|
+
<div class="profile__actions profile__heading-edit-action">
|
|
337
|
+
${s ? f`
|
|
338
|
+
<div class="profile-friends-button__section" role="group" aria-label="Friend relationship actions">
|
|
339
|
+
<solid-ui-button
|
|
340
|
+
variant="secondary"
|
|
341
|
+
class="profile__btn-friends"
|
|
342
|
+
?disabled=${this.friendState === "loading" || this.friendState === "saving" || this.friendState === "exists"}
|
|
343
|
+
aria-busy=${this.friendState === "loading" || this.friendState === "saving" ? "true" : "false"}
|
|
344
|
+
@click=${this.handleAddFriend}
|
|
345
|
+
>${this.friendState === "exists" ? p : f`<icon-lucide-user-round-plus slot="icon" class="profile__btn-friends-icon" aria-hidden="true"></icon-lucide-user-round-plus>`}${this.friendState === "exists" ? i.exists : i.add}</solid-ui-button>
|
|
346
|
+
${this.friendMessage ? f`
|
|
347
|
+
<div class="friend-message" role=${this.friendError ? "alert" : "status"}
|
|
348
|
+
aria-live=${this.friendError ? "assertive" : "polite"} tabindex="0">
|
|
349
|
+
${this.friendMessage}
|
|
350
|
+
</div>` : p}
|
|
351
|
+
</div>
|
|
352
|
+
` : p}
|
|
353
|
+
${this.editContext ? f`
|
|
354
|
+
<solid-ui-button
|
|
355
|
+
variant="tertiary"
|
|
356
|
+
class="profile-section-collapsible__edit-button desktop-edit-button"
|
|
357
|
+
aria-label="Add or edit heading information"
|
|
358
|
+
@click=${this.handleEdit}
|
|
359
|
+
>
|
|
360
|
+
<span slot="left-icon" class="profile-section-collapsible__action-label profile__add-more-icon" aria-hidden="true">
|
|
361
|
+
${this.renderEditIcon()}
|
|
362
|
+
</span>
|
|
363
|
+
<span class="profile-section-collapsible__action-label edit-label">Edit</span>
|
|
364
|
+
</solid-ui-button>
|
|
365
|
+
<solid-ui-button
|
|
366
|
+
variant="ghost"
|
|
367
|
+
class="profile-section-collapsible__edit-button mobile-edit-button"
|
|
368
|
+
aria-label="Add or edit heading information"
|
|
369
|
+
@click=${this.handleEdit}
|
|
370
|
+
>
|
|
371
|
+
<span slot="icon" class="profile-section-collapsible__edit-icon" aria-hidden="true">
|
|
372
|
+
${this.renderEditIcon()}
|
|
373
|
+
</span>
|
|
374
|
+
</solid-ui-button>
|
|
375
|
+
` : p}
|
|
376
|
+
</div>
|
|
377
|
+
` : p}
|
|
378
|
+
|
|
379
|
+
<div class="details-collapse" aria-hidden=${this.compact ? "true" : "false"} ?inert=${this.compact}>
|
|
380
|
+
<div class="details">
|
|
381
|
+
<div class="detail-row" role="group" aria-label="Additional profile information">
|
|
382
|
+
${this.renderLine(r, "birthday")}
|
|
383
|
+
${this.renderLine(e.location, "location")}
|
|
384
|
+
</div>
|
|
385
|
+
<div class="detail-row" role="group" aria-label="Contact information">
|
|
386
|
+
${this.renderLine(t, "phone")}
|
|
387
|
+
${this.renderLine(n, "email")}
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
</section>
|
|
392
|
+
`;
|
|
393
|
+
}
|
|
394
|
+
renderLine(e, t) {
|
|
395
|
+
return e ? f`
|
|
396
|
+
<div class="detail-item">
|
|
397
|
+
<span class="detail-icon" aria-hidden="true">
|
|
398
|
+
${this.renderIcon(t)}
|
|
399
|
+
</span>
|
|
400
|
+
<span class="detail-value">${e}</span>
|
|
401
|
+
</div>
|
|
402
|
+
` : p;
|
|
403
|
+
}
|
|
404
|
+
renderIcon(e) {
|
|
405
|
+
switch (e) {
|
|
406
|
+
case "birthday": return f`<icon-lucide-cake aria-hidden="true"></icon-lucide-cake>`;
|
|
407
|
+
case "location": return f`<icon-lucide-map-pin aria-hidden="true"></icon-lucide-map-pin>`;
|
|
408
|
+
case "phone": return f`<icon-lucide-phone aria-hidden="true"></icon-lucide-phone>`;
|
|
409
|
+
case "email": return f`<icon-lucide-mail aria-hidden="true"></icon-lucide-mail>`;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
renderEditIcon() {
|
|
413
|
+
return f`<icon-lucide-pencil aria-hidden="true"></icon-lucide-pencil>`;
|
|
414
|
+
}
|
|
415
|
+
}, {e: [O, A, M, P, I, R, B, H, w], c: [Q, T]} = te(h, [
|
|
416
|
+
[
|
|
417
|
+
D,
|
|
418
|
+
1,
|
|
419
|
+
"profileData"
|
|
420
|
+
],
|
|
421
|
+
[
|
|
422
|
+
k,
|
|
423
|
+
1,
|
|
424
|
+
"editContext"
|
|
425
|
+
],
|
|
426
|
+
[
|
|
427
|
+
j,
|
|
428
|
+
1,
|
|
429
|
+
"friendSubject"
|
|
430
|
+
],
|
|
431
|
+
[
|
|
432
|
+
N,
|
|
433
|
+
1,
|
|
434
|
+
"compact"
|
|
435
|
+
],
|
|
436
|
+
[
|
|
437
|
+
F,
|
|
438
|
+
1,
|
|
439
|
+
"failedImageSrc"
|
|
440
|
+
],
|
|
441
|
+
[
|
|
442
|
+
L,
|
|
443
|
+
1,
|
|
444
|
+
"friendState"
|
|
445
|
+
],
|
|
446
|
+
[
|
|
447
|
+
z,
|
|
448
|
+
1,
|
|
449
|
+
"friendMessage"
|
|
450
|
+
],
|
|
451
|
+
[
|
|
452
|
+
V,
|
|
453
|
+
1,
|
|
454
|
+
"friendError"
|
|
455
|
+
]
|
|
456
|
+
], E, 0, void 0, o), h), m = class extends ie {
|
|
457
|
+
constructor() {
|
|
458
|
+
super(Q), Y(this, "styles", a), T();
|
|
459
|
+
}
|
|
460
|
+
}, Y(m, U, void 0), m)();
|
|
461
|
+
function $(e) {
|
|
462
|
+
return e?.value ?? "";
|
|
463
|
+
}
|
|
464
|
+
function ae(e) {
|
|
465
|
+
let t = (e || "").trim(), n = t.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
466
|
+
if (n) {
|
|
467
|
+
let [, e, t, r] = n;
|
|
468
|
+
return `${r}-${t}-${e}`;
|
|
469
|
+
}
|
|
470
|
+
let r = t.match(/^(\d{2})[/-](\d{2})[/-](\d{4})$/);
|
|
471
|
+
if (r) {
|
|
472
|
+
let [, e, t, n] = r;
|
|
473
|
+
return `${e}-${t}-${n}`;
|
|
474
|
+
}
|
|
475
|
+
return t;
|
|
476
|
+
}
|
|
477
|
+
//#endregion
|
|
478
|
+
export { Q as default };
|
|
479
|
+
|
|
480
|
+
//# sourceMappingURL=ProfileHeading.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileHeading.esm.js","names":["authn","store","customElement","WebComponent","html","nothing","property","state","createHeadingEditDialog","addFriend","checkFriend","friendTexts","formatDisplayError","styles","_classDecs","_ProfileHeading","_ProfileHeading2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_profileDataDecs","attribute","_editContextDecs","_friendSubjectDecs","_compactDecs","type","Boolean","reflect","_failedImageSrcDecs","_friendStateDecs","_friendMessageDecs","_friendErrorDecs","_ProfileHeading3","ProfileHeading","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_profileData","undefined","_init_editContext","_init_friendSubject","_init_compact","_init_failedImageSrc","_init_friendState","_init_friendMessage","_init_friendError","_defineProperty","event","preventDefault","friendState","subject","friendSubject","request","friendRequest","clearFriendMessage","viewer","currentUser","Error","loginRequired","showFriendMessage","success","error","context","editContext","profileData","viewerMode","dispatchEvent","CustomEvent","bubbles","composed","detail","subjectUri","value","onSaved","catch","console","failedImageSrc","currentTarget","getAttribute","_classPrivateFieldGet","v","_classPrivateFieldSet","compact","friendMessage","friendError","connectedCallback","friendRequestInterrupted","startFriendCheck","disconnectedCallback","clearTimeout","friendMessageTimer","willUpdate","changed","has","get","imageSrc","sameTerm","then","exists","message","setTimeout","updateComplete","shadowRoot","querySelector","focus","render","profile","phone","textValue","primaryPhone","valueNode","replace","email","primaryEmail","dateOfBirth","displayDate","showImage","showFriend","name","handleImageError","pronouns","jobTitle","handleAddFriend","add","handleEdit","renderEditIcon","renderLine","location","icon","renderIcon","e","c","_initClass","_applyDecs","_Class","_identity","default","raw","trim","isoDate","match","year","month","day","dmyDate","styles","ProfileHeading_styles_default","_Class","_ProfileHeading3","_A","_B","_C","_D","_E","_F","_G","_H","_initProto","_initClass","_classDecs","_profileDataDecs","_init_profileData","_editContextDecs","_init_editContext","_friendSubjectDecs","_init_friendSubject","_compactDecs","_init_compact","_failedImageSrcDecs","_init_failedImageSrc","_friendStateDecs","_init_friendState","_friendMessageDecs","_init_friendMessage","_friendErrorDecs","_init_friendError","_ProfileHeading2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_ProfileHeading","property","state","WebComponent","args","event","subject","request","viewer","authn","friendTexts","addFriend","error","context","createHeadingEditDialog","store","changed","checkFriend","exists","formatDisplayError","message","profile","phone","textValue","email","dateOfBirth","displayDate","showImage","showFriend","nothing","value","icon","raw","isoDate","year","month","day","dmyDate"],"sources":["../../../src/components/profile-heading/ProfileHeading.ts"],"sourcesContent":["import { authn, store } from 'solid-logic'\nimport type { NamedNode, Node } from 'rdflib'\nimport { customElement, WebComponent } from 'solid-ui'\nimport { html, nothing, type PropertyValues, type TemplateResult } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { createHeadingEditDialog } from './editor/sections/heading/HeadingEditDialog'\nimport type { ProfileDetails, ProfilePresentation } from './editor/sections/heading/types'\nimport type { PointDetails } from './editor/sections/contactInfo/types'\nimport type { ViewerMode } from '../../types'\nimport { addFriend, checkFriend, friendTexts } from './friendActions'\nimport { formatDisplayError } from './editor/utils/errorDisplay'\nimport 'solid-ui/components/button'\nimport '~icons/lucide/cake'\nimport '~icons/lucide/circle-user-round'\nimport '~icons/lucide/mail'\nimport '~icons/lucide/map-pin'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/phone'\nimport '~icons/lucide/user-round-plus'\nimport styles from './ProfileHeading.styles.css'\n\nexport type ProfileHeadingPoint = Pick<PointDetails, 'valueNode'>\n\n// The heading renders a subset of the shared presentation model used by the editor.\nexport type ProfileHeadingData =\n Pick<ProfilePresentation, 'name' | 'imageSrc' | 'location' | 'pronouns' | 'dateOfBirth' | 'jobTitle'> & {\n primaryPhone?: ProfileHeadingPoint\n primaryEmail?: ProfileHeadingPoint\n }\n\nexport interface ProfileHeadingEditContext {\n subject: NamedNode\n profileData: ProfileDetails\n viewerMode: ViewerMode\n onSaved: () => Promise<void> | void\n}\n\n@customElement('solid-panes-profile-heading')\nexport default class ProfileHeading extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor profileData: ProfileHeadingData | undefined = undefined\n\n @property({ attribute: false })\n accessor editContext: ProfileHeadingEditContext | undefined = undefined\n\n @property({ attribute: false })\n accessor friendSubject: NamedNode | undefined = undefined\n\n @property({ type: Boolean, reflect: true })\n accessor compact = false\n\n @state()\n accessor failedImageSrc: string | undefined = undefined\n\n @state()\n accessor friendState: 'loading' | 'available' | 'exists' | 'saving' | 'error' = 'loading'\n\n @state()\n accessor friendMessage = ''\n\n @state()\n accessor friendError = false\n\n private friendRequest = 0\n private friendRequestInterrupted = false\n private friendMessageTimer: ReturnType<typeof setTimeout> | undefined\n\n connectedCallback (): void {\n super.connectedCallback()\n if (this.friendRequestInterrupted) {\n this.friendRequestInterrupted = false\n this.startFriendCheck()\n }\n }\n\n disconnectedCallback (): void {\n super.disconnectedCallback()\n this.friendRequest++\n if (this.friendState === 'loading' || this.friendState === 'saving') {\n this.friendRequestInterrupted = true\n }\n this.clearFriendMessage()\n }\n\n private clearFriendMessage (): void {\n clearTimeout(this.friendMessageTimer)\n this.friendMessageTimer = undefined\n this.friendMessage = ''\n }\n\n protected willUpdate (changed: PropertyValues<this>): void {\n super.willUpdate(changed)\n if (changed.has('profileData') && changed.get('profileData')?.imageSrc !== this.profileData?.imageSrc) {\n this.failedImageSrc = undefined\n }\n if (!changed.has('friendSubject')) return\n this.friendRequestInterrupted = false\n this.startFriendCheck()\n }\n\n private startFriendCheck (): void {\n const request = ++this.friendRequest\n this.friendState = 'loading'\n this.clearFriendMessage()\n this.friendError = false\n const subject = this.friendSubject\n const viewer = authn.currentUser()\n if (!subject || !viewer || viewer.sameTerm(subject)) return\n\n checkFriend(viewer, subject).then((exists) => {\n if (request !== this.friendRequest || this.friendSubject !== subject) return\n this.friendState = exists ? 'exists' : 'available'\n }).catch((error: unknown) => {\n if (request !== this.friendRequest || this.friendSubject !== subject) return\n this.friendState = 'error'\n this.showFriendMessage(error, true)\n })\n }\n\n private async showFriendMessage (message: unknown, error: boolean): Promise<void> {\n this.clearFriendMessage()\n this.friendMessage = formatDisplayError(message)\n this.friendError = error\n this.friendMessageTimer = setTimeout(() => {\n this.clearFriendMessage()\n }, 10000)\n await this.updateComplete\n this.shadowRoot?.querySelector<HTMLElement>('.friend-message')?.focus()\n }\n\n private handleAddFriend = async (event: Event): Promise<void> => {\n event.preventDefault()\n if (this.friendState !== 'available' && this.friendState !== 'error') return\n const subject = this.friendSubject\n if (!subject) return\n const request = this.friendRequest\n this.friendState = 'saving'\n this.clearFriendMessage()\n try {\n const viewer = authn.currentUser()\n if (!viewer) throw new Error(friendTexts.loginRequired)\n await addFriend(viewer, subject)\n if (request !== this.friendRequest || this.friendSubject !== subject) return\n this.friendState = 'exists'\n await this.showFriendMessage(friendTexts.success, false)\n } catch (error: unknown) {\n if (request !== this.friendRequest || this.friendSubject !== subject) return\n this.friendState = 'error'\n await this.showFriendMessage(error, true)\n }\n }\n\n private handleEdit = (event: Event) => {\n const context = this.editContext\n if (!context) return\n\n createHeadingEditDialog(\n event,\n store,\n context.subject,\n context.profileData,\n context.viewerMode,\n async () => {\n this.dispatchEvent(new CustomEvent('profile-heading-saved', {\n bubbles: true,\n composed: true,\n detail: { subjectUri: context.subject.value }\n }))\n await context.onSaved()\n }\n ).catch((error: unknown) => {\n console.error('Failed to edit profile heading.', error)\n })\n }\n\n private handleImageError = (event: Event) => {\n this.failedImageSrc = (event.currentTarget as HTMLImageElement).getAttribute('src') ?? undefined\n }\n\n render (): TemplateResult<1> {\n const profile = this.profileData\n if (!profile) return html``\n\n const phone = textValue(profile.primaryPhone?.valueNode).replace(/^tel:/i, '')\n const email = textValue(profile.primaryEmail?.valueNode).replace(/^mailto:/i, '')\n const dateOfBirth = displayDate(profile.dateOfBirth)\n const showImage = Boolean(profile.imageSrc && this.failedImageSrc !== profile.imageSrc)\n const viewer = authn.currentUser()\n const showFriend = Boolean(this.friendSubject && viewer && !viewer.sameTerm(this.friendSubject))\n\n return html`\n <section class=\"profile-heading\" aria-labelledby=\"profile-heading-name\">\n <div class=\"avatar\">\n <div class=\"image-frame ${showImage ? '' : 'image-frame--fallback'}\">\n ${showImage\n ? html`<img\n class=\"hero\"\n src=${profile.imageSrc}\n alt=${profile.name}\n width=\"140\"\n height=\"140\"\n loading=\"eager\"\n @error=${this.handleImageError}\n />`\n : nothing}\n <div class=\"hero-fallback\" role=\"img\" aria-label=${profile.name}>\n <icon-lucide-circle-user-round aria-hidden=\"true\"></icon-lucide-circle-user-round>\n </div>\n </div>\n </div>\n\n <div class=\"info\">\n <header class=\"header-bar\">\n <div class=\"identity\" role=\"group\" aria-label=${this.compact ? 'Name' : 'Name and pronouns'}>\n <h1 id=\"profile-heading-name\" class=\"name\">${profile.name}</h1>\n ${profile.pronouns ? html`<span class=\"pronouns\" ?hidden=${this.compact}>(${profile.pronouns})</span>` : nothing}\n </div>\n ${profile.jobTitle ? html`<div class=\"role\">${profile.jobTitle}</div>` : nothing}\n </header>\n </div>\n\n ${(this.editContext || showFriend) && !this.compact\n ? html`\n <div class=\"profile__actions profile__heading-edit-action\">\n ${showFriend\n ? html`\n <div class=\"profile-friends-button__section\" role=\"group\" aria-label=\"Friend relationship actions\">\n <solid-ui-button\n variant=\"secondary\"\n class=\"profile__btn-friends\"\n ?disabled=${this.friendState === 'loading' || this.friendState === 'saving' || this.friendState === 'exists'}\n aria-busy=${this.friendState === 'loading' || this.friendState === 'saving' ? 'true' : 'false'}\n @click=${this.handleAddFriend}\n >${this.friendState === 'exists'\n ? nothing\n : html`<icon-lucide-user-round-plus slot=\"icon\" class=\"profile__btn-friends-icon\" aria-hidden=\"true\"></icon-lucide-user-round-plus>`}${this.friendState === 'exists' ? friendTexts.exists : friendTexts.add}</solid-ui-button>\n ${this.friendMessage\n ? html`\n <div class=\"friend-message\" role=${this.friendError ? 'alert' : 'status'}\n aria-live=${this.friendError ? 'assertive' : 'polite'} tabindex=\"0\">\n ${this.friendMessage}\n </div>`\n : nothing}\n </div>\n `\n : nothing}\n ${this.editContext\n ? html`\n <solid-ui-button\n variant=\"tertiary\"\n class=\"profile-section-collapsible__edit-button desktop-edit-button\"\n aria-label=\"Add or edit heading information\"\n @click=${this.handleEdit}\n >\n <span slot=\"left-icon\" class=\"profile-section-collapsible__action-label profile__add-more-icon\" aria-hidden=\"true\">\n ${this.renderEditIcon()}\n </span>\n <span class=\"profile-section-collapsible__action-label edit-label\">Edit</span>\n </solid-ui-button>\n <solid-ui-button\n variant=\"ghost\"\n class=\"profile-section-collapsible__edit-button mobile-edit-button\"\n aria-label=\"Add or edit heading information\"\n @click=${this.handleEdit}\n >\n <span slot=\"icon\" class=\"profile-section-collapsible__edit-icon\" aria-hidden=\"true\">\n ${this.renderEditIcon()}\n </span>\n </solid-ui-button>\n `\n : nothing}\n </div>\n `\n : nothing}\n\n <div class=\"details-collapse\" aria-hidden=${this.compact ? 'true' : 'false'} ?inert=${this.compact}>\n <div class=\"details\">\n <div class=\"detail-row\" role=\"group\" aria-label=\"Additional profile information\">\n ${this.renderLine(dateOfBirth, 'birthday')}\n ${this.renderLine(profile.location, 'location')}\n </div>\n <div class=\"detail-row\" role=\"group\" aria-label=\"Contact information\">\n ${this.renderLine(phone, 'phone')}\n ${this.renderLine(email, 'email')}\n </div>\n </div>\n </div>\n </section>\n `\n }\n\n private renderLine (value: string | undefined, icon: 'birthday' | 'location' | 'phone' | 'email') {\n if (!value) return nothing\n\n return html`\n <div class=\"detail-item\">\n <span class=\"detail-icon\" aria-hidden=\"true\">\n ${this.renderIcon(icon)}\n </span>\n <span class=\"detail-value\">${value}</span>\n </div>\n `\n }\n\n private renderIcon (icon: 'birthday' | 'location' | 'phone' | 'email'): TemplateResult {\n switch (icon) {\n case 'birthday':\n return html`<icon-lucide-cake aria-hidden=\"true\"></icon-lucide-cake>`\n case 'location':\n return html`<icon-lucide-map-pin aria-hidden=\"true\"></icon-lucide-map-pin>`\n case 'phone':\n return html`<icon-lucide-phone aria-hidden=\"true\"></icon-lucide-phone>`\n case 'email':\n return html`<icon-lucide-mail aria-hidden=\"true\"></icon-lucide-mail>`\n }\n }\n\n private renderEditIcon (): TemplateResult {\n return html`<icon-lucide-pencil aria-hidden=\"true\"></icon-lucide-pencil>`\n }\n}\n\nfunction textValue (value: Node | undefined): string {\n return value?.value ?? ''\n}\n\nfunction displayDate (value?: string): string {\n const raw = (value || '').trim()\n const isoDate = raw.match(/^(\\d{4})-(\\d{2})-(\\d{2})/)\n if (isoDate) {\n const [, year, month, day] = isoDate\n return `${day}-${month}-${year}`\n }\n\n const dmyDate = raw.match(/^(\\d{2})[/-](\\d{2})[/-](\\d{4})$/)\n if (dmyDate) {\n const [, day, month, year] = dmyDate\n return `${day}-${month}-${year}`\n }\n\n return raw\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A;EAAAZ;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAxB,GAAA,GAAA,KAAA,GA5R2CX,CAAY,GAAAoC,IAAAuG,IAAA,cAAAC,GAAA;CAAAtG,cAAA;EAAA,MAAA1B,CAAA,GAAAuC,EAAA,MAAA,UACtCzC,CAAM,GAAA+H,EAAA;CAAA;AAAA,GAAAtF,EAAAwF,GAAA9H,GAAA,KAAA,CAAA,GAAA8H,GAAA;AA6RxB,SAAS1B,EAAWpC,GAAiC;CACnD,OAAOA,GAAOA,SAAS;AACzB;AAEA,SAAS2C,GAAa3C,GAAwB;CAC5C,IAAMiE,KAAOjE,KAAS,GAAA,CAAIkE,KAAK,GACzBC,IAAUF,EAAIG,MAAM,0BAA0B;CACpD,IAAID,GAAS;EACX,IAAM,GAAGE,GAAMC,GAAOC,KAAOJ;EAC7B,OAAO,GAAGI,EAAG,GAAID,EAAK,GAAID;CAC5B;CAEA,IAAMG,IAAUP,EAAIG,MAAM,iCAAiC;CAC3D,IAAII,GAAS;EACX,IAAM,GAAGD,GAAKD,GAAOD,KAAQG;EAC7B,OAAO,GAAGD,EAAG,GAAID,EAAK,GAAID;CAC5B;CAEA,OAAOJ;AACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=require("lit").css`:host{--profile-avatar-size:8.75rem;--profile-fallback-padding:36.4px;width:100%;color:var(--color-text-secondary,#4a5565);font-family:inherit;display:block}.profile-heading{box-sizing:border-box;background:var(--solid-ui-color-white,#fff);border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);border-radius:5px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"avatar info edit\"\"avatar details details\";align-items:start;gap:20px;width:100%;padding:25px;transition:box-shadow .2s,transform .2s,padding .3s,row-gap .3s;display:grid;overflow-x:clip}.profile-heading:hover{box-shadow:0 8px 10px #7c4dff1a}.avatar{grid-area:avatar}.image-frame{width:var(--profile-avatar-size);aspect-ratio:1;place-items:center;transition:width .3s;display:grid;position:relative;overflow:hidden}.image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box}.hero{border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat;object-fit:cover;object-position:center;box-sizing:border-box;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.hero-fallback{width:100%;height:100%;padding:0 var(--profile-fallback-padding);box-sizing:border-box;justify-content:center;align-items:center;transition:padding .3s;display:none}.hero-fallback icon-lucide-circle-user-round{color:#cbd5e1;width:100%;height:100%;display:block}.image-frame--fallback .hero-fallback{display:flex}.info{grid-area:info;min-width:0}.profile__heading-edit-action{grid-area:edit;justify-content:flex-end;place-self:flex-start end;align-items:flex-start;gap:8px;margin-bottom:0;margin-left:auto;margin-right:0;padding:0;display:flex}.profile-friends-button__section{gap:8px;max-width:16rem;display:grid}.profile__btn-friends-icon{align-self:center;width:14px;height:14px;display:block;transform:translateY(-3px)}.friend-message{text-align:center;font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere}.friend-message[role=alert]{color:var(--solid-ui-color-red-700,#b91c1c)}.friend-message[role=status]{color:var(--solid-ui-color-green-700,#15803d)}.profile-section-collapsible__edit-button{min-width:0}.mobile-edit-button{color:var(--solid-ui-color-primary,#7c4dff);display:none}.profile-section-collapsible__action-label{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile__add-more-icon{margin-right:0;line-height:0;position:relative;top:0;transform:translateY(0)}.profile__add-more-icon icon-lucide-pencil,.profile-section-collapsible__edit-icon icon-lucide-pencil{width:14px;height:14px;display:block}.header-bar{flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:0;display:flex}.identity{flex-wrap:wrap;align-items:baseline;gap:7px;width:100%;display:flex}.name{color:var(--color-text-heading,#000);overflow-wrap:anywhere;margin:0;font-size:1.75rem;font-weight:600;line-height:1.2;display:block}.pronouns{color:var(--color-text-secondary,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.2}.role{width:100%;color:var(--solid-ui-color-gray-800,#101828);font-size:var(--solid-ui-font-size-lg,1.125rem);overflow-wrap:anywhere;font-weight:500;line-height:1.25}.details-collapse{grid-area:details;grid-template-rows:1fr;transition:grid-template-rows .3s,opacity .3s;display:grid}.details{width:100%;min-width:0;min-height:0;font-size:var(--font-size-sm,.875rem);flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px 32px;display:flex;overflow:hidden}:host([compact]) .profile-heading{row-gap:0;padding:12.5px}:host([compact]) .image-frame{width:calc(var(--profile-avatar-size) / 2)}:host([compact]) .hero-fallback{padding-inline:calc(var(--profile-fallback-padding) / 2)}:host([compact]) .info{align-self:center}:host([compact]) .name{white-space:normal;overflow-wrap:anywhere}:host([compact]) .details-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr}.pronouns[hidden]{display:none}.detail-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px clamp(12px,2vw,24px);width:min(100%,544px);display:grid}.detail-item{align-items:flex-start;gap:7px;min-width:0;display:flex}.detail-icon{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:inline-flex}.detail-icon>icon-lucide-cake,.detail-icon>icon-lucide-map-pin,.detail-icon>icon-lucide-phone,.detail-icon>icon-lucide-mail{color:currentColor;width:16px;height:16px;display:block}.detail-value{overflow-wrap:anywhere;word-break:break-word;min-width:0}@media (width<=1200px){:host{--profile-avatar-size:6.5rem;--profile-fallback-padding:27px}.profile-heading{column-gap:15px}}@media (width<=768px){.profile-heading:has(.profile-friends-button__section) .name{white-space:normal;overflow-wrap:anywhere}.profile__btn-friends-icon,.profile__btn-friends[disabled]:not([aria-busy=true]){display:none}:host{--profile-avatar-size:4.375rem;--profile-fallback-padding:0px}.profile-heading{grid-template-areas:\"avatar info edit\"\"details details details\";gap:12px 8px}.profile-section-collapsible__edit-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px)}.desktop-edit-button{display:none}.mobile-edit-button{display:inline-flex;position:relative;top:-12px;right:-12px}.profile-section-collapsible__edit-icon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.profile-heading{column-gap:10px}.hero-fallback icon-lucide-circle-user-round{width:3rem;height:3rem;transition:width .3s,height .3s}:host([compact]) .hero-fallback icon-lucide-circle-user-round{width:1.5rem;height:1.5rem}.name{white-space:normal;overflow-wrap:anywhere;font-size:1.375rem;line-height:1.15;display:inline}.identity{gap:0}.pronouns{white-space:nowrap;margin-left:2px;font-size:.6875rem;line-height:1.1}.role{font-size:var(--solid-ui-font-size-sm,.875rem)}.details{gap:12px;font-size:.75rem}.detail-row{column-gap:2px}}@media (prefers-reduced-motion:reduce){.profile-heading,.image-frame,.hero-fallback,.hero-fallback icon-lucide-circle-user-round,.details-collapse{transition:none}}`;exports.default=e;
|
|
2
|
+
//# sourceMappingURL=ProfileHeading.styles.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileHeading.styles.cjs.js","names":["ProfileHeading_styles_default"],"sources":["../../../src/components/profile-heading/ProfileHeading.styles.css"],"sourcesContent":[":host {\n --profile-avatar-size: 8.75rem;\n --profile-fallback-padding: 36.4px;\n display: block;\n width: 100%;\n color: var(--color-text-secondary, #4a5565);\n font-family: inherit;\n}\n\n.profile-heading {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-areas:\n \"avatar info edit\"\n \"avatar details details\";\n align-items: start;\n column-gap: 20px;\n row-gap: 20px;\n width: 100%;\n box-sizing: border-box;\n padding: 25px;\n overflow-x: clip;\n background: var(--solid-ui-color-white, #fff);\n border: 1px solid var(--solid-ui-color-slate-200, #e2e8f0);\n border-radius: 5px;\n transition: box-shadow 0.2s ease, transform 0.2s ease, padding 0.3s ease, row-gap 0.3s ease;\n}\n\n.profile-heading:hover {\n box-shadow: 0 8px 10px rgba(124, 77, 255, 0.1);\n}\n\n.avatar {\n grid-area: avatar;\n}\n\n.image-frame {\n position: relative;\n display: grid;\n place-items: center;\n width: var(--profile-avatar-size);\n aspect-ratio: 1;\n overflow: hidden;\n transition: width 0.3s ease;\n}\n\n.image-frame--fallback {\n border: 1px dashed var(--solid-ui-color-slate-200, #e2e8f0);\n background: var(--solid-ui-color-slate-50, #f8fafc);\n box-sizing: border-box;\n}\n\n.hero {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n border: 1px solid var(--solid-ui-color-primary, #7c4dff);\n background: var(--color-surface-placeholder, var(--gray-300, #d1d5dc)) 50% / cover no-repeat;\n object-fit: cover;\n object-position: center;\n box-sizing: border-box;\n border-radius: 10px;\n}\n\n.hero-fallback {\n display: none;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: 0 var(--profile-fallback-padding);\n box-sizing: border-box;\n transition: padding 0.3s ease;\n}\n\n.hero-fallback icon-lucide-circle-user-round {\n display: block;\n width: 100%;\n height: 100%;\n color: #cbd5e1;\n}\n\n.image-frame--fallback .hero-fallback {\n display: flex;\n}\n\n.info {\n grid-area: info;\n min-width: 0;\n}\n\n.profile__heading-edit-action {\n grid-area: edit;\n margin-left: auto;\n margin-right: 0;\n margin-bottom: 0;\n align-self: flex-start;\n justify-self: end;\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n gap: 8px;\n padding: 0;\n}\n\n.profile-friends-button__section {\n display: grid;\n gap: 8px;\n max-width: 16rem;\n}\n\n.profile__btn-friends-icon {\n display: block;\n width: 14px;\n height: 14px;\n align-self: center;\n transform: translateY(-3px);\n}\n\n.friend-message {\n text-align: center;\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n overflow-wrap: anywhere;\n}\n\n.friend-message[role=\"alert\"] {\n color: var(--solid-ui-color-red-700, #b91c1c);\n}\n\n.friend-message[role=\"status\"] {\n color: var(--solid-ui-color-green-700, #15803d);\n}\n\n.profile-section-collapsible__edit-button {\n min-width: 0;\n}\n\n.mobile-edit-button {\n display: none;\n color: var(--solid-ui-color-primary, #7c4dff);\n}\n\n.profile-section-collapsible__action-label {\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n}\n\n.profile__add-more-icon {\n margin-right: 0;\n line-height: 0;\n position: relative;\n top: 0;\n transform: translateY(0);\n}\n\n.profile__add-more-icon icon-lucide-pencil,\n.profile-section-collapsible__edit-icon icon-lucide-pencil {\n display: block;\n width: 14px;\n height: 14px;\n}\n\n.header-bar {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n width: 100%;\n margin: 0;\n padding: 0;\n}\n\n.identity {\n display: flex;\n align-items: baseline;\n gap: 7px;\n width: 100%;\n flex-wrap: wrap;\n}\n\n.name {\n display: block;\n margin: 0;\n color: var(--color-text-heading, #000);\n font-size: 1.75rem;\n font-weight: 600;\n line-height: 1.2;\n overflow-wrap: anywhere;\n}\n\n.pronouns {\n color: var(--color-text-secondary, #4a5565);\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n font-weight: 400;\n line-height: 1.2;\n}\n\n.role {\n width: 100%;\n color: var(--solid-ui-color-gray-800, #101828);\n font-size: var(--solid-ui-font-size-lg, 1.125rem);\n font-weight: 500;\n line-height: 1.25;\n overflow-wrap: anywhere;\n}\n\n.details-collapse {\n grid-area: details;\n display: grid;\n grid-template-rows: 1fr;\n transition: grid-template-rows 0.3s ease, opacity 0.3s ease;\n}\n\n.details {\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n align-items: flex-start;\n gap: 12px 32px;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n width: 100%;\n font-size: var(--font-size-sm, 0.875rem);\n}\n\n:host([compact]) .profile-heading {\n padding: 12.5px;\n row-gap: 0;\n}\n\n:host([compact]) .image-frame {\n width: calc(var(--profile-avatar-size) / 2);\n}\n\n:host([compact]) .hero-fallback {\n padding-inline: calc(var(--profile-fallback-padding) / 2);\n}\n\n:host([compact]) .info {\n align-self: center;\n}\n\n:host([compact]) .name {\n white-space: normal;\n overflow-wrap: anywhere;\n}\n\n:host([compact]) .details-collapse {\n grid-template-rows: 0fr;\n opacity: 0;\n visibility: hidden;\n}\n\n.pronouns[hidden] {\n display: none;\n}\n\n.detail-row {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n align-items: start;\n column-gap: clamp(12px, 2vw, 24px);\n row-gap: 12px;\n width: min(100%, 544px);\n}\n\n.detail-item {\n display: flex;\n align-items: flex-start;\n gap: 7px;\n min-width: 0;\n}\n\n.detail-icon {\n display: inline-flex;\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n margin-top: 1px;\n}\n\n.detail-icon > icon-lucide-cake,\n.detail-icon > icon-lucide-map-pin,\n.detail-icon > icon-lucide-phone,\n.detail-icon > icon-lucide-mail {\n display: block;\n width: 16px;\n height: 16px;\n color: currentColor;\n}\n\n.detail-value {\n min-width: 0;\n overflow-wrap: anywhere;\n word-break: break-word;\n}\n\n@media (max-width: 1200px) {\n :host {\n --profile-avatar-size: 6.5rem;\n --profile-fallback-padding: 27px;\n }\n\n .profile-heading {\n column-gap: 15px;\n }\n\n}\n\n@media (max-width: 768px) {\n .profile-heading:has(.profile-friends-button__section) .name {\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n .profile__btn-friends-icon {\n display: none;\n }\n\n .profile__btn-friends[disabled]:not([aria-busy=\"true\"]) {\n display: none;\n }\n\n :host {\n --profile-avatar-size: 4.375rem;\n --profile-fallback-padding: 0px;\n }\n\n .profile-heading {\n grid-template-areas:\n \"avatar info edit\"\n \"details details details\";\n column-gap: 8px;\n row-gap: 12px;\n }\n\n .profile-section-collapsible__edit-button {\n width: var(--solid-ui-clickable-area, 42px);\n height: var(--solid-ui-clickable-area, 42px);\n }\n\n .desktop-edit-button {\n display: none;\n }\n\n .mobile-edit-button {\n display: inline-flex;\n position: relative;\n top: -12px;\n right: -12px;\n }\n\n .profile-section-collapsible__edit-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n }\n\n .profile-heading {\n column-gap: 10px;\n }\n\n .hero-fallback icon-lucide-circle-user-round {\n width: 3rem;\n height: 3rem;\n transition: width 0.3s ease, height 0.3s ease;\n }\n\n :host([compact]) .hero-fallback icon-lucide-circle-user-round {\n width: 1.5rem;\n height: 1.5rem;\n }\n\n .name {\n display: inline;\n font-size: 1.375rem;\n line-height: 1.15;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n .identity {\n gap: 0;\n }\n\n .pronouns {\n margin-left: 2px;\n font-size: 0.6875rem;\n line-height: 1.1;\n white-space: nowrap;\n }\n\n .role {\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n }\n\n .details {\n gap: 12px;\n font-size: 0.75rem;\n }\n\n .detail-row {\n column-gap: 2px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .profile-heading,\n .image-frame,\n .hero-fallback,\n .hero-fallback icon-lucide-circle-user-round,\n .details-collapse {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
//#region src/components/profile-heading/ProfileHeading.styles.css
|
|
3
|
+
var t = e`:host{--profile-avatar-size:8.75rem;--profile-fallback-padding:36.4px;width:100%;color:var(--color-text-secondary,#4a5565);font-family:inherit;display:block}.profile-heading{box-sizing:border-box;background:var(--solid-ui-color-white,#fff);border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);border-radius:5px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"avatar info edit\"\"avatar details details\";align-items:start;gap:20px;width:100%;padding:25px;transition:box-shadow .2s,transform .2s,padding .3s,row-gap .3s;display:grid;overflow-x:clip}.profile-heading:hover{box-shadow:0 8px 10px #7c4dff1a}.avatar{grid-area:avatar}.image-frame{width:var(--profile-avatar-size);aspect-ratio:1;place-items:center;transition:width .3s;display:grid;position:relative;overflow:hidden}.image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box}.hero{border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat;object-fit:cover;object-position:center;box-sizing:border-box;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.hero-fallback{width:100%;height:100%;padding:0 var(--profile-fallback-padding);box-sizing:border-box;justify-content:center;align-items:center;transition:padding .3s;display:none}.hero-fallback icon-lucide-circle-user-round{color:#cbd5e1;width:100%;height:100%;display:block}.image-frame--fallback .hero-fallback{display:flex}.info{grid-area:info;min-width:0}.profile__heading-edit-action{grid-area:edit;justify-content:flex-end;place-self:flex-start end;align-items:flex-start;gap:8px;margin-bottom:0;margin-left:auto;margin-right:0;padding:0;display:flex}.profile-friends-button__section{gap:8px;max-width:16rem;display:grid}.profile__btn-friends-icon{align-self:center;width:14px;height:14px;display:block;transform:translateY(-3px)}.friend-message{text-align:center;font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere}.friend-message[role=alert]{color:var(--solid-ui-color-red-700,#b91c1c)}.friend-message[role=status]{color:var(--solid-ui-color-green-700,#15803d)}.profile-section-collapsible__edit-button{min-width:0}.mobile-edit-button{color:var(--solid-ui-color-primary,#7c4dff);display:none}.profile-section-collapsible__action-label{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile__add-more-icon{margin-right:0;line-height:0;position:relative;top:0;transform:translateY(0)}.profile__add-more-icon icon-lucide-pencil,.profile-section-collapsible__edit-icon icon-lucide-pencil{width:14px;height:14px;display:block}.header-bar{flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:0;display:flex}.identity{flex-wrap:wrap;align-items:baseline;gap:7px;width:100%;display:flex}.name{color:var(--color-text-heading,#000);overflow-wrap:anywhere;margin:0;font-size:1.75rem;font-weight:600;line-height:1.2;display:block}.pronouns{color:var(--color-text-secondary,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.2}.role{width:100%;color:var(--solid-ui-color-gray-800,#101828);font-size:var(--solid-ui-font-size-lg,1.125rem);overflow-wrap:anywhere;font-weight:500;line-height:1.25}.details-collapse{grid-area:details;grid-template-rows:1fr;transition:grid-template-rows .3s,opacity .3s;display:grid}.details{width:100%;min-width:0;min-height:0;font-size:var(--font-size-sm,.875rem);flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px 32px;display:flex;overflow:hidden}:host([compact]) .profile-heading{row-gap:0;padding:12.5px}:host([compact]) .image-frame{width:calc(var(--profile-avatar-size) / 2)}:host([compact]) .hero-fallback{padding-inline:calc(var(--profile-fallback-padding) / 2)}:host([compact]) .info{align-self:center}:host([compact]) .name{white-space:normal;overflow-wrap:anywhere}:host([compact]) .details-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr}.pronouns[hidden]{display:none}.detail-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px clamp(12px,2vw,24px);width:min(100%,544px);display:grid}.detail-item{align-items:flex-start;gap:7px;min-width:0;display:flex}.detail-icon{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:inline-flex}.detail-icon>icon-lucide-cake,.detail-icon>icon-lucide-map-pin,.detail-icon>icon-lucide-phone,.detail-icon>icon-lucide-mail{color:currentColor;width:16px;height:16px;display:block}.detail-value{overflow-wrap:anywhere;word-break:break-word;min-width:0}@media (width<=1200px){:host{--profile-avatar-size:6.5rem;--profile-fallback-padding:27px}.profile-heading{column-gap:15px}}@media (width<=768px){.profile-heading:has(.profile-friends-button__section) .name{white-space:normal;overflow-wrap:anywhere}.profile__btn-friends-icon,.profile__btn-friends[disabled]:not([aria-busy=true]){display:none}:host{--profile-avatar-size:4.375rem;--profile-fallback-padding:0px}.profile-heading{grid-template-areas:\"avatar info edit\"\"details details details\";gap:12px 8px}.profile-section-collapsible__edit-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px)}.desktop-edit-button{display:none}.mobile-edit-button{display:inline-flex;position:relative;top:-12px;right:-12px}.profile-section-collapsible__edit-icon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.profile-heading{column-gap:10px}.hero-fallback icon-lucide-circle-user-round{width:3rem;height:3rem;transition:width .3s,height .3s}:host([compact]) .hero-fallback icon-lucide-circle-user-round{width:1.5rem;height:1.5rem}.name{white-space:normal;overflow-wrap:anywhere;font-size:1.375rem;line-height:1.15;display:inline}.identity{gap:0}.pronouns{white-space:nowrap;margin-left:2px;font-size:.6875rem;line-height:1.1}.role{font-size:var(--solid-ui-font-size-sm,.875rem)}.details{gap:12px;font-size:.75rem}.detail-row{column-gap:2px}}@media (prefers-reduced-motion:reduce){.profile-heading,.image-frame,.hero-fallback,.hero-fallback icon-lucide-circle-user-round,.details-collapse{transition:none}}`;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=ProfileHeading.styles.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileHeading.styles.esm.js","names":["ProfileHeading_styles_default"],"sources":["../../../src/components/profile-heading/ProfileHeading.styles.css"],"sourcesContent":[":host {\n --profile-avatar-size: 8.75rem;\n --profile-fallback-padding: 36.4px;\n display: block;\n width: 100%;\n color: var(--color-text-secondary, #4a5565);\n font-family: inherit;\n}\n\n.profile-heading {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-areas:\n \"avatar info edit\"\n \"avatar details details\";\n align-items: start;\n column-gap: 20px;\n row-gap: 20px;\n width: 100%;\n box-sizing: border-box;\n padding: 25px;\n overflow-x: clip;\n background: var(--solid-ui-color-white, #fff);\n border: 1px solid var(--solid-ui-color-slate-200, #e2e8f0);\n border-radius: 5px;\n transition: box-shadow 0.2s ease, transform 0.2s ease, padding 0.3s ease, row-gap 0.3s ease;\n}\n\n.profile-heading:hover {\n box-shadow: 0 8px 10px rgba(124, 77, 255, 0.1);\n}\n\n.avatar {\n grid-area: avatar;\n}\n\n.image-frame {\n position: relative;\n display: grid;\n place-items: center;\n width: var(--profile-avatar-size);\n aspect-ratio: 1;\n overflow: hidden;\n transition: width 0.3s ease;\n}\n\n.image-frame--fallback {\n border: 1px dashed var(--solid-ui-color-slate-200, #e2e8f0);\n background: var(--solid-ui-color-slate-50, #f8fafc);\n box-sizing: border-box;\n}\n\n.hero {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n border: 1px solid var(--solid-ui-color-primary, #7c4dff);\n background: var(--color-surface-placeholder, var(--gray-300, #d1d5dc)) 50% / cover no-repeat;\n object-fit: cover;\n object-position: center;\n box-sizing: border-box;\n border-radius: 10px;\n}\n\n.hero-fallback {\n display: none;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: 0 var(--profile-fallback-padding);\n box-sizing: border-box;\n transition: padding 0.3s ease;\n}\n\n.hero-fallback icon-lucide-circle-user-round {\n display: block;\n width: 100%;\n height: 100%;\n color: #cbd5e1;\n}\n\n.image-frame--fallback .hero-fallback {\n display: flex;\n}\n\n.info {\n grid-area: info;\n min-width: 0;\n}\n\n.profile__heading-edit-action {\n grid-area: edit;\n margin-left: auto;\n margin-right: 0;\n margin-bottom: 0;\n align-self: flex-start;\n justify-self: end;\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n gap: 8px;\n padding: 0;\n}\n\n.profile-friends-button__section {\n display: grid;\n gap: 8px;\n max-width: 16rem;\n}\n\n.profile__btn-friends-icon {\n display: block;\n width: 14px;\n height: 14px;\n align-self: center;\n transform: translateY(-3px);\n}\n\n.friend-message {\n text-align: center;\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n overflow-wrap: anywhere;\n}\n\n.friend-message[role=\"alert\"] {\n color: var(--solid-ui-color-red-700, #b91c1c);\n}\n\n.friend-message[role=\"status\"] {\n color: var(--solid-ui-color-green-700, #15803d);\n}\n\n.profile-section-collapsible__edit-button {\n min-width: 0;\n}\n\n.mobile-edit-button {\n display: none;\n color: var(--solid-ui-color-primary, #7c4dff);\n}\n\n.profile-section-collapsible__action-label {\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n}\n\n.profile__add-more-icon {\n margin-right: 0;\n line-height: 0;\n position: relative;\n top: 0;\n transform: translateY(0);\n}\n\n.profile__add-more-icon icon-lucide-pencil,\n.profile-section-collapsible__edit-icon icon-lucide-pencil {\n display: block;\n width: 14px;\n height: 14px;\n}\n\n.header-bar {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n width: 100%;\n margin: 0;\n padding: 0;\n}\n\n.identity {\n display: flex;\n align-items: baseline;\n gap: 7px;\n width: 100%;\n flex-wrap: wrap;\n}\n\n.name {\n display: block;\n margin: 0;\n color: var(--color-text-heading, #000);\n font-size: 1.75rem;\n font-weight: 600;\n line-height: 1.2;\n overflow-wrap: anywhere;\n}\n\n.pronouns {\n color: var(--color-text-secondary, #4a5565);\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n font-weight: 400;\n line-height: 1.2;\n}\n\n.role {\n width: 100%;\n color: var(--solid-ui-color-gray-800, #101828);\n font-size: var(--solid-ui-font-size-lg, 1.125rem);\n font-weight: 500;\n line-height: 1.25;\n overflow-wrap: anywhere;\n}\n\n.details-collapse {\n grid-area: details;\n display: grid;\n grid-template-rows: 1fr;\n transition: grid-template-rows 0.3s ease, opacity 0.3s ease;\n}\n\n.details {\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n align-items: flex-start;\n gap: 12px 32px;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n width: 100%;\n font-size: var(--font-size-sm, 0.875rem);\n}\n\n:host([compact]) .profile-heading {\n padding: 12.5px;\n row-gap: 0;\n}\n\n:host([compact]) .image-frame {\n width: calc(var(--profile-avatar-size) / 2);\n}\n\n:host([compact]) .hero-fallback {\n padding-inline: calc(var(--profile-fallback-padding) / 2);\n}\n\n:host([compact]) .info {\n align-self: center;\n}\n\n:host([compact]) .name {\n white-space: normal;\n overflow-wrap: anywhere;\n}\n\n:host([compact]) .details-collapse {\n grid-template-rows: 0fr;\n opacity: 0;\n visibility: hidden;\n}\n\n.pronouns[hidden] {\n display: none;\n}\n\n.detail-row {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n align-items: start;\n column-gap: clamp(12px, 2vw, 24px);\n row-gap: 12px;\n width: min(100%, 544px);\n}\n\n.detail-item {\n display: flex;\n align-items: flex-start;\n gap: 7px;\n min-width: 0;\n}\n\n.detail-icon {\n display: inline-flex;\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n margin-top: 1px;\n}\n\n.detail-icon > icon-lucide-cake,\n.detail-icon > icon-lucide-map-pin,\n.detail-icon > icon-lucide-phone,\n.detail-icon > icon-lucide-mail {\n display: block;\n width: 16px;\n height: 16px;\n color: currentColor;\n}\n\n.detail-value {\n min-width: 0;\n overflow-wrap: anywhere;\n word-break: break-word;\n}\n\n@media (max-width: 1200px) {\n :host {\n --profile-avatar-size: 6.5rem;\n --profile-fallback-padding: 27px;\n }\n\n .profile-heading {\n column-gap: 15px;\n }\n\n}\n\n@media (max-width: 768px) {\n .profile-heading:has(.profile-friends-button__section) .name {\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n .profile__btn-friends-icon {\n display: none;\n }\n\n .profile__btn-friends[disabled]:not([aria-busy=\"true\"]) {\n display: none;\n }\n\n :host {\n --profile-avatar-size: 4.375rem;\n --profile-fallback-padding: 0px;\n }\n\n .profile-heading {\n grid-template-areas:\n \"avatar info edit\"\n \"details details details\";\n column-gap: 8px;\n row-gap: 12px;\n }\n\n .profile-section-collapsible__edit-button {\n width: var(--solid-ui-clickable-area, 42px);\n height: var(--solid-ui-clickable-area, 42px);\n }\n\n .desktop-edit-button {\n display: none;\n }\n\n .mobile-edit-button {\n display: inline-flex;\n position: relative;\n top: -12px;\n right: -12px;\n }\n\n .profile-section-collapsible__edit-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n }\n\n .profile-heading {\n column-gap: 10px;\n }\n\n .hero-fallback icon-lucide-circle-user-round {\n width: 3rem;\n height: 3rem;\n transition: width 0.3s ease, height 0.3s ease;\n }\n\n :host([compact]) .hero-fallback icon-lucide-circle-user-round {\n width: 1.5rem;\n height: 1.5rem;\n }\n\n .name {\n display: inline;\n font-size: 1.375rem;\n line-height: 1.15;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n .identity {\n gap: 0;\n }\n\n .pronouns {\n margin-left: 2px;\n font-size: 0.6875rem;\n line-height: 1.1;\n white-space: nowrap;\n }\n\n .role {\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n }\n\n .details {\n gap: 12px;\n font-size: 0.75rem;\n }\n\n .detail-row {\n column-gap: 2px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .profile-heading,\n .image-frame,\n .hero-fallback,\n .hero-fallback icon-lucide-circle-user-round,\n .details-collapse {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/profile-heading/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
|