cabloy 5.1.107 → 5.1.109

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 (48) hide show
  1. package/.cabloy-version +1 -1
  2. package/CHANGELOG.md +27 -0
  3. package/cabloy-docs/.vitepress/config.mjs +6 -0
  4. package/cabloy-docs/backend/multi-instance-and-instance-resolution.md +18 -0
  5. package/cabloy-docs/backend/runtime-and-flavors.md +2 -2
  6. package/cabloy-docs/backend/scripts.md +3 -2
  7. package/cabloy-docs/frontend/ssr-env.md +20 -0
  8. package/cabloy-docs/frontend/table-resource-crud-cookbook.md +33 -1
  9. package/cabloy-docs/fullstack/deploy-cloudflare-docker.md +136 -0
  10. package/package.json +1 -1
  11. package/vona/docker-compose-original/config/nginx/conf.d/nginx.conf +1 -1
  12. package/vona/env/.env +1 -1
  13. package/vona/pnpm-lock.yaml +16 -16
  14. package/vona/src/backend/config/config/config.ts +1 -1
  15. package/vona/src/suite/a-training/modules/training-student/src/config/locale/en-us.ts +2 -0
  16. package/vona/src/suite/a-training/modules/training-student/src/config/locale/zh-cn.ts +2 -0
  17. package/vona/src/suite/a-training/modules/training-student/src/dto/studentCreate.tsx +50 -1
  18. package/vona/src/suite/a-training/modules/training-student/src/dto/studentSelectResItem.tsx +21 -1
  19. package/vona/src/suite/a-training/modules/training-student/src/dto/studentUpdate.tsx +47 -1
  20. package/vona/src/suite/a-training/modules/training-student/src/dto/studentView.tsx +47 -1
  21. package/vona/src/suite/a-training/modules/training-student/test/student.test.ts +60 -2
  22. package/zova/packages-zova/zova/package.json +2 -2
  23. package/zova/pnpm-lock.yaml +27 -2
  24. package/zova/src/suite/cabloy-basic/modules/basic-form/src/.metadata/component/blockFormLayout.ts +31 -0
  25. package/zova/src/suite/cabloy-basic/modules/basic-form/src/.metadata/index.ts +13 -0
  26. package/zova/src/suite/cabloy-basic/modules/basic-form/src/component/blockFormLayout/controller.tsx +165 -0
  27. package/zova/src/suite/cabloy-basic/modules/basic-page/src/.metadata/component/blockFilterActions.ts +31 -0
  28. package/zova/src/suite/cabloy-basic/modules/basic-page/src/.metadata/index.ts +13 -0
  29. package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockFilter/controller.tsx +61 -31
  30. package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockFilterActions/controller.tsx +51 -0
  31. package/zova/src/suite/cabloy-basic/modules/basic-page/src/types/page.ts +10 -0
  32. package/zova/src/suite/cabloy-basic/modules/basic-pageentry/src/component/blockForm/controller.tsx +9 -2
  33. package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +5 -3
  34. package/zova/src/suite-vendor/a-zova/modules/a-form/src/component/form/controller.tsx +44 -3
  35. package/zova/src/suite-vendor/a-zova/modules/a-form/src/component/form/render.tsx +22 -4
  36. package/zova/src/suite-vendor/a-zova/modules/a-form/src/component/formField/controller.tsx +3 -2
  37. package/zova/src/suite-vendor/a-zova/modules/a-form/src/lib/formLayout.ts +203 -0
  38. package/zova/src/suite-vendor/a-zova/modules/a-form/src/lib/index.ts +1 -0
  39. package/zova/src/suite-vendor/a-zova/modules/a-form/src/types/formField.ts +7 -4
  40. package/zova/src/suite-vendor/a-zova/modules/a-form/src/types/formLayout.ts +59 -0
  41. package/zova/src/suite-vendor/a-zova/modules/a-form/src/types/index.ts +1 -0
  42. package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +1 -1
  43. package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/action.ts +1 -1
  44. package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/resource/formLayout.ts +53 -0
  45. package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/resource/index.ts +1 -0
  46. package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +1 -1
  47. package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/lib/ssr.ts +1 -1
  48. package/zova/src/suite-vendor/a-zova/package.json +4 -4
@@ -17,7 +17,7 @@ import { types } from 'typestyle';
17
17
 
18
18
  import type { ControllerForm } from '../component/form/controller.jsx';
19
19
  import type { ControllerFormField } from '../component/formField/controller.jsx';
20
- import type { TypeBehaviorFormFieldOptions } from './form.js';
20
+ import type { IFormScope, TypeBehaviorFormFieldOptions } from './form.js';
21
21
 
22
22
  export type HTMLInputElementType =
23
23
  | 'text'
@@ -139,7 +139,10 @@ export interface IJsxRenderContextFormField<
139
139
  $$form: ControllerForm<TParentData, TSubmitMeta>;
140
140
  }
141
141
 
142
- export interface IJsxRenderContextForm<TParentData extends {} = {}> extends IJsxRenderContextBase {
143
- $celScope: IFormFieldScope<TParentData>;
144
- $$form: ControllerForm<TParentData>;
142
+ export interface IJsxRenderContextForm<
143
+ TParentData extends {} = {},
144
+ TSubmitMeta = never,
145
+ > extends IJsxRenderContextBase {
146
+ $celScope: IFormScope;
147
+ $$form: ControllerForm<TParentData, TSubmitMeta>;
145
148
  }
@@ -0,0 +1,59 @@
1
+ import type { IFormLayoutResponsiveColumns } from 'zova-module-a-openapi';
2
+
3
+ export interface IResolvedFormLayout {
4
+ children: IResolvedFormLayoutNode[];
5
+ fieldTabPaths: Record<string, IResolvedFormLayoutTabRef[]>;
6
+ diagnostics: IFormLayoutDiagnostic[];
7
+ }
8
+
9
+ export interface IResolvedFormLayoutField {
10
+ type: 'field';
11
+ name: string;
12
+ span?: IFormLayoutResponsiveColumns;
13
+ }
14
+
15
+ export interface IResolvedFormLayoutGroup {
16
+ type: 'group';
17
+ id: string;
18
+ title?: string;
19
+ description?: string;
20
+ children: Array<IResolvedFormLayoutField | IResolvedFormLayoutGroup | IResolvedFormLayoutSection>;
21
+ }
22
+
23
+ export interface IResolvedFormLayoutSection {
24
+ type: 'section';
25
+ id: string;
26
+ title?: string;
27
+ description?: string;
28
+ columns?: IFormLayoutResponsiveColumns;
29
+ children: IResolvedFormLayoutField[];
30
+ }
31
+
32
+ export interface IResolvedFormLayoutTabs {
33
+ type: 'tabs';
34
+ id: string;
35
+ children: IResolvedFormLayoutTab[];
36
+ }
37
+
38
+ export interface IResolvedFormLayoutTab {
39
+ type: 'tab';
40
+ id: string;
41
+ title: string;
42
+ children: Array<IResolvedFormLayoutField | IResolvedFormLayoutGroup | IResolvedFormLayoutSection>;
43
+ }
44
+
45
+ export interface IResolvedFormLayoutTabRef {
46
+ tabsId: string;
47
+ tabId: string;
48
+ }
49
+
50
+ export type IResolvedFormLayoutNode =
51
+ | IResolvedFormLayoutField
52
+ | IResolvedFormLayoutGroup
53
+ | IResolvedFormLayoutSection
54
+ | IResolvedFormLayoutTabs;
55
+
56
+ export interface IFormLayoutDiagnostic {
57
+ type: 'duplicateField' | 'unknownField' | 'duplicateId';
58
+ value: string;
59
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './form.js';
2
2
  export * from './formField.js';
3
+ export * from './formLayout.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-module-a-openapi",
3
- "version": "5.1.43",
3
+ "version": "5.1.44",
4
4
  "gitHead": "09d901d17140a80ee0764211b441cda72fd94663",
5
5
  "description": "",
6
6
  "keywords": [
@@ -31,7 +31,7 @@ export interface IJsxRenderSceneRecord {
31
31
  // table: never;
32
32
  tableColumn: never;
33
33
  tableCell: never;
34
- // form: never;
34
+ form: never;
35
35
  formField: never;
36
36
  //
37
37
  details: never;
@@ -0,0 +1,53 @@
1
+ export interface IFormLayout {
2
+ children: IFormLayoutNode[];
3
+ }
4
+
5
+ export type TypeFormLayoutColumns = 1 | 2 | 3 | 4;
6
+
7
+ export interface IFormLayoutResponsiveColumns {
8
+ default?: TypeFormLayoutColumns;
9
+ md?: TypeFormLayoutColumns;
10
+ lg?: TypeFormLayoutColumns;
11
+ }
12
+
13
+ export interface IFormLayoutField {
14
+ type: 'field';
15
+ name: string;
16
+ span?: IFormLayoutResponsiveColumns;
17
+ }
18
+
19
+ export interface IFormLayoutGroup {
20
+ type: 'group';
21
+ id?: string;
22
+ title?: string;
23
+ description?: string;
24
+ children: Array<IFormLayoutField | IFormLayoutGroup | IFormLayoutSection>;
25
+ }
26
+
27
+ export interface IFormLayoutSection {
28
+ type: 'section';
29
+ id?: string;
30
+ title?: string;
31
+ description?: string;
32
+ columns?: IFormLayoutResponsiveColumns;
33
+ children: IFormLayoutField[];
34
+ }
35
+
36
+ export interface IFormLayoutTabs {
37
+ type: 'tabs';
38
+ id?: string;
39
+ children: IFormLayoutTab[];
40
+ }
41
+
42
+ export interface IFormLayoutTab {
43
+ type: 'tab';
44
+ id?: string;
45
+ title: string;
46
+ children: Array<IFormLayoutField | IFormLayoutGroup | IFormLayoutSection>;
47
+ }
48
+
49
+ export type IFormLayoutNode =
50
+ | IFormLayoutField
51
+ | IFormLayoutGroup
52
+ | IFormLayoutSection
53
+ | IFormLayoutTabs;
@@ -2,6 +2,7 @@ export * from './block.js';
2
2
  export * from './formActionRow.js';
3
3
  export * from './formField.js';
4
4
  export * from './formFieldLayout.js';
5
+ export * from './formLayout.js';
5
6
  export * from './tableAction.js';
6
7
  export * from './tableActionBulk.js';
7
8
  export * from './tableActionRow.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-module-a-ssr",
3
- "version": "5.1.29",
3
+ "version": "5.1.30",
4
4
  "gitHead": "09d901d17140a80ee0764211b441cda72fd94663",
5
5
  "description": "",
6
6
  "keywords": [
@@ -193,7 +193,7 @@ export class CtxSSR extends BeanSimple {
193
193
  : stringifyStyle(normalizeStyle(clientValue));
194
194
  el.setAttribute(key, expected as string);
195
195
  }
196
- } else if (['id', 'name', 'for', 'd'].includes(key)) {
196
+ } else if (['id', 'name', 'for', 'd', 'aria-labelledby', 'aria-controls'].includes(key)) {
197
197
  ignore = true;
198
198
  if (clientValue !== undefined) {
199
199
  expected = String(clientValue);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-suite-a-zova",
3
- "version": "5.1.135",
3
+ "version": "5.1.136",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "zova",
6
6
  "license": "MIT",
@@ -16,17 +16,17 @@
16
16
  "zova-module-a-boundary": "^5.1.21",
17
17
  "zova-module-a-command": "^5.1.33",
18
18
  "zova-module-a-fetch": "^5.1.23",
19
- "zova-module-a-form": "^5.1.43",
19
+ "zova-module-a-form": "^5.1.44",
20
20
  "zova-module-a-icon": "^5.1.26",
21
21
  "zova-module-a-interceptor": "^5.1.29",
22
22
  "zova-module-a-logger": "^5.1.26",
23
23
  "zova-module-a-meta": "^5.1.21",
24
24
  "zova-module-a-model": "^5.1.33",
25
- "zova-module-a-openapi": "^5.1.43",
25
+ "zova-module-a-openapi": "^5.1.44",
26
26
  "zova-module-a-router": "^5.1.30",
27
27
  "zova-module-a-routerstack": "^5.1.26",
28
28
  "zova-module-a-routertabs": "^5.1.33",
29
- "zova-module-a-ssr": "^5.1.29",
29
+ "zova-module-a-ssr": "^5.1.30",
30
30
  "zova-module-a-ssrhmr": "^5.1.22",
31
31
  "zova-module-a-ssrserver": "^5.1.23",
32
32
  "zova-module-a-style": "^5.1.32",