@pumpkin-tech/pumpkin-tech-ng 0.2.18 → 0.2.20
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';
|
|
@@ -4295,9 +4295,9 @@ class InputCurrencyComponent extends BaseField {
|
|
|
4295
4295
|
return this.getIntlFormatter(precision).format(value);
|
|
4296
4296
|
}
|
|
4297
4297
|
onInput(raw) {
|
|
4298
|
-
|
|
4299
|
-
const parsed = this.parseToNumber(raw);
|
|
4298
|
+
const parsed = this.parseInputAsCurrencyValue(raw);
|
|
4300
4299
|
this._val = parsed;
|
|
4300
|
+
this.displayValue = this.formatNumber(this._val);
|
|
4301
4301
|
this.onChange(parsed);
|
|
4302
4302
|
this.valueChange.emit(parsed);
|
|
4303
4303
|
}
|
|
@@ -4407,6 +4407,25 @@ class InputCurrencyComponent extends BaseField {
|
|
|
4407
4407
|
return Number.NaN;
|
|
4408
4408
|
return sign * Number(integerOnly);
|
|
4409
4409
|
}
|
|
4410
|
+
parseInputAsCurrencyValue(value) {
|
|
4411
|
+
const nullableFallback = this.resolvedOptions.nullable === false ? 0 : null;
|
|
4412
|
+
const precision = Math.max(0, this.resolvedOptions.precision ?? 2);
|
|
4413
|
+
const normalized = this.normalizeInput(value);
|
|
4414
|
+
const sign = normalized.includes('-') ? -1 : 1;
|
|
4415
|
+
const digits = normalized.replace(/[^\d]/g, '');
|
|
4416
|
+
if (!digits)
|
|
4417
|
+
return nullableFallback;
|
|
4418
|
+
const factor = Math.pow(10, precision);
|
|
4419
|
+
const parsed = precision > 0 ? Number(digits) / factor : Number(digits);
|
|
4420
|
+
const valueAsNumber = sign * parsed;
|
|
4421
|
+
if (!Number.isFinite(valueAsNumber))
|
|
4422
|
+
return nullableFallback;
|
|
4423
|
+
if (!this.resolvedOptions.allowNegative && valueAsNumber < 0)
|
|
4424
|
+
return nullableFallback;
|
|
4425
|
+
if (!this.resolvedOptions.allowZero && valueAsNumber === 0)
|
|
4426
|
+
return nullableFallback;
|
|
4427
|
+
return valueAsNumber;
|
|
4428
|
+
}
|
|
4410
4429
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4411
4430
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputCurrencyComponent, isStandalone: true, selector: "ptech-input-currency", inputs: { options: "options" }, outputs: { valueChange: "valueChange" }, providers: [{
|
|
4412
4431
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4415,7 +4434,7 @@ class InputCurrencyComponent extends BaseField {
|
|
|
4415
4434
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
4416
4435
|
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4417
4436
|
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4418
|
-
<mat-label>
|
|
4437
|
+
<mat-label *ngIf="label">
|
|
4419
4438
|
{{ label }}
|
|
4420
4439
|
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4421
4440
|
</mat-label>
|
|
@@ -4452,7 +4471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4452
4471
|
args: [{ selector: 'ptech-input-currency', imports: [CoreMaterialModule], template: `
|
|
4453
4472
|
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4454
4473
|
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4455
|
-
<mat-label>
|
|
4474
|
+
<mat-label *ngIf="label">
|
|
4456
4475
|
{{ label }}
|
|
4457
4476
|
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4458
4477
|
</mat-label>
|
|
@@ -6148,6 +6167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6148
6167
|
}] } });
|
|
6149
6168
|
|
|
6150
6169
|
class TableComponent {
|
|
6170
|
+
iterableDiffers;
|
|
6151
6171
|
title = '';
|
|
6152
6172
|
loading = false;
|
|
6153
6173
|
data = [];
|
|
@@ -6176,10 +6196,16 @@ class TableComponent {
|
|
|
6176
6196
|
reorder = new EventEmitter();
|
|
6177
6197
|
toggleChange = new EventEmitter();
|
|
6178
6198
|
displayedColumns = [];
|
|
6199
|
+
renderData = [];
|
|
6179
6200
|
selection = new SelectionModel(this.selectMultipleRow, []);
|
|
6180
6201
|
selectedIdSet = new Set();
|
|
6202
|
+
dataDiffer;
|
|
6203
|
+
matTable;
|
|
6181
6204
|
cellTemplates;
|
|
6182
6205
|
cellTemplateMap = new Map();
|
|
6206
|
+
constructor(iterableDiffers) {
|
|
6207
|
+
this.iterableDiffers = iterableDiffers;
|
|
6208
|
+
}
|
|
6183
6209
|
ngAfterContentInit() {
|
|
6184
6210
|
this.rebuildTemplateMap();
|
|
6185
6211
|
// se os templates mudarem dinamicamente (raro), sincroniza:
|
|
@@ -6211,9 +6237,13 @@ class TableComponent {
|
|
|
6211
6237
|
if (this.actions?.length)
|
|
6212
6238
|
cols.push('__actions');
|
|
6213
6239
|
this.displayedColumns = cols;
|
|
6240
|
+
if (changes['data']) {
|
|
6241
|
+
this.dataDiffer = this.iterableDiffers.find(this.data || []).create();
|
|
6242
|
+
this.syncRenderData();
|
|
6243
|
+
}
|
|
6214
6244
|
// ressincroniza selection da página
|
|
6215
6245
|
this.selection = new SelectionModel(this.selectMultipleRow, []);
|
|
6216
|
-
for (const row of this.
|
|
6246
|
+
for (const row of this.renderData || []) {
|
|
6217
6247
|
const id = this.getRowId(row);
|
|
6218
6248
|
if (this.selectedIdSet.has(id)) {
|
|
6219
6249
|
this.selection.select(row);
|
|
@@ -6222,16 +6252,31 @@ class TableComponent {
|
|
|
6222
6252
|
// emite estado consolidado
|
|
6223
6253
|
this.emitSelected();
|
|
6224
6254
|
}
|
|
6255
|
+
ngDoCheck() {
|
|
6256
|
+
if (!this.dataDiffer) {
|
|
6257
|
+
this.dataDiffer = this.iterableDiffers.find(this.data || []).create();
|
|
6258
|
+
this.syncRenderData();
|
|
6259
|
+
return;
|
|
6260
|
+
}
|
|
6261
|
+
const changes = this.dataDiffer.diff(this.data || []);
|
|
6262
|
+
if (changes) {
|
|
6263
|
+
this.syncRenderData();
|
|
6264
|
+
this.matTable?.renderRows();
|
|
6265
|
+
}
|
|
6266
|
+
}
|
|
6267
|
+
syncRenderData() {
|
|
6268
|
+
this.renderData = [...(this.data || [])];
|
|
6269
|
+
}
|
|
6225
6270
|
// selecionar/deselecionar todos da PÁGINA atual
|
|
6226
6271
|
toggleAllRows() {
|
|
6227
|
-
const pageAllSelected = (this.
|
|
6272
|
+
const pageAllSelected = (this.renderData || []).every(r => this.selectedIdSet.has(this.getRowId(r)));
|
|
6228
6273
|
if (pageAllSelected) {
|
|
6229
|
-
for (const r of this.
|
|
6274
|
+
for (const r of this.renderData || [])
|
|
6230
6275
|
this.selectedIdSet.delete(this.getRowId(r));
|
|
6231
6276
|
this.selection.clear();
|
|
6232
6277
|
}
|
|
6233
6278
|
else {
|
|
6234
|
-
for (const r of this.
|
|
6279
|
+
for (const r of this.renderData || []) {
|
|
6235
6280
|
const id = this.getRowId(r);
|
|
6236
6281
|
if (!this.selectedIdSet.has(id)) {
|
|
6237
6282
|
this.selectedIdSet.add(id);
|
|
@@ -6244,7 +6289,7 @@ class TableComponent {
|
|
|
6244
6289
|
/** Verifica se todas estão selecionadas */
|
|
6245
6290
|
isAllSelected() {
|
|
6246
6291
|
// “todos da página atual”
|
|
6247
|
-
return !!this.
|
|
6292
|
+
return !!this.renderData?.length && (this.renderData || []).every(r => this.selectedIdSet.has(this.getRowId(r)));
|
|
6248
6293
|
}
|
|
6249
6294
|
// opcional: API para limpar seleção externamente
|
|
6250
6295
|
clearSelection() {
|
|
@@ -6275,7 +6320,7 @@ class TableComponent {
|
|
|
6275
6320
|
const selectedRows = [];
|
|
6276
6321
|
const selectedIds = Array.from(this.selectedIdSet);
|
|
6277
6322
|
// tenta reconstruir as linhas selecionadas (apenas as presentes na página atual)
|
|
6278
|
-
for (const row of this.
|
|
6323
|
+
for (const row of this.renderData || []) {
|
|
6279
6324
|
const id = this.getRowId(row);
|
|
6280
6325
|
if (this.selectedIdSet.has(id))
|
|
6281
6326
|
selectedRows.push(row);
|
|
@@ -6299,18 +6344,27 @@ class TableComponent {
|
|
|
6299
6344
|
this.page.emit({ pageIndex: ev.pageIndex, pageSize: ev.pageSize });
|
|
6300
6345
|
}
|
|
6301
6346
|
onDrop(event) {
|
|
6302
|
-
if (!this.reorderable || !Array.isArray(this.
|
|
6347
|
+
if (!this.reorderable || !Array.isArray(this.renderData))
|
|
6303
6348
|
return;
|
|
6304
6349
|
if (event.previousIndex === event.currentIndex)
|
|
6305
6350
|
return;
|
|
6306
|
-
moveItemInArray(this.
|
|
6351
|
+
moveItemInArray(this.renderData, event.previousIndex, event.currentIndex);
|
|
6307
6352
|
this.reorder.emit({
|
|
6308
6353
|
previousIndex: event.previousIndex,
|
|
6309
6354
|
currentIndex: event.currentIndex,
|
|
6310
|
-
item: this.
|
|
6311
|
-
data: [...this.
|
|
6355
|
+
item: this.renderData[event.currentIndex],
|
|
6356
|
+
data: [...this.renderData],
|
|
6312
6357
|
});
|
|
6313
6358
|
}
|
|
6359
|
+
cellTemplateContext(row, col, rowIndex) {
|
|
6360
|
+
return {
|
|
6361
|
+
$implicit: row,
|
|
6362
|
+
row,
|
|
6363
|
+
column: col,
|
|
6364
|
+
value: this.renderCell(row, col),
|
|
6365
|
+
index: rowIndex,
|
|
6366
|
+
};
|
|
6367
|
+
}
|
|
6314
6368
|
renderCell(row, col) {
|
|
6315
6369
|
if (col?.cell)
|
|
6316
6370
|
return col.cell(row);
|
|
@@ -6398,8 +6452,8 @@ class TableComponent {
|
|
|
6398
6452
|
value: !!value,
|
|
6399
6453
|
});
|
|
6400
6454
|
}
|
|
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: `
|
|
6455
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
6456
|
+
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
6457
|
<div class="table-container mat-elevation-z8">
|
|
6404
6458
|
<div class="header-row" *ngIf="title">
|
|
6405
6459
|
<h3>{{ title }}</h3>
|
|
@@ -6421,9 +6475,9 @@ class TableComponent {
|
|
|
6421
6475
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
6422
6476
|
<table
|
|
6423
6477
|
mat-table
|
|
6424
|
-
[dataSource]="
|
|
6478
|
+
[dataSource]="renderData"
|
|
6425
6479
|
cdkDropList
|
|
6426
|
-
[cdkDropListData]="
|
|
6480
|
+
[cdkDropListData]="renderData"
|
|
6427
6481
|
[cdkDropListDisabled]="!reorderable"
|
|
6428
6482
|
(cdkDropListDropped)="onDrop($event)"
|
|
6429
6483
|
>
|
|
@@ -6490,7 +6544,7 @@ class TableComponent {
|
|
|
6490
6544
|
<!-- se existir template customizado para a coluna, usa ele -->
|
|
6491
6545
|
<ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
|
|
6492
6546
|
<ng-container
|
|
6493
|
-
*ngTemplateOutlet="tpl; context:
|
|
6547
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
|
|
6494
6548
|
></ng-container>
|
|
6495
6549
|
</ng-container>
|
|
6496
6550
|
|
|
@@ -6590,7 +6644,7 @@ class TableComponent {
|
|
|
6590
6644
|
class="cards-container hide-on-desktop"
|
|
6591
6645
|
>
|
|
6592
6646
|
<div
|
|
6593
|
-
|
|
6647
|
+
*ngFor="let row of renderData; let rowIndex = index"
|
|
6594
6648
|
class="card mat-elevation-z8"
|
|
6595
6649
|
[class.selected]="isSelected(row)"
|
|
6596
6650
|
>
|
|
@@ -6627,7 +6681,7 @@ class TableComponent {
|
|
|
6627
6681
|
<div>
|
|
6628
6682
|
<strong>{{ c.header }}:</strong>
|
|
6629
6683
|
<ng-container
|
|
6630
|
-
*ngTemplateOutlet="tpl; context:
|
|
6684
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
|
|
6631
6685
|
></ng-container>
|
|
6632
6686
|
</div>
|
|
6633
6687
|
</ng-container>
|
|
@@ -6728,7 +6782,7 @@ class TableComponent {
|
|
|
6728
6782
|
>
|
|
6729
6783
|
</mat-paginator>
|
|
6730
6784
|
|
|
6731
|
-
<div *ngIf="!
|
|
6785
|
+
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
|
|
6732
6786
|
Sem dados.
|
|
6733
6787
|
</div>
|
|
6734
6788
|
</ng-container>
|
|
@@ -6763,9 +6817,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6763
6817
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
6764
6818
|
<table
|
|
6765
6819
|
mat-table
|
|
6766
|
-
[dataSource]="
|
|
6820
|
+
[dataSource]="renderData"
|
|
6767
6821
|
cdkDropList
|
|
6768
|
-
[cdkDropListData]="
|
|
6822
|
+
[cdkDropListData]="renderData"
|
|
6769
6823
|
[cdkDropListDisabled]="!reorderable"
|
|
6770
6824
|
(cdkDropListDropped)="onDrop($event)"
|
|
6771
6825
|
>
|
|
@@ -6832,7 +6886,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6832
6886
|
<!-- se existir template customizado para a coluna, usa ele -->
|
|
6833
6887
|
<ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
|
|
6834
6888
|
<ng-container
|
|
6835
|
-
*ngTemplateOutlet="tpl; context:
|
|
6889
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
|
|
6836
6890
|
></ng-container>
|
|
6837
6891
|
</ng-container>
|
|
6838
6892
|
|
|
@@ -6932,7 +6986,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6932
6986
|
class="cards-container hide-on-desktop"
|
|
6933
6987
|
>
|
|
6934
6988
|
<div
|
|
6935
|
-
|
|
6989
|
+
*ngFor="let row of renderData; let rowIndex = index"
|
|
6936
6990
|
class="card mat-elevation-z8"
|
|
6937
6991
|
[class.selected]="isSelected(row)"
|
|
6938
6992
|
>
|
|
@@ -6969,7 +7023,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6969
7023
|
<div>
|
|
6970
7024
|
<strong>{{ c.header }}:</strong>
|
|
6971
7025
|
<ng-container
|
|
6972
|
-
*ngTemplateOutlet="tpl; context:
|
|
7026
|
+
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
|
|
6973
7027
|
></ng-container>
|
|
6974
7028
|
</div>
|
|
6975
7029
|
</ng-container>
|
|
@@ -7070,7 +7124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7070
7124
|
>
|
|
7071
7125
|
</mat-paginator>
|
|
7072
7126
|
|
|
7073
|
-
<div *ngIf="!
|
|
7127
|
+
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
|
|
7074
7128
|
Sem dados.
|
|
7075
7129
|
</div>
|
|
7076
7130
|
</ng-container>
|
|
@@ -7080,7 +7134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7080
7134
|
</ng-template>
|
|
7081
7135
|
</div>
|
|
7082
7136
|
`, 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: [{
|
|
7137
|
+
}], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
|
|
7084
7138
|
type: Input
|
|
7085
7139
|
}], loading: [{
|
|
7086
7140
|
type: Input
|
|
@@ -7128,6 +7182,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7128
7182
|
type: Output
|
|
7129
7183
|
}], toggleChange: [{
|
|
7130
7184
|
type: Output
|
|
7185
|
+
}], matTable: [{
|
|
7186
|
+
type: ViewChild,
|
|
7187
|
+
args: [MatTable]
|
|
7131
7188
|
}], cellTemplates: [{
|
|
7132
7189
|
type: ContentChildren,
|
|
7133
7190
|
args: [TableCellDirective]
|