monkey-style-guide 2.0.96 → 2.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/data/country-codes.json +1466 -0
- package/assets/scss/partials/_forms.scss +1 -1
- package/bundles/monkey-style-guide.umd.js +129 -137
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/input-phone/input-phone.component.js +45 -48
- package/esm2015/lib/core/utils/utils.js +2 -2
- package/fesm2015/monkey-style-guide.js +55 -56
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/lib/components/input-phone/input-phone.component.d.ts +13 -8
- package/monkey-style-guide-2.0.100.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.96.tgz +0 -0
|
@@ -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) {
|
|
@@ -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);
|
|
@@ -3783,18 +3789,15 @@
|
|
|
3783
3789
|
};
|
|
3784
3790
|
MonkeyInputPhoneComponent.prototype.getValue = function () {
|
|
3785
3791
|
var _d = this, _internationalNumber = _d._internationalNumber, _handledValue = _d._handledValue;
|
|
3786
|
-
|
|
3792
|
+
if (_handledValue)
|
|
3793
|
+
return "+" + _internationalNumber + _handledValue;
|
|
3794
|
+
return '';
|
|
3787
3795
|
};
|
|
3788
3796
|
MonkeyInputPhoneComponent.prototype.ngOnInit = function () {
|
|
3789
3797
|
this._countryCodes = MonkeyUtils.getPhoneRegions();
|
|
3790
3798
|
this.onHandleInternationalNumber();
|
|
3791
3799
|
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
|
-
}
|
|
3800
|
+
this._formControl = this.ngControl && this.ngControl.form;
|
|
3798
3801
|
};
|
|
3799
3802
|
MonkeyInputPhoneComponent.prototype.onHandleInternationalNumber = function (value) {
|
|
3800
3803
|
this._internationalNumber =
|
|
@@ -3865,31 +3868,22 @@
|
|
|
3865
3868
|
};
|
|
3866
3869
|
return MonkeyInputPhoneComponent;
|
|
3867
3870
|
}());
|
|
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 });
|
|
3871
|
+
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 });
|
|
3872
|
+
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
3873
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneComponent, decorators: [{
|
|
3878
3874
|
type: i0.Component,
|
|
3879
3875
|
args: [{
|
|
3880
3876
|
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]=\"
|
|
3877
|
+
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
3878
|
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
3879
|
}]
|
|
3892
|
-
}], ctorParameters: function () {
|
|
3880
|
+
}], ctorParameters: function () {
|
|
3881
|
+
return [{ type: i1__namespace$2.NgControl, decorators: [{
|
|
3882
|
+
type: i0.Optional
|
|
3883
|
+
}, {
|
|
3884
|
+
type: i0.Self
|
|
3885
|
+
}] }, { type: i0__namespace.ChangeDetectorRef }];
|
|
3886
|
+
}, propDecorators: { name: [{
|
|
3893
3887
|
type: i0.Input
|
|
3894
3888
|
}], label: [{
|
|
3895
3889
|
type: i0.Input
|
|
@@ -3905,8 +3899,6 @@
|
|
|
3905
3899
|
type: i0.Input
|
|
3906
3900
|
}], maxLength: [{
|
|
3907
3901
|
type: i0.Input
|
|
3908
|
-
}], formControl: [{
|
|
3909
|
-
type: i0.Input
|
|
3910
3902
|
}], onChange: [{
|
|
3911
3903
|
type: i0.Output
|
|
3912
3904
|
}], value: [{
|
|
@@ -4101,7 +4093,7 @@
|
|
|
4101
4093
|
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
4094
|
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
4095
|
{
|
|
4104
|
-
provide:
|
|
4096
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4105
4097
|
useExisting: i0.forwardRef(function () { return MonkeySelectMultipleComponent; }),
|
|
4106
4098
|
multi: true,
|
|
4107
4099
|
},
|
|
@@ -4114,7 +4106,7 @@
|
|
|
4114
4106
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4115
4107
|
providers: [
|
|
4116
4108
|
{
|
|
4117
|
-
provide:
|
|
4109
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4118
4110
|
useExisting: i0.forwardRef(function () { return MonkeySelectMultipleComponent; }),
|
|
4119
4111
|
multi: true,
|
|
4120
4112
|
},
|
|
@@ -4321,11 +4313,11 @@
|
|
|
4321
4313
|
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
4314
|
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
4315
|
{
|
|
4324
|
-
provide:
|
|
4316
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4325
4317
|
useExisting: i0.forwardRef(function () { return MonkeySelectSearchComponent; }),
|
|
4326
4318
|
multi: true,
|
|
4327
4319
|
},
|
|
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:
|
|
4320
|
+
], 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
4321
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectSearchComponent, decorators: [{
|
|
4330
4322
|
type: i0.Component,
|
|
4331
4323
|
args: [{
|
|
@@ -4334,7 +4326,7 @@
|
|
|
4334
4326
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4335
4327
|
providers: [
|
|
4336
4328
|
{
|
|
4337
|
-
provide:
|
|
4329
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4338
4330
|
useExisting: i0.forwardRef(function () { return MonkeySelectSearchComponent; }),
|
|
4339
4331
|
multi: true,
|
|
4340
4332
|
},
|
|
@@ -4486,7 +4478,7 @@
|
|
|
4486
4478
|
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
4479
|
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
4480
|
{
|
|
4489
|
-
provide:
|
|
4481
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4490
4482
|
useExisting: i0.forwardRef(function () { return MonkeySelectFilterComponent; }),
|
|
4491
4483
|
multi: true,
|
|
4492
4484
|
},
|
|
@@ -4499,7 +4491,7 @@
|
|
|
4499
4491
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4500
4492
|
providers: [
|
|
4501
4493
|
{
|
|
4502
|
-
provide:
|
|
4494
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4503
4495
|
useExisting: i0.forwardRef(function () { return MonkeySelectFilterComponent; }),
|
|
4504
4496
|
multi: true,
|
|
4505
4497
|
},
|
|
@@ -4536,8 +4528,8 @@
|
|
|
4536
4528
|
MonkeySelectMultipleComponent,
|
|
4537
4529
|
MonkeySelectSearchComponent,
|
|
4538
4530
|
MonkeySelectFilterComponent], imports: [i1$1.CommonModule,
|
|
4539
|
-
|
|
4540
|
-
|
|
4531
|
+
i1$2.FormsModule,
|
|
4532
|
+
i1$2.ReactiveFormsModule,
|
|
4541
4533
|
MonkeyInputModule,
|
|
4542
4534
|
MonkeyOptionModule,
|
|
4543
4535
|
MonkeyIconModule], exports: [MonkeySelectComponent,
|
|
@@ -4546,8 +4538,8 @@
|
|
|
4546
4538
|
MonkeySelectFilterComponent] });
|
|
4547
4539
|
MonkeySelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeySelectModule, imports: [[
|
|
4548
4540
|
i1$1.CommonModule,
|
|
4549
|
-
|
|
4550
|
-
|
|
4541
|
+
i1$2.FormsModule,
|
|
4542
|
+
i1$2.ReactiveFormsModule,
|
|
4551
4543
|
MonkeyInputModule,
|
|
4552
4544
|
MonkeyOptionModule,
|
|
4553
4545
|
MonkeyIconModule,
|
|
@@ -4563,8 +4555,8 @@
|
|
|
4563
4555
|
],
|
|
4564
4556
|
imports: [
|
|
4565
4557
|
i1$1.CommonModule,
|
|
4566
|
-
|
|
4567
|
-
|
|
4558
|
+
i1$2.FormsModule,
|
|
4559
|
+
i1$2.ReactiveFormsModule,
|
|
4568
4560
|
MonkeyInputModule,
|
|
4569
4561
|
MonkeyOptionModule,
|
|
4570
4562
|
MonkeyIconModule,
|
|
@@ -4586,15 +4578,15 @@
|
|
|
4586
4578
|
}());
|
|
4587
4579
|
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
4580
|
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
|
-
|
|
4581
|
+
i1$2.FormsModule,
|
|
4582
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyIconModule,
|
|
4591
4583
|
MonkeySelectModule,
|
|
4592
4584
|
MonkeyOptionModule], exports: [MonkeyInputPhoneComponent] });
|
|
4593
4585
|
MonkeyInputPhoneModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyInputPhoneModule, imports: [[
|
|
4594
4586
|
i1$1.CommonModule,
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
i1$
|
|
4587
|
+
i1$2.FormsModule,
|
|
4588
|
+
i1$2.ReactiveFormsModule,
|
|
4589
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
4598
4590
|
MonkeyIconModule,
|
|
4599
4591
|
MonkeySelectModule,
|
|
4600
4592
|
MonkeyOptionModule,
|
|
@@ -4605,9 +4597,9 @@
|
|
|
4605
4597
|
declarations: [MonkeyInputPhoneComponent, PhoneNumberValidDirective],
|
|
4606
4598
|
imports: [
|
|
4607
4599
|
i1$1.CommonModule,
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
i1$
|
|
4600
|
+
i1$2.FormsModule,
|
|
4601
|
+
i1$2.ReactiveFormsModule,
|
|
4602
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
4611
4603
|
MonkeyIconModule,
|
|
4612
4604
|
MonkeySelectModule,
|
|
4613
4605
|
MonkeyOptionModule,
|
|
@@ -4668,11 +4660,11 @@
|
|
|
4668
4660
|
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
4661
|
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
4662
|
{
|
|
4671
|
-
provide:
|
|
4663
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4672
4664
|
useExisting: i0.forwardRef(function () { return MonkeyCheckboxComponent; }),
|
|
4673
4665
|
multi: true,
|
|
4674
4666
|
},
|
|
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:
|
|
4667
|
+
], 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
4668
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxComponent, decorators: [{
|
|
4677
4669
|
type: i0.Component,
|
|
4678
4670
|
args: [{
|
|
@@ -4681,7 +4673,7 @@
|
|
|
4681
4673
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4682
4674
|
providers: [
|
|
4683
4675
|
{
|
|
4684
|
-
provide:
|
|
4676
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4685
4677
|
useExisting: i0.forwardRef(function () { return MonkeyCheckboxComponent; }),
|
|
4686
4678
|
multi: true,
|
|
4687
4679
|
},
|
|
@@ -4711,13 +4703,13 @@
|
|
|
4711
4703
|
return MonkeyCheckboxModule;
|
|
4712
4704
|
}());
|
|
4713
4705
|
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,
|
|
4706
|
+
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] });
|
|
4707
|
+
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
4708
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyCheckboxModule, decorators: [{
|
|
4717
4709
|
type: i0.NgModule,
|
|
4718
4710
|
args: [{
|
|
4719
4711
|
declarations: [MonkeyCheckboxComponent],
|
|
4720
|
-
imports: [i1$1.CommonModule,
|
|
4712
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule],
|
|
4721
4713
|
exports: [MonkeyCheckboxComponent],
|
|
4722
4714
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
4723
4715
|
}]
|
|
@@ -4806,7 +4798,7 @@
|
|
|
4806
4798
|
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
4799
|
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
4800
|
{
|
|
4809
|
-
provide:
|
|
4801
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4810
4802
|
useExisting: i0.forwardRef(function () { return MonkeyRadioButtonComponent; }),
|
|
4811
4803
|
multi: true,
|
|
4812
4804
|
},
|
|
@@ -4819,7 +4811,7 @@
|
|
|
4819
4811
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4820
4812
|
providers: [
|
|
4821
4813
|
{
|
|
4822
|
-
provide:
|
|
4814
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
4823
4815
|
useExisting: i0.forwardRef(function () { return MonkeyRadioButtonComponent; }),
|
|
4824
4816
|
multi: true,
|
|
4825
4817
|
},
|
|
@@ -4853,12 +4845,12 @@
|
|
|
4853
4845
|
}());
|
|
4854
4846
|
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
4847
|
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
|
-
|
|
4848
|
+
i1$2.FormsModule,
|
|
4849
|
+
i1$2.ReactiveFormsModule], exports: [MonkeyRadioButtonComponent] });
|
|
4858
4850
|
MonkeyRadioButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonModule, imports: [[
|
|
4859
4851
|
i1$1.CommonModule,
|
|
4860
|
-
|
|
4861
|
-
|
|
4852
|
+
i1$2.FormsModule,
|
|
4853
|
+
i1$2.ReactiveFormsModule
|
|
4862
4854
|
]] });
|
|
4863
4855
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyRadioButtonModule, decorators: [{
|
|
4864
4856
|
type: i0.NgModule,
|
|
@@ -4868,8 +4860,8 @@
|
|
|
4868
4860
|
],
|
|
4869
4861
|
imports: [
|
|
4870
4862
|
i1$1.CommonModule,
|
|
4871
|
-
|
|
4872
|
-
|
|
4863
|
+
i1$2.FormsModule,
|
|
4864
|
+
i1$2.ReactiveFormsModule
|
|
4873
4865
|
],
|
|
4874
4866
|
exports: [
|
|
4875
4867
|
MonkeyRadioButtonComponent
|
|
@@ -5073,7 +5065,7 @@
|
|
|
5073
5065
|
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
5066
|
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
5067
|
{
|
|
5076
|
-
provide:
|
|
5068
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5077
5069
|
useExisting: i0.forwardRef(function () { return MonkeyFileUploadComponent; }),
|
|
5078
5070
|
multi: true,
|
|
5079
5071
|
},
|
|
@@ -5086,7 +5078,7 @@
|
|
|
5086
5078
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5087
5079
|
providers: [
|
|
5088
5080
|
{
|
|
5089
|
-
provide:
|
|
5081
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5090
5082
|
useExisting: i0.forwardRef(function () { return MonkeyFileUploadComponent; }),
|
|
5091
5083
|
multi: true,
|
|
5092
5084
|
},
|
|
@@ -5138,13 +5130,13 @@
|
|
|
5138
5130
|
}());
|
|
5139
5131
|
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
5132
|
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
|
-
|
|
5133
|
+
i1$2.FormsModule,
|
|
5134
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyIconModule], exports: [MonkeyFileUploadComponent] });
|
|
5143
5135
|
MonkeyFileUploadModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadModule, imports: [[
|
|
5144
5136
|
i1$1.CommonModule,
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
i1$
|
|
5137
|
+
i1$2.FormsModule,
|
|
5138
|
+
i1$2.ReactiveFormsModule,
|
|
5139
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5148
5140
|
MonkeyIconModule,
|
|
5149
5141
|
]] });
|
|
5150
5142
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyFileUploadModule, decorators: [{
|
|
@@ -5153,9 +5145,9 @@
|
|
|
5153
5145
|
declarations: [MonkeyFileUploadComponent],
|
|
5154
5146
|
imports: [
|
|
5155
5147
|
i1$1.CommonModule,
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
i1$
|
|
5148
|
+
i1$2.FormsModule,
|
|
5149
|
+
i1$2.ReactiveFormsModule,
|
|
5150
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5159
5151
|
MonkeyIconModule,
|
|
5160
5152
|
],
|
|
5161
5153
|
exports: [MonkeyFileUploadComponent],
|
|
@@ -5402,7 +5394,7 @@
|
|
|
5402
5394
|
};
|
|
5403
5395
|
return MonkeyImageCropComponent;
|
|
5404
5396
|
}());
|
|
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$
|
|
5397
|
+
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
5398
|
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
5399
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropComponent, decorators: [{
|
|
5408
5400
|
type: i0.Component,
|
|
@@ -5411,7 +5403,7 @@
|
|
|
5411
5403
|
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
5404
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5413
5405
|
}]
|
|
5414
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$
|
|
5406
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.DomSanitizer }]; }, propDecorators: { label: [{
|
|
5415
5407
|
type: i0.Input
|
|
5416
5408
|
}], cropTitle: [{
|
|
5417
5409
|
type: i0.Input
|
|
@@ -5458,14 +5450,14 @@
|
|
|
5458
5450
|
}());
|
|
5459
5451
|
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
5452
|
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
|
-
|
|
5453
|
+
i1$2.FormsModule,
|
|
5454
|
+
i1$2.ReactiveFormsModule, i1__namespace$3.NgxMaskModule, MonkeyButtonModule,
|
|
5463
5455
|
MonkeyFileUploadModule], exports: [MonkeyImageCropComponent] });
|
|
5464
5456
|
MonkeyImageCropModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyImageCropModule, imports: [[
|
|
5465
5457
|
i1$1.CommonModule,
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
i1$
|
|
5458
|
+
i1$2.FormsModule,
|
|
5459
|
+
i1$2.ReactiveFormsModule,
|
|
5460
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5469
5461
|
MonkeyButtonModule,
|
|
5470
5462
|
MonkeyFileUploadModule,
|
|
5471
5463
|
]] });
|
|
@@ -5475,9 +5467,9 @@
|
|
|
5475
5467
|
declarations: [MonkeyImageCropComponent],
|
|
5476
5468
|
imports: [
|
|
5477
5469
|
i1$1.CommonModule,
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
i1$
|
|
5470
|
+
i1$2.FormsModule,
|
|
5471
|
+
i1$2.ReactiveFormsModule,
|
|
5472
|
+
i1$3.NgxMaskModule.forRoot(),
|
|
5481
5473
|
MonkeyButtonModule,
|
|
5482
5474
|
MonkeyFileUploadModule,
|
|
5483
5475
|
],
|
|
@@ -5574,13 +5566,13 @@
|
|
|
5574
5566
|
return MonkeyModalModule;
|
|
5575
5567
|
}());
|
|
5576
5568
|
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,
|
|
5569
|
+
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] });
|
|
5570
|
+
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
5571
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyModalModule, decorators: [{
|
|
5580
5572
|
type: i0.NgModule,
|
|
5581
5573
|
args: [{
|
|
5582
5574
|
declarations: [MonkeyModalComponent],
|
|
5583
|
-
imports: [i1$1.CommonModule,
|
|
5575
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyButtonModule],
|
|
5584
5576
|
exports: [MonkeyModalComponent],
|
|
5585
5577
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
5586
5578
|
}]
|
|
@@ -5798,7 +5790,7 @@
|
|
|
5798
5790
|
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
5791
|
MonkeyTableColumnComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyTableColumnComponent, selector: "monkey-table-column", providers: [
|
|
5800
5792
|
{
|
|
5801
|
-
provide:
|
|
5793
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5802
5794
|
useExisting: i0.forwardRef(function () { return MonkeyTableColumnComponent; }),
|
|
5803
5795
|
multi: true,
|
|
5804
5796
|
},
|
|
@@ -5811,7 +5803,7 @@
|
|
|
5811
5803
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5812
5804
|
providers: [
|
|
5813
5805
|
{
|
|
5814
|
-
provide:
|
|
5806
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5815
5807
|
useExisting: i0.forwardRef(function () { return MonkeyTableColumnComponent; }),
|
|
5816
5808
|
multi: true,
|
|
5817
5809
|
},
|
|
@@ -5957,7 +5949,7 @@
|
|
|
5957
5949
|
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
5950
|
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
5951
|
{
|
|
5960
|
-
provide:
|
|
5952
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5961
5953
|
useExisting: i0.forwardRef(function () { return MonkeyTabComponent; }),
|
|
5962
5954
|
multi: true,
|
|
5963
5955
|
},
|
|
@@ -5970,7 +5962,7 @@
|
|
|
5970
5962
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5971
5963
|
providers: [
|
|
5972
5964
|
{
|
|
5973
|
-
provide:
|
|
5965
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
5974
5966
|
useExisting: i0.forwardRef(function () { return MonkeyTabComponent; }),
|
|
5975
5967
|
multi: true,
|
|
5976
5968
|
},
|
|
@@ -5993,13 +5985,13 @@
|
|
|
5993
5985
|
return MonkeyTabModule;
|
|
5994
5986
|
}());
|
|
5995
5987
|
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,
|
|
5988
|
+
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] });
|
|
5989
|
+
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
5990
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MonkeyTabModule, decorators: [{
|
|
5999
5991
|
type: i0.NgModule,
|
|
6000
5992
|
args: [{
|
|
6001
5993
|
declarations: [MonkeyTabComponent],
|
|
6002
|
-
imports: [i1$1.CommonModule,
|
|
5994
|
+
imports: [i1$1.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule, MonkeyOptionModule],
|
|
6003
5995
|
exports: [MonkeyTabComponent],
|
|
6004
5996
|
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
6005
5997
|
}]
|