@michelangelo-ai/core 0.8.0 → 0.9.0
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/components/breadcrumb-bar/menu-drawer.d.ts.map +1 -1
- package/dist/components/breadcrumb-bar/phase-entity-list.d.ts.map +1 -1
- package/dist/components/form/__tests__/config-driven-form.test.d.ts +2 -0
- package/dist/components/form/__tests__/config-driven-form.test.d.ts.map +1 -0
- package/dist/components/form/components/form-dialog/form-dialog.d.ts +1 -1
- package/dist/components/form/components/form-dialog/form-dialog.d.ts.map +1 -1
- package/dist/components/form/components/form-dialog/types.d.ts +1 -1
- package/dist/components/form/components/form-dialog/types.d.ts.map +1 -1
- package/dist/components/form/components/form-error-banner/use-form-error-list.d.ts.map +1 -1
- package/dist/components/form/config-driven-form.d.ts +24 -0
- package/dist/components/form/config-driven-form.d.ts.map +1 -0
- package/dist/components/form/constants.d.ts +4 -0
- package/dist/components/form/constants.d.ts.map +1 -0
- package/dist/components/form/fields/boolean/schema-boolean-field.d.ts +3 -0
- package/dist/components/form/fields/boolean/schema-boolean-field.d.ts.map +1 -0
- package/dist/components/form/fields/boolean/types.d.ts +4 -1
- package/dist/components/form/fields/boolean/types.d.ts.map +1 -1
- package/dist/components/form/fields/checkbox/schema-checkbox-field.d.ts +3 -0
- package/dist/components/form/fields/checkbox/schema-checkbox-field.d.ts.map +1 -0
- package/dist/components/form/fields/checkbox/types.d.ts +4 -1
- package/dist/components/form/fields/checkbox/types.d.ts.map +1 -1
- package/dist/components/form/fields/date/schema-date-field.d.ts +3 -0
- package/dist/components/form/fields/date/schema-date-field.d.ts.map +1 -0
- package/dist/components/form/fields/date/types.d.ts +4 -1
- package/dist/components/form/fields/date/types.d.ts.map +1 -1
- package/dist/components/form/fields/map/schema-map-field.d.ts +3 -0
- package/dist/components/form/fields/map/schema-map-field.d.ts.map +1 -0
- package/dist/components/form/fields/map/types.d.ts +4 -1
- package/dist/components/form/fields/map/types.d.ts.map +1 -1
- package/dist/components/form/fields/markdown/schema-markdown-field.d.ts +3 -0
- package/dist/components/form/fields/markdown/schema-markdown-field.d.ts.map +1 -0
- package/dist/components/form/fields/markdown/types.d.ts +4 -1
- package/dist/components/form/fields/markdown/types.d.ts.map +1 -1
- package/dist/components/form/fields/number/schema-number-field.d.ts +3 -0
- package/dist/components/form/fields/number/schema-number-field.d.ts.map +1 -0
- package/dist/components/form/fields/number/types.d.ts +6 -0
- package/dist/components/form/fields/number/types.d.ts.map +1 -0
- package/dist/components/form/fields/radio/schema-radio-field.d.ts +3 -0
- package/dist/components/form/fields/radio/schema-radio-field.d.ts.map +1 -0
- package/dist/components/form/fields/radio/types.d.ts +4 -1
- package/dist/components/form/fields/radio/types.d.ts.map +1 -1
- package/dist/components/form/fields/schema-field.d.ts +12 -0
- package/dist/components/form/fields/schema-field.d.ts.map +1 -0
- package/dist/components/form/fields/select/schema-select-field.d.ts +3 -0
- package/dist/components/form/fields/select/schema-select-field.d.ts.map +1 -0
- package/dist/components/form/fields/select/types.d.ts +11 -1
- package/dist/components/form/fields/select/types.d.ts.map +1 -1
- package/dist/components/form/fields/string/schema-string-field.d.ts +4 -0
- package/dist/components/form/fields/string/schema-string-field.d.ts.map +1 -0
- package/dist/components/form/fields/string/types.d.ts +10 -0
- package/dist/components/form/fields/string/types.d.ts.map +1 -1
- package/dist/components/form/fields/textarea/schema-textarea-field.d.ts +3 -0
- package/dist/components/form/fields/textarea/schema-textarea-field.d.ts.map +1 -0
- package/dist/components/form/fields/textarea/types.d.ts +4 -1
- package/dist/components/form/fields/textarea/types.d.ts.map +1 -1
- package/dist/components/form/fields/types.d.ts +5 -0
- package/dist/components/form/fields/types.d.ts.map +1 -1
- package/dist/components/form/fields/url/schema-url-field.d.ts +3 -0
- package/dist/components/form/fields/url/schema-url-field.d.ts.map +1 -0
- package/dist/components/form/fields/url/types.d.ts +4 -1
- package/dist/components/form/fields/url/types.d.ts.map +1 -1
- package/dist/components/form/form-context.d.ts +1 -1
- package/dist/components/form/form-context.d.ts.map +1 -1
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/form/form.d.ts.map +1 -1
- package/dist/components/form/hooks/use-array-field.d.ts +1 -1
- package/dist/components/form/hooks/use-array-field.d.ts.map +1 -1
- package/dist/components/form/hooks/use-field-renderer.d.ts +7 -0
- package/dist/components/form/hooks/use-field-renderer.d.ts.map +1 -0
- package/dist/components/form/hooks/use-field.d.ts +1 -1
- package/dist/components/form/hooks/use-field.d.ts.map +1 -1
- package/dist/components/form/hooks/use-form-state.d.ts +1 -1
- package/dist/components/form/hooks/use-form-state.d.ts.map +1 -1
- package/dist/components/form/hooks/use-form.d.ts +1 -1
- package/dist/components/form/hooks/use-form.d.ts.map +1 -1
- package/dist/components/form/layout/condition/__tests__/evaluate-condition.test.d.ts +2 -0
- package/dist/components/form/layout/condition/__tests__/evaluate-condition.test.d.ts.map +1 -0
- package/dist/components/form/layout/condition/__tests__/form-condition.test.d.ts +2 -0
- package/dist/components/form/layout/condition/__tests__/form-condition.test.d.ts.map +1 -0
- package/dist/components/form/layout/condition/evaluate-condition.d.ts +4 -0
- package/dist/components/form/layout/condition/evaluate-condition.d.ts.map +1 -0
- package/dist/components/form/layout/condition/form-condition.d.ts +10 -0
- package/dist/components/form/layout/condition/form-condition.d.ts.map +1 -0
- package/dist/components/form/layout/condition/types.d.ts +36 -0
- package/dist/components/form/layout/condition/types.d.ts.map +1 -0
- package/dist/components/form/layout/form-grid/types.d.ts +5 -0
- package/dist/components/form/layout/form-grid/types.d.ts.map +1 -1
- package/dist/components/form/layout/form-group/types.d.ts +6 -0
- package/dist/components/form/layout/form-group/types.d.ts.map +1 -1
- package/dist/components/form/layout/form-row/types.d.ts +5 -0
- package/dist/components/form/layout/form-row/types.d.ts.map +1 -1
- package/dist/components/form/layout/layout-item-list.d.ts +8 -0
- package/dist/components/form/layout/layout-item-list.d.ts.map +1 -0
- package/dist/components/form/layout/layout-renderer.d.ts +7 -0
- package/dist/components/form/layout/layout-renderer.d.ts.map +1 -0
- package/dist/components/form/layout/types.d.ts +1 -1
- package/dist/components/form/layout/types.d.ts.map +1 -1
- package/dist/components/form/types/config-types.d.ts +132 -0
- package/dist/components/form/types/config-types.d.ts.map +1 -0
- package/dist/components/form/{types.d.ts → types/form-types.d.ts} +2 -2
- package/dist/components/form/types/form-types.d.ts.map +1 -0
- package/dist/components/form/utils/__tests__/delete-by-path.test.d.ts +2 -0
- package/dist/components/form/utils/__tests__/delete-by-path.test.d.ts.map +1 -0
- package/dist/components/form/utils/__tests__/filter-hidden-condition-fields.test.d.ts +2 -0
- package/dist/components/form/utils/__tests__/filter-hidden-condition-fields.test.d.ts.map +1 -0
- package/dist/components/form/utils/__tests__/is-empty-field-value.test.d.ts +2 -0
- package/dist/components/form/utils/__tests__/is-empty-field-value.test.d.ts.map +1 -0
- package/dist/components/form/utils/delete-by-path.d.ts +6 -0
- package/dist/components/form/utils/delete-by-path.d.ts.map +1 -0
- package/dist/components/form/utils/filter-hidden-condition-fields.d.ts +11 -0
- package/dist/components/form/utils/filter-hidden-condition-fields.d.ts.map +1 -0
- package/dist/components/form/utils/is-empty-field-value.d.ts +2 -0
- package/dist/components/form/utils/is-empty-field-value.d.ts.map +1 -0
- package/dist/components/form/validation/resolve-validation.d.ts +4 -0
- package/dist/components/form/validation/resolve-validation.d.ts.map +1 -0
- package/dist/components/links-box/types.d.ts +1 -0
- package/dist/components/links-box/types.d.ts.map +1 -1
- package/dist/components/navigation-bar/navigation-bar.d.ts +2 -1
- package/dist/components/navigation-bar/navigation-bar.d.ts.map +1 -1
- package/dist/components/signpost/signpost.d.ts +3 -0
- package/dist/components/signpost/signpost.d.ts.map +1 -0
- package/dist/components/signpost/styled-components.d.ts +2 -0
- package/dist/components/signpost/styled-components.d.ts.map +1 -0
- package/dist/components/{error-view → signpost}/types.d.ts +1 -1
- package/dist/components/signpost/types.d.ts.map +1 -0
- package/dist/components/views/phase-entity-view/entity-table.d.ts +1 -1
- package/dist/components/views/phase-entity-view/entity-table.d.ts.map +1 -1
- package/dist/components/views/phase-entity-view/phase-entity-view.d.ts.map +1 -1
- package/dist/components/views/phase-entity-view/types.d.ts +6 -0
- package/dist/components/views/phase-entity-view/types.d.ts.map +1 -1
- package/dist/components/views/phase-entity-view/utils/inject-list-options.d.ts +8 -0
- package/dist/components/views/phase-entity-view/utils/inject-list-options.d.ts.map +1 -0
- package/dist/components/views/project/components/phase-card.d.ts.map +1 -1
- package/dist/components/views/project/project-detail.d.ts.map +1 -1
- package/dist/components/views/sandbox/sandbox.d.ts.map +1 -1
- package/dist/config/entities/deployment/deployment-info-page.d.ts +5 -0
- package/dist/config/entities/deployment/deployment-info-page.d.ts.map +1 -0
- package/dist/config/entities/deployment/deployment-revision-card.d.ts +14 -0
- package/dist/config/entities/deployment/deployment-revision-card.d.ts.map +1 -0
- package/dist/config/entities/deployment/detail.d.ts.map +1 -1
- package/dist/config/entities/deployment/shared.d.ts +8 -0
- package/dist/config/entities/deployment/shared.d.ts.map +1 -1
- package/dist/config/entities/deployment/types.d.ts +39 -0
- package/dist/config/entities/deployment/types.d.ts.map +1 -0
- package/dist/config/entities/model/__tests__/model-page.test.d.ts +2 -0
- package/dist/config/entities/model/__tests__/model-page.test.d.ts.map +1 -0
- package/dist/config/entities/model/constants.d.ts +25 -0
- package/dist/config/entities/model/constants.d.ts.map +1 -0
- package/dist/config/entities/model/list.d.ts.map +1 -1
- package/dist/config/entities/pipeline/__tests__/pipeline.test.d.ts +2 -0
- package/dist/config/entities/pipeline/__tests__/pipeline.test.d.ts.map +1 -0
- package/dist/config/entities/pipeline/pipeline.d.ts.map +1 -1
- package/dist/config/phases/data.d.ts.map +1 -1
- package/dist/config/phases/deploy.d.ts.map +1 -1
- package/dist/config/phases/monitor-debug.d.ts +3 -0
- package/dist/config/phases/monitor-debug.d.ts.map +1 -0
- package/dist/config/phases/phases.d.ts +2 -0
- package/dist/config/phases/phases.d.ts.map +1 -1
- package/dist/config/phases/retrain.d.ts +3 -0
- package/dist/config/phases/retrain.d.ts.map +1 -0
- package/dist/config/phases/train.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/interpolation/types.d.ts +0 -4
- package/dist/interpolation/types.d.ts.map +1 -1
- package/dist/michelangelo-core.cjs +16 -16
- package/dist/michelangelo-core.js +22295 -21756
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.ts +2 -0
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +25 -24
- package/dist/providers/form-provider/form-context.d.ts +3 -0
- package/dist/providers/form-provider/form-context.d.ts.map +1 -0
- package/dist/providers/form-provider/form-provider.d.ts +21 -0
- package/dist/providers/form-provider/form-provider.d.ts.map +1 -0
- package/dist/providers/form-provider/types.d.ts +25 -0
- package/dist/providers/form-provider/types.d.ts.map +1 -0
- package/dist/providers/form-provider/use-form-provider.d.ts +15 -0
- package/dist/providers/form-provider/use-form-provider.d.ts.map +1 -0
- package/dist/router/router.d.ts.map +1 -1
- package/dist/test/wrappers/get-form-provider-wrapper.d.ts +1 -1
- package/dist/test/wrappers/get-form-provider-wrapper.d.ts.map +1 -1
- package/dist/{theme-provider-BNyeUTHs.js → theme-provider-Ba4vmtVx.js} +5911 -5657
- package/dist/theme-provider-H-LNQYdH.cjs +303 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common/studio-types.d.ts +6 -0
- package/dist/types/common/studio-types.d.ts.map +1 -1
- package/dist/utils/__tests__/crd-utils.test.d.ts +2 -0
- package/dist/utils/__tests__/crd-utils.test.d.ts.map +1 -0
- package/dist/utils/__tests__/environment-utils.test.d.ts +2 -0
- package/dist/utils/__tests__/environment-utils.test.d.ts.map +1 -0
- package/dist/utils/crd-utils.d.ts +32 -0
- package/dist/utils/crd-utils.d.ts.map +1 -0
- package/dist/utils/environment-utils.d.ts +18 -0
- package/dist/utils/environment-utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/error-view/error-view.d.ts +0 -3
- package/dist/components/error-view/error-view.d.ts.map +0 -1
- package/dist/components/error-view/styled-components.d.ts +0 -2
- package/dist/components/error-view/styled-components.d.ts.map +0 -1
- package/dist/components/error-view/types.d.ts.map +0 -1
- package/dist/components/form/types.d.ts.map +0 -1
- package/dist/theme-provider-BEQVBa23.cjs +0 -303
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-drawer.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/menu-drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu-drawer.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/menu-drawer.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,UAAU,KAAK;IACb,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,2CAqGrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phase-entity-list.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/phase-entity-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phase-entity-list.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/phase-entity-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,2CAuCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-driven-form.test.d.ts","sourceRoot":"","sources":["../../../../components/form/__tests__/config-driven-form.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormData } from '../../../../components/form/types';
|
|
1
|
+
import type { FormData } from '../../../../components/form/types/form-types';
|
|
2
2
|
import type { FormDialogProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Modal dialog component that wraps a form with automatic submit button integration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-dialog.d.ts","sourceRoot":"","sources":["../../../../../components/form/components/form-dialog/form-dialog.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"form-dialog.d.ts","sourceRoot":"","sources":["../../../../../components/form/components/form-dialog/form-dialog.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU,GAAI,WAAW,SAAS,QAAQ,oGASpD,eAAe,CAAC,WAAW,CAAC,4CAmD9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Size as DialogSize } from 'baseui/dialog';
|
|
2
|
-
import type { FormData, FormProps } from '../../../../components/form/types';
|
|
2
|
+
import type { FormData, FormProps } from '../../../../components/form/types/form-types';
|
|
3
3
|
export interface FormDialogProps<FieldValues extends FormData = FormData> extends Pick<FormProps<FieldValues>, 'onSubmit' | 'initialValues' | 'children'> {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onDismiss: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/components/form-dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/components/form-dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AAElF,MAAM,WAAW,eAAe,CAAC,WAAW,SAAS,QAAQ,GAAG,QAAQ,CACtE,SAAQ,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,eAAe,GAAG,UAAU,CAAC;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-error-list.d.ts","sourceRoot":"","sources":["../../../../../components/form/components/form-error-banner/use-form-error-list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-form-error-list.d.ts","sourceRoot":"","sources":["../../../../../components/form/components/form-error-banner/use-form-error-list.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,EAAE,CAoC/C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FormConfig } from '../../components/form/types/config-types';
|
|
2
|
+
import type { DeepPartial } from '../../types/utility-types';
|
|
3
|
+
type ConfigDrivenFormProps<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
4
|
+
config: FormConfig<T>;
|
|
5
|
+
/** `...rest` forwards final-form's `form` and `callback` arguments through untyped. */
|
|
6
|
+
onSubmit: (values: T, ...rest: unknown[]) => void | object | Promise<object>;
|
|
7
|
+
initialValues?: DeepPartial<T>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Renders a form from a declarative configuration.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const config: FormConfig<{ name: string }> = {
|
|
15
|
+
* fields: { name: { type: 'string', label: 'Name' } },
|
|
16
|
+
* layout: ['name'],
|
|
17
|
+
* };
|
|
18
|
+
*
|
|
19
|
+
* <ConfigDrivenForm config={config} onSubmit={handleSubmit} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function ConfigDrivenForm<T extends Record<string, unknown>>({ config, onSubmit, initialValues, }: ConfigDrivenFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=config-driven-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-driven-form.d.ts","sourceRoot":"","sources":["../../../components/form/config-driven-form.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,KAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACxF,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,uFAAuF;IACvF,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7E,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAClE,MAAM,EACN,QAAQ,EACR,aAAa,GACd,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAmB1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FieldRenderer, FieldType } from './types/config-types';
|
|
2
|
+
/** Built-in field renderer registry. FormProvider renderers take priority over these. */
|
|
3
|
+
export declare const FIELD_RENDERERS: Record<FieldType, FieldRenderer>;
|
|
4
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../components/form/constants.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErE,yFAAyF;AACzF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAY5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-boolean-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/boolean/schema-boolean-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAkBtE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
2
2
|
export interface BooleanFieldProps extends BaseFieldProps<boolean> {
|
|
3
3
|
/**
|
|
4
4
|
* Custom label for the checkbox itself.
|
|
@@ -13,4 +13,7 @@ export interface BooleanFieldProps extends BaseFieldProps<boolean> {
|
|
|
13
13
|
*/
|
|
14
14
|
toggle?: boolean;
|
|
15
15
|
}
|
|
16
|
+
export type BooleanFieldConfig<T = boolean> = SharedFieldConfig<T, boolean> & Pick<BooleanFieldProps, 'checkboxLabel' | 'toggle'> & {
|
|
17
|
+
type: 'boolean';
|
|
18
|
+
};
|
|
16
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/boolean/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/boolean/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAChE;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,OAAO,IAAI,iBAAiB,CAAC,CAAC,EAAE,OAAO,CAAC,GACzE,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,QAAQ,CAAC,GAAG;IACpD,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-checkbox-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/checkbox/schema-checkbox-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAiBvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../../../../components/form/fields/types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../../../../components/form/fields/types';
|
|
2
2
|
export interface CheckboxOption {
|
|
3
3
|
id: string;
|
|
4
4
|
label: string;
|
|
@@ -7,4 +7,7 @@ export interface CheckboxOption {
|
|
|
7
7
|
export interface CheckboxFieldProps extends BaseFieldProps<string[]> {
|
|
8
8
|
options: CheckboxOption[];
|
|
9
9
|
}
|
|
10
|
+
export type CheckboxFieldConfig<T = string[]> = SharedFieldConfig<T, string[]> & Pick<CheckboxFieldProps, 'options'> & {
|
|
11
|
+
type: 'checkbox';
|
|
12
|
+
};
|
|
10
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5F,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,MAAM,EAAE,CAAC;IAClE,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,MAAM,EAAE,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAC5E,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG;IACpC,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-date-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/date/schema-date-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAmBnE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
2
2
|
export interface DateFieldProps extends BaseFieldProps<string, Date | null> {
|
|
3
3
|
/** @default DateFormat.ISO_DATE_STRING */
|
|
4
4
|
dateFormat?: DateFormat;
|
|
@@ -19,4 +19,7 @@ export declare enum DateFormat {
|
|
|
19
19
|
*/
|
|
20
20
|
ISO_DATE_STRING = "iso"
|
|
21
21
|
}
|
|
22
|
+
export type DateFieldConfig<T = string> = SharedFieldConfig<T, Date | null> & Pick<DateFieldProps, 'dateFormat' | 'noFutureDate'> & {
|
|
23
|
+
type: 'date';
|
|
24
|
+
};
|
|
22
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/date/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/date/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACzE,0CAA0C;IAC1C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,oBAAY,UAAU;IACpB;;;OAGG;IACH,aAAa,UAAU;IACvB;;OAEG;IACH,eAAe,QAAQ;CACxB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC,GACzE,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,cAAc,CAAC,GAAG;IACpD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-map-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/map/schema-map-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAuBlE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SIZE } from 'baseui/input';
|
|
2
|
-
import type { BaseFieldProps } from '../../../../components/form/fields/types';
|
|
2
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../../../../components/form/fields/types';
|
|
3
3
|
export interface KeyValueEntry {
|
|
4
4
|
/** Stable React key — monotonically increasing, never reused after deletion. */
|
|
5
5
|
id: number;
|
|
@@ -31,4 +31,7 @@ export interface MapFieldOwnProps extends KeyValueRowConfig {
|
|
|
31
31
|
emptyMessage?: string;
|
|
32
32
|
}
|
|
33
33
|
export type MapFieldProps = MapFieldOwnProps & BaseFieldProps<Record<string, string>>;
|
|
34
|
+
export type MapFieldConfig<T = Record<string, string>> = SharedFieldConfig<T, Record<string, string>> & Pick<MapFieldOwnProps & KeyValueRowConfig, 'singleValue' | 'creatable' | 'emptyMessage' | 'keyConfig' | 'valueConfig' | 'deletable' | 'size'> & {
|
|
35
|
+
type: 'map';
|
|
36
|
+
};
|
|
34
37
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/map/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/map/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5F,MAAM,WAAW,aAAa;IAC5B,gFAAgF;IAChF,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qFAAqF;AACrF,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,SAAS,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAEzD,+CAA+C;IAC/C,WAAW,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEvC,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,OAAO,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,gFAAgF;IAChF,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEtF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,iBAAiB,CACxE,CAAC,EACD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACvB,GACC,IAAI,CACF,gBAAgB,GAAG,iBAAiB,EAClC,aAAa,GACb,WAAW,GACX,cAAc,GACd,WAAW,GACX,aAAa,GACb,WAAW,GACX,MAAM,CACT,GAAG;IACF,IAAI,EAAE,KAAK,CAAC;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-markdown-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/markdown/schema-markdown-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAmBvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
2
2
|
export interface MarkdownFieldProps extends BaseFieldProps<string> {
|
|
3
3
|
rows?: number;
|
|
4
4
|
/**
|
|
@@ -8,4 +8,7 @@ export interface MarkdownFieldProps extends BaseFieldProps<string> {
|
|
|
8
8
|
*/
|
|
9
9
|
maxLength?: number;
|
|
10
10
|
}
|
|
11
|
+
export type MarkdownFieldConfig<T = string> = SharedFieldConfig<T, string> & Pick<MarkdownFieldProps, 'rows' | 'maxLength'> & {
|
|
12
|
+
type: 'markdown';
|
|
13
|
+
};
|
|
11
14
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/markdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/markdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC,GACxE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG;IAC/C,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-number-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/number/schema-number-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAiBrE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
2
|
+
export type NumberFieldProps = BaseFieldProps<number | undefined>;
|
|
3
|
+
export type NumberFieldConfig<T = number | undefined> = SharedFieldConfig<T, number | undefined> & {
|
|
4
|
+
type: 'number';
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/number/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;AAElE,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,MAAM,GAAG,SAAS,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IACjG,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-radio-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/radio/schema-radio-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAkBpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Align } from 'baseui/radio';
|
|
2
|
-
import type { BaseFieldProps } from '../types';
|
|
2
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
3
3
|
export interface RadioOption {
|
|
4
4
|
value: string | boolean;
|
|
5
5
|
label: string;
|
|
@@ -11,4 +11,7 @@ export interface RadioFieldProps extends BaseFieldProps<string | boolean> {
|
|
|
11
11
|
options: RadioOption[];
|
|
12
12
|
align?: Align;
|
|
13
13
|
}
|
|
14
|
+
export type RadioFieldConfig<T = string | boolean> = SharedFieldConfig<T, string | boolean> & Pick<RadioFieldProps, 'options' | 'align'> & {
|
|
15
|
+
type: 'radio';
|
|
16
|
+
};
|
|
14
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/radio/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/radio/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,yGAAyG;IACzG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,MAAM,GAAG,OAAO,CAAC;IACvE,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,MAAM,GAAG,OAAO,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GACzF,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG;IAC3C,IAAI,EAAE,OAAO,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FieldConfig } from '../../../components/form/types/config-types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves and renders the field renderer for a given field path.
|
|
4
|
+
*
|
|
5
|
+
* Renders nothing if specified field configuration's type is not
|
|
6
|
+
* registered to FIELD_RENDERERS or FormContext.renderers.
|
|
7
|
+
*/
|
|
8
|
+
export declare function SchemaField({ fieldPath, config, }: {
|
|
9
|
+
fieldPath: string;
|
|
10
|
+
config: FieldConfig | undefined;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=schema-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-field.d.ts","sourceRoot":"","sources":["../../../../components/form/fields/schema-field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAE5E;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;CACjC,kDAKA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-select-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/select/schema-select-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAyBrE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
2
2
|
export interface SelectOption<V = string | number> {
|
|
3
3
|
id: V;
|
|
4
4
|
label: string;
|
|
@@ -21,5 +21,15 @@ export type SelectFieldProps<V = string | number> = (SelectFieldOwnProps<V> & Ba
|
|
|
21
21
|
}) | (SelectFieldOwnProps<V> & BaseFieldProps<V[]> & {
|
|
22
22
|
multi: true;
|
|
23
23
|
});
|
|
24
|
+
type SelectFieldConfigOwnProps = Pick<SelectFieldOwnProps<string | number>, 'options' | 'clearable' | 'searchable' | 'creatable' | 'isLoading' | 'visibleOptionLimit'>;
|
|
25
|
+
export type SingleSelectFieldConfig<T = string | number> = SharedFieldConfig<T, string | number> & SelectFieldConfigOwnProps & {
|
|
26
|
+
type: 'select';
|
|
27
|
+
multi?: false;
|
|
28
|
+
};
|
|
29
|
+
export type MultiSelectFieldConfig<T = Array<string | number>> = SharedFieldConfig<T, Array<string | number>> & SelectFieldConfigOwnProps & {
|
|
30
|
+
type: 'select';
|
|
31
|
+
multi: true;
|
|
32
|
+
};
|
|
33
|
+
export type SelectFieldConfig<T = string | number> = SingleSelectFieldConfig<T> | MultiSelectFieldConfig<T>;
|
|
24
34
|
export {};
|
|
25
35
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM;IAC/C,EAAE,EAAE,CAAC,CAAC;IACN,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,mBAAmB,CAAC,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,IAC5C,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GAChE,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAErE,KAAK,yBAAyB,GAAG,IAAI,CACnC,mBAAmB,CAAC,MAAM,GAAG,MAAM,CAAC,EACpC,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,oBAAoB,CAC1F,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GAC9F,yBAAyB,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEJ,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,iBAAiB,CAChF,CAAC,EACD,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CACvB,GACC,yBAAyB,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAEJ,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,IAC7C,uBAAuB,CAAC,CAAC,CAAC,GAC1B,sBAAsB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FieldRendererProps } from '../../../../components/form/types/config-types';
|
|
2
|
+
/** Schema-aware wrapper for StringField that maps config to component props. */
|
|
3
|
+
export declare function SchemaStringField({ name, config }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=schema-string-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-string-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/string/schema-string-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAmBrE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SharedFieldConfig } from '../types';
|
|
1
2
|
import type { BaseFieldProps } from '../types';
|
|
2
3
|
export type SingleStringFieldProps = BaseFieldProps<string> & {
|
|
3
4
|
multi?: false;
|
|
@@ -6,4 +7,13 @@ export type MultiStringFieldProps = BaseFieldProps<string[]> & {
|
|
|
6
7
|
multi: true;
|
|
7
8
|
};
|
|
8
9
|
export type StringFieldProps = SingleStringFieldProps | MultiStringFieldProps;
|
|
10
|
+
export type SingleStringFieldConfig<T = string> = SharedFieldConfig<T, string> & {
|
|
11
|
+
type: 'string';
|
|
12
|
+
multi?: false;
|
|
13
|
+
};
|
|
14
|
+
export type MultiStringFieldConfig<T = string[]> = SharedFieldConfig<T, string[]> & {
|
|
15
|
+
type: 'string';
|
|
16
|
+
multi: true;
|
|
17
|
+
};
|
|
18
|
+
export type StringFieldConfig<T = string> = SingleStringFieldConfig<T> | MultiStringFieldConfig<T>;
|
|
9
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/string/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/E,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/string/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/E,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAE9E,MAAM,MAAM,uBAAuB,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IAC/E,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,MAAM,EAAE,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG;IAClF,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,MAAM,IAAI,uBAAuB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-textarea-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/textarea/schema-textarea-field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAiBvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../types';
|
|
2
2
|
export interface TextareaFieldProps extends BaseFieldProps<string> {
|
|
3
3
|
rows?: number;
|
|
4
4
|
/**
|
|
@@ -12,4 +12,7 @@ export interface MaxLengthLabelEnhancerProps {
|
|
|
12
12
|
maxLength: number;
|
|
13
13
|
currentLength: number;
|
|
14
14
|
}
|
|
15
|
+
export type TextareaFieldConfig<T = string> = SharedFieldConfig<T, string> & Pick<TextareaFieldProps, 'rows' | 'maxLength'> & {
|
|
16
|
+
type: 'textarea';
|
|
17
|
+
};
|
|
15
18
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/textarea/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/textarea/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC,GACxE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG;IAC/C,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FieldValidation } from '../../../components/form/types/config-types';
|
|
1
2
|
import type { FieldValidator } from '../../../components/form/validation/types';
|
|
2
3
|
export interface BaseFieldProps<T = unknown, InputValue = T> {
|
|
3
4
|
/** Unique ID of the field,
|
|
@@ -74,4 +75,8 @@ export interface BaseFieldProps<T = unknown, InputValue = T> {
|
|
|
74
75
|
*/
|
|
75
76
|
validate?: FieldValidator;
|
|
76
77
|
}
|
|
78
|
+
/** Declarative field configuration derived from BaseFieldProps, excluding runtime-only concerns. */
|
|
79
|
+
export type SharedFieldConfig<T = unknown, InputValue = T> = Pick<BaseFieldProps<T, InputValue>, 'label' | 'required' | 'disabled' | 'readOnly' | 'placeholder' | 'description' | 'caption' | 'defaultValue' | 'initialValue' | 'parse' | 'format'> & {
|
|
80
|
+
validation?: FieldValidation;
|
|
81
|
+
};
|
|
77
82
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../components/form/fields/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAE7E,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,GAAG,CAAC;IACzD;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEnC;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,CAAC;IAEjC;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,UAAU,CAAC;IAElC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../components/form/fields/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAE7E,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,GAAG,CAAC;IACzD;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEnC;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,CAAC;IAEjC;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,UAAU,CAAC;IAElC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,oGAAoG;AACpG,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,GAAG,CAAC,IAAI,IAAI,CAC/D,cAAc,CAAC,CAAC,EAAE,UAAU,CAAC,EAC3B,OAAO,GACP,UAAU,GACV,UAAU,GACV,UAAU,GACV,aAAa,GACb,aAAa,GACb,SAAS,GACT,cAAc,GACd,cAAc,GACd,OAAO,GACP,QAAQ,CACX,GAAG;IACF,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-url-field.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/url/schema-url-field.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAkBlE"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { BaseFieldProps } from '../../../../components/form/fields/types';
|
|
1
|
+
import type { BaseFieldProps, SharedFieldConfig } from '../../../../components/form/fields/types';
|
|
2
2
|
export interface UrlFieldProps extends BaseFieldProps<string> {
|
|
3
3
|
/** Display label for the link; falls back to the field value if omitted */
|
|
4
4
|
urlName?: string;
|
|
5
5
|
}
|
|
6
|
+
export type UrlFieldConfig<T = string> = SharedFieldConfig<T, string> & Pick<UrlFieldProps, 'urlName'> & {
|
|
7
|
+
type: 'url';
|
|
8
|
+
};
|
|
6
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/url/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/url/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5F,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,MAAM,CAAC;IAC3D,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC,GACnE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,GAAG;IAC/B,IAAI,EAAE,KAAK,CAAC;CACb,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormInstance } from './types';
|
|
1
|
+
import type { FormInstance } from './types/form-types';
|
|
2
2
|
export declare const FormContext: import("react").Context<FormInstance | null>;
|
|
3
3
|
export declare function useFormContext(): FormInstance;
|
|
4
4
|
//# sourceMappingURL=form-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-context.d.ts","sourceRoot":"","sources":["../../../components/form/form-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"form-context.d.ts","sourceRoot":"","sources":["../../../components/form/form-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,WAAW,8CAA2C,CAAC;AAEpE,wBAAgB,cAAc,IAAI,YAAY,CAI7C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FormData, FormProps } from './types';
|
|
1
|
+
import type { FormData, FormProps } from './types/form-types';
|
|
2
2
|
export declare const Form: <FieldValues extends FormData = FormData>({ onSubmit, initialValues, id, children, render, footer, focusOnError, }: FormProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../components/form/form.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAiB,QAAQ,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../components/form/form.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAiB,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI7E,eAAO,MAAM,IAAI,GAAI,WAAW,SAAS,QAAQ,uFAQ9C,SAAS,CAAC,WAAW,CAAC,4CAqCxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-array-field.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-array-field.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-array-field.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-array-field.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,aAAa,CAC3B,aAAa,EAAE,MAAM,EACrB,EAAE,QAAY,EAAE,QAAgB,EAAE,GAAE,iBAAsB;;;;;;oBAyBnC,MAAM;;EAe9B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FieldRenderer } from '../../../components/form/types/config-types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves a field renderer by type. Checks context-registered renderers first
|
|
4
|
+
* (via FormProvider), then falls back to built-in renderers.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useFieldRenderer(type: string): FieldRenderer | undefined;
|
|
7
|
+
//# sourceMappingURL=use-field-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-field-renderer.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-field-renderer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE9E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAIxE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FieldValidator } from '../../../components/form/validation/types';
|
|
2
|
-
import type { FieldInput, FieldState } from '../types';
|
|
2
|
+
import type { FieldInput, FieldState } from '../types/form-types';
|
|
3
3
|
export declare function useField<T = unknown, InputValue = T>(name: string, options?: {
|
|
4
4
|
validate?: FieldValidator;
|
|
5
5
|
required?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-field.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-field.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-field.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-field.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElE,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,GAAG,CAAC,EAClD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,UAAU,CAAC;CACnC,GACA;IAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CA+BxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-state.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-form-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-form-state.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-form-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,WAAW,SAAS,QAAQ,GAAG,QAAQ,KAAK,SAAS,CAAC,WAAW,CAAC,CAAC;AAChG,wBAAgB,YAAY,CAAC,WAAW,SAAS,QAAQ,GAAG,QAAQ,EAClE,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC,GACnE,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-form.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../components/form/hooks/use-form.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,wBAAgB,OAAO,IAAI,OAAO,CAQjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate-condition.test.d.ts","sourceRoot":"","sources":["../../../../../../components/form/layout/condition/__tests__/evaluate-condition.test.ts"],"names":[],"mappings":""}
|