Skip to content

Commit

Permalink
Finish input-mask
Browse files Browse the repository at this point in the history
  • Loading branch information
vinimarcili committed Aug 31, 2023
1 parent 572193a commit 85dbd83
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion docs/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
[id]="'teste-7'"
[name]="'teste-7'"
label="teste-6"
mask='(000) 000-0000'
mask='(00) 00000-0000'
[(value)]="valToMask"
></sq-input-mask>
{{ valToMask }}
Expand Down
5 changes: 0 additions & 5 deletions src/components/sq-input-mask/sq-input-mask.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,16 @@
[pattern]="pattern"
[attr.inputmode]="inputMode"
[mask]="mask"
[dropSpecialCharacters]="dropSpecialCharacters"
[showMaskTyped]="showMaskTyped"
[thousandSeparator]="thousandSeparator"
[specialCharacters]="specialCharacters"
[suffix]="suffix"
[prefix]="prefix"
[showMaskTyped]="showMaskTyped"
[dropSpecialCharacters]="dropSpecialCharacters"
[allowNegativeNumbers]="allowNegativeNumbers"
[placeHolderCharacter]="placeHolderCharacter"
[patterns]="patterns"
[leadZero]="leadZero"
ngDefaultControl
/>
{{ _value }}
<span class="input-group-text m-0" *ngIf="rightLabel">
<ng-container *ngTemplateOutlet="rightLabel"></ng-container>
</span>
Expand Down
3 changes: 0 additions & 3 deletions src/components/sq-input-mask/sq-input-mask.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ export class SqInputMaskComponent extends SqInputComponent {
@Input() thousandSeparator = ''
@Input() suffix = ''
@Input() prefix = ''
@Input() specialCharacters: string[] = []
@Input() showMaskTyped = false
@Input() dropSpecialCharacters = false
@Input() allowNegativeNumbers = false
@Input() placeHolderCharacter = ''
@Input() leadZero = true
@Input() patterns: { [character: string]: { pattern: RegExp, optional?: boolean } } = {}

override nativeElement: ElementRef

Expand Down

0 comments on commit 85dbd83

Please sign in to comment.