@vulcanjs/react-ui 0.5.1 → 0.5.4-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/dist/components/Datatable/Datatable.d.ts +39 -0
  2. package/dist/components/Datatable/Datatable.d.ts.map +1 -0
  3. package/dist/components/Datatable/DatatableCell.d.ts +26 -0
  4. package/dist/components/Datatable/DatatableCell.d.ts.map +1 -0
  5. package/dist/components/Datatable/DatatableContents.d.ts +52 -0
  6. package/dist/components/Datatable/DatatableContents.d.ts.map +1 -0
  7. package/dist/components/Datatable/DatatableFilter.d.ts +32 -0
  8. package/dist/components/Datatable/DatatableFilter.d.ts.map +1 -0
  9. package/dist/components/Datatable/DatatableHeader.d.ts +22 -0
  10. package/dist/components/Datatable/DatatableHeader.d.ts.map +1 -0
  11. package/dist/components/Datatable/DatatableRow.d.ts +24 -0
  12. package/dist/components/Datatable/DatatableRow.d.ts.map +1 -0
  13. package/dist/components/Datatable/DatatableSelect.d.ts +10 -0
  14. package/dist/components/Datatable/DatatableSelect.d.ts.map +1 -0
  15. package/dist/components/Datatable/DatatableSorter.d.ts +7 -0
  16. package/dist/components/Datatable/DatatableSorter.d.ts.map +1 -0
  17. package/dist/components/Datatable/DatatableSubmitSelected.d.ts +5 -0
  18. package/dist/components/Datatable/DatatableSubmitSelected.d.ts.map +1 -0
  19. package/dist/components/Datatable/others/DeleteButton.d.ts +12 -0
  20. package/dist/components/Datatable/others/DeleteButton.d.ts.map +1 -0
  21. package/dist/components/Datatable/others/EditButton.d.ts +19 -0
  22. package/dist/components/Datatable/others/EditButton.d.ts.map +1 -0
  23. package/dist/components/Datatable/others/NewButton.d.ts +19 -0
  24. package/dist/components/Datatable/others/NewButton.d.ts.map +1 -0
  25. package/dist/components/HeadTags.d.ts.map +1 -1
  26. package/dist/components/LoadingButton.d.ts +10 -8
  27. package/dist/components/LoadingButton.d.ts.map +1 -1
  28. package/dist/components/MutationButton.d.ts +13 -8
  29. package/dist/components/MutationButton.d.ts.map +1 -1
  30. package/dist/components/VulcanComponents/Context.d.ts.map +1 -1
  31. package/dist/components/VulcanComponents/Provider.d.ts +7 -4
  32. package/dist/components/VulcanComponents/Provider.d.ts.map +1 -1
  33. package/dist/components/VulcanComponents/defaultVulcanComponents/cellComponents.d.ts +3 -0
  34. package/dist/components/VulcanComponents/defaultVulcanComponents/cellComponents.d.ts.map +1 -0
  35. package/dist/components/VulcanComponents/defaultVulcanComponents/datatableComponents.d.ts +3 -0
  36. package/dist/components/VulcanComponents/defaultVulcanComponents/datatableComponents.d.ts.map +1 -0
  37. package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts +316 -0
  38. package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts.map +1 -0
  39. package/dist/components/VulcanComponents/typings.d.ts +95 -4
  40. package/dist/components/VulcanComponents/typings.d.ts.map +1 -1
  41. package/dist/components/bootstrap/Modal.d.ts +24 -0
  42. package/dist/components/bootstrap/Modal.d.ts.map +1 -0
  43. package/dist/components/bootstrap/ModalTrigger.d.ts +18 -0
  44. package/dist/components/bootstrap/ModalTrigger.d.ts.map +1 -0
  45. package/dist/components/cell/CardItem.d.ts +13 -0
  46. package/dist/components/cell/CardItem.d.ts.map +1 -0
  47. package/dist/components/cell/CardItemArray.d.ts +5 -0
  48. package/dist/components/cell/CardItemArray.d.ts.map +1 -0
  49. package/dist/components/cell/CardItemDate.d.ts +4 -0
  50. package/dist/components/cell/CardItemDate.d.ts.map +1 -0
  51. package/dist/components/cell/CardItemDefault.d.ts +4 -0
  52. package/dist/components/cell/CardItemDefault.d.ts.map +1 -0
  53. package/dist/components/cell/CardItemHTML.d.ts +4 -0
  54. package/dist/components/cell/CardItemHTML.d.ts.map +1 -0
  55. package/dist/components/cell/CardItemImage.d.ts +5 -0
  56. package/dist/components/cell/CardItemImage.d.ts.map +1 -0
  57. package/dist/components/cell/CardItemNumber.d.ts +4 -0
  58. package/dist/components/cell/CardItemNumber.d.ts.map +1 -0
  59. package/dist/components/cell/CardItemObject.d.ts +2 -0
  60. package/dist/components/cell/CardItemObject.d.ts.map +1 -0
  61. package/dist/components/cell/CardItemRelationHasMany.d.ts +2 -0
  62. package/dist/components/cell/CardItemRelationHasMany.d.ts.map +1 -0
  63. package/dist/components/cell/CardItemRelationHasOne.d.ts +2 -0
  64. package/dist/components/cell/CardItemRelationHasOne.d.ts.map +1 -0
  65. package/dist/components/cell/CardItemRelationItem.d.ts +14 -0
  66. package/dist/components/cell/CardItemRelationItem.d.ts.map +1 -0
  67. package/dist/components/cell/CardItemString.d.ts +4 -0
  68. package/dist/components/cell/CardItemString.d.ts.map +1 -0
  69. package/dist/components/cell/CardItemURL.d.ts +5 -0
  70. package/dist/components/cell/CardItemURL.d.ts.map +1 -0
  71. package/dist/components/form/FormIntl.d.ts.map +1 -1
  72. package/dist/components/form/FormOptionLabel.d.ts.map +1 -1
  73. package/dist/components/form/core/Button.d.ts +1 -0
  74. package/dist/components/form/core/Button.d.ts.map +1 -1
  75. package/dist/components/form/inputs/BasicInputs.d.ts.map +1 -1
  76. package/dist/index.js +16162 -8
  77. package/dist/index.js.map +1 -0
  78. package/package.json +22 -16
  79. package/dist/components/VulcanComponents/defaultVulcanComponents.d.ts +0 -61
  80. package/dist/components/VulcanComponents/defaultVulcanComponents.d.ts.map +0 -1
@@ -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 @@
1
+ {"version":3,"file":"Datatable.d.ts","sourceRoot":"","sources":["../../../components/Datatable/Datatable.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AA6BvD,MAAM,WAAW,cAAc,CAAC,KAAK,GAAG,GAAG;IACzC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC;IAEnB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAErB,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGf,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGf,IAAI,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE7C,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB;AAOD,eAAO,MAAM,SAAS,UAAW,cAAc,gBAqS9C,CAAC;AAEF,eAAO,MAAM,eAAe;WAInB,WAAW;cACR,MAAM,SAAS;iBAK1B,CAAC;AAOF,eAAO,MAAM,cAAc,UAAW,GAAG,gBASxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BAsB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,6BAqC/B,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BAOrC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;iBAEhC,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"DatatableCell.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,qBAAqB,CAAC;AAO7B,eAAO,MAAM,aAAa;YAMhB;QAEN,SAAS,CAAC,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;QAKrC,aAAa,CAAC,EAAE,MAAM,wBAAwB,CAAC;QAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;WAGM,WAAW;iBAwBnB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;iBAI/B,CAAC;AAOF,eAAO,MAAM,oBAAoB;;;;iBAWhC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
2
+ import { DatatableSelectControlledProps } from "./DatatableSelect";
3
+ export interface DatatableContentsProps extends Partial<DatatableSelectControlledProps> {
4
+ title?: string;
5
+ model: VulcanGraphqlModel;
6
+ datatableData?: Array<any>;
7
+ results?: Array<any>;
8
+ columns?: Array<any>;
9
+ loading?: boolean;
10
+ loadMore?: any;
11
+ networkStatus?: any;
12
+ count?: number;
13
+ totalCount?: number;
14
+ showEdit?: boolean;
15
+ showDelete?: boolean;
16
+ showNew?: boolean;
17
+ currentUser?: any;
18
+ toggleSort?: any;
19
+ currentSort?: any;
20
+ submitFilters?: any;
21
+ currentFilters?: any;
22
+ modalProps?: any;
23
+ error?: any;
24
+ showSelect?: boolean;
25
+ }
26
+ export declare const DatatableContents: (props: DatatableContentsProps) => JSX.Element;
27
+ export declare const DatatableContentsLayout: ({ children }: {
28
+ children: any;
29
+ }) => JSX.Element;
30
+ export declare const DatatableContentsInnerLayout: ({ children }: {
31
+ children: any;
32
+ }) => JSX.Element;
33
+ export declare const DatatableContentsHeadLayout: ({ children }: {
34
+ children: any;
35
+ }) => JSX.Element;
36
+ export declare const DatatableContentsBodyLayout: ({ children }: {
37
+ children: any;
38
+ }) => JSX.Element;
39
+ export declare const DatatableContentsMoreLayout: ({ children }: {
40
+ children: any;
41
+ }) => JSX.Element;
42
+ export declare const DatatableLoadMoreButton: ({ count, totalCount, children, ...otherProps }: {
43
+ [x: string]: any;
44
+ count: any;
45
+ totalCount: any;
46
+ children: any;
47
+ }) => JSX.Element;
48
+ export declare const DatatableTitle: ({ title }: {
49
+ title: any;
50
+ }) => JSX.Element;
51
+ export declare const DatatableEmpty: () => JSX.Element;
52
+ //# sourceMappingURL=DatatableContents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableContents.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableContents.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AA+BnE,MAAM,WAAW,sBACf,SAAQ,OAAO,CAAC,8BAA8B,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,kBAAkB,CAAC;IAC1B,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,aAAa,CAAC,EAAE,GAAG,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAoH9D,CAAC;AACF,eAAO,MAAM,uBAAuB;;iBAEnC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;iBAExC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;iBAIvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;iBAEvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;iBAEvC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;iBAYnC,CAAC;AAMF,eAAO,MAAM,cAAc;;iBAE1B,CAAC;AAOF,eAAO,MAAM,cAAc,mBAc1B,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { DocumentNode } from "@apollo/client";
2
+ export declare const DatatableFilter: (props: any) => JSX.Element;
3
+ export declare const DatatableFilterContentsWithData: (props: {
4
+ query: DocumentNode | ((options: {
5
+ mode: "static";
6
+ }) => DocumentNode);
7
+ options?: any;
8
+ }) => JSX.Element;
9
+ export declare const DatatableFilterContents: (props: any) => JSX.Element;
10
+ export declare type CheckboxOperator = "_in";
11
+ export declare const DatatableFilterCheckboxes: ({ options, filters, setFilters, }: {
12
+ options?: any;
13
+ filters?: {
14
+ _in: any[];
15
+ } | undefined;
16
+ setFilters?: any;
17
+ }) => JSX.Element;
18
+ export declare const DatatableFilterBooleans: ({ filters, setFilters, }: {
19
+ filters?: {
20
+ _eq: never[];
21
+ } | undefined;
22
+ setFilters: any;
23
+ }) => JSX.Element;
24
+ export declare const DatatableFilterDates: ({ filters, setFilters }: {
25
+ filters: any;
26
+ setFilters: any;
27
+ }) => JSX.Element;
28
+ export declare const DatatableFilterNumbers: ({ filters, setFilters }: {
29
+ filters: any;
30
+ setFilters: any;
31
+ }) => JSX.Element;
32
+ //# sourceMappingURL=DatatableFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableFilter.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableFilter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAwDnD,eAAO,MAAM,eAAe,6BAwB3B,CAAC;AAQF,eAAO,MAAM,+BAA+B;qCAET;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,KAAK,YAAY;cAC1D,GAAG;iBAuBd,CAAC;AAEF,eAAO,MAAM,uBAAuB,6BA+EnC,CAAC;AAkBF,oBAAY,gBAAgB,GAAG,KAAK,CAAC;AAErC,eAAO,MAAM,yBAAyB;cAK1B,GAAG;;;;iBAEA,GAAG;iBAkBjB,CAAC;AAWF,eAAO,MAAM,uBAAuB;;;;;iBAmBnC,CAAC;AASF,eAAO,MAAM,oBAAoB;;;iBA0DhC,CAAC;AASF,eAAO,MAAM,sBAAsB;;;iBAwDlC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { VulcanModel } from "@vulcanjs/model";
2
+ export interface DatatableColumnDefinition {
3
+ name: string;
4
+ label?: string;
5
+ options?: any;
6
+ filterComponent?: any;
7
+ sortable?: boolean;
8
+ filterable?: boolean;
9
+ }
10
+ export declare const DatatableHeader: ({ model, column, toggleSort, currentSort, submitFilters, currentFilters, }: {
11
+ model: VulcanModel;
12
+ column: DatatableColumnDefinition;
13
+ toggleSort?: any;
14
+ currentSort?: any;
15
+ submitFilters?: any;
16
+ currentFilters?: any;
17
+ }) => JSX.Element;
18
+ export declare const DatatableHeaderCellLayout: ({ children, ...otherProps }: {
19
+ [x: string]: any;
20
+ children: any;
21
+ }) => JSX.Element;
22
+ //# sourceMappingURL=DatatableHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableHeader.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAMD,eAAO,MAAM,eAAe;WAQnB,WAAW;YACV,yBAAyB;iBAEpB,GAAG;kBACF,GAAG;oBACD,GAAG;qBACF,GAAG;iBAoFrB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;iBAIrC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
2
+ import { VulcanUser } from "@vulcanjs/permissions";
3
+ import { VulcanDocument } from "@vulcanjs/schema";
4
+ export declare const DatatableRow: (props: {
5
+ model: VulcanGraphqlModel;
6
+ columns: Array<any>;
7
+ document: VulcanDocument;
8
+ showEdit?: boolean;
9
+ showDelete?: boolean;
10
+ currentUser?: VulcanUser;
11
+ options?: any;
12
+ editFormOptions?: any;
13
+ editFormProps?: any;
14
+ rowClass?: any;
15
+ showSelect?: any;
16
+ toggleItem?: any;
17
+ selectedItems?: any;
18
+ modalProps?: any;
19
+ }) => JSX.Element;
20
+ export declare const DatatableRowLayout: ({ children, ...otherProps }: {
21
+ [x: string]: any;
22
+ children: any;
23
+ }) => JSX.Element;
24
+ //# sourceMappingURL=DatatableRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableRow.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableRow.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAA4B,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOlD,eAAO,MAAM,YAAY,UAAW;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC;IACpB,UAAU,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,gBAsGA,CAAC;AACF,eAAO,MAAM,kBAAkB;;;iBAE9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { VulcanDocument } from "@vulcanjs/schema";
2
+ export interface DatatableSelectControlledProps {
3
+ selectedItems: Array<string>;
4
+ toggleItem: (itemId: string) => void;
5
+ }
6
+ export interface DatatableSelectProps extends DatatableSelectControlledProps {
7
+ document: VulcanDocument;
8
+ }
9
+ export declare const DatatableSelect: ({ toggleItem, selectedItems, document, }: DatatableSelectProps) => JSX.Element;
10
+ //# sourceMappingURL=DatatableSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableSelect.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AACD,MAAM,WAAW,oBAAqB,SAAQ,8BAA8B;IAC1E,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAMD,eAAO,MAAM,eAAe,6CAIzB,oBAAoB,gBAetB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const DatatableSorter: ({ name, label, toggleSort, currentSort }: {
2
+ name: any;
3
+ label: any;
4
+ toggleSort: any;
5
+ currentSort: any;
6
+ }) => JSX.Element;
7
+ //# sourceMappingURL=DatatableSorter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableSorter.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableSorter.tsx"],"names":[],"mappings":"AAiEA,eAAO,MAAM,eAAe;;;;;iBAe3B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const DatatableSubmitSelected: ({ selectedItems, onSubmitSelected, }: {
2
+ selectedItems: any;
3
+ onSubmitSelected: any;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=DatatableSubmitSelected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatatableSubmitSelected.d.ts","sourceRoot":"","sources":["../../../components/Datatable/DatatableSubmitSelected.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,uBAAuB;;;iBAiBnC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { VulcanGraphqlModel } from "@vulcanjs/graphql";
2
+ import { VulcanUser } from "@vulcanjs/permissions";
3
+ import { DocumentNode } from "graphql";
4
+ export declare const DeleteButton: (props: {
5
+ label?: string;
6
+ fragment?: DocumentNode;
7
+ documentId?: string;
8
+ mutationOptions?: any;
9
+ currentUser?: VulcanUser;
10
+ model: VulcanGraphqlModel;
11
+ }) => JSX.Element;
12
+ //# sourceMappingURL=DeleteButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteButton.d.ts","sourceRoot":"","sources":["../../../../components/Datatable/others/DeleteButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvC,eAAO,MAAM,YAAY,UAAW;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,KAAK,EAAE,kBAAkB,CAAC;CAC3B,gBAkCA,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { VulcanDocument } from "@vulcanjs/schema";
2
+ export declare const EditButton: ({ style, variant, label, size, showId, modalProps, formProps, component, ...props }: {
3
+ [x: string]: any;
4
+ style?: string | undefined;
5
+ variant: any;
6
+ label: any;
7
+ size: any;
8
+ showId: any;
9
+ modalProps: any;
10
+ formProps: any;
11
+ component: any;
12
+ }) => JSX.Element;
13
+ export declare const EditForm: ({ closeModal, successCallback, removeSuccessCallback, formProps, ...props }: {
14
+ successCallback?: ((document: VulcanDocument) => void) | undefined;
15
+ closeModal: () => void;
16
+ removeSuccessCallback?: ((document: VulcanDocument) => void) | undefined;
17
+ formProps?: any;
18
+ }) => JSX.Element;
19
+ //# sourceMappingURL=EditButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditButton.d.ts","sourceRoot":"","sources":["../../../../components/Datatable/others/EditButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,eAAO,MAAM,UAAU;;;;;;;;;;iBA4CtB,CAAC;AAOF,eAAO,MAAM,QAAQ;kCAOU,cAAc,KAAK,IAAI;gBACxC,MAAM,IAAI;wCACa,cAAc,KAAK,IAAI;gBAC9C,GAAG;iBA6BhB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { VulcanModel } from "@vulcanjs/model";
2
+ import { VulcanDocument } from "@vulcanjs/schema";
3
+ import type { SmartFormProps } from "../../form";
4
+ import type { ButtonProps } from "../../form/core/Button";
5
+ export declare const NewButton: ({ size, label, style, formProps, ...props }: {
6
+ model: VulcanModel;
7
+ label?: string | undefined;
8
+ formProps?: Partial<import("../../form").FormContainerProps> | undefined;
9
+ } & Pick<any, "size"> & {
10
+ style?: ButtonProps["variant"];
11
+ } & NewFormProps) => JSX.Element;
12
+ export interface NewFormProps {
13
+ model: VulcanModel;
14
+ successCallback?: (document: VulcanDocument) => void;
15
+ closeModal: () => void;
16
+ formProps?: Partial<SmartFormProps>;
17
+ }
18
+ export declare const NewForm: ({ model, closeModal, successCallback, formProps, }: NewFormProps) => JSX.Element;
19
+ //# sourceMappingURL=NewButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewButton.d.ts","sourceRoot":"","sources":["../../../../components/Datatable/others/NewButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,eAAO,MAAM,SAAS;WAOb,WAAW;;;;YAIR,WAAW,CAAC,SAAS,CAAC;gCAiBjC,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IACrD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACrC;AAMD,eAAO,MAAM,OAAO,uDAKjB,YAAY,gBAkBd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeadTags.d.ts","sourceRoot":"","sources":["../../components/HeadTags.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa7C,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAYD,qBAAa,QAAS,SAAQ,aAAa,CAAC,aAAa,CAAC;IACxD,MAAM;CAsFP"}
1
+ {"version":3,"file":"HeadTags.d.ts","sourceRoot":"","sources":["../../components/HeadTags.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa7C,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAYD,qBAAa,QAAS,SAAQ,aAAa,CAAC,aAAa,CAAC;IACxD,MAAM;CAyFP"}
@@ -1,9 +1,11 @@
1
- export declare const LoadingButton: ({ loading, label, onClick, children, className, ...rest }: {
2
- [x: string]: any;
3
- loading: any;
4
- label: any;
5
- onClick: any;
6
- children: any;
7
- className?: string | undefined;
8
- }) => JSX.Element;
1
+ import React from "react";
2
+ import type { ButtonProps } from "./form/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;
9
11
  //# sourceMappingURL=LoadingButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../components/LoadingButton.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;iBA6CzB,CAAC"}
1
+ {"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../components/LoadingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,aAAa,8DAOvB,kBAAkB,GAAG,GAAG,gBAsC1B,CAAC"}
@@ -1,15 +1,20 @@
1
+ import React from "react";
1
2
  import { DocumentNode } from "graphql";
2
3
  import { MutationHookOptions } from "@apollo/client";
4
+ import { LoadingButtonProps } from "./LoadingButton";
3
5
  export interface MutationButtonProps {
4
- mutationOptions: MutationHookOptions;
6
+ mutationOptions?: MutationHookOptions;
5
7
  mutation: string | DocumentNode;
6
- mutationArguments: MutationHookOptions<any>["variables"];
7
- submitCallback: () => void | Promise<void>;
8
- successCallback: (res: any) => void | Promise<void>;
9
- errorCallback: (err: any) => void | Promise<void>;
10
- loadingButtonProps: {
11
- label: string;
12
- };
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;
13
18
  }
14
19
  export declare const MutationButton: (props: MutationButtonProps) => JSX.Element;
15
20
  //# sourceMappingURL=MutationButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MutationButton.d.ts","sourceRoot":"","sources":["../../components/MutationButton.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAO,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAuBvE,MAAM,WAAW,mBAAmB;IASlC,eAAe,EAAE,mBAAmB,CAAC;IASrC,QAAQ,EAAE,MAAM,GAAG,YAAY,CAAC;IAEhC,iBAAiB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;IACzD,cAAc,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD,kBAAkB,EAAE;QAClB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AACD,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBAqFxD,CAAC"}
1
+ {"version":3,"file":"MutationButton.d.ts","sourceRoot":"","sources":["../../components/MutationButton.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAO,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAsBrD,MAAM,WAAW,mBAAmB;IASlC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IAStC,QAAQ,EAAE,MAAM,GAAG,YAAY,CAAC;IAEhC,iBAAiB,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;IAE1D,cAAc,CAAC,EAAE,CACf,0BAA0B,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,KAE/D,IAAI,GACJ;QAAE,iBAAiB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAA;KAAE,GAC5D,OAAO,CAAC,IAAI,GAAG;QACb,iBAAiB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;KAC1D,CAAC,CAAC;IACP,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAClC;AACD,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBAwFxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAK1D,eAAO,MAAM,uBAAuB,yCA4DhC,CAAC"}
1
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAiB1D,eAAO,MAAM,uBAAuB,yCASjC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import React from "react";
2
2
  import { PossibleVulcanComponents } from "./typings";
3
- export declare const VulcanComponentsProvider: ({ value, ...props }: {
4
- value?: Partial<PossibleVulcanComponents> | undefined;
5
- children: React.ReactNode;
6
- }) => JSX.Element;
3
+ export declare const VulcanComponentsProvider: {
4
+ ({ value, ...props }: {
5
+ value?: Partial<PossibleVulcanComponents> | undefined;
6
+ children: React.ReactNode;
7
+ }): JSX.Element;
8
+ displayName: string;
9
+ };
7
10
  //# sourceMappingURL=Provider.d.ts.map
@@ -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;AAQrD,eAAO,MAAM,wBAAwB;;cAKzB,MAAM,SAAS;iBAmB1B,CAAC"}
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;;;kBAKzB,MAAM,SAAS;;;CA+B1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CellComponents } from "..";
2
+ export declare const defaultCellComponents: CellComponents;
3
+ //# sourceMappingURL=cellComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cellComponents.d.ts","sourceRoot":"","sources":["../../../../components/VulcanComponents/defaultVulcanComponents/cellComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAmBpC,eAAO,MAAM,qBAAqB,EAAE,cAiBnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DatatableComponents } from "../typings";
2
+ export declare const defaultDatatableComponents: DatatableComponents;
3
+ //# sourceMappingURL=datatableComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datatableComponents.d.ts","sourceRoot":"","sources":["../../../../components/VulcanComponents/defaultVulcanComponents/datatableComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAgDjD,eAAO,MAAM,0BAA0B,EAAE,mBAiDxC,CAAC"}