@sumaris-net/ngx-components 1.23.45 → 1.23.47
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/sumaris-net.ngx-components.umd.js +34 -3
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +4 -0
- package/esm2015/src/app/core/form/entity-editor-modal.class.js +18 -5
- package/esm2015/src/app/core/services/model/referential.model.js +4 -1
- package/esm2015/src/app/shared/graph/graph-colors.js +4 -1
- package/esm2015/src/app/shared/material/material.animations.js +1 -1
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +9 -1
- package/fesm2015/sumaris-net.ngx-components.js +31 -4
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity-editor-modal.class.d.ts +12 -3
- package/src/app/core/services/model/referential.model.d.ts +3 -1
- package/src/app/shared/graph/graph-colors.d.ts +1 -0
- package/src/app/shared/services/memory-entity-service.class.d.ts +5 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -15148,6 +15148,8 @@
|
|
|
15148
15148
|
target.creationDate = toDateISOString(this.creationDate);
|
|
15149
15149
|
if (opts && opts.keepTypename === false)
|
|
15150
15150
|
delete target.entityName;
|
|
15151
|
+
if (opts && opts.keepIcon === false)
|
|
15152
|
+
delete target.icon;
|
|
15151
15153
|
return target;
|
|
15152
15154
|
};
|
|
15153
15155
|
BaseReferential.prototype.fromObject = function (source, opts) {
|
|
@@ -15162,6 +15164,7 @@
|
|
|
15162
15164
|
this.parentId = source.parentId;
|
|
15163
15165
|
this.creationDate = fromDateISOString(source.creationDate);
|
|
15164
15166
|
this.entityName = source.entityName;
|
|
15167
|
+
this.icon = source.icon;
|
|
15165
15168
|
};
|
|
15166
15169
|
BaseReferential.prototype.equals = function (other) {
|
|
15167
15170
|
return _super.prototype.equals.call(this, other) && this.entityName === other.entityName;
|
|
@@ -21373,6 +21376,14 @@
|
|
|
21373
21376
|
* Count data stored by the service (without hidden data).
|
|
21374
21377
|
* @param opts
|
|
21375
21378
|
*/
|
|
21379
|
+
// get visibleCount(): number {
|
|
21380
|
+
// return (this.dataSubject.value?.length || 0);
|
|
21381
|
+
// }
|
|
21382
|
+
/**
|
|
21383
|
+
* Count data stored by the service (without hidden data).
|
|
21384
|
+
* @param opts
|
|
21385
|
+
* @deprecated TODO Please rename this getter into visibleCount (and create count = hiddenCount + visibleCount)
|
|
21386
|
+
*/
|
|
21376
21387
|
get: function () {
|
|
21377
21388
|
var _a;
|
|
21378
21389
|
return (((_a = this.dataSubject.value) === null || _a === void 0 ? void 0 : _a.length) || 0);
|
|
@@ -21784,6 +21795,9 @@
|
|
|
21784
21795
|
enumerable: false,
|
|
21785
21796
|
configurable: true
|
|
21786
21797
|
});
|
|
21798
|
+
ColorScale.prototype.getValueColor = function (value) {
|
|
21799
|
+
return this.getLegendForValue(value).color;
|
|
21800
|
+
};
|
|
21787
21801
|
ColorScale.prototype.getLegendForValue = function (value) {
|
|
21788
21802
|
var index = Math.floor(value * (this._legendItems.length - 1) / this._max);
|
|
21789
21803
|
return this._legendItems[index];
|
|
@@ -30217,13 +30231,29 @@
|
|
|
30217
30231
|
// FOR DEV ONLY ----
|
|
30218
30232
|
//this.debug = !environment.production;
|
|
30219
30233
|
}
|
|
30220
|
-
Object.defineProperty(AppEntityEditorModal.prototype, "
|
|
30234
|
+
Object.defineProperty(AppEntityEditorModal.prototype, "isNew", {
|
|
30221
30235
|
get: function () {
|
|
30222
30236
|
var _a;
|
|
30223
|
-
return isNotNil(this.
|
|
30237
|
+
return isNotNil(this._isNew) ? this._isNew : isNil((_a = this.data) === null || _a === void 0 ? void 0 : _a.id);
|
|
30238
|
+
},
|
|
30239
|
+
set: function (value) {
|
|
30240
|
+
this._isNew = value;
|
|
30224
30241
|
},
|
|
30242
|
+
enumerable: false,
|
|
30243
|
+
configurable: true
|
|
30244
|
+
});
|
|
30245
|
+
Object.defineProperty(AppEntityEditorModal.prototype, "isNewData", {
|
|
30246
|
+
/**
|
|
30247
|
+
* @deprecated use isNew instead
|
|
30248
|
+
*/
|
|
30249
|
+
get: function () {
|
|
30250
|
+
return this.isNew;
|
|
30251
|
+
},
|
|
30252
|
+
/**
|
|
30253
|
+
* @deprecated use isNew instead
|
|
30254
|
+
*/
|
|
30225
30255
|
set: function (value) {
|
|
30226
|
-
this.
|
|
30256
|
+
this.isNew = value;
|
|
30227
30257
|
},
|
|
30228
30258
|
enumerable: false,
|
|
30229
30259
|
configurable: true
|
|
@@ -30704,6 +30734,7 @@
|
|
|
30704
30734
|
onAfterModalInit: [{ type: i0.Input }],
|
|
30705
30735
|
onDelete: [{ type: i0.Input }],
|
|
30706
30736
|
i18nSuffix: [{ type: i0.Input }],
|
|
30737
|
+
isNew: [{ type: i0.Input }],
|
|
30707
30738
|
isNewData: [{ type: i0.Input }],
|
|
30708
30739
|
disabled: [{ type: i0.Input }]
|
|
30709
30740
|
};
|