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
|
@@ -256,7 +256,7 @@ class MonkeyUtils {
|
|
|
256
256
|
return `${formated}`;
|
|
257
257
|
}
|
|
258
258
|
static formatFileSize(size) {
|
|
259
|
-
let units = ['
|
|
259
|
+
let units = ['b', 'kb', 'mb', 'gb', 'tb', 'pb', 'eb', 'zb', 'yb'];
|
|
260
260
|
let l = 0;
|
|
261
261
|
while (size >= 1024 && ++l) {
|
|
262
262
|
size = size / 1024;
|
|
@@ -5310,7 +5310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5310
5310
|
* This style guide was developed by Monkey Exchange Team
|
|
5311
5311
|
* MIT Licence
|
|
5312
5312
|
**************************/
|
|
5313
|
-
const moment$
|
|
5313
|
+
const moment$2 = moment_;
|
|
5314
5314
|
class MonkeyDateRangePickerComponent {
|
|
5315
5315
|
constructor(fb, cdr) {
|
|
5316
5316
|
this.fb = fb;
|
|
@@ -5318,11 +5318,11 @@ class MonkeyDateRangePickerComponent {
|
|
|
5318
5318
|
this.helperMessage = '';
|
|
5319
5319
|
this.moveDaysForward = true;
|
|
5320
5320
|
this.onChange = new EventEmitter();
|
|
5321
|
-
this.today = moment$
|
|
5321
|
+
this.today = moment$2.default().format('YYYY-MM-DD');
|
|
5322
5322
|
this.onModelChange = (value) => { };
|
|
5323
5323
|
this.onModelTouched = (value) => { };
|
|
5324
|
-
this._dateFirst = moment$
|
|
5325
|
-
this._dateSecond = moment$
|
|
5324
|
+
this._dateFirst = moment$2.default();
|
|
5325
|
+
this._dateSecond = moment$2.default().add(1, 'M');
|
|
5326
5326
|
this._id = `mecx-date-range-picker-${MonkeyUtils.getRandomString(10)}`;
|
|
5327
5327
|
this._daysArrFirst = [];
|
|
5328
5328
|
this._daysArrSecond = [];
|
|
@@ -5343,17 +5343,17 @@ class MonkeyDateRangePickerComponent {
|
|
|
5343
5343
|
});
|
|
5344
5344
|
this._dateForm?.valueChanges?.pipe(takeUntil(this.unsubscribeAll))?.subscribe((values) => {
|
|
5345
5345
|
const { startDate, endDate } = values;
|
|
5346
|
-
this._startDate = startDate && moment$
|
|
5347
|
-
this._endDate = endDate && moment$
|
|
5346
|
+
this._startDate = startDate && moment$2.default(startDate);
|
|
5347
|
+
this._endDate = endDate && moment$2.default(endDate);
|
|
5348
5348
|
});
|
|
5349
5349
|
}
|
|
5350
5350
|
createCalendar(month) {
|
|
5351
|
-
let firstDay = moment$
|
|
5352
|
-
let lastDay = moment$
|
|
5351
|
+
let firstDay = moment$2.default(month).startOf('M');
|
|
5352
|
+
let lastDay = moment$2.default(month).endOf('M');
|
|
5353
5353
|
let days = Array.apply(null, { length: month.daysInMonth() })
|
|
5354
5354
|
.map(Number.call, Number)
|
|
5355
5355
|
.map((n) => {
|
|
5356
|
-
return moment$
|
|
5356
|
+
return moment$2.default(firstDay).add(n, 'd');
|
|
5357
5357
|
});
|
|
5358
5358
|
let n = 0;
|
|
5359
5359
|
while (n < firstDay.weekday()) {
|
|
@@ -5391,8 +5391,8 @@ class MonkeyDateRangePickerComponent {
|
|
|
5391
5391
|
this.writeValue(this._dateForm.value);
|
|
5392
5392
|
}
|
|
5393
5393
|
navigateToToday() {
|
|
5394
|
-
this._dateFirst = moment$
|
|
5395
|
-
this._dateSecond = moment$
|
|
5394
|
+
this._dateFirst = moment$2.default();
|
|
5395
|
+
this._dateSecond = moment$2.default().add(1, 'M');
|
|
5396
5396
|
this.build();
|
|
5397
5397
|
}
|
|
5398
5398
|
ngOnInit() {
|
|
@@ -5447,14 +5447,14 @@ class MonkeyDateRangePickerComponent {
|
|
|
5447
5447
|
if (!day) {
|
|
5448
5448
|
return false;
|
|
5449
5449
|
}
|
|
5450
|
-
return moment$
|
|
5450
|
+
return moment$2.default().format('L') === day.format('L');
|
|
5451
5451
|
}
|
|
5452
5452
|
isSelected(day) {
|
|
5453
5453
|
if (!day) {
|
|
5454
5454
|
return false;
|
|
5455
5455
|
}
|
|
5456
|
-
let startDateMoment = moment$
|
|
5457
|
-
let endDateMoment = moment$
|
|
5456
|
+
let startDateMoment = moment$2.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
5457
|
+
let endDateMoment = moment$2.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
5458
5458
|
if (this._dateForm.valid) {
|
|
5459
5459
|
return startDateMoment.isSameOrBefore(day) && endDateMoment.isSameOrAfter(day);
|
|
5460
5460
|
}
|
|
@@ -5465,7 +5465,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
5465
5465
|
isDisabled(day) {
|
|
5466
5466
|
const { _minDate } = this;
|
|
5467
5467
|
if (_minDate) {
|
|
5468
|
-
const firstDay = moment$
|
|
5468
|
+
const firstDay = moment$2.default(_minDate);
|
|
5469
5469
|
return day.isBefore(firstDay.subtract(1, 'day'));
|
|
5470
5470
|
}
|
|
5471
5471
|
return false;
|
|
@@ -5486,7 +5486,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
5486
5486
|
const { _dateForm, _minDate } = this;
|
|
5487
5487
|
let dayFormatted = day.format('YYYY-MM-DD');
|
|
5488
5488
|
if (_minDate) {
|
|
5489
|
-
const firstDay = moment$
|
|
5489
|
+
const firstDay = moment$2.default(_minDate);
|
|
5490
5490
|
if (day.isBefore(firstDay.subtract(1, 'day')))
|
|
5491
5491
|
return;
|
|
5492
5492
|
}
|
|
@@ -5495,7 +5495,7 @@ class MonkeyDateRangePickerComponent {
|
|
|
5495
5495
|
}
|
|
5496
5496
|
let { startDate, endDate } = _dateForm.value;
|
|
5497
5497
|
if (startDate) {
|
|
5498
|
-
if (moment$
|
|
5498
|
+
if (moment$2.default(startDate).isAfter(moment$2.default(dayFormatted))) {
|
|
5499
5499
|
endDate = startDate;
|
|
5500
5500
|
startDate = dayFormatted;
|
|
5501
5501
|
}
|
|
@@ -5518,9 +5518,9 @@ class MonkeyDateRangePickerComponent {
|
|
|
5518
5518
|
return;
|
|
5519
5519
|
const { _dateForm, _minDate, today, moveDaysForward } = this;
|
|
5520
5520
|
const { startDate } = _dateForm.value;
|
|
5521
|
-
const firstDay = moment$
|
|
5521
|
+
const firstDay = moment$2.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
5522
5522
|
const method = moveDaysForward ? 'add' : 'subtract';
|
|
5523
|
-
const lastDay = moment$
|
|
5523
|
+
const lastDay = moment$2.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
5524
5524
|
if (moveDaysForward) {
|
|
5525
5525
|
_dateForm.get('startDate').patchValue(firstDay);
|
|
5526
5526
|
_dateForm.get('endDate').patchValue(lastDay);
|
|
@@ -5974,7 +5974,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5974
5974
|
* This style guide was developed by Monkey Exchange Team
|
|
5975
5975
|
* MIT Licence
|
|
5976
5976
|
**************************/
|
|
5977
|
-
const moment = moment_;
|
|
5977
|
+
const moment$1 = moment_;
|
|
5978
5978
|
class MonkeyDateRangePickerV2Component {
|
|
5979
5979
|
constructor(fb, cdr) {
|
|
5980
5980
|
this.fb = fb;
|
|
@@ -5985,11 +5985,11 @@ class MonkeyDateRangePickerV2Component {
|
|
|
5985
5985
|
this.onChange = new EventEmitter();
|
|
5986
5986
|
this.onSubmit = new EventEmitter();
|
|
5987
5987
|
this.onClose = new EventEmitter();
|
|
5988
|
-
this.today = moment.default().format('YYYY-MM-DD');
|
|
5988
|
+
this.today = moment$1.default().format('YYYY-MM-DD');
|
|
5989
5989
|
this.onModelChange = (value) => { };
|
|
5990
5990
|
this.onModelTouched = (value) => { };
|
|
5991
|
-
this._dateFirst = moment.default();
|
|
5992
|
-
this._dateSecond = moment.default().add(1, 'M');
|
|
5991
|
+
this._dateFirst = moment$1.default();
|
|
5992
|
+
this._dateSecond = moment$1.default().add(1, 'M');
|
|
5993
5993
|
this._id = `mecx-date-range-picker-v2-${MonkeyUtils.getRandomString(10)}`;
|
|
5994
5994
|
this._daysArrFirst = [];
|
|
5995
5995
|
this._daysArrSecond = [];
|
|
@@ -6010,17 +6010,17 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6010
6010
|
});
|
|
6011
6011
|
this._dateForm?.valueChanges?.pipe(takeUntil(this.unsubscribeAll))?.subscribe((values) => {
|
|
6012
6012
|
const { startDate, endDate } = values;
|
|
6013
|
-
this._startDate = startDate && moment.default(startDate);
|
|
6014
|
-
this._endDate = endDate && moment.default(endDate);
|
|
6013
|
+
this._startDate = startDate && moment$1.default(startDate);
|
|
6014
|
+
this._endDate = endDate && moment$1.default(endDate);
|
|
6015
6015
|
});
|
|
6016
6016
|
}
|
|
6017
6017
|
createCalendar(month) {
|
|
6018
|
-
let firstDay = moment.default(month).startOf('M');
|
|
6019
|
-
let lastDay = moment.default(month).endOf('M');
|
|
6018
|
+
let firstDay = moment$1.default(month).startOf('M');
|
|
6019
|
+
let lastDay = moment$1.default(month).endOf('M');
|
|
6020
6020
|
let days = Array.apply(null, { length: month.daysInMonth() })
|
|
6021
6021
|
.map(Number.call, Number)
|
|
6022
6022
|
.map((n) => {
|
|
6023
|
-
return moment.default(firstDay).add(n, 'd');
|
|
6023
|
+
return moment$1.default(firstDay).add(n, 'd');
|
|
6024
6024
|
});
|
|
6025
6025
|
let n = 0;
|
|
6026
6026
|
while (n < firstDay.weekday()) {
|
|
@@ -6058,8 +6058,8 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6058
6058
|
this.writeValue(this._dateForm.value);
|
|
6059
6059
|
}
|
|
6060
6060
|
navigateToToday() {
|
|
6061
|
-
this._dateFirst = moment.default();
|
|
6062
|
-
this._dateSecond = moment.default().add(1, 'M');
|
|
6061
|
+
this._dateFirst = moment$1.default();
|
|
6062
|
+
this._dateSecond = moment$1.default().add(1, 'M');
|
|
6063
6063
|
this.build();
|
|
6064
6064
|
}
|
|
6065
6065
|
ngOnInit() {
|
|
@@ -6118,14 +6118,14 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6118
6118
|
if (!day) {
|
|
6119
6119
|
return false;
|
|
6120
6120
|
}
|
|
6121
|
-
return moment.default().format('L') === day.format('L');
|
|
6121
|
+
return moment$1.default().format('L') === day.format('L');
|
|
6122
6122
|
}
|
|
6123
6123
|
isSelected(day) {
|
|
6124
6124
|
if (!day) {
|
|
6125
6125
|
return false;
|
|
6126
6126
|
}
|
|
6127
|
-
let startDateMoment = moment.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
6128
|
-
let endDateMoment = moment.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
6127
|
+
let startDateMoment = moment$1.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
|
|
6128
|
+
let endDateMoment = moment$1.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
|
|
6129
6129
|
if (this._dateForm.valid) {
|
|
6130
6130
|
return startDateMoment.isSameOrBefore(day) && endDateMoment.isSameOrAfter(day);
|
|
6131
6131
|
}
|
|
@@ -6136,7 +6136,7 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6136
6136
|
isDisabled(day) {
|
|
6137
6137
|
const { _minDate } = this;
|
|
6138
6138
|
if (_minDate) {
|
|
6139
|
-
const firstDay = moment.default(_minDate);
|
|
6139
|
+
const firstDay = moment$1.default(_minDate);
|
|
6140
6140
|
return day.isBefore(firstDay.subtract(1, 'day'));
|
|
6141
6141
|
}
|
|
6142
6142
|
return false;
|
|
@@ -6157,7 +6157,7 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6157
6157
|
const { _dateForm, _minDate } = this;
|
|
6158
6158
|
let dayFormatted = day.format('YYYY-MM-DD');
|
|
6159
6159
|
if (_minDate) {
|
|
6160
|
-
const firstDay = moment.default(_minDate);
|
|
6160
|
+
const firstDay = moment$1.default(_minDate);
|
|
6161
6161
|
if (day.isBefore(firstDay.subtract(1, 'day')))
|
|
6162
6162
|
return;
|
|
6163
6163
|
}
|
|
@@ -6166,7 +6166,7 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6166
6166
|
}
|
|
6167
6167
|
let { startDate, endDate } = _dateForm.value;
|
|
6168
6168
|
if (startDate) {
|
|
6169
|
-
if (moment.default(startDate).isAfter(moment.default(dayFormatted))) {
|
|
6169
|
+
if (moment$1.default(startDate).isAfter(moment$1.default(dayFormatted))) {
|
|
6170
6170
|
endDate = startDate;
|
|
6171
6171
|
startDate = dayFormatted;
|
|
6172
6172
|
}
|
|
@@ -6189,9 +6189,9 @@ class MonkeyDateRangePickerV2Component {
|
|
|
6189
6189
|
return;
|
|
6190
6190
|
const { _dateForm, _minDate, today, moveDaysForward } = this;
|
|
6191
6191
|
const { startDate } = _dateForm.value;
|
|
6192
|
-
const firstDay = moment.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
6192
|
+
const firstDay = moment$1.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
6193
6193
|
const method = moveDaysForward ? 'add' : 'subtract';
|
|
6194
|
-
const lastDay = moment.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
6194
|
+
const lastDay = moment$1.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
6195
6195
|
if (moveDaysForward) {
|
|
6196
6196
|
_dateForm.get('startDate').patchValue(firstDay);
|
|
6197
6197
|
_dateForm.get('endDate').patchValue(lastDay);
|
|
@@ -6784,7 +6784,8 @@ class MonkeyFileUploadComponent {
|
|
|
6784
6784
|
this._id = `mecx-file-upload-${MonkeyUtils.getRandomString(10)}`;
|
|
6785
6785
|
this._disabled = false;
|
|
6786
6786
|
this._progress = null;
|
|
6787
|
-
this.
|
|
6787
|
+
this._showMaxSizeErrorMessage = false;
|
|
6788
|
+
this._maxSizeErrorMessage = '';
|
|
6788
6789
|
this._allowedExtensionErrorMessage = false;
|
|
6789
6790
|
this._uploadErrorMessage = '';
|
|
6790
6791
|
}
|
|
@@ -6804,7 +6805,9 @@ class MonkeyFileUploadComponent {
|
|
|
6804
6805
|
}
|
|
6805
6806
|
if (configFiles.maxSize) {
|
|
6806
6807
|
if (size > configFiles.maxSize) {
|
|
6807
|
-
this.
|
|
6808
|
+
this._showMaxSizeErrorMessage = true;
|
|
6809
|
+
const formated = MonkeyUtils.formatFileSize(configFiles.maxSize);
|
|
6810
|
+
this._maxSizeErrorMessage = `${this.maxSizeErrorMessage}${formated}`;
|
|
6808
6811
|
return false;
|
|
6809
6812
|
}
|
|
6810
6813
|
}
|
|
@@ -6862,7 +6865,7 @@ class MonkeyFileUploadComponent {
|
|
|
6862
6865
|
onChangeValue(event) {
|
|
6863
6866
|
const { listenFiles } = this;
|
|
6864
6867
|
this._allowedExtensionErrorMessage = false;
|
|
6865
|
-
this.
|
|
6868
|
+
this._showMaxSizeErrorMessage = false;
|
|
6866
6869
|
for (let index = 0; index < event.length; index++) {
|
|
6867
6870
|
const file = event[index];
|
|
6868
6871
|
if (this.validateFile(file)) {
|
|
@@ -6904,7 +6907,7 @@ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
6904
6907
|
{{ helperMessage }}
|
|
6905
6908
|
</helper>
|
|
6906
6909
|
</mecx-form-field-header>
|
|
6907
|
-
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() ||
|
|
6910
|
+
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() || _showMaxSizeErrorMessage">
|
|
6908
6911
|
<input
|
|
6909
6912
|
#fileInput
|
|
6910
6913
|
hidden
|
|
@@ -6943,7 +6946,7 @@ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
6943
6946
|
<error>
|
|
6944
6947
|
{{ errorMessage }}
|
|
6945
6948
|
{{ _uploadErrorMessage }}
|
|
6946
|
-
{{
|
|
6949
|
+
{{ _showMaxSizeErrorMessage ? _maxSizeErrorMessage : null }}
|
|
6947
6950
|
{{
|
|
6948
6951
|
_allowedExtensionErrorMessage ? allowedExtensionErrorMessage : null
|
|
6949
6952
|
}}
|
|
@@ -6965,7 +6968,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
6965
6968
|
{{ helperMessage }}
|
|
6966
6969
|
</helper>
|
|
6967
6970
|
</mecx-form-field-header>
|
|
6968
|
-
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() ||
|
|
6971
|
+
<mecx-form-field-body [class.error]="errorMessage?.trim() || _uploadErrorMessage?.trim() || _showMaxSizeErrorMessage">
|
|
6969
6972
|
<input
|
|
6970
6973
|
#fileInput
|
|
6971
6974
|
hidden
|
|
@@ -7004,7 +7007,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7004
7007
|
<error>
|
|
7005
7008
|
{{ errorMessage }}
|
|
7006
7009
|
{{ _uploadErrorMessage }}
|
|
7007
|
-
{{
|
|
7010
|
+
{{ _showMaxSizeErrorMessage ? _maxSizeErrorMessage : null }}
|
|
7008
7011
|
{{
|
|
7009
7012
|
_allowedExtensionErrorMessage ? allowedExtensionErrorMessage : null
|
|
7010
7013
|
}}
|
|
@@ -7637,6 +7640,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7637
7640
|
* This style guide was developed by Monkey Exchange Team
|
|
7638
7641
|
* MIT Licence
|
|
7639
7642
|
**************************/
|
|
7643
|
+
const moment = moment_;
|
|
7640
7644
|
class MonkeyInputComponent {
|
|
7641
7645
|
constructor(currencyPipe, settingsService, cdr, defaultCurencyCode) {
|
|
7642
7646
|
this.currencyPipe = currencyPipe;
|
|
@@ -7647,16 +7651,36 @@ class MonkeyInputComponent {
|
|
|
7647
7651
|
this.helperMessage = '';
|
|
7648
7652
|
this.placeholder = '';
|
|
7649
7653
|
this.maxLength = 255;
|
|
7650
|
-
this.maxDateToday = false;
|
|
7651
7654
|
this.onChange = new EventEmitter();
|
|
7652
7655
|
this.onModelChange = (value) => { };
|
|
7653
7656
|
this.onModelTouched = (value) => { };
|
|
7654
7657
|
this._id = `mecx-input-${MonkeyUtils.getRandomString(10)}`;
|
|
7655
7658
|
this._disabled = false;
|
|
7656
|
-
this._maxDateToday = new Date().toISOString().split('T')[0];
|
|
7657
7659
|
this._symbol = '';
|
|
7660
|
+
this._maxDate = undefined;
|
|
7658
7661
|
//not to do
|
|
7659
7662
|
}
|
|
7663
|
+
set maxDateToday(value) {
|
|
7664
|
+
try {
|
|
7665
|
+
if (value) {
|
|
7666
|
+
this._maxDate = new Date().toISOString().split('T')[0];
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
catch (e) {
|
|
7670
|
+
// ignore
|
|
7671
|
+
}
|
|
7672
|
+
}
|
|
7673
|
+
set minYears(value) {
|
|
7674
|
+
try {
|
|
7675
|
+
if (value) {
|
|
7676
|
+
this._maxDate = moment.default().subtract(value, 'years').toISOString().split('T')[0];
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
catch (e) {
|
|
7680
|
+
console.log(e);
|
|
7681
|
+
// ignore
|
|
7682
|
+
}
|
|
7683
|
+
}
|
|
7660
7684
|
handleValue(value, apply = false) {
|
|
7661
7685
|
if (this.onlyNumber) {
|
|
7662
7686
|
return MonkeyUtils.handleOnlyNumbers(`${value}`);
|
|
@@ -7777,7 +7801,7 @@ class MonkeyInputComponent {
|
|
|
7777
7801
|
}
|
|
7778
7802
|
}
|
|
7779
7803
|
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 });
|
|
7780
|
-
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: [
|
|
7804
|
+
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: [
|
|
7781
7805
|
{
|
|
7782
7806
|
provide: NG_VALUE_ACCESSOR,
|
|
7783
7807
|
useExisting: forwardRef(() => MonkeyInputComponent),
|
|
@@ -7841,7 +7865,7 @@ MonkeyInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
7841
7865
|
[disabled]="_disabled"
|
|
7842
7866
|
[maxLength]="maxLength"
|
|
7843
7867
|
*ngIf="!mask && !prefix"
|
|
7844
|
-
[max]="
|
|
7868
|
+
[max]="_maxDate"
|
|
7845
7869
|
#monkeyInput
|
|
7846
7870
|
/>
|
|
7847
7871
|
<monkey-icon
|
|
@@ -7928,7 +7952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7928
7952
|
[disabled]="_disabled"
|
|
7929
7953
|
[maxLength]="maxLength"
|
|
7930
7954
|
*ngIf="!mask && !prefix"
|
|
7931
|
-
[max]="
|
|
7955
|
+
[max]="_maxDate"
|
|
7932
7956
|
#monkeyInput
|
|
7933
7957
|
/>
|
|
7934
7958
|
<monkey-icon
|
|
@@ -8005,6 +8029,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8005
8029
|
type: Input
|
|
8006
8030
|
}], maxDateToday: [{
|
|
8007
8031
|
type: Input
|
|
8032
|
+
}], minYears: [{
|
|
8033
|
+
type: Input
|
|
8008
8034
|
}], onChange: [{
|
|
8009
8035
|
type: Output
|
|
8010
8036
|
}], monkeyInput: [{
|