@vulcanjs/react-ui 0.6.6-y.8 → 0.6.8-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/dist/components/VulcanComponents/index.d.ts +1 -1
  2. package/dist/components/VulcanComponents/index.d.ts.map +1 -1
  3. package/dist/components/core/index.d.ts +4 -0
  4. package/dist/components/core/index.d.ts.map +1 -0
  5. package/dist/components/form/FieldErrors.d.ts +6 -0
  6. package/dist/components/form/Form/Form.d.ts +4 -0
  7. package/dist/components/form/Form/fields.d.ts +22 -0
  8. package/dist/components/form/Form/index.d.ts +3 -0
  9. package/dist/components/form/Form/typings.d.ts +76 -0
  10. package/dist/components/form/Form/utils.d.ts +2 -0
  11. package/dist/components/form/FormComponent.d.ts +31 -0
  12. package/dist/components/form/FormComponentInner.d.ts +32 -0
  13. package/dist/components/form/FormComponentLoader.d.ts +15 -0
  14. package/dist/components/form/FormContainer.d.ts +18 -0
  15. package/dist/components/form/FormContext.d.ts +25 -0
  16. package/dist/components/form/FormElement.d.ts +4 -0
  17. package/dist/components/form/FormError.d.ts +11 -0
  18. package/dist/components/form/FormErrors.d.ts +3 -0
  19. package/dist/components/form/FormGroup.d.ts +30 -0
  20. package/dist/components/form/FormIntl.d.ts +15 -0
  21. package/dist/components/form/FormLayout.d.ts +10 -0
  22. package/dist/components/form/FormNestedArray.d.ts +26 -0
  23. package/dist/components/form/FormNestedArrayLayout.d.ts +18 -0
  24. package/dist/components/form/FormNestedDivider.d.ts +13 -0
  25. package/dist/components/form/FormNestedItem.d.ts +52 -0
  26. package/dist/components/form/FormNestedObject.d.ts +35 -0
  27. package/dist/components/form/FormOptionLabel.d.ts +5 -0
  28. package/dist/components/form/FormSubmit.d.ts +38 -0
  29. package/dist/components/form/core/Button.d.ts +4 -0
  30. package/dist/components/form/core/FormComponent.d.ts +27 -2
  31. package/dist/components/form/core/FormComponentInner.d.ts +30 -2
  32. package/dist/components/form/core/FormContainer.d.ts.map +1 -1
  33. package/dist/components/form/core/FormContext.d.ts.map +1 -1
  34. package/dist/components/form/core/Loading.d.ts +3 -0
  35. package/dist/components/form/index.d.ts +1 -0
  36. package/dist/components/form/index.d.ts.map +1 -1
  37. package/dist/components/form/inputs/AutocompleteMultiple.d.ts +1 -1
  38. package/dist/components/form/inputs/BasicInputs.d.ts +1 -1
  39. package/dist/components/form/inputs/Checkboxgroup.d.ts +1 -1
  40. package/dist/components/form/inputs/FormItem.d.ts +1 -1
  41. package/dist/components/form/inputs/FormOptionLabel.d.ts +1 -1
  42. package/dist/components/form/inputs/RadioGroup.d.ts +1 -1
  43. package/dist/components/form/inputs/SelectInputs.d.ts +1 -1
  44. package/dist/components/form/modules/formFragments.d.ts +16 -0
  45. package/dist/components/form/modules/path_utils.d.ts +6 -0
  46. package/dist/components/form/modules/schema_utils.d.ts +14 -0
  47. package/dist/components/form/modules/utils.d.ts +17 -0
  48. package/dist/components/form/ui_utils.d.ts +3 -0
  49. package/dist/components/form/useBlockTransition/block.d.ts +4 -0
  50. package/dist/components/form/useBlockTransition/useBlockTransition.d.ts +5 -0
  51. package/dist/components/form/useWarnOnUnsaved/index.d.ts +2 -0
  52. package/dist/components/form/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +5 -0
  53. package/dist/components/form/utils/index.d.ts +6 -0
  54. package/dist/components/form/utils/index.d.ts.map +1 -0
  55. package/dist/components/form/utils/ui_utils.d.ts.map +1 -0
  56. package/dist/decorators/autocomplete.d.ts +8 -0
  57. package/dist/decorators/index.d.ts +4 -0
  58. package/dist/index.d.ts +1 -1
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +1830 -3803
  61. package/dist/index.js.map +1 -1
  62. package/dist/testing/ExpectedErrorBoundary.d.ts +14 -0
  63. package/dist/testing/ExpectedErrorBoundary.d.ts.map +1 -0
  64. package/dist/testing.d.ts +2 -0
  65. package/dist/testing.d.ts.map +1 -0
  66. package/dist/testing.js +34 -0
  67. package/dist/testing.js.map +1 -0
  68. package/package.json +25 -17
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AAErC,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AAErC,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,cAAc,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { FormInputProps } from "../typings";
2
+ import type { FormInputProps } from "../core/FormComponentInner";
3
3
  export interface AutocompleteMultipleProps extends FormInputProps {
4
4
  }
5
5
  export declare const AutocompleteMultiple: (props: AutocompleteMultipleProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps, FormTextAreaProps } from "../typings";
2
+ import { FormInputProps, FormTextAreaProps } from "../core/FormComponentInner";
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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { FormInputProps } from "../typings";
2
+ import { FormInputProps } from "../core/FormComponentInner";
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,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps } from "../typings";
2
+ import { FormInputProps } from "../core/FormComponentInner";
3
3
  export declare const FormItem: (props: FormInputProps["itemProperties"] & Pick<FormInputProps["inputProperties"], "label" | "name">) => JSX.Element;
4
4
  //# sourceMappingURL=FormItem.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { FormOption } from "../typings";
2
+ import type { FormOption } from "../core/FormComponent";
3
3
  export interface FormOptionLabelProps extends React.HTMLProps<HTMLLabelElement> {
4
4
  option: FormOption;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { FormInputProps } from "../typings";
2
+ import { FormInputProps } from "../core/FormComponentInner";
3
3
  export declare const FormComponentRadioGroup: (props: FormInputProps) => JSX.Element;
4
4
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { FormInputProps } from "../typings";
2
+ import type { FormInputProps } from "../core/FormComponentInner";
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
@@ -0,0 +1,16 @@
1
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
2
+ import type { FormType } from "../typings";
3
+ declare const getFormFragments: ({ formType, model, fields, addFields, }: {
4
+ model: VulcanGraphqlModel;
5
+ formType: FormType;
6
+ fields?: string[] | undefined;
7
+ addFields?: string[] | undefined;
8
+ }) => {
9
+ queryFragment: import("graphql").DocumentNode;
10
+ mutationFragment: import("graphql").DocumentNode;
11
+ queryFragmentName: string;
12
+ mutationFragmentName: string;
13
+ extraQueries: (string | (() => string))[];
14
+ };
15
+ export default getFormFragments;
16
+ //# sourceMappingURL=formFragments.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare const splitPath: (string: string) => string[];
2
+ export declare const joinPath: (array: Array<string | number>) => string;
3
+ export declare const getParentPath: (string: string) => string;
4
+ export declare const removePrefix: (prefix: string, paths: Array<string>) => Array<string>;
5
+ export declare const filterPathsByPrefix: (prefix: string, paths: Array<string>) => string[];
6
+ //# sourceMappingURL=path_utils.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { VulcanFieldSchema, VulcanSchema } from "@vulcanjs/schema";
2
+ export declare const getValidFields: (schema: any) => string[];
3
+ export declare const getInsertableFields: (schema: any, user: any) => string[];
4
+ export declare const getEditableFields: (schema: any, user: any, document: any) => string[];
5
+ export declare const convertSchema: (schema: VulcanSchema, options?: {
6
+ flatten?: boolean;
7
+ removeArrays?: boolean;
8
+ }) => {};
9
+ export declare const getFieldSchema: (fieldName: string, schema: VulcanSchema) => {};
10
+ export declare const getSchemaType: (fieldSchema: VulcanFieldSchema) => import("@vulcanjs/schema").VulcanFieldType;
11
+ export declare const getNestedFieldSchemaOrType: (fieldName: any, schema: any) => Object | Number | Date | null;
12
+ export declare const schemaProperties: string[];
13
+ export declare const formProperties: string[];
14
+ //# sourceMappingURL=schema_utils.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { VulcanFieldSchema } from "@vulcanjs/schema";
2
+ export declare const deepValue: (obj: any, path: any) => any;
3
+ export declare const flatten: (data: any) => {};
4
+ export declare const isEmptyValue: (value: any) => boolean;
5
+ export declare const mergeValue: ({ currentValue, documentValue, deletedValues: deletedFields, path, locale, datatype, }: {
6
+ currentValue: any;
7
+ documentValue: any;
8
+ deletedValues: any;
9
+ path: any;
10
+ locale: any;
11
+ datatype: any;
12
+ }) => any;
13
+ export declare const getDeletedValues: (deletedFields: any, accumulator?: {}) => any;
14
+ export declare const getNestedDeletedValues: (prefix: any, deletedFields: any, accumulator?: {}) => any;
15
+ export declare const getFieldType: (fieldSchema: VulcanFieldSchema) => import("@vulcanjs/schema").VulcanFieldType;
16
+ export declare const getNullValue: (datatype: any) => false | "" | never[] | null;
17
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,3 @@
1
+ export declare const getHtmlInputProps: (props: any) => any;
2
+ export declare const whitelistInputProps: (props: any) => React.HTMLProps<HTMLInputElement>;
3
+ //# sourceMappingURL=ui_utils.d.ts.map
@@ -0,0 +1,4 @@
1
+ export declare const BLOCK_TRANSITION_EVENT_TYPE = "blocktransition";
2
+ export declare const UNBLOCK_TRANSITION_EVENT_TYPE = "unblocktransition";
3
+ export declare const block: (setConfirmationMessage: (event?: BeforeUnloadEvent | undefined) => string, onUnblock?: Function | undefined) => () => void;
4
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare const useBlockTransition: ({ shouldBlock, getBlockedMessage, }: {
2
+ shouldBlock: boolean;
3
+ getBlockedMessage: (evt?: BeforeUnloadEvent | undefined) => string;
4
+ }) => void;
5
+ //# sourceMappingURL=useBlockTransition.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from "./useWarnOnUnsaved";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare const useWarnOnUnsaved: ({ isChanged, warnUnsavedChanges, }: {
2
+ isChanged: boolean;
3
+ warnUnsavedChanges?: boolean | undefined;
4
+ }) => void;
5
+ //# sourceMappingURL=useWarnOnUnsaved.d.ts.map
@@ -0,0 +1,6 @@
1
+ export * as pathUtils from "./path_utils";
2
+ export * as utils from "./utils";
3
+ export * as schemaUtils from "./schema_utils";
4
+ export * as formFragmentsUtils from "./formFragments";
5
+ export * as uiUtils from "./ui_utils";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/form/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,kBAAkB,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui_utils.d.ts","sourceRoot":"","sources":["../../../../components/form/utils/ui_utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB,qBAsB7B,CAAC;AAOF,eAAO,MAAM,mBAAmB,UACvB,GAAG,KACT,MAAM,SAAS,CAAC,gBAAgB,CAkBlC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const makeAutocomplete: (field: any, options: {
2
+ autocompletePropertyName: string;
3
+ fragmentName?: string;
4
+ valuePropertyName?: string;
5
+ multi?: boolean;
6
+ queryResolverName?: string;
7
+ }) => any;
8
+ //# sourceMappingURL=autocomplete.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from "./likert";
2
+ export * from "./checkboxgroup";
3
+ export * from "./radiogroup";
4
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./components/core/typings";
1
+ export * from "./components/core";
2
2
  export * from "./components/form";
3
3
  export * from "./components/VulcanComponents";
4
4
  export * from "./components/VulcanCurrentUser";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}