Skip to content

Commit 8ca01fb

Browse files
NepipenkoIgorigor.nepipenko
andauthored
Fix/1534 v2 (#1539)
* fix(ref:1534): slack aciton 2 * fix(ref:1534): slack aciton 2 and readme fix --------- Co-authored-by: igor.nepipenko <[email protected]>
1 parent 76fd086 commit 8ca01fb

File tree

3 files changed

+80
-51
lines changed

3 files changed

+80
-51
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ jobs:
6060
steps:
6161
- name: Post to a Slack channel
6262
id: slack
63-
uses: slackapi/slack-github-action@v1.28.0
63+
uses: slackapi/slack-github-action@v2.0.0
6464
with:
65+
method: chat.postMessage
6566
channel-id: 'deployments'
67+
token: ${{ secrets.SLACK_BOT_TOKEN }}
6668
payload: |
6769
{
6870
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}",
@@ -104,5 +106,3 @@ jobs:
104106
}
105107
]
106108
}
107-
env:
108-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ jobs:
4545
steps:
4646
- name: Post to a Slack channel
4747
id: slack
48-
uses: slackapi/slack-github-action@v1.28.0
48+
uses: slackapi/slack-github-action@v2.0.0
4949
with:
50+
method: chat.postMessage
5051
channel-id: 'deployments'
52+
token: ${{ secrets.SLACK_BOT_TOKEN }}
5153
payload: |
5254
{
5355
"text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}",

README.md

Lines changed: 74 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# NGX-MASK
1+
<h1 align="center">NGX-MASK</h1>
22

33
<p align="center">
4-
A powerful Angular directive for input masking with customizable patterns
4+
A powerful Angular directive for input masking with customizable patterns
55
</p>
66

77
<p align="center">
@@ -38,13 +38,6 @@
3838
## Table of Contents
3939

4040
- [Features](#features)
41-
- [Flexible Masking Patterns](#flexible-masking-patterns)
42-
- [Number Formatting](#number-formatting)
43-
- [Advanced Input Control](#advanced-input-control)
44-
- [Date and Time Formatting](#date-and-time-formatting)
45-
- [Customization Options](#customization-options)
46-
- [Form Integration](#form-integration)
47-
- [User Experience](#user-experience)
4841
- [Demo](#demo)
4942
- [Installation](#installation)
5043
- [Version Compatibility](#version-compatibility)
@@ -56,58 +49,92 @@
5649

5750
## Features
5851

59-
NGX-MASK is a feature-rich input mask directive for Angular applications that helps you:
52+
NGX-MASK is a feature-rich input mask directive for Angular applications that provides:
6053

61-
### Flexible Masking Patterns
54+
<table>
55+
<tr>
56+
<td width="33%" valign="top">
6257

63-
- Support for custom mask patterns and expressions
64-
- Multiple mask patterns using OR operator (|)
65-
- Built-in patterns for common use cases (dates, numbers, etc.)
66-
- Custom prefix and suffix support
58+
### 🎯 Masking Patterns
6759

68-
### Number Formatting
60+
• Custom patterns & expressions
6961

70-
- Configurable thousand separators
71-
- Decimal marker customization
72-
- Negative numbers support
73-
- Leading zeros handling
62+
• Multiple mask patterns (|)
7463

75-
### Advanced Input Control
64+
• Built-in common patterns
7665

77-
- Real-time input validation
78-
- Clear on non-match option
79-
- Show/hide mask typing
80-
- Keep character positions feature
81-
- Instant prefix application
82-
- Hidden input support
66+
• Prefix & suffix support
8367

84-
### Date and Time Formatting
68+
</td>
69+
<td width="33%" valign="top">
8570

86-
- Leading zero handling for date/time
87-
- AM/PM support
88-
- Configurable separators
89-
- Multiple date formats
71+
### 🔢 Number Formatting
9072

91-
### Customization Options
73+
• Thousand separators
9274

93-
- Custom placeholder characters
94-
- Special characters handling
95-
- Input/Output transformation functions
96-
- Custom validation rules
75+
• Decimal markers
9776

98-
### Form Integration
77+
• Negative numbers
9978

100-
- Works with Angular Reactive Forms
101-
- Implements ControlValueAccessor
102-
- Built-in form validation
103-
- Supports standalone and NgModule setups
79+
• Leading zeros
10480

105-
### User Experience
81+
</td>
82+
<td width="33%" valign="top">
10683

107-
- IME composition support
108-
- Copy/paste handling
109-
- Cursor position management
110-
- Mobile-friendly input handling
84+
### ⚡ Input Control
85+
86+
• Real-time validation
87+
88+
• Clear on non-match
89+
90+
• Show/hide mask typing
91+
92+
• Keep character positions
93+
94+
</td>
95+
</tr>
96+
<tr>
97+
<td width="33%" valign="top">
98+
99+
### 📅 Date & Time
100+
101+
• Leading zero handling
102+
103+
• AM/PM support
104+
105+
• Custom separators
106+
107+
• Multiple formats
108+
109+
</td>
110+
<td width="33%" valign="top">
111+
112+
### 🛠️ Customization
113+
114+
• Custom placeholders
115+
116+
• Special characters
117+
118+
• Transform functions
119+
120+
• Custom validation
121+
122+
</td>
123+
<td width="33%" valign="top">
124+
125+
### 📋 Form Integration
126+
127+
• Reactive Forms
128+
129+
• ControlValueAccessor
130+
131+
• Built-in validation
132+
133+
• Standalone support
134+
135+
</td>
136+
</tr>
137+
</table>
111138

112139
## Demo
113140

0 commit comments

Comments
 (0)