@vulcanjs/react-ui 0.6.9-alpha.1 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/dist/components/Datatable/Datatable.d.ts +39 -0
  2. package/dist/components/Datatable/DatatableCell.d.ts +26 -0
  3. package/dist/components/Datatable/DatatableContents.d.ts +53 -0
  4. package/dist/components/Datatable/DatatableFilter.d.ts +33 -0
  5. package/dist/components/Datatable/DatatableHeader.d.ts +23 -0
  6. package/dist/components/Datatable/DatatableRow.d.ts +25 -0
  7. package/dist/components/Datatable/DatatableSelect.d.ts +11 -0
  8. package/dist/components/Datatable/DatatableSorter.d.ts +8 -0
  9. package/dist/components/Datatable/DatatableSubmitSelected.d.ts +6 -0
  10. package/dist/components/Datatable/others/DeleteButton.d.ts +13 -0
  11. package/dist/components/Datatable/others/EditButton.d.ts +20 -0
  12. package/dist/components/Datatable/others/NewButton.d.ts +20 -0
  13. package/dist/components/HeadTags.d.ts +13 -0
  14. package/dist/components/LoadingButton.d.ts +11 -0
  15. package/dist/components/MutationButton.d.ts +20 -0
  16. package/dist/components/VulcanComponents/Consumer.d.ts +0 -0
  17. package/dist/components/VulcanComponents/Context.d.ts +0 -0
  18. package/dist/components/VulcanComponents/Dummy.d.ts +0 -0
  19. package/dist/components/VulcanComponents/Provider.d.ts +0 -0
  20. package/dist/components/VulcanComponents/defaultVulcanComponents/cellComponents.d.ts +3 -0
  21. package/dist/components/VulcanComponents/defaultVulcanComponents/coreComponents.d.ts +3 -0
  22. package/dist/components/VulcanComponents/defaultVulcanComponents/datatableComponents.d.ts +3 -0
  23. package/dist/components/VulcanComponents/defaultVulcanComponents/formComponents.d.ts +3 -0
  24. package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts +0 -0
  25. package/dist/components/VulcanComponents/index.d.ts +0 -0
  26. package/dist/components/VulcanComponents/typings.d.ts +0 -0
  27. package/dist/components/VulcanCurrentUser/Consumer.d.ts +0 -0
  28. package/dist/components/VulcanCurrentUser/Context.d.ts +0 -0
  29. package/dist/components/VulcanCurrentUser/Provider.d.ts +0 -0
  30. package/dist/components/VulcanCurrentUser/index.d.ts +0 -0
  31. package/dist/components/bootstrap/Dropdown.d.ts +24 -0
  32. package/dist/components/bootstrap/Modal.d.ts +25 -0
  33. package/dist/components/bootstrap/ModalTrigger.d.ts +18 -0
  34. package/dist/components/bootstrap/TooltipTrigger.d.ts +6 -0
  35. package/dist/components/cell/CardItem.d.ts +14 -0
  36. package/dist/components/cell/CardItemArray.d.ts +6 -0
  37. package/dist/components/cell/CardItemDate.d.ts +5 -0
  38. package/dist/components/cell/CardItemDefault.d.ts +5 -0
  39. package/dist/components/cell/CardItemHTML.d.ts +5 -0
  40. package/dist/components/cell/CardItemImage.d.ts +6 -0
  41. package/dist/components/cell/CardItemNumber.d.ts +5 -0
  42. package/dist/components/cell/CardItemObject.d.ts +3 -0
  43. package/dist/components/cell/CardItemRelationHasMany.d.ts +3 -0
  44. package/dist/components/cell/CardItemRelationHasOne.d.ts +3 -0
  45. package/dist/components/cell/CardItemRelationItem.d.ts +15 -0
  46. package/dist/components/cell/CardItemString.d.ts +5 -0
  47. package/dist/components/cell/CardItemURL.d.ts +6 -0
  48. package/dist/components/core/Button.d.ts +4 -0
  49. package/dist/components/core/Loading.d.ts +3 -0
  50. package/dist/components/core/LoadingButton.d.ts +0 -0
  51. package/dist/components/core/MutationButton.d.ts +0 -0
  52. package/dist/components/core/index.d.ts +0 -0
  53. package/dist/components/core/typings.d.ts +0 -0
  54. package/dist/components/form/FieldErrors.d.ts +6 -0
  55. package/dist/components/form/Form/Form.d.ts +4 -0
  56. package/dist/components/form/Form/fields.d.ts +22 -0
  57. package/dist/components/form/Form/index.d.ts +3 -0
  58. package/dist/components/form/Form/typings.d.ts +76 -0
  59. package/dist/components/form/Form/utils.d.ts +2 -0
  60. package/dist/components/form/FormComponent.d.ts +31 -0
  61. package/dist/components/form/FormComponentInner.d.ts +32 -0
  62. package/dist/components/form/FormComponentLoader.d.ts +15 -0
  63. package/dist/components/form/FormContainer.d.ts +18 -0
  64. package/dist/components/form/FormContext.d.ts +25 -0
  65. package/dist/components/form/FormElement.d.ts +4 -0
  66. package/dist/components/form/FormError.d.ts +11 -0
  67. package/dist/components/form/FormErrors.d.ts +3 -0
  68. package/dist/components/form/FormGroup.d.ts +30 -0
  69. package/dist/components/form/FormIntl.d.ts +15 -0
  70. package/dist/components/form/FormLayout.d.ts +10 -0
  71. package/dist/components/form/FormNestedArray.d.ts +26 -0
  72. package/dist/components/form/FormNestedArrayLayout.d.ts +18 -0
  73. package/dist/components/form/FormNestedDivider.d.ts +13 -0
  74. package/dist/components/form/FormNestedItem.d.ts +52 -0
  75. package/dist/components/form/FormNestedObject.d.ts +35 -0
  76. package/dist/components/form/FormOptionLabel.d.ts +5 -0
  77. package/dist/components/form/FormSubmit.d.ts +38 -0
  78. package/dist/components/form/core/Button.d.ts +4 -0
  79. package/dist/components/form/core/Form/Form.d.ts +0 -0
  80. package/dist/components/form/core/Form/Form.d.ts.map +1 -1
  81. package/dist/components/form/core/Form/fields.d.ts +0 -0
  82. package/dist/components/form/core/Form/index.d.ts +0 -0
  83. package/dist/components/form/core/Form/typings.d.ts +0 -0
  84. package/dist/components/form/core/Form/utils.d.ts +0 -0
  85. package/dist/components/form/core/FormComponent.d.ts +31 -0
  86. package/dist/components/form/core/FormComponentInner.d.ts +32 -0
  87. package/dist/components/form/core/FormComponentLoader.d.ts +15 -0
  88. package/dist/components/form/core/FormContainer.d.ts +0 -0
  89. package/dist/components/form/core/FormContext.d.ts +1 -0
  90. package/dist/components/form/core/FormContext.d.ts.map +1 -1
  91. package/dist/components/form/core/FormGroup.d.ts +30 -0
  92. package/dist/components/form/core/Loading.d.ts +3 -0
  93. package/dist/components/form/core/index.d.ts +0 -0
  94. package/dist/components/form/elements/FieldErrors.d.ts +5 -0
  95. package/dist/components/form/elements/FormElement.d.ts +4 -0
  96. package/dist/components/form/elements/FormError.d.ts +11 -0
  97. package/dist/components/form/elements/FormErrors.d.ts +3 -0
  98. package/dist/components/form/elements/FormLayout.d.ts +10 -0
  99. package/dist/components/form/elements/FormSubmit.d.ts +38 -0
  100. package/dist/components/form/elements/index.d.ts +7 -0
  101. package/dist/components/form/hooks/useBlockTransition/block.d.ts +0 -0
  102. package/dist/components/form/hooks/useBlockTransition/useBlockTransition.d.ts +0 -0
  103. package/dist/components/form/hooks/useWarnOnUnsaved/index.d.ts +0 -0
  104. package/dist/components/form/hooks/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +0 -0
  105. package/dist/components/form/index.d.ts +0 -0
  106. package/dist/components/form/inputs/AutocompleteMultiple.d.ts +6 -0
  107. package/dist/components/form/inputs/BasicInputs.d.ts +16 -0
  108. package/dist/components/form/inputs/Checkboxgroup.d.ts +9 -0
  109. package/dist/components/form/inputs/FormItem.d.ts +4 -0
  110. package/dist/components/form/inputs/FormOptionLabel.d.ts +7 -0
  111. package/dist/components/form/inputs/RadioGroup.d.ts +4 -0
  112. package/dist/components/form/inputs/SelectInputs.d.ts +5 -0
  113. package/dist/components/form/inputs/consts.d.ts +9 -0
  114. package/dist/components/form/inputs/index.d.ts +8 -0
  115. package/dist/components/form/intl/FormIntl.d.ts +15 -0
  116. package/dist/components/form/modules/formFragments.d.ts +16 -0
  117. package/dist/components/form/modules/path_utils.d.ts +6 -0
  118. package/dist/components/form/modules/schema_utils.d.ts +14 -0
  119. package/dist/components/form/modules/utils.d.ts +17 -0
  120. package/dist/components/form/nested/FormNestedArray.d.ts +26 -0
  121. package/dist/components/form/nested/FormNestedArrayLayout.d.ts +18 -0
  122. package/dist/components/form/nested/FormNestedDivider.d.ts +13 -0
  123. package/dist/components/form/nested/FormNestedItem.d.ts +52 -0
  124. package/dist/components/form/nested/FormNestedObject.d.ts +35 -0
  125. package/dist/components/form/nested/index.d.ts +6 -0
  126. package/dist/components/form/typings.d.ts +0 -0
  127. package/dist/components/form/ui_utils.d.ts +3 -0
  128. package/dist/components/form/useBlockTransition/block.d.ts +4 -0
  129. package/dist/components/form/useBlockTransition/useBlockTransition.d.ts +5 -0
  130. package/dist/components/form/useWarnOnUnsaved/index.d.ts +2 -0
  131. package/dist/components/form/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +5 -0
  132. package/dist/components/form/utils/formFragments.d.ts +0 -0
  133. package/dist/components/form/utils/index.d.ts +0 -0
  134. package/dist/components/form/utils/path_utils.d.ts +0 -0
  135. package/dist/components/form/utils/schema_utils.d.ts +0 -0
  136. package/dist/components/form/utils/ui_utils.d.ts +0 -0
  137. package/dist/components/form/utils/utils.d.ts +0 -0
  138. package/dist/componentsHelpers.d.ts +0 -0
  139. package/dist/decorators/autocomplete.d.ts +8 -0
  140. package/dist/decorators/index.d.ts +4 -0
  141. package/dist/index.d.ts +0 -0
  142. package/dist/index.js +3 -2
  143. package/dist/index.js.map +1 -1
  144. package/dist/testing/ExpectedErrorBoundary.d.ts +0 -0
  145. package/dist/testing.d.ts +0 -0
  146. package/package.json +7 -7
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { VulcanModel } from "@vulcanjs/model";
3
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
4
+ export interface DatatableProps<TData = any> {
5
+ model: VulcanGraphqlModel;
6
+ initialState?: any;
7
+ useUrlState?: boolean;
8
+ title?: string;
9
+ columns?: Array<any>;
10
+ data?: Array<TData>;
11
+ options?: any;
12
+ showEdit?: boolean;
13
+ showDelete?: boolean;
14
+ showNew?: boolean;
15
+ showSearch?: boolean;
16
+ newFormProps?: any;
17
+ editFormProps?: any;
18
+ rowClass?: any;
19
+ location?: any;
20
+ push: (options: {
21
+ search?: string;
22
+ }) => void;
23
+ currentUser?: any;
24
+ modalProps?: any;
25
+ onSubmitSelected?: any;
26
+ }
27
+ export declare const Datatable: (props: DatatableProps) => JSX.Element;
28
+ export declare const DatatableLayout: ({ model, children, }: {
29
+ model: VulcanModel;
30
+ children: React.ReactNode;
31
+ }) => JSX.Element;
32
+ export declare const DatatableAbove: (props: any) => JSX.Element;
33
+ export declare const DatatableAboveLeft: (props: any) => JSX.Element;
34
+ export declare const DatatableAboveRight: (props: any) => JSX.Element;
35
+ export declare const DatatableAboveSearchInput: (props: any) => JSX.Element;
36
+ export declare const DatatableAboveLayout: ({ children }: {
37
+ children: any;
38
+ }) => JSX.Element;
39
+ //# sourceMappingURL=Datatable.d.ts.map
@@ -0,0 +1,26 @@
1
+ import { VulcanModel } from "@vulcanjs/model";
2
+ import { VulcanUser } from "@vulcanjs/permissions";
3
+ import { VulcanDocument } from "@vulcanjs/schema";
4
+ import React from "react";
5
+ import { PossibleVulcanComponents } from "../VulcanComponents";
6
+ export declare const DatatableCell: ({ column, document, currentUser, model, }: {
7
+ column: {
8
+ component?: React.ComponentType<any>;
9
+ componentName?: keyof PossibleVulcanComponents;
10
+ name?: string;
11
+ label?: string;
12
+ };
13
+ document?: VulcanDocument | undefined;
14
+ currentUser?: VulcanUser | undefined;
15
+ model: VulcanModel;
16
+ }) => JSX.Element;
17
+ export declare const DatatableCellLayout: ({ children, ...otherProps }: {
18
+ [x: string]: any;
19
+ children: any;
20
+ }) => JSX.Element;
21
+ export declare const DatatableDefaultCell: ({ column, document, ...rest }: {
22
+ [x: string]: any;
23
+ column: any;
24
+ document: any;
25
+ }) => JSX.Element;
26
+ //# sourceMappingURL=DatatableCell.d.ts.map
@@ -0,0 +1,53 @@
1
+ /// <reference types="react" />
2
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
3
+ import { DatatableSelectControlledProps } from "./DatatableSelect";
4
+ export interface DatatableContentsProps extends Partial<DatatableSelectControlledProps> {
5
+ title?: string;
6
+ model: VulcanGraphqlModel;
7
+ datatableData?: Array<any>;
8
+ results?: Array<any>;
9
+ columns?: Array<any>;
10
+ loading?: boolean;
11
+ loadMore?: any;
12
+ networkStatus?: any;
13
+ count?: number;
14
+ totalCount?: number;
15
+ showEdit?: boolean;
16
+ showDelete?: boolean;
17
+ showNew?: boolean;
18
+ currentUser?: any;
19
+ toggleSort?: any;
20
+ currentSort?: any;
21
+ submitFilters?: any;
22
+ currentFilters?: any;
23
+ modalProps?: any;
24
+ error?: any;
25
+ showSelect?: boolean;
26
+ }
27
+ export declare const DatatableContents: (props: DatatableContentsProps) => JSX.Element;
28
+ export declare const DatatableContentsLayout: ({ children }: {
29
+ children: any;
30
+ }) => JSX.Element;
31
+ export declare const DatatableContentsInnerLayout: ({ children }: {
32
+ children: any;
33
+ }) => JSX.Element;
34
+ export declare const DatatableContentsHeadLayout: ({ children }: {
35
+ children: any;
36
+ }) => JSX.Element;
37
+ export declare const DatatableContentsBodyLayout: ({ children }: {
38
+ children: any;
39
+ }) => JSX.Element;
40
+ export declare const DatatableContentsMoreLayout: ({ children }: {
41
+ children: any;
42
+ }) => JSX.Element;
43
+ export declare const DatatableLoadMoreButton: ({ count, totalCount, children, ...otherProps }: {
44
+ [x: string]: any;
45
+ count: any;
46
+ totalCount: any;
47
+ children: any;
48
+ }) => JSX.Element;
49
+ export declare const DatatableTitle: ({ title }: {
50
+ title: any;
51
+ }) => JSX.Element;
52
+ export declare const DatatableEmpty: () => JSX.Element;
53
+ //# sourceMappingURL=DatatableContents.d.ts.map
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import type { DocumentNode } from "@apollo/client";
3
+ export declare const DatatableFilter: (props: any) => JSX.Element;
4
+ export declare const DatatableFilterContentsWithData: (props: {
5
+ query: DocumentNode | ((options: {
6
+ mode: "static";
7
+ }) => DocumentNode);
8
+ options?: any;
9
+ }) => JSX.Element;
10
+ export declare const DatatableFilterContents: (props: any) => JSX.Element;
11
+ export declare type CheckboxOperator = "_in";
12
+ export declare const DatatableFilterCheckboxes: ({ options, filters, setFilters, }: {
13
+ options?: any;
14
+ filters?: {
15
+ _in: any[];
16
+ } | undefined;
17
+ setFilters?: any;
18
+ }) => JSX.Element;
19
+ export declare const DatatableFilterBooleans: ({ filters, setFilters, }: {
20
+ filters?: {
21
+ _eq: never[];
22
+ } | undefined;
23
+ setFilters: any;
24
+ }) => JSX.Element;
25
+ export declare const DatatableFilterDates: ({ filters, setFilters }: {
26
+ filters: any;
27
+ setFilters: any;
28
+ }) => JSX.Element;
29
+ export declare const DatatableFilterNumbers: ({ filters, setFilters }: {
30
+ filters: any;
31
+ setFilters: any;
32
+ }) => JSX.Element;
33
+ //# sourceMappingURL=DatatableFilter.d.ts.map
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { VulcanModel } from "@vulcanjs/model";
3
+ export interface DatatableColumnDefinition {
4
+ name: string;
5
+ label?: string;
6
+ options?: any;
7
+ filterComponent?: any;
8
+ sortable?: boolean;
9
+ filterable?: boolean;
10
+ }
11
+ export declare const DatatableHeader: ({ model, column, toggleSort, currentSort, submitFilters, currentFilters, }: {
12
+ model: VulcanModel;
13
+ column: DatatableColumnDefinition;
14
+ toggleSort?: any;
15
+ currentSort?: any;
16
+ submitFilters?: any;
17
+ currentFilters?: any;
18
+ }) => JSX.Element;
19
+ export declare const DatatableHeaderCellLayout: ({ children, ...otherProps }: {
20
+ [x: string]: any;
21
+ children: any;
22
+ }) => JSX.Element;
23
+ //# sourceMappingURL=DatatableHeader.d.ts.map
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
3
+ import { VulcanUser } from "@vulcanjs/permissions";
4
+ import { VulcanDocument } from "@vulcanjs/schema";
5
+ export declare const DatatableRow: (props: {
6
+ model: VulcanGraphqlModel;
7
+ columns: Array<any>;
8
+ document: VulcanDocument;
9
+ showEdit?: boolean;
10
+ showDelete?: boolean;
11
+ currentUser?: VulcanUser;
12
+ options?: any;
13
+ editFormOptions?: any;
14
+ editFormProps?: any;
15
+ rowClass?: any;
16
+ showSelect?: any;
17
+ toggleItem?: any;
18
+ selectedItems?: any;
19
+ modalProps?: any;
20
+ }) => JSX.Element;
21
+ export declare const DatatableRowLayout: ({ children, ...otherProps }: {
22
+ [x: string]: any;
23
+ children: any;
24
+ }) => JSX.Element;
25
+ //# sourceMappingURL=DatatableRow.d.ts.map
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { VulcanDocument } from "@vulcanjs/schema";
3
+ export interface DatatableSelectControlledProps {
4
+ selectedItems: Array<string>;
5
+ toggleItem: (itemId: string) => void;
6
+ }
7
+ export interface DatatableSelectProps extends DatatableSelectControlledProps {
8
+ document: VulcanDocument;
9
+ }
10
+ export declare const DatatableSelect: ({ toggleItem, selectedItems, document, }: DatatableSelectProps) => JSX.Element;
11
+ //# sourceMappingURL=DatatableSelect.d.ts.map
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const DatatableSorter: ({ name, label, toggleSort, currentSort }: {
3
+ name: any;
4
+ label: any;
5
+ toggleSort: any;
6
+ currentSort: any;
7
+ }) => JSX.Element;
8
+ //# sourceMappingURL=DatatableSorter.d.ts.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const DatatableSubmitSelected: ({ selectedItems, onSubmitSelected, }: {
3
+ selectedItems: any;
4
+ onSubmitSelected: any;
5
+ }) => JSX.Element;
6
+ //# sourceMappingURL=DatatableSubmitSelected.d.ts.map
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
3
+ import { VulcanUser } from "@vulcanjs/permissions";
4
+ import { DocumentNode } from "graphql";
5
+ export declare const DeleteButton: (props: {
6
+ label?: string;
7
+ fragment?: DocumentNode;
8
+ documentId?: string;
9
+ mutationOptions?: any;
10
+ currentUser?: VulcanUser;
11
+ model: VulcanGraphqlModel;
12
+ }) => JSX.Element;
13
+ //# sourceMappingURL=DeleteButton.d.ts.map
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { VulcanDocument } from "@vulcanjs/schema";
3
+ export declare const EditButton: ({ style, variant, label, size, showId, modalProps, formProps, component, ...props }: {
4
+ [x: string]: any;
5
+ style?: string | undefined;
6
+ variant: any;
7
+ label: any;
8
+ size: any;
9
+ showId: any;
10
+ modalProps: any;
11
+ formProps: any;
12
+ component: any;
13
+ }) => JSX.Element;
14
+ export declare const EditForm: ({ closeModal, successCallback, removeSuccessCallback, formProps, ...props }: {
15
+ successCallback?: ((document: VulcanDocument) => void) | undefined;
16
+ closeModal: () => void;
17
+ removeSuccessCallback?: ((document: VulcanDocument) => void) | undefined;
18
+ formProps?: any;
19
+ }) => JSX.Element;
20
+ //# sourceMappingURL=EditButton.d.ts.map
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { VulcanModel } from "@vulcanjs/model";
3
+ import { VulcanDocument } from "@vulcanjs/schema";
4
+ import type { SmartFormProps } from "../../form";
5
+ import type { ButtonProps } from "../../core/Button";
6
+ export declare const NewButton: ({ size, label, style, formProps, ...props }: {
7
+ model: VulcanModel;
8
+ label?: string | undefined;
9
+ formProps?: Partial<import("../../form").FormContainerProps> | undefined;
10
+ } & Pick<any, "size"> & {
11
+ style?: ButtonProps["variant"];
12
+ } & NewFormProps) => JSX.Element;
13
+ export interface NewFormProps {
14
+ model: VulcanModel;
15
+ successCallback?: (document: VulcanDocument) => void;
16
+ closeModal: () => void;
17
+ formProps?: Partial<SmartFormProps>;
18
+ }
19
+ export declare const NewForm: ({ model, closeModal, successCallback, formProps, }: NewFormProps) => JSX.Element;
20
+ //# sourceMappingURL=NewButton.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { PureComponent } from "react";
2
+ export interface HeadTagsProps {
3
+ url: string;
4
+ title: string;
5
+ description?: string;
6
+ image: string;
7
+ siteUrl: string;
8
+ faviconUrl?: string;
9
+ }
10
+ export declare class HeadTags extends PureComponent<HeadTagsProps> {
11
+ render(): JSX.Element;
12
+ }
13
+ //# sourceMappingURL=HeadTags.d.ts.map
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { ButtonProps } from "./core/Button";
3
+ export interface LoadingButtonProps extends ButtonProps {
4
+ loading?: boolean;
5
+ label?: string | React.ReactNode;
6
+ onClick?: any;
7
+ children?: React.ReactNode;
8
+ className?: string;
9
+ }
10
+ export declare const LoadingButton: ({ loading, label, onClick, children, className, ...rest }: LoadingButtonProps & any) => JSX.Element;
11
+ //# sourceMappingURL=LoadingButton.d.ts.map
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { DocumentNode } from "graphql";
3
+ import { MutationHookOptions } from "@apollo/client";
4
+ import { LoadingButtonProps } from "./LoadingButton";
5
+ export interface MutationButtonProps {
6
+ mutationOptions?: MutationHookOptions;
7
+ mutation: string | DocumentNode;
8
+ mutationArguments?: MutationHookOptions<any>["variables"];
9
+ submitCallback?: (mutationArgumentsFromProps: MutationHookOptions<any>["variables"]) => void | {
10
+ mutationArguments: MutationHookOptions<any>["variables"];
11
+ } | Promise<void | {
12
+ mutationArguments: MutationHookOptions<any>["variables"];
13
+ }>;
14
+ successCallback?: (res: any) => void | Promise<void>;
15
+ errorCallback?: (err: any) => void | Promise<void>;
16
+ loadingButtonProps?: LoadingButtonProps;
17
+ label?: string | React.ReactNode;
18
+ }
19
+ export declare const MutationButton: (props: MutationButtonProps) => JSX.Element;
20
+ //# sourceMappingURL=MutationButton.d.ts.map
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import { CellComponents } from "..";
2
+ export declare const defaultCellComponents: CellComponents;
3
+ //# sourceMappingURL=cellComponents.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { PossibleCoreComponents } from "../typings";
2
+ export declare const defaultCoreComponents: PossibleCoreComponents;
3
+ //# sourceMappingURL=coreComponents.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { DatatableComponents } from "../typings";
2
+ export declare const defaultDatatableComponents: DatatableComponents;
3
+ //# sourceMappingURL=datatableComponents.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { PossibleFormComponents } from "../typings";
2
+ export declare const defaultFormComponents: PossibleFormComponents;
3
+ //# sourceMappingURL=formComponents.d.ts.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,24 @@
1
+ import PropTypes from "prop-types";
2
+ declare const BootstrapDropdown: {
3
+ ({ label, labelId, trigger, menuItems, menuContents, variant, buttonProps, ...dropdownProps }: {
4
+ [x: string]: any;
5
+ label: any;
6
+ labelId: any;
7
+ trigger: any;
8
+ menuItems: any;
9
+ menuContents: any;
10
+ variant?: string | undefined;
11
+ buttonProps: any;
12
+ }): any;
13
+ propTypes: {
14
+ labelId: PropTypes.Requireable<string>;
15
+ label: PropTypes.Requireable<string>;
16
+ trigger: PropTypes.Requireable<object>;
17
+ menuContents: PropTypes.Requireable<object>;
18
+ menuItems: PropTypes.Requireable<any[]>;
19
+ variant: PropTypes.Requireable<string>;
20
+ buttonProps: PropTypes.Requireable<object>;
21
+ };
22
+ };
23
+ export default BootstrapDropdown;
24
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from "prop-types";
3
+ export declare const BootstrapModal: {
4
+ ({ children, size, show, onHide, title, showCloseButton, header, footer, ...rest }: {
5
+ [x: string]: any;
6
+ children: any;
7
+ size?: "lg" | undefined;
8
+ show?: boolean | undefined;
9
+ onHide: any;
10
+ title: any;
11
+ showCloseButton?: boolean | undefined;
12
+ header: any;
13
+ footer: any;
14
+ }): JSX.Element;
15
+ propTypes: {
16
+ size: PropTypes.Requireable<string>;
17
+ show: PropTypes.Requireable<boolean>;
18
+ showCloseButton: PropTypes.Requireable<boolean>;
19
+ onHide: PropTypes.Requireable<(...args: any[]) => any>;
20
+ title: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
21
+ header: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
22
+ footer: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
23
+ };
24
+ };
25
+ //# sourceMappingURL=Modal.d.ts.map
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ export declare const ModalTrigger: (props: {
3
+ openCallback?: () => void;
4
+ closeCallback?: () => void;
5
+ onClick?: () => void;
6
+ trigger?: any;
7
+ component?: any;
8
+ children?: any;
9
+ label?: string | React.ReactNode;
10
+ size?: string;
11
+ className?: string;
12
+ dialogClassName?: string;
13
+ title?: string | React.ReactNode;
14
+ modalProps?: any;
15
+ header?: any;
16
+ footer?: any;
17
+ }) => JSX.Element;
18
+ //# sourceMappingURL=ModalTrigger.d.ts.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const TooltipTrigger: ({ children, trigger, }: {
3
+ children: any;
4
+ trigger: any;
5
+ }) => JSX.Element;
6
+ //# sourceMappingURL=TooltipTrigger.d.ts.map
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
3
+ import { VulcanDocument } from "@vulcanjs/schema";
4
+ export interface CellProps {
5
+ nestingLevel?: number;
6
+ value?: any;
7
+ typeName?: string;
8
+ contents?: any;
9
+ fieldName?: string;
10
+ model?: VulcanGraphqlModel;
11
+ document?: VulcanDocument;
12
+ }
13
+ export declare const CardItemSwitcher: (props: CellProps) => JSX.Element;
14
+ //# sourceMappingURL=CardItem.d.ts.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemArray: ({ nestingLevel, value, }: {
3
+ nestingLevel?: number | undefined;
4
+ value: any;
5
+ }) => JSX.Element;
6
+ //# sourceMappingURL=CardItemArray.d.ts.map
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemDate: ({ value }: {
3
+ value: any;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=CardItemDate.d.ts.map
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemDefault: ({ value }: {
3
+ value?: any;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=CardItemDefault.d.ts.map
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemHTML: ({ value }: {
3
+ value: any;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=CardItemHTML.d.ts.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemImage: ({ value, force }: {
3
+ value: any;
4
+ force?: boolean | undefined;
5
+ }) => JSX.Element;
6
+ //# sourceMappingURL=CardItemImage.d.ts.map
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemNumber: ({ value }: {
3
+ value?: any;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=CardItemNumber.d.ts.map
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemObject: (props: any) => JSX.Element;
3
+ //# sourceMappingURL=CardItemObject.d.ts.map
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemRelationHasMany: ({ relatedDocument: relatedDocuments, ...rest }: any) => JSX.Element;
3
+ //# sourceMappingURL=CardItemRelationHasMany.d.ts.map
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemRelationHasOne: ({ ...rest }: any) => JSX.Element;
3
+ //# sourceMappingURL=CardItemRelationHasOne.d.ts.map
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
3
+ import { VulcanDocument } from "@vulcanjs/schema";
4
+ export declare const CardItemRelationItem: ({ relatedDocument, relatedModel, }: {
5
+ relatedDocument: VulcanDocument;
6
+ relatedModel: VulcanGraphqlModel;
7
+ }) => JSX.Element;
8
+ export declare const DefaultCell: ({ document, label }: {
9
+ document: any;
10
+ label: any;
11
+ }) => JSX.Element;
12
+ export declare const UserCell: ({ document }: {
13
+ document: any;
14
+ }) => JSX.Element;
15
+ //# sourceMappingURL=CardItemRelationItem.d.ts.map
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemString: ({ string }: {
3
+ string: any;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=CardItemString.d.ts.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const CardItemURL: ({ value, force, }: {
3
+ value?: any;
4
+ force?: boolean | undefined;
5
+ }) => JSX.Element;
6
+ //# sourceMappingURL=CardItemURL.d.ts.map
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export declare type ButtonProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & any;
3
+ export declare const Button: React.FC;
4
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Loading: () => JSX.Element;
3
+ //# sourceMappingURL=Loading.d.ts.map
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const formComponentsDependencies: string[];
3
+ export declare const FieldErrors: ({ errors, }: {
4
+ errors: Array<any>;
5
+ }) => JSX.Element;
6
+ //# sourceMappingURL=FieldErrors.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { FormProps } from "./typings";
2
+ export declare const Form: (props: FormProps) => any;
3
+ export default Form;
4
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { FieldGroup } from "@vulcanjs/schema";
2
+ import { FormField } from "../typings";
3
+ import { FormProps, FormState } from "./typings";
4
+ import { VulcanSchema } from "@vulcanjs/schema";
5
+ import { IntlProviderContextValue } from "@vulcanjs/react-i18n";
6
+ import { VulcanModel } from "@vulcanjs/model";
7
+ export declare const getLabel: (model: VulcanModel, flatSchema: any, context: IntlProviderContextValue, fieldName: string, fieldLocale?: string | undefined) => any;
8
+ export declare const getFieldNames: (props: Pick<FormProps, "fields" | "addFields" | "removeFields">, currentDocument: any, optionsFromArgs: {
9
+ excludeHiddenFields?: boolean;
10
+ excludeRemovedFields?: boolean;
11
+ replaceIntlFields?: boolean;
12
+ addExtraFields?: boolean;
13
+ schema?: VulcanSchema;
14
+ mutableFields?: Array<any>;
15
+ }) => any[];
16
+ interface GroupWithFields extends FieldGroup {
17
+ fields: Array<FormField>;
18
+ }
19
+ declare type FormSchemaState = Pick<FormState, "currentDocument" | "schema" | "flatSchema" | "originalSchema">;
20
+ export declare const getFieldGroups: (props: FormProps, state: FormSchemaState, context: IntlProviderContextValue, mutableFields: Array<string>, formatMessage: any) => GroupWithFields[];
21
+ export {};
22
+ //# sourceMappingURL=fields.d.ts.map
@@ -0,0 +1,3 @@
1
+ export * from "./Form";
2
+ export * from "./typings";
3
+ //# sourceMappingURL=index.d.ts.map