monkey-style-guide 2.0.96 → 2.0.100
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/assets/data/country-codes.json +1466 -0
- package/assets/scss/partials/_forms.scss +1 -1
- package/bundles/monkey-style-guide.umd.js +129 -137
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/input-phone/input-phone.component.js +45 -48
- package/esm2015/lib/core/utils/utils.js +2 -2
- package/fesm2015/monkey-style-guide.js +55 -56
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/lib/components/input-phone/input-phone.component.d.ts +13 -8
- package/monkey-style-guide-2.0.100.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.96.tgz +0 -0
|
@@ -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
|
|
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$
|
|
13
|
+
import * as i1$3 from 'ngx-mask';
|
|
14
14
|
import { NgxMaskModule } from 'ngx-mask';
|
|
15
|
-
import * as i1$
|
|
15
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
16
16
|
|
|
17
17
|
class MonkeyStyleGuideService {
|
|
18
18
|
constructor(http) {
|
|
@@ -358,7 +358,7 @@ class MonkeyUtils {
|
|
|
358
358
|
try {
|
|
359
359
|
const country = phoneUtil.getRegionCodeForCountryCode(internationalNumber);
|
|
360
360
|
const number = phoneUtil.parse(phone, country);
|
|
361
|
-
return phoneUtil.
|
|
361
|
+
return phoneUtil.isValidNumberForRegion(number, country);
|
|
362
362
|
}
|
|
363
363
|
catch (e) {
|
|
364
364
|
//not to do
|
|
@@ -3381,7 +3381,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
3381
3381
|
this.writeValue(_dateForm.value);
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|
|
3384
|
-
MonkeyDateRangePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyDateRangePickerComponent, deps: [{ token:
|
|
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 });
|
|
3385
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: [
|
|
3386
3386
|
{
|
|
3387
3387
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3699,7 +3699,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
3699
3699
|
CurrencyPipe,
|
|
3700
3700
|
],
|
|
3701
3701
|
}]
|
|
3702
|
-
}], ctorParameters: function () { return [{ type:
|
|
3702
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { i18n: [{
|
|
3703
3703
|
type: Input
|
|
3704
3704
|
}], infoMessage: [{
|
|
3705
3705
|
type: Input
|
|
@@ -3950,7 +3950,7 @@ MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
3950
3950
|
</error>
|
|
3951
3951
|
</mecx-form-field-footer>
|
|
3952
3952
|
</mecx-form-field>
|
|
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:
|
|
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 });
|
|
3954
3954
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputComponent, decorators: [{
|
|
3955
3955
|
type: Component,
|
|
3956
3956
|
args: [{
|
|
@@ -4244,7 +4244,7 @@ MonkeyInputFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4244
4244
|
></monkey-icon>
|
|
4245
4245
|
</mecx-form-field-body>
|
|
4246
4246
|
</mecx-form-field-filter>
|
|
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:
|
|
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 });
|
|
4248
4248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputFilterComponent, decorators: [{
|
|
4249
4249
|
type: Component,
|
|
4250
4250
|
args: [{
|
|
@@ -4357,7 +4357,7 @@ class MonkeyInputModule {
|
|
|
4357
4357
|
MonkeyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4358
4358
|
MonkeyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, declarations: [MonkeyInputComponent, MonkeyInputFilterComponent], imports: [CommonModule,
|
|
4359
4359
|
FormsModule,
|
|
4360
|
-
ReactiveFormsModule, i1$
|
|
4360
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyInputComponent, MonkeyInputFilterComponent] });
|
|
4361
4361
|
MonkeyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, imports: [[
|
|
4362
4362
|
CommonModule,
|
|
4363
4363
|
FormsModule,
|
|
@@ -4777,10 +4777,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
4777
4777
|
**************************/
|
|
4778
4778
|
class PhoneNumberValidDirective {
|
|
4779
4779
|
onValidate() {
|
|
4780
|
-
const { destroyed, phoneNumber, internationalNumber } = this;
|
|
4781
|
-
if (destroyed || !phoneNumber)
|
|
4780
|
+
const { ctrl, destroyed, phoneNumber, internationalNumber } = this;
|
|
4781
|
+
if (destroyed || !phoneNumber || !ctrl)
|
|
4782
4782
|
return;
|
|
4783
|
-
let isValid =
|
|
4783
|
+
let isValid = false;
|
|
4784
4784
|
try {
|
|
4785
4785
|
isValid = MonkeyUtils.isPhoneNumberValid(phoneNumber, internationalNumber);
|
|
4786
4786
|
}
|
|
@@ -4789,14 +4789,16 @@ class PhoneNumberValidDirective {
|
|
|
4789
4789
|
}
|
|
4790
4790
|
if (!isValid) {
|
|
4791
4791
|
setTimeout(() => {
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4792
|
+
ctrl.markAsDirty();
|
|
4793
|
+
ctrl.markAsTouched();
|
|
4794
|
+
ctrl.setErrors({ phone: true });
|
|
4795
4795
|
}, 0);
|
|
4796
4796
|
}
|
|
4797
4797
|
}
|
|
4798
|
-
ngOnChanges({ phoneNumber }) {
|
|
4799
|
-
if (phoneNumber && !phoneNumber.firstChange)
|
|
4798
|
+
ngOnChanges({ ctrl, phoneNumber, internationalNumber }) {
|
|
4799
|
+
if ((phoneNumber && !phoneNumber.firstChange) ||
|
|
4800
|
+
(internationalNumber && !internationalNumber.firstChange) ||
|
|
4801
|
+
(ctrl && !ctrl.firstChange)) {
|
|
4800
4802
|
this.onValidate();
|
|
4801
4803
|
}
|
|
4802
4804
|
}
|
|
@@ -4820,7 +4822,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
4820
4822
|
type: Input
|
|
4821
4823
|
}] } });
|
|
4822
4824
|
class MonkeyInputPhoneComponent {
|
|
4823
|
-
constructor(cdr) {
|
|
4825
|
+
constructor(ngControl, cdr) {
|
|
4826
|
+
this.ngControl = ngControl;
|
|
4824
4827
|
this.cdr = cdr;
|
|
4825
4828
|
this.name = `mecx-input-phone-${MonkeyUtils.getRandomString(10)}`;
|
|
4826
4829
|
this.helperMessage = '';
|
|
@@ -4834,6 +4837,10 @@ class MonkeyInputPhoneComponent {
|
|
|
4834
4837
|
this._regionCodes = [];
|
|
4835
4838
|
this._countryCodes = [];
|
|
4836
4839
|
this._internationalNumber = 55;
|
|
4840
|
+
this._formControl = null;
|
|
4841
|
+
if (this.ngControl != null) {
|
|
4842
|
+
this.ngControl.valueAccessor = this;
|
|
4843
|
+
}
|
|
4837
4844
|
}
|
|
4838
4845
|
handleValue(value) {
|
|
4839
4846
|
return MonkeyUtils.handleOnlyNumbers(`${value}`);
|
|
@@ -4846,18 +4853,15 @@ class MonkeyInputPhoneComponent {
|
|
|
4846
4853
|
}
|
|
4847
4854
|
getValue() {
|
|
4848
4855
|
const { _internationalNumber, _handledValue } = this;
|
|
4849
|
-
|
|
4856
|
+
if (_handledValue)
|
|
4857
|
+
return `+${_internationalNumber}${_handledValue}`;
|
|
4858
|
+
return '';
|
|
4850
4859
|
}
|
|
4851
4860
|
ngOnInit() {
|
|
4852
4861
|
this._countryCodes = MonkeyUtils.getPhoneRegions();
|
|
4853
4862
|
this.onHandleInternationalNumber();
|
|
4854
4863
|
this.onHandleCountryCode(this._internationalNumber);
|
|
4855
|
-
|
|
4856
|
-
ngOnChanges(sc) {
|
|
4857
|
-
const { formControl: { firstChange, currentValue: { value }, }, } = sc;
|
|
4858
|
-
if (sc && firstChange) {
|
|
4859
|
-
this.onHandleInternationalNumber(value);
|
|
4860
|
-
}
|
|
4864
|
+
this._formControl = this.ngControl && this.ngControl.form;
|
|
4861
4865
|
}
|
|
4862
4866
|
onHandleInternationalNumber(value) {
|
|
4863
4867
|
this._internationalNumber =
|
|
@@ -4923,15 +4927,8 @@ class MonkeyInputPhoneComponent {
|
|
|
4923
4927
|
}
|
|
4924
4928
|
}
|
|
4925
4929
|
}
|
|
4926
|
-
MonkeyInputPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4927
|
-
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",
|
|
4928
|
-
{
|
|
4929
|
-
provide: NG_VALUE_ACCESSOR,
|
|
4930
|
-
useExisting: forwardRef(() => MonkeyInputPhoneComponent),
|
|
4931
|
-
multi: true,
|
|
4932
|
-
},
|
|
4933
|
-
CurrencyPipe,
|
|
4934
|
-
], usesOnChanges: true, ngImport: i0, template: `
|
|
4930
|
+
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 });
|
|
4931
|
+
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: `
|
|
4935
4932
|
<mecx-form-field [ngClass]="{ disabled: _disabled }" [id]="_id">
|
|
4936
4933
|
<mecx-form-field-header>
|
|
4937
4934
|
<label>
|
|
@@ -4966,11 +4963,15 @@ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4966
4963
|
[disabled]="_disabled"
|
|
4967
4964
|
[maxLength]="maxLength"
|
|
4968
4965
|
phoneNumberValidate
|
|
4969
|
-
[ctrl]="
|
|
4966
|
+
[ctrl]="_formControl"
|
|
4970
4967
|
[phoneNumber]="_handledValue"
|
|
4971
4968
|
[internationalNumber]="_internationalNumber"
|
|
4972
4969
|
#monkeyInput
|
|
4973
4970
|
/>
|
|
4971
|
+
<!--phoneNumberValidate
|
|
4972
|
+
[ctrl]="formControl"
|
|
4973
|
+
[phoneNumber]="_handledValue"
|
|
4974
|
+
[internationalNumber]="_internationalNumber"-->
|
|
4974
4975
|
</mecx-form-field-body>
|
|
4975
4976
|
<mecx-form-field-footer>
|
|
4976
4977
|
<info>
|
|
@@ -4981,7 +4982,7 @@ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4981
4982
|
</error>
|
|
4982
4983
|
</mecx-form-field-footer>
|
|
4983
4984
|
</mecx-form-field>
|
|
4984
|
-
`, 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:
|
|
4985
|
+
`, 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 });
|
|
4985
4986
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, decorators: [{
|
|
4986
4987
|
type: Component,
|
|
4987
4988
|
args: [{
|
|
@@ -5021,11 +5022,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
5021
5022
|
[disabled]="_disabled"
|
|
5022
5023
|
[maxLength]="maxLength"
|
|
5023
5024
|
phoneNumberValidate
|
|
5024
|
-
[ctrl]="
|
|
5025
|
+
[ctrl]="_formControl"
|
|
5025
5026
|
[phoneNumber]="_handledValue"
|
|
5026
5027
|
[internationalNumber]="_internationalNumber"
|
|
5027
5028
|
#monkeyInput
|
|
5028
5029
|
/>
|
|
5030
|
+
<!--phoneNumberValidate
|
|
5031
|
+
[ctrl]="formControl"
|
|
5032
|
+
[phoneNumber]="_handledValue"
|
|
5033
|
+
[internationalNumber]="_internationalNumber"-->
|
|
5029
5034
|
</mecx-form-field-body>
|
|
5030
5035
|
<mecx-form-field-footer>
|
|
5031
5036
|
<info>
|
|
@@ -5038,16 +5043,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
5038
5043
|
</mecx-form-field>
|
|
5039
5044
|
`,
|
|
5040
5045
|
encapsulation: ViewEncapsulation.None,
|
|
5041
|
-
providers: [
|
|
5042
|
-
{
|
|
5043
|
-
provide: NG_VALUE_ACCESSOR,
|
|
5044
|
-
useExisting: forwardRef(() => MonkeyInputPhoneComponent),
|
|
5045
|
-
multi: true,
|
|
5046
|
-
},
|
|
5047
|
-
CurrencyPipe,
|
|
5048
|
-
],
|
|
5049
5046
|
}]
|
|
5050
|
-
}], ctorParameters: function () { return [{ type:
|
|
5047
|
+
}], ctorParameters: function () { return [{ type: i1$2.NgControl, decorators: [{
|
|
5048
|
+
type: Optional
|
|
5049
|
+
}, {
|
|
5050
|
+
type: Self
|
|
5051
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { name: [{
|
|
5051
5052
|
type: Input
|
|
5052
5053
|
}], label: [{
|
|
5053
5054
|
type: Input
|
|
@@ -5063,8 +5064,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
5063
5064
|
type: Input
|
|
5064
5065
|
}], maxLength: [{
|
|
5065
5066
|
type: Input
|
|
5066
|
-
}], formControl: [{
|
|
5067
|
-
type: Input
|
|
5068
5067
|
}], onChange: [{
|
|
5069
5068
|
type: Output
|
|
5070
5069
|
}], value: [{
|
|
@@ -5581,7 +5580,7 @@ MonkeySelectSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
5581
5580
|
</error>
|
|
5582
5581
|
</mecx-form-field-footer>
|
|
5583
5582
|
</mecx-form-field>
|
|
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:
|
|
5583
|
+
`, 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 });
|
|
5585
5584
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeySelectSearchComponent, decorators: [{
|
|
5586
5585
|
type: Component,
|
|
5587
5586
|
args: [{
|
|
@@ -5920,7 +5919,7 @@ class MonkeyInputPhoneModule {
|
|
|
5920
5919
|
MonkeyInputPhoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5921
5920
|
MonkeyInputPhoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, declarations: [MonkeyInputPhoneComponent, PhoneNumberValidDirective], imports: [CommonModule,
|
|
5922
5921
|
FormsModule,
|
|
5923
|
-
ReactiveFormsModule, i1$
|
|
5922
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule,
|
|
5924
5923
|
MonkeySelectModule,
|
|
5925
5924
|
MonkeyOptionModule], exports: [MonkeyInputPhoneComponent] });
|
|
5926
5925
|
MonkeyInputPhoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, imports: [[
|
|
@@ -6038,7 +6037,7 @@ MonkeyCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
6038
6037
|
</mecx-form-field-body>
|
|
6039
6038
|
</mecx-form-field>
|
|
6040
6039
|
</ng-template>
|
|
6041
|
-
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
6040
|
+
`, 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 });
|
|
6042
6041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyCheckboxComponent, decorators: [{
|
|
6043
6042
|
type: Component,
|
|
6044
6043
|
args: [{
|
|
@@ -6693,7 +6692,7 @@ class MonkeyFileUploadModule {
|
|
|
6693
6692
|
MonkeyFileUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6694
6693
|
MonkeyFileUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, declarations: [MonkeyFileUploadComponent], imports: [CommonModule,
|
|
6695
6694
|
FormsModule,
|
|
6696
|
-
ReactiveFormsModule, i1$
|
|
6695
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyFileUploadComponent] });
|
|
6697
6696
|
MonkeyFileUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, imports: [[
|
|
6698
6697
|
CommonModule,
|
|
6699
6698
|
FormsModule,
|
|
@@ -6950,7 +6949,7 @@ class MonkeyImageCropComponent {
|
|
|
6950
6949
|
this.onHandlePreviewReady.next(file);
|
|
6951
6950
|
}
|
|
6952
6951
|
}
|
|
6953
|
-
MonkeyImageCropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$
|
|
6952
|
+
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 });
|
|
6954
6953
|
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: `
|
|
6955
6954
|
<monkey-file-upload
|
|
6956
6955
|
[label]="label"
|
|
@@ -7179,7 +7178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
7179
7178
|
`,
|
|
7180
7179
|
encapsulation: ViewEncapsulation.None,
|
|
7181
7180
|
}]
|
|
7182
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$
|
|
7181
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$4.DomSanitizer }]; }, propDecorators: { label: [{
|
|
7183
7182
|
type: Input
|
|
7184
7183
|
}], cropTitle: [{
|
|
7185
7184
|
type: Input
|
|
@@ -7224,7 +7223,7 @@ class MonkeyImageCropModule {
|
|
|
7224
7223
|
MonkeyImageCropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7225
7224
|
MonkeyImageCropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, declarations: [MonkeyImageCropComponent], imports: [CommonModule,
|
|
7226
7225
|
FormsModule,
|
|
7227
|
-
ReactiveFormsModule, i1$
|
|
7226
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyButtonModule,
|
|
7228
7227
|
MonkeyFileUploadModule], exports: [MonkeyImageCropComponent] });
|
|
7229
7228
|
MonkeyImageCropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, imports: [[
|
|
7230
7229
|
CommonModule,
|