@evlop/commons 1.0.198 → 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/hooks/useDataSource.d.ts.map +1 -1
- package/dist/src/hooks/useDataSource.js +2 -1
- package/dist/src/hooks/useDataSource.js.map +1 -1
- package/dist/src/middlewares/dataSourceMiddleware.d.ts.map +1 -1
- package/dist/src/middlewares/dataSourceMiddleware.js +3 -0
- package/dist/src/middlewares/dataSourceMiddleware.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDataSource.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDataSource.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKxC,aAAK,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,GAAG,CAAC;AACtE,UAAU,iBAAiB;IACvB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAE;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAC,MAAM,GAAG,GAAG,CAAC;CACrB;AAED,aAAK,IAAI,GAAG,UAAU,GAAG,MAAM,CAAC;AAIhC,eAAO,MAAM,aAAa,WAAa,MAAM,GAAG,iBAAiB,YAAa,iBAAiB,KAAI,
|
1
|
+
{"version":3,"file":"useDataSource.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDataSource.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKxC,aAAK,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,GAAG,CAAC;AACtE,UAAU,iBAAiB;IACvB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAE;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAC,MAAM,GAAG,GAAG,CAAC;CACrB;AAED,aAAK,IAAI,GAAG,UAAU,GAAG,MAAM,CAAC;AAIhC,eAAO,MAAM,aAAa,WAAa,MAAM,GAAG,iBAAiB,YAAa,iBAAiB,KAAI,IAgHlG,CAAC"}
|
@@ -93,8 +93,9 @@ const useDataSource = (source, options) => {
|
|
93
93
|
isRefreshing: lodash_1.get(currentValue, 'isRefreshing', false),
|
94
94
|
hasMore: lodash_1.get(currentValue, 'hasMore', false),
|
95
95
|
queryString: lodash_1.get(currentValue, 'queryString', ''),
|
96
|
-
totalPages: lodash_1.get(currentValue, '
|
96
|
+
totalPages: lodash_1.get(currentValue, 'totalPages', 0),
|
97
97
|
totalRecords: lodash_1.get(currentValue, 'totalRecords', 0),
|
98
|
+
meta: lodash_1.get(currentValue, 'meta', {}),
|
98
99
|
refresh: loadData,
|
99
100
|
search,
|
100
101
|
loadMore,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDataSource.js","sourceRoot":"","sources":["../../../src/hooks/useDataSource.tsx"],"names":[],"mappings":";;;;;;AAAA,mCAAiG;AACjG,iCAAwD;AACxD,6CAAuD;AACvD,wCAAwC;AACxC,0CAAmK;AACnK,yCAAsC;AACtC,gEAAwC;AAcxC,MAAM,wBAAwB,GAAgC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAA;AAEtE,MAAM,aAAa,GAAG,CAAE,MAAkC,EAAG,OAA2B,EAAQ,EAAE;IACrG,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,qBAAW,EAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,mBAAQ,EAAE,CAAC;IAEzB,MAAM,EAAC,cAAc,EAAE,OAAO,EAAE,kBAAkB,EAAC,GAAG,eAAO,CAAC,GAAE,E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AAE,CAAC,cAAc,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IAE/C,QAAO,cAAc,EAAC;QAClB,KAAK,QAAQ;YACT,OAAO,iBAAiB,CAAC,IAAI,CAAC;QAClC,KAAK,OAAO;YACR,OAAO,YAAG,CAAC,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAhHW,QAAA,aAAa,iBAgHxB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dataSourceMiddleware.d.ts","sourceRoot":"","sources":["../../../src/middlewares/dataSourceMiddleware.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dataSourceMiddleware.d.ts","sourceRoot":"","sources":["../../../src/middlewares/dataSourceMiddleware.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,oBAAoB,8DAkFhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
@@ -39,6 +39,7 @@ function arrayDataToState(options, fetchDataResponse) {
|
|
39
39
|
const pageSize = lodash_1.get(fetchDataResponse, 'pageSize');
|
40
40
|
const totalRecords = lodash_1.get(fetchDataResponse, 'totalRecords');
|
41
41
|
const totalPages = lodash_1.get(fetchDataResponse, 'totalPages');
|
42
|
+
const meta = lodash_1.get(fetchDataResponse, 'meta', {});
|
42
43
|
const hasMore = totalPages ? page < totalPages : !lodash_1.isEmpty(items);
|
43
44
|
const hasPrevious = page > 1;
|
44
45
|
return {
|
@@ -47,8 +48,10 @@ function arrayDataToState(options, fetchDataResponse) {
|
|
47
48
|
page,
|
48
49
|
pageSize,
|
49
50
|
totalRecords,
|
51
|
+
totalPages,
|
50
52
|
hasMore,
|
51
53
|
hasPrevious,
|
54
|
+
meta: meta || {},
|
52
55
|
};
|
53
56
|
}
|
54
57
|
const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"d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