monkey-style-guide 2.0.84 → 2.0.89
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/README.md +1 -1
- package/assets/scss/partials/components/_buttons.scss +5 -5
- package/assets/scss/partials/components/_date-range-picker.scss +203 -0
- package/assets/scss/partials/components/_index.scss +2 -0
- package/assets/scss/partials/components/_input-phone.scss +17 -0
- package/bundles/monkey-style-guide.umd.js +457 -5
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/badge/badge.component.ngfactory.js +17 -0
- package/esm2015/lib/components/badge/badge.component.ngsummary.json +1 -0
- package/esm2015/lib/components/badge/badge.module.ngfactory.js +12 -0
- package/esm2015/lib/components/badge/badge.module.ngsummary.json +1 -0
- package/esm2015/lib/components/badge/index.ngsummary.json +1 -0
- package/esm2015/lib/components/button/button-avatar.component.ngfactory.js +19 -0
- package/esm2015/lib/components/button/button-avatar.component.ngsummary.json +1 -0
- package/esm2015/lib/components/button/button-dropdown.component.ngfactory.js +39 -0
- package/esm2015/lib/components/button/button-dropdown.component.ngsummary.json +1 -0
- package/esm2015/lib/components/button/button.component.ngfactory.js +31 -0
- package/esm2015/lib/components/button/button.component.ngsummary.json +1 -0
- package/esm2015/lib/components/button/button.module.ngfactory.js +14 -0
- package/esm2015/lib/components/button/button.module.ngsummary.json +1 -0
- package/esm2015/lib/components/button/index.ngsummary.json +1 -0
- package/esm2015/lib/components/checkbox/checkbox.component.ngfactory.js +38 -0
- package/esm2015/lib/components/checkbox/checkbox.component.ngsummary.json +1 -0
- package/esm2015/lib/components/checkbox/checkbox.module.ngfactory.js +13 -0
- package/esm2015/lib/components/checkbox/checkbox.module.ngsummary.json +1 -0
- package/esm2015/lib/components/checkbox/index.ngsummary.json +1 -0
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.js +326 -0
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.ngfactory.js +75 -0
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.ngsummary.json +1 -0
- package/esm2015/lib/components/date-range-picker/date-range-picker.module.js +17 -0
- package/esm2015/lib/components/date-range-picker/date-range-picker.module.ngfactory.js +15 -0
- package/esm2015/lib/components/date-range-picker/date-range-picker.module.ngsummary.json +1 -0
- package/esm2015/lib/components/date-range-picker/index.js +3 -0
- package/esm2015/lib/components/date-range-picker/index.ngsummary.json +1 -0
- package/esm2015/lib/components/expansion/expansion.component.ngfactory.js +35 -0
- package/esm2015/lib/components/expansion/expansion.component.ngsummary.json +1 -0
- package/esm2015/lib/components/expansion/expansion.module.ngfactory.js +13 -0
- package/esm2015/lib/components/expansion/expansion.module.ngsummary.json +1 -0
- package/esm2015/lib/components/expansion/index.ngsummary.json +1 -0
- package/esm2015/lib/components/file-upload/file-upload.component.ngfactory.js +39 -0
- package/esm2015/lib/components/file-upload/file-upload.component.ngsummary.json +1 -0
- package/esm2015/lib/components/file-upload/file-upload.module.ngfactory.js +15 -0
- package/esm2015/lib/components/file-upload/file-upload.module.ngsummary.json +1 -0
- package/esm2015/lib/components/file-upload/index.ngsummary.json +1 -0
- package/esm2015/lib/components/icon/icon.component.ngfactory.js +88 -0
- package/esm2015/lib/components/icon/icon.component.ngsummary.json +1 -0
- package/esm2015/lib/components/icon/icon.module.ngfactory.js +12 -0
- package/esm2015/lib/components/icon/icon.module.ngsummary.json +1 -0
- package/esm2015/lib/components/icon/icons.component.ngfactory.js +465 -0
- package/esm2015/lib/components/icon/icons.component.ngsummary.json +1 -0
- package/esm2015/lib/components/icon/index.ngsummary.json +1 -0
- package/esm2015/lib/components/image-crop/image-crop.component.ngfactory.js +108 -0
- package/esm2015/lib/components/image-crop/image-crop.component.ngsummary.json +1 -0
- package/esm2015/lib/components/image-crop/image-crop.module.ngfactory.js +17 -0
- package/esm2015/lib/components/image-crop/image-crop.module.ngsummary.json +1 -0
- package/esm2015/lib/components/image-crop/index.ngsummary.json +1 -0
- package/esm2015/lib/components/index.js +3 -1
- package/esm2015/lib/components/index.ngsummary.json +1 -0
- package/esm2015/lib/components/input/index.ngsummary.json +1 -0
- package/esm2015/lib/components/input/input-filter.component.ngfactory.js +129 -0
- package/esm2015/lib/components/input/input-filter.component.ngsummary.json +1 -0
- package/esm2015/lib/components/input/input.component.ngfactory.js +139 -0
- package/esm2015/lib/components/input/input.component.ngsummary.json +1 -0
- package/esm2015/lib/components/input/input.module.ngfactory.js +15 -0
- package/esm2015/lib/components/input/input.module.ngsummary.json +1 -0
- 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/lib/components/modal/index.ngsummary.json +1 -0
- package/esm2015/lib/components/modal/modal.component.ngfactory.js +61 -0
- package/esm2015/lib/components/modal/modal.component.ngsummary.json +1 -0
- package/esm2015/lib/components/modal/modal.module.ngfactory.js +15 -0
- package/esm2015/lib/components/modal/modal.module.ngsummary.json +1 -0
- package/esm2015/lib/components/option/index.ngsummary.json +1 -0
- package/esm2015/lib/components/option/option.component.ngfactory.js +24 -0
- package/esm2015/lib/components/option/option.component.ngsummary.json +1 -0
- package/esm2015/lib/components/option/option.module.ngfactory.js +12 -0
- package/esm2015/lib/components/option/option.module.ngsummary.json +1 -0
- package/esm2015/lib/components/radiobutton/index.ngsummary.json +1 -0
- package/esm2015/lib/components/radiobutton/radiobutton.component.ngfactory.js +18 -0
- package/esm2015/lib/components/radiobutton/radiobutton.component.ngsummary.json +1 -0
- package/esm2015/lib/components/radiobutton/radiobutton.module.ngfactory.js +13 -0
- package/esm2015/lib/components/radiobutton/radiobutton.module.ngsummary.json +1 -0
- package/esm2015/lib/components/select/index.ngsummary.json +1 -0
- package/esm2015/lib/components/select/select-filter.component.ngfactory.js +30 -0
- package/esm2015/lib/components/select/select-filter.component.ngsummary.json +1 -0
- package/esm2015/lib/components/select/select-multiple.component.ngfactory.js +33 -0
- package/esm2015/lib/components/select/select-multiple.component.ngsummary.json +1 -0
- package/esm2015/lib/components/select/select-search.component.ngfactory.js +48 -0
- package/esm2015/lib/components/select/select-search.component.ngsummary.json +1 -0
- package/esm2015/lib/components/select/select.component.ngfactory.js +33 -0
- package/esm2015/lib/components/select/select.component.ngsummary.json +1 -0
- package/esm2015/lib/components/select/select.module.ngfactory.js +17 -0
- package/esm2015/lib/components/select/select.module.ngsummary.json +1 -0
- package/esm2015/lib/components/stepper/index.ngsummary.json +1 -0
- package/esm2015/lib/components/stepper/stepper.component.ngfactory.js +18 -0
- package/esm2015/lib/components/stepper/stepper.component.ngsummary.json +1 -0
- package/esm2015/lib/components/stepper/stepper.module.ngfactory.js +13 -0
- package/esm2015/lib/components/stepper/stepper.module.ngsummary.json +1 -0
- package/esm2015/lib/components/tab/index.ngsummary.json +1 -0
- package/esm2015/lib/components/tab/tab.component.ngfactory.js +18 -0
- package/esm2015/lib/components/tab/tab.component.ngsummary.json +1 -0
- package/esm2015/lib/components/tab/tab.module.ngfactory.js +14 -0
- package/esm2015/lib/components/tab/tab.module.ngsummary.json +1 -0
- package/esm2015/lib/components/table/index.ngsummary.json +1 -0
- package/esm2015/lib/components/table/table-column.component.ngfactory.js +17 -0
- package/esm2015/lib/components/table/table-column.component.ngsummary.json +1 -0
- package/esm2015/lib/components/table/table.component.ngfactory.js +33 -0
- package/esm2015/lib/components/table/table.component.ngsummary.json +1 -0
- package/esm2015/lib/components/table/table.module.ngfactory.js +15 -0
- package/esm2015/lib/components/table/table.module.ngsummary.json +1 -0
- package/esm2015/lib/components/toggle/index.ngsummary.json +1 -0
- package/esm2015/lib/components/toggle/toggle.component.ngfactory.js +20 -0
- package/esm2015/lib/components/toggle/toggle.component.ngsummary.json +1 -0
- package/esm2015/lib/components/toggle/toggle.module.ngfactory.js +12 -0
- package/esm2015/lib/components/toggle/toggle.module.ngsummary.json +1 -0
- package/esm2015/lib/components/wizard/index.ngsummary.json +1 -0
- package/esm2015/lib/components/wizard/wizard.component.ngfactory.js +18 -0
- package/esm2015/lib/components/wizard/wizard.component.ngsummary.json +1 -0
- package/esm2015/lib/components/wizard/wizard.module.ngfactory.js +13 -0
- package/esm2015/lib/components/wizard/wizard.module.ngsummary.json +1 -0
- package/esm2015/lib/core/index.ngsummary.json +1 -0
- package/esm2015/lib/core/interfaces/index.ngsummary.json +1 -0
- package/esm2015/lib/core/interfaces/monkey-modal-settings.ngsummary.json +1 -0
- package/esm2015/lib/core/interfaces/monkey-style-settings.ngsummary.json +1 -0
- package/esm2015/lib/core/services/index.ngsummary.json +1 -0
- package/esm2015/lib/core/services/modal/index.ngsummary.json +1 -0
- package/esm2015/lib/core/services/modal/monkey-style-guide-modal-fixed.service.ngsummary.json +1 -0
- package/esm2015/lib/core/services/modal/monkey-style-guide-modal.service.ngsummary.json +1 -0
- package/esm2015/lib/core/services/monkey-style-guide.service.js +3 -3
- package/esm2015/lib/core/services/monkey-style-guide.service.ngsummary.json +1 -0
- package/esm2015/lib/core/services/settings/index.ngsummary.json +1 -0
- package/esm2015/lib/core/services/settings/monkey-style-guide-settings.service.js +2 -2
- package/esm2015/lib/core/services/settings/monkey-style-guide-settings.service.ngsummary.json +1 -0
- package/esm2015/lib/core/services/settings/monkey-style-guide-theme-settings.service.ngsummary.json +1 -0
- package/esm2015/lib/core/services/snackbar/index.ngsummary.json +1 -0
- package/esm2015/lib/core/services/snackbar/mokey-style-guide-snackbar.service.ngsummary.json +1 -0
- package/esm2015/lib/core/utils/index.ngsummary.json +1 -0
- package/esm2015/lib/core/utils/utils.ngsummary.json +1 -0
- package/esm2015/lib/monkey-style-guide.module.ngfactory.js +17 -0
- package/esm2015/lib/monkey-style-guide.module.ngsummary.json +1 -0
- package/esm2015/monkey-style-guide.ngsummary.json +1 -0
- package/esm2015/public-api.ngsummary.json +1 -0
- package/fesm2015/monkey-style-guide.js +551 -3
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/lib/components/badge/badge.component.ngfactory.d.ts +1 -0
- package/lib/components/badge/badge.module.ngfactory.d.ts +3 -0
- package/lib/components/button/button-avatar.component.ngfactory.d.ts +1 -0
- package/lib/components/button/button-dropdown.component.ngfactory.d.ts +1 -0
- package/lib/components/button/button.component.ngfactory.d.ts +1 -0
- package/lib/components/button/button.module.ngfactory.d.ts +3 -0
- package/lib/components/checkbox/checkbox.component.ngfactory.d.ts +1 -0
- package/lib/components/checkbox/checkbox.module.ngfactory.d.ts +3 -0
- package/lib/components/date-range-picker/date-range-picker.component.d.ts +50 -0
- package/lib/components/date-range-picker/date-range-picker.component.ngfactory.d.ts +1 -0
- package/lib/components/date-range-picker/date-range-picker.module.d.ts +2 -0
- package/lib/components/date-range-picker/date-range-picker.module.ngfactory.d.ts +3 -0
- package/lib/components/date-range-picker/index.d.ts +2 -0
- package/lib/components/expansion/expansion.component.ngfactory.d.ts +1 -0
- package/lib/components/expansion/expansion.module.ngfactory.d.ts +3 -0
- package/lib/components/file-upload/file-upload.component.ngfactory.d.ts +1 -0
- package/lib/components/file-upload/file-upload.module.ngfactory.d.ts +3 -0
- package/lib/components/icon/icon.component.ngfactory.d.ts +1 -0
- package/lib/components/icon/icon.module.ngfactory.d.ts +3 -0
- package/lib/components/icon/icons.component.ngfactory.d.ts +1 -0
- package/lib/components/image-crop/image-crop.component.ngfactory.d.ts +1 -0
- package/lib/components/image-crop/image-crop.module.ngfactory.d.ts +3 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/input/input-filter.component.ngfactory.d.ts +1 -0
- package/lib/components/input/input.component.ngfactory.d.ts +1 -0
- package/lib/components/input/input.module.ngfactory.d.ts +3 -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/lib/components/modal/modal.component.ngfactory.d.ts +1 -0
- package/lib/components/modal/modal.module.ngfactory.d.ts +3 -0
- package/lib/components/option/option.component.ngfactory.d.ts +1 -0
- package/lib/components/option/option.module.ngfactory.d.ts +3 -0
- package/lib/components/radiobutton/radiobutton.component.ngfactory.d.ts +1 -0
- package/lib/components/radiobutton/radiobutton.module.ngfactory.d.ts +3 -0
- package/lib/components/select/select-filter.component.ngfactory.d.ts +1 -0
- package/lib/components/select/select-multiple.component.ngfactory.d.ts +1 -0
- package/lib/components/select/select-search.component.ngfactory.d.ts +1 -0
- package/lib/components/select/select.component.ngfactory.d.ts +1 -0
- package/lib/components/select/select.module.ngfactory.d.ts +3 -0
- package/lib/components/stepper/stepper.component.ngfactory.d.ts +1 -0
- package/lib/components/stepper/stepper.module.ngfactory.d.ts +3 -0
- package/lib/components/tab/tab.component.ngfactory.d.ts +1 -0
- package/lib/components/tab/tab.module.ngfactory.d.ts +3 -0
- package/lib/components/table/table-column.component.ngfactory.d.ts +1 -0
- package/lib/components/table/table.component.ngfactory.d.ts +1 -0
- package/lib/components/table/table.module.ngfactory.d.ts +3 -0
- package/lib/components/toggle/toggle.component.ngfactory.d.ts +1 -0
- package/lib/components/toggle/toggle.module.ngfactory.d.ts +3 -0
- package/lib/components/wizard/wizard.component.ngfactory.d.ts +1 -0
- package/lib/components/wizard/wizard.module.ngfactory.d.ts +3 -0
- package/lib/core/services/monkey-style-guide.service.d.ts +2 -2
- package/lib/monkey-style-guide.module.ngfactory.d.ts +3 -0
- package/monkey-style-guide-2.0.89.tgz +0 -0
- package/monkey-style-guide.metadata.json +1 -1
- package/package.json +4 -2
- package/monkey-style-guide-2.0.84.tgz +0 -0
|
@@ -2,9 +2,11 @@ import { Injectable, Inject, ComponentFactoryResolver, ApplicationRef, Injector,
|
|
|
2
2
|
import { HttpClient, HttpClientModule } from '@angular/common/http';
|
|
3
3
|
import { BehaviorSubject, throwError, Subject } from 'rxjs';
|
|
4
4
|
import { DOCUMENT, Location, CommonModule, CurrencyPipe } from '@angular/common';
|
|
5
|
-
import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule, Validators, NG_VALUE_ACCESSOR, FormBuilder } from '@angular/forms';
|
|
6
6
|
import { takeUntil } from 'rxjs/operators';
|
|
7
|
+
import * as moment_ from 'moment';
|
|
7
8
|
import { NgxMaskModule } from 'ngx-mask';
|
|
9
|
+
import { PhoneNumberUtil, AsYouTypeFormatter, PhoneNumberFormat } from 'google-libphonenumber';
|
|
8
10
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
9
11
|
|
|
10
12
|
class MonkeyStyleGuideService {
|
|
@@ -91,7 +93,7 @@ MonkeyStyleGuideThemeSettingsService.ctorParameters = () => [
|
|
|
91
93
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
92
94
|
* This style guide was developed by Monkey Exchange Team
|
|
93
95
|
* MIT Licence
|
|
94
|
-
**************************/
|
|
96
|
+
**************************/
|
|
95
97
|
class MonkeyStyleGuideSettingsService {
|
|
96
98
|
constructor(monkeySGService, monkeySGThemeConfigService) {
|
|
97
99
|
this.monkeySGService = monkeySGService;
|
|
@@ -2039,6 +2041,337 @@ MonkeyButtonModule.decorators = [
|
|
|
2039
2041
|
},] }
|
|
2040
2042
|
];
|
|
2041
2043
|
|
|
2044
|
+
/**************************
|
|
2045
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
2046
|
+
* This style guide was developed by Monkey Exchange Team
|
|
2047
|
+
* MIT Licence
|
|
2048
|
+
**************************/
|
|
2049
|
+
const moment = moment_;
|
|
2050
|
+
const ɵ0 = () => {
|
|
2051
|
+
const isMobileWidth = window.screen.width <= 640 ||
|
|
2052
|
+
(window.matchMedia && window.matchMedia('only screen and (max-width: 640px)').matches);
|
|
2053
|
+
return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|Mobile/i.test(navigator.userAgent) || isMobileWidth);
|
|
2054
|
+
};
|
|
2055
|
+
const isMobile = (ɵ0)();
|
|
2056
|
+
class MonkeyDateRangePickerComponent {
|
|
2057
|
+
constructor(fb, cdr) {
|
|
2058
|
+
this.fb = fb;
|
|
2059
|
+
this.cdr = cdr;
|
|
2060
|
+
this.onChange = new EventEmitter();
|
|
2061
|
+
this.today = moment().format('YYYY-MM-DD');
|
|
2062
|
+
this.onModelChange = (value) => { };
|
|
2063
|
+
this.onModelTouched = (value) => { };
|
|
2064
|
+
this._dateFirst = moment();
|
|
2065
|
+
this._dateSecond = moment().add(1, 'M');
|
|
2066
|
+
this._id = `mecx-date-range-picker-${MonkeyUtils.getRandomString(10)}`;
|
|
2067
|
+
this._daysArrFirst = [];
|
|
2068
|
+
this._daysArrSecond = [];
|
|
2069
|
+
this.initDateRange();
|
|
2070
|
+
}
|
|
2071
|
+
initDateRange() {
|
|
2072
|
+
return (this._dateForm = this.fb.group({
|
|
2073
|
+
startDate: [null, Validators.required],
|
|
2074
|
+
endDate: [null, Validators.required],
|
|
2075
|
+
}));
|
|
2076
|
+
}
|
|
2077
|
+
createCalendar(month) {
|
|
2078
|
+
let firstDay = moment(month).startOf('M');
|
|
2079
|
+
let lastDay = moment(month).endOf('M');
|
|
2080
|
+
let days = Array.apply(null, { length: month.daysInMonth() })
|
|
2081
|
+
.map(Number.call, Number)
|
|
2082
|
+
.map((n) => {
|
|
2083
|
+
return moment(firstDay).add(n, 'd');
|
|
2084
|
+
});
|
|
2085
|
+
let n = 0;
|
|
2086
|
+
while (n < firstDay.weekday()) {
|
|
2087
|
+
days.unshift(null);
|
|
2088
|
+
n++;
|
|
2089
|
+
}
|
|
2090
|
+
n = 0;
|
|
2091
|
+
while (n < 7 - lastDay.weekday()) {
|
|
2092
|
+
days.push(null);
|
|
2093
|
+
n++;
|
|
2094
|
+
}
|
|
2095
|
+
let index = 1;
|
|
2096
|
+
let group = [];
|
|
2097
|
+
let grouped = [];
|
|
2098
|
+
Object.entries(days).map(([key, value]) => {
|
|
2099
|
+
if (index > 7) {
|
|
2100
|
+
index = 1;
|
|
2101
|
+
grouped.push(group);
|
|
2102
|
+
group = [];
|
|
2103
|
+
}
|
|
2104
|
+
group.push(value);
|
|
2105
|
+
index++;
|
|
2106
|
+
});
|
|
2107
|
+
grouped.push(group);
|
|
2108
|
+
return grouped;
|
|
2109
|
+
}
|
|
2110
|
+
build() {
|
|
2111
|
+
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2112
|
+
if (!isMobile) {
|
|
2113
|
+
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
navigateToToday() {
|
|
2117
|
+
this._dateFirst = moment();
|
|
2118
|
+
this._dateSecond = moment().add(1, 'M');
|
|
2119
|
+
this.build();
|
|
2120
|
+
}
|
|
2121
|
+
ngOnInit() {
|
|
2122
|
+
this.build();
|
|
2123
|
+
}
|
|
2124
|
+
registerOnChange(fn) {
|
|
2125
|
+
this.onModelChange = fn;
|
|
2126
|
+
}
|
|
2127
|
+
registerOnTouched(fn) {
|
|
2128
|
+
this.onModelTouched = fn;
|
|
2129
|
+
}
|
|
2130
|
+
set value(value) {
|
|
2131
|
+
if (Object.prototype.hasOwnProperty.call(value, 'startDate') &&
|
|
2132
|
+
Object.prototype.hasOwnProperty.call(value, 'endDate')) {
|
|
2133
|
+
this._dateForm.setValue(value);
|
|
2134
|
+
this.cdr.detectChanges();
|
|
2135
|
+
this.onModelChange(this._dateForm.value);
|
|
2136
|
+
this.onModelTouched(this._dateForm.value);
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
get value() {
|
|
2140
|
+
return this._dateForm.value;
|
|
2141
|
+
}
|
|
2142
|
+
writeValue(value) {
|
|
2143
|
+
this.value = value;
|
|
2144
|
+
this.onChange.next(value);
|
|
2145
|
+
}
|
|
2146
|
+
nextMonth() {
|
|
2147
|
+
this._dateFirst.add(1, 'M');
|
|
2148
|
+
this._dateSecond.add(1, 'M');
|
|
2149
|
+
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2150
|
+
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2151
|
+
}
|
|
2152
|
+
previousMonth() {
|
|
2153
|
+
this._dateFirst.subtract(1, 'M');
|
|
2154
|
+
this._dateSecond.subtract(1, 'M');
|
|
2155
|
+
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2156
|
+
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2157
|
+
}
|
|
2158
|
+
todayCheck(day) {
|
|
2159
|
+
if (!day) {
|
|
2160
|
+
return false;
|
|
2161
|
+
}
|
|
2162
|
+
return moment().format('L') === day.format('L');
|
|
2163
|
+
}
|
|
2164
|
+
isSelected(day) {
|
|
2165
|
+
if (!day) {
|
|
2166
|
+
return false;
|
|
2167
|
+
}
|
|
2168
|
+
let startDateMoment = moment(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
2169
|
+
let endDateMoment = moment(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
2170
|
+
if (this._dateForm.valid) {
|
|
2171
|
+
return startDateMoment.isSameOrBefore(day) && endDateMoment.isSameOrAfter(day);
|
|
2172
|
+
}
|
|
2173
|
+
if (this._dateForm.get('startDate').valid) {
|
|
2174
|
+
return startDateMoment.isSame(day);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
isFirstSelected(day) {
|
|
2178
|
+
const { _dateForm } = this;
|
|
2179
|
+
const { startDate } = _dateForm.value;
|
|
2180
|
+
return day === null || day === void 0 ? void 0 : day.isSame(startDate);
|
|
2181
|
+
}
|
|
2182
|
+
isLastSelected(day) {
|
|
2183
|
+
const { _dateForm } = this;
|
|
2184
|
+
const { endDate } = _dateForm.value;
|
|
2185
|
+
return day === null || day === void 0 ? void 0 : day.isSame(endDate);
|
|
2186
|
+
}
|
|
2187
|
+
selectedDate(day) {
|
|
2188
|
+
const { _dateForm } = this;
|
|
2189
|
+
let dayFormatted = day.format('YYYY-MM-DD');
|
|
2190
|
+
if (_dateForm.valid) {
|
|
2191
|
+
_dateForm.setValue({ startDate: null, endDate: null });
|
|
2192
|
+
this.writeValue(_dateForm.value);
|
|
2193
|
+
return;
|
|
2194
|
+
}
|
|
2195
|
+
if (!_dateForm.get('startDate').value) {
|
|
2196
|
+
_dateForm.get('startDate').patchValue(dayFormatted);
|
|
2197
|
+
}
|
|
2198
|
+
else {
|
|
2199
|
+
_dateForm.get('endDate').patchValue(dayFormatted);
|
|
2200
|
+
this.writeValue(_dateForm.value);
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
selectRangeOfDays(days) {
|
|
2204
|
+
const { _dateForm, today } = this;
|
|
2205
|
+
const { startDate } = _dateForm.value;
|
|
2206
|
+
const firstDay = startDate || today;
|
|
2207
|
+
const lastDay = moment(firstDay).add(days, 'day').format('YYYY-MM-DD');
|
|
2208
|
+
_dateForm.get('startDate').patchValue(firstDay);
|
|
2209
|
+
_dateForm.get('endDate').patchValue(lastDay);
|
|
2210
|
+
this.writeValue(_dateForm.value);
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
MonkeyDateRangePickerComponent.decorators = [
|
|
2214
|
+
{ type: Component, args: [{
|
|
2215
|
+
selector: 'monkey-date-range-picker',
|
|
2216
|
+
template: `
|
|
2217
|
+
<mecx-date-range-picker-group>
|
|
2218
|
+
<mecx-date-range-picker-group-body>
|
|
2219
|
+
<mecx-date-range-picker class="first-date-range">
|
|
2220
|
+
<mecx-date-range-picker-header>
|
|
2221
|
+
<div class="calendar-title">
|
|
2222
|
+
<monkey-button
|
|
2223
|
+
class="calendar-previous"
|
|
2224
|
+
color="theme"
|
|
2225
|
+
icon="arrow-left-16"
|
|
2226
|
+
type="tertiary"
|
|
2227
|
+
(click)="previousMonth()"
|
|
2228
|
+
size="sm"
|
|
2229
|
+
>
|
|
2230
|
+
</monkey-button>
|
|
2231
|
+
<div class="month-year-title">
|
|
2232
|
+
{{ i18n?.months?.[_dateFirst.format('M')] }}
|
|
2233
|
+
{{ _dateFirst.format('YYYY') }}
|
|
2234
|
+
</div>
|
|
2235
|
+
<monkey-button
|
|
2236
|
+
class="calendar-next"
|
|
2237
|
+
color="theme"
|
|
2238
|
+
icon="arrow-right-16"
|
|
2239
|
+
type="tertiary"
|
|
2240
|
+
(click)="nextMonth()"
|
|
2241
|
+
size="sm"
|
|
2242
|
+
>
|
|
2243
|
+
</monkey-button>
|
|
2244
|
+
</div>
|
|
2245
|
+
<div class="week">
|
|
2246
|
+
<span class="week-day" *ngFor="let day of [1, 2, 3, 4, 5, 6, 7]">
|
|
2247
|
+
{{ i18n?.days?.[day]}}
|
|
2248
|
+
</span>
|
|
2249
|
+
</div>
|
|
2250
|
+
</mecx-date-range-picker-header>
|
|
2251
|
+
<mecx-date-range-picker-body>
|
|
2252
|
+
<div class="month-week" *ngFor="let week of _daysArrFirst">
|
|
2253
|
+
<div
|
|
2254
|
+
class="month-day"
|
|
2255
|
+
(click)="selectedDate(day)"
|
|
2256
|
+
[ngClass]="{
|
|
2257
|
+
inactive: !day,
|
|
2258
|
+
selected: isSelected(day),
|
|
2259
|
+
today: todayCheck(day),
|
|
2260
|
+
'first-selected': isFirstSelected(day),
|
|
2261
|
+
'last-selected': isLastSelected(day)
|
|
2262
|
+
}"
|
|
2263
|
+
*ngFor="let day of week"
|
|
2264
|
+
#divOne
|
|
2265
|
+
>
|
|
2266
|
+
{{ day?.date() }}
|
|
2267
|
+
</div>
|
|
2268
|
+
</div>
|
|
2269
|
+
</mecx-date-range-picker-body>
|
|
2270
|
+
</mecx-date-range-picker>
|
|
2271
|
+
|
|
2272
|
+
<mecx-date-range-picker class="second-date-range" *ngIf="_daysArrSecond?.length">
|
|
2273
|
+
<mecx-date-range-picker-header>
|
|
2274
|
+
<div class="calendar-title">
|
|
2275
|
+
<div class="month-year-title">
|
|
2276
|
+
{{ i18n?.months?.[_dateSecond.format('M')] }}
|
|
2277
|
+
{{ _dateSecond.format('YYYY') }}
|
|
2278
|
+
</div>
|
|
2279
|
+
<monkey-button
|
|
2280
|
+
class="calendar-previous"
|
|
2281
|
+
color="theme"
|
|
2282
|
+
icon="arrow-right-16"
|
|
2283
|
+
type="tertiary"
|
|
2284
|
+
(click)="nextMonth()"
|
|
2285
|
+
size="sm"
|
|
2286
|
+
>
|
|
2287
|
+
</monkey-button>
|
|
2288
|
+
</div>
|
|
2289
|
+
<div class="week">
|
|
2290
|
+
<span class="week-day" *ngFor="let day of [1, 2, 3, 4, 5, 6, 7]">
|
|
2291
|
+
{{ i18n?.days?.[day]}}
|
|
2292
|
+
</span>
|
|
2293
|
+
</div>
|
|
2294
|
+
</mecx-date-range-picker-header>
|
|
2295
|
+
<mecx-date-range-picker-body>
|
|
2296
|
+
<div class="month-week" *ngFor="let week of _daysArrSecond">
|
|
2297
|
+
<div
|
|
2298
|
+
class="month-day"
|
|
2299
|
+
(click)="selectedDate(day)"
|
|
2300
|
+
[ngClass]="{
|
|
2301
|
+
inactive: !day,
|
|
2302
|
+
selected: isSelected(day),
|
|
2303
|
+
today: todayCheck(day),
|
|
2304
|
+
'first-selected': isFirstSelected(day),
|
|
2305
|
+
'last-selected': isLastSelected(day)
|
|
2306
|
+
}"
|
|
2307
|
+
*ngFor="let day of week"
|
|
2308
|
+
>
|
|
2309
|
+
{{ day?.date() }}
|
|
2310
|
+
</div>
|
|
2311
|
+
</div>
|
|
2312
|
+
</mecx-date-range-picker-body>
|
|
2313
|
+
</mecx-date-range-picker>
|
|
2314
|
+
</mecx-date-range-picker-group-body>
|
|
2315
|
+
<mecx-date-range-picker-group-info>
|
|
2316
|
+
<info>
|
|
2317
|
+
{{ infoMessage }}
|
|
2318
|
+
</info>
|
|
2319
|
+
<error>
|
|
2320
|
+
{{ errorMessage }}
|
|
2321
|
+
</error>
|
|
2322
|
+
</mecx-date-range-picker-group-info>
|
|
2323
|
+
<mecx-date-range-picker-group-action [class.error]="errorMessage?.trim()">
|
|
2324
|
+
<div class="action-days">
|
|
2325
|
+
<monkey-button color="theme" type="secondary" (click)="selectRangeOfDays(30)">
|
|
2326
|
+
{{ i18n?.actions?.['30'] }}
|
|
2327
|
+
</monkey-button>
|
|
2328
|
+
<monkey-button color="theme" type="secondary" (click)="selectRangeOfDays(60)">
|
|
2329
|
+
{{ i18n?.actions?.['60'] }}
|
|
2330
|
+
</monkey-button>
|
|
2331
|
+
<monkey-button color="theme" type="secondary" (click)="selectRangeOfDays(90)">
|
|
2332
|
+
{{ i18n?.actions?.['90'] }}
|
|
2333
|
+
</monkey-button>
|
|
2334
|
+
</div>
|
|
2335
|
+
<monkey-button color="theme" type="primary" (click)="navigateToToday()">
|
|
2336
|
+
{{ i18n?.today }}
|
|
2337
|
+
</monkey-button>
|
|
2338
|
+
</mecx-date-range-picker-group-action>
|
|
2339
|
+
</mecx-date-range-picker-group>
|
|
2340
|
+
`,
|
|
2341
|
+
encapsulation: ViewEncapsulation.None,
|
|
2342
|
+
providers: [
|
|
2343
|
+
{
|
|
2344
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2345
|
+
useExisting: forwardRef(() => MonkeyDateRangePickerComponent),
|
|
2346
|
+
multi: true,
|
|
2347
|
+
},
|
|
2348
|
+
CurrencyPipe,
|
|
2349
|
+
]
|
|
2350
|
+
},] }
|
|
2351
|
+
];
|
|
2352
|
+
MonkeyDateRangePickerComponent.ctorParameters = () => [
|
|
2353
|
+
{ type: FormBuilder },
|
|
2354
|
+
{ type: ChangeDetectorRef }
|
|
2355
|
+
];
|
|
2356
|
+
MonkeyDateRangePickerComponent.propDecorators = {
|
|
2357
|
+
i18n: [{ type: Input }],
|
|
2358
|
+
infoMessage: [{ type: Input }],
|
|
2359
|
+
errorMessage: [{ type: Input }],
|
|
2360
|
+
onChange: [{ type: Output }],
|
|
2361
|
+
value: [{ type: Input }]
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
class MonkeyDateRangePickerModule {
|
|
2365
|
+
}
|
|
2366
|
+
MonkeyDateRangePickerModule.decorators = [
|
|
2367
|
+
{ type: NgModule, args: [{
|
|
2368
|
+
declarations: [MonkeyDateRangePickerComponent],
|
|
2369
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, MonkeyButtonModule, MonkeyIconModule],
|
|
2370
|
+
exports: [MonkeyDateRangePickerComponent],
|
|
2371
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
2372
|
+
},] }
|
|
2373
|
+
];
|
|
2374
|
+
|
|
2042
2375
|
/**************************
|
|
2043
2376
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
2044
2377
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -2498,6 +2831,203 @@ MonkeyInputModule.decorators = [
|
|
|
2498
2831
|
},] }
|
|
2499
2832
|
];
|
|
2500
2833
|
|
|
2834
|
+
/**************************
|
|
2835
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
2836
|
+
* This style guide was developed by Monkey Exchange Team
|
|
2837
|
+
* MIT Licence
|
|
2838
|
+
**************************/
|
|
2839
|
+
const phoneUtil = PhoneNumberUtil.getInstance();
|
|
2840
|
+
const formatter = new AsYouTypeFormatter('US');
|
|
2841
|
+
class MonkeyInputPhoneComponent {
|
|
2842
|
+
constructor(currencyPipe, settingsService, cdr) {
|
|
2843
|
+
this.currencyPipe = currencyPipe;
|
|
2844
|
+
this.settingsService = settingsService;
|
|
2845
|
+
this.cdr = cdr;
|
|
2846
|
+
this.name = `mecx-input-phone-${MonkeyUtils.getRandomString(10)}`;
|
|
2847
|
+
this.helperMessage = '';
|
|
2848
|
+
this.placeholder = '';
|
|
2849
|
+
this.maxLength = 255;
|
|
2850
|
+
this.maxDateToday = false;
|
|
2851
|
+
this.onChange = new EventEmitter();
|
|
2852
|
+
this.onModelChange = (value) => { };
|
|
2853
|
+
this.onModelTouched = (value) => { };
|
|
2854
|
+
this._id = `mecx-input-phone-${MonkeyUtils.getRandomString(10)}`;
|
|
2855
|
+
this._disabled = false;
|
|
2856
|
+
this._maxDateToday = new Date().toISOString().split('T')[0];
|
|
2857
|
+
this._symbol = '';
|
|
2858
|
+
this._countryCodes = [];
|
|
2859
|
+
}
|
|
2860
|
+
handleValue(value, apply = false) {
|
|
2861
|
+
if (this.onlyNumber) {
|
|
2862
|
+
return MonkeyUtils.handleOnlyNumbers(`${value}`);
|
|
2863
|
+
}
|
|
2864
|
+
else if (this.onlyAlphaNumeric)
|
|
2865
|
+
return MonkeyUtils.handleOnlyAlphaNumeric(`${value}`);
|
|
2866
|
+
else if (this.upperCase)
|
|
2867
|
+
return `${value}`.toUpperCase();
|
|
2868
|
+
else if (this.lowerCase)
|
|
2869
|
+
return `${value}`.toLowerCase();
|
|
2870
|
+
else if (this.capitalize)
|
|
2871
|
+
return MonkeyUtils.capitalize(`${value}`.toUpperCase());
|
|
2872
|
+
else if (this.currency || this.percent) {
|
|
2873
|
+
return MonkeyUtils.handleOnlyNumbers(`${value}`) / (apply ? 100 : 1);
|
|
2874
|
+
}
|
|
2875
|
+
return value;
|
|
2876
|
+
}
|
|
2877
|
+
replaceZero(value) {
|
|
2878
|
+
return `${value}`.replace(new RegExp(/0/, 'g'), '');
|
|
2879
|
+
}
|
|
2880
|
+
formatValue(value) {
|
|
2881
|
+
//console.log(this.phoneUtil);
|
|
2882
|
+
//console.log(this.phoneUtil.formatInOriginalFormat(value, 'US'));
|
|
2883
|
+
//this.phoneUtil.inputDigit('2');
|
|
2884
|
+
console.log(formatter.inputDigit(value));
|
|
2885
|
+
const number = phoneUtil.parse(value, 'BR');
|
|
2886
|
+
console.log(phoneUtil.isPossibleNumber(number));
|
|
2887
|
+
console.log(phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL));
|
|
2888
|
+
return phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL);
|
|
2889
|
+
}
|
|
2890
|
+
handleSymbol() {
|
|
2891
|
+
var _a;
|
|
2892
|
+
const { settings } = this;
|
|
2893
|
+
if (this.currency) {
|
|
2894
|
+
this._symbol = {
|
|
2895
|
+
BRL: 'R$',
|
|
2896
|
+
CLP: 'CLP',
|
|
2897
|
+
}[((_a = settings === null || settings === void 0 ? void 0 : settings.currency) === null || _a === void 0 ? void 0 : _a.code) || 'BRL'];
|
|
2898
|
+
}
|
|
2899
|
+
else if (this.percent) {
|
|
2900
|
+
this._symbol = '%';
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
ngOnInit() {
|
|
2904
|
+
const { settingsService } = this;
|
|
2905
|
+
this._oldType = this.type;
|
|
2906
|
+
settingsService.settings().subscribe((val) => {
|
|
2907
|
+
this.settings = val;
|
|
2908
|
+
this.handleSymbol();
|
|
2909
|
+
});
|
|
2910
|
+
this._countryCodes = phoneUtil
|
|
2911
|
+
.getSupportedRegions()
|
|
2912
|
+
.map((code) => {
|
|
2913
|
+
return phoneUtil.getCountryCodeForRegion(code);
|
|
2914
|
+
})
|
|
2915
|
+
.filter((v, i, a) => a.indexOf(v) === i)
|
|
2916
|
+
.sort((a, b) => (a < b ? -1 : 1));
|
|
2917
|
+
}
|
|
2918
|
+
registerOnChange(fn) {
|
|
2919
|
+
this.onModelChange = fn;
|
|
2920
|
+
}
|
|
2921
|
+
registerOnTouched(fn) {
|
|
2922
|
+
this.onModelTouched = fn;
|
|
2923
|
+
}
|
|
2924
|
+
setDisabledState(isDisabled) {
|
|
2925
|
+
this._disabled = isDisabled;
|
|
2926
|
+
}
|
|
2927
|
+
set value(value) {
|
|
2928
|
+
this.handledValue = value;
|
|
2929
|
+
this._formatedValue = this.formatValue(value);
|
|
2930
|
+
this.cdr.detectChanges();
|
|
2931
|
+
this.onModelChange(this.handledValue);
|
|
2932
|
+
this.onModelTouched(this.handledValue);
|
|
2933
|
+
}
|
|
2934
|
+
get value() {
|
|
2935
|
+
return this.handledValue;
|
|
2936
|
+
}
|
|
2937
|
+
writeValue(value) {
|
|
2938
|
+
this.value = value;
|
|
2939
|
+
}
|
|
2940
|
+
onChangeValue(event) {
|
|
2941
|
+
const value = this._formatedValue;
|
|
2942
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
2943
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
2944
|
+
const handled = this.handleValue(value, true);
|
|
2945
|
+
this.writeValue(handled);
|
|
2946
|
+
this.onChange.next(handled);
|
|
2947
|
+
}
|
|
2948
|
+
onShowAndHidePassword() {
|
|
2949
|
+
this.type = this.type === 'password' ? 'text' : 'password';
|
|
2950
|
+
}
|
|
2951
|
+
onClick() {
|
|
2952
|
+
var _a, _b, _c;
|
|
2953
|
+
(_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();
|
|
2954
|
+
}
|
|
2955
|
+
onKeyPress(event) {
|
|
2956
|
+
var _a;
|
|
2957
|
+
let pattern = null;
|
|
2958
|
+
const cmp = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
2959
|
+
const inputChar = String.fromCharCode(event.charCode);
|
|
2960
|
+
if (this.currency || this.onlyNumber || this.percent) {
|
|
2961
|
+
pattern = /[0-9]/;
|
|
2962
|
+
if (inputChar === '0' && !this.replaceZero(cmp)) {
|
|
2963
|
+
event.preventDefault();
|
|
2964
|
+
return;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
else if (this.onlyAlphaNumeric) {
|
|
2968
|
+
pattern = /[^0-9A-Za-z]/;
|
|
2969
|
+
}
|
|
2970
|
+
if (pattern && !pattern.test(inputChar)) {
|
|
2971
|
+
event.preventDefault();
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
MonkeyInputPhoneComponent.decorators = [
|
|
2976
|
+
{ type: Component, args: [{
|
|
2977
|
+
selector: 'monkey-input-phone',
|
|
2978
|
+
template: `
|
|
2979
|
+
<monkey-select
|
|
2980
|
+
[label]="'teste'"
|
|
2981
|
+
errorMessage=""
|
|
2982
|
+
errorMessage=""
|
|
2983
|
+
[placeholder]="'Selecione um banco'"
|
|
2984
|
+
>
|
|
2985
|
+
<monkey-option label="op" value="op"> </monkey-option>
|
|
2986
|
+
<monkey-option label="op" value="op"> </monkey-option>
|
|
2987
|
+
<monkey-option label="op" value="op"> </monkey-option>
|
|
2988
|
+
</monkey-select>
|
|
2989
|
+
`,
|
|
2990
|
+
encapsulation: ViewEncapsulation.None,
|
|
2991
|
+
providers: [
|
|
2992
|
+
{
|
|
2993
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2994
|
+
useExisting: forwardRef(() => MonkeyInputPhoneComponent),
|
|
2995
|
+
multi: true,
|
|
2996
|
+
},
|
|
2997
|
+
CurrencyPipe,
|
|
2998
|
+
]
|
|
2999
|
+
},] }
|
|
3000
|
+
];
|
|
3001
|
+
MonkeyInputPhoneComponent.ctorParameters = () => [
|
|
3002
|
+
{ type: CurrencyPipe },
|
|
3003
|
+
{ type: MonkeyStyleGuideSettingsService },
|
|
3004
|
+
{ type: ChangeDetectorRef }
|
|
3005
|
+
];
|
|
3006
|
+
MonkeyInputPhoneComponent.propDecorators = {
|
|
3007
|
+
name: [{ type: Input }],
|
|
3008
|
+
label: [{ type: Input }],
|
|
3009
|
+
helperMessage: [{ type: Input }],
|
|
3010
|
+
placeholder: [{ type: Input }],
|
|
3011
|
+
icon: [{ type: Input }],
|
|
3012
|
+
type: [{ type: Input }],
|
|
3013
|
+
infoMessage: [{ type: Input }],
|
|
3014
|
+
errorMessage: [{ type: Input }],
|
|
3015
|
+
mask: [{ type: Input }],
|
|
3016
|
+
prefix: [{ type: Input }],
|
|
3017
|
+
maxLength: [{ type: Input }],
|
|
3018
|
+
onlyNumber: [{ type: Input }],
|
|
3019
|
+
onlyAlphaNumeric: [{ type: Input }],
|
|
3020
|
+
upperCase: [{ type: Input }],
|
|
3021
|
+
lowerCase: [{ type: Input }],
|
|
3022
|
+
capitalize: [{ type: Input }],
|
|
3023
|
+
currency: [{ type: Input }],
|
|
3024
|
+
percent: [{ type: Input }],
|
|
3025
|
+
maxDateToday: [{ type: Input }],
|
|
3026
|
+
onChange: [{ type: Output }],
|
|
3027
|
+
value: [{ type: Input }],
|
|
3028
|
+
onClick: [{ type: HostListener, args: ['click',] }]
|
|
3029
|
+
};
|
|
3030
|
+
|
|
2501
3031
|
/**************************
|
|
2502
3032
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
2503
3033
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -3435,6 +3965,24 @@ MonkeySelectModule.decorators = [
|
|
|
3435
3965
|
},] }
|
|
3436
3966
|
];
|
|
3437
3967
|
|
|
3968
|
+
class MonkeyInputPhoneModule {
|
|
3969
|
+
}
|
|
3970
|
+
MonkeyInputPhoneModule.decorators = [
|
|
3971
|
+
{ type: NgModule, args: [{
|
|
3972
|
+
declarations: [MonkeyInputPhoneComponent],
|
|
3973
|
+
imports: [
|
|
3974
|
+
CommonModule,
|
|
3975
|
+
FormsModule,
|
|
3976
|
+
ReactiveFormsModule,
|
|
3977
|
+
NgxMaskModule.forRoot(),
|
|
3978
|
+
MonkeyIconModule,
|
|
3979
|
+
MonkeySelectModule,
|
|
3980
|
+
],
|
|
3981
|
+
exports: [MonkeyInputPhoneComponent],
|
|
3982
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
3983
|
+
},] }
|
|
3984
|
+
];
|
|
3985
|
+
|
|
3438
3986
|
/**************************
|
|
3439
3987
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
3440
3988
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -5060,5 +5608,5 @@ MonkeyStyleGuideModule.decorators = [
|
|
|
5060
5608
|
* Generated bundle index. Do not edit.
|
|
5061
5609
|
*/
|
|
5062
5610
|
|
|
5063
|
-
export { MonkeyBadgeComponent, MonkeyBadgeModule, MonkeyButtonAvatarComponent, MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonModule, MonkeyCheckboxComponent, MonkeyCheckboxModule, MonkeyExpansionComponent, MonkeyExpansionModule, MonkeyFileUploadComponent, MonkeyFileUploadModule, MonkeyIconArrowDownComponent, MonkeyIconArrowLeftComponent, MonkeyIconArrowRightComponent, MonkeyIconArrowUpComponent, MonkeyIconBankComponent, MonkeyIconBellComponent, MonkeyIconBookComponent, MonkeyIconBoxComponent, MonkeyIconCNPJComponent, MonkeyIconCalendarComponent, MonkeyIconCameraComponent, MonkeyIconChatComponent, MonkeyIconCheckCircleComponent, MonkeyIconCheckCircleOutComponent, MonkeyIconCheckComponent, MonkeyIconCheckGreyComponent, MonkeyIconCheckWhiteComponent, MonkeyIconClipboardComponent, MonkeyIconClockComponent, MonkeyIconCloseComponent, MonkeyIconCodepenComponent, MonkeyIconCompanyNameComponent, MonkeyIconComponent, MonkeyIconContractComponent, MonkeyIconDeleteComponent, MonkeyIconDocumentComponent, MonkeyIconDollarSignComponent, MonkeyIconDomainComponent, MonkeyIconDownloadComponent, MonkeyIconEditComponent, MonkeyIconEmailComponent, MonkeyIconEmptyDocComponent, MonkeyIconErrorComponent, MonkeyIconEyeClosedComponent, MonkeyIconEyeOpenComponent, MonkeyIconFilterComponent, MonkeyIconGridComponent, MonkeyIconHelpComponent, MonkeyIconHexagonComponent, MonkeyIconHomeComponent, MonkeyIconImageComponent, MonkeyIconListComponent, MonkeyIconLocationPinComponent, MonkeyIconLoginComponent, MonkeyIconLogoutComponent, MonkeyIconMenuComponent, MonkeyIconModule, MonkeyIconMoneySignComponent, MonkeyIconMoreComponent, MonkeyIconOfferedComponent, MonkeyIconPasswordComponent, MonkeyIconPeopleComponent, MonkeyIconPercentComponent, MonkeyIconPersonDocumentComponent, MonkeyIconPersonSadComponent, MonkeyIconPhoneComponent, MonkeyIconPorkComponent, MonkeyIconRefreshComponent, MonkeyIconRepeatComponent, MonkeyIconSearchComponent, MonkeyIconSecondWarningComponent, MonkeyIconSettingsComponent, MonkeyIconTrashComponent, MonkeyIconUploadComponent, MonkeyIconUserComponent, MonkeyIconWalletComponent, MonkeyIconWarningComponent, MonkeyImageCropComponent, MonkeyImageCropModule, MonkeyInputComponent, MonkeyInputFilterComponent, MonkeyInputModule, MonkeyModalComponent, MonkeyModalModule, MonkeyOptionComponent, MonkeyOptionModule, MonkeyRadioButtonComponent, MonkeyRadioButtonModule, MonkeySelectComponent, MonkeySelectFilterComponent, MonkeySelectModule, MonkeySelectMultipleComponent, MonkeySelectSearchComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStyleGuideModalFixedService, MonkeyStyleGuideModalService, MonkeyStyleGuideModule, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService, MonkeyTabComponent, MonkeyTabModule, MonkeyTableColumnComponent, MonkeyTableComponent, MonkeyTableModule, MonkeyToggleComponent, MonkeyToggleModule, MonkeyUtils, MonkeyWizardComponent, MonkeyWizardModule, MonkeyStyleGuideService as ɵa, MonkeyStyleGuideSettingsService as ɵb, MonkeyStyleGuideThemeSettingsService as ɵc, MonkeyStyleGuideSnackbarService as ɵd };
|
|
5611
|
+
export { MonkeyBadgeComponent, MonkeyBadgeModule, MonkeyButtonAvatarComponent, MonkeyButtonComponent, MonkeyButtonDropdownComponent, MonkeyButtonModule, MonkeyCheckboxComponent, MonkeyCheckboxModule, MonkeyDateRangePickerComponent, MonkeyDateRangePickerModule, MonkeyExpansionComponent, MonkeyExpansionModule, MonkeyFileUploadComponent, MonkeyFileUploadModule, MonkeyIconArrowDownComponent, MonkeyIconArrowLeftComponent, MonkeyIconArrowRightComponent, MonkeyIconArrowUpComponent, MonkeyIconBankComponent, MonkeyIconBellComponent, MonkeyIconBookComponent, MonkeyIconBoxComponent, MonkeyIconCNPJComponent, MonkeyIconCalendarComponent, MonkeyIconCameraComponent, MonkeyIconChatComponent, MonkeyIconCheckCircleComponent, MonkeyIconCheckCircleOutComponent, MonkeyIconCheckComponent, MonkeyIconCheckGreyComponent, MonkeyIconCheckWhiteComponent, MonkeyIconClipboardComponent, MonkeyIconClockComponent, MonkeyIconCloseComponent, MonkeyIconCodepenComponent, MonkeyIconCompanyNameComponent, MonkeyIconComponent, MonkeyIconContractComponent, MonkeyIconDeleteComponent, MonkeyIconDocumentComponent, MonkeyIconDollarSignComponent, MonkeyIconDomainComponent, MonkeyIconDownloadComponent, MonkeyIconEditComponent, MonkeyIconEmailComponent, MonkeyIconEmptyDocComponent, MonkeyIconErrorComponent, MonkeyIconEyeClosedComponent, MonkeyIconEyeOpenComponent, MonkeyIconFilterComponent, MonkeyIconGridComponent, MonkeyIconHelpComponent, MonkeyIconHexagonComponent, MonkeyIconHomeComponent, MonkeyIconImageComponent, MonkeyIconListComponent, MonkeyIconLocationPinComponent, MonkeyIconLoginComponent, MonkeyIconLogoutComponent, MonkeyIconMenuComponent, MonkeyIconModule, MonkeyIconMoneySignComponent, MonkeyIconMoreComponent, MonkeyIconOfferedComponent, MonkeyIconPasswordComponent, MonkeyIconPeopleComponent, MonkeyIconPercentComponent, MonkeyIconPersonDocumentComponent, MonkeyIconPersonSadComponent, MonkeyIconPhoneComponent, MonkeyIconPorkComponent, MonkeyIconRefreshComponent, MonkeyIconRepeatComponent, MonkeyIconSearchComponent, MonkeyIconSecondWarningComponent, MonkeyIconSettingsComponent, MonkeyIconTrashComponent, MonkeyIconUploadComponent, MonkeyIconUserComponent, MonkeyIconWalletComponent, MonkeyIconWarningComponent, MonkeyImageCropComponent, MonkeyImageCropModule, MonkeyInputComponent, MonkeyInputFilterComponent, MonkeyInputModule, MonkeyInputPhoneComponent, MonkeyInputPhoneModule, MonkeyModalComponent, MonkeyModalModule, MonkeyOptionComponent, MonkeyOptionModule, MonkeyRadioButtonComponent, MonkeyRadioButtonModule, MonkeySelectComponent, MonkeySelectFilterComponent, MonkeySelectModule, MonkeySelectMultipleComponent, MonkeySelectSearchComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStyleGuideModalFixedService, MonkeyStyleGuideModalService, MonkeyStyleGuideModule, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService, MonkeyTabComponent, MonkeyTabModule, MonkeyTableColumnComponent, MonkeyTableComponent, MonkeyTableModule, MonkeyToggleComponent, MonkeyToggleModule, MonkeyUtils, MonkeyWizardComponent, MonkeyWizardModule, ɵ0, MonkeyStyleGuideService as ɵa, MonkeyStyleGuideSettingsService as ɵb, MonkeyStyleGuideThemeSettingsService as ɵc, MonkeyStyleGuideSnackbarService as ɵd };
|
|
5064
5612
|
//# sourceMappingURL=monkey-style-guide.js.map
|