appproject-components 1.0.47 → 1.0.49
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/README.md +24 -24
- package/karma.conf.js +44 -44
- package/ng-package.json +6 -6
- package/package.json +1 -1
- package/src/lib/appproject-components.component.spec.ts +23 -23
- package/src/lib/appproject-components.component.ts +20 -20
- package/src/lib/appproject-components.service.spec.ts +16 -16
- package/src/lib/appproject-components.service.ts +9 -9
- package/src/lib/entity-edit/entity-edit.component.html +142 -142
- package/src/lib/entity-edit/entity-edit.component.spec.ts +23 -23
- package/src/lib/entity-edit/entity-edit.component.ts +43 -43
- package/src/lib/grid-view/grid-view.component.html +115 -115
- package/src/lib/grid-view/grid-view.component.spec.ts +23 -23
- package/src/lib/grid-view/grid-view.component.ts +292 -292
- package/src/lib/input-area/input-area.component.spec.ts +23 -23
- package/src/lib/input-area/input-area.component.ts +69 -69
- package/src/lib/input-cep/input-cep.component.spec.ts +23 -23
- package/src/lib/input-cep/input-cep.component.ts +186 -186
- package/src/lib/input-checkbox/input-checkbox.component.html +11 -11
- package/src/lib/input-checkbox/input-checkbox.component.spec.ts +23 -23
- package/src/lib/input-checkbox/input-checkbox.component.ts +48 -48
- package/src/lib/input-format/input-format.component.spec.ts +23 -23
- package/src/lib/input-pesquisa/input-pesquisa.component.spec.ts +23 -23
- package/src/lib/input-pesquisa/input-pesquisa.component.ts +2 -2
- package/src/lib/input-radio/input-radio.component.html +20 -20
- package/src/lib/input-radio/input-radio.component.spec.ts +23 -23
- package/src/lib/input-radio/input-radio.component.ts +49 -49
- package/src/lib/input-select/input-select.component.spec.ts +23 -23
- package/src/lib/input-text/input-text.component.spec.ts +23 -23
- package/src/lib/input-valor/input-valor.component.spec.ts +23 -23
- package/src/lib/model-treeview/model-treeview.component.html +19 -19
- package/src/lib/model-treeview/model-treeview.component.spec.ts +23 -23
- package/src/lib/model-treeview/model-treeview.component.ts +152 -152
- package/src/lib/tree-view/tree-view.component.html +95 -95
- package/src/lib/tree-view/tree-view.component.spec.ts +23 -23
- package/src/lib/tree-view/tree-view.component.ts +92 -92
- package/src/lib/tree-view-nivel/tree-view-nivel.component.html +17 -17
- package/src/lib/tree-view-nivel/tree-view-nivel.component.spec.ts +23 -23
- package/src/lib/tree-view-nivel/tree-view-nivel.component.ts +43 -43
- package/tsconfig.lib.json +15 -15
- package/tsconfig.lib.prod.json +10 -10
- package/tsconfig.spec.json +17 -17
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { BaseInputComponent } from '../baseInputComponent';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kb-input-checkbox',
|
|
7
|
-
templateUrl: './input-checkbox.component.html',
|
|
8
|
-
styleUrls: ['./input-checkbox.component.scss', './../baseComponent.scss'],
|
|
9
|
-
providers: [{
|
|
10
|
-
provide: NG_VALUE_ACCESSOR,
|
|
11
|
-
useExisting: InputCheckboxComponent,
|
|
12
|
-
multi: true
|
|
13
|
-
}]
|
|
14
|
-
})
|
|
15
|
-
export class InputCheckboxComponent extends BaseInputComponent implements OnInit, ControlValueAccessor {
|
|
16
|
-
|
|
17
|
-
@Input() justify: string = "start";
|
|
18
|
-
@Input() labelPlacement: string = "end";
|
|
19
|
-
//control value acessor
|
|
20
|
-
public data!: boolean | undefined;
|
|
21
|
-
private onChange: Function = (data: string) => { };
|
|
22
|
-
private onTouch: Function = () => { };
|
|
23
|
-
private disabled: boolean = false;
|
|
24
|
-
public console = console;
|
|
25
|
-
|
|
26
|
-
writeValue(value?: any): void {
|
|
27
|
-
console.log('write value', value);
|
|
28
|
-
this.onChange(value);
|
|
29
|
-
this.data = value;
|
|
30
|
-
}
|
|
31
|
-
registerOnChange(fn: any): void {
|
|
32
|
-
this.onChange = fn;
|
|
33
|
-
}
|
|
34
|
-
registerOnTouched(fn: any): void {
|
|
35
|
-
this.onTouch = fn;
|
|
36
|
-
}
|
|
37
|
-
setDisabledState?(isDisabled: boolean): void {
|
|
38
|
-
this.disabled = this.disabled;
|
|
39
|
-
}
|
|
40
|
-
constructor() {
|
|
41
|
-
super();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
override ngOnInit(): void {
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { BaseInputComponent } from '../baseInputComponent';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'kb-input-checkbox',
|
|
7
|
+
templateUrl: './input-checkbox.component.html',
|
|
8
|
+
styleUrls: ['./input-checkbox.component.scss', './../baseComponent.scss'],
|
|
9
|
+
providers: [{
|
|
10
|
+
provide: NG_VALUE_ACCESSOR,
|
|
11
|
+
useExisting: InputCheckboxComponent,
|
|
12
|
+
multi: true
|
|
13
|
+
}]
|
|
14
|
+
})
|
|
15
|
+
export class InputCheckboxComponent extends BaseInputComponent implements OnInit, ControlValueAccessor {
|
|
16
|
+
|
|
17
|
+
@Input() justify: string = "start";
|
|
18
|
+
@Input() labelPlacement: string = "end";
|
|
19
|
+
//control value acessor
|
|
20
|
+
public data!: boolean | undefined;
|
|
21
|
+
private onChange: Function = (data: string) => { };
|
|
22
|
+
private onTouch: Function = () => { };
|
|
23
|
+
private disabled: boolean = false;
|
|
24
|
+
public console = console;
|
|
25
|
+
|
|
26
|
+
writeValue(value?: any): void {
|
|
27
|
+
console.log('write value', value);
|
|
28
|
+
this.onChange(value);
|
|
29
|
+
this.data = value;
|
|
30
|
+
}
|
|
31
|
+
registerOnChange(fn: any): void {
|
|
32
|
+
this.onChange = fn;
|
|
33
|
+
}
|
|
34
|
+
registerOnTouched(fn: any): void {
|
|
35
|
+
this.onTouch = fn;
|
|
36
|
+
}
|
|
37
|
+
setDisabledState?(isDisabled: boolean): void {
|
|
38
|
+
this.disabled = this.disabled;
|
|
39
|
+
}
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
override ngOnInit(): void {
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputFormatComponent } from './input-format.component';
|
|
4
|
-
|
|
5
|
-
describe('InputFormatComponent', () => {
|
|
6
|
-
let component: InputFormatComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputFormatComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ InputFormatComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputFormatComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { InputFormatComponent } from './input-format.component';
|
|
4
|
+
|
|
5
|
+
describe('InputFormatComponent', () => {
|
|
6
|
+
let component: InputFormatComponent;
|
|
7
|
+
let fixture: ComponentFixture<InputFormatComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ InputFormatComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(InputFormatComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputPesquisaComponent } from './input-pesquisa.component';
|
|
4
|
-
|
|
5
|
-
describe('InputPesquisaComponent', () => {
|
|
6
|
-
let component: InputPesquisaComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputPesquisaComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ InputPesquisaComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputPesquisaComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { InputPesquisaComponent } from './input-pesquisa.component';
|
|
4
|
+
|
|
5
|
+
describe('InputPesquisaComponent', () => {
|
|
6
|
+
let component: InputPesquisaComponent;
|
|
7
|
+
let fixture: ComponentFixture<InputPesquisaComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ InputPesquisaComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(InputPesquisaComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Component, EventEmitter, Inject, Input, OnInit, Predicate, ViewChild } from '@angular/core';
|
|
2
|
+
import { Component, EventEmitter, Inject, Input, OnInit, Output, Predicate, ViewChild } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { IonSelect, ModalController } from '@ionic/angular';
|
|
5
5
|
import { Subject, Subscription, of } from 'rxjs';
|
|
@@ -38,7 +38,7 @@ export class InputPesquisaComponent extends BaseInputComponent implements OnInit
|
|
|
38
38
|
//@ViewChild('selectElement', { read: ElementRef, static: true }) selectElement;
|
|
39
39
|
@ViewChild('selectElement', { static: false }) selectElement: IonSelect | null = null;
|
|
40
40
|
|
|
41
|
-
@
|
|
41
|
+
@Output() pesquisaChange = new EventEmitter();
|
|
42
42
|
@Input() pesquisaAction?: Function;
|
|
43
43
|
@Input() limpar?: Function;
|
|
44
44
|
//parametros para chamada API
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<ion-item lines="none" style="--background: inherited; --background-focused: transparent; padding-right: 0px;" [class]="itemClass"
|
|
3
|
-
[style.opacity]="readonly ? '0.5' : '1'">
|
|
4
|
-
<ion-radio-group [disabled]="readonly" #inputRadio
|
|
5
|
-
[value]="data"
|
|
6
|
-
(ionChange)="writeValue(inputRadio.value)">
|
|
7
|
-
<span style="font-size: 13px">
|
|
8
|
-
{{ label }}
|
|
9
|
-
</span>
|
|
10
|
-
<ion-row>
|
|
11
|
-
<ion-col *ngFor="let item of itens">
|
|
12
|
-
<ion-radio style="margin-right: 12px;" [color]="color"
|
|
13
|
-
labelPlacement="end"
|
|
14
|
-
justify="start"
|
|
15
|
-
[value]="item[itemId]">
|
|
16
|
-
{{ item[itemNome] }}</ion-radio><br />
|
|
17
|
-
</ion-col>
|
|
18
|
-
</ion-row>
|
|
19
|
-
</ion-radio-group>
|
|
20
|
-
</ion-item>
|
|
1
|
+
<div>
|
|
2
|
+
<ion-item lines="none" style="--background: inherited; --background-focused: transparent; padding-right: 0px;" [class]="itemClass"
|
|
3
|
+
[style.opacity]="readonly ? '0.5' : '1'">
|
|
4
|
+
<ion-radio-group [disabled]="readonly" #inputRadio
|
|
5
|
+
[value]="data"
|
|
6
|
+
(ionChange)="writeValue(inputRadio.value)">
|
|
7
|
+
<span style="font-size: 13px">
|
|
8
|
+
{{ label }}
|
|
9
|
+
</span>
|
|
10
|
+
<ion-row>
|
|
11
|
+
<ion-col *ngFor="let item of itens">
|
|
12
|
+
<ion-radio style="margin-right: 12px;" [color]="color"
|
|
13
|
+
labelPlacement="end"
|
|
14
|
+
justify="start"
|
|
15
|
+
[value]="item[itemId]">
|
|
16
|
+
{{ item[itemNome] }}</ion-radio><br />
|
|
17
|
+
</ion-col>
|
|
18
|
+
</ion-row>
|
|
19
|
+
</ion-radio-group>
|
|
20
|
+
</ion-item>
|
|
21
21
|
</div>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputRadioComponent } from './input-radio.component';
|
|
4
|
-
|
|
5
|
-
describe('InputRadioComponent', () => {
|
|
6
|
-
let component: InputRadioComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputRadioComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [InputRadioComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputRadioComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { InputRadioComponent } from './input-radio.component';
|
|
4
|
+
|
|
5
|
+
describe('InputRadioComponent', () => {
|
|
6
|
+
let component: InputRadioComponent;
|
|
7
|
+
let fixture: ComponentFixture<InputRadioComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [InputRadioComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(InputRadioComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { BaseInputComponent } from '../baseInputComponent';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kb-input-radio',
|
|
7
|
-
templateUrl: './input-radio.component.html',
|
|
8
|
-
styleUrls: ['./input-radio.component.scss', './../baseComponent.scss'],
|
|
9
|
-
providers: [{
|
|
10
|
-
provide: NG_VALUE_ACCESSOR,
|
|
11
|
-
useExisting: InputRadioComponent,
|
|
12
|
-
multi: true
|
|
13
|
-
}]
|
|
14
|
-
})
|
|
15
|
-
export class InputRadioComponent extends BaseInputComponent implements OnInit, ControlValueAccessor {
|
|
16
|
-
@Input() itens: any[] = [];
|
|
17
|
-
@Input() itemId: string = "Id";
|
|
18
|
-
@Input() itemNome: string = "Nome";
|
|
19
|
-
@Input() color: string = "primary";
|
|
20
|
-
//control value acessor
|
|
21
|
-
public data!: string | undefined;
|
|
22
|
-
private onChange: Function = (data: string) => { };
|
|
23
|
-
private onTouch: Function = () => { };
|
|
24
|
-
private disabled: boolean = false;
|
|
25
|
-
public console = console;
|
|
26
|
-
|
|
27
|
-
writeValue(value?: any): void {
|
|
28
|
-
//console.log('write value', value);
|
|
29
|
-
this.onChange(value);
|
|
30
|
-
this.data = value;
|
|
31
|
-
}
|
|
32
|
-
registerOnChange(fn: any): void {
|
|
33
|
-
this.onChange = fn;
|
|
34
|
-
}
|
|
35
|
-
registerOnTouched(fn: any): void {
|
|
36
|
-
this.onTouch = fn;
|
|
37
|
-
}
|
|
38
|
-
setDisabledState?(isDisabled: boolean): void {
|
|
39
|
-
this.disabled = this.disabled;
|
|
40
|
-
}
|
|
41
|
-
constructor() {
|
|
42
|
-
super();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
override ngOnInit(): void {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { BaseInputComponent } from '../baseInputComponent';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'kb-input-radio',
|
|
7
|
+
templateUrl: './input-radio.component.html',
|
|
8
|
+
styleUrls: ['./input-radio.component.scss', './../baseComponent.scss'],
|
|
9
|
+
providers: [{
|
|
10
|
+
provide: NG_VALUE_ACCESSOR,
|
|
11
|
+
useExisting: InputRadioComponent,
|
|
12
|
+
multi: true
|
|
13
|
+
}]
|
|
14
|
+
})
|
|
15
|
+
export class InputRadioComponent extends BaseInputComponent implements OnInit, ControlValueAccessor {
|
|
16
|
+
@Input() itens: any[] = [];
|
|
17
|
+
@Input() itemId: string = "Id";
|
|
18
|
+
@Input() itemNome: string = "Nome";
|
|
19
|
+
@Input() color: string = "primary";
|
|
20
|
+
//control value acessor
|
|
21
|
+
public data!: string | undefined;
|
|
22
|
+
private onChange: Function = (data: string) => { };
|
|
23
|
+
private onTouch: Function = () => { };
|
|
24
|
+
private disabled: boolean = false;
|
|
25
|
+
public console = console;
|
|
26
|
+
|
|
27
|
+
writeValue(value?: any): void {
|
|
28
|
+
//console.log('write value', value);
|
|
29
|
+
this.onChange(value);
|
|
30
|
+
this.data = value;
|
|
31
|
+
}
|
|
32
|
+
registerOnChange(fn: any): void {
|
|
33
|
+
this.onChange = fn;
|
|
34
|
+
}
|
|
35
|
+
registerOnTouched(fn: any): void {
|
|
36
|
+
this.onTouch = fn;
|
|
37
|
+
}
|
|
38
|
+
setDisabledState?(isDisabled: boolean): void {
|
|
39
|
+
this.disabled = this.disabled;
|
|
40
|
+
}
|
|
41
|
+
constructor() {
|
|
42
|
+
super();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override ngOnInit(): void {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputSelectComponent } from './input-select.component';
|
|
4
|
-
|
|
5
|
-
describe('InputSelectComponent', () => {
|
|
6
|
-
let component: InputSelectComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputSelectComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ InputSelectComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputSelectComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { InputSelectComponent } from './input-select.component';
|
|
4
|
+
|
|
5
|
+
describe('InputSelectComponent', () => {
|
|
6
|
+
let component: InputSelectComponent;
|
|
7
|
+
let fixture: ComponentFixture<InputSelectComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ InputSelectComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(InputSelectComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputTextComponent } from './input-text.component';
|
|
4
|
-
|
|
5
|
-
describe('InputTextComponent', () => {
|
|
6
|
-
let component: InputTextComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputTextComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ InputTextComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputTextComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { InputTextComponent } from './input-text.component';
|
|
4
|
+
|
|
5
|
+
describe('InputTextComponent', () => {
|
|
6
|
+
let component: InputTextComponent;
|
|
7
|
+
let fixture: ComponentFixture<InputTextComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ InputTextComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(InputTextComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputValorComponent } from './input-valor.component';
|
|
4
|
-
|
|
5
|
-
describe('InputValorComponent', () => {
|
|
6
|
-
let component: InputValorComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputValorComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ InputValorComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputValorComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { InputValorComponent } from './input-valor.component';
|
|
4
|
+
|
|
5
|
+
describe('InputValorComponent', () => {
|
|
6
|
+
let component: InputValorComponent;
|
|
7
|
+
let fixture: ComponentFixture<InputValorComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ InputValorComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(InputValorComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<ion-header>
|
|
2
|
-
<ion-toolbar color="secondary">
|
|
3
|
-
<ion-title>{{ titulo }}</ion-title>
|
|
4
|
-
<ion-buttons slot="end">
|
|
5
|
-
<ion-button (click)="atualizaArvoreEntidade(tipo)">
|
|
6
|
-
<ion-icon slot="icon-only" name="refresh"></ion-icon>
|
|
7
|
-
</ion-button>
|
|
8
|
-
<ion-button (click)="modalCtrl.dismiss()">Fechar</ion-button>
|
|
9
|
-
</ion-buttons>
|
|
10
|
-
</ion-toolbar>
|
|
11
|
-
</ion-header>
|
|
12
|
-
|
|
13
|
-
<ion-content>
|
|
14
|
-
<ion-item>
|
|
15
|
-
<ion-button style="box-shadow: #4c8dff 0px 2px 2px 0.05px;" fill="outline" (click)="expandir()">
|
|
16
|
-
<ion-icon name="expand-outline"></ion-icon>
|
|
17
|
-
</ion-button>
|
|
18
|
-
</ion-item>
|
|
19
|
-
<kb-tree-view #treeViewComp [campoId]="campoId" [campoPai]="campoPai" [campoLabel]="'LabelTree'" (selecionarRegistro)="clickRegistro($event)"></kb-tree-view>
|
|
1
|
+
<ion-header>
|
|
2
|
+
<ion-toolbar color="secondary">
|
|
3
|
+
<ion-title>{{ titulo }}</ion-title>
|
|
4
|
+
<ion-buttons slot="end">
|
|
5
|
+
<ion-button (click)="atualizaArvoreEntidade(tipo)">
|
|
6
|
+
<ion-icon slot="icon-only" name="refresh"></ion-icon>
|
|
7
|
+
</ion-button>
|
|
8
|
+
<ion-button (click)="modalCtrl.dismiss()">Fechar</ion-button>
|
|
9
|
+
</ion-buttons>
|
|
10
|
+
</ion-toolbar>
|
|
11
|
+
</ion-header>
|
|
12
|
+
|
|
13
|
+
<ion-content>
|
|
14
|
+
<ion-item>
|
|
15
|
+
<ion-button style="box-shadow: #4c8dff 0px 2px 2px 0.05px;" fill="outline" (click)="expandir()">
|
|
16
|
+
<ion-icon name="expand-outline"></ion-icon>
|
|
17
|
+
</ion-button>
|
|
18
|
+
</ion-item>
|
|
19
|
+
<kb-tree-view #treeViewComp [campoId]="campoId" [campoPai]="campoPai" [campoLabel]="'LabelTree'" (selecionarRegistro)="clickRegistro($event)"></kb-tree-view>
|
|
20
20
|
</ion-content>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ModelTreeviewComponent } from './model-treeview.component';
|
|
4
|
-
|
|
5
|
-
describe('ModelTreeviewComponent', () => {
|
|
6
|
-
let component: ModelTreeviewComponent;
|
|
7
|
-
let fixture: ComponentFixture<ModelTreeviewComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ ModelTreeviewComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(ModelTreeviewComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ModelTreeviewComponent } from './model-treeview.component';
|
|
4
|
+
|
|
5
|
+
describe('ModelTreeviewComponent', () => {
|
|
6
|
+
let component: ModelTreeviewComponent;
|
|
7
|
+
let fixture: ComponentFixture<ModelTreeviewComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ModelTreeviewComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ModelTreeviewComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|