appproject-components 1.0.2 → 1.0.3

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.
@@ -1,4 +1,5 @@
1
1
  import { InjectionToken, ModuleWithProviders } from '@angular/core';
2
+ import { LibConfig } from './lib-config';
2
3
  import * as i0 from "@angular/core";
3
4
  import * as i1 from "./appproject-components.component";
4
5
  import * as i2 from "./input-text/input-text.component";
@@ -15,17 +16,15 @@ import * as i12 from "./buttons/btn-cancelar/btn-cancelar.component";
15
16
  import * as i13 from "./buttons/btn-excluir/btn-excluir.component";
16
17
  import * as i14 from "./buttons/btn-novo/btn-novo.component";
17
18
  import * as i15 from "./buttons/btn-salvar/btn-salvar.component";
18
- import * as i16 from "@angular/common";
19
- import * as i17 from "@angular/common/http";
20
- import * as i18 from "@ionic/angular";
21
- import * as i19 from "@angular/forms";
22
- export interface LibConfig {
23
- apiUrl: string;
24
- }
19
+ import * as i16 from "./entity-edit/entity-edit.component";
20
+ import * as i17 from "@angular/common";
21
+ import * as i18 from "@angular/common/http";
22
+ import * as i19 from "@ionic/angular";
23
+ import * as i20 from "@angular/forms";
25
24
  export declare const LibConfigService: InjectionToken<LibConfig>;
26
25
  export declare class AppprojectComponentsModule {
27
26
  static forRoot(config: LibConfig): ModuleWithProviders<AppprojectComponentsModule>;
28
27
  static ɵfac: i0.ɵɵFactoryDeclaration<AppprojectComponentsModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppprojectComponentsModule, [typeof i1.AppprojectComponentsComponent, typeof i2.InputTextComponent, typeof i3.InputFormatComponent, typeof i4.InputSelectComponent, typeof i5.InputPesquisaComponent, typeof i6.ModelTreeviewComponent, typeof i7.InputValorComponent, typeof i8.InputAreaComponent, typeof i9.InputCepComponent, typeof i10.InputArquivoComponent, typeof i11.BtnActionComponent, typeof i12.BtnCancelarComponent, typeof i13.BtnExcluirComponent, typeof i14.BtnNovoComponent, typeof i15.BtnSalvarComponent], [typeof i16.CommonModule, typeof i17.HttpClientModule, typeof i18.IonicModule, typeof i19.ReactiveFormsModule], [typeof i1.AppprojectComponentsComponent, typeof i2.InputTextComponent, typeof i3.InputFormatComponent, typeof i4.InputSelectComponent, typeof i5.InputPesquisaComponent, typeof i6.ModelTreeviewComponent, typeof i7.InputValorComponent, typeof i8.InputAreaComponent, typeof i9.InputCepComponent, typeof i10.InputArquivoComponent, typeof i11.BtnActionComponent, typeof i12.BtnCancelarComponent, typeof i13.BtnExcluirComponent, typeof i14.BtnNovoComponent, typeof i15.BtnSalvarComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppprojectComponentsModule, [typeof i1.AppprojectComponentsComponent, typeof i2.InputTextComponent, typeof i3.InputFormatComponent, typeof i4.InputSelectComponent, typeof i5.InputPesquisaComponent, typeof i6.ModelTreeviewComponent, typeof i7.InputValorComponent, typeof i8.InputAreaComponent, typeof i9.InputCepComponent, typeof i10.InputArquivoComponent, typeof i11.BtnActionComponent, typeof i12.BtnCancelarComponent, typeof i13.BtnExcluirComponent, typeof i14.BtnNovoComponent, typeof i15.BtnSalvarComponent, typeof i16.EntityEditComponent], [typeof i17.CommonModule, typeof i18.HttpClientModule, typeof i19.IonicModule, typeof i20.ReactiveFormsModule], [typeof i1.AppprojectComponentsComponent, typeof i2.InputTextComponent, typeof i3.InputFormatComponent, typeof i4.InputSelectComponent, typeof i5.InputPesquisaComponent, typeof i6.ModelTreeviewComponent, typeof i7.InputValorComponent, typeof i8.InputAreaComponent, typeof i9.InputCepComponent, typeof i10.InputArquivoComponent, typeof i11.BtnActionComponent, typeof i12.BtnCancelarComponent, typeof i13.BtnExcluirComponent, typeof i14.BtnNovoComponent, typeof i15.BtnSalvarComponent, typeof i16.EntityEditComponent]>;
30
29
  static ɵinj: i0.ɵɵInjectorDeclaration<AppprojectComponentsModule>;
31
30
  }
@@ -0,0 +1,20 @@
1
+ import { NgZone, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { BaseModel, HtmlRow } from 'appproject-lib';
4
+ import * as i0 from "@angular/core";
5
+ export declare class EntityEditComponent<T extends BaseModel> implements OnInit {
6
+ private ngZone;
7
+ entidade: T;
8
+ /**
9
+ * Vai receber montado do base cadastro
10
+ */
11
+ campos: HtmlRow[];
12
+ entidadeForm: FormGroup;
13
+ validation_messages: any;
14
+ constructor(ngZone: NgZone);
15
+ ngOnInit(): void;
16
+ getEntidadeCampos(): void;
17
+ emptyHandler(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityEditComponent<any>, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityEditComponent<any>, "kb-entity-edit", never, { "entidade": { "alias": "entidade"; "required": false; }; "campos": { "alias": "campos"; "required": false; }; "entidadeForm": { "alias": "entidadeForm"; "required": false; }; "validation_messages": { "alias": "validation_messages"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
@@ -4,7 +4,7 @@ import { ControlValueAccessor } from '@angular/forms';
4
4
  import { IonSelect, ModalController } from '@ionic/angular';
5
5
  import { Subject, Subscription } from 'rxjs';
6
6
  import { BaseInputComponent } from '../baseInputComponent';
7
- import { LibConfig } from '../appproject-components.module';
7
+ import { LibConfig } from '../lib-config';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class InputPesquisaComponent extends BaseInputComponent implements OnInit, ControlValueAccessor {
10
10
  private config;
@@ -0,0 +1,3 @@
1
+ export interface LibConfig {
2
+ apiUrl: string;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appproject-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.7",
6
6
  "@angular/core": "^17.0.7",
package/public-api.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './lib/model-treeview/model-treeview.component';
11
11
  export * from './lib/input-area/input-area.component';
12
12
  export * from './lib/input-cep/input-cep.component';
13
13
  export * from './lib/input-arquivo/input-arquivo.component';
14
+ export * from './lib/entity-edit/entity-edit.component';
14
15
  export * from './lib/buttons/btn-action/btn-action.component';
15
16
  export * from './lib/buttons/btn-cancelar/btn-cancelar.component';
16
17
  export * from './lib/buttons/btn-excluir/btn-excluir.component';