@evergis/react 3.1.14 → 3.1.16
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/Dashboard/components/Chart/styled.d.ts +16 -0
- package/dist/components/Dashboard/components/DashboardHeader/index.d.ts +3 -0
- package/dist/components/Dashboard/components/FeatureCardButtons/index.d.ts +2 -0
- package/dist/components/Dashboard/components/FeatureCardHeader/index.d.ts +2 -0
- package/dist/components/Dashboard/components/FeatureCardTitle/index.d.ts +5 -0
- package/dist/components/Dashboard/components/Pagination/index.d.ts +1 -1
- package/dist/components/Dashboard/components/index.d.ts +4 -0
- package/dist/components/Dashboard/containers/RoundedBackgroundContainer/styled.d.ts +2 -0
- package/dist/components/Dashboard/headers/DashboardDefaultHeader/index.d.ts +3 -0
- package/dist/components/Dashboard/headers/DashboardDefaultHeader/styled.d.ts +8 -0
- package/dist/components/Dashboard/headers/FeatureCardDefaultHeader/components/HeaderTitle.d.ts +4 -0
- package/dist/components/Dashboard/headers/FeatureCardDefaultHeader/index.d.ts +5 -0
- package/dist/components/Dashboard/headers/FeatureCardDefaultHeader/styled.d.ts +12 -0
- package/dist/components/Dashboard/headers/FeatureCardGradientHeader/index.d.ts +3 -0
- package/dist/components/Dashboard/headers/FeatureCardGradientHeader/styled.d.ts +4 -0
- package/dist/components/Dashboard/headers/FeatureCardIconHeader/index.d.ts +3 -0
- package/dist/components/Dashboard/headers/FeatureCardIconHeader/styled.d.ts +6 -0
- package/dist/components/Dashboard/headers/FeatureCardSlideshowHeader/index.d.ts +3 -0
- package/dist/components/Dashboard/headers/FeatureCardSlideshowHeader/styled.d.ts +8 -0
- package/dist/components/Dashboard/headers/index.d.ts +7 -0
- package/dist/components/Dashboard/hooks/index.d.ts +1 -0
- package/dist/components/Dashboard/hooks/useDashboardHeader.d.ts +2 -2
- package/dist/components/Dashboard/hooks/useGlobalContext.d.ts +0 -1
- package/dist/components/Dashboard/hooks/useHeaderRender.d.ts +2 -0
- package/dist/components/Dashboard/hooks/useWidgetContext.d.ts +8 -0
- package/dist/components/Dashboard/index.d.ts +1 -0
- package/dist/components/Dashboard/styled.d.ts +1 -0
- package/dist/components/Dashboard/types.d.ts +2 -0
- package/dist/components/Dashboard/utils/getDashboardHeader.d.ts +2 -0
- package/dist/components/Dashboard/utils/getFeatureCardHeader.d.ts +2 -0
- package/dist/components/Dashboard/utils/index.d.ts +2 -0
- package/dist/components/LayerIcon/index.d.ts +5 -0
- package/dist/components/LayerIcon/styled.d.ts +2 -0
- package/dist/components/LayerTree/types.d.ts +0 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/contexts/DashboardContext/types.d.ts +8 -2
- package/dist/contexts/FeatureCardContext/types.d.ts +3 -1
- package/dist/contexts/GlobalContext/types.d.ts +1 -3
- package/dist/index.js +1460 -701
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +1185 -451
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
export declare const ChartTooltipTable: import('styled-components').StyledComponent<"table", any, {}, never>;
|
|
2
3
|
export declare const ChartTooltip: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
4
|
+
export declare const ChartTooltipLabel: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
5
|
export declare const ChartTooltipColor: import('styled-components').StyledComponent<"div", any, {
|
|
4
6
|
$color: string;
|
|
5
7
|
}, never>;
|
|
@@ -13,3 +15,17 @@ export declare const PieChartCenter: import('styled-components').StyledComponent
|
|
|
13
15
|
export declare const ChartWrapperContainer: import('styled-components').StyledComponent<"div", any, {
|
|
14
16
|
column: boolean;
|
|
15
17
|
}, never>;
|
|
18
|
+
export declare const Tooltip: import('styled-components').StyledComponent<"div", any, {
|
|
19
|
+
transform?: CSSProperties["transform"];
|
|
20
|
+
}, never>;
|
|
21
|
+
export declare const LineChartTooltipStyles: import('styled-components').GlobalStyleComponent<{
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
[x: number]: any;
|
|
24
|
+
[x: symbol]: any;
|
|
25
|
+
} & {
|
|
26
|
+
theme?: any;
|
|
27
|
+
} & {
|
|
28
|
+
as?: string | import('react').ComponentType<any>;
|
|
29
|
+
forwardedAs?: string | import('react').ComponentType<any>;
|
|
30
|
+
}, import('styled-components').DefaultTheme>;
|
|
31
|
+
export declare const BarChartStyles: import('styled-components').GlobalStyleComponent<{}, import('styled-components').DefaultTheme>;
|
|
@@ -4,8 +4,12 @@ export * from './ChartLegend';
|
|
|
4
4
|
export * from './ContainerChildren';
|
|
5
5
|
export * from './Dashboard';
|
|
6
6
|
export * from './DashboardCheckbox';
|
|
7
|
+
export * from './DashboardHeader';
|
|
7
8
|
export * from './DataSourceError';
|
|
8
9
|
export * from './ExpandableTitle';
|
|
10
|
+
export * from './FeatureCardButtons';
|
|
11
|
+
export * from './FeatureCardHeader';
|
|
12
|
+
export * from './FeatureCardTitle';
|
|
9
13
|
export * from './HiddenTitleItems';
|
|
10
14
|
export * from './Loading';
|
|
11
15
|
export * from './Pagination';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export declare const ContainerIconValue: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
1
2
|
export declare const RoundedBackgroundContainerWrapper: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
2
3
|
$center?: boolean;
|
|
3
4
|
$color?: string;
|
|
4
5
|
$inlineUnits?: boolean;
|
|
6
|
+
$big?: boolean;
|
|
5
7
|
$bigIcon?: boolean;
|
|
6
8
|
}, never>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DefaultHeaderContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
2
|
+
image?: string;
|
|
3
|
+
isDark?: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const TopContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
6
|
+
export declare const TopContainerButtons: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
7
|
+
export declare const LogoContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
8
|
+
export declare const PageTitle: import('styled-components').StyledComponent<"h2", any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const HeaderFrontView: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
2
|
+
isDefault?: boolean;
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const HeaderContainer: import('styled-components').StyledComponent<"span", any, import('@evergis/uilib-gl').FlexSpanProps, never>;
|
|
5
|
+
export declare const FeatureTitleContainer: import('styled-components').StyledComponent<"div", any, {
|
|
6
|
+
clickable?: boolean;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const LayerDescription: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const HeaderTitleContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
10
|
+
export declare const Header: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
11
|
+
$isRow?: boolean;
|
|
12
|
+
}, never>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const HeaderIcon: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
2
|
+
export declare const IconHeaderWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
3
|
+
$fontColor?: string;
|
|
4
|
+
$bgColor?: string;
|
|
5
|
+
$bigIcon?: boolean;
|
|
6
|
+
}, never>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SlideshowHeaderWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
2
|
+
big?: boolean;
|
|
3
|
+
withPadding?: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const ImageContainerBg: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const HeaderSlideshow: import('styled-components').StyledComponent<"div", any, {
|
|
7
|
+
height?: number;
|
|
8
|
+
}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './DashboardDefaultHeader';
|
|
2
|
+
export * from './DashboardDefaultHeader/styled';
|
|
3
|
+
export * from './FeatureCardDefaultHeader';
|
|
4
|
+
export * from './FeatureCardDefaultHeader/styled';
|
|
5
|
+
export * from './FeatureCardGradientHeader';
|
|
6
|
+
export * from './FeatureCardIconHeader';
|
|
7
|
+
export * from './FeatureCardSlideshowHeader';
|
|
@@ -7,6 +7,7 @@ export * from './useExpandableContainers';
|
|
|
7
7
|
export * from './useFeatureFilters';
|
|
8
8
|
export * from './useGetConfigLayer';
|
|
9
9
|
export * from './useGlobalContext';
|
|
10
|
+
export * from './useHeaderRender';
|
|
10
11
|
export * from './useProjectDashboardInit';
|
|
11
12
|
export * from './useRelatedDataSourceAttributes';
|
|
12
13
|
export * from './useRenderElement';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useDashboardHeader: (renderElement: RenderElementFunction) => {
|
|
1
|
+
export declare const useDashboardHeader: () => {
|
|
3
2
|
pageId: string;
|
|
4
3
|
image: string;
|
|
5
4
|
icon: string | import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +6,5 @@ export declare const useDashboardHeader: (renderElement: RenderElementFunction)
|
|
|
7
6
|
tooltip: import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
description: import('react').ReactNode;
|
|
9
8
|
themeName: string;
|
|
9
|
+
renderElement: import('..').RenderElementFunction;
|
|
10
10
|
};
|
|
@@ -10,6 +10,14 @@ export declare const useWidgetContext: (type?: WidgetType) => {
|
|
|
10
10
|
geometryFilter: boolean;
|
|
11
11
|
layerInfo: import('../../..').LayerInfo;
|
|
12
12
|
attributes: import('../types').ClientFeatureAttribute[];
|
|
13
|
+
feature: import('../../..').SelectedFeature;
|
|
14
|
+
closeFeatureCard: VoidFunction;
|
|
15
|
+
components: {
|
|
16
|
+
LayerItem: import('react').FC<import('../..').LayerItemProps>;
|
|
17
|
+
ProjectCatalogMenu: import('react').FC;
|
|
18
|
+
ProjectPanelMenu: import('react').FC;
|
|
19
|
+
ProjectPagesMenu: import('react').FC;
|
|
20
|
+
};
|
|
13
21
|
isLoading: boolean;
|
|
14
22
|
pageIndex: number;
|
|
15
23
|
filters: import('../types').SelectedFilters;
|
|
@@ -32,3 +32,4 @@ export declare const AttributeLabel: import('styled-components').StyledComponent
|
|
|
32
32
|
isEdit?: boolean;
|
|
33
33
|
forCheckbox?: boolean;
|
|
34
34
|
}, never>;
|
|
35
|
+
export declare const FeatureControls: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
@@ -43,6 +43,7 @@ export interface ConfigOptions {
|
|
|
43
43
|
srid?: string;
|
|
44
44
|
title?: string;
|
|
45
45
|
label?: string;
|
|
46
|
+
showMarkers?: boolean;
|
|
46
47
|
withPadding?: boolean;
|
|
47
48
|
withDivider?: boolean;
|
|
48
49
|
tagView?: boolean;
|
|
@@ -98,6 +99,7 @@ export interface ConfigOptions {
|
|
|
98
99
|
wrap?: boolean;
|
|
99
100
|
icon?: string;
|
|
100
101
|
iconUrl?: string;
|
|
102
|
+
big?: boolean;
|
|
101
103
|
bigIcon?: boolean;
|
|
102
104
|
onlyIcon?: boolean;
|
|
103
105
|
hideEmpty?: boolean;
|
|
@@ -18,6 +18,7 @@ export * from './getChartFilterName';
|
|
|
18
18
|
export * from './getChartMarkers';
|
|
19
19
|
export * from './getConfigFilter';
|
|
20
20
|
export * from './getContainerComponent';
|
|
21
|
+
export * from './getDashboardHeader';
|
|
21
22
|
export * from './getDataFromAttributes';
|
|
22
23
|
export * from './getDataFromRelatedFeatures';
|
|
23
24
|
export * from './getDataSource';
|
|
@@ -25,6 +26,7 @@ export * from './getDataSourceFilterValue';
|
|
|
25
26
|
export * from './getDefaultConfig';
|
|
26
27
|
export * from './getElementValue';
|
|
27
28
|
export * from './getFeatureAttributes';
|
|
29
|
+
export * from './getFeatureCardHeader';
|
|
28
30
|
export * from './getFilterComponent';
|
|
29
31
|
export * from './getFilterSelectedItems';
|
|
30
32
|
export * from './getFilterValue';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
import { ProjectContentItemDc } from '@evergis/api';
|
|
3
2
|
import { ConfigLayer } from '../Dashboard';
|
|
4
3
|
export declare const LayersListWrapper: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
@@ -9,6 +8,5 @@ export interface LayerItemProps {
|
|
|
9
8
|
}
|
|
10
9
|
export interface LayerTreeProps {
|
|
11
10
|
layers: ConfigLayer[];
|
|
12
|
-
LayerItemComponent: FC<LayerItemProps>;
|
|
13
11
|
onlyMainTools?: boolean;
|
|
14
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { ExtendedProjectInfoDc } from '@evergis/api';
|
|
3
|
-
import { DashboardLayerPayload, DashboardState, SelectedFilters, WidgetDataSource } from '../../components';
|
|
3
|
+
import { DashboardLayerPayload, DashboardState, LayerItemProps, SelectedFilters, WidgetDataSource } from '../../components';
|
|
4
4
|
import { LayerInfo } from '../../types';
|
|
5
5
|
export type DashboardContextProps = PropsWithChildren<{
|
|
6
6
|
projectInfo: ExtendedProjectInfoDc;
|
|
@@ -14,6 +14,12 @@ export type DashboardContextProps = PropsWithChildren<{
|
|
|
14
14
|
dashboardLayers: DashboardState["layers"];
|
|
15
15
|
setDashboardLayer: (props: DashboardLayerPayload) => void;
|
|
16
16
|
selectedTabId: string;
|
|
17
|
+
components: {
|
|
18
|
+
LayerItem: FC<LayerItemProps>;
|
|
19
|
+
ProjectCatalogMenu: FC;
|
|
20
|
+
ProjectPanelMenu: FC;
|
|
21
|
+
ProjectPagesMenu: FC;
|
|
22
|
+
};
|
|
17
23
|
changeFilters: (filters: SelectedFilters, resetFilters?: string[]) => void;
|
|
18
24
|
expandedContainers: Record<string, boolean>;
|
|
19
25
|
expandContainer: (id: string, expanded?: boolean) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { LayerReferenceConfigurationDc } from '@evergis/api';
|
|
2
|
-
import { LayerInfo } from '../../types';
|
|
2
|
+
import { LayerInfo, SelectedFeature } from '../../types';
|
|
3
3
|
import { ClientFeatureAttribute, SelectedFilters, WidgetDataSource } from '../../components';
|
|
4
4
|
export type FeatureCardContextSettings = {
|
|
5
5
|
attributes?: ClientFeatureAttribute[];
|
|
6
6
|
layerInfo?: LayerInfo;
|
|
7
|
+
feature?: SelectedFeature;
|
|
7
8
|
pageIndex?: number;
|
|
8
9
|
handBookReference?: LayerReferenceConfigurationDc;
|
|
9
10
|
isRaster?: boolean;
|
|
@@ -23,4 +24,5 @@ export type FeatureCardContextSettings = {
|
|
|
23
24
|
nextPage?: (totalPages: number) => void;
|
|
24
25
|
prevPage?: (totalPages: number) => void;
|
|
25
26
|
changePage?: (pageIndex: number) => void;
|
|
27
|
+
closeFeatureCard?: VoidFunction;
|
|
26
28
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
3
|
import { Api } from '@evergis/api';
|
|
4
|
-
import { LayerItemProps } from '../../components';
|
|
5
4
|
export type GlobalContextProps = PropsWithChildren<{
|
|
6
5
|
t: i18n["t"];
|
|
7
6
|
language: string;
|
|
8
7
|
ewktGeometry: string;
|
|
9
8
|
themeName: string;
|
|
10
9
|
api: Api;
|
|
11
|
-
LayerItemComponent: FC<LayerItemProps>;
|
|
12
10
|
}>;
|