appproject-components 1.0.1 → 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.
- package/esm2022/lib/appproject-components.module.mjs +36 -6
- 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 +41 -0
- package/esm2022/lib/input-pesquisa/input-pesquisa.component.mjs +6 -5
- package/esm2022/lib/input-select/input-select.component.mjs +2 -2
- package/esm2022/lib/input-valor/input-valor.component.mjs +4 -1
- package/esm2022/lib/lib-config.mjs +2 -0
- package/esm2022/public-api.mjs +8 -1
- package/fesm2022/appproject-components.mjs +271 -10
- package/fesm2022/appproject-components.mjs.map +1 -1
- package/lib/appproject-components.module.d.ts +12 -8
- 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 +20 -0
- package/lib/input-pesquisa/input-pesquisa.component.d.ts +1 -1
- package/lib/input-valor/input-valor.component.d.ts +1 -0
- package/lib/lib-config.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -311,7 +311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
311
311
|
|
|
312
312
|
class InputSelectComponent extends BaseInputComponent {
|
|
313
313
|
writeValue(value) {
|
|
314
|
-
console.log('write value select', value);
|
|
314
|
+
//console.log('write value select', value);
|
|
315
315
|
this.onChange(value);
|
|
316
316
|
this.data = value;
|
|
317
317
|
}
|
|
@@ -402,6 +402,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
402
402
|
args: [{ selector: 'kb-model-treeview', template: "<p>model-treeview works!</p>\n" }]
|
|
403
403
|
}], ctorParameters: () => [] });
|
|
404
404
|
|
|
405
|
+
//import { LibConfig, LibConfigService } from '../appproject-components.module';
|
|
405
406
|
class InputPesquisaComponent extends BaseInputComponent {
|
|
406
407
|
writeValue(value) {
|
|
407
408
|
//console.log('write value', value);
|
|
@@ -496,9 +497,10 @@ class InputPesquisaComponent extends BaseInputComponent {
|
|
|
496
497
|
this.url = this.url.startsWith('http') ? this.url : `${this.BASE_API}/${this.url}`;
|
|
497
498
|
this.urlItem = this.urlItem.startsWith('http') ? this.urlItem : `${this.BASE_API}/${this.urlItem}`;
|
|
498
499
|
this.pesquisaSubject.pipe(switchMap((url) => {
|
|
499
|
-
//this.console.log('subject url:', url);
|
|
500
|
+
//this.console.log('subject url:', url);
|
|
500
501
|
if (!this.isEmpty(url)) {
|
|
501
502
|
return this.httpClient.get(url);
|
|
503
|
+
//return of(url);
|
|
502
504
|
}
|
|
503
505
|
else
|
|
504
506
|
return of([]);
|
|
@@ -886,7 +888,7 @@ class InputPesquisaComponent extends BaseInputComponent {
|
|
|
886
888
|
isEmpty(valor) {
|
|
887
889
|
return valor == null || valor == undefined || valor == '';
|
|
888
890
|
}
|
|
889
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: InputPesquisaComponent, deps: [{ token: LibConfigService }, { token: i1$1.HttpClient }, { token: i2.ModalController }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: InputPesquisaComponent, deps: [{ token: 'LibConfigService' }, { token: i1$1.HttpClient }, { token: i2.ModalController }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
890
892
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: InputPesquisaComponent, selector: "kb-input-pesquisa", inputs: { textoPesquisa: "textoPesquisa", max: "max", filterFunction: "filterFunction", selectId: "selectId", campoId: "campoId", campoPaiId: "campoPaiId", campoDisplay: "campoDisplay", tipo: "tipo", pesquisaChange: "pesquisaChange", pesquisaAction: "pesquisaAction", limpar: "limpar", url: "url", urlItem: "urlItem", urlTree: "urlTree", empresa: "empresa", loadInit: "loadInit" }, providers: [{
|
|
891
893
|
provide: NG_VALUE_ACCESSOR,
|
|
892
894
|
useExisting: InputPesquisaComponent,
|
|
@@ -902,7 +904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
902
904
|
}], template: "<div style=\"padding-inline-end: 0px;\">\r\n <ion-item lines=\"none\" style=\"--background: inherited; --background-focused: transparent; margin-top: 2px;\" [class]=\"itemClass\">\r\n <ion-label position=\"{{ labelPosition }}\" color=\"{{ labelColor }}\">{{ label }}</ion-label>\r\n <!-- formControlName=\"{{ campo }}\" -->\r\n <ion-spinner *ngIf=\"!podePesquisar\"\r\n style=\"--min-height: 0px !important; margin-inline-end: 5px !important; margin-top: 16px;\" \r\n slot=\"start\" name=\"lines\"></ion-spinner>\r\n <!-- (ionBlur)=\"verificarPesquisa()\" -->\r\n <!-- conflito com click da lista -->\r\n <ion-input #inputPesquisa\r\n type=\"{{type}}\" \r\n [placeholder]=\"placeholder\" \r\n maxlength=\"{{ max }}\" \r\n (ionBlur)=\"onBlur($event)\"\r\n [value]=\"textoPesquisa\" (input)=\"writePesquisa(inputPesquisa.value)\" \r\n (keyup)=\"showPesquisa($event)\"\r\n autocomplete=\"off\" [style.--background]=\"inputBackgroungColor\"\r\n (click)=\"dropDownPesquisa(-1)\"\r\n [disabled]=\"readonly\" debounce=\"500\"></ion-input>\r\n <ion-button size=\"small\" slot=\"end\" tabindex=\"-1\"\r\n style=\"margin-top: 25px; margin-inline-start: 4px !important; --padding-start:2px; --padding-end: 2px;\" fill=\"clear\" color=\"medium\"\r\n (click)=\"limparClick()\">\r\n <ion-icon name=\"close-outline\"></ion-icon>\r\n </ion-button>\r\n \r\n <!--\r\n <ion-button size=\"small\" slot=\"end\" tabindex=\"-1\"\r\n style=\"margin-top: 25px; margin-inline-start: 4px !important; --padding-start:2px; --padding-end: 2px;\" fill=\"clear\" color=\"medium\"\r\n (click)=\"pesquisarClick()\">\r\n <ion-icon color=\"primary\" name=\"search\"></ion-icon>\r\n </ion-button>\r\n -->\r\n \r\n </ion-item>\r\n \r\n <ion-list tabindex=\"-1\" [hidden]=\"!selectElementVisivel || !listaPesquisa || listaPesquisa.length == 0\" class=\"pesquisa-list\" style=\"max-height: 250px; overflow-y: auto;\">\r\n \r\n <ion-item tabindex=\"-1\" button *ngFor=\"let item of listaPesquisa\" \r\n (click)=\"selecionarComboClick(item)\" [id]=\"selectId + 'IonItem' + item['Index']\"\r\n class=\"pesquisa-item\">\r\n <!-- {{ item | json}} -->\r\n <span [class]=\"{'selected-item': item['Selected'] === true}\" [innerHTML]=\"highlight(item[campoDisplay])\"></span>\r\n </ion-item>\r\n \r\n </ion-list>\r\n \r\n <!--\r\n <ion-select interface=\"popover\" #selectElement tabindex=\"-1\" [hidden]=\"!selectElementVisivel\"\r\n (ionChange)=\"selecionarComboChange($event.target.value)\">\r\n <ion-select-option *ngFor=\"let item of listaPesquisa\" [value]=\"item[campoId]\" (click)=\"selecionarComboClick(item[campoId])\">\r\n {{ item[campoDisplay] }}\r\n </ion-select-option>\r\n </ion-select>\r\n -->\r\n \r\n <!--\r\n <select [id]=\"selectId\" #selectElement tabindex=\"-1\" [hidden]=\"!selectElementVisivel\"\r\n (change)=\"selecionarComboChange($event.target.value)\" class=\"pesquisa-select\">\r\n <option *ngFor=\"let item of listaPesquisa\" [value]=\"item[campoId]\" (click)=\"selecionarComboClick(item[campoId])\">\r\n {{ item[campoDisplay] }}\r\n </option>\r\n \r\n </select>\r\n -->\r\n \r\n <div class=\"validation-errors\" *ngIf=\"form\">\r\n \r\n <ng-container *ngFor=\"let validation of validation_messages\">\r\n <div class=\"error-message\"\r\n *ngIf=\"form.get(formControlName)?.hasError(validation.type) && (form.get(formControlName)?.dirty || form.get(formControlName)?.touched)\">\r\n • {{ validation.message }}\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </div>", styles: [".pesquisa-select{display:block;position:absolute;top:58px;left:20px;width:100%;z-index:800;font-size:16px;font-family:Roboto,Helvetica Neue,sans-serif;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.pesquisa-select option{overflow-y:hidden}.pesquisa-select option:hover,.pesquisa-select option:checked{background-color:#add8e6}.pesquisa-list{display:block;position:absolute;margin-left:20px;margin-top:-4px;width:calc(100% - 50px);z-index:800;border:1px lightgrey solid;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:0}.pesquisa-item{--inner-padding-top: 0px;--inner-padding-bottom: 0px;--padding-top: 0px;--padding-bottom: 0px;--min-height: 30px !important;font-size:12px}.pesquisa-item button{padding:0}.selected-item{background-color:#add8e6}\n", "@charset \"UTF-8\";ion-label{margin-bottom:4px!important}ion-item ion-label{overflow:initial!important}ion-input{padding:var(--input-padding, 8px)!important;border:1px solid darkgray;border-radius:4px;width:100%;margin-top:2px;max-height:var(--input-max-height, 29px);transition:.2s ease}.has-focus{border:1px solid var(--ion-color-bluetool, #1f477d)}input:focus ion-input,input:focus ion-textarea{border:1px solid lightblue!important}input:focus ion-label{--color: blue !important}input:disabled{opacity:.9!important}.error-message{font-size:small;color:var(--error-text-color, red);margin-left:15px}.padding{padding:auto}.no-padding{--inner-padding-end: 0px;--padding-start: 0px;--padding-bottom: 0px;--inner-padding-bottom: 0px;height:55px!important}.no-padding-end{--inner-padding-end: 0px}.no-padding-no-height{--inner-padding-end: 0px;--padding-start: 0px;--padding-bottom: 0px;--inner-padding-bottom: 0px}.padding-top{--padding-top: 0px}.item-inner{padding-right:0!important}.label-right ion-label{transform-origin:right top;align-self:flex-end;margin-bottom:4%!important}.align-to-right ion-label{position:relative;left:25%;text-align:end}.error-input ion-input,.error-shake ion-input{animation:shake .4s 1 linear;border:1px solid var(--error-text-color, red)!important}@keyframes shake{0%{transform:translate(20px)}20%{transform:translate(-20px)}40%{transform:translate(10px)}60%{transform:translate(-10px)}80%{transform:translate(4px)}to{transform:translate(0)}}.error-input ion-label,.error-shake ion-label{color:var(--error-text-color, red)!important}.error-input ion-input,.error-shake ion-input{border:1px solid red!important}.error-shake ion-input{animation:shake .4s 1 linear}\n"] }]
|
|
903
905
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
904
906
|
type: Inject,
|
|
905
|
-
args: [LibConfigService]
|
|
907
|
+
args: ['LibConfigService']
|
|
906
908
|
}] }, { type: i1$1.HttpClient }, { type: i2.ModalController }], propDecorators: { textoPesquisa: [{
|
|
907
909
|
type: Input
|
|
908
910
|
}], max: [{
|
|
@@ -1071,6 +1073,9 @@ class InputValorComponent extends BaseInputComponent {
|
|
|
1071
1073
|
else
|
|
1072
1074
|
return parseFloat(str.replace('.', '').replace(',', '.'));
|
|
1073
1075
|
}
|
|
1076
|
+
setFocus() {
|
|
1077
|
+
this.inputValorEdit.nativeElement.setFocus();
|
|
1078
|
+
}
|
|
1074
1079
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: InputValorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1075
1080
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: InputValorComponent, selector: "kb-input-valor", inputs: { maxValor: "maxValor" }, providers: [{
|
|
1076
1081
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1428,6 +1433,238 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
1428
1433
|
args: ['inputNome', { read: ElementRef, static: true }]
|
|
1429
1434
|
}] } });
|
|
1430
1435
|
|
|
1436
|
+
class BaseBtnComponent {
|
|
1437
|
+
constructor() {
|
|
1438
|
+
this.disabled = false;
|
|
1439
|
+
this.type = 'submit';
|
|
1440
|
+
this.icon = 'checkmark-outline';
|
|
1441
|
+
this.iconSrc = '';
|
|
1442
|
+
this.title = 'Salvar';
|
|
1443
|
+
this.fill = 'outline';
|
|
1444
|
+
this.expand = 'block';
|
|
1445
|
+
this.btnClick = new EventEmitter();
|
|
1446
|
+
this.size = 'default';
|
|
1447
|
+
this.iconSlot = 'start';
|
|
1448
|
+
}
|
|
1449
|
+
ngOnInit() {
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1452
|
+
onClick() {
|
|
1453
|
+
if (this.btnClick)
|
|
1454
|
+
this.btnClick.emit();
|
|
1455
|
+
}
|
|
1456
|
+
resolveTheme(theme) {
|
|
1457
|
+
//console.log('resolve theme', theme);
|
|
1458
|
+
// if (theme == 'default') {
|
|
1459
|
+
// this.fill = 'outline';
|
|
1460
|
+
// } else {
|
|
1461
|
+
// this.fill = 'solid';
|
|
1462
|
+
// }
|
|
1463
|
+
if (theme == 'windows-theme') {
|
|
1464
|
+
this.fill = 'solid';
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BaseBtnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1468
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: BaseBtnComponent, selector: "ng-component", inputs: { disabled: "disabled", type: "type", icon: "icon", iconSrc: "iconSrc", title: "title", fill: "fill", expand: "expand", size: "size", iconSlot: "iconSlot" }, outputs: { btnClick: "btnClick" }, ngImport: i0, template: '', isInline: true }); }
|
|
1469
|
+
}
|
|
1470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BaseBtnComponent, decorators: [{
|
|
1471
|
+
type: Component,
|
|
1472
|
+
args: [{
|
|
1473
|
+
template: ''
|
|
1474
|
+
}]
|
|
1475
|
+
}], propDecorators: { disabled: [{
|
|
1476
|
+
type: Input
|
|
1477
|
+
}], type: [{
|
|
1478
|
+
type: Input
|
|
1479
|
+
}], icon: [{
|
|
1480
|
+
type: Input
|
|
1481
|
+
}], iconSrc: [{
|
|
1482
|
+
type: Input
|
|
1483
|
+
}], title: [{
|
|
1484
|
+
type: Input
|
|
1485
|
+
}], fill: [{
|
|
1486
|
+
type: Input
|
|
1487
|
+
}], expand: [{
|
|
1488
|
+
type: Input
|
|
1489
|
+
}], btnClick: [{
|
|
1490
|
+
type: Output
|
|
1491
|
+
}], size: [{
|
|
1492
|
+
type: Input
|
|
1493
|
+
}], iconSlot: [{
|
|
1494
|
+
type: Input
|
|
1495
|
+
}] } });
|
|
1496
|
+
|
|
1497
|
+
class BtnActionComponent extends BaseBtnComponent {
|
|
1498
|
+
constructor() {
|
|
1499
|
+
super();
|
|
1500
|
+
this.title = 'Abrir';
|
|
1501
|
+
this.color = 'primary';
|
|
1502
|
+
this.hidden = false;
|
|
1503
|
+
this.icon = '';
|
|
1504
|
+
this.iconSrc = '';
|
|
1505
|
+
this.imgSrc = '';
|
|
1506
|
+
this.boxColor = '#4c8dff';
|
|
1507
|
+
this.btnMargin = '4px';
|
|
1508
|
+
this.expand = 'block';
|
|
1509
|
+
this.iconStyle = '';
|
|
1510
|
+
this.titleStyle = '';
|
|
1511
|
+
this.buttonStyle = '';
|
|
1512
|
+
this.type = 'button';
|
|
1513
|
+
}
|
|
1514
|
+
ngOnInit() {
|
|
1515
|
+
this.buttonStyle = '';
|
|
1516
|
+
}
|
|
1517
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1518
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: BtnActionComponent, selector: "app-btn-action", inputs: { title: "title", color: "color", hidden: "hidden", icon: "icon", iconSrc: "iconSrc", imgSrc: "imgSrc", boxColor: "boxColor", btnMargin: "btnMargin", expand: "expand", iconStyle: "iconStyle", titleStyle: "titleStyle" }, usesInheritance: true, ngImport: i0, template: "<ion-button [color]=\"color\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\"\r\n [size]=\"size\"\r\n [hidden]=\"hidden\" \r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon *ngIf=\"icon || iconSrc\" [slot]=\"title ? iconSlot : 'icon-only'\" [name]=\"icon\" [src]=\"iconSrc\" [style]=\"iconStyle\"></ion-icon>\r\n <span [style]=\"titleStyle\">{{ title }}</span>\r\n <img *ngIf=\"imgSrc\" [src]=\"imgSrc\" [slot]=\"title ? iconSlot : 'icon-only'\"/>\r\n</ion-button>\r\n\r\n\r\n", styles: ["img{width:24px;margin-right:6px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
|
|
1519
|
+
}
|
|
1520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnActionComponent, decorators: [{
|
|
1521
|
+
type: Component,
|
|
1522
|
+
args: [{ selector: 'app-btn-action', template: "<ion-button [color]=\"color\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\"\r\n [size]=\"size\"\r\n [hidden]=\"hidden\" \r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon *ngIf=\"icon || iconSrc\" [slot]=\"title ? iconSlot : 'icon-only'\" [name]=\"icon\" [src]=\"iconSrc\" [style]=\"iconStyle\"></ion-icon>\r\n <span [style]=\"titleStyle\">{{ title }}</span>\r\n <img *ngIf=\"imgSrc\" [src]=\"imgSrc\" [slot]=\"title ? iconSlot : 'icon-only'\"/>\r\n</ion-button>\r\n\r\n\r\n", styles: ["img{width:24px;margin-right:6px}\n"] }]
|
|
1523
|
+
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
1524
|
+
type: Input
|
|
1525
|
+
}], color: [{
|
|
1526
|
+
type: Input
|
|
1527
|
+
}], hidden: [{
|
|
1528
|
+
type: Input
|
|
1529
|
+
}], icon: [{
|
|
1530
|
+
type: Input
|
|
1531
|
+
}], iconSrc: [{
|
|
1532
|
+
type: Input
|
|
1533
|
+
}], imgSrc: [{
|
|
1534
|
+
type: Input
|
|
1535
|
+
}], boxColor: [{
|
|
1536
|
+
type: Input
|
|
1537
|
+
}], btnMargin: [{
|
|
1538
|
+
type: Input
|
|
1539
|
+
}], expand: [{
|
|
1540
|
+
type: Input
|
|
1541
|
+
}], iconStyle: [{
|
|
1542
|
+
type: Input
|
|
1543
|
+
}], titleStyle: [{
|
|
1544
|
+
type: Input
|
|
1545
|
+
}] } });
|
|
1546
|
+
|
|
1547
|
+
class BtnCancelarComponent extends BaseBtnComponent {
|
|
1548
|
+
//@Input() override icon: string = '';
|
|
1549
|
+
constructor() {
|
|
1550
|
+
super();
|
|
1551
|
+
//@Input() override iconSrc = "/assets/icon/limpar_purple_24dp.svg";
|
|
1552
|
+
this.icon = "close-outline";
|
|
1553
|
+
this.title = 'Cancelar';
|
|
1554
|
+
this.type = 'button';
|
|
1555
|
+
}
|
|
1556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnCancelarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1557
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: BtnCancelarComponent, selector: "app-btn-cancelar", inputs: { icon: "icon", title: "title" }, usesInheritance: true, ngImport: i0, template: "<ion-button color=\"tertiary\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" \r\n [size]=\"size\"\r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon [slot]=\"title ? 'start' : 'icon-only'\" [src]=\"iconSrc\" [name]=\"icon\"></ion-icon>\r\n {{ title }}\r\n</ion-button> \r\n<!-- \r\n<ion-button color=\"tertiary\" fill=\"outline\" (click)=\"cancelarContato()\" style=\"box-shadow: #6370ff 0px 3px 3px 0.05px\"\r\n [disabled]=\"!selectedContato\">\r\n <ion-icon src=\"/assets/icon/limpar_purple_24dp.svg\"></ion-icon>\r\n Cancelar\r\n</ion-button>\r\n-->", styles: ["ion-button{margin:4px;box-shadow:#6370ff 0 3px 3px .05px}\n"], dependencies: [{ kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
|
|
1558
|
+
}
|
|
1559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnCancelarComponent, decorators: [{
|
|
1560
|
+
type: Component,
|
|
1561
|
+
args: [{ selector: 'app-btn-cancelar', template: "<ion-button color=\"tertiary\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" \r\n [size]=\"size\"\r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon [slot]=\"title ? 'start' : 'icon-only'\" [src]=\"iconSrc\" [name]=\"icon\"></ion-icon>\r\n {{ title }}\r\n</ion-button> \r\n<!-- \r\n<ion-button color=\"tertiary\" fill=\"outline\" (click)=\"cancelarContato()\" style=\"box-shadow: #6370ff 0px 3px 3px 0.05px\"\r\n [disabled]=\"!selectedContato\">\r\n <ion-icon src=\"/assets/icon/limpar_purple_24dp.svg\"></ion-icon>\r\n Cancelar\r\n</ion-button>\r\n-->", styles: ["ion-button{margin:4px;box-shadow:#6370ff 0 3px 3px .05px}\n"] }]
|
|
1562
|
+
}], ctorParameters: () => [], propDecorators: { icon: [{
|
|
1563
|
+
type: Input
|
|
1564
|
+
}], title: [{
|
|
1565
|
+
type: Input
|
|
1566
|
+
}] } });
|
|
1567
|
+
|
|
1568
|
+
class BtnExcluirComponent extends BaseBtnComponent {
|
|
1569
|
+
constructor() {
|
|
1570
|
+
super();
|
|
1571
|
+
this.type = 'button';
|
|
1572
|
+
this.expand = 'inline';
|
|
1573
|
+
this.icon = 'trash';
|
|
1574
|
+
this.title = 'Excluir';
|
|
1575
|
+
}
|
|
1576
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnExcluirComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1577
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: BtnExcluirComponent, selector: "app-btn-excluir", inputs: { type: "type", expand: "expand", icon: "icon", title: "title" }, usesInheritance: true, ngImport: i0, template: "<ion-button color=\"danger\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" [size]=\"size\"\r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon *ngIf=\"icon\" [slot]=\"title ? 'start' : 'icon-only'\" [name]=\"icon\"></ion-icon>\r\n {{ title }}\r\n</ion-button> \r\n", styles: ["ion-button{margin:4px;box-shadow:#ed576b 0 3px 3px .05px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
|
|
1578
|
+
}
|
|
1579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnExcluirComponent, decorators: [{
|
|
1580
|
+
type: Component,
|
|
1581
|
+
args: [{ selector: 'app-btn-excluir', template: "<ion-button color=\"danger\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" [size]=\"size\"\r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon *ngIf=\"icon\" [slot]=\"title ? 'start' : 'icon-only'\" [name]=\"icon\"></ion-icon>\r\n {{ title }}\r\n</ion-button> \r\n", styles: ["ion-button{margin:4px;box-shadow:#ed576b 0 3px 3px .05px}\n"] }]
|
|
1582
|
+
}], ctorParameters: () => [], propDecorators: { type: [{
|
|
1583
|
+
type: Input
|
|
1584
|
+
}], expand: [{
|
|
1585
|
+
type: Input
|
|
1586
|
+
}], icon: [{
|
|
1587
|
+
type: Input
|
|
1588
|
+
}], title: [{
|
|
1589
|
+
type: Input
|
|
1590
|
+
}] } });
|
|
1591
|
+
|
|
1592
|
+
class BtnNovoComponent extends BaseBtnComponent {
|
|
1593
|
+
constructor() {
|
|
1594
|
+
super();
|
|
1595
|
+
this.title = 'Novo';
|
|
1596
|
+
this.icon = 'person-add';
|
|
1597
|
+
this.iconSrc = '';
|
|
1598
|
+
this.expand = 'block';
|
|
1599
|
+
this.imgSrc = '';
|
|
1600
|
+
this.type = 'button';
|
|
1601
|
+
}
|
|
1602
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnNovoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1603
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: BtnNovoComponent, selector: "app-btn-novo", inputs: { title: "title", icon: "icon", iconSrc: "iconSrc", expand: "expand", imgSrc: "imgSrc" }, usesInheritance: true, ngImport: i0, template: "<ion-button color=\"primary\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" \r\n [size]=\"size\"\r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon *ngIf=\"icon || iconSrc\" [slot]=\"title ? 'start' : 'icon-only'\" [name]=\"icon\" [src]=\"iconSrc\"></ion-icon>\r\n {{ title }}\r\n <img *ngIf=\"imgSrc\" [src]=\"imgSrc\" [slot]=\"title ? 'start' : 'icon-only'\"/>\r\n</ion-button> \r\n<!-- \r\n<ion-button (click)=\"novoContato()\" fill=\"outline\" style=\"box-shadow: #4c8dff 0px 3px 3px 0.05px\">\r\n <ion-icon slot=\"start\" name=\"person-add\"></ion-icon>\r\n Novo\r\n</ion-button>\r\n-->", styles: ["ion-button{box-shadow:#4c8dff 0 3px 3px .05px}img{width:24px;margin-right:6px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
|
|
1604
|
+
}
|
|
1605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnNovoComponent, decorators: [{
|
|
1606
|
+
type: Component,
|
|
1607
|
+
args: [{ selector: 'app-btn-novo', template: "<ion-button color=\"primary\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" \r\n [size]=\"size\"\r\n (click)=\"onClick()\"\r\n > \r\n <ion-icon *ngIf=\"icon || iconSrc\" [slot]=\"title ? 'start' : 'icon-only'\" [name]=\"icon\" [src]=\"iconSrc\"></ion-icon>\r\n {{ title }}\r\n <img *ngIf=\"imgSrc\" [src]=\"imgSrc\" [slot]=\"title ? 'start' : 'icon-only'\"/>\r\n</ion-button> \r\n<!-- \r\n<ion-button (click)=\"novoContato()\" fill=\"outline\" style=\"box-shadow: #4c8dff 0px 3px 3px 0.05px\">\r\n <ion-icon slot=\"start\" name=\"person-add\"></ion-icon>\r\n Novo\r\n</ion-button>\r\n-->", styles: ["ion-button{box-shadow:#4c8dff 0 3px 3px .05px}img{width:24px;margin-right:6px}\n"] }]
|
|
1608
|
+
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
1609
|
+
type: Input
|
|
1610
|
+
}], icon: [{
|
|
1611
|
+
type: Input
|
|
1612
|
+
}], iconSrc: [{
|
|
1613
|
+
type: Input
|
|
1614
|
+
}], expand: [{
|
|
1615
|
+
type: Input
|
|
1616
|
+
}], imgSrc: [{
|
|
1617
|
+
type: Input
|
|
1618
|
+
}] } });
|
|
1619
|
+
|
|
1620
|
+
class BtnSalvarComponent extends BaseBtnComponent {
|
|
1621
|
+
constructor() {
|
|
1622
|
+
super();
|
|
1623
|
+
this.btnMargin = '4px';
|
|
1624
|
+
}
|
|
1625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnSalvarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1626
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: BtnSalvarComponent, selector: "app-btn-salvar", inputs: { btnMargin: "btnMargin" }, usesInheritance: true, ngImport: i0, template: "<ion-button color=\"success\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" \r\n [size]=\"size\"\r\n (click)=\"onClick()\"\r\n [style.margin]=\"btnMargin\"\r\n > \r\n <ion-icon [slot]=\"title ? 'start' : 'icon-only'\" [name]=\"icon\"></ion-icon>\r\n {{ title }}\r\n</ion-button>", styles: ["ion-button{box-shadow:#42d77d 0 3px 3px .05px}\n"], dependencies: [{ kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
|
|
1627
|
+
}
|
|
1628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: BtnSalvarComponent, decorators: [{
|
|
1629
|
+
type: Component,
|
|
1630
|
+
args: [{ selector: 'app-btn-salvar', template: "<ion-button color=\"success\" [type]=\"type\" [disabled]=\"disabled\" [fill]=\"fill\" [expand]=\"expand\" \r\n [size]=\"size\"\r\n (click)=\"onClick()\"\r\n [style.margin]=\"btnMargin\"\r\n > \r\n <ion-icon [slot]=\"title ? 'start' : 'icon-only'\" [name]=\"icon\"></ion-icon>\r\n {{ title }}\r\n</ion-button>", styles: ["ion-button{box-shadow:#42d77d 0 3px 3px .05px}\n"] }]
|
|
1631
|
+
}], ctorParameters: () => [], propDecorators: { btnMargin: [{
|
|
1632
|
+
type: Input
|
|
1633
|
+
}] } });
|
|
1634
|
+
|
|
1635
|
+
class EntityEditComponent {
|
|
1636
|
+
constructor(ngZone) {
|
|
1637
|
+
this.ngZone = ngZone;
|
|
1638
|
+
}
|
|
1639
|
+
ngOnInit() {
|
|
1640
|
+
//this.getEntidadeCampos();
|
|
1641
|
+
}
|
|
1642
|
+
getEntidadeCampos() {
|
|
1643
|
+
//this.entidade = new this.entidadeTipo();
|
|
1644
|
+
// console.log(this.entidade);
|
|
1645
|
+
// this.ngZone.run(() =>
|
|
1646
|
+
// this.campos = this.entidade.getHtmlForm()
|
|
1647
|
+
// );
|
|
1648
|
+
// console.log(this.campos);
|
|
1649
|
+
}
|
|
1650
|
+
emptyHandler() {
|
|
1651
|
+
}
|
|
1652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: EntityEditComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1653
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: EntityEditComponent, selector: "kb-entity-edit", inputs: { entidade: "entidade", campos: "campos", entidadeForm: "entidadeForm", validation_messages: "validation_messages" }, ngImport: i0, template: "<form *ngIf=\"campos && campos.length\" [formGroup]=\"entidadeForm\" style=\"width: 100%;\">\n\n\n <ion-row *ngFor=\"let linha of campos\">\n <ng-container *ngFor=\"let campo of linha.Linha\">\n <!-- {{ campo.Nome }} {{ campo.Tipo }} -->\n \n <ion-col [sizeMd]=\"campo.Size\" *ngIf=\"campo.Tipo == 'input-text'\">\n <kb-input-text label=\"{{campo.Nome}}\" placeholder=\"Digite o {{campo.Nome}}...\" [form]=\"entidadeForm\" [max]=\"campo.Tamanho ?? '50'\"\n [validation_messages]=\"validation_messages[campo.Nome]\" [formControlName]=\"campo.Nome\" [campoFoco]=\"campo.CampoFoco\">\n </kb-input-text>\n </ion-col>\n \n <ion-col [sizeMd]=\"campo.Size\" class=\"select ion-no-margin ion-no-padding\" *ngIf=\"campo.Tipo == 'ion-checkbox'\">\n <ion-item lines=\"none\">\n <ion-label>{{ campo.Nome }}</ion-label>\n <ion-checkbox slot=\"start\" [formControlName]=\"campo.Nome\"></ion-checkbox>\n </ion-item>\n </ion-col>\n \n <ion-col [sizeMd]=\"campo.Size\" *ngIf=\"campo.Tipo == 'input-select'\">\n <kb-input-select [label]=\"campo.Nome\" [placeholder]=\"'Selecionar...'\" [formControlName]=\"campo.Nome\"\n [form]=\"entidadeForm\" [itens]=\"campo.Itens\" [itemId]=\"campo.ItemId\" [itemNome]=\"campo.ItemNome\">\n </kb-input-select>\n </ion-col>\n \n \n <ion-col [sizeMd]=\"campo.Size\" *ngIf=\"campo.Tipo == 'input-pesquisa'\">\n <kb-input-pesquisa #pesquisaCentroCustoPai [label]=\"campo.Label ?? campo.Nome\" [campoId]=\"campo.ItemId\"\n [formControlName]=\"campo.Nome\" placeholder=\"Pesquisar...\" [campoDisplay]=\"'Nome'\"\n [form]=\"entidadeForm\" tipo=\"Empresa\" urlItem=\"Empresa/<<ID>>\" max=\"50\" [url]=\"campo.UrlPesquisa\"\n (pesquisaChange)=\"campo.change ? campo.change($event) : emptyHandler()\">\n </kb-input-pesquisa>\n </ion-col>\n \n \n <ion-col *ngIf=\"campo.Tipo == 'col'\" size-md=\"1\" size-xs=\"0\">\n \n </ion-col>\n </ng-container>\n </ion-row>\n \n <!--\n <ion-col class=\"select ion-no-margin ion-no-padding\">\n <ion-item lines=\"none\">\n <ion-label>Totalizador</ion-label>\n <ion-checkbox slot=\"start\" formControlName=\"Totalizador\"></ion-checkbox>\n </ion-item>\n </ion-col>\n <ion-col class=\"select ion-no-margin ion-no-padding\">\n <ion-item lines=\"none\">\n <ion-label>Inativo</ion-label>\n <ion-checkbox slot=\"start\" formControlName=\"Inativo\"></ion-checkbox>\n </ion-item>\n </ion-col>\n -->\n </form>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "justify", "labelPlacement", "legacy", "mode", "name", "value"] }, { kind: "component", type: i2.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i2.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonRow, selector: "ion-row" }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: InputTextComponent, selector: "kb-input-text", inputs: ["iconInput", "inputSpanAfter", "campoFoco"] }, { kind: "component", type: InputSelectComponent, selector: "kb-input-select", inputs: ["itens", "itemId", "itemNome", "showNovo", "itemNull", "opcaoDefault"], outputs: ["selectChange", "selectChangeEntity"] }, { kind: "component", type: InputPesquisaComponent, selector: "kb-input-pesquisa", inputs: ["textoPesquisa", "max", "filterFunction", "selectId", "campoId", "campoPaiId", "campoDisplay", "tipo", "pesquisaChange", "pesquisaAction", "limpar", "url", "urlItem", "urlTree", "empresa", "loadInit"] }] }); }
|
|
1654
|
+
}
|
|
1655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: EntityEditComponent, decorators: [{
|
|
1656
|
+
type: Component,
|
|
1657
|
+
args: [{ selector: 'kb-entity-edit', template: "<form *ngIf=\"campos && campos.length\" [formGroup]=\"entidadeForm\" style=\"width: 100%;\">\n\n\n <ion-row *ngFor=\"let linha of campos\">\n <ng-container *ngFor=\"let campo of linha.Linha\">\n <!-- {{ campo.Nome }} {{ campo.Tipo }} -->\n \n <ion-col [sizeMd]=\"campo.Size\" *ngIf=\"campo.Tipo == 'input-text'\">\n <kb-input-text label=\"{{campo.Nome}}\" placeholder=\"Digite o {{campo.Nome}}...\" [form]=\"entidadeForm\" [max]=\"campo.Tamanho ?? '50'\"\n [validation_messages]=\"validation_messages[campo.Nome]\" [formControlName]=\"campo.Nome\" [campoFoco]=\"campo.CampoFoco\">\n </kb-input-text>\n </ion-col>\n \n <ion-col [sizeMd]=\"campo.Size\" class=\"select ion-no-margin ion-no-padding\" *ngIf=\"campo.Tipo == 'ion-checkbox'\">\n <ion-item lines=\"none\">\n <ion-label>{{ campo.Nome }}</ion-label>\n <ion-checkbox slot=\"start\" [formControlName]=\"campo.Nome\"></ion-checkbox>\n </ion-item>\n </ion-col>\n \n <ion-col [sizeMd]=\"campo.Size\" *ngIf=\"campo.Tipo == 'input-select'\">\n <kb-input-select [label]=\"campo.Nome\" [placeholder]=\"'Selecionar...'\" [formControlName]=\"campo.Nome\"\n [form]=\"entidadeForm\" [itens]=\"campo.Itens\" [itemId]=\"campo.ItemId\" [itemNome]=\"campo.ItemNome\">\n </kb-input-select>\n </ion-col>\n \n \n <ion-col [sizeMd]=\"campo.Size\" *ngIf=\"campo.Tipo == 'input-pesquisa'\">\n <kb-input-pesquisa #pesquisaCentroCustoPai [label]=\"campo.Label ?? campo.Nome\" [campoId]=\"campo.ItemId\"\n [formControlName]=\"campo.Nome\" placeholder=\"Pesquisar...\" [campoDisplay]=\"'Nome'\"\n [form]=\"entidadeForm\" tipo=\"Empresa\" urlItem=\"Empresa/<<ID>>\" max=\"50\" [url]=\"campo.UrlPesquisa\"\n (pesquisaChange)=\"campo.change ? campo.change($event) : emptyHandler()\">\n </kb-input-pesquisa>\n </ion-col>\n \n \n <ion-col *ngIf=\"campo.Tipo == 'col'\" size-md=\"1\" size-xs=\"0\">\n \n </ion-col>\n </ng-container>\n </ion-row>\n \n <!--\n <ion-col class=\"select ion-no-margin ion-no-padding\">\n <ion-item lines=\"none\">\n <ion-label>Totalizador</ion-label>\n <ion-checkbox slot=\"start\" formControlName=\"Totalizador\"></ion-checkbox>\n </ion-item>\n </ion-col>\n <ion-col class=\"select ion-no-margin ion-no-padding\">\n <ion-item lines=\"none\">\n <ion-label>Inativo</ion-label>\n <ion-checkbox slot=\"start\" formControlName=\"Inativo\"></ion-checkbox>\n </ion-item>\n </ion-col>\n -->\n </form>" }]
|
|
1658
|
+
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { entidade: [{
|
|
1659
|
+
type: Input
|
|
1660
|
+
}], campos: [{
|
|
1661
|
+
type: Input
|
|
1662
|
+
}], entidadeForm: [{
|
|
1663
|
+
type: Input
|
|
1664
|
+
}], validation_messages: [{
|
|
1665
|
+
type: Input
|
|
1666
|
+
}] } });
|
|
1667
|
+
|
|
1431
1668
|
const LibConfigService = new InjectionToken('LibConfig');
|
|
1432
1669
|
class AppprojectComponentsModule {
|
|
1433
1670
|
static forRoot(config) {
|
|
@@ -1436,7 +1673,7 @@ class AppprojectComponentsModule {
|
|
|
1436
1673
|
providers: [
|
|
1437
1674
|
AppprojectComponentsService,
|
|
1438
1675
|
{
|
|
1439
|
-
provide: LibConfigService,
|
|
1676
|
+
provide: 'LibConfigService',
|
|
1440
1677
|
useValue: config
|
|
1441
1678
|
}
|
|
1442
1679
|
]
|
|
@@ -1452,7 +1689,13 @@ class AppprojectComponentsModule {
|
|
|
1452
1689
|
InputValorComponent,
|
|
1453
1690
|
InputAreaComponent,
|
|
1454
1691
|
InputCepComponent,
|
|
1455
|
-
InputArquivoComponent
|
|
1692
|
+
InputArquivoComponent,
|
|
1693
|
+
BtnActionComponent,
|
|
1694
|
+
BtnCancelarComponent,
|
|
1695
|
+
BtnExcluirComponent,
|
|
1696
|
+
BtnNovoComponent,
|
|
1697
|
+
BtnSalvarComponent,
|
|
1698
|
+
EntityEditComponent], imports: [CommonModule,
|
|
1456
1699
|
HttpClientModule,
|
|
1457
1700
|
IonicModule,
|
|
1458
1701
|
ReactiveFormsModule], exports: [AppprojectComponentsComponent,
|
|
@@ -1464,7 +1707,13 @@ class AppprojectComponentsModule {
|
|
|
1464
1707
|
InputValorComponent,
|
|
1465
1708
|
InputAreaComponent,
|
|
1466
1709
|
InputCepComponent,
|
|
1467
|
-
InputArquivoComponent
|
|
1710
|
+
InputArquivoComponent,
|
|
1711
|
+
BtnActionComponent,
|
|
1712
|
+
BtnCancelarComponent,
|
|
1713
|
+
BtnExcluirComponent,
|
|
1714
|
+
BtnNovoComponent,
|
|
1715
|
+
BtnSalvarComponent,
|
|
1716
|
+
EntityEditComponent] }); }
|
|
1468
1717
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: AppprojectComponentsModule, imports: [CommonModule,
|
|
1469
1718
|
HttpClientModule,
|
|
1470
1719
|
IonicModule,
|
|
@@ -1483,7 +1732,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
1483
1732
|
InputValorComponent,
|
|
1484
1733
|
InputAreaComponent,
|
|
1485
1734
|
InputCepComponent,
|
|
1486
|
-
InputArquivoComponent
|
|
1735
|
+
InputArquivoComponent,
|
|
1736
|
+
BtnActionComponent,
|
|
1737
|
+
BtnCancelarComponent,
|
|
1738
|
+
BtnExcluirComponent,
|
|
1739
|
+
BtnNovoComponent,
|
|
1740
|
+
BtnSalvarComponent,
|
|
1741
|
+
EntityEditComponent
|
|
1487
1742
|
],
|
|
1488
1743
|
imports: [
|
|
1489
1744
|
CommonModule,
|
|
@@ -1501,7 +1756,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
1501
1756
|
InputValorComponent,
|
|
1502
1757
|
InputAreaComponent,
|
|
1503
1758
|
InputCepComponent,
|
|
1504
|
-
InputArquivoComponent
|
|
1759
|
+
InputArquivoComponent,
|
|
1760
|
+
BtnActionComponent,
|
|
1761
|
+
BtnCancelarComponent,
|
|
1762
|
+
BtnExcluirComponent,
|
|
1763
|
+
BtnNovoComponent,
|
|
1764
|
+
BtnSalvarComponent,
|
|
1765
|
+
EntityEditComponent
|
|
1505
1766
|
],
|
|
1506
1767
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
1507
1768
|
}]
|
|
@@ -1515,5 +1776,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
1515
1776
|
* Generated bundle index. Do not edit.
|
|
1516
1777
|
*/
|
|
1517
1778
|
|
|
1518
|
-
export { AppprojectComponentsComponent, AppprojectComponentsModule, AppprojectComponentsService, BaseInputComponent, InputAreaComponent, InputArquivoComponent, InputCepComponent, InputFormatComponent, InputPesquisaComponent, InputSelectComponent, InputTextComponent, InputValorComponent, LibConfigService, ModelTreeviewComponent };
|
|
1779
|
+
export { AppprojectComponentsComponent, AppprojectComponentsModule, AppprojectComponentsService, BaseInputComponent, BtnActionComponent, BtnCancelarComponent, BtnExcluirComponent, BtnNovoComponent, BtnSalvarComponent, EntityEditComponent, InputAreaComponent, InputArquivoComponent, InputCepComponent, InputFormatComponent, InputPesquisaComponent, InputSelectComponent, InputTextComponent, InputValorComponent, LibConfigService, ModelTreeviewComponent };
|
|
1519
1780
|
//# sourceMappingURL=appproject-components.mjs.map
|