@webilix/ngx-form-m3 0.0.45 → 0.0.47

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/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { Router } from '@angular/router';
5
5
  import { MatFormFieldAppearance } from '@angular/material/form-field';
6
6
  import { ComponentType } from '@angular/cdk/portal';
7
7
 
8
- type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputItemList | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputOptionList | IInputPassword | IInputPrice | IInputRoute | IInputSelect | IInputTag | IInputText | IInputTextarea | IInputUrl;
8
+ type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputItemList | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputOptionList | IInputPassword | IInputPrice | IInputRoute | IInputSelect | IInputTag | IInputText | IInputTextarea | IInputUrl | IInputUsername;
9
9
  type Inputs = NgxFormInputs | {
10
10
  readonly header: string;
11
11
  readonly input: NgxFormInputs;
@@ -298,6 +298,17 @@ interface IInputUrl extends Omit<IInput, 'english'> {
298
298
  readonly showIcon?: boolean;
299
299
  }
300
300
 
301
+ interface IInputUsername extends Omit<IInput, 'english'> {
302
+ readonly type: 'USERNAME';
303
+ readonly verify?: {
304
+ readonly minLength?: number;
305
+ readonly useDash?: boolean;
306
+ readonly useDot?: boolean;
307
+ readonly startWithChar?: boolean;
308
+ readonly endWithChar?: boolean;
309
+ };
310
+ }
311
+
301
312
  interface INgxFormConfig {
302
313
  readonly mobileWidth: number;
303
314
  readonly submitTimeout: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-form-m3",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Persian form library for Angular and Material 3",
6
6
  "repository": {