keevo-components 1.5.140 → 1.5.142
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/README.md +24 -24
- package/esm2020/keevo-components.mjs +4 -4
- package/esm2020/lib/api/base-components/base-component-button.mjs +36 -36
- package/esm2020/lib/api/base-components/base-component-chart.mjs +92 -92
- package/esm2020/lib/api/base-components/base-component-crud-form.mjs +278 -278
- package/esm2020/lib/api/base-components/base-component-crud-list.mjs +67 -67
- package/esm2020/lib/api/base-components/base-component-crud.mjs +65 -65
- package/esm2020/lib/api/base-components/base-component-dropdown.mjs +161 -161
- package/esm2020/lib/api/base-components/base-component-input.mjs +93 -93
- package/esm2020/lib/api/base-components/base-component-multi-select.mjs +128 -128
- package/esm2020/lib/api/base-components/base-component.mjs +49 -49
- package/esm2020/lib/api/components/chart/chart.config.mjs +2 -2
- package/esm2020/lib/api/components/chart/chart.model.mjs +2 -2
- package/esm2020/lib/api/components/chart/orchart.config.mjs +2 -2
- package/esm2020/lib/api/components/chart/orchart.item.mjs +2 -2
- package/esm2020/lib/api/components/dropdown/filtro.combo.mjs +2 -2
- package/esm2020/lib/api/components/error/error.component.mjs +26 -26
- package/esm2020/lib/api/components/error/kverror.module.mjs +35 -35
- package/esm2020/lib/api/components/table/action-item.mjs +2 -2
- package/esm2020/lib/api/components/table/kv-menuitem.mjs +3 -3
- package/esm2020/lib/api/components/table/table.config.column.mjs +2 -2
- package/esm2020/lib/api/components/table/table.config.mjs +2 -2
- package/esm2020/lib/api/components/table/table.paginate.mjs +9 -9
- package/esm2020/lib/api/helpers/component-providers.mjs +16 -16
- package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -23
- package/esm2020/lib/api/models/menu/master.model.mjs +2 -2
- package/esm2020/lib/api/models/menu/menu.model.mjs +2 -2
- package/esm2020/lib/api/models/menu/menucompleto.model.mjs +2 -2
- package/esm2020/lib/api/models/menu/sistemamenu.model.mjs +2 -2
- package/esm2020/lib/api/modules/primeng.module.mjs +247 -247
- package/esm2020/lib/api/services/base.api.service.mjs +74 -0
- package/esm2020/lib/api/services/component.service.mjs +27 -27
- package/esm2020/lib/api/services/form.service.mjs +102 -102
- package/esm2020/lib/api/services/imagens.service.mjs +22 -22
- package/esm2020/lib/api/services/notification.service.mjs +67 -67
- package/esm2020/lib/api/services/object.service.mjs +26 -26
- package/esm2020/lib/buttons/button-personalize/button-personalize.component.mjs +17 -17
- package/esm2020/lib/buttons/button-popup/button-popup.component.mjs +30 -0
- package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +17 -17
- package/esm2020/lib/buttons/button-success/button-success.component.mjs +17 -17
- package/esm2020/lib/buttons/kvbutton.module.mjs +39 -34
- package/esm2020/lib/chart/chart.component.mjs +145 -145
- package/esm2020/lib/chart/kvchart.module.mjs +32 -32
- package/esm2020/lib/directives/template.directive.mjs +24 -24
- package/esm2020/lib/inputs/check/check.component.mjs +26 -26
- package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +36 -36
- package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +88 -88
- package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +22 -22
- package/esm2020/lib/inputs/input-number/input-number.component.mjs +56 -56
- package/esm2020/lib/inputs/input-password/input-password.component.mjs +32 -32
- package/esm2020/lib/inputs/input-text/input-text.component.mjs +20 -20
- package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +37 -37
- package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +42 -42
- package/esm2020/lib/inputs/input-time/input-time.component.mjs +23 -23
- package/esm2020/lib/inputs/kvinputs.module.mjs +99 -99
- package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +37 -37
- package/esm2020/lib/inputs/radio-group/radio-group.component.mjs +49 -49
- package/esm2020/lib/inputs/switch/switch.component.mjs +32 -32
- package/esm2020/lib/keevo-components.module.mjs +91 -91
- package/esm2020/lib/login/kvlogin.module.mjs +47 -47
- package/esm2020/lib/login/login.component.mjs +38 -38
- package/esm2020/lib/menu/kvmenu.module.mjs +43 -43
- package/esm2020/lib/menu/menu.component.mjs +212 -212
- package/esm2020/lib/orgchart/orgchart.component.mjs +100 -100
- package/esm2020/lib/orgchart/orgchart.module.mjs +24 -24
- package/esm2020/lib/picklist/kvpicklist.module.mjs +32 -32
- package/esm2020/lib/picklist/picklist.component.mjs +48 -48
- package/esm2020/lib/pipes/codigofile.pipe.mjs +19 -19
- package/esm2020/lib/pipes/cpfcnpj.pipe.mjs +25 -25
- package/esm2020/lib/pipes/pipes.module.mjs +34 -34
- package/esm2020/lib/pipes/telefone.pipe.mjs +45 -45
- package/esm2020/lib/table/kvtable.module.mjs +32 -32
- package/esm2020/lib/table/table.component.mjs +476 -476
- package/esm2020/lib/tree-table/kv-treetable.component.mjs +290 -290
- package/esm2020/lib/tree-table/kv-treetable.module.mjs +32 -32
- package/esm2020/lib/tree-view/kvtree-view.module.mjs +28 -28
- package/esm2020/lib/tree-view/tree-view.component.mjs +29 -29
- package/esm2020/lib/workspace/kvworkspace.module.mjs +47 -47
- package/esm2020/lib/workspace/workspace.component.mjs +77 -77
- package/esm2020/public-api.mjs +124 -70
- package/fesm2015/keevo-components.mjs +3838 -3737
- package/fesm2015/keevo-components.mjs.map +1 -1
- package/fesm2020/keevo-components.mjs +3829 -3728
- package/fesm2020/keevo-components.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/api/base-components/base-component-button.d.ts +14 -14
- package/lib/api/base-components/base-component-chart.d.ts +40 -40
- package/lib/api/base-components/base-component-crud-form.d.ts +134 -134
- package/lib/api/base-components/base-component-crud-list.d.ts +63 -63
- package/lib/api/base-components/base-component-crud.d.ts +36 -36
- package/lib/api/base-components/base-component-dropdown.d.ts +42 -42
- package/lib/api/base-components/base-component-input.d.ts +31 -31
- package/lib/api/base-components/base-component-multi-select.d.ts +35 -35
- package/lib/api/base-components/base-component.d.ts +21 -21
- package/lib/api/components/chart/chart.config.d.ts +11 -11
- package/lib/api/components/chart/chart.model.d.ts +9 -9
- package/lib/api/components/chart/orchart.config.d.ts +35 -35
- package/lib/api/components/chart/orchart.item.d.ts +26 -26
- package/lib/api/components/dropdown/filtro.combo.d.ts +4 -4
- package/lib/api/components/error/error.component.d.ts +12 -12
- package/lib/api/components/error/kverror.module.d.ts +10 -10
- package/lib/api/components/table/action-item.d.ts +5 -5
- package/lib/api/components/table/kv-menuitem.d.ts +9 -9
- package/lib/api/components/table/table.config.column.d.ts +21 -21
- package/lib/api/components/table/table.config.d.ts +17 -17
- package/lib/api/components/table/table.paginate.d.ts +6 -6
- package/lib/api/helpers/component-providers.d.ts +2 -2
- package/lib/api/helpers/translate-primeng.d.ts +4 -4
- package/lib/api/models/menu/master.model.d.ts +6 -6
- package/lib/api/models/menu/menu.model.d.ts +10 -10
- package/lib/api/models/menu/menucompleto.model.d.ts +6 -6
- package/lib/api/models/menu/sistemamenu.model.d.ts +8 -8
- package/lib/api/modules/primeng.module.d.ts +60 -60
- package/lib/api/services/base.api.service.d.ts +25 -0
- package/lib/api/services/component.service.d.ts +11 -11
- package/lib/api/services/form.service.d.ts +27 -27
- package/lib/api/services/imagens.service.d.ts +8 -8
- package/lib/api/services/notification.service.d.ts +25 -25
- package/lib/api/services/object.service.d.ts +8 -8
- package/lib/buttons/button-personalize/button-personalize.component.d.ts +7 -7
- package/lib/buttons/button-popup/button-popup.component.d.ts +13 -0
- package/lib/buttons/button-secondary/button-secondary.component.d.ts +7 -7
- package/lib/buttons/button-success/button-success.component.d.ts +7 -7
- package/lib/buttons/kvbutton.module.d.ts +11 -10
- package/lib/chart/chart.component.d.ts +56 -56
- package/lib/chart/kvchart.module.d.ts +10 -10
- package/lib/directives/template.directive.d.ts +11 -11
- package/lib/inputs/check/check.component.d.ts +11 -11
- package/lib/inputs/dropdown/dropdown.component.d.ts +14 -14
- package/lib/inputs/input-calendar/input-calendar.component.d.ts +27 -27
- package/lib/inputs/input-mask/input-mask.component.d.ts +10 -10
- package/lib/inputs/input-number/input-number.component.d.ts +18 -18
- package/lib/inputs/input-password/input-password.component.d.ts +13 -13
- package/lib/inputs/input-text/input-text.component.d.ts +9 -9
- package/lib/inputs/input-text-checkbox/input-text-checkbox.component.d.ts +15 -15
- package/lib/inputs/input-textarea/input-textarea.component.d.ts +16 -16
- package/lib/inputs/input-time/input-time.component.d.ts +10 -10
- package/lib/inputs/kvinputs.module.d.ts +23 -23
- package/lib/inputs/multi-select/multi-select.component.d.ts +12 -12
- package/lib/inputs/radio-group/radio-group.component.d.ts +17 -17
- package/lib/inputs/switch/switch.component.d.ts +13 -13
- package/lib/keevo-components.module.d.ts +17 -17
- package/lib/login/kvlogin.module.d.ts +13 -13
- package/lib/login/login.component.d.ts +17 -17
- package/lib/menu/kvmenu.module.d.ts +12 -12
- package/lib/menu/menu.component.d.ts +67 -67
- package/lib/orgchart/orgchart.component.d.ts +27 -27
- package/lib/orgchart/orgchart.module.d.ts +9 -9
- package/lib/picklist/kvpicklist.module.d.ts +10 -10
- package/lib/picklist/picklist.component.d.ts +20 -20
- package/lib/pipes/codigofile.pipe.d.ts +7 -7
- package/lib/pipes/cpfcnpj.pipe.d.ts +7 -7
- package/lib/pipes/pipes.module.d.ts +10 -10
- package/lib/pipes/telefone.pipe.d.ts +7 -7
- package/lib/table/kvtable.module.d.ts +10 -10
- package/lib/table/table.component.d.ts +103 -103
- package/lib/tree-table/kv-treetable.component.d.ts +69 -69
- package/lib/tree-table/kv-treetable.module.d.ts +11 -11
- package/lib/tree-view/kvtree-view.module.d.ts +9 -9
- package/lib/tree-view/tree-view.component.d.ts +14 -14
- package/lib/workspace/kvworkspace.module.d.ts +13 -13
- package/lib/workspace/workspace.component.d.ts +28 -28
- package/package.json +1 -1
- package/public-api.d.ts +120 -66
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
-
import { BaseComponentDropDown } from '../../api/base-components/base-component-dropdown';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../api/services/component.service";
|
|
6
|
-
import * as i2 from "primeng/dynamicdialog";
|
|
7
|
-
import * as i3 from "@angular/common";
|
|
8
|
-
import * as i4 from "@angular/forms";
|
|
9
|
-
import * as i5 from "../../api/components/error/error.component";
|
|
10
|
-
import * as i6 from "primeng/api";
|
|
11
|
-
import * as i7 from "primeng/button";
|
|
12
|
-
import * as i8 from "primeng/tooltip";
|
|
13
|
-
import * as i9 from "primeng/divider";
|
|
14
|
-
import * as i10 from "primeng/dropdown";
|
|
15
|
-
export class DropdownComponent extends BaseComponentDropDown {
|
|
16
|
-
constructor(componentService, dialogService) {
|
|
17
|
-
super(componentService, dialogService);
|
|
18
|
-
}
|
|
19
|
-
ngOnInit() {
|
|
20
|
-
if (this.dropDowValue)
|
|
21
|
-
this.value = this.dropDowValue;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, deps: [{ token: i1.ComponentService }, { token: i2.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DropdownComponent, selector: "kv-dropdown", inputs: { dropDowValue: "dropDowValue", itemTemplate: "itemTemplate", selectedItemTemplate: "selectedItemTemplate" }, providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span class=\"p-float-label\">\
|
|
29
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }, { type: i2.DialogService }]; }, propDecorators: { dropDowValue: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], itemTemplate: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], selectedItemTemplate: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}] } });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
+
import { BaseComponentDropDown } from '../../api/base-components/base-component-dropdown';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../api/services/component.service";
|
|
6
|
+
import * as i2 from "primeng/dynamicdialog";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
import * as i4 from "@angular/forms";
|
|
9
|
+
import * as i5 from "../../api/components/error/error.component";
|
|
10
|
+
import * as i6 from "primeng/api";
|
|
11
|
+
import * as i7 from "primeng/button";
|
|
12
|
+
import * as i8 from "primeng/tooltip";
|
|
13
|
+
import * as i9 from "primeng/divider";
|
|
14
|
+
import * as i10 from "primeng/dropdown";
|
|
15
|
+
export class DropdownComponent extends BaseComponentDropDown {
|
|
16
|
+
constructor(componentService, dialogService) {
|
|
17
|
+
super(componentService, dialogService);
|
|
18
|
+
}
|
|
19
|
+
ngOnInit() {
|
|
20
|
+
if (this.dropDowValue)
|
|
21
|
+
this.value = this.dropDowValue;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, deps: [{ token: i1.ComponentService }, { token: i2.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DropdownComponent, selector: "kv-dropdown", inputs: { dropDowValue: "dropDowValue", itemTemplate: "itemTemplate", selectedItemTemplate: "selectedItemTemplate" }, providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-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 <ng-template *ngIf=\"showAddButton\" pTemplate=\"footer\">\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)\"></button>\n </div>\n </div>\n </ng-template>\n\n\n\n\n <!-- :: -->\n\n <ng-template let-selectedItem pTemplate=\"item\" *ngIf=\"itemTemplate\">\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItem }\"\n >\n\n </ng-container>\n </ng-template>\n\n\n <ng-template let-item pTemplate=\"selectedItem\" *ngIf=\"selectedItemTemplate\">\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n >\n\n </ng-container>\n </ng-template>\n\n <!-- :: -->\n\n\n </p-dropdown>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "directive", type: i6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i7.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"] }] });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span class=\"p-float-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 <ng-template *ngIf=\"showAddButton\" pTemplate=\"footer\">\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)\"></button>\n </div>\n </div>\n </ng-template>\n\n\n\n\n <!-- :: -->\n\n <ng-template let-selectedItem pTemplate=\"item\" *ngIf=\"itemTemplate\">\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItem }\"\n >\n\n </ng-container>\n </ng-template>\n\n\n <ng-template let-item pTemplate=\"selectedItem\" *ngIf=\"selectedItemTemplate\">\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n >\n\n </ng-container>\n </ng-template>\n\n <!-- :: -->\n\n\n </p-dropdown>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"] }]
|
|
29
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }, { type: i2.DialogService }]; }, propDecorators: { dropDowValue: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], itemTemplate: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], selectedItemTemplate: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2lucHV0cy9kcm9wZG93bi9kcm9wZG93bi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5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Z0lmPVwiaXRlbVRlbXBsYXRlXCI+XG4gICAgICA8bmctY29udGFpbmVyXG4gICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJpdGVtVGVtcGxhdGVcIlxuICAgICAgW25nVGVtcGxhdGVPdXRsZXRDb250ZXh0XT1cInsgJGltcGxpY2l0OiBzZWxlY3RlZEl0ZW0gfVwiXG4gICAgICA+XG5cbiAgICAgIDwvbmctY29udGFpbmVyPlxuICAgIDwvbmctdGVtcGxhdGU+XG5cblxuICAgIDxuZy10ZW1wbGF0ZSBsZXQtaXRlbSBwVGVtcGxhdGU9XCJzZWxlY3RlZEl0ZW1cIiAqbmdJZj1cInNlbGVjdGVkSXRlbVRlbXBsYXRlXCI+XG4gICAgICA8bmctY29udGFpbmVyXG4gICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJzZWxlY3RlZEl0ZW1UZW1wbGF0ZVwiXG4gICAgICBbbmdUZW1wbGF0ZU91dGxldENvbnRleHRdPVwieyAkaW1wbGljaXQ6IGl0ZW0gfVwiXG4gICAgICA+XG5cbiAgICAgIDwvbmctY29udGFpbmVyPlxuICAgIDwvbmctdGVtcGxhdGU+XG5cbiAgICA8IS0tIDo6IC0tPlxuXG5cbiAgPC9wLWRyb3Bkb3duPlxuICA8bGFiZWwgW2Zvcl09XCJjb21wb25lbnRJZFwiPnt7IGxhYmVsIH19PC9sYWJlbD5cblxuICA8a3YtZXJyb3IgW2hhc0Vycm9yXT1cImhhc0NvbnRyb2xFcnJvcigpXCI+e3sgZXJyb01lc3NhZ2UoKSB9fTwva3YtZXJyb3I+XG48L3NwYW4+XG48bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4iXX0=
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
3
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../api/services/component.service";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "../../api/components/error/error.component";
|
|
8
|
-
import * as i4 from "primeng/calendar";
|
|
9
|
-
export class InputCalendarComponent extends BaseComponentInput {
|
|
10
|
-
constructor(componentService) {
|
|
11
|
-
super(componentService);
|
|
12
|
-
this.isYear = false;
|
|
13
|
-
this.isMonthYear = false;
|
|
14
|
-
this.showButtonBar = false;
|
|
15
|
-
this.showIcon = true;
|
|
16
|
-
this.showTime = false;
|
|
17
|
-
this.selectionMode = 'single';
|
|
18
|
-
this.onSelectionChange = new EventEmitter();
|
|
19
|
-
this.onSelectionValue = new EventEmitter();
|
|
20
|
-
this.typeView = 'date';
|
|
21
|
-
this.dateFormat = 'dd/mm/yy';
|
|
22
|
-
}
|
|
23
|
-
writeValue(value) {
|
|
24
|
-
this.value = value;
|
|
25
|
-
if (value && typeof value === 'string') {
|
|
26
|
-
this.value = new Date(value);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
super.ngOnInit();
|
|
31
|
-
if (this.isYear) {
|
|
32
|
-
this.typeView = 'year';
|
|
33
|
-
this.dateFormat = 'yy';
|
|
34
|
-
}
|
|
35
|
-
else if (this.isMonthYear) {
|
|
36
|
-
this.typeView = 'month';
|
|
37
|
-
this.dateFormat = 'mm/yy';
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.typeView = 'date';
|
|
41
|
-
this.dateFormat = 'dd/mm/yy';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
onInputChange(event) {
|
|
45
|
-
this.hideOnRangeMode();
|
|
46
|
-
this.onSelectionValue.emit(event);
|
|
47
|
-
if (this.formControl) {
|
|
48
|
-
this.onSelectionChange.emit(this.formControl.value);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
hideOnRangeMode() {
|
|
52
|
-
if (this.selectionMode == 'range') {
|
|
53
|
-
if (this.dateFilter.value[1]) {
|
|
54
|
-
this.dateFilter.hideOverlay();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
InputCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
-
InputCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputCalendarComponent, selector: "kv-input-calendar", inputs: { isYear: "isYear", isMonthYear: "isMonthYear", minDate: "minDate", maxDate: "maxDate", showButtonBar: "showButtonBar", showIcon: "showIcon", showTime: "showTime", selectionMode: "selectionMode" }, outputs: { onSelectionChange: "onSelectionChange", onSelectionValue: "onSelectionValue" }, providers: ComponentProviders(InputCalendarComponent), viewQueries: [{ propertyName: "dateFilter", first: true, predicate: ["dateFilter"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{ selector: 'kv-input-calendar', providers: ComponentProviders(InputCalendarComponent), template: "<span class=\"p-float-label\">\
|
|
64
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { isYear: [{
|
|
65
|
-
type: Input
|
|
66
|
-
}], isMonthYear: [{
|
|
67
|
-
type: Input
|
|
68
|
-
}], minDate: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}], maxDate: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], showButtonBar: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], showIcon: [{
|
|
75
|
-
type: Input
|
|
76
|
-
}], showTime: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}], selectionMode: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], onSelectionChange: [{
|
|
81
|
-
type: Output
|
|
82
|
-
}], onSelectionValue: [{
|
|
83
|
-
type: Output
|
|
84
|
-
}], dateFilter: [{
|
|
85
|
-
type: ViewChild,
|
|
86
|
-
args: ['dateFilter']
|
|
87
|
-
}] } });
|
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../api/services/component.service";
|
|
6
|
+
import * as i2 from "@angular/forms";
|
|
7
|
+
import * as i3 from "../../api/components/error/error.component";
|
|
8
|
+
import * as i4 from "primeng/calendar";
|
|
9
|
+
export class InputCalendarComponent extends BaseComponentInput {
|
|
10
|
+
constructor(componentService) {
|
|
11
|
+
super(componentService);
|
|
12
|
+
this.isYear = false;
|
|
13
|
+
this.isMonthYear = false;
|
|
14
|
+
this.showButtonBar = false;
|
|
15
|
+
this.showIcon = true;
|
|
16
|
+
this.showTime = false;
|
|
17
|
+
this.selectionMode = 'single';
|
|
18
|
+
this.onSelectionChange = new EventEmitter();
|
|
19
|
+
this.onSelectionValue = new EventEmitter();
|
|
20
|
+
this.typeView = 'date';
|
|
21
|
+
this.dateFormat = 'dd/mm/yy';
|
|
22
|
+
}
|
|
23
|
+
writeValue(value) {
|
|
24
|
+
this.value = value;
|
|
25
|
+
if (value && typeof value === 'string') {
|
|
26
|
+
this.value = new Date(value);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
ngOnInit() {
|
|
30
|
+
super.ngOnInit();
|
|
31
|
+
if (this.isYear) {
|
|
32
|
+
this.typeView = 'year';
|
|
33
|
+
this.dateFormat = 'yy';
|
|
34
|
+
}
|
|
35
|
+
else if (this.isMonthYear) {
|
|
36
|
+
this.typeView = 'month';
|
|
37
|
+
this.dateFormat = 'mm/yy';
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
this.typeView = 'date';
|
|
41
|
+
this.dateFormat = 'dd/mm/yy';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
onInputChange(event) {
|
|
45
|
+
this.hideOnRangeMode();
|
|
46
|
+
this.onSelectionValue.emit(event);
|
|
47
|
+
if (this.formControl) {
|
|
48
|
+
this.onSelectionChange.emit(this.formControl.value);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
hideOnRangeMode() {
|
|
52
|
+
if (this.selectionMode == 'range') {
|
|
53
|
+
if (this.dateFilter.value[1]) {
|
|
54
|
+
this.dateFilter.hideOverlay();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
InputCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
InputCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputCalendarComponent, selector: "kv-input-calendar", inputs: { isYear: "isYear", isMonthYear: "isMonthYear", minDate: "minDate", maxDate: "maxDate", showButtonBar: "showButtonBar", showIcon: "showIcon", showTime: "showTime", selectionMode: "selectionMode" }, outputs: { onSelectionChange: "onSelectionChange", onSelectionValue: "onSelectionValue" }, providers: ComponentProviders(InputCalendarComponent), viewQueries: [{ propertyName: "dateFilter", first: true, predicate: ["dateFilter"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\n <p-calendar\n #dateFilter\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n [id]=\"componentId\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [selectionMode]=\"selectionMode\"\n [showButtonBar]=\"showButtonBar\"\n [showIcon]=\"showIcon\"\n [showTime]=\"showTime\"\n [view]=\"typeView\"\n [dateFormat]=\"dateFormat\"\n (onBlur)=\"onInputBlur($event)\"\n (onClose)=\"onInputClose($event)\"\n (onSelect)=\"onInputChange($event)\"\n styleClass=\"inputs\"\n >\n </p-calendar>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"], dependencies: [{ 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: i3.ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }] });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'kv-input-calendar', providers: ComponentProviders(InputCalendarComponent), template: "<span class=\"p-float-label\">\n <p-calendar\n #dateFilter\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n [id]=\"componentId\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [selectionMode]=\"selectionMode\"\n [showButtonBar]=\"showButtonBar\"\n [showIcon]=\"showIcon\"\n [showTime]=\"showTime\"\n [view]=\"typeView\"\n [dateFormat]=\"dateFormat\"\n (onBlur)=\"onInputBlur($event)\"\n (onClose)=\"onInputClose($event)\"\n (onSelect)=\"onInputChange($event)\"\n styleClass=\"inputs\"\n >\n </p-calendar>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"] }]
|
|
64
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { isYear: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], isMonthYear: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], minDate: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], maxDate: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], showButtonBar: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], showIcon: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}], showTime: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], selectionMode: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], onSelectionChange: [{
|
|
81
|
+
type: Output
|
|
82
|
+
}], onSelectionValue: [{
|
|
83
|
+
type: Output
|
|
84
|
+
}], dateFilter: [{
|
|
85
|
+
type: ViewChild,
|
|
86
|
+
args: ['dateFilter']
|
|
87
|
+
}] } });
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2lucHV0cy9pbnB1dC1jYWxlbmRhci9pbnB1dC1jYWxlbmRhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LWNhbGVuZGFyL2lucHV0LWNhbGVuZGFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBQ3BGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHVDQUF1QyxDQUFDOzs7Ozs7QUFhM0UsTUFBTSxPQUFPLHNCQUNYLFNBQVEsa0JBQXdCO0lBa0JoQyxZQUFZLGdCQUFrQztRQUM1QyxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQWhCakIsV0FBTSxHQUFZLEtBQUssQ0FBQztRQUN4QixnQkFBVyxHQUFZLEtBQUssQ0FBQztRQUc3QixrQkFBYSxHQUFZLEtBQUssQ0FBQztRQUMvQ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4gICAgYXBwZW5kVG89XCJib2R5XCJcbiAgICBbY2xhc3NdPVwiYmFzZUlucHV0Q2xhc3NcIlxuICAgIFtpZF09XCJjb21wb25lbnRJZFwiXG4gICAgWyhuZ01vZGVsKV09XCJ2YWx1ZVwiXG4gICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcbiAgICBbbWluRGF0ZV09XCJtaW5EYXRlXCJcbiAgICBbbWF4RGF0ZV09XCJtYXhEYXRlXCJcbiAgICBbc2VsZWN0aW9uTW9kZV09XCJzZWxlY3Rpb25Nb2RlXCJcbiAgICBbc2hvd0J1dHRvbkJhcl09XCJzaG93QnV0dG9uQmFyXCJcbiAgICBbc2hvd0ljb25dPVwic2hvd0ljb25cIlxuICAgIFtzaG93VGltZV09XCJzaG93VGltZVwiXG4gICAgW3ZpZXddPVwidHlwZVZpZXdcIlxuICAgIFtkYXRlRm9ybWF0XT1cImRhdGVGb3JtYXRcIlxuICAgIChvbkJsdXIpPVwib25JbnB1dEJsdXIoJGV2ZW50KVwiXG4gICAgKG9uQ2xvc2UpPVwib25JbnB1dENsb3NlKCRldmVudClcIlxuICAgIChvblNlbGVjdCk9XCJvbklucHV0Q2hhbmdlKCRldmVudClcIlxuICAgIHN0eWxlQ2xhc3M9XCJpbnB1dHNcIlxuICA+XG4gIDwvcC1jYWxlbmRhcj5cbiAgPGxhYmVsIFtmb3JdPVwiY29tcG9uZW50SWRcIj57eyBsYWJlbCB9fTwvbGFiZWw+XG5cbiAgPGt2LWVycm9yIFtoYXNFcnJvcl09XCJoYXNDb250cm9sRXJyb3IoKVwiPnt7IGVycm9NZXNzYWdlKCkgfX08L2t2LWVycm9yPlxuPC9zcGFuPlxuPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuIl19
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
3
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../api/services/component.service";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "../../api/components/error/error.component";
|
|
8
|
-
import * as i4 from "primeng/inputmask";
|
|
9
|
-
export class InputMaskComponent extends BaseComponentInput {
|
|
10
|
-
constructor(componentService) {
|
|
11
|
-
super(componentService);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
InputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
InputMaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputMaskComponent, selector: "kv-input-mask", inputs: { mask: "mask" }, providers: ComponentProviders(InputMaskComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
17
|
-
type: Component,
|
|
18
|
-
args: [{ selector: 'kv-input-mask', providers: ComponentProviders(InputMaskComponent), template: "<span class=\"p-float-label\">\
|
|
19
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mask: [{
|
|
20
|
-
type: Input
|
|
21
|
-
}] } });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../api/services/component.service";
|
|
6
|
+
import * as i2 from "@angular/forms";
|
|
7
|
+
import * as i3 from "../../api/components/error/error.component";
|
|
8
|
+
import * as i4 from "primeng/inputmask";
|
|
9
|
+
export class InputMaskComponent extends BaseComponentInput {
|
|
10
|
+
constructor(componentService) {
|
|
11
|
+
super(componentService);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
InputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
InputMaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputMaskComponent, selector: "kv-input-mask", inputs: { mask: "mask" }, providers: ComponentProviders(InputMaskComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\n\n <p-inputMask\n [class]=\"baseInputClass\"\n styleClass=\"inputs\"\n [inputId]=\"componentId\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [mask]=\"mask\"\n (onBlur)=\"onInputBlur($event)\">\n </p-inputMask>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"], dependencies: [{ 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: i3.ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4.InputMask, selector: "p-inputMask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "disabled", "readonly", "unmask", "name", "required", "characterPattern", "autoFocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'kv-input-mask', providers: ComponentProviders(InputMaskComponent), template: "<span class=\"p-float-label\">\n\n <p-inputMask\n [class]=\"baseInputClass\"\n styleClass=\"inputs\"\n [inputId]=\"componentId\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [mask]=\"mask\"\n (onBlur)=\"onInputBlur($event)\">\n </p-inputMask>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"] }]
|
|
19
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mask: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}] } });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbWFzay5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LW1hc2svaW5wdXQtbWFzay5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LW1hc2svaW5wdXQtbWFzay5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQ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|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../api/services/component.service";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "../../api/components/error/error.component";
|
|
8
|
-
import * as i4 from "primeng/inputnumber";
|
|
9
|
-
export class InputNumberComponent extends BaseComponentInput {
|
|
10
|
-
constructor(componentService) {
|
|
11
|
-
super(componentService);
|
|
12
|
-
this.mode = 'decimal';
|
|
13
|
-
this.digits = 0;
|
|
14
|
-
this.min = 0;
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
super.ngOnInit();
|
|
18
|
-
this.inputNumber.mode = this.mode;
|
|
19
|
-
this.inputNumber.locale = 'pt-BR';
|
|
20
|
-
switch (this.mode) {
|
|
21
|
-
case 'decimal':
|
|
22
|
-
this.configDecimal();
|
|
23
|
-
break;
|
|
24
|
-
case 'currency':
|
|
25
|
-
this.configCurrency();
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
configDecimal() {
|
|
30
|
-
if (!this.digits)
|
|
31
|
-
this.inputNumber.useGrouping = false;
|
|
32
|
-
this.inputNumber.minFractionDigits = this.digits;
|
|
33
|
-
this.inputNumber.maxFractionDigits = this.digits;
|
|
34
|
-
}
|
|
35
|
-
configCurrency() {
|
|
36
|
-
this.inputNumber.currency = 'BRL';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
InputNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
-
InputNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputNumberComponent, selector: "kv-input-number", inputs: { mode: "mode", digits: "digits", min: "min", max: "max" }, providers: ComponentProviders(InputNumberComponent), viewQueries: [{ propertyName: "inputNumber", first: true, predicate: ["inputNumber"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
42
|
-
type: Component,
|
|
43
|
-
args: [{ selector: 'kv-input-number', providers: ComponentProviders(InputNumberComponent), template: "<span class=\"p-float-label\">\
|
|
44
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mode: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}], digits: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], min: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}], max: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], inputNumber: [{
|
|
53
|
-
type: ViewChild,
|
|
54
|
-
args: ['inputNumber', { static: true }]
|
|
55
|
-
}] } });
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
+
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../api/services/component.service";
|
|
6
|
+
import * as i2 from "@angular/forms";
|
|
7
|
+
import * as i3 from "../../api/components/error/error.component";
|
|
8
|
+
import * as i4 from "primeng/inputnumber";
|
|
9
|
+
export class InputNumberComponent extends BaseComponentInput {
|
|
10
|
+
constructor(componentService) {
|
|
11
|
+
super(componentService);
|
|
12
|
+
this.mode = 'decimal';
|
|
13
|
+
this.digits = 0;
|
|
14
|
+
this.min = 0;
|
|
15
|
+
}
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
super.ngOnInit();
|
|
18
|
+
this.inputNumber.mode = this.mode;
|
|
19
|
+
this.inputNumber.locale = 'pt-BR';
|
|
20
|
+
switch (this.mode) {
|
|
21
|
+
case 'decimal':
|
|
22
|
+
this.configDecimal();
|
|
23
|
+
break;
|
|
24
|
+
case 'currency':
|
|
25
|
+
this.configCurrency();
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
configDecimal() {
|
|
30
|
+
if (!this.digits)
|
|
31
|
+
this.inputNumber.useGrouping = false;
|
|
32
|
+
this.inputNumber.minFractionDigits = this.digits;
|
|
33
|
+
this.inputNumber.maxFractionDigits = this.digits;
|
|
34
|
+
}
|
|
35
|
+
configCurrency() {
|
|
36
|
+
this.inputNumber.currency = 'BRL';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
InputNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
InputNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputNumberComponent, selector: "kv-input-number", inputs: { mode: "mode", digits: "digits", min: "min", max: "max" }, providers: ComponentProviders(InputNumberComponent), viewQueries: [{ propertyName: "inputNumber", first: true, predicate: ["inputNumber"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\n <p-inputNumber\n #inputNumber\n [class]=\"baseInputClass\"\n [inputId]=\"componentId\"\n styleClass=\"inputs\"\n [min]=\"min\"\n [max]=\"max\"\n [(ngModel)]=\"value\"\n (onBlur)=\"onInputBlur($event)\">\n </p-inputNumber>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"], dependencies: [{ 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: i3.ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }] });
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'kv-input-number', providers: ComponentProviders(InputNumberComponent), template: "<span class=\"p-float-label\">\n <p-inputNumber\n #inputNumber\n [class]=\"baseInputClass\"\n [inputId]=\"componentId\"\n styleClass=\"inputs\"\n [min]=\"min\"\n [max]=\"max\"\n [(ngModel)]=\"value\"\n (onBlur)=\"onInputBlur($event)\">\n </p-inputNumber>\n <label [for]=\"componentId\">{{ label }}</label>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>\n", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:40px}*{margin:0}\n"] }]
|
|
44
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mode: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], digits: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], min: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], max: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], inputNumber: [{
|
|
53
|
+
type: ViewChild,
|
|
54
|
+
args: ['inputNumber', { static: true }]
|
|
55
|
+
}] } });
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbnVtYmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tlZXZvLWNvbXBvbmVudHMvc3JjL2xpYi9pbnB1dHMvaW5wdXQtbnVtYmVyL2lucHV0LW51bWJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LW51bWJlci9pbnB1dC1udW1iZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXBFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDOzs7Ozs7QUFVcEYsTUFBTSxPQUFPLG9CQUFxQixTQUFRLGtCQUEwQjtJQVFsRSxZQUFZLGdCQUFrQztRQUM1QyxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQVJqQixTQUFJLEdBQTJCLFNBQVMsQ0FBQztRQUN6QyxXQUFNLEdBQVcsQ0FBQyxDQUFDO1FBQ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