zova-module-a-router 5.1.42 → 5.1.44

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.
Files changed (46) hide show
  1. package/dist/.metadata/component/routerViewEmpty.d.ts +1 -1
  2. package/dist/.metadata/index.d.ts +19 -19
  3. package/dist/.metadata/this.d.ts +1 -1
  4. package/dist/bean/bean.router.d.ts +6 -6
  5. package/dist/bean/bean.router.d.ts.map +1 -1
  6. package/dist/bean/bean.routerGuardsBase.d.ts +1 -1
  7. package/dist/bean/sys.router.d.ts +1 -1
  8. package/dist/component/routerViewEmpty/controller.d.ts +1 -1
  9. package/dist/component/routerViewEmpty/controller.d.ts.map +1 -1
  10. package/dist/index.d.ts +3 -3
  11. package/dist/index.js +0 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/lib/index.d.ts +3 -3
  14. package/dist/lib/routeDiscard.d.ts +1 -1
  15. package/dist/lib/routerViewBase.d.ts +2 -2
  16. package/dist/monkey.d.ts +2 -2
  17. package/dist/monkeySys.d.ts +1 -1
  18. package/dist/service/routerGuards.d.ts +2 -2
  19. package/dist/types/index.d.ts +6 -6
  20. package/dist/types/pageMeta.d.ts +1 -1
  21. package/dist/types/routeDiscard.d.ts +1 -1
  22. package/dist/types/router.d.ts +4 -4
  23. package/dist/types/router.d.ts.map +1 -1
  24. package/dist/types/routerView.d.ts +1 -1
  25. package/package.json +2 -2
  26. package/src/.metadata/component/routerViewEmpty.ts +1 -1
  27. package/src/.metadata/index.ts +19 -19
  28. package/src/.metadata/this.ts +1 -1
  29. package/src/bean/bean.router.ts +8 -8
  30. package/src/bean/bean.routerGuardsBase.ts +1 -1
  31. package/src/bean/sys.router.ts +3 -3
  32. package/src/component/routerViewEmpty/controller.tsx +2 -2
  33. package/src/config/config.ts +1 -1
  34. package/src/index.ts +3 -3
  35. package/src/lib/index.ts +3 -3
  36. package/src/lib/routeDiscard.ts +1 -1
  37. package/src/lib/routerViewBase.tsx +3 -3
  38. package/src/lib/utils.ts +1 -1
  39. package/src/monkey.ts +8 -8
  40. package/src/monkeySys.ts +3 -3
  41. package/src/service/routerGuards.ts +3 -3
  42. package/src/types/index.ts +6 -6
  43. package/src/types/pageMeta.ts +1 -1
  44. package/src/types/routeDiscard.ts +1 -1
  45. package/src/types/router.ts +4 -4
  46. package/src/types/routerView.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { ControllerRouterViewEmpty } from '../../component/routerViewEmpty/controller.jsx';
1
+ import { ControllerRouterViewEmpty } from '../../component/routerViewEmpty/controller.tsx';
2
2
  export type ZRouterViewEmptyProps = {
3
3
  controllerRef?: (ref: ControllerRouterViewEmpty) => void;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  /** model: begin */
2
- export * from '../model/pageData.js';
3
- import { IModelOptionsPageData } from '../model/pageData.js';
2
+ export * from '../model/pageData.ts';
3
+ import { IModelOptionsPageData } from '../model/pageData.ts';
4
4
  import 'zova-module-a-model';
5
5
  declare module 'zova-module-a-model' {
6
6
  interface IModelRecord {
@@ -18,7 +18,7 @@ declare module 'zova-module-a-router' {
18
18
  }
19
19
  /** model: end */
20
20
  /** model: begin */
21
- import type { ModelPageData } from '../model/pageData.js';
21
+ import type { ModelPageData } from '../model/pageData.ts';
22
22
  import 'zova';
23
23
  declare module 'zova' {
24
24
  interface IBeanRecordGeneral {
@@ -27,7 +27,7 @@ declare module 'zova' {
27
27
  }
28
28
  /** model: end */
29
29
  /** sys: begin */
30
- export * from '../bean/sys.router.js';
30
+ export * from '../bean/sys.router.ts';
31
31
  import 'zova';
32
32
  declare module 'zova' {
33
33
  }
@@ -41,7 +41,7 @@ declare module 'zova-module-a-router' {
41
41
  }
42
42
  /** sys: end */
43
43
  /** sys: begin */
44
- import type { SysRouter } from '../bean/sys.router.js';
44
+ import type { SysRouter } from '../bean/sys.router.ts';
45
45
  import 'zova';
46
46
  declare module 'zova' {
47
47
  interface IBeanRecordGeneral {
@@ -50,8 +50,8 @@ declare module 'zova' {
50
50
  }
51
51
  /** sys: end */
52
52
  /** bean: begin */
53
- export * from '../bean/bean.router.js';
54
- export * from '../bean/bean.routerGuardsBase.js';
53
+ export * from '../bean/bean.router.ts';
54
+ export * from '../bean/bean.routerGuardsBase.ts';
55
55
  import 'zova';
56
56
  declare module 'zova' {
57
57
  }
@@ -65,8 +65,8 @@ declare module 'zova-module-a-router' {
65
65
  }
66
66
  /** bean: end */
67
67
  /** bean: begin */
68
- import type { BeanRouter } from '../bean/bean.router.js';
69
- import type { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.js';
68
+ import type { BeanRouter } from '../bean/bean.router.ts';
69
+ import type { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.ts';
70
70
  import 'zova';
71
71
  declare module 'zova' {
72
72
  interface IBeanRecordGeneral {
@@ -76,7 +76,7 @@ declare module 'zova' {
76
76
  }
77
77
  /** bean: end */
78
78
  /** service: begin */
79
- export * from '../service/routerGuards.js';
79
+ export * from '../service/routerGuards.ts';
80
80
  import 'zova-module-a-bean';
81
81
  declare module 'zova-module-a-bean' {
82
82
  interface IServiceRecord {
@@ -93,7 +93,7 @@ declare module 'zova-module-a-router' {
93
93
  }
94
94
  /** service: end */
95
95
  /** service: begin */
96
- import type { ServiceRouterGuards } from '../service/routerGuards.js';
96
+ import type { ServiceRouterGuards } from '../service/routerGuards.ts';
97
97
  import 'zova';
98
98
  declare module 'zova' {
99
99
  interface IBeanRecordGeneral {
@@ -102,7 +102,7 @@ declare module 'zova' {
102
102
  }
103
103
  /** service: end */
104
104
  /** controller: begin */
105
- export * from '../component/routerViewEmpty/controller.jsx';
105
+ export * from '../component/routerViewEmpty/controller.tsx';
106
106
  import 'zova';
107
107
  declare module 'zova' {
108
108
  }
@@ -112,7 +112,7 @@ declare module 'zova-module-a-router' {
112
112
  }
113
113
  /** controller: end */
114
114
  /** controller: begin */
115
- import type { ControllerRouterViewEmpty } from '../component/routerViewEmpty/controller.jsx';
115
+ import type { ControllerRouterViewEmpty } from '../component/routerViewEmpty/controller.tsx';
116
116
  import 'zova';
117
117
  declare module 'zova' {
118
118
  interface IBeanRecordLocal {
@@ -121,8 +121,8 @@ declare module 'zova' {
121
121
  }
122
122
  /** controller: end */
123
123
  /** components: begin */
124
- export * from './component/routerViewEmpty.js';
125
- import { ZRouterViewEmpty } from './component/routerViewEmpty.js';
124
+ export * from './component/routerViewEmpty.ts';
125
+ import { ZRouterViewEmpty } from './component/routerViewEmpty.ts';
126
126
  export declare const components: {
127
127
  routerViewEmpty: import("vue").DefineSetupFnComponent<import("zova-module-a-router").ZRouterViewEmptyProps, import("vue").EmitsOptions, import("vue").SlotsType<Record<string, any>>, import("zova-module-a-router").ZRouterViewEmptyProps & ({
128
128
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
@@ -141,14 +141,14 @@ declare module 'zova' {
141
141
  }
142
142
  /** components: end */
143
143
  /** config: begin */
144
- export * from '../config/config.js';
145
- import { config } from '../config/config.js';
144
+ export * from '../config/config.ts';
145
+ import { config } from '../config/config.ts';
146
146
  /** config: end */
147
147
  /** monkey: begin */
148
- export * from '../monkey.js';
148
+ export * from '../monkey.ts';
149
149
  /** monkey: end */
150
150
  /** monkeySys: begin */
151
- export * from '../monkeySys.js';
151
+ export * from '../monkeySys.ts';
152
152
  /** monkeySys: end */
153
153
  /** scope: begin */
154
154
  import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig } from 'zova';
@@ -1,3 +1,3 @@
1
1
  export declare const __ThisModule__ = "a-router";
2
- export { ScopeModuleARouter as ScopeModule } from './index.js';
2
+ export { ScopeModuleARouter as ScopeModule } from './index.ts';
3
3
  //# sourceMappingURL=this.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import type { NavigationGuardWithThis, NavigationHookAfter, RouteLocationNormalizedLoadedGeneric, Router, RouterOptions } from '@cabloy/vue-router';
2
2
  import { BeanBase } from 'zova';
3
- import { BeanRouterViewBase } from '../lib/routerViewBase.js';
4
- import { ModelPageData } from '../model/pageData.js';
5
- import { IPageMeta } from '../types/pageMeta.js';
6
- import { IRouteDiscardItem, TypeRouteDiscardReason } from '../types/routeDiscard.js';
7
- import { TypeErrorListener } from '../types/router.js';
8
- import { SysRouter } from './sys.router.js';
3
+ import { BeanRouterViewBase } from '../lib/routerViewBase.tsx';
4
+ import { ModelPageData } from '../model/pageData.ts';
5
+ import { IPageMeta } from '../types/pageMeta.ts';
6
+ import { IRouteDiscardItem, TypeRouteDiscardReason } from '../types/routeDiscard.ts';
7
+ import { TypeErrorListener } from '../types/router.ts';
8
+ import { SysRouter } from './sys.router.ts';
9
9
  export interface BeanRouterInitOptions {
10
10
  mainRouter?: boolean;
11
11
  routerOptions?: RouterOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"bean.router.d.ts","sourceRoot":"","sources":["../../src/bean/bean.router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,oCAAoC,EACpC,MAAM,EACN,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAO,MAAM,MAAM,CAAC;AAKrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,MAAM,C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vB,eAAe,EAAE,aAAa,CAAC;IAE/B,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,UAAU,YAEb;IAED,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,kBAAkB,CAAC,CAAwC;IAEnE;;;;;;OAMG;IACI,0BAA0B,CAAC,KAAK,EAAE,oCAAoC,GAAG,MAAM;IAK/E,OAAO;IAWd,SAAS,CAAC,WAAW;IAKrB,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM;cAOd,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,GAAG,qBAAqB;IAoB9E,aAAa,CAAC,UAAU,EAAE,kBAAkB;IAS5C,gBAAgB,CAAC,UAAU,EAAE,kBAAkB;IAO/C,kBAAkB,CAChB,MAAM,EAAE,sBAAsB,EAC9B,KAAK,EAAE,SAAS,iBAAiB,EAAE,EACnC,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO,CAAC,IAAI,CAAC;IAQhB,kBAAkB,CAAC,KAAK,EAAE,oCAAoC;IAO9D,qBAAqB,CAAC,KAAK,EAAE,oCAAoC;IAOjE,UAAU,CAAC,KAAK,EAAE,uBAAuB,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI;IAIjE,aAAa,CAAC,KAAK,EAAE,uBAAuB,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI;IAIpE,SAAS,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,IAAI;IAIjD,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,IAAI;IAI/C,WAAW,CAAC,KAAK,EAAE,oCAAoC,EAAE,QAAQ,EAAE,SAAS;CAK7E"}
@@ -1,5 +1,5 @@
1
1
  import { BeanBase } from 'zova';
2
- import type { BeanRouter } from './bean.router.js';
2
+ import type { BeanRouter } from './bean.router.ts';
3
3
  export declare class BeanRouterGuardsBase extends BeanBase {
4
4
  private _eventRouterGuards;
5
5
  protected __init__(): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import type { RouteLocationMatched, RouteLocationNormalizedLoaded, RouteLocationNormalizedLoadedGeneric, RouteLocationResolvedGeneric, Router, RouterOptions } from '@cabloy/vue-router';
2
2
  import { BeanBase } from 'zova';
3
- import { IModuleRouteComponent, IPageNameRecord, IPagePathRecord } from '../types/router.js';
3
+ import { IModuleRouteComponent, IPageNameRecord, IPagePathRecord } from '../types/router.ts';
4
4
  export interface SysRouter extends Router {
5
5
  }
6
6
  export declare class SysRouter extends BeanBase {
@@ -1,4 +1,4 @@
1
- import { BeanRouterViewBase } from '../../lib/routerViewBase.js';
1
+ import { BeanRouterViewBase } from '../../lib/routerViewBase.tsx';
2
2
  export declare class ControllerRouterViewEmpty extends BeanRouterViewBase {
3
3
  protected __init__(): Promise<void>;
4
4
  protected render(): import("vue/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/component/routerViewEmpty/controller.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,qBACa,yBAA0B,SAAQ,kBAAkB;cAC/C,QAAQ;IAExB,SAAS,CAAC,MAAM;CAajB"}
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/component/routerViewEmpty/controller.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,qBACa,yBAA0B,SAAQ,kBAAkB;cAC/C,QAAQ;IAExB,SAAS,CAAC,MAAM;CAajB"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './.metadata/index.js';
2
- export * from './lib/index.js';
3
- export * from './types/index.js';
1
+ export * from './.metadata/index.ts';
2
+ export * from './lib/index.ts';
3
+ export * from './types/index.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1017,8 +1017,6 @@ function _fixReturnTo(app, returnTo) {
1017
1017
  }
1018
1018
  //#endregion
1019
1019
  //#region src/.metadata/index.ts
1020
- /** monkeySys: end */
1021
- /** scope: begin */
1022
1020
  var _dec;
1023
1021
  var _dec2;
1024
1022
  var _class;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["RouterView","h","KeepAlive","Transition","BeanControllerBase","cast","pageRouteKey","routerViewKey","BeanRouterViewBase","__init__","bean","_setBean","$router","addRouterView","__dispose__","removeRouterView","backRoute","_route","forwardRoute","setPageMeta","_pageMeta","prepareRouteMeta","Error","getKeepAliveInclude","getPageHostProviders","undefined","render","slots","default","component","routeMeta","route","vnode","Component","key","componentKey","zovaHostProviders","include","_createVNode","RouterView","h","cast","Controller","pageRouteKey","BeanRouterViewBase","ControllerRouterViewEmpty","_dec","_dec2","__z_BeanInfo","module","_class","__init__","render","slots","default","component","vnode","Component","zovaHostProviders","route","$router","_createVNode"],"sources":["../src/model/pageData.ts","../src/lib/const.ts","../src/lib/utils.ts","../src/types/utils.ts","../src/bean/sys.router.ts","../src/lib/routeDiscard.ts","../src/lib/routerGuardDisposers.ts","../src/bean/bean.router.ts","../src/bean/bean.routerGuardsBase.ts","../src/types/router.ts","../src/service/routerGuards.ts","../src/lib/routerViewBase.tsx","../src/component/routerViewEmpty/controller.tsx","../src/.metadata/component/routerViewEmpty.ts","../src/config/config.ts","../src/monkey.ts","../src/monkeySys.ts","../src/.metadata/index.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanModelBase, Model } from 'zova-module-a-model';\nexport let ModelPageData = (_dec = Model(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class ModelPageData extends BeanModelBase {\n constructor(...args) {\n super(...args);\n this._pageDataInner = void 0;\n this.current = void 0;\n }\n async __init__() {\n if (process.env.SERVER) {\n const pagePath = this.$ssr.state.pagePath;\n if (pagePath) {\n this._pageDataInner = this.getPageData(pagePath);\n this._pageDataInner = this.$ssr.state.pageData;\n this.current = this._pageDataInner;\n }\n } else {\n if (this.$ssr.isRuntimeSsrPreHydration) {\n this.current = this.$ssr.state.pageData;\n } else {\n const route = this.$pageRoute;\n this.current = route ? this.getPageData(route.path) : undefined;\n }\n }\n }\n getPageData(pagePath) {\n return this.$useStateMem({\n queryKey: ['pageData', pagePath]\n });\n }\n}) || _class) || _class);","export const pageRouteKey = '$$pageRoute';\nexport const pageHostKey = '$$pageHost';\nexport const routerViewKey = '$$routerView';","import { routerViewLocationKey } from '@cabloy/vue-router';\nimport { inject } from 'vue';\nimport { pageRouteKey } from './const.js';\nexport function getRouteMatched(route) {\n let match = route.matched.find(item => item.aliasOf);\n if (match) {\n match = match.aliasOf;\n } else {\n match = route.matched[route.matched.length - 1];\n }\n return match;\n}\nexport function getRealRouteName(name) {\n if (!name) return undefined;\n name = String(name);\n if (name.startsWith('$:')) return undefined;\n return name;\n}\nexport function isRouterName(name) {\n return !!name && name.includes(':') && !name.includes('/');\n}\nexport function getPageRoute(ctx) {\n const route = ctx.bean._getBeanFromHost({\n name: pageRouteKey\n });\n return route;\n}\nexport function getCurrentRoute(ctx) {\n const route = ctx.util.instanceScope(() => {\n return inject(routerViewLocationKey);\n });\n return route;\n}\nexport const scrollBehavior = (to, _from, savedPosition) => {\n if (savedPosition) {\n return new Promise(resolve => {\n setTimeout(() => {\n // savedPosition = Object.assign({}, savedPosition, { behavior: 'smooth' });\n resolve(savedPosition);\n }, 100);\n });\n } else if (to.hash) {\n return new Promise(resolve => {\n setTimeout(() => {\n // resolve({ el: to.hash, behavior: 'smooth' });\n resolve({\n el: to.hash\n });\n }, 200);\n });\n } else {\n return {\n left: 0,\n top: 0\n };\n }\n};","export const SymbolRouterHistory = Symbol('SymbolRouterHistory');","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport * as ModuleInfo from '@cabloy/module-info';\nimport { combineParamsAndQuery } from '@cabloy/utils';\nimport { createMemoryHistory, createRouter, createWebHashHistory, createWebHistory } from '@cabloy/vue-router';\nimport { BeanBase, cast, deepExtend, isHttpUrl } from 'zova';\nimport { Sys } from 'zova-module-a-bean';\nimport { getCurrentRoute, getRealRouteName, getRouteMatched, isRouterName } from '../lib/utils.js';\nimport { SymbolRouterHistory } from '../types/utils.js';\nexport let SysRouter = (_dec = Sys(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class SysRouter extends BeanBase {\n constructor(...args) {\n super(...args);\n this._vueRouterSys = void 0;\n this._syntheticLayoutRouteNames = new Set();\n }\n get router() {\n return this._vueRouterSys;\n }\n __get__(prop) {\n return this._vueRouterSys && this._vueRouterSys[prop];\n }\n async __init__() {\n // create router\n this._vueRouterSys = this.createRouter();\n // config.routes\n this._loadConfigRoutes();\n // legacy routes\n this._loadLegacyRoutes();\n }\n createRouter(options) {\n options = Object.assign({}, options);\n // matcher\n if (!options.matcher) {\n options.matcher = this._vueRouterSys?.matcher;\n }\n // routes\n if (!options.routes) {\n if (!this._vueRouterSys) {\n options.routes = [];\n }\n }\n // scrollBehavior\n if (!options.scrollBehavior) {\n options.scrollBehavior = this.scope.config.scrollBehavior;\n }\n // history\n if (!options.history) {\n const createHistory = process.env.SERVER ? createMemoryHistory : this.sys.env.ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory;\n const routeBase = process.env.SERVER || this.sys.env.ROUTER_MODE === 'history' ? this.sys.env.APP_PUBLIC_PATH : undefined;\n options.history = createHistory(routeBase);\n }\n // create\n const router = createRouter(options);\n cast(router).__hasDevtools = true;\n router[SymbolRouterHistory] = options.history;\n return router;\n }\n createAsyncComponent(component) {\n if (typeof component !== 'string') return component;\n return this.sys.meta.component.createAsyncComponent(component);\n }\n isSyntheticLayoutRouteRecord(record) {\n const canonicalRecord = record?.aliasOf ?? record;\n return typeof canonicalRecord?.name === 'string' && this._syntheticLayoutRouteNames.has(canonicalRecord.name);\n }\n getPagePath(path, options, absolute) {\n const query = options?.query;\n const params = this._normalizePageParams(options?.params);\n const pagePath = combineParamsAndQuery(path, {\n params,\n query\n });\n return absolute ? this.sys.util.getAbsoluteUrlFromPagePath(pagePath) : pagePath;\n }\n async resolveRoute(url, check404, checkAliasOf) {\n // url: should not has APP_PUBLIC_PATH prefix when not http url\n const pagePath = isHttpUrl(url) ? this.sys.util.getPagePathFromAbsoluteUrl(url) : url;\n let route = await this.ensureRoute(pagePath);\n if (check404 && route.name === '$:/:catchAll(.*)*') return;\n // aliasOf\n if (checkAliasOf) {\n const matchItem = route.matched.find(item => item.aliasOf);\n if (matchItem) {\n route = matchItem.aliasOf;\n }\n // 404\n if (check404 && route.name === '$:/:catchAll(.*)*') return;\n }\n // ok\n return route;\n }\n checkPathValid(to) {\n const _name = to && typeof to === 'object' ? to.name : undefined;\n const _path = to && typeof to === 'object' ? to.name ?? to.path : to;\n // legacy\n if (this._findLegacyRoute(_name, _path)) return true;\n // general check\n if (!_path) return true;\n const moduleName = ModuleInfo.parseName(_path);\n if (!moduleName) return true;\n return this.sys.meta.module.exists(moduleName);\n }\n checkActiveOfFullPath(fullPath, currentRoute) {\n if (!currentRoute) {\n currentRoute = getCurrentRoute(this.ctx)?.value;\n }\n if (!currentRoute) return false;\n if (currentRoute.fullPath === fullPath) return true;\n if (!currentRoute.matched || currentRoute.matched.length === 0) return false;\n return currentRoute.matched.some(routeAlias => {\n const fullPathAlias = this.getPagePath(routeAlias.path, {\n params: currentRoute.params,\n query: currentRoute.query\n });\n return fullPathAlias === fullPath;\n });\n }\n async ensureRoute(pagePath) {\n // try to resolve, support alias route\n let route = this._vueRouterSys.resolve(pagePath);\n if (route && route.name !== '$:/:catchAll(.*)*') return route;\n // try to load module\n const moduleName = ModuleInfo.parseName(pagePath);\n if (moduleName) {\n if (this.sys.meta.module.exists(moduleName)) {\n const module = this.sys.meta.module.get(moduleName);\n if (!module) {\n await this.sys.meta.module.use(moduleName);\n // try to resolve again\n route = this._vueRouterSys.resolve(pagePath);\n }\n }\n }\n return route;\n }\n\n /** @internal */\n _registerRoutes(module) {\n if (!module.resource.routes) return;\n for (const route of module.resource.routes) {\n this._registerRoute(route, module);\n }\n }\n\n /** @internal */\n _findConfigRoute(name, path) {\n name = this.getRealRouteName(name);\n return name ? this.sys.config.routes.name[name] : this.sys.config.routes.path[path];\n }\n\n /** @internal */\n _findLegacyRoute(name, path) {\n const legacyRoutes = cast(this.sys.meta).legacyRoutes;\n if (!legacyRoutes) return;\n name = this.getRealRouteName(name);\n return legacyRoutes.find(item => {\n return name ? item.name === name : item.path === path;\n });\n }\n getRouteMatched(route) {\n return getRouteMatched(route);\n }\n getRealRouteName(name) {\n return getRealRouteName(name);\n }\n isRouterName(name) {\n return isRouterName(name);\n }\n resolveName(name, options) {\n const params = cast(options)?.params;\n const query = cast(options)?.query;\n return this._resolveNameOrPath(query, query => {\n const route = this.router.resolve({\n name,\n params,\n query\n });\n return route.fullPath;\n });\n }\n getAliasPath(name, options, absolute) {\n const alias = this.sys.config.routes.name[name]?.alias;\n if (!alias) return;\n const params = this._normalizePageParams(cast(options)?.params);\n const query = cast(options)?.query;\n const aliasName = `$alias:${name}`;\n const routeAlias = this._resolveNameOrPath(query, query => {\n const route = this.router.resolve({\n name: this.router.hasRoute(aliasName) ? aliasName : name,\n params,\n query\n });\n return route.fullPath;\n });\n const pagePath = routeAlias.startsWith('/__alias__') ? routeAlias.substring('/__alias__'.length) || '/' : routeAlias;\n return absolute ? this.sys.util.getAbsoluteUrlFromPagePath(pagePath) : pagePath;\n }\n _normalizePageParams(params) {\n const paramsLocale = cast(params)?.locale;\n if (paramsLocale === undefined) return params;\n const localeCurrent = paramsLocale === true ? this.app.meta.locale.current : paramsLocale;\n const locale = localeCurrent === this.sys.config.locale.default ? undefined : localeCurrent;\n return Object.assign({}, params, {\n locale\n });\n }\n _resolveNameOrPath(query, fn) {\n const query1 = {};\n const query2 = [];\n if (query) {\n for (const key in query) {\n const value = query[key];\n if (value && typeof value === 'object') {\n query2.push([key, value]);\n } else {\n query1[key] = value;\n }\n }\n }\n // resolve\n const fullPath = fn(query1);\n // query2\n const query2str = query2.map(([key, value]) => {\n return `${encodeURIComponent(key)}=${encodeURIComponent(JSON.stringify(value))}`;\n }).join('&');\n // join\n if (!query2str) return fullPath;\n const join = Object.keys(query1).length > 0 ? '&' : '?';\n return `${fullPath}${join}${query2str}`;\n }\n _loadConfigRoutes() {\n const routesPath = this.sys.config.routes.path;\n for (const key in routesPath) {\n const route = routesPath[key];\n if (!route) continue;\n this._loadConfigRoute({\n ...route,\n path: key,\n name: `$:${key}`\n });\n }\n const routesName = this.sys.config.routes.name;\n for (const key in routesName) {\n const route = routesName[key];\n if (!route) continue;\n this._loadConfigRoute({\n ...route,\n path: route.path || route.alias,\n name: key\n });\n }\n }\n _loadLegacyRoutes() {\n const legacyRoutes = cast(this.sys.meta).legacyRoutes;\n if (!legacyRoutes) return;\n for (const route of legacyRoutes) {\n this._registerRoute(route);\n }\n }\n _loadConfigRoute(route) {\n this.router.addRoute(route);\n }\n _registerRoute(route, module) {\n // path\n let path;\n if (route.path !== undefined) {\n if (!module || route.meta?.absolute === true) {\n path = route.path;\n } else {\n path = route.path ? `/${module.info.pid}/${module.info.name}/${route.path}` : `/${module.info.pid}/${module.info.name}`;\n }\n }\n // name\n let name;\n if (route.name) {\n if (!module || route.meta?.absolute === true) {\n name = String(route.name);\n } else {\n name = `${module.info.relativeName}:${String(route.name)}`;\n }\n }\n // config route\n const configRoute = name ? this.sys.config.routes.name[name] : this.sys.config.routes.path[path];\n if (configRoute) {\n route = deepExtend({}, route, configRoute);\n }\n // name alias\n if (name && configRoute?.alias) {\n const alias = Array.isArray(configRoute.alias) ? configRoute.alias[0] : configRoute.alias;\n // add extra route\n this.router.addRoute({\n name: `$alias:${name}`,\n path: `/__alias__${alias}`,\n redirect: ''\n });\n }\n // name\n if (!name) {\n name = `$:${path}`;\n }\n // meta\n const meta = route.meta;\n // component\n const component = route.component;\n // layout / routeData\n let layout = meta?.layout;\n let routeData;\n let routeNameParent;\n if (layout === false) {\n routeData = {\n ...route,\n name,\n path,\n component,\n meta\n };\n } else {\n if (layout === undefined || layout === 'default') {\n layout = this.sys.config.layout.component.default;\n } else if (layout === 'empty') {\n layout = this.sys.config.layout.component.empty;\n }\n routeNameParent = `$:${name}`;\n routeData = {\n name: routeNameParent,\n path,\n ...(route.alias ? {\n alias: route.alias\n } : {}),\n component: this.createAsyncComponent(layout),\n children: [{\n ...route,\n name,\n path: '',\n component,\n meta\n }]\n };\n }\n // force delete\n if (this.router.hasRoute(routeNameParent)) {\n this.router.removeRoute(routeNameParent);\n }\n if (this.router.hasRoute(name)) {\n this.router.removeRoute(name);\n }\n // add\n this.router.addRoute(routeData);\n if (routeNameParent) {\n this._syntheticLayoutRouteNames.add(routeNameParent);\n }\n }\n}) || _class) || _class);","export function dispatchRouteDiscard(event, emit, onError) {\n const cleanups = [];\n const items = event.items.map(item => ({\n ...item\n }));\n try {\n emit({\n ...event,\n items,\n waitUntil: cleanup => {\n cleanups.push(cleanup);\n }\n });\n } catch (error) {\n onError(error);\n }\n return Promise.allSettled(cleanups).then(results => {\n for (const result of results) {\n if (result.status === 'rejected') onError(result.reason);\n }\n });\n}","export class RouterGuardDisposers {\n constructor() {\n this._disposers = [];\n this._disposed = false;\n }\n add(disposer) {\n this._disposers.push(disposer);\n return disposer;\n }\n dispose() {\n if (this._disposed) return;\n this._disposed = true;\n const disposers = this._disposers;\n this._disposers = [];\n for (const disposer of disposers) {\n disposer();\n }\n }\n}","var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2;\nfunction _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\nfunction _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\nfunction _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase, Use } from 'zova';\nimport { Bean } from 'zova-module-a-bean';\nimport { dispatchRouteDiscard } from '../lib/routeDiscard.js';\nimport { RouterGuardDisposers } from '../lib/routerGuardDisposers.js';\nimport { ModelPageData } from '../model/pageData.js';\nimport { SysRouter } from './sys.router.js';\nexport let BeanRouter = (_dec = Bean(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec3 = Use(), _dec4 = Reflect.metadata(\"design:type\", typeof SysRouter === \"undefined\" ? Object : SysRouter), _dec5 = Use(), _dec6 = Reflect.metadata(\"design:type\", typeof ModelPageData === \"undefined\" ? Object : ModelPageData), _dec(_class = _dec2(_class = (_class2 = class BeanRouter extends BeanBase {\n constructor(...args) {\n super(...args);\n this._vueRouterApp = void 0;\n this._routerGuardDisposers = new RouterGuardDisposers();\n this._routerViews = [];\n this._disposed = false;\n _initializerDefineProperty(this, \"$$sysRouter\", _descriptor, this);\n _initializerDefineProperty(this, \"$$modelPageData\", _descriptor2, this);\n this._isEmbedded = false;\n this._embeddedView = void 0;\n this._prepareNavigation = void 0;\n }\n // for prepare pageData on server\n\n get router() {\n return this._vueRouterApp;\n }\n get isEmbedded() {\n return this._isEmbedded;\n }\n /**\n * Returns the initial RouterView depth for an embedded page-only host.\n *\n * SysRouter records the synthetic layout parents it creates. The page-only\n * host skips only those exact records; routes registered with\n * `meta.layout: false` still start at depth zero.\n */\n getEmbeddedRouterViewDepth(route) {\n if (this._embeddedView !== 'page') return 0;\n return this.$$sysRouter.isSyntheticLayoutRouteRecord(route.matched[0]) ? 1 : 0;\n }\n dispose() {\n if (this._disposed) return;\n this._disposed = true;\n this._routerGuardDisposers.dispose();\n this._routerViews = [];\n const router = this._vueRouterApp;\n if (router) router.__prepareNavigation = undefined;\n }\n __dispose__() {\n // Router instances can be borrowed through page host providers. Their\n // creator explicitly calls dispose() when the router itself is finished.\n }\n __get__(prop) {\n // SymbolRouter first\n const value = this._vueRouterApp?.[prop];\n if (value !== undefined) return value;\n return this.$$sysRouter?.[prop];\n }\n async __init__(mainRouterOrOptions) {\n const options = typeof mainRouterOrOptions === 'boolean' ? {\n mainRouter: mainRouterOrOptions\n } : mainRouterOrOptions ?? {};\n this._isEmbedded = options.mainRouter === false;\n this._embeddedView = options.embeddedView;\n this._prepareNavigation = options.prepareNavigation;\n // create router\n this._vueRouterApp = this.$$sysRouter.createRouter(options.routerOptions);\n const router = this._vueRouterApp;\n router.__prepareNavigation = this._prepareNavigation;\n if (!options.mainRouter) {\n // emit event\n await this.app.meta.event.emit('a-router:routerGuards', this);\n }\n }\n addRouterView(routerView) {\n this._routerViews.push(routerView);\n if (!this._isEmbedded) return;\n const route = this._vueRouterApp.currentRoute.value;\n if (route?.matched.length > 0) {\n routerView.forwardRoute(route);\n }\n }\n removeRouterView(routerView) {\n const index = this._routerViews.findIndex(item => item === routerView);\n if (index > -1) {\n this._routerViews.splice(index, 1);\n }\n }\n notifyRouteDiscard(reason, items, ownerSelector) {\n return dispatchRouteDiscard({\n router: this,\n reason,\n items,\n ownerSelector\n }, event => this.app.meta.event.emitSync('a-router:routeDiscard', event), () => console.error('Route discard cleanup failed'));\n }\n afterEachBackRoute(route) {\n for (const routerView of this._routerViews) {\n const res = routerView.backRoute(route);\n if (res) break;\n }\n }\n afterEachForwardRoute(route) {\n for (const routerView of this._routerViews) {\n const res = routerView.forwardRoute(route);\n if (res) break;\n }\n }\n beforeEach(guard) {\n return this._routerGuardDisposers.add(this._vueRouterApp.beforeEach(guard));\n }\n beforeResolve(guard) {\n return this._routerGuardDisposers.add(this._vueRouterApp.beforeResolve(guard));\n }\n afterEach(guard) {\n return this._routerGuardDisposers.add(this._vueRouterApp.afterEach(guard));\n }\n onError(handler) {\n return this._routerGuardDisposers.add(this._vueRouterApp.onError(handler));\n }\n setPageMeta(route, pageMeta) {\n for (const routerView of this._routerViews) {\n routerView.setPageMeta(route, pageMeta);\n }\n }\n}, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"$$sysRouter\", [_dec3, _dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"$$modelPageData\", [_dec5, _dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _class2)) || _class) || _class);","var _dec, _dec2, _dec3, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase, Virtual } from 'zova';\nimport { Bean } from 'zova-module-a-bean';\nexport let BeanRouterGuardsBase = (_dec = Bean(), _dec2 = Virtual(), _dec3 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = _dec3(_class = class BeanRouterGuardsBase extends BeanBase {\n constructor(...args) {\n super(...args);\n this._eventRouterGuards = void 0;\n }\n async __init__() {\n this._eventRouterGuards = this.app.meta.event.on('a-router:routerGuards', async (router, next) => {\n this.onRouterGuards(router);\n return await next();\n });\n }\n __dispose__() {\n this.dispose();\n }\n dispose() {\n if (this._eventRouterGuards) {\n this._eventRouterGuards();\n }\n }\n onRouterGuards(_router) {}\n}) || _class) || _class) || _class);","import 'vue-router';\nexport let NavigationType = /*#__PURE__*/function (NavigationType) {\n NavigationType[\"pop\"] = \"pop\";\n NavigationType[\"push\"] = \"push\";\n return NavigationType;\n}({});\nexport let NavigationDirection = /*#__PURE__*/function (NavigationDirection) {\n NavigationDirection[\"back\"] = \"back\";\n NavigationDirection[\"forward\"] = \"forward\";\n NavigationDirection[\"unknown\"] = \"\";\n return NavigationDirection;\n}({});","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport * as ModuleInfo from '@cabloy/module-info';\nimport { Service } from 'zova-module-a-bean';\nimport { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.js';\nimport { NavigationDirection, NavigationType } from '../types/router.js';\nexport let ServiceRouterGuards = (_dec = Service(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class ServiceRouterGuards extends BeanRouterGuardsBase {\n onRouterGuards(router) {\n const self = this;\n router.beforeEach(async to => {\n // match path\n const aliasMatch = to.matched.find(item => item.aliasOf);\n let match = aliasMatch;\n if (aliasMatch) {\n match = aliasMatch.aliasOf;\n // A path-config alias can initially resolve to a componentless placeholder\n // before its module registers the real layout route. Reload the same path\n // after loading so the router resolves the newly registered component.\n if (!match?.components || Object.keys(match.components).length === 0) {\n const resLoadModule = await this._forceLoadModule(router, match?.name, match?.path);\n if (resLoadModule && resLoadModule !== true) return resLoadModule;\n return to.fullPath;\n }\n } else {\n match = to.matched[to.matched.length - 1];\n // prepareCheck\n if (!(await this._prepareCheck(match?.path, to.path))) {\n // redirect again\n return to.fullPath;\n }\n // legacy\n const legacyRoute = router._findLegacyRoute(match?.name, match?.path);\n if (legacyRoute) return;\n // alias\n const configRoute = router._findConfigRoute(match?.name, match?.path);\n const alias = configRoute?.alias;\n if (alias) {\n // force load module\n const resLoadModule = await this._forceLoadModule(router, match?.name, match?.path);\n if (resLoadModule && resLoadModule !== true) return resLoadModule;\n if (resLoadModule === false) return to.fullPath;\n const name = router.getRealRouteName(match?.name);\n if (name) {\n const routeAlias = router.getAliasPath(name, {\n params: to.params,\n query: to.query\n });\n return routeAlias || '/';\n } else {\n return {\n path: Array.isArray(alias) ? alias[0] : alias,\n params: to.params,\n query: to.query\n };\n }\n }\n }\n // force load module\n const resLoadModule = await this._forceLoadModule(router, match?.name, match?.path);\n if (resLoadModule === true) return;\n if (resLoadModule) return resLoadModule;\n // redirect again\n return to.fullPath;\n });\n router.afterEach(function (to, from, error) {\n if (error) return;\n const info = arguments[3];\n // from\n if (from.fullPath !== to.fullPath) {\n self._afterEachFrom(router, from, info);\n }\n // to\n router.afterEachForwardRoute(to);\n });\n }\n _afterEachFrom(router, from, info) {\n if (!info) return;\n const isBack = info.type === NavigationType.pop && info.direction === NavigationDirection.back;\n const needBack = isBack || info.type === NavigationType.push && info.replace;\n if (!needBack) return;\n if (isBack) {\n // afterEach is synchronous; listeners register and invalidate outgoing work immediately.\n void router.notifyRouteDiscard('back', [{\n fullPath: from.fullPath\n }]);\n }\n router.afterEachBackRoute(from);\n }\n\n // if 404 then check if module loaded\n async _prepareCheck(pathMatched, pathTo) {\n if (pathMatched === '/:catchAll(.*)*') {\n const moduleInfo = ModuleInfo.parseInfo(ModuleInfo.parseName(pathTo));\n if (moduleInfo && this.app.meta.module.exists(moduleInfo.relativeName) && !this.app.meta.module.get(moduleInfo.relativeName, false)) {\n // use module\n await this.app.meta.module.use(moduleInfo.relativeName);\n // redirect again\n return false;\n }\n }\n return true;\n }\n async _forceLoadModule(router, name, path) {\n const nameOrPath = router.getRealRouteName(name) || path;\n // module info\n const moduleInfo = ModuleInfo.parseInfo(ModuleInfo.parseName(nameOrPath));\n if (!moduleInfo) {\n // donothing\n return true;\n }\n const moduleName = moduleInfo.relativeName;\n // check if exists\n if (!this.app.meta.module.exists(moduleName)) return '/404';\n // check if loaded\n const module = this.app.meta.module.get(moduleName, false);\n if (module) return true;\n // use module\n await this.app.meta.module.use(moduleName);\n // means need load\n return false;\n }\n}) || _class) || _class);","import type { RouteLocationNormalizedLoadedGeneric } from '@cabloy/vue-router';\n\nimport { RouterView } from '@cabloy/vue-router';\nimport { h, KeepAlive, Transition } from 'vue';\nimport { BeanControllerBase, cast } from 'zova';\n\nimport type { IPageMeta } from '../types/pageMeta.js';\nimport type { IRouterViewSlotParams, IRouteViewRouteMeta } from '../types/routerView.js';\n\nimport { pageRouteKey, routerViewKey } from './const.js';\n\nexport interface IRouterViewPropsBase {}\n\nexport class BeanRouterViewBase extends BeanControllerBase implements IRouterViewPropsBase {\n protected async __init__() {\n this.bean._setBean(routerViewKey, this);\n this.$router.addRouterView(this);\n }\n\n protected __dispose__() {\n this.$router.removeRouterView(this);\n }\n\n public backRoute(_route: RouteLocationNormalizedLoadedGeneric) {\n return false;\n }\n\n public forwardRoute(_route: RouteLocationNormalizedLoadedGeneric) {\n return false;\n }\n\n public setPageMeta(_route: RouteLocationNormalizedLoadedGeneric, _pageMeta: IPageMeta) {}\n\n protected prepareRouteMeta(_route: RouteLocationNormalizedLoadedGeneric): IRouteViewRouteMeta {\n throw new Error('Not Implemented');\n }\n\n protected getKeepAliveInclude(): string[] | undefined {\n throw new Error('Not Implemented');\n }\n\n protected getPageHostProviders(): Record<string, unknown> | undefined {\n return undefined;\n }\n\n protected render() {\n const slots = {\n default: (component: IRouterViewSlotParams) => {\n const routeMeta = this.prepareRouteMeta(component.route);\n return h(Transition, null, {\n default: () => {\n const vnode = h(component.Component as any, {\n key: routeMeta.componentKey,\n route: component.route,\n });\n cast(vnode).zovaHostProviders = {\n ...this.getPageHostProviders(),\n [pageRouteKey]: component.route,\n 'a-router.bean.router': this.$router,\n };\n return [\n h(\n KeepAlive,\n {\n include: this.getKeepAliveInclude(),\n },\n [vnode],\n ),\n ];\n },\n });\n },\n };\n return <RouterView v-slots={slots}></RouterView>;\n }\n}\n","import { RouterView } from '@cabloy/vue-router';\nimport { h } from 'vue';\nimport { cast } from 'zova';\nimport { Controller } from 'zova-module-a-bean';\n\nimport { pageRouteKey } from '../../lib/const.js';\nimport { BeanRouterViewBase } from '../../lib/routerViewBase.js';\n\n@Controller()\nexport class ControllerRouterViewEmpty extends BeanRouterViewBase {\n protected async __init__() {}\n\n protected render() {\n const slots = {\n default: component => {\n const vnode = h(component.Component);\n cast(vnode).zovaHostProviders = {\n [pageRouteKey]: component.route,\n 'a-router.bean.router': this.$router,\n };\n return vnode;\n },\n };\n return <RouterView v-slots={slots}></RouterView>;\n }\n}\n","import { defineComponent } from 'vue';\nimport { prepareComponentOptions, useController } from 'zova';\nimport { ControllerRouterViewEmpty } from '../../component/routerViewEmpty/controller.jsx';\nexport const ZRouterViewEmpty = defineComponent(_props => {\n useController(ControllerRouterViewEmpty, undefined, undefined);\n return () => {};\n}, prepareComponentOptions());","import { scrollBehavior } from '../lib/utils.js';\nexport const config = _sys => {\n return {\n scrollBehavior\n };\n};","import * as ModuleInfo from '@cabloy/module-info';\nimport { onActivated, onBeforeUnmount, onDeactivated, shallowReactive } from 'vue';\nimport { BeanControllerPageBase, BeanSimple, cast, useComputed } from 'zova';\nimport { pageHostKey, routerViewKey } from './lib/const.js';\nimport { getCurrentRoute, getPageRoute, getRealRouteName, getRouteMatched } from './lib/utils.js';\nimport { ServiceRouterGuards } from './service/routerGuards.js';\nimport { SymbolRouterHistory } from './types/utils.js';\nexport class Monkey extends BeanSimple {\n constructor(...args) {\n super(...args);\n this._beanRouter = void 0;\n this._sysRouter = void 0;\n this._pageHosts = new WeakMap();\n this.serviceRouterGuards = void 0;\n }\n async _getSysRouter() {\n if (!this._sysRouter) {\n this._sysRouter = await this.sys.bean._getBean('a-router.sys.router', false);\n }\n return this._sysRouter;\n }\n async getBeanRouter() {\n if (!this._beanRouter) {\n // markReactive: true\n this._beanRouter = this.app.meta.$router = await this.bean._getBean('a-router.bean.router', true, true);\n }\n return this._beanRouter;\n }\n async appInitialize() {\n if (process.env.SERVER) {\n const pagePathFull = this.app.$getCurrentPagePath();\n if (pagePathFull) {\n const sysRouter = await this._getSysRouter();\n const route = await sysRouter.resolveRoute(pagePathFull, true, false);\n if (route) {\n // ssr profile\n this.ctx.meta.$ssr._setProfile(route.meta.ssrProfile, route.meta.ssrProfileOptions, route.meta.locale);\n // locale\n this.ctx.meta.$ssr._setLocale(route);\n }\n }\n }\n // router\n this.serviceRouterGuards = await this.bean._newBean(ServiceRouterGuards, false);\n // ssr errorHandler\n if (process.env.CLIENT) {\n this._ssrErrorHandler();\n }\n }\n async appInitialized() {\n const beanRouter = await this.getBeanRouter();\n // emit event\n await this.app.meta.event.emit('a-router:routerGuards', beanRouter);\n }\n appClose() {\n if (this.serviceRouterGuards) {\n this.serviceRouterGuards.dispose();\n }\n this._beanRouter?.dispose();\n }\n async appReady() {\n const beanRouter = await this.getBeanRouter();\n // pagePath\n if (process.env.CLIENT && this.ctx.meta.$ssr.isRuntimeSsrPreHydration) {\n const pagePathFull = this.ctx.meta.$ssr.state.pagePathFull;\n if (pagePathFull) {\n const routerHistory = beanRouter.router[SymbolRouterHistory];\n routerHistory.push(pagePathFull);\n }\n }\n // use router\n this.app.vue.use(beanRouter);\n // ssr\n if (process.env.SERVER) {\n // push\n const pagePath = this.app.$getCurrentPagePath();\n beanRouter.push(pagePath);\n await beanRouter.isReady();\n } else if (process.env.CLIENT && this.ctx.meta.$ssr.isRuntimeSsrPreHydration) {\n await beanRouter.isReady();\n }\n }\n async beanInit(bean, beanInstance) {\n bean.defineProperty(beanInstance, '$router', {\n enumerable: false,\n configurable: true,\n get() {\n return bean._getBeanFromHost('a-router.bean.router');\n }\n });\n bean.defineProperty(beanInstance, '$routerView', {\n enumerable: false,\n configurable: true,\n get() {\n return bean._getBeanFromHost({\n name: routerViewKey\n });\n }\n });\n bean.defineProperty(beanInstance, '$pageRoute', {\n enumerable: false,\n configurable: true,\n get() {\n return useComputed(() => {\n return getPageRoute(cast(bean).ctx);\n });\n }\n });\n bean.defineProperty(beanInstance, '$pageHost', {\n enumerable: false,\n configurable: true,\n get() {\n return bean._getBeanFromHost({\n name: pageHostKey\n }) ?? undefined;\n }\n });\n bean.defineProperty(beanInstance, '$currentRoute', {\n enumerable: false,\n configurable: true,\n get() {\n return useComputed(() => {\n return getCurrentRoute(cast(bean).ctx);\n });\n }\n });\n }\n controllerDataPrepare(controllerData, ctx) {\n if (controllerData.context.page) {\n this._initPageHost(ctx);\n }\n controllerData.context.route = getPageRoute(ctx);\n }\n _initPageHost(ctx) {\n const existing = this._pageHosts.get(ctx);\n if (existing) {\n ctx.bean._setBean(pageHostKey, existing);\n return;\n }\n const pageHost = shallowReactive({\n active: true\n });\n this._pageHosts.set(ctx, pageHost);\n ctx.bean._setBean(pageHostKey, pageHost);\n if (!process.env.CLIENT) return;\n ctx.util.instanceScope(() => {\n onActivated(() => {\n pageHost.active = true;\n });\n onDeactivated(() => {\n pageHost.active = false;\n });\n onBeforeUnmount(() => {\n pageHost.active = false;\n });\n });\n }\n controllerDataInit(controllerData, controller) {\n // only for controller page\n if (!(controller instanceof BeanControllerPageBase)) return;\n const route = controllerData.context.route;\n this._initControllerRoute(route, controller);\n }\n controllerDataUpdate(controller) {\n // only for controller page\n if (!(controller instanceof BeanControllerPageBase)) return;\n const route = getPageRoute(cast(cast(controller).ctx));\n this._initControllerRoute(route, controller);\n }\n _initControllerRoute(route, controller) {\n if (!route) return;\n const routeMatched = getRouteMatched(route);\n if (!routeMatched) return;\n // check if the same\n if (controller.$routeMatched && !this._checkIfRouteSame(routeMatched, controller.$routeMatched)) return;\n // check if changed\n const changed = !controller.$route || controller.$route.fullPath !== route.fullPath;\n if (!changed) return;\n // update $params/$query\n const routeName = getRealRouteName(routeMatched.name);\n const schemaKey = routeName || String(routeMatched.path);\n let schemas;\n const moduleInfo = ModuleInfo.parseInfo(ModuleInfo.parseName(schemaKey));\n if (!moduleInfo) {\n // do nothing\n return;\n }\n if (!this.app.meta.module.exists(moduleInfo.relativeName)) {\n // do nothing\n return;\n }\n const module = this.app.meta.module.get(moduleInfo.relativeName, false);\n if (!module) {\n void this.app.meta.module.use(moduleInfo.relativeName).then(() => {\n if (cast(controller).ctx.disposed) return;\n const currentRoute = getPageRoute(cast(cast(controller).ctx));\n if (!currentRoute || currentRoute.fullPath !== route.fullPath) return;\n this._initControllerRoute(currentRoute, controller);\n }).catch(err => {\n console.error('failed to load route module', moduleInfo.relativeName, err);\n });\n return;\n }\n controller.$route = route;\n controller.$routeMatched = routeMatched;\n if (routeName) {\n schemas = module.resource.pageNameSchemas?.[schemaKey];\n } else {\n schemas = module.resource.pagePathSchemas?.[schemaKey];\n }\n if (schemas?.params) {\n const params = schemas.params.parse(route.params);\n if (!controller.$params) {\n controller.$params = process.env.SERVER ? params : shallowReactive(params);\n } else {\n // hold the same $params ref\n Object.assign(controller.$params, params);\n }\n }\n if (schemas?.query) {\n const query = schemas.query.parse(route.query);\n if (!controller.$query) {\n controller.$query = process.env.SERVER ? query : shallowReactive(query);\n } else {\n // hold the same $query ref\n Object.assign(controller.$query, query);\n }\n }\n }\n _checkIfRouteSame(route1, route2) {\n return route1.name && route1.name === route2.name || route1.path === route2.path;\n }\n _ssrErrorHandler() {\n if (!process.env.CLIENT) return;\n this.app.meta.event.on('app:errorHandler', (data, next) => {\n if (_isLoadErrorHandledClient(data)) {\n data.load.disposition = 'handled';\n }\n const err = next();\n if (!err || !(err instanceof Error)) return err;\n return this._errorHandlerDefaultClient(err, data);\n });\n }\n _errorHandlerDefaultClient(err, _data) {\n if (!process.env.CLIENT) return err;\n // client\n if ([301, 302].includes(Number(err.code))) {\n this.app.$gotoPage(err.pagePath);\n return undefined;\n }\n // COMPONENT_UNMOUNTED\n if (err.code === 600) {\n // do nothing\n return undefined;\n }\n // 401\n if (err.code === 401) {\n this.app.$gotoLogin();\n return undefined;\n }\n // not handled\n return err;\n }\n}\nfunction _isLoadErrorHandledClient(data) {\n if (data.load?.kind !== 'controller-load') return false;\n return [301, 302, 401, 600].includes(Number(data.err.code));\n}","import { BeanSimple, cast, isHttpUrl } from 'zova';\nexport class MonkeySys extends BeanSimple {\n constructor(moduleSelf) {\n super();\n this._moduleSelf = void 0;\n this._sysRouter = void 0;\n this._moduleSelf = moduleSelf;\n }\n async getSysRouter() {\n if (!this._sysRouter) {\n this._sysRouter = await this.sys.bean._getBean('a-router.sys.router', false);\n }\n return this._sysRouter;\n }\n async moduleLoading(module) {\n if (this._moduleSelf === module) return;\n if (!module.resource.routes) return;\n const sysRouter = await this.getSysRouter();\n sysRouter._registerRoutes(module);\n }\n async moduleLoaded(_module) {}\n async configLoaded(_module, _config) {}\n sysApplicationInitialize(app) {\n app.$redirect = (pagePath, status) => {\n const error = new Error();\n error.code = status ?? 302;\n if (isHttpUrl(pagePath)) {\n error.pagePath = pagePath;\n error.url = pagePath;\n } else {\n error.pagePath = pagePath;\n error.url = app.sys.util.getAbsoluteUrlFromPagePath(pagePath, true);\n }\n error.message = process.env.SERVER ? error.url : error.pagePath;\n throw error;\n };\n app.$getPagePath = (pagePath, options) => {\n const query = {\n ...options?.query\n };\n // returnTo\n if (options?.returnTo) {\n const returnTo = typeof options.returnTo === 'string' ? options.returnTo : app.$getCurrentPagePath();\n if (returnTo !== app.$getPagePathHome()) {\n query[app.sys.env.ROUTER_KEY_RETURNTO] = returnTo;\n }\n }\n return app.meta.$router.getPagePath(pagePath, {\n params: options?.params,\n query\n });\n };\n app.$getPagePathLogin = (returnTo, cause) => {\n const query = {};\n if (cause) {\n query.cause = cause;\n }\n const returnTo2 = _fixReturnTo(app, returnTo);\n return app.$getPagePath(app.sys.env.ROUTER_PAGE_LOGIN, {\n query,\n returnTo: returnTo2\n });\n };\n app.$getPagePathAccessDenied = () => {\n return app.$getPagePath('/home/base/errorAccessDenied');\n };\n app.$gotoPage = (pagePath, options) => {\n pagePath = app.$getPagePath(pagePath, options);\n // redirect\n if (process.env.SERVER || options?.forceRedirect) {\n return app.$redirect(pagePath);\n }\n // replace\n if (isHttpUrl(pagePath)) {\n window.location[options?.replace ? 'replace' : 'assign'](pagePath);\n } else {\n return app.meta.$router[options?.replace ? 'replace' : 'push'](pagePath);\n }\n };\n app.$gotoHome = options => {\n const pagePath = app.$getPagePathHome(options);\n return app.$gotoPage(pagePath, {\n ...options,\n params: undefined\n });\n };\n app.$gotoLogin = (returnTo, cause) => {\n const returnTo2 = _fixReturnTo(app, returnTo);\n if (!returnTo2 && cast(app.meta.$router.currentRoute)?.path === app.sys.env.ROUTER_PAGE_LOGIN) {\n return;\n }\n const pagePath = app.$getPagePathLogin(returnTo2, cause);\n return app.$gotoPage(pagePath);\n };\n app.$gotoAccessDenied = () => {\n const pagePath = app.$getPagePathAccessDenied();\n if (cast(app.meta.$router.currentRoute)?.path === pagePath) return;\n return app.$gotoPage(pagePath, {\n replace: true\n });\n };\n app.$gotoReturnTo = returnTo => {\n const pagePath = app.$getReturnTo(returnTo);\n return app.$gotoPage(pagePath, {\n replace: true\n });\n };\n app.$getReturnTo = returnTo => {\n // not use ??\n const pagePath = returnTo || cast(app.meta.$router.currentRoute)?.query?.[app.sys.env.ROUTER_KEY_RETURNTO] || app.$getPagePathHome();\n return pagePath;\n };\n app.$getCurrentPagePath = () => {\n if (process.env.SERVER) {\n return app.ctx.meta.$ssr.state.pagePathFull ?? app.sys.util.getPagePathFromAbsoluteUrl(app.ctx.meta.$ssr.context.req.url);\n }\n return cast(app.meta.$router.currentRoute)?.fullPath;\n };\n app.$getPagePathHome = options => {\n let params = options?.params;\n if (params?.locale === undefined) {\n params = Object.assign({}, params, {\n locale: true\n });\n }\n // not handle options?.query\n return app.meta.$router.getPagePath(app.sys.env.ROUTER_PAGE_HOME, {\n params\n });\n };\n }\n}\nfunction _fixReturnTo(app, returnTo) {\n const returnTo2 = returnTo === false ? false : typeof returnTo === 'string' ? returnTo : app.$getCurrentPagePath();\n return returnTo2 === app.sys.env.ROUTER_PAGE_LOGIN ? false : returnTo2;\n}","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** model: begin */\nexport * from '../model/pageData.js';\nimport 'zova-module-a-model';\n/** model: end */\n/** model: begin */\n\nimport 'zova';\n/** model: end */\n/** sys: begin */\nexport * from '../bean/sys.router.js';\nimport 'zova';\n/** sys: end */\n/** sys: begin */\n\nimport 'zova';\n/** sys: end */\n/** bean: begin */\nexport * from '../bean/bean.router.js';\nexport * from '../bean/bean.routerGuardsBase.js';\nimport 'zova';\n/** bean: end */\n/** bean: begin */\n\nimport 'zova';\n/** bean: end */\n/** service: begin */\nexport * from '../service/routerGuards.js';\nimport 'zova-module-a-bean';\n/** service: end */\n/** service: begin */\n\nimport 'zova';\n/** service: end */\n/** controller: begin */\nexport * from '../component/routerViewEmpty/controller.jsx';\nimport 'zova';\n/** controller: end */\n/** controller: begin */\n\nimport 'zova';\n/** controller: end */\n\n/** components: begin */\nexport * from './component/routerViewEmpty.js';\nimport { ZRouterViewEmpty } from './component/routerViewEmpty.js';\nexport const components = {\n 'routerViewEmpty': ZRouterViewEmpty\n};\nimport 'zova';\n/** components: end */\n/** config: begin */\nexport * from '../config/config.js';\n/** config: end */\n/** monkey: begin */\nexport * from '../monkey.js';\n/** monkey: end */\n/** monkeySys: begin */\nexport * from '../monkeySys.js';\n/** monkeySys: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleARouter = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class ScopeModuleARouter extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */"],"mappings":";;;;;;;;;AAAA,IAAI;AAAM,IAAA;AAAO,IAAA;AAGjB,IAAW,iBAAiB,SAAO,MAAM,GAAG,UAAQ,SAAa,EAC/D,QAAQ,WACV,CAAC,GAAG,OAAK,WAAS,QAAM,WAAS,MAAM,sBAAsB,cAAc;CACzE,YAAY,GAAG,MAAM;EACnB,MAAM,GAAG,IAAI;EACb,KAAK,iBAAiB,KAAK;EAC3B,KAAK,UAAU,KAAK;CACtB;CACA,MAAM,WAAW;EACf,IAAI,QAAQ,IAAI,QAAQ;GACtB,MAAM,WAAW,KAAK,KAAK,MAAM;GACjC,IAAI,UAAU;IACZ,KAAK,iBAAiB,KAAK,YAAY,QAAQ;IAC/C,KAAK,iBAAiB,KAAK,KAAK,MAAM;IACtC,KAAK,UAAU,KAAK;GACtB;EACF,OACE,IAAI,KAAK,KAAK,0BACZ,KAAK,UAAU,KAAK,KAAK,MAAM;OAC1B;GACL,MAA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OAAO,OAAO,CAAC,GAAG,QAAQ,EACjC,QAAQ,KACV,CAAC;GAGH,OAAO,IAAI,KAAK,QAAQ,YAAY,IAAI,IAAI,IAAI,kBAAkB,EAChE,OACF,CAAC;EACH;CACF;AACF;AACA,SAAS,aAAa,KAAK,UAAU;CACnC,MAAM,YAAY,aAAa,QAAQ,QAAQ,OAAO,aAAa,WAAW,WAAW,IAAI,oBAAoB;CACjH,OAAO,cAAc,IAAI,IAAI,IAAI,oBAAoB,QAAQ;AAC/D;;;;;ACvIA,IAAI;AAAM,IAAA;AAAO,IAAA;AAgDjB,IAAa,aAAa,EACxB,mBAAmB,iBACrB;AAeA,IAAW,sBAAsB,OAAO,MAAM,GAAG,QAAQ,SAAa,EACpE,QAAQ,WACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,2BAA2B,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK"}
1
+ {"version":3,"file":"index.js","names":["_dec","_dec2","_class","__z_BeanInfo","_dec","_dec2","_class","__z_BeanInfo","_dec","_dec2","_dec3","_class","__z_BeanInfo","_dec","_dec2","_class","__z_BeanInfo","_dec","_dec2","_class","__z_BeanInfo","RouterView","h","KeepAlive","Transition","BeanControllerBase","cast","pageRouteKey","routerViewKey","BeanRouterViewBase","__init__","bean","_setBean","$router","addRouterView","__dispose__","removeRouterView","backRoute","_route","forwardRoute","setPageMeta","_pageMeta","prepareRouteMeta","Error","getKeepAliveInclude","getPageHostProviders","undefined","render","slots","default","component","routeMeta","route","vnode","Component","key","componentKey","zovaHostProviders","include","_createVNode","_createVNode","RouterView","h","cast","Controller","pageRouteKey","BeanRouterViewBase","ControllerRouterViewEmpty","_dec","_dec2","__z_BeanInfo","module","_class","__init__","render","slots","default","component","vnode","Component","zovaHostProviders","route","$router","_createVNode","_dec","_dec2","_class","__z_BeanInfo","_createVNode","__z_BeanInfo"],"sources":["../src/model/pageData.ts","../src/lib/const.ts","../src/lib/utils.ts","../src/types/utils.ts","../src/bean/sys.router.ts","../src/lib/routeDiscard.ts","../src/lib/routerGuardDisposers.ts","../src/bean/bean.router.ts","../src/bean/bean.routerGuardsBase.ts","../src/types/router.ts","../src/service/routerGuards.ts","../src/lib/routerViewBase.tsx","../src/component/routerViewEmpty/controller.tsx","../src/.metadata/component/routerViewEmpty.ts","../src/config/config.ts","../src/monkey.ts","../src/monkeySys.ts","../src/.metadata/index.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanModelBase, Model } from 'zova-module-a-model';\nexport let ModelPageData = (_dec = Model(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class ModelPageData extends BeanModelBase {\n constructor(...args) {\n super(...args);\n this._pageDataInner = void 0;\n this.current = void 0;\n }\n async __init__() {\n if (process.env.SERVER) {\n const pagePath = this.$ssr.state.pagePath;\n if (pagePath) {\n this._pageDataInner = this.getPageData(pagePath);\n this._pageDataInner = this.$ssr.state.pageData;\n this.current = this._pageDataInner;\n }\n } else {\n if (this.$ssr.isRuntimeSsrPreHydration) {\n this.current = this.$ssr.state.pageData;\n } else {\n const route = this.$pageRoute;\n this.current = route ? this.getPageData(route.path) : undefined;\n }\n }\n }\n getPageData(pagePath) {\n return this.$useStateMem({\n queryKey: ['pageData', pagePath]\n });\n }\n}) || _class) || _class);","export const pageRouteKey = '$$pageRoute';\nexport const pageHostKey = '$$pageHost';\nexport const routerViewKey = '$$routerView';","import { routerViewLocationKey } from '@cabloy/vue-router';\nimport { inject } from 'vue';\nimport { pageRouteKey } from './const.ts';\nexport function getRouteMatched(route) {\n let match = route.matched.find(item => item.aliasOf);\n if (match) {\n match = match.aliasOf;\n } else {\n match = route.matched[route.matched.length - 1];\n }\n return match;\n}\nexport function getRealRouteName(name) {\n if (!name) return undefined;\n name = String(name);\n if (name.startsWith('$:')) return undefined;\n return name;\n}\nexport function isRouterName(name) {\n return !!name && name.includes(':') && !name.includes('/');\n}\nexport function getPageRoute(ctx) {\n const route = ctx.bean._getBeanFromHost({\n name: pageRouteKey\n });\n return route;\n}\nexport function getCurrentRoute(ctx) {\n const route = ctx.util.instanceScope(() => {\n return inject(routerViewLocationKey);\n });\n return route;\n}\nexport const scrollBehavior = (to, _from, savedPosition) => {\n if (savedPosition) {\n return new Promise(resolve => {\n setTimeout(() => {\n // savedPosition = Object.assign({}, savedPosition, { behavior: 'smooth' });\n resolve(savedPosition);\n }, 100);\n });\n } else if (to.hash) {\n return new Promise(resolve => {\n setTimeout(() => {\n // resolve({ el: to.hash, behavior: 'smooth' });\n resolve({\n el: to.hash\n });\n }, 200);\n });\n } else {\n return {\n left: 0,\n top: 0\n };\n }\n};","export const SymbolRouterHistory = Symbol('SymbolRouterHistory');","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport * as ModuleInfo from '@cabloy/module-info';\nimport { combineParamsAndQuery } from '@cabloy/utils';\nimport { createMemoryHistory, createRouter, createWebHashHistory, createWebHistory } from '@cabloy/vue-router';\nimport { BeanBase, cast, deepExtend, isHttpUrl } from 'zova';\nimport { Sys } from 'zova-module-a-bean';\nimport { getCurrentRoute, getRealRouteName, getRouteMatched, isRouterName } from '../lib/utils.ts';\nimport { SymbolRouterHistory } from '../types/utils.ts';\nexport let SysRouter = (_dec = Sys(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class SysRouter extends BeanBase {\n constructor(...args) {\n super(...args);\n this._vueRouterSys = void 0;\n this._syntheticLayoutRouteNames = new Set();\n }\n get router() {\n return this._vueRouterSys;\n }\n __get__(prop) {\n return this._vueRouterSys && this._vueRouterSys[prop];\n }\n async __init__() {\n // create router\n this._vueRouterSys = this.createRouter();\n // config.routes\n this._loadConfigRoutes();\n // legacy routes\n this._loadLegacyRoutes();\n }\n createRouter(options) {\n options = Object.assign({}, options);\n // matcher\n if (!options.matcher) {\n options.matcher = this._vueRouterSys?.matcher;\n }\n // routes\n if (!options.routes) {\n if (!this._vueRouterSys) {\n options.routes = [];\n }\n }\n // scrollBehavior\n if (!options.scrollBehavior) {\n options.scrollBehavior = this.scope.config.scrollBehavior;\n }\n // history\n if (!options.history) {\n const createHistory = process.env.SERVER ? createMemoryHistory : this.sys.env.ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory;\n const routeBase = process.env.SERVER || this.sys.env.ROUTER_MODE === 'history' ? this.sys.env.APP_PUBLIC_PATH : undefined;\n options.history = createHistory(routeBase);\n }\n // create\n const router = createRouter(options);\n cast(router).__hasDevtools = true;\n router[SymbolRouterHistory] = options.history;\n return router;\n }\n createAsyncComponent(component) {\n if (typeof component !== 'string') return component;\n return this.sys.meta.component.createAsyncComponent(component);\n }\n isSyntheticLayoutRouteRecord(record) {\n const canonicalRecord = record?.aliasOf ?? record;\n return typeof canonicalRecord?.name === 'string' && this._syntheticLayoutRouteNames.has(canonicalRecord.name);\n }\n getPagePath(path, options, absolute) {\n const query = options?.query;\n const params = this._normalizePageParams(options?.params);\n const pagePath = combineParamsAndQuery(path, {\n params,\n query\n });\n return absolute ? this.sys.util.getAbsoluteUrlFromPagePath(pagePath) : pagePath;\n }\n async resolveRoute(url, check404, checkAliasOf) {\n // url: should not has APP_PUBLIC_PATH prefix when not http url\n const pagePath = isHttpUrl(url) ? this.sys.util.getPagePathFromAbsoluteUrl(url) : url;\n let route = await this.ensureRoute(pagePath);\n if (check404 && route.name === '$:/:catchAll(.*)*') return;\n // aliasOf\n if (checkAliasOf) {\n const matchItem = route.matched.find(item => item.aliasOf);\n if (matchItem) {\n route = matchItem.aliasOf;\n }\n // 404\n if (check404 && route.name === '$:/:catchAll(.*)*') return;\n }\n // ok\n return route;\n }\n checkPathValid(to) {\n const _name = to && typeof to === 'object' ? to.name : undefined;\n const _path = to && typeof to === 'object' ? to.name ?? to.path : to;\n // legacy\n if (this._findLegacyRoute(_name, _path)) return true;\n // general check\n if (!_path) return true;\n const moduleName = ModuleInfo.parseName(_path);\n if (!moduleName) return true;\n return this.sys.meta.module.exists(moduleName);\n }\n checkActiveOfFullPath(fullPath, currentRoute) {\n if (!currentRoute) {\n currentRoute = getCurrentRoute(this.ctx)?.value;\n }\n if (!currentRoute) return false;\n if (currentRoute.fullPath === fullPath) return true;\n if (!currentRoute.matched || currentRoute.matched.length === 0) return false;\n return currentRoute.matched.some(routeAlias => {\n const fullPathAlias = this.getPagePath(routeAlias.path, {\n params: currentRoute.params,\n query: currentRoute.query\n });\n return fullPathAlias === fullPath;\n });\n }\n async ensureRoute(pagePath) {\n // try to resolve, support alias route\n let route = this._vueRouterSys.resolve(pagePath);\n if (route && route.name !== '$:/:catchAll(.*)*') return route;\n // try to load module\n const moduleName = ModuleInfo.parseName(pagePath);\n if (moduleName) {\n if (this.sys.meta.module.exists(moduleName)) {\n const module = this.sys.meta.module.get(moduleName);\n if (!module) {\n await this.sys.meta.module.use(moduleName);\n // try to resolve again\n route = this._vueRouterSys.resolve(pagePath);\n }\n }\n }\n return route;\n }\n\n /** @internal */\n _registerRoutes(module) {\n if (!module.resource.routes) return;\n for (const route of module.resource.routes) {\n this._registerRoute(route, module);\n }\n }\n\n /** @internal */\n _findConfigRoute(name, path) {\n name = this.getRealRouteName(name);\n return name ? this.sys.config.routes.name[name] : this.sys.config.routes.path[path];\n }\n\n /** @internal */\n _findLegacyRoute(name, path) {\n const legacyRoutes = cast(this.sys.meta).legacyRoutes;\n if (!legacyRoutes) return;\n name = this.getRealRouteName(name);\n return legacyRoutes.find(item => {\n return name ? item.name === name : item.path === path;\n });\n }\n getRouteMatched(route) {\n return getRouteMatched(route);\n }\n getRealRouteName(name) {\n return getRealRouteName(name);\n }\n isRouterName(name) {\n return isRouterName(name);\n }\n resolveName(name, options) {\n const params = cast(options)?.params;\n const query = cast(options)?.query;\n return this._resolveNameOrPath(query, query => {\n const route = this.router.resolve({\n name,\n params,\n query\n });\n return route.fullPath;\n });\n }\n getAliasPath(name, options, absolute) {\n const alias = this.sys.config.routes.name[name]?.alias;\n if (!alias) return;\n const params = this._normalizePageParams(cast(options)?.params);\n const query = cast(options)?.query;\n const aliasName = `$alias:${name}`;\n const routeAlias = this._resolveNameOrPath(query, query => {\n const route = this.router.resolve({\n name: this.router.hasRoute(aliasName) ? aliasName : name,\n params,\n query\n });\n return route.fullPath;\n });\n const pagePath = routeAlias.startsWith('/__alias__') ? routeAlias.substring('/__alias__'.length) || '/' : routeAlias;\n return absolute ? this.sys.util.getAbsoluteUrlFromPagePath(pagePath) : pagePath;\n }\n _normalizePageParams(params) {\n const paramsLocale = cast(params)?.locale;\n if (paramsLocale === undefined) return params;\n const localeCurrent = paramsLocale === true ? this.app.meta.locale.current : paramsLocale;\n const locale = localeCurrent === this.sys.config.locale.default ? undefined : localeCurrent;\n return Object.assign({}, params, {\n locale\n });\n }\n _resolveNameOrPath(query, fn) {\n const query1 = {};\n const query2 = [];\n if (query) {\n for (const key in query) {\n const value = query[key];\n if (value && typeof value === 'object') {\n query2.push([key, value]);\n } else {\n query1[key] = value;\n }\n }\n }\n // resolve\n const fullPath = fn(query1);\n // query2\n const query2str = query2.map(([key, value]) => {\n return `${encodeURIComponent(key)}=${encodeURIComponent(JSON.stringify(value))}`;\n }).join('&');\n // join\n if (!query2str) return fullPath;\n const join = Object.keys(query1).length > 0 ? '&' : '?';\n return `${fullPath}${join}${query2str}`;\n }\n _loadConfigRoutes() {\n const routesPath = this.sys.config.routes.path;\n for (const key in routesPath) {\n const route = routesPath[key];\n if (!route) continue;\n this._loadConfigRoute({\n ...route,\n path: key,\n name: `$:${key}`\n });\n }\n const routesName = this.sys.config.routes.name;\n for (const key in routesName) {\n const route = routesName[key];\n if (!route) continue;\n this._loadConfigRoute({\n ...route,\n path: route.path || route.alias,\n name: key\n });\n }\n }\n _loadLegacyRoutes() {\n const legacyRoutes = cast(this.sys.meta).legacyRoutes;\n if (!legacyRoutes) return;\n for (const route of legacyRoutes) {\n this._registerRoute(route);\n }\n }\n _loadConfigRoute(route) {\n this.router.addRoute(route);\n }\n _registerRoute(route, module) {\n // path\n let path;\n if (route.path !== undefined) {\n if (!module || route.meta?.absolute === true) {\n path = route.path;\n } else {\n path = route.path ? `/${module.info.pid}/${module.info.name}/${route.path}` : `/${module.info.pid}/${module.info.name}`;\n }\n }\n // name\n let name;\n if (route.name) {\n if (!module || route.meta?.absolute === true) {\n name = String(route.name);\n } else {\n name = `${module.info.relativeName}:${String(route.name)}`;\n }\n }\n // config route\n const configRoute = name ? this.sys.config.routes.name[name] : this.sys.config.routes.path[path];\n if (configRoute) {\n route = deepExtend({}, route, configRoute);\n }\n // name alias\n if (name && configRoute?.alias) {\n const alias = Array.isArray(configRoute.alias) ? configRoute.alias[0] : configRoute.alias;\n // add extra route\n this.router.addRoute({\n name: `$alias:${name}`,\n path: `/__alias__${alias}`,\n redirect: ''\n });\n }\n // name\n if (!name) {\n name = `$:${path}`;\n }\n // meta\n const meta = route.meta;\n // component\n const component = route.component;\n // layout / routeData\n let layout = meta?.layout;\n let routeData;\n let routeNameParent;\n if (layout === false) {\n routeData = {\n ...route,\n name,\n path,\n component,\n meta\n };\n } else {\n if (layout === undefined || layout === 'default') {\n layout = this.sys.config.layout.component.default;\n } else if (layout === 'empty') {\n layout = this.sys.config.layout.component.empty;\n }\n routeNameParent = `$:${name}`;\n routeData = {\n name: routeNameParent,\n path,\n ...(route.alias ? {\n alias: route.alias\n } : {}),\n component: this.createAsyncComponent(layout),\n children: [{\n ...route,\n name,\n path: '',\n component,\n meta\n }]\n };\n }\n // force delete\n if (this.router.hasRoute(routeNameParent)) {\n this.router.removeRoute(routeNameParent);\n }\n if (this.router.hasRoute(name)) {\n this.router.removeRoute(name);\n }\n // add\n this.router.addRoute(routeData);\n if (routeNameParent) {\n this._syntheticLayoutRouteNames.add(routeNameParent);\n }\n }\n}) || _class) || _class);","export function dispatchRouteDiscard(event, emit, onError) {\n const cleanups = [];\n const items = event.items.map(item => ({\n ...item\n }));\n try {\n emit({\n ...event,\n items,\n waitUntil: cleanup => {\n cleanups.push(cleanup);\n }\n });\n } catch (error) {\n onError(error);\n }\n return Promise.allSettled(cleanups).then(results => {\n for (const result of results) {\n if (result.status === 'rejected') onError(result.reason);\n }\n });\n}","export class RouterGuardDisposers {\n constructor() {\n this._disposers = [];\n this._disposed = false;\n }\n add(disposer) {\n this._disposers.push(disposer);\n return disposer;\n }\n dispose() {\n if (this._disposed) return;\n this._disposed = true;\n const disposers = this._disposers;\n this._disposers = [];\n for (const disposer of disposers) {\n disposer();\n }\n }\n}","var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2;\nfunction _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\nfunction _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\nfunction _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase, Use } from 'zova';\nimport { Bean } from 'zova-module-a-bean';\nimport { dispatchRouteDiscard } from '../lib/routeDiscard.ts';\nimport { RouterGuardDisposers } from '../lib/routerGuardDisposers.ts';\nimport { ModelPageData } from '../model/pageData.ts';\nimport { SysRouter } from './sys.router.ts';\nexport let BeanRouter = (_dec = Bean(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec3 = Use(), _dec4 = Reflect.metadata(\"design:type\", typeof SysRouter === \"undefined\" ? Object : SysRouter), _dec5 = Use(), _dec6 = Reflect.metadata(\"design:type\", typeof ModelPageData === \"undefined\" ? Object : ModelPageData), _dec(_class = _dec2(_class = (_class2 = class BeanRouter extends BeanBase {\n constructor(...args) {\n super(...args);\n this._vueRouterApp = void 0;\n this._routerGuardDisposers = new RouterGuardDisposers();\n this._routerViews = [];\n this._disposed = false;\n _initializerDefineProperty(this, \"$$sysRouter\", _descriptor, this);\n _initializerDefineProperty(this, \"$$modelPageData\", _descriptor2, this);\n this._isEmbedded = false;\n this._embeddedView = void 0;\n this._prepareNavigation = void 0;\n }\n // for prepare pageData on server\n\n get router() {\n return this._vueRouterApp;\n }\n get isEmbedded() {\n return this._isEmbedded;\n }\n /**\n * Returns the initial RouterView depth for an embedded page-only host.\n *\n * SysRouter records the synthetic layout parents it creates. The page-only\n * host skips only those exact records; routes registered with\n * `meta.layout: false` still start at depth zero.\n */\n getEmbeddedRouterViewDepth(route) {\n if (this._embeddedView !== 'page') return 0;\n return this.$$sysRouter.isSyntheticLayoutRouteRecord(route.matched[0]) ? 1 : 0;\n }\n dispose() {\n if (this._disposed) return;\n this._disposed = true;\n this._routerGuardDisposers.dispose();\n this._routerViews = [];\n const router = this._vueRouterApp;\n if (router) router.__prepareNavigation = undefined;\n }\n __dispose__() {\n // Router instances can be borrowed through page host providers. Their\n // creator explicitly calls dispose() when the router itself is finished.\n }\n __get__(prop) {\n // SymbolRouter first\n const value = this._vueRouterApp?.[prop];\n if (value !== undefined) return value;\n return this.$$sysRouter?.[prop];\n }\n async __init__(mainRouterOrOptions) {\n const options = typeof mainRouterOrOptions === 'boolean' ? {\n mainRouter: mainRouterOrOptions\n } : mainRouterOrOptions ?? {};\n this._isEmbedded = options.mainRouter === false;\n this._embeddedView = options.embeddedView;\n this._prepareNavigation = options.prepareNavigation;\n // create router\n this._vueRouterApp = this.$$sysRouter.createRouter(options.routerOptions);\n const router = this._vueRouterApp;\n router.__prepareNavigation = this._prepareNavigation;\n if (!options.mainRouter) {\n // emit event\n await this.app.meta.event.emit('a-router:routerGuards', this);\n }\n }\n addRouterView(routerView) {\n this._routerViews.push(routerView);\n if (!this._isEmbedded) return;\n const route = this._vueRouterApp.currentRoute.value;\n if (route?.matched.length > 0) {\n routerView.forwardRoute(route);\n }\n }\n removeRouterView(routerView) {\n const index = this._routerViews.findIndex(item => item === routerView);\n if (index > -1) {\n this._routerViews.splice(index, 1);\n }\n }\n notifyRouteDiscard(reason, items, ownerSelector) {\n return dispatchRouteDiscard({\n router: this,\n reason,\n items,\n ownerSelector\n }, event => this.app.meta.event.emitSync('a-router:routeDiscard', event), () => console.error('Route discard cleanup failed'));\n }\n afterEachBackRoute(route) {\n for (const routerView of this._routerViews) {\n const res = routerView.backRoute(route);\n if (res) break;\n }\n }\n afterEachForwardRoute(route) {\n for (const routerView of this._routerViews) {\n const res = routerView.forwardRoute(route);\n if (res) break;\n }\n }\n beforeEach(guard) {\n return this._routerGuardDisposers.add(this._vueRouterApp.beforeEach(guard));\n }\n beforeResolve(guard) {\n return this._routerGuardDisposers.add(this._vueRouterApp.beforeResolve(guard));\n }\n afterEach(guard) {\n return this._routerGuardDisposers.add(this._vueRouterApp.afterEach(guard));\n }\n onError(handler) {\n return this._routerGuardDisposers.add(this._vueRouterApp.onError(handler));\n }\n setPageMeta(route, pageMeta) {\n for (const routerView of this._routerViews) {\n routerView.setPageMeta(route, pageMeta);\n }\n }\n}, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"$$sysRouter\", [_dec3, _dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"$$modelPageData\", [_dec5, _dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _class2)) || _class) || _class);","var _dec, _dec2, _dec3, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase, Virtual } from 'zova';\nimport { Bean } from 'zova-module-a-bean';\nexport let BeanRouterGuardsBase = (_dec = Bean(), _dec2 = Virtual(), _dec3 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = _dec3(_class = class BeanRouterGuardsBase extends BeanBase {\n constructor(...args) {\n super(...args);\n this._eventRouterGuards = void 0;\n }\n async __init__() {\n this._eventRouterGuards = this.app.meta.event.on('a-router:routerGuards', async (router, next) => {\n this.onRouterGuards(router);\n return await next();\n });\n }\n __dispose__() {\n this.dispose();\n }\n dispose() {\n if (this._eventRouterGuards) {\n this._eventRouterGuards();\n }\n }\n onRouterGuards(_router) {}\n}) || _class) || _class) || _class);","import 'vue-router';\nexport let NavigationType = /*#__PURE__*/function (NavigationType) {\n NavigationType[\"pop\"] = \"pop\";\n NavigationType[\"push\"] = \"push\";\n return NavigationType;\n}({});\nexport let NavigationDirection = /*#__PURE__*/function (NavigationDirection) {\n NavigationDirection[\"back\"] = \"back\";\n NavigationDirection[\"forward\"] = \"forward\";\n NavigationDirection[\"unknown\"] = \"\";\n return NavigationDirection;\n}({});","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport * as ModuleInfo from '@cabloy/module-info';\nimport { Service } from 'zova-module-a-bean';\nimport { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.ts';\nimport { NavigationDirection, NavigationType } from '../types/router.ts';\nexport let ServiceRouterGuards = (_dec = Service(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class ServiceRouterGuards extends BeanRouterGuardsBase {\n onRouterGuards(router) {\n const self = this;\n router.beforeEach(async to => {\n // match path\n const aliasMatch = to.matched.find(item => item.aliasOf);\n let match = aliasMatch;\n if (aliasMatch) {\n match = aliasMatch.aliasOf;\n // A path-config alias can initially resolve to a componentless placeholder\n // before its module registers the real layout route. Reload the same path\n // after loading so the router resolves the newly registered component.\n if (!match?.components || Object.keys(match.components).length === 0) {\n const resLoadModule = await this._forceLoadModule(router, match?.name, match?.path);\n if (resLoadModule && resLoadModule !== true) return resLoadModule;\n return to.fullPath;\n }\n } else {\n match = to.matched[to.matched.length - 1];\n // prepareCheck\n if (!(await this._prepareCheck(match?.path, to.path))) {\n // redirect again\n return to.fullPath;\n }\n // legacy\n const legacyRoute = router._findLegacyRoute(match?.name, match?.path);\n if (legacyRoute) return;\n // alias\n const configRoute = router._findConfigRoute(match?.name, match?.path);\n const alias = configRoute?.alias;\n if (alias) {\n // force load module\n const resLoadModule = await this._forceLoadModule(router, match?.name, match?.path);\n if (resLoadModule && resLoadModule !== true) return resLoadModule;\n if (resLoadModule === false) return to.fullPath;\n const name = router.getRealRouteName(match?.name);\n if (name) {\n const routeAlias = router.getAliasPath(name, {\n params: to.params,\n query: to.query\n });\n return routeAlias || '/';\n } else {\n return {\n path: Array.isArray(alias) ? alias[0] : alias,\n params: to.params,\n query: to.query\n };\n }\n }\n }\n // force load module\n const resLoadModule = await this._forceLoadModule(router, match?.name, match?.path);\n if (resLoadModule === true) return;\n if (resLoadModule) return resLoadModule;\n // redirect again\n return to.fullPath;\n });\n router.afterEach(function (to, from, error) {\n if (error) return;\n const info = arguments[3];\n // from\n if (from.fullPath !== to.fullPath) {\n self._afterEachFrom(router, from, info);\n }\n // to\n router.afterEachForwardRoute(to);\n });\n }\n _afterEachFrom(router, from, info) {\n if (!info) return;\n const isBack = info.type === NavigationType.pop && info.direction === NavigationDirection.back;\n const needBack = isBack || info.type === NavigationType.push && info.replace;\n if (!needBack) return;\n if (isBack) {\n // afterEach is synchronous; listeners register and invalidate outgoing work immediately.\n void router.notifyRouteDiscard('back', [{\n fullPath: from.fullPath\n }]);\n }\n router.afterEachBackRoute(from);\n }\n\n // if 404 then check if module loaded\n async _prepareCheck(pathMatched, pathTo) {\n if (pathMatched === '/:catchAll(.*)*') {\n const moduleInfo = ModuleInfo.parseInfo(ModuleInfo.parseName(pathTo));\n if (moduleInfo && this.app.meta.module.exists(moduleInfo.relativeName) && !this.app.meta.module.get(moduleInfo.relativeName, false)) {\n // use module\n await this.app.meta.module.use(moduleInfo.relativeName);\n // redirect again\n return false;\n }\n }\n return true;\n }\n async _forceLoadModule(router, name, path) {\n const nameOrPath = router.getRealRouteName(name) || path;\n // module info\n const moduleInfo = ModuleInfo.parseInfo(ModuleInfo.parseName(nameOrPath));\n if (!moduleInfo) {\n // donothing\n return true;\n }\n const moduleName = moduleInfo.relativeName;\n // check if exists\n if (!this.app.meta.module.exists(moduleName)) return '/404';\n // check if loaded\n const module = this.app.meta.module.get(moduleName, false);\n if (module) return true;\n // use module\n await this.app.meta.module.use(moduleName);\n // means need load\n return false;\n }\n}) || _class) || _class);","import type { RouteLocationNormalizedLoadedGeneric } from '@cabloy/vue-router';\n\nimport { RouterView } from '@cabloy/vue-router';\nimport { h, KeepAlive, Transition } from 'vue';\nimport { BeanControllerBase, cast } from 'zova';\n\nimport type { IPageMeta } from '../types/pageMeta.ts';\nimport type { IRouterViewSlotParams, IRouteViewRouteMeta } from '../types/routerView.ts';\n\nimport { pageRouteKey, routerViewKey } from './const.ts';\n\nexport interface IRouterViewPropsBase {}\n\nexport class BeanRouterViewBase extends BeanControllerBase implements IRouterViewPropsBase {\n protected async __init__() {\n this.bean._setBean(routerViewKey, this);\n this.$router.addRouterView(this);\n }\n\n protected __dispose__() {\n this.$router.removeRouterView(this);\n }\n\n public backRoute(_route: RouteLocationNormalizedLoadedGeneric) {\n return false;\n }\n\n public forwardRoute(_route: RouteLocationNormalizedLoadedGeneric) {\n return false;\n }\n\n public setPageMeta(_route: RouteLocationNormalizedLoadedGeneric, _pageMeta: IPageMeta) {}\n\n protected prepareRouteMeta(_route: RouteLocationNormalizedLoadedGeneric): IRouteViewRouteMeta {\n throw new Error('Not Implemented');\n }\n\n protected getKeepAliveInclude(): string[] | undefined {\n throw new Error('Not Implemented');\n }\n\n protected getPageHostProviders(): Record<string, unknown> | undefined {\n return undefined;\n }\n\n protected render() {\n const slots = {\n default: (component: IRouterViewSlotParams) => {\n const routeMeta = this.prepareRouteMeta(component.route);\n return h(Transition, null, {\n default: () => {\n const vnode = h(component.Component as any, {\n key: routeMeta.componentKey,\n route: component.route,\n });\n cast(vnode).zovaHostProviders = {\n ...this.getPageHostProviders(),\n [pageRouteKey]: component.route,\n 'a-router.bean.router': this.$router,\n };\n return [\n h(\n KeepAlive,\n {\n include: this.getKeepAliveInclude(),\n },\n [vnode],\n ),\n ];\n },\n });\n },\n };\n return <RouterView v-slots={slots}></RouterView>;\n }\n}\n","import { RouterView } from '@cabloy/vue-router';\nimport { h } from 'vue';\nimport { cast } from 'zova';\nimport { Controller } from 'zova-module-a-bean';\n\nimport { pageRouteKey } from '../../lib/const.ts';\nimport { BeanRouterViewBase } from '../../lib/routerViewBase.tsx';\n\n@Controller()\nexport class ControllerRouterViewEmpty extends BeanRouterViewBase {\n protected async __init__() {}\n\n protected render() {\n const slots = {\n default: component => {\n const vnode = h(component.Component);\n cast(vnode).zovaHostProviders = {\n [pageRouteKey]: component.route,\n 'a-router.bean.router': this.$router,\n };\n return vnode;\n },\n };\n return <RouterView v-slots={slots}></RouterView>;\n }\n}\n","import { defineComponent } from 'vue';\nimport { prepareComponentOptions, useController } from 'zova';\nimport { ControllerRouterViewEmpty } from '../../component/routerViewEmpty/controller.tsx';\nexport const ZRouterViewEmpty = defineComponent(_props => {\n useController(ControllerRouterViewEmpty, undefined, undefined);\n return () => {};\n}, prepareComponentOptions());","import { scrollBehavior } from '../lib/utils.ts';\nexport const config = _sys => {\n return {\n scrollBehavior\n };\n};","import * as ModuleInfo from '@cabloy/module-info';\nimport { onActivated, onBeforeUnmount, onDeactivated, shallowReactive } from 'vue';\nimport { BeanControllerPageBase, BeanSimple, cast, useComputed } from 'zova';\nimport { pageHostKey, routerViewKey } from './lib/const.ts';\nimport { getCurrentRoute, getPageRoute, getRealRouteName, getRouteMatched } from './lib/utils.ts';\nimport { ServiceRouterGuards } from './service/routerGuards.ts';\nimport { SymbolRouterHistory } from './types/utils.ts';\nexport class Monkey extends BeanSimple {\n constructor(...args) {\n super(...args);\n this._beanRouter = void 0;\n this._sysRouter = void 0;\n this._pageHosts = new WeakMap();\n this.serviceRouterGuards = void 0;\n }\n async _getSysRouter() {\n if (!this._sysRouter) {\n this._sysRouter = await this.sys.bean._getBean('a-router.sys.router', false);\n }\n return this._sysRouter;\n }\n async getBeanRouter() {\n if (!this._beanRouter) {\n // markReactive: true\n this._beanRouter = this.app.meta.$router = await this.bean._getBean('a-router.bean.router', true, true);\n }\n return this._beanRouter;\n }\n async appInitialize() {\n if (process.env.SERVER) {\n const pagePathFull = this.app.$getCurrentPagePath();\n if (pagePathFull) {\n const sysRouter = await this._getSysRouter();\n const route = await sysRouter.resolveRoute(pagePathFull, true, false);\n if (route) {\n // ssr profile\n this.ctx.meta.$ssr._setProfile(route.meta.ssrProfile, route.meta.ssrProfileOptions, route.meta.locale);\n // locale\n this.ctx.meta.$ssr._setLocale(route);\n }\n }\n }\n // router\n this.serviceRouterGuards = await this.bean._newBean(ServiceRouterGuards, false);\n // ssr errorHandler\n if (process.env.CLIENT) {\n this._ssrErrorHandler();\n }\n }\n async appInitialized() {\n const beanRouter = await this.getBeanRouter();\n // emit event\n await this.app.meta.event.emit('a-router:routerGuards', beanRouter);\n }\n appClose() {\n if (this.serviceRouterGuards) {\n this.serviceRouterGuards.dispose();\n }\n this._beanRouter?.dispose();\n }\n async appReady() {\n const beanRouter = await this.getBeanRouter();\n // pagePath\n if (process.env.CLIENT && this.ctx.meta.$ssr.isRuntimeSsrPreHydration) {\n const pagePathFull = this.ctx.meta.$ssr.state.pagePathFull;\n if (pagePathFull) {\n const routerHistory = beanRouter.router[SymbolRouterHistory];\n routerHistory.push(pagePathFull);\n }\n }\n // use router\n this.app.vue.use(beanRouter);\n // ssr\n if (process.env.SERVER) {\n // push\n const pagePath = this.app.$getCurrentPagePath();\n beanRouter.push(pagePath);\n await beanRouter.isReady();\n } else if (process.env.CLIENT && this.ctx.meta.$ssr.isRuntimeSsrPreHydration) {\n await beanRouter.isReady();\n }\n }\n async beanInit(bean, beanInstance) {\n bean.defineProperty(beanInstance, '$router', {\n enumerable: false,\n configurable: true,\n get() {\n return bean._getBeanFromHost('a-router.bean.router');\n }\n });\n bean.defineProperty(beanInstance, '$routerView', {\n enumerable: false,\n configurable: true,\n get() {\n return bean._getBeanFromHost({\n name: routerViewKey\n });\n }\n });\n bean.defineProperty(beanInstance, '$pageRoute', {\n enumerable: false,\n configurable: true,\n get() {\n return useComputed(() => {\n return getPageRoute(cast(bean).ctx);\n });\n }\n });\n bean.defineProperty(beanInstance, '$pageHost', {\n enumerable: false,\n configurable: true,\n get() {\n return bean._getBeanFromHost({\n name: pageHostKey\n }) ?? undefined;\n }\n });\n bean.defineProperty(beanInstance, '$currentRoute', {\n enumerable: false,\n configurable: true,\n get() {\n return useComputed(() => {\n return getCurrentRoute(cast(bean).ctx);\n });\n }\n });\n }\n controllerDataPrepare(controllerData, ctx) {\n if (controllerData.context.page) {\n this._initPageHost(ctx);\n }\n controllerData.context.route = getPageRoute(ctx);\n }\n _initPageHost(ctx) {\n const existing = this._pageHosts.get(ctx);\n if (existing) {\n ctx.bean._setBean(pageHostKey, existing);\n return;\n }\n const pageHost = shallowReactive({\n active: true\n });\n this._pageHosts.set(ctx, pageHost);\n ctx.bean._setBean(pageHostKey, pageHost);\n if (!process.env.CLIENT) return;\n ctx.util.instanceScope(() => {\n onActivated(() => {\n pageHost.active = true;\n });\n onDeactivated(() => {\n pageHost.active = false;\n });\n onBeforeUnmount(() => {\n pageHost.active = false;\n });\n });\n }\n controllerDataInit(controllerData, controller) {\n // only for controller page\n if (!(controller instanceof BeanControllerPageBase)) return;\n const route = controllerData.context.route;\n this._initControllerRoute(route, controller);\n }\n controllerDataUpdate(controller) {\n // only for controller page\n if (!(controller instanceof BeanControllerPageBase)) return;\n const route = getPageRoute(cast(cast(controller).ctx));\n this._initControllerRoute(route, controller);\n }\n _initControllerRoute(route, controller) {\n if (!route) return;\n const routeMatched = getRouteMatched(route);\n if (!routeMatched) return;\n // check if the same\n if (controller.$routeMatched && !this._checkIfRouteSame(routeMatched, controller.$routeMatched)) return;\n // check if changed\n const changed = !controller.$route || controller.$route.fullPath !== route.fullPath;\n if (!changed) return;\n // update $params/$query\n const routeName = getRealRouteName(routeMatched.name);\n const schemaKey = routeName || String(routeMatched.path);\n let schemas;\n const moduleInfo = ModuleInfo.parseInfo(ModuleInfo.parseName(schemaKey));\n if (!moduleInfo) {\n // do nothing\n return;\n }\n if (!this.app.meta.module.exists(moduleInfo.relativeName)) {\n // do nothing\n return;\n }\n const module = this.app.meta.module.get(moduleInfo.relativeName, false);\n if (!module) {\n void this.app.meta.module.use(moduleInfo.relativeName).then(() => {\n if (cast(controller).ctx.disposed) return;\n const currentRoute = getPageRoute(cast(cast(controller).ctx));\n if (!currentRoute || currentRoute.fullPath !== route.fullPath) return;\n this._initControllerRoute(currentRoute, controller);\n }).catch(err => {\n console.error('failed to load route module', moduleInfo.relativeName, err);\n });\n return;\n }\n controller.$route = route;\n controller.$routeMatched = routeMatched;\n if (routeName) {\n schemas = module.resource.pageNameSchemas?.[schemaKey];\n } else {\n schemas = module.resource.pagePathSchemas?.[schemaKey];\n }\n if (schemas?.params) {\n const params = schemas.params.parse(route.params);\n if (!controller.$params) {\n controller.$params = process.env.SERVER ? params : shallowReactive(params);\n } else {\n // hold the same $params ref\n Object.assign(controller.$params, params);\n }\n }\n if (schemas?.query) {\n const query = schemas.query.parse(route.query);\n if (!controller.$query) {\n controller.$query = process.env.SERVER ? query : shallowReactive(query);\n } else {\n // hold the same $query ref\n Object.assign(controller.$query, query);\n }\n }\n }\n _checkIfRouteSame(route1, route2) {\n return route1.name && route1.name === route2.name || route1.path === route2.path;\n }\n _ssrErrorHandler() {\n if (!process.env.CLIENT) return;\n this.app.meta.event.on('app:errorHandler', (data, next) => {\n if (_isLoadErrorHandledClient(data)) {\n data.load.disposition = 'handled';\n }\n const err = next();\n if (!err || !(err instanceof Error)) return err;\n return this._errorHandlerDefaultClient(err, data);\n });\n }\n _errorHandlerDefaultClient(err, _data) {\n if (!process.env.CLIENT) return err;\n // client\n if ([301, 302].includes(Number(err.code))) {\n this.app.$gotoPage(err.pagePath);\n return undefined;\n }\n // COMPONENT_UNMOUNTED\n if (err.code === 600) {\n // do nothing\n return undefined;\n }\n // 401\n if (err.code === 401) {\n this.app.$gotoLogin();\n return undefined;\n }\n // not handled\n return err;\n }\n}\nfunction _isLoadErrorHandledClient(data) {\n if (data.load?.kind !== 'controller-load') return false;\n return [301, 302, 401, 600].includes(Number(data.err.code));\n}","import { BeanSimple, cast, isHttpUrl } from 'zova';\nexport class MonkeySys extends BeanSimple {\n constructor(moduleSelf) {\n super();\n this._moduleSelf = void 0;\n this._sysRouter = void 0;\n this._moduleSelf = moduleSelf;\n }\n async getSysRouter() {\n if (!this._sysRouter) {\n this._sysRouter = await this.sys.bean._getBean('a-router.sys.router', false);\n }\n return this._sysRouter;\n }\n async moduleLoading(module) {\n if (this._moduleSelf === module) return;\n if (!module.resource.routes) return;\n const sysRouter = await this.getSysRouter();\n sysRouter._registerRoutes(module);\n }\n async moduleLoaded(_module) {}\n async configLoaded(_module, _config) {}\n sysApplicationInitialize(app) {\n app.$redirect = (pagePath, status) => {\n const error = new Error();\n error.code = status ?? 302;\n if (isHttpUrl(pagePath)) {\n error.pagePath = pagePath;\n error.url = pagePath;\n } else {\n error.pagePath = pagePath;\n error.url = app.sys.util.getAbsoluteUrlFromPagePath(pagePath, true);\n }\n error.message = process.env.SERVER ? error.url : error.pagePath;\n throw error;\n };\n app.$getPagePath = (pagePath, options) => {\n const query = {\n ...options?.query\n };\n // returnTo\n if (options?.returnTo) {\n const returnTo = typeof options.returnTo === 'string' ? options.returnTo : app.$getCurrentPagePath();\n if (returnTo !== app.$getPagePathHome()) {\n query[app.sys.env.ROUTER_KEY_RETURNTO] = returnTo;\n }\n }\n return app.meta.$router.getPagePath(pagePath, {\n params: options?.params,\n query\n });\n };\n app.$getPagePathLogin = (returnTo, cause) => {\n const query = {};\n if (cause) {\n query.cause = cause;\n }\n const returnTo2 = _fixReturnTo(app, returnTo);\n return app.$getPagePath(app.sys.env.ROUTER_PAGE_LOGIN, {\n query,\n returnTo: returnTo2\n });\n };\n app.$getPagePathAccessDenied = () => {\n return app.$getPagePath('/home/base/errorAccessDenied');\n };\n app.$gotoPage = (pagePath, options) => {\n pagePath = app.$getPagePath(pagePath, options);\n // redirect\n if (process.env.SERVER || options?.forceRedirect) {\n return app.$redirect(pagePath);\n }\n // replace\n if (isHttpUrl(pagePath)) {\n window.location[options?.replace ? 'replace' : 'assign'](pagePath);\n } else {\n return app.meta.$router[options?.replace ? 'replace' : 'push'](pagePath);\n }\n };\n app.$gotoHome = options => {\n const pagePath = app.$getPagePathHome(options);\n return app.$gotoPage(pagePath, {\n ...options,\n params: undefined\n });\n };\n app.$gotoLogin = (returnTo, cause) => {\n const returnTo2 = _fixReturnTo(app, returnTo);\n if (!returnTo2 && cast(app.meta.$router.currentRoute)?.path === app.sys.env.ROUTER_PAGE_LOGIN) {\n return;\n }\n const pagePath = app.$getPagePathLogin(returnTo2, cause);\n return app.$gotoPage(pagePath);\n };\n app.$gotoAccessDenied = () => {\n const pagePath = app.$getPagePathAccessDenied();\n if (cast(app.meta.$router.currentRoute)?.path === pagePath) return;\n return app.$gotoPage(pagePath, {\n replace: true\n });\n };\n app.$gotoReturnTo = returnTo => {\n const pagePath = app.$getReturnTo(returnTo);\n return app.$gotoPage(pagePath, {\n replace: true\n });\n };\n app.$getReturnTo = returnTo => {\n // not use ??\n const pagePath = returnTo || cast(app.meta.$router.currentRoute)?.query?.[app.sys.env.ROUTER_KEY_RETURNTO] || app.$getPagePathHome();\n return pagePath;\n };\n app.$getCurrentPagePath = () => {\n if (process.env.SERVER) {\n return app.ctx.meta.$ssr.state.pagePathFull ?? app.sys.util.getPagePathFromAbsoluteUrl(app.ctx.meta.$ssr.context.req.url);\n }\n return cast(app.meta.$router.currentRoute)?.fullPath;\n };\n app.$getPagePathHome = options => {\n let params = options?.params;\n if (params?.locale === undefined) {\n params = Object.assign({}, params, {\n locale: true\n });\n }\n // not handle options?.query\n return app.meta.$router.getPagePath(app.sys.env.ROUTER_PAGE_HOME, {\n params\n });\n };\n }\n}\nfunction _fixReturnTo(app, returnTo) {\n const returnTo2 = returnTo === false ? false : typeof returnTo === 'string' ? returnTo : app.$getCurrentPagePath();\n return returnTo2 === app.sys.env.ROUTER_PAGE_LOGIN ? false : returnTo2;\n}","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** model: begin */\nexport * from '../model/pageData.ts';\nimport 'zova-module-a-model';\n/** model: end */\n/** model: begin */\n\nimport 'zova';\n/** model: end */\n/** sys: begin */\nexport * from '../bean/sys.router.ts';\nimport 'zova';\n/** sys: end */\n/** sys: begin */\n\nimport 'zova';\n/** sys: end */\n/** bean: begin */\nexport * from '../bean/bean.router.ts';\nexport * from '../bean/bean.routerGuardsBase.ts';\nimport 'zova';\n/** bean: end */\n/** bean: begin */\n\nimport 'zova';\n/** bean: end */\n/** service: begin */\nexport * from '../service/routerGuards.ts';\nimport 'zova-module-a-bean';\n/** service: end */\n/** service: begin */\n\nimport 'zova';\n/** service: end */\n/** controller: begin */\nexport * from '../component/routerViewEmpty/controller.tsx';\nimport 'zova';\n/** controller: end */\n/** controller: begin */\n\nimport 'zova';\n/** controller: end */\n\n/** components: begin */\nexport * from './component/routerViewEmpty.ts';\nimport { ZRouterViewEmpty } from './component/routerViewEmpty.ts';\nexport const components = {\n 'routerViewEmpty': ZRouterViewEmpty\n};\nimport 'zova';\n/** components: end */\n/** config: begin */\nexport * from '../config/config.ts';\n/** config: end */\n/** monkey: begin */\nexport * from '../monkey.ts';\n/** monkey: end */\n/** monkeySys: begin */\nexport * from '../monkeySys.ts';\n/** monkeySys: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleARouter = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-router\"\n}), _dec(_class = _dec2(_class = class ScopeModuleARouter extends BeanScopeBase {}) || _class) || _class);\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1
- export * from './const.js';
2
- export * from './routerViewBase.jsx';
3
- export * from './utils.js';
1
+ export * from './const.ts';
2
+ export * from './routerViewBase.tsx';
3
+ export * from './utils.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { IRouteDiscardEvent } from '../types/routeDiscard.js';
1
+ import type { IRouteDiscardEvent } from '../types/routeDiscard.ts';
2
2
  export declare function dispatchRouteDiscard(event: Omit<IRouteDiscardEvent, 'waitUntil'>, emit: (event: IRouteDiscardEvent) => void, onError: (error: unknown) => void): Promise<void>;
3
3
  //# sourceMappingURL=routeDiscard.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { RouteLocationNormalizedLoadedGeneric } from '@cabloy/vue-router';
2
2
  import { BeanControllerBase } from 'zova';
3
- import type { IPageMeta } from '../types/pageMeta.js';
4
- import type { IRouteViewRouteMeta } from '../types/routerView.js';
3
+ import type { IPageMeta } from '../types/pageMeta.ts';
4
+ import type { IRouteViewRouteMeta } from '../types/routerView.ts';
5
5
  export interface IRouterViewPropsBase {
6
6
  }
7
7
  export declare class BeanRouterViewBase extends BeanControllerBase implements IRouterViewPropsBase {
package/dist/monkey.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { BeanBase, BeanContainer, IControllerData, IMonkeyAppClose, IMonkeyAppInitialize, IMonkeyAppInitialized, IMonkeyAppReady, IMonkeyBeanInit, IMonkeyController, ZovaContext } from 'zova';
2
2
  import { BeanSimple } from 'zova';
3
- import type { BeanRouter } from './bean/bean.router.js';
4
- import { ServiceRouterGuards } from './service/routerGuards.js';
3
+ import type { BeanRouter } from './bean/bean.router.ts';
4
+ import { ServiceRouterGuards } from './service/routerGuards.ts';
5
5
  export declare class Monkey extends BeanSimple implements IMonkeyAppInitialize, IMonkeyAppInitialized, IMonkeyAppReady, IMonkeyAppClose, IMonkeyBeanInit, IMonkeyController {
6
6
  private _beanRouter;
7
7
  private _sysRouter;
@@ -1,7 +1,7 @@
1
1
  import type { IModule } from '@cabloy/module-info';
2
2
  import type { IMonkeyModuleSys, IMonkeySysApplicationInitialize, ZovaApplication } from 'zova';
3
3
  import { BeanSimple } from 'zova';
4
- import type { SysRouter } from './bean/sys.router.js';
4
+ import type { SysRouter } from './bean/sys.router.ts';
5
5
  export declare class MonkeySys extends BeanSimple implements IMonkeyModuleSys, IMonkeySysApplicationInitialize {
6
6
  private _moduleSelf;
7
7
  private _sysRouter;
@@ -1,5 +1,5 @@
1
- import { BeanRouter } from '../bean/bean.router.js';
2
- import { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.js';
1
+ import { BeanRouter } from '../bean/bean.router.ts';
2
+ import { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.ts';
3
3
  export declare class ServiceRouterGuards extends BeanRouterGuardsBase {
4
4
  protected onRouterGuards(router: BeanRouter): void;
5
5
  private _afterEachFrom;
@@ -1,7 +1,7 @@
1
- export * from './pageHost.js';
2
- export * from './pageMeta.js';
3
- export * from './routeDiscard.js';
4
- export * from './router.js';
5
- export * from './routerView.js';
6
- export * from './utils.js';
1
+ export * from './pageHost.ts';
2
+ export * from './pageMeta.ts';
3
+ export * from './routeDiscard.ts';
4
+ export * from './router.ts';
5
+ export * from './routerView.ts';
6
+ export * from './utils.ts';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { VNodeChild } from 'vue';
2
2
  import type { IFormMeta } from 'zova-module-a-openapi';
3
- import type { IRouteViewRouteItem, IRouteViewTabCurrent } from './routerView.js';
3
+ import type { IRouteViewRouteItem, IRouteViewTabCurrent } from './routerView.ts';
4
4
  export interface IPageMeta {
5
5
  pageTitle?: string;
6
6
  pageDirty?: boolean;
@@ -1,4 +1,4 @@
1
- import type { BeanRouter } from '../bean/bean.router.js';
1
+ import type { BeanRouter } from '../bean/bean.router.ts';
2
2
  export type TypeRouteDiscardReason = 'back' | 'taskClose' | 'workspaceClose';
3
3
  export interface IRouteDiscardItem {
4
4
  readonly fullPath: string;
@@ -1,10 +1,10 @@
1
1
  import type { NavigationFailure, RouteComponent, RouteLocationMatched, RouteLocationNormalized, RouteLocationNormalizedLoaded, RouteLocationNormalizedLoadedGeneric, RouteRecordRaw } from '@cabloy/vue-router';
2
2
  import type { z } from 'zod';
3
3
  import type { ILayoutRecord, ILocaleRecord, TypeComponentLayoutRecord, ZovaApplication } from 'zova';
4
- import type { BeanRouter } from '../bean/bean.router.js';
5
- import type { BeanRouterViewBase } from '../lib/routerViewBase.js';
6
- import type { IPageHost } from './pageHost.js';
7
- import type { IGetPagePathOptions, IGotoPageOptions } from './utils.js';
4
+ import type { BeanRouter } from '../bean/bean.router.ts';
5
+ import type { BeanRouterViewBase } from '../lib/routerViewBase.tsx';
6
+ import type { IPageHost } from './pageHost.ts';
7
+ import type { IGetPagePathOptions, IGotoPageOptions } from './utils.ts';
8
8
  import 'vue-router';
9
9
  export type Lazy<T> = () => Promise<T>;
10
10
  export type IModuleRouteComponent = RouteComponent | Lazy<RouteComponent>;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/types/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,6BAA6B,EAC7B,oCAAoC,EACpC,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,yBAAyB,EACzB,eAAe,EAChB,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACxE,OA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AAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE,6BAA6B,GAAG,GAAG,CAAC;CACrF;AAED,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,KAAK;CACb;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1,6 +1,6 @@
1
1
  import type { RouteLocationNormalizedLoaded } from '@cabloy/vue-router';
2
2
  import type { ComponentInternalInstance } from 'vue';
3
- import type { IPageMeta } from './pageMeta.js';
3
+ import type { IPageMeta } from './pageMeta.ts';
4
4
  export interface IRouteViewRouteItemBase {
5
5
  componentKey: string;
6
6
  fullPath: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-router",
3
- "version": "5.1.42",
4
- "gitHead": "6293b79d977b9e40695262a5ca11cd98dfaa9241",
3
+ "version": "5.1.44",
4
+ "gitHead": "d1a9a68c5d48db9bc82945c17984dabbec724d8c",
5
5
  "description": "router",
6
6
  "keywords": [
7
7
  "Zova Module"
@@ -1,7 +1,7 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { prepareComponentOptions, useController } from 'zova';
3
3
 
4
- import { ControllerRouterViewEmpty } from '../../component/routerViewEmpty/controller.jsx';
4
+ import { ControllerRouterViewEmpty } from '../../component/routerViewEmpty/controller.tsx';
5
5
  export type ZRouterViewEmptyProps = {
6
6
  controllerRef?: (ref: ControllerRouterViewEmpty) => void;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  // eslint-disable
2
2
  /** model: begin */
3
- export * from '../model/pageData.js';
4
- import { IModelOptionsPageData } from '../model/pageData.js';
3
+ export * from '../model/pageData.ts';
4
+ import { IModelOptionsPageData } from '../model/pageData.ts';
5
5
  import 'zova-module-a-model';
6
6
  declare module 'zova-module-a-model' {
7
7
 
@@ -26,7 +26,7 @@ declare module 'zova-module-a-router' {
26
26
  }
27
27
  /** model: end */
28
28
  /** model: begin */
29
- import type { ModelPageData } from '../model/pageData.js';
29
+ import type { ModelPageData } from '../model/pageData.ts';
30
30
  import 'zova';
31
31
  declare module 'zova' {
32
32
  export interface IBeanRecordGeneral {
@@ -35,7 +35,7 @@ declare module 'zova' {
35
35
  }
36
36
  /** model: end */
37
37
  /** sys: begin */
38
- export * from '../bean/sys.router.js';
38
+ export * from '../bean/sys.router.ts';
39
39
 
40
40
  import 'zova';
41
41
  declare module 'zova' {
@@ -57,7 +57,7 @@ declare module 'zova-module-a-router' {
57
57
  }
58
58
  /** sys: end */
59
59
  /** sys: begin */
60
- import type { SysRouter } from '../bean/sys.router.js';
60
+ import type { SysRouter } from '../bean/sys.router.ts';
61
61
  import 'zova';
62
62
  declare module 'zova' {
63
63
  export interface IBeanRecordGeneral {
@@ -66,8 +66,8 @@ declare module 'zova' {
66
66
  }
67
67
  /** sys: end */
68
68
  /** bean: begin */
69
- export * from '../bean/bean.router.js';
70
- export * from '../bean/bean.routerGuardsBase.js';
69
+ export * from '../bean/bean.router.ts';
70
+ export * from '../bean/bean.routerGuardsBase.ts';
71
71
 
72
72
  import 'zova';
73
73
  declare module 'zova' {
@@ -89,8 +89,8 @@ declare module 'zova-module-a-router' {
89
89
  }
90
90
  /** bean: end */
91
91
  /** bean: begin */
92
- import type { BeanRouter } from '../bean/bean.router.js';
93
- import type { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.js';
92
+ import type { BeanRouter } from '../bean/bean.router.ts';
93
+ import type { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.ts';
94
94
  import 'zova';
95
95
  declare module 'zova' {
96
96
  export interface IBeanRecordGeneral {
@@ -100,7 +100,7 @@ declare module 'zova' {
100
100
  }
101
101
  /** bean: end */
102
102
  /** service: begin */
103
- export * from '../service/routerGuards.js';
103
+ export * from '../service/routerGuards.ts';
104
104
 
105
105
  import 'zova-module-a-bean';
106
106
  declare module 'zova-module-a-bean' {
@@ -126,7 +126,7 @@ declare module 'zova-module-a-router' {
126
126
  }
127
127
  /** service: end */
128
128
  /** service: begin */
129
- import type { ServiceRouterGuards } from '../service/routerGuards.js';
129
+ import type { ServiceRouterGuards } from '../service/routerGuards.ts';
130
130
  import 'zova';
131
131
  declare module 'zova' {
132
132
  export interface IBeanRecordGeneral {
@@ -135,7 +135,7 @@ declare module 'zova' {
135
135
  }
136
136
  /** service: end */
137
137
  /** controller: begin */
138
- export * from '../component/routerViewEmpty/controller.jsx';
138
+ export * from '../component/routerViewEmpty/controller.tsx';
139
139
 
140
140
  import 'zova';
141
141
  declare module 'zova' {
@@ -151,7 +151,7 @@ declare module 'zova-module-a-router' {
151
151
  }
152
152
  /** controller: end */
153
153
  /** controller: begin */
154
- import type { ControllerRouterViewEmpty } from '../component/routerViewEmpty/controller.jsx';
154
+ import type { ControllerRouterViewEmpty } from '../component/routerViewEmpty/controller.tsx';
155
155
  import 'zova';
156
156
  declare module 'zova' {
157
157
  export interface IBeanRecordLocal {
@@ -161,8 +161,8 @@ declare module 'zova' {
161
161
  /** controller: end */
162
162
 
163
163
  /** components: begin */
164
- export * from './component/routerViewEmpty.js';
165
- import { ZRouterViewEmpty } from './component/routerViewEmpty.js';
164
+ export * from './component/routerViewEmpty.ts';
165
+ import { ZRouterViewEmpty } from './component/routerViewEmpty.ts';
166
166
  export const components = {
167
167
  'routerViewEmpty': ZRouterViewEmpty,
168
168
  };
@@ -177,14 +177,14 @@ export interface IZovaComponentRecord {
177
177
  }
178
178
  /** components: end */
179
179
  /** config: begin */
180
- export * from '../config/config.js';
181
- import { config } from '../config/config.js';
180
+ export * from '../config/config.ts';
181
+ import { config } from '../config/config.ts';
182
182
  /** config: end */
183
183
  /** monkey: begin */
184
- export * from '../monkey.js';
184
+ export * from '../monkey.ts';
185
185
  /** monkey: end */
186
186
  /** monkeySys: begin */
187
- export * from '../monkeySys.js';
187
+ export * from '../monkeySys.ts';
188
188
  /** monkeySys: end */
189
189
  /** scope: begin */
190
190
  import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig } from 'zova';
@@ -1,2 +1,2 @@
1
1
  export const __ThisModule__ = 'a-router';
2
- export { ScopeModuleARouter as ScopeModule } from './index.js';
2
+ export { ScopeModuleARouter as ScopeModule } from './index.ts';
@@ -9,14 +9,14 @@ import type {
9
9
  import { BeanBase, Use } from 'zova';
10
10
  import { Bean } from 'zova-module-a-bean';
11
11
 
12
- import { dispatchRouteDiscard } from '../lib/routeDiscard.js';
13
- import { RouterGuardDisposers } from '../lib/routerGuardDisposers.js';
14
- import { BeanRouterViewBase } from '../lib/routerViewBase.js';
15
- import { ModelPageData } from '../model/pageData.js';
16
- import { IPageMeta } from '../types/pageMeta.js';
17
- import { IRouteDiscardItem, TypeRouteDiscardReason } from '../types/routeDiscard.js';
18
- import { TypeErrorListener } from '../types/router.js';
19
- import { SysRouter } from './sys.router.js';
12
+ import { dispatchRouteDiscard } from '../lib/routeDiscard.ts';
13
+ import { RouterGuardDisposers } from '../lib/routerGuardDisposers.ts';
14
+ import { BeanRouterViewBase } from '../lib/routerViewBase.tsx';
15
+ import { ModelPageData } from '../model/pageData.ts';
16
+ import { IPageMeta } from '../types/pageMeta.ts';
17
+ import { IRouteDiscardItem, TypeRouteDiscardReason } from '../types/routeDiscard.ts';
18
+ import { TypeErrorListener } from '../types/router.ts';
19
+ import { SysRouter } from './sys.router.ts';
20
20
 
21
21
  export interface BeanRouterInitOptions {
22
22
  mainRouter?: boolean;
@@ -3,7 +3,7 @@ import type { TypeEventOff } from 'zova';
3
3
  import { BeanBase, Virtual } from 'zova';
4
4
  import { Bean } from 'zova-module-a-bean';
5
5
 
6
- import type { BeanRouter } from './bean.router.js';
6
+ import type { BeanRouter } from './bean.router.ts';
7
7
 
8
8
  @Bean()
9
9
  @Virtual()
@@ -19,14 +19,14 @@ import {
19
19
  import { BeanBase, cast, deepExtend, isHttpUrl } from 'zova';
20
20
  import { Sys } from 'zova-module-a-bean';
21
21
 
22
- import { getCurrentRoute, getRealRouteName, getRouteMatched, isRouterName } from '../lib/utils.js';
22
+ import { getCurrentRoute, getRealRouteName, getRouteMatched, isRouterName } from '../lib/utils.ts';
23
23
  import {
24
24
  IModuleRoute,
25
25
  IModuleRouteComponent,
26
26
  IPageNameRecord,
27
27
  IPagePathRecord,
28
- } from '../types/router.js';
29
- import { SymbolRouterHistory } from '../types/utils.js';
28
+ } from '../types/router.ts';
29
+ import { SymbolRouterHistory } from '../types/utils.ts';
30
30
 
31
31
  export interface SysRouter extends Router {}
32
32
 
@@ -3,8 +3,8 @@ import { h } from 'vue';
3
3
  import { cast } from 'zova';
4
4
  import { Controller } from 'zova-module-a-bean';
5
5
 
6
- import { pageRouteKey } from '../../lib/const.js';
7
- import { BeanRouterViewBase } from '../../lib/routerViewBase.js';
6
+ import { pageRouteKey } from '../../lib/const.ts';
7
+ import { BeanRouterViewBase } from '../../lib/routerViewBase.tsx';
8
8
 
9
9
  @Controller()
10
10
  export class ControllerRouterViewEmpty extends BeanRouterViewBase {
@@ -1,6 +1,6 @@
1
1
  import type { ZovaSys } from 'zova';
2
2
 
3
- import { scrollBehavior } from '../lib/utils.js';
3
+ import { scrollBehavior } from '../lib/utils.ts';
4
4
 
5
5
  export const config = (_sys: ZovaSys) => {
6
6
  return {
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './.metadata/index.js';
2
- export * from './lib/index.js';
3
- export * from './types/index.js';
1
+ export * from './.metadata/index.ts';
2
+ export * from './lib/index.ts';
3
+ export * from './types/index.ts';
package/src/lib/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './const.js';
2
- export * from './routerViewBase.jsx';
3
- export * from './utils.js';
1
+ export * from './const.ts';
2
+ export * from './routerViewBase.tsx';
3
+ export * from './utils.ts';
@@ -1,4 +1,4 @@
1
- import type { IRouteDiscardEvent } from '../types/routeDiscard.js';
1
+ import type { IRouteDiscardEvent } from '../types/routeDiscard.ts';
2
2
 
3
3
  export function dispatchRouteDiscard(
4
4
  event: Omit<IRouteDiscardEvent, 'waitUntil'>,
@@ -4,10 +4,10 @@ import { RouterView } from '@cabloy/vue-router';
4
4
  import { h, KeepAlive, Transition } from 'vue';
5
5
  import { BeanControllerBase, cast } from 'zova';
6
6
 
7
- import type { IPageMeta } from '../types/pageMeta.js';
8
- import type { IRouterViewSlotParams, IRouteViewRouteMeta } from '../types/routerView.js';
7
+ import type { IPageMeta } from '../types/pageMeta.ts';
8
+ import type { IRouterViewSlotParams, IRouteViewRouteMeta } from '../types/routerView.ts';
9
9
 
10
- import { pageRouteKey, routerViewKey } from './const.js';
10
+ import { pageRouteKey, routerViewKey } from './const.ts';
11
11
 
12
12
  export interface IRouterViewPropsBase {}
13
13
 
package/src/lib/utils.ts CHANGED
@@ -10,7 +10,7 @@ import type { ZovaContext } from 'zova';
10
10
  import { routerViewLocationKey } from '@cabloy/vue-router';
11
11
  import { inject } from 'vue';
12
12
 
13
- import { pageRouteKey } from './const.js';
13
+ import { pageRouteKey } from './const.ts';
14
14
 
15
15
  export function getRouteMatched(
16
16
  route: RouteLocationNormalizedLoaded,
package/src/monkey.ts CHANGED
@@ -21,15 +21,15 @@ import * as ModuleInfo from '@cabloy/module-info';
21
21
  import { onActivated, onBeforeUnmount, onDeactivated, shallowReactive } from 'vue';
22
22
  import { BeanControllerPageBase, BeanSimple, cast, useComputed } from 'zova';
23
23
 
24
- import type { BeanRouter } from './bean/bean.router.js';
25
- import type { SysRouter } from './bean/sys.router.js';
26
- import type { IPageHost } from './types/pageHost.js';
27
- import type { TypePageSchema } from './types/router.js';
24
+ import type { BeanRouter } from './bean/bean.router.ts';
25
+ import type { SysRouter } from './bean/sys.router.ts';
26
+ import type { IPageHost } from './types/pageHost.ts';
27
+ import type { TypePageSchema } from './types/router.ts';
28
28
 
29
- import { pageHostKey, routerViewKey } from './lib/const.js';
30
- import { getCurrentRoute, getPageRoute, getRealRouteName, getRouteMatched } from './lib/utils.js';
31
- import { ServiceRouterGuards } from './service/routerGuards.js';
32
- import { SymbolRouterHistory } from './types/utils.js';
29
+ import { pageHostKey, routerViewKey } from './lib/const.ts';
30
+ import { getCurrentRoute, getPageRoute, getRealRouteName, getRouteMatched } from './lib/utils.ts';
31
+ import { ServiceRouterGuards } from './service/routerGuards.ts';
32
+ import { SymbolRouterHistory } from './types/utils.ts';
33
33
 
34
34
  export class Monkey
35
35
  extends BeanSimple
package/src/monkeySys.ts CHANGED
@@ -4,9 +4,9 @@ import type { ErrorSSR } from 'zova-module-a-ssr';
4
4
 
5
5
  import { BeanSimple, cast, isHttpUrl } from 'zova';
6
6
 
7
- import type { SysRouter } from './bean/sys.router.js';
8
- import type { TypeGotoPageResult } from './types/router.js';
9
- import type { IGotoPageOptions } from './types/utils.js';
7
+ import type { SysRouter } from './bean/sys.router.ts';
8
+ import type { TypeGotoPageResult } from './types/router.ts';
9
+ import type { IGotoPageOptions } from './types/utils.ts';
10
10
 
11
11
  export class MonkeySys
12
12
  extends BeanSimple
@@ -2,9 +2,9 @@ import * as ModuleInfo from '@cabloy/module-info';
2
2
  import { RouteLocationNormalizedLoadedGeneric } from '@cabloy/vue-router';
3
3
  import { Service } from 'zova-module-a-bean';
4
4
 
5
- import { BeanRouter } from '../bean/bean.router.js';
6
- import { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.js';
7
- import { NavigationDirection, NavigationInformation, NavigationType } from '../types/router.js';
5
+ import { BeanRouter } from '../bean/bean.router.ts';
6
+ import { BeanRouterGuardsBase } from '../bean/bean.routerGuardsBase.ts';
7
+ import { NavigationDirection, NavigationInformation, NavigationType } from '../types/router.ts';
8
8
 
9
9
  @Service()
10
10
  export class ServiceRouterGuards extends BeanRouterGuardsBase {
@@ -1,6 +1,6 @@
1
- export * from './pageHost.js';
2
- export * from './pageMeta.js';
3
- export * from './routeDiscard.js';
4
- export * from './router.js';
5
- export * from './routerView.js';
6
- export * from './utils.js';
1
+ export * from './pageHost.ts';
2
+ export * from './pageMeta.ts';
3
+ export * from './routeDiscard.ts';
4
+ export * from './router.ts';
5
+ export * from './routerView.ts';
6
+ export * from './utils.ts';
@@ -1,7 +1,7 @@
1
1
  import type { VNodeChild } from 'vue';
2
2
  import type { IFormMeta } from 'zova-module-a-openapi';
3
3
 
4
- import type { IRouteViewRouteItem, IRouteViewTabCurrent } from './routerView.js';
4
+ import type { IRouteViewRouteItem, IRouteViewTabCurrent } from './routerView.ts';
5
5
 
6
6
  export interface IPageMeta {
7
7
  pageTitle?: string;
@@ -1,4 +1,4 @@
1
- import type { BeanRouter } from '../bean/bean.router.js';
1
+ import type { BeanRouter } from '../bean/bean.router.ts';
2
2
 
3
3
  export type TypeRouteDiscardReason = 'back' | 'taskClose' | 'workspaceClose';
4
4
 
@@ -15,10 +15,10 @@ import type {
15
15
  ZovaApplication,
16
16
  } from 'zova';
17
17
 
18
- import type { BeanRouter } from '../bean/bean.router.js';
19
- import type { BeanRouterViewBase } from '../lib/routerViewBase.js';
20
- import type { IPageHost } from './pageHost.js';
21
- import type { IGetPagePathOptions, IGotoPageOptions } from './utils.js';
18
+ import type { BeanRouter } from '../bean/bean.router.ts';
19
+ import type { BeanRouterViewBase } from '../lib/routerViewBase.tsx';
20
+ import type { IPageHost } from './pageHost.ts';
21
+ import type { IGetPagePathOptions, IGotoPageOptions } from './utils.ts';
22
22
  import 'vue-router';
23
23
 
24
24
  export type Lazy<T> = () => Promise<T>;
@@ -1,7 +1,7 @@
1
1
  import type { RouteLocationNormalizedLoaded } from '@cabloy/vue-router';
2
2
  import type { ComponentInternalInstance } from 'vue';
3
3
 
4
- import type { IPageMeta } from './pageMeta.js';
4
+ import type { IPageMeta } from './pageMeta.ts';
5
5
 
6
6
  export interface IRouteViewRouteItemBase {
7
7
  componentKey: string;