solid-ui 5.0.2-4 → 5.0.2-6
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/{ResourceActionsMenu-Bllpr4M5.js → ResourceActionsMenu-KFMLta44.js} +78 -69
- package/dist/chunks/ResourceActionsMenu-KFMLta44.js.map +1 -0
- package/dist/chunks/{access-control-modal-CwmY_Dod.js → access-control-modal-BZdBv6VD.js} +165 -165
- package/dist/chunks/{access-control-modal-CwmY_Dod.js.map → access-control-modal-BZdBv6VD.js.map} +1 -1
- package/dist/chunks/{account-CoHPKKDu.js → account-DWmMJre6.js} +22 -22
- package/dist/chunks/{account-CoHPKKDu.js.map → account-DWmMJre6.js.map} +1 -1
- package/dist/chunks/{auth-CocCqS1p.js → auth-EK-iYNYZ.js} +37 -37
- package/dist/chunks/{auth-CocCqS1p.js.map → auth-EK-iYNYZ.js.map} +1 -1
- package/dist/chunks/{avatar-sNdKdWVO.js → avatar-BBgvMlqv.js} +13 -13
- package/dist/chunks/{avatar-sNdKdWVO.js.map → avatar-BBgvMlqv.js.map} +1 -1
- package/dist/chunks/{combobox-fSTp9qoT.js → combobox-DS6byaf1.js} +3 -3
- package/dist/chunks/{combobox-fSTp9qoT.js.map → combobox-DS6byaf1.js.map} +1 -1
- package/dist/chunks/{error-state-BD4_Wrkz.js → error-state-jV9dlFX2.js} +2 -2
- package/dist/chunks/{error-state-BD4_Wrkz.js.map → error-state-jV9dlFX2.js.map} +1 -1
- package/dist/chunks/{file-explorer-header-D0TebSYR.js → file-explorer-header-BJzo6xDU.js} +50 -50
- package/dist/chunks/{file-explorer-header-D0TebSYR.js.map → file-explorer-header-BJzo6xDU.js.map} +1 -1
- package/dist/chunks/{guard-BOicu9dt.js → guard-SxVT1xr4.js} +13 -13
- package/dist/chunks/{guard-BOicu9dt.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/{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-clTw_9tX.js → login-button-Dd0rwZJk.js} +11 -11
- package/dist/chunks/{login-button-clTw_9tX.js.map → login-button-Dd0rwZJk.js.map} +1 -1
- package/dist/chunks/{logout-button-CP-Pz70O.js → logout-button-Da34Lrnq.js} +11 -11
- package/dist/chunks/{logout-button-CP-Pz70O.js.map → logout-button-Da34Lrnq.js.map} +1 -1
- package/dist/chunks/{menu-D0k2fkiE.js → menu-BNJU654v.js} +2 -2
- package/dist/chunks/{menu-D0k2fkiE.js.map → menu-BNJU654v.js.map} +1 -1
- package/dist/chunks/{provider-Cuv3Kp6G.js → provider-B3FoP2qW.js} +11 -11
- package/dist/chunks/{provider-Cuv3Kp6G.js.map → provider-B3FoP2qW.js.map} +1 -1
- package/dist/chunks/{rdf-form-DVmTw3RG.js → rdf-form-BkKDmFPD.js} +36 -36
- package/dist/chunks/{rdf-form-DVmTw3RG.js.map → rdf-form-BkKDmFPD.js.map} +1 -1
- package/dist/chunks/{rdf-input-CRYLK-27.js → rdf-input-BPePtqfS.js} +61 -61
- package/dist/chunks/{rdf-input-CRYLK-27.js.map → rdf-input-BPePtqfS.js.map} +1 -1
- package/dist/chunks/{signup-button-CexdMWj6.js → signup-button-DOInssOu.js} +11 -11
- package/dist/chunks/{signup-button-CexdMWj6.js.map → signup-button-DOInssOu.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/square-arrow-out-up-right-DaALlpHo.js +9 -0
- package/dist/chunks/square-arrow-out-up-right-DaALlpHo.js.map +1 -0
- package/dist/chunks/{src-DQgHAH3d.js → src-Cv9Lm1V-.js} +3009 -2980
- package/dist/chunks/src-Cv9Lm1V-.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-C92ihtlF.js} +733 -737
- package/dist/chunks/widgets-C92ihtlF.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/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/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/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.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/combobox/Combobox.cjs.js +1 -1
- package/dist/components/combobox/Combobox.esm.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-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/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/error-state/ErrorState.cjs.js +1 -1
- package/dist/components/error-state/ErrorState.esm.js +1 -1
- package/dist/components/error-state.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +2 -2
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +10 -10
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +5 -5
- package/dist/components/file-explorer-header.js +1 -1
- package/dist/components/guard.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.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.js +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 +9 -3
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +18 -9
- 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/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.js +21 -21
- 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 +23 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -11
- 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.d.ts +1 -0
- package/dist/lib/file-explorer/index.d.ts.map +1 -1
- package/dist/lib/file-explorer/index.esm.js +2 -1
- package/dist/lib/file-explorer/pane-menu-items.cjs.js +2 -0
- package/dist/lib/file-explorer/pane-menu-items.cjs.js.map +1 -0
- package/dist/lib/file-explorer/pane-menu-items.d.ts +22 -0
- package/dist/lib/file-explorer/pane-menu-items.d.ts.map +1 -0
- package/dist/lib/file-explorer/pane-menu-items.esm.js +20 -0
- package/dist/lib/file-explorer/pane-menu-items.esm.js.map +1 -0
- 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.esm.js +8 -8
- 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 -11
- 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 +34 -28
- package/dist/solid-ui.min.js +34 -28
- 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/ResourceActionsMenu-Bllpr4M5.js.map +0 -1
- package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +0 -1
- package/dist/chunks/src-DQgHAH3d.js.map +0 -1
- package/dist/chunks/widgets-BBEQu0CS.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u } from "./style-
|
|
3
|
-
import { T as
|
|
4
|
-
import {
|
|
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-C92ihtlF.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";
|
|
5
|
+
import "./globe-CsCgZcy5.js";
|
|
5
6
|
import "./x-D1JUUSOS.js";
|
|
6
|
-
import "./button-D6qO2idW.js";
|
|
7
7
|
import "./dialog-CgYK767T.js";
|
|
8
8
|
import "./dialog-content-DjwRH1ci.js";
|
|
9
9
|
import "./dialog-footer-GQWi8lfB.js";
|
|
10
|
-
import
|
|
10
|
+
import "./button-D6qO2idW.js";
|
|
11
|
+
import { r as x } from "./combobox-DS6byaf1.js";
|
|
11
12
|
import "./combobox-option-DOtGuKel.js";
|
|
12
|
-
import "./
|
|
13
|
-
import "./error-state-BD4_Wrkz.js";
|
|
13
|
+
import "./error-state-jV9dlFX2.js";
|
|
14
14
|
// ~icons/lucide/circle-x
|
|
15
15
|
var S = class extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
@@ -26,7 +26,7 @@ var C = class extends HTMLElement {
|
|
|
26
26
|
};
|
|
27
27
|
customElements.get("icon-lucide-folder-open") || customElements.define("icon-lucide-folder-open", C);
|
|
28
28
|
// src/components/access-control-modal/AccessControlSharedAccess.styles.css
|
|
29
|
-
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;
|
|
30
30
|
function le(e, t, n) {
|
|
31
31
|
ue(e, t), t.set(e, n);
|
|
32
32
|
}
|
|
@@ -198,9 +198,9 @@ function ye(e) {
|
|
|
198
198
|
function be(e) {
|
|
199
199
|
return e;
|
|
200
200
|
}
|
|
201
|
-
ee = [
|
|
201
|
+
ee = [n("solid-ui-access-control-shared-access")];
|
|
202
202
|
var xe;
|
|
203
|
-
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 {
|
|
204
204
|
constructor(...e) {
|
|
205
205
|
super(...e), le(this, D, (A(this), ne(this, []))), le(this, O, ie(this, !1)), le(this, k, oe(this, ""));
|
|
206
206
|
}
|
|
@@ -231,7 +231,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
231
231
|
typeof t.label == "string" && (this.searchValue = t.label);
|
|
232
232
|
}
|
|
233
233
|
onAccessGrantRoleChange(e, t) {
|
|
234
|
-
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;
|
|
235
235
|
if (!r) return;
|
|
236
236
|
let i = {
|
|
237
237
|
id: e,
|
|
@@ -248,7 +248,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
248
248
|
return this.accessGrantViewModels.filter(({ subjectLabel: t, subjects: n }) => n.length ? !e || t.toLowerCase().includes(e) : !1);
|
|
249
249
|
}
|
|
250
250
|
renderAccessGrant(e) {
|
|
251
|
-
return
|
|
251
|
+
return s`
|
|
252
252
|
<li>
|
|
253
253
|
${this.renderAuthorizationBadge(e.authorization, e.subjectLabel)}
|
|
254
254
|
<h3>${e.subjectLabel}</h3>
|
|
@@ -258,36 +258,36 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
258
258
|
}
|
|
259
259
|
renderAuthorizationBadge(e, t) {
|
|
260
260
|
let n = this.getAuthorizationBadge(e, t);
|
|
261
|
-
return
|
|
261
|
+
return s`
|
|
262
262
|
<div class="access-grants-image access-grants-image--${n.kind}">
|
|
263
|
-
${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>`}
|
|
264
264
|
</div>
|
|
265
265
|
`;
|
|
266
266
|
}
|
|
267
|
-
getAuthorizationBadge(
|
|
268
|
-
let
|
|
269
|
-
if (
|
|
270
|
-
let
|
|
267
|
+
getAuthorizationBadge(e, t) {
|
|
268
|
+
let n = e.agent[0];
|
|
269
|
+
if (n) {
|
|
270
|
+
let e = u(d(n));
|
|
271
271
|
return {
|
|
272
272
|
kind: "agent",
|
|
273
|
-
image:
|
|
274
|
-
text:
|
|
273
|
+
image: e,
|
|
274
|
+
text: e ? "" : this.getInitials(t, 2)
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
if (
|
|
277
|
+
if (e.agentGroup[0]) return {
|
|
278
278
|
kind: "agentGroup",
|
|
279
|
-
text: this.getInitials(
|
|
279
|
+
text: this.getInitials(t, 1)
|
|
280
280
|
};
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
283
|
-
let
|
|
281
|
+
let r = e.agentClass[0];
|
|
282
|
+
if (r) {
|
|
283
|
+
let e = u(d(r));
|
|
284
284
|
return {
|
|
285
285
|
kind: "agentClass",
|
|
286
|
-
image:
|
|
287
|
-
text:
|
|
286
|
+
image: e,
|
|
287
|
+
text: e ? "" : this.getInitials(t, 2)
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
return
|
|
290
|
+
return e.origin[0] ? {
|
|
291
291
|
kind: "origin",
|
|
292
292
|
text: "O",
|
|
293
293
|
image: ""
|
|
@@ -300,7 +300,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
300
300
|
return (e.split(/\s+/).filter(Boolean).slice(0, t).map((e) => e[0]).join("") || e.slice(0, t)).toUpperCase();
|
|
301
301
|
}
|
|
302
302
|
renderAuthorizationRole(e, t) {
|
|
303
|
-
return
|
|
303
|
+
return s`
|
|
304
304
|
<solid-ui-combobox
|
|
305
305
|
class="access-role-select access-role-select--compact access-grants-role access-grants-role--editable ${e === "Owner" ? "access-grants-role--owner" : ""}"
|
|
306
306
|
.disabled=${this.disabled}
|
|
@@ -312,13 +312,13 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
312
312
|
`;
|
|
313
313
|
}
|
|
314
314
|
renderGrantRoleOptions() {
|
|
315
|
-
return
|
|
315
|
+
return v.map((e) => s`
|
|
316
316
|
<solid-ui-combobox-option value=${e}>${e === "No Access" ? "Remove" : e}</solid-ui-combobox-option>
|
|
317
317
|
`);
|
|
318
318
|
}
|
|
319
319
|
render() {
|
|
320
320
|
let e = this.getFilteredAccessGrants();
|
|
321
|
-
return
|
|
321
|
+
return s`
|
|
322
322
|
<section aria-labelledby="access-grants-heading">
|
|
323
323
|
<div class="access-grants-header">
|
|
324
324
|
<h2 id="access-grants-heading">Shared with</h2>
|
|
@@ -331,7 +331,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
331
331
|
@input=${this.onSearchInput}
|
|
332
332
|
@change=${this.onSearchSelect}
|
|
333
333
|
>
|
|
334
|
-
${this.accessGrantViewModels.filter(({ subjects: e }) => e.length > 0).map(({ subjectLabel: e }) =>
|
|
334
|
+
${this.accessGrantViewModels.filter(({ subjects: e }) => e.length > 0).map(({ subjectLabel: e }) => s`
|
|
335
335
|
<solid-ui-combobox-option .value=${e}>
|
|
336
336
|
${e}
|
|
337
337
|
</solid-ui-combobox-option>
|
|
@@ -340,7 +340,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
340
340
|
</div>
|
|
341
341
|
<div class="access-grants-list">
|
|
342
342
|
<ul>
|
|
343
|
-
${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>`}
|
|
344
344
|
</ul>
|
|
345
345
|
</div>
|
|
346
346
|
</section>
|
|
@@ -362,7 +362,7 @@ new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k =
|
|
|
362
362
|
1,
|
|
363
363
|
"searchValue"
|
|
364
364
|
]
|
|
365
|
-
], ee, 0, void 0,
|
|
365
|
+
], ee, 0, void 0, i), E), T = class extends be {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(xe), me(this, "styles", w), j();
|
|
368
368
|
}
|
|
@@ -375,7 +375,7 @@ var Se = class extends HTMLElement {
|
|
|
375
375
|
};
|
|
376
376
|
customElements.get("icon-lucide-link") || customElements.define("icon-lucide-link", Se);
|
|
377
377
|
// src/components/access-control-modal/AccessControlGeneralAccess.styles.css
|
|
378
|
-
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;
|
|
379
379
|
function Ue(e, t, n) {
|
|
380
380
|
We(e, t), t.set(e, n);
|
|
381
381
|
}
|
|
@@ -547,9 +547,9 @@ function Ze(e) {
|
|
|
547
547
|
function Qe(e) {
|
|
548
548
|
return e;
|
|
549
549
|
}
|
|
550
|
-
Me = [
|
|
550
|
+
Me = [n("solid-ui-access-control-general-access")];
|
|
551
551
|
var $e;
|
|
552
|
-
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 {
|
|
553
553
|
constructor(...e) {
|
|
554
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));
|
|
555
555
|
}
|
|
@@ -578,10 +578,10 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
578
578
|
M(ke, this, e);
|
|
579
579
|
}
|
|
580
580
|
onAuthenticatedRoleChange(e) {
|
|
581
|
-
this.dispatchRoleChange("authenticated-role-changed", e,
|
|
581
|
+
this.dispatchRoleChange("authenticated-role-changed", e, v);
|
|
582
582
|
}
|
|
583
583
|
onPublicRoleChange(e) {
|
|
584
|
-
this.dispatchRoleChange("public-role-changed", e,
|
|
584
|
+
this.dispatchRoleChange("public-role-changed", e, h);
|
|
585
585
|
}
|
|
586
586
|
dispatchRoleChange(e, t, n) {
|
|
587
587
|
let r = t.detail.option.value;
|
|
@@ -597,21 +597,21 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
597
597
|
if (e.preventDefault(), this.subjectUri) try {
|
|
598
598
|
await navigator.clipboard.writeText(this.subjectUri);
|
|
599
599
|
} catch (e) {
|
|
600
|
-
|
|
600
|
+
l("Failed to copy resource link", e);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
renderAuthenticatedRoleOptions() {
|
|
604
|
-
return
|
|
604
|
+
return v.map((e) => s`
|
|
605
605
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
606
606
|
`);
|
|
607
607
|
}
|
|
608
608
|
renderPublicRoleOptions() {
|
|
609
|
-
return
|
|
609
|
+
return h.map((e) => s`
|
|
610
610
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
611
611
|
`);
|
|
612
612
|
}
|
|
613
613
|
renderAuthenticatedModeSelector() {
|
|
614
|
-
return
|
|
614
|
+
return s`
|
|
615
615
|
<solid-ui-combobox
|
|
616
616
|
class="access-role-select access-role-select--compact access-role-select--general access-grants-role access-grants-role--editable access-role-select--authenticated"
|
|
617
617
|
.disabled=${this.disabled}
|
|
@@ -623,7 +623,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
623
623
|
`;
|
|
624
624
|
}
|
|
625
625
|
renderPublicModeSelector() {
|
|
626
|
-
return
|
|
626
|
+
return s`
|
|
627
627
|
<solid-ui-combobox
|
|
628
628
|
class="access-role-select access-role-select--compact access-role-select--general access-grants-role access-grants-role--editable access-role-select--public"
|
|
629
629
|
.disabled=${this.disabled}
|
|
@@ -635,7 +635,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
635
635
|
`;
|
|
636
636
|
}
|
|
637
637
|
renderGeneralAccessIcon() {
|
|
638
|
-
return
|
|
638
|
+
return s`
|
|
639
639
|
<div class="access-grants-general-share-icon">
|
|
640
640
|
<div class="access-grants-general-share-icon-inner">
|
|
641
641
|
<icon-lucide-globe class="access-grants-general-share-icon-image"></icon-lucide-globe>
|
|
@@ -644,7 +644,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
644
644
|
`;
|
|
645
645
|
}
|
|
646
646
|
renderGeneralShareRow(e) {
|
|
647
|
-
return
|
|
647
|
+
return s`
|
|
648
648
|
<div class="access-grants-general-share">
|
|
649
649
|
<div class="access-grants-general-share-content">
|
|
650
650
|
${this.renderGeneralAccessIcon()}
|
|
@@ -658,7 +658,7 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
658
658
|
`;
|
|
659
659
|
}
|
|
660
660
|
render() {
|
|
661
|
-
return
|
|
661
|
+
return s`
|
|
662
662
|
<section class="access-grants-general" aria-labelledby="general-access-heading">
|
|
663
663
|
<div class="access-grants-general-header">
|
|
664
664
|
<h2 id="general-access-heading">General Access</h2>
|
|
@@ -705,13 +705,13 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
705
705
|
1,
|
|
706
706
|
"disabled"
|
|
707
707
|
]
|
|
708
|
-
], Me, 0, void 0,
|
|
708
|
+
], Me, 0, void 0, i), Te), we = class extends Qe {
|
|
709
709
|
constructor() {
|
|
710
710
|
super($e), Ke(this, "styles", Ce), je();
|
|
711
711
|
}
|
|
712
712
|
}, Ke(we, Ve, void 0), we)();
|
|
713
713
|
// src/components/access-control-modal/AccessControlErrors.styles.css
|
|
714
|
-
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;
|
|
715
715
|
function ft(e, t, n) {
|
|
716
716
|
pt(e, t), t.set(e, n);
|
|
717
717
|
}
|
|
@@ -883,9 +883,9 @@ function St(e) {
|
|
|
883
883
|
function Ct(e) {
|
|
884
884
|
return e;
|
|
885
885
|
}
|
|
886
|
-
at = [
|
|
886
|
+
at = [n("solid-ui-access-control-errors")];
|
|
887
887
|
var wt;
|
|
888
|
-
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 {
|
|
889
889
|
constructor(...e) {
|
|
890
890
|
super(...e), ft(this, P, (rt(this), st(this, []))), ft(this, F, lt(this, !0));
|
|
891
891
|
}
|
|
@@ -911,14 +911,14 @@ new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt
|
|
|
911
911
|
return e === "folder+contents" ? "folder and contents" : e === "container" ? "folder" : e === "contents" ? "contents" : "resource";
|
|
912
912
|
}
|
|
913
913
|
render() {
|
|
914
|
-
return this.errors.length ?
|
|
914
|
+
return this.errors.length ? s`
|
|
915
915
|
<solid-ui-error-state
|
|
916
916
|
title="Some access changes could not be saved"
|
|
917
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."}
|
|
918
918
|
@close=${this.onClose}
|
|
919
919
|
>
|
|
920
920
|
<ul class="access-control-save-errors">
|
|
921
|
-
${this.errors.map((e) =>
|
|
921
|
+
${this.errors.map((e) => s`
|
|
922
922
|
<li>
|
|
923
923
|
<span class="access-control-save-error-label">${e.label}</span>
|
|
924
924
|
<span class="access-control-save-error-detail">
|
|
@@ -929,7 +929,7 @@ new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt
|
|
|
929
929
|
`)}
|
|
930
930
|
</ul>
|
|
931
931
|
</solid-ui-error-state>
|
|
932
|
-
` :
|
|
932
|
+
` : s``;
|
|
933
933
|
}
|
|
934
934
|
}, {e: [st, lt, rt], c: [wt, it]} = vt(nt, [[
|
|
935
935
|
ot,
|
|
@@ -939,18 +939,18 @@ new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt
|
|
|
939
939
|
ct,
|
|
940
940
|
1,
|
|
941
941
|
"successfulChangesRefreshed"
|
|
942
|
-
]], at, 0, void 0,
|
|
942
|
+
]], at, 0, void 0, i), nt), tt = class extends Ct {
|
|
943
943
|
constructor() {
|
|
944
944
|
super(wt), _t(this, "styles", et), it();
|
|
945
945
|
}
|
|
946
946
|
}, _t(tt, ut, void 0), tt)();
|
|
947
947
|
// src/components/access-control-modal/AccessControlModal.styles.css
|
|
948
|
-
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}}}}`;
|
|
949
949
|
// src/components/access-control-modal/accessGrantDrafts.ts
|
|
950
950
|
function Et(e) {
|
|
951
951
|
return {
|
|
952
952
|
...e,
|
|
953
|
-
agentClass: e.agentClass.filter((e) => e !==
|
|
953
|
+
agentClass: e.agentClass.filter((e) => e !== m.iri && e !== f.iri)
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
function Dt(e) {
|
|
@@ -986,17 +986,17 @@ function kt(e) {
|
|
|
986
986
|
return t.set(n, r + 1), r === 0 ? n : `${n}#${r}`;
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
|
-
function At(
|
|
990
|
-
let
|
|
991
|
-
...
|
|
992
|
-
...
|
|
993
|
-
...
|
|
994
|
-
...
|
|
989
|
+
function At(e) {
|
|
990
|
+
let t = [
|
|
991
|
+
...e.agent,
|
|
992
|
+
...e.agentGroup,
|
|
993
|
+
...e.agentClass,
|
|
994
|
+
...e.origin
|
|
995
995
|
];
|
|
996
|
-
return
|
|
996
|
+
return t.length ? t.map((e) => c(d(e))).join(", ") : "Unknown access holder";
|
|
997
997
|
}
|
|
998
998
|
function jt(e) {
|
|
999
|
-
return
|
|
999
|
+
return y.acl.roleFromModes(e.mode);
|
|
1000
1000
|
}
|
|
1001
1001
|
function Mt(e) {
|
|
1002
1002
|
let t = Et(e);
|
|
@@ -1030,15 +1030,15 @@ function Ft(e) {
|
|
|
1030
1030
|
}));
|
|
1031
1031
|
}
|
|
1032
1032
|
function It(e) {
|
|
1033
|
-
let t = e.filter((e) => e.agentClass.includes(
|
|
1034
|
-
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";
|
|
1035
1035
|
}
|
|
1036
1036
|
function Lt(e) {
|
|
1037
|
-
let
|
|
1038
|
-
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";
|
|
1039
1039
|
}
|
|
1040
|
-
function Rt(
|
|
1041
|
-
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;
|
|
1042
1042
|
}
|
|
1043
1043
|
// ~icons/lucide/book-user
|
|
1044
1044
|
var zt = class extends HTMLElement {
|
|
@@ -1062,7 +1062,7 @@ var Vt = class extends HTMLElement {
|
|
|
1062
1062
|
};
|
|
1063
1063
|
customElements.get("icon-lucide-users") || customElements.define("icon-lucide-users", Vt);
|
|
1064
1064
|
// src/components/access-control-modal/AccessControlAddAccess.styles.css
|
|
1065
|
-
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;
|
|
1066
1066
|
function H(e, t, n) {
|
|
1067
1067
|
ln(e, t), t.set(e, n);
|
|
1068
1068
|
}
|
|
@@ -1235,7 +1235,7 @@ function _n(e) {
|
|
|
1235
1235
|
return e;
|
|
1236
1236
|
}
|
|
1237
1237
|
function vn(e) {
|
|
1238
|
-
return
|
|
1238
|
+
return s`
|
|
1239
1239
|
<span class="access-grants-directory-entry">
|
|
1240
1240
|
${yn(e)}
|
|
1241
1241
|
<span>${e.label}</span>
|
|
@@ -1243,11 +1243,11 @@ function vn(e) {
|
|
|
1243
1243
|
`;
|
|
1244
1244
|
}
|
|
1245
1245
|
function yn(e) {
|
|
1246
|
-
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;
|
|
1247
1247
|
}
|
|
1248
|
-
qt = [
|
|
1248
|
+
qt = [n("solid-ui-access-control-add-access")];
|
|
1249
1249
|
var bn;
|
|
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 =
|
|
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 {
|
|
1251
1251
|
constructor(...e) {
|
|
1252
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));
|
|
1253
1253
|
}
|
|
@@ -1308,7 +1308,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1308
1308
|
}));
|
|
1309
1309
|
}
|
|
1310
1310
|
onRoleChange(e) {
|
|
1311
|
-
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;
|
|
1312
1312
|
n && this.dispatchEvent(new CustomEvent("role-changed", {
|
|
1313
1313
|
detail: { role: n },
|
|
1314
1314
|
bubbles: !0,
|
|
@@ -1327,7 +1327,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1327
1327
|
return typeof t?.value == "string" ? t.value : "";
|
|
1328
1328
|
}
|
|
1329
1329
|
render() {
|
|
1330
|
-
return
|
|
1330
|
+
return s`
|
|
1331
1331
|
<section class="access-grants-form" aria-label="Add access">
|
|
1332
1332
|
<p>Add person, group or software agent URL.</p>
|
|
1333
1333
|
<div class="access-grants-form-main">
|
|
@@ -1343,7 +1343,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1343
1343
|
@input=${this.onPrincipalInput}
|
|
1344
1344
|
@change=${this.onPrincipalSelect}
|
|
1345
1345
|
></solid-ui-combobox>
|
|
1346
|
-
${this.inputError ?
|
|
1346
|
+
${this.inputError ? s`<p class="access-principal-error" role="alert">${this.inputError}</p>` : t}
|
|
1347
1347
|
${this.renderPendingAccessGrants()}
|
|
1348
1348
|
</div>
|
|
1349
1349
|
<solid-ui-combobox
|
|
@@ -1352,7 +1352,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1352
1352
|
.value=${this.addAccessRoleValue}
|
|
1353
1353
|
@change=${this.onRoleChange}
|
|
1354
1354
|
>
|
|
1355
|
-
${
|
|
1355
|
+
${v.filter((e) => e !== "No Access").map((e) => s`
|
|
1356
1356
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
1357
1357
|
`)}
|
|
1358
1358
|
</solid-ui-combobox>
|
|
@@ -1361,12 +1361,12 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1361
1361
|
`;
|
|
1362
1362
|
}
|
|
1363
1363
|
renderPendingAccessGrants() {
|
|
1364
|
-
return this.pendingAccessGrants.length ?
|
|
1364
|
+
return this.pendingAccessGrants.length ? s`
|
|
1365
1365
|
<div class="access-grants-pending">
|
|
1366
|
-
${this.pendingAccessGrants.map((e,
|
|
1366
|
+
${this.pendingAccessGrants.map((e, n) => s`
|
|
1367
1367
|
<div class="access-grants-pending-item">
|
|
1368
1368
|
<span class="access-grants-pending-item-label">
|
|
1369
|
-
${e.targetKind === "trustedApp" ?
|
|
1369
|
+
${e.targetKind === "trustedApp" ? s`<icon-lucide-globe style="width: 13px; height: 13px; vertical-align: -2px;"></icon-lucide-globe>` : t}
|
|
1370
1370
|
${e.label}
|
|
1371
1371
|
</span>
|
|
1372
1372
|
<solid-ui-button
|
|
@@ -1374,7 +1374,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1374
1374
|
variant="ghost"
|
|
1375
1375
|
class="access-grants-pending-item-remove"
|
|
1376
1376
|
?disabled=${this.disabled}
|
|
1377
|
-
@click=${() => this.onPendingGrantRemove(
|
|
1377
|
+
@click=${() => this.onPendingGrantRemove(n)}
|
|
1378
1378
|
>
|
|
1379
1379
|
<span class="sr-only">Remove ${e.label}</span>
|
|
1380
1380
|
<icon-lucide-circle-x slot="icon"></icon-lucide-circle-x>
|
|
@@ -1382,7 +1382,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1382
1382
|
</div>
|
|
1383
1383
|
`)}
|
|
1384
1384
|
</div>
|
|
1385
|
-
` :
|
|
1385
|
+
` : t;
|
|
1386
1386
|
}
|
|
1387
1387
|
}, {e: [Yt, Zt, $t, tn, rn, on, Gt], c: [bn, Kt]} = fn(Wt, [
|
|
1388
1388
|
[
|
|
@@ -1415,7 +1415,7 @@ new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1415
1415
|
1,
|
|
1416
1416
|
"asyncOptionsProvider"
|
|
1417
1417
|
]
|
|
1418
|
-
], qt, 0, void 0,
|
|
1418
|
+
], qt, 0, void 0, i), Wt), Ut = class extends _n {
|
|
1419
1419
|
constructor() {
|
|
1420
1420
|
super(bn), dn(this, "styles", Ht), Kt();
|
|
1421
1421
|
}
|
|
@@ -1463,15 +1463,15 @@ async function En(e) {
|
|
|
1463
1463
|
} : Sn(e) ? {
|
|
1464
1464
|
kind: "origin",
|
|
1465
1465
|
subjectValue: new URL(e).origin
|
|
1466
|
-
} : await
|
|
1467
|
-
}
|
|
1468
|
-
async function Dn(
|
|
1469
|
-
if (!
|
|
1470
|
-
let
|
|
1471
|
-
await
|
|
1472
|
-
let
|
|
1473
|
-
if (!
|
|
1474
|
-
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;
|
|
1475
1475
|
}
|
|
1476
1476
|
async function On(e, t) {
|
|
1477
1477
|
let n = await En(e);
|
|
@@ -1507,33 +1507,33 @@ async function jn(e) {
|
|
|
1507
1507
|
label: `Use origin ${t}`,
|
|
1508
1508
|
value: t,
|
|
1509
1509
|
targetKind: "origin",
|
|
1510
|
-
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>`
|
|
1511
1511
|
}];
|
|
1512
1512
|
if (!xn(e)) return [];
|
|
1513
1513
|
if (Sn(e)) return [{
|
|
1514
1514
|
label: `Use origin ${new URL(e).origin}`,
|
|
1515
1515
|
value: new URL(e).origin,
|
|
1516
1516
|
targetKind: "origin",
|
|
1517
|
-
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>`
|
|
1518
1518
|
}];
|
|
1519
1519
|
let n = await kn(e);
|
|
1520
1520
|
return Tn(n ? [n] : []);
|
|
1521
1521
|
}
|
|
1522
1522
|
async function Mn(e) {
|
|
1523
1523
|
try {
|
|
1524
|
-
let t =
|
|
1524
|
+
let t = y.authn.currentUser();
|
|
1525
1525
|
if (!t) return [];
|
|
1526
|
-
await
|
|
1527
|
-
let n =
|
|
1528
|
-
return n.each(t,
|
|
1529
|
-
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"));
|
|
1530
1530
|
if (!r || !Sn(r.value)) return [];
|
|
1531
1531
|
let i = new URL(r.value).origin;
|
|
1532
1532
|
return e && !`${i} trusted app`.toLowerCase().includes(e.toLowerCase()) ? [] : [{
|
|
1533
1533
|
label: `Trusted app: ${i}`,
|
|
1534
1534
|
value: i,
|
|
1535
1535
|
targetKind: "trustedApp",
|
|
1536
|
-
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>`
|
|
1537
1537
|
}];
|
|
1538
1538
|
});
|
|
1539
1539
|
} catch {
|
|
@@ -1559,9 +1559,9 @@ var Pn = x(async (e) => {
|
|
|
1559
1559
|
});
|
|
1560
1560
|
let i = [];
|
|
1561
1561
|
try {
|
|
1562
|
-
i = await
|
|
1562
|
+
i = await y.directory.search({
|
|
1563
1563
|
query: t,
|
|
1564
|
-
sources:
|
|
1564
|
+
sources: _
|
|
1565
1565
|
});
|
|
1566
1566
|
} catch (e) {
|
|
1567
1567
|
if (!n.length && !r.length) throw e;
|
|
@@ -1590,8 +1590,8 @@ var Pn = x(async (e) => {
|
|
|
1590
1590
|
async function Fn(e, t, n = {}) {
|
|
1591
1591
|
let r = [], i = n.containerScope ?? "file";
|
|
1592
1592
|
for (let { subject: n, label: a, role: o } of t) try {
|
|
1593
|
-
let t = i === "folder+contents" ?
|
|
1594
|
-
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);
|
|
1595
1595
|
} catch (e) {
|
|
1596
1596
|
r.push({
|
|
1597
1597
|
action: o === "No Access" ? "revoke" : "grant",
|
|
@@ -1604,13 +1604,13 @@ async function Fn(e, t, n = {}) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
return r;
|
|
1606
1606
|
}
|
|
1607
|
-
function In(e,
|
|
1608
|
-
if (e.type === "agentClass" && e.iri ===
|
|
1609
|
-
let e =
|
|
1610
|
-
if (!e) throw Error(`Public access does not support the ${
|
|
1611
|
-
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);
|
|
1612
1612
|
}
|
|
1613
|
-
return
|
|
1613
|
+
return y.acl.modesFromRole(t);
|
|
1614
1614
|
}
|
|
1615
1615
|
// src/components/access-control-modal/buildAccessChanges.ts
|
|
1616
1616
|
function Ln({ pendingAccessGrants: e, generalAccessChanges: t, changedAccessGrants: n }) {
|
|
@@ -1807,9 +1807,9 @@ function qr(e) {
|
|
|
1807
1807
|
function Jr(e) {
|
|
1808
1808
|
return e != null;
|
|
1809
1809
|
}
|
|
1810
|
-
tr = [
|
|
1810
|
+
tr = [n("solid-ui-access-control-modal")];
|
|
1811
1811
|
var Yr;
|
|
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 =
|
|
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 {
|
|
1813
1813
|
constructor(...e) {
|
|
1814
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);
|
|
1815
1815
|
}
|
|
@@ -1944,27 +1944,27 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1944
1944
|
}
|
|
1945
1945
|
updated(e) {
|
|
1946
1946
|
super.updated(e), e.has("subjectUri") && this.loadAccessContext().catch((e) => {
|
|
1947
|
-
|
|
1947
|
+
l("Failed to load access control context", e);
|
|
1948
1948
|
}), e.has("accessGrants") && this.refreshAccessGrantLabels().catch((e) => {
|
|
1949
|
-
|
|
1949
|
+
l("Failed to refresh access grant labels", e);
|
|
1950
1950
|
}), e.has("accessContext") && !e.has("subjectUri") && this.refreshContainerScopeAnalysis();
|
|
1951
1951
|
}
|
|
1952
1952
|
refreshContainerScopeAnalysis() {
|
|
1953
|
-
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;
|
|
1954
1954
|
}
|
|
1955
1955
|
async refreshAccessGrantLabels() {
|
|
1956
|
-
let
|
|
1957
|
-
if (!
|
|
1956
|
+
let e = ++this.accessGrantLabelRequestVersion, t = this.accessGrants, n = this.subjectUri, r = this.getSelectedContainerScope(), i = this.getScopedAccessGrants(r);
|
|
1957
|
+
if (!i.length) {
|
|
1958
1958
|
this.accessGrantDrafts = [];
|
|
1959
1959
|
return;
|
|
1960
1960
|
}
|
|
1961
|
-
let
|
|
1961
|
+
let a = await Promise.all(i.map(async (e) => (await Promise.all(e.agentGroup.map(async (e) => {
|
|
1962
1962
|
try {
|
|
1963
|
-
await
|
|
1963
|
+
await y.store.fetcher.load(d(e).doc());
|
|
1964
1964
|
} catch {}
|
|
1965
|
-
})), At(Et(
|
|
1966
|
-
if (
|
|
1967
|
-
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]]));
|
|
1968
1968
|
this.accessGrantDrafts = this.accessGrantDrafts.map((t) => ({
|
|
1969
1969
|
...t,
|
|
1970
1970
|
subjectLabel: e.get(t.id) ?? t.subjectLabel
|
|
@@ -1972,8 +1972,8 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
getDialogTitle() {
|
|
1975
|
-
let
|
|
1976
|
-
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}"`;
|
|
1977
1977
|
}
|
|
1978
1978
|
isContainer() {
|
|
1979
1979
|
return !!(this.subjectUri && new URL(this.subjectUri).pathname.endsWith("/"));
|
|
@@ -1982,12 +1982,12 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1982
1982
|
let e = ++this.accessContextRequestVersion, t = this.subjectUri;
|
|
1983
1983
|
if (this.accessContext = void 0, this.accessContextSubjectUri = void 0, this.accessContextError = "", this.accessContextLoading = !!t, !t) this.accessContextLoading = !1;
|
|
1984
1984
|
else try {
|
|
1985
|
-
let n = await
|
|
1985
|
+
let n = await y.acl.findEffectiveAcl(t);
|
|
1986
1986
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
1987
|
-
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();
|
|
1988
1988
|
} catch (n) {
|
|
1989
1989
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
1990
|
-
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);
|
|
1991
1991
|
} finally {
|
|
1992
1992
|
e === this.accessContextRequestVersion && this.subjectUri === t && (this.accessContextLoading = !1);
|
|
1993
1993
|
}
|
|
@@ -2002,14 +2002,14 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2002
2002
|
await this.loadAccessContext();
|
|
2003
2003
|
}
|
|
2004
2004
|
renderSharingInformation() {
|
|
2005
|
-
if (!this.accessContext) return
|
|
2006
|
-
let
|
|
2007
|
-
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`
|
|
2008
2008
|
<div class="access-control-sharing-state-panel">
|
|
2009
|
-
${
|
|
2009
|
+
${e ? s`
|
|
2010
2010
|
<div class="access-control-sharing-state-custom-row">
|
|
2011
2011
|
<p>This resource has its own sharing settings.</p>
|
|
2012
|
-
${this.protectedTarget ?
|
|
2012
|
+
${this.protectedTarget ? s`` : s`
|
|
2013
2013
|
<solid-ui-button
|
|
2014
2014
|
type="button"
|
|
2015
2015
|
variant="tertiary"
|
|
@@ -2020,13 +2020,13 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2020
2020
|
</solid-ui-button>
|
|
2021
2021
|
`}
|
|
2022
2022
|
</div>
|
|
2023
|
-
` :
|
|
2024
|
-
${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``}
|
|
2025
2025
|
</div>
|
|
2026
2026
|
`;
|
|
2027
2027
|
}
|
|
2028
2028
|
renderSharingState() {
|
|
2029
|
-
return !this.accessContext || !this.advancedSharingOpen ?
|
|
2029
|
+
return !this.accessContext || !this.advancedSharingOpen ? s`` : s`
|
|
2030
2030
|
<section
|
|
2031
2031
|
class="access-control-sharing-state"
|
|
2032
2032
|
aria-labelledby="access-control-advanced-sharing-heading"
|
|
@@ -2043,7 +2043,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2043
2043
|
return this.isContainer() && this.containerScopeAnalysis?.mixed === !0;
|
|
2044
2044
|
}
|
|
2045
2045
|
renderAccessContextState() {
|
|
2046
|
-
return this.accessContextLoading ?
|
|
2046
|
+
return this.accessContextLoading ? s`<p role="status">Loading access settings...</p>` : this.accessContextError ? s`
|
|
2047
2047
|
<solid-ui-error-state
|
|
2048
2048
|
title="Could not load access settings"
|
|
2049
2049
|
message=${this.accessContextError}
|
|
@@ -2052,19 +2052,19 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2052
2052
|
Retry
|
|
2053
2053
|
</solid-ui-button>
|
|
2054
2054
|
</solid-ui-error-state>
|
|
2055
|
-
` : this.accessContext ?
|
|
2055
|
+
` : this.accessContext ? s`` : s`<p role="status">Access settings are not ready yet.</p>`;
|
|
2056
2056
|
}
|
|
2057
2057
|
renderMixedContainerWarning() {
|
|
2058
|
-
return this.hasMixedContainerPolicy() ?
|
|
2058
|
+
return this.hasMixedContainerPolicy() ? s`
|
|
2059
2059
|
<div class="access-control-mixed-policy-warning" role="alert">
|
|
2060
2060
|
<strong>This container has different access settings for the folder and its contents.</strong>
|
|
2061
2061
|
<span>Changing this mixed policy is an advanced feature. You can still change access for the folder or its contents separately below.</span>
|
|
2062
2062
|
</div>
|
|
2063
|
-
` :
|
|
2063
|
+
` : s``;
|
|
2064
2064
|
}
|
|
2065
2065
|
getScopedAccessGrants(e = this.getSelectedContainerScope()) {
|
|
2066
2066
|
let t = this.accessGrants ?? [];
|
|
2067
|
-
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);
|
|
2068
2068
|
}
|
|
2069
2069
|
refreshScopedAccessGrantDrafts() {
|
|
2070
2070
|
let e = this.getScopedAccessGrants();
|
|
@@ -2074,7 +2074,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2074
2074
|
this.containerScope = e, this.refreshScopedAccessGrantDrafts();
|
|
2075
2075
|
}
|
|
2076
2076
|
renderAdvancedSharing() {
|
|
2077
|
-
return this.advancedSharingOpen ?
|
|
2077
|
+
return this.advancedSharingOpen ? s`
|
|
2078
2078
|
<section
|
|
2079
2079
|
id="access-control-advanced-sharing"
|
|
2080
2080
|
class="access-control-advanced-sharing"
|
|
@@ -2088,7 +2088,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2088
2088
|
<span class="access-control-advanced-sharing-description-line">Choose which access settings to edit.</span>
|
|
2089
2089
|
<span class="access-control-advanced-sharing-description-line">Save Changes applies your current edits only to that scope.</span>
|
|
2090
2090
|
</p>
|
|
2091
|
-
${this.isContainer() ?
|
|
2091
|
+
${this.isContainer() ? s`
|
|
2092
2092
|
<button
|
|
2093
2093
|
type="button"
|
|
2094
2094
|
class="access-control-same-access-toggle"
|
|
@@ -2126,7 +2126,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2126
2126
|
Contents Only
|
|
2127
2127
|
</solid-ui-button>
|
|
2128
2128
|
</div>
|
|
2129
|
-
` :
|
|
2129
|
+
` : s``}
|
|
2130
2130
|
<div class="access-control-advanced-sharing-actions">
|
|
2131
2131
|
<solid-ui-button
|
|
2132
2132
|
type="button"
|
|
@@ -2140,11 +2140,11 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2140
2140
|
</solid-ui-button>
|
|
2141
2141
|
</div>
|
|
2142
2142
|
</section>
|
|
2143
|
-
` :
|
|
2143
|
+
` : s``;
|
|
2144
2144
|
}
|
|
2145
2145
|
render() {
|
|
2146
2146
|
let e = this.getDialogTitle();
|
|
2147
|
-
return
|
|
2147
|
+
return s`
|
|
2148
2148
|
<solid-ui-dialog title=${e}>
|
|
2149
2149
|
<form @submit=${this.onSubmit}>
|
|
2150
2150
|
<solid-ui-dialog-content>
|
|
@@ -2206,7 +2206,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2206
2206
|
`;
|
|
2207
2207
|
}
|
|
2208
2208
|
async onSubmit(e) {
|
|
2209
|
-
e.preventDefault(), this.submitting || this.hasMixedContainerPolicy() || this.isConnected
|
|
2209
|
+
e.preventDefault(), this.submitting || this.hasMixedContainerPolicy() || (!this.isConnected || await this.ensureAccessContext()) && await this.commitPrincipalFromInputSafely();
|
|
2210
2210
|
}
|
|
2211
2211
|
async onSaveClick() {
|
|
2212
2212
|
if (this.submitting || this.hasMixedContainerPolicy() || this.isConnected && !await this.ensureAccessContext() || this.principalInputValue.trim() && !await this.commitPrincipalFromInputSafely()) return;
|
|
@@ -2223,8 +2223,8 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2223
2223
|
if (this.subjectUri && this.canMutate() && this.accessContext && !this.accessContext.inherited && !this.submitting && !this.hasMixedContainerPolicy()) {
|
|
2224
2224
|
this.submitting = !0, this.errors = this.errors.filter((e) => e.action === "input");
|
|
2225
2225
|
try {
|
|
2226
|
-
await
|
|
2227
|
-
let e = await
|
|
2226
|
+
await y.acl.resetToDefault(this.subjectUri), await this.loadAccessContext();
|
|
2227
|
+
let e = await y.acl.findAccessGrants(this.subjectUri);
|
|
2228
2228
|
this.accessGrants = this.accessContext?.inherited ? this.accessContext.authorizations : e;
|
|
2229
2229
|
} catch (e) {
|
|
2230
2230
|
this.errors = [...this.errors, {
|
|
@@ -2232,7 +2232,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2232
2232
|
targetUri: this.subjectUri,
|
|
2233
2233
|
label: "Custom sharing",
|
|
2234
2234
|
message: e instanceof Error ? e.message : "Unable to reset sharing."
|
|
2235
|
-
}],
|
|
2235
|
+
}], l("Failed to reset access control", e);
|
|
2236
2236
|
} finally {
|
|
2237
2237
|
this.submitting = !1;
|
|
2238
2238
|
}
|
|
@@ -2252,16 +2252,16 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2252
2252
|
if (i.length) {
|
|
2253
2253
|
this.errors = [...this.errors, ...i], this.principalInputValue = "", this.pendingAccessGrants = [];
|
|
2254
2254
|
try {
|
|
2255
|
-
this.accessGrants = await
|
|
2255
|
+
this.accessGrants = await y.acl.findAccessGrants(this.subjectUri);
|
|
2256
2256
|
} catch (e) {
|
|
2257
2257
|
this.successfulChangesRefreshed = !1, this.errors = [...this.errors, {
|
|
2258
2258
|
action: "save",
|
|
2259
2259
|
targetUri: this.subjectUri,
|
|
2260
2260
|
label: "Shared with list",
|
|
2261
2261
|
message: e instanceof Error ? e.message : "Unable to refresh the access list."
|
|
2262
|
-
}],
|
|
2262
|
+
}], l("Failed to refresh access grants after save errors", e);
|
|
2263
2263
|
}
|
|
2264
|
-
|
|
2264
|
+
l("Failed to save some access changes", i);
|
|
2265
2265
|
return;
|
|
2266
2266
|
}
|
|
2267
2267
|
this.principalInputValue = "", this.pendingAccessGrants = [], this.close();
|
|
@@ -2285,13 +2285,13 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2285
2285
|
}
|
|
2286
2286
|
getGeneralAccessChanges() {
|
|
2287
2287
|
if (!this.subjectUri) return [];
|
|
2288
|
-
let e = this.getScopedAccessGrants(),
|
|
2289
|
-
return [this.authenticatedAccessRoleValue ===
|
|
2290
|
-
subject:
|
|
2288
|
+
let e = this.getScopedAccessGrants(), t = It(e), n = Lt(e);
|
|
2289
|
+
return [this.authenticatedAccessRoleValue === t ? void 0 : {
|
|
2290
|
+
subject: m,
|
|
2291
2291
|
role: this.authenticatedAccessRoleValue,
|
|
2292
2292
|
label: "Authenticated users"
|
|
2293
|
-
}, this.publicAccessRoleValue ===
|
|
2294
|
-
subject:
|
|
2293
|
+
}, this.publicAccessRoleValue === n ? void 0 : {
|
|
2294
|
+
subject: f,
|
|
2295
2295
|
role: this.publicAccessRoleValue,
|
|
2296
2296
|
label: "Public"
|
|
2297
2297
|
}].filter(Jr);
|
|
@@ -2335,12 +2335,12 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2335
2335
|
label: "Access target",
|
|
2336
2336
|
targetUri: this.principalInputValue.trim(),
|
|
2337
2337
|
message: "We could not verify this access target. Check the value and try again."
|
|
2338
|
-
}),
|
|
2338
|
+
}), l("Failed to commit pending access grants", t), !1) : (l("Ignored stale access-target validation error", t), !1);
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
2341
|
async queuePendingPrincipal(e, t = this.addAccessRoleValue, n, r, i) {
|
|
2342
2342
|
let a = r ?? this.principalInputValue.trim(), o = await this.createPendingAccessGrant(e, t, n, i);
|
|
2343
|
-
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;
|
|
2344
2344
|
let s = [...this.pendingAccessGrants, o.grant];
|
|
2345
2345
|
return this.pendingAccessGrants = this.dedupePendingAccessGrants(s), this.principalInputValue.trim() === a && (this.clearInputError(), this.principalInputValue = ""), !0;
|
|
2346
2346
|
}
|
|
@@ -2464,7 +2464,7 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2464
2464
|
1,
|
|
2465
2465
|
"protectedTarget"
|
|
2466
2466
|
]
|
|
2467
|
-
], tr, 0, void 0,
|
|
2467
|
+
], tr, 0, void 0, e), zn), Rn = class extends qr {
|
|
2468
2468
|
constructor() {
|
|
2469
2469
|
super(Yr), $(this, "styles", Tt), er();
|
|
2470
2470
|
}
|
|
@@ -2473,4 +2473,4 @@ new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2473
2473
|
var Xr = Yr;
|
|
2474
2474
|
export { Yr as n, Xr as t };
|
|
2475
2475
|
|
|
2476
|
-
//# sourceMappingURL=access-control-modal-
|
|
2476
|
+
//# sourceMappingURL=access-control-modal-BZdBv6VD.js.map
|