lct-components
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -591,8 +591,2 @@ (function (global, factory) { | ||
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = { | ||
provide: i2.NG_VALUE_ACCESSOR, | ||
// tslint:disable-next-line: no-use-before-declare | ||
useExisting: i0.forwardRef(function () { return InputTextComponent; }), | ||
multi: true | ||
}; | ||
var InputTextComponent = /** @class */ (function () { | ||
@@ -616,16 +610,2 @@ function InputTextComponent(render) { | ||
} | ||
InputTextComponent.prototype.writeValue = function (value) { | ||
if (typeof value !== 'undefined') { | ||
this.onKeyUpHandler(value); | ||
} | ||
}; | ||
InputTextComponent.prototype.registerOnChange = function (fn) { | ||
this.propagateChange = fn; | ||
}; | ||
InputTextComponent.prototype.registerOnTouched = function (fn) { | ||
// console.log('reg touch', fn) | ||
}; | ||
InputTextComponent.prototype.onKeyUpHandler = function (event) { | ||
this.propagateChange(this.inputValue); | ||
}; | ||
InputTextComponent.prototype.ngAfterViewInit = function () { | ||
@@ -656,2 +636,22 @@ var _this = this; | ||
}; | ||
InputTextComponent.prototype.writeValue = function (value) { | ||
if (typeof value !== 'undefined') { | ||
this.onKeyUpHandler(value); | ||
} | ||
}; | ||
InputTextComponent.prototype.registerOnChange = function (fn) { | ||
this.propagateChange = fn; | ||
}; | ||
InputTextComponent.prototype.registerOnTouched = function (fn) { | ||
// console.log('reg touch', fn) | ||
}; | ||
InputTextComponent.prototype.onKeyUpHandler = function (event) { | ||
if (!this.inputValue && typeof event === 'string') { | ||
this.inputValue = event; | ||
} | ||
if (this.inputValue && event === null) { | ||
this.inputValue = ''; | ||
} | ||
this.propagateChange(this.inputValue); | ||
}; | ||
InputTextComponent.prototype.click = function () { | ||
@@ -675,3 +675,7 @@ if (!this.disabled) { | ||
InputTextComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: InputTextComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component }); | ||
InputTextComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: InputTextComponent, selector: "lct-input-text", inputs: { disabled: "disabled", icon: "icon", iconPosition: "iconPosition", pdaAutoEnter: "pdaAutoEnter", placeholder: "placeholder", showIcon: "showIcon", title: "title", type: "type" }, outputs: { enterEmitted: "enterEmitted", iconClick: "iconClick", inputClick: "inputClick" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "inputScan", first: true, predicate: ["inputScan"], descendants: true }, { propertyName: "iconDiv", first: true, predicate: ["iconDiv"], descendants: true }], ngImport: i0__namespace, template: "<div>\n <div class=\"title\">\n {{title}}\n </div>\n <div class=\"input-with-icon iconLeft\">\n <input [type]=\"type\"\n class=\"form-control\"\n #inputScan\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (keydown.enter)=\"enterEmit()\"\n (keydown.tab)=\"enterEmit()\"\n (keyup)=\"onKeyUpHandler($event)\"\n (click)=\"clickInput()\"\n (ngModelChange)=\"lpnUpdate.next(inputScan.value);\"\n >\n <div class=\"icon\" #iconDiv *ngIf=\"showIcon\">\n <img [src]=\"icon\" [ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer'}\" alt=\"\" (click)=\"click()\">\n </div>\n </div>\n</div>\n", styles: ["*{font-family:\"Barlow\",\"Open Sans\",\"Helvetica Neue\",\"Segoe UI\",\"Calibri\",\"Arial\",sans-serif}.title{color:#3c4149;font-size:12px;letter-spacing:0;line-height:15px;margin-left:2px;margin-bottom:5px}.input-with-icon{box-sizing:border-box;position:relative;height:40px}@media (max-width: 375px){.input-with-icon{height:50px}}.input-with-icon .form-control{height:100%;width:100%;border:1px solid #C2C2C2;border-radius:5px;background-color:#e0e5ee;box-sizing:border-box;color:#3c4149;font-size:14px;letter-spacing:0;line-height:17px;padding:12px 20px 12px 15px}.input-with-icon .form-control.iconLeft{padding:12px 20px 12px 60px}.input-with-icon .form-control:disabled{cursor:not-allowed;background-color:#c8ccd4}.input-with-icon .icon{position:absolute;right:1%;top:.01rem;width:2.6rem;height:2.6rem;border-radius:.3rem;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.input-with-icon .icon :hover{cursor:pointer}@media (max-width: 375px){.input-with-icon .icon{top:.3rem}}.input-with-icon .icon.iconLeft{left:15px}\n"], directives: [{ type: i2__namespace.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__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); | ||
InputTextComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: InputTextComponent, selector: "lct-input-text", inputs: { disabled: "disabled", icon: "icon", iconPosition: "iconPosition", pdaAutoEnter: "pdaAutoEnter", placeholder: "placeholder", showIcon: "showIcon", title: "title", type: "type" }, outputs: { enterEmitted: "enterEmitted", iconClick: "iconClick", inputClick: "inputClick" }, providers: [{ | ||
provide: i2.NG_VALUE_ACCESSOR, | ||
useExisting: InputTextComponent, | ||
multi: true | ||
}], viewQueries: [{ propertyName: "inputScan", first: true, predicate: ["inputScan"], descendants: true }, { propertyName: "iconDiv", first: true, predicate: ["iconDiv"], descendants: true }], ngImport: i0__namespace, template: "<div>\n <div class=\"title\">\n {{title}}\n </div>\n <div class=\"input-with-icon iconLeft\">\n <input [type]=\"type\"\n class=\"form-control\"\n #inputScan\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (keydown.enter)=\"enterEmit()\"\n (keydown.tab)=\"enterEmit()\"\n (keyup)=\"onKeyUpHandler($event)\"\n (click)=\"clickInput()\"\n (ngModelChange)=\"lpnUpdate.next(inputScan.value);\"\n >\n <div class=\"icon\" #iconDiv *ngIf=\"showIcon\">\n <img [src]=\"icon\" [ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer'}\" alt=\"\" (click)=\"click()\">\n </div>\n </div>\n</div>\n", styles: ["*{font-family:\"Barlow\",\"Open Sans\",\"Helvetica Neue\",\"Segoe UI\",\"Calibri\",\"Arial\",sans-serif}.title{color:#3c4149;font-size:12px;letter-spacing:0;line-height:15px;margin-left:2px;margin-bottom:5px}.input-with-icon{box-sizing:border-box;position:relative;height:40px}@media (max-width: 375px){.input-with-icon{height:50px}}.input-with-icon .form-control{height:100%;width:100%;border:1px solid #C2C2C2;border-radius:5px;background-color:#e0e5ee;box-sizing:border-box;color:#3c4149;font-size:14px;letter-spacing:0;line-height:17px;padding:12px 20px 12px 15px}.input-with-icon .form-control.iconLeft{padding:12px 20px 12px 60px}.input-with-icon .form-control:disabled{cursor:not-allowed;background-color:#c8ccd4}.input-with-icon .icon{position:absolute;right:1%;top:.01rem;width:2.6rem;height:2.6rem;border-radius:.3rem;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.input-with-icon .icon :hover{cursor:pointer}@media (max-width: 375px){.input-with-icon .icon{top:.3rem}}.input-with-icon .icon.iconLeft{left:15px}\n"], directives: [{ type: i2__namespace.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__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: InputTextComponent, decorators: [{ | ||
@@ -683,3 +687,7 @@ type: i0.Component, | ||
styleUrls: ['./input-text.component.scss'], | ||
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR] | ||
providers: [{ | ||
provide: i2.NG_VALUE_ACCESSOR, | ||
useExisting: InputTextComponent, | ||
multi: true | ||
}] | ||
}] | ||
@@ -741,11 +749,4 @@ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }]; }, propDecorators: { disabled: [{ | ||
var CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR = { | ||
provide: i2.NG_VALUE_ACCESSOR, | ||
// tslint:disable-next-line: no-use-before-declare | ||
useExisting: i0.forwardRef(function () { return SwitchComponent; }), | ||
multi: true | ||
}; | ||
var SwitchComponent = /** @class */ (function () { | ||
function SwitchComponent(renderer) { | ||
this.renderer = renderer; | ||
function SwitchComponent() { | ||
this.checked = false; | ||
@@ -759,22 +760,23 @@ this.disabled = false; | ||
SwitchComponent.prototype.ngAfterViewInit = function () { | ||
var _a, _b; | ||
if ((this.checked === '' || this.checked === true || this.checked !== 'false') && this.checked !== false) { | ||
this.renderer.setAttribute((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement, 'checked', 'checked'); | ||
if ((typeof this.checked === 'string' && (this.checked.toLowerCase() === 'true' || this.checked.toLowerCase() === 'checked' || this.checked === '')) || | ||
(typeof this.checked === 'boolean' && this.checked)) { | ||
console.log('entra al true check'); | ||
this.checked = true; | ||
} | ||
if ((this.disabled === '' || this.disabled === true || this.disabled !== 'false') && this.disabled !== false) { | ||
this.renderer.setAttribute((_b = this.checkbox) === null || _b === void 0 ? void 0 : _b.nativeElement, 'disabled', 'disabled'); | ||
else { | ||
this.checked = false; | ||
} | ||
}; | ||
SwitchComponent.prototype.toggle = function () { | ||
var _a, _b, _c; | ||
if ((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked) { | ||
this.renderer.setAttribute((_b = this.checkbox) === null || _b === void 0 ? void 0 : _b.nativeElement, 'checked', 'checked'); | ||
if ((typeof this.disabled === 'string' && (this.disabled.toLowerCase() === 'true' || this.disabled.toLowerCase() === 'disabled' || this.disabled === '')) || | ||
(typeof this.disabled === 'boolean' && this.disabled)) { | ||
this.disabled = true; | ||
} | ||
else { | ||
this.renderer.removeAttribute((_c = this.checkbox) === null || _c === void 0 ? void 0 : _c.nativeElement, 'checked'); | ||
this.disabled = false; | ||
} | ||
}; | ||
SwitchComponent.prototype.toggle = function () { | ||
this.checked = !this.checked; | ||
this.onKeyUpHandler(); | ||
}; | ||
SwitchComponent.prototype.writeValue = function (value) { | ||
console.log('value', value); | ||
if (typeof value !== 'undefined') { | ||
@@ -791,13 +793,18 @@ this.onKeyUpHandler(value); | ||
SwitchComponent.prototype.onKeyUpHandler = function (event) { | ||
var _a; | ||
this.propagateChange((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked); | ||
if (typeof event === 'boolean') { | ||
this.checked = event; | ||
} | ||
this.propagateChange(this.checked); | ||
}; | ||
SwitchComponent.prototype.enterEmit = function () { | ||
var _a; | ||
this.enterEmitted.emit((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked); | ||
this.enterEmitted.emit(this.checked); | ||
}; | ||
return SwitchComponent; | ||
}()); | ||
SwitchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: SwitchComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component }); | ||
SwitchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: SwitchComponent, selector: "lct-switch", inputs: { checked: "checked", disabled: "disabled" }, outputs: { enterEmitted: "enterEmitted" }, providers: [CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "checkbox", first: true, predicate: ["checkbox"], descendants: true }], ngImport: i0__namespace, template: "<label class=\"switch\" (click)=\"toggle()\">\n <input type=\"checkbox\" #checkbox >\n <span class=\"slider round\"></span>\n</label>\n", styles: [".switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #C8CCD4;transition:.4s}.slider:before{position:absolute;content:\"\";left:0%;right:50%;top:0%;bottom:0%;background-color:#e0e5ee;box-shadow:0 2px 2px #12245e26;transition:.4s}.slider:after{border:1px solid #C8CCD4;box-sizing:border-box}input:checked+.slider{background-color:#2a5aed;border:1px solid #2A5AED;box-sizing:border-box}input:disabled+.slider{background-color:#c8ccd4;cursor:not-allowed}input:checked+.slider:before{transform:translate(17px)}.slider.round{border-radius:100px}.slider.round:before{border-radius:50%}\n"] }); | ||
SwitchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: SwitchComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component }); | ||
SwitchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: SwitchComponent, selector: "lct-switch", inputs: { checked: "checked", disabled: "disabled" }, outputs: { enterEmitted: "enterEmitted" }, providers: [{ | ||
provide: i2.NG_VALUE_ACCESSOR, | ||
useExisting: SwitchComponent, | ||
multi: true | ||
}], ngImport: i0__namespace, template: "<label class=\"switch\">\n <input type=\"checkbox\" (click)=\"toggle()\" [checked]=\"checked\" [disabled]=\"disabled\">\n <span class=\"slider round\"></span>\n</label>\n", styles: [".switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #C8CCD4;transition:.4s}.slider:before{position:absolute;content:\"\";left:0%;right:50%;top:0%;bottom:0%;background-color:#e0e5ee;box-shadow:0 2px 2px #12245e26;transition:.4s}.slider:after{border:1px solid #C8CCD4;box-sizing:border-box}input:checked+.slider{background-color:#2a5aed;border:1px solid #2A5AED;box-sizing:border-box}input:disabled+.slider{background-color:#c8ccd4;cursor:not-allowed}input:checked+.slider:before{transform:translate(17px)}.slider.round{border-radius:100px}.slider.round:before{border-radius:50%}\n"] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0__namespace, type: SwitchComponent, decorators: [{ | ||
@@ -809,11 +816,12 @@ type: i0.Component, | ||
styleUrls: ['./switch.component.css'], | ||
providers: [CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR] | ||
providers: [{ | ||
provide: i2.NG_VALUE_ACCESSOR, | ||
useExisting: SwitchComponent, | ||
multi: true | ||
}] | ||
}] | ||
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }]; }, propDecorators: { checked: [{ | ||
}], ctorParameters: function () { return []; }, propDecorators: { checked: [{ | ||
type: i0.Input | ||
}], disabled: [{ | ||
type: i0.Input | ||
}], checkbox: [{ | ||
type: i0.ViewChild, | ||
args: ['checkbox'] | ||
}], enterEmitted: [{ | ||
@@ -884,4 +892,2 @@ type: i0.Output | ||
exports.ButtonComponent = ButtonComponent; | ||
exports.CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR; | ||
exports.CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR = CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR; | ||
exports.InputTextComponent = InputTextComponent; | ||
@@ -888,0 +894,0 @@ exports.LctComponentsComponent = LctComponentsComponent; |
import { __awaiter } from "tslib"; | ||
import { Component, EventEmitter, forwardRef, Input, Output, ViewChild } from '@angular/core'; | ||
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core'; | ||
import { Subject } from "rxjs"; | ||
@@ -9,8 +9,2 @@ import { debounceTime, distinctUntilChanged } from "rxjs/operators"; | ||
import * as i2 from "@angular/common"; | ||
export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = { | ||
provide: NG_VALUE_ACCESSOR, | ||
// tslint:disable-next-line: no-use-before-declare | ||
useExisting: forwardRef(() => InputTextComponent), | ||
multi: true | ||
}; | ||
export class InputTextComponent { | ||
@@ -34,16 +28,2 @@ constructor(render) { | ||
} | ||
writeValue(value) { | ||
if (typeof value !== 'undefined') { | ||
this.onKeyUpHandler(value); | ||
} | ||
} | ||
registerOnChange(fn) { | ||
this.propagateChange = fn; | ||
} | ||
registerOnTouched(fn) { | ||
// console.log('reg touch', fn) | ||
} | ||
onKeyUpHandler(event) { | ||
this.propagateChange(this.inputValue); | ||
} | ||
ngAfterViewInit() { | ||
@@ -70,2 +50,22 @@ var _a, _b; | ||
} | ||
writeValue(value) { | ||
if (typeof value !== 'undefined') { | ||
this.onKeyUpHandler(value); | ||
} | ||
} | ||
registerOnChange(fn) { | ||
this.propagateChange = fn; | ||
} | ||
registerOnTouched(fn) { | ||
// console.log('reg touch', fn) | ||
} | ||
onKeyUpHandler(event) { | ||
if (!this.inputValue && typeof event === 'string') { | ||
this.inputValue = event; | ||
} | ||
if (this.inputValue && event === null) { | ||
this.inputValue = ''; | ||
} | ||
this.propagateChange(this.inputValue); | ||
} | ||
click() { | ||
@@ -88,3 +88,7 @@ if (!this.disabled) { | ||
InputTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: InputTextComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); | ||
InputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: InputTextComponent, selector: "lct-input-text", inputs: { disabled: "disabled", icon: "icon", iconPosition: "iconPosition", pdaAutoEnter: "pdaAutoEnter", placeholder: "placeholder", showIcon: "showIcon", title: "title", type: "type" }, outputs: { enterEmitted: "enterEmitted", iconClick: "iconClick", inputClick: "inputClick" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "inputScan", first: true, predicate: ["inputScan"], descendants: true }, { propertyName: "iconDiv", first: true, predicate: ["iconDiv"], descendants: true }], ngImport: i0, template: "<div>\n <div class=\"title\">\n {{title}}\n </div>\n <div class=\"input-with-icon iconLeft\">\n <input [type]=\"type\"\n class=\"form-control\"\n #inputScan\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (keydown.enter)=\"enterEmit()\"\n (keydown.tab)=\"enterEmit()\"\n (keyup)=\"onKeyUpHandler($event)\"\n (click)=\"clickInput()\"\n (ngModelChange)=\"lpnUpdate.next(inputScan.value);\"\n >\n <div class=\"icon\" #iconDiv *ngIf=\"showIcon\">\n <img [src]=\"icon\" [ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer'}\" alt=\"\" (click)=\"click()\">\n </div>\n </div>\n</div>\n", styles: ["*{font-family:\"Barlow\",\"Open Sans\",\"Helvetica Neue\",\"Segoe UI\",\"Calibri\",\"Arial\",sans-serif}.title{color:#3c4149;font-size:12px;letter-spacing:0;line-height:15px;margin-left:2px;margin-bottom:5px}.input-with-icon{box-sizing:border-box;position:relative;height:40px}@media (max-width: 375px){.input-with-icon{height:50px}}.input-with-icon .form-control{height:100%;width:100%;border:1px solid #C2C2C2;border-radius:5px;background-color:#e0e5ee;box-sizing:border-box;color:#3c4149;font-size:14px;letter-spacing:0;line-height:17px;padding:12px 20px 12px 15px}.input-with-icon .form-control.iconLeft{padding:12px 20px 12px 60px}.input-with-icon .form-control:disabled{cursor:not-allowed;background-color:#c8ccd4}.input-with-icon .icon{position:absolute;right:1%;top:.01rem;width:2.6rem;height:2.6rem;border-radius:.3rem;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.input-with-icon .icon :hover{cursor:pointer}@media (max-width: 375px){.input-with-icon .icon{top:.3rem}}.input-with-icon .icon.iconLeft{left:15px}\n"], directives: [{ type: i1.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); | ||
InputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: InputTextComponent, selector: "lct-input-text", inputs: { disabled: "disabled", icon: "icon", iconPosition: "iconPosition", pdaAutoEnter: "pdaAutoEnter", placeholder: "placeholder", showIcon: "showIcon", title: "title", type: "type" }, outputs: { enterEmitted: "enterEmitted", iconClick: "iconClick", inputClick: "inputClick" }, providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: InputTextComponent, | ||
multi: true | ||
}], viewQueries: [{ propertyName: "inputScan", first: true, predicate: ["inputScan"], descendants: true }, { propertyName: "iconDiv", first: true, predicate: ["iconDiv"], descendants: true }], ngImport: i0, template: "<div>\n <div class=\"title\">\n {{title}}\n </div>\n <div class=\"input-with-icon iconLeft\">\n <input [type]=\"type\"\n class=\"form-control\"\n #inputScan\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (keydown.enter)=\"enterEmit()\"\n (keydown.tab)=\"enterEmit()\"\n (keyup)=\"onKeyUpHandler($event)\"\n (click)=\"clickInput()\"\n (ngModelChange)=\"lpnUpdate.next(inputScan.value);\"\n >\n <div class=\"icon\" #iconDiv *ngIf=\"showIcon\">\n <img [src]=\"icon\" [ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer'}\" alt=\"\" (click)=\"click()\">\n </div>\n </div>\n</div>\n", styles: ["*{font-family:\"Barlow\",\"Open Sans\",\"Helvetica Neue\",\"Segoe UI\",\"Calibri\",\"Arial\",sans-serif}.title{color:#3c4149;font-size:12px;letter-spacing:0;line-height:15px;margin-left:2px;margin-bottom:5px}.input-with-icon{box-sizing:border-box;position:relative;height:40px}@media (max-width: 375px){.input-with-icon{height:50px}}.input-with-icon .form-control{height:100%;width:100%;border:1px solid #C2C2C2;border-radius:5px;background-color:#e0e5ee;box-sizing:border-box;color:#3c4149;font-size:14px;letter-spacing:0;line-height:17px;padding:12px 20px 12px 15px}.input-with-icon .form-control.iconLeft{padding:12px 20px 12px 60px}.input-with-icon .form-control:disabled{cursor:not-allowed;background-color:#c8ccd4}.input-with-icon .icon{position:absolute;right:1%;top:.01rem;width:2.6rem;height:2.6rem;border-radius:.3rem;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.input-with-icon .icon :hover{cursor:pointer}@media (max-width: 375px){.input-with-icon .icon{top:.3rem}}.input-with-icon .icon.iconLeft{left:15px}\n"], directives: [{ type: i1.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: InputTextComponent, decorators: [{ | ||
@@ -96,3 +100,7 @@ type: Component, | ||
styleUrls: ['./input-text.component.scss'], | ||
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR] | ||
providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: InputTextComponent, | ||
multi: true | ||
}] | ||
}] | ||
@@ -128,2 +136,2 @@ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { disabled: [{ | ||
}] } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtdGV4dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sY3QtY29tcG9uZW50cy9zcmMvbGliL2lucHV0LXRleHQvaW5wdXQtdGV4dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sY3QtY29tcG9uZW50cy9zcmMvbGliL2lucHV0LXRleHQvaW5wdXQtdGV4dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUVMLFNBQVMsRUFFVCxZQUFZLEVBQUUsVUFBVSxFQUN4QixLQUFLLEVBRUwsTUFBTSxFQUVOLFNBQVMsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBQzdCLE9BQU8sRUFBQyxZQUFZLEVBQUUsb0JBQW9CLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQXVCLGlCQUFpQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7Ozs7QUFFdkUsTUFBTS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Wljb24gaWNvbkxlZnRcIj5cbiAgICA8aW5wdXQgW3R5cGVdPVwidHlwZVwiXG4gICAgICAgICAgIGNsYXNzPVwiZm9ybS1jb250cm9sXCJcbiAgICAgICAgICAgI2lucHV0U2NhblxuICAgICAgICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAgICAgICAgICBbcGxhY2Vob2xkZXJdPVwicGxhY2Vob2xkZXJcIlxuICAgICAgICAgICBbKG5nTW9kZWwpXT1cImlucHV0VmFsdWVcIlxuICAgICAgICAgICAoa2V5ZG93bi5lbnRlcik9XCJlbnRlckVtaXQoKVwiXG4gICAgICAgICAgIChrZXlkb3duLnRhYik9XCJlbnRlckVtaXQoKVwiXG4gICAgICAgICAgIChrZXl1cCk9XCJvbktleVVwSGFuZGxlcigkZXZlbnQpXCJcbiAgICAgICAgICAgKGNsaWNrKT1cImNsaWNrSW5wdXQoKVwiXG4gICAgICAgICAgIChuZ01vZGVsQ2hhbmdlKT1cImxwblVwZGF0ZS5uZXh0KGlucHV0U2Nhbi52YWx1ZSk7XCJcbiAgICA+XG4gICAgPGRpdiBjbGFzcz1cImljb25cIiAjaWNvbkRpdiAqbmdJZj1cInNob3dJY29uXCI+XG4gICAgICA8aW1nIFtzcmNdPVwiaWNvblwiIFtuZ1N0eWxlXT1cInsnY3Vyc29yJzogZGlzYWJsZWQgPyAnbm90LWFsbG93ZWQnIDogJ3BvaW50ZXInfVwiIGFsdD1cIlwiIChjbGljayk9XCJjbGljaygpXCI+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0= |
@@ -10,3 +10,3 @@ import { NgModule } from '@angular/core'; | ||
import { LoadingComponent } from './loading/loading.component'; | ||
import { SwitchComponent } from './switch/switch.component'; | ||
import { SwitchComponent } from "./switch/switch.component"; | ||
import * as i0 from "@angular/core"; | ||
@@ -61,2 +61,2 @@ export class LctComponentsModule { | ||
}] }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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QgeyBCdXR0b25Db21wb25lbnQgfSBmcm9tICcuL2J1dHRvbi9idXR0b24uY29tcG9uZW50JztcbmltcG9ydCB7IElucHV0VGV4dENvbXBvbmVudCB9IGZyb20gJy4vaW5wdXQtdGV4dC9pbnB1dC10ZXh0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBMb2FkaW5nQ29tcG9uZW50IH0gZnJvbSAnLi9sb2FkaW5nL2xvYWRpbmcuY29tcG9uZW50JztcbmltcG9ydCB7IFN3aXRjaENvbXBvbmVudCB9IGZyb20gJy4vc3dpdGNoL3N3aXRjaC5jb21wb25lbnQnO1xuXG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgQnV0dG9uQ29tcG9uZW50LFxuICAgIElucHV0VGV4dENvbXBvbmVudCxcbiAgICBMY3RDb21wb25lbnRzQ29tcG9uZW50LFxuICAgIFNlbGVjdENvbXBvbmVudCxcbiAgICBTZWxlY3RNdWx0aXBsZUNvbXBvbmVudCxcbiAgICBMb2FkaW5nQ29tcG9uZW50LFxuICAgIFN3aXRjaENvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBCdXR0b25Db21wb25lbnQsXG4gICAgSW5wdXRUZXh0Q29tcG9uZW50LFxuICAgIExjdENvbXBvbmVudHNDb21wb25lbnQsXG4gICAgU2VsZWN0Q29tcG9uZW50LFxuICAgIFNlbGVjdE11bHRpcGxlQ29tcG9uZW50LFxuICAgIExvYWRpbmdDb21wb25lbnQsXG4gICAgU3dpdGNoQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgTGN0Q29tcG9uZW50c01vZHVsZSB7IH1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGN0LWNvbXBvbmVudHMubW9kdWxlLmp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i9idXR0b24uY29tcG9uZW50JztcbmltcG9ydCB7IElucHV0VGV4dENvbXBvbmVudCB9IGZyb20gJy4vaW5wdXQtdGV4dC9pbnB1dC10ZXh0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBMb2FkaW5nQ29tcG9uZW50IH0gZnJvbSAnLi9sb2FkaW5nL2xvYWRpbmcuY29tcG9uZW50JztcbmltcG9ydCB7U3dpdGNoQ29tcG9uZW50fSBmcm9tIFwiLi9zd2l0Y2gvc3dpdGNoLmNvbXBvbmVudFwiO1xuXG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgQnV0dG9uQ29tcG9uZW50LFxuICAgIElucHV0VGV4dENvbXBvbmVudCxcbiAgICBMY3RDb21wb25lbnRzQ29tcG9uZW50LFxuICAgIFNlbGVjdENvbXBvbmVudCxcbiAgICBTZWxlY3RNdWx0aXBsZUNvbXBvbmVudCxcbiAgICBMb2FkaW5nQ29tcG9uZW50LFxuICAgIFN3aXRjaENvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBCdXR0b25Db21wb25lbnQsXG4gICAgSW5wdXRUZXh0Q29tcG9uZW50LFxuICAgIExjdENvbXBvbmVudHNDb21wb25lbnQsXG4gICAgU2VsZWN0Q29tcG9uZW50LFxuICAgIFNlbGVjdE11bHRpcGxlQ29tcG9uZW50LFxuICAgIExvYWRpbmdDb21wb25lbnQsXG4gICAgU3dpdGNoQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgTGN0Q29tcG9uZW50c01vZHVsZSB7IH1cbiJdfQ== |
@@ -1,13 +0,6 @@ | ||
import { Component, EventEmitter, forwardRef, Input, Output, ViewChild } from '@angular/core'; | ||
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR } from "@angular/forms"; | ||
import * as i0 from "@angular/core"; | ||
export const CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR = { | ||
provide: NG_VALUE_ACCESSOR, | ||
// tslint:disable-next-line: no-use-before-declare | ||
useExisting: forwardRef(() => SwitchComponent), | ||
multi: true | ||
}; | ||
export class SwitchComponent { | ||
constructor(renderer) { | ||
this.renderer = renderer; | ||
constructor() { | ||
this.checked = false; | ||
@@ -21,22 +14,23 @@ this.disabled = false; | ||
ngAfterViewInit() { | ||
var _a, _b; | ||
if ((this.checked === '' || this.checked === true || this.checked !== 'false') && this.checked !== false) { | ||
this.renderer.setAttribute((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement, 'checked', 'checked'); | ||
if ((typeof this.checked === 'string' && (this.checked.toLowerCase() === 'true' || this.checked.toLowerCase() === 'checked' || this.checked === '')) || | ||
(typeof this.checked === 'boolean' && this.checked)) { | ||
console.log('entra al true check'); | ||
this.checked = true; | ||
} | ||
if ((this.disabled === '' || this.disabled === true || this.disabled !== 'false') && this.disabled !== false) { | ||
this.renderer.setAttribute((_b = this.checkbox) === null || _b === void 0 ? void 0 : _b.nativeElement, 'disabled', 'disabled'); | ||
else { | ||
this.checked = false; | ||
} | ||
} | ||
toggle() { | ||
var _a, _b, _c; | ||
if ((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked) { | ||
this.renderer.setAttribute((_b = this.checkbox) === null || _b === void 0 ? void 0 : _b.nativeElement, 'checked', 'checked'); | ||
if ((typeof this.disabled === 'string' && (this.disabled.toLowerCase() === 'true' || this.disabled.toLowerCase() === 'disabled' || this.disabled === '')) || | ||
(typeof this.disabled === 'boolean' && this.disabled)) { | ||
this.disabled = true; | ||
} | ||
else { | ||
this.renderer.removeAttribute((_c = this.checkbox) === null || _c === void 0 ? void 0 : _c.nativeElement, 'checked'); | ||
this.disabled = false; | ||
} | ||
} | ||
toggle() { | ||
this.checked = !this.checked; | ||
this.onKeyUpHandler(); | ||
} | ||
writeValue(value) { | ||
console.log('value', value); | ||
if (typeof value !== 'undefined') { | ||
@@ -53,12 +47,17 @@ this.onKeyUpHandler(value); | ||
onKeyUpHandler(event) { | ||
var _a; | ||
this.propagateChange((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked); | ||
if (typeof event === 'boolean') { | ||
this.checked = event; | ||
} | ||
this.propagateChange(this.checked); | ||
} | ||
enterEmit() { | ||
var _a; | ||
this.enterEmitted.emit((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked); | ||
this.enterEmitted.emit(this.checked); | ||
} | ||
} | ||
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: SwitchComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); | ||
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: SwitchComponent, selector: "lct-switch", inputs: { checked: "checked", disabled: "disabled" }, outputs: { enterEmitted: "enterEmitted" }, providers: [CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "checkbox", first: true, predicate: ["checkbox"], descendants: true }], ngImport: i0, template: "<label class=\"switch\" (click)=\"toggle()\">\n <input type=\"checkbox\" #checkbox >\n <span class=\"slider round\"></span>\n</label>\n", styles: [".switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #C8CCD4;transition:.4s}.slider:before{position:absolute;content:\"\";left:0%;right:50%;top:0%;bottom:0%;background-color:#e0e5ee;box-shadow:0 2px 2px #12245e26;transition:.4s}.slider:after{border:1px solid #C8CCD4;box-sizing:border-box}input:checked+.slider{background-color:#2a5aed;border:1px solid #2A5AED;box-sizing:border-box}input:disabled+.slider{background-color:#c8ccd4;cursor:not-allowed}input:checked+.slider:before{transform:translate(17px)}.slider.round{border-radius:100px}.slider.round:before{border-radius:50%}\n"] }); | ||
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: SwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); | ||
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: SwitchComponent, selector: "lct-switch", inputs: { checked: "checked", disabled: "disabled" }, outputs: { enterEmitted: "enterEmitted" }, providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: SwitchComponent, | ||
multi: true | ||
}], ngImport: i0, template: "<label class=\"switch\">\n <input type=\"checkbox\" (click)=\"toggle()\" [checked]=\"checked\" [disabled]=\"disabled\">\n <span class=\"slider round\"></span>\n</label>\n", styles: [".switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #C8CCD4;transition:.4s}.slider:before{position:absolute;content:\"\";left:0%;right:50%;top:0%;bottom:0%;background-color:#e0e5ee;box-shadow:0 2px 2px #12245e26;transition:.4s}.slider:after{border:1px solid #C8CCD4;box-sizing:border-box}input:checked+.slider{background-color:#2a5aed;border:1px solid #2A5AED;box-sizing:border-box}input:disabled+.slider{background-color:#c8ccd4;cursor:not-allowed}input:checked+.slider:before{transform:translate(17px)}.slider.round{border-radius:100px}.slider.round:before{border-radius:50%}\n"] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: SwitchComponent, decorators: [{ | ||
@@ -70,14 +69,15 @@ type: Component, | ||
styleUrls: ['./switch.component.css'], | ||
providers: [CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR] | ||
providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: SwitchComponent, | ||
multi: true | ||
}] | ||
}] | ||
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { checked: [{ | ||
}], ctorParameters: function () { return []; }, propDecorators: { checked: [{ | ||
type: Input | ||
}], disabled: [{ | ||
type: Input | ||
}], checkbox: [{ | ||
type: ViewChild, | ||
args: ['checkbox'] | ||
}], enterEmitted: [{ | ||
type: Output | ||
}] } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2xjdC1jb21wb25lbnRzL3NyYy9saWIvc3dpdGNoL3N3aXRjaC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sY3QtY29tcG9uZW50cy9zcmMvbGliL3N3aXRjaC9zd2l0Y2guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLFNBQVMsRUFFVCxZQUFZLEVBQUUsVUFBVSxFQUN4QixLQUFLLEVBRUwsTUFBTSxFQUVOLFNBQVMsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQXVCLGlCQUFpQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7O0FBRXZFLE1BQU0sQ0FBQyxNQUFNLG9DQUFvQyxHQUFRO0lBQ3ZELE9BQU8sRUFBRSxpQkFBaUI7SUFDMUIsa0RBQWtEO0lBQ2xELFdBQVcsRUFBRSxVQUFVLENBQUMsR0FBRyxFQUFFLENBQUMsZUFBZSxDQUFDO0lBQzlDLEtBQUssRUFBRSxJQUFJO0NBQ1osQ0FBQztBQVFGLE1BQU0sT0FBTyxlQUFlO0lBUzFCLFlBQW9CLFFBQW1CO1FBQW5CLGFBQVEsR0FBUixRQUFRLENBQVc7UUFQOUIsWUFBTyxHQUFxQixLQUFLLENBQUM7UUFDbEMsYUFBUSxHQUFxQixLQUFLLENBQUM7UUFFbEMsaUJBQVksR0F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3BhbiBjbGFzcz1cInNsaWRlciByb3VuZFwiPjwvc3Bhbj5cbjwvbGFiZWw+XG4iXX0= |
import * as i0 from '@angular/core'; | ||
import { Injectable, Component, EventEmitter, Input, Output, ElementRef, ViewChild, forwardRef, NgModule } from '@angular/core'; | ||
import { Injectable, Component, EventEmitter, Input, Output, ElementRef, ViewChild, NgModule } from '@angular/core'; | ||
import * as i1 from '@angular/common'; | ||
@@ -252,8 +252,2 @@ import { CommonModule } from '@angular/common'; | ||
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = { | ||
provide: NG_VALUE_ACCESSOR, | ||
// tslint:disable-next-line: no-use-before-declare | ||
useExisting: forwardRef(() => InputTextComponent), | ||
multi: true | ||
}; | ||
class InputTextComponent { | ||
@@ -277,16 +271,2 @@ constructor(render) { | ||
} | ||
writeValue(value) { | ||
if (typeof value !== 'undefined') { | ||
this.onKeyUpHandler(value); | ||
} | ||
} | ||
registerOnChange(fn) { | ||
this.propagateChange = fn; | ||
} | ||
registerOnTouched(fn) { | ||
// console.log('reg touch', fn) | ||
} | ||
onKeyUpHandler(event) { | ||
this.propagateChange(this.inputValue); | ||
} | ||
ngAfterViewInit() { | ||
@@ -313,2 +293,22 @@ var _a, _b; | ||
} | ||
writeValue(value) { | ||
if (typeof value !== 'undefined') { | ||
this.onKeyUpHandler(value); | ||
} | ||
} | ||
registerOnChange(fn) { | ||
this.propagateChange = fn; | ||
} | ||
registerOnTouched(fn) { | ||
// console.log('reg touch', fn) | ||
} | ||
onKeyUpHandler(event) { | ||
if (!this.inputValue && typeof event === 'string') { | ||
this.inputValue = event; | ||
} | ||
if (this.inputValue && event === null) { | ||
this.inputValue = ''; | ||
} | ||
this.propagateChange(this.inputValue); | ||
} | ||
click() { | ||
@@ -331,3 +331,7 @@ if (!this.disabled) { | ||
InputTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: InputTextComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); | ||
InputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: InputTextComponent, selector: "lct-input-text", inputs: { disabled: "disabled", icon: "icon", iconPosition: "iconPosition", pdaAutoEnter: "pdaAutoEnter", placeholder: "placeholder", showIcon: "showIcon", title: "title", type: "type" }, outputs: { enterEmitted: "enterEmitted", iconClick: "iconClick", inputClick: "inputClick" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "inputScan", first: true, predicate: ["inputScan"], descendants: true }, { propertyName: "iconDiv", first: true, predicate: ["iconDiv"], descendants: true }], ngImport: i0, template: "<div>\n <div class=\"title\">\n {{title}}\n </div>\n <div class=\"input-with-icon iconLeft\">\n <input [type]=\"type\"\n class=\"form-control\"\n #inputScan\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (keydown.enter)=\"enterEmit()\"\n (keydown.tab)=\"enterEmit()\"\n (keyup)=\"onKeyUpHandler($event)\"\n (click)=\"clickInput()\"\n (ngModelChange)=\"lpnUpdate.next(inputScan.value);\"\n >\n <div class=\"icon\" #iconDiv *ngIf=\"showIcon\">\n <img [src]=\"icon\" [ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer'}\" alt=\"\" (click)=\"click()\">\n </div>\n </div>\n</div>\n", styles: ["*{font-family:\"Barlow\",\"Open Sans\",\"Helvetica Neue\",\"Segoe UI\",\"Calibri\",\"Arial\",sans-serif}.title{color:#3c4149;font-size:12px;letter-spacing:0;line-height:15px;margin-left:2px;margin-bottom:5px}.input-with-icon{box-sizing:border-box;position:relative;height:40px}@media (max-width: 375px){.input-with-icon{height:50px}}.input-with-icon .form-control{height:100%;width:100%;border:1px solid #C2C2C2;border-radius:5px;background-color:#e0e5ee;box-sizing:border-box;color:#3c4149;font-size:14px;letter-spacing:0;line-height:17px;padding:12px 20px 12px 15px}.input-with-icon .form-control.iconLeft{padding:12px 20px 12px 60px}.input-with-icon .form-control:disabled{cursor:not-allowed;background-color:#c8ccd4}.input-with-icon .icon{position:absolute;right:1%;top:.01rem;width:2.6rem;height:2.6rem;border-radius:.3rem;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.input-with-icon .icon :hover{cursor:pointer}@media (max-width: 375px){.input-with-icon .icon{top:.3rem}}.input-with-icon .icon.iconLeft{left:15px}\n"], directives: [{ 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); | ||
InputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: InputTextComponent, selector: "lct-input-text", inputs: { disabled: "disabled", icon: "icon", iconPosition: "iconPosition", pdaAutoEnter: "pdaAutoEnter", placeholder: "placeholder", showIcon: "showIcon", title: "title", type: "type" }, outputs: { enterEmitted: "enterEmitted", iconClick: "iconClick", inputClick: "inputClick" }, providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: InputTextComponent, | ||
multi: true | ||
}], viewQueries: [{ propertyName: "inputScan", first: true, predicate: ["inputScan"], descendants: true }, { propertyName: "iconDiv", first: true, predicate: ["iconDiv"], descendants: true }], ngImport: i0, template: "<div>\n <div class=\"title\">\n {{title}}\n </div>\n <div class=\"input-with-icon iconLeft\">\n <input [type]=\"type\"\n class=\"form-control\"\n #inputScan\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (keydown.enter)=\"enterEmit()\"\n (keydown.tab)=\"enterEmit()\"\n (keyup)=\"onKeyUpHandler($event)\"\n (click)=\"clickInput()\"\n (ngModelChange)=\"lpnUpdate.next(inputScan.value);\"\n >\n <div class=\"icon\" #iconDiv *ngIf=\"showIcon\">\n <img [src]=\"icon\" [ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer'}\" alt=\"\" (click)=\"click()\">\n </div>\n </div>\n</div>\n", styles: ["*{font-family:\"Barlow\",\"Open Sans\",\"Helvetica Neue\",\"Segoe UI\",\"Calibri\",\"Arial\",sans-serif}.title{color:#3c4149;font-size:12px;letter-spacing:0;line-height:15px;margin-left:2px;margin-bottom:5px}.input-with-icon{box-sizing:border-box;position:relative;height:40px}@media (max-width: 375px){.input-with-icon{height:50px}}.input-with-icon .form-control{height:100%;width:100%;border:1px solid #C2C2C2;border-radius:5px;background-color:#e0e5ee;box-sizing:border-box;color:#3c4149;font-size:14px;letter-spacing:0;line-height:17px;padding:12px 20px 12px 15px}.input-with-icon .form-control.iconLeft{padding:12px 20px 12px 60px}.input-with-icon .form-control:disabled{cursor:not-allowed;background-color:#c8ccd4}.input-with-icon .icon{position:absolute;right:1%;top:.01rem;width:2.6rem;height:2.6rem;border-radius:.3rem;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.input-with-icon .icon :hover{cursor:pointer}@media (max-width: 375px){.input-with-icon .icon{top:.3rem}}.input-with-icon .icon.iconLeft{left:15px}\n"], directives: [{ 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: InputTextComponent, decorators: [{ | ||
@@ -339,3 +343,7 @@ type: Component, | ||
styleUrls: ['./input-text.component.scss'], | ||
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR] | ||
providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: InputTextComponent, | ||
multi: true | ||
}] | ||
}] | ||
@@ -395,11 +403,4 @@ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { disabled: [{ | ||
const CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR = { | ||
provide: NG_VALUE_ACCESSOR, | ||
// tslint:disable-next-line: no-use-before-declare | ||
useExisting: forwardRef(() => SwitchComponent), | ||
multi: true | ||
}; | ||
class SwitchComponent { | ||
constructor(renderer) { | ||
this.renderer = renderer; | ||
constructor() { | ||
this.checked = false; | ||
@@ -413,22 +414,23 @@ this.disabled = false; | ||
ngAfterViewInit() { | ||
var _a, _b; | ||
if ((this.checked === '' || this.checked === true || this.checked !== 'false') && this.checked !== false) { | ||
this.renderer.setAttribute((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement, 'checked', 'checked'); | ||
if ((typeof this.checked === 'string' && (this.checked.toLowerCase() === 'true' || this.checked.toLowerCase() === 'checked' || this.checked === '')) || | ||
(typeof this.checked === 'boolean' && this.checked)) { | ||
console.log('entra al true check'); | ||
this.checked = true; | ||
} | ||
if ((this.disabled === '' || this.disabled === true || this.disabled !== 'false') && this.disabled !== false) { | ||
this.renderer.setAttribute((_b = this.checkbox) === null || _b === void 0 ? void 0 : _b.nativeElement, 'disabled', 'disabled'); | ||
else { | ||
this.checked = false; | ||
} | ||
} | ||
toggle() { | ||
var _a, _b, _c; | ||
if ((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked) { | ||
this.renderer.setAttribute((_b = this.checkbox) === null || _b === void 0 ? void 0 : _b.nativeElement, 'checked', 'checked'); | ||
if ((typeof this.disabled === 'string' && (this.disabled.toLowerCase() === 'true' || this.disabled.toLowerCase() === 'disabled' || this.disabled === '')) || | ||
(typeof this.disabled === 'boolean' && this.disabled)) { | ||
this.disabled = true; | ||
} | ||
else { | ||
this.renderer.removeAttribute((_c = this.checkbox) === null || _c === void 0 ? void 0 : _c.nativeElement, 'checked'); | ||
this.disabled = false; | ||
} | ||
} | ||
toggle() { | ||
this.checked = !this.checked; | ||
this.onKeyUpHandler(); | ||
} | ||
writeValue(value) { | ||
console.log('value', value); | ||
if (typeof value !== 'undefined') { | ||
@@ -445,12 +447,17 @@ this.onKeyUpHandler(value); | ||
onKeyUpHandler(event) { | ||
var _a; | ||
this.propagateChange((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked); | ||
if (typeof event === 'boolean') { | ||
this.checked = event; | ||
} | ||
this.propagateChange(this.checked); | ||
} | ||
enterEmit() { | ||
var _a; | ||
this.enterEmitted.emit((_a = this.checkbox) === null || _a === void 0 ? void 0 : _a.nativeElement.checked); | ||
this.enterEmitted.emit(this.checked); | ||
} | ||
} | ||
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: SwitchComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); | ||
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: SwitchComponent, selector: "lct-switch", inputs: { checked: "checked", disabled: "disabled" }, outputs: { enterEmitted: "enterEmitted" }, providers: [CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "checkbox", first: true, predicate: ["checkbox"], descendants: true }], ngImport: i0, template: "<label class=\"switch\" (click)=\"toggle()\">\n <input type=\"checkbox\" #checkbox >\n <span class=\"slider round\"></span>\n</label>\n", styles: [".switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #C8CCD4;transition:.4s}.slider:before{position:absolute;content:\"\";left:0%;right:50%;top:0%;bottom:0%;background-color:#e0e5ee;box-shadow:0 2px 2px #12245e26;transition:.4s}.slider:after{border:1px solid #C8CCD4;box-sizing:border-box}input:checked+.slider{background-color:#2a5aed;border:1px solid #2A5AED;box-sizing:border-box}input:disabled+.slider{background-color:#c8ccd4;cursor:not-allowed}input:checked+.slider:before{transform:translate(17px)}.slider.round{border-radius:100px}.slider.round:before{border-radius:50%}\n"] }); | ||
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: SwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); | ||
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.5", type: SwitchComponent, selector: "lct-switch", inputs: { checked: "checked", disabled: "disabled" }, outputs: { enterEmitted: "enterEmitted" }, providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: SwitchComponent, | ||
multi: true | ||
}], ngImport: i0, template: "<label class=\"switch\">\n <input type=\"checkbox\" (click)=\"toggle()\" [checked]=\"checked\" [disabled]=\"disabled\">\n <span class=\"slider round\"></span>\n</label>\n", styles: [".switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #C8CCD4;transition:.4s}.slider:before{position:absolute;content:\"\";left:0%;right:50%;top:0%;bottom:0%;background-color:#e0e5ee;box-shadow:0 2px 2px #12245e26;transition:.4s}.slider:after{border:1px solid #C8CCD4;box-sizing:border-box}input:checked+.slider{background-color:#2a5aed;border:1px solid #2A5AED;box-sizing:border-box}input:disabled+.slider{background-color:#c8ccd4;cursor:not-allowed}input:checked+.slider:before{transform:translate(17px)}.slider.round{border-radius:100px}.slider.round:before{border-radius:50%}\n"] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.5", ngImport: i0, type: SwitchComponent, decorators: [{ | ||
@@ -462,11 +469,12 @@ type: Component, | ||
styleUrls: ['./switch.component.css'], | ||
providers: [CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR] | ||
providers: [{ | ||
provide: NG_VALUE_ACCESSOR, | ||
useExisting: SwitchComponent, | ||
multi: true | ||
}] | ||
}] | ||
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { checked: [{ | ||
}], ctorParameters: function () { return []; }, propDecorators: { checked: [{ | ||
type: Input | ||
}], disabled: [{ | ||
type: Input | ||
}], checkbox: [{ | ||
type: ViewChild, | ||
args: ['checkbox'] | ||
}], enterEmitted: [{ | ||
@@ -533,3 +541,3 @@ type: Output | ||
export { ButtonComponent, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR, InputTextComponent, LctComponentsComponent, LctComponentsModule, LctComponentsService, LoadingComponent, SelectComponent, SelectMultipleComponent, SwitchComponent }; | ||
export { ButtonComponent, InputTextComponent, LctComponentsComponent, LctComponentsModule, LctComponentsService, LoadingComponent, SelectComponent, SelectMultipleComponent, SwitchComponent }; | ||
//# sourceMappingURL=lct-components.js.map |
@@ -5,3 +5,2 @@ import { AfterViewInit, ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any; | ||
export declare class InputTextComponent implements ControlValueAccessor, OnInit, AfterViewInit { | ||
@@ -26,8 +25,8 @@ private render; | ||
constructor(render: Renderer2); | ||
ngAfterViewInit(): void; | ||
ngOnInit(): void; | ||
writeValue(value: any): void; | ||
registerOnChange(fn: any): void; | ||
registerOnTouched(fn: any): void; | ||
onKeyUpHandler(event?: KeyboardEvent): void; | ||
ngAfterViewInit(): void; | ||
ngOnInit(): void; | ||
onKeyUpHandler(event?: KeyboardEvent | string): void; | ||
click(): void; | ||
@@ -34,0 +33,0 @@ clickInput(): void; |
@@ -1,13 +0,10 @@ | ||
import { AfterViewInit, ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core'; | ||
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core'; | ||
import { ControlValueAccessor } from "@angular/forms"; | ||
import * as i0 from "@angular/core"; | ||
export declare const CUSTOM_SWITCH_CONTROL_VALUE_ACCESSOR: any; | ||
export declare class SwitchComponent implements ControlValueAccessor, OnInit, AfterViewInit { | ||
private renderer; | ||
checked: boolean | string; | ||
disabled: boolean | string; | ||
checkbox: ElementRef | undefined; | ||
enterEmitted: EventEmitter<string>; | ||
enterEmitted: EventEmitter<boolean>; | ||
propagateChange: (_: any) => void; | ||
constructor(renderer: Renderer2); | ||
constructor(); | ||
ngOnInit(): void; | ||
@@ -19,3 +16,3 @@ ngAfterViewInit(): void; | ||
registerOnTouched(fn: any): void; | ||
onKeyUpHandler(event?: KeyboardEvent): void; | ||
onKeyUpHandler(event?: KeyboardEvent | boolean): void; | ||
enterEmit(): void; | ||
@@ -22,0 +19,0 @@ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>; |
{ | ||
"name": "lct-components", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "LCT basic components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -23,2 +23,3 @@ | ||
[options]="['Select one', 'One Option']]" | ||
> | ||
@@ -34,9 +35,3 @@ </lct-select> | ||
</lct-select-multiple> | ||
``` | ||
#### Switch | ||
``` | ||
<lct-switch | ||
[(ngModel)]="yourVariable" | ||
></lct-switch> | ||
``` | ||
``` | ||
#### Input Text | ||
@@ -96,4 +91,10 @@ ``` | ||
| Method | Description | Example | | ||
|-- | -- | -- | | ||
| show(): void | Show loading overlay | this.lctLoading.show() | | ||
| dismiss(): void | Hide loading overlay | this.lctLoading.dismiss() | | ||
|-- | -- | --| | ||
| show(): void | show overlay | this.lctLoading.show() | | ||
| dismiss(): void | hide overlay | this.lctLoading.dismiss()| | ||
>Version 0.1.1 | ||
> | ||
>[(ngModel)] only can be used for: | ||
> > lct-input-text | ||
> > lct-switch |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2320
98
285226