monkey-style-guide 2.0.95 → 2.0.99
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 +131 -141
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.js +6 -5
- package/esm2015/lib/components/input-phone/input-phone.component.js +42 -47
- package/esm2015/lib/core/utils/utils.js +2 -2
- package/fesm2015/monkey-style-guide.js +57 -59
- 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.99.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.95.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
|
|
@@ -3253,10 +3253,11 @@ class MonkeyDateRangePickerComponent {
|
|
|
3253
3253
|
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
3254
3254
|
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
3255
3255
|
}
|
|
3256
|
-
clearDates(
|
|
3256
|
+
clearDates() {
|
|
3257
|
+
if (this._disabled)
|
|
3258
|
+
return;
|
|
3257
3259
|
this._dateForm.setValue({ startDate: null, endDate: null });
|
|
3258
|
-
|
|
3259
|
-
this.writeValue(value);
|
|
3260
|
+
this.writeValue(this._dateForm.value);
|
|
3260
3261
|
}
|
|
3261
3262
|
navigateToToday() {
|
|
3262
3263
|
this._dateFirst = moment();
|
|
@@ -3285,7 +3286,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
3285
3286
|
this.onModelTouched(this._dateForm.value);
|
|
3286
3287
|
}
|
|
3287
3288
|
else {
|
|
3288
|
-
this.clearDates(
|
|
3289
|
+
this.clearDates();
|
|
3289
3290
|
}
|
|
3290
3291
|
}
|
|
3291
3292
|
get value() {
|
|
@@ -3380,7 +3381,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
3380
3381
|
this.writeValue(_dateForm.value);
|
|
3381
3382
|
}
|
|
3382
3383
|
}
|
|
3383
|
-
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 });
|
|
3384
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: [
|
|
3385
3386
|
{
|
|
3386
3387
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3698,7 +3699,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
3698
3699
|
CurrencyPipe,
|
|
3699
3700
|
],
|
|
3700
3701
|
}]
|
|
3701
|
-
}], ctorParameters: function () { return [{ type:
|
|
3702
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { i18n: [{
|
|
3702
3703
|
type: Input
|
|
3703
3704
|
}], infoMessage: [{
|
|
3704
3705
|
type: Input
|
|
@@ -3949,7 +3950,7 @@ MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
3949
3950
|
</error>
|
|
3950
3951
|
</mecx-form-field-footer>
|
|
3951
3952
|
</mecx-form-field>
|
|
3952
|
-
`, 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 });
|
|
3953
3954
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputComponent, decorators: [{
|
|
3954
3955
|
type: Component,
|
|
3955
3956
|
args: [{
|
|
@@ -4243,7 +4244,7 @@ MonkeyInputFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4243
4244
|
></monkey-icon>
|
|
4244
4245
|
</mecx-form-field-body>
|
|
4245
4246
|
</mecx-form-field-filter>
|
|
4246
|
-
`, 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 });
|
|
4247
4248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputFilterComponent, decorators: [{
|
|
4248
4249
|
type: Component,
|
|
4249
4250
|
args: [{
|
|
@@ -4356,7 +4357,7 @@ class MonkeyInputModule {
|
|
|
4356
4357
|
MonkeyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4357
4358
|
MonkeyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, declarations: [MonkeyInputComponent, MonkeyInputFilterComponent], imports: [CommonModule,
|
|
4358
4359
|
FormsModule,
|
|
4359
|
-
ReactiveFormsModule, i1$
|
|
4360
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyInputComponent, MonkeyInputFilterComponent] });
|
|
4360
4361
|
MonkeyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputModule, imports: [[
|
|
4361
4362
|
CommonModule,
|
|
4362
4363
|
FormsModule,
|
|
@@ -4776,10 +4777,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
4776
4777
|
**************************/
|
|
4777
4778
|
class PhoneNumberValidDirective {
|
|
4778
4779
|
onValidate() {
|
|
4779
|
-
const { destroyed, phoneNumber, internationalNumber } = this;
|
|
4780
|
-
if (destroyed || !phoneNumber)
|
|
4780
|
+
const { ctrl, destroyed, phoneNumber, internationalNumber } = this;
|
|
4781
|
+
if (destroyed || !phoneNumber || !ctrl)
|
|
4781
4782
|
return;
|
|
4782
|
-
let isValid =
|
|
4783
|
+
let isValid = false;
|
|
4783
4784
|
try {
|
|
4784
4785
|
isValid = MonkeyUtils.isPhoneNumberValid(phoneNumber, internationalNumber);
|
|
4785
4786
|
}
|
|
@@ -4788,14 +4789,16 @@ class PhoneNumberValidDirective {
|
|
|
4788
4789
|
}
|
|
4789
4790
|
if (!isValid) {
|
|
4790
4791
|
setTimeout(() => {
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4792
|
+
ctrl.markAsDirty();
|
|
4793
|
+
ctrl.markAsTouched();
|
|
4794
|
+
ctrl.setErrors({ phone: true });
|
|
4794
4795
|
}, 0);
|
|
4795
4796
|
}
|
|
4796
4797
|
}
|
|
4797
|
-
ngOnChanges({ phoneNumber }) {
|
|
4798
|
-
if (phoneNumber && !phoneNumber.firstChange)
|
|
4798
|
+
ngOnChanges({ ctrl, phoneNumber, internationalNumber }) {
|
|
4799
|
+
if ((phoneNumber && !phoneNumber.firstChange) ||
|
|
4800
|
+
(internationalNumber && !internationalNumber.firstChange) ||
|
|
4801
|
+
(ctrl && !ctrl.firstChange)) {
|
|
4799
4802
|
this.onValidate();
|
|
4800
4803
|
}
|
|
4801
4804
|
}
|
|
@@ -4819,7 +4822,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
4819
4822
|
type: Input
|
|
4820
4823
|
}] } });
|
|
4821
4824
|
class MonkeyInputPhoneComponent {
|
|
4822
|
-
constructor(cdr) {
|
|
4825
|
+
constructor(ngControl, cdr) {
|
|
4826
|
+
this.ngControl = ngControl;
|
|
4823
4827
|
this.cdr = cdr;
|
|
4824
4828
|
this.name = `mecx-input-phone-${MonkeyUtils.getRandomString(10)}`;
|
|
4825
4829
|
this.helperMessage = '';
|
|
@@ -4833,6 +4837,10 @@ class MonkeyInputPhoneComponent {
|
|
|
4833
4837
|
this._regionCodes = [];
|
|
4834
4838
|
this._countryCodes = [];
|
|
4835
4839
|
this._internationalNumber = 55;
|
|
4840
|
+
this._formControl = null;
|
|
4841
|
+
if (this.ngControl != null) {
|
|
4842
|
+
this.ngControl.valueAccessor = this;
|
|
4843
|
+
}
|
|
4836
4844
|
}
|
|
4837
4845
|
handleValue(value) {
|
|
4838
4846
|
return MonkeyUtils.handleOnlyNumbers(`${value}`);
|
|
@@ -4851,12 +4859,7 @@ class MonkeyInputPhoneComponent {
|
|
|
4851
4859
|
this._countryCodes = MonkeyUtils.getPhoneRegions();
|
|
4852
4860
|
this.onHandleInternationalNumber();
|
|
4853
4861
|
this.onHandleCountryCode(this._internationalNumber);
|
|
4854
|
-
|
|
4855
|
-
ngOnChanges(sc) {
|
|
4856
|
-
const { formControl: { firstChange, currentValue: { value }, }, } = sc;
|
|
4857
|
-
if (sc && firstChange) {
|
|
4858
|
-
this.onHandleInternationalNumber(value);
|
|
4859
|
-
}
|
|
4862
|
+
this._formControl = this.ngControl && this.ngControl.form;
|
|
4860
4863
|
}
|
|
4861
4864
|
onHandleInternationalNumber(value) {
|
|
4862
4865
|
this._internationalNumber =
|
|
@@ -4922,15 +4925,8 @@ class MonkeyInputPhoneComponent {
|
|
|
4922
4925
|
}
|
|
4923
4926
|
}
|
|
4924
4927
|
}
|
|
4925
|
-
MonkeyInputPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4926
|
-
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",
|
|
4927
|
-
{
|
|
4928
|
-
provide: NG_VALUE_ACCESSOR,
|
|
4929
|
-
useExisting: forwardRef(() => MonkeyInputPhoneComponent),
|
|
4930
|
-
multi: true,
|
|
4931
|
-
},
|
|
4932
|
-
CurrencyPipe,
|
|
4933
|
-
], usesOnChanges: true, ngImport: i0, template: `
|
|
4928
|
+
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 });
|
|
4929
|
+
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: `
|
|
4934
4930
|
<mecx-form-field [ngClass]="{ disabled: _disabled }" [id]="_id">
|
|
4935
4931
|
<mecx-form-field-header>
|
|
4936
4932
|
<label>
|
|
@@ -4965,11 +4961,15 @@ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4965
4961
|
[disabled]="_disabled"
|
|
4966
4962
|
[maxLength]="maxLength"
|
|
4967
4963
|
phoneNumberValidate
|
|
4968
|
-
[ctrl]="
|
|
4964
|
+
[ctrl]="_formControl"
|
|
4969
4965
|
[phoneNumber]="_handledValue"
|
|
4970
4966
|
[internationalNumber]="_internationalNumber"
|
|
4971
4967
|
#monkeyInput
|
|
4972
4968
|
/>
|
|
4969
|
+
<!--phoneNumberValidate
|
|
4970
|
+
[ctrl]="formControl"
|
|
4971
|
+
[phoneNumber]="_handledValue"
|
|
4972
|
+
[internationalNumber]="_internationalNumber"-->
|
|
4973
4973
|
</mecx-form-field-body>
|
|
4974
4974
|
<mecx-form-field-footer>
|
|
4975
4975
|
<info>
|
|
@@ -4980,7 +4980,7 @@ MonkeyInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4980
4980
|
</error>
|
|
4981
4981
|
</mecx-form-field-footer>
|
|
4982
4982
|
</mecx-form-field>
|
|
4983
|
-
`, 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:
|
|
4983
|
+
`, 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 });
|
|
4984
4984
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneComponent, decorators: [{
|
|
4985
4985
|
type: Component,
|
|
4986
4986
|
args: [{
|
|
@@ -5020,11 +5020,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
5020
5020
|
[disabled]="_disabled"
|
|
5021
5021
|
[maxLength]="maxLength"
|
|
5022
5022
|
phoneNumberValidate
|
|
5023
|
-
[ctrl]="
|
|
5023
|
+
[ctrl]="_formControl"
|
|
5024
5024
|
[phoneNumber]="_handledValue"
|
|
5025
5025
|
[internationalNumber]="_internationalNumber"
|
|
5026
5026
|
#monkeyInput
|
|
5027
5027
|
/>
|
|
5028
|
+
<!--phoneNumberValidate
|
|
5029
|
+
[ctrl]="formControl"
|
|
5030
|
+
[phoneNumber]="_handledValue"
|
|
5031
|
+
[internationalNumber]="_internationalNumber"-->
|
|
5028
5032
|
</mecx-form-field-body>
|
|
5029
5033
|
<mecx-form-field-footer>
|
|
5030
5034
|
<info>
|
|
@@ -5037,16 +5041,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
5037
5041
|
</mecx-form-field>
|
|
5038
5042
|
`,
|
|
5039
5043
|
encapsulation: ViewEncapsulation.None,
|
|
5040
|
-
providers: [
|
|
5041
|
-
{
|
|
5042
|
-
provide: NG_VALUE_ACCESSOR,
|
|
5043
|
-
useExisting: forwardRef(() => MonkeyInputPhoneComponent),
|
|
5044
|
-
multi: true,
|
|
5045
|
-
},
|
|
5046
|
-
CurrencyPipe,
|
|
5047
|
-
],
|
|
5048
5044
|
}]
|
|
5049
|
-
}], ctorParameters: function () { return [{ type:
|
|
5045
|
+
}], ctorParameters: function () { return [{ type: i1$2.NgControl, decorators: [{
|
|
5046
|
+
type: Optional
|
|
5047
|
+
}, {
|
|
5048
|
+
type: Self
|
|
5049
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { name: [{
|
|
5050
5050
|
type: Input
|
|
5051
5051
|
}], label: [{
|
|
5052
5052
|
type: Input
|
|
@@ -5062,8 +5062,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
5062
5062
|
type: Input
|
|
5063
5063
|
}], maxLength: [{
|
|
5064
5064
|
type: Input
|
|
5065
|
-
}], formControl: [{
|
|
5066
|
-
type: Input
|
|
5067
5065
|
}], onChange: [{
|
|
5068
5066
|
type: Output
|
|
5069
5067
|
}], value: [{
|
|
@@ -5580,7 +5578,7 @@ MonkeySelectSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
5580
5578
|
</error>
|
|
5581
5579
|
</mecx-form-field-footer>
|
|
5582
5580
|
</mecx-form-field>
|
|
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:
|
|
5581
|
+
`, 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 });
|
|
5584
5582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeySelectSearchComponent, decorators: [{
|
|
5585
5583
|
type: Component,
|
|
5586
5584
|
args: [{
|
|
@@ -5919,7 +5917,7 @@ class MonkeyInputPhoneModule {
|
|
|
5919
5917
|
MonkeyInputPhoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5920
5918
|
MonkeyInputPhoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, declarations: [MonkeyInputPhoneComponent, PhoneNumberValidDirective], imports: [CommonModule,
|
|
5921
5919
|
FormsModule,
|
|
5922
|
-
ReactiveFormsModule, i1$
|
|
5920
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule,
|
|
5923
5921
|
MonkeySelectModule,
|
|
5924
5922
|
MonkeyOptionModule], exports: [MonkeyInputPhoneComponent] });
|
|
5925
5923
|
MonkeyInputPhoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyInputPhoneModule, imports: [[
|
|
@@ -6037,7 +6035,7 @@ MonkeyCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
6037
6035
|
</mecx-form-field-body>
|
|
6038
6036
|
</mecx-form-field>
|
|
6039
6037
|
</ng-template>
|
|
6040
|
-
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
6038
|
+
`, 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 });
|
|
6041
6039
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyCheckboxComponent, decorators: [{
|
|
6042
6040
|
type: Component,
|
|
6043
6041
|
args: [{
|
|
@@ -6692,7 +6690,7 @@ class MonkeyFileUploadModule {
|
|
|
6692
6690
|
MonkeyFileUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6693
6691
|
MonkeyFileUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, declarations: [MonkeyFileUploadComponent], imports: [CommonModule,
|
|
6694
6692
|
FormsModule,
|
|
6695
|
-
ReactiveFormsModule, i1$
|
|
6693
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyFileUploadComponent] });
|
|
6696
6694
|
MonkeyFileUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFileUploadModule, imports: [[
|
|
6697
6695
|
CommonModule,
|
|
6698
6696
|
FormsModule,
|
|
@@ -6949,7 +6947,7 @@ class MonkeyImageCropComponent {
|
|
|
6949
6947
|
this.onHandlePreviewReady.next(file);
|
|
6950
6948
|
}
|
|
6951
6949
|
}
|
|
6952
|
-
MonkeyImageCropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$
|
|
6950
|
+
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 });
|
|
6953
6951
|
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: `
|
|
6954
6952
|
<monkey-file-upload
|
|
6955
6953
|
[label]="label"
|
|
@@ -7178,7 +7176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
|
|
|
7178
7176
|
`,
|
|
7179
7177
|
encapsulation: ViewEncapsulation.None,
|
|
7180
7178
|
}]
|
|
7181
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$
|
|
7179
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$4.DomSanitizer }]; }, propDecorators: { label: [{
|
|
7182
7180
|
type: Input
|
|
7183
7181
|
}], cropTitle: [{
|
|
7184
7182
|
type: Input
|
|
@@ -7223,7 +7221,7 @@ class MonkeyImageCropModule {
|
|
|
7223
7221
|
MonkeyImageCropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7224
7222
|
MonkeyImageCropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, declarations: [MonkeyImageCropComponent], imports: [CommonModule,
|
|
7225
7223
|
FormsModule,
|
|
7226
|
-
ReactiveFormsModule, i1$
|
|
7224
|
+
ReactiveFormsModule, i1$3.NgxMaskModule, MonkeyButtonModule,
|
|
7227
7225
|
MonkeyFileUploadModule], exports: [MonkeyImageCropComponent] });
|
|
7228
7226
|
MonkeyImageCropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyImageCropModule, imports: [[
|
|
7229
7227
|
CommonModule,
|