@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
package/dist/app/index.js
CHANGED
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { effectScope as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { createRouter as
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { i as
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
14
|
-
import { c as
|
|
15
|
-
import { c as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
var Ee = Object.defineProperty;
|
|
2
|
+
var xe = (e, a, r) => a in e ? Ee(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r;
|
|
3
|
+
var Z = (e, a, r) => xe(e, typeof a != "symbol" ? a + "" : a, r);
|
|
4
|
+
import { effectScope as W, watch as B, defineComponent as fe, openBlock as Se, createElementBlock as Re, createVNode as ee, unref as K, withCtx as te, createTextVNode as Me, toDisplayString as Ae, shallowRef as je, computed as Le, h as se, createApp as Ne } from "vue";
|
|
5
|
+
import { useI18n as Oe, createI18n as Ce } from "vue-i18n";
|
|
6
|
+
import { createRouter as Ke, isNavigationFailure as _e } from "vue-router";
|
|
7
|
+
import { i as Ie } from "../leaveGuard-Cc8yeLxM.js";
|
|
8
|
+
import { c as Fe, i as Te, f as qe } from "../format-B8mJm946.js";
|
|
9
|
+
import { coreMessages as oe, createMessageRuntime as Pe } from "../i18n/index.js";
|
|
10
|
+
import { i as We, a as Be } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
11
|
+
import { i as De, b as He } from "../bottomDock-BZEiOPYZ.js";
|
|
12
|
+
import { i as Ve, p as Ge } from "../chrome-BS3xJcad.js";
|
|
13
|
+
import { i as Je, g as ze } from "../platform-q3cjODLx.js";
|
|
14
|
+
import { c as Qe, A as Ue, r as re } from "../access-DdRFrVV1.js";
|
|
15
|
+
import { c as Xe, _ as Ye } from "../NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js";
|
|
16
|
+
import { i as Ze } from "../guards-Dve61KjR.js";
|
|
17
|
+
import { b as et, c as tt, n as ne } from "../navigation-Cm3iChlR.js";
|
|
18
|
+
import { c as st, s as ae } from "../contributions-DsfmDoRD.js";
|
|
19
|
+
import { S as Tt } from "../contributions-DsfmDoRD.js";
|
|
20
|
+
import { a as ie } from "../environment-Dva-SG8D.js";
|
|
21
|
+
import { u as Pt } from "../environment-Dva-SG8D.js";
|
|
22
|
+
import { _ as ot } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
23
|
+
import { _ as rt } from "../EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
|
|
24
|
+
import { i as nt } from "../feature-DdUAfyi4.js";
|
|
25
|
+
import { d as Bt, p as Dt } from "../feature-DdUAfyi4.js";
|
|
26
|
+
import { k as Vt } from "../keepAlive-WYQGRhuz.js";
|
|
27
|
+
function at(e) {
|
|
28
|
+
const { platform: a } = e, r = W();
|
|
29
|
+
let i = null, w = null, v = !1;
|
|
30
|
+
function k(l, m) {
|
|
31
|
+
const h = new AbortController(), u = { controller: h, stops: [] };
|
|
32
|
+
for (const E of l)
|
|
27
33
|
try {
|
|
28
|
-
const
|
|
29
|
-
typeof
|
|
30
|
-
} catch (
|
|
31
|
-
e.onError(
|
|
34
|
+
const $ = m(E, h.signal);
|
|
35
|
+
typeof $ == "function" && u.stops.push({ owned: E, stop: $ });
|
|
36
|
+
} catch ($) {
|
|
37
|
+
e.onError($, E);
|
|
32
38
|
}
|
|
33
39
|
return u;
|
|
34
40
|
}
|
|
35
|
-
function
|
|
41
|
+
function R(l) {
|
|
36
42
|
if (l) {
|
|
37
43
|
l.controller.abort();
|
|
38
|
-
for (const { owned:
|
|
44
|
+
for (const { owned: m, stop: h } of l.stops.reverse())
|
|
39
45
|
try {
|
|
40
|
-
|
|
46
|
+
h();
|
|
41
47
|
} catch (u) {
|
|
42
|
-
e.onError(u,
|
|
48
|
+
e.onError(u, m);
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
|
-
const
|
|
52
|
+
const j = (l) => e.effects.filter((m) => m.effect.scope === l), M = (l) => l.status !== "authenticated" ? null : e.sessionKey ? e.sessionKey(l) : String(l.user.id);
|
|
47
53
|
return {
|
|
48
54
|
start() {
|
|
49
|
-
if (
|
|
50
|
-
i =
|
|
51
|
-
|
|
52
|
-
(
|
|
55
|
+
if (v || i) return;
|
|
56
|
+
i = k(
|
|
57
|
+
j("app"),
|
|
58
|
+
(m, h) => m.effect.start({ signal: h, platform: a, report: (u) => e.onError(u, m) })
|
|
53
59
|
);
|
|
54
|
-
const l =
|
|
55
|
-
|
|
56
|
-
() =>
|
|
57
|
-
() =>
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const l = j("session");
|
|
61
|
+
r.run(
|
|
62
|
+
() => B(
|
|
63
|
+
() => M(a.session.state.value),
|
|
64
|
+
(m) => {
|
|
65
|
+
R(w), w = null;
|
|
66
|
+
const h = a.session.state.value;
|
|
67
|
+
m === null || h.status !== "authenticated" || (w = k(
|
|
62
68
|
l,
|
|
63
|
-
(u,
|
|
69
|
+
(u, E) => u.effect.start({ signal: E, platform: a, user: h.user, report: ($) => e.onError($, u) })
|
|
64
70
|
));
|
|
65
71
|
},
|
|
66
72
|
{ immediate: !0, flush: "sync" }
|
|
@@ -68,32 +74,32 @@ function rt(e) {
|
|
|
68
74
|
);
|
|
69
75
|
},
|
|
70
76
|
dispose() {
|
|
71
|
-
|
|
77
|
+
v || (v = !0, r.stop(), R(w), R(i), w = i = null);
|
|
72
78
|
}
|
|
73
79
|
};
|
|
74
80
|
}
|
|
75
|
-
const
|
|
81
|
+
const it = { class: "mx-auto flex min-h-screen max-w-content items-center justify-center p-screen-padding" }, ct = /* @__PURE__ */ fe({
|
|
76
82
|
__name: "StartupFailure",
|
|
77
83
|
props: {
|
|
78
84
|
kind: {}
|
|
79
85
|
},
|
|
80
86
|
emits: ["retry"],
|
|
81
87
|
setup(e) {
|
|
82
|
-
const { t: a } =
|
|
83
|
-
return (
|
|
84
|
-
|
|
85
|
-
title:
|
|
86
|
-
description:
|
|
88
|
+
const { t: a } = Oe();
|
|
89
|
+
return (r, i) => (Se(), Re("div", it, [
|
|
90
|
+
ee(K(rt), {
|
|
91
|
+
title: K(a)("core.startup.title"),
|
|
92
|
+
description: K(a)(e.kind === "startup" ? "core.startup.other" : `core.startup.${e.kind}`),
|
|
87
93
|
icon: "errorWarningLine"
|
|
88
94
|
}, {
|
|
89
|
-
actions:
|
|
90
|
-
|
|
95
|
+
actions: te(() => [
|
|
96
|
+
ee(K(ot), {
|
|
91
97
|
prominence: "primary",
|
|
92
98
|
icon: "refreshLine",
|
|
93
|
-
onClick: i[0] || (i[0] = (
|
|
99
|
+
onClick: i[0] || (i[0] = (w) => r.$emit("retry"))
|
|
94
100
|
}, {
|
|
95
|
-
default:
|
|
96
|
-
|
|
101
|
+
default: te(() => [
|
|
102
|
+
Me(Ae(K(a)("core.actions.retry")), 1)
|
|
97
103
|
]),
|
|
98
104
|
_: 1
|
|
99
105
|
})
|
|
@@ -103,361 +109,318 @@ const at = { class: "mx-auto flex min-h-screen max-w-content items-center justif
|
|
|
103
109
|
]));
|
|
104
110
|
}
|
|
105
111
|
});
|
|
106
|
-
class
|
|
107
|
-
constructor(
|
|
112
|
+
class ce extends Error {
|
|
113
|
+
constructor(r) {
|
|
108
114
|
super(`The application composition is invalid:
|
|
109
|
-
${
|
|
115
|
+
${r.map((i) => ` - [${i.owner}] ${i.message}`).join(`
|
|
110
116
|
`)}`);
|
|
111
|
-
|
|
112
|
-
this.name = "ApplicationError", this.issues =
|
|
117
|
+
Z(this, "issues");
|
|
118
|
+
this.name = "ApplicationError", this.issues = r;
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
|
-
const
|
|
116
|
-
function*
|
|
117
|
-
for (const
|
|
118
|
-
const i =
|
|
119
|
-
yield { record:
|
|
121
|
+
const le = "application", g = (e) => `feature "${e.id}"`;
|
|
122
|
+
function* D(e, a = "") {
|
|
123
|
+
for (const r of e) {
|
|
124
|
+
const i = r.path.startsWith("/") ? r.path : `${a.replace(/\/$/, "")}/${r.path}`;
|
|
125
|
+
yield { record: r, path: i }, r.children && (yield* D(r.children, i));
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
|
-
function
|
|
123
|
-
const a = [],
|
|
128
|
+
function lt(e) {
|
|
129
|
+
const a = [], r = (o, s) => a.push({ owner: o, message: s }), i = [];
|
|
124
130
|
e.features.forEach((o, s) => {
|
|
125
|
-
|
|
131
|
+
nt(o) ? i.push(o) : r(le, `features[${s}] was not created with defineFeature().`);
|
|
126
132
|
});
|
|
127
|
-
const
|
|
133
|
+
const w = /* @__PURE__ */ new Map();
|
|
128
134
|
for (const o of i)
|
|
129
|
-
|
|
135
|
+
w.has(o.id) ? r(g(o), `the feature id "${o.id}" is used twice in the features list.`) : w.set(o.id, o);
|
|
130
136
|
for (const o of i)
|
|
131
137
|
for (const s of o.requires)
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
const s =
|
|
138
|
+
w.has(s) || r(g(o), `requires the feature "${s}", which is not in the features list.`);
|
|
139
|
+
const v = [], k = /* @__PURE__ */ new Set(), R = (o) => {
|
|
140
|
+
if (k.has(o.id)) return;
|
|
141
|
+
const s = v.indexOf(o.id);
|
|
136
142
|
if (s !== -1) {
|
|
137
|
-
|
|
143
|
+
r(g(o), `requirements form a cycle: ${[...v.slice(s), o.id].join(" -> ")}.`), k.add(o.id);
|
|
138
144
|
return;
|
|
139
145
|
}
|
|
140
|
-
|
|
146
|
+
v.push(o.id);
|
|
141
147
|
for (const c of o.requires) {
|
|
142
|
-
const
|
|
143
|
-
|
|
148
|
+
const d = w.get(c);
|
|
149
|
+
d && R(d);
|
|
144
150
|
}
|
|
145
|
-
|
|
151
|
+
v.pop(), k.add(o.id);
|
|
146
152
|
};
|
|
147
|
-
i.forEach(
|
|
148
|
-
const
|
|
153
|
+
i.forEach(R);
|
|
154
|
+
const j = new Set(e.platform.config.capabilities);
|
|
149
155
|
for (const o of i)
|
|
150
156
|
for (const s of o.backend)
|
|
151
|
-
|
|
152
|
-
const
|
|
157
|
+
j.has(s) || r(g(o), `needs the backend capability "${s}", which the server does not report.`);
|
|
158
|
+
const M = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
153
159
|
for (const o of i) {
|
|
154
160
|
for (const s of o.routes) {
|
|
155
|
-
const c = s.path.length > 1 ? s.path.replace(/\/$/, "") : s.path,
|
|
156
|
-
|
|
161
|
+
const c = s.path.length > 1 ? s.path.replace(/\/$/, "") : s.path, d = l.get(c);
|
|
162
|
+
d ? r(g(o), `declares the path "${s.path}", which feature "${d.id}" declares too.`) : l.set(c, o);
|
|
157
163
|
}
|
|
158
|
-
for (const { record: s } of
|
|
159
|
-
if (s.meta && "feature" in s.meta &&
|
|
160
|
-
const c =
|
|
161
|
-
c ?
|
|
164
|
+
for (const { record: s } of D(o.routes)) {
|
|
165
|
+
if (s.meta && "feature" in s.meta && r(g(o), `the route "${String(s.name ?? s.path)}" sets meta.feature, which the runtime owns.`), typeof s.name != "string") continue;
|
|
166
|
+
const c = M.get(s.name);
|
|
167
|
+
c ? r(g(o), `declares the route name "${s.name}", which feature "${c.id}" declares too.`) : M.set(s.name, o);
|
|
162
168
|
}
|
|
163
169
|
}
|
|
164
|
-
const
|
|
170
|
+
const m = new Set(e.reservedContexts), h = /* @__PURE__ */ new Map();
|
|
165
171
|
for (const o of i)
|
|
166
172
|
for (const { key: s } of o.contexts) {
|
|
167
173
|
const c = s.description ?? "a context";
|
|
168
|
-
|
|
169
|
-
const
|
|
170
|
-
|
|
174
|
+
m.has(s) && r(g(o), `provides the context "${c}", which the runtime provides itself.`);
|
|
175
|
+
const d = h.get(s);
|
|
176
|
+
d ? r(g(o), `provides the context "${c}", which feature "${d.id}" provides too.`) : h.set(s, o);
|
|
171
177
|
}
|
|
172
|
-
const u = /* @__PURE__ */ new Map(),
|
|
178
|
+
const u = /* @__PURE__ */ new Map(), E = (o, s) => {
|
|
173
179
|
for (const c of s) {
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
for (const
|
|
177
|
-
e.supportedLocales.includes(
|
|
180
|
+
const d = u.get(c.namespace);
|
|
181
|
+
d ? r(o, `declares the message namespace "${c.namespace}", which ${d} declares too.`) : u.set(c.namespace, o);
|
|
182
|
+
for (const L of Object.keys(c.loaders))
|
|
183
|
+
e.supportedLocales.includes(L) || r(o, `the namespace "${c.namespace}" has a loader for "${L}", which is not a supported locale (${e.supportedLocales.join(", ")}).`);
|
|
178
184
|
}
|
|
179
185
|
};
|
|
180
|
-
for (const o of i)
|
|
181
|
-
|
|
182
|
-
const
|
|
186
|
+
for (const o of i) E(g(o), o.messages);
|
|
187
|
+
E(le, e.messages);
|
|
188
|
+
const $ = (o) => u.has(o);
|
|
183
189
|
for (const o of i)
|
|
184
|
-
for (const { record: s } of
|
|
190
|
+
for (const { record: s } of D(o.routes))
|
|
185
191
|
for (const c of s.meta?.messages ?? [])
|
|
186
|
-
|
|
187
|
-
const
|
|
192
|
+
$(c) || r(g(o), `the route "${String(s.name ?? s.path)}" needs the message namespace "${c}", which nobody declares.`);
|
|
193
|
+
const x = /* @__PURE__ */ new Map();
|
|
188
194
|
for (const o of i)
|
|
189
195
|
for (const s of o.contributions) {
|
|
190
|
-
const c =
|
|
191
|
-
c ?
|
|
192
|
-
for (const
|
|
193
|
-
|
|
196
|
+
const c = x.get(s.id);
|
|
197
|
+
c ? r(g(o), `declares the shell contribution "${s.id}", which feature "${c.id}" declares too.`) : x.set(s.id, o), e.shellSlots && !s.optional && !e.shellSlots.includes(s.slot) && r(g(o), `contributes "${s.id}" to the slot "${s.slot}", which the shell does not render (it renders ${e.shellSlots.join(", ") || "none"}). Mark it optional to leave it out instead.`);
|
|
198
|
+
for (const d of s.messages ?? [])
|
|
199
|
+
$(d) || r(g(o), `the contribution "${s.id}" needs the message namespace "${d}", which nobody declares.`);
|
|
194
200
|
}
|
|
195
|
-
const
|
|
201
|
+
const A = /* @__PURE__ */ new Map();
|
|
196
202
|
for (const o of i)
|
|
197
203
|
for (const s of o.effects) {
|
|
198
|
-
const c =
|
|
199
|
-
c ?
|
|
200
|
-
const
|
|
201
|
-
|
|
204
|
+
const c = A.get(s.id);
|
|
205
|
+
c ? r(g(o), `declares the effect "${s.id}", which feature "${c.id}" declares too.`) : A.set(s.id, o);
|
|
206
|
+
const d = s.scope;
|
|
207
|
+
d !== "app" && d !== "session" && r(g(o), `the effect "${s.id}" has the scope "${d}"; use "app" or "session".`);
|
|
202
208
|
}
|
|
203
209
|
return { features: i, issues: a };
|
|
204
210
|
}
|
|
205
|
-
const
|
|
211
|
+
const ut = (e, a, r) => Ce({
|
|
206
212
|
legacy: !1,
|
|
207
213
|
locale: e,
|
|
208
214
|
fallbackLocale: a,
|
|
209
|
-
pluralRules:
|
|
210
|
-
...
|
|
215
|
+
pluralRules: r?.pluralRules && { ...r.pluralRules },
|
|
216
|
+
...r?.missingWarn === !1 && { missingWarn: !1, fallbackWarn: !1 },
|
|
211
217
|
messages: {}
|
|
212
|
-
}),
|
|
213
|
-
function
|
|
214
|
-
return e.map((
|
|
215
|
-
...
|
|
216
|
-
meta: { ...
|
|
217
|
-
...
|
|
218
|
+
}), ft = (e) => typeof e == "object" && e !== null && "component" in e && "slots" in e;
|
|
219
|
+
function de(e, a) {
|
|
220
|
+
return e.map((r) => ({
|
|
221
|
+
...r,
|
|
222
|
+
meta: { ...r.meta, feature: a },
|
|
223
|
+
...r.children && { children: de(r.children, a) }
|
|
218
224
|
}));
|
|
219
225
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
222
|
-
const { platform: a } = e,
|
|
223
|
-
|
|
226
|
+
const ue = (e) => [...new Set(e)];
|
|
227
|
+
function _t(e) {
|
|
228
|
+
const { platform: a } = e, r = e.locale?.supported ?? Object.keys(oe), i = e.locale?.fallback ?? "en", w = e.shell === void 0 ? void 0 : ft(e.shell) ? e.shell : { component: e.shell, slots: void 0, progress: void 0 }, v = [];
|
|
229
|
+
r.includes(i) || v.push({ owner: "application", message: `the fallback locale "${i}" is not among the supported locales (${r.join(", ")}).` });
|
|
224
230
|
for (const t of Object.keys(e.locale?.flags ?? {}))
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const
|
|
231
|
+
r.includes(t) || v.push({ owner: "application", message: `locale.flags names the locale "${t}", which is not among the supported locales (${r.join(", ")}).` });
|
|
232
|
+
const k = e.locale?.initial ?? (r.includes(a.config.locale) ? a.config.locale : i);
|
|
233
|
+
r.includes(k) || v.push({ owner: "application", message: `the initial locale "${k}" is not among the supported locales (${r.join(", ")}).` });
|
|
234
|
+
const R = [ze, qe, Ge, He, Be, ne, ae, re, ie], j = lt({
|
|
229
235
|
features: e.features,
|
|
230
236
|
platform: a,
|
|
231
237
|
messages: e.messages ?? [],
|
|
232
|
-
reservedContexts:
|
|
233
|
-
supportedLocales:
|
|
234
|
-
shellSlots:
|
|
235
|
-
}),
|
|
236
|
-
l.flatMap((t) => t.navigation.map((
|
|
238
|
+
reservedContexts: R,
|
|
239
|
+
supportedLocales: r,
|
|
240
|
+
shellSlots: w?.slots
|
|
241
|
+
}), M = [...v, ...j.issues], l = j.features, m = et(
|
|
242
|
+
l.flatMap((t) => t.navigation.map((n) => ({ feature: t.id, binding: n }))),
|
|
237
243
|
e.navigation
|
|
238
244
|
);
|
|
239
|
-
for (const t of
|
|
240
|
-
if (
|
|
241
|
-
const
|
|
242
|
-
for (const [t,
|
|
243
|
-
for (const [t,
|
|
244
|
-
const
|
|
245
|
+
for (const t of m.issues) M.push({ owner: "navigation", message: t });
|
|
246
|
+
if (M.length > 0) throw new ce(M);
|
|
247
|
+
const h = ut(k, i, e.i18n), u = h.global;
|
|
248
|
+
for (const [t, n] of Object.entries(oe)) u.mergeLocaleMessage(t, n);
|
|
249
|
+
for (const [t, n] of Object.entries(e.i18n?.messages ?? {})) u.mergeLocaleMessage(t, n);
|
|
250
|
+
const E = Fe({ locale: () => u.locale.value, formatters: e.formatting }), $ = [...l.flatMap((t) => t.messages), ...e.messages ?? []], x = (t) => (e.onError ?? dt)({ ...t, route: s.currentRoute.value.matched.length > 0 ? s.currentRoute.value.fullPath : null }), A = Pe({
|
|
245
251
|
target: u,
|
|
246
|
-
namespaces:
|
|
252
|
+
namespaces: $,
|
|
247
253
|
fallback: i,
|
|
248
|
-
supported:
|
|
249
|
-
onFailure: (t) =>
|
|
250
|
-
}), o = new Map(l.flatMap((t) => t.messages.map((
|
|
251
|
-
history: e.router?.history ??
|
|
252
|
-
routes: l.flatMap((t) =>
|
|
253
|
-
scrollBehavior: e.router?.scrollBehavior ?? ((t,
|
|
254
|
-
}), c = e.router?.login ?? { name: "login" },
|
|
254
|
+
supported: r,
|
|
255
|
+
onFailure: (t) => x({ source: "messages", error: t.error, detail: `${t.namespace} (${t.locale})`, feature: o.get(t.namespace) })
|
|
256
|
+
}), o = new Map(l.flatMap((t) => t.messages.map((n) => [n.namespace, t.id]))), s = Ke({
|
|
257
|
+
history: e.router?.history ?? Xe(),
|
|
258
|
+
routes: l.flatMap((t) => de(t.routes, t.id)),
|
|
259
|
+
scrollBehavior: e.router?.scrollBehavior ?? ((t, n) => t.name === n.name ? !1 : { top: 0 })
|
|
260
|
+
}), c = e.router?.login ?? { name: "login" }, d = e.router?.home ?? { path: "/" }, L = [], H = (t) => {
|
|
255
261
|
try {
|
|
256
262
|
return s.resolve(t).matched.length > 0 ? null : "matches no route";
|
|
257
|
-
} catch (
|
|
258
|
-
const f =
|
|
263
|
+
} catch (n) {
|
|
264
|
+
const f = n instanceof Error ? n.message : String(n);
|
|
259
265
|
return f.startsWith("No match for") ? "matches no route" : `cannot be resolved (${f})`;
|
|
260
266
|
}
|
|
261
267
|
};
|
|
262
|
-
if (l.some((t) => t.routes.some((
|
|
268
|
+
if (l.some((t) => t.routes.some((n) => n.meta?.public !== !0))) {
|
|
263
269
|
const t = H(c) ?? (s.resolve(c).meta.public === !0 ? null : "is not public (meta.public: true)");
|
|
264
|
-
t &&
|
|
270
|
+
t && L.push({ owner: "application", message: `the login route ${JSON.stringify(c)} ${t.replace("matches no route", "does not exist")}, but protected routes are installed: an anonymous visitor would have nowhere to go. Install a feature with the login route or set router.login.` });
|
|
265
271
|
}
|
|
266
|
-
for (const { feature: t, binding:
|
|
267
|
-
const f = H(
|
|
268
|
-
f &&
|
|
272
|
+
for (const { feature: t, binding: n } of m.destinations.values()) {
|
|
273
|
+
const f = H(n.to);
|
|
274
|
+
f && L.push({ owner: `feature "${t}"`, message: `the destination "${n.destination}" is bound to ${JSON.stringify(n.to)}, which ${f}.` });
|
|
269
275
|
}
|
|
270
|
-
if (
|
|
271
|
-
const N =
|
|
276
|
+
if (L.length > 0) throw new ce(L);
|
|
277
|
+
const N = je({ status: "idle" }), I = {
|
|
272
278
|
state: N,
|
|
273
|
-
locale:
|
|
274
|
-
locales:
|
|
279
|
+
locale: Le(() => u.locale.value),
|
|
280
|
+
locales: r,
|
|
275
281
|
localeFlags: e.locale?.flags ?? {},
|
|
276
282
|
setLocale: async (t) => {
|
|
277
|
-
const
|
|
278
|
-
if (f && u.locale.value !==
|
|
279
|
-
const
|
|
283
|
+
const n = u.locale.value, f = await A.setLocale(t);
|
|
284
|
+
if (f && u.locale.value !== n) {
|
|
285
|
+
const b = (C) => x({ source: "locale", error: C, detail: t });
|
|
280
286
|
try {
|
|
281
|
-
Promise.resolve(e.locale?.onChange?.(t)).catch(
|
|
282
|
-
} catch (
|
|
283
|
-
|
|
287
|
+
Promise.resolve(e.locale?.onChange?.(t)).catch(b);
|
|
288
|
+
} catch (C) {
|
|
289
|
+
b(C);
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
292
|
return f;
|
|
287
293
|
},
|
|
288
|
-
retry: () =>
|
|
289
|
-
},
|
|
290
|
-
contributions: l.flatMap((t) => t.contributions.map((
|
|
291
|
-
effects: l.flatMap((t) => t.effects.map((
|
|
292
|
-
}, V =
|
|
293
|
-
effects:
|
|
294
|
+
retry: () => P()
|
|
295
|
+
}, F = {
|
|
296
|
+
contributions: l.flatMap((t) => t.contributions.map((n) => ({ feature: t.id, contribution: n }))),
|
|
297
|
+
effects: l.flatMap((t) => t.effects.map((n) => ({ feature: t.id, effect: n })))
|
|
298
|
+
}, V = at({
|
|
299
|
+
effects: F.effects,
|
|
294
300
|
platform: a,
|
|
295
301
|
sessionKey: e.sessionKey,
|
|
296
|
-
onError: (t,
|
|
297
|
-
}),
|
|
298
|
-
async function
|
|
299
|
-
const
|
|
300
|
-
await
|
|
302
|
+
onError: (t, n) => x({ source: "effect", error: t, feature: n.feature, detail: n.effect.id })
|
|
303
|
+
}), pe = new Map(l.map((t) => [t.id, t.messages.map((n) => n.namespace)])), G = (t) => ue(F.contributions.filter(({ contribution: n }) => n.scope === t).flatMap(({ contribution: n }) => n.messages ?? [])), me = G("always"), he = G("authenticated");
|
|
304
|
+
async function ge(t) {
|
|
305
|
+
const n = t.matched.flatMap((b) => [...pe.get(b.meta.feature ?? "") ?? [], ...b.meta.messages ?? []]), f = a.session.state.value.status === "authenticated";
|
|
306
|
+
await A.load(ue([...n, ...me, ...f ? he : []]));
|
|
301
307
|
}
|
|
302
|
-
let
|
|
303
|
-
function
|
|
304
|
-
const
|
|
305
|
-
|
|
308
|
+
let T = null;
|
|
309
|
+
function q(t) {
|
|
310
|
+
const n = t.meta.titleKey, f = T?.documentTitle.value ?? (n && u.te(n) ? u.t(n) : null), b = (e.router?.documentTitle ?? pt)(f, a.config.appName);
|
|
311
|
+
b !== "" && (document.title = b);
|
|
306
312
|
}
|
|
307
|
-
const
|
|
313
|
+
const we = tt({ session: a.session, router: s, i18n: u, destinations: m.destinations }), ve = st(F.contributions, a.session), ye = Qe({ router: s, access: a.access, noAccess: e.noAccess ?? Ye }), $e = fe({
|
|
308
314
|
name: "ApplicationRoot",
|
|
309
315
|
setup() {
|
|
310
316
|
return () => {
|
|
311
317
|
const t = N.value;
|
|
312
|
-
return t.status === "failed" ?
|
|
318
|
+
return t.status === "failed" ? se(ct, { kind: t.kind, onRetry: () => void P() }) : t.status !== "ready" ? null : se(w?.component ?? Ue);
|
|
313
319
|
};
|
|
314
320
|
}
|
|
315
|
-
}),
|
|
316
|
-
|
|
317
|
-
for (const t of l) for (const { key:
|
|
318
|
-
let
|
|
319
|
-
const
|
|
320
|
-
function
|
|
321
|
-
const t =
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
}), p = Ne($e);
|
|
322
|
+
Je(p, a), p.use(h), Te(p, E), T = Ve(p), De(p), Ie(p), e.icons && We(p, ...Array.isArray(e.icons) ? e.icons : [e.icons]), p.provide(ie, I), p.provide(ne, we), p.provide(ae, ve), p.provide(re, ye);
|
|
323
|
+
for (const t of l) for (const { key: n, value: f } of t.contexts) p.provide(n, f);
|
|
324
|
+
let S = !1, J = !1, z = !1, Q = !1;
|
|
325
|
+
const O = [];
|
|
326
|
+
function be() {
|
|
327
|
+
const t = p.config.errorHandler;
|
|
328
|
+
p.config.errorHandler = (y, ke, Y) => {
|
|
329
|
+
x({ source: "vue", error: y, detail: Y }), t?.(y, ke, Y);
|
|
324
330
|
};
|
|
325
|
-
const
|
|
326
|
-
|
|
331
|
+
const n = (y) => x({ source: "unhandledrejection", error: y.reason }), f = (y) => {
|
|
332
|
+
y.error && x({ source: "window", error: y.error });
|
|
327
333
|
};
|
|
328
|
-
window.addEventListener("unhandledrejection",
|
|
329
|
-
window.removeEventListener("unhandledrejection",
|
|
330
|
-
})
|
|
331
|
-
|
|
334
|
+
window.addEventListener("unhandledrejection", n), window.addEventListener("error", f), O.push(() => {
|
|
335
|
+
window.removeEventListener("unhandledrejection", n), window.removeEventListener("error", f);
|
|
336
|
+
});
|
|
337
|
+
const b = l.some((y) => y.holdsExpiredSession);
|
|
338
|
+
a.session.holdExpired(b), O.push(() => a.session.holdExpired(!1)), O.push(
|
|
339
|
+
Ze({
|
|
332
340
|
router: s,
|
|
333
341
|
session: a.session,
|
|
334
342
|
login: c,
|
|
335
|
-
home:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
343
|
+
home: d,
|
|
344
|
+
holdExpired: b,
|
|
345
|
+
prepare: ge,
|
|
346
|
+
afterNavigation: q,
|
|
347
|
+
progress: e.router?.progress ?? w?.progress,
|
|
348
|
+
onError: (y) => x({ source: "router", error: y })
|
|
340
349
|
})
|
|
341
350
|
);
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
() =>
|
|
351
|
+
const C = W();
|
|
352
|
+
C.run(() => B(() => T?.documentTitle.value, () => q(s.currentRoute.value))), O.push(() => C.stop());
|
|
353
|
+
const X = W();
|
|
354
|
+
X.run(
|
|
355
|
+
() => B(
|
|
347
356
|
() => u.locale.value,
|
|
348
|
-
(
|
|
349
|
-
document.documentElement.lang =
|
|
357
|
+
(y) => {
|
|
358
|
+
document.documentElement.lang = y, q(s.currentRoute.value);
|
|
350
359
|
},
|
|
351
360
|
{ immediate: !0 }
|
|
352
361
|
)
|
|
353
|
-
),
|
|
362
|
+
), O.push(() => X.stop());
|
|
354
363
|
}
|
|
355
|
-
const
|
|
356
|
-
N.value = { status: "failed", kind: t, error:
|
|
364
|
+
const _ = (t, n) => {
|
|
365
|
+
N.value = { status: "failed", kind: t, error: n };
|
|
357
366
|
};
|
|
358
367
|
async function U() {
|
|
359
368
|
N.value = { status: "starting" };
|
|
360
369
|
const t = await a.session.restore();
|
|
361
|
-
if (
|
|
362
|
-
if (t.status === "failed") return
|
|
363
|
-
const
|
|
364
|
-
if (!
|
|
365
|
-
if (
|
|
370
|
+
if (S) return;
|
|
371
|
+
if (t.status === "failed") return _("session", t.error);
|
|
372
|
+
const n = await A.loadEssential();
|
|
373
|
+
if (!S) {
|
|
374
|
+
if (n.length > 0) return _("messages", n[0].error);
|
|
366
375
|
try {
|
|
367
376
|
const f = await s.replace(s.options.history.location);
|
|
368
|
-
if (
|
|
369
|
-
if (_e(f)) return
|
|
377
|
+
if (S) return;
|
|
378
|
+
if (_e(f)) return _("startup", f);
|
|
370
379
|
} catch (f) {
|
|
371
|
-
|
|
380
|
+
S || _("startup", f);
|
|
372
381
|
return;
|
|
373
382
|
}
|
|
374
|
-
Q || (
|
|
383
|
+
Q || (p.use(s), Q = !0), N.value = { status: "ready" }, V.start();
|
|
375
384
|
}
|
|
376
385
|
}
|
|
377
|
-
async function
|
|
378
|
-
|
|
386
|
+
async function P() {
|
|
387
|
+
S || N.value.status !== "failed" || (await A.retry(), await U());
|
|
379
388
|
}
|
|
380
389
|
return {
|
|
381
|
-
app:
|
|
390
|
+
app: p,
|
|
382
391
|
router: s,
|
|
383
|
-
i18n:
|
|
392
|
+
i18n: h,
|
|
384
393
|
state: N,
|
|
385
|
-
locale:
|
|
386
|
-
setLocale:
|
|
394
|
+
locale: I.locale,
|
|
395
|
+
setLocale: I.setLocale,
|
|
387
396
|
async mount(t) {
|
|
388
|
-
if (
|
|
397
|
+
if (S) throw new Error("This application was disposed; create a new one with createApplication().");
|
|
389
398
|
if (J) throw new Error("This application is already mounted.");
|
|
390
|
-
J = !0,
|
|
399
|
+
J = !0, be(), await U(), !S && (p.mount(t), z = !0);
|
|
391
400
|
},
|
|
392
|
-
retry:
|
|
401
|
+
retry: P,
|
|
393
402
|
dispose() {
|
|
394
|
-
if (!
|
|
395
|
-
|
|
396
|
-
for (const t of
|
|
403
|
+
if (!S) {
|
|
404
|
+
S = !0, V.dispose(), A.dispose(), z && p.unmount();
|
|
405
|
+
for (const t of O.reverse()) t();
|
|
397
406
|
s.options.history.destroy();
|
|
398
407
|
}
|
|
399
408
|
}
|
|
400
409
|
};
|
|
401
410
|
}
|
|
402
|
-
function
|
|
411
|
+
function dt(e) {
|
|
403
412
|
console.error(`[vue-core] ${e.source}${e.feature ? ` (${e.feature})` : ""}${e.detail ? `: ${e.detail}` : ""}`, e.error);
|
|
404
413
|
}
|
|
405
|
-
function
|
|
406
|
-
return [e, a].filter((
|
|
407
|
-
}
|
|
408
|
-
const pt = 864e5;
|
|
409
|
-
function Ot(e = {}) {
|
|
410
|
-
const { margin: a = 6e4, retryAfter: n = 3e4 } = e;
|
|
411
|
-
return {
|
|
412
|
-
id: "vue-core.keep-session-alive",
|
|
413
|
-
scope: "session",
|
|
414
|
-
start({ signal: i, platform: h, report: y }) {
|
|
415
|
-
let $, k = null;
|
|
416
|
-
const E = () => {
|
|
417
|
-
const p = h.session.state.value;
|
|
418
|
-
return p.status === "authenticated" && p.expiresAt ? p.expiresAt.getTime() - Date.now() - a : null;
|
|
419
|
-
}, x = () => (k ?? (k = (async () => {
|
|
420
|
-
try {
|
|
421
|
-
await e.renew?.(h), await h.session.refresh();
|
|
422
|
-
} catch (p) {
|
|
423
|
-
y(p);
|
|
424
|
-
} finally {
|
|
425
|
-
k = null;
|
|
426
|
-
}
|
|
427
|
-
})()), k);
|
|
428
|
-
function l(p = 0) {
|
|
429
|
-
clearTimeout($);
|
|
430
|
-
const b = E();
|
|
431
|
-
b !== null && !i.aborted && ($ = setTimeout(() => void d(), Math.min(Math.max(b, p), pt)));
|
|
432
|
-
}
|
|
433
|
-
async function d() {
|
|
434
|
-
if (i.aborted || !navigator.onLine) return;
|
|
435
|
-
const p = E();
|
|
436
|
-
if (p !== null) {
|
|
437
|
-
if (p <= 0) {
|
|
438
|
-
if (await x(), i.aborted) return;
|
|
439
|
-
l((E() ?? 1) <= 0 ? n : 0);
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
l();
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
const g = () => {
|
|
446
|
-
document.visibilityState === "visible" && d();
|
|
447
|
-
}, u = () => void d();
|
|
448
|
-
return document.addEventListener("visibilitychange", g), window.addEventListener("online", u), d(), () => {
|
|
449
|
-
clearTimeout($), document.removeEventListener("visibilitychange", g), window.removeEventListener("online", u);
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
};
|
|
414
|
+
function pt(e, a) {
|
|
415
|
+
return [e, a].filter((r) => !!r).join(" · ");
|
|
453
416
|
}
|
|
454
417
|
export {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
418
|
+
ce as ApplicationError,
|
|
419
|
+
Tt as ShellOutlet,
|
|
420
|
+
ie as applicationKey,
|
|
421
|
+
_t as createApplication,
|
|
422
|
+
Bt as defineFeature,
|
|
423
|
+
Vt as keepSessionAlive,
|
|
424
|
+
Dt as provideContext,
|
|
425
|
+
Pt as useApplication
|
|
463
426
|
};
|