tnx-shared 5.3.203 → 5.3.205

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.
@@ -3167,7 +3167,7 @@ class CommonService {
3167
3167
  // jQuery(".ql-toolbar").find(":button").attr("tabindex", "-1");
3168
3168
  }
3169
3169
  /** End disable editor tab */
3170
- processDateInput(inputValue, showTime, timeOnly = false) {
3170
+ processDateInput(inputValue, showTime, timeOnly = false, view = 'date') {
3171
3171
  if (!inputValue) {
3172
3172
  return null;
3173
3173
  }
@@ -3275,6 +3275,12 @@ class CommonService {
3275
3275
  return tryParseDate;
3276
3276
  }
3277
3277
  }
3278
+ else if (view == 'month') {
3279
+ const tryParseDate = this.tryParseExtractDate(`${inputValue}`, 'MM/YYYY');
3280
+ if (tryParseDate + '' != 'Invalid Date') {
3281
+ return tryParseDate;
3282
+ }
3283
+ }
3278
3284
  else {
3279
3285
  const tryParseDate = this.tryParseExtractDate(inputValue, 'DD/MM/YYYY');
3280
3286
  if (tryParseDate + '' != 'Invalid Date') {
@@ -39680,7 +39686,7 @@ class DatetimePickerComponent {
39680
39686
  autoCorectDateTime(input) {
39681
39687
  if (input != '') {
39682
39688
  const dateValue = this.control.timeOnly ? `01/01/0001 ${input}` : input;
39683
- const result = this._commonService.processDateInput(dateValue, this.control.showTime, this.control.timeOnly);
39689
+ const result = this._commonService.processDateInput(dateValue, this.control.showTime, this.control.timeOnly, this.control.view);
39684
39690
  if (isValidDate(result)) {
39685
39691
  if (this.control.minDate || this.control.maxDate) {
39686
39692
  if (this.control.maxDate) {