@sumaris-net/ngx-components 1.23.45 → 1.23.46
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 +31 -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/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 +28 -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/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
|
@@ -21373,6 +21373,14 @@
|
|
|
21373
21373
|
* Count data stored by the service (without hidden data).
|
|
21374
21374
|
* @param opts
|
|
21375
21375
|
*/
|
|
21376
|
+
// get visibleCount(): number {
|
|
21377
|
+
// return (this.dataSubject.value?.length || 0);
|
|
21378
|
+
// }
|
|
21379
|
+
/**
|
|
21380
|
+
* Count data stored by the service (without hidden data).
|
|
21381
|
+
* @param opts
|
|
21382
|
+
* @deprecated TODO Please rename this getter into visibleCount (and create count = hiddenCount + visibleCount)
|
|
21383
|
+
*/
|
|
21376
21384
|
get: function () {
|
|
21377
21385
|
var _a;
|
|
21378
21386
|
return (((_a = this.dataSubject.value) === null || _a === void 0 ? void 0 : _a.length) || 0);
|
|
@@ -21784,6 +21792,9 @@
|
|
|
21784
21792
|
enumerable: false,
|
|
21785
21793
|
configurable: true
|
|
21786
21794
|
});
|
|
21795
|
+
ColorScale.prototype.getValueColor = function (value) {
|
|
21796
|
+
return this.getLegendForValue(value).color;
|
|
21797
|
+
};
|
|
21787
21798
|
ColorScale.prototype.getLegendForValue = function (value) {
|
|
21788
21799
|
var index = Math.floor(value * (this._legendItems.length - 1) / this._max);
|
|
21789
21800
|
return this._legendItems[index];
|
|
@@ -30217,13 +30228,29 @@
|
|
|
30217
30228
|
// FOR DEV ONLY ----
|
|
30218
30229
|
//this.debug = !environment.production;
|
|
30219
30230
|
}
|
|
30220
|
-
Object.defineProperty(AppEntityEditorModal.prototype, "
|
|
30231
|
+
Object.defineProperty(AppEntityEditorModal.prototype, "isNew", {
|
|
30221
30232
|
get: function () {
|
|
30222
30233
|
var _a;
|
|
30223
|
-
return isNotNil(this.
|
|
30234
|
+
return isNotNil(this._isNew) ? this._isNew : isNil((_a = this.data) === null || _a === void 0 ? void 0 : _a.id);
|
|
30224
30235
|
},
|
|
30225
30236
|
set: function (value) {
|
|
30226
|
-
this.
|
|
30237
|
+
this._isNew = value;
|
|
30238
|
+
},
|
|
30239
|
+
enumerable: false,
|
|
30240
|
+
configurable: true
|
|
30241
|
+
});
|
|
30242
|
+
Object.defineProperty(AppEntityEditorModal.prototype, "isNewData", {
|
|
30243
|
+
/**
|
|
30244
|
+
* @deprecated use isNew instead
|
|
30245
|
+
*/
|
|
30246
|
+
get: function () {
|
|
30247
|
+
return this.isNew;
|
|
30248
|
+
},
|
|
30249
|
+
/**
|
|
30250
|
+
* @deprecated use isNew instead
|
|
30251
|
+
*/
|
|
30252
|
+
set: function (value) {
|
|
30253
|
+
this.isNew = value;
|
|
30227
30254
|
},
|
|
30228
30255
|
enumerable: false,
|
|
30229
30256
|
configurable: true
|
|
@@ -30704,6 +30731,7 @@
|
|
|
30704
30731
|
onAfterModalInit: [{ type: i0.Input }],
|
|
30705
30732
|
onDelete: [{ type: i0.Input }],
|
|
30706
30733
|
i18nSuffix: [{ type: i0.Input }],
|
|
30734
|
+
isNew: [{ type: i0.Input }],
|
|
30707
30735
|
isNewData: [{ type: i0.Input }],
|
|
30708
30736
|
disabled: [{ type: i0.Input }]
|
|
30709
30737
|
};
|