ps-toolkit-ui 1.14.32 → 1.14.33
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/bundles/ps-toolkit-ui.umd.js +9 -8
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/date/form.date.component.js +10 -9
- package/fesm2015/ps-toolkit-ui.js +9 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -4208,20 +4208,21 @@
|
|
|
4208
4208
|
return year === this.todayYear && month === this.todayMonth && d === this.todayDay;
|
|
4209
4209
|
};
|
|
4210
4210
|
FormDateComponent.prototype.isActive = function (m, d) {
|
|
4211
|
-
var _a, _b
|
|
4211
|
+
var _a, _b;
|
|
4212
4212
|
var month = parseInt(m.format('jMM'), 10);
|
|
4213
4213
|
var year = parseInt(m.format('jYYYY'), 10);
|
|
4214
|
-
var
|
|
4215
|
-
var
|
|
4216
|
-
|
|
4217
|
-
|
|
4214
|
+
var date = moment__namespace(year + '/' + month + '/' + d, 'jYYYY/jMM/jDD');
|
|
4215
|
+
var start = (_a = this.inp.allowed.start) !== null && _a !== void 0 ? _a : null;
|
|
4216
|
+
var end = (_b = this.inp.allowed.end) !== null && _b !== void 0 ? _b : null;
|
|
4217
|
+
console.log(date, start, end);
|
|
4218
|
+
if (start !== null && date > start) {
|
|
4219
|
+
console.log('start', false);
|
|
4218
4220
|
return false;
|
|
4219
4221
|
}
|
|
4220
|
-
if (end !== null &&
|
|
4221
|
-
console.log('end', false
|
|
4222
|
+
if (end !== null && date < end) {
|
|
4223
|
+
console.log('end', false);
|
|
4222
4224
|
return false;
|
|
4223
4225
|
}
|
|
4224
|
-
console.log(true, parseInt(end.format('jYYYY'), 10), parseInt(end.format('jMM'), 10), parseInt(end.format('jDD'), 10), year, month, d);
|
|
4225
4226
|
return true;
|
|
4226
4227
|
};
|
|
4227
4228
|
FormDateComponent.prototype.isSelected = function (m, d) {
|