@pumpkin-tech/pumpkin-tech-ng 0.2.18 → 0.2.19
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.
|
@@ -26,7 +26,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
26
26
|
import * as i4 from '@angular/material/input';
|
|
27
27
|
import { MatInputModule } from '@angular/material/input';
|
|
28
28
|
import * as i3$5 from '@angular/material/table';
|
|
29
|
-
import { MatTableModule } from '@angular/material/table';
|
|
29
|
+
import { MatTableModule, MatTable } from '@angular/material/table';
|
|
30
30
|
import * as i4$3 from '@angular/material/paginator';
|
|
31
31
|
import { MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
32
32
|
import { MatSortModule } from '@angular/material/sort';
|
|
@@ -6148,6 +6148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6148
6148
|
}] } });
|
|
6149
6149
|
|
|
6150
6150
|
class TableComponent {
|
|
6151
|
+
iterableDiffers;
|
|
6151
6152
|
title = '';
|
|
6152
6153
|
loading = false;
|
|
6153
6154
|
data = [];
|
|
@@ -6176,10 +6177,16 @@ class TableComponent {
|
|
|
6176
6177
|
reorder = new EventEmitter();
|
|
6177
6178
|
toggleChange = new EventEmitter();
|
|
6178
6179
|
displayedColumns = [];
|
|
6180
|
+
renderData = [];
|
|
6179
6181
|
selection = new SelectionModel(this.selectMultipleRow, []);
|
|
6180
6182
|
selectedIdSet = new Set();
|
|
6183
|
+
dataDiffer;
|
|
6184
|
+
matTable;
|
|
6181
6185
|
cellTemplates;
|
|
6182
6186
|
cellTemplateMap = new Map();
|
|
6187
|
+
constructor(iterableDiffers) {
|
|
6188
|
+
this.iterableDiffers = iterableDiffers;
|
|
6189
|
+
}
|
|
6183
6190
|
ngAfterContentInit() {
|
|
6184
6191
|
this.rebuildTemplateMap();
|
|
6185
6192
|
// se os templates mudarem dinamicamente (raro), sincroniza:
|
|
@@ -6211,9 +6218,13 @@ class TableComponent {
|
|
|
6211
6218
|
if (this.actions?.length)
|
|
6212
6219
|
cols.push('__actions');
|
|
6213
6220
|
this.displayedColumns = cols;
|
|
6221
|
+
if (changes['data']) {
|
|
6222
|
+
this.dataDiffer = this.iterableDiffers.find(this.data || []).create();
|
|
6223
|
+
this.syncRenderData();
|
|
6224
|
+
}
|
|
6214
6225
|
// ressincroniza selection da página
|
|
6215
6226
|
this.selection = new SelectionModel(this.selectMultipleRow, []);
|
|
6216
|
-
for (const row of this.
|
|
6227
|
+
for (const row of this.renderData || []) {
|
|
6217
6228
|
const id = this.getRowId(row);
|
|
6218
6229
|
if (this.selectedIdSet.has(id)) {
|
|
6219
6230
|
this.selection.select(row);
|
|
@@ -6222,16 +6233,31 @@ class TableComponent {
|
|
|
6222
6233
|
// emite estado consolidado
|
|
6223
6234
|
this.emitSelected();
|
|
6224
6235
|
}
|
|
6236
|
+
ngDoCheck() {
|
|
6237
|
+
if (!this.dataDiffer) {
|
|
6238
|
+
this.dataDiffer = this.iterableDiffers.find(this.data || []).create();
|
|
6239
|
+
this.syncRenderData();
|
|
6240
|
+
return;
|
|
6241
|
+
}
|
|
6242
|
+
const changes = this.dataDiffer.diff(this.data || []);
|
|
6243
|
+
if (changes) {
|
|
6244
|
+
this.syncRenderData();
|
|
6245
|
+
this.matTable?.renderRows();
|
|
6246
|
+
}
|
|
6247
|
+
}
|
|
6248
|
+
syncRenderData() {
|
|
6249
|
+
this.renderData = [...(this.data || [])];
|
|
6250
|
+
}
|
|
6225
6251
|
// selecionar/deselecionar todos da PÁGINA atual
|
|
6226
6252
|
toggleAllRows() {
|
|
6227
|
-
const pageAllSelected = (this.
|
|
6253
|
+
const pageAllSelected = (this.renderData || []).every(r => this.selectedIdSet.has(this.getRowId(r)));
|
|
6228
6254
|
if (pageAllSelected) {
|
|
6229
|
-
for (const r of this.
|
|
6255
|
+
for (const r of this.renderData || [])
|
|
6230
6256
|
this.selectedIdSet.delete(this.getRowId(r));
|
|
6231
6257
|
this.selection.clear();
|
|
6232
6258
|
}
|
|
6233
6259
|
else {
|
|
6234
|
-
for (const r of this.
|
|
6260
|
+
for (const r of this.renderData || []) {
|
|
6235
6261
|
const id = this.getRowId(r);
|
|
6236
6262
|
if (!this.selectedIdSet.has(id)) {
|
|
6237
6263
|
this.selectedIdSet.add(id);
|
|
@@ -6244,7 +6270,7 @@ class TableComponent {
|
|
|
6244
6270
|
/** Verifica se todas estão selecionadas */
|
|
6245
6271
|
isAllSelected() {
|
|
6246
6272
|
// “todos da página atual”
|
|
6247
|
-
return !!this.
|
|
6273
|
+
return !!this.renderData?.length && (this.renderData || []).every(r => this.selectedIdSet.has(this.getRowId(r)));
|
|
6248
6274
|
}
|
|
6249
6275
|
// opcional: API para limpar seleção externamente
|
|
6250
6276
|
clearSelection() {
|
|
@@ -6275,7 +6301,7 @@ class TableComponent {
|
|
|
6275
6301
|
const selectedRows = [];
|
|
6276
6302
|
const selectedIds = Array.from(this.selectedIdSet);
|
|
6277
6303
|
// tenta reconstruir as linhas selecionadas (apenas as presentes na página atual)
|
|
6278
|
-
for (const row of this.
|
|
6304
|
+
for (const row of this.renderData || []) {
|
|
6279
6305
|
const id = this.getRowId(row);
|
|
6280
6306
|
if (this.selectedIdSet.has(id))
|
|
6281
6307
|
selectedRows.push(row);
|
|
@@ -6299,18 +6325,27 @@ class TableComponent {
|
|
|
6299
6325
|
this.page.emit({ pageIndex: ev.pageIndex, pageSize: ev.pageSize });
|
|
6300
6326
|
}
|
|
6301
6327
|
onDrop(event) {
|
|
6302
|
-
if (!this.reorderable || !Array.isArray(this.
|
|
6328
|
+
if (!this.reorderable || !Array.isArray(this.renderData))
|
|
6303
6329
|
return;
|
|
6304
6330
|
if (event.previousIndex === event.currentIndex)
|
|
6305
6331
|
return;
|
|
6306
|
-
moveItemInArray(this.
|
|
6332
|
+
moveItemInArray(this.renderData, event.previousIndex, event.currentIndex);
|
|
6307
6333
|
this.reorder.emit({
|
|
6308
6334
|
previousIndex: event.previousIndex,
|
|
6309
6335
|
currentIndex: event.currentIndex,
|
|
6310
|
-
item: this.
|
|
6311
|
-
data: [...this.
|
|
6336
|
+
item: this.renderData[event.currentIndex],
|
|
6337
|
+
data: [...this.renderData],
|
|
6312
6338
|
});
|
|
6313
6339
|
}
|
|
6340
|
+
cellTemplateContext(row, col, rowIndex) {
|
|
6341
|
+
return {
|
|
6342
|
+
$implicit: row,
|
|
6343
|
+
row,
|
|
6344
|
+
column: col,
|
|
6345
|
+
value: this.renderCell(row, col),
|
|
6346
|
+
index: rowIndex,
|
|
6347
|
+
};
|
|
6348
|
+
}
|
|
6314
6349
|
renderCell(row, col) {
|
|
6315
6350
|
if (col?.cell)
|
|
6316
6351
|
return col.cell(row);
|
|
@@ -6398,8 +6433,8 @@ class TableComponent {
|
|
|
6398
6433
|
value: !!value,
|
|
6399
6434
|
});
|
|
6400
6435
|
}
|
|
6401
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6402
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", columns: "columns", actions: "actions", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "cellTemplates", predicate: TableCellDirective }], usesOnChanges: true, ngImport: i0, template: `
|
|
6436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
6437
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", columns: "columns", actions: "actions", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
6403
6438
|
<div class="table-container mat-elevation-z8">
|
|
6404
6439
|
<div class="header-row" *ngIf="title">
|
|
6405
6440
|
<h3>{{ title }}</h3>
|
|
@@ -6421,9 +6456,9 @@ class TableComponent {
|
|
|
6421
6456
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
6422
6457
|
<table
|
|
6423
6458
|
mat-table
|
|
6424
|
-
[dataSource]="
|
|
6459
|
+
[dataSource]="renderData"
|
|
6425
6460
|
cdkDropList
|
|
6426
|
-
[cdkDropListData]="
|
|
6461
|
+
[cdkDropListData]="renderData"
|
|
6427
6462
|
[cdkDropListDisabled]="!reorderable"
|
|
6428
6463
|
(cdkDropListDropped)="onDrop($event)"
|
|
6429
6464
|
>
|
|
@@ -6490,7 +6525,7 @@ class TableComponent {
|
|
|
6490
6525
|
<!-- se existir template customizado para a coluna, usa ele -->
|
|
6491
6526
|
<ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
|
|
6492
6527
|
<ng-container
|
|
6493
|
-
*ngTemplateOutlet="tpl; context:
|
|
6528
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
|
|
6494
6529
|
></ng-container>
|
|
6495
6530
|
</ng-container>
|
|
6496
6531
|
|
|
@@ -6590,7 +6625,7 @@ class TableComponent {
|
|
|
6590
6625
|
class="cards-container hide-on-desktop"
|
|
6591
6626
|
>
|
|
6592
6627
|
<div
|
|
6593
|
-
|
|
6628
|
+
*ngFor="let row of renderData; let rowIndex = index"
|
|
6594
6629
|
class="card mat-elevation-z8"
|
|
6595
6630
|
[class.selected]="isSelected(row)"
|
|
6596
6631
|
>
|
|
@@ -6627,7 +6662,7 @@ class TableComponent {
|
|
|
6627
6662
|
<div>
|
|
6628
6663
|
<strong>{{ c.header }}:</strong>
|
|
6629
6664
|
<ng-container
|
|
6630
|
-
*ngTemplateOutlet="tpl; context:
|
|
6665
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
|
|
6631
6666
|
></ng-container>
|
|
6632
6667
|
</div>
|
|
6633
6668
|
</ng-container>
|
|
@@ -6728,7 +6763,7 @@ class TableComponent {
|
|
|
6728
6763
|
>
|
|
6729
6764
|
</mat-paginator>
|
|
6730
6765
|
|
|
6731
|
-
<div *ngIf="!
|
|
6766
|
+
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
|
|
6732
6767
|
Sem dados.
|
|
6733
6768
|
</div>
|
|
6734
6769
|
</ng-container>
|
|
@@ -6763,9 +6798,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6763
6798
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
6764
6799
|
<table
|
|
6765
6800
|
mat-table
|
|
6766
|
-
[dataSource]="
|
|
6801
|
+
[dataSource]="renderData"
|
|
6767
6802
|
cdkDropList
|
|
6768
|
-
[cdkDropListData]="
|
|
6803
|
+
[cdkDropListData]="renderData"
|
|
6769
6804
|
[cdkDropListDisabled]="!reorderable"
|
|
6770
6805
|
(cdkDropListDropped)="onDrop($event)"
|
|
6771
6806
|
>
|
|
@@ -6832,7 +6867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6832
6867
|
<!-- se existir template customizado para a coluna, usa ele -->
|
|
6833
6868
|
<ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
|
|
6834
6869
|
<ng-container
|
|
6835
|
-
*ngTemplateOutlet="tpl; context:
|
|
6870
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
|
|
6836
6871
|
></ng-container>
|
|
6837
6872
|
</ng-container>
|
|
6838
6873
|
|
|
@@ -6932,7 +6967,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6932
6967
|
class="cards-container hide-on-desktop"
|
|
6933
6968
|
>
|
|
6934
6969
|
<div
|
|
6935
|
-
|
|
6970
|
+
*ngFor="let row of renderData; let rowIndex = index"
|
|
6936
6971
|
class="card mat-elevation-z8"
|
|
6937
6972
|
[class.selected]="isSelected(row)"
|
|
6938
6973
|
>
|
|
@@ -6969,7 +7004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6969
7004
|
<div>
|
|
6970
7005
|
<strong>{{ c.header }}:</strong>
|
|
6971
7006
|
<ng-container
|
|
6972
|
-
*ngTemplateOutlet="tpl; context:
|
|
7007
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
|
|
6973
7008
|
></ng-container>
|
|
6974
7009
|
</div>
|
|
6975
7010
|
</ng-container>
|
|
@@ -7070,7 +7105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7070
7105
|
>
|
|
7071
7106
|
</mat-paginator>
|
|
7072
7107
|
|
|
7073
|
-
<div *ngIf="!
|
|
7108
|
+
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
|
|
7074
7109
|
Sem dados.
|
|
7075
7110
|
</div>
|
|
7076
7111
|
</ng-container>
|
|
@@ -7080,7 +7115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7080
7115
|
</ng-template>
|
|
7081
7116
|
</div>
|
|
7082
7117
|
`, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
|
|
7083
|
-
}], propDecorators: { title: [{
|
|
7118
|
+
}], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
|
|
7084
7119
|
type: Input
|
|
7085
7120
|
}], loading: [{
|
|
7086
7121
|
type: Input
|
|
@@ -7128,6 +7163,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7128
7163
|
type: Output
|
|
7129
7164
|
}], toggleChange: [{
|
|
7130
7165
|
type: Output
|
|
7166
|
+
}], matTable: [{
|
|
7167
|
+
type: ViewChild,
|
|
7168
|
+
args: [MatTable]
|
|
7131
7169
|
}], cellTemplates: [{
|
|
7132
7170
|
type: ContentChildren,
|
|
7133
7171
|
args: [TableCellDirective]
|