zova-module-a-form 5.1.54 → 5.1.55
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/dist/.metadata/component/form.d.ts +2 -2
- package/dist/.metadata/component/formField.d.ts +2 -2
- package/dist/.metadata/component/formFieldBlank.d.ts +2 -2
- package/dist/.metadata/component/formFieldPreset.d.ts +2 -2
- package/dist/.metadata/index.d.ts +22 -22
- package/dist/.metadata/index.d.ts.map +1 -1
- package/dist/.metadata/this.d.ts +1 -1
- package/dist/component/form/controller.d.ts +7 -7
- package/dist/component/formField/controller.d.ts +3 -3
- package/dist/component/formFieldBlank/controller.d.ts +1 -1
- package/dist/component/formFieldPreset/controller.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/beanControllerFormBase.d.ts +1 -1
- package/dist/lib/beanControllerPageFormBase.d.ts +1 -1
- package/dist/lib/formLayout.d.ts +1 -1
- package/dist/lib/index.d.ts +4 -4
- package/dist/types/form.d.ts +1 -1
- package/dist/types/formField.d.ts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +2 -2
- package/src/.metadata/component/form.ts +3 -3
- package/src/.metadata/component/formField.ts +3 -3
- package/src/.metadata/component/formFieldBlank.ts +2 -2
- package/src/.metadata/component/formFieldPreset.ts +2 -2
- package/src/.metadata/index.ts +22 -22
- package/src/.metadata/this.ts +1 -1
- package/src/component/form/controller.tsx +7 -7
- package/src/component/formField/controller.tsx +4 -4
- package/src/component/formField/render.tsx +1 -1
- package/src/component/formFieldBlank/controller.tsx +1 -1
- package/src/component/formFieldPreset/controller.tsx +2 -2
- package/src/index.ts +3 -3
- package/src/lib/beanControllerFormBase.ts +1 -1
- package/src/lib/beanControllerPageFormBase.ts +1 -1
- package/src/lib/formLayout.ts +1 -1
- package/src/lib/index.ts +4 -4
- package/src/types/form.ts +1 -1
- package/src/types/formField.ts +3 -3
- package/src/types/index.ts +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
-
import type { ControllerFormProps } from '../../component/form/controller.
|
|
3
|
-
import { ControllerForm } from '../../component/form/controller.
|
|
2
|
+
import type { ControllerFormProps } from '../../component/form/controller.tsx';
|
|
3
|
+
import { ControllerForm } from '../../component/form/controller.tsx';
|
|
4
4
|
export type ZFormProps<TFormData extends {} = {}, TSubmitMeta = never> = {
|
|
5
5
|
controllerRef?: (ref: ControllerForm<TFormData, TSubmitMeta>) => void;
|
|
6
6
|
} & ControllerFormProps<TFormData, TSubmitMeta>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
-
import type { ControllerFormFieldProps } from '../../component/formField/controller.
|
|
3
|
-
import { ControllerFormField } from '../../component/formField/controller.
|
|
2
|
+
import type { ControllerFormFieldProps } from '../../component/formField/controller.tsx';
|
|
3
|
+
import { ControllerFormField } from '../../component/formField/controller.tsx';
|
|
4
4
|
export type ZFormFieldProps<TParentData extends {} = {}> = {
|
|
5
5
|
controllerRef?: (ref: ControllerFormField<TParentData>) => void;
|
|
6
6
|
} & ControllerFormFieldProps<TParentData>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
-
import type { ControllerFormFieldBlankProps } from '../../component/formFieldBlank/controller.
|
|
3
|
-
import { ControllerFormFieldBlank } from '../../component/formFieldBlank/controller.
|
|
2
|
+
import type { ControllerFormFieldBlankProps } from '../../component/formFieldBlank/controller.tsx';
|
|
3
|
+
import { ControllerFormFieldBlank } from '../../component/formFieldBlank/controller.tsx';
|
|
4
4
|
export type ZFormFieldBlankProps<TParentData extends {} = {}, TSubmitMeta = never> = {
|
|
5
5
|
controllerRef?: (ref: ControllerFormFieldBlank<TParentData, TSubmitMeta>) => void;
|
|
6
6
|
} & ControllerFormFieldBlankProps<TParentData, TSubmitMeta>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TypeControllerInnerProps } from 'zova';
|
|
2
2
|
import { ISchemaRenderComponentPresetRecord } from 'zova-module-a-openapi';
|
|
3
|
-
import type { ControllerFormFieldPresetProps } from '../../component/formFieldPreset/controller.
|
|
4
|
-
import { ControllerFormFieldPreset } from '../../component/formFieldPreset/controller.
|
|
3
|
+
import type { ControllerFormFieldPresetProps } from '../../component/formFieldPreset/controller.tsx';
|
|
4
|
+
import { ControllerFormFieldPreset } from '../../component/formFieldPreset/controller.tsx';
|
|
5
5
|
export type ZFormFieldPresetProps<PresetName extends keyof ISchemaRenderComponentPresetRecord = never> = {
|
|
6
6
|
controllerRef?: (ref: ControllerFormFieldPreset<PresetName>) => void;
|
|
7
7
|
} & ControllerFormFieldPresetProps<PresetName>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** controller: begin */
|
|
2
|
-
export * from '../component/form/controller.
|
|
3
|
-
export * from '../component/formField/controller.
|
|
4
|
-
export * from '../component/formFieldBlank/controller.
|
|
5
|
-
export * from '../component/formFieldPreset/controller.
|
|
2
|
+
export * from '../component/form/controller.tsx';
|
|
3
|
+
export * from '../component/formField/controller.tsx';
|
|
4
|
+
export * from '../component/formFieldBlank/controller.tsx';
|
|
5
|
+
export * from '../component/formFieldPreset/controller.tsx';
|
|
6
6
|
import 'zova';
|
|
7
7
|
declare module 'zova' {
|
|
8
8
|
}
|
|
@@ -18,10 +18,10 @@ declare module 'zova-module-a-form' {
|
|
|
18
18
|
}
|
|
19
19
|
/** controller: end */
|
|
20
20
|
/** controller: begin */
|
|
21
|
-
import { ControllerForm } from '../component/form/controller.
|
|
22
|
-
import { ControllerFormField } from '../component/formField/controller.
|
|
23
|
-
import { ControllerFormFieldBlank } from '../component/formFieldBlank/controller.
|
|
24
|
-
import { ControllerFormFieldPreset } from '../component/formFieldPreset/controller.
|
|
21
|
+
import type { ControllerForm } from '../component/form/controller.tsx';
|
|
22
|
+
import type { ControllerFormField } from '../component/formField/controller.tsx';
|
|
23
|
+
import type { ControllerFormFieldBlank } from '../component/formFieldBlank/controller.tsx';
|
|
24
|
+
import type { ControllerFormFieldPreset } from '../component/formFieldPreset/controller.tsx';
|
|
25
25
|
import 'zova';
|
|
26
26
|
declare module 'zova' {
|
|
27
27
|
interface IBeanRecordLocal {
|
|
@@ -33,14 +33,14 @@ declare module 'zova' {
|
|
|
33
33
|
}
|
|
34
34
|
/** controller: end */
|
|
35
35
|
/** components: begin */
|
|
36
|
-
export * from './component/form.
|
|
37
|
-
import { ZForm } from './component/form.
|
|
38
|
-
export * from './component/formField.
|
|
39
|
-
import { ZFormField } from './component/formField.
|
|
40
|
-
export * from './component/formFieldBlank.
|
|
41
|
-
import { ZFormFieldBlank } from './component/formFieldBlank.
|
|
42
|
-
export * from './component/formFieldPreset.
|
|
43
|
-
import { ZFormFieldPreset } from './component/formFieldPreset.
|
|
36
|
+
export * from './component/form.ts';
|
|
37
|
+
import { ZForm } from './component/form.ts';
|
|
38
|
+
export * from './component/formField.ts';
|
|
39
|
+
import { ZFormField } from './component/formField.ts';
|
|
40
|
+
export * from './component/formFieldBlank.ts';
|
|
41
|
+
import { ZFormFieldBlank } from './component/formFieldBlank.ts';
|
|
42
|
+
export * from './component/formFieldPreset.ts';
|
|
43
|
+
import { ZFormFieldPreset } from './component/formFieldPreset.ts';
|
|
44
44
|
export declare const components: {
|
|
45
45
|
form: new <TFormData extends {} = {}, TSubmitMeta = never>(props: ({
|
|
46
46
|
controllerRef?: ((ref: ControllerForm<TFormData, TSubmitMeta>) => void) | undefined;
|
|
@@ -164,8 +164,8 @@ declare module 'zova' {
|
|
|
164
164
|
}
|
|
165
165
|
/** components: end */
|
|
166
166
|
/** render: begin */
|
|
167
|
-
export * from '../component/form/render.
|
|
168
|
-
export * from '../component/formField/render.
|
|
167
|
+
export * from '../component/form/render.tsx';
|
|
168
|
+
export * from '../component/formField/render.tsx';
|
|
169
169
|
import 'zova';
|
|
170
170
|
declare module 'zova' {
|
|
171
171
|
}
|
|
@@ -177,8 +177,8 @@ declare module 'zova-module-a-form' {
|
|
|
177
177
|
}
|
|
178
178
|
/** render: end */
|
|
179
179
|
/** render: begin */
|
|
180
|
-
import { RenderForm } from '../component/form/render.
|
|
181
|
-
import { RenderFormField } from '../component/formField/render.
|
|
180
|
+
import type { RenderForm } from '../component/form/render.tsx';
|
|
181
|
+
import type { RenderFormField } from '../component/formField/render.tsx';
|
|
182
182
|
import 'zova';
|
|
183
183
|
declare module 'zova' {
|
|
184
184
|
interface IBeanRecordLocal {
|
|
@@ -188,8 +188,8 @@ declare module 'zova' {
|
|
|
188
188
|
}
|
|
189
189
|
/** render: end */
|
|
190
190
|
/** config: begin */
|
|
191
|
-
export * from '../config/config.
|
|
192
|
-
import { config } from '../config/config.
|
|
191
|
+
export * from '../config/config.ts';
|
|
192
|
+
import { config } from '../config/config.ts';
|
|
193
193
|
/** config: end */
|
|
194
194
|
/** scope: begin */
|
|
195
195
|
import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig } from 'zova';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"mappings":"AACA,wBAAwB;AACxB,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAE5D,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;CAGrB;AACD,OAAO,QAAQ,oBAAoB,CAAC;IAE5B,UAAiB,cAAc;KAG9B;IAED,UAAiB,mBAAmB;KAGnC;IAED,UAAiB,wBAAwB;KAGxC;IAED,UAAiB,yBAAyB;KAGzC;CACR;AACD,sBAAsB;AACtB,wBAAwB;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"m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AM,MAAM,CAAC;AAG3E,qBACa,gBAAiB,SAAQ,aAAa;CAAG;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,gBAAgB,CAAC,OAAO,MAAM,CAAC,CAAC;CACvC;AAED,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,gBAAgB;QAC/B,QAAQ,EAAE,gBAAgB,CAAC;KAC5B;IAED,UAAiB,gBAAgB;QAC/B,QAAQ,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;KACrC;CAKF;AAED,iBAAiB"}
|
package/dist/.metadata/this.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import { VNode } from 'vue';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ZovaJsx } from 'zova-jsx';
|
|
7
7
|
import { IFormMeta, IFormProvider, IResourceFormFieldLayoutOptions, IResourceRenderBlockOptionsBlock, ISchemaObjectExtensionField, ScopeModuleAOpenapi, TypeFormFieldRenderComponent, TypeFormFieldRenderComponentProvider, TypeFormSchemaScene } from 'zova-module-a-openapi';
|
|
8
|
-
import type { ISchemaRefreshContext } from '../../lib/schemaRefresh.
|
|
9
|
-
import type { IResolvedFormLayoutNode, IResolvedFormLayoutTab } from '../../types/formLayout.
|
|
10
|
-
import { BeanControllerFormBase } from '../../lib/beanControllerFormBase.
|
|
11
|
-
import { IFormScope, RevalidateLogicProps, TypeFormOnShowError, TypeFormOnSubmit, TypeFormOnSubmitInvalid } from '../../types/form.
|
|
12
|
-
import { IFormFieldOptions, IFormFieldRenderContextPropsBucket, IFormFieldScope, IJsxRenderContextForm, IJsxRenderContextFormField } from '../../types/formField.
|
|
13
|
-
import { ControllerFormField } from '../formField/controller.
|
|
8
|
+
import type { ISchemaRefreshContext } from '../../lib/schemaRefresh.ts';
|
|
9
|
+
import type { IResolvedFormLayoutNode, IResolvedFormLayoutTab } from '../../types/formLayout.ts';
|
|
10
|
+
import { BeanControllerFormBase } from '../../lib/beanControllerFormBase.ts';
|
|
11
|
+
import { IFormScope, RevalidateLogicProps, TypeFormOnShowError, TypeFormOnSubmit, TypeFormOnSubmitInvalid } from '../../types/form.ts';
|
|
12
|
+
import { IFormFieldOptions, IFormFieldRenderContextPropsBucket, IFormFieldScope, IJsxRenderContextForm, IJsxRenderContextFormField } from '../../types/formField.ts';
|
|
13
|
+
import { ControllerFormField } from '../formField/controller.tsx';
|
|
14
14
|
export interface ControllerFormProps<TFormData extends {} = {}, TSubmitMeta = never> {
|
|
15
15
|
formTag?: string;
|
|
16
16
|
data?: TFormData;
|
|
@@ -60,7 +60,7 @@ export declare class ControllerForm<TFormData extends {} = {}, TSubmitMeta = nev
|
|
|
60
60
|
submit(submitMeta?: TSubmitMeta): Promise<boolean>;
|
|
61
61
|
protected __dispose__(): void;
|
|
62
62
|
hasSchemaRefresh(name: string): boolean;
|
|
63
|
-
consumeSchemaRefresh(name: string, configuration: string, eligible: boolean): import("../../lib/schemaRefresh.
|
|
63
|
+
consumeSchemaRefresh(name: string, configuration: string, eligible: boolean): import("../../lib/schemaRefresh.ts").ISchemaRefreshResult;
|
|
64
64
|
schemaFieldRefreshed(): void;
|
|
65
65
|
reset(values?: TFormData, opts?: {
|
|
66
66
|
keepDefaultValues?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { BeanControllerBase, IComponentOptions } from 'zova';
|
|
3
3
|
import { BeanBehaviorsHolder } from 'zova-module-a-behavior';
|
|
4
|
-
import type { ControllerForm } from '../form/controller.
|
|
5
|
-
import { TypeFormField } from '../../types/form.
|
|
6
|
-
import { IFormFieldComponentOptions, IFormFieldRenderContext, IFormFieldRenderContextPropsBucket } from '../../types/formField.
|
|
4
|
+
import type { ControllerForm } from '../form/controller.tsx';
|
|
5
|
+
import { TypeFormField } from '../../types/form.ts';
|
|
6
|
+
import { IFormFieldComponentOptions, IFormFieldRenderContext, IFormFieldRenderContextPropsBucket } from '../../types/formField.ts';
|
|
7
7
|
export interface ControllerFormFieldProps<TParentData extends {} = {}> extends IFormFieldComponentOptions<TParentData> {
|
|
8
8
|
}
|
|
9
9
|
export declare class ControllerFormField<TParentData extends {} = {}> extends BeanControllerBase {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IComponentOptions } from 'zova';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
3
|
import { BeanControllerBase } from 'zova';
|
|
4
|
-
import { ControllerForm } from '../form/controller.
|
|
4
|
+
import { ControllerForm } from '../form/controller.tsx';
|
|
5
5
|
export interface ControllerFormFieldBlankProps<TParentData extends {} = {}, TSubmitMeta = never> {
|
|
6
6
|
slotDefault?: (form: ControllerForm<TParentData, TSubmitMeta>) => VNode | undefined;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BeanControllerBase, IComponentOptions } from 'zova';
|
|
2
2
|
import { ISchemaRenderComponentPresetRecord } from 'zova-module-a-openapi';
|
|
3
|
-
import type { ControllerForm } from '../form/controller.
|
|
4
|
-
import { IFormFieldPresetOptions } from '../../types/formField.
|
|
3
|
+
import type { ControllerForm } from '../form/controller.tsx';
|
|
4
|
+
import { IFormFieldPresetOptions } from '../../types/formField.ts';
|
|
5
5
|
export interface ControllerFormFieldPresetProps<PresetName extends keyof ISchemaRenderComponentPresetRecord = never> extends IFormFieldPresetOptions<PresetName> {
|
|
6
6
|
}
|
|
7
7
|
export declare class ControllerFormFieldPreset extends BeanControllerBase {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './.metadata/index.
|
|
2
|
-
export * from './lib/index.
|
|
3
|
-
export * from './types/index.
|
|
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
|