solid-ui 5.0.2-3 → 5.0.2-5
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/acl/access-controller.cjs.js +1 -1
- package/dist/acl/access-controller.cjs.js.map +1 -1
- package/dist/acl/access-controller.esm.js +37 -37
- package/dist/acl/access-groups.cjs.js +2 -2
- package/dist/acl/access-groups.cjs.js.map +1 -1
- package/dist/acl/access-groups.esm.js +78 -78
- package/dist/acl/acl-control.cjs.js +1 -1
- package/dist/acl/acl-control.cjs.js.map +1 -1
- package/dist/acl/acl-control.esm.js +19 -19
- package/dist/acl/add-agent-buttons.cjs.js +1 -1
- package/dist/acl/add-agent-buttons.cjs.js.map +1 -1
- package/dist/acl/add-agent-buttons.esm.js +51 -51
- package/dist/chat/bookmarks.cjs.js +1 -1
- package/dist/chat/bookmarks.cjs.js.map +1 -1
- package/dist/chat/bookmarks.esm.js +44 -44
- package/dist/chat/bookmarks.esm.js.map +1 -1
- package/dist/chat/chatLogic.cjs.js +2 -2
- package/dist/chat/chatLogic.cjs.js.map +1 -1
- package/dist/chat/chatLogic.esm.js +54 -54
- package/dist/chat/dateFolder.cjs.js +1 -1
- package/dist/chat/dateFolder.cjs.js.map +1 -1
- package/dist/chat/dateFolder.esm.js +30 -30
- package/dist/chat/infinite.cjs.js +1 -1
- package/dist/chat/infinite.cjs.js.map +1 -1
- package/dist/chat/infinite.esm.js +49 -49
- package/dist/chat/keys.cjs.js +2 -2
- package/dist/chat/keys.cjs.js.map +1 -1
- package/dist/chat/keys.esm.js +17 -17
- package/dist/chat/message.cjs.js +4 -4
- package/dist/chat/message.cjs.js.map +1 -1
- package/dist/chat/message.esm.js +114 -114
- package/dist/chat/message.esm.js.map +1 -1
- package/dist/chat/messageTools.cjs.js +1 -1
- package/dist/chat/messageTools.cjs.js.map +1 -1
- package/dist/chat/messageTools.esm.js +51 -51
- package/dist/chunks/{DialogProvider-dagk2fHm.js → DialogProvider-CdesAsw-.js} +5 -6
- package/dist/chunks/{DialogProvider-dagk2fHm.js.map → DialogProvider-CdesAsw-.js.map} +1 -1
- package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js → ResourceActionsMenu-Bx7YWY3E.js} +31 -32
- package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js.map → ResourceActionsMenu-Bx7YWY3E.js.map} +1 -1
- package/dist/chunks/{access-control-modal-CWH98HX3.js → access-control-modal-B1mFFIyz.js} +169 -170
- package/dist/chunks/{access-control-modal-CWH98HX3.js.map → access-control-modal-B1mFFIyz.js.map} +1 -1
- package/dist/chunks/{account-Cocvv0H3.js → account-DWmMJre6.js} +16 -17
- package/dist/chunks/{account-Cocvv0H3.js.map → account-DWmMJre6.js.map} +1 -1
- package/dist/chunks/{auth-Df5uYksz.js → auth-EK-iYNYZ.js} +42 -43
- package/dist/chunks/{auth-Df5uYksz.js.map → auth-EK-iYNYZ.js.map} +1 -1
- package/dist/chunks/{avatar-DeotTinS.js → avatar-BBgvMlqv.js} +8 -9
- package/dist/chunks/{avatar-DeotTinS.js.map → avatar-BBgvMlqv.js.map} +1 -1
- package/dist/chunks/{button-Dy1aFjqG.js → button-D6qO2idW.js} +10 -11
- package/dist/chunks/{button-Dy1aFjqG.js.map → button-D6qO2idW.js.map} +1 -1
- package/dist/chunks/{chunk.UEBQI7VV-9M5gO7Ew.js → chunk.UEBQI7VV-lcP-fpUk.js} +12 -9
- package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +1 -0
- package/dist/chunks/{combobox-BL0-8wef.js → combobox-DS6byaf1.js} +18 -19
- package/dist/chunks/{combobox-BL0-8wef.js.map → combobox-DS6byaf1.js.map} +1 -1
- package/dist/chunks/{combobox-option-DjlmXt1O.js → combobox-option-DOtGuKel.js} +7 -8
- package/dist/chunks/{combobox-option-DjlmXt1O.js.map → combobox-option-DOtGuKel.js.map} +1 -1
- package/dist/chunks/{components-LxiwG5ae.js → components-C8c2Ucm5.js} +201 -190
- package/dist/chunks/components-C8c2Ucm5.js.map +1 -0
- package/dist/chunks/{context-By_u12WA.js → context-BDrfQ9bN.js} +2 -2
- package/dist/chunks/{context-By_u12WA.js.map → context-BDrfQ9bN.js.map} +1 -1
- package/dist/chunks/{dialog-CrmftB9c.js → dialog-CgYK767T.js} +15 -16
- package/dist/chunks/{dialog-CrmftB9c.js.map → dialog-CgYK767T.js.map} +1 -1
- package/dist/chunks/{dialog-content-Cw3xqJ45.js → dialog-content-DjwRH1ci.js} +5 -6
- package/dist/chunks/{dialog-content-Cw3xqJ45.js.map → dialog-content-DjwRH1ci.js.map} +1 -1
- package/dist/chunks/{dialog-footer-sFQf-2zD.js → dialog-footer-GQWi8lfB.js} +5 -6
- package/dist/chunks/{dialog-footer-sFQf-2zD.js.map → dialog-footer-GQWi8lfB.js.map} +1 -1
- package/dist/chunks/{dialog-header-xIWIqfZK.js → dialog-header-c3qOMQfb.js} +5 -6
- package/dist/chunks/{dialog-header-xIWIqfZK.js.map → dialog-header-c3qOMQfb.js.map} +1 -1
- package/dist/chunks/{dialogs-B3tHtjMf.js → dialogs-BmtLjMzg.js} +2 -2
- package/dist/chunks/{dialogs-B3tHtjMf.js.map → dialogs-BmtLjMzg.js.map} +1 -1
- package/dist/chunks/{dialogs-root-Lh2u-3Cs.js → dialogs-root-BNF3_SA8.js} +8 -9
- package/dist/chunks/{dialogs-root-Lh2u-3Cs.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
- package/dist/chunks/{error-state-DnsXVj1z.js → error-state-jV9dlFX2.js} +10 -11
- package/dist/chunks/{error-state-DnsXVj1z.js.map → error-state-jV9dlFX2.js.map} +1 -1
- package/dist/chunks/{file-explorer-header-B6-Q0i6V.js → file-explorer-header-Djp_eFuT.js} +33 -34
- package/dist/chunks/file-explorer-header-Djp_eFuT.js.map +1 -0
- package/dist/chunks/{file-explorer-provider-B3gUBkHg.js → file-explorer-provider-DpjC7uds.js} +8 -9
- package/dist/chunks/{file-explorer-provider-B3gUBkHg.js.map → file-explorer-provider-DpjC7uds.js.map} +1 -1
- package/dist/chunks/{guard-C39y81In.js → guard-SxVT1xr4.js} +8 -9
- package/dist/chunks/{guard-C39y81In.js.map → guard-SxVT1xr4.js.map} +1 -1
- package/dist/chunks/{index.esm-C9oV3H3X.js → index.esm-BQrkxchZ.js} +2 -2
- package/dist/chunks/{index.esm-C9oV3H3X.js.map → index.esm-BQrkxchZ.js.map} +1 -1
- package/dist/chunks/{input-Bi6ZBZQw.js → input-Bz3l514j.js} +11 -12
- package/dist/chunks/{input-Bi6ZBZQw.js.map → input-Bz3l514j.js.map} +1 -1
- package/dist/chunks/{jsonld-D-TE94B0.js → jsonld-C6IOQ1Tg.js} +2 -2
- package/dist/chunks/{jsonld-D-TE94B0.js.map → jsonld-C6IOQ1Tg.js.map} +1 -1
- package/dist/chunks/{login-button-fo0P8vym.js → login-button-Dd0rwZJk.js} +9 -10
- package/dist/chunks/{login-button-fo0P8vym.js.map → login-button-Dd0rwZJk.js.map} +1 -1
- package/dist/chunks/{logout-button-CF2YFgID.js → logout-button-Da34Lrnq.js} +9 -10
- package/dist/chunks/{logout-button-CF2YFgID.js.map → logout-button-Da34Lrnq.js.map} +1 -1
- package/dist/chunks/{menu-RumUciM-.js → menu-BNJU654v.js} +48 -50
- package/dist/chunks/{menu-RumUciM-.js.map → menu-BNJU654v.js.map} +1 -1
- package/dist/chunks/{menu-item-CVAZyipz.js → menu-item-nfPpH4dN.js} +10 -11
- package/dist/chunks/{menu-item-CVAZyipz.js.map → menu-item-nfPpH4dN.js.map} +1 -1
- package/dist/chunks/{photo-capture-CAfo7y6-.js → photo-capture-hJaJm4TM.js} +20 -21
- package/dist/chunks/photo-capture-hJaJm4TM.js.map +1 -0
- package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js → photo-capture-modal-BsHv6wmh.js} +28 -29
- package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js.map → photo-capture-modal-BsHv6wmh.js.map} +1 -1
- package/dist/chunks/{provide-B5NeVMM_.js → provide-z9U64q4m.js} +2 -2
- package/dist/chunks/{provide-B5NeVMM_.js.map → provide-z9U64q4m.js.map} +1 -1
- package/dist/chunks/{provider-BbT2duMy.js → provider-B3FoP2qW.js} +12 -13
- package/dist/chunks/{provider-BbT2duMy.js.map → provider-B3FoP2qW.js.map} +1 -1
- package/dist/chunks/{rdf-form-CH9bDx98.js → rdf-form-BkKDmFPD.js} +30 -31
- package/dist/chunks/{rdf-form-CH9bDx98.js.map → rdf-form-BkKDmFPD.js.map} +1 -1
- package/dist/chunks/{rdf-input-C_V0pIS5.js → rdf-input-BPePtqfS.js} +62 -63
- package/dist/chunks/{rdf-input-C_V0pIS5.js.map → rdf-input-BPePtqfS.js.map} +1 -1
- package/dist/chunks/{select-y1Z6fwmh.js → select-ClPkDkGl.js} +9 -10
- package/dist/chunks/{select-y1Z6fwmh.js.map → select-ClPkDkGl.js.map} +1 -1
- package/dist/chunks/{select-option-U4ALXL20.js → select-option-DQan7rcB.js} +7 -8
- package/dist/chunks/{select-option-U4ALXL20.js.map → select-option-DQan7rcB.js.map} +1 -1
- package/dist/chunks/{signup-button-DicFpAjD.js → signup-button-DOInssOu.js} +9 -10
- package/dist/chunks/{signup-button-DicFpAjD.js.map → signup-button-DOInssOu.js.map} +1 -1
- package/dist/chunks/{solid-emblem-CeCXTpve.js → solid-emblem-DwLdkGuO.js} +7 -8
- package/dist/chunks/{solid-emblem-CeCXTpve.js.map → solid-emblem-DwLdkGuO.js.map} +1 -1
- package/dist/chunks/{solidLogicSingleton.esm-BXyHD7mn.js → solidLogicSingleton.esm-Bvt7E7Vl.js} +50 -29
- package/dist/chunks/solidLogicSingleton.esm-Bvt7E7Vl.js.map +1 -0
- package/dist/chunks/{src-Bhtor0ZC.js → src-akaVfkuf.js} +2739 -2719
- package/dist/chunks/src-akaVfkuf.js.map +1 -0
- package/dist/chunks/{style-CXaw5EYi.js → style-Dlw9-wPn.js} +3 -3
- package/dist/chunks/{style-CXaw5EYi.js.map → style-Dlw9-wPn.js.map} +1 -1
- package/dist/chunks/{widgets-BBEQu0CS.js → widgets-B1hBVhRL.js} +309 -309
- package/dist/chunks/widgets-B1hBVhRL.js.map +1 -0
- package/dist/components/access-control-modal/AccessControlAddAccess.cjs.js +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.esm.js +5 -5
- 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.cjs.js +2 -2
- package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js +12 -12
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.cjs.js +2 -2
- package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js +35 -35
- package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.cjs.js +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js +2 -2
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.cjs.js +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.cjs.js.map +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.esm.js +21 -21
- package/dist/components/access-control-modal.js +1 -1
- package/dist/components/account/Account.cjs.js +1 -1
- package/dist/components/account/Account.esm.js +3 -3
- 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 +16 -16
- 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.cjs.js +1 -1
- package/dist/components/combobox/Combobox.esm.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.cjs.js +2 -2
- package/dist/components/dialog/Dialog.cjs.js.map +1 -1
- package/dist/components/dialog/Dialog.esm.js +9 -9
- 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.cjs.js +1 -1
- package/dist/components/dialog-provider/DialogProvider.cjs.js.map +1 -1
- package/dist/components/dialog-provider/DialogProvider.esm.js +6 -6
- 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.cjs.js +2 -2
- package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
- package/dist/components/dialogs-root/DialogsRoot.esm.js +7 -7
- 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.cjs.js +1 -1
- package/dist/components/error-state/ErrorState.esm.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 +2 -2
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +20 -19
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +6 -6
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +25 -24
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +7 -7
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +28 -27
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
- package/dist/components/file-explorer-header.js +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +8 -7
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -1
- package/dist/components/file-explorer-provider.js +1 -1
- package/dist/components/guard.js +1 -1
- package/dist/components/input/Input.esm.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/login-button/LoginButton.cjs.js +1 -1
- package/dist/components/login-button/LoginButton.esm.js +1 -1
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal/LoginModal.cjs.js +1 -1
- package/dist/components/login-modal/LoginModal.esm.js +2 -2
- package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button/LogoutButton.cjs.js +1 -1
- package/dist/components/logout-button/LogoutButton.esm.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.cjs.js +1 -1
- package/dist/components/menu/Menu.cjs.js.map +1 -1
- package/dist/components/menu/Menu.esm.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.cjs.js +3 -3
- package/dist/components/rdf-form/RDFForm.cjs.js.map +1 -1
- package/dist/components/rdf-form/RDFForm.esm.js +13 -13
- 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.cjs.js +2 -2
- package/dist/components/rdf-input/RDFInput.cjs.js.map +1 -1
- package/dist/components/rdf-input/RDFInput.esm.js +4 -4
- 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/ResourceActionsMenu.cjs.js +8 -8
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +18 -17
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
- package/dist/components/resource-actions-menu.js +1 -1
- package/dist/components/select/Select.cjs.js +1 -1
- package/dist/components/select/Select.cjs.js.map +1 -1
- package/dist/components/select/Select.esm.js +1 -1
- 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/SignupButton.cjs.js +1 -1
- package/dist/components/signup-button/SignupButton.esm.js +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +30 -30
- package/dist/create/create.cjs.js +1 -1
- package/dist/create/create.cjs.js.map +1 -1
- package/dist/create/create.esm.js +23 -23
- package/dist/header/index.cjs.js +1 -1
- package/dist/header/index.cjs.js.map +1 -1
- package/dist/header/index.esm.js +53 -53
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +24 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -12
- package/dist/lib/auth/SolidAuth.cjs.js +1 -1
- package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
- package/dist/lib/auth/SolidAuth.esm.js +8 -8
- package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
- package/dist/lib/code-editor/CodeEditor.cjs.js +1 -1
- package/dist/lib/code-editor/CodeEditor.cjs.js.map +1 -1
- package/dist/lib/code-editor/CodeEditor.d.ts.map +1 -1
- package/dist/lib/code-editor/CodeEditor.esm.js +34 -30
- package/dist/lib/code-editor/CodeEditor.esm.js.map +1 -1
- package/dist/lib/components/dialog-component/DialogComponent.cjs.js +1 -1
- package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -1
- package/dist/lib/components/dialog-component/DialogComponent.esm.js +4 -4
- package/dist/lib/components/index.cjs.js +1 -1
- package/dist/lib/components/index.esm.js +3 -3
- package/dist/lib/dialogs/helpers.cjs.js +1 -1
- package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
- package/dist/lib/dialogs/helpers.esm.js +4 -4
- package/dist/lib/file-explorer/index.cjs.js +1 -1
- package/dist/lib/file-explorer/index.esm.js +3 -3
- package/dist/lib/file-explorer/relevant-panes.cjs.js +1 -1
- package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -1
- package/dist/lib/file-explorer/relevant-panes.d.ts +7 -0
- package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -1
- package/dist/lib/file-explorer/relevant-panes.esm.js +11 -2
- package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -1
- package/dist/lib/messageArea.cjs.js +1 -1
- package/dist/lib/messageArea.cjs.js.map +1 -1
- package/dist/lib/messageArea.esm.js +27 -27
- package/dist/lib/pad.cjs.js +1 -1
- package/dist/lib/pad.cjs.js.map +1 -1
- package/dist/lib/pad.esm.js +15 -15
- package/dist/lib/participation.cjs.js +1 -1
- package/dist/lib/participation.cjs.js.map +1 -1
- package/dist/lib/participation.esm.js +59 -59
- package/dist/lib/preferences.cjs.js +1 -1
- package/dist/lib/preferences.cjs.js.map +1 -1
- package/dist/lib/preferences.esm.js +28 -28
- package/dist/lib/table.cjs.js +3 -3
- package/dist/lib/table.cjs.js.map +1 -1
- package/dist/lib/table.esm.js +123 -123
- package/dist/lib/table.esm.js.map +1 -1
- package/dist/lib/tabs.cjs.js +1 -1
- package/dist/lib/tabs.cjs.js.map +1 -1
- package/dist/lib/tabs.esm.js +16 -16
- package/dist/loader.js +11 -12
- package/dist/login/login.cjs.js +6 -6
- package/dist/login/login.cjs.js.map +1 -1
- package/dist/login/login.esm.js +142 -142
- package/dist/media/media-capture.cjs.js +1 -1
- package/dist/media/media-capture.cjs.js.map +1 -1
- package/dist/media/media-capture.esm.js +6 -6
- package/dist/solid-ui.js +32 -32
- package/dist/solid-ui.min.js +32 -32
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.cjs.js.map +1 -1
- package/dist/utils/index.esm.js +4 -4
- package/dist/utils/keyHelpers/accessData.cjs.js +1 -1
- package/dist/utils/keyHelpers/accessData.cjs.js.map +1 -1
- package/dist/utils/keyHelpers/accessData.esm.js +15 -15
- package/dist/utils/label.cjs.js +1 -1
- package/dist/utils/label.cjs.js.map +1 -1
- package/dist/utils/label.esm.js +4 -4
- package/dist/widgets/buttons.cjs.js +12 -12
- package/dist/widgets/buttons.cjs.js.map +1 -1
- package/dist/widgets/buttons.esm.js +179 -179
- package/dist/widgets/error.cjs.js +1 -1
- package/dist/widgets/error.cjs.js.map +1 -1
- package/dist/widgets/error.esm.js +5 -5
- package/dist/widgets/forms/autocomplete/autocompleteBar.cjs.js +1 -1
- package/dist/widgets/forms/autocomplete/autocompleteBar.cjs.js.map +1 -1
- package/dist/widgets/forms/autocomplete/autocompleteBar.esm.js +17 -17
- package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js +1 -1
- package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js.map +1 -1
- package/dist/widgets/forms/autocomplete/autocompleteField.esm.js +23 -23
- package/dist/widgets/forms/autocomplete/autocompletePicker.cjs.js +1 -1
- package/dist/widgets/forms/autocomplete/autocompletePicker.cjs.js.map +1 -1
- package/dist/widgets/forms/autocomplete/autocompletePicker.esm.js +26 -26
- package/dist/widgets/forms/autocomplete/language.cjs.js +1 -1
- package/dist/widgets/forms/autocomplete/language.cjs.js.map +1 -1
- package/dist/widgets/forms/autocomplete/language.esm.js +9 -9
- package/dist/widgets/forms/autocomplete/publicData.cjs.js +5 -5
- package/dist/widgets/forms/autocomplete/publicData.cjs.js.map +1 -1
- package/dist/widgets/forms/autocomplete/publicData.esm.js +67 -67
- package/dist/widgets/forms/basic.cjs.js +1 -1
- package/dist/widgets/forms/basic.cjs.js.map +1 -1
- package/dist/widgets/forms/basic.esm.js +11 -11
- package/dist/widgets/forms.cjs.js +4 -4
- package/dist/widgets/forms.cjs.js.map +1 -1
- package/dist/widgets/forms.esm.js +561 -561
- package/dist/widgets/forms.esm.js.map +1 -1
- package/dist/widgets/index.cjs.js +1 -1
- package/dist/widgets/index.cjs.js.map +1 -1
- package/dist/widgets/index.esm.js +82 -82
- package/dist/widgets/peoplePicker.cjs.js +2 -2
- package/dist/widgets/peoplePicker.cjs.js.map +1 -1
- package/dist/widgets/peoplePicker.esm.js +82 -82
- package/package.json +3 -3
- package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +0 -1
- package/dist/chunks/components-LxiwG5ae.js.map +0 -1
- package/dist/chunks/custom-element-BW8Ua4c7.js +0 -9
- package/dist/chunks/custom-element-BW8Ua4c7.js.map +0 -1
- package/dist/chunks/decorators-V-B013l9.js +0 -12
- package/dist/chunks/decorators-V-B013l9.js.map +0 -1
- package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +0 -1
- package/dist/chunks/photo-capture-CAfo7y6-.js.map +0 -1
- package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +0 -1
- package/dist/chunks/src-Bhtor0ZC.js.map +0 -1
- package/dist/chunks/widgets-BBEQu0CS.js.map +0 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u } from "./style-
|
|
3
|
-
import { T as
|
|
4
|
-
import {
|
|
5
|
-
import { t as b } from "./decorators-V-B013l9.js";
|
|
6
|
-
import "./x-D1JUUSOS.js";
|
|
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";
|
|
1
|
+
import { a as e, c as t, g as n, i as r, o as i, p as a, r as o, u as s } from "./components-C8c2Ucm5.js";
|
|
2
|
+
import { u as c } from "./style-Dlw9-wPn.js";
|
|
3
|
+
import { T as l, p as u } from "./widgets-B1hBVhRL.js";
|
|
4
|
+
import { E as d, _ as f, d as p, g as m, h, m as g, n as _, p as v, t as y, y as b } from "./solidLogicSingleton.esm-Bvt7E7Vl.js";
|
|
13
5
|
import "./globe-CsCgZcy5.js";
|
|
14
|
-
import "./
|
|
6
|
+
import "./x-D1JUUSOS.js";
|
|
7
|
+
import "./dialog-CgYK767T.js";
|
|
8
|
+
import "./dialog-content-DjwRH1ci.js";
|
|
9
|
+
import "./dialog-footer-GQWi8lfB.js";
|
|
10
|
+
import "./button-D6qO2idW.js";
|
|
11
|
+
import { r as x } from "./combobox-DS6byaf1.js";
|
|
12
|
+
import "./combobox-option-DOtGuKel.js";
|
|
13
|
+
import "./error-state-jV9dlFX2.js";
|
|
15
14
|
// ~icons/lucide/circle-x
|
|
16
15
|
var S = class extends HTMLElement {
|
|
17
16
|
constructor() {
|
|
@@ -27,7 +26,7 @@ var C = class extends HTMLElement {
|
|
|
27
26
|
};
|
|
28
27
|
customElements.get("icon-lucide-folder-open") || customElements.define("icon-lucide-folder-open", C);
|
|
29
28
|
// src/components/access-control-modal/AccessControlSharedAccess.styles.css
|
|
30
|
-
var w =
|
|
29
|
+
var w = a`: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
30
|
function le(e, t, n) {
|
|
32
31
|
ue(e, t), t.set(e, n);
|
|
33
32
|
}
|
|
@@ -199,9 +198,9 @@ function ye(e) {
|
|
|
199
198
|
function be(e) {
|
|
200
199
|
return e;
|
|
201
200
|
}
|
|
202
|
-
ee = [
|
|
201
|
+
ee = [n("solid-ui-access-control-shared-access")];
|
|
203
202
|
var xe;
|
|
204
|
-
new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), ce = (te =
|
|
203
|
+
new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), ce = (te = r({ attribute: !1 }), re = r({ type: Boolean }), ae = o(), "accessGrantViewModels"), E = class extends i {
|
|
205
204
|
constructor(...e) {
|
|
206
205
|
super(...e), le(this, D, (A(this), ne(this, []))), le(this, O, ie(this, !1)), le(this, k, oe(this, ""));
|
|
207
206
|
}
|
|
@@ -232,7 +231,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
232
231
|
typeof t.label == "string" && (this.searchValue = t.label);
|
|
233
232
|
}
|
|
234
233
|
onAccessGrantRoleChange(e, t) {
|
|
235
|
-
let n = t.detail.option.value, r = typeof n == "string" ?
|
|
234
|
+
let n = t.detail.option.value, r = typeof n == "string" ? v.find((e) => e === n) : void 0;
|
|
236
235
|
if (!r) return;
|
|
237
236
|
let i = {
|
|
238
237
|
id: e,
|
|
@@ -249,7 +248,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
249
248
|
return this.accessGrantViewModels.filter(({ subjectLabel: t, subjects: n }) => n.length ? !e || t.toLowerCase().includes(e) : !1);
|
|
250
249
|
}
|
|
251
250
|
renderAccessGrant(e) {
|
|
252
|
-
return
|
|
251
|
+
return s`
|
|
253
252
|
<li>
|
|
254
253
|
${this.renderAuthorizationBadge(e.authorization, e.subjectLabel)}
|
|
255
254
|
<h3>${e.subjectLabel}</h3>
|
|
@@ -259,36 +258,36 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
259
258
|
}
|
|
260
259
|
renderAuthorizationBadge(e, t) {
|
|
261
260
|
let n = this.getAuthorizationBadge(e, t);
|
|
262
|
-
return
|
|
261
|
+
return s`
|
|
263
262
|
<div class="access-grants-image access-grants-image--${n.kind}">
|
|
264
|
-
${n.image ?
|
|
263
|
+
${n.image ? s`<img src=${n.image} alt="" aria-hidden="true" />` : n.kind === "origin" ? s`<icon-lucide-globe aria-hidden="true"></icon-lucide-globe>` : s`<span aria-hidden="true">${n.text}</span>`}
|
|
265
264
|
</div>
|
|
266
265
|
`;
|
|
267
266
|
}
|
|
268
|
-
getAuthorizationBadge(
|
|
269
|
-
let
|
|
270
|
-
if (
|
|
271
|
-
let
|
|
267
|
+
getAuthorizationBadge(e, t) {
|
|
268
|
+
let n = e.agent[0];
|
|
269
|
+
if (n) {
|
|
270
|
+
let e = u(d(n));
|
|
272
271
|
return {
|
|
273
272
|
kind: "agent",
|
|
274
|
-
image:
|
|
275
|
-
text:
|
|
273
|
+
image: e,
|
|
274
|
+
text: e ? "" : this.getInitials(t, 2)
|
|
276
275
|
};
|
|
277
276
|
}
|
|
278
|
-
if (
|
|
277
|
+
if (e.agentGroup[0]) return {
|
|
279
278
|
kind: "agentGroup",
|
|
280
|
-
text: this.getInitials(
|
|
279
|
+
text: this.getInitials(t, 1)
|
|
281
280
|
};
|
|
282
|
-
let
|
|
283
|
-
if (
|
|
284
|
-
let
|
|
281
|
+
let r = e.agentClass[0];
|
|
282
|
+
if (r) {
|
|
283
|
+
let e = u(d(r));
|
|
285
284
|
return {
|
|
286
285
|
kind: "agentClass",
|
|
287
|
-
image:
|
|
288
|
-
text:
|
|
286
|
+
image: e,
|
|
287
|
+
text: e ? "" : this.getInitials(t, 2)
|
|
289
288
|
};
|
|
290
289
|
}
|
|
291
|
-
return
|
|
290
|
+
return e.origin[0] ? {
|
|
292
291
|
kind: "origin",
|
|
293
292
|
text: "O",
|
|
294
293
|
image: ""
|
|
@@ -301,7 +300,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
301
300
|
return (e.split(/\s+/).filter(Boolean).slice(0, t).map((e) => e[0]).join("") || e.slice(0, t)).toUpperCase();
|
|
302
301
|
}
|
|
303
302
|
renderAuthorizationRole(e, t) {
|
|
304
|
-
return
|
|
303
|
+
return s`
|
|
305
304
|
<solid-ui-combobox
|
|
306
305
|
class="access-role-select access-role-select--compact access-grants-role access-grants-role--editable ${e === "Owner" ? "access-grants-role--owner" : ""}"
|
|
307
306
|
.disabled=${this.disabled}
|
|
@@ -313,13 +312,13 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
313
312
|
`;
|
|
314
313
|
}
|
|
315
314
|
renderGrantRoleOptions() {
|
|
316
|
-
return
|
|
315
|
+
return v.map((e) => s`
|
|
317
316
|
<solid-ui-combobox-option value=${e}>${e === "No Access" ? "Remove" : e}</solid-ui-combobox-option>
|
|
318
317
|
`);
|
|
319
318
|
}
|
|
320
319
|
render() {
|
|
321
320
|
let e = this.getFilteredAccessGrants();
|
|
322
|
-
return
|
|
321
|
+
return s`
|
|
323
322
|
<section aria-labelledby="access-grants-heading">
|
|
324
323
|
<div class="access-grants-header">
|
|
325
324
|
<h2 id="access-grants-heading">Shared with</h2>
|
|
@@ -332,7 +331,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
332
331
|
@input=${this.onSearchInput}
|
|
333
332
|
@change=${this.onSearchSelect}
|
|
334
333
|
>
|
|
335
|
-
${this.accessGrantViewModels.filter(({ subjects: e }) => e.length > 0).map(({ subjectLabel: e }) =>
|
|
334
|
+
${this.accessGrantViewModels.filter(({ subjects: e }) => e.length > 0).map(({ subjectLabel: e }) => s`
|
|
336
335
|
<solid-ui-combobox-option .value=${e}>
|
|
337
336
|
${e}
|
|
338
337
|
</solid-ui-combobox-option>
|
|
@@ -341,7 +340,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
341
340
|
</div>
|
|
342
341
|
<div class="access-grants-list">
|
|
343
342
|
<ul>
|
|
344
|
-
${e.length > 0 ? e.map((e) => this.renderAccessGrant(e)) :
|
|
343
|
+
${e.length > 0 ? e.map((e) => this.renderAccessGrant(e)) : s`<li>No access grants</li>`}
|
|
345
344
|
</ul>
|
|
346
345
|
</div>
|
|
347
346
|
</section>
|
|
@@ -363,7 +362,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
363
362
|
1,
|
|
364
363
|
"searchValue"
|
|
365
364
|
]
|
|
366
|
-
], ee, 0, void 0,
|
|
365
|
+
], ee, 0, void 0, i), E), T = class extends be {
|
|
367
366
|
constructor() {
|
|
368
367
|
super(xe), me(this, "styles", w), j();
|
|
369
368
|
}
|
|
@@ -376,7 +375,7 @@ var Se = class extends HTMLElement {
|
|
|
376
375
|
};
|
|
377
376
|
customElements.get("icon-lucide-link") || customElements.define("icon-lucide-link", Se);
|
|
378
377
|
// src/components/access-control-modal/AccessControlGeneralAccess.styles.css
|
|
379
|
-
var Ce =
|
|
378
|
+
var Ce = a`: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
379
|
function Ue(e, t, n) {
|
|
381
380
|
We(e, t), t.set(e, n);
|
|
382
381
|
}
|
|
@@ -548,9 +547,9 @@ function Ze(e) {
|
|
|
548
547
|
function Qe(e) {
|
|
549
548
|
return e;
|
|
550
549
|
}
|
|
551
|
-
Me = [
|
|
550
|
+
Me = [n("solid-ui-access-control-general-access")];
|
|
552
551
|
var $e;
|
|
553
|
-
new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), He = (Ne =
|
|
552
|
+
new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), He = (Ne = r({ attribute: !1 }), Fe = r({ attribute: !1 }), Le = r({ attribute: !1 }), ze = r({ type: Boolean }), "subjectUri"), Te = class extends i {
|
|
554
553
|
constructor(...e) {
|
|
555
554
|
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));
|
|
556
555
|
}
|
|
@@ -579,10 +578,10 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
579
578
|
M(ke, this, e);
|
|
580
579
|
}
|
|
581
580
|
onAuthenticatedRoleChange(e) {
|
|
582
|
-
this.dispatchRoleChange("authenticated-role-changed", e,
|
|
581
|
+
this.dispatchRoleChange("authenticated-role-changed", e, v);
|
|
583
582
|
}
|
|
584
583
|
onPublicRoleChange(e) {
|
|
585
|
-
this.dispatchRoleChange("public-role-changed", e,
|
|
584
|
+
this.dispatchRoleChange("public-role-changed", e, h);
|
|
586
585
|
}
|
|
587
586
|
dispatchRoleChange(e, t, n) {
|
|
588
587
|
let r = t.detail.option.value;
|
|
@@ -598,21 +597,21 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
598
597
|
if (e.preventDefault(), this.subjectUri) try {
|
|
599
598
|
await navigator.clipboard.writeText(this.subjectUri);
|
|
600
599
|
} catch (e) {
|
|
601
|
-
|
|
600
|
+
l("Failed to copy resource link", e);
|
|
602
601
|
}
|
|
603
602
|
}
|
|
604
603
|
renderAuthenticatedRoleOptions() {
|
|
605
|
-
return
|
|
604
|
+
return v.map((e) => s`
|
|
606
605
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
607
606
|
`);
|
|
608
607
|
}
|
|
609
608
|
renderPublicRoleOptions() {
|
|
610
|
-
return
|
|
609
|
+
return h.map((e) => s`
|
|
611
610
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
612
611
|
`);
|
|
613
612
|
}
|
|
614
613
|
renderAuthenticatedModeSelector() {
|
|
615
|
-
return
|
|
614
|
+
return s`
|
|
616
615
|
<solid-ui-combobox
|
|
617
616
|
class="access-role-select access-role-select--compact access-role-select--general access-grants-role access-grants-role--editable access-role-select--authenticated"
|
|
618
617
|
.disabled=${this.disabled}
|
|
@@ -624,7 +623,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
624
623
|
`;
|
|
625
624
|
}
|
|
626
625
|
renderPublicModeSelector() {
|
|
627
|
-
return
|
|
626
|
+
return s`
|
|
628
627
|
<solid-ui-combobox
|
|
629
628
|
class="access-role-select access-role-select--compact access-role-select--general access-grants-role access-grants-role--editable access-role-select--public"
|
|
630
629
|
.disabled=${this.disabled}
|
|
@@ -636,7 +635,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
636
635
|
`;
|
|
637
636
|
}
|
|
638
637
|
renderGeneralAccessIcon() {
|
|
639
|
-
return
|
|
638
|
+
return s`
|
|
640
639
|
<div class="access-grants-general-share-icon">
|
|
641
640
|
<div class="access-grants-general-share-icon-inner">
|
|
642
641
|
<icon-lucide-globe class="access-grants-general-share-icon-image"></icon-lucide-globe>
|
|
@@ -645,7 +644,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
645
644
|
`;
|
|
646
645
|
}
|
|
647
646
|
renderGeneralShareRow(e) {
|
|
648
|
-
return
|
|
647
|
+
return s`
|
|
649
648
|
<div class="access-grants-general-share">
|
|
650
649
|
<div class="access-grants-general-share-content">
|
|
651
650
|
${this.renderGeneralAccessIcon()}
|
|
@@ -659,7 +658,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
659
658
|
`;
|
|
660
659
|
}
|
|
661
660
|
render() {
|
|
662
|
-
return
|
|
661
|
+
return s`
|
|
663
662
|
<section class="access-grants-general" aria-labelledby="general-access-heading">
|
|
664
663
|
<div class="access-grants-general-header">
|
|
665
664
|
<h2 id="general-access-heading">General Access</h2>
|
|
@@ -706,13 +705,13 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
706
705
|
1,
|
|
707
706
|
"disabled"
|
|
708
707
|
]
|
|
709
|
-
], Me, 0, void 0,
|
|
708
|
+
], Me, 0, void 0, i), Te), we = class extends Qe {
|
|
710
709
|
constructor() {
|
|
711
710
|
super($e), Ke(this, "styles", Ce), je();
|
|
712
711
|
}
|
|
713
712
|
}, Ke(we, Ve, void 0), we)();
|
|
714
713
|
// src/components/access-control-modal/AccessControlErrors.styles.css
|
|
715
|
-
var et =
|
|
714
|
+
var et = a`: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
715
|
function ft(e, t, n) {
|
|
717
716
|
pt(e, t), t.set(e, n);
|
|
718
717
|
}
|
|
@@ -884,9 +883,9 @@ function St(e) {
|
|
|
884
883
|
function Ct(e) {
|
|
885
884
|
return e;
|
|
886
885
|
}
|
|
887
|
-
at = [
|
|
886
|
+
at = [n("solid-ui-access-control-errors")];
|
|
888
887
|
var wt;
|
|
889
|
-
new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt = (ot =
|
|
888
|
+
new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt = (ot = r({ attribute: !1 }), ct = r({ attribute: !1 }), "errors"), nt = class extends i {
|
|
890
889
|
constructor(...e) {
|
|
891
890
|
super(...e), ft(this, P, (rt(this), st(this, []))), ft(this, F, lt(this, !0));
|
|
892
891
|
}
|
|
@@ -912,14 +911,14 @@ new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt
|
|
|
912
911
|
return e === "folder+contents" ? "folder and contents" : e === "container" ? "folder" : e === "contents" ? "contents" : "resource";
|
|
913
912
|
}
|
|
914
913
|
render() {
|
|
915
|
-
return this.errors.length ?
|
|
914
|
+
return this.errors.length ? s`
|
|
916
915
|
<solid-ui-error-state
|
|
917
916
|
title="Some access changes could not be saved"
|
|
918
917
|
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."}
|
|
919
918
|
@close=${this.onClose}
|
|
920
919
|
>
|
|
921
920
|
<ul class="access-control-save-errors">
|
|
922
|
-
${this.errors.map((e) =>
|
|
921
|
+
${this.errors.map((e) => s`
|
|
923
922
|
<li>
|
|
924
923
|
<span class="access-control-save-error-label">${e.label}</span>
|
|
925
924
|
<span class="access-control-save-error-detail">
|
|
@@ -930,7 +929,7 @@ new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt
|
|
|
930
929
|
`)}
|
|
931
930
|
</ul>
|
|
932
931
|
</solid-ui-error-state>
|
|
933
|
-
` :
|
|
932
|
+
` : s``;
|
|
934
933
|
}
|
|
935
934
|
}, {e: [st, lt, rt], c: [wt, it]} = vt(nt, [[
|
|
936
935
|
ot,
|
|
@@ -940,18 +939,18 @@ new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt
|
|
|
940
939
|
ct,
|
|
941
940
|
1,
|
|
942
941
|
"successfulChangesRefreshed"
|
|
943
|
-
]], at, 0, void 0,
|
|
942
|
+
]], at, 0, void 0, i), nt), tt = class extends Ct {
|
|
944
943
|
constructor() {
|
|
945
944
|
super(wt), _t(this, "styles", et), it();
|
|
946
945
|
}
|
|
947
946
|
}, _t(tt, ut, void 0), tt)();
|
|
948
947
|
// src/components/access-control-modal/AccessControlModal.styles.css
|
|
949
|
-
var Tt =
|
|
948
|
+
var Tt = a`: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}}}}`;
|
|
950
949
|
// src/components/access-control-modal/accessGrantDrafts.ts
|
|
951
950
|
function Et(e) {
|
|
952
951
|
return {
|
|
953
952
|
...e,
|
|
954
|
-
agentClass: e.agentClass.filter((e) => e !==
|
|
953
|
+
agentClass: e.agentClass.filter((e) => e !== m.iri && e !== f.iri)
|
|
955
954
|
};
|
|
956
955
|
}
|
|
957
956
|
function Dt(e) {
|
|
@@ -987,17 +986,17 @@ function kt(e) {
|
|
|
987
986
|
return t.set(n, r + 1), r === 0 ? n : `${n}#${r}`;
|
|
988
987
|
});
|
|
989
988
|
}
|
|
990
|
-
function At(
|
|
991
|
-
let
|
|
992
|
-
...
|
|
993
|
-
...
|
|
994
|
-
...
|
|
995
|
-
...
|
|
989
|
+
function At(e) {
|
|
990
|
+
let t = [
|
|
991
|
+
...e.agent,
|
|
992
|
+
...e.agentGroup,
|
|
993
|
+
...e.agentClass,
|
|
994
|
+
...e.origin
|
|
996
995
|
];
|
|
997
|
-
return
|
|
996
|
+
return t.length ? t.map((e) => c(d(e))).join(", ") : "Unknown access holder";
|
|
998
997
|
}
|
|
999
998
|
function jt(e) {
|
|
1000
|
-
return
|
|
999
|
+
return y.acl.roleFromModes(e.mode);
|
|
1001
1000
|
}
|
|
1002
1001
|
function Mt(e) {
|
|
1003
1002
|
let t = Et(e);
|
|
@@ -1031,15 +1030,15 @@ function Ft(e) {
|
|
|
1031
1030
|
}));
|
|
1032
1031
|
}
|
|
1033
1032
|
function It(e) {
|
|
1034
|
-
let t = e.filter((e) => e.agentClass.includes(
|
|
1035
|
-
return t.length ?
|
|
1033
|
+
let t = e.filter((e) => e.agentClass.includes(m.iri)).flatMap((e) => e.mode);
|
|
1034
|
+
return t.length ? y.acl.roleFromModes(t) : "No Access";
|
|
1036
1035
|
}
|
|
1037
1036
|
function Lt(e) {
|
|
1038
|
-
let
|
|
1039
|
-
return
|
|
1037
|
+
let t = e.filter((e) => e.agentClass.includes(f.iri)).flatMap((e) => e.mode);
|
|
1038
|
+
return t.length ? y.acl.publicRoleFromModes(t) : "No Access";
|
|
1040
1039
|
}
|
|
1041
|
-
function Rt(
|
|
1042
|
-
return
|
|
1040
|
+
function Rt(e) {
|
|
1041
|
+
return e.iri === m.iri ? "Authenticated users" : e.iri === f.iri ? "Public" : c(d(e.iri)).trim() || e.iri;
|
|
1043
1042
|
}
|
|
1044
1043
|
// ~icons/lucide/book-user
|
|
1045
1044
|
var zt = class extends HTMLElement {
|
|
@@ -1063,7 +1062,7 @@ var Vt = class extends HTMLElement {
|
|
|
1063
1062
|
};
|
|
1064
1063
|
customElements.get("icon-lucide-users") || customElements.define("icon-lucide-users", Vt);
|
|
1065
1064
|
// src/components/access-control-modal/AccessControlAddAccess.styles.css
|
|
1066
|
-
var Ht =
|
|
1065
|
+
var Ht = a`: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;
|
|
1067
1066
|
function H(e, t, n) {
|
|
1068
1067
|
ln(e, t), t.set(e, n);
|
|
1069
1068
|
}
|
|
@@ -1236,7 +1235,7 @@ function _n(e) {
|
|
|
1236
1235
|
return e;
|
|
1237
1236
|
}
|
|
1238
1237
|
function vn(e) {
|
|
1239
|
-
return
|
|
1238
|
+
return s`
|
|
1240
1239
|
<span class="access-grants-directory-entry">
|
|
1241
1240
|
${yn(e)}
|
|
1242
1241
|
<span>${e.label}</span>
|
|
@@ -1244,11 +1243,11 @@ function vn(e) {
|
|
|
1244
1243
|
`;
|
|
1245
1244
|
}
|
|
1246
1245
|
function yn(e) {
|
|
1247
|
-
return e.sources.includes("contacts") || e.sources.includes("groups") ?
|
|
1246
|
+
return e.sources.includes("contacts") || e.sources.includes("groups") ? s`<icon-lucide-book-user style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-book-user>` : e.sources.includes("friends") ? s`<icon-lucide-users style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-users>` : e.sources.includes("catalog") ? s`<icon-lucide-user-round style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-user-round>` : t;
|
|
1248
1247
|
}
|
|
1249
|
-
qt = [
|
|
1248
|
+
qt = [n("solid-ui-access-control-add-access")];
|
|
1250
1249
|
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 =
|
|
1250
|
+
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 = r({ attribute: !1 }), Xt = r({ attribute: !1 }), Qt = r({ attribute: !1 }), en = r({ attribute: !1 }), nn = r({ type: Boolean }), an = r({ attribute: !1 }), "principalInputValue"), Wt = class extends i {
|
|
1252
1251
|
constructor(...e) {
|
|
1253
1252
|
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));
|
|
1254
1253
|
}
|
|
@@ -1309,7 +1308,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1309
1308
|
}));
|
|
1310
1309
|
}
|
|
1311
1310
|
onRoleChange(e) {
|
|
1312
|
-
let t = e.detail.option.value, n = typeof t == "string" ?
|
|
1311
|
+
let t = e.detail.option.value, n = typeof t == "string" ? v.find((e) => e === t) : void 0;
|
|
1313
1312
|
n && this.dispatchEvent(new CustomEvent("role-changed", {
|
|
1314
1313
|
detail: { role: n },
|
|
1315
1314
|
bubbles: !0,
|
|
@@ -1328,7 +1327,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1328
1327
|
return typeof t?.value == "string" ? t.value : "";
|
|
1329
1328
|
}
|
|
1330
1329
|
render() {
|
|
1331
|
-
return
|
|
1330
|
+
return s`
|
|
1332
1331
|
<section class="access-grants-form" aria-label="Add access">
|
|
1333
1332
|
<p>Add person, group or software agent URL.</p>
|
|
1334
1333
|
<div class="access-grants-form-main">
|
|
@@ -1344,7 +1343,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1344
1343
|
@input=${this.onPrincipalInput}
|
|
1345
1344
|
@change=${this.onPrincipalSelect}
|
|
1346
1345
|
></solid-ui-combobox>
|
|
1347
|
-
${this.inputError ?
|
|
1346
|
+
${this.inputError ? s`<p class="access-principal-error" role="alert">${this.inputError}</p>` : t}
|
|
1348
1347
|
${this.renderPendingAccessGrants()}
|
|
1349
1348
|
</div>
|
|
1350
1349
|
<solid-ui-combobox
|
|
@@ -1353,7 +1352,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1353
1352
|
.value=${this.addAccessRoleValue}
|
|
1354
1353
|
@change=${this.onRoleChange}
|
|
1355
1354
|
>
|
|
1356
|
-
${
|
|
1355
|
+
${v.filter((e) => e !== "No Access").map((e) => s`
|
|
1357
1356
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
1358
1357
|
`)}
|
|
1359
1358
|
</solid-ui-combobox>
|
|
@@ -1362,12 +1361,12 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1362
1361
|
`;
|
|
1363
1362
|
}
|
|
1364
1363
|
renderPendingAccessGrants() {
|
|
1365
|
-
return this.pendingAccessGrants.length ?
|
|
1364
|
+
return this.pendingAccessGrants.length ? s`
|
|
1366
1365
|
<div class="access-grants-pending">
|
|
1367
|
-
${this.pendingAccessGrants.map((e,
|
|
1366
|
+
${this.pendingAccessGrants.map((e, n) => s`
|
|
1368
1367
|
<div class="access-grants-pending-item">
|
|
1369
1368
|
<span class="access-grants-pending-item-label">
|
|
1370
|
-
${e.targetKind === "trustedApp" ?
|
|
1369
|
+
${e.targetKind === "trustedApp" ? s`<icon-lucide-globe style="width: 13px; height: 13px; vertical-align: -2px;"></icon-lucide-globe>` : t}
|
|
1371
1370
|
${e.label}
|
|
1372
1371
|
</span>
|
|
1373
1372
|
<solid-ui-button
|
|
@@ -1375,7 +1374,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1375
1374
|
variant="ghost"
|
|
1376
1375
|
class="access-grants-pending-item-remove"
|
|
1377
1376
|
?disabled=${this.disabled}
|
|
1378
|
-
@click=${() => this.onPendingGrantRemove(
|
|
1377
|
+
@click=${() => this.onPendingGrantRemove(n)}
|
|
1379
1378
|
>
|
|
1380
1379
|
<span class="sr-only">Remove ${e.label}</span>
|
|
1381
1380
|
<icon-lucide-circle-x slot="icon"></icon-lucide-circle-x>
|
|
@@ -1383,7 +1382,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1383
1382
|
</div>
|
|
1384
1383
|
`)}
|
|
1385
1384
|
</div>
|
|
1386
|
-
` :
|
|
1385
|
+
` : t;
|
|
1387
1386
|
}
|
|
1388
1387
|
}, {e: [Yt, Zt, $t, tn, rn, on, Gt], c: [bn, Kt]} = fn(Wt, [
|
|
1389
1388
|
[
|
|
@@ -1416,7 +1415,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1416
1415
|
1,
|
|
1417
1416
|
"asyncOptionsProvider"
|
|
1418
1417
|
]
|
|
1419
|
-
], qt, 0, void 0,
|
|
1418
|
+
], qt, 0, void 0, i), Wt), Ut = class extends _n {
|
|
1420
1419
|
constructor() {
|
|
1421
1420
|
super(bn), dn(this, "styles", Ht), Kt();
|
|
1422
1421
|
}
|
|
@@ -1464,15 +1463,15 @@ async function En(e) {
|
|
|
1464
1463
|
} : Sn(e) ? {
|
|
1465
1464
|
kind: "origin",
|
|
1466
1465
|
subjectValue: new URL(e).origin
|
|
1467
|
-
} : await
|
|
1468
|
-
}
|
|
1469
|
-
async function Dn(
|
|
1470
|
-
if (!
|
|
1471
|
-
let
|
|
1472
|
-
await
|
|
1473
|
-
let
|
|
1474
|
-
if (!
|
|
1475
|
-
return
|
|
1466
|
+
} : await y.acl.classifyAccessControlSubject(e);
|
|
1467
|
+
}
|
|
1468
|
+
async function Dn(e, t) {
|
|
1469
|
+
if (!e || e.kind === "origin") return e?.subjectValue;
|
|
1470
|
+
let n = d(e.subjectValue);
|
|
1471
|
+
await y.store.fetcher.load(n.doc());
|
|
1472
|
+
let r = t?.trim() || c(n).trim();
|
|
1473
|
+
if (!r || r === e.subjectValue) throw Error("The access target has no usable display label.");
|
|
1474
|
+
return r;
|
|
1476
1475
|
}
|
|
1477
1476
|
async function On(e, t) {
|
|
1478
1477
|
let n = await En(e);
|
|
@@ -1508,33 +1507,33 @@ async function jn(e) {
|
|
|
1508
1507
|
label: `Use origin ${t}`,
|
|
1509
1508
|
value: t,
|
|
1510
1509
|
targetKind: "origin",
|
|
1511
|
-
template:
|
|
1510
|
+
template: s`<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>`
|
|
1512
1511
|
}];
|
|
1513
1512
|
if (!xn(e)) return [];
|
|
1514
1513
|
if (Sn(e)) return [{
|
|
1515
1514
|
label: `Use origin ${new URL(e).origin}`,
|
|
1516
1515
|
value: new URL(e).origin,
|
|
1517
1516
|
targetKind: "origin",
|
|
1518
|
-
template:
|
|
1517
|
+
template: s`<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>`
|
|
1519
1518
|
}];
|
|
1520
1519
|
let n = await kn(e);
|
|
1521
1520
|
return Tn(n ? [n] : []);
|
|
1522
1521
|
}
|
|
1523
1522
|
async function Mn(e) {
|
|
1524
1523
|
try {
|
|
1525
|
-
let t =
|
|
1524
|
+
let t = y.authn.currentUser();
|
|
1526
1525
|
if (!t) return [];
|
|
1527
|
-
await
|
|
1528
|
-
let n =
|
|
1529
|
-
return n.each(t,
|
|
1530
|
-
let r = n.any(t,
|
|
1526
|
+
await y.profile.loadProfile(t);
|
|
1527
|
+
let n = y.store;
|
|
1528
|
+
return n.each(t, b.acl("trustedApp")).flatMap((t) => {
|
|
1529
|
+
let r = n.any(t, b.acl("origin"));
|
|
1531
1530
|
if (!r || !Sn(r.value)) return [];
|
|
1532
1531
|
let i = new URL(r.value).origin;
|
|
1533
1532
|
return e && !`${i} trusted app`.toLowerCase().includes(e.toLowerCase()) ? [] : [{
|
|
1534
1533
|
label: `Trusted app: ${i}`,
|
|
1535
1534
|
value: i,
|
|
1536
1535
|
targetKind: "trustedApp",
|
|
1537
|
-
template:
|
|
1536
|
+
template: s`<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>`
|
|
1538
1537
|
}];
|
|
1539
1538
|
});
|
|
1540
1539
|
} catch {
|
|
@@ -1560,9 +1559,9 @@ var Pn = x(async (e) => {
|
|
|
1560
1559
|
});
|
|
1561
1560
|
let i = [];
|
|
1562
1561
|
try {
|
|
1563
|
-
i = await
|
|
1562
|
+
i = await y.directory.search({
|
|
1564
1563
|
query: t,
|
|
1565
|
-
sources:
|
|
1564
|
+
sources: _
|
|
1566
1565
|
});
|
|
1567
1566
|
} catch (e) {
|
|
1568
1567
|
if (!n.length && !r.length) throw e;
|
|
@@ -1591,8 +1590,8 @@ var Pn = x(async (e) => {
|
|
|
1591
1590
|
async function Fn(e, t, n = {}) {
|
|
1592
1591
|
let r = [], i = n.containerScope ?? "file";
|
|
1593
1592
|
for (let { subject: n, label: a, role: o } of t) try {
|
|
1594
|
-
let t = i === "folder+contents" ?
|
|
1595
|
-
await
|
|
1593
|
+
let t = i === "folder+contents" ? y.acl.planGrantContainerAndContents : i === "container" ? y.acl.planGrantContainer : i === "contents" ? y.acl.planGrantContainerContents : y.acl.planGrant, r = o === "No Access" ? await (i === "contents" ? y.acl.planRevokeContainerContents(e, n) : y.acl.planRevoke(e, n)) : await t(e, n, In(n, o));
|
|
1594
|
+
await y.acl.applyPlan(r);
|
|
1596
1595
|
} catch (e) {
|
|
1597
1596
|
r.push({
|
|
1598
1597
|
action: o === "No Access" ? "revoke" : "grant",
|
|
@@ -1605,13 +1604,13 @@ async function Fn(e, t, n = {}) {
|
|
|
1605
1604
|
}
|
|
1606
1605
|
return r;
|
|
1607
1606
|
}
|
|
1608
|
-
function In(e,
|
|
1609
|
-
if (e.type === "agentClass" && e.iri ===
|
|
1610
|
-
let e =
|
|
1611
|
-
if (!e) throw Error(`Public access does not support the ${
|
|
1612
|
-
return
|
|
1607
|
+
function In(e, t) {
|
|
1608
|
+
if (e.type === "agentClass" && e.iri === f.iri) {
|
|
1609
|
+
let e = h.find((e) => e === t);
|
|
1610
|
+
if (!e) throw Error(`Public access does not support the ${t} role.`);
|
|
1611
|
+
return y.acl.modesFromPublicRole(e);
|
|
1613
1612
|
}
|
|
1614
|
-
return
|
|
1613
|
+
return y.acl.modesFromRole(t);
|
|
1615
1614
|
}
|
|
1616
1615
|
// src/components/access-control-modal/buildAccessChanges.ts
|
|
1617
1616
|
function Ln({ pendingAccessGrants: e, generalAccessChanges: t, changedAccessGrants: n }) {
|
|
@@ -1808,9 +1807,9 @@ function qr(e) {
|
|
|
1808
1807
|
function Jr(e) {
|
|
1809
1808
|
return e != null;
|
|
1810
1809
|
}
|
|
1811
|
-
tr = [
|
|
1810
|
+
tr = [n("solid-ui-access-control-modal")];
|
|
1812
1811
|
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 =
|
|
1812
|
+
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 = r({ attribute: !1 }), ir = r({ attribute: !1 }), or = o(), cr = o(), ur = o(), fr = o(), mr = o(), gr = o(), vr = o(), br = o(), Sr = o(), wr = o(), Er = o(), Or = o(), Ar = o(), Mr = o(), Pr = o(), Ir = o(), "subjectUri"), zn = class extends e {
|
|
1814
1813
|
constructor(...e) {
|
|
1815
1814
|
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);
|
|
1816
1815
|
}
|
|
@@ -1945,27 +1944,27 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1945
1944
|
}
|
|
1946
1945
|
updated(e) {
|
|
1947
1946
|
super.updated(e), e.has("subjectUri") && this.loadAccessContext().catch((e) => {
|
|
1948
|
-
|
|
1947
|
+
l("Failed to load access control context", e);
|
|
1949
1948
|
}), e.has("accessGrants") && this.refreshAccessGrantLabels().catch((e) => {
|
|
1950
|
-
|
|
1949
|
+
l("Failed to refresh access grant labels", e);
|
|
1951
1950
|
}), e.has("accessContext") && !e.has("subjectUri") && this.refreshContainerScopeAnalysis();
|
|
1952
1951
|
}
|
|
1953
1952
|
refreshContainerScopeAnalysis() {
|
|
1954
|
-
this.isContainer() && this.accessContext ? (this.containerScopeAnalysis =
|
|
1953
|
+
this.isContainer() && this.accessContext ? (this.containerScopeAnalysis = g(this.accessContext), this.containerScope = this.containerScopeAnalysis.primaryScope, this.refreshScopedAccessGrantDrafts()) : this.containerScopeAnalysis = void 0;
|
|
1955
1954
|
}
|
|
1956
1955
|
async refreshAccessGrantLabels() {
|
|
1957
|
-
let
|
|
1958
|
-
if (!
|
|
1956
|
+
let e = ++this.accessGrantLabelRequestVersion, t = this.accessGrants, n = this.subjectUri, r = this.getSelectedContainerScope(), i = this.getScopedAccessGrants(r);
|
|
1957
|
+
if (!i.length) {
|
|
1959
1958
|
this.accessGrantDrafts = [];
|
|
1960
1959
|
return;
|
|
1961
1960
|
}
|
|
1962
|
-
let
|
|
1961
|
+
let a = await Promise.all(i.map(async (e) => (await Promise.all(e.agentGroup.map(async (e) => {
|
|
1963
1962
|
try {
|
|
1964
|
-
await
|
|
1963
|
+
await y.store.fetcher.load(d(e).doc());
|
|
1965
1964
|
} catch {}
|
|
1966
|
-
})), At(Et(
|
|
1967
|
-
if (
|
|
1968
|
-
let e = new Map(kt(
|
|
1965
|
+
})), At(Et(e)))));
|
|
1966
|
+
if (e === this.accessGrantLabelRequestVersion && this.accessGrants === t && this.subjectUri === n && this.getSelectedContainerScope() === r) {
|
|
1967
|
+
let e = new Map(kt(i).map((e, t) => [e, a[t]]));
|
|
1969
1968
|
this.accessGrantDrafts = this.accessGrantDrafts.map((t) => ({
|
|
1970
1969
|
...t,
|
|
1971
1970
|
subjectLabel: e.get(t.id) ?? t.subjectLabel
|
|
@@ -1973,8 +1972,8 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1973
1972
|
}
|
|
1974
1973
|
}
|
|
1975
1974
|
getDialogTitle() {
|
|
1976
|
-
let
|
|
1977
|
-
return !
|
|
1975
|
+
let e = this.subjectUri ? d(this.subjectUri) : void 0, t = e ? c(e).trim() : "";
|
|
1976
|
+
return !t || t === "this resource" ? "Manage Access of \"this resource\"" : `Manage Access of "${t}"`;
|
|
1978
1977
|
}
|
|
1979
1978
|
isContainer() {
|
|
1980
1979
|
return !!(this.subjectUri && new URL(this.subjectUri).pathname.endsWith("/"));
|
|
@@ -1983,12 +1982,12 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1983
1982
|
let e = ++this.accessContextRequestVersion, t = this.subjectUri;
|
|
1984
1983
|
if (this.accessContext = void 0, this.accessContextSubjectUri = void 0, this.accessContextError = "", this.accessContextLoading = !!t, !t) this.accessContextLoading = !1;
|
|
1985
1984
|
else try {
|
|
1986
|
-
let n = await
|
|
1985
|
+
let n = await y.acl.findEffectiveAcl(t);
|
|
1987
1986
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
1988
|
-
this.accessContext = n, this.accessContextSubjectUri = t, this.accessContext?.inherited && !this.accessGrants?.length && (this.accessGrants = this.accessContext.authorizations), this.refreshContainerScopeAnalysis(), this.protectedTarget =
|
|
1987
|
+
this.accessContext = n, this.accessContextSubjectUri = t, this.accessContext?.inherited && !this.accessGrants?.length && (this.accessGrants = this.accessContext.authorizations), this.refreshContainerScopeAnalysis(), this.protectedTarget = y.acl.isProtectedResource(t), this.protectedTarget && this.refreshScopedAccessGrantDrafts();
|
|
1989
1988
|
} catch (n) {
|
|
1990
1989
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
1991
|
-
this.accessContextError = n instanceof Error && n.message.trim() ? n.message : "Unable to load access settings for this resource.",
|
|
1990
|
+
this.accessContextError = n instanceof Error && n.message.trim() ? n.message : "Unable to load access settings for this resource.", l("Failed to load access control context", n);
|
|
1992
1991
|
} finally {
|
|
1993
1992
|
e === this.accessContextRequestVersion && this.subjectUri === t && (this.accessContextLoading = !1);
|
|
1994
1993
|
}
|
|
@@ -2003,14 +2002,14 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2003
2002
|
await this.loadAccessContext();
|
|
2004
2003
|
}
|
|
2005
2004
|
renderSharingInformation() {
|
|
2006
|
-
if (!this.accessContext) return
|
|
2007
|
-
let
|
|
2008
|
-
return
|
|
2005
|
+
if (!this.accessContext) return s``;
|
|
2006
|
+
let e = !this.accessContext.inherited, t = this.accessContext?.effectiveContainer, n = t ? c(d(t)).trim() : "", r = n && n !== t ? s`<strong>${n}</strong> (${t})` : s`<strong>${t ?? "the parent container"}</strong>`;
|
|
2007
|
+
return s`
|
|
2009
2008
|
<div class="access-control-sharing-state-panel">
|
|
2010
|
-
${
|
|
2009
|
+
${e ? s`
|
|
2011
2010
|
<div class="access-control-sharing-state-custom-row">
|
|
2012
2011
|
<p>This resource has its own sharing settings.</p>
|
|
2013
|
-
${this.protectedTarget ?
|
|
2012
|
+
${this.protectedTarget ? s`` : s`
|
|
2014
2013
|
<solid-ui-button
|
|
2015
2014
|
type="button"
|
|
2016
2015
|
variant="tertiary"
|
|
@@ -2021,13 +2020,13 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2021
2020
|
</solid-ui-button>
|
|
2022
2021
|
`}
|
|
2023
2022
|
</div>
|
|
2024
|
-
` :
|
|
2025
|
-
${this.protectedTarget ?
|
|
2023
|
+
` : t ? s`<p>This resource inherits sharing settings from ${r}.</p>` : s`<p>This resource inherits sharing settings, but no inherited default is available.</p>`}
|
|
2024
|
+
${this.protectedTarget ? s`<p class="access-control-sharing-state-protected-message">This is a protected storage resource. Its primary access-control settings cannot be reset here.</p>` : s``}
|
|
2026
2025
|
</div>
|
|
2027
2026
|
`;
|
|
2028
2027
|
}
|
|
2029
2028
|
renderSharingState() {
|
|
2030
|
-
return !this.accessContext || !this.advancedSharingOpen ?
|
|
2029
|
+
return !this.accessContext || !this.advancedSharingOpen ? s`` : s`
|
|
2031
2030
|
<section
|
|
2032
2031
|
class="access-control-sharing-state"
|
|
2033
2032
|
aria-labelledby="access-control-advanced-sharing-heading"
|
|
@@ -2044,7 +2043,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2044
2043
|
return this.isContainer() && this.containerScopeAnalysis?.mixed === !0;
|
|
2045
2044
|
}
|
|
2046
2045
|
renderAccessContextState() {
|
|
2047
|
-
return this.accessContextLoading ?
|
|
2046
|
+
return this.accessContextLoading ? s`<p role="status">Loading access settings...</p>` : this.accessContextError ? s`
|
|
2048
2047
|
<solid-ui-error-state
|
|
2049
2048
|
title="Could not load access settings"
|
|
2050
2049
|
message=${this.accessContextError}
|
|
@@ -2053,19 +2052,19 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2053
2052
|
Retry
|
|
2054
2053
|
</solid-ui-button>
|
|
2055
2054
|
</solid-ui-error-state>
|
|
2056
|
-
` : this.accessContext ?
|
|
2055
|
+
` : this.accessContext ? s`` : s`<p role="status">Access settings are not ready yet.</p>`;
|
|
2057
2056
|
}
|
|
2058
2057
|
renderMixedContainerWarning() {
|
|
2059
|
-
return this.hasMixedContainerPolicy() ?
|
|
2058
|
+
return this.hasMixedContainerPolicy() ? s`
|
|
2060
2059
|
<div class="access-control-mixed-policy-warning" role="alert">
|
|
2061
2060
|
<strong>This container has different access settings for the folder and its contents.</strong>
|
|
2062
2061
|
<span>Changing this mixed policy is an advanced feature. You can still change access for the folder or its contents separately below.</span>
|
|
2063
2062
|
</div>
|
|
2064
|
-
` :
|
|
2063
|
+
` : s``;
|
|
2065
2064
|
}
|
|
2066
2065
|
getScopedAccessGrants(e = this.getSelectedContainerScope()) {
|
|
2067
2066
|
let t = this.accessGrants ?? [];
|
|
2068
|
-
return !this.isContainer() || !this.subjectUri || this.protectedTarget ? t :
|
|
2067
|
+
return !this.isContainer() || !this.subjectUri || this.protectedTarget ? t : p(this.subjectUri, t, e, this.accessContext?.inherited ?? !1);
|
|
2069
2068
|
}
|
|
2070
2069
|
refreshScopedAccessGrantDrafts() {
|
|
2071
2070
|
let e = this.getScopedAccessGrants();
|
|
@@ -2075,7 +2074,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2075
2074
|
this.containerScope = e, this.refreshScopedAccessGrantDrafts();
|
|
2076
2075
|
}
|
|
2077
2076
|
renderAdvancedSharing() {
|
|
2078
|
-
return this.advancedSharingOpen ?
|
|
2077
|
+
return this.advancedSharingOpen ? s`
|
|
2079
2078
|
<section
|
|
2080
2079
|
id="access-control-advanced-sharing"
|
|
2081
2080
|
class="access-control-advanced-sharing"
|
|
@@ -2089,7 +2088,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2089
2088
|
<span class="access-control-advanced-sharing-description-line">Choose which access settings to edit.</span>
|
|
2090
2089
|
<span class="access-control-advanced-sharing-description-line">Save Changes applies your current edits only to that scope.</span>
|
|
2091
2090
|
</p>
|
|
2092
|
-
${this.isContainer() ?
|
|
2091
|
+
${this.isContainer() ? s`
|
|
2093
2092
|
<button
|
|
2094
2093
|
type="button"
|
|
2095
2094
|
class="access-control-same-access-toggle"
|
|
@@ -2127,7 +2126,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2127
2126
|
Contents Only
|
|
2128
2127
|
</solid-ui-button>
|
|
2129
2128
|
</div>
|
|
2130
|
-
` :
|
|
2129
|
+
` : s``}
|
|
2131
2130
|
<div class="access-control-advanced-sharing-actions">
|
|
2132
2131
|
<solid-ui-button
|
|
2133
2132
|
type="button"
|
|
@@ -2141,11 +2140,11 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2141
2140
|
</solid-ui-button>
|
|
2142
2141
|
</div>
|
|
2143
2142
|
</section>
|
|
2144
|
-
` :
|
|
2143
|
+
` : s``;
|
|
2145
2144
|
}
|
|
2146
2145
|
render() {
|
|
2147
2146
|
let e = this.getDialogTitle();
|
|
2148
|
-
return
|
|
2147
|
+
return s`
|
|
2149
2148
|
<solid-ui-dialog title=${e}>
|
|
2150
2149
|
<form @submit=${this.onSubmit}>
|
|
2151
2150
|
<solid-ui-dialog-content>
|
|
@@ -2207,7 +2206,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2207
2206
|
`;
|
|
2208
2207
|
}
|
|
2209
2208
|
async onSubmit(e) {
|
|
2210
|
-
e.preventDefault(), this.submitting || this.hasMixedContainerPolicy() || this.isConnected
|
|
2209
|
+
e.preventDefault(), this.submitting || this.hasMixedContainerPolicy() || (!this.isConnected || await this.ensureAccessContext()) && await this.commitPrincipalFromInputSafely();
|
|
2211
2210
|
}
|
|
2212
2211
|
async onSaveClick() {
|
|
2213
2212
|
if (this.submitting || this.hasMixedContainerPolicy() || this.isConnected && !await this.ensureAccessContext() || this.principalInputValue.trim() && !await this.commitPrincipalFromInputSafely()) return;
|
|
@@ -2224,8 +2223,8 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2224
2223
|
if (this.subjectUri && this.canMutate() && this.accessContext && !this.accessContext.inherited && !this.submitting && !this.hasMixedContainerPolicy()) {
|
|
2225
2224
|
this.submitting = !0, this.errors = this.errors.filter((e) => e.action === "input");
|
|
2226
2225
|
try {
|
|
2227
|
-
await
|
|
2228
|
-
let e = await
|
|
2226
|
+
await y.acl.resetToDefault(this.subjectUri), await this.loadAccessContext();
|
|
2227
|
+
let e = await y.acl.findAccessGrants(this.subjectUri);
|
|
2229
2228
|
this.accessGrants = this.accessContext?.inherited ? this.accessContext.authorizations : e;
|
|
2230
2229
|
} catch (e) {
|
|
2231
2230
|
this.errors = [...this.errors, {
|
|
@@ -2233,7 +2232,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2233
2232
|
targetUri: this.subjectUri,
|
|
2234
2233
|
label: "Custom sharing",
|
|
2235
2234
|
message: e instanceof Error ? e.message : "Unable to reset sharing."
|
|
2236
|
-
}],
|
|
2235
|
+
}], l("Failed to reset access control", e);
|
|
2237
2236
|
} finally {
|
|
2238
2237
|
this.submitting = !1;
|
|
2239
2238
|
}
|
|
@@ -2253,16 +2252,16 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2253
2252
|
if (i.length) {
|
|
2254
2253
|
this.errors = [...this.errors, ...i], this.principalInputValue = "", this.pendingAccessGrants = [];
|
|
2255
2254
|
try {
|
|
2256
|
-
this.accessGrants = await
|
|
2255
|
+
this.accessGrants = await y.acl.findAccessGrants(this.subjectUri);
|
|
2257
2256
|
} catch (e) {
|
|
2258
2257
|
this.successfulChangesRefreshed = !1, this.errors = [...this.errors, {
|
|
2259
2258
|
action: "save",
|
|
2260
2259
|
targetUri: this.subjectUri,
|
|
2261
2260
|
label: "Shared with list",
|
|
2262
2261
|
message: e instanceof Error ? e.message : "Unable to refresh the access list."
|
|
2263
|
-
}],
|
|
2262
|
+
}], l("Failed to refresh access grants after save errors", e);
|
|
2264
2263
|
}
|
|
2265
|
-
|
|
2264
|
+
l("Failed to save some access changes", i);
|
|
2266
2265
|
return;
|
|
2267
2266
|
}
|
|
2268
2267
|
this.principalInputValue = "", this.pendingAccessGrants = [], this.close();
|
|
@@ -2286,13 +2285,13 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2286
2285
|
}
|
|
2287
2286
|
getGeneralAccessChanges() {
|
|
2288
2287
|
if (!this.subjectUri) return [];
|
|
2289
|
-
let e = this.getScopedAccessGrants(),
|
|
2290
|
-
return [this.authenticatedAccessRoleValue ===
|
|
2291
|
-
subject:
|
|
2288
|
+
let e = this.getScopedAccessGrants(), t = It(e), n = Lt(e);
|
|
2289
|
+
return [this.authenticatedAccessRoleValue === t ? void 0 : {
|
|
2290
|
+
subject: m,
|
|
2292
2291
|
role: this.authenticatedAccessRoleValue,
|
|
2293
2292
|
label: "Authenticated users"
|
|
2294
|
-
}, this.publicAccessRoleValue ===
|
|
2295
|
-
subject:
|
|
2293
|
+
}, this.publicAccessRoleValue === n ? void 0 : {
|
|
2294
|
+
subject: f,
|
|
2296
2295
|
role: this.publicAccessRoleValue,
|
|
2297
2296
|
label: "Public"
|
|
2298
2297
|
}].filter(Jr);
|
|
@@ -2336,12 +2335,12 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2336
2335
|
label: "Access target",
|
|
2337
2336
|
targetUri: this.principalInputValue.trim(),
|
|
2338
2337
|
message: "We could not verify this access target. Check the value and try again."
|
|
2339
|
-
}),
|
|
2338
|
+
}), l("Failed to commit pending access grants", t), !1) : (l("Ignored stale access-target validation error", t), !1);
|
|
2340
2339
|
}
|
|
2341
2340
|
}
|
|
2342
2341
|
async queuePendingPrincipal(e, t = this.addAccessRoleValue, n, r, i) {
|
|
2343
2342
|
let a = r ?? this.principalInputValue.trim(), o = await this.createPendingAccessGrant(e, t, n, i);
|
|
2344
|
-
if ("error" in o) return this.principalInputValue.trim() === a && this.setInputError(o.error),
|
|
2343
|
+
if ("error" in o) return this.principalInputValue.trim() === a && this.setInputError(o.error), l("Failed to add access grant:", o.error.message), !1;
|
|
2345
2344
|
let s = [...this.pendingAccessGrants, o.grant];
|
|
2346
2345
|
return this.pendingAccessGrants = this.dedupePendingAccessGrants(s), this.principalInputValue.trim() === a && (this.clearInputError(), this.principalInputValue = ""), !0;
|
|
2347
2346
|
}
|
|
@@ -2465,7 +2464,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2465
2464
|
1,
|
|
2466
2465
|
"protectedTarget"
|
|
2467
2466
|
]
|
|
2468
|
-
], tr, 0, void 0,
|
|
2467
|
+
], tr, 0, void 0, e), zn), Rn = class extends qr {
|
|
2469
2468
|
constructor() {
|
|
2470
2469
|
super(Yr), $(this, "styles", Tt), er();
|
|
2471
2470
|
}
|
|
@@ -2474,4 +2473,4 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2474
2473
|
var Xr = Yr;
|
|
2475
2474
|
export { Yr as n, Xr as t };
|
|
2476
2475
|
|
|
2477
|
-
//# sourceMappingURL=access-control-modal-
|
|
2476
|
+
//# sourceMappingURL=access-control-modal-B1mFFIyz.js.map
|