Skip to content

Commit 0f69543

Browse files
committed
small changes
1 parent 6ca7bfd commit 0f69543

32 files changed

+13179
-1532
lines changed

.1.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.git
3+
.vs
4+
.vscode
5+
desktop.ini
6+
bin
7+
obj

.eslintrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 6,
4+
"sourceType": "module",
5+
"ecmaFeatures": {
6+
"jsx": true
7+
}
8+
},
9+
"rules": {
10+
"indent": "off",
11+
"no-tabs": "off",
12+
"semi": "off"
13+
}
14+
}

.npmignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
.git
3+
.vs
4+
.vscode
5+
desktop.ini
6+
webpack*.js
7+
tslint.json
8+
tsconfig.json
9+
bin
10+
obj

.vscode/database.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.vscode/temp.sql

Whitespace-only changes.
345 KB
Binary file not shown.
-306 KB
Binary file not shown.

lib/main.d.ts @types/main.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export declare module MotherMask {
1+
export declare namespace MotherMask {
22
function process(value: string, pattern: string): string;
3-
function bind(input: HTMLInputElement | HTMLElement | Element, pattern: string, callback?: (value: string) => void): void;
3+
function bind(input: HTMLInputElement | HTMLElement | Element, pattern: string, callback?: ((value: string) => void) | null): void;
44
}
55
export default MotherMask;

@types/simple.d.ts

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
export declare namespace Simple {
2+
enum CharType {
3+
NUMBER = 0,
4+
LETTER = 1,
5+
}
6+
interface IMaskChar {
7+
position: number;
8+
char: string | null | CharType;
9+
}
10+
interface IValueChar {
11+
position: number;
12+
char: string | null;
13+
}
14+
class Mask {
15+
caret: number;
16+
private mask;
17+
private value;
18+
private maskChar;
19+
private valueChar;
20+
constructor(value: string, mask: string, caret?: number);
21+
process(): string;
22+
private nextIMaskChar();
23+
private nextIValueChar(type);
24+
}
25+
function process(value: string, mask: string): string;
26+
function bind(inputElement: HTMLInputElement | Element, mask: string, callback?: ((output: string) => void) | null): void;
27+
}
28+
export default Simple;

desktop.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[.ShellClassInfo]
22
OriginalIcon=C:\Windows\system32\imageres.dll|-3
3-
IconResource=791690961582022151291366924419110018487869.ico,0
3+
IconResource=791690961582022151291366924419110018487782.ico,0

0 commit comments

Comments
 (0)