@epam/statgpt-conversation-view 0.5.0-rc.4 → 0.5.0-rc.41
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/AdvancedView/TableSettings/AgGridColumnPanel/hooks/useAgGridColumnPreferences.d.ts +2 -0
- package/components/AdvancedView/TableSettings/GridViewModeSwitcher/schemes/constants.d.ts +6 -0
- package/components/AdvancedView/TableSettings/GridViewModeSwitcher/schemes/index.d.ts +2 -0
- package/components/AdvancedView/TableSettings/GridViewModeSwitcher/schemes/types.d.ts +14 -0
- package/components/AdvancedView/TableSettings/types.d.ts +4 -0
- 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.d.ts +4 -1
- package/index.js +10 -8
- package/index.mjs +9043 -7521
- package/models/actions.d.ts +2 -1
- package/models/attachments-styles.d.ts +15 -2
- package/models/attachments.d.ts +1 -0
- package/models/charting.d.ts +2 -0
- package/models/filters.d.ts +2 -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 +2 -0
- package/utils/attachments/charting/cross-dataset-chart-data.d.ts +6 -0
- package/utils/attachments/cross-dataset-grid/build-cross-dataset-grid-attachment.d.ts +3 -2
- package/utils/attachments/cross-dataset-grid/build-cross-dataset-grid-columns.d.ts +2 -1
- package/utils/attachments/cross-dataset-grid/dimensions-columns.d.ts +2 -1
- 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/attachments/time-period.d.ts +2 -1
- package/utils/attachments-details.d.ts +2 -2
- package/utils/deferred-work.d.ts +3 -0
- package/utils/filters.d.ts +2 -5
- package/utils/get-filled-filters.d.ts +2 -0
- package/utils/get-series-filters.d.ts +2 -2
- package/utils/hierarchy-view.d.ts +4 -1
- package/utils/multiple-filters.d.ts +20 -5
- package/utils/query-filters.d.ts +2 -0
- package/utils/timezone.d.ts +1 -0
|
@@ -11,4 +11,6 @@ export declare function useAgGridColumnPreferences({ currentUrn, }: {
|
|
|
11
11
|
gridApi: GridApi<any> | undefined;
|
|
12
12
|
onGridApiReady: (api: GridApi) => void;
|
|
13
13
|
initialColumnsState: AgGridInitialColumnsState | null;
|
|
14
|
+
clearUserColumnState: () => void;
|
|
15
|
+
clearInitialColumnState: () => void;
|
|
14
16
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ViewSchemeCellEmphasis, ViewSchemeCellRole } from './types';
|
|
3
|
+
export declare const SCHEME_GRID_CLASS = "grid gap-1";
|
|
4
|
+
export declare const COMPACT_GRID_STYLE: CSSProperties;
|
|
5
|
+
export declare const EXTENDED_GRID_STYLE: CSSProperties;
|
|
6
|
+
export declare const CELL_CLASS_BY_ROLE_AND_EMPHASIS: Record<ViewSchemeCellRole, Record<ViewSchemeCellEmphasis, string>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare enum ViewSchemeCellRole {
|
|
3
|
+
Header = "header",
|
|
4
|
+
Cell = "cell"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ViewSchemeCellEmphasis {
|
|
7
|
+
Focus = "focus",
|
|
8
|
+
Default = "default"
|
|
9
|
+
}
|
|
10
|
+
export interface ViewSchemeCell {
|
|
11
|
+
role: ViewSchemeCellRole;
|
|
12
|
+
emphasis: ViewSchemeCellEmphasis;
|
|
13
|
+
label?: ReactNode;
|
|
14
|
+
}
|
|
@@ -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 {};
|
package/index.d.ts
CHANGED
|
@@ -15,11 +15,14 @@ export { AdvancedView } from './components/AdvancedView/AdvancedView';
|
|
|
15
15
|
export { ConversationView } from './components/ConversationView/ConversationView';
|
|
16
16
|
export { ChatFooter } from './components/ChatFooter/ChatFooter';
|
|
17
17
|
export { ChatOnboardingFooter } from './components/ChatOnboardingFooter/ChatOnboardingFooter';
|
|
18
|
+
export { CollapsedChatPanel } from './components/CollapsedChatPanel/CollapsedChatPanel';
|
|
18
19
|
export type { ShareConversationProps } from '../../share-conversation/src/models/share-conversation';
|
|
19
20
|
export type { DatasetInfoOptions } from './components/AdvancedView/DatasetInfo';
|
|
20
21
|
export { DatasetDimensionsMetadataMapProvider, useDatasetDimensionsMetadataMap, useDatasetDimensionsMetadataMapOptional, } from './context/DatasetDimensionsMetadataMapContext';
|
|
21
|
-
export {
|
|
22
|
+
export { ConversationViewStylesProvider, useConversationViewStyles, } from './context/ConversationViewStylesContext';
|
|
23
|
+
export type { ConversationViewStyles } from './context/ConversationViewStylesContext';
|
|
22
24
|
export { ConversationViewSidePanelProvider, useConversationViewSidePanelOptional, } from './components/ConversationView/SidePanel/ConversationViewSidePanelContext';
|
|
23
25
|
export type { ConversationViewSidePanelConfig, ConversationViewSidePanelScope, } from './components/ConversationView/SidePanel/ConversationViewSidePanelContext';
|
|
24
26
|
export { ConversationViewFeatureTogglesProvider, useConversationViewFeatureToggles, } from './context/ConversationViewFeatureTogglesContext';
|
|
25
27
|
export type { ConversationViewFeatureToggles } from './context/ConversationViewFeatureTogglesContext';
|
|
28
|
+
export { CrossDatasetAttachmentsProvider, useCrossDatasetAttachments, } from './context/CrossDatasetAttachmentsContext';
|