@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,118 @@
|
|
|
1
|
+
import { type ListResult } from "../../client";
|
|
2
|
+
import type { ActivityRow, ChangeRow, PendingEmail, ProfileResponse, SessionList, SessionResponse, SignInRow, UnlockResult, UserDetail, UserRow } from "./entities";
|
|
3
|
+
export declare const identityRoutes: {
|
|
4
|
+
readonly login: import("../../client").ApiRoute<{
|
|
5
|
+
login: string;
|
|
6
|
+
password: string;
|
|
7
|
+
}, SessionResponse>;
|
|
8
|
+
readonly refresh: import("../../client").ApiRoute<{
|
|
9
|
+
refresh_token: string;
|
|
10
|
+
}, SessionResponse>;
|
|
11
|
+
readonly logout: import("../../client").ApiRoute<void, void>;
|
|
12
|
+
readonly me: import("../../client").ApiRoute<void, SessionResponse>;
|
|
13
|
+
readonly changeLocale: import("../../client").ApiRoute<{
|
|
14
|
+
locale: string;
|
|
15
|
+
}, void>;
|
|
16
|
+
readonly loginAs: import("../../client").ApiRoute<{
|
|
17
|
+
user_id: number;
|
|
18
|
+
}, SessionResponse>;
|
|
19
|
+
readonly loginAsReturn: import("../../client").ApiRoute<void, SessionResponse>;
|
|
20
|
+
readonly usersList: import("../../client").ApiRoute<{
|
|
21
|
+
view?: "inactive" | "all" | "locked" | "active" | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
order_col?: string | undefined;
|
|
24
|
+
order_dir?: string | undefined;
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
per_page?: number | undefined;
|
|
27
|
+
}, ListResult<UserRow>>;
|
|
28
|
+
readonly usersShow: import("../../client").ApiRoute<{
|
|
29
|
+
id: number;
|
|
30
|
+
}, UserDetail>;
|
|
31
|
+
readonly usersCreate: import("../../client").ApiRoute<{
|
|
32
|
+
login: string;
|
|
33
|
+
name: string;
|
|
34
|
+
email: string;
|
|
35
|
+
locale: string;
|
|
36
|
+
password: string;
|
|
37
|
+
phone?: string | undefined;
|
|
38
|
+
}, UserDetail>;
|
|
39
|
+
readonly usersUpdate: import("../../client").ApiRoute<{
|
|
40
|
+
id: number;
|
|
41
|
+
login: string;
|
|
42
|
+
name: string;
|
|
43
|
+
email: string;
|
|
44
|
+
locale: string;
|
|
45
|
+
phone?: string | undefined;
|
|
46
|
+
}, UserDetail>;
|
|
47
|
+
readonly usersSetPassword: import("../../client").ApiRoute<{
|
|
48
|
+
id: number;
|
|
49
|
+
password: string;
|
|
50
|
+
}, void>;
|
|
51
|
+
readonly usersDeactivate: import("../../client").ApiRoute<{
|
|
52
|
+
id: number;
|
|
53
|
+
}, void>;
|
|
54
|
+
readonly usersActivate: import("../../client").ApiRoute<{
|
|
55
|
+
id: number;
|
|
56
|
+
}, void>;
|
|
57
|
+
readonly usersUnlock: import("../../client").ApiRoute<{
|
|
58
|
+
id: number;
|
|
59
|
+
}, UnlockResult>;
|
|
60
|
+
readonly usersSignins: import("../../client").ApiRoute<{
|
|
61
|
+
id: number;
|
|
62
|
+
view?: "all" | "failed" | undefined;
|
|
63
|
+
page?: number | undefined;
|
|
64
|
+
per_page?: number | undefined;
|
|
65
|
+
}, ListResult<SignInRow>>;
|
|
66
|
+
readonly usersChanges: import("../../client").ApiRoute<{
|
|
67
|
+
id: number;
|
|
68
|
+
view?: "details" | "all" | "access" | undefined;
|
|
69
|
+
page?: number | undefined;
|
|
70
|
+
per_page?: number | undefined;
|
|
71
|
+
}, ListResult<ChangeRow>>;
|
|
72
|
+
readonly usersActivity: import("../../client").ApiRoute<{
|
|
73
|
+
id: number;
|
|
74
|
+
area?: string | undefined;
|
|
75
|
+
from?: string | undefined;
|
|
76
|
+
to?: string | undefined;
|
|
77
|
+
page?: number | undefined;
|
|
78
|
+
per_page?: number | undefined;
|
|
79
|
+
}, ListResult<ActivityRow>>;
|
|
80
|
+
readonly usersSessions: import("../../client").ApiRoute<{
|
|
81
|
+
id: number;
|
|
82
|
+
}, SessionList>;
|
|
83
|
+
readonly usersRevokeSession: import("../../client").ApiRoute<{
|
|
84
|
+
id: number;
|
|
85
|
+
session_id: number;
|
|
86
|
+
}, void>;
|
|
87
|
+
readonly usersRevokeSessions: import("../../client").ApiRoute<{
|
|
88
|
+
id: number;
|
|
89
|
+
}, void>;
|
|
90
|
+
readonly profileShow: import("../../client").ApiRoute<void, ProfileResponse>;
|
|
91
|
+
readonly profileUpdate: import("../../client").ApiRoute<{
|
|
92
|
+
name: string;
|
|
93
|
+
phone?: string | undefined;
|
|
94
|
+
}, ProfileResponse>;
|
|
95
|
+
readonly profileChangePassword: import("../../client").ApiRoute<{
|
|
96
|
+
current_password: string;
|
|
97
|
+
new_password: string;
|
|
98
|
+
new_password_confirmation: string;
|
|
99
|
+
}, void>;
|
|
100
|
+
readonly profileRequestEmail: import("../../client").ApiRoute<{
|
|
101
|
+
email: string;
|
|
102
|
+
current_password: string;
|
|
103
|
+
}, PendingEmail>;
|
|
104
|
+
readonly profileResendEmail: import("../../client").ApiRoute<void, PendingEmail>;
|
|
105
|
+
readonly profileConfirmEmail: import("../../client").ApiRoute<{
|
|
106
|
+
code: string;
|
|
107
|
+
}, ProfileResponse>;
|
|
108
|
+
readonly profileCancelEmail: import("../../client").ApiRoute<void, void>;
|
|
109
|
+
readonly profileSignins: import("../../client").ApiRoute<{
|
|
110
|
+
view?: "all" | "failed" | undefined;
|
|
111
|
+
page?: number | undefined;
|
|
112
|
+
per_page?: number | undefined;
|
|
113
|
+
}, ListResult<SignInRow>>;
|
|
114
|
+
readonly profileSessions: import("../../client").ApiRoute<void, SessionList>;
|
|
115
|
+
readonly profileRevokeSession: import("../../client").ApiRoute<{
|
|
116
|
+
session_id: number;
|
|
117
|
+
}, void>;
|
|
118
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ActivityInputSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
area: z.ZodOptional<z.ZodString>;
|
|
5
|
+
from: z.ZodOptional<z.ZodString>;
|
|
6
|
+
to: z.ZodOptional<z.ZodString>;
|
|
7
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type ActivityInput = z.infer<typeof ActivityInputSchema>;
|
|
11
|
+
export declare const ChangeLocaleInputSchema: z.ZodObject<{
|
|
12
|
+
locale: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type ChangeLocaleInput = z.infer<typeof ChangeLocaleInputSchema>;
|
|
15
|
+
export declare const ChangePasswordInputSchema: z.ZodObject<{
|
|
16
|
+
current_password: z.ZodString;
|
|
17
|
+
new_password: z.ZodString;
|
|
18
|
+
new_password_confirmation: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type ChangePasswordInput = z.infer<typeof ChangePasswordInputSchema>;
|
|
21
|
+
export declare const ChangeViewSchema: z.ZodEnum<{
|
|
22
|
+
details: "details";
|
|
23
|
+
all: "all";
|
|
24
|
+
access: "access";
|
|
25
|
+
}>;
|
|
26
|
+
export type ChangeView = z.infer<typeof ChangeViewSchema>;
|
|
27
|
+
export declare const ChangesInputSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodNumber;
|
|
29
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
details: "details";
|
|
31
|
+
all: "all";
|
|
32
|
+
access: "access";
|
|
33
|
+
}>>;
|
|
34
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ChangesInput = z.infer<typeof ChangesInputSchema>;
|
|
38
|
+
export declare const ConfirmEmailInputSchema: z.ZodObject<{
|
|
39
|
+
code: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type ConfirmEmailInput = z.infer<typeof ConfirmEmailInputSchema>;
|
|
42
|
+
export declare const CreateUserInputSchema: z.ZodObject<{
|
|
43
|
+
login: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
email: z.ZodString;
|
|
46
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
47
|
+
locale: z.ZodString;
|
|
48
|
+
password: z.ZodString;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type CreateUserInput = z.infer<typeof CreateUserInputSchema>;
|
|
51
|
+
export declare const UserViewSchema: z.ZodEnum<{
|
|
52
|
+
inactive: "inactive";
|
|
53
|
+
all: "all";
|
|
54
|
+
locked: "locked";
|
|
55
|
+
active: "active";
|
|
56
|
+
}>;
|
|
57
|
+
export type UserView = z.infer<typeof UserViewSchema>;
|
|
58
|
+
export declare const ListUsersInputSchema: z.ZodObject<{
|
|
59
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
inactive: "inactive";
|
|
61
|
+
all: "all";
|
|
62
|
+
locked: "locked";
|
|
63
|
+
active: "active";
|
|
64
|
+
}>>;
|
|
65
|
+
search: z.ZodOptional<z.ZodString>;
|
|
66
|
+
order_col: z.ZodOptional<z.ZodString>;
|
|
67
|
+
order_dir: z.ZodOptional<z.ZodString>;
|
|
68
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type ListUsersInput = z.infer<typeof ListUsersInputSchema>;
|
|
72
|
+
export declare const LoginAsInputSchema: z.ZodObject<{
|
|
73
|
+
user_id: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type LoginAsInput = z.infer<typeof LoginAsInputSchema>;
|
|
76
|
+
export declare const LoginInputSchema: z.ZodObject<{
|
|
77
|
+
login: z.ZodString;
|
|
78
|
+
password: z.ZodString;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type LoginInput = z.infer<typeof LoginInputSchema>;
|
|
81
|
+
export declare const OwnSessionInputSchema: z.ZodObject<{
|
|
82
|
+
session_id: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type OwnSessionInput = z.infer<typeof OwnSessionInputSchema>;
|
|
85
|
+
export declare const SignInViewSchema: z.ZodEnum<{
|
|
86
|
+
all: "all";
|
|
87
|
+
failed: "failed";
|
|
88
|
+
}>;
|
|
89
|
+
export type SignInView = z.infer<typeof SignInViewSchema>;
|
|
90
|
+
export declare const OwnSignInsInputSchema: z.ZodObject<{
|
|
91
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
all: "all";
|
|
93
|
+
failed: "failed";
|
|
94
|
+
}>>;
|
|
95
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export type OwnSignInsInput = z.infer<typeof OwnSignInsInputSchema>;
|
|
99
|
+
export declare const RefreshInputSchema: z.ZodObject<{
|
|
100
|
+
refresh_token: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type RefreshInput = z.infer<typeof RefreshInputSchema>;
|
|
103
|
+
export declare const RequestEmailInputSchema: z.ZodObject<{
|
|
104
|
+
email: z.ZodString;
|
|
105
|
+
current_password: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type RequestEmailInput = z.infer<typeof RequestEmailInputSchema>;
|
|
108
|
+
export declare const SetPasswordInputSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodNumber;
|
|
110
|
+
password: z.ZodString;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export type SetPasswordInput = z.infer<typeof SetPasswordInputSchema>;
|
|
113
|
+
export declare const SignInsInputSchema: z.ZodObject<{
|
|
114
|
+
id: z.ZodNumber;
|
|
115
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
all: "all";
|
|
117
|
+
failed: "failed";
|
|
118
|
+
}>>;
|
|
119
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type SignInsInput = z.infer<typeof SignInsInputSchema>;
|
|
123
|
+
export declare const UpdateProfileInputSchema: z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type UpdateProfileInput = z.infer<typeof UpdateProfileInputSchema>;
|
|
128
|
+
export declare const UpdateUserInputSchema: z.ZodObject<{
|
|
129
|
+
id: z.ZodNumber;
|
|
130
|
+
login: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
email: z.ZodString;
|
|
133
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
134
|
+
locale: z.ZodString;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type UpdateUserInput = z.infer<typeof UpdateUserInputSchema>;
|
|
137
|
+
export declare const UserInputSchema: z.ZodObject<{
|
|
138
|
+
id: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export type UserInput = z.infer<typeof UserInputSchema>;
|
|
141
|
+
export declare const UserSessionInputSchema: z.ZodObject<{
|
|
142
|
+
id: z.ZodNumber;
|
|
143
|
+
session_id: z.ZodNumber;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type UserSessionInput = z.infer<typeof UserSessionInputSchema>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type CategorySettings = {
|
|
2
|
+
category: string;
|
|
3
|
+
email: Setting;
|
|
4
|
+
};
|
|
5
|
+
export type Item = {
|
|
6
|
+
id: number;
|
|
7
|
+
category: string;
|
|
8
|
+
title: string;
|
|
9
|
+
body: string;
|
|
10
|
+
link: string;
|
|
11
|
+
data: Record<string, string>;
|
|
12
|
+
read_at: string | null;
|
|
13
|
+
created_at: string;
|
|
14
|
+
};
|
|
15
|
+
export type Page = {
|
|
16
|
+
items: Item[];
|
|
17
|
+
has_more: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type Preferences = {
|
|
20
|
+
email_available: boolean;
|
|
21
|
+
categories: CategorySettings[];
|
|
22
|
+
quiet_hours: QuietHours;
|
|
23
|
+
time_zone: string;
|
|
24
|
+
};
|
|
25
|
+
export type QuietHours = {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
start: number;
|
|
28
|
+
end: number;
|
|
29
|
+
};
|
|
30
|
+
export type Setting = {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
source: Source;
|
|
33
|
+
};
|
|
34
|
+
export type Source = "enforced" | "person" | "default";
|
|
35
|
+
export type StreamEvent = {
|
|
36
|
+
type: StreamKind;
|
|
37
|
+
notification?: Item | null;
|
|
38
|
+
read_ids?: number[];
|
|
39
|
+
all_read?: boolean;
|
|
40
|
+
read_up_to_id?: number;
|
|
41
|
+
unread_count: number;
|
|
42
|
+
};
|
|
43
|
+
export type StreamKind = "created" | "read" | "unread";
|
|
44
|
+
export type UnreadCount = {
|
|
45
|
+
unread_count: number;
|
|
46
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CategorySettings, Page, Preferences, QuietHours, UnreadCount } from "./entities";
|
|
2
|
+
export declare const notificationRoutes: {
|
|
3
|
+
readonly list: import("../../client").ApiRoute<{
|
|
4
|
+
before_id?: number | undefined;
|
|
5
|
+
limit?: number | undefined;
|
|
6
|
+
}, Page>;
|
|
7
|
+
readonly unread: import("../../client").ApiRoute<void, UnreadCount>;
|
|
8
|
+
readonly read: import("../../client").ApiRoute<{
|
|
9
|
+
id: number;
|
|
10
|
+
}, UnreadCount>;
|
|
11
|
+
readonly readAll: import("../../client").ApiRoute<{
|
|
12
|
+
up_to_id: number;
|
|
13
|
+
}, UnreadCount>;
|
|
14
|
+
readonly stream: import("../../client").RawRoute;
|
|
15
|
+
readonly test: import("../../client").ApiRoute<void, void>;
|
|
16
|
+
readonly preferences: import("../../client").ApiRoute<void, Preferences>;
|
|
17
|
+
readonly preferencesSetEmail: import("../../client").ApiRoute<{
|
|
18
|
+
category: string;
|
|
19
|
+
email: boolean | null;
|
|
20
|
+
}, CategorySettings>;
|
|
21
|
+
readonly quietHours: import("../../client").ApiRoute<{
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
start: number;
|
|
24
|
+
end: number;
|
|
25
|
+
}, QuietHours>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ListQuerySchema: z.ZodObject<{
|
|
3
|
+
before_id: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type ListQuery = z.infer<typeof ListQuerySchema>;
|
|
7
|
+
export declare const MarkAllInputSchema: z.ZodObject<{
|
|
8
|
+
up_to_id: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type MarkAllInput = z.infer<typeof MarkAllInputSchema>;
|
|
11
|
+
export declare const QuietHoursInputSchema: z.ZodObject<{
|
|
12
|
+
enabled: z.ZodBoolean;
|
|
13
|
+
start: z.ZodNumber;
|
|
14
|
+
end: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type QuietHoursInput = z.infer<typeof QuietHoursInputSchema>;
|
|
17
|
+
export declare const ReadInputSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type ReadInput = z.infer<typeof ReadInputSchema>;
|
|
21
|
+
export declare const SetEmailInputSchema: z.ZodObject<{
|
|
22
|
+
category: z.ZodString;
|
|
23
|
+
email: z.ZodNullable<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type SetEmailInput = z.infer<typeof SetEmailInputSchema>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { computed as k } from "vue";
|
|
2
2
|
import { d as y } from "./context-Ch1r4fdN.js";
|
|
3
|
-
|
|
3
|
+
import { h as N } from "./platform-q3cjODLx.js";
|
|
4
|
+
function F(l, a = {}) {
|
|
4
5
|
const i = /* @__PURE__ */ new Map(), o = [];
|
|
5
6
|
for (const e of l) {
|
|
6
7
|
const { destination: s } = e.binding, u = i.get(s);
|
|
@@ -8,30 +9,30 @@ function x(l, r = {}) {
|
|
|
8
9
|
o.push(`The destination "${s}" is bound twice: by feature "${u.feature}" and by feature "${e.feature}".`);
|
|
9
10
|
continue;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
a.known && !a.known.includes(s) && o.push(`Feature "${e.feature}" binds the destination "${s}", which the backend's navigation does not contain.`), i.set(s, e);
|
|
12
13
|
}
|
|
13
|
-
for (const e of
|
|
14
|
+
for (const e of a.required ?? [])
|
|
14
15
|
i.has(e) || o.push(`The destination "${e}" is required but no feature binds it.`);
|
|
15
16
|
return { destinations: i, issues: o };
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
const { session:
|
|
19
|
-
function u(t,
|
|
18
|
+
function M(l) {
|
|
19
|
+
const { session: a, router: i, i18n: o, destinations: e } = l, s = (t) => o.te(t.i18n) ? o.t(t.i18n) : t.i18n;
|
|
20
|
+
function u(t, r) {
|
|
20
21
|
return t.flatMap((n, f) => {
|
|
21
|
-
const c = `${
|
|
22
|
+
const c = `${r}/${n.route ?? f}`, d = u(n.children ?? [], c);
|
|
22
23
|
if (n.route === void 0) return d.length > 0 ? [h(n, c, null, d, !1)] : [];
|
|
23
24
|
const v = e.get(n.route);
|
|
24
25
|
if (!v) return [];
|
|
25
|
-
const { to:
|
|
26
|
-
return [h(n, c,
|
|
26
|
+
const { to: m, within: g = [] } = v.binding, p = g.some(($) => i.currentRoute.value.matched.some((w) => w.name === $));
|
|
27
|
+
return [h(n, c, m, d, p || b(m))];
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
const { matched:
|
|
30
|
+
function b(t) {
|
|
31
|
+
const { matched: r } = i.resolve(t), n = r[r.length - 1];
|
|
31
32
|
return n !== void 0 && i.currentRoute.value.matched.includes(n);
|
|
32
33
|
}
|
|
33
|
-
const h = (t,
|
|
34
|
-
key:
|
|
34
|
+
const h = (t, r, n, f, c) => ({
|
|
35
|
+
key: r,
|
|
35
36
|
label: s(t),
|
|
36
37
|
icon: t.icon ?? null,
|
|
37
38
|
to: n,
|
|
@@ -39,14 +40,14 @@ function C(l) {
|
|
|
39
40
|
children: f
|
|
40
41
|
});
|
|
41
42
|
return k(() => {
|
|
42
|
-
const t =
|
|
43
|
-
return t
|
|
43
|
+
const t = N(a.state.value);
|
|
44
|
+
return t ? u(t.navigation ?? [], "") : [];
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
const [
|
|
47
|
+
const [R, T] = y("vue-core.navigation");
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
F as b,
|
|
50
|
+
M as c,
|
|
51
|
+
R as n,
|
|
52
|
+
T as u
|
|
52
53
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ref as P, shallowRef as z, watch as X, getCurrentScope as j, onScopeDispose as B } from "vue";
|
|
2
|
+
import { useRoute as F } from "vue-router";
|
|
3
|
+
import { i as M } from "./error-CD7x0Jrz.js";
|
|
4
|
+
import { L as I, o as J, d as Q, e as N, q as U } from "./http-CNcDHSOj.js";
|
|
5
|
+
const V = 8;
|
|
6
|
+
function te(s, r) {
|
|
7
|
+
const v = F(), R = r.from ?? (() => typeof v.query[I] == "string" ? v.query[I] : null), D = r.stateKey ?? "query", y = P(null), p = P(0), h = z(null), d = z(null), b = P(!1), S = z(null), n = /* @__PURE__ */ new Map();
|
|
8
|
+
let m = 0, k = new AbortController(), E = !1;
|
|
9
|
+
function q(w, g, l) {
|
|
10
|
+
const f = { ...w, page: g }, c = U(f);
|
|
11
|
+
let a = n.get(c);
|
|
12
|
+
for (a ? n.delete(c) : (a = (async () => s.load(f, { signal: l }))(), a.catch(() => {
|
|
13
|
+
n.get(c) === a && n.delete(c);
|
|
14
|
+
})), n.set(c, a); n.size > V; ) n.delete(n.keys().next().value);
|
|
15
|
+
return a.catch((e) => {
|
|
16
|
+
if (M(e)) throw e;
|
|
17
|
+
return null;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function K() {
|
|
21
|
+
y.value = null, h.value = null, d.value = null, p.value = 0, S.value = null;
|
|
22
|
+
}
|
|
23
|
+
async function T() {
|
|
24
|
+
const w = ++m, g = k.signal, l = Q(s, R()), f = r.current();
|
|
25
|
+
if (!l || f === null || f === void 0 || f === "") {
|
|
26
|
+
K(), b.value = !1;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
b.value = !0, h.value = null, d.value = null;
|
|
30
|
+
const c = (e) => e ? e.rows.findIndex((t) => String(s.key(t)) === String(f)) : -1, a = (e, t) => {
|
|
31
|
+
const o = N(s, { ...l, page: e });
|
|
32
|
+
return { key: t, to: { name: v.name ?? void 0, params: { ...v.params, [r.param]: String(t) }, query: { ...v.query, [I]: o }, hash: v.hash } };
|
|
33
|
+
};
|
|
34
|
+
try {
|
|
35
|
+
let e = l.page, t = await q(l, e, g), o = c(t);
|
|
36
|
+
for (const i of [e - 1, e + 1]) {
|
|
37
|
+
if (o !== -1 || !t || i < 1 || i > t.lastPage) continue;
|
|
38
|
+
const u = await q(l, i, g), _ = c(u);
|
|
39
|
+
u && _ !== -1 && (e = i, t = u, o = _);
|
|
40
|
+
}
|
|
41
|
+
if (w !== m) return;
|
|
42
|
+
if (!t || o === -1) {
|
|
43
|
+
K();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const O = t.pageSize || l.pageSize, C = t.rows;
|
|
47
|
+
let A = null;
|
|
48
|
+
if (o > 0) A = a(e, s.key(C[o - 1]));
|
|
49
|
+
else if (e > 1) {
|
|
50
|
+
const i = await q(l, e - 1, g), u = i?.rows[i.rows.length - 1];
|
|
51
|
+
u !== void 0 && (A = a(e - 1, s.key(u)));
|
|
52
|
+
}
|
|
53
|
+
let L = null;
|
|
54
|
+
if (o < C.length - 1) L = a(e, s.key(C[o + 1]));
|
|
55
|
+
else if (e < t.lastPage) {
|
|
56
|
+
const u = (await q(l, e + 1, g))?.rows[0];
|
|
57
|
+
u !== void 0 && (L = a(e + 1, s.key(u)));
|
|
58
|
+
}
|
|
59
|
+
if (w !== m) return;
|
|
60
|
+
p.value = t.total, y.value = (e - 1) * O + o + 1, h.value = A, d.value = L;
|
|
61
|
+
const x = r.list;
|
|
62
|
+
S.value = typeof x == "string" ? x : { ...x, query: { ...x.query, [D]: N(s, { ...l, page: e }) } };
|
|
63
|
+
} catch (e) {
|
|
64
|
+
if (!M(e)) throw e;
|
|
65
|
+
} finally {
|
|
66
|
+
w === m && (b.value = !1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const G = X([R, r.current], T, { immediate: !0 });
|
|
70
|
+
function H() {
|
|
71
|
+
E || (E = !0, m++, k.abort(), G(), n.clear());
|
|
72
|
+
}
|
|
73
|
+
return j() && B(H), J(() => {
|
|
74
|
+
k.abort(), k = new AbortController(), n.clear(), T();
|
|
75
|
+
}), { position: y, total: p, previous: h, next: d, loading: b, listRoute: S, context: {
|
|
76
|
+
get back() {
|
|
77
|
+
return { label: typeof r.backLabel == "function" ? r.backLabel() : r.backLabel, to: S.value ?? r.list };
|
|
78
|
+
},
|
|
79
|
+
get neighbors() {
|
|
80
|
+
return y.value === null ? null : { position: y.value, total: p.value, previous: h.value?.to ?? null, next: d.value?.to ?? null };
|
|
81
|
+
}
|
|
82
|
+
} };
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
te as u
|
|
86
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Inbox } from "./inbox";
|
|
2
|
+
/**
|
|
3
|
+
* The inbox: what the popover (wide screens) and the sheet (phones) show. Newest first; a tap marks the
|
|
4
|
+
* notification read and opens its link; "Mark all as read" marks what has been seen; older ones
|
|
5
|
+
* come with "Show older". Loading, failure and emptiness are the library's own states.
|
|
6
|
+
*/
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
inbox: Inbox;
|
|
9
|
+
appearance: "popover" | "sheet";
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Inbox } from "./inbox";
|
|
2
|
+
/** "Mark all as read": what has been seen, up to the newest id the inbox shows. Off while nothing is unread. */
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
inbox: Inbox;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
click: () => any;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onClick?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ShallowRef } from "vue";
|
|
2
|
+
import type { IconName } from "../icon";
|
|
3
|
+
import type { Hue } from "../state";
|
|
4
|
+
import type { Inbox } from "./inbox";
|
|
5
|
+
/** How a category of notification is drawn in the inbox: the icon of its row and the colour behind it. */
|
|
6
|
+
export interface NotificationCategoryLook {
|
|
7
|
+
/** Default: the bell. */
|
|
8
|
+
icon?: IconName;
|
|
9
|
+
/** One of the category hues; default neutral. */
|
|
10
|
+
hue?: Hue;
|
|
11
|
+
}
|
|
12
|
+
/** What the bell and the inbox read from the feature that installed them. */
|
|
13
|
+
export interface NotificationsContext {
|
|
14
|
+
/** The signed-in session's inbox; null while nobody is signed in (it is made and ended with the session). */
|
|
15
|
+
readonly inbox: ShallowRef<Inbox | null>;
|
|
16
|
+
readonly categories: Readonly<Record<string, NotificationCategoryLook>>;
|
|
17
|
+
/** Whether the settings page is installed: the inbox shows its gear. */
|
|
18
|
+
readonly settings: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const notificationsContextKey: import("vue").InjectionKey<NotificationsContext>, useNotificationsContext: () => NotificationsContext;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { HttpClient } from "../../client";
|
|
2
|
+
/** The dead letters of every consumer of the application's event queue, as go-core's `GET /v1/events/dead-letters` pages them (newest first; only the consumer narrows it). */
|
|
3
|
+
export declare function deadLetterList(http: HttpClient): import("../../collection").CollectionDefinition<import("..").DeadLetterRow, never, "consumer", never>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RouteRecordRaw } from "vue-router";
|
|
2
|
+
/**
|
|
3
|
+
* The route of the dead-letters page (`/events/dead-letters`, name `events.deadletters`), for whoever holds
|
|
4
|
+
* `events.deadletter:view`: a typed target for links and the record `notificationsFeature` installs.
|
|
5
|
+
*/
|
|
6
|
+
export interface DeadLettersRoutes {
|
|
7
|
+
/** The records `notificationsFeature` installs. */
|
|
8
|
+
readonly records: readonly RouteRecordRaw[];
|
|
9
|
+
readonly index: {
|
|
10
|
+
readonly name: "events.deadletters";
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const deadLettersRoutes: DeadLettersRoutes;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type Feature } from "../app";
|
|
2
|
+
import type { Destination } from "../router";
|
|
3
|
+
import { type NotificationCategoryLook } from "./context";
|
|
4
|
+
export interface NotificationsFeatureOptions {
|
|
5
|
+
/** How each category the application declared in go-core is drawn: the icon of its rows and the colour behind it. A category without an entry gets the bell on a neutral tile. */
|
|
6
|
+
categories?: Readonly<Record<string, NotificationCategoryLook>>;
|
|
7
|
+
/**
|
|
8
|
+
* The dead-letters page (`/events/dead-letters`, route `events.deadletters`) for whoever holds `events.deadletter:view`:
|
|
9
|
+
* the events a consumer of the queue gave up on, with retry behind `events.deadletter:retry`. `destination` is the node of
|
|
10
|
+
* the server's menu that opens it; without one the application binds the page itself. `false` leaves the page out.
|
|
11
|
+
* Default: the page, with no menu binding.
|
|
12
|
+
*/
|
|
13
|
+
deadLetters?: {
|
|
14
|
+
destination?: Destination;
|
|
15
|
+
} | false;
|
|
16
|
+
/**
|
|
17
|
+
* The person's own notification settings (`/profile/notifications`, route `notifications.settings`): the categories they get by e-mail
|
|
18
|
+
* and their quiet hours, reached from the account menu ("Notification settings") and from a gear in the inbox. Needs no permission, only a
|
|
19
|
+
* session. The names of the categories are the application's texts `notifications.categories.<code>.label` (and `.description`), the code
|
|
20
|
+
* split at its dots; a category without a text is shown by its code. `false` leaves the page, the menu entry and the gear out. Default true.
|
|
21
|
+
*/
|
|
22
|
+
settings?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The in-app notifications of go-core's notification module, one feature to install: the bell with the
|
|
26
|
+
* unread count in the shell's `headerActions`, the inbox it opens (a popover on wide screens, a bottom sheet on
|
|
27
|
+
* phones), and the live stream behind both, which follows the session. Needs a shell with a `headerActions` place.
|
|
28
|
+
*
|
|
29
|
+
* createApplication({ platform, shell: backofficeShell(), features: [identityFeature(), notificationsFeature({ categories: { "tickets.assigned": { icon: "user3Line", hue: "blue" } }, deadLetters: { destination: "events.deadletters" } })] })
|
|
30
|
+
*/
|
|
31
|
+
export declare function notificationsFeature(options?: NotificationsFeatureOptions): Feature;
|