@moontra/moonui-pro 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +22 -4
- package/dist/index.mjs +1025 -206
- package/package.json +1 -2
- package/src/components/advanced-chart/index.tsx +962 -142
- package/src/components/data-table/data-table-column-toggle.tsx +7 -4
- package/src/components/data-table/data-table-filter-drawer.tsx +48 -42
- package/src/components/data-table/index.tsx +98 -24
- package/src/styles/advanced-chart.css +239 -0
- package/src/styles/index.css +2 -1
- package/src/utils/chart-helpers.ts +100 -0
package/dist/index.d.ts
CHANGED
|
@@ -1152,7 +1152,7 @@ interface TimelineProps {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
declare function Timeline({ events, onEventClick, className, showUserInfo, showMetadata, showRelativeTime, groupByDate, orientation, compact, interactive }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
1154
1154
|
|
|
1155
|
-
type ChartType = 'line' | 'bar' | 'area' | 'pie' | 'scatter';
|
|
1155
|
+
type ChartType = 'line' | 'bar' | 'area' | 'pie' | 'scatter' | 'composed' | 'radar' | 'radialBar' | 'treemap' | 'funnel';
|
|
1156
1156
|
interface ChartDataPoint {
|
|
1157
1157
|
[key: string]: string | number | null;
|
|
1158
1158
|
}
|
|
@@ -1160,10 +1160,17 @@ interface ChartSeries {
|
|
|
1160
1160
|
dataKey: string;
|
|
1161
1161
|
name: string;
|
|
1162
1162
|
color: string;
|
|
1163
|
-
type?: 'monotone' | 'linear' | 'step';
|
|
1163
|
+
type?: 'monotone' | 'linear' | 'step' | 'basis' | 'basisClosed' | 'basisOpen' | 'natural';
|
|
1164
1164
|
strokeWidth?: number;
|
|
1165
1165
|
fillOpacity?: number;
|
|
1166
1166
|
hide?: boolean;
|
|
1167
|
+
gradient?: boolean;
|
|
1168
|
+
strokeDasharray?: string;
|
|
1169
|
+
dot?: boolean | object;
|
|
1170
|
+
activeDot?: boolean | object;
|
|
1171
|
+
label?: boolean | object;
|
|
1172
|
+
stackId?: string;
|
|
1173
|
+
yAxisId?: string;
|
|
1167
1174
|
}
|
|
1168
1175
|
interface AdvancedChartProps {
|
|
1169
1176
|
data: ChartDataPoint[];
|
|
@@ -1194,7 +1201,7 @@ interface AdvancedChartProps {
|
|
|
1194
1201
|
colors?: string[];
|
|
1195
1202
|
className?: string;
|
|
1196
1203
|
onDataPointClick?: (data: ChartDataPoint) => void;
|
|
1197
|
-
onExport?: (format: 'png' | 'svg' | 'pdf') => void;
|
|
1204
|
+
onExport?: (format: 'png' | 'svg' | 'pdf' | 'json' | 'csv') => void;
|
|
1198
1205
|
onRefresh?: () => void;
|
|
1199
1206
|
customTooltip?: React__default.ComponentType<any>;
|
|
1200
1207
|
customLegend?: React__default.ComponentType<any>;
|
|
@@ -1202,8 +1209,19 @@ interface AdvancedChartProps {
|
|
|
1202
1209
|
error?: string | null;
|
|
1203
1210
|
animated?: boolean;
|
|
1204
1211
|
responsive?: boolean;
|
|
1212
|
+
showCrosshair?: boolean;
|
|
1213
|
+
enableZoom?: boolean;
|
|
1214
|
+
enablePan?: boolean;
|
|
1215
|
+
showMiniMap?: boolean;
|
|
1216
|
+
darkMode?: boolean;
|
|
1217
|
+
gradientColors?: boolean;
|
|
1218
|
+
interactiveLegend?: boolean;
|
|
1219
|
+
showDataLabels?: boolean;
|
|
1220
|
+
sparklineMode?: boolean;
|
|
1221
|
+
animationDuration?: number;
|
|
1222
|
+
theme?: 'default' | 'vibrant' | 'pastel' | 'dark' | 'neon';
|
|
1205
1223
|
}
|
|
1206
|
-
declare function AdvancedChart({ data, type, series, title, subtitle, height, width, xAxisKey, yAxisKey, showGrid, showTooltip, showLegend, showBrush, showReference, referenceLines, referenceAreas, colors, className, onDataPointClick, onExport, onRefresh, customTooltip, customLegend, loading, error, animated, responsive, }: AdvancedChartProps): react_jsx_runtime.JSX.Element;
|
|
1224
|
+
declare function AdvancedChart({ data, type, series, title, subtitle, height, width, xAxisKey, yAxisKey, showGrid, showTooltip, showLegend, showBrush, showReference, referenceLines, referenceAreas, colors, className, onDataPointClick, onExport, onRefresh, customTooltip, customLegend, loading, error, animated, responsive, showCrosshair, enableZoom, enablePan, showMiniMap, darkMode, gradientColors, interactiveLegend, showDataLabels, sparklineMode, animationDuration, theme, }: AdvancedChartProps): react_jsx_runtime.JSX.Element;
|
|
1207
1225
|
|
|
1208
1226
|
interface DashboardMetric {
|
|
1209
1227
|
id: string;
|