@senior-agronegocio/angular-components 1.0.9 → 1.0.10
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/esm2022/agro-angular-components.module.mjs +19 -4
- package/esm2022/fields/lookups/config/lookup-host-project-config.mjs +7 -4
- package/esm2022/fields/lookups/config/lookup-runtime-context.mjs +12 -0
- package/esm2022/fields/lookups/core/agro-branch-lookup.mjs +6 -5
- package/esm2022/fields/lookups/core/agro-company-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-currency-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-deposit-balance-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-deposit-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-driver-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-e095-pes-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-family-group-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-family-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-harvest-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-increase-product-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-lookup-base.mjs +3 -3
- package/esm2022/fields/lookups/core/agro-producer-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-product-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-product-variety-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-romaneo-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-rural-estate-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/agro-ticket-lookup.mjs +4 -3
- package/esm2022/fields/lookups/core/index.mjs +1 -1
- package/esm2022/fields/lookups/core/lookup-field.types.mjs +1 -1
- package/esm2022/fields/lookups/index.mjs +1 -1
- package/esm2022/fields/lookups/services/agro-lookup-entity.service.mjs +25 -15
- package/fesm2022/senior-agronegocio-angular-components.mjs +545 -510
- package/fesm2022/senior-agronegocio-angular-components.mjs.map +1 -1
- package/fields/lookups/config/lookup-host-project-config.d.ts +2 -2
- package/fields/lookups/config/lookup-runtime-context.d.ts +3 -0
- package/fields/lookups/core/index.d.ts +1 -1
- package/fields/lookups/core/lookup-field.types.d.ts +7 -1
- package/fields/lookups/index.d.ts +1 -0
- package/fields/lookups/services/agro-lookup-entity.service.d.ts +4 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import moment from 'moment';
|
|
|
2
2
|
import * as i6 from '@angular/common';
|
|
3
3
|
import { CommonModule, registerLocaleData, DecimalPipe, DatePipe, CurrencyPipe } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { NgModule, EventEmitter, Component, Input, Output, Injectable, Pipe, LOCALE_ID, Directive, ViewChild, inject, ChangeDetectorRef, ChangeDetectionStrategy, InjectionToken, Optional, Inject } from '@angular/core';
|
|
5
|
+
import { NgModule, EventEmitter, Component, Input, Output, Injectable, Pipe, LOCALE_ID, Directive, ViewChild, inject, ChangeDetectorRef, ChangeDetectionStrategy, InjectionToken, Optional, Inject, ENVIRONMENT_INITIALIZER, Injector } from '@angular/core';
|
|
6
6
|
import * as i11 from '@angular/forms';
|
|
7
7
|
import { FormsModule, ReactiveFormsModule, Validators, FormControl, FormGroup, FormArray } from '@angular/forms';
|
|
8
8
|
import * as i18 from '@seniorsistemas/angular-components/badge';
|
|
@@ -10472,7 +10472,7 @@ class AgroLookupBase {
|
|
|
10472
10472
|
autofill;
|
|
10473
10473
|
customFilterQuery;
|
|
10474
10474
|
constructor(config, defaults) {
|
|
10475
|
-
const { formGroup,
|
|
10475
|
+
const { formGroup, formFieldName, filterFieldName, required, dependsOf, size, autofill, customFilterQuery } = config;
|
|
10476
10476
|
this.formGroup = formGroup;
|
|
10477
10477
|
this.formFieldName = formFieldName ?? defaults.defaultFieldName;
|
|
10478
10478
|
this.filterFieldName = filterFieldName ?? defaults.defaultFilterFieldName;
|
|
@@ -10481,7 +10481,7 @@ class AgroLookupBase {
|
|
|
10481
10481
|
this.size = size ?? 4;
|
|
10482
10482
|
this.autofill = autofill ?? (defaults.defaultAutofill ?? true);
|
|
10483
10483
|
this.customFilterQuery = customFilterQuery;
|
|
10484
|
-
this.translate =
|
|
10484
|
+
this.translate = new LibTranslationService();
|
|
10485
10485
|
}
|
|
10486
10486
|
makeIt() {
|
|
10487
10487
|
return new AgroBaseLookupField({
|
|
@@ -10498,35 +10498,54 @@ class AgroLookupBase {
|
|
|
10498
10498
|
}
|
|
10499
10499
|
}
|
|
10500
10500
|
|
|
10501
|
-
const LIB_CONFIG = new InjectionToken('AgroAngularComponentsConfig');
|
|
10502
|
-
|
|
10503
10501
|
function resolveLookupHostProjectConfig(config, serviceName) {
|
|
10504
|
-
|
|
10505
|
-
|
|
10502
|
+
const domain = config?.domain;
|
|
10503
|
+
const service = config?.service;
|
|
10504
|
+
if (domain && service) {
|
|
10505
|
+
return { domain, service };
|
|
10506
|
+
}
|
|
10507
|
+
throw new Error(`[${serviceName}] Missing host project configuration. ` +
|
|
10508
|
+
`Provide 'domain' and 'service' in the lookup config or configure LIB_CONFIG in the module.`);
|
|
10509
|
+
}
|
|
10510
|
+
|
|
10511
|
+
let runtimeInjector = null;
|
|
10512
|
+
function registerLookupRuntimeInjector(injector) {
|
|
10513
|
+
runtimeInjector = injector;
|
|
10514
|
+
}
|
|
10515
|
+
function resolveLookupRuntimeInjector(callerName) {
|
|
10516
|
+
if (!runtimeInjector) {
|
|
10517
|
+
throw new Error(`[${callerName}] No runtime injector registered. ` +
|
|
10518
|
+
`Import AgroAngularComponentsModule in your AppModule or call registerLookupRuntimeInjector().`);
|
|
10506
10519
|
}
|
|
10507
|
-
|
|
10520
|
+
return runtimeInjector;
|
|
10508
10521
|
}
|
|
10509
10522
|
|
|
10510
10523
|
const HTTP_STATUS_UNAUTHORIZED = 401;
|
|
10511
10524
|
class AgroLookupEntityService {
|
|
10525
|
+
constructor(httpOrConfig, messageServiceOrEntityPath, entityUrlOrActionsPath, actionsUrl, translate) {
|
|
10526
|
+
if (typeof messageServiceOrEntityPath === 'string' && !translate) {
|
|
10527
|
+
const resolvedConfig = resolveLookupHostProjectConfig(httpOrConfig, this.constructor.name);
|
|
10528
|
+
const runtimeInjector = resolveLookupRuntimeInjector(this.constructor.name);
|
|
10529
|
+
this.http = runtimeInjector.get(HttpClient);
|
|
10530
|
+
this.messageService = runtimeInjector.get(MessageService);
|
|
10531
|
+
this.translate = new LibTranslationService();
|
|
10532
|
+
this.entityUrl = `${resolvedConfig.domain}/${resolvedConfig.service}/${messageServiceOrEntityPath}`;
|
|
10533
|
+
this.actionsUrl = `${resolvedConfig.domain}/${resolvedConfig.service}/${entityUrlOrActionsPath || 'actions'}`;
|
|
10534
|
+
}
|
|
10535
|
+
else {
|
|
10536
|
+
this.http = httpOrConfig;
|
|
10537
|
+
this.messageService = messageServiceOrEntityPath;
|
|
10538
|
+
this.entityUrl = entityUrlOrActionsPath;
|
|
10539
|
+
this.actionsUrl = actionsUrl;
|
|
10540
|
+
this.translate = translate;
|
|
10541
|
+
}
|
|
10542
|
+
this.defaultCatch = this.defaultCatch.bind(this);
|
|
10543
|
+
}
|
|
10512
10544
|
http;
|
|
10513
10545
|
messageService;
|
|
10514
10546
|
entityUrl;
|
|
10515
10547
|
actionsUrl;
|
|
10516
10548
|
translate;
|
|
10517
|
-
constructor(http, messageService, entityUrl, actionsUrl, translate) {
|
|
10518
|
-
this.http = http;
|
|
10519
|
-
this.messageService = messageService;
|
|
10520
|
-
this.entityUrl = entityUrl;
|
|
10521
|
-
this.actionsUrl = actionsUrl;
|
|
10522
|
-
this.translate = translate;
|
|
10523
|
-
this.http = http;
|
|
10524
|
-
this.messageService = messageService;
|
|
10525
|
-
this.entityUrl = entityUrl;
|
|
10526
|
-
this.actionsUrl = actionsUrl;
|
|
10527
|
-
this.translate = translate;
|
|
10528
|
-
this.defaultCatch = this.defaultCatch.bind(this);
|
|
10529
|
-
}
|
|
10530
10549
|
getSortOrderSuffix(order) {
|
|
10531
10550
|
if (order === 1) {
|
|
10532
10551
|
return ' asc';
|
|
@@ -10626,44 +10645,11 @@ class AgroLookupEntityService {
|
|
|
10626
10645
|
}
|
|
10627
10646
|
}
|
|
10628
10647
|
|
|
10629
|
-
class AgroLookupE070EmpService extends AgroLookupEntityService {
|
|
10630
|
-
http;
|
|
10631
|
-
messageService;
|
|
10632
|
-
translate;
|
|
10633
|
-
constructor(http, messageService, translate, config) {
|
|
10634
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE070EmpService');
|
|
10635
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e070emp`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10636
|
-
this.http = http;
|
|
10637
|
-
this.messageService = messageService;
|
|
10638
|
-
this.translate = translate;
|
|
10639
|
-
}
|
|
10640
|
-
listExternalE070Emp(listParams) {
|
|
10641
|
-
return this.http
|
|
10642
|
-
.get('erpx_fnd/empresa/entities/e070emp', {
|
|
10643
|
-
params: this.getListQueryParams(listParams),
|
|
10644
|
-
})
|
|
10645
|
-
.pipe(this.defaultCatch());
|
|
10646
|
-
}
|
|
10647
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070EmpService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10648
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070EmpService, providedIn: 'root' });
|
|
10649
|
-
}
|
|
10650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070EmpService, decorators: [{
|
|
10651
|
-
type: Injectable,
|
|
10652
|
-
args: [{
|
|
10653
|
-
providedIn: 'root',
|
|
10654
|
-
}]
|
|
10655
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10656
|
-
type: Optional
|
|
10657
|
-
}, {
|
|
10658
|
-
type: Inject,
|
|
10659
|
-
args: [LIB_CONFIG]
|
|
10660
|
-
}] }] });
|
|
10661
|
-
|
|
10662
10648
|
class AgroCompanyLookup extends AgroLookupBase {
|
|
10663
10649
|
e070EmpService;
|
|
10664
10650
|
constructor(config) {
|
|
10665
10651
|
super(config, { defaultFieldName: 'company', defaultFilterFieldName: 'company.id' });
|
|
10666
|
-
this.e070EmpService = config.
|
|
10652
|
+
this.e070EmpService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroCompanyLookup.name), 'entities/e070emp');
|
|
10667
10653
|
}
|
|
10668
10654
|
getLookupConfig() {
|
|
10669
10655
|
return {
|
|
@@ -10681,51 +10667,18 @@ class AgroCompanyLookup extends AgroLookupBase {
|
|
|
10681
10667
|
}
|
|
10682
10668
|
}
|
|
10683
10669
|
|
|
10684
|
-
class AgroLookupE070FilService extends AgroLookupEntityService {
|
|
10685
|
-
http;
|
|
10686
|
-
messageService;
|
|
10687
|
-
translate;
|
|
10688
|
-
constructor(http, messageService, translate, config) {
|
|
10689
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE070FilService');
|
|
10690
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e070fil`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10691
|
-
this.http = http;
|
|
10692
|
-
this.messageService = messageService;
|
|
10693
|
-
this.translate = translate;
|
|
10694
|
-
}
|
|
10695
|
-
listExternalE070Fil(listParams) {
|
|
10696
|
-
return this.http
|
|
10697
|
-
.get('erpx_fnd/empresa/entities/e070fil', {
|
|
10698
|
-
params: this.getListQueryParams(listParams),
|
|
10699
|
-
})
|
|
10700
|
-
.pipe(this.defaultCatch());
|
|
10701
|
-
}
|
|
10702
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070FilService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10703
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070FilService, providedIn: 'root' });
|
|
10704
|
-
}
|
|
10705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070FilService, decorators: [{
|
|
10706
|
-
type: Injectable,
|
|
10707
|
-
args: [{
|
|
10708
|
-
providedIn: 'root',
|
|
10709
|
-
}]
|
|
10710
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10711
|
-
type: Optional
|
|
10712
|
-
}, {
|
|
10713
|
-
type: Inject,
|
|
10714
|
-
args: [LIB_CONFIG]
|
|
10715
|
-
}] }] });
|
|
10716
|
-
|
|
10717
10670
|
class AgroBranchLookup extends AgroLookupBase {
|
|
10718
10671
|
e070FilService;
|
|
10719
10672
|
constructor(config) {
|
|
10720
10673
|
super(config, { defaultFieldName: 'branch', defaultFilterFieldName: 'branch.id' });
|
|
10721
|
-
this.e070FilService = config.
|
|
10674
|
+
this.e070FilService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroBranchLookup.name), 'entities/e070fil');
|
|
10722
10675
|
}
|
|
10723
10676
|
getLookupConfig() {
|
|
10724
10677
|
return {
|
|
10725
10678
|
labelKey: 'agro.angular_components.lookup_contract_branch',
|
|
10726
10679
|
searchTitleKey: 'agro.angular_components.lookup_contract_branch_search_title',
|
|
10727
|
-
lookupDisplayFields: ['codFil', 'nomFil'
|
|
10728
|
-
advancedDisplayFields: ['codFil', 'nomFil'
|
|
10680
|
+
lookupDisplayFields: ['codFil', 'nomFil'],
|
|
10681
|
+
advancedDisplayFields: ['codFil', 'nomFil'],
|
|
10729
10682
|
searchFields: [
|
|
10730
10683
|
{ name: 'codFil', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
10731
10684
|
{ name: 'nomFil', label: this.translate.instant('agro.angular_components.lookup_label_branch'), type: 'string' },
|
|
@@ -10738,44 +10691,11 @@ class AgroBranchLookup extends AgroLookupBase {
|
|
|
10738
10691
|
}
|
|
10739
10692
|
}
|
|
10740
10693
|
|
|
10741
|
-
class AgroLookupE205DepService extends AgroLookupEntityService {
|
|
10742
|
-
http;
|
|
10743
|
-
messageService;
|
|
10744
|
-
translate;
|
|
10745
|
-
constructor(http, messageService, translate, config) {
|
|
10746
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE205DepService');
|
|
10747
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e205dep`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10748
|
-
this.http = http;
|
|
10749
|
-
this.messageService = messageService;
|
|
10750
|
-
this.translate = translate;
|
|
10751
|
-
}
|
|
10752
|
-
listExternalE205Dep(listParams) {
|
|
10753
|
-
return this.http
|
|
10754
|
-
.get('erpx_sup/foundation/entities/e205dep', {
|
|
10755
|
-
params: this.getListQueryParams(listParams),
|
|
10756
|
-
})
|
|
10757
|
-
.pipe(this.defaultCatch());
|
|
10758
|
-
}
|
|
10759
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE205DepService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10760
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE205DepService, providedIn: 'root' });
|
|
10761
|
-
}
|
|
10762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE205DepService, decorators: [{
|
|
10763
|
-
type: Injectable,
|
|
10764
|
-
args: [{
|
|
10765
|
-
providedIn: 'root',
|
|
10766
|
-
}]
|
|
10767
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10768
|
-
type: Optional
|
|
10769
|
-
}, {
|
|
10770
|
-
type: Inject,
|
|
10771
|
-
args: [LIB_CONFIG]
|
|
10772
|
-
}] }] });
|
|
10773
|
-
|
|
10774
10694
|
class AgroDepositLookup extends AgroLookupBase {
|
|
10775
10695
|
e205DepService;
|
|
10776
10696
|
constructor(config) {
|
|
10777
10697
|
super(config, { defaultFieldName: 'e205dep', defaultFilterFieldName: 'e205dep.id' });
|
|
10778
|
-
this.e205DepService = config.
|
|
10698
|
+
this.e205DepService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroDepositLookup.name), 'entities/e205dep');
|
|
10779
10699
|
}
|
|
10780
10700
|
getLookupConfig() {
|
|
10781
10701
|
return {
|
|
@@ -10793,44 +10713,11 @@ class AgroDepositLookup extends AgroLookupBase {
|
|
|
10793
10713
|
}
|
|
10794
10714
|
}
|
|
10795
10715
|
|
|
10796
|
-
class AgroLookupE210DxpService extends AgroLookupEntityService {
|
|
10797
|
-
http;
|
|
10798
|
-
messageService;
|
|
10799
|
-
translate;
|
|
10800
|
-
constructor(http, messageService, translate, config) {
|
|
10801
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE210DxpService');
|
|
10802
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e210dxp`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10803
|
-
this.http = http;
|
|
10804
|
-
this.messageService = messageService;
|
|
10805
|
-
this.translate = translate;
|
|
10806
|
-
}
|
|
10807
|
-
listExternalE210Dxp(listParams) {
|
|
10808
|
-
return this.http
|
|
10809
|
-
.get('erpx_sup/foundation/entities/e210dxp', {
|
|
10810
|
-
params: this.getListQueryParams(listParams),
|
|
10811
|
-
})
|
|
10812
|
-
.pipe(this.defaultCatch());
|
|
10813
|
-
}
|
|
10814
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE210DxpService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10815
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE210DxpService, providedIn: 'root' });
|
|
10816
|
-
}
|
|
10817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE210DxpService, decorators: [{
|
|
10818
|
-
type: Injectable,
|
|
10819
|
-
args: [{
|
|
10820
|
-
providedIn: 'root',
|
|
10821
|
-
}]
|
|
10822
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10823
|
-
type: Optional
|
|
10824
|
-
}, {
|
|
10825
|
-
type: Inject,
|
|
10826
|
-
args: [LIB_CONFIG]
|
|
10827
|
-
}] }] });
|
|
10828
|
-
|
|
10829
10716
|
class AgroDepositBalanceLookup extends AgroLookupBase {
|
|
10830
10717
|
e210DxpService;
|
|
10831
10718
|
constructor(config) {
|
|
10832
10719
|
super(config, { defaultFieldName: 'e210dxp', defaultFilterFieldName: 'e210dxp.id' });
|
|
10833
|
-
this.e210DxpService = config.
|
|
10720
|
+
this.e210DxpService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroDepositBalanceLookup.name), 'entities/e210dxp');
|
|
10834
10721
|
}
|
|
10835
10722
|
getLookupConfig() {
|
|
10836
10723
|
return {
|
|
@@ -10848,37 +10735,11 @@ class AgroDepositBalanceLookup extends AgroLookupBase {
|
|
|
10848
10735
|
}
|
|
10849
10736
|
}
|
|
10850
10737
|
|
|
10851
|
-
class AgroLookupDriverService extends AgroLookupEntityService {
|
|
10852
|
-
http;
|
|
10853
|
-
messageService;
|
|
10854
|
-
translate;
|
|
10855
|
-
constructor(http, messageService, translate, config) {
|
|
10856
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupDriverService');
|
|
10857
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/driver`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10858
|
-
this.http = http;
|
|
10859
|
-
this.messageService = messageService;
|
|
10860
|
-
this.translate = translate;
|
|
10861
|
-
}
|
|
10862
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupDriverService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10863
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupDriverService, providedIn: 'root' });
|
|
10864
|
-
}
|
|
10865
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupDriverService, decorators: [{
|
|
10866
|
-
type: Injectable,
|
|
10867
|
-
args: [{
|
|
10868
|
-
providedIn: 'root',
|
|
10869
|
-
}]
|
|
10870
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10871
|
-
type: Optional
|
|
10872
|
-
}, {
|
|
10873
|
-
type: Inject,
|
|
10874
|
-
args: [LIB_CONFIG]
|
|
10875
|
-
}] }] });
|
|
10876
|
-
|
|
10877
10738
|
class AgroDriverLookup extends AgroLookupBase {
|
|
10878
10739
|
driverService;
|
|
10879
10740
|
constructor(config) {
|
|
10880
10741
|
super(config, { defaultFieldName: 'driver', defaultFilterFieldName: 'driver.id', defaultAutofill: false });
|
|
10881
|
-
this.driverService = config.
|
|
10742
|
+
this.driverService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroDriverLookup.name), 'entities/driver');
|
|
10882
10743
|
}
|
|
10883
10744
|
getLookupConfig() {
|
|
10884
10745
|
return {
|
|
@@ -10896,44 +10757,11 @@ class AgroDriverLookup extends AgroLookupBase {
|
|
|
10896
10757
|
}
|
|
10897
10758
|
}
|
|
10898
10759
|
|
|
10899
|
-
class AgroLookupE095PesService extends AgroLookupEntityService {
|
|
10900
|
-
http;
|
|
10901
|
-
messageService;
|
|
10902
|
-
translate;
|
|
10903
|
-
constructor(http, messageService, translate, config) {
|
|
10904
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE095PesService');
|
|
10905
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e095pes`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10906
|
-
this.http = http;
|
|
10907
|
-
this.messageService = messageService;
|
|
10908
|
-
this.translate = translate;
|
|
10909
|
-
}
|
|
10910
|
-
listExternalE095Pes(listParams) {
|
|
10911
|
-
return this.http
|
|
10912
|
-
.get('erpx_fnd/pessoa/entities/e095pes', {
|
|
10913
|
-
params: this.getListQueryParams(listParams),
|
|
10914
|
-
})
|
|
10915
|
-
.pipe(this.defaultCatch());
|
|
10916
|
-
}
|
|
10917
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE095PesService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10918
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE095PesService, providedIn: 'root' });
|
|
10919
|
-
}
|
|
10920
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE095PesService, decorators: [{
|
|
10921
|
-
type: Injectable,
|
|
10922
|
-
args: [{
|
|
10923
|
-
providedIn: 'root',
|
|
10924
|
-
}]
|
|
10925
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10926
|
-
type: Optional
|
|
10927
|
-
}, {
|
|
10928
|
-
type: Inject,
|
|
10929
|
-
args: [LIB_CONFIG]
|
|
10930
|
-
}] }] });
|
|
10931
|
-
|
|
10932
10760
|
class AgroE095PesLookup extends AgroLookupBase {
|
|
10933
10761
|
e095PesService;
|
|
10934
10762
|
constructor(config) {
|
|
10935
10763
|
super(config, { defaultFieldName: 'e095pes', defaultFilterFieldName: 'e095pes.id', defaultAutofill: false });
|
|
10936
|
-
this.e095PesService = config.
|
|
10764
|
+
this.e095PesService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroE095PesLookup.name), 'entities/e095pes');
|
|
10937
10765
|
}
|
|
10938
10766
|
getLookupConfig() {
|
|
10939
10767
|
return {
|
|
@@ -10951,37 +10779,11 @@ class AgroE095PesLookup extends AgroLookupBase {
|
|
|
10951
10779
|
}
|
|
10952
10780
|
}
|
|
10953
10781
|
|
|
10954
|
-
class AgroLookupE012FamService extends AgroLookupEntityService {
|
|
10955
|
-
http;
|
|
10956
|
-
messageService;
|
|
10957
|
-
translate;
|
|
10958
|
-
constructor(http, messageService, translate, config) {
|
|
10959
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE012FamService');
|
|
10960
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e012fam`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
10961
|
-
this.http = http;
|
|
10962
|
-
this.messageService = messageService;
|
|
10963
|
-
this.translate = translate;
|
|
10964
|
-
}
|
|
10965
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE012FamService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10966
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE012FamService, providedIn: 'root' });
|
|
10967
|
-
}
|
|
10968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE012FamService, decorators: [{
|
|
10969
|
-
type: Injectable,
|
|
10970
|
-
args: [{
|
|
10971
|
-
providedIn: 'root',
|
|
10972
|
-
}]
|
|
10973
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
10974
|
-
type: Optional
|
|
10975
|
-
}, {
|
|
10976
|
-
type: Inject,
|
|
10977
|
-
args: [LIB_CONFIG]
|
|
10978
|
-
}] }] });
|
|
10979
|
-
|
|
10980
10782
|
class AgroFamilyLookup extends AgroLookupBase {
|
|
10981
10783
|
e012FamService;
|
|
10982
10784
|
constructor(config) {
|
|
10983
10785
|
super(config, { defaultFieldName: 'e012fam', defaultFilterFieldName: 'e012fam.id' });
|
|
10984
|
-
this.e012FamService = config.
|
|
10786
|
+
this.e012FamService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroFamilyLookup.name), 'entities/e012fam');
|
|
10985
10787
|
}
|
|
10986
10788
|
getLookupConfig() {
|
|
10987
10789
|
return {
|
|
@@ -10999,19 +10801,311 @@ class AgroFamilyLookup extends AgroLookupBase {
|
|
|
10999
10801
|
}
|
|
11000
10802
|
}
|
|
11001
10803
|
|
|
11002
|
-
class
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE075DerService');
|
|
11008
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e075der`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11009
|
-
this.http = http;
|
|
11010
|
-
this.messageService = messageService;
|
|
11011
|
-
this.translate = translate;
|
|
10804
|
+
class AgroProductLookup extends AgroLookupBase {
|
|
10805
|
+
e075DerService;
|
|
10806
|
+
constructor(config) {
|
|
10807
|
+
super(config, { defaultFieldName: 'contractProducts', defaultFilterFieldName: 'contractProducts.product.id' });
|
|
10808
|
+
this.e075DerService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroProductLookup.name), 'entities/e075der');
|
|
11012
10809
|
}
|
|
11013
|
-
|
|
11014
|
-
return
|
|
10810
|
+
getLookupConfig() {
|
|
10811
|
+
return {
|
|
10812
|
+
labelKey: 'agro.angular_components.lookup_product',
|
|
10813
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_product_product_search_title',
|
|
10814
|
+
lookupDisplayFields: ['codDer', 'desDer'],
|
|
10815
|
+
advancedDisplayFields: ['codDer', 'desDer'],
|
|
10816
|
+
searchFields: [
|
|
10817
|
+
{ name: 'codDer', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'string' },
|
|
10818
|
+
{ name: 'desDer', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
10819
|
+
],
|
|
10820
|
+
dependencies: [{ formControlName: 'company', apiField: 'e070emp.id' }],
|
|
10821
|
+
service: this.e075DerService,
|
|
10822
|
+
};
|
|
10823
|
+
}
|
|
10824
|
+
}
|
|
10825
|
+
|
|
10826
|
+
class AgroProducerLookup extends AgroLookupBase {
|
|
10827
|
+
e001PesService;
|
|
10828
|
+
constructor(config) {
|
|
10829
|
+
super(config, { defaultFieldName: 'e001pes', defaultFilterFieldName: 'contractProducts.contractProductProducers.producer.id' });
|
|
10830
|
+
this.e001PesService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroProducerLookup.name), 'entities/e001pes');
|
|
10831
|
+
}
|
|
10832
|
+
getLookupConfig() {
|
|
10833
|
+
return {
|
|
10834
|
+
labelKey: 'agro.angular_components.lookup_producer',
|
|
10835
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_product_producer_producer_search_title',
|
|
10836
|
+
lookupDisplayFields: ['cnpCpf', 'nomPes'],
|
|
10837
|
+
advancedDisplayFields: ['cnpCpf', 'nomPes', 'sitPes', 'extIntSts', 'extIntMsg'],
|
|
10838
|
+
searchFields: [
|
|
10839
|
+
{ name: 'cnpCpf', label: this.translate.instant('agro.angular_components.lookup_cnpj_cpf'), type: 'string' },
|
|
10840
|
+
{ name: 'nomPes', label: this.translate.instant('agro.angular_components.lookup_label_name'), type: 'string' },
|
|
10841
|
+
],
|
|
10842
|
+
service: this.e001PesService,
|
|
10843
|
+
applyCPFCNPJFormat: true,
|
|
10844
|
+
};
|
|
10845
|
+
}
|
|
10846
|
+
}
|
|
10847
|
+
|
|
10848
|
+
class AgroHarvestLookup extends AgroLookupBase {
|
|
10849
|
+
e113SafService;
|
|
10850
|
+
constructor(config) {
|
|
10851
|
+
super(config, { defaultFieldName: 'e113saf', defaultFilterFieldName: 'contractProducts.harvest.id' });
|
|
10852
|
+
this.e113SafService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroHarvestLookup.name), 'entities/e113saf');
|
|
10853
|
+
}
|
|
10854
|
+
getLookupConfig() {
|
|
10855
|
+
return {
|
|
10856
|
+
labelKey: 'agro.angular_components.lookup_contract_product_harvest',
|
|
10857
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_product_harvest_search_title',
|
|
10858
|
+
lookupDisplayFields: ['codSaf', 'desSaf'],
|
|
10859
|
+
advancedDisplayFields: ['codSaf', 'desSaf'],
|
|
10860
|
+
searchFields: [
|
|
10861
|
+
{ name: 'codSaf', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'string' },
|
|
10862
|
+
{ name: 'desSaf', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
10863
|
+
],
|
|
10864
|
+
dependencies: [{ formControlName: 'company', apiField: 'e070emp.id' }],
|
|
10865
|
+
service: this.e113SafService,
|
|
10866
|
+
};
|
|
10867
|
+
}
|
|
10868
|
+
}
|
|
10869
|
+
|
|
10870
|
+
class AgroCurrencyLookup extends AgroLookupBase {
|
|
10871
|
+
e031MoeService;
|
|
10872
|
+
constructor(config) {
|
|
10873
|
+
super(config, { defaultFieldName: 'currency', defaultFilterFieldName: 'currency.id' });
|
|
10874
|
+
this.e031MoeService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroCurrencyLookup.name), 'entities/e031moe');
|
|
10875
|
+
}
|
|
10876
|
+
getLookupConfig() {
|
|
10877
|
+
return {
|
|
10878
|
+
labelKey: 'agro.angular_components.lookup_contract_product_currency',
|
|
10879
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_product_currency_search_title',
|
|
10880
|
+
lookupDisplayFields: ['codMoe', 'desMoe'],
|
|
10881
|
+
advancedDisplayFields: ['codMoe', 'desMoe', 'sigMoe'],
|
|
10882
|
+
searchFields: [
|
|
10883
|
+
{ name: 'codMoe', label: this.translate.instant('agro.angular_components.lookup_e_031_moe_cod_moe'), type: 'string' },
|
|
10884
|
+
{ name: 'desMoe', label: this.translate.instant('agro.angular_components.lookup_e_031_moe_des_moe'), type: 'string' },
|
|
10885
|
+
],
|
|
10886
|
+
service: this.e031MoeService,
|
|
10887
|
+
};
|
|
10888
|
+
}
|
|
10889
|
+
}
|
|
10890
|
+
|
|
10891
|
+
const LICENSE_PLATE_FIELD = 'balanceEntryControl.licensePlate';
|
|
10892
|
+
class AgroTicketLookup extends AgroLookupBase {
|
|
10893
|
+
ticketService;
|
|
10894
|
+
constructor(config) {
|
|
10895
|
+
super(config, { defaultFieldName: 'ticket', defaultFilterFieldName: 'ticket.id', defaultAutofill: false });
|
|
10896
|
+
this.ticketService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroTicketLookup.name), 'entities/ticket');
|
|
10897
|
+
}
|
|
10898
|
+
getLookupConfig() {
|
|
10899
|
+
return {
|
|
10900
|
+
labelKey: 'agro.angular_components.lookup_ticket',
|
|
10901
|
+
searchTitleKey: 'agro.angular_components.lookup_ticket_search_title',
|
|
10902
|
+
lookupDisplayFields: ['number', LICENSE_PLATE_FIELD],
|
|
10903
|
+
advancedDisplayFields: ['number', LICENSE_PLATE_FIELD],
|
|
10904
|
+
searchFields: [
|
|
10905
|
+
{ name: 'number', label: this.translate.instant('agro.angular_components.lookup_ticket'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
10906
|
+
{ name: LICENSE_PLATE_FIELD, label: this.translate.instant('agro.angular_components.lookup_license_plate'), type: 'string' },
|
|
10907
|
+
],
|
|
10908
|
+
service: this.ticketService,
|
|
10909
|
+
};
|
|
10910
|
+
}
|
|
10911
|
+
}
|
|
10912
|
+
|
|
10913
|
+
class AgroRomaneoLookup extends AgroLookupBase {
|
|
10914
|
+
ticketService;
|
|
10915
|
+
constructor(config) {
|
|
10916
|
+
super(config, { defaultFieldName: 'romaneo', defaultFilterFieldName: 'romaneo.id', defaultAutofill: false });
|
|
10917
|
+
this.ticketService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroRomaneoLookup.name), 'entities/ticket');
|
|
10918
|
+
}
|
|
10919
|
+
getLookupConfig() {
|
|
10920
|
+
return {
|
|
10921
|
+
labelKey: 'agro.angular_components.lookup_romaneo',
|
|
10922
|
+
searchTitleKey: 'agro.angular_components.lookup_romaneo_search_title',
|
|
10923
|
+
lookupDisplayFields: ['ticket.number', 'licensePlate'],
|
|
10924
|
+
advancedDisplayFields: ['ticket.number', 'licensePlate'],
|
|
10925
|
+
searchFields: [
|
|
10926
|
+
{ name: 'ticket.number', label: this.translate.instant('agro.angular_components.lookup_ticket'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
10927
|
+
{ name: 'licensePlate', label: this.translate.instant('agro.angular_components.lookup_license_plate'), type: 'string' },
|
|
10928
|
+
],
|
|
10929
|
+
service: this.ticketService,
|
|
10930
|
+
};
|
|
10931
|
+
}
|
|
10932
|
+
}
|
|
10933
|
+
|
|
10934
|
+
class AgroProductVarietyLookup extends AgroLookupBase {
|
|
10935
|
+
productVarietyService;
|
|
10936
|
+
constructor(config) {
|
|
10937
|
+
super(config, { defaultFieldName: 'productVariety', defaultFilterFieldName: 'productVariety.id', defaultAutofill: false });
|
|
10938
|
+
this.productVarietyService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroProductVarietyLookup.name), 'entities/productVariety');
|
|
10939
|
+
}
|
|
10940
|
+
getLookupConfig() {
|
|
10941
|
+
return {
|
|
10942
|
+
labelKey: 'agro.angular_components.lookup_product_variety',
|
|
10943
|
+
searchTitleKey: 'agro.angular_components.lookup_product_variety_search_title',
|
|
10944
|
+
lookupDisplayFields: ['variety.code', 'variety.description', 'royaltiesPercentage'],
|
|
10945
|
+
advancedDisplayFields: ['variety.code', 'variety.description', 'royaltiesPercentage'],
|
|
10946
|
+
searchFields: [
|
|
10947
|
+
{ name: 'variety.code', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
10948
|
+
{ name: 'variety.description', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
10949
|
+
{ name: 'royaltiesPercentage', label: this.translate.instant('agro.angular_components.lookup_royalties_percentage'), type: 'number' },
|
|
10950
|
+
],
|
|
10951
|
+
service: this.productVarietyService,
|
|
10952
|
+
};
|
|
10953
|
+
}
|
|
10954
|
+
}
|
|
10955
|
+
|
|
10956
|
+
class AgroRuralEstateLookup extends AgroLookupBase {
|
|
10957
|
+
ruralEstateService;
|
|
10958
|
+
constructor(config) {
|
|
10959
|
+
super(config, { defaultFieldName: 'ruralEstate', defaultFilterFieldName: 'ruralEstate.id' });
|
|
10960
|
+
this.ruralEstateService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroRuralEstateLookup.name), 'entities/ruralEstate');
|
|
10961
|
+
}
|
|
10962
|
+
getLookupConfig() {
|
|
10963
|
+
return {
|
|
10964
|
+
labelKey: 'agro.angular_components.lookup_contract_product_producer_rural_estate',
|
|
10965
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_product_producer_rural_estate_search_title',
|
|
10966
|
+
lookupDisplayFields: ['sequential', 'name'],
|
|
10967
|
+
advancedDisplayFields: ['sequential', 'name', 'ie'],
|
|
10968
|
+
searchFields: [
|
|
10969
|
+
{ name: 'sequential', label: this.translate.instant('agro.angular_components.lookup_rural_estate_sequential'), type: 'integer' },
|
|
10970
|
+
{ name: 'name', label: this.translate.instant('agro.angular_components.lookup_rural_estate_name'), type: 'string' },
|
|
10971
|
+
],
|
|
10972
|
+
dependencies: [{ formControlName: 'producer', apiField: 'producers.id' }],
|
|
10973
|
+
service: this.ruralEstateService,
|
|
10974
|
+
};
|
|
10975
|
+
}
|
|
10976
|
+
}
|
|
10977
|
+
|
|
10978
|
+
const INCREASE_COD_FIELD = 'increase.codInc';
|
|
10979
|
+
const INCREASE_DES_FIELD = 'increase.desInc';
|
|
10980
|
+
const INCREASE_VALUE_FIELD = 'valInc';
|
|
10981
|
+
class AgroIncreaseProductLookup extends AgroLookupBase {
|
|
10982
|
+
increaseProductService;
|
|
10983
|
+
constructor(config) {
|
|
10984
|
+
super(config, { defaultFieldName: 'increaseProduct', defaultFilterFieldName: 'increaseProduct.id' });
|
|
10985
|
+
this.increaseProductService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroIncreaseProductLookup.name), 'entities/increaseProduct');
|
|
10986
|
+
}
|
|
10987
|
+
getLookupConfig() {
|
|
10988
|
+
return {
|
|
10989
|
+
labelKey: 'agro.angular_components.lookup_contract_financial_increase',
|
|
10990
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_financial_increase_search_title',
|
|
10991
|
+
lookupDisplayFields: [INCREASE_COD_FIELD, INCREASE_DES_FIELD],
|
|
10992
|
+
advancedDisplayFields: [INCREASE_COD_FIELD, INCREASE_DES_FIELD, INCREASE_VALUE_FIELD],
|
|
10993
|
+
searchFields: [
|
|
10994
|
+
{ name: INCREASE_COD_FIELD, label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'string' },
|
|
10995
|
+
{ name: INCREASE_DES_FIELD, label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
10996
|
+
],
|
|
10997
|
+
dependencies: [
|
|
10998
|
+
{ formControlName: 'company', apiField: 'company.id' },
|
|
10999
|
+
{ formControlName: 'product', apiField: 'product.id' },
|
|
11000
|
+
],
|
|
11001
|
+
service: this.increaseProductService,
|
|
11002
|
+
};
|
|
11003
|
+
}
|
|
11004
|
+
}
|
|
11005
|
+
|
|
11006
|
+
class AgroFamilyGroupLookup extends AgroLookupBase {
|
|
11007
|
+
familyGroupService;
|
|
11008
|
+
constructor(config) {
|
|
11009
|
+
super(config, { defaultFieldName: 'familyGroup', defaultFilterFieldName: 'familyGroup.id', defaultAutofill: false });
|
|
11010
|
+
this.familyGroupService = new AgroLookupEntityService(resolveLookupHostProjectConfig(config, AgroFamilyGroupLookup.name), 'entities/familyGroup');
|
|
11011
|
+
}
|
|
11012
|
+
getLookupConfig() {
|
|
11013
|
+
return {
|
|
11014
|
+
labelKey: 'agro.angular_components.lookup_contract_family_group',
|
|
11015
|
+
searchTitleKey: 'agro.angular_components.lookup_contract_family_group_search_title',
|
|
11016
|
+
lookupDisplayFields: ['code', 'name'],
|
|
11017
|
+
advancedDisplayFields: ['code', 'name', 'status'],
|
|
11018
|
+
searchFields: [
|
|
11019
|
+
{ name: 'code', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'integer' },
|
|
11020
|
+
{ name: 'name', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
11021
|
+
],
|
|
11022
|
+
dependencies: [{ formControlName: 'producer', apiField: 'producers.id' }],
|
|
11023
|
+
service: this.familyGroupService,
|
|
11024
|
+
};
|
|
11025
|
+
}
|
|
11026
|
+
}
|
|
11027
|
+
|
|
11028
|
+
const LIB_CONFIG = new InjectionToken('AgroAngularComponentsConfig');
|
|
11029
|
+
|
|
11030
|
+
class AgroLookupE070EmpService extends AgroLookupEntityService {
|
|
11031
|
+
http;
|
|
11032
|
+
messageService;
|
|
11033
|
+
translate;
|
|
11034
|
+
constructor(http, messageService, translate, config) {
|
|
11035
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE070EmpService');
|
|
11036
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e070emp`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11037
|
+
this.http = http;
|
|
11038
|
+
this.messageService = messageService;
|
|
11039
|
+
this.translate = translate;
|
|
11040
|
+
}
|
|
11041
|
+
listExternalE070Emp(listParams) {
|
|
11042
|
+
return this.http
|
|
11043
|
+
.get('erpx_fnd/empresa/entities/e070emp', {
|
|
11044
|
+
params: this.getListQueryParams(listParams),
|
|
11045
|
+
})
|
|
11046
|
+
.pipe(this.defaultCatch());
|
|
11047
|
+
}
|
|
11048
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070EmpService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11049
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070EmpService, providedIn: 'root' });
|
|
11050
|
+
}
|
|
11051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070EmpService, decorators: [{
|
|
11052
|
+
type: Injectable,
|
|
11053
|
+
args: [{
|
|
11054
|
+
providedIn: 'root',
|
|
11055
|
+
}]
|
|
11056
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11057
|
+
type: Optional
|
|
11058
|
+
}, {
|
|
11059
|
+
type: Inject,
|
|
11060
|
+
args: [LIB_CONFIG]
|
|
11061
|
+
}] }] });
|
|
11062
|
+
|
|
11063
|
+
class AgroLookupE070FilService extends AgroLookupEntityService {
|
|
11064
|
+
http;
|
|
11065
|
+
messageService;
|
|
11066
|
+
translate;
|
|
11067
|
+
constructor(http, messageService, translate, config) {
|
|
11068
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE070FilService');
|
|
11069
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e070fil`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11070
|
+
this.http = http;
|
|
11071
|
+
this.messageService = messageService;
|
|
11072
|
+
this.translate = translate;
|
|
11073
|
+
}
|
|
11074
|
+
listExternalE070Fil(listParams) {
|
|
11075
|
+
return this.http
|
|
11076
|
+
.get('erpx_fnd/empresa/entities/e070fil', {
|
|
11077
|
+
params: this.getListQueryParams(listParams),
|
|
11078
|
+
})
|
|
11079
|
+
.pipe(this.defaultCatch());
|
|
11080
|
+
}
|
|
11081
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070FilService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11082
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070FilService, providedIn: 'root' });
|
|
11083
|
+
}
|
|
11084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE070FilService, decorators: [{
|
|
11085
|
+
type: Injectable,
|
|
11086
|
+
args: [{
|
|
11087
|
+
providedIn: 'root',
|
|
11088
|
+
}]
|
|
11089
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11090
|
+
type: Optional
|
|
11091
|
+
}, {
|
|
11092
|
+
type: Inject,
|
|
11093
|
+
args: [LIB_CONFIG]
|
|
11094
|
+
}] }] });
|
|
11095
|
+
|
|
11096
|
+
class AgroLookupE075DerService extends AgroLookupEntityService {
|
|
11097
|
+
http;
|
|
11098
|
+
messageService;
|
|
11099
|
+
translate;
|
|
11100
|
+
constructor(http, messageService, translate, config) {
|
|
11101
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE075DerService');
|
|
11102
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e075der`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11103
|
+
this.http = http;
|
|
11104
|
+
this.messageService = messageService;
|
|
11105
|
+
this.translate = translate;
|
|
11106
|
+
}
|
|
11107
|
+
listExternalE075Der(listParams) {
|
|
11108
|
+
return this.http
|
|
11015
11109
|
.get('erpx_fnd/produto/entities/e075der', {
|
|
11016
11110
|
params: this.getListQueryParams(listParams),
|
|
11017
11111
|
})
|
|
@@ -11032,50 +11126,179 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11032
11126
|
args: [LIB_CONFIG]
|
|
11033
11127
|
}] }] });
|
|
11034
11128
|
|
|
11035
|
-
class
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11129
|
+
class AgroLookupE001PesService extends AgroLookupEntityService {
|
|
11130
|
+
http;
|
|
11131
|
+
messageService;
|
|
11132
|
+
translate;
|
|
11133
|
+
constructor(http, messageService, translate, config) {
|
|
11134
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE001PesService');
|
|
11135
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e001pes`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11136
|
+
this.http = http;
|
|
11137
|
+
this.messageService = messageService;
|
|
11138
|
+
this.translate = translate;
|
|
11040
11139
|
}
|
|
11041
|
-
|
|
11042
|
-
return
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
searchFields: [
|
|
11048
|
-
{ name: 'codDer', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'string' },
|
|
11049
|
-
{ name: 'desDer', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
11050
|
-
],
|
|
11051
|
-
dependencies: [{ formControlName: 'company', apiField: 'e070emp.id' }],
|
|
11052
|
-
service: this.e075DerService,
|
|
11053
|
-
};
|
|
11140
|
+
listExternalE001Pes(listParams) {
|
|
11141
|
+
return this.http
|
|
11142
|
+
.get('erpx_fnd/pessoa/entities/e001pes', {
|
|
11143
|
+
params: this.getListQueryParams(listParams),
|
|
11144
|
+
})
|
|
11145
|
+
.pipe(this.defaultCatch());
|
|
11054
11146
|
}
|
|
11147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE001PesService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11148
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE001PesService, providedIn: 'root' });
|
|
11055
11149
|
}
|
|
11150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE001PesService, decorators: [{
|
|
11151
|
+
type: Injectable,
|
|
11152
|
+
args: [{
|
|
11153
|
+
providedIn: 'root',
|
|
11154
|
+
}]
|
|
11155
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11156
|
+
type: Optional
|
|
11157
|
+
}, {
|
|
11158
|
+
type: Inject,
|
|
11159
|
+
args: [LIB_CONFIG]
|
|
11160
|
+
}] }] });
|
|
11161
|
+
|
|
11162
|
+
class AgroLookupE095PesService extends AgroLookupEntityService {
|
|
11163
|
+
http;
|
|
11164
|
+
messageService;
|
|
11165
|
+
translate;
|
|
11166
|
+
constructor(http, messageService, translate, config) {
|
|
11167
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE095PesService');
|
|
11168
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e095pes`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11169
|
+
this.http = http;
|
|
11170
|
+
this.messageService = messageService;
|
|
11171
|
+
this.translate = translate;
|
|
11172
|
+
}
|
|
11173
|
+
listExternalE095Pes(listParams) {
|
|
11174
|
+
return this.http
|
|
11175
|
+
.get('erpx_fnd/pessoa/entities/e095pes', {
|
|
11176
|
+
params: this.getListQueryParams(listParams),
|
|
11177
|
+
})
|
|
11178
|
+
.pipe(this.defaultCatch());
|
|
11179
|
+
}
|
|
11180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE095PesService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11181
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE095PesService, providedIn: 'root' });
|
|
11182
|
+
}
|
|
11183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE095PesService, decorators: [{
|
|
11184
|
+
type: Injectable,
|
|
11185
|
+
args: [{
|
|
11186
|
+
providedIn: 'root',
|
|
11187
|
+
}]
|
|
11188
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11189
|
+
type: Optional
|
|
11190
|
+
}, {
|
|
11191
|
+
type: Inject,
|
|
11192
|
+
args: [LIB_CONFIG]
|
|
11193
|
+
}] }] });
|
|
11194
|
+
|
|
11195
|
+
class AgroLookupE012FamService extends AgroLookupEntityService {
|
|
11196
|
+
http;
|
|
11197
|
+
messageService;
|
|
11198
|
+
translate;
|
|
11199
|
+
constructor(http, messageService, translate, config) {
|
|
11200
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE012FamService');
|
|
11201
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e012fam`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11202
|
+
this.http = http;
|
|
11203
|
+
this.messageService = messageService;
|
|
11204
|
+
this.translate = translate;
|
|
11205
|
+
}
|
|
11206
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE012FamService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11207
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE012FamService, providedIn: 'root' });
|
|
11208
|
+
}
|
|
11209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE012FamService, decorators: [{
|
|
11210
|
+
type: Injectable,
|
|
11211
|
+
args: [{
|
|
11212
|
+
providedIn: 'root',
|
|
11213
|
+
}]
|
|
11214
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11215
|
+
type: Optional
|
|
11216
|
+
}, {
|
|
11217
|
+
type: Inject,
|
|
11218
|
+
args: [LIB_CONFIG]
|
|
11219
|
+
}] }] });
|
|
11220
|
+
|
|
11221
|
+
class AgroLookupE113SafService extends AgroLookupEntityService {
|
|
11222
|
+
http;
|
|
11223
|
+
messageService;
|
|
11224
|
+
translate;
|
|
11225
|
+
constructor(http, messageService, translate, config) {
|
|
11226
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE113SafService');
|
|
11227
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e113saf`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11228
|
+
this.http = http;
|
|
11229
|
+
this.messageService = messageService;
|
|
11230
|
+
this.translate = translate;
|
|
11231
|
+
}
|
|
11232
|
+
listExternalE113Saf(listParams) {
|
|
11233
|
+
return this.http
|
|
11234
|
+
.get('agro/harvest/entities/e113saf', {
|
|
11235
|
+
params: this.getListQueryParams(listParams),
|
|
11236
|
+
})
|
|
11237
|
+
.pipe(this.defaultCatch());
|
|
11238
|
+
}
|
|
11239
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE113SafService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11240
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE113SafService, providedIn: 'root' });
|
|
11241
|
+
}
|
|
11242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE113SafService, decorators: [{
|
|
11243
|
+
type: Injectable,
|
|
11244
|
+
args: [{
|
|
11245
|
+
providedIn: 'root',
|
|
11246
|
+
}]
|
|
11247
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11248
|
+
type: Optional
|
|
11249
|
+
}, {
|
|
11250
|
+
type: Inject,
|
|
11251
|
+
args: [LIB_CONFIG]
|
|
11252
|
+
}] }] });
|
|
11253
|
+
|
|
11254
|
+
class AgroLookupE031MoeService extends AgroLookupEntityService {
|
|
11255
|
+
http;
|
|
11256
|
+
messageService;
|
|
11257
|
+
translate;
|
|
11258
|
+
constructor(http, messageService, translate, config) {
|
|
11259
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE031MoeService');
|
|
11260
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e031moe`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11261
|
+
this.http = http;
|
|
11262
|
+
this.messageService = messageService;
|
|
11263
|
+
this.translate = translate;
|
|
11264
|
+
}
|
|
11265
|
+
listExternalE031Moe(listParams) {
|
|
11266
|
+
return this.http
|
|
11267
|
+
.get('erpx_fnd/financeiro/entities/e031moe', {
|
|
11268
|
+
params: this.getListQueryParams(listParams),
|
|
11269
|
+
})
|
|
11270
|
+
.pipe(this.defaultCatch());
|
|
11271
|
+
}
|
|
11272
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE031MoeService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11273
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE031MoeService, providedIn: 'root' });
|
|
11274
|
+
}
|
|
11275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE031MoeService, decorators: [{
|
|
11276
|
+
type: Injectable,
|
|
11277
|
+
args: [{
|
|
11278
|
+
providedIn: 'root',
|
|
11279
|
+
}]
|
|
11280
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$2.MessageService }, { type: LibTranslationService }, { type: undefined, decorators: [{
|
|
11281
|
+
type: Optional
|
|
11282
|
+
}, {
|
|
11283
|
+
type: Inject,
|
|
11284
|
+
args: [LIB_CONFIG]
|
|
11285
|
+
}] }] });
|
|
11056
11286
|
|
|
11057
|
-
class
|
|
11287
|
+
class AgroLookupDriverService extends AgroLookupEntityService {
|
|
11058
11288
|
http;
|
|
11059
11289
|
messageService;
|
|
11060
11290
|
translate;
|
|
11061
11291
|
constructor(http, messageService, translate, config) {
|
|
11062
|
-
const resolved = resolveLookupHostProjectConfig(config, '
|
|
11063
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/
|
|
11292
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupDriverService');
|
|
11293
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/driver`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11064
11294
|
this.http = http;
|
|
11065
11295
|
this.messageService = messageService;
|
|
11066
11296
|
this.translate = translate;
|
|
11067
11297
|
}
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
.get('erpx_fnd/pessoa/entities/e001pes', {
|
|
11071
|
-
params: this.getListQueryParams(listParams),
|
|
11072
|
-
})
|
|
11073
|
-
.pipe(this.defaultCatch());
|
|
11074
|
-
}
|
|
11075
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE001PesService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11076
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE001PesService, providedIn: 'root' });
|
|
11298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupDriverService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11299
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupDriverService, providedIn: 'root' });
|
|
11077
11300
|
}
|
|
11078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupDriverService, decorators: [{
|
|
11079
11302
|
type: Injectable,
|
|
11080
11303
|
args: [{
|
|
11081
11304
|
providedIn: 'root',
|
|
@@ -11087,50 +11310,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11087
11310
|
args: [LIB_CONFIG]
|
|
11088
11311
|
}] }] });
|
|
11089
11312
|
|
|
11090
|
-
class
|
|
11091
|
-
e001PesService;
|
|
11092
|
-
constructor(config) {
|
|
11093
|
-
super(config, { defaultFieldName: 'e001pes', defaultFilterFieldName: 'contractProducts.contractProductProducers.producer.id' });
|
|
11094
|
-
this.e001PesService = config.injector.get(AgroLookupE001PesService);
|
|
11095
|
-
}
|
|
11096
|
-
getLookupConfig() {
|
|
11097
|
-
return {
|
|
11098
|
-
labelKey: 'agro.angular_components.lookup_producer',
|
|
11099
|
-
searchTitleKey: 'agro.angular_components.lookup_contract_product_producer_producer_search_title',
|
|
11100
|
-
lookupDisplayFields: ['cnpCpf', 'nomPes'],
|
|
11101
|
-
advancedDisplayFields: ['cnpCpf', 'nomPes', 'sitPes', 'extIntSts', 'extIntMsg'],
|
|
11102
|
-
searchFields: [
|
|
11103
|
-
{ name: 'cnpCpf', label: this.translate.instant('agro.angular_components.lookup_cnpj_cpf'), type: 'string' },
|
|
11104
|
-
{ name: 'nomPes', label: this.translate.instant('agro.angular_components.lookup_label_name'), type: 'string' },
|
|
11105
|
-
],
|
|
11106
|
-
service: this.e001PesService,
|
|
11107
|
-
applyCPFCNPJFormat: true,
|
|
11108
|
-
};
|
|
11109
|
-
}
|
|
11110
|
-
}
|
|
11111
|
-
|
|
11112
|
-
class AgroLookupE113SafService extends AgroLookupEntityService {
|
|
11313
|
+
class AgroLookupE205DepService extends AgroLookupEntityService {
|
|
11113
11314
|
http;
|
|
11114
11315
|
messageService;
|
|
11115
11316
|
translate;
|
|
11116
11317
|
constructor(http, messageService, translate, config) {
|
|
11117
|
-
const resolved = resolveLookupHostProjectConfig(config, '
|
|
11118
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/
|
|
11318
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE205DepService');
|
|
11319
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e205dep`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11119
11320
|
this.http = http;
|
|
11120
11321
|
this.messageService = messageService;
|
|
11121
11322
|
this.translate = translate;
|
|
11122
11323
|
}
|
|
11123
|
-
|
|
11324
|
+
listExternalE205Dep(listParams) {
|
|
11124
11325
|
return this.http
|
|
11125
|
-
.get('
|
|
11326
|
+
.get('erpx_sup/foundation/entities/e205dep', {
|
|
11126
11327
|
params: this.getListQueryParams(listParams),
|
|
11127
11328
|
})
|
|
11128
11329
|
.pipe(this.defaultCatch());
|
|
11129
11330
|
}
|
|
11130
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11131
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE205DepService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11332
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE205DepService, providedIn: 'root' });
|
|
11132
11333
|
}
|
|
11133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE205DepService, decorators: [{
|
|
11134
11335
|
type: Injectable,
|
|
11135
11336
|
args: [{
|
|
11136
11337
|
providedIn: 'root',
|
|
@@ -11142,50 +11343,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11142
11343
|
args: [LIB_CONFIG]
|
|
11143
11344
|
}] }] });
|
|
11144
11345
|
|
|
11145
|
-
class
|
|
11146
|
-
e113SafService;
|
|
11147
|
-
constructor(config) {
|
|
11148
|
-
super(config, { defaultFieldName: 'e113saf', defaultFilterFieldName: 'contractProducts.harvest.id' });
|
|
11149
|
-
this.e113SafService = config.injector.get(AgroLookupE113SafService);
|
|
11150
|
-
}
|
|
11151
|
-
getLookupConfig() {
|
|
11152
|
-
return {
|
|
11153
|
-
labelKey: 'agro.angular_components.lookup_contract_product_harvest',
|
|
11154
|
-
searchTitleKey: 'agro.angular_components.lookup_contract_product_harvest_search_title',
|
|
11155
|
-
lookupDisplayFields: ['codSaf', 'desSaf'],
|
|
11156
|
-
advancedDisplayFields: ['codSaf', 'desSaf'],
|
|
11157
|
-
searchFields: [
|
|
11158
|
-
{ name: 'codSaf', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'string' },
|
|
11159
|
-
{ name: 'desSaf', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
11160
|
-
],
|
|
11161
|
-
dependencies: [{ formControlName: 'company', apiField: 'e070emp.id' }],
|
|
11162
|
-
service: this.e113SafService,
|
|
11163
|
-
};
|
|
11164
|
-
}
|
|
11165
|
-
}
|
|
11166
|
-
|
|
11167
|
-
class AgroLookupE031MoeService extends AgroLookupEntityService {
|
|
11346
|
+
class AgroLookupE210DxpService extends AgroLookupEntityService {
|
|
11168
11347
|
http;
|
|
11169
11348
|
messageService;
|
|
11170
11349
|
translate;
|
|
11171
11350
|
constructor(http, messageService, translate, config) {
|
|
11172
|
-
const resolved = resolveLookupHostProjectConfig(config, '
|
|
11173
|
-
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/
|
|
11351
|
+
const resolved = resolveLookupHostProjectConfig(config, 'AgroLookupE210DxpService');
|
|
11352
|
+
super(http, messageService, `${resolved.domain}/${resolved.service}/entities/e210dxp`, `${resolved.domain}/${resolved.service}/actions`, translate);
|
|
11174
11353
|
this.http = http;
|
|
11175
11354
|
this.messageService = messageService;
|
|
11176
11355
|
this.translate = translate;
|
|
11177
11356
|
}
|
|
11178
|
-
|
|
11357
|
+
listExternalE210Dxp(listParams) {
|
|
11179
11358
|
return this.http
|
|
11180
|
-
.get('
|
|
11359
|
+
.get('erpx_sup/foundation/entities/e210dxp', {
|
|
11181
11360
|
params: this.getListQueryParams(listParams),
|
|
11182
11361
|
})
|
|
11183
11362
|
.pipe(this.defaultCatch());
|
|
11184
11363
|
}
|
|
11185
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11186
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11364
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE210DxpService, deps: [{ token: i1.HttpClient }, { token: i2$2.MessageService }, { token: LibTranslationService }, { token: LIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11365
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE210DxpService, providedIn: 'root' });
|
|
11187
11366
|
}
|
|
11188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
11367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroLookupE210DxpService, decorators: [{
|
|
11189
11368
|
type: Injectable,
|
|
11190
11369
|
args: [{
|
|
11191
11370
|
providedIn: 'root',
|
|
@@ -11197,27 +11376,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11197
11376
|
args: [LIB_CONFIG]
|
|
11198
11377
|
}] }] });
|
|
11199
11378
|
|
|
11200
|
-
class AgroCurrencyLookup extends AgroLookupBase {
|
|
11201
|
-
e031MoeService;
|
|
11202
|
-
constructor(config) {
|
|
11203
|
-
super(config, { defaultFieldName: 'currency', defaultFilterFieldName: 'currency.id' });
|
|
11204
|
-
this.e031MoeService = config.injector.get(AgroLookupE031MoeService);
|
|
11205
|
-
}
|
|
11206
|
-
getLookupConfig() {
|
|
11207
|
-
return {
|
|
11208
|
-
labelKey: 'agro.angular_components.lookup_contract_product_currency',
|
|
11209
|
-
searchTitleKey: 'agro.angular_components.lookup_contract_product_currency_search_title',
|
|
11210
|
-
lookupDisplayFields: ['codMoe', 'desMoe'],
|
|
11211
|
-
advancedDisplayFields: ['codMoe', 'desMoe', 'sigMoe'],
|
|
11212
|
-
searchFields: [
|
|
11213
|
-
{ name: 'codMoe', label: this.translate.instant('agro.angular_components.lookup_e_031_moe_cod_moe'), type: 'string' },
|
|
11214
|
-
{ name: 'desMoe', label: this.translate.instant('agro.angular_components.lookup_e_031_moe_des_moe'), type: 'string' },
|
|
11215
|
-
],
|
|
11216
|
-
service: this.e031MoeService,
|
|
11217
|
-
};
|
|
11218
|
-
}
|
|
11219
|
-
}
|
|
11220
|
-
|
|
11221
11379
|
class AgroLookupTicketService extends AgroLookupEntityService {
|
|
11222
11380
|
http;
|
|
11223
11381
|
messageService;
|
|
@@ -11244,49 +11402,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11244
11402
|
args: [LIB_CONFIG]
|
|
11245
11403
|
}] }] });
|
|
11246
11404
|
|
|
11247
|
-
const LICENSE_PLATE_FIELD = 'balanceEntryControl.licensePlate';
|
|
11248
|
-
class AgroTicketLookup extends AgroLookupBase {
|
|
11249
|
-
ticketService;
|
|
11250
|
-
constructor(config) {
|
|
11251
|
-
super(config, { defaultFieldName: 'ticket', defaultFilterFieldName: 'ticket.id', defaultAutofill: false });
|
|
11252
|
-
this.ticketService = config.injector.get(AgroLookupTicketService);
|
|
11253
|
-
}
|
|
11254
|
-
getLookupConfig() {
|
|
11255
|
-
return {
|
|
11256
|
-
labelKey: 'agro.angular_components.lookup_ticket',
|
|
11257
|
-
searchTitleKey: 'agro.angular_components.lookup_ticket_search_title',
|
|
11258
|
-
lookupDisplayFields: ['number', LICENSE_PLATE_FIELD],
|
|
11259
|
-
advancedDisplayFields: ['number', LICENSE_PLATE_FIELD],
|
|
11260
|
-
searchFields: [
|
|
11261
|
-
{ name: 'number', label: this.translate.instant('agro.angular_components.lookup_ticket'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
11262
|
-
{ name: LICENSE_PLATE_FIELD, label: this.translate.instant('agro.angular_components.lookup_license_plate'), type: 'string' },
|
|
11263
|
-
],
|
|
11264
|
-
service: this.ticketService,
|
|
11265
|
-
};
|
|
11266
|
-
}
|
|
11267
|
-
}
|
|
11268
|
-
|
|
11269
|
-
class AgroRomaneoLookup extends AgroLookupBase {
|
|
11270
|
-
ticketService;
|
|
11271
|
-
constructor(config) {
|
|
11272
|
-
super(config, { defaultFieldName: 'romaneo', defaultFilterFieldName: 'romaneo.id', defaultAutofill: false });
|
|
11273
|
-
this.ticketService = config.injector.get(AgroLookupTicketService);
|
|
11274
|
-
}
|
|
11275
|
-
getLookupConfig() {
|
|
11276
|
-
return {
|
|
11277
|
-
labelKey: 'agro.angular_components.lookup_romaneo',
|
|
11278
|
-
searchTitleKey: 'agro.angular_components.lookup_romaneo_search_title',
|
|
11279
|
-
lookupDisplayFields: ['ticket.number', 'licensePlate'],
|
|
11280
|
-
advancedDisplayFields: ['ticket.number', 'licensePlate'],
|
|
11281
|
-
searchFields: [
|
|
11282
|
-
{ name: 'ticket.number', label: this.translate.instant('agro.angular_components.lookup_ticket'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
11283
|
-
{ name: 'licensePlate', label: this.translate.instant('agro.angular_components.lookup_license_plate'), type: 'string' },
|
|
11284
|
-
],
|
|
11285
|
-
service: this.ticketService,
|
|
11286
|
-
};
|
|
11287
|
-
}
|
|
11288
|
-
}
|
|
11289
|
-
|
|
11290
11405
|
class AgroLookupProductVarietyService extends AgroLookupEntityService {
|
|
11291
11406
|
http;
|
|
11292
11407
|
messageService;
|
|
@@ -11320,28 +11435,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11320
11435
|
args: [LIB_CONFIG]
|
|
11321
11436
|
}] }] });
|
|
11322
11437
|
|
|
11323
|
-
class AgroProductVarietyLookup extends AgroLookupBase {
|
|
11324
|
-
productVarietyService;
|
|
11325
|
-
constructor(config) {
|
|
11326
|
-
super(config, { defaultFieldName: 'productVariety', defaultFilterFieldName: 'productVariety.id', defaultAutofill: false });
|
|
11327
|
-
this.productVarietyService = config.injector.get(AgroLookupProductVarietyService);
|
|
11328
|
-
}
|
|
11329
|
-
getLookupConfig() {
|
|
11330
|
-
return {
|
|
11331
|
-
labelKey: 'agro.angular_components.lookup_product_variety',
|
|
11332
|
-
searchTitleKey: 'agro.angular_components.lookup_product_variety_search_title',
|
|
11333
|
-
lookupDisplayFields: ['variety.code', 'variety.description', 'royaltiesPercentage'],
|
|
11334
|
-
advancedDisplayFields: ['variety.code', 'variety.description', 'royaltiesPercentage'],
|
|
11335
|
-
searchFields: [
|
|
11336
|
-
{ name: 'variety.code', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'integer', allowNegative: false, precision: 11, scale: 0 },
|
|
11337
|
-
{ name: 'variety.description', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
11338
|
-
{ name: 'royaltiesPercentage', label: this.translate.instant('agro.angular_components.lookup_royalties_percentage'), type: 'number' },
|
|
11339
|
-
],
|
|
11340
|
-
service: this.productVarietyService,
|
|
11341
|
-
};
|
|
11342
|
-
}
|
|
11343
|
-
}
|
|
11344
|
-
|
|
11345
11438
|
class AgroLookupRuralEstateService extends AgroLookupEntityService {
|
|
11346
11439
|
http;
|
|
11347
11440
|
messageService;
|
|
@@ -11375,28 +11468,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11375
11468
|
args: [LIB_CONFIG]
|
|
11376
11469
|
}] }] });
|
|
11377
11470
|
|
|
11378
|
-
class AgroRuralEstateLookup extends AgroLookupBase {
|
|
11379
|
-
ruralEstateService;
|
|
11380
|
-
constructor(config) {
|
|
11381
|
-
super(config, { defaultFieldName: 'ruralEstate', defaultFilterFieldName: 'ruralEstate.id' });
|
|
11382
|
-
this.ruralEstateService = config.injector.get(AgroLookupRuralEstateService);
|
|
11383
|
-
}
|
|
11384
|
-
getLookupConfig() {
|
|
11385
|
-
return {
|
|
11386
|
-
labelKey: 'agro.angular_components.lookup_contract_product_producer_rural_estate',
|
|
11387
|
-
searchTitleKey: 'agro.angular_components.lookup_contract_product_producer_rural_estate_search_title',
|
|
11388
|
-
lookupDisplayFields: ['sequential', 'name'],
|
|
11389
|
-
advancedDisplayFields: ['sequential', 'name', 'ie'],
|
|
11390
|
-
searchFields: [
|
|
11391
|
-
{ name: 'sequential', label: this.translate.instant('agro.angular_components.lookup_rural_estate_sequential'), type: 'integer' },
|
|
11392
|
-
{ name: 'name', label: this.translate.instant('agro.angular_components.lookup_rural_estate_name'), type: 'string' },
|
|
11393
|
-
],
|
|
11394
|
-
dependencies: [{ formControlName: 'producer', apiField: 'producers.id' }],
|
|
11395
|
-
service: this.ruralEstateService,
|
|
11396
|
-
};
|
|
11397
|
-
}
|
|
11398
|
-
}
|
|
11399
|
-
|
|
11400
11471
|
class AgroLookupIncreaseProductService extends AgroLookupEntityService {
|
|
11401
11472
|
http;
|
|
11402
11473
|
messageService;
|
|
@@ -11430,34 +11501,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11430
11501
|
args: [LIB_CONFIG]
|
|
11431
11502
|
}] }] });
|
|
11432
11503
|
|
|
11433
|
-
const INCREASE_COD_FIELD = 'increase.codInc';
|
|
11434
|
-
const INCREASE_DES_FIELD = 'increase.desInc';
|
|
11435
|
-
const INCREASE_VALUE_FIELD = 'valInc';
|
|
11436
|
-
class AgroIncreaseProductLookup extends AgroLookupBase {
|
|
11437
|
-
increaseProductService;
|
|
11438
|
-
constructor(config) {
|
|
11439
|
-
super(config, { defaultFieldName: 'increaseProduct', defaultFilterFieldName: 'increaseProduct.id' });
|
|
11440
|
-
this.increaseProductService = config.injector.get(AgroLookupIncreaseProductService);
|
|
11441
|
-
}
|
|
11442
|
-
getLookupConfig() {
|
|
11443
|
-
return {
|
|
11444
|
-
labelKey: 'agro.angular_components.lookup_contract_financial_increase',
|
|
11445
|
-
searchTitleKey: 'agro.angular_components.lookup_contract_financial_increase_search_title',
|
|
11446
|
-
lookupDisplayFields: [INCREASE_COD_FIELD, INCREASE_DES_FIELD],
|
|
11447
|
-
advancedDisplayFields: [INCREASE_COD_FIELD, INCREASE_DES_FIELD, INCREASE_VALUE_FIELD],
|
|
11448
|
-
searchFields: [
|
|
11449
|
-
{ name: INCREASE_COD_FIELD, label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'string' },
|
|
11450
|
-
{ name: INCREASE_DES_FIELD, label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
11451
|
-
],
|
|
11452
|
-
dependencies: [
|
|
11453
|
-
{ formControlName: 'company', apiField: 'company.id' },
|
|
11454
|
-
{ formControlName: 'product', apiField: 'product.id' },
|
|
11455
|
-
],
|
|
11456
|
-
service: this.increaseProductService,
|
|
11457
|
-
};
|
|
11458
|
-
}
|
|
11459
|
-
}
|
|
11460
|
-
|
|
11461
11504
|
class AgroLookupFamilyGroupService extends AgroLookupEntityService {
|
|
11462
11505
|
http;
|
|
11463
11506
|
messageService;
|
|
@@ -11491,28 +11534,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
11491
11534
|
args: [LIB_CONFIG]
|
|
11492
11535
|
}] }] });
|
|
11493
11536
|
|
|
11494
|
-
class AgroFamilyGroupLookup extends AgroLookupBase {
|
|
11495
|
-
familyGroupService;
|
|
11496
|
-
constructor(config) {
|
|
11497
|
-
super(config, { defaultFieldName: 'familyGroup', defaultFilterFieldName: 'familyGroup.id', defaultAutofill: false });
|
|
11498
|
-
this.familyGroupService = config.injector.get(AgroLookupFamilyGroupService);
|
|
11499
|
-
}
|
|
11500
|
-
getLookupConfig() {
|
|
11501
|
-
return {
|
|
11502
|
-
labelKey: 'agro.angular_components.lookup_contract_family_group',
|
|
11503
|
-
searchTitleKey: 'agro.angular_components.lookup_contract_family_group_search_title',
|
|
11504
|
-
lookupDisplayFields: ['code', 'name'],
|
|
11505
|
-
advancedDisplayFields: ['code', 'name', 'status'],
|
|
11506
|
-
searchFields: [
|
|
11507
|
-
{ name: 'code', label: this.translate.instant('agro.angular_components.lookup_label_code'), type: 'integer' },
|
|
11508
|
-
{ name: 'name', label: this.translate.instant('agro.angular_components.lookup_label_description'), type: 'string' },
|
|
11509
|
-
],
|
|
11510
|
-
dependencies: [{ formControlName: 'producer', apiField: 'producers.id' }],
|
|
11511
|
-
service: this.familyGroupService,
|
|
11512
|
-
};
|
|
11513
|
-
}
|
|
11514
|
-
}
|
|
11515
|
-
|
|
11516
11537
|
class AgroAngularComponentsModule {
|
|
11517
11538
|
static forRoot(config) {
|
|
11518
11539
|
return {
|
|
@@ -11527,11 +11548,25 @@ class AgroAngularComponentsModule {
|
|
|
11527
11548
|
}
|
|
11528
11549
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroAngularComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11529
11550
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AgroAngularComponentsModule });
|
|
11530
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroAngularComponentsModule
|
|
11551
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroAngularComponentsModule, providers: [
|
|
11552
|
+
{
|
|
11553
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
11554
|
+
multi: true,
|
|
11555
|
+
useValue: () => registerLookupRuntimeInjector(inject(Injector)),
|
|
11556
|
+
}
|
|
11557
|
+
] });
|
|
11531
11558
|
}
|
|
11532
11559
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgroAngularComponentsModule, decorators: [{
|
|
11533
11560
|
type: NgModule,
|
|
11534
|
-
args: [{
|
|
11561
|
+
args: [{
|
|
11562
|
+
providers: [
|
|
11563
|
+
{
|
|
11564
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
11565
|
+
multi: true,
|
|
11566
|
+
useValue: () => registerLookupRuntimeInjector(inject(Injector)),
|
|
11567
|
+
}
|
|
11568
|
+
]
|
|
11569
|
+
}]
|
|
11535
11570
|
}] });
|
|
11536
11571
|
|
|
11537
11572
|
// Main entry point - exports everything organized by category
|