iptdevs-design-system 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.
@@ -0,0 +1,598 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import { BrowserModule } from '@angular/platform-browser';
4
+ import * as i1 from '@angular/common';
5
+ import { CommonModule } from '@angular/common';
6
+ import * as i1$1 from '@angular/forms';
7
+ import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+
9
+ class AsideButtonComponent {
10
+ constructor() {
11
+ this.isClicked = new EventEmitter();
12
+ }
13
+ clickAction() {
14
+ this.isClicked.emit(true);
15
+ }
16
+ }
17
+ AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ AsideButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: AsideButtonComponent, selector: "ipt-aside-button", inputs: { icon: "icon", text: "text", type: "type", url: "url", textColor: "textColor", buttonActive: "buttonActive" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
19
+ <div [ngSwitch]="buttonActive">
20
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
21
+ <img src="{{ icon }}" alt="icon_url" />
22
+ <p [ngStyle]="{'color': textColor}">{{ text }}</p>
23
+ </a>
24
+
25
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
26
+ <img src="{{ icon }}" alt="icon_url" />
27
+ <p [ngStyle]="{'color': textColor}">{{ text }}</p>
28
+ </a>
29
+ </div>
30
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
32
+ type: Component,
33
+ args: [{ selector: 'ipt-aside-button', template: `
34
+ <div [ngSwitch]="buttonActive">
35
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
36
+ <img src="{{ icon }}" alt="icon_url" />
37
+ <p [ngStyle]="{'color': textColor}">{{ text }}</p>
38
+ </a>
39
+
40
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
41
+ <img src="{{ icon }}" alt="icon_url" />
42
+ <p [ngStyle]="{'color': textColor}">{{ text }}</p>
43
+ </a>
44
+ </div>
45
+ `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"] }]
46
+ }], propDecorators: { icon: [{
47
+ type: Input
48
+ }], text: [{
49
+ type: Input
50
+ }], type: [{
51
+ type: Input
52
+ }], url: [{
53
+ type: Input
54
+ }], textColor: [{
55
+ type: Input
56
+ }], buttonActive: [{
57
+ type: Input
58
+ }], isClicked: [{
59
+ type: Output
60
+ }] } });
61
+
62
+ class ButtonComponent {
63
+ constructor() {
64
+ this.primary = false;
65
+ this.size = 'medium';
66
+ this.label = 'Button';
67
+ this.isEnabled = true;
68
+ this.onClick = new EventEmitter();
69
+ }
70
+ get classes() {
71
+ const mode = this.primary && this.isEnabled === true
72
+ ? 'ipt-button--primary'
73
+ : this.isEnabled === false ? 'ipt-button--primary-disabled'
74
+ : 'ipt-button--secondary';
75
+ return ['ipt-button', `ipt-button--${this.size}`, mode];
76
+ }
77
+ }
78
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
79
+ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ButtonComponent, selector: "ipt-button", inputs: { primary: "primary", size: "size", label: "label", isEnabled: "isEnabled" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `<button *ngIf="isEnabled"
80
+ type="button"
81
+ (click)="onClick.emit($event)"
82
+ [ngClass]="classes"
83
+ >
84
+ {{ label }}
85
+ </button>
86
+
87
+ <button *ngIf="!isEnabled"
88
+ type="button"
89
+ (click)="onClick.emit($event)"
90
+ [ngClass]="classes"
91
+ >
92
+ {{ label }}
93
+ </button>`, isInline: true, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
95
+ type: Component,
96
+ args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
97
+ type="button"
98
+ (click)="onClick.emit($event)"
99
+ [ngClass]="classes"
100
+ >
101
+ {{ label }}
102
+ </button>
103
+
104
+ <button *ngIf="!isEnabled"
105
+ type="button"
106
+ (click)="onClick.emit($event)"
107
+ [ngClass]="classes"
108
+ >
109
+ {{ label }}
110
+ </button>`, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"] }]
111
+ }], propDecorators: { primary: [{
112
+ type: Input
113
+ }], size: [{
114
+ type: Input
115
+ }], label: [{
116
+ type: Input
117
+ }], isEnabled: [{
118
+ type: Input
119
+ }], onClick: [{
120
+ type: Output
121
+ }] } });
122
+
123
+ class CheckboxComponent {
124
+ constructor() {
125
+ this.checkboxOption = false;
126
+ this.onChecked = new EventEmitter();
127
+ }
128
+ set control(value) {
129
+ if (this.formControl !== value) {
130
+ this.formControl = value;
131
+ }
132
+ }
133
+ }
134
+ CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
135
+ CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CheckboxComponent, selector: "ipt-checkbox", inputs: { checkboxOption: "checkboxOption", control: "control" }, outputs: { onChecked: "onChecked" }, ngImport: i0, template: `
136
+ <label class="cont">
137
+ <input
138
+ class="checkbox"
139
+ [formControl]="formControl"
140
+ [checked]="checkboxOption"
141
+ (click)="onChecked.emit($event)"
142
+ type="checkbox">
143
+ <span></span>
144
+ </label>
145
+ `, isInline: true, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"], directives: [{ type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
147
+ type: Component,
148
+ args: [{ selector: 'ipt-checkbox', template: `
149
+ <label class="cont">
150
+ <input
151
+ class="checkbox"
152
+ [formControl]="formControl"
153
+ [checked]="checkboxOption"
154
+ (click)="onChecked.emit($event)"
155
+ type="checkbox">
156
+ <span></span>
157
+ </label>
158
+ `, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"] }]
159
+ }], propDecorators: { checkboxOption: [{
160
+ type: Input
161
+ }], control: [{
162
+ type: Input
163
+ }], onChecked: [{
164
+ type: Output
165
+ }] } });
166
+
167
+ class DatalistComponent {
168
+ constructor(fb) {
169
+ this.isChanged = new EventEmitter();
170
+ this.clicked = false;
171
+ this.formControl = fb.group({
172
+ dataListControl: ['', [Validators.required]],
173
+ });
174
+ }
175
+ ngOnInit() {
176
+ if (this.initalData != null) {
177
+ this.formControl.controls['dataListControl'].setValue(this.initalData);
178
+ }
179
+ }
180
+ optionChanged(event) {
181
+ let selectOption = this.datalistData.find(element => element.name == event.target.value);
182
+ if (typeof (selectOption) != 'undefined') {
183
+ this.isChanged.emit(selectOption.code);
184
+ }
185
+ else {
186
+ this.isChanged.emit('-1');
187
+ this.formControl.controls['dataListControl'].setValue(null);
188
+ }
189
+ }
190
+ click(value) {
191
+ this.clicked = value.isTrusted;
192
+ }
193
+ get labelClass() {
194
+ return this.clicked === false ? 'label' : 'labelUp';
195
+ }
196
+ }
197
+ DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
198
+ 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" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
199
+ <div class="input-container">
200
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
201
+ <input
202
+ type="text"
203
+ class="input"
204
+ placeholder="{{ placeHolder }}"
205
+ (click)="click($event)"
206
+ [attr.list]="datalistId"
207
+ (change)="optionChanged($event)"
208
+ />
209
+
210
+ <datalist id="{{ datalistId }}">
211
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
212
+ {{item.name}} {{item.last_name}}
213
+ </option>
214
+ </datalist>
215
+ </div>
216
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:15px -5px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background:transparent}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:5px;top:-20px;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:5px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
218
+ type: Component,
219
+ args: [{ selector: 'ipt-datalist', template: `
220
+ <div class="input-container">
221
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
222
+ <input
223
+ type="text"
224
+ class="input"
225
+ placeholder="{{ placeHolder }}"
226
+ (click)="click($event)"
227
+ [attr.list]="datalistId"
228
+ (change)="optionChanged($event)"
229
+ />
230
+
231
+ <datalist id="{{ datalistId }}">
232
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
233
+ {{item.name}} {{item.last_name}}
234
+ </option>
235
+ </datalist>
236
+ </div>
237
+ `, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:15px -5px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background:transparent}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:5px;top:-20px;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:5px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
238
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
239
+ type: Input
240
+ }], datalistData: [{
241
+ type: Input
242
+ }], placeHolder: [{
243
+ type: Input
244
+ }], validateText: [{
245
+ type: Input
246
+ }], initalData: [{
247
+ type: Input
248
+ }], isChanged: [{
249
+ type: Output
250
+ }] } });
251
+
252
+ class InputComponent {
253
+ constructor() {
254
+ this.data = [];
255
+ this.clicked = false;
256
+ }
257
+ set control(value) {
258
+ if (this.formControl !== value) {
259
+ this.formControl = value;
260
+ }
261
+ }
262
+ click(value) {
263
+ this.clicked = value.isTrusted;
264
+ }
265
+ }
266
+ InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
267
+ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", list: "list", iconUrl: "iconUrl", control: "control" }, ngImport: i0, template: `
268
+ <div class="input-container">
269
+ <input *ngIf="inputType === 'date'"
270
+ placeholder="{{ placeHolder }}"
271
+ class="input"
272
+ type="{{ inputType ? 'text' : 'date' }}"
273
+ [formControl]="formControl"
274
+ onfocus="this.type='date';"
275
+ onblur="javascript: if( !this.value ) this.type='text';"
276
+ uib-datepicker-popup="dd/MM/yyyy"
277
+ ng-model="inputType"/>
278
+
279
+ <input *ngIf="inputType !== 'date' && inputType !== 'time'"
280
+ placeholder="{{ placeHolder }}"
281
+ class="input"
282
+ [ngStyle]="{
283
+ 'box-shadow':
284
+ formControl.value === ''
285
+ ? 'box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;'
286
+ : formControl.valid
287
+ ? '1px 1px 7.5px #1b5e20'
288
+ : '1px 1px 7.5px #b71c1c'
289
+ }"
290
+ class="input"
291
+ type="{{ inputType }}"
292
+ [formControl]="formControl"
293
+ [attr.list]="list"/>
294
+
295
+ <input *ngIf="inputType === 'time'"
296
+ class="input"
297
+ type="time"
298
+ [formControl]="formControl"
299
+ [min]="'06:00:00'"
300
+ max="22:00:00"
301
+ step="900"
302
+ autocomplete="on"
303
+ value="08:00:00"
304
+ (click)="click($event)"
305
+
306
+ [ngStyle]="{
307
+ 'box-shadow':
308
+ formControl.value === ''
309
+ ? 'box-shadow: rgba(100, 100, 111, 0.2);'
310
+ : formControl.valid
311
+ ? '1px 1px 7.5px #1b5e20'
312
+ : '1px 1px 7.5px #b71c1c'
313
+ }"
314
+ />
315
+
316
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
317
+
318
+ <p *ngIf="!formControl.valid && formControl.value !== '' && formControl.touched">
319
+ {{ validateText }}
320
+ </p>
321
+ </div>
322
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px;margin-top:35px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:14px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:16px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;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:transparent;-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: i1$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]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
324
+ type: Component,
325
+ args: [{ selector: 'ipt-input', template: `
326
+ <div class="input-container">
327
+ <input *ngIf="inputType === 'date'"
328
+ placeholder="{{ placeHolder }}"
329
+ class="input"
330
+ type="{{ inputType ? 'text' : 'date' }}"
331
+ [formControl]="formControl"
332
+ onfocus="this.type='date';"
333
+ onblur="javascript: if( !this.value ) this.type='text';"
334
+ uib-datepicker-popup="dd/MM/yyyy"
335
+ ng-model="inputType"/>
336
+
337
+ <input *ngIf="inputType !== 'date' && inputType !== 'time'"
338
+ placeholder="{{ placeHolder }}"
339
+ class="input"
340
+ [ngStyle]="{
341
+ 'box-shadow':
342
+ formControl.value === ''
343
+ ? 'box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;'
344
+ : formControl.valid
345
+ ? '1px 1px 7.5px #1b5e20'
346
+ : '1px 1px 7.5px #b71c1c'
347
+ }"
348
+ class="input"
349
+ type="{{ inputType }}"
350
+ [formControl]="formControl"
351
+ [attr.list]="list"/>
352
+
353
+ <input *ngIf="inputType === 'time'"
354
+ class="input"
355
+ type="time"
356
+ [formControl]="formControl"
357
+ [min]="'06:00:00'"
358
+ max="22:00:00"
359
+ step="900"
360
+ autocomplete="on"
361
+ value="08:00:00"
362
+ (click)="click($event)"
363
+
364
+ [ngStyle]="{
365
+ 'box-shadow':
366
+ formControl.value === ''
367
+ ? 'box-shadow: rgba(100, 100, 111, 0.2);'
368
+ : formControl.valid
369
+ ? '1px 1px 7.5px #1b5e20'
370
+ : '1px 1px 7.5px #b71c1c'
371
+ }"
372
+ />
373
+
374
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
375
+
376
+ <p *ngIf="!formControl.valid && formControl.value !== '' && formControl.touched">
377
+ {{ validateText }}
378
+ </p>
379
+ </div>
380
+ `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px;margin-top:35px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:14px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:16px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;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:transparent;-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"] }]
381
+ }], propDecorators: { inputType: [{
382
+ type: Input
383
+ }], placeHolder: [{
384
+ type: Input
385
+ }], validateText: [{
386
+ type: Input
387
+ }], list: [{
388
+ type: Input
389
+ }], iconUrl: [{
390
+ type: Input
391
+ }], control: [{
392
+ type: Input
393
+ }] } });
394
+
395
+ class RadioComponent {
396
+ constructor() {
397
+ this.radioOption = false;
398
+ this.onSelected = new EventEmitter();
399
+ }
400
+ set control(value) {
401
+ if (this.formControl !== value) {
402
+ this.formControl = value;
403
+ }
404
+ }
405
+ }
406
+ RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
407
+ RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
408
+ <label class="cont">
409
+ <input
410
+ class="radio"
411
+ [formControl]="formControl"
412
+ [checked]="radioOption"
413
+ (click)="onSelected.emit($event)"
414
+ type="radio">
415
+ <span></span>
416
+ </label>
417
+ `, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i1$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]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
419
+ type: Component,
420
+ args: [{ selector: 'ipt-radio', template: `
421
+ <label class="cont">
422
+ <input
423
+ class="radio"
424
+ [formControl]="formControl"
425
+ [checked]="radioOption"
426
+ (click)="onSelected.emit($event)"
427
+ type="radio">
428
+ <span></span>
429
+ </label>
430
+ `, styles: [""] }]
431
+ }], propDecorators: { radioOption: [{
432
+ type: Input
433
+ }], control: [{
434
+ type: Input
435
+ }], onSelected: [{
436
+ type: Output
437
+ }] } });
438
+
439
+ class SelectComponent {
440
+ constructor() {
441
+ this.boxShadow = 0;
442
+ this.clicked = false;
443
+ this.eventSelect = new EventEmitter();
444
+ }
445
+ // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
446
+ set control(value) {
447
+ if (this.formControl !== value) {
448
+ this.formControl = value;
449
+ }
450
+ }
451
+ ngOnChanges(changes) {
452
+ if (changes['data']) {
453
+ this.binding = this.defaultText;
454
+ }
455
+ }
456
+ seleccionar(evt) {
457
+ if (this.eventSelect.emit(evt) !== this.defaultText) {
458
+ this.boxShadow = 1;
459
+ }
460
+ else {
461
+ this.boxShadow = 2;
462
+ }
463
+ }
464
+ click(value) {
465
+ this.clicked = value.isTrusted;
466
+ }
467
+ ngOnInit() {
468
+ this.binding = this.defaultText;
469
+ }
470
+ get textClass() {
471
+ return this.defaultText === '' ? 'selected' : 'select';
472
+ }
473
+ get labelClass() {
474
+ return this.clicked === false ? 'label' : 'labelUp';
475
+ }
476
+ }
477
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
478
+ SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
479
+ <div class="select-container">
480
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
481
+ <select
482
+ [(ngModel)]="binding"
483
+ (ngModelChange)="seleccionar($event)"
484
+ (click)="click($event)"
485
+ [ngClass]="textClass"
486
+ [ngStyle]="{
487
+ 'box-shadow':
488
+ boxShadow === 2
489
+ ? '1px 1px 7.5px #b71c1c'
490
+ : (boxShadow === 1 ? '1px 1px 7.5px #1b5e20' : 'box-shadow: rgba(100, 100, 111, 0.2);')
491
+ }">
492
+ <option *ngFor="let item of data; index as i" [value]="item.code">
493
+ {{ item.name }} {{ item.prefix }}
494
+ </option>
495
+ </select>
496
+ </div>
497
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:10px;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:transparent;-webkit-appearance:none}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;transition:.5s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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:-20px;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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
498
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
499
+ type: Component,
500
+ args: [{ selector: 'ipt-select', template: `
501
+ <div class="select-container">
502
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
503
+ <select
504
+ [(ngModel)]="binding"
505
+ (ngModelChange)="seleccionar($event)"
506
+ (click)="click($event)"
507
+ [ngClass]="textClass"
508
+ [ngStyle]="{
509
+ 'box-shadow':
510
+ boxShadow === 2
511
+ ? '1px 1px 7.5px #b71c1c'
512
+ : (boxShadow === 1 ? '1px 1px 7.5px #1b5e20' : 'box-shadow: rgba(100, 100, 111, 0.2);')
513
+ }">
514
+ <option *ngFor="let item of data; index as i" [value]="item.code">
515
+ {{ item.name }} {{ item.prefix }}
516
+ </option>
517
+ </select>
518
+ </div>
519
+ `, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:10px;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:transparent;-webkit-appearance:none}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;transition:.5s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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:-20px;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"] }]
520
+ }], propDecorators: { isRequired: [{
521
+ type: Input
522
+ }], data: [{
523
+ type: Input
524
+ }], defaultText: [{
525
+ type: Input
526
+ }], selectCode: [{
527
+ type: Input
528
+ }], eventSelect: [{
529
+ type: Output
530
+ }], control: [{
531
+ type: Input
532
+ }] } });
533
+
534
+ class DesignSystemModule {
535
+ }
536
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
537
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, declarations: [AsideButtonComponent,
538
+ ButtonComponent,
539
+ CheckboxComponent,
540
+ DatalistComponent,
541
+ InputComponent,
542
+ RadioComponent,
543
+ SelectComponent], imports: [CommonModule,
544
+ BrowserModule,
545
+ FormsModule,
546
+ ReactiveFormsModule], exports: [AsideButtonComponent,
547
+ ButtonComponent,
548
+ CheckboxComponent,
549
+ DatalistComponent,
550
+ InputComponent,
551
+ RadioComponent,
552
+ SelectComponent] });
553
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
554
+ CommonModule,
555
+ BrowserModule,
556
+ FormsModule,
557
+ ReactiveFormsModule
558
+ ]] });
559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
560
+ type: NgModule,
561
+ args: [{
562
+ declarations: [
563
+ AsideButtonComponent,
564
+ ButtonComponent,
565
+ CheckboxComponent,
566
+ DatalistComponent,
567
+ InputComponent,
568
+ RadioComponent,
569
+ SelectComponent
570
+ ],
571
+ imports: [
572
+ CommonModule,
573
+ BrowserModule,
574
+ FormsModule,
575
+ ReactiveFormsModule
576
+ ],
577
+ exports: [
578
+ AsideButtonComponent,
579
+ ButtonComponent,
580
+ CheckboxComponent,
581
+ DatalistComponent,
582
+ InputComponent,
583
+ RadioComponent,
584
+ SelectComponent
585
+ ]
586
+ }]
587
+ }] });
588
+
589
+ /*
590
+ * Public API Surface of design-system
591
+ */
592
+
593
+ /**
594
+ * Generated bundle index. Do not edit.
595
+ */
596
+
597
+ export { AsideButtonComponent, ButtonComponent, CheckboxComponent, DatalistComponent, DesignSystemModule, InputComponent, RadioComponent, SelectComponent };
598
+ //# sourceMappingURL=design-system-ipt.mjs.map