@vulcanjs/react-ui 0.6.6-y.0 → 0.6.6-y.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/dist/components/VulcanComponents/Provider.d.ts.map +1 -1
  2. package/dist/components/VulcanComponents/index.d.ts +1 -0
  3. package/dist/components/VulcanComponents/index.d.ts.map +1 -1
  4. package/dist/components/form/core/FormComponent.d.ts +2 -27
  5. package/dist/components/form/core/FormComponent.d.ts.map +1 -1
  6. package/dist/components/form/core/FormComponentInner.d.ts +2 -30
  7. package/dist/components/form/core/FormComponentInner.d.ts.map +1 -1
  8. package/dist/components/form/index.d.ts +1 -1
  9. package/dist/components/form/index.d.ts.map +1 -1
  10. package/dist/components/form/inputs/AutocompleteMultiple.d.ts +1 -1
  11. package/dist/components/form/inputs/AutocompleteMultiple.d.ts.map +1 -1
  12. package/dist/components/form/inputs/BasicInputs.d.ts +1 -1
  13. package/dist/components/form/inputs/BasicInputs.d.ts.map +1 -1
  14. package/dist/components/form/inputs/Checkboxgroup.d.ts +1 -1
  15. package/dist/components/form/inputs/Checkboxgroup.d.ts.map +1 -1
  16. package/dist/components/form/inputs/FormItem.d.ts +1 -1
  17. package/dist/components/form/inputs/FormItem.d.ts.map +1 -1
  18. package/dist/components/form/inputs/FormOptionLabel.d.ts +1 -1
  19. package/dist/components/form/inputs/FormOptionLabel.d.ts.map +1 -1
  20. package/dist/components/form/inputs/RadioGroup.d.ts +1 -1
  21. package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -1
  22. package/dist/components/form/inputs/SelectInputs.d.ts +1 -1
  23. package/dist/components/form/inputs/SelectInputs.d.ts.map +1 -1
  24. package/dist/components/form/typings.d.ts +53 -1
  25. package/dist/components/form/typings.d.ts.map +1 -1
  26. package/dist/index.js +574 -571
  27. package/dist/index.js.map +1 -1
  28. package/package.json +2 -2
  29. package/dist/components/form/FieldErrors.d.ts +0 -6
  30. package/dist/components/form/Form/Form.d.ts +0 -4
  31. package/dist/components/form/Form/fields.d.ts +0 -22
  32. package/dist/components/form/Form/index.d.ts +0 -3
  33. package/dist/components/form/Form/typings.d.ts +0 -76
  34. package/dist/components/form/Form/utils.d.ts +0 -2
  35. package/dist/components/form/FormComponent.d.ts +0 -31
  36. package/dist/components/form/FormComponentInner.d.ts +0 -32
  37. package/dist/components/form/FormComponentLoader.d.ts +0 -15
  38. package/dist/components/form/FormContainer.d.ts +0 -18
  39. package/dist/components/form/FormContext.d.ts +0 -25
  40. package/dist/components/form/FormElement.d.ts +0 -4
  41. package/dist/components/form/FormError.d.ts +0 -11
  42. package/dist/components/form/FormErrors.d.ts +0 -3
  43. package/dist/components/form/FormGroup.d.ts +0 -30
  44. package/dist/components/form/FormIntl.d.ts +0 -15
  45. package/dist/components/form/FormLayout.d.ts +0 -10
  46. package/dist/components/form/FormNestedArray.d.ts +0 -26
  47. package/dist/components/form/FormNestedArrayLayout.d.ts +0 -18
  48. package/dist/components/form/FormNestedDivider.d.ts +0 -13
  49. package/dist/components/form/FormNestedItem.d.ts +0 -52
  50. package/dist/components/form/FormNestedObject.d.ts +0 -35
  51. package/dist/components/form/FormOptionLabel.d.ts +0 -5
  52. package/dist/components/form/FormSubmit.d.ts +0 -38
  53. package/dist/components/form/core/Button.d.ts +0 -4
  54. package/dist/components/form/core/Loading.d.ts +0 -3
  55. package/dist/components/form/modules/formFragments.d.ts +0 -16
  56. package/dist/components/form/modules/path_utils.d.ts +0 -6
  57. package/dist/components/form/modules/schema_utils.d.ts +0 -14
  58. package/dist/components/form/modules/utils.d.ts +0 -17
  59. package/dist/components/form/ui_utils.d.ts +0 -3
  60. package/dist/components/form/useBlockTransition/block.d.ts +0 -4
  61. package/dist/components/form/useBlockTransition/useBlockTransition.d.ts +0 -5
  62. package/dist/components/form/useWarnOnUnsaved/index.d.ts +0 -2
  63. package/dist/components/form/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +0 -5
  64. package/dist/decorators/autocomplete.d.ts +0 -8
  65. package/dist/decorators/index.d.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAUrD,eAAO,MAAM,wBAAwB;;cAKzB,MAAM,SAAS;iBA+B1B,CAAC"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAUrD,eAAO,MAAM,wBAAwB;;cAKzB,MAAM,SAAS;iBAgC1B,CAAC"}
@@ -2,4 +2,5 @@ export * from "./Provider";
2
2
  export * from "./Context";
3
3
  export * from "./Consumer";
4
4
  export * from "./typings";
5
+ export * from "./defaultVulcanComponents";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAE1B,cAAc,2BAA2B,CAAC"}
@@ -1,30 +1,5 @@
1
- import React from "react";
2
- import type { PossibleVulcanComponents } from "../../VulcanComponents/typings";
3
- import { FormField } from "../typings";
4
- import { VulcanFieldInput, VulcanFieldType } from "@vulcanjs/schema";
5
- export declare type FormOption<TField = any> = {
6
- label: string;
7
- value: TField;
8
- checked?: boolean;
9
- };
10
- export interface FormComponentProps<TField = any> extends Omit<FormField, "type"> {
11
- document: any;
12
- datatype: VulcanFieldType;
13
- disabled: boolean;
14
- errors: Array<any>;
15
- help?: string;
16
- path: string;
17
- defaultValue?: TField;
18
- max?: number;
19
- locale?: string;
20
- input?: VulcanFieldInput | string | React.Component;
21
- formType: "new" | "edit";
22
- intlInput?: boolean;
23
- nestedInput?: boolean;
24
- query?: string;
25
- options?: Array<FormOption> | ((fciProps?: any) => Array<FormOption>);
26
- vulcanComponents?: PossibleVulcanComponents;
27
- }
1
+ /// <reference types="react" />
2
+ import { FormComponentProps } from "../typings";
28
3
  export declare const FormComponent: (props: FormComponentProps) => JSX.Element;
29
4
  export declare const formComponentsDependencies: string[];
30
5
  export default FormComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"FormComponent.d.ts","sourceRoot":"","sources":["../../../../components/form/core/FormComponent.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAEL,gBAAgB,EAChB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAkK1B,oBAAY,UAAU,CAAC,MAAM,GAAG,GAAG,IAAI;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,kBAAkB,CAAC,MAAM,GAAG,GAAG,CAC9C,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,gBAAgB,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpD,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IACtE,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C;AAID,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAqOtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAoBtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"FormComponent.d.ts","sourceRoot":"","sources":["../../../../components/form/core/FormComponent.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAoKhD,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAqOtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAoBtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,32 +1,4 @@
1
- import React, { MouseEventHandler } from "react";
2
- import { FormComponentProps } from "./FormComponent";
3
- import { VulcanCoreInput } from "@vulcanjs/schema";
4
- import { PossibleVulcanComponents } from "../../VulcanComponents/typings";
5
- export interface FormComponentInnerProps extends FormComponentProps {
6
- inputType: VulcanCoreInput;
7
- clearField?: MouseEventHandler<HTMLButtonElement>;
8
- handleChange?: Function;
9
- itemProperties?: any;
10
- description?: string;
11
- loading?: boolean;
12
- submitForm: any;
13
- formComponents: PossibleVulcanComponents;
14
- intlKeys?: any;
15
- inputClassName: any;
16
- name?: string;
17
- input: any;
18
- beforeComponent: any;
19
- afterComponent: any;
20
- errors: any;
21
- showCharsRemaining: any;
22
- charsRemaining: any;
23
- renderComponent: any;
24
- formInput: any;
25
- }
1
+ /// <reference types="react" />
2
+ import type { FormComponentInnerProps } from "../typings";
26
3
  export declare const FormComponentInner: (props: FormComponentInnerProps) => JSX.Element;
27
- export interface FormInputProps<TInput = HTMLInputElement> extends FormComponentInnerProps {
28
- inputProperties: React.HTMLProps<TInput>;
29
- itemProperties: any;
30
- }
31
- export declare type FormTextAreaProps = FormInputProps<HTMLTextAreaElement>;
32
4
  //# sourceMappingURL=FormComponentInner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormComponentInner.d.ts","sourceRoot":"","sources":["../../../../components/form/core/FormComponentInner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAQrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,SAAS,EAAE,eAAe,CAAC;IAM3B,UAAU,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAIlD,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,wBAAwB,CAAC;IACzC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,GAAG,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,EAAE,GAAG,CAAC;IACxB,cAAc,EAAE,GAAG,CAAC;IACpB,eAAe,EAAE,GAAG,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,gBA2IhE,CAAC;AAMF,MAAM,WAAW,cAAc,CAAC,MAAM,GAAG,gBAAgB,CACvD,SAAQ,uBAAuB;IAU/B,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzC,cAAc,EAAE,GAAG,CAAC;CACrB;AACD,oBAAY,iBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"FormComponentInner.d.ts","sourceRoot":"","sources":["../../../../components/form/core/FormComponentInner.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAkB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAG1E,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,gBA2IhE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export * from "./core/FormContainer";
2
2
  export * from "./core/Form";
3
3
  export * from "./core/FormContext";
4
- export type { FormInputProps } from "./core/FormComponentInner";
4
+ export type { FormInputProps } from "./typings";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AAEnC,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AAEnC,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { FormInputProps } from "../core/FormComponentInner";
2
+ import type { FormInputProps } from "../typings";
3
3
  export interface AutocompleteMultipleProps extends FormInputProps {
4
4
  }
5
5
  export declare const AutocompleteMultiple: (props: AutocompleteMultipleProps) => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteMultiple.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/AutocompleteMultiple.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,MAAM,WAAW,yBAA0B,SAAQ,cAAc;CAAG;AACpE,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,gBAuFpE,CAAC"}
1
+ {"version":3,"file":"AutocompleteMultiple.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/AutocompleteMultiple.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,MAAM,WAAW,yBAA0B,SAAQ,cAAc;CAAI;AACrE,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,gBAuFpE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps, FormTextAreaProps } from "../core/FormComponentInner";
2
+ import { FormInputProps, FormTextAreaProps } from "../typings";
3
3
  export declare const FormComponentDefault: (props: FormInputProps) => JSX.Element;
4
4
  export declare const FormComponentPassword: (props: FormInputProps) => JSX.Element;
5
5
  export declare const FormComponentNumber: (props: FormInputProps) => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"BasicInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/BasicInputs.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAkC/E,eAAO,MAAM,oBAAoB,UAAW,cAA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,MAAM,mBAAmB,wBACQ,CAAC;AACzC,eAAO,MAAM,yBAAyB,wBACQ,CAAC;AAI/C,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,gBAgB7D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps } from "../core/FormComponentInner";
2
+ import type { FormInputProps } from "../typings";
3
3
  export declare const otherMarker = "[other]";
4
4
  export declare const isOtherValue: (s: any) => any;
5
5
  export declare const removeOtherMarker: (s: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkboxgroup.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/Checkboxgroup.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI5D,eAAO,MAAM,WAAW,YAAY,CAAC;AAGrC,eAAO,MAAM,YAAY,iBACsD,CAAC;AAGhF,eAAO,MAAM,iBAAiB,iBAC8B,CAAC;AAG7D,eAAO,MAAM,cAAc,oBAA8B,CAAC;AAG1D,eAAO,MAAM,gBAAgB,iBAE5B,CAAC;AAwEF,eAAO,MAAM,0BAA0B,UAAW,cAAc,gBAgG/D,CAAC"}
1
+ {"version":3,"file":"Checkboxgroup.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/Checkboxgroup.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,eAAO,MAAM,WAAW,YAAY,CAAC;AAGrC,eAAO,MAAM,YAAY,iBACsD,CAAC;AAGhF,eAAO,MAAM,iBAAiB,iBAC8B,CAAC;AAG7D,eAAO,MAAM,cAAc,oBAA8B,CAAC;AAG1D,eAAO,MAAM,gBAAgB,iBAE5B,CAAC;AAwEF,eAAO,MAAM,0BAA0B,UAAW,cAAc,gBAgG/D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps } from "../core/FormComponentInner";
2
+ import { FormInputProps } from "../typings";
3
3
  export declare const FormItem: (props: FormInputProps["itemProperties"] & Pick<FormInputProps["inputProperties"], "label" | "name">) => JSX.Element;
4
4
  //# sourceMappingURL=FormItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormItem.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/FormItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK5D,eAAO,MAAM,QAAQ,UACZ,cAAc,CAAC,gBAAgB,CAAC,GACrC,KAAK,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,gBAS5D,CAAC"}
1
+ {"version":3,"file":"FormItem.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/FormItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,eAAO,MAAM,QAAQ,UACZ,cAAc,CAAC,gBAAgB,CAAC,GACrC,KAAK,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,gBAS5D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { FormOption } from "../core/FormComponent";
2
+ import type { FormOption } from "../typings";
3
3
  export interface FormOptionLabelProps extends React.HTMLProps<HTMLLabelElement> {
4
4
  option: FormOption;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FormOptionLabel.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/FormOptionLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IACzC,MAAM,EAAE,UAAU,CAAC;CACpB;AACD,eAAO,MAAM,eAAe,qBAAsB,oBAAoB,gBAQrE,CAAC"}
1
+ {"version":3,"file":"FormOptionLabel.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/FormOptionLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IACzC,MAAM,EAAE,UAAU,CAAC;CACpB;AACD,eAAO,MAAM,eAAe,qBAAsB,oBAAoB,gBAQrE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps } from "../core/FormComponentInner";
2
+ import { FormInputProps } from "../typings";
3
3
  export declare const FormComponentRadioGroup: (props: FormInputProps) => JSX.Element;
4
4
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/RadioGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAO5D,eAAO,MAAM,uBAAuB,UAAW,cAAc,gBA4C5D,CAAC"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/RadioGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAQ5C,eAAO,MAAM,uBAAuB,UAAW,cAAc,gBA4C5D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { FormInputProps } from "../core/FormComponentInner";
2
+ import type { FormInputProps } from "../typings";
3
3
  export declare const FormComponentSelect: (props: FormInputProps<HTMLSelectElement>) => JSX.Element;
4
4
  export declare const FormComponentSelectMultiple: (props: any) => JSX.Element;
5
5
  //# sourceMappingURL=SelectInputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/SelectInputs.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAwCjE,eAAO,MAAM,mBAAmB,UACvB,eAAe,iBAAiB,CAAC,gBACL,CAAC;AAEtC,eAAO,MAAM,2BAA2B,6BAGvC,CAAC"}
1
+ {"version":3,"file":"SelectInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/SelectInputs.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwCjD,eAAO,MAAM,mBAAmB,UACvB,eAAe,iBAAiB,CAAC,gBACL,CAAC;AAEtC,eAAO,MAAM,2BAA2B,6BAGvC,CAAC"}
@@ -1,4 +1,25 @@
1
- import { VulcanFieldSchema } from "@vulcanjs/schema";
1
+ import type { MouseEventHandler } from "react";
2
+ import type { VulcanCoreInput } from "@vulcanjs/schema";
3
+ import type { PossibleVulcanComponents } from "../VulcanComponents/typings";
4
+ import type { VulcanFieldSchema, VulcanFieldInput, VulcanFieldType } from "@vulcanjs/schema";
5
+ export interface FormComponentProps<TField = any> extends Omit<FormField, "type"> {
6
+ document: any;
7
+ datatype: VulcanFieldType;
8
+ disabled: boolean;
9
+ errors: Array<any>;
10
+ help?: string;
11
+ path: string;
12
+ defaultValue?: TField;
13
+ max?: number;
14
+ locale?: string;
15
+ input?: VulcanFieldInput | string | React.Component;
16
+ formType: "new" | "edit";
17
+ intlInput?: boolean;
18
+ nestedInput?: boolean;
19
+ query?: string;
20
+ options?: Array<FormOption> | ((fciProps?: any) => Array<FormOption>);
21
+ vulcanComponents?: PossibleVulcanComponents;
22
+ }
2
23
  export interface FormField extends VulcanFieldSchema {
3
24
  name: string;
4
25
  path?: string;
@@ -12,4 +33,35 @@ export interface FormField extends VulcanFieldSchema {
12
33
  layout?: "horizontal" | "vertical";
13
34
  }
14
35
  export declare type FormType = "new" | "edit";
36
+ export declare type FormOption<TField = any> = {
37
+ label: string;
38
+ value: TField;
39
+ checked?: boolean;
40
+ };
41
+ export interface FormComponentInnerProps extends FormComponentProps {
42
+ inputType: VulcanCoreInput;
43
+ clearField?: MouseEventHandler<HTMLButtonElement>;
44
+ handleChange?: Function;
45
+ itemProperties?: any;
46
+ description?: string;
47
+ loading?: boolean;
48
+ submitForm: any;
49
+ formComponents: PossibleVulcanComponents;
50
+ intlKeys?: any;
51
+ inputClassName: any;
52
+ name?: string;
53
+ input: any;
54
+ beforeComponent: any;
55
+ afterComponent: any;
56
+ errors: any;
57
+ showCharsRemaining: any;
58
+ charsRemaining: any;
59
+ renderComponent: any;
60
+ formInput: any;
61
+ }
62
+ export interface FormInputProps<TInput = HTMLInputElement> extends FormComponentInnerProps {
63
+ inputProperties: React.HTMLProps<TInput>;
64
+ itemProperties: any;
65
+ }
66
+ export declare type FormTextAreaProps = FormInputProps<HTMLTextAreaElement>;
15
67
  //# sourceMappingURL=typings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../components/form/typings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,MAAM,WAAW,SAAU,SAAQ,iBAAiB;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACpC;AAED,oBAAY,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../components/form/typings.ts"],"names":[],"mappings":"AAAA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