bruce-models 1.0.4 → 1.0.5
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 +13 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +13 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/getters/entity-filter-getter.js +13 -3
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
- package/dist/types/entity/getters/entity-filter-getter.d.ts +6 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3553,6 +3553,14 @@ var EntityFilterGetter;
|
|
|
3553
3553
|
}
|
|
3554
3554
|
return this.onScanUpdate;
|
|
3555
3555
|
}
|
|
3556
|
+
/**
|
|
3557
|
+
* Returns id that represents the combined menu item parameters.
|
|
3558
|
+
* If integrity changes while a request is running, the request will not emit a response.
|
|
3559
|
+
* @returns
|
|
3560
|
+
*/
|
|
3561
|
+
getIntegrityId() {
|
|
3562
|
+
return this.tagIds == null ? "" : this.tagIds.join();
|
|
3563
|
+
}
|
|
3556
3564
|
viewAreaSub() {
|
|
3557
3565
|
this.viewAreaDispose();
|
|
3558
3566
|
this.viewPortChangeRemoval = this.viewPort.Updated().Subscribe(() => {
|
|
@@ -3639,6 +3647,7 @@ var EntityFilterGetter;
|
|
|
3639
3647
|
// Increase id so that existing loops stop.
|
|
3640
3648
|
this.getterLoopId += 1;
|
|
3641
3649
|
const loopId = this.getterLoopId;
|
|
3650
|
+
const loopIntegrity = this.getIntegrityId();
|
|
3642
3651
|
new Promise(() => __awaiter(this, void 0, void 0, function* () {
|
|
3643
3652
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3644
3653
|
// Minor delay to stop 50 menu items enabling doing their first request all together.
|
|
@@ -3697,12 +3706,13 @@ var EntityFilterGetter;
|
|
|
3697
3706
|
sortOrder: Api.ESortOrder.Asc,
|
|
3698
3707
|
entityTypeConditions: this.attrFilter
|
|
3699
3708
|
});
|
|
3709
|
+
const integrity = this.getIntegrityId();
|
|
3710
|
+
if (loopIntegrity == integrity && page) {
|
|
3711
|
+
(_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(page);
|
|
3712
|
+
}
|
|
3700
3713
|
if (this.getterLoopId != loopId) {
|
|
3701
3714
|
break;
|
|
3702
3715
|
}
|
|
3703
|
-
if (page) {
|
|
3704
|
-
(_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(page);
|
|
3705
|
-
}
|
|
3706
3716
|
if (!postedLoading) {
|
|
3707
3717
|
this.postStatus({ msg: EStatus.Loading, revoking: false });
|
|
3708
3718
|
postedLoading = true;
|