@softheon/armature 15.16.2 → 15.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/forms/directives/letters-characters/letters-characters.directive.mjs +87 -0
- package/esm2020/lib/forms/forms-api.mjs +2 -1
- package/esm2020/lib/forms/forms.module.mjs +8 -4
- package/fesm2015/softheon-armature.mjs +92 -4
- package/fesm2015/softheon-armature.mjs.map +1 -1
- package/fesm2020/softheon-armature.mjs +92 -4
- package/fesm2020/softheon-armature.mjs.map +1 -1
- package/lib/forms/directives/letters-characters/letters-characters.directive.d.ts +27 -0
- package/lib/forms/forms-api.d.ts +1 -0
- package/lib/forms/forms.module.d.ts +13 -12
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The letters and special characters directive
|
|
5
|
+
*/
|
|
6
|
+
export declare class LettersCharactersDirective {
|
|
7
|
+
private el;
|
|
8
|
+
/** True if letters and special characters allowed */
|
|
9
|
+
sofArLettersAndSpecialCharacters: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Constructs the directive
|
|
12
|
+
* @param el The element
|
|
13
|
+
*/
|
|
14
|
+
constructor(el: ElementRef);
|
|
15
|
+
/**
|
|
16
|
+
* Only allows letter and special character inputs
|
|
17
|
+
* @param event Key Event
|
|
18
|
+
*/
|
|
19
|
+
onKeyDown(event: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* Allow user to copy and paste letters except special characters
|
|
22
|
+
* @param event the event
|
|
23
|
+
*/
|
|
24
|
+
allowPaste(event: ClipboardEvent): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LettersCharactersDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LettersCharactersDirective, "[sofArLettersAndSpecialCharacters]", never, { "sofArLettersAndSpecialCharacters": "sofArLettersAndSpecialCharacters"; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
package/lib/forms/forms-api.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './models/address';
|
|
|
4
4
|
export * from './models/county';
|
|
5
5
|
export * from './models/enums/states';
|
|
6
6
|
export * from './models/constants';
|
|
7
|
+
export * from './directives/letters-characters/letters-characters.directive';
|
|
7
8
|
export * from './directives/letters-only/letters-only.directive';
|
|
8
9
|
export * from './directives/numbers-only/numbers-only.directive';
|
|
9
10
|
export * from './directives/alphanumeric/alphanumeric.directive';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./components/sof-address/sof-address.component";
|
|
3
|
-
import * as i2 from "./directives/
|
|
3
|
+
import * as i2 from "./directives/letters-characters/letters-characters.directive";
|
|
4
4
|
import * as i3 from "./directives/letters-only/letters-only.directive";
|
|
5
|
-
import * as i4 from "./directives/
|
|
6
|
-
import * as i5 from "./directives/
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@angular/
|
|
11
|
-
import * as i10 from "@angular/
|
|
12
|
-
import * as i11 from "@angular/material/
|
|
13
|
-
import * as i12 from "@angular/material/
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
5
|
+
import * as i4 from "./directives/numbers-only/numbers-only.directive";
|
|
6
|
+
import * as i5 from "./directives/alphanumeric/alphanumeric.directive";
|
|
7
|
+
import * as i6 from "./directives/input-trim/input-trim.directive";
|
|
8
|
+
import * as i7 from "./pipes/phone-format.pipe";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/flex-layout";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@angular/material/input";
|
|
13
|
+
import * as i12 from "@angular/material/form-field";
|
|
14
|
+
import * as i13 from "@angular/material/select";
|
|
15
|
+
import * as i14 from "@angular/material/snack-bar";
|
|
15
16
|
/** Armature forms module */
|
|
16
17
|
export declare class FormsModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormsModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormsModule, [typeof i1.SofAddressComponent, typeof i2.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormsModule, [typeof i1.SofAddressComponent, typeof i2.LettersCharactersDirective, typeof i3.LettersOnlyDirective, typeof i4.NumbersOnlyDirective, typeof i5.AlphaNumericDirective, typeof i6.InputTrimDirective, typeof i7.PhoneFormatPipe], [typeof i8.CommonModule, typeof i9.FlexLayoutModule, typeof i10.ReactiveFormsModule, typeof i11.MatInputModule, typeof i12.MatFormFieldModule, typeof i13.MatSelectModule, typeof i14.MatSnackBarModule], [typeof i1.SofAddressComponent, typeof i2.LettersCharactersDirective, typeof i3.LettersOnlyDirective, typeof i4.NumbersOnlyDirective, typeof i5.AlphaNumericDirective, typeof i6.InputTrimDirective, typeof i7.PhoneFormatPipe]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormsModule>;
|
|
20
21
|
}
|