cabloy 5.1.66 → 5.1.67
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/.claude/skills/cabloy-resource-field-update/SKILL.md +6 -0
- package/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/cli/templates/create/module/boilerplate/_package.json +1 -1
- package/vona/packages-cli/cli-set-api/package.json +2 -2
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/pnpm-lock.yaml +15 -0
- package/vona/src/suite/a-demo/modules/demo-basic/package.json +1 -1
- package/vona/src/suite/a-home/modules/home-base/package.json +1 -1
- package/vona/src/suite/a-home/modules/home-index/package.json +1 -1
- package/vona/src/suite/a-home/modules/home-user/package.json +1 -1
- package/vona/src/suite/a-training/modules/training-record/package.json +1 -1
- package/vona/src/suite/a-training/modules/training-record/src/.metadata/index.ts +232 -3
- package/vona/src/suite/a-training/modules/training-record/src/bean/ssrMenu.record.ts +29 -0
- package/vona/src/suite/a-training/modules/training-record/src/config/locale/en-us.ts +9 -1
- package/vona/src/suite/a-training/modules/training-record/src/config/locale/zh-cn.ts +9 -1
- package/vona/src/suite/a-training/modules/training-record/src/controller/record.ts +59 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/detailRecordSubjectBase.tsx +18 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/detailRecordSubjectMutate.tsx +17 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/detailRecordSubjectResItem.tsx +60 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/detailRecordSubjectView.tsx +17 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/recordCreate.tsx +45 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/recordSelectReq.tsx +38 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/recordSelectRes.tsx +11 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/recordSelectResItem.tsx +39 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/recordUpdate.tsx +45 -0
- package/vona/src/suite/a-training/modules/training-record/src/dto/recordView.tsx +42 -0
- package/vona/src/suite/a-training/modules/training-record/src/entity/record.tsx +23 -6
- package/vona/src/suite/a-training/modules/training-record/src/model/record.ts +15 -2
- package/vona/src/suite/a-training/modules/training-record/src/service/record.ts +50 -0
- package/vona/src/suite/a-training/modules/training-record/test/record.test.ts +138 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/package.json +53 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/.metadata/index.ts +198 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/.metadata/locales.ts +18 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/.metadata/this.ts +2 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/bean/meta.index.ts +12 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/bean/meta.version.ts +21 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/config/locale/en-us.ts +9 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/config/locale/zh-cn.ts +9 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/entity/subject.tsx +42 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/index.ts +2 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/src/model/subject.ts +10 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/tsconfig.build.json +11 -0
- package/vona/src/suite/a-training/modules/training-recordsubject/tsconfig.json +7 -0
- package/vona/src/suite/a-training/modules/training-student/package.json +1 -1
- package/vona/src/suite/a-training/modules/training-student/src/config/locale/en-us.ts +8 -4
- package/vona/src/suite/a-training/modules/training-student/src/config/locale/zh-cn.ts +8 -4
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordBase.tsx +10 -1
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordMutate.tsx +11 -2
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordResItem.tsx +1 -0
- package/vona/src/suite/a-training/modules/training-student/src/dto/detailRecordView.tsx +11 -2
- package/vona/src/suite/a-training/modules/training-student/src/entity/student.tsx +2 -0
- package/vona/src/suite/a-training/modules/training-student/src/service/student.ts +17 -5
- package/vona/src/suite/a-training/modules/training-student/test/student.test.ts +69 -15
- package/vona/src/suite/a-training/package.json +1 -0
- package/vona/src/suite/a-training/tsconfig.json +3 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteadmin/package.json +1 -1
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/package.json +1 -1
- package/vona/src/suite-vendor/a-auth/modules/a-auth/package.json +2 -2
- package/vona/src/suite-vendor/a-auth/modules/auth-oauth/package.json +2 -2
- package/vona/src/suite-vendor/a-auth/modules/auth-simple/package.json +2 -2
- package/vona/src/suite-vendor/a-auth/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-cabloy/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-datasharding/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-datasource/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-socket/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssrhmr/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/package.json +2 -2
- package/vona/src/suite-vendor/a-cabloy/package.json +1 -1
- package/vona/src/suite-vendor/a-captcha/modules/a-captcha/package.json +2 -2
- package/vona/src/suite-vendor/a-captcha/modules/captcha-simple/package.json +2 -2
- package/vona/src/suite-vendor/a-captcha/package.json +1 -1
- package/vona/src/suite-vendor/a-paypal/modules/a-paypal/package.json +2 -2
- package/vona/src/suite-vendor/a-paypal/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-aspect/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-aspectutils/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-bean/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-beanmutate/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-body/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-broadcast/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-cache/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-caching/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-election/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-error/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-event/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-executor/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-hmr/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-hmrbase/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-index/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-instance/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-jwt/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-locale/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-logger/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-mail/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-mailconfirm/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-menu/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-meta/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-onion/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-openapi/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-openapischema/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-openapiutils/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-orm/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/lib/dto/dtoGet.ts +4 -0
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/lib/dto/dtoMutate.ts +5 -3
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/lib/utils.ts +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-orm/src/service/relations_.ts +5 -0
- package/vona/src/suite-vendor/a-vona/modules/a-ormdialect/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-ormutils/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-permission/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-play/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-printtip/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-queue/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-redis/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-redlock/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-runtime/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-schedule/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-security/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-serialization/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-startup/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-static/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-summer/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-swagger/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-upload/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-user/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-validation/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-version/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-vona/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-web/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-worker/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/modules/a-zod/package.json +2 -2
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/packages-cli/cli/package.json +2 -2
- package/zova/packages-cli/cli-set-front/cli/templates/create/module/boilerplate/_package.json +1 -1
- package/zova/packages-cli/cli-set-front/package.json +2 -2
- package/zova/packages-zova/zova/package.json +2 -2
- package/zova/pnpm-lock.yaml +144 -100
- package/zova/src/suite/a-demo/modules/demo-basic/package.json +1 -1
- package/zova/src/suite/a-demo/modules/demo-todo/package.json +1 -1
- package/zova/src/suite/a-devui/modules/devui-adapter/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-api/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-base/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-icon/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-indexadmin/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-indexweb/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-layoutadmin/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-layoutempty/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-layoutweb/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-login/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-passport/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-theme/package.json +1 -1
- package/zova/src/suite/a-training/modules/training-student/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-adapter/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-app/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-captcha/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-commands/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-commandssync/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-currency/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-date/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-details/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-form/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-input/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-page/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-pageentry/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-resource/package.json +52 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/.metadata/component/formFieldResourcePicker.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/.metadata/index.ts +103 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/.metadata/this.ts +2 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/bean/tableCell.resourcePicker.tsx +46 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/component/formFieldResourcePicker/controller.tsx +157 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/src/index.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/tsconfig.build.json +13 -0
- package/zova/src/suite/cabloy-basic/modules/basic-resource/tsconfig.json +5 -0
- package/zova/src/suite/cabloy-basic/modules/basic-select/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-table/package.json +1 -1
- package/zova/src/suite/cabloy-basic/modules/basic-text/package.json +1 -1
- package/zova/src/suite/cabloy-basic/package.json +1 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/package.json +2 -2
- package/zova/src/suite-vendor/a-cabloy/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-api/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-app/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-bean/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-behavior/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-behaviors/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-command/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-fetch/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-icon/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-interceptor/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-logger/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-meta/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-model/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-model/src/bean/bean.model/bean.model.useQuery.ts +2 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/model/sdk.ts +4 -0
- package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-routerstack/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-routertabs/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-style/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-zod/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/package.json +26 -26
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
4
|
+
import { Dto } from 'vona-module-a-web';
|
|
5
|
+
import { ModelSubject } from 'vona-module-training-recordsubject';
|
|
6
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
7
|
+
|
|
8
|
+
import { DtoDetailRecordSubjectBase } from './detailRecordSubjectBase.tsx';
|
|
9
|
+
|
|
10
|
+
export interface IDtoOptionsDetailRecordSubjectView extends IDecoratorDtoOptions {}
|
|
11
|
+
|
|
12
|
+
@Dto<IDtoOptionsDetailRecordSubjectView>({
|
|
13
|
+
blocks: [ZovaRender.block('basic-details:blockForm')],
|
|
14
|
+
})
|
|
15
|
+
export class DtoDetailRecordSubjectView extends $Dto.get(() => ModelSubject, {
|
|
16
|
+
dtoClass: DtoDetailRecordSubjectBase,
|
|
17
|
+
}) {}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { $makeMetadata, Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
5
|
+
import { Dto } from 'vona-module-a-web';
|
|
6
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
7
|
+
|
|
8
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
9
|
+
import { ModelRecord } from '../model/record.ts';
|
|
10
|
+
import { DtoDetailRecordSubjectMutate } from './detailRecordSubjectMutate.tsx';
|
|
11
|
+
import { DtoDetailRecordSubjectResItem } from './detailRecordSubjectResItem.tsx';
|
|
12
|
+
|
|
13
|
+
export interface IDtoOptionsRecordCreate extends IDecoratorDtoOptions {}
|
|
14
|
+
|
|
15
|
+
@Dto<IDtoOptionsRecordCreate>({
|
|
16
|
+
blocks: [
|
|
17
|
+
ZovaRender.block('basic-pageentry:blockPageEntry', {
|
|
18
|
+
blocks: [
|
|
19
|
+
ZovaRender.block('basic-pageentry:blockForm'),
|
|
20
|
+
ZovaRender.block('basic-pageentry:blockToolbarRow', {
|
|
21
|
+
actions: [
|
|
22
|
+
ZovaRender.formActionRow('basic-form:actionSubmit', {
|
|
23
|
+
permission: { actionInherit: 'update', formScene: ['create', 'edit'] },
|
|
24
|
+
}),
|
|
25
|
+
ZovaRender.formActionRow('basic-form:actionBack', { permission: { public: true } }),
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
31
|
+
fields: {
|
|
32
|
+
trainingRecordSubjects: $makeMetadata(
|
|
33
|
+
v.title($locale('TrainingRecordSubjects')),
|
|
34
|
+
ZovaRender.order(5),
|
|
35
|
+
ZovaRender.field('basic-details:formFieldDetails'),
|
|
36
|
+
v.optional(),
|
|
37
|
+
),
|
|
38
|
+
},
|
|
39
|
+
})
|
|
40
|
+
export class DtoRecordCreate extends $Dto.create(() => ModelRecord, {
|
|
41
|
+
include: { trainingRecordSubjects: { dtoClass: DtoDetailRecordSubjectMutate } },
|
|
42
|
+
}) {
|
|
43
|
+
@Api.field(ZovaRender.visible(false), v.optional(), v.array(DtoDetailRecordSubjectResItem))
|
|
44
|
+
_trainingRecordSubjects?: DtoDetailRecordSubjectResItem[];
|
|
45
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { $makeSchema, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
5
|
+
import { Dto } from 'vona-module-a-web';
|
|
6
|
+
import z from 'zod';
|
|
7
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
8
|
+
|
|
9
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
10
|
+
import { EntityRecord } from '../entity/record.tsx';
|
|
11
|
+
|
|
12
|
+
export interface IDtoOptionsRecordSelectReq extends IDecoratorDtoOptions {}
|
|
13
|
+
|
|
14
|
+
@Dto<IDtoOptionsRecordSelectReq>({
|
|
15
|
+
openapi: { filter: { table: 'trainingRecord' } },
|
|
16
|
+
fields: {
|
|
17
|
+
name: $makeSchema(v.optional(), z.string()),
|
|
18
|
+
studentId: $makeSchema(
|
|
19
|
+
v.title($locale('Student')),
|
|
20
|
+
// ZovaRender.field('basic-resource:formFieldResourcePicker', {
|
|
21
|
+
// resource: $resourceName('training-student:student'),
|
|
22
|
+
// }),
|
|
23
|
+
v.optional(),
|
|
24
|
+
z.number(),
|
|
25
|
+
),
|
|
26
|
+
createdAt: $makeSchema(
|
|
27
|
+
ZovaRender.field('basic-date:formFieldDateRange'),
|
|
28
|
+
v.filterTransform('a-web:dateRange'),
|
|
29
|
+
v.optional(),
|
|
30
|
+
z.string(),
|
|
31
|
+
),
|
|
32
|
+
},
|
|
33
|
+
})
|
|
34
|
+
export class DtoRecordSelectReq extends $Dto.queryPage(EntityRecord, [
|
|
35
|
+
'name',
|
|
36
|
+
'studentId',
|
|
37
|
+
'createdAt',
|
|
38
|
+
]) {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
4
|
+
import { Dto } from 'vona-module-a-web';
|
|
5
|
+
|
|
6
|
+
import { DtoRecordSelectResItem } from './recordSelectResItem.tsx';
|
|
7
|
+
|
|
8
|
+
export interface IDtoOptionsRecordSelectRes extends IDecoratorDtoOptions {}
|
|
9
|
+
|
|
10
|
+
@Dto<IDtoOptionsRecordSelectRes>()
|
|
11
|
+
export class DtoRecordSelectRes extends $Dto.listAndCount(DtoRecordSelectResItem) {}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
5
|
+
import { Dto } from 'vona-module-a-web';
|
|
6
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
7
|
+
|
|
8
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
9
|
+
import { ModelRecord } from '../model/record.ts';
|
|
10
|
+
|
|
11
|
+
export interface IDtoOptionsRecordSelectResItem extends IDecoratorDtoOptions {}
|
|
12
|
+
|
|
13
|
+
@Dto<IDtoOptionsRecordSelectResItem>({
|
|
14
|
+
blocks: [
|
|
15
|
+
ZovaRender.block('basic-page:blockPage', {
|
|
16
|
+
blocks: [
|
|
17
|
+
ZovaRender.block('basic-page:blockFilter'),
|
|
18
|
+
ZovaRender.block('basic-page:blockToolbarBulk', {
|
|
19
|
+
actions: [ZovaRender.tableActionBulk('basic-table:actionCreate')],
|
|
20
|
+
}),
|
|
21
|
+
ZovaRender.block('basic-page:blockTable'),
|
|
22
|
+
ZovaRender.block('basic-page:blockPager'),
|
|
23
|
+
],
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
})
|
|
27
|
+
export class DtoRecordSelectResItem extends $Dto.get(() => ModelRecord) {
|
|
28
|
+
@Api.field(
|
|
29
|
+
v.title($locale('Operations')),
|
|
30
|
+
ZovaRender.order(1, 'max'),
|
|
31
|
+
ZovaRender.cell('basic-table:actionOperationsRow', {
|
|
32
|
+
actions: [
|
|
33
|
+
ZovaRender.tableActionRow('basic-table:actionUpdate'),
|
|
34
|
+
ZovaRender.tableActionRow('basic-table:actionDelete'),
|
|
35
|
+
],
|
|
36
|
+
}),
|
|
37
|
+
)
|
|
38
|
+
_operationsRow?: unknown;
|
|
39
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { $makeMetadata, Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
5
|
+
import { Dto } from 'vona-module-a-web';
|
|
6
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
7
|
+
|
|
8
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
9
|
+
import { ModelRecord } from '../model/record.ts';
|
|
10
|
+
import { DtoDetailRecordSubjectMutate } from './detailRecordSubjectMutate.tsx';
|
|
11
|
+
import { DtoDetailRecordSubjectResItem } from './detailRecordSubjectResItem.tsx';
|
|
12
|
+
|
|
13
|
+
export interface IDtoOptionsRecordUpdate extends IDecoratorDtoOptions {}
|
|
14
|
+
|
|
15
|
+
@Dto<IDtoOptionsRecordUpdate>({
|
|
16
|
+
blocks: [
|
|
17
|
+
ZovaRender.block('basic-pageentry:blockPageEntry', {
|
|
18
|
+
blocks: [
|
|
19
|
+
ZovaRender.block('basic-pageentry:blockForm'),
|
|
20
|
+
ZovaRender.block('basic-pageentry:blockToolbarRow', {
|
|
21
|
+
actions: [
|
|
22
|
+
ZovaRender.formActionRow('basic-form:actionSubmit', {
|
|
23
|
+
permission: { actionInherit: 'update', formScene: ['create', 'edit'] },
|
|
24
|
+
}),
|
|
25
|
+
ZovaRender.formActionRow('basic-form:actionBack', { permission: { public: true } }),
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
31
|
+
fields: {
|
|
32
|
+
trainingRecordSubjects: $makeMetadata(
|
|
33
|
+
v.title($locale('TrainingRecordSubjects')),
|
|
34
|
+
ZovaRender.order(5),
|
|
35
|
+
ZovaRender.field('basic-details:formFieldDetails'),
|
|
36
|
+
v.optional(),
|
|
37
|
+
),
|
|
38
|
+
},
|
|
39
|
+
})
|
|
40
|
+
export class DtoRecordUpdate extends $Dto.update(() => ModelRecord, {
|
|
41
|
+
include: { trainingRecordSubjects: { dtoClass: DtoDetailRecordSubjectMutate } },
|
|
42
|
+
}) {
|
|
43
|
+
@Api.field(ZovaRender.visible(false), v.optional(), v.array(DtoDetailRecordSubjectResItem))
|
|
44
|
+
_trainingRecordSubjects?: DtoDetailRecordSubjectResItem[];
|
|
45
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
|
|
3
|
+
import { $makeMetadata, Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { $Dto } from 'vona-module-a-orm';
|
|
5
|
+
import { Dto } from 'vona-module-a-web';
|
|
6
|
+
import { ZovaRender } from 'zova-rest-cabloy-basic-admin';
|
|
7
|
+
|
|
8
|
+
import { $locale } from '../.metadata/locales.ts';
|
|
9
|
+
import { ModelRecord } from '../model/record.ts';
|
|
10
|
+
import { DtoDetailRecordSubjectResItem } from './detailRecordSubjectResItem.tsx';
|
|
11
|
+
import { DtoDetailRecordSubjectView } from './detailRecordSubjectView.tsx';
|
|
12
|
+
|
|
13
|
+
export interface IDtoOptionsRecordView extends IDecoratorDtoOptions {}
|
|
14
|
+
|
|
15
|
+
@Dto<IDtoOptionsRecordView>({
|
|
16
|
+
blocks: [
|
|
17
|
+
ZovaRender.block('basic-pageentry:blockPageEntry', {
|
|
18
|
+
blocks: [
|
|
19
|
+
ZovaRender.block('basic-pageentry:blockForm'),
|
|
20
|
+
ZovaRender.block('basic-pageentry:blockToolbarRow', {
|
|
21
|
+
actions: [
|
|
22
|
+
ZovaRender.formActionRow('basic-form:actionBack', { permission: { public: true } }),
|
|
23
|
+
],
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
}),
|
|
27
|
+
],
|
|
28
|
+
fields: {
|
|
29
|
+
trainingRecordSubjects: $makeMetadata(
|
|
30
|
+
v.title($locale('TrainingRecordSubjects')),
|
|
31
|
+
ZovaRender.order(5),
|
|
32
|
+
ZovaRender.field('basic-details:formFieldDetails'),
|
|
33
|
+
v.optional(),
|
|
34
|
+
),
|
|
35
|
+
},
|
|
36
|
+
})
|
|
37
|
+
export class DtoRecordView extends $Dto.get(() => ModelRecord, {
|
|
38
|
+
include: { trainingRecordSubjects: { dtoClass: DtoDetailRecordSubjectView } },
|
|
39
|
+
}) {
|
|
40
|
+
@Api.field(ZovaRender.visible(false), v.optional(), v.array(DtoDetailRecordSubjectResItem))
|
|
41
|
+
_trainingRecordSubjects?: DtoDetailRecordSubjectResItem[];
|
|
42
|
+
}
|
|
@@ -28,15 +28,32 @@ export interface IEntityOptionsRecord extends IDecoratorEntityOptions {}
|
|
|
28
28
|
},
|
|
29
29
|
})
|
|
30
30
|
export class EntityRecord extends EntityBase {
|
|
31
|
-
@Api.field(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
@Api.field(
|
|
32
|
+
v.title($locale('Name')),
|
|
33
|
+
v.required(),
|
|
34
|
+
v.min(2),
|
|
35
|
+
ZovaRender.order(1),
|
|
36
|
+
ZovaRender.cell('basic-table:actionView'),
|
|
37
|
+
)
|
|
35
38
|
name: string;
|
|
36
39
|
|
|
37
|
-
@Api.field(
|
|
40
|
+
@Api.field(
|
|
41
|
+
v.title($locale('Student')),
|
|
42
|
+
v.required(),
|
|
43
|
+
ZovaRender.order(2),
|
|
44
|
+
// ZovaRender.field('basic-resource:formFieldResourcePicker', {
|
|
45
|
+
// resource: $resourceName('training-student:student'),
|
|
46
|
+
// }),
|
|
47
|
+
// ZovaRender.cell('basic-resource:resourcePicker', {
|
|
48
|
+
// resource: $resourceName('training-student:student'),
|
|
49
|
+
// }),
|
|
50
|
+
v.tableIdentity(),
|
|
51
|
+
)
|
|
52
|
+
studentId: TableIdentity;
|
|
53
|
+
|
|
54
|
+
@Api.field(v.title($locale('Score')), v.optional(), ZovaRender.order(3))
|
|
38
55
|
score?: number;
|
|
39
56
|
|
|
40
|
-
@Api.field(v.title($locale('Description')), v.optional(), ZovaRender.order(
|
|
57
|
+
@Api.field(v.title($locale('Description')), v.optional(), ZovaRender.order(4))
|
|
41
58
|
description?: string;
|
|
42
59
|
}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
2
|
|
|
3
|
-
import { BeanModelBase, Model } from 'vona-module-a-orm';
|
|
3
|
+
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
4
|
|
|
5
5
|
import { EntityRecord } from '../entity/record.tsx';
|
|
6
6
|
|
|
7
7
|
export interface IModelOptionsRecord extends IDecoratorModelOptions<EntityRecord> {}
|
|
8
8
|
|
|
9
|
-
@Model<IModelOptionsRecord>({
|
|
9
|
+
@Model<IModelOptionsRecord>({
|
|
10
|
+
entity: EntityRecord,
|
|
11
|
+
relations: {
|
|
12
|
+
student: $relation.belongsTo(
|
|
13
|
+
'training-record:record',
|
|
14
|
+
'training-student:student',
|
|
15
|
+
'studentId',
|
|
16
|
+
{ columns: ['id', 'name'] },
|
|
17
|
+
),
|
|
18
|
+
trainingRecordSubjects: $relation.hasMany('training-recordsubject:subject', 'recordId', {
|
|
19
|
+
columns: ['id', 'name', 'score', 'description'],
|
|
20
|
+
}),
|
|
21
|
+
},
|
|
22
|
+
})
|
|
10
23
|
export class ModelRecord extends BeanModelBase<EntityRecord> {}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
import type { IQueryParams } from 'vona-module-a-orm';
|
|
3
|
+
|
|
4
|
+
import { BeanBase } from 'vona';
|
|
5
|
+
import { Service } from 'vona-module-a-bean';
|
|
6
|
+
|
|
7
|
+
import type { DtoRecordCreate } from '../dto/recordCreate.tsx';
|
|
8
|
+
import type { DtoRecordSelectRes } from '../dto/recordSelectRes.tsx';
|
|
9
|
+
import type { DtoRecordUpdate } from '../dto/recordUpdate.tsx';
|
|
10
|
+
import type { DtoRecordView } from '../dto/recordView.tsx';
|
|
11
|
+
import type { EntityRecord } from '../entity/record.tsx';
|
|
12
|
+
import type { ModelRecord } from '../model/record.ts';
|
|
13
|
+
|
|
14
|
+
function getRecordSubjectsInclude(): { trainingRecordSubjects: true; student: true } {
|
|
15
|
+
return { trainingRecordSubjects: true, student: true };
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@Service()
|
|
19
|
+
export class ServiceRecord extends BeanBase {
|
|
20
|
+
async create(record: DtoRecordCreate): Promise<EntityRecord> {
|
|
21
|
+
return await this.scope.model.record.insert(record, {
|
|
22
|
+
include: getRecordSubjectsInclude(),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async select(params?: IQueryParams<ModelRecord>): Promise<DtoRecordSelectRes> {
|
|
27
|
+
return await this.scope.model.record.selectAndCount({
|
|
28
|
+
...params,
|
|
29
|
+
include: { student: true },
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async view(id: TableIdentity): Promise<DtoRecordView | undefined> {
|
|
34
|
+
return await this.scope.model.record.getById(id, {
|
|
35
|
+
include: getRecordSubjectsInclude(),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async update(id: TableIdentity, record: DtoRecordUpdate) {
|
|
40
|
+
return await this.scope.model.record.updateById(id, record, {
|
|
41
|
+
include: getRecordSubjectsInclude(),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async delete(id: TableIdentity) {
|
|
46
|
+
return await this.scope.model.record.deleteById(id, {
|
|
47
|
+
include: getRecordSubjectsInclude(),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
DtoRecordCreate,
|
|
3
|
+
DtoRecordSelectRes,
|
|
4
|
+
DtoRecordUpdate,
|
|
5
|
+
} from 'vona-module-training-record';
|
|
6
|
+
import type { DtoStudentCreate } from 'vona-module-training-student';
|
|
7
|
+
|
|
8
|
+
import assert from 'node:assert';
|
|
9
|
+
import { describe, it } from 'node:test';
|
|
10
|
+
import { app } from 'vona-mock';
|
|
11
|
+
|
|
12
|
+
describe('record.test.ts', () => {
|
|
13
|
+
it('action:record', async () => {
|
|
14
|
+
await app.bean.executor.mockCtx(async () => {
|
|
15
|
+
const studentData: DtoStudentCreate = {
|
|
16
|
+
name: '__Student__',
|
|
17
|
+
description: 'This is a student for record test',
|
|
18
|
+
mobile: '13812345678',
|
|
19
|
+
level: 1,
|
|
20
|
+
trainingRecords: [],
|
|
21
|
+
};
|
|
22
|
+
const recordData = {
|
|
23
|
+
studentId: 0 as any,
|
|
24
|
+
name: '__Record__',
|
|
25
|
+
score: 88,
|
|
26
|
+
description: 'This is a record',
|
|
27
|
+
trainingRecordSubjects: [
|
|
28
|
+
{
|
|
29
|
+
name: '__Math__',
|
|
30
|
+
score: 95,
|
|
31
|
+
description: 'Math subject',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
} as any as DtoRecordCreate;
|
|
35
|
+
await app.bean.passport.signinMock();
|
|
36
|
+
const studentId = await app.bean.executor.performAction('post', '/training/student', {
|
|
37
|
+
body: studentData,
|
|
38
|
+
});
|
|
39
|
+
recordData.studentId = studentId;
|
|
40
|
+
const recordId = await app.bean.executor.performAction('post', '/training/record', {
|
|
41
|
+
body: recordData,
|
|
42
|
+
});
|
|
43
|
+
assert.equal(!!recordId, true);
|
|
44
|
+
|
|
45
|
+
const selectRes: DtoRecordSelectRes = await app.bean.executor.performAction(
|
|
46
|
+
'get',
|
|
47
|
+
'/training/record',
|
|
48
|
+
);
|
|
49
|
+
const recordItem = selectRes.list.find(item => String(item.id) === String(recordId));
|
|
50
|
+
assert.equal(!!recordItem, true);
|
|
51
|
+
assert.equal(recordItem!.name, recordData.name);
|
|
52
|
+
assert.equal(String(recordItem!.studentId), String(studentId));
|
|
53
|
+
|
|
54
|
+
let record: any = await app.bean.executor.performAction('get', '/training/record/:id', {
|
|
55
|
+
params: { id: recordId },
|
|
56
|
+
});
|
|
57
|
+
const recordSubject = record.trainingRecordSubjects?.[0];
|
|
58
|
+
assert.equal(record.name, recordData.name);
|
|
59
|
+
assert.equal(String(record.studentId), String(studentId));
|
|
60
|
+
assert.equal(record.trainingRecordSubjects?.length, 1);
|
|
61
|
+
assert.equal(recordSubject?.name, '__Math__');
|
|
62
|
+
assert.equal(recordSubject?.score, 95);
|
|
63
|
+
|
|
64
|
+
let student: any = await app.bean.executor.performAction('get', '/training/student/:id', {
|
|
65
|
+
params: { id: studentId },
|
|
66
|
+
});
|
|
67
|
+
let studentRecord = student.trainingRecords?.find(
|
|
68
|
+
(item: any) => String(item.id) === String(recordId),
|
|
69
|
+
);
|
|
70
|
+
assert.equal(!!studentRecord, true);
|
|
71
|
+
assert.equal(studentRecord?.trainingRecordSubjects?.length, 1);
|
|
72
|
+
|
|
73
|
+
const dataUpdate = {
|
|
74
|
+
studentId,
|
|
75
|
+
name: '__RecordNew__',
|
|
76
|
+
score: 89,
|
|
77
|
+
description: 'This is an updated record',
|
|
78
|
+
trainingRecordSubjects: [
|
|
79
|
+
{
|
|
80
|
+
id: recordSubject.id,
|
|
81
|
+
name: '__MathNew__',
|
|
82
|
+
score: 96,
|
|
83
|
+
description: 'Updated math subject',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: '__English__',
|
|
87
|
+
score: 87,
|
|
88
|
+
description: 'English subject',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
} as any as DtoRecordUpdate;
|
|
92
|
+
await app.bean.executor.performAction('patch', '/training/record/:id', {
|
|
93
|
+
params: { id: recordId },
|
|
94
|
+
body: dataUpdate,
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
record = await app.bean.executor.performAction('get', '/training/record/:id', {
|
|
98
|
+
params: { id: recordId },
|
|
99
|
+
});
|
|
100
|
+
const [updatedMathSubject, updatedEnglishSubject] = record.trainingRecordSubjects ?? [];
|
|
101
|
+
assert.equal(record.name, dataUpdate.name);
|
|
102
|
+
assert.equal(record.score, dataUpdate.score);
|
|
103
|
+
assert.equal(record.trainingRecordSubjects?.length, 2);
|
|
104
|
+
assert.equal(updatedMathSubject?.name, '__MathNew__');
|
|
105
|
+
assert.equal(updatedMathSubject?.score, 96);
|
|
106
|
+
assert.equal(updatedEnglishSubject?.name, '__English__');
|
|
107
|
+
assert.equal(updatedEnglishSubject?.score, 87);
|
|
108
|
+
|
|
109
|
+
student = await app.bean.executor.performAction('get', '/training/student/:id', {
|
|
110
|
+
params: { id: studentId },
|
|
111
|
+
});
|
|
112
|
+
studentRecord = student.trainingRecords?.find(
|
|
113
|
+
(item: any) => String(item.id) === String(recordId),
|
|
114
|
+
);
|
|
115
|
+
assert.equal(studentRecord?.name, dataUpdate.name);
|
|
116
|
+
assert.equal(studentRecord?.trainingRecordSubjects?.length, 2);
|
|
117
|
+
|
|
118
|
+
await app.bean.executor.performAction('delete', '/training/record/:id', {
|
|
119
|
+
params: { id: recordId },
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
record = await app.bean.executor.performAction('get', '/training/record/:id', {
|
|
123
|
+
params: { id: recordId },
|
|
124
|
+
});
|
|
125
|
+
assert.equal(record, undefined);
|
|
126
|
+
|
|
127
|
+
student = await app.bean.executor.performAction('get', '/training/student/:id', {
|
|
128
|
+
params: { id: studentId },
|
|
129
|
+
});
|
|
130
|
+
studentRecord = student.trainingRecords?.find(
|
|
131
|
+
(item: any) => String(item.id) === String(recordId),
|
|
132
|
+
);
|
|
133
|
+
assert.equal(studentRecord, undefined);
|
|
134
|
+
|
|
135
|
+
await app.bean.passport.signout();
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vona-module-training-recordsubject",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Vona Module"
|
|
7
|
+
],
|
|
8
|
+
"author": "",
|
|
9
|
+
"files": [
|
|
10
|
+
"assets",
|
|
11
|
+
"dist",
|
|
12
|
+
"src"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": [
|
|
18
|
+
"./src/index.ts",
|
|
19
|
+
"./dist/index.d.ts"
|
|
20
|
+
],
|
|
21
|
+
"import": "./src/index.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
28
|
+
"tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/vona.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
29
|
+
"prepublishOnly": "npm run tsc:publish",
|
|
30
|
+
"prepack": "clean-package",
|
|
31
|
+
"postpack": "clean-package restore"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"clean-package": "^2.2.0",
|
|
36
|
+
"rimraf": "^6.1.3"
|
|
37
|
+
},
|
|
38
|
+
"clean-package": {
|
|
39
|
+
"indent": 2,
|
|
40
|
+
"remove": [
|
|
41
|
+
"clean-package",
|
|
42
|
+
"devDependencies",
|
|
43
|
+
"exports.\\..import"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"title": "training-recordsubject",
|
|
47
|
+
"vonaModule": {
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"a-vona": "5.0.0"
|
|
50
|
+
},
|
|
51
|
+
"fileVersion": 1
|
|
52
|
+
}
|
|
53
|
+
}
|