iptdevs-design-system 2.7.25 → 2.7.27
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/iptdevs-design-system.mjs +4 -4
- package/esm2020/lib/components/atoms/aside-button/aside-button.component.mjs +50 -50
- package/esm2020/lib/components/atoms/button/button.component.mjs +64 -64
- package/esm2020/lib/components/atoms/checkbox/checkbox.component.mjs +47 -47
- package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +94 -94
- package/esm2020/lib/components/atoms/input/input.component.mjs +145 -145
- package/esm2020/lib/components/atoms/level-button/level-button.component.mjs +64 -64
- package/esm2020/lib/components/atoms/level-text/level-text.component.mjs +19 -19
- package/esm2020/lib/components/atoms/loader/loader.component.mjs +48 -48
- package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
- package/esm2020/lib/components/atoms/select/select.component.mjs +102 -102
- package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
- package/esm2020/lib/components/components.module.mjs +118 -118
- package/esm2020/lib/components/forms/create-user-form/create-user-form.component.mjs +228 -228
- package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
- package/esm2020/lib/components/material.module.mjs +19 -19
- package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +150 -150
- package/esm2020/lib/core/core.module.mjs +70 -70
- package/esm2020/lib/core/models/academic/academic.component.mjs +2 -2
- package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -2
- package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -2
- package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
- package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -2
- package/esm2020/lib/core/models/classroom/classroom-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/commercial/commercial.model.mjs +2 -2
- package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/course/courses.model.mjs +2 -2
- package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -2
- package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
- package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -2
- package/esm2020/lib/core/models/payment/payment-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/response/response.interface.mjs +2 -2
- package/esm2020/lib/core/models/session/session.model.mjs +3 -3
- package/esm2020/lib/core/models/student/student.interface.mjs +2 -2
- package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
- package/esm2020/lib/core/models/test/test.model.mjs +2 -2
- package/esm2020/lib/core/models/url/url.model.mjs +2 -2
- package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
- package/esm2020/lib/core/services/academic-service/academic.service.mjs +40 -35
- package/esm2020/lib/core/services/activity-service/activity.service.mjs +87 -87
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +64 -64
- package/esm2020/lib/core/services/budget-service/budget-service.mjs +66 -66
- package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +60 -55
- package/esm2020/lib/core/services/certificate-service/certificate.service.mjs +26 -26
- package/esm2020/lib/core/services/classroom-service/classroom-service.service.mjs +31 -31
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +44 -44
- package/esm2020/lib/core/services/commercial-service/validators.mjs +4 -4
- package/esm2020/lib/core/services/course-service/course-service.model.mjs +70 -70
- package/esm2020/lib/core/services/ekt-service/userekt.service.mjs +29 -29
- package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +52 -52
- package/esm2020/lib/core/services/notes-service/notes.service.mjs +46 -46
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +173 -169
- package/esm2020/lib/core/services/service-enviroments.mjs +26 -26
- package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
- package/esm2020/lib/core/services/student-service/student.service.mjs +26 -26
- package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
- package/esm2020/lib/core/services/test-service/test.service.mjs +131 -131
- package/esm2020/lib/core/services/user-service/user-service.mjs +95 -95
- package/esm2020/lib/core/utils/base-service/base.service.mjs +186 -186
- package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
- package/esm2020/lib/design-system.module.mjs +36 -36
- package/esm2020/public-api.mjs +70 -70
- package/fesm2015/iptdevs-design-system.mjs +2511 -2497
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +2508 -2494
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/iptdevs-design-system.d.ts +5 -5
- package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
- package/lib/components/atoms/button/button.component.d.ts +13 -13
- package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
- package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
- package/lib/components/atoms/input/input.component.d.ts +26 -26
- package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
- package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
- package/lib/components/atoms/loader/loader.component.d.ts +7 -7
- package/lib/components/atoms/radio/radio.component.d.ts +11 -11
- package/lib/components/atoms/select/select.component.d.ts +26 -26
- package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
- package/lib/components/components.module.d.ts +24 -24
- package/lib/components/forms/create-user-form/create-user-form.component.d.ts +36 -36
- package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
- package/lib/components/material.module.d.ts +11 -11
- package/lib/components/molecules/sidenav/sidenav.component.d.ts +25 -25
- package/lib/core/core.module.d.ts +6 -6
- package/lib/core/models/academic/academic.component.d.ts +17 -13
- package/lib/core/models/activities/activities.interface.d.ts +12 -12
- package/lib/core/models/attendance/attendance.interface.d.ts +62 -62
- package/lib/core/models/budget/budget.model.d.ts +69 -69
- package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -27
- package/lib/core/models/classroom/classroom-rq.model.d.ts +18 -18
- package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
- package/lib/core/models/commercial/commercial.model.d.ts +10 -10
- package/lib/core/models/course/course-rq.model.d.ts +86 -86
- package/lib/core/models/course/courses.model.d.ts +18 -18
- package/lib/core/models/cronogram/cronogram.models.d.ts +183 -183
- package/lib/core/models/marketing/marketing.model.d.ts +104 -104
- package/lib/core/models/notes/notes.interface.d.ts +89 -89
- package/lib/core/models/payment/payment-rq.model.d.ts +212 -212
- package/lib/core/models/response/response.interface.d.ts +10 -10
- package/lib/core/models/session/session.model.d.ts +5 -5
- package/lib/core/models/student/student.interface.d.ts +4 -4
- package/lib/core/models/table/table-rs.model.d.ts +7 -7
- package/lib/core/models/test/test.model.d.ts +219 -219
- package/lib/core/models/url/url.model.d.ts +8 -8
- package/lib/core/models/user/user-rq.model.d.ts +86 -86
- package/lib/core/models/user/user-rs.model.d.ts +35 -35
- package/lib/core/services/academic-service/academic.service.d.ts +16 -15
- package/lib/core/services/activity-service/activity.service.d.ts +25 -25
- package/lib/core/services/attendance-service/attendance.service.d.ts +22 -22
- package/lib/core/services/budget-service/budget-service.d.ts +23 -23
- package/lib/core/services/calendar-service/calendar.service.d.ts +22 -21
- package/lib/core/services/certificate-service/certificate.service.d.ts +13 -13
- package/lib/core/services/classroom-service/classroom-service.service.d.ts +14 -14
- package/lib/core/services/commercial-service/comercial.service.d.ts +17 -17
- package/lib/core/services/commercial-service/validators.d.ts +2 -2
- package/lib/core/services/course-service/course-service.model.d.ts +23 -23
- package/lib/core/services/ekt-service/userekt.service.d.ts +13 -13
- package/lib/core/services/marketing-service/marketing-service.d.ts +19 -19
- package/lib/core/services/notes-service/notes.service.d.ts +18 -18
- package/lib/core/services/parameters-service/parameters.service.d.ts +49 -48
- package/lib/core/services/service-enviroments.d.ts +5 -5
- package/lib/core/services/storage-service/storage-service.d.ts +18 -18
- package/lib/core/services/student-service/student.service.d.ts +13 -13
- package/lib/core/services/switch-service/switch.service.d.ts +8 -8
- package/lib/core/services/test-service/test.service.d.ts +34 -34
- package/lib/core/services/user-service/user-service.d.ts +29 -29
- package/lib/core/utils/base-service/base.service.d.ts +22 -22
- package/lib/core/utils/route-service/route.service.d.ts +9 -9
- package/lib/design-system.module.d.ts +9 -9
- package/package.json +1 -1
- package/public-api.d.ts +61 -61
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/forms";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
export class DatalistComponent {
|
|
6
|
-
constructor(fb) {
|
|
7
|
-
this.disabledSel = false;
|
|
8
|
-
this.isChanged = new EventEmitter();
|
|
9
|
-
this.clicked = false;
|
|
10
|
-
}
|
|
11
|
-
optionChanged(event) {
|
|
12
|
-
let selectOption = this.datalistData.find(element => element.name == event.target.value);
|
|
13
|
-
if (typeof (selectOption) != 'undefined') {
|
|
14
|
-
this.isChanged.emit(selectOption.code);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
this.isChanged.emit('-1');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
click(value) {
|
|
21
|
-
this.clicked = value.isTrusted;
|
|
22
|
-
}
|
|
23
|
-
setDataListValue() {
|
|
24
|
-
let selectOption = this.datalistData.find(element => element.code == this.initalData);
|
|
25
|
-
if (typeof (selectOption) != 'undefined') {
|
|
26
|
-
return selectOption.name;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return '';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
get labelClass() {
|
|
33
|
-
return this.clicked === false ? 'label' : 'labelUp';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: DatalistComponent, selector: "ipt-datalist", inputs: { datalistId: "datalistId", datalistData: "datalistData", placeHolder: "placeHolder", validateText: "validateText", initalData: "initalData", disabledSel: "disabledSel" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
|
|
38
|
-
<div class="input-container">
|
|
39
|
-
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
40
|
-
<input
|
|
41
|
-
type="text"
|
|
42
|
-
class="input"
|
|
43
|
-
(click)="click($event)"
|
|
44
|
-
[attr.list]="datalistId"
|
|
45
|
-
(change)="optionChanged($event)"
|
|
46
|
-
[disabled]="disabledSel"
|
|
47
|
-
[value]="setDataListValue()"
|
|
48
|
-
/>
|
|
49
|
-
|
|
50
|
-
<datalist id="{{ datalistId }}">
|
|
51
|
-
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
52
|
-
{{item.id_card}} {{item.name}}
|
|
53
|
-
</option>
|
|
54
|
-
</datalist>
|
|
55
|
-
</div>
|
|
56
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
58
|
-
type: Component,
|
|
59
|
-
args: [{ selector: 'ipt-datalist', template: `
|
|
60
|
-
<div class="input-container">
|
|
61
|
-
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
62
|
-
<input
|
|
63
|
-
type="text"
|
|
64
|
-
class="input"
|
|
65
|
-
(click)="click($event)"
|
|
66
|
-
[attr.list]="datalistId"
|
|
67
|
-
(change)="optionChanged($event)"
|
|
68
|
-
[disabled]="disabledSel"
|
|
69
|
-
[value]="setDataListValue()"
|
|
70
|
-
/>
|
|
71
|
-
|
|
72
|
-
<datalist id="{{ datalistId }}">
|
|
73
|
-
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
74
|
-
{{item.id_card}} {{item.name}}
|
|
75
|
-
</option>
|
|
76
|
-
</datalist>
|
|
77
|
-
</div>
|
|
78
|
-
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
79
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], datalistData: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], placeHolder: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], validateText: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], initalData: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], disabledSel: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], isChanged: [{
|
|
92
|
-
type: Output
|
|
93
|
-
}] } });
|
|
94
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export class DatalistComponent {
|
|
6
|
+
constructor(fb) {
|
|
7
|
+
this.disabledSel = false;
|
|
8
|
+
this.isChanged = new EventEmitter();
|
|
9
|
+
this.clicked = false;
|
|
10
|
+
}
|
|
11
|
+
optionChanged(event) {
|
|
12
|
+
let selectOption = this.datalistData.find(element => element.name == event.target.value);
|
|
13
|
+
if (typeof (selectOption) != 'undefined') {
|
|
14
|
+
this.isChanged.emit(selectOption.code);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.isChanged.emit('-1');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
click(value) {
|
|
21
|
+
this.clicked = value.isTrusted;
|
|
22
|
+
}
|
|
23
|
+
setDataListValue() {
|
|
24
|
+
let selectOption = this.datalistData.find(element => element.code == this.initalData);
|
|
25
|
+
if (typeof (selectOption) != 'undefined') {
|
|
26
|
+
return selectOption.name;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return '';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get labelClass() {
|
|
33
|
+
return this.clicked === false ? 'label' : 'labelUp';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: DatalistComponent, selector: "ipt-datalist", inputs: { datalistId: "datalistId", datalistData: "datalistData", placeHolder: "placeHolder", validateText: "validateText", initalData: "initalData", disabledSel: "disabledSel" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
|
|
38
|
+
<div class="input-container">
|
|
39
|
+
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
40
|
+
<input
|
|
41
|
+
type="text"
|
|
42
|
+
class="input"
|
|
43
|
+
(click)="click($event)"
|
|
44
|
+
[attr.list]="datalistId"
|
|
45
|
+
(change)="optionChanged($event)"
|
|
46
|
+
[disabled]="disabledSel"
|
|
47
|
+
[value]="setDataListValue()"
|
|
48
|
+
/>
|
|
49
|
+
|
|
50
|
+
<datalist id="{{ datalistId }}">
|
|
51
|
+
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
52
|
+
{{item.id_card}} {{item.name}}
|
|
53
|
+
</option>
|
|
54
|
+
</datalist>
|
|
55
|
+
</div>
|
|
56
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
58
|
+
type: Component,
|
|
59
|
+
args: [{ selector: 'ipt-datalist', template: `
|
|
60
|
+
<div class="input-container">
|
|
61
|
+
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
62
|
+
<input
|
|
63
|
+
type="text"
|
|
64
|
+
class="input"
|
|
65
|
+
(click)="click($event)"
|
|
66
|
+
[attr.list]="datalistId"
|
|
67
|
+
(change)="optionChanged($event)"
|
|
68
|
+
[disabled]="disabledSel"
|
|
69
|
+
[value]="setDataListValue()"
|
|
70
|
+
/>
|
|
71
|
+
|
|
72
|
+
<datalist id="{{ datalistId }}">
|
|
73
|
+
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
74
|
+
{{item.id_card}} {{item.name}}
|
|
75
|
+
</option>
|
|
76
|
+
</datalist>
|
|
77
|
+
</div>
|
|
78
|
+
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], datalistData: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], placeHolder: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], validateText: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], initalData: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], disabledSel: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], isChanged: [{
|
|
92
|
+
type: Output
|
|
93
|
+
}] } });
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vZGVzaWduLXN5c3RlbS9zcmMvbGliL2NvbXBvbmVudHMvYXRvbXMvZGF0YWxpc3QvZGF0YWxpc3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQTRCLE1BQU0sZUFBZSxDQUFDOzs7O0FBMkJqRyxNQUFNLE9BQU8saUJBQWlCO0lBYTVC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Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/forms";
|
|
5
|
-
import * as i3 from "ng2-currency-mask";
|
|
6
|
-
export class InputComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.data = [];
|
|
9
|
-
this.clicked = false;
|
|
10
|
-
this.withPipe = false;
|
|
11
|
-
this.prefix = '$';
|
|
12
|
-
this.thousands = '.';
|
|
13
|
-
this.decimal = ',';
|
|
14
|
-
this.dateSelected = new EventEmitter();
|
|
15
|
-
}
|
|
16
|
-
set control(value) {
|
|
17
|
-
if (this.formControl !== value) {
|
|
18
|
-
this.formControl = value;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() { }
|
|
22
|
-
selectedDate(evt) {
|
|
23
|
-
this.dateSelected.emit(evt);
|
|
24
|
-
}
|
|
25
|
-
click(value) {
|
|
26
|
-
this.clicked = value.isTrusted;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
|
|
31
|
-
<div class="input-container">
|
|
32
|
-
<input *ngIf="inputType === 'date'"
|
|
33
|
-
class="input"
|
|
34
|
-
type="{{ inputType ? 'text' : 'date' }}"
|
|
35
|
-
[formControl]="formControl"
|
|
36
|
-
(ngModelChange)="selectedDate($event)"
|
|
37
|
-
onfocus="this.type='date';"
|
|
38
|
-
onblur="javascript: if( !this.value ) this.type='text';"
|
|
39
|
-
uib-datepicker-popup="dd/MM/yyyy"
|
|
40
|
-
ng-model="inputType"/>
|
|
41
|
-
|
|
42
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
43
|
-
class="input"
|
|
44
|
-
type="{{ inputType }}"
|
|
45
|
-
[formControl]="formControl"
|
|
46
|
-
[attr.list]="list"/>
|
|
47
|
-
|
|
48
|
-
<input *ngIf="inputType === 'text' && withPipe"
|
|
49
|
-
class="input"
|
|
50
|
-
currencyMask
|
|
51
|
-
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
52
|
-
type="{{ inputType }}"
|
|
53
|
-
[formControl]="formControl"
|
|
54
|
-
[attr.list]="list"/>
|
|
55
|
-
|
|
56
|
-
<input *ngIf="inputType === 'time'"
|
|
57
|
-
class="input"
|
|
58
|
-
type="time"
|
|
59
|
-
[formControl]="formControl"
|
|
60
|
-
[min]="'06:00:00'"
|
|
61
|
-
max="22:00:00"
|
|
62
|
-
step="900"
|
|
63
|
-
autocomplete="on"
|
|
64
|
-
value="08:00:00"
|
|
65
|
-
(click)="click($event)"
|
|
66
|
-
/>
|
|
67
|
-
|
|
68
|
-
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
69
|
-
|
|
70
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '')">
|
|
71
|
-
{{ validateText }}
|
|
72
|
-
</p>
|
|
73
|
-
</div>
|
|
74
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
76
|
-
type: Component,
|
|
77
|
-
args: [{ selector: 'ipt-input', template: `
|
|
78
|
-
<div class="input-container">
|
|
79
|
-
<input *ngIf="inputType === 'date'"
|
|
80
|
-
class="input"
|
|
81
|
-
type="{{ inputType ? 'text' : 'date' }}"
|
|
82
|
-
[formControl]="formControl"
|
|
83
|
-
(ngModelChange)="selectedDate($event)"
|
|
84
|
-
onfocus="this.type='date';"
|
|
85
|
-
onblur="javascript: if( !this.value ) this.type='text';"
|
|
86
|
-
uib-datepicker-popup="dd/MM/yyyy"
|
|
87
|
-
ng-model="inputType"/>
|
|
88
|
-
|
|
89
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
90
|
-
class="input"
|
|
91
|
-
type="{{ inputType }}"
|
|
92
|
-
[formControl]="formControl"
|
|
93
|
-
[attr.list]="list"/>
|
|
94
|
-
|
|
95
|
-
<input *ngIf="inputType === 'text' && withPipe"
|
|
96
|
-
class="input"
|
|
97
|
-
currencyMask
|
|
98
|
-
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
99
|
-
type="{{ inputType }}"
|
|
100
|
-
[formControl]="formControl"
|
|
101
|
-
[attr.list]="list"/>
|
|
102
|
-
|
|
103
|
-
<input *ngIf="inputType === 'time'"
|
|
104
|
-
class="input"
|
|
105
|
-
type="time"
|
|
106
|
-
[formControl]="formControl"
|
|
107
|
-
[min]="'06:00:00'"
|
|
108
|
-
max="22:00:00"
|
|
109
|
-
step="900"
|
|
110
|
-
autocomplete="on"
|
|
111
|
-
value="08:00:00"
|
|
112
|
-
(click)="click($event)"
|
|
113
|
-
/>
|
|
114
|
-
|
|
115
|
-
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
116
|
-
|
|
117
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '')">
|
|
118
|
-
{{ validateText }}
|
|
119
|
-
</p>
|
|
120
|
-
</div>
|
|
121
|
-
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
122
|
-
}], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], placeHolder: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], validateText: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], withPipe: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], list: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], iconUrl: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}], control: [{
|
|
135
|
-
type: Input
|
|
136
|
-
}], prefix: [{
|
|
137
|
-
type: Input
|
|
138
|
-
}], thousands: [{
|
|
139
|
-
type: Input
|
|
140
|
-
}], decimal: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], dateSelected: [{
|
|
143
|
-
type: Output
|
|
144
|
-
}] } });
|
|
145
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "ng2-currency-mask";
|
|
6
|
+
export class InputComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.data = [];
|
|
9
|
+
this.clicked = false;
|
|
10
|
+
this.withPipe = false;
|
|
11
|
+
this.prefix = '$';
|
|
12
|
+
this.thousands = '.';
|
|
13
|
+
this.decimal = ',';
|
|
14
|
+
this.dateSelected = new EventEmitter();
|
|
15
|
+
}
|
|
16
|
+
set control(value) {
|
|
17
|
+
if (this.formControl !== value) {
|
|
18
|
+
this.formControl = value;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
ngOnInit() { }
|
|
22
|
+
selectedDate(evt) {
|
|
23
|
+
this.dateSelected.emit(evt);
|
|
24
|
+
}
|
|
25
|
+
click(value) {
|
|
26
|
+
this.clicked = value.isTrusted;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
|
|
31
|
+
<div class="input-container">
|
|
32
|
+
<input *ngIf="inputType === 'date'"
|
|
33
|
+
class="input"
|
|
34
|
+
type="{{ inputType ? 'text' : 'date' }}"
|
|
35
|
+
[formControl]="formControl"
|
|
36
|
+
(ngModelChange)="selectedDate($event)"
|
|
37
|
+
onfocus="this.type='date';"
|
|
38
|
+
onblur="javascript: if( !this.value ) this.type='text';"
|
|
39
|
+
uib-datepicker-popup="dd/MM/yyyy"
|
|
40
|
+
ng-model="inputType"/>
|
|
41
|
+
|
|
42
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
43
|
+
class="input"
|
|
44
|
+
type="{{ inputType }}"
|
|
45
|
+
[formControl]="formControl"
|
|
46
|
+
[attr.list]="list"/>
|
|
47
|
+
|
|
48
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
49
|
+
class="input"
|
|
50
|
+
currencyMask
|
|
51
|
+
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
52
|
+
type="{{ inputType }}"
|
|
53
|
+
[formControl]="formControl"
|
|
54
|
+
[attr.list]="list"/>
|
|
55
|
+
|
|
56
|
+
<input *ngIf="inputType === 'time'"
|
|
57
|
+
class="input"
|
|
58
|
+
type="time"
|
|
59
|
+
[formControl]="formControl"
|
|
60
|
+
[min]="'06:00:00'"
|
|
61
|
+
max="22:00:00"
|
|
62
|
+
step="900"
|
|
63
|
+
autocomplete="on"
|
|
64
|
+
value="08:00:00"
|
|
65
|
+
(click)="click($event)"
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
|
+
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
69
|
+
|
|
70
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '')">
|
|
71
|
+
{{ validateText }}
|
|
72
|
+
</p>
|
|
73
|
+
</div>
|
|
74
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
76
|
+
type: Component,
|
|
77
|
+
args: [{ selector: 'ipt-input', template: `
|
|
78
|
+
<div class="input-container">
|
|
79
|
+
<input *ngIf="inputType === 'date'"
|
|
80
|
+
class="input"
|
|
81
|
+
type="{{ inputType ? 'text' : 'date' }}"
|
|
82
|
+
[formControl]="formControl"
|
|
83
|
+
(ngModelChange)="selectedDate($event)"
|
|
84
|
+
onfocus="this.type='date';"
|
|
85
|
+
onblur="javascript: if( !this.value ) this.type='text';"
|
|
86
|
+
uib-datepicker-popup="dd/MM/yyyy"
|
|
87
|
+
ng-model="inputType"/>
|
|
88
|
+
|
|
89
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
90
|
+
class="input"
|
|
91
|
+
type="{{ inputType }}"
|
|
92
|
+
[formControl]="formControl"
|
|
93
|
+
[attr.list]="list"/>
|
|
94
|
+
|
|
95
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
96
|
+
class="input"
|
|
97
|
+
currencyMask
|
|
98
|
+
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
99
|
+
type="{{ inputType }}"
|
|
100
|
+
[formControl]="formControl"
|
|
101
|
+
[attr.list]="list"/>
|
|
102
|
+
|
|
103
|
+
<input *ngIf="inputType === 'time'"
|
|
104
|
+
class="input"
|
|
105
|
+
type="time"
|
|
106
|
+
[formControl]="formControl"
|
|
107
|
+
[min]="'06:00:00'"
|
|
108
|
+
max="22:00:00"
|
|
109
|
+
step="900"
|
|
110
|
+
autocomplete="on"
|
|
111
|
+
value="08:00:00"
|
|
112
|
+
(click)="click($event)"
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
116
|
+
|
|
117
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '')">
|
|
118
|
+
{{ validateText }}
|
|
119
|
+
</p>
|
|
120
|
+
</div>
|
|
121
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
122
|
+
}], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], placeHolder: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], validateText: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], withPipe: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], list: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], iconUrl: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], control: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], prefix: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], thousands: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], decimal: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], dateSelected: [{
|
|
143
|
+
type: Output
|
|
144
|
+
}] } });
|
|
145
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vZGVzaWduLXN5c3RlbS9zcmMvbGliL2NvbXBvbmVudHMvYXRvbXMvaW5wdXQvaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQStDLE1BQU0sZUFBZSxDQUFDOzs7OztBQXFEcEgsTUFBTSxPQUFPLGNBQWM7SUF3QnpCO1FBckJBLFNBQUksR0FBVSxFQUFFLENBQUM7UUFFakIsWUFBTyxHQUFZLEtB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