@evergis/react 4.0.59 → 4.0.61
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/branded.d.ts +52 -0
- package/dist/components/Dashboard/componentTypes.d.ts +571 -0
- package/dist/components/Dashboard/containers/AddFeatureContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/AttachmentContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/CameraContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/ChartContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/ContainersGroupContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/DataSourceContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/DataSourceProgressContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/DefaultAttributesContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/DividerContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditAttachmentContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditBooleanContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditCheckboxContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditChipsContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditDateContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditDropdownContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditGroupContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditNumberContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/components/EditStringContainer.d.ts +2 -2
- package/dist/components/Dashboard/containers/EditContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/ExportPdfContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/FiltersContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/IconContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/ImageContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/LayersContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/OneColumnContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/PagesContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/SlideshowContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/TabsContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/TaskContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/TitleContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/TwoColumnContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/UploadContainer/index.d.ts +2 -2
- package/dist/components/Dashboard/containers/registry.d.ts +37 -34
- package/dist/components/Dashboard/elements/ElementButton/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementCamera/types.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementChart/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementChips/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementControl/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementIcon/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementImage/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementLegend/index.d.ts +2 -4
- package/dist/components/Dashboard/elements/ElementLink/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementMarkdown/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementModal/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementSlideshow/types.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementSvg/index.d.ts +2 -6
- package/dist/components/Dashboard/elements/ElementTooltip/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/ElementUploader/index.d.ts +2 -2
- package/dist/components/Dashboard/elements/registry.d.ts +12 -14
- package/dist/components/Dashboard/hooks/useWidgetConfig.d.ts +5 -1
- package/dist/components/Dashboard/hooks/useWidgetContext.d.ts +12 -1
- package/dist/components/Dashboard/hooks/useWidgetPage.d.ts +4 -1
- package/dist/components/Dashboard/types.d.ts +197 -93
- package/dist/index.js +78 -12
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +67 -13
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ContainersGroupContainer: FC<
|
|
2
|
+
import { ContainersGroupContainerProps } from '../../types';
|
|
3
|
+
export declare const ContainersGroupContainer: FC<ContainersGroupContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const DataSourceContainer: FC<
|
|
2
|
+
import { DataSourceContainerProps } from '../../types';
|
|
3
|
+
export declare const DataSourceContainer: FC<DataSourceContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const DataSourceProgressContainer: FC<
|
|
2
|
+
import { DataSourceProgressContainerProps } from '../../types';
|
|
3
|
+
export declare const DataSourceProgressContainer: FC<DataSourceProgressContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const DefaultAttributesContainer: FC<
|
|
2
|
+
import { DefaultAttributesContainerProps } from '../../types';
|
|
3
|
+
export declare const DefaultAttributesContainer: FC<DefaultAttributesContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const DividerContainer: FC<
|
|
2
|
+
import { DividerContainerProps } from '../../types';
|
|
3
|
+
export declare const DividerContainer: FC<DividerContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditAttachmentContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditAttachmentContainer: FC<
|
|
2
|
+
import { EditAttachmentContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditAttachmentContainer: FC<EditAttachmentContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditBooleanContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditBooleanContainer: FC<
|
|
2
|
+
import { EditBooleanContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditBooleanContainer: FC<EditBooleanContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditCheckboxContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditCheckboxContainer: FC<
|
|
2
|
+
import { EditCheckboxContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditCheckboxContainer: FC<EditCheckboxContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditChipsContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditChipsContainer: FC<
|
|
2
|
+
import { EditChipsContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditChipsContainer: FC<EditChipsContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditDateContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditDateContainer: FC<
|
|
2
|
+
import { EditDateContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditDateContainer: FC<EditDateContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditDropdownContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditDropdownContainer: FC<
|
|
2
|
+
import { EditDropdownContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditDropdownContainer: FC<EditDropdownContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditGroupContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditGroupContainer: FC<
|
|
2
|
+
import { EditGroupContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditGroupContainer: FC<EditGroupContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditNumberContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditNumberContainer: FC<
|
|
2
|
+
import { EditNumberContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditNumberContainer: FC<EditNumberContainerProps>;
|
package/dist/components/Dashboard/containers/EditContainer/components/EditStringContainer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditStringContainer: FC<
|
|
2
|
+
import { EditStringContainerProps } from '../../../types';
|
|
3
|
+
export declare const EditStringContainer: FC<EditStringContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const EditContainer: FC<
|
|
2
|
+
import { EditContainerProps } from '../../types';
|
|
3
|
+
export declare const EditContainer: FC<EditContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ExportPdfContainer: FC<
|
|
2
|
+
import { ExportPdfContainerProps } from '../../types';
|
|
3
|
+
export declare const ExportPdfContainer: FC<ExportPdfContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const FiltersContainer: FC<
|
|
2
|
+
import { FiltersContainerProps } from '../../types';
|
|
3
|
+
export declare const FiltersContainer: FC<FiltersContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const IconContainer: FC<
|
|
2
|
+
import { IconContainerProps } from '../../types';
|
|
3
|
+
export declare const IconContainer: FC<IconContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ImageContainer: FC<
|
|
2
|
+
import { ImageContainerProps } from '../../types';
|
|
3
|
+
export declare const ImageContainer: FC<ImageContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const LayersContainer: FC<
|
|
2
|
+
import { LayersContainerProps } from '../../types';
|
|
3
|
+
export declare const LayersContainer: FC<LayersContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const OneColumnContainer: FC<
|
|
2
|
+
import { OneColumnContainerProps } from '../../types';
|
|
3
|
+
export declare const OneColumnContainer: FC<OneColumnContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const PagesContainer: FC<
|
|
2
|
+
import { PagesContainerProps } from '../../types';
|
|
3
|
+
export declare const PagesContainer: FC<PagesContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const SlideshowContainer: FC<
|
|
2
|
+
import { SlideshowContainerProps } from '../../types';
|
|
3
|
+
export declare const SlideshowContainer: FC<SlideshowContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const TabsContainer: FC<
|
|
2
|
+
import { TabsContainerProps } from '../../types';
|
|
3
|
+
export declare const TabsContainer: FC<TabsContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const TaskContainer: FC<
|
|
2
|
+
import { TaskContainerProps } from '../../types';
|
|
3
|
+
export declare const TaskContainer: FC<TaskContainerProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const TitleContainer: FC<Omit<
|
|
2
|
+
import { TitleContainerProps } from '../../types';
|
|
3
|
+
export declare const TitleContainer: FC<Omit<TitleContainerProps, "config"> & {
|
|
4
4
|
containerId?: string;
|
|
5
5
|
templateName?: string;
|
|
6
6
|
layerNames?: string[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const TwoColumnContainer: FC<
|
|
2
|
+
import { TwoColumnContainerProps } from '../../types';
|
|
3
|
+
export declare const TwoColumnContainer: FC<TwoColumnContainerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const UploadContainer: FC<
|
|
2
|
+
import { UploadContainerProps } from '../../types';
|
|
3
|
+
export declare const UploadContainer: FC<UploadContainerProps>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ProgressContainerProps, RoundedBackgroundContainerProps } from '../types';
|
|
1
3
|
export declare const containerComponents: {
|
|
2
|
-
readonly DefaultAttributes:
|
|
3
|
-
readonly Pages:
|
|
4
|
-
readonly Tabs:
|
|
5
|
-
readonly Title:
|
|
4
|
+
readonly DefaultAttributes: FC<import('../componentTypes').DefaultAttributesContainerProps>;
|
|
5
|
+
readonly Pages: FC<import('../componentTypes').PagesContainerProps>;
|
|
6
|
+
readonly Tabs: FC<import('../componentTypes').TabsContainerProps>;
|
|
7
|
+
readonly Title: FC<Omit<import('../componentTypes').TitleContainerProps, "config"> & {
|
|
6
8
|
containerId?: string;
|
|
7
9
|
templateName?: string;
|
|
8
10
|
layerNames?: string[];
|
|
@@ -11,34 +13,35 @@ export declare const containerComponents: {
|
|
|
11
13
|
expanded?: boolean;
|
|
12
14
|
isVisible?: boolean;
|
|
13
15
|
}>;
|
|
14
|
-
readonly RoundedBackground:
|
|
15
|
-
readonly OneColumn:
|
|
16
|
-
readonly TwoColumn:
|
|
17
|
-
readonly DataSource:
|
|
18
|
-
readonly DataSourceProgress:
|
|
19
|
-
readonly Progress:
|
|
20
|
-
readonly Image:
|
|
21
|
-
readonly Icon:
|
|
22
|
-
readonly Layers:
|
|
23
|
-
readonly Filters:
|
|
24
|
-
readonly Chart:
|
|
25
|
-
readonly Slideshow:
|
|
26
|
-
readonly Camera:
|
|
27
|
-
readonly AddFeature:
|
|
28
|
-
readonly Divider:
|
|
29
|
-
readonly ExportPdf:
|
|
30
|
-
readonly Upload:
|
|
31
|
-
readonly Task:
|
|
32
|
-
readonly Edit:
|
|
33
|
-
readonly EditBoolean:
|
|
34
|
-
readonly EditString:
|
|
35
|
-
readonly EditNumber:
|
|
36
|
-
readonly EditDropdown:
|
|
37
|
-
readonly EditChips:
|
|
38
|
-
readonly EditCheckbox:
|
|
39
|
-
readonly EditDate:
|
|
40
|
-
readonly EditAttachment:
|
|
41
|
-
readonly Attachment:
|
|
42
|
-
readonly EditGroup:
|
|
43
|
-
readonly
|
|
16
|
+
readonly RoundedBackground: FC<RoundedBackgroundContainerProps>;
|
|
17
|
+
readonly OneColumn: FC<import('../componentTypes').OneColumnContainerProps>;
|
|
18
|
+
readonly TwoColumn: FC<import('../componentTypes').TwoColumnContainerProps>;
|
|
19
|
+
readonly DataSource: FC<import('../componentTypes').DataSourceContainerProps>;
|
|
20
|
+
readonly DataSourceProgress: FC<import('../componentTypes').DataSourceProgressContainerProps>;
|
|
21
|
+
readonly Progress: FC<ProgressContainerProps>;
|
|
22
|
+
readonly Image: FC<import('../componentTypes').ImageContainerProps>;
|
|
23
|
+
readonly Icon: FC<import('../componentTypes').IconContainerProps>;
|
|
24
|
+
readonly Layers: FC<import('../componentTypes').LayersContainerProps>;
|
|
25
|
+
readonly Filters: FC<import('../componentTypes').FiltersContainerProps>;
|
|
26
|
+
readonly Chart: FC<import('../componentTypes').ChartContainerProps>;
|
|
27
|
+
readonly Slideshow: FC<import('../componentTypes').SlideshowContainerProps>;
|
|
28
|
+
readonly Camera: FC<import('../componentTypes').CameraContainerProps>;
|
|
29
|
+
readonly AddFeature: FC<import('../componentTypes').AddFeatureContainerProps>;
|
|
30
|
+
readonly Divider: FC<import('../componentTypes').DividerContainerProps>;
|
|
31
|
+
readonly ExportPdf: FC<import('../componentTypes').ExportPdfContainerProps>;
|
|
32
|
+
readonly Upload: FC<import('../componentTypes').UploadContainerProps>;
|
|
33
|
+
readonly Task: FC<import('../componentTypes').TaskContainerProps>;
|
|
34
|
+
readonly Edit: FC<import('../componentTypes').EditContainerProps>;
|
|
35
|
+
readonly EditBoolean: FC<import('../componentTypes').EditBooleanContainerProps>;
|
|
36
|
+
readonly EditString: FC<import('../componentTypes').EditStringContainerProps>;
|
|
37
|
+
readonly EditNumber: FC<import('../componentTypes').EditNumberContainerProps>;
|
|
38
|
+
readonly EditDropdown: FC<import('../componentTypes').EditDropdownContainerProps>;
|
|
39
|
+
readonly EditChips: FC<import('../componentTypes').EditChipsContainerProps>;
|
|
40
|
+
readonly EditCheckbox: FC<import('../componentTypes').EditCheckboxContainerProps>;
|
|
41
|
+
readonly EditDate: FC<import('../componentTypes').EditDateContainerProps>;
|
|
42
|
+
readonly EditAttachment: FC<import('../componentTypes').EditAttachmentContainerProps>;
|
|
43
|
+
readonly Attachment: FC<import('../componentTypes').AttachmentContainerProps>;
|
|
44
|
+
readonly EditGroup: FC<import('../componentTypes').EditGroupContainerProps>;
|
|
45
|
+
readonly ContainersGroup: FC<import('../componentTypes').ContainersGroupContainerProps>;
|
|
46
|
+
readonly default: FC<import('../componentTypes').ContainersGroupContainerProps>;
|
|
44
47
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementButton: FC<
|
|
2
|
+
import { ElementButtonProps } from '../../types';
|
|
3
|
+
export declare const ElementButton: FC<ElementButtonProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IPreviewImage } from '@evergis/uilib-gl';
|
|
3
|
-
import {
|
|
3
|
+
import { ElementCameraProps } from '../../types';
|
|
4
4
|
export type SmallPreviewProps = {
|
|
5
5
|
images?: IPreviewImage[];
|
|
6
6
|
totalCount?: number;
|
|
@@ -10,6 +10,6 @@ export type SmallPreviewProps = {
|
|
|
10
10
|
setCurrentIndex?: (index: number) => void;
|
|
11
11
|
onNextPage?: VoidFunction;
|
|
12
12
|
};
|
|
13
|
-
export type CameraAttributeProps = Pick<
|
|
13
|
+
export type CameraAttributeProps = Pick<ElementCameraProps, "type" | "elementConfig" | "renderElement"> & {
|
|
14
14
|
field?: ReactElement;
|
|
15
15
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementChart: FC<
|
|
2
|
+
import { ElementChartProps } from '../../types';
|
|
3
|
+
export declare const ElementChart: FC<ElementChartProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementChips: FC<
|
|
2
|
+
import { ElementChipsProps } from '../../types';
|
|
3
|
+
export declare const ElementChips: FC<ElementChipsProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementControl: FC<
|
|
2
|
+
import { ElementControlProps } from '../../types';
|
|
3
|
+
export declare const ElementControl: FC<ElementControlProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementIcon: FC<
|
|
2
|
+
import { ElementIconProps } from '../../types';
|
|
3
|
+
export declare const ElementIcon: FC<ElementIconProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementImage: FC<
|
|
2
|
+
import { ElementImageProps } from '../../types';
|
|
3
|
+
export declare const ElementImage: FC<ElementImageProps>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementLegend: FC<
|
|
4
|
-
element: ConfigContainerChild;
|
|
5
|
-
}>;
|
|
2
|
+
import { ElementLegendProps } from '../../types';
|
|
3
|
+
export declare const ElementLegend: FC<ElementLegendProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementLink: FC<
|
|
2
|
+
import { ElementLinkProps } from '../../types';
|
|
3
|
+
export declare const ElementLink: FC<ElementLinkProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementMarkdown: FC<
|
|
2
|
+
import { ElementMarkdownProps } from '../../types';
|
|
3
|
+
export declare const ElementMarkdown: FC<ElementMarkdownProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementModal: FC<
|
|
2
|
+
import { ElementModalProps } from '../../types';
|
|
3
|
+
export declare const ElementModal: FC<ElementModalProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type DashboardSlideshowProps = Pick<
|
|
1
|
+
import { ElementSlideshowProps } from '../../types';
|
|
2
|
+
export type DashboardSlideshowProps = Pick<ElementSlideshowProps, "config" | "elementConfig" | "type" | "renderElement">;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface ElementSvgProps extends ContainerProps {
|
|
5
|
-
layerInfo?: QueryLayerServiceInfoDc;
|
|
6
|
-
attributes?: ClientFeatureAttribute[];
|
|
7
|
-
}
|
|
2
|
+
import { ElementSvgProps } from '../../types';
|
|
3
|
+
export type { ElementSvgProps };
|
|
8
4
|
export declare const ElementSvg: FC<ElementSvgProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementTooltip: FC<
|
|
2
|
+
import { ElementTooltipProps } from '../../types';
|
|
3
|
+
export declare const ElementTooltip: FC<ElementTooltipProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ElementUploader: FC<
|
|
2
|
+
import { ElementUploaderProps } from '../../types';
|
|
3
|
+
export declare const ElementUploader: FC<ElementUploaderProps>;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
export declare const elementComponents: {
|
|
2
|
-
readonly control: import('react').FC<import('
|
|
3
|
-
readonly image: import('react').FC<import('
|
|
2
|
+
readonly control: import('react').FC<import('../componentTypes').ElementControlProps>;
|
|
3
|
+
readonly image: import('react').FC<import('../componentTypes').ElementImageProps>;
|
|
4
4
|
readonly slideshow: import('react').FC<import('./ElementSlideshow/types').DashboardSlideshowProps>;
|
|
5
5
|
readonly svg: import('react').FC<import('./ElementSvg').ElementSvgProps>;
|
|
6
|
-
readonly icon: import('react').FC<import('
|
|
7
|
-
readonly tooltip: import('react').FC<import('
|
|
8
|
-
readonly tags: import('react').FC<import('
|
|
9
|
-
readonly link: import('react').FC<import('
|
|
10
|
-
readonly button: import('react').FC<import('
|
|
6
|
+
readonly icon: import('react').FC<import('../componentTypes').ElementIconProps>;
|
|
7
|
+
readonly tooltip: import('react').FC<import('../componentTypes').ElementTooltipProps>;
|
|
8
|
+
readonly tags: import('react').FC<import('../componentTypes').ElementChipsProps>;
|
|
9
|
+
readonly link: import('react').FC<import('../componentTypes').ElementLinkProps>;
|
|
10
|
+
readonly button: import('react').FC<import('../componentTypes').ElementButtonProps>;
|
|
11
11
|
readonly camera: import('react').FC<import('./ElementCamera/types').CameraAttributeProps>;
|
|
12
|
-
readonly chart: import('react').FC<import('
|
|
13
|
-
readonly legend: import('react').FC<import('
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly
|
|
17
|
-
readonly uploader: import('react').FC<import('..').ContainerProps>;
|
|
18
|
-
readonly modal: import('react').FC<import('..').ContainerProps>;
|
|
12
|
+
readonly chart: import('react').FC<import('../componentTypes').ElementChartProps>;
|
|
13
|
+
readonly legend: import('react').FC<import('../componentTypes').ElementLegendProps>;
|
|
14
|
+
readonly markdown: import('react').FC<import('../componentTypes').ElementMarkdownProps>;
|
|
15
|
+
readonly uploader: import('react').FC<import('../componentTypes').ElementUploaderProps>;
|
|
16
|
+
readonly modal: import('react').FC<import('../componentTypes').ElementModalProps>;
|
|
19
17
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ConfigContainerChild, WidgetType } from '../types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Generic-параметр `T` сейчас идёт как намерение (под какой виджет). Дальнейшее сужение
|
|
4
|
+
* `config` под конкретный виджет — отдельная задача.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useWidgetConfig: <T extends WidgetType = WidgetType.Dashboard>(type?: T) => {
|
|
3
7
|
config: any;
|
|
4
8
|
pages: ConfigContainerChild[];
|
|
5
9
|
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { WidgetType } from '../types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Контекст виджет-фрейма. Возвращаемый объект включает поля и {@link DashboardContext},
|
|
4
|
+
* и {@link FeatureCardContext}, а гибридные (`config`, `isEditing`, `isLoading`, `pageIndex`,
|
|
5
|
+
* `filters`, `changeFilters`, `dataSources`, `expandContainer`, `expandedContainers`,
|
|
6
|
+
* `selectedTabId`, `setSelectedTabId`, `nextPage`, `prevPage`, `changePage`) выбираются по `type`.
|
|
7
|
+
*
|
|
8
|
+
* Generic-параметр `T extends WidgetType` сейчас используется только как **намерение** —
|
|
9
|
+
* сигнализирует, под какой виджет настраивается код. Дальнейшее сужение возвращаемого типа
|
|
10
|
+
* через `WidgetContextMap[T]` потребует разделения {@link DashboardContext} и
|
|
11
|
+
* {@link FeatureCardContext} на пересекающуюся базу и виджет-специфичные расширения.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useWidgetContext: <T extends WidgetType = WidgetType.Dashboard>(type?: T) => {
|
|
3
14
|
toggleLayersVisibility: VoidFunction;
|
|
4
15
|
visibleLayers: boolean;
|
|
5
16
|
projectInfo: import('@evergis/api').ExtendedProjectInfoDc;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ConfigContainerChild, ConfigLayer, WidgetType } from '../types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Generic-параметр `T` — намерение под виджет. Дальнейшая параметризация — отдельная задача.
|
|
4
|
+
*/
|
|
5
|
+
export declare const useWidgetPage: <T extends WidgetType = WidgetType.Dashboard>(type?: T) => {
|
|
3
6
|
pageIndex: number;
|
|
4
7
|
currentPage: ConfigContainerChild;
|
|
5
8
|
changePage: (pageIndex: number) => void;
|