cabloy 5.1.174 → 5.1.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cabloy-version +1 -1
- package/.claude/scheduled_tasks.lock +1 -1
- package/.claude/skills/cabloy-frontend-scaffold/SKILL.md +4 -0
- package/CHANGELOG.md +25 -0
- package/package.json +2 -2
- package/repo-docs/.vitepress/config.mjs +7 -0
- package/repo-docs/frontend/a-model-under-the-hood.md +11 -0
- package/repo-docs/frontend/behavior-guide.md +73 -0
- package/repo-docs/frontend/column-configuration-guide.md +254 -0
- package/repo-docs/frontend/component-guide.md +2 -29
- package/repo-docs/frontend/controller-boundary-guide.md +229 -0
- package/repo-docs/frontend/introduction.md +4 -0
- package/repo-docs/frontend/page-route-guide.md +6 -0
- package/repo-docs/frontend/resource-picker-guide.md +223 -0
- package/repo-docs/frontend/rest-resource-source-reading-map.md +37 -21
- package/repo-docs/frontend/rest-resource-under-the-hood.md +50 -30
- package/repo-docs/frontend/routed-dialog-guide.md +471 -0
- package/repo-docs/frontend/router-stack-guide.md +4 -2
- package/repo-docs/frontend/router-view-hosts-guide.md +3 -2
- package/repo-docs/frontend/ssr-client-only.md +6 -0
- package/repo-docs/frontend/table-guide.md +2 -1
- package/repo-docs/frontend/table-resource-crud-cookbook.md +1 -0
- package/repo-docs/frontend/use-state-data-best-practices.md +26 -0
- package/repo-docs/fullstack/a-pay-payment-suite.md +31 -17
- package/repo-e2e/specs/cabloy-basic.spec.ts +11 -0
- package/repo-e2e/specs/controller-boundary.spec.ts +1 -2
- package/test-results/.last-run.json +1 -1
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/packages-vona/vona-core/package.json +1 -1
- package/vona/packages-vona/vona-core/src/lib/utils/util.ts +1 -0
- package/vona/packages-vona/vona-mock/package.json +1 -1
- package/vona/src/suite/a-training/modules/training-student/test/student.test.ts +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/test/layoutprofile.test.ts +2 -3
- package/vona/src/suite-vendor/a-cabloy/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-executor/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-executor/src/service/executor.ts +6 -1
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/package.original.json +1 -1
- package/zova/packages-zova/zova/package.json +2 -2
- package/zova/pnpm-lock.yaml +45 -38
- package/zova/src/suite/a-commerce/modules/commerce-catalog/src/page/product/controller.tsx +4 -3
- package/zova/src/suite/a-commerce/modules/commerce-member/src/page/address/controller.tsx +4 -3
- package/zova/src/suite/a-commerce/modules/commerce-trade/package.json +3 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/component/tableCellActionAdjustStock/controller.tsx +3 -2
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/component/tableCellActionRefund/controller.tsx +16 -20
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/component/tableCellActionShip/controller.tsx +3 -2
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/cart/controller.tsx +6 -5
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/checkout/controller.tsx +5 -4
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/order/controller.tsx +4 -4
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/payment/controller.tsx +1 -1
- package/zova/src/suite/a-demo/modules/demo-basic/src/page/controllerBoundary/controller.tsx +2 -2
- package/zova/src/suite/a-training/modules/training-student/src/bean/tableCell.actionDeleteForce.tsx +4 -4
- package/zova/src/suite/a-training/modules/training-student/src/bean/tableCell.actionSummary.tsx +4 -4
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/monkey.ts +11 -0
- package/zova/src/suite/cabloy-basic/modules/basic-app/src/types/appModal.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-app/test/lib/routedDialogContext.test.ts +60 -0
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/bean/tableCell.actionUpdate.tsx +4 -4
- package/zova/src/suite/cabloy-basic/modules/basic-details/src/component/actionCreate/controller.tsx +4 -4
- package/zova/src/suite/cabloy-basic/modules/basic-metrics/src/page/dashboard/controller.tsx +8 -2
- package/zova/src/{suite-vendor/a-zova/modules/a-boundary → suite/cabloy-basic/modules/basic-pay}/package.json +13 -5
- package/zova/src/{suite-vendor/a-pay/modules/a-pay → suite/cabloy-basic/modules/basic-pay}/src/.metadata/component/paymentNextAction.ts +2 -2
- package/zova/src/suite/cabloy-basic/modules/basic-pay/src/.metadata/index.ts +68 -0
- package/zova/src/suite/cabloy-basic/modules/basic-pay/src/.metadata/this.ts +2 -0
- package/zova/src/{suite-vendor/a-pay/modules/a-pay → suite/cabloy-basic/modules/basic-pay}/src/component/paymentNextAction/controller.tsx +13 -24
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/bean/tableCell.actionUpdate.tsx +4 -4
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/actionCreate/controller.tsx +4 -4
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/actionDeleteBulk/controller.tsx +4 -4
- package/zova/src/suite/cabloy-basic/package.json +1 -0
- package/zova/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +4 -46
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/types/payment.ts +13 -0
- package/zova/src/suite-vendor/a-pay/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-router/src/monkey.ts +17 -3
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +1 -2
- package/zova/src/suite-vendor/a-zova/package.json +3 -4
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/LICENSE +0 -21
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/src/.metadata/index.ts +0 -26
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/src/.metadata/this.ts +0 -2
- /package/zova/src/{suite-vendor/a-zova/modules/a-boundary → suite/cabloy-basic/modules/basic-pay}/src/index.ts +0 -0
- /package/zova/src/{suite-vendor/a-zova/modules/a-boundary → suite/cabloy-basic/modules/basic-pay}/tsconfig.build.json +0 -0
- /package/zova/src/{suite-vendor/a-zova/modules/a-boundary → suite/cabloy-basic/modules/basic-pay}/tsconfig.json +0 -0
|
@@ -1,22 +1,11 @@
|
|
|
1
|
+
import type { IPaymentNextActionProps } from 'zova-module-a-pay';
|
|
2
|
+
|
|
1
3
|
import { BeanControllerBase, Use } from 'zova';
|
|
2
4
|
import { Controller } from 'zova-module-a-bean';
|
|
5
|
+
import { ServicePaymentCoordinator } from 'zova-module-a-pay';
|
|
6
|
+
import { ZButton } from 'zova-module-basic-button';
|
|
3
7
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { ServicePaymentCoordinator } from '../../service/paymentCoordinator.js';
|
|
7
|
-
|
|
8
|
-
export interface ControllerPaymentNextActionProps {
|
|
9
|
-
action?: TypePaymentNextAction;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
continueToPaymentText?: string;
|
|
12
|
-
continueToPaymentHelpText?: string;
|
|
13
|
-
embeddedCheckoutUnavailableText?: string;
|
|
14
|
-
paymentCompletedText?: string;
|
|
15
|
-
paymentPreparingText?: string;
|
|
16
|
-
paymentPreparingRetryText?: (retryAfterSeconds: number) => string;
|
|
17
|
-
refreshPaymentStatusText?: string;
|
|
18
|
-
onRefresh?: () => void | Promise<void>;
|
|
19
|
-
}
|
|
8
|
+
export interface ControllerPaymentNextActionProps extends IPaymentNextActionProps {}
|
|
20
9
|
|
|
21
10
|
@Controller()
|
|
22
11
|
export class ControllerPaymentNextAction extends BeanControllerBase {
|
|
@@ -26,8 +15,8 @@ export class ControllerPaymentNextAction extends BeanControllerBase {
|
|
|
26
15
|
$$paymentCoordinator: ServicePaymentCoordinator;
|
|
27
16
|
|
|
28
17
|
async continueRedirect() {
|
|
29
|
-
const action = this.$props
|
|
30
|
-
if (action?.kind !== 'redirect' ||
|
|
18
|
+
const { action, disabled } = this.$props as IPaymentNextActionProps;
|
|
19
|
+
if (action?.kind !== 'redirect' || disabled) return;
|
|
31
20
|
await this.$$paymentCoordinator.execute(action);
|
|
32
21
|
}
|
|
33
22
|
|
|
@@ -43,19 +32,19 @@ export class ControllerPaymentNextAction extends BeanControllerBase {
|
|
|
43
32
|
paymentPreparingRetryText,
|
|
44
33
|
refreshPaymentStatusText,
|
|
45
34
|
onRefresh,
|
|
46
|
-
} = this.$props as
|
|
35
|
+
} = this.$props as IPaymentNextActionProps;
|
|
47
36
|
if (!action) return null;
|
|
48
37
|
if (action.kind === 'redirect') {
|
|
49
38
|
return (
|
|
50
39
|
<div class="mt-6 space-y-3">
|
|
51
40
|
<p class="text-base-content/70">{continueToPaymentHelpText}</p>
|
|
52
|
-
<
|
|
41
|
+
<ZButton
|
|
53
42
|
class="btn btn-primary"
|
|
54
43
|
disabled={disabled}
|
|
55
|
-
|
|
44
|
+
onPerform={() => this.continueRedirect()}
|
|
56
45
|
>
|
|
57
46
|
{continueToPaymentText}
|
|
58
|
-
</
|
|
47
|
+
</ZButton>
|
|
59
48
|
</div>
|
|
60
49
|
);
|
|
61
50
|
}
|
|
@@ -68,9 +57,9 @@ export class ControllerPaymentNextAction extends BeanControllerBase {
|
|
|
68
57
|
: paymentPreparingText}
|
|
69
58
|
</p>
|
|
70
59
|
{onRefresh && (
|
|
71
|
-
<
|
|
60
|
+
<ZButton class="btn btn-outline" disabled={disabled} onPerform={() => onRefresh()}>
|
|
72
61
|
{refreshPaymentStatusText}
|
|
73
|
-
</
|
|
62
|
+
</ZButton>
|
|
74
63
|
)}
|
|
75
64
|
</div>
|
|
76
65
|
);
|
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
import { BeanBase } from 'zova';
|
|
9
9
|
import { ZIcon } from 'zova-module-a-icon';
|
|
10
10
|
import { TableCell } from 'zova-module-a-table';
|
|
11
|
+
import { ZButton } from 'zova-module-basic-button';
|
|
11
12
|
|
|
12
13
|
declare module 'zova-module-a-openapi' {
|
|
13
14
|
export interface IResourceTableActionRowRecord {
|
|
@@ -28,15 +29,14 @@ export class TableCellActionUpdate extends BeanBase implements ITableCellRender
|
|
|
28
29
|
) {
|
|
29
30
|
const { $host } = renderContext;
|
|
30
31
|
return (
|
|
31
|
-
<
|
|
32
|
+
<ZButton
|
|
32
33
|
class={options.class}
|
|
33
|
-
|
|
34
|
-
onClick={async () => {
|
|
34
|
+
onPerform={async () => {
|
|
35
35
|
await $host.$performCommand('basic-commands:edit', options, renderContext);
|
|
36
36
|
}}
|
|
37
37
|
>
|
|
38
38
|
<ZIcon name="::draft" width={24}></ZIcon>
|
|
39
|
-
</
|
|
39
|
+
</ZButton>
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
}
|
package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/actionCreate/controller.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
|
|
7
7
|
import { BeanControllerBase, Use } from 'zova';
|
|
8
8
|
import { Controller } from 'zova-module-a-bean';
|
|
9
|
+
import { ZButton } from 'zova-module-basic-button';
|
|
9
10
|
|
|
10
11
|
declare module 'zova-module-a-openapi' {
|
|
11
12
|
export interface IResourceTableActionBulkRecord {
|
|
@@ -28,17 +29,16 @@ export class ControllerActionCreate extends BeanControllerBase {
|
|
|
28
29
|
protected render() {
|
|
29
30
|
const disabled = this.$props.disabled === true || this.$props.dynamicDisabled === true;
|
|
30
31
|
return (
|
|
31
|
-
<
|
|
32
|
+
<ZButton
|
|
32
33
|
class={this.$props.class}
|
|
33
|
-
type="button"
|
|
34
34
|
disabled={disabled}
|
|
35
|
-
|
|
35
|
+
onPerform={async () => {
|
|
36
36
|
if (disabled) return;
|
|
37
37
|
await this.$performCommand('basic-commands:create', this.$props, this.$$renderContext);
|
|
38
38
|
}}
|
|
39
39
|
>
|
|
40
40
|
{this.scope.locale.Create()}
|
|
41
|
-
</
|
|
41
|
+
</ZButton>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
|
|
7
7
|
import { BeanControllerBase, Use } from 'zova';
|
|
8
8
|
import { Controller } from 'zova-module-a-bean';
|
|
9
|
+
import { ZButton } from 'zova-module-basic-button';
|
|
9
10
|
|
|
10
11
|
declare module 'zova-module-a-openapi' {
|
|
11
12
|
export interface IResourceTableActionBulkRecord {
|
|
@@ -27,13 +28,12 @@ export class ControllerActionDeleteBulk extends BeanControllerBase {
|
|
|
27
28
|
const { dynamicDisabledReason, dynamicSelection } = this.$props;
|
|
28
29
|
const disabled = this.$props.disabled === true || this.$props.dynamicDisabled === true;
|
|
29
30
|
return (
|
|
30
|
-
<
|
|
31
|
+
<ZButton
|
|
31
32
|
class={this.$props.class}
|
|
32
|
-
type="button"
|
|
33
33
|
disabled={disabled}
|
|
34
34
|
title={dynamicDisabledReason}
|
|
35
35
|
aria-description={dynamicDisabledReason}
|
|
36
|
-
|
|
36
|
+
onPerform={async () => {
|
|
37
37
|
if (disabled) return;
|
|
38
38
|
const confirmed = await this.$performCommand(
|
|
39
39
|
'basic-commands:confirm',
|
|
@@ -51,7 +51,7 @@ export class ControllerActionDeleteBulk extends BeanControllerBase {
|
|
|
51
51
|
}}
|
|
52
52
|
>
|
|
53
53
|
{this.scope.locale.DeleteBulk() as string}
|
|
54
|
-
</
|
|
54
|
+
</ZButton>
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"zova-module-basic-metrics": "workspace:",
|
|
25
25
|
"zova-module-basic-page": "^5.0.7",
|
|
26
26
|
"zova-module-basic-pageentry": "^5.0.7",
|
|
27
|
+
"zova-module-basic-pay": "^5.0.0",
|
|
27
28
|
"zova-module-basic-resource": "^5.0.0",
|
|
28
29
|
"zova-module-basic-select": "^5.0.4",
|
|
29
30
|
"zova-module-basic-table": "^5.0.6",
|
|
@@ -26,7 +26,7 @@ declare module 'zova-module-a-pay' {
|
|
|
26
26
|
}
|
|
27
27
|
/** model: end */
|
|
28
28
|
/** model: begin */
|
|
29
|
-
import { ModelPaymentSession } from '../model/paymentSession.js';
|
|
29
|
+
import type { ModelPaymentSession } from '../model/paymentSession.js';
|
|
30
30
|
import 'zova';
|
|
31
31
|
declare module 'zova' {
|
|
32
32
|
export interface IBeanRecordGeneral {
|
|
@@ -57,7 +57,7 @@ declare module 'zova-module-a-pay' {
|
|
|
57
57
|
}
|
|
58
58
|
/** api: end */
|
|
59
59
|
/** api: begin */
|
|
60
|
-
import { ApiPayPaymentSession } from '../api/payPaymentSession.js';
|
|
60
|
+
import type { ApiPayPaymentSession } from '../api/payPaymentSession.js';
|
|
61
61
|
export interface IModuleApi {
|
|
62
62
|
'payPaymentSession': ApiPayPaymentSession;
|
|
63
63
|
}
|
|
@@ -97,7 +97,7 @@ declare module 'zova-module-a-pay' {
|
|
|
97
97
|
}
|
|
98
98
|
/** apiSchema: end */
|
|
99
99
|
/** apiSchema: begin */
|
|
100
|
-
import { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.js';
|
|
100
|
+
import type { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.js';
|
|
101
101
|
export interface IModuleApiSchema {
|
|
102
102
|
'payPaymentSession': ApiSchemaPayPaymentSession;
|
|
103
103
|
}
|
|
@@ -138,7 +138,7 @@ declare module 'zova-module-a-pay' {
|
|
|
138
138
|
}
|
|
139
139
|
/** service: end */
|
|
140
140
|
/** service: begin */
|
|
141
|
-
import { ServicePaymentCoordinator } from '../service/paymentCoordinator.js';
|
|
141
|
+
import type { ServicePaymentCoordinator } from '../service/paymentCoordinator.js';
|
|
142
142
|
import 'zova';
|
|
143
143
|
declare module 'zova' {
|
|
144
144
|
export interface IBeanRecordGeneral {
|
|
@@ -146,48 +146,6 @@ declare module 'zova' {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
/** service: end */
|
|
149
|
-
/** controller: begin */
|
|
150
|
-
export * from '../component/paymentNextAction/controller.jsx';
|
|
151
|
-
|
|
152
|
-
import 'zova';
|
|
153
|
-
declare module 'zova' {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
declare module 'zova-module-a-pay' {
|
|
158
|
-
|
|
159
|
-
export interface ControllerPaymentNextAction {
|
|
160
|
-
/** @internal */
|
|
161
|
-
get scope(): ScopeModuleAPay;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/** controller: end */
|
|
165
|
-
/** controller: begin */
|
|
166
|
-
import { ControllerPaymentNextAction } from '../component/paymentNextAction/controller.jsx';
|
|
167
|
-
import 'zova';
|
|
168
|
-
declare module 'zova' {
|
|
169
|
-
export interface IBeanRecordLocal {
|
|
170
|
-
'a-pay.controller.paymentNextAction': ControllerPaymentNextAction;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
/** controller: end */
|
|
174
|
-
|
|
175
|
-
/** components: begin */
|
|
176
|
-
export * from './component/paymentNextAction.js';
|
|
177
|
-
import { ZPaymentNextAction } from './component/paymentNextAction.js';
|
|
178
|
-
export const components = {
|
|
179
|
-
'paymentNextAction': ZPaymentNextAction,
|
|
180
|
-
};
|
|
181
|
-
import 'zova';
|
|
182
|
-
declare module 'zova' {
|
|
183
|
-
export interface IComponentRecord {
|
|
184
|
-
'a-pay:paymentNextAction': ControllerPaymentNextAction;
|
|
185
|
-
}
|
|
186
|
-
export interface IZovaComponentRecord {
|
|
187
|
-
'a-pay:paymentNextAction': typeof ZPaymentNextAction;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
/** components: end */
|
|
191
149
|
/** scope: begin */
|
|
192
150
|
import { BeanScopeBase, type BeanScopeUtil } from 'zova';
|
|
193
151
|
import { Scope } from 'zova-module-a-bean';
|
|
@@ -19,6 +19,19 @@ export interface IPaymentSessionView {
|
|
|
19
19
|
nextAction?: TypePaymentNextAction;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export interface IPaymentNextActionProps {
|
|
23
|
+
action?: TypePaymentNextAction;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
continueToPaymentText?: string;
|
|
26
|
+
continueToPaymentHelpText?: string;
|
|
27
|
+
embeddedCheckoutUnavailableText?: string;
|
|
28
|
+
paymentCompletedText?: string;
|
|
29
|
+
paymentPreparingText?: string;
|
|
30
|
+
paymentPreparingRetryText?: (retryAfterSeconds: number) => string;
|
|
31
|
+
refreshPaymentStatusText?: string;
|
|
32
|
+
onRefresh?: () => void | Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
|
|
22
35
|
export interface IPayUiProvider {
|
|
23
36
|
supports(action: TypePaymentNextAction): boolean;
|
|
24
37
|
execute(action: TypePaymentNextAction): Promise<void>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-suite-a-pay",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"files": [],
|
|
7
7
|
"type": "module",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"zova-module-a-pay": "^5.0.
|
|
9
|
+
"zova-module-a-pay": "^5.0.9",
|
|
10
10
|
"zova-module-pay-mock": "^5.0.5",
|
|
11
11
|
"zova-module-pay-paypal": "^5.0.2",
|
|
12
12
|
"zova-module-pay-stripe": "^5.0.2"
|
|
@@ -190,8 +190,6 @@ export class Monkey
|
|
|
190
190
|
// check if changed
|
|
191
191
|
const changed = !controller.$route || controller.$route.fullPath !== route.fullPath;
|
|
192
192
|
if (!changed) return;
|
|
193
|
-
controller.$route = route;
|
|
194
|
-
controller.$routeMatched = routeMatched;
|
|
195
193
|
// update $params/$query
|
|
196
194
|
const routeName = getRealRouteName(routeMatched.name);
|
|
197
195
|
const schemaKey = routeName || String(routeMatched.path);
|
|
@@ -205,7 +203,23 @@ export class Monkey
|
|
|
205
203
|
// do nothing
|
|
206
204
|
return;
|
|
207
205
|
}
|
|
208
|
-
const module = this.app.meta.module.get(moduleInfo.relativeName)
|
|
206
|
+
const module = this.app.meta.module.get(moduleInfo.relativeName, false);
|
|
207
|
+
if (!module) {
|
|
208
|
+
void this.app.meta.module
|
|
209
|
+
.use(moduleInfo.relativeName)
|
|
210
|
+
.then(() => {
|
|
211
|
+
if (cast(controller).ctx.disposed) return;
|
|
212
|
+
const currentRoute = getPageRoute(cast<ZovaContext>(cast(controller).ctx));
|
|
213
|
+
if (!currentRoute || currentRoute.fullPath !== route.fullPath) return;
|
|
214
|
+
this._initControllerRoute(currentRoute, controller);
|
|
215
|
+
})
|
|
216
|
+
.catch(err => {
|
|
217
|
+
console.error('failed to load route module', moduleInfo.relativeName, err);
|
|
218
|
+
});
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
controller.$route = route;
|
|
222
|
+
controller.$routeMatched = routeMatched;
|
|
209
223
|
if (routeName) {
|
|
210
224
|
schemas = module.resource.pageNameSchemas?.[schemaKey];
|
|
211
225
|
} else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.106",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "zova",
|
|
6
6
|
"keywords": [
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"a-app": "5.0.0",
|
|
71
71
|
"a-bean": "5.0.0",
|
|
72
72
|
"a-behavior": "5.0.0",
|
|
73
|
-
"a-boundary": "5.0.0",
|
|
74
73
|
"a-fetch": "5.0.0",
|
|
75
74
|
"a-form": "5.0.0",
|
|
76
75
|
"a-icon": "5.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-suite-a-zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.163",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "zova",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"zova-module-a-bean": "^5.1.36",
|
|
14
14
|
"zova-module-a-behavior": "^5.1.26",
|
|
15
15
|
"zova-module-a-behaviors": "^5.1.22",
|
|
16
|
-
"zova-module-a-boundary": "^5.1.22",
|
|
17
16
|
"zova-module-a-command": "^5.1.35",
|
|
18
17
|
"zova-module-a-fetch": "^5.1.25",
|
|
19
18
|
"zova-module-a-form": "^5.1.51",
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
"zova-module-a-meta": "^5.1.22",
|
|
24
23
|
"zova-module-a-model": "^5.1.37",
|
|
25
24
|
"zova-module-a-openapi": "^5.1.54",
|
|
26
|
-
"zova-module-a-router": "^5.1.
|
|
25
|
+
"zova-module-a-router": "^5.1.39",
|
|
27
26
|
"zova-module-a-routerstack": "^5.1.29",
|
|
28
27
|
"zova-module-a-routertabs": "^5.1.34",
|
|
29
28
|
"zova-module-a-ssr": "^5.1.40",
|
|
@@ -32,7 +31,7 @@
|
|
|
32
31
|
"zova-module-a-style": "^5.1.35",
|
|
33
32
|
"zova-module-a-table": "^5.1.43",
|
|
34
33
|
"zova-module-a-zod": "^5.1.37",
|
|
35
|
-
"zova-module-a-zova": "^5.1.
|
|
34
|
+
"zova-module-a-zova": "^5.1.106"
|
|
36
35
|
},
|
|
37
36
|
"title": "a-zova"
|
|
38
37
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2016-present Zova
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// eslint-disable
|
|
2
|
-
/** scope: begin */
|
|
3
|
-
import { BeanScopeBase, type BeanScopeUtil } from 'zova';
|
|
4
|
-
import { Scope } from 'zova-module-a-bean';
|
|
5
|
-
|
|
6
|
-
@Scope()
|
|
7
|
-
export class ScopeModuleABoundary extends BeanScopeBase {}
|
|
8
|
-
|
|
9
|
-
export interface ScopeModuleABoundary {
|
|
10
|
-
util: BeanScopeUtil;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
import 'zova';
|
|
14
|
-
declare module 'zova' {
|
|
15
|
-
export interface IBeanScopeRecord {
|
|
16
|
-
'a-boundary': ScopeModuleABoundary;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** scope: end */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|