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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common/http'), require('@angular/common'), require('google-libphonenumber'), require('rxjs/operators'), require('@angular/forms'), require('moment'), require('ngx-mask'), require('@angular/platform-browser')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('monkey-style-guide', ['exports', '@angular/core', 'rxjs', '@angular/common/http', '@angular/common', 'google-libphonenumber', 'rxjs/operators', '@angular/forms', 'moment', 'ngx-mask', '@angular/platform-browser'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["monkey-style-guide"] = {}, global.ng.core, global.rxjs, global.ng.common.http, global.ng.common, global["google-libphonenumber"], global.rxjs.operators, global.ng.forms, global.moment, global["ngx-mask"], global.ng.platformBrowser));
|
|
5
|
-
})(this, (function (exports, i0, rxjs, i1, i1$1, googleLibphonenumber, operators,
|
|
5
|
+
})(this, (function (exports, i0, rxjs, i1, i1$1, googleLibphonenumber, operators, i1$2, moment_, i1$3, i1$4) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
26
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
27
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
29
|
-
var moment___namespace = /*#__PURE__*/_interopNamespace(moment_);
|
|
30
28
|
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
29
|
+
var moment___namespace = /*#__PURE__*/_interopNamespace(moment_);
|
|
31
30
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
31
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
32
32
|
|
|
33
33
|
var MonkeyStyleGuideService = /** @class */ (function () {
|
|
34
34
|
function MonkeyStyleGuideService(http) {
|
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
try {
|
|
704
704
|
var country = phoneUtil.getRegionCodeForCountryCode(internationalNumber);
|
|
705
705
|
var number = phoneUtil.parse(phone, country);
|
|
706
|
-
return phoneUtil.
|
|
706
|
+
return phoneUtil.isValidNumberForRegion(number, country);
|
|
707
707
|
}
|
|
708
708
|
catch (e) {
|
|
709
709
|
//not to do
|
|
@@ -2774,13 +2774,13 @@
|
|
|
2774
2774
|
return MonkeyButtonModule;
|
|
2775
2775
|
}());
|
|
2776
2776
|
MonkeyButtonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyButtonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2777
|
-
MonkeyButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyButtonModule, declarations: [MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonAvatarComponent], imports: [i1$1.CommonModule,
|
|
2778
|
-
MonkeyButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyButtonModule, imports: [[i1$1.CommonModule,
|
|
2777
|
+
MonkeyButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyButtonModule, declarations: [MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonAvatarComponent], imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyIconModule], exports: [MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonAvatarComponent] });
|
|
2778
|
+
MonkeyButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyButtonModule, imports: [[i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyIconModule]] });
|
|
2779
2779
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyButtonModule, decorators: [{
|
|
2780
2780
|
type: i0.NgModule,
|
|
2781
2781
|
args: [{
|
|
2782
2782
|
declarations: [MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonAvatarComponent],
|
|
2783
|
-
imports: [i1$1.CommonModule,
|
|
2783
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyIconModule],
|
|
2784
2784
|
exports: [MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonAvatarComponent],
|
|
2785
2785
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
2786
2786
|
}]
|
|
@@ -2805,8 +2805,8 @@
|
|
|
2805
2805
|
}
|
|
2806
2806
|
MonkeyDateRangePickerComponent.prototype.initDateRange = function () {
|
|
2807
2807
|
return (this._dateForm = this.fb.group({
|
|
2808
|
-
startDate: [null,
|
|
2809
|
-
endDate: [null,
|
|
2808
|
+
startDate: [null, i1$2.Validators.required],
|
|
2809
|
+
endDate: [null, i1$2.Validators.required],
|
|
2810
2810
|
}));
|
|
2811
2811
|
};
|
|
2812
2812
|
MonkeyDateRangePickerComponent.prototype.createCalendar = function (month) {
|
|
@@ -2847,11 +2847,11 @@
|
|
|
2847
2847
|
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2848
2848
|
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2849
2849
|
};
|
|
2850
|
-
MonkeyDateRangePickerComponent.prototype.clearDates = function (
|
|
2851
|
-
if (
|
|
2850
|
+
MonkeyDateRangePickerComponent.prototype.clearDates = function () {
|
|
2851
|
+
if (this._disabled)
|
|
2852
|
+
return;
|
|
2852
2853
|
this._dateForm.setValue({ startDate: null, endDate: null });
|
|
2853
|
-
|
|
2854
|
-
this.writeValue(value);
|
|
2854
|
+
this.writeValue(this._dateForm.value);
|
|
2855
2855
|
};
|
|
2856
2856
|
MonkeyDateRangePickerComponent.prototype.navigateToToday = function () {
|
|
2857
2857
|
this._dateFirst = moment();
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
this.onModelTouched(this._dateForm.value);
|
|
2885
2885
|
}
|
|
2886
2886
|
else {
|
|
2887
|
-
this.clearDates(
|
|
2887
|
+
this.clearDates();
|
|
2888
2888
|
}
|
|
2889
2889
|
},
|
|
2890
2890
|
enumerable: false,
|
|
@@ -2980,10 +2980,10 @@
|
|
|
2980
2980
|
};
|
|
2981
2981
|
return MonkeyDateRangePickerComponent;
|
|
2982
2982
|
}());
|
|
2983
|
-
MonkeyDateRangePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerComponent, deps: [{ token:
|
|
2983
|
+
MonkeyDateRangePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerComponent, deps: [{ token: i1__namespace$2.FormBuilder }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2984
2984
|
MonkeyDateRangePickerComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
2985
2985
|
{
|
|
2986
|
-
provide:
|
|
2986
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
2987
2987
|
useExisting: i0.forwardRef(function () { return MonkeyDateRangePickerComponent; }),
|
|
2988
2988
|
multi: true,
|
|
2989
2989
|
},
|
|
@@ -2997,14 +2997,14 @@
|
|
|
2997
2997
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2998
2998
|
providers: [
|
|
2999
2999
|
{
|
|
3000
|
-
provide:
|
|
3000
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3001
3001
|
useExisting: i0.forwardRef(function () { return MonkeyDateRangePickerComponent; }),
|
|
3002
3002
|
multi: true,
|
|
3003
3003
|
},
|
|
3004
3004
|
i1$1.CurrencyPipe,
|
|
3005
3005
|
],
|
|
3006
3006
|
}]
|
|
3007
|
-
}], ctorParameters: function () { return [{ type:
|
|
3007
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.FormBuilder }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { i18n: [{
|
|
3008
3008
|
type: i0.Input
|
|
3009
3009
|
}], infoMessage: [{
|
|
3010
3010
|
type: i0.Input
|
|
@@ -3022,13 +3022,13 @@
|
|
|
3022
3022
|
return MonkeyDateRangePickerModule;
|
|
3023
3023
|
}());
|
|
3024
3024
|
MonkeyDateRangePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3025
|
-
MonkeyDateRangePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerModule, declarations: [MonkeyDateRangePickerComponent], imports: [i1$1.CommonModule,
|
|
3026
|
-
MonkeyDateRangePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerModule, imports: [[i1$1.CommonModule,
|
|
3025
|
+
MonkeyDateRangePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerModule, declarations: [MonkeyDateRangePickerComponent], imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule, MonkeyIconModule], exports: [MonkeyDateRangePickerComponent] });
|
|
3026
|
+
MonkeyDateRangePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerModule, imports: [[i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule, MonkeyIconModule]] });
|
|
3027
3027
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyDateRangePickerModule, decorators: [{
|
|
3028
3028
|
type: i0.NgModule,
|
|
3029
3029
|
args: [{
|
|
3030
3030
|
declarations: [MonkeyDateRangePickerComponent],
|
|
3031
|
-
imports: [i1$1.CommonModule,
|
|
3031
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule, MonkeyIconModule],
|
|
3032
3032
|
exports: [MonkeyDateRangePickerComponent],
|
|
3033
3033
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
3034
3034
|
}]
|
|
@@ -3178,12 +3178,12 @@
|
|
|
3178
3178
|
MonkeyInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputComponent, deps: [{ token: i1__namespace$1.CurrencyPipe }, { token: MonkeyStyleGuideSettingsService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3179
3179
|
MonkeyInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyInputComponent, selector: "monkey-input", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", type: "type", infoMessage: "infoMessage", errorMessage: "errorMessage", mask: "mask", prefix: "prefix", maxLength: "maxLength", onlyNumber: "onlyNumber", onlyAlphaNumeric: "onlyAlphaNumeric", upperCase: "upperCase", lowerCase: "lowerCase", capitalize: "capitalize", currency: "currency", percent: "percent", maxDateToday: "maxDateToday", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick()" } }, providers: [
|
|
3180
3180
|
{
|
|
3181
|
-
provide:
|
|
3181
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3182
3182
|
useExisting: i0.forwardRef(function () { return MonkeyInputComponent; }),
|
|
3183
3183
|
multi: true,
|
|
3184
3184
|
},
|
|
3185
3185
|
i1$1.CurrencyPipe,
|
|
3186
|
-
], viewQueries: [{ propertyName: "monkeyInput", first: true, predicate: ["monkeyInput"], descendants: true, static: true }], ngImport: i0__namespace, template: "\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\" [id]=\"_id\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body [class.error]=\"errorMessage?.trim()\">\n <monkey-icon\n [icon]=\"icon\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"icon\"\n ></monkey-icon>\n <symbol>\n {{ _symbol }}\n </symbol>\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n (keypress)=\"onKeyPress($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n [prefix]=\"prefix\"\n *ngIf=\"mask && prefix\"\n #monkeyInput\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n *ngIf=\"mask && !prefix\"\n #monkeyInput\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [maxLength]=\"maxLength\"\n *ngIf=\"!mask && !prefix\"\n [max]=\"maxDateToday ? _maxDateToday : null\"\n #monkeyInput\n />\n <monkey-icon\n icon=\"eye-open-16\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'text'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n <monkey-icon\n icon=\"eye-closed-16\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'password'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ", isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type:
|
|
3186
|
+
], viewQueries: [{ propertyName: "monkeyInput", first: true, predicate: ["monkeyInput"], descendants: true, static: true }], ngImport: i0__namespace, template: "\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\" [id]=\"_id\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body [class.error]=\"errorMessage?.trim()\">\n <monkey-icon\n [icon]=\"icon\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"icon\"\n ></monkey-icon>\n <symbol>\n {{ _symbol }}\n </symbol>\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n (keypress)=\"onKeyPress($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n [prefix]=\"prefix\"\n *ngIf=\"mask && prefix\"\n #monkeyInput\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n *ngIf=\"mask && !prefix\"\n #monkeyInput\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [maxLength]=\"maxLength\"\n *ngIf=\"!mask && !prefix\"\n [max]=\"maxDateToday ? _maxDateToday : null\"\n #monkeyInput\n />\n <monkey-icon\n icon=\"eye-open-16\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'text'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n <monkey-icon\n icon=\"eye-closed-16\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'password'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ", isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$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__namespace$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__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
3187
3187
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputComponent, decorators: [{
|
|
3188
3188
|
type: i0.Component,
|
|
3189
3189
|
args: [{
|
|
@@ -3192,7 +3192,7 @@
|
|
|
3192
3192
|
encapsulation: i0.ViewEncapsulation.None,
|
|
3193
3193
|
providers: [
|
|
3194
3194
|
{
|
|
3195
|
-
provide:
|
|
3195
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3196
3196
|
useExisting: i0.forwardRef(function () { return MonkeyInputComponent; }),
|
|
3197
3197
|
multi: true,
|
|
3198
3198
|
},
|
|
@@ -3346,12 +3346,12 @@
|
|
|
3346
3346
|
MonkeyInputFilterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputFilterComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.CurrencyPipe }, { token: MonkeyStyleGuideSettingsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3347
3347
|
MonkeyInputFilterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyInputFilterComponent, selector: "monkey-input-filter", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", type: "type", infoMessage: "infoMessage", errorMessage: "errorMessage", mask: "mask", prefix: "prefix", onlyNumber: "onlyNumber", onlyAlphaNumeric: "onlyAlphaNumeric", upperCase: "upperCase", lowerCase: "lowerCase", capitalize: "capitalize", currency: "currency", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
|
|
3348
3348
|
{
|
|
3349
|
-
provide:
|
|
3349
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3350
3350
|
useExisting: i0.forwardRef(function () { return MonkeyInputFilterComponent; }),
|
|
3351
3351
|
multi: true,
|
|
3352
3352
|
},
|
|
3353
3353
|
i1$1.CurrencyPipe,
|
|
3354
|
-
], ngImport: i0__namespace, template: "\n <mecx-form-field-filter [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-body>\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n (input)=\"onChangeInput($event)\"\n [id]=\"_id\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n [prefix]=\"prefix\"\n *ngIf=\"mask && prefix\"\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n (input)=\"onChangeInput($event)\"\n [id]=\"_id\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n *ngIf=\"mask && !prefix\"\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n (input)=\"onChangeInput($event)\"\n [id]=\"_id\"\n [disabled]=\"_disabled\"\n *ngIf=\"!mask && !prefix\"\n />\n <monkey-icon [icon]=\"icon\" [color]=\"'#4B4A53'\"></monkey-icon>\n <monkey-icon\n icon=\"eyes-16\"\n [color]=\"'#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'text'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n <monkey-icon\n icon=\"eyes-off-16\"\n [color]=\"'#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'password'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n </mecx-form-field-body>\n </mecx-form-field-filter>\n ", isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type:
|
|
3354
|
+
], ngImport: i0__namespace, template: "\n <mecx-form-field-filter [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-body>\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n (input)=\"onChangeInput($event)\"\n [id]=\"_id\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n [prefix]=\"prefix\"\n *ngIf=\"mask && prefix\"\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n (input)=\"onChangeInput($event)\"\n [id]=\"_id\"\n [disabled]=\"_disabled\"\n [mask]=\"mask\"\n *ngIf=\"mask && !prefix\"\n />\n <input\n [name]=\"name\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n (input)=\"onChangeInput($event)\"\n [id]=\"_id\"\n [disabled]=\"_disabled\"\n *ngIf=\"!mask && !prefix\"\n />\n <monkey-icon [icon]=\"icon\" [color]=\"'#4B4A53'\"></monkey-icon>\n <monkey-icon\n icon=\"eyes-16\"\n [color]=\"'#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'text'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n <monkey-icon\n icon=\"eyes-off-16\"\n [color]=\"'#4B4A53'\"\n *ngIf=\"_oldType === 'password' && type === 'password'\"\n (click)=\"onShowAndHidePassword()\"\n ></monkey-icon>\n </mecx-form-field-body>\n </mecx-form-field-filter>\n ", isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$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__namespace$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__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
3355
3355
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputFilterComponent, decorators: [{
|
|
3356
3356
|
type: i0.Component,
|
|
3357
3357
|
args: [{
|
|
@@ -3360,7 +3360,7 @@
|
|
|
3360
3360
|
encapsulation: i0.ViewEncapsulation.None,
|
|
3361
3361
|
providers: [
|
|
3362
3362
|
{
|
|
3363
|
-
provide:
|
|
3363
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3364
3364
|
useExisting: i0.forwardRef(function () { return MonkeyInputFilterComponent; }),
|
|
3365
3365
|
multi: true,
|
|
3366
3366
|
},
|
|
@@ -3415,13 +3415,13 @@
|
|
|
3415
3415
|
}());
|
|
3416
3416
|
MonkeyInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3417
3417
|
MonkeyInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputModule, declarations: [MonkeyInputComponent, MonkeyInputFilterComponent], imports: [i1$1.CommonModule,
|
|
3418
|
-
|
|
3419
|
-
|
|
3418
|
+
i1$2.FormsModule,
|
|
3419
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyInputComponent, MonkeyInputFilterComponent] });
|
|
3420
3420
|
MonkeyInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputModule, imports: [[
|
|
3421
3421
|
i1$1.CommonModule,
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
i1$
|
|
3422
|
+
i1$2.FormsModule,
|
|
3423
|
+
i1$2.ReactiveFormsModule,
|
|
3424
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
3425
3425
|
MonkeyIconModule,
|
|
3426
3426
|
]] });
|
|
3427
3427
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputModule, decorators: [{
|
|
@@ -3430,9 +3430,9 @@
|
|
|
3430
3430
|
declarations: [MonkeyInputComponent, MonkeyInputFilterComponent],
|
|
3431
3431
|
imports: [
|
|
3432
3432
|
i1$1.CommonModule,
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
i1$
|
|
3433
|
+
i1$2.FormsModule,
|
|
3434
|
+
i1$2.ReactiveFormsModule,
|
|
3435
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
3436
3436
|
MonkeyIconModule,
|
|
3437
3437
|
],
|
|
3438
3438
|
exports: [MonkeyInputComponent, MonkeyInputFilterComponent],
|
|
@@ -3465,7 +3465,7 @@
|
|
|
3465
3465
|
MonkeyOptionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyOptionComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3466
3466
|
MonkeyOptionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyOptionComponent, selector: "monkey-option", inputs: { type: "type", label: "label", value: "value", selectAll: "selectAll", selected: "selected", enableClick: "enableClick" }, outputs: { onSelectOption: "onSelectOption" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
|
|
3467
3467
|
{
|
|
3468
|
-
provide:
|
|
3468
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3469
3469
|
useExisting: i0.forwardRef(function () { return MonkeyOptionComponent; }),
|
|
3470
3470
|
multi: true,
|
|
3471
3471
|
},
|
|
@@ -3478,7 +3478,7 @@
|
|
|
3478
3478
|
encapsulation: i0.ViewEncapsulation.None,
|
|
3479
3479
|
providers: [
|
|
3480
3480
|
{
|
|
3481
|
-
provide:
|
|
3481
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3482
3482
|
useExisting: i0.forwardRef(function () { return MonkeyOptionComponent; }),
|
|
3483
3483
|
multi: true,
|
|
3484
3484
|
},
|
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
MonkeySelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3653
3653
|
MonkeySelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeySelectComponent, selector: "monkey-select", inputs: { label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", errorMessage: "errorMessage", labelSelect: "labelSelect", onHandleOptions: "onHandleOptions", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "document:click": "clickout()" } }, providers: [
|
|
3654
3654
|
{
|
|
3655
|
-
provide:
|
|
3655
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3656
3656
|
useExisting: i0.forwardRef(function () { return MonkeySelectComponent; }),
|
|
3657
3657
|
multi: true,
|
|
3658
3658
|
},
|
|
@@ -3665,7 +3665,7 @@
|
|
|
3665
3665
|
encapsulation: i0.ViewEncapsulation.None,
|
|
3666
3666
|
providers: [
|
|
3667
3667
|
{
|
|
3668
|
-
provide:
|
|
3668
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
3669
3669
|
useExisting: i0.forwardRef(function () { return MonkeySelectComponent; }),
|
|
3670
3670
|
multi: true,
|
|
3671
3671
|
},
|
|
@@ -3711,11 +3711,10 @@
|
|
|
3711
3711
|
function PhoneNumberValidDirective() {
|
|
3712
3712
|
}
|
|
3713
3713
|
PhoneNumberValidDirective.prototype.onValidate = function () {
|
|
3714
|
-
var
|
|
3715
|
-
|
|
3716
|
-
if (destroyed || !phoneNumber)
|
|
3714
|
+
var _d = this, ctrl = _d.ctrl, destroyed = _d.destroyed, phoneNumber = _d.phoneNumber, internationalNumber = _d.internationalNumber;
|
|
3715
|
+
if (destroyed || !phoneNumber || !ctrl)
|
|
3717
3716
|
return;
|
|
3718
|
-
var isValid =
|
|
3717
|
+
var isValid = false;
|
|
3719
3718
|
try {
|
|
3720
3719
|
isValid = MonkeyUtils.isPhoneNumberValid(phoneNumber, internationalNumber);
|
|
3721
3720
|
}
|
|
@@ -3724,15 +3723,17 @@
|
|
|
3724
3723
|
}
|
|
3725
3724
|
if (!isValid) {
|
|
3726
3725
|
setTimeout(function () {
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3726
|
+
ctrl.markAsDirty();
|
|
3727
|
+
ctrl.markAsTouched();
|
|
3728
|
+
ctrl.setErrors({ phone: true });
|
|
3730
3729
|
}, 0);
|
|
3731
3730
|
}
|
|
3732
3731
|
};
|
|
3733
3732
|
PhoneNumberValidDirective.prototype.ngOnChanges = function (_d) {
|
|
3734
|
-
var phoneNumber = _d.phoneNumber;
|
|
3735
|
-
if (phoneNumber && !phoneNumber.firstChange)
|
|
3733
|
+
var ctrl = _d.ctrl, phoneNumber = _d.phoneNumber, internationalNumber = _d.internationalNumber;
|
|
3734
|
+
if ((phoneNumber && !phoneNumber.firstChange) ||
|
|
3735
|
+
(internationalNumber && !internationalNumber.firstChange) ||
|
|
3736
|
+
(ctrl && !ctrl.firstChange)) {
|
|
3736
3737
|
this.onValidate();
|
|
3737
3738
|
}
|
|
3738
3739
|
};
|
|
@@ -3757,7 +3758,8 @@
|
|
|
3757
3758
|
type: i0.Input
|
|
3758
3759
|
}] } });
|
|
3759
3760
|
var MonkeyInputPhoneComponent = /** @class */ (function () {
|
|
3760
|
-
function MonkeyInputPhoneComponent(cdr) {
|
|
3761
|
+
function MonkeyInputPhoneComponent(ngControl, cdr) {
|
|
3762
|
+
this.ngControl = ngControl;
|
|
3761
3763
|
this.cdr = cdr;
|
|
3762
3764
|
this.name = "mecx-input-phone-" + MonkeyUtils.getRandomString(10);
|
|
3763
3765
|
this.helperMessage = '';
|
|
@@ -3771,6 +3773,10 @@
|
|
|
3771
3773
|
this._regionCodes = [];
|
|
3772
3774
|
this._countryCodes = [];
|
|
3773
3775
|
this._internationalNumber = 55;
|
|
3776
|
+
this._formControl = null;
|
|
3777
|
+
if (this.ngControl != null) {
|
|
3778
|
+
this.ngControl.valueAccessor = this;
|
|
3779
|
+
}
|
|
3774
3780
|
}
|
|
3775
3781
|
MonkeyInputPhoneComponent.prototype.handleValue = function (value) {
|
|
3776
3782
|
return MonkeyUtils.handleOnlyNumbers("" + value);
|
|
@@ -3789,12 +3795,7 @@
|
|
|
3789
3795
|
this._countryCodes = MonkeyUtils.getPhoneRegions();
|
|
3790
3796
|
this.onHandleInternationalNumber();
|
|
3791
3797
|
this.onHandleCountryCode(this._internationalNumber);
|
|
3792
|
-
|
|
3793
|
-
MonkeyInputPhoneComponent.prototype.ngOnChanges = function (sc) {
|
|
3794
|
-
var _d = sc.formControl, firstChange = _d.firstChange, value = _d.currentValue.value;
|
|
3795
|
-
if (sc && firstChange) {
|
|
3796
|
-
this.onHandleInternationalNumber(value);
|
|
3797
|
-
}
|
|
3798
|
+
this._formControl = this.ngControl && this.ngControl.form;
|
|
3798
3799
|
};
|
|
3799
3800
|
MonkeyInputPhoneComponent.prototype.onHandleInternationalNumber = function (value) {
|
|
3800
3801
|
this._internationalNumber =
|
|
@@ -3865,31 +3866,22 @@
|
|
|
3865
3866
|
};
|
|
3866
3867
|
return MonkeyInputPhoneComponent;
|
|
3867
3868
|
}());
|
|
3868
|
-
MonkeyInputPhoneComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3869
|
-
MonkeyInputPhoneComponent.ɵcmp = i0__namespace.ɵɵ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",
|
|
3870
|
-
{
|
|
3871
|
-
provide: i4.NG_VALUE_ACCESSOR,
|
|
3872
|
-
useExisting: i0.forwardRef(function () { return MonkeyInputPhoneComponent; }),
|
|
3873
|
-
multi: true,
|
|
3874
|
-
},
|
|
3875
|
-
i1$1.CurrencyPipe,
|
|
3876
|
-
], usesOnChanges: true, ngImport: i0__namespace, template: "\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\" [id]=\"_id\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body [class.error]=\"errorMessage?.trim()\">\n <monkey-icon\n [icon]=\"icon\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"icon\"\n ></monkey-icon>\n <monkey-select\n [(ngModel)]=\"_internationalNumber\"\n [labelSelect]=\"onHandleInternationalNumberFormated()\"\n (onChange)=\"onHandleCountryCode($event)\"\n >\n <monkey-option *ngFor=\"let cc of _countryCodes\" [label]=\"'+' + cc\" [value]=\"cc\">\n </monkey-option>\n </monkey-select>\n <input\n [name]=\"name\"\n type=\"string\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [maxLength]=\"maxLength\"\n phoneNumberValidate\n [ctrl]=\"formControl\"\n [phoneNumber]=\"_handledValue\"\n [internationalNumber]=\"_internationalNumber\"\n #monkeyInput\n />\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ", 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.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__namespace.ViewEncapsulation.None });
|
|
3869
|
+
MonkeyInputPhoneComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneComponent, deps: [{ token: i1__namespace$2.NgControl, optional: true, self: true }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3870
|
+
MonkeyInputPhoneComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\" [id]=\"_id\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body [class.error]=\"errorMessage?.trim()\">\n <monkey-icon\n [icon]=\"icon\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"icon\"\n ></monkey-icon>\n <monkey-select\n [(ngModel)]=\"_internationalNumber\"\n [labelSelect]=\"onHandleInternationalNumberFormated()\"\n (onChange)=\"onHandleCountryCode($event)\"\n >\n <monkey-option *ngFor=\"let cc of _countryCodes\" [label]=\"'+' + cc\" [value]=\"cc\">\n </monkey-option>\n </monkey-select>\n <input\n [name]=\"name\"\n type=\"string\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [maxLength]=\"maxLength\"\n phoneNumberValidate\n [ctrl]=\"_formControl\"\n [phoneNumber]=\"_handledValue\"\n [internationalNumber]=\"_internationalNumber\"\n #monkeyInput\n />\n <!--phoneNumberValidate\n [ctrl]=\"formControl\"\n [phoneNumber]=\"_handledValue\"\n [internationalNumber]=\"_internationalNumber\"-->\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ", 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$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__namespace.ViewEncapsulation.None });
|
|
3877
3871
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneComponent, decorators: [{
|
|
3878
3872
|
type: i0.Component,
|
|
3879
3873
|
args: [{
|
|
3880
3874
|
selector: 'monkey-input-phone',
|
|
3881
|
-
template: "\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\" [id]=\"_id\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body [class.error]=\"errorMessage?.trim()\">\n <monkey-icon\n [icon]=\"icon\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"icon\"\n ></monkey-icon>\n <monkey-select\n [(ngModel)]=\"_internationalNumber\"\n [labelSelect]=\"onHandleInternationalNumberFormated()\"\n (onChange)=\"onHandleCountryCode($event)\"\n >\n <monkey-option *ngFor=\"let cc of _countryCodes\" [label]=\"'+' + cc\" [value]=\"cc\">\n </monkey-option>\n </monkey-select>\n <input\n [name]=\"name\"\n type=\"string\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [maxLength]=\"maxLength\"\n phoneNumberValidate\n [ctrl]=\"
|
|
3875
|
+
template: "\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\" [id]=\"_id\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body [class.error]=\"errorMessage?.trim()\">\n <monkey-icon\n [icon]=\"icon\"\n [color]=\"errorMessage?.trim() ? '#fa3838' : '#4B4A53'\"\n *ngIf=\"icon\"\n ></monkey-icon>\n <monkey-select\n [(ngModel)]=\"_internationalNumber\"\n [labelSelect]=\"onHandleInternationalNumberFormated()\"\n (onChange)=\"onHandleCountryCode($event)\"\n >\n <monkey-option *ngFor=\"let cc of _countryCodes\" [label]=\"'+' + cc\" [value]=\"cc\">\n </monkey-option>\n </monkey-select>\n <input\n [name]=\"name\"\n type=\"string\"\n [placeholder]=\"placeholder\"\n (input)=\"onChangeValue($event)\"\n [id]=\"name\"\n [(ngModel)]=\"_formatedValue\"\n (keypress)=\"onKeyPress($event)\"\n [disabled]=\"_disabled\"\n [maxLength]=\"maxLength\"\n phoneNumberValidate\n [ctrl]=\"_formControl\"\n [phoneNumber]=\"_handledValue\"\n [internationalNumber]=\"_internationalNumber\"\n #monkeyInput\n />\n <!--phoneNumberValidate\n [ctrl]=\"formControl\"\n [phoneNumber]=\"_handledValue\"\n [internationalNumber]=\"_internationalNumber\"-->\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ",
|
|
3882
3876
|
encapsulation: i0.ViewEncapsulation.None,
|
|
3883
|
-
providers: [
|
|
3884
|
-
{
|
|
3885
|
-
provide: i4.NG_VALUE_ACCESSOR,
|
|
3886
|
-
useExisting: i0.forwardRef(function () { return MonkeyInputPhoneComponent; }),
|
|
3887
|
-
multi: true,
|
|
3888
|
-
},
|
|
3889
|
-
i1$1.CurrencyPipe,
|
|
3890
|
-
],
|
|
3891
3877
|
}]
|
|
3892
|
-
}], ctorParameters: function () {
|
|
3878
|
+
}], ctorParameters: function () {
|
|
3879
|
+
return [{ type: i1__namespace$2.NgControl, decorators: [{
|
|
3880
|
+
type: i0.Optional
|
|
3881
|
+
}, {
|
|
3882
|
+
type: i0.Self
|
|
3883
|
+
}] }, { type: i0__namespace.ChangeDetectorRef }];
|
|
3884
|
+
}, propDecorators: { name: [{
|
|
3893
3885
|
type: i0.Input
|
|
3894
3886
|
}], label: [{
|
|
3895
3887
|
type: i0.Input
|
|
@@ -3905,8 +3897,6 @@
|
|
|
3905
3897
|
type: i0.Input
|
|
3906
3898
|
}], maxLength: [{
|
|
3907
3899
|
type: i0.Input
|
|
3908
|
-
}], formControl: [{
|
|
3909
|
-
type: i0.Input
|
|
3910
3900
|
}], onChange: [{
|
|
3911
3901
|
type: i0.Output
|
|
3912
3902
|
}], value: [{
|
|
@@ -4101,7 +4091,7 @@
|
|
|
4101
4091
|
MonkeySelectMultipleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectMultipleComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4102
4092
|
MonkeySelectMultipleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeySelectMultipleComponent, selector: "monkey-select-multiple", inputs: { label: "label", labelMoreValues: "labelMoreValues", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", errorMessage: "errorMessage", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "document:click": "clickout()" } }, providers: [
|
|
4103
4093
|
{
|
|
4104
|
-
provide:
|
|
4094
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4105
4095
|
useExisting: i0.forwardRef(function () { return MonkeySelectMultipleComponent; }),
|
|
4106
4096
|
multi: true,
|
|
4107
4097
|
},
|
|
@@ -4114,7 +4104,7 @@
|
|
|
4114
4104
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4115
4105
|
providers: [
|
|
4116
4106
|
{
|
|
4117
|
-
provide:
|
|
4107
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4118
4108
|
useExisting: i0.forwardRef(function () { return MonkeySelectMultipleComponent; }),
|
|
4119
4109
|
multi: true,
|
|
4120
4110
|
},
|
|
@@ -4321,11 +4311,11 @@
|
|
|
4321
4311
|
MonkeySelectSearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectSearchComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4322
4312
|
MonkeySelectSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeySelectSearchComponent, selector: "monkey-select-search", inputs: { label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", errorMessage: "errorMessage", labelSelect: "labelSelect", fieldToCompare: "fieldToCompare", onHandleOptions: "onHandleOptions", value: "value" }, outputs: { onChange: "onChange", onSearch: "onSearch" }, host: { listeners: { "document:click": "clickout()" } }, providers: [
|
|
4323
4313
|
{
|
|
4324
|
-
provide:
|
|
4314
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4325
4315
|
useExisting: i0.forwardRef(function () { return MonkeySelectSearchComponent; }),
|
|
4326
4316
|
multi: true,
|
|
4327
4317
|
},
|
|
4328
|
-
], queries: [{ propertyName: "options", predicate: MonkeyOptionComponent }], viewQueries: [{ propertyName: "selectOptions", first: true, predicate: ["selectOptions"], descendants: true, static: true }, { propertyName: "inputFilter", first: true, predicate: ["inputFilter"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "\n <mecx-form-field [id]=\"_id\" [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body (click)=\"open()\" [class.error]=\"errorMessage?.trim()\">\n <monkey-icon [icon]=\"icon\" [color]=\"'#aaaaaa'\"></monkey-icon>\n <mecx-select class=\"trigger\" [ngClass]=\"{ open: _opened }\">\n <mecx-select__trigger>\n <input\n [placeholder]=\"labelSelect || placeholder\"\n (input)=\"onChangeInput($event)\"\n #inputFilter\n [ngModel]=\"_selected?.label || ''\"\n />\n <monkey-icon\n [icon]=\"!_opened ? 'arrow-down-16' : 'arrow-up-16'\"\n [color]=\"'#4B4A53'\"\n ></monkey-icon>\n </mecx-select__trigger>\n </mecx-select>\n </mecx-form-field-body>\n <mecx-select-inside [ngClass]=\"{ open: _opened }\">\n <mecx-select-options #selectOptions>\n <ng-content> </ng-content>\n </mecx-select-options>\n </mecx-select-inside>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ", isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
4318
|
+
], queries: [{ propertyName: "options", predicate: MonkeyOptionComponent }], viewQueries: [{ propertyName: "selectOptions", first: true, predicate: ["selectOptions"], descendants: true, static: true }, { propertyName: "inputFilter", first: true, predicate: ["inputFilter"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "\n <mecx-form-field [id]=\"_id\" [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body (click)=\"open()\" [class.error]=\"errorMessage?.trim()\">\n <monkey-icon [icon]=\"icon\" [color]=\"'#aaaaaa'\"></monkey-icon>\n <mecx-select class=\"trigger\" [ngClass]=\"{ open: _opened }\">\n <mecx-select__trigger>\n <input\n [placeholder]=\"labelSelect || placeholder\"\n (input)=\"onChangeInput($event)\"\n #inputFilter\n [ngModel]=\"_selected?.label || ''\"\n />\n <monkey-icon\n [icon]=\"!_opened ? 'arrow-down-16' : 'arrow-up-16'\"\n [color]=\"'#4B4A53'\"\n ></monkey-icon>\n </mecx-select__trigger>\n </mecx-select>\n </mecx-form-field-body>\n <mecx-select-inside [ngClass]=\"{ open: _opened }\">\n <mecx-select-options #selectOptions>\n <ng-content> </ng-content>\n </mecx-select-options>\n </mecx-select-inside>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n ", isInline: true, components: [{ type: MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$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__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4329
4319
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectSearchComponent, decorators: [{
|
|
4330
4320
|
type: i0.Component,
|
|
4331
4321
|
args: [{
|
|
@@ -4334,7 +4324,7 @@
|
|
|
4334
4324
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4335
4325
|
providers: [
|
|
4336
4326
|
{
|
|
4337
|
-
provide:
|
|
4327
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4338
4328
|
useExisting: i0.forwardRef(function () { return MonkeySelectSearchComponent; }),
|
|
4339
4329
|
multi: true,
|
|
4340
4330
|
},
|
|
@@ -4486,7 +4476,7 @@
|
|
|
4486
4476
|
MonkeySelectFilterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectFilterComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4487
4477
|
MonkeySelectFilterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeySelectFilterComponent, selector: "monkey-select-filter", inputs: { placeholder: "placeholder", icon: "icon", type: "type", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "document:click": "clickout()" } }, providers: [
|
|
4488
4478
|
{
|
|
4489
|
-
provide:
|
|
4479
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4490
4480
|
useExisting: i0.forwardRef(function () { return MonkeySelectFilterComponent; }),
|
|
4491
4481
|
multi: true,
|
|
4492
4482
|
},
|
|
@@ -4499,7 +4489,7 @@
|
|
|
4499
4489
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4500
4490
|
providers: [
|
|
4501
4491
|
{
|
|
4502
|
-
provide:
|
|
4492
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4503
4493
|
useExisting: i0.forwardRef(function () { return MonkeySelectFilterComponent; }),
|
|
4504
4494
|
multi: true,
|
|
4505
4495
|
},
|
|
@@ -4536,8 +4526,8 @@
|
|
|
4536
4526
|
MonkeySelectMultipleComponent,
|
|
4537
4527
|
MonkeySelectSearchComponent,
|
|
4538
4528
|
MonkeySelectFilterComponent], imports: [i1$1.CommonModule,
|
|
4539
|
-
|
|
4540
|
-
|
|
4529
|
+
i1$2.FormsModule,
|
|
4530
|
+
i1$2.ReactiveFormsModule,
|
|
4541
4531
|
MonkeyInputModule,
|
|
4542
4532
|
MonkeyOptionModule,
|
|
4543
4533
|
MonkeyIconModule], exports: [MonkeySelectComponent,
|
|
@@ -4546,8 +4536,8 @@
|
|
|
4546
4536
|
MonkeySelectFilterComponent] });
|
|
4547
4537
|
MonkeySelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectModule, imports: [[
|
|
4548
4538
|
i1$1.CommonModule,
|
|
4549
|
-
|
|
4550
|
-
|
|
4539
|
+
i1$2.FormsModule,
|
|
4540
|
+
i1$2.ReactiveFormsModule,
|
|
4551
4541
|
MonkeyInputModule,
|
|
4552
4542
|
MonkeyOptionModule,
|
|
4553
4543
|
MonkeyIconModule,
|
|
@@ -4563,8 +4553,8 @@
|
|
|
4563
4553
|
],
|
|
4564
4554
|
imports: [
|
|
4565
4555
|
i1$1.CommonModule,
|
|
4566
|
-
|
|
4567
|
-
|
|
4556
|
+
i1$2.FormsModule,
|
|
4557
|
+
i1$2.ReactiveFormsModule,
|
|
4568
4558
|
MonkeyInputModule,
|
|
4569
4559
|
MonkeyOptionModule,
|
|
4570
4560
|
MonkeyIconModule,
|
|
@@ -4586,15 +4576,15 @@
|
|
|
4586
4576
|
}());
|
|
4587
4577
|
MonkeyInputPhoneModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4588
4578
|
MonkeyInputPhoneModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneModule, declarations: [MonkeyInputPhoneComponent, PhoneNumberValidDirective], imports: [i1$1.CommonModule,
|
|
4589
|
-
|
|
4590
|
-
|
|
4579
|
+
i1$2.FormsModule,
|
|
4580
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyIconModule,
|
|
4591
4581
|
MonkeySelectModule,
|
|
4592
4582
|
MonkeyOptionModule], exports: [MonkeyInputPhoneComponent] });
|
|
4593
4583
|
MonkeyInputPhoneModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneModule, imports: [[
|
|
4594
4584
|
i1$1.CommonModule,
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
i1$
|
|
4585
|
+
i1$2.FormsModule,
|
|
4586
|
+
i1$2.ReactiveFormsModule,
|
|
4587
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
4598
4588
|
MonkeyIconModule,
|
|
4599
4589
|
MonkeySelectModule,
|
|
4600
4590
|
MonkeyOptionModule,
|
|
@@ -4605,9 +4595,9 @@
|
|
|
4605
4595
|
declarations: [MonkeyInputPhoneComponent, PhoneNumberValidDirective],
|
|
4606
4596
|
imports: [
|
|
4607
4597
|
i1$1.CommonModule,
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
i1$
|
|
4598
|
+
i1$2.FormsModule,
|
|
4599
|
+
i1$2.ReactiveFormsModule,
|
|
4600
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
4611
4601
|
MonkeyIconModule,
|
|
4612
4602
|
MonkeySelectModule,
|
|
4613
4603
|
MonkeyOptionModule,
|
|
@@ -4668,11 +4658,11 @@
|
|
|
4668
4658
|
MonkeyCheckboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4669
4659
|
MonkeyCheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyCheckboxComponent, selector: "monkey-checkbox", inputs: { label: "label", type: "type", helperMessage: "helperMessage", infoMessage: "infoMessage", errorMessage: "errorMessage", description: "description", value: "value" }, outputs: { onChange: "onChange" }, providers: [
|
|
4670
4660
|
{
|
|
4671
|
-
provide:
|
|
4661
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4672
4662
|
useExisting: i0.forwardRef(function () { return MonkeyCheckboxComponent; }),
|
|
4673
4663
|
multi: true,
|
|
4674
4664
|
},
|
|
4675
|
-
], ngImport: i0__namespace, template: "\n <mecx-form-field *ngIf=\"type === 'single'; else multiple\" [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body class=\"checkbox\">\n <label class=\"mecx-check-container\">\n <input type=\"checkbox\" [(ngModel)]=\"value\" [id]=\"_id\" [disabled]=\"_disabled\" />\n {{ description }}\n <ng-content> </ng-content>\n <p class=\"mecx-check-mark\"></p>\n </label>\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n <ng-template #multiple>\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-body class=\"checkbox\">\n <label class=\"mecx-check-container\">\n <input type=\"checkbox\" [(ngModel)]=\"value\" [id]=\"_id\" [disabled]=\"_disabled\" />\n {{ description }}\n <p class=\"mecx-check-mark\"></p>\n </label>\n </mecx-form-field-body>\n </mecx-form-field>\n </ng-template>\n ", isInline: true, directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
4665
|
+
], ngImport: i0__namespace, template: "\n <mecx-form-field *ngIf=\"type === 'single'; else multiple\" [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-header>\n <label>\n {{ label }}\n </label>\n <helper>\n {{ helperMessage }}\n </helper>\n </mecx-form-field-header>\n <mecx-form-field-body class=\"checkbox\">\n <label class=\"mecx-check-container\">\n <input type=\"checkbox\" [(ngModel)]=\"value\" [id]=\"_id\" [disabled]=\"_disabled\" />\n {{ description }}\n <ng-content> </ng-content>\n <p class=\"mecx-check-mark\"></p>\n </label>\n </mecx-form-field-body>\n <mecx-form-field-footer>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-form-field-footer>\n </mecx-form-field>\n <ng-template #multiple>\n <mecx-form-field [ngClass]=\"{ disabled: _disabled }\">\n <mecx-form-field-body class=\"checkbox\">\n <label class=\"mecx-check-container\">\n <input type=\"checkbox\" [(ngModel)]=\"value\" [id]=\"_id\" [disabled]=\"_disabled\" />\n {{ description }}\n <p class=\"mecx-check-mark\"></p>\n </label>\n </mecx-form-field-body>\n </mecx-form-field>\n </ng-template>\n ", isInline: true, directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4676
4666
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxComponent, decorators: [{
|
|
4677
4667
|
type: i0.Component,
|
|
4678
4668
|
args: [{
|
|
@@ -4681,7 +4671,7 @@
|
|
|
4681
4671
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4682
4672
|
providers: [
|
|
4683
4673
|
{
|
|
4684
|
-
provide:
|
|
4674
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4685
4675
|
useExisting: i0.forwardRef(function () { return MonkeyCheckboxComponent; }),
|
|
4686
4676
|
multi: true,
|
|
4687
4677
|
},
|
|
@@ -4711,13 +4701,13 @@
|
|
|
4711
4701
|
return MonkeyCheckboxModule;
|
|
4712
4702
|
}());
|
|
4713
4703
|
MonkeyCheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4714
|
-
MonkeyCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, declarations: [MonkeyCheckboxComponent], imports: [i1$1.CommonModule,
|
|
4715
|
-
MonkeyCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, imports: [[i1$1.CommonModule,
|
|
4704
|
+
MonkeyCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, declarations: [MonkeyCheckboxComponent], imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule], exports: [MonkeyCheckboxComponent] });
|
|
4705
|
+
MonkeyCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, imports: [[i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule]] });
|
|
4716
4706
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, decorators: [{
|
|
4717
4707
|
type: i0.NgModule,
|
|
4718
4708
|
args: [{
|
|
4719
4709
|
declarations: [MonkeyCheckboxComponent],
|
|
4720
|
-
imports: [i1$1.CommonModule,
|
|
4710
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule],
|
|
4721
4711
|
exports: [MonkeyCheckboxComponent],
|
|
4722
4712
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
4723
4713
|
}]
|
|
@@ -4806,7 +4796,7 @@
|
|
|
4806
4796
|
MonkeyRadioButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4807
4797
|
MonkeyRadioButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyRadioButtonComponent, selector: "monkey-radiobutton", inputs: { label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", errorMessage: "errorMessage", value: "value" }, outputs: { onChange: "onChange" }, providers: [
|
|
4808
4798
|
{
|
|
4809
|
-
provide:
|
|
4799
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4810
4800
|
useExisting: i0.forwardRef(function () { return MonkeyRadioButtonComponent; }),
|
|
4811
4801
|
multi: true,
|
|
4812
4802
|
},
|
|
@@ -4819,7 +4809,7 @@
|
|
|
4819
4809
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4820
4810
|
providers: [
|
|
4821
4811
|
{
|
|
4822
|
-
provide:
|
|
4812
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4823
4813
|
useExisting: i0.forwardRef(function () { return MonkeyRadioButtonComponent; }),
|
|
4824
4814
|
multi: true,
|
|
4825
4815
|
},
|
|
@@ -4853,12 +4843,12 @@
|
|
|
4853
4843
|
}());
|
|
4854
4844
|
MonkeyRadioButtonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4855
4845
|
MonkeyRadioButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonModule, declarations: [MonkeyRadioButtonComponent], imports: [i1$1.CommonModule,
|
|
4856
|
-
|
|
4857
|
-
|
|
4846
|
+
i1$2.FormsModule,
|
|
4847
|
+
i1$2.ReactiveFormsModule], exports: [MonkeyRadioButtonComponent] });
|
|
4858
4848
|
MonkeyRadioButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonModule, imports: [[
|
|
4859
4849
|
i1$1.CommonModule,
|
|
4860
|
-
|
|
4861
|
-
|
|
4850
|
+
i1$2.FormsModule,
|
|
4851
|
+
i1$2.ReactiveFormsModule
|
|
4862
4852
|
]] });
|
|
4863
4853
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonModule, decorators: [{
|
|
4864
4854
|
type: i0.NgModule,
|
|
@@ -4868,8 +4858,8 @@
|
|
|
4868
4858
|
],
|
|
4869
4859
|
imports: [
|
|
4870
4860
|
i1$1.CommonModule,
|
|
4871
|
-
|
|
4872
|
-
|
|
4861
|
+
i1$2.FormsModule,
|
|
4862
|
+
i1$2.ReactiveFormsModule
|
|
4873
4863
|
],
|
|
4874
4864
|
exports: [
|
|
4875
4865
|
MonkeyRadioButtonComponent
|
|
@@ -5073,7 +5063,7 @@
|
|
|
5073
5063
|
MonkeyFileUploadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5074
5064
|
MonkeyFileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyFileUploadComponent, selector: "monkey-file-upload", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", uploadOngoingMessage: "uploadOngoingMessage", errorMessage: "errorMessage", listenFiles: "listenFiles", maxSize: "maxSize", allowedExtensions: "allowedExtensions", maxSizeErrorMessage: "maxSizeErrorMessage", allowedExtensionErrorMessage: "allowedExtensionErrorMessage", fileUpload: "fileUpload", value: "value" }, outputs: { onChange: "onChange", onHandleFilesReady: "onHandleFilesReady" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
|
|
5075
5065
|
{
|
|
5076
|
-
provide:
|
|
5066
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5077
5067
|
useExisting: i0.forwardRef(function () { return MonkeyFileUploadComponent; }),
|
|
5078
5068
|
multi: true,
|
|
5079
5069
|
},
|
|
@@ -5086,7 +5076,7 @@
|
|
|
5086
5076
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5087
5077
|
providers: [
|
|
5088
5078
|
{
|
|
5089
|
-
provide:
|
|
5079
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5090
5080
|
useExisting: i0.forwardRef(function () { return MonkeyFileUploadComponent; }),
|
|
5091
5081
|
multi: true,
|
|
5092
5082
|
},
|
|
@@ -5138,13 +5128,13 @@
|
|
|
5138
5128
|
}());
|
|
5139
5129
|
MonkeyFileUploadModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5140
5130
|
MonkeyFileUploadModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadModule, declarations: [MonkeyFileUploadComponent], imports: [i1$1.CommonModule,
|
|
5141
|
-
|
|
5142
|
-
|
|
5131
|
+
i1$2.FormsModule,
|
|
5132
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyFileUploadComponent] });
|
|
5143
5133
|
MonkeyFileUploadModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadModule, imports: [[
|
|
5144
5134
|
i1$1.CommonModule,
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
i1$
|
|
5135
|
+
i1$2.FormsModule,
|
|
5136
|
+
i1$2.ReactiveFormsModule,
|
|
5137
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5148
5138
|
MonkeyIconModule,
|
|
5149
5139
|
]] });
|
|
5150
5140
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadModule, decorators: [{
|
|
@@ -5153,9 +5143,9 @@
|
|
|
5153
5143
|
declarations: [MonkeyFileUploadComponent],
|
|
5154
5144
|
imports: [
|
|
5155
5145
|
i1$1.CommonModule,
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
i1$
|
|
5146
|
+
i1$2.FormsModule,
|
|
5147
|
+
i1$2.ReactiveFormsModule,
|
|
5148
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5159
5149
|
MonkeyIconModule,
|
|
5160
5150
|
],
|
|
5161
5151
|
exports: [MonkeyFileUploadComponent],
|
|
@@ -5402,7 +5392,7 @@
|
|
|
5402
5392
|
};
|
|
5403
5393
|
return MonkeyImageCropComponent;
|
|
5404
5394
|
}());
|
|
5405
|
-
MonkeyImageCropComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$
|
|
5395
|
+
MonkeyImageCropComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5406
5396
|
MonkeyImageCropComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n <monkey-file-upload\n [label]=\"label\"\n [helperMessage]=\"helperMessage\"\n icon=\"upload-16\"\n [placeholder]=\"placeholder\"\n [maxSize]=\"maxSize\"\n [maxSizeErrorMessage]=\"maxSizeErrorMessage\"\n [allowedExtensionErrorMessage]=\"allowedExtensionErrorMessage\"\n (onHandleFilesReady)=\"onHandleFileUploadFilesReady($event)\"\n listenFiles=\"true\"\n [maxFiles]=\"1\"\n [allowedExtensions]=\"['.jpg', '.jpeg', '.png']\"\n *ngIf=\"!_loadCompleted\"\n >\n </monkey-file-upload>\n <div *ngIf=\"_loadPreview\">\n <progress class=\"monkey-progress monkey-progress__grey\"></progress>\n </div>\n <div class=\"box-cut-title\" *ngIf=\"_loadCompleted\">\n {{ cropTitle }} {{ _fileNameToCut }}\n </div>\n <div\n id=\"imageCropSource\"\n name=\"imageCropSource\"\n #imageCropSource\n class=\"box-cut\"\n *ngIf=\"_loadCompleted\"\n >\n <div class=\"edit-resize-cut\">\n <img class=\"source-image\" [src]=\"_safeImgDataUrl\" />\n <div\n class=\"cut\"\n [style.top.px]=\"_cutCoords.y1\"\n [style.left.px]=\"_cutCoords.x1\"\n [style.width.px]=\"_cutCoords.x2 - _cutCoords.x1\"\n [style.height.px]=\"_cutCoords.y2 - _cutCoords.y1\"\n *ngIf=\"_loadCompleted\"\n >\n <div\n (mousedown)=\"startMove($event, 'move')\"\n (touchstart)=\"startMove($event, 'move')\"\n class=\"move\"\n ></div>\n <span\n class=\"resize top-left\"\n (mousedown)=\"startMove($event, 'resize', 'topleft')\"\n (touchstart)=\"startMove($event, 'resize', 'topleft')\"\n >\n </span>\n <span class=\"resize top\"></span>\n <span\n class=\"resize top-right\"\n (mousedown)=\"startMove($event, 'resize', 'topright')\"\n (touchstart)=\"startMove($event, 'resize', 'topright')\"\n >\n </span>\n <span class=\"resize right\"></span>\n <span\n class=\"resize bottom-right\"\n (mousedown)=\"startMove($event, 'resize', 'bottomright')\"\n (touchstart)=\"startMove($event, 'resize', 'bottomright')\"\n >\n </span>\n <span class=\"resize bottom\"> </span>\n <span\n class=\"resize bottom-left\"\n (mousedown)=\"startMove($event, 'resize', 'bottomleft')\"\n (touchstart)=\"startMove($event, 'resize', 'bottomleft')\"\n >\n </span>\n <span class=\"resize left\"> </span>\n <span\n class=\"resize-bar top\"\n (mousedown)=\"startMove($event, 'resize', 'top')\"\n (touchstart)=\"startMove($event, 'resize', 'top')\"\n >\n </span>\n <span\n class=\"resize-bar right\"\n (mousedown)=\"startMove($event, 'resize', 'right')\"\n (touchstart)=\"startMove($event, 'resize', 'right')\"\n >\n </span>\n <span\n class=\"resize-bar bottom\"\n (mousedown)=\"startMove($event, 'resize', 'bottom')\"\n (touchstart)=\"startMove($event, 'resize', 'bottom')\"\n >\n </span>\n <span\n class=\"resize-bar left\"\n (mousedown)=\"startMove($event, 'resize', 'left')\"\n (touchstart)=\"startMove($event, 'resize', 'left')\"\n >\n </span>\n </div>\n </div>\n </div>\n <mecx-image-crop-upload-info *ngIf=\"_progress\">\n <span [style.width.%]=\"_progress\"> {{ _progress }}%</span>\n </mecx-image-crop-upload-info>\n <monkey-button\n type=\"tertiary\"\n color=\"theme\"\n (click)=\"onHandleImageChange()\"\n *ngIf=\"_loadCompleted\"\n >\n {{ labelChangeImage }}\n </monkey-button>\n ", isInline: true, components: [{ type: MonkeyFileUploadComponent, selector: "monkey-file-upload", inputs: ["name", "label", "helperMessage", "placeholder", "icon", "infoMessage", "uploadOngoingMessage", "errorMessage", "listenFiles", "maxSize", "allowedExtensions", "maxSizeErrorMessage", "allowedExtensionErrorMessage", "fileUpload", "value"], outputs: ["onChange", "onHandleFilesReady"] }, { type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5407
5397
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropComponent, decorators: [{
|
|
5408
5398
|
type: i0.Component,
|
|
@@ -5411,7 +5401,7 @@
|
|
|
5411
5401
|
template: "\n <monkey-file-upload\n [label]=\"label\"\n [helperMessage]=\"helperMessage\"\n icon=\"upload-16\"\n [placeholder]=\"placeholder\"\n [maxSize]=\"maxSize\"\n [maxSizeErrorMessage]=\"maxSizeErrorMessage\"\n [allowedExtensionErrorMessage]=\"allowedExtensionErrorMessage\"\n (onHandleFilesReady)=\"onHandleFileUploadFilesReady($event)\"\n listenFiles=\"true\"\n [maxFiles]=\"1\"\n [allowedExtensions]=\"['.jpg', '.jpeg', '.png']\"\n *ngIf=\"!_loadCompleted\"\n >\n </monkey-file-upload>\n <div *ngIf=\"_loadPreview\">\n <progress class=\"monkey-progress monkey-progress__grey\"></progress>\n </div>\n <div class=\"box-cut-title\" *ngIf=\"_loadCompleted\">\n {{ cropTitle }} {{ _fileNameToCut }}\n </div>\n <div\n id=\"imageCropSource\"\n name=\"imageCropSource\"\n #imageCropSource\n class=\"box-cut\"\n *ngIf=\"_loadCompleted\"\n >\n <div class=\"edit-resize-cut\">\n <img class=\"source-image\" [src]=\"_safeImgDataUrl\" />\n <div\n class=\"cut\"\n [style.top.px]=\"_cutCoords.y1\"\n [style.left.px]=\"_cutCoords.x1\"\n [style.width.px]=\"_cutCoords.x2 - _cutCoords.x1\"\n [style.height.px]=\"_cutCoords.y2 - _cutCoords.y1\"\n *ngIf=\"_loadCompleted\"\n >\n <div\n (mousedown)=\"startMove($event, 'move')\"\n (touchstart)=\"startMove($event, 'move')\"\n class=\"move\"\n ></div>\n <span\n class=\"resize top-left\"\n (mousedown)=\"startMove($event, 'resize', 'topleft')\"\n (touchstart)=\"startMove($event, 'resize', 'topleft')\"\n >\n </span>\n <span class=\"resize top\"></span>\n <span\n class=\"resize top-right\"\n (mousedown)=\"startMove($event, 'resize', 'topright')\"\n (touchstart)=\"startMove($event, 'resize', 'topright')\"\n >\n </span>\n <span class=\"resize right\"></span>\n <span\n class=\"resize bottom-right\"\n (mousedown)=\"startMove($event, 'resize', 'bottomright')\"\n (touchstart)=\"startMove($event, 'resize', 'bottomright')\"\n >\n </span>\n <span class=\"resize bottom\"> </span>\n <span\n class=\"resize bottom-left\"\n (mousedown)=\"startMove($event, 'resize', 'bottomleft')\"\n (touchstart)=\"startMove($event, 'resize', 'bottomleft')\"\n >\n </span>\n <span class=\"resize left\"> </span>\n <span\n class=\"resize-bar top\"\n (mousedown)=\"startMove($event, 'resize', 'top')\"\n (touchstart)=\"startMove($event, 'resize', 'top')\"\n >\n </span>\n <span\n class=\"resize-bar right\"\n (mousedown)=\"startMove($event, 'resize', 'right')\"\n (touchstart)=\"startMove($event, 'resize', 'right')\"\n >\n </span>\n <span\n class=\"resize-bar bottom\"\n (mousedown)=\"startMove($event, 'resize', 'bottom')\"\n (touchstart)=\"startMove($event, 'resize', 'bottom')\"\n >\n </span>\n <span\n class=\"resize-bar left\"\n (mousedown)=\"startMove($event, 'resize', 'left')\"\n (touchstart)=\"startMove($event, 'resize', 'left')\"\n >\n </span>\n </div>\n </div>\n </div>\n <mecx-image-crop-upload-info *ngIf=\"_progress\">\n <span [style.width.%]=\"_progress\"> {{ _progress }}%</span>\n </mecx-image-crop-upload-info>\n <monkey-button\n type=\"tertiary\"\n color=\"theme\"\n (click)=\"onHandleImageChange()\"\n *ngIf=\"_loadCompleted\"\n >\n {{ labelChangeImage }}\n </monkey-button>\n ",
|
|
5412
5402
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5413
5403
|
}]
|
|
5414
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$
|
|
5404
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.DomSanitizer }]; }, propDecorators: { label: [{
|
|
5415
5405
|
type: i0.Input
|
|
5416
5406
|
}], cropTitle: [{
|
|
5417
5407
|
type: i0.Input
|
|
@@ -5458,14 +5448,14 @@
|
|
|
5458
5448
|
}());
|
|
5459
5449
|
MonkeyImageCropModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5460
5450
|
MonkeyImageCropModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropModule, declarations: [MonkeyImageCropComponent], imports: [i1$1.CommonModule,
|
|
5461
|
-
|
|
5462
|
-
|
|
5451
|
+
i1$2.FormsModule,
|
|
5452
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyButtonModule,
|
|
5463
5453
|
MonkeyFileUploadModule], exports: [MonkeyImageCropComponent] });
|
|
5464
5454
|
MonkeyImageCropModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropModule, imports: [[
|
|
5465
5455
|
i1$1.CommonModule,
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
i1$
|
|
5456
|
+
i1$2.FormsModule,
|
|
5457
|
+
i1$2.ReactiveFormsModule,
|
|
5458
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5469
5459
|
MonkeyButtonModule,
|
|
5470
5460
|
MonkeyFileUploadModule,
|
|
5471
5461
|
]] });
|
|
@@ -5475,9 +5465,9 @@
|
|
|
5475
5465
|
declarations: [MonkeyImageCropComponent],
|
|
5476
5466
|
imports: [
|
|
5477
5467
|
i1$1.CommonModule,
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
i1$
|
|
5468
|
+
i1$2.FormsModule,
|
|
5469
|
+
i1$2.ReactiveFormsModule,
|
|
5470
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5481
5471
|
MonkeyButtonModule,
|
|
5482
5472
|
MonkeyFileUploadModule,
|
|
5483
5473
|
],
|
|
@@ -5574,13 +5564,13 @@
|
|
|
5574
5564
|
return MonkeyModalModule;
|
|
5575
5565
|
}());
|
|
5576
5566
|
MonkeyModalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5577
|
-
MonkeyModalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, declarations: [MonkeyModalComponent], imports: [i1$1.CommonModule,
|
|
5578
|
-
MonkeyModalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, imports: [[i1$1.CommonModule,
|
|
5567
|
+
MonkeyModalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, declarations: [MonkeyModalComponent], imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule], exports: [MonkeyModalComponent] });
|
|
5568
|
+
MonkeyModalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, imports: [[i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule]] });
|
|
5579
5569
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, decorators: [{
|
|
5580
5570
|
type: i0.NgModule,
|
|
5581
5571
|
args: [{
|
|
5582
5572
|
declarations: [MonkeyModalComponent],
|
|
5583
|
-
imports: [i1$1.CommonModule,
|
|
5573
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule],
|
|
5584
5574
|
exports: [MonkeyModalComponent],
|
|
5585
5575
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
5586
5576
|
}]
|
|
@@ -5798,7 +5788,7 @@
|
|
|
5798
5788
|
MonkeyTableColumnComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTableColumnComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5799
5789
|
MonkeyTableColumnComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyTableColumnComponent, selector: "monkey-table-column", providers: [
|
|
5800
5790
|
{
|
|
5801
|
-
provide:
|
|
5791
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5802
5792
|
useExisting: i0.forwardRef(function () { return MonkeyTableColumnComponent; }),
|
|
5803
5793
|
multi: true,
|
|
5804
5794
|
},
|
|
@@ -5811,7 +5801,7 @@
|
|
|
5811
5801
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5812
5802
|
providers: [
|
|
5813
5803
|
{
|
|
5814
|
-
provide:
|
|
5804
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5815
5805
|
useExisting: i0.forwardRef(function () { return MonkeyTableColumnComponent; }),
|
|
5816
5806
|
multi: true,
|
|
5817
5807
|
},
|
|
@@ -5957,7 +5947,7 @@
|
|
|
5957
5947
|
MonkeyTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5958
5948
|
MonkeyTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyTabComponent, selector: "monkey-tab", inputs: { position: "position", selected: "selected" }, outputs: { onChange: "onChange" }, providers: [
|
|
5959
5949
|
{
|
|
5960
|
-
provide:
|
|
5950
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5961
5951
|
useExisting: i0.forwardRef(function () { return MonkeyTabComponent; }),
|
|
5962
5952
|
multi: true,
|
|
5963
5953
|
},
|
|
@@ -5970,7 +5960,7 @@
|
|
|
5970
5960
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5971
5961
|
providers: [
|
|
5972
5962
|
{
|
|
5973
|
-
provide:
|
|
5963
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5974
5964
|
useExisting: i0.forwardRef(function () { return MonkeyTabComponent; }),
|
|
5975
5965
|
multi: true,
|
|
5976
5966
|
},
|
|
@@ -5993,13 +5983,13 @@
|
|
|
5993
5983
|
return MonkeyTabModule;
|
|
5994
5984
|
}());
|
|
5995
5985
|
MonkeyTabModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5996
|
-
MonkeyTabModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, declarations: [MonkeyTabComponent], imports: [i1$1.CommonModule,
|
|
5997
|
-
MonkeyTabModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, imports: [[i1$1.CommonModule,
|
|
5986
|
+
MonkeyTabModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, declarations: [MonkeyTabComponent], imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyOptionModule], exports: [MonkeyTabComponent] });
|
|
5987
|
+
MonkeyTabModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, imports: [[i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyOptionModule]] });
|
|
5998
5988
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, decorators: [{
|
|
5999
5989
|
type: i0.NgModule,
|
|
6000
5990
|
args: [{
|
|
6001
5991
|
declarations: [MonkeyTabComponent],
|
|
6002
|
-
imports: [i1$1.CommonModule,
|
|
5992
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyOptionModule],
|
|
6003
5993
|
exports: [MonkeyTabComponent],
|
|
6004
5994
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
6005
5995
|
}]
|