solid-ui 5.0.2-0 → 5.0.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.esm.js +1 -2
- package/dist/_virtual/~icons/app/solid-emblem.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/book-user.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/chevron-down.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/circle-user.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/circle-x.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder-open.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/link.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/log-in.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/log-out.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/triangle-alert.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/user-round.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/user.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/users.esm.js +1 -2
- package/dist/_virtual/~icons/lucide/x.esm.js +1 -2
- package/dist/_virtual/~icons/svg-spinners/180-ring.esm.js +1 -2
- package/dist/_virtual/~icons/svg-spinners/3-dots-fade.esm.js +1 -2
- package/dist/acl/access-controller.esm.js +1 -2
- package/dist/acl/access-groups.esm.js +1 -2
- package/dist/acl/acl-control.esm.js +1 -2
- package/dist/acl/acl.esm.js +1 -2
- package/dist/acl/add-agent-buttons.esm.js +1 -2
- package/dist/acl/index.esm.js +1 -2
- package/dist/chat/bookmarks.esm.js +1 -2
- package/dist/chat/chatLogic.esm.js +1 -2
- package/dist/chat/dateFolder.esm.js +1 -2
- package/dist/chat/infinite.cjs.js +1 -1
- package/dist/chat/infinite.cjs.js.map +1 -1
- package/dist/chat/infinite.esm.js +2 -3
- package/dist/chat/infinite.esm.js.map +1 -1
- package/dist/chat/keys.esm.js +1 -2
- package/dist/chat/message.esm.js +1 -2
- package/dist/chat/messageTools.esm.js +1 -2
- package/dist/chat/signature.esm.js +0 -1
- package/dist/chunks/{DialogProvider-B7oVYKJO.js → DialogProvider-C89v7x0r.js} +5 -8
- package/dist/chunks/{DialogProvider-B7oVYKJO.js.map → DialogProvider-C89v7x0r.js.map} +1 -1
- package/dist/chunks/{access-control-modal-eOv2-U27.js → access-control-modal-Dcg6-f4V.js} +924 -540
- package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +1 -0
- package/dist/chunks/{account-DpmYJEd-.js → account-D6JK-n7u.js} +16 -21
- package/dist/chunks/{account-DpmYJEd-.js.map → account-D6JK-n7u.js.map} +1 -1
- package/dist/chunks/{auth-Hp8M6TQf.js → auth-B_abPDvH.js} +28 -31
- package/dist/chunks/auth-B_abPDvH.js.map +1 -0
- package/dist/chunks/{avatar-D5rcw6gN.js → avatar-BR3COVSQ.js} +6 -9
- package/dist/chunks/{avatar-D5rcw6gN.js.map → avatar-BR3COVSQ.js.map} +1 -1
- package/dist/chunks/{button-lol95DqR.js → button-D6qO2idW.js} +5 -8
- package/dist/chunks/{button-lol95DqR.js.map → button-D6qO2idW.js.map} +1 -1
- package/dist/chunks/{chevron-down-ujxRg3MD.js → chevron-down-CqUEolao.js} +2 -3
- package/dist/chunks/chevron-down-CqUEolao.js.map +1 -0
- package/dist/chunks/{chunk.UEBQI7VV-OBPERnuy.js → chunk.UEBQI7VV-lcP-fpUk.js} +14 -23
- package/dist/chunks/{chunk.UEBQI7VV-OBPERnuy.js.map → chunk.UEBQI7VV-lcP-fpUk.js.map} +1 -1
- package/dist/chunks/{combobox-Dmv-TZtI.js → combobox-fSTp9qoT.js} +11 -15
- package/dist/chunks/combobox-fSTp9qoT.js.map +1 -0
- package/dist/chunks/{combobox-option-B-Hksiq2.js → combobox-option-DOtGuKel.js} +4 -6
- package/dist/chunks/{combobox-option-B-Hksiq2.js.map → combobox-option-DOtGuKel.js.map} +1 -1
- package/dist/chunks/{components-Bdqizu8x.js → components-C8c2Ucm5.js} +17 -33
- package/dist/chunks/{components-Bdqizu8x.js.map → components-C8c2Ucm5.js.map} +1 -1
- package/dist/chunks/{dialog-DYgcCurb.js → dialog-CgYK767T.js} +8 -10
- package/dist/chunks/{dialog-DYgcCurb.js.map → dialog-CgYK767T.js.map} +1 -1
- package/dist/chunks/{dialog-content-jx08y2Oa.js → dialog-content-DjwRH1ci.js} +4 -6
- package/dist/chunks/{dialog-content-jx08y2Oa.js.map → dialog-content-DjwRH1ci.js.map} +1 -1
- package/dist/chunks/{dialog-footer-Bhl8k1PX.js → dialog-footer-GQWi8lfB.js} +4 -6
- package/dist/chunks/{dialog-footer-Bhl8k1PX.js.map → dialog-footer-GQWi8lfB.js.map} +1 -1
- package/dist/chunks/{dialog-header-Dn6PQzFB.js → dialog-header-c3qOMQfb.js} +4 -6
- package/dist/chunks/{dialog-header-Dn6PQzFB.js.map → dialog-header-c3qOMQfb.js.map} +1 -1
- package/dist/chunks/{dialogs-B6TfxrPt.js → dialogs-BmtLjMzg.js} +5 -7
- package/dist/chunks/{dialogs-B6TfxrPt.js.map → dialogs-BmtLjMzg.js.map} +1 -1
- package/dist/chunks/{dialogs-root-Qiucjj9u.js → dialogs-root-BcQo2XMF.js} +6 -8
- package/dist/chunks/{dialogs-root-Qiucjj9u.js.map → dialogs-root-BcQo2XMF.js.map} +1 -1
- package/dist/chunks/{error-state-DK1x-kNd.js → error-state-BD4_Wrkz.js} +6 -8
- package/dist/chunks/{error-state-DK1x-kNd.js.map → error-state-BD4_Wrkz.js.map} +1 -1
- package/dist/chunks/{guard-FbhNrJGh.js → guard-bTeM7wd7.js} +5 -7
- package/dist/chunks/{guard-FbhNrJGh.js.map → guard-bTeM7wd7.js.map} +1 -1
- package/dist/chunks/{index.esm-N8NHgFUj.js → index.esm-CECfD0e9.js} +3256 -3083
- package/dist/chunks/index.esm-CECfD0e9.js.map +1 -0
- package/dist/chunks/{input-lpqx_k53.js → input-Bz3l514j.js} +5 -7
- package/dist/chunks/{input-lpqx_k53.js.map → input-Bz3l514j.js.map} +1 -1
- package/dist/chunks/{jsonld-Djw57WRt.js → jsonld-CnfzCyCn.js} +4 -5
- package/dist/chunks/{jsonld-Djw57WRt.js.map → jsonld-CnfzCyCn.js.map} +1 -1
- package/dist/chunks/{login-button-DCq4Gi3_.js → login-button-Div4ZT4J.js} +6 -8
- package/dist/chunks/{login-button-DCq4Gi3_.js.map → login-button-Div4ZT4J.js.map} +1 -1
- package/dist/chunks/{logout-button-D3dJrsV4.js → logout-button-D3lqlnCX.js} +6 -8
- package/dist/chunks/{logout-button-D3dJrsV4.js.map → logout-button-D3lqlnCX.js.map} +1 -1
- package/dist/chunks/{menu-RJklqKQE.js → menu-D0k2fkiE.js} +22 -39
- package/dist/chunks/{menu-RJklqKQE.js.map → menu-D0k2fkiE.js.map} +1 -1
- package/dist/chunks/{menu-item-C2e0qj-v.js → menu-item-nfPpH4dN.js} +5 -7
- package/dist/chunks/{menu-item-C2e0qj-v.js.map → menu-item-nfPpH4dN.js.map} +1 -1
- package/dist/chunks/{photo-capture-DEMQNmzb.js → photo-capture-hJaJm4TM.js} +6 -8
- package/dist/chunks/{photo-capture-DEMQNmzb.js.map → photo-capture-hJaJm4TM.js.map} +1 -1
- package/dist/chunks/{photo-capture-modal-C7oESDQq.js → photo-capture-modal-BsHv6wmh.js} +9 -11
- package/dist/chunks/{photo-capture-modal-C7oESDQq.js.map → photo-capture-modal-BsHv6wmh.js.map} +1 -1
- package/dist/chunks/{provider-D9UgRI4G.js → provider-Dcd1NPYx.js} +7 -9
- package/dist/chunks/{provider-D9UgRI4G.js.map → provider-Dcd1NPYx.js.map} +1 -1
- package/dist/chunks/{query-BYu9q8lA.js → query-DjAOg-tk.js} +3 -5
- package/dist/chunks/{query-BYu9q8lA.js.map → query-DjAOg-tk.js.map} +1 -1
- package/dist/chunks/{rdf-form-BLgKdXP2.js → rdf-form-CmPnHKR-.js} +23 -25
- package/dist/chunks/{rdf-form-BLgKdXP2.js.map → rdf-form-CmPnHKR-.js.map} +1 -1
- package/dist/chunks/{rdf-input-DWnDpkXy.js → rdf-input-3AgoeCkJ.js} +48 -51
- package/dist/chunks/{rdf-input-DWnDpkXy.js.map → rdf-input-3AgoeCkJ.js.map} +1 -1
- package/dist/chunks/{select-CnkJMo_K.js → select-ClPkDkGl.js} +7 -10
- package/dist/chunks/{select-CnkJMo_K.js.map → select-ClPkDkGl.js.map} +1 -1
- package/dist/chunks/{select-option-B9HSZiTp.js → select-option-DQan7rcB.js} +4 -6
- package/dist/chunks/{select-option-B9HSZiTp.js.map → select-option-DQan7rcB.js.map} +1 -1
- package/dist/chunks/{show-dialog-eEW5yRBv.js → show-dialog-DAmFslrf.js} +2 -3
- package/dist/chunks/{show-dialog-eEW5yRBv.js.map → show-dialog-DAmFslrf.js.map} +1 -1
- package/dist/chunks/{signup-button-BQ4AWem2.js → signup-button-2fAoS0Nv.js} +6 -8
- package/dist/chunks/{signup-button-BQ4AWem2.js.map → signup-button-2fAoS0Nv.js.map} +1 -1
- package/dist/chunks/{solid-emblem-DNjQSX1z.js → solid-emblem-DwLdkGuO.js} +5 -8
- package/dist/chunks/{solid-emblem-DNjQSX1z.js.map → solid-emblem-DwLdkGuO.js.map} +1 -1
- package/dist/chunks/{src-DQMZZG1B.js → src-Dx7k_VIe.js} +2732 -2782
- package/dist/chunks/src-Dx7k_VIe.js.map +1 -0
- package/dist/chunks/{style-ChFDDB1c.js → style-w0Fl0xnd.js} +25 -29
- package/dist/chunks/{style-ChFDDB1c.js.map → style-w0Fl0xnd.js.map} +1 -1
- package/dist/chunks/{widgets-CVLwnfkU.js → widgets-BWpm5CPx.js} +694 -715
- package/dist/chunks/widgets-BWpm5CPx.js.map +1 -0
- package/dist/chunks/{x-BRRkraZN.js → x-D1JUUSOS.js} +2 -3
- package/dist/chunks/x-D1JUUSOS.js.map +1 -0
- package/dist/components/access-control-modal/AccessControlAddAccess.cjs.js +11 -5
- package/dist/components/access-control-modal/AccessControlAddAccess.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.d.ts +1 -0
- package/dist/components/access-control-modal/AccessControlAddAccess.d.ts.map +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.esm.js +75 -57
- package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.styles.cjs.js +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.styles.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlAddAccess.styles.esm.js +2 -3
- package/dist/components/access-control-modal/AccessControlAddAccess.styles.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.cjs.js +3 -2
- package/dist/components/access-control-modal/AccessControlErrors.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.d.ts +1 -0
- package/dist/components/access-control-modal/AccessControlErrors.d.ts.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.esm.js +6 -3
- package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.styles.esm.js +1 -2
- package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js +5 -3
- package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.d.ts +1 -0
- package/dist/components/access-control-modal/AccessControlGeneralAccess.d.ts.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js +57 -45
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.styles.esm.js +1 -2
- package/dist/components/access-control-modal/AccessControlModal.cjs.js +112 -6
- package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.d.ts +27 -0
- package/dist/components/access-control-modal/AccessControlModal.d.ts.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js +411 -127
- package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.styles.cjs.js +1 -1
- package/dist/components/access-control-modal/AccessControlModal.styles.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.styles.esm.js +2 -3
- package/dist/components/access-control-modal/AccessControlModal.styles.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.cjs.js +6 -5
- package/dist/components/access-control-modal/AccessControlSharedAccess.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.d.ts +1 -0
- package/dist/components/access-control-modal/AccessControlSharedAccess.d.ts.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js +71 -55
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.styles.esm.js +1 -2
- package/dist/components/access-control-modal/accessGrantDrafts.cjs.js +1 -1
- package/dist/components/access-control-modal/accessGrantDrafts.cjs.js.map +1 -1
- package/dist/components/access-control-modal/accessGrantDrafts.d.ts.map +1 -1
- package/dist/components/access-control-modal/accessGrantDrafts.esm.js +6 -7
- package/dist/components/access-control-modal/accessGrantDrafts.esm.js.map +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.cjs.js +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.cjs.js.map +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.d.ts +1 -0
- package/dist/components/access-control-modal/accessTargetResolver.d.ts.map +1 -1
- package/dist/components/access-control-modal/accessTargetResolver.esm.js +92 -46
- package/dist/components/access-control-modal/accessTargetResolver.esm.js.map +1 -1
- package/dist/components/access-control-modal/applyAccessChanges.cjs.js +1 -1
- package/dist/components/access-control-modal/applyAccessChanges.cjs.js.map +1 -1
- package/dist/components/access-control-modal/applyAccessChanges.d.ts +4 -2
- package/dist/components/access-control-modal/applyAccessChanges.d.ts.map +1 -1
- package/dist/components/access-control-modal/applyAccessChanges.esm.js +23 -15
- package/dist/components/access-control-modal/applyAccessChanges.esm.js.map +1 -1
- package/dist/components/access-control-modal/buildAccessChanges.esm.js +1 -2
- package/dist/components/access-control-modal/helpers.esm.js +1 -2
- package/dist/components/access-control-modal/index.esm.js +1 -2
- package/dist/components/access-control-modal/types.d.ts +6 -1
- package/dist/components/access-control-modal/types.d.ts.map +1 -1
- package/dist/components/access-control-modal.js +1 -1
- package/dist/components/account/Account.esm.js +1 -2
- package/dist/components/account/Account.styles.esm.js +1 -2
- package/dist/components/account/index.esm.js +1 -2
- package/dist/components/account.js +1 -1
- package/dist/components/avatar/Avatar.esm.js +1 -2
- package/dist/components/avatar/Avatar.styles.esm.js +1 -2
- package/dist/components/avatar/index.esm.js +1 -2
- package/dist/components/avatar.js +1 -1
- package/dist/components/button/Button.esm.js +1 -2
- package/dist/components/button/Button.styles.esm.js +1 -2
- package/dist/components/button/index.esm.js +1 -2
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.cjs.js +1 -0
- package/dist/components/combobox/Combobox.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.esm.js +2 -2
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox/Combobox.styles.esm.js +1 -2
- package/dist/components/combobox/index.esm.js +1 -2
- package/dist/components/combobox-option/ComboboxOption.esm.js +1 -2
- package/dist/components/combobox-option/index.esm.js +1 -2
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/Dialog.esm.js +1 -2
- package/dist/components/dialog/Dialog.styles.esm.js +1 -2
- package/dist/components/dialog/index.esm.js +1 -2
- package/dist/components/dialog-content/DialogContent.esm.js +1 -2
- package/dist/components/dialog-content/DialogContent.styles.esm.js +1 -2
- package/dist/components/dialog-content/index.esm.js +1 -2
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer/DialogFooter.esm.js +1 -2
- package/dist/components/dialog-footer/DialogFooter.styles.esm.js +1 -2
- package/dist/components/dialog-footer/index.esm.js +1 -2
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header/DialogHeader.esm.js +1 -2
- package/dist/components/dialog-header/DialogHeader.styles.esm.js +1 -2
- package/dist/components/dialog-header/index.esm.js +1 -2
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider/DialogProvider.esm.js +1 -2
- package/dist/components/dialog-provider/index.esm.js +1 -2
- package/dist/components/dialog-provider.js +2 -3
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root/DialogsRoot.esm.js +1 -2
- package/dist/components/dialogs-root/index.esm.js +1 -2
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/error-state/ErrorState.esm.js +1 -2
- package/dist/components/error-state/ErrorState.styles.esm.js +1 -2
- package/dist/components/error-state.js +1 -1
- package/dist/components/guard/Guard.esm.js +1 -2
- package/dist/components/guard/index.esm.js +1 -2
- package/dist/components/guard.js +1 -1
- package/dist/components/input/Input.esm.js +1 -2
- package/dist/components/input/Input.styles.esm.js +1 -2
- package/dist/components/input/index.esm.js +1 -2
- package/dist/components/input.js +1 -1
- package/dist/components/login-button/LoginButton.esm.js +1 -2
- package/dist/components/login-button/index.esm.js +1 -2
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal/LoginModal.esm.js +1 -2
- package/dist/components/login-modal/LoginModal.styles.esm.js +1 -2
- package/dist/components/login-modal/index.esm.js +1 -2
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button/LogoutButton.esm.js +1 -2
- package/dist/components/logout-button/index.esm.js +1 -2
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.esm.js +1 -2
- package/dist/components/menu/Menu.styles.esm.js +1 -2
- package/dist/components/menu/index.esm.js +1 -2
- package/dist/components/menu-item/MenuItem.esm.js +1 -2
- package/dist/components/menu-item/MenuItem.styles.esm.js +1 -2
- package/dist/components/menu-item/index.esm.js +1 -2
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture/PhotoCapture.esm.js +1 -2
- package/dist/components/photo-capture/index.esm.js +1 -2
- package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js +1 -1
- package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js.map +1 -1
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js +2 -3
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
- package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js +1 -2
- package/dist/components/photo-capture-modal/index.esm.js +1 -2
- package/dist/components/photo-capture-modal.js +1 -1
- package/dist/components/photo-capture.js +1 -1
- package/dist/components/provider/Provider.esm.js +1 -2
- package/dist/components/provider/index.esm.js +1 -2
- package/dist/components/provider.js +1 -1
- package/dist/components/rdf-form/RDFForm.esm.js +1 -2
- package/dist/components/rdf-form/index.esm.js +1 -2
- package/dist/components/rdf-form.js +1 -1
- package/dist/components/rdf-input/RDFInput.esm.js +1 -2
- package/dist/components/rdf-input/index.esm.js +1 -2
- package/dist/components/rdf-input.js +1 -1
- package/dist/components/select/Select.esm.js +1 -2
- package/dist/components/select/Select.styles.esm.js +1 -2
- package/dist/components/select/index.esm.js +1 -2
- package/dist/components/select-option/SelectOption.esm.js +1 -2
- package/dist/components/select-option/index.esm.js +1 -2
- package/dist/components/select-option.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/signup-button/SignupButton.esm.js +1 -2
- package/dist/components/signup-button/index.esm.js +1 -2
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem/SolidEmblem.esm.js +1 -2
- package/dist/components/solid-emblem/SolidEmblem.styles.esm.js +1 -2
- package/dist/components/solid-emblem/index.esm.js +1 -2
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +28 -28
- package/dist/create/create.esm.js +1 -2
- package/dist/create/index.esm.js +1 -2
- package/dist/create/types.esm.js +1 -2
- package/dist/footer/index.esm.js +1 -2
- package/dist/header/empty-profile.esm.js +1 -2
- package/dist/header/index.esm.js +1 -2
- package/dist/index.esm.js +1 -2
- package/dist/index.js +8 -8
- package/dist/lib/auth/Account.esm.js +1 -2
- package/dist/lib/auth/NoopAuth.esm.js +1 -2
- package/dist/lib/auth/SolidAuth.esm.js +1 -2
- package/dist/lib/auth/context.esm.js +1 -2
- package/dist/lib/code-editor/CodeEditor.esm.js +1 -2
- package/dist/lib/components/decorators.esm.js +1 -2
- package/dist/lib/components/dialog-component/DialogComponent.esm.js +1 -2
- package/dist/lib/components/form-control-component/FormControlComponent.esm.js +1 -2
- package/dist/lib/components/ids.esm.js +1 -2
- package/dist/lib/components/traits/DialogTrait.esm.js +1 -2
- package/dist/lib/components/traits/FormControlTrait.esm.js +1 -2
- package/dist/lib/components/web-component/WebComponent.esm.js +1 -2
- package/dist/lib/components/web-component/WebComponent.styles.esm.js +1 -2
- package/dist/lib/debug.esm.js +1 -2
- package/dist/lib/dialogs/Dialog.esm.js +1 -2
- package/dist/lib/dialogs/context.esm.js +1 -2
- package/dist/lib/dialogs/events/close-dialog.esm.js +1 -2
- package/dist/lib/dialogs/events/show-dialog.esm.js +1 -2
- package/dist/lib/dialogs/helpers.esm.js +1 -2
- package/dist/lib/file-explorer/context.esm.js +1 -2
- package/dist/lib/forms/fieldParams.esm.js +1 -2
- package/dist/lib/forms/rdfFormsHelper.esm.js +1 -2
- package/dist/lib/forms/store/NoopStore.esm.js +1 -2
- package/dist/lib/forms/store/StoreContext.esm.js +1 -2
- package/dist/lib/iconBase.esm.js +1 -2
- package/dist/lib/log.esm.js +1 -2
- package/dist/lib/messageArea.esm.js +1 -2
- package/dist/lib/newperson.esm.js +1 -2
- package/dist/lib/ns.esm.js +1 -2
- package/dist/lib/pad.esm.js +1 -2
- package/dist/lib/participation.esm.js +1 -2
- package/dist/lib/preferences.esm.js +1 -2
- package/dist/lib/style.esm.js +1 -2
- package/dist/lib/styleConstants.esm.js +1 -2
- package/dist/lib/style_multiSelect.esm.js +1 -2
- package/dist/lib/table.esm.js +1 -2
- package/dist/lib/tabs.esm.js +1 -2
- package/dist/lib/timing.esm.js +1 -2
- package/dist/lib/values.esm.js +1 -2
- package/dist/loader.js +8 -8
- package/dist/login/login.esm.js +1 -2
- package/dist/matrix/index.esm.js +1 -2
- package/dist/matrix/matrix.esm.js +1 -2
- package/dist/media/index.esm.js +1 -2
- package/dist/media/media-capture.esm.js +1 -2
- package/dist/signup/config-default.esm.js +1 -2
- package/dist/signup/signup.esm.js +1 -2
- package/dist/solid-ui.js +243 -126
- package/dist/solid-ui.min.js +243 -126
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/utils/headerFooterHelpers.esm.js +1 -2
- package/dist/utils/index.esm.js +1 -2
- package/dist/utils/keyHelpers/accessData.esm.js +1 -2
- package/dist/utils/keyHelpers/acl.esm.js +1 -2
- package/dist/utils/keyHelpers/otherHelpers.esm.js +1 -2
- package/dist/utils/label.esm.js +1 -2
- package/dist/widgets/buttons/iconLinks.esm.js +1 -2
- package/dist/widgets/buttons.esm.js +1 -2
- package/dist/widgets/dragAndDrop.esm.js +1 -2
- package/dist/widgets/error.esm.js +1 -2
- package/dist/widgets/forms/autocomplete/autocompleteBar.esm.js +1 -2
- package/dist/widgets/forms/autocomplete/autocompleteField.esm.js +1 -2
- 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 +2 -3
- package/dist/widgets/forms/autocomplete/autocompletePicker.esm.js.map +1 -1
- package/dist/widgets/forms/autocomplete/language.esm.js +1 -2
- package/dist/widgets/forms/autocomplete/publicData.esm.js +1 -2
- package/dist/widgets/forms/basic.esm.js +1 -2
- package/dist/widgets/forms/fieldFunction.esm.js +1 -2
- package/dist/widgets/forms/fieldParams.esm.js +1 -2
- package/dist/widgets/forms/formStyle.esm.js +1 -2
- package/dist/widgets/forms.esm.js +1 -2
- package/dist/widgets/index.esm.js +1 -2
- package/dist/widgets/multiSelect.esm.js +1 -2
- package/dist/widgets/peoplePicker.esm.js +1 -2
- package/dist/widgets/widgetHelpers.esm.js +1 -2
- package/package.json +2 -2
- package/dist/chunks/access-control-modal-eOv2-U27.js.map +0 -1
- package/dist/chunks/auth-Hp8M6TQf.js.map +0 -1
- package/dist/chunks/chevron-down-ujxRg3MD.js.map +0 -1
- package/dist/chunks/combobox-Dmv-TZtI.js.map +0 -1
- package/dist/chunks/index.esm-N8NHgFUj.js.map +0 -1
- package/dist/chunks/src-DQMZZG1B.js.map +0 -1
- package/dist/chunks/widgets-CVLwnfkU.js.map +0 -1
- package/dist/chunks/x-BRRkraZN.js.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// ~icons/lucide/x
|
|
2
2
|
var e = class extends HTMLElement {
|
|
3
3
|
constructor() {
|
|
4
4
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"/></svg>";
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
7
|
customElements.get("icon-lucide-x") || customElements.define("icon-lucide-x", e);
|
|
8
|
-
//#endregion
|
|
9
8
|
|
|
10
|
-
//# sourceMappingURL=x-
|
|
9
|
+
//# sourceMappingURL=x-D1JUUSOS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-D1JUUSOS.js","names":["iconlucidex"],"sources":[],"mappings":""}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../button/index.cjs.js"),require("../combobox/index.cjs.js"),require("../combobox-option/index.cjs.js"),require("../../_virtual/~icons/lucide/circle-x.cjs.js"),require("../../_virtual/~icons/lucide/book-user.cjs.js"),require("../../_virtual/~icons/lucide/user-round.cjs.js"),require("../../_virtual/~icons/lucide/users.cjs.js");const n=require("./AccessControlAddAccess.styles.cjs.js");let r=require("solid-logic"),i=require("lit"),a=require("lit/decorators.js");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D;function
|
|
1
|
+
const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../button/index.cjs.js"),require("../combobox/index.cjs.js"),require("../combobox-option/index.cjs.js"),require("../../_virtual/~icons/lucide/circle-x.cjs.js"),require("../../_virtual/~icons/lucide/globe.cjs.js"),require("../../_virtual/~icons/lucide/book-user.cjs.js"),require("../../_virtual/~icons/lucide/user-round.cjs.js"),require("../../_virtual/~icons/lucide/users.cjs.js");const n=require("./AccessControlAddAccess.styles.cjs.js");let r=require("solid-logic"),i=require("lit"),a=require("lit/decorators.js");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;function j(e,t,n){M(e,t),t.set(e,n)}function M(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function N(e,t,n){return e.set(F(e,t),n),n}function P(e,t){return e.get(F(e,t))}function F(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function I(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:B(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||B(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return V(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:R(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function R(e){var t=z(e,`string`);return typeof t==`symbol`?t:t+``}function z(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function B(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function V(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function H(e){return e}function U(e){return i.html`
|
|
2
2
|
<span class="access-grants-directory-entry">
|
|
3
|
-
${
|
|
3
|
+
${W(e)}
|
|
4
4
|
<span>${e.label}</span>
|
|
5
5
|
</span>
|
|
6
|
-
`}function
|
|
6
|
+
`}function W(e){return e.sources.includes(`contacts`)||e.sources.includes(`groups`)?i.html`<icon-lucide-book-user style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-book-user>`:e.sources.includes(`friends`)?i.html`<icon-lucide-users style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-users>`:e.sources.includes(`catalog`)?i.html`<icon-lucide-user-round style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-user-round>`:i.nothing}g=[e.customElement(`solid-ui-access-control-add-access`)];var G;new(k=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,A=(_=(0,a.property)({attribute:!1}),y=(0,a.property)({attribute:!1}),x=(0,a.property)({attribute:!1}),C=(0,a.property)({attribute:!1}),T=(0,a.property)({type:Boolean}),D=(0,a.property)({attribute:!1}),`principalInputValue`),s=class extends t.default{constructor(...e){super(...e),j(this,c,(m(this),v(this,``))),j(this,l,b(this,`Viewer`)),j(this,u,S(this,[])),j(this,d,w(this,``)),j(this,f,E(this,!1)),j(this,p,O(this,null))}get[A](){return P(c,this)}set principalInputValue(e){N(c,this,e)}get addAccessRoleValue(){return P(l,this)}set addAccessRoleValue(e){N(l,this,e)}get pendingAccessGrants(){return P(u,this)}set pendingAccessGrants(e){N(u,this,e)}get inputError(){return P(d,this)}set inputError(e){N(d,this,e)}get disabled(){return P(f,this)}set disabled(e){N(f,this,e)}get asyncOptionsProvider(){return P(p,this)}set asyncOptionsProvider(e){N(p,this,e)}onPrincipalInput(e){let t=this.getEventValue(e);this.dispatchEvent(new CustomEvent(`target-input`,{detail:{value:t},bubbles:!0,composed:!0}))}onPrincipalSelect(e){let t=e.detail.option;typeof t.value==`string`&&this.dispatchEvent(new CustomEvent(`target-selected`,{detail:{value:t.value,label:t.label,targetKind:t.targetKind},bubbles:!0,composed:!0}))}onRoleChange(e){let t=e.detail.option.value,n=typeof t==`string`?r.ACCESS_ROLES.find(e=>e===t):void 0;n&&this.dispatchEvent(new CustomEvent(`role-changed`,{detail:{role:n},bubbles:!0,composed:!0}))}onPendingGrantRemove(e){this.dispatchEvent(new CustomEvent(`pending-grant-removed`,{detail:{index:e},bubbles:!0,composed:!0}))}getEventValue(e){let t=e.currentTarget;return typeof t?.value==`string`?t.value:``}render(){return i.html`
|
|
7
7
|
<section class="access-grants-form" aria-label="Add access">
|
|
8
8
|
<p>Add person, group or software agent URL.</p>
|
|
9
9
|
<div class="access-grants-form-main">
|
|
10
10
|
<div class="access-grants-input">
|
|
11
11
|
<solid-ui-combobox
|
|
12
12
|
class="access-principal-combobox"
|
|
13
|
+
.disabled=${this.disabled}
|
|
13
14
|
label="Add person, group or software agent URL."
|
|
14
15
|
.srOnlyLabel=${!0}
|
|
15
16
|
.value=${this.principalInputValue}
|
|
@@ -23,6 +24,7 @@ const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/c
|
|
|
23
24
|
</div>
|
|
24
25
|
<solid-ui-combobox
|
|
25
26
|
class="access-role-select access-role-select--top"
|
|
27
|
+
.disabled=${this.disabled}
|
|
26
28
|
.value=${this.addAccessRoleValue}
|
|
27
29
|
@change=${this.onRoleChange}
|
|
28
30
|
>
|
|
@@ -36,11 +38,15 @@ const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/c
|
|
|
36
38
|
<div class="access-grants-pending">
|
|
37
39
|
${this.pendingAccessGrants.map((e,t)=>i.html`
|
|
38
40
|
<div class="access-grants-pending-item">
|
|
39
|
-
<span class="access-grants-pending-item-label"
|
|
41
|
+
<span class="access-grants-pending-item-label">
|
|
42
|
+
${e.targetKind===`trustedApp`?i.html`<icon-lucide-globe style="width: 13px; height: 13px; vertical-align: -2px;"></icon-lucide-globe>`:i.nothing}
|
|
43
|
+
${e.label}
|
|
44
|
+
</span>
|
|
40
45
|
<solid-ui-button
|
|
41
46
|
type="button"
|
|
42
47
|
variant="ghost"
|
|
43
48
|
class="access-grants-pending-item-remove"
|
|
49
|
+
?disabled=${this.disabled}
|
|
44
50
|
@click=${()=>this.onPendingGrantRemove(t)}
|
|
45
51
|
>
|
|
46
52
|
<span class="sr-only">Remove ${e.label}</span>
|
|
@@ -49,5 +55,5 @@ const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/c
|
|
|
49
55
|
</div>
|
|
50
56
|
`)}
|
|
51
57
|
</div>
|
|
52
|
-
`:i.nothing}},{e:[
|
|
58
|
+
`:i.nothing}},{e:[v,b,S,w,E,O,m],c:[G,h]}=L(s,[[_,1,`principalInputValue`],[y,1,`addAccessRoleValue`],[x,1,`pendingAccessGrants`],[C,1,`inputError`],[T,1,`disabled`],[D,1,`asyncOptionsProvider`]],g,0,void 0,t.default),s),o=class extends H{constructor(){super(G),I(this,`styles`,n.default),h()}},I(o,k,void 0),o),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return G}}),exports.directoryEntryOptionTemplate=U;
|
|
53
59
|
//# sourceMappingURL=AccessControlAddAccess.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessControlAddAccess.cjs.js","names":["customElement","WebComponent","html","nothing","property","ACCESS_ROLES","styles","directoryEntryOptionTemplate","entry","renderDirectoryEntryIcon","label","sources","includes","_classDecs","_AccessControlAddAcce","_AccessControlAddAcce2","_A","WeakMap","_B","_C","_D","_E","_ref","_principalInputValueDecs","attribute","_addAccessRoleValueDecs","_pendingAccessGrantsDecs","_inputErrorDecs","_asyncOptionsProviderDecs","_AccessControlAddAccess","AccessControlAddAccess","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_principalInputValue","_init_addAccessRoleValue","_init_pendingAccessGrants","_init_inputError","_init_asyncOptionsProvider","_classPrivateFieldGet","principalInputValue","v","_classPrivateFieldSet","addAccessRoleValue","pendingAccessGrants","inputError","asyncOptionsProvider","onPrincipalInput","event","value","getEventValue","dispatchEvent","CustomEvent","detail","bubbles","composed","onPrincipalSelect","option","onRoleChange","role","onPendingGrantRemove","index","target","currentTarget","render","renderPendingAccessGrants","filter","map","length","grant","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","nothing","customElement","property","WebComponent","ACCESS_ROLES","styles","require_decorators","require_WebComponent","require_AccessControlAddAccess_styles","solid_logic","lit","lit_decorators_js","_Class","_AccessControlAddAccess","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_principalInputValueDecs","_init_principalInputValue","_addAccessRoleValueDecs","_init_addAccessRoleValue","_pendingAccessGrantsDecs","_init_pendingAccessGrants","_inputErrorDecs","_init_inputError","_asyncOptionsProviderDecs","_init_asyncOptionsProvider","_AccessControlAddAcce2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","directoryEntryOptionTemplate","renderDirectoryEntryIcon","entry","_AccessControlAddAcce","args","value","event","option","role","target","grant","index"],"sources":["../../../src/components/access-control-modal/AccessControlAddAccess.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { ACCESS_ROLES, type AccessRole, type DirectoryEntry } from 'solid-logic'\nimport type { AsyncComboboxOptionsProvider, ComboboxChangeEvent } from '@/components/combobox'\n\nimport '~icons/lucide/book-user'\nimport '~icons/lucide/user-round'\nimport '~icons/lucide/users'\nimport '~icons/lucide/circle-x'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './AccessControlAddAccess.styles.css'\nimport type { PendingAccessGrant, PendingGrantRemovedDetail, RoleChangedDetail, TargetInputDetail, TargetSelectedDetail } from './types'\n\nexport function directoryEntryOptionTemplate (entry: DirectoryEntry) {\n return html`\n <span class=\"access-grants-directory-entry\">\n ${renderDirectoryEntryIcon(entry)}\n <span>${entry.label}</span>\n </span>\n `\n}\n\nfunction renderDirectoryEntryIcon (entry: DirectoryEntry) {\n if (entry.sources.includes('contacts') || entry.sources.includes('groups')) {\n return html`<icon-lucide-book-user style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-book-user>`\n }\n\n if (entry.sources.includes('friends')) {\n return html`<icon-lucide-users style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-users>`\n }\n\n if (entry.sources.includes('catalog')) {\n return html`<icon-lucide-user-round style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-user-round>`\n }\n\n return nothing\n}\n\n@customElement('solid-ui-access-control-add-access')\nexport default class AccessControlAddAccess extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor principalInputValue = ''\n\n @property({ attribute: false })\n accessor addAccessRoleValue: AccessRole = 'Viewer'\n\n @property({ attribute: false })\n accessor pendingAccessGrants: PendingAccessGrant[] = []\n\n @property({ attribute: false })\n accessor inputError = ''\n\n @property({ attribute: false })\n accessor asyncOptionsProvider: AsyncComboboxOptionsProvider | null = null\n\n private onPrincipalInput (event: Event) {\n const value = this.getEventValue(event)\n this.dispatchEvent(new CustomEvent<TargetInputDetail>('target-input', {\n detail: { value },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPrincipalSelect (event: ComboboxChangeEvent) {\n const option = event.detail.option\n if (typeof option.value !== 'string') {\n return\n }\n\n this.dispatchEvent(new CustomEvent<TargetSelectedDetail>('target-selected', {\n detail: {\n value: option.value,\n label: option.label\n },\n bubbles: true,\n composed: true\n }))\n }\n\n private onRoleChange (event: ComboboxChangeEvent) {\n const role = event.detail.option.value\n if (typeof role !== 'string' || !ACCESS_ROLES.includes(role as AccessRole)) {\n return\n }\n\n this.dispatchEvent(new CustomEvent<RoleChangedDetail>('role-changed', {\n detail: { role: role as AccessRole },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPendingGrantRemove (index: number) {\n this.dispatchEvent(new CustomEvent<PendingGrantRemovedDetail>('pending-grant-removed', {\n detail: { index },\n bubbles: true,\n composed: true\n }))\n }\n\n private getEventValue (event: Event): string {\n const target = event.currentTarget as { value?: string | null } | null\n return typeof target?.value === 'string' ? target.value : ''\n }\n\n protected render () {\n return html`\n <section class=\"access-grants-form\" aria-label=\"Add access\">\n <p>Add person, group or software agent URL.</p>\n <div class=\"access-grants-form-main\">\n <div class=\"access-grants-input\">\n <solid-ui-combobox\n class=\"access-principal-combobox\"\n label=\"Add person, group or software agent URL.\"\n .srOnlyLabel=${true}\n .value=${this.principalInputValue}\n placeholder=\"Paste a link or enter a name\"\n .asyncOptionsProvider=${this.asyncOptionsProvider}\n @input=${this.onPrincipalInput}\n @change=${this.onPrincipalSelect}\n ></solid-ui-combobox>\n ${this.inputError\n ? html`<p class=\"access-principal-error\" role=\"alert\">${this.inputError}</p>`\n : nothing}\n ${this.renderPendingAccessGrants()}\n </div>\n <solid-ui-combobox\n class=\"access-role-select access-role-select--top\"\n .value=${this.addAccessRoleValue}\n @change=${this.onRoleChange}\n >\n ${ACCESS_ROLES\n .filter(role => role !== 'No Access')\n .map(role => html`\n <solid-ui-combobox-option value=${role}>${role}</solid-ui-combobox-option>\n `)}\n </solid-ui-combobox>\n </div>\n </section>\n `\n }\n\n private renderPendingAccessGrants () {\n if (!this.pendingAccessGrants.length) {\n return nothing\n }\n\n return html`\n <div class=\"access-grants-pending\">\n ${this.pendingAccessGrants.map((grant, index) => html`\n <div class=\"access-grants-pending-item\">\n <span class=\"access-grants-pending-item-label\">${grant.label}</span>\n <solid-ui-button\n type=\"button\"\n variant=\"ghost\"\n class=\"access-grants-pending-item-remove\"\n @click=${() => this.onPendingGrantRemove(index)}\n >\n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6CAEhBQ,EAAM5D,MAAK;;;;SAI/C,EAAC;;MAlBGP,EAAAA,OAqBX,CACF,EAAC,CAAAoE,EAAA,CAAApC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAL,GAAAsC,EAAA,CAAA1D,EAAA2D,IAAAC,EAAA7C,EAAA,CAAA,CAAAN,EAAA,EAAA,qBAAA,EAAA,CAAAE,EAAA,EAAA,oBAAA,EAAA,CAAAC,EAAA,EAAA,qBAAA,EAAA,CAAAC,EAAA,EAAA,YAAA,EAAA,CAAAC,EAAA,EAAA,sBAAA,CAAA,EAAAf,EAAA,EAAA,IAAA,GAlImDZ,EAAAA,OAAY,EAAA4B,GAAA8C,EAAA,cAAAC,CAAA,CAAA7C,aAAA,CAAA,MAAAjB,CAAA,EAAA+D,EAAA,KAAA,SAC9CvE,EAAAA,OAAM,EAAAmE,EAAA,CAAA,CAAA,EAAAI,EAAAF,EAAA5D,EAAA,IAAA,EAAA,EAAA4D,G"}
|
|
1
|
+
{"version":3,"file":"AccessControlAddAccess.cjs.js","names":["customElement","WebComponent","html","nothing","property","ACCESS_ROLES","styles","directoryEntryOptionTemplate","entry","renderDirectoryEntryIcon","label","sources","includes","_classDecs","_AccessControlAddAcce","_AccessControlAddAcce2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_principalInputValueDecs","attribute","_addAccessRoleValueDecs","_pendingAccessGrantsDecs","_inputErrorDecs","_disabledDecs","type","Boolean","_asyncOptionsProviderDecs","_AccessControlAddAccess","AccessControlAddAccess","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_principalInputValue","_init_addAccessRoleValue","_init_pendingAccessGrants","_init_inputError","_init_disabled","_init_asyncOptionsProvider","_classPrivateFieldGet","principalInputValue","v","_classPrivateFieldSet","addAccessRoleValue","pendingAccessGrants","inputError","disabled","asyncOptionsProvider","onPrincipalInput","event","value","getEventValue","dispatchEvent","CustomEvent","detail","bubbles","composed","onPrincipalSelect","option","targetKind","onRoleChange","role","accessRole","find","candidate","undefined","onPendingGrantRemove","index","target","currentTarget","render","renderPendingAccessGrants","filter","map","length","grant","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","nothing","customElement","property","WebComponent","ACCESS_ROLES","styles","require_decorators","require_WebComponent","require_AccessControlAddAccess_styles","solid_logic","lit","lit_decorators_js","_Class","_AccessControlAddAccess","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_principalInputValueDecs","_init_principalInputValue","_addAccessRoleValueDecs","_init_addAccessRoleValue","_pendingAccessGrantsDecs","_init_pendingAccessGrants","_inputErrorDecs","_init_inputError","_disabledDecs","_init_disabled","_asyncOptionsProviderDecs","_init_asyncOptionsProvider","_AccessControlAddAcce2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","directoryEntryOptionTemplate","renderDirectoryEntryIcon","entry","_AccessControlAddAcce","args","value","event","option","role","accessRole","candidate","target","grant","index"],"sources":["../../../src/components/access-control-modal/AccessControlAddAccess.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { ACCESS_ROLES, type AccessRole, type DirectoryEntry } from 'solid-logic'\nimport type { AsyncComboboxOptionsProvider, ComboboxChangeEvent, ComboboxOptionData } from '@/components/combobox'\n\nimport '~icons/lucide/book-user'\nimport '~icons/lucide/user-round'\nimport '~icons/lucide/users'\nimport '~icons/lucide/circle-x'\nimport '~icons/lucide/globe'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './AccessControlAddAccess.styles.css'\nimport type { PendingAccessGrant, PendingGrantRemovedDetail, RoleChangedDetail, TargetInputDetail, TargetSelectedDetail } from './types'\n\nexport function directoryEntryOptionTemplate (entry: DirectoryEntry) {\n return html`\n <span class=\"access-grants-directory-entry\">\n ${renderDirectoryEntryIcon(entry)}\n <span>${entry.label}</span>\n </span>\n `\n}\n\nfunction renderDirectoryEntryIcon (entry: DirectoryEntry) {\n if (entry.sources.includes('contacts') || entry.sources.includes('groups')) {\n return html`<icon-lucide-book-user style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-book-user>`\n }\n\n if (entry.sources.includes('friends')) {\n return html`<icon-lucide-users style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-users>`\n }\n\n if (entry.sources.includes('catalog')) {\n return html`<icon-lucide-user-round style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-user-round>`\n }\n\n return nothing\n}\n\n@customElement('solid-ui-access-control-add-access')\nexport default class AccessControlAddAccess extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor principalInputValue = ''\n\n @property({ attribute: false })\n accessor addAccessRoleValue: AccessRole = 'Viewer'\n\n @property({ attribute: false })\n accessor pendingAccessGrants: PendingAccessGrant[] = []\n\n @property({ attribute: false })\n accessor inputError = ''\n\n @property({ type: Boolean })\n accessor disabled = false\n\n @property({ attribute: false })\n accessor asyncOptionsProvider: AsyncComboboxOptionsProvider | null = null\n\n private onPrincipalInput (event: Event) {\n const value = this.getEventValue(event)\n this.dispatchEvent(new CustomEvent<TargetInputDetail>('target-input', {\n detail: { value },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPrincipalSelect (event: ComboboxChangeEvent) {\n const option = event.detail.option as ComboboxOptionData & { targetKind?: 'origin' | 'trustedApp' }\n if (typeof option.value !== 'string') {\n return\n }\n\n this.dispatchEvent(new CustomEvent<TargetSelectedDetail>('target-selected', {\n detail: {\n value: option.value,\n label: option.label,\n targetKind: option.targetKind\n },\n bubbles: true,\n composed: true\n }))\n }\n\n private onRoleChange (event: ComboboxChangeEvent) {\n const role = event.detail.option.value\n const accessRole = typeof role === 'string'\n ? ACCESS_ROLES.find(candidate => candidate === role)\n : undefined\n if (!accessRole) {\n return\n }\n\n this.dispatchEvent(new CustomEvent<RoleChangedDetail>('role-changed', {\n detail: { role: accessRole },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPendingGrantRemove (index: number) {\n this.dispatchEvent(new CustomEvent<PendingGrantRemovedDetail>('pending-grant-removed', {\n detail: { index },\n bubbles: true,\n composed: true\n }))\n }\n\n private getEventValue (event: Event): string {\n const target = event.currentTarget as { value?: string | null } | null\n return typeof target?.value === 'string' ? target.value : ''\n }\n\n protected render () {\n return html`\n <section class=\"access-grants-form\" aria-label=\"Add access\">\n <p>Add person, group or software agent URL.</p>\n <div class=\"access-grants-form-main\">\n <div class=\"access-grants-input\">\n <solid-ui-combobox\n class=\"access-principal-combobox\"\n .disabled=${this.disabled}\n label=\"Add person, group or software agent URL.\"\n .srOnlyLabel=${true}\n .value=${this.principalInputValue}\n placeholder=\"Paste a link or enter a name\"\n .asyncOptionsProvider=${this.asyncOptionsProvider}\n @input=${this.onPrincipalInput}\n @change=${this.onPrincipalSelect}\n ></solid-ui-combobox>\n ${this.inputError\n ? html`<p class=\"access-principal-error\" role=\"alert\">${this.inputError}</p>`\n : nothing}\n ${this.renderPendingAccessGrants()}\n </div>\n <solid-ui-combobox\n class=\"access-role-select access-role-select--top\"\n .disabled=${this.disabled}\n .value=${this.addAccessRoleValue}\n @change=${this.onRoleChange}\n >\n ${ACCESS_ROLES\n .filter(role => role !== 'No Access')\n .map(role => html`\n <solid-ui-combobox-option value=${role}>${role}</solid-ui-combobox-option>\n `)}\n </solid-ui-combobox>\n </div>\n </section>\n `\n }\n\n private renderPendingAccessGrants () {\n if (!this.pendingAccessGrants.length) {\n return nothing\n }\n\n return html`\n <div class=\"access-grants-pending\">\n ${this.pendingAccessGrants.map((grant, index) => html`\n <div class=\"access-grants-pending-item\">\n <span class=\"access-grants-pending-item-label\">\n ${grant.targetKind === 'trustedApp'\n ? html`<icon-lucide-globe style=\"width: 13px; height: 13px; vertical-align: -2px;\"></icon-lucide-globe>`\n : nothing}\n ${grant.label}\n </span>\n <solid-ui-button\n type=\"button\"\n variant=\"ghost\"\n class=\"access-grants-pending-item-remove\"\n ?disabled=${this.disabled}\n @click=${() => this.onPendingGrantRemove(index)}\n >\n <span class=\"sr-only\">Remove ${grant.label}</span>\n <icon-lucide-circle-x slot=\"icon\"></icon-lucide-circle-x>\n </solid-ui-button>\n </div>\n `)}\n </div>\n `\n }\n}\n"],"mappings":"A,uzJAkBA,SAAgBO,EAA8BC,EAAuB,CACnE,MAAON,GAAAA,IAAI;;QAELO,EAAyBD,CAAK,EAAC;cACzBA,EAAME,MAAK;;GAGzB,CAEA,SAASD,EAA0BD,EAAuB,CAaxD,OAZIA,EAAMG,QAAQC,SAAS,UAAU,GAAKJ,EAAMG,QAAQC,SAAS,QAAQ,EAChEV,EAAAA,IAAI,qGAGTM,EAAMG,QAAQC,SAAS,SAAS,EAC3BV,EAAAA,IAAI,6FAGTM,EAAMG,QAAQC,SAAS,SAAS,EAC3BV,EAAAA,IAAI,uGAGNC,EAAAA,OACT,CAACU,EAAA,CAEAb,EAAAA,cAAc,oCAAoC,CAAC,EAAA,IAAAc,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,GAAAC,GAAAA,EAIjDpB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BtB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BvB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACG,GAAAA,EAG9BxB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACI,GAAAA,EAG9BzB,EAAAA,SAAAA,CAAS,CAAE0B,KAAMC,OAAQ,CAAC,EAACC,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A,CAAA,EAAAI,EAAAF,EAAAvE,EAAA,IAAA,EAAA,EAAAuE,G"}
|
|
@@ -9,6 +9,7 @@ export default class AccessControlAddAccess extends WebComponent {
|
|
|
9
9
|
accessor addAccessRoleValue: AccessRole;
|
|
10
10
|
accessor pendingAccessGrants: PendingAccessGrant[];
|
|
11
11
|
accessor inputError: string;
|
|
12
|
+
accessor disabled: boolean;
|
|
12
13
|
accessor asyncOptionsProvider: AsyncComboboxOptionsProvider | null;
|
|
13
14
|
private onPrincipalInput;
|
|
14
15
|
private onPrincipalSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessControlAddAccess.d.ts","sourceRoot":"","sources":["../../../src/components/access-control-modal/AccessControlAddAccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG9D,OAAO,EAAgB,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"AccessControlAddAccess.d.ts","sourceRoot":"","sources":["../../../src/components/access-control-modal/AccessControlAddAccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG9D,OAAO,EAAgB,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAE,4BAA4B,EAA2C,MAAM,uBAAuB,CAAA;AAElH,OAAO,yBAAyB,CAAA;AAChC,OAAO,0BAA0B,CAAA;AACjC,OAAO,qBAAqB,CAAA;AAC5B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,uBAAuB,CAAA;AAC9B,OAAO,8BAA8B,CAAA;AAGrC,OAAO,KAAK,EAAE,kBAAkB,EAAyF,MAAM,SAAS,CAAA;AAExI,wBAAgB,4BAA4B,CAAE,KAAK,EAAE,cAAc,wCAOlE;AAmBD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAAY;IAC9D,MAAM,CAAC,MAAM,0BAAS;IAGtB,QAAQ,CAAC,mBAAmB,SAAK;IAGjC,QAAQ,CAAC,kBAAkB,EAAE,UAAU,CAAW;IAGlD,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAAK;IAGvD,QAAQ,CAAC,UAAU,SAAK;IAGxB,QAAQ,CAAC,QAAQ,UAAQ;IAGzB,QAAQ,CAAC,oBAAoB,EAAE,4BAA4B,GAAG,IAAI,CAAO;IAEzE,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,aAAa;IAKrB,SAAS,CAAC,MAAM;IAuChB,OAAO,CAAC,yBAAyB;CA8BlC"}
|
|
@@ -5,6 +5,7 @@ import "../button/index.esm.js";
|
|
|
5
5
|
import "../combobox/index.esm.js";
|
|
6
6
|
import "../combobox-option/index.esm.js";
|
|
7
7
|
import "../../_virtual/~icons/lucide/circle-x.esm.js";
|
|
8
|
+
import "../../_virtual/~icons/lucide/globe.esm.js";
|
|
8
9
|
import "../../_virtual/~icons/lucide/book-user.esm.js";
|
|
9
10
|
import "../../_virtual/~icons/lucide/user-round.esm.js";
|
|
10
11
|
import "../../_virtual/~icons/lucide/users.esm.js";
|
|
@@ -12,33 +13,33 @@ import n from "./AccessControlAddAccess.styles.esm.js";
|
|
|
12
13
|
import { ACCESS_ROLES as r } from "solid-logic";
|
|
13
14
|
import { html as i, nothing as a } from "lit";
|
|
14
15
|
import { property as o } from "lit/decorators.js";
|
|
15
|
-
|
|
16
|
-
var s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O;
|
|
17
|
-
function
|
|
18
|
-
|
|
16
|
+
// src/components/access-control-modal/AccessControlAddAccess.ts
|
|
17
|
+
var s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j;
|
|
18
|
+
function M(e, t, n) {
|
|
19
|
+
N(e, t), t.set(e, n);
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function N(e, t) {
|
|
21
22
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
return e.set(
|
|
24
|
+
function P(e, t, n) {
|
|
25
|
+
return e.set(I(e, t), n), n;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
return e.get(
|
|
27
|
+
function F(e, t) {
|
|
28
|
+
return e.get(I(e, t));
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function I(e, t, n) {
|
|
30
31
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
31
32
|
throw TypeError("Private element is not present on this object");
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
return (t =
|
|
34
|
+
function L(e, t, n) {
|
|
35
|
+
return (t = z(t)) in e ? Object.defineProperty(e, t, {
|
|
35
36
|
value: n,
|
|
36
37
|
enumerable: !0,
|
|
37
38
|
configurable: !0,
|
|
38
39
|
writable: !0
|
|
39
40
|
}) : e[t] = n, e;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function R(e, t, n, r, i, a) {
|
|
42
43
|
function o(e, t, n) {
|
|
43
44
|
return function(r, i) {
|
|
44
45
|
return n && n(r), e[t].call(r, i);
|
|
@@ -61,13 +62,13 @@ function F(e, t, n, r, i, a) {
|
|
|
61
62
|
n || Array.isArray(_) || (_ = [_]);
|
|
62
63
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
63
64
|
d ? (f || p ? b = {
|
|
64
|
-
get:
|
|
65
|
+
get: V(function() {
|
|
65
66
|
return v(this);
|
|
66
67
|
}, r, "get"),
|
|
67
68
|
set: function(e) {
|
|
68
69
|
t[4](this, e);
|
|
69
70
|
}
|
|
70
|
-
} : b[S] = v, f ||
|
|
71
|
+
} : b[S] = v, f || V(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
71
72
|
}
|
|
72
73
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
73
74
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -127,7 +128,7 @@ function F(e, t, n, r, i, a) {
|
|
|
127
128
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
128
129
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
129
130
|
var i, a, o = [], c = function(t) {
|
|
130
|
-
return
|
|
131
|
+
return H(t) === e;
|
|
131
132
|
}, u = /* @__PURE__ */ new Map();
|
|
132
133
|
function d(e) {
|
|
133
134
|
e && o.push(s.bind(null, e));
|
|
@@ -141,7 +142,7 @@ function F(e, t, n, r, i, a) {
|
|
|
141
142
|
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
142
143
|
u.set(b, !(m > 2) || m);
|
|
143
144
|
}
|
|
144
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
145
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : z(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
return d(i), d(a), o;
|
|
@@ -154,11 +155,11 @@ function F(e, t, n, r, i, a) {
|
|
|
154
155
|
}
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
var t =
|
|
158
|
+
function z(e) {
|
|
159
|
+
var t = B(e, "string");
|
|
159
160
|
return typeof t == "symbol" ? t : t + "";
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
+
function B(e, t) {
|
|
162
163
|
if (typeof e != "object" || !e) return e;
|
|
163
164
|
var n;
|
|
164
165
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -168,7 +169,7 @@ function L(e, t) {
|
|
|
168
169
|
}
|
|
169
170
|
return (t === "string" ? String : Number)(e);
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function V(e, t, n) {
|
|
172
173
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
173
174
|
try {
|
|
174
175
|
Object.defineProperty(e, "name", {
|
|
@@ -178,59 +179,65 @@ function R(e, t, n) {
|
|
|
178
179
|
} catch {}
|
|
179
180
|
return e;
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function H(e) {
|
|
182
183
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
183
184
|
return e;
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
+
function U(e) {
|
|
186
187
|
return e;
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function W(e) {
|
|
189
190
|
return i`
|
|
190
191
|
<span class="access-grants-directory-entry">
|
|
191
|
-
${
|
|
192
|
+
${G(e)}
|
|
192
193
|
<span>${e.label}</span>
|
|
193
194
|
</span>
|
|
194
195
|
`;
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
+
function G(e) {
|
|
197
198
|
return e.sources.includes("contacts") || e.sources.includes("groups") ? i`<icon-lucide-book-user style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-book-user>` : e.sources.includes("friends") ? i`<icon-lucide-users style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-users>` : e.sources.includes("catalog") ? i`<icon-lucide-user-round style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-user-round>` : a;
|
|
198
199
|
}
|
|
199
|
-
|
|
200
|
-
var
|
|
201
|
-
new (
|
|
200
|
+
_ = [e("solid-ui-access-control-add-access")];
|
|
201
|
+
var K;
|
|
202
|
+
new (A = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), j = (v = o({ attribute: !1 }), b = o({ attribute: !1 }), S = o({ attribute: !1 }), w = o({ attribute: !1 }), E = o({ type: Boolean }), O = o({ attribute: !1 }), "principalInputValue"), c = class extends t {
|
|
202
203
|
constructor(...e) {
|
|
203
|
-
super(...e),
|
|
204
|
+
super(...e), M(this, l, (h(this), y(this, ""))), M(this, u, x(this, "Viewer")), M(this, d, C(this, [])), M(this, f, T(this, "")), M(this, p, D(this, !1)), M(this, m, k(this, null));
|
|
204
205
|
}
|
|
205
|
-
get [
|
|
206
|
-
return
|
|
206
|
+
get [j]() {
|
|
207
|
+
return F(l, this);
|
|
207
208
|
}
|
|
208
209
|
set principalInputValue(e) {
|
|
209
|
-
|
|
210
|
+
P(l, this, e);
|
|
210
211
|
}
|
|
211
212
|
get addAccessRoleValue() {
|
|
212
|
-
return
|
|
213
|
+
return F(u, this);
|
|
213
214
|
}
|
|
214
215
|
set addAccessRoleValue(e) {
|
|
215
|
-
|
|
216
|
+
P(u, this, e);
|
|
216
217
|
}
|
|
217
218
|
get pendingAccessGrants() {
|
|
218
|
-
return
|
|
219
|
+
return F(d, this);
|
|
219
220
|
}
|
|
220
221
|
set pendingAccessGrants(e) {
|
|
221
|
-
|
|
222
|
+
P(d, this, e);
|
|
222
223
|
}
|
|
223
224
|
get inputError() {
|
|
224
|
-
return
|
|
225
|
+
return F(f, this);
|
|
225
226
|
}
|
|
226
227
|
set inputError(e) {
|
|
227
|
-
|
|
228
|
+
P(f, this, e);
|
|
229
|
+
}
|
|
230
|
+
get disabled() {
|
|
231
|
+
return F(p, this);
|
|
232
|
+
}
|
|
233
|
+
set disabled(e) {
|
|
234
|
+
P(p, this, e);
|
|
228
235
|
}
|
|
229
236
|
get asyncOptionsProvider() {
|
|
230
|
-
return
|
|
237
|
+
return F(m, this);
|
|
231
238
|
}
|
|
232
239
|
set asyncOptionsProvider(e) {
|
|
233
|
-
|
|
240
|
+
P(m, this, e);
|
|
234
241
|
}
|
|
235
242
|
onPrincipalInput(e) {
|
|
236
243
|
let t = this.getEventValue(e);
|
|
@@ -245,16 +252,17 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
245
252
|
typeof t.value == "string" && this.dispatchEvent(new CustomEvent("target-selected", {
|
|
246
253
|
detail: {
|
|
247
254
|
value: t.value,
|
|
248
|
-
label: t.label
|
|
255
|
+
label: t.label,
|
|
256
|
+
targetKind: t.targetKind
|
|
249
257
|
},
|
|
250
258
|
bubbles: !0,
|
|
251
259
|
composed: !0
|
|
252
260
|
}));
|
|
253
261
|
}
|
|
254
262
|
onRoleChange(e) {
|
|
255
|
-
let t = e.detail.option.value;
|
|
256
|
-
|
|
257
|
-
detail: { role:
|
|
263
|
+
let t = e.detail.option.value, n = typeof t == "string" ? r.find((e) => e === t) : void 0;
|
|
264
|
+
n && this.dispatchEvent(new CustomEvent("role-changed", {
|
|
265
|
+
detail: { role: n },
|
|
258
266
|
bubbles: !0,
|
|
259
267
|
composed: !0
|
|
260
268
|
}));
|
|
@@ -278,6 +286,7 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
278
286
|
<div class="access-grants-input">
|
|
279
287
|
<solid-ui-combobox
|
|
280
288
|
class="access-principal-combobox"
|
|
289
|
+
.disabled=${this.disabled}
|
|
281
290
|
label="Add person, group or software agent URL."
|
|
282
291
|
.srOnlyLabel=${!0}
|
|
283
292
|
.value=${this.principalInputValue}
|
|
@@ -291,6 +300,7 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
291
300
|
</div>
|
|
292
301
|
<solid-ui-combobox
|
|
293
302
|
class="access-role-select access-role-select--top"
|
|
303
|
+
.disabled=${this.disabled}
|
|
294
304
|
.value=${this.addAccessRoleValue}
|
|
295
305
|
@change=${this.onRoleChange}
|
|
296
306
|
>
|
|
@@ -307,11 +317,15 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
307
317
|
<div class="access-grants-pending">
|
|
308
318
|
${this.pendingAccessGrants.map((e, t) => i`
|
|
309
319
|
<div class="access-grants-pending-item">
|
|
310
|
-
<span class="access-grants-pending-item-label"
|
|
320
|
+
<span class="access-grants-pending-item-label">
|
|
321
|
+
${e.targetKind === "trustedApp" ? i`<icon-lucide-globe style="width: 13px; height: 13px; vertical-align: -2px;"></icon-lucide-globe>` : a}
|
|
322
|
+
${e.label}
|
|
323
|
+
</span>
|
|
311
324
|
<solid-ui-button
|
|
312
325
|
type="button"
|
|
313
326
|
variant="ghost"
|
|
314
327
|
class="access-grants-pending-item-remove"
|
|
328
|
+
?disabled=${this.disabled}
|
|
315
329
|
@click=${() => this.onPendingGrantRemove(t)}
|
|
316
330
|
>
|
|
317
331
|
<span class="sr-only">Remove ${e.label}</span>
|
|
@@ -322,38 +336,42 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
322
336
|
</div>
|
|
323
337
|
` : a;
|
|
324
338
|
}
|
|
325
|
-
}, {e: [
|
|
339
|
+
}, {e: [y, x, C, T, D, k, h], c: [K, g]} = R(c, [
|
|
326
340
|
[
|
|
327
|
-
|
|
341
|
+
v,
|
|
328
342
|
1,
|
|
329
343
|
"principalInputValue"
|
|
330
344
|
],
|
|
331
345
|
[
|
|
332
|
-
|
|
346
|
+
b,
|
|
333
347
|
1,
|
|
334
348
|
"addAccessRoleValue"
|
|
335
349
|
],
|
|
336
350
|
[
|
|
337
|
-
|
|
351
|
+
S,
|
|
338
352
|
1,
|
|
339
353
|
"pendingAccessGrants"
|
|
340
354
|
],
|
|
341
355
|
[
|
|
342
|
-
|
|
356
|
+
w,
|
|
343
357
|
1,
|
|
344
358
|
"inputError"
|
|
345
359
|
],
|
|
346
360
|
[
|
|
347
|
-
|
|
361
|
+
E,
|
|
362
|
+
1,
|
|
363
|
+
"disabled"
|
|
364
|
+
],
|
|
365
|
+
[
|
|
366
|
+
O,
|
|
348
367
|
1,
|
|
349
368
|
"asyncOptionsProvider"
|
|
350
369
|
]
|
|
351
|
-
],
|
|
370
|
+
], _, 0, void 0, t), c), s = class extends U {
|
|
352
371
|
constructor() {
|
|
353
|
-
super(
|
|
372
|
+
super(K), L(this, "styles", n), g();
|
|
354
373
|
}
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
export { U as default, V as directoryEntryOptionTemplate };
|
|
374
|
+
}, L(s, A, void 0), s)();
|
|
375
|
+
export { K as default, W as directoryEntryOptionTemplate };
|
|
358
376
|
|
|
359
377
|
//# sourceMappingURL=AccessControlAddAccess.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessControlAddAccess.esm.js","names":["customElement","WebComponent","html","nothing","property","ACCESS_ROLES","styles","directoryEntryOptionTemplate","entry","renderDirectoryEntryIcon","label","sources","includes","_classDecs","_AccessControlAddAcce","_AccessControlAddAcce2","_A","WeakMap","_B","_C","_D","_E","_ref","_principalInputValueDecs","attribute","_addAccessRoleValueDecs","_pendingAccessGrantsDecs","_inputErrorDecs","_asyncOptionsProviderDecs","_AccessControlAddAccess","AccessControlAddAccess","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_principalInputValue","_init_addAccessRoleValue","_init_pendingAccessGrants","_init_inputError","_init_asyncOptionsProvider","_classPrivateFieldGet","principalInputValue","v","_classPrivateFieldSet","addAccessRoleValue","pendingAccessGrants","inputError","asyncOptionsProvider","onPrincipalInput","event","value","getEventValue","dispatchEvent","CustomEvent","detail","bubbles","composed","onPrincipalSelect","option","onRoleChange","role","onPendingGrantRemove","index","target","currentTarget","render","renderPendingAccessGrants","filter","map","length","grant","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","styles","WebComponent","AccessControlAddAccess_styles_default","_Class","_AccessControlAddAccess","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_principalInputValueDecs","_init_principalInputValue","_addAccessRoleValueDecs","_init_addAccessRoleValue","_pendingAccessGrantsDecs","_init_pendingAccessGrants","_inputErrorDecs","_init_inputError","_asyncOptionsProviderDecs","_init_asyncOptionsProvider","_AccessControlAddAcce2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","directoryEntryOptionTemplate","renderDirectoryEntryIcon","entry","nothing","customElement","_AccessControlAddAcce","property","args","value","event","option","role","ACCESS_ROLES","target","grant","index"],"sources":["../../../src/components/access-control-modal/AccessControlAddAccess.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { ACCESS_ROLES, type AccessRole, type DirectoryEntry } from 'solid-logic'\nimport type { AsyncComboboxOptionsProvider, ComboboxChangeEvent } from '@/components/combobox'\n\nimport '~icons/lucide/book-user'\nimport '~icons/lucide/user-round'\nimport '~icons/lucide/users'\nimport '~icons/lucide/circle-x'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './AccessControlAddAccess.styles.css'\nimport type { PendingAccessGrant, PendingGrantRemovedDetail, RoleChangedDetail, TargetInputDetail, TargetSelectedDetail } from './types'\n\nexport function directoryEntryOptionTemplate (entry: DirectoryEntry) {\n return html`\n <span class=\"access-grants-directory-entry\">\n ${renderDirectoryEntryIcon(entry)}\n <span>${entry.label}</span>\n </span>\n `\n}\n\nfunction renderDirectoryEntryIcon (entry: DirectoryEntry) {\n if (entry.sources.includes('contacts') || entry.sources.includes('groups')) {\n return html`<icon-lucide-book-user style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-book-user>`\n }\n\n if (entry.sources.includes('friends')) {\n return html`<icon-lucide-users style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-users>`\n }\n\n if (entry.sources.includes('catalog')) {\n return html`<icon-lucide-user-round style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-user-round>`\n }\n\n return nothing\n}\n\n@customElement('solid-ui-access-control-add-access')\nexport default class AccessControlAddAccess extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor principalInputValue = ''\n\n @property({ attribute: false })\n accessor addAccessRoleValue: AccessRole = 'Viewer'\n\n @property({ attribute: false })\n accessor pendingAccessGrants: PendingAccessGrant[] = []\n\n @property({ attribute: false })\n accessor inputError = ''\n\n @property({ attribute: false })\n accessor asyncOptionsProvider: AsyncComboboxOptionsProvider | null = null\n\n private onPrincipalInput (event: Event) {\n const value = this.getEventValue(event)\n this.dispatchEvent(new CustomEvent<TargetInputDetail>('target-input', {\n detail: { value },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPrincipalSelect (event: ComboboxChangeEvent) {\n const option = event.detail.option\n if (typeof option.value !== 'string') {\n return\n }\n\n this.dispatchEvent(new CustomEvent<TargetSelectedDetail>('target-selected', {\n detail: {\n value: option.value,\n label: option.label\n },\n bubbles: true,\n composed: true\n }))\n }\n\n private onRoleChange (event: ComboboxChangeEvent) {\n const role = event.detail.option.value\n if (typeof role !== 'string' || !ACCESS_ROLES.includes(role as AccessRole)) {\n return\n }\n\n this.dispatchEvent(new CustomEvent<RoleChangedDetail>('role-changed', {\n detail: { role: role as AccessRole },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPendingGrantRemove (index: number) {\n this.dispatchEvent(new CustomEvent<PendingGrantRemovedDetail>('pending-grant-removed', {\n detail: { index },\n bubbles: true,\n composed: true\n }))\n }\n\n private getEventValue (event: Event): string {\n const target = event.currentTarget as { value?: string | null } | null\n return typeof target?.value === 'string' ? target.value : ''\n }\n\n protected render () {\n return html`\n <section class=\"access-grants-form\" aria-label=\"Add access\">\n <p>Add person, group or software agent URL.</p>\n <div class=\"access-grants-form-main\">\n <div class=\"access-grants-input\">\n <solid-ui-combobox\n class=\"access-principal-combobox\"\n label=\"Add person, group or software agent URL.\"\n .srOnlyLabel=${true}\n .value=${this.principalInputValue}\n placeholder=\"Paste a link or enter a name\"\n .asyncOptionsProvider=${this.asyncOptionsProvider}\n @input=${this.onPrincipalInput}\n @change=${this.onPrincipalSelect}\n ></solid-ui-combobox>\n ${this.inputError\n ? html`<p class=\"access-principal-error\" role=\"alert\">${this.inputError}</p>`\n : nothing}\n ${this.renderPendingAccessGrants()}\n </div>\n <solid-ui-combobox\n class=\"access-role-select access-role-select--top\"\n .value=${this.addAccessRoleValue}\n @change=${this.onRoleChange}\n >\n ${ACCESS_ROLES\n .filter(role => role !== 'No Access')\n .map(role => html`\n <solid-ui-combobox-option value=${role}>${role}</solid-ui-combobox-option>\n `)}\n </solid-ui-combobox>\n </div>\n </section>\n `\n }\n\n private renderPendingAccessGrants () {\n if (!this.pendingAccessGrants.length) {\n return nothing\n }\n\n return html`\n <div class=\"access-grants-pending\">\n ${this.pendingAccessGrants.map((grant, index) => html`\n <div class=\"access-grants-pending-item\">\n <span class=\"access-grants-pending-item-label\">${grant.label}</span>\n <solid-ui-button\n type=\"button\"\n variant=\"ghost\"\n class=\"access-grants-pending-item-remove\"\n @click=${() => this.onPendingGrantRemove(index)}\n >\n <span class=\"sr-only\">Remove ${grant.label}</span>\n <icon-lucide-circle-x slot=\"icon\"></icon-lucide-circle-x>\n </solid-ui-button>\n </div>\n `)}\n </div>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,GAAA2D,MAAAC,EAAA7C,GAAA;CAAA;EAAAN;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAf,GAAA,GAAA,KAAA,GAlImDZ,CAAY,GAAA4B,IAAA8C,IAAA,cAAAC,EAAA;CAAA7C,cAAA;EAAA,MAAAjB,CAAA,GAAA+D,EAAA,MAAA,UAC9CvE,CAAM,GAAAmE,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAA5D,GAAA,KAAA,CAAA,GAAA4D,GAAA"}
|
|
1
|
+
{"version":3,"file":"AccessControlAddAccess.esm.js","names":["customElement","WebComponent","html","nothing","property","ACCESS_ROLES","styles","directoryEntryOptionTemplate","entry","renderDirectoryEntryIcon","label","sources","includes","_classDecs","_AccessControlAddAcce","_AccessControlAddAcce2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_principalInputValueDecs","attribute","_addAccessRoleValueDecs","_pendingAccessGrantsDecs","_inputErrorDecs","_disabledDecs","type","Boolean","_asyncOptionsProviderDecs","_AccessControlAddAccess","AccessControlAddAccess","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_principalInputValue","_init_addAccessRoleValue","_init_pendingAccessGrants","_init_inputError","_init_disabled","_init_asyncOptionsProvider","_classPrivateFieldGet","principalInputValue","v","_classPrivateFieldSet","addAccessRoleValue","pendingAccessGrants","inputError","disabled","asyncOptionsProvider","onPrincipalInput","event","value","getEventValue","dispatchEvent","CustomEvent","detail","bubbles","composed","onPrincipalSelect","option","targetKind","onRoleChange","role","accessRole","find","candidate","undefined","onPendingGrantRemove","index","target","currentTarget","render","renderPendingAccessGrants","filter","map","length","grant","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","styles","WebComponent","AccessControlAddAccess_styles_default","_Class","_AccessControlAddAccess","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_principalInputValueDecs","_init_principalInputValue","_addAccessRoleValueDecs","_init_addAccessRoleValue","_pendingAccessGrantsDecs","_init_pendingAccessGrants","_inputErrorDecs","_init_inputError","_disabledDecs","_init_disabled","_asyncOptionsProviderDecs","_init_asyncOptionsProvider","_AccessControlAddAcce2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","directoryEntryOptionTemplate","renderDirectoryEntryIcon","entry","nothing","customElement","_AccessControlAddAcce","property","args","value","event","option","role","accessRole","ACCESS_ROLES","candidate","target","grant","index"],"sources":["../../../src/components/access-control-modal/AccessControlAddAccess.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { ACCESS_ROLES, type AccessRole, type DirectoryEntry } from 'solid-logic'\nimport type { AsyncComboboxOptionsProvider, ComboboxChangeEvent, ComboboxOptionData } from '@/components/combobox'\n\nimport '~icons/lucide/book-user'\nimport '~icons/lucide/user-round'\nimport '~icons/lucide/users'\nimport '~icons/lucide/circle-x'\nimport '~icons/lucide/globe'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './AccessControlAddAccess.styles.css'\nimport type { PendingAccessGrant, PendingGrantRemovedDetail, RoleChangedDetail, TargetInputDetail, TargetSelectedDetail } from './types'\n\nexport function directoryEntryOptionTemplate (entry: DirectoryEntry) {\n return html`\n <span class=\"access-grants-directory-entry\">\n ${renderDirectoryEntryIcon(entry)}\n <span>${entry.label}</span>\n </span>\n `\n}\n\nfunction renderDirectoryEntryIcon (entry: DirectoryEntry) {\n if (entry.sources.includes('contacts') || entry.sources.includes('groups')) {\n return html`<icon-lucide-book-user style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-book-user>`\n }\n\n if (entry.sources.includes('friends')) {\n return html`<icon-lucide-users style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-users>`\n }\n\n if (entry.sources.includes('catalog')) {\n return html`<icon-lucide-user-round style=\"width: 13px; height: 13px; flex: 0 0 13px;\"></icon-lucide-user-round>`\n }\n\n return nothing\n}\n\n@customElement('solid-ui-access-control-add-access')\nexport default class AccessControlAddAccess extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor principalInputValue = ''\n\n @property({ attribute: false })\n accessor addAccessRoleValue: AccessRole = 'Viewer'\n\n @property({ attribute: false })\n accessor pendingAccessGrants: PendingAccessGrant[] = []\n\n @property({ attribute: false })\n accessor inputError = ''\n\n @property({ type: Boolean })\n accessor disabled = false\n\n @property({ attribute: false })\n accessor asyncOptionsProvider: AsyncComboboxOptionsProvider | null = null\n\n private onPrincipalInput (event: Event) {\n const value = this.getEventValue(event)\n this.dispatchEvent(new CustomEvent<TargetInputDetail>('target-input', {\n detail: { value },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPrincipalSelect (event: ComboboxChangeEvent) {\n const option = event.detail.option as ComboboxOptionData & { targetKind?: 'origin' | 'trustedApp' }\n if (typeof option.value !== 'string') {\n return\n }\n\n this.dispatchEvent(new CustomEvent<TargetSelectedDetail>('target-selected', {\n detail: {\n value: option.value,\n label: option.label,\n targetKind: option.targetKind\n },\n bubbles: true,\n composed: true\n }))\n }\n\n private onRoleChange (event: ComboboxChangeEvent) {\n const role = event.detail.option.value\n const accessRole = typeof role === 'string'\n ? ACCESS_ROLES.find(candidate => candidate === role)\n : undefined\n if (!accessRole) {\n return\n }\n\n this.dispatchEvent(new CustomEvent<RoleChangedDetail>('role-changed', {\n detail: { role: accessRole },\n bubbles: true,\n composed: true\n }))\n }\n\n private onPendingGrantRemove (index: number) {\n this.dispatchEvent(new CustomEvent<PendingGrantRemovedDetail>('pending-grant-removed', {\n detail: { index },\n bubbles: true,\n composed: true\n }))\n }\n\n private getEventValue (event: Event): string {\n const target = event.currentTarget as { value?: string | null } | null\n return typeof target?.value === 'string' ? target.value : ''\n }\n\n protected render () {\n return html`\n <section class=\"access-grants-form\" aria-label=\"Add access\">\n <p>Add person, group or software agent URL.</p>\n <div class=\"access-grants-form-main\">\n <div class=\"access-grants-input\">\n <solid-ui-combobox\n class=\"access-principal-combobox\"\n .disabled=${this.disabled}\n label=\"Add person, group or software agent URL.\"\n .srOnlyLabel=${true}\n .value=${this.principalInputValue}\n placeholder=\"Paste a link or enter a name\"\n .asyncOptionsProvider=${this.asyncOptionsProvider}\n @input=${this.onPrincipalInput}\n @change=${this.onPrincipalSelect}\n ></solid-ui-combobox>\n ${this.inputError\n ? html`<p class=\"access-principal-error\" role=\"alert\">${this.inputError}</p>`\n : nothing}\n ${this.renderPendingAccessGrants()}\n </div>\n <solid-ui-combobox\n class=\"access-role-select access-role-select--top\"\n .disabled=${this.disabled}\n .value=${this.addAccessRoleValue}\n @change=${this.onRoleChange}\n >\n ${ACCESS_ROLES\n .filter(role => role !== 'No Access')\n .map(role => html`\n <solid-ui-combobox-option value=${role}>${role}</solid-ui-combobox-option>\n `)}\n </solid-ui-combobox>\n </div>\n </section>\n `\n }\n\n private renderPendingAccessGrants () {\n if (!this.pendingAccessGrants.length) {\n return nothing\n }\n\n return html`\n <div class=\"access-grants-pending\">\n ${this.pendingAccessGrants.map((grant, index) => html`\n <div class=\"access-grants-pending-item\">\n <span class=\"access-grants-pending-item-label\">\n ${grant.targetKind === 'trustedApp'\n ? html`<icon-lucide-globe style=\"width: 13px; height: 13px; vertical-align: -2px;\"></icon-lucide-globe>`\n : nothing}\n ${grant.label}\n </span>\n <solid-ui-button\n type=\"button\"\n variant=\"ghost\"\n class=\"access-grants-pending-item-remove\"\n ?disabled=${this.disabled}\n @click=${() => this.onPendingGrantRemove(index)}\n >\n <span class=\"sr-only\">Remove ${grant.label}</span>\n <icon-lucide-circle-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AAK0E,0BAA0B,EAAC;;;;wBAItB,KAAKzB,SAAQ;qBAChB,KAAKH,mBAAkB;sBACtB,KAAKiB,aAAY;;cAEzB7D,EACCyE,QAAOX,MAAQA,MAAS,WAAW,CAAC,CACpCY,KAAIZ,MAAQjE,CAAI;kDACmBiE,EAAI,GAAIA,EAAI;eAC/C,EAAC;;;;;CAKd;CAEQU,4BAA6B;EAKnC,OAJK,KAAK3B,oBAAoB8B,SAIvB9E,CAAI;;UAEL,KAAKgD,oBAAoB6B,KAAKE,GAAOR,MAAUvE,CAAI;;;gBAG7C+E,EAAMhB,eAAe,eACnB/D,CAAI,qGACJC,EAAO;gBACT8E,EAAMvE,MAAK;;;;;;0BAMD,KAAK0C,SAAQ;6BACV,KAAKoB,qBAAqBC,CAAK,EAAC;;6CAEhBQ,EAAMvE,MAAK;;;;SAI/C,EAAC;;QAxBGP;CA2BX;AACF,GAAC,CAAA+E,GAAA,CAAA3C,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAN,IAAA6C,GAAA,CAAArE,GAAAsE,MAAAC,EAAApD,GAAA;CAAA;EAAAT;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;AAAA,GAAAnB,GAAA,GAAA,KAAA,GAjJmDZ,CAAY,GAAAgC,IAAAqD,IAAA,cAAAC,EAAA;CAAApD,cAAA;EAAA,MAAArB,CAAA,GAAA0E,EAAA,MAAA,UAC9ClF,CAAM,GAAA8E,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAvE,GAAA,KAAA,CAAA,GAAAuE,GAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=require("lit").css`: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}:host .access-grants-form p{color:var(--solid-ui-color-gray-600,#4a5565);line-height:1.5}:host .access-grants-form .access-grants-form-main{align-self:stretch;align-items:
|
|
1
|
+
var e=require("lit").css`: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}:host .access-grants-form p{color:var(--solid-ui-color-gray-600,#4a5565);line-height:1.5}:host .access-grants-form .access-grants-form-main{align-self:stretch;align-items:center;gap:10px;display:flex}:host .access-grants-form .access-grants-form-main .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}:host .access-grants-form .access-grants-form-main .access-grants-input solid-ui-combobox{--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0);width:100%}:host .access-grants-form .access-grants-form-main .access-grants-input .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}:host .access-grants-form .access-grants-pending{flex-wrap:wrap;align-items:center;gap:8px;min-height:42px;display:flex}:host .access-grants-form .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}:host .access-grants-form .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}:host .access-grants-form .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}:host .access-grants-form .access-grants-pending-item-remove icon-lucide-circle-x{width:14px;height:14px}:host .access-grants-directory-entry{align-items:center;gap:8px;line-height:1;display:inline-flex}:host .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}:host .access-role-select--top{margin-top:0}`;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=AccessControlAddAccess.styles.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessControlAddAccess.styles.cjs.js","names":["AccessControlAddAccess_styles_default"],"sources":["../../../src/components/access-control-modal/AccessControlAddAccess.styles.css"],"sourcesContent":[":host {\n .access-grants-form {\n display: flex;\n flex-direction: column;\n padding: 10px;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n font-size: var(--solid-ui-font-size-sm, .875rem);\n\n --access-role-select-width: 129px;\n\n p {\n color: var(--solid-ui-color-gray-600, #4A5565);\n line-height: 1.5;\n }\n\n .access-grants-form-main {\n display: flex;\n align-items:
|
|
1
|
+
{"version":3,"file":"AccessControlAddAccess.styles.cjs.js","names":["AccessControlAddAccess_styles_default"],"sources":["../../../src/components/access-control-modal/AccessControlAddAccess.styles.css"],"sourcesContent":[":host {\n .access-grants-form {\n display: flex;\n flex-direction: column;\n padding: 10px;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n font-size: var(--solid-ui-font-size-sm, .875rem);\n\n --access-role-select-width: 129px;\n\n p {\n color: var(--solid-ui-color-gray-600, #4A5565);\n line-height: 1.5;\n }\n\n .access-grants-form-main {\n display: flex;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n\n .access-grants-input {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-width: 0;\n padding: 10px 15px;\n gap: 12px;\n align-items: flex-start;\n border-radius: 5px;\n border: 1px solid var(--solid-ui-color-slate-200, #E2E8F0);\n background: var(--solid-ui-color-white, #FFF);\n\n solid-ui-combobox {\n width: 100%;\n --solid-ui-input-border-color: var(--solid-ui-color-slate-200, #E2E8F0);\n }\n\n .access-principal-error {\n margin: 0;\n color: var(--solid-ui-color-red-700, #B42318);\n font-size: var(--solid-ui-font-size-xs, .75rem);\n line-height: 1.4;\n }\n }\n }\n\n .access-grants-pending {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n min-height: 42px;\n align-items: center;\n }\n\n .access-grants-pending-item {\n display: flex;\n padding: 5px 10px;\n align-items: center;\n gap: 6px;\n max-width: 100%;\n border-radius: 5px;\n border: 1px solid var(--solid-ui-color-gray-300, #D1D5DC);\n background: var(--solid-ui-color-gray-50, #F9FAFB);\n color: var(--solid-ui-color-gray-700, #374151);\n }\n\n .access-grants-pending-item-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--solid-ui-color-gray-500, #6A7282);\n font-size: var(--solid-ui-font-size-xs, .75rem);\n line-height: 1;\n }\n\n .access-grants-pending-item-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: 999px;\n background: transparent;\n color: var(--solid-ui-color-gray-300, #D1D5DC);\n cursor: pointer;\n\n icon-lucide-circle-x {\n width: 14px;\n height: 14px;\n }\n }\n }\n\n .access-grants-directory-entry {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n line-height: 1;\n }\n\n .access-role-select {\n display: block;\n max-width: 100%;\n margin-top: 25px;\n flex: 0 0 auto;\n width: var(--access-role-select-width);\n --solid-ui-input-border-color: var(--solid-ui-color-slate-200, #E2E8F0);\n }\n\n .access-role-select--top {\n margin-top: 0;\n }\n}\n"],"mappings":""}
|