@webilix/ngx-form-m3 0.0.11 → 0.0.13

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.
@@ -0,0 +1,18 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
4
+ import { IInputConfig } from '../input.interface';
5
+ import { IInputAutoComplete } from './input-auto-complete.interface';
6
+ import * as i0 from "@angular/core";
7
+ export declare class InputAutoCompleteComponent implements OnInit {
8
+ formControl: FormControl;
9
+ input: IInputAutoComplete;
10
+ config: IInputConfig;
11
+ values: INgxFormValues;
12
+ isButtonDisabled: boolean;
13
+ filtered: string[];
14
+ ngOnInit(): void;
15
+ filter(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputAutoCompleteComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputAutoCompleteComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,11 @@
1
+ import { ValidatorFn, FormControl } from '@angular/forms';
2
+ import { InputMethods, IInput } from '../input.interface';
3
+ export interface IInputAutoComplete extends IInput {
4
+ readonly type: 'AUTO-COMPLETE';
5
+ readonly title: string;
6
+ readonly options: string[];
7
+ }
8
+ export declare class InputAutoCompleteMethods extends InputMethods<IInputAutoComplete, string | null> {
9
+ control(input: IInputAutoComplete, validators: ValidatorFn[]): FormControl<string | null>;
10
+ value(value: any, input: IInputAutoComplete): string | null;
11
+ }
@@ -1,3 +1,5 @@
1
+ export * from './auto-complete/input-auto-complete.component';
2
+ export * from './auto-complete/input-auto-complete.interface';
1
3
  export * from './checkbox/input-checkbox.component';
2
4
  export * from './checkbox/input-checkbox.interface';
3
5
  export * from './color/input-color.component';
@@ -10,6 +12,8 @@ export * from './email/input-email.component';
10
12
  export * from './email/input-email.interface';
11
13
  export * from './file/input-file.component';
12
14
  export * from './file/input-file.interface';
15
+ export * from './ip/input-ip.component';
16
+ export * from './ip/input-ip.interface';
13
17
  export * from './mobile/input-mobile.component';
14
18
  export * from './mobile/input-mobile.interface';
15
19
  export * from './moment/input-moment.component';
@@ -29,6 +29,11 @@ export declare class InputComponent implements OnInit, OnChanges {
29
29
  readonly methods: import("./input.interface").InputMethods<any, any>;
30
30
  readonly component: import("@angular/cdk/portal").ComponentType<any>;
31
31
  };
32
+ "AUTO-COMPLETE": {
33
+ readonly title: string;
34
+ readonly methods: import("./input.interface").InputMethods<any, any>;
35
+ readonly component: import("@angular/cdk/portal").ComponentType<any>;
36
+ };
32
37
  CHECKBOX: {
33
38
  readonly title: string;
34
39
  readonly methods: import("./input.interface").InputMethods<any, any>;
@@ -54,6 +59,11 @@ export declare class InputComponent implements OnInit, OnChanges {
54
59
  readonly methods: import("./input.interface").InputMethods<any, any>;
55
60
  readonly component: import("@angular/cdk/portal").ComponentType<any>;
56
61
  };
62
+ IP: {
63
+ readonly title: string;
64
+ readonly methods: import("./input.interface").InputMethods<any, any>;
65
+ readonly component: import("@angular/cdk/portal").ComponentType<any>;
66
+ };
57
67
  MOMENT: {
58
68
  readonly title: string;
59
69
  readonly methods: import("./input.interface").InputMethods<any, any>;
@@ -0,0 +1,14 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
3
+ import { IInputConfig } from '../input.interface';
4
+ import { IInputIp } from './input-ip.interface';
5
+ import * as i0 from "@angular/core";
6
+ export declare class InputIpComponent {
7
+ formControl: FormControl;
8
+ input: IInputIp;
9
+ config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputIpComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputIpComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,10 @@
1
+ import { ValidatorFn, FormControl } from '@angular/forms';
2
+ import { InputMethods, IInput } from '../input.interface';
3
+ export interface IInputIp extends Omit<IInput, 'english'> {
4
+ readonly type: 'IP';
5
+ readonly showIcon?: boolean;
6
+ }
7
+ export declare class InputIpMethods extends InputMethods<IInputIp, string | null> {
8
+ control(input: IInputIp, validators: ValidatorFn[]): FormControl<string | null>;
9
+ value(value: any, input: IInputIp): string | null;
10
+ }
@@ -1,8 +1,8 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { FormControl, FormGroup, NgForm } from '@angular/forms';
3
3
  import { MatFormFieldAppearance } from '@angular/material/form-field';
4
- import { IInputCheckbox, IInputColor, IInputComponent, IInputDate, IInputEmail, IInputFile, IInputMobile, IInputMoment, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
5
- export type NgxFormInputs = IInputCheckbox | IInputColor | IInputComponent | IInputDate | IInputEmail | IInputFile | IInputMobile | IInputMoment | IInputName | IInputNumber | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
4
+ import { IInputAutoComplete, IInputCheckbox, IInputColor, IInputComponent, IInputDate, IInputEmail, IInputFile, IInputIp, IInputMobile, IInputMoment, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
5
+ export type NgxFormInputs = IInputAutoComplete | IInputCheckbox | IInputColor | IInputComponent | IInputDate | IInputEmail | IInputFile | IInputIp | IInputMobile | IInputMoment | IInputName | IInputNumber | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
6
6
  type Inputs = NgxFormInputs | {
7
7
  readonly header: string;
8
8
  readonly input: NgxFormInputs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-form-m3",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Persian form library for Angular and Material 3",
6
6
  "repository": {