kui-utils 0.0.7 → 0.0.9
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/cjs/index.js +8 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +8 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -2000,11 +2000,14 @@ var resHandler = function (result, loader, callback, errorMessage, params) {
|
|
|
2000
2000
|
callback(res);
|
|
2001
2001
|
}
|
|
2002
2002
|
catch (e) {
|
|
2003
|
+
loader.endLoading();
|
|
2003
2004
|
loader.setError(errorMessage, err);
|
|
2004
2005
|
}
|
|
2005
2006
|
}
|
|
2006
|
-
else
|
|
2007
|
+
else {
|
|
2008
|
+
loader.endLoading();
|
|
2007
2009
|
loader.setError(errorMessage, err);
|
|
2010
|
+
}
|
|
2008
2011
|
if ((params === null || params === void 0 ? void 0 : params.withEndLoading) || !params) {
|
|
2009
2012
|
loader.endLoading();
|
|
2010
2013
|
}
|
|
@@ -2118,6 +2121,10 @@ var Paginator = /** @class */ (function () {
|
|
|
2118
2121
|
this.stopFetching = function () {
|
|
2119
2122
|
_this.isFetching = false;
|
|
2120
2123
|
};
|
|
2124
|
+
this.refresh = function () {
|
|
2125
|
+
_this.clearOffset();
|
|
2126
|
+
_this.startFetching();
|
|
2127
|
+
};
|
|
2121
2128
|
this.limit = limit;
|
|
2122
2129
|
this.offset = 0;
|
|
2123
2130
|
this.isFinishPage = false;
|