@evergis/react 4.0.55 → 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/containers/styled.d.ts +6 -1
- package/dist/components/Dashboard/elements/ElementSlideshow/useElementSlideshow.d.ts +11 -0
- package/dist/components/Dashboard/elements/registry.d.ts +0 -1
- package/dist/components/Dashboard/headers/FeatureCardDefaultHeader/styled.d.ts +6 -4
- package/dist/components/Dashboard/headers/FeatureCardGradientHeader/styled.d.ts +5 -0
- package/dist/components/Dashboard/headers/FeatureCardSlideshowHeader/styled.d.ts +2 -0
- package/dist/components/Dashboard/headers/components/HeaderLayerIcon.d.ts +2 -0
- package/dist/components/Dashboard/headers/components/styled.d.ts +1 -0
- package/dist/components/Dashboard/headers/index.d.ts +1 -1
- 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 +2 -3
- package/dist/components/Dashboard/utils/getSlideshowImages.d.ts +1 -1
- package/dist/components/Dashboard/utils/getThemeByName.d.ts +2 -0
- package/dist/components/Dashboard/utils/index.d.ts +2 -0
- package/dist/components/Dashboard/utils/toRenderableValue.d.ts +14 -0
- package/dist/components/LayerIcon/index.d.ts +1 -0
- package/dist/index.js +900 -850
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +898 -853
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/Dashboard/containers/AttachmentContainer/usePreviewImages.d.ts +0 -8
- package/dist/components/Dashboard/elements/ElementLayerName/index.d.ts +0 -3
- package/dist/components/Dashboard/headers/FeatureCardIconHeader/index.d.ts +0 -3
- package/dist/components/Dashboard/headers/FeatureCardIconHeader/styled.d.ts +0 -7
- /package/dist/components/Dashboard/headers/{FeatureCardDefaultHeader/components → components}/HeaderTitle.d.ts +0 -0
|
@@ -18,4 +18,9 @@ export declare const SvgContainer: import('styled-components').StyledComponent<"
|
|
|
18
18
|
$width?: number;
|
|
19
19
|
$fontColor?: string;
|
|
20
20
|
}, never>;
|
|
21
|
-
export declare const TwoColumnContainerWrapper: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps
|
|
21
|
+
export declare const TwoColumnContainerWrapper: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
22
|
+
isTitle?: boolean;
|
|
23
|
+
isColumn?: boolean;
|
|
24
|
+
isMain?: boolean;
|
|
25
|
+
noBorders?: boolean;
|
|
26
|
+
}, never>;
|
|
@@ -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 {};
|
|
@@ -16,5 +16,4 @@ export declare const elementComponents: {
|
|
|
16
16
|
readonly markdown: import('react').FC<import('..').ContainerProps>;
|
|
17
17
|
readonly uploader: import('react').FC<import('..').ContainerProps>;
|
|
18
18
|
readonly modal: import('react').FC<import('..').ContainerProps>;
|
|
19
|
-
readonly layerName: import('react').FC<import('..').ContainerProps>;
|
|
20
19
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export declare const HeaderFrontView: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
|
|
2
2
|
isDefault?: boolean;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const HeaderContainer: import('styled-components').StyledComponent<"
|
|
4
|
+
export declare const HeaderContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
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>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
export declare const HeaderIcon: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
|
|
1
2
|
export declare const GradientHeaderWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
2
3
|
$fontColor?: string;
|
|
3
4
|
$bgColor?: string;
|
|
5
|
+
$height?: number;
|
|
6
|
+
$bigIcon?: boolean;
|
|
7
|
+
$withPadding?: boolean;
|
|
8
|
+
$bottomBlur?: boolean;
|
|
4
9
|
}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LayerIconClickable: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export * from './styled';
|
|
1
2
|
export * from './DashboardDefaultHeader';
|
|
2
3
|
export * from './DashboardDefaultHeader/styled';
|
|
3
4
|
export * from './FeatureCardDefaultHeader';
|
|
4
5
|
export * from './FeatureCardDefaultHeader/styled';
|
|
5
6
|
export * from './FeatureCardGradientHeader';
|
|
6
|
-
export * from './FeatureCardIconHeader';
|
|
7
7
|
export * from './FeatureCardSlideshowHeader';
|
|
@@ -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 {};
|
|
@@ -84,6 +84,7 @@ export interface ConfigOptions {
|
|
|
84
84
|
withPadding?: boolean;
|
|
85
85
|
withDivider?: boolean;
|
|
86
86
|
dotSnapping?: boolean;
|
|
87
|
+
bottomBlur?: boolean;
|
|
87
88
|
tagView?: boolean;
|
|
88
89
|
simple?: boolean;
|
|
89
90
|
downloadById?: string;
|
|
@@ -345,8 +346,7 @@ export declare enum ContainerTemplate {
|
|
|
345
346
|
export declare enum HeaderTemplate {
|
|
346
347
|
Default = "Default",
|
|
347
348
|
Slideshow = "Slideshow",
|
|
348
|
-
Gradient = "Gradient"
|
|
349
|
-
Icon = "Icon"
|
|
349
|
+
Gradient = "Gradient"
|
|
350
350
|
}
|
|
351
351
|
export interface GetRenderElementProps extends Omit<ContainerProps, "renderElement"> {
|
|
352
352
|
expandedContainers?: Record<string, boolean>;
|
|
@@ -374,7 +374,6 @@ export interface ContainerProps {
|
|
|
374
374
|
config?: ConfigContainer;
|
|
375
375
|
elementConfig?: ConfigContainerChild;
|
|
376
376
|
maxValue?: number;
|
|
377
|
-
isRow?: boolean;
|
|
378
377
|
isVisible?: boolean;
|
|
379
378
|
noBorders?: boolean;
|
|
380
379
|
type?: WidgetType;
|
|
@@ -43,6 +43,7 @@ export * from './getSelectedFilterValue';
|
|
|
43
43
|
export * from './getSlideshowImages';
|
|
44
44
|
export * from './getSvgUrl';
|
|
45
45
|
export * from './getTemplateNameFromAttribute';
|
|
46
|
+
export * from './getThemeByName';
|
|
46
47
|
export * from './getDisplayTemplateNameFromAttribute';
|
|
47
48
|
export * from './getTotalFromAttributes';
|
|
48
49
|
export * from './getTotalFromRelatedFeatures';
|
|
@@ -58,6 +59,7 @@ export * from './removeDataSource';
|
|
|
58
59
|
export * from './roundTotalSum';
|
|
59
60
|
export * from './updateDataSource';
|
|
60
61
|
export * from './sliceShownOtherItems';
|
|
62
|
+
export * from './toRenderableValue';
|
|
61
63
|
export * from './tooltipNameFromAttributes';
|
|
62
64
|
export * from './tooltipValueFromAttributes';
|
|
63
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;
|