Skip to content

Commit 035f1ad

Browse files
feat(ref: no-ref): enhancements (#1467)
* 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
1 parent 566b948 commit 035f1ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1463
-1509
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 19.0.1(2024-11-29)
2+
3+
### Feature
4+
5+
- change @Input to input in NgxMaskDirective
6+
- change @Output output in NgxMaskDirective
7+
- change variables to signals in NgxMaskDirective
8+
9+
110
# 19.0.0(2024-11-22)
211

312
### Feature

angular.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
16+
"security": { "autoCsp": true },
1617
"outputPath": "dist/ngx-mask",
1718
"index": "src/index.html",
1819
"browser": "src/main.ts",

bun.lockb

13.5 KB
Binary file not shown.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-mask",
3-
"version": "19.0.0",
3+
"version": "19.0.1",
44
"description": "Awesome ngx mask",
55
"license": "MIT",
66
"engines": {
@@ -74,6 +74,7 @@
7474
"cypress": "^13.16.0",
7575
"highlight.js": "11.10.0",
7676
"ngx-highlightjs": "12.0.0",
77+
"ngxtension": "^4.1.0",
7778
"rxjs": "7.8.1",
7879
"semantic-release": "24.2.0",
7980
"semantic-release-export-data": "^1.1.0",

projects/ngx-mask-lib/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-mask",
3-
"version": "19.0.0",
3+
"version": "19.0.1",
44
"description": "awesome ngx mask",
55
"keywords": [
66
"ng2-mask",

projects/ngx-mask-lib/src/lib/ngx-mask-applier.service.ts

-11
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export class NgxMaskApplierService {
1212

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

15-
public showTemplate!: NgxMaskConfig['showTemplate'];
16-
1715
public clearIfNotMatch: NgxMaskConfig['clearIfNotMatch'] = this._config.clearIfNotMatch;
1816

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

7472
public cpfCnpjError?: boolean;
7573

76-
public applyMaskWithPattern(
77-
inputValue: string,
78-
maskAndPattern: [string, NgxMaskConfig['patterns']]
79-
): string {
80-
const [mask, customPattern] = maskAndPattern;
81-
this.customPattern = customPattern;
82-
return this.applyMask(inputValue, mask);
83-
}
84-
8574
public applyMask(
8675
inputValue: string | object | boolean | null | undefined,
8776
maskExpression: string,

projects/ngx-mask-lib/src/lib/ngx-mask.config.ts

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export type NgxMaskConfig = {
1111
thousandSeparator: string;
1212
decimalMarker: '.' | ',' | ['.', ','];
1313
clearIfNotMatch: boolean;
14-
showTemplate: boolean;
1514
showMaskTyped: boolean;
1615
placeHolderCharacter: string;
1716
shownMaskExpression: string;
@@ -50,7 +49,6 @@ export const initialConfig: NgxMaskConfig = {
5049
thousandSeparator: ' ',
5150
decimalMarker: ['.', ','],
5251
clearIfNotMatch: false,
53-
showTemplate: false,
5452
showMaskTyped: false,
5553
placeHolderCharacter: '_',
5654
dropSpecialCharacters: true,

0 commit comments

Comments
 (0)