@guillotinaweb/react-gmi 0.34.0 → 0.34.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.
- package/README.md +120 -72
- package/dist/css/style.css +336 -334
- package/dist/css/style.css.map +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +1821 -30
- package/dist/index.html +44 -0
- package/dist/logo.svg +35 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +25 -0
- package/dist/react-gmi.js +24141 -14138
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +24265 -14128
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/robots.txt +2 -0
- package/package.json +54 -53
- package/dist/actions/add_item.d.ts +0 -5
- package/dist/actions/change_pass.d.ts +0 -1
- package/dist/actions/copy_item.d.ts +0 -6
- package/dist/actions/copy_items.d.ts +0 -8
- package/dist/actions/index.d.ts +0 -2
- package/dist/actions/move_item.d.ts +0 -6
- package/dist/actions/move_items.d.ts +0 -8
- package/dist/actions/remove_item.d.ts +0 -6
- package/dist/actions/remove_items.d.ts +0 -7
- package/dist/components/Link.d.ts +0 -11
- package/dist/components/TdLink.d.ts +0 -11
- package/dist/components/behavior_view.d.ts +0 -8
- package/dist/components/behaviors/iattachment.d.ts +0 -11
- package/dist/components/behaviors/idublincore.d.ts +0 -10
- package/dist/components/behaviors/iimageattachment.d.ts +0 -9
- package/dist/components/behaviors/imultiattachment.d.ts +0 -11
- package/dist/components/behaviors/imultiimageattachment.d.ts +0 -11
- package/dist/components/behaviors/imultiimageorderedattachment.d.ts +0 -11
- package/dist/components/behaviors/iworkflow.d.ts +0 -1
- package/dist/components/context_toolbar.d.ts +0 -7
- package/dist/components/error_boundary.d.ts +0 -6
- package/dist/components/error_zone.d.ts +0 -16
- package/dist/components/fields/downloadField.d.ts +0 -11
- package/dist/components/fields/editComponent.d.ts +0 -15
- package/dist/components/fields/editableField.d.ts +0 -12
- package/dist/components/fields/renderField.d.ts +0 -34
- package/dist/components/flash.d.ts +0 -1
- package/dist/components/guillotina.d.ts +0 -12
- package/dist/components/index.d.ts +0 -56
- package/dist/components/input/button.d.ts +0 -12
- package/dist/components/input/checkbox.d.ts +0 -18
- package/dist/components/input/dropdown.d.ts +0 -15
- package/dist/components/input/email.d.ts +0 -10
- package/dist/components/input/form.d.ts +0 -13
- package/dist/components/input/form_builder.d.ts +0 -15
- package/dist/components/input/index.d.ts +0 -14
- package/dist/components/input/input.d.ts +0 -26
- package/dist/components/input/input_list.d.ts +0 -9
- package/dist/components/input/password.d.ts +0 -11
- package/dist/components/input/search_input.d.ts +0 -21
- package/dist/components/input/search_input_list.d.ts +0 -21
- package/dist/components/input/select.d.ts +0 -25
- package/dist/components/input/select_vocabulary.d.ts +0 -15
- package/dist/components/input/textarea.d.ts +0 -15
- package/dist/components/input/upload.d.ts +0 -8
- package/dist/components/item.d.ts +0 -22
- package/dist/components/layout.d.ts +0 -9
- package/dist/components/login.d.ts +0 -10
- package/dist/components/modal.d.ts +0 -24
- package/dist/components/notallowed.d.ts +0 -1
- package/dist/components/notfound.d.ts +0 -1
- package/dist/components/pagination.d.ts +0 -8
- package/dist/components/panel/actions.d.ts +0 -1
- package/dist/components/panel/addons.d.ts +0 -1
- package/dist/components/panel/behaviors.d.ts +0 -1
- package/dist/components/panel/index.d.ts +0 -4
- package/dist/components/panel/items.d.ts +0 -1
- package/dist/components/panel/permissions.d.ts +0 -7
- package/dist/components/panel/permissions_prinperm.d.ts +0 -17
- package/dist/components/panel/permissions_prinrole.d.ts +0 -17
- package/dist/components/panel/permissions_roleperm.d.ts +0 -17
- package/dist/components/panel/properties.d.ts +0 -1
- package/dist/components/path.d.ts +0 -1
- package/dist/components/properties_view.d.ts +0 -3
- package/dist/components/search_labels.d.ts +0 -5
- package/dist/components/search_options_labels.d.ts +0 -9
- package/dist/components/search_vocabulary_labels.d.ts +0 -6
- package/dist/components/selected_items_actions.d.ts +0 -49
- package/dist/components/tabs.d.ts +0 -13
- package/dist/components/ui/delete.d.ts +0 -8
- package/dist/components/ui/icon.d.ts +0 -7
- package/dist/components/ui/index.d.ts +0 -6
- package/dist/components/ui/loading.d.ts +0 -6
- package/dist/components/ui/notification.d.ts +0 -7
- package/dist/components/ui/table.d.ts +0 -8
- package/dist/components/ui/tag.d.ts +0 -9
- package/dist/components/widgets/index.d.ts +0 -1
- package/dist/components/widgets/tags.d.ts +0 -13
- package/dist/contexts/index.d.ts +0 -57
- package/dist/forms/base.d.ts +0 -12
- package/dist/forms/required_fields.d.ts +0 -11
- package/dist/forms/users.d.ts +0 -13
- package/dist/hooks/useClickAway.d.ts +0 -2
- package/dist/hooks/useConfig.d.ts +0 -19
- package/dist/hooks/useCrudContext.d.ts +0 -21
- package/dist/hooks/useInput.d.ts +0 -11
- package/dist/hooks/useLocation.d.ts +0 -6
- package/dist/hooks/useMountedState.d.ts +0 -1
- package/dist/hooks/useRegistry.d.ts +0 -90
- package/dist/hooks/useRemoteField.d.ts +0 -2
- package/dist/hooks/useSetState.d.ts +0 -6
- package/dist/hooks/useVocabulary.d.ts +0 -8
- package/dist/lib/auth.d.ts +0 -26
- package/dist/lib/client.d.ts +0 -61
- package/dist/lib/helpers.d.ts +0 -16
- package/dist/lib/processResponse.d.ts +0 -9
- package/dist/lib/rest.d.ts +0 -16
- package/dist/lib/search.d.ts +0 -2
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/validators.d.ts +0 -12
- package/dist/locales/generic_messages.d.ts +0 -248
- package/dist/models/index.d.ts +0 -17
- package/dist/models/sharing.d.ts +0 -12
- package/dist/react-gmi.umd.js +0 -14783
- package/dist/react-gmi.umd.js.map +0 -1
- package/dist/reducers/guillotina.d.ts +0 -35
- package/dist/types/global.d.ts +0 -17
- package/dist/types/guillotina.d.ts +0 -280
- package/dist/views/application.d.ts +0 -13
- package/dist/views/base.d.ts +0 -5
- package/dist/views/container.d.ts +0 -1
- package/dist/views/folder.d.ts +0 -1
- package/dist/views/groups.d.ts +0 -3
- package/dist/views/item.d.ts +0 -1
- package/dist/views/users.d.ts +0 -3
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface Props {
|
|
3
|
-
name?: string;
|
|
4
|
-
icon?: JSX.Element;
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IndexSignature } from '../../types/global';
|
|
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: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLSelectElement>>;
|
|
25
|
-
export default Select;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="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: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLSelectElement>>;
|
|
15
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="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: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
15
|
-
export default Textarea;
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import 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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Auth } from '../lib/auth';
|
|
3
|
-
interface Props {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onLogout: () => void;
|
|
6
|
-
auth: Auth;
|
|
7
|
-
}
|
|
8
|
-
export declare function Layout({ children, onLogout, auth }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Auth } from '../lib/auth';
|
|
2
|
-
interface Props {
|
|
3
|
-
currentSchema: string;
|
|
4
|
-
setCurrentSchema: (schema: string) => void;
|
|
5
|
-
schemas: string[];
|
|
6
|
-
auth: Auth;
|
|
7
|
-
onLogin?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const Login: ({ currentSchema, setCurrentSchema, schemas, auth, onLogin, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ModalProps {
|
|
3
|
-
isActive: boolean;
|
|
4
|
-
setActive: (value: boolean) => void;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function Modal(props: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
interface ConfirmProps {
|
|
10
|
-
message?: React.ReactNode;
|
|
11
|
-
onCancel: () => void;
|
|
12
|
-
onConfirm: () => void;
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function Confirm({ message, onCancel, onConfirm, loading, }: ConfirmProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
interface PathTreeProps {
|
|
17
|
-
title: string;
|
|
18
|
-
defaultPath?: string;
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
onConfirm: (path: string, target: EventTarget) => void;
|
|
21
|
-
onCancel: () => void;
|
|
22
|
-
}
|
|
23
|
-
export declare function PathTree({ title, defaultPath, children, onConfirm, onCancel, }: PathTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function NotAllowed(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function NotFound(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function PanelActions(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function PanelAddons(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function PanelBehaviors(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function PanelItems(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function PanelPermissions(): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
-
interface AddPermissionProps {
|
|
3
|
-
refresh: (state: number) => void;
|
|
4
|
-
reset: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function AddPermission({ refresh, reset }: AddPermissionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
principals?: {
|
|
3
|
-
text: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}[];
|
|
6
|
-
permissions?: {
|
|
7
|
-
text: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
operations: {
|
|
11
|
-
text: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
refresh: (value: number) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function PermissionPrinperm({ principals, permissions, operations, refresh, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
principals?: {
|
|
3
|
-
text: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}[];
|
|
6
|
-
roles: {
|
|
7
|
-
text: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
operations: {
|
|
11
|
-
text: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
refresh: (value: number) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function PermissionPrinrole({ principals, roles, operations, refresh, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
roles: {
|
|
3
|
-
text: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}[];
|
|
6
|
-
permissions?: {
|
|
7
|
-
text: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
operations: {
|
|
11
|
-
text: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
refresh: (value: number) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function PermissionRoleperm({ roles, permissions, operations, refresh, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function PanelProperties(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Path(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SearchItem } from '../types/guillotina';
|
|
3
|
-
export declare const ItemsActionsCtx: import("react").Context<{
|
|
4
|
-
selected: {
|
|
5
|
-
all: boolean;
|
|
6
|
-
[key: string]: boolean;
|
|
7
|
-
};
|
|
8
|
-
onSelectOneItem?: ((item: SearchItem) => void) | undefined;
|
|
9
|
-
onSelectAllItems?: ((chedked: boolean) => void) | undefined;
|
|
10
|
-
onAction?: ((action: string) => void) | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Actions to apply after select some items
|
|
14
|
-
* Ex: Delete, Move, Copy...
|
|
15
|
-
*/
|
|
16
|
-
interface PropsItemsActionsProvider {
|
|
17
|
-
items: SearchItem[];
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
export declare function ItemsActionsProvider({ items, children, }: PropsItemsActionsProvider): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare const useItemsActions: () => {
|
|
22
|
-
onAction: (action: string) => void;
|
|
23
|
-
onSelectOneItem: (item: SearchItem) => void;
|
|
24
|
-
onSelectAllItems: (chedked: boolean) => void;
|
|
25
|
-
selected: {
|
|
26
|
-
[key: string]: boolean;
|
|
27
|
-
all: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Checkbox component without props that consume the ItemsActionsContext
|
|
32
|
-
* and it select/unselect all items of the page.
|
|
33
|
-
*/
|
|
34
|
-
export declare function AllItemsCheckbox({ dataTest }: {
|
|
35
|
-
dataTest?: string;
|
|
36
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
/**
|
|
38
|
-
* Checkbox component to select ONE item.
|
|
39
|
-
*/
|
|
40
|
-
interface PropsItemCheckbox {
|
|
41
|
-
item: SearchItem;
|
|
42
|
-
dataTest?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare function ItemCheckbox({ item, dataTest }: PropsItemCheckbox): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
/**
|
|
46
|
-
* Dropdown to choose some action to apply to the selected items.
|
|
47
|
-
*/
|
|
48
|
-
export declare function ItemsActionsDropdown(): import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IndexSignature } from '../types/global';
|
|
3
|
-
interface TabsPanelProps {
|
|
4
|
-
tabs: IndexSignature;
|
|
5
|
-
currentTab: string;
|
|
6
|
-
rightToolbar?: React.ReactNode;
|
|
7
|
-
fallback?: React.ComponentType<{
|
|
8
|
-
title: string;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
type TabsPanelPropsWithChildren<T = Record<string, unknown>> = TabsPanelProps & T;
|
|
12
|
-
export declare function TabsPanel<T extends Record<string, unknown> = Record<string, unknown>>({ tabs, currentTab, rightToolbar, fallback, ...restProps }: TabsPanelPropsWithChildren<T>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function Delete({ onClick, className, children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tags';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
items: string[];
|
|
3
|
-
available?: {
|
|
4
|
-
value: string;
|
|
5
|
-
text: string;
|
|
6
|
-
}[];
|
|
7
|
-
title: string;
|
|
8
|
-
noData: string;
|
|
9
|
-
onChange: (items: string[]) => void;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function TagsWidget({ items, available, title, noData, onChange, loading, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
package/dist/contexts/index.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Dispatch } from 'react';
|
|
2
|
-
import { GuillotinaClient } from '../lib/client.js';
|
|
3
|
-
import { Auth } from '../lib/auth.js';
|
|
4
|
-
import { IndexSignature } from '../types/global';
|
|
5
|
-
import { GuillotinaGlobalState, GuillotinaReducerActionTypes } from '../reducers/guillotina';
|
|
6
|
-
import { GuillotinaCommonObject } from '../types/guillotina.js';
|
|
7
|
-
import { IManageRegistry } from '../hooks/useRegistry.js';
|
|
8
|
-
export declare const AuthContext: import("react").Context<{}>;
|
|
9
|
-
export declare const ClientContext: import("react").Context<GuillotinaClient | null>;
|
|
10
|
-
interface PropsTraversal {
|
|
11
|
-
client: GuillotinaClient;
|
|
12
|
-
auth: Auth;
|
|
13
|
-
state: GuillotinaGlobalState;
|
|
14
|
-
dispatch: Dispatch<{
|
|
15
|
-
type: GuillotinaReducerActionTypes;
|
|
16
|
-
payload: IndexSignature;
|
|
17
|
-
}>;
|
|
18
|
-
registry: IManageRegistry;
|
|
19
|
-
flash?: (action: string, result: string) => void;
|
|
20
|
-
url: string;
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export declare class Traversal {
|
|
24
|
-
private dispatch;
|
|
25
|
-
state: GuillotinaGlobalState;
|
|
26
|
-
client: GuillotinaClient;
|
|
27
|
-
registry: IManageRegistry;
|
|
28
|
-
url: string;
|
|
29
|
-
auth: Auth;
|
|
30
|
-
constructor({ flash, ...props }: PropsTraversal);
|
|
31
|
-
refresh({ transparent }?: {
|
|
32
|
-
transparent?: boolean | undefined;
|
|
33
|
-
}): void;
|
|
34
|
-
get path(): string;
|
|
35
|
-
get pathPrefix(): string;
|
|
36
|
-
get context(): GuillotinaCommonObject;
|
|
37
|
-
get containerPath(): string;
|
|
38
|
-
apply(data: IndexSignature): void;
|
|
39
|
-
flash(message: string, type: string): void;
|
|
40
|
-
clearFlash(): void;
|
|
41
|
-
doAction(action: string, params?: {}): void;
|
|
42
|
-
cancelAction(): void;
|
|
43
|
-
hasPerm(permission: string): boolean;
|
|
44
|
-
filterTabs(tabs: IndexSignature, tabsPermissions: IndexSignature): IndexSignature<any>;
|
|
45
|
-
}
|
|
46
|
-
export declare const TraversalContext: import("react").Context<Traversal | null>;
|
|
47
|
-
export declare function TraversalProvider({ children, ...props }: PropsTraversal & {
|
|
48
|
-
children: React.ReactNode;
|
|
49
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
export declare function useTraversal(): Traversal;
|
|
51
|
-
interface PropsClient {
|
|
52
|
-
children: React.ReactNode;
|
|
53
|
-
client: GuillotinaClient;
|
|
54
|
-
}
|
|
55
|
-
export declare function ClientProvider({ children, client }: PropsClient): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export declare function useGuillotinaClient(): GuillotinaClient;
|
|
57
|
-
export {};
|
package/dist/forms/base.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface BaseFormProps {
|
|
2
|
-
onSubmit: (data: {
|
|
3
|
-
title: string;
|
|
4
|
-
id: string;
|
|
5
|
-
}) => void;
|
|
6
|
-
actionName?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
dataTest?: string;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
type: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function BaseForm({ onSubmit, actionName, title, dataTest, loading, }: BaseFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IndexSignature } from '../types/global';
|
|
2
|
-
interface Props {
|
|
3
|
-
onSubmit: (data: IndexSignature) => void;
|
|
4
|
-
actionName?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
dataTest?: string;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
type: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function RequiredFieldsForm({ loading, onSubmit, actionName, title, dataTest, type, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
package/dist/forms/users.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IndexSignature } from '../types/global';
|
|
3
|
-
interface Props {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onSubmit: (data: IndexSignature) => void;
|
|
6
|
-
actionName: string;
|
|
7
|
-
formData?: IndexSignature;
|
|
8
|
-
exclude?: string[];
|
|
9
|
-
remotes?: IndexSignature;
|
|
10
|
-
submitButton?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const UserForm: ({ children, actionName, onSubmit, formData, exclude, remotes, submitButton, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GuillotinaSchemaProperty } from '../types/guillotina';
|
|
2
|
-
export declare const Permissions: string[];
|
|
3
|
-
export interface IConfig {
|
|
4
|
-
DisabledTypes: string[];
|
|
5
|
-
PageSize: number;
|
|
6
|
-
DelayActions: number;
|
|
7
|
-
Permissions: string[];
|
|
8
|
-
SearchEngine: string;
|
|
9
|
-
SizeImages?: string[];
|
|
10
|
-
icons?: {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
};
|
|
13
|
-
properties_default?: string[];
|
|
14
|
-
properties_ignore_fields?: string[];
|
|
15
|
-
fieldHaveDeleteButton: (schema: GuillotinaSchemaProperty) => boolean;
|
|
16
|
-
flash?: (message: string, type: string) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const defaultConfig: IConfig;
|
|
19
|
-
export declare function useConfig(cfg?: {}): IConfig;
|