@webilix/ngx-form-m3 0.0.31 → 0.0.34

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 | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputPassword | IInputPrice | IInputSelect | IInputText | IInputTextarea | IInputUrl;
8
+ type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputPassword | IInputPrice | IInputRoute | IInputSelect | IInputText | IInputTextarea | IInputUrl;
9
9
  type Inputs = NgxFormInputs | {
10
10
  readonly header: string;
11
11
  readonly input: NgxFormInputs;
@@ -219,6 +219,18 @@ interface IInputPrice extends Omit<IInput, 'value' | 'english'> {
219
219
  readonly hideText?: boolean;
220
220
  }
221
221
 
222
+ interface IRouteCoordinates {
223
+ latitude: number;
224
+ longitude: number;
225
+ }
226
+ type Route = IRouteCoordinates[];
227
+ interface IInputRoute extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
228
+ readonly type: 'ROUTE';
229
+ readonly value?: Route | null;
230
+ readonly center?: IRouteCoordinates;
231
+ readonly zoom?: number;
232
+ }
233
+
222
234
  interface IInputSelect extends IInput {
223
235
  readonly type: 'SELECT';
224
236
  readonly title: string;
@@ -297,6 +309,7 @@ declare class NgxFormComponent implements OnInit, OnChanges, AfterViewInit {
297
309
  ngAfterViewInit(): void;
298
310
  getInputs(): NgxFormInputs[];
299
311
  getValues(): INgxFormValues;
312
+ updateValues(changedInputs: string[]): void;
300
313
  setInput(input: NgxFormInputs): void;
301
314
  checkInputs(): void;
302
315
  checkSubmit(): void;
package/ngx-form-m3.css CHANGED
@@ -224,6 +224,23 @@
224
224
  }
225
225
  }
226
226
 
227
+ /* INPUTS: ROUTE */
228
+ .ngx-helper-form-m3-route-input {
229
+ display: flex;
230
+ align-items: center;
231
+ column-gap: 1rem;
232
+
233
+ cursor: pointer;
234
+
235
+ div.distance {
236
+ flex: 1;
237
+ }
238
+
239
+ div.point {
240
+ font-size: 90%;
241
+ }
242
+ }
243
+
227
244
  /* INPUTS: NAME */
228
245
  .ngx-helper-form-m3-name-input {
229
246
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-form-m3",
3
- "version": "0.0.31",
3
+ "version": "0.0.34",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Persian form library for Angular and Material 3",
6
6
  "repository": {
@@ -24,10 +24,10 @@
24
24
  "@angular/core": ">=20.0.0",
25
25
  "@angular/forms": ">=20.0.0",
26
26
  "@angular/material": ">=20.0.1",
27
- "@webilix/helper-library": ">=6.1.3",
27
+ "@webilix/helper-library": ">=6.1.5",
28
28
  "@webilix/jalali-date-time": ">=2.0.7",
29
29
  "@webilix/ngx-calendar-m3": ">=0.0.15",
30
- "@webilix/ngx-helper-m3": ">=0.0.29",
30
+ "@webilix/ngx-helper-m3": ">=0.0.31",
31
31
  "ngx-mask": ">=19.0.7"
32
32
  },
33
33
  "dependencies": {