monkey-style-guide 2.0.120 → 2.0.121
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/_expansion.scss +5 -0
- package/assets/scss/partials/components/_table.scss +5 -0
- package/esm2020/lib/components/date-range-picker/date-range-picker.component.mjs +9 -9
- package/esm2020/lib/components/expansion/expansion.component.mjs +5 -5
- package/fesm2015/monkey-style-guide.mjs +11 -11
- package/fesm2015/monkey-style-guide.mjs.map +1 -1
- package/fesm2020/monkey-style-guide.mjs +11 -11
- package/fesm2020/monkey-style-guide.mjs.map +1 -1
- package/monkey-style-guide-2.0.121.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.120.tgz +0 -0
|
@@ -3188,9 +3188,9 @@ class MonkeyDateRangePickerComponent {
|
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
isDisabled(day) {
|
|
3191
|
-
const {
|
|
3192
|
-
if (
|
|
3193
|
-
const firstDay = moment.default(
|
|
3191
|
+
const { _minDate } = this;
|
|
3192
|
+
if (_minDate) {
|
|
3193
|
+
const firstDay = moment.default(_minDate);
|
|
3194
3194
|
return day.isBefore(firstDay.subtract(1, 'day'));
|
|
3195
3195
|
}
|
|
3196
3196
|
return false;
|
|
@@ -3208,10 +3208,10 @@ class MonkeyDateRangePickerComponent {
|
|
|
3208
3208
|
selectedDate(day) {
|
|
3209
3209
|
if (this._disabled)
|
|
3210
3210
|
return;
|
|
3211
|
-
const { _dateForm,
|
|
3211
|
+
const { _dateForm, _minDate } = this;
|
|
3212
3212
|
let dayFormatted = day.format('YYYY-MM-DD');
|
|
3213
|
-
if (
|
|
3214
|
-
const firstDay = moment.default(
|
|
3213
|
+
if (_minDate) {
|
|
3214
|
+
const firstDay = moment.default(_minDate);
|
|
3215
3215
|
if (day.isBefore(firstDay.subtract(1, 'day')))
|
|
3216
3216
|
return;
|
|
3217
3217
|
}
|
|
@@ -3241,9 +3241,9 @@ class MonkeyDateRangePickerComponent {
|
|
|
3241
3241
|
selectRangeOfDays(days) {
|
|
3242
3242
|
if (this._disabled)
|
|
3243
3243
|
return;
|
|
3244
|
-
const { _dateForm,
|
|
3244
|
+
const { _dateForm, _minDate, today, moveDaysForward } = this;
|
|
3245
3245
|
const { startDate } = _dateForm.value;
|
|
3246
|
-
const firstDay = moment.default(startDate ||
|
|
3246
|
+
const firstDay = moment.default(startDate || _minDate || today).format('YYYY-MM-DD');
|
|
3247
3247
|
const method = moveDaysForward ? 'add' : 'subtract';
|
|
3248
3248
|
const lastDay = moment.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
|
|
3249
3249
|
if (moveDaysForward) {
|
|
@@ -7435,7 +7435,7 @@ MonkeyExpansionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
7435
7435
|
</helper>
|
|
7436
7436
|
<monkey-icon icon="arrow-up-16" [color]="'#4B4A53'"></monkey-icon>
|
|
7437
7437
|
</mecx-monkey-expansion-header>
|
|
7438
|
-
<mecx-monkey-expansion-body
|
|
7438
|
+
<mecx-monkey-expansion-body [class.open]="open">
|
|
7439
7439
|
<ng-content></ng-content>
|
|
7440
7440
|
</mecx-monkey-expansion-body>
|
|
7441
7441
|
</mecx-monkey-expansion>
|
|
@@ -7474,12 +7474,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
7474
7474
|
</helper>
|
|
7475
7475
|
<monkey-icon icon="arrow-up-16" [color]="'#4B4A53'"></monkey-icon>
|
|
7476
7476
|
</mecx-monkey-expansion-header>
|
|
7477
|
-
<mecx-monkey-expansion-body
|
|
7477
|
+
<mecx-monkey-expansion-body [class.open]="open">
|
|
7478
7478
|
<ng-content></ng-content>
|
|
7479
7479
|
</mecx-monkey-expansion-body>
|
|
7480
7480
|
</mecx-monkey-expansion>
|
|
7481
7481
|
`,
|
|
7482
|
-
encapsulation: ViewEncapsulation.None
|
|
7482
|
+
encapsulation: ViewEncapsulation.None
|
|
7483
7483
|
}]
|
|
7484
7484
|
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
7485
7485
|
type: Input
|