@senior-agronegocio/angular-components 1.0.8 → 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.
Files changed (141) hide show
  1. package/LLM_LIBRARY_GUIDES.md +9 -1
  2. package/README.md +5 -0
  3. package/agro-angular-components.module.d.ts +4 -6
  4. package/esm2022/agro-angular-components.module.mjs +21 -5
  5. package/esm2022/fields/lookups/config/lookup-host-project-config.mjs +10 -0
  6. package/esm2022/fields/lookups/config/lookup-runtime-context.mjs +12 -0
  7. package/esm2022/fields/lookups/core/agro-base-lookup-field.mjs +385 -0
  8. package/esm2022/fields/lookups/core/agro-branch-lookup.mjs +27 -0
  9. package/esm2022/fields/lookups/core/agro-company-lookup.mjs +25 -0
  10. package/esm2022/fields/lookups/core/agro-currency-lookup.mjs +24 -0
  11. package/esm2022/fields/lookups/core/agro-deposit-balance-lookup.mjs +25 -0
  12. package/esm2022/fields/lookups/core/agro-deposit-lookup.mjs +25 -0
  13. package/esm2022/fields/lookups/core/agro-driver-lookup.mjs +25 -0
  14. package/esm2022/fields/lookups/core/agro-e095-pes-lookup.mjs +25 -0
  15. package/esm2022/fields/lookups/core/agro-family-group-lookup.mjs +25 -0
  16. package/esm2022/fields/lookups/core/agro-family-lookup.mjs +25 -0
  17. package/esm2022/fields/lookups/core/agro-harvest-lookup.mjs +25 -0
  18. package/esm2022/fields/lookups/core/agro-increase-product-lookup.mjs +31 -0
  19. package/esm2022/fields/lookups/core/agro-lookup-base.mjs +39 -0
  20. package/esm2022/fields/lookups/core/agro-producer-lookup.mjs +25 -0
  21. package/esm2022/fields/lookups/core/agro-product-lookup.mjs +25 -0
  22. package/esm2022/fields/lookups/core/agro-product-variety-lookup.mjs +25 -0
  23. package/esm2022/fields/lookups/core/agro-romaneo-lookup.mjs +24 -0
  24. package/esm2022/fields/lookups/core/agro-rural-estate-lookup.mjs +25 -0
  25. package/esm2022/fields/lookups/core/agro-ticket-lookup.mjs +25 -0
  26. package/esm2022/fields/lookups/core/index.mjs +21 -0
  27. package/esm2022/fields/lookups/core/lookup-field.handlers.mjs +82 -0
  28. package/esm2022/fields/lookups/core/lookup-field.types.mjs +2 -0
  29. package/esm2022/fields/lookups/index.mjs +5 -0
  30. package/esm2022/fields/lookups/services/agro-lookup-entity.service.mjs +132 -0
  31. package/esm2022/fields/lookups/services/driver/agro-lookup-driver.service.mjs +34 -0
  32. package/esm2022/fields/lookups/services/driver/driver-dto.mjs +2 -0
  33. package/esm2022/fields/lookups/services/e-001-pes/agro-lookup-e001-pes.service.mjs +41 -0
  34. package/esm2022/fields/lookups/services/e-001-pes/e-001-pes-dto.mjs +2 -0
  35. package/esm2022/fields/lookups/services/e-012-fam/agro-lookup-e012-fam.service.mjs +34 -0
  36. package/esm2022/fields/lookups/services/e-012-fam/e-012-fam-dto.mjs +2 -0
  37. package/esm2022/fields/lookups/services/e-031-moe/agro-lookup-e031-moe.service.mjs +41 -0
  38. package/esm2022/fields/lookups/services/e-031-moe/e-031-moe-dto.mjs +2 -0
  39. package/esm2022/fields/lookups/services/e-070-emp/agro-lookup-e070-emp.service.mjs +41 -0
  40. package/esm2022/fields/lookups/services/e-070-emp/e-070-emp-dto.mjs +2 -0
  41. package/esm2022/fields/lookups/services/e-070-fil/agro-lookup-e070-fil.service.mjs +41 -0
  42. package/esm2022/fields/lookups/services/e-070-fil/e-070-fil-dto.mjs +2 -0
  43. package/esm2022/fields/lookups/services/e-075-der/agro-lookup-e075-der.service.mjs +41 -0
  44. package/esm2022/fields/lookups/services/e-075-der/e-075-der-dto.mjs +2 -0
  45. package/esm2022/fields/lookups/services/e-095-pes/agro-lookup-e095-pes.service.mjs +41 -0
  46. package/esm2022/fields/lookups/services/e-095-pes/e-095-pes-dto.mjs +2 -0
  47. package/esm2022/fields/lookups/services/e-113-saf/agro-lookup-e113-saf.service.mjs +41 -0
  48. package/esm2022/fields/lookups/services/e-113-saf/e-113-saf-dto.mjs +2 -0
  49. package/esm2022/fields/lookups/services/e-205-dep/agro-lookup-e205-dep.service.mjs +41 -0
  50. package/esm2022/fields/lookups/services/e-205-dep/e-205-dep-dto.mjs +2 -0
  51. package/esm2022/fields/lookups/services/e-210-dxp/agro-lookup-e210-dxp.service.mjs +41 -0
  52. package/esm2022/fields/lookups/services/e-210-dxp/e-210-dxp-dto.mjs +2 -0
  53. package/esm2022/fields/lookups/services/family-group/agro-lookup-family-group.service.mjs +41 -0
  54. package/esm2022/fields/lookups/services/family-group/family-group-dto.mjs +2 -0
  55. package/esm2022/fields/lookups/services/increase-product/agro-lookup-increase-product.service.mjs +41 -0
  56. package/esm2022/fields/lookups/services/increase-product/increase-product-dto.mjs +2 -0
  57. package/esm2022/fields/lookups/services/index.mjs +18 -0
  58. package/esm2022/fields/lookups/services/product-variety/agro-lookup-product-variety.service.mjs +41 -0
  59. package/esm2022/fields/lookups/services/product-variety/product-variety-dto.mjs +2 -0
  60. package/esm2022/fields/lookups/services/rural-estate/agro-lookup-rural-estate.service.mjs +41 -0
  61. package/esm2022/fields/lookups/services/rural-estate/rural-estate-dto.mjs +2 -0
  62. package/esm2022/fields/lookups/services/ticket/agro-lookup-ticket.service.mjs +34 -0
  63. package/esm2022/fields/lookups/services/ticket/ticket-dto.mjs +2 -0
  64. package/esm2022/fields/lookups/utils/agro-lookup-utils.mjs +303 -0
  65. package/esm2022/fields/lookups/utils/cpf-cnpj-formatter.mjs +23 -0
  66. package/esm2022/fields/lookups/utils/index.mjs +3 -0
  67. package/esm2022/lib-config.token.mjs +3 -0
  68. package/esm2022/public-api.mjs +3 -1
  69. package/esm2022/services/i18n/en-US.mjs +58 -1
  70. package/esm2022/services/i18n/es-CO.mjs +58 -1
  71. package/esm2022/services/i18n/pt-BR.mjs +58 -1
  72. package/fesm2022/senior-agronegocio-angular-components.mjs +2044 -6
  73. package/fesm2022/senior-agronegocio-angular-components.mjs.map +1 -1
  74. package/fields/lookups/config/lookup-host-project-config.d.ts +2 -0
  75. package/fields/lookups/config/lookup-runtime-context.d.ts +3 -0
  76. package/fields/lookups/core/agro-base-lookup-field.d.ts +30 -0
  77. package/fields/lookups/core/agro-branch-lookup.d.ts +7 -0
  78. package/fields/lookups/core/agro-company-lookup.d.ts +7 -0
  79. package/fields/lookups/core/agro-currency-lookup.d.ts +7 -0
  80. package/fields/lookups/core/agro-deposit-balance-lookup.d.ts +7 -0
  81. package/fields/lookups/core/agro-deposit-lookup.d.ts +7 -0
  82. package/fields/lookups/core/agro-driver-lookup.d.ts +7 -0
  83. package/fields/lookups/core/agro-e095-pes-lookup.d.ts +7 -0
  84. package/fields/lookups/core/agro-family-group-lookup.d.ts +7 -0
  85. package/fields/lookups/core/agro-family-lookup.d.ts +7 -0
  86. package/fields/lookups/core/agro-harvest-lookup.d.ts +7 -0
  87. package/fields/lookups/core/agro-increase-product-lookup.d.ts +7 -0
  88. package/fields/lookups/core/agro-lookup-base.d.ts +24 -0
  89. package/fields/lookups/core/agro-producer-lookup.d.ts +7 -0
  90. package/fields/lookups/core/agro-product-lookup.d.ts +7 -0
  91. package/fields/lookups/core/agro-product-variety-lookup.d.ts +7 -0
  92. package/fields/lookups/core/agro-romaneo-lookup.d.ts +7 -0
  93. package/fields/lookups/core/agro-rural-estate-lookup.d.ts +7 -0
  94. package/fields/lookups/core/agro-ticket-lookup.d.ts +7 -0
  95. package/fields/lookups/core/index.d.ts +22 -0
  96. package/fields/lookups/core/lookup-field.handlers.d.ts +12 -0
  97. package/fields/lookups/core/lookup-field.types.d.ts +45 -0
  98. package/fields/lookups/index.d.ts +5 -0
  99. package/fields/lookups/services/agro-lookup-entity.service.d.ts +42 -0
  100. package/fields/lookups/services/driver/agro-lookup-driver.service.d.ts +15 -0
  101. package/fields/lookups/services/driver/driver-dto.d.ts +10 -0
  102. package/fields/lookups/services/e-001-pes/agro-lookup-e001-pes.service.d.ts +16 -0
  103. package/fields/lookups/services/e-001-pes/e-001-pes-dto.d.ts +14 -0
  104. package/fields/lookups/services/e-012-fam/agro-lookup-e012-fam.service.d.ts +15 -0
  105. package/fields/lookups/services/e-012-fam/e-012-fam-dto.d.ts +11 -0
  106. package/fields/lookups/services/e-031-moe/agro-lookup-e031-moe.service.d.ts +16 -0
  107. package/fields/lookups/services/e-031-moe/e-031-moe-dto.d.ts +22 -0
  108. package/fields/lookups/services/e-070-emp/agro-lookup-e070-emp.service.d.ts +16 -0
  109. package/fields/lookups/services/e-070-emp/e-070-emp-dto.d.ts +12 -0
  110. package/fields/lookups/services/e-070-fil/agro-lookup-e070-fil.service.d.ts +16 -0
  111. package/fields/lookups/services/e-070-fil/e-070-fil-dto.d.ts +16 -0
  112. package/fields/lookups/services/e-075-der/agro-lookup-e075-der.service.d.ts +16 -0
  113. package/fields/lookups/services/e-075-der/e-075-der-dto.d.ts +14 -0
  114. package/fields/lookups/services/e-095-pes/agro-lookup-e095-pes.service.d.ts +16 -0
  115. package/fields/lookups/services/e-095-pes/e-095-pes-dto.d.ts +10 -0
  116. package/fields/lookups/services/e-113-saf/agro-lookup-e113-saf.service.d.ts +16 -0
  117. package/fields/lookups/services/e-113-saf/e-113-saf-dto.d.ts +15 -0
  118. package/fields/lookups/services/e-205-dep/agro-lookup-e205-dep.service.d.ts +16 -0
  119. package/fields/lookups/services/e-205-dep/e-205-dep-dto.d.ts +14 -0
  120. package/fields/lookups/services/e-210-dxp/agro-lookup-e210-dxp.service.d.ts +16 -0
  121. package/fields/lookups/services/e-210-dxp/e-210-dxp-dto.d.ts +13 -0
  122. package/fields/lookups/services/family-group/agro-lookup-family-group.service.d.ts +16 -0
  123. package/fields/lookups/services/family-group/family-group-dto.d.ts +14 -0
  124. package/fields/lookups/services/increase-product/agro-lookup-increase-product.service.d.ts +16 -0
  125. package/fields/lookups/services/increase-product/increase-product-dto.d.ts +16 -0
  126. package/fields/lookups/services/index.d.ts +34 -0
  127. package/fields/lookups/services/product-variety/agro-lookup-product-variety.service.d.ts +16 -0
  128. package/fields/lookups/services/product-variety/product-variety-dto.d.ts +14 -0
  129. package/fields/lookups/services/rural-estate/agro-lookup-rural-estate.service.d.ts +16 -0
  130. package/fields/lookups/services/rural-estate/rural-estate-dto.d.ts +28 -0
  131. package/fields/lookups/services/ticket/agro-lookup-ticket.service.d.ts +15 -0
  132. package/fields/lookups/services/ticket/ticket-dto.d.ts +15 -0
  133. package/fields/lookups/utils/agro-lookup-utils.d.ts +37 -0
  134. package/fields/lookups/utils/cpf-cnpj-formatter.d.ts +12 -0
  135. package/fields/lookups/utils/index.d.ts +2 -0
  136. package/lib-config.token.d.ts +6 -0
  137. package/package.json +5 -1
  138. package/public-api.d.ts +2 -0
  139. package/services/i18n/en-US.d.ts +57 -0
  140. package/services/i18n/es-CO.d.ts +57 -0
  141. package/services/i18n/pt-BR.d.ts +57 -0
@@ -0,0 +1,15 @@
1
+ export interface E113SafDto {
2
+ id?: string;
3
+ e070emp?: any;
4
+ codSaf?: string;
5
+ desSaf?: string;
6
+ cptIni?: string;
7
+ cptFim?: string;
8
+ sitSaf?: any;
9
+ extIntSts?: string;
10
+ extIntMsg?: string;
11
+ createdBy?: string;
12
+ createdDate?: Date;
13
+ lastModifiedBy?: string;
14
+ lastModifiedDate?: Date;
15
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService, ListParams } from '../agro-lookup-entity.service';
6
+ import { E205DepDto } from './e-205-dep-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupE205DepService extends AgroLookupEntityService<E205DepDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ listExternalE205Dep(listParams: ListParams): import("rxjs").Observable<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupE205DepService, [null, null, null, { optional: true; }]>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupE205DepService>;
16
+ }
@@ -0,0 +1,14 @@
1
+ export interface E205DepDto {
2
+ id?: string;
3
+ e070emp?: any;
4
+ e070fil?: any;
5
+ codDep?: string;
6
+ desDep?: string;
7
+ sitDep?: any;
8
+ extIntSts?: string;
9
+ extIntMsg?: string;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ lastModifiedBy?: string;
13
+ lastModifiedDate?: Date;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService, ListParams } from '../agro-lookup-entity.service';
6
+ import { E210DxpDto } from './e-210-dxp-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupE210DxpService extends AgroLookupEntityService<E210DxpDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ listExternalE210Dxp(listParams: ListParams): import("rxjs").Observable<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupE210DxpService, [null, null, null, { optional: true; }]>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupE210DxpService>;
16
+ }
@@ -0,0 +1,13 @@
1
+ export interface E210DxpDto {
2
+ id?: string;
3
+ e070emp?: any;
4
+ e075der?: any;
5
+ e205dep?: any;
6
+ sitEst?: any;
7
+ estNeg?: boolean;
8
+ excluido?: boolean;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ lastModifiedBy?: string;
12
+ lastModifiedDate?: Date;
13
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService, ListParams } from '../agro-lookup-entity.service';
6
+ import { FamilyGroupDto } from './family-group-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupFamilyGroupService extends AgroLookupEntityService<FamilyGroupDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ listExternalFamilyGroup(listParams: ListParams): import("rxjs").Observable<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupFamilyGroupService, [null, null, null, { optional: true; }]>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupFamilyGroupService>;
16
+ }
@@ -0,0 +1,14 @@
1
+ export interface FamilyGroupDto {
2
+ id?: string;
3
+ code?: number;
4
+ name?: string;
5
+ status?: any;
6
+ producers?: any[];
7
+ producersQuantity?: number;
8
+ extIntSts?: string;
9
+ extIntMsg?: string;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ lastModifiedBy?: string;
13
+ lastModifiedDate?: Date;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService, ListParams } from '../agro-lookup-entity.service';
6
+ import { IncreaseProductDto } from './increase-product-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupIncreaseProductService extends AgroLookupEntityService<IncreaseProductDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ listExternalIncreaseProduct(listParams: ListParams): import("rxjs").Observable<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupIncreaseProductService, [null, null, null, { optional: true; }]>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupIncreaseProductService>;
16
+ }
@@ -0,0 +1,16 @@
1
+ export interface IncreaseProductDto {
2
+ id?: string;
3
+ increase?: any;
4
+ company?: any;
5
+ product?: any;
6
+ typeIncrease: any;
7
+ valInc?: number;
8
+ grpItm?: boolean;
9
+ sitPro?: any;
10
+ extIntSts?: string;
11
+ extIntMsg?: string;
12
+ createdBy?: string;
13
+ createdDate?: Date;
14
+ lastModifiedBy?: string;
15
+ lastModifiedDate?: Date;
16
+ }
@@ -0,0 +1,34 @@
1
+ export { AgroLookupEntityService } from './agro-lookup-entity.service';
2
+ export type { ListParams, BodyParams } from './agro-lookup-entity.service';
3
+ export { AgroLookupE070EmpService } from './e-070-emp/agro-lookup-e070-emp.service';
4
+ export { AgroLookupE070FilService } from './e-070-fil/agro-lookup-e070-fil.service';
5
+ export { AgroLookupE075DerService } from './e-075-der/agro-lookup-e075-der.service';
6
+ export { AgroLookupE001PesService } from './e-001-pes/agro-lookup-e001-pes.service';
7
+ export { AgroLookupE095PesService } from './e-095-pes/agro-lookup-e095-pes.service';
8
+ export { AgroLookupE012FamService } from './e-012-fam/agro-lookup-e012-fam.service';
9
+ export { AgroLookupE113SafService } from './e-113-saf/agro-lookup-e113-saf.service';
10
+ export { AgroLookupE031MoeService } from './e-031-moe/agro-lookup-e031-moe.service';
11
+ export { AgroLookupDriverService } from './driver/agro-lookup-driver.service';
12
+ export { AgroLookupE205DepService } from './e-205-dep/agro-lookup-e205-dep.service';
13
+ export { AgroLookupE210DxpService } from './e-210-dxp/agro-lookup-e210-dxp.service';
14
+ export { AgroLookupTicketService } from './ticket/agro-lookup-ticket.service';
15
+ export { AgroLookupProductVarietyService } from './product-variety/agro-lookup-product-variety.service';
16
+ export { AgroLookupRuralEstateService } from './rural-estate/agro-lookup-rural-estate.service';
17
+ export { AgroLookupIncreaseProductService } from './increase-product/agro-lookup-increase-product.service';
18
+ export { AgroLookupFamilyGroupService } from './family-group/agro-lookup-family-group.service';
19
+ export type { E070EmpDto } from './e-070-emp/e-070-emp-dto';
20
+ export type { E070FilDto } from './e-070-fil/e-070-fil-dto';
21
+ export type { E075DerDto } from './e-075-der/e-075-der-dto';
22
+ export type { E001PesDto } from './e-001-pes/e-001-pes-dto';
23
+ export type { E095PesDto } from './e-095-pes/e-095-pes-dto';
24
+ export type { E012FamDto } from './e-012-fam/e-012-fam-dto';
25
+ export type { E113SafDto } from './e-113-saf/e-113-saf-dto';
26
+ export type { E031MoeDto } from './e-031-moe/e-031-moe-dto';
27
+ export type { DriverDto } from './driver/driver-dto';
28
+ export type { E205DepDto } from './e-205-dep/e-205-dep-dto';
29
+ export type { E210DxpDto } from './e-210-dxp/e-210-dxp-dto';
30
+ export type { TicketDto } from './ticket/ticket-dto';
31
+ export type { ProductVarietyDto } from './product-variety/product-variety-dto';
32
+ export type { RuralEstateDto } from './rural-estate/rural-estate-dto';
33
+ export type { IncreaseProductDto } from './increase-product/increase-product-dto';
34
+ export type { FamilyGroupDto } from './family-group/family-group-dto';
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService, ListParams } from '../agro-lookup-entity.service';
6
+ import { ProductVarietyDto } from './product-variety-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupProductVarietyService extends AgroLookupEntityService<ProductVarietyDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ listExternalProductVariety(listParams: ListParams): import("rxjs").Observable<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupProductVarietyService, [null, null, null, { optional: true; }]>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupProductVarietyService>;
16
+ }
@@ -0,0 +1,14 @@
1
+ export interface ProductVarietyDto {
2
+ id?: string;
3
+ e075der?: any;
4
+ variety?: any;
5
+ royaltiesPercentage?: number;
6
+ status?: any;
7
+ extIntSts?: string;
8
+ extIntMsg?: string;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ lastModifiedBy?: string;
12
+ lastModifiedDate?: Date;
13
+ label?: string;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService, ListParams } from '../agro-lookup-entity.service';
6
+ import { RuralEstateDto } from './rural-estate-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupRuralEstateService extends AgroLookupEntityService<RuralEstateDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ listExternalRuralEstate(listParams: ListParams): import("rxjs").Observable<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupRuralEstateService, [null, null, null, { optional: true; }]>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupRuralEstateService>;
16
+ }
@@ -0,0 +1,28 @@
1
+ export interface RuralEstateDto {
2
+ id?: string;
3
+ sequential?: number;
4
+ company?: any;
5
+ branch?: any;
6
+ code?: string;
7
+ name?: string;
8
+ ie?: string;
9
+ cep?: string;
10
+ address?: string;
11
+ number?: number;
12
+ complement?: string;
13
+ district?: string;
14
+ country?: any;
15
+ state?: any;
16
+ city?: any;
17
+ latitude?: string;
18
+ longitude?: string;
19
+ status?: any;
20
+ producers?: any[];
21
+ producersQuantity?: number;
22
+ extIntSts?: string;
23
+ extIntMsg?: string;
24
+ createdBy?: string;
25
+ createdDate?: Date;
26
+ lastModifiedBy?: string;
27
+ lastModifiedDate?: Date;
28
+ }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { MessageService } from 'primeng/api';
3
+ import { HostProjectConfigs } from '../../../../lib-config.token';
4
+ import { LibTranslationService } from '../../../../services/lib-translation.service';
5
+ import { AgroLookupEntityService } from '../agro-lookup-entity.service';
6
+ import { TicketDto } from './ticket-dto';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AgroLookupTicketService extends AgroLookupEntityService<TicketDto> {
9
+ protected readonly http: HttpClient;
10
+ protected readonly messageService: MessageService;
11
+ protected readonly translate: LibTranslationService;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: LibTranslationService, config?: HostProjectConfigs);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgroLookupTicketService, [null, null, null, { optional: true; }]>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgroLookupTicketService>;
15
+ }
@@ -0,0 +1,15 @@
1
+ export interface TicketDto {
2
+ id?: string;
3
+ number?: number;
4
+ parent?: number;
5
+ balanceEntryControl?: any;
6
+ status?: any;
7
+ userCancellation?: string;
8
+ dateTimeCancellation?: Date;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ lastModifiedBy?: string;
12
+ lastModifiedDate?: Date;
13
+ custom?: any;
14
+ contractAvailable?: boolean;
15
+ }
@@ -0,0 +1,37 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { CurrencyPipe } from '@angular/common';
3
+ export declare const mergeUnique: (array: Array<string>, otherArray: Array<string>) => string[];
4
+ export declare const getTypeInformation: (type: string, value: any) => {
5
+ isValidValue: any;
6
+ typeExists: boolean;
7
+ };
8
+ export declare const getSuggestionValue: (displayFields: string[], ownerEntity: string, value: any, separator: string) => string;
9
+ export declare const getEnumQuery: (name: string, value: any, multiple?: boolean) => string;
10
+ export declare const createFilterString: (any: any, value: any) => string;
11
+ export declare const createFilterTokens: (any: any, value: any, translate: TranslateService) => {
12
+ id: any;
13
+ label: string;
14
+ };
15
+ export declare const resolveRefs: (payload: any) => any;
16
+ export type RelationTransformConfig = {
17
+ origin: string;
18
+ key: string;
19
+ transform: (value: any) => any;
20
+ };
21
+ export declare const applyRelationTransforms: (entity: any, originEntity: string | undefined, relations: RelationTransformConfig[]) => any;
22
+ export declare const isValidFilter: (type: any, value: any) => boolean;
23
+ export declare const getProp: (obj: any, path: any, APPLY_CPFCNPJ_FILTER?: boolean) => any;
24
+ export declare const getLabelValueRequest: (contents: any[], displayFields: any[], APPLY_CPFCNPJ_FILTER?: boolean) => any[];
25
+ export declare function formatFilters(filters: any[], value: any, statusFilter: boolean, columnName: string): string;
26
+ export declare function formatFiltersAdvanced(filters: any[], filterData: any, statusFilter: boolean, columnName: string, e070empId: string): string;
27
+ export declare function convertValueByType(name: string, value: any, type: any): string;
28
+ export declare function formatFiltersWithoutStatus(filters: any[], value: any): string;
29
+ export declare function roundToThree(num: number): number;
30
+ export declare function calculateAdjustedPercentagesAndWeights(total: number, maxPercentage: number, maxWeight: number): {
31
+ calculatedPercentages: number[];
32
+ calculatedWeights: number[];
33
+ };
34
+ export declare function calculateAdjustedPercentages(total: number, maxPercentage: number): number[];
35
+ export declare function calculateAdjustedWeights(calculatedPercentages: number[], maxWeight: number): number[];
36
+ export declare function adjustValuesIfNecessary(values: number[], total: number): number[];
37
+ export declare function formatBrlCurrency(currencyPipe: CurrencyPipe, value: number): string | null | undefined;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Formats CPF or CNPJ using AgroStringUtils.applyMask().
3
+ * Automatically detects whether the input is a valid CPF or CNPJ and applies the appropriate mask.
4
+ *
5
+ * @param value - The unformatted CPF/CNPJ string (digits only or with formatting)
6
+ * @returns Formatted string with CPF or CNPJ mask, or original value if validation fails
7
+ *
8
+ * @example
9
+ * formatCPFCNPJWithMask('12345678901') // Returns '123.456.789-01' (CPF)
10
+ * formatCPFCNPJWithMask('12345678901234') // Returns '12.345.678/0001-34' (CNPJ)
11
+ */
12
+ export declare function formatCPFCNPJWithMask(value: string): string;
@@ -0,0 +1,2 @@
1
+ export { formatCPFCNPJWithMask } from './cpf-cnpj-formatter';
2
+ export { mergeUnique, getTypeInformation, getSuggestionValue, getEnumQuery, createFilterString, createFilterTokens, resolveRefs, applyRelationTransforms, isValidFilter, getProp, getLabelValueRequest, formatFilters, formatFiltersAdvanced, convertValueByType, formatFiltersWithoutStatus, roundToThree, calculateAdjustedPercentagesAndWeights, calculateAdjustedPercentages, calculateAdjustedWeights, adjustValuesIfNecessary, formatBrlCurrency, } from './agro-lookup-utils';
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export interface HostProjectConfigs {
3
+ domain: string;
4
+ service: string;
5
+ }
6
+ export declare const LIB_CONFIG: InjectionToken<HostProjectConfigs>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senior-agronegocio/angular-components",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "18.2.14",
6
6
  "@angular/common": "18.2.14",
@@ -68,6 +68,10 @@
68
68
  "types": "./services/index.d.ts",
69
69
  "default": "./esm2022/services/index.mjs"
70
70
  },
71
+ "./fields/lookups": {
72
+ "types": "./fields/lookups/index.d.ts",
73
+ "default": "./esm2022/fields/lookups/index.mjs"
74
+ },
71
75
  "./package.json": {
72
76
  "default": "./package.json"
73
77
  }
package/public-api.d.ts CHANGED
@@ -4,6 +4,8 @@ export * from './enums/index';
4
4
  export * from './form-validator/index';
5
5
  export * from './pipe/index';
6
6
  export * from './services/index';
7
+ export * from './fields/lookups/index';
8
+ export * from './lib-config.token';
7
9
  export { LibTranslationModule } from "./lib-translation.module";
8
10
  export { AgroAngularComponentsModule, LIB_CONFIG } from "./agro-angular-components.module";
9
11
  export type { HostProjectConfigs } from "./agro-angular-components.module";
@@ -317,5 +317,62 @@ declare const enUS: {
317
317
  "agro.angular_components.invoice_created_successfully": string;
318
318
  "agro.angular_components.invoice_already_linked": string;
319
319
  "agro.angular_components.link_invoice": string;
320
+ "agro.angular_components.lookup_nothing_found": string;
321
+ "agro.angular_components.lookup_filter": string;
322
+ "agro.angular_components.lookup_filters": string;
323
+ "agro.angular_components.lookup_clear": string;
324
+ "agro.angular_components.lookup_cancel": string;
325
+ "agro.angular_components.lookup_select": string;
326
+ "agro.angular_components.lookup_list_grid_boolean_true": string;
327
+ "agro.angular_components.lookup_list_grid_boolean_false": string;
328
+ "agro.angular_components.lookup_error_delete_entity_constraint_violation_title": string;
329
+ "agro.angular_components.lookup_error_delete_entity_constraint_violation_description": string;
330
+ "agro.angular_components.lookup_label_code": string;
331
+ "agro.angular_components.lookup_label_code_company": string;
332
+ "agro.angular_components.lookup_label_name": string;
333
+ "agro.angular_components.lookup_label_description": string;
334
+ "agro.angular_components.lookup_label_branch": string;
335
+ "agro.angular_components.lookup_label_city": string;
336
+ "agro.angular_components.lookup_cnpj_cpf": string;
337
+ "agro.angular_components.lookup_e_070_emp_sig_emp": string;
338
+ "agro.angular_components.lookup_e_070_fil_num_cgc": string;
339
+ "agro.angular_components.lookup_e_031_moe_cod_moe": string;
340
+ "agro.angular_components.lookup_e_031_moe_des_moe": string;
341
+ "agro.angular_components.lookup_rural_estate_sequential": string;
342
+ "agro.angular_components.lookup_rural_estate_name": string;
343
+ "agro.angular_components.lookup_contract_company": string;
344
+ "agro.angular_components.lookup_contract_company_search_title": string;
345
+ "agro.angular_components.lookup_contract_branch": string;
346
+ "agro.angular_components.lookup_contract_branch_search_title": string;
347
+ "agro.angular_components.lookup_product": string;
348
+ "agro.angular_components.lookup_contract_product_product_search_title": string;
349
+ "agro.angular_components.lookup_producer": string;
350
+ "agro.angular_components.lookup_contract_product_producer_producer_search_title": string;
351
+ "agro.angular_components.lookup_contract_product_harvest": string;
352
+ "agro.angular_components.lookup_contract_product_harvest_search_title": string;
353
+ "agro.angular_components.lookup_contract_product_currency": string;
354
+ "agro.angular_components.lookup_contract_product_currency_search_title": string;
355
+ "agro.angular_components.lookup_contract_product_producer_rural_estate": string;
356
+ "agro.angular_components.lookup_contract_product_producer_rural_estate_search_title": string;
357
+ "agro.angular_components.lookup_contract_financial_increase": string;
358
+ "agro.angular_components.lookup_contract_financial_increase_search_title": string;
359
+ "agro.angular_components.lookup_contract_family_group": string;
360
+ "agro.angular_components.lookup_contract_family_group_search_title": string;
361
+ "agro.angular_components.lookup_family": string;
362
+ "agro.angular_components.lookup_family_search_title": string;
363
+ "agro.angular_components.lookup_driver": string;
364
+ "agro.angular_components.lookup_driver_search_title": string;
365
+ "agro.angular_components.lookup_deposit": string;
366
+ "agro.angular_components.lookup_deposit_search_title": string;
367
+ "agro.angular_components.lookup_e095_pes": string;
368
+ "agro.angular_components.lookup_e095_pes_search_title": string;
369
+ "agro.angular_components.lookup_ticket": string;
370
+ "agro.angular_components.lookup_ticket_search_title": string;
371
+ "agro.angular_components.lookup_romaneo": string;
372
+ "agro.angular_components.lookup_romaneo_search_title": string;
373
+ "agro.angular_components.lookup_product_variety": string;
374
+ "agro.angular_components.lookup_product_variety_search_title": string;
375
+ "agro.angular_components.lookup_license_plate": string;
376
+ "agro.angular_components.lookup_royalties_percentage": string;
320
377
  };
321
378
  export default enUS;
@@ -317,5 +317,62 @@ declare const esCO: {
317
317
  "agro.angular_components.invoice_created_successfully": string;
318
318
  "agro.angular_components.invoice_already_linked": string;
319
319
  "agro.angular_components.link_invoice": string;
320
+ "agro.angular_components.lookup_nothing_found": string;
321
+ "agro.angular_components.lookup_filter": string;
322
+ "agro.angular_components.lookup_filters": string;
323
+ "agro.angular_components.lookup_clear": string;
324
+ "agro.angular_components.lookup_cancel": string;
325
+ "agro.angular_components.lookup_select": string;
326
+ "agro.angular_components.lookup_list_grid_boolean_true": string;
327
+ "agro.angular_components.lookup_list_grid_boolean_false": string;
328
+ "agro.angular_components.lookup_error_delete_entity_constraint_violation_title": string;
329
+ "agro.angular_components.lookup_error_delete_entity_constraint_violation_description": string;
330
+ "agro.angular_components.lookup_label_code": string;
331
+ "agro.angular_components.lookup_label_code_company": string;
332
+ "agro.angular_components.lookup_label_name": string;
333
+ "agro.angular_components.lookup_label_description": string;
334
+ "agro.angular_components.lookup_label_branch": string;
335
+ "agro.angular_components.lookup_label_city": string;
336
+ "agro.angular_components.lookup_cnpj_cpf": string;
337
+ "agro.angular_components.lookup_e_070_emp_sig_emp": string;
338
+ "agro.angular_components.lookup_e_070_fil_num_cgc": string;
339
+ "agro.angular_components.lookup_e_031_moe_cod_moe": string;
340
+ "agro.angular_components.lookup_e_031_moe_des_moe": string;
341
+ "agro.angular_components.lookup_rural_estate_sequential": string;
342
+ "agro.angular_components.lookup_rural_estate_name": string;
343
+ "agro.angular_components.lookup_contract_company": string;
344
+ "agro.angular_components.lookup_contract_company_search_title": string;
345
+ "agro.angular_components.lookup_contract_branch": string;
346
+ "agro.angular_components.lookup_contract_branch_search_title": string;
347
+ "agro.angular_components.lookup_product": string;
348
+ "agro.angular_components.lookup_contract_product_product_search_title": string;
349
+ "agro.angular_components.lookup_producer": string;
350
+ "agro.angular_components.lookup_contract_product_producer_producer_search_title": string;
351
+ "agro.angular_components.lookup_contract_product_harvest": string;
352
+ "agro.angular_components.lookup_contract_product_harvest_search_title": string;
353
+ "agro.angular_components.lookup_contract_product_currency": string;
354
+ "agro.angular_components.lookup_contract_product_currency_search_title": string;
355
+ "agro.angular_components.lookup_contract_product_producer_rural_estate": string;
356
+ "agro.angular_components.lookup_contract_product_producer_rural_estate_search_title": string;
357
+ "agro.angular_components.lookup_contract_financial_increase": string;
358
+ "agro.angular_components.lookup_contract_financial_increase_search_title": string;
359
+ "agro.angular_components.lookup_contract_family_group": string;
360
+ "agro.angular_components.lookup_contract_family_group_search_title": string;
361
+ "agro.angular_components.lookup_family": string;
362
+ "agro.angular_components.lookup_family_search_title": string;
363
+ "agro.angular_components.lookup_driver": string;
364
+ "agro.angular_components.lookup_driver_search_title": string;
365
+ "agro.angular_components.lookup_deposit": string;
366
+ "agro.angular_components.lookup_deposit_search_title": string;
367
+ "agro.angular_components.lookup_e095_pes": string;
368
+ "agro.angular_components.lookup_e095_pes_search_title": string;
369
+ "agro.angular_components.lookup_ticket": string;
370
+ "agro.angular_components.lookup_ticket_search_title": string;
371
+ "agro.angular_components.lookup_romaneo": string;
372
+ "agro.angular_components.lookup_romaneo_search_title": string;
373
+ "agro.angular_components.lookup_product_variety": string;
374
+ "agro.angular_components.lookup_product_variety_search_title": string;
375
+ "agro.angular_components.lookup_license_plate": string;
376
+ "agro.angular_components.lookup_royalties_percentage": string;
320
377
  };
321
378
  export default esCO;
@@ -317,5 +317,62 @@ declare const ptBR: {
317
317
  "agro.angular_components.link_invoice": string;
318
318
  "agro.grain_classification.label_number": string;
319
319
  "agro.grain_classification.origination_create_stock_movement": string;
320
+ "agro.angular_components.lookup_nothing_found": string;
321
+ "agro.angular_components.lookup_filter": string;
322
+ "agro.angular_components.lookup_filters": string;
323
+ "agro.angular_components.lookup_clear": string;
324
+ "agro.angular_components.lookup_cancel": string;
325
+ "agro.angular_components.lookup_select": string;
326
+ "agro.angular_components.lookup_list_grid_boolean_true": string;
327
+ "agro.angular_components.lookup_list_grid_boolean_false": string;
328
+ "agro.angular_components.lookup_error_delete_entity_constraint_violation_title": string;
329
+ "agro.angular_components.lookup_error_delete_entity_constraint_violation_description": string;
330
+ "agro.angular_components.lookup_label_code": string;
331
+ "agro.angular_components.lookup_label_code_company": string;
332
+ "agro.angular_components.lookup_label_name": string;
333
+ "agro.angular_components.lookup_label_description": string;
334
+ "agro.angular_components.lookup_label_branch": string;
335
+ "agro.angular_components.lookup_label_city": string;
336
+ "agro.angular_components.lookup_cnpj_cpf": string;
337
+ "agro.angular_components.lookup_e_070_emp_sig_emp": string;
338
+ "agro.angular_components.lookup_e_070_fil_num_cgc": string;
339
+ "agro.angular_components.lookup_e_031_moe_cod_moe": string;
340
+ "agro.angular_components.lookup_e_031_moe_des_moe": string;
341
+ "agro.angular_components.lookup_rural_estate_sequential": string;
342
+ "agro.angular_components.lookup_rural_estate_name": string;
343
+ "agro.angular_components.lookup_contract_company": string;
344
+ "agro.angular_components.lookup_contract_company_search_title": string;
345
+ "agro.angular_components.lookup_contract_branch": string;
346
+ "agro.angular_components.lookup_contract_branch_search_title": string;
347
+ "agro.angular_components.lookup_product": string;
348
+ "agro.angular_components.lookup_contract_product_product_search_title": string;
349
+ "agro.angular_components.lookup_producer": string;
350
+ "agro.angular_components.lookup_contract_product_producer_producer_search_title": string;
351
+ "agro.angular_components.lookup_contract_product_harvest": string;
352
+ "agro.angular_components.lookup_contract_product_harvest_search_title": string;
353
+ "agro.angular_components.lookup_contract_product_currency": string;
354
+ "agro.angular_components.lookup_contract_product_currency_search_title": string;
355
+ "agro.angular_components.lookup_contract_product_producer_rural_estate": string;
356
+ "agro.angular_components.lookup_contract_product_producer_rural_estate_search_title": string;
357
+ "agro.angular_components.lookup_contract_financial_increase": string;
358
+ "agro.angular_components.lookup_contract_financial_increase_search_title": string;
359
+ "agro.angular_components.lookup_contract_family_group": string;
360
+ "agro.angular_components.lookup_contract_family_group_search_title": string;
361
+ "agro.angular_components.lookup_family": string;
362
+ "agro.angular_components.lookup_family_search_title": string;
363
+ "agro.angular_components.lookup_driver": string;
364
+ "agro.angular_components.lookup_driver_search_title": string;
365
+ "agro.angular_components.lookup_deposit": string;
366
+ "agro.angular_components.lookup_deposit_search_title": string;
367
+ "agro.angular_components.lookup_e095_pes": string;
368
+ "agro.angular_components.lookup_e095_pes_search_title": string;
369
+ "agro.angular_components.lookup_ticket": string;
370
+ "agro.angular_components.lookup_ticket_search_title": string;
371
+ "agro.angular_components.lookup_romaneo": string;
372
+ "agro.angular_components.lookup_romaneo_search_title": string;
373
+ "agro.angular_components.lookup_product_variety": string;
374
+ "agro.angular_components.lookup_product_variety_search_title": string;
375
+ "agro.angular_components.lookup_license_plate": string;
376
+ "agro.angular_components.lookup_royalties_percentage": string;
320
377
  };
321
378
  export default ptBR;