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/billy-herrington-utils.es.js +10 -6
- package/dist/billy-herrington-utils.es.js.map +1 -1
- package/dist/billy-herrington-utils.umd.js +10 -6
- package/dist/billy-herrington-utils.umd.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/userscripts/rules/index.ts +12 -5
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
|
@@ -133,7 +133,7 @@ export class RulesGlobal {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
public paginationStrategyOptions: Partial<PaginationStrategy> = {};
|
|
136
|
-
public paginationStrategy
|
|
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
|
|
196
|
-
public
|
|
197
|
-
public
|
|
198
|
-
|
|
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();
|