iptdevs-design-system 2.2.36 → 2.2.37
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/esm2020/lib/components/atoms/datalist/datalist.component.mjs +7 -10
- package/esm2020/lib/components/atoms/select/select.component.mjs +4 -9
- package/fesm2015/iptdevs-design-system.mjs +9 -17
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +9 -17
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/components/atoms/datalist/datalist.component.d.ts +1 -2
- package/lib/components/atoms/select/select.component.d.ts +1 -2
- package/package.json +1 -1
|
@@ -172,7 +172,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
172
172
|
|
|
173
173
|
class DatalistComponent {
|
|
174
174
|
constructor(fb) {
|
|
175
|
-
this.disabledSel = false;
|
|
176
175
|
this.isChanged = new EventEmitter();
|
|
177
176
|
this.clicked = false;
|
|
178
177
|
this.formControl = fb.group({
|
|
@@ -202,8 +201,8 @@ class DatalistComponent {
|
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
203
|
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 });
|
|
205
|
-
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"
|
|
206
|
-
<div class="input-container">
|
|
204
|
+
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: `
|
|
205
|
+
<div class="input-container" [formGroup]="formControl">
|
|
207
206
|
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
208
207
|
<input
|
|
209
208
|
type="text"
|
|
@@ -211,7 +210,7 @@ DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
211
210
|
(click)="click($event)"
|
|
212
211
|
[attr.list]="datalistId"
|
|
213
212
|
(change)="optionChanged($event)"
|
|
214
|
-
|
|
213
|
+
formControlName="dataListControl"
|
|
215
214
|
/>
|
|
216
215
|
|
|
217
216
|
<datalist id="{{ datalistId }}">
|
|
@@ -220,11 +219,11 @@ DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
220
219
|
</option>
|
|
221
220
|
</datalist>
|
|
222
221
|
</div>
|
|
223
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.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-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: 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"] }] });
|
|
222
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.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-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: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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"] }] });
|
|
224
223
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
225
224
|
type: Component,
|
|
226
225
|
args: [{ selector: 'ipt-datalist', template: `
|
|
227
|
-
<div class="input-container">
|
|
226
|
+
<div class="input-container" [formGroup]="formControl">
|
|
228
227
|
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
229
228
|
<input
|
|
230
229
|
type="text"
|
|
@@ -232,7 +231,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
232
231
|
(click)="click($event)"
|
|
233
232
|
[attr.list]="datalistId"
|
|
234
233
|
(change)="optionChanged($event)"
|
|
235
|
-
|
|
234
|
+
formControlName="dataListControl"
|
|
236
235
|
/>
|
|
237
236
|
|
|
238
237
|
<datalist id="{{ datalistId }}">
|
|
@@ -252,8 +251,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
252
251
|
type: Input
|
|
253
252
|
}], initalData: [{
|
|
254
253
|
type: Input
|
|
255
|
-
}], disabledSel: [{
|
|
256
|
-
type: Input
|
|
257
254
|
}], isChanged: [{
|
|
258
255
|
type: Output
|
|
259
256
|
}] } });
|
|
@@ -516,7 +513,6 @@ class SelectComponent {
|
|
|
516
513
|
constructor() {
|
|
517
514
|
this.boxShadow = 0;
|
|
518
515
|
this.clicked = false;
|
|
519
|
-
this.disabledSel = false;
|
|
520
516
|
this.eventSelect = new EventEmitter();
|
|
521
517
|
}
|
|
522
518
|
// type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
|
|
@@ -552,15 +548,14 @@ class SelectComponent {
|
|
|
552
548
|
}
|
|
553
549
|
}
|
|
554
550
|
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
555
|
-
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",
|
|
551
|
+
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: `
|
|
556
552
|
<div class="select-container">
|
|
557
553
|
<label [ngClass]="labelClass">{{ defaultText }}</label>
|
|
558
554
|
<select
|
|
559
555
|
[(ngModel)]="binding"
|
|
560
556
|
(ngModelChange)="seleccionar($event)"
|
|
561
557
|
(click)="click($event)"
|
|
562
|
-
[ngClass]="textClass"
|
|
563
|
-
[disabled]="disabledSel">
|
|
558
|
+
[ngClass]="textClass">
|
|
564
559
|
<option *ngFor="let item of data; index as i" [value]="item.code">
|
|
565
560
|
{{ item.name }} {{ item.prefix }}
|
|
566
561
|
</option>
|
|
@@ -576,8 +571,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
576
571
|
[(ngModel)]="binding"
|
|
577
572
|
(ngModelChange)="seleccionar($event)"
|
|
578
573
|
(click)="click($event)"
|
|
579
|
-
[ngClass]="textClass"
|
|
580
|
-
[disabled]="disabledSel">
|
|
574
|
+
[ngClass]="textClass">
|
|
581
575
|
<option *ngFor="let item of data; index as i" [value]="item.code">
|
|
582
576
|
{{ item.name }} {{ item.prefix }}
|
|
583
577
|
</option>
|
|
@@ -592,8 +586,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
592
586
|
type: Input
|
|
593
587
|
}], selectCode: [{
|
|
594
588
|
type: Input
|
|
595
|
-
}], disabledSel: [{
|
|
596
|
-
type: Input
|
|
597
589
|
}], eventSelect: [{
|
|
598
590
|
type: Output
|
|
599
591
|
}], control: [{
|