@kuzntsv/uikit 1.0.79 → 1.0.80

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.
@@ -41,7 +41,7 @@ import { MatPaginator, MatPaginatorModule } from "@angular/material/paginator";
41
41
  import * as i2 from "@angular/material/sort";
42
42
  import { MatSort, MatSortModule } from "@angular/material/sort";
43
43
  import * as i1 from "@angular/material/table";
44
- import { MatTableDataSource, MatTableModule } from "@angular/material/table";
44
+ import { MatTable, MatTableDataSource, MatTableModule } from "@angular/material/table";
45
45
  var LoginFormComponent = class LoginFormComponent {
46
46
  pending = input(false, ...ngDevMode ? [{ debugName: "pending" }] : /* istanbul ignore next */ []);
47
47
  errorMessage = input("", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
@@ -4431,6 +4431,8 @@ var TableComponent = class TableComponent {
4431
4431
  sortStateChange = output();
4432
4432
  selectionChange = output();
4433
4433
  rowDoubleClicked = output();
4434
+ cdr = inject(ChangeDetectorRef);
4435
+ matTable = viewChild(MatTable, ...ngDevMode ? [{ debugName: "matTable" }] : /* istanbul ignore next */ []);
4434
4436
  sort = viewChild(MatSort, ...ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []);
4435
4437
  paginator = viewChild(MatPaginator, ...ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []);
4436
4438
  contextMenu = viewChild(MatMenuTrigger, ...ngDevMode ? [{ debugName: "contextMenu" }] : /* istanbul ignore next */ []);
@@ -4461,6 +4463,9 @@ var TableComponent = class TableComponent {
4461
4463
  constructor() {
4462
4464
  effect(() => {
4463
4465
  this.dataSource.data = [...this.data()];
4466
+ const tableRef = this.matTable();
4467
+ if (tableRef) tableRef.renderRows();
4468
+ this.cdr.markForCheck();
4464
4469
  if (this.selection) {
4465
4470
  const selected = this.selection.selected;
4466
4471
  this.selection.clear();
@@ -4611,6 +4616,13 @@ var TableComponent = class TableComponent {
4611
4616
  rowDoubleClicked: "rowDoubleClicked"
4612
4617
  },
4613
4618
  viewQueries: [
4619
+ {
4620
+ propertyName: "matTable",
4621
+ first: true,
4622
+ predicate: MatTable,
4623
+ descendants: true,
4624
+ isSignal: true
4625
+ },
4614
4626
  {
4615
4627
  propertyName: "sort",
4616
4628
  first: true,
@@ -5036,6 +5048,10 @@ i0.ɵɵngDeclareClassMetadata({
5036
5048
  type: i0.Output,
5037
5049
  args: ["rowDoubleClicked"]
5038
5050
  }],
5051
+ matTable: [{
5052
+ type: i0.ViewChild,
5053
+ args: [i0.forwardRef(() => MatTable), { isSignal: true }]
5054
+ }],
5039
5055
  sort: [{
5040
5056
  type: i0.ViewChild,
5041
5057
  args: [i0.forwardRef(() => MatSort), { isSignal: true }]