keevo-components 1.6.7 → 1.6.8
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/api/base-components/base-component-dropdown-external.mjs +31 -0
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/keevo-components.mjs +512 -681
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/base-components/base-component-dropdown-external.d.ts +15 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2022/lib/api/base-components/base-component-dropdown-new.mjs +0 -211
- package/lib/api/base-components/base-component-dropdown-new.d.ts +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, EventEmitter, Output, ViewChild, Injectable, ViewChildren, ContentChildren,
|
|
2
|
+
import { Component, Input, EventEmitter, Output, ViewChild, Injectable, ViewChildren, ContentChildren, forwardRef, Pipe, NgModule, Directive, HostListener, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import { Subject, finalize, combineLatest, filter, of, BehaviorSubject } from 'rxjs';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
@@ -14,13 +14,20 @@ import { MenuModule } from 'primeng/menu';
|
|
|
14
14
|
import * as i2 from 'primeng/ripple';
|
|
15
15
|
import { RippleModule } from 'primeng/ripple';
|
|
16
16
|
import * as i2$1 from '@angular/forms';
|
|
17
|
-
import { FormGroup, NgControl, FormControlName, FormGroupDirective, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule
|
|
17
|
+
import { FormGroup, NgControl, FormControlName, FormGroupDirective, NG_VALUE_ACCESSOR, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
18
18
|
import * as i1$3 from 'primeng/dynamicdialog';
|
|
19
19
|
import { DynamicDialogModule, DialogService, DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
20
20
|
import * as i1$2 from 'primeng/api';
|
|
21
21
|
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
22
22
|
import * as i3$1 from '@angular/router';
|
|
23
23
|
import { NavigationEnd } from '@angular/router';
|
|
24
|
+
import * as i6 from 'primeng/tooltip';
|
|
25
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
26
|
+
import * as i9 from 'primeng/divider';
|
|
27
|
+
import { DividerModule } from 'primeng/divider';
|
|
28
|
+
import * as i1$4 from '@angular/common/http';
|
|
29
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
30
|
+
import { filter as filter$1 } from 'rxjs/operators';
|
|
24
31
|
import { AccordionModule } from 'primeng/accordion';
|
|
25
32
|
import * as i6$2 from 'primeng/autofocus';
|
|
26
33
|
import { AutoFocusModule } from 'primeng/autofocus';
|
|
@@ -37,8 +44,6 @@ import { ContextMenuModule } from 'primeng/contextmenu';
|
|
|
37
44
|
import { DataViewModule } from 'primeng/dataview';
|
|
38
45
|
import * as i7 from 'primeng/dialog';
|
|
39
46
|
import { DialogModule } from 'primeng/dialog';
|
|
40
|
-
import * as i9 from 'primeng/divider';
|
|
41
|
-
import { DividerModule } from 'primeng/divider';
|
|
42
47
|
import { EditorModule } from 'primeng/editor';
|
|
43
48
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
44
49
|
import { FileUploadModule } from 'primeng/fileupload';
|
|
@@ -79,11 +84,9 @@ import * as i14 from 'primeng/table';
|
|
|
79
84
|
import { TableModule } from 'primeng/table';
|
|
80
85
|
import { ToastModule } from 'primeng/toast';
|
|
81
86
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
82
|
-
import * as i6 from 'primeng/tooltip';
|
|
83
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
84
87
|
import { OverlayModule } from 'primeng/overlay';
|
|
85
88
|
import { ChipModule } from 'primeng/chip';
|
|
86
|
-
import * as i1$
|
|
89
|
+
import * as i1$5 from 'primeng/tree';
|
|
87
90
|
import { TreeModule } from 'primeng/tree';
|
|
88
91
|
import { ProgressBarModule } from 'primeng/progressbar';
|
|
89
92
|
import { PanelMenuModule } from 'primeng/panelmenu';
|
|
@@ -99,11 +102,8 @@ import { OrgChart } from 'd3-org-chart';
|
|
|
99
102
|
import * as d3 from 'd3';
|
|
100
103
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
101
104
|
import { AutoCompleteModule } from 'primeng/autocomplete';
|
|
102
|
-
import * as i1$
|
|
105
|
+
import * as i1$6 from 'ngx-loading';
|
|
103
106
|
import { NgxLoadingModule } from 'ngx-loading';
|
|
104
|
-
import * as i1$6 from '@angular/common/http';
|
|
105
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
106
|
-
import { filter as filter$1 } from 'rxjs/operators';
|
|
107
107
|
|
|
108
108
|
class BaseComponent {
|
|
109
109
|
constructor() {
|
|
@@ -1293,6 +1293,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1293
1293
|
type: Output
|
|
1294
1294
|
}] } });
|
|
1295
1295
|
|
|
1296
|
+
function ComponentProviders(ref) {
|
|
1297
|
+
return [
|
|
1298
|
+
{
|
|
1299
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1300
|
+
useExisting: forwardRef(() => ref),
|
|
1301
|
+
multi: true,
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
provide: ComponentService
|
|
1305
|
+
}
|
|
1306
|
+
];
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
class LabelComponent {
|
|
1310
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1311
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LabelComponent, selector: "kv-label", inputs: { componentId: "componentId", label: "label" }, ngImport: i0, template: "<p class=\"m-0\">\n <label\n [for]=\"componentId\"\n class=\"label-style\"\n >{{ label }}</label>\n</p>", styles: ["::ng-deep .label-style{position:relative;left:1px;font-size:.8rem!important;padding-top:0rem;padding-bottom:0rem;font-family:Inter var,Roboto,Arial,Helvetica,sans-serif!important}\n"] }); }
|
|
1312
|
+
}
|
|
1313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelComponent, decorators: [{
|
|
1314
|
+
type: Component,
|
|
1315
|
+
args: [{ selector: 'kv-label', template: "<p class=\"m-0\">\n <label\n [for]=\"componentId\"\n class=\"label-style\"\n >{{ label }}</label>\n</p>", styles: ["::ng-deep .label-style{position:relative;left:1px;font-size:.8rem!important;padding-top:0rem;padding-bottom:0rem;font-family:Inter var,Roboto,Arial,Helvetica,sans-serif!important}\n"] }]
|
|
1316
|
+
}], propDecorators: { componentId: [{
|
|
1317
|
+
type: Input
|
|
1318
|
+
}], label: [{
|
|
1319
|
+
type: Input
|
|
1320
|
+
}] } });
|
|
1321
|
+
|
|
1322
|
+
class DropdownComponent extends BaseComponentDropDown {
|
|
1323
|
+
constructor(componentService, dialogService) {
|
|
1324
|
+
super(componentService, dialogService);
|
|
1325
|
+
}
|
|
1326
|
+
ngOnInit() {
|
|
1327
|
+
if (this.dropDowValue)
|
|
1328
|
+
this.value = this.dropDowValue;
|
|
1329
|
+
}
|
|
1330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownComponent, deps: [{ token: ComponentService }, { token: i1$3.DialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1331
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DropdownComponent, selector: "kv-dropdown", inputs: { dropDowValue: "dropDowValue", itemTemplate: "itemTemplate", selectedItemTemplate: "selectedItemTemplate" }, providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-dropdown\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n [disabled]=\"disabled\"\n [filter]=\"filter\"\n [inputId]=\"componentId\"\n [(ngModel)]=\"value\"\n [options]=\"filteredOptions\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [optionDisabled]=\"optionDisabled\"\n [group]=\"group\"\n [optionGroupLabel]=\"optionGroupLabel\"\n [optionGroupChildren]=\"optionGroupChildren\"\n [showClear]=\"showClear\"\n [lazy]=\"lazy\"\n scrollHeight=\"250px\"\n (onBlur)=\"onInputBlur($event)\"\n (onClick)=\"onInputClick($event)\"\n (onChange)=\"onInputChange($event)\"\n (onFilter)=\"onInputFilter($event)\"\n [style]=\"{'width':widthField}\"\n [panelStyle]=\"{ width: widthField, overflow: 'auto' }\"\n styleClass=\"inputs\"\n >\n\n <ng-template\n *ngIf=\"showAddButton\"\n pTemplate=\"footer\"\n >\n <p-divider></p-divider>\n <div class=\"flex flex-wrap card-container p-1\">\n <div class=\"flex justify-content-center\">\n <button\n pButton\n label=\"Incluir\"\n pTooltip=\"Clique aqui para incluir um novo registro\"\n tooltipPosition=\"bottom\"\n icon=\"pi pi-plus\"\n class=\"p-button-rounded p-button-success mr-2\"\n (click)=\"addClick($event)\"\n ></button>\n </div>\n </div>\n </ng-template>\n\n\n\n\n <!-- :: -->\n\n <ng-template\n let-item\n pTemplate=\"item\"\n *ngIf=\"itemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n >\n\n </ng-container>\n </ng-template>\n\n\n <ng-template\n let-selectedItem\n pTemplate=\"selectedItem\"\n *ngIf=\"selectedItemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItem }\"\n >\n\n </ng-container>\n </ng-template>\n\n <!-- :: -->\n\n\n </p-dropdown>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["", "label{font-family:Inter var,Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i9.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "component", type: i4.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }] }); }
|
|
1332
|
+
}
|
|
1333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
1334
|
+
type: Component,
|
|
1335
|
+
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-dropdown\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n [disabled]=\"disabled\"\n [filter]=\"filter\"\n [inputId]=\"componentId\"\n [(ngModel)]=\"value\"\n [options]=\"filteredOptions\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [optionDisabled]=\"optionDisabled\"\n [group]=\"group\"\n [optionGroupLabel]=\"optionGroupLabel\"\n [optionGroupChildren]=\"optionGroupChildren\"\n [showClear]=\"showClear\"\n [lazy]=\"lazy\"\n scrollHeight=\"250px\"\n (onBlur)=\"onInputBlur($event)\"\n (onClick)=\"onInputClick($event)\"\n (onChange)=\"onInputChange($event)\"\n (onFilter)=\"onInputFilter($event)\"\n [style]=\"{'width':widthField}\"\n [panelStyle]=\"{ width: widthField, overflow: 'auto' }\"\n styleClass=\"inputs\"\n >\n\n <ng-template\n *ngIf=\"showAddButton\"\n pTemplate=\"footer\"\n >\n <p-divider></p-divider>\n <div class=\"flex flex-wrap card-container p-1\">\n <div class=\"flex justify-content-center\">\n <button\n pButton\n label=\"Incluir\"\n pTooltip=\"Clique aqui para incluir um novo registro\"\n tooltipPosition=\"bottom\"\n icon=\"pi pi-plus\"\n class=\"p-button-rounded p-button-success mr-2\"\n (click)=\"addClick($event)\"\n ></button>\n </div>\n </div>\n </ng-template>\n\n\n\n\n <!-- :: -->\n\n <ng-template\n let-item\n pTemplate=\"item\"\n *ngIf=\"itemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n >\n\n </ng-container>\n </ng-template>\n\n\n <ng-template\n let-selectedItem\n pTemplate=\"selectedItem\"\n *ngIf=\"selectedItemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItem }\"\n >\n\n </ng-container>\n </ng-template>\n\n <!-- :: -->\n\n\n </p-dropdown>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["label{font-family:Inter var,Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"] }]
|
|
1336
|
+
}], ctorParameters: function () { return [{ type: ComponentService }, { type: i1$3.DialogService }]; }, propDecorators: { dropDowValue: [{
|
|
1337
|
+
type: Input
|
|
1338
|
+
}], itemTemplate: [{
|
|
1339
|
+
type: Input
|
|
1340
|
+
}], selectedItemTemplate: [{
|
|
1341
|
+
type: Input
|
|
1342
|
+
}] } });
|
|
1343
|
+
|
|
1344
|
+
class BaseComponentDropDownExternal extends BaseComponentDropDown {
|
|
1345
|
+
constructor(componentService, dialogService) {
|
|
1346
|
+
super(componentService, dialogService);
|
|
1347
|
+
}
|
|
1348
|
+
ngAfterViewInit() {
|
|
1349
|
+
super.ngAfterViewInit();
|
|
1350
|
+
if (this.dropDownComponent) {
|
|
1351
|
+
this.dropDownComponent.formControl = this.formControl;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropDownExternal, deps: [{ token: ComponentService }, { token: i1$3.DialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1355
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentDropDownExternal, selector: "ng-component", inputs: { formGroup: "formGroup" }, viewQueries: [{ propertyName: "dropDownComponent", first: true, predicate: DropdownComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
1356
|
+
}
|
|
1357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropDownExternal, decorators: [{
|
|
1358
|
+
type: Component,
|
|
1359
|
+
args: [{
|
|
1360
|
+
template: '',
|
|
1361
|
+
}]
|
|
1362
|
+
}], ctorParameters: function () { return [{ type: ComponentService }, { type: i1$3.DialogService }]; }, propDecorators: { formGroup: [{
|
|
1363
|
+
type: Input
|
|
1364
|
+
}], dropDownComponent: [{
|
|
1365
|
+
type: ViewChild,
|
|
1366
|
+
args: [DropdownComponent]
|
|
1367
|
+
}] } });
|
|
1368
|
+
|
|
1296
1369
|
class BaseComponentMultiSelect extends BaseComponentInput {
|
|
1297
1370
|
constructor(componentService) {
|
|
1298
1371
|
super(componentService);
|
|
@@ -1417,113 +1490,345 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1417
1490
|
type: Output
|
|
1418
1491
|
}] } });
|
|
1419
1492
|
|
|
1420
|
-
class
|
|
1421
|
-
|
|
1422
|
-
|
|
1493
|
+
class TranslatePrimeng {
|
|
1494
|
+
config(config) {
|
|
1495
|
+
config.ripple = true;
|
|
1496
|
+
config.setTranslation({
|
|
1497
|
+
monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
1498
|
+
monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
|
|
1499
|
+
dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sabádo'],
|
|
1500
|
+
dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
|
1501
|
+
dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
|
1502
|
+
today: 'Hoje',
|
|
1503
|
+
weekHeader: 'Semana',
|
|
1504
|
+
emptyMessage: 'Nenhum resultado encontrado',
|
|
1505
|
+
emptyFilterMessage: 'Nenhum registro encontrado com o filtro informado',
|
|
1506
|
+
weak: 'Fraca',
|
|
1507
|
+
medium: 'Média',
|
|
1508
|
+
strong: 'Forte',
|
|
1509
|
+
passwordPrompt: 'Informe a senha',
|
|
1510
|
+
clear: 'Limpar',
|
|
1511
|
+
apply: 'Aplicar'
|
|
1512
|
+
});
|
|
1423
1513
|
}
|
|
1424
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSecondaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1425
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonSecondaryComponent, selector: "kv-button-secondary", usesInheritance: true, ngImport: i0, template: "\n<button\n pButton\n pRipple\n class=\"btn-secondary border-300\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-secondary{background-color:#f2f3f5!important;color:#000000de!important;height:35px}.btn-secondary:hover{background-color:#ef5350!important;color:#fff!important}.btn-secondary:disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i2.Ripple, selector: "[pRipple]" }] }); }
|
|
1426
1514
|
}
|
|
1427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSecondaryComponent, decorators: [{
|
|
1428
|
-
type: Component,
|
|
1429
|
-
args: [{ selector: 'kv-button-secondary', template: "\n<button\n pButton\n pRipple\n class=\"btn-secondary border-300\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-secondary{background-color:#f2f3f5!important;color:#000000de!important;height:35px}.btn-secondary:hover{background-color:#ef5350!important;color:#fff!important}.btn-secondary:disabled{pointer-events:none}\n"] }]
|
|
1430
|
-
}], ctorParameters: function () { return []; } });
|
|
1431
1515
|
|
|
1432
|
-
class
|
|
1433
|
-
|
|
1434
|
-
|
|
1516
|
+
class KeevoValidators {
|
|
1517
|
+
static required(erroMessage) {
|
|
1518
|
+
return (control) => {
|
|
1519
|
+
if (Validators.required(control))
|
|
1520
|
+
return { required: true, erroMessage: `${erroMessage ? erroMessage : 'Campo obrigatório'}` };
|
|
1521
|
+
return null;
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
static dateGreaterThan(startControlName, erroMessage) {
|
|
1525
|
+
return (endControl) => {
|
|
1526
|
+
const parent = endControl.parent;
|
|
1527
|
+
if (!parent)
|
|
1528
|
+
return null;
|
|
1529
|
+
const startControl = parent.get(startControlName);
|
|
1530
|
+
const startDate = startControl.value;
|
|
1531
|
+
const endDate = endControl.value;
|
|
1532
|
+
if (!startDate || !endDate) {
|
|
1533
|
+
return null;
|
|
1534
|
+
}
|
|
1535
|
+
if (startDate > endDate) {
|
|
1536
|
+
return { greaterThan: true, erroMessage: erroMessage };
|
|
1537
|
+
}
|
|
1538
|
+
return null;
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
static min(min, erroMessage) {
|
|
1542
|
+
return (control) => {
|
|
1543
|
+
if (Validators.min(min)(control))
|
|
1544
|
+
return { min: true, erroMessage: `${erroMessage ? erroMessage : 'Informe um valor maior ou igual à '}${min}` };
|
|
1545
|
+
return null;
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
static max(min, erroMessage) {
|
|
1549
|
+
return (control) => {
|
|
1550
|
+
if (Validators.max(min)(control))
|
|
1551
|
+
return { min: true, erroMessage: `${erroMessage ? erroMessage : 'Informe um valor menor ou igual à '}${min}` };
|
|
1552
|
+
return null;
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
static email(erroMessage) {
|
|
1556
|
+
return (control) => {
|
|
1557
|
+
if (Validators.email(control)) {
|
|
1558
|
+
return { email: true, erroMessage: `${erroMessage ? erroMessage : 'Endereço de e-mail inválido!'}` };
|
|
1559
|
+
}
|
|
1560
|
+
return null;
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
static maxLengthArray(max) {
|
|
1564
|
+
return (c) => {
|
|
1565
|
+
if (c.value.length < max)
|
|
1566
|
+
return null;
|
|
1567
|
+
return { maxLengthArray: true, erroMessage: 'Tamanho máximo excedido!' };
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
static maxLength(max, erroMessage) {
|
|
1571
|
+
return (control) => {
|
|
1572
|
+
if (Validators.maxLength(max)(control))
|
|
1573
|
+
return { maxLength: true, erroMessage: `${erroMessage ? erroMessage : 'Limite máximo de ${max} caracteres atingido!'}` };
|
|
1574
|
+
return null;
|
|
1575
|
+
};
|
|
1435
1576
|
}
|
|
1436
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1437
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonSuccessComponent, selector: "kv-button-success", usesInheritance: true, ngImport: i0, template: "<button\n pButton\n pRipple\n class=\"btn-success border-green-500\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-success{background-color:#29b92d!important;color:#fff!important;height:35px}.btn-success:hover{background-color:#229925!important}.btn-success:disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i2.Ripple, selector: "[pRipple]" }] }); }
|
|
1438
1577
|
}
|
|
1439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSuccessComponent, decorators: [{
|
|
1440
|
-
type: Component,
|
|
1441
|
-
args: [{ selector: 'kv-button-success', template: "<button\n pButton\n pRipple\n class=\"btn-success border-green-500\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-success{background-color:#29b92d!important;color:#fff!important;height:35px}.btn-success:hover{background-color:#229925!important}.btn-success:disabled{pointer-events:none}\n"] }]
|
|
1442
|
-
}], ctorParameters: function () { return []; } });
|
|
1443
1578
|
|
|
1444
|
-
class
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1579
|
+
class CodigoFipePipe {
|
|
1580
|
+
transform(value) {
|
|
1581
|
+
if (value) {
|
|
1582
|
+
const identificacao = value.replace(/[^0-9]/g, '');
|
|
1583
|
+
return identificacao.replace(/(\d{6})(\d{1})/g, "\$1-\$2");
|
|
1584
|
+
}
|
|
1585
|
+
else
|
|
1586
|
+
return null;
|
|
1587
|
+
}
|
|
1588
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CodigoFipePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1589
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CodigoFipePipe, name: "codigoFipe" }); }
|
|
1590
|
+
}
|
|
1591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CodigoFipePipe, decorators: [{
|
|
1592
|
+
type: Pipe,
|
|
1593
|
+
args: [{ name: 'codigoFipe' }]
|
|
1594
|
+
}] });
|
|
1595
|
+
|
|
1596
|
+
class CpfCnpjPipe {
|
|
1597
|
+
transform(value) {
|
|
1598
|
+
if (value) {
|
|
1599
|
+
const identificacao = value.replace(/[^0-9]/g, '');
|
|
1600
|
+
if (identificacao.length === 11) {
|
|
1601
|
+
return identificacao.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/g, "\$1.\$2.\$3\-\$4");
|
|
1602
|
+
}
|
|
1603
|
+
else if (identificacao.length === 14) {
|
|
1604
|
+
return identificacao.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/g, "\$1.\$2.\$3\/\$4\-\$5");
|
|
1605
|
+
}
|
|
1606
|
+
return value;
|
|
1607
|
+
}
|
|
1608
|
+
else
|
|
1609
|
+
return null;
|
|
1610
|
+
}
|
|
1611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CpfCnpjPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1612
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CpfCnpjPipe, name: "cpfCnpj" }); }
|
|
1613
|
+
}
|
|
1614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CpfCnpjPipe, decorators: [{
|
|
1615
|
+
type: Pipe,
|
|
1616
|
+
args: [{ name: 'cpfCnpj' }]
|
|
1617
|
+
}] });
|
|
1618
|
+
|
|
1619
|
+
class TelefonePipe {
|
|
1620
|
+
transform(tel) {
|
|
1621
|
+
if (tel) {
|
|
1622
|
+
const value = tel.toString().replace(/\D/g, '');
|
|
1623
|
+
let foneFormatado = '';
|
|
1624
|
+
if (value.length > 12) {
|
|
1625
|
+
foneFormatado = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
1626
|
+
}
|
|
1627
|
+
else if (value.length > 11) {
|
|
1628
|
+
foneFormatado = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
1629
|
+
}
|
|
1630
|
+
else if (value.length > 10) {
|
|
1631
|
+
foneFormatado = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
|
|
1632
|
+
}
|
|
1633
|
+
else if (value.length > 9) {
|
|
1634
|
+
foneFormatado = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
|
|
1635
|
+
}
|
|
1636
|
+
else if (value.length > 5) {
|
|
1637
|
+
foneFormatado = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
|
|
1638
|
+
}
|
|
1639
|
+
else if (value.length > 1) {
|
|
1640
|
+
foneFormatado = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
|
|
1641
|
+
}
|
|
1642
|
+
else {
|
|
1643
|
+
if (tel !== '') {
|
|
1644
|
+
foneFormatado = value.replace(/^(\d*)/, '($1');
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
return foneFormatado;
|
|
1648
|
+
}
|
|
1649
|
+
else
|
|
1650
|
+
return null;
|
|
1651
|
+
}
|
|
1652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelefonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1653
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TelefonePipe, name: "Telefone" }); }
|
|
1654
|
+
}
|
|
1655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelefonePipe, decorators: [{
|
|
1656
|
+
type: Pipe,
|
|
1657
|
+
args: [{
|
|
1658
|
+
name: 'Telefone'
|
|
1659
|
+
}]
|
|
1660
|
+
}] });
|
|
1661
|
+
|
|
1662
|
+
class PipesModule {
|
|
1663
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1664
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, declarations: [CpfCnpjPipe,
|
|
1665
|
+
TelefonePipe,
|
|
1666
|
+
CodigoFipePipe], imports: [CommonModule], exports: [CpfCnpjPipe,
|
|
1667
|
+
TelefonePipe,
|
|
1668
|
+
CodigoFipePipe] }); }
|
|
1669
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, imports: [CommonModule] }); }
|
|
1670
|
+
}
|
|
1671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, decorators: [{
|
|
1672
|
+
type: NgModule,
|
|
1673
|
+
args: [{
|
|
1674
|
+
imports: [
|
|
1675
|
+
CommonModule
|
|
1676
|
+
],
|
|
1677
|
+
declarations: [
|
|
1678
|
+
CpfCnpjPipe,
|
|
1679
|
+
TelefonePipe,
|
|
1680
|
+
CodigoFipePipe
|
|
1681
|
+
],
|
|
1682
|
+
exports: [
|
|
1683
|
+
CpfCnpjPipe,
|
|
1684
|
+
TelefonePipe,
|
|
1685
|
+
CodigoFipePipe
|
|
1686
|
+
]
|
|
1687
|
+
}]
|
|
1688
|
+
}] });
|
|
1689
|
+
|
|
1690
|
+
const httpOptions = {
|
|
1691
|
+
headers: new HttpHeaders({
|
|
1692
|
+
'Content-Type': 'application/json',
|
|
1693
|
+
Accept: 'application/json',
|
|
1694
|
+
'Access-Control-Allow-Headers': 'Content-Type',
|
|
1695
|
+
}),
|
|
1696
|
+
};
|
|
1697
|
+
class BaseApiService {
|
|
1698
|
+
constructor(http) {
|
|
1699
|
+
this.http = http;
|
|
1700
|
+
}
|
|
1701
|
+
delete(baseUrl, rota) {
|
|
1702
|
+
return this.http.delete(`${baseUrl}${rota}`);
|
|
1703
|
+
}
|
|
1704
|
+
deleteAllBody(baseUrl, rota, body) {
|
|
1705
|
+
return this.http.delete(`${baseUrl}${rota}`, {
|
|
1706
|
+
headers: new HttpHeaders({
|
|
1707
|
+
'Content-Type': 'application/json',
|
|
1708
|
+
}),
|
|
1709
|
+
body: body
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
deleteAllHeaders(baseUrl, rota, headers) {
|
|
1713
|
+
return this.http.delete(`${baseUrl}${rota}`, {
|
|
1714
|
+
headers: headers,
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
get(baseUrl, rota) {
|
|
1718
|
+
return this.http.get(`${baseUrl}${rota}`);
|
|
1719
|
+
}
|
|
1720
|
+
getHeaders(baseUrl, rota, headers) {
|
|
1721
|
+
return this.http.get(`${baseUrl}${rota}`, {
|
|
1722
|
+
headers: headers,
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
getAll(baseUrl, rota) {
|
|
1726
|
+
return this.http.get(`${baseUrl}${rota}`);
|
|
1727
|
+
}
|
|
1728
|
+
getAllHeaders(baseUrl, rota, headers) {
|
|
1729
|
+
return this.http.get(`${baseUrl}${rota}`, {
|
|
1730
|
+
headers: headers,
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
getAllParams(baseUrl, rota, params) {
|
|
1734
|
+
return this.http.get(`${baseUrl}${rota}`, {
|
|
1735
|
+
params: params,
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
getArquivo(baseUrl, rota, id, paramCabecalho) {
|
|
1739
|
+
return this.http.get(`${baseUrl}${rota}/${id}`, paramCabecalho);
|
|
1740
|
+
}
|
|
1741
|
+
getArquivos(baseUrl, rota, paramCabecalho) {
|
|
1742
|
+
return this.http.get(`${baseUrl}${rota}`, paramCabecalho);
|
|
1743
|
+
}
|
|
1744
|
+
post(baseUrl, rota, data) {
|
|
1745
|
+
return this.http.post(`${baseUrl}${rota}`, data);
|
|
1746
|
+
}
|
|
1747
|
+
put(baseUrl, rota, data) {
|
|
1748
|
+
return this.http.put(`${baseUrl}${rota}`, data);
|
|
1749
|
+
}
|
|
1750
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseApiService, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1751
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseApiService, providedIn: 'root' }); }
|
|
1752
|
+
}
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseApiService, decorators: [{
|
|
1754
|
+
type: Injectable,
|
|
1755
|
+
args: [{
|
|
1756
|
+
providedIn: 'root',
|
|
1757
|
+
}]
|
|
1758
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }]; } });
|
|
1759
|
+
|
|
1760
|
+
class BreadcrumbsService {
|
|
1761
|
+
constructor(router, activatedRoute) {
|
|
1762
|
+
this.router = router;
|
|
1763
|
+
this.activatedRoute = activatedRoute;
|
|
1764
|
+
this.breadcrumbsSubject = new BehaviorSubject([]);
|
|
1765
|
+
this.breadcrumbs$ = this.breadcrumbsSubject.asObservable();
|
|
1766
|
+
this.router.events
|
|
1767
|
+
.pipe(filter$1((event) => event instanceof NavigationEnd))
|
|
1768
|
+
.subscribe(() => {
|
|
1769
|
+
const breadcrumbs = this.parseRoute(this.router.routerState.root);
|
|
1770
|
+
this.breadcrumbsSubject.next(breadcrumbs);
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
parseRoute(route, url = '', breadcrumbs = []) {
|
|
1774
|
+
const path = route.routeConfig && route.routeConfig.path ? route.routeConfig.path : '';
|
|
1775
|
+
const label = route.routeConfig && route.routeConfig.data ? route.routeConfig.data['breadcrumb'] : '';
|
|
1776
|
+
if (path && label) {
|
|
1777
|
+
if (url === '') {
|
|
1778
|
+
breadcrumbs.push({
|
|
1779
|
+
label: label,
|
|
1780
|
+
routerLink: `/${path}`,
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
else {
|
|
1784
|
+
breadcrumbs.push({
|
|
1785
|
+
label: label,
|
|
1786
|
+
routerLink: `${url}/${path}`,
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
const nextRoute = route.firstChild;
|
|
1791
|
+
if (nextRoute) {
|
|
1792
|
+
if (url === '') {
|
|
1793
|
+
return this.parseRoute(nextRoute, path, breadcrumbs);
|
|
1794
|
+
}
|
|
1795
|
+
else {
|
|
1796
|
+
return this.parseRoute(nextRoute, `${url}/${path}`, breadcrumbs);
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
return breadcrumbs;
|
|
1800
|
+
}
|
|
1801
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbsService, deps: [{ token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1802
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbsService, providedIn: 'root' }); }
|
|
1803
|
+
}
|
|
1804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbsService, decorators: [{
|
|
1805
|
+
type: Injectable,
|
|
1806
|
+
args: [{
|
|
1807
|
+
providedIn: 'root',
|
|
1808
|
+
}]
|
|
1809
|
+
}], ctorParameters: function () { return [{ type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
1810
|
+
|
|
1811
|
+
class PrimeNgModule {
|
|
1812
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PrimeNgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1813
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PrimeNgModule, exports: [AccordionModule,
|
|
1814
|
+
AutoFocusModule,
|
|
1815
|
+
BadgeModule,
|
|
1816
|
+
ButtonModule,
|
|
1817
|
+
CalendarModule,
|
|
1818
|
+
CardModule,
|
|
1819
|
+
CarouselModule,
|
|
1820
|
+
ChartModule,
|
|
1821
|
+
CheckboxModule,
|
|
1822
|
+
ChipModule,
|
|
1823
|
+
ConfirmDialogModule,
|
|
1824
|
+
ContextMenuModule,
|
|
1825
|
+
DataViewModule,
|
|
1826
|
+
DialogModule,
|
|
1827
|
+
DividerModule,
|
|
1828
|
+
DropdownModule,
|
|
1829
|
+
DynamicDialogModule,
|
|
1830
|
+
EditorModule,
|
|
1831
|
+
FieldsetModule,
|
|
1527
1832
|
FileUploadModule,
|
|
1528
1833
|
InputMaskModule,
|
|
1529
1834
|
InputNumberModule,
|
|
@@ -1561,11 +1866,73 @@ class PrimeNgModule {
|
|
|
1561
1866
|
BreadcrumbModule,
|
|
1562
1867
|
TreeTableModule,
|
|
1563
1868
|
ImageModule] }); }
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1869
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PrimeNgModule, providers: [
|
|
1870
|
+
ConfirmationService,
|
|
1871
|
+
DialogService,
|
|
1872
|
+
DynamicDialogRef,
|
|
1873
|
+
DynamicDialogConfig,
|
|
1874
|
+
MessageService,
|
|
1875
|
+
], imports: [AccordionModule,
|
|
1876
|
+
AutoFocusModule,
|
|
1877
|
+
BadgeModule,
|
|
1878
|
+
ButtonModule,
|
|
1879
|
+
CalendarModule,
|
|
1880
|
+
CardModule,
|
|
1881
|
+
CarouselModule,
|
|
1882
|
+
ChartModule,
|
|
1883
|
+
CheckboxModule,
|
|
1884
|
+
ChipModule,
|
|
1885
|
+
ConfirmDialogModule,
|
|
1886
|
+
ContextMenuModule,
|
|
1887
|
+
DataViewModule,
|
|
1888
|
+
DialogModule,
|
|
1889
|
+
DividerModule,
|
|
1890
|
+
DropdownModule,
|
|
1891
|
+
DynamicDialogModule,
|
|
1892
|
+
EditorModule,
|
|
1893
|
+
FieldsetModule,
|
|
1894
|
+
FileUploadModule,
|
|
1895
|
+
InputMaskModule,
|
|
1896
|
+
InputNumberModule,
|
|
1897
|
+
InputSwitchModule,
|
|
1898
|
+
InputTextModule,
|
|
1899
|
+
InputTextareaModule,
|
|
1900
|
+
KnobModule,
|
|
1901
|
+
MenuModule,
|
|
1902
|
+
MessageModule,
|
|
1903
|
+
MessagesModule,
|
|
1904
|
+
MultiSelectModule,
|
|
1905
|
+
OverlayModule,
|
|
1906
|
+
OverlayPanelModule,
|
|
1907
|
+
OverlayPanelModule,
|
|
1908
|
+
PanelModule,
|
|
1909
|
+
PanelMenuModule,
|
|
1910
|
+
PasswordModule,
|
|
1911
|
+
PickListModule,
|
|
1912
|
+
ProgressBarModule,
|
|
1913
|
+
RadioButtonModule,
|
|
1914
|
+
RatingModule,
|
|
1915
|
+
RippleModule,
|
|
1916
|
+
SidebarModule,
|
|
1917
|
+
SkeletonModule,
|
|
1918
|
+
SpeedDialModule,
|
|
1919
|
+
SplitButtonModule,
|
|
1920
|
+
StepsModule,
|
|
1921
|
+
TabViewModule,
|
|
1922
|
+
TableModule,
|
|
1923
|
+
ToastModule,
|
|
1924
|
+
ToolbarModule,
|
|
1925
|
+
TooltipModule,
|
|
1926
|
+
TreeModule,
|
|
1927
|
+
StyleClassModule,
|
|
1928
|
+
BreadcrumbModule,
|
|
1929
|
+
TreeTableModule,
|
|
1930
|
+
ImageModule] }); }
|
|
1931
|
+
}
|
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PrimeNgModule, decorators: [{
|
|
1933
|
+
type: NgModule,
|
|
1934
|
+
args: [{
|
|
1935
|
+
exports: [
|
|
1569
1936
|
AccordionModule,
|
|
1570
1937
|
AutoFocusModule,
|
|
1571
1938
|
BadgeModule,
|
|
@@ -1633,6 +2000,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1633
2000
|
}]
|
|
1634
2001
|
}] });
|
|
1635
2002
|
|
|
2003
|
+
class ButtonSecondaryComponent extends BaseComponentButton {
|
|
2004
|
+
constructor() {
|
|
2005
|
+
super();
|
|
2006
|
+
}
|
|
2007
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSecondaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2008
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonSecondaryComponent, selector: "kv-button-secondary", usesInheritance: true, ngImport: i0, template: "\n<button\n pButton\n pRipple\n class=\"btn-secondary border-300\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-secondary{background-color:#f2f3f5!important;color:#000000de!important;height:35px}.btn-secondary:hover{background-color:#ef5350!important;color:#fff!important}.btn-secondary:disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i2.Ripple, selector: "[pRipple]" }] }); }
|
|
2009
|
+
}
|
|
2010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSecondaryComponent, decorators: [{
|
|
2011
|
+
type: Component,
|
|
2012
|
+
args: [{ selector: 'kv-button-secondary', template: "\n<button\n pButton\n pRipple\n class=\"btn-secondary border-300\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-secondary{background-color:#f2f3f5!important;color:#000000de!important;height:35px}.btn-secondary:hover{background-color:#ef5350!important;color:#fff!important}.btn-secondary:disabled{pointer-events:none}\n"] }]
|
|
2013
|
+
}], ctorParameters: function () { return []; } });
|
|
2014
|
+
|
|
2015
|
+
class ButtonSuccessComponent extends BaseComponentButton {
|
|
2016
|
+
constructor() {
|
|
2017
|
+
super();
|
|
2018
|
+
}
|
|
2019
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2020
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonSuccessComponent, selector: "kv-button-success", usesInheritance: true, ngImport: i0, template: "<button\n pButton\n pRipple\n class=\"btn-success border-green-500\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-success{background-color:#29b92d!important;color:#fff!important;height:35px}.btn-success:hover{background-color:#229925!important}.btn-success:disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i2.Ripple, selector: "[pRipple]" }] }); }
|
|
2021
|
+
}
|
|
2022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonSuccessComponent, decorators: [{
|
|
2023
|
+
type: Component,
|
|
2024
|
+
args: [{ selector: 'kv-button-success', template: "<button\n pButton\n pRipple\n class=\"btn-success border-green-500\"\n [icon]=\"icon\"\n [label]=\"label\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"click($event)\">\n</button>\n\n", styles: [".btn-success{background-color:#29b92d!important;color:#fff!important;height:35px}.btn-success:hover{background-color:#229925!important}.btn-success:disabled{pointer-events:none}\n"] }]
|
|
2025
|
+
}], ctorParameters: function () { return []; } });
|
|
2026
|
+
|
|
1636
2027
|
class ButtonPersonalizeComponent extends BaseComponentButton {
|
|
1637
2028
|
constructor() {
|
|
1638
2029
|
super();
|
|
@@ -1702,19 +2093,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1702
2093
|
}]
|
|
1703
2094
|
}] });
|
|
1704
2095
|
|
|
1705
|
-
function ComponentProviders(ref) {
|
|
1706
|
-
return [
|
|
1707
|
-
{
|
|
1708
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1709
|
-
useExisting: forwardRef(() => ref),
|
|
1710
|
-
multi: true,
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
provide: ComponentService
|
|
1714
|
-
}
|
|
1715
|
-
];
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
2096
|
class CheckComponent extends BaseComponentInput {
|
|
1719
2097
|
constructor(componentService) {
|
|
1720
2098
|
super(componentService);
|
|
@@ -1733,41 +2111,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1733
2111
|
type: Output
|
|
1734
2112
|
}] } });
|
|
1735
2113
|
|
|
1736
|
-
class LabelComponent {
|
|
1737
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1738
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LabelComponent, selector: "kv-label", inputs: { componentId: "componentId", label: "label" }, ngImport: i0, template: "<p class=\"m-0\">\n <label\n [for]=\"componentId\"\n class=\"label-style\"\n >{{ label }}</label>\n</p>", styles: ["::ng-deep .label-style{position:relative;left:1px;font-size:.8rem!important;padding-top:0rem;padding-bottom:0rem;font-family:Inter var,Roboto,Arial,Helvetica,sans-serif!important}\n"] }); }
|
|
1739
|
-
}
|
|
1740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelComponent, decorators: [{
|
|
1741
|
-
type: Component,
|
|
1742
|
-
args: [{ selector: 'kv-label', template: "<p class=\"m-0\">\n <label\n [for]=\"componentId\"\n class=\"label-style\"\n >{{ label }}</label>\n</p>", styles: ["::ng-deep .label-style{position:relative;left:1px;font-size:.8rem!important;padding-top:0rem;padding-bottom:0rem;font-family:Inter var,Roboto,Arial,Helvetica,sans-serif!important}\n"] }]
|
|
1743
|
-
}], propDecorators: { componentId: [{
|
|
1744
|
-
type: Input
|
|
1745
|
-
}], label: [{
|
|
1746
|
-
type: Input
|
|
1747
|
-
}] } });
|
|
1748
|
-
|
|
1749
|
-
class DropdownComponent extends BaseComponentDropDown {
|
|
1750
|
-
constructor(componentService, dialogService) {
|
|
1751
|
-
super(componentService, dialogService);
|
|
1752
|
-
}
|
|
1753
|
-
ngOnInit() {
|
|
1754
|
-
if (this.dropDowValue)
|
|
1755
|
-
this.value = this.dropDowValue;
|
|
1756
|
-
}
|
|
1757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownComponent, deps: [{ token: ComponentService }, { token: i1$3.DialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1758
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DropdownComponent, selector: "kv-dropdown", inputs: { dropDowValue: "dropDowValue", itemTemplate: "itemTemplate", selectedItemTemplate: "selectedItemTemplate" }, providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-dropdown\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n [disabled]=\"disabled\"\n [filter]=\"filter\"\n [inputId]=\"componentId\"\n [(ngModel)]=\"value\"\n [options]=\"filteredOptions\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [optionDisabled]=\"optionDisabled\"\n [group]=\"group\"\n [optionGroupLabel]=\"optionGroupLabel\"\n [optionGroupChildren]=\"optionGroupChildren\"\n [showClear]=\"showClear\"\n [lazy]=\"lazy\"\n scrollHeight=\"250px\"\n (onBlur)=\"onInputBlur($event)\"\n (onClick)=\"onInputClick($event)\"\n (onChange)=\"onInputChange($event)\"\n (onFilter)=\"onInputFilter($event)\"\n [style]=\"{'width':widthField}\"\n [panelStyle]=\"{ width: widthField, overflow: 'auto' }\"\n styleClass=\"inputs\"\n >\n\n <ng-template\n *ngIf=\"showAddButton\"\n pTemplate=\"footer\"\n >\n <p-divider></p-divider>\n <div class=\"flex flex-wrap card-container p-1\">\n <div class=\"flex justify-content-center\">\n <button\n pButton\n label=\"Incluir\"\n pTooltip=\"Clique aqui para incluir um novo registro\"\n tooltipPosition=\"bottom\"\n icon=\"pi pi-plus\"\n class=\"p-button-rounded p-button-success mr-2\"\n (click)=\"addClick($event)\"\n ></button>\n </div>\n </div>\n </ng-template>\n\n\n\n\n <!-- :: -->\n\n <ng-template\n let-item\n pTemplate=\"item\"\n *ngIf=\"itemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n >\n\n </ng-container>\n </ng-template>\n\n\n <ng-template\n let-selectedItem\n pTemplate=\"selectedItem\"\n *ngIf=\"selectedItemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItem }\"\n >\n\n </ng-container>\n </ng-template>\n\n <!-- :: -->\n\n\n </p-dropdown>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["", "label{font-family:Inter var,Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i9.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "component", type: i4.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }] }); }
|
|
1759
|
-
}
|
|
1760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
1761
|
-
type: Component,
|
|
1762
|
-
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-dropdown\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n [disabled]=\"disabled\"\n [filter]=\"filter\"\n [inputId]=\"componentId\"\n [(ngModel)]=\"value\"\n [options]=\"filteredOptions\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [optionDisabled]=\"optionDisabled\"\n [group]=\"group\"\n [optionGroupLabel]=\"optionGroupLabel\"\n [optionGroupChildren]=\"optionGroupChildren\"\n [showClear]=\"showClear\"\n [lazy]=\"lazy\"\n scrollHeight=\"250px\"\n (onBlur)=\"onInputBlur($event)\"\n (onClick)=\"onInputClick($event)\"\n (onChange)=\"onInputChange($event)\"\n (onFilter)=\"onInputFilter($event)\"\n [style]=\"{'width':widthField}\"\n [panelStyle]=\"{ width: widthField, overflow: 'auto' }\"\n styleClass=\"inputs\"\n >\n\n <ng-template\n *ngIf=\"showAddButton\"\n pTemplate=\"footer\"\n >\n <p-divider></p-divider>\n <div class=\"flex flex-wrap card-container p-1\">\n <div class=\"flex justify-content-center\">\n <button\n pButton\n label=\"Incluir\"\n pTooltip=\"Clique aqui para incluir um novo registro\"\n tooltipPosition=\"bottom\"\n icon=\"pi pi-plus\"\n class=\"p-button-rounded p-button-success mr-2\"\n (click)=\"addClick($event)\"\n ></button>\n </div>\n </div>\n </ng-template>\n\n\n\n\n <!-- :: -->\n\n <ng-template\n let-item\n pTemplate=\"item\"\n *ngIf=\"itemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n >\n\n </ng-container>\n </ng-template>\n\n\n <ng-template\n let-selectedItem\n pTemplate=\"selectedItem\"\n *ngIf=\"selectedItemTemplate\"\n >\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItem }\"\n >\n\n </ng-container>\n </ng-template>\n\n <!-- :: -->\n\n\n </p-dropdown>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["label{font-family:Inter var,Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"] }]
|
|
1763
|
-
}], ctorParameters: function () { return [{ type: ComponentService }, { type: i1$3.DialogService }]; }, propDecorators: { dropDowValue: [{
|
|
1764
|
-
type: Input
|
|
1765
|
-
}], itemTemplate: [{
|
|
1766
|
-
type: Input
|
|
1767
|
-
}], selectedItemTemplate: [{
|
|
1768
|
-
type: Input
|
|
1769
|
-
}] } });
|
|
1770
|
-
|
|
1771
2114
|
class InputCalendarComponent extends BaseComponentInput {
|
|
1772
2115
|
constructor(componentService) {
|
|
1773
2116
|
super(componentService);
|
|
@@ -2364,89 +2707,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2364
2707
|
args: ['cTemplate']
|
|
2365
2708
|
}] } });
|
|
2366
2709
|
|
|
2367
|
-
class CodigoFipePipe {
|
|
2368
|
-
transform(value) {
|
|
2369
|
-
if (value) {
|
|
2370
|
-
const identificacao = value.replace(/[^0-9]/g, '');
|
|
2371
|
-
return identificacao.replace(/(\d{6})(\d{1})/g, "\$1-\$2");
|
|
2372
|
-
}
|
|
2373
|
-
else
|
|
2374
|
-
return null;
|
|
2375
|
-
}
|
|
2376
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CodigoFipePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2377
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CodigoFipePipe, name: "codigoFipe" }); }
|
|
2378
|
-
}
|
|
2379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CodigoFipePipe, decorators: [{
|
|
2380
|
-
type: Pipe,
|
|
2381
|
-
args: [{ name: 'codigoFipe' }]
|
|
2382
|
-
}] });
|
|
2383
|
-
|
|
2384
|
-
class CpfCnpjPipe {
|
|
2385
|
-
transform(value) {
|
|
2386
|
-
if (value) {
|
|
2387
|
-
const identificacao = value.replace(/[^0-9]/g, '');
|
|
2388
|
-
if (identificacao.length === 11) {
|
|
2389
|
-
return identificacao.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/g, "\$1.\$2.\$3\-\$4");
|
|
2390
|
-
}
|
|
2391
|
-
else if (identificacao.length === 14) {
|
|
2392
|
-
return identificacao.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/g, "\$1.\$2.\$3\/\$4\-\$5");
|
|
2393
|
-
}
|
|
2394
|
-
return value;
|
|
2395
|
-
}
|
|
2396
|
-
else
|
|
2397
|
-
return null;
|
|
2398
|
-
}
|
|
2399
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CpfCnpjPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2400
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CpfCnpjPipe, name: "cpfCnpj" }); }
|
|
2401
|
-
}
|
|
2402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CpfCnpjPipe, decorators: [{
|
|
2403
|
-
type: Pipe,
|
|
2404
|
-
args: [{ name: 'cpfCnpj' }]
|
|
2405
|
-
}] });
|
|
2406
|
-
|
|
2407
|
-
class TelefonePipe {
|
|
2408
|
-
transform(tel) {
|
|
2409
|
-
if (tel) {
|
|
2410
|
-
const value = tel.toString().replace(/\D/g, '');
|
|
2411
|
-
let foneFormatado = '';
|
|
2412
|
-
if (value.length > 12) {
|
|
2413
|
-
foneFormatado = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
2414
|
-
}
|
|
2415
|
-
else if (value.length > 11) {
|
|
2416
|
-
foneFormatado = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
2417
|
-
}
|
|
2418
|
-
else if (value.length > 10) {
|
|
2419
|
-
foneFormatado = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
|
|
2420
|
-
}
|
|
2421
|
-
else if (value.length > 9) {
|
|
2422
|
-
foneFormatado = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
|
|
2423
|
-
}
|
|
2424
|
-
else if (value.length > 5) {
|
|
2425
|
-
foneFormatado = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
|
|
2426
|
-
}
|
|
2427
|
-
else if (value.length > 1) {
|
|
2428
|
-
foneFormatado = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
|
|
2429
|
-
}
|
|
2430
|
-
else {
|
|
2431
|
-
if (tel !== '') {
|
|
2432
|
-
foneFormatado = value.replace(/^(\d*)/, '($1');
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
return foneFormatado;
|
|
2436
|
-
}
|
|
2437
|
-
else
|
|
2438
|
-
return null;
|
|
2439
|
-
}
|
|
2440
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelefonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2441
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TelefonePipe, name: "Telefone" }); }
|
|
2442
|
-
}
|
|
2443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelefonePipe, decorators: [{
|
|
2444
|
-
type: Pipe,
|
|
2445
|
-
args: [{
|
|
2446
|
-
name: 'Telefone'
|
|
2447
|
-
}]
|
|
2448
|
-
}] });
|
|
2449
|
-
|
|
2450
2710
|
const imgDefault = '/9j/4AAQSkZJRgABAQIAdgB2AAD/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAMAAAITAAMAAAABAAEAAAAAAAAAAAB2AAAAAQAAAHYAAAAB/9s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ZhB+lfPMtJGypct70x72nBcOfHyxy4kDmmmuJnuLiV5ZZWLu7sWZmJ2SSe5JPvVa24ndlmkoVZZFtQSKAUAoD/9k=';
|
|
2451
2711
|
class TableComponent {
|
|
2452
2712
|
set setConfig(value) {
|
|
@@ -2966,7 +3226,7 @@ class TreeViewComponent {
|
|
|
2966
3226
|
this.selectedItems.emit(this.selectedFiles);
|
|
2967
3227
|
}
|
|
2968
3228
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2969
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeViewComponent, selector: "kv-tree-view", inputs: { selectedFiles: "selectedFiles", selectionMode: "selectionMode", treeViewData: "treeViewData" }, outputs: { selectedItems: "selectedItems" }, ngImport: i0, template: "<div class=\"card flex flex-column align-items-center justify-content-center\">\n <p-tree\n [value]=\"treeViewData\"\n [selectionMode]=\"selectionMode\"\n class=\"w-full\"\n [(selection)]=\"selectedFiles\"\n (selectionChange)=\"onSelectionChange()\"\n ></p-tree>\n</div>", styles: [""], dependencies: [{ kind: "component", type: i1$
|
|
3229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeViewComponent, selector: "kv-tree-view", inputs: { selectedFiles: "selectedFiles", selectionMode: "selectionMode", treeViewData: "treeViewData" }, outputs: { selectedItems: "selectedItems" }, ngImport: i0, template: "<div class=\"card flex flex-column align-items-center justify-content-center\">\n <p-tree\n [value]=\"treeViewData\"\n [selectionMode]=\"selectionMode\"\n class=\"w-full\"\n [(selection)]=\"selectedFiles\"\n (selectionChange)=\"onSelectionChange()\"\n ></p-tree>\n</div>", styles: [""], dependencies: [{ kind: "component", type: i1$5.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }] }); }
|
|
2970
3230
|
}
|
|
2971
3231
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeViewComponent, decorators: [{
|
|
2972
3232
|
type: Component,
|
|
@@ -4212,7 +4472,7 @@ class LoaderComponent {
|
|
|
4212
4472
|
this.loading = LoaderService.isLoading;
|
|
4213
4473
|
}
|
|
4214
4474
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4215
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LoaderComponent, selector: "kv-loader", ngImport: i0, template: "<ngx-loading [show]=\"(loading | async) || false\"></ngx-loading>\n", dependencies: [{ kind: "component", type: i1$
|
|
4475
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LoaderComponent, selector: "kv-loader", ngImport: i0, template: "<ngx-loading [show]=\"(loading | async) || false\"></ngx-loading>\n", dependencies: [{ kind: "component", type: i1$6.NgxLoadingComponent, selector: "ngx-loading", inputs: ["show", "config", "template"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
4216
4476
|
}
|
|
4217
4477
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
4218
4478
|
type: Component,
|
|
@@ -4221,7 +4481,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4221
4481
|
|
|
4222
4482
|
class KvLoaderModule {
|
|
4223
4483
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KvLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4224
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: KvLoaderModule, declarations: [LoaderComponent], imports: [CommonModule, i1$
|
|
4484
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: KvLoaderModule, declarations: [LoaderComponent], imports: [CommonModule, i1$6.NgxLoadingModule], exports: [LoaderComponent] }); }
|
|
4225
4485
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KvLoaderModule, imports: [CommonModule,
|
|
4226
4486
|
NgxLoadingModule.forRoot({
|
|
4227
4487
|
fullScreenBackdrop: true
|
|
@@ -4391,435 +4651,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4391
4651
|
}]
|
|
4392
4652
|
}] });
|
|
4393
4653
|
|
|
4394
|
-
class BaseComponentDropdownNew extends BaseComponentDropDown {
|
|
4395
|
-
ngOnInit() {
|
|
4396
|
-
if (this.dropDowValue)
|
|
4397
|
-
this.value = this.dropDowValue;
|
|
4398
|
-
}
|
|
4399
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropdownNew, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4400
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BaseComponentDropdownNew, isStandalone: true, selector: "app-base-dropdown", inputs: { formGroup: "formGroup", formControlName: "formControlName", dropDowValue: "dropDowValue", itemTemplate: "itemTemplate", selectedItemTemplate: "selectedItemTemplate" }, usesInheritance: true, ngImport: i0, template: `
|
|
4401
|
-
<span>
|
|
4402
|
-
<kv-label
|
|
4403
|
-
[componentId]="componentId"
|
|
4404
|
-
[label]="label"
|
|
4405
|
-
/>
|
|
4406
|
-
<p-dropdown
|
|
4407
|
-
appendTo="body"
|
|
4408
|
-
[class]="baseInputClass"
|
|
4409
|
-
[disabled]="disabled"
|
|
4410
|
-
[filter]="filter"
|
|
4411
|
-
[inputId]="componentId"
|
|
4412
|
-
[(ngModel)]="value"
|
|
4413
|
-
[options]="filteredOptions"
|
|
4414
|
-
[optionLabel]="optionLabel"
|
|
4415
|
-
[optionValue]="optionValue"
|
|
4416
|
-
[optionDisabled]="optionDisabled"
|
|
4417
|
-
[group]="group"
|
|
4418
|
-
[optionGroupLabel]="optionGroupLabel"
|
|
4419
|
-
[optionGroupChildren]="optionGroupChildren"
|
|
4420
|
-
[showClear]="showClear"
|
|
4421
|
-
[lazy]="lazy"
|
|
4422
|
-
scrollHeight="250px"
|
|
4423
|
-
(onBlur)="onInputBlur($event)"
|
|
4424
|
-
(onClick)="onInputClick($event)"
|
|
4425
|
-
(onChange)="onInputChange($event)"
|
|
4426
|
-
(onFilter)="onInputFilter($event)"
|
|
4427
|
-
[style]="{'width':widthField}"
|
|
4428
|
-
[panelStyle]="{ width: widthField, overflow: 'auto' }"
|
|
4429
|
-
styleClass="inputs"
|
|
4430
|
-
>
|
|
4431
|
-
|
|
4432
|
-
<ng-template
|
|
4433
|
-
*ngIf="showAddButton"
|
|
4434
|
-
pTemplate="footer"
|
|
4435
|
-
>
|
|
4436
|
-
<p-divider></p-divider>
|
|
4437
|
-
<div class="flex flex-wrap card-container p-1">
|
|
4438
|
-
<div class="flex justify-content-center">
|
|
4439
|
-
<button
|
|
4440
|
-
pButton
|
|
4441
|
-
label="Incluir"
|
|
4442
|
-
pTooltip="Clique aqui para incluir um novo registro"
|
|
4443
|
-
tooltipPosition="bottom"
|
|
4444
|
-
icon="pi pi-plus"
|
|
4445
|
-
class="p-button-rounded p-button-success mr-2"
|
|
4446
|
-
(click)="addClick($event)"
|
|
4447
|
-
></button>
|
|
4448
|
-
</div>
|
|
4449
|
-
</div>
|
|
4450
|
-
</ng-template>
|
|
4451
|
-
|
|
4452
|
-
<ng-template
|
|
4453
|
-
let-selectedItem
|
|
4454
|
-
pTemplate="item"
|
|
4455
|
-
*ngIf="itemTemplate"
|
|
4456
|
-
>
|
|
4457
|
-
<ng-container
|
|
4458
|
-
[ngTemplateOutlet]="itemTemplate"
|
|
4459
|
-
[ngTemplateOutletContext]="{ $implicit: selectedItem }"
|
|
4460
|
-
>
|
|
4461
|
-
</ng-container>
|
|
4462
|
-
</ng-template>
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
<ng-template
|
|
4466
|
-
let-item
|
|
4467
|
-
pTemplate="selectedItem"
|
|
4468
|
-
*ngIf="selectedItemTemplate"
|
|
4469
|
-
>
|
|
4470
|
-
<ng-container
|
|
4471
|
-
[ngTemplateOutlet]="selectedItemTemplate"
|
|
4472
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
4473
|
-
>
|
|
4474
|
-
|
|
4475
|
-
</ng-container>
|
|
4476
|
-
</ng-template>
|
|
4477
|
-
|
|
4478
|
-
</p-dropdown>
|
|
4479
|
-
|
|
4480
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
4481
|
-
</span>
|
|
4482
|
-
<ng-content></ng-content>
|
|
4483
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: KeevoComponentsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: PrimeNgModule }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i9.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "component", type: i4.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: LabelModule }, { kind: "component", type: LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }, { kind: "ngmodule", type: kvErrorModule }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }] }); }
|
|
4484
|
-
}
|
|
4485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseComponentDropdownNew, decorators: [{
|
|
4486
|
-
type: Component,
|
|
4487
|
-
args: [{
|
|
4488
|
-
selector: 'app-base-dropdown',
|
|
4489
|
-
template: `
|
|
4490
|
-
<span>
|
|
4491
|
-
<kv-label
|
|
4492
|
-
[componentId]="componentId"
|
|
4493
|
-
[label]="label"
|
|
4494
|
-
/>
|
|
4495
|
-
<p-dropdown
|
|
4496
|
-
appendTo="body"
|
|
4497
|
-
[class]="baseInputClass"
|
|
4498
|
-
[disabled]="disabled"
|
|
4499
|
-
[filter]="filter"
|
|
4500
|
-
[inputId]="componentId"
|
|
4501
|
-
[(ngModel)]="value"
|
|
4502
|
-
[options]="filteredOptions"
|
|
4503
|
-
[optionLabel]="optionLabel"
|
|
4504
|
-
[optionValue]="optionValue"
|
|
4505
|
-
[optionDisabled]="optionDisabled"
|
|
4506
|
-
[group]="group"
|
|
4507
|
-
[optionGroupLabel]="optionGroupLabel"
|
|
4508
|
-
[optionGroupChildren]="optionGroupChildren"
|
|
4509
|
-
[showClear]="showClear"
|
|
4510
|
-
[lazy]="lazy"
|
|
4511
|
-
scrollHeight="250px"
|
|
4512
|
-
(onBlur)="onInputBlur($event)"
|
|
4513
|
-
(onClick)="onInputClick($event)"
|
|
4514
|
-
(onChange)="onInputChange($event)"
|
|
4515
|
-
(onFilter)="onInputFilter($event)"
|
|
4516
|
-
[style]="{'width':widthField}"
|
|
4517
|
-
[panelStyle]="{ width: widthField, overflow: 'auto' }"
|
|
4518
|
-
styleClass="inputs"
|
|
4519
|
-
>
|
|
4520
|
-
|
|
4521
|
-
<ng-template
|
|
4522
|
-
*ngIf="showAddButton"
|
|
4523
|
-
pTemplate="footer"
|
|
4524
|
-
>
|
|
4525
|
-
<p-divider></p-divider>
|
|
4526
|
-
<div class="flex flex-wrap card-container p-1">
|
|
4527
|
-
<div class="flex justify-content-center">
|
|
4528
|
-
<button
|
|
4529
|
-
pButton
|
|
4530
|
-
label="Incluir"
|
|
4531
|
-
pTooltip="Clique aqui para incluir um novo registro"
|
|
4532
|
-
tooltipPosition="bottom"
|
|
4533
|
-
icon="pi pi-plus"
|
|
4534
|
-
class="p-button-rounded p-button-success mr-2"
|
|
4535
|
-
(click)="addClick($event)"
|
|
4536
|
-
></button>
|
|
4537
|
-
</div>
|
|
4538
|
-
</div>
|
|
4539
|
-
</ng-template>
|
|
4540
|
-
|
|
4541
|
-
<ng-template
|
|
4542
|
-
let-selectedItem
|
|
4543
|
-
pTemplate="item"
|
|
4544
|
-
*ngIf="itemTemplate"
|
|
4545
|
-
>
|
|
4546
|
-
<ng-container
|
|
4547
|
-
[ngTemplateOutlet]="itemTemplate"
|
|
4548
|
-
[ngTemplateOutletContext]="{ $implicit: selectedItem }"
|
|
4549
|
-
>
|
|
4550
|
-
</ng-container>
|
|
4551
|
-
</ng-template>
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
<ng-template
|
|
4555
|
-
let-item
|
|
4556
|
-
pTemplate="selectedItem"
|
|
4557
|
-
*ngIf="selectedItemTemplate"
|
|
4558
|
-
>
|
|
4559
|
-
<ng-container
|
|
4560
|
-
[ngTemplateOutlet]="selectedItemTemplate"
|
|
4561
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
4562
|
-
>
|
|
4563
|
-
|
|
4564
|
-
</ng-container>
|
|
4565
|
-
</ng-template>
|
|
4566
|
-
|
|
4567
|
-
</p-dropdown>
|
|
4568
|
-
|
|
4569
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
4570
|
-
</span>
|
|
4571
|
-
<ng-content></ng-content>
|
|
4572
|
-
`,
|
|
4573
|
-
standalone: true,
|
|
4574
|
-
imports: [KeevoComponentsModule, ReactiveFormsModule, FormsModule, PrimeNgModule, LabelModule, kvErrorModule]
|
|
4575
|
-
}]
|
|
4576
|
-
}], propDecorators: { formGroup: [{
|
|
4577
|
-
type: Input
|
|
4578
|
-
}], formControlName: [{
|
|
4579
|
-
type: Input
|
|
4580
|
-
}], dropDowValue: [{
|
|
4581
|
-
type: Input
|
|
4582
|
-
}], itemTemplate: [{
|
|
4583
|
-
type: Input
|
|
4584
|
-
}], selectedItemTemplate: [{
|
|
4585
|
-
type: Input
|
|
4586
|
-
}] } });
|
|
4587
|
-
|
|
4588
|
-
class TranslatePrimeng {
|
|
4589
|
-
config(config) {
|
|
4590
|
-
config.ripple = true;
|
|
4591
|
-
config.setTranslation({
|
|
4592
|
-
monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
4593
|
-
monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
|
|
4594
|
-
dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sabádo'],
|
|
4595
|
-
dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
|
4596
|
-
dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
|
4597
|
-
today: 'Hoje',
|
|
4598
|
-
weekHeader: 'Semana',
|
|
4599
|
-
emptyMessage: 'Nenhum resultado encontrado',
|
|
4600
|
-
emptyFilterMessage: 'Nenhum registro encontrado com o filtro informado',
|
|
4601
|
-
weak: 'Fraca',
|
|
4602
|
-
medium: 'Média',
|
|
4603
|
-
strong: 'Forte',
|
|
4604
|
-
passwordPrompt: 'Informe a senha',
|
|
4605
|
-
clear: 'Limpar',
|
|
4606
|
-
apply: 'Aplicar'
|
|
4607
|
-
});
|
|
4608
|
-
}
|
|
4609
|
-
}
|
|
4610
|
-
|
|
4611
|
-
class KeevoValidators {
|
|
4612
|
-
static required(erroMessage) {
|
|
4613
|
-
return (control) => {
|
|
4614
|
-
if (Validators.required(control))
|
|
4615
|
-
return { required: true, erroMessage: `${erroMessage ? erroMessage : 'Campo obrigatório'}` };
|
|
4616
|
-
return null;
|
|
4617
|
-
};
|
|
4618
|
-
}
|
|
4619
|
-
static dateGreaterThan(startControlName, erroMessage) {
|
|
4620
|
-
return (endControl) => {
|
|
4621
|
-
const parent = endControl.parent;
|
|
4622
|
-
if (!parent)
|
|
4623
|
-
return null;
|
|
4624
|
-
const startControl = parent.get(startControlName);
|
|
4625
|
-
const startDate = startControl.value;
|
|
4626
|
-
const endDate = endControl.value;
|
|
4627
|
-
if (!startDate || !endDate) {
|
|
4628
|
-
return null;
|
|
4629
|
-
}
|
|
4630
|
-
if (startDate > endDate) {
|
|
4631
|
-
return { greaterThan: true, erroMessage: erroMessage };
|
|
4632
|
-
}
|
|
4633
|
-
return null;
|
|
4634
|
-
};
|
|
4635
|
-
}
|
|
4636
|
-
static min(min, erroMessage) {
|
|
4637
|
-
return (control) => {
|
|
4638
|
-
if (Validators.min(min)(control))
|
|
4639
|
-
return { min: true, erroMessage: `${erroMessage ? erroMessage : 'Informe um valor maior ou igual à '}${min}` };
|
|
4640
|
-
return null;
|
|
4641
|
-
};
|
|
4642
|
-
}
|
|
4643
|
-
static max(min, erroMessage) {
|
|
4644
|
-
return (control) => {
|
|
4645
|
-
if (Validators.max(min)(control))
|
|
4646
|
-
return { min: true, erroMessage: `${erroMessage ? erroMessage : 'Informe um valor menor ou igual à '}${min}` };
|
|
4647
|
-
return null;
|
|
4648
|
-
};
|
|
4649
|
-
}
|
|
4650
|
-
static email(erroMessage) {
|
|
4651
|
-
return (control) => {
|
|
4652
|
-
if (Validators.email(control)) {
|
|
4653
|
-
return { email: true, erroMessage: `${erroMessage ? erroMessage : 'Endereço de e-mail inválido!'}` };
|
|
4654
|
-
}
|
|
4655
|
-
return null;
|
|
4656
|
-
};
|
|
4657
|
-
}
|
|
4658
|
-
static maxLengthArray(max) {
|
|
4659
|
-
return (c) => {
|
|
4660
|
-
if (c.value.length < max)
|
|
4661
|
-
return null;
|
|
4662
|
-
return { maxLengthArray: true, erroMessage: 'Tamanho máximo excedido!' };
|
|
4663
|
-
};
|
|
4664
|
-
}
|
|
4665
|
-
static maxLength(max, erroMessage) {
|
|
4666
|
-
return (control) => {
|
|
4667
|
-
if (Validators.maxLength(max)(control))
|
|
4668
|
-
return { maxLength: true, erroMessage: `${erroMessage ? erroMessage : 'Limite máximo de ${max} caracteres atingido!'}` };
|
|
4669
|
-
return null;
|
|
4670
|
-
};
|
|
4671
|
-
}
|
|
4672
|
-
}
|
|
4673
|
-
|
|
4674
|
-
class PipesModule {
|
|
4675
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4676
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, declarations: [CpfCnpjPipe,
|
|
4677
|
-
TelefonePipe,
|
|
4678
|
-
CodigoFipePipe], imports: [CommonModule], exports: [CpfCnpjPipe,
|
|
4679
|
-
TelefonePipe,
|
|
4680
|
-
CodigoFipePipe] }); }
|
|
4681
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, imports: [CommonModule] }); }
|
|
4682
|
-
}
|
|
4683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipesModule, decorators: [{
|
|
4684
|
-
type: NgModule,
|
|
4685
|
-
args: [{
|
|
4686
|
-
imports: [
|
|
4687
|
-
CommonModule
|
|
4688
|
-
],
|
|
4689
|
-
declarations: [
|
|
4690
|
-
CpfCnpjPipe,
|
|
4691
|
-
TelefonePipe,
|
|
4692
|
-
CodigoFipePipe
|
|
4693
|
-
],
|
|
4694
|
-
exports: [
|
|
4695
|
-
CpfCnpjPipe,
|
|
4696
|
-
TelefonePipe,
|
|
4697
|
-
CodigoFipePipe
|
|
4698
|
-
]
|
|
4699
|
-
}]
|
|
4700
|
-
}] });
|
|
4701
|
-
|
|
4702
|
-
const httpOptions = {
|
|
4703
|
-
headers: new HttpHeaders({
|
|
4704
|
-
'Content-Type': 'application/json',
|
|
4705
|
-
Accept: 'application/json',
|
|
4706
|
-
'Access-Control-Allow-Headers': 'Content-Type',
|
|
4707
|
-
}),
|
|
4708
|
-
};
|
|
4709
|
-
class BaseApiService {
|
|
4710
|
-
constructor(http) {
|
|
4711
|
-
this.http = http;
|
|
4712
|
-
}
|
|
4713
|
-
delete(baseUrl, rota) {
|
|
4714
|
-
return this.http.delete(`${baseUrl}${rota}`);
|
|
4715
|
-
}
|
|
4716
|
-
deleteAllBody(baseUrl, rota, body) {
|
|
4717
|
-
return this.http.delete(`${baseUrl}${rota}`, {
|
|
4718
|
-
headers: new HttpHeaders({
|
|
4719
|
-
'Content-Type': 'application/json',
|
|
4720
|
-
}),
|
|
4721
|
-
body: body
|
|
4722
|
-
});
|
|
4723
|
-
}
|
|
4724
|
-
deleteAllHeaders(baseUrl, rota, headers) {
|
|
4725
|
-
return this.http.delete(`${baseUrl}${rota}`, {
|
|
4726
|
-
headers: headers,
|
|
4727
|
-
});
|
|
4728
|
-
}
|
|
4729
|
-
get(baseUrl, rota) {
|
|
4730
|
-
return this.http.get(`${baseUrl}${rota}`);
|
|
4731
|
-
}
|
|
4732
|
-
getHeaders(baseUrl, rota, headers) {
|
|
4733
|
-
return this.http.get(`${baseUrl}${rota}`, {
|
|
4734
|
-
headers: headers,
|
|
4735
|
-
});
|
|
4736
|
-
}
|
|
4737
|
-
getAll(baseUrl, rota) {
|
|
4738
|
-
return this.http.get(`${baseUrl}${rota}`);
|
|
4739
|
-
}
|
|
4740
|
-
getAllHeaders(baseUrl, rota, headers) {
|
|
4741
|
-
return this.http.get(`${baseUrl}${rota}`, {
|
|
4742
|
-
headers: headers,
|
|
4743
|
-
});
|
|
4744
|
-
}
|
|
4745
|
-
getAllParams(baseUrl, rota, params) {
|
|
4746
|
-
return this.http.get(`${baseUrl}${rota}`, {
|
|
4747
|
-
params: params,
|
|
4748
|
-
});
|
|
4749
|
-
}
|
|
4750
|
-
getArquivo(baseUrl, rota, id, paramCabecalho) {
|
|
4751
|
-
return this.http.get(`${baseUrl}${rota}/${id}`, paramCabecalho);
|
|
4752
|
-
}
|
|
4753
|
-
getArquivos(baseUrl, rota, paramCabecalho) {
|
|
4754
|
-
return this.http.get(`${baseUrl}${rota}`, paramCabecalho);
|
|
4755
|
-
}
|
|
4756
|
-
post(baseUrl, rota, data) {
|
|
4757
|
-
return this.http.post(`${baseUrl}${rota}`, data);
|
|
4758
|
-
}
|
|
4759
|
-
put(baseUrl, rota, data) {
|
|
4760
|
-
return this.http.put(`${baseUrl}${rota}`, data);
|
|
4761
|
-
}
|
|
4762
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseApiService, deps: [{ token: i1$6.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4763
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseApiService, providedIn: 'root' }); }
|
|
4764
|
-
}
|
|
4765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseApiService, decorators: [{
|
|
4766
|
-
type: Injectable,
|
|
4767
|
-
args: [{
|
|
4768
|
-
providedIn: 'root',
|
|
4769
|
-
}]
|
|
4770
|
-
}], ctorParameters: function () { return [{ type: i1$6.HttpClient }]; } });
|
|
4771
|
-
|
|
4772
|
-
class BreadcrumbsService {
|
|
4773
|
-
constructor(router, activatedRoute) {
|
|
4774
|
-
this.router = router;
|
|
4775
|
-
this.activatedRoute = activatedRoute;
|
|
4776
|
-
this.breadcrumbsSubject = new BehaviorSubject([]);
|
|
4777
|
-
this.breadcrumbs$ = this.breadcrumbsSubject.asObservable();
|
|
4778
|
-
this.router.events
|
|
4779
|
-
.pipe(filter$1((event) => event instanceof NavigationEnd))
|
|
4780
|
-
.subscribe(() => {
|
|
4781
|
-
const breadcrumbs = this.parseRoute(this.router.routerState.root);
|
|
4782
|
-
this.breadcrumbsSubject.next(breadcrumbs);
|
|
4783
|
-
});
|
|
4784
|
-
}
|
|
4785
|
-
parseRoute(route, url = '', breadcrumbs = []) {
|
|
4786
|
-
const path = route.routeConfig && route.routeConfig.path ? route.routeConfig.path : '';
|
|
4787
|
-
const label = route.routeConfig && route.routeConfig.data ? route.routeConfig.data['breadcrumb'] : '';
|
|
4788
|
-
if (path && label) {
|
|
4789
|
-
if (url === '') {
|
|
4790
|
-
breadcrumbs.push({
|
|
4791
|
-
label: label,
|
|
4792
|
-
routerLink: `/${path}`,
|
|
4793
|
-
});
|
|
4794
|
-
}
|
|
4795
|
-
else {
|
|
4796
|
-
breadcrumbs.push({
|
|
4797
|
-
label: label,
|
|
4798
|
-
routerLink: `${url}/${path}`,
|
|
4799
|
-
});
|
|
4800
|
-
}
|
|
4801
|
-
}
|
|
4802
|
-
const nextRoute = route.firstChild;
|
|
4803
|
-
if (nextRoute) {
|
|
4804
|
-
if (url === '') {
|
|
4805
|
-
return this.parseRoute(nextRoute, path, breadcrumbs);
|
|
4806
|
-
}
|
|
4807
|
-
else {
|
|
4808
|
-
return this.parseRoute(nextRoute, `${url}/${path}`, breadcrumbs);
|
|
4809
|
-
}
|
|
4810
|
-
}
|
|
4811
|
-
return breadcrumbs;
|
|
4812
|
-
}
|
|
4813
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbsService, deps: [{ token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4814
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbsService, providedIn: 'root' }); }
|
|
4815
|
-
}
|
|
4816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbsService, decorators: [{
|
|
4817
|
-
type: Injectable,
|
|
4818
|
-
args: [{
|
|
4819
|
-
providedIn: 'root',
|
|
4820
|
-
}]
|
|
4821
|
-
}], ctorParameters: function () { return [{ type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
4822
|
-
|
|
4823
4654
|
;
|
|
4824
4655
|
|
|
4825
4656
|
/*
|
|
@@ -4833,5 +4664,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4833
4664
|
* Generated bundle index. Do not edit.
|
|
4834
4665
|
*/
|
|
4835
4666
|
|
|
4836
|
-
export { AvatarComponent, BaseApiService, BaseChartComponent, BaseComponent, BaseComponentButton, BaseComponentCrud, BaseComponentCrudForm, BaseComponentCrudList, BaseComponentDropDown,
|
|
4667
|
+
export { AvatarComponent, BaseApiService, BaseChartComponent, BaseComponent, BaseComponentButton, BaseComponentCrud, BaseComponentCrudForm, BaseComponentCrudList, BaseComponentDropDown, BaseComponentDropDownExternal, BaseComponentInput, BaseComponentMultiSelect, BreadcrumbsService, ButtonPersonalizeComponent, ButtonPopupComponent, ButtonSecondaryComponent, ButtonSuccessComponent, ChartComponent, CheckComponent, CodigoFipePipe, ComponentProviders, ComponentService, CpfCnpjPipe, DropdownComponent, EditorComponent, ErrorComponent, FormService, InputCalendarComponent, InputMaskComponent, InputNumberComponent, InputPasswordComponent, InputTextCheckboxComponent, InputTextComponent, InputTextareaComponent, InputTimeComponent, KVTreeTableModule, KeevoComponentsModule, KeevoValidators, KvAvatarModule, KvButtonsModule, KvChartModule, KvInputsModule, KvLoaderModule, KvLoginModule, KvMenuModule, KvPageFormModule, KvPickListModule, KvTableModule, KvWorkspaceModule, KvtreeViewModule, LoaderComponent, LoaderService, LoginComponent, MenuComponent, MultiSelectComponent, NotificationService, ObjectService, OrgchartComponent, OrgchartModule, PageFormComponent, PeriodosChart, PickListComponent, PipesModule, PrimeNgModule, RadioGroupComponent, SwitchComponent, TableComponent, TablePaginate, TelefonePipe, TranslatePrimeng, TreeTableComponent, TreeViewComponent, WorkspaceComponent, kvErrorModule, loading };
|
|
4837
4668
|
//# sourceMappingURL=keevo-components.mjs.map
|