@rocket.chat/fuselage 0.32.0-dev.232 → 0.32.0-dev.233
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtE,OAAO,GAAG,MAAM,QAAQ,CAAC;AAGzB,aAAK,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;AAElC,aAAK,eAAe,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC;KAC5B,KAAK,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC;KAC5B,KAAK,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,iBAAiB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;CAC5D,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtE,OAAO,GAAG,MAAM,QAAQ,CAAC;AAGzB,aAAK,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;AAElC,aAAK,eAAe,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC;KAC5B,KAAK,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC;KAC5B,KAAK,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,iBAAiB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;CAC5D,CAAC;AAmBF,eAAO,MAAM,UAAU,iIAUpB,eAAe,gBAgHjB,CAAC"}
|
|
@@ -12259,9 +12259,9 @@ var defaultShowingResultsLabel = function (_a) {
|
|
|
12259
12259
|
var count = _a.count, current = _a.current, itemsPerPage = _a.itemsPerPage;
|
|
12260
12260
|
return "Showing results " + (current + 1) + " - " + Math.min(current + itemsPerPage, count) + " of " + count;
|
|
12261
12261
|
};
|
|
12262
|
+
var itemsPerPageOptions = [25, 50, 100];
|
|
12262
12263
|
var Pagination = function (_a) {
|
|
12263
12264
|
var count = _a.count, _b = _a.current, current = _b === void 0 ? 0 : _b, _c = _a.itemsPerPage, itemsPerPage = _c === void 0 ? 25 : _c, _d = _a.itemsPerPageLabel, itemsPerPageLabel = _d === void 0 ? defaultItemsPerPageLabel : _d, _e = _a.showingResultsLabel, showingResultsLabel = _e === void 0 ? defaultShowingResultsLabel : _e, onSetItemsPerPage = _a.onSetItemsPerPage, onSetCurrent = _a.onSetCurrent, divider = _a.divider, props = __rest(_a, ["count", "current", "itemsPerPage", "itemsPerPageLabel", "showingResultsLabel", "onSetItemsPerPage", "onSetCurrent", "divider"]);
|
|
12264
|
-
var itemsPerPageOptions = [25, 50, 100].filter(function (i) { return i <= count; });
|
|
12265
12265
|
var hasItemsPerPageSelection = itemsPerPageOptions.length > 1;
|
|
12266
12266
|
var currentPage = Math.floor(current / itemsPerPage);
|
|
12267
12267
|
var pages = Math.ceil(count / itemsPerPage);
|