@webilix/ngx-form-m3 0.0.18 → 0.0.20

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,19 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { INgxHelperCoordinates, NgxHelperCoordinatesService } from '@webilix/ngx-helper-m3';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
4
+ import { IInputConfig } from '../input.interface';
5
+ import { IInputCoordinates } from './input-coordinates.interface';
6
+ import * as i0 from "@angular/core";
7
+ export declare class InputCoordinatesComponent {
8
+ private readonly ngxHelperCoordinatesService;
9
+ formControl: FormControl;
10
+ input: IInputCoordinates;
11
+ config: IInputConfig;
12
+ values: INgxFormValues;
13
+ isButtonDisabled: boolean;
14
+ coordinates?: INgxHelperCoordinates;
15
+ constructor(ngxHelperCoordinatesService: NgxHelperCoordinatesService);
16
+ setCoordinates(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCoordinatesComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputCoordinatesComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,16 @@
1
+ import { ValidatorFn, FormControl } from '@angular/forms';
2
+ import { InputMethods, IInput } from '../input.interface';
3
+ export interface ICoordinates {
4
+ latitude: number;
5
+ longitude: number;
6
+ }
7
+ export interface IInputCoordinates extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
8
+ readonly type: 'COORDINATES';
9
+ readonly value?: ICoordinates | null;
10
+ readonly center?: ICoordinates;
11
+ readonly zoom?: number;
12
+ }
13
+ export declare class InputCoordinatesMethods extends InputMethods<IInputCoordinates, ICoordinates | null> {
14
+ control(input: IInputCoordinates, validators: ValidatorFn[]): FormControl<ICoordinates | null>;
15
+ value(value: any, input: IInputCoordinates): ICoordinates | null;
16
+ }
@@ -6,6 +6,8 @@ export * from './color/input-color.component';
6
6
  export * from './color/input-color.interface';
7
7
  export * from './component/input-component.component';
8
8
  export * from './component/input-component.interface';
9
+ export * from './coordinates/input-coordinates.component';
10
+ export * from './coordinates/input-coordinates.interface';
9
11
  export * from './date/input-date.component';
10
12
  export * from './date/input-date.interface';
11
13
  export * from './email/input-email.component';
@@ -49,6 +49,11 @@ export declare class InputComponent implements OnInit, OnChanges {
49
49
  readonly methods: import("./input.interface").InputMethods<any, any>;
50
50
  readonly component: import("@angular/cdk/portal").ComponentType<any>;
51
51
  };
52
+ COORDINATES: {
53
+ readonly title: string;
54
+ readonly methods: import("./input.interface").InputMethods<any, any>;
55
+ readonly component: import("@angular/cdk/portal").ComponentType<any>;
56
+ };
52
57
  DATE: {
53
58
  readonly title: string;
54
59
  readonly methods: import("./input.interface").InputMethods<any, any>;
@@ -3,7 +3,7 @@ import { InputMethods, IInput } from '../input.interface';
3
3
  export interface IInputMultiSelect extends Omit<IInput, 'value' | 'optional' | 'autoFocus'> {
4
4
  readonly type: 'MULTI-SELECT';
5
5
  readonly title: string;
6
- readonly value?: string[];
6
+ readonly value?: string[] | null;
7
7
  readonly options: {
8
8
  readonly id: string;
9
9
  readonly title: string;
@@ -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 { IInputAutoComplete, IInputCheckbox, IInputColor, IInputComponent, IInputDate, IInputEmail, IInputFile, IInputIcon, IInputIp, IInputMobile, IInputMoment, IInputMultiSelect, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
5
- export type NgxFormInputs = IInputAutoComplete | IInputCheckbox | IInputColor | IInputComponent | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
4
+ import { IInputAutoComplete, IInputCheckbox, IInputColor, IInputComponent, IInputCoordinates, IInputDate, IInputEmail, IInputFile, IInputIcon, IInputIp, IInputMobile, IInputMoment, IInputMultiSelect, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
5
+ export type NgxFormInputs = IInputAutoComplete | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputMobile | IInputMoment | IInputMultiSelect | 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.18",
3
+ "version": "0.0.20",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Persian form library for Angular and Material 3",
6
6
  "repository": {
@@ -26,8 +26,8 @@
26
26
  "@angular/material": ">=19.0.4",
27
27
  "@webilix/helper-library": ">=6.0.2",
28
28
  "@webilix/jalali-date-time": ">=2.0.5",
29
- "@webilix/ngx-calendar-m3": ">=0.0.8",
30
- "@webilix/ngx-helper-m3": ">=0.0.15",
29
+ "@webilix/ngx-calendar-m3": ">=0.0.9",
30
+ "@webilix/ngx-helper-m3": ">=0.0.18",
31
31
  "ngx-mask": ">=19.0.6"
32
32
  },
33
33
  "dependencies": {