@sumaris-net/ngx-components 2.4.5 → 2.4.6

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.
@@ -18123,6 +18123,9 @@ let Configuration = Configuration_1 = class Configuration extends Software {
18123
18123
  getProperty(definition) {
18124
18124
  return isNotNil(this.properties[definition.key]) ? this.properties[definition.key] : (definition.defaultValue || undefined);
18125
18125
  }
18126
+ hasProperty(definition) {
18127
+ return isNotNil(this.properties[definition.key]);
18128
+ }
18126
18129
  };
18127
18130
  Configuration = Configuration_1 = __decorate([
18128
18131
  EntityClass({ typename: 'ConfigurationVO' })
@@ -20626,7 +20629,8 @@ class EntityFilter extends Entity {
20626
20629
  const filterFns = this.buildFilter();
20627
20630
  if (isEmptyArray(filterFns))
20628
20631
  return undefined;
20629
- return (entity) => !filterFns.find(fn => !fn(entity));
20632
+ // All filter functions should return true
20633
+ return (entity) => filterFns.every(fn => fn(entity));
20630
20634
  }
20631
20635
  buildFilter() {
20632
20636
  // Can be completed by subclasses
@@ -27068,9 +27072,9 @@ class AppTable {
27068
27072
  return true; // Already the edited row
27069
27073
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
27070
27074
  return false;
27071
- if (!this.confirmEditCreate()) {
27075
+ const confirmed = this.confirmEditCreate();
27076
+ if (!confirmed)
27072
27077
  return false;
27073
- }
27074
27078
  if (!row.editing && !this.loading) {
27075
27079
  this.focusColumn = opts && opts.focusColumn || this.focusColumn;
27076
27080
  this._dataSource.startEdit(row);