@guillotinaweb/react-gmi 0.34.2 → 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.
Files changed (126) hide show
  1. package/README.md +20 -8
  2. package/dist/css/style.css +17238 -7861
  3. package/dist/css/style.css.map +1 -1
  4. package/dist/index.d.ts +2 -1821
  5. package/dist/react-gmi.js +15811 -24301
  6. package/dist/react-gmi.js.map +1 -1
  7. package/dist/react-gmi.modern.js +15789 -24428
  8. package/dist/react-gmi.modern.js.map +1 -1
  9. package/dist/src/guillo-gmi/actions/add_item.d.ts +5 -0
  10. package/dist/src/guillo-gmi/actions/change_pass.d.ts +1 -0
  11. package/dist/src/guillo-gmi/actions/copy_item.d.ts +6 -0
  12. package/dist/src/guillo-gmi/actions/copy_items.d.ts +7 -0
  13. package/dist/src/guillo-gmi/actions/index.d.ts +2 -0
  14. package/dist/src/guillo-gmi/actions/move_item.d.ts +6 -0
  15. package/dist/src/guillo-gmi/actions/move_items.d.ts +7 -0
  16. package/dist/src/guillo-gmi/actions/remove_item.d.ts +6 -0
  17. package/dist/src/guillo-gmi/actions/remove_items.d.ts +7 -0
  18. package/dist/src/guillo-gmi/components/Link.d.ts +10 -0
  19. package/dist/src/guillo-gmi/components/TdLink.d.ts +10 -0
  20. package/dist/src/guillo-gmi/components/behavior_view.d.ts +8 -0
  21. package/dist/src/guillo-gmi/components/behaviors/iattachment.d.ts +11 -0
  22. package/dist/src/guillo-gmi/components/behaviors/idublincore.d.ts +10 -0
  23. package/dist/src/guillo-gmi/components/behaviors/iimageattachment.d.ts +9 -0
  24. package/dist/src/guillo-gmi/components/behaviors/imultiattachment.d.ts +11 -0
  25. package/dist/src/guillo-gmi/components/behaviors/imultiimageattachment.d.ts +11 -0
  26. package/dist/src/guillo-gmi/components/behaviors/imultiimageorderedattachment.d.ts +11 -0
  27. package/dist/src/guillo-gmi/components/behaviors/iworkflow.d.ts +1 -0
  28. package/dist/src/guillo-gmi/components/context_toolbar.d.ts +9 -0
  29. package/dist/src/guillo-gmi/components/error_boundary.d.ts +3 -0
  30. package/dist/src/guillo-gmi/components/error_zone.d.ts +7 -0
  31. package/dist/src/guillo-gmi/components/fields/downloadField.d.ts +11 -0
  32. package/dist/src/guillo-gmi/components/fields/editComponent.d.ts +14 -0
  33. package/dist/src/guillo-gmi/components/fields/editableField.d.ts +12 -0
  34. package/dist/src/guillo-gmi/components/fields/renderField.d.ts +33 -0
  35. package/dist/src/guillo-gmi/components/flash.d.ts +1 -0
  36. package/dist/src/guillo-gmi/components/guillotina.d.ts +12 -0
  37. package/dist/src/guillo-gmi/components/index.d.ts +56 -0
  38. package/dist/src/guillo-gmi/components/input/button.d.ts +11 -0
  39. package/dist/src/guillo-gmi/components/input/checkbox.d.ts +17 -0
  40. package/dist/src/guillo-gmi/components/input/dropdown.d.ts +14 -0
  41. package/dist/src/guillo-gmi/components/input/email.d.ts +10 -0
  42. package/dist/src/guillo-gmi/components/input/form.d.ts +12 -0
  43. package/dist/src/guillo-gmi/components/input/form_builder.d.ts +14 -0
  44. package/dist/src/guillo-gmi/components/input/index.d.ts +14 -0
  45. package/dist/src/guillo-gmi/components/input/input.d.ts +26 -0
  46. package/dist/src/guillo-gmi/components/input/input_list.d.ts +9 -0
  47. package/dist/src/guillo-gmi/components/input/password.d.ts +11 -0
  48. package/dist/src/guillo-gmi/components/input/search_input.d.ts +21 -0
  49. package/dist/src/guillo-gmi/components/input/search_input_list.d.ts +21 -0
  50. package/dist/src/guillo-gmi/components/input/select.d.ts +24 -0
  51. package/dist/src/guillo-gmi/components/input/select_vocabulary.d.ts +14 -0
  52. package/dist/src/guillo-gmi/components/input/textarea.d.ts +14 -0
  53. package/dist/src/guillo-gmi/components/input/upload.d.ts +8 -0
  54. package/dist/src/guillo-gmi/components/item.d.ts +22 -0
  55. package/dist/src/guillo-gmi/components/layout.d.ts +8 -0
  56. package/dist/src/guillo-gmi/components/login.d.ts +10 -0
  57. package/dist/src/guillo-gmi/components/modal.d.ts +23 -0
  58. package/dist/src/guillo-gmi/components/notallowed.d.ts +1 -0
  59. package/dist/src/guillo-gmi/components/notfound.d.ts +1 -0
  60. package/dist/src/guillo-gmi/components/pagination.d.ts +8 -0
  61. package/dist/src/guillo-gmi/components/panel/actions.d.ts +1 -0
  62. package/dist/src/guillo-gmi/components/panel/addons.d.ts +1 -0
  63. package/dist/src/guillo-gmi/components/panel/behaviors.d.ts +1 -0
  64. package/dist/src/guillo-gmi/components/panel/index.d.ts +4 -0
  65. package/dist/src/guillo-gmi/components/panel/items.d.ts +1 -0
  66. package/dist/src/guillo-gmi/components/panel/permissions.d.ts +7 -0
  67. package/dist/src/guillo-gmi/components/panel/permissions_prinperm.d.ts +17 -0
  68. package/dist/src/guillo-gmi/components/panel/permissions_prinrole.d.ts +17 -0
  69. package/dist/src/guillo-gmi/components/panel/permissions_roleperm.d.ts +17 -0
  70. package/dist/src/guillo-gmi/components/panel/properties.d.ts +1 -0
  71. package/dist/src/guillo-gmi/components/path.d.ts +1 -0
  72. package/dist/src/guillo-gmi/components/properties_view.d.ts +7 -0
  73. package/dist/src/guillo-gmi/components/search_labels.d.ts +5 -0
  74. package/dist/src/guillo-gmi/components/search_options_labels.d.ts +9 -0
  75. package/dist/src/guillo-gmi/components/search_vocabulary_labels.d.ts +6 -0
  76. package/dist/src/guillo-gmi/components/selected_items_actions.d.ts +48 -0
  77. package/dist/src/guillo-gmi/components/tabs.d.ts +13 -0
  78. package/dist/src/guillo-gmi/components/ui/delete.d.ts +8 -0
  79. package/dist/src/guillo-gmi/components/ui/icon.d.ts +7 -0
  80. package/dist/src/guillo-gmi/components/ui/index.d.ts +6 -0
  81. package/dist/src/guillo-gmi/components/ui/loading.d.ts +6 -0
  82. package/dist/src/guillo-gmi/components/ui/notification.d.ts +6 -0
  83. package/dist/src/guillo-gmi/components/ui/table.d.ts +7 -0
  84. package/dist/src/guillo-gmi/components/ui/tag.d.ts +9 -0
  85. package/dist/src/guillo-gmi/components/widgets/index.d.ts +1 -0
  86. package/dist/src/guillo-gmi/components/widgets/tags.d.ts +13 -0
  87. package/dist/src/guillo-gmi/contexts/index.d.ts +57 -0
  88. package/dist/src/guillo-gmi/forms/base.d.ts +12 -0
  89. package/dist/src/guillo-gmi/forms/required_fields.d.ts +11 -0
  90. package/dist/src/guillo-gmi/forms/users.d.ts +12 -0
  91. package/dist/src/guillo-gmi/hooks/useClickAway.d.ts +1 -0
  92. package/dist/src/guillo-gmi/hooks/useConfig.d.ts +19 -0
  93. package/dist/src/guillo-gmi/hooks/useCrudContext.d.ts +21 -0
  94. package/dist/src/guillo-gmi/hooks/useInput.d.ts +11 -0
  95. package/dist/src/guillo-gmi/hooks/useLocation.d.ts +2 -0
  96. package/dist/src/guillo-gmi/hooks/useMountedState.d.ts +1 -0
  97. package/dist/src/guillo-gmi/hooks/useRegistry.d.ts +95 -0
  98. package/dist/src/guillo-gmi/hooks/useRemoteField.d.ts +2 -0
  99. package/dist/src/guillo-gmi/hooks/useSetState.d.ts +6 -0
  100. package/dist/src/guillo-gmi/hooks/useVocabulary.d.ts +8 -0
  101. package/dist/src/guillo-gmi/index.d.ts +30 -0
  102. package/dist/src/guillo-gmi/lib/auth.d.ts +26 -0
  103. package/dist/src/guillo-gmi/lib/client.d.ts +61 -0
  104. package/dist/src/guillo-gmi/lib/helpers.d.ts +16 -0
  105. package/dist/src/guillo-gmi/lib/processResponse.d.ts +9 -0
  106. package/dist/src/guillo-gmi/lib/rest.d.ts +16 -0
  107. package/dist/src/guillo-gmi/lib/search.d.ts +2 -0
  108. package/dist/src/guillo-gmi/lib/utils.d.ts +5 -0
  109. package/dist/src/guillo-gmi/lib/validators.d.ts +12 -0
  110. package/dist/src/guillo-gmi/locales/compiled/ca.json.d.ts +818 -0
  111. package/dist/src/guillo-gmi/locales/compiled/en.json.d.ts +818 -0
  112. package/dist/src/guillo-gmi/locales/compiled/es.json.d.ts +818 -0
  113. package/dist/src/guillo-gmi/locales/generic_messages.d.ts +248 -0
  114. package/dist/src/guillo-gmi/models/index.d.ts +17 -0
  115. package/dist/src/guillo-gmi/models/sharing.d.ts +12 -0
  116. package/dist/src/guillo-gmi/reducers/guillotina.d.ts +35 -0
  117. package/dist/src/guillo-gmi/types/global.d.ts +11 -0
  118. package/dist/src/guillo-gmi/types/guillotina.d.ts +279 -0
  119. package/dist/src/guillo-gmi/views/application.d.ts +13 -0
  120. package/dist/src/guillo-gmi/views/base.d.ts +5 -0
  121. package/dist/src/guillo-gmi/views/container.d.ts +1 -0
  122. package/dist/src/guillo-gmi/views/folder.d.ts +1 -0
  123. package/dist/src/guillo-gmi/views/groups.d.ts +3 -0
  124. package/dist/src/guillo-gmi/views/item.d.ts +1 -0
  125. package/dist/src/guillo-gmi/views/users.d.ts +3 -0
  126. package/package.json +48 -40
@@ -0,0 +1,248 @@
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
+ };
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,35 @@
1
+ import { IndexSignature } from '../types/global';
2
+ import { GuillotinaCommonObject } from '../types/guillotina';
3
+ export interface GuillotinaGlobalState {
4
+ path: string;
5
+ loading: boolean;
6
+ context?: GuillotinaCommonObject;
7
+ flash: {
8
+ message?: string;
9
+ type?: string;
10
+ };
11
+ action: {
12
+ action?: string;
13
+ params?: IndexSignature;
14
+ };
15
+ permissions: IndexSignature;
16
+ errorStatus?: string;
17
+ registry: IndexSignature;
18
+ refresh?: number;
19
+ }
20
+ export declare const initialState: GuillotinaGlobalState;
21
+ export declare enum GuillotinaReducerActionTypes {
22
+ SET_PATH = "SET_PATH",
23
+ SET_CONTEXT = "SET_CONTEXT",
24
+ SET_ERROR = "SET_ERROR",
25
+ SET_FLASH = "SET_FLASH",
26
+ CLEAR_FLASH = "CLEAR_FLASH",
27
+ SET_ACTION = "SET_ACTION",
28
+ CLEAR_ACTION = "CLEAR_ACTION",
29
+ REFRESH = "REFRESH",
30
+ APPLY = "APPLY"
31
+ }
32
+ export declare function guillotinaReducer(state: GuillotinaGlobalState, action: {
33
+ type: GuillotinaReducerActionTypes;
34
+ payload: IndexSignature;
35
+ }): GuillotinaGlobalState;
@@ -0,0 +1,11 @@
1
+ import { GuillotinaFile } from './guillotina';
2
+ export interface LightFile {
3
+ filename: string;
4
+ data: ArrayBuffer | string;
5
+ 'content-type': string;
6
+ }
7
+ export interface IndexSignature<T = any> {
8
+ [key: string]: T;
9
+ }
10
+ export type EditableFieldValue = GuillotinaFile | LightFile | IndexSignature | string | string[] | boolean | Date | undefined | null;
11
+ export declare function getFilterInputValue(form: HTMLFormElement): string;
@@ -0,0 +1,279 @@
1
+ import { ItemModel } from '../models';
2
+ import { IndexSignature } from './global';
3
+ type ItemsPropertyObject = {
4
+ '@id': string;
5
+ '@name': string;
6
+ '@type': string;
7
+ '@uid': string;
8
+ '@absolute_url': string;
9
+ title: string;
10
+ creation_date: string;
11
+ modification_date: string;
12
+ uuid: string;
13
+ type_name: string;
14
+ };
15
+ export type GuillotinaCommonObject = {
16
+ type_name: string;
17
+ uuid: string;
18
+ is_folderish: boolean;
19
+ parent: GuillotinaParentObject;
20
+ length: number;
21
+ __behaviors__?: string[];
22
+ '@static_behaviors': string[];
23
+ 'guillotina.behaviors.dublincore.IDublinCore'?: IBehaviorDublinCore;
24
+ 'guillotina.contrib.workflows.interfaces.IWorkflowBehavior'?: IWorkflowBehavior;
25
+ 'guillotina.behaviors.attachment.IAttachment'?: {
26
+ file: GuillotinaFile;
27
+ };
28
+ 'guillotina.behaviors.attachment.IMultiAttachment'?: {
29
+ files: {
30
+ [key: string]: GuillotinaFile;
31
+ };
32
+ };
33
+ 'guillotina.contrib.image.behaviors.IImageAttachment'?: {
34
+ image: GuillotinaFile;
35
+ };
36
+ 'guillotina.contrib.image.behaviors.IMultiImageAttachment'?: {
37
+ images: {
38
+ [key: string]: GuillotinaFile;
39
+ };
40
+ };
41
+ 'guillotina.contrib.image.behaviors.IMultiImageOrderedAttachment'?: {
42
+ images: {
43
+ [key: string]: GuillotinaFile;
44
+ };
45
+ };
46
+ } & ItemsPropertyObject;
47
+ export type SearchItem = {
48
+ id: string;
49
+ parent_uuid: string;
50
+ path: string;
51
+ tid: string;
52
+ depth: number;
53
+ description: string;
54
+ access_roles: string[];
55
+ access_users: string[];
56
+ contributors: string[];
57
+ tags: string[];
58
+ creators: string[];
59
+ } & ItemsPropertyObject;
60
+ export interface IBehaviorDublinCore {
61
+ title: string;
62
+ description: string | null;
63
+ creation_date: string;
64
+ modification_date: string;
65
+ effective_date: string | null;
66
+ expiration_date: string | null;
67
+ creators: string[];
68
+ tags: string[] | null;
69
+ publisher: string | null;
70
+ contributors: string[];
71
+ }
72
+ export interface IWorkflowBehavior {
73
+ review_state: string;
74
+ history: WorkflowHistory[];
75
+ }
76
+ interface GuillotinaParentObject {
77
+ '@id': string;
78
+ '@name': string;
79
+ '@type': string;
80
+ '@uid': string;
81
+ }
82
+ export interface GuillotinaSchema {
83
+ title: string;
84
+ $schema: string;
85
+ type: string;
86
+ required: string[];
87
+ definitions: Definitions;
88
+ properties: GuillotinaSchemaProperties;
89
+ }
90
+ export interface GuillotinaSchemaProperties {
91
+ [key: string]: GuillotinaSchemaProperty | {
92
+ $ref: string;
93
+ }[];
94
+ }
95
+ export interface Definitions {
96
+ [key: string]: {
97
+ type: string;
98
+ properties: GuillotinaSchemaProperties;
99
+ required: string[];
100
+ title: string;
101
+ description: string;
102
+ };
103
+ }
104
+ export interface GuillotinaSchemaProperty {
105
+ type: string;
106
+ title: string;
107
+ widget?: string;
108
+ readonly?: boolean;
109
+ description?: string;
110
+ vocabularyName?: string;
111
+ vocabulary?: string[];
112
+ items?: GuillotinaSchemaProperty;
113
+ properties?: GuillotinaSchemaProperties;
114
+ additionalProperties?: GuillotinaSchemaProperties;
115
+ typeNameQuery?: string;
116
+ labelProperty?: string;
117
+ enum?: string[];
118
+ queryCondition?: string;
119
+ queryPath?: string;
120
+ }
121
+ export type GuillotinaFile = {
122
+ filename: string;
123
+ content_type: string;
124
+ extension: string;
125
+ size: number;
126
+ md5: string;
127
+ };
128
+ export interface GuillotinaVocabulary {
129
+ '@id': string;
130
+ items: GuillotinaVocabularyItem[];
131
+ items_total: number;
132
+ }
133
+ export interface GuillotinaVocabularyItem {
134
+ title: string;
135
+ token: string;
136
+ }
137
+ export interface GuillotinaSharing {
138
+ local: GuillotinaSharingMap;
139
+ inherit: GuillotinaSharingInheritItem[];
140
+ }
141
+ export interface GuillotinaSharingInheritItem extends GuillotinaSharingMap {
142
+ '@id': string;
143
+ }
144
+ export interface GuillotinaSharingMap {
145
+ roleperm: {
146
+ [key: string]: IndexSignature<string>;
147
+ };
148
+ prinperm: {
149
+ [key: string]: IndexSignature<string>;
150
+ };
151
+ prinrole: {
152
+ [key: string]: IndexSignature<string>;
153
+ };
154
+ }
155
+ export interface GuillotinaBehaviors {
156
+ static: string[];
157
+ dynamic: string[];
158
+ available: string[];
159
+ }
160
+ export interface AllPermissions {
161
+ [key: string]: AllPermissionsItem;
162
+ }
163
+ export interface AllPermissionsItem {
164
+ prinperm?: PrimPerm[];
165
+ prinrole?: Prinrole[];
166
+ roleperm?: Roleperm[];
167
+ perminhe?: Perminhe[];
168
+ }
169
+ export interface Prinrole {
170
+ principal: string;
171
+ role: string;
172
+ setting: Setting;
173
+ }
174
+ export interface Roleperm {
175
+ permission: string;
176
+ role: string;
177
+ setting: Setting;
178
+ }
179
+ export interface PrimPerm {
180
+ principal: string;
181
+ permission: string;
182
+ setting: Setting;
183
+ }
184
+ export interface Perminhe {
185
+ permission: string;
186
+ setting: Setting;
187
+ }
188
+ export declare enum Setting {
189
+ Allow = "Allow",
190
+ AllowSingle = "AllowSingle",
191
+ Deny = "Deny",
192
+ Unset = "Unset"
193
+ }
194
+ export interface Workflow {
195
+ '@id': string;
196
+ history: WorkflowHistory[];
197
+ transitions: Transition[];
198
+ }
199
+ export interface WorkflowHistory {
200
+ actor: string;
201
+ comments: string;
202
+ time: string;
203
+ title: string;
204
+ type: string;
205
+ data: WorkflowHistoryData;
206
+ }
207
+ export interface WorkflowHistoryData {
208
+ action: null;
209
+ review_state: string;
210
+ }
211
+ export interface Transition {
212
+ '@id': string;
213
+ title: string;
214
+ metadata: IndexSignature;
215
+ }
216
+ export interface Addons {
217
+ available: AddonAvailable[];
218
+ installed: string[];
219
+ }
220
+ export interface AddonAvailable {
221
+ id: string;
222
+ title: string;
223
+ dependencies: any[];
224
+ }
225
+ export interface RegistrySchema {
226
+ filters: RegistrySchemaFilter[];
227
+ }
228
+ export interface RegistrySchemaFilter {
229
+ attribute_key: string;
230
+ label: string;
231
+ type: string;
232
+ values?: {
233
+ value: string;
234
+ text: string;
235
+ }[];
236
+ vocabulary?: string;
237
+ input_type?: string;
238
+ }
239
+ export type ReturnSearch<T> = {
240
+ items: T[];
241
+ items_total: number;
242
+ };
243
+ export type ReturnSearchCompatible<T> = {
244
+ member: T[];
245
+ items_count: number;
246
+ items: T[];
247
+ items_total: number;
248
+ };
249
+ export type SearchOrCommonObject = SearchItem | GuillotinaCommonObject;
250
+ export interface ItemColumn<T extends SearchOrCommonObject = SearchOrCommonObject> {
251
+ key: string;
252
+ label: string;
253
+ isSortable?: boolean;
254
+ child: ({ model, link, search }: ItemColumnChild<T>) => React.ReactNode;
255
+ }
256
+ export interface ItemColumnChild<T extends SearchOrCommonObject = SearchOrCommonObject> {
257
+ model: ItemModel<T>;
258
+ link?: () => void;
259
+ search?: string;
260
+ }
261
+ export type GuillotinaUser = {
262
+ user_roles: string[];
263
+ user_groups: string[];
264
+ user_permissions: string[];
265
+ fullname: string;
266
+ email: string;
267
+ username: string;
268
+ } & GuillotinaCommonObject;
269
+ export type GuillotinaGroup = {
270
+ user_roles: string[];
271
+ users: string[];
272
+ } & GuillotinaCommonObject;
273
+ export type GuillotinaApplication = {
274
+ databases: string[];
275
+ } & GuillotinaCommonObject;
276
+ export type GuillotinaDatabase = {
277
+ containers: string[];
278
+ } & GuillotinaCommonObject;
279
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare function ApplicationCtx(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DatabaseCtx(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function CreateContainer(): import("react/jsx-runtime").JSX.Element;
4
+ export declare const messages: {
5
+ add_container: {
6
+ id: string;
7
+ defaultMessage: string;
8
+ };
9
+ container_created: {
10
+ id: string;
11
+ defaultMessage: string;
12
+ };
13
+ };
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ title: string;
3
+ }
4
+ export declare function PanelNotImplemented(props: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function ContainerCtx(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function FolderCtx(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function GroupToolbar(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function GroupsCtx(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function GroupCtx(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ItemCtx(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function UsersToolbar(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function UsersCtx(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function UserCtx(): import("react/jsx-runtime").JSX.Element;