@mat-datetimepicker+core+11.0.3.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. diff --git a/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs b/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs
  2. index e3457ea..a069460 100644
  3. --- a/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs
  4. +++ b/node_modules/@mat-datetimepicker/core/esm2020/datetimepicker/clock.mjs
  5. @@ -259,9 +259,9 @@ export class MatDatetimepickerClockComponent {
  6. value = 0;
  7. }
  8. // Don't close the minutes view if an invalid minute is clicked.
  9. - if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
  10. - return;
  11. - }
  12. + // if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
  13. + // return;
  14. + // }
  15. date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), this._adapter.getHour(this.activeDate), value);
  16. }
  17. this._timeChanged = true;
  18. diff --git a/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs b/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs
  19. index 7699ff6..01aad13 100644
  20. --- a/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs
  21. +++ b/node_modules/@mat-datetimepicker/core/fesm2015/mat-datetimepicker-core.mjs
  22. @@ -951,9 +951,9 @@ class MatDatetimepickerClockComponent {
  23. value = 0;
  24. }
  25. // Don't close the minutes view if an invalid minute is clicked.
  26. - if (!((_b = this._minutes.find((m) => (m === null || m === void 0 ? void 0 : m['value']) === value)) === null || _b === void 0 ? void 0 : _b['enabled'])) {
  27. - return;
  28. - }
  29. + // if (!((_b = this._minutes.find((m) => (m === null || m === void 0 ? void 0 : m['value']) === value)) === null || _b === void 0 ? void 0 : _b['enabled'])) {
  30. + // return;
  31. + // }
  32. date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), this._adapter.getHour(this.activeDate), value);
  33. }
  34. this._timeChanged = true;
  35. diff --git a/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs b/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs
  36. index 809a57d..f712b84 100644
  37. --- a/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs
  38. +++ b/node_modules/@mat-datetimepicker/core/fesm2020/mat-datetimepicker-core.mjs
  39. @@ -946,9 +946,9 @@ class MatDatetimepickerClockComponent {
  40. value = 0;
  41. }
  42. // Don't close the minutes view if an invalid minute is clicked.
  43. - if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
  44. - return;
  45. - }
  46. + // if (!this._minutes.find((m) => m?.['value'] === value)?.['enabled']) {
  47. + // return;
  48. + // }
  49. date = this._adapter.createDatetime(this._adapter.getYear(this.activeDate), this._adapter.getMonth(this.activeDate), this._adapter.getDate(this.activeDate), this._adapter.getHour(this.activeDate), value);
  50. }
  51. this._timeChanged = true;