@webilix/ngx-form-m3 0.0.66 → 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.66",
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 | 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;
@@ -159,6 +160,19 @@ interface IInputIcon extends Omit<IInput, 'english'> {
159
160
  readonly type: 'ICON';
160
161
  }
161
162
 
163
+ interface IInputId extends Omit<IInput, 'english'> {
164
+ readonly type: 'ID';
165
+ readonly showIcon?: boolean;
166
+ readonly verify?: {
167
+ readonly minLength?: number;
168
+ readonly maxLength?: number;
169
+ readonly useDash?: boolean;
170
+ readonly useDot?: boolean;
171
+ readonly canStartWithNumber?: boolean;
172
+ readonly canEndWithNumber?: boolean;
173
+ };
174
+ }
175
+
162
176
  interface IInputIp extends Omit<IInput, 'english'> {
163
177
  readonly type: 'IP';
164
178
  readonly showIcon?: boolean;
@@ -206,6 +220,11 @@ interface IInputName extends Omit<IInput, 'value' | 'hint' | 'english' | 'descri
206
220
  readonly value?: INgxFormName | null;
207
221
  }
208
222
 
223
+ interface IInputNationalCode extends Omit<IInput, 'english'> {
224
+ readonly type: 'NATIONAL-CODE';
225
+ readonly showIcon?: boolean;
226
+ }
227
+
209
228
  interface IInputNumber extends Omit<IInput, 'value' | 'english'> {
210
229
  readonly type: 'NUMBER';
211
230
  readonly title: string;
@@ -281,6 +300,13 @@ interface IInputText extends IInput {
281
300
  readonly minLength?: number;
282
301
  readonly maxLength?: number;
283
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;
284
310
  }
285
311
 
286
312
  interface IInputTextarea extends IInput {