keevo-components 0.0.1
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 -0
- package/esm2020/keevo-components.mjs +5 -0
- package/esm2020/lib/api/base-components/base-component-button.mjs +33 -0
- package/esm2020/lib/api/base-components/base-component-dropdown.mjs +115 -0
- package/esm2020/lib/api/base-components/base-component-input.mjs +77 -0
- package/esm2020/lib/api/base-components/base-component.mjs +49 -0
- package/esm2020/lib/api/components/error/error.component.mjs +26 -0
- package/esm2020/lib/api/components/error/kverror.module.mjs +35 -0
- package/esm2020/lib/api/helpers/component-providers.mjs +16 -0
- package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -0
- package/esm2020/lib/api/index.mjs +2 -0
- package/esm2020/lib/api/modules/primeng.module.mjs +187 -0
- package/esm2020/lib/api/public-api.mjs +12 -0
- package/esm2020/lib/api/services/component.service.mjs +27 -0
- package/esm2020/lib/api/services/object.service.mjs +26 -0
- package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +17 -0
- package/esm2020/lib/buttons/button-success/button-success.component.mjs +17 -0
- package/esm2020/lib/buttons/kvbutton.module.mjs +29 -0
- package/esm2020/lib/inputs/check/check.component.mjs +25 -0
- package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +25 -0
- package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +61 -0
- package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +21 -0
- package/esm2020/lib/inputs/input-number/input-number.component.mjs +55 -0
- package/esm2020/lib/inputs/input-password/input-password.component.mjs +31 -0
- package/esm2020/lib/inputs/input-text/input-text.component.mjs +19 -0
- package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +41 -0
- package/esm2020/lib/inputs/input-time/input-time.component.mjs +22 -0
- package/esm2020/lib/inputs/kvinputs.module.mjs +88 -0
- package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +49 -0
- package/esm2020/lib/inputs/switch/switch.component.mjs +25 -0
- package/esm2020/lib/keevo-components.module.mjs +27 -0
- package/esm2020/public-api.mjs +25 -0
- package/esm2020/src/lib/api/base-components/base-component-button.mjs +33 -0
- package/esm2020/src/lib/api/base-components/base-component-dropdown.mjs +115 -0
- package/esm2020/src/lib/api/base-components/base-component-input.mjs +77 -0
- package/esm2020/src/lib/api/base-components/base-component.mjs +49 -0
- package/esm2020/src/lib/api/components/error/error.component.mjs +26 -0
- package/esm2020/src/lib/api/components/error/kverror.module.mjs +35 -0
- package/esm2020/src/lib/api/helpers/component-providers.mjs +16 -0
- package/esm2020/src/lib/api/helpers/translate-primeng.mjs +23 -0
- package/esm2020/src/lib/api/keevo-components-src-lib-api.mjs +5 -0
- package/esm2020/src/lib/api/modules/primeng.module.mjs +187 -0
- package/esm2020/src/lib/api/public-api.mjs +12 -0
- package/esm2020/src/lib/api/services/component.service.mjs +27 -0
- package/esm2020/src/lib/api/services/object.service.mjs +26 -0
- package/fesm2015/keevo-components-src-lib-api.mjs +594 -0
- package/fesm2015/keevo-components-src-lib-api.mjs.map +1 -0
- package/fesm2015/keevo-components.mjs +1050 -0
- package/fesm2015/keevo-components.mjs.map +1 -0
- package/fesm2020/keevo-components-src-lib-api.mjs +591 -0
- package/fesm2020/keevo-components-src-lib-api.mjs.map +1 -0
- package/fesm2020/keevo-components.mjs +1046 -0
- package/fesm2020/keevo-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/api/base-components/base-component-button.d.ts +13 -0
- package/lib/api/base-components/base-component-dropdown.d.ts +31 -0
- package/lib/api/base-components/base-component-input.d.ts +26 -0
- package/lib/api/base-components/base-component.d.ts +21 -0
- package/lib/api/components/error/error.component.d.ts +12 -0
- package/lib/api/components/error/kverror.module.d.ts +10 -0
- package/lib/api/helpers/component-providers.d.ts +2 -0
- package/lib/api/helpers/translate-primeng.d.ts +4 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/modules/primeng.module.d.ts +45 -0
- package/lib/api/public-api.d.ts +11 -0
- package/lib/api/services/component.service.d.ts +11 -0
- package/lib/api/services/object.service.d.ts +8 -0
- package/lib/buttons/button-secondary/button-secondary.component.d.ts +7 -0
- package/lib/buttons/button-success/button-success.component.d.ts +7 -0
- package/lib/buttons/kvbutton.module.d.ts +9 -0
- package/lib/inputs/check/check.component.d.ts +10 -0
- package/lib/inputs/dropdown/dropdown.component.d.ts +8 -0
- package/lib/inputs/input-calendar/input-calendar.component.d.ts +20 -0
- package/lib/inputs/input-mask/input-mask.component.d.ts +9 -0
- package/lib/inputs/input-number/input-number.component.d.ts +17 -0
- package/lib/inputs/input-password/input-password.component.d.ts +11 -0
- package/lib/inputs/input-text/input-text.component.d.ts +8 -0
- package/lib/inputs/input-textarea/input-textarea.component.d.ts +15 -0
- package/lib/inputs/input-time/input-time.component.d.ts +9 -0
- package/lib/inputs/kvinputs.module.d.ts +21 -0
- package/lib/inputs/multi-select/multi-select.component.d.ts +19 -0
- package/lib/inputs/switch/switch.component.d.ts +10 -0
- package/lib/keevo-components.module.d.ts +8 -0
- package/package.json +47 -0
- package/public-api.d.ts +21 -0
- package/src/lib/api/base-components/base-component-button.d.ts +13 -0
- package/src/lib/api/base-components/base-component-dropdown.d.ts +31 -0
- package/src/lib/api/base-components/base-component-input.d.ts +26 -0
- package/src/lib/api/base-components/base-component.d.ts +21 -0
- package/src/lib/api/components/error/error.component.d.ts +12 -0
- package/src/lib/api/components/error/kverror.module.d.ts +10 -0
- package/src/lib/api/helpers/component-providers.d.ts +2 -0
- package/src/lib/api/helpers/translate-primeng.d.ts +4 -0
- package/src/lib/api/index.d.ts +5 -0
- package/src/lib/api/modules/primeng.module.d.ts +45 -0
- package/src/lib/api/public-api.d.ts +11 -0
- package/src/lib/api/services/component.service.d.ts +11 -0
- package/src/lib/api/services/object.service.d.ts +8 -0
|
@@ -0,0 +1,1046 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, Input, EventEmitter, Output, Injectable, ViewChildren, ContentChildren, forwardRef, NgModule, ViewChild } from '@angular/core';
|
|
3
|
+
import { Subject, of } from 'rxjs';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import * as i2$1 from '@angular/forms';
|
|
7
|
+
import { NgControl, FormControlName, FormGroupDirective, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i2 from 'primeng/dynamicdialog';
|
|
9
|
+
import { DynamicDialogModule, DialogService, DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
10
|
+
import { AccordionModule } from 'primeng/accordion';
|
|
11
|
+
import { AutoFocusModule } from 'primeng/autofocus';
|
|
12
|
+
import { BadgeModule } from 'primeng/badge';
|
|
13
|
+
import * as i1$1 from 'primeng/button';
|
|
14
|
+
import { ButtonModule } from 'primeng/button';
|
|
15
|
+
import * as i4$1 from 'primeng/calendar';
|
|
16
|
+
import { CalendarModule } from 'primeng/calendar';
|
|
17
|
+
import { CardModule } from 'primeng/card';
|
|
18
|
+
import { CarouselModule } from 'primeng/carousel';
|
|
19
|
+
import * as i4 from 'primeng/checkbox';
|
|
20
|
+
import { CheckboxModule } from 'primeng/checkbox';
|
|
21
|
+
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
22
|
+
import * as i6 from 'primeng/api';
|
|
23
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
24
|
+
import { ContextMenuModule } from 'primeng/contextmenu';
|
|
25
|
+
import { DialogModule } from 'primeng/dialog';
|
|
26
|
+
import * as i9 from 'primeng/divider';
|
|
27
|
+
import { DividerModule } from 'primeng/divider';
|
|
28
|
+
import * as i10 from 'primeng/dropdown';
|
|
29
|
+
import { DropdownModule } from 'primeng/dropdown';
|
|
30
|
+
import * as i4$2 from 'primeng/inputmask';
|
|
31
|
+
import { InputMaskModule } from 'primeng/inputmask';
|
|
32
|
+
import * as i4$3 from 'primeng/inputnumber';
|
|
33
|
+
import { InputNumberModule } from 'primeng/inputnumber';
|
|
34
|
+
import * as i4$8 from 'primeng/inputswitch';
|
|
35
|
+
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
36
|
+
import * as i4$5 from 'primeng/inputtext';
|
|
37
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
38
|
+
import * as i4$6 from 'primeng/inputtextarea';
|
|
39
|
+
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
40
|
+
import { MenuModule } from 'primeng/menu';
|
|
41
|
+
import { MessageModule } from 'primeng/message';
|
|
42
|
+
import { MessagesModule } from 'primeng/messages';
|
|
43
|
+
import * as i4$7 from 'primeng/multiselect';
|
|
44
|
+
import { MultiSelectModule } from 'primeng/multiselect';
|
|
45
|
+
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
|
46
|
+
import { PanelModule } from 'primeng/panel';
|
|
47
|
+
import * as i4$4 from 'primeng/password';
|
|
48
|
+
import { PasswordModule } from 'primeng/password';
|
|
49
|
+
import { PickListModule } from 'primeng/picklist';
|
|
50
|
+
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
51
|
+
import { RatingModule } from 'primeng/rating';
|
|
52
|
+
import * as i2$2 from 'primeng/ripple';
|
|
53
|
+
import { RippleModule } from 'primeng/ripple';
|
|
54
|
+
import { SidebarModule } from 'primeng/sidebar';
|
|
55
|
+
import { SkeletonModule } from 'primeng/skeleton';
|
|
56
|
+
import { SpeedDialModule } from 'primeng/speeddial';
|
|
57
|
+
import { SplitButtonModule } from 'primeng/splitbutton';
|
|
58
|
+
import { StepsModule } from 'primeng/steps';
|
|
59
|
+
import { TableModule } from 'primeng/table';
|
|
60
|
+
import { ToastModule } from 'primeng/toast';
|
|
61
|
+
import { ToolbarModule } from 'primeng/toolbar';
|
|
62
|
+
import * as i8 from 'primeng/tooltip';
|
|
63
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
64
|
+
|
|
65
|
+
class BaseComponent {
|
|
66
|
+
constructor() {
|
|
67
|
+
this.stateChanges = new Subject();
|
|
68
|
+
this.isRequired = false;
|
|
69
|
+
this.disabled = false;
|
|
70
|
+
}
|
|
71
|
+
set value(value) {
|
|
72
|
+
this._value = value;
|
|
73
|
+
if (this.onChange)
|
|
74
|
+
this.onChange(value);
|
|
75
|
+
this.stateChanges.next();
|
|
76
|
+
}
|
|
77
|
+
get value() {
|
|
78
|
+
return this._value;
|
|
79
|
+
}
|
|
80
|
+
registerOnChange(fn) {
|
|
81
|
+
this.onChange = fn;
|
|
82
|
+
}
|
|
83
|
+
registerOnTouched(fn) {
|
|
84
|
+
this.onTouched = fn;
|
|
85
|
+
}
|
|
86
|
+
setDisabledState(isDisabled) {
|
|
87
|
+
this.disabled = isDisabled;
|
|
88
|
+
}
|
|
89
|
+
writeValue(value) {
|
|
90
|
+
this.value = value;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
94
|
+
BaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BaseComponent, selector: "ng-component", inputs: { isRequired: ["required", "isRequired"], componentId: "componentId", label: "label", disabled: "disabled" }, ngImport: i0, template: '', isInline: true });
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponent, decorators: [{
|
|
96
|
+
type: Component,
|
|
97
|
+
args: [{
|
|
98
|
+
template: ''
|
|
99
|
+
}]
|
|
100
|
+
}], propDecorators: { isRequired: [{
|
|
101
|
+
type: Input,
|
|
102
|
+
args: ['required']
|
|
103
|
+
}], componentId: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], label: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], disabled: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}] } });
|
|
110
|
+
|
|
111
|
+
class BaseComponentButton {
|
|
112
|
+
constructor() {
|
|
113
|
+
this.icon = '';
|
|
114
|
+
this.label = '';
|
|
115
|
+
this.loading = false;
|
|
116
|
+
this.disabled = false;
|
|
117
|
+
this.onClick = new EventEmitter();
|
|
118
|
+
}
|
|
119
|
+
click(event) {
|
|
120
|
+
this.onClick.emit();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
BaseComponentButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponentButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
124
|
+
BaseComponentButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BaseComponentButton, selector: "ng-component", inputs: { icon: "icon", label: "label", loading: "loading", disabled: "disabled" }, outputs: { onClick: "onClick" }, ngImport: i0, template: '', isInline: true });
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponentButton, decorators: [{
|
|
126
|
+
type: Component,
|
|
127
|
+
args: [{
|
|
128
|
+
template: '',
|
|
129
|
+
}]
|
|
130
|
+
}], ctorParameters: function () { return []; }, propDecorators: { icon: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], label: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], loading: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], disabled: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], onClick: [{
|
|
139
|
+
type: Output
|
|
140
|
+
}] } });
|
|
141
|
+
|
|
142
|
+
class ErrorComponent {
|
|
143
|
+
set setHasError(value) {
|
|
144
|
+
this.hasError = value;
|
|
145
|
+
this.emitError.emit(value);
|
|
146
|
+
}
|
|
147
|
+
;
|
|
148
|
+
constructor() {
|
|
149
|
+
this.hasError = false;
|
|
150
|
+
this.emitError = new EventEmitter();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
154
|
+
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ErrorComponent, selector: "kv-error", inputs: { formControl: "formControl", setHasError: ["hasError", "setHasError"] }, ngImport: i0, template: "<small *ngIf=\"hasError\" id=\"error-message\" class=\"p-error block\">\r\n <ng-content></ng-content>\r\n</small>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
156
|
+
type: Component,
|
|
157
|
+
args: [{ selector: 'kv-error', template: "<small *ngIf=\"hasError\" id=\"error-message\" class=\"p-error block\">\r\n <ng-content></ng-content>\r\n</small>\r\n" }]
|
|
158
|
+
}], ctorParameters: function () { return []; }, propDecorators: { formControl: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], setHasError: [{
|
|
161
|
+
type: Input,
|
|
162
|
+
args: ['hasError']
|
|
163
|
+
}] } });
|
|
164
|
+
|
|
165
|
+
class ComponentService {
|
|
166
|
+
constructor(injector, changeDetectorRef) {
|
|
167
|
+
this.injector = injector;
|
|
168
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
169
|
+
}
|
|
170
|
+
getFormControl() {
|
|
171
|
+
try {
|
|
172
|
+
const control = this.injector.get(NgControl);
|
|
173
|
+
if (control.constructor === FormControlName) {
|
|
174
|
+
return this.injector.get(FormGroupDirective).getControl(control);
|
|
175
|
+
}
|
|
176
|
+
return undefined;
|
|
177
|
+
}
|
|
178
|
+
catch (ex) {
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
ComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ComponentService, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
184
|
+
ComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ComponentService });
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ComponentService, decorators: [{
|
|
186
|
+
type: Injectable
|
|
187
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }]; } });
|
|
188
|
+
|
|
189
|
+
class BaseComponentInput extends BaseComponent {
|
|
190
|
+
constructor(componentService) {
|
|
191
|
+
super();
|
|
192
|
+
this.componentService = componentService;
|
|
193
|
+
this.hasError = false;
|
|
194
|
+
this.placeholder = '';
|
|
195
|
+
this.onBlur = new EventEmitter();
|
|
196
|
+
}
|
|
197
|
+
get baseInputClass() {
|
|
198
|
+
return `${this.hasError ? 'ng-invalid ng-dirty' : ''} !important`;
|
|
199
|
+
}
|
|
200
|
+
erroMessage() {
|
|
201
|
+
if (!this.formControl?.errors)
|
|
202
|
+
return;
|
|
203
|
+
let message = '';
|
|
204
|
+
if (this.formControl.errors) {
|
|
205
|
+
const objErrors = this.formControl.errors;
|
|
206
|
+
if (objErrors.erroMessage)
|
|
207
|
+
message = objErrors.erroMessage;
|
|
208
|
+
}
|
|
209
|
+
return message;
|
|
210
|
+
}
|
|
211
|
+
getName(control) {
|
|
212
|
+
return Object.entries(control.parent?.controls ?? []).find(([_, value]) => value === control)?.[0] ?? null;
|
|
213
|
+
}
|
|
214
|
+
hasControlError() {
|
|
215
|
+
if (!this.formControl)
|
|
216
|
+
return false;
|
|
217
|
+
return (this.formControl.dirty || this.formControl.touched) && this.formControl.errors !== null;
|
|
218
|
+
}
|
|
219
|
+
ngAfterViewInit() {
|
|
220
|
+
this.viewErrors.forEach(c => {
|
|
221
|
+
c.emitError.subscribe(res => {
|
|
222
|
+
this.hasError = res;
|
|
223
|
+
this.componentService.changeDetectorRef.detectChanges();
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
ngAfterContentInit() {
|
|
228
|
+
this.contentErrors.forEach(c => {
|
|
229
|
+
c.emitError.subscribe(res => {
|
|
230
|
+
this.hasError = res;
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
ngOnInit() {
|
|
235
|
+
this.formControl = this.componentService.getFormControl();
|
|
236
|
+
}
|
|
237
|
+
onInputBlur(event) {
|
|
238
|
+
this.onTouched();
|
|
239
|
+
this.onBlur.emit(event);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
BaseComponentInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponentInput, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
+
BaseComponentInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BaseComponentInput, selector: "ng-component", inputs: { placeholder: "placeholder" }, outputs: { onBlur: "onBlur" }, queries: [{ propertyName: "contentErrors", predicate: ErrorComponent }], viewQueries: [{ propertyName: "viewErrors", predicate: ErrorComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponentInput, decorators: [{
|
|
245
|
+
type: Component,
|
|
246
|
+
args: [{
|
|
247
|
+
template: '',
|
|
248
|
+
}]
|
|
249
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { placeholder: [{
|
|
250
|
+
type: Input
|
|
251
|
+
}], onBlur: [{
|
|
252
|
+
type: Output
|
|
253
|
+
}], viewErrors: [{
|
|
254
|
+
type: ViewChildren,
|
|
255
|
+
args: [ErrorComponent]
|
|
256
|
+
}], contentErrors: [{
|
|
257
|
+
type: ContentChildren,
|
|
258
|
+
args: [ErrorComponent]
|
|
259
|
+
}] } });
|
|
260
|
+
|
|
261
|
+
class ObjectService {
|
|
262
|
+
static filterObject(array, propertyName, value) {
|
|
263
|
+
return array.filter((e) => {
|
|
264
|
+
return e[propertyName] === value;
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
static findObject(array, propertyName, value) {
|
|
268
|
+
return array.find((e) => {
|
|
269
|
+
return e[propertyName] === value;
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
static getProperty(obj, propertyName) {
|
|
273
|
+
return obj[propertyName];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
ObjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ObjectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
277
|
+
ObjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ObjectService, providedIn: 'root' });
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ObjectService, decorators: [{
|
|
279
|
+
type: Injectable,
|
|
280
|
+
args: [{
|
|
281
|
+
providedIn: 'root'
|
|
282
|
+
}]
|
|
283
|
+
}] });
|
|
284
|
+
|
|
285
|
+
class BaseComponentDropDown extends BaseComponentInput {
|
|
286
|
+
constructor(componentService, dialogService) {
|
|
287
|
+
super(componentService);
|
|
288
|
+
this.dialogService = dialogService;
|
|
289
|
+
this.addButton = false;
|
|
290
|
+
this.filter = true;
|
|
291
|
+
this.showClear = true;
|
|
292
|
+
this.onAddClick = new EventEmitter();
|
|
293
|
+
this.onSelectionChange = new EventEmitter();
|
|
294
|
+
this.onSelectionValue = new EventEmitter();
|
|
295
|
+
this.onClick = new EventEmitter();
|
|
296
|
+
}
|
|
297
|
+
ngOnInit() {
|
|
298
|
+
super.ngOnInit();
|
|
299
|
+
this.carregarCombo();
|
|
300
|
+
this.setPlaceHolder('Selecione um valor');
|
|
301
|
+
}
|
|
302
|
+
addClick(event) {
|
|
303
|
+
this.onAddClick.emit(event);
|
|
304
|
+
}
|
|
305
|
+
carregarCombo() {
|
|
306
|
+
this.listar().subscribe({
|
|
307
|
+
next: (data) => {
|
|
308
|
+
this.options = data;
|
|
309
|
+
this.filteredOptions = data;
|
|
310
|
+
},
|
|
311
|
+
error: (error) => { },
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
filterOptions(field, value) {
|
|
315
|
+
if (this.options) {
|
|
316
|
+
let lista = ObjectService.filterObject(this.options, field, value);
|
|
317
|
+
if (lista?.length > 0) {
|
|
318
|
+
of(lista).subscribe((opts) => {
|
|
319
|
+
this.filteredOptions = opts;
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
else
|
|
323
|
+
this.filteredOptions = [];
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
listar() { }
|
|
327
|
+
onInputClick(event) {
|
|
328
|
+
this.onClick.emit(event);
|
|
329
|
+
}
|
|
330
|
+
openDialog(componentType, width, height) {
|
|
331
|
+
const ref = this.dialogService.open(componentType, {
|
|
332
|
+
width: width || '70%',
|
|
333
|
+
height: height,
|
|
334
|
+
closable: false,
|
|
335
|
+
maximizable: true,
|
|
336
|
+
data: { popup: true },
|
|
337
|
+
});
|
|
338
|
+
ref.onClose.subscribe((id) => {
|
|
339
|
+
if (id) {
|
|
340
|
+
this.listar().subscribe((data) => {
|
|
341
|
+
this.options = data;
|
|
342
|
+
this.filteredOptions = data;
|
|
343
|
+
if (id)
|
|
344
|
+
this.formControl?.setValue(id);
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
selectionValue(event) {
|
|
350
|
+
this.onSelectionValue.emit(event);
|
|
351
|
+
let currentItem = null;
|
|
352
|
+
const controlName = this.getName(this.formControl);
|
|
353
|
+
if (controlName)
|
|
354
|
+
currentItem = ObjectService.findObject(this.options, controlName, event.value);
|
|
355
|
+
this.onSelectionChange.emit(currentItem);
|
|
356
|
+
}
|
|
357
|
+
setPlaceHolder(p) {
|
|
358
|
+
if (!this.placeholder)
|
|
359
|
+
this.placeholder = p;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
BaseComponentDropDown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponentDropDown, deps: [{ token: ComponentService }, { token: i2.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
363
|
+
BaseComponentDropDown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BaseComponentDropDown, selector: "ng-component", inputs: { options: "options", filteredOptions: "filteredOptions", optionLabel: "optionLabel", optionValue: "optionValue", addButton: "addButton", filter: "filter", showClear: "showClear" }, outputs: { onAddClick: "onAddClick", onSelectionChange: "onSelectionChange", onSelectionValue: "onSelectionValue", onClick: "onClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BaseComponentDropDown, decorators: [{
|
|
365
|
+
type: Component,
|
|
366
|
+
args: [{
|
|
367
|
+
template: '',
|
|
368
|
+
}]
|
|
369
|
+
}], ctorParameters: function () { return [{ type: ComponentService }, { type: i2.DialogService }]; }, propDecorators: { options: [{
|
|
370
|
+
type: Input
|
|
371
|
+
}], filteredOptions: [{
|
|
372
|
+
type: Input
|
|
373
|
+
}], optionLabel: [{
|
|
374
|
+
type: Input
|
|
375
|
+
}], optionValue: [{
|
|
376
|
+
type: Input
|
|
377
|
+
}], addButton: [{
|
|
378
|
+
type: Input
|
|
379
|
+
}], filter: [{
|
|
380
|
+
type: Input
|
|
381
|
+
}], showClear: [{
|
|
382
|
+
type: Input
|
|
383
|
+
}], onAddClick: [{
|
|
384
|
+
type: Output
|
|
385
|
+
}], onSelectionChange: [{
|
|
386
|
+
type: Output
|
|
387
|
+
}], onSelectionValue: [{
|
|
388
|
+
type: Output
|
|
389
|
+
}], onClick: [{
|
|
390
|
+
type: Output
|
|
391
|
+
}] } });
|
|
392
|
+
|
|
393
|
+
function ComponentProviders(ref) {
|
|
394
|
+
return [
|
|
395
|
+
{
|
|
396
|
+
provide: NG_VALUE_ACCESSOR,
|
|
397
|
+
useExisting: forwardRef(() => ref),
|
|
398
|
+
multi: true,
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
provide: ComponentService
|
|
402
|
+
}
|
|
403
|
+
];
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
class TranslatePrimeng {
|
|
407
|
+
config(config) {
|
|
408
|
+
config.ripple = true;
|
|
409
|
+
config.setTranslation({
|
|
410
|
+
monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
411
|
+
monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
|
|
412
|
+
dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sabádo'],
|
|
413
|
+
dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
|
414
|
+
dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
|
415
|
+
today: 'Hoje',
|
|
416
|
+
weekHeader: 'Semana',
|
|
417
|
+
emptyMessage: 'Nenhum resultado encontrado',
|
|
418
|
+
emptyFilterMessage: 'Nenhum registro encontrado com o filtro informado',
|
|
419
|
+
weak: 'Fraca',
|
|
420
|
+
medium: 'Média',
|
|
421
|
+
strong: 'Forte',
|
|
422
|
+
passwordPrompt: 'Informe a senha',
|
|
423
|
+
clear: 'Limpar',
|
|
424
|
+
apply: 'Aplicar'
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
class PrimeNgModule {
|
|
430
|
+
}
|
|
431
|
+
PrimeNgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PrimeNgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
432
|
+
PrimeNgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: PrimeNgModule, exports: [AccordionModule,
|
|
433
|
+
AutoFocusModule,
|
|
434
|
+
BadgeModule,
|
|
435
|
+
ButtonModule,
|
|
436
|
+
CalendarModule,
|
|
437
|
+
CardModule,
|
|
438
|
+
CarouselModule,
|
|
439
|
+
CheckboxModule,
|
|
440
|
+
ConfirmDialogModule,
|
|
441
|
+
ContextMenuModule,
|
|
442
|
+
DialogModule,
|
|
443
|
+
DividerModule,
|
|
444
|
+
DropdownModule,
|
|
445
|
+
DynamicDialogModule,
|
|
446
|
+
InputMaskModule,
|
|
447
|
+
InputNumberModule,
|
|
448
|
+
InputSwitchModule,
|
|
449
|
+
InputTextModule,
|
|
450
|
+
InputTextareaModule,
|
|
451
|
+
MenuModule,
|
|
452
|
+
MessageModule,
|
|
453
|
+
MessagesModule,
|
|
454
|
+
MultiSelectModule,
|
|
455
|
+
OverlayPanelModule,
|
|
456
|
+
OverlayPanelModule,
|
|
457
|
+
PanelModule,
|
|
458
|
+
PasswordModule,
|
|
459
|
+
PickListModule,
|
|
460
|
+
RadioButtonModule,
|
|
461
|
+
RatingModule,
|
|
462
|
+
RippleModule,
|
|
463
|
+
SidebarModule,
|
|
464
|
+
SkeletonModule,
|
|
465
|
+
SpeedDialModule,
|
|
466
|
+
SplitButtonModule,
|
|
467
|
+
StepsModule,
|
|
468
|
+
TableModule,
|
|
469
|
+
ToastModule,
|
|
470
|
+
ToolbarModule,
|
|
471
|
+
TooltipModule] });
|
|
472
|
+
PrimeNgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PrimeNgModule, providers: [
|
|
473
|
+
ConfirmationService,
|
|
474
|
+
DialogService,
|
|
475
|
+
DynamicDialogRef,
|
|
476
|
+
DynamicDialogConfig,
|
|
477
|
+
MessageService,
|
|
478
|
+
], imports: [AccordionModule,
|
|
479
|
+
AutoFocusModule,
|
|
480
|
+
BadgeModule,
|
|
481
|
+
ButtonModule,
|
|
482
|
+
CalendarModule,
|
|
483
|
+
CardModule,
|
|
484
|
+
CarouselModule,
|
|
485
|
+
CheckboxModule,
|
|
486
|
+
ConfirmDialogModule,
|
|
487
|
+
ContextMenuModule,
|
|
488
|
+
DialogModule,
|
|
489
|
+
DividerModule,
|
|
490
|
+
DropdownModule,
|
|
491
|
+
DynamicDialogModule,
|
|
492
|
+
InputMaskModule,
|
|
493
|
+
InputNumberModule,
|
|
494
|
+
InputSwitchModule,
|
|
495
|
+
InputTextModule,
|
|
496
|
+
InputTextareaModule,
|
|
497
|
+
MenuModule,
|
|
498
|
+
MessageModule,
|
|
499
|
+
MessagesModule,
|
|
500
|
+
MultiSelectModule,
|
|
501
|
+
OverlayPanelModule,
|
|
502
|
+
OverlayPanelModule,
|
|
503
|
+
PanelModule,
|
|
504
|
+
PasswordModule,
|
|
505
|
+
PickListModule,
|
|
506
|
+
RadioButtonModule,
|
|
507
|
+
RatingModule,
|
|
508
|
+
RippleModule,
|
|
509
|
+
SidebarModule,
|
|
510
|
+
SkeletonModule,
|
|
511
|
+
SpeedDialModule,
|
|
512
|
+
SplitButtonModule,
|
|
513
|
+
StepsModule,
|
|
514
|
+
TableModule,
|
|
515
|
+
ToastModule,
|
|
516
|
+
ToolbarModule,
|
|
517
|
+
TooltipModule] });
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PrimeNgModule, decorators: [{
|
|
519
|
+
type: NgModule,
|
|
520
|
+
args: [{
|
|
521
|
+
exports: [
|
|
522
|
+
AccordionModule,
|
|
523
|
+
AutoFocusModule,
|
|
524
|
+
BadgeModule,
|
|
525
|
+
ButtonModule,
|
|
526
|
+
CalendarModule,
|
|
527
|
+
CardModule,
|
|
528
|
+
CarouselModule,
|
|
529
|
+
CheckboxModule,
|
|
530
|
+
ConfirmDialogModule,
|
|
531
|
+
ContextMenuModule,
|
|
532
|
+
DialogModule,
|
|
533
|
+
DividerModule,
|
|
534
|
+
DropdownModule,
|
|
535
|
+
DynamicDialogModule,
|
|
536
|
+
InputMaskModule,
|
|
537
|
+
InputNumberModule,
|
|
538
|
+
InputSwitchModule,
|
|
539
|
+
InputTextModule,
|
|
540
|
+
InputTextareaModule,
|
|
541
|
+
MenuModule,
|
|
542
|
+
MessageModule,
|
|
543
|
+
MessagesModule,
|
|
544
|
+
MultiSelectModule,
|
|
545
|
+
OverlayPanelModule,
|
|
546
|
+
OverlayPanelModule,
|
|
547
|
+
PanelModule,
|
|
548
|
+
PasswordModule,
|
|
549
|
+
PickListModule,
|
|
550
|
+
RadioButtonModule,
|
|
551
|
+
RatingModule,
|
|
552
|
+
RippleModule,
|
|
553
|
+
SidebarModule,
|
|
554
|
+
SkeletonModule,
|
|
555
|
+
SpeedDialModule,
|
|
556
|
+
SplitButtonModule,
|
|
557
|
+
StepsModule,
|
|
558
|
+
TableModule,
|
|
559
|
+
ToastModule,
|
|
560
|
+
ToolbarModule,
|
|
561
|
+
TooltipModule,
|
|
562
|
+
],
|
|
563
|
+
providers: [
|
|
564
|
+
ConfirmationService,
|
|
565
|
+
DialogService,
|
|
566
|
+
DynamicDialogRef,
|
|
567
|
+
DynamicDialogConfig,
|
|
568
|
+
MessageService,
|
|
569
|
+
]
|
|
570
|
+
}]
|
|
571
|
+
}] });
|
|
572
|
+
|
|
573
|
+
class kvErrorModule {
|
|
574
|
+
}
|
|
575
|
+
kvErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: kvErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
576
|
+
kvErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: kvErrorModule, declarations: [ErrorComponent], imports: [CommonModule,
|
|
577
|
+
FormsModule,
|
|
578
|
+
PrimeNgModule,
|
|
579
|
+
ReactiveFormsModule], exports: [ErrorComponent] });
|
|
580
|
+
kvErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: kvErrorModule, imports: [CommonModule,
|
|
581
|
+
FormsModule,
|
|
582
|
+
PrimeNgModule,
|
|
583
|
+
ReactiveFormsModule] });
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: kvErrorModule, decorators: [{
|
|
585
|
+
type: NgModule,
|
|
586
|
+
args: [{
|
|
587
|
+
declarations: [
|
|
588
|
+
ErrorComponent,
|
|
589
|
+
],
|
|
590
|
+
imports: [
|
|
591
|
+
CommonModule,
|
|
592
|
+
FormsModule,
|
|
593
|
+
PrimeNgModule,
|
|
594
|
+
ReactiveFormsModule,
|
|
595
|
+
],
|
|
596
|
+
exports: [
|
|
597
|
+
ErrorComponent,
|
|
598
|
+
]
|
|
599
|
+
}]
|
|
600
|
+
}] });
|
|
601
|
+
|
|
602
|
+
class CheckComponent extends BaseComponentInput {
|
|
603
|
+
constructor(componentService) {
|
|
604
|
+
super(componentService);
|
|
605
|
+
this.onCheckChange = new EventEmitter();
|
|
606
|
+
}
|
|
607
|
+
emitOnCheckChange(event) {
|
|
608
|
+
this.onCheckChange.emit(event);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
CheckComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CheckComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
612
|
+
CheckComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: CheckComponent, selector: "kv-check", outputs: { onCheckChange: "onCheckChange" }, providers: ComponentProviders(CheckComponent), usesInheritance: true, ngImport: i0, template: "<div class=\"field-checkbox\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [disabled]=\"disabled\"\r\n [label]=\"label\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n (onChange)=\"emitOnCheckChange($event)\">\r\n </p-checkbox>\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4.Checkbox, selector: "p-checkbox", inputs: ["value", "name", "disabled", "binary", "label", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "styleClass", "labelStyleClass", "formControl", "checkboxIcon", "readonly", "required", "trueValue", "falseValue"], outputs: ["onChange"] }] });
|
|
613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CheckComponent, decorators: [{
|
|
614
|
+
type: Component,
|
|
615
|
+
args: [{ selector: 'kv-check', providers: ComponentProviders(CheckComponent), template: "<div class=\"field-checkbox\">\r\n <p-checkbox\r\n [binary]=\"true\"\r\n [disabled]=\"disabled\"\r\n [label]=\"label\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n (onChange)=\"emitOnCheckChange($event)\">\r\n </p-checkbox>\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</div>\r\n" }]
|
|
616
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { onCheckChange: [{
|
|
617
|
+
type: Output
|
|
618
|
+
}] } });
|
|
619
|
+
|
|
620
|
+
class DropdownComponent extends BaseComponentDropDown {
|
|
621
|
+
constructor(componentService, dialogService) {
|
|
622
|
+
super(componentService, dialogService);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, deps: [{ token: ComponentService }, { token: i2.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
626
|
+
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DropdownComponent, selector: "kv-dropdown", providers: ComponentProviders(DropdownComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n\r\n <p-dropdown\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [filter]=\"filter\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [options]=\"filteredOptions\"\r\n [optionLabel]=\"optionLabel\"\r\n [optionValue]=\"optionValue\"\r\n [showClear]=\"showClear\"\r\n [lazy]=\"true\"\r\n scrollHeight=\"100px\"\r\n (onBlur)=\"onInputBlur($event)\"\r\n (onClick)=\"onInputClick($event)\"\r\n (onChange)=\"selectionValue($event)\">\r\n\r\n <ng-template *ngIf=\"addButton\" pTemplate=\"footer\">\r\n <p-divider></p-divider>\r\n <div class=\"flex flex-wrap card-container p-1\">\r\n <div class=\"flex justify-content-center\">\r\n <button\r\n pButton\r\n label=\"Incluir\"\r\n pTooltip=\"Clique aqui para incluir um novo registro\"\r\n tooltipPosition=\"bottom\"\r\n icon=\"pi pi-plus\"\r\n class=\"p-button-rounded p-button-success mr-2\"\r\n (click)=\"addClick($event)\"></button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </p-dropdown>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "directive", type: i6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i8.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i9.Divider, selector: "p-divider", inputs: ["styleClass", "style", "layout", "type", "align"] }, { kind: "component", type: i10.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
|
|
627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
628
|
+
type: Component,
|
|
629
|
+
args: [{ selector: 'kv-dropdown', providers: ComponentProviders(DropdownComponent), template: "<span class=\"p-float-label\">\r\n\r\n <p-dropdown\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [filter]=\"filter\"\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [options]=\"filteredOptions\"\r\n [optionLabel]=\"optionLabel\"\r\n [optionValue]=\"optionValue\"\r\n [showClear]=\"showClear\"\r\n [lazy]=\"true\"\r\n scrollHeight=\"100px\"\r\n (onBlur)=\"onInputBlur($event)\"\r\n (onClick)=\"onInputClick($event)\"\r\n (onChange)=\"selectionValue($event)\">\r\n\r\n <ng-template *ngIf=\"addButton\" pTemplate=\"footer\">\r\n <p-divider></p-divider>\r\n <div class=\"flex flex-wrap card-container p-1\">\r\n <div class=\"flex justify-content-center\">\r\n <button\r\n pButton\r\n label=\"Incluir\"\r\n pTooltip=\"Clique aqui para incluir um novo registro\"\r\n tooltipPosition=\"bottom\"\r\n icon=\"pi pi-plus\"\r\n class=\"p-button-rounded p-button-success mr-2\"\r\n (click)=\"addClick($event)\"></button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </p-dropdown>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
630
|
+
}], ctorParameters: function () { return [{ type: ComponentService }, { type: i2.DialogService }]; } });
|
|
631
|
+
|
|
632
|
+
class InputCalendarComponent extends BaseComponentInput {
|
|
633
|
+
constructor(componentService) {
|
|
634
|
+
super(componentService);
|
|
635
|
+
this.isYear = false;
|
|
636
|
+
this.isMonthYear = false;
|
|
637
|
+
this.showButtonBar = false;
|
|
638
|
+
this.showIcon = true;
|
|
639
|
+
this.selectionMode = 'single';
|
|
640
|
+
this.typeView = 'date';
|
|
641
|
+
this.dateFormat = 'dd/mm/yy';
|
|
642
|
+
}
|
|
643
|
+
writeValue(value) {
|
|
644
|
+
this.value = value;
|
|
645
|
+
if (value && typeof value === 'string') {
|
|
646
|
+
this.value = new Date(value);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
ngOnInit() {
|
|
650
|
+
super.ngOnInit();
|
|
651
|
+
if (this.isYear) {
|
|
652
|
+
this.typeView = "year";
|
|
653
|
+
this.dateFormat = 'yy';
|
|
654
|
+
}
|
|
655
|
+
else if (this.isMonthYear) {
|
|
656
|
+
this.typeView = 'month';
|
|
657
|
+
this.dateFormat = 'mm/yy';
|
|
658
|
+
}
|
|
659
|
+
else {
|
|
660
|
+
this.typeView = 'date';
|
|
661
|
+
this.dateFormat = 'dd/mm/yy';
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
InputCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
666
|
+
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", selectionMode: "selectionMode" }, providers: ComponentProviders(InputCalendarComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n\r\n <p-calendar\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [selectionMode]=\"selectionMode\"\r\n [showButtonBar]=\"showButtonBar\"\r\n [showIcon]=\"showIcon\"\r\n [view]=\"typeView\"\r\n [dateFormat]=\"dateFormat\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-calendar>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$1.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"] }] });
|
|
667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputCalendarComponent, decorators: [{
|
|
668
|
+
type: Component,
|
|
669
|
+
args: [{ selector: 'kv-input-calendar', providers: ComponentProviders(InputCalendarComponent), template: "<span class=\"p-float-label\">\r\n\r\n <p-calendar\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n [minDate]=\"minDate\"\r\n [maxDate]=\"maxDate\"\r\n [selectionMode]=\"selectionMode\"\r\n [showButtonBar]=\"showButtonBar\"\r\n [showIcon]=\"showIcon\"\r\n [view]=\"typeView\"\r\n [dateFormat]=\"dateFormat\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-calendar>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
670
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { isYear: [{
|
|
671
|
+
type: Input
|
|
672
|
+
}], isMonthYear: [{
|
|
673
|
+
type: Input
|
|
674
|
+
}], minDate: [{
|
|
675
|
+
type: Input
|
|
676
|
+
}], maxDate: [{
|
|
677
|
+
type: Input
|
|
678
|
+
}], showButtonBar: [{
|
|
679
|
+
type: Input
|
|
680
|
+
}], showIcon: [{
|
|
681
|
+
type: Input
|
|
682
|
+
}], selectionMode: [{
|
|
683
|
+
type: Input
|
|
684
|
+
}] } });
|
|
685
|
+
|
|
686
|
+
class InputMaskComponent extends BaseComponentInput {
|
|
687
|
+
constructor(componentService) {
|
|
688
|
+
super(componentService);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
InputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
692
|
+
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\">\r\n\r\n <p-inputMask\r\n [class]=\"baseInputClass\"\r\n [inputId]=\"componentId\"\r\n [placeholder]=\"placeholder\"\r\n [(ngModel)]=\"value\"\r\n [mask]=\"mask\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-inputMask>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$2.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"] }] });
|
|
693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
694
|
+
type: Component,
|
|
695
|
+
args: [{ selector: 'kv-input-mask', providers: ComponentProviders(InputMaskComponent), template: "<span class=\"p-float-label\">\r\n\r\n <p-inputMask\r\n [class]=\"baseInputClass\"\r\n [inputId]=\"componentId\"\r\n [placeholder]=\"placeholder\"\r\n [(ngModel)]=\"value\"\r\n [mask]=\"mask\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-inputMask>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
696
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { mask: [{
|
|
697
|
+
type: Input
|
|
698
|
+
}] } });
|
|
699
|
+
|
|
700
|
+
class InputNumberComponent extends BaseComponentInput {
|
|
701
|
+
constructor(componentService) {
|
|
702
|
+
super(componentService);
|
|
703
|
+
this.mode = 'decimal';
|
|
704
|
+
this.digits = 0;
|
|
705
|
+
this.min = 0;
|
|
706
|
+
}
|
|
707
|
+
ngOnInit() {
|
|
708
|
+
super.ngOnInit();
|
|
709
|
+
this.inputNumber.mode = this.mode;
|
|
710
|
+
this.inputNumber.locale = 'pt-BR';
|
|
711
|
+
switch (this.mode) {
|
|
712
|
+
case 'decimal':
|
|
713
|
+
this.configDecimal();
|
|
714
|
+
break;
|
|
715
|
+
case 'currency':
|
|
716
|
+
this.configCurrency();
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
configDecimal() {
|
|
721
|
+
if (!this.digits)
|
|
722
|
+
this.inputNumber.useGrouping = false;
|
|
723
|
+
this.inputNumber.minFractionDigits = this.digits;
|
|
724
|
+
this.inputNumber.maxFractionDigits = this.digits;
|
|
725
|
+
}
|
|
726
|
+
configCurrency() {
|
|
727
|
+
this.inputNumber.currency = 'BRL';
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
InputNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
731
|
+
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\">\r\n <p-inputNumber\r\n #inputNumber\r\n [class]=\"baseInputClass\"\r\n [inputId]=\"componentId\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [(ngModel)]=\"value\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-inputNumber>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$3.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"] }] });
|
|
732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
733
|
+
type: Component,
|
|
734
|
+
args: [{ selector: 'kv-input-number', providers: ComponentProviders(InputNumberComponent), template: "<span class=\"p-float-label\">\r\n <p-inputNumber\r\n #inputNumber\r\n [class]=\"baseInputClass\"\r\n [inputId]=\"componentId\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [(ngModel)]=\"value\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-inputNumber>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
735
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { mode: [{
|
|
736
|
+
type: Input
|
|
737
|
+
}], digits: [{
|
|
738
|
+
type: Input
|
|
739
|
+
}], min: [{
|
|
740
|
+
type: Input
|
|
741
|
+
}], max: [{
|
|
742
|
+
type: Input
|
|
743
|
+
}], inputNumber: [{
|
|
744
|
+
type: ViewChild,
|
|
745
|
+
args: ['inputNumber', { static: true }]
|
|
746
|
+
}] } });
|
|
747
|
+
|
|
748
|
+
class InputPasswordComponent extends BaseComponentInput {
|
|
749
|
+
constructor(componentService) {
|
|
750
|
+
super(componentService);
|
|
751
|
+
this.feedback = false;
|
|
752
|
+
this.mediumRegex = '';
|
|
753
|
+
this.strongRegex = '';
|
|
754
|
+
this.toggleMask = true;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputPasswordComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
758
|
+
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 class=\"p-float-label\">\r\n <p-password\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n [toggleMask]=\"toggleMask\"\r\n [feedback]=\"feedback\"\r\n [mediumRegex]=\"mediumRegex\"\r\n [strongRegex]=\"strongRegex\"\r\n (blur)=\"onInputBlur($event)\">\r\n </p-password>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$4.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"] }] });
|
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputPasswordComponent, decorators: [{
|
|
760
|
+
type: Component,
|
|
761
|
+
args: [{ selector: 'kv-input-password', providers: ComponentProviders(InputPasswordComponent), template: "<span class=\"p-float-label\">\r\n <p-password\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n [toggleMask]=\"toggleMask\"\r\n [feedback]=\"feedback\"\r\n [mediumRegex]=\"mediumRegex\"\r\n [strongRegex]=\"strongRegex\"\r\n (blur)=\"onInputBlur($event)\">\r\n </p-password>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
762
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { feedback: [{
|
|
763
|
+
type: Input
|
|
764
|
+
}], mediumRegex: [{
|
|
765
|
+
type: Input
|
|
766
|
+
}], strongRegex: [{
|
|
767
|
+
type: Input
|
|
768
|
+
}], toggleMask: [{
|
|
769
|
+
type: Input
|
|
770
|
+
}] } });
|
|
771
|
+
|
|
772
|
+
class InputTextComponent extends BaseComponentInput {
|
|
773
|
+
constructor(componentService) {
|
|
774
|
+
super(componentService);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
InputTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputTextComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
778
|
+
InputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputTextComponent, selector: "kv-input-text", providers: ComponentProviders(InputTextComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n (blur)=\"onInputBlur($event)\">\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [".div-pai{display:flex;flex-direction:row;column-gap:.25rem;padding-right:0}.div-input{width:100%}.div-button{width:20%}.div-button button{width:100%}\n"], dependencies: [{ kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "directive", type: i4$5.InputText, selector: "[pInputText]" }] });
|
|
779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputTextComponent, decorators: [{
|
|
780
|
+
type: Component,
|
|
781
|
+
args: [{ selector: 'kv-input-text', providers: ComponentProviders(InputTextComponent), template: "<span class=\"p-float-label\">\r\n <input\r\n pInputText\r\n type=\"text\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n (blur)=\"onInputBlur($event)\">\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [".div-pai{display:flex;flex-direction:row;column-gap:.25rem;padding-right:0}.div-input{width:100%}.div-button{width:20%}.div-button button{width:100%}\n"] }]
|
|
782
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; } });
|
|
783
|
+
|
|
784
|
+
class InputTextareaComponent extends BaseComponentInput {
|
|
785
|
+
constructor(componentService) {
|
|
786
|
+
super(componentService);
|
|
787
|
+
this.multiline = false;
|
|
788
|
+
this.rows = 2;
|
|
789
|
+
this.cols = 20;
|
|
790
|
+
this.autoResize = false;
|
|
791
|
+
this.maxValueLength = 0;
|
|
792
|
+
this.counterValueLength = 0;
|
|
793
|
+
}
|
|
794
|
+
ngOnInit() {
|
|
795
|
+
super.ngOnInit();
|
|
796
|
+
this.formControl?.valueChanges.subscribe((value) => {
|
|
797
|
+
this.counterValueLength = value?.length;
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
InputTextareaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputTextareaComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
802
|
+
InputTextareaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputTextareaComponent, selector: "kv-input-textarea", inputs: { multiline: "multiline", rows: "rows", cols: "cols", autoResize: "autoResize", maxValueLength: "maxValueLength" }, providers: ComponentProviders(InputTextareaComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n <textarea\r\n pInputTextarea\r\n [autoResize]=\"autoResize\"\r\n [class]=\"baseInputClass\"\r\n [cols]=\"cols\"\r\n [disabled]=\"disabled\"\r\n [id]=\"componentId\"\r\n [rows]=\"rows\"\r\n [(ngModel)]=\"value\"\r\n (blur)=\"onInputBlur($event)\">\r\n </textarea>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "directive", type: i4$6.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }] });
|
|
803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputTextareaComponent, decorators: [{
|
|
804
|
+
type: Component,
|
|
805
|
+
args: [{ selector: 'kv-input-textarea', providers: ComponentProviders(InputTextareaComponent), template: "<span class=\"p-float-label\">\r\n <textarea\r\n pInputTextarea\r\n [autoResize]=\"autoResize\"\r\n [class]=\"baseInputClass\"\r\n [cols]=\"cols\"\r\n [disabled]=\"disabled\"\r\n [id]=\"componentId\"\r\n [rows]=\"rows\"\r\n [(ngModel)]=\"value\"\r\n (blur)=\"onInputBlur($event)\">\r\n </textarea>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
806
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { multiline: [{
|
|
807
|
+
type: Input
|
|
808
|
+
}], rows: [{
|
|
809
|
+
type: Input
|
|
810
|
+
}], cols: [{
|
|
811
|
+
type: Input
|
|
812
|
+
}], autoResize: [{
|
|
813
|
+
type: Input
|
|
814
|
+
}], maxValueLength: [{
|
|
815
|
+
type: Input
|
|
816
|
+
}] } });
|
|
817
|
+
|
|
818
|
+
class InputTimeComponent extends BaseComponentInput {
|
|
819
|
+
constructor(componentService) {
|
|
820
|
+
super(componentService);
|
|
821
|
+
this.showIcon = true;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
InputTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputTimeComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
825
|
+
InputTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: InputTimeComponent, selector: "kv-input-time", inputs: { showIcon: "showIcon" }, providers: ComponentProviders(InputTimeComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n\r\n <p-calendar\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n [showIcon]=\"showIcon\"\r\n [showTime]=\"true\"\r\n [timeOnly]=\"true\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-calendar>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$1.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"] }] });
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InputTimeComponent, decorators: [{
|
|
827
|
+
type: Component,
|
|
828
|
+
args: [{ selector: 'kv-input-time', providers: ComponentProviders(InputTimeComponent), template: "<span class=\"p-float-label\">\r\n\r\n <p-calendar\r\n appendTo=\"body\"\r\n [class]=\"baseInputClass\"\r\n [id]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n [showIcon]=\"showIcon\"\r\n [showTime]=\"true\"\r\n [timeOnly]=\"true\"\r\n (onBlur)=\"onInputBlur($event)\">\r\n </p-calendar>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
829
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { showIcon: [{
|
|
830
|
+
type: Input
|
|
831
|
+
}] } });
|
|
832
|
+
|
|
833
|
+
class MultiSelectComponent extends BaseComponentInput {
|
|
834
|
+
constructor(componentService) {
|
|
835
|
+
super(componentService);
|
|
836
|
+
this.filter = false;
|
|
837
|
+
this.showClear = false;
|
|
838
|
+
this.onSelectionChange = new EventEmitter();
|
|
839
|
+
this.onPanelHide = new EventEmitter();
|
|
840
|
+
}
|
|
841
|
+
ngOnInit() {
|
|
842
|
+
super.ngOnInit();
|
|
843
|
+
}
|
|
844
|
+
get baseInputClass() {
|
|
845
|
+
return `p-multiselect-sm ${this.hasError ? 'ng-invalid ng-dirty' : ''}`;
|
|
846
|
+
}
|
|
847
|
+
selectionChange(event) {
|
|
848
|
+
this.onSelectionChange.emit(event);
|
|
849
|
+
}
|
|
850
|
+
panelHide(event) {
|
|
851
|
+
this.onPanelHide.emit(event);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
MultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MultiSelectComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
855
|
+
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: MultiSelectComponent, selector: "kv-multi-select", inputs: { options: "options", optionLabel: "optionLabel", optionValue: "optionValue", filter: "filter", showClear: "showClear" }, outputs: { onSelectionChange: "onSelectionChange", onPanelHide: "onPanelHide" }, providers: ComponentProviders(MultiSelectComponent), usesInheritance: true, ngImport: i0, template: "<span class=\"p-float-label\">\r\n <p-multiSelect\r\n appendTo=\"body\"\r\n display=\"chip\"\r\n inputId=\"multiselect\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [options]=\"options\"\r\n [optionLabel]=\"optionLabel\"\r\n [optionValue]=\"optionValue\"\r\n [filter]=\"filter\"\r\n [showClear]=\"showClear\"\r\n [(ngModel)]=\"value\"\r\n (onChange)=\"selectionChange($event)\"\r\n (onPanelHide)=\"panelHide($event)\">\r\n </p-multiSelect>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$7.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "label", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "defaultLabel", "placeholder", "options", "filterValue", "itemSize"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove"] }] });
|
|
856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MultiSelectComponent, decorators: [{
|
|
857
|
+
type: Component,
|
|
858
|
+
args: [{ selector: 'kv-multi-select', providers: ComponentProviders(MultiSelectComponent), template: "<span class=\"p-float-label\">\r\n <p-multiSelect\r\n appendTo=\"body\"\r\n display=\"chip\"\r\n inputId=\"multiselect\"\r\n [class]=\"baseInputClass\"\r\n [disabled]=\"disabled\"\r\n [options]=\"options\"\r\n [optionLabel]=\"optionLabel\"\r\n [optionValue]=\"optionValue\"\r\n [filter]=\"filter\"\r\n [showClear]=\"showClear\"\r\n [(ngModel)]=\"value\"\r\n (onChange)=\"selectionChange($event)\"\r\n (onPanelHide)=\"panelHide($event)\">\r\n </p-multiSelect>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</span>\r\n<ng-content></ng-content>\r\n" }]
|
|
859
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { options: [{
|
|
860
|
+
type: Input
|
|
861
|
+
}], optionLabel: [{
|
|
862
|
+
type: Input
|
|
863
|
+
}], optionValue: [{
|
|
864
|
+
type: Input
|
|
865
|
+
}], filter: [{
|
|
866
|
+
type: Input
|
|
867
|
+
}], showClear: [{
|
|
868
|
+
type: Input
|
|
869
|
+
}], onSelectionChange: [{
|
|
870
|
+
type: Output
|
|
871
|
+
}], onPanelHide: [{
|
|
872
|
+
type: Output
|
|
873
|
+
}] } });
|
|
874
|
+
|
|
875
|
+
class SwitchComponent extends BaseComponentInput {
|
|
876
|
+
constructor(componentService) {
|
|
877
|
+
super(componentService);
|
|
878
|
+
this.onSwitchChange = new EventEmitter();
|
|
879
|
+
}
|
|
880
|
+
emitOnSwitchChange(event) {
|
|
881
|
+
this.onSwitchChange.emit(event);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SwitchComponent, deps: [{ token: ComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
885
|
+
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: SwitchComponent, selector: "kv-switch", outputs: { onSwitchChange: "onSwitchChange" }, providers: ComponentProviders(SwitchComponent), usesInheritance: true, ngImport: i0, template: "<div class=\"center field-checkbox\">\r\n\r\n <p-inputSwitch\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\">\r\n </p-inputSwitch>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</div>\r\n", styles: ["p-inputSwitch{padding-right:.5rem}\n"], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ErrorComponent, selector: "kv-error", inputs: ["formControl", "hasError"] }, { kind: "component", type: i4$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabel", "ariaLabelledBy"], outputs: ["onChange"] }] });
|
|
886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
887
|
+
type: Component,
|
|
888
|
+
args: [{ selector: 'kv-switch', providers: ComponentProviders(SwitchComponent), template: "<div class=\"center field-checkbox\">\r\n\r\n <p-inputSwitch\r\n [inputId]=\"componentId\"\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\">\r\n </p-inputSwitch>\r\n <label [for]=\"componentId\">{{ label }}</label>\r\n\r\n <kv-error [hasError]=\"hasControlError()\">{{ erroMessage() }}</kv-error>\r\n</div>\r\n", styles: ["p-inputSwitch{padding-right:.5rem}\n"] }]
|
|
889
|
+
}], ctorParameters: function () { return [{ type: ComponentService }]; }, propDecorators: { onSwitchChange: [{
|
|
890
|
+
type: Output
|
|
891
|
+
}] } });
|
|
892
|
+
|
|
893
|
+
class ButtonSecondaryComponent extends BaseComponentButton {
|
|
894
|
+
constructor() {
|
|
895
|
+
super();
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
ButtonSecondaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonSecondaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
899
|
+
ButtonSecondaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ButtonSecondaryComponent, selector: "kv-button-secondary", usesInheritance: true, ngImport: i0, template: "<button\r\n pButton\r\n pRipple\r\n class=\"btn-secondary\"\r\n [icon]=\"icon\"\r\n [label]=\"label\"\r\n [loading]=\"loading\"\r\n (click)=\"click($event)\">\r\n</button>\r\n", styles: [".btn-secondary{background-color:#f2f3f5!important;color:#000000de!important}.btn-secondary:hover{background-color:#ef5350!important;color:#fff!important}.btn-secondary:disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i2$2.Ripple, selector: "[pRipple]" }] });
|
|
900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonSecondaryComponent, decorators: [{
|
|
901
|
+
type: Component,
|
|
902
|
+
args: [{ selector: 'kv-button-secondary', template: "<button\r\n pButton\r\n pRipple\r\n class=\"btn-secondary\"\r\n [icon]=\"icon\"\r\n [label]=\"label\"\r\n [loading]=\"loading\"\r\n (click)=\"click($event)\">\r\n</button>\r\n", styles: [".btn-secondary{background-color:#f2f3f5!important;color:#000000de!important}.btn-secondary:hover{background-color:#ef5350!important;color:#fff!important}.btn-secondary:disabled{pointer-events:none}\n"] }]
|
|
903
|
+
}], ctorParameters: function () { return []; } });
|
|
904
|
+
|
|
905
|
+
class ButtonSuccessComponent extends BaseComponentButton {
|
|
906
|
+
constructor() {
|
|
907
|
+
super();
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
ButtonSuccessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonSuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
911
|
+
ButtonSuccessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ButtonSuccessComponent, selector: "kv-button-success", usesInheritance: true, ngImport: i0, template: "<button\r\n pButton\r\n pRipple\r\n class=\"btn-success\"\r\n [icon]=\"icon\"\r\n [label]=\"label\"\r\n [loading]=\"loading\"\r\n (click)=\"click($event)\">\r\n</button>\r\n", styles: [".btn-success{background-color:#29b92d!important;color:#fff!important}.btn-success:hover{background-color:#229925!important}.btn-success:disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i2$2.Ripple, selector: "[pRipple]" }] });
|
|
912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonSuccessComponent, decorators: [{
|
|
913
|
+
type: Component,
|
|
914
|
+
args: [{ selector: 'kv-button-success', template: "<button\r\n pButton\r\n pRipple\r\n class=\"btn-success\"\r\n [icon]=\"icon\"\r\n [label]=\"label\"\r\n [loading]=\"loading\"\r\n (click)=\"click($event)\">\r\n</button>\r\n", styles: [".btn-success{background-color:#29b92d!important;color:#fff!important}.btn-success:hover{background-color:#229925!important}.btn-success:disabled{pointer-events:none}\n"] }]
|
|
915
|
+
}], ctorParameters: function () { return []; } });
|
|
916
|
+
|
|
917
|
+
class KeevoComponentsModule {
|
|
918
|
+
}
|
|
919
|
+
KeevoComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KeevoComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
920
|
+
KeevoComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: KeevoComponentsModule, imports: [KvInputsModule,
|
|
921
|
+
KvButtonsModule], exports: [KvInputsModule,
|
|
922
|
+
KvButtonsModule] });
|
|
923
|
+
KeevoComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KeevoComponentsModule, imports: [KvInputsModule,
|
|
924
|
+
KvButtonsModule, KvInputsModule,
|
|
925
|
+
KvButtonsModule] });
|
|
926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KeevoComponentsModule, decorators: [{
|
|
927
|
+
type: NgModule,
|
|
928
|
+
args: [{
|
|
929
|
+
declarations: [],
|
|
930
|
+
imports: [
|
|
931
|
+
KvInputsModule,
|
|
932
|
+
KvButtonsModule
|
|
933
|
+
],
|
|
934
|
+
exports: [
|
|
935
|
+
KvInputsModule,
|
|
936
|
+
KvButtonsModule
|
|
937
|
+
]
|
|
938
|
+
}]
|
|
939
|
+
}] });
|
|
940
|
+
|
|
941
|
+
class KvButtonsModule {
|
|
942
|
+
}
|
|
943
|
+
KvButtonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KvButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
944
|
+
KvButtonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: KvButtonsModule, declarations: [ButtonSecondaryComponent,
|
|
945
|
+
ButtonSuccessComponent], imports: [PrimeNgModule], exports: [ButtonSecondaryComponent,
|
|
946
|
+
ButtonSuccessComponent] });
|
|
947
|
+
KvButtonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KvButtonsModule, imports: [PrimeNgModule] });
|
|
948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KvButtonsModule, decorators: [{
|
|
949
|
+
type: NgModule,
|
|
950
|
+
args: [{
|
|
951
|
+
declarations: [
|
|
952
|
+
ButtonSecondaryComponent,
|
|
953
|
+
ButtonSuccessComponent
|
|
954
|
+
],
|
|
955
|
+
imports: [
|
|
956
|
+
PrimeNgModule
|
|
957
|
+
],
|
|
958
|
+
exports: [
|
|
959
|
+
ButtonSecondaryComponent,
|
|
960
|
+
ButtonSuccessComponent
|
|
961
|
+
]
|
|
962
|
+
}]
|
|
963
|
+
}] });
|
|
964
|
+
|
|
965
|
+
class KvInputsModule {
|
|
966
|
+
}
|
|
967
|
+
KvInputsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KvInputsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
968
|
+
KvInputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: KvInputsModule, declarations: [CheckComponent,
|
|
969
|
+
DropdownComponent,
|
|
970
|
+
InputCalendarComponent,
|
|
971
|
+
InputMaskComponent,
|
|
972
|
+
InputNumberComponent,
|
|
973
|
+
InputPasswordComponent,
|
|
974
|
+
InputTextComponent,
|
|
975
|
+
InputTextareaComponent,
|
|
976
|
+
InputTimeComponent,
|
|
977
|
+
MultiSelectComponent,
|
|
978
|
+
SwitchComponent], imports: [CommonModule,
|
|
979
|
+
FormsModule,
|
|
980
|
+
kvErrorModule,
|
|
981
|
+
PrimeNgModule,
|
|
982
|
+
ReactiveFormsModule], exports: [CheckComponent,
|
|
983
|
+
DropdownComponent,
|
|
984
|
+
InputCalendarComponent,
|
|
985
|
+
InputMaskComponent,
|
|
986
|
+
InputNumberComponent,
|
|
987
|
+
InputPasswordComponent,
|
|
988
|
+
InputTextComponent,
|
|
989
|
+
InputTextareaComponent,
|
|
990
|
+
InputTimeComponent,
|
|
991
|
+
MultiSelectComponent,
|
|
992
|
+
SwitchComponent] });
|
|
993
|
+
KvInputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KvInputsModule, imports: [CommonModule,
|
|
994
|
+
FormsModule,
|
|
995
|
+
kvErrorModule,
|
|
996
|
+
PrimeNgModule,
|
|
997
|
+
ReactiveFormsModule] });
|
|
998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: KvInputsModule, decorators: [{
|
|
999
|
+
type: NgModule,
|
|
1000
|
+
args: [{
|
|
1001
|
+
declarations: [
|
|
1002
|
+
CheckComponent,
|
|
1003
|
+
DropdownComponent,
|
|
1004
|
+
InputCalendarComponent,
|
|
1005
|
+
InputMaskComponent,
|
|
1006
|
+
InputNumberComponent,
|
|
1007
|
+
InputPasswordComponent,
|
|
1008
|
+
InputTextComponent,
|
|
1009
|
+
InputTextareaComponent,
|
|
1010
|
+
InputTimeComponent,
|
|
1011
|
+
MultiSelectComponent,
|
|
1012
|
+
SwitchComponent,
|
|
1013
|
+
],
|
|
1014
|
+
imports: [
|
|
1015
|
+
CommonModule,
|
|
1016
|
+
FormsModule,
|
|
1017
|
+
kvErrorModule,
|
|
1018
|
+
PrimeNgModule,
|
|
1019
|
+
ReactiveFormsModule,
|
|
1020
|
+
],
|
|
1021
|
+
exports: [
|
|
1022
|
+
CheckComponent,
|
|
1023
|
+
DropdownComponent,
|
|
1024
|
+
InputCalendarComponent,
|
|
1025
|
+
InputMaskComponent,
|
|
1026
|
+
InputNumberComponent,
|
|
1027
|
+
InputPasswordComponent,
|
|
1028
|
+
InputTextComponent,
|
|
1029
|
+
InputTextareaComponent,
|
|
1030
|
+
InputTimeComponent,
|
|
1031
|
+
MultiSelectComponent,
|
|
1032
|
+
SwitchComponent,
|
|
1033
|
+
]
|
|
1034
|
+
}]
|
|
1035
|
+
}] });
|
|
1036
|
+
|
|
1037
|
+
/*
|
|
1038
|
+
* Public API Surface of keevo-components
|
|
1039
|
+
*/
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Generated bundle index. Do not edit.
|
|
1043
|
+
*/
|
|
1044
|
+
|
|
1045
|
+
export { ButtonSecondaryComponent, ButtonSuccessComponent, CheckComponent, ComponentService, DropdownComponent, ErrorComponent, InputCalendarComponent, InputMaskComponent, InputNumberComponent, InputPasswordComponent, InputTextComponent, InputTextareaComponent, InputTimeComponent, KeevoComponentsModule, KvButtonsModule, KvInputsModule, MultiSelectComponent, ObjectService, SwitchComponent, kvErrorModule };
|
|
1046
|
+
//# sourceMappingURL=keevo-components.mjs.map
|