@guillotinaweb/react-gmi 0.23.1 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/actions/add_item.d.ts +1 -1
- package/dist/actions/change_pass.d.ts +1 -1
- package/dist/actions/copy_item.d.ts +1 -1
- package/dist/actions/copy_items.d.ts +1 -1
- package/dist/actions/move_item.d.ts +1 -1
- package/dist/actions/move_items.d.ts +1 -1
- package/dist/actions/remove_item.d.ts +1 -1
- package/dist/actions/remove_items.d.ts +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/TdLink.d.ts +1 -1
- package/dist/components/behavior_view.d.ts +2 -2
- package/dist/components/behaviors/iattachment.d.ts +1 -1
- package/dist/components/behaviors/idublincore.d.ts +1 -1
- package/dist/components/behaviors/iimageattachment.d.ts +4 -0
- package/dist/components/behaviors/imultiattachment.d.ts +1 -1
- package/dist/components/behaviors/imultiimageattachment.d.ts +4 -0
- package/dist/components/behaviors/imultiimageorderedattachment.d.ts +4 -0
- package/dist/components/behaviors/iworkflow.d.ts +1 -0
- package/dist/components/context_toolbar.d.ts +2 -2
- package/dist/components/error_boundary.d.ts +4 -5
- package/dist/components/error_zone.d.ts +1 -1
- package/dist/components/fields/downloadField.d.ts +2 -1
- package/dist/components/fields/editableField.d.ts +1 -1
- package/dist/components/fields/renderField.d.ts +1 -3
- package/dist/components/flash.d.ts +1 -1
- package/dist/components/guillotina.d.ts +3 -2
- package/dist/components/index.d.ts +7 -2
- package/dist/components/input/button.d.ts +1 -1
- package/dist/components/input/checkbox.d.ts +1 -1
- package/dist/components/input/dropdown.d.ts +1 -1
- package/dist/components/input/email.d.ts +1 -1
- package/dist/components/input/form.d.ts +1 -1
- package/dist/components/input/form_builder.d.ts +1 -1
- package/dist/components/input/input_list.d.ts +2 -1
- package/dist/components/input/password.d.ts +1 -1
- package/dist/components/input/search_input.d.ts +1 -1
- package/dist/components/input/select_vocabulary.d.ts +1 -0
- package/dist/components/input/upload.d.ts +1 -1
- package/dist/components/item.d.ts +3 -3
- package/dist/components/layout.d.ts +1 -1
- package/dist/components/login.d.ts +1 -1
- package/dist/components/modal.d.ts +3 -3
- package/dist/components/notallowed.d.ts +1 -1
- package/dist/components/notfound.d.ts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/panel/actions.d.ts +1 -24
- package/dist/components/panel/addons.d.ts +1 -1
- package/dist/components/panel/behaviors.d.ts +1 -1
- package/dist/components/panel/items.d.ts +1 -1
- package/dist/components/panel/permissions.d.ts +2 -2
- package/dist/components/panel/permissions_prinperm.d.ts +1 -1
- package/dist/components/panel/permissions_prinrole.d.ts +1 -1
- package/dist/components/panel/permissions_roleperm.d.ts +1 -1
- package/dist/components/panel/properties.d.ts +1 -1
- package/dist/components/path.d.ts +1 -1
- package/dist/components/search_labels.d.ts +1 -0
- package/dist/components/search_options_labels.d.ts +1 -0
- package/dist/components/search_vocabulary_labels.d.ts +1 -0
- package/dist/components/selected_items_actions.d.ts +4 -27
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/ui/delete.d.ts +1 -1
- package/dist/components/ui/icon.d.ts +1 -1
- package/dist/components/ui/loading.d.ts +1 -1
- package/dist/components/ui/notification.d.ts +1 -1
- package/dist/components/ui/table.d.ts +1 -1
- package/dist/components/ui/tag.d.ts +3 -2
- package/dist/components/widgets/tags.d.ts +1 -1
- package/dist/contexts/index.d.ts +5 -5
- package/dist/css/style.css +31 -0
- package/dist/css/style.css.map +1 -1
- package/dist/forms/base.d.ts +1 -1
- package/dist/forms/required_fields.d.ts +1 -1
- package/dist/forms/users.d.ts +1 -1
- package/dist/hooks/useAsync.d.ts +3 -1
- package/dist/hooks/useAsyncFn.d.ts +3 -1
- package/dist/hooks/useLocation.d.ts +1 -1
- package/dist/hooks/useMountedState.d.ts +1 -1
- package/dist/hooks/useRegistry.d.ts +17 -3
- package/dist/hooks/useVocabulary.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/client.d.ts +12 -5
- package/dist/lib/helpers.d.ts +17 -0
- package/dist/lib/rest.d.ts +1 -1
- package/dist/locales/generic_messages.d.ts +370 -0
- package/dist/react-gmi.esm.js +6178 -701
- package/dist/react-gmi.esm.js.map +1 -1
- package/dist/react-gmi.js +6185 -704
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +5514 -660
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/react-gmi.umd.js +6186 -708
- package/dist/react-gmi.umd.js.map +1 -1
- package/dist/views/application.d.ts +15 -3
- package/dist/views/base.d.ts +1 -1
- package/dist/views/container.d.ts +1 -1
- package/dist/views/folder.d.ts +1 -1
- package/dist/views/groups.d.ts +3 -3
- package/dist/views/item.d.ts +1 -1
- package/dist/views/users.d.ts +3 -3
- package/package.json +17 -5
- package/dist/components/searchLabels.d.ts +0 -1
package/README.md
CHANGED
|
@@ -132,3 +132,12 @@ This project is sponsored by <a href="https://www.vinissimus.com">Vinissimus Win
|
|
|
132
132
|
<a href="https://www.vinissimus.com"><img src="https://cdn.vinissimus.com/front/static/images/vinissimus-logo.svg" /></a>
|
|
133
133
|
<br/>
|
|
134
134
|
<a href="https://iskra.cat"><img src="https://storage.googleapis.com/iskra/iskra-logo.png" /></a>
|
|
135
|
+
|
|
136
|
+
# TODO
|
|
137
|
+
[X] Test workflow
|
|
138
|
+
[X] Filter workflow
|
|
139
|
+
[X] Test multiples fields GMI, all selects, and files behaviors
|
|
140
|
+
[] Render tags and render values in properties form, use vocabulary label instead of vocabulary key
|
|
141
|
+
[] Add richtext
|
|
142
|
+
[X] Add scales in IImageAttachment
|
|
143
|
+
[] Guillotina, no elimina l'info de l'imatge de l'objecte quan es borra, si que elimina l¡imatge, fer test a guillotina de IImageAttachment i @delete
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function AddItem(props: any):
|
|
1
|
+
export function AddItem(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function ChangePassword(props: any):
|
|
1
|
+
export function ChangePassword(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function CopyItem(props: any):
|
|
1
|
+
export function CopyItem(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function CopyItems(props: any):
|
|
1
|
+
export function CopyItems(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function MoveItem(props: any):
|
|
1
|
+
export function MoveItem(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function MoveItems(props: any):
|
|
1
|
+
export function MoveItems(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function RemoveItem(props: any):
|
|
1
|
+
export function RemoveItem(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function RemoveItems(props: any):
|
|
1
|
+
export function RemoveItems(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function IWorkflow(): JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
declare var _default: import("react-intl/node_modules/@types/react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
|
|
2
|
+
WrappedComponent: import("react-intl/node_modules/@types/react").ComponentType<import("react-intl").WrappedComponentProps<any>>;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
@@ -7,6 +7,4 @@ export function RenderFieldComponent({ schema, field, val, modifyContent }: {
|
|
|
7
7
|
field: any;
|
|
8
8
|
val: any;
|
|
9
9
|
modifyContent: any;
|
|
10
|
-
}):
|
|
11
|
-
export const DEFAULT_VALUE_EDITABLE_FIELD: "Click to edit";
|
|
12
|
-
export const DEFAULT_VALUE_NO_EDITABLE_FIELD: " -- ";
|
|
10
|
+
}): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function Flash():
|
|
1
|
+
export function Flash(): JSX.Element;
|
|
@@ -16,7 +16,10 @@ export * from "./fields/renderField";
|
|
|
16
16
|
export * from "./fields/downloadField";
|
|
17
17
|
export * from "./behaviors/iattachment";
|
|
18
18
|
export * from "./behaviors/imultiattachment";
|
|
19
|
-
export * from "./behaviors/
|
|
19
|
+
export * from "./behaviors/iimageattachment";
|
|
20
|
+
export * from "./behaviors/imultiimageattachment";
|
|
21
|
+
export * from "./behaviors/imultiimageorderedattachment";
|
|
22
|
+
export * from "./behaviors/iworkflow";
|
|
20
23
|
export * from "./panel/actions";
|
|
21
24
|
export * from "./panel/addons";
|
|
22
25
|
export * from "./panel/behaviors";
|
|
@@ -42,7 +45,9 @@ export * from "./modal";
|
|
|
42
45
|
export * from "./notallowed";
|
|
43
46
|
export * from "./pagination";
|
|
44
47
|
export * from "./path";
|
|
45
|
-
export * from "./
|
|
48
|
+
export * from "./search_labels";
|
|
49
|
+
export * from "./search_options_labels";
|
|
50
|
+
export * from "./search_vocabulary_labels";
|
|
46
51
|
export * from "./tabs";
|
|
47
52
|
export * from "./selected_items_actions";
|
|
48
53
|
export * from "./TdLink";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export const InputList: any
|
|
1
|
+
export const InputList: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
2
|
+
import * as React from "react";
|
|
@@ -12,7 +12,7 @@ export function SearchInput({ onChange, error, errorZoneClassName, traversal, pa
|
|
|
12
12
|
dataTestSearchInput?: string;
|
|
13
13
|
dataTestItem?: string;
|
|
14
14
|
renderTextItemOption?: any;
|
|
15
|
-
}):
|
|
15
|
+
}): JSX.Element;
|
|
16
16
|
export namespace SearchInput {
|
|
17
17
|
namespace propTypes {
|
|
18
18
|
const onChange: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SelectVocabulary: any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function Item({ item, icon }: {
|
|
2
2
|
item: any;
|
|
3
3
|
icon: any;
|
|
4
|
-
}):
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
export function RItem({ item, search, columns }: {
|
|
6
6
|
item: any;
|
|
7
7
|
search: any;
|
|
8
8
|
columns: any;
|
|
9
|
-
}):
|
|
9
|
+
}): JSX.Element;
|
|
10
10
|
export function ItemTitle({ title, actions }: {
|
|
11
11
|
title: any;
|
|
12
12
|
actions: any;
|
|
13
|
-
}):
|
|
13
|
+
}): JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export function Modal(props: any):
|
|
1
|
+
export function Modal(props: any): JSX.Element;
|
|
2
2
|
export function Confirm({ message, onCancel, onConfirm, loading }: {
|
|
3
3
|
message: any;
|
|
4
4
|
onCancel: any;
|
|
5
5
|
onConfirm: any;
|
|
6
6
|
loading: any;
|
|
7
|
-
}):
|
|
7
|
+
}): JSX.Element;
|
|
8
8
|
export function PathTree({ title, defaultPath, children, onConfirm, onCancel, }: {
|
|
9
9
|
title: any;
|
|
10
10
|
defaultPath: any;
|
|
11
11
|
children: any;
|
|
12
12
|
onConfirm: any;
|
|
13
13
|
onCancel: any;
|
|
14
|
-
}):
|
|
14
|
+
}): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function NotAllowed():
|
|
1
|
+
export function NotAllowed(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function NotFound():
|
|
1
|
+
export function NotFound(): JSX.Element;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
export function PanelActions():
|
|
2
|
-
export namespace ACTIONS_OBJECT {
|
|
3
|
-
namespace DELETE {
|
|
4
|
-
const text: string;
|
|
5
|
-
const perms: string[];
|
|
6
|
-
const action: string;
|
|
7
|
-
}
|
|
8
|
-
namespace MOVE {
|
|
9
|
-
const text_1: string;
|
|
10
|
-
export { text_1 as text };
|
|
11
|
-
const perms_1: string[];
|
|
12
|
-
export { perms_1 as perms };
|
|
13
|
-
const action_1: string;
|
|
14
|
-
export { action_1 as action };
|
|
15
|
-
}
|
|
16
|
-
namespace COPY {
|
|
17
|
-
const text_2: string;
|
|
18
|
-
export { text_2 as text };
|
|
19
|
-
const perms_2: string[];
|
|
20
|
-
export { perms_2 as perms };
|
|
21
|
-
const action_2: string;
|
|
22
|
-
export { action_2 as action };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
export function PanelActions(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function PanelAddons(props: any):
|
|
1
|
+
export function PanelAddons(props: any): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function PanelBehaviors():
|
|
1
|
+
export function PanelBehaviors(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function PanelItems():
|
|
1
|
+
export function PanelItems(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function PanelProperties():
|
|
1
|
+
export function PanelProperties(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function Path():
|
|
1
|
+
export function Path(): false | JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function SearchLabels(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function SearchOptionsLabels(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function SearchVocabularyLabels(props: any): JSX.Element;
|
|
@@ -1,35 +1,12 @@
|
|
|
1
1
|
export function ItemsActionsProvider({ items, children }: {
|
|
2
2
|
items: any;
|
|
3
3
|
children: any;
|
|
4
|
-
}):
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
export function AllItemsCheckbox({ dataTest }: {
|
|
6
6
|
dataTest: any;
|
|
7
|
-
}):
|
|
7
|
+
}): JSX.Element;
|
|
8
8
|
export function ItemCheckbox({ item, dataTest }: {
|
|
9
9
|
item: any;
|
|
10
10
|
dataTest: any;
|
|
11
|
-
}):
|
|
12
|
-
export function ItemsActionsDropdown():
|
|
13
|
-
export namespace actions {
|
|
14
|
-
namespace DELETE {
|
|
15
|
-
const text: string;
|
|
16
|
-
const perms: string[];
|
|
17
|
-
const action: string;
|
|
18
|
-
}
|
|
19
|
-
namespace MOVE {
|
|
20
|
-
const text_1: string;
|
|
21
|
-
export { text_1 as text };
|
|
22
|
-
const perms_1: string[];
|
|
23
|
-
export { perms_1 as perms };
|
|
24
|
-
const action_1: string;
|
|
25
|
-
export { action_1 as action };
|
|
26
|
-
}
|
|
27
|
-
namespace COPY {
|
|
28
|
-
const text_2: string;
|
|
29
|
-
export { text_2 as text };
|
|
30
|
-
const perms_2: string[];
|
|
31
|
-
export { perms_2 as perms };
|
|
32
|
-
const action_2: string;
|
|
33
|
-
export { action_2 as action };
|
|
34
|
-
}
|
|
35
|
-
}
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export function ItemsActionsDropdown(): JSX.Element;
|
|
@@ -4,8 +4,8 @@ export function TabsPanel({ tabs, currentTab, rightToolbar, fallback, ...props }
|
|
|
4
4
|
currentTab: any;
|
|
5
5
|
rightToolbar: any;
|
|
6
6
|
fallback?: typeof FallbackTab;
|
|
7
|
-
}):
|
|
7
|
+
}): JSX.Element;
|
|
8
8
|
declare function FallbackTab({ title }: {
|
|
9
9
|
title: any;
|
|
10
|
-
}):
|
|
10
|
+
}): JSX.Element;
|
|
11
11
|
export {};
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function TraversalProvider({ children, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
children: any;
|
|
4
|
-
}):
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
export function useTraversal(): any;
|
|
6
6
|
export function ClientProvider({ children, client }: {
|
|
7
7
|
children: any;
|
|
8
8
|
client: any;
|
|
9
|
-
}):
|
|
9
|
+
}): JSX.Element;
|
|
10
10
|
export function useGuillotinaClient(): any;
|
|
11
|
-
export const AuthContext:
|
|
12
|
-
export const ClientContext:
|
|
13
|
-
export const TraversalContext:
|
|
11
|
+
export const AuthContext: import("react").Context<{}>;
|
|
12
|
+
export const ClientContext: import("react").Context<{}>;
|
|
13
|
+
export const TraversalContext: import("react").Context<{}>;
|
package/dist/css/style.css
CHANGED
|
@@ -10393,4 +10393,35 @@ section.main {
|
|
|
10393
10393
|
margin-right: 10px;
|
|
10394
10394
|
}
|
|
10395
10395
|
|
|
10396
|
+
.filters-items-view {
|
|
10397
|
+
display: grid;
|
|
10398
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
10399
|
+
align-items: center;
|
|
10400
|
+
column-gap: 15px;
|
|
10401
|
+
}
|
|
10402
|
+
.filters-items-view .field {
|
|
10403
|
+
margin-bottom: 0.75rem;
|
|
10404
|
+
}
|
|
10405
|
+
@media (max-width: 768px) {
|
|
10406
|
+
.filters-items-view {
|
|
10407
|
+
grid-template-columns: 1fr;
|
|
10408
|
+
}
|
|
10409
|
+
}
|
|
10410
|
+
|
|
10411
|
+
.wrapper-filters-info {
|
|
10412
|
+
display: grid;
|
|
10413
|
+
grid-template-columns: auto 1fr auto;
|
|
10414
|
+
align-items: center;
|
|
10415
|
+
gap: 10px;
|
|
10416
|
+
}
|
|
10417
|
+
|
|
10418
|
+
.wrapper-filters-tags {
|
|
10419
|
+
display: flex;
|
|
10420
|
+
gap: 10px;
|
|
10421
|
+
flex-wrap: wrap;
|
|
10422
|
+
}
|
|
10423
|
+
.wrapper-filters-tags .tags, .wrapper-filters-tags .tag {
|
|
10424
|
+
margin-bottom: 0px;
|
|
10425
|
+
}
|
|
10426
|
+
|
|
10396
10427
|
/*# sourceMappingURL=style.css.map */
|