wini-web-components 1.0.8 → 1.0.9

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.
@@ -111,7 +111,7 @@ var Calendar = /** @class */ (function (_super) {
111
111
  if (!(0, exports.inRangeTime)(timeValue, exports.startDate, exports.endDate)) {
112
112
  additionProps = { 'in-range': 'false' };
113
113
  }
114
- else if (!(0, exports.inRangeTime)(timeValue, (_a = _this.props.min) !== null && _a !== void 0 ? _a : exports.startDate, (_b = _this.props.min) !== null && _b !== void 0 ? _b : exports.endDate)) {
114
+ else if (!(0, exports.inRangeTime)(timeValue, (_a = _this.props.min) !== null && _a !== void 0 ? _a : exports.startDate, (_b = _this.props.max) !== null && _b !== void 0 ? _b : exports.endDate)) {
115
115
  style = __assign(__assign({}, style), { color: 'var(--disabled-font-color)', pointerEvents: 'none' });
116
116
  }
117
117
  else if (_this.state.value.valueOf() === timeValue.valueOf()) {
@@ -183,7 +183,7 @@ var Calendar = /** @class */ (function (_super) {
183
183
  if (!(0, exports.inRangeTime)(timeValue, exports.startDate, exports.endDate)) {
184
184
  additionProps = { 'in-range': 'false' };
185
185
  }
186
- else if (!(0, exports.inRangeTime)(new Date(_this.state.selectYear, _this.state.selectMonth), (_a = _this.props.min) !== null && _a !== void 0 ? _a : exports.startDate, (_b = _this.props.min) !== null && _b !== void 0 ? _b : exports.endDate)) {
186
+ else if (!(0, exports.inRangeTime)(new Date(_this.state.selectYear, _this.state.selectMonth), (_a = _this.props.min) !== null && _a !== void 0 ? _a : exports.startDate, (_b = _this.props.max) !== null && _b !== void 0 ? _b : exports.endDate)) {
187
187
  if (_this.state.selectYear === ((_c = _this.state.selectDate) === null || _c === void 0 ? void 0 : _c.getFullYear()) && _this.state.selectDate.getMonth() === i) {
188
188
  style = {
189
189
  color: 'var(--disabled-font-color)',
@@ -218,7 +218,7 @@ var Calendar = /** @class */ (function (_super) {
218
218
  if (yearNumber === exports.today.getFullYear()) {
219
219
  style = { borderColor: 'var(--infor-color)' };
220
220
  }
221
- else if (yearNumber < (((_a = _this.props.min) !== null && _a !== void 0 ? _a : exports.startDate).getFullYear()) || yearNumber > (((_b = _this.props.min) !== null && _b !== void 0 ? _b : exports.endDate).getFullYear())) {
221
+ else if (yearNumber < (((_a = _this.props.min) !== null && _a !== void 0 ? _a : exports.startDate).getFullYear()) || yearNumber > (((_b = _this.props.max) !== null && _b !== void 0 ? _b : exports.endDate).getFullYear())) {
222
222
  additionProps = { 'in-range': 'false' };
223
223
  }
224
224
  if (yearNumber === _this.state.value.getFullYear()) {