@epam/statgpt-conversation-view 0.4.1 → 0.4.2
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/components/Attachments/DownloadAlert/useDownloadAlertDetails.d.ts +15 -0
- package/components/Attachments/GridCellRenderers/helpers/get-observation-metadata-content.d.ts +27 -0
- package/components/Attachments/useAttachmentDownloadFlow.d.ts +19 -0
- package/index.js +10 -8
- package/index.mjs +6747 -5907
- package/models/actions.d.ts +2 -1
- package/models/attachments-styles.d.ts +3 -0
- package/models/attachments.d.ts +1 -0
- package/models/charting.d.ts +1 -0
- package/models/filters.d.ts +1 -1
- package/package.json +6 -6
- package/types/actions.d.ts +4 -1
- package/utils/attachments/attachment-parser.d.ts +1 -0
- package/utils/attachments/attachments-data.d.ts +1 -1
- package/utils/attachments/charting/chart-data.d.ts +1 -0
- package/utils/attachments/charting/cross-dataset-chart-data.d.ts +6 -0
- package/utils/attachments/data-grid/rows-data.d.ts +5 -1
- package/utils/attachments/python-attachment.d.ts +26 -0
- package/utils/attachments/replace-python-attachment.d.ts +10 -0
- package/utils/deferred-work.d.ts +3 -0
- package/utils/filters.d.ts +0 -5
- package/utils/get-series-filters.d.ts +2 -2
- package/utils/multiple-filters.d.ts +12 -4
- package/utils/query-filters.d.ts +2 -0
- package/utils/timezone.d.ts +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AlertDetails } from '../../../../../ui-components/src/index';
|
|
2
|
+
import { DownloadRequestConfig } from '../../../../../download-panel/src/models/download-request';
|
|
3
|
+
import { AttachmentsStyles } from '../../../models/attachments-styles';
|
|
4
|
+
interface UseDownloadAlertDetailsParams {
|
|
5
|
+
attachmentsStyles?: AttachmentsStyles;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
onRetry: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useDownloadAlertDetails: ({ attachmentsStyles, onCancel, onRetry, }: UseDownloadAlertDetailsParams) => {
|
|
10
|
+
getStartedAlertDetails: (request: DownloadRequestConfig) => AlertDetails;
|
|
11
|
+
getInProgressAlertDetails: (request: DownloadRequestConfig, currentFileNumber: number, completedCount: number, datasetName: string) => AlertDetails;
|
|
12
|
+
getSuccessAlertDetails: (request: DownloadRequestConfig) => AlertDetails;
|
|
13
|
+
getErrorAlertDetails: (request: DownloadRequestConfig) => AlertDetails;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
package/components/Attachments/GridCellRenderers/helpers/get-observation-metadata-content.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getObsAttributesFromParams } from '../../../../utils/attachments/metadata';
|
|
2
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
3
|
+
import { StructuralData } from '../../../../../../sdmx-toolkit/src/index';
|
|
4
|
+
import { MetadataSettings } from '../../../../models/metadata';
|
|
5
|
+
import { ConversationViewTitles } from '../../../../index';
|
|
6
|
+
export interface ObservationValueCellRendererParams extends ICellRendererParams {
|
|
7
|
+
dataSetData: StructuralData;
|
|
8
|
+
structuresMap?: Map<string, StructuralData | undefined>;
|
|
9
|
+
locale: string;
|
|
10
|
+
metadataSettings?: MetadataSettings;
|
|
11
|
+
titles?: ConversationViewTitles;
|
|
12
|
+
}
|
|
13
|
+
export type ObservationMetadataContent = ReturnType<typeof getObservationMetadataContent>;
|
|
14
|
+
export declare const getObservationMetadataContent: (params: ObservationValueCellRendererParams, obsAttributes: NonNullable<ReturnType<typeof getObsAttributesFromParams>>) => {
|
|
15
|
+
metadata: (import('../../../../index').StructureComponentValue | {
|
|
16
|
+
title: string;
|
|
17
|
+
value: string | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
title: string | undefined;
|
|
20
|
+
value: string;
|
|
21
|
+
})[];
|
|
22
|
+
metadataDescription: {
|
|
23
|
+
title: string | undefined;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
sidePanelDatasetInfo: import('../../../../models/metadata').DatasetInfoData;
|
|
27
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AlertDetails } from '../../../../ui-components/src/index';
|
|
2
|
+
import { AttachmentsStyles } from '../../models/attachments-styles';
|
|
3
|
+
import { DownloadRequestConfig } from '../../../../download-panel/src/models/download-request';
|
|
4
|
+
import { DownloadDatasetAction } from '../../../../download-panel/src/types/actions';
|
|
5
|
+
interface UseAttachmentDownloadFlowParams {
|
|
6
|
+
attachmentsStyles?: AttachmentsStyles;
|
|
7
|
+
downloadDataSet: DownloadDatasetAction;
|
|
8
|
+
}
|
|
9
|
+
export declare const useAttachmentDownloadFlow: ({ attachmentsStyles, downloadDataSet, }: UseAttachmentDownloadFlowParams) => {
|
|
10
|
+
startDownload: (request: DownloadRequestConfig) => boolean;
|
|
11
|
+
isDownloadRunning: boolean;
|
|
12
|
+
downloadAlertProps: {
|
|
13
|
+
isOpen: boolean | undefined;
|
|
14
|
+
alertDetails: AlertDetails | undefined;
|
|
15
|
+
attachmentsStyles: AttachmentsStyles | undefined;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {};
|