mmhglobal-dynamicform 2.7.3 → 2.8.0

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.
@@ -15,7 +15,7 @@ export declare class FieldBase {
15
15
  componentProperties: ZComponentProperties;
16
16
  isLoading: boolean;
17
17
  constructor(componentService: ZComponentService);
18
- initComponent(): Observable<any>;
18
+ initComponent(options?: FieldSetupOption): Observable<any>;
19
19
  setupInnerField(): void;
20
20
  isMobileScreen(): boolean;
21
21
  getClass(form: FormGroup, data: ZField): string;
@@ -32,3 +32,6 @@ export declare class FieldBase {
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldBase, never>;
33
33
  static ɵcmp: i0.ɵɵComponentDeclaration<FieldBase, "ng-component", never, { "data": "data"; "group": "group"; "form": "form"; "containerField": "containerField"; "componentProperties": "componentProperties"; }, {}, never, never>;
34
34
  }
35
+ export interface FieldSetupOption {
36
+ isRegisterComponent?: boolean;
37
+ }
@@ -1,5 +1,5 @@
1
1
  /********** Angular **********/
2
- import { OnInit } from '@angular/core';
2
+ import { OnDestroy, OnInit } from '@angular/core';
3
3
  /********** Ionic **********/
4
4
  /********** Plugin **********/
5
5
  import { NumericTextBoxComponent } from '@progress/kendo-angular-inputs';
@@ -8,18 +8,24 @@ import { InputFieldBase } from '../components/inputfieldbase.component';
8
8
  import { ZComponentService } from '../services/zcomponent.service';
9
9
  import { ZComponent } from "mmhglobal-zcore";
10
10
  import * as i0 from "@angular/core";
11
- export declare class ZnumericComponent extends InputFieldBase implements ZComponent, OnInit {
11
+ export declare class ZnumericComponent extends InputFieldBase implements ZComponent, OnInit, OnDestroy {
12
12
  componentService: ZComponentService;
13
13
  numeric: NumericTextBoxComponent;
14
14
  inputMode: string;
15
15
  minValue: number;
16
16
  maxValue: number;
17
+ private minValidator;
18
+ private maxValidator;
17
19
  constructor(componentService: ZComponentService);
18
20
  ngOnInit(): void;
21
+ ngOnDestroy(): void;
19
22
  ngAfterViewInit(): void;
20
23
  setMinValue(newValue: number): void;
21
24
  setMaxValue(newValue: number): void;
22
25
  focus(): boolean;
26
+ private setInitMinAndMaxValue;
27
+ private addMinAndMaxValidator;
28
+ private removeMinAndMaxValidator;
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ZnumericComponent, never>;
24
30
  static ɵcmp: i0.ɵɵComponentDeclaration<ZnumericComponent, "app-znumeric", never, {}, {}, never, never>;
25
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmhglobal-dynamicform",
3
- "version": "2.7.3",
3
+ "version": "2.8.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.1"