@wssto2/vue-core 0.2.0 → 0.4.0
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/README.md +36 -0
- package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js +22 -0
- package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js +76 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js +45 -0
- package/dist/Activity-2gGxQn7v.js +156 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js} +48 -47
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-e4hzkzg3.js → AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CWLB3xsR.js → AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js} +4 -4
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js} +1 -1
- package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js → Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js} +1 -1
- package/dist/Changes-Bm8xvagD.js +129 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js +1485 -0
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js +52 -0
- package/dist/DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js +255 -0
- package/dist/DeadLetters-CMRtXn_N.js +104 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-DyhYHRyz.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js} +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +276 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js +136 -0
- package/dist/FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js +38 -0
- package/dist/General-CTqd0SLK.js +145 -0
- package/dist/HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js +45 -0
- package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-D7oC-d-S.js} +54 -37
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js} +1 -1
- package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CvwoT1JF.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js} +2 -2
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js → Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js} +66 -58
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-BQZM49gC.js → Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js} +4 -4
- package/dist/NewRolePage-DTOWIxxC.js +42 -0
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js +31 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js +113 -0
- package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
- package/dist/PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js +47 -0
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js} +1 -1
- package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +46 -0
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-ElDizaW2.js → PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js} +1 -1
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
- package/dist/ProfilePage-BlpiWH_W.js +654 -0
- package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
- package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-C_ymvhHU.js +64 -0
- package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CwI_sROp.js +173 -0
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-CmwvSytD.js +300 -0
- package/dist/RolePage-DZk7BZOc.js +315 -0
- package/dist/RolesPage-DzGGCMnm.js +115 -0
- package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js +148 -0
- package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-DSMXEaCs.js +314 -0
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js +58 -0
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js +423 -0
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js +111 -0
- package/dist/Sessions-CWqjjTr1.js +96 -0
- package/dist/SettingsPage-C4s0IdkW.js +255 -0
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js +145 -0
- package/dist/SignIn-zzKY__df.js +140 -0
- package/dist/SignInPage-Rqnus_s-.js +60 -0
- package/dist/SignInTable.vue_vue_type_script_setup_true_lang-CEbAvZ_C.js +79 -0
- package/dist/SignIns-Cnf9BVR0.js +66 -0
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js +93 -0
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js +64 -0
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js +155 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js +269 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js +68 -0
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js +164 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js} +1 -1
- package/dist/UserRecord-DqigxVxH.js +267 -0
- package/dist/UsersList-DNlZsI9J.js +155 -0
- package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js +28 -0
- package/dist/access/AddRoleDialog.vue.d.ts +19 -0
- package/dist/access/BindingRow.vue.d.ts +19 -0
- package/dist/access/EffectiveAccess.vue.d.ts +12 -0
- package/dist/access/NewRolePage.vue.d.ts +2 -0
- package/dist/access/PermissionTree.vue.d.ts +13 -0
- package/dist/access/PersonAccess.vue.d.ts +21 -0
- package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
- package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
- package/dist/access/RoleEditor.vue.d.ts +28 -0
- package/dist/access/RolePage.vue.d.ts +2 -0
- package/dist/access/RolesPage.vue.d.ts +2 -0
- package/dist/access/api.d.ts +26 -0
- package/dist/access/catalogue.d.ts +64 -0
- package/dist/access/context.d.ts +20 -0
- package/dist/access/effective.d.ts +42 -0
- package/dist/access/feature.d.ts +27 -0
- package/dist/access/index.d.ts +13 -0
- package/dist/access/index.js +15 -0
- package/dist/access/labels.d.ts +35 -0
- package/dist/access/refusals.d.ts +6 -0
- package/dist/access/routes.d.ts +45 -0
- package/dist/access/scopes.d.ts +20 -0
- package/dist/app/contributions.d.ts +1 -1
- package/dist/app/feature.d.ts +8 -0
- package/dist/app/index.js +259 -296
- package/dist/bottomDock-BZEiOPYZ.js +12 -0
- package/dist/button/Button.vue.d.ts +3 -3
- package/dist/button/index.js +1 -1
- package/dist/chrome-BS3xJcad.js +93 -0
- package/dist/client/client.d.ts +13 -0
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +11 -138
- package/dist/client/route.d.ts +59 -0
- package/dist/client-k9euDWF4.js +147 -0
- package/dist/closeOverlays-CjVsIrpL.js +8 -0
- package/dist/collection/definition.d.ts +3 -0
- package/dist/collection/http.d.ts +4 -2
- package/dist/collection/index.js +74 -2428
- package/dist/collection/useCollection.d.ts +2 -0
- package/dist/content/index.js +37 -66
- package/dist/contributions-DsfmDoRD.js +26 -0
- package/dist/control-7EP4tjYy.js +313 -0
- package/dist/controls/DateButton.vue.d.ts +1 -1
- package/dist/controls/PopupButton.vue.d.ts +1 -1
- package/dist/controls/index.js +11 -10
- package/dist/defineRoutes-BGAdiIrt.js +19 -0
- package/dist/{describeError-l5T9b8Uv.js → describeError-Ctga6GcS.js} +1 -1
- package/dist/environment-Dva-SG8D.js +6 -0
- package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
- package/dist/feature-DdUAfyi4.js +25 -0
- package/dist/fieldMessages-C3Rpbktw.js +25 -0
- package/dist/form/CheckboxField.vue.d.ts +1 -1
- package/dist/form/CommandDialog.vue.d.ts +1 -1
- package/dist/form/DateField.vue.d.ts +1 -1
- package/dist/form/DateTimeField.vue.d.ts +1 -1
- package/dist/form/EditorPage.vue.d.ts +1 -1
- package/dist/form/Field.vue.d.ts +1 -1
- package/dist/form/FileField.vue.d.ts +1 -1
- package/dist/form/FormGroup.vue.d.ts +1 -1
- package/dist/form/FormGroupButton.vue.d.ts +1 -1
- package/dist/form/FormRow.vue.d.ts +1 -1
- package/dist/form/I18nField.vue.d.ts +3 -3
- package/dist/form/MoneyField.vue.d.ts +1 -1
- package/dist/form/MonthYearField.vue.d.ts +1 -1
- package/dist/form/NumberCell.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +2 -2
- package/dist/form/OtpInput.vue.d.ts +2 -2
- package/dist/form/PhotoField.vue.d.ts +1 -1
- package/dist/form/SwitchField.vue.d.ts +1 -1
- package/dist/form/TextField.vue.d.ts +3 -3
- package/dist/form/TextareaField.vue.d.ts +3 -3
- package/dist/form/TimeField.vue.d.ts +1 -1
- package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
- package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
- package/dist/form/index.js +1159 -3474
- package/dist/guards-Dve61KjR.js +51 -0
- package/dist/http-CNcDHSOj.js +194 -0
- package/dist/i18n/index.d.ts +281 -0
- package/dist/i18n/index.js +52 -52
- package/dist/icon/core.d.ts +17 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
- package/dist/identity/LocaleSync.vue.d.ts +2 -0
- package/dist/identity/SessionExpiry.vue.d.ts +2 -0
- package/dist/identity/SignInAsButton.vue.d.ts +15 -0
- package/dist/identity/SignInPage.vue.d.ts +2 -0
- package/dist/identity/context.d.ts +7 -0
- package/dist/identity/feature.d.ts +16 -0
- package/dist/identity/fieldMessages.d.ts +15 -0
- package/dist/identity/index.d.ts +16 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
- package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
- package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
- package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
- package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
- package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
- package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
- package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
- package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
- package/dist/identity/profile/routes.d.ts +13 -0
- package/dist/identity/session.d.ts +30 -0
- package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
- package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
- package/dist/identity/shared/PageBar.vue.d.ts +12 -0
- package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
- package/dist/identity/shared/SessionList.vue.d.ts +19 -0
- package/dist/identity/shared/SignInTable.vue.d.ts +11 -0
- package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
- package/dist/identity/shared/signInEvents.d.ts +9 -0
- package/dist/identity/signIn.d.ts +27 -0
- package/dist/identity/useSignInForm.d.ts +20 -0
- package/dist/identity/user.d.ts +6 -0
- package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
- package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
- package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
- package/dist/identity/users/UserRecord.vue.d.ts +2 -0
- package/dist/identity/users/UsersList.vue.d.ts +2 -0
- package/dist/identity/users/access.d.ts +4 -0
- package/dist/identity/users/context.d.ts +9 -0
- package/dist/identity/users/feature.d.ts +34 -0
- package/dist/identity/users/languages.d.ts +4 -0
- package/dist/identity/users/list.d.ts +8 -0
- package/dist/identity/users/person.d.ts +26 -0
- package/dist/identity/users/personSections.d.ts +22 -0
- package/dist/identity/users/routes.d.ts +22 -0
- package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
- package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
- package/dist/identity/users/sections/General.vue.d.ts +2 -0
- package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
- package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
- package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
- package/dist/identity/users/status.d.ts +4 -0
- package/dist/index-BsJ92eub.js +504 -0
- package/dist/index-CGv-u1Ws.js +459 -0
- package/dist/index-GcLnFF-z.js +706 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/languageName.d.ts +2 -0
- package/dist/keepAlive-WYQGRhuz.js +48 -0
- package/dist/languageName-CItV_SOv.js +11 -0
- package/dist/languages-BShG9LpE.js +10 -0
- package/dist/leaveGuard-Cc8yeLxM.js +72 -0
- package/dist/modal/Modal.vue.d.ts +1 -1
- package/dist/modal/Sheet.vue.d.ts +2 -0
- package/dist/modal/index.js +5 -5
- package/dist/modules/access/entities.d.ts +112 -0
- package/dist/modules/access/routes.d.ts +67 -0
- package/dist/modules/access/schemas.d.ts +73 -0
- package/dist/modules/events/entities.d.ts +16 -0
- package/dist/modules/events/routes.d.ts +17 -0
- package/dist/modules/events/schemas.d.ts +16 -0
- package/dist/modules/identity/entities.d.ts +150 -0
- package/dist/modules/identity/routes.d.ts +118 -0
- package/dist/modules/identity/schemas.d.ts +145 -0
- package/dist/modules/notification/entities.d.ts +46 -0
- package/dist/modules/notification/routes.d.ts +26 -0
- package/dist/modules/notification/schemas.d.ts +25 -0
- package/dist/{navigation-B33ikiCS.js → navigation-Cm3iChlR.js} +21 -20
- package/dist/neighbors-DpaIMQAL.js +86 -0
- package/dist/notifications/InboxPanel.vue.d.ts +16 -0
- package/dist/notifications/MarkAllRead.vue.d.ts +7 -0
- package/dist/notifications/NotificationBell.vue.d.ts +2 -0
- package/dist/notifications/SettingsLink.vue.d.ts +6 -0
- package/dist/notifications/context.d.ts +20 -0
- package/dist/notifications/deadletters/DeadLetters.vue.d.ts +2 -0
- package/dist/notifications/deadletters/access.d.ts +3 -0
- package/dist/notifications/deadletters/list.d.ts +3 -0
- package/dist/notifications/deadletters/routes.d.ts +13 -0
- package/dist/notifications/feature.d.ts +31 -0
- package/dist/notifications/inbox.d.ts +62 -0
- package/dist/notifications/index.d.ts +13 -0
- package/dist/notifications/index.js +8 -0
- package/dist/notifications/settings/EmailPanel.vue.d.ts +14 -0
- package/dist/notifications/settings/QuietHoursPanel.vue.d.ts +14 -0
- package/dist/notifications/settings/SettingsMenuItem.vue.d.ts +2 -0
- package/dist/notifications/settings/SettingsPage.vue.d.ts +2 -0
- package/dist/notifications/settings/categoryText.d.ts +9 -0
- package/dist/notifications/settings/routes.d.ts +13 -0
- package/dist/notifications/settings/settings.d.ts +18 -0
- package/dist/notifications/settings/state.d.ts +16 -0
- package/dist/notifications/state.d.ts +27 -0
- package/dist/notifications/stream.d.ts +21 -0
- package/dist/options-Ba_0uLWN.js +18 -0
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Popover.vue.d.ts +1 -1
- package/dist/overlay/closeOverlays.d.ts +7 -0
- package/dist/overlay/index.js +21 -20
- package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
- package/dist/page/ResourceHeader.vue.d.ts +2 -2
- package/dist/page/index.js +99 -457
- package/dist/phone/PhoneField.vue.d.ts +2 -2
- package/dist/phone/index.js +68 -67
- package/dist/platform/index.d.ts +2 -2
- package/dist/platform/index.js +73 -90
- package/dist/platform/platform.d.ts +2 -2
- package/dist/platform/session.d.ts +22 -1
- package/dist/platform-q3cjODLx.js +255 -0
- package/dist/resource/index.js +8 -248
- package/dist/route-goWMxDUN.js +13 -0
- package/dist/routeResource-DstM0hvf.js +82 -0
- package/dist/router/guards.d.ts +7 -1
- package/dist/router/index.js +23 -37
- package/dist/router/navigation.d.ts +1 -1
- package/dist/rowLayout-BqTEhEuy.js +603 -0
- package/dist/sectionIndex-BS0ic5W7.js +86 -0
- package/dist/{sections-LtxV5Mtk.js → sections-CntvUTxn.js} +1 -1
- package/dist/shell/AccountMenuItem.vue.d.ts +1 -1
- package/dist/shell/BackofficeShell.vue.d.ts +2 -2
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/ShellBrand.vue.d.ts +1 -1
- package/dist/shell/backofficeShell.d.ts +1 -1
- package/dist/shell/identity.d.ts +1 -1
- package/dist/shell/index.js +491 -595
- package/dist/state/ProgressTrack.vue.d.ts +1 -1
- package/dist/state/index.js +59 -92
- package/dist/status-BuP3ULjH.js +33 -0
- package/dist/styles.css +1 -1
- package/dist/suggestions-BxMm6MQA.js +138 -0
- package/dist/testing/index.js +1 -1
- package/dist/toast-D9Z5To38.js +13 -0
- package/dist/transport-BnP7WC0Y.js +4 -0
- package/dist/useCommand-BkONMn3X.js +135 -0
- package/dist/useLoad-CYRVx6HW.js +39 -0
- package/dist/useResourceForm-D1hIpwW5.js +52 -0
- package/dist/useSaveChrome-chi6D3HY.js +25 -0
- package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
- package/dist/useTypedEntry-aTfPBAhw.js +857 -0
- package/package.json +26 -5
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-L9ita_Kx.js +0 -230
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DZTrU8NJ.js +0 -661
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js +0 -210
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
- package/dist/chrome-D9pwD6iS.js +0 -101
- package/dist/environment-D3nozt9a.js +0 -75
- package/dist/feature-DyDtyMLU.js +0 -47
- package/dist/options-DAkBtYkI.js +0 -330
- package/dist/platform-jqlKVJ2e.js +0 -244
- package/dist/toast-DvrHQ6Ag.js +0 -131
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { r as i } from "./route-goWMxDUN.js";
|
|
2
|
+
import { d as H, p as Y } from "./feature-DdUAfyi4.js";
|
|
3
|
+
import { k as ie } from "./keepAlive-WYQGRhuz.js";
|
|
4
|
+
import { d as z } from "./defineRoutes-BGAdiIrt.js";
|
|
5
|
+
import { d as I } from "./context-Ch1r4fdN.js";
|
|
6
|
+
import { defineComponent as E, computed as b, watch as $, openBlock as x, createElementBlock as G, ref as D, useTemplateRef as oe, watchEffect as re, onBeforeUnmount as ae, createVNode as _, unref as o, createElementVNode as m, toDisplayString as f, createCommentVNode as F, useId as ce, createBlock as N, Teleport as ue, normalizeClass as j, createTextVNode as O, withCtx as T, mergeProps as le, h as me } from "vue";
|
|
7
|
+
import { u as pe } from "./environment-Dva-SG8D.js";
|
|
8
|
+
import { u as P } from "./describeError-Ctga6GcS.js";
|
|
9
|
+
import { t as k } from "./toast-D9Z5To38.js";
|
|
10
|
+
import { u as A, h as q, f as M } from "./platform-q3cjODLx.js";
|
|
11
|
+
import { a as R } from "./error-CD7x0Jrz.js";
|
|
12
|
+
import { useI18n as C } from "vue-i18n";
|
|
13
|
+
import { useRouter as J, useRoute as de } from "vue-router";
|
|
14
|
+
import { _ as Q } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
15
|
+
import { _ as L } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
16
|
+
import { u as fe } from "./leaveGuard-Cc8yeLxM.js";
|
|
17
|
+
import { _ as he } from "./FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js";
|
|
18
|
+
import { _ as ye } from "./TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
|
|
19
|
+
import { u as ge } from "./mediaQuery-CygcXmFW.js";
|
|
20
|
+
import { u as ve } from "./useDialog-CXR3hN0G.js";
|
|
21
|
+
import { c as _e } from "./closeOverlays-CjVsIrpL.js";
|
|
22
|
+
import { u as be } from "./FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js";
|
|
23
|
+
import { u as we } from "./format-B8mJm946.js";
|
|
24
|
+
import { _ as xe } from "./AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js";
|
|
25
|
+
import { b as Ee } from "./routeResource-DstM0hvf.js";
|
|
26
|
+
import { _ as Se } from "./AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js";
|
|
27
|
+
const w = {
|
|
28
|
+
login: i("POST", "/v1/auth/login", { public: !0 }),
|
|
29
|
+
refresh: i("POST", "/v1/auth/refresh", { public: !0 }),
|
|
30
|
+
logout: i("POST", "/v1/auth/logout"),
|
|
31
|
+
me: i("GET", "/v1/auth/me"),
|
|
32
|
+
changeLocale: i("POST", "/v1/auth/change-locale"),
|
|
33
|
+
loginAs: i("POST", "/v1/auth/login-as"),
|
|
34
|
+
loginAsReturn: i("POST", "/v1/auth/login-as/return"),
|
|
35
|
+
usersList: i("GET", "/v1/iam/users", { permission: "iam.user:view" }),
|
|
36
|
+
usersShow: i("GET", "/v1/iam/users/:id", { permission: "iam.user:view" }),
|
|
37
|
+
usersCreate: i("POST", "/v1/iam/users", { permission: "iam.user:manage" }),
|
|
38
|
+
usersUpdate: i("PUT", "/v1/iam/users/:id", { permission: "iam.user:manage" }),
|
|
39
|
+
usersSetPassword: i("PUT", "/v1/iam/users/:id/password", { permission: "iam.user:manage" }),
|
|
40
|
+
usersDeactivate: i("POST", "/v1/iam/users/:id/deactivate", { permission: "iam.user:manage" }),
|
|
41
|
+
usersActivate: i("POST", "/v1/iam/users/:id/activate", { permission: "iam.user:manage" }),
|
|
42
|
+
usersUnlock: i("POST", "/v1/iam/users/:id/unlock", { permission: "iam.user:manage" }),
|
|
43
|
+
usersSignins: i("GET", "/v1/iam/users/:id/signins", { permission: "iam.user:view" }),
|
|
44
|
+
usersChanges: i("GET", "/v1/iam/users/:id/changes", { permission: "iam.user:view" }),
|
|
45
|
+
usersActivity: i("GET", "/v1/iam/users/:id/activity", { permission: "iam.user.activity:view" }),
|
|
46
|
+
usersSessions: i("GET", "/v1/iam/users/:id/sessions", { permission: "iam.user:view" }),
|
|
47
|
+
usersRevokeSession: i("DELETE", "/v1/iam/users/:id/sessions/:session_id", { permission: "iam.user:manage" }),
|
|
48
|
+
usersRevokeSessions: i("DELETE", "/v1/iam/users/:id/sessions", { permission: "iam.user:manage" }),
|
|
49
|
+
profileShow: i("GET", "/v1/iam/profile"),
|
|
50
|
+
profileUpdate: i("PUT", "/v1/iam/profile"),
|
|
51
|
+
profileChangePassword: i("PUT", "/v1/iam/profile/password"),
|
|
52
|
+
profileRequestEmail: i("POST", "/v1/iam/profile/email"),
|
|
53
|
+
profileResendEmail: i("POST", "/v1/iam/profile/email/resend"),
|
|
54
|
+
profileConfirmEmail: i("POST", "/v1/iam/profile/email/confirm"),
|
|
55
|
+
profileCancelEmail: i("DELETE", "/v1/iam/profile/email"),
|
|
56
|
+
profileSignins: i("GET", "/v1/iam/profile/signins"),
|
|
57
|
+
profileSessions: i("GET", "/v1/iam/profile/sessions"),
|
|
58
|
+
profileRevokeSession: i("DELETE", "/v1/iam/profile/sessions/:session_id")
|
|
59
|
+
}, [Te, X] = I("vue-core.identity"), K = (e) => R(e) && e.kind === "unauthorized";
|
|
60
|
+
function ke(e) {
|
|
61
|
+
if (!R(e) || e.code !== "identity.signin.locked") return null;
|
|
62
|
+
const s = e.params?.locked_until, t = typeof s == "string" ? new Date(s) : null;
|
|
63
|
+
return t && !Number.isNaN(t.getTime()) ? t : null;
|
|
64
|
+
}
|
|
65
|
+
async function Pe({ http: e, session: s }, t) {
|
|
66
|
+
await e.request(w.login, t, { handleUnauthorized: !1 }), await V({ session: s });
|
|
67
|
+
}
|
|
68
|
+
async function V({ session: e }) {
|
|
69
|
+
const s = await e.refresh();
|
|
70
|
+
if (s.status === "failed") throw s.error;
|
|
71
|
+
if (s.status !== "authenticated") throw new Error("The server accepted the request but reports nobody signed in.");
|
|
72
|
+
}
|
|
73
|
+
async function Ae(e, s) {
|
|
74
|
+
await e.http.request(w.loginAs, { user_id: s }), await V(e);
|
|
75
|
+
}
|
|
76
|
+
async function Ce(e) {
|
|
77
|
+
await e.http.request(w.loginAsReturn), await V(e);
|
|
78
|
+
}
|
|
79
|
+
const Oe = { hidden: "" }, Ie = /* @__PURE__ */ E({
|
|
80
|
+
__name: "LocaleSync",
|
|
81
|
+
setup(e) {
|
|
82
|
+
const { http: s, session: t } = A(), n = pe(), d = P(), g = b(() => {
|
|
83
|
+
const r = t.state.value, a = r.status === "authenticated" ? r.user.locale : void 0;
|
|
84
|
+
return typeof a == "string" ? a : null;
|
|
85
|
+
});
|
|
86
|
+
let u = null;
|
|
87
|
+
return $(g, async (r) => {
|
|
88
|
+
u = r, r !== null && r !== n.locale.value && n.locales.includes(r) && await n.setLocale(r);
|
|
89
|
+
}, { immediate: !0 }), $(n.locale, async (r) => {
|
|
90
|
+
if (!(t.state.value.status !== "authenticated" || r === u))
|
|
91
|
+
try {
|
|
92
|
+
await s.request(w.changeLocale, { locale: r }), u = r;
|
|
93
|
+
} catch (a) {
|
|
94
|
+
K(a) || k.error(d(a));
|
|
95
|
+
}
|
|
96
|
+
}), (r, a) => (x(), G("span", Oe));
|
|
97
|
+
}
|
|
98
|
+
}), Re = { class: "min-w-0 flex-1" }, Ke = { class: "hidden md:inline" }, Ue = { class: "md:hidden" }, $e = ["disabled"], qe = /* @__PURE__ */ E({
|
|
99
|
+
__name: "ImpersonationBanner",
|
|
100
|
+
setup(e) {
|
|
101
|
+
const { t: s } = C(), t = A(), n = J(), { home: d } = X(), g = P(), u = b(() => q(t.session.state.value)?.impersonator ?? null), r = b(() => {
|
|
102
|
+
const l = q(t.session.state.value)?.user;
|
|
103
|
+
return typeof l?.name == "string" ? l.name : typeof l?.login == "string" ? l.login : String(l?.id ?? "");
|
|
104
|
+
}), a = D(!1), p = oe("strip");
|
|
105
|
+
let c = null;
|
|
106
|
+
re(() => {
|
|
107
|
+
c?.disconnect(), c = null;
|
|
108
|
+
const l = p.value;
|
|
109
|
+
if (!l) return void document.documentElement.style.removeProperty("--shell-banner-h");
|
|
110
|
+
if (typeof ResizeObserver > "u") return;
|
|
111
|
+
const v = () => document.documentElement.style.setProperty("--shell-banner-h", `${l.offsetHeight}px`);
|
|
112
|
+
c = new ResizeObserver(v), c.observe(l), v();
|
|
113
|
+
}, { flush: "post" }), ae(() => {
|
|
114
|
+
c?.disconnect(), document.documentElement.style.removeProperty("--shell-banner-h");
|
|
115
|
+
});
|
|
116
|
+
async function h() {
|
|
117
|
+
a.value = !0;
|
|
118
|
+
try {
|
|
119
|
+
await Ce(t), await n.push(d);
|
|
120
|
+
} catch (l) {
|
|
121
|
+
K(l) || k.error(g(l)), t.session.refresh();
|
|
122
|
+
} finally {
|
|
123
|
+
a.value = !1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return (l, v) => u.value ? (x(), G("div", {
|
|
127
|
+
key: 0,
|
|
128
|
+
ref_key: "strip",
|
|
129
|
+
ref: p,
|
|
130
|
+
role: "status",
|
|
131
|
+
"data-impersonation-banner": "",
|
|
132
|
+
class: "sticky top-0 z-40 flex flex-wrap items-center gap-x-3 gap-y-1.5 bg-status-warning-surface px-4 py-2 text-subheadline text-status-warning-content shadow-[inset_0_-1px_0_rgb(154_74_7/0.25)]"
|
|
133
|
+
}, [
|
|
134
|
+
_(o(Q), {
|
|
135
|
+
name: "informationLine",
|
|
136
|
+
size: 18,
|
|
137
|
+
class: "shrink-0 compact:hidden"
|
|
138
|
+
}),
|
|
139
|
+
m("span", Re, [
|
|
140
|
+
m("span", Ke, f(o(s)("core.identity.impersonation.banner", { name: r.value })), 1),
|
|
141
|
+
m("span", Ue, f(o(s)("core.identity.impersonation.banner_short", { name: r.value })), 1)
|
|
142
|
+
]),
|
|
143
|
+
m("button", {
|
|
144
|
+
type: "button",
|
|
145
|
+
disabled: a.value,
|
|
146
|
+
class: "hit-target cursor-pointer rounded-control bg-status-warning-solid px-3 py-1 text-footnote font-semibold whitespace-nowrap text-white transition duration-motion-fast hover:brightness-110 disabled:opacity-45",
|
|
147
|
+
onClick: h
|
|
148
|
+
}, f(o(s)("core.identity.impersonation.return")), 9, $e)
|
|
149
|
+
], 512)) : F("", !0);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
function Le(e = {}) {
|
|
153
|
+
const { t: s } = C(), t = A(), n = we(), d = P(), u = be({
|
|
154
|
+
defaults: () => ({ login: e.login ?? "", password: "" }),
|
|
155
|
+
validator: {
|
|
156
|
+
safeParse(a) {
|
|
157
|
+
const p = a, c = ["login", "password"].filter((h) => p[h] === "").map((h) => ({ path: [h], message: s("core.identity.signin.required") }));
|
|
158
|
+
return c.length === 0 ? { success: !0, data: p } : { success: !1, error: { issues: c } };
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
failureMessage(a, p) {
|
|
162
|
+
const c = ke(p);
|
|
163
|
+
return c ? s("core.errors.identity.signin.locked", { locked_until: n.time(c) }) : R(p) ? d(p) : void 0;
|
|
164
|
+
}
|
|
165
|
+
}), r = b(() => u.errors.first("password") ?? (u.failure.value?.error ? u.failure.value.message : void 0));
|
|
166
|
+
return { form: u, passwordError: r, submit: async () => (await u.submit((a) => Pe(t, a))).status === "saved" };
|
|
167
|
+
}
|
|
168
|
+
const ze = ["aria-labelledby"], Ge = ["id"], De = { class: "mt-1 text-subheadline text-content-muted" }, Fe = { class: "flex items-center gap-2 rounded-control bg-status-success-surface px-2.5 py-2 text-footnote text-status-success-content" }, Ne = { class: "flex flex-col gap-1.5" }, Ve = { class: "text-footnote text-content-muted" }, Be = {
|
|
169
|
+
class: "rounded-control bg-fill px-2.5 py-2 text-body text-content-muted",
|
|
170
|
+
"data-expiry-login": ""
|
|
171
|
+
}, je = /* @__PURE__ */ E({
|
|
172
|
+
__name: "SessionExpiry",
|
|
173
|
+
setup(e) {
|
|
174
|
+
const { t: s } = C(), { session: t } = A(), n = de(), d = fe(), g = P(), u = ge(), r = ce(), a = b(() => {
|
|
175
|
+
const y = t.state.value, S = y.status === "anonymous" && y.reason === "expired" ? y.previous?.user : void 0;
|
|
176
|
+
return typeof S?.login == "string" ? S.login : null;
|
|
177
|
+
}), p = b(() => a.value !== null && n.meta.public !== !0), c = D(null), h = ve(c, { onEscape: () => {
|
|
178
|
+
} }), { isOpen: l } = h, { form: v, passwordError: se, submit: te } = Le({ login: a.value ?? "" });
|
|
179
|
+
$(p, (y) => {
|
|
180
|
+
y ? (v.hydrate({ login: a.value ?? "", password: "" }), _e(), k.dismiss(), h.present()) : h.dismissWithoutAsking();
|
|
181
|
+
}, { immediate: !0, flush: "post" });
|
|
182
|
+
async function ne() {
|
|
183
|
+
if (!(d.hasUnsavedChanges() && !await d.confirm()))
|
|
184
|
+
try {
|
|
185
|
+
await t.signOut();
|
|
186
|
+
} catch (y) {
|
|
187
|
+
K(y) || k.error(g(y));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return (y, S) => (x(), N(ue, { to: "body" }, [
|
|
191
|
+
o(l) ? (x(), G("div", {
|
|
192
|
+
key: 0,
|
|
193
|
+
class: "relative z-10000",
|
|
194
|
+
role: "alertdialog",
|
|
195
|
+
"aria-modal": "true",
|
|
196
|
+
"aria-labelledby": o(r),
|
|
197
|
+
"data-session-expiry": ""
|
|
198
|
+
}, [
|
|
199
|
+
S[0] || (S[0] = m("div", {
|
|
200
|
+
class: "fixed inset-0 bg-scrim",
|
|
201
|
+
"aria-hidden": "true"
|
|
202
|
+
}, null, -1)),
|
|
203
|
+
m("div", {
|
|
204
|
+
class: j(["fixed inset-0 flex p-4", o(u) ? "items-end p-0" : "items-center justify-center"])
|
|
205
|
+
}, [
|
|
206
|
+
m("div", {
|
|
207
|
+
ref_key: "panel",
|
|
208
|
+
ref: c,
|
|
209
|
+
tabindex: "-1",
|
|
210
|
+
class: j(["flex w-full flex-col gap-4 bg-surface-overlay p-6 shadow-float outline-none", o(u) ? "rounded-t-2xl pb-[max(2rem,var(--app-safe-bottom))]" : "max-w-sm rounded-menu"])
|
|
211
|
+
}, [
|
|
212
|
+
m("div", null, [
|
|
213
|
+
m("h2", {
|
|
214
|
+
id: o(r),
|
|
215
|
+
class: "text-headline font-semibold text-content-strong"
|
|
216
|
+
}, f(o(s)("core.identity.expired.title")), 9, Ge),
|
|
217
|
+
m("p", De, f(o(s)("core.identity.expired.body")), 1)
|
|
218
|
+
]),
|
|
219
|
+
m("p", Fe, [
|
|
220
|
+
_(o(Q), {
|
|
221
|
+
name: "checkboxCircleFill",
|
|
222
|
+
size: 16,
|
|
223
|
+
class: "shrink-0"
|
|
224
|
+
}),
|
|
225
|
+
O(" " + f(o(s)("core.identity.expired.kept")), 1)
|
|
226
|
+
]),
|
|
227
|
+
_(o(he), { onSubmit: o(te) }, {
|
|
228
|
+
default: T(() => [
|
|
229
|
+
m("div", Ne, [
|
|
230
|
+
m("span", Ve, f(o(s)("core.identity.username")), 1),
|
|
231
|
+
m("span", Be, f(a.value), 1)
|
|
232
|
+
]),
|
|
233
|
+
_(o(ye), le(o(v).bind("password"), {
|
|
234
|
+
label: o(s)("core.identity.signin.password"),
|
|
235
|
+
type: "password",
|
|
236
|
+
autocomplete: "current-password",
|
|
237
|
+
required: "",
|
|
238
|
+
error: o(se)
|
|
239
|
+
}), null, 16, ["label", "error"]),
|
|
240
|
+
_(o(L), {
|
|
241
|
+
type: "submit",
|
|
242
|
+
prominence: "primary",
|
|
243
|
+
class: "w-full",
|
|
244
|
+
processing: o(v).submitting.value
|
|
245
|
+
}, {
|
|
246
|
+
default: T(() => [
|
|
247
|
+
O(f(o(s)("core.identity.signin.submit")), 1)
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["processing"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["onSubmit"]),
|
|
254
|
+
_(o(L), {
|
|
255
|
+
prominence: "plain",
|
|
256
|
+
class: "self-center",
|
|
257
|
+
onClick: ne
|
|
258
|
+
}, {
|
|
259
|
+
default: T(() => [
|
|
260
|
+
O(f(o(s)("core.identity.expired.sign_out")), 1)
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
})
|
|
264
|
+
], 2)
|
|
265
|
+
], 2)
|
|
266
|
+
], 8, ze)) : F("", !0)
|
|
267
|
+
]));
|
|
268
|
+
}
|
|
269
|
+
}), Me = (e) => typeof e == "object" && e !== null && !Array.isArray(e), We = (e) => {
|
|
270
|
+
if (!Me(e)) throw new TypeError("expected an object");
|
|
271
|
+
if (typeof e.id != "number") throw new TypeError("id: expected a number");
|
|
272
|
+
for (const s of ["login", "name", "email", "locale"])
|
|
273
|
+
if (typeof e[s] != "string") throw new TypeError(`${s}: expected a string`);
|
|
274
|
+
return { id: e.id, login: e.login, name: e.name, email: e.email, locale: e.locale };
|
|
275
|
+
}, U = (e) => R(e) && e.kind === "unauthorized", B = (e, s) => e.request(w.refresh, { refresh_token: "" }, { signal: s, handleUnauthorized: !1 });
|
|
276
|
+
function He(e, s) {
|
|
277
|
+
return {
|
|
278
|
+
async load(t) {
|
|
279
|
+
try {
|
|
280
|
+
const { data: n } = await e.request(w.me, void 0, { signal: t, handleUnauthorized: !1 });
|
|
281
|
+
return M(n, s);
|
|
282
|
+
} catch (n) {
|
|
283
|
+
if (!U(n)) throw n;
|
|
284
|
+
}
|
|
285
|
+
try {
|
|
286
|
+
const { data: n } = await B(e, t);
|
|
287
|
+
return M(n, s);
|
|
288
|
+
} catch (n) {
|
|
289
|
+
if (U(n)) return null;
|
|
290
|
+
throw n;
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
async signOut() {
|
|
294
|
+
try {
|
|
295
|
+
await e.request(w.logout, void 0, { handleUnauthorized: !1 });
|
|
296
|
+
} catch (t) {
|
|
297
|
+
if (!U(t)) throw t;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function Cs(e) {
|
|
303
|
+
const s = e?.parseUser ?? We;
|
|
304
|
+
return {
|
|
305
|
+
session: (n) => He(n, s),
|
|
306
|
+
async renewSession(n, d) {
|
|
307
|
+
try {
|
|
308
|
+
return await B(d), (await n.refresh()).status === "authenticated";
|
|
309
|
+
} catch {
|
|
310
|
+
return !1;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
const Ye = async (e) => {
|
|
316
|
+
await B(e.http);
|
|
317
|
+
}, Je = z({
|
|
318
|
+
login: { name: "login", path: "/login", component: () => import("./SignInPage-Rqnus_s-.js"), meta: { public: !0, titleKey: "core.identity.signin.title" } }
|
|
319
|
+
});
|
|
320
|
+
function Os(e = {}) {
|
|
321
|
+
return H({
|
|
322
|
+
id: "identity",
|
|
323
|
+
routes: Je.records,
|
|
324
|
+
context: Y(Te, { home: e.home ?? "/" }),
|
|
325
|
+
holdsExpiredSession: !0,
|
|
326
|
+
contributions: [
|
|
327
|
+
// Not optional: a shell without a `host` could not ask for the password, and the person would be stuck on a dead page.
|
|
328
|
+
{ id: "identity.expiry", slot: "host", component: je, scope: "always" },
|
|
329
|
+
// Not optional either: acting as somebody else must always be visible.
|
|
330
|
+
{ id: "identity.impersonation", slot: "banner", component: qe, scope: "authenticated" },
|
|
331
|
+
{ id: "identity.locale", slot: "host", component: Ie, scope: "authenticated", optional: !0 }
|
|
332
|
+
],
|
|
333
|
+
effects: [ie({ renew: Ye })]
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
const Z = z({
|
|
337
|
+
index: { name: "profile", path: "/profile", component: () => import("./ProfilePage-BlpiWH_W.js"), meta: { titleKey: "core.profile.title" } }
|
|
338
|
+
}), Qe = /* @__PURE__ */ E({
|
|
339
|
+
__name: "ProfileMenuItem",
|
|
340
|
+
setup(e) {
|
|
341
|
+
const { t: s } = C();
|
|
342
|
+
return (t, n) => (x(), N(xe, {
|
|
343
|
+
label: o(s)("core.profile.menu"),
|
|
344
|
+
icon: "user3Line",
|
|
345
|
+
to: o(Z).index,
|
|
346
|
+
"data-profile-menu-item": ""
|
|
347
|
+
}, null, 8, ["label", "to"]));
|
|
348
|
+
}
|
|
349
|
+
}), [Xe, Is] = I("vue-core.users"), Ze = Symbol("vue-core.users.person"), [Rs, Ks] = I("vue-core.users.personActions"), [Us, $s] = I("vue-core.users.personSessions");
|
|
350
|
+
function es(e) {
|
|
351
|
+
const s = E({
|
|
352
|
+
name: `PersonSection(${e.path})`,
|
|
353
|
+
setup() {
|
|
354
|
+
const t = Ee(Ze);
|
|
355
|
+
return () => t.data.value ? me(e.component, e.props?.(t.data.value) ?? {}) : null;
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
return { name: `users.record.${e.path}`, path: e.path, component: s, meta: { ...e.meta } };
|
|
359
|
+
}
|
|
360
|
+
const W = "iam.user:view", qs = "iam.user:manage", ss = "iam.user.activity:view", ee = z({
|
|
361
|
+
index: { name: "users.index", path: "/users", component: () => import("./UsersList-DNlZsI9J.js"), meta: { access: W, titleKey: "core.users.title" } },
|
|
362
|
+
record: {
|
|
363
|
+
name: "users.record",
|
|
364
|
+
path: "/users/:id",
|
|
365
|
+
component: () => import("./UserRecord-DqigxVxH.js"),
|
|
366
|
+
meta: { access: W, titleKey: "core.users.title", remountOnParam: "id" },
|
|
367
|
+
children: [
|
|
368
|
+
{ name: "users.record.general", path: "general", component: () => import("./General-CTqd0SLK.js"), meta: { section: { labelKey: "core.users.sections.general", icon: "user3Line", groupKey: "core.users.section_groups.person" } } },
|
|
369
|
+
{ name: "users.record.signin", path: "signin", component: () => import("./SignIn-zzKY__df.js"), meta: { section: { labelKey: "core.users.sections.signin", icon: "key2Line", groupKey: "core.users.section_groups.access" } } },
|
|
370
|
+
{ name: "users.record.sessions", path: "sessions", component: () => import("./Sessions-CWqjjTr1.js"), meta: { section: { labelKey: "core.users.sections.sessions", icon: "deviceLine", groupKey: "core.users.section_groups.access" } } },
|
|
371
|
+
{ name: "users.record.signins", path: "signins", component: () => import("./SignIns-Cnf9BVR0.js"), meta: { section: { labelKey: "core.users.sections.signins", icon: "timeFill", groupKey: "core.users.section_groups.activity" } } },
|
|
372
|
+
{ name: "users.record.changes", path: "changes", component: () => import("./Changes-Bm8xvagD.js"), meta: { section: { labelKey: "core.users.sections.changes", icon: "edit", groupKey: "core.users.section_groups.activity" } } },
|
|
373
|
+
{ name: "users.record.activity", path: "activity", component: () => import("./Activity-2gGxQn7v.js"), meta: { access: ss, section: { labelKey: "core.users.sections.activity", icon: "listCheck", groupKey: "core.users.section_groups.activity" } } }
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
function ts(e) {
|
|
378
|
+
return ee.records.map((s) => s.name === "users.record" ? { ...s, children: [...s.children ?? [], ...e.map(es)] } : s);
|
|
379
|
+
}
|
|
380
|
+
function Ls(e = {}) {
|
|
381
|
+
const s = e.people ?? !0, t = e.profile ?? !0, n = e.signInAs ?? "iam.user:impersonate";
|
|
382
|
+
return H({
|
|
383
|
+
id: "users",
|
|
384
|
+
routes: [...s ? ts(e.sections ?? []) : [], ...t ? Z.records : []],
|
|
385
|
+
context: Y(Xe, { signInAs: n, activityAreas: e.activityAreas ?? {} }),
|
|
386
|
+
navigation: s && e.destination ? [{ destination: e.destination, to: ee.index, within: ["users.record"] }] : [],
|
|
387
|
+
// The entry of the account menu; a shell without that menu leaves it out.
|
|
388
|
+
contributions: t ? [{ id: "users.profile", slot: "accountMenu", component: Qe, scope: "authenticated", optional: !0, order: -10 }] : [],
|
|
389
|
+
requires: s && n !== !1 ? ["identity"] : []
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
const zs = /* @__PURE__ */ E({
|
|
393
|
+
__name: "SignInAsButton",
|
|
394
|
+
props: {
|
|
395
|
+
userId: {},
|
|
396
|
+
name: {},
|
|
397
|
+
permission: {}
|
|
398
|
+
},
|
|
399
|
+
setup(e) {
|
|
400
|
+
const s = e, { t } = C(), n = A(), d = J(), { home: g } = X(), u = P(), r = D(!1), a = b(() => {
|
|
401
|
+
const c = q(n.session.state.value);
|
|
402
|
+
return c !== null && c.impersonator === void 0 && c.user.id !== s.userId;
|
|
403
|
+
});
|
|
404
|
+
async function p() {
|
|
405
|
+
r.value = !0;
|
|
406
|
+
try {
|
|
407
|
+
await Ae(n, s.userId), await d.push(g);
|
|
408
|
+
} catch (c) {
|
|
409
|
+
K(c) || k.error(u(c));
|
|
410
|
+
} finally {
|
|
411
|
+
r.value = !1;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return (c, h) => a.value ? (x(), N(o(Se), {
|
|
415
|
+
key: 0,
|
|
416
|
+
permission: s.permission
|
|
417
|
+
}, {
|
|
418
|
+
default: T(() => [
|
|
419
|
+
_(o(L), {
|
|
420
|
+
processing: r.value,
|
|
421
|
+
"data-sign-in-as": "",
|
|
422
|
+
onClick: p
|
|
423
|
+
}, {
|
|
424
|
+
default: T(() => [
|
|
425
|
+
O(f(o(t)("core.identity.impersonation.sign_in_as", { name: s.name })), 1)
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
}, 8, ["processing"])
|
|
429
|
+
]),
|
|
430
|
+
_: 1
|
|
431
|
+
}, 8, ["permission"])) : F("", !0);
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
export {
|
|
435
|
+
qs as M,
|
|
436
|
+
Ze as P,
|
|
437
|
+
zs as _,
|
|
438
|
+
Le as a,
|
|
439
|
+
Ks as b,
|
|
440
|
+
Is as c,
|
|
441
|
+
K as d,
|
|
442
|
+
$s as e,
|
|
443
|
+
ee as f,
|
|
444
|
+
Rs as g,
|
|
445
|
+
Os as h,
|
|
446
|
+
w as i,
|
|
447
|
+
Cs as j,
|
|
448
|
+
He as k,
|
|
449
|
+
ke as l,
|
|
450
|
+
We as m,
|
|
451
|
+
Z as n,
|
|
452
|
+
Ce as o,
|
|
453
|
+
Us as p,
|
|
454
|
+
Ae as q,
|
|
455
|
+
Ye as r,
|
|
456
|
+
Pe as s,
|
|
457
|
+
Ls as t,
|
|
458
|
+
X as u
|
|
459
|
+
};
|