@guillotinaweb/react-gmi 0.35.0 → 0.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/css/style.css +17238 -7861
  2. package/dist/css/style.css.map +1 -1
  3. package/dist/index.d.ts +2 -1823
  4. package/dist/react-gmi.js +15470 -18802
  5. package/dist/react-gmi.js.map +1 -1
  6. package/dist/react-gmi.modern.js +15454 -18934
  7. package/dist/react-gmi.modern.js.map +1 -1
  8. package/dist/src/guillo-gmi/actions/add_item.d.ts +5 -0
  9. package/dist/src/guillo-gmi/actions/change_pass.d.ts +1 -0
  10. package/dist/src/guillo-gmi/actions/copy_item.d.ts +6 -0
  11. package/dist/src/guillo-gmi/actions/copy_items.d.ts +7 -0
  12. package/dist/src/guillo-gmi/actions/index.d.ts +2 -0
  13. package/dist/src/guillo-gmi/actions/move_item.d.ts +6 -0
  14. package/dist/src/guillo-gmi/actions/move_items.d.ts +7 -0
  15. package/dist/src/guillo-gmi/actions/remove_item.d.ts +6 -0
  16. package/dist/src/guillo-gmi/actions/remove_items.d.ts +7 -0
  17. package/dist/src/guillo-gmi/components/Link.d.ts +10 -0
  18. package/dist/src/guillo-gmi/components/TdLink.d.ts +10 -0
  19. package/dist/src/guillo-gmi/components/behavior_view.d.ts +8 -0
  20. package/dist/src/guillo-gmi/components/behaviors/iattachment.d.ts +11 -0
  21. package/dist/src/guillo-gmi/components/behaviors/idublincore.d.ts +10 -0
  22. package/dist/src/guillo-gmi/components/behaviors/iimageattachment.d.ts +9 -0
  23. package/dist/src/guillo-gmi/components/behaviors/imultiattachment.d.ts +11 -0
  24. package/dist/src/guillo-gmi/components/behaviors/imultiimageattachment.d.ts +11 -0
  25. package/dist/src/guillo-gmi/components/behaviors/imultiimageorderedattachment.d.ts +11 -0
  26. package/dist/src/guillo-gmi/components/behaviors/iworkflow.d.ts +1 -0
  27. package/dist/src/guillo-gmi/components/context_toolbar.d.ts +9 -0
  28. package/dist/src/guillo-gmi/components/error_boundary.d.ts +3 -0
  29. package/dist/src/guillo-gmi/components/error_zone.d.ts +7 -0
  30. package/dist/src/guillo-gmi/components/fields/downloadField.d.ts +11 -0
  31. package/dist/src/guillo-gmi/components/fields/editComponent.d.ts +15 -0
  32. package/dist/src/guillo-gmi/components/fields/editableField.d.ts +12 -0
  33. package/dist/src/guillo-gmi/components/fields/renderField.d.ts +33 -0
  34. package/dist/src/guillo-gmi/components/flash.d.ts +1 -0
  35. package/dist/src/guillo-gmi/components/guillotina.d.ts +12 -0
  36. package/dist/src/guillo-gmi/components/index.d.ts +56 -0
  37. package/dist/src/guillo-gmi/components/input/button.d.ts +11 -0
  38. package/dist/src/guillo-gmi/components/input/checkbox.d.ts +17 -0
  39. package/dist/src/guillo-gmi/components/input/dropdown.d.ts +14 -0
  40. package/dist/src/guillo-gmi/components/input/email.d.ts +10 -0
  41. package/dist/src/guillo-gmi/components/input/form.d.ts +12 -0
  42. package/dist/src/guillo-gmi/components/input/form_builder.d.ts +14 -0
  43. package/dist/src/guillo-gmi/components/input/index.d.ts +14 -0
  44. package/dist/src/guillo-gmi/components/input/input.d.ts +26 -0
  45. package/dist/src/guillo-gmi/components/input/input_list.d.ts +9 -0
  46. package/dist/src/guillo-gmi/components/input/password.d.ts +11 -0
  47. package/dist/src/guillo-gmi/components/input/search_input.d.ts +21 -0
  48. package/dist/src/guillo-gmi/components/input/search_input_list.d.ts +21 -0
  49. package/dist/src/guillo-gmi/components/input/select.d.ts +25 -0
  50. package/dist/src/guillo-gmi/components/input/select_vocabulary.d.ts +15 -0
  51. package/dist/src/guillo-gmi/components/input/textarea.d.ts +15 -0
  52. package/dist/src/guillo-gmi/components/input/upload.d.ts +8 -0
  53. package/dist/src/guillo-gmi/components/item.d.ts +22 -0
  54. package/dist/src/guillo-gmi/components/layout.d.ts +8 -0
  55. package/dist/src/guillo-gmi/components/login.d.ts +10 -0
  56. package/dist/src/guillo-gmi/components/modal.d.ts +24 -0
  57. package/dist/src/guillo-gmi/components/notallowed.d.ts +1 -0
  58. package/dist/src/guillo-gmi/components/notfound.d.ts +1 -0
  59. package/dist/src/guillo-gmi/components/pagination.d.ts +8 -0
  60. package/dist/src/guillo-gmi/components/panel/actions.d.ts +1 -0
  61. package/dist/src/guillo-gmi/components/panel/addons.d.ts +1 -0
  62. package/dist/src/guillo-gmi/components/panel/behaviors.d.ts +1 -0
  63. package/dist/src/guillo-gmi/components/panel/index.d.ts +4 -0
  64. package/dist/src/guillo-gmi/components/panel/items.d.ts +1 -0
  65. package/dist/src/guillo-gmi/components/panel/permissions.d.ts +7 -0
  66. package/dist/src/guillo-gmi/components/panel/permissions_prinperm.d.ts +17 -0
  67. package/dist/src/guillo-gmi/components/panel/permissions_prinrole.d.ts +17 -0
  68. package/dist/src/guillo-gmi/components/panel/permissions_roleperm.d.ts +17 -0
  69. package/dist/src/guillo-gmi/components/panel/properties.d.ts +1 -0
  70. package/dist/src/guillo-gmi/components/path.d.ts +1 -0
  71. package/dist/src/guillo-gmi/components/properties_view.d.ts +8 -0
  72. package/dist/src/guillo-gmi/components/search_labels.d.ts +5 -0
  73. package/dist/src/guillo-gmi/components/search_options_labels.d.ts +9 -0
  74. package/dist/src/guillo-gmi/components/search_vocabulary_labels.d.ts +6 -0
  75. package/dist/src/guillo-gmi/components/selected_items_actions.d.ts +49 -0
  76. package/dist/src/guillo-gmi/components/tabs.d.ts +13 -0
  77. package/dist/src/guillo-gmi/components/ui/delete.d.ts +8 -0
  78. package/dist/src/guillo-gmi/components/ui/icon.d.ts +7 -0
  79. package/dist/src/guillo-gmi/components/ui/index.d.ts +6 -0
  80. package/dist/src/guillo-gmi/components/ui/loading.d.ts +6 -0
  81. package/dist/src/guillo-gmi/components/ui/notification.d.ts +6 -0
  82. package/dist/src/guillo-gmi/components/ui/table.d.ts +7 -0
  83. package/dist/src/guillo-gmi/components/ui/tag.d.ts +9 -0
  84. package/dist/src/guillo-gmi/components/widgets/index.d.ts +1 -0
  85. package/dist/src/guillo-gmi/components/widgets/tags.d.ts +13 -0
  86. package/dist/src/guillo-gmi/contexts/index.d.ts +57 -0
  87. package/dist/src/guillo-gmi/forms/base.d.ts +12 -0
  88. package/dist/src/guillo-gmi/forms/required_fields.d.ts +11 -0
  89. package/dist/src/guillo-gmi/forms/users.d.ts +12 -0
  90. package/dist/src/guillo-gmi/hooks/useClickAway.d.ts +1 -0
  91. package/dist/src/guillo-gmi/hooks/useConfig.d.ts +19 -0
  92. package/dist/src/guillo-gmi/hooks/useCrudContext.d.ts +21 -0
  93. package/dist/src/guillo-gmi/hooks/useInput.d.ts +11 -0
  94. package/dist/src/guillo-gmi/hooks/useLocation.d.ts +2 -0
  95. package/dist/src/guillo-gmi/hooks/useMountedState.d.ts +1 -0
  96. package/dist/src/guillo-gmi/hooks/useRegistry.d.ts +95 -0
  97. package/dist/src/guillo-gmi/hooks/useRemoteField.d.ts +2 -0
  98. package/dist/src/guillo-gmi/hooks/useSetState.d.ts +6 -0
  99. package/dist/src/guillo-gmi/hooks/useVocabulary.d.ts +8 -0
  100. package/dist/src/guillo-gmi/index.d.ts +30 -0
  101. package/dist/src/guillo-gmi/lib/auth.d.ts +26 -0
  102. package/dist/src/guillo-gmi/lib/client.d.ts +61 -0
  103. package/dist/src/guillo-gmi/lib/helpers.d.ts +16 -0
  104. package/dist/src/guillo-gmi/lib/processResponse.d.ts +9 -0
  105. package/dist/src/guillo-gmi/lib/rest.d.ts +16 -0
  106. package/dist/src/guillo-gmi/lib/search.d.ts +2 -0
  107. package/dist/src/guillo-gmi/lib/utils.d.ts +5 -0
  108. package/dist/src/guillo-gmi/lib/validators.d.ts +12 -0
  109. package/dist/src/guillo-gmi/locales/compiled/ca.json.d.ts +818 -0
  110. package/dist/src/guillo-gmi/locales/compiled/en.json.d.ts +818 -0
  111. package/dist/src/guillo-gmi/locales/compiled/es.json.d.ts +818 -0
  112. package/dist/src/guillo-gmi/locales/generic_messages.d.ts +248 -0
  113. package/dist/src/guillo-gmi/models/index.d.ts +17 -0
  114. package/dist/src/guillo-gmi/models/sharing.d.ts +13 -0
  115. package/dist/src/guillo-gmi/reducers/guillotina.d.ts +35 -0
  116. package/dist/src/guillo-gmi/types/global.d.ts +11 -0
  117. package/dist/src/guillo-gmi/types/guillotina.d.ts +279 -0
  118. package/dist/src/guillo-gmi/views/application.d.ts +13 -0
  119. package/dist/src/guillo-gmi/views/base.d.ts +5 -0
  120. package/dist/src/guillo-gmi/views/container.d.ts +1 -0
  121. package/dist/src/guillo-gmi/views/folder.d.ts +1 -0
  122. package/dist/src/guillo-gmi/views/groups.d.ts +3 -0
  123. package/dist/src/guillo-gmi/views/item.d.ts +1 -0
  124. package/dist/src/guillo-gmi/views/users.d.ts +3 -0
  125. package/package.json +32 -32
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ type: string;
3
+ }
4
+ export declare function AddItem(props: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function ChangePassword(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { GuillotinaCommonObject } from '../types/guillotina';
2
+ interface Props {
3
+ item: GuillotinaCommonObject;
4
+ }
5
+ export declare function CopyItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ItemModel } from '../models';
2
+ import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
3
+ interface Props {
4
+ items: Array<ItemModel<SearchItem | GuillotinaCommonObject>>;
5
+ }
6
+ export declare function CopyItems(props: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './add_item';
2
+ export * from './remove_items';
@@ -0,0 +1,6 @@
1
+ import { GuillotinaCommonObject } from '../types/guillotina';
2
+ interface Props {
3
+ item: GuillotinaCommonObject;
4
+ }
5
+ export declare function MoveItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ItemModel } from '../models';
2
+ import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
3
+ interface Props {
4
+ items: ItemModel<SearchItem | GuillotinaCommonObject>[];
5
+ }
6
+ export declare function MoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { GuillotinaCommonObject } from '../types/guillotina';
2
+ interface Props {
3
+ item: GuillotinaCommonObject;
4
+ }
5
+ export declare function RemoveItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ItemModel } from '../models';
2
+ import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
3
+ interface Props {
4
+ items: ItemModel<SearchItem | GuillotinaCommonObject>[];
5
+ }
6
+ export declare function RemoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ItemModel } from '../models';
2
+ import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
3
+ interface Props {
4
+ aRef?: React.Ref<HTMLAnchorElement>;
5
+ model: ItemModel<SearchItem | GuillotinaCommonObject>;
6
+ children: React.ReactNode;
7
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
8
+ }
9
+ export declare function Link({ aRef, model, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ItemModel } from '../models';
2
+ import { IndexSignature } from '../types/global';
3
+ import { SearchOrCommonObject } from '../types/guillotina';
4
+ interface Props<T extends SearchOrCommonObject = SearchOrCommonObject> {
5
+ model: ItemModel<T>;
6
+ children: React.ReactNode;
7
+ style?: IndexSignature;
8
+ }
9
+ export declare function TdLink({ model, children, style }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { GuillotinaCommonObject, GuillotinaSchema } from '../types/guillotina';
2
+ interface Props {
3
+ context: GuillotinaCommonObject;
4
+ schema: GuillotinaSchema;
5
+ }
6
+ export declare function BehaviorsView({ context, schema }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export declare function BehaviorNotImplemented(): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { GuillotinaFile, GuillotinaSchemaProperty } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: {
4
+ file: GuillotinaSchemaProperty;
5
+ };
6
+ values: {
7
+ file: GuillotinaFile;
8
+ };
9
+ }
10
+ export declare function IAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ interface Props {
2
+ properties: {
3
+ [key: string]: any;
4
+ };
5
+ values: {
6
+ [key: string]: any;
7
+ };
8
+ }
9
+ export declare function IDublinCore({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ image: GuillotinaFile;
6
+ };
7
+ }
8
+ export declare function IImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ files: {
6
+ [key: string]: GuillotinaFile;
7
+ };
8
+ };
9
+ }
10
+ export declare function IMultiAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ images: {
6
+ [key: string]: GuillotinaFile;
7
+ };
8
+ };
9
+ }
10
+ export declare function IMultiImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ images: {
6
+ [key: string]: GuillotinaFile;
7
+ };
8
+ };
9
+ }
10
+ export declare function IMultiImageOrderedAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare function IWorkflow(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ interface CreateButtonProps {
2
+ types: string[];
3
+ }
4
+ export declare function CreateButton({ types }: CreateButtonProps): import("react/jsx-runtime").JSX.Element | null;
5
+ interface Props {
6
+ AddButton?: React.FC<CreateButtonProps>;
7
+ }
8
+ export declare function ContextToolbar({ AddButton }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare function ErrorBoundary({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ id?: string;
4
+ className?: string;
5
+ }
6
+ export default function ErrorZone({ children, id, className }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ interface DownloadFieldProps {
2
+ value: {
3
+ data: {
4
+ filename: string;
5
+ content_type: string;
6
+ };
7
+ field: string;
8
+ };
9
+ }
10
+ export declare const DownloadField: ({ value }: DownloadFieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import { GuillotinaSchemaProperty } from '../../types/guillotina';
2
+ import { EditableFieldValue } from '../../types/global';
3
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
4
+ interface Props {
5
+ schema: GuillotinaSchemaProperty;
6
+ val: EditableFieldValue;
7
+ setValue: (value: EditableFieldValue) => void;
8
+ dataTest?: string;
9
+ className?: string;
10
+ placeholder?: string;
11
+ id?: string;
12
+ required?: boolean;
13
+ }
14
+ export declare const EditComponent: ForwardRefExoticComponent<Props & RefAttributes<unknown>>;
15
+ export default EditComponent;
@@ -0,0 +1,12 @@
1
+ import { EditableFieldValue } from '../../types/global';
2
+ import { GuillotinaSchemaProperty } from '../../types/guillotina';
3
+ interface Props {
4
+ field: string;
5
+ value: EditableFieldValue;
6
+ ns?: string;
7
+ schema?: GuillotinaSchemaProperty;
8
+ modifyContent?: boolean;
9
+ required?: boolean;
10
+ }
11
+ export declare function EditableField({ field, value, ns, schema, modifyContent, required, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,33 @@
1
+ import { GuillotinaSchemaProperty } from '../../types/guillotina';
2
+ import { EditableFieldValue } from '../../types/global';
3
+ type PlainType = string | boolean | number;
4
+ interface RenderFieldProps {
5
+ value: EditableFieldValue;
6
+ Widget?: React.ComponentType<{
7
+ value: EditableFieldValue;
8
+ schema?: GuillotinaSchemaProperty;
9
+ modifyContent?: boolean;
10
+ }>;
11
+ schema?: GuillotinaSchemaProperty;
12
+ }
13
+ export declare function RenderField({ value, Widget, schema }: RenderFieldProps): import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | PlainType;
14
+ interface SearchRenderFieldProps {
15
+ schema: GuillotinaSchemaProperty;
16
+ value: string | string[];
17
+ modifyContent: boolean;
18
+ }
19
+ export declare const SearchRenderField: ({ schema, value, modifyContent, }: SearchRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
20
+ interface VocabularyRenderFieldProps {
21
+ schema: GuillotinaSchemaProperty;
22
+ value: string | string[];
23
+ modifyContent: boolean;
24
+ }
25
+ export declare const VocabularyRenderField: ({ schema, value, modifyContent, }: VocabularyRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
26
+ interface RenderFieldComponentProps {
27
+ schema: GuillotinaSchemaProperty;
28
+ field: string;
29
+ val: EditableFieldValue;
30
+ modifyContent?: boolean;
31
+ }
32
+ export declare function RenderFieldComponent({ schema, field, val, modifyContent, }: RenderFieldComponentProps): import("react/jsx-runtime").JSX.Element;
33
+ export {};
@@ -0,0 +1 @@
1
+ export declare function Flash(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ import { IConfig } from '../hooks/useConfig';
2
+ import { IRegistry } from '../hooks/useRegistry';
3
+ import { Auth } from '../lib/auth';
4
+ interface GuillotinaProps {
5
+ auth: Auth;
6
+ locale: string;
7
+ url: string;
8
+ config?: Partial<IConfig>;
9
+ registry: Partial<IRegistry>;
10
+ }
11
+ export declare function Guillotina({ auth, locale, ...props }: GuillotinaProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,56 @@
1
+ export * from './input/button';
2
+ export * from './input/checkbox';
3
+ export * from './input/email';
4
+ export * from './input/form_builder';
5
+ export * from './input/form';
6
+ export * from './input/input';
7
+ export * from './input/password';
8
+ export * from './input/select';
9
+ export * from './input/select_vocabulary';
10
+ export * from './input/upload';
11
+ export * from './input/textarea';
12
+ export * from './input/search_input';
13
+ export * from './input/search_input_list';
14
+ export * from './input/input_list';
15
+ export * from './input/dropdown';
16
+ export * from './fields/editableField';
17
+ export * from './fields/renderField';
18
+ export * from './fields/downloadField';
19
+ export * from './fields/editComponent';
20
+ export * from './behaviors/iattachment';
21
+ export * from './behaviors/imultiattachment';
22
+ export * from './behaviors/iimageattachment';
23
+ export * from './behaviors/imultiimageattachment';
24
+ export * from './behaviors/imultiimageorderedattachment';
25
+ export * from './behaviors/iworkflow';
26
+ export * from './panel/actions';
27
+ export * from './panel/addons';
28
+ export * from './panel/behaviors';
29
+ export * from './panel/items';
30
+ export * from './panel/properties';
31
+ export * from './panel/permissions';
32
+ export * from './panel/permissions_prinperm';
33
+ export * from './panel/permissions_prinrole';
34
+ export * from './panel/permissions_roleperm';
35
+ export * from './ui';
36
+ export * from './widgets';
37
+ export * from './behavior_view';
38
+ export * from './properties_view';
39
+ export * from './context_toolbar';
40
+ export * from './error_zone';
41
+ export * from './flash';
42
+ export * from './guillotina';
43
+ export * from './item';
44
+ export * from './Link';
45
+ export * from './layout';
46
+ export * from './login';
47
+ export * from './modal';
48
+ export * from './notallowed';
49
+ export * from './pagination';
50
+ export * from './path';
51
+ export * from './search_labels';
52
+ export * from './search_options_labels';
53
+ export * from './search_vocabulary_labels';
54
+ export * from './tabs';
55
+ export * from './selected_items_actions';
56
+ export * from './TdLink';
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
5
+ type?: 'submit' | 'reset' | 'button';
6
+ loading?: boolean;
7
+ disabled?: boolean;
8
+ dataTest?: string;
9
+ }
10
+ export declare const Button: ({ children, className, onClick, type, loading, disabled, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ interface Props {
2
+ className?: string;
3
+ classNameInput?: string;
4
+ loading?: boolean;
5
+ indeterminate?: boolean;
6
+ backgroundColor?: string;
7
+ borderColor?: string;
8
+ dataTest?: string;
9
+ onChange: (value: boolean) => void;
10
+ id?: string;
11
+ disabled?: boolean;
12
+ checked?: boolean;
13
+ children?: React.ReactNode;
14
+ placeholder?: string;
15
+ }
16
+ export declare const Checkbox: ({ id, className, classNameInput, loading, disabled, indeterminate, checked, children, placeholder, onChange, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,14 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ disabled?: boolean;
4
+ id?: string;
5
+ isRight?: boolean;
6
+ onChange: (value: string) => void;
7
+ optionDisabledWhen?: (option: any) => boolean;
8
+ options: {
9
+ text: string;
10
+ value: string;
11
+ }[];
12
+ }
13
+ export default function Dropdown({ children, disabled, id, isRight, onChange, optionDisabledWhen, options, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ interface Props {
2
+ value?: string;
3
+ dataTest?: string;
4
+ onChange: (value: string) => void;
5
+ placeholder?: string;
6
+ id?: string;
7
+ required?: boolean;
8
+ }
9
+ export declare const EmailInput: ({ value, dataTest, placeholder, id, onChange, required, }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
5
+ onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
6
+ autoComplete?: string;
7
+ title?: string;
8
+ error?: string;
9
+ dataTest?: string;
10
+ }
11
+ export declare const Form: ({ children, className, onSubmit, onReset, autoComplete, title, error, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,14 @@
1
+ import { IndexSignature } from '../../types/global';
2
+ import { GuillotinaSchema } from '../../types/guillotina';
3
+ interface Props {
4
+ schema: GuillotinaSchema;
5
+ formData?: IndexSignature;
6
+ onSubmit: (formData: IndexSignature, initialData: IndexSignature) => void;
7
+ actionName: string;
8
+ children?: React.ReactNode;
9
+ exclude?: string[];
10
+ remotes?: IndexSignature;
11
+ submitButton?: boolean;
12
+ }
13
+ export declare function FormBuilder({ schema, formData, onSubmit, actionName, children, exclude, remotes, submitButton, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ export * from './button';
2
+ export * from './checkbox';
3
+ export * from './email';
4
+ export * from './form';
5
+ export * from './form_builder';
6
+ export * from './input';
7
+ export * from './password';
8
+ export * from './select';
9
+ export * from './select_vocabulary';
10
+ export * from './search_input';
11
+ export * from './search_input_list';
12
+ export * from './input_list';
13
+ export * from './textarea';
14
+ export * from './upload';
@@ -0,0 +1,26 @@
1
+ import { ReactElement, ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ interface Props {
3
+ name?: string;
4
+ icon?: ReactElement;
5
+ iconPosition?: 'has-icons-left' | 'has-icons-right';
6
+ error?: string;
7
+ errorZoneClassName?: string;
8
+ autoComplete?: string;
9
+ className?: string;
10
+ widget?: string;
11
+ loading?: boolean;
12
+ validator?: ((value: string) => boolean) | ((value: string) => boolean)[];
13
+ errorMessage?: string;
14
+ dataTest?: string;
15
+ autofocus?: boolean;
16
+ onChange: (value: string) => void | undefined;
17
+ type?: string;
18
+ value?: string;
19
+ required?: boolean;
20
+ id?: string;
21
+ placeholder?: string;
22
+ disabled?: boolean;
23
+ onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
24
+ }
25
+ export declare const Input: ForwardRefExoticComponent<Props & RefAttributes<HTMLInputElement>>;
26
+ export default Input;
@@ -0,0 +1,9 @@
1
+ import { InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ interface Props {
3
+ value: string[];
4
+ onChange: (value: string[]) => void;
5
+ dataTest?: string;
6
+ id?: string;
7
+ }
8
+ export declare const InputList: ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & Props & RefAttributes<HTMLInputElement>>;
9
+ export default InputList;
@@ -0,0 +1,11 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ interface Props {
3
+ value: string;
4
+ dataTest: string;
5
+ onChange: (value: string) => void;
6
+ placeholder?: string;
7
+ id?: string;
8
+ required?: boolean;
9
+ }
10
+ export declare const PasswordInput: ({ value, dataTest, onChange, placeholder, id, required, }: Props & InputHTMLAttributes<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,21 @@
1
+ import { SearchItem } from '../../types/guillotina';
2
+ import { Traversal } from '../../contexts';
3
+ interface Props {
4
+ onChange?: (value: string) => void;
5
+ error?: string;
6
+ errorZoneClassName?: string;
7
+ traversal: Traversal;
8
+ path?: string;
9
+ qs?: string[][];
10
+ queryCondition?: string;
11
+ value?: string;
12
+ btnClass?: string;
13
+ dataTestWrapper?: string;
14
+ dataTestSearchInput?: string;
15
+ dataTestItem?: string;
16
+ renderTextItemOption?: (item: SearchItem) => string;
17
+ typeNameQuery?: string;
18
+ labelProperty?: string;
19
+ }
20
+ export declare const SearchInput: ({ onChange, error, errorZoneClassName, traversal, path, qs, queryCondition, value, btnClass, dataTestWrapper, dataTestSearchInput, dataTestItem, renderTextItemOption, typeNameQuery, labelProperty, }: Props) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,21 @@
1
+ import { SearchItem } from '../../types/guillotina';
2
+ import { Traversal } from '../../contexts';
3
+ interface Props {
4
+ onChange: (value: string[]) => void;
5
+ error?: string;
6
+ errorZoneClassName?: string;
7
+ traversal: Traversal;
8
+ path?: string;
9
+ qs?: string[][];
10
+ queryCondition?: string;
11
+ value: string[];
12
+ btnClass?: string;
13
+ dataTestWrapper?: string;
14
+ dataTestSearchInput?: string;
15
+ dataTestItem?: string;
16
+ renderTextItemOption?: (item: SearchItem) => string;
17
+ typeNameQuery?: string;
18
+ labelProperty?: string;
19
+ }
20
+ export declare const SearchInputList: ({ onChange, error, errorZoneClassName, traversal, path, qs, queryCondition, value, btnClass, dataTestWrapper, dataTestSearchInput, dataTestItem, renderTextItemOption, typeNameQuery, labelProperty, }: Props) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,25 @@
1
+ import { IndexSignature } from '../../types/global';
2
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
3
+ interface Props {
4
+ error?: string;
5
+ errorZoneClassName?: string;
6
+ size?: number;
7
+ placeholder?: string;
8
+ id?: string;
9
+ className?: string;
10
+ classWrap?: string;
11
+ disabled?: boolean;
12
+ multiple?: boolean;
13
+ loading?: boolean;
14
+ onChange?: (value: string | string[]) => void;
15
+ options: {
16
+ text: string;
17
+ value: string;
18
+ }[];
19
+ appendDefault?: boolean;
20
+ style?: IndexSignature;
21
+ dataTest?: string;
22
+ value?: string | string[];
23
+ }
24
+ export declare const Select: ForwardRefExoticComponent<Props & RefAttributes<HTMLSelectElement>>;
25
+ export default Select;
@@ -0,0 +1,15 @@
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ interface Props {
3
+ vocabularyName: string;
4
+ className?: string;
5
+ classWrap?: string;
6
+ val?: string | string[];
7
+ dataTest?: string;
8
+ multiple?: boolean;
9
+ onChange?: (value: string | string[]) => void;
10
+ appendDefault?: boolean;
11
+ id?: string;
12
+ placeholder?: string;
13
+ }
14
+ export declare const SelectVocabulary: ForwardRefExoticComponent<Props & RefAttributes<HTMLSelectElement>>;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ interface Props {
3
+ value: string;
4
+ classWrap?: string;
5
+ rows?: number;
6
+ className?: string;
7
+ onChange?: (value: string) => void;
8
+ dataTest?: string;
9
+ error?: string;
10
+ errorZoneClassName?: string;
11
+ placeholder?: string;
12
+ id?: string;
13
+ }
14
+ export declare const Textarea: ForwardRefExoticComponent<Props & RefAttributes<HTMLTextAreaElement>>;
15
+ export default Textarea;
@@ -0,0 +1,8 @@
1
+ import { LightFile } from '../../types/global';
2
+ interface Props {
3
+ label?: string;
4
+ dataTest?: string;
5
+ onChange: (file: LightFile) => void;
6
+ }
7
+ export declare function FileUpload({ label, onChange, dataTest }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { GuillotinaCommonObject, ItemColumn, SearchItem } from '../types/guillotina';
3
+ interface ItemProps {
4
+ item: {
5
+ id: string;
6
+ path: string;
7
+ };
8
+ icon?: string;
9
+ }
10
+ export declare function Item({ item, icon }: ItemProps): import("react/jsx-runtime").JSX.Element;
11
+ interface RItemProps {
12
+ item: SearchItem;
13
+ search: string;
14
+ columns: ItemColumn<SearchItem | GuillotinaCommonObject>[];
15
+ }
16
+ export declare function RItem({ item, search, columns }: RItemProps): import("react/jsx-runtime").JSX.Element;
17
+ interface ItemTitleProps {
18
+ title: string;
19
+ actions?: React.ReactNode;
20
+ }
21
+ export declare function ItemTitle({ title, actions }: ItemTitleProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};