monkey-style-guide 2.0.97 → 2.0.101

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Inject, Component, ViewEncapsulation, Input, NgModule, NO_ERRORS_SCHEMA, HostListener, EventEmitter, forwardRef, Output, ViewChild, ContentChildren, Directive } from '@angular/core';
2
+ import { Injectable, Inject, Component, ViewEncapsulation, Input, NgModule, NO_ERRORS_SCHEMA, HostListener, EventEmitter, forwardRef, Output, ViewChild, ContentChildren, Directive, Optional, Self } from '@angular/core';
3
3
  import { BehaviorSubject, throwError, Subject } from 'rxjs';
4
4
  import * as i1 from '@angular/common/http';
5
5
  import { HttpClientModule } from '@angular/common/http';
@@ -7,12 +7,12 @@ import * as i1$1 from '@angular/common';
7
7
  import { DOCUMENT, CommonModule, CurrencyPipe } from '@angular/common';
8
8
  import { PhoneNumberUtil } from 'google-libphonenumber';
9
9
  import { takeUntil } from 'rxjs/operators';
10
- import * as i4 from '@angular/forms';
10
+ import * as i1$2 from '@angular/forms';
11
11
  import { FormsModule, ReactiveFormsModule, Validators, NG_VALUE_ACCESSOR } from '@angular/forms';
12
12
  import * as moment_ from 'moment';
13
- import * as i1$2 from 'ngx-mask';
13
+ import * as i1$3 from 'ngx-mask';
14
14
  import { NgxMaskModule } from 'ngx-mask';
15
- import * as i1$3 from '@angular/platform-browser';
15
+ import * as i1$4 from '@angular/platform-browser';
16
16
 
17
17
  class MonkeyStyleGuideService {
18
18
  constructor(http) {
@@ -357,15 +357,10 @@ class MonkeyUtils {
357
357
  return false;
358
358
  try {
359
359
  const country = phoneUtil.getRegionCodeForCountryCode(internationalNumber);
360
- console.log('country');
361
- console.log(country);
362
360
  const number = phoneUtil.parse(phone, country);
363
- console.log('number');
364
- console.log(number);
365
361
  return phoneUtil.isValidNumberForRegion(number, country);
366
362
  }
367
363
  catch (e) {
368
- console.log(e);
369
364
  //not to do
370
365
  }
371
366
  return false;
@@ -3386,7 +3381,7 @@ class MonkeyDateRangePickerComponent {
3386
3381
  this.writeValue(_dateForm.value);
3387
3382
  }
3388
3383
  }
3389
- MonkeyDateRangePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyDateRangePickerComponent, deps: [{ token: i4.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3384
+ MonkeyDateRangePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyDateRangePickerComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3390
3385
  MonkeyDateRangePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyDateRangePickerComponent, selector: "monkey-date-range-picker", inputs: { i18n: "i18n", infoMessage: "infoMessage", errorMessage: "errorMessage", value: "value" }, outputs: { onChange: "onChange" }, providers: [
3391
3386
  {
3392
3387
  provide: NG_VALUE_ACCESSOR,
@@ -3704,7 +3699,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
3704
3699
  CurrencyPipe,
3705
3700
  ],
3706
3701
  }]
3707
- }], ctorParameters: function () { return [{ type: i4.FormBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { i18n: [{
3702
+ }], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { i18n: [{
3708
3703
  type: Input
3709
3704
  }], infoMessage: [{
3710
3705
  type: Input
@@ -3955,7 +3950,7 @@ MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
3955
3950
  </error>
3956
3951
  </mecx-form-field-footer>
3957
3952
  </mecx-form-field>
3958
- `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
3953
+ `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$3.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
3959
3954
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputComponent, decorators: [{
3960
3955
  type: Component,
3961
3956
  args: [{
@@ -4249,7 +4244,7 @@ MonkeyInputFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
4249
4244
  ></monkey-icon>
4250
4245
  </mecx-form-field-body>
4251
4246
  </mecx-form-field-filter>
4252
- `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
4247
+ `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$3.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
4253
4248
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputFilterComponent, decorators: [{
4254
4249
  type: Component,
4255
4250
  args: [{
@@ -4362,7 +4357,7 @@ class MonkeyInputModule {
4362
4357
  MonkeyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4363
4358
  MonkeyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, declarations: [MonkeyInputComponent, MonkeyInputFilterComponent], imports: [CommonModule,
4364
4359
  FormsModule,
4365
- ReactiveFormsModule, i1$2.NgxMaskModule, MonkeyIconModule], exports: [MonkeyInputComponent, MonkeyInputFilterComponent] });
4360
+ ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyInputComponent, MonkeyInputFilterComponent] });
4366
4361
  MonkeyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, imports: [[
4367
4362
  CommonModule,
4368
4363
  FormsModule,
@@ -4782,10 +4777,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
4782
4777
  **************************/
4783
4778
  class PhoneNumberValidDirective {
4784
4779
  onValidate() {
4785
- const { destroyed, phoneNumber, internationalNumber } = this;
4786
- if (destroyed || !phoneNumber)
4780
+ const { ctrl, destroyed, phoneNumber, internationalNumber } = this;
4781
+ if (destroyed || !phoneNumber || !ctrl)
4787
4782
  return;
4788
- let isValid = true;
4783
+ let isValid = false;
4789
4784
  try {
4790
4785
  isValid = MonkeyUtils.isPhoneNumberValid(phoneNumber, internationalNumber);
4791
4786
  }
@@ -4794,14 +4789,16 @@ class PhoneNumberValidDirective {
4794
4789
  }
4795
4790
  if (!isValid) {
4796
4791
  setTimeout(() => {
4797
- this.ctrl.markAsDirty();
4798
- this.ctrl.markAsTouched();
4799
- this.ctrl.setErrors({ invalidNumber: true });
4792
+ ctrl.markAsDirty();
4793
+ ctrl.markAsTouched();
4794
+ ctrl.setErrors({ phone: true });
4800
4795
  }, 0);
4801
4796
  }
4802
4797
  }
4803
- ngOnChanges({ phoneNumber }) {
4804
- if (phoneNumber && !phoneNumber.firstChange) {
4798
+ ngOnChanges({ ctrl, phoneNumber, internationalNumber }) {
4799
+ if ((phoneNumber && !phoneNumber.firstChange) ||
4800
+ (internationalNumber && !internationalNumber.firstChange) ||
4801
+ (ctrl && !ctrl.firstChange)) {
4805
4802
  this.onValidate();
4806
4803
  }
4807
4804
  }
@@ -4825,7 +4822,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
4825
4822
  type: Input
4826
4823
  }] } });
4827
4824
  class MonkeyInputPhoneComponent {
4828
- constructor(cdr) {
4825
+ constructor(ngControl, cdr) {
4826
+ this.ngControl = ngControl;
4829
4827
  this.cdr = cdr;
4830
4828
  this.name = `mecx-input-phone-${MonkeyUtils.getRandomString(10)}`;
4831
4829
  this.helperMessage = '';
@@ -4839,6 +4837,10 @@ class MonkeyInputPhoneComponent {
4839
4837
  this._regionCodes = [];
4840
4838
  this._countryCodes = [];
4841
4839
  this._internationalNumber = 55;
4840
+ this._formControl = null;
4841
+ if (this.ngControl != null) {
4842
+ this.ngControl.valueAccessor = this;
4843
+ }
4842
4844
  }
4843
4845
  handleValue(value) {
4844
4846
  return MonkeyUtils.handleOnlyNumbers(`${value}`);
@@ -4851,18 +4853,16 @@ class MonkeyInputPhoneComponent {
4851
4853
  }
4852
4854
  getValue() {
4853
4855
  const { _internationalNumber, _handledValue } = this;
4854
- return `+${_internationalNumber}${_handledValue}`;
4856
+ if (_handledValue)
4857
+ return `+${_internationalNumber}${_handledValue}`;
4858
+ return '';
4855
4859
  }
4856
4860
  ngOnInit() {
4861
+ var _a;
4857
4862
  this._countryCodes = MonkeyUtils.getPhoneRegions();
4858
4863
  this.onHandleInternationalNumber();
4859
4864
  this.onHandleCountryCode(this._internationalNumber);
4860
- }
4861
- ngOnChanges(sc) {
4862
- const { formControl: { firstChange, currentValue: { value }, }, } = sc;
4863
- if (sc && firstChange) {
4864
- this.onHandleInternationalNumber(value);
4865
- }
4865
+ this._formControl = this.ngControl && (((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.form) || this.ngControl);
4866
4866
  }
4867
4867
  onHandleInternationalNumber(value) {
4868
4868
  this._internationalNumber =
@@ -4928,15 +4928,8 @@ class MonkeyInputPhoneComponent {
4928
4928
  }
4929
4929
  }
4930
4930
  }
4931
- MonkeyInputPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4932
- MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyInputPhoneComponent, selector: "monkey-input-phone", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", errorMessage: "errorMessage", maxLength: "maxLength", formControl: "formControl", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick()" } }, providers: [
4933
- {
4934
- provide: NG_VALUE_ACCESSOR,
4935
- useExisting: forwardRef(() => MonkeyInputPhoneComponent),
4936
- multi: true,
4937
- },
4938
- CurrencyPipe,
4939
- ], usesOnChanges: true, ngImport: i0, template: `
4931
+ MonkeyInputPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, deps: [{ token: i1$2.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4932
+ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyInputPhoneComponent, selector: "monkey-input-phone", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", errorMessage: "errorMessage", maxLength: "maxLength", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0, template: `
4940
4933
  <mecx-form-field [ngClass]="{ disabled: _disabled }" [id]="_id">
4941
4934
  <mecx-form-field-header>
4942
4935
  <label>
@@ -4971,11 +4964,15 @@ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
4971
4964
  [disabled]="_disabled"
4972
4965
  [maxLength]="maxLength"
4973
4966
  phoneNumberValidate
4974
- [ctrl]="formControl"
4967
+ [ctrl]="_formControl"
4975
4968
  [phoneNumber]="_handledValue"
4976
4969
  [internationalNumber]="_internationalNumber"
4977
4970
  #monkeyInput
4978
4971
  />
4972
+ <!--phoneNumberValidate
4973
+ [ctrl]="formControl"
4974
+ [phoneNumber]="_handledValue"
4975
+ [internationalNumber]="_internationalNumber"-->
4979
4976
  </mecx-form-field-body>
4980
4977
  <mecx-form-field-footer>
4981
4978
  <info>
@@ -4986,7 +4983,7 @@ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
4986
4983
  </error>
4987
4984
  </mecx-form-field-footer>
4988
4985
  </mecx-form-field>
4989
- `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }, { type: MonkeySelectComponent, selector: "monkey-select", inputs: ["label", "helperMessage", "placeholder", "icon", "infoMessage", "errorMessage", "labelSelect", "onHandleOptions", "value"], outputs: ["onChange"] }, { type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["type", "label", "value", "selectAll", "selected", "enableClick"], outputs: ["onSelectOption"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: PhoneNumberValidDirective, selector: "[phoneNumberValidate]", inputs: ["phoneNumber", "internationalNumber", "ctrl"] }], encapsulation: i0.ViewEncapsulation.None });
4986
+ `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }, { type: MonkeySelectComponent, selector: "monkey-select", inputs: ["label", "helperMessage", "placeholder", "icon", "infoMessage", "errorMessage", "labelSelect", "onHandleOptions", "value"], outputs: ["onChange"] }, { type: MonkeyOptionComponent, selector: "monkey-option", inputs: ["type", "label", "value", "selectAll", "selected", "enableClick"], outputs: ["onSelectOption"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: PhoneNumberValidDirective, selector: "[phoneNumberValidate]", inputs: ["phoneNumber", "internationalNumber", "ctrl"] }], encapsulation: i0.ViewEncapsulation.None });
4990
4987
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, decorators: [{
4991
4988
  type: Component,
4992
4989
  args: [{
@@ -5026,11 +5023,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
5026
5023
  [disabled]="_disabled"
5027
5024
  [maxLength]="maxLength"
5028
5025
  phoneNumberValidate
5029
- [ctrl]="formControl"
5026
+ [ctrl]="_formControl"
5030
5027
  [phoneNumber]="_handledValue"
5031
5028
  [internationalNumber]="_internationalNumber"
5032
5029
  #monkeyInput
5033
5030
  />
5031
+ <!--phoneNumberValidate
5032
+ [ctrl]="formControl"
5033
+ [phoneNumber]="_handledValue"
5034
+ [internationalNumber]="_internationalNumber"-->
5034
5035
  </mecx-form-field-body>
5035
5036
  <mecx-form-field-footer>
5036
5037
  <info>
@@ -5043,16 +5044,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
5043
5044
  </mecx-form-field>
5044
5045
  `,
5045
5046
  encapsulation: ViewEncapsulation.None,
5046
- providers: [
5047
- {
5048
- provide: NG_VALUE_ACCESSOR,
5049
- useExisting: forwardRef(() => MonkeyInputPhoneComponent),
5050
- multi: true,
5051
- },
5052
- CurrencyPipe,
5053
- ],
5054
5047
  }]
5055
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { name: [{
5048
+ }], ctorParameters: function () { return [{ type: i1$2.NgControl, decorators: [{
5049
+ type: Optional
5050
+ }, {
5051
+ type: Self
5052
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { name: [{
5056
5053
  type: Input
5057
5054
  }], label: [{
5058
5055
  type: Input
@@ -5068,8 +5065,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
5068
5065
  type: Input
5069
5066
  }], maxLength: [{
5070
5067
  type: Input
5071
- }], formControl: [{
5072
- type: Input
5073
5068
  }], onChange: [{
5074
5069
  type: Output
5075
5070
  }], value: [{
@@ -5586,7 +5581,7 @@ MonkeySelectSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
5586
5581
  </error>
5587
5582
  </mecx-form-field-footer>
5588
5583
  </mecx-form-field>
5589
- `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
5584
+ `, isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
5590
5585
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeySelectSearchComponent, decorators: [{
5591
5586
  type: Component,
5592
5587
  args: [{
@@ -5925,7 +5920,7 @@ class MonkeyInputPhoneModule {
5925
5920
  MonkeyInputPhoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5926
5921
  MonkeyInputPhoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, declarations: [MonkeyInputPhoneComponent, PhoneNumberValidDirective], imports: [CommonModule,
5927
5922
  FormsModule,
5928
- ReactiveFormsModule, i1$2.NgxMaskModule, MonkeyIconModule,
5923
+ ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule,
5929
5924
  MonkeySelectModule,
5930
5925
  MonkeyOptionModule], exports: [MonkeyInputPhoneComponent] });
5931
5926
  MonkeyInputPhoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, imports: [[
@@ -6043,7 +6038,7 @@ MonkeyCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
6043
6038
  </mecx-form-field-body>
6044
6039
  </mecx-form-field>
6045
6040
  </ng-template>
6046
- `, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
6041
+ `, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
6047
6042
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyCheckboxComponent, decorators: [{
6048
6043
  type: Component,
6049
6044
  args: [{
@@ -6698,7 +6693,7 @@ class MonkeyFileUploadModule {
6698
6693
  MonkeyFileUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6699
6694
  MonkeyFileUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, declarations: [MonkeyFileUploadComponent], imports: [CommonModule,
6700
6695
  FormsModule,
6701
- ReactiveFormsModule, i1$2.NgxMaskModule, MonkeyIconModule], exports: [MonkeyFileUploadComponent] });
6696
+ ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyFileUploadComponent] });
6702
6697
  MonkeyFileUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, imports: [[
6703
6698
  CommonModule,
6704
6699
  FormsModule,
@@ -6955,7 +6950,7 @@ class MonkeyImageCropComponent {
6955
6950
  this.onHandlePreviewReady.next(file);
6956
6951
  }
6957
6952
  }
6958
- MonkeyImageCropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
6953
+ MonkeyImageCropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
6959
6954
  MonkeyImageCropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyImageCropComponent, selector: "monkey-image-crop", inputs: { label: "label", cropTitle: "cropTitle", labelChangeImage: "labelChangeImage", labelPreviewImage: "labelPreviewImage", helperMessage: "helperMessage", placeholder: "placeholder", maxSize: "maxSize", maxSizeErrorMessage: "maxSizeErrorMessage", allowedExtensionErrorMessage: "allowedExtensionErrorMessage", fileUpload: "fileUpload", onHandleGetFilesReady: "onHandleGetFilesReady" }, outputs: { onHandleFilesReady: "onHandleFilesReady", onHandlePreviewReady: "onHandlePreviewReady" }, host: { listeners: { "mousemove": "moveImg($event)", "touchmove": "moveImg($event)", "document:mouseup": "moveStop()", "document:touchend": "moveStop()" } }, ngImport: i0, template: `
6960
6955
  <monkey-file-upload
6961
6956
  [label]="label"
@@ -7184,7 +7179,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
7184
7179
  `,
7185
7180
  encapsulation: ViewEncapsulation.None,
7186
7181
  }]
7187
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.DomSanitizer }]; }, propDecorators: { label: [{
7182
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$4.DomSanitizer }]; }, propDecorators: { label: [{
7188
7183
  type: Input
7189
7184
  }], cropTitle: [{
7190
7185
  type: Input
@@ -7229,7 +7224,7 @@ class MonkeyImageCropModule {
7229
7224
  MonkeyImageCropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7230
7225
  MonkeyImageCropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, declarations: [MonkeyImageCropComponent], imports: [CommonModule,
7231
7226
  FormsModule,
7232
- ReactiveFormsModule, i1$2.NgxMaskModule, MonkeyButtonModule,
7227
+ ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyButtonModule,
7233
7228
  MonkeyFileUploadModule], exports: [MonkeyImageCropComponent] });
7234
7229
  MonkeyImageCropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, imports: [[
7235
7230
  CommonModule,