monkey-style-guide 2.0.202 → 2.0.204
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/esm2020/lib/components/file-upload/file-upload.component.mjs +11 -8
- package/esm2020/lib/components/input/input.component.mjs +30 -6
- package/esm2020/lib/core/utils/utils.mjs +2 -2
- package/fesm2015/monkey-style-guide.mjs +77 -51
- package/fesm2015/monkey-style-guide.mjs.map +1 -1
- package/fesm2020/monkey-style-guide.mjs +77 -51
- package/fesm2020/monkey-style-guide.mjs.map +1 -1
- package/lib/components/file-upload/file-upload.component.d.ts +2 -1
- package/lib/components/input/input.component.d.ts +4 -3
- package/monkey-style-guide-2.0.204.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.202.tgz +0 -0
|
@@ -249,7 +249,7 @@ class MonkeyUtils {
|
|
|
249
249
|
return `${formated}`;
|
|
250
250
|
}
|
|
251
251
|
static formatFileSize(size) {
|
|
252
|
-
let units = ['
|
|
252
|
+
let units = ['b', 'kb', 'mb', 'gb', 'tb', 'pb', 'eb', 'zb', 'yb'];
|
|
253
253
|
let l = 0;
|
|
254
254
|
while (size >= 1024 && ++l) {
|
|
255
255
|
size = size / 1024;
|
|
@@ -5305,7 +5305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5305
5305
|
* This style guide was developed by Monkey Exchange Team
|
|
5306
5306
|
* MIT Licence
|
|
5307
5307
|
**************************/
|
|
5308
|
-
const moment$
|
|
5308
|
+
const moment$2 = moment_;
|
|
5309
5309
|
class MonkeyDateRangePickerComponent {
|
|
5310
5310
|
constructor(fb, cdr) {
|
|
5311
5311
|
this.fb = fb;
|
|
@@ -5313,11 +5313,11 @@ class MonkeyDateRangePickerComponent {
|
|
|
5313
5313
|
this.helperMessage = '';
|
|
5314
5314
|
this.moveDaysForward = true;
|
|
5315
5315
|
this.onChange = new EventEmitter();
|
|
5316
|
-
this.today = moment$
|
|
5316
|
+
this.today = moment$2.default().format('YYYY-MM-DD');
|
|
5317
5317
|
this.onModelChange = (value) => { };
|
|
5318
5318
|
this.onModelTouched = (value) => { };
|
|
5319
|
-
this._dateFirst = moment$
|
|
5320
|
-
this._dateSecond = moment$
|
|
5319
|
+
this._dateFirst = moment$2.default();
|
|
5320
|
+
this._dateSecond = moment$2.default().add(1, 'M');
|
|
5321
5321
|
this._id = `mecx-date-range-picker-${MonkeyUtils.getRandomString(10)}`;
|
|
5322
5322
|
this._daysArrFirst = [];
|
|
5323
5323
|
this._daysArrSecond = [];
|
|
@@ -5339,17 +5339,17 @@ class MonkeyDateRangePickerComponent {
|
|
|
5339
5339
|
});
|
|
5340
5340
|
(_c = (_b = (_a = this._dateForm) === null || _a === void 0 ? void 0 : _a.valueChanges) === null || _b === void 0 ? void 0 : _b.pipe(takeUntil(this.unsubscribeAll))) === null || _c === void 0 ? void 0 : _c.subscribe((values) => {
|
|
5341
5341
|
const { startDate, endDate } = values;
|
|
5342
|
-
this._startDate = startDate && moment$
|
|
5343
|
-
this._endDate = endDate && moment$
|
|
5342
|
+
this._startDate = startDate && moment$2.default(startDate);
|
|
5343
|
+
this._endDate = endDate && moment$2.default(endDate);
|
|
5344
5344
|
});
|
|
5345
5345
|
}
|
|
5346
5346
|
createCalendar(month) {
|
|
5347
|
-
let firstDay = moment$
|
|
5348
|
-
let lastDay = moment$
|
|
5347
|
+
let firstDay = moment$2.default(month).startOf('M');
|
|
5348
|
+
let lastDay = moment$2.default(month).endOf('M');
|
|
5349
5349
|
let days = Array.apply(null, { length: month.daysInMonth() })
|
|
5350
5350
|
.map(Number.call, Number)
|
|
5351
5351
|
.map((n) => {
|
|
5352
|
-
return moment$
|
|
5352
|
+
return moment$2.default(firstDay).add(n, 'd');
|
|
5353
5353
|
});
|
|
5354
5354
|
let n = 0;
|
|
5355
5355
|
while (n < firstDay.weekday()) {
|
|
@@ -5387,8 +5387,8 @@ class MonkeyDateRangePickerComponent {
|
|
|
5387
5387
|
this.writeValue(this._dateForm.value);
|
|
5388
5388
|
}
|
|
5389
5389
|
navigateToToday() {
|
|
5390
|
-
this._dateFirst = moment$
|
|
5391
|
-
this._dateSecond = moment$
|
|
5390
|
+
this._dateFirst = moment$2.default();
|
|
5391
|
+
this._dateSecond = moment$2.default().add(1, 'M');
|
|
5392
5392
|
this.build();
|
|
5393
5393
|
}
|
|
5394
5394
|
ngOnInit() {
|
|
@@ -5443,14 +5443,14 @@ class MonkeyDateRangePickerComponent {
|
|
|
5443
5443
|
if (!day) {
|
|
5444
5444
|
return false;
|
|
5445
5445
|
}
|
|
5446
|
-
return moment$
|
|
5446
|
+
return moment$2.default().format('L') === day.format('L');
|
|
5447
5447
|
}
|
|
5448
5448
|
isSelected(day) {
|
|
5449
5449
|
if (!day) {
|
|
5450
5450
|
return false;
|
|
5451
5451
|
}
|
|
5452
|
-
let startDateMoment = moment$
|
|
5453
|
-
let endDateMoment = moment$
|
|
5452
|
+
let startDateMoment = moment$2.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
5453
|
+
let endDateMoment = moment$2.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
5454
5454
|
if (this._dateForm.valid) {
|
|
5455
5455
|
return startDateMoment.isSameOrBefore(day) && endDateMoment.isSameOrAfter(day);
|
|
5456
5456
|
}
|
|
@@ -5461,7 +5461,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
5461
5461
|
isDisabled(day) {
|
|
5462
5462
|
const { _minDate } = this;
|
|
5463
5463
|
if (_minDate) {
|
|
5464
|
-
const firstDay = moment$
|
|
5464
|
+
const firstDay = moment$2.default(_minDate);
|
|
5465
5465
|
return day.isBefore(firstDay.subtract(1, 'day'));
|
|
5466
5466
|
}
|
|
5467
5467
|
return false;
|
|
@@ -5482,7 +5482,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
5482
5482
|
const { _dateForm, _minDate } = this;
|
|
5483
5483
|
let dayFormatted = day.format('YYYY-MM-DD');
|
|
5484
5484
|
if (_minDate) {
|
|
5485
|
-
const firstDay = moment$
|
|
5485
|
+
const firstDay = moment$2.default(_minDate);
|
|
5486
5486
|
if (day.isBefore(firstDay.subtract(1, 'day')))
|
|
5487
5487
|
return;
|
|
5488
5488
|
}
|
|
@@ -5491,7 +5491,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
5491
5491
|
}
|
|
5492
5492
|
let { startDate, endDate } = _dateForm.value;
|
|
5493
5493
|
if (startDate) {
|
|
5494
|
-
if (moment$
|
|
5494
|
+
if (moment$2.default(startDate).isAfter(moment$2.default(dayFormatted))) {
|
|
5495
5495
|
endDate = startDate;
|
|
5496
5496
|
startDate = dayFormatted;
|
|
5497
5497
|
}
|
|
@@ -5514,9 +5514,9 @@ class MonkeyDateRangePickerComponent {
|
|
|
5514
5514
|
return;
|
|
5515
5515
|
const { _dateForm, _minDate, today, moveDaysForward } = this;
|
|
5516
5516
|
const { startDate } = _dateForm.value;
|
|
5517
|
-
const firstDay = moment$
|
|
5517
|
+
const firstDay = moment$2.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
5518
5518
|
const method = moveDaysForward ? 'add' : 'subtract';
|
|
5519
|
-
const lastDay = moment$
|
|
5519
|
+
const lastDay = moment$2.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
5520
5520
|
if (moveDaysForward) {
|
|
5521
5521
|
_dateForm.get('startDate').patchValue(firstDay);
|
|
5522
5522
|
_dateForm.get('endDate').patchValue(lastDay);
|
|
@@ -5970,7 +5970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5970
5970
|
* This style guide was developed by Monkey Exchange Team
|
|
5971
5971
|
* MIT Licence
|
|
5972
5972
|
**************************/
|
|
5973
|
-
const moment = moment_;
|
|
5973
|
+
const moment$1 = moment_;
|
|
5974
5974
|
class MonkeyDateRangePickerV2Component {
|
|
5975
5975
|
constructor(fb, cdr) {
|
|
5976
5976
|
this.fb = fb;
|
|
@@ -5981,11 +5981,11 @@ class MonkeyDateRangePickerV2Component {
|
|
|
5981
5981
|
this.onChange = new EventEmitter();
|
|
5982
5982
|
this.onSubmit = new EventEmitter();
|
|
5983
5983
|
this.onClose = new EventEmitter();
|
|
5984
|
-
this.today = moment.default().format('YYYY-MM-DD');
|
|
5984
|
+
this.today = moment$1.default().format('YYYY-MM-DD');
|
|
5985
5985
|
this.onModelChange = (value) => { };
|
|
5986
5986
|
this.onModelTouched = (value) => { };
|
|
5987
|
-
this._dateFirst = moment.default();
|
|
5988
|
-
this._dateSecond = moment.default().add(1, 'M');
|
|
5987
|
+
this._dateFirst = moment$1.default();
|
|
5988
|
+
this._dateSecond = moment$1.default().add(1, 'M');
|
|
5989
5989
|
this._id = `mecx-date-range-picker-v2-${MonkeyUtils.getRandomString(10)}`;
|
|
5990
5990
|
this._daysArrFirst = [];
|
|
5991
5991
|
this._daysArrSecond = [];
|
|
@@ -6007,17 +6007,17 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6007
6007
|
});
|
|
6008
6008
|
(_c = (_b = (_a = this._dateForm) === null || _a === void 0 ? void 0 : _a.valueChanges) === null || _b === void 0 ? void 0 : _b.pipe(takeUntil(this.unsubscribeAll))) === null || _c === void 0 ? void 0 : _c.subscribe((values) => {
|
|
6009
6009
|
const { startDate, endDate } = values;
|
|
6010
|
-
this._startDate = startDate && moment.default(startDate);
|
|
6011
|
-
this._endDate = endDate && moment.default(endDate);
|
|
6010
|
+
this._startDate = startDate && moment$1.default(startDate);
|
|
6011
|
+
this._endDate = endDate && moment$1.default(endDate);
|
|
6012
6012
|
});
|
|
6013
6013
|
}
|
|
6014
6014
|
createCalendar(month) {
|
|
6015
|
-
let firstDay = moment.default(month).startOf('M');
|
|
6016
|
-
let lastDay = moment.default(month).endOf('M');
|
|
6015
|
+
let firstDay = moment$1.default(month).startOf('M');
|
|
6016
|
+
let lastDay = moment$1.default(month).endOf('M');
|
|
6017
6017
|
let days = Array.apply(null, { length: month.daysInMonth() })
|
|
6018
6018
|
.map(Number.call, Number)
|
|
6019
6019
|
.map((n) => {
|
|
6020
|
-
return moment.default(firstDay).add(n, 'd');
|
|
6020
|
+
return moment$1.default(firstDay).add(n, 'd');
|
|
6021
6021
|
});
|
|
6022
6022
|
let n = 0;
|
|
6023
6023
|
while (n < firstDay.weekday()) {
|
|
@@ -6055,8 +6055,8 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6055
6055
|
this.writeValue(this._dateForm.value);
|
|
6056
6056
|
}
|
|
6057
6057
|
navigateToToday() {
|
|
6058
|
-
this._dateFirst = moment.default();
|
|
6059
|
-
this._dateSecond = moment.default().add(1, 'M');
|
|
6058
|
+
this._dateFirst = moment$1.default();
|
|
6059
|
+
this._dateSecond = moment$1.default().add(1, 'M');
|
|
6060
6060
|
this.build();
|
|
6061
6061
|
}
|
|
6062
6062
|
ngOnInit() {
|
|
@@ -6115,14 +6115,14 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6115
6115
|
if (!day) {
|
|
6116
6116
|
return false;
|
|
6117
6117
|
}
|
|
6118
|
-
return moment.default().format('L') === day.format('L');
|
|
6118
|
+
return moment$1.default().format('L') === day.format('L');
|
|
6119
6119
|
}
|
|
6120
6120
|
isSelected(day) {
|
|
6121
6121
|
if (!day) {
|
|
6122
6122
|
return false;
|
|
6123
6123
|
}
|
|
6124
|
-
let startDateMoment = moment.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
6125
|
-
let endDateMoment = moment.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
6124
|
+
let startDateMoment = moment$1.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
6125
|
+
let endDateMoment = moment$1.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
6126
6126
|
if (this._dateForm.valid) {
|
|
6127
6127
|
return startDateMoment.isSameOrBefore(day) && endDateMoment.isSameOrAfter(day);
|
|
6128
6128
|
}
|
|
@@ -6133,7 +6133,7 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6133
6133
|
isDisabled(day) {
|
|
6134
6134
|
const { _minDate } = this;
|
|
6135
6135
|
if (_minDate) {
|
|
6136
|
-
const firstDay = moment.default(_minDate);
|
|
6136
|
+
const firstDay = moment$1.default(_minDate);
|
|
6137
6137
|
return day.isBefore(firstDay.subtract(1, 'day'));
|
|
6138
6138
|
}
|
|
6139
6139
|
return false;
|
|
@@ -6154,7 +6154,7 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6154
6154
|
const { _dateForm, _minDate } = this;
|
|
6155
6155
|
let dayFormatted = day.format('YYYY-MM-DD');
|
|
6156
6156
|
if (_minDate) {
|
|
6157
|
-
const firstDay = moment.default(_minDate);
|
|
6157
|
+
const firstDay = moment$1.default(_minDate);
|
|
6158
6158
|
if (day.isBefore(firstDay.subtract(1, 'day')))
|
|
6159
6159
|
return;
|
|
6160
6160
|
}
|
|
@@ -6163,7 +6163,7 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6163
6163
|
}
|
|
6164
6164
|
let { startDate, endDate } = _dateForm.value;
|
|
6165
6165
|
if (startDate) {
|
|
6166
|
-
if (moment.default(startDate).isAfter(moment.default(dayFormatted))) {
|
|
6166
|
+
if (moment$1.default(startDate).isAfter(moment$1.default(dayFormatted))) {
|
|
6167
6167
|
endDate = startDate;
|
|
6168
6168
|
startDate = dayFormatted;
|
|
6169
6169
|
}
|
|
@@ -6186,9 +6186,9 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6186
6186
|
return;
|
|
6187
6187
|
const { _dateForm, _minDate, today, moveDaysForward } = this;
|
|
6188
6188
|
const { startDate } = _dateForm.value;
|
|
6189
|
-
const firstDay = moment.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
6189
|
+
const firstDay = moment$1.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
6190
6190
|
const method = moveDaysForward ? 'add' : 'subtract';
|
|
6191
|
-
const lastDay = moment.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
6191
|
+
const lastDay = moment$1.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
6192
6192
|
if (moveDaysForward) {
|
|
6193
6193
|
_dateForm.get('startDate').patchValue(firstDay);
|
|
6194
6194
|
_dateForm.get('endDate').patchValue(lastDay);
|
|
@@ -6781,7 +6781,8 @@ class MonkeyFileUploadComponent {
|
|
|
6781
6781
|
this._id = `mecx-file-upload-${MonkeyUtils.getRandomString(10)}`;
|
|
6782
6782
|
this._disabled = false;
|
|
6783
6783
|
this._progress = null;
|
|
6784
|
-
this.
|
|
6784
|
+
this._showMaxSizeErrorMessage = false;
|
|
6785
|
+
this._maxSizeErrorMessage = '';
|
|
6785
6786
|
this._allowedExtensionErrorMessage = false;
|
|
6786
6787
|
this._uploadErrorMessage = '';
|
|
6787
6788
|
}
|
|
@@ -6801,7 +6802,9 @@ class MonkeyFileUploadComponent {
|
|
|
6801
6802
|
}
|
|
6802
6803
|
if (configFiles.maxSize) {
|
|
6803
6804
|
if (size > configFiles.maxSize) {
|
|
6804
|
-
this.
|
|
6805
|
+
this._showMaxSizeErrorMessage = true;
|
|
6806
|
+
const formated = MonkeyUtils.formatFileSize(configFiles.maxSize);
|
|
6807
|
+
this._maxSizeErrorMessage = `${this.maxSizeErrorMessage}${formated}`;
|
|
6805
6808
|
return false;
|
|
6806
6809
|
}
|
|
6807
6810
|
}
|
|
@@ -6859,7 +6862,7 @@ class MonkeyFileUploadComponent {
|
|
|
6859
6862
|
onChangeValue(event) {
|
|
6860
6863
|
const { listenFiles } = this;
|
|
6861
6864
|
this._allowedExtensionErrorMessage = false;
|
|
6862
|
-
this.
|
|
6865
|
+
this._showMaxSizeErrorMessage = false;
|
|
6863
6866
|
for (let index = 0; index < event.length; index++) {
|
|
6864
6867
|
const file = event[index];
|
|
6865
6868
|
if (this.validateFile(file)) {
|
|
@@ -6901,7 +6904,7 @@ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
6901
6904
|
{{ helperMessage }}
|
|
6902
6905
|
</helper>
|
|
6903
6906
|
</mecx-form-field-header>
|
|
6904
|
-
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() ||
|
|
6907
|
+
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() || _showMaxSizeErrorMessage">
|
|
6905
6908
|
<input
|
|
6906
6909
|
#fileInput
|
|
6907
6910
|
hidden
|
|
@@ -6940,7 +6943,7 @@ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
6940
6943
|
<error>
|
|
6941
6944
|
{{ errorMessage }}
|
|
6942
6945
|
{{ _uploadErrorMessage }}
|
|
6943
|
-
{{
|
|
6946
|
+
{{ _showMaxSizeErrorMessage ? _maxSizeErrorMessage : null }}
|
|
6944
6947
|
{{
|
|
6945
6948
|
_allowedExtensionErrorMessage ? allowedExtensionErrorMessage : null
|
|
6946
6949
|
}}
|
|
@@ -6962,7 +6965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
6962
6965
|
{{ helperMessage }}
|
|
6963
6966
|
</helper>
|
|
6964
6967
|
</mecx-form-field-header>
|
|
6965
|
-
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() ||
|
|
6968
|
+
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() || _showMaxSizeErrorMessage">
|
|
6966
6969
|
<input
|
|
6967
6970
|
#fileInput
|
|
6968
6971
|
hidden
|
|
@@ -7001,7 +7004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7001
7004
|
<error>
|
|
7002
7005
|
{{ errorMessage }}
|
|
7003
7006
|
{{ _uploadErrorMessage }}
|
|
7004
|
-
{{
|
|
7007
|
+
{{ _showMaxSizeErrorMessage ? _maxSizeErrorMessage : null }}
|
|
7005
7008
|
{{
|
|
7006
7009
|
_allowedExtensionErrorMessage ? allowedExtensionErrorMessage : null
|
|
7007
7010
|
}}
|
|
@@ -7627,6 +7630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7627
7630
|
* This style guide was developed by Monkey Exchange Team
|
|
7628
7631
|
* MIT Licence
|
|
7629
7632
|
**************************/
|
|
7633
|
+
const moment = moment_;
|
|
7630
7634
|
class MonkeyInputComponent {
|
|
7631
7635
|
constructor(currencyPipe, settingsService, cdr, defaultCurencyCode) {
|
|
7632
7636
|
this.currencyPipe = currencyPipe;
|
|
@@ -7637,16 +7641,36 @@ class MonkeyInputComponent {
|
|
|
7637
7641
|
this.helperMessage = '';
|
|
7638
7642
|
this.placeholder = '';
|
|
7639
7643
|
this.maxLength = 255;
|
|
7640
|
-
this.maxDateToday = false;
|
|
7641
7644
|
this.onChange = new EventEmitter();
|
|
7642
7645
|
this.onModelChange = (value) => { };
|
|
7643
7646
|
this.onModelTouched = (value) => { };
|
|
7644
7647
|
this._id = `mecx-input-${MonkeyUtils.getRandomString(10)}`;
|
|
7645
7648
|
this._disabled = false;
|
|
7646
|
-
this._maxDateToday = new Date().toISOString().split('T')[0];
|
|
7647
7649
|
this._symbol = '';
|
|
7650
|
+
this._maxDate = undefined;
|
|
7648
7651
|
//not to do
|
|
7649
7652
|
}
|
|
7653
|
+
set maxDateToday(value) {
|
|
7654
|
+
try {
|
|
7655
|
+
if (value) {
|
|
7656
|
+
this._maxDate = new Date().toISOString().split('T')[0];
|
|
7657
|
+
}
|
|
7658
|
+
}
|
|
7659
|
+
catch (e) {
|
|
7660
|
+
// ignore
|
|
7661
|
+
}
|
|
7662
|
+
}
|
|
7663
|
+
set minYears(value) {
|
|
7664
|
+
try {
|
|
7665
|
+
if (value) {
|
|
7666
|
+
this._maxDate = moment.default().subtract(value, 'years').toISOString().split('T')[0];
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
catch (e) {
|
|
7670
|
+
console.log(e);
|
|
7671
|
+
// ignore
|
|
7672
|
+
}
|
|
7673
|
+
}
|
|
7650
7674
|
handleValue(value, apply = false) {
|
|
7651
7675
|
if (this.onlyNumber) {
|
|
7652
7676
|
return MonkeyUtils.handleOnlyNumbers(`${value}`);
|
|
@@ -7771,7 +7795,7 @@ class MonkeyInputComponent {
|
|
|
7771
7795
|
}
|
|
7772
7796
|
}
|
|
7773
7797
|
MonkeyInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyInputComponent, deps: [{ token: i1$1.CurrencyPipe }, { token: MonkeyStyleGuideSettingsService }, { token: i0.ChangeDetectorRef }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Component });
|
|
7774
|
-
MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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: [
|
|
7798
|
+
MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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", minYears: "minYears", value: "value" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick()" } }, providers: [
|
|
7775
7799
|
{
|
|
7776
7800
|
provide: NG_VALUE_ACCESSOR,
|
|
7777
7801
|
useExisting: forwardRef(() => MonkeyInputComponent),
|
|
@@ -7835,7 +7859,7 @@ MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
7835
7859
|
[disabled]="_disabled"
|
|
7836
7860
|
[maxLength]="maxLength"
|
|
7837
7861
|
*ngIf="!mask && !prefix"
|
|
7838
|
-
[max]="
|
|
7862
|
+
[max]="_maxDate"
|
|
7839
7863
|
#monkeyInput
|
|
7840
7864
|
/>
|
|
7841
7865
|
<monkey-icon
|
|
@@ -7922,7 +7946,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7922
7946
|
[disabled]="_disabled"
|
|
7923
7947
|
[maxLength]="maxLength"
|
|
7924
7948
|
*ngIf="!mask && !prefix"
|
|
7925
|
-
[max]="
|
|
7949
|
+
[max]="_maxDate"
|
|
7926
7950
|
#monkeyInput
|
|
7927
7951
|
/>
|
|
7928
7952
|
<monkey-icon
|
|
@@ -8001,6 +8025,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8001
8025
|
type: Input
|
|
8002
8026
|
}], maxDateToday: [{
|
|
8003
8027
|
type: Input
|
|
8028
|
+
}], minYears: [{
|
|
8029
|
+
type: Input
|
|
8004
8030
|
}], onChange: [{
|
|
8005
8031
|
type: Output
|
|
8006
8032
|
}], monkeyInput: [{
|