ngx-vector-components 6.50.1 → 6.52.0
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/CHANGELOG.md +12 -0
- package/assets/images/alert_icon.svg +4 -0
- package/assets/images/check_icon.svg +4 -0
- package/assets/images/emoji_flashing_icon.svg +5 -0
- package/assets/images/watch_icon.svg +16 -0
- package/fesm2022/ngx-vector-components.mjs +204 -9
- package/fesm2022/ngx-vector-components.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +6 -1
- package/lib/components/accordion/accordion.module.d.ts +4 -3
- package/lib/components/accordion/custom-header.directive.d.ts +5 -0
- package/lib/components/accordion/index.d.ts +1 -0
- package/lib/components/badge/badge.component.d.ts +5 -0
- package/lib/components/drawer/drawer.component.d.ts +10 -0
- package/lib/components/fields/calendar-field/calendar-field.component.d.ts +21 -0
- package/lib/components/fields/checkbox-field/checkbox-field.component.d.ts +9 -0
- package/lib/components/fields/currency-field/currency-field.component.d.ts +16 -0
- package/lib/components/fields/data-table/data-table.component.d.ts +45 -0
- package/lib/components/fields/dropdown-field/dropdown-field.component.d.ts +22 -0
- package/lib/components/fields/filters/filters.component.d.ts +3 -0
- package/lib/components/fields/input-file/input-file.component.d.ts +2 -0
- package/lib/components/fields/multiselect-field/multiselect-field.component.d.ts +22 -0
- package/lib/components/fields/text-field/text-field.component.d.ts +32 -0
- package/lib/components/generic-modal/generic-modal.component.d.ts +14 -0
- package/lib/models/profile.model.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, Component, Pipe, NgModule, InjectionToken, Injectable, Inject, EventEmitter, HostBinding, Output, Optional, signal, ViewChild, ViewEncapsulation, inject, HostListener, input, output } from '@angular/core';
|
|
2
|
+
import { Input, Component, Pipe, NgModule, Directive, InjectionToken, Injectable, Inject, EventEmitter, HostBinding, Output, Optional, signal, ViewChild, ViewEncapsulation, inject, HostListener, input, output } from '@angular/core';
|
|
3
3
|
import * as i1 from 'primeng/accordion';
|
|
4
4
|
import { AccordionModule as AccordionModule$1 } from 'primeng/accordion';
|
|
5
5
|
import * as i1$1 from '@angular/common';
|
|
@@ -79,6 +79,11 @@ import { providePrimeNG } from 'primeng/config';
|
|
|
79
79
|
class AccordionComponent {
|
|
80
80
|
constructor() {
|
|
81
81
|
this.title = '';
|
|
82
|
+
/**
|
|
83
|
+
* Ao definir o valor `true`, ignora-se o {@link title} e renderiza no cabeçalho o conteúdo
|
|
84
|
+
* projetado dentro de `<custom-header>`, sem formatação da library.
|
|
85
|
+
*/
|
|
86
|
+
this.enableCustomHeader = false;
|
|
82
87
|
this.expanded = false;
|
|
83
88
|
this.PANEL_VALUE = '0';
|
|
84
89
|
this.value = '';
|
|
@@ -87,13 +92,15 @@ class AccordionComponent {
|
|
|
87
92
|
this.value = this.expanded ? this.PANEL_VALUE : '';
|
|
88
93
|
}
|
|
89
94
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
90
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
95
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: AccordionComponent, isStandalone: false, selector: "vector-accordion", inputs: { title: "title", enableCustomHeader: "enableCustomHeader", expanded: "expanded" }, ngImport: i0, template: "<p-accordion\n [(value)]=\"value\"\n expandIcon=\"ph-bold ph-plus\"\n collapseIcon=\"ph-bold ph-minus\"\n transitionOptions=\"240ms cubic-bezier(0.25, 0.8, 0.25, 1)\"\n>\n <p-accordion-panel [value]=\"PANEL_VALUE\">\n <p-accordion-header>\n @if (enableCustomHeader) {\n <div\n class=\"vector-accordion__header-slot\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"$event.stopPropagation()\"\n (mousedown)=\"$event.stopPropagation()\"\n >\n <ng-content select=\"custom-header\"></ng-content>\n </div>\n } @else {\n <span class=\"vector-accordion__title\">{{ title }}</span>\n }\n </p-accordion-header>\n\n <p-accordion-content>\n <ng-content></ng-content>\n </p-accordion-content>\n </p-accordion-panel>\n</p-accordion>\n", styles: [":host ::ng-deep>.p-accordion>.p-accordionpanel{margin:10px 0!important;border-radius:12px!important;border:1px solid #e0e1e8!important;box-shadow:none!important;background-color:#fff!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px!important;font-size:1rem!important;border-radius:12px 12px 0 0!important;background:none!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader[aria-expanded=true]{border-bottom:1px solid #e0e1e8!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader:hover{background:#e0e1e8!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader>.ph-bold{color:#434560!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent{display:block;min-height:0;overflow:hidden}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent>.p-accordioncontent-content{min-height:0;overflow:hidden}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent[data-p-active=false]>.p-accordioncontent-content{padding:0!important;border:0!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent[data-p-active=true]>.p-accordioncontent-content{animation:vector-accordion-reveal .24s cubic-bezier(.25,.8,.25,1)}.vector-accordion__title{color:#0c31b6}.vector-accordion__header-slot{display:flex;align-items:center;min-width:0;cursor:auto;-webkit-user-select:text;user-select:text}@keyframes vector-accordion-reveal{0%{opacity:0}to{opacity:1}}\n"], dependencies: [{ kind: "component", type: i1.Accordion, selector: "p-accordion", inputs: ["value", "multiple", "style", "styleClass", "expandIcon", "collapseIcon", "selectOnFocus", "transitionOptions", "activeIndex", "headerAriaLevel"], outputs: ["valueChange", "activeIndexChange", "onClose", "onOpen"] }, { kind: "component", type: i1.AccordionPanel, selector: "p-accordion-panel, p-accordionpanel", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i1.AccordionHeader, selector: "p-accordion-header, p-accordionheader" }, { kind: "component", type: i1.AccordionContent, selector: "p-accordion-content, p-accordioncontent" }] }); }
|
|
91
96
|
}
|
|
92
97
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AccordionComponent, decorators: [{
|
|
93
98
|
type: Component,
|
|
94
|
-
args: [{ standalone: false, selector: 'vector-accordion', template: "<p-accordion\n [(value)]=\"value\"\n expandIcon=\"ph-bold ph-plus\"\n collapseIcon=\"ph-bold ph-minus\"\n transitionOptions=\"240ms cubic-bezier(0.25, 0.8, 0.25, 1)\"\n>\n <p-accordion-panel [value]=\"PANEL_VALUE\">\n <p-accordion-header>{{ title }}</p-accordion-header>\n <p-accordion-content>\n <ng-content></ng-content>\n </p-accordion-content>\n </p-accordion-panel>\n</p-accordion>\n", styles: [":host ::ng-deep>.p-accordion>.p-accordionpanel{margin:10px 0!important;border-radius:12px!important;border:1px solid #e0e1e8!important;box-shadow:none!important;background-color:#fff!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px!important;font-size:1rem!important;
|
|
99
|
+
args: [{ standalone: false, selector: 'vector-accordion', template: "<p-accordion\n [(value)]=\"value\"\n expandIcon=\"ph-bold ph-plus\"\n collapseIcon=\"ph-bold ph-minus\"\n transitionOptions=\"240ms cubic-bezier(0.25, 0.8, 0.25, 1)\"\n>\n <p-accordion-panel [value]=\"PANEL_VALUE\">\n <p-accordion-header>\n @if (enableCustomHeader) {\n <div\n class=\"vector-accordion__header-slot\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"$event.stopPropagation()\"\n (mousedown)=\"$event.stopPropagation()\"\n >\n <ng-content select=\"custom-header\"></ng-content>\n </div>\n } @else {\n <span class=\"vector-accordion__title\">{{ title }}</span>\n }\n </p-accordion-header>\n\n <p-accordion-content>\n <ng-content></ng-content>\n </p-accordion-content>\n </p-accordion-panel>\n</p-accordion>\n", styles: [":host ::ng-deep>.p-accordion>.p-accordionpanel{margin:10px 0!important;border-radius:12px!important;border:1px solid #e0e1e8!important;box-shadow:none!important;background-color:#fff!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px!important;font-size:1rem!important;border-radius:12px 12px 0 0!important;background:none!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader[aria-expanded=true]{border-bottom:1px solid #e0e1e8!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader:hover{background:#e0e1e8!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordionheader>.ph-bold{color:#434560!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent{display:block;min-height:0;overflow:hidden}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent>.p-accordioncontent-content{min-height:0;overflow:hidden}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent[data-p-active=false]>.p-accordioncontent-content{padding:0!important;border:0!important}:host ::ng-deep>.p-accordion>.p-accordionpanel>.p-accordioncontent[data-p-active=true]>.p-accordioncontent-content{animation:vector-accordion-reveal .24s cubic-bezier(.25,.8,.25,1)}.vector-accordion__title{color:#0c31b6}.vector-accordion__header-slot{display:flex;align-items:center;min-width:0;cursor:auto;-webkit-user-select:text;user-select:text}@keyframes vector-accordion-reveal{0%{opacity:0}to{opacity:1}}\n"] }]
|
|
95
100
|
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
96
101
|
type: Input
|
|
102
|
+
}], enableCustomHeader: [{
|
|
103
|
+
type: Input
|
|
97
104
|
}], expanded: [{
|
|
98
105
|
type: Input
|
|
99
106
|
}] } });
|
|
@@ -861,16 +868,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
861
868
|
}]
|
|
862
869
|
}] });
|
|
863
870
|
|
|
871
|
+
class CustomHeaderDirective {
|
|
872
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CustomHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
873
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: CustomHeaderDirective, isStandalone: false, selector: "custom-header", ngImport: i0 }); }
|
|
874
|
+
}
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CustomHeaderDirective, decorators: [{
|
|
876
|
+
type: Directive,
|
|
877
|
+
args: [{
|
|
878
|
+
standalone: false,
|
|
879
|
+
selector: 'custom-header',
|
|
880
|
+
}]
|
|
881
|
+
}] });
|
|
882
|
+
|
|
864
883
|
class AccordionModule {
|
|
865
884
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
866
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: AccordionModule, declarations: [AccordionComponent], imports: [SharedModule, AccordionModule$1], exports: [AccordionComponent] }); }
|
|
885
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: AccordionModule, declarations: [AccordionComponent, CustomHeaderDirective], imports: [SharedModule, AccordionModule$1], exports: [AccordionComponent, CustomHeaderDirective] }); }
|
|
867
886
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AccordionModule, imports: [SharedModule, AccordionModule$1] }); }
|
|
868
887
|
}
|
|
869
888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AccordionModule, decorators: [{
|
|
870
889
|
type: NgModule,
|
|
871
890
|
args: [{
|
|
872
|
-
declarations: [AccordionComponent],
|
|
873
|
-
exports: [AccordionComponent],
|
|
891
|
+
declarations: [AccordionComponent, CustomHeaderDirective],
|
|
892
|
+
exports: [AccordionComponent, CustomHeaderDirective],
|
|
874
893
|
imports: [SharedModule, AccordionModule$1],
|
|
875
894
|
}]
|
|
876
895
|
}] });
|
|
@@ -1723,6 +1742,7 @@ var ProfileModuleActionType;
|
|
|
1723
1742
|
ProfileModuleActionType["CONSULT_CIOT"] = "Consulta CIOT";
|
|
1724
1743
|
ProfileModuleActionType["ENABLE_AVERAGE_COURTYARD_TIME"] = "Enable Average Courtyard Time";
|
|
1725
1744
|
ProfileModuleActionType["APPROVE_SCHEDULE_OFF_REQUEST"] = "Approve Schedule Off Request";
|
|
1745
|
+
ProfileModuleActionType["ENABLED_EDIT_LOT_AVAILABLE_QUANTITY_COFCO_CBSA"] = "Enabled Edit Lot AvailableQuantity Cofco Cbsa";
|
|
1726
1746
|
})(ProfileModuleActionType || (ProfileModuleActionType = {}));
|
|
1727
1747
|
|
|
1728
1748
|
var Role;
|
|
@@ -2980,25 +3000,45 @@ class CalendarComponent {
|
|
|
2980
3000
|
}
|
|
2981
3001
|
constructor(modalService) {
|
|
2982
3002
|
this.modalService = modalService;
|
|
3003
|
+
/** Acrescenta `*` ao placeholder calculado; hoje o template nao repassa o placeholder ao `p-datepicker`. */
|
|
2983
3004
|
this.isRequired = false;
|
|
3005
|
+
/** Texto do campo; hoje o template nao repassa o placeholder ao `p-datepicker`, entao nao aparece. */
|
|
2984
3006
|
this.label = '';
|
|
3007
|
+
/** Abre o calendario ao focar o campo (alem do clique no icone). */
|
|
2985
3008
|
this.showCalendarOnFocus = true;
|
|
3009
|
+
/** Data minima selecionavel (padrao: 01/01/1900). */
|
|
2986
3010
|
this.min = DateTime.fromFormat('01/01/1900', 'dd/MM/yyyy').toJSDate();
|
|
3011
|
+
/** Data maxima selecionavel (padrao: hoje + 1 ano). */
|
|
2987
3012
|
this.max = DateTime.now().startOf('day').plus({ years: 1 }).toJSDate();
|
|
3013
|
+
/** Datas especificas bloqueadas para selecao. */
|
|
2988
3014
|
this.disabledDates = [];
|
|
3015
|
+
/** Desabilita o campo. */
|
|
2989
3016
|
this.disabled = false;
|
|
3017
|
+
/** Mes exibido ao abrir o calendario quando o campo esta vazio (padrao: hoje). */
|
|
2990
3018
|
this.defaultDate = DateTime.now().toJSDate();
|
|
3019
|
+
/** Esconde a mensagem de erro de validacao exibida abaixo do campo. */
|
|
2991
3020
|
this.hiddenErrorMessage = false;
|
|
3021
|
+
/** Exibe tambem o seletor de hora. */
|
|
2992
3022
|
this.showTime = false;
|
|
3023
|
+
/** Com `showTime`: exibe tambem os segundos. */
|
|
2993
3024
|
this.showSeconds = false;
|
|
3025
|
+
/** Incremento dos minutos no seletor de hora. */
|
|
2994
3026
|
this.stepMinute = 1;
|
|
3027
|
+
/** Incremento das horas no seletor de hora. */
|
|
2995
3028
|
this.stepHour = 1;
|
|
3029
|
+
/** Incremento dos segundos no seletor de hora. */
|
|
2996
3030
|
this.stepSecond = 1;
|
|
3031
|
+
/** Exibe so o seletor de hora, sem o calendario. */
|
|
2997
3032
|
this.timeOnly = false;
|
|
3033
|
+
/** Formato da hora: `24` ou `12` (AM/PM). */
|
|
2998
3034
|
this.hourFormat = '24';
|
|
3035
|
+
/** Emitido quando o campo recebe foco. */
|
|
2999
3036
|
this.onFocus = new EventEmitter();
|
|
3037
|
+
/** Emitido quando o campo perde o foco. */
|
|
3000
3038
|
this.onBlur = new EventEmitter();
|
|
3039
|
+
/** Emitido a cada digitacao no campo (sem payload). */
|
|
3001
3040
|
this.onInput = new EventEmitter();
|
|
3041
|
+
/** Emitido ao escolher uma data no calendario, com o `Date` selecionado. */
|
|
3002
3042
|
this.onSelect = new EventEmitter();
|
|
3003
3043
|
this.keyFilter = '';
|
|
3004
3044
|
}
|
|
@@ -3073,13 +3113,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3073
3113
|
class CheckboxFieldComponent {
|
|
3074
3114
|
constructor() {
|
|
3075
3115
|
this.isRequired = false;
|
|
3116
|
+
/** Texto ao lado do checkbox (modo simples); clicar nele tambem marca/desmarca. */
|
|
3076
3117
|
this.label = '';
|
|
3118
|
+
/** Checkbox redondo em vez de quadrado. */
|
|
3077
3119
|
this.rounded = false;
|
|
3120
|
+
/** Tamanho do texto do label. */
|
|
3078
3121
|
this.labelSize = 'default';
|
|
3122
|
+
/** Valor sem FormControl; use com two-way binding: `[(value)]`. */
|
|
3079
3123
|
this.value = false;
|
|
3124
|
+
/** Liga o modo grupo: um checkbox por item de `options`, com o control guardando os itens marcados. */
|
|
3080
3125
|
this.groupName = '';
|
|
3126
|
+
/** Itens do modo grupo (`groupName`). */
|
|
3081
3127
|
this.options = null;
|
|
3128
|
+
/** Desabilita o checkbox (no modo com control, chama `control.disable()` ao iniciar). */
|
|
3082
3129
|
this.disabled = false;
|
|
3130
|
+
/** Emitido quando o valor muda no modo sem FormControl (two-way binding de `value`). */
|
|
3083
3131
|
this.valueChange = new EventEmitter();
|
|
3084
3132
|
}
|
|
3085
3133
|
ngOnInit() {
|
|
@@ -3111,11 +3159,11 @@ class CheckboxFieldComponent {
|
|
|
3111
3159
|
}
|
|
3112
3160
|
}
|
|
3113
3161
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CheckboxFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3114
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: CheckboxFieldComponent, isStandalone: false, selector: "vector-checkbox-field", inputs: { isRequired: "isRequired", control: "control", label: "label", rounded: "rounded", labelSize: "labelSize", value: "value", groupName: "groupName", options: "options", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"checkbox-container flex-wrap\">\n <ng-container *ngIf=\"control && groupName; else elseBlock\">\n <div class=\"checkbox-item mb-3 mr-3\" *ngFor=\"let option of options\">\n <p-checkbox\n [name]=\"groupName\"\n [formControl]=\"control\"\n [value]=\"option\"\n checkboxIcon=\"fas fa-check\"\n [class.rounded-checkbox]=\"rounded\"\n [inputId]=\"groupName + '-' + option.code\"\n ></p-checkbox>\n <label [for]=\"groupName + '-' + option.code\"> {{ option.name }}</label>\n </div>\n </ng-container>\n\n <ng-template #elseBlock>\n <p-checkbox\n *ngIf=\"control && !groupName\"\n [formControl]=\"control\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <p-checkbox\n *ngIf=\"!control && !groupName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"value = $event; valueChange.emit($event)\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <label\n *ngIf=\"label\"\n [class.large-label]=\"labelSize === 'large'\"\n [class.disabled-label]=\"disabled\"\n (click)=\"toggleValue()\"\n >{{ label }}\n <span class=\"red-label\" *ngIf=\"isRequired\"> (*)</span>\n </label>\n </ng-template>\n</div>\n", styles: [".checkbox-container{display:flex;align-items:
|
|
3162
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: CheckboxFieldComponent, isStandalone: false, selector: "vector-checkbox-field", inputs: { isRequired: "isRequired", control: "control", label: "label", rounded: "rounded", labelSize: "labelSize", value: "value", groupName: "groupName", options: "options", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"checkbox-container flex-wrap\">\n <ng-container *ngIf=\"control && groupName; else elseBlock\">\n <div class=\"checkbox-item mb-3 mr-3\" *ngFor=\"let option of options\">\n <p-checkbox\n [name]=\"groupName\"\n [formControl]=\"control\"\n [value]=\"option\"\n checkboxIcon=\"fas fa-check\"\n [class.rounded-checkbox]=\"rounded\"\n [inputId]=\"groupName + '-' + option.code\"\n ></p-checkbox>\n <label [for]=\"groupName + '-' + option.code\"> {{ option.name }}</label>\n </div>\n </ng-container>\n\n <ng-template #elseBlock>\n <p-checkbox\n *ngIf=\"control && !groupName\"\n [formControl]=\"control\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <p-checkbox\n *ngIf=\"!control && !groupName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"value = $event; valueChange.emit($event)\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <label\n *ngIf=\"label\"\n [class.large-label]=\"labelSize === 'large'\"\n [class.disabled-label]=\"disabled\"\n (click)=\"toggleValue()\"\n >{{ label }}\n <span class=\"red-label\" *ngIf=\"isRequired\"> (*)</span>\n </label>\n </ng-template>\n</div>\n", styles: [".checkbox-container{display:flex;align-items:end!important}.checkbox-container label{margin-left:10px;font-size:.875rem!important;font-weight:400!important}.checkbox-container .large-label{font-size:.875rem!important}.checkbox-container .disabled-label{color:#a5a6b0!important;cursor:not-allowed}.checkbox-container .checkbox-item{min-width:80px}.checkbox-container ::ng-deep .p-checkbox.p-disabled:not(.p-checkbox-checked) .p-checkbox-box{border-color:#efeff2!important;background:#fff!important}.checkbox-container ::ng-deep .rounded-checkbox .p-checkbox-icon{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "name", "disabled", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "inputStyle", "styleClass", "inputClass", "indeterminate", "size", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }] }); }
|
|
3115
3163
|
}
|
|
3116
3164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CheckboxFieldComponent, decorators: [{
|
|
3117
3165
|
type: Component,
|
|
3118
|
-
args: [{ standalone: false, selector: 'vector-checkbox-field', template: "<div class=\"checkbox-container flex-wrap\">\n <ng-container *ngIf=\"control && groupName; else elseBlock\">\n <div class=\"checkbox-item mb-3 mr-3\" *ngFor=\"let option of options\">\n <p-checkbox\n [name]=\"groupName\"\n [formControl]=\"control\"\n [value]=\"option\"\n checkboxIcon=\"fas fa-check\"\n [class.rounded-checkbox]=\"rounded\"\n [inputId]=\"groupName + '-' + option.code\"\n ></p-checkbox>\n <label [for]=\"groupName + '-' + option.code\"> {{ option.name }}</label>\n </div>\n </ng-container>\n\n <ng-template #elseBlock>\n <p-checkbox\n *ngIf=\"control && !groupName\"\n [formControl]=\"control\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <p-checkbox\n *ngIf=\"!control && !groupName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"value = $event; valueChange.emit($event)\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <label\n *ngIf=\"label\"\n [class.large-label]=\"labelSize === 'large'\"\n [class.disabled-label]=\"disabled\"\n (click)=\"toggleValue()\"\n >{{ label }}\n <span class=\"red-label\" *ngIf=\"isRequired\"> (*)</span>\n </label>\n </ng-template>\n</div>\n", styles: [".checkbox-container{display:flex;align-items:
|
|
3166
|
+
args: [{ standalone: false, selector: 'vector-checkbox-field', template: "<div class=\"checkbox-container flex-wrap\">\n <ng-container *ngIf=\"control && groupName; else elseBlock\">\n <div class=\"checkbox-item mb-3 mr-3\" *ngFor=\"let option of options\">\n <p-checkbox\n [name]=\"groupName\"\n [formControl]=\"control\"\n [value]=\"option\"\n checkboxIcon=\"fas fa-check\"\n [class.rounded-checkbox]=\"rounded\"\n [inputId]=\"groupName + '-' + option.code\"\n ></p-checkbox>\n <label [for]=\"groupName + '-' + option.code\"> {{ option.name }}</label>\n </div>\n </ng-container>\n\n <ng-template #elseBlock>\n <p-checkbox\n *ngIf=\"control && !groupName\"\n [formControl]=\"control\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <p-checkbox\n *ngIf=\"!control && !groupName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"value = $event; valueChange.emit($event)\"\n checkboxIcon=\"fas fa-check\"\n [binary]=\"true\"\n [class.rounded-checkbox]=\"rounded\"\n [disabled]=\"disabled\"\n ></p-checkbox>\n <label\n *ngIf=\"label\"\n [class.large-label]=\"labelSize === 'large'\"\n [class.disabled-label]=\"disabled\"\n (click)=\"toggleValue()\"\n >{{ label }}\n <span class=\"red-label\" *ngIf=\"isRequired\"> (*)</span>\n </label>\n </ng-template>\n</div>\n", styles: [".checkbox-container{display:flex;align-items:end!important}.checkbox-container label{margin-left:10px;font-size:.875rem!important;font-weight:400!important}.checkbox-container .large-label{font-size:.875rem!important}.checkbox-container .disabled-label{color:#a5a6b0!important;cursor:not-allowed}.checkbox-container .checkbox-item{min-width:80px}.checkbox-container ::ng-deep .p-checkbox.p-disabled:not(.p-checkbox-checked) .p-checkbox-box{border-color:#efeff2!important;background:#fff!important}.checkbox-container ::ng-deep .rounded-checkbox .p-checkbox-icon{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important}\n"] }]
|
|
3119
3167
|
}], ctorParameters: () => [], propDecorators: { isRequired: [{
|
|
3120
3168
|
type: Input
|
|
3121
3169
|
}], control: [{
|
|
@@ -3154,18 +3202,31 @@ var Locale;
|
|
|
3154
3202
|
|
|
3155
3203
|
class CurrencyFieldComponent {
|
|
3156
3204
|
constructor() {
|
|
3205
|
+
/** Valor minimo aceito. */
|
|
3157
3206
|
this.minValue = 0;
|
|
3207
|
+
/** Valor maximo aceito. */
|
|
3158
3208
|
this.maxValue = 999999999;
|
|
3209
|
+
/** Nao e' aplicado pelo template atual. */
|
|
3159
3210
|
this.placeholder = '';
|
|
3211
|
+
/** Maximo de casas decimais (o minimo e' sempre 2). */
|
|
3160
3212
|
this.numberOfDecimals = 2;
|
|
3213
|
+
/** Estilo com borda, com o simbolo da moeda dentro do campo. */
|
|
3161
3214
|
this.outlined = false;
|
|
3215
|
+
/** Bordas arredondadas e botao X que zera o valor. */
|
|
3162
3216
|
this.rounded = false;
|
|
3217
|
+
/** Digitacao estilo caixa eletronico: os digitos entram pela direita (1, 2, 3 -> 1,23). */
|
|
3163
3218
|
this.isBankingField = false;
|
|
3219
|
+
/** Classe CSS extra aplicada ao input. */
|
|
3164
3220
|
this.inputClassName = '';
|
|
3221
|
+
/** Locale da formatacao numerica (padrao `pt-BR`). */
|
|
3165
3222
|
this.localePrefix = Locale.BR;
|
|
3223
|
+
/** Simbolo da moeda exibido antes do valor (padrao `R$ `). */
|
|
3166
3224
|
this.currencyPrefix = Currency.BR;
|
|
3225
|
+
/** Desabilita o campo. */
|
|
3167
3226
|
this.disabled = false;
|
|
3227
|
+
/** Centraliza o valor digitado. */
|
|
3168
3228
|
this.centered = false;
|
|
3229
|
+
/** Emitido quando o campo perde o foco. */
|
|
3169
3230
|
this.onBlur = new EventEmitter();
|
|
3170
3231
|
}
|
|
3171
3232
|
ngAfterViewInit() {
|
|
@@ -3249,32 +3310,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3249
3310
|
|
|
3250
3311
|
class TextFieldComponent {
|
|
3251
3312
|
constructor() {
|
|
3313
|
+
/** Acrescenta `*` ao placeholder; a validacao continua sendo do FormControl (`Validators.required`). */
|
|
3252
3314
|
this.isRequired = false;
|
|
3315
|
+
/** Texto do campo, exibido como placeholder (nao ha label flutuante). */
|
|
3253
3316
|
this.label = '';
|
|
3317
|
+
/** Limite de caracteres, repassado ao atributo `maxlength` do input. */
|
|
3254
3318
|
this.maxlength = '';
|
|
3319
|
+
/** Oculta o texto digitado e exibe o icone de olho para alternar a visibilidade. */
|
|
3255
3320
|
this.isPassword = false;
|
|
3321
|
+
/** Aceita so numeros inteiros (com sinal). */
|
|
3256
3322
|
this.numeric = false;
|
|
3323
|
+
/** Aceita so numeros inteiros positivos. */
|
|
3257
3324
|
this.numericPositive = false;
|
|
3325
|
+
/** Aceita numeros com ponto e virgula (filtro `money` do PrimeNG). */
|
|
3258
3326
|
this.numericDotComma = false;
|
|
3327
|
+
/** Valida decimal com virgula e ate 2 casas (ex.: `10,50`). */
|
|
3259
3328
|
this.decimal = false;
|
|
3329
|
+
/** Aceita so letras (com acento) e espacos. */
|
|
3260
3330
|
this.onlyText = false;
|
|
3331
|
+
/** Bloqueia caracteres especiais; aceita letras, numeros e espacos. */
|
|
3261
3332
|
this.noSpecialCharacters = false;
|
|
3333
|
+
/** Aceita so letras e numeros, sem espacos. */
|
|
3262
3334
|
this.alphaNumeric = false;
|
|
3335
|
+
/** Aceita letras, numeros e espacos. */
|
|
3263
3336
|
this.alphaNumericAndWhitespace = false;
|
|
3337
|
+
/** Com mascara: limpa o campo no blur se o valor estiver incompleto. */
|
|
3264
3338
|
this.autoClear = true;
|
|
3339
|
+
/** Deixa o campo somente leitura (sem aparencia de desabilitado). */
|
|
3265
3340
|
this.readonly = false;
|
|
3341
|
+
/** Classe do icone exibido dentro do campo, a direita (ex.: `pi pi-search`). */
|
|
3266
3342
|
this.rightIcon = '';
|
|
3343
|
+
/** Centraliza o texto digitado. */
|
|
3267
3344
|
this.centered = false;
|
|
3345
|
+
/** Estado interno de `enableDocumentTypeChoice`; prefira o input publico. */
|
|
3268
3346
|
this._enableDocumentTypeChoice = false;
|
|
3347
|
+
/** Esconde a mensagem de erro de validacao exibida abaixo do campo. */
|
|
3269
3348
|
this.hiddenErrorMessage = false;
|
|
3349
|
+
/** Com mascara: caractere exibido nas posicoes ainda nao preenchidas. */
|
|
3270
3350
|
this.slotChar = '_';
|
|
3351
|
+
/** Nao e' aplicado pelo template: para desabilitar use `control.disable()`. */
|
|
3271
3352
|
this.disabled = false;
|
|
3353
|
+
/** Atributo `pattern` do HTML repassado ao input. */
|
|
3272
3354
|
this.pattern = '';
|
|
3355
|
+
/** Emitido no blur quando o valor mudou desde o ultimo blur, com o valor do control. */
|
|
3273
3356
|
this.blurEvent = new EventEmitter();
|
|
3357
|
+
/** Emitido a cada tecla digitada, com o texto atual do input. */
|
|
3274
3358
|
this.inputEvent = new EventEmitter();
|
|
3359
|
+
/** Emitido ao pressionar Enter (tambem dispara o blur). */
|
|
3275
3360
|
this.enterKeyPress = new EventEmitter();
|
|
3361
|
+
/** Emitido ao pressionar Backspace (tambem dispara o blur). */
|
|
3276
3362
|
this.backSpaceKeyPress = new EventEmitter();
|
|
3363
|
+
/** Emitido ao clicar no campo, com o texto atual do input. */
|
|
3277
3364
|
this.focusEvent = new EventEmitter();
|
|
3365
|
+
/** Emitido quando o tipo de documento muda (CPF/CNPJ), com o `ListItem` selecionado. */
|
|
3278
3366
|
this.onDocumentTypeChange = new EventEmitter();
|
|
3279
3367
|
this.isPasswordVisible = false;
|
|
3280
3368
|
this.validateOnly = false;
|
|
@@ -3294,6 +3382,7 @@ class TextFieldComponent {
|
|
|
3294
3382
|
this.subscription = new Subscription();
|
|
3295
3383
|
this.controlSubscription = new Subscription();
|
|
3296
3384
|
}
|
|
3385
|
+
/** Exibe o botao CPF/CNPJ que alterna a mascara de documento; a mascara inicial segue o tamanho do valor. */
|
|
3297
3386
|
set enableDocumentTypeChoice(value) {
|
|
3298
3387
|
this._enableDocumentTypeChoice = value;
|
|
3299
3388
|
this.handleDocumentTypeChange();
|
|
@@ -3301,6 +3390,7 @@ class TextFieldComponent {
|
|
|
3301
3390
|
get enableDocumentTypeChoice() {
|
|
3302
3391
|
return this._enableDocumentTypeChoice;
|
|
3303
3392
|
}
|
|
3393
|
+
/** FormControl do campo (obrigatorio). Desabilite por ele: `control.disable()`. */
|
|
3304
3394
|
set control(_control) {
|
|
3305
3395
|
this._control = _control;
|
|
3306
3396
|
if (this._enableDocumentTypeChoice) {
|
|
@@ -3513,10 +3603,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3513
3603
|
}] } });
|
|
3514
3604
|
|
|
3515
3605
|
class MultiselectFieldComponent {
|
|
3606
|
+
/** Substitui `options` pela lista informada (alternativa a `options` para listas vindas de busca externa). */
|
|
3516
3607
|
set pagedSugestion(_pagedSugestion) {
|
|
3517
3608
|
this._pagedSugestion = _pagedSugestion;
|
|
3518
3609
|
this.options = this.pagedSugestion || [];
|
|
3519
3610
|
}
|
|
3611
|
+
/** Opcoes com imagem/icone para `showFlags`; cada uma exige `imgSource`+`imgSize` ou `iconSource`+`iconSize`. */
|
|
3520
3612
|
set showFlagsOptions(value) {
|
|
3521
3613
|
if (!this.showFlags) {
|
|
3522
3614
|
throw new Error('showFlags is set to false. Setting showFlagsOptions is not allowed.');
|
|
@@ -3558,22 +3650,39 @@ class MultiselectFieldComponent {
|
|
|
3558
3650
|
}
|
|
3559
3651
|
constructor(renderer) {
|
|
3560
3652
|
this.renderer = renderer;
|
|
3653
|
+
/** Acrescenta `*` ao placeholder; a validacao continua sendo do FormControl. */
|
|
3561
3654
|
this.isRequired = false;
|
|
3655
|
+
/** Texto do campo, exibido como placeholder. */
|
|
3562
3656
|
this.label = '';
|
|
3657
|
+
/** Lista de opcoes (`{ name, code }`). */
|
|
3563
3658
|
this.options = [];
|
|
3659
|
+
/** Exibe a busca dentro do painel de opcoes. */
|
|
3564
3660
|
this.filter = false;
|
|
3661
|
+
/** Exibe o checkbox de selecionar todos no topo do painel. */
|
|
3565
3662
|
this.showSelectAllOption = true;
|
|
3663
|
+
/** Como os selecionados aparecem no campo: `comma` (texto separado por virgula) ou `chip`. */
|
|
3566
3664
|
this.display = 'comma';
|
|
3665
|
+
/** Com `filterVirtualScrool`: carrega mais itens ao rolar ate o fim do painel. */
|
|
3567
3666
|
this.paged = true;
|
|
3667
|
+
/** Desabilita o campo. */
|
|
3568
3668
|
this.disabled = false;
|
|
3669
|
+
/** Com `service`: quantidade minima de caracteres digitados na busca para consultar o back. */
|
|
3569
3670
|
this.minLengthToService = 0;
|
|
3671
|
+
/** Com `filterVirtualScrool`: faz a primeira busca ao iniciar. */
|
|
3570
3672
|
this.initialLoad = true;
|
|
3673
|
+
/** Liga a busca no back com scroll virtual (usa `service`, `paged` e `limitScrollPage`). */
|
|
3571
3674
|
this.filterVirtualScrool = false;
|
|
3675
|
+
/** Exibe o cabecalho do painel (selecionar todos e busca). */
|
|
3572
3676
|
this.showHeader = true;
|
|
3677
|
+
/** Renderiza cada opcao com imagem ou icone (bandeiras, logos); exige `showFlagsOptions`. */
|
|
3573
3678
|
this.showFlags = false;
|
|
3679
|
+
/** Itens por pagina na busca e no scroll virtual. */
|
|
3574
3680
|
this.limitScrollPage = 20;
|
|
3681
|
+
/** So aceita itens da lista retornada pela busca. */
|
|
3575
3682
|
this.forceSelection = true;
|
|
3683
|
+
/** Emitido quando a selecao muda, com o evento do PrimeNG (`value` traz os `code` selecionados). */
|
|
3576
3684
|
this.onChange = new EventEmitter();
|
|
3685
|
+
/** Emitido ao fechar o painel de opcoes. */
|
|
3577
3686
|
this.onClosePanel = new EventEmitter();
|
|
3578
3687
|
this.currentSearchQuery = '';
|
|
3579
3688
|
this.currentScrollPage = -1;
|
|
@@ -3821,10 +3930,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3821
3930
|
}] } });
|
|
3822
3931
|
|
|
3823
3932
|
class DropdownFieldComponent {
|
|
3933
|
+
/** Lista local de opcoes (`{ name, code }`); ignorada quando ha `service`. */
|
|
3824
3934
|
set options(_options) {
|
|
3825
3935
|
this._options = _options;
|
|
3826
3936
|
this.pagedSuggestions = this.options || [];
|
|
3827
3937
|
}
|
|
3938
|
+
/**
|
|
3939
|
+
* FormControl do campo (obrigatorio). O valor e' o `ListItem` selecionado; se receber so o `code`,
|
|
3940
|
+
* o componente troca pelo item correspondente (buscando em `options` ou via `service.getById`).
|
|
3941
|
+
*/
|
|
3828
3942
|
set control(_control) {
|
|
3829
3943
|
this._control = _control;
|
|
3830
3944
|
if (this.control) {
|
|
@@ -3847,17 +3961,29 @@ class DropdownFieldComponent {
|
|
|
3847
3961
|
}
|
|
3848
3962
|
constructor(renderer) {
|
|
3849
3963
|
this.renderer = renderer;
|
|
3964
|
+
/** Mostra cada opcao em duas linhas: `name` e, abaixo, o `code`. */
|
|
3850
3965
|
this.isNgContent = false;
|
|
3966
|
+
/** So aceita itens da lista; texto livre sem correspondencia marca o erro `itemNotFound`. */
|
|
3851
3967
|
this.forceSelection = true;
|
|
3968
|
+
/** Acrescenta `*` ao placeholder; a validacao continua sendo do FormControl. */
|
|
3852
3969
|
this.isRequired = false;
|
|
3970
|
+
/** Texto do campo, exibido como placeholder. */
|
|
3853
3971
|
this.label = '';
|
|
3972
|
+
/** Carrega mais itens ao rolar ate o fim do painel (scroll infinito). */
|
|
3854
3973
|
this.paged = true;
|
|
3974
|
+
/** Esconde a mensagem de erro de validacao exibida abaixo do campo. */
|
|
3855
3975
|
this.hiddenErrorMessage = false;
|
|
3976
|
+
/** Quantidade minima de caracteres digitados para disparar a busca. */
|
|
3856
3977
|
this.minLengthToService = 0;
|
|
3978
|
+
/** Faz a primeira busca ao iniciar, sem esperar o usuario digitar. */
|
|
3857
3979
|
this.initialLoad = true;
|
|
3980
|
+
/** Desabilita o campo (chama `control.disable()` ao iniciar). */
|
|
3858
3981
|
this.disabled = false;
|
|
3982
|
+
/** Itens por pagina na busca e no scroll infinito. */
|
|
3859
3983
|
this.limitScrollPage = 20;
|
|
3984
|
+
/** Emitido quando o campo recebe foco, com o evento do PrimeNG. */
|
|
3860
3985
|
this.onFocus = new EventEmitter();
|
|
3986
|
+
/** Emitido quando o valor muda pela digitacao, com o evento do PrimeNG. */
|
|
3861
3987
|
this.onChange = new EventEmitter();
|
|
3862
3988
|
this.pagedSuggestions = [];
|
|
3863
3989
|
this.unlistenAutocompleteVirtualScroll = () => { };
|
|
@@ -4158,6 +4284,7 @@ var FieldType;
|
|
|
4158
4284
|
FieldType[FieldType["MULTISELECT"] = 8] = "MULTISELECT";
|
|
4159
4285
|
})(FieldType || (FieldType = {}));
|
|
4160
4286
|
class FiltersComponent {
|
|
4287
|
+
/** Campos do filtro; cada `name` vira uma chave do objeto emitido em `onSearch`. */
|
|
4161
4288
|
set fields(_fields) {
|
|
4162
4289
|
const isFirstSet = !this._fields.length && _fields?.length;
|
|
4163
4290
|
this._fields = _fields;
|
|
@@ -4222,7 +4349,9 @@ class FiltersComponent {
|
|
|
4222
4349
|
}
|
|
4223
4350
|
constructor(activatedRoute) {
|
|
4224
4351
|
this.activatedRoute = activatedRoute;
|
|
4352
|
+
/** Emitido ao pesquisar, com os valores dos campos; tambem dispara ao montar se o formulario ja nascer valido. */
|
|
4225
4353
|
this.onSearch = new EventEmitter();
|
|
4354
|
+
/** Emitido sempre que o formulario e' montado a partir de `fields`. */
|
|
4226
4355
|
this.formBuilded = new EventEmitter();
|
|
4227
4356
|
this.fieldTypes = FieldType;
|
|
4228
4357
|
this.formGroup = new UntypedFormGroup({});
|
|
@@ -4342,6 +4471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
4342
4471
|
|
|
4343
4472
|
class DataTableComponent {
|
|
4344
4473
|
static { this.MENU_SCROLL_GRACE_MS = 250; }
|
|
4474
|
+
/** Linhas da pagina atual; itens com `selected: true` entram pre-selecionados e `actions` alimenta o menu da linha. */
|
|
4345
4475
|
set data(_data) {
|
|
4346
4476
|
this._data = _data;
|
|
4347
4477
|
this.selectedItems = this._data?.filter((item) => item.selected) || [];
|
|
@@ -4349,10 +4479,12 @@ class DataTableComponent {
|
|
|
4349
4479
|
get data() {
|
|
4350
4480
|
return this._data;
|
|
4351
4481
|
}
|
|
4482
|
+
/** Abas acima da tabela; a aba ativa vai no evento do `onLazyLoad` (`tab`) e e' emitida em `onTabSelected`. */
|
|
4352
4483
|
set tabs(_tabs) {
|
|
4353
4484
|
this._tabs = _tabs;
|
|
4354
4485
|
this._tabSelected = _tabs[0];
|
|
4355
4486
|
}
|
|
4487
|
+
/** Selecao por clique na linha: `single` ou `multiple`; outro valor desliga. */
|
|
4356
4488
|
set selectionMode(_selectionMode) {
|
|
4357
4489
|
switch (_selectionMode) {
|
|
4358
4490
|
case 'single':
|
|
@@ -4366,6 +4498,7 @@ class DataTableComponent {
|
|
|
4366
4498
|
break;
|
|
4367
4499
|
}
|
|
4368
4500
|
}
|
|
4501
|
+
/** Altura da area rolavel: `small` (300px, padrao), `medium` (500px), `large` (700px) ou `full`. */
|
|
4369
4502
|
set height(_height) {
|
|
4370
4503
|
switch (_height) {
|
|
4371
4504
|
case 'small':
|
|
@@ -4415,40 +4548,77 @@ class DataTableComponent {
|
|
|
4415
4548
|
}
|
|
4416
4549
|
constructor(cd) {
|
|
4417
4550
|
this.cd = cd;
|
|
4551
|
+
/** Colunas da tabela: `header`, `field` e `type` (`TableColumnType`) definem titulo, campo e renderizacao da celula. */
|
|
4418
4552
|
this.columns = [];
|
|
4419
4553
|
this._data = [];
|
|
4554
|
+
/** Exibe o botao de exportar Excel no cabecalho (emite `onExportExcel`). */
|
|
4420
4555
|
this.exportExcel = false;
|
|
4556
|
+
/** Exibe o botao de exportar PDF no cabecalho (emite `onExportPDF`). */
|
|
4421
4557
|
this.exportPDF = false;
|
|
4558
|
+
/** Total de registros no back, usado pelo paginador lazy. */
|
|
4422
4559
|
this.totalRecords = 0;
|
|
4560
|
+
/** Desabilita o checkbox de selecionar todos (com `selectionType: 'checkbox'`). */
|
|
4423
4561
|
this.disabledHeadercheckbox = false;
|
|
4562
|
+
/** Esconde o checkbox de selecionar todos (com `selectionType: 'checkbox'`). */
|
|
4424
4563
|
this.hideHeaderCheckbox = false;
|
|
4564
|
+
/** Esconde o texto "Mostrando X ate Y de Z registros" do paginador. */
|
|
4425
4565
|
this.hideCurrentPageReport = false;
|
|
4566
|
+
/** Campos de filtro exibidos acima da tabela; buscar dispara `onLazyLoad` com os valores. */
|
|
4426
4567
|
this.filters = [];
|
|
4568
|
+
/** Texto do botao de adicionar no cabecalho; vazio esconde o botao. Clique emite `onAdd`. */
|
|
4427
4569
|
this.addItemLabel = '';
|
|
4570
|
+
/** Paginacao lazy pelo back (padrao). Com `false`, sem paginador e a busca roda ao iniciar. */
|
|
4428
4571
|
this.pagination = true;
|
|
4572
|
+
/** Paginacao no front sobre todos os itens de `data` (sem lazy); a busca roda ao iniciar. */
|
|
4429
4573
|
this.virtualPagination = false;
|
|
4574
|
+
/** Exibe a coluna de acoes, com o menu montado a partir de `item.actions` (`MenuItem[]`). */
|
|
4430
4575
|
this.hasActions = true;
|
|
4576
|
+
/** Exibe uma coluna com o icone de expandir a linha. */
|
|
4431
4577
|
this.hasExpandableIcon = false;
|
|
4578
|
+
/** Titulo da coluna do icone de expandir (com `hasExpandableIcon`). */
|
|
4432
4579
|
this.addNameColumnExpand = '';
|
|
4580
|
+
/** Permite expandir a linha para mostrar o `expansionTemplate`. */
|
|
4433
4581
|
this.expandable = false;
|
|
4582
|
+
/** Campo que identifica a linha, usado na selecao e na expansao (padrao `id`). */
|
|
4434
4583
|
this.dataKey = 'id';
|
|
4584
|
+
/** Coluna de selecao: `checkbox` (varios) ou `radiobutton` (um); prevalece sobre `selectionMode`. */
|
|
4435
4585
|
this.selectionType = null;
|
|
4586
|
+
/** Exibe cards de saldo (R$) acima da tabela, com olho para mostrar/ocultar o valor. */
|
|
4436
4587
|
this.showLimitBalance = false;
|
|
4588
|
+
/** Exibe cards de saldo acima da tabela, sem ocultar o valor. */
|
|
4437
4589
|
this.showDataBalance = false;
|
|
4590
|
+
/** Saldos exibidos por `showLimitBalance`/`showDataBalance`. */
|
|
4438
4591
|
this.dataAccountBalance = [];
|
|
4592
|
+
/**
|
|
4593
|
+
* Emitido para carregar uma pagina (paginacao, ordenacao, busca dos filtros, troca de aba), com
|
|
4594
|
+
* `start`, `length`, `order`, `columns`, `tab` e os valores dos filtros. Responda atualizando `data` e `totalRecords`.
|
|
4595
|
+
*/
|
|
4439
4596
|
this.onLazyLoad = new EventEmitter();
|
|
4597
|
+
/** Nao e' emitido atualmente: use `onLazyLoad` (busca) ou `onFilterChanged` (cada campo). */
|
|
4440
4598
|
this.onFilter = new EventEmitter();
|
|
4599
|
+
/** Emitido no clique do botao de adicionar (`addItemLabel`). */
|
|
4441
4600
|
this.onAdd = new EventEmitter();
|
|
4601
|
+
/** Emitido no clique do botao de exportar Excel. */
|
|
4442
4602
|
this.onExportExcel = new EventEmitter();
|
|
4603
|
+
/** Emitido no clique do botao de exportar PDF. */
|
|
4443
4604
|
this.onExportPDF = new EventEmitter();
|
|
4605
|
+
/** Emitido quando a selecao muda, com a lista de linhas selecionadas. */
|
|
4444
4606
|
this.onSelectedRows = new EventEmitter();
|
|
4607
|
+
/** Emitido a cada mudanca de um campo de filtro (debounce de 300ms), com `{ field, value }`. */
|
|
4445
4608
|
this.onFilterChanged = new EventEmitter();
|
|
4609
|
+
/** Emitido ao trocar de aba, com o `ListItem` da aba ativa. */
|
|
4446
4610
|
this.onTabSelected = new EventEmitter();
|
|
4611
|
+
/** Emitido no clique da linha, com o item da linha. */
|
|
4447
4612
|
this.onExpandRow = new EventEmitter();
|
|
4613
|
+
/** Emitido ao terminar a edicao de uma celula editavel (`col.cellEdit`), com `{ item, field, value }`. */
|
|
4448
4614
|
this.onCellEdit = new EventEmitter();
|
|
4615
|
+
/** Emite `onLazyLoad` ja na primeira carga da tabela; por padrao a primeira carga e' ignorada. */
|
|
4449
4616
|
this.firstLazyLoad = false;
|
|
4617
|
+
/** Na paginacao/ordenacao, repassa o evento cru do PrimeNG em vez do payload `start/length/order/columns`. */
|
|
4450
4618
|
this.shouldLazyLoadWithoutFilter = false;
|
|
4619
|
+
/** Permite arrastar colunas (pelo cabecalho) e linhas (pela alca na primeira coluna) para reordenar. */
|
|
4451
4620
|
this.reorderableColumns = false;
|
|
4621
|
+
/** Ignora a primeira chamada de carga (util quando a tela ja traz os dados iniciais). */
|
|
4452
4622
|
this.disableInitialSearch = false;
|
|
4453
4623
|
this.selectedItems = [];
|
|
4454
4624
|
this._selectionMode = null;
|
|
@@ -4931,7 +5101,9 @@ class InputFileComponent {
|
|
|
4931
5101
|
this.uploadButtonCancelEnabled = false;
|
|
4932
5102
|
/** Habilita clique na badge do arquivo para abrir modal de preview (imagem ou PDF). Default: `false`. */
|
|
4933
5103
|
this.enableModalView = false;
|
|
5104
|
+
/** Emitido ao selecionar arquivos: objeto em `single`, lista completa em `multiple`. */
|
|
4934
5105
|
this.fileSelected = new EventEmitter();
|
|
5106
|
+
/** Emitido ao remover um arquivo ou cancelar a selecao. */
|
|
4935
5107
|
this.fileRemoved = new EventEmitter();
|
|
4936
5108
|
this.internalSending = false;
|
|
4937
5109
|
this.isModalViewOpen = false;
|
|
@@ -6138,15 +6310,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
6138
6310
|
|
|
6139
6311
|
class DrawerComponent {
|
|
6140
6312
|
constructor() {
|
|
6313
|
+
/** Abre/fecha o drawer; use com two-way binding: `[(visible)]`. */
|
|
6141
6314
|
this.visible = false;
|
|
6315
|
+
/** Emitido quando o drawer abre ou fecha (two-way binding de `visible`). */
|
|
6142
6316
|
this.visibleChange = new EventEmitter();
|
|
6317
|
+
/** Lado da tela de onde o drawer surge. */
|
|
6143
6318
|
this.position = 'right';
|
|
6319
|
+
/** Estilos do painel, no formato do `ngStyle` (ex.: `{ width: '480px' }`). */
|
|
6144
6320
|
this.style = {};
|
|
6321
|
+
/** Classe CSS extra aplicada ao painel. */
|
|
6145
6322
|
this.styleClass = '';
|
|
6323
|
+
/** Escurece e bloqueia o fundo enquanto o drawer esta aberto. */
|
|
6146
6324
|
this.modal = true;
|
|
6325
|
+
/** Fecha ao clicar no fundo escurecido (com `modal`). */
|
|
6147
6326
|
this.dismissible = true;
|
|
6327
|
+
/** Exibe o X de fechar no cabecalho. */
|
|
6148
6328
|
this.showCloseIcon = true;
|
|
6329
|
+
/** Emitido depois que o drawer fecha. */
|
|
6149
6330
|
this.onHide = new EventEmitter();
|
|
6331
|
+
/** Emitido depois que o drawer abre. */
|
|
6150
6332
|
this.onShow = new EventEmitter();
|
|
6151
6333
|
}
|
|
6152
6334
|
onVisibleChange(value) {
|
|
@@ -6239,6 +6421,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
6239
6421
|
class GenericModalComponent {
|
|
6240
6422
|
constructor(router) {
|
|
6241
6423
|
this.router = router;
|
|
6424
|
+
/**
|
|
6425
|
+
* Conteudo do modal: icone (`fileIcon`, nome de um svg em `assets/images`; a lib traz `alert_icon`, `check_icon`,
|
|
6426
|
+
* `emoji_flashing_icon` e `watch_icon`), titulo, paragrafos (aceitam HTML)
|
|
6427
|
+
* e botoes. Os botoes so chamam `clickFunction`: para fechar, faca `display = false` dentro dele.
|
|
6428
|
+
*/
|
|
6242
6429
|
this.modalMessage = {
|
|
6243
6430
|
fileIcon: 'alert_icon',
|
|
6244
6431
|
title: '',
|
|
@@ -6246,13 +6433,21 @@ class GenericModalComponent {
|
|
|
6246
6433
|
confirmButton: { label: 'Confirmar', clickFunction: () => { } },
|
|
6247
6434
|
cancelButton: { label: 'Voltar', clickFunction: () => { } },
|
|
6248
6435
|
};
|
|
6436
|
+
/** Exibe o X de fechar no canto do modal. */
|
|
6249
6437
|
this.isClosable = true;
|
|
6438
|
+
/** Esconde a linha de botoes (confirmar/cancelar). */
|
|
6250
6439
|
this.hiddenActions = false;
|
|
6440
|
+
/** Texto de um botao extra que navega para `linkUrl`; vazio esconde o botao. */
|
|
6251
6441
|
this.linkLabel = '';
|
|
6442
|
+
/** Rota do Angular aberta pelo botao de `linkLabel`. */
|
|
6252
6443
|
this.linkUrl = '';
|
|
6444
|
+
/** Largura maxima do modal (ex.: `600px`); o padrao e' 400px. */
|
|
6253
6445
|
this.maxWidth = '';
|
|
6446
|
+
/** Valor de `line-break` aplicado ao conteudo (ex.: `anywhere` para quebrar textos longos). */
|
|
6254
6447
|
this.lineBreak = '';
|
|
6448
|
+
/** Emitido quando o modal fecha (two-way binding de `display`). */
|
|
6255
6449
|
this.displayChange = new EventEmitter();
|
|
6450
|
+
/** Emitido quando o modal fecha pelo X ou ao ser escondido. */
|
|
6256
6451
|
this.onCloseModal = new EventEmitter();
|
|
6257
6452
|
}
|
|
6258
6453
|
ngOnInit() { }
|
|
@@ -7473,5 +7668,5 @@ const getSelectedCrudItemResolver = (routeSnapshot) => {
|
|
|
7473
7668
|
* Generated bundle index. Do not edit.
|
|
7474
7669
|
*/
|
|
7475
7670
|
|
|
7476
|
-
export { APP_NAME, AccordionComponent, AccordionModule, AnalyticsService, AppName, AuthService, BadgeComponent, BadgeModule, BooleanType, BreadcrumbComponent, BreadcrumbModule, BreadcrumbService, ButtonComponent, CalendarComponent, CheckboxFieldComponent, CpfCnpjValidator, CrudBaseComponent, CrudBaseService, CrudFooterComponent, CrudHeaderComponent, CrudHeaderModule, CrudHistory, CrudHistoryComponent, CrudHistoryModule, CrudMode, CurrencyBrlPipe, CurrencyFieldComponent, DataTableComponent, DocumentType, DrawerComponent, DrawerModule, DropdownFieldComponent, ENVIRONMENT, EnumService, ErrorMessageService, FieldErrorMessageComponent, FieldType, FieldsModule, FileUtil, FiltersComponent, FooterModule, FormatDocumentPipe, GenericErrorModalComponent, GenericErrorModalModule, GenericModalComponent, GenericModalModule, GeolocationService, HttpInterceptorProvider, INPUT_FILE_ACCEPT_EXTENSIONS, InputFileComponent, InputNumberFieldComponent, InputOtpComponent, InputSwitchFieldComponent, LoadingService, MENU_OPTIONS, MaskPipe, MaskUtil, MenuComponent, MenuModule, MenuService, MessageStatus, ModalService, MultiselectFieldComponent, NotHiddenPipe, NotificationsService, ObjectUtil, OnlyActivePipe, PanelComponent, PanelModule, PercentageFieldComponent, PipesModule, ProfileModuleActionType, ProfileModuleType, ProfileService, ProfileTypeEnum, RadioButtonFieldComponent, RangeValueComponent, RemoveLastChildPipe, Role, ScoreComponent, ScoreModule, SearchFieldComponent, SelectButtonFieldComponent, SelectionType, SnackbarComponent, SnackbarModule, Status, StepperComponent, StepperModule, StorageService, StringUtil, SubMenusListComponent, TableColumnType, TextFieldComponent, TextareaFieldComponent, TopBarComponent, TopBarModule, UnreadNotificationsPipe, ValidationUtil, VectorPreset, View, WindowUtil, createUploadMultipleForm, createUploadSingleForm, crudListHasItemsGuard, getSelectedCrudItemResolver, getTokenByGuidGuard, hasPermissionGuard, provideVectorPrimeNG, roleGuard, tokenIsPresentGuard };
|
|
7671
|
+
export { APP_NAME, AccordionComponent, AccordionModule, AnalyticsService, AppName, AuthService, BadgeComponent, BadgeModule, BooleanType, BreadcrumbComponent, BreadcrumbModule, BreadcrumbService, ButtonComponent, CalendarComponent, CheckboxFieldComponent, CpfCnpjValidator, CrudBaseComponent, CrudBaseService, CrudFooterComponent, CrudHeaderComponent, CrudHeaderModule, CrudHistory, CrudHistoryComponent, CrudHistoryModule, CrudMode, CurrencyBrlPipe, CurrencyFieldComponent, CustomHeaderDirective, DataTableComponent, DocumentType, DrawerComponent, DrawerModule, DropdownFieldComponent, ENVIRONMENT, EnumService, ErrorMessageService, FieldErrorMessageComponent, FieldType, FieldsModule, FileUtil, FiltersComponent, FooterModule, FormatDocumentPipe, GenericErrorModalComponent, GenericErrorModalModule, GenericModalComponent, GenericModalModule, GeolocationService, HttpInterceptorProvider, INPUT_FILE_ACCEPT_EXTENSIONS, InputFileComponent, InputNumberFieldComponent, InputOtpComponent, InputSwitchFieldComponent, LoadingService, MENU_OPTIONS, MaskPipe, MaskUtil, MenuComponent, MenuModule, MenuService, MessageStatus, ModalService, MultiselectFieldComponent, NotHiddenPipe, NotificationsService, ObjectUtil, OnlyActivePipe, PanelComponent, PanelModule, PercentageFieldComponent, PipesModule, ProfileModuleActionType, ProfileModuleType, ProfileService, ProfileTypeEnum, RadioButtonFieldComponent, RangeValueComponent, RemoveLastChildPipe, Role, ScoreComponent, ScoreModule, SearchFieldComponent, SelectButtonFieldComponent, SelectionType, SnackbarComponent, SnackbarModule, Status, StepperComponent, StepperModule, StorageService, StringUtil, SubMenusListComponent, TableColumnType, TextFieldComponent, TextareaFieldComponent, TopBarComponent, TopBarModule, UnreadNotificationsPipe, ValidationUtil, VectorPreset, View, WindowUtil, createUploadMultipleForm, createUploadSingleForm, crudListHasItemsGuard, getSelectedCrudItemResolver, getTokenByGuidGuard, hasPermissionGuard, provideVectorPrimeNG, roleGuard, tokenIsPresentGuard };
|
|
7477
7672
|
//# sourceMappingURL=ngx-vector-components.mjs.map
|