ngx-core-components 0.0.5 → 0.0.7

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.
@@ -200,10 +200,29 @@ class GanttLayoutService {
200
200
  let rowIndex = 0;
201
201
  const traverse = (parentId, depth, parentVisible) => {
202
202
  const children = childrenMap.get(parentId) || [];
203
+ // Group children by rowId, preserving original order for primary tasks.
204
+ const rowGroups = [];
205
+ const rowIdToGroup = new Map();
203
206
  for (const task of children) {
207
+ if (task.rowId) {
208
+ const existing = rowIdToGroup.get(task.rowId);
209
+ if (existing) {
210
+ existing.extra.push(task);
211
+ }
212
+ else {
213
+ const group = { primary: task, extra: [] };
214
+ rowGroups.push(group);
215
+ rowIdToGroup.set(task.rowId, group);
216
+ }
217
+ }
218
+ else {
219
+ rowGroups.push({ primary: task, extra: [] });
220
+ }
221
+ }
222
+ for (const { primary: task, extra: extraTasks } of rowGroups) {
204
223
  const hasChildren = childrenMap.has(task.id) && childrenMap.get(task.id).length > 0;
205
224
  const isVisible = parentVisible;
206
- rows.push({ task, depth, rowIndex: isVisible ? rowIndex : -1, hasChildren, isVisible });
225
+ rows.push({ task, extraTasks, depth, rowIndex: isVisible ? rowIndex : -1, hasChildren, isVisible });
207
226
  if (isVisible)
208
227
  rowIndex++;
209
228
  const childVisible = isVisible && !task.collapsed;
@@ -329,6 +348,14 @@ class GanttChartComponent {
329
348
  scrollLeft = signal(0);
330
349
  scrollTop_ = signal(0);
331
350
  sidebarWidthOverride = signal(null);
351
+ // Tooltip state
352
+ tooltipTask = signal(null);
353
+ tooltipX = signal(0);
354
+ tooltipY = signal(0);
355
+ // Row tooltip state (for sidebar multi-task rows)
356
+ rowTooltipData = signal(null);
357
+ rowTooltipX = signal(0);
358
+ rowTooltipY = signal(0);
332
359
  // Merged config
333
360
  mergedConfig = computed(() => {
334
361
  const base = { ...DEFAULT_GANTT_CONFIG, ...this.config() };
@@ -409,16 +436,28 @@ class GanttChartComponent {
409
436
  const cfg = this.mergedConfig();
410
437
  const range = this.dateRange();
411
438
  const barHeight = 24; // default
412
- const summaryHeight = 10;
413
- return this.visibleRows().map((row, idx) => {
414
- const left = this.scaleService.dateToX(row.task.start, range.start, cfg.columnWidth, cfg.zoomLevel);
415
- const width = row.task.isMilestone
439
+ const makeBar = (task, top, rowIndex, isSummary, primaryTaskId) => ({
440
+ task,
441
+ left: this.scaleService.dateToX(task.start, range.start, cfg.columnWidth, cfg.zoomLevel),
442
+ width: task.isMilestone
416
443
  ? 0
417
- : this.scaleService.getBarWidth(row.task.start, row.task.end, range.start, cfg.columnWidth, cfg.zoomLevel);
444
+ : this.scaleService.getBarWidth(task.start, task.end, range.start, cfg.columnWidth, cfg.zoomLevel),
445
+ top,
446
+ isSummary,
447
+ barHeight,
448
+ rowIndex,
449
+ primaryTaskId,
450
+ });
451
+ const bars = [];
452
+ this.visibleRows().forEach((row, idx) => {
418
453
  const top = idx * cfg.rowHeight;
419
454
  const isSummary = row.hasChildren && !row.task.isMilestone;
420
- return { task: row.task, left, width, top, isSummary, barHeight, rowIndex: idx };
455
+ bars.push(makeBar(row.task, top, idx, isSummary, row.task.id));
456
+ for (const extra of row.extraTasks) {
457
+ bars.push(makeBar(extra, top, idx, false, row.task.id));
458
+ }
421
459
  });
460
+ return bars;
422
461
  });
423
462
  // Dependency paths
424
463
  dependencyPaths = computed(() => {
@@ -625,6 +664,75 @@ class GanttChartComponent {
625
664
  formatDateShort(date) {
626
665
  return date.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
627
666
  }
667
+ formatDateFull(date) {
668
+ return date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
669
+ }
670
+ showTooltip(task, event) {
671
+ this.tooltipTask.set(task);
672
+ const OFFSET = 14;
673
+ const TOOLTIP_W = 220;
674
+ const TOOLTIP_H = 100;
675
+ const flipCoord = (cursor, size, viewport) => cursor + OFFSET + size > viewport ? cursor - size - OFFSET : cursor + OFFSET;
676
+ this.tooltipX.set(flipCoord(event.clientX, TOOLTIP_W, window.innerWidth));
677
+ this.tooltipY.set(flipCoord(event.clientY, TOOLTIP_H, window.innerHeight));
678
+ }
679
+ hideTooltip() {
680
+ this.tooltipTask.set(null);
681
+ }
682
+ // Multi-task row helpers
683
+ getRowStart(row) {
684
+ if (row.extraTasks.length === 0)
685
+ return row.task.start;
686
+ const times = [row.task.start, ...row.extraTasks.map(t => t.start)].map(d => d.getTime());
687
+ return new Date(Math.min(...times));
688
+ }
689
+ getRowEnd(row) {
690
+ if (row.extraTasks.length === 0)
691
+ return row.task.end;
692
+ const times = [row.task.end, ...row.extraTasks.map(t => t.end)].map(d => d.getTime());
693
+ return new Date(Math.max(...times));
694
+ }
695
+ getRowAvgProgress(row) {
696
+ const all = [row.task, ...row.extraTasks];
697
+ return Math.round(all.reduce((sum, t) => sum + t.progress, 0) / all.length);
698
+ }
699
+ getRowProgressTitle(row) {
700
+ const all = [row.task, ...row.extraTasks];
701
+ return all.map(t => `${t.name}: ${t.progress}%`).join(', ');
702
+ }
703
+ getMetaEntries(meta) {
704
+ if (!meta)
705
+ return [];
706
+ return Object.entries(meta).map(([key, value]) => ({
707
+ // Convert camelCase keys like "assignee" → "Assignee", "apiURL" → "Api URL"
708
+ key: key
709
+ .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')
710
+ .replace(/([a-z])([A-Z])/g, '$1 $2')
711
+ .replace(/^./, c => c.toUpperCase()),
712
+ value: String(value),
713
+ }));
714
+ }
715
+ showRowTooltip(row, event) {
716
+ const allTasks = [row.task, ...row.extraTasks];
717
+ this.rowTooltipData.set({ allTasks });
718
+ this.positionRowTooltip(event);
719
+ }
720
+ updateRowTooltip(event) {
721
+ if (this.rowTooltipData()) {
722
+ this.positionRowTooltip(event);
723
+ }
724
+ }
725
+ hideRowTooltip() {
726
+ this.rowTooltipData.set(null);
727
+ }
728
+ positionRowTooltip(event) {
729
+ const OFFSET = 14;
730
+ const TOOLTIP_W = 260;
731
+ const TOOLTIP_H = 120;
732
+ const flipCoord = (cursor, size, viewport) => cursor + OFFSET + size > viewport ? cursor - size - OFFSET : cursor + OFFSET;
733
+ this.rowTooltipX.set(flipCoord(event.clientX, TOOLTIP_W, window.innerWidth));
734
+ this.rowTooltipY.set(flipCoord(event.clientY, TOOLTIP_H, window.innerHeight));
735
+ }
628
736
  getPrimaryLabel(date, zoom, locale) {
629
737
  switch (zoom) {
630
738
  case ZoomLevel.Day:
@@ -662,264 +770,341 @@ class GanttChartComponent {
662
770
  GanttScaleService,
663
771
  GanttLayoutService,
664
772
  GanttKeyboardService,
665
- ], viewQueries: [{ propertyName: "timelineContent", first: true, predicate: ["timelineContent"], descendants: true, isSignal: true }, { propertyName: "treelistContent", first: true, predicate: ["treelistContent"], descendants: true, isSignal: true }], ngImport: i0, template: `
666
- <div class="k-gantt" [class.k-gantt-dark]="false" (keydown)="onKeyDown($event)">
667
-
668
- <!-- ===== TREELIST (Left Panel) ===== -->
669
- <div class="k-gantt-treelist" [style.width.px]="mergedConfig().sidebarWidth">
670
- <!-- Treelist Header -->
671
- <div class="k-treelist-header" [style.height.px]="mergedConfig().headerHeight">
672
- <table class="k-treelist-header-table">
673
- <colgroup>
674
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
675
- <col style="width: 80px"/>
676
- <col style="width: 80px"/>
677
- <col style="width: 60px"/>
678
- </colgroup>
679
- <thead>
680
- <tr>
681
- <th class="k-header-cell">Task Name</th>
682
- <th class="k-header-cell">Start</th>
683
- <th class="k-header-cell">End</th>
684
- <th class="k-header-cell">%</th>
685
- </tr>
686
- </thead>
687
- </table>
688
- </div>
689
-
690
- <!-- Treelist Body -->
691
- <div class="k-treelist-content" #treelistContent>
692
- <table class="k-treelist-table">
693
- <colgroup>
694
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
695
- <col style="width: 80px"/>
696
- <col style="width: 80px"/>
697
- <col style="width: 60px"/>
698
- </colgroup>
699
- <tbody>
700
- @for (row of visibleRows(); track row.task.id; let i = $index) {
701
- <tr
702
- class="k-treelist-row"
703
- [style.height.px]="mergedConfig().rowHeight"
704
- [class.k-alt]="i % 2 === 1"
705
- [class.k-selected]="selectedTaskId() === row.task.id"
706
- [class.k-hover]="hoveredTaskId() === row.task.id"
707
- (mouseenter)="hoveredTaskId.set(row.task.id)"
708
- (mouseleave)="hoveredTaskId.set(null)"
709
- (click)="onRowClick(row.task, $event)"
710
- >
711
- <td class="k-treelist-cell k-name-cell">
712
- <span class="k-indent" [style.width.px]="row.depth * 20"></span>
713
- @if (row.hasChildren && mergedConfig().collapsible) {
714
- <button
715
- class="k-collapse-btn"
716
- (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
717
- [attr.aria-expanded]="!row.task.collapsed"
718
- >
719
- <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
720
- </button>
721
- } @else {
722
- <span class="k-collapse-spacer"></span>
723
- }
724
- @if (row.task.isMilestone) {
725
- <span class="k-milestone-icon">&#9670;</span>
726
- }
727
- <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
728
- {{ row.task.name }}
729
- </span>
730
- </td>
731
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(row.task.start) }}</td>
732
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(row.task.end) }}</td>
733
- <td class="k-treelist-cell k-pct-cell">{{ row.task.progress }}%</td>
734
- </tr>
735
- }
736
- </tbody>
737
- </table>
738
- </div>
739
- </div>
740
-
741
- <!-- ===== SPLITBAR ===== -->
742
- <div class="k-splitbar" (pointerdown)="onSplitBarDown($event)">
743
- <span class="k-splitbar-icon">&#8942;</span>
744
- </div>
745
-
746
- <!-- ===== TIMELINE (Right Panel) ===== -->
747
- <div class="k-gantt-timeline">
748
- <!-- Timeline Header -->
749
- <div class="k-timeline-header" [style.height.px]="mergedConfig().headerHeight">
750
- <div class="k-timeline-header-wrap" [style.width.px]="totalWidth()" [style.margin-left.px]="-(scrollLeft())">
751
- <!-- Primary header row (months/years) -->
752
- <div class="k-header-row k-header-primary">
753
- @for (group of primaryHeaderGroups(); track group.label + group.x) {
754
- <div
755
- class="k-header-group-cell"
756
- [style.left.px]="group.x"
757
- [style.width.px]="group.width"
758
- >
759
- {{ group.label }}
760
- </div>
761
- }
762
- </div>
763
- <!-- Secondary header row (days/weeks/months) -->
764
- <div class="k-header-row k-header-secondary">
765
- @for (col of headerColumns(); track col.x) {
766
- <div
767
- class="k-header-tick-cell"
768
- [style.left.px]="col.x"
769
- [style.width.px]="col.width"
770
- [class.k-weekend]="col.isWeekend"
771
- [class.k-today-header]="col.isToday"
772
- >
773
- {{ col.label }}
774
- </div>
775
- }
776
- </div>
777
- </div>
778
- </div>
779
-
780
- <!-- Timeline Content (Scrollable) -->
781
- <div class="k-timeline-content" #timelineContent (scroll)="onTimelineScroll()">
782
- <div class="k-timeline-canvas" [style.width.px]="totalWidth()" [style.height.px]="totalHeight()">
783
-
784
- <!-- Background rows (alternating + hover) -->
785
- <div class="k-gantt-rows">
786
- @for (row of visibleRows(); track row.task.id; let i = $index) {
787
- <div
788
- class="k-gantt-row"
789
- [style.top.px]="i * mergedConfig().rowHeight"
790
- [style.height.px]="mergedConfig().rowHeight"
791
- [class.k-alt]="i % 2 === 1"
792
- [class.k-hover]="hoveredTaskId() === row.task.id"
793
- [class.k-selected]="selectedTaskId() === row.task.id"
794
- (mouseenter)="hoveredTaskId.set(row.task.id)"
795
- (mouseleave)="hoveredTaskId.set(null)"
796
- >
797
- </div>
798
- }
799
- </div>
800
-
801
- <!-- Vertical column lines -->
802
- <div class="k-gantt-columns">
803
- @for (col of headerColumns(); track col.x) {
804
- <div
805
- class="k-gantt-column"
806
- [style.left.px]="col.x"
807
- [style.width.px]="col.width"
808
- [style.height.px]="totalHeight()"
809
- [class.k-weekend-col]="col.isWeekend"
810
- >
811
- </div>
812
- }
813
- </div>
814
-
815
- <!-- Today marker -->
816
- @if (mergedConfig().showTodayMarker && todayX() !== null) {
817
- <div
818
- class="k-today-marker"
819
- [style.left.px]="todayX()"
820
- [style.height.px]="totalHeight()"
821
- >
822
- <div class="k-today-indicator"></div>
823
- </div>
824
- }
825
-
826
- <!-- Task bars layer -->
827
- <div class="k-gantt-tasks">
828
- @for (bar of taskBars(); track bar.task.id) {
829
- <div
830
- class="k-task-wrap"
831
- [style.top.px]="bar.top"
832
- [style.height.px]="mergedConfig().rowHeight"
833
- >
834
- @if (bar.task.isMilestone) {
835
- <!-- Milestone diamond -->
836
- <div
837
- class="k-milestone"
838
- [style.left.px]="bar.left - 8"
839
- [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
840
- [class.k-selected]="selectedTaskId() === bar.task.id"
841
- (click)="onTaskBarClick(bar.task, $event)"
842
- (dblclick)="onTaskBarDblClick(bar.task, $event)"
843
- tabindex="0"
844
- [attr.aria-label]="'Milestone: ' + bar.task.name"
845
- >
846
- <div class="k-milestone-diamond" [style.background]="bar.task.color || null"></div>
847
- </div>
848
- } @else if (bar.isSummary) {
849
- <!-- Summary bar (parent task) -->
850
- <div
851
- class="k-task-summary"
852
- [style.left.px]="bar.left"
853
- [style.width.px]="bar.width"
854
- [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
855
- [class.k-selected]="selectedTaskId() === bar.task.id"
856
- (click)="onTaskBarClick(bar.task, $event)"
857
- (dblclick)="onTaskBarDblClick(bar.task, $event)"
858
- tabindex="0"
859
- [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
860
- >
861
- <div class="k-summary-bar">
862
- <div class="k-summary-progress" [style.width.%]="bar.task.progress"></div>
863
- </div>
864
- <div class="k-summary-left-cap"></div>
865
- <div class="k-summary-right-cap"></div>
866
- </div>
867
- } @else {
868
- <!-- Regular task bar -->
869
- <div
870
- class="k-task"
871
- [style.left.px]="bar.left"
872
- [style.width.px]="bar.width"
873
- [style.background]="bar.task.color || null"
874
- [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
875
- [class.k-selected]="selectedTaskId() === bar.task.id"
876
- (pointerdown)="onBarPointerDown($event, bar.task, 'move')"
877
- (click)="onTaskBarClick(bar.task, $event)"
878
- (dblclick)="onTaskBarDblClick(bar.task, $event)"
879
- tabindex="0"
880
- role="img"
881
- [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
882
- >
883
- <!-- Progress fill -->
884
- <div class="k-task-progress" [style.width.%]="bar.task.progress">
885
- <div class="k-task-progress-inner"></div>
886
- </div>
887
- <!-- Task text -->
888
- <span class="k-task-text">{{ bar.task.name }}</span>
889
- <!-- Resize handles -->
890
- @if (bar.task.draggable !== false) {
891
- <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
892
- <div class="k-resize-handle k-resize-e" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-right')"></div>
893
- }
894
- </div>
895
- }
896
- </div>
897
- }
898
- </div>
899
-
900
- <!-- Dependency arrows (SVG overlay) -->
901
- <svg class="k-gantt-dependencies" [attr.width]="totalWidth()" [attr.height]="totalHeight()">
902
- <defs>
903
- <marker id="k-arrowhead" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto">
904
- <polygon points="0 0, 10 3.5, 0 7" fill="var(--ngx-gantt-arrow-color, #ff6358)"/>
905
- </marker>
906
- </defs>
907
- @for (dep of dependencyPaths(); track dep.key) {
908
- <path
909
- class="k-dep-line"
910
- [attr.d]="dep.path"
911
- [attr.stroke]="dep.dependency.color || null"
912
- marker-end="url(#k-arrowhead)"
913
- (click)="onDependencyClick(dep.dependency, $event)"
914
- />
915
- }
916
- </svg>
917
-
918
- </div>
919
- </div>
920
- </div>
921
- </div>
922
- `, isInline: true, styles: [":host{display:block}.k-gantt{display:flex;height:100%;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
773
+ ], viewQueries: [{ propertyName: "timelineContent", first: true, predicate: ["timelineContent"], descendants: true, isSignal: true }, { propertyName: "treelistContent", first: true, predicate: ["treelistContent"], descendants: true, isSignal: true }], ngImport: i0, template: `
774
+ <div class="k-gantt" [class.k-gantt-dark]="false" (keydown)="onKeyDown($event)">
775
+
776
+ <!-- ===== TREELIST (Left Panel) ===== -->
777
+ <div class="k-gantt-treelist" [style.width.px]="mergedConfig().sidebarWidth">
778
+ <!-- Treelist Header -->
779
+ <div class="k-treelist-header" [style.height.px]="mergedConfig().headerHeight">
780
+ <table class="k-treelist-header-table">
781
+ <colgroup>
782
+ <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
783
+ <col style="width: 80px"/>
784
+ <col style="width: 80px"/>
785
+ <col style="width: 60px"/>
786
+ </colgroup>
787
+ <thead>
788
+ <tr>
789
+ <th class="k-header-cell">Task Name</th>
790
+ <th class="k-header-cell">Start</th>
791
+ <th class="k-header-cell">End</th>
792
+ <th class="k-header-cell">%</th>
793
+ </tr>
794
+ </thead>
795
+ </table>
796
+ </div>
797
+
798
+ <!-- Treelist Body -->
799
+ <div class="k-treelist-content" #treelistContent>
800
+ <table class="k-treelist-table">
801
+ <colgroup>
802
+ <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
803
+ <col style="width: 80px"/>
804
+ <col style="width: 80px"/>
805
+ <col style="width: 60px"/>
806
+ </colgroup>
807
+ <tbody>
808
+ @for (row of visibleRows(); track row.task.id; let i = $index) {
809
+ <tr
810
+ class="k-treelist-row"
811
+ [style.height.px]="mergedConfig().rowHeight"
812
+ [class.k-alt]="i % 2 === 1"
813
+ [class.k-selected]="selectedTaskId() === row.task.id"
814
+ [class.k-hover]="hoveredTaskId() === row.task.id"
815
+ (mouseenter)="hoveredTaskId.set(row.task.id)"
816
+ (mouseleave)="hoveredTaskId.set(null)"
817
+ (click)="onRowClick(row.task, $event)"
818
+ >
819
+ <td class="k-treelist-cell k-name-cell"
820
+ (mouseenter)="row.extraTasks.length > 0 ? showRowTooltip(row, $event) : null"
821
+ (mousemove)="row.extraTasks.length > 0 ? updateRowTooltip($event) : null"
822
+ (mouseleave)="row.extraTasks.length > 0 ? hideRowTooltip() : null"
823
+ >
824
+ <span class="k-indent" [style.width.px]="row.depth * 20"></span>
825
+ @if (row.hasChildren && mergedConfig().collapsible) {
826
+ <button
827
+ class="k-collapse-btn"
828
+ (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
829
+ [attr.aria-expanded]="!row.task.collapsed"
830
+ >
831
+ <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
832
+ </button>
833
+ } @else {
834
+ <span class="k-collapse-spacer"></span>
835
+ }
836
+ @if (row.task.isMilestone) {
837
+ <span class="k-milestone-icon">&#9670;</span>
838
+ }
839
+ <div class="k-name-wrapper">
840
+ <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
841
+ {{ row.task.name }}
842
+ </span>
843
+ @if (row.extraTasks.length > 0) {
844
+ <div class="k-extra-tasks-chips">
845
+ @for (extra of row.extraTasks; track extra.id) {
846
+ <span
847
+ class="k-extra-task-chip"
848
+ [style.background]="extra.color || '#6c757d'"
849
+ [title]="extra.name"
850
+ >{{ extra.name.length > 14 ? extra.name.slice(0, 14) + '…' : extra.name }}</span>
851
+ }
852
+ </div>
853
+ }
854
+ </div>
855
+ </td>
856
+ <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowStart(row)) }}</td>
857
+ <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowEnd(row)) }}</td>
858
+ <td class="k-treelist-cell k-pct-cell">
859
+ @if (row.extraTasks.length > 0) {
860
+ <span class="k-multi-pct" [title]="getRowProgressTitle(row)">~{{ getRowAvgProgress(row) }}%</span>
861
+ } @else {
862
+ {{ row.task.progress }}%
863
+ }
864
+ </td>
865
+ </tr>
866
+ }
867
+ </tbody>
868
+ </table>
869
+ </div>
870
+ </div>
871
+
872
+ <!-- ===== SPLITBAR ===== -->
873
+ <div class="k-splitbar" (pointerdown)="onSplitBarDown($event)">
874
+ <span class="k-splitbar-icon">&#8942;</span>
875
+ </div>
876
+
877
+ <!-- ===== TIMELINE (Right Panel) ===== -->
878
+ <div class="k-gantt-timeline">
879
+ <!-- Timeline Header -->
880
+ <div class="k-timeline-header" [style.height.px]="mergedConfig().headerHeight">
881
+ <div class="k-timeline-header-wrap" [style.width.px]="totalWidth()" [style.margin-left.px]="-(scrollLeft())">
882
+ <!-- Primary header row (months/years) -->
883
+ <div class="k-header-row k-header-primary">
884
+ @for (group of primaryHeaderGroups(); track group.label + group.x) {
885
+ <div
886
+ class="k-header-group-cell"
887
+ [style.left.px]="group.x"
888
+ [style.width.px]="group.width"
889
+ >
890
+ {{ group.label }}
891
+ </div>
892
+ }
893
+ </div>
894
+ <!-- Secondary header row (days/weeks/months) -->
895
+ <div class="k-header-row k-header-secondary">
896
+ @for (col of headerColumns(); track col.x) {
897
+ <div
898
+ class="k-header-tick-cell"
899
+ [style.left.px]="col.x"
900
+ [style.width.px]="col.width"
901
+ [class.k-weekend]="col.isWeekend"
902
+ [class.k-today-header]="col.isToday"
903
+ >
904
+ {{ col.label }}
905
+ </div>
906
+ }
907
+ </div>
908
+ </div>
909
+ </div>
910
+
911
+ <!-- Timeline Content (Scrollable) -->
912
+ <div class="k-timeline-content" #timelineContent (scroll)="onTimelineScroll()">
913
+ <div class="k-timeline-canvas" [style.width.px]="totalWidth()" [style.height.px]="totalHeight()">
914
+
915
+ <!-- Background rows (alternating + hover) -->
916
+ <div class="k-gantt-rows">
917
+ @for (row of visibleRows(); track row.task.id; let i = $index) {
918
+ <div
919
+ class="k-gantt-row"
920
+ [style.top.px]="i * mergedConfig().rowHeight"
921
+ [style.height.px]="mergedConfig().rowHeight"
922
+ [class.k-alt]="i % 2 === 1"
923
+ [class.k-hover]="hoveredTaskId() === row.task.id"
924
+ [class.k-selected]="selectedTaskId() === row.task.id"
925
+ (mouseenter)="hoveredTaskId.set(row.task.id)"
926
+ (mouseleave)="hoveredTaskId.set(null)"
927
+ >
928
+ </div>
929
+ }
930
+ </div>
931
+
932
+ <!-- Vertical column lines -->
933
+ <div class="k-gantt-columns">
934
+ @for (col of headerColumns(); track col.x) {
935
+ <div
936
+ class="k-gantt-column"
937
+ [style.left.px]="col.x"
938
+ [style.width.px]="col.width"
939
+ [style.height.px]="totalHeight()"
940
+ [class.k-weekend-col]="col.isWeekend"
941
+ >
942
+ </div>
943
+ }
944
+ </div>
945
+
946
+ <!-- Today marker -->
947
+ @if (mergedConfig().showTodayMarker && todayX() !== null) {
948
+ <div
949
+ class="k-today-marker"
950
+ [style.left.px]="todayX()"
951
+ [style.height.px]="totalHeight()"
952
+ >
953
+ <div class="k-today-indicator"></div>
954
+ </div>
955
+ }
956
+
957
+ <!-- Task bars layer -->
958
+ <div class="k-gantt-tasks">
959
+ @for (bar of taskBars(); track bar.task.id) {
960
+ <div
961
+ class="k-task-wrap"
962
+ [style.top.px]="bar.top"
963
+ [style.height.px]="mergedConfig().rowHeight"
964
+ >
965
+ @if (bar.task.isMilestone) {
966
+ <!-- Milestone diamond -->
967
+ <div
968
+ class="k-milestone"
969
+ [style.left.px]="bar.left - 8"
970
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
971
+ [class.k-selected]="selectedTaskId() === bar.task.id"
972
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
973
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
974
+ (click)="onTaskBarClick(bar.task, $event)"
975
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
976
+ tabindex="0"
977
+ [attr.aria-label]="'Milestone: ' + bar.task.name"
978
+ >
979
+ <div class="k-milestone-diamond" [style.background]="bar.task.color || null"></div>
980
+ </div>
981
+ } @else if (bar.isSummary) {
982
+ <!-- Summary bar (parent task) -->
983
+ <div
984
+ class="k-task-summary"
985
+ [style.left.px]="bar.left"
986
+ [style.width.px]="bar.width"
987
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
988
+ [class.k-selected]="selectedTaskId() === bar.task.id"
989
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
990
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
991
+ (click)="onTaskBarClick(bar.task, $event)"
992
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
993
+ tabindex="0"
994
+ [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
995
+ >
996
+ <div class="k-summary-bar">
997
+ <div class="k-summary-progress" [style.width.%]="bar.task.progress"></div>
998
+ </div>
999
+ <div class="k-summary-left-cap"></div>
1000
+ <div class="k-summary-right-cap"></div>
1001
+ </div>
1002
+ } @else {
1003
+ <!-- Regular task bar -->
1004
+ <div
1005
+ class="k-task"
1006
+ [style.left.px]="bar.left"
1007
+ [style.width.px]="bar.width"
1008
+ [style.background]="bar.task.color || null"
1009
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1010
+ [class.k-selected]="selectedTaskId() === bar.task.id"
1011
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
1012
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
1013
+ (pointerdown)="onBarPointerDown($event, bar.task, 'move')"
1014
+ (click)="onTaskBarClick(bar.task, $event)"
1015
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
1016
+ tabindex="0"
1017
+ role="img"
1018
+ [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
1019
+ >
1020
+ <!-- Progress fill -->
1021
+ <div class="k-task-progress" [style.width.%]="bar.task.progress">
1022
+ <div class="k-task-progress-inner"></div>
1023
+ </div>
1024
+ <!-- Task text -->
1025
+ <span class="k-task-text">{{ bar.task.name }}</span>
1026
+ <!-- Resize handles -->
1027
+ @if (bar.task.draggable !== false) {
1028
+ <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
1029
+ <div class="k-resize-handle k-resize-e" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-right')"></div>
1030
+ }
1031
+ </div>
1032
+ }
1033
+ </div>
1034
+ }
1035
+ </div>
1036
+
1037
+ <!-- Dependency arrows (SVG overlay) -->
1038
+ <svg class="k-gantt-dependencies" [attr.width]="totalWidth()" [attr.height]="totalHeight()">
1039
+ <defs>
1040
+ <marker id="k-arrowhead" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto">
1041
+ <polygon points="0 0, 10 3.5, 0 7" fill="var(--ngx-gantt-arrow-color, #ff6358)"/>
1042
+ </marker>
1043
+ </defs>
1044
+ @for (dep of dependencyPaths(); track dep.key) {
1045
+ <path
1046
+ class="k-dep-line"
1047
+ [attr.d]="dep.path"
1048
+ [attr.stroke]="dep.dependency.color || null"
1049
+ marker-end="url(#k-arrowhead)"
1050
+ (click)="onDependencyClick(dep.dependency, $event)"
1051
+ />
1052
+ }
1053
+ </svg>
1054
+
1055
+ </div>
1056
+ </div>
1057
+ </div>
1058
+ </div>
1059
+
1060
+ <!-- ===== TASK TOOLTIP ===== -->
1061
+ @if (tooltipTask()) {
1062
+ <div
1063
+ class="k-bar-tooltip"
1064
+ [style.left.px]="tooltipX()"
1065
+ [style.top.px]="tooltipY()"
1066
+ >
1067
+ <div class="k-bar-tooltip-title">{{ tooltipTask()!.name }}</div>
1068
+ <div class="k-bar-tooltip-row">
1069
+ <span class="k-bar-tooltip-label">Start</span>
1070
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.start) }}</span>
1071
+ </div>
1072
+ <div class="k-bar-tooltip-row">
1073
+ <span class="k-bar-tooltip-label">End</span>
1074
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.end) }}</span>
1075
+ </div>
1076
+ <div class="k-bar-tooltip-row">
1077
+ <span class="k-bar-tooltip-label">Progress</span>
1078
+ <span class="k-bar-tooltip-value">{{ tooltipTask()!.progress }}%</span>
1079
+ </div>
1080
+ @for (entry of getMetaEntries(tooltipTask()!.meta); track entry.key) {
1081
+ <div class="k-bar-tooltip-row">
1082
+ <span class="k-bar-tooltip-label">{{ entry.key }}</span>
1083
+ <span class="k-bar-tooltip-value">{{ entry.value }}</span>
1084
+ </div>
1085
+ }
1086
+ </div>
1087
+ }
1088
+
1089
+ <!-- ===== ROW TOOLTIP (multi-task rows) ===== -->
1090
+ @if (rowTooltipData()) {
1091
+ <div
1092
+ class="k-bar-tooltip k-row-tooltip"
1093
+ [style.left.px]="rowTooltipX()"
1094
+ [style.top.px]="rowTooltipY()"
1095
+ >
1096
+ <div class="k-bar-tooltip-title">Tasks in this row</div>
1097
+ @for (t of rowTooltipData()!.allTasks; track t.id) {
1098
+ <div class="k-row-tooltip-task">
1099
+ <span class="k-row-tooltip-dot" [style.background]="t.color || '#4a90d9'"></span>
1100
+ <span class="k-row-tooltip-name">{{ t.name }}</span>
1101
+ <span class="k-bar-tooltip-label">{{ formatDateShort(t.start) }}–{{ formatDateShort(t.end) }}</span>
1102
+ <span class="k-bar-tooltip-value">{{ t.progress }}%</span>
1103
+ </div>
1104
+ }
1105
+ </div>
1106
+ }
1107
+ `, isInline: true, styles: [":host{display:block}.k-gantt{display:flex;height:100%;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-name-wrapper{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:2px;overflow:hidden}.k-extra-tasks-chips{display:flex;flex-wrap:wrap;gap:3px}.k-extra-task-chip{display:inline-flex;align-items:center;padding:0 5px;height:14px;border-radius:7px;font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;opacity:.9;font-weight:500;letter-spacing:.01em}.k-multi-pct{cursor:help}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}@keyframes k-tooltip-fadein{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.k-bar-tooltip{position:fixed;z-index:9999;background:var(--ngx-gantt-tooltip-bg, #2d3748);color:var(--ngx-gantt-tooltip-text, #ffffff);border-radius:6px;padding:10px 14px;min-width:180px;box-shadow:0 4px 16px #00000038;pointer-events:none;font-size:12px;line-height:1.5;animation:k-tooltip-fadein .15s ease}.k-bar-tooltip-title{font-weight:700;font-size:13px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.k-bar-tooltip-row{display:flex;justify-content:space-between;gap:12px;margin-top:3px}.k-bar-tooltip-label{color:var(--ngx-gantt-tooltip-label, rgba(255,255,255,.65));white-space:nowrap}.k-bar-tooltip-value{font-weight:500;white-space:nowrap}.k-row-tooltip{min-width:240px}.k-row-tooltip-task{display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.12)}.k-row-tooltip-task:first-of-type{border-top:none}.k-row-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.k-row-tooltip-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
923
1108
  }
924
1109
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GanttChartComponent, decorators: [{
925
1110
  type: Component,
@@ -927,264 +1112,341 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
927
1112
  GanttScaleService,
928
1113
  GanttLayoutService,
929
1114
  GanttKeyboardService,
930
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: `
931
- <div class="k-gantt" [class.k-gantt-dark]="false" (keydown)="onKeyDown($event)">
932
-
933
- <!-- ===== TREELIST (Left Panel) ===== -->
934
- <div class="k-gantt-treelist" [style.width.px]="mergedConfig().sidebarWidth">
935
- <!-- Treelist Header -->
936
- <div class="k-treelist-header" [style.height.px]="mergedConfig().headerHeight">
937
- <table class="k-treelist-header-table">
938
- <colgroup>
939
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
940
- <col style="width: 80px"/>
941
- <col style="width: 80px"/>
942
- <col style="width: 60px"/>
943
- </colgroup>
944
- <thead>
945
- <tr>
946
- <th class="k-header-cell">Task Name</th>
947
- <th class="k-header-cell">Start</th>
948
- <th class="k-header-cell">End</th>
949
- <th class="k-header-cell">%</th>
950
- </tr>
951
- </thead>
952
- </table>
953
- </div>
954
-
955
- <!-- Treelist Body -->
956
- <div class="k-treelist-content" #treelistContent>
957
- <table class="k-treelist-table">
958
- <colgroup>
959
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
960
- <col style="width: 80px"/>
961
- <col style="width: 80px"/>
962
- <col style="width: 60px"/>
963
- </colgroup>
964
- <tbody>
965
- @for (row of visibleRows(); track row.task.id; let i = $index) {
966
- <tr
967
- class="k-treelist-row"
968
- [style.height.px]="mergedConfig().rowHeight"
969
- [class.k-alt]="i % 2 === 1"
970
- [class.k-selected]="selectedTaskId() === row.task.id"
971
- [class.k-hover]="hoveredTaskId() === row.task.id"
972
- (mouseenter)="hoveredTaskId.set(row.task.id)"
973
- (mouseleave)="hoveredTaskId.set(null)"
974
- (click)="onRowClick(row.task, $event)"
975
- >
976
- <td class="k-treelist-cell k-name-cell">
977
- <span class="k-indent" [style.width.px]="row.depth * 20"></span>
978
- @if (row.hasChildren && mergedConfig().collapsible) {
979
- <button
980
- class="k-collapse-btn"
981
- (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
982
- [attr.aria-expanded]="!row.task.collapsed"
983
- >
984
- <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
985
- </button>
986
- } @else {
987
- <span class="k-collapse-spacer"></span>
988
- }
989
- @if (row.task.isMilestone) {
990
- <span class="k-milestone-icon">&#9670;</span>
991
- }
992
- <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
993
- {{ row.task.name }}
994
- </span>
995
- </td>
996
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(row.task.start) }}</td>
997
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(row.task.end) }}</td>
998
- <td class="k-treelist-cell k-pct-cell">{{ row.task.progress }}%</td>
999
- </tr>
1000
- }
1001
- </tbody>
1002
- </table>
1003
- </div>
1004
- </div>
1005
-
1006
- <!-- ===== SPLITBAR ===== -->
1007
- <div class="k-splitbar" (pointerdown)="onSplitBarDown($event)">
1008
- <span class="k-splitbar-icon">&#8942;</span>
1009
- </div>
1010
-
1011
- <!-- ===== TIMELINE (Right Panel) ===== -->
1012
- <div class="k-gantt-timeline">
1013
- <!-- Timeline Header -->
1014
- <div class="k-timeline-header" [style.height.px]="mergedConfig().headerHeight">
1015
- <div class="k-timeline-header-wrap" [style.width.px]="totalWidth()" [style.margin-left.px]="-(scrollLeft())">
1016
- <!-- Primary header row (months/years) -->
1017
- <div class="k-header-row k-header-primary">
1018
- @for (group of primaryHeaderGroups(); track group.label + group.x) {
1019
- <div
1020
- class="k-header-group-cell"
1021
- [style.left.px]="group.x"
1022
- [style.width.px]="group.width"
1023
- >
1024
- {{ group.label }}
1025
- </div>
1026
- }
1027
- </div>
1028
- <!-- Secondary header row (days/weeks/months) -->
1029
- <div class="k-header-row k-header-secondary">
1030
- @for (col of headerColumns(); track col.x) {
1031
- <div
1032
- class="k-header-tick-cell"
1033
- [style.left.px]="col.x"
1034
- [style.width.px]="col.width"
1035
- [class.k-weekend]="col.isWeekend"
1036
- [class.k-today-header]="col.isToday"
1037
- >
1038
- {{ col.label }}
1039
- </div>
1040
- }
1041
- </div>
1042
- </div>
1043
- </div>
1044
-
1045
- <!-- Timeline Content (Scrollable) -->
1046
- <div class="k-timeline-content" #timelineContent (scroll)="onTimelineScroll()">
1047
- <div class="k-timeline-canvas" [style.width.px]="totalWidth()" [style.height.px]="totalHeight()">
1048
-
1049
- <!-- Background rows (alternating + hover) -->
1050
- <div class="k-gantt-rows">
1051
- @for (row of visibleRows(); track row.task.id; let i = $index) {
1052
- <div
1053
- class="k-gantt-row"
1054
- [style.top.px]="i * mergedConfig().rowHeight"
1055
- [style.height.px]="mergedConfig().rowHeight"
1056
- [class.k-alt]="i % 2 === 1"
1057
- [class.k-hover]="hoveredTaskId() === row.task.id"
1058
- [class.k-selected]="selectedTaskId() === row.task.id"
1059
- (mouseenter)="hoveredTaskId.set(row.task.id)"
1060
- (mouseleave)="hoveredTaskId.set(null)"
1061
- >
1062
- </div>
1063
- }
1064
- </div>
1065
-
1066
- <!-- Vertical column lines -->
1067
- <div class="k-gantt-columns">
1068
- @for (col of headerColumns(); track col.x) {
1069
- <div
1070
- class="k-gantt-column"
1071
- [style.left.px]="col.x"
1072
- [style.width.px]="col.width"
1073
- [style.height.px]="totalHeight()"
1074
- [class.k-weekend-col]="col.isWeekend"
1075
- >
1076
- </div>
1077
- }
1078
- </div>
1079
-
1080
- <!-- Today marker -->
1081
- @if (mergedConfig().showTodayMarker && todayX() !== null) {
1082
- <div
1083
- class="k-today-marker"
1084
- [style.left.px]="todayX()"
1085
- [style.height.px]="totalHeight()"
1086
- >
1087
- <div class="k-today-indicator"></div>
1088
- </div>
1089
- }
1090
-
1091
- <!-- Task bars layer -->
1092
- <div class="k-gantt-tasks">
1093
- @for (bar of taskBars(); track bar.task.id) {
1094
- <div
1095
- class="k-task-wrap"
1096
- [style.top.px]="bar.top"
1097
- [style.height.px]="mergedConfig().rowHeight"
1098
- >
1099
- @if (bar.task.isMilestone) {
1100
- <!-- Milestone diamond -->
1101
- <div
1102
- class="k-milestone"
1103
- [style.left.px]="bar.left - 8"
1104
- [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1105
- [class.k-selected]="selectedTaskId() === bar.task.id"
1106
- (click)="onTaskBarClick(bar.task, $event)"
1107
- (dblclick)="onTaskBarDblClick(bar.task, $event)"
1108
- tabindex="0"
1109
- [attr.aria-label]="'Milestone: ' + bar.task.name"
1110
- >
1111
- <div class="k-milestone-diamond" [style.background]="bar.task.color || null"></div>
1112
- </div>
1113
- } @else if (bar.isSummary) {
1114
- <!-- Summary bar (parent task) -->
1115
- <div
1116
- class="k-task-summary"
1117
- [style.left.px]="bar.left"
1118
- [style.width.px]="bar.width"
1119
- [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1120
- [class.k-selected]="selectedTaskId() === bar.task.id"
1121
- (click)="onTaskBarClick(bar.task, $event)"
1122
- (dblclick)="onTaskBarDblClick(bar.task, $event)"
1123
- tabindex="0"
1124
- [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
1125
- >
1126
- <div class="k-summary-bar">
1127
- <div class="k-summary-progress" [style.width.%]="bar.task.progress"></div>
1128
- </div>
1129
- <div class="k-summary-left-cap"></div>
1130
- <div class="k-summary-right-cap"></div>
1131
- </div>
1132
- } @else {
1133
- <!-- Regular task bar -->
1134
- <div
1135
- class="k-task"
1136
- [style.left.px]="bar.left"
1137
- [style.width.px]="bar.width"
1138
- [style.background]="bar.task.color || null"
1139
- [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1140
- [class.k-selected]="selectedTaskId() === bar.task.id"
1141
- (pointerdown)="onBarPointerDown($event, bar.task, 'move')"
1142
- (click)="onTaskBarClick(bar.task, $event)"
1143
- (dblclick)="onTaskBarDblClick(bar.task, $event)"
1144
- tabindex="0"
1145
- role="img"
1146
- [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
1147
- >
1148
- <!-- Progress fill -->
1149
- <div class="k-task-progress" [style.width.%]="bar.task.progress">
1150
- <div class="k-task-progress-inner"></div>
1151
- </div>
1152
- <!-- Task text -->
1153
- <span class="k-task-text">{{ bar.task.name }}</span>
1154
- <!-- Resize handles -->
1155
- @if (bar.task.draggable !== false) {
1156
- <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
1157
- <div class="k-resize-handle k-resize-e" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-right')"></div>
1158
- }
1159
- </div>
1160
- }
1161
- </div>
1162
- }
1163
- </div>
1164
-
1165
- <!-- Dependency arrows (SVG overlay) -->
1166
- <svg class="k-gantt-dependencies" [attr.width]="totalWidth()" [attr.height]="totalHeight()">
1167
- <defs>
1168
- <marker id="k-arrowhead" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto">
1169
- <polygon points="0 0, 10 3.5, 0 7" fill="var(--ngx-gantt-arrow-color, #ff6358)"/>
1170
- </marker>
1171
- </defs>
1172
- @for (dep of dependencyPaths(); track dep.key) {
1173
- <path
1174
- class="k-dep-line"
1175
- [attr.d]="dep.path"
1176
- [attr.stroke]="dep.dependency.color || null"
1177
- marker-end="url(#k-arrowhead)"
1178
- (click)="onDependencyClick(dep.dependency, $event)"
1179
- />
1180
- }
1181
- </svg>
1182
-
1183
- </div>
1184
- </div>
1185
- </div>
1186
- </div>
1187
- `, styles: [":host{display:block}.k-gantt{display:flex;height:100%;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}\n"] }]
1115
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: `
1116
+ <div class="k-gantt" [class.k-gantt-dark]="false" (keydown)="onKeyDown($event)">
1117
+
1118
+ <!-- ===== TREELIST (Left Panel) ===== -->
1119
+ <div class="k-gantt-treelist" [style.width.px]="mergedConfig().sidebarWidth">
1120
+ <!-- Treelist Header -->
1121
+ <div class="k-treelist-header" [style.height.px]="mergedConfig().headerHeight">
1122
+ <table class="k-treelist-header-table">
1123
+ <colgroup>
1124
+ <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
1125
+ <col style="width: 80px"/>
1126
+ <col style="width: 80px"/>
1127
+ <col style="width: 60px"/>
1128
+ </colgroup>
1129
+ <thead>
1130
+ <tr>
1131
+ <th class="k-header-cell">Task Name</th>
1132
+ <th class="k-header-cell">Start</th>
1133
+ <th class="k-header-cell">End</th>
1134
+ <th class="k-header-cell">%</th>
1135
+ </tr>
1136
+ </thead>
1137
+ </table>
1138
+ </div>
1139
+
1140
+ <!-- Treelist Body -->
1141
+ <div class="k-treelist-content" #treelistContent>
1142
+ <table class="k-treelist-table">
1143
+ <colgroup>
1144
+ <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
1145
+ <col style="width: 80px"/>
1146
+ <col style="width: 80px"/>
1147
+ <col style="width: 60px"/>
1148
+ </colgroup>
1149
+ <tbody>
1150
+ @for (row of visibleRows(); track row.task.id; let i = $index) {
1151
+ <tr
1152
+ class="k-treelist-row"
1153
+ [style.height.px]="mergedConfig().rowHeight"
1154
+ [class.k-alt]="i % 2 === 1"
1155
+ [class.k-selected]="selectedTaskId() === row.task.id"
1156
+ [class.k-hover]="hoveredTaskId() === row.task.id"
1157
+ (mouseenter)="hoveredTaskId.set(row.task.id)"
1158
+ (mouseleave)="hoveredTaskId.set(null)"
1159
+ (click)="onRowClick(row.task, $event)"
1160
+ >
1161
+ <td class="k-treelist-cell k-name-cell"
1162
+ (mouseenter)="row.extraTasks.length > 0 ? showRowTooltip(row, $event) : null"
1163
+ (mousemove)="row.extraTasks.length > 0 ? updateRowTooltip($event) : null"
1164
+ (mouseleave)="row.extraTasks.length > 0 ? hideRowTooltip() : null"
1165
+ >
1166
+ <span class="k-indent" [style.width.px]="row.depth * 20"></span>
1167
+ @if (row.hasChildren && mergedConfig().collapsible) {
1168
+ <button
1169
+ class="k-collapse-btn"
1170
+ (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
1171
+ [attr.aria-expanded]="!row.task.collapsed"
1172
+ >
1173
+ <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
1174
+ </button>
1175
+ } @else {
1176
+ <span class="k-collapse-spacer"></span>
1177
+ }
1178
+ @if (row.task.isMilestone) {
1179
+ <span class="k-milestone-icon">&#9670;</span>
1180
+ }
1181
+ <div class="k-name-wrapper">
1182
+ <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
1183
+ {{ row.task.name }}
1184
+ </span>
1185
+ @if (row.extraTasks.length > 0) {
1186
+ <div class="k-extra-tasks-chips">
1187
+ @for (extra of row.extraTasks; track extra.id) {
1188
+ <span
1189
+ class="k-extra-task-chip"
1190
+ [style.background]="extra.color || '#6c757d'"
1191
+ [title]="extra.name"
1192
+ >{{ extra.name.length > 14 ? extra.name.slice(0, 14) + '…' : extra.name }}</span>
1193
+ }
1194
+ </div>
1195
+ }
1196
+ </div>
1197
+ </td>
1198
+ <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowStart(row)) }}</td>
1199
+ <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowEnd(row)) }}</td>
1200
+ <td class="k-treelist-cell k-pct-cell">
1201
+ @if (row.extraTasks.length > 0) {
1202
+ <span class="k-multi-pct" [title]="getRowProgressTitle(row)">~{{ getRowAvgProgress(row) }}%</span>
1203
+ } @else {
1204
+ {{ row.task.progress }}%
1205
+ }
1206
+ </td>
1207
+ </tr>
1208
+ }
1209
+ </tbody>
1210
+ </table>
1211
+ </div>
1212
+ </div>
1213
+
1214
+ <!-- ===== SPLITBAR ===== -->
1215
+ <div class="k-splitbar" (pointerdown)="onSplitBarDown($event)">
1216
+ <span class="k-splitbar-icon">&#8942;</span>
1217
+ </div>
1218
+
1219
+ <!-- ===== TIMELINE (Right Panel) ===== -->
1220
+ <div class="k-gantt-timeline">
1221
+ <!-- Timeline Header -->
1222
+ <div class="k-timeline-header" [style.height.px]="mergedConfig().headerHeight">
1223
+ <div class="k-timeline-header-wrap" [style.width.px]="totalWidth()" [style.margin-left.px]="-(scrollLeft())">
1224
+ <!-- Primary header row (months/years) -->
1225
+ <div class="k-header-row k-header-primary">
1226
+ @for (group of primaryHeaderGroups(); track group.label + group.x) {
1227
+ <div
1228
+ class="k-header-group-cell"
1229
+ [style.left.px]="group.x"
1230
+ [style.width.px]="group.width"
1231
+ >
1232
+ {{ group.label }}
1233
+ </div>
1234
+ }
1235
+ </div>
1236
+ <!-- Secondary header row (days/weeks/months) -->
1237
+ <div class="k-header-row k-header-secondary">
1238
+ @for (col of headerColumns(); track col.x) {
1239
+ <div
1240
+ class="k-header-tick-cell"
1241
+ [style.left.px]="col.x"
1242
+ [style.width.px]="col.width"
1243
+ [class.k-weekend]="col.isWeekend"
1244
+ [class.k-today-header]="col.isToday"
1245
+ >
1246
+ {{ col.label }}
1247
+ </div>
1248
+ }
1249
+ </div>
1250
+ </div>
1251
+ </div>
1252
+
1253
+ <!-- Timeline Content (Scrollable) -->
1254
+ <div class="k-timeline-content" #timelineContent (scroll)="onTimelineScroll()">
1255
+ <div class="k-timeline-canvas" [style.width.px]="totalWidth()" [style.height.px]="totalHeight()">
1256
+
1257
+ <!-- Background rows (alternating + hover) -->
1258
+ <div class="k-gantt-rows">
1259
+ @for (row of visibleRows(); track row.task.id; let i = $index) {
1260
+ <div
1261
+ class="k-gantt-row"
1262
+ [style.top.px]="i * mergedConfig().rowHeight"
1263
+ [style.height.px]="mergedConfig().rowHeight"
1264
+ [class.k-alt]="i % 2 === 1"
1265
+ [class.k-hover]="hoveredTaskId() === row.task.id"
1266
+ [class.k-selected]="selectedTaskId() === row.task.id"
1267
+ (mouseenter)="hoveredTaskId.set(row.task.id)"
1268
+ (mouseleave)="hoveredTaskId.set(null)"
1269
+ >
1270
+ </div>
1271
+ }
1272
+ </div>
1273
+
1274
+ <!-- Vertical column lines -->
1275
+ <div class="k-gantt-columns">
1276
+ @for (col of headerColumns(); track col.x) {
1277
+ <div
1278
+ class="k-gantt-column"
1279
+ [style.left.px]="col.x"
1280
+ [style.width.px]="col.width"
1281
+ [style.height.px]="totalHeight()"
1282
+ [class.k-weekend-col]="col.isWeekend"
1283
+ >
1284
+ </div>
1285
+ }
1286
+ </div>
1287
+
1288
+ <!-- Today marker -->
1289
+ @if (mergedConfig().showTodayMarker && todayX() !== null) {
1290
+ <div
1291
+ class="k-today-marker"
1292
+ [style.left.px]="todayX()"
1293
+ [style.height.px]="totalHeight()"
1294
+ >
1295
+ <div class="k-today-indicator"></div>
1296
+ </div>
1297
+ }
1298
+
1299
+ <!-- Task bars layer -->
1300
+ <div class="k-gantt-tasks">
1301
+ @for (bar of taskBars(); track bar.task.id) {
1302
+ <div
1303
+ class="k-task-wrap"
1304
+ [style.top.px]="bar.top"
1305
+ [style.height.px]="mergedConfig().rowHeight"
1306
+ >
1307
+ @if (bar.task.isMilestone) {
1308
+ <!-- Milestone diamond -->
1309
+ <div
1310
+ class="k-milestone"
1311
+ [style.left.px]="bar.left - 8"
1312
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1313
+ [class.k-selected]="selectedTaskId() === bar.task.id"
1314
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
1315
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
1316
+ (click)="onTaskBarClick(bar.task, $event)"
1317
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
1318
+ tabindex="0"
1319
+ [attr.aria-label]="'Milestone: ' + bar.task.name"
1320
+ >
1321
+ <div class="k-milestone-diamond" [style.background]="bar.task.color || null"></div>
1322
+ </div>
1323
+ } @else if (bar.isSummary) {
1324
+ <!-- Summary bar (parent task) -->
1325
+ <div
1326
+ class="k-task-summary"
1327
+ [style.left.px]="bar.left"
1328
+ [style.width.px]="bar.width"
1329
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1330
+ [class.k-selected]="selectedTaskId() === bar.task.id"
1331
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
1332
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
1333
+ (click)="onTaskBarClick(bar.task, $event)"
1334
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
1335
+ tabindex="0"
1336
+ [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
1337
+ >
1338
+ <div class="k-summary-bar">
1339
+ <div class="k-summary-progress" [style.width.%]="bar.task.progress"></div>
1340
+ </div>
1341
+ <div class="k-summary-left-cap"></div>
1342
+ <div class="k-summary-right-cap"></div>
1343
+ </div>
1344
+ } @else {
1345
+ <!-- Regular task bar -->
1346
+ <div
1347
+ class="k-task"
1348
+ [style.left.px]="bar.left"
1349
+ [style.width.px]="bar.width"
1350
+ [style.background]="bar.task.color || null"
1351
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1352
+ [class.k-selected]="selectedTaskId() === bar.task.id"
1353
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
1354
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
1355
+ (pointerdown)="onBarPointerDown($event, bar.task, 'move')"
1356
+ (click)="onTaskBarClick(bar.task, $event)"
1357
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
1358
+ tabindex="0"
1359
+ role="img"
1360
+ [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
1361
+ >
1362
+ <!-- Progress fill -->
1363
+ <div class="k-task-progress" [style.width.%]="bar.task.progress">
1364
+ <div class="k-task-progress-inner"></div>
1365
+ </div>
1366
+ <!-- Task text -->
1367
+ <span class="k-task-text">{{ bar.task.name }}</span>
1368
+ <!-- Resize handles -->
1369
+ @if (bar.task.draggable !== false) {
1370
+ <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
1371
+ <div class="k-resize-handle k-resize-e" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-right')"></div>
1372
+ }
1373
+ </div>
1374
+ }
1375
+ </div>
1376
+ }
1377
+ </div>
1378
+
1379
+ <!-- Dependency arrows (SVG overlay) -->
1380
+ <svg class="k-gantt-dependencies" [attr.width]="totalWidth()" [attr.height]="totalHeight()">
1381
+ <defs>
1382
+ <marker id="k-arrowhead" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto">
1383
+ <polygon points="0 0, 10 3.5, 0 7" fill="var(--ngx-gantt-arrow-color, #ff6358)"/>
1384
+ </marker>
1385
+ </defs>
1386
+ @for (dep of dependencyPaths(); track dep.key) {
1387
+ <path
1388
+ class="k-dep-line"
1389
+ [attr.d]="dep.path"
1390
+ [attr.stroke]="dep.dependency.color || null"
1391
+ marker-end="url(#k-arrowhead)"
1392
+ (click)="onDependencyClick(dep.dependency, $event)"
1393
+ />
1394
+ }
1395
+ </svg>
1396
+
1397
+ </div>
1398
+ </div>
1399
+ </div>
1400
+ </div>
1401
+
1402
+ <!-- ===== TASK TOOLTIP ===== -->
1403
+ @if (tooltipTask()) {
1404
+ <div
1405
+ class="k-bar-tooltip"
1406
+ [style.left.px]="tooltipX()"
1407
+ [style.top.px]="tooltipY()"
1408
+ >
1409
+ <div class="k-bar-tooltip-title">{{ tooltipTask()!.name }}</div>
1410
+ <div class="k-bar-tooltip-row">
1411
+ <span class="k-bar-tooltip-label">Start</span>
1412
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.start) }}</span>
1413
+ </div>
1414
+ <div class="k-bar-tooltip-row">
1415
+ <span class="k-bar-tooltip-label">End</span>
1416
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.end) }}</span>
1417
+ </div>
1418
+ <div class="k-bar-tooltip-row">
1419
+ <span class="k-bar-tooltip-label">Progress</span>
1420
+ <span class="k-bar-tooltip-value">{{ tooltipTask()!.progress }}%</span>
1421
+ </div>
1422
+ @for (entry of getMetaEntries(tooltipTask()!.meta); track entry.key) {
1423
+ <div class="k-bar-tooltip-row">
1424
+ <span class="k-bar-tooltip-label">{{ entry.key }}</span>
1425
+ <span class="k-bar-tooltip-value">{{ entry.value }}</span>
1426
+ </div>
1427
+ }
1428
+ </div>
1429
+ }
1430
+
1431
+ <!-- ===== ROW TOOLTIP (multi-task rows) ===== -->
1432
+ @if (rowTooltipData()) {
1433
+ <div
1434
+ class="k-bar-tooltip k-row-tooltip"
1435
+ [style.left.px]="rowTooltipX()"
1436
+ [style.top.px]="rowTooltipY()"
1437
+ >
1438
+ <div class="k-bar-tooltip-title">Tasks in this row</div>
1439
+ @for (t of rowTooltipData()!.allTasks; track t.id) {
1440
+ <div class="k-row-tooltip-task">
1441
+ <span class="k-row-tooltip-dot" [style.background]="t.color || '#4a90d9'"></span>
1442
+ <span class="k-row-tooltip-name">{{ t.name }}</span>
1443
+ <span class="k-bar-tooltip-label">{{ formatDateShort(t.start) }}–{{ formatDateShort(t.end) }}</span>
1444
+ <span class="k-bar-tooltip-value">{{ t.progress }}%</span>
1445
+ </div>
1446
+ }
1447
+ </div>
1448
+ }
1449
+ `, styles: [":host{display:block}.k-gantt{display:flex;height:100%;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-name-wrapper{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:2px;overflow:hidden}.k-extra-tasks-chips{display:flex;flex-wrap:wrap;gap:3px}.k-extra-task-chip{display:inline-flex;align-items:center;padding:0 5px;height:14px;border-radius:7px;font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;opacity:.9;font-weight:500;letter-spacing:.01em}.k-multi-pct{cursor:help}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}@keyframes k-tooltip-fadein{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.k-bar-tooltip{position:fixed;z-index:9999;background:var(--ngx-gantt-tooltip-bg, #2d3748);color:var(--ngx-gantt-tooltip-text, #ffffff);border-radius:6px;padding:10px 14px;min-width:180px;box-shadow:0 4px 16px #00000038;pointer-events:none;font-size:12px;line-height:1.5;animation:k-tooltip-fadein .15s ease}.k-bar-tooltip-title{font-weight:700;font-size:13px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.k-bar-tooltip-row{display:flex;justify-content:space-between;gap:12px;margin-top:3px}.k-bar-tooltip-label{color:var(--ngx-gantt-tooltip-label, rgba(255,255,255,.65));white-space:nowrap}.k-bar-tooltip-value{font-weight:500;white-space:nowrap}.k-row-tooltip{min-width:240px}.k-row-tooltip-task{display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.12)}.k-row-tooltip-task:first-of-type{border-top:none}.k-row-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.k-row-tooltip-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
1188
1450
  }] });
1189
1451
 
1190
1452
  // Shared chart utilities and constants
@@ -1296,182 +1558,182 @@ class BarChartComponent {
1296
1558
  onMouseMove(event) { }
1297
1559
  fmtNum = fmtNum;
1298
1560
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1299
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BarChartComponent, isStandalone: true, selector: "ngx-bar-chart", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showGrid: { classPropertyName: "showGrid", publicName: "showGrid", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "svgEl", first: true, predicate: ["svgEl"], descendants: true, isSignal: true }], ngImport: i0, template: `
1300
- <div class="ngx-bar-chart">
1301
- <!-- Legend -->
1302
- @if (showLegend()) {
1303
- <div class="chart-legend">
1304
- @for (s of series(); track s.name; let i = $index) {
1305
- <span class="legend-item">
1306
- <span class="legend-dot" [style.background]="seriesColor(i)"></span>
1307
- {{ s.name }}
1308
- </span>
1309
- }
1310
- </div>
1311
- }
1312
- <!-- SVG Chart -->
1313
- <svg
1314
- [attr.width]="'100%'"
1315
- [attr.height]="chartHeight()"
1316
- class="chart-svg"
1317
- (mousemove)="onMouseMove($event)"
1318
- (mouseleave)="tooltip.set(null)"
1319
- >
1320
- <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1321
-
1322
- <!-- Y axis grid lines + labels -->
1323
- @for (tick of yTicks(); track tick) {
1324
- <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1325
- @if (showGrid()) {
1326
- <line
1327
- [attr.x1]="0" [attr.x2]="innerW()"
1328
- stroke="var(--ngx-chart-grid, #ebedf0)" stroke-dasharray="3,3"
1329
- />
1330
- }
1331
- <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1332
- </g>
1333
- }
1334
-
1335
- <!-- X axis category labels -->
1336
- @for (cat of categories(); track cat; let i = $index) {
1337
- <text
1338
- [attr.x]="catMidX(i)"
1339
- [attr.y]="innerH() + 16"
1340
- class="axis-label"
1341
- text-anchor="middle"
1342
- >{{ cat }}</text>
1343
- }
1344
-
1345
- <!-- Bars -->
1346
- @for (s of series(); track s.name; let si = $index) {
1347
- @for (v of s.data; track $index; let ci = $index) {
1348
- @if (v !== null && v !== undefined) {
1349
- <rect
1350
- [attr.x]="barX(ci, si)"
1351
- [attr.y]="barY(v)"
1352
- [attr.width]="singleBarWidth()"
1353
- [attr.height]="barH(v)"
1354
- [attr.fill]="barColor(si, s)"
1355
- [attr.rx]="3"
1356
- class="bar-rect"
1357
- (mouseenter)="onBarHover($event, s.name, categories()[ci], v)"
1358
- />
1359
- @if (showLabels()) {
1360
- <text
1361
- [attr.x]="barX(ci, si) + singleBarWidth() / 2"
1362
- [attr.y]="barY(v) - 4"
1363
- class="bar-label"
1364
- text-anchor="middle"
1365
- >{{ fmtNum(v) }}</text>
1366
- }
1367
- }
1368
- }
1369
- }
1370
-
1371
- <!-- Axes -->
1372
- <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1373
- <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1374
- </g>
1375
- </svg>
1376
-
1377
- <!-- Tooltip -->
1378
- @if (tooltip(); as t) {
1379
- <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1380
- <strong>{{ t.cat }}</strong><br/>
1381
- {{ t.series }}: {{ fmtNum(t.value) }}
1382
- </div>
1383
- }
1384
- </div>
1561
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BarChartComponent, isStandalone: true, selector: "ngx-bar-chart", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showGrid: { classPropertyName: "showGrid", publicName: "showGrid", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "svgEl", first: true, predicate: ["svgEl"], descendants: true, isSignal: true }], ngImport: i0, template: `
1562
+ <div class="ngx-bar-chart">
1563
+ <!-- Legend -->
1564
+ @if (showLegend()) {
1565
+ <div class="chart-legend">
1566
+ @for (s of series(); track s.name; let i = $index) {
1567
+ <span class="legend-item">
1568
+ <span class="legend-dot" [style.background]="seriesColor(i)"></span>
1569
+ {{ s.name }}
1570
+ </span>
1571
+ }
1572
+ </div>
1573
+ }
1574
+ <!-- SVG Chart -->
1575
+ <svg
1576
+ [attr.width]="'100%'"
1577
+ [attr.height]="chartHeight()"
1578
+ class="chart-svg"
1579
+ (mousemove)="onMouseMove($event)"
1580
+ (mouseleave)="tooltip.set(null)"
1581
+ >
1582
+ <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1583
+
1584
+ <!-- Y axis grid lines + labels -->
1585
+ @for (tick of yTicks(); track tick) {
1586
+ <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1587
+ @if (showGrid()) {
1588
+ <line
1589
+ [attr.x1]="0" [attr.x2]="innerW()"
1590
+ stroke="var(--ngx-chart-grid, #ebedf0)" stroke-dasharray="3,3"
1591
+ />
1592
+ }
1593
+ <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1594
+ </g>
1595
+ }
1596
+
1597
+ <!-- X axis category labels -->
1598
+ @for (cat of categories(); track cat; let i = $index) {
1599
+ <text
1600
+ [attr.x]="catMidX(i)"
1601
+ [attr.y]="innerH() + 16"
1602
+ class="axis-label"
1603
+ text-anchor="middle"
1604
+ >{{ cat }}</text>
1605
+ }
1606
+
1607
+ <!-- Bars -->
1608
+ @for (s of series(); track s.name; let si = $index) {
1609
+ @for (v of s.data; track $index; let ci = $index) {
1610
+ @if (v !== null && v !== undefined) {
1611
+ <rect
1612
+ [attr.x]="barX(ci, si)"
1613
+ [attr.y]="barY(v)"
1614
+ [attr.width]="singleBarWidth()"
1615
+ [attr.height]="barH(v)"
1616
+ [attr.fill]="barColor(si, s)"
1617
+ [attr.rx]="3"
1618
+ class="bar-rect"
1619
+ (mouseenter)="onBarHover($event, s.name, categories()[ci], v)"
1620
+ />
1621
+ @if (showLabels()) {
1622
+ <text
1623
+ [attr.x]="barX(ci, si) + singleBarWidth() / 2"
1624
+ [attr.y]="barY(v) - 4"
1625
+ class="bar-label"
1626
+ text-anchor="middle"
1627
+ >{{ fmtNum(v) }}</text>
1628
+ }
1629
+ }
1630
+ }
1631
+ }
1632
+
1633
+ <!-- Axes -->
1634
+ <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1635
+ <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1636
+ </g>
1637
+ </svg>
1638
+
1639
+ <!-- Tooltip -->
1640
+ @if (tooltip(); as t) {
1641
+ <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1642
+ <strong>{{ t.cat }}</strong><br/>
1643
+ {{ t.series }}: {{ fmtNum(t.value) }}
1644
+ </div>
1645
+ }
1646
+ </div>
1385
1647
  `, isInline: true, styles: [":host{display:block}.ngx-bar-chart{position:relative;background:var(--ngx-chart-bg, #fff);font-family:inherit}.chart-legend{display:flex;gap:16px;padding:0 0 8px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ngx-chart-axis-text, #6c757d)}.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.chart-svg{display:block;overflow:visible}.axis-label{font-size:11px;fill:var(--ngx-chart-axis-text, #6c757d)}.bar-rect{cursor:pointer;transition:opacity .15s}.bar-rect:hover{opacity:.8}.bar-label{font-size:11px;fill:var(--ngx-chart-axis-text, #6c757d)}.chart-tooltip{position:absolute;pointer-events:none;transform:translate(-50%,-100%);background:var(--ngx-chart-tooltip-bg, #343a40);color:#fff;padding:6px 10px;border-radius:4px;font-size:12px;white-space:nowrap;margin-top:-8px;box-shadow:0 2px 8px #0003}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1386
1648
  }
1387
1649
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BarChartComponent, decorators: [{
1388
1650
  type: Component,
1389
- args: [{ selector: 'ngx-bar-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1390
- <div class="ngx-bar-chart">
1391
- <!-- Legend -->
1392
- @if (showLegend()) {
1393
- <div class="chart-legend">
1394
- @for (s of series(); track s.name; let i = $index) {
1395
- <span class="legend-item">
1396
- <span class="legend-dot" [style.background]="seriesColor(i)"></span>
1397
- {{ s.name }}
1398
- </span>
1399
- }
1400
- </div>
1401
- }
1402
- <!-- SVG Chart -->
1403
- <svg
1404
- [attr.width]="'100%'"
1405
- [attr.height]="chartHeight()"
1406
- class="chart-svg"
1407
- (mousemove)="onMouseMove($event)"
1408
- (mouseleave)="tooltip.set(null)"
1409
- >
1410
- <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1411
-
1412
- <!-- Y axis grid lines + labels -->
1413
- @for (tick of yTicks(); track tick) {
1414
- <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1415
- @if (showGrid()) {
1416
- <line
1417
- [attr.x1]="0" [attr.x2]="innerW()"
1418
- stroke="var(--ngx-chart-grid, #ebedf0)" stroke-dasharray="3,3"
1419
- />
1420
- }
1421
- <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1422
- </g>
1423
- }
1424
-
1425
- <!-- X axis category labels -->
1426
- @for (cat of categories(); track cat; let i = $index) {
1427
- <text
1428
- [attr.x]="catMidX(i)"
1429
- [attr.y]="innerH() + 16"
1430
- class="axis-label"
1431
- text-anchor="middle"
1432
- >{{ cat }}</text>
1433
- }
1434
-
1435
- <!-- Bars -->
1436
- @for (s of series(); track s.name; let si = $index) {
1437
- @for (v of s.data; track $index; let ci = $index) {
1438
- @if (v !== null && v !== undefined) {
1439
- <rect
1440
- [attr.x]="barX(ci, si)"
1441
- [attr.y]="barY(v)"
1442
- [attr.width]="singleBarWidth()"
1443
- [attr.height]="barH(v)"
1444
- [attr.fill]="barColor(si, s)"
1445
- [attr.rx]="3"
1446
- class="bar-rect"
1447
- (mouseenter)="onBarHover($event, s.name, categories()[ci], v)"
1448
- />
1449
- @if (showLabels()) {
1450
- <text
1451
- [attr.x]="barX(ci, si) + singleBarWidth() / 2"
1452
- [attr.y]="barY(v) - 4"
1453
- class="bar-label"
1454
- text-anchor="middle"
1455
- >{{ fmtNum(v) }}</text>
1456
- }
1457
- }
1458
- }
1459
- }
1460
-
1461
- <!-- Axes -->
1462
- <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1463
- <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1464
- </g>
1465
- </svg>
1466
-
1467
- <!-- Tooltip -->
1468
- @if (tooltip(); as t) {
1469
- <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1470
- <strong>{{ t.cat }}</strong><br/>
1471
- {{ t.series }}: {{ fmtNum(t.value) }}
1472
- </div>
1473
- }
1474
- </div>
1651
+ args: [{ selector: 'ngx-bar-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1652
+ <div class="ngx-bar-chart">
1653
+ <!-- Legend -->
1654
+ @if (showLegend()) {
1655
+ <div class="chart-legend">
1656
+ @for (s of series(); track s.name; let i = $index) {
1657
+ <span class="legend-item">
1658
+ <span class="legend-dot" [style.background]="seriesColor(i)"></span>
1659
+ {{ s.name }}
1660
+ </span>
1661
+ }
1662
+ </div>
1663
+ }
1664
+ <!-- SVG Chart -->
1665
+ <svg
1666
+ [attr.width]="'100%'"
1667
+ [attr.height]="chartHeight()"
1668
+ class="chart-svg"
1669
+ (mousemove)="onMouseMove($event)"
1670
+ (mouseleave)="tooltip.set(null)"
1671
+ >
1672
+ <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1673
+
1674
+ <!-- Y axis grid lines + labels -->
1675
+ @for (tick of yTicks(); track tick) {
1676
+ <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1677
+ @if (showGrid()) {
1678
+ <line
1679
+ [attr.x1]="0" [attr.x2]="innerW()"
1680
+ stroke="var(--ngx-chart-grid, #ebedf0)" stroke-dasharray="3,3"
1681
+ />
1682
+ }
1683
+ <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1684
+ </g>
1685
+ }
1686
+
1687
+ <!-- X axis category labels -->
1688
+ @for (cat of categories(); track cat; let i = $index) {
1689
+ <text
1690
+ [attr.x]="catMidX(i)"
1691
+ [attr.y]="innerH() + 16"
1692
+ class="axis-label"
1693
+ text-anchor="middle"
1694
+ >{{ cat }}</text>
1695
+ }
1696
+
1697
+ <!-- Bars -->
1698
+ @for (s of series(); track s.name; let si = $index) {
1699
+ @for (v of s.data; track $index; let ci = $index) {
1700
+ @if (v !== null && v !== undefined) {
1701
+ <rect
1702
+ [attr.x]="barX(ci, si)"
1703
+ [attr.y]="barY(v)"
1704
+ [attr.width]="singleBarWidth()"
1705
+ [attr.height]="barH(v)"
1706
+ [attr.fill]="barColor(si, s)"
1707
+ [attr.rx]="3"
1708
+ class="bar-rect"
1709
+ (mouseenter)="onBarHover($event, s.name, categories()[ci], v)"
1710
+ />
1711
+ @if (showLabels()) {
1712
+ <text
1713
+ [attr.x]="barX(ci, si) + singleBarWidth() / 2"
1714
+ [attr.y]="barY(v) - 4"
1715
+ class="bar-label"
1716
+ text-anchor="middle"
1717
+ >{{ fmtNum(v) }}</text>
1718
+ }
1719
+ }
1720
+ }
1721
+ }
1722
+
1723
+ <!-- Axes -->
1724
+ <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1725
+ <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis, #ced4da)"/>
1726
+ </g>
1727
+ </svg>
1728
+
1729
+ <!-- Tooltip -->
1730
+ @if (tooltip(); as t) {
1731
+ <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1732
+ <strong>{{ t.cat }}</strong><br/>
1733
+ {{ t.series }}: {{ fmtNum(t.value) }}
1734
+ </div>
1735
+ }
1736
+ </div>
1475
1737
  `, styles: [":host{display:block}.ngx-bar-chart{position:relative;background:var(--ngx-chart-bg, #fff);font-family:inherit}.chart-legend{display:flex;gap:16px;padding:0 0 8px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ngx-chart-axis-text, #6c757d)}.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.chart-svg{display:block;overflow:visible}.axis-label{font-size:11px;fill:var(--ngx-chart-axis-text, #6c757d)}.bar-rect{cursor:pointer;transition:opacity .15s}.bar-rect:hover{opacity:.8}.bar-label{font-size:11px;fill:var(--ngx-chart-axis-text, #6c757d)}.chart-tooltip{position:absolute;pointer-events:none;transform:translate(-50%,-100%);background:var(--ngx-chart-tooltip-bg, #343a40);color:#fff;padding:6px 10px;border-radius:4px;font-size:12px;white-space:nowrap;margin-top:-8px;box-shadow:0 2px 8px #0003}\n"] }]
1476
1738
  }] });
1477
1739
 
@@ -1538,188 +1800,188 @@ class LineChartComponent {
1538
1800
  }
1539
1801
  fmtNum = fmtNum;
1540
1802
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1541
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: LineChartComponent, isStandalone: true, selector: "ngx-line-chart", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showGrid: { classPropertyName: "showGrid", publicName: "showGrid", isSignal: true, isRequired: false, transformFunction: null }, showArea: { classPropertyName: "showArea", publicName: "showArea", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
1542
- <div class="ngx-line-chart" (mousemove)="onMouseMove($event)" (mouseleave)="crosshair.set(null)">
1543
- @if (showLegend()) {
1544
- <div class="chart-legend">
1545
- @for (s of series(); track s.name; let i = $index) {
1546
- <span class="legend-item">
1547
- <span class="legend-line" [style.background]="seriesColor(i, s)"></span>
1548
- {{ s.name }}
1549
- </span>
1550
- }
1551
- </div>
1552
- }
1553
- <svg [attr.width]="'100%'" [attr.height]="chartHeight()" class="chart-svg">
1554
- <defs>
1555
- @for (s of series(); track s.name; let i = $index) {
1556
- <linearGradient [attr.id]="'area-grad-' + i" x1="0" y1="0" x2="0" y2="1">
1557
- <stop offset="0%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.3"/>
1558
- <stop offset="100%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.02"/>
1559
- </linearGradient>
1560
- }
1561
- </defs>
1562
- <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1563
-
1564
- @for (tick of yTicks(); track tick) {
1565
- <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1566
- @if (showGrid()) {
1567
- <line [attr.x1]="0" [attr.x2]="innerW()" stroke="var(--ngx-chart-grid,#ebedf0)" stroke-dasharray="3,3"/>
1568
- }
1569
- <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1570
- </g>
1571
- }
1572
-
1573
- @for (cat of categories(); track cat; let i = $index) {
1574
- <text [attr.x]="xPos(i)" [attr.y]="innerH() + 16" class="axis-label" text-anchor="middle">{{ cat }}</text>
1575
- }
1576
-
1577
- @for (s of series(); track s.name; let si = $index) {
1578
- @if (showArea()) {
1579
- <path
1580
- [attr.d]="areaPath(s)"
1581
- [attr.fill]="'url(#area-grad-' + si + ')'"
1582
- stroke="none"
1583
- />
1584
- }
1585
- <path
1586
- [attr.d]="linePath(s)"
1587
- [attr.stroke]="seriesColor(si, s)"
1588
- fill="none"
1589
- stroke-width="2.5"
1590
- stroke-linejoin="round"
1591
- stroke-linecap="round"
1592
- />
1593
- @if (showMarkers()) {
1594
- @for (v of s.data; track $index; let ci = $index) {
1595
- <circle
1596
- [attr.cx]="xPos(ci)"
1597
- [attr.cy]="yPos(v)"
1598
- r="4"
1599
- [attr.fill]="seriesColor(si, s)"
1600
- stroke="#fff"
1601
- stroke-width="2"
1602
- />
1603
- }
1604
- }
1605
- }
1606
-
1607
- <!-- Crosshair -->
1608
- @if (crosshair(); as ch) {
1609
- <line [attr.x1]="ch.x" [attr.x2]="ch.x" y1="0" [attr.y2]="innerH()"
1610
- stroke="var(--ngx-chart-axis,#ced4da)" stroke-dasharray="4,3"/>
1611
- }
1612
-
1613
- <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1614
- <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1615
- </g>
1616
- </svg>
1617
-
1618
- @if (tooltip(); as t) {
1619
- <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1620
- <div class="tt-cat">{{ t.cat }}</div>
1621
- @for (row of t.rows; track row.name) {
1622
- <div class="tt-row">
1623
- <span class="tt-dot" [style.background]="row.color"></span>
1624
- {{ row.name }}: <strong>{{ fmtNum(row.value) }}</strong>
1625
- </div>
1626
- }
1627
- </div>
1628
- }
1629
- </div>
1803
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: LineChartComponent, isStandalone: true, selector: "ngx-line-chart", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showGrid: { classPropertyName: "showGrid", publicName: "showGrid", isSignal: true, isRequired: false, transformFunction: null }, showArea: { classPropertyName: "showArea", publicName: "showArea", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
1804
+ <div class="ngx-line-chart" (mousemove)="onMouseMove($event)" (mouseleave)="crosshair.set(null)">
1805
+ @if (showLegend()) {
1806
+ <div class="chart-legend">
1807
+ @for (s of series(); track s.name; let i = $index) {
1808
+ <span class="legend-item">
1809
+ <span class="legend-line" [style.background]="seriesColor(i, s)"></span>
1810
+ {{ s.name }}
1811
+ </span>
1812
+ }
1813
+ </div>
1814
+ }
1815
+ <svg [attr.width]="'100%'" [attr.height]="chartHeight()" class="chart-svg">
1816
+ <defs>
1817
+ @for (s of series(); track s.name; let i = $index) {
1818
+ <linearGradient [attr.id]="'area-grad-' + i" x1="0" y1="0" x2="0" y2="1">
1819
+ <stop offset="0%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.3"/>
1820
+ <stop offset="100%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.02"/>
1821
+ </linearGradient>
1822
+ }
1823
+ </defs>
1824
+ <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1825
+
1826
+ @for (tick of yTicks(); track tick) {
1827
+ <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1828
+ @if (showGrid()) {
1829
+ <line [attr.x1]="0" [attr.x2]="innerW()" stroke="var(--ngx-chart-grid,#ebedf0)" stroke-dasharray="3,3"/>
1830
+ }
1831
+ <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1832
+ </g>
1833
+ }
1834
+
1835
+ @for (cat of categories(); track cat; let i = $index) {
1836
+ <text [attr.x]="xPos(i)" [attr.y]="innerH() + 16" class="axis-label" text-anchor="middle">{{ cat }}</text>
1837
+ }
1838
+
1839
+ @for (s of series(); track s.name; let si = $index) {
1840
+ @if (showArea()) {
1841
+ <path
1842
+ [attr.d]="areaPath(s)"
1843
+ [attr.fill]="'url(#area-grad-' + si + ')'"
1844
+ stroke="none"
1845
+ />
1846
+ }
1847
+ <path
1848
+ [attr.d]="linePath(s)"
1849
+ [attr.stroke]="seriesColor(si, s)"
1850
+ fill="none"
1851
+ stroke-width="2.5"
1852
+ stroke-linejoin="round"
1853
+ stroke-linecap="round"
1854
+ />
1855
+ @if (showMarkers()) {
1856
+ @for (v of s.data; track $index; let ci = $index) {
1857
+ <circle
1858
+ [attr.cx]="xPos(ci)"
1859
+ [attr.cy]="yPos(v)"
1860
+ r="4"
1861
+ [attr.fill]="seriesColor(si, s)"
1862
+ stroke="#fff"
1863
+ stroke-width="2"
1864
+ />
1865
+ }
1866
+ }
1867
+ }
1868
+
1869
+ <!-- Crosshair -->
1870
+ @if (crosshair(); as ch) {
1871
+ <line [attr.x1]="ch.x" [attr.x2]="ch.x" y1="0" [attr.y2]="innerH()"
1872
+ stroke="var(--ngx-chart-axis,#ced4da)" stroke-dasharray="4,3"/>
1873
+ }
1874
+
1875
+ <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1876
+ <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1877
+ </g>
1878
+ </svg>
1879
+
1880
+ @if (tooltip(); as t) {
1881
+ <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1882
+ <div class="tt-cat">{{ t.cat }}</div>
1883
+ @for (row of t.rows; track row.name) {
1884
+ <div class="tt-row">
1885
+ <span class="tt-dot" [style.background]="row.color"></span>
1886
+ {{ row.name }}: <strong>{{ fmtNum(row.value) }}</strong>
1887
+ </div>
1888
+ }
1889
+ </div>
1890
+ }
1891
+ </div>
1630
1892
  `, isInline: true, styles: [":host{display:block}.ngx-line-chart{position:relative;background:var(--ngx-chart-bg, #fff)}.chart-legend{display:flex;gap:16px;padding:0 0 8px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ngx-chart-axis-text,#6c757d)}.legend-line{width:20px;height:3px;border-radius:2px;display:inline-block}.chart-svg{display:block;overflow:visible;cursor:crosshair}.axis-label{font-size:11px;fill:var(--ngx-chart-axis-text,#6c757d)}.chart-tooltip{position:absolute;pointer-events:none;transform:translate(-50%,-100%) translateY(-8px);background:var(--ngx-chart-tooltip-bg,#343a40);color:#fff;padding:8px 12px;border-radius:4px;font-size:12px;white-space:nowrap;box-shadow:0 2px 8px #0003}.tt-cat{font-weight:600;margin-bottom:4px}.tt-row{display:flex;align-items:center;gap:6px}.tt-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1631
1893
  }
1632
1894
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LineChartComponent, decorators: [{
1633
1895
  type: Component,
1634
- args: [{ selector: 'ngx-line-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1635
- <div class="ngx-line-chart" (mousemove)="onMouseMove($event)" (mouseleave)="crosshair.set(null)">
1636
- @if (showLegend()) {
1637
- <div class="chart-legend">
1638
- @for (s of series(); track s.name; let i = $index) {
1639
- <span class="legend-item">
1640
- <span class="legend-line" [style.background]="seriesColor(i, s)"></span>
1641
- {{ s.name }}
1642
- </span>
1643
- }
1644
- </div>
1645
- }
1646
- <svg [attr.width]="'100%'" [attr.height]="chartHeight()" class="chart-svg">
1647
- <defs>
1648
- @for (s of series(); track s.name; let i = $index) {
1649
- <linearGradient [attr.id]="'area-grad-' + i" x1="0" y1="0" x2="0" y2="1">
1650
- <stop offset="0%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.3"/>
1651
- <stop offset="100%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.02"/>
1652
- </linearGradient>
1653
- }
1654
- </defs>
1655
- <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1656
-
1657
- @for (tick of yTicks(); track tick) {
1658
- <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1659
- @if (showGrid()) {
1660
- <line [attr.x1]="0" [attr.x2]="innerW()" stroke="var(--ngx-chart-grid,#ebedf0)" stroke-dasharray="3,3"/>
1661
- }
1662
- <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1663
- </g>
1664
- }
1665
-
1666
- @for (cat of categories(); track cat; let i = $index) {
1667
- <text [attr.x]="xPos(i)" [attr.y]="innerH() + 16" class="axis-label" text-anchor="middle">{{ cat }}</text>
1668
- }
1669
-
1670
- @for (s of series(); track s.name; let si = $index) {
1671
- @if (showArea()) {
1672
- <path
1673
- [attr.d]="areaPath(s)"
1674
- [attr.fill]="'url(#area-grad-' + si + ')'"
1675
- stroke="none"
1676
- />
1677
- }
1678
- <path
1679
- [attr.d]="linePath(s)"
1680
- [attr.stroke]="seriesColor(si, s)"
1681
- fill="none"
1682
- stroke-width="2.5"
1683
- stroke-linejoin="round"
1684
- stroke-linecap="round"
1685
- />
1686
- @if (showMarkers()) {
1687
- @for (v of s.data; track $index; let ci = $index) {
1688
- <circle
1689
- [attr.cx]="xPos(ci)"
1690
- [attr.cy]="yPos(v)"
1691
- r="4"
1692
- [attr.fill]="seriesColor(si, s)"
1693
- stroke="#fff"
1694
- stroke-width="2"
1695
- />
1696
- }
1697
- }
1698
- }
1699
-
1700
- <!-- Crosshair -->
1701
- @if (crosshair(); as ch) {
1702
- <line [attr.x1]="ch.x" [attr.x2]="ch.x" y1="0" [attr.y2]="innerH()"
1703
- stroke="var(--ngx-chart-axis,#ced4da)" stroke-dasharray="4,3"/>
1704
- }
1705
-
1706
- <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1707
- <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1708
- </g>
1709
- </svg>
1710
-
1711
- @if (tooltip(); as t) {
1712
- <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1713
- <div class="tt-cat">{{ t.cat }}</div>
1714
- @for (row of t.rows; track row.name) {
1715
- <div class="tt-row">
1716
- <span class="tt-dot" [style.background]="row.color"></span>
1717
- {{ row.name }}: <strong>{{ fmtNum(row.value) }}</strong>
1718
- </div>
1719
- }
1720
- </div>
1721
- }
1722
- </div>
1896
+ args: [{ selector: 'ngx-line-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1897
+ <div class="ngx-line-chart" (mousemove)="onMouseMove($event)" (mouseleave)="crosshair.set(null)">
1898
+ @if (showLegend()) {
1899
+ <div class="chart-legend">
1900
+ @for (s of series(); track s.name; let i = $index) {
1901
+ <span class="legend-item">
1902
+ <span class="legend-line" [style.background]="seriesColor(i, s)"></span>
1903
+ {{ s.name }}
1904
+ </span>
1905
+ }
1906
+ </div>
1907
+ }
1908
+ <svg [attr.width]="'100%'" [attr.height]="chartHeight()" class="chart-svg">
1909
+ <defs>
1910
+ @for (s of series(); track s.name; let i = $index) {
1911
+ <linearGradient [attr.id]="'area-grad-' + i" x1="0" y1="0" x2="0" y2="1">
1912
+ <stop offset="0%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.3"/>
1913
+ <stop offset="100%" [attr.stop-color]="seriesColor(i, s)" stop-opacity="0.02"/>
1914
+ </linearGradient>
1915
+ }
1916
+ </defs>
1917
+ <g [attr.transform]="'translate(' + PAD_LEFT + ',' + PAD_TOP + ')'">
1918
+
1919
+ @for (tick of yTicks(); track tick) {
1920
+ <g [attr.transform]="'translate(0,' + yPos(tick) + ')'">
1921
+ @if (showGrid()) {
1922
+ <line [attr.x1]="0" [attr.x2]="innerW()" stroke="var(--ngx-chart-grid,#ebedf0)" stroke-dasharray="3,3"/>
1923
+ }
1924
+ <text x="-8" dy="4" class="axis-label" text-anchor="end">{{ fmtNum(tick) }}</text>
1925
+ </g>
1926
+ }
1927
+
1928
+ @for (cat of categories(); track cat; let i = $index) {
1929
+ <text [attr.x]="xPos(i)" [attr.y]="innerH() + 16" class="axis-label" text-anchor="middle">{{ cat }}</text>
1930
+ }
1931
+
1932
+ @for (s of series(); track s.name; let si = $index) {
1933
+ @if (showArea()) {
1934
+ <path
1935
+ [attr.d]="areaPath(s)"
1936
+ [attr.fill]="'url(#area-grad-' + si + ')'"
1937
+ stroke="none"
1938
+ />
1939
+ }
1940
+ <path
1941
+ [attr.d]="linePath(s)"
1942
+ [attr.stroke]="seriesColor(si, s)"
1943
+ fill="none"
1944
+ stroke-width="2.5"
1945
+ stroke-linejoin="round"
1946
+ stroke-linecap="round"
1947
+ />
1948
+ @if (showMarkers()) {
1949
+ @for (v of s.data; track $index; let ci = $index) {
1950
+ <circle
1951
+ [attr.cx]="xPos(ci)"
1952
+ [attr.cy]="yPos(v)"
1953
+ r="4"
1954
+ [attr.fill]="seriesColor(si, s)"
1955
+ stroke="#fff"
1956
+ stroke-width="2"
1957
+ />
1958
+ }
1959
+ }
1960
+ }
1961
+
1962
+ <!-- Crosshair -->
1963
+ @if (crosshair(); as ch) {
1964
+ <line [attr.x1]="ch.x" [attr.x2]="ch.x" y1="0" [attr.y2]="innerH()"
1965
+ stroke="var(--ngx-chart-axis,#ced4da)" stroke-dasharray="4,3"/>
1966
+ }
1967
+
1968
+ <line x1="0" [attr.x2]="innerW()" [attr.y1]="innerH()" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1969
+ <line x1="0" x2="0" y1="0" [attr.y2]="innerH()" stroke="var(--ngx-chart-axis,#ced4da)"/>
1970
+ </g>
1971
+ </svg>
1972
+
1973
+ @if (tooltip(); as t) {
1974
+ <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1975
+ <div class="tt-cat">{{ t.cat }}</div>
1976
+ @for (row of t.rows; track row.name) {
1977
+ <div class="tt-row">
1978
+ <span class="tt-dot" [style.background]="row.color"></span>
1979
+ {{ row.name }}: <strong>{{ fmtNum(row.value) }}</strong>
1980
+ </div>
1981
+ }
1982
+ </div>
1983
+ }
1984
+ </div>
1723
1985
  `, styles: [":host{display:block}.ngx-line-chart{position:relative;background:var(--ngx-chart-bg, #fff)}.chart-legend{display:flex;gap:16px;padding:0 0 8px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ngx-chart-axis-text,#6c757d)}.legend-line{width:20px;height:3px;border-radius:2px;display:inline-block}.chart-svg{display:block;overflow:visible;cursor:crosshair}.axis-label{font-size:11px;fill:var(--ngx-chart-axis-text,#6c757d)}.chart-tooltip{position:absolute;pointer-events:none;transform:translate(-50%,-100%) translateY(-8px);background:var(--ngx-chart-tooltip-bg,#343a40);color:#fff;padding:8px 12px;border-radius:4px;font-size:12px;white-space:nowrap;box-shadow:0 2px 8px #0003}.tt-cat{font-weight:600;margin-bottom:4px}.tt-row{display:flex;align-items:center;gap:6px}.tt-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}\n"] }]
1724
1986
  }] });
1725
1987
 
@@ -1788,120 +2050,120 @@ class PieChartComponent {
1788
2050
  }
1789
2051
  fmtNum = fmtNum;
1790
2052
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1791
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: PieChartComponent, isStandalone: true, selector: "ngx-pie-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, donutHoleSize: { classPropertyName: "donutHoleSize", publicName: "donutHoleSize", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, centerTitle: { classPropertyName: "centerTitle", publicName: "centerTitle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
1792
- <div class="ngx-pie-chart">
1793
- <div class="chart-body">
1794
- <svg class="chart-svg" [attr.width]="svgSize()" [attr.height]="svgSize()">
1795
- <g [attr.transform]="'translate(' + cx() + ',' + cy() + ')'">
1796
- @for (slice of slices(); track slice.index) {
1797
- <path
1798
- [attr.d]="slice.path"
1799
- [attr.fill]="slice.color"
1800
- [attr.stroke]="'#fff'"
1801
- stroke-width="2"
1802
- class="pie-slice"
1803
- [class.hovered]="hovered() === slice.index"
1804
- (mouseenter)="hovered.set(slice.index); onSliceHover($event, slice)"
1805
- (mouseleave)="hovered.set(-1); tooltip.set(null)"
1806
- />
1807
- @if (showLabels() && slice.midAngle !== null) {
1808
- <text
1809
- [attr.x]="labelX(slice)"
1810
- [attr.y]="labelY(slice)"
1811
- text-anchor="middle"
1812
- dominant-baseline="middle"
1813
- class="slice-label"
1814
- >{{ slice.pct }}%</text>
1815
- }
1816
- }
1817
- <!-- Donut hole -->
1818
- @if (mode() === 'donut') {
1819
- <circle [attr.r]="holeR()" fill="var(--ngx-chart-bg,#fff)"/>
1820
- <text class="donut-center-text" text-anchor="middle" dy="-8">{{ centerTitle() }}</text>
1821
- <text class="donut-center-value" text-anchor="middle" dy="14">{{ centerValue() }}</text>
1822
- }
1823
- </g>
1824
- </svg>
1825
-
1826
- @if (showLegend()) {
1827
- <div class="chart-legend">
1828
- @for (slice of slices(); track slice.index) {
1829
- <div class="legend-item" (mouseenter)="hovered.set(slice.index)" (mouseleave)="hovered.set(-1)">
1830
- <span class="legend-dot" [style.background]="slice.color"></span>
1831
- <span class="legend-label">{{ slice.label }}</span>
1832
- <span class="legend-pct">{{ slice.pct }}%</span>
1833
- </div>
1834
- }
1835
- </div>
1836
- }
1837
- </div>
1838
-
1839
- @if (tooltip(); as t) {
1840
- <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1841
- <span class="tt-dot" [style.background]="t.color"></span>
1842
- <strong>{{ t.label }}</strong>: {{ fmtNum(t.value) }} ({{ t.pct }}%)
1843
- </div>
1844
- }
1845
- </div>
2053
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: PieChartComponent, isStandalone: true, selector: "ngx-pie-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, donutHoleSize: { classPropertyName: "donutHoleSize", publicName: "donutHoleSize", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, centerTitle: { classPropertyName: "centerTitle", publicName: "centerTitle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
2054
+ <div class="ngx-pie-chart">
2055
+ <div class="chart-body">
2056
+ <svg class="chart-svg" [attr.width]="svgSize()" [attr.height]="svgSize()">
2057
+ <g [attr.transform]="'translate(' + cx() + ',' + cy() + ')'">
2058
+ @for (slice of slices(); track slice.index) {
2059
+ <path
2060
+ [attr.d]="slice.path"
2061
+ [attr.fill]="slice.color"
2062
+ [attr.stroke]="'#fff'"
2063
+ stroke-width="2"
2064
+ class="pie-slice"
2065
+ [class.hovered]="hovered() === slice.index"
2066
+ (mouseenter)="hovered.set(slice.index); onSliceHover($event, slice)"
2067
+ (mouseleave)="hovered.set(-1); tooltip.set(null)"
2068
+ />
2069
+ @if (showLabels() && slice.midAngle !== null) {
2070
+ <text
2071
+ [attr.x]="labelX(slice)"
2072
+ [attr.y]="labelY(slice)"
2073
+ text-anchor="middle"
2074
+ dominant-baseline="middle"
2075
+ class="slice-label"
2076
+ >{{ slice.pct }}%</text>
2077
+ }
2078
+ }
2079
+ <!-- Donut hole -->
2080
+ @if (mode() === 'donut') {
2081
+ <circle [attr.r]="holeR()" fill="var(--ngx-chart-bg,#fff)"/>
2082
+ <text class="donut-center-text" text-anchor="middle" dy="-8">{{ centerTitle() }}</text>
2083
+ <text class="donut-center-value" text-anchor="middle" dy="14">{{ centerValue() }}</text>
2084
+ }
2085
+ </g>
2086
+ </svg>
2087
+
2088
+ @if (showLegend()) {
2089
+ <div class="chart-legend">
2090
+ @for (slice of slices(); track slice.index) {
2091
+ <div class="legend-item" (mouseenter)="hovered.set(slice.index)" (mouseleave)="hovered.set(-1)">
2092
+ <span class="legend-dot" [style.background]="slice.color"></span>
2093
+ <span class="legend-label">{{ slice.label }}</span>
2094
+ <span class="legend-pct">{{ slice.pct }}%</span>
2095
+ </div>
2096
+ }
2097
+ </div>
2098
+ }
2099
+ </div>
2100
+
2101
+ @if (tooltip(); as t) {
2102
+ <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
2103
+ <span class="tt-dot" [style.background]="t.color"></span>
2104
+ <strong>{{ t.label }}</strong>: {{ fmtNum(t.value) }} ({{ t.pct }}%)
2105
+ </div>
2106
+ }
2107
+ </div>
1846
2108
  `, isInline: true, styles: [":host{display:block}.ngx-pie-chart{position:relative;background:var(--ngx-chart-bg, #fff);font-family:inherit}.chart-body{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.chart-svg{display:block;overflow:visible;flex-shrink:0}.pie-slice{cursor:pointer;transition:transform .15s,opacity .15s;transform-origin:center}.pie-slice.hovered{transform:scale(1.03);opacity:.9}.slice-label{font-size:11px;fill:#fff;font-weight:600;pointer-events:none}.donut-center-text{font-size:12px;fill:var(--ngx-chart-axis-text,#6c757d)}.donut-center-value{font-size:20px;font-weight:700;fill:var(--ngx-chart-text,#212529)}.chart-legend{display:flex;flex-direction:column;gap:6px}.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;padding:2px 4px;border-radius:3px}.legend-item:hover{background:var(--ngx-chart-grid,#f1f3f5)}.legend-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.legend-label{flex:1;color:var(--ngx-chart-axis-text,#6c757d)}.legend-pct{font-weight:600;color:var(--ngx-chart-text,#212529)}.chart-tooltip{position:absolute;pointer-events:none;transform:translate(-50%,-100%) translateY(-8px);background:var(--ngx-chart-tooltip-bg,#343a40);color:#fff;padding:6px 10px;border-radius:4px;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:6px}.tt-dot{width:8px;height:8px;border-radius:50%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1847
2109
  }
1848
2110
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PieChartComponent, decorators: [{
1849
2111
  type: Component,
1850
- args: [{ selector: 'ngx-pie-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1851
- <div class="ngx-pie-chart">
1852
- <div class="chart-body">
1853
- <svg class="chart-svg" [attr.width]="svgSize()" [attr.height]="svgSize()">
1854
- <g [attr.transform]="'translate(' + cx() + ',' + cy() + ')'">
1855
- @for (slice of slices(); track slice.index) {
1856
- <path
1857
- [attr.d]="slice.path"
1858
- [attr.fill]="slice.color"
1859
- [attr.stroke]="'#fff'"
1860
- stroke-width="2"
1861
- class="pie-slice"
1862
- [class.hovered]="hovered() === slice.index"
1863
- (mouseenter)="hovered.set(slice.index); onSliceHover($event, slice)"
1864
- (mouseleave)="hovered.set(-1); tooltip.set(null)"
1865
- />
1866
- @if (showLabels() && slice.midAngle !== null) {
1867
- <text
1868
- [attr.x]="labelX(slice)"
1869
- [attr.y]="labelY(slice)"
1870
- text-anchor="middle"
1871
- dominant-baseline="middle"
1872
- class="slice-label"
1873
- >{{ slice.pct }}%</text>
1874
- }
1875
- }
1876
- <!-- Donut hole -->
1877
- @if (mode() === 'donut') {
1878
- <circle [attr.r]="holeR()" fill="var(--ngx-chart-bg,#fff)"/>
1879
- <text class="donut-center-text" text-anchor="middle" dy="-8">{{ centerTitle() }}</text>
1880
- <text class="donut-center-value" text-anchor="middle" dy="14">{{ centerValue() }}</text>
1881
- }
1882
- </g>
1883
- </svg>
1884
-
1885
- @if (showLegend()) {
1886
- <div class="chart-legend">
1887
- @for (slice of slices(); track slice.index) {
1888
- <div class="legend-item" (mouseenter)="hovered.set(slice.index)" (mouseleave)="hovered.set(-1)">
1889
- <span class="legend-dot" [style.background]="slice.color"></span>
1890
- <span class="legend-label">{{ slice.label }}</span>
1891
- <span class="legend-pct">{{ slice.pct }}%</span>
1892
- </div>
1893
- }
1894
- </div>
1895
- }
1896
- </div>
1897
-
1898
- @if (tooltip(); as t) {
1899
- <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
1900
- <span class="tt-dot" [style.background]="t.color"></span>
1901
- <strong>{{ t.label }}</strong>: {{ fmtNum(t.value) }} ({{ t.pct }}%)
1902
- </div>
1903
- }
1904
- </div>
2112
+ args: [{ selector: 'ngx-pie-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2113
+ <div class="ngx-pie-chart">
2114
+ <div class="chart-body">
2115
+ <svg class="chart-svg" [attr.width]="svgSize()" [attr.height]="svgSize()">
2116
+ <g [attr.transform]="'translate(' + cx() + ',' + cy() + ')'">
2117
+ @for (slice of slices(); track slice.index) {
2118
+ <path
2119
+ [attr.d]="slice.path"
2120
+ [attr.fill]="slice.color"
2121
+ [attr.stroke]="'#fff'"
2122
+ stroke-width="2"
2123
+ class="pie-slice"
2124
+ [class.hovered]="hovered() === slice.index"
2125
+ (mouseenter)="hovered.set(slice.index); onSliceHover($event, slice)"
2126
+ (mouseleave)="hovered.set(-1); tooltip.set(null)"
2127
+ />
2128
+ @if (showLabels() && slice.midAngle !== null) {
2129
+ <text
2130
+ [attr.x]="labelX(slice)"
2131
+ [attr.y]="labelY(slice)"
2132
+ text-anchor="middle"
2133
+ dominant-baseline="middle"
2134
+ class="slice-label"
2135
+ >{{ slice.pct }}%</text>
2136
+ }
2137
+ }
2138
+ <!-- Donut hole -->
2139
+ @if (mode() === 'donut') {
2140
+ <circle [attr.r]="holeR()" fill="var(--ngx-chart-bg,#fff)"/>
2141
+ <text class="donut-center-text" text-anchor="middle" dy="-8">{{ centerTitle() }}</text>
2142
+ <text class="donut-center-value" text-anchor="middle" dy="14">{{ centerValue() }}</text>
2143
+ }
2144
+ </g>
2145
+ </svg>
2146
+
2147
+ @if (showLegend()) {
2148
+ <div class="chart-legend">
2149
+ @for (slice of slices(); track slice.index) {
2150
+ <div class="legend-item" (mouseenter)="hovered.set(slice.index)" (mouseleave)="hovered.set(-1)">
2151
+ <span class="legend-dot" [style.background]="slice.color"></span>
2152
+ <span class="legend-label">{{ slice.label }}</span>
2153
+ <span class="legend-pct">{{ slice.pct }}%</span>
2154
+ </div>
2155
+ }
2156
+ </div>
2157
+ }
2158
+ </div>
2159
+
2160
+ @if (tooltip(); as t) {
2161
+ <div class="chart-tooltip" [style.left.px]="t.x" [style.top.px]="t.y">
2162
+ <span class="tt-dot" [style.background]="t.color"></span>
2163
+ <strong>{{ t.label }}</strong>: {{ fmtNum(t.value) }} ({{ t.pct }}%)
2164
+ </div>
2165
+ }
2166
+ </div>
1905
2167
  `, styles: [":host{display:block}.ngx-pie-chart{position:relative;background:var(--ngx-chart-bg, #fff);font-family:inherit}.chart-body{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.chart-svg{display:block;overflow:visible;flex-shrink:0}.pie-slice{cursor:pointer;transition:transform .15s,opacity .15s;transform-origin:center}.pie-slice.hovered{transform:scale(1.03);opacity:.9}.slice-label{font-size:11px;fill:#fff;font-weight:600;pointer-events:none}.donut-center-text{font-size:12px;fill:var(--ngx-chart-axis-text,#6c757d)}.donut-center-value{font-size:20px;font-weight:700;fill:var(--ngx-chart-text,#212529)}.chart-legend{display:flex;flex-direction:column;gap:6px}.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;padding:2px 4px;border-radius:3px}.legend-item:hover{background:var(--ngx-chart-grid,#f1f3f5)}.legend-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.legend-label{flex:1;color:var(--ngx-chart-axis-text,#6c757d)}.legend-pct{font-weight:600;color:var(--ngx-chart-text,#212529)}.chart-tooltip{position:absolute;pointer-events:none;transform:translate(-50%,-100%) translateY(-8px);background:var(--ngx-chart-tooltip-bg,#343a40);color:#fff;padding:6px 10px;border-radius:4px;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:6px}.tt-dot{width:8px;height:8px;border-radius:50%}\n"] }]
1906
2168
  }] });
1907
2169
 
@@ -1956,86 +2218,86 @@ class SparklineComponent {
1956
2218
  });
1957
2219
  });
1958
2220
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SparklineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1959
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SparklineComponent, isStandalone: true, selector: "ngx-sparkline", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
1960
- <svg
1961
- [attr.width]="width()"
1962
- [attr.height]="height()"
1963
- class="ngx-sparkline"
1964
- [attr.aria-label]="'Sparkline'"
1965
- >
1966
- @if (type() === 'line' || type() === 'area') {
1967
- @if (type() === 'area') {
1968
- <path [attr.d]="areaPath()" [attr.fill]="areaFill()" stroke="none"/>
1969
- }
1970
- <path
1971
- [attr.d]="linePath()"
1972
- [attr.stroke]="color()"
1973
- fill="none"
1974
- stroke-width="2"
1975
- stroke-linejoin="round"
1976
- stroke-linecap="round"
1977
- />
1978
- <!-- End dot -->
1979
- @if (endPoint(); as ep) {
1980
- <circle [attr.cx]="ep[0]" [attr.cy]="ep[1]" r="3" [attr.fill]="color()"/>
1981
- }
1982
- }
1983
- @if (type() === 'bar') {
1984
- @for (item of barItems(); track $index) {
1985
- <rect
1986
- [attr.x]="item.x"
1987
- [attr.y]="item.y"
1988
- [attr.width]="item.w"
1989
- [attr.height]="item.h"
1990
- [attr.fill]="color()"
1991
- [attr.rx]="1"
1992
- opacity="0.85"
1993
- />
1994
- }
1995
- }
1996
- </svg>
2221
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SparklineComponent, isStandalone: true, selector: "ngx-sparkline", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
2222
+ <svg
2223
+ [attr.width]="width()"
2224
+ [attr.height]="height()"
2225
+ class="ngx-sparkline"
2226
+ [attr.aria-label]="'Sparkline'"
2227
+ >
2228
+ @if (type() === 'line' || type() === 'area') {
2229
+ @if (type() === 'area') {
2230
+ <path [attr.d]="areaPath()" [attr.fill]="areaFill()" stroke="none"/>
2231
+ }
2232
+ <path
2233
+ [attr.d]="linePath()"
2234
+ [attr.stroke]="color()"
2235
+ fill="none"
2236
+ stroke-width="2"
2237
+ stroke-linejoin="round"
2238
+ stroke-linecap="round"
2239
+ />
2240
+ <!-- End dot -->
2241
+ @if (endPoint(); as ep) {
2242
+ <circle [attr.cx]="ep[0]" [attr.cy]="ep[1]" r="3" [attr.fill]="color()"/>
2243
+ }
2244
+ }
2245
+ @if (type() === 'bar') {
2246
+ @for (item of barItems(); track $index) {
2247
+ <rect
2248
+ [attr.x]="item.x"
2249
+ [attr.y]="item.y"
2250
+ [attr.width]="item.w"
2251
+ [attr.height]="item.h"
2252
+ [attr.fill]="color()"
2253
+ [attr.rx]="1"
2254
+ opacity="0.85"
2255
+ />
2256
+ }
2257
+ }
2258
+ </svg>
1997
2259
  `, isInline: true, styles: [":host{display:inline-block}.ngx-sparkline{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1998
2260
  }
1999
2261
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SparklineComponent, decorators: [{
2000
2262
  type: Component,
2001
- args: [{ selector: 'ngx-sparkline', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2002
- <svg
2003
- [attr.width]="width()"
2004
- [attr.height]="height()"
2005
- class="ngx-sparkline"
2006
- [attr.aria-label]="'Sparkline'"
2007
- >
2008
- @if (type() === 'line' || type() === 'area') {
2009
- @if (type() === 'area') {
2010
- <path [attr.d]="areaPath()" [attr.fill]="areaFill()" stroke="none"/>
2011
- }
2012
- <path
2013
- [attr.d]="linePath()"
2014
- [attr.stroke]="color()"
2015
- fill="none"
2016
- stroke-width="2"
2017
- stroke-linejoin="round"
2018
- stroke-linecap="round"
2019
- />
2020
- <!-- End dot -->
2021
- @if (endPoint(); as ep) {
2022
- <circle [attr.cx]="ep[0]" [attr.cy]="ep[1]" r="3" [attr.fill]="color()"/>
2023
- }
2024
- }
2025
- @if (type() === 'bar') {
2026
- @for (item of barItems(); track $index) {
2027
- <rect
2028
- [attr.x]="item.x"
2029
- [attr.y]="item.y"
2030
- [attr.width]="item.w"
2031
- [attr.height]="item.h"
2032
- [attr.fill]="color()"
2033
- [attr.rx]="1"
2034
- opacity="0.85"
2035
- />
2036
- }
2037
- }
2038
- </svg>
2263
+ args: [{ selector: 'ngx-sparkline', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2264
+ <svg
2265
+ [attr.width]="width()"
2266
+ [attr.height]="height()"
2267
+ class="ngx-sparkline"
2268
+ [attr.aria-label]="'Sparkline'"
2269
+ >
2270
+ @if (type() === 'line' || type() === 'area') {
2271
+ @if (type() === 'area') {
2272
+ <path [attr.d]="areaPath()" [attr.fill]="areaFill()" stroke="none"/>
2273
+ }
2274
+ <path
2275
+ [attr.d]="linePath()"
2276
+ [attr.stroke]="color()"
2277
+ fill="none"
2278
+ stroke-width="2"
2279
+ stroke-linejoin="round"
2280
+ stroke-linecap="round"
2281
+ />
2282
+ <!-- End dot -->
2283
+ @if (endPoint(); as ep) {
2284
+ <circle [attr.cx]="ep[0]" [attr.cy]="ep[1]" r="3" [attr.fill]="color()"/>
2285
+ }
2286
+ }
2287
+ @if (type() === 'bar') {
2288
+ @for (item of barItems(); track $index) {
2289
+ <rect
2290
+ [attr.x]="item.x"
2291
+ [attr.y]="item.y"
2292
+ [attr.width]="item.w"
2293
+ [attr.height]="item.h"
2294
+ [attr.fill]="color()"
2295
+ [attr.rx]="1"
2296
+ opacity="0.85"
2297
+ />
2298
+ }
2299
+ }
2300
+ </svg>
2039
2301
  `, styles: [":host{display:inline-block}.ngx-sparkline{display:block}\n"] }]
2040
2302
  }] });
2041
2303
 
@@ -2063,60 +2325,60 @@ class TextBoxComponent {
2063
2325
  this.focusChange.emit(false);
2064
2326
  }
2065
2327
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TextBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2066
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TextBoxComponent, isStandalone: true, selector: "ngx-textbox", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", focusChange: "focusChange" }, ngImport: i0, template: `
2067
- <div class="ngx-textbox" [class.focused]="isFocused()" [class.has-error]="!!error()" [class.disabled]="disabled()">
2068
- @if (label()) {
2069
- <label class="ngx-textbox-label" [class.floating]="isFocused() || !!value()">{{ label() }}</label>
2070
- }
2071
- <div class="ngx-textbox-wrap">
2072
- <input
2073
- class="ngx-textbox-input"
2074
- [type]="type()"
2075
- [value]="value()"
2076
- [placeholder]="isFocused() || !label() ? placeholder() : ''"
2077
- [disabled]="disabled()"
2078
- [readOnly]="readonly()"
2079
- [attr.aria-invalid]="!!error()"
2080
- (input)="onInput($event)"
2081
- (focus)="onFocus()"
2082
- (blur)="onBlur()"
2083
- />
2084
- </div>
2085
- @if (error()) {
2086
- <div class="ngx-textbox-error">{{ error() }}</div>
2087
- } @else if (hint()) {
2088
- <div class="ngx-textbox-hint">{{ hint() }}</div>
2089
- }
2090
- </div>
2328
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TextBoxComponent, isStandalone: true, selector: "ngx-textbox", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", focusChange: "focusChange" }, ngImport: i0, template: `
2329
+ <div class="ngx-textbox" [class.focused]="isFocused()" [class.has-error]="!!error()" [class.disabled]="disabled()">
2330
+ @if (label()) {
2331
+ <label class="ngx-textbox-label" [class.floating]="isFocused() || !!value()">{{ label() }}</label>
2332
+ }
2333
+ <div class="ngx-textbox-wrap">
2334
+ <input
2335
+ class="ngx-textbox-input"
2336
+ [type]="type()"
2337
+ [value]="value()"
2338
+ [placeholder]="isFocused() || !label() ? placeholder() : ''"
2339
+ [disabled]="disabled()"
2340
+ [readOnly]="readonly()"
2341
+ [attr.aria-invalid]="!!error()"
2342
+ (input)="onInput($event)"
2343
+ (focus)="onFocus()"
2344
+ (blur)="onBlur()"
2345
+ />
2346
+ </div>
2347
+ @if (error()) {
2348
+ <div class="ngx-textbox-error">{{ error() }}</div>
2349
+ } @else if (hint()) {
2350
+ <div class="ngx-textbox-hint">{{ hint() }}</div>
2351
+ }
2352
+ </div>
2091
2353
  `, isInline: true, styles: [":host{display:block}.ngx-textbox{position:relative;font-family:inherit}.ngx-textbox-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500;transition:all .15s}.ngx-textbox-wrap{position:relative;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);transition:border-color .15s,box-shadow .15s}.focused .ngx-textbox-wrap{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.has-error .ngx-textbox-wrap{border-color:var(--ngx-input-error, #e74c3c)}.has-error.focused .ngx-textbox-wrap{box-shadow:0 0 0 2px #e74c3c2e}.disabled .ngx-textbox-wrap{background:var(--ngx-input-disabled-bg, #f8f9fa);cursor:not-allowed}.ngx-textbox-input{display:block;width:100%;padding:8px 12px;border:none;outline:none;background:transparent;font-size:14px;color:var(--ngx-input-text, #212529);font-family:inherit}.ngx-textbox-input:disabled{cursor:not-allowed;color:#adb5bd}.ngx-textbox-error{font-size:12px;color:var(--ngx-input-error, #e74c3c);margin-top:4px}.ngx-textbox-hint{font-size:12px;color:var(--ngx-input-label, #6c757d);margin-top:4px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2092
2354
  }
2093
2355
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TextBoxComponent, decorators: [{
2094
2356
  type: Component,
2095
- args: [{ selector: 'ngx-textbox', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2096
- <div class="ngx-textbox" [class.focused]="isFocused()" [class.has-error]="!!error()" [class.disabled]="disabled()">
2097
- @if (label()) {
2098
- <label class="ngx-textbox-label" [class.floating]="isFocused() || !!value()">{{ label() }}</label>
2099
- }
2100
- <div class="ngx-textbox-wrap">
2101
- <input
2102
- class="ngx-textbox-input"
2103
- [type]="type()"
2104
- [value]="value()"
2105
- [placeholder]="isFocused() || !label() ? placeholder() : ''"
2106
- [disabled]="disabled()"
2107
- [readOnly]="readonly()"
2108
- [attr.aria-invalid]="!!error()"
2109
- (input)="onInput($event)"
2110
- (focus)="onFocus()"
2111
- (blur)="onBlur()"
2112
- />
2113
- </div>
2114
- @if (error()) {
2115
- <div class="ngx-textbox-error">{{ error() }}</div>
2116
- } @else if (hint()) {
2117
- <div class="ngx-textbox-hint">{{ hint() }}</div>
2118
- }
2119
- </div>
2357
+ args: [{ selector: 'ngx-textbox', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2358
+ <div class="ngx-textbox" [class.focused]="isFocused()" [class.has-error]="!!error()" [class.disabled]="disabled()">
2359
+ @if (label()) {
2360
+ <label class="ngx-textbox-label" [class.floating]="isFocused() || !!value()">{{ label() }}</label>
2361
+ }
2362
+ <div class="ngx-textbox-wrap">
2363
+ <input
2364
+ class="ngx-textbox-input"
2365
+ [type]="type()"
2366
+ [value]="value()"
2367
+ [placeholder]="isFocused() || !label() ? placeholder() : ''"
2368
+ [disabled]="disabled()"
2369
+ [readOnly]="readonly()"
2370
+ [attr.aria-invalid]="!!error()"
2371
+ (input)="onInput($event)"
2372
+ (focus)="onFocus()"
2373
+ (blur)="onBlur()"
2374
+ />
2375
+ </div>
2376
+ @if (error()) {
2377
+ <div class="ngx-textbox-error">{{ error() }}</div>
2378
+ } @else if (hint()) {
2379
+ <div class="ngx-textbox-hint">{{ hint() }}</div>
2380
+ }
2381
+ </div>
2120
2382
  `, styles: [":host{display:block}.ngx-textbox{position:relative;font-family:inherit}.ngx-textbox-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500;transition:all .15s}.ngx-textbox-wrap{position:relative;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);transition:border-color .15s,box-shadow .15s}.focused .ngx-textbox-wrap{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.has-error .ngx-textbox-wrap{border-color:var(--ngx-input-error, #e74c3c)}.has-error.focused .ngx-textbox-wrap{box-shadow:0 0 0 2px #e74c3c2e}.disabled .ngx-textbox-wrap{background:var(--ngx-input-disabled-bg, #f8f9fa);cursor:not-allowed}.ngx-textbox-input{display:block;width:100%;padding:8px 12px;border:none;outline:none;background:transparent;font-size:14px;color:var(--ngx-input-text, #212529);font-family:inherit}.ngx-textbox-input:disabled{cursor:not-allowed;color:#adb5bd}.ngx-textbox-error{font-size:12px;color:var(--ngx-input-error, #e74c3c);margin-top:4px}.ngx-textbox-hint{font-size:12px;color:var(--ngx-input-label, #6c757d);margin-top:4px}\n"] }]
2121
2383
  }] });
2122
2384
 
@@ -2203,132 +2465,132 @@ class DropdownComponent {
2203
2465
  }
2204
2466
  }
2205
2467
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2206
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DropdownComponent, isStandalone: true, selector: "ngx-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
2207
- <div
2208
- class="ngx-dropdown"
2209
- [class.open]="isOpen()"
2210
- [class.disabled]="disabled()"
2211
- [attr.aria-expanded]="isOpen()"
2212
- role="combobox"
2213
- >
2214
- @if (label()) {
2215
- <label class="ngx-dropdown-label">{{ label() }}</label>
2216
- }
2217
-
2218
- <!-- Trigger -->
2219
- <div
2220
- class="ngx-dropdown-trigger"
2221
- tabindex="0"
2222
- (click)="toggle()"
2223
- (keydown)="onTriggerKey($event)"
2224
- [attr.aria-label]="selectedLabel() || placeholder()"
2225
- >
2226
- <span class="trigger-text" [class.placeholder]="!selectedLabel()">
2227
- {{ selectedLabel() || placeholder() }}
2228
- </span>
2229
- <span class="trigger-arrow" [class.open]="isOpen()">&#9660;</span>
2230
- </div>
2231
-
2232
- <!-- Popup -->
2233
- @if (isOpen()) {
2234
- <div class="ngx-dropdown-popup" role="listbox">
2235
- @if (filterable()) {
2236
- <div class="popup-search">
2237
- <input
2238
- #filterInput
2239
- class="popup-search-input"
2240
- placeholder="Search..."
2241
- [value]="filterText()"
2242
- (input)="filterText.set($any($event.target).value)"
2243
- (keydown)="onFilterKey($event)"
2244
- />
2245
- </div>
2246
- }
2247
- <div class="popup-list">
2248
- @for (opt of filteredOptions(); track opt.value; let i = $index) {
2249
- <div
2250
- class="popup-item"
2251
- [class.selected]="isSelected(opt)"
2252
- [class.focused]="focusedIndex() === i"
2253
- [class.disabled]="opt.disabled"
2254
- role="option"
2255
- [attr.aria-selected]="isSelected(opt)"
2256
- (click)="selectOption(opt)"
2257
- (mouseenter)="focusedIndex.set(i)"
2258
- >{{ opt.label }}</div>
2259
- }
2260
- @if (filteredOptions().length === 0) {
2261
- <div class="popup-empty">No results</div>
2262
- }
2263
- </div>
2264
- </div>
2265
- }
2266
- </div>
2468
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DropdownComponent, isStandalone: true, selector: "ngx-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
2469
+ <div
2470
+ class="ngx-dropdown"
2471
+ [class.open]="isOpen()"
2472
+ [class.disabled]="disabled()"
2473
+ [attr.aria-expanded]="isOpen()"
2474
+ role="combobox"
2475
+ >
2476
+ @if (label()) {
2477
+ <label class="ngx-dropdown-label">{{ label() }}</label>
2478
+ }
2479
+
2480
+ <!-- Trigger -->
2481
+ <div
2482
+ class="ngx-dropdown-trigger"
2483
+ tabindex="0"
2484
+ (click)="toggle()"
2485
+ (keydown)="onTriggerKey($event)"
2486
+ [attr.aria-label]="selectedLabel() || placeholder()"
2487
+ >
2488
+ <span class="trigger-text" [class.placeholder]="!selectedLabel()">
2489
+ {{ selectedLabel() || placeholder() }}
2490
+ </span>
2491
+ <span class="trigger-arrow" [class.open]="isOpen()">&#9660;</span>
2492
+ </div>
2493
+
2494
+ <!-- Popup -->
2495
+ @if (isOpen()) {
2496
+ <div class="ngx-dropdown-popup" role="listbox">
2497
+ @if (filterable()) {
2498
+ <div class="popup-search">
2499
+ <input
2500
+ #filterInput
2501
+ class="popup-search-input"
2502
+ placeholder="Search..."
2503
+ [value]="filterText()"
2504
+ (input)="filterText.set($any($event.target).value)"
2505
+ (keydown)="onFilterKey($event)"
2506
+ />
2507
+ </div>
2508
+ }
2509
+ <div class="popup-list">
2510
+ @for (opt of filteredOptions(); track opt.value; let i = $index) {
2511
+ <div
2512
+ class="popup-item"
2513
+ [class.selected]="isSelected(opt)"
2514
+ [class.focused]="focusedIndex() === i"
2515
+ [class.disabled]="opt.disabled"
2516
+ role="option"
2517
+ [attr.aria-selected]="isSelected(opt)"
2518
+ (click)="selectOption(opt)"
2519
+ (mouseenter)="focusedIndex.set(i)"
2520
+ >{{ opt.label }}</div>
2521
+ }
2522
+ @if (filteredOptions().length === 0) {
2523
+ <div class="popup-empty">No results</div>
2524
+ }
2525
+ </div>
2526
+ </div>
2527
+ }
2528
+ </div>
2267
2529
  `, isInline: true, styles: [":host{display:block}.ngx-dropdown{position:relative;font-family:inherit}.ngx-dropdown-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500}.ngx-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;transition:border-color .15s,box-shadow .15s}.ngx-dropdown-trigger:hover{border-color:#adb5bd}.open .ngx-dropdown-trigger{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.disabled .ngx-dropdown-trigger{background:#f8f9fa;cursor:not-allowed;color:#adb5bd}.trigger-text{flex:1;color:var(--ngx-input-text, #212529)}.trigger-text.placeholder{color:#adb5bd}.trigger-arrow{font-size:10px;color:#6c757d;transition:transform .15s}.trigger-arrow.open{transform:rotate(180deg)}.ngx-dropdown-popup{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1000;background:var(--ngx-input-bg, #fff);border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);box-shadow:0 4px 16px #0000001f;overflow:hidden}.popup-search{padding:8px;border-bottom:1px solid var(--ngx-input-border, #ced4da)}.popup-search-input{width:100%;padding:6px 10px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:3px;font-size:13px;outline:none;font-family:inherit}.popup-list{max-height:240px;overflow-y:auto}.popup-item{padding:8px 12px;font-size:14px;cursor:pointer;color:var(--ngx-input-text, #212529);transition:background .1s}.popup-item:hover,.popup-item.focused{background:var(--ngx-input-hover-bg, #f1f3f5)}.popup-item.selected{background:var(--ngx-input-selected-bg, #e8f0fe);color:var(--ngx-input-focus, #4a90d9);font-weight:500}.popup-item.disabled{color:#adb5bd;cursor:not-allowed}.popup-item.disabled:hover{background:none}.popup-empty{padding:12px;text-align:center;color:#adb5bd;font-size:13px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2268
2530
  }
2269
2531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DropdownComponent, decorators: [{
2270
2532
  type: Component,
2271
- args: [{ selector: 'ngx-dropdown', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2272
- <div
2273
- class="ngx-dropdown"
2274
- [class.open]="isOpen()"
2275
- [class.disabled]="disabled()"
2276
- [attr.aria-expanded]="isOpen()"
2277
- role="combobox"
2278
- >
2279
- @if (label()) {
2280
- <label class="ngx-dropdown-label">{{ label() }}</label>
2281
- }
2282
-
2283
- <!-- Trigger -->
2284
- <div
2285
- class="ngx-dropdown-trigger"
2286
- tabindex="0"
2287
- (click)="toggle()"
2288
- (keydown)="onTriggerKey($event)"
2289
- [attr.aria-label]="selectedLabel() || placeholder()"
2290
- >
2291
- <span class="trigger-text" [class.placeholder]="!selectedLabel()">
2292
- {{ selectedLabel() || placeholder() }}
2293
- </span>
2294
- <span class="trigger-arrow" [class.open]="isOpen()">&#9660;</span>
2295
- </div>
2296
-
2297
- <!-- Popup -->
2298
- @if (isOpen()) {
2299
- <div class="ngx-dropdown-popup" role="listbox">
2300
- @if (filterable()) {
2301
- <div class="popup-search">
2302
- <input
2303
- #filterInput
2304
- class="popup-search-input"
2305
- placeholder="Search..."
2306
- [value]="filterText()"
2307
- (input)="filterText.set($any($event.target).value)"
2308
- (keydown)="onFilterKey($event)"
2309
- />
2310
- </div>
2311
- }
2312
- <div class="popup-list">
2313
- @for (opt of filteredOptions(); track opt.value; let i = $index) {
2314
- <div
2315
- class="popup-item"
2316
- [class.selected]="isSelected(opt)"
2317
- [class.focused]="focusedIndex() === i"
2318
- [class.disabled]="opt.disabled"
2319
- role="option"
2320
- [attr.aria-selected]="isSelected(opt)"
2321
- (click)="selectOption(opt)"
2322
- (mouseenter)="focusedIndex.set(i)"
2323
- >{{ opt.label }}</div>
2324
- }
2325
- @if (filteredOptions().length === 0) {
2326
- <div class="popup-empty">No results</div>
2327
- }
2328
- </div>
2329
- </div>
2330
- }
2331
- </div>
2533
+ args: [{ selector: 'ngx-dropdown', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2534
+ <div
2535
+ class="ngx-dropdown"
2536
+ [class.open]="isOpen()"
2537
+ [class.disabled]="disabled()"
2538
+ [attr.aria-expanded]="isOpen()"
2539
+ role="combobox"
2540
+ >
2541
+ @if (label()) {
2542
+ <label class="ngx-dropdown-label">{{ label() }}</label>
2543
+ }
2544
+
2545
+ <!-- Trigger -->
2546
+ <div
2547
+ class="ngx-dropdown-trigger"
2548
+ tabindex="0"
2549
+ (click)="toggle()"
2550
+ (keydown)="onTriggerKey($event)"
2551
+ [attr.aria-label]="selectedLabel() || placeholder()"
2552
+ >
2553
+ <span class="trigger-text" [class.placeholder]="!selectedLabel()">
2554
+ {{ selectedLabel() || placeholder() }}
2555
+ </span>
2556
+ <span class="trigger-arrow" [class.open]="isOpen()">&#9660;</span>
2557
+ </div>
2558
+
2559
+ <!-- Popup -->
2560
+ @if (isOpen()) {
2561
+ <div class="ngx-dropdown-popup" role="listbox">
2562
+ @if (filterable()) {
2563
+ <div class="popup-search">
2564
+ <input
2565
+ #filterInput
2566
+ class="popup-search-input"
2567
+ placeholder="Search..."
2568
+ [value]="filterText()"
2569
+ (input)="filterText.set($any($event.target).value)"
2570
+ (keydown)="onFilterKey($event)"
2571
+ />
2572
+ </div>
2573
+ }
2574
+ <div class="popup-list">
2575
+ @for (opt of filteredOptions(); track opt.value; let i = $index) {
2576
+ <div
2577
+ class="popup-item"
2578
+ [class.selected]="isSelected(opt)"
2579
+ [class.focused]="focusedIndex() === i"
2580
+ [class.disabled]="opt.disabled"
2581
+ role="option"
2582
+ [attr.aria-selected]="isSelected(opt)"
2583
+ (click)="selectOption(opt)"
2584
+ (mouseenter)="focusedIndex.set(i)"
2585
+ >{{ opt.label }}</div>
2586
+ }
2587
+ @if (filteredOptions().length === 0) {
2588
+ <div class="popup-empty">No results</div>
2589
+ }
2590
+ </div>
2591
+ </div>
2592
+ }
2593
+ </div>
2332
2594
  `, styles: [":host{display:block}.ngx-dropdown{position:relative;font-family:inherit}.ngx-dropdown-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500}.ngx-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;transition:border-color .15s,box-shadow .15s}.ngx-dropdown-trigger:hover{border-color:#adb5bd}.open .ngx-dropdown-trigger{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.disabled .ngx-dropdown-trigger{background:#f8f9fa;cursor:not-allowed;color:#adb5bd}.trigger-text{flex:1;color:var(--ngx-input-text, #212529)}.trigger-text.placeholder{color:#adb5bd}.trigger-arrow{font-size:10px;color:#6c757d;transition:transform .15s}.trigger-arrow.open{transform:rotate(180deg)}.ngx-dropdown-popup{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1000;background:var(--ngx-input-bg, #fff);border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);box-shadow:0 4px 16px #0000001f;overflow:hidden}.popup-search{padding:8px;border-bottom:1px solid var(--ngx-input-border, #ced4da)}.popup-search-input{width:100%;padding:6px 10px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:3px;font-size:13px;outline:none;font-family:inherit}.popup-list{max-height:240px;overflow-y:auto}.popup-item{padding:8px 12px;font-size:14px;cursor:pointer;color:var(--ngx-input-text, #212529);transition:background .1s}.popup-item:hover,.popup-item.focused{background:var(--ngx-input-hover-bg, #f1f3f5)}.popup-item.selected{background:var(--ngx-input-selected-bg, #e8f0fe);color:var(--ngx-input-focus, #4a90d9);font-weight:500}.popup-item.disabled{color:#adb5bd;cursor:not-allowed}.popup-item.disabled:hover{background:none}.popup-empty{padding:12px;text-align:center;color:#adb5bd;font-size:13px}\n"] }]
2333
2595
  }], propDecorators: { onDocClick: [{
2334
2596
  type: HostListener,
@@ -2429,118 +2691,118 @@ class DatePickerComponent {
2429
2691
  this.isOpen.set(false);
2430
2692
  }
2431
2693
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2432
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DatePickerComponent, isStandalone: true, selector: "ngx-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
2433
- <div class="ngx-date-picker" [class.open]="isOpen()" [class.disabled]="disabled()">
2434
- @if (label()) {
2435
- <label class="dp-label">{{ label() }}</label>
2436
- }
2437
- <!-- Input trigger -->
2438
- <div class="dp-input-wrap" (click)="toggle()">
2439
- <input
2440
- class="dp-input"
2441
- readonly
2442
- [value]="displayValue()"
2443
- [placeholder]="placeholder()"
2444
- [disabled]="disabled()"
2445
- />
2446
- <span class="dp-icon">&#128197;</span>
2447
- </div>
2448
-
2449
- <!-- Calendar popup -->
2450
- @if (isOpen()) {
2451
- <div class="dp-popup" (click)="$event.stopPropagation()">
2452
- <!-- Month/Year nav -->
2453
- <div class="dp-nav">
2454
- <button class="dp-nav-btn" (click)="prevMonth()">&#8249;</button>
2455
- <span class="dp-nav-title">{{ monthTitle() }}</span>
2456
- <button class="dp-nav-btn" (click)="nextMonth()">&#8250;</button>
2457
- </div>
2458
- <!-- Weekday headers -->
2459
- <div class="dp-weekdays">
2460
- @for (d of WEEKDAYS; track d) {
2461
- <span class="dp-wd">{{ d }}</span>
2462
- }
2463
- </div>
2464
- <!-- Days grid -->
2465
- <div class="dp-days">
2466
- @for (day of calendarDays(); track day.date?.getTime() ?? $index) {
2467
- <button
2468
- class="dp-day"
2469
- [class.other-month]="!day.current"
2470
- [class.today]="day.isToday"
2471
- [class.selected]="day.isSelected"
2472
- [class.disabled]="day.disabled"
2473
- [disabled]="day.disabled || !day.date"
2474
- (click)="selectDay(day.date)"
2475
- >{{ day.label }}</button>
2476
- }
2477
- </div>
2478
- <!-- Footer -->
2479
- <div class="dp-footer">
2480
- <button class="dp-today-btn" (click)="selectToday()">Today</button>
2481
- <button class="dp-clear-btn" (click)="clearValue()">Clear</button>
2482
- </div>
2483
- </div>
2484
- }
2485
- </div>
2694
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DatePickerComponent, isStandalone: true, selector: "ngx-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
2695
+ <div class="ngx-date-picker" [class.open]="isOpen()" [class.disabled]="disabled()">
2696
+ @if (label()) {
2697
+ <label class="dp-label">{{ label() }}</label>
2698
+ }
2699
+ <!-- Input trigger -->
2700
+ <div class="dp-input-wrap" (click)="toggle()">
2701
+ <input
2702
+ class="dp-input"
2703
+ readonly
2704
+ [value]="displayValue()"
2705
+ [placeholder]="placeholder()"
2706
+ [disabled]="disabled()"
2707
+ />
2708
+ <span class="dp-icon">&#128197;</span>
2709
+ </div>
2710
+
2711
+ <!-- Calendar popup -->
2712
+ @if (isOpen()) {
2713
+ <div class="dp-popup" (click)="$event.stopPropagation()">
2714
+ <!-- Month/Year nav -->
2715
+ <div class="dp-nav">
2716
+ <button class="dp-nav-btn" (click)="prevMonth()">&#8249;</button>
2717
+ <span class="dp-nav-title">{{ monthTitle() }}</span>
2718
+ <button class="dp-nav-btn" (click)="nextMonth()">&#8250;</button>
2719
+ </div>
2720
+ <!-- Weekday headers -->
2721
+ <div class="dp-weekdays">
2722
+ @for (d of WEEKDAYS; track d) {
2723
+ <span class="dp-wd">{{ d }}</span>
2724
+ }
2725
+ </div>
2726
+ <!-- Days grid -->
2727
+ <div class="dp-days">
2728
+ @for (day of calendarDays(); track day.date?.getTime() ?? $index) {
2729
+ <button
2730
+ class="dp-day"
2731
+ [class.other-month]="!day.current"
2732
+ [class.today]="day.isToday"
2733
+ [class.selected]="day.isSelected"
2734
+ [class.disabled]="day.disabled"
2735
+ [disabled]="day.disabled || !day.date"
2736
+ (click)="selectDay(day.date)"
2737
+ >{{ day.label }}</button>
2738
+ }
2739
+ </div>
2740
+ <!-- Footer -->
2741
+ <div class="dp-footer">
2742
+ <button class="dp-today-btn" (click)="selectToday()">Today</button>
2743
+ <button class="dp-clear-btn" (click)="clearValue()">Clear</button>
2744
+ </div>
2745
+ </div>
2746
+ }
2747
+ </div>
2486
2748
  `, isInline: true, styles: [":host{display:block}.ngx-date-picker{position:relative;font-family:inherit}.dp-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500}.dp-input-wrap{display:flex;align-items:center;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);cursor:pointer;transition:border-color .15s,box-shadow .15s}.dp-input-wrap:hover{border-color:#adb5bd}.open .dp-input-wrap{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.disabled .dp-input-wrap{background:#f8f9fa;cursor:not-allowed}.dp-input{flex:1;padding:8px 12px;border:none;outline:none;background:transparent;font-size:14px;color:var(--ngx-input-text, #212529);cursor:pointer;font-family:inherit}.dp-icon{padding:0 12px;color:#6c757d}.dp-popup{position:absolute;top:calc(100% + 4px);left:0;z-index:1000;background:var(--ngx-input-bg, #fff);border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);box-shadow:0 4px 16px #0000001f;padding:12px;width:260px}.dp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.dp-nav-btn{background:none;border:none;cursor:pointer;font-size:20px;color:#6c757d;padding:2px 8px;border-radius:3px;line-height:1}.dp-nav-btn:hover{background:#f1f3f5}.dp-nav-title{font-size:14px;font-weight:600;color:var(--ngx-input-text, #212529)}.dp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px}.dp-wd{text-align:center;font-size:11px;color:#adb5bd;font-weight:600;padding:4px 0}.dp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.dp-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:13px;border:none;background:none;cursor:pointer;border-radius:50%;color:var(--ngx-input-text, #212529);transition:background .1s}.dp-day:hover:not(.disabled):not(.selected){background:#f1f3f5}.dp-day.other-month{color:#ced4da}.dp-day.today{font-weight:700;color:var(--ngx-input-focus, #4a90d9)}.dp-day.selected{background:var(--ngx-input-focus, #4a90d9);color:#fff}.dp-day.disabled{color:#ced4da;cursor:not-allowed}.dp-footer{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid #f1f3f5}.dp-today-btn,.dp-clear-btn{background:none;border:none;cursor:pointer;font-size:12px;color:var(--ngx-input-focus, #4a90d9);padding:4px 8px;border-radius:3px;font-family:inherit}.dp-today-btn:hover,.dp-clear-btn:hover{background:#f1f3f5}.dp-clear-btn{color:#6c757d}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2487
2749
  }
2488
2750
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DatePickerComponent, decorators: [{
2489
2751
  type: Component,
2490
- args: [{ selector: 'ngx-date-picker', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2491
- <div class="ngx-date-picker" [class.open]="isOpen()" [class.disabled]="disabled()">
2492
- @if (label()) {
2493
- <label class="dp-label">{{ label() }}</label>
2494
- }
2495
- <!-- Input trigger -->
2496
- <div class="dp-input-wrap" (click)="toggle()">
2497
- <input
2498
- class="dp-input"
2499
- readonly
2500
- [value]="displayValue()"
2501
- [placeholder]="placeholder()"
2502
- [disabled]="disabled()"
2503
- />
2504
- <span class="dp-icon">&#128197;</span>
2505
- </div>
2506
-
2507
- <!-- Calendar popup -->
2508
- @if (isOpen()) {
2509
- <div class="dp-popup" (click)="$event.stopPropagation()">
2510
- <!-- Month/Year nav -->
2511
- <div class="dp-nav">
2512
- <button class="dp-nav-btn" (click)="prevMonth()">&#8249;</button>
2513
- <span class="dp-nav-title">{{ monthTitle() }}</span>
2514
- <button class="dp-nav-btn" (click)="nextMonth()">&#8250;</button>
2515
- </div>
2516
- <!-- Weekday headers -->
2517
- <div class="dp-weekdays">
2518
- @for (d of WEEKDAYS; track d) {
2519
- <span class="dp-wd">{{ d }}</span>
2520
- }
2521
- </div>
2522
- <!-- Days grid -->
2523
- <div class="dp-days">
2524
- @for (day of calendarDays(); track day.date?.getTime() ?? $index) {
2525
- <button
2526
- class="dp-day"
2527
- [class.other-month]="!day.current"
2528
- [class.today]="day.isToday"
2529
- [class.selected]="day.isSelected"
2530
- [class.disabled]="day.disabled"
2531
- [disabled]="day.disabled || !day.date"
2532
- (click)="selectDay(day.date)"
2533
- >{{ day.label }}</button>
2534
- }
2535
- </div>
2536
- <!-- Footer -->
2537
- <div class="dp-footer">
2538
- <button class="dp-today-btn" (click)="selectToday()">Today</button>
2539
- <button class="dp-clear-btn" (click)="clearValue()">Clear</button>
2540
- </div>
2541
- </div>
2542
- }
2543
- </div>
2752
+ args: [{ selector: 'ngx-date-picker', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2753
+ <div class="ngx-date-picker" [class.open]="isOpen()" [class.disabled]="disabled()">
2754
+ @if (label()) {
2755
+ <label class="dp-label">{{ label() }}</label>
2756
+ }
2757
+ <!-- Input trigger -->
2758
+ <div class="dp-input-wrap" (click)="toggle()">
2759
+ <input
2760
+ class="dp-input"
2761
+ readonly
2762
+ [value]="displayValue()"
2763
+ [placeholder]="placeholder()"
2764
+ [disabled]="disabled()"
2765
+ />
2766
+ <span class="dp-icon">&#128197;</span>
2767
+ </div>
2768
+
2769
+ <!-- Calendar popup -->
2770
+ @if (isOpen()) {
2771
+ <div class="dp-popup" (click)="$event.stopPropagation()">
2772
+ <!-- Month/Year nav -->
2773
+ <div class="dp-nav">
2774
+ <button class="dp-nav-btn" (click)="prevMonth()">&#8249;</button>
2775
+ <span class="dp-nav-title">{{ monthTitle() }}</span>
2776
+ <button class="dp-nav-btn" (click)="nextMonth()">&#8250;</button>
2777
+ </div>
2778
+ <!-- Weekday headers -->
2779
+ <div class="dp-weekdays">
2780
+ @for (d of WEEKDAYS; track d) {
2781
+ <span class="dp-wd">{{ d }}</span>
2782
+ }
2783
+ </div>
2784
+ <!-- Days grid -->
2785
+ <div class="dp-days">
2786
+ @for (day of calendarDays(); track day.date?.getTime() ?? $index) {
2787
+ <button
2788
+ class="dp-day"
2789
+ [class.other-month]="!day.current"
2790
+ [class.today]="day.isToday"
2791
+ [class.selected]="day.isSelected"
2792
+ [class.disabled]="day.disabled"
2793
+ [disabled]="day.disabled || !day.date"
2794
+ (click)="selectDay(day.date)"
2795
+ >{{ day.label }}</button>
2796
+ }
2797
+ </div>
2798
+ <!-- Footer -->
2799
+ <div class="dp-footer">
2800
+ <button class="dp-today-btn" (click)="selectToday()">Today</button>
2801
+ <button class="dp-clear-btn" (click)="clearValue()">Clear</button>
2802
+ </div>
2803
+ </div>
2804
+ }
2805
+ </div>
2544
2806
  `, styles: [":host{display:block}.ngx-date-picker{position:relative;font-family:inherit}.dp-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500}.dp-input-wrap{display:flex;align-items:center;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);cursor:pointer;transition:border-color .15s,box-shadow .15s}.dp-input-wrap:hover{border-color:#adb5bd}.open .dp-input-wrap{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.disabled .dp-input-wrap{background:#f8f9fa;cursor:not-allowed}.dp-input{flex:1;padding:8px 12px;border:none;outline:none;background:transparent;font-size:14px;color:var(--ngx-input-text, #212529);cursor:pointer;font-family:inherit}.dp-icon{padding:0 12px;color:#6c757d}.dp-popup{position:absolute;top:calc(100% + 4px);left:0;z-index:1000;background:var(--ngx-input-bg, #fff);border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);box-shadow:0 4px 16px #0000001f;padding:12px;width:260px}.dp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.dp-nav-btn{background:none;border:none;cursor:pointer;font-size:20px;color:#6c757d;padding:2px 8px;border-radius:3px;line-height:1}.dp-nav-btn:hover{background:#f1f3f5}.dp-nav-title{font-size:14px;font-weight:600;color:var(--ngx-input-text, #212529)}.dp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px}.dp-wd{text-align:center;font-size:11px;color:#adb5bd;font-weight:600;padding:4px 0}.dp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.dp-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:13px;border:none;background:none;cursor:pointer;border-radius:50%;color:var(--ngx-input-text, #212529);transition:background .1s}.dp-day:hover:not(.disabled):not(.selected){background:#f1f3f5}.dp-day.other-month{color:#ced4da}.dp-day.today{font-weight:700;color:var(--ngx-input-focus, #4a90d9)}.dp-day.selected{background:var(--ngx-input-focus, #4a90d9);color:#fff}.dp-day.disabled{color:#ced4da;cursor:not-allowed}.dp-footer{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid #f1f3f5}.dp-today-btn,.dp-clear-btn{background:none;border:none;cursor:pointer;font-size:12px;color:var(--ngx-input-focus, #4a90d9);padding:4px 8px;border-radius:3px;font-family:inherit}.dp-today-btn:hover,.dp-clear-btn:hover{background:#f1f3f5}.dp-clear-btn{color:#6c757d}\n"] }]
2545
2807
  }], propDecorators: { onDocClick: [{
2546
2808
  type: HostListener,
@@ -2607,154 +2869,154 @@ class MultiSelectComponent {
2607
2869
  }
2608
2870
  }
2609
2871
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2610
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: MultiSelectComponent, isStandalone: true, selector: "ngx-multi-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null }, maxTags: { classPropertyName: "maxTags", publicName: "maxTags", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valuesChange: "valuesChange" }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
2611
- <div class="ngx-multi-select" [class.open]="isOpen()" [class.disabled]="disabled()" role="combobox">
2612
- @if (label()) {
2613
- <label class="ms-label">{{ label() }}</label>
2614
- }
2615
- <!-- Trigger -->
2616
- <div class="ms-trigger" tabindex="0" (click)="toggle()" (keydown)="onTriggerKey($event)">
2617
- <div class="ms-tags">
2618
- @for (val of displayValues(); track val.value) {
2619
- <span class="ms-tag">
2620
- {{ val.label }}
2621
- <button class="ms-tag-remove" (click)="removeValue(val.value, $event)" [attr.aria-label]="'Remove ' + val.label">&#10005;</button>
2622
- </span>
2623
- }
2624
- @if (displayValues().length === 0) {
2625
- <span class="ms-placeholder">{{ placeholder() }}</span>
2626
- }
2627
- </div>
2628
- <span class="ms-arrow" [class.open]="isOpen()">&#9660;</span>
2629
- </div>
2630
-
2631
- <!-- Popup -->
2632
- @if (isOpen()) {
2633
- <div class="ms-popup">
2634
- @if (filterable()) {
2635
- <div class="ms-search">
2636
- <input
2637
- class="ms-search-input"
2638
- placeholder="Search..."
2639
- [value]="filterText()"
2640
- (input)="filterText.set($any($event.target).value)"
2641
- (click)="$event.stopPropagation()"
2642
- />
2643
- </div>
2644
- }
2645
- <div class="ms-list">
2646
- <!-- Select All -->
2647
- <label class="ms-item ms-select-all">
2648
- <input
2649
- type="checkbox"
2650
- [checked]="allSelected()"
2651
- [indeterminate]="someSelected() && !allSelected()"
2652
- (change)="toggleAll()"
2653
- />
2654
- <span>Select All</span>
2655
- </label>
2656
- <div class="ms-divider"></div>
2657
- @for (opt of filteredOptions(); track opt.value; let i = $index) {
2658
- <label
2659
- class="ms-item"
2660
- [class.checked]="isChecked(opt)"
2661
- [class.disabled]="opt.disabled"
2662
- [class.focused]="focusedIndex() === i"
2663
- (mouseenter)="focusedIndex.set(i)"
2664
- >
2665
- <input
2666
- type="checkbox"
2667
- [checked]="isChecked(opt)"
2668
- [disabled]="!!opt.disabled"
2669
- (change)="toggleOption(opt)"
2670
- (click)="$event.stopPropagation()"
2671
- />
2672
- <span>{{ opt.label }}</span>
2673
- </label>
2674
- }
2675
- @if (filteredOptions().length === 0) {
2676
- <div class="ms-empty">No results</div>
2677
- }
2678
- </div>
2679
- </div>
2680
- }
2681
- </div>
2872
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: MultiSelectComponent, isStandalone: true, selector: "ngx-multi-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null }, maxTags: { classPropertyName: "maxTags", publicName: "maxTags", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valuesChange: "valuesChange" }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
2873
+ <div class="ngx-multi-select" [class.open]="isOpen()" [class.disabled]="disabled()" role="combobox">
2874
+ @if (label()) {
2875
+ <label class="ms-label">{{ label() }}</label>
2876
+ }
2877
+ <!-- Trigger -->
2878
+ <div class="ms-trigger" tabindex="0" (click)="toggle()" (keydown)="onTriggerKey($event)">
2879
+ <div class="ms-tags">
2880
+ @for (val of displayValues(); track val.value) {
2881
+ <span class="ms-tag">
2882
+ {{ val.label }}
2883
+ <button class="ms-tag-remove" (click)="removeValue(val.value, $event)" [attr.aria-label]="'Remove ' + val.label">&#10005;</button>
2884
+ </span>
2885
+ }
2886
+ @if (displayValues().length === 0) {
2887
+ <span class="ms-placeholder">{{ placeholder() }}</span>
2888
+ }
2889
+ </div>
2890
+ <span class="ms-arrow" [class.open]="isOpen()">&#9660;</span>
2891
+ </div>
2892
+
2893
+ <!-- Popup -->
2894
+ @if (isOpen()) {
2895
+ <div class="ms-popup">
2896
+ @if (filterable()) {
2897
+ <div class="ms-search">
2898
+ <input
2899
+ class="ms-search-input"
2900
+ placeholder="Search..."
2901
+ [value]="filterText()"
2902
+ (input)="filterText.set($any($event.target).value)"
2903
+ (click)="$event.stopPropagation()"
2904
+ />
2905
+ </div>
2906
+ }
2907
+ <div class="ms-list">
2908
+ <!-- Select All -->
2909
+ <label class="ms-item ms-select-all">
2910
+ <input
2911
+ type="checkbox"
2912
+ [checked]="allSelected()"
2913
+ [indeterminate]="someSelected() && !allSelected()"
2914
+ (change)="toggleAll()"
2915
+ />
2916
+ <span>Select All</span>
2917
+ </label>
2918
+ <div class="ms-divider"></div>
2919
+ @for (opt of filteredOptions(); track opt.value; let i = $index) {
2920
+ <label
2921
+ class="ms-item"
2922
+ [class.checked]="isChecked(opt)"
2923
+ [class.disabled]="opt.disabled"
2924
+ [class.focused]="focusedIndex() === i"
2925
+ (mouseenter)="focusedIndex.set(i)"
2926
+ >
2927
+ <input
2928
+ type="checkbox"
2929
+ [checked]="isChecked(opt)"
2930
+ [disabled]="!!opt.disabled"
2931
+ (change)="toggleOption(opt)"
2932
+ (click)="$event.stopPropagation()"
2933
+ />
2934
+ <span>{{ opt.label }}</span>
2935
+ </label>
2936
+ }
2937
+ @if (filteredOptions().length === 0) {
2938
+ <div class="ms-empty">No results</div>
2939
+ }
2940
+ </div>
2941
+ </div>
2942
+ }
2943
+ </div>
2682
2944
  `, isInline: true, styles: [":host{display:block}.ngx-multi-select{position:relative;font-family:inherit}.ms-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500}.ms-trigger{display:flex;align-items:center;min-height:38px;padding:4px 8px 4px 4px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s,box-shadow .15s}.ms-trigger:hover{border-color:#adb5bd}.open .ms-trigger{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.disabled .ms-trigger{background:#f8f9fa;cursor:not-allowed}.ms-tags{display:flex;flex-wrap:wrap;gap:4px;flex:1;align-items:center}.ms-tag{display:inline-flex;align-items:center;gap:4px;background:var(--ngx-input-tag-bg, #e8f0fe);color:var(--ngx-input-tag-color, #1a73e8);padding:2px 4px 2px 8px;border-radius:3px;font-size:12px}.ms-tag-remove{background:none;border:none;cursor:pointer;padding:0 2px;color:var(--ngx-input-tag-color, #1a73e8);font-size:10px;line-height:1}.ms-placeholder{color:#adb5bd;font-size:14px;padding:0 4px}.ms-arrow{font-size:10px;color:#6c757d;transition:transform .15s;margin-left:auto}.ms-arrow.open{transform:rotate(180deg)}.ms-popup{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1000;background:var(--ngx-input-bg, #fff);border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);box-shadow:0 4px 16px #0000001f;overflow:hidden}.ms-search{padding:8px;border-bottom:1px solid var(--ngx-input-border, #ced4da)}.ms-search-input{width:100%;padding:6px 10px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:3px;font-size:13px;outline:none;font-family:inherit}.ms-list{max-height:240px;overflow-y:auto}.ms-item{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;font-size:14px;color:var(--ngx-input-text, #212529)}.ms-item:hover,.ms-item.focused{background:#f1f3f5}.ms-item.checked{background:#f0f7ff}.ms-item.disabled{color:#adb5bd;cursor:not-allowed}.ms-item input[type=checkbox]{width:14px;height:14px;cursor:pointer;accent-color:var(--ngx-input-focus, #4a90d9)}.ms-select-all{font-weight:500}.ms-divider{height:1px;background:#eee;margin:2px 0}.ms-empty{padding:12px;text-align:center;color:#adb5bd;font-size:13px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2683
2945
  }
2684
2946
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MultiSelectComponent, decorators: [{
2685
2947
  type: Component,
2686
- args: [{ selector: 'ngx-multi-select', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2687
- <div class="ngx-multi-select" [class.open]="isOpen()" [class.disabled]="disabled()" role="combobox">
2688
- @if (label()) {
2689
- <label class="ms-label">{{ label() }}</label>
2690
- }
2691
- <!-- Trigger -->
2692
- <div class="ms-trigger" tabindex="0" (click)="toggle()" (keydown)="onTriggerKey($event)">
2693
- <div class="ms-tags">
2694
- @for (val of displayValues(); track val.value) {
2695
- <span class="ms-tag">
2696
- {{ val.label }}
2697
- <button class="ms-tag-remove" (click)="removeValue(val.value, $event)" [attr.aria-label]="'Remove ' + val.label">&#10005;</button>
2698
- </span>
2699
- }
2700
- @if (displayValues().length === 0) {
2701
- <span class="ms-placeholder">{{ placeholder() }}</span>
2702
- }
2703
- </div>
2704
- <span class="ms-arrow" [class.open]="isOpen()">&#9660;</span>
2705
- </div>
2706
-
2707
- <!-- Popup -->
2708
- @if (isOpen()) {
2709
- <div class="ms-popup">
2710
- @if (filterable()) {
2711
- <div class="ms-search">
2712
- <input
2713
- class="ms-search-input"
2714
- placeholder="Search..."
2715
- [value]="filterText()"
2716
- (input)="filterText.set($any($event.target).value)"
2717
- (click)="$event.stopPropagation()"
2718
- />
2719
- </div>
2720
- }
2721
- <div class="ms-list">
2722
- <!-- Select All -->
2723
- <label class="ms-item ms-select-all">
2724
- <input
2725
- type="checkbox"
2726
- [checked]="allSelected()"
2727
- [indeterminate]="someSelected() && !allSelected()"
2728
- (change)="toggleAll()"
2729
- />
2730
- <span>Select All</span>
2731
- </label>
2732
- <div class="ms-divider"></div>
2733
- @for (opt of filteredOptions(); track opt.value; let i = $index) {
2734
- <label
2735
- class="ms-item"
2736
- [class.checked]="isChecked(opt)"
2737
- [class.disabled]="opt.disabled"
2738
- [class.focused]="focusedIndex() === i"
2739
- (mouseenter)="focusedIndex.set(i)"
2740
- >
2741
- <input
2742
- type="checkbox"
2743
- [checked]="isChecked(opt)"
2744
- [disabled]="!!opt.disabled"
2745
- (change)="toggleOption(opt)"
2746
- (click)="$event.stopPropagation()"
2747
- />
2748
- <span>{{ opt.label }}</span>
2749
- </label>
2750
- }
2751
- @if (filteredOptions().length === 0) {
2752
- <div class="ms-empty">No results</div>
2753
- }
2754
- </div>
2755
- </div>
2756
- }
2757
- </div>
2948
+ args: [{ selector: 'ngx-multi-select', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2949
+ <div class="ngx-multi-select" [class.open]="isOpen()" [class.disabled]="disabled()" role="combobox">
2950
+ @if (label()) {
2951
+ <label class="ms-label">{{ label() }}</label>
2952
+ }
2953
+ <!-- Trigger -->
2954
+ <div class="ms-trigger" tabindex="0" (click)="toggle()" (keydown)="onTriggerKey($event)">
2955
+ <div class="ms-tags">
2956
+ @for (val of displayValues(); track val.value) {
2957
+ <span class="ms-tag">
2958
+ {{ val.label }}
2959
+ <button class="ms-tag-remove" (click)="removeValue(val.value, $event)" [attr.aria-label]="'Remove ' + val.label">&#10005;</button>
2960
+ </span>
2961
+ }
2962
+ @if (displayValues().length === 0) {
2963
+ <span class="ms-placeholder">{{ placeholder() }}</span>
2964
+ }
2965
+ </div>
2966
+ <span class="ms-arrow" [class.open]="isOpen()">&#9660;</span>
2967
+ </div>
2968
+
2969
+ <!-- Popup -->
2970
+ @if (isOpen()) {
2971
+ <div class="ms-popup">
2972
+ @if (filterable()) {
2973
+ <div class="ms-search">
2974
+ <input
2975
+ class="ms-search-input"
2976
+ placeholder="Search..."
2977
+ [value]="filterText()"
2978
+ (input)="filterText.set($any($event.target).value)"
2979
+ (click)="$event.stopPropagation()"
2980
+ />
2981
+ </div>
2982
+ }
2983
+ <div class="ms-list">
2984
+ <!-- Select All -->
2985
+ <label class="ms-item ms-select-all">
2986
+ <input
2987
+ type="checkbox"
2988
+ [checked]="allSelected()"
2989
+ [indeterminate]="someSelected() && !allSelected()"
2990
+ (change)="toggleAll()"
2991
+ />
2992
+ <span>Select All</span>
2993
+ </label>
2994
+ <div class="ms-divider"></div>
2995
+ @for (opt of filteredOptions(); track opt.value; let i = $index) {
2996
+ <label
2997
+ class="ms-item"
2998
+ [class.checked]="isChecked(opt)"
2999
+ [class.disabled]="opt.disabled"
3000
+ [class.focused]="focusedIndex() === i"
3001
+ (mouseenter)="focusedIndex.set(i)"
3002
+ >
3003
+ <input
3004
+ type="checkbox"
3005
+ [checked]="isChecked(opt)"
3006
+ [disabled]="!!opt.disabled"
3007
+ (change)="toggleOption(opt)"
3008
+ (click)="$event.stopPropagation()"
3009
+ />
3010
+ <span>{{ opt.label }}</span>
3011
+ </label>
3012
+ }
3013
+ @if (filteredOptions().length === 0) {
3014
+ <div class="ms-empty">No results</div>
3015
+ }
3016
+ </div>
3017
+ </div>
3018
+ }
3019
+ </div>
2758
3020
  `, styles: [":host{display:block}.ngx-multi-select{position:relative;font-family:inherit}.ms-label{display:block;font-size:13px;color:var(--ngx-input-label, #6c757d);margin-bottom:4px;font-weight:500}.ms-trigger{display:flex;align-items:center;min-height:38px;padding:4px 8px 4px 4px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);background:var(--ngx-input-bg, #fff);cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s,box-shadow .15s}.ms-trigger:hover{border-color:#adb5bd}.open .ms-trigger{border-color:var(--ngx-input-focus, #4a90d9);box-shadow:0 0 0 2px #4a90d92e}.disabled .ms-trigger{background:#f8f9fa;cursor:not-allowed}.ms-tags{display:flex;flex-wrap:wrap;gap:4px;flex:1;align-items:center}.ms-tag{display:inline-flex;align-items:center;gap:4px;background:var(--ngx-input-tag-bg, #e8f0fe);color:var(--ngx-input-tag-color, #1a73e8);padding:2px 4px 2px 8px;border-radius:3px;font-size:12px}.ms-tag-remove{background:none;border:none;cursor:pointer;padding:0 2px;color:var(--ngx-input-tag-color, #1a73e8);font-size:10px;line-height:1}.ms-placeholder{color:#adb5bd;font-size:14px;padding:0 4px}.ms-arrow{font-size:10px;color:#6c757d;transition:transform .15s;margin-left:auto}.ms-arrow.open{transform:rotate(180deg)}.ms-popup{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1000;background:var(--ngx-input-bg, #fff);border:1px solid var(--ngx-input-border, #ced4da);border-radius:var(--ngx-input-radius, 4px);box-shadow:0 4px 16px #0000001f;overflow:hidden}.ms-search{padding:8px;border-bottom:1px solid var(--ngx-input-border, #ced4da)}.ms-search-input{width:100%;padding:6px 10px;border:1px solid var(--ngx-input-border, #ced4da);border-radius:3px;font-size:13px;outline:none;font-family:inherit}.ms-list{max-height:240px;overflow-y:auto}.ms-item{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;font-size:14px;color:var(--ngx-input-text, #212529)}.ms-item:hover,.ms-item.focused{background:#f1f3f5}.ms-item.checked{background:#f0f7ff}.ms-item.disabled{color:#adb5bd;cursor:not-allowed}.ms-item input[type=checkbox]{width:14px;height:14px;cursor:pointer;accent-color:var(--ngx-input-focus, #4a90d9)}.ms-select-all{font-weight:500}.ms-divider{height:1px;background:#eee;margin:2px 0}.ms-empty{padding:12px;text-align:center;color:#adb5bd;font-size:13px}\n"] }]
2759
3021
  }], propDecorators: { onDocClick: [{
2760
3022
  type: HostListener,
@@ -2862,224 +3124,224 @@ class DataGridComponent {
2862
3124
  return String(r['id'] ?? r['key'] ?? i);
2863
3125
  }
2864
3126
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DataGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2865
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DataGridComponent, isStandalone: true, selector: "ngx-data-grid", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowClick: "rowClick", selectionChange: "selectionChange", sortChange: "sortChange", pageChange: "pageChange" }, ngImport: i0, template: `
2866
- <div class="ngx-data-grid" [class.loading]="loading()">
2867
-
2868
- <!-- Filter row (above table) if any column is filterable -->
2869
- @if (hasFilterableColumns()) {
2870
- <div class="grid-filter-bar">
2871
- @for (col of columns(); track col.field) {
2872
- @if (col.filterable) {
2873
- <input
2874
- class="grid-filter-input"
2875
- [placeholder]="'Filter ' + col.title"
2876
- [value]="getFilter(col.field)"
2877
- (input)="setFilter(col.field, $any($event.target).value)"
2878
- [style.width.px]="col.width ?? 120"
2879
- />
2880
- } @else {
2881
- <div [style.width.px]="col.width ?? 120" class="grid-filter-spacer"></div>
2882
- }
2883
- }
2884
- </div>
2885
- }
2886
-
2887
- <!-- Table -->
2888
- <div class="grid-table-wrap">
2889
- <table class="grid-table" [class.striped]="striped()">
2890
- <thead>
2891
- <tr>
2892
- @if (selectable()) {
2893
- <th class="grid-th grid-th-check" style="width:40px">
2894
- <input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" />
2895
- </th>
2896
- }
2897
- @for (col of columns(); track col.field) {
2898
- <th
2899
- class="grid-th"
2900
- [style.width.px]="col.width"
2901
- [class.sortable]="col.sortable"
2902
- [class.sort-asc]="sortState()?.field === col.field && sortState()?.dir === 'asc'"
2903
- [class.sort-desc]="sortState()?.field === col.field && sortState()?.dir === 'desc'"
2904
- (click)="col.sortable ? onSort(col) : null"
2905
- >
2906
- <span class="th-text">{{ col.title }}</span>
2907
- @if (col.sortable) {
2908
- <span class="sort-icon">
2909
- @if (sortState()?.field === col.field) {
2910
- {{ sortState()?.dir === 'asc' ? '↑' : '↓' }}
2911
- } @else { ↕ }
2912
- </span>
2913
- }
2914
- </th>
2915
- }
2916
- </tr>
2917
- </thead>
2918
- <tbody>
2919
- @if (loading()) {
2920
- <tr>
2921
- <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-loading-cell">
2922
- <div class="grid-spinner"></div>
2923
- </td>
2924
- </tr>
2925
- } @else if (pagedData().length === 0) {
2926
- <tr>
2927
- <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-empty-cell">No data found.</td>
2928
- </tr>
2929
- } @else {
2930
- @for (row of pagedData(); track getKey(row, $index); let i = $index) {
2931
- <tr
2932
- class="grid-row"
2933
- [class.selected]="isRowSelected(row)"
2934
- (click)="onRowClick(row, i)"
2935
- >
2936
- @if (selectable()) {
2937
- <td class="grid-td grid-td-check">
2938
- <input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
2939
- </td>
2940
- }
2941
- @for (col of columns(); track col.field) {
2942
- <td class="grid-td" [style.text-align]="col.align ?? 'left'">
2943
- {{ getCellValue(row, col.field) }}
2944
- </td>
2945
- }
2946
- </tr>
2947
- }
2948
- }
2949
- </tbody>
2950
- </table>
2951
- </div>
2952
-
2953
- <!-- Pagination -->
2954
- @if (pagedData().length > 0 || totalFiltered() > 0) {
2955
- <div class="grid-pagination">
2956
- <span class="page-info">
2957
- {{ (currentPage() - 1) * pageSize() + 1 }}–{{ Math.min(currentPage() * pageSize(), totalFiltered()) }}
2958
- of {{ totalFiltered() }}
2959
- </span>
2960
- <div class="page-btns">
2961
- <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(1)">&#171;</button>
2962
- <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(currentPage() - 1)">&#8249;</button>
2963
- @for (p of pageNumbers(); track p) {
2964
- <button class="page-btn" [class.active]="p === currentPage()" (click)="goPage(p)">{{ p }}</button>
2965
- }
2966
- <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(currentPage() + 1)">&#8250;</button>
2967
- <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(totalPages())">&#187;</button>
2968
- </div>
2969
- </div>
2970
- }
2971
- </div>
3127
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DataGridComponent, isStandalone: true, selector: "ngx-data-grid", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowClick: "rowClick", selectionChange: "selectionChange", sortChange: "sortChange", pageChange: "pageChange" }, ngImport: i0, template: `
3128
+ <div class="ngx-data-grid" [class.loading]="loading()">
3129
+
3130
+ <!-- Filter row (above table) if any column is filterable -->
3131
+ @if (hasFilterableColumns()) {
3132
+ <div class="grid-filter-bar">
3133
+ @for (col of columns(); track col.field) {
3134
+ @if (col.filterable) {
3135
+ <input
3136
+ class="grid-filter-input"
3137
+ [placeholder]="'Filter ' + col.title"
3138
+ [value]="getFilter(col.field)"
3139
+ (input)="setFilter(col.field, $any($event.target).value)"
3140
+ [style.width.px]="col.width ?? 120"
3141
+ />
3142
+ } @else {
3143
+ <div [style.width.px]="col.width ?? 120" class="grid-filter-spacer"></div>
3144
+ }
3145
+ }
3146
+ </div>
3147
+ }
3148
+
3149
+ <!-- Table -->
3150
+ <div class="grid-table-wrap">
3151
+ <table class="grid-table" [class.striped]="striped()">
3152
+ <thead>
3153
+ <tr>
3154
+ @if (selectable()) {
3155
+ <th class="grid-th grid-th-check" style="width:40px">
3156
+ <input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" />
3157
+ </th>
3158
+ }
3159
+ @for (col of columns(); track col.field) {
3160
+ <th
3161
+ class="grid-th"
3162
+ [style.width.px]="col.width"
3163
+ [class.sortable]="col.sortable"
3164
+ [class.sort-asc]="sortState()?.field === col.field && sortState()?.dir === 'asc'"
3165
+ [class.sort-desc]="sortState()?.field === col.field && sortState()?.dir === 'desc'"
3166
+ (click)="col.sortable ? onSort(col) : null"
3167
+ >
3168
+ <span class="th-text">{{ col.title }}</span>
3169
+ @if (col.sortable) {
3170
+ <span class="sort-icon">
3171
+ @if (sortState()?.field === col.field) {
3172
+ {{ sortState()?.dir === 'asc' ? '↑' : '↓' }}
3173
+ } @else { ↕ }
3174
+ </span>
3175
+ }
3176
+ </th>
3177
+ }
3178
+ </tr>
3179
+ </thead>
3180
+ <tbody>
3181
+ @if (loading()) {
3182
+ <tr>
3183
+ <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-loading-cell">
3184
+ <div class="grid-spinner"></div>
3185
+ </td>
3186
+ </tr>
3187
+ } @else if (pagedData().length === 0) {
3188
+ <tr>
3189
+ <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-empty-cell">No data found.</td>
3190
+ </tr>
3191
+ } @else {
3192
+ @for (row of pagedData(); track getKey(row, $index); let i = $index) {
3193
+ <tr
3194
+ class="grid-row"
3195
+ [class.selected]="isRowSelected(row)"
3196
+ (click)="onRowClick(row, i)"
3197
+ >
3198
+ @if (selectable()) {
3199
+ <td class="grid-td grid-td-check">
3200
+ <input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
3201
+ </td>
3202
+ }
3203
+ @for (col of columns(); track col.field) {
3204
+ <td class="grid-td" [style.text-align]="col.align ?? 'left'">
3205
+ {{ getCellValue(row, col.field) }}
3206
+ </td>
3207
+ }
3208
+ </tr>
3209
+ }
3210
+ }
3211
+ </tbody>
3212
+ </table>
3213
+ </div>
3214
+
3215
+ <!-- Pagination -->
3216
+ @if (pagedData().length > 0 || totalFiltered() > 0) {
3217
+ <div class="grid-pagination">
3218
+ <span class="page-info">
3219
+ {{ (currentPage() - 1) * pageSize() + 1 }}–{{ Math.min(currentPage() * pageSize(), totalFiltered()) }}
3220
+ of {{ totalFiltered() }}
3221
+ </span>
3222
+ <div class="page-btns">
3223
+ <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(1)">&#171;</button>
3224
+ <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(currentPage() - 1)">&#8249;</button>
3225
+ @for (p of pageNumbers(); track p) {
3226
+ <button class="page-btn" [class.active]="p === currentPage()" (click)="goPage(p)">{{ p }}</button>
3227
+ }
3228
+ <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(currentPage() + 1)">&#8250;</button>
3229
+ <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(totalPages())">&#187;</button>
3230
+ </div>
3231
+ </div>
3232
+ }
3233
+ </div>
2972
3234
  `, isInline: true, styles: [":host{display:block}.ngx-data-grid{font-family:inherit;border:1px solid var(--ngx-grid-border, #dee2e6);border-radius:var(--ngx-grid-radius, 4px);overflow:hidden;background:var(--ngx-grid-bg, #fff)}.grid-filter-bar{display:flex;gap:8px;padding:8px 12px;background:var(--ngx-grid-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-grid-border, #dee2e6)}.grid-filter-input{padding:4px 8px;border:1px solid var(--ngx-grid-border, #dee2e6);border-radius:3px;font-size:12px;outline:none;font-family:inherit}.grid-filter-input:focus{border-color:#4a90d9}.grid-filter-spacer{flex-shrink:0}.grid-table-wrap{overflow-x:auto}.grid-table{width:100%;border-collapse:collapse;font-size:13px}.grid-th{padding:10px 12px;text-align:left;font-size:12px;font-weight:600;color:var(--ngx-grid-text-secondary, #6c757d);background:var(--ngx-grid-header-bg, #f1f3f5);border-bottom:2px solid var(--ngx-grid-border, #dee2e6);white-space:nowrap;-webkit-user-select:none;user-select:none}.grid-th.sortable{cursor:pointer}.grid-th.sortable:hover{background:#e9ecef}.grid-th.sort-asc,.grid-th.sort-desc{color:#4a90d9}.th-text{margin-right:4px}.sort-icon{font-size:10px;color:#adb5bd}.sort-asc .sort-icon,.sort-desc .sort-icon{color:#4a90d9}.grid-row{border-bottom:1px solid var(--ngx-grid-border, #dee2e6);cursor:default;transition:background .1s}.grid-row:hover{background:var(--ngx-grid-hover-bg, #f8f9fa)}.grid-row.selected{background:var(--ngx-grid-selected-bg, #e8f0fe)}.grid-table.striped .grid-row:nth-child(2n){background:#f8f9fa}.grid-table.striped .grid-row:nth-child(2n):hover{background:var(--ngx-grid-hover-bg, #f8f9fa)}.grid-table.striped .grid-row.selected{background:var(--ngx-grid-selected-bg, #e8f0fe)!important}.grid-td{padding:9px 12px;color:var(--ngx-grid-text, #212529);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grid-th-check,.grid-td-check{width:40px!important;text-align:center}.grid-loading-cell,.grid-empty-cell{padding:32px;text-align:center;color:var(--ngx-grid-text-secondary, #6c757d)}.grid-spinner{width:24px;height:24px;border:3px solid #dee2e6;border-top-color:#4a90d9;border-radius:50%;animation:spin .7s linear infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.grid-pagination{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--ngx-grid-border, #dee2e6);background:var(--ngx-grid-bg, #fff);flex-wrap:wrap;gap:8px}.page-info{font-size:12px;color:var(--ngx-grid-text-secondary, #6c757d)}.page-btns{display:flex;gap:2px}.page-btn{min-width:28px;height:28px;padding:0 6px;font-size:13px;border:1px solid var(--ngx-grid-border, #dee2e6);background:var(--ngx-grid-bg, #fff);border-radius:3px;cursor:pointer;font-family:inherit;color:var(--ngx-grid-text, #212529);transition:background .1s}.page-btn:hover:not(:disabled){background:#f1f3f5}.page-btn.active{background:#4a90d9;color:#fff;border-color:#4a90d9}.page-btn:disabled{opacity:.4;cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2973
3235
  }
2974
3236
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DataGridComponent, decorators: [{
2975
3237
  type: Component,
2976
- args: [{ selector: 'ngx-data-grid', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2977
- <div class="ngx-data-grid" [class.loading]="loading()">
2978
-
2979
- <!-- Filter row (above table) if any column is filterable -->
2980
- @if (hasFilterableColumns()) {
2981
- <div class="grid-filter-bar">
2982
- @for (col of columns(); track col.field) {
2983
- @if (col.filterable) {
2984
- <input
2985
- class="grid-filter-input"
2986
- [placeholder]="'Filter ' + col.title"
2987
- [value]="getFilter(col.field)"
2988
- (input)="setFilter(col.field, $any($event.target).value)"
2989
- [style.width.px]="col.width ?? 120"
2990
- />
2991
- } @else {
2992
- <div [style.width.px]="col.width ?? 120" class="grid-filter-spacer"></div>
2993
- }
2994
- }
2995
- </div>
2996
- }
2997
-
2998
- <!-- Table -->
2999
- <div class="grid-table-wrap">
3000
- <table class="grid-table" [class.striped]="striped()">
3001
- <thead>
3002
- <tr>
3003
- @if (selectable()) {
3004
- <th class="grid-th grid-th-check" style="width:40px">
3005
- <input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" />
3006
- </th>
3007
- }
3008
- @for (col of columns(); track col.field) {
3009
- <th
3010
- class="grid-th"
3011
- [style.width.px]="col.width"
3012
- [class.sortable]="col.sortable"
3013
- [class.sort-asc]="sortState()?.field === col.field && sortState()?.dir === 'asc'"
3014
- [class.sort-desc]="sortState()?.field === col.field && sortState()?.dir === 'desc'"
3015
- (click)="col.sortable ? onSort(col) : null"
3016
- >
3017
- <span class="th-text">{{ col.title }}</span>
3018
- @if (col.sortable) {
3019
- <span class="sort-icon">
3020
- @if (sortState()?.field === col.field) {
3021
- {{ sortState()?.dir === 'asc' ? '↑' : '↓' }}
3022
- } @else { ↕ }
3023
- </span>
3024
- }
3025
- </th>
3026
- }
3027
- </tr>
3028
- </thead>
3029
- <tbody>
3030
- @if (loading()) {
3031
- <tr>
3032
- <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-loading-cell">
3033
- <div class="grid-spinner"></div>
3034
- </td>
3035
- </tr>
3036
- } @else if (pagedData().length === 0) {
3037
- <tr>
3038
- <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-empty-cell">No data found.</td>
3039
- </tr>
3040
- } @else {
3041
- @for (row of pagedData(); track getKey(row, $index); let i = $index) {
3042
- <tr
3043
- class="grid-row"
3044
- [class.selected]="isRowSelected(row)"
3045
- (click)="onRowClick(row, i)"
3046
- >
3047
- @if (selectable()) {
3048
- <td class="grid-td grid-td-check">
3049
- <input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
3050
- </td>
3051
- }
3052
- @for (col of columns(); track col.field) {
3053
- <td class="grid-td" [style.text-align]="col.align ?? 'left'">
3054
- {{ getCellValue(row, col.field) }}
3055
- </td>
3056
- }
3057
- </tr>
3058
- }
3059
- }
3060
- </tbody>
3061
- </table>
3062
- </div>
3063
-
3064
- <!-- Pagination -->
3065
- @if (pagedData().length > 0 || totalFiltered() > 0) {
3066
- <div class="grid-pagination">
3067
- <span class="page-info">
3068
- {{ (currentPage() - 1) * pageSize() + 1 }}–{{ Math.min(currentPage() * pageSize(), totalFiltered()) }}
3069
- of {{ totalFiltered() }}
3070
- </span>
3071
- <div class="page-btns">
3072
- <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(1)">&#171;</button>
3073
- <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(currentPage() - 1)">&#8249;</button>
3074
- @for (p of pageNumbers(); track p) {
3075
- <button class="page-btn" [class.active]="p === currentPage()" (click)="goPage(p)">{{ p }}</button>
3076
- }
3077
- <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(currentPage() + 1)">&#8250;</button>
3078
- <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(totalPages())">&#187;</button>
3079
- </div>
3080
- </div>
3081
- }
3082
- </div>
3238
+ args: [{ selector: 'ngx-data-grid', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
3239
+ <div class="ngx-data-grid" [class.loading]="loading()">
3240
+
3241
+ <!-- Filter row (above table) if any column is filterable -->
3242
+ @if (hasFilterableColumns()) {
3243
+ <div class="grid-filter-bar">
3244
+ @for (col of columns(); track col.field) {
3245
+ @if (col.filterable) {
3246
+ <input
3247
+ class="grid-filter-input"
3248
+ [placeholder]="'Filter ' + col.title"
3249
+ [value]="getFilter(col.field)"
3250
+ (input)="setFilter(col.field, $any($event.target).value)"
3251
+ [style.width.px]="col.width ?? 120"
3252
+ />
3253
+ } @else {
3254
+ <div [style.width.px]="col.width ?? 120" class="grid-filter-spacer"></div>
3255
+ }
3256
+ }
3257
+ </div>
3258
+ }
3259
+
3260
+ <!-- Table -->
3261
+ <div class="grid-table-wrap">
3262
+ <table class="grid-table" [class.striped]="striped()">
3263
+ <thead>
3264
+ <tr>
3265
+ @if (selectable()) {
3266
+ <th class="grid-th grid-th-check" style="width:40px">
3267
+ <input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" />
3268
+ </th>
3269
+ }
3270
+ @for (col of columns(); track col.field) {
3271
+ <th
3272
+ class="grid-th"
3273
+ [style.width.px]="col.width"
3274
+ [class.sortable]="col.sortable"
3275
+ [class.sort-asc]="sortState()?.field === col.field && sortState()?.dir === 'asc'"
3276
+ [class.sort-desc]="sortState()?.field === col.field && sortState()?.dir === 'desc'"
3277
+ (click)="col.sortable ? onSort(col) : null"
3278
+ >
3279
+ <span class="th-text">{{ col.title }}</span>
3280
+ @if (col.sortable) {
3281
+ <span class="sort-icon">
3282
+ @if (sortState()?.field === col.field) {
3283
+ {{ sortState()?.dir === 'asc' ? '↑' : '↓' }}
3284
+ } @else { ↕ }
3285
+ </span>
3286
+ }
3287
+ </th>
3288
+ }
3289
+ </tr>
3290
+ </thead>
3291
+ <tbody>
3292
+ @if (loading()) {
3293
+ <tr>
3294
+ <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-loading-cell">
3295
+ <div class="grid-spinner"></div>
3296
+ </td>
3297
+ </tr>
3298
+ } @else if (pagedData().length === 0) {
3299
+ <tr>
3300
+ <td [attr.colspan]="columns().length + (selectable() ? 1 : 0)" class="grid-empty-cell">No data found.</td>
3301
+ </tr>
3302
+ } @else {
3303
+ @for (row of pagedData(); track getKey(row, $index); let i = $index) {
3304
+ <tr
3305
+ class="grid-row"
3306
+ [class.selected]="isRowSelected(row)"
3307
+ (click)="onRowClick(row, i)"
3308
+ >
3309
+ @if (selectable()) {
3310
+ <td class="grid-td grid-td-check">
3311
+ <input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
3312
+ </td>
3313
+ }
3314
+ @for (col of columns(); track col.field) {
3315
+ <td class="grid-td" [style.text-align]="col.align ?? 'left'">
3316
+ {{ getCellValue(row, col.field) }}
3317
+ </td>
3318
+ }
3319
+ </tr>
3320
+ }
3321
+ }
3322
+ </tbody>
3323
+ </table>
3324
+ </div>
3325
+
3326
+ <!-- Pagination -->
3327
+ @if (pagedData().length > 0 || totalFiltered() > 0) {
3328
+ <div class="grid-pagination">
3329
+ <span class="page-info">
3330
+ {{ (currentPage() - 1) * pageSize() + 1 }}–{{ Math.min(currentPage() * pageSize(), totalFiltered()) }}
3331
+ of {{ totalFiltered() }}
3332
+ </span>
3333
+ <div class="page-btns">
3334
+ <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(1)">&#171;</button>
3335
+ <button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(currentPage() - 1)">&#8249;</button>
3336
+ @for (p of pageNumbers(); track p) {
3337
+ <button class="page-btn" [class.active]="p === currentPage()" (click)="goPage(p)">{{ p }}</button>
3338
+ }
3339
+ <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(currentPage() + 1)">&#8250;</button>
3340
+ <button class="page-btn" [disabled]="currentPage() === totalPages()" (click)="goPage(totalPages())">&#187;</button>
3341
+ </div>
3342
+ </div>
3343
+ }
3344
+ </div>
3083
3345
  `, styles: [":host{display:block}.ngx-data-grid{font-family:inherit;border:1px solid var(--ngx-grid-border, #dee2e6);border-radius:var(--ngx-grid-radius, 4px);overflow:hidden;background:var(--ngx-grid-bg, #fff)}.grid-filter-bar{display:flex;gap:8px;padding:8px 12px;background:var(--ngx-grid-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-grid-border, #dee2e6)}.grid-filter-input{padding:4px 8px;border:1px solid var(--ngx-grid-border, #dee2e6);border-radius:3px;font-size:12px;outline:none;font-family:inherit}.grid-filter-input:focus{border-color:#4a90d9}.grid-filter-spacer{flex-shrink:0}.grid-table-wrap{overflow-x:auto}.grid-table{width:100%;border-collapse:collapse;font-size:13px}.grid-th{padding:10px 12px;text-align:left;font-size:12px;font-weight:600;color:var(--ngx-grid-text-secondary, #6c757d);background:var(--ngx-grid-header-bg, #f1f3f5);border-bottom:2px solid var(--ngx-grid-border, #dee2e6);white-space:nowrap;-webkit-user-select:none;user-select:none}.grid-th.sortable{cursor:pointer}.grid-th.sortable:hover{background:#e9ecef}.grid-th.sort-asc,.grid-th.sort-desc{color:#4a90d9}.th-text{margin-right:4px}.sort-icon{font-size:10px;color:#adb5bd}.sort-asc .sort-icon,.sort-desc .sort-icon{color:#4a90d9}.grid-row{border-bottom:1px solid var(--ngx-grid-border, #dee2e6);cursor:default;transition:background .1s}.grid-row:hover{background:var(--ngx-grid-hover-bg, #f8f9fa)}.grid-row.selected{background:var(--ngx-grid-selected-bg, #e8f0fe)}.grid-table.striped .grid-row:nth-child(2n){background:#f8f9fa}.grid-table.striped .grid-row:nth-child(2n):hover{background:var(--ngx-grid-hover-bg, #f8f9fa)}.grid-table.striped .grid-row.selected{background:var(--ngx-grid-selected-bg, #e8f0fe)!important}.grid-td{padding:9px 12px;color:var(--ngx-grid-text, #212529);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grid-th-check,.grid-td-check{width:40px!important;text-align:center}.grid-loading-cell,.grid-empty-cell{padding:32px;text-align:center;color:var(--ngx-grid-text-secondary, #6c757d)}.grid-spinner{width:24px;height:24px;border:3px solid #dee2e6;border-top-color:#4a90d9;border-radius:50%;animation:spin .7s linear infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.grid-pagination{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--ngx-grid-border, #dee2e6);background:var(--ngx-grid-bg, #fff);flex-wrap:wrap;gap:8px}.page-info{font-size:12px;color:var(--ngx-grid-text-secondary, #6c757d)}.page-btns{display:flex;gap:2px}.page-btn{min-width:28px;height:28px;padding:0 6px;font-size:13px;border:1px solid var(--ngx-grid-border, #dee2e6);background:var(--ngx-grid-bg, #fff);border-radius:3px;cursor:pointer;font-family:inherit;color:var(--ngx-grid-text, #212529);transition:background .1s}.page-btn:hover:not(:disabled){background:#f1f3f5}.page-btn.active{background:#4a90d9;color:#fff;border-color:#4a90d9}.page-btn:disabled{opacity:.4;cursor:not-allowed}\n"] }]
3084
3346
  }] });
3085
3347
 
@@ -3174,126 +3436,126 @@ class TreeViewComponent {
3174
3436
  return null;
3175
3437
  }
3176
3438
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3177
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TreeViewComponent, isStandalone: true, selector: "ngx-tree-view", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, checkable: { classPropertyName: "checkable", publicName: "checkable", isSignal: true, isRequired: false, transformFunction: null }, selectedId: { classPropertyName: "selectedId", publicName: "selectedId", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodeSelect: "nodeSelect", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", checkChange: "checkChange" }, ngImport: i0, template: `
3178
- <div class="ngx-tree-view" role="tree" (keydown)="onKeyDown($event)" tabindex="0">
3179
- @for (node of nodes(); track node.id) {
3180
- <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: node, depth: 0 }"/>
3181
- }
3182
-
3183
- <ng-template #nodeTemplate let-node="node" let-depth="depth">
3184
- <div
3185
- class="tree-node"
3186
- [style.padding-left.px]="depth * 20 + 8"
3187
- [class.selected]="selectedId() === node.id"
3188
- [class.focused]="focusedId() === node.id"
3189
- role="treeitem"
3190
- [attr.aria-expanded]="isExpanded(node.id)"
3191
- [attr.aria-selected]="selectedId() === node.id"
3192
- (click)="onNodeClick(node, $event)"
3193
- >
3194
- <!-- Expand/collapse -->
3195
- @if (hasNodeChildren(node)) {
3196
- <button
3197
- class="tree-expand-btn"
3198
- (click)="toggleExpand(node, $event)"
3199
- [attr.aria-label]="isExpanded(node.id) ? 'Collapse' : 'Expand'"
3200
- >
3201
- <span class="expand-icon" [class.expanded]="isExpanded(node.id)">&#9658;</span>
3202
- </button>
3203
- } @else {
3204
- <span class="tree-leaf-spacer"></span>
3205
- }
3206
-
3207
- <!-- Checkbox -->
3208
- @if (checkable()) {
3209
- <input
3210
- type="checkbox"
3211
- class="tree-checkbox"
3212
- [checked]="isChecked(node.id)"
3213
- (change)="onCheck(node)"
3214
- (click)="$event.stopPropagation()"
3215
- />
3216
- }
3217
-
3218
- <!-- Icon -->
3219
- @if (node.icon) {
3220
- <span class="tree-icon">{{ node.icon }}</span>
3221
- }
3222
-
3223
- <!-- Label -->
3224
- <span class="tree-label">{{ node.label }}</span>
3225
- </div>
3226
-
3227
- <!-- Children -->
3228
- @if (isExpanded(node.id) && node.children) {
3229
- @for (child of node.children; track child.id) {
3230
- <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: child, depth: depth + 1 }"/>
3231
- }
3232
- }
3233
- </ng-template>
3234
- </div>
3439
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TreeViewComponent, isStandalone: true, selector: "ngx-tree-view", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, checkable: { classPropertyName: "checkable", publicName: "checkable", isSignal: true, isRequired: false, transformFunction: null }, selectedId: { classPropertyName: "selectedId", publicName: "selectedId", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodeSelect: "nodeSelect", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", checkChange: "checkChange" }, ngImport: i0, template: `
3440
+ <div class="ngx-tree-view" role="tree" (keydown)="onKeyDown($event)" tabindex="0">
3441
+ @for (node of nodes(); track node.id) {
3442
+ <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: node, depth: 0 }"/>
3443
+ }
3444
+
3445
+ <ng-template #nodeTemplate let-node="node" let-depth="depth">
3446
+ <div
3447
+ class="tree-node"
3448
+ [style.padding-left.px]="depth * 20 + 8"
3449
+ [class.selected]="selectedId() === node.id"
3450
+ [class.focused]="focusedId() === node.id"
3451
+ role="treeitem"
3452
+ [attr.aria-expanded]="isExpanded(node.id)"
3453
+ [attr.aria-selected]="selectedId() === node.id"
3454
+ (click)="onNodeClick(node, $event)"
3455
+ >
3456
+ <!-- Expand/collapse -->
3457
+ @if (hasNodeChildren(node)) {
3458
+ <button
3459
+ class="tree-expand-btn"
3460
+ (click)="toggleExpand(node, $event)"
3461
+ [attr.aria-label]="isExpanded(node.id) ? 'Collapse' : 'Expand'"
3462
+ >
3463
+ <span class="expand-icon" [class.expanded]="isExpanded(node.id)">&#9658;</span>
3464
+ </button>
3465
+ } @else {
3466
+ <span class="tree-leaf-spacer"></span>
3467
+ }
3468
+
3469
+ <!-- Checkbox -->
3470
+ @if (checkable()) {
3471
+ <input
3472
+ type="checkbox"
3473
+ class="tree-checkbox"
3474
+ [checked]="isChecked(node.id)"
3475
+ (change)="onCheck(node)"
3476
+ (click)="$event.stopPropagation()"
3477
+ />
3478
+ }
3479
+
3480
+ <!-- Icon -->
3481
+ @if (node.icon) {
3482
+ <span class="tree-icon">{{ node.icon }}</span>
3483
+ }
3484
+
3485
+ <!-- Label -->
3486
+ <span class="tree-label">{{ node.label }}</span>
3487
+ </div>
3488
+
3489
+ <!-- Children -->
3490
+ @if (isExpanded(node.id) && node.children) {
3491
+ @for (child of node.children; track child.id) {
3492
+ <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: child, depth: depth + 1 }"/>
3493
+ }
3494
+ }
3495
+ </ng-template>
3496
+ </div>
3235
3497
  `, isInline: true, styles: [":host{display:block}.ngx-tree-view{background:var(--ngx-tree-bg, #fff);border:1px solid var(--ngx-tree-border, #dee2e6);border-radius:var(--ngx-tree-radius, 4px);overflow-y:auto;font-family:inherit;outline:none}.tree-node{display:flex;align-items:center;gap:4px;height:32px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px;margin:1px 4px;transition:background .1s}.tree-node:hover{background:var(--ngx-tree-hover-bg, #f1f3f5)}.tree-node.selected{background:var(--ngx-tree-selected-bg, #e8f0fe);color:var(--ngx-tree-selected-color, #1a73e8)}.tree-node.focused{outline:2px solid rgba(74,144,217,.4);outline-offset:-1px}.tree-expand-btn{width:20px;height:20px;background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;color:var(--ngx-tree-text-secondary, #6c757d)}.tree-expand-btn:hover{background:var(--ngx-tree-border, #dee2e6)}.expand-icon{font-size:9px;transition:transform .15s;display:inline-block}.expand-icon.expanded{transform:rotate(90deg)}.tree-leaf-spacer{width:20px;flex-shrink:0}.tree-checkbox{width:14px;height:14px;cursor:pointer;flex-shrink:0;accent-color:#4a90d9}.tree-icon{font-size:14px;flex-shrink:0}.tree-label{font-size:13px;color:var(--ngx-tree-text, #212529);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected .tree-label{color:var(--ngx-tree-selected-color, #1a73e8);font-weight:500}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3236
3498
  }
3237
3499
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeViewComponent, decorators: [{
3238
3500
  type: Component,
3239
- args: [{ selector: 'ngx-tree-view', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
3240
- <div class="ngx-tree-view" role="tree" (keydown)="onKeyDown($event)" tabindex="0">
3241
- @for (node of nodes(); track node.id) {
3242
- <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: node, depth: 0 }"/>
3243
- }
3244
-
3245
- <ng-template #nodeTemplate let-node="node" let-depth="depth">
3246
- <div
3247
- class="tree-node"
3248
- [style.padding-left.px]="depth * 20 + 8"
3249
- [class.selected]="selectedId() === node.id"
3250
- [class.focused]="focusedId() === node.id"
3251
- role="treeitem"
3252
- [attr.aria-expanded]="isExpanded(node.id)"
3253
- [attr.aria-selected]="selectedId() === node.id"
3254
- (click)="onNodeClick(node, $event)"
3255
- >
3256
- <!-- Expand/collapse -->
3257
- @if (hasNodeChildren(node)) {
3258
- <button
3259
- class="tree-expand-btn"
3260
- (click)="toggleExpand(node, $event)"
3261
- [attr.aria-label]="isExpanded(node.id) ? 'Collapse' : 'Expand'"
3262
- >
3263
- <span class="expand-icon" [class.expanded]="isExpanded(node.id)">&#9658;</span>
3264
- </button>
3265
- } @else {
3266
- <span class="tree-leaf-spacer"></span>
3267
- }
3268
-
3269
- <!-- Checkbox -->
3270
- @if (checkable()) {
3271
- <input
3272
- type="checkbox"
3273
- class="tree-checkbox"
3274
- [checked]="isChecked(node.id)"
3275
- (change)="onCheck(node)"
3276
- (click)="$event.stopPropagation()"
3277
- />
3278
- }
3279
-
3280
- <!-- Icon -->
3281
- @if (node.icon) {
3282
- <span class="tree-icon">{{ node.icon }}</span>
3283
- }
3284
-
3285
- <!-- Label -->
3286
- <span class="tree-label">{{ node.label }}</span>
3287
- </div>
3288
-
3289
- <!-- Children -->
3290
- @if (isExpanded(node.id) && node.children) {
3291
- @for (child of node.children; track child.id) {
3292
- <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: child, depth: depth + 1 }"/>
3293
- }
3294
- }
3295
- </ng-template>
3296
- </div>
3501
+ args: [{ selector: 'ngx-tree-view', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
3502
+ <div class="ngx-tree-view" role="tree" (keydown)="onKeyDown($event)" tabindex="0">
3503
+ @for (node of nodes(); track node.id) {
3504
+ <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: node, depth: 0 }"/>
3505
+ }
3506
+
3507
+ <ng-template #nodeTemplate let-node="node" let-depth="depth">
3508
+ <div
3509
+ class="tree-node"
3510
+ [style.padding-left.px]="depth * 20 + 8"
3511
+ [class.selected]="selectedId() === node.id"
3512
+ [class.focused]="focusedId() === node.id"
3513
+ role="treeitem"
3514
+ [attr.aria-expanded]="isExpanded(node.id)"
3515
+ [attr.aria-selected]="selectedId() === node.id"
3516
+ (click)="onNodeClick(node, $event)"
3517
+ >
3518
+ <!-- Expand/collapse -->
3519
+ @if (hasNodeChildren(node)) {
3520
+ <button
3521
+ class="tree-expand-btn"
3522
+ (click)="toggleExpand(node, $event)"
3523
+ [attr.aria-label]="isExpanded(node.id) ? 'Collapse' : 'Expand'"
3524
+ >
3525
+ <span class="expand-icon" [class.expanded]="isExpanded(node.id)">&#9658;</span>
3526
+ </button>
3527
+ } @else {
3528
+ <span class="tree-leaf-spacer"></span>
3529
+ }
3530
+
3531
+ <!-- Checkbox -->
3532
+ @if (checkable()) {
3533
+ <input
3534
+ type="checkbox"
3535
+ class="tree-checkbox"
3536
+ [checked]="isChecked(node.id)"
3537
+ (change)="onCheck(node)"
3538
+ (click)="$event.stopPropagation()"
3539
+ />
3540
+ }
3541
+
3542
+ <!-- Icon -->
3543
+ @if (node.icon) {
3544
+ <span class="tree-icon">{{ node.icon }}</span>
3545
+ }
3546
+
3547
+ <!-- Label -->
3548
+ <span class="tree-label">{{ node.label }}</span>
3549
+ </div>
3550
+
3551
+ <!-- Children -->
3552
+ @if (isExpanded(node.id) && node.children) {
3553
+ @for (child of node.children; track child.id) {
3554
+ <ng-container *ngTemplateOutlet="nodeTemplate; context: { node: child, depth: depth + 1 }"/>
3555
+ }
3556
+ }
3557
+ </ng-template>
3558
+ </div>
3297
3559
  `, styles: [":host{display:block}.ngx-tree-view{background:var(--ngx-tree-bg, #fff);border:1px solid var(--ngx-tree-border, #dee2e6);border-radius:var(--ngx-tree-radius, 4px);overflow-y:auto;font-family:inherit;outline:none}.tree-node{display:flex;align-items:center;gap:4px;height:32px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px;margin:1px 4px;transition:background .1s}.tree-node:hover{background:var(--ngx-tree-hover-bg, #f1f3f5)}.tree-node.selected{background:var(--ngx-tree-selected-bg, #e8f0fe);color:var(--ngx-tree-selected-color, #1a73e8)}.tree-node.focused{outline:2px solid rgba(74,144,217,.4);outline-offset:-1px}.tree-expand-btn{width:20px;height:20px;background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;color:var(--ngx-tree-text-secondary, #6c757d)}.tree-expand-btn:hover{background:var(--ngx-tree-border, #dee2e6)}.expand-icon{font-size:9px;transition:transform .15s;display:inline-block}.expand-icon.expanded{transform:rotate(90deg)}.tree-leaf-spacer{width:20px;flex-shrink:0}.tree-checkbox{width:14px;height:14px;cursor:pointer;flex-shrink:0;accent-color:#4a90d9}.tree-icon{font-size:14px;flex-shrink:0}.tree-label{font-size:13px;color:var(--ngx-tree-text, #212529);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected .tree-label{color:var(--ngx-tree-selected-color, #1a73e8);font-weight:500}\n"] }]
3298
3560
  }] });
3299
3561
 
@@ -3341,84 +3603,84 @@ class ListViewComponent {
3341
3603
  return String(index);
3342
3604
  }
3343
3605
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ListViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3344
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ListViewComponent, isStandalone: true, selector: "ngx-list-view", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, multiselect: { classPropertyName: "multiselect", publicName: "multiselect", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, labelField: { classPropertyName: "labelField", publicName: "labelField", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", selectionChange: "selectionChange" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true }], ngImport: i0, template: `
3345
- <div class="ngx-list-view">
3346
- <!-- Header slot -->
3347
- <ng-content select="[listHeader]"/>
3348
-
3349
- <!-- Loading -->
3350
- @if (loading()) {
3351
- <div class="lv-loading">
3352
- <div class="lv-spinner"></div>
3353
- <span>Loading...</span>
3354
- </div>
3355
- } @else if (items().length === 0) {
3356
- <div class="lv-empty">No items to display.</div>
3357
- } @else {
3358
- <div class="lv-list" role="listbox" [attr.aria-multiselectable]="multiselect()">
3359
- @for (item of items(); track trackFn(item, $index); let i = $index) {
3360
- <div
3361
- class="lv-item"
3362
- [class.lv-alt]="i % 2 === 1"
3363
- [class.lv-selected]="isSelected(item)"
3364
- role="option"
3365
- [attr.aria-selected]="isSelected(item)"
3366
- (click)="onItemClick(item, i)"
3367
- >
3368
- @if (itemTemplate) {
3369
- <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item, index: i }"/>
3370
- } @else {
3371
- <span class="lv-default-text">{{ getLabel(item) }}</span>
3372
- }
3373
- </div>
3374
- }
3375
- </div>
3376
- }
3377
-
3378
- <!-- Footer slot -->
3379
- <ng-content select="[listFooter]"/>
3380
- </div>
3606
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ListViewComponent, isStandalone: true, selector: "ngx-list-view", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, multiselect: { classPropertyName: "multiselect", publicName: "multiselect", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, labelField: { classPropertyName: "labelField", publicName: "labelField", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", selectionChange: "selectionChange" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true }], ngImport: i0, template: `
3607
+ <div class="ngx-list-view">
3608
+ <!-- Header slot -->
3609
+ <ng-content select="[listHeader]"/>
3610
+
3611
+ <!-- Loading -->
3612
+ @if (loading()) {
3613
+ <div class="lv-loading">
3614
+ <div class="lv-spinner"></div>
3615
+ <span>Loading...</span>
3616
+ </div>
3617
+ } @else if (items().length === 0) {
3618
+ <div class="lv-empty">No items to display.</div>
3619
+ } @else {
3620
+ <div class="lv-list" role="listbox" [attr.aria-multiselectable]="multiselect()">
3621
+ @for (item of items(); track trackFn(item, $index); let i = $index) {
3622
+ <div
3623
+ class="lv-item"
3624
+ [class.lv-alt]="i % 2 === 1"
3625
+ [class.lv-selected]="isSelected(item)"
3626
+ role="option"
3627
+ [attr.aria-selected]="isSelected(item)"
3628
+ (click)="onItemClick(item, i)"
3629
+ >
3630
+ @if (itemTemplate) {
3631
+ <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item, index: i }"/>
3632
+ } @else {
3633
+ <span class="lv-default-text">{{ getLabel(item) }}</span>
3634
+ }
3635
+ </div>
3636
+ }
3637
+ </div>
3638
+ }
3639
+
3640
+ <!-- Footer slot -->
3641
+ <ng-content select="[listFooter]"/>
3642
+ </div>
3381
3643
  `, isInline: true, styles: [":host{display:block}.ngx-list-view{border:1px solid var(--ngx-list-border, #dee2e6);border-radius:var(--ngx-list-radius, 4px);background:var(--ngx-list-bg, #fff);overflow:hidden;font-family:inherit}.lv-list{overflow-y:auto}.lv-item{padding:10px 16px;cursor:pointer;border-bottom:1px solid var(--ngx-list-border, #dee2e6);transition:background .1s;color:var(--ngx-list-text, #212529);font-size:13px}.lv-item:last-child{border-bottom:none}.lv-item:hover{background:var(--ngx-list-hover-bg, #f1f3f5)}.lv-item.lv-alt{background:var(--ngx-list-alt-bg, #f8f9fa)}.lv-item.lv-alt:hover{background:var(--ngx-list-hover-bg, #f1f3f5)}.lv-item.lv-selected{background:var(--ngx-list-selected-bg, #e8f0fe);color:var(--ngx-list-selected-color, #1a73e8);font-weight:500}.lv-item.lv-selected:hover{background:var(--ngx-list-selected-bg, #e8f0fe)}.lv-default-text{display:block}.lv-loading,.lv-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:32px;color:#adb5bd;font-size:13px}.lv-spinner{width:20px;height:20px;border:2px solid #dee2e6;border-top-color:#4a90d9;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3382
3644
  }
3383
3645
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ListViewComponent, decorators: [{
3384
3646
  type: Component,
3385
- args: [{ selector: 'ngx-list-view', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
3386
- <div class="ngx-list-view">
3387
- <!-- Header slot -->
3388
- <ng-content select="[listHeader]"/>
3389
-
3390
- <!-- Loading -->
3391
- @if (loading()) {
3392
- <div class="lv-loading">
3393
- <div class="lv-spinner"></div>
3394
- <span>Loading...</span>
3395
- </div>
3396
- } @else if (items().length === 0) {
3397
- <div class="lv-empty">No items to display.</div>
3398
- } @else {
3399
- <div class="lv-list" role="listbox" [attr.aria-multiselectable]="multiselect()">
3400
- @for (item of items(); track trackFn(item, $index); let i = $index) {
3401
- <div
3402
- class="lv-item"
3403
- [class.lv-alt]="i % 2 === 1"
3404
- [class.lv-selected]="isSelected(item)"
3405
- role="option"
3406
- [attr.aria-selected]="isSelected(item)"
3407
- (click)="onItemClick(item, i)"
3408
- >
3409
- @if (itemTemplate) {
3410
- <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item, index: i }"/>
3411
- } @else {
3412
- <span class="lv-default-text">{{ getLabel(item) }}</span>
3413
- }
3414
- </div>
3415
- }
3416
- </div>
3417
- }
3418
-
3419
- <!-- Footer slot -->
3420
- <ng-content select="[listFooter]"/>
3421
- </div>
3647
+ args: [{ selector: 'ngx-list-view', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
3648
+ <div class="ngx-list-view">
3649
+ <!-- Header slot -->
3650
+ <ng-content select="[listHeader]"/>
3651
+
3652
+ <!-- Loading -->
3653
+ @if (loading()) {
3654
+ <div class="lv-loading">
3655
+ <div class="lv-spinner"></div>
3656
+ <span>Loading...</span>
3657
+ </div>
3658
+ } @else if (items().length === 0) {
3659
+ <div class="lv-empty">No items to display.</div>
3660
+ } @else {
3661
+ <div class="lv-list" role="listbox" [attr.aria-multiselectable]="multiselect()">
3662
+ @for (item of items(); track trackFn(item, $index); let i = $index) {
3663
+ <div
3664
+ class="lv-item"
3665
+ [class.lv-alt]="i % 2 === 1"
3666
+ [class.lv-selected]="isSelected(item)"
3667
+ role="option"
3668
+ [attr.aria-selected]="isSelected(item)"
3669
+ (click)="onItemClick(item, i)"
3670
+ >
3671
+ @if (itemTemplate) {
3672
+ <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item, index: i }"/>
3673
+ } @else {
3674
+ <span class="lv-default-text">{{ getLabel(item) }}</span>
3675
+ }
3676
+ </div>
3677
+ }
3678
+ </div>
3679
+ }
3680
+
3681
+ <!-- Footer slot -->
3682
+ <ng-content select="[listFooter]"/>
3683
+ </div>
3422
3684
  `, styles: [":host{display:block}.ngx-list-view{border:1px solid var(--ngx-list-border, #dee2e6);border-radius:var(--ngx-list-radius, 4px);background:var(--ngx-list-bg, #fff);overflow:hidden;font-family:inherit}.lv-list{overflow-y:auto}.lv-item{padding:10px 16px;cursor:pointer;border-bottom:1px solid var(--ngx-list-border, #dee2e6);transition:background .1s;color:var(--ngx-list-text, #212529);font-size:13px}.lv-item:last-child{border-bottom:none}.lv-item:hover{background:var(--ngx-list-hover-bg, #f1f3f5)}.lv-item.lv-alt{background:var(--ngx-list-alt-bg, #f8f9fa)}.lv-item.lv-alt:hover{background:var(--ngx-list-hover-bg, #f1f3f5)}.lv-item.lv-selected{background:var(--ngx-list-selected-bg, #e8f0fe);color:var(--ngx-list-selected-color, #1a73e8);font-weight:500}.lv-item.lv-selected:hover{background:var(--ngx-list-selected-bg, #e8f0fe)}.lv-default-text{display:block}.lv-loading,.lv-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:32px;color:#adb5bd;font-size:13px}.lv-spinner{width:20px;height:20px;border:2px solid #dee2e6;border-top-color:#4a90d9;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}\n"] }]
3423
3685
  }], propDecorators: { itemTemplate: [{
3424
3686
  type: ContentChild,
@@ -3521,54 +3783,54 @@ class PopoverComponent {
3521
3783
  this.isOpen.set(false);
3522
3784
  }
3523
3785
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3524
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: PopoverComponent, isStandalone: true, selector: "ngx-popover", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
3525
- <div class="ngx-popover-wrapper">
3526
- <!-- Trigger slot -->
3527
- <div class="popover-trigger" (click)="toggle()">
3528
- <ng-content select="[popoverTrigger]"/>
3529
- </div>
3530
-
3531
- <!-- Popup -->
3532
- @if (isOpen()) {
3533
- <div class="popover-panel" [class]="'popover-' + position()">
3534
- @if (title()) {
3535
- <div class="popover-header">
3536
- <span class="popover-title">{{ title() }}</span>
3537
- <button class="popover-close" (click)="close()">&#10005;</button>
3538
- </div>
3539
- }
3540
- <div class="popover-body">
3541
- <ng-content select="[popoverBody]"/>
3542
- </div>
3543
- </div>
3544
- }
3545
- </div>
3786
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: PopoverComponent, isStandalone: true, selector: "ngx-popover", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:click": "onDocClick($event)" } }, ngImport: i0, template: `
3787
+ <div class="ngx-popover-wrapper">
3788
+ <!-- Trigger slot -->
3789
+ <div class="popover-trigger" (click)="toggle()">
3790
+ <ng-content select="[popoverTrigger]"/>
3791
+ </div>
3792
+
3793
+ <!-- Popup -->
3794
+ @if (isOpen()) {
3795
+ <div class="popover-panel" [class]="'popover-' + position()">
3796
+ @if (title()) {
3797
+ <div class="popover-header">
3798
+ <span class="popover-title">{{ title() }}</span>
3799
+ <button class="popover-close" (click)="close()">&#10005;</button>
3800
+ </div>
3801
+ }
3802
+ <div class="popover-body">
3803
+ <ng-content select="[popoverBody]"/>
3804
+ </div>
3805
+ </div>
3806
+ }
3807
+ </div>
3546
3808
  `, isInline: true, styles: [":host{display:inline-block}.ngx-popover-wrapper{position:relative;display:inline-block}.popover-trigger{cursor:pointer}.popover-panel{position:absolute;z-index:1000;min-width:200px;max-width:320px;background:var(--ngx-popover-bg, #fff);border:1px solid var(--ngx-popover-border, #dee2e6);border-radius:var(--ngx-popover-radius, 6px);box-shadow:var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,.12));animation:fadeIn .12s ease}@keyframes fadeIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.popover-bottom{top:calc(100% + 8px);left:50%;transform:translate(-50%)}.popover-top{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.popover-right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.popover-left{right:calc(100% + 8px);top:50%;transform:translateY(-50%)}.popover-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 8px;border-bottom:1px solid var(--ngx-popover-border, #dee2e6)}.popover-title{font-size:14px;font-weight:600;color:#212529}.popover-close{background:none;border:none;cursor:pointer;font-size:12px;color:#6c757d;padding:2px 4px;border-radius:3px}.popover-close:hover{background:#f1f3f5}.popover-body{padding:12px 14px;font-size:13px;color:#495057}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3547
3809
  }
3548
3810
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PopoverComponent, decorators: [{
3549
3811
  type: Component,
3550
- args: [{ selector: 'ngx-popover', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
3551
- <div class="ngx-popover-wrapper">
3552
- <!-- Trigger slot -->
3553
- <div class="popover-trigger" (click)="toggle()">
3554
- <ng-content select="[popoverTrigger]"/>
3555
- </div>
3556
-
3557
- <!-- Popup -->
3558
- @if (isOpen()) {
3559
- <div class="popover-panel" [class]="'popover-' + position()">
3560
- @if (title()) {
3561
- <div class="popover-header">
3562
- <span class="popover-title">{{ title() }}</span>
3563
- <button class="popover-close" (click)="close()">&#10005;</button>
3564
- </div>
3565
- }
3566
- <div class="popover-body">
3567
- <ng-content select="[popoverBody]"/>
3568
- </div>
3569
- </div>
3570
- }
3571
- </div>
3812
+ args: [{ selector: 'ngx-popover', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
3813
+ <div class="ngx-popover-wrapper">
3814
+ <!-- Trigger slot -->
3815
+ <div class="popover-trigger" (click)="toggle()">
3816
+ <ng-content select="[popoverTrigger]"/>
3817
+ </div>
3818
+
3819
+ <!-- Popup -->
3820
+ @if (isOpen()) {
3821
+ <div class="popover-panel" [class]="'popover-' + position()">
3822
+ @if (title()) {
3823
+ <div class="popover-header">
3824
+ <span class="popover-title">{{ title() }}</span>
3825
+ <button class="popover-close" (click)="close()">&#10005;</button>
3826
+ </div>
3827
+ }
3828
+ <div class="popover-body">
3829
+ <ng-content select="[popoverBody]"/>
3830
+ </div>
3831
+ </div>
3832
+ }
3833
+ </div>
3572
3834
  `, styles: [":host{display:inline-block}.ngx-popover-wrapper{position:relative;display:inline-block}.popover-trigger{cursor:pointer}.popover-panel{position:absolute;z-index:1000;min-width:200px;max-width:320px;background:var(--ngx-popover-bg, #fff);border:1px solid var(--ngx-popover-border, #dee2e6);border-radius:var(--ngx-popover-radius, 6px);box-shadow:var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,.12));animation:fadeIn .12s ease}@keyframes fadeIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.popover-bottom{top:calc(100% + 8px);left:50%;transform:translate(-50%)}.popover-top{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.popover-right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.popover-left{right:calc(100% + 8px);top:50%;transform:translateY(-50%)}.popover-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 8px;border-bottom:1px solid var(--ngx-popover-border, #dee2e6)}.popover-title{font-size:14px;font-weight:600;color:#212529}.popover-close{background:none;border:none;cursor:pointer;font-size:12px;color:#6c757d;padding:2px 4px;border-radius:3px}.popover-close:hover{background:#f1f3f5}.popover-body{padding:12px 14px;font-size:13px;color:#495057}\n"] }]
3573
3835
  }], propDecorators: { onDocClick: [{
3574
3836
  type: HostListener,