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.
@@ -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, _c, _d;
4211
+ var _a, _b;
4212
4212
  var month = parseInt(m.format('jMM'), 10);
4213
4213
  var year = parseInt(m.format('jYYYY'), 10);
4214
- var start = (_b = (_a = this.inp.allowed.start) === null || _a === void 0 ? void 0 : _a.locale('fa')) !== null && _b !== void 0 ? _b : null;
4215
- var end = (_d = (_c = this.inp.allowed.end) === null || _c === void 0 ? void 0 : _c.locale('fa')) !== null && _d !== void 0 ? _d : null;
4216
- if (start !== null && (parseInt(start.format('jYYYY'), 10) < year || parseInt(start.format('jMM'), 10) < month || parseInt(start.format('jDD'), 10) < d)) {
4217
- console.log('start', false, parseInt(start.format('jYYYY'), 10), parseInt(start.format('jMM'), 10), parseInt(start.format('jDD'), 10), year, month, d);
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 && (parseInt(end.format('jYYYY'), 10) > year || parseInt(end.format('jMM'), 10) > month || parseInt(end.format('jDD'), 10) > d)) {
4221
- console.log('end', false, parseInt(end.format('jYYYY'), 10), parseInt(end.format('jMM'), 10), parseInt(end.format('jDD'), 10), year, month, d);
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) {