Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Data entry mask #151

Open
wants to merge 8 commits into
base: devel
Choose a base branch
from
Open

WIP: Data entry mask #151

wants to merge 8 commits into from

Conversation

JavierCenteno
Copy link
Contributor

@JavierCenteno JavierCenteno added the enhancement New feature or request label Oct 11, 2021
@JavierCenteno JavierCenteno self-assigned this Oct 11, 2021
Copy link
Collaborator

@pjmolina pjmolina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some work to be done. Thanks.

@@ -1,47 +1,67 @@
<div *ngIf="currency && currency === 'USD'" class="prefix symbol">
<span>$</span>
</div>
<input
#input
<div
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¿para que hace falta un DIV? ¿para el ngIf? si es solo para eso, no es necerio, pon el if en el input y el text-area
un ng-content tambien hace lo mismo, sin añadir un elemento al DOM innecesario.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

añadir o quitar elementos de DOM a controles ya publicados tiene el efecto colateral de que puede romper selectores css

readonly="true"
/>
</div>
<div
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem

@@ -7,6 +7,22 @@ import { Injectable } from '@angular/core';
export class RegexpService {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Suggestion tiene la complejidad suficiente, para justificar que le implementemos test al 100%. Añadelos por favor.
  2. No necesitamos un servicio Angular, en el sentido que nadie va a inyectarlo y reemplazarlo desde el exterior.
    Para simplicarlo, lo reconvertiria en clase (no servicio angular) probablemente con funcionalidad estatica (por ver).

@JavierCenteno JavierCenteno changed the title Data entry mask WIP Data entry mask Oct 21, 2021
@pjmolina pjmolina changed the title WIP Data entry mask WIP: Data entry mask Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants