ngx-core-components 0.3.28 → 0.3.30
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/ai/ai-chat/ai-chat.component.d.ts +9 -1
- package/ai/ai-chat-widget/ai-chat-widget.component.d.ts +3 -1
- package/ai/ai-prompt-editor/ai-prompt-editor.component.d.ts +14 -1
- package/ai/ai-rag-inspector/ai-rag-inspector.component.d.ts +6 -0
- package/charts/bar-chart/bar-chart.component.d.ts +2 -1
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +49 -0
- package/charts/gauge-chart/gauge-chart.component.d.ts +18 -2
- package/charts/multi-needle-gauge/multi-needle-gauge.component.d.ts +74 -0
- package/charts/nested-donut-chart/nested-donut-chart.component.d.ts +70 -0
- package/charts/org-chart/org-chart.component.d.ts +69 -0
- package/charts/pie-chart/pie-chart.component.d.ts +3 -1
- package/charts/public-api.d.ts +24 -0
- package/charts/pyramid-chart/pyramid-chart.component.d.ts +58 -0
- package/charts/range-bar-chart/range-bar-chart.component.d.ts +61 -0
- package/charts/shared/chart-annotations.d.ts +26 -0
- package/charts/shared/chart-brush-zoom.component.d.ts +53 -0
- package/charts/shared/chart-skeleton.component.d.ts +10 -0
- package/charts/shared/chart-sync-group.directive.d.ts +14 -0
- package/charts/shared/chart-theme.service.d.ts +21 -0
- package/charts/shared/chart-tooltip.service.d.ts +28 -0
- package/charts/step-line-chart/step-line-chart.component.d.ts +71 -0
- package/charts/timeline-chart/timeline-chart.component.d.ts +63 -0
- package/fesm2022/ngx-core-components-ai.mjs +633 -258
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +3347 -39
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +3635 -892
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +894 -542
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +306 -117
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/components/grid-filter-builder/grid-filter-builder.component.d.ts +70 -0
- package/grid/data-grid/components/grid-status-bar/grid-status-bar.component.d.ts +25 -0
- package/grid/data-grid/data-grid.component.d.ts +18 -1
- package/grid/data-grid/models.d.ts +65 -0
- package/grid/data-grid/services/grid-clipboard.service.d.ts +40 -0
- package/grid/data-grid/services/grid-edit.service.d.ts +48 -0
- package/grid/data-grid/services/grid-export-xlsx.service.d.ts +67 -0
- package/grid/data-grid/services/grid-keyboard.service.d.ts +70 -0
- package/grid/data-grid/services/grid-selection.service.d.ts +36 -0
- package/grid/data-grid/services/grid-state.service.d.ts +41 -0
- package/grid/data-grid/services/grid-virtualization.service.d.ts +81 -0
- package/grid/data-grid/utils/grid-aggregate.util.d.ts +13 -0
- package/grid/data-grid/utils/grid-filter.util.d.ts +11 -0
- package/grid/data-grid/utils/grid-sort.util.d.ts +17 -0
- package/grid/pivot-grid/pivot-grid.component.d.ts +15 -2
- package/grid/public-api.d.ts +17 -1
- package/inputs/date-picker/date-picker.component.d.ts +32 -33
- package/inputs/directives/mask.directive.d.ts +9 -0
- package/inputs/form-builder/form-builder.component.d.ts +22 -31
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +33 -23
- package/inputs/pipes/form-error.pipe.d.ts +9 -0
- package/inputs/public-api.d.ts +8 -1
- package/inputs/segmented-control/segmented-control.component.d.ts +12 -3
- package/inputs/services/form-error.service.d.ts +33 -0
- package/inputs/textbox/textbox.component.d.ts +3 -1
- package/inputs/utils/mask.util.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +18 -1
- package/views/tree-view/tree-view.component.d.ts +20 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, inject, ElementRef, Renderer2, HostListener, Directive, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
export { AutocompleteComponent, CheckboxComponent, ColorPickerComponent, DatePickerComponent, DateRangePickerComponent, DropdownComponent, FilePreviewComponent, FileUploadComponent, FormBuilderComponent, FormDesignerComponent, MultiSelectComponent, NumericTextBoxComponent, RadioGroupComponent, RatingComponent, SegmentedControlComponent, SignaturePadComponent, SliderComponent, SwitchComponent, TagInputComponent, TextBoxComponent, TextareaComponent, TimePickerComponent } from 'ngx-core-components/inputs';
|
|
4
|
-
export { AdjacencyMatrixComponent, AgenticCognitiveTopologyComponent, ArcDiagramComponent, AreaChartComponent, AreaRangeChartComponent, AreaSplineRangeChartComponent, BarChartComponent, BellCurveChartComponent, BiplotComponent, BoxPlotChartComponent, BubbleChartComponent, BulletChartComponent, CHART_COLORS, CandlestickChartComponent, ChordDiagramComponent, ColumnPyramidChartComponent, ColumnRangeChartComponent, ComboChartComponent, DependencyType, DependencyWheelComponent, DumbbellChartComponent, EmbeddingSpaceProjectionComponent, ErrorBarComponent, FlagsComponent, FlowmapComponent, FunnelChartComponent, GanttChartComponent, GanttScaleService, GaugeChartComponent, GeoHeatmapComponent, HLCChartComponent, HeatmapChartComponent, HeikinAshiChartComponent, HistogramComponent, HollowCandlestickChartComponent, KagiChartComponent, LineChartComponent, LollipopChartComponent, MapBubbleComponent, MapChoroplethComponent, MapLinePointComponent, MarimekkoChartComponent, NetworkGraphComponent, OHLCChartComponent, PackedBubbleChartComponent, ParallelCoordinatesComponent, ParetoChartComponent, PictorialChartComponent, PieChartComponent, PointFigureChartComponent, PolarAreaChartComponent, RadarChartComponent, RadialBarChartComponent, RenkoChartComponent, RidgelineChartComponent, SankeyChartComponent, ScatterPlotComponent, SlopeChartComponent, SparklineComponent, StreamgraphComponent, SunburstChartComponent, TiledWebMapComponent, TilemapComponent, TokenStreamingChartComponent, TransformerAttentionHeatmapComponent, TreeGraphComponent, TreemapChartComponent, VariablePieChartComponent, VariwideChartComponent, VectorPlotComponent, VennDiagramComponent, ViolinPlotComponent, WaterfallChartComponent, WindRoseChartComponent, WordCloudComponent, ZoomLevel } from 'ngx-core-components/charts';
|
|
4
|
+
export { AdjacencyMatrixComponent, AgenticCognitiveTopologyComponent, ArcDiagramComponent, AreaChartComponent, AreaRangeChartComponent, AreaSplineRangeChartComponent, BarChartComponent, BellCurveChartComponent, BiplotComponent, BoxPlotChartComponent, BubbleChartComponent, BulletChartComponent, CHART_COLORS, CalendarHeatmapComponent, CandlestickChartComponent, ChartBrushZoomComponent, ChartSkeletonComponent, ChordDiagramComponent, ColumnPyramidChartComponent, ColumnRangeChartComponent, ComboChartComponent, DependencyType, DependencyWheelComponent, DumbbellChartComponent, EmbeddingSpaceProjectionComponent, ErrorBarComponent, FlagsComponent, FlowmapComponent, FunnelChartComponent, GanttChartComponent, GanttScaleService, GaugeChartComponent, GeoHeatmapComponent, HLCChartComponent, HeatmapChartComponent, HeikinAshiChartComponent, HistogramComponent, HollowCandlestickChartComponent, KagiChartComponent, LineChartComponent, LollipopChartComponent, MapBubbleComponent, MapChoroplethComponent, MapLinePointComponent, MarimekkoChartComponent, MultiNeedleGaugeComponent, NestedDonutChartComponent, NetworkGraphComponent, OHLCChartComponent, OrgChartComponent, PackedBubbleChartComponent, ParallelCoordinatesComponent, ParetoChartComponent, PictorialChartComponent, PieChartComponent, PointFigureChartComponent, PolarAreaChartComponent, PyramidChartComponent, RadarChartComponent, RadialBarChartComponent, RangeBarChartComponent, RenkoChartComponent, RidgelineChartComponent, SankeyChartComponent, ScatterPlotComponent, SlopeChartComponent, SparklineComponent, StepLineChartComponent, StreamgraphComponent, SunburstChartComponent, TiledWebMapComponent, TilemapComponent, TimelineChartComponent, TokenStreamingChartComponent, TransformerAttentionHeatmapComponent, TreeGraphComponent, TreemapChartComponent, VariablePieChartComponent, VariwideChartComponent, VectorPlotComponent, VennDiagramComponent, ViolinPlotComponent, WaterfallChartComponent, WindRoseChartComponent, WordCloudComponent, ZoomLevel } from 'ngx-core-components/charts';
|
|
5
5
|
export { DataGridComponent, NgxGridCellTemplateDirective, NgxGridEditCellTemplateDirective, NgxGridFooterTemplateDirective, NgxGridHeaderTemplateDirective, PivotGridComponent } from 'ngx-core-components/grid';
|
|
6
|
-
export { CalendarComponent, ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective,
|
|
6
|
+
export { CalendarComponent, ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent } from 'ngx-core-components/views';
|
|
7
7
|
export { DialogContainerComponent, DialogService } from 'ngx-core-components/dialog';
|
|
8
8
|
export { ButtonComponent, ButtonGroupComponent, ChipComponent, ChipListComponent, DropDownButtonComponent, SpeedDialComponent, SplitButtonComponent } from 'ngx-core-components/buttons';
|
|
9
9
|
export { AccordionComponent, CardComponent, CarouselComponent, DashboardLayoutComponent, DrawerComponent, SplitterComponent, StepperComponent, TabComponent, TabStripComponent } from 'ngx-core-components/layout';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-core-components.mjs","sources":["../../../projects/ngx-core-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-core-components/src/lib/tooltip/popover.component.ts","../../../projects/ngx-core-components/src/public-api.ts","../../../projects/ngx-core-components/src/ngx-core-components.ts"],"sourcesContent":["import {\n Directive, input, signal, ElementRef, HostListener, inject,\n computed, effect, Renderer2\n} from '@angular/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n@Directive({\n selector: '[ngxTooltip]',\n standalone: true,\n})\nexport class TooltipDirective {\n ngxTooltip = input<string>('');\n tooltipPosition = input<TooltipPosition>('top');\n\n private el = inject(ElementRef);\n private renderer = inject(Renderer2);\n private tooltipEl: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n const text = this.ngxTooltip();\n if (!text) return;\n this.showTooltip(text);\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.hideTooltip();\n }\n\n private showTooltip(text: string): void {\n this.hideTooltip();\n const tip = this.renderer.createElement('div') as HTMLElement;\n tip.className = 'ngx-tooltip';\n tip.setAttribute('role', 'tooltip');\n tip.textContent = text;\n document.body.appendChild(tip);\n this.tooltipEl = tip;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const tipRect = tip.getBoundingClientRect();\n const pos = this.tooltipPosition();\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n const OFFSET = 8;\n let top = 0, left = 0;\n\n switch (pos) {\n case 'top':\n top = rect.top + scrollY - tipRect.height - OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'bottom':\n top = rect.bottom + scrollY + OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'left':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.left + scrollX - tipRect.width - OFFSET;\n break;\n case 'right':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.right + scrollX + OFFSET;\n break;\n }\n\n // Auto-flip if outside viewport\n if (top < 0) top = rect.bottom + scrollY + OFFSET;\n if (left < 0) left = 4;\n if (left + tipRect.width > window.innerWidth) left = window.innerWidth - tipRect.width - 4;\n\n tip.style.top = top + 'px';\n tip.style.left = left + 'px';\n tip.style.setProperty('--pos', pos);\n requestAnimationFrame(() => { if (tip) tip.classList.add('visible'); });\n }\n\n private hideTooltip(): void {\n if (this.tooltipEl) {\n this.tooltipEl.remove();\n this.tooltipEl = null;\n }\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal,\n HostListener, ElementRef, inject\n} from '@angular/core';\n\n@Component({\n selector: 'ngx-popover',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-popover-wrapper\">\n <!-- Trigger slot -->\n <div class=\"popover-trigger\" (click)=\"toggle()\">\n <ng-content select=\"[popoverTrigger]\"/>\n </div>\n\n <!-- Popup -->\n @if (isOpen()) {\n <div class=\"popover-panel\" [class]=\"'popover-' + position()\">\n @if (title()) {\n <div class=\"popover-header\">\n <span class=\"popover-title\">{{ title() }}</span>\n <button class=\"popover-close\" (click)=\"close()\">✕</button>\n </div>\n }\n <div class=\"popover-body\">\n <ng-content select=\"[popoverBody]\"/>\n </div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: inline-block;\n }\n .ngx-popover-wrapper { position: relative; display: inline-block; }\n .popover-trigger { cursor: pointer; }\n .popover-panel {\n position: absolute; z-index: 1000; min-width: 200px; max-width: 320px;\n background: var(--ngx-popover-bg, #fff); border: 1px solid var(--ngx-popover-border, #dee2e6);\n border-radius: var(--ngx-popover-radius, 6px); box-shadow: var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,0.12));\n animation: fadeIn 0.12s ease;\n }\n @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }\n .popover-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 14px 8px; border-bottom: 1px solid var(--ngx-popover-border, #dee2e6);\n }\n .popover-title { font-size: 14px; font-weight: 600; color: #212529; }\n .popover-close {\n background: none; border: none; cursor: pointer; font-size: 12px;\n color: #6c757d; padding: 2px 4px; border-radius: 3px;\n }\n .popover-close:hover { background: #f1f3f5; }\n .popover-body { padding: 12px 14px; font-size: 13px; color: #495057; }\n `]\n})\nexport class PopoverComponent {\n title = input<string>('');\n position = input<'top' | 'bottom' | 'left' | 'right'>('bottom');\n\n isOpen = signal(false);\n toggle(): void { this.isOpen.update(v => !v); }\n close(): void { this.isOpen.set(false); }\n\n private el = inject(ElementRef);\n\n @HostListener('document:click', ['$event'])\n onDocClick(e: MouseEvent): void {\n if (!this.el.nativeElement.contains(e.target)) this.isOpen.set(false);\n }\n}\n","/*\n * Public API Surface of ngx-core-components\n *\n * Components are organized into secondary entry points.\n * All exports are re-exported here for convenience/backward compatibility.\n */\n\n// ===== Tooltip & Popover (primary entry only) =====\nexport { TooltipDirective } from './lib/tooltip/tooltip.directive';\nexport type { TooltipPosition } from './lib/tooltip/tooltip.directive';\nexport { PopoverComponent } from './lib/tooltip/popover.component';\n\n// ===== Input Components (also available via ngx-core-components/inputs) =====\nexport { TextBoxComponent } from 'ngx-core-components/inputs';\nexport { CheckboxComponent } from 'ngx-core-components/inputs';\nexport { RadioGroupComponent } from 'ngx-core-components/inputs';\nexport type { RadioOption } from 'ngx-core-components/inputs';\nexport { DropdownComponent } from 'ngx-core-components/inputs';\nexport type { DropdownOption } from 'ngx-core-components/inputs';\nexport { MultiSelectComponent } from 'ngx-core-components/inputs';\nexport { AutocompleteComponent } from 'ngx-core-components/inputs';\nexport { DatePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Charts & Gantt (also available via ngx-core-components/charts) =====\nexport { BarChartComponent } from 'ngx-core-components/charts';\nexport { LineChartComponent } from 'ngx-core-components/charts';\nexport { PieChartComponent } from 'ngx-core-components/charts';\nexport { SparklineComponent } from 'ngx-core-components/charts';\nexport { GaugeChartComponent } from 'ngx-core-components/charts';\nexport type { GaugeThreshold } from 'ngx-core-components/charts';\nexport { RadarChartComponent } from 'ngx-core-components/charts';\nexport type { RadarSeries } from 'ngx-core-components/charts';\nexport { HeatmapChartComponent } from 'ngx-core-components/charts';\nexport { TreemapChartComponent } from 'ngx-core-components/charts';\nexport type { TreemapItem } from 'ngx-core-components/charts';\nexport { AreaChartComponent } from 'ngx-core-components/charts';\nexport { FunnelChartComponent } from 'ngx-core-components/charts';\nexport type { FunnelItem } from 'ngx-core-components/charts';\nexport type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } from 'ngx-core-components/charts';\nexport { ComboChartComponent } from 'ngx-core-components/charts';\nexport { ScatterPlotComponent } from 'ngx-core-components/charts';\nexport type { ScatterPoint } from 'ngx-core-components/charts';\nexport { BubbleChartComponent } from 'ngx-core-components/charts';\nexport type { BubblePoint } from 'ngx-core-components/charts';\nexport { SunburstChartComponent } from 'ngx-core-components/charts';\nexport type { SunburstNode } from 'ngx-core-components/charts';\nexport { WaterfallChartComponent } from 'ngx-core-components/charts';\nexport type { WaterfallItem } from 'ngx-core-components/charts';\nexport { BoxPlotChartComponent } from 'ngx-core-components/charts';\nexport type { BoxPlotItem } from 'ngx-core-components/charts';\nexport { RadialBarChartComponent } from 'ngx-core-components/charts';\nexport type { RadialBarItem } from 'ngx-core-components/charts';\nexport { CandlestickChartComponent } from 'ngx-core-components/charts';\nexport type { CandlestickItem } from 'ngx-core-components/charts';\nexport { PolarAreaChartComponent } from 'ngx-core-components/charts';\nexport { BulletChartComponent } from 'ngx-core-components/charts';\nexport { DumbbellChartComponent } from 'ngx-core-components/charts';\nexport type { DumbbellItem } from 'ngx-core-components/charts';\nexport { LollipopChartComponent } from 'ngx-core-components/charts';\nexport { SlopeChartComponent } from 'ngx-core-components/charts';\nexport type { SlopeDataPoint } from 'ngx-core-components/charts';\nexport { SankeyChartComponent } from 'ngx-core-components/charts';\nexport type { SankeyNode, SankeyLink } from 'ngx-core-components/charts';\nexport { ViolinPlotComponent } from 'ngx-core-components/charts';\nexport type { ViolinItem } from 'ngx-core-components/charts';\nexport { RidgelineChartComponent } from 'ngx-core-components/charts';\nexport type { RidgelineItem } from 'ngx-core-components/charts';\nexport { ParetoChartComponent } from 'ngx-core-components/charts';\nexport type { ParetoItem } from 'ngx-core-components/charts';\nexport { MarimekkoChartComponent } from 'ngx-core-components/charts';\nexport type { MarimekkoItem, MarimekkoSegment } from 'ngx-core-components/charts';\nexport { ChordDiagramComponent } from 'ngx-core-components/charts';\nexport type { ChordItem } from 'ngx-core-components/charts';\nexport { DependencyWheelComponent } from 'ngx-core-components/charts';\nexport type { DependencyItem } from 'ngx-core-components/charts';\nexport { AdjacencyMatrixComponent } from 'ngx-core-components/charts';\nexport type { MatrixItem } from 'ngx-core-components/charts';\nexport { BiplotComponent } from 'ngx-core-components/charts';\nexport type { BiplotPoint, BiplotVector } from 'ngx-core-components/charts';\nexport { RenkoChartComponent } from 'ngx-core-components/charts';\nexport type { RenkoBrick } from 'ngx-core-components/charts';\nexport { KagiChartComponent } from 'ngx-core-components/charts';\nexport type { KagiSegment } from 'ngx-core-components/charts';\nexport { PointFigureChartComponent } from 'ngx-core-components/charts';\nexport type { PFCell } from 'ngx-core-components/charts';\nexport { WindRoseChartComponent } from 'ngx-core-components/charts';\nexport type { WindRoseItem, WindRoseSpeedBin } from 'ngx-core-components/charts';\n\n// Batch 1: Line, Area, Spline & Bar Ranges\nexport { AreaRangeChartComponent } from 'ngx-core-components/charts';\nexport type { AreaRangeSeries, AreaRangeDataPoint } from 'ngx-core-components/charts';\nexport { AreaSplineRangeChartComponent } from 'ngx-core-components/charts';\nexport { StreamgraphComponent } from 'ngx-core-components/charts';\nexport type { StreamgraphSeries } from 'ngx-core-components/charts';\nexport { ColumnRangeChartComponent } from 'ngx-core-components/charts';\nexport type { ColumnRangeSeries, ColumnRangePoint } from 'ngx-core-components/charts';\nexport { ColumnPyramidChartComponent } from 'ngx-core-components/charts';\nexport type { ColumnPyramidSeries } from 'ngx-core-components/charts';\nexport { VariwideChartComponent } from 'ngx-core-components/charts';\nexport type { VariwidePoint } from 'ngx-core-components/charts';\n\n// Batch 2: Pie, Bubbles & Network Diagrams\nexport { VariablePieChartComponent } from 'ngx-core-components/charts';\nexport type { VariablePieDataPoint } from 'ngx-core-components/charts';\nexport { PackedBubbleChartComponent } from 'ngx-core-components/charts';\nexport type { BubbleNode } from 'ngx-core-components/charts';\nexport { NetworkGraphComponent } from 'ngx-core-components/charts';\nexport type { NetworkNode, NetworkLink } from 'ngx-core-components/charts';\nexport { TreeGraphComponent } from 'ngx-core-components/charts';\nexport type { TreeGraphNode } from 'ngx-core-components/charts';\nexport { ArcDiagramComponent } from 'ngx-core-components/charts';\nexport type { ArcNode, ArcLink } from 'ngx-core-components/charts';\n\n// Batch 3: Statistical & Advanced Visualizations\nexport { HistogramComponent } from 'ngx-core-components/charts';\nexport type { HistogramBin } from 'ngx-core-components/charts';\nexport { BellCurveChartComponent } from 'ngx-core-components/charts';\nexport type { CurvePoint } from 'ngx-core-components/charts';\nexport { ErrorBarComponent } from 'ngx-core-components/charts';\nexport type { ErrorBarPoint } from 'ngx-core-components/charts';\nexport { TilemapComponent } from 'ngx-core-components/charts';\nexport type { TileItem } from 'ngx-core-components/charts';\nexport { VennDiagramComponent } from 'ngx-core-components/charts';\nexport type { VennRegion } from 'ngx-core-components/charts';\nexport { ParallelCoordinatesComponent } from 'ngx-core-components/charts';\nexport type { ParallelLine, AxisDimension } from 'ngx-core-components/charts';\nexport { WordCloudComponent } from 'ngx-core-components/charts';\nexport type { WordItem } from 'ngx-core-components/charts';\nexport { PictorialChartComponent } from 'ngx-core-components/charts';\nexport type { PictorialIcon } from 'ngx-core-components/charts';\nexport { VectorPlotComponent } from 'ngx-core-components/charts';\nexport type { VectorItem } from 'ngx-core-components/charts';\n\n// Batch 4: Financial Indicators & Stock Options\nexport { OHLCChartComponent } from 'ngx-core-components/charts';\nexport type { OHLCItem } from 'ngx-core-components/charts';\nexport { HLCChartComponent } from 'ngx-core-components/charts';\nexport type { HLCItem } from 'ngx-core-components/charts';\nexport { HollowCandlestickChartComponent } from 'ngx-core-components/charts';\nexport { HeikinAshiChartComponent } from 'ngx-core-components/charts';\nexport { FlagsComponent } from 'ngx-core-components/charts';\nexport type { ChartFlag } from 'ngx-core-components/charts';\n\n// Batch 5: Geographical Maps\nexport { MapChoroplethComponent } from 'ngx-core-components/charts';\nexport type { ChoroplethDataPoint } from 'ngx-core-components/charts';\nexport { MapBubbleComponent } from 'ngx-core-components/charts';\nexport type { MapBubblePoint } from 'ngx-core-components/charts';\nexport { MapLinePointComponent } from 'ngx-core-components/charts';\nexport type { MapPoint, MapLine } from 'ngx-core-components/charts';\nexport { FlowmapComponent } from 'ngx-core-components/charts';\nexport type { FlowNode, FlowConnection } from 'ngx-core-components/charts';\nexport { GeoHeatmapComponent } from 'ngx-core-components/charts';\nexport type { GeoHeatmapPoint } from 'ngx-core-components/charts';\nexport { TiledWebMapComponent } from 'ngx-core-components/charts';\nexport type { MapMarker } from 'ngx-core-components/charts';\n\n\nexport { GanttChartComponent } from 'ngx-core-components/charts';\n\nexport type { FlatRow } from 'ngx-core-components/charts';\nexport { GanttScaleService } from 'ngx-core-components/charts';\n// Gantt model types\nexport type {\n GanttTask,\n GanttDependency,\n GanttConfig,\n GanttColumnDef,\n GanttTaskChangeEvent,\n GanttTaskClickEvent,\n GanttDependencyClickEvent,\n GanttScrollEvent,\n GanttGroup,\n GanttBaselineItem,\n GanttDragEvent,\n GanttLinkDragEvent,\n GanttLineClickEvent,\n GanttBarClickEvent,\n GanttSelectedEvent,\n GanttTableDragStartedEvent,\n GanttTableDragEndedEvent,\n GanttTableDragDroppedEvent,\n GanttLoadOnScrollEvent,\n GanttVirtualScrolledIndexChangeEvent,\n GanttViewChangeEvent,\n GanttExpandChangeEvent,\n GanttTooltipContext,\n} from 'ngx-core-components/charts';\nexport { ZoomLevel, DependencyType } from 'ngx-core-components/charts';\n\n// AI-Native Chart Types\nexport { TokenStreamingChartComponent } from 'ngx-core-components/charts';\nexport { EmbeddingSpaceProjectionComponent } from 'ngx-core-components/charts';\nexport type { EmbeddingPoint } from 'ngx-core-components/charts';\nexport { AgenticCognitiveTopologyComponent } from 'ngx-core-components/charts';\nexport type { TopologyNode, TopologyLink } from 'ngx-core-components/charts';\nexport { TransformerAttentionHeatmapComponent } from 'ngx-core-components/charts';\n\n// ===== Data Grid (also available via ngx-core-components/grid) =====\nexport {\n DataGridComponent,\n PivotGridComponent,\n NgxGridCellTemplateDirective,\n NgxGridEditCellTemplateDirective,\n NgxGridHeaderTemplateDirective,\n NgxGridFooterTemplateDirective,\n} from 'ngx-core-components/grid';\nexport type {\n GridColumnDef,\n GridFilterState,\n GridGroupState,\n GridGroupResult,\n GridSortState,\n GridPageChangeEvent,\n GridSortChangeEvent,\n GridFilterChangeEvent,\n GridGroupChangeEvent,\n GridDataStateChangeEvent,\n GridRowClickEvent,\n GridRowUpdateEvent,\n GridHeaderTemplateContext,\n GridCellTemplateContext,\n GridRowTemplateContext,\n GridDetailTemplateContext,\n GridFooterTemplateContext,\n PivotValueDef,\n} from 'ngx-core-components/grid';\n\n// ===== Hierarchical Views (also available via ngx-core-components/views) =====\nexport { TreeViewComponent } from 'ngx-core-components/views';\nexport type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';\nexport { ListViewComponent } from 'ngx-core-components/views';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n ListViewPageChangeEvent,\n} from 'ngx-core-components/views';\nexport { KanbanComponent } from 'ngx-core-components/views';\nexport type {\n KanbanCard,\n KanbanColumn,\n KanbanSwimlane,\n KanbanCardMoveEvent,\n KanbanMoveRejectedEvent,\n} from 'ngx-core-components/views';\nexport { TimelineComponent, NgxTimelineMarkerTemplateDirective, NgxTimelineCardTemplateDirective } from 'ngx-core-components/views';\nexport type { TimelineItem } from 'ngx-core-components/views';\nexport { SchedulerComponent } from 'ngx-core-components/views';\nexport type { SchedulerEvent, SchedulerRecurrence, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from 'ngx-core-components/views';\nexport { VirtualListComponent } from 'ngx-core-components/views';\nexport type { VirtualListItem, VirtualListItemClickEvent } from 'ngx-core-components/views';\nexport { ImageCompareComponent } from 'ngx-core-components/views';\nexport { KeyValueListComponent } from 'ngx-core-components/views';\nexport type { KeyValueItem } from 'ngx-core-components/views';\nexport { OrgChartComponent, JsonViewerComponent, CalendarComponent } from 'ngx-core-components/views';\nexport type { OrgChartNode, CalendarEvent, CalendarCell } from 'ngx-core-components/views';\n\n\n\n\n// ===== Dialog (also available via ngx-core-components/dialog) =====\nexport { DialogService } from 'ngx-core-components/dialog';\nexport type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';\nexport { DialogContainerComponent } from 'ngx-core-components/dialog';\n\nexport {\n ButtonComponent,\n ButtonGroupComponent,\n ChipComponent,\n ChipListComponent,\n SplitButtonComponent,\n DropDownButtonComponent,\n SpeedDialComponent,\n} from 'ngx-core-components/buttons';\nexport type {\n ButtonVariant,\n ButtonSize,\n ButtonShape,\n ChipVariant,\n SplitButtonItem,\n DropDownButtonItem,\n SpeedDialItem,\n} from 'ngx-core-components/buttons';\n\n// ===== Layout (also available via ngx-core-components/layout) =====\nexport {\n CardComponent,\n TabStripComponent,\n TabComponent,\n AccordionComponent,\n StepperComponent,\n SplitterComponent,\n DashboardLayoutComponent,\n CarouselComponent,\n DrawerComponent,\n} from 'ngx-core-components/layout';\nexport type {\n CardVariant,\n AccordionItem,\n StepperStep,\n DashboardItem,\n DashboardLayoutChangeEvent,\n DashboardPanelActionEvent,\n} from 'ngx-core-components/layout';\n\n// ===== Feedback (also available via ngx-core-components/feedback) =====\nexport {\n BadgeComponent,\n ProgressBarComponent,\n SkeletonComponent,\n NotificationService,\n NotificationContainerComponent,\n AvatarComponent,\n AvatarGroupComponent,\n StatCardComponent,\n CountdownComponent,\n EmptyStateComponent,\n} from 'ngx-core-components/feedback';\nexport type {\n BadgeVariant,\n BadgePosition,\n ProgressVariant,\n SkeletonShape,\n NotificationOptions,\n NotificationType,\n NotificationPosition,\n AvatarSize,\n AvatarShape,\n AvatarStatus,\n AvatarItem,\n StatCardVariant,\n CountdownVariant,\n} from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport {\n BreadcrumbComponent,\n MenuComponent,\n CommandPaletteComponent,\n ContextMenuComponent,\n BackToTopComponent,\n} from 'ngx-core-components/navigation';\nexport type {\n BreadcrumbItem,\n MenuItem,\n CommandItem,\n ContextMenuItem,\n} from 'ngx-core-components/navigation';\n\n// ===== Additional Inputs (also available via ngx-core-components/inputs) =====\nexport {\n SliderComponent,\n SwitchComponent,\n RatingComponent,\n NumericTextBoxComponent,\n TextareaComponent,\n ColorPickerComponent,\n TimePickerComponent,\n DateRangePickerComponent,\n FileUploadComponent,\n TagInputComponent,\n FilePreviewComponent,\n SegmentedControlComponent,\n FormBuilderComponent,\n FormDesignerComponent,\n SignaturePadComponent,\n} from 'ngx-core-components/inputs';\nexport type {\n UploadFileItem,\n PreviewFileItem,\n SegmentedOption,\n FormBuilderField,\n FormBuilderOption,\n} from 'ngx-core-components/inputs';\n\n// ===== Barcodes (also available via ngx-core-components/barcodes) =====\nexport { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';\n\n// ===== AI & Agentic Components (also available via ngx-core-components/ai) =====\nexport { AIChatComponent } from 'ngx-core-components/ai';\nexport type {\n AIMessage,\n AgentStep,\n AICard,\n AICardAction,\n QuickReply,\n} from 'ngx-core-components/ai';\nexport { AIChatWidgetComponent } from 'ngx-core-components/ai';\nexport { AIPromptEditorComponent } from 'ngx-core-components/ai';\nexport { NgxWebLlmService, AIFormCopilotComponent } from 'ngx-core-components/ai';\nexport type { WebLlmMessage } from 'ngx-core-components/ai';\n\n// ===== i18n =====\nexport { NGX_CORE_I18N, DEFAULT_EN_I18N, provideNgxI18n } from 'ngx-core-components/i18n';\nexport type { NgxCoreI18n } from 'ngx-core-components/i18n';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAWa,gBAAgB,CAAA;AAC3B,IAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAkB,KAAK,CAAC;AAEvC,IAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AACvB,IAAA,QA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AA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EArDjB;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA+BU,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAzD5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,cACX,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA;8BA0CD,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;;ACxE5C;;;;;AAKG;AAEH;;ACPA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-core-components.mjs","sources":["../../../projects/ngx-core-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-core-components/src/lib/tooltip/popover.component.ts","../../../projects/ngx-core-components/src/public-api.ts","../../../projects/ngx-core-components/src/ngx-core-components.ts"],"sourcesContent":["import {\n Directive, input, signal, ElementRef, HostListener, inject,\n computed, effect, Renderer2\n} from '@angular/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n@Directive({\n selector: '[ngxTooltip]',\n standalone: true,\n})\nexport class TooltipDirective {\n ngxTooltip = input<string>('');\n tooltipPosition = input<TooltipPosition>('top');\n\n private el = inject(ElementRef);\n private renderer = inject(Renderer2);\n private tooltipEl: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n const text = this.ngxTooltip();\n if (!text) return;\n this.showTooltip(text);\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.hideTooltip();\n }\n\n private showTooltip(text: string): void {\n this.hideTooltip();\n const tip = this.renderer.createElement('div') as HTMLElement;\n tip.className = 'ngx-tooltip';\n tip.setAttribute('role', 'tooltip');\n tip.textContent = text;\n document.body.appendChild(tip);\n this.tooltipEl = tip;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const tipRect = tip.getBoundingClientRect();\n const pos = this.tooltipPosition();\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n const OFFSET = 8;\n let top = 0, left = 0;\n\n switch (pos) {\n case 'top':\n top = rect.top + scrollY - tipRect.height - OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'bottom':\n top = rect.bottom + scrollY + OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'left':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.left + scrollX - tipRect.width - OFFSET;\n break;\n case 'right':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.right + scrollX + OFFSET;\n break;\n }\n\n // Auto-flip if outside viewport\n if (top < 0) top = rect.bottom + scrollY + OFFSET;\n if (left < 0) left = 4;\n if (left + tipRect.width > window.innerWidth) left = window.innerWidth - tipRect.width - 4;\n\n tip.style.top = top + 'px';\n tip.style.left = left + 'px';\n tip.style.setProperty('--pos', pos);\n requestAnimationFrame(() => { if (tip) tip.classList.add('visible'); });\n }\n\n private hideTooltip(): void {\n if (this.tooltipEl) {\n this.tooltipEl.remove();\n this.tooltipEl = null;\n }\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal,\n HostListener, ElementRef, inject\n} from '@angular/core';\n\n@Component({\n selector: 'ngx-popover',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-popover-wrapper\">\n <!-- Trigger slot -->\n <div class=\"popover-trigger\" (click)=\"toggle()\">\n <ng-content select=\"[popoverTrigger]\"/>\n </div>\n\n <!-- Popup -->\n @if (isOpen()) {\n <div class=\"popover-panel\" [class]=\"'popover-' + position()\">\n @if (title()) {\n <div class=\"popover-header\">\n <span class=\"popover-title\">{{ title() }}</span>\n <button class=\"popover-close\" (click)=\"close()\">✕</button>\n </div>\n }\n <div class=\"popover-body\">\n <ng-content select=\"[popoverBody]\"/>\n </div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: inline-block;\n }\n .ngx-popover-wrapper { position: relative; display: inline-block; }\n .popover-trigger { cursor: pointer; }\n .popover-panel {\n position: absolute; z-index: 1000; min-width: 200px; max-width: 320px;\n background: var(--ngx-popover-bg, #fff); border: 1px solid var(--ngx-popover-border, #dee2e6);\n border-radius: var(--ngx-popover-radius, 6px); box-shadow: var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,0.12));\n animation: fadeIn 0.12s ease;\n }\n @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }\n .popover-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 14px 8px; border-bottom: 1px solid var(--ngx-popover-border, #dee2e6);\n }\n .popover-title { font-size: 14px; font-weight: 600; color: #212529; }\n .popover-close {\n background: none; border: none; cursor: pointer; font-size: 12px;\n color: #6c757d; padding: 2px 4px; border-radius: 3px;\n }\n .popover-close:hover { background: #f1f3f5; }\n .popover-body { padding: 12px 14px; font-size: 13px; color: #495057; }\n `]\n})\nexport class PopoverComponent {\n title = input<string>('');\n position = input<'top' | 'bottom' | 'left' | 'right'>('bottom');\n\n isOpen = signal(false);\n toggle(): void { this.isOpen.update(v => !v); }\n close(): void { this.isOpen.set(false); }\n\n private el = inject(ElementRef);\n\n @HostListener('document:click', ['$event'])\n onDocClick(e: MouseEvent): void {\n if (!this.el.nativeElement.contains(e.target)) this.isOpen.set(false);\n }\n}\n","/*\n * Public API Surface of ngx-core-components\n *\n * Components are organized into secondary entry points.\n * All exports are re-exported here for convenience/backward compatibility.\n */\n\n// ===== Tooltip & Popover (primary entry only) =====\nexport { TooltipDirective } from './lib/tooltip/tooltip.directive';\nexport type { TooltipPosition } from './lib/tooltip/tooltip.directive';\nexport { PopoverComponent } from './lib/tooltip/popover.component';\n\n// ===== Input Components (also available via ngx-core-components/inputs) =====\nexport { TextBoxComponent } from 'ngx-core-components/inputs';\nexport { CheckboxComponent } from 'ngx-core-components/inputs';\nexport { RadioGroupComponent } from 'ngx-core-components/inputs';\nexport type { RadioOption } from 'ngx-core-components/inputs';\nexport { DropdownComponent } from 'ngx-core-components/inputs';\nexport type { DropdownOption } from 'ngx-core-components/inputs';\nexport { MultiSelectComponent } from 'ngx-core-components/inputs';\nexport { AutocompleteComponent } from 'ngx-core-components/inputs';\nexport { DatePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Charts & Gantt (also available via ngx-core-components/charts) =====\nexport { BarChartComponent } from 'ngx-core-components/charts';\nexport { LineChartComponent } from 'ngx-core-components/charts';\nexport { PieChartComponent } from 'ngx-core-components/charts';\nexport { SparklineComponent } from 'ngx-core-components/charts';\nexport { GaugeChartComponent } from 'ngx-core-components/charts';\nexport type { GaugeThreshold } from 'ngx-core-components/charts';\nexport { RadarChartComponent } from 'ngx-core-components/charts';\nexport type { RadarSeries } from 'ngx-core-components/charts';\nexport { HeatmapChartComponent } from 'ngx-core-components/charts';\nexport { TreemapChartComponent } from 'ngx-core-components/charts';\nexport type { TreemapItem } from 'ngx-core-components/charts';\nexport { AreaChartComponent } from 'ngx-core-components/charts';\nexport { FunnelChartComponent } from 'ngx-core-components/charts';\nexport type { FunnelItem } from 'ngx-core-components/charts';\nexport type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } from 'ngx-core-components/charts';\nexport { ComboChartComponent } from 'ngx-core-components/charts';\nexport { ScatterPlotComponent } from 'ngx-core-components/charts';\nexport type { ScatterPoint } from 'ngx-core-components/charts';\nexport { BubbleChartComponent } from 'ngx-core-components/charts';\nexport type { BubblePoint } from 'ngx-core-components/charts';\nexport { SunburstChartComponent } from 'ngx-core-components/charts';\nexport type { SunburstNode } from 'ngx-core-components/charts';\nexport { WaterfallChartComponent } from 'ngx-core-components/charts';\nexport type { WaterfallItem } from 'ngx-core-components/charts';\nexport { BoxPlotChartComponent } from 'ngx-core-components/charts';\nexport type { BoxPlotItem } from 'ngx-core-components/charts';\nexport { RadialBarChartComponent } from 'ngx-core-components/charts';\nexport type { RadialBarItem } from 'ngx-core-components/charts';\nexport { CandlestickChartComponent } from 'ngx-core-components/charts';\nexport type { CandlestickItem } from 'ngx-core-components/charts';\nexport { PolarAreaChartComponent } from 'ngx-core-components/charts';\nexport { BulletChartComponent } from 'ngx-core-components/charts';\nexport { DumbbellChartComponent } from 'ngx-core-components/charts';\nexport type { DumbbellItem } from 'ngx-core-components/charts';\nexport { LollipopChartComponent } from 'ngx-core-components/charts';\nexport { SlopeChartComponent } from 'ngx-core-components/charts';\nexport type { SlopeDataPoint } from 'ngx-core-components/charts';\nexport { SankeyChartComponent } from 'ngx-core-components/charts';\nexport type { SankeyNode, SankeyLink } from 'ngx-core-components/charts';\nexport { ViolinPlotComponent } from 'ngx-core-components/charts';\nexport type { ViolinItem } from 'ngx-core-components/charts';\nexport { RidgelineChartComponent } from 'ngx-core-components/charts';\nexport type { RidgelineItem } from 'ngx-core-components/charts';\nexport { ParetoChartComponent } from 'ngx-core-components/charts';\nexport type { ParetoItem } from 'ngx-core-components/charts';\nexport { MarimekkoChartComponent } from 'ngx-core-components/charts';\nexport type { MarimekkoItem, MarimekkoSegment } from 'ngx-core-components/charts';\nexport { ChordDiagramComponent } from 'ngx-core-components/charts';\nexport type { ChordItem } from 'ngx-core-components/charts';\nexport { DependencyWheelComponent } from 'ngx-core-components/charts';\nexport type { DependencyItem } from 'ngx-core-components/charts';\nexport { AdjacencyMatrixComponent } from 'ngx-core-components/charts';\nexport type { MatrixItem } from 'ngx-core-components/charts';\nexport { BiplotComponent } from 'ngx-core-components/charts';\nexport type { BiplotPoint, BiplotVector } from 'ngx-core-components/charts';\nexport { RenkoChartComponent } from 'ngx-core-components/charts';\nexport type { RenkoBrick } from 'ngx-core-components/charts';\nexport { KagiChartComponent } from 'ngx-core-components/charts';\nexport type { KagiSegment } from 'ngx-core-components/charts';\nexport { PointFigureChartComponent } from 'ngx-core-components/charts';\nexport type { PFCell } from 'ngx-core-components/charts';\nexport { WindRoseChartComponent } from 'ngx-core-components/charts';\nexport type { WindRoseItem, WindRoseSpeedBin } from 'ngx-core-components/charts';\n\n// Batch 1: Line, Area, Spline & Bar Ranges\nexport { AreaRangeChartComponent } from 'ngx-core-components/charts';\nexport type { AreaRangeSeries, AreaRangeDataPoint } from 'ngx-core-components/charts';\nexport { AreaSplineRangeChartComponent } from 'ngx-core-components/charts';\nexport { StreamgraphComponent } from 'ngx-core-components/charts';\nexport type { StreamgraphSeries } from 'ngx-core-components/charts';\nexport { ColumnRangeChartComponent } from 'ngx-core-components/charts';\nexport type { ColumnRangeSeries, ColumnRangePoint } from 'ngx-core-components/charts';\nexport { ColumnPyramidChartComponent } from 'ngx-core-components/charts';\nexport type { ColumnPyramidSeries } from 'ngx-core-components/charts';\nexport { VariwideChartComponent } from 'ngx-core-components/charts';\nexport type { VariwidePoint } from 'ngx-core-components/charts';\n\n// Batch 2: Pie, Bubbles & Network Diagrams\nexport { VariablePieChartComponent } from 'ngx-core-components/charts';\nexport type { VariablePieDataPoint } from 'ngx-core-components/charts';\nexport { PackedBubbleChartComponent } from 'ngx-core-components/charts';\nexport type { BubbleNode } from 'ngx-core-components/charts';\nexport { NetworkGraphComponent } from 'ngx-core-components/charts';\nexport type { NetworkNode, NetworkLink } from 'ngx-core-components/charts';\nexport { TreeGraphComponent } from 'ngx-core-components/charts';\nexport type { TreeGraphNode } from 'ngx-core-components/charts';\nexport { ArcDiagramComponent } from 'ngx-core-components/charts';\nexport type { ArcNode, ArcLink } from 'ngx-core-components/charts';\n\n// Batch 3: Statistical & Advanced Visualizations\nexport { HistogramComponent } from 'ngx-core-components/charts';\nexport type { HistogramBin } from 'ngx-core-components/charts';\nexport { BellCurveChartComponent } from 'ngx-core-components/charts';\nexport type { CurvePoint } from 'ngx-core-components/charts';\nexport { ErrorBarComponent } from 'ngx-core-components/charts';\nexport type { ErrorBarPoint } from 'ngx-core-components/charts';\nexport { TilemapComponent } from 'ngx-core-components/charts';\nexport type { TileItem } from 'ngx-core-components/charts';\nexport { VennDiagramComponent } from 'ngx-core-components/charts';\nexport type { VennRegion } from 'ngx-core-components/charts';\nexport { ParallelCoordinatesComponent } from 'ngx-core-components/charts';\nexport type { ParallelLine, AxisDimension } from 'ngx-core-components/charts';\nexport { WordCloudComponent } from 'ngx-core-components/charts';\nexport type { WordItem } from 'ngx-core-components/charts';\nexport { PictorialChartComponent } from 'ngx-core-components/charts';\nexport type { PictorialIcon } from 'ngx-core-components/charts';\nexport { VectorPlotComponent } from 'ngx-core-components/charts';\nexport type { VectorItem } from 'ngx-core-components/charts';\n\n// Batch 4: Financial Indicators & Stock Options\nexport { OHLCChartComponent } from 'ngx-core-components/charts';\nexport type { OHLCItem } from 'ngx-core-components/charts';\nexport { HLCChartComponent } from 'ngx-core-components/charts';\nexport type { HLCItem } from 'ngx-core-components/charts';\nexport { HollowCandlestickChartComponent } from 'ngx-core-components/charts';\nexport { HeikinAshiChartComponent } from 'ngx-core-components/charts';\nexport { FlagsComponent } from 'ngx-core-components/charts';\nexport type { ChartFlag } from 'ngx-core-components/charts';\n\n// Batch 5: Geographical Maps\nexport { MapChoroplethComponent } from 'ngx-core-components/charts';\nexport type { ChoroplethDataPoint } from 'ngx-core-components/charts';\nexport { MapBubbleComponent } from 'ngx-core-components/charts';\nexport type { MapBubblePoint } from 'ngx-core-components/charts';\nexport { MapLinePointComponent } from 'ngx-core-components/charts';\nexport type { MapPoint, MapLine } from 'ngx-core-components/charts';\nexport { FlowmapComponent } from 'ngx-core-components/charts';\nexport type { FlowNode, FlowConnection } from 'ngx-core-components/charts';\nexport { GeoHeatmapComponent } from 'ngx-core-components/charts';\nexport type { GeoHeatmapPoint } from 'ngx-core-components/charts';\nexport { TiledWebMapComponent } from 'ngx-core-components/charts';\nexport type { MapMarker } from 'ngx-core-components/charts';\n\n\nexport { GanttChartComponent } from 'ngx-core-components/charts';\n\nexport type { FlatRow } from 'ngx-core-components/charts';\nexport { GanttScaleService } from 'ngx-core-components/charts';\n// Gantt model types\nexport type {\n GanttTask,\n GanttDependency,\n GanttConfig,\n GanttColumnDef,\n GanttTaskChangeEvent,\n GanttTaskClickEvent,\n GanttDependencyClickEvent,\n GanttScrollEvent,\n GanttGroup,\n GanttBaselineItem,\n GanttDragEvent,\n GanttLinkDragEvent,\n GanttLineClickEvent,\n GanttBarClickEvent,\n GanttSelectedEvent,\n GanttTableDragStartedEvent,\n GanttTableDragEndedEvent,\n GanttTableDragDroppedEvent,\n GanttLoadOnScrollEvent,\n GanttVirtualScrolledIndexChangeEvent,\n GanttViewChangeEvent,\n GanttExpandChangeEvent,\n GanttTooltipContext,\n} from 'ngx-core-components/charts';\nexport { ZoomLevel, DependencyType } from 'ngx-core-components/charts';\n\n// AI-Native Chart Types\nexport { TokenStreamingChartComponent } from 'ngx-core-components/charts';\nexport { EmbeddingSpaceProjectionComponent } from 'ngx-core-components/charts';\nexport type { EmbeddingPoint } from 'ngx-core-components/charts';\nexport { AgenticCognitiveTopologyComponent } from 'ngx-core-components/charts';\nexport type { TopologyNode, TopologyLink } from 'ngx-core-components/charts';\nexport { TransformerAttentionHeatmapComponent } from 'ngx-core-components/charts';\n\n// New Chart Types & Shared Infrastructure\nexport { StepLineChartComponent } from 'ngx-core-components/charts';\nexport { CalendarHeatmapComponent } from 'ngx-core-components/charts';\nexport type { CalendarHeatmapData } from 'ngx-core-components/charts';\nexport { NestedDonutChartComponent } from 'ngx-core-components/charts';\nexport type { DonutRing } from 'ngx-core-components/charts';\nexport { PyramidChartComponent } from 'ngx-core-components/charts';\nexport type { PyramidItem } from 'ngx-core-components/charts';\nexport { RangeBarChartComponent } from 'ngx-core-components/charts';\nexport type { RangeBarItem } from 'ngx-core-components/charts';\nexport { TimelineChartComponent } from 'ngx-core-components/charts';\nexport type { TimelineEvent } from 'ngx-core-components/charts';\nexport { MultiNeedleGaugeComponent } from 'ngx-core-components/charts';\nexport type { MultiGaugeNeedle } from 'ngx-core-components/charts';\nexport { ChartBrushZoomComponent } from 'ngx-core-components/charts';\nexport { ChartSkeletonComponent } from 'ngx-core-components/charts';\nexport { OrgChartComponent } from 'ngx-core-components/charts';\nexport type { OrgNode } from 'ngx-core-components/charts';\n\n// ===== Data Grid (also available via ngx-core-components/grid) =====\nexport {\n DataGridComponent,\n PivotGridComponent,\n NgxGridCellTemplateDirective,\n NgxGridEditCellTemplateDirective,\n NgxGridHeaderTemplateDirective,\n NgxGridFooterTemplateDirective,\n} from 'ngx-core-components/grid';\nexport type {\n GridColumnDef,\n GridFilterState,\n GridGroupState,\n GridGroupResult,\n GridSortState,\n GridPageChangeEvent,\n GridSortChangeEvent,\n GridFilterChangeEvent,\n GridGroupChangeEvent,\n GridDataStateChangeEvent,\n GridRowClickEvent,\n GridRowUpdateEvent,\n GridHeaderTemplateContext,\n GridCellTemplateContext,\n GridRowTemplateContext,\n GridDetailTemplateContext,\n GridFooterTemplateContext,\n PivotValueDef,\n} from 'ngx-core-components/grid';\n\n// ===== Hierarchical Views (also available via ngx-core-components/views) =====\nexport { TreeViewComponent } from 'ngx-core-components/views';\nexport type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';\nexport { ListViewComponent } from 'ngx-core-components/views';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n ListViewPageChangeEvent,\n} from 'ngx-core-components/views';\nexport { KanbanComponent } from 'ngx-core-components/views';\nexport type {\n KanbanCard,\n KanbanColumn,\n KanbanSwimlane,\n KanbanCardMoveEvent,\n KanbanMoveRejectedEvent,\n} from 'ngx-core-components/views';\nexport { TimelineComponent, NgxTimelineMarkerTemplateDirective, NgxTimelineCardTemplateDirective } from 'ngx-core-components/views';\nexport type { TimelineItem } from 'ngx-core-components/views';\nexport { SchedulerComponent } from 'ngx-core-components/views';\nexport type { SchedulerEvent, SchedulerRecurrence, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from 'ngx-core-components/views';\nexport { VirtualListComponent } from 'ngx-core-components/views';\nexport type { VirtualListItem, VirtualListItemClickEvent } from 'ngx-core-components/views';\nexport { ImageCompareComponent } from 'ngx-core-components/views';\nexport { KeyValueListComponent } from 'ngx-core-components/views';\nexport type { KeyValueItem } from 'ngx-core-components/views';\nexport { JsonViewerComponent, CalendarComponent } from 'ngx-core-components/views';\nexport type { OrgChartNode, CalendarEvent, CalendarCell } from 'ngx-core-components/views';\n\n\n\n\n// ===== Dialog (also available via ngx-core-components/dialog) =====\nexport { DialogService } from 'ngx-core-components/dialog';\nexport type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';\nexport { DialogContainerComponent } from 'ngx-core-components/dialog';\n\nexport {\n ButtonComponent,\n ButtonGroupComponent,\n ChipComponent,\n ChipListComponent,\n SplitButtonComponent,\n DropDownButtonComponent,\n SpeedDialComponent,\n} from 'ngx-core-components/buttons';\nexport type {\n ButtonVariant,\n ButtonSize,\n ButtonShape,\n ChipVariant,\n SplitButtonItem,\n DropDownButtonItem,\n SpeedDialItem,\n} from 'ngx-core-components/buttons';\n\n// ===== Layout (also available via ngx-core-components/layout) =====\nexport {\n CardComponent,\n TabStripComponent,\n TabComponent,\n AccordionComponent,\n StepperComponent,\n SplitterComponent,\n DashboardLayoutComponent,\n CarouselComponent,\n DrawerComponent,\n} from 'ngx-core-components/layout';\nexport type {\n CardVariant,\n AccordionItem,\n StepperStep,\n DashboardItem,\n DashboardLayoutChangeEvent,\n DashboardPanelActionEvent,\n} from 'ngx-core-components/layout';\n\n// ===== Feedback (also available via ngx-core-components/feedback) =====\nexport {\n BadgeComponent,\n ProgressBarComponent,\n SkeletonComponent,\n NotificationService,\n NotificationContainerComponent,\n AvatarComponent,\n AvatarGroupComponent,\n StatCardComponent,\n CountdownComponent,\n EmptyStateComponent,\n} from 'ngx-core-components/feedback';\nexport type {\n BadgeVariant,\n BadgePosition,\n ProgressVariant,\n SkeletonShape,\n NotificationOptions,\n NotificationType,\n NotificationPosition,\n AvatarSize,\n AvatarShape,\n AvatarStatus,\n AvatarItem,\n StatCardVariant,\n CountdownVariant,\n} from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport {\n BreadcrumbComponent,\n MenuComponent,\n CommandPaletteComponent,\n ContextMenuComponent,\n BackToTopComponent,\n} from 'ngx-core-components/navigation';\nexport type {\n BreadcrumbItem,\n MenuItem,\n CommandItem,\n ContextMenuItem,\n} from 'ngx-core-components/navigation';\n\n// ===== Additional Inputs (also available via ngx-core-components/inputs) =====\nexport {\n SliderComponent,\n SwitchComponent,\n RatingComponent,\n NumericTextBoxComponent,\n TextareaComponent,\n ColorPickerComponent,\n TimePickerComponent,\n DateRangePickerComponent,\n FileUploadComponent,\n TagInputComponent,\n FilePreviewComponent,\n SegmentedControlComponent,\n FormBuilderComponent,\n FormDesignerComponent,\n SignaturePadComponent,\n} from 'ngx-core-components/inputs';\nexport type {\n UploadFileItem,\n PreviewFileItem,\n SegmentedOption,\n FormBuilderField,\n FormBuilderOption,\n} from 'ngx-core-components/inputs';\n\n// ===== Barcodes (also available via ngx-core-components/barcodes) =====\nexport { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';\n\n// ===== AI & Agentic Components (also available via ngx-core-components/ai) =====\nexport { AIChatComponent } from 'ngx-core-components/ai';\nexport type {\n AIMessage,\n AgentStep,\n AICard,\n AICardAction,\n QuickReply,\n} from 'ngx-core-components/ai';\nexport { AIChatWidgetComponent } from 'ngx-core-components/ai';\nexport { AIPromptEditorComponent } from 'ngx-core-components/ai';\nexport { NgxWebLlmService, AIFormCopilotComponent } from 'ngx-core-components/ai';\nexport type { WebLlmMessage } from 'ngx-core-components/ai';\n\n// ===== i18n =====\nexport { NGX_CORE_I18N, DEFAULT_EN_I18N, provideNgxI18n } from 'ngx-core-components/i18n';\nexport type { NgxCoreI18n } from 'ngx-core-components/i18n';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAWa,gBAAgB,CAAA;AAC3B,IAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAkB,KAAK,CAAC;AAEvC,IAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AACvB,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,SAAS,GAAuB,IAAI;IAG5C,YAAY,GAAA;AACV,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;AAC9B,QAAA,IAAI,CAAC,IAAI;YAAE;AACX,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACxB;IAGA,YAAY,GAAA;QACV,IAAI,CAAC,WAAW,EAAE;IACpB;AAEQ,IAAA,WAAW,CAAC,IAAY,EAAA;QAC9B,IAAI,CAAC,WAAW,EAAE;QAClB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAgB;AAC7D,QAAA,GAAG,CAAC,SAAS,GAAG,aAAa;AAC7B,QAAA,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC;AACnC,QAAA,GAAG,CAAC,WAAW,GAAG,IAAI;AACtB,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,GAAG;QAEpB,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,qBAAqB,EAAE;AA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
|
|
4
|
+
* Enterprise Filter Builder component for the DataGrid.
|
|
5
|
+
* Provides a visual AND/OR condition tree builder UI for constructing
|
|
6
|
+
* complex filter expressions with nested groups.
|
|
7
|
+
*
|
|
8
|
+
* @selector ngx-grid-filter-builder
|
|
9
|
+
* @usage
|
|
10
|
+
* ```html
|
|
11
|
+
* <ngx-grid-filter-builder
|
|
12
|
+
* [columns]="filterableColumns()"
|
|
13
|
+
* [expression]="currentFilterExpression()"
|
|
14
|
+
* (expressionChange)="onFilterExpressionChange($event)"
|
|
15
|
+
* (close)="closeFilterBuilder()"
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class GridFilterBuilderComponent {
|
|
20
|
+
/** Available columns for filter field selection */
|
|
21
|
+
columns: import("@angular/core").InputSignal<GridColumnDef<Record<string, unknown>>[]>;
|
|
22
|
+
/** Current filter expression to edit */
|
|
23
|
+
expression: import("@angular/core").InputSignal<FilterExpression | null>;
|
|
24
|
+
/** Emitted when the user applies the filter */
|
|
25
|
+
expressionChange: import("@angular/core").OutputEmitterRef<FilterExpression | null>;
|
|
26
|
+
/** Emitted when the panel is closed */
|
|
27
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
28
|
+
/** Internal editable copy of the expression */
|
|
29
|
+
editExpression: import("@angular/core").WritableSignal<FilterExpression>;
|
|
30
|
+
/** Filterable columns for the dropdown */
|
|
31
|
+
filterableColumnsList: import("@angular/core").Signal<GridColumnDef<Record<string, unknown>>[]>;
|
|
32
|
+
constructor();
|
|
33
|
+
/** Type guard for filter groups */
|
|
34
|
+
isGroup(item: FilterCondition | FilterExpression): item is FilterExpression;
|
|
35
|
+
/** Cast helper for template */
|
|
36
|
+
asCondition(item: FilterCondition | FilterExpression): FilterCondition;
|
|
37
|
+
/** Check if an operator doesn't need a value input */
|
|
38
|
+
isUnaryOperator(type: string): boolean;
|
|
39
|
+
/** Get available operators based on column type */
|
|
40
|
+
getOperatorsForField(field: string): {
|
|
41
|
+
value: string;
|
|
42
|
+
label: string;
|
|
43
|
+
}[];
|
|
44
|
+
/** Set the AND/OR operator for a group at the given path */
|
|
45
|
+
setGroupOperator(path: number[], operator: 'AND' | 'OR'): void;
|
|
46
|
+
/** Add a new condition to the group at the given path */
|
|
47
|
+
addCondition(path: number[]): void;
|
|
48
|
+
/** Add a nested group to the group at the given path */
|
|
49
|
+
addGroup(path: number[]): void;
|
|
50
|
+
/** Remove an item (condition or group) at the given path */
|
|
51
|
+
removeItem(path: number[]): void;
|
|
52
|
+
/** Update condition field */
|
|
53
|
+
updateConditionField(path: number[], field: string): void;
|
|
54
|
+
/** Update condition operator type */
|
|
55
|
+
updateConditionType(path: number[], type: string): void;
|
|
56
|
+
/** Update condition value */
|
|
57
|
+
updateConditionValue(path: number[], value: string): void;
|
|
58
|
+
/** Update condition valueTo (for between) */
|
|
59
|
+
updateConditionValueTo(path: number[], value: string): void;
|
|
60
|
+
/** Apply the current filter expression */
|
|
61
|
+
applyFilter(): void;
|
|
62
|
+
/** Clear all conditions */
|
|
63
|
+
clearAll(): void;
|
|
64
|
+
private createEmptyGroup;
|
|
65
|
+
private getGroupAtPath;
|
|
66
|
+
private updateConditionProp;
|
|
67
|
+
private deepClone;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridFilterBuilderComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridFilterBuilderComponent, "ngx-grid-filter-builder", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "expression": { "alias": "expression"; "required": false; "isSignal": true; }; }, { "expressionChange": "expressionChange"; "close": "close"; }, never, never, true, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GridStatusBarAggregates } from '../../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Enterprise Status Bar component for the DataGrid.
|
|
5
|
+
* Displays live aggregation metrics (Count, Sum, Average, Min, Max)
|
|
6
|
+
* computed from the currently selected cell range.
|
|
7
|
+
*
|
|
8
|
+
* @selector ngx-grid-status-bar
|
|
9
|
+
* @usage
|
|
10
|
+
* ```html
|
|
11
|
+
* <ngx-grid-status-bar [aggregates]="selectionAggregates()" [visible]="showStatusBar()" />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class GridStatusBarComponent {
|
|
15
|
+
/** Aggregation metrics computed from selected cells */
|
|
16
|
+
aggregates: import("@angular/core").InputSignal<GridStatusBarAggregates>;
|
|
17
|
+
/** Whether the status bar should be visible */
|
|
18
|
+
visible: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
/** Whether there is an active selection to display */
|
|
20
|
+
hasSelection: import("@angular/core").Signal<boolean>;
|
|
21
|
+
/** Format a number for display with locale-aware separators */
|
|
22
|
+
formatNumber(value: number): string;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridStatusBarComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridStatusBarComponent, "ngx-grid-status-bar", never, { "aggregates": { "alias": "aggregates"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateRef, OnInit, DestroyRef, QueryList } from '@angular/core';
|
|
2
|
+
import type { TreeDataConfig, FilterExpression, GridStatusBarAggregates, GridInfiniteScrollEvent } from './models';
|
|
2
3
|
import type { GridColumnDef, GridSortState, GridFilterState, GridGroupState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridGroupResult, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, GridFooterTemplateContext } from './models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type { GridColumnDef, GridSortState, GridFilterState, GridGroupState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridGroupResult, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, GridFooterTemplateContext, } from './models';
|
|
@@ -53,6 +54,22 @@ export declare class DataGridComponent<T extends object = Record<string, unknown
|
|
|
53
54
|
currentIndex: number;
|
|
54
55
|
data: T[];
|
|
55
56
|
}>;
|
|
57
|
+
showStatusBar: import("@angular/core").InputSignal<boolean>;
|
|
58
|
+
showFilterBuilder: import("@angular/core").InputSignal<boolean>;
|
|
59
|
+
treeData: import("@angular/core").InputSignal<TreeDataConfig | null>;
|
|
60
|
+
pinnedTopRows: import("@angular/core").InputSignal<T[]>;
|
|
61
|
+
pinnedBottomRows: import("@angular/core").InputSignal<T[]>;
|
|
62
|
+
infiniteScroll: import("@angular/core").InputSignal<boolean>;
|
|
63
|
+
filterExpression: import("@angular/core").InputSignal<FilterExpression | null>;
|
|
64
|
+
filterExpressionChange: import("@angular/core").OutputEmitterRef<FilterExpression | null>;
|
|
65
|
+
infiniteScrollLoad: import("@angular/core").OutputEmitterRef<GridInfiniteScrollEvent>;
|
|
66
|
+
private xlsxExportService;
|
|
67
|
+
isFilterBuilderOpen: import("@angular/core").WritableSignal<boolean>;
|
|
68
|
+
internalFilterExpression: import("@angular/core").WritableSignal<FilterExpression | null>;
|
|
69
|
+
/** Live selection aggregates for status bar */
|
|
70
|
+
selectionAggregates: import("@angular/core").Signal<GridStatusBarAggregates>;
|
|
71
|
+
onFilterExpressionChange(expr: FilterExpression | null): void;
|
|
72
|
+
exportToXlsx(filename?: string): void;
|
|
56
73
|
/**
|
|
57
74
|
* Number of rows to render per page in paginated mode.
|
|
58
75
|
* @default 10
|
|
@@ -332,5 +349,5 @@ export declare class DataGridComponent<T extends object = Record<string, unknown
|
|
|
332
349
|
toggleGroupSelection(group: GridGroupResult<T>, event: Event): void;
|
|
333
350
|
getGroupAggregationValue(group: GridGroupResult<T>, col: GridColumnDef<T>): string;
|
|
334
351
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent<any>, never>;
|
|
335
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent<any>, "ngx-data-grid", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "multiSort": { "alias": "multiSort"; "required": false; "isSignal": true; }; "rowReorderable": { "alias": "rowReorderable"; "required": false; "isSignal": true; }; "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; "isSignal": true; }; "globalSearchPlaceholder": { "alias": "globalSearchPlaceholder"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "groupMode": { "alias": "groupMode"; "required": false; "isSignal": true; }; "pagingMode": { "alias": "pagingMode"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "groupedData": { "alias": "groupedData"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; "isSignal": true; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; "isSignal": true; }; "editCellTemplate": { "alias": "editCellTemplate"; "required": false; "isSignal": true; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; "isSignal": true; }; "detailRowTemplate": { "alias": "detailRowTemplate"; "required": false; "isSignal": true; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; "isSignal": true; }; "showColumnChooser": { "alias": "showColumnChooser"; "required": false; "isSignal": true; }; "cellSelection": { "alias": "cellSelection"; "required": false; "isSignal": true; }; "enableContextMenu": { "alias": "enableContextMenu"; "required": false; "isSignal": true; }; "keyboardNavigation": { "alias": "keyboardNavigation"; "required": false; "isSignal": true; }; "groupAggregations": { "alias": "groupAggregations"; "required": false; "isSignal": true; }; "showGroupingPanel": { "alias": "showGroupingPanel"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; }, { "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "selectionChange": "selectionChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "groupChange": "groupChange"; "pageChange": "pageChange"; "dataStateChange": "dataStateChange"; "rowUpdate": "rowUpdate"; "cellSelectionChange": "cellSelectionChange"; }, ["cellTemplates", "editCellTemplates", "headerTemplates", "footerTemplates"], never, true, never>;
|
|
352
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent<any>, "ngx-data-grid", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "multiSort": { "alias": "multiSort"; "required": false; "isSignal": true; }; "rowReorderable": { "alias": "rowReorderable"; "required": false; "isSignal": true; }; "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; "isSignal": true; }; "globalSearchPlaceholder": { "alias": "globalSearchPlaceholder"; "required": false; "isSignal": true; }; "showStatusBar": { "alias": "showStatusBar"; "required": false; "isSignal": true; }; "showFilterBuilder": { "alias": "showFilterBuilder"; "required": false; "isSignal": true; }; "treeData": { "alias": "treeData"; "required": false; "isSignal": true; }; "pinnedTopRows": { "alias": "pinnedTopRows"; "required": false; "isSignal": true; }; "pinnedBottomRows": { "alias": "pinnedBottomRows"; "required": false; "isSignal": true; }; "infiniteScroll": { "alias": "infiniteScroll"; "required": false; "isSignal": true; }; "filterExpression": { "alias": "filterExpression"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "groupMode": { "alias": "groupMode"; "required": false; "isSignal": true; }; "pagingMode": { "alias": "pagingMode"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "groupedData": { "alias": "groupedData"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; "isSignal": true; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; "isSignal": true; }; "editCellTemplate": { "alias": "editCellTemplate"; "required": false; "isSignal": true; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; "isSignal": true; }; "detailRowTemplate": { "alias": "detailRowTemplate"; "required": false; "isSignal": true; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; "isSignal": true; }; "showColumnChooser": { "alias": "showColumnChooser"; "required": false; "isSignal": true; }; "cellSelection": { "alias": "cellSelection"; "required": false; "isSignal": true; }; "enableContextMenu": { "alias": "enableContextMenu"; "required": false; "isSignal": true; }; "keyboardNavigation": { "alias": "keyboardNavigation"; "required": false; "isSignal": true; }; "groupAggregations": { "alias": "groupAggregations"; "required": false; "isSignal": true; }; "showGroupingPanel": { "alias": "showGroupingPanel"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; }, { "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "filterExpressionChange": "filterExpressionChange"; "infiniteScrollLoad": "infiniteScrollLoad"; "rowClick": "rowClick"; "selectionChange": "selectionChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "groupChange": "groupChange"; "pageChange": "pageChange"; "dataStateChange": "dataStateChange"; "rowUpdate": "rowUpdate"; "cellSelectionChange": "cellSelectionChange"; }, ["cellTemplates", "editCellTemplates", "headerTemplates", "footerTemplates"], never, true, never>;
|
|
336
353
|
}
|
|
@@ -17,6 +17,17 @@ export interface GridColumnDef<T = Record<string, unknown>> {
|
|
|
17
17
|
hidden?: boolean;
|
|
18
18
|
category?: string;
|
|
19
19
|
mergeRows?: boolean;
|
|
20
|
+
minWidth?: number;
|
|
21
|
+
maxWidth?: number;
|
|
22
|
+
columnType?: 'text' | 'number' | 'date' | 'boolean' | 'enum';
|
|
23
|
+
enumValues?: string[];
|
|
24
|
+
validators?: GridCellValidator[];
|
|
25
|
+
resizable?: boolean;
|
|
26
|
+
lockPosition?: boolean;
|
|
27
|
+
cellClass?: string | ((params: {
|
|
28
|
+
value: unknown;
|
|
29
|
+
row: T;
|
|
30
|
+
}) => string);
|
|
20
31
|
}
|
|
21
32
|
export interface GridSortState {
|
|
22
33
|
field: string;
|
|
@@ -67,6 +78,9 @@ export interface GridGroupResult<T = Record<string, unknown>> {
|
|
|
67
78
|
field: string;
|
|
68
79
|
count: number;
|
|
69
80
|
items: T[];
|
|
81
|
+
subGroups?: GridGroupResult<T>[];
|
|
82
|
+
level?: number;
|
|
83
|
+
aggregates?: Record<string, number | string>;
|
|
70
84
|
}
|
|
71
85
|
export interface GridHeaderTemplateContext<T = Record<string, unknown>> {
|
|
72
86
|
$implicit: GridColumnDef<T>;
|
|
@@ -103,3 +117,54 @@ export interface GridFooterTemplateContext<T = Record<string, unknown>> {
|
|
|
103
117
|
aggregationValue: string;
|
|
104
118
|
data: T[];
|
|
105
119
|
}
|
|
120
|
+
export interface GridCellValidator {
|
|
121
|
+
type: 'required' | 'min' | 'max' | 'minLength' | 'maxLength' | 'pattern' | 'custom';
|
|
122
|
+
value?: unknown;
|
|
123
|
+
message: string;
|
|
124
|
+
validate?: (value: unknown, row: Record<string, unknown>) => boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface TreeDataConfig {
|
|
127
|
+
childrenField: string;
|
|
128
|
+
hasChildrenField?: string;
|
|
129
|
+
levelField?: string;
|
|
130
|
+
expandedByDefault?: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface FilterExpression {
|
|
133
|
+
operator: 'AND' | 'OR';
|
|
134
|
+
conditions: (FilterCondition | FilterExpression)[];
|
|
135
|
+
}
|
|
136
|
+
export interface FilterCondition {
|
|
137
|
+
field: string;
|
|
138
|
+
type: 'contains' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'startsWith' | 'endsWith' | 'in' | 'before' | 'after' | 'isTrue' | 'isFalse' | 'isEmpty' | 'isNotEmpty';
|
|
139
|
+
value: unknown;
|
|
140
|
+
valueTo?: unknown;
|
|
141
|
+
}
|
|
142
|
+
export interface GridInfiniteScrollEvent {
|
|
143
|
+
startRow: number;
|
|
144
|
+
endRow: number;
|
|
145
|
+
sortModel: GridSortState[];
|
|
146
|
+
filterModel: GridFilterState[];
|
|
147
|
+
groupModel: GridGroupState[];
|
|
148
|
+
}
|
|
149
|
+
export interface GridCellValidationError {
|
|
150
|
+
field: string;
|
|
151
|
+
rowIndex: number;
|
|
152
|
+
message: string;
|
|
153
|
+
validator: GridCellValidator;
|
|
154
|
+
}
|
|
155
|
+
export interface GridEditChangeset<T = Record<string, unknown>> {
|
|
156
|
+
added: T[];
|
|
157
|
+
updated: {
|
|
158
|
+
previous: T;
|
|
159
|
+
current: T;
|
|
160
|
+
dirtyFields: string[];
|
|
161
|
+
}[];
|
|
162
|
+
deleted: T[];
|
|
163
|
+
}
|
|
164
|
+
export interface GridStatusBarAggregates {
|
|
165
|
+
count: number;
|
|
166
|
+
sum: number | null;
|
|
167
|
+
average: number | null;
|
|
168
|
+
min: number | null;
|
|
169
|
+
max: number | null;
|
|
170
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CellCoordinate, CellRange } from './grid-selection.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GridClipboardService {
|
|
4
|
+
/** Copy selected cell values as TSV to clipboard */
|
|
5
|
+
copyToClipboard<T extends Record<string, unknown>>(data: T[], ranges: CellRange[], fields: string[]): Promise<void>;
|
|
6
|
+
/** Cut selected cells (copy + clear values) */
|
|
7
|
+
cutToClipboard<T extends Record<string, unknown>>(data: T[], ranges: CellRange[], fields: string[]): Promise<{
|
|
8
|
+
clearedCells: {
|
|
9
|
+
rowIndex: number;
|
|
10
|
+
field: string;
|
|
11
|
+
previousValue: unknown;
|
|
12
|
+
}[];
|
|
13
|
+
}>;
|
|
14
|
+
/** Parse clipboard TSV/CSV text into a 2D cell matrix */
|
|
15
|
+
parseClipboardText(text: string): string[][];
|
|
16
|
+
/** Paste clipboard data into grid starting from a coordinate */
|
|
17
|
+
pasteFromClipboard<T extends Record<string, unknown>>(data: T[], startCoord: CellCoordinate, editableFields: string[]): Promise<{
|
|
18
|
+
pastedCells: {
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
field: string;
|
|
21
|
+
previousValue: unknown;
|
|
22
|
+
newValue: string;
|
|
23
|
+
}[];
|
|
24
|
+
}>;
|
|
25
|
+
/** Fill handle: extend values from source range into target range */
|
|
26
|
+
fillRange<T extends Record<string, unknown>>(data: T[], sourceRange: CellRange, targetRange: CellRange, fields: string[]): {
|
|
27
|
+
filledCells: {
|
|
28
|
+
rowIndex: number;
|
|
29
|
+
field: string;
|
|
30
|
+
previousValue: unknown;
|
|
31
|
+
newValue: unknown;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
/** Format a 2D array of values as TSV string */
|
|
35
|
+
formatAsTsv(values: unknown[][]): string;
|
|
36
|
+
/** Helper to get min/max row and col indices from ranges */
|
|
37
|
+
private getBounds;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridClipboardService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridClipboardService>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { GridCellValidator, GridCellValidationError, GridEditChangeset } from '../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface EditCommand {
|
|
4
|
+
type: 'cell-edit' | 'row-delete' | 'row-add' | 'cell-clear';
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
field?: string;
|
|
7
|
+
previousValue?: unknown;
|
|
8
|
+
newValue?: unknown;
|
|
9
|
+
row?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
export declare class GridEditService {
|
|
12
|
+
readonly isEditing: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
readonly editingRowIndex: import("@angular/core").WritableSignal<number | null>;
|
|
14
|
+
readonly draftValues: import("@angular/core").WritableSignal<Map<number, Map<string, unknown>>>;
|
|
15
|
+
readonly dirtyFields: import("@angular/core").WritableSignal<Map<number, Set<string>>>;
|
|
16
|
+
readonly deletedRows: import("@angular/core").WritableSignal<Set<number>>;
|
|
17
|
+
readonly validationErrors: import("@angular/core").WritableSignal<GridCellValidationError[]>;
|
|
18
|
+
private undoStack;
|
|
19
|
+
private redoStack;
|
|
20
|
+
readonly canUndo: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
readonly canRedo: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
+
readonly undoStackSize: import("@angular/core").WritableSignal<number>;
|
|
23
|
+
readonly maxUndoDepth = 50;
|
|
24
|
+
readonly hasDirtyChanges: import("@angular/core").Signal<boolean>;
|
|
25
|
+
beginEdit(rowIndex: number): void;
|
|
26
|
+
updateDraft(rowIndex: number, field: string, value: unknown): void;
|
|
27
|
+
getDraftValue(rowIndex: number, field: string): unknown | undefined;
|
|
28
|
+
saveEdit(rowIndex: number): void;
|
|
29
|
+
cancelEdit(): void;
|
|
30
|
+
markCellDirty(rowIndex: number, field: string, originalValue: unknown, newValue: unknown): void;
|
|
31
|
+
deleteRow(rowIndex: number): void;
|
|
32
|
+
isRowDirty(rowIndex: number): boolean;
|
|
33
|
+
isFieldDirty(rowIndex: number, field: string): boolean;
|
|
34
|
+
isRowDeleted(rowIndex: number): boolean;
|
|
35
|
+
getChangeset<T extends Record<string, unknown>>(originalData: T[]): GridEditChangeset<T>;
|
|
36
|
+
discardAllChanges(): void;
|
|
37
|
+
pushCommand(command: EditCommand): void;
|
|
38
|
+
undo(): EditCommand | null;
|
|
39
|
+
redo(): EditCommand | null;
|
|
40
|
+
private updateUndoRedoState;
|
|
41
|
+
validateCell(value: unknown, row: Record<string, unknown>, validators: GridCellValidator[]): GridCellValidationError[];
|
|
42
|
+
validateAll<T extends Record<string, unknown>>(data: T[], columns: {
|
|
43
|
+
field: string;
|
|
44
|
+
validators?: GridCellValidator[];
|
|
45
|
+
}[]): GridCellValidationError[];
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridEditService, never>;
|
|
47
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridEditService>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GridColumnDef, GridGroupState } from '../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Enterprise-grade export service for the DataGrid.
|
|
5
|
+
* Generates native XLSX binary workbooks and vector PDF documents
|
|
6
|
+
* with zero external dependencies.
|
|
7
|
+
*/
|
|
8
|
+
export declare class GridExportXlsxService {
|
|
9
|
+
/**
|
|
10
|
+
* Export data as a native .xlsx binary workbook.
|
|
11
|
+
* Supports: styled headers, auto-column widths, frozen header pane,
|
|
12
|
+
* number formatting, and multi-sheet grouped exports.
|
|
13
|
+
*/
|
|
14
|
+
exportToXlsx<T extends object>(data: T[], columns: GridColumnDef<T>[], filename?: string, options?: XlsxExportOptions): void;
|
|
15
|
+
/**
|
|
16
|
+
* Export data as a native vector PDF document.
|
|
17
|
+
* Supports: title, page numbers, column alignment, landscape/portrait.
|
|
18
|
+
*/
|
|
19
|
+
exportToPdf<T extends object>(data: T[], columns: GridColumnDef<T>[], options?: PdfExportOptions): void;
|
|
20
|
+
private buildWorkbook;
|
|
21
|
+
private buildContentTypes;
|
|
22
|
+
private buildRootRels;
|
|
23
|
+
private buildWorkbookXml;
|
|
24
|
+
private buildWorkbookRels;
|
|
25
|
+
private buildStyles;
|
|
26
|
+
private buildSheetXml;
|
|
27
|
+
private buildPdfTableHtml;
|
|
28
|
+
private rowToValues;
|
|
29
|
+
private rowToStringValues;
|
|
30
|
+
private computeColumnWidths;
|
|
31
|
+
private computeRelativeColumnWidths;
|
|
32
|
+
private colIndexToLetter;
|
|
33
|
+
private sanitizeSheetName;
|
|
34
|
+
private escapeXml;
|
|
35
|
+
private escapeHtml;
|
|
36
|
+
private downloadBlob;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridExportXlsxService, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridExportXlsxService>;
|
|
39
|
+
}
|
|
40
|
+
export interface XlsxExportOptions {
|
|
41
|
+
sheetName?: string;
|
|
42
|
+
freezeHeader?: boolean;
|
|
43
|
+
autoFilter?: boolean;
|
|
44
|
+
groupBy?: GridGroupState | null;
|
|
45
|
+
includeFooter?: boolean;
|
|
46
|
+
title?: string;
|
|
47
|
+
dateFormat?: string;
|
|
48
|
+
numberFormat?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PdfExportOptions {
|
|
51
|
+
title?: string;
|
|
52
|
+
orientation?: 'portrait' | 'landscape';
|
|
53
|
+
pageSize?: 'A4' | 'A3' | 'Letter' | 'Legal';
|
|
54
|
+
fontSize?: number;
|
|
55
|
+
headerFontSize?: number;
|
|
56
|
+
margin?: number;
|
|
57
|
+
groupBy?: GridGroupState | null;
|
|
58
|
+
showPageNumbers?: boolean;
|
|
59
|
+
showDate?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface XlsxSheet {
|
|
62
|
+
name: string;
|
|
63
|
+
headers: string[];
|
|
64
|
+
data: unknown[][];
|
|
65
|
+
columnWidths: number[];
|
|
66
|
+
columnTypes: string[];
|
|
67
|
+
}
|