bruce-models 6.9.9 → 7.0.1
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/bruce-models.es5.js +9 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +9 -6
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/style/style.js +8 -5
- package/dist/lib/style/style.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/style/style.d.ts +2 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -8441,11 +8441,11 @@
|
|
|
8441
8441
|
*/
|
|
8442
8442
|
function GetList(params) {
|
|
8443
8443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8444
|
-
let { api, req: reqParams, pageIndex, pageSize } = params;
|
|
8444
|
+
let { api, req: reqParams, pageIndex, pageSize, expandSettings } = params;
|
|
8445
8445
|
if (!api) {
|
|
8446
8446
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8447
8447
|
}
|
|
8448
|
-
const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize), reqParams);
|
|
8448
|
+
const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize, expandSettings), reqParams);
|
|
8449
8449
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
8450
8450
|
return cache.data;
|
|
8451
8451
|
}
|
|
@@ -8456,6 +8456,9 @@
|
|
|
8456
8456
|
urlParams.append("PageIndex", String(pageIndex || 0));
|
|
8457
8457
|
urlParams.append("PageSize", String(pageSize || 0));
|
|
8458
8458
|
}
|
|
8459
|
+
if (expandSettings) {
|
|
8460
|
+
urlParams.append("$expand", "settings");
|
|
8461
|
+
}
|
|
8459
8462
|
const url = "ui.entityDisplaySettings" + `?${urlParams.toString()}`;
|
|
8460
8463
|
const data = yield api.GET(url, exports.Api.PrepReqParams(reqParams));
|
|
8461
8464
|
res({
|
|
@@ -8467,7 +8470,7 @@
|
|
|
8467
8470
|
}
|
|
8468
8471
|
}));
|
|
8469
8472
|
api.SetCacheItem({
|
|
8470
|
-
key: GetListCacheKey(pageIndex, pageSize),
|
|
8473
|
+
key: GetListCacheKey(pageIndex, pageSize, expandSettings),
|
|
8471
8474
|
value: res,
|
|
8472
8475
|
req: reqParams
|
|
8473
8476
|
});
|
|
@@ -8581,8 +8584,8 @@
|
|
|
8581
8584
|
* }
|
|
8582
8585
|
* @returns
|
|
8583
8586
|
*/
|
|
8584
|
-
function GetListCacheKey(pageSize, pageIndex) {
|
|
8585
|
-
return exports.Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0);
|
|
8587
|
+
function GetListCacheKey(pageSize, pageIndex, expandSettings) {
|
|
8588
|
+
return exports.Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0) + "_" + (expandSettings ? 1 : 0);
|
|
8586
8589
|
}
|
|
8587
8590
|
Style.GetListCacheKey = GetListCacheKey;
|
|
8588
8591
|
})(exports.Style || (exports.Style = {}));
|
|
@@ -16690,7 +16693,7 @@
|
|
|
16690
16693
|
}
|
|
16691
16694
|
|
|
16692
16695
|
// This is updated with the package.json version on build.
|
|
16693
|
-
const VERSION = "
|
|
16696
|
+
const VERSION = "7.0.1";
|
|
16694
16697
|
|
|
16695
16698
|
exports.VERSION = VERSION;
|
|
16696
16699
|
exports.AbstractApi = AbstractApi;
|