orbcafe-ui 1.1.4 → 1.1.6

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 CHANGED
@@ -1173,6 +1173,7 @@ declare const en: {
1173
1173
  readonly 'pivot.resultLabel': "Result";
1174
1174
  readonly 'pivot.valueLabel': "Value";
1175
1175
  readonly 'pivot.table.dimensions': "Dimensions";
1176
+ readonly 'pivot.config.title': "Configuration";
1176
1177
  readonly 'pivot.fieldList': "Field List";
1177
1178
  readonly 'pivot.availableDimensions': "Available dimensions";
1178
1179
  readonly 'pivot.allFieldsInUse': "All fields are in use.";
@@ -1206,6 +1207,25 @@ declare const en: {
1206
1207
  readonly 'pivot.preset.saveDialogTitle': "Save current preset";
1207
1208
  readonly 'pivot.preset.nameLabel': "Preset name";
1208
1209
  readonly 'pivot.preset.defaultName': "Preset {index}";
1210
+ readonly 'pivot.table.sectionTitle': "Pivot Result";
1211
+ readonly 'pivot.table.collapse.ariaExpand': "Expand pivot result";
1212
+ readonly 'pivot.table.collapse.ariaCollapse': "Collapse pivot result";
1213
+ readonly 'pivot.chart.title': "Pivot Chart";
1214
+ readonly 'pivot.chart.subtitle': "Map one dimension and up to two measures into a compact chart.";
1215
+ readonly 'pivot.chart.subtitleReady': "{dimension} by {measure}";
1216
+ readonly 'pivot.chart.emptyNoDimension': "Add at least one row or column field to render the chart.";
1217
+ readonly 'pivot.chart.emptyNoValue': "Add at least one value field to render the chart.";
1218
+ readonly 'pivot.chart.emptyNoData': "No data available for the current chart selection.";
1219
+ readonly 'pivot.chart.dimension': "Dimension";
1220
+ readonly 'pivot.chart.primaryMeasure': "Measure";
1221
+ readonly 'pivot.chart.secondaryMeasure': "Compare measure";
1222
+ readonly 'pivot.chart.chartType': "Chart type";
1223
+ readonly 'pivot.chart.style.barVertical': "Vertical bars";
1224
+ readonly 'pivot.chart.style.barHorizontal': "Horizontal bars";
1225
+ readonly 'pivot.chart.style.line': "Line";
1226
+ readonly 'pivot.chart.style.scatter': "Scatter";
1227
+ readonly 'pivot.chart.collapse.ariaExpand': "Expand chart area";
1228
+ readonly 'pivot.chart.collapse.ariaCollapse': "Collapse chart area";
1209
1229
  readonly 'smartFilter.adaptFilters': "Adapt Filters";
1210
1230
  readonly 'smartFilter.addFilters': "Add Filters";
1211
1231
  readonly 'smartFilter.go': "Go";
@@ -1386,6 +1406,7 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
1386
1406
  };
1387
1407
 
1388
1408
  type PivotAggregation = 'sum' | 'count' | 'avg' | 'min' | 'max';
1409
+ type PivotChartType = 'bar-vertical' | 'bar-horizontal' | 'line' | 'scatter';
1389
1410
  type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
1390
1411
  interface PivotFieldDefinition {
1391
1412
  id: string;
@@ -1410,12 +1431,19 @@ interface PivotLayoutConfig {
1410
1431
  values?: PivotValueFieldConfig[];
1411
1432
  }
1412
1433
  type PivotFilterSelections = Record<string, string[]>;
1434
+ interface PivotChartConfig {
1435
+ dimensionFieldId?: string;
1436
+ primaryValueFieldId?: string;
1437
+ secondaryValueFieldId?: string;
1438
+ chartType?: PivotChartType;
1439
+ }
1413
1440
  interface PivotTablePreset {
1414
1441
  id: string;
1415
1442
  name: string;
1416
1443
  layout: PivotLayoutConfig;
1417
1444
  filterSelections?: PivotFilterSelections;
1418
1445
  showGrandTotal?: boolean;
1446
+ chart?: PivotChartConfig;
1419
1447
  }
1420
1448
  interface PivotTableModel {
1421
1449
  rowFields: string[];
@@ -1432,14 +1460,29 @@ interface PivotTableModel {
1432
1460
  setShowGrandTotal: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1433
1461
  isConfiguratorCollapsed: boolean;
1434
1462
  setIsConfiguratorCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1463
+ chartDimensionFieldId: string;
1464
+ setChartDimensionFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
1465
+ chartPrimaryValueFieldId: string;
1466
+ setChartPrimaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
1467
+ chartSecondaryValueFieldId: string;
1468
+ setChartSecondaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
1469
+ chartType: PivotChartType;
1470
+ setChartType: React__default.Dispatch<React__default.SetStateAction<PivotChartType>>;
1471
+ isChartCollapsed: boolean;
1472
+ setIsChartCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1473
+ isTableCollapsed: boolean;
1474
+ setIsTableCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1435
1475
  }
1436
1476
  interface CPivotTableProps {
1437
1477
  title?: string;
1438
1478
  rows: Record<string, unknown>[];
1439
1479
  fields: PivotFieldDefinition[];
1440
1480
  initialLayout?: PivotLayoutConfig;
1481
+ initialChart?: PivotChartConfig;
1441
1482
  emptyText?: string;
1442
1483
  maxPreviewHeight?: number | string;
1484
+ initialChartCollapsed?: boolean;
1485
+ initialTableCollapsed?: boolean;
1443
1486
  model?: PivotTableModel;
1444
1487
  enablePresetManagement?: boolean;
1445
1488
  presets?: PivotTablePreset[];
@@ -1457,6 +1500,14 @@ interface UsePivotTableOptions {
1457
1500
  initialFilterSelections?: PivotFilterSelections;
1458
1501
  initialShowGrandTotal?: boolean;
1459
1502
  initialConfiguratorCollapsed?: boolean;
1503
+ initialChart?: {
1504
+ dimensionFieldId?: string;
1505
+ primaryValueFieldId?: string;
1506
+ secondaryValueFieldId?: string;
1507
+ chartType?: PivotChartType;
1508
+ };
1509
+ initialChartCollapsed?: boolean;
1510
+ initialTableCollapsed?: boolean;
1460
1511
  }
1461
1512
  interface UsePivotTableActions {
1462
1513
  setRows: (rows: string[]) => void;
@@ -1471,12 +1522,44 @@ interface UsePivotTableActions {
1471
1522
  resetFilterSelections: () => void;
1472
1523
  toggleGrandTotal: () => void;
1473
1524
  toggleConfigurator: () => void;
1525
+ setChartDimension: (fieldId: string) => void;
1526
+ setChartPrimaryValue: (fieldId: string) => void;
1527
+ setChartSecondaryValue: (fieldId: string) => void;
1528
+ setChartType: (chartType: PivotChartType) => void;
1529
+ toggleChart: () => void;
1530
+ toggleTable: () => void;
1474
1531
  }
1475
1532
  interface UsePivotTableResult {
1476
1533
  model: PivotTableModel;
1477
1534
  actions: UsePivotTableActions;
1478
1535
  }
1479
- declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
1536
+ declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, initialChart, initialChartCollapsed, initialTableCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
1537
+
1538
+ interface ValueZoneItem {
1539
+ tokenId: string;
1540
+ fieldId: string;
1541
+ aggregation: PivotAggregation;
1542
+ }
1543
+
1544
+ interface PivotChartPanelProps {
1545
+ rows: Record<string, unknown>[];
1546
+ fieldMap: Map<string, PivotFieldDefinition>;
1547
+ rowFields: string[];
1548
+ columnFields: string[];
1549
+ valueFields: ValueZoneItem[];
1550
+ chartDimensionFieldId: string;
1551
+ chartPrimaryValueFieldId: string;
1552
+ chartSecondaryValueFieldId: string;
1553
+ chartType: PivotChartType;
1554
+ isCollapsed: boolean;
1555
+ onChartDimensionFieldIdChange: (fieldId: string) => void;
1556
+ onChartPrimaryValueFieldIdChange: (fieldId: string) => void;
1557
+ onChartSecondaryValueFieldIdChange: (fieldId: string) => void;
1558
+ onChartTypeChange: (chartType: PivotChartType) => void;
1559
+ onToggleCollapse: () => void;
1560
+ getAggregationLabel: (aggregation: ValueZoneItem['aggregation']) => string;
1561
+ }
1562
+ declare const PivotChartPanel: React__default.FC<PivotChartPanelProps>;
1480
1563
 
1481
1564
  interface UseVoiceInputOptions {
1482
1565
  onTextUpdate?: (text: string) => void;
@@ -1733,4 +1816,4 @@ declare const PAGE_TRANSITION_PRESETS: {
1733
1816
  };
1734
1817
  };
1735
1818
 
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 };
1819
+ 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
@@ -1173,6 +1173,7 @@ declare const en: {
1173
1173
  readonly 'pivot.resultLabel': "Result";
1174
1174
  readonly 'pivot.valueLabel': "Value";
1175
1175
  readonly 'pivot.table.dimensions': "Dimensions";
1176
+ readonly 'pivot.config.title': "Configuration";
1176
1177
  readonly 'pivot.fieldList': "Field List";
1177
1178
  readonly 'pivot.availableDimensions': "Available dimensions";
1178
1179
  readonly 'pivot.allFieldsInUse': "All fields are in use.";
@@ -1206,6 +1207,25 @@ declare const en: {
1206
1207
  readonly 'pivot.preset.saveDialogTitle': "Save current preset";
1207
1208
  readonly 'pivot.preset.nameLabel': "Preset name";
1208
1209
  readonly 'pivot.preset.defaultName': "Preset {index}";
1210
+ readonly 'pivot.table.sectionTitle': "Pivot Result";
1211
+ readonly 'pivot.table.collapse.ariaExpand': "Expand pivot result";
1212
+ readonly 'pivot.table.collapse.ariaCollapse': "Collapse pivot result";
1213
+ readonly 'pivot.chart.title': "Pivot Chart";
1214
+ readonly 'pivot.chart.subtitle': "Map one dimension and up to two measures into a compact chart.";
1215
+ readonly 'pivot.chart.subtitleReady': "{dimension} by {measure}";
1216
+ readonly 'pivot.chart.emptyNoDimension': "Add at least one row or column field to render the chart.";
1217
+ readonly 'pivot.chart.emptyNoValue': "Add at least one value field to render the chart.";
1218
+ readonly 'pivot.chart.emptyNoData': "No data available for the current chart selection.";
1219
+ readonly 'pivot.chart.dimension': "Dimension";
1220
+ readonly 'pivot.chart.primaryMeasure': "Measure";
1221
+ readonly 'pivot.chart.secondaryMeasure': "Compare measure";
1222
+ readonly 'pivot.chart.chartType': "Chart type";
1223
+ readonly 'pivot.chart.style.barVertical': "Vertical bars";
1224
+ readonly 'pivot.chart.style.barHorizontal': "Horizontal bars";
1225
+ readonly 'pivot.chart.style.line': "Line";
1226
+ readonly 'pivot.chart.style.scatter': "Scatter";
1227
+ readonly 'pivot.chart.collapse.ariaExpand': "Expand chart area";
1228
+ readonly 'pivot.chart.collapse.ariaCollapse': "Collapse chart area";
1209
1229
  readonly 'smartFilter.adaptFilters': "Adapt Filters";
1210
1230
  readonly 'smartFilter.addFilters': "Add Filters";
1211
1231
  readonly 'smartFilter.go': "Go";
@@ -1386,6 +1406,7 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
1386
1406
  };
1387
1407
 
1388
1408
  type PivotAggregation = 'sum' | 'count' | 'avg' | 'min' | 'max';
1409
+ type PivotChartType = 'bar-vertical' | 'bar-horizontal' | 'line' | 'scatter';
1389
1410
  type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
1390
1411
  interface PivotFieldDefinition {
1391
1412
  id: string;
@@ -1410,12 +1431,19 @@ interface PivotLayoutConfig {
1410
1431
  values?: PivotValueFieldConfig[];
1411
1432
  }
1412
1433
  type PivotFilterSelections = Record<string, string[]>;
1434
+ interface PivotChartConfig {
1435
+ dimensionFieldId?: string;
1436
+ primaryValueFieldId?: string;
1437
+ secondaryValueFieldId?: string;
1438
+ chartType?: PivotChartType;
1439
+ }
1413
1440
  interface PivotTablePreset {
1414
1441
  id: string;
1415
1442
  name: string;
1416
1443
  layout: PivotLayoutConfig;
1417
1444
  filterSelections?: PivotFilterSelections;
1418
1445
  showGrandTotal?: boolean;
1446
+ chart?: PivotChartConfig;
1419
1447
  }
1420
1448
  interface PivotTableModel {
1421
1449
  rowFields: string[];
@@ -1432,14 +1460,29 @@ interface PivotTableModel {
1432
1460
  setShowGrandTotal: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1433
1461
  isConfiguratorCollapsed: boolean;
1434
1462
  setIsConfiguratorCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1463
+ chartDimensionFieldId: string;
1464
+ setChartDimensionFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
1465
+ chartPrimaryValueFieldId: string;
1466
+ setChartPrimaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
1467
+ chartSecondaryValueFieldId: string;
1468
+ setChartSecondaryValueFieldId: React__default.Dispatch<React__default.SetStateAction<string>>;
1469
+ chartType: PivotChartType;
1470
+ setChartType: React__default.Dispatch<React__default.SetStateAction<PivotChartType>>;
1471
+ isChartCollapsed: boolean;
1472
+ setIsChartCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1473
+ isTableCollapsed: boolean;
1474
+ setIsTableCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
1435
1475
  }
1436
1476
  interface CPivotTableProps {
1437
1477
  title?: string;
1438
1478
  rows: Record<string, unknown>[];
1439
1479
  fields: PivotFieldDefinition[];
1440
1480
  initialLayout?: PivotLayoutConfig;
1481
+ initialChart?: PivotChartConfig;
1441
1482
  emptyText?: string;
1442
1483
  maxPreviewHeight?: number | string;
1484
+ initialChartCollapsed?: boolean;
1485
+ initialTableCollapsed?: boolean;
1443
1486
  model?: PivotTableModel;
1444
1487
  enablePresetManagement?: boolean;
1445
1488
  presets?: PivotTablePreset[];
@@ -1457,6 +1500,14 @@ interface UsePivotTableOptions {
1457
1500
  initialFilterSelections?: PivotFilterSelections;
1458
1501
  initialShowGrandTotal?: boolean;
1459
1502
  initialConfiguratorCollapsed?: boolean;
1503
+ initialChart?: {
1504
+ dimensionFieldId?: string;
1505
+ primaryValueFieldId?: string;
1506
+ secondaryValueFieldId?: string;
1507
+ chartType?: PivotChartType;
1508
+ };
1509
+ initialChartCollapsed?: boolean;
1510
+ initialTableCollapsed?: boolean;
1460
1511
  }
1461
1512
  interface UsePivotTableActions {
1462
1513
  setRows: (rows: string[]) => void;
@@ -1471,12 +1522,44 @@ interface UsePivotTableActions {
1471
1522
  resetFilterSelections: () => void;
1472
1523
  toggleGrandTotal: () => void;
1473
1524
  toggleConfigurator: () => void;
1525
+ setChartDimension: (fieldId: string) => void;
1526
+ setChartPrimaryValue: (fieldId: string) => void;
1527
+ setChartSecondaryValue: (fieldId: string) => void;
1528
+ setChartType: (chartType: PivotChartType) => void;
1529
+ toggleChart: () => void;
1530
+ toggleTable: () => void;
1474
1531
  }
1475
1532
  interface UsePivotTableResult {
1476
1533
  model: PivotTableModel;
1477
1534
  actions: UsePivotTableActions;
1478
1535
  }
1479
- declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
1536
+ declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, initialChart, initialChartCollapsed, initialTableCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
1537
+
1538
+ interface ValueZoneItem {
1539
+ tokenId: string;
1540
+ fieldId: string;
1541
+ aggregation: PivotAggregation;
1542
+ }
1543
+
1544
+ interface PivotChartPanelProps {
1545
+ rows: Record<string, unknown>[];
1546
+ fieldMap: Map<string, PivotFieldDefinition>;
1547
+ rowFields: string[];
1548
+ columnFields: string[];
1549
+ valueFields: ValueZoneItem[];
1550
+ chartDimensionFieldId: string;
1551
+ chartPrimaryValueFieldId: string;
1552
+ chartSecondaryValueFieldId: string;
1553
+ chartType: PivotChartType;
1554
+ isCollapsed: boolean;
1555
+ onChartDimensionFieldIdChange: (fieldId: string) => void;
1556
+ onChartPrimaryValueFieldIdChange: (fieldId: string) => void;
1557
+ onChartSecondaryValueFieldIdChange: (fieldId: string) => void;
1558
+ onChartTypeChange: (chartType: PivotChartType) => void;
1559
+ onToggleCollapse: () => void;
1560
+ getAggregationLabel: (aggregation: ValueZoneItem['aggregation']) => string;
1561
+ }
1562
+ declare const PivotChartPanel: React__default.FC<PivotChartPanelProps>;
1480
1563
 
1481
1564
  interface UseVoiceInputOptions {
1482
1565
  onTextUpdate?: (text: string) => void;
@@ -1733,4 +1816,4 @@ declare const PAGE_TRANSITION_PRESETS: {
1733
1816
  };
1734
1817
  };
1735
1818
 
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 };
1819
+ 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 };