solid-ui 5.0.2-3 → 5.0.2-4
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/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-Bllpr4M5.js} +15 -16
- package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js.map → ResourceActionsMenu-Bllpr4M5.js.map} +1 -1
- package/dist/chunks/{access-control-modal-CWH98HX3.js → access-control-modal-CwmY_Dod.js} +74 -75
- package/dist/chunks/{access-control-modal-CWH98HX3.js.map → access-control-modal-CwmY_Dod.js.map} +1 -1
- package/dist/chunks/{account-Cocvv0H3.js → account-CoHPKKDu.js} +20 -21
- package/dist/chunks/{account-Cocvv0H3.js.map → account-CoHPKKDu.js.map} +1 -1
- package/dist/chunks/{auth-Df5uYksz.js → auth-CocCqS1p.js} +18 -19
- package/dist/chunks/{auth-Df5uYksz.js.map → auth-CocCqS1p.js.map} +1 -1
- package/dist/chunks/{avatar-DeotTinS.js → avatar-sNdKdWVO.js} +10 -11
- package/dist/chunks/{avatar-DeotTinS.js.map → avatar-sNdKdWVO.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-fSTp9qoT.js} +17 -18
- package/dist/chunks/{combobox-BL0-8wef.js.map → combobox-fSTp9qoT.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-BD4_Wrkz.js} +10 -11
- package/dist/chunks/{error-state-DnsXVj1z.js.map → error-state-BD4_Wrkz.js.map} +1 -1
- package/dist/chunks/{file-explorer-header-B6-Q0i6V.js → file-explorer-header-D0TebSYR.js} +33 -34
- package/dist/chunks/file-explorer-header-D0TebSYR.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-BOicu9dt.js} +10 -11
- package/dist/chunks/{guard-C39y81In.js.map → guard-BOicu9dt.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/{login-button-fo0P8vym.js → login-button-clTw_9tX.js} +9 -10
- package/dist/chunks/{login-button-fo0P8vym.js.map → login-button-clTw_9tX.js.map} +1 -1
- package/dist/chunks/{logout-button-CF2YFgID.js → logout-button-CP-Pz70O.js} +9 -10
- package/dist/chunks/{logout-button-CF2YFgID.js.map → logout-button-CP-Pz70O.js.map} +1 -1
- package/dist/chunks/{menu-RumUciM-.js → menu-D0k2fkiE.js} +47 -49
- package/dist/chunks/{menu-RumUciM-.js.map → menu-D0k2fkiE.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-Cuv3Kp6G.js} +10 -11
- package/dist/chunks/{provider-BbT2duMy.js.map → provider-Cuv3Kp6G.js.map} +1 -1
- package/dist/chunks/{rdf-form-CH9bDx98.js → rdf-form-DVmTw3RG.js} +23 -24
- package/dist/chunks/{rdf-form-CH9bDx98.js.map → rdf-form-DVmTw3RG.js.map} +1 -1
- package/dist/chunks/{rdf-input-C_V0pIS5.js → rdf-input-CRYLK-27.js} +15 -16
- package/dist/chunks/{rdf-input-C_V0pIS5.js.map → rdf-input-CRYLK-27.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-CexdMWj6.js} +9 -10
- package/dist/chunks/{signup-button-DicFpAjD.js.map → signup-button-CexdMWj6.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/{src-Bhtor0ZC.js → src-DQgHAH3d.js} +2934 -2926
- package/dist/chunks/src-DQgHAH3d.js.map +1 -0
- package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal.js +1 -1
- package/dist/components/account/Account.esm.js.map +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button/Button.esm.js.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/Dialog.esm.js.map +1 -1
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/error-state/ErrorState.esm.js.map +1 -1
- package/dist/components/error-state.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +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 +24 -23
- 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 +25 -24
- 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.js +1 -1
- package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.esm.js.map +1 -1
- package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
- package/dist/components/photo-capture-modal.js +1 -1
- package/dist/components/photo-capture.js +1 -1
- package/dist/components/provider/Provider.esm.js.map +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
- package/dist/components/rdf-form.js +1 -1
- package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
- package/dist/components/rdf-input.js +1 -1
- package/dist/components/resource-actions-menu/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.esm.js.map +1 -1
- package/dist/components/select-option/SelectOption.esm.js.map +1 -1
- package/dist/components/select-option.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +30 -30
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -9
- 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 +14 -5
- package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -1
- package/dist/loader.js +8 -9
- package/dist/solid-ui.js +28 -28
- package/dist/solid-ui.min.js +28 -28
- package/dist/solid-ui.min.js.map +1 -1
- package/package.json +1 -1
- 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/src-Bhtor0ZC.js.map +0 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { E as e, _ as t, d as n, g as r, h as i, m as a, n as o, p as s, t as c, y as l } from "./solidLogicSingleton.esm-BXyHD7mn.js";
|
|
2
2
|
import { u } from "./style-CXaw5EYi.js";
|
|
3
3
|
import { T as d, p as f } from "./widgets-BBEQu0CS.js";
|
|
4
|
-
import { a as p, c as m,
|
|
5
|
-
import { t as b } from "./decorators-V-B013l9.js";
|
|
4
|
+
import { a as p, c as m, g as h, i as g, o as _, p as v, r as y, u as b } from "./components-C8c2Ucm5.js";
|
|
6
5
|
import "./x-D1JUUSOS.js";
|
|
7
|
-
import "./button-
|
|
8
|
-
import "./dialog-
|
|
9
|
-
import "./dialog-content-
|
|
10
|
-
import "./dialog-footer-
|
|
11
|
-
import { r as x } from "./combobox-
|
|
12
|
-
import "./combobox-option-
|
|
6
|
+
import "./button-D6qO2idW.js";
|
|
7
|
+
import "./dialog-CgYK767T.js";
|
|
8
|
+
import "./dialog-content-DjwRH1ci.js";
|
|
9
|
+
import "./dialog-footer-GQWi8lfB.js";
|
|
10
|
+
import { r as x } from "./combobox-fSTp9qoT.js";
|
|
11
|
+
import "./combobox-option-DOtGuKel.js";
|
|
13
12
|
import "./globe-CsCgZcy5.js";
|
|
14
|
-
import "./error-state-
|
|
13
|
+
import "./error-state-BD4_Wrkz.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 = v`: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 = [h("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 = g({ attribute: !1 }), re = g({ type: Boolean }), ae = y(), "accessGrantViewModels"), E = class extends _ {
|
|
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
|
}
|
|
@@ -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 b`
|
|
253
252
|
<li>
|
|
254
253
|
${this.renderAuthorizationBadge(e.authorization, e.subjectLabel)}
|
|
255
254
|
<h3>${e.subjectLabel}</h3>
|
|
@@ -259,9 +258,9 @@ 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 b`
|
|
263
262
|
<div class="access-grants-image access-grants-image--${n.kind}">
|
|
264
|
-
${n.image ?
|
|
263
|
+
${n.image ? b`<img src=${n.image} alt="" aria-hidden="true" />` : n.kind === "origin" ? b`<icon-lucide-globe aria-hidden="true"></icon-lucide-globe>` : b`<span aria-hidden="true">${n.text}</span>`}
|
|
265
264
|
</div>
|
|
266
265
|
`;
|
|
267
266
|
}
|
|
@@ -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 b`
|
|
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 s.map((e) =>
|
|
315
|
+
return s.map((e) => b`
|
|
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 b`
|
|
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 }) => b`
|
|
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)) : b`<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, _), 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 = v`: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 = [h("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 = g({ attribute: !1 }), Fe = g({ attribute: !1 }), Le = g({ attribute: !1 }), ze = g({ type: Boolean }), "subjectUri"), Te = class extends _ {
|
|
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
|
}
|
|
@@ -602,17 +601,17 @@ new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), O
|
|
|
602
601
|
}
|
|
603
602
|
}
|
|
604
603
|
renderAuthenticatedRoleOptions() {
|
|
605
|
-
return s.map((e) =>
|
|
604
|
+
return s.map((e) => b`
|
|
606
605
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
607
606
|
`);
|
|
608
607
|
}
|
|
609
608
|
renderPublicRoleOptions() {
|
|
610
|
-
return i.map((e) =>
|
|
609
|
+
return i.map((e) => b`
|
|
611
610
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
612
611
|
`);
|
|
613
612
|
}
|
|
614
613
|
renderAuthenticatedModeSelector() {
|
|
615
|
-
return
|
|
614
|
+
return b`
|
|
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 b`
|
|
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 b`
|
|
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 b`
|
|
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 b`
|
|
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, _), 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 = v`: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 = [h("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 = g({ attribute: !1 }), ct = g({ attribute: !1 }), "errors"), nt = class extends _ {
|
|
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 ? b`
|
|
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) => b`
|
|
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
|
+
` : b``;
|
|
934
933
|
}
|
|
935
934
|
}, {e: [st, lt, rt], c: [wt, it]} = vt(nt, [[
|
|
936
935
|
ot,
|
|
@@ -940,13 +939,13 @@ 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, _), 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 = v`: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 {
|
|
@@ -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 = v`: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 b`
|
|
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") ? b`<icon-lucide-book-user style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-book-user>` : e.sources.includes("friends") ? b`<icon-lucide-users style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-users>` : e.sources.includes("catalog") ? b`<icon-lucide-user-round style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-user-round>` : m;
|
|
1248
1247
|
}
|
|
1249
|
-
qt = [
|
|
1248
|
+
qt = [h("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 = g({ attribute: !1 }), Xt = g({ attribute: !1 }), Qt = g({ attribute: !1 }), en = g({ attribute: !1 }), nn = g({ type: Boolean }), an = g({ attribute: !1 }), "principalInputValue"), Wt = class extends _ {
|
|
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
|
}
|
|
@@ -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 b`
|
|
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 ? b`<p class="access-principal-error" role="alert">${this.inputError}</p>` : m}
|
|
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
|
-
${s.filter((e) => e !== "No Access").map((e) =>
|
|
1355
|
+
${s.filter((e) => e !== "No Access").map((e) => b`
|
|
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 ? b`
|
|
1366
1365
|
<div class="access-grants-pending">
|
|
1367
|
-
${this.pendingAccessGrants.map((e, t) =>
|
|
1366
|
+
${this.pendingAccessGrants.map((e, t) => b`
|
|
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" ? b`<icon-lucide-globe style="width: 13px; height: 13px; vertical-align: -2px;"></icon-lucide-globe>` : m}
|
|
1371
1370
|
${e.label}
|
|
1372
1371
|
</span>
|
|
1373
1372
|
<solid-ui-button
|
|
@@ -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, _), Wt), Ut = class extends _n {
|
|
1420
1419
|
constructor() {
|
|
1421
1420
|
super(bn), dn(this, "styles", Ht), Kt();
|
|
1422
1421
|
}
|
|
@@ -1508,14 +1507,14 @@ async function jn(e) {
|
|
|
1508
1507
|
label: `Use origin ${t}`,
|
|
1509
1508
|
value: t,
|
|
1510
1509
|
targetKind: "origin",
|
|
1511
|
-
template:
|
|
1510
|
+
template: b`<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: b`<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] : []);
|
|
@@ -1534,7 +1533,7 @@ async function Mn(e) {
|
|
|
1534
1533
|
label: `Trusted app: ${i}`,
|
|
1535
1534
|
value: i,
|
|
1536
1535
|
targetKind: "trustedApp",
|
|
1537
|
-
template:
|
|
1536
|
+
template: b`<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 {
|
|
@@ -1808,9 +1807,9 @@ function qr(e) {
|
|
|
1808
1807
|
function Jr(e) {
|
|
1809
1808
|
return e != null;
|
|
1810
1809
|
}
|
|
1811
|
-
tr = [
|
|
1810
|
+
tr = [h("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 = g({ attribute: !1 }), ir = g({ attribute: !1 }), or = y(), cr = y(), ur = y(), fr = y(), mr = y(), gr = y(), vr = y(), br = y(), Sr = y(), wr = y(), Er = y(), Or = y(), Ar = y(), Mr = y(), Pr = y(), Ir = y(), "subjectUri"), zn = class extends p {
|
|
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
|
}
|
|
@@ -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 t = !this.accessContext.inherited, n = this.accessContext?.effectiveContainer, r = n ? u(e(n)).trim() : "", i = r && r !== n ?
|
|
2008
|
-
return
|
|
2005
|
+
if (!this.accessContext) return b``;
|
|
2006
|
+
let t = !this.accessContext.inherited, n = this.accessContext?.effectiveContainer, r = n ? u(e(n)).trim() : "", i = r && r !== n ? b`<strong>${r}</strong> (${n})` : b`<strong>${n ?? "the parent container"}</strong>`;
|
|
2007
|
+
return b`
|
|
2009
2008
|
<div class="access-control-sharing-state-panel">
|
|
2010
|
-
${t ?
|
|
2009
|
+
${t ? b`
|
|
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 ? b`` : b`
|
|
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
|
-
` : n ?
|
|
2025
|
-
${this.protectedTarget ?
|
|
2023
|
+
` : n ? b`<p>This resource inherits sharing settings from ${i}.</p>` : b`<p>This resource inherits sharing settings, but no inherited default is available.</p>`}
|
|
2024
|
+
${this.protectedTarget ? b`<p class="access-control-sharing-state-protected-message">This is a protected storage resource. Its primary access-control settings cannot be reset here.</p>` : b``}
|
|
2026
2025
|
</div>
|
|
2027
2026
|
`;
|
|
2028
2027
|
}
|
|
2029
2028
|
renderSharingState() {
|
|
2030
|
-
return !this.accessContext || !this.advancedSharingOpen ?
|
|
2029
|
+
return !this.accessContext || !this.advancedSharingOpen ? b`` : b`
|
|
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 ? b`<p role="status">Loading access settings...</p>` : this.accessContextError ? b`
|
|
2048
2047
|
<solid-ui-error-state
|
|
2049
2048
|
title="Could not load access settings"
|
|
2050
2049
|
message=${this.accessContextError}
|
|
@@ -2053,15 +2052,15 @@ 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 ? b`` : b`<p role="status">Access settings are not ready yet.</p>`;
|
|
2057
2056
|
}
|
|
2058
2057
|
renderMixedContainerWarning() {
|
|
2059
|
-
return this.hasMixedContainerPolicy() ?
|
|
2058
|
+
return this.hasMixedContainerPolicy() ? b`
|
|
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
|
+
` : b``;
|
|
2065
2064
|
}
|
|
2066
2065
|
getScopedAccessGrants(e = this.getSelectedContainerScope()) {
|
|
2067
2066
|
let t = this.accessGrants ?? [];
|
|
@@ -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 ? b`
|
|
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() ? b`
|
|
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
|
+
` : b``}
|
|
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
|
+
` : b``;
|
|
2145
2144
|
}
|
|
2146
2145
|
render() {
|
|
2147
2146
|
let e = this.getDialogTitle();
|
|
2148
|
-
return
|
|
2147
|
+
return b`
|
|
2149
2148
|
<solid-ui-dialog title=${e}>
|
|
2150
2149
|
<form @submit=${this.onSubmit}>
|
|
2151
2150
|
<solid-ui-dialog-content>
|
|
@@ -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-CwmY_Dod.js.map
|