@guillotinaweb/react-gmi 0.30.1-alpha.1 → 0.30.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/guillotina.d.ts +3 -3
- package/dist/components/item.d.ts +2 -3
- package/dist/components/properties_view.d.ts +2 -6
- package/dist/contexts/index.d.ts +4 -3
- package/dist/forms/base.d.ts +3 -3
- package/dist/hooks/useConfig.d.ts +2 -2
- package/dist/hooks/useRegistry.d.ts +32 -27
- package/dist/lib/client.d.ts +4 -15
- package/dist/lib/search.d.ts +1 -1
- package/dist/react-gmi.js +149 -126
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +149 -126
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/react-gmi.umd.js +149 -126
- package/dist/react-gmi.umd.js.map +1 -1
- package/dist/reducers/guillotina.d.ts +0 -8
- package/dist/types/guillotina.d.ts +9 -2
- package/package.json +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ItemModel } from '../models';
|
|
3
1
|
import { IndexSignature } from '../types/global';
|
|
4
2
|
import { GuillotinaCommonObject } from '../types/guillotina';
|
|
5
3
|
export interface GuillotinaGlobalState {
|
|
@@ -35,9 +33,3 @@ export declare function guillotinaReducer(state: GuillotinaGlobalState, action:
|
|
|
35
33
|
type: GuillotinaReducerActionTypes;
|
|
36
34
|
payload: IndexSignature;
|
|
37
35
|
}): GuillotinaGlobalState;
|
|
38
|
-
export interface IColumn {
|
|
39
|
-
key: string;
|
|
40
|
-
label: string;
|
|
41
|
-
isSortable: string;
|
|
42
|
-
child: (model: ItemModel, link: () => void, search: string) => React.ReactElement;
|
|
43
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ItemModel } from '../models';
|
|
2
3
|
import { IndexSignature } from './global';
|
|
3
4
|
type ItemsPropertyObject = {
|
|
4
5
|
'@id': string;
|
|
@@ -49,6 +50,7 @@ export type SearchItem = {
|
|
|
49
50
|
parent_uuid: string;
|
|
50
51
|
path: string;
|
|
51
52
|
tid: string;
|
|
53
|
+
depth: number;
|
|
52
54
|
description: string;
|
|
53
55
|
access_roles: string[];
|
|
54
56
|
access_users: string[];
|
|
@@ -243,10 +245,15 @@ export type ReturnSearchCompatible<T> = {
|
|
|
243
245
|
items_total: number;
|
|
244
246
|
};
|
|
245
247
|
export interface ItemColumn {
|
|
246
|
-
label: string;
|
|
247
248
|
key: string;
|
|
249
|
+
label: string;
|
|
248
250
|
isSortable?: boolean;
|
|
249
|
-
child: React.ReactNode;
|
|
251
|
+
child: ({ model, link, search }: ItemColumnChild) => React.ReactNode;
|
|
252
|
+
}
|
|
253
|
+
export interface ItemColumnChild {
|
|
254
|
+
model: ItemModel;
|
|
255
|
+
link?: () => void;
|
|
256
|
+
search?: string;
|
|
250
257
|
}
|
|
251
258
|
export type GuillotinaUser = {
|
|
252
259
|
user_roles: string[];
|
package/package.json
CHANGED