@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
package/dist/index.d.ts
CHANGED
|
@@ -1,1823 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Dispatch } from 'react';
|
|
4
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
5
|
-
import { InputHTMLAttributes } from 'react';
|
|
6
|
-
import { JSX } from 'react/jsx-runtime';
|
|
7
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime.js';
|
|
8
|
-
import { MessageDescriptor } from 'react-intl';
|
|
9
|
-
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
10
|
-
import { ReactElement } from 'react';
|
|
11
|
-
import { ReactPortal } from 'react';
|
|
12
|
-
import { RefAttributes } from 'react';
|
|
13
|
-
|
|
14
|
-
export declare function AddItem(props: Props): JSX.Element;
|
|
15
|
-
|
|
16
|
-
export declare interface AddonAvailable {
|
|
17
|
-
id: string;
|
|
18
|
-
title: string;
|
|
19
|
-
dependencies: any[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare interface Addons {
|
|
23
|
-
available: AddonAvailable[];
|
|
24
|
-
installed: string[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export declare function AddPermission({ refresh, reset }: AddPermissionProps): JSX.Element;
|
|
28
|
-
|
|
29
|
-
declare interface AddPermissionProps {
|
|
30
|
-
refresh: (state: number) => void;
|
|
31
|
-
reset: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Checkbox component without props that consume the ItemsActionsContext
|
|
36
|
-
* and it select/unselect all items of the page.
|
|
37
|
-
*/
|
|
38
|
-
export declare function AllItemsCheckbox({ dataTest }: {
|
|
39
|
-
dataTest?: string;
|
|
40
|
-
}): JSX.Element;
|
|
41
|
-
|
|
42
|
-
export declare interface AllPermissions {
|
|
43
|
-
[key: string]: AllPermissionsItem;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export declare interface AllPermissionsItem {
|
|
47
|
-
prinperm?: PrimPerm[];
|
|
48
|
-
prinrole?: Prinrole[];
|
|
49
|
-
roleperm?: Roleperm[];
|
|
50
|
-
perminhe?: Perminhe[];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export declare function ApplicationCtx(): JSX.Element;
|
|
54
|
-
|
|
55
|
-
export declare class Auth {
|
|
56
|
-
maxRetry: number;
|
|
57
|
-
retryRefresh: number;
|
|
58
|
-
events: {};
|
|
59
|
-
url: string;
|
|
60
|
-
base_url: string;
|
|
61
|
-
errors?: string;
|
|
62
|
-
constructor(url: string);
|
|
63
|
-
getUrl(endpoint: string): string;
|
|
64
|
-
setAccount(account: string): void;
|
|
65
|
-
login(username: string, password: string): Promise<boolean>;
|
|
66
|
-
get isLogged(): boolean;
|
|
67
|
-
get username(): any;
|
|
68
|
-
storeAuth(data: {
|
|
69
|
-
token: string;
|
|
70
|
-
exp: number;
|
|
71
|
-
}): void;
|
|
72
|
-
cleanAuth(): void;
|
|
73
|
-
logout(): void;
|
|
74
|
-
refreshToken(): Promise<any>;
|
|
75
|
-
willExpire(expiration: string): boolean;
|
|
76
|
-
isExpired(expiration: string): boolean;
|
|
77
|
-
_getToken(): (string | null)[];
|
|
78
|
-
getToken(): string | null;
|
|
79
|
-
getHeaders(): HeadersInit;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export declare const AuthContext: Context< {}>;
|
|
83
|
-
|
|
84
|
-
export declare function base64ToArrayBuffer(base64: string): Uint8Array<ArrayBuffer>;
|
|
85
|
-
|
|
86
|
-
export declare function BaseForm({ onSubmit, actionName, title, dataTest, loading, }: BaseFormProps): JSX.Element;
|
|
87
|
-
|
|
88
|
-
export declare interface BaseFormProps {
|
|
89
|
-
onSubmit: (data: {
|
|
90
|
-
title: string;
|
|
91
|
-
id: string;
|
|
92
|
-
}) => void;
|
|
93
|
-
actionName?: string;
|
|
94
|
-
title?: string;
|
|
95
|
-
dataTest?: string;
|
|
96
|
-
loading?: boolean;
|
|
97
|
-
type: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export declare function BehaviorNotImplemented(): JSX.Element;
|
|
101
|
-
|
|
102
|
-
export declare function BehaviorsView({ context, schema }: Props_34): JSX.Element;
|
|
103
|
-
|
|
104
|
-
export declare function buildQs(parsedQuery: string[][]): string;
|
|
105
|
-
|
|
106
|
-
export declare const Button: ({ children, className, onClick, type, loading, disabled, dataTest, }: Props_3) => JSX.Element;
|
|
107
|
-
|
|
108
|
-
export declare const Checkbox: ({ id, className, classNameInput, loading, disabled, indeterminate, checked, children, placeholder, onChange, dataTest, }: Props_4) => JSX.Element;
|
|
109
|
-
|
|
110
|
-
export declare const classnames: (classNames: (string | boolean)[]) => string;
|
|
111
|
-
|
|
112
|
-
export declare const ClientContext: Context<GuillotinaClient | null>;
|
|
113
|
-
|
|
114
|
-
export declare function ClientProvider({ children, client }: PropsClient): JSX_2.Element;
|
|
115
|
-
|
|
116
|
-
export declare function Confirm({ message, onCancel, onConfirm, loading, }: ConfirmProps): JSX.Element;
|
|
117
|
-
|
|
118
|
-
declare interface ConfirmProps {
|
|
119
|
-
message?: React.ReactNode;
|
|
120
|
-
onCancel: () => void;
|
|
121
|
-
onConfirm: () => void;
|
|
122
|
-
loading?: boolean;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export declare function ContainerCtx(): JSX.Element;
|
|
126
|
-
|
|
127
|
-
export declare function ContextToolbar({ AddButton }: Props_35): JSX.Element;
|
|
128
|
-
|
|
129
|
-
export declare function CreateButton({ types }: CreateButtonProps): JSX.Element | null;
|
|
130
|
-
|
|
131
|
-
declare interface CreateButtonProps {
|
|
132
|
-
types: string[];
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export declare function CreateContainer(): JSX.Element;
|
|
136
|
-
|
|
137
|
-
export declare function DatabaseCtx(): JSX.Element;
|
|
138
|
-
|
|
139
|
-
export declare function debounce<T extends unknown[], U>(callback: (...args: T) => PromiseLike<U> | U, wait: number): (...args: T) => Promise<U>;
|
|
140
|
-
|
|
141
|
-
export declare const defaultComponent: (context: GuillotinaCommonObject) => typeof FolderCtx;
|
|
142
|
-
|
|
143
|
-
export declare const defaultConfig: IConfig;
|
|
144
|
-
|
|
145
|
-
export declare interface Definitions {
|
|
146
|
-
[key: string]: {
|
|
147
|
-
type: string;
|
|
148
|
-
properties: GuillotinaSchemaProperties;
|
|
149
|
-
required: string[];
|
|
150
|
-
title: string;
|
|
151
|
-
description: string;
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export declare function Delete({ onClick, className, children }: Props_30): JSX.Element;
|
|
156
|
-
|
|
157
|
-
export declare const DownloadField: ({ value }: DownloadFieldProps) => JSX.Element;
|
|
158
|
-
|
|
159
|
-
declare interface DownloadFieldProps {
|
|
160
|
-
value: {
|
|
161
|
-
data: {
|
|
162
|
-
filename: string;
|
|
163
|
-
content_type: string;
|
|
164
|
-
};
|
|
165
|
-
field: string;
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export declare function EditableField({ field, value, ns, schema, modifyContent, required, }: Props_17): JSX.Element;
|
|
170
|
-
|
|
171
|
-
declare type EditableFieldValue = GuillotinaFile | LightFile | IndexSignature | string | string[] | boolean | Date | undefined | null;
|
|
172
|
-
|
|
173
|
-
export declare const EditComponent: ForwardRefExoticComponent<Props_18 & RefAttributes<unknown>>;
|
|
174
|
-
|
|
175
|
-
export declare const EmailInput: ({ value, dataTest, placeholder, id, onChange, required, }: Props_5) => JSX.Element;
|
|
176
|
-
|
|
177
|
-
export declare function FileUpload({ label, onChange, dataTest }: Props_12): JSX_2.Element;
|
|
178
|
-
|
|
179
|
-
export declare function Flash(): JSX.Element | null;
|
|
180
|
-
|
|
181
|
-
export declare function FolderCtx(): JSX.Element;
|
|
182
|
-
|
|
183
|
-
export declare const Form: ({ children, className, onSubmit, onReset, autoComplete, title, error, dataTest, }: Props_7) => JSX.Element;
|
|
184
|
-
|
|
185
|
-
export declare const formatDate: (str: string) => string;
|
|
186
|
-
|
|
187
|
-
export declare function FormBuilder({ schema, formData, onSubmit, actionName, children, exclude, remotes, submitButton, }: Props_6): JSX.Element;
|
|
188
|
-
|
|
189
|
-
export declare const generateUID: (prefix?: string) => string;
|
|
190
|
-
|
|
191
|
-
export declare const genericFileMessages: {
|
|
192
|
-
error_file_key_name: {
|
|
193
|
-
id: string;
|
|
194
|
-
defaultMessage: string;
|
|
195
|
-
};
|
|
196
|
-
error_upload_file: {
|
|
197
|
-
id: string;
|
|
198
|
-
defaultMessage: string;
|
|
199
|
-
};
|
|
200
|
-
error_upload_file_size: {
|
|
201
|
-
id: string;
|
|
202
|
-
defaultMessage: string;
|
|
203
|
-
};
|
|
204
|
-
image_uploaded: {
|
|
205
|
-
id: string;
|
|
206
|
-
defaultMessage: string;
|
|
207
|
-
};
|
|
208
|
-
file_uploaded: {
|
|
209
|
-
id: string;
|
|
210
|
-
defaultMessage: string;
|
|
211
|
-
};
|
|
212
|
-
failed_delete_file: {
|
|
213
|
-
id: string;
|
|
214
|
-
defaultMessage: string;
|
|
215
|
-
};
|
|
216
|
-
image_deleted: {
|
|
217
|
-
id: string;
|
|
218
|
-
defaultMessage: string;
|
|
219
|
-
};
|
|
220
|
-
confirm_message_delete_file: {
|
|
221
|
-
id: string;
|
|
222
|
-
defaultMessage: string;
|
|
223
|
-
};
|
|
224
|
-
confirm_message_delete_image: {
|
|
225
|
-
id: string;
|
|
226
|
-
defaultMessage: string;
|
|
227
|
-
};
|
|
228
|
-
no_images_uploaded: {
|
|
229
|
-
id: string;
|
|
230
|
-
defaultMessage: string;
|
|
231
|
-
};
|
|
232
|
-
no_files_uploaded: {
|
|
233
|
-
id: string;
|
|
234
|
-
defaultMessage: string;
|
|
235
|
-
};
|
|
236
|
-
upload_an_image: {
|
|
237
|
-
id: string;
|
|
238
|
-
defaultMessage: string;
|
|
239
|
-
};
|
|
240
|
-
upload_a_file: {
|
|
241
|
-
id: string;
|
|
242
|
-
defaultMessage: string;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
export declare const genericMessages: {
|
|
247
|
-
loading: {
|
|
248
|
-
id: string;
|
|
249
|
-
defaultMessage: string;
|
|
250
|
-
};
|
|
251
|
-
remove: {
|
|
252
|
-
id: string;
|
|
253
|
-
defaultMessage: string;
|
|
254
|
-
};
|
|
255
|
-
install: {
|
|
256
|
-
id: string;
|
|
257
|
-
defaultMessage: string;
|
|
258
|
-
};
|
|
259
|
-
delete: {
|
|
260
|
-
id: string;
|
|
261
|
-
defaultMessage: string;
|
|
262
|
-
};
|
|
263
|
-
move_to: {
|
|
264
|
-
id: string;
|
|
265
|
-
defaultMessage: string;
|
|
266
|
-
};
|
|
267
|
-
copy_to: {
|
|
268
|
-
id: string;
|
|
269
|
-
defaultMessage: string;
|
|
270
|
-
};
|
|
271
|
-
behaviors: {
|
|
272
|
-
id: string;
|
|
273
|
-
defaultMessage: string;
|
|
274
|
-
};
|
|
275
|
-
static: {
|
|
276
|
-
id: string;
|
|
277
|
-
defaultMessage: string;
|
|
278
|
-
};
|
|
279
|
-
disable: {
|
|
280
|
-
id: string;
|
|
281
|
-
defaultMessage: string;
|
|
282
|
-
};
|
|
283
|
-
enable: {
|
|
284
|
-
id: string;
|
|
285
|
-
defaultMessage: string;
|
|
286
|
-
};
|
|
287
|
-
enabled: {
|
|
288
|
-
id: string;
|
|
289
|
-
defaultMessage: string;
|
|
290
|
-
};
|
|
291
|
-
available: {
|
|
292
|
-
id: string;
|
|
293
|
-
defaultMessage: string;
|
|
294
|
-
};
|
|
295
|
-
invalid_form_data: {
|
|
296
|
-
id: string;
|
|
297
|
-
defaultMessage: string;
|
|
298
|
-
};
|
|
299
|
-
invalid_form: {
|
|
300
|
-
id: string;
|
|
301
|
-
defaultMessage: string;
|
|
302
|
-
};
|
|
303
|
-
select_principal: {
|
|
304
|
-
id: string;
|
|
305
|
-
defaultMessage: string;
|
|
306
|
-
};
|
|
307
|
-
select_role: {
|
|
308
|
-
id: string;
|
|
309
|
-
defaultMessage: string;
|
|
310
|
-
};
|
|
311
|
-
select_permissions: {
|
|
312
|
-
id: string;
|
|
313
|
-
defaultMessage: string;
|
|
314
|
-
};
|
|
315
|
-
operation: {
|
|
316
|
-
id: string;
|
|
317
|
-
defaultMessage: string;
|
|
318
|
-
};
|
|
319
|
-
save: {
|
|
320
|
-
id: string;
|
|
321
|
-
defaultMessage: string;
|
|
322
|
-
};
|
|
323
|
-
choose: {
|
|
324
|
-
id: string;
|
|
325
|
-
defaultMessage: string;
|
|
326
|
-
};
|
|
327
|
-
property: {
|
|
328
|
-
id: string;
|
|
329
|
-
defaultMessage: string;
|
|
330
|
-
};
|
|
331
|
-
value: {
|
|
332
|
-
id: string;
|
|
333
|
-
defaultMessage: string;
|
|
334
|
-
};
|
|
335
|
-
create: {
|
|
336
|
-
id: string;
|
|
337
|
-
defaultMessage: string;
|
|
338
|
-
};
|
|
339
|
-
upload: {
|
|
340
|
-
id: string;
|
|
341
|
-
defaultMessage: string;
|
|
342
|
-
};
|
|
343
|
-
image: {
|
|
344
|
-
id: string;
|
|
345
|
-
defaultMessage: string;
|
|
346
|
-
};
|
|
347
|
-
error_provide_key_name: {
|
|
348
|
-
id: string;
|
|
349
|
-
defaultMessage: string;
|
|
350
|
-
};
|
|
351
|
-
mandatory_field: {
|
|
352
|
-
id: string;
|
|
353
|
-
defaultMessage: string;
|
|
354
|
-
};
|
|
355
|
-
error_in_field: {
|
|
356
|
-
id: string;
|
|
357
|
-
defaultMessage: string;
|
|
358
|
-
};
|
|
359
|
-
field_updated: {
|
|
360
|
-
id: string;
|
|
361
|
-
defaultMessage: string;
|
|
362
|
-
};
|
|
363
|
-
field_deleted: {
|
|
364
|
-
id: string;
|
|
365
|
-
defaultMessage: string;
|
|
366
|
-
};
|
|
367
|
-
can_not_delete_field: {
|
|
368
|
-
id: string;
|
|
369
|
-
defaultMessage: string;
|
|
370
|
-
};
|
|
371
|
-
cancel: {
|
|
372
|
-
id: string;
|
|
373
|
-
defaultMessage: string;
|
|
374
|
-
};
|
|
375
|
-
open: {
|
|
376
|
-
id: string;
|
|
377
|
-
defaultMessage: string;
|
|
378
|
-
};
|
|
379
|
-
download: {
|
|
380
|
-
id: string;
|
|
381
|
-
defaultMessage: string;
|
|
382
|
-
};
|
|
383
|
-
search: {
|
|
384
|
-
id: string;
|
|
385
|
-
defaultMessage: string;
|
|
386
|
-
};
|
|
387
|
-
no_results: {
|
|
388
|
-
id: string;
|
|
389
|
-
defaultMessage: string;
|
|
390
|
-
};
|
|
391
|
-
load_more: {
|
|
392
|
-
id: string;
|
|
393
|
-
defaultMessage: string;
|
|
394
|
-
};
|
|
395
|
-
add_type: {
|
|
396
|
-
id: string;
|
|
397
|
-
defaultMessage: string;
|
|
398
|
-
};
|
|
399
|
-
confirm: {
|
|
400
|
-
id: string;
|
|
401
|
-
defaultMessage: string;
|
|
402
|
-
};
|
|
403
|
-
field_is_required: {
|
|
404
|
-
id: string;
|
|
405
|
-
defaultMessage: string;
|
|
406
|
-
};
|
|
407
|
-
title: {
|
|
408
|
-
id: string;
|
|
409
|
-
defaultMessage: string;
|
|
410
|
-
};
|
|
411
|
-
add: {
|
|
412
|
-
id: string;
|
|
413
|
-
defaultMessage: string;
|
|
414
|
-
};
|
|
415
|
-
not_implemented: {
|
|
416
|
-
id: string;
|
|
417
|
-
defaultMessage: string;
|
|
418
|
-
};
|
|
419
|
-
failed_to_update: {
|
|
420
|
-
id: string;
|
|
421
|
-
defaultMessage: string;
|
|
422
|
-
};
|
|
423
|
-
add_user: {
|
|
424
|
-
id: string;
|
|
425
|
-
defaultMessage: string;
|
|
426
|
-
};
|
|
427
|
-
role: {
|
|
428
|
-
id: string;
|
|
429
|
-
defaultMessage: string;
|
|
430
|
-
};
|
|
431
|
-
setting: {
|
|
432
|
-
id: string;
|
|
433
|
-
defaultMessage: string;
|
|
434
|
-
};
|
|
435
|
-
permission: {
|
|
436
|
-
id: string;
|
|
437
|
-
defaultMessage: string;
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
export declare const get: <T>(obj: IndexSignature, path: string | string[], defValue: T) => T;
|
|
442
|
-
|
|
443
|
-
export declare const getActionsObject: (multiple: boolean) => {
|
|
444
|
-
[key: string]: {
|
|
445
|
-
text: MessageDescriptor;
|
|
446
|
-
perms: string[];
|
|
447
|
-
action: string;
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
export declare function getClient(url: string, container: string, auth: Auth): GuillotinaClient;
|
|
452
|
-
|
|
453
|
-
export declare function getNewId(id?: string): string;
|
|
454
|
-
|
|
455
|
-
export declare function GroupCtx(): JSX.Element;
|
|
456
|
-
|
|
457
|
-
export declare function GroupsCtx(): JSX.Element;
|
|
458
|
-
|
|
459
|
-
export declare function GroupToolbar(): JSX.Element;
|
|
460
|
-
|
|
461
|
-
export declare function Guillotina({ auth, locale, ...props }: GuillotinaProps): JSX.Element;
|
|
462
|
-
|
|
463
|
-
export declare type GuillotinaApplication = {
|
|
464
|
-
databases: string[];
|
|
465
|
-
} & GuillotinaCommonObject;
|
|
466
|
-
|
|
467
|
-
export declare interface GuillotinaBehaviors {
|
|
468
|
-
static: string[];
|
|
469
|
-
dynamic: string[];
|
|
470
|
-
available: string[];
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export declare class GuillotinaClient {
|
|
474
|
-
rest: RestClient;
|
|
475
|
-
pathContainsContainer: boolean;
|
|
476
|
-
constructor(rest: RestClient, pathContainsContainer: boolean);
|
|
477
|
-
getContainerFromPath(path: string): string;
|
|
478
|
-
clearContainerFromPath(path: string): string;
|
|
479
|
-
getContext(path: string): Promise<Response>;
|
|
480
|
-
get(path: string): Promise<Response>;
|
|
481
|
-
getQueryParamsSearchFunction(name: string): ({ start, pageSize, path, withDepth, }: {
|
|
482
|
-
start?: number;
|
|
483
|
-
pageSize?: number;
|
|
484
|
-
path: string;
|
|
485
|
-
withDepth?: boolean;
|
|
486
|
-
}) => string[][];
|
|
487
|
-
getQueryParamsPostresql({ start, pageSize, withDepth, }: {
|
|
488
|
-
start?: number;
|
|
489
|
-
pageSize?: number;
|
|
490
|
-
path?: string;
|
|
491
|
-
withDepth?: boolean;
|
|
492
|
-
}): string[][];
|
|
493
|
-
getQueryParamsElasticsearch({ start, pageSize, path, withDepth, }: {
|
|
494
|
-
start?: number;
|
|
495
|
-
pageSize?: number;
|
|
496
|
-
path: string;
|
|
497
|
-
withDepth?: boolean;
|
|
498
|
-
}): string[][];
|
|
499
|
-
getItemsColumn<T extends SearchItem | GuillotinaCommonObject>(): ItemColumn<T>[];
|
|
500
|
-
applyCompat<T>(data: {
|
|
501
|
-
items: T[];
|
|
502
|
-
items_total: number;
|
|
503
|
-
}): ReturnSearchCompatible<T>;
|
|
504
|
-
search<T>(path: string, params: string | IndexSignature<string>, container?: boolean, prepare?: boolean, signal?: AbortSignal): Promise<ReturnSearchCompatible<T>>;
|
|
505
|
-
canido(path: string, permissions: string | string[]): Promise<Response>;
|
|
506
|
-
createObject(path: string, data: unknown): Promise<Response>;
|
|
507
|
-
cleanPath(path: string): string;
|
|
508
|
-
delete(path: string, data: unknown): Promise<Response>;
|
|
509
|
-
create(path: string, data: unknown): Promise<Response>;
|
|
510
|
-
post(path: string, data: unknown): Promise<Response>;
|
|
511
|
-
patch(path: string, data: unknown): Promise<Response>;
|
|
512
|
-
upload(path: string, file: LightFile): Promise<Response>;
|
|
513
|
-
download(path: string): Promise<Response>;
|
|
514
|
-
getTypeSchema(path: string, name: string): Promise<any>;
|
|
515
|
-
getAddons(path: string): Promise<Response>;
|
|
516
|
-
installAddon(path: string, key: string): Promise<Response>;
|
|
517
|
-
removeAddon(path: string, key: string): Promise<Response>;
|
|
518
|
-
getGroups(path: string): Promise<Response>;
|
|
519
|
-
getUsers(path: string): Promise<Response>;
|
|
520
|
-
getPrincipals(path: string): Promise<{
|
|
521
|
-
groups: GuillotinaGroup[];
|
|
522
|
-
users: GuillotinaUser[];
|
|
523
|
-
}>;
|
|
524
|
-
getRoles(path: string): Promise<Response>;
|
|
525
|
-
getAllPermissions(path: string): Promise<string[]>;
|
|
526
|
-
getTypes(path: string): Promise<any>;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
export declare type GuillotinaCommonObject = {
|
|
530
|
-
type_name: string;
|
|
531
|
-
uuid: string;
|
|
532
|
-
is_folderish: boolean;
|
|
533
|
-
parent: GuillotinaParentObject;
|
|
534
|
-
length: number;
|
|
535
|
-
__behaviors__?: string[];
|
|
536
|
-
'@static_behaviors': string[];
|
|
537
|
-
'guillotina.behaviors.dublincore.IDublinCore'?: IBehaviorDublinCore;
|
|
538
|
-
'guillotina.contrib.workflows.interfaces.IWorkflowBehavior'?: IWorkflowBehavior;
|
|
539
|
-
'guillotina.behaviors.attachment.IAttachment'?: {
|
|
540
|
-
file: GuillotinaFile;
|
|
541
|
-
};
|
|
542
|
-
'guillotina.behaviors.attachment.IMultiAttachment'?: {
|
|
543
|
-
files: {
|
|
544
|
-
[key: string]: GuillotinaFile;
|
|
545
|
-
};
|
|
546
|
-
};
|
|
547
|
-
'guillotina.contrib.image.behaviors.IImageAttachment'?: {
|
|
548
|
-
image: GuillotinaFile;
|
|
549
|
-
};
|
|
550
|
-
'guillotina.contrib.image.behaviors.IMultiImageAttachment'?: {
|
|
551
|
-
images: {
|
|
552
|
-
[key: string]: GuillotinaFile;
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
'guillotina.contrib.image.behaviors.IMultiImageOrderedAttachment'?: {
|
|
556
|
-
images: {
|
|
557
|
-
[key: string]: GuillotinaFile;
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
|
-
} & ItemsPropertyObject;
|
|
561
|
-
|
|
562
|
-
export declare type GuillotinaDatabase = {
|
|
563
|
-
containers: string[];
|
|
564
|
-
} & GuillotinaCommonObject;
|
|
565
|
-
|
|
566
|
-
export declare type GuillotinaFile = {
|
|
567
|
-
filename: string;
|
|
568
|
-
content_type: string;
|
|
569
|
-
extension: string;
|
|
570
|
-
size: number;
|
|
571
|
-
md5: string;
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
declare interface GuillotinaGlobalState {
|
|
575
|
-
path: string;
|
|
576
|
-
loading: boolean;
|
|
577
|
-
context?: GuillotinaCommonObject;
|
|
578
|
-
flash: {
|
|
579
|
-
message?: string;
|
|
580
|
-
type?: string;
|
|
581
|
-
};
|
|
582
|
-
action: {
|
|
583
|
-
action?: string;
|
|
584
|
-
params?: IndexSignature;
|
|
585
|
-
};
|
|
586
|
-
permissions: IndexSignature;
|
|
587
|
-
errorStatus?: string;
|
|
588
|
-
registry: IndexSignature;
|
|
589
|
-
refresh?: number;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
export declare type GuillotinaGroup = {
|
|
593
|
-
user_roles: string[];
|
|
594
|
-
users: string[];
|
|
595
|
-
} & GuillotinaCommonObject;
|
|
596
|
-
|
|
597
|
-
declare interface GuillotinaParentObject {
|
|
598
|
-
'@id': string;
|
|
599
|
-
'@name': string;
|
|
600
|
-
'@type': string;
|
|
601
|
-
'@uid': string;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
declare interface GuillotinaProps {
|
|
605
|
-
auth: Auth;
|
|
606
|
-
locale: string;
|
|
607
|
-
url: string;
|
|
608
|
-
config?: Partial<IConfig>;
|
|
609
|
-
registry: Partial<IRegistry>;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
declare enum GuillotinaReducerActionTypes {
|
|
613
|
-
SET_PATH = "SET_PATH",
|
|
614
|
-
SET_CONTEXT = "SET_CONTEXT",
|
|
615
|
-
SET_ERROR = "SET_ERROR",
|
|
616
|
-
SET_FLASH = "SET_FLASH",
|
|
617
|
-
CLEAR_FLASH = "CLEAR_FLASH",
|
|
618
|
-
SET_ACTION = "SET_ACTION",
|
|
619
|
-
CLEAR_ACTION = "CLEAR_ACTION",
|
|
620
|
-
REFRESH = "REFRESH",
|
|
621
|
-
APPLY = "APPLY"
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
export declare interface GuillotinaSchema {
|
|
625
|
-
title: string;
|
|
626
|
-
$schema: string;
|
|
627
|
-
type: string;
|
|
628
|
-
required: string[];
|
|
629
|
-
definitions: Definitions;
|
|
630
|
-
properties: GuillotinaSchemaProperties;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
export declare interface GuillotinaSchemaProperties {
|
|
634
|
-
[key: string]: GuillotinaSchemaProperty | {
|
|
635
|
-
$ref: string;
|
|
636
|
-
}[];
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export declare interface GuillotinaSchemaProperty {
|
|
640
|
-
type: string;
|
|
641
|
-
title: string;
|
|
642
|
-
widget?: string;
|
|
643
|
-
readonly?: boolean;
|
|
644
|
-
description?: string;
|
|
645
|
-
vocabularyName?: string;
|
|
646
|
-
vocabulary?: string[];
|
|
647
|
-
items?: GuillotinaSchemaProperty;
|
|
648
|
-
properties?: GuillotinaSchemaProperties;
|
|
649
|
-
additionalProperties?: GuillotinaSchemaProperties;
|
|
650
|
-
typeNameQuery?: string;
|
|
651
|
-
labelProperty?: string;
|
|
652
|
-
enum?: string[];
|
|
653
|
-
queryCondition?: string;
|
|
654
|
-
queryPath?: string;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
export declare interface GuillotinaSharing {
|
|
658
|
-
local: GuillotinaSharingMap;
|
|
659
|
-
inherit: GuillotinaSharingInheritItem[];
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export declare interface GuillotinaSharingInheritItem extends GuillotinaSharingMap {
|
|
663
|
-
'@id': string;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export declare interface GuillotinaSharingMap {
|
|
667
|
-
roleperm: {
|
|
668
|
-
[key: string]: IndexSignature<string>;
|
|
669
|
-
};
|
|
670
|
-
prinperm: {
|
|
671
|
-
[key: string]: IndexSignature<string>;
|
|
672
|
-
};
|
|
673
|
-
prinrole: {
|
|
674
|
-
[key: string]: IndexSignature<string>;
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
export declare type GuillotinaUser = {
|
|
679
|
-
user_roles: string[];
|
|
680
|
-
user_groups: string[];
|
|
681
|
-
user_permissions: string[];
|
|
682
|
-
fullname: string;
|
|
683
|
-
email: string;
|
|
684
|
-
username: string;
|
|
685
|
-
} & GuillotinaCommonObject;
|
|
686
|
-
|
|
687
|
-
export declare interface GuillotinaVocabulary {
|
|
688
|
-
'@id': string;
|
|
689
|
-
items: GuillotinaVocabularyItem[];
|
|
690
|
-
items_total: number;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
export declare interface GuillotinaVocabularyItem {
|
|
694
|
-
title: string;
|
|
695
|
-
token: string;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
export declare function IAttachment({ properties, values }: Props_19): JSX.Element;
|
|
699
|
-
|
|
700
|
-
export declare interface IBehaviorDublinCore {
|
|
701
|
-
title: string;
|
|
702
|
-
description: string | null;
|
|
703
|
-
creation_date: string;
|
|
704
|
-
modification_date: string;
|
|
705
|
-
effective_date: string | null;
|
|
706
|
-
expiration_date: string | null;
|
|
707
|
-
creators: string[];
|
|
708
|
-
tags: string[] | null;
|
|
709
|
-
publisher: string | null;
|
|
710
|
-
contributors: string[];
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
export declare const Icon: ({ icon, className, align }: Props_27) => JSX.Element;
|
|
714
|
-
|
|
715
|
-
export declare interface IConfig {
|
|
716
|
-
DisabledTypes: string[];
|
|
717
|
-
PageSize: number;
|
|
718
|
-
DelayActions: number;
|
|
719
|
-
Permissions: string[];
|
|
720
|
-
SearchEngine: string;
|
|
721
|
-
SizeImages?: string[];
|
|
722
|
-
icons?: {
|
|
723
|
-
[key: string]: string;
|
|
724
|
-
};
|
|
725
|
-
properties_default?: string[];
|
|
726
|
-
properties_ignore_fields?: string[];
|
|
727
|
-
fieldHaveDeleteButton: (schema: GuillotinaSchemaProperty) => boolean;
|
|
728
|
-
flash?: (message: string, type: string) => void;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export declare function IImageAttachment({ properties, values }: Props_21): JSX.Element;
|
|
732
|
-
|
|
733
|
-
export declare interface IManageRegistry {
|
|
734
|
-
registry: IRegistry;
|
|
735
|
-
getPathComponent: (context: GuillotinaCommonObject | undefined, path: string, fallback?: default_2.FC) => default_2.ComponentType<any>;
|
|
736
|
-
getComponent: (name: string) => default_2.ComponentType<any>;
|
|
737
|
-
getView: (name: string) => default_2.ComponentType<any>;
|
|
738
|
-
getForm: (type: string, fallback?: default_2.FC) => default_2.FC<BaseFormProps>;
|
|
739
|
-
getAction: (type: string, fallback?: default_2.FC) => default_2.FC;
|
|
740
|
-
getBehavior: (type: string, fallback?: default_2.FC) => default_2.FC<any>;
|
|
741
|
-
getProperties: (type: string) => RegistryProperties;
|
|
742
|
-
getItemsColumn: <T extends SearchOrCommonObject = SearchOrCommonObject>(type: string) => ItemColumn<T>[] | undefined;
|
|
743
|
-
getSchemas: (type: string) => RegistrySchema;
|
|
744
|
-
getFieldsToFilter: (type: string, fallback?: string[]) => string[];
|
|
745
|
-
getParsedSearchQueryParam: (query: string, type: string) => string;
|
|
746
|
-
getDefaultSortValue: (type: string, fallback?: RegistrySortValue) => RegistrySortValue;
|
|
747
|
-
getSearchEngineQueryParamsFunction: (type: string) => string;
|
|
748
|
-
getActionsList: (type: string, multiple: boolean) => {
|
|
749
|
-
[key: string]: {
|
|
750
|
-
text: MessageDescriptor;
|
|
751
|
-
perms: string[];
|
|
752
|
-
action: string;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
export declare function IMultiAttachment({ properties, values }: Props_20): JSX.Element;
|
|
758
|
-
|
|
759
|
-
export declare function IMultiImageAttachment({ properties, values }: Props_22): JSX.Element;
|
|
760
|
-
|
|
761
|
-
export declare function IMultiImageOrderedAttachment({ properties, values }: Props_23): JSX.Element;
|
|
762
|
-
|
|
763
|
-
declare interface IndexSignature<T = any> {
|
|
764
|
-
[key: string]: T;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
export declare const Input: ForwardRefExoticComponent<Props_8 & RefAttributes<HTMLInputElement>>;
|
|
768
|
-
|
|
769
|
-
export declare const InputList: ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & Props_16 & RefAttributes<HTMLInputElement>>;
|
|
770
|
-
|
|
771
|
-
export declare interface IRegistry {
|
|
772
|
-
paths: {
|
|
773
|
-
[key: string]: default_2.FC;
|
|
774
|
-
};
|
|
775
|
-
views: {
|
|
776
|
-
[key: string]: default_2.ComponentType<any>;
|
|
777
|
-
};
|
|
778
|
-
actions: {
|
|
779
|
-
[key: string]: (props: any) => default_2.ReactElement;
|
|
780
|
-
};
|
|
781
|
-
forms: {
|
|
782
|
-
[key: string]: (props: any) => default_2.ReactElement;
|
|
783
|
-
};
|
|
784
|
-
behaviors: {
|
|
785
|
-
[key: string]: (props: any | undefined) => default_2.ReactElement | null;
|
|
786
|
-
};
|
|
787
|
-
itemsColumn: {
|
|
788
|
-
[key: string]: <T extends SearchOrCommonObject = SearchOrCommonObject>() => ItemColumn<T>[];
|
|
789
|
-
};
|
|
790
|
-
schemas: {
|
|
791
|
-
[key: string]: RegistrySchema;
|
|
792
|
-
};
|
|
793
|
-
properties: {
|
|
794
|
-
[key: string]: RegistryProperties;
|
|
795
|
-
};
|
|
796
|
-
components: {
|
|
797
|
-
[key: string]: (props: any) => default_2.ReactNode | null | undefined;
|
|
798
|
-
};
|
|
799
|
-
searchEngineQueryParamsFunction: {
|
|
800
|
-
[key: string]: string;
|
|
801
|
-
};
|
|
802
|
-
fieldsToFilter: {
|
|
803
|
-
[key: string]: string[];
|
|
804
|
-
};
|
|
805
|
-
parseSearchQueryParamFunction: {
|
|
806
|
-
[key: string]: (query: string, type: string) => string;
|
|
807
|
-
};
|
|
808
|
-
defaultSortValue: {
|
|
809
|
-
[key: string]: RegistrySortValue;
|
|
810
|
-
};
|
|
811
|
-
actionsList: {
|
|
812
|
-
[key: string]: (multiple: boolean) => {
|
|
813
|
-
[key: string]: {
|
|
814
|
-
text: MessageDescriptor;
|
|
815
|
-
perms: string[];
|
|
816
|
-
action: string;
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
export declare const isEmail: (value?: string) => boolean;
|
|
823
|
-
|
|
824
|
-
export declare const isEmpty: (value?: string) => boolean;
|
|
825
|
-
|
|
826
|
-
export declare const isHexColor: (value?: string) => boolean;
|
|
827
|
-
|
|
828
|
-
export declare const isNumber: (value?: string) => boolean;
|
|
829
|
-
|
|
830
|
-
export declare const isURL: (value?: string) => boolean;
|
|
831
|
-
|
|
832
|
-
export declare function Item({ item, icon }: ItemProps): JSX.Element;
|
|
833
|
-
|
|
834
|
-
export declare function ItemCheckbox({ item, dataTest }: PropsItemCheckbox): JSX.Element;
|
|
835
|
-
|
|
836
|
-
export declare interface ItemColumn<T extends SearchOrCommonObject = SearchOrCommonObject> {
|
|
837
|
-
key: string;
|
|
838
|
-
label: string;
|
|
839
|
-
isSortable?: boolean;
|
|
840
|
-
child: ({ model, link, search }: ItemColumnChild<T>) => React.ReactNode;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
export declare interface ItemColumnChild<T extends SearchOrCommonObject = SearchOrCommonObject> {
|
|
844
|
-
model: ItemModel<T>;
|
|
845
|
-
link?: () => void;
|
|
846
|
-
search?: string;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export declare function ItemCtx(): JSX.Element;
|
|
850
|
-
|
|
851
|
-
export declare class ItemModel<T extends SearchItem | GuillotinaCommonObject = SearchItem | GuillotinaCommonObject> {
|
|
852
|
-
item: T;
|
|
853
|
-
url: string;
|
|
854
|
-
constructor(item: T, url?: string);
|
|
855
|
-
get path(): string;
|
|
856
|
-
get name(): string;
|
|
857
|
-
get icon(): string;
|
|
858
|
-
get fullPath(): string;
|
|
859
|
-
get id(): string;
|
|
860
|
-
get uid(): string;
|
|
861
|
-
get type(): string;
|
|
862
|
-
get title(): string;
|
|
863
|
-
get created(): string;
|
|
864
|
-
get updated(): string;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
declare interface ItemProps {
|
|
868
|
-
item: {
|
|
869
|
-
id: string;
|
|
870
|
-
path: string;
|
|
871
|
-
};
|
|
872
|
-
icon?: string;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
export declare const ItemsActionsCtx: Context< {
|
|
876
|
-
selected: {
|
|
877
|
-
all: boolean;
|
|
878
|
-
[key: string]: boolean;
|
|
879
|
-
};
|
|
880
|
-
onSelectOneItem?: (item: SearchItem) => void;
|
|
881
|
-
onSelectAllItems?: (chedked: boolean) => void;
|
|
882
|
-
onAction?: (action: string) => void;
|
|
883
|
-
}>;
|
|
884
|
-
|
|
885
|
-
/**
|
|
886
|
-
* Dropdown to choose some action to apply to the selected items.
|
|
887
|
-
*/
|
|
888
|
-
export declare function ItemsActionsDropdown(): JSX.Element;
|
|
889
|
-
|
|
890
|
-
export declare function ItemsActionsProvider({ items, children, }: PropsItemsActionsProvider): JSX.Element;
|
|
891
|
-
|
|
892
|
-
declare type ItemsPropertyObject = {
|
|
893
|
-
'@id': string;
|
|
894
|
-
'@name': string;
|
|
895
|
-
'@type': string;
|
|
896
|
-
'@uid': string;
|
|
897
|
-
'@absolute_url': string;
|
|
898
|
-
title: string;
|
|
899
|
-
creation_date: string;
|
|
900
|
-
modification_date: string;
|
|
901
|
-
uuid: string;
|
|
902
|
-
type_name: string;
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
export declare function ItemTitle({ title, actions }: ItemTitleProps): JSX.Element;
|
|
906
|
-
|
|
907
|
-
declare interface ItemTitleProps {
|
|
908
|
-
title: string;
|
|
909
|
-
actions?: default_2.ReactNode;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export declare function IWorkflow(): JSX.Element | null;
|
|
913
|
-
|
|
914
|
-
export declare interface IWorkflowBehavior {
|
|
915
|
-
review_state: string;
|
|
916
|
-
history: WorkflowHistory[];
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
export declare function Layout({ children, onLogout, auth }: Props_37): JSX.Element;
|
|
920
|
-
|
|
921
|
-
declare interface LightFile {
|
|
922
|
-
filename: string;
|
|
923
|
-
data: ArrayBuffer | string;
|
|
924
|
-
'content-type': string;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
export declare const lightFileReader: (file: File) => Promise<LightFile>;
|
|
928
|
-
|
|
929
|
-
export declare function Link({ aRef, model, children, ...props }: Props_36): JSX.Element;
|
|
930
|
-
|
|
931
|
-
export declare const Loading: ({ style }: Props_28) => JSX.Element;
|
|
932
|
-
|
|
933
|
-
export declare const Login: ({ currentSchema, setCurrentSchema, schemas, auth, onLogin, }: Props_38) => JSX.Element;
|
|
934
|
-
|
|
935
|
-
export declare const maxLength: (value?: string, limit?: number) => boolean;
|
|
936
|
-
|
|
937
|
-
export declare const messages: {
|
|
938
|
-
add_container: {
|
|
939
|
-
id: string;
|
|
940
|
-
defaultMessage: string;
|
|
941
|
-
};
|
|
942
|
-
container_created: {
|
|
943
|
-
id: string;
|
|
944
|
-
defaultMessage: string;
|
|
945
|
-
};
|
|
946
|
-
};
|
|
947
|
-
|
|
948
|
-
export declare const minLength: (value?: string, limit?: number) => boolean;
|
|
949
|
-
|
|
950
|
-
export declare function Modal(props: ModalProps): ReactPortal;
|
|
951
|
-
|
|
952
|
-
declare interface ModalProps {
|
|
953
|
-
isActive: boolean;
|
|
954
|
-
setActive: (value: boolean) => void;
|
|
955
|
-
children: React.ReactNode;
|
|
956
|
-
className?: string;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
export declare const noop: () => void;
|
|
960
|
-
|
|
961
|
-
export declare function NotAllowed(): JSX.Element;
|
|
962
|
-
|
|
963
|
-
export declare const notEmpty: (value: string) => boolean;
|
|
964
|
-
|
|
965
|
-
declare function Notification_2({ isColor, children }: Props_32): JSX.Element;
|
|
966
|
-
export { Notification_2 as Notification }
|
|
967
|
-
|
|
968
|
-
export declare function Pagination({ current, total, doPaginate, pager }: Props_39): JSX.Element | null;
|
|
969
|
-
|
|
970
|
-
export declare function PanelActions(): JSX.Element;
|
|
971
|
-
|
|
972
|
-
export declare function PanelAddons(): JSX.Element;
|
|
973
|
-
|
|
974
|
-
export declare function PanelBehaviors(): JSX.Element;
|
|
975
|
-
|
|
976
|
-
export declare function PanelItems(): JSX.Element;
|
|
977
|
-
|
|
978
|
-
export declare function PanelNotImplemented(props: Props_46): JSX.Element;
|
|
979
|
-
|
|
980
|
-
export declare function PanelPermissions(): JSX.Element | null;
|
|
981
|
-
|
|
982
|
-
export declare function PanelProperties(): JSX.Element;
|
|
983
|
-
|
|
984
|
-
export declare function parser(qs: string, defaultField?: string | string[] | undefined): string[][];
|
|
985
|
-
|
|
986
|
-
export declare const PasswordInput: ({ value, dataTest, onChange, placeholder, id, required, }: Props_9 & InputHTMLAttributes<HTMLInputElement>) => JSX.Element;
|
|
987
|
-
|
|
988
|
-
export declare function Path(): JSX.Element | null;
|
|
989
|
-
|
|
990
|
-
export declare function PathTree({ title, defaultPath, children, onConfirm, onCancel, }: PathTreeProps): JSX.Element;
|
|
991
|
-
|
|
992
|
-
declare interface PathTreeProps {
|
|
993
|
-
title: string;
|
|
994
|
-
defaultPath?: string;
|
|
995
|
-
children?: React.ReactNode;
|
|
996
|
-
onConfirm: (path: string, target: EventTarget) => void;
|
|
997
|
-
onCancel: () => void;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
export declare interface Perminhe {
|
|
1001
|
-
permission: string;
|
|
1002
|
-
setting: Setting;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
export declare function PermissionPrinperm({ principals, permissions, operations, refresh, }: Props_24): JSX.Element;
|
|
1006
|
-
|
|
1007
|
-
export declare function PermissionPrinrole({ principals, roles, operations, refresh, }: Props_25): JSX.Element;
|
|
1008
|
-
|
|
1009
|
-
export declare function PermissionRoleperm({ roles, permissions, operations, refresh, }: Props_26): JSX.Element;
|
|
1010
|
-
|
|
1011
|
-
declare const Permissions_2: string[];
|
|
1012
|
-
export { Permissions_2 as Permissions }
|
|
1013
|
-
|
|
1014
|
-
declare type PlainType = string | boolean | number;
|
|
1015
|
-
|
|
1016
|
-
export declare interface PrimPerm {
|
|
1017
|
-
principal: string;
|
|
1018
|
-
permission: string;
|
|
1019
|
-
setting: Setting;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
export declare interface Prinrole {
|
|
1023
|
-
principal: string;
|
|
1024
|
-
role: string;
|
|
1025
|
-
setting: Setting;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
export declare function PropertiesButtonView(): default_2.ReactElement<{
|
|
1029
|
-
Ctx?: Traversal;
|
|
1030
|
-
}, string | default_2.JSXElementConstructor<any>> | null;
|
|
1031
|
-
|
|
1032
|
-
export declare function PropertiesView(): default_2.ReactElement<{
|
|
1033
|
-
Ctx?: Traversal;
|
|
1034
|
-
}, string | default_2.JSXElementConstructor<any>> | null;
|
|
1035
|
-
|
|
1036
|
-
declare interface Props {
|
|
1037
|
-
type: string;
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
declare interface Props_10 {
|
|
1041
|
-
error?: string;
|
|
1042
|
-
errorZoneClassName?: string;
|
|
1043
|
-
size?: number;
|
|
1044
|
-
placeholder?: string;
|
|
1045
|
-
id?: string;
|
|
1046
|
-
className?: string;
|
|
1047
|
-
classWrap?: string;
|
|
1048
|
-
disabled?: boolean;
|
|
1049
|
-
multiple?: boolean;
|
|
1050
|
-
loading?: boolean;
|
|
1051
|
-
onChange?: (value: string | string[]) => void;
|
|
1052
|
-
options: {
|
|
1053
|
-
text: string;
|
|
1054
|
-
value: string;
|
|
1055
|
-
}[];
|
|
1056
|
-
appendDefault?: boolean;
|
|
1057
|
-
style?: IndexSignature;
|
|
1058
|
-
dataTest?: string;
|
|
1059
|
-
value?: string | string[];
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
declare interface Props_11 {
|
|
1063
|
-
vocabularyName: string;
|
|
1064
|
-
className?: string;
|
|
1065
|
-
classWrap?: string;
|
|
1066
|
-
val?: string | string[];
|
|
1067
|
-
dataTest?: string;
|
|
1068
|
-
multiple?: boolean;
|
|
1069
|
-
onChange?: (value: string | string[]) => void;
|
|
1070
|
-
appendDefault?: boolean;
|
|
1071
|
-
id?: string;
|
|
1072
|
-
placeholder?: string;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
declare interface Props_12 {
|
|
1076
|
-
label?: string;
|
|
1077
|
-
dataTest?: string;
|
|
1078
|
-
onChange: (file: LightFile) => void;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
declare interface Props_13 {
|
|
1082
|
-
value: string;
|
|
1083
|
-
classWrap?: string;
|
|
1084
|
-
rows?: number;
|
|
1085
|
-
className?: string;
|
|
1086
|
-
onChange?: (value: string) => void;
|
|
1087
|
-
dataTest?: string;
|
|
1088
|
-
error?: string;
|
|
1089
|
-
errorZoneClassName?: string;
|
|
1090
|
-
placeholder?: string;
|
|
1091
|
-
id?: string;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
declare interface Props_14 {
|
|
1095
|
-
onChange?: (value: string) => void;
|
|
1096
|
-
error?: string;
|
|
1097
|
-
errorZoneClassName?: string;
|
|
1098
|
-
traversal: Traversal;
|
|
1099
|
-
path?: string;
|
|
1100
|
-
qs?: string[][];
|
|
1101
|
-
queryCondition?: string;
|
|
1102
|
-
value?: string;
|
|
1103
|
-
btnClass?: string;
|
|
1104
|
-
dataTestWrapper?: string;
|
|
1105
|
-
dataTestSearchInput?: string;
|
|
1106
|
-
dataTestItem?: string;
|
|
1107
|
-
renderTextItemOption?: (item: SearchItem) => string;
|
|
1108
|
-
typeNameQuery?: string;
|
|
1109
|
-
labelProperty?: string;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
declare interface Props_15 {
|
|
1113
|
-
onChange: (value: string[]) => void;
|
|
1114
|
-
error?: string;
|
|
1115
|
-
errorZoneClassName?: string;
|
|
1116
|
-
traversal: Traversal;
|
|
1117
|
-
path?: string;
|
|
1118
|
-
qs?: string[][];
|
|
1119
|
-
queryCondition?: string;
|
|
1120
|
-
value: string[];
|
|
1121
|
-
btnClass?: string;
|
|
1122
|
-
dataTestWrapper?: string;
|
|
1123
|
-
dataTestSearchInput?: string;
|
|
1124
|
-
dataTestItem?: string;
|
|
1125
|
-
renderTextItemOption?: (item: SearchItem) => string;
|
|
1126
|
-
typeNameQuery?: string;
|
|
1127
|
-
labelProperty?: string;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
declare interface Props_16 {
|
|
1131
|
-
value: string[];
|
|
1132
|
-
onChange: (value: string[]) => void;
|
|
1133
|
-
dataTest?: string;
|
|
1134
|
-
id?: string;
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
declare interface Props_17 {
|
|
1138
|
-
field: string;
|
|
1139
|
-
value: EditableFieldValue;
|
|
1140
|
-
ns?: string;
|
|
1141
|
-
schema?: GuillotinaSchemaProperty;
|
|
1142
|
-
modifyContent?: boolean;
|
|
1143
|
-
required?: boolean;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
declare interface Props_18 {
|
|
1147
|
-
schema: GuillotinaSchemaProperty;
|
|
1148
|
-
val: EditableFieldValue;
|
|
1149
|
-
setValue: (value: EditableFieldValue) => void;
|
|
1150
|
-
dataTest?: string;
|
|
1151
|
-
className?: string;
|
|
1152
|
-
placeholder?: string;
|
|
1153
|
-
id?: string;
|
|
1154
|
-
required?: boolean;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
declare interface Props_19 {
|
|
1158
|
-
properties: {
|
|
1159
|
-
file: GuillotinaSchemaProperty;
|
|
1160
|
-
};
|
|
1161
|
-
values: {
|
|
1162
|
-
file: GuillotinaFile;
|
|
1163
|
-
};
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
declare interface Props_2 {
|
|
1167
|
-
items: ItemModel<SearchItem | GuillotinaCommonObject>[];
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
declare interface Props_20 {
|
|
1171
|
-
properties: GuillotinaSchemaProperties;
|
|
1172
|
-
values: {
|
|
1173
|
-
files: {
|
|
1174
|
-
[key: string]: GuillotinaFile;
|
|
1175
|
-
};
|
|
1176
|
-
};
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
declare interface Props_21 {
|
|
1180
|
-
properties: GuillotinaSchemaProperties;
|
|
1181
|
-
values: {
|
|
1182
|
-
image: GuillotinaFile;
|
|
1183
|
-
};
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
declare interface Props_22 {
|
|
1187
|
-
properties: GuillotinaSchemaProperties;
|
|
1188
|
-
values: {
|
|
1189
|
-
images: {
|
|
1190
|
-
[key: string]: GuillotinaFile;
|
|
1191
|
-
};
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
declare interface Props_23 {
|
|
1196
|
-
properties: GuillotinaSchemaProperties;
|
|
1197
|
-
values: {
|
|
1198
|
-
images: {
|
|
1199
|
-
[key: string]: GuillotinaFile;
|
|
1200
|
-
};
|
|
1201
|
-
};
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
declare interface Props_24 {
|
|
1205
|
-
principals?: {
|
|
1206
|
-
text: string;
|
|
1207
|
-
value: string;
|
|
1208
|
-
}[];
|
|
1209
|
-
permissions?: {
|
|
1210
|
-
text: string;
|
|
1211
|
-
value: string;
|
|
1212
|
-
}[];
|
|
1213
|
-
operations: {
|
|
1214
|
-
text: string;
|
|
1215
|
-
value: string;
|
|
1216
|
-
}[];
|
|
1217
|
-
refresh: (value: number) => void;
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
declare interface Props_25 {
|
|
1221
|
-
principals?: {
|
|
1222
|
-
text: string;
|
|
1223
|
-
value: string;
|
|
1224
|
-
}[];
|
|
1225
|
-
roles: {
|
|
1226
|
-
text: string;
|
|
1227
|
-
value: string;
|
|
1228
|
-
}[];
|
|
1229
|
-
operations: {
|
|
1230
|
-
text: string;
|
|
1231
|
-
value: string;
|
|
1232
|
-
}[];
|
|
1233
|
-
refresh: (value: number) => void;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
declare interface Props_26 {
|
|
1237
|
-
roles: {
|
|
1238
|
-
text: string;
|
|
1239
|
-
value: string;
|
|
1240
|
-
}[];
|
|
1241
|
-
permissions?: {
|
|
1242
|
-
text: string;
|
|
1243
|
-
value: string;
|
|
1244
|
-
}[];
|
|
1245
|
-
operations: {
|
|
1246
|
-
text: string;
|
|
1247
|
-
value: string;
|
|
1248
|
-
}[];
|
|
1249
|
-
refresh: (value: number) => void;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
declare interface Props_27 {
|
|
1253
|
-
icon: string;
|
|
1254
|
-
className?: string;
|
|
1255
|
-
align?: string;
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
declare interface Props_28 {
|
|
1259
|
-
style?: IndexSignature;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
declare interface Props_29 {
|
|
1263
|
-
name: string;
|
|
1264
|
-
id: string;
|
|
1265
|
-
onRemove?: () => void;
|
|
1266
|
-
size?: string;
|
|
1267
|
-
color?: string;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
declare interface Props_3 {
|
|
1271
|
-
children: React.ReactNode;
|
|
1272
|
-
className?: string;
|
|
1273
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1274
|
-
type?: 'submit' | 'reset' | 'button';
|
|
1275
|
-
loading?: boolean;
|
|
1276
|
-
disabled?: boolean;
|
|
1277
|
-
dataTest?: string;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
declare interface Props_30 {
|
|
1281
|
-
onClick: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
1282
|
-
className?: string;
|
|
1283
|
-
children?: React.ReactNode;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
declare interface Props_31 {
|
|
1287
|
-
headers?: string[];
|
|
1288
|
-
className?: string;
|
|
1289
|
-
children: React.ReactNode;
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
declare interface Props_32 {
|
|
1293
|
-
isColor?: string;
|
|
1294
|
-
children: React.ReactNode;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
declare interface Props_33 {
|
|
1298
|
-
items: string[];
|
|
1299
|
-
available?: {
|
|
1300
|
-
value: string;
|
|
1301
|
-
text: string;
|
|
1302
|
-
}[];
|
|
1303
|
-
title: string;
|
|
1304
|
-
noData: string;
|
|
1305
|
-
onChange: (items: string[]) => void;
|
|
1306
|
-
loading?: boolean;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
declare interface Props_34 {
|
|
1310
|
-
context: GuillotinaCommonObject;
|
|
1311
|
-
schema: GuillotinaSchema;
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
declare interface Props_35 {
|
|
1315
|
-
AddButton?: React.FC<CreateButtonProps>;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
declare interface Props_36 {
|
|
1319
|
-
aRef?: React.Ref<HTMLAnchorElement>;
|
|
1320
|
-
model: ItemModel<SearchItem | GuillotinaCommonObject>;
|
|
1321
|
-
children: React.ReactNode;
|
|
1322
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
declare interface Props_37 {
|
|
1326
|
-
children: React.ReactNode;
|
|
1327
|
-
onLogout: () => void;
|
|
1328
|
-
auth: Auth;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
declare interface Props_38 {
|
|
1332
|
-
currentSchema: string;
|
|
1333
|
-
setCurrentSchema: (schema: string) => void;
|
|
1334
|
-
schemas: string[];
|
|
1335
|
-
auth: Auth;
|
|
1336
|
-
onLogin?: () => void;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
declare interface Props_39 {
|
|
1340
|
-
current: number;
|
|
1341
|
-
total: number;
|
|
1342
|
-
doPaginate: (page: number) => void;
|
|
1343
|
-
pager: number;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
declare interface Props_4 {
|
|
1347
|
-
className?: string;
|
|
1348
|
-
classNameInput?: string;
|
|
1349
|
-
loading?: boolean;
|
|
1350
|
-
indeterminate?: boolean;
|
|
1351
|
-
backgroundColor?: string;
|
|
1352
|
-
borderColor?: string;
|
|
1353
|
-
dataTest?: string;
|
|
1354
|
-
onChange: (value: boolean) => void;
|
|
1355
|
-
id?: string;
|
|
1356
|
-
disabled?: boolean;
|
|
1357
|
-
checked?: boolean;
|
|
1358
|
-
children?: React.ReactNode;
|
|
1359
|
-
placeholder?: string;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
declare interface Props_40 {
|
|
1363
|
-
query?: string;
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
declare interface Props_41 {
|
|
1367
|
-
query?: string;
|
|
1368
|
-
options?: {
|
|
1369
|
-
value: string;
|
|
1370
|
-
text: string;
|
|
1371
|
-
}[];
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
declare interface Props_42 {
|
|
1375
|
-
query?: string;
|
|
1376
|
-
vocabularyName: string;
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
declare interface Props_43<T extends SearchOrCommonObject = SearchOrCommonObject> {
|
|
1380
|
-
model: ItemModel<T>;
|
|
1381
|
-
children: React.ReactNode;
|
|
1382
|
-
style?: IndexSignature;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
declare interface Props_44 {
|
|
1386
|
-
children: React.ReactNode;
|
|
1387
|
-
onSubmit: (data: IndexSignature) => void;
|
|
1388
|
-
actionName: string;
|
|
1389
|
-
formData?: IndexSignature;
|
|
1390
|
-
exclude?: string[];
|
|
1391
|
-
remotes?: IndexSignature;
|
|
1392
|
-
submitButton?: boolean;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
declare interface Props_45 {
|
|
1396
|
-
onSubmit: (data: IndexSignature) => void;
|
|
1397
|
-
actionName?: string;
|
|
1398
|
-
title?: string;
|
|
1399
|
-
dataTest?: string;
|
|
1400
|
-
loading?: boolean;
|
|
1401
|
-
type: string;
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
declare interface Props_46 {
|
|
1405
|
-
title: string;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
declare interface Props_5 {
|
|
1409
|
-
value?: string;
|
|
1410
|
-
dataTest?: string;
|
|
1411
|
-
onChange: (value: string) => void;
|
|
1412
|
-
placeholder?: string;
|
|
1413
|
-
id?: string;
|
|
1414
|
-
required?: boolean;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
declare interface Props_6 {
|
|
1418
|
-
schema: GuillotinaSchema;
|
|
1419
|
-
formData?: IndexSignature;
|
|
1420
|
-
onSubmit: (formData: IndexSignature, initialData: IndexSignature) => void;
|
|
1421
|
-
actionName: string;
|
|
1422
|
-
children?: React.ReactNode;
|
|
1423
|
-
exclude?: string[];
|
|
1424
|
-
remotes?: IndexSignature;
|
|
1425
|
-
submitButton?: boolean;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
declare interface Props_7 {
|
|
1429
|
-
children: React.ReactNode;
|
|
1430
|
-
className?: string;
|
|
1431
|
-
onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
1432
|
-
onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
1433
|
-
autoComplete?: string;
|
|
1434
|
-
title?: string;
|
|
1435
|
-
error?: string;
|
|
1436
|
-
dataTest?: string;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
declare interface Props_8 {
|
|
1440
|
-
name?: string;
|
|
1441
|
-
icon?: ReactElement;
|
|
1442
|
-
iconPosition?: 'has-icons-left' | 'has-icons-right';
|
|
1443
|
-
error?: string;
|
|
1444
|
-
errorZoneClassName?: string;
|
|
1445
|
-
autoComplete?: string;
|
|
1446
|
-
className?: string;
|
|
1447
|
-
widget?: string;
|
|
1448
|
-
loading?: boolean;
|
|
1449
|
-
validator?: ((value: string) => boolean) | ((value: string) => boolean)[];
|
|
1450
|
-
errorMessage?: string;
|
|
1451
|
-
dataTest?: string;
|
|
1452
|
-
autofocus?: boolean;
|
|
1453
|
-
onChange: (value: string) => void | undefined;
|
|
1454
|
-
type?: string;
|
|
1455
|
-
value?: string;
|
|
1456
|
-
required?: boolean;
|
|
1457
|
-
id?: string;
|
|
1458
|
-
placeholder?: string;
|
|
1459
|
-
disabled?: boolean;
|
|
1460
|
-
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
declare interface Props_9 {
|
|
1464
|
-
value: string;
|
|
1465
|
-
dataTest: string;
|
|
1466
|
-
onChange: (value: string) => void;
|
|
1467
|
-
placeholder?: string;
|
|
1468
|
-
id?: string;
|
|
1469
|
-
required?: boolean;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
declare interface PropsClient {
|
|
1473
|
-
children: React.ReactNode;
|
|
1474
|
-
client: GuillotinaClient;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
/**
|
|
1478
|
-
* Checkbox component to select ONE item.
|
|
1479
|
-
*/
|
|
1480
|
-
declare interface PropsItemCheckbox {
|
|
1481
|
-
item: SearchItem;
|
|
1482
|
-
dataTest?: string;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
/**
|
|
1486
|
-
* Actions to apply after select some items
|
|
1487
|
-
* Ex: Delete, Move, Copy...
|
|
1488
|
-
*/
|
|
1489
|
-
declare interface PropsItemsActionsProvider {
|
|
1490
|
-
items: SearchItem[];
|
|
1491
|
-
children: React.ReactNode;
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
declare interface PropsTraversal {
|
|
1495
|
-
client: GuillotinaClient;
|
|
1496
|
-
auth: Auth;
|
|
1497
|
-
state: GuillotinaGlobalState;
|
|
1498
|
-
dispatch: Dispatch<{
|
|
1499
|
-
type: GuillotinaReducerActionTypes;
|
|
1500
|
-
payload: IndexSignature;
|
|
1501
|
-
}>;
|
|
1502
|
-
registry: IManageRegistry;
|
|
1503
|
-
flash?: (action: string, result: string) => void;
|
|
1504
|
-
url: string;
|
|
1505
|
-
children?: React.ReactNode;
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
export declare const REGEX_EMAIL: RegExp;
|
|
1509
|
-
|
|
1510
|
-
export declare const REGEX_HEX_COLOR: RegExp;
|
|
1511
|
-
|
|
1512
|
-
export declare const REGEX_NUMBER: RegExp;
|
|
1513
|
-
|
|
1514
|
-
export declare const REGEX_URL: RegExp;
|
|
1515
|
-
|
|
1516
|
-
export declare interface RegistryProperties {
|
|
1517
|
-
Buttons: default_2.ReactElement<{
|
|
1518
|
-
Ctx?: Traversal;
|
|
1519
|
-
}>;
|
|
1520
|
-
Panels: default_2.ReactElement<{
|
|
1521
|
-
Ctx?: Traversal;
|
|
1522
|
-
}>;
|
|
1523
|
-
default: string[];
|
|
1524
|
-
ignoreField: string[];
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
export declare interface RegistrySchema {
|
|
1528
|
-
filters: RegistrySchemaFilter[];
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
export declare interface RegistrySchemaFilter {
|
|
1532
|
-
attribute_key: string;
|
|
1533
|
-
label: string;
|
|
1534
|
-
type: string;
|
|
1535
|
-
values?: {
|
|
1536
|
-
value: string;
|
|
1537
|
-
text: string;
|
|
1538
|
-
}[];
|
|
1539
|
-
vocabulary?: string;
|
|
1540
|
-
input_type?: string;
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
export declare interface RegistrySortValue {
|
|
1544
|
-
direction: 'asc' | 'des';
|
|
1545
|
-
key: string;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
export declare function RemoveItems(props: Props_2): JSX.Element;
|
|
1549
|
-
|
|
1550
|
-
export declare function RenderField({ value, Widget, schema }: RenderFieldProps): JSX.Element | JSX.Element[] | PlainType;
|
|
1551
|
-
|
|
1552
|
-
export declare function RenderFieldComponent({ schema, field, val, modifyContent, }: RenderFieldComponentProps): JSX.Element;
|
|
1553
|
-
|
|
1554
|
-
declare interface RenderFieldComponentProps {
|
|
1555
|
-
schema: GuillotinaSchemaProperty;
|
|
1556
|
-
field: string;
|
|
1557
|
-
val: EditableFieldValue;
|
|
1558
|
-
modifyContent?: boolean;
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
declare interface RenderFieldProps {
|
|
1562
|
-
value: EditableFieldValue;
|
|
1563
|
-
Widget?: React.ComponentType<{
|
|
1564
|
-
value: EditableFieldValue;
|
|
1565
|
-
schema?: GuillotinaSchemaProperty;
|
|
1566
|
-
modifyContent?: boolean;
|
|
1567
|
-
}>;
|
|
1568
|
-
schema?: GuillotinaSchemaProperty;
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
export declare function RequiredFieldsForm({ loading, onSubmit, actionName, title, dataTest, type, }: Props_45): JSX.Element;
|
|
1572
|
-
|
|
1573
|
-
export declare class RestClient {
|
|
1574
|
-
url: string;
|
|
1575
|
-
container: string;
|
|
1576
|
-
auth: Auth;
|
|
1577
|
-
constructor(url: string, container: string, auth: Auth);
|
|
1578
|
-
request(path: string, data?: RequestInit, headers?: HeadersInit, signal?: AbortSignal): Promise<Response>;
|
|
1579
|
-
getHeaders(): HeadersInit;
|
|
1580
|
-
post(path: string, data: unknown): Promise<Response>;
|
|
1581
|
-
get(path: string, signal?: AbortSignal): Promise<Response>;
|
|
1582
|
-
put(path: string, data: unknown): Promise<Response>;
|
|
1583
|
-
patch(path: string, data: unknown): Promise<Response>;
|
|
1584
|
-
upload(path: string, data: LightFile): Promise<Response>;
|
|
1585
|
-
delete(path: string, data: unknown): Promise<Response>;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
export declare type ReturnSearch<T> = {
|
|
1589
|
-
items: T[];
|
|
1590
|
-
items_total: number;
|
|
1591
|
-
};
|
|
1592
|
-
|
|
1593
|
-
export declare type ReturnSearchCompatible<T> = {
|
|
1594
|
-
member: T[];
|
|
1595
|
-
items_count: number;
|
|
1596
|
-
items: T[];
|
|
1597
|
-
items_total: number;
|
|
1598
|
-
};
|
|
1599
|
-
|
|
1600
|
-
export declare function RItem({ item, search, columns }: RItemProps): JSX.Element;
|
|
1601
|
-
|
|
1602
|
-
declare interface RItemProps {
|
|
1603
|
-
item: SearchItem;
|
|
1604
|
-
search: string;
|
|
1605
|
-
columns: ItemColumn<SearchItem | GuillotinaCommonObject>[];
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
export declare interface Roleperm {
|
|
1609
|
-
permission: string;
|
|
1610
|
-
role: string;
|
|
1611
|
-
setting: Setting;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
export declare const SearchInput: ({ onChange, error, errorZoneClassName, traversal, path, qs, queryCondition, value, btnClass, dataTestWrapper, dataTestSearchInput, dataTestItem, renderTextItemOption, typeNameQuery, labelProperty, }: Props_14) => JSX.Element;
|
|
1615
|
-
|
|
1616
|
-
export declare const SearchInputList: ({ onChange, error, errorZoneClassName, traversal, path, qs, queryCondition, value, btnClass, dataTestWrapper, dataTestSearchInput, dataTestItem, renderTextItemOption, typeNameQuery, labelProperty, }: Props_15) => JSX.Element;
|
|
1617
|
-
|
|
1618
|
-
export declare type SearchItem = {
|
|
1619
|
-
id: string;
|
|
1620
|
-
parent_uuid: string;
|
|
1621
|
-
path: string;
|
|
1622
|
-
tid: string;
|
|
1623
|
-
depth: number;
|
|
1624
|
-
description: string;
|
|
1625
|
-
access_roles: string[];
|
|
1626
|
-
access_users: string[];
|
|
1627
|
-
contributors: string[];
|
|
1628
|
-
tags: string[];
|
|
1629
|
-
creators: string[];
|
|
1630
|
-
} & ItemsPropertyObject;
|
|
1631
|
-
|
|
1632
|
-
export declare function SearchLabels({ query }: Props_40): JSX.Element | null;
|
|
1633
|
-
|
|
1634
|
-
export declare function SearchOptionsLabels({ query, options }: Props_41): JSX.Element | null;
|
|
1635
|
-
|
|
1636
|
-
export declare type SearchOrCommonObject = SearchItem | GuillotinaCommonObject;
|
|
1637
|
-
|
|
1638
|
-
export declare const SearchRenderField: ({ schema, value, modifyContent, }: SearchRenderFieldProps) => JSX.Element;
|
|
1639
|
-
|
|
1640
|
-
declare interface SearchRenderFieldProps {
|
|
1641
|
-
schema: GuillotinaSchemaProperty;
|
|
1642
|
-
value: string | string[];
|
|
1643
|
-
modifyContent: boolean;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
export declare function SearchVocabularyLabels({ query, vocabularyName }: Props_42): JSX.Element | null;
|
|
1647
|
-
|
|
1648
|
-
export declare const Select: ForwardRefExoticComponent<Props_10 & RefAttributes<HTMLSelectElement>>;
|
|
1649
|
-
|
|
1650
|
-
export declare const SelectVocabulary: ForwardRefExoticComponent<Props_11 & RefAttributes<HTMLSelectElement>>;
|
|
1651
|
-
|
|
1652
|
-
export declare enum Setting {
|
|
1653
|
-
Allow = "Allow",
|
|
1654
|
-
AllowSingle = "AllowSingle",
|
|
1655
|
-
Deny = "Deny",
|
|
1656
|
-
Unset = "Unset"
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
export declare class Sharing {
|
|
1660
|
-
local: GuillotinaSharingMap;
|
|
1661
|
-
inherit: GuillotinaSharingInheritItem[];
|
|
1662
|
-
constructor(element: GuillotinaSharing | undefined);
|
|
1663
|
-
get roles(): string[];
|
|
1664
|
-
getRole(role: string): IndexSignature<string>;
|
|
1665
|
-
get principals(): string[];
|
|
1666
|
-
getPrincipals(principal: string): IndexSignature<string>;
|
|
1667
|
-
get prinrole(): string[];
|
|
1668
|
-
getPrinroles(role: string): IndexSignature<string>;
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
export declare function sleep(ms: number): Promise<void>;
|
|
1672
|
-
|
|
1673
|
-
declare interface State<T> {
|
|
1674
|
-
loading?: boolean;
|
|
1675
|
-
isError?: boolean;
|
|
1676
|
-
errorMessage?: string;
|
|
1677
|
-
result?: T;
|
|
1678
|
-
response?: unknown;
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
declare interface State_2 {
|
|
1682
|
-
data?: GuillotinaVocabulary;
|
|
1683
|
-
loading: boolean;
|
|
1684
|
-
error: any;
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
export declare function stringToSlug(str: string): string;
|
|
1688
|
-
|
|
1689
|
-
export declare function Table({ headers, children, className }: Props_31): JSX.Element;
|
|
1690
|
-
|
|
1691
|
-
export declare function TabsPanel<T extends Record<string, unknown> = Record<string, unknown>>({ tabs, currentTab, rightToolbar, fallback, ...restProps }: TabsPanelPropsWithChildren<T>): JSX.Element;
|
|
1692
|
-
|
|
1693
|
-
declare interface TabsPanelProps {
|
|
1694
|
-
tabs: IndexSignature;
|
|
1695
|
-
currentTab: string;
|
|
1696
|
-
rightToolbar?: default_2.ReactNode;
|
|
1697
|
-
fallback?: default_2.ComponentType<{
|
|
1698
|
-
title: string;
|
|
1699
|
-
}>;
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
declare type TabsPanelPropsWithChildren<T = Record<string, unknown>> = TabsPanelProps & T;
|
|
1703
|
-
|
|
1704
|
-
export declare const Tag: ({ name, id, onRemove, size, color, }: Props_29) => JSX.Element;
|
|
1705
|
-
|
|
1706
|
-
export declare function TagsWidget({ items, available, title, noData, onChange, loading, }: Props_33): JSX.Element;
|
|
1707
|
-
|
|
1708
|
-
export declare function TdLink({ model, children, style }: Props_43): JSX.Element;
|
|
1709
|
-
|
|
1710
|
-
export declare const Textarea: ForwardRefExoticComponent<Props_13 & RefAttributes<HTMLTextAreaElement>>;
|
|
1711
|
-
|
|
1712
|
-
export declare const toQueryString: (params: IndexSignature<string>) => string;
|
|
1713
|
-
|
|
1714
|
-
export declare interface Transition {
|
|
1715
|
-
'@id': string;
|
|
1716
|
-
title: string;
|
|
1717
|
-
metadata: IndexSignature;
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
export declare class Traversal {
|
|
1721
|
-
private dispatch;
|
|
1722
|
-
state: GuillotinaGlobalState;
|
|
1723
|
-
client: GuillotinaClient;
|
|
1724
|
-
registry: IManageRegistry;
|
|
1725
|
-
url: string;
|
|
1726
|
-
auth: Auth;
|
|
1727
|
-
constructor({ flash, ...props }: PropsTraversal);
|
|
1728
|
-
refresh({ transparent }?: {
|
|
1729
|
-
transparent?: boolean | undefined;
|
|
1730
|
-
}): void;
|
|
1731
|
-
get path(): string;
|
|
1732
|
-
get pathPrefix(): string;
|
|
1733
|
-
get context(): GuillotinaCommonObject;
|
|
1734
|
-
get containerPath(): string;
|
|
1735
|
-
apply(data: IndexSignature): void;
|
|
1736
|
-
flash(message: string, type: string): void;
|
|
1737
|
-
clearFlash(): void;
|
|
1738
|
-
doAction(action: string, params?: {}): void;
|
|
1739
|
-
cancelAction(): void;
|
|
1740
|
-
hasPerm(permission: string): boolean;
|
|
1741
|
-
filterTabs(tabs: IndexSignature, tabsPermissions: IndexSignature): IndexSignature<any>;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
export declare const TraversalContext: Context<Traversal | null>;
|
|
1745
|
-
|
|
1746
|
-
export declare function TraversalProvider({ children, ...props }: PropsTraversal & {
|
|
1747
|
-
children: React.ReactNode;
|
|
1748
|
-
}): JSX_2.Element;
|
|
1749
|
-
|
|
1750
|
-
export declare function useConfig(cfg?: {}): IConfig;
|
|
1751
|
-
|
|
1752
|
-
export declare function useCrudContext<T>(): {
|
|
1753
|
-
Ctx: Traversal;
|
|
1754
|
-
patch: (data?: {}, endpoint?: string, body?: boolean) => Promise<State<T>>;
|
|
1755
|
-
del: (data?: {}, endpoint?: string, body?: boolean) => Promise<State<T>>;
|
|
1756
|
-
post: (data?: {}, endpoint?: string, body?: boolean) => Promise<State<T>>;
|
|
1757
|
-
get: (endpoint?: string) => Promise<State<T>>;
|
|
1758
|
-
loading?: boolean;
|
|
1759
|
-
isError?: boolean;
|
|
1760
|
-
errorMessage?: string;
|
|
1761
|
-
result?: T | undefined;
|
|
1762
|
-
response?: unknown;
|
|
1763
|
-
};
|
|
1764
|
-
|
|
1765
|
-
export declare function useGuillotinaClient(): GuillotinaClient;
|
|
1766
|
-
|
|
1767
|
-
export declare const useItemsActions: () => {
|
|
1768
|
-
onAction: (action: string) => void;
|
|
1769
|
-
onSelectOneItem: (item: SearchItem) => void;
|
|
1770
|
-
onSelectAllItems: (chedked: boolean) => void;
|
|
1771
|
-
selected: {
|
|
1772
|
-
[key: string]: boolean;
|
|
1773
|
-
all: boolean;
|
|
1774
|
-
};
|
|
1775
|
-
};
|
|
1776
|
-
|
|
1777
|
-
export declare const useLocation: () => [URLSearchParams, (to: IndexSignature, replace?: boolean) => void, (param: string) => void];
|
|
1778
|
-
|
|
1779
|
-
export declare function UserCtx(): JSX.Element;
|
|
1780
|
-
|
|
1781
|
-
export declare function useRegistry(data: Partial<IRegistry>): IManageRegistry;
|
|
1782
|
-
|
|
1783
|
-
export declare const useRemoteField: (initial: IndexSignature<string[]>) => [IndexSignature<string[]>, (name: string) => (value: string[]) => void];
|
|
1784
|
-
|
|
1785
|
-
export declare const UserForm: ({ children, actionName, onSubmit, formData, exclude, remotes, submitButton, }: Props_44) => JSX.Element;
|
|
1786
|
-
|
|
1787
|
-
export declare function UsersCtx(): JSX.Element;
|
|
1788
|
-
|
|
1789
|
-
export declare function UsersToolbar(): JSX.Element;
|
|
1790
|
-
|
|
1791
|
-
export declare function useTraversal(): Traversal;
|
|
1792
|
-
|
|
1793
|
-
export declare function useVocabulary(vocabularyName: string, path?: string): State_2;
|
|
1794
|
-
|
|
1795
|
-
export declare const VocabularyRenderField: ({ schema, value, modifyContent, }: VocabularyRenderFieldProps) => JSX.Element;
|
|
1796
|
-
|
|
1797
|
-
declare interface VocabularyRenderFieldProps {
|
|
1798
|
-
schema: GuillotinaSchemaProperty;
|
|
1799
|
-
value: string | string[];
|
|
1800
|
-
modifyContent: boolean;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
export declare interface Workflow {
|
|
1804
|
-
'@id': string;
|
|
1805
|
-
history: WorkflowHistory[];
|
|
1806
|
-
transitions: Transition[];
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
export declare interface WorkflowHistory {
|
|
1810
|
-
actor: string;
|
|
1811
|
-
comments: string;
|
|
1812
|
-
time: string;
|
|
1813
|
-
title: string;
|
|
1814
|
-
type: string;
|
|
1815
|
-
data: WorkflowHistoryData;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
export declare interface WorkflowHistoryData {
|
|
1819
|
-
action: null;
|
|
1820
|
-
review_state: string;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
export { }
|
|
1
|
+
export * from './src/guillo-gmi/index'
|
|
2
|
+
export {}
|