monkey-style-guide 2.0.85 → 2.0.90
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/scss/partials/components/_date-range-picker.scss +4 -6
- package/assets/scss/partials/components/_index.scss +1 -0
- package/assets/scss/partials/components/_input-phone.scss +17 -0
- package/bundles/monkey-style-guide.umd.js +230 -20
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.js +13 -19
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.ngfactory.js +20 -21
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.ngsummary.json +1 -1
- package/esm2015/lib/components/date-range-picker/date-range-picker.module.ngfactory.js +1 -1
- package/esm2015/lib/components/date-range-picker/index.ngsummary.json +1 -1
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/index.ngsummary.json +1 -1
- package/esm2015/lib/components/input-phone/index.js +3 -0
- package/esm2015/lib/components/input-phone/index.ngsummary.json +1 -0
- package/esm2015/lib/components/input-phone/input-phone.component.js +205 -0
- package/esm2015/lib/components/input-phone/input-phone.component.ngfactory.js +27 -0
- package/esm2015/lib/components/input-phone/input-phone.component.ngsummary.json +1 -0
- package/esm2015/lib/components/input-phone/input-phone.module.js +25 -0
- package/esm2015/lib/components/input-phone/input-phone.module.ngfactory.js +18 -0
- package/esm2015/lib/components/input-phone/input-phone.module.ngsummary.json +1 -0
- package/esm2015/monkey-style-guide.ngsummary.json +1 -1
- package/esm2015/public-api.ngsummary.json +1 -1
- package/fesm2015/monkey-style-guide.js +229 -18
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input-phone/index.d.ts +2 -0
- package/lib/components/input-phone/input-phone.component.d.ts +61 -0
- package/lib/components/input-phone/input-phone.component.ngfactory.d.ts +1 -0
- package/lib/components/input-phone/input-phone.module.d.ts +2 -0
- package/lib/components/input-phone/input-phone.module.ngfactory.d.ts +3 -0
- package/monkey-style-guide-2.0.90.tgz +0 -0
- package/monkey-style-guide.metadata.json +1 -1
- package/package.json +3 -2
- package/monkey-style-guide-2.0.85.tgz +0 -0
|
@@ -12,7 +12,6 @@ monkey-date-range-picker {
|
|
|
12
12
|
display: flex;
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
width: 100%;
|
|
15
|
-
padding: 32px 36px;
|
|
16
15
|
|
|
17
16
|
@include media-breakpoint('xs') {
|
|
18
17
|
padding: 16px;
|
|
@@ -23,11 +22,6 @@ monkey-date-range-picker {
|
|
|
23
22
|
flex-direction: column;
|
|
24
23
|
width: 100%;
|
|
25
24
|
|
|
26
|
-
&.error {
|
|
27
|
-
border: 1px solid #fa3838;
|
|
28
|
-
padding: 4px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
25
|
mecx-date-range-picker-group-body {
|
|
32
26
|
display: flex;
|
|
33
27
|
width: 100%;
|
|
@@ -82,6 +76,10 @@ monkey-date-range-picker {
|
|
|
82
76
|
padding-top: 16px;
|
|
83
77
|
align-items: flex-end;
|
|
84
78
|
|
|
79
|
+
&.error {
|
|
80
|
+
border-top: 1px solid #fa3838;
|
|
81
|
+
}
|
|
82
|
+
|
|
85
83
|
.action-days > * {
|
|
86
84
|
margin-right: 24px;
|
|
87
85
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**************************
|
|
2
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
|
+
* This style guide was developed by Monkey Exchange Team
|
|
4
|
+
* MIT Licence
|
|
5
|
+
**************************/
|
|
6
|
+
@import '../variables';
|
|
7
|
+
@import '../breakpoints.scss';
|
|
8
|
+
|
|
9
|
+
monkey-input-phone {
|
|
10
|
+
mecx-form-field mecx-form-field-header {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
mecx-form-field mecx-form-field-footer {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('@angular/common'), require('@angular/forms'), require('rxjs/operators'), require('moment'), require('ngx-mask'), require('@angular/platform-browser')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('monkey-style-guide', ['exports', '@angular/core', '@angular/common/http', 'rxjs', '@angular/common', '@angular/forms', 'rxjs/operators', 'moment', 'ngx-mask', '@angular/platform-browser'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['monkey-style-guide'] = {}, global.ng.core, global.ng.common.http, global.rxjs, global.ng.common, global.ng.forms, global.rxjs.operators, global.moment, global['ngx-mask'], global.ng.platformBrowser));
|
|
5
|
-
}(this, (function (exports, core, http, rxjs, common, forms, operators, moment_, ngxMask, platformBrowser) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('@angular/common'), require('@angular/forms'), require('rxjs/operators'), require('moment'), require('ngx-mask'), require('google-libphonenumber'), require('@angular/platform-browser')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('monkey-style-guide', ['exports', '@angular/core', '@angular/common/http', 'rxjs', '@angular/common', '@angular/forms', 'rxjs/operators', 'moment', 'ngx-mask', 'google-libphonenumber', '@angular/platform-browser'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['monkey-style-guide'] = {}, global.ng.core, global.ng.common.http, global.rxjs, global.ng.common, global.ng.forms, global.rxjs.operators, global.moment, global['ngx-mask'], global['google-libphonenumber'], global.ng.platformBrowser));
|
|
5
|
+
}(this, (function (exports, core, http, rxjs, common, forms, operators, moment_, ngxMask, googleLibphonenumber, platformBrowser) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -2247,12 +2247,6 @@
|
|
|
2247
2247
|
];
|
|
2248
2248
|
|
|
2249
2249
|
var moment = moment___namespace;
|
|
2250
|
-
var ɵ0 = function () {
|
|
2251
|
-
var isMobileWidth = window.screen.width <= 640 ||
|
|
2252
|
-
(window.matchMedia && window.matchMedia('only screen and (max-width: 640px)').matches);
|
|
2253
|
-
return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|Mobile/i.test(navigator.userAgent) || isMobileWidth);
|
|
2254
|
-
};
|
|
2255
|
-
var isMobile = (ɵ0)();
|
|
2256
2250
|
var MonkeyDateRangePickerComponent = /** @class */ (function () {
|
|
2257
2251
|
function MonkeyDateRangePickerComponent(fb, cdr) {
|
|
2258
2252
|
this.fb = fb;
|
|
@@ -2310,9 +2304,7 @@
|
|
|
2310
2304
|
};
|
|
2311
2305
|
MonkeyDateRangePickerComponent.prototype.build = function () {
|
|
2312
2306
|
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2313
|
-
|
|
2314
|
-
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2315
|
-
}
|
|
2307
|
+
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2316
2308
|
};
|
|
2317
2309
|
MonkeyDateRangePickerComponent.prototype.navigateToToday = function () {
|
|
2318
2310
|
this._dateFirst = moment();
|
|
@@ -2333,10 +2325,13 @@
|
|
|
2333
2325
|
return this._dateForm.value;
|
|
2334
2326
|
},
|
|
2335
2327
|
set: function (value) {
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2328
|
+
if (Object.prototype.hasOwnProperty.call(value, 'startDate') &&
|
|
2329
|
+
Object.prototype.hasOwnProperty.call(value, 'endDate')) {
|
|
2330
|
+
this._dateForm.setValue(value);
|
|
2331
|
+
this.cdr.detectChanges();
|
|
2332
|
+
this.onModelChange(this._dateForm.value);
|
|
2333
|
+
this.onModelTouched(this._dateForm.value);
|
|
2334
|
+
}
|
|
2340
2335
|
},
|
|
2341
2336
|
enumerable: false,
|
|
2342
2337
|
configurable: true
|
|
@@ -2391,7 +2386,7 @@
|
|
|
2391
2386
|
var dayFormatted = day.format('YYYY-MM-DD');
|
|
2392
2387
|
if (_dateForm.valid) {
|
|
2393
2388
|
_dateForm.setValue({ startDate: null, endDate: null });
|
|
2394
|
-
this.writeValue(
|
|
2389
|
+
this.writeValue(_dateForm.value);
|
|
2395
2390
|
return;
|
|
2396
2391
|
}
|
|
2397
2392
|
if (!_dateForm.get('startDate').value) {
|
|
@@ -2416,7 +2411,7 @@
|
|
|
2416
2411
|
MonkeyDateRangePickerComponent.decorators = [
|
|
2417
2412
|
{ type: core.Component, args: [{
|
|
2418
2413
|
selector: 'monkey-date-range-picker',
|
|
2419
|
-
template: "\n <mecx-date-range-picker-group
|
|
2414
|
+
template: "\n <mecx-date-range-picker-group>\n <mecx-date-range-picker-group-body>\n <mecx-date-range-picker class=\"first-date-range\">\n <mecx-date-range-picker-header>\n <div class=\"calendar-title\">\n <monkey-button\n class=\"calendar-previous\"\n color=\"theme\"\n icon=\"arrow-left-16\"\n type=\"tertiary\"\n (click)=\"previousMonth()\"\n size=\"sm\"\n >\n </monkey-button>\n <div class=\"month-year-title\">\n {{ i18n?.months?.[_dateFirst.format('M')] }}\n {{ _dateFirst.format('YYYY') }}\n </div>\n <monkey-button\n class=\"calendar-next\"\n color=\"theme\"\n icon=\"arrow-right-16\"\n type=\"tertiary\"\n (click)=\"nextMonth()\"\n size=\"sm\"\n >\n </monkey-button>\n </div>\n <div class=\"week\">\n <span class=\"week-day\" *ngFor=\"let day of [1, 2, 3, 4, 5, 6, 7]\">\n {{ i18n?.days?.[day]}}\n </span>\n </div>\n </mecx-date-range-picker-header>\n <mecx-date-range-picker-body>\n <div class=\"month-week\" *ngFor=\"let week of _daysArrFirst\">\n <div\n class=\"month-day\"\n (click)=\"selectedDate(day)\"\n [ngClass]=\"{\n inactive: !day,\n selected: isSelected(day),\n today: todayCheck(day),\n 'first-selected': isFirstSelected(day),\n 'last-selected': isLastSelected(day)\n }\"\n *ngFor=\"let day of week\"\n #divOne\n >\n {{ day?.date() }}\n </div>\n </div>\n </mecx-date-range-picker-body>\n </mecx-date-range-picker>\n\n <mecx-date-range-picker class=\"second-date-range\">\n <mecx-date-range-picker-header>\n <div class=\"calendar-title\">\n <div class=\"month-year-title\">\n {{ i18n?.months?.[_dateSecond.format('M')] }}\n {{ _dateSecond.format('YYYY') }}\n </div>\n <monkey-button\n class=\"calendar-previous\"\n color=\"theme\"\n icon=\"arrow-right-16\"\n type=\"tertiary\"\n (click)=\"nextMonth()\"\n size=\"sm\"\n >\n </monkey-button>\n </div>\n <div class=\"week\">\n <span class=\"week-day\" *ngFor=\"let day of [1, 2, 3, 4, 5, 6, 7]\">\n {{ i18n?.days?.[day]}}\n </span>\n </div>\n </mecx-date-range-picker-header>\n <mecx-date-range-picker-body>\n <div class=\"month-week\" *ngFor=\"let week of _daysArrSecond\">\n <div\n class=\"month-day\"\n (click)=\"selectedDate(day)\"\n [ngClass]=\"{\n inactive: !day,\n selected: isSelected(day),\n today: todayCheck(day),\n 'first-selected': isFirstSelected(day),\n 'last-selected': isLastSelected(day)\n }\"\n *ngFor=\"let day of week\"\n >\n {{ day?.date() }}\n </div>\n </div>\n </mecx-date-range-picker-body>\n </mecx-date-range-picker>\n </mecx-date-range-picker-group-body>\n <mecx-date-range-picker-group-info>\n <info>\n {{ infoMessage }}\n </info>\n <error>\n {{ errorMessage }}\n </error>\n </mecx-date-range-picker-group-info>\n <mecx-date-range-picker-group-action [class.error]=\"errorMessage?.trim()\">\n <div class=\"action-days\">\n <monkey-button color=\"theme\" type=\"secondary\" (click)=\"selectRangeOfDays(30)\">\n {{ i18n?.actions?.['30'] }}\n </monkey-button>\n <monkey-button color=\"theme\" type=\"secondary\" (click)=\"selectRangeOfDays(60)\">\n {{ i18n?.actions?.['60'] }}\n </monkey-button>\n <monkey-button color=\"theme\" type=\"secondary\" (click)=\"selectRangeOfDays(90)\">\n {{ i18n?.actions?.['90'] }}\n </monkey-button>\n </div>\n <monkey-button color=\"theme\" type=\"primary\" (click)=\"navigateToToday()\">\n {{ i18n?.today }}\n </monkey-button>\n </mecx-date-range-picker-group-action>\n </mecx-date-range-picker-group>\n ",
|
|
2420
2415
|
encapsulation: core.ViewEncapsulation.None,
|
|
2421
2416
|
providers: [
|
|
2422
2417
|
{
|
|
@@ -2797,6 +2792,199 @@
|
|
|
2797
2792
|
},] }
|
|
2798
2793
|
];
|
|
2799
2794
|
|
|
2795
|
+
/**************************
|
|
2796
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
2797
|
+
* This style guide was developed by Monkey Exchange Team
|
|
2798
|
+
* MIT Licence
|
|
2799
|
+
**************************/
|
|
2800
|
+
var phoneUtil = googleLibphonenumber.PhoneNumberUtil.getInstance();
|
|
2801
|
+
var formatter = new googleLibphonenumber.AsYouTypeFormatter('US');
|
|
2802
|
+
var MonkeyInputPhoneComponent = /** @class */ (function () {
|
|
2803
|
+
function MonkeyInputPhoneComponent(currencyPipe, settingsService, cdr) {
|
|
2804
|
+
this.currencyPipe = currencyPipe;
|
|
2805
|
+
this.settingsService = settingsService;
|
|
2806
|
+
this.cdr = cdr;
|
|
2807
|
+
this.name = "mecx-input-phone-" + MonkeyUtils.getRandomString(10);
|
|
2808
|
+
this.helperMessage = '';
|
|
2809
|
+
this.placeholder = '';
|
|
2810
|
+
this.maxLength = 255;
|
|
2811
|
+
this.maxDateToday = false;
|
|
2812
|
+
this.onChange = new core.EventEmitter();
|
|
2813
|
+
this.onModelChange = function (value) { };
|
|
2814
|
+
this.onModelTouched = function (value) { };
|
|
2815
|
+
this._id = "mecx-input-phone-" + MonkeyUtils.getRandomString(10);
|
|
2816
|
+
this._disabled = false;
|
|
2817
|
+
this._maxDateToday = new Date().toISOString().split('T')[0];
|
|
2818
|
+
this._symbol = '';
|
|
2819
|
+
this._countryCodes = [];
|
|
2820
|
+
}
|
|
2821
|
+
MonkeyInputPhoneComponent.prototype.handleValue = function (value, apply) {
|
|
2822
|
+
if (apply === void 0) { apply = false; }
|
|
2823
|
+
if (this.onlyNumber) {
|
|
2824
|
+
return MonkeyUtils.handleOnlyNumbers("" + value);
|
|
2825
|
+
}
|
|
2826
|
+
else if (this.onlyAlphaNumeric)
|
|
2827
|
+
return MonkeyUtils.handleOnlyAlphaNumeric("" + value);
|
|
2828
|
+
else if (this.upperCase)
|
|
2829
|
+
return ("" + value).toUpperCase();
|
|
2830
|
+
else if (this.lowerCase)
|
|
2831
|
+
return ("" + value).toLowerCase();
|
|
2832
|
+
else if (this.capitalize)
|
|
2833
|
+
return MonkeyUtils.capitalize(("" + value).toUpperCase());
|
|
2834
|
+
else if (this.currency || this.percent) {
|
|
2835
|
+
return MonkeyUtils.handleOnlyNumbers("" + value) / (apply ? 100 : 1);
|
|
2836
|
+
}
|
|
2837
|
+
return value;
|
|
2838
|
+
};
|
|
2839
|
+
MonkeyInputPhoneComponent.prototype.replaceZero = function (value) {
|
|
2840
|
+
return ("" + value).replace(new RegExp(/0/, 'g'), '');
|
|
2841
|
+
};
|
|
2842
|
+
MonkeyInputPhoneComponent.prototype.formatValue = function (value) {
|
|
2843
|
+
//console.log(this.phoneUtil);
|
|
2844
|
+
//console.log(this.phoneUtil.formatInOriginalFormat(value, 'US'));
|
|
2845
|
+
//this.phoneUtil.inputDigit('2');
|
|
2846
|
+
console.log(formatter.inputDigit(value));
|
|
2847
|
+
var number = phoneUtil.parse(value, 'BR');
|
|
2848
|
+
console.log(phoneUtil.isPossibleNumber(number));
|
|
2849
|
+
console.log(phoneUtil.format(number, googleLibphonenumber.PhoneNumberFormat.INTERNATIONAL));
|
|
2850
|
+
return phoneUtil.format(number, googleLibphonenumber.PhoneNumberFormat.INTERNATIONAL);
|
|
2851
|
+
};
|
|
2852
|
+
MonkeyInputPhoneComponent.prototype.handleSymbol = function () {
|
|
2853
|
+
var _a;
|
|
2854
|
+
var settings = this.settings;
|
|
2855
|
+
if (this.currency) {
|
|
2856
|
+
this._symbol = {
|
|
2857
|
+
BRL: 'R$',
|
|
2858
|
+
CLP: 'CLP',
|
|
2859
|
+
}[((_a = settings === null || settings === void 0 ? void 0 : settings.currency) === null || _a === void 0 ? void 0 : _a.code) || 'BRL'];
|
|
2860
|
+
}
|
|
2861
|
+
else if (this.percent) {
|
|
2862
|
+
this._symbol = '%';
|
|
2863
|
+
}
|
|
2864
|
+
};
|
|
2865
|
+
MonkeyInputPhoneComponent.prototype.ngOnInit = function () {
|
|
2866
|
+
var _this = this;
|
|
2867
|
+
var settingsService = this.settingsService;
|
|
2868
|
+
this._oldType = this.type;
|
|
2869
|
+
settingsService.settings().subscribe(function (val) {
|
|
2870
|
+
_this.settings = val;
|
|
2871
|
+
_this.handleSymbol();
|
|
2872
|
+
});
|
|
2873
|
+
this._countryCodes = phoneUtil
|
|
2874
|
+
.getSupportedRegions()
|
|
2875
|
+
.map(function (code) {
|
|
2876
|
+
return phoneUtil.getCountryCodeForRegion(code);
|
|
2877
|
+
})
|
|
2878
|
+
.filter(function (v, i, a) { return a.indexOf(v) === i; })
|
|
2879
|
+
.sort(function (a, b) { return (a < b ? -1 : 1); });
|
|
2880
|
+
};
|
|
2881
|
+
MonkeyInputPhoneComponent.prototype.registerOnChange = function (fn) {
|
|
2882
|
+
this.onModelChange = fn;
|
|
2883
|
+
};
|
|
2884
|
+
MonkeyInputPhoneComponent.prototype.registerOnTouched = function (fn) {
|
|
2885
|
+
this.onModelTouched = fn;
|
|
2886
|
+
};
|
|
2887
|
+
MonkeyInputPhoneComponent.prototype.setDisabledState = function (isDisabled) {
|
|
2888
|
+
this._disabled = isDisabled;
|
|
2889
|
+
};
|
|
2890
|
+
Object.defineProperty(MonkeyInputPhoneComponent.prototype, "value", {
|
|
2891
|
+
get: function () {
|
|
2892
|
+
return this.handledValue;
|
|
2893
|
+
},
|
|
2894
|
+
set: function (value) {
|
|
2895
|
+
this.handledValue = value;
|
|
2896
|
+
this._formatedValue = this.formatValue(value);
|
|
2897
|
+
this.cdr.detectChanges();
|
|
2898
|
+
this.onModelChange(this.handledValue);
|
|
2899
|
+
this.onModelTouched(this.handledValue);
|
|
2900
|
+
},
|
|
2901
|
+
enumerable: false,
|
|
2902
|
+
configurable: true
|
|
2903
|
+
});
|
|
2904
|
+
MonkeyInputPhoneComponent.prototype.writeValue = function (value) {
|
|
2905
|
+
this.value = value;
|
|
2906
|
+
};
|
|
2907
|
+
MonkeyInputPhoneComponent.prototype.onChangeValue = function (event) {
|
|
2908
|
+
var value = this._formatedValue;
|
|
2909
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
2910
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
2911
|
+
var handled = this.handleValue(value, true);
|
|
2912
|
+
this.writeValue(handled);
|
|
2913
|
+
this.onChange.next(handled);
|
|
2914
|
+
};
|
|
2915
|
+
MonkeyInputPhoneComponent.prototype.onShowAndHidePassword = function () {
|
|
2916
|
+
this.type = this.type === 'password' ? 'text' : 'password';
|
|
2917
|
+
};
|
|
2918
|
+
MonkeyInputPhoneComponent.prototype.onClick = function () {
|
|
2919
|
+
var _a, _b, _c;
|
|
2920
|
+
(_c = (_b = (_a = document === null || document === void 0 ? void 0 : document.getElementById(this._id)) === null || _a === void 0 ? void 0 : _a.getElementsByTagName('input')) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
2921
|
+
};
|
|
2922
|
+
MonkeyInputPhoneComponent.prototype.onKeyPress = function (event) {
|
|
2923
|
+
var _a;
|
|
2924
|
+
var pattern = null;
|
|
2925
|
+
var cmp = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
2926
|
+
var inputChar = String.fromCharCode(event.charCode);
|
|
2927
|
+
if (this.currency || this.onlyNumber || this.percent) {
|
|
2928
|
+
pattern = /[0-9]/;
|
|
2929
|
+
if (inputChar === '0' && !this.replaceZero(cmp)) {
|
|
2930
|
+
event.preventDefault();
|
|
2931
|
+
return;
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
else if (this.onlyAlphaNumeric) {
|
|
2935
|
+
pattern = /[^0-9A-Za-z]/;
|
|
2936
|
+
}
|
|
2937
|
+
if (pattern && !pattern.test(inputChar)) {
|
|
2938
|
+
event.preventDefault();
|
|
2939
|
+
}
|
|
2940
|
+
};
|
|
2941
|
+
return MonkeyInputPhoneComponent;
|
|
2942
|
+
}());
|
|
2943
|
+
MonkeyInputPhoneComponent.decorators = [
|
|
2944
|
+
{ type: core.Component, args: [{
|
|
2945
|
+
selector: 'monkey-input-phone',
|
|
2946
|
+
template: "\n <monkey-select\n [label]=\"'teste'\"\n errorMessage=\"\"\n errorMessage=\"\"\n [placeholder]=\"'Selecione um banco'\"\n >\n <monkey-option label=\"op\" value=\"op\"> </monkey-option>\n <monkey-option label=\"op\" value=\"op\"> </monkey-option>\n <monkey-option label=\"op\" value=\"op\"> </monkey-option>\n </monkey-select>\n ",
|
|
2947
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
2948
|
+
providers: [
|
|
2949
|
+
{
|
|
2950
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
2951
|
+
useExisting: core.forwardRef(function () { return MonkeyInputPhoneComponent; }),
|
|
2952
|
+
multi: true,
|
|
2953
|
+
},
|
|
2954
|
+
common.CurrencyPipe,
|
|
2955
|
+
]
|
|
2956
|
+
},] }
|
|
2957
|
+
];
|
|
2958
|
+
MonkeyInputPhoneComponent.ctorParameters = function () { return [
|
|
2959
|
+
{ type: common.CurrencyPipe },
|
|
2960
|
+
{ type: MonkeyStyleGuideSettingsService },
|
|
2961
|
+
{ type: core.ChangeDetectorRef }
|
|
2962
|
+
]; };
|
|
2963
|
+
MonkeyInputPhoneComponent.propDecorators = {
|
|
2964
|
+
name: [{ type: core.Input }],
|
|
2965
|
+
label: [{ type: core.Input }],
|
|
2966
|
+
helperMessage: [{ type: core.Input }],
|
|
2967
|
+
placeholder: [{ type: core.Input }],
|
|
2968
|
+
icon: [{ type: core.Input }],
|
|
2969
|
+
type: [{ type: core.Input }],
|
|
2970
|
+
infoMessage: [{ type: core.Input }],
|
|
2971
|
+
errorMessage: [{ type: core.Input }],
|
|
2972
|
+
mask: [{ type: core.Input }],
|
|
2973
|
+
prefix: [{ type: core.Input }],
|
|
2974
|
+
maxLength: [{ type: core.Input }],
|
|
2975
|
+
onlyNumber: [{ type: core.Input }],
|
|
2976
|
+
onlyAlphaNumeric: [{ type: core.Input }],
|
|
2977
|
+
upperCase: [{ type: core.Input }],
|
|
2978
|
+
lowerCase: [{ type: core.Input }],
|
|
2979
|
+
capitalize: [{ type: core.Input }],
|
|
2980
|
+
currency: [{ type: core.Input }],
|
|
2981
|
+
percent: [{ type: core.Input }],
|
|
2982
|
+
maxDateToday: [{ type: core.Input }],
|
|
2983
|
+
onChange: [{ type: core.Output }],
|
|
2984
|
+
value: [{ type: core.Input }],
|
|
2985
|
+
onClick: [{ type: core.HostListener, args: ['click',] }]
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2800
2988
|
/**************************
|
|
2801
2989
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
2802
2990
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -3604,6 +3792,27 @@
|
|
|
3604
3792
|
},] }
|
|
3605
3793
|
];
|
|
3606
3794
|
|
|
3795
|
+
var MonkeyInputPhoneModule = /** @class */ (function () {
|
|
3796
|
+
function MonkeyInputPhoneModule() {
|
|
3797
|
+
}
|
|
3798
|
+
return MonkeyInputPhoneModule;
|
|
3799
|
+
}());
|
|
3800
|
+
MonkeyInputPhoneModule.decorators = [
|
|
3801
|
+
{ type: core.NgModule, args: [{
|
|
3802
|
+
declarations: [MonkeyInputPhoneComponent],
|
|
3803
|
+
imports: [
|
|
3804
|
+
common.CommonModule,
|
|
3805
|
+
forms.FormsModule,
|
|
3806
|
+
forms.ReactiveFormsModule,
|
|
3807
|
+
ngxMask.NgxMaskModule.forRoot(),
|
|
3808
|
+
MonkeyIconModule,
|
|
3809
|
+
MonkeySelectModule,
|
|
3810
|
+
],
|
|
3811
|
+
exports: [MonkeyInputPhoneComponent],
|
|
3812
|
+
schemas: [core.NO_ERRORS_SCHEMA],
|
|
3813
|
+
},] }
|
|
3814
|
+
];
|
|
3815
|
+
|
|
3607
3816
|
/**************************
|
|
3608
3817
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
3609
3818
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -4978,6 +5187,8 @@
|
|
|
4978
5187
|
exports.MonkeyInputComponent = MonkeyInputComponent;
|
|
4979
5188
|
exports.MonkeyInputFilterComponent = MonkeyInputFilterComponent;
|
|
4980
5189
|
exports.MonkeyInputModule = MonkeyInputModule;
|
|
5190
|
+
exports.MonkeyInputPhoneComponent = MonkeyInputPhoneComponent;
|
|
5191
|
+
exports.MonkeyInputPhoneModule = MonkeyInputPhoneModule;
|
|
4981
5192
|
exports.MonkeyModalComponent = MonkeyModalComponent;
|
|
4982
5193
|
exports.MonkeyModalModule = MonkeyModalModule;
|
|
4983
5194
|
exports.MonkeyOptionComponent = MonkeyOptionComponent;
|
|
@@ -5006,7 +5217,6 @@
|
|
|
5006
5217
|
exports.MonkeyUtils = MonkeyUtils;
|
|
5007
5218
|
exports.MonkeyWizardComponent = MonkeyWizardComponent;
|
|
5008
5219
|
exports.MonkeyWizardModule = MonkeyWizardModule;
|
|
5009
|
-
exports.ɵ0 = ɵ0;
|
|
5010
5220
|
exports.ɵa = MonkeyStyleGuideService;
|
|
5011
5221
|
exports.ɵb = MonkeyStyleGuideSettingsService;
|
|
5012
5222
|
exports.ɵc = MonkeyStyleGuideThemeSettingsService;
|