ps-toolkit-ui 1.14.29 → 1.14.31

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.
@@ -4213,12 +4213,12 @@
4213
4213
  var year = parseInt(m.format('jYYYY'), 10);
4214
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
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(false, parseInt(start.format('jYYYY'), 10), parseInt(start.format('jMM'), 10), parseInt(start.format('jDD'), 10), year, month, d);
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);
4218
4218
  return false;
4219
4219
  }
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(false, parseInt(end.format('jYYYY'), 10), parseInt(end.format('jMM'), 10), parseInt(end.format('jDD'), 10), year, month, d);
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
4222
  return false;
4223
4223
  }
4224
4224
  console.log(true, parseInt(end.format('jYYYY'), 10), parseInt(end.format('jMM'), 10), parseInt(end.format('jDD'), 10), year, month, d);