@webilix/ngx-form-m3 0.0.67 → 0.0.69

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/ngx-form-m3.css CHANGED
@@ -44,6 +44,11 @@
44
44
  }
45
45
  }
46
46
 
47
+ /* INPUT PREFIX */
48
+ .ngx-form-m3-input-prefix {
49
+ display: inline-flex;
50
+ }
51
+
47
52
  /* INPUT DESCRIPTION */
48
53
  .ngx-form-m3-input-description {
49
54
  font-size: 12px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-form-m3",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Persian form library for Angular and Material 3",
6
6
  "repository": {
@@ -4,8 +4,9 @@ import { FormGroup, NgForm, FormControl } from '@angular/forms';
4
4
  import { Router } from '@angular/router';
5
5
  import { MatFormFieldAppearance } from '@angular/material/form-field';
6
6
  import { ComponentType } from '@angular/cdk/portal';
7
+ import { MaskitoMask } from '@maskito/core';
7
8
 
8
- type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputId | IInputIp | IInputItemList | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputOptionList | IInputPassword | IInputPrice | IInputRoute | IInputSelect | IInputTag | IInputText | IInputTextarea | IInputTime | IInputUrl | IInputUsername;
9
+ type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputId | IInputIp | IInputItemList | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNationalCode | IInputNumber | IInputOptionList | IInputPassword | IInputPrice | IInputRoute | IInputSelect | IInputTag | IInputText | IInputTextarea | IInputTime | IInputUrl | IInputUsername;
9
10
  type Inputs = NgxFormInputs | {
10
11
  readonly header: string;
11
12
  readonly input: NgxFormInputs;
@@ -219,6 +220,11 @@ interface IInputName extends Omit<IInput, 'value' | 'hint' | 'english' | 'descri
219
220
  readonly value?: INgxFormName | null;
220
221
  }
221
222
 
223
+ interface IInputNationalCode extends Omit<IInput, 'english'> {
224
+ readonly type: 'NATIONAL-CODE';
225
+ readonly showIcon?: boolean;
226
+ }
227
+
222
228
  interface IInputNumber extends Omit<IInput, 'value' | 'english'> {
223
229
  readonly type: 'NUMBER';
224
230
  readonly title: string;
@@ -294,6 +300,13 @@ interface IInputText extends IInput {
294
300
  readonly minLength?: number;
295
301
  readonly maxLength?: number;
296
302
  readonly readonly?: boolean;
303
+ readonly pattern?: RegExp;
304
+ readonly mask?: MaskitoMask;
305
+ readonly maskChangeNumbers?: boolean;
306
+ readonly prefix?: string;
307
+ readonly prefixEnglish?: boolean;
308
+ readonly suffix?: string;
309
+ readonly suffixEnglish?: boolean;
297
310
  }
298
311
 
299
312
  interface IInputTextarea extends IInput {