Skip to content

Commit

Permalink
feat(ref: no-ref): enhancements (#1467)
Browse files Browse the repository at this point in the history
* feat(ref: no-ref): chane @input, @Ouput to signal

* feat(ref: no-ref): add security autoCsp, unusedStandaloneImports to error

* feat(ref: no-ref): change tests to signals

* feat(ref: no-ref): change tests to signals

* feat(ref: no-ref): remove unusable code

* feat(ref: no-ref): remove unusable code

* feat(ref: no-ref): did ngxtension migration
  • Loading branch information
andriikamaldinov1 authored Nov 29, 2024
1 parent 566b948 commit 035f1ad
Show file tree
Hide file tree
Showing 44 changed files with 1,463 additions and 1,509 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 19.0.1(2024-11-29)

### Feature

- change @Input to input in NgxMaskDirective
- change @Output output in NgxMaskDirective
- change variables to signals in NgxMaskDirective


# 19.0.0(2024-11-22)

### Feature
Expand Down
1 change: 1 addition & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"security": { "autoCsp": true },
"outputPath": "dist/ngx-mask",
"index": "src/index.html",
"browser": "src/main.ts",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-mask",
"version": "19.0.0",
"version": "19.0.1",
"description": "Awesome ngx mask",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -74,6 +74,7 @@
"cypress": "^13.16.0",
"highlight.js": "11.10.0",
"ngx-highlightjs": "12.0.0",
"ngxtension": "^4.1.0",
"rxjs": "7.8.1",
"semantic-release": "24.2.0",
"semantic-release-export-data": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-mask-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-mask",
"version": "19.0.0",
"version": "19.0.1",
"description": "awesome ngx mask",
"keywords": [
"ng2-mask",
Expand Down
11 changes: 0 additions & 11 deletions projects/ngx-mask-lib/src/lib/ngx-mask-applier.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export class NgxMaskApplierService {

public hiddenInput: NgxMaskConfig['hiddenInput'] = this._config.hiddenInput;

public showTemplate!: NgxMaskConfig['showTemplate'];

public clearIfNotMatch: NgxMaskConfig['clearIfNotMatch'] = this._config.clearIfNotMatch;

public specialCharacters: NgxMaskConfig['specialCharacters'] = this._config.specialCharacters;
Expand Down Expand Up @@ -73,15 +71,6 @@ export class NgxMaskApplierService {

public cpfCnpjError?: boolean;

public applyMaskWithPattern(
inputValue: string,
maskAndPattern: [string, NgxMaskConfig['patterns']]
): string {
const [mask, customPattern] = maskAndPattern;
this.customPattern = customPattern;
return this.applyMask(inputValue, mask);
}

public applyMask(
inputValue: string | object | boolean | null | undefined,
maskExpression: string,
Expand Down
2 changes: 0 additions & 2 deletions projects/ngx-mask-lib/src/lib/ngx-mask.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export type NgxMaskConfig = {
thousandSeparator: string;
decimalMarker: '.' | ',' | ['.', ','];
clearIfNotMatch: boolean;
showTemplate: boolean;
showMaskTyped: boolean;
placeHolderCharacter: string;
shownMaskExpression: string;
Expand Down Expand Up @@ -50,7 +49,6 @@ export const initialConfig: NgxMaskConfig = {
thousandSeparator: ' ',
decimalMarker: ['.', ','],
clearIfNotMatch: false,
showTemplate: false,
showMaskTyped: false,
placeHolderCharacter: '_',
dropSpecialCharacters: true,
Expand Down
Loading

0 comments on commit 035f1ad

Please sign in to comment.