@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,21 +0,0 @@
|
|
|
1
|
-
import { Traversal } from '../contexts';
|
|
2
|
-
interface State<T> {
|
|
3
|
-
loading?: boolean;
|
|
4
|
-
isError?: boolean;
|
|
5
|
-
errorMessage?: string;
|
|
6
|
-
result?: T;
|
|
7
|
-
response?: unknown;
|
|
8
|
-
}
|
|
9
|
-
export declare function useCrudContext<T>(): {
|
|
10
|
-
Ctx: Traversal;
|
|
11
|
-
patch: (data?: {}, endpoint?: string | undefined, body?: boolean) => Promise<State<T>>;
|
|
12
|
-
del: (data?: {}, endpoint?: string | undefined, body?: boolean) => Promise<State<T>>;
|
|
13
|
-
post: (data?: {}, endpoint?: string | undefined, body?: boolean) => Promise<State<T>>;
|
|
14
|
-
get: (endpoint?: string | undefined) => Promise<State<T>>;
|
|
15
|
-
loading?: boolean | undefined;
|
|
16
|
-
isError?: boolean | undefined;
|
|
17
|
-
errorMessage?: string | undefined;
|
|
18
|
-
result?: T | undefined;
|
|
19
|
-
response?: unknown;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
package/dist/hooks/useInput.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent } from 'react';
|
|
2
|
-
declare const useInput: (onChange: (value: string) => void | undefined, value: string, validators: ((value: string) => boolean)[]) => {
|
|
3
|
-
onChange: (ev: ChangeEvent<HTMLInputElement>) => void;
|
|
4
|
-
onFocus: () => void;
|
|
5
|
-
onBlur: () => void;
|
|
6
|
-
state: {
|
|
7
|
-
hasError: boolean;
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default useInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useMountedState(): () => boolean;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { FolderCtx } from '../views/folder';
|
|
2
|
-
import { BaseFormProps } from '../forms/base';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { GuillotinaCommonObject, ItemColumn, RegistrySchema, SearchOrCommonObject } from '../types/guillotina';
|
|
5
|
-
import { MessageDescriptor } from 'react-intl';
|
|
6
|
-
export interface RegistrySortValue {
|
|
7
|
-
direction: 'asc' | 'des';
|
|
8
|
-
key: string;
|
|
9
|
-
}
|
|
10
|
-
export interface RegistryProperties {
|
|
11
|
-
Buttons: React.ReactElement;
|
|
12
|
-
Panels: React.ReactElement;
|
|
13
|
-
default: string[];
|
|
14
|
-
ignoreField: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface IRegistry {
|
|
17
|
-
paths: {
|
|
18
|
-
[key: string]: React.FC;
|
|
19
|
-
};
|
|
20
|
-
views: {
|
|
21
|
-
[key: string]: React.ComponentType<any>;
|
|
22
|
-
};
|
|
23
|
-
actions: {
|
|
24
|
-
[key: string]: (props: any) => JSX.Element;
|
|
25
|
-
};
|
|
26
|
-
forms: {
|
|
27
|
-
[key: string]: (props: any) => JSX.Element;
|
|
28
|
-
};
|
|
29
|
-
behaviors: {
|
|
30
|
-
[key: string]: (props: any | undefined) => JSX.Element | null;
|
|
31
|
-
};
|
|
32
|
-
itemsColumn: {
|
|
33
|
-
[key: string]: <T extends SearchOrCommonObject = SearchOrCommonObject>() => ItemColumn<T>[];
|
|
34
|
-
};
|
|
35
|
-
schemas: {
|
|
36
|
-
[key: string]: RegistrySchema;
|
|
37
|
-
};
|
|
38
|
-
properties: {
|
|
39
|
-
[key: string]: RegistryProperties;
|
|
40
|
-
};
|
|
41
|
-
components: {
|
|
42
|
-
[key: string]: (props: any) => React.ReactNode | null | undefined;
|
|
43
|
-
};
|
|
44
|
-
searchEngineQueryParamsFunction: {
|
|
45
|
-
[key: string]: string;
|
|
46
|
-
};
|
|
47
|
-
fieldsToFilter: {
|
|
48
|
-
[key: string]: string[];
|
|
49
|
-
};
|
|
50
|
-
parseSearchQueryParamFunction: {
|
|
51
|
-
[key: string]: (query: string, type: string) => string;
|
|
52
|
-
};
|
|
53
|
-
defaultSortValue: {
|
|
54
|
-
[key: string]: RegistrySortValue;
|
|
55
|
-
};
|
|
56
|
-
actionsList: {
|
|
57
|
-
[key: string]: (multiple: boolean) => {
|
|
58
|
-
[key: string]: {
|
|
59
|
-
text: MessageDescriptor;
|
|
60
|
-
perms: string[];
|
|
61
|
-
action: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export interface IManageRegistry {
|
|
67
|
-
registry: IRegistry;
|
|
68
|
-
getPathComponent: (context: GuillotinaCommonObject | undefined, path: string, fallback?: React.FC) => React.ComponentType<any>;
|
|
69
|
-
getComponent: (name: string) => React.ComponentType<any>;
|
|
70
|
-
getView: (name: string) => React.ComponentType<any>;
|
|
71
|
-
getForm: (type: string, fallback?: React.FC) => React.FC<BaseFormProps>;
|
|
72
|
-
getAction: (type: string, fallback?: React.FC) => React.FC;
|
|
73
|
-
getBehavior: (type: string, fallback?: React.FC) => React.FC<any>;
|
|
74
|
-
getProperties: (type: string) => RegistryProperties;
|
|
75
|
-
getItemsColumn: <T extends SearchOrCommonObject = SearchOrCommonObject>(type: string) => ItemColumn<T>[] | undefined;
|
|
76
|
-
getSchemas: (type: string) => RegistrySchema;
|
|
77
|
-
getFieldsToFilter: (type: string, fallback?: string[]) => string[];
|
|
78
|
-
getParsedSearchQueryParam: (query: string, type: string) => string;
|
|
79
|
-
getDefaultSortValue: (type: string, fallback?: RegistrySortValue) => RegistrySortValue;
|
|
80
|
-
getSearchEngineQueryParamsFunction: (type: string) => string;
|
|
81
|
-
getActionsList: (type: string, multiple: boolean) => {
|
|
82
|
-
[key: string]: {
|
|
83
|
-
text: MessageDescriptor;
|
|
84
|
-
perms: string[];
|
|
85
|
-
action: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
export declare const defaultComponent: (context: GuillotinaCommonObject) => typeof FolderCtx;
|
|
90
|
-
export declare function useRegistry(data: Partial<IRegistry>): IManageRegistry;
|
package/dist/lib/auth.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare class Auth {
|
|
2
|
-
maxRetry: number;
|
|
3
|
-
retryRefresh: number;
|
|
4
|
-
events: {};
|
|
5
|
-
url: string;
|
|
6
|
-
base_url: string;
|
|
7
|
-
errors?: string;
|
|
8
|
-
constructor(url: string);
|
|
9
|
-
getUrl(endpoint: string): string;
|
|
10
|
-
setAccount(account: string): void;
|
|
11
|
-
login(username: string, password: string): Promise<boolean>;
|
|
12
|
-
get isLogged(): boolean;
|
|
13
|
-
get username(): any;
|
|
14
|
-
storeAuth(data: {
|
|
15
|
-
token: string;
|
|
16
|
-
exp: number;
|
|
17
|
-
}): void;
|
|
18
|
-
cleanAuth(): void;
|
|
19
|
-
logout(): void;
|
|
20
|
-
refreshToken(): Promise<any>;
|
|
21
|
-
willExpire(expiration: string): boolean;
|
|
22
|
-
isExpired(expiration: string): boolean;
|
|
23
|
-
_getToken(): (string | null)[];
|
|
24
|
-
getToken(): string | null;
|
|
25
|
-
getHeaders(): HeadersInit;
|
|
26
|
-
}
|
package/dist/lib/client.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { RestClient } from './rest';
|
|
2
|
-
import { IndexSignature, LightFile } from '../types/global';
|
|
3
|
-
import { Auth } from './auth';
|
|
4
|
-
import { GuillotinaCommonObject, GuillotinaGroup, GuillotinaUser, ItemColumn, ReturnSearchCompatible, SearchItem } from '../types/guillotina';
|
|
5
|
-
export declare class GuillotinaClient {
|
|
6
|
-
rest: RestClient;
|
|
7
|
-
pathContainsContainer: boolean;
|
|
8
|
-
constructor(rest: RestClient, pathContainsContainer: boolean);
|
|
9
|
-
getContainerFromPath(path: string): string;
|
|
10
|
-
clearContainerFromPath(path: string): string;
|
|
11
|
-
getContext(path: string): Promise<Response>;
|
|
12
|
-
get(path: string): Promise<Response>;
|
|
13
|
-
getQueryParamsSearchFunction(name: string): ({ start, pageSize, withDepth, }: {
|
|
14
|
-
start?: number | undefined;
|
|
15
|
-
pageSize?: number | undefined;
|
|
16
|
-
path?: string | undefined;
|
|
17
|
-
withDepth?: boolean | undefined;
|
|
18
|
-
}) => string[][];
|
|
19
|
-
getQueryParamsPostresql({ start, pageSize, withDepth, }: {
|
|
20
|
-
start?: number;
|
|
21
|
-
pageSize?: number;
|
|
22
|
-
path?: string;
|
|
23
|
-
withDepth?: boolean;
|
|
24
|
-
}): string[][];
|
|
25
|
-
getQueryParamsElasticsearch({ start, pageSize, path, withDepth, }: {
|
|
26
|
-
start?: number;
|
|
27
|
-
pageSize?: number;
|
|
28
|
-
path: string;
|
|
29
|
-
withDepth?: boolean;
|
|
30
|
-
}): string[][];
|
|
31
|
-
getItemsColumn<T extends SearchItem | GuillotinaCommonObject>(): ItemColumn<T>[];
|
|
32
|
-
applyCompat<T>(data: {
|
|
33
|
-
items: T[];
|
|
34
|
-
items_total: number;
|
|
35
|
-
}): ReturnSearchCompatible<T>;
|
|
36
|
-
search<T>(path: string, params: string | IndexSignature<string>, container?: boolean, prepare?: boolean, signal?: AbortSignal): Promise<ReturnSearchCompatible<T>>;
|
|
37
|
-
canido(path: string, permissions: string | string[]): Promise<Response>;
|
|
38
|
-
createObject(path: string, data: unknown): Promise<Response>;
|
|
39
|
-
cleanPath(path: string): string;
|
|
40
|
-
delete(path: string, data: unknown): Promise<Response>;
|
|
41
|
-
create(path: string, data: unknown): Promise<Response>;
|
|
42
|
-
post(path: string, data: unknown): Promise<Response>;
|
|
43
|
-
patch(path: string, data: unknown): Promise<Response>;
|
|
44
|
-
upload(path: string, file: LightFile): Promise<Response>;
|
|
45
|
-
download(path: string): Promise<Response>;
|
|
46
|
-
getTypeSchema(path: string, name: string): Promise<any>;
|
|
47
|
-
getAddons(path: string): Promise<Response>;
|
|
48
|
-
installAddon(path: string, key: string): Promise<Response>;
|
|
49
|
-
removeAddon(path: string, key: string): Promise<Response>;
|
|
50
|
-
getGroups(path: string): Promise<Response>;
|
|
51
|
-
getUsers(path: string): Promise<Response>;
|
|
52
|
-
getPrincipals(path: string): Promise<{
|
|
53
|
-
groups: GuillotinaGroup[];
|
|
54
|
-
users: GuillotinaUser[];
|
|
55
|
-
}>;
|
|
56
|
-
getRoles(path: string): Promise<Response>;
|
|
57
|
-
getAllPermissions(path: string): Promise<string[]>;
|
|
58
|
-
getTypes(path: string): Promise<any>;
|
|
59
|
-
}
|
|
60
|
-
export declare function getClient(url: string, container: string, auth: Auth): GuillotinaClient;
|
|
61
|
-
export declare const lightFileReader: (file: File) => Promise<LightFile>;
|
package/dist/lib/helpers.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MessageDescriptor } from 'react-intl';
|
|
2
|
-
import { IndexSignature } from '../types/global';
|
|
3
|
-
export declare const classnames: (classNames: (string | boolean)[]) => string;
|
|
4
|
-
export declare const noop: () => void;
|
|
5
|
-
export declare const generateUID: (prefix?: string) => string;
|
|
6
|
-
export declare const toQueryString: (params: IndexSignature<string>) => string;
|
|
7
|
-
export declare function base64ToArrayBuffer(base64: string): Uint8Array;
|
|
8
|
-
export declare function stringToSlug(str: string): string;
|
|
9
|
-
export declare function sleep(ms: number): Promise<void>;
|
|
10
|
-
export declare const getActionsObject: (multiple: boolean) => {
|
|
11
|
-
[key: string]: {
|
|
12
|
-
text: MessageDescriptor;
|
|
13
|
-
perms: string[];
|
|
14
|
-
action: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
package/dist/lib/rest.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LightFile } from '../types/global';
|
|
2
|
-
import { Auth } from './auth';
|
|
3
|
-
export declare class RestClient {
|
|
4
|
-
url: string;
|
|
5
|
-
container: string;
|
|
6
|
-
auth: Auth;
|
|
7
|
-
constructor(url: string, container: string, auth: Auth);
|
|
8
|
-
request(path: string, data?: RequestInit, headers?: HeadersInit, signal?: AbortSignal): Promise<Response>;
|
|
9
|
-
getHeaders(): HeadersInit;
|
|
10
|
-
post(path: string, data: unknown): Promise<Response>;
|
|
11
|
-
get(path: string, signal?: AbortSignal): Promise<Response>;
|
|
12
|
-
put(path: string, data: unknown): Promise<Response>;
|
|
13
|
-
patch(path: string, data: unknown): Promise<Response>;
|
|
14
|
-
upload(path: string, data: LightFile): Promise<Response>;
|
|
15
|
-
delete(path: string, data: unknown): Promise<Response>;
|
|
16
|
-
}
|
package/dist/lib/search.d.ts
DELETED
package/dist/lib/utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IndexSignature } from '../types/global';
|
|
2
|
-
export declare const formatDate: (str: string) => string;
|
|
3
|
-
export declare const get: <T>(obj: IndexSignature, path: string | string[], defValue: T) => T;
|
|
4
|
-
export declare function getNewId(id?: string): string;
|
|
5
|
-
export declare function debounce<T extends unknown[], U>(callback: (...args: T) => PromiseLike<U> | U, wait: number): (...args: T) => Promise<U>;
|
package/dist/lib/validators.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const REGEX_EMAIL: RegExp;
|
|
2
|
-
export declare const REGEX_URL: RegExp;
|
|
3
|
-
export declare const REGEX_HEX_COLOR: RegExp;
|
|
4
|
-
export declare const REGEX_NUMBER: RegExp;
|
|
5
|
-
export declare const isEmpty: (value?: string) => boolean;
|
|
6
|
-
export declare const maxLength: (value?: string, limit?: number) => boolean;
|
|
7
|
-
export declare const minLength: (value?: string, limit?: number) => boolean;
|
|
8
|
-
export declare const isEmail: (value?: string) => boolean;
|
|
9
|
-
export declare const isURL: (value?: string) => boolean;
|
|
10
|
-
export declare const isHexColor: (value?: string) => boolean;
|
|
11
|
-
export declare const isNumber: (value?: string) => boolean;
|
|
12
|
-
export declare const notEmpty: (value: string) => boolean;
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
export declare const genericMessages: {
|
|
2
|
-
loading: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
};
|
|
6
|
-
remove: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
install: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
delete: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
move_to: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
copy_to: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
};
|
|
26
|
-
behaviors: {
|
|
27
|
-
id: string;
|
|
28
|
-
defaultMessage: string;
|
|
29
|
-
};
|
|
30
|
-
static: {
|
|
31
|
-
id: string;
|
|
32
|
-
defaultMessage: string;
|
|
33
|
-
};
|
|
34
|
-
disable: {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultMessage: string;
|
|
37
|
-
};
|
|
38
|
-
enable: {
|
|
39
|
-
id: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
|
-
};
|
|
42
|
-
enabled: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
};
|
|
46
|
-
available: {
|
|
47
|
-
id: string;
|
|
48
|
-
defaultMessage: string;
|
|
49
|
-
};
|
|
50
|
-
invalid_form_data: {
|
|
51
|
-
id: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
|
-
};
|
|
54
|
-
invalid_form: {
|
|
55
|
-
id: string;
|
|
56
|
-
defaultMessage: string;
|
|
57
|
-
};
|
|
58
|
-
select_principal: {
|
|
59
|
-
id: string;
|
|
60
|
-
defaultMessage: string;
|
|
61
|
-
};
|
|
62
|
-
select_role: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
};
|
|
66
|
-
select_permissions: {
|
|
67
|
-
id: string;
|
|
68
|
-
defaultMessage: string;
|
|
69
|
-
};
|
|
70
|
-
operation: {
|
|
71
|
-
id: string;
|
|
72
|
-
defaultMessage: string;
|
|
73
|
-
};
|
|
74
|
-
save: {
|
|
75
|
-
id: string;
|
|
76
|
-
defaultMessage: string;
|
|
77
|
-
};
|
|
78
|
-
choose: {
|
|
79
|
-
id: string;
|
|
80
|
-
defaultMessage: string;
|
|
81
|
-
};
|
|
82
|
-
property: {
|
|
83
|
-
id: string;
|
|
84
|
-
defaultMessage: string;
|
|
85
|
-
};
|
|
86
|
-
value: {
|
|
87
|
-
id: string;
|
|
88
|
-
defaultMessage: string;
|
|
89
|
-
};
|
|
90
|
-
create: {
|
|
91
|
-
id: string;
|
|
92
|
-
defaultMessage: string;
|
|
93
|
-
};
|
|
94
|
-
upload: {
|
|
95
|
-
id: string;
|
|
96
|
-
defaultMessage: string;
|
|
97
|
-
};
|
|
98
|
-
image: {
|
|
99
|
-
id: string;
|
|
100
|
-
defaultMessage: string;
|
|
101
|
-
};
|
|
102
|
-
error_provide_key_name: {
|
|
103
|
-
id: string;
|
|
104
|
-
defaultMessage: string;
|
|
105
|
-
};
|
|
106
|
-
mandatory_field: {
|
|
107
|
-
id: string;
|
|
108
|
-
defaultMessage: string;
|
|
109
|
-
};
|
|
110
|
-
error_in_field: {
|
|
111
|
-
id: string;
|
|
112
|
-
defaultMessage: string;
|
|
113
|
-
};
|
|
114
|
-
field_updated: {
|
|
115
|
-
id: string;
|
|
116
|
-
defaultMessage: string;
|
|
117
|
-
};
|
|
118
|
-
field_deleted: {
|
|
119
|
-
id: string;
|
|
120
|
-
defaultMessage: string;
|
|
121
|
-
};
|
|
122
|
-
can_not_delete_field: {
|
|
123
|
-
id: string;
|
|
124
|
-
defaultMessage: string;
|
|
125
|
-
};
|
|
126
|
-
cancel: {
|
|
127
|
-
id: string;
|
|
128
|
-
defaultMessage: string;
|
|
129
|
-
};
|
|
130
|
-
open: {
|
|
131
|
-
id: string;
|
|
132
|
-
defaultMessage: string;
|
|
133
|
-
};
|
|
134
|
-
download: {
|
|
135
|
-
id: string;
|
|
136
|
-
defaultMessage: string;
|
|
137
|
-
};
|
|
138
|
-
search: {
|
|
139
|
-
id: string;
|
|
140
|
-
defaultMessage: string;
|
|
141
|
-
};
|
|
142
|
-
no_results: {
|
|
143
|
-
id: string;
|
|
144
|
-
defaultMessage: string;
|
|
145
|
-
};
|
|
146
|
-
load_more: {
|
|
147
|
-
id: string;
|
|
148
|
-
defaultMessage: string;
|
|
149
|
-
};
|
|
150
|
-
add_type: {
|
|
151
|
-
id: string;
|
|
152
|
-
defaultMessage: string;
|
|
153
|
-
};
|
|
154
|
-
confirm: {
|
|
155
|
-
id: string;
|
|
156
|
-
defaultMessage: string;
|
|
157
|
-
};
|
|
158
|
-
field_is_required: {
|
|
159
|
-
id: string;
|
|
160
|
-
defaultMessage: string;
|
|
161
|
-
};
|
|
162
|
-
title: {
|
|
163
|
-
id: string;
|
|
164
|
-
defaultMessage: string;
|
|
165
|
-
};
|
|
166
|
-
add: {
|
|
167
|
-
id: string;
|
|
168
|
-
defaultMessage: string;
|
|
169
|
-
};
|
|
170
|
-
not_implemented: {
|
|
171
|
-
id: string;
|
|
172
|
-
defaultMessage: string;
|
|
173
|
-
};
|
|
174
|
-
failed_to_update: {
|
|
175
|
-
id: string;
|
|
176
|
-
defaultMessage: string;
|
|
177
|
-
};
|
|
178
|
-
add_user: {
|
|
179
|
-
id: string;
|
|
180
|
-
defaultMessage: string;
|
|
181
|
-
};
|
|
182
|
-
role: {
|
|
183
|
-
id: string;
|
|
184
|
-
defaultMessage: string;
|
|
185
|
-
};
|
|
186
|
-
setting: {
|
|
187
|
-
id: string;
|
|
188
|
-
defaultMessage: string;
|
|
189
|
-
};
|
|
190
|
-
permission: {
|
|
191
|
-
id: string;
|
|
192
|
-
defaultMessage: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
export declare const genericFileMessages: {
|
|
196
|
-
error_file_key_name: {
|
|
197
|
-
id: string;
|
|
198
|
-
defaultMessage: string;
|
|
199
|
-
};
|
|
200
|
-
error_upload_file: {
|
|
201
|
-
id: string;
|
|
202
|
-
defaultMessage: string;
|
|
203
|
-
};
|
|
204
|
-
error_upload_file_size: {
|
|
205
|
-
id: string;
|
|
206
|
-
defaultMessage: string;
|
|
207
|
-
};
|
|
208
|
-
image_uploaded: {
|
|
209
|
-
id: string;
|
|
210
|
-
defaultMessage: string;
|
|
211
|
-
};
|
|
212
|
-
file_uploaded: {
|
|
213
|
-
id: string;
|
|
214
|
-
defaultMessage: string;
|
|
215
|
-
};
|
|
216
|
-
failed_delete_file: {
|
|
217
|
-
id: string;
|
|
218
|
-
defaultMessage: string;
|
|
219
|
-
};
|
|
220
|
-
image_deleted: {
|
|
221
|
-
id: string;
|
|
222
|
-
defaultMessage: string;
|
|
223
|
-
};
|
|
224
|
-
confirm_message_delete_file: {
|
|
225
|
-
id: string;
|
|
226
|
-
defaultMessage: string;
|
|
227
|
-
};
|
|
228
|
-
confirm_message_delete_image: {
|
|
229
|
-
id: string;
|
|
230
|
-
defaultMessage: string;
|
|
231
|
-
};
|
|
232
|
-
no_images_uploaded: {
|
|
233
|
-
id: string;
|
|
234
|
-
defaultMessage: string;
|
|
235
|
-
};
|
|
236
|
-
no_files_uploaded: {
|
|
237
|
-
id: string;
|
|
238
|
-
defaultMessage: string;
|
|
239
|
-
};
|
|
240
|
-
upload_an_image: {
|
|
241
|
-
id: string;
|
|
242
|
-
defaultMessage: string;
|
|
243
|
-
};
|
|
244
|
-
upload_a_file: {
|
|
245
|
-
id: string;
|
|
246
|
-
defaultMessage: string;
|
|
247
|
-
};
|
|
248
|
-
};
|
package/dist/models/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
|
|
2
|
-
export * from './sharing';
|
|
3
|
-
export declare class ItemModel<T extends SearchItem | GuillotinaCommonObject = SearchItem | GuillotinaCommonObject> {
|
|
4
|
-
item: T;
|
|
5
|
-
url: string;
|
|
6
|
-
constructor(item: T, url?: string);
|
|
7
|
-
get path(): string;
|
|
8
|
-
get name(): string;
|
|
9
|
-
get icon(): string;
|
|
10
|
-
get fullPath(): string;
|
|
11
|
-
get id(): string;
|
|
12
|
-
get uid(): string;
|
|
13
|
-
get type(): string;
|
|
14
|
-
get title(): string;
|
|
15
|
-
get created(): string;
|
|
16
|
-
get updated(): string;
|
|
17
|
-
}
|
package/dist/models/sharing.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GuillotinaSharing, GuillotinaSharingInheritItem, GuillotinaSharingMap } from '../types/guillotina';
|
|
2
|
-
export declare class Sharing {
|
|
3
|
-
local: GuillotinaSharingMap;
|
|
4
|
-
inherit: GuillotinaSharingInheritItem[];
|
|
5
|
-
constructor(element: GuillotinaSharing | undefined);
|
|
6
|
-
get roles(): string[];
|
|
7
|
-
getRole(role: string): import("../types/global").IndexSignature<string>;
|
|
8
|
-
get principals(): string[];
|
|
9
|
-
getPrincipals(principal: string): import("../types/global").IndexSignature<string>;
|
|
10
|
-
get prinrole(): string[];
|
|
11
|
-
getPrinroles(role: string): import("../types/global").IndexSignature<string>;
|
|
12
|
-
}
|