keevo-components 0.6.2 → 0.6.4
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/esm2020/lib/api/modules/primeng.module.mjs +7 -3
- package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +3 -3
- package/esm2020/lib/table/table.component.mjs +6 -1
- package/fesm2015/keevo-components.mjs +13 -4
- package/fesm2015/keevo-components.mjs.map +1 -1
- package/fesm2020/keevo-components.mjs +13 -4
- package/fesm2020/keevo-components.mjs.map +1 -1
- package/lib/api/modules/primeng.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -64,6 +64,7 @@ import { SplitButtonModule } from 'primeng/splitbutton';
|
|
|
64
64
|
import { StepsModule } from 'primeng/steps';
|
|
65
65
|
import { ToastModule } from 'primeng/toast';
|
|
66
66
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
67
|
+
import { OverlayModule } from 'primeng/overlay';
|
|
67
68
|
|
|
68
69
|
class BaseComponent {
|
|
69
70
|
constructor() {
|
|
@@ -399,10 +400,10 @@ class DropdownComponent extends BaseComponentDropDown {
|
|
|
399
400
|
}
|
|
400
401
|
}
|
|
401
402
|
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, deps: [{ token: ComponentService }, { token: i2$1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
402
|
-
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DropdownComponent, selector: "kv-dropdown", providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n\r\n <p-dropdown\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [filter]=\"filter\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [options]=\"
|
|
403
|
+
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DropdownComponent, selector: "kv-dropdown", providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n\r\n <p-dropdown\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [filter]=\"filter\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [options]=\"options\"\r\n [optionLabel]=\"optionLabel\"\r\n [optionValue]=\"optionValue\"\r\n [showClear]=\"showClear\"\r\n [lazy]=\"true\"\r\n scrollHeight=\"100px\"\r\n (onBlur)=\"onInputBlur($event)\"\r\n (onClick)=\"onInputClick($event)\"\r\n (onChange)=\"selectionValue($event)\">\r\n\r\n <ng-template *ngIf=\"addButton\" pTemplate=\"footer\">\r\n <p-divider></p-divider>\r\n <div class=\"flex flex-wrap card-container p-1\">\r\n <div class=\"flex justify-content-center\">\r\n <button\r\n pButton\r\n label=\"Incluir\"\r\n pTooltip=\"Clique aqui para incluir um novo registro\"\r\n tooltipPosition=\"bottom\"\r\n icon=\"pi pi-plus\"\r\n class=\"p-button-rounded p-button-success mr-2\"\r\n (click)=\"addClick($event)\"></button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </p-dropdown>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.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: i6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i8.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: ["styleClass", "style", "layout", "type", "align"] }, { kind: "component", type: i10.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "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", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
|
|
403
404
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
404
405
|
type: Component,
|
|
405
|
-
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span class=\"p-float-label\">\r\n\r\n <p-dropdown\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [filter]=\"filter\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [options]=\"
|
|
406
|
+
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span class=\"p-float-label\">\r\n\r\n <p-dropdown\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [filter]=\"filter\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [options]=\"options\"\r\n [optionLabel]=\"optionLabel\"\r\n [optionValue]=\"optionValue\"\r\n [showClear]=\"showClear\"\r\n [lazy]=\"true\"\r\n scrollHeight=\"100px\"\r\n (onBlur)=\"onInputBlur($event)\"\r\n (onClick)=\"onInputClick($event)\"\r\n (onChange)=\"selectionValue($event)\">\r\n\r\n <ng-template *ngIf=\"addButton\" pTemplate=\"footer\">\r\n <p-divider></p-divider>\r\n <div class=\"flex flex-wrap card-container p-1\">\r\n <div class=\"flex justify-content-center\">\r\n <button\r\n pButton\r\n label=\"Incluir\"\r\n pTooltip=\"Clique aqui para incluir um novo registro\"\r\n tooltipPosition=\"bottom\"\r\n icon=\"pi pi-plus\"\r\n class=\"p-button-rounded p-button-success mr-2\"\r\n (click)=\"addClick($event)\"></button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </p-dropdown>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}\n"] }]
|
|
406
407
|
}], ctorParameters: function () { return [{ type: ComponentService }, { type: i2$1.DialogService }]; } });
|
|
407
408
|
|
|
408
409
|
class InputCalendarComponent extends BaseComponentInput {
|
|
@@ -873,10 +874,14 @@ class TableComponent {
|
|
|
873
874
|
table.filterGlobal(event.target.value, 'contains');
|
|
874
875
|
}
|
|
875
876
|
paginate(event) {
|
|
877
|
+
console.log(event, 'oi');
|
|
876
878
|
if (event) {
|
|
877
879
|
let paginaInicial = ((event?.first > 0) ? (event.first / event.rows) : event.first) + 1;
|
|
878
880
|
let termoPesquisa = '';
|
|
879
881
|
let ordenacao = '';
|
|
882
|
+
console.log(paginaInicial, 'oi');
|
|
883
|
+
console.log(termoPesquisa, 'oi');
|
|
884
|
+
console.log(ordenacao, 'oi');
|
|
880
885
|
if (event.globalFilter)
|
|
881
886
|
termoPesquisa = event.globalFilter;
|
|
882
887
|
if (event.sortField) {
|
|
@@ -888,6 +893,7 @@ class TableComponent {
|
|
|
888
893
|
termoPesquisa: termoPesquisa,
|
|
889
894
|
ordenacao: ordenacao
|
|
890
895
|
};
|
|
896
|
+
console.log(objeto);
|
|
891
897
|
this.onPaginate.emit(objeto);
|
|
892
898
|
}
|
|
893
899
|
}
|
|
@@ -1020,7 +1026,8 @@ PrimeNgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
1020
1026
|
TableModule,
|
|
1021
1027
|
ToastModule,
|
|
1022
1028
|
ToolbarModule,
|
|
1023
|
-
TooltipModule
|
|
1029
|
+
TooltipModule,
|
|
1030
|
+
OverlayModule] });
|
|
1024
1031
|
PrimeNgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PrimeNgModule, providers: [
|
|
1025
1032
|
ConfirmationService,
|
|
1026
1033
|
DialogService,
|
|
@@ -1066,7 +1073,8 @@ PrimeNgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
1066
1073
|
TableModule,
|
|
1067
1074
|
ToastModule,
|
|
1068
1075
|
ToolbarModule,
|
|
1069
|
-
TooltipModule
|
|
1076
|
+
TooltipModule,
|
|
1077
|
+
OverlayModule] });
|
|
1070
1078
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PrimeNgModule, decorators: [{
|
|
1071
1079
|
type: NgModule,
|
|
1072
1080
|
args: [{
|
|
@@ -1111,6 +1119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
1111
1119
|
ToastModule,
|
|
1112
1120
|
ToolbarModule,
|
|
1113
1121
|
TooltipModule,
|
|
1122
|
+
OverlayModule
|
|
1114
1123
|
],
|
|
1115
1124
|
providers: [
|
|
1116
1125
|
ConfirmationService,
|