billy-herrington-utils 2.0.4 → 2.0.5

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.
package/dist/index.d.ts CHANGED
@@ -229,7 +229,6 @@ export declare class RulesGlobal {
229
229
  customScheme?: JabroniTypes.SchemeInput;
230
230
  defaultSchemeOptions: Parameters<typeof setupScheme>[0];
231
231
  store: JabronioStore;
232
- scheme: JabroniTypes.SchemeInput;
233
232
  gui: JabronioGUI;
234
233
  dataManager: DataManager;
235
234
  infiniteScroller?: InfiniteScroller;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "billy-herrington-utils",
3
3
  "description": "daddy told us not to be ashamed of our utils",
4
- "version": "2.0.4",
4
+ "version": "2.0.5",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "utils",
@@ -133,7 +133,7 @@ export class RulesGlobal {
133
133
  }
134
134
 
135
135
  public paginationStrategyOptions: Partial<PaginationStrategy> = {};
136
- public paginationStrategy = getPaginationStrategy(this.paginationStrategyOptions);
136
+ public paginationStrategy: PaginationStrategy;
137
137
 
138
138
  // get paginationElement() {
139
139
  // return this.paginationStrategy.getPaginationElement();
@@ -192,10 +192,10 @@ export class RulesGlobal {
192
192
  public customScheme?: JabroniTypes.SchemeInput;
193
193
  public defaultSchemeOptions: Parameters<typeof setupScheme>[0] = [];
194
194
 
195
- public store = new JabronioStore(this.storeOptions);
196
- public scheme = setupScheme(this.defaultSchemeOptions, this.customScheme);
197
- public gui = new JabronioGUI(this.scheme, this.store);
198
- public dataManager = new DataManager(this, this.store.state);
195
+ public store: JabronioStore;
196
+ public gui: JabronioGUI;
197
+ public dataManager: DataManager;
198
+
199
199
  public infiniteScroller?: InfiniteScroller;
200
200
 
201
201
  private resetInfiniteScroller() {
@@ -223,6 +223,13 @@ export class RulesGlobal {
223
223
  }
224
224
 
225
225
  constructor() {
226
+ this.paginationStrategy = getPaginationStrategy(this.paginationStrategyOptions);
227
+
228
+ this.store = new JabronioStore(this.storeOptions);
229
+ const scheme = setupScheme(this.defaultSchemeOptions, this.customScheme);
230
+ this.gui = new JabronioGUI(scheme, this.store);
231
+ this.dataManager = new DataManager(this, this.store.state);
232
+
226
233
  this.store.subscribe(() => this.dataManager.applyFilters());
227
234
  this.resetInfiniteScroller();
228
235
  this.resetOn();