orbcafe-ui 1.0.6 → 1.0.8
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/README.md +29 -0
- package/dist/index.d.mts +341 -3
- package/dist/index.d.ts +341 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,35 @@
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
+
## 组件总目录(先看这里)
|
|
14
|
+
|
|
15
|
+
下表用于快速判断“该用哪个组件、去哪个目录、看哪份细节文档”。
|
|
16
|
+
|
|
17
|
+
| 模块 | 典型用途 | 代码目录 | 先看文档 |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `Atoms` | 基础输入/按钮/文本等原子能力,作为上层组件基础件 | `src/components/Atoms` | `src/components/Atoms/README.md` |
|
|
20
|
+
| `Molecules` | 组合型基础组件(如统一消息框) | `src/components/Molecules` | `src/components/Molecules/README.md` |
|
|
21
|
+
| `Navigation-Island` | 左侧导航树、折叠导航、菜单路由入口 | `src/components/Navigation-Island` | `src/components/Navigation-Island/README.md` |
|
|
22
|
+
| `StdReport` | 标准报表主容器(筛选、表格、分页、变体、布局) | `src/components/StdReport` | `src/components/StdReport/README.md` |
|
|
23
|
+
| `GraphReport` | 图形报表弹窗(KPI、图表、联动、AI 输入区) | `src/components/GraphReport` | `src/components/GraphReport/README.md` |
|
|
24
|
+
| `CustomizeAgent` | AI 参数与 Prompt 模板设置弹窗 | `src/components/CustomizeAgent` | `src/components/CustomizeAgent/README.md` |
|
|
25
|
+
| `PageLayout` | 页面壳层(Header + Navigation + Content) | `src/components/PageLayout` | `src/components/PageLayout/README.md` |
|
|
26
|
+
|
|
27
|
+
### 文档查阅顺序(推荐)
|
|
28
|
+
|
|
29
|
+
1. 先看模块根 README:了解能力边界、最小接入示例。
|
|
30
|
+
2. 再看模块 `Hooks/README.md`:确认状态管理、参数、返回值与联动方式。
|
|
31
|
+
3. 最后看模块详细设计文档(如 `graphreport.md`):理解内部结构与扩展点。
|
|
32
|
+
|
|
33
|
+
### 常用文档索引
|
|
34
|
+
|
|
35
|
+
- `GraphReport` 详细设计:`src/components/GraphReport/graphreport.md`
|
|
36
|
+
- `GraphReport Hooks`:`src/components/GraphReport/Hooks/README.md`
|
|
37
|
+
- `StdReport Hooks`:`src/components/StdReport/Hooks/README.md`
|
|
38
|
+
- `PageLayout Hooks`:`src/components/PageLayout/Hooks/README.md`
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
13
42
|
## 重点组件:CMessageBox(请优先使用)
|
|
14
43
|
|
|
15
44
|
`CMessageBox` 是标准体系里用于统一提示/确认交互的基础分子组件,适用于:
|
package/dist/index.d.mts
CHANGED
|
@@ -135,6 +135,25 @@ interface CMessageBoxProps {
|
|
|
135
135
|
}
|
|
136
136
|
declare const CMessageBox: React__default.FC<CMessageBoxProps>;
|
|
137
137
|
|
|
138
|
+
interface CustomizeAgentSettings {
|
|
139
|
+
baseUrl: string;
|
|
140
|
+
apiKey: string;
|
|
141
|
+
model: string;
|
|
142
|
+
promptLang: string;
|
|
143
|
+
analysisPrompt: string;
|
|
144
|
+
responsePrompt: string;
|
|
145
|
+
}
|
|
146
|
+
interface CustomizeAgentTemplateOption {
|
|
147
|
+
id: string;
|
|
148
|
+
label: string;
|
|
149
|
+
}
|
|
150
|
+
interface CustomizeAgentSavePayload {
|
|
151
|
+
settings: CustomizeAgentSettings;
|
|
152
|
+
analysisTemplateId?: string;
|
|
153
|
+
responseTemplateId?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type GraphRow = Record<string, unknown>;
|
|
138
157
|
interface GraphReportFieldMapping {
|
|
139
158
|
primaryDimension: string;
|
|
140
159
|
secondaryDimension: string;
|
|
@@ -151,6 +170,111 @@ interface GraphReportConfig {
|
|
|
151
170
|
topN?: number;
|
|
152
171
|
fieldMapping?: Partial<GraphReportFieldMapping>;
|
|
153
172
|
statusFlagValues?: string[];
|
|
173
|
+
interaction?: {
|
|
174
|
+
enabled?: boolean;
|
|
175
|
+
};
|
|
176
|
+
aiAssistant?: {
|
|
177
|
+
enabled?: boolean;
|
|
178
|
+
placeholder?: string;
|
|
179
|
+
submitLabel?: string;
|
|
180
|
+
defaultPrompt?: string;
|
|
181
|
+
onSubmit?: (prompt: string, context: {
|
|
182
|
+
filters: GraphReportInteractionState;
|
|
183
|
+
model: GraphReportModel;
|
|
184
|
+
}) => void | Promise<void>;
|
|
185
|
+
onVoiceInput?: () => void;
|
|
186
|
+
settings?: CustomizeAgentSettings;
|
|
187
|
+
onSaveAll?: (payload: {
|
|
188
|
+
settings: CustomizeAgentSettings;
|
|
189
|
+
analysisTemplateId?: string;
|
|
190
|
+
responseTemplateId?: string;
|
|
191
|
+
}) => void | Promise<void>;
|
|
192
|
+
analysisTemplateOptions?: Array<{
|
|
193
|
+
id: string;
|
|
194
|
+
label: string;
|
|
195
|
+
}>;
|
|
196
|
+
responseTemplateOptions?: Array<{
|
|
197
|
+
id: string;
|
|
198
|
+
label: string;
|
|
199
|
+
}>;
|
|
200
|
+
defaultAnalysisTemplateId?: string;
|
|
201
|
+
defaultResponseTemplateId?: string;
|
|
202
|
+
modelOptions?: string[];
|
|
203
|
+
promptLangOptions?: string[];
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
interface GraphReportInteractionState {
|
|
207
|
+
primaryDimension?: string;
|
|
208
|
+
secondaryDimension?: string;
|
|
209
|
+
status?: string;
|
|
210
|
+
}
|
|
211
|
+
interface GraphReportKpis {
|
|
212
|
+
totalRecords: number;
|
|
213
|
+
totalReportHours: number;
|
|
214
|
+
totalBillableHours: number;
|
|
215
|
+
efficiency: number;
|
|
216
|
+
totalAmount: number;
|
|
217
|
+
flaggedCount: number;
|
|
218
|
+
}
|
|
219
|
+
interface GraphBarDatum {
|
|
220
|
+
name: string;
|
|
221
|
+
value: number;
|
|
222
|
+
}
|
|
223
|
+
interface GraphLineDatum {
|
|
224
|
+
name: string;
|
|
225
|
+
value: number;
|
|
226
|
+
}
|
|
227
|
+
interface GraphComboDatum {
|
|
228
|
+
name: string;
|
|
229
|
+
barValue: number;
|
|
230
|
+
lineValue: number;
|
|
231
|
+
}
|
|
232
|
+
interface GraphHeatmapDatum {
|
|
233
|
+
x: string;
|
|
234
|
+
y: string;
|
|
235
|
+
value: number;
|
|
236
|
+
}
|
|
237
|
+
interface GraphPieDatum {
|
|
238
|
+
name: string;
|
|
239
|
+
value: number;
|
|
240
|
+
percent: number;
|
|
241
|
+
}
|
|
242
|
+
interface GraphFishboneBranch {
|
|
243
|
+
title: string;
|
|
244
|
+
causes: string[];
|
|
245
|
+
}
|
|
246
|
+
interface GraphWaterfallDatum {
|
|
247
|
+
name: string;
|
|
248
|
+
value: number;
|
|
249
|
+
type?: 'delta' | 'total';
|
|
250
|
+
}
|
|
251
|
+
interface GraphMapLocation {
|
|
252
|
+
lat: number;
|
|
253
|
+
lng: number;
|
|
254
|
+
name?: string;
|
|
255
|
+
}
|
|
256
|
+
interface GraphTableColumn {
|
|
257
|
+
id: string;
|
|
258
|
+
label: string;
|
|
259
|
+
align?: 'left' | 'center' | 'right';
|
|
260
|
+
}
|
|
261
|
+
interface GraphReportModel {
|
|
262
|
+
title: string;
|
|
263
|
+
kpis: GraphReportKpis;
|
|
264
|
+
charts: {
|
|
265
|
+
billableByPrimary: GraphBarDatum[];
|
|
266
|
+
efficiencyBySecondary: GraphBarDatum[];
|
|
267
|
+
statusDistribution: GraphPieDatum[];
|
|
268
|
+
lineByDate?: GraphLineDatum[];
|
|
269
|
+
comboByPrimary?: GraphComboDatum[];
|
|
270
|
+
heatmapPrimarySecondary?: GraphHeatmapDatum[];
|
|
271
|
+
waterfallBillable?: GraphWaterfallDatum[];
|
|
272
|
+
fishboneStatusCauses?: GraphFishboneBranch[];
|
|
273
|
+
};
|
|
274
|
+
table: {
|
|
275
|
+
columns: GraphTableColumn[];
|
|
276
|
+
rows: GraphRow[];
|
|
277
|
+
};
|
|
154
278
|
}
|
|
155
279
|
|
|
156
280
|
interface CTableQuickCreateConfig {
|
|
@@ -607,6 +731,207 @@ declare const useStandardReport: ({ metadata, fetchData, initialRowsPerPage, row
|
|
|
607
731
|
refresh: () => void;
|
|
608
732
|
};
|
|
609
733
|
|
|
734
|
+
interface CGraphReportProps {
|
|
735
|
+
open: boolean;
|
|
736
|
+
onClose: () => void;
|
|
737
|
+
model: GraphReportModel;
|
|
738
|
+
tableContent: ReactNode;
|
|
739
|
+
extraCharts?: ReactNode;
|
|
740
|
+
interaction?: {
|
|
741
|
+
enabled?: boolean;
|
|
742
|
+
filters: GraphReportInteractionState;
|
|
743
|
+
fieldMapping: GraphReportFieldMapping;
|
|
744
|
+
onPrimaryDimensionClick: (value: string) => void;
|
|
745
|
+
onSecondaryDimensionClick: (value: string) => void;
|
|
746
|
+
onStatusClick: (value: string) => void;
|
|
747
|
+
onClearFilter: (field: keyof GraphReportInteractionState) => void;
|
|
748
|
+
onClearAll: () => void;
|
|
749
|
+
};
|
|
750
|
+
aiAssistant?: GraphReportConfig['aiAssistant'];
|
|
751
|
+
}
|
|
752
|
+
declare const CGraphReport: ({ open, onClose, model, tableContent, extraCharts, interaction, aiAssistant, }: CGraphReportProps) => react_jsx_runtime.JSX.Element;
|
|
753
|
+
|
|
754
|
+
interface UseGraphReportOptions {
|
|
755
|
+
rows: GraphRow[];
|
|
756
|
+
config?: GraphReportConfig;
|
|
757
|
+
}
|
|
758
|
+
interface UseGraphReportResult {
|
|
759
|
+
fieldMapping: GraphReportFieldMapping;
|
|
760
|
+
model: GraphReportModel;
|
|
761
|
+
}
|
|
762
|
+
declare const useGraphReport: ({ rows, config }: UseGraphReportOptions) => UseGraphReportResult;
|
|
763
|
+
|
|
764
|
+
interface UseGraphChartDataOptions {
|
|
765
|
+
bars?: GraphBarDatum[];
|
|
766
|
+
lines?: GraphLineDatum[];
|
|
767
|
+
combos?: GraphComboDatum[];
|
|
768
|
+
heatmap?: GraphHeatmapDatum[];
|
|
769
|
+
pies?: GraphPieDatum[];
|
|
770
|
+
waterfalls?: GraphWaterfallDatum[];
|
|
771
|
+
}
|
|
772
|
+
interface UseGraphChartDataResult {
|
|
773
|
+
bars: GraphBarDatum[];
|
|
774
|
+
lines: GraphLineDatum[];
|
|
775
|
+
combos: GraphComboDatum[];
|
|
776
|
+
heatmap: GraphHeatmapDatum[];
|
|
777
|
+
pies: GraphPieDatum[];
|
|
778
|
+
waterfalls: GraphWaterfallDatum[];
|
|
779
|
+
}
|
|
780
|
+
declare const useGraphChartData: ({ bars, lines, combos, heatmap, pies, waterfalls, }: UseGraphChartDataOptions) => UseGraphChartDataResult;
|
|
781
|
+
|
|
782
|
+
interface UseGoogleMapEmbedUrlOptions {
|
|
783
|
+
apiKey?: string;
|
|
784
|
+
query?: string;
|
|
785
|
+
zoom?: number;
|
|
786
|
+
mapType?: 'roadmap' | 'satellite';
|
|
787
|
+
}
|
|
788
|
+
declare const useGoogleMapEmbedUrl: ({ apiKey, query, zoom, mapType, }: UseGoogleMapEmbedUrlOptions) => string;
|
|
789
|
+
interface UseAmapEmbedUrlOptions {
|
|
790
|
+
keyword?: string;
|
|
791
|
+
location?: GraphMapLocation;
|
|
792
|
+
}
|
|
793
|
+
declare const useAmapEmbedUrl: ({ keyword, location }: UseAmapEmbedUrlOptions) => string;
|
|
794
|
+
|
|
795
|
+
interface UseGraphInteractionResult {
|
|
796
|
+
filters: GraphReportInteractionState;
|
|
797
|
+
setFilter: (field: keyof GraphReportInteractionState, value?: string) => void;
|
|
798
|
+
clearFilter: (field: keyof GraphReportInteractionState) => void;
|
|
799
|
+
clearAll: () => void;
|
|
800
|
+
hasActiveFilters: boolean;
|
|
801
|
+
applyRows: (rows: GraphRow[], fieldMapping: GraphReportFieldMapping) => GraphRow[];
|
|
802
|
+
}
|
|
803
|
+
declare const useGraphInteraction: (initialFilters?: GraphReportInteractionState) => UseGraphInteractionResult;
|
|
804
|
+
|
|
805
|
+
interface CGraphChartsProps {
|
|
806
|
+
billableByPrimary: GraphBarDatum[];
|
|
807
|
+
efficiencyBySecondary: GraphBarDatum[];
|
|
808
|
+
statusDistribution: GraphPieDatum[];
|
|
809
|
+
interaction?: {
|
|
810
|
+
filters?: GraphReportInteractionState;
|
|
811
|
+
onPrimaryDimensionClick?: (value: string) => void;
|
|
812
|
+
onSecondaryDimensionClick?: (value: string) => void;
|
|
813
|
+
onStatusClick?: (value: string) => void;
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
declare const CGraphCharts: ({ billableByPrimary, efficiencyBySecondary, statusDistribution, interaction, }: CGraphChartsProps) => react_jsx_runtime.JSX.Element;
|
|
817
|
+
|
|
818
|
+
interface CGraphKpiCardsProps {
|
|
819
|
+
kpis: GraphReportKpis;
|
|
820
|
+
}
|
|
821
|
+
declare const CGraphKpiCards: ({ kpis }: CGraphKpiCardsProps) => react_jsx_runtime.JSX.Element;
|
|
822
|
+
|
|
823
|
+
interface CChartCardProps {
|
|
824
|
+
title: string;
|
|
825
|
+
subtitle?: string;
|
|
826
|
+
children: ReactNode;
|
|
827
|
+
}
|
|
828
|
+
declare const CChartCard: ({ title, subtitle, children }: CChartCardProps) => react_jsx_runtime.JSX.Element;
|
|
829
|
+
|
|
830
|
+
interface CBarChartProps {
|
|
831
|
+
data: GraphBarDatum[];
|
|
832
|
+
orientation?: 'horizontal' | 'vertical';
|
|
833
|
+
valueSuffix?: string;
|
|
834
|
+
minHeight?: number;
|
|
835
|
+
activeName?: string;
|
|
836
|
+
onItemClick?: (item: GraphBarDatum) => void;
|
|
837
|
+
}
|
|
838
|
+
declare const CBarChart: ({ data, orientation, valueSuffix, minHeight, activeName, onItemClick, }: CBarChartProps) => react_jsx_runtime.JSX.Element;
|
|
839
|
+
|
|
840
|
+
interface CLineChartProps {
|
|
841
|
+
data: GraphLineDatum[];
|
|
842
|
+
color?: string;
|
|
843
|
+
valueSuffix?: string;
|
|
844
|
+
height?: number;
|
|
845
|
+
}
|
|
846
|
+
declare const CLineChart: ({ data, color, valueSuffix, height, }: CLineChartProps) => react_jsx_runtime.JSX.Element;
|
|
847
|
+
|
|
848
|
+
interface CComboChartProps {
|
|
849
|
+
data: GraphComboDatum[];
|
|
850
|
+
barColor?: string;
|
|
851
|
+
lineColor?: string;
|
|
852
|
+
height?: number;
|
|
853
|
+
}
|
|
854
|
+
declare const CComboChart: ({ data, barColor, lineColor, height, }: CComboChartProps) => react_jsx_runtime.JSX.Element;
|
|
855
|
+
|
|
856
|
+
interface CHeatmapChartProps {
|
|
857
|
+
data: GraphHeatmapDatum[];
|
|
858
|
+
}
|
|
859
|
+
declare const CHeatmapChart: ({ data }: CHeatmapChartProps) => react_jsx_runtime.JSX.Element;
|
|
860
|
+
|
|
861
|
+
interface CPieChartProps {
|
|
862
|
+
data: GraphPieDatum[];
|
|
863
|
+
variant?: 'pie' | 'donut';
|
|
864
|
+
colors?: string[];
|
|
865
|
+
size?: number;
|
|
866
|
+
activeName?: string;
|
|
867
|
+
onItemClick?: (item: GraphPieDatum) => void;
|
|
868
|
+
}
|
|
869
|
+
declare const CPieChart: ({ data, variant, colors, size, activeName, onItemClick, }: CPieChartProps) => react_jsx_runtime.JSX.Element;
|
|
870
|
+
|
|
871
|
+
interface CFishboneChartProps {
|
|
872
|
+
effect: string;
|
|
873
|
+
branches: GraphFishboneBranch[];
|
|
874
|
+
}
|
|
875
|
+
declare const CFishboneChart: ({ effect, branches }: CFishboneChartProps) => react_jsx_runtime.JSX.Element;
|
|
876
|
+
|
|
877
|
+
interface CWaterfallChartProps {
|
|
878
|
+
data: GraphWaterfallDatum[];
|
|
879
|
+
height?: number;
|
|
880
|
+
}
|
|
881
|
+
declare const CWaterfallChart: ({ data, height }: CWaterfallChartProps) => react_jsx_runtime.JSX.Element;
|
|
882
|
+
|
|
883
|
+
interface CGoogleMapChartProps {
|
|
884
|
+
apiKey?: string;
|
|
885
|
+
query?: string;
|
|
886
|
+
embedUrl?: string;
|
|
887
|
+
zoom?: number;
|
|
888
|
+
mapType?: 'roadmap' | 'satellite';
|
|
889
|
+
height?: number;
|
|
890
|
+
}
|
|
891
|
+
declare const CGoogleMapChart: ({ apiKey, query, embedUrl, zoom, mapType, height, }: CGoogleMapChartProps) => react_jsx_runtime.JSX.Element;
|
|
892
|
+
|
|
893
|
+
interface CAmapChartProps {
|
|
894
|
+
keyword?: string;
|
|
895
|
+
location?: GraphMapLocation;
|
|
896
|
+
embedUrl?: string;
|
|
897
|
+
height?: number;
|
|
898
|
+
}
|
|
899
|
+
declare const CAmapChart: ({ keyword, location, embedUrl, height, }: CAmapChartProps) => react_jsx_runtime.JSX.Element;
|
|
900
|
+
|
|
901
|
+
interface GoogleMapEmbedOptions {
|
|
902
|
+
apiKey: string;
|
|
903
|
+
query: string;
|
|
904
|
+
zoom?: number;
|
|
905
|
+
mapType?: 'roadmap' | 'satellite';
|
|
906
|
+
}
|
|
907
|
+
declare const buildGoogleMapEmbedUrl: ({ apiKey, query, zoom, mapType, }: GoogleMapEmbedOptions) => string;
|
|
908
|
+
declare const buildGoogleMapIframe: (options: GoogleMapEmbedOptions, height?: number) => string;
|
|
909
|
+
|
|
910
|
+
interface AmapEmbedOptions {
|
|
911
|
+
keyword?: string;
|
|
912
|
+
location?: {
|
|
913
|
+
lng: number;
|
|
914
|
+
lat: number;
|
|
915
|
+
name?: string;
|
|
916
|
+
};
|
|
917
|
+
src?: string;
|
|
918
|
+
}
|
|
919
|
+
declare const buildAmapEmbedUrl: ({ keyword, location, src, }: AmapEmbedOptions) => string;
|
|
920
|
+
|
|
921
|
+
interface CCustomizeAgentProps {
|
|
922
|
+
open: boolean;
|
|
923
|
+
onClose: () => void;
|
|
924
|
+
value: CustomizeAgentSettings;
|
|
925
|
+
onSaveAll?: (payload: CustomizeAgentSavePayload) => void | Promise<void>;
|
|
926
|
+
modelOptions?: string[];
|
|
927
|
+
promptLangOptions?: string[];
|
|
928
|
+
analysisTemplateOptions?: CustomizeAgentTemplateOption[];
|
|
929
|
+
responseTemplateOptions?: CustomizeAgentTemplateOption[];
|
|
930
|
+
defaultAnalysisTemplateId?: string;
|
|
931
|
+
defaultResponseTemplateId?: string;
|
|
932
|
+
}
|
|
933
|
+
declare const CCustomizeAgent: ({ open, onClose, value, onSaveAll, modelOptions, promptLangOptions, analysisTemplateOptions, responseTemplateOptions, defaultAnalysisTemplateId, defaultResponseTemplateId, }: CCustomizeAgentProps) => react_jsx_runtime.JSX.Element;
|
|
934
|
+
|
|
610
935
|
type OrbcafeLocale = 'en' | 'zh' | 'fr' | 'de' | 'ja' | 'ko';
|
|
611
936
|
declare const en: {
|
|
612
937
|
readonly 'common.cancel': "Cancel";
|
|
@@ -769,6 +1094,13 @@ interface CAppHeaderUser {
|
|
|
769
1094
|
avatarText?: string;
|
|
770
1095
|
avatarSrc?: string;
|
|
771
1096
|
}
|
|
1097
|
+
interface CAppHeaderUserMenuItem {
|
|
1098
|
+
key: string;
|
|
1099
|
+
label: ReactNode;
|
|
1100
|
+
icon?: ReactNode;
|
|
1101
|
+
onClick?: () => void;
|
|
1102
|
+
disabled?: boolean;
|
|
1103
|
+
}
|
|
772
1104
|
interface CAppHeaderProps {
|
|
773
1105
|
appTitle: string;
|
|
774
1106
|
logo?: ReactNode;
|
|
@@ -781,6 +1113,9 @@ interface CAppHeaderProps {
|
|
|
781
1113
|
searchPlaceholder?: string;
|
|
782
1114
|
onSearch?: (query: string) => void;
|
|
783
1115
|
user?: CAppHeaderUser;
|
|
1116
|
+
onUserSetting?: () => void;
|
|
1117
|
+
onUserLogout?: () => void;
|
|
1118
|
+
userMenuItems?: CAppHeaderUserMenuItem[];
|
|
784
1119
|
leftSlot?: ReactNode;
|
|
785
1120
|
rightSlot?: ReactNode;
|
|
786
1121
|
}
|
|
@@ -794,6 +1129,9 @@ interface CAppPageLayoutProps {
|
|
|
794
1129
|
localeOptions?: OrbcafeLocale[];
|
|
795
1130
|
onLocaleChange?: (locale: OrbcafeLocale) => void;
|
|
796
1131
|
user?: CAppHeaderUser;
|
|
1132
|
+
onUserSetting?: () => void;
|
|
1133
|
+
onUserLogout?: () => void;
|
|
1134
|
+
userMenuItems?: CAppHeaderUserMenuItem[];
|
|
797
1135
|
logo?: ReactNode;
|
|
798
1136
|
onSearch?: (query: string) => void;
|
|
799
1137
|
rightHeaderSlot?: ReactNode;
|
|
@@ -801,9 +1139,9 @@ interface CAppPageLayoutProps {
|
|
|
801
1139
|
contentSx?: SxProps<Theme>;
|
|
802
1140
|
}
|
|
803
1141
|
|
|
804
|
-
declare const CAppPageLayout: ({ appTitle, menuData, children, showNavigation, locale, localeLabel, localeOptions, onLocaleChange, user, logo, onSearch, rightHeaderSlot, leftHeaderSlot, contentSx, }: CAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1142
|
+
declare const CAppPageLayout: ({ appTitle, menuData, children, showNavigation, locale, localeLabel, localeOptions, onLocaleChange, user, onUserSetting, onUserLogout, userMenuItems, logo, onSearch, rightHeaderSlot, leftHeaderSlot, contentSx, }: CAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
805
1143
|
|
|
806
|
-
declare const CAppHeader: ({ appTitle, logo, mode, onToggleMode, locale: localeProp, localeLabel, localeOptions, onLocaleChange, searchPlaceholder, onSearch, user, leftSlot, rightSlot, }: CAppHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1144
|
+
declare const CAppHeader: ({ appTitle, logo, mode, onToggleMode, locale: localeProp, localeLabel, localeOptions, onLocaleChange, searchPlaceholder, onSearch, user, onUserSetting, onUserLogout, userMenuItems, leftSlot, rightSlot, }: CAppHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
807
1145
|
|
|
808
1146
|
interface UsePageLayoutOptions {
|
|
809
1147
|
menuData?: TreeMenuItem[];
|
|
@@ -814,4 +1152,4 @@ declare const usePageLayout: ({ menuData, initialNavigationCollapsed, }?: UsePag
|
|
|
814
1152
|
navigationMaxHeight: number;
|
|
815
1153
|
};
|
|
816
1154
|
|
|
817
|
-
export { Button, type ButtonProps, CAppHeader, type CAppHeaderProps, type CAppHeaderUser, CAppPageLayout, type CAppPageLayoutProps, CLayoutManagement, type CLayoutManagementProps, CLayoutManager, type CLayoutManagerProps, CMessageBox, type CMessageBoxProps, type CMessageBoxType, CPageLayout, type CPageLayoutProps, 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, type DateOperator, type FilterField, type FilterOperator, type FilterType, type FilterValue, type IVariantService, type LayoutMetadata, NavigationIsland, type NavigationIslandProps, type NumberOperator, ORBCAFE_I18N_MESSAGES, type OrbcafeI18nContextValue, OrbcafeI18nProvider, type OrbcafeI18nProviderProps, type OrbcafeLocale, type OrbcafeLocaleMessages, type OrbcafeMessageKey, type OrbcafeMessageParams, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, type TextOperator, TreeMenu, type TreeMenuItem, type UseNavigationIslandOptions, type UseNavigationIslandResult, type UsePageLayoutOptions, type UseStandardReportOptions, type VariantMetadata, buttonVariants, useNavigationIsland, useOrbcafeI18n, usePageLayout, useStandardReport };
|
|
1155
|
+
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, 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, 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, type CustomizeAgentSavePayload, type CustomizeAgentSettings, type CustomizeAgentTemplateOption, type DateOperator, 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, NavigationIsland, type NavigationIslandProps, type NumberOperator, ORBCAFE_I18N_MESSAGES, type OrbcafeI18nContextValue, OrbcafeI18nProvider, type OrbcafeI18nProviderProps, type OrbcafeLocale, type OrbcafeLocaleMessages, type OrbcafeMessageKey, type OrbcafeMessageParams, type ReportColumn, type ReportFilter, type ReportMetadata, type SelectOperator, type TextOperator, TreeMenu, type TreeMenuItem, type UseAmapEmbedUrlOptions, 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, useAmapEmbedUrl, useGoogleMapEmbedUrl, useGraphChartData, useGraphInteraction, useGraphReport, useNavigationIsland, useOrbcafeI18n, usePageLayout, useStandardReport };
|