orbcafe-ui 1.0.9 → 1.1.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/dist/index.d.mts +203 -9
- package/dist/index.d.ts +203 -9
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -88,6 +88,39 @@ interface UseNavigationIslandResult {
|
|
|
88
88
|
*/
|
|
89
89
|
declare const useNavigationIsland: (options?: UseNavigationIslandOptions) => UseNavigationIslandResult;
|
|
90
90
|
|
|
91
|
+
type CMessageBoxType = 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
92
|
+
type MessageContent = string | ReactNode;
|
|
93
|
+
interface MessageOptions {
|
|
94
|
+
title?: string;
|
|
95
|
+
onClose?: () => void;
|
|
96
|
+
onConfirm?: () => void;
|
|
97
|
+
confirmText?: string;
|
|
98
|
+
cancelText?: string;
|
|
99
|
+
showCancel?: boolean;
|
|
100
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
101
|
+
}
|
|
102
|
+
interface MessageEvent {
|
|
103
|
+
type: CMessageBoxType;
|
|
104
|
+
content: MessageContent;
|
|
105
|
+
options?: MessageOptions;
|
|
106
|
+
}
|
|
107
|
+
declare class MessageManager {
|
|
108
|
+
private listener;
|
|
109
|
+
register(listener: (event: MessageEvent | null) => void): void;
|
|
110
|
+
unregister(): void;
|
|
111
|
+
show(type: CMessageBoxType, content: MessageContent, options?: MessageOptions): void;
|
|
112
|
+
hide(): void;
|
|
113
|
+
}
|
|
114
|
+
declare const messageManager: MessageManager;
|
|
115
|
+
declare const message: {
|
|
116
|
+
success: (content: MessageContent, options?: MessageOptions) => void;
|
|
117
|
+
error: (content: MessageContent, options?: MessageOptions) => void;
|
|
118
|
+
warning: (content: MessageContent, options?: MessageOptions) => void;
|
|
119
|
+
info: (content: MessageContent, options?: MessageOptions) => void;
|
|
120
|
+
show: (type: CMessageBoxType, content: MessageContent, options?: MessageOptions) => void;
|
|
121
|
+
hide: () => void;
|
|
122
|
+
};
|
|
123
|
+
|
|
91
124
|
/**
|
|
92
125
|
* @file 10_Frontend/components/sap/ui/Common/Molecules/CMessageBox.tsx
|
|
93
126
|
*
|
|
@@ -120,7 +153,6 @@ declare const useNavigationIsland: (options?: UseNavigationIslandOptions) => Use
|
|
|
120
153
|
* --------------------------
|
|
121
154
|
*/
|
|
122
155
|
|
|
123
|
-
type CMessageBoxType = 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
124
156
|
interface CMessageBoxProps {
|
|
125
157
|
open: boolean;
|
|
126
158
|
title?: string;
|
|
@@ -134,6 +166,7 @@ interface CMessageBoxProps {
|
|
|
134
166
|
type?: CMessageBoxType;
|
|
135
167
|
}
|
|
136
168
|
declare const CMessageBox: React__default.FC<CMessageBoxProps>;
|
|
169
|
+
declare const GlobalMessage: React__default.FC;
|
|
137
170
|
|
|
138
171
|
interface CustomizeAgentSettings {
|
|
139
172
|
baseUrl: string;
|
|
@@ -311,7 +344,7 @@ interface CTableQuickDeleteConfig {
|
|
|
311
344
|
onConfirm?: (rows: Record<string, any>[]) => void | Promise<void>;
|
|
312
345
|
}
|
|
313
346
|
interface CTableProps {
|
|
314
|
-
appId
|
|
347
|
+
appId: string;
|
|
315
348
|
title?: string;
|
|
316
349
|
showToolbar?: boolean;
|
|
317
350
|
columns: any[];
|
|
@@ -344,6 +377,7 @@ interface CTableProps {
|
|
|
344
377
|
quickCreate?: CTableQuickCreateConfig;
|
|
345
378
|
quickEdit?: CTableQuickEditConfig;
|
|
346
379
|
quickDelete?: CTableQuickDeleteConfig;
|
|
380
|
+
serviceUrl?: string;
|
|
347
381
|
}
|
|
348
382
|
interface CTableHeadProps {
|
|
349
383
|
columns: any[];
|
|
@@ -418,6 +452,7 @@ interface VariantMetadata {
|
|
|
418
452
|
createdAt?: string;
|
|
419
453
|
filters?: any;
|
|
420
454
|
layout?: any;
|
|
455
|
+
layoutId?: string;
|
|
421
456
|
layoutRefs?: any[];
|
|
422
457
|
scope?: string;
|
|
423
458
|
appId?: string;
|
|
@@ -449,10 +484,10 @@ declare const CVariantManagement: ({ variants, currentVariantId, onLoad, onSave,
|
|
|
449
484
|
*/
|
|
450
485
|
|
|
451
486
|
interface IVariantService {
|
|
452
|
-
getVariants: (appId: string) => Promise<VariantMetadata[]>;
|
|
453
|
-
saveVariant: (variant: VariantMetadata, appId: string) => Promise<void>;
|
|
487
|
+
getVariants: (appId: string, tableKey?: string) => Promise<VariantMetadata[]>;
|
|
488
|
+
saveVariant: (variant: VariantMetadata, appId: string, tableKey?: string) => Promise<void>;
|
|
454
489
|
deleteVariant: (id: string) => Promise<void>;
|
|
455
|
-
setDefaultVariant: (id: string, appId: string) => Promise<void>;
|
|
490
|
+
setDefaultVariant: (id: string, appId: string, tableKey?: string) => Promise<void>;
|
|
456
491
|
}
|
|
457
492
|
interface CVariantManagerProps {
|
|
458
493
|
appId: string;
|
|
@@ -508,7 +543,7 @@ interface CSmartFilterProps {
|
|
|
508
543
|
onVariantSetDefault?: (id: string) => void;
|
|
509
544
|
onSearch?: () => void;
|
|
510
545
|
loading?: boolean;
|
|
511
|
-
appId
|
|
546
|
+
appId: string;
|
|
512
547
|
tableKey?: string;
|
|
513
548
|
currentLayout?: any;
|
|
514
549
|
currentLayoutId?: string;
|
|
@@ -517,15 +552,22 @@ interface CSmartFilterProps {
|
|
|
517
552
|
layoutId: string | null;
|
|
518
553
|
}>;
|
|
519
554
|
variantService?: IVariantService;
|
|
555
|
+
serviceUrl?: string;
|
|
520
556
|
}
|
|
521
557
|
/**
|
|
522
558
|
* CSmartFilter Component
|
|
523
559
|
*
|
|
524
560
|
* Renders a filter bar with "Go" button, variant management, and "Adapt Filters" capability.
|
|
525
561
|
*/
|
|
526
|
-
declare const CSmartFilter: ({ fields, filters, onFilterChange, variants, currentVariantId, onVariantLoad, onVariantSave, onVariantDelete, onVariantSetDefault, onSearch, loading, appId, tableKey, currentLayout, currentLayoutId, layoutRefs, variantService }: CSmartFilterProps) => react_jsx_runtime.JSX.Element;
|
|
562
|
+
declare const CSmartFilter: ({ fields, filters, onFilterChange, variants, currentVariantId, onVariantLoad, onVariantSave, onVariantDelete, onVariantSetDefault, onSearch, loading, appId, tableKey, currentLayout, currentLayoutId, layoutRefs, variantService, serviceUrl }: CSmartFilterProps) => react_jsx_runtime.JSX.Element;
|
|
527
563
|
|
|
528
564
|
interface CStandardPageProps {
|
|
565
|
+
/**
|
|
566
|
+
* Unique Identifier for the Page/Report.
|
|
567
|
+
* Used as the `appId` for Variant and Layout persistence.
|
|
568
|
+
* MUST be unique across the system to avoid configuration conflicts.
|
|
569
|
+
*/
|
|
570
|
+
id: string;
|
|
529
571
|
/** Page Title */
|
|
530
572
|
title: string;
|
|
531
573
|
/** Whether to hide the top breadcrumb/title header */
|
|
@@ -541,8 +583,16 @@ interface CStandardPageProps {
|
|
|
541
583
|
* Default: 1 (8px) - Much tighter than default CTable behavior
|
|
542
584
|
*/
|
|
543
585
|
spacing?: number;
|
|
586
|
+
/**
|
|
587
|
+
* Mode of operation:
|
|
588
|
+
* - 'separated': SmartFilter and CTable are rendered separately (default).
|
|
589
|
+
* Layout variants are applied via prop updates from parent.
|
|
590
|
+
* - 'integrated': SmartFilter is passed into CTable as filterConfig.
|
|
591
|
+
* CTable manages the connection between Filter and Table internally.
|
|
592
|
+
*/
|
|
593
|
+
mode?: 'separated' | 'integrated';
|
|
544
594
|
}
|
|
545
|
-
declare const CStandardPage: ({ title, hideHeader, filterConfig, tableProps, children, spacing }: CStandardPageProps) => react_jsx_runtime.JSX.Element;
|
|
595
|
+
declare const CStandardPage: ({ id, title, hideHeader, filterConfig, tableProps, children, spacing, mode }: CStandardPageProps) => react_jsx_runtime.JSX.Element;
|
|
546
596
|
|
|
547
597
|
/**
|
|
548
598
|
* @file 10_Frontend/components/sap/ui/Common/Structures/CTable.tsx
|
|
@@ -731,6 +781,34 @@ declare const useStandardReport: ({ metadata, fetchData, initialRowsPerPage, row
|
|
|
731
781
|
refresh: () => void;
|
|
732
782
|
};
|
|
733
783
|
|
|
784
|
+
/**
|
|
785
|
+
* @file 10_Frontend/components/sap/ui/Common/PageComponents/Utils/variantUtils.ts
|
|
786
|
+
* @summary Utility functions for handling Variant schemas and migrations.
|
|
787
|
+
* @author ORBAICODER
|
|
788
|
+
* @date 2026-02-27
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Resolves the filter configuration for a specific table/scope from a variant.
|
|
793
|
+
* Handles both legacy (direct object) and new (scoped array) schemas.
|
|
794
|
+
*
|
|
795
|
+
* @param variant The variant metadata object
|
|
796
|
+
* @param tableKey The key/scope of the table to find filters for
|
|
797
|
+
* @returns The filter configuration object or null if not found
|
|
798
|
+
*/
|
|
799
|
+
declare const resolveVariantFilters: (variant: VariantMetadata | null | undefined, tableKey: string) => any;
|
|
800
|
+
/**
|
|
801
|
+
* Resolves the layout configuration or ID for a specific table from a variant.
|
|
802
|
+
*
|
|
803
|
+
* @param variant The variant metadata object
|
|
804
|
+
* @param tableKey The key of the table
|
|
805
|
+
* @returns Object containing { layout: any, layoutId: string | null }
|
|
806
|
+
*/
|
|
807
|
+
declare const resolveVariantLayout: (variant: VariantMetadata | null | undefined, tableKey: string) => {
|
|
808
|
+
layout: any;
|
|
809
|
+
layoutId: string | null;
|
|
810
|
+
};
|
|
811
|
+
|
|
734
812
|
interface CGraphReportProps {
|
|
735
813
|
open: boolean;
|
|
736
814
|
onClose: () => void;
|
|
@@ -1082,6 +1160,42 @@ declare const en: {
|
|
|
1082
1160
|
readonly 'table.group.expandAll': "Expand All Groups";
|
|
1083
1161
|
readonly 'table.group.collapseAll': "Collapse All Groups";
|
|
1084
1162
|
readonly 'table.mobile.notImplemented': "Mobile View Not Implemented";
|
|
1163
|
+
readonly 'pivot.title.default': "Pivot Table Builder";
|
|
1164
|
+
readonly 'pivot.subtitle.default': "Drag fields to configure the pivot table.";
|
|
1165
|
+
readonly 'pivot.empty': "Drag at least one field into Values to render the pivot result.";
|
|
1166
|
+
readonly 'pivot.records': "Records";
|
|
1167
|
+
readonly 'pivot.afterFilter': "After filter";
|
|
1168
|
+
readonly 'pivot.grandTotal': "Grand Total";
|
|
1169
|
+
readonly 'pivot.resultLabel': "Result";
|
|
1170
|
+
readonly 'pivot.valueLabel': "Value";
|
|
1171
|
+
readonly 'pivot.table.dimensions': "Dimensions";
|
|
1172
|
+
readonly 'pivot.fieldList': "Field List";
|
|
1173
|
+
readonly 'pivot.availableDimensions': "Available dimensions";
|
|
1174
|
+
readonly 'pivot.allFieldsInUse': "All fields are in use.";
|
|
1175
|
+
readonly 'pivot.zone.rows': "Rows";
|
|
1176
|
+
readonly 'pivot.zone.columns': "Columns";
|
|
1177
|
+
readonly 'pivot.zone.filters': "Filters";
|
|
1178
|
+
readonly 'pivot.zone.values': "Values";
|
|
1179
|
+
readonly 'pivot.hint.rows': "Drag fields here to build row hierarchy";
|
|
1180
|
+
readonly 'pivot.hint.columns': "Drag fields here to build column hierarchy";
|
|
1181
|
+
readonly 'pivot.hint.filters': "Drag fields here for report filters";
|
|
1182
|
+
readonly 'pivot.hint.values': "Drag numeric fields here for aggregation";
|
|
1183
|
+
readonly 'pivot.clearArea': "Clear area";
|
|
1184
|
+
readonly 'pivot.filter.na': "N/A";
|
|
1185
|
+
readonly 'pivot.filter.noValues': "No values";
|
|
1186
|
+
readonly 'pivot.filter.noneSelected': "None selected";
|
|
1187
|
+
readonly 'pivot.filter.allValues': "All values";
|
|
1188
|
+
readonly 'pivot.filter.selectedCount': "{selected} / {total} selected";
|
|
1189
|
+
readonly 'pivot.filter.selectAll': "Select All";
|
|
1190
|
+
readonly 'pivot.filter.deselectAll': "Deselect All";
|
|
1191
|
+
readonly 'pivot.filter.noResults': "No results";
|
|
1192
|
+
readonly 'pivot.collapse.ariaExpand': "Expand configuration area";
|
|
1193
|
+
readonly 'pivot.collapse.ariaCollapse': "Collapse configuration area";
|
|
1194
|
+
readonly 'pivot.agg.sum': "Sum";
|
|
1195
|
+
readonly 'pivot.agg.count': "Count";
|
|
1196
|
+
readonly 'pivot.agg.avg': "Average";
|
|
1197
|
+
readonly 'pivot.agg.min': "Min";
|
|
1198
|
+
readonly 'pivot.agg.max': "Max";
|
|
1085
1199
|
readonly 'smartFilter.adaptFilters': "Adapt Filters";
|
|
1086
1200
|
readonly 'smartFilter.addFilters': "Add Filters";
|
|
1087
1201
|
readonly 'smartFilter.go': "Go";
|
|
@@ -1261,6 +1375,86 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
|
|
|
1261
1375
|
navigationMaxHeight: number;
|
|
1262
1376
|
};
|
|
1263
1377
|
|
|
1378
|
+
type PivotAggregation = 'sum' | 'count' | 'avg' | 'min' | 'max';
|
|
1379
|
+
type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
|
|
1380
|
+
interface PivotFieldDefinition {
|
|
1381
|
+
id: string;
|
|
1382
|
+
label: string;
|
|
1383
|
+
type?: PivotFieldType;
|
|
1384
|
+
aggregations?: PivotAggregation[];
|
|
1385
|
+
formatValue?: (value: number) => string;
|
|
1386
|
+
}
|
|
1387
|
+
interface PivotValueFieldConfig {
|
|
1388
|
+
fieldId: string;
|
|
1389
|
+
aggregation?: PivotAggregation;
|
|
1390
|
+
}
|
|
1391
|
+
interface PivotValueFieldState {
|
|
1392
|
+
tokenId: string;
|
|
1393
|
+
fieldId: string;
|
|
1394
|
+
aggregation: PivotAggregation;
|
|
1395
|
+
}
|
|
1396
|
+
interface PivotLayoutConfig {
|
|
1397
|
+
rows?: string[];
|
|
1398
|
+
columns?: string[];
|
|
1399
|
+
filters?: string[];
|
|
1400
|
+
values?: PivotValueFieldConfig[];
|
|
1401
|
+
}
|
|
1402
|
+
type PivotFilterSelections = Record<string, string[]>;
|
|
1403
|
+
interface PivotTableModel {
|
|
1404
|
+
rowFields: string[];
|
|
1405
|
+
setRowFields: React__default.Dispatch<React__default.SetStateAction<string[]>>;
|
|
1406
|
+
columnFields: string[];
|
|
1407
|
+
setColumnFields: React__default.Dispatch<React__default.SetStateAction<string[]>>;
|
|
1408
|
+
filterFields: string[];
|
|
1409
|
+
setFilterFields: React__default.Dispatch<React__default.SetStateAction<string[]>>;
|
|
1410
|
+
valueFields: PivotValueFieldState[];
|
|
1411
|
+
setValueFields: React__default.Dispatch<React__default.SetStateAction<PivotValueFieldState[]>>;
|
|
1412
|
+
filterSelections: PivotFilterSelections;
|
|
1413
|
+
setFilterSelections: React__default.Dispatch<React__default.SetStateAction<PivotFilterSelections>>;
|
|
1414
|
+
showGrandTotal: boolean;
|
|
1415
|
+
setShowGrandTotal: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1416
|
+
isConfiguratorCollapsed: boolean;
|
|
1417
|
+
setIsConfiguratorCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1418
|
+
}
|
|
1419
|
+
interface CPivotTableProps {
|
|
1420
|
+
title?: string;
|
|
1421
|
+
rows: Record<string, unknown>[];
|
|
1422
|
+
fields: PivotFieldDefinition[];
|
|
1423
|
+
initialLayout?: PivotLayoutConfig;
|
|
1424
|
+
emptyText?: string;
|
|
1425
|
+
maxPreviewHeight?: number | string;
|
|
1426
|
+
model?: PivotTableModel;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
declare const CPivotTable: React__default.FC<CPivotTableProps>;
|
|
1430
|
+
|
|
1431
|
+
interface UsePivotTableOptions {
|
|
1432
|
+
fields: PivotFieldDefinition[];
|
|
1433
|
+
initialLayout?: PivotLayoutConfig;
|
|
1434
|
+
initialFilterSelections?: PivotFilterSelections;
|
|
1435
|
+
initialShowGrandTotal?: boolean;
|
|
1436
|
+
initialConfiguratorCollapsed?: boolean;
|
|
1437
|
+
}
|
|
1438
|
+
interface UsePivotTableActions {
|
|
1439
|
+
setRows: (rows: string[]) => void;
|
|
1440
|
+
setColumns: (columns: string[]) => void;
|
|
1441
|
+
setFilters: (filters: string[]) => void;
|
|
1442
|
+
setValues: (values: PivotValueFieldConfig[]) => void;
|
|
1443
|
+
setLayout: (layout: PivotLayoutConfig) => void;
|
|
1444
|
+
clearZone: (zone: 'rows' | 'columns' | 'filters' | 'values') => void;
|
|
1445
|
+
removeFieldFromZone: (zone: 'rows' | 'columns' | 'filters' | 'values', key: string) => void;
|
|
1446
|
+
setAggregationForValue: (tokenId: string, aggregation: PivotAggregation) => void;
|
|
1447
|
+
setFilterSelection: (fieldId: string, values: string[]) => void;
|
|
1448
|
+
resetFilterSelections: () => void;
|
|
1449
|
+
toggleGrandTotal: () => void;
|
|
1450
|
+
toggleConfigurator: () => void;
|
|
1451
|
+
}
|
|
1452
|
+
interface UsePivotTableResult {
|
|
1453
|
+
model: PivotTableModel;
|
|
1454
|
+
actions: UsePivotTableActions;
|
|
1455
|
+
}
|
|
1456
|
+
declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
|
|
1457
|
+
|
|
1264
1458
|
interface MarkdownRendererProps {
|
|
1265
1459
|
markdown?: string;
|
|
1266
1460
|
content?: string;
|
|
@@ -1355,4 +1549,4 @@ declare const PAGE_TRANSITION_PRESETS: {
|
|
|
1355
1549
|
};
|
|
1356
1550
|
};
|
|
1357
1551
|
|
|
1358
|
-
export { type AmapEmbedOptions, Button, type ButtonProps, 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, CPageLayout, type CPageLayoutProps, CPageTransition, type CPageTransitionProps, CPieChart, type CPieChartProps, 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, CWaterfallChart, type CWaterfallChartProps, CodeBlock, type CodeBlockProps, 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, 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, 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 ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, 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 UseStandardReportOptions, type VariantMetadata, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, parseMarkdownTable, renderMarkdown, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, useStandardReport };
|
|
1552
|
+
export { type AmapEmbedOptions, Button, type ButtonProps, 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, 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, CWaterfallChart, type CWaterfallChartProps, CodeBlock, type CodeBlockProps, 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 PivotValueFieldConfig, type PivotValueFieldState, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, 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 VariantMetadata, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, message, messageManager, parseMarkdownTable, renderMarkdown, resolveVariantFilters, resolveVariantLayout, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, usePivotTable, useStandardReport };
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,39 @@ interface UseNavigationIslandResult {
|
|
|
88
88
|
*/
|
|
89
89
|
declare const useNavigationIsland: (options?: UseNavigationIslandOptions) => UseNavigationIslandResult;
|
|
90
90
|
|
|
91
|
+
type CMessageBoxType = 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
92
|
+
type MessageContent = string | ReactNode;
|
|
93
|
+
interface MessageOptions {
|
|
94
|
+
title?: string;
|
|
95
|
+
onClose?: () => void;
|
|
96
|
+
onConfirm?: () => void;
|
|
97
|
+
confirmText?: string;
|
|
98
|
+
cancelText?: string;
|
|
99
|
+
showCancel?: boolean;
|
|
100
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
101
|
+
}
|
|
102
|
+
interface MessageEvent {
|
|
103
|
+
type: CMessageBoxType;
|
|
104
|
+
content: MessageContent;
|
|
105
|
+
options?: MessageOptions;
|
|
106
|
+
}
|
|
107
|
+
declare class MessageManager {
|
|
108
|
+
private listener;
|
|
109
|
+
register(listener: (event: MessageEvent | null) => void): void;
|
|
110
|
+
unregister(): void;
|
|
111
|
+
show(type: CMessageBoxType, content: MessageContent, options?: MessageOptions): void;
|
|
112
|
+
hide(): void;
|
|
113
|
+
}
|
|
114
|
+
declare const messageManager: MessageManager;
|
|
115
|
+
declare const message: {
|
|
116
|
+
success: (content: MessageContent, options?: MessageOptions) => void;
|
|
117
|
+
error: (content: MessageContent, options?: MessageOptions) => void;
|
|
118
|
+
warning: (content: MessageContent, options?: MessageOptions) => void;
|
|
119
|
+
info: (content: MessageContent, options?: MessageOptions) => void;
|
|
120
|
+
show: (type: CMessageBoxType, content: MessageContent, options?: MessageOptions) => void;
|
|
121
|
+
hide: () => void;
|
|
122
|
+
};
|
|
123
|
+
|
|
91
124
|
/**
|
|
92
125
|
* @file 10_Frontend/components/sap/ui/Common/Molecules/CMessageBox.tsx
|
|
93
126
|
*
|
|
@@ -120,7 +153,6 @@ declare const useNavigationIsland: (options?: UseNavigationIslandOptions) => Use
|
|
|
120
153
|
* --------------------------
|
|
121
154
|
*/
|
|
122
155
|
|
|
123
|
-
type CMessageBoxType = 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
124
156
|
interface CMessageBoxProps {
|
|
125
157
|
open: boolean;
|
|
126
158
|
title?: string;
|
|
@@ -134,6 +166,7 @@ interface CMessageBoxProps {
|
|
|
134
166
|
type?: CMessageBoxType;
|
|
135
167
|
}
|
|
136
168
|
declare const CMessageBox: React__default.FC<CMessageBoxProps>;
|
|
169
|
+
declare const GlobalMessage: React__default.FC;
|
|
137
170
|
|
|
138
171
|
interface CustomizeAgentSettings {
|
|
139
172
|
baseUrl: string;
|
|
@@ -311,7 +344,7 @@ interface CTableQuickDeleteConfig {
|
|
|
311
344
|
onConfirm?: (rows: Record<string, any>[]) => void | Promise<void>;
|
|
312
345
|
}
|
|
313
346
|
interface CTableProps {
|
|
314
|
-
appId
|
|
347
|
+
appId: string;
|
|
315
348
|
title?: string;
|
|
316
349
|
showToolbar?: boolean;
|
|
317
350
|
columns: any[];
|
|
@@ -344,6 +377,7 @@ interface CTableProps {
|
|
|
344
377
|
quickCreate?: CTableQuickCreateConfig;
|
|
345
378
|
quickEdit?: CTableQuickEditConfig;
|
|
346
379
|
quickDelete?: CTableQuickDeleteConfig;
|
|
380
|
+
serviceUrl?: string;
|
|
347
381
|
}
|
|
348
382
|
interface CTableHeadProps {
|
|
349
383
|
columns: any[];
|
|
@@ -418,6 +452,7 @@ interface VariantMetadata {
|
|
|
418
452
|
createdAt?: string;
|
|
419
453
|
filters?: any;
|
|
420
454
|
layout?: any;
|
|
455
|
+
layoutId?: string;
|
|
421
456
|
layoutRefs?: any[];
|
|
422
457
|
scope?: string;
|
|
423
458
|
appId?: string;
|
|
@@ -449,10 +484,10 @@ declare const CVariantManagement: ({ variants, currentVariantId, onLoad, onSave,
|
|
|
449
484
|
*/
|
|
450
485
|
|
|
451
486
|
interface IVariantService {
|
|
452
|
-
getVariants: (appId: string) => Promise<VariantMetadata[]>;
|
|
453
|
-
saveVariant: (variant: VariantMetadata, appId: string) => Promise<void>;
|
|
487
|
+
getVariants: (appId: string, tableKey?: string) => Promise<VariantMetadata[]>;
|
|
488
|
+
saveVariant: (variant: VariantMetadata, appId: string, tableKey?: string) => Promise<void>;
|
|
454
489
|
deleteVariant: (id: string) => Promise<void>;
|
|
455
|
-
setDefaultVariant: (id: string, appId: string) => Promise<void>;
|
|
490
|
+
setDefaultVariant: (id: string, appId: string, tableKey?: string) => Promise<void>;
|
|
456
491
|
}
|
|
457
492
|
interface CVariantManagerProps {
|
|
458
493
|
appId: string;
|
|
@@ -508,7 +543,7 @@ interface CSmartFilterProps {
|
|
|
508
543
|
onVariantSetDefault?: (id: string) => void;
|
|
509
544
|
onSearch?: () => void;
|
|
510
545
|
loading?: boolean;
|
|
511
|
-
appId
|
|
546
|
+
appId: string;
|
|
512
547
|
tableKey?: string;
|
|
513
548
|
currentLayout?: any;
|
|
514
549
|
currentLayoutId?: string;
|
|
@@ -517,15 +552,22 @@ interface CSmartFilterProps {
|
|
|
517
552
|
layoutId: string | null;
|
|
518
553
|
}>;
|
|
519
554
|
variantService?: IVariantService;
|
|
555
|
+
serviceUrl?: string;
|
|
520
556
|
}
|
|
521
557
|
/**
|
|
522
558
|
* CSmartFilter Component
|
|
523
559
|
*
|
|
524
560
|
* Renders a filter bar with "Go" button, variant management, and "Adapt Filters" capability.
|
|
525
561
|
*/
|
|
526
|
-
declare const CSmartFilter: ({ fields, filters, onFilterChange, variants, currentVariantId, onVariantLoad, onVariantSave, onVariantDelete, onVariantSetDefault, onSearch, loading, appId, tableKey, currentLayout, currentLayoutId, layoutRefs, variantService }: CSmartFilterProps) => react_jsx_runtime.JSX.Element;
|
|
562
|
+
declare const CSmartFilter: ({ fields, filters, onFilterChange, variants, currentVariantId, onVariantLoad, onVariantSave, onVariantDelete, onVariantSetDefault, onSearch, loading, appId, tableKey, currentLayout, currentLayoutId, layoutRefs, variantService, serviceUrl }: CSmartFilterProps) => react_jsx_runtime.JSX.Element;
|
|
527
563
|
|
|
528
564
|
interface CStandardPageProps {
|
|
565
|
+
/**
|
|
566
|
+
* Unique Identifier for the Page/Report.
|
|
567
|
+
* Used as the `appId` for Variant and Layout persistence.
|
|
568
|
+
* MUST be unique across the system to avoid configuration conflicts.
|
|
569
|
+
*/
|
|
570
|
+
id: string;
|
|
529
571
|
/** Page Title */
|
|
530
572
|
title: string;
|
|
531
573
|
/** Whether to hide the top breadcrumb/title header */
|
|
@@ -541,8 +583,16 @@ interface CStandardPageProps {
|
|
|
541
583
|
* Default: 1 (8px) - Much tighter than default CTable behavior
|
|
542
584
|
*/
|
|
543
585
|
spacing?: number;
|
|
586
|
+
/**
|
|
587
|
+
* Mode of operation:
|
|
588
|
+
* - 'separated': SmartFilter and CTable are rendered separately (default).
|
|
589
|
+
* Layout variants are applied via prop updates from parent.
|
|
590
|
+
* - 'integrated': SmartFilter is passed into CTable as filterConfig.
|
|
591
|
+
* CTable manages the connection between Filter and Table internally.
|
|
592
|
+
*/
|
|
593
|
+
mode?: 'separated' | 'integrated';
|
|
544
594
|
}
|
|
545
|
-
declare const CStandardPage: ({ title, hideHeader, filterConfig, tableProps, children, spacing }: CStandardPageProps) => react_jsx_runtime.JSX.Element;
|
|
595
|
+
declare const CStandardPage: ({ id, title, hideHeader, filterConfig, tableProps, children, spacing, mode }: CStandardPageProps) => react_jsx_runtime.JSX.Element;
|
|
546
596
|
|
|
547
597
|
/**
|
|
548
598
|
* @file 10_Frontend/components/sap/ui/Common/Structures/CTable.tsx
|
|
@@ -731,6 +781,34 @@ declare const useStandardReport: ({ metadata, fetchData, initialRowsPerPage, row
|
|
|
731
781
|
refresh: () => void;
|
|
732
782
|
};
|
|
733
783
|
|
|
784
|
+
/**
|
|
785
|
+
* @file 10_Frontend/components/sap/ui/Common/PageComponents/Utils/variantUtils.ts
|
|
786
|
+
* @summary Utility functions for handling Variant schemas and migrations.
|
|
787
|
+
* @author ORBAICODER
|
|
788
|
+
* @date 2026-02-27
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Resolves the filter configuration for a specific table/scope from a variant.
|
|
793
|
+
* Handles both legacy (direct object) and new (scoped array) schemas.
|
|
794
|
+
*
|
|
795
|
+
* @param variant The variant metadata object
|
|
796
|
+
* @param tableKey The key/scope of the table to find filters for
|
|
797
|
+
* @returns The filter configuration object or null if not found
|
|
798
|
+
*/
|
|
799
|
+
declare const resolveVariantFilters: (variant: VariantMetadata | null | undefined, tableKey: string) => any;
|
|
800
|
+
/**
|
|
801
|
+
* Resolves the layout configuration or ID for a specific table from a variant.
|
|
802
|
+
*
|
|
803
|
+
* @param variant The variant metadata object
|
|
804
|
+
* @param tableKey The key of the table
|
|
805
|
+
* @returns Object containing { layout: any, layoutId: string | null }
|
|
806
|
+
*/
|
|
807
|
+
declare const resolveVariantLayout: (variant: VariantMetadata | null | undefined, tableKey: string) => {
|
|
808
|
+
layout: any;
|
|
809
|
+
layoutId: string | null;
|
|
810
|
+
};
|
|
811
|
+
|
|
734
812
|
interface CGraphReportProps {
|
|
735
813
|
open: boolean;
|
|
736
814
|
onClose: () => void;
|
|
@@ -1082,6 +1160,42 @@ declare const en: {
|
|
|
1082
1160
|
readonly 'table.group.expandAll': "Expand All Groups";
|
|
1083
1161
|
readonly 'table.group.collapseAll': "Collapse All Groups";
|
|
1084
1162
|
readonly 'table.mobile.notImplemented': "Mobile View Not Implemented";
|
|
1163
|
+
readonly 'pivot.title.default': "Pivot Table Builder";
|
|
1164
|
+
readonly 'pivot.subtitle.default': "Drag fields to configure the pivot table.";
|
|
1165
|
+
readonly 'pivot.empty': "Drag at least one field into Values to render the pivot result.";
|
|
1166
|
+
readonly 'pivot.records': "Records";
|
|
1167
|
+
readonly 'pivot.afterFilter': "After filter";
|
|
1168
|
+
readonly 'pivot.grandTotal': "Grand Total";
|
|
1169
|
+
readonly 'pivot.resultLabel': "Result";
|
|
1170
|
+
readonly 'pivot.valueLabel': "Value";
|
|
1171
|
+
readonly 'pivot.table.dimensions': "Dimensions";
|
|
1172
|
+
readonly 'pivot.fieldList': "Field List";
|
|
1173
|
+
readonly 'pivot.availableDimensions': "Available dimensions";
|
|
1174
|
+
readonly 'pivot.allFieldsInUse': "All fields are in use.";
|
|
1175
|
+
readonly 'pivot.zone.rows': "Rows";
|
|
1176
|
+
readonly 'pivot.zone.columns': "Columns";
|
|
1177
|
+
readonly 'pivot.zone.filters': "Filters";
|
|
1178
|
+
readonly 'pivot.zone.values': "Values";
|
|
1179
|
+
readonly 'pivot.hint.rows': "Drag fields here to build row hierarchy";
|
|
1180
|
+
readonly 'pivot.hint.columns': "Drag fields here to build column hierarchy";
|
|
1181
|
+
readonly 'pivot.hint.filters': "Drag fields here for report filters";
|
|
1182
|
+
readonly 'pivot.hint.values': "Drag numeric fields here for aggregation";
|
|
1183
|
+
readonly 'pivot.clearArea': "Clear area";
|
|
1184
|
+
readonly 'pivot.filter.na': "N/A";
|
|
1185
|
+
readonly 'pivot.filter.noValues': "No values";
|
|
1186
|
+
readonly 'pivot.filter.noneSelected': "None selected";
|
|
1187
|
+
readonly 'pivot.filter.allValues': "All values";
|
|
1188
|
+
readonly 'pivot.filter.selectedCount': "{selected} / {total} selected";
|
|
1189
|
+
readonly 'pivot.filter.selectAll': "Select All";
|
|
1190
|
+
readonly 'pivot.filter.deselectAll': "Deselect All";
|
|
1191
|
+
readonly 'pivot.filter.noResults': "No results";
|
|
1192
|
+
readonly 'pivot.collapse.ariaExpand': "Expand configuration area";
|
|
1193
|
+
readonly 'pivot.collapse.ariaCollapse': "Collapse configuration area";
|
|
1194
|
+
readonly 'pivot.agg.sum': "Sum";
|
|
1195
|
+
readonly 'pivot.agg.count': "Count";
|
|
1196
|
+
readonly 'pivot.agg.avg': "Average";
|
|
1197
|
+
readonly 'pivot.agg.min': "Min";
|
|
1198
|
+
readonly 'pivot.agg.max': "Max";
|
|
1085
1199
|
readonly 'smartFilter.adaptFilters': "Adapt Filters";
|
|
1086
1200
|
readonly 'smartFilter.addFilters': "Add Filters";
|
|
1087
1201
|
readonly 'smartFilter.go': "Go";
|
|
@@ -1261,6 +1375,86 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
|
|
|
1261
1375
|
navigationMaxHeight: number;
|
|
1262
1376
|
};
|
|
1263
1377
|
|
|
1378
|
+
type PivotAggregation = 'sum' | 'count' | 'avg' | 'min' | 'max';
|
|
1379
|
+
type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
|
|
1380
|
+
interface PivotFieldDefinition {
|
|
1381
|
+
id: string;
|
|
1382
|
+
label: string;
|
|
1383
|
+
type?: PivotFieldType;
|
|
1384
|
+
aggregations?: PivotAggregation[];
|
|
1385
|
+
formatValue?: (value: number) => string;
|
|
1386
|
+
}
|
|
1387
|
+
interface PivotValueFieldConfig {
|
|
1388
|
+
fieldId: string;
|
|
1389
|
+
aggregation?: PivotAggregation;
|
|
1390
|
+
}
|
|
1391
|
+
interface PivotValueFieldState {
|
|
1392
|
+
tokenId: string;
|
|
1393
|
+
fieldId: string;
|
|
1394
|
+
aggregation: PivotAggregation;
|
|
1395
|
+
}
|
|
1396
|
+
interface PivotLayoutConfig {
|
|
1397
|
+
rows?: string[];
|
|
1398
|
+
columns?: string[];
|
|
1399
|
+
filters?: string[];
|
|
1400
|
+
values?: PivotValueFieldConfig[];
|
|
1401
|
+
}
|
|
1402
|
+
type PivotFilterSelections = Record<string, string[]>;
|
|
1403
|
+
interface PivotTableModel {
|
|
1404
|
+
rowFields: string[];
|
|
1405
|
+
setRowFields: React__default.Dispatch<React__default.SetStateAction<string[]>>;
|
|
1406
|
+
columnFields: string[];
|
|
1407
|
+
setColumnFields: React__default.Dispatch<React__default.SetStateAction<string[]>>;
|
|
1408
|
+
filterFields: string[];
|
|
1409
|
+
setFilterFields: React__default.Dispatch<React__default.SetStateAction<string[]>>;
|
|
1410
|
+
valueFields: PivotValueFieldState[];
|
|
1411
|
+
setValueFields: React__default.Dispatch<React__default.SetStateAction<PivotValueFieldState[]>>;
|
|
1412
|
+
filterSelections: PivotFilterSelections;
|
|
1413
|
+
setFilterSelections: React__default.Dispatch<React__default.SetStateAction<PivotFilterSelections>>;
|
|
1414
|
+
showGrandTotal: boolean;
|
|
1415
|
+
setShowGrandTotal: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1416
|
+
isConfiguratorCollapsed: boolean;
|
|
1417
|
+
setIsConfiguratorCollapsed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1418
|
+
}
|
|
1419
|
+
interface CPivotTableProps {
|
|
1420
|
+
title?: string;
|
|
1421
|
+
rows: Record<string, unknown>[];
|
|
1422
|
+
fields: PivotFieldDefinition[];
|
|
1423
|
+
initialLayout?: PivotLayoutConfig;
|
|
1424
|
+
emptyText?: string;
|
|
1425
|
+
maxPreviewHeight?: number | string;
|
|
1426
|
+
model?: PivotTableModel;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
declare const CPivotTable: React__default.FC<CPivotTableProps>;
|
|
1430
|
+
|
|
1431
|
+
interface UsePivotTableOptions {
|
|
1432
|
+
fields: PivotFieldDefinition[];
|
|
1433
|
+
initialLayout?: PivotLayoutConfig;
|
|
1434
|
+
initialFilterSelections?: PivotFilterSelections;
|
|
1435
|
+
initialShowGrandTotal?: boolean;
|
|
1436
|
+
initialConfiguratorCollapsed?: boolean;
|
|
1437
|
+
}
|
|
1438
|
+
interface UsePivotTableActions {
|
|
1439
|
+
setRows: (rows: string[]) => void;
|
|
1440
|
+
setColumns: (columns: string[]) => void;
|
|
1441
|
+
setFilters: (filters: string[]) => void;
|
|
1442
|
+
setValues: (values: PivotValueFieldConfig[]) => void;
|
|
1443
|
+
setLayout: (layout: PivotLayoutConfig) => void;
|
|
1444
|
+
clearZone: (zone: 'rows' | 'columns' | 'filters' | 'values') => void;
|
|
1445
|
+
removeFieldFromZone: (zone: 'rows' | 'columns' | 'filters' | 'values', key: string) => void;
|
|
1446
|
+
setAggregationForValue: (tokenId: string, aggregation: PivotAggregation) => void;
|
|
1447
|
+
setFilterSelection: (fieldId: string, values: string[]) => void;
|
|
1448
|
+
resetFilterSelections: () => void;
|
|
1449
|
+
toggleGrandTotal: () => void;
|
|
1450
|
+
toggleConfigurator: () => void;
|
|
1451
|
+
}
|
|
1452
|
+
interface UsePivotTableResult {
|
|
1453
|
+
model: PivotTableModel;
|
|
1454
|
+
actions: UsePivotTableActions;
|
|
1455
|
+
}
|
|
1456
|
+
declare const usePivotTable: ({ fields, initialLayout, initialFilterSelections, initialShowGrandTotal, initialConfiguratorCollapsed, }: UsePivotTableOptions) => UsePivotTableResult;
|
|
1457
|
+
|
|
1264
1458
|
interface MarkdownRendererProps {
|
|
1265
1459
|
markdown?: string;
|
|
1266
1460
|
content?: string;
|
|
@@ -1355,4 +1549,4 @@ declare const PAGE_TRANSITION_PRESETS: {
|
|
|
1355
1549
|
};
|
|
1356
1550
|
};
|
|
1357
1551
|
|
|
1358
|
-
export { type AmapEmbedOptions, Button, type ButtonProps, 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, CPageLayout, type CPageLayoutProps, CPageTransition, type CPageTransitionProps, CPieChart, type CPieChartProps, 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, CWaterfallChart, type CWaterfallChartProps, CodeBlock, type CodeBlockProps, 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, 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, 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 ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, 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 UseStandardReportOptions, type VariantMetadata, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, parseMarkdownTable, renderMarkdown, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, useStandardReport };
|
|
1552
|
+
export { type AmapEmbedOptions, Button, type ButtonProps, 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, 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, CWaterfallChart, type CWaterfallChartProps, CodeBlock, type CodeBlockProps, 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 PivotValueFieldConfig, type PivotValueFieldState, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, 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 VariantMetadata, buildAmapEmbedUrl, buildGoogleMapEmbedUrl, buildGoogleMapIframe, buttonVariants, message, messageManager, parseMarkdownTable, renderMarkdown, resolveVariantFilters, resolveVariantLayout, useAmapEmbedUrl, useDetailInfo, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, usePivotTable, useStandardReport };
|