bruce-models 7.0.0 → 7.0.2
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 +15 -8
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +15 -8
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/style/style.js +14 -7
- 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 +4 -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, expandSettings } = params;
|
|
8444
|
+
let { api, req: reqParams, pageIndex, pageSize, expandSettings, type, search } = params;
|
|
8445
8445
|
if (!api) {
|
|
8446
8446
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8447
8447
|
}
|
|
8448
|
-
const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize, expandSettings), reqParams);
|
|
8448
|
+
const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize, expandSettings, type, search), reqParams);
|
|
8449
8449
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
8450
8450
|
return cache.data;
|
|
8451
8451
|
}
|
|
@@ -8457,12 +8457,19 @@
|
|
|
8457
8457
|
urlParams.append("PageSize", String(pageSize || 0));
|
|
8458
8458
|
}
|
|
8459
8459
|
if (expandSettings) {
|
|
8460
|
-
urlParams.append("
|
|
8460
|
+
urlParams.append("$expand", "settings");
|
|
8461
|
+
}
|
|
8462
|
+
if (type) {
|
|
8463
|
+
urlParams.append("Type", type);
|
|
8464
|
+
}
|
|
8465
|
+
if (search) {
|
|
8466
|
+
urlParams.append("Search", search);
|
|
8461
8467
|
}
|
|
8462
8468
|
const url = "ui.entityDisplaySettings" + `?${urlParams.toString()}`;
|
|
8463
8469
|
const data = yield api.GET(url, exports.Api.PrepReqParams(reqParams));
|
|
8464
8470
|
res({
|
|
8465
|
-
styles: data.Items
|
|
8471
|
+
styles: data.Items,
|
|
8472
|
+
totalCount: data.TotalCount
|
|
8466
8473
|
});
|
|
8467
8474
|
}
|
|
8468
8475
|
catch (e) {
|
|
@@ -8470,7 +8477,7 @@
|
|
|
8470
8477
|
}
|
|
8471
8478
|
}));
|
|
8472
8479
|
api.SetCacheItem({
|
|
8473
|
-
key: GetListCacheKey(pageIndex, pageSize, expandSettings),
|
|
8480
|
+
key: GetListCacheKey(pageIndex, pageSize, expandSettings, type, search),
|
|
8474
8481
|
value: res,
|
|
8475
8482
|
req: reqParams
|
|
8476
8483
|
});
|
|
@@ -8584,8 +8591,8 @@
|
|
|
8584
8591
|
* }
|
|
8585
8592
|
* @returns
|
|
8586
8593
|
*/
|
|
8587
|
-
function GetListCacheKey(pageSize, pageIndex, expandSettings) {
|
|
8588
|
-
return exports.Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0) + "_" + (expandSettings ? 1 : 0);
|
|
8594
|
+
function GetListCacheKey(pageSize, pageIndex, expandSettings, type, search) {
|
|
8595
|
+
return exports.Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0) + "_" + (expandSettings ? 1 : 0) + "_" + (type || "") + "_" + (search || "");
|
|
8589
8596
|
}
|
|
8590
8597
|
Style.GetListCacheKey = GetListCacheKey;
|
|
8591
8598
|
})(exports.Style || (exports.Style = {}));
|
|
@@ -16693,7 +16700,7 @@
|
|
|
16693
16700
|
}
|
|
16694
16701
|
|
|
16695
16702
|
// This is updated with the package.json version on build.
|
|
16696
|
-
const VERSION = "7.0.
|
|
16703
|
+
const VERSION = "7.0.2";
|
|
16697
16704
|
|
|
16698
16705
|
exports.VERSION = VERSION;
|
|
16699
16706
|
exports.AbstractApi = AbstractApi;
|