@guillotinaweb/react-gmi 0.35.0 → 0.35.1
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.
- package/dist/css/style.css +17238 -7861
- package/dist/css/style.css.map +1 -1
- package/dist/index.d.ts +2 -1823
- package/dist/react-gmi.js +15470 -18802
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +15453 -18934
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/src/guillo-gmi/actions/add_item.d.ts +5 -0
- package/dist/src/guillo-gmi/actions/change_pass.d.ts +1 -0
- package/dist/src/guillo-gmi/actions/copy_item.d.ts +6 -0
- package/dist/src/guillo-gmi/actions/copy_items.d.ts +7 -0
- package/dist/src/guillo-gmi/actions/index.d.ts +2 -0
- package/dist/src/guillo-gmi/actions/move_item.d.ts +6 -0
- package/dist/src/guillo-gmi/actions/move_items.d.ts +7 -0
- package/dist/src/guillo-gmi/actions/remove_item.d.ts +6 -0
- package/dist/src/guillo-gmi/actions/remove_items.d.ts +7 -0
- package/dist/src/guillo-gmi/components/Link.d.ts +10 -0
- package/dist/src/guillo-gmi/components/TdLink.d.ts +10 -0
- package/dist/src/guillo-gmi/components/behavior_view.d.ts +8 -0
- package/dist/src/guillo-gmi/components/behaviors/iattachment.d.ts +11 -0
- package/dist/src/guillo-gmi/components/behaviors/idublincore.d.ts +10 -0
- package/dist/src/guillo-gmi/components/behaviors/iimageattachment.d.ts +9 -0
- package/dist/src/guillo-gmi/components/behaviors/imultiattachment.d.ts +11 -0
- package/dist/src/guillo-gmi/components/behaviors/imultiimageattachment.d.ts +11 -0
- package/dist/src/guillo-gmi/components/behaviors/imultiimageorderedattachment.d.ts +11 -0
- package/dist/src/guillo-gmi/components/behaviors/iworkflow.d.ts +1 -0
- package/dist/src/guillo-gmi/components/context_toolbar.d.ts +9 -0
- package/dist/src/guillo-gmi/components/error_boundary.d.ts +3 -0
- package/dist/src/guillo-gmi/components/error_zone.d.ts +7 -0
- package/dist/src/guillo-gmi/components/fields/downloadField.d.ts +11 -0
- package/dist/src/guillo-gmi/components/fields/editComponent.d.ts +14 -0
- package/dist/src/guillo-gmi/components/fields/editableField.d.ts +12 -0
- package/dist/src/guillo-gmi/components/fields/renderField.d.ts +33 -0
- package/dist/src/guillo-gmi/components/flash.d.ts +1 -0
- package/dist/src/guillo-gmi/components/guillotina.d.ts +12 -0
- package/dist/src/guillo-gmi/components/index.d.ts +56 -0
- package/dist/src/guillo-gmi/components/input/button.d.ts +11 -0
- package/dist/src/guillo-gmi/components/input/checkbox.d.ts +17 -0
- package/dist/src/guillo-gmi/components/input/dropdown.d.ts +14 -0
- package/dist/src/guillo-gmi/components/input/email.d.ts +10 -0
- package/dist/src/guillo-gmi/components/input/form.d.ts +12 -0
- package/dist/src/guillo-gmi/components/input/form_builder.d.ts +14 -0
- package/dist/src/guillo-gmi/components/input/index.d.ts +14 -0
- package/dist/src/guillo-gmi/components/input/input.d.ts +26 -0
- package/dist/src/guillo-gmi/components/input/input_list.d.ts +9 -0
- package/dist/src/guillo-gmi/components/input/password.d.ts +11 -0
- package/dist/src/guillo-gmi/components/input/search_input.d.ts +21 -0
- package/dist/src/guillo-gmi/components/input/search_input_list.d.ts +21 -0
- package/dist/src/guillo-gmi/components/input/select.d.ts +24 -0
- package/dist/src/guillo-gmi/components/input/select_vocabulary.d.ts +14 -0
- package/dist/src/guillo-gmi/components/input/textarea.d.ts +14 -0
- package/dist/src/guillo-gmi/components/input/upload.d.ts +8 -0
- package/dist/src/guillo-gmi/components/item.d.ts +22 -0
- package/dist/src/guillo-gmi/components/layout.d.ts +8 -0
- package/dist/src/guillo-gmi/components/login.d.ts +10 -0
- package/dist/src/guillo-gmi/components/modal.d.ts +23 -0
- package/dist/src/guillo-gmi/components/notallowed.d.ts +1 -0
- package/dist/src/guillo-gmi/components/notfound.d.ts +1 -0
- package/dist/src/guillo-gmi/components/pagination.d.ts +8 -0
- package/dist/src/guillo-gmi/components/panel/actions.d.ts +1 -0
- package/dist/src/guillo-gmi/components/panel/addons.d.ts +1 -0
- package/dist/src/guillo-gmi/components/panel/behaviors.d.ts +1 -0
- package/dist/src/guillo-gmi/components/panel/index.d.ts +4 -0
- package/dist/src/guillo-gmi/components/panel/items.d.ts +1 -0
- package/dist/src/guillo-gmi/components/panel/permissions.d.ts +7 -0
- package/dist/src/guillo-gmi/components/panel/permissions_prinperm.d.ts +17 -0
- package/dist/src/guillo-gmi/components/panel/permissions_prinrole.d.ts +17 -0
- package/dist/src/guillo-gmi/components/panel/permissions_roleperm.d.ts +17 -0
- package/dist/src/guillo-gmi/components/panel/properties.d.ts +1 -0
- package/dist/src/guillo-gmi/components/path.d.ts +1 -0
- package/dist/src/guillo-gmi/components/properties_view.d.ts +7 -0
- package/dist/src/guillo-gmi/components/search_labels.d.ts +5 -0
- package/dist/src/guillo-gmi/components/search_options_labels.d.ts +9 -0
- package/dist/src/guillo-gmi/components/search_vocabulary_labels.d.ts +6 -0
- package/dist/src/guillo-gmi/components/selected_items_actions.d.ts +48 -0
- package/dist/src/guillo-gmi/components/tabs.d.ts +13 -0
- package/dist/src/guillo-gmi/components/ui/delete.d.ts +8 -0
- package/dist/src/guillo-gmi/components/ui/icon.d.ts +7 -0
- package/dist/src/guillo-gmi/components/ui/index.d.ts +6 -0
- package/dist/src/guillo-gmi/components/ui/loading.d.ts +6 -0
- package/dist/src/guillo-gmi/components/ui/notification.d.ts +6 -0
- package/dist/src/guillo-gmi/components/ui/table.d.ts +7 -0
- package/dist/src/guillo-gmi/components/ui/tag.d.ts +9 -0
- package/dist/src/guillo-gmi/components/widgets/index.d.ts +1 -0
- package/dist/src/guillo-gmi/components/widgets/tags.d.ts +13 -0
- package/dist/src/guillo-gmi/contexts/index.d.ts +57 -0
- package/dist/src/guillo-gmi/forms/base.d.ts +12 -0
- package/dist/src/guillo-gmi/forms/required_fields.d.ts +11 -0
- package/dist/src/guillo-gmi/forms/users.d.ts +12 -0
- package/dist/src/guillo-gmi/hooks/useClickAway.d.ts +1 -0
- package/dist/src/guillo-gmi/hooks/useConfig.d.ts +19 -0
- package/dist/src/guillo-gmi/hooks/useCrudContext.d.ts +21 -0
- package/dist/src/guillo-gmi/hooks/useInput.d.ts +11 -0
- package/dist/src/guillo-gmi/hooks/useLocation.d.ts +2 -0
- package/dist/src/guillo-gmi/hooks/useMountedState.d.ts +1 -0
- package/dist/src/guillo-gmi/hooks/useRegistry.d.ts +95 -0
- package/dist/src/guillo-gmi/hooks/useRemoteField.d.ts +2 -0
- package/dist/src/guillo-gmi/hooks/useSetState.d.ts +6 -0
- package/dist/src/guillo-gmi/hooks/useVocabulary.d.ts +8 -0
- package/dist/src/guillo-gmi/index.d.ts +30 -0
- package/dist/src/guillo-gmi/lib/auth.d.ts +26 -0
- package/dist/src/guillo-gmi/lib/client.d.ts +61 -0
- package/dist/src/guillo-gmi/lib/helpers.d.ts +16 -0
- package/dist/src/guillo-gmi/lib/processResponse.d.ts +9 -0
- package/dist/src/guillo-gmi/lib/rest.d.ts +16 -0
- package/dist/src/guillo-gmi/lib/search.d.ts +2 -0
- package/dist/src/guillo-gmi/lib/utils.d.ts +5 -0
- package/dist/src/guillo-gmi/lib/validators.d.ts +12 -0
- package/dist/src/guillo-gmi/locales/compiled/ca.json.d.ts +818 -0
- package/dist/src/guillo-gmi/locales/compiled/en.json.d.ts +818 -0
- package/dist/src/guillo-gmi/locales/compiled/es.json.d.ts +818 -0
- package/dist/src/guillo-gmi/locales/generic_messages.d.ts +248 -0
- package/dist/src/guillo-gmi/models/index.d.ts +17 -0
- package/dist/src/guillo-gmi/models/sharing.d.ts +12 -0
- package/dist/src/guillo-gmi/reducers/guillotina.d.ts +35 -0
- package/dist/src/guillo-gmi/types/global.d.ts +11 -0
- package/dist/src/guillo-gmi/types/guillotina.d.ts +279 -0
- package/dist/src/guillo-gmi/views/application.d.ts +13 -0
- package/dist/src/guillo-gmi/views/base.d.ts +5 -0
- package/dist/src/guillo-gmi/views/container.d.ts +1 -0
- package/dist/src/guillo-gmi/views/folder.d.ts +1 -0
- package/dist/src/guillo-gmi/views/groups.d.ts +3 -0
- package/dist/src/guillo-gmi/views/item.d.ts +1 -0
- package/dist/src/guillo-gmi/views/users.d.ts +3 -0
- package/package.json +32 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChangePassword(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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,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,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,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,14 @@
|
|
|
1
|
+
import { GuillotinaSchemaProperty } from '../../types/guillotina';
|
|
2
|
+
import { EditableFieldValue } from '../../types/global';
|
|
3
|
+
interface Props {
|
|
4
|
+
schema: GuillotinaSchemaProperty;
|
|
5
|
+
val: EditableFieldValue;
|
|
6
|
+
setValue: (value: EditableFieldValue) => void;
|
|
7
|
+
dataTest?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const EditComponent: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<unknown>>;
|
|
14
|
+
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 } 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: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export default Input;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputHTMLAttributes } 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: import('react').ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & Props & import('react').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,24 @@
|
|
|
1
|
+
import { IndexSignature } from '../../types/global';
|
|
2
|
+
interface Props {
|
|
3
|
+
error?: string;
|
|
4
|
+
errorZoneClassName?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
classWrap?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
onChange?: (value: string | string[]) => void;
|
|
14
|
+
options: {
|
|
15
|
+
text: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
appendDefault?: boolean;
|
|
19
|
+
style?: IndexSignature;
|
|
20
|
+
dataTest?: string;
|
|
21
|
+
value?: string | string[];
|
|
22
|
+
}
|
|
23
|
+
export declare const Select: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLSelectElement>>;
|
|
24
|
+
export default Select;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
vocabularyName: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
classWrap?: string;
|
|
5
|
+
val?: string | string[];
|
|
6
|
+
dataTest?: string;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
onChange?: (value: string | string[]) => void;
|
|
9
|
+
appendDefault?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SelectVocabulary: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLSelectElement>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
value: string;
|
|
3
|
+
classWrap?: string;
|
|
4
|
+
rows?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
dataTest?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
errorZoneClassName?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
14
|
+
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 {};
|