solid-ui 5.0.2-1 → 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
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u } from "./style-
|
|
3
|
-
import { T as d, p as f } from "./widgets-
|
|
4
|
-
import { a as p, c as m,
|
|
1
|
+
import { E as e, _ as t, d as n, g as r, h as i, m as a, n as o, p as s, t as c, y as l } from "./solidLogicSingleton.esm-BXyHD7mn.js";
|
|
2
|
+
import { u } from "./style-CXaw5EYi.js";
|
|
3
|
+
import { T as d, p as f } from "./widgets-BBEQu0CS.js";
|
|
4
|
+
import { a as p, c as m, i as h, o as g, p as _, r as v, u as y } from "./components-LxiwG5ae.js";
|
|
5
|
+
import { t as b } from "./decorators-V-B013l9.js";
|
|
5
6
|
import "./x-D1JUUSOS.js";
|
|
6
|
-
import "./button-
|
|
7
|
-
import "./dialog-
|
|
8
|
-
import "./dialog-content-
|
|
9
|
-
import "./dialog-footer-
|
|
10
|
-
import { r as x } from "./combobox-
|
|
11
|
-
import "./combobox-option-
|
|
12
|
-
import "./
|
|
7
|
+
import "./button-Dy1aFjqG.js";
|
|
8
|
+
import "./dialog-CrmftB9c.js";
|
|
9
|
+
import "./dialog-content-Cw3xqJ45.js";
|
|
10
|
+
import "./dialog-footer-sFQf-2zD.js";
|
|
11
|
+
import { r as x } from "./combobox-BL0-8wef.js";
|
|
12
|
+
import "./combobox-option-DjlmXt1O.js";
|
|
13
|
+
import "./globe-CsCgZcy5.js";
|
|
14
|
+
import "./error-state-DnsXVj1z.js";
|
|
13
15
|
// ~icons/lucide/circle-x
|
|
14
16
|
var S = class extends HTMLElement {
|
|
15
17
|
constructor() {
|
|
@@ -17,54 +19,40 @@ var S = class extends HTMLElement {
|
|
|
17
19
|
}
|
|
18
20
|
};
|
|
19
21
|
customElements.get("icon-lucide-circle-x") || customElements.define("icon-lucide-circle-x", S);
|
|
20
|
-
// ~icons/lucide/folder
|
|
21
|
-
var C = class extends HTMLElement {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"/></svg>";
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
customElements.get("icon-lucide-folder") || customElements.define("icon-lucide-folder", C);
|
|
27
22
|
// ~icons/lucide/folder-open
|
|
28
|
-
var
|
|
23
|
+
var C = class extends HTMLElement {
|
|
29
24
|
constructor() {
|
|
30
25
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\"/></svg>";
|
|
31
26
|
}
|
|
32
27
|
};
|
|
33
|
-
customElements.get("icon-lucide-folder-open") || customElements.define("icon-lucide-folder-open",
|
|
34
|
-
// ~icons/lucide/globe
|
|
35
|
-
var T = class extends HTMLElement {
|
|
36
|
-
constructor() {
|
|
37
|
-
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20\"/></g></svg>";
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
customElements.get("icon-lucide-globe") || customElements.define("icon-lucide-globe", T);
|
|
28
|
+
customElements.get("icon-lucide-folder-open") || customElements.define("icon-lucide-folder-open", C);
|
|
41
29
|
// src/components/access-control-modal/AccessControlSharedAccess.styles.css
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
|
|
30
|
+
var w = _`:host{& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);font-weight:600}& .access-grants-header,& .access-grants-list{align-self:stretch;padding:0 10px}& .access-grants-header{justify-content:space-between;align-items:center;gap:15px;display:flex;& .access-grants-search-input{--solid-ui-input-border-color:transparent;width:12ch;min-width:12ch;color:var(--solid-ui-color-zinc-500,#71717b);font-size:var(--solid-ui-font-size-sm,.875rem);flex:none;font-weight:500}}& .access-grants-list{align-items:flex-start;gap:20px;display:flex;& ul{box-sizing:border-box;border:1px solid var(--solid-ui-color-gray-200,#e5e7eb);border-radius:10px;flex-direction:column;flex:1 0 0;align-items:flex-start;gap:15px;height:195px;min-height:0;padding:15px;display:flex;overflow:hidden auto}& li{flex:none;align-items:center;gap:10px;width:100%;display:flex;& .access-grants-image{aspect-ratio:1;width:30px;height:30px;color:var(--solid-ui-color-white,#fff);text-align:center;font-size:var(--solid-ui-font-size-xs,.75rem);border-radius:999px;flex:0 0 30px;justify-content:center;align-items:center;font-weight:500;display:flex;overflow:hidden;& img{object-fit:cover;border-radius:999px;width:100%;height:100%;display:flex}& span{justify-content:center;align-items:center;width:100%;height:100%;line-height:1;display:flex}}& .access-grants-image--agentGroup{background:var(--solid-ui-color-blue-900,#083575)}& .access-grants-image--agent,& .access-grants-image--agentClass{background:var(--solid-ui-color-lavender-300,#e6dcff)}& .access-grants-image--origin{background:var(--solid-ui-color-green-700,#15803d)}& .access-grants-image--unknown{background:var(--solid-ui-color-gray-300,#d1d5db)}& h3{min-width:0;color:var(--solid-ui-color-gray-800,#1e2939);font-size:var(--solid-ui-font-size-xs,.75rem);flex:auto;font-weight:600}& span{text-align:right;flex:none;margin-left:auto}& .access-grants-role{font-size:var(--solid-ui-font-size-xs,.75rem);flex:none;margin-left:auto}& .access-grants-role--owner{font-size:var(--solid-ui-font-size-xs,.75rem)}& .access-grants-role--editable{max-width:100%}}}& .access-role-select--compact{--solid-ui-input-border-color:transparent;flex:0 0 110px;width:110px;min-width:110px;max-width:100%;margin-top:0}& .access-grants-list li .access-role-select--compact{flex:0 0 110px;width:110px;min-width:110px}}`, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, se, ce;
|
|
31
|
+
function le(e, t, n) {
|
|
32
|
+
ue(e, t), t.set(e, n);
|
|
45
33
|
}
|
|
46
|
-
function
|
|
34
|
+
function ue(e, t) {
|
|
47
35
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
48
36
|
}
|
|
49
|
-
function
|
|
50
|
-
return e.set(
|
|
37
|
+
function de(e, t, n) {
|
|
38
|
+
return e.set(pe(e, t), n), n;
|
|
51
39
|
}
|
|
52
|
-
function
|
|
53
|
-
return e.get(
|
|
40
|
+
function fe(e, t) {
|
|
41
|
+
return e.get(pe(e, t));
|
|
54
42
|
}
|
|
55
|
-
function
|
|
43
|
+
function pe(e, t, n) {
|
|
56
44
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
57
45
|
throw TypeError("Private element is not present on this object");
|
|
58
46
|
}
|
|
59
|
-
function
|
|
60
|
-
return (t =
|
|
47
|
+
function me(e, t, n) {
|
|
48
|
+
return (t = ge(t)) in e ? Object.defineProperty(e, t, {
|
|
61
49
|
value: n,
|
|
62
50
|
enumerable: !0,
|
|
63
51
|
configurable: !0,
|
|
64
52
|
writable: !0
|
|
65
53
|
}) : e[t] = n, e;
|
|
66
54
|
}
|
|
67
|
-
function
|
|
55
|
+
function he(e, t, n, r, i, a) {
|
|
68
56
|
function o(e, t, n) {
|
|
69
57
|
return function(r, i) {
|
|
70
58
|
return n && n(r), e[t].call(r, i);
|
|
@@ -87,13 +75,13 @@ function _e(e, t, n, r, i, a) {
|
|
|
87
75
|
n || Array.isArray(_) || (_ = [_]);
|
|
88
76
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
89
77
|
d ? (f || p ? b = {
|
|
90
|
-
get:
|
|
78
|
+
get: ve(function() {
|
|
91
79
|
return v(this);
|
|
92
80
|
}, r, "get"),
|
|
93
81
|
set: function(e) {
|
|
94
82
|
t[4](this, e);
|
|
95
83
|
}
|
|
96
|
-
} : b[S] = v, f ||
|
|
84
|
+
} : b[S] = v, f || ve(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
97
85
|
}
|
|
98
86
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
99
87
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -153,7 +141,7 @@ function _e(e, t, n, r, i, a) {
|
|
|
153
141
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
154
142
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
155
143
|
var i, a, o = [], c = function(t) {
|
|
156
|
-
return
|
|
144
|
+
return ye(t) === e;
|
|
157
145
|
}, u = /* @__PURE__ */ new Map();
|
|
158
146
|
function d(e) {
|
|
159
147
|
e && o.push(s.bind(null, e));
|
|
@@ -167,7 +155,7 @@ function _e(e, t, n, r, i, a) {
|
|
|
167
155
|
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);
|
|
168
156
|
u.set(b, !(m > 2) || m);
|
|
169
157
|
}
|
|
170
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
158
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : ge(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
171
159
|
}
|
|
172
160
|
}
|
|
173
161
|
return d(i), d(a), o;
|
|
@@ -180,11 +168,11 @@ function _e(e, t, n, r, i, a) {
|
|
|
180
168
|
}
|
|
181
169
|
};
|
|
182
170
|
}
|
|
183
|
-
function
|
|
184
|
-
var t =
|
|
171
|
+
function ge(e) {
|
|
172
|
+
var t = _e(e, "string");
|
|
185
173
|
return typeof t == "symbol" ? t : t + "";
|
|
186
174
|
}
|
|
187
|
-
function
|
|
175
|
+
function _e(e, t) {
|
|
188
176
|
if (typeof e != "object" || !e) return e;
|
|
189
177
|
var n;
|
|
190
178
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -194,7 +182,7 @@ function ye(e, t) {
|
|
|
194
182
|
}
|
|
195
183
|
return (t === "string" ? String : Number)(e);
|
|
196
184
|
}
|
|
197
|
-
function
|
|
185
|
+
function ve(e, t, n) {
|
|
198
186
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
199
187
|
try {
|
|
200
188
|
Object.defineProperty(e, "name", {
|
|
@@ -204,36 +192,36 @@ function be(e, t, n) {
|
|
|
204
192
|
} catch {}
|
|
205
193
|
return e;
|
|
206
194
|
}
|
|
207
|
-
function
|
|
195
|
+
function ye(e) {
|
|
208
196
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
209
197
|
return e;
|
|
210
198
|
}
|
|
211
|
-
function
|
|
199
|
+
function be(e) {
|
|
212
200
|
return e;
|
|
213
201
|
}
|
|
214
|
-
|
|
215
|
-
var
|
|
216
|
-
new (
|
|
202
|
+
ee = [b("solid-ui-access-control-shared-access")];
|
|
203
|
+
var xe;
|
|
204
|
+
new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), ce = (te = h({ attribute: !1 }), re = h({ type: Boolean }), ae = v(), "accessGrantViewModels"), E = class extends g {
|
|
217
205
|
constructor(...e) {
|
|
218
|
-
super(...e),
|
|
206
|
+
super(...e), le(this, D, (A(this), ne(this, []))), le(this, O, ie(this, !1)), le(this, k, oe(this, ""));
|
|
219
207
|
}
|
|
220
|
-
get [
|
|
221
|
-
return
|
|
208
|
+
get [ce]() {
|
|
209
|
+
return fe(D, this);
|
|
222
210
|
}
|
|
223
211
|
set accessGrantViewModels(e) {
|
|
224
|
-
|
|
212
|
+
de(D, this, e);
|
|
225
213
|
}
|
|
226
214
|
get disabled() {
|
|
227
|
-
return
|
|
215
|
+
return fe(O, this);
|
|
228
216
|
}
|
|
229
217
|
set disabled(e) {
|
|
230
|
-
|
|
218
|
+
de(O, this, e);
|
|
231
219
|
}
|
|
232
220
|
get searchValue() {
|
|
233
|
-
return
|
|
221
|
+
return fe(k, this);
|
|
234
222
|
}
|
|
235
223
|
set searchValue(e) {
|
|
236
|
-
|
|
224
|
+
de(k, this, e);
|
|
237
225
|
}
|
|
238
226
|
onSearchInput(e) {
|
|
239
227
|
let t = e.currentTarget;
|
|
@@ -244,14 +232,14 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
244
232
|
typeof t.label == "string" && (this.searchValue = t.label);
|
|
245
233
|
}
|
|
246
234
|
onAccessGrantRoleChange(e, t) {
|
|
247
|
-
let n = t.detail.option.value, r = typeof n == "string" ?
|
|
235
|
+
let n = t.detail.option.value, r = typeof n == "string" ? s.find((e) => e === n) : void 0;
|
|
248
236
|
if (!r) return;
|
|
249
|
-
let
|
|
237
|
+
let i = {
|
|
250
238
|
id: e,
|
|
251
239
|
role: r
|
|
252
240
|
};
|
|
253
241
|
this.dispatchEvent(new CustomEvent("access-grant-role-changed", {
|
|
254
|
-
detail:
|
|
242
|
+
detail: i,
|
|
255
243
|
bubbles: !0,
|
|
256
244
|
composed: !0
|
|
257
245
|
}));
|
|
@@ -261,7 +249,7 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
261
249
|
return this.accessGrantViewModels.filter(({ subjectLabel: t, subjects: n }) => n.length ? !e || t.toLowerCase().includes(e) : !1);
|
|
262
250
|
}
|
|
263
251
|
renderAccessGrant(e) {
|
|
264
|
-
return
|
|
252
|
+
return y`
|
|
265
253
|
<li>
|
|
266
254
|
${this.renderAuthorizationBadge(e.authorization, e.subjectLabel)}
|
|
267
255
|
<h3>${e.subjectLabel}</h3>
|
|
@@ -271,36 +259,36 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
271
259
|
}
|
|
272
260
|
renderAuthorizationBadge(e, t) {
|
|
273
261
|
let n = this.getAuthorizationBadge(e, t);
|
|
274
|
-
return
|
|
262
|
+
return y`
|
|
275
263
|
<div class="access-grants-image access-grants-image--${n.kind}">
|
|
276
|
-
${n.image ?
|
|
264
|
+
${n.image ? y`<img src=${n.image} alt="" aria-hidden="true" />` : n.kind === "origin" ? y`<icon-lucide-globe aria-hidden="true"></icon-lucide-globe>` : y`<span aria-hidden="true">${n.text}</span>`}
|
|
277
265
|
</div>
|
|
278
266
|
`;
|
|
279
267
|
}
|
|
280
|
-
getAuthorizationBadge(
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
283
|
-
let
|
|
268
|
+
getAuthorizationBadge(t, n) {
|
|
269
|
+
let r = t.agent[0];
|
|
270
|
+
if (r) {
|
|
271
|
+
let t = f(e(r));
|
|
284
272
|
return {
|
|
285
273
|
kind: "agent",
|
|
286
|
-
image:
|
|
287
|
-
text:
|
|
274
|
+
image: t,
|
|
275
|
+
text: t ? "" : this.getInitials(n, 2)
|
|
288
276
|
};
|
|
289
277
|
}
|
|
290
|
-
if (
|
|
278
|
+
if (t.agentGroup[0]) return {
|
|
291
279
|
kind: "agentGroup",
|
|
292
|
-
text: this.getInitials(
|
|
280
|
+
text: this.getInitials(n, 1)
|
|
293
281
|
};
|
|
294
|
-
let
|
|
295
|
-
if (
|
|
296
|
-
let
|
|
282
|
+
let i = t.agentClass[0];
|
|
283
|
+
if (i) {
|
|
284
|
+
let t = f(e(i));
|
|
297
285
|
return {
|
|
298
286
|
kind: "agentClass",
|
|
299
|
-
image:
|
|
300
|
-
text:
|
|
287
|
+
image: t,
|
|
288
|
+
text: t ? "" : this.getInitials(n, 2)
|
|
301
289
|
};
|
|
302
290
|
}
|
|
303
|
-
return
|
|
291
|
+
return t.origin[0] ? {
|
|
304
292
|
kind: "origin",
|
|
305
293
|
text: "O",
|
|
306
294
|
image: ""
|
|
@@ -313,7 +301,7 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
313
301
|
return (e.split(/\s+/).filter(Boolean).slice(0, t).map((e) => e[0]).join("") || e.slice(0, t)).toUpperCase();
|
|
314
302
|
}
|
|
315
303
|
renderAuthorizationRole(e, t) {
|
|
316
|
-
return
|
|
304
|
+
return y`
|
|
317
305
|
<solid-ui-combobox
|
|
318
306
|
class="access-role-select access-role-select--compact access-grants-role access-grants-role--editable ${e === "Owner" ? "access-grants-role--owner" : ""}"
|
|
319
307
|
.disabled=${this.disabled}
|
|
@@ -325,13 +313,13 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
325
313
|
`;
|
|
326
314
|
}
|
|
327
315
|
renderGrantRoleOptions() {
|
|
328
|
-
return
|
|
316
|
+
return s.map((e) => y`
|
|
329
317
|
<solid-ui-combobox-option value=${e}>${e === "No Access" ? "Remove" : e}</solid-ui-combobox-option>
|
|
330
318
|
`);
|
|
331
319
|
}
|
|
332
320
|
render() {
|
|
333
321
|
let e = this.getFilteredAccessGrants();
|
|
334
|
-
return
|
|
322
|
+
return y`
|
|
335
323
|
<section aria-labelledby="access-grants-heading">
|
|
336
324
|
<div class="access-grants-header">
|
|
337
325
|
<h2 id="access-grants-heading">Shared with</h2>
|
|
@@ -344,7 +332,7 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
344
332
|
@input=${this.onSearchInput}
|
|
345
333
|
@change=${this.onSearchSelect}
|
|
346
334
|
>
|
|
347
|
-
${this.accessGrantViewModels.filter(({ subjects: e }) => e.length > 0).map(({ subjectLabel: e }) =>
|
|
335
|
+
${this.accessGrantViewModels.filter(({ subjects: e }) => e.length > 0).map(({ subjectLabel: e }) => y`
|
|
348
336
|
<solid-ui-combobox-option .value=${e}>
|
|
349
337
|
${e}
|
|
350
338
|
</solid-ui-combobox-option>
|
|
@@ -353,67 +341,67 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
353
341
|
</div>
|
|
354
342
|
<div class="access-grants-list">
|
|
355
343
|
<ul>
|
|
356
|
-
${e.length > 0 ? e.map((e) => this.renderAccessGrant(e)) :
|
|
344
|
+
${e.length > 0 ? e.map((e) => this.renderAccessGrant(e)) : y`<li>No access grants</li>`}
|
|
357
345
|
</ul>
|
|
358
346
|
</div>
|
|
359
347
|
</section>
|
|
360
348
|
`;
|
|
361
349
|
}
|
|
362
|
-
}, {e: [ie, oe,
|
|
350
|
+
}, {e: [ne, ie, oe, A], c: [xe, j]} = he(E, [
|
|
363
351
|
[
|
|
364
|
-
|
|
352
|
+
te,
|
|
365
353
|
1,
|
|
366
354
|
"accessGrantViewModels"
|
|
367
355
|
],
|
|
368
356
|
[
|
|
369
|
-
|
|
357
|
+
re,
|
|
370
358
|
1,
|
|
371
359
|
"disabled"
|
|
372
360
|
],
|
|
373
361
|
[
|
|
374
|
-
|
|
362
|
+
ae,
|
|
375
363
|
1,
|
|
376
364
|
"searchValue"
|
|
377
365
|
]
|
|
378
|
-
],
|
|
366
|
+
], ee, 0, void 0, g), E), T = class extends be {
|
|
379
367
|
constructor() {
|
|
380
|
-
super(
|
|
368
|
+
super(xe), me(this, "styles", w), j();
|
|
381
369
|
}
|
|
382
|
-
},
|
|
370
|
+
}, me(T, se, void 0), T)();
|
|
383
371
|
// ~icons/lucide/link
|
|
384
|
-
var
|
|
372
|
+
var Se = class extends HTMLElement {
|
|
385
373
|
constructor() {
|
|
386
374
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/></g></svg>";
|
|
387
375
|
}
|
|
388
376
|
};
|
|
389
|
-
customElements.get("icon-lucide-link") || customElements.define("icon-lucide-link",
|
|
377
|
+
customElements.get("icon-lucide-link") || customElements.define("icon-lucide-link", Se);
|
|
390
378
|
// src/components/access-control-modal/AccessControlGeneralAccess.styles.css
|
|
391
|
-
var
|
|
392
|
-
function
|
|
393
|
-
|
|
379
|
+
var Ce = _`:host{& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);font-weight:600}& .access-grants-general{flex-direction:column;align-self:stretch;align-items:flex-start;gap:10px;padding:0 10px;display:flex;& solid-ui-combobox,& solid-ui-input{--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0)}& .access-grants-general-header{flex-direction:row;justify-content:space-between;align-self:stretch;align-items:center;gap:15px;display:flex;& .access-grants-copy-link-button-label{font-size:var(--solid-ui-font-size-xs,.75rem);font-weight:500}& .access-grants-copy-link-button icon-lucide-link{aspect-ratio:1;width:12px;height:12px}}& .access-grants-general-share{align-self:stretch;align-items:center;gap:10px;display:flex;& .access-grants-general-share-content{flex-direction:row;flex:1 0 0;align-items:flex-start;gap:10px;display:flex;& .access-grants-general-share-icon{aspect-ratio:1;background:var(--solid-ui-color-violet-50,#f5f3ff);border-radius:50px;justify-content:center;align-items:center;width:30px;height:30px;padding:5px;display:flex}& .access-grants-general-share-icon-inner{aspect-ratio:1;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;padding:1.25px;display:flex;& icon-lucide-globe{aspect-ratio:1;flex-shrink:0;width:17.5px;height:17.5px}}& .access-grants-general-share-text{flex:auto;min-width:0;& .access-grants-general-share-text-title{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:600}& .access-grants-general-share-text-description{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-sm,.875rem)}}}}}& .access-role-select--general{width:120px;min-width:120px;font-size:var(--solid-ui-font-size-xs,.75rem);flex:0 0 120px;font-weight:500}& .access-role-select--compact{--solid-ui-input-border-color:transparent;max-width:100%;margin-top:0;display:block}}`, we, Te, Ee, De, Oe, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He;
|
|
380
|
+
function Ue(e, t, n) {
|
|
381
|
+
We(e, t), t.set(e, n);
|
|
394
382
|
}
|
|
395
|
-
function
|
|
383
|
+
function We(e, t) {
|
|
396
384
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
397
385
|
}
|
|
398
386
|
function M(e, t, n) {
|
|
399
|
-
return e.set(
|
|
387
|
+
return e.set(Ge(e, t), n), n;
|
|
400
388
|
}
|
|
401
389
|
function N(e, t) {
|
|
402
|
-
return e.get(
|
|
390
|
+
return e.get(Ge(e, t));
|
|
403
391
|
}
|
|
404
|
-
function
|
|
392
|
+
function Ge(e, t, n) {
|
|
405
393
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
406
394
|
throw TypeError("Private element is not present on this object");
|
|
407
395
|
}
|
|
408
|
-
function
|
|
409
|
-
return (t =
|
|
396
|
+
function Ke(e, t, n) {
|
|
397
|
+
return (t = Je(t)) in e ? Object.defineProperty(e, t, {
|
|
410
398
|
value: n,
|
|
411
399
|
enumerable: !0,
|
|
412
400
|
configurable: !0,
|
|
413
401
|
writable: !0
|
|
414
402
|
}) : e[t] = n, e;
|
|
415
403
|
}
|
|
416
|
-
function
|
|
404
|
+
function qe(e, t, n, r, i, a) {
|
|
417
405
|
function o(e, t, n) {
|
|
418
406
|
return function(r, i) {
|
|
419
407
|
return n && n(r), e[t].call(r, i);
|
|
@@ -436,13 +424,13 @@ function Ye(e, t, n, r, i, a) {
|
|
|
436
424
|
n || Array.isArray(_) || (_ = [_]);
|
|
437
425
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
438
426
|
d ? (f || p ? b = {
|
|
439
|
-
get:
|
|
427
|
+
get: Xe(function() {
|
|
440
428
|
return v(this);
|
|
441
429
|
}, r, "get"),
|
|
442
430
|
set: function(e) {
|
|
443
431
|
t[4](this, e);
|
|
444
432
|
}
|
|
445
|
-
} : b[S] = v, f ||
|
|
433
|
+
} : b[S] = v, f || Xe(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
446
434
|
}
|
|
447
435
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
448
436
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -502,7 +490,7 @@ function Ye(e, t, n, r, i, a) {
|
|
|
502
490
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
503
491
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
504
492
|
var i, a, o = [], c = function(t) {
|
|
505
|
-
return
|
|
493
|
+
return Ze(t) === e;
|
|
506
494
|
}, u = /* @__PURE__ */ new Map();
|
|
507
495
|
function d(e) {
|
|
508
496
|
e && o.push(s.bind(null, e));
|
|
@@ -516,7 +504,7 @@ function Ye(e, t, n, r, i, a) {
|
|
|
516
504
|
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);
|
|
517
505
|
u.set(b, !(m > 2) || m);
|
|
518
506
|
}
|
|
519
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
507
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Je(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
520
508
|
}
|
|
521
509
|
}
|
|
522
510
|
return d(i), d(a), o;
|
|
@@ -529,11 +517,11 @@ function Ye(e, t, n, r, i, a) {
|
|
|
529
517
|
}
|
|
530
518
|
};
|
|
531
519
|
}
|
|
532
|
-
function
|
|
533
|
-
var t =
|
|
520
|
+
function Je(e) {
|
|
521
|
+
var t = Ye(e, "string");
|
|
534
522
|
return typeof t == "symbol" ? t : t + "";
|
|
535
523
|
}
|
|
536
|
-
function
|
|
524
|
+
function Ye(e, t) {
|
|
537
525
|
if (typeof e != "object" || !e) return e;
|
|
538
526
|
var n;
|
|
539
527
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -543,7 +531,7 @@ function Ze(e, t) {
|
|
|
543
531
|
}
|
|
544
532
|
return (t === "string" ? String : Number)(e);
|
|
545
533
|
}
|
|
546
|
-
function
|
|
534
|
+
function Xe(e, t, n) {
|
|
547
535
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
548
536
|
try {
|
|
549
537
|
Object.defineProperty(e, "name", {
|
|
@@ -553,48 +541,48 @@ function Qe(e, t, n) {
|
|
|
553
541
|
} catch {}
|
|
554
542
|
return e;
|
|
555
543
|
}
|
|
556
|
-
function
|
|
544
|
+
function Ze(e) {
|
|
557
545
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
558
546
|
return e;
|
|
559
547
|
}
|
|
560
|
-
function
|
|
548
|
+
function Qe(e) {
|
|
561
549
|
return e;
|
|
562
550
|
}
|
|
563
|
-
|
|
564
|
-
var
|
|
565
|
-
new (
|
|
551
|
+
Me = [b("solid-ui-access-control-general-access")];
|
|
552
|
+
var $e;
|
|
553
|
+
new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), He = (Ne = h({ attribute: !1 }), Fe = h({ attribute: !1 }), Le = h({ attribute: !1 }), ze = h({ type: Boolean }), "subjectUri"), Te = class extends g {
|
|
566
554
|
constructor(...e) {
|
|
567
|
-
super(...e),
|
|
555
|
+
super(...e), Ue(this, Ee, (Ae(this), Pe(this, void 0))), Ue(this, De, Ie(this, "No Access")), Ue(this, Oe, Re(this, "No Access")), Ue(this, ke, Be(this, !1));
|
|
568
556
|
}
|
|
569
|
-
get [
|
|
570
|
-
return N(
|
|
557
|
+
get [He]() {
|
|
558
|
+
return N(Ee, this);
|
|
571
559
|
}
|
|
572
560
|
set subjectUri(e) {
|
|
573
|
-
M(
|
|
561
|
+
M(Ee, this, e);
|
|
574
562
|
}
|
|
575
563
|
get authenticatedAccessRoleValue() {
|
|
576
|
-
return N(
|
|
564
|
+
return N(De, this);
|
|
577
565
|
}
|
|
578
566
|
set authenticatedAccessRoleValue(e) {
|
|
579
|
-
M(
|
|
567
|
+
M(De, this, e);
|
|
580
568
|
}
|
|
581
569
|
get publicAccessRoleValue() {
|
|
582
|
-
return N(
|
|
570
|
+
return N(Oe, this);
|
|
583
571
|
}
|
|
584
572
|
set publicAccessRoleValue(e) {
|
|
585
|
-
M(
|
|
573
|
+
M(Oe, this, e);
|
|
586
574
|
}
|
|
587
575
|
get disabled() {
|
|
588
|
-
return N(
|
|
576
|
+
return N(ke, this);
|
|
589
577
|
}
|
|
590
578
|
set disabled(e) {
|
|
591
|
-
M(
|
|
579
|
+
M(ke, this, e);
|
|
592
580
|
}
|
|
593
581
|
onAuthenticatedRoleChange(e) {
|
|
594
|
-
this.dispatchRoleChange("authenticated-role-changed", e,
|
|
582
|
+
this.dispatchRoleChange("authenticated-role-changed", e, s);
|
|
595
583
|
}
|
|
596
584
|
onPublicRoleChange(e) {
|
|
597
|
-
this.dispatchRoleChange("public-role-changed", e,
|
|
585
|
+
this.dispatchRoleChange("public-role-changed", e, i);
|
|
598
586
|
}
|
|
599
587
|
dispatchRoleChange(e, t, n) {
|
|
600
588
|
let r = t.detail.option.value;
|
|
@@ -614,17 +602,17 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
614
602
|
}
|
|
615
603
|
}
|
|
616
604
|
renderAuthenticatedRoleOptions() {
|
|
617
|
-
return
|
|
605
|
+
return s.map((e) => y`
|
|
618
606
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
619
607
|
`);
|
|
620
608
|
}
|
|
621
609
|
renderPublicRoleOptions() {
|
|
622
|
-
return
|
|
610
|
+
return i.map((e) => y`
|
|
623
611
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
624
612
|
`);
|
|
625
613
|
}
|
|
626
614
|
renderAuthenticatedModeSelector() {
|
|
627
|
-
return
|
|
615
|
+
return y`
|
|
628
616
|
<solid-ui-combobox
|
|
629
617
|
class="access-role-select access-role-select--compact access-role-select--general access-grants-role access-grants-role--editable access-role-select--authenticated"
|
|
630
618
|
.disabled=${this.disabled}
|
|
@@ -636,7 +624,7 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
636
624
|
`;
|
|
637
625
|
}
|
|
638
626
|
renderPublicModeSelector() {
|
|
639
|
-
return
|
|
627
|
+
return y`
|
|
640
628
|
<solid-ui-combobox
|
|
641
629
|
class="access-role-select access-role-select--compact access-role-select--general access-grants-role access-grants-role--editable access-role-select--public"
|
|
642
630
|
.disabled=${this.disabled}
|
|
@@ -648,7 +636,7 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
648
636
|
`;
|
|
649
637
|
}
|
|
650
638
|
renderGeneralAccessIcon() {
|
|
651
|
-
return
|
|
639
|
+
return y`
|
|
652
640
|
<div class="access-grants-general-share-icon">
|
|
653
641
|
<div class="access-grants-general-share-icon-inner">
|
|
654
642
|
<icon-lucide-globe class="access-grants-general-share-icon-image"></icon-lucide-globe>
|
|
@@ -657,7 +645,7 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
657
645
|
`;
|
|
658
646
|
}
|
|
659
647
|
renderGeneralShareRow(e) {
|
|
660
|
-
return
|
|
648
|
+
return y`
|
|
661
649
|
<div class="access-grants-general-share">
|
|
662
650
|
<div class="access-grants-general-share-content">
|
|
663
651
|
${this.renderGeneralAccessIcon()}
|
|
@@ -671,7 +659,7 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
671
659
|
`;
|
|
672
660
|
}
|
|
673
661
|
render() {
|
|
674
|
-
return
|
|
662
|
+
return y`
|
|
675
663
|
<section class="access-grants-general" aria-labelledby="general-access-heading">
|
|
676
664
|
<div class="access-grants-general-header">
|
|
677
665
|
<h2 id="general-access-heading">General Access</h2>
|
|
@@ -697,59 +685,59 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
697
685
|
</section>
|
|
698
686
|
`;
|
|
699
687
|
}
|
|
700
|
-
}, {e: [Ie, Re, Be,
|
|
688
|
+
}, {e: [Pe, Ie, Re, Be, Ae], c: [$e, je]} = qe(Te, [
|
|
701
689
|
[
|
|
702
|
-
|
|
690
|
+
Ne,
|
|
703
691
|
1,
|
|
704
692
|
"subjectUri"
|
|
705
693
|
],
|
|
706
694
|
[
|
|
707
|
-
|
|
695
|
+
Fe,
|
|
708
696
|
1,
|
|
709
697
|
"authenticatedAccessRoleValue"
|
|
710
698
|
],
|
|
711
699
|
[
|
|
712
|
-
|
|
700
|
+
Le,
|
|
713
701
|
1,
|
|
714
702
|
"publicAccessRoleValue"
|
|
715
703
|
],
|
|
716
704
|
[
|
|
717
|
-
|
|
705
|
+
ze,
|
|
718
706
|
1,
|
|
719
707
|
"disabled"
|
|
720
708
|
]
|
|
721
|
-
],
|
|
709
|
+
], Me, 0, void 0, g), Te), we = class extends Qe {
|
|
722
710
|
constructor() {
|
|
723
|
-
super(
|
|
711
|
+
super($e), Ke(this, "styles", Ce), je();
|
|
724
712
|
}
|
|
725
|
-
},
|
|
713
|
+
}, Ke(we, Ve, void 0), we)();
|
|
726
714
|
// src/components/access-control-modal/AccessControlErrors.styles.css
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
|
|
715
|
+
var et = _`:host{contain:inline-size;width:100%;display:block;& solid-ui-error-state{contain:inline-size;width:100%;max-width:100%}& .access-control-save-errors{box-sizing:border-box;gap:8px;width:100%;margin:0;padding-left:0;list-style:none;display:grid;& li{min-width:0;color:var(--solid-ui-color-red-600,#be2e48);font-size:var(--solid-ui-font-size-sm,.875rem);grid-template-columns:minmax(0,18rem) minmax(0,1fr);align-items:baseline;gap:6px;line-height:1.4;display:grid}& .access-control-save-error-label{overflow-wrap:anywhere;font-weight:500}& .access-control-save-error-detail{overflow-wrap:anywhere;min-width:0}}@media (width<=600px){& .access-control-save-errors li{grid-template-columns:minmax(0,40%) minmax(0,1fr)}}}`, tt, nt, P, F, rt, it, at, ot, st, ct, lt, ut, dt;
|
|
716
|
+
function ft(e, t, n) {
|
|
717
|
+
pt(e, t), t.set(e, n);
|
|
730
718
|
}
|
|
731
|
-
function
|
|
719
|
+
function pt(e, t) {
|
|
732
720
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
733
721
|
}
|
|
734
|
-
function
|
|
735
|
-
return e.set(
|
|
722
|
+
function mt(e, t, n) {
|
|
723
|
+
return e.set(gt(e, t), n), n;
|
|
736
724
|
}
|
|
737
|
-
function
|
|
738
|
-
return e.get(
|
|
725
|
+
function ht(e, t) {
|
|
726
|
+
return e.get(gt(e, t));
|
|
739
727
|
}
|
|
740
|
-
function
|
|
728
|
+
function gt(e, t, n) {
|
|
741
729
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
742
730
|
throw TypeError("Private element is not present on this object");
|
|
743
731
|
}
|
|
744
|
-
function
|
|
745
|
-
return (t =
|
|
732
|
+
function _t(e, t, n) {
|
|
733
|
+
return (t = yt(t)) in e ? Object.defineProperty(e, t, {
|
|
746
734
|
value: n,
|
|
747
735
|
enumerable: !0,
|
|
748
736
|
configurable: !0,
|
|
749
737
|
writable: !0
|
|
750
738
|
}) : e[t] = n, e;
|
|
751
739
|
}
|
|
752
|
-
function
|
|
740
|
+
function vt(e, t, n, r, i, a) {
|
|
753
741
|
function o(e, t, n) {
|
|
754
742
|
return function(r, i) {
|
|
755
743
|
return n && n(r), e[t].call(r, i);
|
|
@@ -772,13 +760,13 @@ function bt(e, t, n, r, i, a) {
|
|
|
772
760
|
n || Array.isArray(_) || (_ = [_]);
|
|
773
761
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
774
762
|
d ? (f || p ? b = {
|
|
775
|
-
get:
|
|
763
|
+
get: xt(function() {
|
|
776
764
|
return v(this);
|
|
777
765
|
}, r, "get"),
|
|
778
766
|
set: function(e) {
|
|
779
767
|
t[4](this, e);
|
|
780
768
|
}
|
|
781
|
-
} : b[S] = v, f ||
|
|
769
|
+
} : b[S] = v, f || xt(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
782
770
|
}
|
|
783
771
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
784
772
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -838,7 +826,7 @@ function bt(e, t, n, r, i, a) {
|
|
|
838
826
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
839
827
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
840
828
|
var i, a, o = [], c = function(t) {
|
|
841
|
-
return
|
|
829
|
+
return St(t) === e;
|
|
842
830
|
}, u = /* @__PURE__ */ new Map();
|
|
843
831
|
function d(e) {
|
|
844
832
|
e && o.push(s.bind(null, e));
|
|
@@ -852,7 +840,7 @@ function bt(e, t, n, r, i, a) {
|
|
|
852
840
|
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);
|
|
853
841
|
u.set(b, !(m > 2) || m);
|
|
854
842
|
}
|
|
855
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
843
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : yt(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
856
844
|
}
|
|
857
845
|
}
|
|
858
846
|
return d(i), d(a), o;
|
|
@@ -865,11 +853,11 @@ function bt(e, t, n, r, i, a) {
|
|
|
865
853
|
}
|
|
866
854
|
};
|
|
867
855
|
}
|
|
868
|
-
function
|
|
869
|
-
var t =
|
|
856
|
+
function yt(e) {
|
|
857
|
+
var t = bt(e, "string");
|
|
870
858
|
return typeof t == "symbol" ? t : t + "";
|
|
871
859
|
}
|
|
872
|
-
function
|
|
860
|
+
function bt(e, t) {
|
|
873
861
|
if (typeof e != "object" || !e) return e;
|
|
874
862
|
var n;
|
|
875
863
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -879,7 +867,7 @@ function St(e, t) {
|
|
|
879
867
|
}
|
|
880
868
|
return (t === "string" ? String : Number)(e);
|
|
881
869
|
}
|
|
882
|
-
function
|
|
870
|
+
function xt(e, t, n) {
|
|
883
871
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
884
872
|
try {
|
|
885
873
|
Object.defineProperty(e, "name", {
|
|
@@ -889,30 +877,30 @@ function Ct(e, t, n) {
|
|
|
889
877
|
} catch {}
|
|
890
878
|
return e;
|
|
891
879
|
}
|
|
892
|
-
function
|
|
880
|
+
function St(e) {
|
|
893
881
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
894
882
|
return e;
|
|
895
883
|
}
|
|
896
|
-
function
|
|
884
|
+
function Ct(e) {
|
|
897
885
|
return e;
|
|
898
886
|
}
|
|
899
|
-
|
|
900
|
-
var
|
|
901
|
-
new (
|
|
887
|
+
at = [b("solid-ui-access-control-errors")];
|
|
888
|
+
var wt;
|
|
889
|
+
new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt = (ot = h({ attribute: !1 }), ct = h({ attribute: !1 }), "errors"), nt = class extends g {
|
|
902
890
|
constructor(...e) {
|
|
903
|
-
super(...e),
|
|
891
|
+
super(...e), ft(this, P, (rt(this), st(this, []))), ft(this, F, lt(this, !0));
|
|
904
892
|
}
|
|
905
|
-
get [
|
|
906
|
-
return
|
|
893
|
+
get [dt]() {
|
|
894
|
+
return ht(P, this);
|
|
907
895
|
}
|
|
908
896
|
set errors(e) {
|
|
909
|
-
|
|
897
|
+
mt(P, this, e);
|
|
910
898
|
}
|
|
911
899
|
get successfulChangesRefreshed() {
|
|
912
|
-
return
|
|
900
|
+
return ht(F, this);
|
|
913
901
|
}
|
|
914
902
|
set successfulChangesRefreshed(e) {
|
|
915
|
-
|
|
903
|
+
mt(F, this, e);
|
|
916
904
|
}
|
|
917
905
|
onClose(e) {
|
|
918
906
|
e.stopPropagation(), this.dispatchEvent(new CustomEvent("close", {
|
|
@@ -924,14 +912,14 @@ new (ft = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), pt
|
|
|
924
912
|
return e === "folder+contents" ? "folder and contents" : e === "container" ? "folder" : e === "contents" ? "contents" : "resource";
|
|
925
913
|
}
|
|
926
914
|
render() {
|
|
927
|
-
return this.errors.length ?
|
|
915
|
+
return this.errors.length ? y`
|
|
928
916
|
<solid-ui-error-state
|
|
929
917
|
title="Some access changes could not be saved"
|
|
930
918
|
message=${this.successfulChangesRefreshed ? "Any successful changes are shown above. The list below shows only the changes that failed. Close this dialog and reopen it if you want to try again." : "Some changes may have been saved, but we could not refresh the Shared with list. The list below shows only the changes that failed. Close this dialog and reopen it if you want to try again."}
|
|
931
919
|
@close=${this.onClose}
|
|
932
920
|
>
|
|
933
921
|
<ul class="access-control-save-errors">
|
|
934
|
-
${this.errors.map((e) =>
|
|
922
|
+
${this.errors.map((e) => y`
|
|
935
923
|
<li>
|
|
936
924
|
<span class="access-control-save-error-label">${e.label}</span>
|
|
937
925
|
<span class="access-control-save-error-detail">
|
|
@@ -942,31 +930,31 @@ new (ft = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), pt
|
|
|
942
930
|
`)}
|
|
943
931
|
</ul>
|
|
944
932
|
</solid-ui-error-state>
|
|
945
|
-
` :
|
|
933
|
+
` : y``;
|
|
946
934
|
}
|
|
947
|
-
}, {e: [
|
|
948
|
-
|
|
935
|
+
}, {e: [st, lt, rt], c: [wt, it]} = vt(nt, [[
|
|
936
|
+
ot,
|
|
949
937
|
1,
|
|
950
938
|
"errors"
|
|
951
939
|
], [
|
|
952
|
-
|
|
940
|
+
ct,
|
|
953
941
|
1,
|
|
954
942
|
"successfulChangesRefreshed"
|
|
955
|
-
]],
|
|
943
|
+
]], at, 0, void 0, g), nt), tt = class extends Ct {
|
|
956
944
|
constructor() {
|
|
957
|
-
super(
|
|
945
|
+
super(wt), _t(this, "styles", et), it();
|
|
958
946
|
}
|
|
959
|
-
},
|
|
947
|
+
}, _t(tt, ut, void 0), tt)();
|
|
960
948
|
// src/components/access-control-modal/AccessControlModal.styles.css
|
|
961
|
-
var
|
|
949
|
+
var Tt = _`:host{& .access-control-mixed-policy-warning{border:1px solid var(--solid-ui-color-red-300,#fca5a5);background:var(--solid-ui-color-red-50,#fef2f2);color:var(--solid-ui-color-red-800,#991b1b);font-size:var(--solid-ui-font-size-sm,.875rem);border-radius:5px;gap:4px;margin:0 0 16px;padding:12px 14px;line-height:1.45;display:grid;& strong{font-weight:600}}& .access-control-same-access-toggle{color:var(--solid-ui-color-gray-900,#101828);text-align:left;line-height:1.4;font:inherit;cursor:pointer;background:0 0;border:0;align-items:flex-start;gap:8px;margin-top:12px;padding:0;display:flex}& .access-control-switch-track{background:var(--solid-ui-color-slate-300,#cbd5e1);border-radius:999px;flex:none;width:34px;height:20px;margin-top:1px;padding:2px;transition:background .15s;display:inline-flex}& .access-control-same-access-toggle[aria-checked=true] .access-control-switch-track{background:var(--solid-ui-color-purple-600,#9333ea)}& .access-control-switch-thumb{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;box-shadow:0 1px 2px #00000040}& .access-control-same-access-toggle[aria-checked=true] .access-control-switch-thumb{transform:translate(14px)}& .access-control-same-access-toggle>span:last-child{overflow-wrap:anywhere;min-width:0;max-width:100%}& .access-control-sharing-state,& .access-control-contents-prompt{box-sizing:border-box;min-width:0;max-width:100%;font-size:var(--solid-ui-font-size-sm,.875rem);margin-bottom:16px;padding:10px;& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);margin:0 0 10px;font-weight:600}& .access-control-advanced-sharing{box-sizing:border-box;overflow-wrap:anywhere;width:100%;min-width:0;max-width:100%;margin-top:10px;padding:10px 48px 10px 15px;position:relative;& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);margin:0 0 4px;font-weight:600}& p{overflow-wrap:anywhere;min-width:0;max-width:100%;color:var(--solid-ui-color-gray-600,#4a5565);font-size:var(--solid-ui-font-size-xs,.75rem);margin:0;line-height:1.5}& .access-control-advanced-sharing-description-line{max-width:100%;display:block}}& .access-control-advanced-sharing-options,& .access-control-advanced-sharing-actions{flex-wrap:wrap;gap:8px;min-width:0;margin-top:10px;display:flex;& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);white-space:normal;min-width:0;max-width:100%}}& .access-control-advanced-sharing-actions{justify-content:flex-end;margin-top:0;position:absolute;top:10px;right:15px;& solid-ui-button{color:var(--solid-ui-color-gray-600,#4a5565)}}& p{overflow-wrap:anywhere;min-width:0;max-width:100%;color:var(--solid-ui-color-gray-600,#4a5565);margin:0;line-height:1.5}}& .access-control-sharing-state-panel,& .access-control-contents-prompt{box-sizing:border-box;border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-white,#fff);border-radius:5px;min-width:0;max-width:100%;padding:10px 15px}& .access-control-sharing-state-panel{gap:10px;display:grid;& p{overflow-wrap:anywhere;min-width:0;max-width:100%}& .access-control-sharing-state-custom-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex;& p{flex:auto}& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);flex:none}}}& .access-control-sharing-guidance{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex;& p{overflow-wrap:anywhere;min-width:0;max-width:100%}& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);flex:none}}& .access-control-sharing-state-actions{flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;min-width:0;margin-top:10px;display:flex;& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);max-width:100%}}@media (width<=420px){& .access-control-sharing-guidance{flex-direction:column;align-items:flex-start;gap:8px;& solid-ui-button{align-self:flex-end}}}& .access-control-contents-prompt{& .access-control-contents-prompt-actions{flex-wrap:wrap;gap:8px;min-width:0;margin-top:10px;display:flex}& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);flex:0 auto;max-width:100%}}& .access-control-contents-prompt h2{margin-bottom:4px}& .access-control-footer-actions{justify-content:flex-end;align-items:center;gap:15px;width:100%;display:flex;&>solid-ui-button{min-width:132px}}@media (width<=380px){& .access-control-footer-actions{gap:8px;&>solid-ui-button{flex:1 1 0;min-width:0}}}}`;
|
|
962
950
|
// src/components/access-control-modal/accessGrantDrafts.ts
|
|
963
|
-
function
|
|
951
|
+
function Et(e) {
|
|
964
952
|
return {
|
|
965
953
|
...e,
|
|
966
|
-
agentClass: e.agentClass.filter((e) => e !==
|
|
954
|
+
agentClass: e.agentClass.filter((e) => e !== r.iri && e !== t.iri)
|
|
967
955
|
};
|
|
968
956
|
}
|
|
969
|
-
function
|
|
957
|
+
function Dt(e) {
|
|
970
958
|
return [
|
|
971
959
|
{
|
|
972
960
|
type: "agent",
|
|
@@ -989,118 +977,118 @@ function kt(e) {
|
|
|
989
977
|
iri: t
|
|
990
978
|
})));
|
|
991
979
|
}
|
|
992
|
-
function
|
|
993
|
-
return e.id ? e.id :
|
|
980
|
+
function Ot(e) {
|
|
981
|
+
return e.id ? e.id : Dt(e).map((e) => `${e.type}:${e.iri}`).sort().join("|");
|
|
994
982
|
}
|
|
995
|
-
function
|
|
983
|
+
function kt(e) {
|
|
996
984
|
let t = /* @__PURE__ */ new Map();
|
|
997
985
|
return e.map((e) => {
|
|
998
|
-
let n =
|
|
986
|
+
let n = Ot(Et(e)), r = t.get(n) ?? 0;
|
|
999
987
|
return t.set(n, r + 1), r === 0 ? n : `${n}#${r}`;
|
|
1000
988
|
});
|
|
1001
989
|
}
|
|
1002
|
-
function
|
|
1003
|
-
let
|
|
1004
|
-
...
|
|
1005
|
-
...
|
|
1006
|
-
...
|
|
1007
|
-
...
|
|
990
|
+
function At(t) {
|
|
991
|
+
let n = [
|
|
992
|
+
...t.agent,
|
|
993
|
+
...t.agentGroup,
|
|
994
|
+
...t.agentClass,
|
|
995
|
+
...t.origin
|
|
1008
996
|
];
|
|
1009
|
-
return
|
|
997
|
+
return n.length ? n.map((t) => u(e(t))).join(", ") : "Unknown access holder";
|
|
1010
998
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
999
|
+
function jt(e) {
|
|
1000
|
+
return c.acl.roleFromModes(e.mode);
|
|
1013
1001
|
}
|
|
1014
|
-
function
|
|
1015
|
-
let t =
|
|
1002
|
+
function Mt(e) {
|
|
1003
|
+
let t = Et(e);
|
|
1016
1004
|
return {
|
|
1017
|
-
id:
|
|
1005
|
+
id: Ot(t),
|
|
1018
1006
|
authorization: t,
|
|
1019
|
-
role:
|
|
1020
|
-
initialRole:
|
|
1021
|
-
subjectLabel:
|
|
1022
|
-
subjects:
|
|
1007
|
+
role: jt(t),
|
|
1008
|
+
initialRole: jt(e),
|
|
1009
|
+
subjectLabel: At(t),
|
|
1010
|
+
subjects: Dt(t)
|
|
1023
1011
|
};
|
|
1024
1012
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let t =
|
|
1013
|
+
function Nt(e) {
|
|
1014
|
+
let t = kt(e);
|
|
1027
1015
|
return e.map((e, n) => ({
|
|
1028
|
-
...
|
|
1016
|
+
...Mt(e),
|
|
1029
1017
|
id: t[n]
|
|
1030
1018
|
}));
|
|
1031
1019
|
}
|
|
1032
|
-
function
|
|
1020
|
+
function Pt(e) {
|
|
1033
1021
|
return [...e].sort((t, n) => {
|
|
1034
1022
|
let r = t.role === "Owner", i = n.role === "Owner";
|
|
1035
1023
|
return r && !i ? -1 : !r && i ? 1 : e.indexOf(t) - e.indexOf(n);
|
|
1036
1024
|
});
|
|
1037
1025
|
}
|
|
1038
|
-
function
|
|
1039
|
-
return
|
|
1026
|
+
function Ft(e) {
|
|
1027
|
+
return Pt(e).filter(({ role: e, initialRole: t, subjects: n }) => e !== t && n.length > 0).map(({ authorization: e, subjects: t, role: n }) => ({
|
|
1040
1028
|
authorization: e,
|
|
1041
1029
|
subjects: t,
|
|
1042
1030
|
role: n
|
|
1043
1031
|
}));
|
|
1044
1032
|
}
|
|
1045
|
-
function
|
|
1046
|
-
let t = e.filter((e) => e.agentClass.includes(l.iri)).flatMap((e) => e.mode);
|
|
1047
|
-
return t.length ? a.acl.roleFromModes(t) : "No Access";
|
|
1048
|
-
}
|
|
1049
|
-
function zt(e) {
|
|
1033
|
+
function It(e) {
|
|
1050
1034
|
let t = e.filter((e) => e.agentClass.includes(r.iri)).flatMap((e) => e.mode);
|
|
1051
|
-
return t.length ?
|
|
1035
|
+
return t.length ? c.acl.roleFromModes(t) : "No Access";
|
|
1052
1036
|
}
|
|
1053
|
-
function
|
|
1054
|
-
|
|
1037
|
+
function Lt(e) {
|
|
1038
|
+
let n = e.filter((e) => e.agentClass.includes(t.iri)).flatMap((e) => e.mode);
|
|
1039
|
+
return n.length ? c.acl.publicRoleFromModes(n) : "No Access";
|
|
1040
|
+
}
|
|
1041
|
+
function Rt(n) {
|
|
1042
|
+
return n.iri === r.iri ? "Authenticated users" : n.iri === t.iri ? "Public" : u(e(n.iri)).trim() || n.iri;
|
|
1055
1043
|
}
|
|
1056
1044
|
// ~icons/lucide/book-user
|
|
1057
|
-
var
|
|
1045
|
+
var zt = class extends HTMLElement {
|
|
1058
1046
|
constructor() {
|
|
1059
1047
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M15 13a3 3 0 1 0-6 0\"/><path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20\"/><circle cx=\"12\" cy=\"8\" r=\"2\"/></g></svg>";
|
|
1060
1048
|
}
|
|
1061
1049
|
};
|
|
1062
|
-
customElements.get("icon-lucide-book-user") || customElements.define("icon-lucide-book-user",
|
|
1050
|
+
customElements.get("icon-lucide-book-user") || customElements.define("icon-lucide-book-user", zt);
|
|
1063
1051
|
// ~icons/lucide/user-round
|
|
1064
|
-
var
|
|
1052
|
+
var Bt = class extends HTMLElement {
|
|
1065
1053
|
constructor() {
|
|
1066
1054
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"8\" r=\"5\"/><path d=\"M20 21a8 8 0 0 0-16 0\"/></g></svg>";
|
|
1067
1055
|
}
|
|
1068
1056
|
};
|
|
1069
|
-
customElements.get("icon-lucide-user-round") || customElements.define("icon-lucide-user-round",
|
|
1057
|
+
customElements.get("icon-lucide-user-round") || customElements.define("icon-lucide-user-round", Bt);
|
|
1070
1058
|
// ~icons/lucide/users
|
|
1071
|
-
var
|
|
1059
|
+
var Vt = class extends HTMLElement {
|
|
1072
1060
|
constructor() {
|
|
1073
1061
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M16 3.128a4 4 0 0 1 0 7.744M22 21v-2a4 4 0 0 0-3-3.87\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/></g></svg>";
|
|
1074
1062
|
}
|
|
1075
1063
|
};
|
|
1076
|
-
customElements.get("icon-lucide-users") || customElements.define("icon-lucide-users",
|
|
1064
|
+
customElements.get("icon-lucide-users") || customElements.define("icon-lucide-users", Vt);
|
|
1077
1065
|
// src/components/access-control-modal/AccessControlAddAccess.styles.css
|
|
1078
|
-
var
|
|
1066
|
+
var Ht = _`:host{& .access-grants-form{font-size:var(--solid-ui-font-size-sm,.875rem);--access-role-select-width:129px;flex-direction:column;align-self:stretch;align-items:flex-start;gap:10px;padding:10px;display:flex;& p{color:var(--solid-ui-color-gray-600,#4a5565);line-height:1.5}& .access-grants-form-main{align-self:stretch;align-items:center;gap:10px;display:flex;& .access-grants-input{border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-white,#fff);border-radius:5px;flex-direction:column;flex:auto;align-items:flex-start;gap:12px;min-width:0;padding:10px 15px;display:flex;& solid-ui-combobox{--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0);width:100%}& .access-principal-error{color:var(--solid-ui-color-red-700,#b42318);font-size:var(--solid-ui-font-size-xs,.75rem);margin:0;line-height:1.4}}}& .access-grants-pending{flex-wrap:wrap;align-items:center;gap:8px;min-height:42px;display:flex}& .access-grants-pending-item{border:1px solid var(--solid-ui-color-gray-300,#d1d5dc);background:var(--solid-ui-color-gray-50,#f9fafb);max-width:100%;color:var(--solid-ui-color-gray-700,#374151);border-radius:5px;align-items:center;gap:6px;padding:5px 10px;display:flex}& .access-grants-pending-item-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);line-height:1;overflow:hidden}& .access-grants-pending-item-remove{color:var(--solid-ui-color-gray-300,#d1d5dc);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex;& icon-lucide-circle-x{width:14px;height:14px}}}& .access-grants-directory-entry{align-items:center;gap:8px;line-height:1;display:inline-flex}& .access-role-select{max-width:100%;width:var(--access-role-select-width);--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0);flex:none;margin-top:25px;display:block}& .access-role-select--top{margin-top:0}}`, Ut, Wt, I, L, R, z, B, V, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn;
|
|
1079
1067
|
function H(e, t, n) {
|
|
1080
|
-
|
|
1068
|
+
ln(e, t), t.set(e, n);
|
|
1081
1069
|
}
|
|
1082
|
-
function
|
|
1070
|
+
function ln(e, t) {
|
|
1083
1071
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
1084
1072
|
}
|
|
1085
1073
|
function U(e, t, n) {
|
|
1086
|
-
return e.set(
|
|
1074
|
+
return e.set(un(e, t), n), n;
|
|
1087
1075
|
}
|
|
1088
1076
|
function W(e, t) {
|
|
1089
|
-
return e.get(
|
|
1077
|
+
return e.get(un(e, t));
|
|
1090
1078
|
}
|
|
1091
|
-
function
|
|
1079
|
+
function un(e, t, n) {
|
|
1092
1080
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1093
1081
|
throw TypeError("Private element is not present on this object");
|
|
1094
1082
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return (t =
|
|
1083
|
+
function dn(e, t, n) {
|
|
1084
|
+
return (t = pn(t)) in e ? Object.defineProperty(e, t, {
|
|
1097
1085
|
value: n,
|
|
1098
1086
|
enumerable: !0,
|
|
1099
1087
|
configurable: !0,
|
|
1100
1088
|
writable: !0
|
|
1101
1089
|
}) : e[t] = n, e;
|
|
1102
1090
|
}
|
|
1103
|
-
function
|
|
1091
|
+
function fn(e, t, n, r, i, a) {
|
|
1104
1092
|
function o(e, t, n) {
|
|
1105
1093
|
return function(r, i) {
|
|
1106
1094
|
return n && n(r), e[t].call(r, i);
|
|
@@ -1123,13 +1111,13 @@ function mn(e, t, n, r, i, a) {
|
|
|
1123
1111
|
n || Array.isArray(_) || (_ = [_]);
|
|
1124
1112
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
1125
1113
|
d ? (f || p ? b = {
|
|
1126
|
-
get:
|
|
1114
|
+
get: hn(function() {
|
|
1127
1115
|
return v(this);
|
|
1128
1116
|
}, r, "get"),
|
|
1129
1117
|
set: function(e) {
|
|
1130
1118
|
t[4](this, e);
|
|
1131
1119
|
}
|
|
1132
|
-
} : b[S] = v, f ||
|
|
1120
|
+
} : b[S] = v, f || hn(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
1133
1121
|
}
|
|
1134
1122
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
1135
1123
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -1189,7 +1177,7 @@ function mn(e, t, n, r, i, a) {
|
|
|
1189
1177
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
1190
1178
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
1191
1179
|
var i, a, o = [], c = function(t) {
|
|
1192
|
-
return
|
|
1180
|
+
return gn(t) === e;
|
|
1193
1181
|
}, u = /* @__PURE__ */ new Map();
|
|
1194
1182
|
function d(e) {
|
|
1195
1183
|
e && o.push(s.bind(null, e));
|
|
@@ -1203,7 +1191,7 @@ function mn(e, t, n, r, i, a) {
|
|
|
1203
1191
|
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);
|
|
1204
1192
|
u.set(b, !(m > 2) || m);
|
|
1205
1193
|
}
|
|
1206
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
1194
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : pn(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
1207
1195
|
}
|
|
1208
1196
|
}
|
|
1209
1197
|
return d(i), d(a), o;
|
|
@@ -1216,11 +1204,11 @@ function mn(e, t, n, r, i, a) {
|
|
|
1216
1204
|
}
|
|
1217
1205
|
};
|
|
1218
1206
|
}
|
|
1219
|
-
function
|
|
1220
|
-
var t =
|
|
1207
|
+
function pn(e) {
|
|
1208
|
+
var t = mn(e, "string");
|
|
1221
1209
|
return typeof t == "symbol" ? t : t + "";
|
|
1222
1210
|
}
|
|
1223
|
-
function
|
|
1211
|
+
function mn(e, t) {
|
|
1224
1212
|
if (typeof e != "object" || !e) return e;
|
|
1225
1213
|
var n;
|
|
1226
1214
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -1230,7 +1218,7 @@ function gn(e, t) {
|
|
|
1230
1218
|
}
|
|
1231
1219
|
return (t === "string" ? String : Number)(e);
|
|
1232
1220
|
}
|
|
1233
|
-
function
|
|
1221
|
+
function hn(e, t, n) {
|
|
1234
1222
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
1235
1223
|
try {
|
|
1236
1224
|
Object.defineProperty(e, "name", {
|
|
@@ -1240,31 +1228,31 @@ function _n(e, t, n) {
|
|
|
1240
1228
|
} catch {}
|
|
1241
1229
|
return e;
|
|
1242
1230
|
}
|
|
1243
|
-
function
|
|
1231
|
+
function gn(e) {
|
|
1244
1232
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1245
1233
|
return e;
|
|
1246
1234
|
}
|
|
1247
|
-
function
|
|
1235
|
+
function _n(e) {
|
|
1248
1236
|
return e;
|
|
1249
1237
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1238
|
+
function vn(e) {
|
|
1239
|
+
return y`
|
|
1252
1240
|
<span class="access-grants-directory-entry">
|
|
1253
|
-
${
|
|
1241
|
+
${yn(e)}
|
|
1254
1242
|
<span>${e.label}</span>
|
|
1255
1243
|
</span>
|
|
1256
1244
|
`;
|
|
1257
1245
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return e.sources.includes("contacts") || e.sources.includes("groups") ?
|
|
1246
|
+
function yn(e) {
|
|
1247
|
+
return e.sources.includes("contacts") || e.sources.includes("groups") ? y`<icon-lucide-book-user style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-book-user>` : e.sources.includes("friends") ? y`<icon-lucide-users style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-users>` : e.sources.includes("catalog") ? y`<icon-lucide-user-round style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-user-round>` : m;
|
|
1260
1248
|
}
|
|
1261
|
-
|
|
1262
|
-
var
|
|
1263
|
-
new (
|
|
1249
|
+
qt = [b("solid-ui-access-control-add-access")];
|
|
1250
|
+
var bn;
|
|
1251
|
+
new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R = /*#__PURE__*/ new WeakMap(), z = /*#__PURE__*/ new WeakMap(), B = /*#__PURE__*/ new WeakMap(), V = /*#__PURE__*/ new WeakMap(), cn = (Jt = h({ attribute: !1 }), Xt = h({ attribute: !1 }), Qt = h({ attribute: !1 }), en = h({ attribute: !1 }), nn = h({ type: Boolean }), an = h({ attribute: !1 }), "principalInputValue"), Wt = class extends g {
|
|
1264
1252
|
constructor(...e) {
|
|
1265
|
-
super(...e), H(this, I, (
|
|
1253
|
+
super(...e), H(this, I, (Gt(this), Yt(this, ""))), H(this, L, Zt(this, "Viewer")), H(this, R, $t(this, [])), H(this, z, tn(this, "")), H(this, B, rn(this, !1)), H(this, V, on(this, null));
|
|
1266
1254
|
}
|
|
1267
|
-
get [
|
|
1255
|
+
get [cn]() {
|
|
1268
1256
|
return W(I, this);
|
|
1269
1257
|
}
|
|
1270
1258
|
set principalInputValue(e) {
|
|
@@ -1321,7 +1309,7 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1321
1309
|
}));
|
|
1322
1310
|
}
|
|
1323
1311
|
onRoleChange(e) {
|
|
1324
|
-
let t = e.detail.option.value, n = typeof t == "string" ?
|
|
1312
|
+
let t = e.detail.option.value, n = typeof t == "string" ? s.find((e) => e === t) : void 0;
|
|
1325
1313
|
n && this.dispatchEvent(new CustomEvent("role-changed", {
|
|
1326
1314
|
detail: { role: n },
|
|
1327
1315
|
bubbles: !0,
|
|
@@ -1340,7 +1328,7 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1340
1328
|
return typeof t?.value == "string" ? t.value : "";
|
|
1341
1329
|
}
|
|
1342
1330
|
render() {
|
|
1343
|
-
return
|
|
1331
|
+
return y`
|
|
1344
1332
|
<section class="access-grants-form" aria-label="Add access">
|
|
1345
1333
|
<p>Add person, group or software agent URL.</p>
|
|
1346
1334
|
<div class="access-grants-form-main">
|
|
@@ -1356,7 +1344,7 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1356
1344
|
@input=${this.onPrincipalInput}
|
|
1357
1345
|
@change=${this.onPrincipalSelect}
|
|
1358
1346
|
></solid-ui-combobox>
|
|
1359
|
-
${this.inputError ?
|
|
1347
|
+
${this.inputError ? y`<p class="access-principal-error" role="alert">${this.inputError}</p>` : m}
|
|
1360
1348
|
${this.renderPendingAccessGrants()}
|
|
1361
1349
|
</div>
|
|
1362
1350
|
<solid-ui-combobox
|
|
@@ -1365,7 +1353,7 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1365
1353
|
.value=${this.addAccessRoleValue}
|
|
1366
1354
|
@change=${this.onRoleChange}
|
|
1367
1355
|
>
|
|
1368
|
-
${
|
|
1356
|
+
${s.filter((e) => e !== "No Access").map((e) => y`
|
|
1369
1357
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
1370
1358
|
`)}
|
|
1371
1359
|
</solid-ui-combobox>
|
|
@@ -1374,12 +1362,12 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1374
1362
|
`;
|
|
1375
1363
|
}
|
|
1376
1364
|
renderPendingAccessGrants() {
|
|
1377
|
-
return this.pendingAccessGrants.length ?
|
|
1365
|
+
return this.pendingAccessGrants.length ? y`
|
|
1378
1366
|
<div class="access-grants-pending">
|
|
1379
|
-
${this.pendingAccessGrants.map((e, t) =>
|
|
1367
|
+
${this.pendingAccessGrants.map((e, t) => y`
|
|
1380
1368
|
<div class="access-grants-pending-item">
|
|
1381
1369
|
<span class="access-grants-pending-item-label">
|
|
1382
|
-
${e.targetKind === "trustedApp" ?
|
|
1370
|
+
${e.targetKind === "trustedApp" ? y`<icon-lucide-globe style="width: 13px; height: 13px; vertical-align: -2px;"></icon-lucide-globe>` : m}
|
|
1383
1371
|
${e.label}
|
|
1384
1372
|
</span>
|
|
1385
1373
|
<solid-ui-button
|
|
@@ -1397,44 +1385,44 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1397
1385
|
</div>
|
|
1398
1386
|
` : m;
|
|
1399
1387
|
}
|
|
1400
|
-
}, {e: [Zt, $t, tn, rn, on,
|
|
1388
|
+
}, {e: [Yt, Zt, $t, tn, rn, on, Gt], c: [bn, Kt]} = fn(Wt, [
|
|
1401
1389
|
[
|
|
1402
|
-
|
|
1390
|
+
Jt,
|
|
1403
1391
|
1,
|
|
1404
1392
|
"principalInputValue"
|
|
1405
1393
|
],
|
|
1406
1394
|
[
|
|
1407
|
-
|
|
1395
|
+
Xt,
|
|
1408
1396
|
1,
|
|
1409
1397
|
"addAccessRoleValue"
|
|
1410
1398
|
],
|
|
1411
1399
|
[
|
|
1412
|
-
|
|
1400
|
+
Qt,
|
|
1413
1401
|
1,
|
|
1414
1402
|
"pendingAccessGrants"
|
|
1415
1403
|
],
|
|
1416
1404
|
[
|
|
1417
|
-
|
|
1405
|
+
en,
|
|
1418
1406
|
1,
|
|
1419
1407
|
"inputError"
|
|
1420
1408
|
],
|
|
1421
1409
|
[
|
|
1422
|
-
|
|
1410
|
+
nn,
|
|
1423
1411
|
1,
|
|
1424
1412
|
"disabled"
|
|
1425
1413
|
],
|
|
1426
1414
|
[
|
|
1427
|
-
|
|
1415
|
+
an,
|
|
1428
1416
|
1,
|
|
1429
1417
|
"asyncOptionsProvider"
|
|
1430
1418
|
]
|
|
1431
|
-
],
|
|
1419
|
+
], qt, 0, void 0, g), Wt), Ut = class extends _n {
|
|
1432
1420
|
constructor() {
|
|
1433
|
-
super(
|
|
1421
|
+
super(bn), dn(this, "styles", Ht), Kt();
|
|
1434
1422
|
}
|
|
1435
|
-
},
|
|
1423
|
+
}, dn(Ut, sn, void 0), Ut)();
|
|
1436
1424
|
// src/components/access-control-modal/helpers.ts
|
|
1437
|
-
function
|
|
1425
|
+
function xn(e) {
|
|
1438
1426
|
try {
|
|
1439
1427
|
let t = new URL(e);
|
|
1440
1428
|
return (t.protocol === "http:" || t.protocol === "https:") && !!t.hostname;
|
|
@@ -1442,21 +1430,21 @@ function Cn(e) {
|
|
|
1442
1430
|
return !1;
|
|
1443
1431
|
}
|
|
1444
1432
|
}
|
|
1445
|
-
function
|
|
1446
|
-
if (!
|
|
1433
|
+
function Sn(e) {
|
|
1434
|
+
if (!xn(e)) return !1;
|
|
1447
1435
|
let t = new URL(e);
|
|
1448
1436
|
return t.pathname === "/" && !t.search && !t.hash && !t.username && !t.password;
|
|
1449
1437
|
}
|
|
1450
|
-
function
|
|
1438
|
+
function Cn(e) {
|
|
1451
1439
|
let t = e.trim();
|
|
1452
|
-
if (t && !
|
|
1440
|
+
if (t && !xn(t)) try {
|
|
1453
1441
|
let e = new URL(`https://${t}`), n = e.protocol === "http:" || e.protocol === "https:", r = e.pathname === "/" && !e.search && !e.hash, i = e.hostname.includes(".") || e.hostname.includes(":");
|
|
1454
1442
|
return n && r && i && !e.username && !e.password ? e.origin : void 0;
|
|
1455
1443
|
} catch {
|
|
1456
1444
|
return;
|
|
1457
1445
|
}
|
|
1458
1446
|
}
|
|
1459
|
-
function
|
|
1447
|
+
function wn(e, t) {
|
|
1460
1448
|
let n = /* @__PURE__ */ new Map();
|
|
1461
1449
|
for (let r of e) {
|
|
1462
1450
|
let e = t(r);
|
|
@@ -1464,32 +1452,32 @@ function En(e, t) {
|
|
|
1464
1452
|
}
|
|
1465
1453
|
return [...n.values()];
|
|
1466
1454
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return
|
|
1455
|
+
function Tn(e) {
|
|
1456
|
+
return wn(e, (e) => e.value);
|
|
1469
1457
|
}
|
|
1470
1458
|
// src/components/access-control-modal/accessTargetResolver.ts
|
|
1471
|
-
async function
|
|
1472
|
-
let t =
|
|
1459
|
+
async function En(e) {
|
|
1460
|
+
let t = Cn(e);
|
|
1473
1461
|
return t ? {
|
|
1474
1462
|
kind: "origin",
|
|
1475
1463
|
subjectValue: t
|
|
1476
|
-
} :
|
|
1464
|
+
} : Sn(e) ? {
|
|
1477
1465
|
kind: "origin",
|
|
1478
1466
|
subjectValue: new URL(e).origin
|
|
1479
|
-
} : await
|
|
1480
|
-
}
|
|
1481
|
-
async function
|
|
1482
|
-
if (!
|
|
1483
|
-
let
|
|
1484
|
-
await
|
|
1485
|
-
let
|
|
1486
|
-
if (!
|
|
1487
|
-
return
|
|
1488
|
-
}
|
|
1489
|
-
async function
|
|
1490
|
-
let n = await
|
|
1467
|
+
} : await c.acl.classifyAccessControlSubject(e);
|
|
1468
|
+
}
|
|
1469
|
+
async function Dn(t, n) {
|
|
1470
|
+
if (!t || t.kind === "origin") return t?.subjectValue;
|
|
1471
|
+
let r = e(t.subjectValue);
|
|
1472
|
+
await c.store.fetcher.load(r.doc());
|
|
1473
|
+
let i = n?.trim() || u(r).trim();
|
|
1474
|
+
if (!i || i === t.subjectValue) throw Error("The access target has no usable display label.");
|
|
1475
|
+
return i;
|
|
1476
|
+
}
|
|
1477
|
+
async function On(e, t) {
|
|
1478
|
+
let n = await En(e);
|
|
1491
1479
|
if (!n) return;
|
|
1492
|
-
let r = await
|
|
1480
|
+
let r = await Dn(n, t);
|
|
1493
1481
|
if (r) return {
|
|
1494
1482
|
subjectType: n.kind,
|
|
1495
1483
|
subjectValue: n.subjectValue,
|
|
@@ -1497,91 +1485,91 @@ async function An(e, t) {
|
|
|
1497
1485
|
targetKind: n.kind === "origin" ? "origin" : void 0
|
|
1498
1486
|
};
|
|
1499
1487
|
}
|
|
1500
|
-
async function
|
|
1501
|
-
let t = await
|
|
1488
|
+
async function kn(e) {
|
|
1489
|
+
let t = await On(e);
|
|
1502
1490
|
return t ? {
|
|
1503
1491
|
label: t.label,
|
|
1504
1492
|
value: e
|
|
1505
1493
|
} : void 0;
|
|
1506
1494
|
}
|
|
1507
|
-
function
|
|
1495
|
+
function An(e, t) {
|
|
1508
1496
|
return {
|
|
1509
1497
|
label: t,
|
|
1510
1498
|
value: e.uri,
|
|
1511
|
-
template:
|
|
1499
|
+
template: vn({
|
|
1512
1500
|
...e,
|
|
1513
1501
|
label: t
|
|
1514
1502
|
})
|
|
1515
1503
|
};
|
|
1516
1504
|
}
|
|
1517
|
-
async function
|
|
1518
|
-
let t =
|
|
1505
|
+
async function jn(e) {
|
|
1506
|
+
let t = Cn(e);
|
|
1519
1507
|
if (t) return [{
|
|
1520
1508
|
label: `Use origin ${t}`,
|
|
1521
1509
|
value: t,
|
|
1522
1510
|
targetKind: "origin",
|
|
1523
|
-
template:
|
|
1511
|
+
template: y`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Use origin ${t}</span></span>`
|
|
1524
1512
|
}];
|
|
1525
|
-
if (!
|
|
1526
|
-
if (
|
|
1513
|
+
if (!xn(e)) return [];
|
|
1514
|
+
if (Sn(e)) return [{
|
|
1527
1515
|
label: `Use origin ${new URL(e).origin}`,
|
|
1528
1516
|
value: new URL(e).origin,
|
|
1529
1517
|
targetKind: "origin",
|
|
1530
|
-
template:
|
|
1518
|
+
template: y`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Use origin ${new URL(e).origin}</span></span>`
|
|
1531
1519
|
}];
|
|
1532
|
-
let n = await
|
|
1533
|
-
return
|
|
1520
|
+
let n = await kn(e);
|
|
1521
|
+
return Tn(n ? [n] : []);
|
|
1534
1522
|
}
|
|
1535
|
-
async function
|
|
1523
|
+
async function Mn(e) {
|
|
1536
1524
|
try {
|
|
1537
|
-
let
|
|
1538
|
-
if (!
|
|
1539
|
-
await
|
|
1540
|
-
let
|
|
1541
|
-
return
|
|
1542
|
-
let
|
|
1543
|
-
if (!
|
|
1544
|
-
let
|
|
1545
|
-
return
|
|
1546
|
-
label: `Trusted app: ${
|
|
1547
|
-
value:
|
|
1525
|
+
let t = c.authn.currentUser();
|
|
1526
|
+
if (!t) return [];
|
|
1527
|
+
await c.profile.loadProfile(t);
|
|
1528
|
+
let n = c.store;
|
|
1529
|
+
return n.each(t, l.acl("trustedApp")).flatMap((t) => {
|
|
1530
|
+
let r = n.any(t, l.acl("origin"));
|
|
1531
|
+
if (!r || !Sn(r.value)) return [];
|
|
1532
|
+
let i = new URL(r.value).origin;
|
|
1533
|
+
return e && !`${i} trusted app`.toLowerCase().includes(e.toLowerCase()) ? [] : [{
|
|
1534
|
+
label: `Trusted app: ${i}`,
|
|
1535
|
+
value: i,
|
|
1548
1536
|
targetKind: "trustedApp",
|
|
1549
|
-
template:
|
|
1537
|
+
template: y`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Trusted app: ${i}</span></span>`
|
|
1550
1538
|
}];
|
|
1551
1539
|
});
|
|
1552
1540
|
} catch {
|
|
1553
1541
|
return [];
|
|
1554
1542
|
}
|
|
1555
1543
|
}
|
|
1556
|
-
function
|
|
1544
|
+
function Nn(e) {
|
|
1557
1545
|
return e.length ? e : [{
|
|
1558
1546
|
label: "Type at least 2 characters to search",
|
|
1559
1547
|
value: "",
|
|
1560
1548
|
selectable: !1
|
|
1561
1549
|
}];
|
|
1562
1550
|
}
|
|
1563
|
-
var
|
|
1564
|
-
let t = e.trim(),
|
|
1565
|
-
if (t.length < 2) return
|
|
1551
|
+
var Pn = x(async (e) => {
|
|
1552
|
+
let t = e.trim(), n = await jn(t), r = await Mn(t);
|
|
1553
|
+
if (t.length < 2) return wn([
|
|
1554
|
+
...n,
|
|
1566
1555
|
...r,
|
|
1567
|
-
...
|
|
1568
|
-
...Fn(r)
|
|
1556
|
+
...Nn(n)
|
|
1569
1557
|
], (e) => {
|
|
1570
1558
|
let t = e;
|
|
1571
1559
|
return typeof t.value == "string" ? `${t.value}:${t.targetKind ?? "default"}` : void 0;
|
|
1572
1560
|
});
|
|
1573
|
-
let
|
|
1561
|
+
let i = [];
|
|
1574
1562
|
try {
|
|
1575
|
-
|
|
1563
|
+
i = await c.directory.search({
|
|
1576
1564
|
query: t,
|
|
1577
|
-
sources:
|
|
1565
|
+
sources: o
|
|
1578
1566
|
});
|
|
1579
1567
|
} catch (e) {
|
|
1580
|
-
if (!
|
|
1568
|
+
if (!n.length && !r.length) throw e;
|
|
1581
1569
|
}
|
|
1582
|
-
let
|
|
1570
|
+
let a = (await Promise.all(i.map(async (e) => {
|
|
1583
1571
|
try {
|
|
1584
|
-
let t = await
|
|
1572
|
+
let t = await On(e.uri, e.label);
|
|
1585
1573
|
return t ? {
|
|
1586
1574
|
entry: e,
|
|
1587
1575
|
label: t.label
|
|
@@ -1589,44 +1577,44 @@ var In = x(async (e) => {
|
|
|
1589
1577
|
} catch {
|
|
1590
1578
|
return;
|
|
1591
1579
|
}
|
|
1592
|
-
}))).filter((e) => e !== void 0).map(({ entry: e, label: t }) =>
|
|
1593
|
-
return
|
|
1580
|
+
}))).filter((e) => e !== void 0).map(({ entry: e, label: t }) => An(e, t));
|
|
1581
|
+
return wn([
|
|
1582
|
+
...n,
|
|
1594
1583
|
...r,
|
|
1595
|
-
...
|
|
1596
|
-
...s
|
|
1584
|
+
...a
|
|
1597
1585
|
], (e) => {
|
|
1598
1586
|
let t = e;
|
|
1599
1587
|
return typeof t.value == "string" ? `${t.value}:${t.targetKind ?? "default"}` : void 0;
|
|
1600
1588
|
});
|
|
1601
1589
|
});
|
|
1602
1590
|
// src/components/access-control-modal/applyAccessChanges.ts
|
|
1603
|
-
async function
|
|
1591
|
+
async function Fn(e, t, n = {}) {
|
|
1604
1592
|
let r = [], i = n.containerScope ?? "file";
|
|
1605
|
-
for (let { subject: n, label:
|
|
1606
|
-
let t = i === "folder+contents" ?
|
|
1607
|
-
await
|
|
1593
|
+
for (let { subject: n, label: a, role: o } of t) try {
|
|
1594
|
+
let t = i === "folder+contents" ? c.acl.planGrantContainerAndContents : i === "container" ? c.acl.planGrantContainer : i === "contents" ? c.acl.planGrantContainerContents : c.acl.planGrant, r = o === "No Access" ? await (i === "contents" ? c.acl.planRevokeContainerContents(e, n) : c.acl.planRevoke(e, n)) : await t(e, n, In(n, o));
|
|
1595
|
+
await c.acl.applyPlan(r);
|
|
1608
1596
|
} catch (e) {
|
|
1609
1597
|
r.push({
|
|
1610
|
-
action:
|
|
1598
|
+
action: o === "No Access" ? "revoke" : "grant",
|
|
1611
1599
|
targetUri: n.iri,
|
|
1612
|
-
label:
|
|
1613
|
-
role:
|
|
1600
|
+
label: a,
|
|
1601
|
+
role: o,
|
|
1614
1602
|
scope: i,
|
|
1615
1603
|
message: e instanceof Error ? e.message : "Unable to apply access change."
|
|
1616
1604
|
});
|
|
1617
1605
|
}
|
|
1618
1606
|
return r;
|
|
1619
1607
|
}
|
|
1620
|
-
function
|
|
1621
|
-
if (e.type === "agentClass" && e.iri ===
|
|
1622
|
-
let e =
|
|
1623
|
-
if (!e) throw Error(`Public access does not support the ${
|
|
1624
|
-
return
|
|
1608
|
+
function In(e, n) {
|
|
1609
|
+
if (e.type === "agentClass" && e.iri === t.iri) {
|
|
1610
|
+
let e = i.find((e) => e === n);
|
|
1611
|
+
if (!e) throw Error(`Public access does not support the ${n} role.`);
|
|
1612
|
+
return c.acl.modesFromPublicRole(e);
|
|
1625
1613
|
}
|
|
1626
|
-
return
|
|
1614
|
+
return c.acl.modesFromRole(n);
|
|
1627
1615
|
}
|
|
1628
1616
|
// src/components/access-control-modal/buildAccessChanges.ts
|
|
1629
|
-
function
|
|
1617
|
+
function Ln({ pendingAccessGrants: e, generalAccessChanges: t, changedAccessGrants: n }) {
|
|
1630
1618
|
return [
|
|
1631
1619
|
...e.map((e) => ({
|
|
1632
1620
|
subject: {
|
|
@@ -1640,37 +1628,37 @@ function zn({ pendingAccessGrants: e, generalAccessChanges: t, changedAccessGran
|
|
|
1640
1628
|
...n.flatMap(({ subjects: e, role: t }) => e.map((e) => ({
|
|
1641
1629
|
subject: e,
|
|
1642
1630
|
role: t,
|
|
1643
|
-
label:
|
|
1631
|
+
label: Rt(e)
|
|
1644
1632
|
})))
|
|
1645
1633
|
];
|
|
1646
1634
|
}
|
|
1647
1635
|
// src/components/access-control-modal/AccessControlModal.ts
|
|
1648
|
-
var
|
|
1636
|
+
var Rn, zn, G, K, q, J, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Y, Xn, Zn, Qn, $n, er, tr, nr, rr, ir, ar, or, sr, cr, lr, ur, dr, fr, pr, mr, hr, gr, _r, vr, yr, br, xr, Sr, Cr, wr, Tr, Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr, zr;
|
|
1649
1637
|
function X(e, t, n) {
|
|
1650
|
-
|
|
1638
|
+
Br(e, t), t.set(e, n);
|
|
1651
1639
|
}
|
|
1652
|
-
function
|
|
1640
|
+
function Br(e, t) {
|
|
1653
1641
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
1654
1642
|
}
|
|
1655
1643
|
function Z(e, t, n) {
|
|
1656
|
-
return e.set(
|
|
1644
|
+
return e.set(Vr(e, t), n), n;
|
|
1657
1645
|
}
|
|
1658
1646
|
function Q(e, t) {
|
|
1659
|
-
return e.get(
|
|
1647
|
+
return e.get(Vr(e, t));
|
|
1660
1648
|
}
|
|
1661
|
-
function
|
|
1649
|
+
function Vr(e, t, n) {
|
|
1662
1650
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1663
1651
|
throw TypeError("Private element is not present on this object");
|
|
1664
1652
|
}
|
|
1665
1653
|
function $(e, t, n) {
|
|
1666
|
-
return (t =
|
|
1654
|
+
return (t = Ur(t)) in e ? Object.defineProperty(e, t, {
|
|
1667
1655
|
value: n,
|
|
1668
1656
|
enumerable: !0,
|
|
1669
1657
|
configurable: !0,
|
|
1670
1658
|
writable: !0
|
|
1671
1659
|
}) : e[t] = n, e;
|
|
1672
1660
|
}
|
|
1673
|
-
function
|
|
1661
|
+
function Hr(e, t, n, r, i, a) {
|
|
1674
1662
|
function o(e, t, n) {
|
|
1675
1663
|
return function(r, i) {
|
|
1676
1664
|
return n && n(r), e[t].call(r, i);
|
|
@@ -1693,13 +1681,13 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1693
1681
|
n || Array.isArray(_) || (_ = [_]);
|
|
1694
1682
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
1695
1683
|
d ? (f || p ? b = {
|
|
1696
|
-
get:
|
|
1684
|
+
get: Gr(function() {
|
|
1697
1685
|
return v(this);
|
|
1698
1686
|
}, r, "get"),
|
|
1699
1687
|
set: function(e) {
|
|
1700
1688
|
t[4](this, e);
|
|
1701
1689
|
}
|
|
1702
|
-
} : b[S] = v, f ||
|
|
1690
|
+
} : b[S] = v, f || Gr(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
1703
1691
|
}
|
|
1704
1692
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
1705
1693
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -1759,7 +1747,7 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1759
1747
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
1760
1748
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
1761
1749
|
var i, a, o = [], c = function(t) {
|
|
1762
|
-
return
|
|
1750
|
+
return Kr(t) === e;
|
|
1763
1751
|
}, u = /* @__PURE__ */ new Map();
|
|
1764
1752
|
function d(e) {
|
|
1765
1753
|
e && o.push(s.bind(null, e));
|
|
@@ -1773,7 +1761,7 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1773
1761
|
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);
|
|
1774
1762
|
u.set(b, !(m > 2) || m);
|
|
1775
1763
|
}
|
|
1776
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
1764
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Ur(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
1777
1765
|
}
|
|
1778
1766
|
}
|
|
1779
1767
|
return d(i), d(a), o;
|
|
@@ -1786,11 +1774,11 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1786
1774
|
}
|
|
1787
1775
|
};
|
|
1788
1776
|
}
|
|
1789
|
-
function
|
|
1790
|
-
var t =
|
|
1777
|
+
function Ur(e) {
|
|
1778
|
+
var t = Wr(e, "string");
|
|
1791
1779
|
return typeof t == "symbol" ? t : t + "";
|
|
1792
1780
|
}
|
|
1793
|
-
function
|
|
1781
|
+
function Wr(e, t) {
|
|
1794
1782
|
if (typeof e != "object" || !e) return e;
|
|
1795
1783
|
var n;
|
|
1796
1784
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -1800,7 +1788,7 @@ function Kr(e, t) {
|
|
|
1800
1788
|
}
|
|
1801
1789
|
return (t === "string" ? String : Number)(e);
|
|
1802
1790
|
}
|
|
1803
|
-
function
|
|
1791
|
+
function Gr(e, t, n) {
|
|
1804
1792
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
1805
1793
|
try {
|
|
1806
1794
|
Object.defineProperty(e, "name", {
|
|
@@ -1810,23 +1798,23 @@ function qr(e, t, n) {
|
|
|
1810
1798
|
} catch {}
|
|
1811
1799
|
return e;
|
|
1812
1800
|
}
|
|
1813
|
-
function
|
|
1801
|
+
function Kr(e) {
|
|
1814
1802
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1815
1803
|
return e;
|
|
1816
1804
|
}
|
|
1817
|
-
function
|
|
1805
|
+
function qr(e) {
|
|
1818
1806
|
return e;
|
|
1819
1807
|
}
|
|
1820
|
-
function
|
|
1808
|
+
function Jr(e) {
|
|
1821
1809
|
return e != null;
|
|
1822
1810
|
}
|
|
1823
|
-
|
|
1824
|
-
var
|
|
1825
|
-
new (
|
|
1811
|
+
tr = [b("solid-ui-access-control-modal")];
|
|
1812
|
+
var Yr;
|
|
1813
|
+
new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Bn = /*#__PURE__*/ new WeakMap(), Vn = /*#__PURE__*/ new WeakMap(), Hn = /*#__PURE__*/ new WeakMap(), Un = /*#__PURE__*/ new WeakMap(), Wn = /*#__PURE__*/ new WeakMap(), Gn = /*#__PURE__*/ new WeakMap(), Kn = /*#__PURE__*/ new WeakMap(), qn = /*#__PURE__*/ new WeakMap(), Jn = /*#__PURE__*/ new WeakMap(), Yn = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), Xn = /*#__PURE__*/ new WeakMap(), Zn = /*#__PURE__*/ new WeakMap(), Qn = /*#__PURE__*/ new WeakMap(), zr = (nr = h({ attribute: !1 }), ir = h({ attribute: !1 }), or = v(), cr = v(), ur = v(), fr = v(), mr = v(), gr = v(), vr = v(), br = v(), Sr = v(), wr = v(), Er = v(), Or = v(), Ar = v(), Mr = v(), Pr = v(), Ir = v(), "subjectUri"), zn = class extends p {
|
|
1826
1814
|
constructor(...e) {
|
|
1827
|
-
super(...e), X(this, G, (
|
|
1815
|
+
super(...e), X(this, G, ($n(this), rr(this, void 0))), X(this, K, ar(this, void 0)), X(this, q, sr(this, "")), X(this, J, lr(this, "Viewer")), X(this, Bn, dr(this, "No Access")), X(this, Vn, pr(this, "No Access")), X(this, Hn, hr(this, !1)), X(this, Un, _r(this, [])), X(this, Wn, yr(this, [])), X(this, Gn, xr(this, [])), X(this, Kn, Cr(this, !0)), X(this, qn, Tr(this)), X(this, Jn, Dr(this, !1)), X(this, Yn, kr(this, "")), X(this, Y, jr(this, !1)), X(this, Xn, Nr(this, "folder+contents")), X(this, Zn, Fr(this)), X(this, Qn, Lr(this, !1)), $(this, "accessGrantLabelRequestVersion", 0), $(this, "accessContextRequestVersion", 0), $(this, "accessContextSubjectUri", void 0);
|
|
1828
1816
|
}
|
|
1829
|
-
get [
|
|
1817
|
+
get [zr]() {
|
|
1830
1818
|
return Q(G, this);
|
|
1831
1819
|
}
|
|
1832
1820
|
set subjectUri(e) {
|
|
@@ -1851,64 +1839,64 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1851
1839
|
Z(J, this, e);
|
|
1852
1840
|
}
|
|
1853
1841
|
get authenticatedAccessRoleValue() {
|
|
1854
|
-
return Q(
|
|
1842
|
+
return Q(Bn, this);
|
|
1855
1843
|
}
|
|
1856
1844
|
set authenticatedAccessRoleValue(e) {
|
|
1857
|
-
Z(
|
|
1845
|
+
Z(Bn, this, e);
|
|
1858
1846
|
}
|
|
1859
1847
|
get publicAccessRoleValue() {
|
|
1860
|
-
return Q(
|
|
1848
|
+
return Q(Vn, this);
|
|
1861
1849
|
}
|
|
1862
1850
|
set publicAccessRoleValue(e) {
|
|
1863
|
-
Z(
|
|
1851
|
+
Z(Vn, this, e);
|
|
1864
1852
|
}
|
|
1865
1853
|
get submitting() {
|
|
1866
|
-
return Q(
|
|
1854
|
+
return Q(Hn, this);
|
|
1867
1855
|
}
|
|
1868
1856
|
set submitting(e) {
|
|
1869
|
-
Z(
|
|
1857
|
+
Z(Hn, this, e);
|
|
1870
1858
|
}
|
|
1871
1859
|
get pendingAccessGrants() {
|
|
1872
|
-
return Q(
|
|
1860
|
+
return Q(Un, this);
|
|
1873
1861
|
}
|
|
1874
1862
|
set pendingAccessGrants(e) {
|
|
1875
|
-
Z(
|
|
1863
|
+
Z(Un, this, e);
|
|
1876
1864
|
}
|
|
1877
1865
|
get accessGrantDrafts() {
|
|
1878
|
-
return Q(
|
|
1866
|
+
return Q(Wn, this);
|
|
1879
1867
|
}
|
|
1880
1868
|
set accessGrantDrafts(e) {
|
|
1881
|
-
Z(
|
|
1869
|
+
Z(Wn, this, e);
|
|
1882
1870
|
}
|
|
1883
1871
|
get errors() {
|
|
1884
|
-
return Q(
|
|
1872
|
+
return Q(Gn, this);
|
|
1885
1873
|
}
|
|
1886
1874
|
set errors(e) {
|
|
1887
|
-
Z(
|
|
1875
|
+
Z(Gn, this, e);
|
|
1888
1876
|
}
|
|
1889
1877
|
get successfulChangesRefreshed() {
|
|
1890
|
-
return Q(
|
|
1878
|
+
return Q(Kn, this);
|
|
1891
1879
|
}
|
|
1892
1880
|
set successfulChangesRefreshed(e) {
|
|
1893
|
-
Z(
|
|
1881
|
+
Z(Kn, this, e);
|
|
1894
1882
|
}
|
|
1895
1883
|
get accessContext() {
|
|
1896
|
-
return Q(
|
|
1884
|
+
return Q(qn, this);
|
|
1897
1885
|
}
|
|
1898
1886
|
set accessContext(e) {
|
|
1899
|
-
Z(
|
|
1887
|
+
Z(qn, this, e);
|
|
1900
1888
|
}
|
|
1901
1889
|
get accessContextLoading() {
|
|
1902
|
-
return Q(
|
|
1890
|
+
return Q(Jn, this);
|
|
1903
1891
|
}
|
|
1904
1892
|
set accessContextLoading(e) {
|
|
1905
|
-
Z(
|
|
1893
|
+
Z(Jn, this, e);
|
|
1906
1894
|
}
|
|
1907
1895
|
get accessContextError() {
|
|
1908
|
-
return Q(
|
|
1896
|
+
return Q(Yn, this);
|
|
1909
1897
|
}
|
|
1910
1898
|
set accessContextError(e) {
|
|
1911
|
-
Z(
|
|
1899
|
+
Z(Yn, this, e);
|
|
1912
1900
|
}
|
|
1913
1901
|
get advancedSharingOpen() {
|
|
1914
1902
|
return Q(Y, this);
|
|
@@ -1917,22 +1905,22 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1917
1905
|
Z(Y, this, e);
|
|
1918
1906
|
}
|
|
1919
1907
|
get containerScope() {
|
|
1920
|
-
return Q(
|
|
1908
|
+
return Q(Xn, this);
|
|
1921
1909
|
}
|
|
1922
1910
|
set containerScope(e) {
|
|
1923
|
-
Z(
|
|
1911
|
+
Z(Xn, this, e);
|
|
1924
1912
|
}
|
|
1925
1913
|
get containerScopeAnalysis() {
|
|
1926
|
-
return Q(
|
|
1914
|
+
return Q(Zn, this);
|
|
1927
1915
|
}
|
|
1928
1916
|
set containerScopeAnalysis(e) {
|
|
1929
|
-
Z(
|
|
1917
|
+
Z(Zn, this, e);
|
|
1930
1918
|
}
|
|
1931
1919
|
get protectedTarget() {
|
|
1932
|
-
return Q(
|
|
1920
|
+
return Q(Qn, this);
|
|
1933
1921
|
}
|
|
1934
1922
|
set protectedTarget(e) {
|
|
1935
|
-
Z(
|
|
1923
|
+
Z(Qn, this, e);
|
|
1936
1924
|
}
|
|
1937
1925
|
disconnectedCallback() {
|
|
1938
1926
|
this.accessGrantLabelRequestVersion++, this.accessContextRequestVersion++, this.errors = [], super.disconnectedCallback();
|
|
@@ -1952,7 +1940,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1952
1940
|
willUpdate(e) {
|
|
1953
1941
|
if (super.willUpdate(e), e.has("accessGrants")) {
|
|
1954
1942
|
let e = this.getScopedAccessGrants();
|
|
1955
|
-
this.accessGrantDrafts =
|
|
1943
|
+
this.accessGrantDrafts = Nt(e), this.authenticatedAccessRoleValue = It(e), this.publicAccessRoleValue = Lt(e);
|
|
1956
1944
|
}
|
|
1957
1945
|
}
|
|
1958
1946
|
updated(e) {
|
|
@@ -1963,21 +1951,21 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1963
1951
|
}), e.has("accessContext") && !e.has("subjectUri") && this.refreshContainerScopeAnalysis();
|
|
1964
1952
|
}
|
|
1965
1953
|
refreshContainerScopeAnalysis() {
|
|
1966
|
-
this.isContainer() && this.accessContext ? (this.containerScopeAnalysis =
|
|
1954
|
+
this.isContainer() && this.accessContext ? (this.containerScopeAnalysis = a(this.accessContext), this.containerScope = this.containerScopeAnalysis.primaryScope, this.refreshScopedAccessGrantDrafts()) : this.containerScopeAnalysis = void 0;
|
|
1967
1955
|
}
|
|
1968
1956
|
async refreshAccessGrantLabels() {
|
|
1969
|
-
let
|
|
1970
|
-
if (!
|
|
1957
|
+
let t = ++this.accessGrantLabelRequestVersion, n = this.accessGrants, r = this.subjectUri, i = this.getSelectedContainerScope(), a = this.getScopedAccessGrants(i);
|
|
1958
|
+
if (!a.length) {
|
|
1971
1959
|
this.accessGrantDrafts = [];
|
|
1972
1960
|
return;
|
|
1973
1961
|
}
|
|
1974
|
-
let
|
|
1962
|
+
let o = await Promise.all(a.map(async (t) => (await Promise.all(t.agentGroup.map(async (t) => {
|
|
1975
1963
|
try {
|
|
1976
|
-
await
|
|
1964
|
+
await c.store.fetcher.load(e(t).doc());
|
|
1977
1965
|
} catch {}
|
|
1978
|
-
})),
|
|
1979
|
-
if (
|
|
1980
|
-
let e = new Map(
|
|
1966
|
+
})), At(Et(t)))));
|
|
1967
|
+
if (t === this.accessGrantLabelRequestVersion && this.accessGrants === n && this.subjectUri === r && this.getSelectedContainerScope() === i) {
|
|
1968
|
+
let e = new Map(kt(a).map((e, t) => [e, o[t]]));
|
|
1981
1969
|
this.accessGrantDrafts = this.accessGrantDrafts.map((t) => ({
|
|
1982
1970
|
...t,
|
|
1983
1971
|
subjectLabel: e.get(t.id) ?? t.subjectLabel
|
|
@@ -1985,8 +1973,8 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1985
1973
|
}
|
|
1986
1974
|
}
|
|
1987
1975
|
getDialogTitle() {
|
|
1988
|
-
let
|
|
1989
|
-
return !
|
|
1976
|
+
let t = this.subjectUri ? e(this.subjectUri) : void 0, n = t ? u(t).trim() : "";
|
|
1977
|
+
return !n || n === "this resource" ? "Manage Access of \"this resource\"" : `Manage Access of "${n}"`;
|
|
1990
1978
|
}
|
|
1991
1979
|
isContainer() {
|
|
1992
1980
|
return !!(this.subjectUri && new URL(this.subjectUri).pathname.endsWith("/"));
|
|
@@ -1995,9 +1983,9 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1995
1983
|
let e = ++this.accessContextRequestVersion, t = this.subjectUri;
|
|
1996
1984
|
if (this.accessContext = void 0, this.accessContextSubjectUri = void 0, this.accessContextError = "", this.accessContextLoading = !!t, !t) this.accessContextLoading = !1;
|
|
1997
1985
|
else try {
|
|
1998
|
-
let n = await
|
|
1986
|
+
let n = await c.acl.findEffectiveAcl(t);
|
|
1999
1987
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
2000
|
-
this.accessContext = n, this.accessContextSubjectUri = t, this.accessContext?.inherited && !this.accessGrants?.length && (this.accessGrants = this.accessContext.authorizations), this.refreshContainerScopeAnalysis(), this.protectedTarget =
|
|
1988
|
+
this.accessContext = n, this.accessContextSubjectUri = t, this.accessContext?.inherited && !this.accessGrants?.length && (this.accessGrants = this.accessContext.authorizations), this.refreshContainerScopeAnalysis(), this.protectedTarget = c.acl.isProtectedResource(t), this.protectedTarget && this.refreshScopedAccessGrantDrafts();
|
|
2001
1989
|
} catch (n) {
|
|
2002
1990
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
2003
1991
|
this.accessContextError = n instanceof Error && n.message.trim() ? n.message : "Unable to load access settings for this resource.", d("Failed to load access control context", n);
|
|
@@ -2015,14 +2003,14 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2015
2003
|
await this.loadAccessContext();
|
|
2016
2004
|
}
|
|
2017
2005
|
renderSharingInformation() {
|
|
2018
|
-
if (!this.accessContext) return
|
|
2019
|
-
let
|
|
2020
|
-
return
|
|
2006
|
+
if (!this.accessContext) return y``;
|
|
2007
|
+
let t = !this.accessContext.inherited, n = this.accessContext?.effectiveContainer, r = n ? u(e(n)).trim() : "", i = r && r !== n ? y`<strong>${r}</strong> (${n})` : y`<strong>${n ?? "the parent container"}</strong>`;
|
|
2008
|
+
return y`
|
|
2021
2009
|
<div class="access-control-sharing-state-panel">
|
|
2022
|
-
${
|
|
2010
|
+
${t ? y`
|
|
2023
2011
|
<div class="access-control-sharing-state-custom-row">
|
|
2024
2012
|
<p>This resource has its own sharing settings.</p>
|
|
2025
|
-
${this.protectedTarget ?
|
|
2013
|
+
${this.protectedTarget ? y`` : y`
|
|
2026
2014
|
<solid-ui-button
|
|
2027
2015
|
type="button"
|
|
2028
2016
|
variant="tertiary"
|
|
@@ -2033,13 +2021,13 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2033
2021
|
</solid-ui-button>
|
|
2034
2022
|
`}
|
|
2035
2023
|
</div>
|
|
2036
|
-
` :
|
|
2037
|
-
${this.protectedTarget ?
|
|
2024
|
+
` : n ? y`<p>This resource inherits sharing settings from ${i}.</p>` : y`<p>This resource inherits sharing settings, but no inherited default is available.</p>`}
|
|
2025
|
+
${this.protectedTarget ? y`<p class="access-control-sharing-state-protected-message">This is a protected storage resource. Its primary access-control settings cannot be reset here.</p>` : y``}
|
|
2038
2026
|
</div>
|
|
2039
2027
|
`;
|
|
2040
2028
|
}
|
|
2041
2029
|
renderSharingState() {
|
|
2042
|
-
return !this.accessContext || !this.advancedSharingOpen ?
|
|
2030
|
+
return !this.accessContext || !this.advancedSharingOpen ? y`` : y`
|
|
2043
2031
|
<section
|
|
2044
2032
|
class="access-control-sharing-state"
|
|
2045
2033
|
aria-labelledby="access-control-advanced-sharing-heading"
|
|
@@ -2056,7 +2044,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2056
2044
|
return this.isContainer() && this.containerScopeAnalysis?.mixed === !0;
|
|
2057
2045
|
}
|
|
2058
2046
|
renderAccessContextState() {
|
|
2059
|
-
return this.accessContextLoading ?
|
|
2047
|
+
return this.accessContextLoading ? y`<p role="status">Loading access settings...</p>` : this.accessContextError ? y`
|
|
2060
2048
|
<solid-ui-error-state
|
|
2061
2049
|
title="Could not load access settings"
|
|
2062
2050
|
message=${this.accessContextError}
|
|
@@ -2065,29 +2053,29 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2065
2053
|
Retry
|
|
2066
2054
|
</solid-ui-button>
|
|
2067
2055
|
</solid-ui-error-state>
|
|
2068
|
-
` : this.accessContext ?
|
|
2056
|
+
` : this.accessContext ? y`` : y`<p role="status">Access settings are not ready yet.</p>`;
|
|
2069
2057
|
}
|
|
2070
2058
|
renderMixedContainerWarning() {
|
|
2071
|
-
return this.hasMixedContainerPolicy() ?
|
|
2059
|
+
return this.hasMixedContainerPolicy() ? y`
|
|
2072
2060
|
<div class="access-control-mixed-policy-warning" role="alert">
|
|
2073
2061
|
<strong>This container has different access settings for the folder and its contents.</strong>
|
|
2074
|
-
<span>Changing this mixed policy is an advanced feature
|
|
2062
|
+
<span>Changing this mixed policy is an advanced feature. You can still change access for the folder or its contents separately below.</span>
|
|
2075
2063
|
</div>
|
|
2076
|
-
` :
|
|
2064
|
+
` : y``;
|
|
2077
2065
|
}
|
|
2078
2066
|
getScopedAccessGrants(e = this.getSelectedContainerScope()) {
|
|
2079
2067
|
let t = this.accessGrants ?? [];
|
|
2080
|
-
return !this.isContainer() || !this.subjectUri || this.protectedTarget ? t :
|
|
2068
|
+
return !this.isContainer() || !this.subjectUri || this.protectedTarget ? t : n(this.subjectUri, t, e, this.accessContext?.inherited ?? !1);
|
|
2081
2069
|
}
|
|
2082
2070
|
refreshScopedAccessGrantDrafts() {
|
|
2083
2071
|
let e = this.getScopedAccessGrants();
|
|
2084
|
-
this.accessGrantDrafts =
|
|
2072
|
+
this.accessGrantDrafts = Nt(e), this.authenticatedAccessRoleValue = It(e), this.publicAccessRoleValue = Lt(e);
|
|
2085
2073
|
}
|
|
2086
2074
|
selectContainerScope(e) {
|
|
2087
2075
|
this.containerScope = e, this.refreshScopedAccessGrantDrafts();
|
|
2088
2076
|
}
|
|
2089
2077
|
renderAdvancedSharing() {
|
|
2090
|
-
return this.advancedSharingOpen ?
|
|
2078
|
+
return this.advancedSharingOpen ? y`
|
|
2091
2079
|
<section
|
|
2092
2080
|
id="access-control-advanced-sharing"
|
|
2093
2081
|
class="access-control-advanced-sharing"
|
|
@@ -2101,7 +2089,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2101
2089
|
<span class="access-control-advanced-sharing-description-line">Choose which access settings to edit.</span>
|
|
2102
2090
|
<span class="access-control-advanced-sharing-description-line">Save Changes applies your current edits only to that scope.</span>
|
|
2103
2091
|
</p>
|
|
2104
|
-
${this.isContainer() ?
|
|
2092
|
+
${this.isContainer() ? y`
|
|
2105
2093
|
<button
|
|
2106
2094
|
type="button"
|
|
2107
2095
|
class="access-control-same-access-toggle"
|
|
@@ -2139,7 +2127,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2139
2127
|
Contents Only
|
|
2140
2128
|
</solid-ui-button>
|
|
2141
2129
|
</div>
|
|
2142
|
-
` :
|
|
2130
|
+
` : y``}
|
|
2143
2131
|
<div class="access-control-advanced-sharing-actions">
|
|
2144
2132
|
<solid-ui-button
|
|
2145
2133
|
type="button"
|
|
@@ -2153,11 +2141,11 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2153
2141
|
</solid-ui-button>
|
|
2154
2142
|
</div>
|
|
2155
2143
|
</section>
|
|
2156
|
-
` :
|
|
2144
|
+
` : y``;
|
|
2157
2145
|
}
|
|
2158
2146
|
render() {
|
|
2159
2147
|
let e = this.getDialogTitle();
|
|
2160
|
-
return
|
|
2148
|
+
return y`
|
|
2161
2149
|
<solid-ui-dialog title=${e}>
|
|
2162
2150
|
<form @submit=${this.onSubmit}>
|
|
2163
2151
|
<solid-ui-dialog-content>
|
|
@@ -2169,7 +2157,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2169
2157
|
.addAccessRoleValue=${this.addAccessRoleValue}
|
|
2170
2158
|
.pendingAccessGrants=${this.pendingAccessGrants}
|
|
2171
2159
|
.inputError=${this.inputError}
|
|
2172
|
-
.asyncOptionsProvider=${
|
|
2160
|
+
.asyncOptionsProvider=${Pn}
|
|
2173
2161
|
@target-input=${this.onPrincipalInput}
|
|
2174
2162
|
@target-selected=${this.onPrincipalSelect}
|
|
2175
2163
|
@role-changed=${this.onAddAccessRoleInput}
|
|
@@ -2177,7 +2165,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2177
2165
|
></solid-ui-access-control-add-access>
|
|
2178
2166
|
<solid-ui-access-control-shared-access
|
|
2179
2167
|
.disabled=${!this.canMutate() || this.hasMixedContainerPolicy()}
|
|
2180
|
-
.accessGrantViewModels=${
|
|
2168
|
+
.accessGrantViewModels=${Pt(this.accessGrantDrafts)}
|
|
2181
2169
|
@access-grant-role-changed=${this.onAccessGrantRoleInput}
|
|
2182
2170
|
></solid-ui-access-control-shared-access>
|
|
2183
2171
|
<solid-ui-access-control-general-access
|
|
@@ -2236,8 +2224,8 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2236
2224
|
if (this.subjectUri && this.canMutate() && this.accessContext && !this.accessContext.inherited && !this.submitting && !this.hasMixedContainerPolicy()) {
|
|
2237
2225
|
this.submitting = !0, this.errors = this.errors.filter((e) => e.action === "input");
|
|
2238
2226
|
try {
|
|
2239
|
-
await
|
|
2240
|
-
let e = await
|
|
2227
|
+
await c.acl.resetToDefault(this.subjectUri), await this.loadAccessContext();
|
|
2228
|
+
let e = await c.acl.findAccessGrants(this.subjectUri);
|
|
2241
2229
|
this.accessGrants = this.accessContext?.inherited ? this.accessContext.authorizations : e;
|
|
2242
2230
|
} catch (e) {
|
|
2243
2231
|
this.errors = [...this.errors, {
|
|
@@ -2253,19 +2241,19 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2253
2241
|
}
|
|
2254
2242
|
async saveAccessChanges(e = "file") {
|
|
2255
2243
|
if (this.submitting || !this.canMutate() || this.hasMixedContainerPolicy()) return;
|
|
2256
|
-
let t =
|
|
2244
|
+
let t = Ft(this.accessGrantDrafts), n = this.getGeneralAccessChanges();
|
|
2257
2245
|
if ((this.pendingAccessGrants.length || t.length || n.length) && this.subjectUri) {
|
|
2258
2246
|
this.submitting = !0, this.errors = this.errors.filter((e) => e.action === "input"), this.successfulChangesRefreshed = !0;
|
|
2259
2247
|
try {
|
|
2260
|
-
let r =
|
|
2248
|
+
let r = Ln({
|
|
2261
2249
|
pendingAccessGrants: this.pendingAccessGrants,
|
|
2262
2250
|
generalAccessChanges: n,
|
|
2263
2251
|
changedAccessGrants: t
|
|
2264
|
-
}), i = await
|
|
2252
|
+
}), i = await Fn(this.subjectUri, r, { containerScope: e });
|
|
2265
2253
|
if (i.length) {
|
|
2266
2254
|
this.errors = [...this.errors, ...i], this.principalInputValue = "", this.pendingAccessGrants = [];
|
|
2267
2255
|
try {
|
|
2268
|
-
this.accessGrants = await
|
|
2256
|
+
this.accessGrants = await c.acl.findAccessGrants(this.subjectUri);
|
|
2269
2257
|
} catch (e) {
|
|
2270
2258
|
this.successfulChangesRefreshed = !1, this.errors = [...this.errors, {
|
|
2271
2259
|
action: "save",
|
|
@@ -2298,16 +2286,16 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2298
2286
|
}
|
|
2299
2287
|
getGeneralAccessChanges() {
|
|
2300
2288
|
if (!this.subjectUri) return [];
|
|
2301
|
-
let e = this.getScopedAccessGrants(),
|
|
2302
|
-
return [this.authenticatedAccessRoleValue ===
|
|
2303
|
-
subject:
|
|
2289
|
+
let e = this.getScopedAccessGrants(), n = It(e), i = Lt(e);
|
|
2290
|
+
return [this.authenticatedAccessRoleValue === n ? void 0 : {
|
|
2291
|
+
subject: r,
|
|
2304
2292
|
role: this.authenticatedAccessRoleValue,
|
|
2305
2293
|
label: "Authenticated users"
|
|
2306
|
-
}, this.publicAccessRoleValue ===
|
|
2307
|
-
subject:
|
|
2294
|
+
}, this.publicAccessRoleValue === i ? void 0 : {
|
|
2295
|
+
subject: t,
|
|
2308
2296
|
role: this.publicAccessRoleValue,
|
|
2309
2297
|
label: "Public"
|
|
2310
|
-
}].filter(
|
|
2298
|
+
}].filter(Jr);
|
|
2311
2299
|
}
|
|
2312
2300
|
onAddAccessRoleInput(e) {
|
|
2313
2301
|
this.canMutate() && !this.hasMixedContainerPolicy() && (this.addAccessRoleValue = e.detail.role, this.pendingAccessGrants = this.pendingAccessGrants.map((t) => ({
|
|
@@ -2331,7 +2319,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2331
2319
|
this.canMutate() && !this.hasMixedContainerPolicy() && (this.pendingAccessGrants = this.pendingAccessGrants.filter((t, n) => n !== e.detail.index));
|
|
2332
2320
|
}
|
|
2333
2321
|
hasUnsavedChanges() {
|
|
2334
|
-
return !!(this.pendingAccessGrants.length || this.principalInputValue.trim() ||
|
|
2322
|
+
return !!(this.pendingAccessGrants.length || this.principalInputValue.trim() || Ft(this.accessGrantDrafts).length || this.getGeneralAccessChanges().length);
|
|
2335
2323
|
}
|
|
2336
2324
|
async commitPrincipalFromInput() {
|
|
2337
2325
|
if (!this.canMutate() || this.hasMixedContainerPolicy()) return !1;
|
|
@@ -2359,7 +2347,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2359
2347
|
}
|
|
2360
2348
|
async createPendingAccessGrant(e, t = this.addAccessRoleValue, n, r) {
|
|
2361
2349
|
try {
|
|
2362
|
-
let i = e.trim(), a = await
|
|
2350
|
+
let i = e.trim(), a = await On(i, n);
|
|
2363
2351
|
return a ? { grant: {
|
|
2364
2352
|
subjectType: a.subjectType,
|
|
2365
2353
|
subjectValue: a.subjectValue,
|
|
@@ -2386,104 +2374,104 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2386
2374
|
for (let n of e) t.set(`${n.subjectType}:${n.subjectValue}`, n);
|
|
2387
2375
|
return [...t.values()];
|
|
2388
2376
|
}
|
|
2389
|
-
}, {e: [ar, sr, lr, dr, pr, hr, _r, yr, xr, Cr, Tr, Dr, kr, jr, Nr, Fr, Lr,
|
|
2377
|
+
}, {e: [rr, ar, sr, lr, dr, pr, hr, _r, yr, xr, Cr, Tr, Dr, kr, jr, Nr, Fr, Lr, $n], c: [Yr, er]} = Hr(zn, [
|
|
2390
2378
|
[
|
|
2391
|
-
|
|
2379
|
+
nr,
|
|
2392
2380
|
1,
|
|
2393
2381
|
"subjectUri"
|
|
2394
2382
|
],
|
|
2395
2383
|
[
|
|
2396
|
-
|
|
2384
|
+
ir,
|
|
2397
2385
|
1,
|
|
2398
2386
|
"accessGrants"
|
|
2399
2387
|
],
|
|
2400
2388
|
[
|
|
2401
|
-
|
|
2389
|
+
or,
|
|
2402
2390
|
1,
|
|
2403
2391
|
"principalInputValue"
|
|
2404
2392
|
],
|
|
2405
2393
|
[
|
|
2406
|
-
|
|
2394
|
+
cr,
|
|
2407
2395
|
1,
|
|
2408
2396
|
"addAccessRoleValue"
|
|
2409
2397
|
],
|
|
2410
2398
|
[
|
|
2411
|
-
|
|
2399
|
+
ur,
|
|
2412
2400
|
1,
|
|
2413
2401
|
"authenticatedAccessRoleValue"
|
|
2414
2402
|
],
|
|
2415
2403
|
[
|
|
2416
|
-
|
|
2404
|
+
fr,
|
|
2417
2405
|
1,
|
|
2418
2406
|
"publicAccessRoleValue"
|
|
2419
2407
|
],
|
|
2420
2408
|
[
|
|
2421
|
-
|
|
2409
|
+
mr,
|
|
2422
2410
|
1,
|
|
2423
2411
|
"submitting"
|
|
2424
2412
|
],
|
|
2425
2413
|
[
|
|
2426
|
-
|
|
2414
|
+
gr,
|
|
2427
2415
|
1,
|
|
2428
2416
|
"pendingAccessGrants"
|
|
2429
2417
|
],
|
|
2430
2418
|
[
|
|
2431
|
-
|
|
2419
|
+
vr,
|
|
2432
2420
|
1,
|
|
2433
2421
|
"accessGrantDrafts"
|
|
2434
2422
|
],
|
|
2435
2423
|
[
|
|
2436
|
-
|
|
2424
|
+
br,
|
|
2437
2425
|
1,
|
|
2438
2426
|
"errors"
|
|
2439
2427
|
],
|
|
2440
2428
|
[
|
|
2441
|
-
|
|
2429
|
+
Sr,
|
|
2442
2430
|
1,
|
|
2443
2431
|
"successfulChangesRefreshed"
|
|
2444
2432
|
],
|
|
2445
2433
|
[
|
|
2446
|
-
|
|
2434
|
+
wr,
|
|
2447
2435
|
1,
|
|
2448
2436
|
"accessContext"
|
|
2449
2437
|
],
|
|
2450
2438
|
[
|
|
2451
|
-
|
|
2439
|
+
Er,
|
|
2452
2440
|
1,
|
|
2453
2441
|
"accessContextLoading"
|
|
2454
2442
|
],
|
|
2455
2443
|
[
|
|
2456
|
-
|
|
2444
|
+
Or,
|
|
2457
2445
|
1,
|
|
2458
2446
|
"accessContextError"
|
|
2459
2447
|
],
|
|
2460
2448
|
[
|
|
2461
|
-
|
|
2449
|
+
Ar,
|
|
2462
2450
|
1,
|
|
2463
2451
|
"advancedSharingOpen"
|
|
2464
2452
|
],
|
|
2465
2453
|
[
|
|
2466
|
-
|
|
2454
|
+
Mr,
|
|
2467
2455
|
1,
|
|
2468
2456
|
"containerScope"
|
|
2469
2457
|
],
|
|
2470
2458
|
[
|
|
2471
|
-
|
|
2459
|
+
Pr,
|
|
2472
2460
|
1,
|
|
2473
2461
|
"containerScopeAnalysis"
|
|
2474
2462
|
],
|
|
2475
2463
|
[
|
|
2476
|
-
|
|
2464
|
+
Ir,
|
|
2477
2465
|
1,
|
|
2478
2466
|
"protectedTarget"
|
|
2479
2467
|
]
|
|
2480
|
-
],
|
|
2468
|
+
], tr, 0, void 0, p), zn), Rn = class extends qr {
|
|
2481
2469
|
constructor() {
|
|
2482
|
-
super(
|
|
2470
|
+
super(Yr), $(this, "styles", Tt), er();
|
|
2483
2471
|
}
|
|
2484
|
-
}, $(
|
|
2472
|
+
}, $(Rn, Rr, void 0), Rn)();
|
|
2485
2473
|
// src/components/access-control-modal/index.ts
|
|
2486
|
-
var
|
|
2487
|
-
export {
|
|
2474
|
+
var Xr = Yr;
|
|
2475
|
+
export { Yr as n, Xr as t };
|
|
2488
2476
|
|
|
2489
|
-
//# sourceMappingURL=access-control-modal-
|
|
2477
|
+
//# sourceMappingURL=access-control-modal-CWH98HX3.js.map
|