@sumaris-net/ngx-components 2.6.23-beta9 → 2.6.24
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/esm2020/src/app/core/graphql/graphql.service.mjs +22 -22
- package/esm2020/src/app/core/services/model/config.model.mjs +4 -4
- package/esm2020/src/app/shared/named-filter/named-filter-selector.component.mjs +6 -9
- package/esm2020/src/app/shared/shared.module.mjs +2 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +8 -13
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +8 -13
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/graphql/graphql.service.d.ts +18 -18
- package/src/app/shared/named-filter/named-filter-selector.component.d.ts +0 -1
- package/src/assets/manifest.json +1 -1
|
@@ -19340,12 +19340,12 @@ let Configuration = Configuration_1 = class Configuration extends Software {
|
|
|
19340
19340
|
getPropertyAsNumbers(definition) {
|
|
19341
19341
|
const value = this.getProperty(definition);
|
|
19342
19342
|
if (typeof value === 'string')
|
|
19343
|
-
return value.split(',').map(parseFloat) || undefined;
|
|
19343
|
+
return value.split(',').filter(isNotNilOrBlank).map(parseFloat) || undefined;
|
|
19344
19344
|
return isNotNil(value) ? [parseFloat(value)] : undefined;
|
|
19345
19345
|
}
|
|
19346
19346
|
getPropertyAsStrings(definition) {
|
|
19347
19347
|
const value = this.getProperty(definition);
|
|
19348
|
-
return value && value.split(',') || undefined;
|
|
19348
|
+
return value && value.split(',').filter(isNotNilOrBlank) || undefined;
|
|
19349
19349
|
}
|
|
19350
19350
|
getProperty(definition) {
|
|
19351
19351
|
return isNotNil(this.properties[definition.key]) ? this.properties[definition.key] : undefinedIfNull(definition.defaultValue);
|
|
@@ -21319,7 +21319,11 @@ class NamedFilterSelector extends AppForm {
|
|
|
21319
21319
|
this.filterDeleted = new EventEmitter();
|
|
21320
21320
|
}
|
|
21321
21321
|
set entityName(entityName) {
|
|
21322
|
-
this.
|
|
21322
|
+
if (!entityName || this._entityName === entityName)
|
|
21323
|
+
return;
|
|
21324
|
+
this._entityName = entityName;
|
|
21325
|
+
// Update autocomplete filter
|
|
21326
|
+
this.autocompleteField.filter = { ...this.autocompleteField.filter, ...this.getFilter() };
|
|
21323
21327
|
}
|
|
21324
21328
|
;
|
|
21325
21329
|
get entityName() {
|
|
@@ -21346,13 +21350,6 @@ class NamedFilterSelector extends AppForm {
|
|
|
21346
21350
|
});
|
|
21347
21351
|
this.registerSubscription(this.form.controls.namedFilter.valueChanges.pipe(debounceTime(100), distinctUntilChanged()).subscribe((value) => this.onFilterChanges(value)));
|
|
21348
21352
|
}
|
|
21349
|
-
setEntityName(entityName) {
|
|
21350
|
-
if (!entityName || this._entityName === entityName)
|
|
21351
|
-
return;
|
|
21352
|
-
this._entityName = entityName;
|
|
21353
|
-
// Update autocomplete filter
|
|
21354
|
-
this.autocompleteField.filter = { ...this.autocompleteField.filter, ...this.getFilter() };
|
|
21355
|
-
}
|
|
21356
21353
|
getFilter() {
|
|
21357
21354
|
return {
|
|
21358
21355
|
entityName: this.entityName,
|
|
@@ -21545,9 +21542,7 @@ class SharedModule {
|
|
|
21545
21542
|
{
|
|
21546
21543
|
provide: ENVIRONMENT,
|
|
21547
21544
|
deps: [EnvironmentLoader, APP_INITIALIZER],
|
|
21548
|
-
useFactory: (loader) =>
|
|
21549
|
-
return loader.get();
|
|
21550
|
-
},
|
|
21545
|
+
useFactory: (loader) => loader.get(),
|
|
21551
21546
|
},
|
|
21552
21547
|
] : []),
|
|
21553
21548
|
// { provide: StorageService, useClass: StorageService, deps: [ENVIRONMENT]},
|