iptdevs-design-system 2.5.0 → 2.5.2
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/input/input.component.mjs +11 -3
- package/esm2020/lib/components/forms/login-form/login-form.component.mjs +1 -1
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +5 -1
- package/fesm2015/iptdevs-design-system.mjs +14 -2
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +14 -2
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/components/atoms/input/input.component.d.ts +4 -2
- package/lib/core/services/parameters-service/parameters.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -268,6 +268,7 @@ class InputComponent {
|
|
|
268
268
|
this.prefix = '$';
|
|
269
269
|
this.thousands = '.';
|
|
270
270
|
this.decimal = ',';
|
|
271
|
+
this.dateSelected = new EventEmitter();
|
|
271
272
|
}
|
|
272
273
|
set control(value) {
|
|
273
274
|
if (this.formControl !== value) {
|
|
@@ -275,17 +276,21 @@ class InputComponent {
|
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
278
|
ngOnInit() { }
|
|
279
|
+
selectedDate(evt) {
|
|
280
|
+
this.dateSelected.emit(evt);
|
|
281
|
+
}
|
|
278
282
|
click(value) {
|
|
279
283
|
this.clicked = value.isTrusted;
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
283
|
-
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" }, ngImport: i0, template: `
|
|
287
|
+
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: `
|
|
284
288
|
<div class="input-container">
|
|
285
289
|
<input *ngIf="inputType === 'date'"
|
|
286
290
|
class="input"
|
|
287
291
|
type="{{ inputType ? 'text' : 'date' }}"
|
|
288
292
|
[formControl]="formControl"
|
|
293
|
+
(ngModelChange)="selectedDate($event)"
|
|
289
294
|
onfocus="this.type='date';"
|
|
290
295
|
onblur="javascript: if( !this.value ) this.type='text';"
|
|
291
296
|
uib-datepicker-popup="dd/MM/yyyy"
|
|
@@ -332,6 +337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
332
337
|
class="input"
|
|
333
338
|
type="{{ inputType ? 'text' : 'date' }}"
|
|
334
339
|
[formControl]="formControl"
|
|
340
|
+
(ngModelChange)="selectedDate($event)"
|
|
335
341
|
onfocus="this.type='date';"
|
|
336
342
|
onblur="javascript: if( !this.value ) this.type='text';"
|
|
337
343
|
uib-datepicker-popup="dd/MM/yyyy"
|
|
@@ -390,6 +396,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
390
396
|
type: Input
|
|
391
397
|
}], decimal: [{
|
|
392
398
|
type: Input
|
|
399
|
+
}], dateSelected: [{
|
|
400
|
+
type: Output
|
|
393
401
|
}] } });
|
|
394
402
|
|
|
395
403
|
class LevelButtonComponent {
|
|
@@ -962,7 +970,7 @@ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
962
970
|
</div>
|
|
963
971
|
|
|
964
972
|
</div>
|
|
965
|
-
`, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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"] }] });
|
|
973
|
+
`, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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"] }] });
|
|
966
974
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
|
|
967
975
|
type: Component,
|
|
968
976
|
args: [{ selector: 'ipt-login-form', template: `
|
|
@@ -1408,6 +1416,10 @@ class ParameterService {
|
|
|
1408
1416
|
let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
|
|
1409
1417
|
return this.http.get(serviceUrl);
|
|
1410
1418
|
}
|
|
1419
|
+
getAllCourseModality() {
|
|
1420
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
|
|
1421
|
+
return this.http.get(serviceUrl);
|
|
1422
|
+
}
|
|
1411
1423
|
}
|
|
1412
1424
|
ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1413
1425
|
ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
|