@meyicloud/meyi-cost-ui 1.7.4 → 1.7.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.
@@ -0,0 +1,3 @@
1
+ export declare function Ec2Optimization({ onClose }: {
2
+ onClose: () => void;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CostReport } from '../../../types.js';
2
+ import { ReportGroup } from '../report-model.js';
3
+ export declare function ExpenseTimeline({ report, groupBy, granularity }: {
4
+ report: CostReport;
5
+ groupBy: ReportGroup;
6
+ granularity: "daily" | "monthly";
7
+ }): import("react").JSX.Element;
@@ -18,6 +18,8 @@ export declare function useCostReports(): {
18
18
  optionsError: string | null;
19
19
  dataStatus: CurDataStatus | null;
20
20
  comparedRows: import('../report-model.js').ComparisonRow[];
21
+ exporting: boolean;
22
+ exportExcel: () => Promise<void>;
21
23
  selectedComparisonPeriods: {
22
24
  currentStart: string;
23
25
  currentEnd: string;
@@ -0,0 +1,6 @@
1
+ import { jsPDF as JsPdf } from 'jspdf';
2
+ /**
3
+ * Draws the horizontal logo (icon and "Meyicloud" wordmark, never split) with its top-left at (x, y).
4
+ * Returns the drawn width so callers can place content beside it.
5
+ */
6
+ export declare function drawMeyiLogo(pdf: JsPdf, x: number, y: number, height: number, color: [number, number, number]): number;
@@ -1,3 +1,4 @@
1
+ import { jsPDF as JsPdf } from 'jspdf';
1
2
  import { CostReport } from '../../types.js';
2
3
  import { Comparison, ComparisonRow, ReportGroup } from './report-model.js';
3
4
  interface ExportContext {
@@ -11,5 +12,10 @@ interface ExportContext {
11
12
  granularity: "daily" | "monthly";
12
13
  }
13
14
  export declare function exportReportCsv(context: ExportContext): void;
15
+ /** Builds the report PDF without saving it, so the layout can be rendered and checked outside the browser. */
16
+ export declare function buildReportPdf(context: ExportContext): Promise<{
17
+ pdf: JsPdf;
18
+ filename: string;
19
+ }>;
14
20
  export declare function exportReportPdf(context: ExportContext): Promise<void>;
15
21
  export {};
@@ -46,4 +46,5 @@ export declare function comparisonPeriods(end: string, granularity: "daily" | "m
46
46
  };
47
47
  export declare function periodLabel(start: string, end: string, granularity: "daily" | "monthly"): string;
48
48
  export declare function comparisonRows(comparison: Comparison): ComparisonRow[];
49
- export declare function relationText(values?: CostRelationItem[]): string;
49
+ export declare function significantRelations(values?: CostRelationItem[]): CostRelationItem[];
50
+ export declare function topRelationsText(values?: CostRelationItem[], limit?: number): string;