appproject-components 1.0.49 → 1.0.50
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/appproject-components.mjs +5 -0
- package/esm2022/lib/appproject-components.component.mjs +22 -0
- package/esm2022/lib/appproject-components.module.mjs +159 -0
- package/esm2022/lib/appproject-components.service.mjs +14 -0
- package/esm2022/lib/baseInputComponent.mjs +69 -0
- package/esm2022/lib/buttons/baseBtnComponent.mjs +63 -0
- package/esm2022/lib/buttons/btn-action/btn-action.component.mjs +55 -0
- package/esm2022/lib/buttons/btn-cancelar/btn-cancelar.component.mjs +25 -0
- package/esm2022/lib/buttons/btn-excluir/btn-excluir.component.mjs +29 -0
- package/esm2022/lib/buttons/btn-novo/btn-novo.component.mjs +33 -0
- package/esm2022/lib/buttons/btn-salvar/btn-salvar.component.mjs +19 -0
- package/esm2022/lib/entity-edit/entity-edit.component.mjs +53 -0
- package/esm2022/lib/grid-view/grid-view.component.mjs +275 -0
- package/esm2022/lib/input-area/input-area.component.mjs +72 -0
- package/esm2022/lib/input-arquivo/input-arquivo.component.mjs +154 -0
- package/esm2022/lib/input-cep/input-cep.component.mjs +180 -0
- package/esm2022/lib/input-checkbox/input-checkbox.component.mjs +51 -0
- package/esm2022/lib/input-format/input-format.component.mjs +138 -0
- package/esm2022/lib/input-pesquisa/input-pesquisa.component.mjs +557 -0
- package/esm2022/lib/input-radio/input-radio.component.mjs +58 -0
- package/esm2022/lib/input-select/input-select.component.mjs +110 -0
- package/esm2022/lib/input-text/input-text.component.mjs +88 -0
- package/esm2022/lib/input-valor/input-valor.component.mjs +161 -0
- package/esm2022/lib/lib-config.mjs +2 -0
- package/esm2022/lib/model-treeview/model-treeview.component.mjs +126 -0
- package/esm2022/lib/tree-view/tree-view.component.mjs +104 -0
- package/esm2022/lib/tree-view-nivel/tree-view-nivel.component.mjs +50 -0
- package/esm2022/public-api.mjs +30 -0
- package/fesm2022/appproject-components.mjs +2531 -0
- package/fesm2022/appproject-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/appproject-components.component.d.ts +8 -0
- package/lib/appproject-components.module.d.ts +36 -0
- package/lib/appproject-components.service.d.ts +6 -0
- package/lib/baseInputComponent.d.ts +28 -0
- package/lib/buttons/baseBtnComponent.d.ts +19 -0
- package/lib/buttons/btn-action/btn-action.component.d.ts +21 -0
- package/lib/buttons/btn-cancelar/btn-cancelar.component.d.ts +10 -0
- package/lib/buttons/btn-excluir/btn-excluir.component.d.ts +12 -0
- package/lib/buttons/btn-novo/btn-novo.component.d.ts +13 -0
- package/lib/buttons/btn-salvar/btn-salvar.component.d.ts +9 -0
- package/lib/entity-edit/entity-edit.component.d.ts +22 -0
- package/lib/grid-view/grid-view.component.d.ts +52 -0
- package/lib/input-area/input-area.component.d.ts +24 -0
- package/lib/input-arquivo/input-arquivo.component.d.ts +43 -0
- package/lib/input-cep/input-cep.component.d.ts +29 -0
- package/lib/input-checkbox/input-checkbox.component.d.ts +21 -0
- package/lib/input-format/input-format.component.d.ts +27 -0
- package/lib/input-pesquisa/input-pesquisa.component.d.ts +69 -0
- package/lib/input-radio/input-radio.component.d.ts +23 -0
- package/lib/input-select/input-select.component.d.ts +32 -0
- package/lib/input-text/input-text.component.d.ts +33 -0
- package/lib/input-valor/input-valor.component.d.ts +29 -0
- package/{src/lib/lib-config.ts → lib/lib-config.d.ts} +3 -4
- package/lib/model-treeview/model-treeview.component.d.ts +39 -0
- package/lib/tree-view/tree-view.component.d.ts +23 -0
- package/lib/tree-view-nivel/tree-view-nivel.component.d.ts +17 -0
- package/package.json +26 -15
- package/{src/public-api.ts → public-api.d.ts} +24 -30
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/appproject-components.component.spec.ts +0 -23
- package/src/lib/appproject-components.component.ts +0 -20
- package/src/lib/appproject-components.module.ts +0 -106
- package/src/lib/appproject-components.service.spec.ts +0 -16
- package/src/lib/appproject-components.service.ts +0 -9
- package/src/lib/baseComponent.scss +0 -162
- package/src/lib/baseInputComponent.ts +0 -35
- package/src/lib/buttons/baseBtnComponent.ts +0 -38
- package/src/lib/buttons/btn-action/btn-action.component.html +0 -11
- package/src/lib/buttons/btn-action/btn-action.component.scss +0 -7
- package/src/lib/buttons/btn-action/btn-action.component.spec.ts +0 -24
- package/src/lib/buttons/btn-action/btn-action.component.ts +0 -31
- package/src/lib/buttons/btn-cancelar/btn-cancelar.component.html +0 -14
- package/src/lib/buttons/btn-cancelar/btn-cancelar.component.scss +0 -5
- package/src/lib/buttons/btn-cancelar/btn-cancelar.component.spec.ts +0 -24
- package/src/lib/buttons/btn-cancelar/btn-cancelar.component.ts +0 -19
- package/src/lib/buttons/btn-excluir/btn-excluir.component.html +0 -6
- package/src/lib/buttons/btn-excluir/btn-excluir.component.scss +0 -5
- package/src/lib/buttons/btn-excluir/btn-excluir.component.spec.ts +0 -24
- package/src/lib/buttons/btn-excluir/btn-excluir.component.ts +0 -18
- package/src/lib/buttons/btn-novo/btn-novo.component.html +0 -14
- package/src/lib/buttons/btn-novo/btn-novo.component.scss +0 -8
- package/src/lib/buttons/btn-novo/btn-novo.component.spec.ts +0 -24
- package/src/lib/buttons/btn-novo/btn-novo.component.ts +0 -20
- package/src/lib/buttons/btn-salvar/btn-salvar.component.html +0 -8
- package/src/lib/buttons/btn-salvar/btn-salvar.component.scss +0 -5
- package/src/lib/buttons/btn-salvar/btn-salvar.component.spec.ts +0 -24
- package/src/lib/buttons/btn-salvar/btn-salvar.component.ts +0 -16
- package/src/lib/entity-edit/entity-edit.component.html +0 -143
- package/src/lib/entity-edit/entity-edit.component.scss +0 -4
- package/src/lib/entity-edit/entity-edit.component.spec.ts +0 -23
- package/src/lib/entity-edit/entity-edit.component.ts +0 -43
- package/src/lib/grid-view/grid-view.component.html +0 -116
- package/src/lib/grid-view/grid-view.component.scss +0 -47
- package/src/lib/grid-view/grid-view.component.spec.ts +0 -23
- package/src/lib/grid-view/grid-view.component.ts +0 -292
- package/src/lib/input-area/input-area.component.html +0 -30
- package/src/lib/input-area/input-area.component.scss +0 -68
- package/src/lib/input-area/input-area.component.spec.ts +0 -23
- package/src/lib/input-area/input-area.component.ts +0 -69
- package/src/lib/input-arquivo/input-arquivo.component.html +0 -11
- package/src/lib/input-arquivo/input-arquivo.component.scss +0 -0
- package/src/lib/input-arquivo/input-arquivo.component.spec.ts +0 -23
- package/src/lib/input-arquivo/input-arquivo.component.ts +0 -140
- package/src/lib/input-cep/input-cep.component.html +0 -38
- package/src/lib/input-cep/input-cep.component.scss +0 -0
- package/src/lib/input-cep/input-cep.component.spec.ts +0 -23
- package/src/lib/input-cep/input-cep.component.ts +0 -186
- package/src/lib/input-checkbox/input-checkbox.component.html +0 -12
- package/src/lib/input-checkbox/input-checkbox.component.scss +0 -11
- package/src/lib/input-checkbox/input-checkbox.component.spec.ts +0 -23
- package/src/lib/input-checkbox/input-checkbox.component.ts +0 -48
- package/src/lib/input-format/input-format.component.html +0 -32
- package/src/lib/input-format/input-format.component.scss +0 -47
- package/src/lib/input-format/input-format.component.spec.ts +0 -23
- package/src/lib/input-format/input-format.component.ts +0 -139
- package/src/lib/input-pesquisa/input-pesquisa.component.html +0 -77
- package/src/lib/input-pesquisa/input-pesquisa.component.scss +0 -127
- package/src/lib/input-pesquisa/input-pesquisa.component.spec.ts +0 -23
- package/src/lib/input-pesquisa/input-pesquisa.component.ts +0 -558
- package/src/lib/input-radio/input-radio.component.html +0 -21
- package/src/lib/input-radio/input-radio.component.scss +0 -3
- package/src/lib/input-radio/input-radio.component.spec.ts +0 -23
- package/src/lib/input-radio/input-radio.component.ts +0 -49
- package/src/lib/input-select/input-select.component.html +0 -29
- package/src/lib/input-select/input-select.component.scss +0 -62
- package/src/lib/input-select/input-select.component.spec.ts +0 -23
- package/src/lib/input-select/input-select.component.ts +0 -96
- package/src/lib/input-text/input-text.component.html +0 -48
- package/src/lib/input-text/input-text.component.scss +0 -63
- package/src/lib/input-text/input-text.component.spec.ts +0 -23
- package/src/lib/input-text/input-text.component.ts +0 -78
- package/src/lib/input-valor/input-valor.component.html +0 -32
- package/src/lib/input-valor/input-valor.component.scss +0 -47
- package/src/lib/input-valor/input-valor.component.spec.ts +0 -23
- package/src/lib/input-valor/input-valor.component.ts +0 -164
- package/src/lib/model-treeview/model-treeview.component.html +0 -20
- package/src/lib/model-treeview/model-treeview.component.scss +0 -0
- package/src/lib/model-treeview/model-treeview.component.spec.ts +0 -23
- package/src/lib/model-treeview/model-treeview.component.ts +0 -152
- package/src/lib/tree-view/tree-view.component.html +0 -96
- package/src/lib/tree-view/tree-view.component.scss +0 -50
- package/src/lib/tree-view/tree-view.component.spec.ts +0 -23
- package/src/lib/tree-view/tree-view.component.ts +0 -92
- package/src/lib/tree-view-nivel/tree-view-nivel.component.html +0 -17
- package/src/lib/tree-view-nivel/tree-view-nivel.component.scss +0 -8
- package/src/lib/tree-view-nivel/tree-view-nivel.component.spec.ts +0 -23
- package/src/lib/tree-view-nivel/tree-view-nivel.component.ts +0 -43
- package/src/test.ts +0 -15
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, Input, OnInit, ViewChild } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { BaseInputComponent } from '../baseInputComponent';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kb-input-format',
|
|
7
|
-
templateUrl: './input-format.component.html',
|
|
8
|
-
styleUrls: ['./input-format.component.scss', './../baseComponent.scss'],
|
|
9
|
-
providers: [{
|
|
10
|
-
provide: NG_VALUE_ACCESSOR,
|
|
11
|
-
useExisting: InputFormatComponent,
|
|
12
|
-
multi: true
|
|
13
|
-
}]
|
|
14
|
-
})
|
|
15
|
-
export class InputFormatComponent extends BaseInputComponent implements OnInit, ControlValueAccessor {
|
|
16
|
-
|
|
17
|
-
@Input() formato: string | null = null;
|
|
18
|
-
@Input() keyEnter = new EventEmitter();
|
|
19
|
-
@ViewChild('inputFormat', { read: ElementRef, static: true}) inputFormatEdit;
|
|
20
|
-
|
|
21
|
-
//control value acessor
|
|
22
|
-
public data: string | any = null;
|
|
23
|
-
private onChange: Function = (data: string) => {};
|
|
24
|
-
private onTouch: Function = () => {};
|
|
25
|
-
private disabled: boolean = false;
|
|
26
|
-
public console = console;
|
|
27
|
-
|
|
28
|
-
writeValue(value: string | any): void {
|
|
29
|
-
//console.log('write value', value);
|
|
30
|
-
this.onChange(value);
|
|
31
|
-
this.data = value;
|
|
32
|
-
}
|
|
33
|
-
registerOnChange(fn: any): void {
|
|
34
|
-
this.onChange = fn;
|
|
35
|
-
}
|
|
36
|
-
registerOnTouched(fn: any): void {
|
|
37
|
-
this.onTouch = fn;
|
|
38
|
-
}
|
|
39
|
-
setDisabledState?(isDisabled: boolean): void {
|
|
40
|
-
this.disabled = this.disabled;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
constructor() {
|
|
44
|
-
super();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
override ngOnInit() { }
|
|
48
|
-
|
|
49
|
-
digitarFormatado(event: any) {
|
|
50
|
-
//console.log(event);
|
|
51
|
-
const index = event.target.selectionStart >= 1 ? (event.target.selectionStart - 1) : 0;
|
|
52
|
-
const keyAt = event.target.value.charCodeAt(index);
|
|
53
|
-
if ((event.keyCode >= 48 && event.keyCode <= 57)
|
|
54
|
-
|| (keyAt >= 48 && keyAt <= 57)
|
|
55
|
-
|| (event.keyCode >= 96 && event.keyCode <= 105)
|
|
56
|
-
|| (event.keyCode == 8)
|
|
57
|
-
|| (event.keyCode == 9)
|
|
58
|
-
|| (event.keyCode == 39)
|
|
59
|
-
|| (event.keyCode == 37)
|
|
60
|
-
|| (event.keyCode == 46)) {
|
|
61
|
-
|
|
62
|
-
//console.log(this.formControlName, this.form.get(this.formControlName).value);
|
|
63
|
-
|
|
64
|
-
setTimeout(() => {
|
|
65
|
-
if (this.form) {
|
|
66
|
-
this.form.patchValue({
|
|
67
|
-
[this.formControlName]: this.formataCampoValor(this.form.get(this.formControlName)?.value, this.formato ?? '', event)
|
|
68
|
-
});
|
|
69
|
-
} else {
|
|
70
|
-
this.data = this.formataCampoValor(this.data ?? '', this.formato ?? '', event);
|
|
71
|
-
this.writeValue(this.data);
|
|
72
|
-
}
|
|
73
|
-
}, 100);
|
|
74
|
-
|
|
75
|
-
return true;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
onKeyEnter() {
|
|
83
|
-
if (this.keyEnter != null) {
|
|
84
|
-
this.keyEnter.emit();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
onBlur() {
|
|
89
|
-
if (this.form) {
|
|
90
|
-
this.form.get(this.formControlName)?.markAsTouched();
|
|
91
|
-
}
|
|
92
|
-
if (this.blur) {
|
|
93
|
-
this.blur.emit(this.blurArgs);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
setFocus() {
|
|
98
|
-
this.inputFormatEdit.nativeElement.setFocus();
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
formataCampoValor(valor: string, Mascara: string, evento: any) {
|
|
102
|
-
console.log(valor);
|
|
103
|
-
if (!valor)
|
|
104
|
-
return null;
|
|
105
|
-
//console.log(evento);
|
|
106
|
-
|
|
107
|
-
//if (!this.keypressInteiro(evento))
|
|
108
|
-
// return;
|
|
109
|
-
|
|
110
|
-
var boleanoMascara;
|
|
111
|
-
|
|
112
|
-
var Digitato = evento != null ? evento.keyCode : 0;
|
|
113
|
-
let exp = /\-|\.|\/|\(|\)| /g
|
|
114
|
-
let campoSoNumeros = valor.replace(exp, "");
|
|
115
|
-
|
|
116
|
-
var posicaoCampo = 0;
|
|
117
|
-
var NovoValorCampo = "";
|
|
118
|
-
var TamanhoMascara = campoSoNumeros.length;;
|
|
119
|
-
|
|
120
|
-
if (Digitato != 8) { // backspace
|
|
121
|
-
for (let i = 0; i <= TamanhoMascara; i++) {
|
|
122
|
-
boleanoMascara = ((Mascara.charAt(i) == "-") || (Mascara.charAt(i) == ".")
|
|
123
|
-
|| (Mascara.charAt(i) == "/"))
|
|
124
|
-
boleanoMascara = boleanoMascara || ((Mascara.charAt(i) == "(")
|
|
125
|
-
|| (Mascara.charAt(i) == ")") || (Mascara.charAt(i) == " "))
|
|
126
|
-
if (boleanoMascara) {
|
|
127
|
-
NovoValorCampo += Mascara.charAt(i);
|
|
128
|
-
TamanhoMascara++;
|
|
129
|
-
} else {
|
|
130
|
-
NovoValorCampo += campoSoNumeros.charAt(posicaoCampo);
|
|
131
|
-
posicaoCampo++;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return NovoValorCampo;
|
|
135
|
-
} else {
|
|
136
|
-
return valor;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
<div style="padding-inline-end: 0px;">
|
|
2
|
-
<ion-item lines="none" style="--background: inherited; --background-focused: transparent; margin-top: 2px;" [class]="itemClass">
|
|
3
|
-
<ion-label position="{{ labelPosition }}">{{ label }}</ion-label>
|
|
4
|
-
<!-- formControlName="{{ campo }}" -->
|
|
5
|
-
<ion-spinner *ngIf="!podePesquisar"
|
|
6
|
-
style="--min-height: 0px !important; margin-inline-end: 5px !important; margin-top: 16px;"
|
|
7
|
-
slot="start" name="lines"></ion-spinner>
|
|
8
|
-
<!-- (ionBlur)="verificarPesquisa()" -->
|
|
9
|
-
<!-- conflito com click da lista -->
|
|
10
|
-
<ion-input #inputPesquisa
|
|
11
|
-
[legacy]="true"
|
|
12
|
-
type="{{type}}"
|
|
13
|
-
[placeholder]="placeholder"
|
|
14
|
-
maxlength="{{ max }}"
|
|
15
|
-
(ionBlur)="onBlur($event)"
|
|
16
|
-
[value]="textoPesquisa" (input)="writePesquisa(inputPesquisa.value)"
|
|
17
|
-
(keyup)="showPesquisa($event)"
|
|
18
|
-
autocomplete="off" [style.--background]="inputBackgroungColor"
|
|
19
|
-
(click)="dropDownPesquisa(-1)"
|
|
20
|
-
[disabled]="readonly" debounce="500"></ion-input>
|
|
21
|
-
<ion-button size="small" slot="end" tabindex="-1"
|
|
22
|
-
class="botao-limpar" fill="clear" color="medium"
|
|
23
|
-
(click)="limparClick()">
|
|
24
|
-
<ion-icon name="close-outline"></ion-icon>
|
|
25
|
-
</ion-button>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<ion-button size="small" slot="end" tabindex="-1"
|
|
29
|
-
class="botao-limpar" fill="clear" color="medium"
|
|
30
|
-
(click)="pesquisarClick()">
|
|
31
|
-
<ion-icon color="primary" name="search"></ion-icon>
|
|
32
|
-
</ion-button>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</ion-item>
|
|
36
|
-
|
|
37
|
-
<ion-list tabindex="-1" [hidden]="!selectElementVisivel || !listaPesquisa || listaPesquisa.length == 0" class="pesquisa-list" style="max-height: 250px; overflow-y: auto;">
|
|
38
|
-
|
|
39
|
-
<ion-item tabindex="-1" button *ngFor="let item of listaPesquisa"
|
|
40
|
-
(click)="selecionarComboClick(item)" [id]="selectId + 'IonItem' + item['Index']"
|
|
41
|
-
class="pesquisa-item">
|
|
42
|
-
<!-- {{ item | json}} -->
|
|
43
|
-
<span [class]="{'selected-item': item['Selected'] === true}" [innerHTML]="highlight(item[campoDisplay])"></span>
|
|
44
|
-
</ion-item>
|
|
45
|
-
|
|
46
|
-
</ion-list>
|
|
47
|
-
|
|
48
|
-
<!--
|
|
49
|
-
<ion-select interface="popover" #selectElement tabindex="-1" [hidden]="!selectElementVisivel"
|
|
50
|
-
(ionChange)="selecionarComboChange($event.target.value)">
|
|
51
|
-
<ion-select-option *ngFor="let item of listaPesquisa" [value]="item[campoId]" (click)="selecionarComboClick(item[campoId])">
|
|
52
|
-
{{ item[campoDisplay] }}
|
|
53
|
-
</ion-select-option>
|
|
54
|
-
</ion-select>
|
|
55
|
-
-->
|
|
56
|
-
|
|
57
|
-
<!--
|
|
58
|
-
<select [id]="selectId" #selectElement tabindex="-1" [hidden]="!selectElementVisivel"
|
|
59
|
-
(change)="selecionarComboChange($event.target.value)" class="pesquisa-select">
|
|
60
|
-
<option *ngFor="let item of listaPesquisa" [value]="item[campoId]" (click)="selecionarComboClick(item[campoId])">
|
|
61
|
-
{{ item[campoDisplay] }}
|
|
62
|
-
</option>
|
|
63
|
-
|
|
64
|
-
</select>
|
|
65
|
-
-->
|
|
66
|
-
|
|
67
|
-
<div class="validation-errors" *ngIf="form">
|
|
68
|
-
|
|
69
|
-
<ng-container *ngFor="let validation of validation_messages">
|
|
70
|
-
<div class="error-message"
|
|
71
|
-
*ngIf="form.get(formControlName)?.hasError(validation.type) && (form.get(formControlName)?.dirty || form.get(formControlName)?.touched)">
|
|
72
|
-
• {{ validation.message }}
|
|
73
|
-
</div>
|
|
74
|
-
</ng-container>
|
|
75
|
-
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
ion-label {
|
|
3
|
-
margin-bottom: 4px !important;
|
|
4
|
-
opacity: 1 !important;
|
|
5
|
-
}
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
ion-input {
|
|
10
|
-
padding: var(--input-padding, 4px);
|
|
11
|
-
border: 1px solid darkgray;
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
width: 100%;
|
|
14
|
-
margin-top: 2px;
|
|
15
|
-
max-height: 29px;
|
|
16
|
-
}
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
input:focus {
|
|
21
|
-
border: 1px solid lightblue !important;
|
|
22
|
-
ion-label{
|
|
23
|
-
--color: blue !important;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/*
|
|
29
|
-
.padding {
|
|
30
|
-
//inner-padding-end: auto; --padding-start: auto;
|
|
31
|
-
padding: auto;
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
*/
|
|
35
|
-
/*
|
|
36
|
-
.no-padding {
|
|
37
|
-
--inner-padding-end: 0px; --padding-start: 0px;
|
|
38
|
-
--padding-bottom: 0px;
|
|
39
|
-
--inner-padding-bottom: 0px;
|
|
40
|
-
height: 55px !important;
|
|
41
|
-
}
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/*
|
|
45
|
-
.no-padding-no-height {
|
|
46
|
-
--inner-padding-end: 0px; --padding-start: 0px;
|
|
47
|
-
--padding-bottom: 0px;
|
|
48
|
-
--inner-padding-bottom: 0px;
|
|
49
|
-
}
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/*
|
|
53
|
-
.padding-top {
|
|
54
|
-
--padding-top: 0px;
|
|
55
|
-
}
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
.pesquisa-select {
|
|
59
|
-
display:block;
|
|
60
|
-
position:absolute;
|
|
61
|
-
top: 58px;
|
|
62
|
-
left: 20px;
|
|
63
|
-
width: 100%;
|
|
64
|
-
z-index: 800;
|
|
65
|
-
font-size: 16px;
|
|
66
|
-
font-family: Roboto, "Helvetica Neue", sans-serif;
|
|
67
|
-
border-bottom-left-radius: 5px;
|
|
68
|
-
border-bottom-right-radius: 5px;
|
|
69
|
-
|
|
70
|
-
option {
|
|
71
|
-
overflow-y: hidden;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
option:hover, option:checked {
|
|
75
|
-
background-color: lightblue;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.pesquisa-list {
|
|
80
|
-
display:block;
|
|
81
|
-
|
|
82
|
-
//position:absolute;
|
|
83
|
-
//top: 58px;
|
|
84
|
-
//left: 20px;
|
|
85
|
-
|
|
86
|
-
position: absolute;
|
|
87
|
-
margin-left: 20px;
|
|
88
|
-
margin-top: -4px;
|
|
89
|
-
|
|
90
|
-
// width: 100%;
|
|
91
|
-
width: calc(100% - 50px);
|
|
92
|
-
z-index: 800;
|
|
93
|
-
//font-size: 16px;
|
|
94
|
-
//font-family: Roboto, "Helvetica Neue", sans-serif;
|
|
95
|
-
border: 1px lightgrey solid;
|
|
96
|
-
border-bottom-left-radius: 5px;
|
|
97
|
-
border-bottom-right-radius: 5px;
|
|
98
|
-
padding: 0px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.pesquisa-item {
|
|
102
|
-
--inner-padding-top: 0px;
|
|
103
|
-
--inner-padding-bottom: 0px;
|
|
104
|
-
--padding-top: 0px;
|
|
105
|
-
--padding-bottom: 0px;
|
|
106
|
-
--min-height: 30px !important;
|
|
107
|
-
font-size: 12px;
|
|
108
|
-
button {
|
|
109
|
-
padding: 0px;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.selected-item {
|
|
114
|
-
background-color: lightblue;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.botao-limpar {
|
|
118
|
-
margin-top: var(--margin-botao-limpar, 25px);
|
|
119
|
-
margin-inline-start: 4px !important;
|
|
120
|
-
--padding-start:2px;
|
|
121
|
-
--padding-end: 2px;
|
|
122
|
-
margin-bottom: 2px !important;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
[hidden] {
|
|
126
|
-
display: none !important;
|
|
127
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
});
|