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