@sumaris-net/ngx-components 2.6.4-rc7 → 2.6.4-rc9
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/form/form.utils.mjs +1 -1
- package/esm2020/src/app/shared/forms.mjs +7 -2
- package/esm2020/src/app/shared/named-filter/named-filter.service.mjs +3 -9
- package/fesm2015/sumaris-net.ngx-components.mjs +8 -6
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +8 -6
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +2 -0
- package/src/app/shared/forms.d.ts +1 -0
- package/src/app/shared/named-filter/named-filter.service.d.ts +2 -9
|
@@ -4324,7 +4324,12 @@ function addValueInArray(arrayControl, createControl, equals, isEmpty, value, op
|
|
|
4324
4324
|
control.disable({ emitEvent: false });
|
|
4325
4325
|
else if (!disabled && control.disabled)
|
|
4326
4326
|
control.enable({ emitEvent: false });
|
|
4327
|
-
|
|
4327
|
+
if (options?.insertAt) {
|
|
4328
|
+
arrayControl.insert(options.insertAt, control, options);
|
|
4329
|
+
}
|
|
4330
|
+
else {
|
|
4331
|
+
arrayControl.push(control, options);
|
|
4332
|
+
}
|
|
4328
4333
|
hasChanged = true;
|
|
4329
4334
|
}
|
|
4330
4335
|
if (hasChanged) {
|
|
@@ -23047,7 +23052,7 @@ NamedFilterFilter = __decorate([
|
|
|
23047
23052
|
const APP_NAMED_FILTER_SERVICE = new InjectionToken('namedFilterService');
|
|
23048
23053
|
// @dynamic
|
|
23049
23054
|
class AbstractNamedFilterService extends BaseEntityService {
|
|
23050
|
-
constructor(graphql, platform,
|
|
23055
|
+
constructor(graphql, platform, dataType, filterType, options) {
|
|
23051
23056
|
super(graphql, platform, dataType, filterType, {
|
|
23052
23057
|
defaultSortBy: 'name',
|
|
23053
23058
|
defaultSortDirection: 'asc',
|
|
@@ -23055,11 +23060,8 @@ class AbstractNamedFilterService extends BaseEntityService {
|
|
|
23055
23060
|
});
|
|
23056
23061
|
this.graphql = graphql;
|
|
23057
23062
|
this.platform = platform;
|
|
23058
|
-
this.accountService = accountService;
|
|
23059
23063
|
this.dataType = dataType;
|
|
23060
23064
|
this.filterType = filterType;
|
|
23061
|
-
this.network = network;
|
|
23062
|
-
this.translate = translate;
|
|
23063
23065
|
this.options = options;
|
|
23064
23066
|
this._logPrefix = '[named-filter-service] ';
|
|
23065
23067
|
}
|
|
@@ -23113,7 +23115,7 @@ AbstractNamedFilterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
|
|
|
23113
23115
|
AbstractNamedFilterService.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: AbstractNamedFilterService, usesInheritance: true, ngImport: i0 });
|
|
23114
23116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AbstractNamedFilterService, decorators: [{
|
|
23115
23117
|
type: Directive
|
|
23116
|
-
}], ctorParameters: function () { return [{ type: GraphqlService }, { type: PlatformService }, { type:
|
|
23118
|
+
}], ctorParameters: function () { return [{ type: GraphqlService }, { type: PlatformService }, { type: undefined }, { type: undefined }, { type: undefined }]; } });
|
|
23117
23119
|
|
|
23118
23120
|
class AppGraphQLModule {
|
|
23119
23121
|
constructor() {
|