@evergis/react 4.0.56 → 4.0.57
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/elements/ElementSlideshow/useElementSlideshow.d.ts +11 -0
- package/dist/components/Dashboard/headers/FeatureCardDefaultHeader/styled.d.ts +5 -3
- package/dist/components/Dashboard/headers/FeatureCardGradientHeader/styled.d.ts +1 -0
- package/dist/components/Dashboard/headers/FeatureCardSlideshowHeader/styled.d.ts +2 -0
- package/dist/components/Dashboard/headers/index.d.ts +1 -0
- package/dist/components/Dashboard/headers/styled.d.ts +5 -0
- package/dist/components/Dashboard/hooks/index.d.ts +3 -0
- package/dist/components/Dashboard/hooks/useAttachmentItems.d.ts +13 -0
- package/dist/components/Dashboard/hooks/useAttachmentPreviewImages.d.ts +8 -0
- package/dist/components/Dashboard/hooks/useEditGroupAttributes.d.ts +7 -0
- package/dist/components/Dashboard/types.d.ts +0 -1
- package/dist/components/Dashboard/utils/getSlideshowImages.d.ts +1 -1
- package/dist/components/Dashboard/utils/index.d.ts +1 -0
- package/dist/components/Dashboard/utils/toRenderableValue.d.ts +14 -0
- package/dist/components/LayerIcon/index.d.ts +1 -0
- package/dist/index.js +852 -780
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +850 -783
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/Dashboard/containers/AttachmentContainer/usePreviewImages.d.ts +0 -8
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPreviewImage } from '@evergis/uilib-gl';
|
|
2
|
+
import { ConfigContainerChild, WidgetType } from '../../types';
|
|
3
|
+
interface UseElementSlideshowProps {
|
|
4
|
+
type?: WidgetType;
|
|
5
|
+
elementConfig?: ConfigContainerChild;
|
|
6
|
+
}
|
|
7
|
+
interface UseElementSlideshowResult {
|
|
8
|
+
images: IPreviewImage[];
|
|
9
|
+
}
|
|
10
|
+
export declare const useElementSlideshow: ({ type, elementConfig, }: UseElementSlideshowProps) => UseElementSlideshowResult;
|
|
11
|
+
export {};
|
|
@@ -5,9 +5,11 @@ export declare const HeaderContainer: import('styled-components').StyledComponen
|
|
|
5
5
|
export declare const FeatureTitleContainer: import('styled-components').StyledComponent<"div", any, {
|
|
6
6
|
clickable?: boolean;
|
|
7
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
8
|
export declare const Header: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
11
9
|
$isRow?: boolean;
|
|
12
10
|
}, never>;
|
|
13
|
-
export declare const DefaultHeaderWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
11
|
+
export declare const DefaultHeaderWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
12
|
+
withPadding?: boolean;
|
|
13
|
+
height?: number;
|
|
14
|
+
fontColor?: string;
|
|
15
|
+
}, never>;
|
|
@@ -2,6 +2,7 @@ export declare const HeaderIcon: import('styled-components').StyledComponent<"di
|
|
|
2
2
|
export declare const GradientHeaderWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
3
3
|
$fontColor?: string;
|
|
4
4
|
$bgColor?: string;
|
|
5
|
+
$height?: number;
|
|
5
6
|
$bigIcon?: boolean;
|
|
6
7
|
$withPadding?: boolean;
|
|
7
8
|
$bottomBlur?: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const HeaderTitleContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
2
|
+
export declare const LayerDescription: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const HeaderFontColorMixin: import('styled-components').FlattenInterpolation<import('styled-components').ThemedStyledProps<{
|
|
4
|
+
$fontColor?: string;
|
|
5
|
+
}, any>>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './useAttachmentItems';
|
|
2
|
+
export * from './useAttachmentPreviewImages';
|
|
1
3
|
export * from './useAutoCompleteControl';
|
|
2
4
|
export * from './useContainerAttributes';
|
|
5
|
+
export * from './useEditGroupAttributes';
|
|
3
6
|
export * from './useFetchImageWithAuth';
|
|
4
7
|
export * from './useFetchWithAuth';
|
|
5
8
|
export * from './useChartChange';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConfigContainerChild, WidgetType } from '../types';
|
|
2
|
+
import { Attachment } from '../containers/AttachmentContainer/types';
|
|
3
|
+
export interface UseAttachmentItemsProps {
|
|
4
|
+
type?: WidgetType;
|
|
5
|
+
elementConfig?: ConfigContainerChild;
|
|
6
|
+
valueOverride?: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface UseAttachmentItemsResult {
|
|
9
|
+
items: Attachment[];
|
|
10
|
+
attributeName?: string;
|
|
11
|
+
rawValue: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare const useAttachmentItems: ({ type, elementConfig, valueOverride, }: UseAttachmentItemsProps) => UseAttachmentItemsResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPreviewImage } from '@evergis/uilib-gl';
|
|
2
|
+
import { Attachment } from '../containers/AttachmentContainer/types';
|
|
3
|
+
interface UseAttachmentPreviewImagesParams {
|
|
4
|
+
items: Attachment[];
|
|
5
|
+
active: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const useAttachmentPreviewImages: ({ items, active, }: UseAttachmentPreviewImagesParams) => IPreviewImage[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContainerProps } from '../types';
|
|
2
|
+
type UseEditGroupAttributesProps = Pick<ContainerProps, "elementConfig" | "type">;
|
|
3
|
+
export declare const useEditGroupAttributes: ({ elementConfig, type }: UseEditGroupAttributesProps) => {
|
|
4
|
+
filteredAttributes: import('../types').ClientFeatureAttribute[];
|
|
5
|
+
filteredControls: import('../types').ConfigControl[];
|
|
6
|
+
};
|
|
7
|
+
export {};
|
|
@@ -59,6 +59,7 @@ export * from './removeDataSource';
|
|
|
59
59
|
export * from './roundTotalSum';
|
|
60
60
|
export * from './updateDataSource';
|
|
61
61
|
export * from './sliceShownOtherItems';
|
|
62
|
+
export * from './toRenderableValue';
|
|
62
63
|
export * from './tooltipNameFromAttributes';
|
|
63
64
|
export * from './tooltipValueFromAttributes';
|
|
64
65
|
export * from './tooltipValueFromRelatedFeatures';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a value safe to render as a React child.
|
|
4
|
+
*
|
|
5
|
+
* If the input is a non-primitive object (array or plain object) that is NOT
|
|
6
|
+
* a React element, returns an empty string to prevent the runtime error
|
|
7
|
+
* "Objects are not valid as a React child" that React throws on such values.
|
|
8
|
+
*
|
|
9
|
+
* Use in places where a rendered slot receives a raw attribute value that may
|
|
10
|
+
* be a structured payload (e.g. an attribute with `subType: Attachments`
|
|
11
|
+
* exposes its value as `Attachment[]`). React elements and primitives pass
|
|
12
|
+
* through unchanged, preserving existing rendering behaviour for normal data.
|
|
13
|
+
*/
|
|
14
|
+
export declare const toRenderableValue: (value: unknown) => ReactNode;
|