@paperless/angular 0.1.0-alpha.226 → 0.1.0-alpha.228

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.
@@ -2017,7 +2017,7 @@ let Table = class Table {
2017
2017
  /**
2018
2018
  * The amount of loading rows to show
2019
2019
  */
2020
- this.amountOfLoadingRows = 4;
2020
+ this.amountOfLoadingRows = 6;
2021
2021
  /**
2022
2022
  * Wether to enable selection
2023
2023
  */
@@ -2143,12 +2143,20 @@ let Table = class Table {
2143
2143
  }
2144
2144
  ngOnInit() {
2145
2145
  this._parseItems(this.items);
2146
+ this.loadingRows = Array.from({
2147
+ length: this.amountOfLoadingRows,
2148
+ });
2146
2149
  // this._generateColumns();
2147
2150
  }
2148
2151
  ngOnChanges(changes) {
2149
2152
  if (changes['items']) {
2150
2153
  this._parseItems(changes['items'].currentValue);
2151
2154
  }
2155
+ if (changes['amountOfLoadingRows']) {
2156
+ this.loadingRows = Array.from({
2157
+ length: changes['amountOfLoadingRows'].currentValue,
2158
+ });
2159
+ }
2152
2160
  }
2153
2161
  // @HostListener('body:tableDefinitionChanged', { target: 'body' })
2154
2162
  // onTableDefinitionUpdated() {