solid-ui 5.0.2-2 → 5.0.2-3
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/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
- package/dist/chunks/DialogProvider-dagk2fHm.js +209 -0
- package/dist/chunks/DialogProvider-dagk2fHm.js.map +1 -0
- package/dist/chunks/ResourceActionsMenu-o-8kWx8z.js +379 -0
- package/dist/chunks/ResourceActionsMenu-o-8kWx8z.js.map +1 -0
- package/dist/chunks/{access-control-modal-Dcg6-f4V.js → access-control-modal-CWH98HX3.js} +466 -478
- package/dist/chunks/access-control-modal-CWH98HX3.js.map +1 -0
- package/dist/chunks/{account-D6JK-n7u.js → account-Cocvv0H3.js} +21 -20
- package/dist/chunks/{account-D6JK-n7u.js.map → account-Cocvv0H3.js.map} +1 -1
- package/dist/chunks/{auth-B_abPDvH.js → auth-Df5uYksz.js} +41 -39
- package/dist/chunks/{auth-B_abPDvH.js.map → auth-Df5uYksz.js.map} +1 -1
- package/dist/chunks/{avatar-BR3COVSQ.js → avatar-DeotTinS.js} +11 -10
- package/dist/chunks/{avatar-BR3COVSQ.js.map → avatar-DeotTinS.js.map} +1 -1
- package/dist/chunks/{button-D6qO2idW.js → button-Dy1aFjqG.js} +11 -10
- package/dist/chunks/{button-D6qO2idW.js.map → button-Dy1aFjqG.js.map} +1 -1
- package/dist/chunks/{chunk.UEBQI7VV-lcP-fpUk.js → chunk.UEBQI7VV-9M5gO7Ew.js} +9 -12
- package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +1 -0
- package/dist/chunks/{combobox-fSTp9qoT.js → combobox-BL0-8wef.js} +18 -17
- package/dist/chunks/{combobox-fSTp9qoT.js.map → combobox-BL0-8wef.js.map} +1 -1
- package/dist/chunks/{combobox-option-DOtGuKel.js → combobox-option-DjlmXt1O.js} +8 -7
- package/dist/chunks/{combobox-option-DOtGuKel.js.map → combobox-option-DjlmXt1O.js.map} +1 -1
- package/dist/chunks/{components-C8c2Ucm5.js → components-LxiwG5ae.js} +190 -201
- package/dist/chunks/components-LxiwG5ae.js.map +1 -0
- package/dist/chunks/context-By_u12WA.js +21 -0
- package/dist/chunks/context-By_u12WA.js.map +1 -0
- package/dist/chunks/custom-element-BW8Ua4c7.js +9 -0
- package/dist/chunks/custom-element-BW8Ua4c7.js.map +1 -0
- package/dist/chunks/decorators-V-B013l9.js +12 -0
- package/dist/chunks/decorators-V-B013l9.js.map +1 -0
- package/dist/chunks/{dialog-CgYK767T.js → dialog-CrmftB9c.js} +16 -15
- package/dist/chunks/{dialog-CgYK767T.js.map → dialog-CrmftB9c.js.map} +1 -1
- package/dist/chunks/{dialog-content-DjwRH1ci.js → dialog-content-Cw3xqJ45.js} +6 -5
- package/dist/chunks/{dialog-content-DjwRH1ci.js.map → dialog-content-Cw3xqJ45.js.map} +1 -1
- package/dist/chunks/{dialog-footer-GQWi8lfB.js → dialog-footer-sFQf-2zD.js} +6 -5
- package/dist/chunks/{dialog-footer-GQWi8lfB.js.map → dialog-footer-sFQf-2zD.js.map} +1 -1
- package/dist/chunks/{dialog-header-c3qOMQfb.js → dialog-header-xIWIqfZK.js} +6 -5
- package/dist/chunks/{dialog-header-c3qOMQfb.js.map → dialog-header-xIWIqfZK.js.map} +1 -1
- package/dist/chunks/{dialogs-BmtLjMzg.js → dialogs-B3tHtjMf.js} +2 -2
- package/dist/chunks/{dialogs-BmtLjMzg.js.map → dialogs-B3tHtjMf.js.map} +1 -1
- package/dist/chunks/{dialogs-root-BcQo2XMF.js → dialogs-root-Lh2u-3Cs.js} +9 -8
- package/dist/chunks/{dialogs-root-BcQo2XMF.js.map → dialogs-root-Lh2u-3Cs.js.map} +1 -1
- package/dist/chunks/{error-state-BD4_Wrkz.js → error-state-DnsXVj1z.js} +11 -10
- package/dist/chunks/{error-state-BD4_Wrkz.js.map → error-state-DnsXVj1z.js.map} +1 -1
- package/dist/chunks/events-CXQHDCs2.js +8 -0
- package/dist/chunks/events-CXQHDCs2.js.map +1 -0
- package/dist/chunks/file-explorer-header-B6-Q0i6V.js +963 -0
- package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +1 -0
- package/dist/chunks/file-explorer-provider-B3gUBkHg.js +296 -0
- package/dist/chunks/file-explorer-provider-B3gUBkHg.js.map +1 -0
- package/dist/chunks/globe-CsCgZcy5.js +16 -0
- package/dist/chunks/globe-CsCgZcy5.js.map +1 -0
- package/dist/chunks/{guard-bTeM7wd7.js → guard-C39y81In.js} +11 -10
- package/dist/chunks/{guard-bTeM7wd7.js.map → guard-C39y81In.js.map} +1 -1
- package/dist/chunks/index.esm-C9oV3H3X.js +6 -0
- package/dist/chunks/index.esm-C9oV3H3X.js.map +1 -0
- package/dist/chunks/{input-Bz3l514j.js → input-Bi6ZBZQw.js} +12 -11
- package/dist/chunks/{input-Bz3l514j.js.map → input-Bi6ZBZQw.js.map} +1 -1
- package/dist/chunks/{jsonld-CnfzCyCn.js → jsonld-D-TE94B0.js} +2 -2
- package/dist/chunks/{jsonld-CnfzCyCn.js.map → jsonld-D-TE94B0.js.map} +1 -1
- package/dist/chunks/{login-button-Div4ZT4J.js → login-button-fo0P8vym.js} +10 -9
- package/dist/chunks/{login-button-Div4ZT4J.js.map → login-button-fo0P8vym.js.map} +1 -1
- package/dist/chunks/{logout-button-D3lqlnCX.js → logout-button-CF2YFgID.js} +10 -9
- package/dist/chunks/{logout-button-D3lqlnCX.js.map → logout-button-CF2YFgID.js.map} +1 -1
- package/dist/chunks/{menu-D0k2fkiE.js → menu-RumUciM-.js} +49 -47
- package/dist/chunks/{menu-D0k2fkiE.js.map → menu-RumUciM-.js.map} +1 -1
- package/dist/chunks/{menu-item-nfPpH4dN.js → menu-item-CVAZyipz.js} +11 -10
- package/dist/chunks/{menu-item-nfPpH4dN.js.map → menu-item-CVAZyipz.js.map} +1 -1
- package/dist/chunks/{photo-capture-hJaJm4TM.js → photo-capture-CAfo7y6-.js} +21 -20
- package/dist/chunks/photo-capture-CAfo7y6-.js.map +1 -0
- package/dist/chunks/{photo-capture-modal-BsHv6wmh.js → photo-capture-modal-DWmDE_Ws.js} +29 -28
- package/dist/chunks/{photo-capture-modal-BsHv6wmh.js.map → photo-capture-modal-DWmDE_Ws.js.map} +1 -1
- package/dist/chunks/provide-B5NeVMM_.js +111 -0
- package/dist/chunks/provide-B5NeVMM_.js.map +1 -0
- package/dist/chunks/{provider-Dcd1NPYx.js → provider-BbT2duMy.js} +11 -10
- package/dist/chunks/{provider-Dcd1NPYx.js.map → provider-BbT2duMy.js.map} +1 -1
- package/dist/chunks/{rdf-form-CmPnHKR-.js → rdf-form-CH9bDx98.js} +30 -29
- package/dist/chunks/{rdf-form-CmPnHKR-.js.map → rdf-form-CH9bDx98.js.map} +1 -1
- package/dist/chunks/{rdf-input-3AgoeCkJ.js → rdf-input-C_V0pIS5.js} +56 -55
- package/dist/chunks/{rdf-input-3AgoeCkJ.js.map → rdf-input-C_V0pIS5.js.map} +1 -1
- package/dist/chunks/{select-option-DQan7rcB.js → select-option-U4ALXL20.js} +8 -7
- package/dist/chunks/{select-option-DQan7rcB.js.map → select-option-U4ALXL20.js.map} +1 -1
- package/dist/chunks/{select-ClPkDkGl.js → select-y1Z6fwmh.js} +10 -9
- package/dist/chunks/{select-ClPkDkGl.js.map → select-y1Z6fwmh.js.map} +1 -1
- package/dist/chunks/{signup-button-2fAoS0Nv.js → signup-button-DicFpAjD.js} +10 -9
- package/dist/chunks/{signup-button-2fAoS0Nv.js.map → signup-button-DicFpAjD.js.map} +1 -1
- package/dist/chunks/{solid-emblem-DwLdkGuO.js → solid-emblem-CeCXTpve.js} +8 -7
- package/dist/chunks/{solid-emblem-DwLdkGuO.js.map → solid-emblem-CeCXTpve.js.map} +1 -1
- package/dist/chunks/{index.esm-CECfD0e9.js → solidLogicSingleton.esm-BXyHD7mn.js} +1210 -1161
- package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +1 -0
- package/dist/chunks/{src-Dx7k_VIe.js → src-Bhtor0ZC.js} +2311 -2282
- package/dist/chunks/src-Bhtor0ZC.js.map +1 -0
- package/dist/chunks/{style-w0Fl0xnd.js → style-CXaw5EYi.js} +9 -8
- package/dist/chunks/{style-w0Fl0xnd.js.map → style-CXaw5EYi.js.map} +1 -1
- package/dist/chunks/{widgets-BWpm5CPx.js → widgets-BBEQu0CS.js} +722 -721
- package/dist/chunks/{widgets-BWpm5CPx.js.map → widgets-BBEQu0CS.js.map} +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.cjs.js +1 -1
- package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal.js +1 -1
- package/dist/components/account/Account.esm.js.map +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/all.cjs.js +1 -1
- package/dist/components/all.esm.js +3 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/button/Button.esm.js.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/Dialog.esm.js.map +1 -1
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/error-state/ErrorState.esm.js.map +1 -1
- package/dist/components/error-state.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +15 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +20 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +309 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +6 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +35 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +23 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +317 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +6 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +35 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +22 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +355 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +6 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/index.cjs.js +2 -0
- package/dist/components/file-explorer-header/index.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/index.d.ts +4 -0
- package/dist/components/file-explorer-header/index.d.ts.map +1 -0
- package/dist/components/file-explorer-header/index.esm.js +6 -0
- package/dist/components/file-explorer-header/index.esm.js.map +1 -0
- package/dist/components/file-explorer-header/types.d.ts +11 -0
- package/dist/components/file-explorer-header/types.d.ts.map +1 -0
- package/dist/components/file-explorer-header.js +1 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +2 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +17 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +296 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -0
- package/dist/components/file-explorer-provider/index.cjs.js +2 -0
- package/dist/components/file-explorer-provider/index.cjs.js.map +1 -0
- package/dist/components/file-explorer-provider/index.d.ts +4 -0
- package/dist/components/file-explorer-provider/index.d.ts.map +1 -0
- package/dist/components/file-explorer-provider/index.esm.js +6 -0
- package/dist/components/file-explorer-provider/index.esm.js.map +1 -0
- package/dist/components/file-explorer-provider.js +1 -0
- package/dist/components/guard.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +1 -0
- package/dist/components/input/Input.esm.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.esm.js.map +1 -1
- package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
- package/dist/components/photo-capture-modal.js +1 -1
- package/dist/components/photo-capture.js +1 -1
- package/dist/components/provider/Provider.esm.js.map +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
- package/dist/components/rdf-form.js +1 -1
- package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
- package/dist/components/rdf-input.js +1 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +27 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +23 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +343 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +6 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/index.cjs.js +1 -0
- package/dist/components/resource-actions-menu/index.d.ts +2 -0
- package/dist/components/resource-actions-menu/index.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/index.esm.js +1 -0
- package/dist/components/resource-actions-menu.js +1 -0
- package/dist/components/select/Select.esm.js.map +1 -1
- package/dist/components/select-option/SelectOption.esm.js.map +1 -1
- package/dist/components/select-option.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +31 -28
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +8 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -9
- package/dist/lib/context/noopContext.cjs.js +2 -0
- package/dist/lib/context/noopContext.cjs.js.map +1 -0
- package/dist/lib/context/noopContext.d.ts +2 -0
- package/dist/lib/context/noopContext.d.ts.map +1 -0
- package/dist/lib/context/noopContext.esm.js +18 -0
- package/dist/lib/context/noopContext.esm.js.map +1 -0
- package/dist/lib/file-explorer/compose-explorer.cjs.js +2 -0
- package/dist/lib/file-explorer/compose-explorer.cjs.js.map +1 -0
- package/dist/lib/file-explorer/compose-explorer.d.ts +17 -0
- package/dist/lib/file-explorer/compose-explorer.d.ts.map +1 -0
- package/dist/lib/file-explorer/compose-explorer.esm.js +18 -0
- package/dist/lib/file-explorer/compose-explorer.esm.js.map +1 -0
- package/dist/lib/file-explorer/context.cjs.js +1 -1
- package/dist/lib/file-explorer/context.cjs.js.map +1 -1
- package/dist/lib/file-explorer/context.d.ts +12 -14
- package/dist/lib/file-explorer/context.d.ts.map +1 -1
- package/dist/lib/file-explorer/context.esm.js +4 -3
- package/dist/lib/file-explorer/context.esm.js.map +1 -1
- package/dist/lib/file-explorer/events.cjs.js +2 -0
- package/dist/lib/file-explorer/events.cjs.js.map +1 -0
- package/dist/lib/file-explorer/events.d.ts +16 -0
- package/dist/lib/file-explorer/events.d.ts.map +1 -0
- package/dist/lib/file-explorer/events.esm.js +8 -0
- package/dist/lib/file-explorer/events.esm.js.map +1 -0
- package/dist/lib/file-explorer/index.cjs.js +1 -0
- package/dist/lib/file-explorer/index.d.ts +5 -0
- package/dist/lib/file-explorer/index.d.ts.map +1 -0
- package/dist/lib/file-explorer/index.esm.js +5 -0
- package/dist/lib/file-explorer/relevant-panes.cjs.js +2 -0
- package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -0
- package/dist/lib/file-explorer/relevant-panes.d.ts +15 -0
- package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -0
- package/dist/lib/file-explorer/relevant-panes.esm.js +14 -0
- package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -0
- package/dist/loader.js +12 -9
- package/dist/solid-ui.js +211 -107
- package/dist/solid-ui.min.js +211 -107
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/utils/podUtils.cjs.js +2 -0
- package/dist/utils/podUtils.cjs.js.map +1 -0
- package/dist/utils/podUtils.d.ts +6 -0
- package/dist/utils/podUtils.d.ts.map +1 -0
- package/dist/utils/podUtils.esm.js +22 -0
- package/dist/utils/podUtils.esm.js.map +1 -0
- package/dist/utils/webIdUtils.cjs.js +1 -0
- package/dist/utils/webIdUtils.d.ts +7 -0
- package/dist/utils/webIdUtils.d.ts.map +1 -0
- package/dist/utils/webIdUtils.esm.js +3 -0
- package/package.json +3 -3
- package/dist/chunks/DialogProvider-C89v7x0r.js +0 -314
- package/dist/chunks/DialogProvider-C89v7x0r.js.map +0 -1
- package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +0 -1
- package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +0 -1
- package/dist/chunks/components-C8c2Ucm5.js.map +0 -1
- package/dist/chunks/index.esm-CECfD0e9.js.map +0 -1
- package/dist/chunks/photo-capture-hJaJm4TM.js.map +0 -1
- package/dist/chunks/src-Dx7k_VIe.js.map +0 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import e from "../../lib/components/web-component/WebComponent.esm.js";
|
|
2
|
+
import "../../lib/components/index.esm.js";
|
|
3
|
+
import { DEFAULT_FILE_EXPLORER_CONTEXT as t, fileExplorerContext as n } from "../../lib/file-explorer/context.esm.js";
|
|
4
|
+
import { FILE_EXPLORER_BACK_EVENT as r } from "../../lib/file-explorer/events.esm.js";
|
|
5
|
+
import "../../_virtual/~icons/lucide/share-2.esm.js";
|
|
6
|
+
import "../../_virtual/~icons/lucide/pencil.esm.js";
|
|
7
|
+
import "../../_virtual/~icons/lucide/ellipsis-vertical.esm.js";
|
|
8
|
+
import i from "./FileExplorerHeader.styles.esm.js";
|
|
9
|
+
import "./FileExplorerHeaderSummary.esm.js";
|
|
10
|
+
import "./FileExplorerHeaderControls.esm.js";
|
|
11
|
+
import { sym as a } from "rdflib";
|
|
12
|
+
import { solidLogicSingleton as o } from "solid-logic";
|
|
13
|
+
import { consume as s } from "@lit/context";
|
|
14
|
+
import { html as c } from "lit";
|
|
15
|
+
import { customElement as l, property as u, state as d } from "lit/decorators.js";
|
|
16
|
+
// src/components/file-explorer-header/FileExplorerHeader.ts
|
|
17
|
+
var f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A;
|
|
18
|
+
function j(e, t, n) {
|
|
19
|
+
M(e, t), t.set(e, n);
|
|
20
|
+
}
|
|
21
|
+
function M(e, t) {
|
|
22
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
23
|
+
}
|
|
24
|
+
function N(e, t, n) {
|
|
25
|
+
return e.set(F(e, t), n), n;
|
|
26
|
+
}
|
|
27
|
+
function P(e, t) {
|
|
28
|
+
return e.get(F(e, t));
|
|
29
|
+
}
|
|
30
|
+
function F(e, t, n) {
|
|
31
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
32
|
+
throw TypeError("Private element is not present on this object");
|
|
33
|
+
}
|
|
34
|
+
function I(e, t, n) {
|
|
35
|
+
return (t = R(t)) in e ? Object.defineProperty(e, t, {
|
|
36
|
+
value: n,
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0
|
|
40
|
+
}) : e[t] = n, e;
|
|
41
|
+
}
|
|
42
|
+
function L(e, t, n, r, i, a) {
|
|
43
|
+
function o(e, t, n) {
|
|
44
|
+
return function(r, i) {
|
|
45
|
+
return n && n(r), e[t].call(r, i);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function s(e, t) {
|
|
49
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
function c(e, t, n, r) {
|
|
53
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
57
|
+
function h(e) {
|
|
58
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
59
|
+
}
|
|
60
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
61
|
+
if (!y) {
|
|
62
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
63
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
64
|
+
d ? (f || p ? b = {
|
|
65
|
+
get: B(function() {
|
|
66
|
+
return v(this);
|
|
67
|
+
}, r, "get"),
|
|
68
|
+
set: function(e) {
|
|
69
|
+
t[4](this, e);
|
|
70
|
+
}
|
|
71
|
+
} : b[S] = v, f || B(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
72
|
+
}
|
|
73
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
74
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
75
|
+
kind: [
|
|
76
|
+
"field",
|
|
77
|
+
"accessor",
|
|
78
|
+
"method",
|
|
79
|
+
"getter",
|
|
80
|
+
"setter",
|
|
81
|
+
"class"
|
|
82
|
+
][i],
|
|
83
|
+
name: r,
|
|
84
|
+
metadata: a,
|
|
85
|
+
addInitializer: function(e, t) {
|
|
86
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
87
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
88
|
+
}.bind(null, D)
|
|
89
|
+
};
|
|
90
|
+
try {
|
|
91
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
92
|
+
else {
|
|
93
|
+
var k, A;
|
|
94
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
95
|
+
return h(e), b.value;
|
|
96
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
97
|
+
return e[r];
|
|
98
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
99
|
+
e[r] = t;
|
|
100
|
+
}));
|
|
101
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
102
|
+
return r in e;
|
|
103
|
+
} };
|
|
104
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
105
|
+
get: b.get,
|
|
106
|
+
set: b.set
|
|
107
|
+
} : b[S], O), p) {
|
|
108
|
+
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);
|
|
109
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
110
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
111
|
+
}
|
|
112
|
+
} finally {
|
|
113
|
+
D.v = !0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return (f || p) && l.push(function(e, t) {
|
|
117
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
118
|
+
return t;
|
|
119
|
+
}), 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;
|
|
120
|
+
}
|
|
121
|
+
function u(e, t) {
|
|
122
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
123
|
+
configurable: !0,
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
value: t
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
129
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
130
|
+
var i, a, o = [], c = function(t) {
|
|
131
|
+
return V(t) === e;
|
|
132
|
+
}, u = /* @__PURE__ */ new Map();
|
|
133
|
+
function d(e) {
|
|
134
|
+
e && o.push(s.bind(null, e));
|
|
135
|
+
}
|
|
136
|
+
for (var f = 0; f < t.length; f++) {
|
|
137
|
+
var p = t[f];
|
|
138
|
+
if (Array.isArray(p)) {
|
|
139
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
140
|
+
if (!y && !g) {
|
|
141
|
+
var x = u.get(b);
|
|
142
|
+
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);
|
|
143
|
+
u.set(b, !(m > 2) || m);
|
|
144
|
+
}
|
|
145
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : R(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return d(i), d(a), o;
|
|
149
|
+
}(e, t, i, f);
|
|
150
|
+
return n.length || u(e, f), {
|
|
151
|
+
e: p,
|
|
152
|
+
get c() {
|
|
153
|
+
var t = [];
|
|
154
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function R(e) {
|
|
159
|
+
var t = z(e, "string");
|
|
160
|
+
return typeof t == "symbol" ? t : t + "";
|
|
161
|
+
}
|
|
162
|
+
function z(e, t) {
|
|
163
|
+
if (typeof e != "object" || !e) return e;
|
|
164
|
+
var n;
|
|
165
|
+
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
166
|
+
var r = n.call(e, t || "default");
|
|
167
|
+
if (typeof r != "object") return r;
|
|
168
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
169
|
+
}
|
|
170
|
+
return (t === "string" ? String : Number)(e);
|
|
171
|
+
}
|
|
172
|
+
function B(e, t, n) {
|
|
173
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
174
|
+
try {
|
|
175
|
+
Object.defineProperty(e, "name", {
|
|
176
|
+
configurable: !0,
|
|
177
|
+
value: n ? n + " " + t : t
|
|
178
|
+
});
|
|
179
|
+
} catch {}
|
|
180
|
+
return e;
|
|
181
|
+
}
|
|
182
|
+
function V(e) {
|
|
183
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
184
|
+
return e;
|
|
185
|
+
}
|
|
186
|
+
function H(e) {
|
|
187
|
+
return e;
|
|
188
|
+
}
|
|
189
|
+
b = [l("solid-ui-file-explorer-header")];
|
|
190
|
+
var U;
|
|
191
|
+
new (k = (m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), A = (x = s({
|
|
192
|
+
context: n,
|
|
193
|
+
subscribe: !0
|
|
194
|
+
}), C = u({ attribute: !1 }), T = u({ attribute: !1 }), D = d(), "_loadedMetadataForUri"), p = class extends e {
|
|
195
|
+
constructor(...e) {
|
|
196
|
+
super(...e), I(this, A, void v(this)), I(this, "_metadataGeneration", 0), j(this, m, S(this, t)), j(this, h, w(this, [])), j(this, g, E(this, void 0)), j(this, _, O(this, {
|
|
197
|
+
modified: void 0,
|
|
198
|
+
isPublic: !1,
|
|
199
|
+
canEdit: !1,
|
|
200
|
+
canManageAccess: !1,
|
|
201
|
+
aclUri: void 0
|
|
202
|
+
})), I(this, "handleBack", () => {
|
|
203
|
+
this.dispatchEvent(new CustomEvent(r, {
|
|
204
|
+
bubbles: !0,
|
|
205
|
+
composed: !0,
|
|
206
|
+
detail: { subjectUri: this.fileExplorerContext.subjectUri }
|
|
207
|
+
}));
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
get fileExplorerContext() {
|
|
211
|
+
return P(m, this);
|
|
212
|
+
}
|
|
213
|
+
set fileExplorerContext(e) {
|
|
214
|
+
N(m, this, e);
|
|
215
|
+
}
|
|
216
|
+
get menuItems() {
|
|
217
|
+
return P(h, this);
|
|
218
|
+
}
|
|
219
|
+
set menuItems(e) {
|
|
220
|
+
N(h, this, e);
|
|
221
|
+
}
|
|
222
|
+
get paneIcon() {
|
|
223
|
+
return P(g, this);
|
|
224
|
+
}
|
|
225
|
+
set paneIcon(e) {
|
|
226
|
+
N(g, this, e);
|
|
227
|
+
}
|
|
228
|
+
get responseMetadata() {
|
|
229
|
+
return P(_, this);
|
|
230
|
+
}
|
|
231
|
+
set responseMetadata(e) {
|
|
232
|
+
N(_, this, e);
|
|
233
|
+
}
|
|
234
|
+
getDefaultResponseMetadata() {
|
|
235
|
+
return {
|
|
236
|
+
modified: void 0,
|
|
237
|
+
isPublic: !1,
|
|
238
|
+
canEdit: !1,
|
|
239
|
+
canManageAccess: !1,
|
|
240
|
+
aclUri: void 0
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
willUpdate() {
|
|
244
|
+
let e = this.fileExplorerContext?.subjectUri;
|
|
245
|
+
if (this.fileExplorerContext?.store && e && this._loadedMetadataForUri !== e) {
|
|
246
|
+
this._loadedMetadataForUri = e;
|
|
247
|
+
let t = ++this._metadataGeneration;
|
|
248
|
+
this.responseMetadata = this.getDefaultResponseMetadata(), this.loadResponseMetadata(e, t);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
async loadResponseMetadata(e, t) {
|
|
252
|
+
try {
|
|
253
|
+
let n = await o.resource.fetchMetadata(a(e));
|
|
254
|
+
t === this._metadataGeneration && this.fileExplorerContext.subjectUri === e && (this.responseMetadata = {
|
|
255
|
+
modified: n.modified,
|
|
256
|
+
isPublic: n.access.isPublic,
|
|
257
|
+
canEdit: n.access.canEdit,
|
|
258
|
+
canManageAccess: n.access.canManageAccess,
|
|
259
|
+
aclUri: n.aclUri
|
|
260
|
+
});
|
|
261
|
+
} catch (n) {
|
|
262
|
+
t === this._metadataGeneration && this.fileExplorerContext.subjectUri === e && (this.responseMetadata = this.getDefaultResponseMetadata(), console.warn("Failed to load response metadata", n));
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
render() {
|
|
266
|
+
return c`
|
|
267
|
+
<header>
|
|
268
|
+
<solid-ui-file-explorer-header-summary
|
|
269
|
+
.paneIcon=${this.paneIcon}
|
|
270
|
+
.onBackClick=${this.handleBack}
|
|
271
|
+
.responseMetadata=${this.responseMetadata}
|
|
272
|
+
></solid-ui-file-explorer-header-summary>
|
|
273
|
+
<solid-ui-file-explorer-header-controls
|
|
274
|
+
.menuItems=${this.menuItems}
|
|
275
|
+
.canEdit=${this.responseMetadata.canEdit}
|
|
276
|
+
.canManageAccess=${this.responseMetadata.canManageAccess}
|
|
277
|
+
></solid-ui-file-explorer-header-controls>
|
|
278
|
+
</header>
|
|
279
|
+
`;
|
|
280
|
+
}
|
|
281
|
+
}, {e: [S, w, E, O, v], c: [U, y]} = L(p, [
|
|
282
|
+
[
|
|
283
|
+
x,
|
|
284
|
+
1,
|
|
285
|
+
"fileExplorerContext"
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
C,
|
|
289
|
+
1,
|
|
290
|
+
"menuItems"
|
|
291
|
+
],
|
|
292
|
+
[
|
|
293
|
+
T,
|
|
294
|
+
1,
|
|
295
|
+
"paneIcon"
|
|
296
|
+
],
|
|
297
|
+
[
|
|
298
|
+
D,
|
|
299
|
+
1,
|
|
300
|
+
"responseMetadata"
|
|
301
|
+
]
|
|
302
|
+
], b, 0, void 0, e), p), f = class extends H {
|
|
303
|
+
constructor() {
|
|
304
|
+
super(U), I(this, "styles", i), y();
|
|
305
|
+
}
|
|
306
|
+
}, I(f, k, void 0), f)();
|
|
307
|
+
export { U as default };
|
|
308
|
+
|
|
309
|
+
//# sourceMappingURL=FileExplorerHeader.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.esm.js","names":["sym","solidLogicSingleton","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","FILE_EXPLORER_BACK_EVENT","customElement","property","state","consume","html","styles","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_menuItems","_init_paneIcon","undefined","_init_responseMetadata","modified","isPublic","canEdit","canManageAccess","aclUri","dispatchEvent","CustomEvent","bubbles","composed","detail","subjectUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","willUpdate","store","_loadedMetadataForUri","generation","_metadataGeneration","loadResponseMetadata","metadata","resource","fetchMetadata","access","error","console","warn","render","handleBack","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","WebComponent","FileExplorerHeader_styles_default","_Class","_FileExplorerHeader3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_paneIconDecs","_init_paneIcon","_responseMetadataDecs","_init_responseMetadata","_FileExplorerHeader2","_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","_FileExplorerHeader","consume","fileExplorerContext","property","state","args","DEFAULT_FILE_EXPLORER_CONTEXT","FILE_EXPLORER_BACK_EVENT","subjectUri","generation","metadata","solidLogicSingleton","sym","error"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { solidLogicSingleton } from 'solid-logic'\nimport { WebComponent } from '@/lib/components'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport { FILE_EXPLORER_BACK_EVENT } from '@/lib/file-explorer/events'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { type FileExplorerResourceMetadata } from './types'\n\n@customElement('solid-ui-file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n private _metadataGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'canManageAccess' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n canManageAccess: false,\n aclUri: undefined\n }\n\n private handleBack = () => {\n this.dispatchEvent(new CustomEvent(FILE_EXPLORER_BACK_EVENT, {\n bubbles: true,\n composed: true,\n detail: {\n subjectUri: this.fileExplorerContext.subjectUri\n }\n }))\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'canManageAccess' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n canManageAccess: false,\n aclUri: undefined\n }\n }\n\n protected willUpdate () {\n const subjectUri = this.fileExplorerContext?.subjectUri\n if (this.fileExplorerContext?.store && subjectUri && this._loadedMetadataForUri !== subjectUri) {\n this._loadedMetadataForUri = subjectUri\n const generation = ++this._metadataGeneration\n this.responseMetadata = this.getDefaultResponseMetadata()\n this.loadResponseMetadata(subjectUri, generation)\n }\n }\n\n private async loadResponseMetadata (subjectUri: string, generation: number) {\n try {\n const metadata = await solidLogicSingleton.resource.fetchMetadata(sym(subjectUri))\n if (generation === this._metadataGeneration && this.fileExplorerContext.subjectUri === subjectUri) {\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.access.isPublic,\n canEdit: metadata.access.canEdit,\n canManageAccess: metadata.access.canManageAccess,\n aclUri: metadata.aclUri\n }\n }\n } catch (error) {\n if (generation === this._metadataGeneration && this.fileExplorerContext.subjectUri === subjectUri) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n }\n\n render () {\n return html`\n <header>\n <solid-ui-file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.handleBack}\n .responseMetadata=${this.responseMetadata}\n ></solid-ui-file-explorer-header-summary>\n <solid-ui-file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n .canManageAccess=${this.responseMetadata.canManageAccess}\n ></solid-ui-file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaqCY,IAAA,CAIpCN,EAAc,+BAA+B,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,KAAAC,IAO5CZ,EAAQ;CAAEa,SAASlB;CAAqBmB,WAAW;AAAK,CAAC,GAACC,IAG1DjB,EAAS,EAAEkB,WAAW,GAAM,CAAC,GAACC,IAG9BnB,EAAS,EAAEkB,WAAW,GAAM,CAAC,GAACE,IAG9BnB,EAAM,GAAC,0BAAAoB,IAhBV,cACgD1B,EAAa;CAAA4B,YAAA,GAAAC,GAAA;EAsB1DC,AAtB0D,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAZ,GAAA,KAAAa,EAAA,IAAA,CAAA,GAAAD,EAAA,MAAA,uBAI7B,CAAC,GAAAE,EAAA,MAAAnB,GAAAoB,EAAA,MAGAhC,CAA6B,CAAA,GAAA+B,EAAA,MAAAjB,GAAAmB,EAAA,MAGmB,CAAA,CAAE,CAAA,GAAAF,EAAA,MAAAhB,GAAAmB,EAAA,MAGnDC,KAAAA,CAAS,CAAA,GAAAJ,EAAA,MAAAf,GAAAoB,EAAA,MAG6F;GAClIC,UAAUF,KAAAA;GAC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solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}`;exports.default=e;
|
|
2
|
+
//# sourceMappingURL=FileExplorerHeader.styles.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.styles.cjs.js","names":["FileExplorerHeader_styles_default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n box-sizing: border-box;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
// src/components/file-explorer-header/FileExplorerHeader.styles.css
|
|
3
|
+
var t = e`:host header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}`;
|
|
4
|
+
export { t as default };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=FileExplorerHeader.styles.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.styles.esm.js","names":["FileExplorerHeader_styles_default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n box-sizing: border-box;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const e=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../button/index.cjs.js");const t=require("../../lib/file-explorer/context.cjs.js"),n=require("../../lib/file-explorer/events.cjs.js");require("../../_virtual/~icons/lucide/pencil.cjs.js");const r=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/user-round-cog.cjs.js");const i=require("./FileExplorerHeaderControls.styles.cjs.js");require("../resource-actions-menu/ResourceActionsMenu.cjs.js");let a=require("@lit/context"),o=require("lit"),s=require("lit/decorators.js");var c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k;function A(e,t,n){j(e,t),t.set(e,n)}function j(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function M(e,t,n){return e.set(P(e,t),n),n}function N(e,t){return e.get(P(e,t))}function P(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function F(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:z(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||z(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return B(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:L(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function L(e){var t=R(e,`string`);return typeof t==`symbol`?t:t+``}function R(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function z(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function B(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function V(e){return e}_=[(0,s.customElement)(`solid-ui-file-explorer-header-controls`)];var H;new(O=(u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,k=(v=(0,a.consume)({context:t.fileExplorerContext,subscribe:!0}),b=(0,s.property)({attribute:!1}),S=(0,s.property)({type:Boolean}),w=(0,s.property)({type:Boolean}),E=(0,s.state)(),`mobileMediaQuery`),l=class extends e.default{constructor(...e){super(...e),F(this,k,void h(this)),F(this,`mobileQuery`,`(max-width: 600px)`),F(this,`handleMobileMediaChange`,e=>{this.isMobile=e.matches}),A(this,u,y(this,t.DEFAULT_FILE_EXPLORER_CONTEXT)),A(this,d,x(this,[])),A(this,f,C(this,!1)),A(this,p,T(this,!1)),A(this,m,D(this,typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(max-width: 600px)`).matches)),F(this,`handleManageAccess`,()=>{let e=this.fileExplorerContext.subjectUri;e&&this.dispatchEvent(new CustomEvent(n.FILE_EXPLORER_MANAGE_ACCESS_EVENT,{bubbles:!0,composed:!0,detail:{subjectUri:e}}))})}get fileExplorerContext(){return N(u,this)}set fileExplorerContext(e){M(u,this,e)}get menuItems(){return N(d,this)}set menuItems(e){M(d,this,e)}get canEdit(){return N(f,this)}set canEdit(e){M(f,this,e)}get canManageAccess(){return N(p,this)}set canManageAccess(e){M(p,this,e)}get isMobile(){return N(m,this)}set isMobile(e){M(m,this,e)}connectedCallback(){super.connectedCallback(),typeof window<`u`&&typeof window.matchMedia==`function`&&(this.mobileMediaQuery=window.matchMedia(this.mobileQuery),this.isMobile=this.mobileMediaQuery.matches,this.mobileMediaQuery.addEventListener(`change`,this.handleMobileMediaChange))}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener(`change`,this.handleMobileMediaChange),this.mobileMediaQuery=void 0,super.disconnectedCallback()}getEditTooltip(){return this.canEdit?`Edit`:`No Access`}renderDirtyIndicator(){return this.fileExplorerContext.isDirty?o.html`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>`:o.nothing}render(){let e=r.isContainerSubject(this.fileExplorerContext.store,this.fileExplorerContext.subjectUri),t=this.fileExplorerContext.canEdit;return o.html`
|
|
2
|
+
<div>
|
|
3
|
+
${this.renderDirtyIndicator()}
|
|
4
|
+
${!e&&!this.isMobile&&this.canManageAccess?o.html`
|
|
5
|
+
<solid-ui-button class="file-explorer-header-action-button" variant="ghost" title="Manage Access" @click=${this.handleManageAccess}>
|
|
6
|
+
<icon-lucide-user-round-cog slot="icon"></icon-lucide-user-round-cog>
|
|
7
|
+
<span class="sr-only">Manage access</span>
|
|
8
|
+
</solid-ui-button>
|
|
9
|
+
${t?o.html`
|
|
10
|
+
<solid-ui-button
|
|
11
|
+
class="file-explorer-header-action-button"
|
|
12
|
+
variant="ghost"
|
|
13
|
+
title=${this.getEditTooltip()}
|
|
14
|
+
?disabled=${!this.canEdit}
|
|
15
|
+
@click=${this.fileExplorerContext.beginEditing}
|
|
16
|
+
>
|
|
17
|
+
<icon-lucide-pencil slot="icon"></icon-lucide-pencil>
|
|
18
|
+
<span class="sr-only">Edit</span>
|
|
19
|
+
</solid-ui-button>
|
|
20
|
+
`:o.nothing}
|
|
21
|
+
`:o.nothing}
|
|
22
|
+
<solid-ui-resource-actions-menu
|
|
23
|
+
.store=${this.fileExplorerContext.store}
|
|
24
|
+
.handleAccessClick=${this.handleManageAccess}
|
|
25
|
+
.handleEditingClick=${this.fileExplorerContext.beginEditing}
|
|
26
|
+
.paneSupportsEditing=${this.fileExplorerContext.canEdit}
|
|
27
|
+
.canEdit=${this.canEdit}
|
|
28
|
+
.canManageAccess=${this.canManageAccess}
|
|
29
|
+
.subjectUri=${this.fileExplorerContext.subjectUri}
|
|
30
|
+
.menuItems=${this.menuItems}
|
|
31
|
+
.isMobile=${this.isMobile}
|
|
32
|
+
></solid-ui-resource-actions-menu>
|
|
33
|
+
</div>
|
|
34
|
+
`}},{e:[y,x,C,T,D,h],c:[H,g]}=I(l,[[v,1,`fileExplorerContext`],[b,1,`menuItems`],[S,1,`canEdit`],[w,1,`canManageAccess`],[E,1,`isMobile`]],_,0,void 0,e.default),l),c=class extends V{constructor(){super(H),F(this,`styles`,i.default),g()}},F(c,O,void 0),c),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return H}});
|
|
35
|
+
//# sourceMappingURL=FileExplorerHeaderControls.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeaderControls.cjs.js","names":["WebComponent","customElement","property","state","consume","html","nothing","styles","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","FILE_EXPLORER_MANAGE_ACCESS_EVENT","isContainerSubject","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_D","_E","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_canManageAccessDecs","_isMobileDecs","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","_defineProperty","_initProto","event","isMobile","matches","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_menuItems","_init_canEdit","_init_canManageAccess","_init_isMobile","window","matchMedia","subjectUri","dispatchEvent","CustomEvent","bubbles","composed","detail","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","canEdit","canManageAccess","connectedCallback","mobileMediaQuery","mobileQuery","addEventListener","handleMobileMediaChange","disconnectedCallback","removeEventListener","undefined","getEditTooltip","renderDirtyIndicator","isDirty","render","isContainerResource","store","supportsEditing","handleManageAccess","beginEditing","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","FILE_EXPLORER_MANAGE_ACCESS_EVENT","nothing","isContainerSubject","styles","require_WebComponent","require_context","require_events","require_podUtils","require_FileExplorerHeaderControls_styles","_lit_context","lit","lit_decorators_js","_Class","_FileExplorerHeaderControls","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_FileExplorerHeaderCo2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_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","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderCo","args","event","subjectUri","isContainerResource","supportsEditing"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"sourcesContent":["import { WebComponent } from '@/lib/components'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport styles from './FileExplorerHeaderControls.styles.css'\nimport '@/components/resource-actions-menu/ResourceActionsMenu'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport { FILE_EXPLORER_MANAGE_ACCESS_EVENT } from '@/lib/file-explorer/events'\nimport { isContainerSubject } from '@/utils/podUtils'\n\n@customElement('solid-ui-file-explorer-header-controls')\nexport default class FileExplorerHeaderControls extends WebComponent {\n static styles = styles\n\n private mobileMediaQuery: MediaQueryList | undefined\n private readonly mobileQuery = '(max-width: 600px)'\n private readonly handleMobileMediaChange = (event: MediaQueryListEvent) => {\n this.isMobile = event.matches\n }\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void, icon?: HTMLElement }> = []\n\n @property({ type: Boolean })\n accessor canEdit: boolean = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @state()\n accessor isMobile = typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(max-width: 600px)').matches\n : false\n\n connectedCallback () {\n super.connectedCallback()\n\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return\n }\n\n this.mobileMediaQuery = window.matchMedia(this.mobileQuery)\n this.isMobile = this.mobileMediaQuery.matches\n this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange)\n }\n\n disconnectedCallback () {\n this.mobileMediaQuery?.removeEventListener('change', this.handleMobileMediaChange)\n this.mobileMediaQuery = undefined\n super.disconnectedCallback()\n }\n\n // TODO: Add broken then use this function to set tooltip and disable edit button\n /* private setEditable() {\n const sourcePaneState = this.sourceContext?.sourcePaneState\n const { canEdit } = this.sourceContext?.headerMetadata ?? { canEdit: false }\n const subject = this.sourceContext?.subject\n if (!sourcePaneState || !canEdit || sourcePaneState.broken || (subject && subject.endsWith('/'))) return\n\n this.sourceContext?.setEditing?.()\n } */\n\n private getEditTooltip () {\n if (!this.canEdit) return 'No Access'\n return 'Edit'\n }\n\n private handleManageAccess = () => {\n const subjectUri = this.fileExplorerContext.subjectUri\n if (!subjectUri) return\n\n this.dispatchEvent(new CustomEvent(FILE_EXPLORER_MANAGE_ACCESS_EVENT, {\n bubbles: true,\n composed: true,\n detail: { subjectUri }\n }))\n }\n\n private renderDirtyIndicator () {\n if (!this.fileExplorerContext.isDirty) return nothing\n\n return html`<span class=\"dirtyIndicator\" title=\"This file has unsaved changes\">Unsaved</span>`\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri)\n const supportsEditing = this.fileExplorerContext.canEdit\n\n return html`\n <div>\n ${this.renderDirtyIndicator()}\n ${!isContainerResource && !this.isMobile && this.canManageAccess\n ? html`\n <solid-ui-button class=\"file-explorer-header-action-button\" variant=\"ghost\" title=\"Manage Access\" @click=${this.handleManageAccess}>\n <icon-lucide-user-round-cog slot=\"icon\"></icon-lucide-user-round-cog>\n <span class=\"sr-only\">Manage access</span>\n </solid-ui-button>\n ${supportsEditing\n ? html`\n <solid-ui-button\n class=\"file-explorer-header-action-button\"\n variant=\"ghost\"\n title=${this.getEditTooltip()}\n ?disabled=${!this.canEdit}\n @click=${this.fileExplorerContext.beginEditing}\n >\n <icon-lucide-pencil slot=\"icon\"></icon-lucide-pencil>\n <span class=\"sr-only\">Edit</span>\n </solid-ui-button>\n `\n : nothing}\n `\n : nothing}\n <solid-ui-resource-actions-menu\n .store=${this.fileExplorerContext.store}\n .handleAccessClick=${this.handleManageAccess}\n .handleEditingClick=${this.fileExplorerContext.beginEditing}\n .paneSupportsEditing=${this.fileExplorerContext.canEdit}\n .canEdit=${this.canEdit}\n .canManageAccess=${this.canManageAccess}\n .subjectUri=${this.fileExplorerContext.subjectUri}\n .menuItems=${this.menuItems}\n .isMobile=${this.isMobile}\n ></solid-ui-resource-actions-menu>\n </div>\n `\n }\n}\n"],"mappings":"A,6uJAWqDY,EAAA,EAAA,EAEpDX,EAAAA,cAAAA,CAAc,wCAAwC,CAAC,EAAA,IAAAY,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AAA8C,EAAApE,EAAA,IAAA,EAAA,EAAAoE,G"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WebComponent } from '../../lib/components';
|
|
2
|
+
export default class FileExplorerHeaderControls extends WebComponent {
|
|
3
|
+
static styles: import('lit').CSSResult;
|
|
4
|
+
private mobileMediaQuery;
|
|
5
|
+
private readonly mobileQuery;
|
|
6
|
+
private readonly handleMobileMediaChange;
|
|
7
|
+
accessor fileExplorerContext: import('../../lib/file-explorer/context').FileExplorerContext;
|
|
8
|
+
accessor menuItems: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
action: (event: Event) => void;
|
|
11
|
+
icon?: HTMLElement;
|
|
12
|
+
}>;
|
|
13
|
+
accessor canEdit: boolean;
|
|
14
|
+
accessor canManageAccess: boolean;
|
|
15
|
+
accessor isMobile: boolean;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
private getEditTooltip;
|
|
19
|
+
private handleManageAccess;
|
|
20
|
+
private renderDirtyIndicator;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=FileExplorerHeaderControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeaderControls.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAI/C,OAAO,qBAAqB,CAAA;AAC5B,OAAO,8BAA8B,CAAA;AACrC,OAAO,sBAAsB,CAAA;AAE7B,OAAO,wDAAwD,CAAA;AAM/D,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,YAAY;IAClE,MAAM,CAAC,MAAM,0BAAS;IAEtB,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuB;IACnD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAEvC;IAGD,QAAQ,CAAC,mBAAmB,4DAAgC;IAG5D,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAAK;IAGrG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAQ;IAGjC,QAAQ,CAAC,eAAe,UAAQ;IAGhC,QAAQ,CAAC,QAAQ,UAER;IAET,iBAAiB;IAYjB,oBAAoB;IAgBpB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,kBAAkB,CASzB;IAED,OAAO,CAAC,oBAAoB;IAM5B,MAAM;CA2CP"}
|