@sumaris-net/ngx-components 1.23.44 → 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.
@@ -47,7 +47,7 @@
47
47
  var SPACE_PLACEHOLDER_CHAR = '\u2000';
48
48
  var KEYBOARD_HIDE_DELAY_MS = 250; // 1s
49
49
 
50
- /******************************************************************************
50
+ /*! *****************************************************************************
51
51
  Copyright (c) Microsoft Corporation.
52
52
 
53
53
  Permission to use, copy, modify, and/or distribute this software for any
@@ -209,11 +209,7 @@
209
209
  var __createBinding = Object.create ? (function (o, m, k, k2) {
210
210
  if (k2 === undefined)
211
211
  k2 = k;
212
- var desc = Object.getOwnPropertyDescriptor(m, k);
213
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
214
- desc = { enumerable: true, get: function () { return m[k]; } };
215
- }
216
- Object.defineProperty(o, k2, desc);
212
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
217
213
  }) : (function (o, m, k, k2) {
218
214
  if (k2 === undefined)
219
215
  k2 = k;
@@ -368,11 +364,6 @@
368
364
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
369
365
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
370
366
  }
371
- function __classPrivateFieldIn(state, receiver) {
372
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
373
- throw new TypeError("Cannot use 'in' operator on non-object");
374
- return typeof state === "function" ? receiver === state : state.has(receiver);
375
- }
376
367
 
377
368
  function isNil(obj) {
378
369
  return obj === undefined || obj === null;
@@ -15218,7 +15209,8 @@
15218
15209
  minify: true,
15219
15210
  keepTypename: true,
15220
15211
  keepEntityName: true,
15221
- keepLocalId: true
15212
+ keepLocalId: true,
15213
+ keepIcon: true
15222
15214
  });
15223
15215
  /**
15224
15216
  * Used to send an entity to a pod
@@ -15227,7 +15219,8 @@
15227
15219
  minify: true,
15228
15220
  keepTypename: false,
15229
15221
  keepEntityName: false,
15230
- keepLocalId: false
15222
+ keepLocalId: false,
15223
+ keepIcon: false
15231
15224
  });
15232
15225
  // @dynamic
15233
15226
  exports.ReferentialRef = ReferentialRef_1 = /** @class */ (function (_super) {
@@ -15246,6 +15239,8 @@
15246
15239
  var target = _super.prototype.asObject.call(this, opts);
15247
15240
  if (opts && opts.keepEntityName === false)
15248
15241
  delete target.entityName;
15242
+ if (opts && opts.keepIcon === false)
15243
+ delete target.icon;
15249
15244
  return target;
15250
15245
  };
15251
15246
  ReferentialRef.prototype.fromObject = function (source, opts) {
@@ -15256,6 +15251,7 @@
15256
15251
  this.description = source.description;
15257
15252
  this.statusId = source.statusId;
15258
15253
  this.levelId = source.levelId;
15254
+ this.icon = source.icon;
15259
15255
  };
15260
15256
  return ReferentialRef;
15261
15257
  }(Entity));
@@ -21377,6 +21373,14 @@
21377
21373
  * Count data stored by the service (without hidden data).
21378
21374
  * @param opts
21379
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
+ */
21380
21384
  get: function () {
21381
21385
  var _a;
21382
21386
  return (((_a = this.dataSubject.value) === null || _a === void 0 ? void 0 : _a.length) || 0);
@@ -21788,6 +21792,9 @@
21788
21792
  enumerable: false,
21789
21793
  configurable: true
21790
21794
  });
21795
+ ColorScale.prototype.getValueColor = function (value) {
21796
+ return this.getLegendForValue(value).color;
21797
+ };
21791
21798
  ColorScale.prototype.getLegendForValue = function (value) {
21792
21799
  var index = Math.floor(value * (this._legendItems.length - 1) / this._max);
21793
21800
  return this._legendItems[index];
@@ -25341,7 +25348,7 @@
25341
25348
  this.icon = value.icon;
25342
25349
  this.matIcon = value.matIcon;
25343
25350
  this.matSvgIcon = value.matSvgIcon;
25344
- this.color = value.color;
25351
+ this.color = value.color || this.color; // Keep existing, if not defined in the reference
25345
25352
  },
25346
25353
  enumerable: false,
25347
25354
  configurable: true
@@ -30221,13 +30228,29 @@
30221
30228
  // FOR DEV ONLY ----
30222
30229
  //this.debug = !environment.production;
30223
30230
  }
30224
- Object.defineProperty(AppEntityEditorModal.prototype, "isNewData", {
30231
+ Object.defineProperty(AppEntityEditorModal.prototype, "isNew", {
30225
30232
  get: function () {
30226
30233
  var _a;
30227
- return isNotNil(this._isNewData) ? this._isNewData : isNil((_a = this.data) === null || _a === void 0 ? void 0 : _a.id);
30234
+ return isNotNil(this._isNew) ? this._isNew : isNil((_a = this.data) === null || _a === void 0 ? void 0 : _a.id);
30235
+ },
30236
+ set: function (value) {
30237
+ this._isNew = value;
30228
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
+ */
30229
30252
  set: function (value) {
30230
- this._isNewData = value;
30253
+ this.isNew = value;
30231
30254
  },
30232
30255
  enumerable: false,
30233
30256
  configurable: true
@@ -30708,6 +30731,7 @@
30708
30731
  onAfterModalInit: [{ type: i0.Input }],
30709
30732
  onDelete: [{ type: i0.Input }],
30710
30733
  i18nSuffix: [{ type: i0.Input }],
30734
+ isNew: [{ type: i0.Input }],
30711
30735
  isNewData: [{ type: i0.Input }],
30712
30736
  disabled: [{ type: i0.Input }]
30713
30737
  };