ngx-core-components 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -2
- package/charts/adjacency-matrix/adjacency-matrix.component.d.ts +4 -1
- package/charts/agentic-cognitive-topology/agentic-cognitive-topology.component.d.ts +5 -0
- package/charts/arc-diagram/arc-diagram.component.d.ts +7 -0
- package/charts/area-chart/area-chart.component.d.ts +5 -0
- package/charts/area-range-chart/area-range-chart.component.d.ts +4 -0
- package/charts/area-spline-range-chart/area-spline-range-chart.component.d.ts +4 -0
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +3 -0
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +4 -0
- package/charts/chord-diagram/chord-diagram.component.d.ts +7 -1
- package/charts/column-pyramid-chart/column-pyramid-chart.component.d.ts +4 -1
- package/charts/combo-chart/combo-chart.component.d.ts +4 -0
- package/charts/dependency-wheel/dependency-wheel.component.d.ts +7 -1
- package/charts/gauge-chart/gauge-chart.component.d.ts +4 -0
- package/charts/geo-heatmap/geo-heatmap.component.d.ts +4 -1
- package/charts/heikin-ashi-chart/heikin-ashi-chart.component.d.ts +4 -0
- package/charts/histogram/histogram.component.d.ts +3 -0
- package/charts/hlc-chart/hlc-chart.component.d.ts +5 -0
- package/charts/hollow-candlestick-chart/hollow-candlestick-chart.component.d.ts +4 -0
- package/charts/kagi-chart/kagi-chart.component.d.ts +4 -1
- package/charts/map-bubble/map-bubble.component.d.ts +4 -1
- package/charts/map-choropleth/map-choropleth.component.d.ts +9 -1
- package/charts/map-line-point/map-line-point.component.d.ts +8 -2
- package/charts/multi-needle-gauge/multi-needle-gauge.component.d.ts +6 -0
- package/charts/nested-donut-chart/nested-donut-chart.component.d.ts +7 -0
- package/charts/network-graph/network-graph.component.d.ts +7 -0
- package/charts/ohlc-chart/ohlc-chart.component.d.ts +4 -0
- package/charts/org-chart/org-chart.component.d.ts +5 -0
- package/charts/packed-bubble-chart/packed-bubble-chart.component.d.ts +3 -0
- package/charts/parallel-coordinates/parallel-coordinates.component.d.ts +3 -0
- package/charts/pareto-chart/pareto-chart.component.d.ts +4 -1
- package/charts/pictorial-chart/pictorial-chart.component.d.ts +3 -0
- package/charts/point-figure-chart/point-figure-chart.component.d.ts +4 -1
- package/charts/polar-area-chart/polar-area-chart.component.d.ts +11 -0
- package/charts/radar-chart/radar-chart.component.d.ts +5 -3
- package/charts/renko-chart/renko-chart.component.d.ts +4 -1
- package/charts/ridgeline-chart/ridgeline-chart.component.d.ts +11 -1
- package/charts/sankey-chart/sankey-chart.component.d.ts +7 -1
- package/charts/slope-chart/slope-chart.component.d.ts +5 -1
- package/charts/step-line-chart/step-line-chart.component.d.ts +5 -0
- package/charts/timeline-chart/timeline-chart.component.d.ts +2 -0
- package/charts/variable-pie-chart/variable-pie-chart.component.d.ts +4 -0
- package/charts/variwide-chart/variwide-chart.component.d.ts +8 -1
- package/charts/wind-rose/wind-rose.component.d.ts +3 -0
- package/charts/word-cloud/word-cloud.component.d.ts +3 -0
- package/fesm2022/ngx-core-components-charts.mjs +3484 -1922
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +80 -32
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-i18n.mjs +34 -0
- package/fesm2022/ngx-core-components-i18n.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +20 -15
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +1 -0
- package/i18n/ngx-core-i18n.d.ts +34 -0
- package/layout/tab-strip/tab-strip.component.d.ts +2 -0
- package/package.json +9 -9
|
@@ -2467,6 +2467,31 @@ class DataGridComponent {
|
|
|
2467
2467
|
if (restoreFocus)
|
|
2468
2468
|
trigger?.focus();
|
|
2469
2469
|
}
|
|
2470
|
+
onContextMenuKeydown(event) {
|
|
2471
|
+
if (event.key === 'Escape') {
|
|
2472
|
+
event.preventDefault();
|
|
2473
|
+
this.closeContextMenu();
|
|
2474
|
+
return;
|
|
2475
|
+
}
|
|
2476
|
+
if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key))
|
|
2477
|
+
return;
|
|
2478
|
+
const menu = event.currentTarget;
|
|
2479
|
+
const items = Array.from(menu.querySelectorAll('.menu-item:not(:disabled)'));
|
|
2480
|
+
if (items.length === 0)
|
|
2481
|
+
return;
|
|
2482
|
+
const currentIndex = items.indexOf(menu.ownerDocument.activeElement);
|
|
2483
|
+
const nextIndex = event.key === 'Home'
|
|
2484
|
+
? 0
|
|
2485
|
+
: event.key === 'End'
|
|
2486
|
+
? items.length - 1
|
|
2487
|
+
: event.key === 'ArrowDown'
|
|
2488
|
+
? (currentIndex + 1) % items.length
|
|
2489
|
+
: currentIndex <= 0
|
|
2490
|
+
? items.length - 1
|
|
2491
|
+
: currentIndex - 1;
|
|
2492
|
+
event.preventDefault();
|
|
2493
|
+
items[nextIndex].focus();
|
|
2494
|
+
}
|
|
2470
2495
|
isColumnPinned(field) {
|
|
2471
2496
|
if (!field)
|
|
2472
2497
|
return false;
|
|
@@ -3477,6 +3502,15 @@ class DataGridComponent {
|
|
|
3477
3502
|
}
|
|
3478
3503
|
break;
|
|
3479
3504
|
}
|
|
3505
|
+
case 'Home':
|
|
3506
|
+
case 'End': {
|
|
3507
|
+
const toEnd = key === 'End';
|
|
3508
|
+
const nextRowIndex = event.ctrlKey || event.metaKey ? (toEnd ? rows.length - 1 : 0) : rowIndex;
|
|
3509
|
+
const nextColIndex = toEnd ? cols.length - 1 : 0;
|
|
3510
|
+
this.focusCell(rows[nextRowIndex], cols[nextColIndex].field);
|
|
3511
|
+
event.preventDefault();
|
|
3512
|
+
break;
|
|
3513
|
+
}
|
|
3480
3514
|
case 'Tab': {
|
|
3481
3515
|
const nextRowIndex = event.shiftKey
|
|
3482
3516
|
? colIndex === 0
|
|
@@ -4980,24 +5014,26 @@ class DataGridComponent {
|
|
|
4980
5014
|
@if (activeContextMenu(); as menu) {
|
|
4981
5015
|
<div
|
|
4982
5016
|
class="grid-context-menu"
|
|
4983
|
-
role="
|
|
5017
|
+
role="menu"
|
|
5018
|
+
aria-orientation="vertical"
|
|
4984
5019
|
[attr.aria-label]="i18n.grid.contextMenu"
|
|
4985
5020
|
[style.top.px]="menu.y"
|
|
4986
5021
|
[style.left.px]="menu.x"
|
|
4987
5022
|
(click)="$event.stopPropagation()"
|
|
5023
|
+
(keydown)="onContextMenuKeydown($event)"
|
|
4988
5024
|
>
|
|
4989
|
-
<button class="menu-item" [disabled]="!selectedCellStart()" (click)="contextMenuCopy()">
|
|
5025
|
+
<button class="menu-item" role="menuitem" [disabled]="!selectedCellStart()" (click)="contextMenuCopy()">
|
|
4990
5026
|
<span class="menu-icon">📋</span> Copy Selection
|
|
4991
5027
|
</button>
|
|
4992
5028
|
<div class="menu-divider"></div>
|
|
4993
5029
|
@if (showDetailToggle() && detailRowTemplate() && menu.row) {
|
|
4994
|
-
<button class="menu-item" (click)="contextMenuToggleDetail(menu.row)">
|
|
5030
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuToggleDetail(menu.row)">
|
|
4995
5031
|
<span class="menu-icon">🔍</span> {{ isExpanded(menu.row) ? 'Collapse Details' : 'Expand Details' }}
|
|
4996
5032
|
</button>
|
|
4997
|
-
<button class="menu-item" (click)="expandAllDetails()">
|
|
5033
|
+
<button class="menu-item" role="menuitem" (click)="expandAllDetails()">
|
|
4998
5034
|
<span class="menu-icon">📂</span> Expand All Details
|
|
4999
5035
|
</button>
|
|
5000
|
-
<button class="menu-item" (click)="collapseAllDetails()">
|
|
5036
|
+
<button class="menu-item" role="menuitem" (click)="collapseAllDetails()">
|
|
5001
5037
|
<span class="menu-icon">📁</span> Collapse All Details
|
|
5002
5038
|
</button>
|
|
5003
5039
|
<div class="menu-divider"></div>
|
|
@@ -5005,46 +5041,51 @@ class DataGridComponent {
|
|
|
5005
5041
|
@if (getColumnDef(menu.colField); as columnDef) {
|
|
5006
5042
|
@if (columnDef.groupable) {
|
|
5007
5043
|
@if (internalGroupBy()?.field === menu.colField) {
|
|
5008
|
-
<button class="menu-item" (click)="contextMenuClearGrouping()">
|
|
5044
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuClearGrouping()">
|
|
5009
5045
|
<span class="menu-icon">📁</span> Clear Grouping
|
|
5010
5046
|
</button>
|
|
5011
5047
|
} @else {
|
|
5012
|
-
<button class="menu-item" (click)="contextMenuGroupBy(menu.colField)">
|
|
5048
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuGroupBy(menu.colField)">
|
|
5013
5049
|
<span class="menu-icon">🗂️</span> Group by {{ columnDef.title }}
|
|
5014
5050
|
</button>
|
|
5015
5051
|
}
|
|
5016
5052
|
}
|
|
5017
5053
|
}
|
|
5018
5054
|
@if (hasGrouping()) {
|
|
5019
|
-
<button class="menu-item" (click)="expandAllGroups()">
|
|
5055
|
+
<button class="menu-item" role="menuitem" (click)="expandAllGroups()">
|
|
5020
5056
|
<span class="menu-icon">↕️</span> Expand All Groups
|
|
5021
5057
|
</button>
|
|
5022
|
-
<button class="menu-item" (click)="collapseAllGroups()">
|
|
5058
|
+
<button class="menu-item" role="menuitem" (click)="collapseAllGroups()">
|
|
5023
5059
|
<span class="menu-icon">⋯</span> Collapse All Groups
|
|
5024
5060
|
</button>
|
|
5025
5061
|
}
|
|
5026
5062
|
<div class="menu-divider"></div>
|
|
5027
|
-
<button class="menu-item" (click)="contextMenuTogglePin(menu.colField)">
|
|
5063
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuTogglePin(menu.colField)">
|
|
5028
5064
|
<span class="menu-icon">📌</span> {{ isColumnPinned(menu.colField) ? 'Unpin Column' : 'Pin Column Left' }}
|
|
5029
5065
|
</button>
|
|
5030
|
-
<button class="menu-item" (click)="contextMenuHideColumn(menu.colField)">
|
|
5066
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuHideColumn(menu.colField)">
|
|
5031
5067
|
<span class="menu-icon">👁️</span> Hide Column
|
|
5032
5068
|
</button>
|
|
5033
5069
|
<div class="menu-divider"></div>
|
|
5034
|
-
<button
|
|
5070
|
+
<button
|
|
5071
|
+
class="menu-item"
|
|
5072
|
+
role="menuitem"
|
|
5073
|
+
[disabled]="filterStates().size === 0"
|
|
5074
|
+
(click)="contextMenuClearFilters()"
|
|
5075
|
+
>
|
|
5035
5076
|
<span class="menu-icon">🧹</span> Clear All Filters
|
|
5036
5077
|
</button>
|
|
5037
5078
|
<div class="menu-divider"></div>
|
|
5038
|
-
<button class="menu-item" (click)="exportToJson(); closeContextMenu()">
|
|
5079
|
+
<button class="menu-item" role="menuitem" (click)="exportToJson(); closeContextMenu()">
|
|
5039
5080
|
<span class="menu-icon">📄</span> Export to JSON
|
|
5040
5081
|
</button>
|
|
5041
|
-
<button class="menu-item" (click)="exportToCsv(); closeContextMenu()">
|
|
5082
|
+
<button class="menu-item" role="menuitem" (click)="exportToCsv(); closeContextMenu()">
|
|
5042
5083
|
<span class="menu-icon">📊</span> Export to CSV
|
|
5043
5084
|
</button>
|
|
5044
|
-
<button class="menu-item" (click)="exportToExcel(); closeContextMenu()">
|
|
5085
|
+
<button class="menu-item" role="menuitem" (click)="exportToExcel(); closeContextMenu()">
|
|
5045
5086
|
<span class="menu-icon">📈</span> Export to Excel
|
|
5046
5087
|
</button>
|
|
5047
|
-
<button class="menu-item" (click)="exportToPdf(); closeContextMenu()">
|
|
5088
|
+
<button class="menu-item" role="menuitem" (click)="exportToPdf(); closeContextMenu()">
|
|
5048
5089
|
<span class="menu-icon">📕</span> Export to PDF
|
|
5049
5090
|
</button>
|
|
5050
5091
|
</div>
|
|
@@ -6419,24 +6460,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6419
6460
|
@if (activeContextMenu(); as menu) {
|
|
6420
6461
|
<div
|
|
6421
6462
|
class="grid-context-menu"
|
|
6422
|
-
role="
|
|
6463
|
+
role="menu"
|
|
6464
|
+
aria-orientation="vertical"
|
|
6423
6465
|
[attr.aria-label]="i18n.grid.contextMenu"
|
|
6424
6466
|
[style.top.px]="menu.y"
|
|
6425
6467
|
[style.left.px]="menu.x"
|
|
6426
6468
|
(click)="$event.stopPropagation()"
|
|
6469
|
+
(keydown)="onContextMenuKeydown($event)"
|
|
6427
6470
|
>
|
|
6428
|
-
<button class="menu-item" [disabled]="!selectedCellStart()" (click)="contextMenuCopy()">
|
|
6471
|
+
<button class="menu-item" role="menuitem" [disabled]="!selectedCellStart()" (click)="contextMenuCopy()">
|
|
6429
6472
|
<span class="menu-icon">📋</span> Copy Selection
|
|
6430
6473
|
</button>
|
|
6431
6474
|
<div class="menu-divider"></div>
|
|
6432
6475
|
@if (showDetailToggle() && detailRowTemplate() && menu.row) {
|
|
6433
|
-
<button class="menu-item" (click)="contextMenuToggleDetail(menu.row)">
|
|
6476
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuToggleDetail(menu.row)">
|
|
6434
6477
|
<span class="menu-icon">🔍</span> {{ isExpanded(menu.row) ? 'Collapse Details' : 'Expand Details' }}
|
|
6435
6478
|
</button>
|
|
6436
|
-
<button class="menu-item" (click)="expandAllDetails()">
|
|
6479
|
+
<button class="menu-item" role="menuitem" (click)="expandAllDetails()">
|
|
6437
6480
|
<span class="menu-icon">📂</span> Expand All Details
|
|
6438
6481
|
</button>
|
|
6439
|
-
<button class="menu-item" (click)="collapseAllDetails()">
|
|
6482
|
+
<button class="menu-item" role="menuitem" (click)="collapseAllDetails()">
|
|
6440
6483
|
<span class="menu-icon">📁</span> Collapse All Details
|
|
6441
6484
|
</button>
|
|
6442
6485
|
<div class="menu-divider"></div>
|
|
@@ -6444,46 +6487,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6444
6487
|
@if (getColumnDef(menu.colField); as columnDef) {
|
|
6445
6488
|
@if (columnDef.groupable) {
|
|
6446
6489
|
@if (internalGroupBy()?.field === menu.colField) {
|
|
6447
|
-
<button class="menu-item" (click)="contextMenuClearGrouping()">
|
|
6490
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuClearGrouping()">
|
|
6448
6491
|
<span class="menu-icon">📁</span> Clear Grouping
|
|
6449
6492
|
</button>
|
|
6450
6493
|
} @else {
|
|
6451
|
-
<button class="menu-item" (click)="contextMenuGroupBy(menu.colField)">
|
|
6494
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuGroupBy(menu.colField)">
|
|
6452
6495
|
<span class="menu-icon">🗂️</span> Group by {{ columnDef.title }}
|
|
6453
6496
|
</button>
|
|
6454
6497
|
}
|
|
6455
6498
|
}
|
|
6456
6499
|
}
|
|
6457
6500
|
@if (hasGrouping()) {
|
|
6458
|
-
<button class="menu-item" (click)="expandAllGroups()">
|
|
6501
|
+
<button class="menu-item" role="menuitem" (click)="expandAllGroups()">
|
|
6459
6502
|
<span class="menu-icon">↕️</span> Expand All Groups
|
|
6460
6503
|
</button>
|
|
6461
|
-
<button class="menu-item" (click)="collapseAllGroups()">
|
|
6504
|
+
<button class="menu-item" role="menuitem" (click)="collapseAllGroups()">
|
|
6462
6505
|
<span class="menu-icon">⋯</span> Collapse All Groups
|
|
6463
6506
|
</button>
|
|
6464
6507
|
}
|
|
6465
6508
|
<div class="menu-divider"></div>
|
|
6466
|
-
<button class="menu-item" (click)="contextMenuTogglePin(menu.colField)">
|
|
6509
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuTogglePin(menu.colField)">
|
|
6467
6510
|
<span class="menu-icon">📌</span> {{ isColumnPinned(menu.colField) ? 'Unpin Column' : 'Pin Column Left' }}
|
|
6468
6511
|
</button>
|
|
6469
|
-
<button class="menu-item" (click)="contextMenuHideColumn(menu.colField)">
|
|
6512
|
+
<button class="menu-item" role="menuitem" (click)="contextMenuHideColumn(menu.colField)">
|
|
6470
6513
|
<span class="menu-icon">👁️</span> Hide Column
|
|
6471
6514
|
</button>
|
|
6472
6515
|
<div class="menu-divider"></div>
|
|
6473
|
-
<button
|
|
6516
|
+
<button
|
|
6517
|
+
class="menu-item"
|
|
6518
|
+
role="menuitem"
|
|
6519
|
+
[disabled]="filterStates().size === 0"
|
|
6520
|
+
(click)="contextMenuClearFilters()"
|
|
6521
|
+
>
|
|
6474
6522
|
<span class="menu-icon">🧹</span> Clear All Filters
|
|
6475
6523
|
</button>
|
|
6476
6524
|
<div class="menu-divider"></div>
|
|
6477
|
-
<button class="menu-item" (click)="exportToJson(); closeContextMenu()">
|
|
6525
|
+
<button class="menu-item" role="menuitem" (click)="exportToJson(); closeContextMenu()">
|
|
6478
6526
|
<span class="menu-icon">📄</span> Export to JSON
|
|
6479
6527
|
</button>
|
|
6480
|
-
<button class="menu-item" (click)="exportToCsv(); closeContextMenu()">
|
|
6528
|
+
<button class="menu-item" role="menuitem" (click)="exportToCsv(); closeContextMenu()">
|
|
6481
6529
|
<span class="menu-icon">📊</span> Export to CSV
|
|
6482
6530
|
</button>
|
|
6483
|
-
<button class="menu-item" (click)="exportToExcel(); closeContextMenu()">
|
|
6531
|
+
<button class="menu-item" role="menuitem" (click)="exportToExcel(); closeContextMenu()">
|
|
6484
6532
|
<span class="menu-icon">📈</span> Export to Excel
|
|
6485
6533
|
</button>
|
|
6486
|
-
<button class="menu-item" (click)="exportToPdf(); closeContextMenu()">
|
|
6534
|
+
<button class="menu-item" role="menuitem" (click)="exportToPdf(); closeContextMenu()">
|
|
6487
6535
|
<span class="menu-icon">📕</span> Export to PDF
|
|
6488
6536
|
</button>
|
|
6489
6537
|
</div>
|