chrv-components 1.12.81 → 1.12.82

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.
Binary file
@@ -7478,8 +7478,8 @@ class AutoDataSource {
7478
7478
  // Signaux internes
7479
7479
  this._datagrid = signal(null, ...(ngDevMode ? [{ debugName: "_datagrid" }] : []));
7480
7480
  this._data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : []));
7481
- this._currentPage = signal(1, ...(ngDevMode ? [{ debugName: "_currentPage" }] : []));
7482
- this._pageSize = signal(10, ...(ngDevMode ? [{ debugName: "_pageSize" }] : []));
7481
+ // protected _currentPage = signal(1);
7482
+ // protected _pageSize = signal(10);
7483
7483
  this._sort = signal(null, ...(ngDevMode ? [{ debugName: "_sort" }] : []));
7484
7484
  this._filter = signal({}, ...(ngDevMode ? [{ debugName: "_filter" }] : []));
7485
7485
  this._groupBy = signal(null, ...(ngDevMode ? [{ debugName: "_groupBy" }] : []));
@@ -7487,8 +7487,8 @@ class AutoDataSource {
7487
7487
  this._error = signal(null, ...(ngDevMode ? [{ debugName: "_error" }] : []));
7488
7488
  // Données exposées (read-only)
7489
7489
  this.data = this._data.asReadonly();
7490
- this.currentPage = this._currentPage.asReadonly();
7491
- this.pageSize = this._pageSize.asReadonly();
7490
+ // public readonly currentPage: Signal<number> = this._currentPage.asReadonly();
7491
+ // public readonly pageSize: Signal<number> = this._pageSize.asReadonly();
7492
7492
  this.sort = this._sort.asReadonly();
7493
7493
  this.filter = this._filter.asReadonly();
7494
7494
  this.groupBy = this._groupBy.asReadonly();
@@ -7525,7 +7525,7 @@ class AutoDataSource {
7525
7525
  if (this.config.initialData) {
7526
7526
  this._data.set(this.config.initialData);
7527
7527
  }
7528
- this._pageSize.set(this.config.pageSize);
7528
+ // this._pageSize.set(this.config.pageSize);
7529
7529
  effect(() => {
7530
7530
  if (this.processedData() && this._datagrid()) {
7531
7531
  this._datagrid().table.set(this.processedData());
@@ -7545,11 +7545,16 @@ class AutoDataSource {
7545
7545
  return;
7546
7546
  const datagrid = (element instanceof ElementRef ? element.nativeElement : element);
7547
7547
  this._datagrid.set(datagrid);
7548
- this._subscriptions.push(datagrid.pageChange.subscribe((page) => {
7549
- this._subscriptions.push(this.handlePageChange(page).subscribe());
7550
- }), datagrid.pageSizeChange.subscribe((pageSize) => {
7551
- this._subscriptions.push(this.handlePageSizeChange(pageSize).subscribe());
7552
- }), datagrid.sort.subscribe((sort) => {
7548
+ this._subscriptions.push(
7549
+ // datagrid.pageChange.subscribe((page: number) => {
7550
+ // this._subscriptions.push(this.handlePageChange(page).subscribe());
7551
+ // }),
7552
+ // datagrid.pageSizeChange.subscribe((pageSize: number) => {
7553
+ // this._subscriptions.push(
7554
+ // this.handlePageSizeChange(pageSize).subscribe(),
7555
+ // );
7556
+ // }),
7557
+ datagrid.sort.subscribe((sort) => {
7553
7558
  this._subscriptions.push(this.handleSortChange(sort).subscribe());
7554
7559
  }), datagrid.filter.subscribe((filter) => {
7555
7560
  this._subscriptions.push(this.handleFilterChange(filter).subscribe());
@@ -7558,22 +7563,22 @@ class AutoDataSource {
7558
7563
  }));
7559
7564
  }
7560
7565
  // Méthodes publiques pour gérer les événements de la datagrid
7561
- handlePageChange(page) {
7562
- this._currentPage.set(page);
7563
- return this.onPageChange(page);
7564
- }
7565
- handlePageSizeChange(pageSize) {
7566
- this._pageSize.set(pageSize);
7567
- this._currentPage.set(1); // Reset à la première page
7568
- return this.onPageSizeChange(pageSize);
7569
- }
7566
+ // public handlePageChange(page: number): Observable<void> {
7567
+ // this._currentPage.set(page);
7568
+ // return this.onPageChange(page);
7569
+ // }
7570
+ // public handlePageSizeChange(pageSize: number): Observable<void> {
7571
+ // this._pageSize.set(pageSize);
7572
+ // this._currentPage.set(1); // Reset à la première page
7573
+ // return this.onPageSizeChange(pageSize);
7574
+ // }
7570
7575
  handleSortChange(sort) {
7571
7576
  this._sort.set(sort);
7572
7577
  return this.onSortChange(sort);
7573
7578
  }
7574
7579
  handleFilterChange(filter) {
7575
7580
  this._filter.set(filter);
7576
- this._currentPage.set(1); // Reset à la première page
7581
+ // this._currentPage.set(1); // Reset à la première page
7577
7582
  return this.onFilterChange(filter);
7578
7583
  }
7579
7584
  handleGroupChange(group) {