@epam/statgpt-conversation-view 0.3.0 → 0.4.0-rc.1
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/helpers.d.ts +12 -1
- package/components/AdvancedView/TableSettings/AgGridColumnPanel/useAgGridColumnsPanel.d.ts +4 -3
- package/constants/metadata.d.ts +5 -0
- package/index.d.ts +4 -0
- package/index.js +8 -7
- package/index.mjs +6997 -6168
- package/models/filters.d.ts +2 -0
- package/models/metadata.d.ts +6 -0
- package/package.json +6 -6
- package/utils/attachments/attachments-data.d.ts +3 -2
- package/utils/attachments/cross-dataset-grid/build-cross-dataset-grid-attachment.d.ts +2 -2
- package/utils/attachments/metadata.d.ts +13 -2
- package/utils/filters.d.ts +1 -0
- package/utils/get-filled-filters.d.ts +1 -0
- package/utils/get-updated-data-queries.d.ts +1 -1
- package/utils/multiple-filters.d.ts +14 -5
- package/utils/system-message.d.ts +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColDef, GridApi } from 'ag-grid-community';
|
|
2
2
|
import { DraggableListItemNode, DraggableListNode } from '../../../../../../ui-components/src/index';
|
|
3
|
+
import { DatasetDimensionsScheme, DimensionConfig, StructuralData } from '../../../../../../sdmx-toolkit/src/index';
|
|
3
4
|
import { AgGridInitialColumnsState, ColumnPanelFilter } from './types';
|
|
4
5
|
export declare const DEFAULT_INCLUDE_COLUMN: ColumnPanelFilter;
|
|
5
6
|
export declare function getColId(def: ColDef): string | null;
|
|
@@ -7,7 +8,17 @@ export declare function getColLabel(def: ColDef): string;
|
|
|
7
8
|
export declare function buildColumnStateMap(api: GridApi): Map<string, import('ag-grid-community').ColumnState>;
|
|
8
9
|
export declare function mapColumnsToPanelItems(api: GridApi, includeColumn: ColumnPanelFilter): DraggableListNode[];
|
|
9
10
|
export declare function getItemNodeByPath(nodes: DraggableListNode[], path: readonly string[]): DraggableListItemNode | undefined;
|
|
10
|
-
export declare function flattenIncludedLeafIds(nodes: DraggableListNode[]): string[];
|
|
11
|
+
export declare function flattenIncludedLeafIds(nodes: DraggableListNode[], isLeaf?: (node: DraggableListItemNode) => boolean): string[];
|
|
12
|
+
export interface CrossDatasetColumnsInfo {
|
|
13
|
+
dataQueries: Array<{
|
|
14
|
+
urn: string;
|
|
15
|
+
}>;
|
|
16
|
+
structuresMap: Map<string, StructuralData | undefined>;
|
|
17
|
+
getDimensionsScheme: (urn: string) => DatasetDimensionsScheme | undefined;
|
|
18
|
+
getDimensionConfig: (urn: string, dimKey: string) => DimensionConfig | undefined;
|
|
19
|
+
locale: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function buildCrossDatasetEnrichItem(info: CrossDatasetColumnsInfo): (item: DraggableListItemNode) => DraggableListItemNode;
|
|
11
22
|
export declare function mergeIncludedOrderIntoFullOrder(fullOrder: string[], includedOrder: string[], includedSet: Set<string>): string[];
|
|
12
23
|
export declare function captureInitialColumnsState(api: GridApi): AgGridInitialColumnsState;
|
|
13
24
|
export declare function restoreInitialColumnsState(api: GridApi, initialState?: AgGridInitialColumnsState | null): void;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { DraggableListNode, ItemClickEvent, ToggleCheckedEvent, ToggleExpandedEvent } from '../../../../../../ui-components/src/index';
|
|
1
|
+
import { DraggableListItemNode, DraggableListNode, ItemClickEvent, ToggleCheckedEvent, ToggleExpandedEvent } from '../../../../../../ui-components/src/index';
|
|
2
2
|
import { ColumnPanelFilter } from './types';
|
|
3
3
|
import { GridApi } from 'ag-grid-community';
|
|
4
|
-
export declare function useAgGridColumnsPanel({ api, searchQuery, includeColumn, }: {
|
|
4
|
+
export declare function useAgGridColumnsPanel({ api, searchQuery, includeColumn, enrichItem, }: {
|
|
5
5
|
api: GridApi | null;
|
|
6
6
|
searchQuery: string;
|
|
7
7
|
includeColumn?: ColumnPanelFilter;
|
|
8
|
+
enrichItem?: (item: DraggableListItemNode) => DraggableListItemNode;
|
|
8
9
|
}): {
|
|
9
10
|
items: DraggableListNode[];
|
|
10
11
|
visibleItems: DraggableListNode[];
|
|
11
12
|
handleToggleChecked: (e: ToggleCheckedEvent) => void;
|
|
12
|
-
handleToggleExpanded: (
|
|
13
|
+
handleToggleExpanded: (e: ToggleExpandedEvent) => void;
|
|
13
14
|
handleItemClick: (e: ItemClickEvent) => void;
|
|
14
15
|
handleItemsChange: (next: DraggableListNode[]) => void;
|
|
15
16
|
};
|
package/index.d.ts
CHANGED
|
@@ -19,3 +19,7 @@ export type { ShareConversationProps } from '../../share-conversation/src/models
|
|
|
19
19
|
export type { DatasetInfoOptions } from './components/AdvancedView/DatasetInfo';
|
|
20
20
|
export { DatasetDimensionsMetadataMapProvider, useDatasetDimensionsMetadataMap, useDatasetDimensionsMetadataMapOptional, } from './context/DatasetDimensionsMetadataMapContext';
|
|
21
21
|
export { ConversationViewTitlesProvider, useConversationViewTitles, } from './context/ConversationViewTitlesContext';
|
|
22
|
+
export { ConversationViewSidePanelProvider, useConversationViewSidePanelOptional, } from './components/ConversationView/SidePanel/ConversationViewSidePanelContext';
|
|
23
|
+
export type { ConversationViewSidePanelConfig, ConversationViewSidePanelScope, } from './components/ConversationView/SidePanel/ConversationViewSidePanelContext';
|
|
24
|
+
export { ConversationViewFeatureTogglesProvider, useConversationViewFeatureToggles, } from './context/ConversationViewFeatureTogglesContext';
|
|
25
|
+
export type { ConversationViewFeatureToggles } from './context/ConversationViewFeatureTogglesContext';
|