@griddo/ax 1.58.7 → 1.59.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/package.json +2 -2
- package/src/GlobalStore.tsx +3 -1
- package/src/api/checkgroups.tsx +1 -1
- package/src/api/domains.tsx +26 -0
- package/src/api/index.tsx +3 -1
- package/src/api/sites.tsx +25 -8
- package/src/api/utils.tsx +1 -1
- package/src/components/Browser/index.tsx +8 -3
- package/src/components/ElementsTooltip/index.tsx +23 -8
- package/src/components/ElementsTooltip/style.tsx +4 -5
- package/src/components/ErrorCenter/index.tsx +11 -1
- package/src/components/ErrorCenter/style.tsx +4 -3
- package/src/components/Fields/CheckGroup/index.tsx +5 -4
- package/src/components/Fields/ComponentArray/MixableComponentArray/AddItemButton/index.tsx +1 -0
- package/src/components/Fields/ReferenceField/Context/index.tsx +10 -6
- package/src/components/Fields/ReferenceField/ItemList/Item/index.tsx +2 -2
- package/src/components/Fields/ReferenceField/ItemList/index.tsx +15 -14
- package/src/components/FieldsBehavior/index.tsx +2 -1
- package/src/components/FloatingMenu/index.tsx +3 -1
- package/src/components/FloatingMenu/style.tsx +7 -5
- package/src/components/Gallery/GalleryPanel/DetailPanel/index.tsx +17 -19
- package/src/components/Gallery/GalleryPanel/DetailPanel/style.tsx +32 -19
- package/src/components/Gallery/style.tsx +1 -1
- package/src/components/Icon/components/Category.js +5 -6
- package/src/components/Icon/components/Refresh.js +12 -0
- package/src/components/Icon/svgs/Category.svg +1 -1
- package/src/components/Icon/svgs/Refresh.svg +3 -0
- package/src/components/Lists/style.tsx +10 -9
- package/src/components/MainWrapper/AppBar/index.tsx +16 -5
- package/src/components/MainWrapper/AppBar/style.tsx +2 -1
- package/src/components/SideModal/index.tsx +10 -4
- package/src/components/TableCounter/style.tsx +1 -4
- package/src/components/TableFilters/CategoryFilter/index.tsx +92 -0
- package/src/{modules/Content/HeaderMenus/Translations → components/TableFilters/CategoryFilter}/style.tsx +4 -3
- package/src/components/TableFilters/CustomizeFilters/index.tsx +52 -0
- package/src/components/TableFilters/CustomizeFilters/style.tsx +28 -0
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Live → components/TableFilters/LiveFilter}/index.tsx +18 -6
- package/src/{modules/Content/HeaderMenus/Live → components/TableFilters/LiveFilter}/style.tsx +0 -0
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Name → components/TableFilters/NameFilter}/index.tsx +18 -9
- package/src/{modules/Content/HeaderMenus/Name → components/TableFilters/NameFilter}/style.tsx +0 -0
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Site → components/TableFilters/SiteFilter}/index.tsx +3 -3
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Site → components/TableFilters/SiteFilter}/style.tsx +1 -1
- package/src/{modules/Content/HeaderMenus/Status → components/TableFilters/StatusFilter}/index.tsx +7 -4
- package/src/{modules/Content/HeaderMenus/Status → components/TableFilters/StatusFilter}/style.tsx +0 -0
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Translations → components/TableFilters/TranslationsFilter}/index.tsx +4 -4
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Translations → components/TableFilters/TranslationsFilter}/style.tsx +0 -0
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Types → components/TableFilters/TypeFilter}/index.tsx +13 -9
- package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Types → components/TableFilters/TypeFilter}/style.tsx +1 -1
- package/src/components/TableFilters/index.tsx +19 -0
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/Tag/style.tsx +10 -11
- package/src/components/index.tsx +19 -0
- package/src/containers/Domains/actions.tsx +51 -0
- package/src/containers/Domains/constants.tsx +5 -0
- package/src/containers/Domains/index.tsx +4 -0
- package/src/containers/Domains/interfaces.tsx +9 -0
- package/src/containers/Domains/reducer.tsx +22 -0
- package/src/containers/Gallery/actions.tsx +0 -1
- package/src/containers/PageEditor/actions.tsx +7 -0
- package/src/containers/PageEditor/utils.tsx +1 -1
- package/src/containers/Settings/Languages/constants.tsx +3 -3
- package/src/containers/Settings/Languages/index.tsx +2 -5
- package/src/containers/Sites/actions.tsx +3 -2
- package/src/containers/StructuredData/actions.tsx +62 -3
- package/src/containers/StructuredData/constants.tsx +4 -0
- package/src/containers/StructuredData/interfaces.tsx +13 -1
- package/src/containers/StructuredData/reducer.tsx +9 -1
- package/src/forms/editor.tsx +4 -0
- package/src/forms/elements.tsx +2 -5
- package/src/forms/index.tsx +2 -1
- package/src/forms/validators.tsx +12 -5
- package/src/helpers/arrays.tsx +12 -1
- package/src/helpers/index.tsx +4 -1
- package/src/helpers/strings.tsx +7 -0
- package/src/hooks/content.tsx +41 -0
- package/src/hooks/index.tsx +3 -1
- package/src/modules/Categories/CategoriesList/CategoryNav/NavItem/style.tsx +9 -9
- package/src/modules/Content/BulkHeader/TableHeader/index.tsx +95 -24
- package/src/modules/Content/BulkHeader/TableHeader/style.tsx +6 -19
- package/src/modules/Content/BulkHeader/index.tsx +16 -0
- package/src/modules/Content/ContentFilters/index.tsx +4 -4
- package/src/modules/Content/OptionTable/style.tsx +1 -1
- package/src/modules/Content/PageItem/atoms.tsx +28 -0
- package/src/modules/Content/PageItem/index.tsx +67 -24
- package/src/modules/Content/PageItem/style.tsx +14 -7
- package/src/modules/Content/hooks.tsx +27 -17
- package/src/modules/Content/index.tsx +53 -6
- package/src/modules/GlobalEditor/index.tsx +5 -11
- package/src/modules/GlobalSettings/Robots/Item/RobotsPanel/index.tsx +61 -0
- package/src/modules/GlobalSettings/Robots/Item/RobotsPanel/style.tsx +30 -0
- package/src/modules/GlobalSettings/Robots/Item/index.tsx +33 -0
- package/src/modules/GlobalSettings/Robots/Item/style.tsx +28 -0
- package/src/modules/GlobalSettings/Robots/index.tsx +120 -0
- package/src/modules/GlobalSettings/Robots/style.tsx +32 -0
- package/src/modules/GlobalSettings/index.tsx +26 -0
- package/src/modules/PageEditor/index.tsx +2 -5
- package/src/modules/Settings/Globals/style.tsx +1 -1
- package/src/modules/StructuredData/Form/ConnectedField/index.tsx +10 -2
- package/src/modules/StructuredData/Form/index.tsx +48 -9
- package/src/modules/StructuredData/Form/style.tsx +3 -6
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/index.tsx +84 -35
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/style.tsx +6 -25
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/index.tsx +10 -1
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/atoms.tsx +24 -3
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +53 -22
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/style.tsx +16 -9
- package/src/modules/StructuredData/StructuredDataList/OptionTable/style.tsx +1 -1
- package/src/modules/StructuredData/StructuredDataList/hooks.tsx +9 -2
- package/src/modules/StructuredData/StructuredDataList/index.tsx +45 -5
- package/src/routes/multisite.tsx +8 -0
- package/src/types/index.tsx +28 -11
- package/src/modules/Content/HeaderMenus/Live/index.tsx +0 -93
- package/src/modules/Content/HeaderMenus/Name/index.tsx +0 -52
- package/src/modules/Content/HeaderMenus/Translations/index.tsx +0 -62
- package/src/modules/Content/HeaderMenus/Types/index.tsx +0 -73
- package/src/modules/Content/HeaderMenus/Types/style.tsx +0 -34
- package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Live/style.tsx +0 -37
- package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Name/style.tsx +0 -29
- package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Status/index.tsx +0 -47
- package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Status/style.tsx +0 -30
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { Header } from "@ax/components/TableList/style";
|
|
3
|
-
|
|
4
|
-
const Types = styled(Header)<{ isActive: boolean }>`
|
|
5
|
-
width: 140px;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
&:hover {
|
|
8
|
-
color: ${(p) => p.theme.color.interactive01};
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
const IconsWrapper = styled.div`
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
svg {
|
|
17
|
-
margin-left: 4px;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
const InteractiveArrow = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
svg {
|
|
24
|
-
path {
|
|
25
|
-
fill: ${(p) => p.theme.color.interactive01};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
const ChecksWrapper = styled.div`
|
|
31
|
-
padding: ${(p) => p.theme.spacing.xs} ${(p) => p.theme.spacing.s};
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export { Types, IconsWrapper, InteractiveArrow, ChecksWrapper };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { Header } from "@ax/components/TableList/style";
|
|
3
|
-
|
|
4
|
-
const LiveOptions = styled(Header)<{ isActive: boolean }>`
|
|
5
|
-
width: 80px;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
&:hover {
|
|
8
|
-
color: ${(p) => p.theme.color.interactive01};
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
const IconsWrapper = styled.div`
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
svg {
|
|
17
|
-
margin-left: 4px;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
const InteractiveArrow = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
svg {
|
|
24
|
-
path {
|
|
25
|
-
fill: ${(p) => p.theme.color.interactive01};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
const ChecksWrapper = styled.div`
|
|
31
|
-
padding: ${(p) => p.theme.spacing.xs} ${(p) => p.theme.spacing.s} 0;
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
const MenuWrapper = styled.div`
|
|
35
|
-
position: relative;
|
|
36
|
-
`;
|
|
37
|
-
export { LiveOptions, IconsWrapper, InteractiveArrow, ChecksWrapper, MenuWrapper };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { Header } from "@ax/components/TableList/style";
|
|
3
|
-
|
|
4
|
-
const NameHeader = styled(Header)<{ isActive: boolean }>`
|
|
5
|
-
width: 100%;
|
|
6
|
-
&:hover {
|
|
7
|
-
color: ${(p) => p.theme.color.interactive01};
|
|
8
|
-
}
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
const IconsWrapper = styled.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
svg {
|
|
16
|
-
margin-left: 4px;
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
const InteractiveArrow = styled.div`
|
|
21
|
-
display: flex;
|
|
22
|
-
svg {
|
|
23
|
-
path {
|
|
24
|
-
fill: ${(p) => p.theme.color.interactive01};
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
export { NameHeader, IconsWrapper, InteractiveArrow };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Icon, FloatingMenu, ListTitle, ListItem } from "@ax/components";
|
|
4
|
-
|
|
5
|
-
import * as S from "./style";
|
|
6
|
-
|
|
7
|
-
const Status = ({ sortItems, sortedState }: IStatusProps) => {
|
|
8
|
-
const { isAscending, sortedByDate } = sortedState;
|
|
9
|
-
const sortByModifiedDate = (isAscending: boolean) => sortItems("modified", isAscending);
|
|
10
|
-
|
|
11
|
-
const sortOldestModifiedDate = () => sortByModifiedDate(true);
|
|
12
|
-
const sortMostRecentModifiedDate = () => sortByModifiedDate(false);
|
|
13
|
-
|
|
14
|
-
const SortedStateArrow = () =>
|
|
15
|
-
isAscending ? <Icon name="FullArrowUp" size="16" /> : <Icon name="FullArrowDown" size="16" />;
|
|
16
|
-
|
|
17
|
-
const Header = () => (
|
|
18
|
-
<S.Status isActive={sortedByDate}>
|
|
19
|
-
Status
|
|
20
|
-
<S.IconsWrapper>
|
|
21
|
-
{sortedByDate && <SortedStateArrow />}
|
|
22
|
-
<S.InteractiveArrow>
|
|
23
|
-
<Icon name="DownArrow" size="16" />
|
|
24
|
-
</S.InteractiveArrow>
|
|
25
|
-
</S.IconsWrapper>
|
|
26
|
-
</S.Status>
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<FloatingMenu Button={Header} position="left">
|
|
31
|
-
<ListTitle>Sort by modified date</ListTitle>
|
|
32
|
-
<ListItem isSelected={sortedByDate && !isAscending} onClick={sortMostRecentModifiedDate}>
|
|
33
|
-
Most recent
|
|
34
|
-
</ListItem>
|
|
35
|
-
<ListItem isSelected={sortedByDate && isAscending} onClick={sortOldestModifiedDate}>
|
|
36
|
-
Oldest
|
|
37
|
-
</ListItem>
|
|
38
|
-
</FloatingMenu>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
interface IStatusProps {
|
|
43
|
-
sortedState: any;
|
|
44
|
-
sortItems(orderPointer: string, isAscendent: boolean): any;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default Status;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { Header } from "@ax/components/TableList/style";
|
|
3
|
-
|
|
4
|
-
const Status = styled(Header)<{ isActive: boolean }>`
|
|
5
|
-
width: 170px;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
&:hover {
|
|
8
|
-
color: ${(p) => p.theme.color.interactive01};
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
const IconsWrapper = styled.div`
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
svg {
|
|
17
|
-
margin-left: 4px;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
const InteractiveArrow = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
svg {
|
|
24
|
-
path {
|
|
25
|
-
fill: ${(p) => p.theme.color.interactive01};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
export { Status, IconsWrapper, InteractiveArrow };
|