keevo-components 1.5.196 → 1.5.199
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 +279 -279
- package/esm2020/lib/api/base-components/base-component-crud-list.mjs +68 -68
- package/esm2020/lib/api/base-components/base-component-crud.mjs +65 -65
- package/esm2020/lib/api/base-components/base-component-dropdown-new.mjs +211 -211
- package/esm2020/lib/api/base-components/base-component-dropdown.mjs +161 -161
- package/esm2020/lib/api/base-components/base-component-input.mjs +94 -94
- 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/keevo-validators.mjs +64 -64
- package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -23
- 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 -74
- package/esm2020/lib/api/services/component.service.mjs +27 -27
- package/esm2020/lib/api/services/form.service.mjs +84 -84
- 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 +31 -31
- 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 -39
- 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 +37 -37
- package/esm2020/lib/inputs/editor/editor.component.mjs +70 -70
- package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +89 -89
- package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +23 -23
- package/esm2020/lib/inputs/input-number/input-number.component.mjs +59 -59
- package/esm2020/lib/inputs/input-password/input-password.component.mjs +33 -33
- package/esm2020/lib/inputs/input-text/input-text.component.mjs +21 -21
- package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +37 -37
- package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +43 -43
- package/esm2020/lib/inputs/input-time/input-time.component.mjs +24 -24
- package/esm2020/lib/inputs/kvinputs.module.mjs +108 -108
- package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +38 -38
- package/esm2020/lib/inputs/radio-group/radio-group.component.mjs +53 -53
- package/esm2020/lib/inputs/switch/switch.component.mjs +32 -32
- package/esm2020/lib/keevo-components.module.mjs +105 -105
- package/esm2020/lib/label/label.component.mjs +14 -14
- package/esm2020/lib/label/label.module.mjs +23 -23
- package/esm2020/lib/loader/kvloader.module.mjs +28 -28
- package/esm2020/lib/loader/loader.component.mjs +17 -17
- package/esm2020/lib/loader/loader.service.mjs +29 -29
- package/esm2020/lib/login/kvlogin.module.mjs +47 -47
- package/esm2020/lib/login/login.component.mjs +52 -52
- package/esm2020/lib/menu/kvmenu.module.mjs +43 -43
- package/esm2020/lib/menu/menu.component.mjs +237 -237
- package/esm2020/lib/orgchart/orgchart.component.mjs +100 -100
- package/esm2020/lib/orgchart/orgchart.module.mjs +24 -24
- package/esm2020/lib/page-form/kv-page-form.module.mjs +38 -38
- package/esm2020/lib/page-form/page-form.component.mjs +144 -144
- 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 +500 -500
- package/esm2020/lib/tree-table/kv-treetable.component.mjs +371 -371
- 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 +138 -138
- package/fesm2015/keevo-components.mjs +4454 -4454
- package/fesm2015/keevo-components.mjs.map +1 -1
- package/fesm2020/keevo-components.mjs +4443 -4443
- 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 +138 -138
- 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-new.d.ts +14 -14
- 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/keevo-validators.d.ts +10 -10
- package/lib/api/helpers/translate-primeng.d.ts +4 -4
- 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 -25
- 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 -13
- 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 -11
- 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/editor/editor.component.d.ts +39 -39
- 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 +19 -19
- 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 +25 -25
- package/lib/inputs/multi-select/multi-select.component.d.ts +12 -12
- package/lib/inputs/radio-group/radio-group.component.d.ts +18 -18
- package/lib/inputs/switch/switch.component.d.ts +13 -13
- package/lib/keevo-components.module.d.ts +19 -19
- package/lib/label/label.component.d.ts +7 -7
- package/lib/label/label.module.d.ts +8 -8
- package/lib/loader/kvloader.module.d.ts +9 -9
- package/lib/loader/loader.component.d.ts +8 -8
- package/lib/loader/loader.service.d.ts +10 -10
- package/lib/login/kvlogin.module.d.ts +13 -13
- package/lib/login/login.component.d.ts +30 -30
- package/lib/menu/kvmenu.module.d.ts +12 -12
- package/lib/menu/menu.component.d.ts +74 -74
- package/lib/orgchart/orgchart.component.d.ts +27 -27
- package/lib/orgchart/orgchart.module.d.ts +9 -9
- package/lib/page-form/kv-page-form.module.d.ts +11 -11
- package/lib/page-form/page-form.component.d.ts +69 -69
- 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 +105 -105
- package/lib/tree-table/kv-treetable.component.d.ts +84 -84
- 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 +4 -4
- package/public-api.d.ts +134 -134
|
@@ -1,89 +1,89 @@
|
|
|
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
|
-
import * as i5 from "../../label/label.component";
|
|
10
|
-
export class InputCalendarComponent extends BaseComponentInput {
|
|
11
|
-
constructor(componentService) {
|
|
12
|
-
super(componentService);
|
|
13
|
-
this.isYear = false;
|
|
14
|
-
this.isMonthYear = false;
|
|
15
|
-
this.showButtonBar = false;
|
|
16
|
-
this.showIcon = true;
|
|
17
|
-
this.showTime = false;
|
|
18
|
-
this.selectionMode = 'single';
|
|
19
|
-
this.onSelectionChange = new EventEmitter();
|
|
20
|
-
this.onSelectionValue = new EventEmitter();
|
|
21
|
-
this.typeView = 'date';
|
|
22
|
-
this.dateFormat = 'dd/mm/yy';
|
|
23
|
-
}
|
|
24
|
-
writeValue(value) {
|
|
25
|
-
this.value = value;
|
|
26
|
-
if (value && typeof value === 'string') {
|
|
27
|
-
this.value = new Date(value);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
ngOnInit() {
|
|
31
|
-
super.ngOnInit();
|
|
32
|
-
if (this.isYear) {
|
|
33
|
-
this.typeView = 'year';
|
|
34
|
-
this.dateFormat = 'yy';
|
|
35
|
-
}
|
|
36
|
-
else if (this.isMonthYear) {
|
|
37
|
-
this.typeView = 'month';
|
|
38
|
-
this.dateFormat = 'mm/yy';
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.typeView = 'date';
|
|
42
|
-
this.dateFormat = 'dd/mm/yy';
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
onInputChange(event) {
|
|
46
|
-
this.hideOnRangeMode();
|
|
47
|
-
this.onSelectionValue.emit(event);
|
|
48
|
-
if (this.formControl) {
|
|
49
|
-
this.onSelectionChange.emit(this.formControl.value);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
hideOnRangeMode() {
|
|
53
|
-
if (this.selectionMode == 'range') {
|
|
54
|
-
if (this.dateFilter.value[1]) {
|
|
55
|
-
this.dateFilter.hideOverlay();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
InputCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
-
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>\
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, decorators: [{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector: 'kv-input-calendar', providers: ComponentProviders(InputCalendarComponent), template: "<span>\
|
|
65
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { isYear: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], isMonthYear: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], minDate: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], maxDate: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], showButtonBar: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], showIcon: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}], showTime: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], selectionMode: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], onSelectionChange: [{
|
|
82
|
-
type: Output
|
|
83
|
-
}], onSelectionValue: [{
|
|
84
|
-
type: Output
|
|
85
|
-
}], dateFilter: [{
|
|
86
|
-
type: ViewChild,
|
|
87
|
-
args: ['dateFilter']
|
|
88
|
-
}] } });
|
|
89
|
-
//# 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
|
+
import * as i5 from "../../label/label.component";
|
|
10
|
+
export class InputCalendarComponent extends BaseComponentInput {
|
|
11
|
+
constructor(componentService) {
|
|
12
|
+
super(componentService);
|
|
13
|
+
this.isYear = false;
|
|
14
|
+
this.isMonthYear = false;
|
|
15
|
+
this.showButtonBar = false;
|
|
16
|
+
this.showIcon = true;
|
|
17
|
+
this.showTime = false;
|
|
18
|
+
this.selectionMode = 'single';
|
|
19
|
+
this.onSelectionChange = new EventEmitter();
|
|
20
|
+
this.onSelectionValue = new EventEmitter();
|
|
21
|
+
this.typeView = 'date';
|
|
22
|
+
this.dateFormat = 'dd/mm/yy';
|
|
23
|
+
}
|
|
24
|
+
writeValue(value) {
|
|
25
|
+
this.value = value;
|
|
26
|
+
if (value && typeof value === 'string') {
|
|
27
|
+
this.value = new Date(value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
ngOnInit() {
|
|
31
|
+
super.ngOnInit();
|
|
32
|
+
if (this.isYear) {
|
|
33
|
+
this.typeView = 'year';
|
|
34
|
+
this.dateFormat = 'yy';
|
|
35
|
+
}
|
|
36
|
+
else if (this.isMonthYear) {
|
|
37
|
+
this.typeView = 'month';
|
|
38
|
+
this.dateFormat = 'mm/yy';
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.typeView = 'date';
|
|
42
|
+
this.dateFormat = 'dd/mm/yy';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
onInputChange(event) {
|
|
46
|
+
this.hideOnRangeMode();
|
|
47
|
+
this.onSelectionValue.emit(event);
|
|
48
|
+
if (this.formControl) {
|
|
49
|
+
this.onSelectionChange.emit(this.formControl.value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
hideOnRangeMode() {
|
|
53
|
+
if (this.selectionMode == 'range') {
|
|
54
|
+
if (this.dateFilter.value[1]) {
|
|
55
|
+
this.dateFilter.hideOverlay();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
InputCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
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>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\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\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{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"] }, { kind: "component", type: i5.LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }] });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, decorators: [{
|
|
63
|
+
type: Component,
|
|
64
|
+
args: [{ selector: 'kv-input-calendar', providers: ComponentProviders(InputCalendarComponent), template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\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\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"] }]
|
|
65
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { isYear: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], isMonthYear: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], minDate: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], maxDate: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], showButtonBar: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], showIcon: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], showTime: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], selectionMode: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], onSelectionChange: [{
|
|
82
|
+
type: Output
|
|
83
|
+
}], onSelectionValue: [{
|
|
84
|
+
type: Output
|
|
85
|
+
}], dateFilter: [{
|
|
86
|
+
type: ViewChild,
|
|
87
|
+
args: ['dateFilter']
|
|
88
|
+
}] } });
|
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2Vldm8tY29tcG9uZW50cy9zcmMvbGliL2lucHV0cy9pbnB1dC1jYWxlbmRhci9pbnB1dC1jYWxlbmRhci5jb21wb25lbnQudHMiLCIuLi8uLi8u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bc2hvd1RpbWVdPVwic2hvd1RpbWVcIlxuICAgIFt2aWV3XT1cInR5cGVWaWV3XCJcbiAgICBbZGF0ZUZvcm1hdF09XCJkYXRlRm9ybWF0XCJcbiAgICAob25CbHVyKT1cIm9uSW5wdXRCbHVyKCRldmVudClcIlxuICAgIChvbkNsb3NlKT1cIm9uSW5wdXRDbG9zZSgkZXZlbnQpXCJcbiAgICAob25TZWxlY3QpPVwib25JbnB1dENoYW5nZSgkZXZlbnQpXCJcbiAgICBzdHlsZUNsYXNzPVwiaW5wdXRzXCJcbiAgPlxuICA8L3AtY2FsZW5kYXI+XG5cbiAgPGt2LWVycm9yIFtoYXNFcnJvcl09XCJoYXNDb250cm9sRXJyb3IoKVwiPnt7IGVycm9NZXNzYWdlKCkgfX08L2t2LWVycm9yPlxuPC9zcGFuPlxuPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PiJdfQ==
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
-
import * as i5 from "../../label/label.component";
|
|
10
|
-
export class InputMaskComponent extends BaseComponentInput {
|
|
11
|
-
constructor(componentService) {
|
|
12
|
-
super(componentService);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
InputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
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>\
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'kv-input-mask', providers: ComponentProviders(InputMaskComponent), template: "<span>\
|
|
20
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mask: [{
|
|
21
|
-
type: Input
|
|
22
|
-
}] } });
|
|
23
|
-
//# 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
|
+
import * as i5 from "../../label/label.component";
|
|
10
|
+
export class InputMaskComponent extends BaseComponentInput {
|
|
11
|
+
constructor(componentService) {
|
|
12
|
+
super(componentService);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
InputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
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>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"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 >\n </p-inputMask>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{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"] }, { kind: "component", type: i5.LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }] });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'kv-input-mask', providers: ComponentProviders(InputMaskComponent), template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"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 >\n </p-inputMask>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"] }]
|
|
20
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mask: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}] } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbWFzay5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LW1hc2svaW5wdXQtbWFzay5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LW1hc2svaW5wdXQtbWFzay5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxnREFBZ0QsQ0FBQztBQUNwRixPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQzs7Ozs7OztBQVUzRSxNQUFNLE9BQU8sa0JBQW1CLFNBQVEsa0JBQTBCO0lBSWhFLFlBQVksZ0JBQWtDO1FBQzVDLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBQzFCLENBQUM7OytHQU5VLGtCQUFrQjttR0FBbEIsa0JBQWtCLGtFQUZsQixrQkFBa0IsQ0FBQyxrQ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NlKSB7XG4gICAgc3VwZXIoY29tcG9uZW50U2VydmljZSk7XG4gIH1cbn1cbiIsIjxzcGFuPlxuICA8a3YtbGFiZWxcbiAgICBbY29tcG9uZW50SWRdPVwiY29tcG9uZW50SWRcIlxuICAgIFtsYWJlbF09XCJsYWJlbFwiXG4gIC8+XG4gIDxwLWlucHV0TWFza1xuICAgIFtjbGFzc109XCJiYXNlSW5wdXRDbGFzc1wiXG4gICAgc3R5bGVDbGFzcz1cImlucHV0c1wiXG4gICAgW2lucHV0SWRdPVwiY29tcG9uZW50SWRcIlxuICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXG4gICAgW3BsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcbiAgICBbKG5nTW9kZWwpXT1cInZhbHVlXCJcbiAgICBbbWFza109XCJtYXNrXCJcbiAgICAob25CbHVyKT1cIm9uSW5wdXRCbHVyKCRldmVudClcIlxuICA+XG4gIDwvcC1pbnB1dE1hc2s+XG5cbiAgPGt2LWVycm9yIFtoYXNFcnJvcl09XCJoYXNDb250cm9sRXJyb3IoKVwiPnt7IGVycm9NZXNzYWdlKCkgfX08L2t2LWVycm9yPlxuPC9zcGFuPlxuPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PiJdfQ==
|
|
@@ -1,59 +1,59 @@
|
|
|
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
|
-
import * as i5 from "../../label/label.component";
|
|
10
|
-
export class InputNumberComponent extends BaseComponentInput {
|
|
11
|
-
constructor(componentService) {
|
|
12
|
-
super(componentService);
|
|
13
|
-
this.mode = 'decimal';
|
|
14
|
-
this.digits = 0;
|
|
15
|
-
this.min = 0;
|
|
16
|
-
}
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
super.ngOnInit();
|
|
19
|
-
this.inputNumber.mode = this.mode;
|
|
20
|
-
this.inputNumber.locale = 'pt-BR';
|
|
21
|
-
switch (this.mode) {
|
|
22
|
-
case 'decimal':
|
|
23
|
-
this.configDecimal();
|
|
24
|
-
break;
|
|
25
|
-
case 'currency':
|
|
26
|
-
this.configCurrency();
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
configDecimal() {
|
|
31
|
-
if (!this.digits)
|
|
32
|
-
this.inputNumber.useGrouping = false;
|
|
33
|
-
this.inputNumber.minFractionDigits = this.digits;
|
|
34
|
-
this.inputNumber.maxFractionDigits = this.digits;
|
|
35
|
-
}
|
|
36
|
-
configCurrency() {
|
|
37
|
-
this.inputNumber.currency = 'BRL';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
InputNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
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", suffix: "suffix" }, providers: ComponentProviders(InputNumberComponent), viewQueries: [{ propertyName: "inputNumber", first: true, predicate: ["inputNumber"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<span>\
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{ selector: 'kv-input-number', providers: ComponentProviders(InputNumberComponent), template: "<span>\
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mode: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], digits: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], min: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], max: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], suffix: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], inputNumber: [{
|
|
56
|
-
type: ViewChild,
|
|
57
|
-
args: ['inputNumber', { static: true }]
|
|
58
|
-
}] } });
|
|
59
|
-
//# 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
|
+
import * as i5 from "../../label/label.component";
|
|
10
|
+
export class InputNumberComponent extends BaseComponentInput {
|
|
11
|
+
constructor(componentService) {
|
|
12
|
+
super(componentService);
|
|
13
|
+
this.mode = 'decimal';
|
|
14
|
+
this.digits = 0;
|
|
15
|
+
this.min = 0;
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
super.ngOnInit();
|
|
19
|
+
this.inputNumber.mode = this.mode;
|
|
20
|
+
this.inputNumber.locale = 'pt-BR';
|
|
21
|
+
switch (this.mode) {
|
|
22
|
+
case 'decimal':
|
|
23
|
+
this.configDecimal();
|
|
24
|
+
break;
|
|
25
|
+
case 'currency':
|
|
26
|
+
this.configCurrency();
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
configDecimal() {
|
|
31
|
+
if (!this.digits)
|
|
32
|
+
this.inputNumber.useGrouping = false;
|
|
33
|
+
this.inputNumber.minFractionDigits = this.digits;
|
|
34
|
+
this.inputNumber.maxFractionDigits = this.digits;
|
|
35
|
+
}
|
|
36
|
+
configCurrency() {
|
|
37
|
+
this.inputNumber.currency = 'BRL';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
InputNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
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", suffix: "suffix" }, providers: ComponentProviders(InputNumberComponent), viewQueries: [{ propertyName: "inputNumber", first: true, predicate: ["inputNumber"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-inputNumber\n #inputNumber\n [disabled]=\"disabled\"\n [class]=\"baseInputClass\"\n [inputId]=\"componentId\"\n styleClass=\"inputs\"\n [min]=\"min\"\n [max]=\"max\"\n [suffix]=\"suffix\"\n [(ngModel)]=\"value\"\n (onBlur)=\"onInputBlur($event)\"\n >\n </p-inputNumber>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{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"] }, { kind: "component", type: i5.LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }] });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{ selector: 'kv-input-number', providers: ComponentProviders(InputNumberComponent), template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-inputNumber\n #inputNumber\n [disabled]=\"disabled\"\n [class]=\"baseInputClass\"\n [inputId]=\"componentId\"\n styleClass=\"inputs\"\n [min]=\"min\"\n [max]=\"max\"\n [suffix]=\"suffix\"\n [(ngModel)]=\"value\"\n (onBlur)=\"onInputBlur($event)\"\n >\n </p-inputNumber>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"] }]
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { mode: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], digits: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], min: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], max: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], suffix: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], inputNumber: [{
|
|
56
|
+
type: ViewChild,
|
|
57
|
+
args: ['inputNumber', { static: true }]
|
|
58
|
+
}] } });
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbnVtYmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tlZXZvLWNvbXBvbmVudHMvc3JjL2xpYi9pbnB1dHMvaW5wdXQtbnVtYmVyL2lucHV0LW51bWJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvaW5wdXRzL2lucHV0LW51bWJlci9pbnB1dC1udW1iZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXBFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDOzs7Ozs7O0FBVXBGLE1BQU0sT0FBTyxvQkFBcUIsU0FBUSxrQkFBMEI7SUFTbEUsWUFBWSxnQkFBa0M7UUFDNUMsS0FBSyxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFUakIsU0FBSSxHQUEyQixTQUFTLENBQUM7UUFDekMsV0FBTSxHQUFXLENBQUMsQ0FBQztRQUNuQixRQUFHLEdBQVcsQ0FBQyxDQUFDO0lBUXpCLENBQUM7SUFFUSxRQUFRO1FBQ2YsS0FBSyxDQUFDLFFBQVEsRUFBRSxDQUFDO1FBRWpCLElBQUksQ0FBQyxXQUFXLENBQUMsSUFBSSxHQ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nQ3VycmVuY3koKSB7XG4gICAgdGhpcy5pbnB1dE51bWJlci5jdXJyZW5jeSA9ICdCUkwnO1xuICB9XG59XG4iLCI8c3Bhbj5cbiAgPGt2LWxhYmVsXG4gICAgW2NvbXBvbmVudElkXT1cImNvbXBvbmVudElkXCJcbiAgICBbbGFiZWxdPVwibGFiZWxcIlxuICAvPlxuICA8cC1pbnB1dE51bWJlclxuICAgICNpbnB1dE51bWJlclxuICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXG4gICAgW2NsYXNzXT1cImJhc2VJbnB1dENsYXNzXCJcbiAgICBbaW5wdXRJZF09XCJjb21wb25lbnRJZFwiXG4gICAgc3R5bGVDbGFzcz1cImlucHV0c1wiXG4gICAgW21pbl09XCJtaW5cIlxuICAgIFttYXhdPVwibWF4XCJcbiAgICBbc3VmZml4XT1cInN1ZmZpeFwiXG4gICAgWyhuZ01vZGVsKV09XCJ2YWx1ZVwiXG4gICAgKG9uQmx1cik9XCJvbklucHV0Qmx1cigkZXZlbnQpXCJcbiAgPlxuICA8L3AtaW5wdXROdW1iZXI+XG5cbiAgPGt2LWVycm9yIFtoYXNFcnJvcl09XCJoYXNDb250cm9sRXJyb3IoKVwiPnt7IGVycm9NZXNzYWdlKCkgfX08L2t2LWVycm9yPlxuPC9zcGFuPlxuPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PiJdfQ==
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Component, Input } 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/password";
|
|
9
|
-
import * as i5 from "../../label/label.component";
|
|
10
|
-
export class InputPasswordComponent extends BaseComponentInput {
|
|
11
|
-
constructor(componentService) {
|
|
12
|
-
super(componentService);
|
|
13
|
-
this.feedback = false;
|
|
14
|
-
this.mediumRegex = '';
|
|
15
|
-
this.strongRegex = '';
|
|
16
|
-
this.toggleMask = true;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputPasswordComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
InputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputPasswordComponent, selector: "kv-input-password", inputs: { feedback: "feedback", mediumRegex: "mediumRegex", strongRegex: "strongRegex", toggleMask: "toggleMask" }, providers: ComponentProviders(InputPasswordComponent), usesInheritance: true, ngImport: i0, template: "<span>\
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputPasswordComponent, decorators: [{
|
|
22
|
-
type: Component,
|
|
23
|
-
args: [{ selector: 'kv-input-password', providers: ComponentProviders(InputPasswordComponent), template: "<span>\
|
|
24
|
-
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { feedback: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], mediumRegex: [{
|
|
27
|
-
type: Input
|
|
28
|
-
}], strongRegex: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}], toggleMask: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}] } });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } 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/password";
|
|
9
|
+
import * as i5 from "../../label/label.component";
|
|
10
|
+
export class InputPasswordComponent extends BaseComponentInput {
|
|
11
|
+
constructor(componentService) {
|
|
12
|
+
super(componentService);
|
|
13
|
+
this.feedback = false;
|
|
14
|
+
this.mediumRegex = '';
|
|
15
|
+
this.strongRegex = '';
|
|
16
|
+
this.toggleMask = true;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputPasswordComponent, deps: [{ token: i1.ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
InputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputPasswordComponent, selector: "kv-input-password", inputs: { feedback: "feedback", mediumRegex: "mediumRegex", strongRegex: "strongRegex", toggleMask: "toggleMask" }, providers: ComponentProviders(InputPasswordComponent), usesInheritance: true, ngImport: i0, template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-password\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n styleClass=\"inputs\"\n [id]=\"componentId\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [toggleMask]=\"toggleMask\"\n [feedback]=\"feedback\"\n [mediumRegex]=\"mediumRegex\"\n [strongRegex]=\"strongRegex\"\n (onBlur)=\"onInputBlur($event)\"\n >\n </p-password>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["", "label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{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.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "panelStyle", "panelStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "placeholder", "showClear"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "component", type: i5.LabelComponent, selector: "kv-label", inputs: ["componentId", "label"] }] });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputPasswordComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{ selector: 'kv-input-password', providers: ComponentProviders(InputPasswordComponent), template: "<span>\n <kv-label\n [componentId]=\"componentId\"\n [label]=\"label\"\n />\n <p-password\n appendTo=\"body\"\n [class]=\"baseInputClass\"\n styleClass=\"inputs\"\n [id]=\"componentId\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [toggleMask]=\"toggleMask\"\n [feedback]=\"feedback\"\n [mediumRegex]=\"mediumRegex\"\n [strongRegex]=\"strongRegex\"\n (onBlur)=\"onInputBlur($event)\"\n >\n </p-password>\n\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\n</span>\n<ng-content></ng-content>", styles: ["label{font-family:Roboto,Arial,Helvetica,sans-serif}:host ::ng-deep .inputs{height:35px}*{margin:0}\n"] }]
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i1.ComponentService }]; }, propDecorators: { feedback: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}], mediumRegex: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], strongRegex: [{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