orbcafe-ui 1.1.4 → 1.1.5
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/index.d.mts +84 -2
- package/dist/index.d.ts +84 -2
- package/dist/index.js +18 -14
- package/dist/index.mjs +16 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1206,6 +1206,25 @@ declare const en: {
|
|
|
1206
1206
|
readonly 'pivot.preset.saveDialogTitle': "Save current preset";
|
|
1207
1207
|
readonly 'pivot.preset.nameLabel': "Preset name";
|
|
1208
1208
|
readonly 'pivot.preset.defaultName': "Preset {index}";
|
|
1209
|
+
readonly 'pivot.table.sectionTitle': "Pivot Result";
|
|
1210
|
+
readonly 'pivot.table.collapse.ariaExpand': "Expand pivot result";
|
|
1211
|
+
readonly 'pivot.table.collapse.ariaCollapse': "Collapse pivot result";
|
|
1212
|
+
readonly 'pivot.chart.title': "Pivot Chart";
|
|
1213
|
+
readonly 'pivot.chart.subtitle': "Map one dimension and up to two measures into a compact chart.";
|
|
1214
|
+
readonly 'pivot.chart.subtitleReady': "{dimension} by {measure}";
|
|
1215
|
+
readonly 'pivot.chart.emptyNoDimension': "Add at least one row or column field to render the chart.";
|
|
1216
|
+
readonly 'pivot.chart.emptyNoValue': "Add at least one value field to render the chart.";
|
|
1217
|
+
readonly 'pivot.chart.emptyNoData': "No data available for the current chart selection.";
|
|
1218
|
+
readonly 'pivot.chart.dimension': "Dimension";
|
|
1219
|
+
readonly 'pivot.chart.primaryMeasure': "Measure";
|
|
1220
|
+
readonly 'pivot.chart.secondaryMeasure': "Compare measure";
|
|
1221
|
+
readonly 'pivot.chart.chartType': "Chart type";
|
|
1222
|
+
readonly 'pivot.chart.style.barVertical': "Vertical bars";
|
|
1223
|
+
readonly 'pivot.chart.style.barHorizontal': "Horizontal bars";
|
|
1224
|
+
readonly 'pivot.chart.style.line': "Line";
|
|
1225
|
+
readonly 'pivot.chart.style.scatter': "Scatter";
|
|
1226
|
+
readonly 'pivot.chart.collapse.ariaExpand': "Expand chart area";
|
|
1227
|
+
readonly 'pivot.chart.collapse.ariaCollapse': "Collapse chart area";
|
|
1209
1228
|
readonly 'smartFilter.adaptFilters': "Adapt Filters";
|
|
1210
1229
|
readonly 'smartFilter.addFilters': "Add Filters";
|
|
1211
1230
|
readonly 'smartFilter.go': "Go";
|
|
@@ -1386,6 +1405,7 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
|
|
|
1386
1405
|
};
|
|
1387
1406
|
|
|
1388
1407
|
type PivotAggregation = 'sum' | 'count' | 'avg' | 'min' | 'max';
|
|
1408
|
+
type PivotChartType = 'bar-vertical' | 'bar-horizontal' | 'line' | 'scatter';
|
|
1389
1409
|
type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
|
|
1390
1410
|
interface PivotFieldDefinition {
|
|
1391
1411
|
id: string;
|
|
@@ -1410,12 +1430,19 @@ interface PivotLayoutConfig {
|
|
|
1410
1430
|
values?: PivotValueFieldConfig[];
|
|
1411
1431
|
}
|
|
1412
1432
|
type PivotFilterSelections = Record<string, string[]>;
|
|
1433
|
+
interface PivotChartConfig {
|
|
1434
|
+
dimensionFieldId?: string;
|
|
1435
|
+
primaryValueFieldId?: string;
|
|
1436
|
+
secondaryValueFieldId?: string;
|
|
1437
|
+
chartType?: PivotChartType;
|
|
1438
|
+
}
|
|
1413
1439
|
interface PivotTablePreset {
|
|
1414
1440
|
id: string;
|
|
1415
1441
|
name: string;
|
|
1416
1442
|
layout: PivotLayoutConfig;
|
|
1417
1443
|
filterSelections?: PivotFilterSelections;
|
|
1418
1444
|
showGrandTotal?: boolean;
|
|
1445
|
+
chart?: PivotChartConfig;
|
|
1419
1446
|
}
|
|
1420
1447
|
interface PivotTableModel {
|
|
1421
1448
|
rowFields: string[];
|
|
@@ -1432,14 +1459,29 @@ interface PivotTableModel {
|
|
|
1432
1459
|
setShowGrandTotal: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1433
1460
|
isConfiguratorCollapsed: boolean;
|
|
1434
1461
|
setIsConfiguratorCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1462
|
+
chartDimensionFieldId: string;
|
|
1463
|
+
setChartDimensionFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
1464
|
+
chartPrimaryValueFieldId: string;
|
|
1465
|
+
setChartPrimaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
1466
|
+
chartSecondaryValueFieldId: string;
|
|
1467
|
+
setChartSecondaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
1468
|
+
chartType: PivotChartType;
|
|
1469
|
+
setChartType: React__default.Dispatch<React__default.SetStateAction<PivotChartType>>;
|
|
1470
|
+
isChartCollapsed: boolean;
|
|
1471
|
+
setIsChartCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1472
|
+
isTableCollapsed: boolean;
|
|
1473
|
+
setIsTableCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1435
1474
|
}
|
|
1436
1475
|
interface CPivotTableProps {
|
|
1437
1476
|
title?: string;
|
|
1438
1477
|
rows: Record<string, unknown>[];
|
|
1439
1478
|
fields: PivotFieldDefinition[];
|
|
1440
1479
|
initialLayout?: PivotLayoutConfig;
|
|
1480
|
+
initialChart?: PivotChartConfig;
|
|
1441
1481
|
emptyText?: string;
|
|
1442
1482
|
maxPreviewHeight?: number | string;
|
|
1483
|
+
initialChartCollapsed?: boolean;
|
|
1484
|
+
initialTableCollapsed?: boolean;
|
|
1443
1485
|
model?: PivotTableModel;
|
|
1444
1486
|
enablePresetManagement?: boolean;
|
|
1445
1487
|
presets?: PivotTablePreset[];
|
|
@@ -1457,6 +1499,14 @@ interface UsePivotTableOptions {
|
|
|
1457
1499
|
initialFilterSelections?: PivotFilterSelections;
|
|
1458
1500
|
initialShowGrandTotal?: boolean;
|
|
1459
1501
|
initialConfiguratorCollapsed?: boolean;
|
|
1502
|
+
initialChart?: {
|
|
1503
|
+
dimensionFieldId?: string;
|
|
1504
|
+
primaryValueFieldId?: string;
|
|
1505
|
+
secondaryValueFieldId?: string;
|
|
1506
|
+
chartType?: PivotChartType;
|
|
1507
|
+
};
|
|
1508
|
+
initialChartCollapsed?: boolean;
|
|
1509
|
+
initialTableCollapsed?: boolean;
|
|
1460
1510
|
}
|
|
1461
1511
|
interface UsePivotTableActions {
|
|
1462
1512
|
setRows: (rows: string[]) => void;
|
|
@@ -1471,12 +1521,44 @@ interface UsePivotTableActions {
|
|
|
1471
1521
|
resetFilterSelections: () => void;
|
|
1472
1522
|
toggleGrandTotal: () => void;
|
|
1473
1523
|
toggleConfigurator: () => void;
|
|
1524
|
+
setChartDimension: (fieldId: string) => void;
|
|
1525
|
+
setChartPrimaryValue: (fieldId: string) => void;
|
|
1526
|
+
setChartSecondaryValue: (fieldId: string) => void;
|
|
1527
|
+
setChartType: (chartType: PivotChartType) => void;
|
|
1528
|
+
toggleChart: () => void;
|
|
1529
|
+
toggleTable: () => void;
|
|
1474
1530
|
}
|
|
1475
1531
|
interface UsePivotTableResult {
|
|
1476
1532
|
model: PivotTableModel;
|
|
1477
1533
|
actions: UsePivotTableActions;
|
|
1478
1534
|
}
|
|
1479
|
-
declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
|
|
1535
|
+
declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, initialChart, initialChartCollapsed, initialTableCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
|
|
1536
|
+
|
|
1537
|
+
interface ValueZoneItem {
|
|
1538
|
+
tokenId: string;
|
|
1539
|
+
fieldId: string;
|
|
1540
|
+
aggregation: PivotAggregation;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
interface PivotChartPanelProps {
|
|
1544
|
+
rows: Record<string, unknown>[];
|
|
1545
|
+
fieldMap: Map<string, PivotFieldDefinition>;
|
|
1546
|
+
rowFields: string[];
|
|
1547
|
+
columnFields: string[];
|
|
1548
|
+
valueFields: ValueZoneItem[];
|
|
1549
|
+
chartDimensionFieldId: string;
|
|
1550
|
+
chartPrimaryValueFieldId: string;
|
|
1551
|
+
chartSecondaryValueFieldId: string;
|
|
1552
|
+
chartType: PivotChartType;
|
|
1553
|
+
isCollapsed: boolean;
|
|
1554
|
+
onChartDimensionFieldIdChange: (fieldId: string) => void;
|
|
1555
|
+
onChartPrimaryValueFieldIdChange: (fieldId: string) => void;
|
|
1556
|
+
onChartSecondaryValueFieldIdChange: (fieldId: string) => void;
|
|
1557
|
+
onChartTypeChange: (chartType: PivotChartType) => void;
|
|
1558
|
+
onToggleCollapse: () => void;
|
|
1559
|
+
getAggregationLabel: (aggregation: ValueZoneItem['aggregation']) => string;
|
|
1560
|
+
}
|
|
1561
|
+
declare const PivotChartPanel: React__default.FC<PivotChartPanelProps>;
|
|
1480
1562
|
|
|
1481
1563
|
interface UseVoiceInputOptions {
|
|
1482
1564
|
onTextUpdate?: (text: string) => void;
|
|
@@ -1733,4 +1815,4 @@ declare const PAGE_TRANSITION_PRESETS: {
|
|
|
1733
1815
|
};
|
|
1734
1816
|
};
|
|
1735
1817
|
|
|
1736
|
-
export { type AINavContextValue, AgentPanel, type AgentPanelProps, type AgentPanelStatus, type AgentUICardAction, type AgentUICardHookEvent, type AgentUICardHooks, type AgentUICardType, type AmapEmbedOptions, Button, type ButtonProps, CAINavProvider, type CAINavProviderProps, CAmapChart, type CAmapChartProps, CAppHeader, type CAppHeaderProps, type CAppHeaderUser, type CAppHeaderUserMenuItem, CAppPageLayout, type CAppPageLayoutProps, CBarChart, type CBarChartProps, CChartCard, type CChartCardProps, CComboChart, type CComboChartProps, CCustomizeAgent, type CCustomizeAgentProps, CDetailInfoPage, type CDetailInfoPageProps, CDetailSearchAiBar, type CDetailSearchAiBarProps, CDetailSectionCard, type CDetailSectionCardProps, CFishboneChart, type CFishboneChartProps, CGoogleMapChart, type CGoogleMapChartProps, CGraphCharts, CGraphKpiCards, CGraphReport, type CGraphReportProps, CHeatmapChart, type CHeatmapChartProps, CLayoutManagement, type CLayoutManagementProps, CLayoutManager, type CLayoutManagerProps, CLineChart, type CLineChartProps, CMessageBox, type CMessageBoxProps, type CMessageBoxType, COrbCanvas, type COrbCanvasProps, CPageLayout, type CPageLayoutProps, CPageTransition, type CPageTransitionProps, CPieChart, type CPieChartProps, CPivotTable, type CPivotTableProps, CSmartFilter, type CSmartFilterProps, CSmartTable, CStandardPage, type CStandardPageProps, CTable, CTableBody, type CTableBodyProps, CTableCell, type CTableCellProps, CTableContainer, type CTableContainerProps, CTableHead, type CTableHeadProps, type CTableProps, type CTableQuickCreateConfig, type CTableQuickDeleteConfig, type CTableQuickEditConfig, CTableRow, type CTableRowProps, CVariantManagement, type CVariantManagementProps, CVariantManager, CVoiceWaveOverlay, type CVoiceWaveOverlayProps, CWaterfallChart, type CWaterfallChartProps, ChatMessage, CodeBlock, type CodeBlockProps, CopilotChat, type CopilotChatProps, type CustomizeAgentSavePayload, type CustomizeAgentSettings, type CustomizeAgentTemplateOption, type DateOperator, type DetailInfoAiConfig, type DetailInfoField, type DetailInfoSearchHit, type DetailInfoSearchMode, type DetailInfoSection, type DetailInfoTab, type DetailInfoTableConfig, type FilterField, type FilterOperator, type FilterType, type FilterValue, GlobalMessage, type GoogleMapEmbedOptions, type GraphBarDatum, type GraphComboDatum, type GraphFishboneBranch, type GraphHeatmapDatum, type GraphLineDatum, type GraphMapLocation, type GraphPieDatum, type GraphReportConfig, type GraphReportFieldMapping, type GraphReportInteractionState, type GraphReportKpis, type GraphReportModel, type GraphRow, type GraphTableColumn, type GraphWaterfallDatum, type IVariantService, type LayoutMetadata, MarkdownRenderer, type MarkdownRendererProps, MathBlock, type MathBlockProps, MermaidBlock, type MermaidBlockProps, type MessageContent, type MessageEvent, type MessageOptions, NavigationIsland, type NavigationIslandProps, type NumberOperator, ORBCAFE_I18N_MESSAGES, type OrbcafeI18nContextValue, OrbcafeI18nProvider, type OrbcafeI18nProviderProps, type OrbcafeLocale, type OrbcafeLocaleMessages, type OrbcafeMessageKey, type OrbcafeMessageParams, PAGE_TRANSITION_PRESETS, type PageTransitionVariant, type ParsedMarkdownTable, type PivotAggregation, type PivotFieldDefinition, type PivotFieldType, type PivotFilterSelections, type PivotLayoutConfig, type PivotTableModel, type PivotTablePreset, type PivotValueFieldConfig, type PivotValueFieldState, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, StdChat, type StdChatProps, type TableAlign, TableBlock, type TableBlockProps, type TextOperator, ThinkBlock, type ThinkBlockProps, TreeMenu, type TreeMenuItem, type UseAmapEmbedUrlOptions, type UseDetailInfoOptions, type UseDetailInfoResult, type UseGoogleMapEmbedUrlOptions, type UseGraphChartDataOptions, type UseGraphChartDataResult, type UseGraphInteractionResult, type UseGraphReportOptions, type UseGraphReportResult, type UseNavigationIslandOptions, type UseNavigationIslandResult, type UsePageLayoutOptions, type UsePivotTableOptions, type UsePivotTableResult, type UseStandardReportOptions, type UseVoiceInputOptions, type UseVoiceInputResult, type VariantMetadata, type VoiceNavigatorContextValue, VoiceNavigatorProvider, type VoiceNavigatorProviderProps, VoiceWaveOverlay, type VoiceWaveOverlayProps, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, message, messageManager, parseMarkdownTable, renderMarkdown, resolveVariantFilters, resolveVariantLayout, useAINav, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, usePivotTable, useStandardReport, useVoiceInput, useVoiceNavigator };
|
|
1818
|
+
export { type AINavContextValue, AgentPanel, type AgentPanelProps, type AgentPanelStatus, type AgentUICardAction, type AgentUICardHookEvent, type AgentUICardHooks, type AgentUICardType, type AmapEmbedOptions, Button, type ButtonProps, CAINavProvider, type CAINavProviderProps, CAmapChart, type CAmapChartProps, CAppHeader, type CAppHeaderProps, type CAppHeaderUser, type CAppHeaderUserMenuItem, CAppPageLayout, type CAppPageLayoutProps, CBarChart, type CBarChartProps, CChartCard, type CChartCardProps, CComboChart, type CComboChartProps, CCustomizeAgent, type CCustomizeAgentProps, CDetailInfoPage, type CDetailInfoPageProps, CDetailSearchAiBar, type CDetailSearchAiBarProps, CDetailSectionCard, type CDetailSectionCardProps, CFishboneChart, type CFishboneChartProps, CGoogleMapChart, type CGoogleMapChartProps, CGraphCharts, CGraphKpiCards, CGraphReport, type CGraphReportProps, CHeatmapChart, type CHeatmapChartProps, CLayoutManagement, type CLayoutManagementProps, CLayoutManager, type CLayoutManagerProps, CLineChart, type CLineChartProps, CMessageBox, type CMessageBoxProps, type CMessageBoxType, COrbCanvas, type COrbCanvasProps, CPageLayout, type CPageLayoutProps, CPageTransition, type CPageTransitionProps, CPieChart, type CPieChartProps, CPivotTable, type CPivotTableProps, CSmartFilter, type CSmartFilterProps, CSmartTable, CStandardPage, type CStandardPageProps, CTable, CTableBody, type CTableBodyProps, CTableCell, type CTableCellProps, CTableContainer, type CTableContainerProps, CTableHead, type CTableHeadProps, type CTableProps, type CTableQuickCreateConfig, type CTableQuickDeleteConfig, type CTableQuickEditConfig, CTableRow, type CTableRowProps, CVariantManagement, type CVariantManagementProps, CVariantManager, CVoiceWaveOverlay, type CVoiceWaveOverlayProps, CWaterfallChart, type CWaterfallChartProps, ChatMessage, CodeBlock, type CodeBlockProps, CopilotChat, type CopilotChatProps, type CustomizeAgentSavePayload, type CustomizeAgentSettings, type CustomizeAgentTemplateOption, type DateOperator, type DetailInfoAiConfig, type DetailInfoField, type DetailInfoSearchHit, type DetailInfoSearchMode, type DetailInfoSection, type DetailInfoTab, type DetailInfoTableConfig, type FilterField, type FilterOperator, type FilterType, type FilterValue, GlobalMessage, type GoogleMapEmbedOptions, type GraphBarDatum, type GraphComboDatum, type GraphFishboneBranch, type GraphHeatmapDatum, type GraphLineDatum, type GraphMapLocation, type GraphPieDatum, type GraphReportConfig, type GraphReportFieldMapping, type GraphReportInteractionState, type GraphReportKpis, type GraphReportModel, type GraphRow, type GraphTableColumn, type GraphWaterfallDatum, type IVariantService, type LayoutMetadata, MarkdownRenderer, type MarkdownRendererProps, MathBlock, type MathBlockProps, MermaidBlock, type MermaidBlockProps, type MessageContent, type MessageEvent, type MessageOptions, NavigationIsland, type NavigationIslandProps, type NumberOperator, ORBCAFE_I18N_MESSAGES, type OrbcafeI18nContextValue, OrbcafeI18nProvider, type OrbcafeI18nProviderProps, type OrbcafeLocale, type OrbcafeLocaleMessages, type OrbcafeMessageKey, type OrbcafeMessageParams, PAGE_TRANSITION_PRESETS, type PageTransitionVariant, type ParsedMarkdownTable, type PivotAggregation, type PivotChartConfig, PivotChartPanel, type PivotChartType, type PivotFieldDefinition, type PivotFieldType, type PivotFilterSelections, type PivotLayoutConfig, type PivotTableModel, type PivotTablePreset, type PivotValueFieldConfig, type PivotValueFieldState, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, StdChat, type StdChatProps, type TableAlign, TableBlock, type TableBlockProps, type TextOperator, ThinkBlock, type ThinkBlockProps, TreeMenu, type TreeMenuItem, type UseAmapEmbedUrlOptions, type UseDetailInfoOptions, type UseDetailInfoResult, type UseGoogleMapEmbedUrlOptions, type UseGraphChartDataOptions, type UseGraphChartDataResult, type UseGraphInteractionResult, type UseGraphReportOptions, type UseGraphReportResult, type UseNavigationIslandOptions, type UseNavigationIslandResult, type UsePageLayoutOptions, type UsePivotTableOptions, type UsePivotTableResult, type UseStandardReportOptions, type UseVoiceInputOptions, type UseVoiceInputResult, type VariantMetadata, type VoiceNavigatorContextValue, VoiceNavigatorProvider, type VoiceNavigatorProviderProps, VoiceWaveOverlay, type VoiceWaveOverlayProps, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, message, messageManager, parseMarkdownTable, renderMarkdown, resolveVariantFilters, resolveVariantLayout, useAINav, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, usePivotTable, useStandardReport, useVoiceInput, useVoiceNavigator };
|
package/dist/index.d.ts
CHANGED
|
@@ -1206,6 +1206,25 @@ declare const en: {
|
|
|
1206
1206
|
readonly 'pivot.preset.saveDialogTitle': "Save current preset";
|
|
1207
1207
|
readonly 'pivot.preset.nameLabel': "Preset name";
|
|
1208
1208
|
readonly 'pivot.preset.defaultName': "Preset {index}";
|
|
1209
|
+
readonly 'pivot.table.sectionTitle': "Pivot Result";
|
|
1210
|
+
readonly 'pivot.table.collapse.ariaExpand': "Expand pivot result";
|
|
1211
|
+
readonly 'pivot.table.collapse.ariaCollapse': "Collapse pivot result";
|
|
1212
|
+
readonly 'pivot.chart.title': "Pivot Chart";
|
|
1213
|
+
readonly 'pivot.chart.subtitle': "Map one dimension and up to two measures into a compact chart.";
|
|
1214
|
+
readonly 'pivot.chart.subtitleReady': "{dimension} by {measure}";
|
|
1215
|
+
readonly 'pivot.chart.emptyNoDimension': "Add at least one row or column field to render the chart.";
|
|
1216
|
+
readonly 'pivot.chart.emptyNoValue': "Add at least one value field to render the chart.";
|
|
1217
|
+
readonly 'pivot.chart.emptyNoData': "No data available for the current chart selection.";
|
|
1218
|
+
readonly 'pivot.chart.dimension': "Dimension";
|
|
1219
|
+
readonly 'pivot.chart.primaryMeasure': "Measure";
|
|
1220
|
+
readonly 'pivot.chart.secondaryMeasure': "Compare measure";
|
|
1221
|
+
readonly 'pivot.chart.chartType': "Chart type";
|
|
1222
|
+
readonly 'pivot.chart.style.barVertical': "Vertical bars";
|
|
1223
|
+
readonly 'pivot.chart.style.barHorizontal': "Horizontal bars";
|
|
1224
|
+
readonly 'pivot.chart.style.line': "Line";
|
|
1225
|
+
readonly 'pivot.chart.style.scatter': "Scatter";
|
|
1226
|
+
readonly 'pivot.chart.collapse.ariaExpand': "Expand chart area";
|
|
1227
|
+
readonly 'pivot.chart.collapse.ariaCollapse': "Collapse chart area";
|
|
1209
1228
|
readonly 'smartFilter.adaptFilters': "Adapt Filters";
|
|
1210
1229
|
readonly 'smartFilter.addFilters': "Add Filters";
|
|
1211
1230
|
readonly 'smartFilter.go': "Go";
|
|
@@ -1386,6 +1405,7 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
|
|
|
1386
1405
|
};
|
|
1387
1406
|
|
|
1388
1407
|
type PivotAggregation = 'sum' | 'count' | 'avg' | 'min' | 'max';
|
|
1408
|
+
type PivotChartType = 'bar-vertical' | 'bar-horizontal' | 'line' | 'scatter';
|
|
1389
1409
|
type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
|
|
1390
1410
|
interface PivotFieldDefinition {
|
|
1391
1411
|
id: string;
|
|
@@ -1410,12 +1430,19 @@ interface PivotLayoutConfig {
|
|
|
1410
1430
|
values?: PivotValueFieldConfig[];
|
|
1411
1431
|
}
|
|
1412
1432
|
type PivotFilterSelections = Record<string, string[]>;
|
|
1433
|
+
interface PivotChartConfig {
|
|
1434
|
+
dimensionFieldId?: string;
|
|
1435
|
+
primaryValueFieldId?: string;
|
|
1436
|
+
secondaryValueFieldId?: string;
|
|
1437
|
+
chartType?: PivotChartType;
|
|
1438
|
+
}
|
|
1413
1439
|
interface PivotTablePreset {
|
|
1414
1440
|
id: string;
|
|
1415
1441
|
name: string;
|
|
1416
1442
|
layout: PivotLayoutConfig;
|
|
1417
1443
|
filterSelections?: PivotFilterSelections;
|
|
1418
1444
|
showGrandTotal?: boolean;
|
|
1445
|
+
chart?: PivotChartConfig;
|
|
1419
1446
|
}
|
|
1420
1447
|
interface PivotTableModel {
|
|
1421
1448
|
rowFields: string[];
|
|
@@ -1432,14 +1459,29 @@ interface PivotTableModel {
|
|
|
1432
1459
|
setShowGrandTotal: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1433
1460
|
isConfiguratorCollapsed: boolean;
|
|
1434
1461
|
setIsConfiguratorCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1462
|
+
chartDimensionFieldId: string;
|
|
1463
|
+
setChartDimensionFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
1464
|
+
chartPrimaryValueFieldId: string;
|
|
1465
|
+
setChartPrimaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
1466
|
+
chartSecondaryValueFieldId: string;
|
|
1467
|
+
setChartSecondaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
1468
|
+
chartType: PivotChartType;
|
|
1469
|
+
setChartType: React__default.Dispatch<React__default.SetStateAction<PivotChartType>>;
|
|
1470
|
+
isChartCollapsed: boolean;
|
|
1471
|
+
setIsChartCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1472
|
+
isTableCollapsed: boolean;
|
|
1473
|
+
setIsTableCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1435
1474
|
}
|
|
1436
1475
|
interface CPivotTableProps {
|
|
1437
1476
|
title?: string;
|
|
1438
1477
|
rows: Record<string, unknown>[];
|
|
1439
1478
|
fields: PivotFieldDefinition[];
|
|
1440
1479
|
initialLayout?: PivotLayoutConfig;
|
|
1480
|
+
initialChart?: PivotChartConfig;
|
|
1441
1481
|
emptyText?: string;
|
|
1442
1482
|
maxPreviewHeight?: number | string;
|
|
1483
|
+
initialChartCollapsed?: boolean;
|
|
1484
|
+
initialTableCollapsed?: boolean;
|
|
1443
1485
|
model?: PivotTableModel;
|
|
1444
1486
|
enablePresetManagement?: boolean;
|
|
1445
1487
|
presets?: PivotTablePreset[];
|
|
@@ -1457,6 +1499,14 @@ interface UsePivotTableOptions {
|
|
|
1457
1499
|
initialFilterSelections?: PivotFilterSelections;
|
|
1458
1500
|
initialShowGrandTotal?: boolean;
|
|
1459
1501
|
initialConfiguratorCollapsed?: boolean;
|
|
1502
|
+
initialChart?: {
|
|
1503
|
+
dimensionFieldId?: string;
|
|
1504
|
+
primaryValueFieldId?: string;
|
|
1505
|
+
secondaryValueFieldId?: string;
|
|
1506
|
+
chartType?: PivotChartType;
|
|
1507
|
+
};
|
|
1508
|
+
initialChartCollapsed?: boolean;
|
|
1509
|
+
initialTableCollapsed?: boolean;
|
|
1460
1510
|
}
|
|
1461
1511
|
interface UsePivotTableActions {
|
|
1462
1512
|
setRows: (rows: string[]) => void;
|
|
@@ -1471,12 +1521,44 @@ interface UsePivotTableActions {
|
|
|
1471
1521
|
resetFilterSelections: () => void;
|
|
1472
1522
|
toggleGrandTotal: () => void;
|
|
1473
1523
|
toggleConfigurator: () => void;
|
|
1524
|
+
setChartDimension: (fieldId: string) => void;
|
|
1525
|
+
setChartPrimaryValue: (fieldId: string) => void;
|
|
1526
|
+
setChartSecondaryValue: (fieldId: string) => void;
|
|
1527
|
+
setChartType: (chartType: PivotChartType) => void;
|
|
1528
|
+
toggleChart: () => void;
|
|
1529
|
+
toggleTable: () => void;
|
|
1474
1530
|
}
|
|
1475
1531
|
interface UsePivotTableResult {
|
|
1476
1532
|
model: PivotTableModel;
|
|
1477
1533
|
actions: UsePivotTableActions;
|
|
1478
1534
|
}
|
|
1479
|
-
declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
|
|
1535
|
+
declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, initialChart, initialChartCollapsed, initialTableCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
|
|
1536
|
+
|
|
1537
|
+
interface ValueZoneItem {
|
|
1538
|
+
tokenId: string;
|
|
1539
|
+
fieldId: string;
|
|
1540
|
+
aggregation: PivotAggregation;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
interface PivotChartPanelProps {
|
|
1544
|
+
rows: Record<string, unknown>[];
|
|
1545
|
+
fieldMap: Map<string, PivotFieldDefinition>;
|
|
1546
|
+
rowFields: string[];
|
|
1547
|
+
columnFields: string[];
|
|
1548
|
+
valueFields: ValueZoneItem[];
|
|
1549
|
+
chartDimensionFieldId: string;
|
|
1550
|
+
chartPrimaryValueFieldId: string;
|
|
1551
|
+
chartSecondaryValueFieldId: string;
|
|
1552
|
+
chartType: PivotChartType;
|
|
1553
|
+
isCollapsed: boolean;
|
|
1554
|
+
onChartDimensionFieldIdChange: (fieldId: string) => void;
|
|
1555
|
+
onChartPrimaryValueFieldIdChange: (fieldId: string) => void;
|
|
1556
|
+
onChartSecondaryValueFieldIdChange: (fieldId: string) => void;
|
|
1557
|
+
onChartTypeChange: (chartType: PivotChartType) => void;
|
|
1558
|
+
onToggleCollapse: () => void;
|
|
1559
|
+
getAggregationLabel: (aggregation: ValueZoneItem['aggregation']) => string;
|
|
1560
|
+
}
|
|
1561
|
+
declare const PivotChartPanel: React__default.FC<PivotChartPanelProps>;
|
|
1480
1562
|
|
|
1481
1563
|
interface UseVoiceInputOptions {
|
|
1482
1564
|
onTextUpdate?: (text: string) => void;
|
|
@@ -1733,4 +1815,4 @@ declare const PAGE_TRANSITION_PRESETS: {
|
|
|
1733
1815
|
};
|
|
1734
1816
|
};
|
|
1735
1817
|
|
|
1736
|
-
export { type AINavContextValue, AgentPanel, type AgentPanelProps, type AgentPanelStatus, type AgentUICardAction, type AgentUICardHookEvent, type AgentUICardHooks, type AgentUICardType, type AmapEmbedOptions, Button, type ButtonProps, CAINavProvider, type CAINavProviderProps, CAmapChart, type CAmapChartProps, CAppHeader, type CAppHeaderProps, type CAppHeaderUser, type CAppHeaderUserMenuItem, CAppPageLayout, type CAppPageLayoutProps, CBarChart, type CBarChartProps, CChartCard, type CChartCardProps, CComboChart, type CComboChartProps, CCustomizeAgent, type CCustomizeAgentProps, CDetailInfoPage, type CDetailInfoPageProps, CDetailSearchAiBar, type CDetailSearchAiBarProps, CDetailSectionCard, type CDetailSectionCardProps, CFishboneChart, type CFishboneChartProps, CGoogleMapChart, type CGoogleMapChartProps, CGraphCharts, CGraphKpiCards, CGraphReport, type CGraphReportProps, CHeatmapChart, type CHeatmapChartProps, CLayoutManagement, type CLayoutManagementProps, CLayoutManager, type CLayoutManagerProps, CLineChart, type CLineChartProps, CMessageBox, type CMessageBoxProps, type CMessageBoxType, COrbCanvas, type COrbCanvasProps, CPageLayout, type CPageLayoutProps, CPageTransition, type CPageTransitionProps, CPieChart, type CPieChartProps, CPivotTable, type CPivotTableProps, CSmartFilter, type CSmartFilterProps, CSmartTable, CStandardPage, type CStandardPageProps, CTable, CTableBody, type CTableBodyProps, CTableCell, type CTableCellProps, CTableContainer, type CTableContainerProps, CTableHead, type CTableHeadProps, type CTableProps, type CTableQuickCreateConfig, type CTableQuickDeleteConfig, type CTableQuickEditConfig, CTableRow, type CTableRowProps, CVariantManagement, type CVariantManagementProps, CVariantManager, CVoiceWaveOverlay, type CVoiceWaveOverlayProps, CWaterfallChart, type CWaterfallChartProps, ChatMessage, CodeBlock, type CodeBlockProps, CopilotChat, type CopilotChatProps, type CustomizeAgentSavePayload, type CustomizeAgentSettings, type CustomizeAgentTemplateOption, type DateOperator, type DetailInfoAiConfig, type DetailInfoField, type DetailInfoSearchHit, type DetailInfoSearchMode, type DetailInfoSection, type DetailInfoTab, type DetailInfoTableConfig, type FilterField, type FilterOperator, type FilterType, type FilterValue, GlobalMessage, type GoogleMapEmbedOptions, type GraphBarDatum, type GraphComboDatum, type GraphFishboneBranch, type GraphHeatmapDatum, type GraphLineDatum, type GraphMapLocation, type GraphPieDatum, type GraphReportConfig, type GraphReportFieldMapping, type GraphReportInteractionState, type GraphReportKpis, type GraphReportModel, type GraphRow, type GraphTableColumn, type GraphWaterfallDatum, type IVariantService, type LayoutMetadata, MarkdownRenderer, type MarkdownRendererProps, MathBlock, type MathBlockProps, MermaidBlock, type MermaidBlockProps, type MessageContent, type MessageEvent, type MessageOptions, NavigationIsland, type NavigationIslandProps, type NumberOperator, ORBCAFE_I18N_MESSAGES, type OrbcafeI18nContextValue, OrbcafeI18nProvider, type OrbcafeI18nProviderProps, type OrbcafeLocale, type OrbcafeLocaleMessages, type OrbcafeMessageKey, type OrbcafeMessageParams, PAGE_TRANSITION_PRESETS, type PageTransitionVariant, type ParsedMarkdownTable, type PivotAggregation, type PivotFieldDefinition, type PivotFieldType, type PivotFilterSelections, type PivotLayoutConfig, type PivotTableModel, type PivotTablePreset, type PivotValueFieldConfig, type PivotValueFieldState, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, StdChat, type StdChatProps, type TableAlign, TableBlock, type TableBlockProps, type TextOperator, ThinkBlock, type ThinkBlockProps, TreeMenu, type TreeMenuItem, type UseAmapEmbedUrlOptions, type UseDetailInfoOptions, type UseDetailInfoResult, type UseGoogleMapEmbedUrlOptions, type UseGraphChartDataOptions, type UseGraphChartDataResult, type UseGraphInteractionResult, type UseGraphReportOptions, type UseGraphReportResult, type UseNavigationIslandOptions, type UseNavigationIslandResult, type UsePageLayoutOptions, type UsePivotTableOptions, type UsePivotTableResult, type UseStandardReportOptions, type UseVoiceInputOptions, type UseVoiceInputResult, type VariantMetadata, type VoiceNavigatorContextValue, VoiceNavigatorProvider, type VoiceNavigatorProviderProps, VoiceWaveOverlay, type VoiceWaveOverlayProps, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, message, messageManager, parseMarkdownTable, renderMarkdown, resolveVariantFilters, resolveVariantLayout, useAINav, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, usePivotTable, useStandardReport, useVoiceInput, useVoiceNavigator };
|
|
1818
|
+
export { type AINavContextValue, AgentPanel, type AgentPanelProps, type AgentPanelStatus, type AgentUICardAction, type AgentUICardHookEvent, type AgentUICardHooks, type AgentUICardType, type AmapEmbedOptions, Button, type ButtonProps, CAINavProvider, type CAINavProviderProps, CAmapChart, type CAmapChartProps, CAppHeader, type CAppHeaderProps, type CAppHeaderUser, type CAppHeaderUserMenuItem, CAppPageLayout, type CAppPageLayoutProps, CBarChart, type CBarChartProps, CChartCard, type CChartCardProps, CComboChart, type CComboChartProps, CCustomizeAgent, type CCustomizeAgentProps, CDetailInfoPage, type CDetailInfoPageProps, CDetailSearchAiBar, type CDetailSearchAiBarProps, CDetailSectionCard, type CDetailSectionCardProps, CFishboneChart, type CFishboneChartProps, CGoogleMapChart, type CGoogleMapChartProps, CGraphCharts, CGraphKpiCards, CGraphReport, type CGraphReportProps, CHeatmapChart, type CHeatmapChartProps, CLayoutManagement, type CLayoutManagementProps, CLayoutManager, type CLayoutManagerProps, CLineChart, type CLineChartProps, CMessageBox, type CMessageBoxProps, type CMessageBoxType, COrbCanvas, type COrbCanvasProps, CPageLayout, type CPageLayoutProps, CPageTransition, type CPageTransitionProps, CPieChart, type CPieChartProps, CPivotTable, type CPivotTableProps, CSmartFilter, type CSmartFilterProps, CSmartTable, CStandardPage, type CStandardPageProps, CTable, CTableBody, type CTableBodyProps, CTableCell, type CTableCellProps, CTableContainer, type CTableContainerProps, CTableHead, type CTableHeadProps, type CTableProps, type CTableQuickCreateConfig, type CTableQuickDeleteConfig, type CTableQuickEditConfig, CTableRow, type CTableRowProps, CVariantManagement, type CVariantManagementProps, CVariantManager, CVoiceWaveOverlay, type CVoiceWaveOverlayProps, CWaterfallChart, type CWaterfallChartProps, ChatMessage, CodeBlock, type CodeBlockProps, CopilotChat, type CopilotChatProps, type CustomizeAgentSavePayload, type CustomizeAgentSettings, type CustomizeAgentTemplateOption, type DateOperator, type DetailInfoAiConfig, type DetailInfoField, type DetailInfoSearchHit, type DetailInfoSearchMode, type DetailInfoSection, type DetailInfoTab, type DetailInfoTableConfig, type FilterField, type FilterOperator, type FilterType, type FilterValue, GlobalMessage, type GoogleMapEmbedOptions, type GraphBarDatum, type GraphComboDatum, type GraphFishboneBranch, type GraphHeatmapDatum, type GraphLineDatum, type GraphMapLocation, type GraphPieDatum, type GraphReportConfig, type GraphReportFieldMapping, type GraphReportInteractionState, type GraphReportKpis, type GraphReportModel, type GraphRow, type GraphTableColumn, type GraphWaterfallDatum, type IVariantService, type LayoutMetadata, MarkdownRenderer, type MarkdownRendererProps, MathBlock, type MathBlockProps, MermaidBlock, type MermaidBlockProps, type MessageContent, type MessageEvent, type MessageOptions, NavigationIsland, type NavigationIslandProps, type NumberOperator, ORBCAFE_I18N_MESSAGES, type OrbcafeI18nContextValue, OrbcafeI18nProvider, type OrbcafeI18nProviderProps, type OrbcafeLocale, type OrbcafeLocaleMessages, type OrbcafeMessageKey, type OrbcafeMessageParams, PAGE_TRANSITION_PRESETS, type PageTransitionVariant, type ParsedMarkdownTable, type PivotAggregation, type PivotChartConfig, PivotChartPanel, type PivotChartType, type PivotFieldDefinition, type PivotFieldType, type PivotFilterSelections, type PivotLayoutConfig, type PivotTableModel, type PivotTablePreset, type PivotValueFieldConfig, type PivotValueFieldState, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, StdChat, type StdChatProps, type TableAlign, TableBlock, type TableBlockProps, type TextOperator, ThinkBlock, type ThinkBlockProps, TreeMenu, type TreeMenuItem, type UseAmapEmbedUrlOptions, type UseDetailInfoOptions, type UseDetailInfoResult, type UseGoogleMapEmbedUrlOptions, type UseGraphChartDataOptions, type UseGraphChartDataResult, type UseGraphInteractionResult, type UseGraphReportOptions, type UseGraphReportResult, type UseNavigationIslandOptions, type UseNavigationIslandResult, type UsePageLayoutOptions, type UsePivotTableOptions, type UsePivotTableResult, type UseStandardReportOptions, type UseVoiceInputOptions, type UseVoiceInputResult, type VariantMetadata, type VoiceNavigatorContextValue, VoiceNavigatorProvider, type VoiceNavigatorProviderProps, VoiceWaveOverlay, type VoiceWaveOverlayProps, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, message, messageManager, parseMarkdownTable, renderMarkdown, resolveVariantFilters, resolveVariantLayout, useAINav, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, usePivotTable, useStandardReport, useVoiceInput, useVoiceNavigator };
|