@virusis/angular-ui 0.3.1 → 0.3.2
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/fesm2022/virusis-angular-ui.mjs +646 -642
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5895,6 +5895,8 @@ class VpDataTableComponent {
|
|
|
5895
5895
|
/** Aktif filtre var mi — bos durum metnini degistirir. */
|
|
5896
5896
|
this.hasActiveFilter = false;
|
|
5897
5897
|
this.caption = '';
|
|
5898
|
+
/** Kayan sarmalayıcının adı; `caption` boşsa kullanılır. */
|
|
5899
|
+
this.scrollLabel = 'Tablo';
|
|
5898
5900
|
this.totalLabel = 'kayıt';
|
|
5899
5901
|
/** design-system/006: başlık biçimi ('caps' = büyük harf mono). Verilmezse 0.2.6 görünümü. */
|
|
5900
5902
|
this.headerStyle = 'normal';
|
|
@@ -6369,651 +6371,651 @@ class VpDataTableComponent {
|
|
|
6369
6371
|
return this.cellTemplates[field] ?? null;
|
|
6370
6372
|
}
|
|
6371
6373
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDataTableComponent, isStandalone: true, selector: "vp-data-table", inputs: { columns: "columns", rows: "rows", total: "total", serverSide: "serverSide", pageSize: "pageSize", loading: "loading", error: "error", hasActiveFilter: "hasActiveFilter", caption: "caption", totalLabel: "totalLabel", headerStyle: "headerStyle", showMeta: "showMeta", selectedKey: "selectedKey", rangeLabel: "rangeLabel", bare: "bare", stack: "stack", loadingLabel: "loadingLabel", emptyLabel: "emptyLabel", emptyFilteredLabel: "emptyFilteredLabel", clearFiltersLabel: "clearFiltersLabel", retryLabel: "retryLabel", searchable: "searchable", searchLabel: "searchLabel", searchPlaceholder: "searchPlaceholder", searchTerm: "searchTerm", pageSizeOptions: "pageSizeOptions", pageSizeLabel: "pageSizeLabel", pagerLabel: "pagerLabel", prevLabel: "prevLabel", nextLabel: "nextLabel", storageKey: "storageKey", selectable: "selectable", rowKey: "rowKey", bulkActions: "bulkActions", bulkResult: "bulkResult", bulkLabel: "bulkLabel", selectedLabel: "selectedLabel", clearSelectionLabel: "clearSelectionLabel", selectPageLabel: "selectPageLabel", selectRowLabel: "selectRowLabel", confirmPrefix: "confirmPrefix", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", succeededLabel: "succeededLabel", failedLabel: "failedLabel", expandable: "expandable", rowDetail: "rowDetail", expandLabel: "expandLabel", collapseLabel: "collapseLabel", expandColumnLabel: "expandColumnLabel", noDetailLabel: "noDetailLabel", rowActions: "rowActions", rowActionsHeader: "rowActionsHeader", cellTemplates: "cellTemplates", exportScopes: "exportScopes", exportPageLabel: "exportPageLabel", exportAllLabel: "exportAllLabel", savedViewsKey: "savedViewsKey", viewsLabel: "viewsLabel", viewsEmptyLabel: "viewsEmptyLabel", saveViewLabel: "saveViewLabel", deleteViewLabel: "deleteViewLabel", askViewName: "askViewName", columnPicker: "columnPicker", columnsLabel: "columnsLabel", moveUpLabel: "moveUpLabel", moveDownLabel: "moveDownLabel" }, outputs: { bulkAction: "bulkAction", exportRequest: "exportRequest", viewApplied: "viewApplied", load: "load", clearFilters: "clearFilters", search: "search" }, usesOnChanges: true, ngImport: i0, template: `
|
|
6373
|
-
<div class="vp-table" [attr.data-header-style]="headerStyle === 'caps' ? 'caps' : null" [attr.data-bare]="bare ? 'true' : null" [attr.data-stack]="stack ? 'true' : null">
|
|
6374
|
-
@if (showMeta) {
|
|
6375
|
-
<div class="vp-table__meta">
|
|
6376
|
-
<span class="vp-table__total" data-vp-total>
|
|
6377
|
-
{{ total }} {{ totalLabel }}
|
|
6378
|
-
</span>
|
|
6379
|
-
@if (rangeLabel) {
|
|
6380
|
-
<span class="vp-table__range" data-vp-range>{{ rangeLabel }}</span>
|
|
6381
|
-
}
|
|
6382
|
-
@if (pageCount > 1) {
|
|
6383
|
-
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
6384
|
-
}
|
|
6385
|
-
|
|
6386
|
-
@if (searchable) {
|
|
6387
|
-
<input
|
|
6388
|
-
type="search"
|
|
6389
|
-
class="vp-table__search"
|
|
6390
|
-
data-vp-table-search
|
|
6391
|
-
[attr.aria-label]="searchLabel"
|
|
6392
|
-
[attr.placeholder]="searchPlaceholder"
|
|
6393
|
-
[value]="searchTerm"
|
|
6394
|
-
(input)="onSearch($event)" />
|
|
6395
|
-
}
|
|
6396
|
-
|
|
6397
|
-
@if (savedViewsKey) {
|
|
6398
|
-
<!--
|
|
6399
|
-
main-backend/015 T-08 (Q-5 b, 2026-11-13): prototip araç satırında yalnız bookmark ikonu.
|
|
6400
|
-
Seçim kutusu ve metinli sil düğmesi kalktı; ikon bir menü açar (kaydet, görünümler, sil).
|
|
6401
|
-
(Satır içi şablon: ters tırnak YAZMA.)
|
|
6402
|
-
-->
|
|
6403
|
-
<vp-saved-views-menu class="vp-table__views"
|
|
6404
|
-
[views]="savedViews"
|
|
6405
|
-
[active]="activeView"
|
|
6406
|
-
[saveLabel]="saveViewLabel"
|
|
6407
|
-
[deleteLabel]="deleteViewLabel"
|
|
6408
|
-
[menuLabel]="viewsLabel"
|
|
6409
|
-
[emptyLabel]="viewsEmptyLabel"
|
|
6410
|
-
(saveRequested)="saveViewPrompt()"
|
|
6411
|
-
(viewChosen)="applyView($event)"
|
|
6412
|
-
(deleteRequested)="deleteActiveView()" />
|
|
6413
|
-
}
|
|
6414
|
-
|
|
6415
|
-
@if (exportScopes.length > 0) {
|
|
6416
|
-
@for (scope of exportScopes; track scope) {
|
|
6417
|
-
<button
|
|
6418
|
-
type="button"
|
|
6419
|
-
class="vp-table__cols-btn"
|
|
6420
|
-
[attr.data-vp-export]="scope"
|
|
6421
|
-
(click)="requestExport(scope)">{{ exportLabel(scope) }}</button>
|
|
6422
|
-
}
|
|
6423
|
-
}
|
|
6424
|
-
|
|
6425
|
-
@if (columnPicker) {
|
|
6426
|
-
<button
|
|
6427
|
-
type="button"
|
|
6428
|
-
class="vp-table__cols-btn vp-table__icon-btn"
|
|
6429
|
-
data-vp-cols-toggle
|
|
6430
|
-
[attr.aria-label]="columnsLabel"
|
|
6431
|
-
[attr.title]="columnsLabel"
|
|
6432
|
-
[attr.aria-expanded]="pickerOpen"
|
|
6433
|
-
(click)="pickerOpen = !pickerOpen">
|
|
6434
|
-
<svg class="vp-table__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false"><use href="#vp-icon-columns"></use></svg>
|
|
6435
|
-
</button>
|
|
6436
|
-
}
|
|
6437
|
-
<ng-content select="[toolbar]" />
|
|
6438
|
-
</div>
|
|
6439
|
-
}
|
|
6440
|
-
|
|
6441
|
-
@if (selectable && selectedKeys.size > 0) {
|
|
6442
|
-
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
6443
|
-
<span data-vp-bulk-count>{{ selectedKeys.size }} {{ selectedLabel }}</span>
|
|
6444
|
-
|
|
6445
|
-
<div class="vp-table__bulk-actions">
|
|
6446
|
-
@for (action of bulkActions; track action.code) {
|
|
6447
|
-
<button
|
|
6448
|
-
type="button"
|
|
6449
|
-
[attr.data-vp-bulk-action]="action.code"
|
|
6450
|
-
[class.vp-table__bulk-btn--danger]="action.danger"
|
|
6451
|
-
class="vp-table__bulk-btn"
|
|
6452
|
-
(click)="requestBulkAction(action)">{{ action.label }}</button>
|
|
6453
|
-
}
|
|
6454
|
-
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-clear
|
|
6455
|
-
(click)="clearSelection()">{{ clearSelectionLabel }}</button>
|
|
6456
|
-
</div>
|
|
6457
|
-
</div>
|
|
6458
|
-
|
|
6459
|
-
@if (pendingAction) {
|
|
6460
|
-
<div class="vp-table__bulk-confirm" data-vp-bulk-confirm role="alertdialog"
|
|
6461
|
-
[attr.aria-label]="pendingAction.label">
|
|
6462
|
-
<span>{{ confirmPrefix }} {{ selectedKeys.size }} {{ selectedLabel }} — {{ pendingAction.label }}?</span>
|
|
6463
|
-
<span class="vp-table__bulk-actions">
|
|
6464
|
-
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-cancel
|
|
6465
|
-
(click)="pendingAction = null">{{ cancelLabel }}</button>
|
|
6466
|
-
<button type="button" class="vp-table__bulk-btn vp-table__bulk-btn--danger"
|
|
6467
|
-
data-vp-bulk-confirm-ok (click)="confirmBulkAction()">{{ confirmLabel }}</button>
|
|
6468
|
-
</span>
|
|
6469
|
-
</div>
|
|
6470
|
-
}
|
|
6471
|
-
}
|
|
6472
|
-
|
|
6473
|
-
@if (bulkResult) {
|
|
6474
|
-
<div class="vp-table__bulk-report" data-vp-bulk-report role="status" aria-live="polite">
|
|
6475
|
-
@if (bulkResult.succeeded.length > 0) {
|
|
6476
|
-
<p data-vp-bulk-ok>{{ bulkResult.succeeded.length }} {{ succeededLabel }}</p>
|
|
6477
|
-
}
|
|
6478
|
-
@if (bulkResult.failed.length > 0) {
|
|
6479
|
-
<p data-vp-bulk-failed>{{ bulkResult.failed.length }} {{ failedLabel }}</p>
|
|
6480
|
-
<ul class="vp-table__bulk-failures">
|
|
6481
|
-
@for (failure of bulkResult.failed; track failure.key) {
|
|
6482
|
-
<li [attr.data-vp-bulk-failure]="failure.key">
|
|
6483
|
-
<code>{{ failure.key }}</code> — {{ failure.reason }}
|
|
6484
|
-
</li>
|
|
6485
|
-
}
|
|
6486
|
-
</ul>
|
|
6487
|
-
}
|
|
6488
|
-
</div>
|
|
6489
|
-
}
|
|
6490
|
-
|
|
6491
|
-
@if (columnPicker && pickerOpen) {
|
|
6492
|
-
<div class="vp-table__cols" data-vp-cols role="group" [attr.aria-label]="columnsLabel">
|
|
6493
|
-
@for (col of orderedColumns; track col.field; let i = $index) {
|
|
6494
|
-
<div class="vp-table__cols-row" [attr.data-vp-cols-row]="col.field">
|
|
6495
|
-
<label class="vp-table__cols-label">
|
|
6496
|
-
<input
|
|
6497
|
-
type="checkbox"
|
|
6498
|
-
[attr.data-vp-col-toggle]="col.field"
|
|
6499
|
-
[checked]="isVisible(col.field)"
|
|
6500
|
-
[disabled]="isVisible(col.field) && visibleCount === 1"
|
|
6501
|
-
(change)="setColumnVisible(col.field, !isVisible(col.field))" />
|
|
6502
|
-
{{ col.header }}
|
|
6503
|
-
</label>
|
|
6504
|
-
<span class="vp-table__cols-move">
|
|
6505
|
-
<button
|
|
6506
|
-
type="button"
|
|
6507
|
-
[attr.data-vp-col-up]="col.field"
|
|
6508
|
-
[attr.aria-label]="moveUpLabel + ': ' + col.header"
|
|
6509
|
-
[disabled]="i === 0"
|
|
6510
|
-
(click)="moveColumn(col.field, -1)">↑</button>
|
|
6511
|
-
<button
|
|
6512
|
-
type="button"
|
|
6513
|
-
[attr.data-vp-col-down]="col.field"
|
|
6514
|
-
[attr.aria-label]="moveDownLabel + ': ' + col.header"
|
|
6515
|
-
[disabled]="i === orderedColumns.length - 1"
|
|
6516
|
-
(click)="moveColumn(col.field, 1)">↓</button>
|
|
6517
|
-
</span>
|
|
6518
|
-
</div>
|
|
6519
|
-
}
|
|
6520
|
-
</div>
|
|
6521
|
-
}
|
|
6522
|
-
|
|
6523
|
-
@if (error) {
|
|
6524
|
-
<div class="vp-table__error" data-vp-table-error role="alert">
|
|
6525
|
-
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6526
|
-
<use href="#vp-icon-error"></use>
|
|
6527
|
-
</svg>
|
|
6528
|
-
<p class="vp-table__state-text">{{ error }}</p>
|
|
6529
|
-
<button type="button" class="vp-table__retry" (click)="emitLoad()">{{ retryLabel }}</button>
|
|
6530
|
-
</div>
|
|
6531
|
-
} @else if (loading) {
|
|
6532
|
-
<div class="vp-table__skeleton" data-vp-table-skeleton aria-hidden="true">
|
|
6533
|
-
@for (i of skeletonRows; track i) {
|
|
6534
|
-
<span class="vp-table__skeleton-row"></span>
|
|
6535
|
-
}
|
|
6536
|
-
</div>
|
|
6537
|
-
<span class="vp-visually-hidden" role="status">{{ loadingLabel }}</span>
|
|
6538
|
-
} @else if (rows.length === 0) {
|
|
6539
|
-
@if (hasActiveFilter) {
|
|
6540
|
-
<div class="vp-table__empty" data-vp-table-empty-filtered role="status">
|
|
6541
|
-
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6542
|
-
<use href="#vp-icon-filter"></use>
|
|
6543
|
-
</svg>
|
|
6544
|
-
<p class="vp-table__state-text">{{ emptyFilteredLabel }}</p>
|
|
6545
|
-
<button type="button" class="vp-table__retry" (click)="clearFilters.emit()">
|
|
6546
|
-
{{ clearFiltersLabel }}
|
|
6547
|
-
</button>
|
|
6548
|
-
</div>
|
|
6549
|
-
} @else {
|
|
6550
|
-
<div class="vp-table__empty" data-vp-table-empty role="status">
|
|
6551
|
-
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6552
|
-
<use href="#vp-icon-empty"></use>
|
|
6553
|
-
</svg>
|
|
6554
|
-
<p class="vp-table__state-text">{{ emptyLabel }}</p>
|
|
6555
|
-
</div>
|
|
6556
|
-
}
|
|
6557
|
-
} @else {
|
|
6558
|
-
<div class="vp-table__scroll">
|
|
6559
|
-
<table class="vp-table__table" [attr.aria-label]="caption">
|
|
6560
|
-
<thead>
|
|
6561
|
-
<tr>
|
|
6562
|
-
@if (canExpand) {
|
|
6563
|
-
<th scope="col" class="vp-table__select-cell">
|
|
6564
|
-
<span class="vp-visually-hidden">{{ expandColumnLabel }}</span>
|
|
6565
|
-
</th>
|
|
6566
|
-
}
|
|
6567
|
-
@if (selectable) {
|
|
6568
|
-
<th scope="col" class="vp-table__select-cell">
|
|
6569
|
-
<input
|
|
6570
|
-
type="checkbox"
|
|
6571
|
-
data-vp-select-page
|
|
6572
|
-
[attr.aria-label]="selectPageLabel"
|
|
6573
|
-
[checked]="allOnPageSelected"
|
|
6574
|
-
[indeterminate]="someOnPageSelected"
|
|
6575
|
-
(change)="togglePageSelection()" />
|
|
6576
|
-
</th>
|
|
6577
|
-
}
|
|
6578
|
-
@for (col of visibleCols; track col.field) {
|
|
6579
|
-
<th
|
|
6580
|
-
scope="col"
|
|
6581
|
-
[attr.data-vp-col]="col.field"
|
|
6582
|
-
[attr.aria-sort]="ariaSort(col)"
|
|
6583
|
-
[attr.data-align]="col.align || null"
|
|
6584
|
-
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6585
|
-
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6586
|
-
[style.width]="col.width || null">
|
|
6587
|
-
@if (col.sortable) {
|
|
6588
|
-
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
6589
|
-
{{ col.header }}
|
|
6590
|
-
<span class="vp-table__sort-icon" aria-hidden="true">{{ sortGlyph(col.field) }}</span>
|
|
6591
|
-
</button>
|
|
6592
|
-
} @else {
|
|
6593
|
-
{{ col.header }}
|
|
6594
|
-
}
|
|
6595
|
-
</th>
|
|
6596
|
-
}
|
|
6597
|
-
@if (rowActions) {
|
|
6598
|
-
<th scope="col" class="vp-table__actions-header">{{ rowActionsHeader }}</th>
|
|
6599
|
-
}
|
|
6600
|
-
</tr>
|
|
6601
|
-
</thead>
|
|
6602
|
-
<tbody>
|
|
6603
|
-
@for (row of rows; track $index) {
|
|
6604
|
-
<tr data-vp-row [attr.aria-selected]="isSelectedKey(row) ? 'true' : null">
|
|
6605
|
-
@if (canExpand) {
|
|
6606
|
-
<td class="vp-table__select-cell">
|
|
6607
|
-
<button
|
|
6608
|
-
type="button"
|
|
6609
|
-
class="vp-table__expand"
|
|
6610
|
-
[attr.data-vp-expand]="keyOf(row)"
|
|
6611
|
-
[attr.aria-expanded]="isExpanded(row)"
|
|
6612
|
-
[attr.aria-label]="isExpanded(row) ? collapseLabel : expandLabel"
|
|
6613
|
-
(click)="toggleExpanded(row)">{{ isExpanded(row) ? '▾' : '▸' }}</button>
|
|
6614
|
-
</td>
|
|
6615
|
-
}
|
|
6616
|
-
@if (selectable) {
|
|
6617
|
-
<td class="vp-table__select-cell">
|
|
6618
|
-
<input
|
|
6619
|
-
type="checkbox"
|
|
6620
|
-
[attr.data-vp-select-row]="keyOf(row)"
|
|
6621
|
-
[attr.aria-label]="selectRowLabel"
|
|
6622
|
-
[checked]="isSelected(row)"
|
|
6623
|
-
(change)="toggleRow(row)" />
|
|
6624
|
-
</td>
|
|
6625
|
-
}
|
|
6626
|
-
@for (col of visibleCols; track col.field) {
|
|
6627
|
-
<td
|
|
6628
|
-
[attr.data-align]="col.align || null"
|
|
6629
|
-
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6630
|
-
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6631
|
-
[attr.data-emphasis]="col.emphasis ? 'true' : null"
|
|
6632
|
-
[attr.data-label]="stack ? col.header : null">
|
|
6633
|
-
@if (templateFor(col.field); as tpl) {
|
|
6634
|
-
<ng-container
|
|
6635
|
-
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
6636
|
-
} @else {
|
|
6637
|
-
{{ cell(row, col.field) }}
|
|
6638
|
-
}
|
|
6639
|
-
</td>
|
|
6640
|
-
}
|
|
6641
|
-
@if (rowActions) {
|
|
6642
|
-
<td data-vp-row-actions>
|
|
6643
|
-
<ng-container *ngTemplateOutlet="rowActions; context: { $implicit: row }" />
|
|
6644
|
-
</td>
|
|
6645
|
-
}
|
|
6646
|
-
</tr>
|
|
6647
|
-
|
|
6648
|
-
@if (canExpand && isExpanded(row)) {
|
|
6649
|
-
<tr class="vp-table__detail-row" [attr.data-vp-detail]="keyOf(row)">
|
|
6650
|
-
<td [attr.colspan]="columnSpan">
|
|
6651
|
-
@if (rowDetail) {
|
|
6652
|
-
<ng-container *ngTemplateOutlet="rowDetail; context: { $implicit: row }" />
|
|
6653
|
-
} @else {
|
|
6654
|
-
<span class="vp-table__detail-empty">{{ noDetailLabel }}</span>
|
|
6655
|
-
}
|
|
6656
|
-
</td>
|
|
6657
|
-
</tr>
|
|
6658
|
-
}
|
|
6659
|
-
}
|
|
6660
|
-
</tbody>
|
|
6661
|
-
</table>
|
|
6662
|
-
</div>
|
|
6663
|
-
|
|
6664
|
-
@if (pageCount > 1) {
|
|
6665
|
-
<nav class="vp-table__pager" [attr.aria-label]="pagerLabel">
|
|
6666
|
-
@if (pageSizeOptions.length > 0) {
|
|
6667
|
-
<select
|
|
6668
|
-
class="vp-table__page-size"
|
|
6669
|
-
data-vp-table-page-size
|
|
6670
|
-
[attr.aria-label]="pageSizeLabel"
|
|
6671
|
-
[value]="pageSize"
|
|
6672
|
-
(change)="onPageSizeChange($event)">
|
|
6673
|
-
@for (size of pageSizeOptions; track size) {
|
|
6674
|
-
<option [value]="size" [selected]="size === pageSize">{{ size }}</option>
|
|
6675
|
-
}
|
|
6676
|
-
</select>
|
|
6677
|
-
}
|
|
6678
|
-
<button
|
|
6679
|
-
type="button"
|
|
6680
|
-
class="vp-table__page-btn"
|
|
6681
|
-
[disabled]="page <= 1"
|
|
6682
|
-
(click)="goToPage(page - 1)">{{ prevLabel }}</button>
|
|
6683
|
-
<button
|
|
6684
|
-
type="button"
|
|
6685
|
-
class="vp-table__page-btn"
|
|
6686
|
-
[disabled]="page >= pageCount"
|
|
6687
|
-
(click)="goToPage(page + 1)">{{ nextLabel }}</button>
|
|
6688
|
-
</nav>
|
|
6689
|
-
}
|
|
6690
|
-
}
|
|
6691
|
-
</div>
|
|
6692
|
-
`, isInline: true, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__views{margin-left:auto}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vp-table__range{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-table__table [data-align=end]{text-align:end}.vp-table__table [data-align=center]{text-align:center}.vp-table__table [data-mono=true]{font-family:var(--vp-font-mono);font-variant-numeric:tabular-nums}.vp-table__table [data-nowrap=true]{white-space:nowrap}.vp-table__table td[data-emphasis=true]{font-weight:var(--vp-weight-semibold)}.vp-table[data-header-style=caps] .vp-table__table th{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.06em;text-transform:uppercase}.vp-table[data-bare=true]{border:0;border-radius:0;background:transparent}@media(max-width:640px){.vp-table[data-stack=true] .vp-table__table thead{display:none}.vp-table[data-stack=true] .vp-table__table tr[data-vp-row]{display:block;padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-table[data-stack=true] .vp-table__table td{display:flex;justify-content:space-between;gap:var(--vp-space-3);border:0}.vp-table[data-stack=true] .vp-table__table td[data-label]:before{content:attr(data-label);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VpSavedViewsMenuComponent, selector: "vp-saved-views-menu", inputs: ["views", "active", "saveLabel", "deleteLabel", "menuLabel", "emptyLabel"], outputs: ["saveRequested", "viewChosen", "deleteRequested"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6374
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDataTableComponent, isStandalone: true, selector: "vp-data-table", inputs: { columns: "columns", rows: "rows", total: "total", serverSide: "serverSide", pageSize: "pageSize", loading: "loading", error: "error", hasActiveFilter: "hasActiveFilter", caption: "caption", scrollLabel: "scrollLabel", totalLabel: "totalLabel", headerStyle: "headerStyle", showMeta: "showMeta", selectedKey: "selectedKey", rangeLabel: "rangeLabel", bare: "bare", stack: "stack", loadingLabel: "loadingLabel", emptyLabel: "emptyLabel", emptyFilteredLabel: "emptyFilteredLabel", clearFiltersLabel: "clearFiltersLabel", retryLabel: "retryLabel", searchable: "searchable", searchLabel: "searchLabel", searchPlaceholder: "searchPlaceholder", searchTerm: "searchTerm", pageSizeOptions: "pageSizeOptions", pageSizeLabel: "pageSizeLabel", pagerLabel: "pagerLabel", prevLabel: "prevLabel", nextLabel: "nextLabel", storageKey: "storageKey", selectable: "selectable", rowKey: "rowKey", bulkActions: "bulkActions", bulkResult: "bulkResult", bulkLabel: "bulkLabel", selectedLabel: "selectedLabel", clearSelectionLabel: "clearSelectionLabel", selectPageLabel: "selectPageLabel", selectRowLabel: "selectRowLabel", confirmPrefix: "confirmPrefix", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", succeededLabel: "succeededLabel", failedLabel: "failedLabel", expandable: "expandable", rowDetail: "rowDetail", expandLabel: "expandLabel", collapseLabel: "collapseLabel", expandColumnLabel: "expandColumnLabel", noDetailLabel: "noDetailLabel", rowActions: "rowActions", rowActionsHeader: "rowActionsHeader", cellTemplates: "cellTemplates", exportScopes: "exportScopes", exportPageLabel: "exportPageLabel", exportAllLabel: "exportAllLabel", savedViewsKey: "savedViewsKey", viewsLabel: "viewsLabel", viewsEmptyLabel: "viewsEmptyLabel", saveViewLabel: "saveViewLabel", deleteViewLabel: "deleteViewLabel", askViewName: "askViewName", columnPicker: "columnPicker", columnsLabel: "columnsLabel", moveUpLabel: "moveUpLabel", moveDownLabel: "moveDownLabel" }, outputs: { bulkAction: "bulkAction", exportRequest: "exportRequest", viewApplied: "viewApplied", load: "load", clearFilters: "clearFilters", search: "search" }, usesOnChanges: true, ngImport: i0, template: `
|
|
6375
|
+
<div class="vp-table" [attr.data-header-style]="headerStyle === 'caps' ? 'caps' : null" [attr.data-bare]="bare ? 'true' : null" [attr.data-stack]="stack ? 'true' : null">
|
|
6376
|
+
@if (showMeta) {
|
|
6377
|
+
<div class="vp-table__meta">
|
|
6378
|
+
<span class="vp-table__total" data-vp-total>
|
|
6379
|
+
{{ total }} {{ totalLabel }}
|
|
6380
|
+
</span>
|
|
6381
|
+
@if (rangeLabel) {
|
|
6382
|
+
<span class="vp-table__range" data-vp-range>{{ rangeLabel }}</span>
|
|
6383
|
+
}
|
|
6384
|
+
@if (pageCount > 1) {
|
|
6385
|
+
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
@if (searchable) {
|
|
6389
|
+
<input
|
|
6390
|
+
type="search"
|
|
6391
|
+
class="vp-table__search"
|
|
6392
|
+
data-vp-table-search
|
|
6393
|
+
[attr.aria-label]="searchLabel"
|
|
6394
|
+
[attr.placeholder]="searchPlaceholder"
|
|
6395
|
+
[value]="searchTerm"
|
|
6396
|
+
(input)="onSearch($event)" />
|
|
6397
|
+
}
|
|
6398
|
+
|
|
6399
|
+
@if (savedViewsKey) {
|
|
6400
|
+
<!--
|
|
6401
|
+
main-backend/015 T-08 (Q-5 b, 2026-11-13): prototip araç satırında yalnız bookmark ikonu.
|
|
6402
|
+
Seçim kutusu ve metinli sil düğmesi kalktı; ikon bir menü açar (kaydet, görünümler, sil).
|
|
6403
|
+
(Satır içi şablon: ters tırnak YAZMA.)
|
|
6404
|
+
-->
|
|
6405
|
+
<vp-saved-views-menu class="vp-table__views"
|
|
6406
|
+
[views]="savedViews"
|
|
6407
|
+
[active]="activeView"
|
|
6408
|
+
[saveLabel]="saveViewLabel"
|
|
6409
|
+
[deleteLabel]="deleteViewLabel"
|
|
6410
|
+
[menuLabel]="viewsLabel"
|
|
6411
|
+
[emptyLabel]="viewsEmptyLabel"
|
|
6412
|
+
(saveRequested)="saveViewPrompt()"
|
|
6413
|
+
(viewChosen)="applyView($event)"
|
|
6414
|
+
(deleteRequested)="deleteActiveView()" />
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
@if (exportScopes.length > 0) {
|
|
6418
|
+
@for (scope of exportScopes; track scope) {
|
|
6419
|
+
<button
|
|
6420
|
+
type="button"
|
|
6421
|
+
class="vp-table__cols-btn"
|
|
6422
|
+
[attr.data-vp-export]="scope"
|
|
6423
|
+
(click)="requestExport(scope)">{{ exportLabel(scope) }}</button>
|
|
6424
|
+
}
|
|
6425
|
+
}
|
|
6426
|
+
|
|
6427
|
+
@if (columnPicker) {
|
|
6428
|
+
<button
|
|
6429
|
+
type="button"
|
|
6430
|
+
class="vp-table__cols-btn vp-table__icon-btn"
|
|
6431
|
+
data-vp-cols-toggle
|
|
6432
|
+
[attr.aria-label]="columnsLabel"
|
|
6433
|
+
[attr.title]="columnsLabel"
|
|
6434
|
+
[attr.aria-expanded]="pickerOpen"
|
|
6435
|
+
(click)="pickerOpen = !pickerOpen">
|
|
6436
|
+
<svg class="vp-table__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false"><use href="#vp-icon-columns"></use></svg>
|
|
6437
|
+
</button>
|
|
6438
|
+
}
|
|
6439
|
+
<ng-content select="[toolbar]" />
|
|
6440
|
+
</div>
|
|
6441
|
+
}
|
|
6442
|
+
|
|
6443
|
+
@if (selectable && selectedKeys.size > 0) {
|
|
6444
|
+
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
6445
|
+
<span data-vp-bulk-count>{{ selectedKeys.size }} {{ selectedLabel }}</span>
|
|
6446
|
+
|
|
6447
|
+
<div class="vp-table__bulk-actions">
|
|
6448
|
+
@for (action of bulkActions; track action.code) {
|
|
6449
|
+
<button
|
|
6450
|
+
type="button"
|
|
6451
|
+
[attr.data-vp-bulk-action]="action.code"
|
|
6452
|
+
[class.vp-table__bulk-btn--danger]="action.danger"
|
|
6453
|
+
class="vp-table__bulk-btn"
|
|
6454
|
+
(click)="requestBulkAction(action)">{{ action.label }}</button>
|
|
6455
|
+
}
|
|
6456
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-clear
|
|
6457
|
+
(click)="clearSelection()">{{ clearSelectionLabel }}</button>
|
|
6458
|
+
</div>
|
|
6459
|
+
</div>
|
|
6460
|
+
|
|
6461
|
+
@if (pendingAction) {
|
|
6462
|
+
<div class="vp-table__bulk-confirm" data-vp-bulk-confirm role="alertdialog"
|
|
6463
|
+
[attr.aria-label]="pendingAction.label">
|
|
6464
|
+
<span>{{ confirmPrefix }} {{ selectedKeys.size }} {{ selectedLabel }} — {{ pendingAction.label }}?</span>
|
|
6465
|
+
<span class="vp-table__bulk-actions">
|
|
6466
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-cancel
|
|
6467
|
+
(click)="pendingAction = null">{{ cancelLabel }}</button>
|
|
6468
|
+
<button type="button" class="vp-table__bulk-btn vp-table__bulk-btn--danger"
|
|
6469
|
+
data-vp-bulk-confirm-ok (click)="confirmBulkAction()">{{ confirmLabel }}</button>
|
|
6470
|
+
</span>
|
|
6471
|
+
</div>
|
|
6472
|
+
}
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6475
|
+
@if (bulkResult) {
|
|
6476
|
+
<div class="vp-table__bulk-report" data-vp-bulk-report role="status" aria-live="polite">
|
|
6477
|
+
@if (bulkResult.succeeded.length > 0) {
|
|
6478
|
+
<p data-vp-bulk-ok>{{ bulkResult.succeeded.length }} {{ succeededLabel }}</p>
|
|
6479
|
+
}
|
|
6480
|
+
@if (bulkResult.failed.length > 0) {
|
|
6481
|
+
<p data-vp-bulk-failed>{{ bulkResult.failed.length }} {{ failedLabel }}</p>
|
|
6482
|
+
<ul class="vp-table__bulk-failures">
|
|
6483
|
+
@for (failure of bulkResult.failed; track failure.key) {
|
|
6484
|
+
<li [attr.data-vp-bulk-failure]="failure.key">
|
|
6485
|
+
<code>{{ failure.key }}</code> — {{ failure.reason }}
|
|
6486
|
+
</li>
|
|
6487
|
+
}
|
|
6488
|
+
</ul>
|
|
6489
|
+
}
|
|
6490
|
+
</div>
|
|
6491
|
+
}
|
|
6492
|
+
|
|
6493
|
+
@if (columnPicker && pickerOpen) {
|
|
6494
|
+
<div class="vp-table__cols" data-vp-cols role="group" [attr.aria-label]="columnsLabel">
|
|
6495
|
+
@for (col of orderedColumns; track col.field; let i = $index) {
|
|
6496
|
+
<div class="vp-table__cols-row" [attr.data-vp-cols-row]="col.field">
|
|
6497
|
+
<label class="vp-table__cols-label">
|
|
6498
|
+
<input
|
|
6499
|
+
type="checkbox"
|
|
6500
|
+
[attr.data-vp-col-toggle]="col.field"
|
|
6501
|
+
[checked]="isVisible(col.field)"
|
|
6502
|
+
[disabled]="isVisible(col.field) && visibleCount === 1"
|
|
6503
|
+
(change)="setColumnVisible(col.field, !isVisible(col.field))" />
|
|
6504
|
+
{{ col.header }}
|
|
6505
|
+
</label>
|
|
6506
|
+
<span class="vp-table__cols-move">
|
|
6507
|
+
<button
|
|
6508
|
+
type="button"
|
|
6509
|
+
[attr.data-vp-col-up]="col.field"
|
|
6510
|
+
[attr.aria-label]="moveUpLabel + ': ' + col.header"
|
|
6511
|
+
[disabled]="i === 0"
|
|
6512
|
+
(click)="moveColumn(col.field, -1)">↑</button>
|
|
6513
|
+
<button
|
|
6514
|
+
type="button"
|
|
6515
|
+
[attr.data-vp-col-down]="col.field"
|
|
6516
|
+
[attr.aria-label]="moveDownLabel + ': ' + col.header"
|
|
6517
|
+
[disabled]="i === orderedColumns.length - 1"
|
|
6518
|
+
(click)="moveColumn(col.field, 1)">↓</button>
|
|
6519
|
+
</span>
|
|
6520
|
+
</div>
|
|
6521
|
+
}
|
|
6522
|
+
</div>
|
|
6523
|
+
}
|
|
6524
|
+
|
|
6525
|
+
@if (error) {
|
|
6526
|
+
<div class="vp-table__error" data-vp-table-error role="alert">
|
|
6527
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6528
|
+
<use href="#vp-icon-error"></use>
|
|
6529
|
+
</svg>
|
|
6530
|
+
<p class="vp-table__state-text">{{ error }}</p>
|
|
6531
|
+
<button type="button" class="vp-table__retry" (click)="emitLoad()">{{ retryLabel }}</button>
|
|
6532
|
+
</div>
|
|
6533
|
+
} @else if (loading) {
|
|
6534
|
+
<div class="vp-table__skeleton" data-vp-table-skeleton aria-hidden="true">
|
|
6535
|
+
@for (i of skeletonRows; track i) {
|
|
6536
|
+
<span class="vp-table__skeleton-row"></span>
|
|
6537
|
+
}
|
|
6538
|
+
</div>
|
|
6539
|
+
<span class="vp-visually-hidden" role="status">{{ loadingLabel }}</span>
|
|
6540
|
+
} @else if (rows.length === 0) {
|
|
6541
|
+
@if (hasActiveFilter) {
|
|
6542
|
+
<div class="vp-table__empty" data-vp-table-empty-filtered role="status">
|
|
6543
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6544
|
+
<use href="#vp-icon-filter"></use>
|
|
6545
|
+
</svg>
|
|
6546
|
+
<p class="vp-table__state-text">{{ emptyFilteredLabel }}</p>
|
|
6547
|
+
<button type="button" class="vp-table__retry" (click)="clearFilters.emit()">
|
|
6548
|
+
{{ clearFiltersLabel }}
|
|
6549
|
+
</button>
|
|
6550
|
+
</div>
|
|
6551
|
+
} @else {
|
|
6552
|
+
<div class="vp-table__empty" data-vp-table-empty role="status">
|
|
6553
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6554
|
+
<use href="#vp-icon-empty"></use>
|
|
6555
|
+
</svg>
|
|
6556
|
+
<p class="vp-table__state-text">{{ emptyLabel }}</p>
|
|
6557
|
+
</div>
|
|
6558
|
+
}
|
|
6559
|
+
} @else {
|
|
6560
|
+
<div class="vp-table__scroll" tabindex="0" role="region" [attr.aria-label]="caption || scrollLabel">
|
|
6561
|
+
<table class="vp-table__table" [attr.aria-label]="caption">
|
|
6562
|
+
<thead>
|
|
6563
|
+
<tr>
|
|
6564
|
+
@if (canExpand) {
|
|
6565
|
+
<th scope="col" class="vp-table__select-cell">
|
|
6566
|
+
<span class="vp-visually-hidden">{{ expandColumnLabel }}</span>
|
|
6567
|
+
</th>
|
|
6568
|
+
}
|
|
6569
|
+
@if (selectable) {
|
|
6570
|
+
<th scope="col" class="vp-table__select-cell">
|
|
6571
|
+
<input
|
|
6572
|
+
type="checkbox"
|
|
6573
|
+
data-vp-select-page
|
|
6574
|
+
[attr.aria-label]="selectPageLabel"
|
|
6575
|
+
[checked]="allOnPageSelected"
|
|
6576
|
+
[indeterminate]="someOnPageSelected"
|
|
6577
|
+
(change)="togglePageSelection()" />
|
|
6578
|
+
</th>
|
|
6579
|
+
}
|
|
6580
|
+
@for (col of visibleCols; track col.field) {
|
|
6581
|
+
<th
|
|
6582
|
+
scope="col"
|
|
6583
|
+
[attr.data-vp-col]="col.field"
|
|
6584
|
+
[attr.aria-sort]="ariaSort(col)"
|
|
6585
|
+
[attr.data-align]="col.align || null"
|
|
6586
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6587
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6588
|
+
[style.width]="col.width || null">
|
|
6589
|
+
@if (col.sortable) {
|
|
6590
|
+
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
6591
|
+
{{ col.header }}
|
|
6592
|
+
<span class="vp-table__sort-icon" aria-hidden="true">{{ sortGlyph(col.field) }}</span>
|
|
6593
|
+
</button>
|
|
6594
|
+
} @else {
|
|
6595
|
+
{{ col.header }}
|
|
6596
|
+
}
|
|
6597
|
+
</th>
|
|
6598
|
+
}
|
|
6599
|
+
@if (rowActions) {
|
|
6600
|
+
<th scope="col" class="vp-table__actions-header">{{ rowActionsHeader }}</th>
|
|
6601
|
+
}
|
|
6602
|
+
</tr>
|
|
6603
|
+
</thead>
|
|
6604
|
+
<tbody>
|
|
6605
|
+
@for (row of rows; track $index) {
|
|
6606
|
+
<tr data-vp-row [attr.aria-selected]="isSelectedKey(row) ? 'true' : null">
|
|
6607
|
+
@if (canExpand) {
|
|
6608
|
+
<td class="vp-table__select-cell">
|
|
6609
|
+
<button
|
|
6610
|
+
type="button"
|
|
6611
|
+
class="vp-table__expand"
|
|
6612
|
+
[attr.data-vp-expand]="keyOf(row)"
|
|
6613
|
+
[attr.aria-expanded]="isExpanded(row)"
|
|
6614
|
+
[attr.aria-label]="isExpanded(row) ? collapseLabel : expandLabel"
|
|
6615
|
+
(click)="toggleExpanded(row)">{{ isExpanded(row) ? '▾' : '▸' }}</button>
|
|
6616
|
+
</td>
|
|
6617
|
+
}
|
|
6618
|
+
@if (selectable) {
|
|
6619
|
+
<td class="vp-table__select-cell">
|
|
6620
|
+
<input
|
|
6621
|
+
type="checkbox"
|
|
6622
|
+
[attr.data-vp-select-row]="keyOf(row)"
|
|
6623
|
+
[attr.aria-label]="selectRowLabel"
|
|
6624
|
+
[checked]="isSelected(row)"
|
|
6625
|
+
(change)="toggleRow(row)" />
|
|
6626
|
+
</td>
|
|
6627
|
+
}
|
|
6628
|
+
@for (col of visibleCols; track col.field) {
|
|
6629
|
+
<td
|
|
6630
|
+
[attr.data-align]="col.align || null"
|
|
6631
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6632
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6633
|
+
[attr.data-emphasis]="col.emphasis ? 'true' : null"
|
|
6634
|
+
[attr.data-label]="stack ? col.header : null">
|
|
6635
|
+
@if (templateFor(col.field); as tpl) {
|
|
6636
|
+
<ng-container
|
|
6637
|
+
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
6638
|
+
} @else {
|
|
6639
|
+
{{ cell(row, col.field) }}
|
|
6640
|
+
}
|
|
6641
|
+
</td>
|
|
6642
|
+
}
|
|
6643
|
+
@if (rowActions) {
|
|
6644
|
+
<td data-vp-row-actions>
|
|
6645
|
+
<ng-container *ngTemplateOutlet="rowActions; context: { $implicit: row }" />
|
|
6646
|
+
</td>
|
|
6647
|
+
}
|
|
6648
|
+
</tr>
|
|
6649
|
+
|
|
6650
|
+
@if (canExpand && isExpanded(row)) {
|
|
6651
|
+
<tr class="vp-table__detail-row" [attr.data-vp-detail]="keyOf(row)">
|
|
6652
|
+
<td [attr.colspan]="columnSpan">
|
|
6653
|
+
@if (rowDetail) {
|
|
6654
|
+
<ng-container *ngTemplateOutlet="rowDetail; context: { $implicit: row }" />
|
|
6655
|
+
} @else {
|
|
6656
|
+
<span class="vp-table__detail-empty">{{ noDetailLabel }}</span>
|
|
6657
|
+
}
|
|
6658
|
+
</td>
|
|
6659
|
+
</tr>
|
|
6660
|
+
}
|
|
6661
|
+
}
|
|
6662
|
+
</tbody>
|
|
6663
|
+
</table>
|
|
6664
|
+
</div>
|
|
6665
|
+
|
|
6666
|
+
@if (pageCount > 1) {
|
|
6667
|
+
<nav class="vp-table__pager" [attr.aria-label]="pagerLabel">
|
|
6668
|
+
@if (pageSizeOptions.length > 0) {
|
|
6669
|
+
<select
|
|
6670
|
+
class="vp-table__page-size"
|
|
6671
|
+
data-vp-table-page-size
|
|
6672
|
+
[attr.aria-label]="pageSizeLabel"
|
|
6673
|
+
[value]="pageSize"
|
|
6674
|
+
(change)="onPageSizeChange($event)">
|
|
6675
|
+
@for (size of pageSizeOptions; track size) {
|
|
6676
|
+
<option [value]="size" [selected]="size === pageSize">{{ size }}</option>
|
|
6677
|
+
}
|
|
6678
|
+
</select>
|
|
6679
|
+
}
|
|
6680
|
+
<button
|
|
6681
|
+
type="button"
|
|
6682
|
+
class="vp-table__page-btn"
|
|
6683
|
+
[disabled]="page <= 1"
|
|
6684
|
+
(click)="goToPage(page - 1)">{{ prevLabel }}</button>
|
|
6685
|
+
<button
|
|
6686
|
+
type="button"
|
|
6687
|
+
class="vp-table__page-btn"
|
|
6688
|
+
[disabled]="page >= pageCount"
|
|
6689
|
+
(click)="goToPage(page + 1)">{{ nextLabel }}</button>
|
|
6690
|
+
</nav>
|
|
6691
|
+
}
|
|
6692
|
+
}
|
|
6693
|
+
</div>
|
|
6694
|
+
`, isInline: true, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__scroll:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__views{margin-left:auto}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vp-table__range{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-table__table [data-align=end]{text-align:end}.vp-table__table [data-align=center]{text-align:center}.vp-table__table [data-mono=true]{font-family:var(--vp-font-mono);font-variant-numeric:tabular-nums}.vp-table__table [data-nowrap=true]{white-space:nowrap}.vp-table__table td[data-emphasis=true]{font-weight:var(--vp-weight-semibold)}.vp-table[data-header-style=caps] .vp-table__table th{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.06em;text-transform:uppercase}.vp-table[data-bare=true]{border:0;border-radius:0;background:transparent}@media(max-width:640px){.vp-table[data-stack=true] .vp-table__table thead{display:none}.vp-table[data-stack=true] .vp-table__table tr[data-vp-row]{display:block;padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-table[data-stack=true] .vp-table__table td{display:flex;justify-content:space-between;gap:var(--vp-space-3);border:0}.vp-table[data-stack=true] .vp-table__table td[data-label]:before{content:attr(data-label);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VpSavedViewsMenuComponent, selector: "vp-saved-views-menu", inputs: ["views", "active", "saveLabel", "deleteLabel", "menuLabel", "emptyLabel"], outputs: ["saveRequested", "viewChosen", "deleteRequested"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6693
6695
|
}
|
|
6694
6696
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, decorators: [{
|
|
6695
6697
|
type: Component,
|
|
6696
|
-
args: [{ selector: 'vp-data-table', standalone: true, imports: [NgTemplateOutlet, VpSavedViewsMenuComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6697
|
-
<div class="vp-table" [attr.data-header-style]="headerStyle === 'caps' ? 'caps' : null" [attr.data-bare]="bare ? 'true' : null" [attr.data-stack]="stack ? 'true' : null">
|
|
6698
|
-
@if (showMeta) {
|
|
6699
|
-
<div class="vp-table__meta">
|
|
6700
|
-
<span class="vp-table__total" data-vp-total>
|
|
6701
|
-
{{ total }} {{ totalLabel }}
|
|
6702
|
-
</span>
|
|
6703
|
-
@if (rangeLabel) {
|
|
6704
|
-
<span class="vp-table__range" data-vp-range>{{ rangeLabel }}</span>
|
|
6705
|
-
}
|
|
6706
|
-
@if (pageCount > 1) {
|
|
6707
|
-
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
6708
|
-
}
|
|
6709
|
-
|
|
6710
|
-
@if (searchable) {
|
|
6711
|
-
<input
|
|
6712
|
-
type="search"
|
|
6713
|
-
class="vp-table__search"
|
|
6714
|
-
data-vp-table-search
|
|
6715
|
-
[attr.aria-label]="searchLabel"
|
|
6716
|
-
[attr.placeholder]="searchPlaceholder"
|
|
6717
|
-
[value]="searchTerm"
|
|
6718
|
-
(input)="onSearch($event)" />
|
|
6719
|
-
}
|
|
6720
|
-
|
|
6721
|
-
@if (savedViewsKey) {
|
|
6722
|
-
<!--
|
|
6723
|
-
main-backend/015 T-08 (Q-5 b, 2026-11-13): prototip araç satırında yalnız bookmark ikonu.
|
|
6724
|
-
Seçim kutusu ve metinli sil düğmesi kalktı; ikon bir menü açar (kaydet, görünümler, sil).
|
|
6725
|
-
(Satır içi şablon: ters tırnak YAZMA.)
|
|
6726
|
-
-->
|
|
6727
|
-
<vp-saved-views-menu class="vp-table__views"
|
|
6728
|
-
[views]="savedViews"
|
|
6729
|
-
[active]="activeView"
|
|
6730
|
-
[saveLabel]="saveViewLabel"
|
|
6731
|
-
[deleteLabel]="deleteViewLabel"
|
|
6732
|
-
[menuLabel]="viewsLabel"
|
|
6733
|
-
[emptyLabel]="viewsEmptyLabel"
|
|
6734
|
-
(saveRequested)="saveViewPrompt()"
|
|
6735
|
-
(viewChosen)="applyView($event)"
|
|
6736
|
-
(deleteRequested)="deleteActiveView()" />
|
|
6737
|
-
}
|
|
6738
|
-
|
|
6739
|
-
@if (exportScopes.length > 0) {
|
|
6740
|
-
@for (scope of exportScopes; track scope) {
|
|
6741
|
-
<button
|
|
6742
|
-
type="button"
|
|
6743
|
-
class="vp-table__cols-btn"
|
|
6744
|
-
[attr.data-vp-export]="scope"
|
|
6745
|
-
(click)="requestExport(scope)">{{ exportLabel(scope) }}</button>
|
|
6746
|
-
}
|
|
6747
|
-
}
|
|
6748
|
-
|
|
6749
|
-
@if (columnPicker) {
|
|
6750
|
-
<button
|
|
6751
|
-
type="button"
|
|
6752
|
-
class="vp-table__cols-btn vp-table__icon-btn"
|
|
6753
|
-
data-vp-cols-toggle
|
|
6754
|
-
[attr.aria-label]="columnsLabel"
|
|
6755
|
-
[attr.title]="columnsLabel"
|
|
6756
|
-
[attr.aria-expanded]="pickerOpen"
|
|
6757
|
-
(click)="pickerOpen = !pickerOpen">
|
|
6758
|
-
<svg class="vp-table__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false"><use href="#vp-icon-columns"></use></svg>
|
|
6759
|
-
</button>
|
|
6760
|
-
}
|
|
6761
|
-
<ng-content select="[toolbar]" />
|
|
6762
|
-
</div>
|
|
6763
|
-
}
|
|
6764
|
-
|
|
6765
|
-
@if (selectable && selectedKeys.size > 0) {
|
|
6766
|
-
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
6767
|
-
<span data-vp-bulk-count>{{ selectedKeys.size }} {{ selectedLabel }}</span>
|
|
6768
|
-
|
|
6769
|
-
<div class="vp-table__bulk-actions">
|
|
6770
|
-
@for (action of bulkActions; track action.code) {
|
|
6771
|
-
<button
|
|
6772
|
-
type="button"
|
|
6773
|
-
[attr.data-vp-bulk-action]="action.code"
|
|
6774
|
-
[class.vp-table__bulk-btn--danger]="action.danger"
|
|
6775
|
-
class="vp-table__bulk-btn"
|
|
6776
|
-
(click)="requestBulkAction(action)">{{ action.label }}</button>
|
|
6777
|
-
}
|
|
6778
|
-
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-clear
|
|
6779
|
-
(click)="clearSelection()">{{ clearSelectionLabel }}</button>
|
|
6780
|
-
</div>
|
|
6781
|
-
</div>
|
|
6782
|
-
|
|
6783
|
-
@if (pendingAction) {
|
|
6784
|
-
<div class="vp-table__bulk-confirm" data-vp-bulk-confirm role="alertdialog"
|
|
6785
|
-
[attr.aria-label]="pendingAction.label">
|
|
6786
|
-
<span>{{ confirmPrefix }} {{ selectedKeys.size }} {{ selectedLabel }} — {{ pendingAction.label }}?</span>
|
|
6787
|
-
<span class="vp-table__bulk-actions">
|
|
6788
|
-
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-cancel
|
|
6789
|
-
(click)="pendingAction = null">{{ cancelLabel }}</button>
|
|
6790
|
-
<button type="button" class="vp-table__bulk-btn vp-table__bulk-btn--danger"
|
|
6791
|
-
data-vp-bulk-confirm-ok (click)="confirmBulkAction()">{{ confirmLabel }}</button>
|
|
6792
|
-
</span>
|
|
6793
|
-
</div>
|
|
6794
|
-
}
|
|
6795
|
-
}
|
|
6796
|
-
|
|
6797
|
-
@if (bulkResult) {
|
|
6798
|
-
<div class="vp-table__bulk-report" data-vp-bulk-report role="status" aria-live="polite">
|
|
6799
|
-
@if (bulkResult.succeeded.length > 0) {
|
|
6800
|
-
<p data-vp-bulk-ok>{{ bulkResult.succeeded.length }} {{ succeededLabel }}</p>
|
|
6801
|
-
}
|
|
6802
|
-
@if (bulkResult.failed.length > 0) {
|
|
6803
|
-
<p data-vp-bulk-failed>{{ bulkResult.failed.length }} {{ failedLabel }}</p>
|
|
6804
|
-
<ul class="vp-table__bulk-failures">
|
|
6805
|
-
@for (failure of bulkResult.failed; track failure.key) {
|
|
6806
|
-
<li [attr.data-vp-bulk-failure]="failure.key">
|
|
6807
|
-
<code>{{ failure.key }}</code> — {{ failure.reason }}
|
|
6808
|
-
</li>
|
|
6809
|
-
}
|
|
6810
|
-
</ul>
|
|
6811
|
-
}
|
|
6812
|
-
</div>
|
|
6813
|
-
}
|
|
6814
|
-
|
|
6815
|
-
@if (columnPicker && pickerOpen) {
|
|
6816
|
-
<div class="vp-table__cols" data-vp-cols role="group" [attr.aria-label]="columnsLabel">
|
|
6817
|
-
@for (col of orderedColumns; track col.field; let i = $index) {
|
|
6818
|
-
<div class="vp-table__cols-row" [attr.data-vp-cols-row]="col.field">
|
|
6819
|
-
<label class="vp-table__cols-label">
|
|
6820
|
-
<input
|
|
6821
|
-
type="checkbox"
|
|
6822
|
-
[attr.data-vp-col-toggle]="col.field"
|
|
6823
|
-
[checked]="isVisible(col.field)"
|
|
6824
|
-
[disabled]="isVisible(col.field) && visibleCount === 1"
|
|
6825
|
-
(change)="setColumnVisible(col.field, !isVisible(col.field))" />
|
|
6826
|
-
{{ col.header }}
|
|
6827
|
-
</label>
|
|
6828
|
-
<span class="vp-table__cols-move">
|
|
6829
|
-
<button
|
|
6830
|
-
type="button"
|
|
6831
|
-
[attr.data-vp-col-up]="col.field"
|
|
6832
|
-
[attr.aria-label]="moveUpLabel + ': ' + col.header"
|
|
6833
|
-
[disabled]="i === 0"
|
|
6834
|
-
(click)="moveColumn(col.field, -1)">↑</button>
|
|
6835
|
-
<button
|
|
6836
|
-
type="button"
|
|
6837
|
-
[attr.data-vp-col-down]="col.field"
|
|
6838
|
-
[attr.aria-label]="moveDownLabel + ': ' + col.header"
|
|
6839
|
-
[disabled]="i === orderedColumns.length - 1"
|
|
6840
|
-
(click)="moveColumn(col.field, 1)">↓</button>
|
|
6841
|
-
</span>
|
|
6842
|
-
</div>
|
|
6843
|
-
}
|
|
6844
|
-
</div>
|
|
6845
|
-
}
|
|
6846
|
-
|
|
6847
|
-
@if (error) {
|
|
6848
|
-
<div class="vp-table__error" data-vp-table-error role="alert">
|
|
6849
|
-
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6850
|
-
<use href="#vp-icon-error"></use>
|
|
6851
|
-
</svg>
|
|
6852
|
-
<p class="vp-table__state-text">{{ error }}</p>
|
|
6853
|
-
<button type="button" class="vp-table__retry" (click)="emitLoad()">{{ retryLabel }}</button>
|
|
6854
|
-
</div>
|
|
6855
|
-
} @else if (loading) {
|
|
6856
|
-
<div class="vp-table__skeleton" data-vp-table-skeleton aria-hidden="true">
|
|
6857
|
-
@for (i of skeletonRows; track i) {
|
|
6858
|
-
<span class="vp-table__skeleton-row"></span>
|
|
6859
|
-
}
|
|
6860
|
-
</div>
|
|
6861
|
-
<span class="vp-visually-hidden" role="status">{{ loadingLabel }}</span>
|
|
6862
|
-
} @else if (rows.length === 0) {
|
|
6863
|
-
@if (hasActiveFilter) {
|
|
6864
|
-
<div class="vp-table__empty" data-vp-table-empty-filtered role="status">
|
|
6865
|
-
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6866
|
-
<use href="#vp-icon-filter"></use>
|
|
6867
|
-
</svg>
|
|
6868
|
-
<p class="vp-table__state-text">{{ emptyFilteredLabel }}</p>
|
|
6869
|
-
<button type="button" class="vp-table__retry" (click)="clearFilters.emit()">
|
|
6870
|
-
{{ clearFiltersLabel }}
|
|
6871
|
-
</button>
|
|
6872
|
-
</div>
|
|
6873
|
-
} @else {
|
|
6874
|
-
<div class="vp-table__empty" data-vp-table-empty role="status">
|
|
6875
|
-
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6876
|
-
<use href="#vp-icon-empty"></use>
|
|
6877
|
-
</svg>
|
|
6878
|
-
<p class="vp-table__state-text">{{ emptyLabel }}</p>
|
|
6879
|
-
</div>
|
|
6880
|
-
}
|
|
6881
|
-
} @else {
|
|
6882
|
-
<div class="vp-table__scroll">
|
|
6883
|
-
<table class="vp-table__table" [attr.aria-label]="caption">
|
|
6884
|
-
<thead>
|
|
6885
|
-
<tr>
|
|
6886
|
-
@if (canExpand) {
|
|
6887
|
-
<th scope="col" class="vp-table__select-cell">
|
|
6888
|
-
<span class="vp-visually-hidden">{{ expandColumnLabel }}</span>
|
|
6889
|
-
</th>
|
|
6890
|
-
}
|
|
6891
|
-
@if (selectable) {
|
|
6892
|
-
<th scope="col" class="vp-table__select-cell">
|
|
6893
|
-
<input
|
|
6894
|
-
type="checkbox"
|
|
6895
|
-
data-vp-select-page
|
|
6896
|
-
[attr.aria-label]="selectPageLabel"
|
|
6897
|
-
[checked]="allOnPageSelected"
|
|
6898
|
-
[indeterminate]="someOnPageSelected"
|
|
6899
|
-
(change)="togglePageSelection()" />
|
|
6900
|
-
</th>
|
|
6901
|
-
}
|
|
6902
|
-
@for (col of visibleCols; track col.field) {
|
|
6903
|
-
<th
|
|
6904
|
-
scope="col"
|
|
6905
|
-
[attr.data-vp-col]="col.field"
|
|
6906
|
-
[attr.aria-sort]="ariaSort(col)"
|
|
6907
|
-
[attr.data-align]="col.align || null"
|
|
6908
|
-
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6909
|
-
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6910
|
-
[style.width]="col.width || null">
|
|
6911
|
-
@if (col.sortable) {
|
|
6912
|
-
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
6913
|
-
{{ col.header }}
|
|
6914
|
-
<span class="vp-table__sort-icon" aria-hidden="true">{{ sortGlyph(col.field) }}</span>
|
|
6915
|
-
</button>
|
|
6916
|
-
} @else {
|
|
6917
|
-
{{ col.header }}
|
|
6918
|
-
}
|
|
6919
|
-
</th>
|
|
6920
|
-
}
|
|
6921
|
-
@if (rowActions) {
|
|
6922
|
-
<th scope="col" class="vp-table__actions-header">{{ rowActionsHeader }}</th>
|
|
6923
|
-
}
|
|
6924
|
-
</tr>
|
|
6925
|
-
</thead>
|
|
6926
|
-
<tbody>
|
|
6927
|
-
@for (row of rows; track $index) {
|
|
6928
|
-
<tr data-vp-row [attr.aria-selected]="isSelectedKey(row) ? 'true' : null">
|
|
6929
|
-
@if (canExpand) {
|
|
6930
|
-
<td class="vp-table__select-cell">
|
|
6931
|
-
<button
|
|
6932
|
-
type="button"
|
|
6933
|
-
class="vp-table__expand"
|
|
6934
|
-
[attr.data-vp-expand]="keyOf(row)"
|
|
6935
|
-
[attr.aria-expanded]="isExpanded(row)"
|
|
6936
|
-
[attr.aria-label]="isExpanded(row) ? collapseLabel : expandLabel"
|
|
6937
|
-
(click)="toggleExpanded(row)">{{ isExpanded(row) ? '▾' : '▸' }}</button>
|
|
6938
|
-
</td>
|
|
6939
|
-
}
|
|
6940
|
-
@if (selectable) {
|
|
6941
|
-
<td class="vp-table__select-cell">
|
|
6942
|
-
<input
|
|
6943
|
-
type="checkbox"
|
|
6944
|
-
[attr.data-vp-select-row]="keyOf(row)"
|
|
6945
|
-
[attr.aria-label]="selectRowLabel"
|
|
6946
|
-
[checked]="isSelected(row)"
|
|
6947
|
-
(change)="toggleRow(row)" />
|
|
6948
|
-
</td>
|
|
6949
|
-
}
|
|
6950
|
-
@for (col of visibleCols; track col.field) {
|
|
6951
|
-
<td
|
|
6952
|
-
[attr.data-align]="col.align || null"
|
|
6953
|
-
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6954
|
-
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6955
|
-
[attr.data-emphasis]="col.emphasis ? 'true' : null"
|
|
6956
|
-
[attr.data-label]="stack ? col.header : null">
|
|
6957
|
-
@if (templateFor(col.field); as tpl) {
|
|
6958
|
-
<ng-container
|
|
6959
|
-
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
6960
|
-
} @else {
|
|
6961
|
-
{{ cell(row, col.field) }}
|
|
6962
|
-
}
|
|
6963
|
-
</td>
|
|
6964
|
-
}
|
|
6965
|
-
@if (rowActions) {
|
|
6966
|
-
<td data-vp-row-actions>
|
|
6967
|
-
<ng-container *ngTemplateOutlet="rowActions; context: { $implicit: row }" />
|
|
6968
|
-
</td>
|
|
6969
|
-
}
|
|
6970
|
-
</tr>
|
|
6971
|
-
|
|
6972
|
-
@if (canExpand && isExpanded(row)) {
|
|
6973
|
-
<tr class="vp-table__detail-row" [attr.data-vp-detail]="keyOf(row)">
|
|
6974
|
-
<td [attr.colspan]="columnSpan">
|
|
6975
|
-
@if (rowDetail) {
|
|
6976
|
-
<ng-container *ngTemplateOutlet="rowDetail; context: { $implicit: row }" />
|
|
6977
|
-
} @else {
|
|
6978
|
-
<span class="vp-table__detail-empty">{{ noDetailLabel }}</span>
|
|
6979
|
-
}
|
|
6980
|
-
</td>
|
|
6981
|
-
</tr>
|
|
6982
|
-
}
|
|
6983
|
-
}
|
|
6984
|
-
</tbody>
|
|
6985
|
-
</table>
|
|
6986
|
-
</div>
|
|
6987
|
-
|
|
6988
|
-
@if (pageCount > 1) {
|
|
6989
|
-
<nav class="vp-table__pager" [attr.aria-label]="pagerLabel">
|
|
6990
|
-
@if (pageSizeOptions.length > 0) {
|
|
6991
|
-
<select
|
|
6992
|
-
class="vp-table__page-size"
|
|
6993
|
-
data-vp-table-page-size
|
|
6994
|
-
[attr.aria-label]="pageSizeLabel"
|
|
6995
|
-
[value]="pageSize"
|
|
6996
|
-
(change)="onPageSizeChange($event)">
|
|
6997
|
-
@for (size of pageSizeOptions; track size) {
|
|
6998
|
-
<option [value]="size" [selected]="size === pageSize">{{ size }}</option>
|
|
6999
|
-
}
|
|
7000
|
-
</select>
|
|
7001
|
-
}
|
|
7002
|
-
<button
|
|
7003
|
-
type="button"
|
|
7004
|
-
class="vp-table__page-btn"
|
|
7005
|
-
[disabled]="page <= 1"
|
|
7006
|
-
(click)="goToPage(page - 1)">{{ prevLabel }}</button>
|
|
7007
|
-
<button
|
|
7008
|
-
type="button"
|
|
7009
|
-
class="vp-table__page-btn"
|
|
7010
|
-
[disabled]="page >= pageCount"
|
|
7011
|
-
(click)="goToPage(page + 1)">{{ nextLabel }}</button>
|
|
7012
|
-
</nav>
|
|
7013
|
-
}
|
|
7014
|
-
}
|
|
7015
|
-
</div>
|
|
7016
|
-
`, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__views{margin-left:auto}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vp-table__range{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-table__table [data-align=end]{text-align:end}.vp-table__table [data-align=center]{text-align:center}.vp-table__table [data-mono=true]{font-family:var(--vp-font-mono);font-variant-numeric:tabular-nums}.vp-table__table [data-nowrap=true]{white-space:nowrap}.vp-table__table td[data-emphasis=true]{font-weight:var(--vp-weight-semibold)}.vp-table[data-header-style=caps] .vp-table__table th{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.06em;text-transform:uppercase}.vp-table[data-bare=true]{border:0;border-radius:0;background:transparent}@media(max-width:640px){.vp-table[data-stack=true] .vp-table__table thead{display:none}.vp-table[data-stack=true] .vp-table__table tr[data-vp-row]{display:block;padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-table[data-stack=true] .vp-table__table td{display:flex;justify-content:space-between;gap:var(--vp-space-3);border:0}.vp-table[data-stack=true] .vp-table__table td[data-label]:before{content:attr(data-label);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}}\n"] }]
|
|
6698
|
+
args: [{ selector: 'vp-data-table', standalone: true, imports: [NgTemplateOutlet, VpSavedViewsMenuComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6699
|
+
<div class="vp-table" [attr.data-header-style]="headerStyle === 'caps' ? 'caps' : null" [attr.data-bare]="bare ? 'true' : null" [attr.data-stack]="stack ? 'true' : null">
|
|
6700
|
+
@if (showMeta) {
|
|
6701
|
+
<div class="vp-table__meta">
|
|
6702
|
+
<span class="vp-table__total" data-vp-total>
|
|
6703
|
+
{{ total }} {{ totalLabel }}
|
|
6704
|
+
</span>
|
|
6705
|
+
@if (rangeLabel) {
|
|
6706
|
+
<span class="vp-table__range" data-vp-range>{{ rangeLabel }}</span>
|
|
6707
|
+
}
|
|
6708
|
+
@if (pageCount > 1) {
|
|
6709
|
+
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
6710
|
+
}
|
|
6711
|
+
|
|
6712
|
+
@if (searchable) {
|
|
6713
|
+
<input
|
|
6714
|
+
type="search"
|
|
6715
|
+
class="vp-table__search"
|
|
6716
|
+
data-vp-table-search
|
|
6717
|
+
[attr.aria-label]="searchLabel"
|
|
6718
|
+
[attr.placeholder]="searchPlaceholder"
|
|
6719
|
+
[value]="searchTerm"
|
|
6720
|
+
(input)="onSearch($event)" />
|
|
6721
|
+
}
|
|
6722
|
+
|
|
6723
|
+
@if (savedViewsKey) {
|
|
6724
|
+
<!--
|
|
6725
|
+
main-backend/015 T-08 (Q-5 b, 2026-11-13): prototip araç satırında yalnız bookmark ikonu.
|
|
6726
|
+
Seçim kutusu ve metinli sil düğmesi kalktı; ikon bir menü açar (kaydet, görünümler, sil).
|
|
6727
|
+
(Satır içi şablon: ters tırnak YAZMA.)
|
|
6728
|
+
-->
|
|
6729
|
+
<vp-saved-views-menu class="vp-table__views"
|
|
6730
|
+
[views]="savedViews"
|
|
6731
|
+
[active]="activeView"
|
|
6732
|
+
[saveLabel]="saveViewLabel"
|
|
6733
|
+
[deleteLabel]="deleteViewLabel"
|
|
6734
|
+
[menuLabel]="viewsLabel"
|
|
6735
|
+
[emptyLabel]="viewsEmptyLabel"
|
|
6736
|
+
(saveRequested)="saveViewPrompt()"
|
|
6737
|
+
(viewChosen)="applyView($event)"
|
|
6738
|
+
(deleteRequested)="deleteActiveView()" />
|
|
6739
|
+
}
|
|
6740
|
+
|
|
6741
|
+
@if (exportScopes.length > 0) {
|
|
6742
|
+
@for (scope of exportScopes; track scope) {
|
|
6743
|
+
<button
|
|
6744
|
+
type="button"
|
|
6745
|
+
class="vp-table__cols-btn"
|
|
6746
|
+
[attr.data-vp-export]="scope"
|
|
6747
|
+
(click)="requestExport(scope)">{{ exportLabel(scope) }}</button>
|
|
6748
|
+
}
|
|
6749
|
+
}
|
|
6750
|
+
|
|
6751
|
+
@if (columnPicker) {
|
|
6752
|
+
<button
|
|
6753
|
+
type="button"
|
|
6754
|
+
class="vp-table__cols-btn vp-table__icon-btn"
|
|
6755
|
+
data-vp-cols-toggle
|
|
6756
|
+
[attr.aria-label]="columnsLabel"
|
|
6757
|
+
[attr.title]="columnsLabel"
|
|
6758
|
+
[attr.aria-expanded]="pickerOpen"
|
|
6759
|
+
(click)="pickerOpen = !pickerOpen">
|
|
6760
|
+
<svg class="vp-table__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false"><use href="#vp-icon-columns"></use></svg>
|
|
6761
|
+
</button>
|
|
6762
|
+
}
|
|
6763
|
+
<ng-content select="[toolbar]" />
|
|
6764
|
+
</div>
|
|
6765
|
+
}
|
|
6766
|
+
|
|
6767
|
+
@if (selectable && selectedKeys.size > 0) {
|
|
6768
|
+
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
6769
|
+
<span data-vp-bulk-count>{{ selectedKeys.size }} {{ selectedLabel }}</span>
|
|
6770
|
+
|
|
6771
|
+
<div class="vp-table__bulk-actions">
|
|
6772
|
+
@for (action of bulkActions; track action.code) {
|
|
6773
|
+
<button
|
|
6774
|
+
type="button"
|
|
6775
|
+
[attr.data-vp-bulk-action]="action.code"
|
|
6776
|
+
[class.vp-table__bulk-btn--danger]="action.danger"
|
|
6777
|
+
class="vp-table__bulk-btn"
|
|
6778
|
+
(click)="requestBulkAction(action)">{{ action.label }}</button>
|
|
6779
|
+
}
|
|
6780
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-clear
|
|
6781
|
+
(click)="clearSelection()">{{ clearSelectionLabel }}</button>
|
|
6782
|
+
</div>
|
|
6783
|
+
</div>
|
|
6784
|
+
|
|
6785
|
+
@if (pendingAction) {
|
|
6786
|
+
<div class="vp-table__bulk-confirm" data-vp-bulk-confirm role="alertdialog"
|
|
6787
|
+
[attr.aria-label]="pendingAction.label">
|
|
6788
|
+
<span>{{ confirmPrefix }} {{ selectedKeys.size }} {{ selectedLabel }} — {{ pendingAction.label }}?</span>
|
|
6789
|
+
<span class="vp-table__bulk-actions">
|
|
6790
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-cancel
|
|
6791
|
+
(click)="pendingAction = null">{{ cancelLabel }}</button>
|
|
6792
|
+
<button type="button" class="vp-table__bulk-btn vp-table__bulk-btn--danger"
|
|
6793
|
+
data-vp-bulk-confirm-ok (click)="confirmBulkAction()">{{ confirmLabel }}</button>
|
|
6794
|
+
</span>
|
|
6795
|
+
</div>
|
|
6796
|
+
}
|
|
6797
|
+
}
|
|
6798
|
+
|
|
6799
|
+
@if (bulkResult) {
|
|
6800
|
+
<div class="vp-table__bulk-report" data-vp-bulk-report role="status" aria-live="polite">
|
|
6801
|
+
@if (bulkResult.succeeded.length > 0) {
|
|
6802
|
+
<p data-vp-bulk-ok>{{ bulkResult.succeeded.length }} {{ succeededLabel }}</p>
|
|
6803
|
+
}
|
|
6804
|
+
@if (bulkResult.failed.length > 0) {
|
|
6805
|
+
<p data-vp-bulk-failed>{{ bulkResult.failed.length }} {{ failedLabel }}</p>
|
|
6806
|
+
<ul class="vp-table__bulk-failures">
|
|
6807
|
+
@for (failure of bulkResult.failed; track failure.key) {
|
|
6808
|
+
<li [attr.data-vp-bulk-failure]="failure.key">
|
|
6809
|
+
<code>{{ failure.key }}</code> — {{ failure.reason }}
|
|
6810
|
+
</li>
|
|
6811
|
+
}
|
|
6812
|
+
</ul>
|
|
6813
|
+
}
|
|
6814
|
+
</div>
|
|
6815
|
+
}
|
|
6816
|
+
|
|
6817
|
+
@if (columnPicker && pickerOpen) {
|
|
6818
|
+
<div class="vp-table__cols" data-vp-cols role="group" [attr.aria-label]="columnsLabel">
|
|
6819
|
+
@for (col of orderedColumns; track col.field; let i = $index) {
|
|
6820
|
+
<div class="vp-table__cols-row" [attr.data-vp-cols-row]="col.field">
|
|
6821
|
+
<label class="vp-table__cols-label">
|
|
6822
|
+
<input
|
|
6823
|
+
type="checkbox"
|
|
6824
|
+
[attr.data-vp-col-toggle]="col.field"
|
|
6825
|
+
[checked]="isVisible(col.field)"
|
|
6826
|
+
[disabled]="isVisible(col.field) && visibleCount === 1"
|
|
6827
|
+
(change)="setColumnVisible(col.field, !isVisible(col.field))" />
|
|
6828
|
+
{{ col.header }}
|
|
6829
|
+
</label>
|
|
6830
|
+
<span class="vp-table__cols-move">
|
|
6831
|
+
<button
|
|
6832
|
+
type="button"
|
|
6833
|
+
[attr.data-vp-col-up]="col.field"
|
|
6834
|
+
[attr.aria-label]="moveUpLabel + ': ' + col.header"
|
|
6835
|
+
[disabled]="i === 0"
|
|
6836
|
+
(click)="moveColumn(col.field, -1)">↑</button>
|
|
6837
|
+
<button
|
|
6838
|
+
type="button"
|
|
6839
|
+
[attr.data-vp-col-down]="col.field"
|
|
6840
|
+
[attr.aria-label]="moveDownLabel + ': ' + col.header"
|
|
6841
|
+
[disabled]="i === orderedColumns.length - 1"
|
|
6842
|
+
(click)="moveColumn(col.field, 1)">↓</button>
|
|
6843
|
+
</span>
|
|
6844
|
+
</div>
|
|
6845
|
+
}
|
|
6846
|
+
</div>
|
|
6847
|
+
}
|
|
6848
|
+
|
|
6849
|
+
@if (error) {
|
|
6850
|
+
<div class="vp-table__error" data-vp-table-error role="alert">
|
|
6851
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6852
|
+
<use href="#vp-icon-error"></use>
|
|
6853
|
+
</svg>
|
|
6854
|
+
<p class="vp-table__state-text">{{ error }}</p>
|
|
6855
|
+
<button type="button" class="vp-table__retry" (click)="emitLoad()">{{ retryLabel }}</button>
|
|
6856
|
+
</div>
|
|
6857
|
+
} @else if (loading) {
|
|
6858
|
+
<div class="vp-table__skeleton" data-vp-table-skeleton aria-hidden="true">
|
|
6859
|
+
@for (i of skeletonRows; track i) {
|
|
6860
|
+
<span class="vp-table__skeleton-row"></span>
|
|
6861
|
+
}
|
|
6862
|
+
</div>
|
|
6863
|
+
<span class="vp-visually-hidden" role="status">{{ loadingLabel }}</span>
|
|
6864
|
+
} @else if (rows.length === 0) {
|
|
6865
|
+
@if (hasActiveFilter) {
|
|
6866
|
+
<div class="vp-table__empty" data-vp-table-empty-filtered role="status">
|
|
6867
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6868
|
+
<use href="#vp-icon-filter"></use>
|
|
6869
|
+
</svg>
|
|
6870
|
+
<p class="vp-table__state-text">{{ emptyFilteredLabel }}</p>
|
|
6871
|
+
<button type="button" class="vp-table__retry" (click)="clearFilters.emit()">
|
|
6872
|
+
{{ clearFiltersLabel }}
|
|
6873
|
+
</button>
|
|
6874
|
+
</div>
|
|
6875
|
+
} @else {
|
|
6876
|
+
<div class="vp-table__empty" data-vp-table-empty role="status">
|
|
6877
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
6878
|
+
<use href="#vp-icon-empty"></use>
|
|
6879
|
+
</svg>
|
|
6880
|
+
<p class="vp-table__state-text">{{ emptyLabel }}</p>
|
|
6881
|
+
</div>
|
|
6882
|
+
}
|
|
6883
|
+
} @else {
|
|
6884
|
+
<div class="vp-table__scroll" tabindex="0" role="region" [attr.aria-label]="caption || scrollLabel">
|
|
6885
|
+
<table class="vp-table__table" [attr.aria-label]="caption">
|
|
6886
|
+
<thead>
|
|
6887
|
+
<tr>
|
|
6888
|
+
@if (canExpand) {
|
|
6889
|
+
<th scope="col" class="vp-table__select-cell">
|
|
6890
|
+
<span class="vp-visually-hidden">{{ expandColumnLabel }}</span>
|
|
6891
|
+
</th>
|
|
6892
|
+
}
|
|
6893
|
+
@if (selectable) {
|
|
6894
|
+
<th scope="col" class="vp-table__select-cell">
|
|
6895
|
+
<input
|
|
6896
|
+
type="checkbox"
|
|
6897
|
+
data-vp-select-page
|
|
6898
|
+
[attr.aria-label]="selectPageLabel"
|
|
6899
|
+
[checked]="allOnPageSelected"
|
|
6900
|
+
[indeterminate]="someOnPageSelected"
|
|
6901
|
+
(change)="togglePageSelection()" />
|
|
6902
|
+
</th>
|
|
6903
|
+
}
|
|
6904
|
+
@for (col of visibleCols; track col.field) {
|
|
6905
|
+
<th
|
|
6906
|
+
scope="col"
|
|
6907
|
+
[attr.data-vp-col]="col.field"
|
|
6908
|
+
[attr.aria-sort]="ariaSort(col)"
|
|
6909
|
+
[attr.data-align]="col.align || null"
|
|
6910
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6911
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6912
|
+
[style.width]="col.width || null">
|
|
6913
|
+
@if (col.sortable) {
|
|
6914
|
+
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
6915
|
+
{{ col.header }}
|
|
6916
|
+
<span class="vp-table__sort-icon" aria-hidden="true">{{ sortGlyph(col.field) }}</span>
|
|
6917
|
+
</button>
|
|
6918
|
+
} @else {
|
|
6919
|
+
{{ col.header }}
|
|
6920
|
+
}
|
|
6921
|
+
</th>
|
|
6922
|
+
}
|
|
6923
|
+
@if (rowActions) {
|
|
6924
|
+
<th scope="col" class="vp-table__actions-header">{{ rowActionsHeader }}</th>
|
|
6925
|
+
}
|
|
6926
|
+
</tr>
|
|
6927
|
+
</thead>
|
|
6928
|
+
<tbody>
|
|
6929
|
+
@for (row of rows; track $index) {
|
|
6930
|
+
<tr data-vp-row [attr.aria-selected]="isSelectedKey(row) ? 'true' : null">
|
|
6931
|
+
@if (canExpand) {
|
|
6932
|
+
<td class="vp-table__select-cell">
|
|
6933
|
+
<button
|
|
6934
|
+
type="button"
|
|
6935
|
+
class="vp-table__expand"
|
|
6936
|
+
[attr.data-vp-expand]="keyOf(row)"
|
|
6937
|
+
[attr.aria-expanded]="isExpanded(row)"
|
|
6938
|
+
[attr.aria-label]="isExpanded(row) ? collapseLabel : expandLabel"
|
|
6939
|
+
(click)="toggleExpanded(row)">{{ isExpanded(row) ? '▾' : '▸' }}</button>
|
|
6940
|
+
</td>
|
|
6941
|
+
}
|
|
6942
|
+
@if (selectable) {
|
|
6943
|
+
<td class="vp-table__select-cell">
|
|
6944
|
+
<input
|
|
6945
|
+
type="checkbox"
|
|
6946
|
+
[attr.data-vp-select-row]="keyOf(row)"
|
|
6947
|
+
[attr.aria-label]="selectRowLabel"
|
|
6948
|
+
[checked]="isSelected(row)"
|
|
6949
|
+
(change)="toggleRow(row)" />
|
|
6950
|
+
</td>
|
|
6951
|
+
}
|
|
6952
|
+
@for (col of visibleCols; track col.field) {
|
|
6953
|
+
<td
|
|
6954
|
+
[attr.data-align]="col.align || null"
|
|
6955
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6956
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6957
|
+
[attr.data-emphasis]="col.emphasis ? 'true' : null"
|
|
6958
|
+
[attr.data-label]="stack ? col.header : null">
|
|
6959
|
+
@if (templateFor(col.field); as tpl) {
|
|
6960
|
+
<ng-container
|
|
6961
|
+
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
6962
|
+
} @else {
|
|
6963
|
+
{{ cell(row, col.field) }}
|
|
6964
|
+
}
|
|
6965
|
+
</td>
|
|
6966
|
+
}
|
|
6967
|
+
@if (rowActions) {
|
|
6968
|
+
<td data-vp-row-actions>
|
|
6969
|
+
<ng-container *ngTemplateOutlet="rowActions; context: { $implicit: row }" />
|
|
6970
|
+
</td>
|
|
6971
|
+
}
|
|
6972
|
+
</tr>
|
|
6973
|
+
|
|
6974
|
+
@if (canExpand && isExpanded(row)) {
|
|
6975
|
+
<tr class="vp-table__detail-row" [attr.data-vp-detail]="keyOf(row)">
|
|
6976
|
+
<td [attr.colspan]="columnSpan">
|
|
6977
|
+
@if (rowDetail) {
|
|
6978
|
+
<ng-container *ngTemplateOutlet="rowDetail; context: { $implicit: row }" />
|
|
6979
|
+
} @else {
|
|
6980
|
+
<span class="vp-table__detail-empty">{{ noDetailLabel }}</span>
|
|
6981
|
+
}
|
|
6982
|
+
</td>
|
|
6983
|
+
</tr>
|
|
6984
|
+
}
|
|
6985
|
+
}
|
|
6986
|
+
</tbody>
|
|
6987
|
+
</table>
|
|
6988
|
+
</div>
|
|
6989
|
+
|
|
6990
|
+
@if (pageCount > 1) {
|
|
6991
|
+
<nav class="vp-table__pager" [attr.aria-label]="pagerLabel">
|
|
6992
|
+
@if (pageSizeOptions.length > 0) {
|
|
6993
|
+
<select
|
|
6994
|
+
class="vp-table__page-size"
|
|
6995
|
+
data-vp-table-page-size
|
|
6996
|
+
[attr.aria-label]="pageSizeLabel"
|
|
6997
|
+
[value]="pageSize"
|
|
6998
|
+
(change)="onPageSizeChange($event)">
|
|
6999
|
+
@for (size of pageSizeOptions; track size) {
|
|
7000
|
+
<option [value]="size" [selected]="size === pageSize">{{ size }}</option>
|
|
7001
|
+
}
|
|
7002
|
+
</select>
|
|
7003
|
+
}
|
|
7004
|
+
<button
|
|
7005
|
+
type="button"
|
|
7006
|
+
class="vp-table__page-btn"
|
|
7007
|
+
[disabled]="page <= 1"
|
|
7008
|
+
(click)="goToPage(page - 1)">{{ prevLabel }}</button>
|
|
7009
|
+
<button
|
|
7010
|
+
type="button"
|
|
7011
|
+
class="vp-table__page-btn"
|
|
7012
|
+
[disabled]="page >= pageCount"
|
|
7013
|
+
(click)="goToPage(page + 1)">{{ nextLabel }}</button>
|
|
7014
|
+
</nav>
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
</div>
|
|
7018
|
+
`, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__scroll:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__views{margin-left:auto}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vp-table__range{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-table__table [data-align=end]{text-align:end}.vp-table__table [data-align=center]{text-align:center}.vp-table__table [data-mono=true]{font-family:var(--vp-font-mono);font-variant-numeric:tabular-nums}.vp-table__table [data-nowrap=true]{white-space:nowrap}.vp-table__table td[data-emphasis=true]{font-weight:var(--vp-weight-semibold)}.vp-table[data-header-style=caps] .vp-table__table th{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.06em;text-transform:uppercase}.vp-table[data-bare=true]{border:0;border-radius:0;background:transparent}@media(max-width:640px){.vp-table[data-stack=true] .vp-table__table thead{display:none}.vp-table[data-stack=true] .vp-table__table tr[data-vp-row]{display:block;padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-table[data-stack=true] .vp-table__table td{display:flex;justify-content:space-between;gap:var(--vp-space-3);border:0}.vp-table[data-stack=true] .vp-table__table td[data-label]:before{content:attr(data-label);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}}\n"] }]
|
|
7017
7019
|
}], propDecorators: { columns: [{
|
|
7018
7020
|
type: Input,
|
|
7019
7021
|
args: [{ required: true }]
|
|
@@ -7033,6 +7035,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7033
7035
|
type: Input
|
|
7034
7036
|
}], caption: [{
|
|
7035
7037
|
type: Input
|
|
7038
|
+
}], scrollLabel: [{
|
|
7039
|
+
type: Input
|
|
7036
7040
|
}], totalLabel: [{
|
|
7037
7041
|
type: Input
|
|
7038
7042
|
}], headerStyle: [{
|