@mtgame/core 0.1.111 → 0.1.113
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/bundles/mtgame-core.umd.js +9 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/teams-and-users.js +6 -2
- package/fesm2015/mtgame-core.js +5 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/teams-and-users.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6724,6 +6724,14 @@
|
|
|
6724
6724
|
function TeamsAndUsers() {
|
|
6725
6725
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6726
6726
|
}
|
|
6727
|
+
Object.defineProperty(TeamsAndUsers.prototype, "isEmpty", {
|
|
6728
|
+
get: function () {
|
|
6729
|
+
return (!this.teams || this.teams.length === 0) &&
|
|
6730
|
+
(!this.leaguePlayers || this.leaguePlayers.length === 0);
|
|
6731
|
+
},
|
|
6732
|
+
enumerable: false,
|
|
6733
|
+
configurable: true
|
|
6734
|
+
});
|
|
6727
6735
|
TeamsAndUsers.toFront = function (data) { };
|
|
6728
6736
|
TeamsAndUsers.toBack = function (data) { };
|
|
6729
6737
|
return TeamsAndUsers;
|
|
@@ -6738,7 +6746,7 @@
|
|
|
6738
6746
|
ModelInstance({
|
|
6739
6747
|
mappingFields: {
|
|
6740
6748
|
teams: 'teams',
|
|
6741
|
-
|
|
6749
|
+
league_players: 'leaguePlayers',
|
|
6742
6750
|
},
|
|
6743
6751
|
relation: {
|
|
6744
6752
|
teams: listField(exports.Team),
|