@syncfusion/ej2-calendars 19.2.62 → 19.3.53

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.
Files changed (130) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/dist/ej2-calendars.umd.min.js +2 -2
  4. package/dist/ej2-calendars.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-calendars.es2015.js +612 -1062
  6. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  7. package/dist/es6/ej2-calendars.es5.js +609 -1059
  8. package/dist/es6/ej2-calendars.es5.js.map +1 -1
  9. package/dist/global/ej2-calendars.min.js +2 -2
  10. package/dist/global/ej2-calendars.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/calendar/calendar-model.d.ts +1 -10
  14. package/src/calendar/calendar.d.ts +0 -12
  15. package/src/calendar/calendar.js +146 -201
  16. package/src/datepicker/datepicker-model.d.ts +1 -11
  17. package/src/datepicker/datepicker.d.ts +0 -11
  18. package/src/datepicker/datepicker.js +168 -310
  19. package/src/daterangepicker/daterangepicker-model.d.ts +1 -23
  20. package/src/daterangepicker/daterangepicker.d.ts +0 -22
  21. package/src/daterangepicker/daterangepicker.js +19 -19
  22. package/src/datetimepicker/datetimepicker-model.d.ts +1 -14
  23. package/src/datetimepicker/datetimepicker.d.ts +0 -13
  24. package/src/datetimepicker/datetimepicker.js +10 -13
  25. package/src/maskbase/masked-date-time.d.ts +6 -0
  26. package/src/maskbase/masked-date-time.js +35 -1
  27. package/src/timepicker/timepicker-model.d.ts +1 -15
  28. package/src/timepicker/timepicker.d.ts +0 -19
  29. package/src/timepicker/timepicker.js +238 -519
  30. package/styles/bootstrap-dark.css +17 -2
  31. package/styles/bootstrap.css +17 -2
  32. package/styles/bootstrap4.css +17 -2
  33. package/styles/bootstrap5-dark.css +2676 -0
  34. package/styles/bootstrap5-dark.scss +5 -0
  35. package/styles/bootstrap5.css +2676 -0
  36. package/styles/bootstrap5.scss +5 -0
  37. package/styles/calendar/_bootstrap-dark-definition.scss +4 -2
  38. package/styles/calendar/_bootstrap-definition.scss +4 -2
  39. package/styles/calendar/_bootstrap4-definition.scss +4 -2
  40. package/styles/calendar/_bootstrap5-dark-definition.scss +1 -0
  41. package/styles/calendar/_bootstrap5-definition.scss +213 -0
  42. package/styles/calendar/_fabric-dark-definition.scss +3 -0
  43. package/styles/calendar/_fabric-definition.scss +3 -0
  44. package/styles/calendar/_highcontrast-definition.scss +3 -0
  45. package/styles/calendar/_highcontrast-light-definition.scss +3 -0
  46. package/styles/calendar/_layout.scss +8 -0
  47. package/styles/calendar/_material-dark-definition.scss +3 -0
  48. package/styles/calendar/_material-definition.scss +3 -0
  49. package/styles/calendar/_tailwind-dark-definition.scss +1 -220
  50. package/styles/calendar/_tailwind-definition.scss +84 -101
  51. package/styles/calendar/_theme.scss +40 -0
  52. package/styles/calendar/bootstrap-dark.css +17 -2
  53. package/styles/calendar/bootstrap.css +17 -2
  54. package/styles/calendar/bootstrap4.css +17 -2
  55. package/styles/calendar/bootstrap5-dark.css +1038 -0
  56. package/styles/calendar/bootstrap5-dark.scss +5 -0
  57. package/styles/calendar/bootstrap5.css +1038 -0
  58. package/styles/calendar/bootstrap5.scss +5 -0
  59. package/styles/calendar/fabric-dark.css +15 -0
  60. package/styles/calendar/fabric.css +15 -0
  61. package/styles/calendar/highcontrast-light.css +15 -0
  62. package/styles/calendar/highcontrast.css +15 -0
  63. package/styles/calendar/icons/_bootstrap5-dark.scss +1 -0
  64. package/styles/calendar/icons/_bootstrap5.scss +12 -0
  65. package/styles/calendar/icons/_tailwind-dark.scss +1 -13
  66. package/styles/calendar/material-dark.css +28 -13
  67. package/styles/calendar/material.css +15 -0
  68. package/styles/calendar/tailwind-dark.css +17 -2
  69. package/styles/calendar/tailwind.css +17 -2
  70. package/styles/datepicker/_bootstrap5-dark-definition.scss +1 -0
  71. package/styles/datepicker/_bootstrap5-definition.scss +36 -0
  72. package/styles/datepicker/_layout.scss +1 -2
  73. package/styles/datepicker/_tailwind-dark-definition.scss +1 -34
  74. package/styles/datepicker/_tailwind-definition.scss +13 -13
  75. package/styles/datepicker/_theme.scss +2 -2
  76. package/styles/datepicker/bootstrap5-dark.css +177 -0
  77. package/styles/datepicker/bootstrap5-dark.scss +7 -0
  78. package/styles/datepicker/bootstrap5.css +177 -0
  79. package/styles/datepicker/bootstrap5.scss +7 -0
  80. package/styles/datepicker/icons/_bootstrap5-dark.scss +1 -0
  81. package/styles/datepicker/icons/_bootstrap5.scss +55 -0
  82. package/styles/datepicker/icons/_tailwind-dark.scss +1 -55
  83. package/styles/datepicker/material-dark.css +3 -3
  84. package/styles/daterangepicker/_bootstrap5-dark-definition.scss +1 -0
  85. package/styles/daterangepicker/_bootstrap5-definition.scss +222 -0
  86. package/styles/daterangepicker/_layout.scss +2 -2
  87. package/styles/daterangepicker/_tailwind-dark-definition.scss +1 -192
  88. package/styles/daterangepicker/_tailwind-definition.scss +81 -79
  89. package/styles/daterangepicker/_theme.scss +82 -0
  90. package/styles/daterangepicker/bootstrap5-dark.css +1029 -0
  91. package/styles/daterangepicker/bootstrap5-dark.scss +7 -0
  92. package/styles/daterangepicker/bootstrap5.css +1029 -0
  93. package/styles/daterangepicker/bootstrap5.scss +7 -0
  94. package/styles/daterangepicker/icons/_bootstrap5-dark.scss +1 -0
  95. package/styles/daterangepicker/icons/_bootstrap5.scss +67 -0
  96. package/styles/daterangepicker/icons/_tailwind-dark.scss +1 -63
  97. package/styles/daterangepicker/material-dark.css +9 -9
  98. package/styles/datetimepicker/_bootstrap5-dark-definition.scss +1 -0
  99. package/styles/datetimepicker/_bootstrap5-definition.scss +55 -0
  100. package/styles/datetimepicker/_tailwind-dark-definition.scss +1 -53
  101. package/styles/datetimepicker/_tailwind-definition.scss +16 -14
  102. package/styles/datetimepicker/bootstrap5-dark.css +205 -0
  103. package/styles/datetimepicker/bootstrap5-dark.scss +8 -0
  104. package/styles/datetimepicker/bootstrap5.css +205 -0
  105. package/styles/datetimepicker/bootstrap5.scss +8 -0
  106. package/styles/datetimepicker/icons/_bootstrap5-dark.scss +1 -0
  107. package/styles/datetimepicker/icons/_bootstrap5.scss +11 -0
  108. package/styles/datetimepicker/icons/_tailwind-dark.scss +1 -10
  109. package/styles/datetimepicker/material-dark.css +4 -4
  110. package/styles/fabric-dark.css +15 -0
  111. package/styles/fabric.css +15 -0
  112. package/styles/highcontrast-light.css +15 -0
  113. package/styles/highcontrast.css +15 -0
  114. package/styles/material-dark.css +48 -33
  115. package/styles/material.css +15 -0
  116. package/styles/tailwind-dark.css +17 -2
  117. package/styles/tailwind.css +17 -2
  118. package/styles/timepicker/_bootstrap5-dark-definition.scss +1 -0
  119. package/styles/timepicker/_bootstrap5-definition.scss +52 -0
  120. package/styles/timepicker/_tailwind-dark-definition.scss +1 -48
  121. package/styles/timepicker/_tailwind-definition.scss +19 -17
  122. package/styles/timepicker/_theme.scss +1 -1
  123. package/styles/timepicker/bootstrap5-dark.css +223 -0
  124. package/styles/timepicker/bootstrap5-dark.scss +6 -0
  125. package/styles/timepicker/bootstrap5.css +223 -0
  126. package/styles/timepicker/bootstrap5.scss +6 -0
  127. package/styles/timepicker/icons/_bootstrap5-dark.scss +1 -0
  128. package/styles/timepicker/icons/_bootstrap5.scss +13 -0
  129. package/styles/timepicker/icons/_tailwind-dark.scss +1 -12
  130. package/styles/timepicker/material-dark.css +4 -4
@@ -1,4 +1,4 @@
1
- import { Animation, Browser, ChildProperty, Collection, Component, Event, EventHandler, HijriParser, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, addClass, append, attributes, blazorCultureFormats, cldrData, closest, createElement, detach, extend, formatUnit, getDefaultDateObject, getUniqueID, getValue, isBlazor, isNullOrUndefined, isUndefined, merge, prepend, remove, removeClass, rippleEffect, select, setStyleAttribute, setValue, throwError } from '@syncfusion/ej2-base';
1
+ import { Animation, Browser, ChildProperty, Collection, Component, Event, EventHandler, HijriParser, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, addClass, append, attributes, cldrData, closest, createElement, detach, extend, formatUnit, getDefaultDateObject, getUniqueID, getValue, isNullOrUndefined, isUndefined, merge, prepend, remove, removeClass, rippleEffect, select, setStyleAttribute, setValue, throwError } from '@syncfusion/ej2-base';
2
2
  import { Popup } from '@syncfusion/ej2-popups';
3
3
  import { Input } from '@syncfusion/ej2-inputs';
4
4
  import { Button } from '@syncfusion/ej2-buttons';
@@ -301,7 +301,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
301
301
  CalendarBase.prototype.getCultureValues = function () {
302
302
  var culShortNames = [];
303
303
  var cldrObj;
304
- var dayFormat = (isBlazor() ? 'days.' : 'days.stand-alone.') + this.dayHeaderFormat.toLowerCase();
304
+ var dayFormat = 'days.stand-alone.' + this.dayHeaderFormat.toLowerCase();
305
305
  if (this.locale === 'en' || this.locale === 'en-US') {
306
306
  cldrObj = (getValue(dayFormat, getDefaultDateObject()));
307
307
  }
@@ -410,17 +410,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
410
410
  }
411
411
  };
412
412
  CalendarBase.prototype.wireEvents = function (id, ref, keyConfig, moduleName) {
413
- if (!(isBlazor() && ref)) {
414
- EventHandler.add(this.headerTitleElement, 'click', this.navigateTitle, this);
415
- this.defaultKeyConfigs = extend(this.defaultKeyConfigs, this.keyConfigs);
416
- }
417
- else {
418
- this.element = document.getElementById(id);
419
- this.defaultKeyConfigs = this.getDefaultKeyConfig();
420
- this.defaultKeyConfigs = extend(this.defaultKeyConfigs, keyConfig);
421
- this.blazorRef = ref;
422
- this.serverModuleName = moduleName;
423
- }
413
+ EventHandler.add(this.headerTitleElement, 'click', this.navigateTitle, this);
414
+ this.defaultKeyConfigs = extend(this.defaultKeyConfigs, this.keyConfigs);
424
415
  if (this.getModuleName() === 'calendar') {
425
416
  this.keyboardModule = new KeyboardEvents(this.element, {
426
417
  eventName: 'keydown',
@@ -439,7 +430,6 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
439
430
  CalendarBase.prototype.dateWireEvents = function (id, ref, keyConfig, moduleName) {
440
431
  this.defaultKeyConfigs = this.getDefaultKeyConfig();
441
432
  this.defaultKeyConfigs = extend(this.defaultKeyConfigs, keyConfig);
442
- this.blazorRef = ref;
443
433
  this.serverModuleName = moduleName;
444
434
  };
445
435
  CalendarBase.prototype.todayButtonClick = function (e, value, isCustomDate) {
@@ -470,21 +460,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
470
460
  this.renderDayCellArgs = null;
471
461
  this.calendarElement = this.tableBodyElement = this.footer = this.tableHeadElement = this.nextIcon = this.previousIcon = this.table = null;
472
462
  };
473
- CalendarBase.prototype.checkDeviceMode = function (ref) {
474
- if (Browser.isDevice && isBlazor() && ref) {
475
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
476
- ref.invokeMethodAsync('OnDevice', true);
477
- }
478
- };
479
463
  CalendarBase.prototype.keyActionHandle = function (e, value, multiSelection) {
480
- if (isBlazor() && this.blazorRef) {
481
- e.preventDefault();
482
- if (!this.tableBodyElement) {
483
- this.element = closest(e.target, '.' + 'e-calendar');
484
- this.tableBodyElement = this.element.querySelector('tbody');
485
- }
486
- multiSelection = false;
487
- }
488
464
  var focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
489
465
  var selectedDate;
490
466
  if (multiSelection) {
@@ -498,147 +474,124 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
498
474
  else {
499
475
  selectedDate = this.tableBodyElement.querySelector('tr td.e-selected');
500
476
  }
501
- if (isBlazor() && this.blazorRef) {
502
- this.tableBodyElement.focus();
503
- var targetEle = e.target;
504
- var args = {
505
- Action: e.action, Key: e.key, Events: e,
506
- SelectDate: selectedDate ? selectedDate.id : null,
507
- FocusedDate: focusedDate ? focusedDate.id : null,
508
- classList: selectedDate ? selectedDate.classList.toString() : focusedDate ? focusedDate.classList.toString() : 'e-cell',
509
- Id: focusedDate ? focusedDate.id : selectedDate ? selectedDate.id : null,
510
- TargetClassList: targetEle.classList.toString()
511
- };
512
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
513
- this.blazorRef.invokeMethodAsync('OnCalendarKeyboardEvent', args);
514
- if (targetEle.classList.contains('e-today')) {
515
- targetEle.blur();
516
- this.tableBodyElement.focus();
517
- }
518
- if (this.serverModuleName === 'sf.calendars.Calendar') {
519
- this.tableBodyElement = null;
520
- }
521
- }
522
- else {
523
- var view = this.getViewNumber(this.currentView());
524
- var depthValue = this.getViewNumber(this.depth);
525
- var levelRestrict = (view === depthValue && this.getViewNumber(this.start) >= depthValue);
526
- this.effect = '';
527
- switch (e.action) {
528
- case 'moveLeft':
529
- this.keyboardNavigate(-1, view, e, this.max, this.min);
530
- e.preventDefault();
531
- break;
532
- case 'moveRight':
533
- this.keyboardNavigate(1, view, e, this.max, this.min);
534
- e.preventDefault();
535
- break;
536
- case 'moveUp':
537
- if (view === 0) {
538
- this.keyboardNavigate(-7, view, e, this.max, this.min); // move the current date to the previous seven days.
539
- }
540
- else {
541
- this.keyboardNavigate(-4, view, e, this.max, this.min); // move the current year to the previous four days.
542
- }
543
- e.preventDefault();
544
- break;
545
- case 'moveDown':
546
- if (view === 0) {
547
- this.keyboardNavigate(7, view, e, this.max, this.min);
548
- }
549
- else {
550
- this.keyboardNavigate(4, view, e, this.max, this.min);
551
- }
552
- e.preventDefault();
553
- break;
554
- case 'select':
555
- if (e.target === this.todayElement) {
556
- this.todayButtonClick(e, value);
557
- }
558
- else {
559
- var element = !isNullOrUndefined(focusedDate) ? focusedDate : selectedDate;
560
- if (!isNullOrUndefined(element) && !element.classList.contains(DISABLED)) {
561
- if (levelRestrict) {
562
- // eslint-disable-next-line radix
563
- var d = new Date(parseInt('' + (element).id, 0));
564
- this.selectDate(e, d, (element));
565
- }
566
- else {
567
- this.contentClick(null, --view, (element), value);
568
- }
477
+ var view = this.getViewNumber(this.currentView());
478
+ var depthValue = this.getViewNumber(this.depth);
479
+ var levelRestrict = (view === depthValue && this.getViewNumber(this.start) >= depthValue);
480
+ this.effect = '';
481
+ switch (e.action) {
482
+ case 'moveLeft':
483
+ this.keyboardNavigate(-1, view, e, this.max, this.min);
484
+ e.preventDefault();
485
+ break;
486
+ case 'moveRight':
487
+ this.keyboardNavigate(1, view, e, this.max, this.min);
488
+ e.preventDefault();
489
+ break;
490
+ case 'moveUp':
491
+ if (view === 0) {
492
+ this.keyboardNavigate(-7, view, e, this.max, this.min); // move the current date to the previous seven days.
493
+ }
494
+ else {
495
+ this.keyboardNavigate(-4, view, e, this.max, this.min); // move the current year to the previous four days.
496
+ }
497
+ e.preventDefault();
498
+ break;
499
+ case 'moveDown':
500
+ if (view === 0) {
501
+ this.keyboardNavigate(7, view, e, this.max, this.min);
502
+ }
503
+ else {
504
+ this.keyboardNavigate(4, view, e, this.max, this.min);
505
+ }
506
+ e.preventDefault();
507
+ break;
508
+ case 'select':
509
+ if (e.target === this.todayElement) {
510
+ this.todayButtonClick(e, value);
511
+ }
512
+ else {
513
+ var element = !isNullOrUndefined(focusedDate) ? focusedDate : selectedDate;
514
+ if (!isNullOrUndefined(element) && !element.classList.contains(DISABLED)) {
515
+ if (levelRestrict) {
516
+ // eslint-disable-next-line radix
517
+ var d = new Date(parseInt('' + (element).id, 0));
518
+ this.selectDate(e, d, (element));
519
+ }
520
+ else {
521
+ this.contentClick(null, --view, (element), value);
569
522
  }
570
523
  }
571
- break;
572
- case 'controlUp':
573
- this.title();
574
- e.preventDefault();
575
- break;
576
- case 'controlDown':
577
- if (!isNullOrUndefined(focusedDate) || !isNullOrUndefined(selectedDate) && !levelRestrict) {
578
- this.contentClick(null, --view, (focusedDate || selectedDate), value);
579
- }
580
- e.preventDefault();
581
- break;
582
- case 'home':
583
- this.currentDate = this.firstDay(this.currentDate);
584
- detach(this.tableBodyElement);
585
- if (view === 0) {
586
- this.renderMonths(e);
587
- }
588
- else if (view === 1) {
589
- this.renderYears(e);
590
- }
591
- else {
592
- this.renderDecades(e);
593
- }
594
- e.preventDefault();
595
- break;
596
- case 'end':
597
- this.currentDate = this.lastDay(this.currentDate, view);
598
- detach(this.tableBodyElement);
599
- if (view === 0) {
600
- this.renderMonths(e);
601
- }
602
- else if (view === 1) {
603
- this.renderYears(e);
604
- }
605
- else {
606
- this.renderDecades(e);
607
- }
608
- e.preventDefault();
609
- break;
610
- case 'pageUp':
611
- this.addMonths(this.currentDate, -1);
612
- this.navigateTo('Month', this.currentDate);
613
- e.preventDefault();
614
- break;
615
- case 'pageDown':
616
- this.addMonths(this.currentDate, 1);
617
- this.navigateTo('Month', this.currentDate);
618
- e.preventDefault();
619
- break;
620
- case 'shiftPageUp':
621
- this.addYears(this.currentDate, -1);
622
- this.navigateTo('Month', this.currentDate);
623
- e.preventDefault();
624
- break;
625
- case 'shiftPageDown':
626
- this.addYears(this.currentDate, 1);
627
- this.navigateTo('Month', this.currentDate);
628
- e.preventDefault();
629
- break;
630
- case 'controlHome':
631
- this.navigateTo('Month', new Date(this.currentDate.getFullYear(), 0, 1));
632
- e.preventDefault();
633
- break;
634
- case 'controlEnd':
635
- this.navigateTo('Month', new Date(this.currentDate.getFullYear(), 11, 31));
636
- e.preventDefault();
637
- break;
638
- }
639
- if (this.getModuleName() === 'calendar') {
640
- this.table.focus();
641
- }
524
+ }
525
+ break;
526
+ case 'controlUp':
527
+ this.title();
528
+ e.preventDefault();
529
+ break;
530
+ case 'controlDown':
531
+ if (!isNullOrUndefined(focusedDate) || !isNullOrUndefined(selectedDate) && !levelRestrict) {
532
+ this.contentClick(null, --view, (focusedDate || selectedDate), value);
533
+ }
534
+ e.preventDefault();
535
+ break;
536
+ case 'home':
537
+ this.currentDate = this.firstDay(this.currentDate);
538
+ detach(this.tableBodyElement);
539
+ if (view === 0) {
540
+ this.renderMonths(e);
541
+ }
542
+ else if (view === 1) {
543
+ this.renderYears(e);
544
+ }
545
+ else {
546
+ this.renderDecades(e);
547
+ }
548
+ e.preventDefault();
549
+ break;
550
+ case 'end':
551
+ this.currentDate = this.lastDay(this.currentDate, view);
552
+ detach(this.tableBodyElement);
553
+ if (view === 0) {
554
+ this.renderMonths(e);
555
+ }
556
+ else if (view === 1) {
557
+ this.renderYears(e);
558
+ }
559
+ else {
560
+ this.renderDecades(e);
561
+ }
562
+ e.preventDefault();
563
+ break;
564
+ case 'pageUp':
565
+ this.addMonths(this.currentDate, -1);
566
+ this.navigateTo('Month', this.currentDate);
567
+ e.preventDefault();
568
+ break;
569
+ case 'pageDown':
570
+ this.addMonths(this.currentDate, 1);
571
+ this.navigateTo('Month', this.currentDate);
572
+ e.preventDefault();
573
+ break;
574
+ case 'shiftPageUp':
575
+ this.addYears(this.currentDate, -1);
576
+ this.navigateTo('Month', this.currentDate);
577
+ e.preventDefault();
578
+ break;
579
+ case 'shiftPageDown':
580
+ this.addYears(this.currentDate, 1);
581
+ this.navigateTo('Month', this.currentDate);
582
+ e.preventDefault();
583
+ break;
584
+ case 'controlHome':
585
+ this.navigateTo('Month', new Date(this.currentDate.getFullYear(), 0, 1));
586
+ e.preventDefault();
587
+ break;
588
+ case 'controlEnd':
589
+ this.navigateTo('Month', new Date(this.currentDate.getFullYear(), 11, 31));
590
+ e.preventDefault();
591
+ break;
592
+ }
593
+ if (this.getModuleName() === 'calendar') {
594
+ this.table.focus();
642
595
  }
643
596
  };
644
597
  CalendarBase.prototype.keyboardNavigate = function (number, currentView, e, max, min) {
@@ -762,12 +715,12 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
762
715
  }
763
716
  minMaxDate = new Date(+localDate);
764
717
  localDate = this.minMaxDate(localDate);
765
- var dateFormatOptions = { type: 'dateTime', skeleton: isBlazor() ? 'D' : 'full' };
718
+ var dateFormatOptions = { type: 'dateTime', skeleton: 'full' };
766
719
  var date = this.globalize.parseDate(this.globalize.formatDate(localDate, dateFormatOptions), dateFormatOptions);
767
720
  var tdEle = this.dayCell(localDate);
768
- var title = this.globalize.formatDate(localDate, { type: 'date', skeleton: isBlazor() ? 'D' : 'full' });
721
+ var title = this.globalize.formatDate(localDate, { type: 'date', skeleton: 'full' });
769
722
  var dayLink = this.createElement('span');
770
- dayLink.textContent = this.globalize.formatDate(localDate, { format: 'd', type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' });
723
+ dayLink.textContent = this.globalize.formatDate(localDate, { format: 'd', type: 'date', skeleton: 'yMd' });
771
724
  var disabled = (this.min > localDate) || (this.max < localDate);
772
725
  if (disabled) {
773
726
  addClass([tdEle], DISABLED);
@@ -797,8 +750,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
797
750
  if (multiSelection) {
798
751
  if (!isNullOrUndefined(values) && values.length > 0) {
799
752
  for (var index = 0; index < values.length; index++) {
800
- var localDateString = +new Date(this.globalize.formatDate(argument.date, { type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' }));
801
- var tempDateString = +new Date(this.globalize.formatDate(values[index], { type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' }));
753
+ var localDateString = +new Date(this.globalize.formatDate(argument.date, { type: 'date', skeleton: 'yMd' }));
754
+ var tempDateString = +new Date(this.globalize.formatDate(values[index], { type: 'date', skeleton: 'yMd' }));
802
755
  if (localDateString === tempDateString) {
803
756
  values.splice(index, 1);
804
757
  index = -1;
@@ -829,7 +782,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
829
782
  if (multiSelection && !isNullOrUndefined(values) && !disabledCls) {
830
783
  for (var tempValue = 0; tempValue < values.length; tempValue++) {
831
784
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
832
- var formatOptions = { format: this.getFromatStringValue(), type: 'date', skeleton: 'short', calendar: type };
785
+ var formatOptions = { format: null, type: 'date', skeleton: 'short', calendar: type };
833
786
  var localDateString = this.globalize.formatDate(localDate, formatOptions);
834
787
  var tempDateString = this.globalize.formatDate(values[tempValue], formatOptions);
835
788
  if ((localDateString === tempDateString && this.getDateVal(localDate, values[tempValue]))
@@ -896,7 +849,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
896
849
  var localMonth = (value && (value).getMonth() === localDate.getMonth());
897
850
  var select$$1 = (value && (value).getFullYear() === yr && localMonth);
898
851
  dayLink.textContent = this.toCapitalize(this.globalize.formatDate(localDate, {
899
- format: isBlazor() ? 'MMM' : null, type: 'dateTime', skeleton: 'MMM'
852
+ format: null, type: 'dateTime', skeleton: 'MMM'
900
853
  }));
901
854
  if ((this.min && (curYrs < minYr || (month < minMonth && curYrs === minYr))) || (this.max && (curYrs > maxYr || (month > maxMonth && curYrs >= maxYr)))) {
902
855
  addClass([tdEle], DISABLED);
@@ -933,9 +886,9 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
933
886
  var startFullYr = startYr.getFullYear();
934
887
  var endFullYr = endYr.getFullYear();
935
888
  var startHdrYr = this.globalize.formatDate(startYr, {
936
- format: isBlazor() ? 'yyyy' : null, type: 'dateTime', skeleton: 'y'
889
+ format: null, type: 'dateTime', skeleton: 'y'
937
890
  });
938
- var endHdrYr = this.globalize.formatDate(endYr, { format: isBlazor() ? 'yyyy' : null, type: 'dateTime', skeleton: 'y' });
891
+ var endHdrYr = this.globalize.formatDate(endYr, { format: null, type: 'dateTime', skeleton: 'y' });
939
892
  this.headerTitleElement.textContent = startHdrYr + ' - ' + (endHdrYr);
940
893
  var start = new Date(localYr - (localYr % 10) - 1, 0, 1);
941
894
  var startYear = start.getFullYear();
@@ -946,7 +899,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
946
899
  attributes(tdEle, { 'role': 'gridcell' });
947
900
  var dayLink = this.createElement('span');
948
901
  dayLink.textContent = this.globalize.formatDate(localDate, {
949
- format: isBlazor() ? 'yyyy' : null, type: 'dateTime', skeleton: 'y'
902
+ format: null, type: 'dateTime', skeleton: 'y'
950
903
  });
951
904
  if ((year < startFullYr) || (year > endFullYr)) {
952
905
  addClass([tdEle], OTHERDECADE);
@@ -980,7 +933,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
980
933
  };
981
934
  CalendarBase.prototype.dayCell = function (localDate) {
982
935
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
983
- var dateFormatOptions = { skeleton: isBlazor() ? 'F' : 'full', type: 'dateTime', calendar: type };
936
+ var dateFormatOptions = { skeleton: 'full', type: 'dateTime', calendar: type };
984
937
  var date = this.globalize.parseDate(this.globalize.formatDate(localDate, dateFormatOptions), dateFormatOptions);
985
938
  var value = date.valueOf();
986
939
  var attrs = {
@@ -1365,15 +1318,15 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1365
1318
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1366
1319
  var tempValueString = void 0;
1367
1320
  if (this.calendarMode === 'Gregorian') {
1368
- tempValueString = this.globalize.formatDate(tempValue, { type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' });
1321
+ tempValueString = this.globalize.formatDate(tempValue, { type: 'date', skeleton: 'yMd' });
1369
1322
  }
1370
1323
  else {
1371
1324
  tempValueString = this.globalize.formatDate(tempValue, { type: 'dateTime', skeleton: 'full', calendar: 'islamic' });
1372
1325
  }
1373
- var minFormatOption = { type: 'date', skeleton: isBlazor() ? 'd' : 'yMd', calendar: type };
1326
+ var minFormatOption = { type: 'date', skeleton: 'yMd', calendar: type };
1374
1327
  var minStringValue = this.globalize.formatDate(this.min, minFormatOption);
1375
1328
  var minString = minStringValue;
1376
- var maxFormatOption = { type: 'date', skeleton: isBlazor() ? 'd' : 'yMd', calendar: type };
1329
+ var maxFormatOption = { type: 'date', skeleton: 'yMd', calendar: type };
1377
1330
  var maxStringValue = this.globalize.formatDate(this.max, maxFormatOption);
1378
1331
  var maxString = maxStringValue;
1379
1332
  if (+new Date(tempValueString) < +new Date(minString) ||
@@ -1407,9 +1360,9 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1407
1360
  var monthFormatOptions;
1408
1361
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1409
1362
  if (this.calendarMode === 'Gregorian') {
1410
- dayFormatOptions = globalize.formatDate(date, { type: 'dateTime', skeleton: isBlazor() ? 'y' : 'yMMMM', calendar: type });
1363
+ dayFormatOptions = globalize.formatDate(date, { type: 'dateTime', skeleton: 'yMMMM', calendar: type });
1411
1364
  monthFormatOptions = globalize.formatDate(date, {
1412
- format: isBlazor() ? 'yyyy' : null, type: 'dateTime', skeleton: 'y', calendar: type
1365
+ format: null, type: 'dateTime', skeleton: 'y', calendar: type
1413
1366
  });
1414
1367
  }
1415
1368
  else {
@@ -1432,11 +1385,11 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1432
1385
  var title;
1433
1386
  var view = this.currentView();
1434
1387
  if (view === 'Month') {
1435
- title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: isBlazor() ? 'D' : 'full', calendar: type });
1388
+ title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'full', calendar: type });
1436
1389
  }
1437
1390
  else if (view === 'Year') {
1438
1391
  if (type !== 'islamic') {
1439
- title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: isBlazor() ? 'y' : 'yMMMM', calendar: type });
1392
+ title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'yMMMM', calendar: type });
1440
1393
  }
1441
1394
  else {
1442
1395
  title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'GyMMM', calendar: type });
@@ -1444,7 +1397,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1444
1397
  }
1445
1398
  else {
1446
1399
  title = this.globalize.formatDate(this.currentDate, {
1447
- format: isBlazor() ? 'yyyy' : null, type: 'date', skeleton: 'y', calendar: type
1400
+ format: null, type: 'date', skeleton: 'y', calendar: type
1448
1401
  });
1449
1402
  }
1450
1403
  if (selectedEle || focusedEle) {
@@ -1642,11 +1595,9 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1642
1595
  };
1643
1596
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1644
1597
  CalendarBase.prototype.getCultureObjects = function (ld, c) {
1645
- var gregorianFormat = (isBlazor() ? '.dates.days.' :
1646
- '.dates.calendars.gregorian.days.format.') + this.dayHeaderFormat.toLowerCase();
1647
- var islamicFormat = (isBlazor() ? '.dates.days.' :
1648
- '.dates.calendars.islamic.days.format.') + this.dayHeaderFormat.toLowerCase();
1649
- var mainVal = isBlazor() ? '' : 'main.';
1598
+ var gregorianFormat = '.dates.calendars.gregorian.days.format.' + this.dayHeaderFormat.toLowerCase();
1599
+ var islamicFormat = '.dates.calendars.islamic.days.format.' + this.dayHeaderFormat.toLowerCase();
1600
+ var mainVal = 'main.';
1650
1601
  if (this.calendarMode === 'Gregorian') {
1651
1602
  return getValue(mainVal + '' + this.locale + gregorianFormat, ld);
1652
1603
  }
@@ -1698,7 +1649,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1698
1649
  eve = element;
1699
1650
  }
1700
1651
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1701
- var dateFormatOptions = { type: 'dateTime', skeleton: isBlazor() ? 'F' : 'full', calendar: type };
1652
+ var dateFormatOptions = { type: 'dateTime', skeleton: 'full', calendar: type };
1702
1653
  // eslint-disable-next-line radix
1703
1654
  var dateString = this.globalize.formatDate(new Date(parseInt('' + eve.getAttribute('id'), 0)), dateFormatOptions);
1704
1655
  var date = this.globalize.parseDate(dateString, dateFormatOptions);
@@ -1766,7 +1717,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1766
1717
  removeClass([element], SELECTED);
1767
1718
  for (var i = 0; i < copyValues.length; i++) {
1768
1719
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1769
- var formatOptions = { format: this.getFromatStringValue(), type: 'date', skeleton: 'short', calendar: type };
1720
+ var formatOptions = { format: null, type: 'date', skeleton: 'short', calendar: type };
1770
1721
  var localDateString = this.globalize.formatDate(date, formatOptions);
1771
1722
  var tempDateString = this.globalize.formatDate(copyValues[i], formatOptions);
1772
1723
  if (localDateString === tempDateString) {
@@ -1786,22 +1737,16 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1786
1737
  }
1787
1738
  this.isDateSelected = true;
1788
1739
  };
1789
- CalendarBase.prototype.getFromatStringValue = function () {
1790
- return isBlazor() ?
1791
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1792
- 'M' + getDefaultDateObject().dateSeperator + 'd' + getDefaultDateObject().dateSeperator + 'yy'
1793
- : null;
1794
- };
1795
1740
  CalendarBase.prototype.checkPresentDate = function (dates, values) {
1796
1741
  var previousValue = false;
1797
1742
  if (!isNullOrUndefined(values)) {
1798
1743
  for (var checkPrevious = 0; checkPrevious < values.length; checkPrevious++) {
1799
1744
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1800
1745
  var localDateString = this.globalize.formatDate(dates, {
1801
- format: this.getFromatStringValue(), type: 'date', skeleton: 'short', calendar: type
1746
+ format: null, type: 'date', skeleton: 'short', calendar: type
1802
1747
  });
1803
1748
  var tempDateString = this.globalize.formatDate(values[checkPrevious], {
1804
- format: this.getFromatStringValue(), type: 'date', skeleton: 'short', calendar: type
1749
+ format: null, type: 'date', skeleton: 'short', calendar: type
1805
1750
  });
1806
1751
  if (localDateString === tempDateString) {
1807
1752
  previousValue = true;
@@ -3126,7 +3071,6 @@ var ERROR = 'e-error';
3126
3071
  var ACTIVE = 'e-active';
3127
3072
  var OVERFLOW = 'e-date-overflow';
3128
3073
  var DATEICON = 'e-date-icon';
3129
- var CLEARICON = 'e-clear-icon';
3130
3074
  var ICONS = 'e-icons';
3131
3075
  var OPENDURATION = 300;
3132
3076
  var OFFSETVALUE = 4;
@@ -3162,7 +3106,6 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3162
3106
  _this.isDateIconClicked = false;
3163
3107
  _this.isAltKeyPressed = false;
3164
3108
  _this.isInteracted = true;
3165
- _this.isBlazorServer = false;
3166
3109
  _this.invalidValueString = null;
3167
3110
  _this.checkPreviousValue = null;
3168
3111
  _this.maskedDateValue = '';
@@ -3184,9 +3127,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3184
3127
  this.initialize();
3185
3128
  this.bindEvents();
3186
3129
  this.renderComplete();
3187
- if (!this.isBlazorServer) {
3188
- this.setTimeZone(this.serverTimezoneOffset);
3189
- }
3130
+ this.setTimeZone(this.serverTimezoneOffset);
3190
3131
  };
3191
3132
  DatePicker.prototype.setTimeZone = function (offsetValue) {
3192
3133
  if (!isNullOrUndefined(this.serverTimezoneOffset) && this.value) {
@@ -3228,36 +3169,18 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3228
3169
  }
3229
3170
  };
3230
3171
  DatePicker.prototype.initialize = function () {
3231
- if (!this.isBlazorServer) {
3232
- if (this.enableMask) {
3233
- this.notify("createMask", {
3234
- module: "MaskedDateTime",
3235
- });
3236
- }
3237
- this.checkInvalidValue(this.value);
3238
- this.createInput();
3239
- this.updateHtmlAttributeToWrapper();
3240
- this.setAllowEdit();
3241
- this.updateInput();
3242
- if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType == 'Always' || !this.floatLabelType || !this.placeholder)) {
3243
- this.updateInputValue(this.maskedDateValue);
3244
- }
3245
- }
3246
- else {
3247
- var parentElement = this.element.parentElement;
3248
- this.inputWrapper = {
3249
- container: parentElement,
3250
- clearButton: parentElement.querySelector('.' + CLEARICON),
3251
- buttons: [parentElement.querySelector('.' + DATEICON)]
3252
- };
3253
- Input.bindInitialEvent({
3254
- element: this.inputElement,
3255
- floatLabelType: this.floatLabelType
3172
+ if (this.enableMask) {
3173
+ this.notify("createMask", {
3174
+ module: "MaskedDateTime",
3256
3175
  });
3257
- if (this.showClearButton && this.inputWrapper.clearButton) {
3258
- Input.wireClearBtnEvents(this.inputElement, this.inputWrapper.clearButton, this.inputWrapper.container);
3259
- }
3260
- this.setAllowEdit();
3176
+ }
3177
+ this.checkInvalidValue(this.value);
3178
+ this.createInput();
3179
+ this.updateHtmlAttributeToWrapper();
3180
+ this.setAllowEdit();
3181
+ this.updateInput();
3182
+ if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType == 'Always' || !this.floatLabelType || !this.placeholder)) {
3183
+ this.updateInputValue(this.maskedDateValue);
3261
3184
  }
3262
3185
  this.previousElementValue = this.inputElement.value;
3263
3186
  this.previousDate = !isNullOrUndefined(this.value) ? new Date(+this.value) : null;
@@ -3319,9 +3242,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3319
3242
  if (isDynamic === void 0) { isDynamic = false; }
3320
3243
  var formatOptions;
3321
3244
  if (this.value && !this.isCalendar() && !isDynamic) {
3322
- if (!this.isBlazorServer) {
3323
- this.disabledDates();
3324
- }
3245
+ this.disabledDates();
3325
3246
  }
3326
3247
  if (isNaN(+new Date(this.checkValue(this.value)))) {
3327
3248
  this.setProperties({ value: null }, true);
@@ -3339,7 +3260,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3339
3260
  if (this.getModuleName() === 'datetimepicker') {
3340
3261
  if (this.calendarMode === 'Gregorian') {
3341
3262
  dateString = this.globalize.formatDate(this.value, {
3342
- format: tempFormat, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
3263
+ format: tempFormat, type: 'dateTime', skeleton: 'yMd'
3343
3264
  });
3344
3265
  }
3345
3266
  else {
@@ -3350,7 +3271,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3350
3271
  }
3351
3272
  else {
3352
3273
  if (this.calendarMode === 'Gregorian') {
3353
- formatOptions = { format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3274
+ formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd' };
3354
3275
  }
3355
3276
  else {
3356
3277
  formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -3404,8 +3325,8 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3404
3325
  if (this.getModuleName() === 'datetimepicker') {
3405
3326
  var culture = new Internationalization(this.locale);
3406
3327
  if (this.calendarMode === 'Gregorian') {
3407
- formatOptions = { format: this.dateTimeFormat, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3408
- formatDateTime = { format: culture.getDatePattern({ skeleton: isBlazor() ? 'd' : 'yMd' }), type: 'dateTime' };
3328
+ formatOptions = { format: this.dateTimeFormat, type: 'dateTime', skeleton: 'yMd' };
3329
+ formatDateTime = { format: culture.getDatePattern({ skeleton: 'yMd' }), type: 'dateTime' };
3409
3330
  }
3410
3331
  else {
3411
3332
  formatOptions = { format: this.dateTimeFormat, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -3414,7 +3335,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3414
3335
  }
3415
3336
  else {
3416
3337
  if (this.calendarMode === 'Gregorian') {
3417
- formatOptions = { format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3338
+ formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd' };
3418
3339
  }
3419
3340
  else {
3420
3341
  formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -3438,8 +3359,8 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3438
3359
  if (this.getModuleName() === 'datetimepicker') {
3439
3360
  var culture = new Internationalization(this.locale);
3440
3361
  if (this.calendarMode === 'Gregorian') {
3441
- formatOptions = { format: this.dateTimeFormat, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3442
- formatDateTime = { format: culture.getDatePattern({ skeleton: isBlazor() ? 'd' : 'yMd' }), type: 'dateTime' };
3362
+ formatOptions = { format: this.dateTimeFormat, type: 'dateTime', skeleton: 'yMd' };
3363
+ formatDateTime = { format: culture.getDatePattern({ skeleton: 'yMd' }), type: 'dateTime' };
3443
3364
  }
3444
3365
  else {
3445
3366
  formatOptions = { format: this.dateTimeFormat, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -3449,7 +3370,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3449
3370
  }
3450
3371
  else {
3451
3372
  if (this.calendarMode === 'Gregorian') {
3452
- formatOptions = { format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3373
+ formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd' };
3453
3374
  }
3454
3375
  else {
3455
3376
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -3504,7 +3425,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3504
3425
  }
3505
3426
  };
3506
3427
  DatePicker.prototype.bindEvents = function () {
3507
- EventHandler.add(this.inputWrapper.buttons[0], 'mousedown touchstart', (this.isBlazorServer ? this.preventEventBubbling : this.dateIconHandler), this);
3428
+ EventHandler.add(this.inputWrapper.buttons[0], 'mousedown touchstart', this.dateIconHandler, this);
3508
3429
  EventHandler.add(this.inputElement, 'mouseup', this.mouseUpHandler, this);
3509
3430
  EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
3510
3431
  EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
@@ -3514,7 +3435,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3514
3435
  this.bindInputEvent();
3515
3436
  // To prevent the twice triggering.
3516
3437
  EventHandler.add(this.inputElement, 'change', this.inputChangeHandler, this);
3517
- if (this.showClearButton && (this.inputWrapper.clearButton || (this.isBlazorServer))) {
3438
+ if (this.showClearButton && this.inputWrapper.clearButton) {
3518
3439
  EventHandler.add(this.inputWrapper.clearButton, 'mousedown touchstart', this.resetHandler, this);
3519
3440
  }
3520
3441
  if (this.formElement) {
@@ -3551,7 +3472,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3551
3472
  }
3552
3473
  };
3553
3474
  DatePicker.prototype.unBindEvents = function () {
3554
- EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', (this.isBlazorServer ? this.preventEventBubbling : this.dateIconHandler));
3475
+ EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', this.dateIconHandler);
3555
3476
  EventHandler.remove(this.inputElement, 'mouseup', this.mouseUpHandler);
3556
3477
  EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
3557
3478
  EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
@@ -3559,7 +3480,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3559
3480
  if (this.enableMask) {
3560
3481
  EventHandler.remove(this.inputElement, 'keydown', this.keydownHandler);
3561
3482
  }
3562
- if (this.showClearButton && (this.inputWrapper.clearButton || (this.isBlazorServer))) {
3483
+ if (this.showClearButton && this.inputWrapper.clearButton) {
3563
3484
  EventHandler.remove(this.inputWrapper.clearButton, 'mousedown touchstart', this.resetHandler);
3564
3485
  }
3565
3486
  if (this.formElement) {
@@ -3577,13 +3498,11 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3577
3498
  this.inputValueCopy = null;
3578
3499
  this.inputElement.setAttribute('value', '');
3579
3500
  }
3580
- if (!this.isBlazorServer) {
3581
- this.setProperties({ value: this.inputValueCopy }, true);
3582
- this.restoreValue();
3583
- if (this.inputElement) {
3584
- this.updateInputValue(value);
3585
- this.errorClass();
3586
- }
3501
+ this.setProperties({ value: this.inputValueCopy }, true);
3502
+ this.restoreValue();
3503
+ if (this.inputElement) {
3504
+ this.updateInputValue(value);
3505
+ this.errorClass();
3587
3506
  }
3588
3507
  }
3589
3508
  };
@@ -3592,7 +3511,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3592
3511
  this.previousDate = this.value;
3593
3512
  this.previousElementValue = (isNullOrUndefined(this.inputValueCopy)) ? '' :
3594
3513
  this.globalize.formatDate(this.inputValueCopy, {
3595
- format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
3514
+ format: this.formatString, type: 'dateTime', skeleton: 'yMd'
3596
3515
  });
3597
3516
  };
3598
3517
  DatePicker.prototype.inputChangeHandler = function (e) {
@@ -3622,9 +3541,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3622
3541
  }
3623
3542
  };
3624
3543
  DatePicker.prototype.clear = function (event) {
3625
- if (!this.isBlazorServer) {
3626
- this.setProperties({ value: null }, true);
3627
- }
3544
+ this.setProperties({ value: null }, true);
3628
3545
  if (!this.enableMask) {
3629
3546
  this.updateInputValue('');
3630
3547
  }
@@ -3633,19 +3550,13 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3633
3550
  };
3634
3551
  this.trigger('cleared', clearedArgs);
3635
3552
  this.invalidValueString = '';
3636
- if (!this.isBlazorServer) {
3637
- this.updateInput();
3638
- this.popupUpdate();
3639
- this.changeEvent(event);
3640
- if (this.enableMask) {
3641
- this.notify("clearHandler", {
3642
- module: "MaskedDateTime"
3643
- });
3644
- }
3645
- }
3646
- if (this.isBlazorServer) {
3647
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3648
- this.interopAdaptor.invokeMethodAsync('OnValueCleared');
3553
+ this.updateInput();
3554
+ this.popupUpdate();
3555
+ this.changeEvent(event);
3556
+ if (this.enableMask) {
3557
+ this.notify("clearHandler", {
3558
+ module: "MaskedDateTime"
3559
+ });
3649
3560
  }
3650
3561
  };
3651
3562
  DatePicker.prototype.preventEventBubbling = function (e) {
@@ -3665,24 +3576,20 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3665
3576
  this.inputElement.setAttribute('readonly', '');
3666
3577
  this.inputElement.blur();
3667
3578
  }
3668
- if (!this.isBlazorServer) {
3669
- e.preventDefault();
3670
- }
3579
+ e.preventDefault();
3671
3580
  if (!this.readonly) {
3672
- if (this.isCalendar() && !this.isBlazorServer) {
3581
+ if (this.isCalendar()) {
3673
3582
  this.hide(e);
3674
3583
  }
3675
3584
  else {
3676
- if (!this.isBlazorServer || (this.isBlazorServer && this.inputWrapper.container.nextElementSibling)) {
3677
- this.isDateIconClicked = true;
3678
- this.show(null, e);
3679
- if (this.getModuleName() === 'datetimepicker') {
3680
- this.inputElement.focus();
3681
- }
3585
+ this.isDateIconClicked = true;
3586
+ this.show(null, e);
3587
+ if (this.getModuleName() === 'datetimepicker') {
3682
3588
  this.inputElement.focus();
3683
- addClass([this.inputWrapper.container], [INPUTFOCUS]);
3684
- addClass(this.inputWrapper.buttons, ACTIVE);
3685
3589
  }
3590
+ this.inputElement.focus();
3591
+ addClass([this.inputWrapper.container], [INPUTFOCUS]);
3592
+ addClass(this.inputWrapper.buttons, ACTIVE);
3686
3593
  }
3687
3594
  }
3688
3595
  this.isIconClicked = false;
@@ -3783,7 +3690,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3783
3690
  }
3784
3691
  }
3785
3692
  var focusArguments = {
3786
- model: isBlazor() && this.isServerRendered ? null : this
3693
+ model: this
3787
3694
  };
3788
3695
  this.isDateIconClicked = false;
3789
3696
  this.trigger('focus', focusArguments);
@@ -3804,32 +3711,26 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3804
3711
  if (!this.enabled) {
3805
3712
  return;
3806
3713
  }
3807
- if (!this.isBlazorServer) {
3808
- this.strictModeUpdate();
3809
- if (this.inputElement.value === '' && isNullOrUndefined(this.value)) {
3810
- this.invalidValueString = null;
3714
+ this.strictModeUpdate();
3715
+ if (this.inputElement.value === '' && isNullOrUndefined(this.value)) {
3716
+ this.invalidValueString = null;
3717
+ this.updateInputValue('');
3718
+ }
3719
+ this.updateInput();
3720
+ this.popupUpdate();
3721
+ this.changeTrigger(e);
3722
+ if (this.enableMask && this.maskedDateValue && this.placeholder && this.floatLabelType !== 'Always') {
3723
+ if (this.inputElement.value == this.maskedDateValue && !this.value && (this.floatLabelType == 'Auto' || this.floatLabelType == 'Never' || this.placeholder)) {
3811
3724
  this.updateInputValue('');
3812
3725
  }
3813
- this.updateInput();
3814
- this.popupUpdate();
3815
- this.changeTrigger(e);
3816
- if (this.enableMask && this.maskedDateValue && this.placeholder && this.floatLabelType !== 'Always') {
3817
- if (this.inputElement.value == this.maskedDateValue && !this.value && (this.floatLabelType == 'Auto' || this.floatLabelType == 'Never' || this.placeholder)) {
3818
- this.updateInputValue('');
3819
- }
3820
- }
3821
- this.errorClass();
3822
- }
3823
- else {
3824
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3825
- this.interopAdaptor.invokeMethodAsync('OnStrictModeUpdate', this.inputElement.value);
3826
3726
  }
3727
+ this.errorClass();
3827
3728
  if (this.isCalendar() && document.activeElement === this.inputElement) {
3828
3729
  this.hide(e);
3829
3730
  }
3830
3731
  if (this.getModuleName() === 'datepicker') {
3831
3732
  var blurArguments = {
3832
- model: isBlazor() && this.isServerRendered ? null : this
3733
+ model: this
3833
3734
  };
3834
3735
  this.trigger('blur', blurArguments);
3835
3736
  }
@@ -3867,7 +3768,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3867
3768
  else if (closest(target, '.e-footer-container')
3868
3769
  && target.classList.contains('e-today')
3869
3770
  && target.classList.contains('e-btn')
3870
- && (+new Date(+this.value) === +_super.prototype.generateTodayVal.call(this, this.value) && !this.isBlazorServer)) {
3771
+ && (+new Date(+this.value) === +_super.prototype.generateTodayVal.call(this, this.value))) {
3871
3772
  this.hide(e);
3872
3773
  }
3873
3774
  }
@@ -3882,40 +3783,22 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3882
3783
  break;
3883
3784
  case 'altDownArrow':
3884
3785
  this.isAltKeyPressed = true;
3885
- if (!this.isBlazorServer) {
3886
- this.strictModeUpdate();
3887
- this.updateInput();
3888
- this.changeTrigger(e);
3889
- }
3890
- else {
3891
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3892
- this.interopAdaptor.invokeMethodAsync('OnStrictModeUpdate', this.inputElement.value);
3893
- }
3786
+ this.strictModeUpdate();
3787
+ this.updateInput();
3788
+ this.changeTrigger(e);
3894
3789
  if (this.getModuleName() === 'datepicker') {
3895
- if (!this.isBlazorServer) {
3896
- this.show(null, e);
3897
- }
3898
- else {
3899
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3900
- this.interopAdaptor.invokeMethodAsync('OnPopupHide', true);
3901
- }
3790
+ this.show(null, e);
3902
3791
  }
3903
3792
  break;
3904
3793
  case 'escape':
3905
3794
  this.hide(e);
3906
3795
  break;
3907
3796
  case 'enter':
3908
- if (!this.isBlazorServer) {
3909
- this.strictModeUpdate();
3910
- this.updateInput();
3911
- this.popupUpdate();
3912
- this.changeTrigger(e);
3913
- this.errorClass();
3914
- }
3915
- else {
3916
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3917
- this.interopAdaptor.invokeMethodAsync('OnStrictModeUpdate', this.inputElement.value);
3918
- }
3797
+ this.strictModeUpdate();
3798
+ this.updateInput();
3799
+ this.popupUpdate();
3800
+ this.changeTrigger(e);
3801
+ this.errorClass();
3919
3802
  if (!this.isCalendar() && document.activeElement === this.inputElement) {
3920
3803
  this.hide(e);
3921
3804
  }
@@ -3940,17 +3823,11 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3940
3823
  start = this.inputElement.selectionStart;
3941
3824
  end = this.inputElement.selectionEnd;
3942
3825
  }
3943
- if (!this.isBlazorServer) {
3944
- this.strictModeUpdate();
3945
- this.updateInput();
3946
- this.popupUpdate();
3947
- this.changeTrigger(e);
3948
- this.errorClass();
3949
- }
3950
- else {
3951
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3952
- this.interopAdaptor.invokeMethodAsync('OnStrictModeUpdate', this.inputElement.value);
3953
- }
3826
+ this.strictModeUpdate();
3827
+ this.updateInput();
3828
+ this.popupUpdate();
3829
+ this.changeTrigger(e);
3830
+ this.errorClass();
3954
3831
  if (this.enableMask) {
3955
3832
  this.inputElement.selectionStart = start;
3956
3833
  this.inputElement.selectionEnd = end;
@@ -3969,7 +3846,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3969
3846
  this.previousDate = ((!isNullOrUndefined(this.value) && new Date(+this.value)) || null);
3970
3847
  if (this.isCalendar()) {
3971
3848
  _super.prototype.keyActionHandle.call(this, e);
3972
- if (!this.isBlazorServer && this.isCalendar()) {
3849
+ if (this.isCalendar()) {
3973
3850
  attributes(this.inputElement, {
3974
3851
  'aria-activedescendant': '' + this.setActiveDescendant()
3975
3852
  });
@@ -3984,7 +3861,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3984
3861
  removeClass(this.popupObj.element.querySelectorAll('.' + SELECTED$2), [SELECTED$2]);
3985
3862
  }
3986
3863
  }
3987
- if (!isNullOrUndefined(this.value) && !this.isBlazorServer) {
3864
+ if (!isNullOrUndefined(this.value)) {
3988
3865
  if ((+this.value >= +this.min) && (+this.value <= +this.max)) {
3989
3866
  var targetdate = new Date(this.checkValue(this.value));
3990
3867
  _super.prototype.navigateTo.call(this, 'Month', targetdate);
@@ -4012,7 +3889,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4012
3889
  if (this.calendarMode === 'Gregorian') {
4013
3890
  dateOptions = {
4014
3891
  format: !isNullOrUndefined(this.formatString) ? this.formatString : this.dateTimeFormat,
4015
- type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
3892
+ type: 'dateTime', skeleton: 'yMd'
4016
3893
  };
4017
3894
  }
4018
3895
  else {
@@ -4024,7 +3901,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4024
3901
  }
4025
3902
  else {
4026
3903
  if (this.calendarMode === 'Gregorian') {
4027
- formatOptions = { format: format, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3904
+ formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd' };
4028
3905
  }
4029
3906
  else {
4030
3907
  formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -4041,7 +3918,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4041
3918
  }
4042
3919
  else {
4043
3920
  if (this.calendarMode === 'Gregorian') {
4044
- formatOptions = { type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
3921
+ formatOptions = { type: 'dateTime', skeleton: 'yMd' };
4045
3922
  }
4046
3923
  else {
4047
3924
  formatOptions = { type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -4086,17 +3963,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4086
3963
  };
4087
3964
  DatePicker.prototype.createCalendar = function () {
4088
3965
  var _this = this;
4089
- if (!this.isBlazorServer) {
4090
- this.popupWrapper = this.createElement('div', { className: '' + ROOT$1 + ' ' + POPUPWRAPPER });
4091
- if (!isNullOrUndefined(this.cssClass)) {
4092
- this.popupWrapper.className += ' ' + this.cssClass;
4093
- }
4094
- }
4095
- else {
4096
- this.popupWrapper = this.inputWrapper.container.nextElementSibling;
4097
- this.calendarElement = this.popupWrapper.firstElementChild;
4098
- this.tableBodyElement = select('tbody', this.calendarElement);
4099
- this.contentElement = select('.e-content', this.calendarElement);
3966
+ this.popupWrapper = this.createElement('div', { className: '' + ROOT$1 + ' ' + POPUPWRAPPER });
3967
+ if (!isNullOrUndefined(this.cssClass)) {
3968
+ this.popupWrapper.className += ' ' + this.cssClass;
4100
3969
  }
4101
3970
  if (Browser.isDevice) {
4102
3971
  this.modelHeader();
@@ -4109,7 +3978,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4109
3978
  //this.calendarElement represent the Calendar object from the Calendar class.
4110
3979
  this.calendarElement.querySelector('table tbody').className = '';
4111
3980
  this.popupObj = new Popup(this.popupWrapper, {
4112
- content: this.isBlazorServer ? null : this.calendarElement,
3981
+ content: this.calendarElement,
4113
3982
  relateTo: Browser.isDevice ? document.body : this.inputWrapper.container,
4114
3983
  position: Browser.isDevice ? { X: 'center', Y: 'center' } : { X: 'left', Y: 'bottom' },
4115
3984
  offsetY: OFFSETVALUE,
@@ -4138,7 +4007,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4138
4007
  if (_this.isDateIconClicked) {
4139
4008
  _this.inputWrapper.container.children[_this.index].focus();
4140
4009
  }
4141
- if (_this.value && !_this.isBlazorServer) {
4010
+ if (_this.value) {
4142
4011
  _this.disabledDates();
4143
4012
  }
4144
4013
  if (_this.popupObj) {
@@ -4156,9 +4025,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4156
4025
  }
4157
4026
  }
4158
4027
  });
4159
- if (!this.isBlazorServer) {
4160
- this.popupObj.element.className += ' ' + this.cssClass;
4161
- }
4028
+ this.popupObj.element.className += ' ' + this.cssClass;
4162
4029
  this.setAriaAttributes();
4163
4030
  };
4164
4031
  DatePicker.prototype.setAriaDisabled = function () {
@@ -4271,7 +4138,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4271
4138
  if (this.value) {
4272
4139
  if (this.getModuleName() === 'datetimepicker') {
4273
4140
  if (this.calendarMode === 'Gregorian') {
4274
- formatOptions = { format: tempFormat, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
4141
+ formatOptions = { format: tempFormat, type: 'dateTime', skeleton: 'yMd' };
4275
4142
  }
4276
4143
  else {
4277
4144
  formatOptions = { format: tempFormat, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -4280,7 +4147,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4280
4147
  }
4281
4148
  else {
4282
4149
  if (this.calendarMode === 'Gregorian') {
4283
- formatOptions = { format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
4150
+ formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd' };
4284
4151
  }
4285
4152
  else {
4286
4153
  formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -4336,18 +4203,14 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4336
4203
  var outOfRange = void 0;
4337
4204
  if (!isNullOrUndefined(this.value) && !(+this.value >= +this.min && +this.value <= +this.max)) {
4338
4205
  outOfRange = new Date(this.checkValue(this.value));
4339
- if (!this.isBlazorServer) {
4340
- this.setProperties({ 'value': null }, true);
4341
- }
4206
+ this.setProperties({ 'value': null }, true);
4342
4207
  }
4343
4208
  else {
4344
4209
  outOfRange = this.value || null;
4345
4210
  }
4346
4211
  if (!this.isCalendar()) {
4347
- if (!this.isBlazorServer) {
4348
- _super.prototype.render.call(this);
4349
- this.setProperties({ 'value': outOfRange || null }, true);
4350
- }
4212
+ _super.prototype.render.call(this);
4213
+ this.setProperties({ 'value': outOfRange || null }, true);
4351
4214
  this.previousDate = outOfRange;
4352
4215
  this.createCalendar();
4353
4216
  }
@@ -4359,7 +4222,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4359
4222
  preventDefault: function () {
4360
4223
  prevent_1 = false;
4361
4224
  },
4362
- popup: isBlazor() && this.isServerRendered ? null : this.popupObj,
4225
+ popup: this.popupObj,
4363
4226
  event: e || null,
4364
4227
  cancel: false,
4365
4228
  appendTo: Browser.isDevice ? this.mobilePopupWrapper : document.body
@@ -4368,11 +4231,6 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4368
4231
  this.trigger('open', eventArgs, function (eventArgs) {
4369
4232
  _this.preventArgs = eventArgs;
4370
4233
  if (prevent_1 && !_this.preventArgs.cancel) {
4371
- if (_this.isBlazorServer) {
4372
- _this.popupWrapper.style.visibility = '';
4373
- _this.popupWrapper.style.width = 'auto';
4374
- _this.popupWrapper.style.height = 'auto';
4375
- }
4376
4234
  addClass(_this.inputWrapper.buttons, ACTIVE);
4377
4235
  _this.preventArgs.appendTo.appendChild(_this.popupWrapper);
4378
4236
  _this.popupObj.refreshPosition(_this.inputElement);
@@ -4386,18 +4244,12 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4386
4244
  else {
4387
4245
  _this.popupObj.show(new Animation(openAnimation), null);
4388
4246
  }
4389
- if (!_this.isBlazorServer) {
4390
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4391
- _super.prototype.setOverlayIndex.call(_this, _this.mobilePopupWrapper, _this.popupObj.element, _this.modal, Browser.isDevice);
4392
- }
4247
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4248
+ _super.prototype.setOverlayIndex.call(_this, _this.mobilePopupWrapper, _this.popupObj.element, _this.modal, Browser.isDevice);
4393
4249
  _this.setAriaAttributes();
4394
4250
  }
4395
4251
  else {
4396
4252
  _this.popupObj.destroy();
4397
- if (_this.isBlazorServer) {
4398
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4399
- _this.interopAdaptor.invokeMethodAsync('OnPopupHide', false);
4400
- }
4401
4253
  _this.popupWrapper = _this.popupObj = null;
4402
4254
  }
4403
4255
  if (!isNullOrUndefined(_this.inputElement) && _this.inputElement.value === '') {
@@ -4424,7 +4276,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4424
4276
  preventDefault: function () {
4425
4277
  prevent_2 = false;
4426
4278
  },
4427
- popup: isBlazor() && this.isServerRendered ? null : this.popupObj,
4279
+ popup: this.popupObj,
4428
4280
  event: event || null,
4429
4281
  cancel: false
4430
4282
  };
@@ -4451,17 +4303,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4451
4303
  DatePicker.prototype.closeEventCallback = function (prevent, eventArgs) {
4452
4304
  this.preventArgs = eventArgs;
4453
4305
  if (this.isCalendar() && (prevent && !this.preventArgs.cancel)) {
4454
- if (!this.isBlazorServer) {
4455
- this.popupObj.hide();
4456
- this.isAltKeyPressed = false;
4457
- this.keyboardModule.destroy();
4458
- }
4459
- else {
4460
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4461
- this.interopAdaptor.invokeMethodAsync('OnPopupHide', false);
4462
- this.isAltKeyPressed = false;
4463
- this.popupWrapper = this.popupObj = null;
4464
- }
4306
+ this.popupObj.hide();
4307
+ this.isAltKeyPressed = false;
4308
+ this.keyboardModule.destroy();
4465
4309
  removeClass(this.inputWrapper.buttons, ACTIVE);
4466
4310
  }
4467
4311
  this.setAriaAttributes();
@@ -4544,12 +4388,10 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4544
4388
  */
4545
4389
  DatePicker.prototype.destroy = function () {
4546
4390
  this.unBindEvents();
4547
- if (!this.isBlazorServer) {
4391
+ _super.prototype.destroy.call(this);
4392
+ this.keyboardModules.destroy();
4393
+ if (this.popupObj && this.popupObj.element.classList.contains(POPUP)) {
4548
4394
  _super.prototype.destroy.call(this);
4549
- this.keyboardModules.destroy();
4550
- if (this.popupObj && this.popupObj.element.classList.contains(POPUP)) {
4551
- _super.prototype.destroy.call(this);
4552
- }
4553
4395
  }
4554
4396
  var ariaAttrs = {
4555
4397
  'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-disabled': 'true',
@@ -4574,9 +4416,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4574
4416
  detach(this.popupWrapper);
4575
4417
  }
4576
4418
  this.popupObj = this.popupWrapper = null;
4577
- if (!this.isBlazorServer) {
4578
- this.keyboardModule.destroy();
4579
- }
4419
+ this.keyboardModule.destroy();
4580
4420
  }
4581
4421
  if (this.ngTag === null) {
4582
4422
  if (this.inputElement) {
@@ -4622,45 +4462,40 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4622
4462
  this.inputElement = this.element;
4623
4463
  this.formElement = closest(this.inputElement, 'form');
4624
4464
  this.index = this.showClearButton ? 2 : 1;
4625
- this.isBlazorServer = (isBlazor() && this.isServerRendered && this.getModuleName() === 'datepicker') ? true : false;
4626
- if (!this.isBlazorServer) {
4627
- this.ngTag = null;
4628
- if (this.element.tagName === 'EJS-DATEPICKER' || this.element.tagName === 'EJS-DATETIMEPICKER') {
4629
- this.ngTag = this.element.tagName;
4630
- this.inputElement = this.createElement('input');
4631
- this.element.appendChild(this.inputElement);
4465
+ this.ngTag = null;
4466
+ if (this.element.tagName === 'EJS-DATEPICKER' || this.element.tagName === 'EJS-DATETIMEPICKER') {
4467
+ this.ngTag = this.element.tagName;
4468
+ this.inputElement = this.createElement('input');
4469
+ this.element.appendChild(this.inputElement);
4470
+ }
4471
+ if (this.element.getAttribute('id')) {
4472
+ if (this.ngTag !== null) {
4473
+ this.inputElement.id = this.element.getAttribute('id') + '_input';
4632
4474
  }
4633
- if (this.element.getAttribute('id')) {
4475
+ }
4476
+ else {
4477
+ if (this.getModuleName() === 'datetimepicker') {
4478
+ this.element.id = getUniqueID('ej2-datetimepicker');
4634
4479
  if (this.ngTag !== null) {
4635
- this.inputElement.id = this.element.getAttribute('id') + '_input';
4480
+ attributes(this.inputElement, { 'id': this.element.id + '_input' });
4636
4481
  }
4637
4482
  }
4638
4483
  else {
4639
- if (this.getModuleName() === 'datetimepicker') {
4640
- this.element.id = getUniqueID('ej2-datetimepicker');
4641
- if (this.ngTag !== null) {
4642
- attributes(this.inputElement, { 'id': this.element.id + '_input' });
4643
- }
4644
- }
4645
- else {
4646
- this.element.id = getUniqueID('ej2-datepicker');
4647
- if (this.ngTag !== null) {
4648
- attributes(this.inputElement, { 'id': this.element.id + '_input' });
4649
- }
4484
+ this.element.id = getUniqueID('ej2-datepicker');
4485
+ if (this.ngTag !== null) {
4486
+ attributes(this.inputElement, { 'id': this.element.id + '_input' });
4650
4487
  }
4651
4488
  }
4652
- if (this.ngTag !== null) {
4653
- this.validationAttribute(this.element, this.inputElement);
4654
- }
4655
- this.updateHtmlAttributeToElement();
4656
4489
  }
4490
+ if (this.ngTag !== null) {
4491
+ this.validationAttribute(this.element, this.inputElement);
4492
+ }
4493
+ this.updateHtmlAttributeToElement();
4657
4494
  this.defaultKeyConfigs = this.getDefaultKeyConfig();
4658
4495
  this.checkHtmlAttributes(false);
4659
4496
  this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
4660
- if (!this.isBlazorServer) {
4661
- this.element.removeAttribute('tabindex');
4662
- _super.prototype.preRender.call(this);
4663
- }
4497
+ this.element.removeAttribute('tabindex');
4498
+ _super.prototype.preRender.call(this);
4664
4499
  };
4665
4500
  DatePicker.prototype.getDefaultKeyConfig = function () {
4666
4501
  this.defaultKeyConfigs = {
@@ -4706,7 +4541,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4706
4541
  var culture = new Internationalization(this.locale);
4707
4542
  if (this.format) {
4708
4543
  if (typeof this.format === 'string') {
4709
- this.formatString = isBlazor() ? this.format.replace(/tt/, 'a') : this.format;
4544
+ this.formatString = this.format;
4710
4545
  }
4711
4546
  else if (this.format.skeleton !== '' && !isNullOrUndefined(this.format.skeleton)) {
4712
4547
  var skeletonString = this.format.skeleton;
@@ -4741,7 +4576,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4741
4576
  if (this.calendarMode === 'Gregorian') {
4742
4577
  options = {
4743
4578
  format: !isNullOrUndefined(this.formatString) ? this.formatString : this.dateTimeFormat,
4744
- type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
4579
+ type: 'dateTime', skeleton: 'yMd'
4745
4580
  };
4746
4581
  }
4747
4582
  else {
@@ -4753,7 +4588,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4753
4588
  }
4754
4589
  else {
4755
4590
  if (this.calendarMode === 'Gregorian') {
4756
- options = { format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
4591
+ options = { format: this.formatString, type: 'dateTime', skeleton: 'yMd' };
4757
4592
  }
4758
4593
  else {
4759
4594
  options = { format: this.formatString, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -4764,8 +4599,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4764
4599
  if (!isNullOrUndefined(this.inputElement.getAttribute(prop))) {
4765
4600
  switch (prop) {
4766
4601
  case 'disabled':
4767
- if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['enabled'] === undefined)) || dynamic) &&
4768
- !this.isBlazorServer) {
4602
+ if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['enabled'] === undefined)) || dynamic)) {
4769
4603
  var enabled = this.inputElement.getAttribute(prop) === 'disabled' ||
4770
4604
  this.inputElement.getAttribute(prop) === '' ||
4771
4605
  this.inputElement.getAttribute(prop) === 'true' ? false : true;
@@ -4773,32 +4607,25 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4773
4607
  }
4774
4608
  break;
4775
4609
  case 'readonly':
4776
- if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['readonly'] === undefined)) || dynamic) &&
4777
- !this.isBlazorServer) {
4610
+ if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['readonly'] === undefined)) || dynamic)) {
4778
4611
  var readonly = this.inputElement.getAttribute(prop) === 'readonly' ||
4779
4612
  this.inputElement.getAttribute(prop) === '' || this.inputElement.getAttribute(prop) === 'true' ? true : false;
4780
4613
  this.setProperties({ readonly: readonly }, !dynamic);
4781
4614
  }
4782
4615
  break;
4783
4616
  case 'placeholder':
4784
- if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['placeholder'] === undefined)) || dynamic) &&
4785
- !this.isBlazorServer) {
4617
+ if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['placeholder'] === undefined)) || dynamic)) {
4786
4618
  this.setProperties({ placeholder: this.inputElement.getAttribute(prop) }, !dynamic);
4787
4619
  }
4788
4620
  break;
4789
4621
  case 'style':
4790
- if (!this.isBlazorServer) {
4791
- this.inputElement.setAttribute('style', '' + this.inputElement.getAttribute(prop));
4792
- }
4622
+ this.inputElement.setAttribute('style', '' + this.inputElement.getAttribute(prop));
4793
4623
  break;
4794
4624
  case 'name':
4795
- if (!this.isBlazorServer) {
4796
- this.inputElement.setAttribute('name', '' + this.inputElement.getAttribute(prop));
4797
- }
4625
+ this.inputElement.setAttribute('name', '' + this.inputElement.getAttribute(prop));
4798
4626
  break;
4799
4627
  case 'value':
4800
- if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['value'] === undefined)) || dynamic) &&
4801
- !this.isBlazorServer) {
4628
+ if (((isNullOrUndefined(this.datepickerOptions) || (this.datepickerOptions['value'] === undefined)) || dynamic)) {
4802
4629
  var value = this.inputElement.getAttribute(prop);
4803
4630
  this.setProperties(setValue(prop, this.globalize.parseDate(value, options), {}), !dynamic);
4804
4631
  }
@@ -4816,7 +4643,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4816
4643
  }
4817
4644
  break;
4818
4645
  case 'type':
4819
- if (this.inputElement.getAttribute(prop) !== 'text' && !this.isBlazorServer) {
4646
+ if (this.inputElement.getAttribute(prop) !== 'text') {
4820
4647
  this.inputElement.setAttribute('type', 'text');
4821
4648
  }
4822
4649
  break;
@@ -4840,9 +4667,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4840
4667
  var previousValCopy = this.previousDate;
4841
4668
  //calls the Calendar render method to check the disabled dates through renderDayCell event and update the input value accordingly.
4842
4669
  this.minMaxUpdates();
4843
- if (!this.isBlazorServer) {
4844
- _super.prototype.render.call(this);
4845
- }
4670
+ _super.prototype.render.call(this);
4846
4671
  this.previousDate = previousValCopy;
4847
4672
  var date = valueCopy && +(valueCopy);
4848
4673
  var dateIdString = '*[id^="/id"]'.replace('/id', '' + date);
@@ -4863,7 +4688,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4863
4688
  if (this.calendarMode === 'Gregorian') {
4864
4689
  globalize = this.globalize.formatDate(valueCopy, {
4865
4690
  format: !isNullOrUndefined(this.formatString) ? this.formatString : this.dateTimeFormat,
4866
- type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
4691
+ type: 'dateTime', skeleton: 'yMd'
4867
4692
  });
4868
4693
  }
4869
4694
  else {
@@ -4876,7 +4701,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4876
4701
  }
4877
4702
  else {
4878
4703
  if (this.calendarMode === 'Gregorian') {
4879
- formatOptions = { format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
4704
+ formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd' };
4880
4705
  }
4881
4706
  else {
4882
4707
  formatOptions = { format: this.formatString, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -4894,26 +4719,13 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4894
4719
  }
4895
4720
  };
4896
4721
  DatePicker.prototype.setAriaAttributes = function () {
4897
- if (this.isBlazorServer) {
4898
- if (this.isCalendar()) {
4899
- var focusedEle = this.tableBodyElement.querySelector('tr td.e-focused-date');
4900
- var selectedEle = this.tableBodyElement.querySelector('tr td.e-selected');
4901
- var id = (focusedEle || selectedEle) ? (focusedEle || selectedEle).getAttribute('id') : 'null';
4902
- attributes(this.inputElement, { 'aria-activedescendant': '' + id });
4903
- }
4904
- else {
4905
- attributes(this.inputElement, { 'aria-activedescendant': 'null' });
4906
- }
4722
+ if (this.isCalendar()) {
4723
+ Input.addAttributes({ 'aria-expanded': 'true' }, this.inputElement);
4724
+ attributes(this.inputElement, { 'aria-activedescendant': '' + this.setActiveDescendant() });
4907
4725
  }
4908
4726
  else {
4909
- if (this.isCalendar()) {
4910
- Input.addAttributes({ 'aria-expanded': 'true' }, this.inputElement);
4911
- attributes(this.inputElement, { 'aria-activedescendant': '' + this.setActiveDescendant() });
4912
- }
4913
- else {
4914
- Input.addAttributes({ 'aria-expanded': 'false' }, this.inputElement);
4915
- attributes(this.inputElement, { 'aria-activedescendant': 'null' });
4916
- }
4727
+ Input.addAttributes({ 'aria-expanded': 'false' }, this.inputElement);
4728
+ attributes(this.inputElement, { 'aria-activedescendant': 'null' });
4917
4729
  }
4918
4730
  };
4919
4731
  DatePicker.prototype.errorClass = function () {
@@ -4948,20 +4760,16 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4948
4760
  this.isDynamicValueChanged = true;
4949
4761
  this.isInteracted = false;
4950
4762
  this.invalidValueString = null;
4951
- if (!this.isBlazorServer) {
4952
- this.checkInvalidValue(newProp.value);
4953
- }
4763
+ this.checkInvalidValue(newProp.value);
4954
4764
  newProp.value = this.value;
4955
4765
  this.previousElementValue = this.inputElement.value;
4956
- if (!this.isBlazorServer) {
4957
- if (isNullOrUndefined(this.value)) {
4958
- this.updateInputValue('');
4959
- this.currentDate = new Date(new Date().setHours(0, 0, 0, 0));
4960
- }
4961
- this.updateInput(true);
4962
- if (+this.previousDate !== +this.value) {
4963
- this.changeTrigger(null);
4964
- }
4766
+ if (isNullOrUndefined(this.value)) {
4767
+ this.updateInputValue('');
4768
+ this.currentDate = new Date(new Date().setHours(0, 0, 0, 0));
4769
+ }
4770
+ this.updateInput(true);
4771
+ if (+this.previousDate !== +this.value) {
4772
+ this.changeTrigger(null);
4965
4773
  }
4966
4774
  this.isInteracted = true;
4967
4775
  this.preventChange = this.isAngular && this.preventChange ? !this.preventChange : this.preventChange;
@@ -4974,15 +4782,13 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4974
4782
  case 'format':
4975
4783
  this.checkFormat();
4976
4784
  this.bindInputEvent();
4977
- if (!this.isBlazorServer) {
4978
- this.updateInput();
4979
- if (this.enableMask) {
4980
- this.notify("createMask", {
4981
- module: "MaskedDateTime",
4982
- });
4983
- if (!this.value) {
4984
- this.updateInputValue(this.maskedDateValue);
4985
- }
4785
+ this.updateInput();
4786
+ if (this.enableMask) {
4787
+ this.notify("createMask", {
4788
+ module: "MaskedDateTime",
4789
+ });
4790
+ if (!this.value) {
4791
+ this.updateInputValue(this.maskedDateValue);
4986
4792
  }
4987
4793
  }
4988
4794
  break;
@@ -5009,13 +4815,11 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
5009
4815
  this.l10n.setLocale(this.locale);
5010
4816
  this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
5011
4817
  Input.setPlaceholder(this.placeholder, this.inputElement);
5012
- if (!this.isBlazorServer) {
5013
- this.updateInput();
5014
- if (this.enableMask) {
5015
- this.notify("createMask", {
5016
- module: "MaskedDateTime",
5017
- });
5018
- }
4818
+ this.updateInput();
4819
+ if (this.enableMask) {
4820
+ this.notify("createMask", {
4821
+ module: "MaskedDateTime",
4822
+ });
5019
4823
  }
5020
4824
  break;
5021
4825
  case 'enableRtl':
@@ -5024,7 +4828,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
5024
4828
  case 'start':
5025
4829
  case 'depth':
5026
4830
  this.checkView();
5027
- if (this.calendarElement && !this.isBlazorServer) {
4831
+ if (this.calendarElement) {
5028
4832
  _super.prototype.onPropertyChanged.call(this, newProp, oldProp);
5029
4833
  }
5030
4834
  break;
@@ -5041,9 +4845,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
5041
4845
  break;
5042
4846
  case 'strictMode':
5043
4847
  this.invalidValueString = null;
5044
- if (!this.isBlazorServer) {
5045
- this.updateInput();
5046
- }
4848
+ this.updateInput();
5047
4849
  break;
5048
4850
  case 'width':
5049
4851
  this.setWidth(newProp.width);
@@ -5068,7 +4870,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
5068
4870
  }
5069
4871
  break;
5070
4872
  default:
5071
- if (this.calendarElement && !this.isBlazorServer && this.isCalendar()) {
4873
+ if (this.calendarElement && this.isCalendar()) {
5072
4874
  _super.prototype.onPropertyChanged.call(this, newProp, oldProp);
5073
4875
  }
5074
4876
  break;
@@ -5698,7 +5500,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5698
5500
  };
5699
5501
  DateRangePicker.prototype.updateHiddenInput = function () {
5700
5502
  if (this.firstHiddenChild && this.secondHiddenChild) {
5701
- var format = { type: 'datetime', skeleton: isBlazor() ? 'd' : 'yMd' };
5503
+ var format = { type: 'datetime', skeleton: 'yMd' };
5702
5504
  if (typeof this.startDate === 'string') {
5703
5505
  this.startDate = this.globalize.parseDate(this.startDate, format);
5704
5506
  }
@@ -5838,7 +5640,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5838
5640
  var attributes$$1 = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) :
5839
5641
  ['startDate', 'endDate', 'minDays', 'maxDays', 'min', 'max', 'disabled', 'readonly', 'style', 'name', 'placeholder',
5840
5642
  'type', 'value'];
5841
- var format = { format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' };
5643
+ var format = { format: this.formatString, type: 'date', skeleton: 'yMd' };
5842
5644
  for (var _i = 0, attributes_1 = attributes$$1; _i < attributes_1.length; _i++) {
5843
5645
  var prop = attributes_1[_i];
5844
5646
  if (!isNullOrUndefined(this.inputElement.getAttribute(prop))) {
@@ -6093,7 +5895,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6093
5895
  }
6094
5896
  this.preventBlur = false;
6095
5897
  var focusArguments = {
6096
- model: (isBlazor() && this.isServerRendered) ? null : this
5898
+ model: this
6097
5899
  };
6098
5900
  if (!this.preventFocus) {
6099
5901
  this.trigger('focus', focusArguments);
@@ -6124,7 +5926,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6124
5926
  var range = value.split(' ' + this.separator + ' ');
6125
5927
  if (range.length > 1) {
6126
5928
  this.invalidValueString = null;
6127
- var dateOptions = { format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' };
5929
+ var dateOptions = { format: this.formatString, type: 'date', skeleton: 'yMd' };
6128
5930
  var startDate = this.globalize.parseDate(range[0].trim(), dateOptions);
6129
5931
  var endDate = this.globalize.parseDate(range[1].trim(), dateOptions);
6130
5932
  if (!isNullOrUndefined(startDate) && !isNaN(+startDate) && !isNullOrUndefined(endDate) && !isNaN(+endDate)) {
@@ -6140,7 +5942,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6140
5942
  if (!this.preventBlur && document.activeElement !== this.inputElement) {
6141
5943
  this.preventFocus = false;
6142
5944
  var blurArguments = {
6143
- model: (isBlazor() && this.isServerRendered) ? null : this
5945
+ model: this
6144
5946
  };
6145
5947
  this.trigger('blur', blurArguments);
6146
5948
  }
@@ -6191,7 +5993,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6191
5993
  if (!this.preventBlur && document.activeElement !== this.inputElement) {
6192
5994
  this.preventFocus = false;
6193
5995
  var blurArguments = {
6194
- model: (isBlazor() && this.isServerRendered) ? null : this
5996
+ model: this
6195
5997
  };
6196
5998
  this.trigger('blur', blurArguments);
6197
5999
  }
@@ -6751,11 +6553,11 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
6751
6553
  var range;
6752
6554
  var startDate = !isNullOrUndefined(this.startValue) ?
6753
6555
  this.globalize.formatDate(this.startValue, {
6754
- format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd'
6556
+ format: this.formatString, type: 'date', skeleton: 'yMd'
6755
6557
  }) : null;
6756
6558
  var endDate = !isNullOrUndefined(this.endValue) ?
6757
6559
  this.globalize.formatDate(this.endValue, {
6758
- format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd'
6560
+ format: this.formatString, type: 'date', skeleton: 'yMd'
6759
6561
  }) : null;
6760
6562
  if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue)) {
6761
6563
  inputValue = startDate + ' ' + this.separator + ' ' + endDate;
@@ -7116,7 +6918,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7116
6918
  }
7117
6919
  };
7118
6920
  DateRangePicker.prototype.updateHeader = function () {
7119
- var format = { type: 'date', skeleton: isBlazor() ? 'D' : 'yMMMd' };
6921
+ var format = { type: 'date', skeleton: 'yMMMd' };
7120
6922
  if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue)) {
7121
6923
  var range = (Math.round(Math.abs((this.removeTimeValueFromDate(this.startValue).getTime() -
7122
6924
  this.removeTimeValueFromDate(this.endValue).getTime()) / (1000 * 60 * 60 * 24))) + 1);
@@ -7197,7 +6999,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7197
6999
  };
7198
7000
  DateRangePicker.prototype.addSelectedAttributes = function (ele, date, isStartDate, sameDate) {
7199
7001
  if (ele) {
7200
- var title = this.globalize.formatDate(date, { type: 'date', skeleton: isBlazor() ? 'D' : 'full' });
7002
+ var title = this.globalize.formatDate(date, { type: 'date', skeleton: 'full' });
7201
7003
  if (!isNullOrUndefined(sameDate) && sameDate) {
7202
7004
  ele.setAttribute('aria-label', 'The current start and end date is ' + '' + title);
7203
7005
  }
@@ -8482,7 +8284,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8482
8284
  };
8483
8285
  DateRangePicker.prototype.updateInput = function () {
8484
8286
  if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue)) {
8485
- var formatOption = { format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' };
8287
+ var formatOption = { format: this.formatString, type: 'date', skeleton: 'yMd' };
8486
8288
  var startDate = this.globalize.formatDate(this.startValue, formatOption);
8487
8289
  var endDate = this.globalize.formatDate(this.endValue, formatOption);
8488
8290
  Input.setValue(startDate + ' ' + this.separator + ' ' + endDate, this.inputElement, this.floatLabelType, this.showClearButton);
@@ -8596,7 +8398,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8596
8398
  var valueString = value;
8597
8399
  var invalid = false;
8598
8400
  var formatOpt = null;
8599
- formatOpt = { format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' };
8401
+ formatOpt = { format: this.formatString, type: 'date', skeleton: 'yMd' };
8600
8402
  if (typeof valueString !== 'string') {
8601
8403
  invalid = true;
8602
8404
  }
@@ -8981,10 +8783,10 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8981
8783
  document.body.appendChild(this.mobileRangePopupWrap);
8982
8784
  }
8983
8785
  this.openEventArgs = {
8984
- popup: (isBlazor() && this.isServerRendered) ? null : this.popupObj || null,
8786
+ popup: this.popupObj || null,
8985
8787
  cancel: false,
8986
8788
  date: this.inputElement.value,
8987
- model: (isBlazor() && this.isServerRendered) ? null : this,
8789
+ model: this,
8988
8790
  event: event ? event : null,
8989
8791
  appendTo: this.isMobile || Browser.isDevice ? this.mobileRangePopupWrap : document.body
8990
8792
  };
@@ -9046,9 +8848,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
9046
8848
  if (this.isPopupOpen()) {
9047
8849
  this.closeEventArgs = {
9048
8850
  cancel: false,
9049
- popup: (isBlazor() && this.isServerRendered) ? null : this.popupObj,
8851
+ popup: this.popupObj,
9050
8852
  date: this.inputElement.value,
9051
- model: (isBlazor() && this.isServerRendered) ? null : this,
8853
+ model: this,
9052
8854
  event: event ? event : null
9053
8855
  };
9054
8856
  var eventArgs = this.closeEventArgs;
@@ -9173,7 +8975,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
9173
8975
  attributes(this.secondHiddenChild, {
9174
8976
  'type': 'text', 'name': this.inputElement.getAttribute('data-name'), 'class': HIDDENELEMENT
9175
8977
  });
9176
- var format = { type: 'datetime', skeleton: isBlazor() ? 'd' : 'yMd' };
8978
+ var format = { type: 'datetime', skeleton: 'yMd' };
9177
8979
  this.firstHiddenChild.value = this.startDate && this.globalize.formatDate(this.startDate, format);
9178
8980
  this.secondHiddenChild.value = this.endDate && this.globalize.formatDate(this.endDate, format);
9179
8981
  this.inputElement.parentElement.appendChild(this.firstHiddenChild);
@@ -9204,7 +9006,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
9204
9006
  * @private
9205
9007
  */
9206
9008
  DateRangePicker.prototype.onPropertyChanged = function (newProp, oldProp) {
9207
- var format = { format: this.formatString, type: 'date', skeleton: isBlazor() ? 'd' : 'yMd' };
9009
+ var format = { format: this.formatString, type: 'date', skeleton: 'yMd' };
9208
9010
  for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
9209
9011
  var prop = _a[_i];
9210
9012
  var openPopup = ['maxDays', 'minDays', 'value'];
@@ -9589,8 +9391,6 @@ var HOVER$1 = 'e-hover';
9589
9391
  var NAVIGATION = 'e-navigation';
9590
9392
  var DISABLED$3 = 'e-disabled';
9591
9393
  var ICONANIMATION = 'e-icon-anim';
9592
- var TIMEICON = 'e-time-icon';
9593
- var CLEARICON$1 = 'e-clear-icon';
9594
9394
  var FOCUS = 'e-input-focus';
9595
9395
  var LISTCLASS$1 = 'e-list-item';
9596
9396
  var HALFPOSITION = 2;
@@ -9679,10 +9479,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
9679
9479
  var _this = _super.call(this, options, element) || this;
9680
9480
  _this.liCollections = [];
9681
9481
  _this.timeCollections = [];
9682
- _this.blazorTimeCollections = [];
9683
9482
  _this.disableItemCollection = [];
9684
9483
  _this.invalidValueString = null;
9685
- _this.isBlazorServer = false;
9686
9484
  _this.isAngular = false;
9687
9485
  _this.preventChange = false;
9688
9486
  _this.maskedDateValue = '';
@@ -9715,62 +9513,35 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
9715
9513
  this.inputElement = this.element;
9716
9514
  this.angularTag = null;
9717
9515
  this.formElement = closest(this.element, 'form');
9718
- this.isBlazorServer = (isBlazor() && this.isServerRendered && this.getModuleName() === 'timepicker') ? true : false;
9719
- if (!this.isBlazorServer) {
9720
- if (this.element.tagName === 'EJS-TIMEPICKER') {
9721
- this.angularTag = this.element.tagName;
9722
- this.inputElement = this.createElement('input');
9723
- this.element.appendChild(this.inputElement);
9724
- }
9725
- this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
9726
- this.element.removeAttribute('tabindex');
9727
- this.openPopupEventArgs = {
9728
- appendTo: document.body
9729
- };
9516
+ if (this.element.tagName === 'EJS-TIMEPICKER') {
9517
+ this.angularTag = this.element.tagName;
9518
+ this.inputElement = this.createElement('input');
9519
+ this.element.appendChild(this.inputElement);
9730
9520
  }
9521
+ this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
9522
+ this.element.removeAttribute('tabindex');
9523
+ this.openPopupEventArgs = {
9524
+ appendTo: document.body
9525
+ };
9731
9526
  };
9732
9527
  // element creation
9733
9528
  TimePicker.prototype.render = function () {
9734
- if (!this.isBlazorServer) {
9735
- this.initialize();
9736
- this.createInputElement();
9737
- this.updateHtmlAttributeToWrapper();
9738
- this.setTimeAllowEdit();
9739
- this.setEnable();
9740
- this.validateInterval();
9741
- }
9742
- else {
9743
- this.globalize = new Internationalization(this.locale);
9744
- this.defaultCulture = new Internationalization('en');
9745
- this.checkTimeFormat();
9746
- var parentElement = this.element.parentElement;
9747
- this.inputWrapper = {
9748
- container: parentElement,
9749
- clearButton: parentElement.querySelector('.' + CLEARICON$1),
9750
- buttons: [parentElement.querySelector('.' + TIMEICON)]
9751
- };
9752
- Input.bindInitialEvent({
9753
- element: this.inputElement,
9754
- floatLabelType: this.floatLabelType
9755
- });
9756
- if (this.showClearButton && this.inputWrapper.clearButton) {
9757
- Input.wireClearBtnEvents(this.inputElement, this.inputWrapper.clearButton, this.inputWrapper.container);
9758
- }
9759
- }
9529
+ this.initialize();
9530
+ this.createInputElement();
9531
+ this.updateHtmlAttributeToWrapper();
9532
+ this.setTimeAllowEdit();
9533
+ this.setEnable();
9534
+ this.validateInterval();
9760
9535
  this.bindEvents();
9761
- if (!this.isBlazorServer) {
9762
- this.validateDisable();
9763
- this.setValue(this.getFormattedValue(this.value));
9764
- if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType == 'Always' || !this.floatLabelType || !this.placeholder)) {
9765
- this.updateInputValue(this.maskedDateValue);
9766
- this.checkErrorState(this.maskedDateValue);
9767
- }
9536
+ this.validateDisable();
9537
+ this.setValue(this.getFormattedValue(this.value));
9538
+ if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType == 'Always' || !this.floatLabelType || !this.placeholder)) {
9539
+ this.updateInputValue(this.maskedDateValue);
9540
+ this.checkErrorState(this.maskedDateValue);
9768
9541
  }
9769
9542
  this.anchor = this.inputElement;
9770
9543
  this.inputElement.setAttribute('value', this.inputElement.value);
9771
- if (!this.isBlazorServer) {
9772
- this.inputEleValue = this.getDateObject(this.inputElement.value);
9773
- }
9544
+ this.inputEleValue = this.getDateObject(this.inputElement.value);
9774
9545
  this.renderComplete();
9775
9546
  };
9776
9547
  TimePicker.prototype.setTimeAllowEdit = function () {
@@ -9928,7 +9699,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
9928
9699
  TimePicker.prototype.getCldrDateTimeFormat = function () {
9929
9700
  var culture = new Internationalization(this.locale);
9930
9701
  var cldrTime;
9931
- var dateFormat = culture.getDatePattern({ skeleton: isBlazor() ? 'd' : 'yMd' });
9702
+ var dateFormat = culture.getDatePattern({ skeleton: 'yMd' });
9932
9703
  if (this.isNullOrEmpty(this.formatString)) {
9933
9704
  cldrTime = dateFormat + ' ' + this.cldrFormat('time');
9934
9705
  }
@@ -9958,7 +9729,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
9958
9729
  }));
9959
9730
  if (isNullOrUndefined(valueExpression)) {
9960
9731
  valueExpression = this.checkDateValue(this.globalize.parseDate(valueString, {
9961
- format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
9732
+ format: this.formatString, type: 'dateTime', skeleton: 'yMd'
9962
9733
  }));
9963
9734
  }
9964
9735
  }
@@ -10007,8 +9778,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10007
9778
  TimePicker.prototype.cldrFormat = function (type) {
10008
9779
  var cldrDateTimeString;
10009
9780
  if (this.locale === 'en' || this.locale === 'en-US') {
10010
- cldrDateTimeString = isBlazor() ? this.getBlazorCultureFormat('t') :
10011
- (getValue('timeFormats.short', getDefaultDateObject()));
9781
+ cldrDateTimeString = (getValue('timeFormats.short', getDefaultDateObject()));
10012
9782
  }
10013
9783
  else {
10014
9784
  cldrDateTimeString = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -10017,48 +9787,43 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10017
9787
  };
10018
9788
  // destroy function
10019
9789
  TimePicker.prototype.destroy = function () {
10020
- if (this.isBlazorServer) {
10021
- this.unBindEvents();
10022
- }
10023
- else {
10024
- this.hide();
10025
- this.unBindEvents();
10026
- var ariaAttribute = {
10027
- 'aria-haspopup': 'true', 'aria-autocomplete': 'list', 'tabindex': '0', 'aria-activedescendant': 'null',
10028
- 'aria-owns': this.element.id + '_options', 'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
10029
- 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-disabled': 'true', 'aria-invalid': 'false'
10030
- };
10031
- if (this.inputElement) {
10032
- Input.removeAttributes(ariaAttribute, this.inputElement);
10033
- if (this.angularTag === null) {
10034
- this.inputWrapper.container.parentElement.appendChild(this.inputElement);
10035
- }
10036
- if (!isNullOrUndefined(this.cloneElement.getAttribute('tabindex'))) {
10037
- this.inputElement.setAttribute('tabindex', this.tabIndex);
10038
- }
10039
- else {
10040
- this.inputElement.removeAttribute('tabindex');
10041
- }
10042
- this.ensureInputAttribute();
10043
- this.enableElement([this.inputElement]);
10044
- this.inputElement.classList.remove('e-input');
10045
- if (isNullOrUndefined(this.cloneElement.getAttribute('disabled'))) {
10046
- Input.setEnabled(true, this.inputElement, this.floatLabelType);
10047
- }
9790
+ this.hide();
9791
+ this.unBindEvents();
9792
+ var ariaAttribute = {
9793
+ 'aria-haspopup': 'true', 'aria-autocomplete': 'list', 'tabindex': '0', 'aria-activedescendant': 'null',
9794
+ 'aria-owns': this.element.id + '_options', 'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
9795
+ 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-disabled': 'true', 'aria-invalid': 'false'
9796
+ };
9797
+ if (this.inputElement) {
9798
+ Input.removeAttributes(ariaAttribute, this.inputElement);
9799
+ if (this.angularTag === null) {
9800
+ this.inputWrapper.container.parentElement.appendChild(this.inputElement);
10048
9801
  }
10049
- if (this.inputWrapper.container) {
10050
- detach(this.inputWrapper.container);
9802
+ if (!isNullOrUndefined(this.cloneElement.getAttribute('tabindex'))) {
9803
+ this.inputElement.setAttribute('tabindex', this.tabIndex);
10051
9804
  }
10052
- this.inputWrapper = this.popupWrapper = this.cloneElement = undefined;
10053
- this.liCollections = this.timeCollections = this.disableItemCollection = [];
10054
- if (!isNullOrUndefined(this.rippleFn)) {
10055
- this.rippleFn();
9805
+ else {
9806
+ this.inputElement.removeAttribute('tabindex');
10056
9807
  }
10057
- _super.prototype.destroy.call(this);
10058
- if (this.formElement) {
10059
- EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
9808
+ this.ensureInputAttribute();
9809
+ this.enableElement([this.inputElement]);
9810
+ this.inputElement.classList.remove('e-input');
9811
+ if (isNullOrUndefined(this.cloneElement.getAttribute('disabled'))) {
9812
+ Input.setEnabled(true, this.inputElement, this.floatLabelType);
10060
9813
  }
10061
9814
  }
9815
+ if (this.inputWrapper.container) {
9816
+ detach(this.inputWrapper.container);
9817
+ }
9818
+ this.inputWrapper = this.popupWrapper = this.cloneElement = undefined;
9819
+ this.liCollections = this.timeCollections = this.disableItemCollection = [];
9820
+ if (!isNullOrUndefined(this.rippleFn)) {
9821
+ this.rippleFn();
9822
+ }
9823
+ _super.prototype.destroy.call(this);
9824
+ if (this.formElement) {
9825
+ EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
9826
+ }
10062
9827
  };
10063
9828
  TimePicker.prototype.ensureInputAttribute = function () {
10064
9829
  var propertyList = [];
@@ -10082,24 +9847,18 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10082
9847
  };
10083
9848
  //popup creation
10084
9849
  TimePicker.prototype.popupCreation = function () {
10085
- if (!this.isBlazorServer) {
10086
- this.popupWrapper = this.createElement('div', {
10087
- className: ROOT$3 + ' ' + POPUP$2,
10088
- attrs: { 'id': this.element.id + '_popup', 'style': 'visibility:hidden' }
10089
- });
10090
- if (!isNullOrUndefined(this.cssClass)) {
10091
- this.popupWrapper.className += ' ' + this.cssClass;
10092
- }
10093
- if (!isNullOrUndefined(this.step) && this.step > 0) {
10094
- this.generateList();
10095
- append([this.listWrapper], this.popupWrapper);
10096
- }
10097
- this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
9850
+ this.popupWrapper = this.createElement('div', {
9851
+ className: ROOT$3 + ' ' + POPUP$2,
9852
+ attrs: { 'id': this.element.id + '_popup', 'style': 'visibility:hidden' }
9853
+ });
9854
+ if (!isNullOrUndefined(this.cssClass)) {
9855
+ this.popupWrapper.className += ' ' + this.cssClass;
10098
9856
  }
10099
- else {
10100
- this.popupWrapper = this.inputWrapper.container.nextElementSibling;
9857
+ if (!isNullOrUndefined(this.step) && this.step > 0) {
10101
9858
  this.generateList();
9859
+ append([this.listWrapper], this.popupWrapper);
10102
9860
  }
9861
+ this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
10103
9862
  this.addSelection();
10104
9863
  this.renderPopup();
10105
9864
  detach(this.popupWrapper);
@@ -10110,22 +9869,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10110
9869
  return popupHeight > height ? height : popupHeight;
10111
9870
  };
10112
9871
  TimePicker.prototype.generateList = function () {
10113
- if (!this.isBlazorServer) {
10114
- this.createListItems();
10115
- }
10116
- else {
10117
- this.listWrapper = this.popupWrapper.querySelector('.e-content');
10118
- }
9872
+ this.createListItems();
10119
9873
  this.wireListEvents();
10120
9874
  var rippleModel = { duration: 300, selector: '.' + LISTCLASS$1 };
10121
9875
  this.rippleFn = rippleEffect(this.listWrapper, rippleModel);
10122
9876
  this.liCollections = this.listWrapper.querySelectorAll('.' + LISTCLASS$1);
10123
- if (this.isBlazorServer) {
10124
- this.blazorTimeCollections = [];
10125
- for (var index = 0; index < this.liCollections.length; index++) {
10126
- this.blazorTimeCollections.push(this.liCollections[index].getAttribute('data-value'));
10127
- }
10128
- }
10129
9877
  };
10130
9878
  TimePicker.prototype.renderPopup = function () {
10131
9879
  var _this = this;
@@ -10146,11 +9894,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10146
9894
  removeClass([_this.inputWrapper.buttons[0]], SELECTED$4);
10147
9895
  _this.unWireListEvents();
10148
9896
  _this.inputElement.setAttribute('aria-activedescendant', 'null');
10149
- if (!_this.isBlazorServer) {
10150
- remove(_this.popupObj.element);
10151
- _this.popupObj.destroy();
10152
- _this.popupWrapper.innerHTML = '';
10153
- }
9897
+ remove(_this.popupObj.element);
9898
+ _this.popupObj.destroy();
9899
+ _this.popupWrapper.innerHTML = '';
10154
9900
  _this.listWrapper = _this.popupWrapper = _this.listTag = undefined;
10155
9901
  }, targetExitViewport: function () {
10156
9902
  if (!Browser.isDevice) {
@@ -10169,7 +9915,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10169
9915
  return null;
10170
9916
  }
10171
9917
  else {
10172
- return this.globalize.formatDate(value, { skeleton: isBlazor() ? 't' : 'medium', type: 'time' });
9918
+ return this.globalize.formatDate(value, { skeleton: 'medium', type: 'time' });
10173
9919
  }
10174
9920
  };
10175
9921
  TimePicker.prototype.getDateObject = function (text) {
@@ -10272,12 +10018,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10272
10018
  TimePicker.prototype.getMeridianText = function () {
10273
10019
  var meridian;
10274
10020
  if (this.locale === 'en' || this.locale === 'en-US') {
10275
- meridian = getValue((isBlazor() ? 'dayPeriods.wide' : 'dayPeriods.format.wide'), getDefaultDateObject());
10021
+ meridian = getValue('dayPeriods.format.wide', getDefaultDateObject());
10276
10022
  }
10277
10023
  else {
10278
- var gregorianFormat = (isBlazor() ? '.dates.dayPeriods.abbreviated' :
10279
- '.dates.calendars.gregorian.dayPeriods.format.abbreviated');
10280
- var mainVal = isBlazor() ? '' : 'main.';
10024
+ var gregorianFormat = '.dates.calendars.gregorian.dayPeriods.format.abbreviated';
10025
+ var mainVal = 'main.';
10281
10026
  meridian = getValue(mainVal + '' + this.locale + gregorianFormat, cldrData);
10282
10027
  }
10283
10028
  return meridian;
@@ -10354,11 +10099,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10354
10099
  if (!isNullOrUndefined(this.popupWrapper)) {
10355
10100
  var items = this.popupWrapper.querySelectorAll('.' + LISTCLASS$1);
10356
10101
  if (items.length) {
10357
- var initialTime = this.isBlazorServer ? new Date(new Date().toDateString() + ' ' +
10358
- this.blazorTimeCollections[0]).setMilliseconds(0) : this.timeCollections[0];
10359
- var scrollTime = this.isBlazorServer ? new Date(new Date().toDateString() + ' ' +
10360
- this.scrollTo.toLocaleTimeString()).setMilliseconds(0) :
10361
- this.getDateObject(this.checkDateValue(this.scrollTo)).getTime();
10102
+ var initialTime = this.timeCollections[0];
10103
+ var scrollTime = this.getDateObject(this.checkDateValue(this.scrollTo)).getTime();
10362
10104
  element = items[Math.round((scrollTime - initialTime) / (this.step * 60000))];
10363
10105
  }
10364
10106
  }
@@ -10383,23 +10125,18 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10383
10125
  TimePicker.prototype.cldrDateFormat = function () {
10384
10126
  var cldrDate;
10385
10127
  if (this.locale === 'en' || this.locale === 'en-US') {
10386
- cldrDate = isBlazor() ? (getValue('d', getValue(this.locale, blazorCultureFormats))) :
10387
- (getValue('dateFormats.short', getDefaultDateObject()));
10128
+ cldrDate = (getValue('dateFormats.short', getDefaultDateObject()));
10388
10129
  }
10389
10130
  else {
10390
10131
  cldrDate = (this.getCultureDateObject(cldrData, '' + this.locale));
10391
10132
  }
10392
10133
  return cldrDate;
10393
10134
  };
10394
- TimePicker.prototype.getBlazorCultureFormat = function (formatVal) {
10395
- return (getValue(formatVal, getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a');
10396
- };
10397
10135
  TimePicker.prototype.cldrTimeFormat = function () {
10398
10136
  var cldrTime;
10399
10137
  if (this.isNullOrEmpty(this.formatString)) {
10400
10138
  if (this.locale === 'en' || this.locale === 'en-US') {
10401
- cldrTime = isBlazor() ? this.getBlazorCultureFormat('t') :
10402
- (getValue('timeFormats.short', getDefaultDateObject()));
10139
+ cldrTime = (getValue('timeFormats.short', getDefaultDateObject()));
10403
10140
  }
10404
10141
  else {
10405
10142
  cldrTime = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -10413,12 +10150,10 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10413
10150
  TimePicker.prototype.dateToNumeric = function () {
10414
10151
  var cldrTime;
10415
10152
  if (this.locale === 'en' || this.locale === 'en-US') {
10416
- cldrTime = isBlazor() ? this.getBlazorCultureFormat('T') :
10417
- (getValue('timeFormats.medium', getDefaultDateObject()));
10153
+ cldrTime = (getValue('timeFormats.medium', getDefaultDateObject()));
10418
10154
  }
10419
10155
  else {
10420
- cldrTime = isBlazor() ? this.getBlazorCultureFormat('T') :
10421
- (getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.medium', cldrData));
10156
+ cldrTime = (getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.medium', cldrData));
10422
10157
  }
10423
10158
  return cldrTime;
10424
10159
  };
@@ -10466,9 +10201,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10466
10201
  e.preventDefault();
10467
10202
  this.interopAdaptor.invokeMethodAsync('OnTimeIconClick');
10468
10203
  };
10469
- TimePicker.prototype.updateBlazorTimeCollections = function (listData) {
10470
- this.blazorTimeCollections = listData;
10471
- };
10472
10204
  TimePicker.prototype.popupHandler = function (e) {
10473
10205
  if (!this.enabled) {
10474
10206
  return;
@@ -10476,10 +10208,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10476
10208
  if (Browser.isDevice) {
10477
10209
  this.inputElement.setAttribute('readonly', '');
10478
10210
  }
10479
- if (!this.isBlazorServer) {
10480
- e.preventDefault();
10481
- }
10482
- if (this.isPopupOpen() && !this.isBlazorServer) {
10211
+ e.preventDefault();
10212
+ if (this.isPopupOpen()) {
10483
10213
  this.closePopup(0, e);
10484
10214
  }
10485
10215
  else {
@@ -10577,22 +10307,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10577
10307
  case 'enter':
10578
10308
  if (this.isNavigate) {
10579
10309
  this.selectedElement = this.liCollections[this.activeIndex];
10580
- if (!this.isBlazorServer) {
10581
- this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
10582
- this.updateValue(this.valueWithMinutes, event);
10583
- }
10584
- else {
10585
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
10586
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
10587
- }
10310
+ this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
10311
+ this.updateValue(this.valueWithMinutes, event);
10588
10312
  }
10589
10313
  else {
10590
- if (!this.isBlazorServer) {
10591
- this.updateValue(this.inputElement.value, event);
10592
- }
10593
- else {
10594
- this.interopAdaptor.invokeMethodAsync('OnStrictMode', this.inputElement.value);
10595
- }
10314
+ this.updateValue(this.inputElement.value, event);
10596
10315
  }
10597
10316
  this.hide();
10598
10317
  this.isNavigate = false;
@@ -10601,24 +10320,17 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10601
10320
  }
10602
10321
  break;
10603
10322
  case 'open':
10604
- if (this.isBlazorServer) {
10605
- this.interopAdaptor.invokeMethodAsync('OnPopupHide', true);
10606
- }
10607
- else {
10608
- this.show(event);
10609
- }
10323
+ this.show(event);
10610
10324
  break;
10611
10325
  case 'escape':
10612
- if (!this.isBlazorServer) {
10613
- this.updateInputValue(this.objToString(this.value));
10614
- if (this.enableMask) {
10615
- if (!this.value) {
10616
- this.updateInputValue(this.maskedDateValue);
10617
- }
10618
- this.createMask();
10326
+ this.updateInputValue(this.objToString(this.value));
10327
+ if (this.enableMask) {
10328
+ if (!this.value) {
10329
+ this.updateInputValue(this.maskedDateValue);
10619
10330
  }
10620
- this.previousState(this.value);
10331
+ this.createMask();
10621
10332
  }
10333
+ this.previousState(this.value);
10622
10334
  this.hide();
10623
10335
  break;
10624
10336
  case 'close':
@@ -10657,7 +10369,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10657
10369
  var _this = this;
10658
10370
  if (this.isPopupOpen() && this.popupWrapper) {
10659
10371
  var args = {
10660
- popup: this.isBlazorServer ? null : this.popupObj,
10372
+ popup: this.popupObj,
10661
10373
  event: e || null,
10662
10374
  cancel: false,
10663
10375
  name: 'open'
@@ -10674,12 +10386,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10674
10386
  removeClass([_this.inputWrapper.container], [ICONANIMATION]);
10675
10387
  attributes(_this.inputElement, { 'aria-expanded': 'false' });
10676
10388
  EventHandler.remove(document, 'mousedown touchstart', _this.documentClickHandler);
10677
- if (_this.isBlazorServer) {
10678
- _this.disposeServerPopup();
10679
- _this.inputWrapper.container.parentElement.insertBefore(_this.popupWrapper, _this.inputWrapper.container.nextElementSibling);
10680
- _this.interopAdaptor.invokeMethodAsync('OnPopupHide', false);
10681
- _this.popupWrapper = _this.popupObj = null;
10682
- }
10683
10389
  }
10684
10390
  if (Browser.isDevice && _this.modal) {
10685
10391
  _this.modal.style.display = 'none';
@@ -10752,30 +10458,19 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10752
10458
  }
10753
10459
  };
10754
10460
  TimePicker.prototype.setSelection = function (li, event) {
10755
- if (this.isValidLI(li) && !li.classList.contains(SELECTED$4)) {
10756
- if (!this.isBlazorServer) {
10757
- this.checkValue(li.getAttribute('data-value'));
10758
- if (this.enableMask) {
10759
- this.notify("setMaskSelection", {
10760
- module: "MaskedDateTime"
10761
- });
10762
- }
10763
- this.selectedElement = li;
10764
- this.activeIndex = Array.prototype.slice.call(this.liCollections).indexOf(li);
10765
- this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
10766
- addClass([this.selectedElement], SELECTED$4);
10767
- this.selectedElement.setAttribute('aria-selected', 'true');
10768
- this.checkValueChange(event, true);
10769
- }
10770
- else {
10771
- this.selectedElement = li;
10772
- this.activeIndex = Array.prototype.slice.call(this.liCollections).indexOf(li);
10773
- addClass([this.selectedElement], SELECTED$4);
10774
- this.selectedElement.setAttribute('aria-selected', 'true');
10775
- this.inputElement.setAttribute('value', li.getAttribute('data-value'));
10776
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, false);
10777
- this.addSelection();
10461
+ if (this.isValidLI(li)) {
10462
+ this.checkValue(li.getAttribute('data-value'));
10463
+ if (this.enableMask) {
10464
+ this.notify("setMaskSelection", {
10465
+ module: "MaskedDateTime"
10466
+ });
10778
10467
  }
10468
+ this.selectedElement = li;
10469
+ this.activeIndex = Array.prototype.slice.call(this.liCollections).indexOf(li);
10470
+ this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
10471
+ addClass([this.selectedElement], SELECTED$4);
10472
+ this.selectedElement.setAttribute('aria-selected', 'true');
10473
+ this.checkValueChange(event, true);
10779
10474
  }
10780
10475
  };
10781
10476
  TimePicker.prototype.onMouseLeave = function () {
@@ -10883,7 +10578,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10883
10578
  return dateVal;
10884
10579
  };
10885
10580
  TimePicker.prototype.bindEvents = function () {
10886
- EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', (this.isBlazorServer ? this.preventEventBubbling : this.popupHandler), this);
10581
+ EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', this.popupHandler, this);
10887
10582
  EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
10888
10583
  EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
10889
10584
  EventHandler.add(this.inputElement, 'change', this.inputChangeHandler, this);
@@ -10929,18 +10624,16 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10929
10624
  }
10930
10625
  if (!this.inputElement.disabled) {
10931
10626
  var timeValue = this.inputElement.getAttribute('value');
10932
- var val = this.isBlazorServer ? this.inputEleValue : this.checkDateValue(this.inputEleValue);
10627
+ var val = this.checkDateValue(this.inputEleValue);
10933
10628
  if (this.element.tagName === 'EJS-TIMEPICKER') {
10934
10629
  val = null;
10935
10630
  timeValue = '';
10936
10631
  this.inputElement.setAttribute('value', '');
10937
10632
  }
10938
- if (!this.isBlazorServer) {
10939
- this.setProperties({ value: val }, true);
10940
- this.prevDate = this.value;
10941
- this.valueWithMinutes = this.value;
10942
- this.initValue = this.value;
10943
- }
10633
+ this.setProperties({ value: val }, true);
10634
+ this.prevDate = this.value;
10635
+ this.valueWithMinutes = this.value;
10636
+ this.initValue = this.value;
10944
10637
  if (this.inputElement) {
10945
10638
  this.updateInputValue(timeValue);
10946
10639
  if (this.enableMask) {
@@ -10949,9 +10642,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10949
10642
  }
10950
10643
  this.createMask();
10951
10644
  }
10952
- if (!this.isBlazorServer) {
10953
- this.checkErrorState(timeValue);
10954
- }
10645
+ this.checkErrorState(timeValue);
10955
10646
  this.prevValue = this.inputElement.value;
10956
10647
  }
10957
10648
  }
@@ -10971,7 +10662,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10971
10662
  };
10972
10663
  TimePicker.prototype.unBindEvents = function () {
10973
10664
  if (this.inputWrapper) {
10974
- EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', (this.isBlazorServer ? this.preventEventBubbling : this.popupHandler));
10665
+ EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', this.popupHandler);
10975
10666
  }
10976
10667
  EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
10977
10668
  EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
@@ -11011,9 +10702,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11011
10702
  this.resetState();
11012
10703
  this.raiseClearedEvent(e);
11013
10704
  }
11014
- if (this.isBlazorServer) {
11015
- this.interopAdaptor.invokeMethodAsync('OnValueCleared');
11016
- }
11017
10705
  if (this.popupWrapper) {
11018
10706
  this.popupWrapper.scrollTop = 0;
11019
10707
  }
@@ -11024,15 +10712,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11024
10712
  }
11025
10713
  };
11026
10714
  TimePicker.prototype.clear = function (event) {
11027
- if (!this.isBlazorServer) {
11028
- this.setProperties({ value: null }, true);
11029
- }
10715
+ this.setProperties({ value: null }, true);
11030
10716
  this.initValue = null;
11031
10717
  this.resetState();
11032
10718
  this.raiseClearedEvent(event);
11033
- if (!this.isBlazorServer) {
11034
- this.changeEvent(event);
11035
- }
10719
+ this.changeEvent(event);
11036
10720
  };
11037
10721
  TimePicker.prototype.setZIndex = function () {
11038
10722
  if (this.popupObj) {
@@ -11077,34 +10761,28 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11077
10761
  }
11078
10762
  break;
11079
10763
  case 'min':
11080
- if (!this.isBlazorServer) {
11081
- if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['min'] === undefined)) || isDynamic) {
11082
- value = new Date(this.inputElement.getAttribute(prop));
11083
- if (!isNullOrUndefined(this.checkDateValue(value))) {
11084
- this.setProperties({ min: value }, !isDynamic);
11085
- }
10764
+ if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['min'] === undefined)) || isDynamic) {
10765
+ value = new Date(this.inputElement.getAttribute(prop));
10766
+ if (!isNullOrUndefined(this.checkDateValue(value))) {
10767
+ this.setProperties({ min: value }, !isDynamic);
11086
10768
  }
11087
10769
  }
11088
10770
  break;
11089
10771
  case 'max':
11090
- if (!this.isBlazorServer) {
11091
- if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['max'] === undefined)) || isDynamic) {
11092
- value = new Date(this.inputElement.getAttribute(prop));
11093
- if (!isNullOrUndefined(this.checkDateValue(value))) {
11094
- this.setProperties({ max: value }, !isDynamic);
11095
- }
10772
+ if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['max'] === undefined)) || isDynamic) {
10773
+ value = new Date(this.inputElement.getAttribute(prop));
10774
+ if (!isNullOrUndefined(this.checkDateValue(value))) {
10775
+ this.setProperties({ max: value }, !isDynamic);
11096
10776
  }
11097
10777
  }
11098
10778
  break;
11099
10779
  case 'value':
11100
- if (!this.isBlazorServer) {
11101
- if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['value'] === undefined)) || isDynamic) {
11102
- value = new Date(this.inputElement.getAttribute(prop));
11103
- if (!isNullOrUndefined(this.checkDateValue(value))) {
11104
- this.initValue = value;
11105
- this.updateInput(false, this.initValue);
11106
- this.setProperties({ value: value }, !isDynamic);
11107
- }
10780
+ if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['value'] === undefined)) || isDynamic) {
10781
+ value = new Date(this.inputElement.getAttribute(prop));
10782
+ if (!isNullOrUndefined(this.checkDateValue(value))) {
10783
+ this.initValue = value;
10784
+ this.updateInput(false, this.initValue);
10785
+ this.setProperties({ value: value }, !isDynamic);
11108
10786
  }
11109
10787
  }
11110
10788
  break;
@@ -11172,7 +10850,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11172
10850
  this.removeSelection();
11173
10851
  Input.setValue('', this.inputElement, this.floatLabelType, false);
11174
10852
  this.valueWithMinutes = this.activeIndex = null;
11175
- if (!this.strictMode && !this.isBlazorServer) {
10853
+ if (!this.strictMode) {
11176
10854
  this.checkErrorState(null);
11177
10855
  }
11178
10856
  };
@@ -11235,44 +10913,34 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11235
10913
  };
11236
10914
  TimePicker.prototype.findNextElement = function (event) {
11237
10915
  var textVal = (this.inputElement).value;
11238
- var value = isNullOrUndefined(this.valueWithMinutes) || this.isBlazorServer ? this.createDateObj(textVal) :
10916
+ var value = isNullOrUndefined(this.valueWithMinutes) ? this.createDateObj(textVal) :
11239
10917
  this.getDateObject(this.valueWithMinutes);
11240
10918
  var timeVal = null;
11241
10919
  var count = this.liCollections.length;
11242
- var collections = this.isBlazorServer ? (isNullOrUndefined(this.blazorTimeCollections) ? [] :
11243
- this.blazorTimeCollections) : this.timeCollections;
10920
+ var collections = this.timeCollections;
11244
10921
  if (!isNullOrUndefined(this.checkDateValue(value)) || !isNullOrUndefined(this.activeIndex)) {
11245
10922
  if (event.action === 'home') {
11246
10923
  var index = this.validLiElement(0);
11247
- if (!this.isBlazorServer) {
11248
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11249
- }
10924
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11250
10925
  this.activeIndex = index;
11251
10926
  }
11252
10927
  else if (event.action === 'end') {
11253
10928
  var index = this.validLiElement(collections.length - 1, true);
11254
- if (!this.isBlazorServer) {
11255
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11256
- }
10929
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11257
10930
  this.activeIndex = index;
11258
10931
  }
11259
10932
  else {
11260
10933
  if (event.action === 'down') {
11261
10934
  for (var i = 0; i < count; i++) {
11262
- if (this.isBlazorServer ? (+value < +this.createDateObj(this.blazorTimeCollections[i])) :
11263
- (+value < this.timeCollections[i])) {
10935
+ if (+value < this.timeCollections[i]) {
11264
10936
  var index = this.validLiElement(i);
11265
- if (!this.isBlazorServer) {
11266
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11267
- }
10937
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11268
10938
  this.activeIndex = index;
11269
10939
  break;
11270
10940
  }
11271
10941
  else if (i === count - 1) {
11272
10942
  var index = this.validLiElement(0);
11273
- if (!this.isBlazorServer) {
11274
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11275
- }
10943
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11276
10944
  this.activeIndex = index;
11277
10945
  break;
11278
10946
  }
@@ -11280,20 +10948,15 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11280
10948
  }
11281
10949
  else {
11282
10950
  for (var i = count - 1; i >= 0; i--) {
11283
- if (this.isBlazorServer ? (+value > +this.createDateObj(this.blazorTimeCollections[i])) :
11284
- (+value > this.timeCollections[i])) {
10951
+ if (+value > this.timeCollections[i]) {
11285
10952
  var index = this.validLiElement(i, true);
11286
- if (!this.isBlazorServer) {
11287
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11288
- }
10953
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11289
10954
  this.activeIndex = index;
11290
10955
  break;
11291
10956
  }
11292
10957
  else if (i === 0) {
11293
10958
  var index = this.validLiElement(count - 1);
11294
- if (!this.isBlazorServer) {
11295
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11296
- }
10959
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
11297
10960
  this.activeIndex = index;
11298
10961
  break;
11299
10962
  }
@@ -11301,13 +10964,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11301
10964
  }
11302
10965
  }
11303
10966
  this.selectedElement = this.liCollections[this.activeIndex];
11304
- if (this.isBlazorServer) {
11305
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
11306
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
11307
- }
11308
- else {
11309
- this.elementValue(isNullOrUndefined(timeVal) ? null : new Date(timeVal));
11310
- }
10967
+ this.elementValue(isNullOrUndefined(timeVal) ? null : new Date(timeVal));
11311
10968
  }
11312
10969
  else {
11313
10970
  this.selectNextItem(event);
@@ -11317,58 +10974,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11317
10974
  var index = this.validLiElement(0, event.action === 'down' ? false : true);
11318
10975
  this.activeIndex = index;
11319
10976
  this.selectedElement = this.liCollections[index];
11320
- if (this.isBlazorServer) {
11321
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
11322
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', index, true);
11323
- }
11324
- else {
11325
- this.elementValue(new Date(this.timeCollections[index]));
11326
- }
11327
- };
11328
- TimePicker.prototype.findNextInBlazor = function (event) {
11329
- var count = isNullOrUndefined(this.blazorTimeCollections) ? 0 : this.blazorTimeCollections.length;
11330
- var index = 0;
11331
- var value = this.createDateObj(this.inputElement.value);
11332
- switch (event.action) {
11333
- case 'home':
11334
- this.activeIndex = index;
11335
- break;
11336
- case 'end':
11337
- index = count - 1;
11338
- this.activeIndex = index;
11339
- break;
11340
- case 'down':
11341
- for (var i = 0; i < count; i++) {
11342
- if (this.isBlazorServer ? (+value < +this.createDateObj(this.blazorTimeCollections[i])) :
11343
- (+value < this.timeCollections[i])) {
11344
- var index_1 = this.validLiElement(i);
11345
- this.activeIndex = index_1;
11346
- break;
11347
- }
11348
- else if (i === count - 1) {
11349
- var index_2 = this.validLiElement(0);
11350
- this.activeIndex = index_2;
11351
- break;
11352
- }
11353
- }
11354
- break;
11355
- case 'up':
11356
- for (var i = count - 1; i >= 0; i--) {
11357
- if (this.isBlazorServer ? (+value > +this.createDateObj(this.blazorTimeCollections[i])) :
11358
- (+value > this.timeCollections[i])) {
11359
- var index_3 = this.validLiElement(i, true);
11360
- this.activeIndex = index_3;
11361
- break;
11362
- }
11363
- else if (i === 0) {
11364
- var index_4 = this.validLiElement(count - 1);
11365
- this.activeIndex = index_4;
11366
- break;
11367
- }
11368
- }
11369
- break;
11370
- }
11371
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
10977
+ this.elementValue(new Date(this.timeCollections[index]));
11372
10978
  };
11373
10979
  TimePicker.prototype.elementValue = function (value) {
11374
10980
  if (!isNullOrUndefined(this.checkDateValue(value))) {
@@ -11377,53 +10983,34 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11377
10983
  };
11378
10984
  TimePicker.prototype.validLiElement = function (index, backward) {
11379
10985
  var elementIndex = null;
11380
- if (this.isBlazorServer && isNullOrUndefined(this.popupWrapper)) {
11381
- var items = this.blazorTimeCollections;
11382
- if (items.length) {
11383
- if (backward) {
11384
- for (var i = index; i >= 0; i--) {
10986
+ var items = isNullOrUndefined(this.popupWrapper) ? this.liCollections :
10987
+ this.popupWrapper.querySelectorAll('.' + LISTCLASS$1);
10988
+ var isCheck = true;
10989
+ if (items.length) {
10990
+ if (backward) {
10991
+ for (var i = index; i >= 0; i--) {
10992
+ if (!items[i].classList.contains(DISABLED$3)) {
11385
10993
  elementIndex = i;
11386
10994
  break;
11387
10995
  }
11388
- }
11389
- else {
11390
- for (var i = index; i <= items.length - 1; i++) {
11391
- elementIndex = i;
11392
- break;
10996
+ else if (i === 0) {
10997
+ if (isCheck) {
10998
+ index = i = items.length;
10999
+ isCheck = false;
11000
+ }
11393
11001
  }
11394
11002
  }
11395
11003
  }
11396
- }
11397
- else {
11398
- var items = isNullOrUndefined(this.popupWrapper) ? this.liCollections :
11399
- this.popupWrapper.querySelectorAll('.' + LISTCLASS$1);
11400
- var isCheck = true;
11401
- if (items.length) {
11402
- if (backward) {
11403
- for (var i = index; i >= 0; i--) {
11404
- if (!items[i].classList.contains(DISABLED$3)) {
11405
- elementIndex = i;
11406
- break;
11407
- }
11408
- else if (i === 0) {
11409
- if (isCheck) {
11410
- index = i = items.length;
11411
- isCheck = false;
11412
- }
11413
- }
11004
+ else {
11005
+ for (var i = index; i <= items.length - 1; i++) {
11006
+ if (!items[i].classList.contains(DISABLED$3)) {
11007
+ elementIndex = i;
11008
+ break;
11414
11009
  }
11415
- }
11416
- else {
11417
- for (var i = index; i <= items.length - 1; i++) {
11418
- if (!items[i].classList.contains(DISABLED$3)) {
11419
- elementIndex = i;
11420
- break;
11421
- }
11422
- else if (i === items.length - 1) {
11423
- if (isCheck) {
11424
- index = i = -1;
11425
- isCheck = false;
11426
- }
11010
+ else if (i === items.length - 1) {
11011
+ if (isCheck) {
11012
+ index = i = -1;
11013
+ isCheck = false;
11427
11014
  }
11428
11015
  }
11429
11016
  }
@@ -11435,32 +11022,21 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11435
11022
  if (isNullOrUndefined(this.step) || this.step <= 0 || this.inputWrapper.buttons[0].classList.contains(DISABLED$3)) {
11436
11023
  return;
11437
11024
  }
11438
- var count = this.isBlazorServer ? (isNullOrUndefined(this.blazorTimeCollections) ? 0 :
11439
- this.blazorTimeCollections.length) : this.timeCollections.length;
11025
+ var count = this.timeCollections.length;
11440
11026
  if (isNullOrUndefined(this.getActiveElement()) || this.getActiveElement().length === 0) {
11441
- if (isNullOrUndefined(this.popupObj) && this.isBlazorServer) {
11442
- if (isNullOrUndefined(this.activeIndex)) {
11027
+ if (this.liCollections.length > 0) {
11028
+ if (isNullOrUndefined(this.value) && isNullOrUndefined(this.activeIndex)) {
11443
11029
  var index = this.validLiElement(0, event.action === 'down' ? false : true);
11444
11030
  this.activeIndex = index;
11445
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', index, true);
11031
+ this.selectedElement = this.liCollections[index];
11032
+ this.elementValue(new Date(this.timeCollections[index]));
11446
11033
  }
11447
11034
  else {
11448
- this.findNextInBlazor(event);
11035
+ this.findNextElement(event);
11449
11036
  }
11450
11037
  }
11451
11038
  else {
11452
- if (this.liCollections.length > 0) {
11453
- if (this.isBlazorServer ? (isNullOrUndefined(this.activeIndex)) : (isNullOrUndefined(this.value) &&
11454
- isNullOrUndefined(this.activeIndex))) {
11455
- this.selectNextItem(event);
11456
- }
11457
- else {
11458
- this.findNextElement(event);
11459
- }
11460
- }
11461
- else {
11462
- this.findNextElement(event);
11463
- }
11039
+ this.findNextElement(event);
11464
11040
  }
11465
11041
  }
11466
11042
  else {
@@ -11471,50 +11047,34 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11471
11047
  this.activeIndex = index = this.activeIndex < 0 ? (count - 1) : this.activeIndex;
11472
11048
  this.activeIndex = index = this.validLiElement(this.activeIndex, (event.keyCode === 40 || event.keyCode === 39) ?
11473
11049
  false : true);
11474
- if (!this.isBlazorServer) {
11475
- nextItem = isNullOrUndefined(this.timeCollections[index]) ? this.timeCollections[0] : this.timeCollections[index];
11476
- }
11050
+ nextItem = isNullOrUndefined(this.timeCollections[index]) ? this.timeCollections[0] : this.timeCollections[index];
11477
11051
  }
11478
11052
  else if (event.action === 'home') {
11479
11053
  var index = this.validLiElement(0);
11480
11054
  this.activeIndex = index;
11481
- if (!this.isBlazorServer) {
11482
- nextItem = this.timeCollections[index];
11483
- }
11055
+ nextItem = this.timeCollections[index];
11484
11056
  }
11485
11057
  else if (event.action === 'end') {
11486
11058
  var index = this.validLiElement(count - 1, true);
11487
11059
  this.activeIndex = index;
11488
- if (!this.isBlazorServer) {
11489
- nextItem = this.timeCollections[index];
11490
- }
11060
+ nextItem = this.timeCollections[index];
11491
11061
  }
11492
11062
  this.selectedElement = this.liCollections[this.activeIndex];
11493
- if (this.isBlazorServer) {
11494
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
11495
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
11496
- }
11497
- else {
11498
- this.elementValue(new Date(nextItem));
11499
- }
11063
+ this.elementValue(new Date(nextItem));
11500
11064
  }
11501
11065
  this.isNavigate = true;
11502
11066
  this.setHover(this.selectedElement, NAVIGATION);
11503
11067
  this.setActiveDescendant();
11504
- if (!this.isBlazorServer) {
11505
- this.selectInputText();
11506
- }
11068
+ this.selectInputText();
11507
11069
  if (this.isPopupOpen() && this.selectedElement !== null && (!event || event.type !== 'click')) {
11508
11070
  this.setScrollPosition();
11509
11071
  }
11510
11072
  };
11511
11073
  TimePicker.prototype.getCultureTimeObject = function (ld, c) {
11512
- return isBlazor() ? (getValue('t', getValue(c, blazorCultureFormats))).replace(/tt/, 'a') :
11513
- getValue('main.' + c + '.dates.calendars.gregorian.timeFormats.short', ld);
11074
+ return getValue('main.' + c + '.dates.calendars.gregorian.timeFormats.short', ld);
11514
11075
  };
11515
11076
  TimePicker.prototype.getCultureDateObject = function (ld, c) {
11516
- return isBlazor() ? (getValue('d', getValue(c, blazorCultureFormats))) :
11517
- getValue('main.' + c + '.dates.calendars.gregorian.dateFormats.short', ld);
11077
+ return getValue('main.' + c + '.dates.calendars.gregorian.dateFormats.short', ld);
11518
11078
  };
11519
11079
  TimePicker.prototype.wireListEvents = function () {
11520
11080
  EventHandler.add(this.listWrapper, 'click', this.onMouseClick, this);
@@ -11616,8 +11176,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11616
11176
  var items = this.popupWrapper.querySelectorAll('.' + LISTCLASS$1);
11617
11177
  if (items.length) {
11618
11178
  for (var i = 0; i < items.length; i++) {
11619
- if ((!this.isBlazorServer && this.timeCollections[i] === +this.getDateObject(this.valueWithMinutes))
11620
- || (this.isBlazorServer && this.blazorTimeCollections[i] === this.blazorTimeCollections[this.activeIndex])) {
11179
+ if ((this.timeCollections[i] === +this.getDateObject(this.valueWithMinutes))) {
11621
11180
  items[i].setAttribute('aria-selected', 'true');
11622
11181
  this.selectedElement = items[i];
11623
11182
  this.activeIndex = i;
@@ -11640,9 +11199,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11640
11199
  return (li && li.classList.contains(LISTCLASS$1) && !li.classList.contains(DISABLED$3));
11641
11200
  };
11642
11201
  TimePicker.prototype.createDateObj = function (val) {
11643
- var formatStr = isBlazor() ?
11644
- 'M' + getDefaultDateObject().dateSeperator + 'd' + getDefaultDateObject().dateSeperator + 'yy'
11645
- : null;
11202
+ var formatStr = null;
11646
11203
  var today = this.globalize.formatDate(new Date(), { format: formatStr, skeleton: 'short', type: 'date' });
11647
11204
  var value = null;
11648
11205
  if (typeof val === 'string') {
@@ -11785,18 +11342,15 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11785
11342
  }
11786
11343
  removeClass([this.inputWrapper.container], [FOCUS]);
11787
11344
  var blurArguments = {
11788
- model: this.isBlazorServer ? null : this
11345
+ model: this
11789
11346
  };
11790
11347
  this.trigger('blur', blurArguments);
11791
- if (!this.isBlazorServer && this.getText() !== this.inputElement.value) {
11348
+ if (this.getText() !== this.inputElement.value) {
11792
11349
  this.updateValue((this.inputElement).value, e);
11793
11350
  }
11794
11351
  else if (this.inputElement.value.trim().length === 0) {
11795
11352
  this.resetState();
11796
11353
  }
11797
- if (this.isBlazorServer) {
11798
- this.interopAdaptor.invokeMethodAsync('OnStrictMode', this.inputElement.value);
11799
- }
11800
11354
  this.cursorDetails = null;
11801
11355
  this.isNavigate = false;
11802
11356
  if (this.inputElement.value === '') {
@@ -11813,7 +11367,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11813
11367
  this.inputElement.blur();
11814
11368
  removeClass([this.inputWrapper.container], [FOCUS]);
11815
11369
  var blurArguments = {
11816
- model: this.isBlazorServer ? null : this
11370
+ model: this
11817
11371
  };
11818
11372
  this.trigger('blur', blurArguments);
11819
11373
  }
@@ -11829,7 +11383,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11829
11383
  return;
11830
11384
  }
11831
11385
  var focusArguments = {
11832
- model: this.isBlazorServer ? null : this
11386
+ model: this
11833
11387
  };
11834
11388
  if (!this.readonly && !Browser.isDevice && !this.enableMask) {
11835
11389
  this.selectInputText();
@@ -11892,7 +11446,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11892
11446
  document.body.appendChild(this.mobileTimePopupWrap);
11893
11447
  }
11894
11448
  this.openPopupEventArgs = {
11895
- popup: this.isBlazorServer ? null : (this.popupObj || null),
11449
+ popup: this.popupObj || null,
11896
11450
  cancel: false,
11897
11451
  event: event || null,
11898
11452
  name: 'open',
@@ -11900,19 +11454,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11900
11454
  };
11901
11455
  var eventArgs = this.openPopupEventArgs;
11902
11456
  this.trigger('open', eventArgs, function (eventArgs) {
11903
- if ((isBlazor() && _this.isServerRendered)) {
11904
- eventArgs.popup = _this.popupObj || null;
11905
- }
11906
11457
  _this.openPopupEventArgs = eventArgs;
11907
11458
  if (!_this.openPopupEventArgs.cancel && !_this.inputWrapper.buttons[0].classList.contains(DISABLED$3)) {
11908
- if (_this.isBlazorServer) {
11909
- _this.popupWrapper.style.visibility = '';
11910
- _this.popupWrapper.style.width = _this.inputWrapper.container.offsetWidth + 'px';
11911
- _this.popupWrapper.style.height = 'auto';
11912
- }
11913
- if (_this.isBlazorServer) {
11914
- _this.openPopupEventArgs.popup = _this.popupObj;
11915
- }
11916
11459
  _this.openPopupEventArgs.appendTo.appendChild(_this.popupWrapper);
11917
11460
  _this.popupAlignment(_this.openPopupEventArgs);
11918
11461
  _this.setScrollPosition();
@@ -11938,11 +11481,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
11938
11481
  }
11939
11482
  else {
11940
11483
  _this.popupObj.destroy();
11941
- if (_this.isBlazorServer) {
11942
- _this.disposeServerPopup();
11943
- _this.inputWrapper.container.parentElement.insertBefore(_this.popupWrapper, _this.inputWrapper.container.nextElementSibling);
11944
- _this.interopAdaptor.invokeMethodAsync('OnPopupHide', false);
11945
- }
11946
11484
  _this.popupWrapper = _this.listTag = undefined;
11947
11485
  _this.liCollections = _this.timeCollections = _this.disableItemCollection = [];
11948
11486
  _this.popupObj = null;
@@ -12067,10 +11605,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12067
11605
  this.setTimeAllowEdit();
12068
11606
  break;
12069
11607
  case 'enableRtl':
12070
- if (!this.isBlazorServer) {
12071
- this.setProperties({ enableRtl: newProp.enableRtl }, true);
12072
- this.setEnableRtl();
12073
- }
11608
+ this.setProperties({ enableRtl: newProp.enableRtl }, true);
11609
+ this.setEnableRtl();
12074
11610
  break;
12075
11611
  case 'cssClass':
12076
11612
  this.updateCssClass(newProp.cssClass, oldProp.cssClass);
@@ -12086,9 +11622,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12086
11622
  break;
12087
11623
  case 'min':
12088
11624
  case 'max':
12089
- if (!this.isBlazorServer) {
12090
- this.getProperty(newProp, prop);
12091
- }
11625
+ this.getProperty(newProp, prop);
12092
11626
  break;
12093
11627
  case 'showClearButton':
12094
11628
  Input.setClearButton(this.showClearButton, this.inputElement, this.inputWrapper);
@@ -12099,13 +11633,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12099
11633
  this.globalize = new Internationalization(this.locale);
12100
11634
  this.l10n.setLocale(this.locale);
12101
11635
  this.updatePlaceHolder();
12102
- if (!this.isBlazorServer) {
12103
- this.setValue(this.value);
12104
- if (this.enableMask) {
12105
- this.notify("createMask", {
12106
- module: "MaskedDateTime",
12107
- });
12108
- }
11636
+ this.setValue(this.value);
11637
+ if (this.enableMask) {
11638
+ this.notify("createMask", {
11639
+ module: "MaskedDateTime",
11640
+ });
12109
11641
  }
12110
11642
  break;
12111
11643
  case 'width':
@@ -12115,50 +11647,46 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12115
11647
  case 'format':
12116
11648
  this.setProperties({ format: newProp.format }, true);
12117
11649
  this.checkTimeFormat();
12118
- if (!this.isBlazorServer) {
12119
- this.setValue(this.value);
12120
- if (this.enableMask) {
12121
- this.createMask();
12122
- if (!this.value) {
12123
- this.updateInputValue(this.maskedDateValue);
12124
- }
11650
+ this.setValue(this.value);
11651
+ if (this.enableMask) {
11652
+ this.createMask();
11653
+ if (!this.value) {
11654
+ this.updateInputValue(this.maskedDateValue);
12125
11655
  }
12126
11656
  }
12127
11657
  break;
12128
11658
  case 'value':
12129
- if (!this.isBlazorServer) {
12130
- this.invalidValueString = null;
12131
- this.checkInvalidValue(newProp.value);
12132
- newProp.value = this.value;
12133
- if (!this.invalidValueString) {
12134
- if (typeof newProp.value === 'string') {
12135
- this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
12136
- newProp.value = this.value;
12137
- }
12138
- else {
12139
- if ((newProp.value && +new Date(+newProp.value).setMilliseconds(0)) !== +this.value) {
12140
- newProp.value = this.checkDateValue(new Date('' + newProp.value));
12141
- }
12142
- }
12143
- this.initValue = newProp.value;
12144
- newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
11659
+ this.invalidValueString = null;
11660
+ this.checkInvalidValue(newProp.value);
11661
+ newProp.value = this.value;
11662
+ if (!this.invalidValueString) {
11663
+ if (typeof newProp.value === 'string') {
11664
+ this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
11665
+ newProp.value = this.value;
12145
11666
  }
12146
11667
  else {
12147
- this.updateInputValue(this.invalidValueString);
12148
- this.checkErrorState(this.invalidValueString);
12149
- }
12150
- this.checkValueChange(null, false);
12151
- if (this.isPopupOpen()) {
12152
- this.setScrollPosition();
12153
- }
12154
- if (this.isAngular && this.preventChange) {
12155
- this.preventChange = false;
12156
- }
12157
- if (this.enableMask) {
12158
- this.notify("createMask", {
12159
- module: "MaskedDateTime",
12160
- });
11668
+ if ((newProp.value && +new Date(+newProp.value).setMilliseconds(0)) !== +this.value) {
11669
+ newProp.value = this.checkDateValue(new Date('' + newProp.value));
11670
+ }
12161
11671
  }
11672
+ this.initValue = newProp.value;
11673
+ newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
11674
+ }
11675
+ else {
11676
+ this.updateInputValue(this.invalidValueString);
11677
+ this.checkErrorState(this.invalidValueString);
11678
+ }
11679
+ this.checkValueChange(null, false);
11680
+ if (this.isPopupOpen()) {
11681
+ this.setScrollPosition();
11682
+ }
11683
+ if (this.isAngular && this.preventChange) {
11684
+ this.preventChange = false;
11685
+ }
11686
+ if (this.enableMask) {
11687
+ this.notify("createMask", {
11688
+ module: "MaskedDateTime",
11689
+ });
12162
11690
  }
12163
11691
  break;
12164
11692
  case 'floatLabelType':
@@ -12167,32 +11695,23 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12167
11695
  Input.addFloating(this.inputElement, this.floatLabelType, this.placeholder);
12168
11696
  break;
12169
11697
  case 'strictMode':
12170
- if (!this.isBlazorServer) {
12171
- this.invalidValueString = null;
12172
- if (newProp.strictMode) {
12173
- this.checkErrorState(null);
12174
- }
12175
- this.setProperties({ strictMode: newProp.strictMode }, true);
12176
- this.checkValue((this.inputElement).value);
12177
- this.checkValueChange(null, false);
11698
+ this.invalidValueString = null;
11699
+ if (newProp.strictMode) {
11700
+ this.checkErrorState(null);
12178
11701
  }
11702
+ this.setProperties({ strictMode: newProp.strictMode }, true);
11703
+ this.checkValue((this.inputElement).value);
11704
+ this.checkValueChange(null, false);
12179
11705
  break;
12180
11706
  case 'scrollTo':
12181
- if (!this.isBlazorServer) {
12182
- if (this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo)))) {
12183
- if (this.popupWrapper) {
12184
- this.setScrollTo();
12185
- }
12186
- this.setProperties({ scrollTo: this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo))) }, true);
12187
- }
12188
- else {
12189
- this.setProperties({ scrollTo: null }, true);
12190
- }
12191
- }
12192
- else {
11707
+ if (this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo)))) {
12193
11708
  if (this.popupWrapper) {
12194
11709
  this.setScrollTo();
12195
11710
  }
11711
+ this.setProperties({ scrollTo: this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo))) }, true);
11712
+ }
11713
+ else {
11714
+ this.setProperties({ scrollTo: null }, true);
12196
11715
  }
12197
11716
  break;
12198
11717
  case 'enableMask':
@@ -12441,7 +11960,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12441
11960
  }
12442
11961
  removeClass([this.inputWrapper.container], INPUTFOCUS$2);
12443
11962
  var blurArguments = {
12444
- model: (isBlazor() && this.isServerRendered) ? null : this
11963
+ model: this
12445
11964
  };
12446
11965
  if (this.isTimePopupOpen()) {
12447
11966
  this.hide(e);
@@ -12620,7 +12139,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12620
12139
  var dateOptions;
12621
12140
  if (!isNullOrUndefined(value)) {
12622
12141
  if (this.calendarMode === 'Gregorian') {
12623
- dateOptions = { format: this.cldrDateTimeFormat(), type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
12142
+ dateOptions = { format: this.cldrDateTimeFormat(), type: 'dateTime', skeleton: 'yMd' };
12624
12143
  }
12625
12144
  else {
12626
12145
  dateOptions = { format: this.cldrDateTimeFormat(), type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -12671,8 +12190,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12671
12190
  var cldrTime;
12672
12191
  if (this.isNullOrEmpty(this.timeFormat)) {
12673
12192
  if (this.locale === 'en' || this.locale === 'en-US') {
12674
- cldrTime = isBlazor() ? (getValue('t', getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a') :
12675
- (getValue('timeFormats.short', getDefaultDateObject()));
12193
+ cldrTime = (getValue('timeFormats.short', getDefaultDateObject()));
12676
12194
  }
12677
12195
  else {
12678
12196
  cldrTime = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -12686,7 +12204,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12686
12204
  DateTimePicker.prototype.cldrDateTimeFormat = function () {
12687
12205
  var cldrTime;
12688
12206
  var culture = new Internationalization(this.locale);
12689
- var dateFormat = culture.getDatePattern({ skeleton: isBlazor() ? 'd' : 'yMd' });
12207
+ var dateFormat = culture.getDatePattern({ skeleton: 'yMd' });
12690
12208
  if (this.isNullOrEmpty(this.formatString)) {
12691
12209
  cldrTime = dateFormat + ' ' + this.getCldrFormat('time');
12692
12210
  }
@@ -12699,8 +12217,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12699
12217
  DateTimePicker.prototype.getCldrFormat = function (type) {
12700
12218
  var cldrDateTime;
12701
12219
  if (this.locale === 'en' || this.locale === 'en-US') {
12702
- cldrDateTime = isBlazor() ? (getValue('t', getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a') :
12703
- (getValue('timeFormats.short', getDefaultDateObject()));
12220
+ cldrDateTime = (getValue('timeFormats.short', getDefaultDateObject()));
12704
12221
  }
12705
12222
  else {
12706
12223
  cldrDateTime = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -12718,8 +12235,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12718
12235
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
12719
12236
  DateTimePicker.prototype.getCultureTimeObject = function (ld, c) {
12720
12237
  if (this.calendarMode === 'Gregorian') {
12721
- return isBlazor() ? (getValue('t', getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a') :
12722
- (getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.short', ld));
12238
+ return getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.short', ld);
12723
12239
  }
12724
12240
  else {
12725
12241
  return getValue('main.' + '' + this.locale + '.dates.calendars.islamic.timeFormats.short', ld);
@@ -12866,7 +12382,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12866
12382
  var _this = this;
12867
12383
  this.preventArgs = {
12868
12384
  cancel: false,
12869
- popup: (isBlazor() && this.isServerRendered) ? null : this.popupObject,
12385
+ popup: this.popupObject,
12870
12386
  event: e || null
12871
12387
  };
12872
12388
  var eventArgs = this.preventArgs;
@@ -13275,7 +12791,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
13275
12791
  if (this.popupObj || this.dateTimeWrapper) {
13276
12792
  this.preventArgs = {
13277
12793
  cancel: false,
13278
- popup: (isBlazor() && this.isServerRendered) ? null : this.popupObj || this.popupObject,
12794
+ popup: this.popupObj || this.popupObject,
13279
12795
  event: e || null
13280
12796
  };
13281
12797
  var eventArgs = this.preventArgs;
@@ -13516,7 +13032,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
13516
13032
  if (this.calendarMode === 'Gregorian') {
13517
13033
  dateString = this.globalize.formatDate(time, {
13518
13034
  format: !isNullOrUndefined(this.formatString) ? this.formatString : this.cldrDateTimeFormat(),
13519
- type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
13035
+ type: 'dateTime', skeleton: 'yMd'
13520
13036
  });
13521
13037
  }
13522
13038
  else {
@@ -13940,9 +13456,14 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
13940
13456
  this.isDeletion = false;
13941
13457
  this.isShortYear = false;
13942
13458
  this.isDeleteKey = false;
13459
+ this.isDateZero = false;
13460
+ this.isMonthZero = false;
13461
+ this.isYearZero = false;
13462
+ this.dayTypeCount = 0;
13463
+ this.monthTypeCount = 0;
13943
13464
  this.parent = parent;
13944
13465
  this.dateformat = this.getCulturedFormat();
13945
- this.maskDateValue = this.parent.value != null ? this.parent.value : new Date();
13466
+ this.maskDateValue = this.parent.value != null ? new Date(+this.parent.value) : new Date();
13946
13467
  this.maskDateValue.setMonth(0);
13947
13468
  this.maskDateValue.setHours(0);
13948
13469
  this.maskDateValue.setMinutes(0);
@@ -14100,6 +13621,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14100
13621
  switch (this.previousHiddenMask[start - 1]) {
14101
13622
  case 'd':
14102
13623
  var date = (this.isDayPart && newDateValue.getDate().toString().length < 2 ? newDateValue.getDate() * 10 : 0) + parseInt(newVal[start - 1], 10);
13624
+ this.isDateZero = (newVal[start - 1] == '0');
14103
13625
  if (isNaN(date)) {
14104
13626
  return;
14105
13627
  }
@@ -14114,9 +13636,11 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14114
13636
  return;
14115
13637
  }
14116
13638
  this.isDayPart = true;
13639
+ this.dayTypeCount = this.dayTypeCount + 1;
14117
13640
  }
14118
13641
  else {
14119
13642
  this.isDayPart = false;
13643
+ this.dayTypeCount = this.isDateZero ? this.dayTypeCount + 1 : this.dayTypeCount;
14120
13644
  }
14121
13645
  break;
14122
13646
  case 'M':
@@ -14127,6 +13651,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14127
13651
  else {
14128
13652
  month = parseInt(newVal[start - 1], 10);
14129
13653
  }
13654
+ this.isMonthZero = (newVal[start - 1] == '0');
14130
13655
  if (!isNaN(month)) {
14131
13656
  while (month > 12) {
14132
13657
  month = parseInt(month.toString().slice(1), 10);
@@ -14147,10 +13672,12 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14147
13672
  }
14148
13673
  this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
14149
13674
  this.isMonthPart = true;
13675
+ this.monthTypeCount = this.monthTypeCount + 1;
14150
13676
  }
14151
13677
  else {
14152
13678
  newDateValue.setMonth(0);
14153
13679
  this.isMonthPart = false;
13680
+ this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
14154
13681
  }
14155
13682
  }
14156
13683
  else { // let monthString: string[] = <string[]>(getValue('months[stand-alone].wide', getDefaultDateObject()));
@@ -14176,6 +13703,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14176
13703
  case 'y':
14177
13704
  var year = (this.isYearPart && (newDateValue.getFullYear().toString().length < 4 && !this.isShortYear) ? newDateValue.getFullYear() * 10 : 0) + parseInt(newVal[start - 1], 10);
14178
13705
  this.isShortYear = false;
13706
+ this.isYearZero = (newVal[start - 1] == '0');
14179
13707
  if (isNaN(year)) {
14180
13708
  return;
14181
13709
  }
@@ -14283,9 +13811,15 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14283
13811
  case 'dddd':
14284
13812
  case 'd':
14285
13813
  result = proxy.isDayPart ? proxy.maskDateValue.getDate().toString() : proxy.defaultConstant['day'].toString();
13814
+ result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
14286
13815
  break;
14287
13816
  case 'dd':
14288
13817
  result = proxy.isDayPart ? proxy.roundOff(proxy.maskDateValue.getDate(), 2) : proxy.defaultConstant['day'].toString();
13818
+ result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
13819
+ if (proxy.dayTypeCount == 2) {
13820
+ proxy.isNavigate = true;
13821
+ proxy.dayTypeCount = 0;
13822
+ }
14289
13823
  break;
14290
13824
  case 'E':
14291
13825
  case 'EE':
@@ -14300,9 +13834,15 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14300
13834
  break;
14301
13835
  case 'M':
14302
13836
  result = proxy.isMonthPart ? (proxy.maskDateValue.getMonth() + 1).toString() : proxy.defaultConstant['month'].toString();
13837
+ result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
14303
13838
  break;
14304
13839
  case 'MM':
14305
13840
  result = proxy.isMonthPart ? proxy.roundOff(proxy.maskDateValue.getMonth() + 1, 2) : proxy.defaultConstant['month'].toString();
13841
+ result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
13842
+ if (proxy.monthTypeCount == 2) {
13843
+ proxy.isNavigate = true;
13844
+ proxy.monthTypeCount = 0;
13845
+ }
14306
13846
  break;
14307
13847
  case 'MMM':
14308
13848
  result = proxy.isMonthPart ? monthAbbreviated[proxy.maskDateValue.getMonth() + 1] : proxy.defaultConstant['month'].toString();
@@ -14312,6 +13852,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14312
13852
  break;
14313
13853
  case 'yy':
14314
13854
  result = proxy.isYearPart ? proxy.roundOff(proxy.maskDateValue.getFullYear() % 100, 2) : proxy.defaultConstant['year'].toString();
13855
+ result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);
14315
13856
  if (proxy.isYearPart) {
14316
13857
  proxy.isNavigate = proxy.isShortYear = (proxy.maskDateValue.getFullYear() % 100).toString().length === 2;
14317
13858
  }
@@ -14319,6 +13860,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14319
13860
  case 'y':
14320
13861
  case 'yyyy':
14321
13862
  result = proxy.isYearPart ? proxy.roundOff(proxy.maskDateValue.getFullYear(), 4) : proxy.defaultConstant['year'].toString();
13863
+ result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);
14322
13864
  break;
14323
13865
  case 'h':
14324
13866
  result = proxy.isHourPart ? (proxy.maskDateValue.getHours() % 12 || 12).toString() : proxy.defaultConstant['hour'].toString();
@@ -14394,6 +13936,7 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14394
13936
  inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
14395
13937
  this.isHiddenMask = true;
14396
13938
  this.hiddenMask = this.dateformat.replace(this.formatRegex, this.formatCheck());
13939
+ this.isDateZero = this.isMonthZero = this.isYearZero = false;
14397
13940
  this.isHiddenMask = false;
14398
13941
  this.previousHiddenMask = this.hiddenMask;
14399
13942
  this.previousValue = inputValue;
@@ -14430,6 +13973,13 @@ var MaskedDateTime = /** @__PURE__ @class */ (function () {
14430
13973
  }
14431
13974
  return result + valueText;
14432
13975
  };
13976
+ MaskedDateTime.prototype.zeroCheck = function (isZero, isDayPart, resultValue) {
13977
+ var result = resultValue;
13978
+ if (isZero && !isDayPart) {
13979
+ result = '0';
13980
+ }
13981
+ return result;
13982
+ };
14433
13983
  MaskedDateTime.prototype.handleDeletion = function (format, isSegment) {
14434
13984
  switch (format) {
14435
13985
  case 'd':