ngx-core-components 0.3.23 → 0.3.24
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-form-copilot/ai-form-copilot.component.d.ts +19 -0
- package/ai/public-api.d.ts +1 -0
- package/charts/adjacency-matrix/adjacency-matrix.component.d.ts +12 -1
- package/charts/agentic-cognitive-topology/agentic-cognitive-topology.component.d.ts +125 -0
- package/charts/arc-diagram/arc-diagram.component.d.ts +72 -0
- package/charts/area-chart/area-chart.component.d.ts +12 -1
- package/charts/area-range-chart/area-range-chart.component.d.ts +73 -0
- package/charts/area-spline-range-chart/area-spline-range-chart.component.d.ts +73 -0
- package/charts/bar-chart/bar-chart.component.d.ts +2 -1
- package/charts/bell-curve-chart/bell-curve-chart.component.d.ts +65 -0
- package/charts/biplot/biplot.component.d.ts +12 -1
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +13 -1
- package/charts/bullet-chart/bullet-chart.component.d.ts +12 -1
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +13 -1
- package/charts/chord-diagram/chord-diagram.component.d.ts +12 -1
- package/charts/column-pyramid-chart/column-pyramid-chart.component.d.ts +61 -0
- package/charts/column-range-chart/column-range-chart.component.d.ts +66 -0
- package/charts/combo-chart/combo-chart.component.d.ts +12 -1
- package/charts/dependency-wheel/dependency-wheel.component.d.ts +12 -1
- package/charts/dumbbell-chart/dumbbell-chart.component.d.ts +12 -1
- package/charts/embedding-space-projection/embedding-space-projection.component.d.ts +127 -0
- package/charts/error-bar/error-bar.component.d.ts +76 -0
- package/charts/flags/flags.component.d.ts +80 -0
- package/charts/flowmap/flowmap.component.d.ts +71 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +12 -1
- package/charts/gauge-chart/gauge-chart.component.d.ts +12 -1
- package/charts/geo-heatmap/geo-heatmap.component.d.ts +65 -0
- package/charts/heatmap-chart/heatmap-chart.component.d.ts +12 -1
- package/charts/heikin-ashi-chart/heikin-ashi-chart.component.d.ts +88 -0
- package/charts/histogram/histogram.component.d.ts +59 -0
- package/charts/hlc-chart/hlc-chart.component.d.ts +72 -0
- package/charts/hollow-candlestick-chart/hollow-candlestick-chart.component.d.ts +81 -0
- package/charts/lollipop-chart/lollipop-chart.component.d.ts +12 -1
- package/charts/map-bubble/map-bubble.component.d.ts +57 -0
- package/charts/map-choropleth/map-choropleth.component.d.ts +54 -0
- package/charts/map-line-point/map-line-point.component.d.ts +67 -0
- package/charts/marimekko-chart/marimekko-chart.component.d.ts +12 -1
- package/charts/network-graph/network-graph.component.d.ts +73 -0
- package/charts/ohlc-chart/ohlc-chart.component.d.ts +75 -0
- package/charts/packed-bubble-chart/packed-bubble-chart.component.d.ts +69 -0
- package/charts/parallel-coordinates/parallel-coordinates.component.d.ts +61 -0
- package/charts/pareto-chart/pareto-chart.component.d.ts +12 -1
- package/charts/pictorial-chart/pictorial-chart.component.d.ts +59 -0
- package/charts/public-api.d.ts +65 -0
- package/charts/radar-chart/radar-chart.component.d.ts +12 -1
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +12 -1
- package/charts/ridgeline-chart/ridgeline-chart.component.d.ts +12 -1
- package/charts/sankey-chart/sankey-chart.component.d.ts +12 -1
- package/charts/scatter-plot/scatter-plot.component.d.ts +12 -1
- package/charts/shared/map-data.d.ts +30 -0
- package/charts/slope-chart/slope-chart.component.d.ts +12 -1
- package/charts/streamgraph/streamgraph.component.d.ts +71 -0
- package/charts/tiled-web-map/tiled-web-map.component.d.ts +71 -0
- package/charts/tilemap/tilemap.component.d.ts +63 -0
- package/charts/token-streaming-chart/token-streaming-chart.component.d.ts +70 -0
- package/charts/transformer-attention-heatmap/transformer-attention-heatmap.component.d.ts +75 -0
- package/charts/treegraph/treegraph.component.d.ts +56 -0
- package/charts/treemap-chart/treemap-chart.component.d.ts +12 -1
- package/charts/variable-pie-chart/variable-pie-chart.component.d.ts +70 -0
- package/charts/variwide-chart/variwide-chart.component.d.ts +62 -0
- package/charts/vector-plot/vector-plot.component.d.ts +63 -0
- package/charts/venn-diagram/venn-diagram.component.d.ts +59 -0
- package/charts/violin-plot/violin-plot.component.d.ts +12 -1
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +12 -1
- package/charts/word-cloud/word-cloud.component.d.ts +56 -0
- package/fesm2022/ngx-core-components-ai.mjs +222 -2
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +24532 -365
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +78 -0
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +11 -2
- package/fesm2022/ngx-core-components-inputs.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/data-grid.component.d.ts +1 -0
- package/grid/data-grid/grid-export.service.d.ts +4 -0
- package/inputs/form-builder/form-designer.component.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +66 -1
- package/schematics/collection.json +5 -0
- package/schematics/dashboard/index.js +162 -0
- package/schematics/dashboard/schema.json +19 -0
- package/themes/tailwind-preset.js +63 -0
|
@@ -1,7 +1,7 @@
|
|
|
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, AreaChartComponent, BarChartComponent, BiplotComponent, BoxPlotChartComponent, BubbleChartComponent, BulletChartComponent, CHART_COLORS, CandlestickChartComponent, ChordDiagramComponent, ComboChartComponent, DependencyType, DependencyWheelComponent, DumbbellChartComponent, FunnelChartComponent, GanttChartComponent, GanttScaleService, GaugeChartComponent, HeatmapChartComponent, KagiChartComponent, LineChartComponent, LollipopChartComponent, MarimekkoChartComponent, ParetoChartComponent, PieChartComponent, PointFigureChartComponent, PolarAreaChartComponent, RadarChartComponent, RadialBarChartComponent, RenkoChartComponent, RidgelineChartComponent, SankeyChartComponent, ScatterPlotComponent, SlopeChartComponent, SparklineComponent, SunburstChartComponent, TreemapChartComponent, ViolinPlotComponent, WaterfallChartComponent, WindRoseChartComponent, ZoomLevel } from 'ngx-core-components/charts';
|
|
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';
|
|
5
5
|
export { DataGridComponent, NgxGridCellTemplateDirective, NgxGridEditCellTemplateDirective, NgxGridFooterTemplateDirective, NgxGridHeaderTemplateDirective, PivotGridComponent } from 'ngx-core-components/grid';
|
|
6
6
|
export { CalendarComponent, ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective, OrgChartComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent } from 'ngx-core-components/views';
|
|
7
7
|
export { DialogContainerComponent, DialogService } from 'ngx-core-components/dialog';
|
|
@@ -10,7 +10,7 @@ export { AccordionComponent, CardComponent, CarouselComponent, DashboardLayoutCo
|
|
|
10
10
|
export { AvatarComponent, AvatarGroupComponent, BadgeComponent, CountdownComponent, EmptyStateComponent, NotificationContainerComponent, NotificationService, ProgressBarComponent, SkeletonComponent, StatCardComponent } from 'ngx-core-components/feedback';
|
|
11
11
|
export { BackToTopComponent, BreadcrumbComponent, CommandPaletteComponent, ContextMenuComponent, MenuComponent } from 'ngx-core-components/navigation';
|
|
12
12
|
export { BarcodeComponent, QrCodeComponent } from 'ngx-core-components/barcodes';
|
|
13
|
-
export { AIChatComponent, AIChatWidgetComponent, AIPromptEditorComponent, NgxWebLlmService } from 'ngx-core-components/ai';
|
|
13
|
+
export { AIChatComponent, AIChatWidgetComponent, AIFormCopilotComponent, AIPromptEditorComponent, NgxWebLlmService } from 'ngx-core-components/ai';
|
|
14
14
|
export { DEFAULT_EN_I18N, NGX_CORE_I18N, provideNgxI18n } from 'ngx-core-components/i18n';
|
|
15
15
|
|
|
16
16
|
class TooltipDirective {
|
|
@@ -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';\nexport { GanttChartComponent } from 'ngx-core-components/charts';\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// ===== 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 } 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;AAC1D,QAAA,MAAM,OAAO,GAAG,GAAG,CAAC,qBAAqB,E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EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,gBAAA,EAAA,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// ===== 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 {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AAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,gBAAA,EAAA,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;;;;"}
|
|
@@ -240,6 +240,7 @@ export declare class DataGridComponent<T extends object = Record<string, unknown
|
|
|
240
240
|
exportToJson(): void;
|
|
241
241
|
exportToCsv(): void;
|
|
242
242
|
exportToExcel(): void;
|
|
243
|
+
exportToPdf(): void;
|
|
243
244
|
setFilter(field: string, value: string): void;
|
|
244
245
|
getColumnWidth(col: GridColumnDef<T>): number | undefined;
|
|
245
246
|
onResizeStart(event: MouseEvent, col: GridColumnDef<T>): void;
|
|
@@ -17,6 +17,10 @@ export declare class GridExportService {
|
|
|
17
17
|
* Export data as an Excel (.xls) file download using an HTML table template.
|
|
18
18
|
*/
|
|
19
19
|
exportToExcel<T extends object>(data: T[], columns: GridColumnDef<T>[], filename?: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Export data as a beautifully styled PDF format via browser print window.
|
|
22
|
+
*/
|
|
23
|
+
exportToPdf<T extends object>(data: T[], columns: GridColumnDef<T>[], title?: string): void;
|
|
20
24
|
/**
|
|
21
25
|
* Create a temporary anchor element, trigger a download, and clean up.
|
|
22
26
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormBuilderField } from './form-builder.component';
|
|
1
|
+
import { FormBuilderField, FormBuilderComponent } from './form-builder.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FormDesignerComponent {
|
|
4
4
|
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
@@ -6,6 +6,7 @@ export declare class FormDesignerComponent {
|
|
|
6
6
|
designerFields: import("@angular/core").WritableSignal<FormBuilderField[]>;
|
|
7
7
|
selectedField: import("@angular/core").WritableSignal<FormBuilderField | null>;
|
|
8
8
|
activeTab: import("@angular/core").WritableSignal<"properties" | "schema" | "preview">;
|
|
9
|
+
previewForm: import("@angular/core").Signal<FormBuilderComponent | undefined>;
|
|
9
10
|
isDraggingFromToolbox: boolean;
|
|
10
11
|
draggingToolboxField: FormBuilderField | null;
|
|
11
12
|
isDraggingOverCanvas: boolean;
|
|
@@ -38,5 +39,5 @@ export declare class FormDesignerComponent {
|
|
|
38
39
|
importSchema(): void;
|
|
39
40
|
onPreviewSubmit(data: Record<string, unknown>): void;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormDesignerComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormDesignerComponent, "ngx-form-designer", never, { "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, { "schemaChange": "schemaChange"; }, never,
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDesignerComponent, "ngx-form-designer", never, { "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, { "schemaChange": "schemaChange"; }, never, ["[copilot]"], true, never>;
|
|
42
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-core-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Angular 19+ component library — 100+ production-ready UI components including Data Grid, Gantt Chart, 35+ SVG Charts, AI Chat, Kanban, Form Builder, and more. Signals-first, fully standalone, zero runtime dependencies.",
|
|
6
6
|
"keywords": [
|
package/public-api.d.ts
CHANGED
|
@@ -74,11 +74,76 @@ export { PointFigureChartComponent } from 'ngx-core-components/charts';
|
|
|
74
74
|
export type { PFCell } from 'ngx-core-components/charts';
|
|
75
75
|
export { WindRoseChartComponent } from 'ngx-core-components/charts';
|
|
76
76
|
export type { WindRoseItem, WindRoseSpeedBin } from 'ngx-core-components/charts';
|
|
77
|
+
export { AreaRangeChartComponent } from 'ngx-core-components/charts';
|
|
78
|
+
export type { AreaRangeSeries, AreaRangeDataPoint } from 'ngx-core-components/charts';
|
|
79
|
+
export { AreaSplineRangeChartComponent } from 'ngx-core-components/charts';
|
|
80
|
+
export { StreamgraphComponent } from 'ngx-core-components/charts';
|
|
81
|
+
export type { StreamgraphSeries } from 'ngx-core-components/charts';
|
|
82
|
+
export { ColumnRangeChartComponent } from 'ngx-core-components/charts';
|
|
83
|
+
export type { ColumnRangeSeries, ColumnRangePoint } from 'ngx-core-components/charts';
|
|
84
|
+
export { ColumnPyramidChartComponent } from 'ngx-core-components/charts';
|
|
85
|
+
export type { ColumnPyramidSeries } from 'ngx-core-components/charts';
|
|
86
|
+
export { VariwideChartComponent } from 'ngx-core-components/charts';
|
|
87
|
+
export type { VariwidePoint } from 'ngx-core-components/charts';
|
|
88
|
+
export { VariablePieChartComponent } from 'ngx-core-components/charts';
|
|
89
|
+
export type { VariablePieDataPoint } from 'ngx-core-components/charts';
|
|
90
|
+
export { PackedBubbleChartComponent } from 'ngx-core-components/charts';
|
|
91
|
+
export type { BubbleNode } from 'ngx-core-components/charts';
|
|
92
|
+
export { NetworkGraphComponent } from 'ngx-core-components/charts';
|
|
93
|
+
export type { NetworkNode, NetworkLink } from 'ngx-core-components/charts';
|
|
94
|
+
export { TreeGraphComponent } from 'ngx-core-components/charts';
|
|
95
|
+
export type { TreeGraphNode } from 'ngx-core-components/charts';
|
|
96
|
+
export { ArcDiagramComponent } from 'ngx-core-components/charts';
|
|
97
|
+
export type { ArcNode, ArcLink } from 'ngx-core-components/charts';
|
|
98
|
+
export { HistogramComponent } from 'ngx-core-components/charts';
|
|
99
|
+
export type { HistogramBin } from 'ngx-core-components/charts';
|
|
100
|
+
export { BellCurveChartComponent } from 'ngx-core-components/charts';
|
|
101
|
+
export type { CurvePoint } from 'ngx-core-components/charts';
|
|
102
|
+
export { ErrorBarComponent } from 'ngx-core-components/charts';
|
|
103
|
+
export type { ErrorBarPoint } from 'ngx-core-components/charts';
|
|
104
|
+
export { TilemapComponent } from 'ngx-core-components/charts';
|
|
105
|
+
export type { TileItem } from 'ngx-core-components/charts';
|
|
106
|
+
export { VennDiagramComponent } from 'ngx-core-components/charts';
|
|
107
|
+
export type { VennRegion } from 'ngx-core-components/charts';
|
|
108
|
+
export { ParallelCoordinatesComponent } from 'ngx-core-components/charts';
|
|
109
|
+
export type { ParallelLine, AxisDimension } from 'ngx-core-components/charts';
|
|
110
|
+
export { WordCloudComponent } from 'ngx-core-components/charts';
|
|
111
|
+
export type { WordItem } from 'ngx-core-components/charts';
|
|
112
|
+
export { PictorialChartComponent } from 'ngx-core-components/charts';
|
|
113
|
+
export type { PictorialIcon } from 'ngx-core-components/charts';
|
|
114
|
+
export { VectorPlotComponent } from 'ngx-core-components/charts';
|
|
115
|
+
export type { VectorItem } from 'ngx-core-components/charts';
|
|
116
|
+
export { OHLCChartComponent } from 'ngx-core-components/charts';
|
|
117
|
+
export type { OHLCItem } from 'ngx-core-components/charts';
|
|
118
|
+
export { HLCChartComponent } from 'ngx-core-components/charts';
|
|
119
|
+
export type { HLCItem } from 'ngx-core-components/charts';
|
|
120
|
+
export { HollowCandlestickChartComponent } from 'ngx-core-components/charts';
|
|
121
|
+
export { HeikinAshiChartComponent } from 'ngx-core-components/charts';
|
|
122
|
+
export { FlagsComponent } from 'ngx-core-components/charts';
|
|
123
|
+
export type { ChartFlag } from 'ngx-core-components/charts';
|
|
124
|
+
export { MapChoroplethComponent } from 'ngx-core-components/charts';
|
|
125
|
+
export type { ChoroplethDataPoint } from 'ngx-core-components/charts';
|
|
126
|
+
export { MapBubbleComponent } from 'ngx-core-components/charts';
|
|
127
|
+
export type { MapBubblePoint } from 'ngx-core-components/charts';
|
|
128
|
+
export { MapLinePointComponent } from 'ngx-core-components/charts';
|
|
129
|
+
export type { MapPoint, MapLine } from 'ngx-core-components/charts';
|
|
130
|
+
export { FlowmapComponent } from 'ngx-core-components/charts';
|
|
131
|
+
export type { FlowNode, FlowConnection } from 'ngx-core-components/charts';
|
|
132
|
+
export { GeoHeatmapComponent } from 'ngx-core-components/charts';
|
|
133
|
+
export type { GeoHeatmapPoint } from 'ngx-core-components/charts';
|
|
134
|
+
export { TiledWebMapComponent } from 'ngx-core-components/charts';
|
|
135
|
+
export type { MapMarker } from 'ngx-core-components/charts';
|
|
77
136
|
export { GanttChartComponent } from 'ngx-core-components/charts';
|
|
78
137
|
export type { FlatRow } from 'ngx-core-components/charts';
|
|
79
138
|
export { GanttScaleService } from 'ngx-core-components/charts';
|
|
80
139
|
export type { GanttTask, GanttDependency, GanttConfig, GanttColumnDef, GanttTaskChangeEvent, GanttTaskClickEvent, GanttDependencyClickEvent, GanttScrollEvent, GanttGroup, GanttBaselineItem, GanttDragEvent, GanttLinkDragEvent, GanttLineClickEvent, GanttBarClickEvent, GanttSelectedEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent, GanttTableDragDroppedEvent, GanttLoadOnScrollEvent, GanttVirtualScrolledIndexChangeEvent, GanttViewChangeEvent, GanttExpandChangeEvent, GanttTooltipContext, } from 'ngx-core-components/charts';
|
|
81
140
|
export { ZoomLevel, DependencyType } from 'ngx-core-components/charts';
|
|
141
|
+
export { TokenStreamingChartComponent } from 'ngx-core-components/charts';
|
|
142
|
+
export { EmbeddingSpaceProjectionComponent } from 'ngx-core-components/charts';
|
|
143
|
+
export type { EmbeddingPoint } from 'ngx-core-components/charts';
|
|
144
|
+
export { AgenticCognitiveTopologyComponent } from 'ngx-core-components/charts';
|
|
145
|
+
export type { TopologyNode, TopologyLink } from 'ngx-core-components/charts';
|
|
146
|
+
export { TransformerAttentionHeatmapComponent } from 'ngx-core-components/charts';
|
|
82
147
|
export { DataGridComponent, PivotGridComponent, NgxGridCellTemplateDirective, NgxGridEditCellTemplateDirective, NgxGridHeaderTemplateDirective, NgxGridFooterTemplateDirective, } from 'ngx-core-components/grid';
|
|
83
148
|
export type { GridColumnDef, GridFilterState, GridGroupState, GridGroupResult, GridSortState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, GridFooterTemplateContext, PivotValueDef, } from 'ngx-core-components/grid';
|
|
84
149
|
export { TreeViewComponent } from 'ngx-core-components/views';
|
|
@@ -116,7 +181,7 @@ export { AIChatComponent } from 'ngx-core-components/ai';
|
|
|
116
181
|
export type { AIMessage, AgentStep, AICard, AICardAction, QuickReply, } from 'ngx-core-components/ai';
|
|
117
182
|
export { AIChatWidgetComponent } from 'ngx-core-components/ai';
|
|
118
183
|
export { AIPromptEditorComponent } from 'ngx-core-components/ai';
|
|
119
|
-
export { NgxWebLlmService } from 'ngx-core-components/ai';
|
|
184
|
+
export { NgxWebLlmService, AIFormCopilotComponent } from 'ngx-core-components/ai';
|
|
120
185
|
export type { WebLlmMessage } from 'ngx-core-components/ai';
|
|
121
186
|
export { NGX_CORE_I18N, DEFAULT_EN_I18N, provideNgxI18n } from 'ngx-core-components/i18n';
|
|
122
187
|
export type { NgxCoreI18n } from 'ngx-core-components/i18n';
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"description": "Scaffold a pre-configured data grid component.",
|
|
11
11
|
"factory": "./grid/index#grid",
|
|
12
12
|
"schema": "./grid/schema.json"
|
|
13
|
+
},
|
|
14
|
+
"dashboard": {
|
|
15
|
+
"description": "Scaffold a pre-configured analytics dashboard layout.",
|
|
16
|
+
"factory": "./dashboard/index#dashboard",
|
|
17
|
+
"schema": "./dashboard/schema.json"
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
function dashboard(options) {
|
|
2
|
+
return (tree, context) => {
|
|
3
|
+
context.logger.info('⚡ Scaffolding a pre-configured ngx-core-components Analytics Dashboard...');
|
|
4
|
+
|
|
5
|
+
const name = options.name || 'analytics-dashboard';
|
|
6
|
+
// Convert camelCase or PascalCase to dashed-case
|
|
7
|
+
const dashedName = name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
8
|
+
// Convert dashed-case to camelCase
|
|
9
|
+
const camelName = dashedName.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
10
|
+
// Convert camelCase to PascalCase
|
|
11
|
+
const pascalName = camelName.charAt(0).toUpperCase() + camelName.slice(1);
|
|
12
|
+
|
|
13
|
+
// Default file path to src/app/name/name.component.ts
|
|
14
|
+
const filePath = `src/app/${dashedName}/${dashedName}.component.ts`;
|
|
15
|
+
|
|
16
|
+
const content = `import { Component } from '@angular/core';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import { DashboardLayoutComponent } from 'ngx-core-components/layout';
|
|
19
|
+
import { StatCardComponent } from 'ngx-core-components/feedback';
|
|
20
|
+
import { BarChartComponent } from 'ngx-core-components/charts';
|
|
21
|
+
import { DataGridComponent } from 'ngx-core-components/grid';
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
selector: 'app-${dashedName}',
|
|
25
|
+
standalone: true,
|
|
26
|
+
imports: [
|
|
27
|
+
CommonModule,
|
|
28
|
+
DashboardLayoutComponent,
|
|
29
|
+
StatCardComponent,
|
|
30
|
+
BarChartComponent,
|
|
31
|
+
DataGridComponent
|
|
32
|
+
],
|
|
33
|
+
template: \`
|
|
34
|
+
<div style="padding: 24px; font-family: var(--ngx-font-family, sans-serif); background: var(--ngx-bg-primary, #f8fafc); min-height: 100vh;">
|
|
35
|
+
<div style="margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center;">
|
|
36
|
+
<div>
|
|
37
|
+
<h1 style="margin: 0; font-size: 24px; color: var(--ngx-color-text, #0f172a); font-weight: 700;">${pascalName} Portal</h1>
|
|
38
|
+
<p style="margin: 4px 0 0; font-size: 14px; color: var(--ngx-color-text-secondary, #64748b);">Real-time metrics, analytics, and recent transactional data.</p>
|
|
39
|
+
</div>
|
|
40
|
+
<button style="padding: 8px 16px; font-size: 13px; font-weight: 600; color: white; background: var(--ngx-color-primary, #4f46e5); border: none; border-radius: 8px; cursor: pointer; box-shadow: var(--ngx-shadow-sm);">
|
|
41
|
+
Refresh Data
|
|
42
|
+
</button>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<ngx-dashboard-layout
|
|
46
|
+
[items]="dashboardPanels"
|
|
47
|
+
[columns]="12"
|
|
48
|
+
rowHeight="160px"
|
|
49
|
+
[allowDragging]="true"
|
|
50
|
+
[allowResizing]="true"
|
|
51
|
+
>
|
|
52
|
+
<!-- KPI 1: Sales -->
|
|
53
|
+
<div panel-id="sales-kpi" style="height: 100%;">
|
|
54
|
+
<ngx-stat-card
|
|
55
|
+
title="Total Revenue"
|
|
56
|
+
value="$48,259.00"
|
|
57
|
+
change="+12.5%"
|
|
58
|
+
trend="up"
|
|
59
|
+
icon="💰"
|
|
60
|
+
[style.--ngx-stat-card-accent]="'#4f46e5'"
|
|
61
|
+
></ngx-stat-card>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<!-- KPI 2: Users -->
|
|
65
|
+
<div panel-id="users-kpi" style="height: 100%;">
|
|
66
|
+
<ngx-stat-card
|
|
67
|
+
title="Active Customers"
|
|
68
|
+
value="3,842"
|
|
69
|
+
change="+4.3%"
|
|
70
|
+
trend="up"
|
|
71
|
+
icon="👥"
|
|
72
|
+
[style.--ngx-stat-card-accent]="'#06b6d4'"
|
|
73
|
+
></ngx-stat-card>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<!-- KPI 3: Conversion -->
|
|
77
|
+
<div panel-id="conversion-kpi" style="height: 100%;">
|
|
78
|
+
<ngx-stat-card
|
|
79
|
+
title="Conversion Rate"
|
|
80
|
+
value="2.84%"
|
|
81
|
+
change="-0.9%"
|
|
82
|
+
trend="down"
|
|
83
|
+
icon="📈"
|
|
84
|
+
[style.--ngx-stat-card-accent]="'#ef4444'"
|
|
85
|
+
></ngx-stat-card>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<!-- Sales Bar Chart -->
|
|
89
|
+
<div panel-id="sales-chart" style="height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 12px;">
|
|
90
|
+
<ngx-bar-chart
|
|
91
|
+
[series]="chartSeries"
|
|
92
|
+
[categories]="chartCategories"
|
|
93
|
+
[height]="280"
|
|
94
|
+
[showExport]="true"
|
|
95
|
+
[showLegend]="true"
|
|
96
|
+
[showGrid]="true"
|
|
97
|
+
></ngx-bar-chart>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<!-- Transactions DataGrid -->
|
|
101
|
+
<div panel-id="orders-grid" style="height: 100%; display: flex; flex-direction: column; overflow: hidden;">
|
|
102
|
+
<ngx-data-grid
|
|
103
|
+
[data]="gridData"
|
|
104
|
+
[columns]="gridColumns"
|
|
105
|
+
[pageSize]="5"
|
|
106
|
+
[pageable]="true"
|
|
107
|
+
[sortable]="true"
|
|
108
|
+
[filterable]="true"
|
|
109
|
+
></ngx-data-grid>
|
|
110
|
+
</div>
|
|
111
|
+
</ngx-dashboard-layout>
|
|
112
|
+
</div>
|
|
113
|
+
\`
|
|
114
|
+
})
|
|
115
|
+
export class ${pascalName}Component {
|
|
116
|
+
// Define layout structure for panels
|
|
117
|
+
dashboardPanels = [
|
|
118
|
+
{ id: 'sales-kpi', title: 'Revenue Stats', row: 0, col: 0, rowSpan: 1, colSpan: 4, category: 'finance' },
|
|
119
|
+
{ id: 'users-kpi', title: 'User Stats', row: 0, col: 4, rowSpan: 1, colSpan: 4, category: 'users' },
|
|
120
|
+
{ id: 'conversion-kpi', title: 'Conversion Rate', row: 0, col: 8, rowSpan: 1, colSpan: 4, category: 'system' },
|
|
121
|
+
{ id: 'sales-chart', title: 'Quarterly Sales Overview', row: 1, col: 0, rowSpan: 2, colSpan: 12, category: 'finance' },
|
|
122
|
+
{ id: 'orders-grid', title: 'Recent Transactions Log', row: 3, col: 0, rowSpan: 3, colSpan: 12, category: 'audit' }
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
// Sales chart configuration
|
|
126
|
+
chartCategories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'];
|
|
127
|
+
chartSeries = [
|
|
128
|
+
{ name: 'Online Sales', data: [12000, 19000, 3000, 5000, 2000, 30000] },
|
|
129
|
+
{ name: 'In-Store Sales', data: [8000, 12000, 9000, 15000, 8000, 18000] }
|
|
130
|
+
];
|
|
131
|
+
|
|
132
|
+
// DataGrid recent orders records
|
|
133
|
+
gridData = [
|
|
134
|
+
{ orderId: 'TX-1001', customer: 'Emma Watson', date: '2026-07-10', amount: 350.00, status: 'Completed' },
|
|
135
|
+
{ orderId: 'TX-1002', customer: 'John Doe', date: '2026-07-12', amount: 120.50, status: 'Pending' },
|
|
136
|
+
{ orderId: 'TX-1003', customer: 'Sarah Jenkins', date: '2026-07-14', amount: 1540.00, status: 'Completed' },
|
|
137
|
+
{ orderId: 'TX-1004', customer: 'Michael Scott', date: '2026-07-15', amount: 89.90, status: 'Failed' },
|
|
138
|
+
{ orderId: 'TX-1005', customer: 'Pam Beesly', date: '2026-07-15', amount: 430.00, status: 'Completed' }
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
gridColumns = [
|
|
142
|
+
{ field: 'orderId', title: 'Order ID', width: 120, sortable: true },
|
|
143
|
+
{ field: 'customer', title: 'Customer Name', sortable: true, filterable: true },
|
|
144
|
+
{ field: 'date', title: 'Date', width: 120, sortable: true },
|
|
145
|
+
{ field: 'amount', title: 'Amount ($)', width: 120, align: 'right', sortable: true },
|
|
146
|
+
{ field: 'status', title: 'Status', width: 140, sortable: true }
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
if (tree.exists(filePath)) {
|
|
152
|
+
context.logger.warn(`⚠️ File ${filePath} already exists. Skipping scaffolding.`);
|
|
153
|
+
} else {
|
|
154
|
+
tree.create(filePath, content);
|
|
155
|
+
context.logger.info(`✅ Generated ${pascalName}Component with pre-configured dashboard at ${filePath}`);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return tree;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
module.exports = { dashboard };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "NgxCoreComponentsDashboardSchema",
|
|
4
|
+
"title": "Dashboard Schematic Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the component to generate.",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": [
|
|
17
|
+
"name"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ngx-core-components — Tailwind CSS Theme Preset
|
|
3
|
+
*
|
|
4
|
+
* Mapped to CSS custom properties to sync library design tokens (colors, spacing, shadows, radius)
|
|
5
|
+
* with the consumer's corporate Tailwind layout system.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* // tailwind.config.js
|
|
9
|
+
* module.exports = {
|
|
10
|
+
* presets: [
|
|
11
|
+
* require('ngx-core-components/themes/tailwind-preset')
|
|
12
|
+
* ],
|
|
13
|
+
* // ...
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
module.exports = {
|
|
17
|
+
theme: {
|
|
18
|
+
extend: {
|
|
19
|
+
colors: {
|
|
20
|
+
ngx: {
|
|
21
|
+
primary: 'var(--ngx-color-primary)',
|
|
22
|
+
'primary-hover': 'var(--ngx-color-primary-hover)',
|
|
23
|
+
'primary-light': 'var(--ngx-color-primary-light)',
|
|
24
|
+
secondary: 'var(--ngx-color-secondary)',
|
|
25
|
+
success: 'var(--ngx-color-success)',
|
|
26
|
+
warning: 'var(--ngx-color-warning)',
|
|
27
|
+
danger: 'var(--ngx-color-danger)',
|
|
28
|
+
info: 'var(--ngx-color-info)',
|
|
29
|
+
surface: 'var(--ngx-color-surface)',
|
|
30
|
+
'surface-alt': 'var(--ngx-color-surface-alt)',
|
|
31
|
+
border: 'var(--ngx-color-border)',
|
|
32
|
+
text: 'var(--ngx-color-text)',
|
|
33
|
+
'text-secondary': 'var(--ngx-color-text-secondary)',
|
|
34
|
+
'text-disabled': 'var(--ngx-color-text-disabled)',
|
|
35
|
+
'text-inverse': 'var(--ngx-color-text-inverse)',
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
spacing: {
|
|
39
|
+
'ngx-xs': 'var(--ngx-space-xs)',
|
|
40
|
+
'ngx-sm': 'var(--ngx-space-sm)',
|
|
41
|
+
'ngx-md': 'var(--ngx-space-md)',
|
|
42
|
+
'ngx-lg': 'var(--ngx-space-lg)',
|
|
43
|
+
'ngx-xl': 'var(--ngx-space-xl)',
|
|
44
|
+
'ngx-2xl': 'var(--ngx-space-2xl)',
|
|
45
|
+
},
|
|
46
|
+
borderRadius: {
|
|
47
|
+
'ngx-sm': 'var(--ngx-radius-sm)',
|
|
48
|
+
'ngx-md': 'var(--ngx-radius-md)',
|
|
49
|
+
'ngx-lg': 'var(--ngx-radius-lg)',
|
|
50
|
+
'ngx-xl': 'var(--ngx-radius-xl)',
|
|
51
|
+
},
|
|
52
|
+
boxShadow: {
|
|
53
|
+
'ngx-sm': 'var(--ngx-shadow-sm)',
|
|
54
|
+
'ngx-md': 'var(--ngx-shadow-md)',
|
|
55
|
+
'ngx-lg': 'var(--ngx-shadow-lg)',
|
|
56
|
+
'ngx-xl': 'var(--ngx-shadow-xl)',
|
|
57
|
+
},
|
|
58
|
+
fontFamily: {
|
|
59
|
+
ngx: ['var(--ngx-font-family)', 'sans-serif'],
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|