@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
@@ -18,11 +18,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  /* eslint-disable @typescript-eslint/no-explicit-any */
21
- import { EventHandler, Property, Internationalization, NotifyPropertyChanges, isBlazor } from '@syncfusion/ej2-base';
21
+ import { EventHandler, Property, Internationalization, NotifyPropertyChanges } from '@syncfusion/ej2-base';
22
22
  import { KeyboardEvents, Animation, Browser } from '@syncfusion/ej2-base';
23
23
  import { cldrData, L10n, Component, getDefaultDateObject, rippleEffect, Event } from '@syncfusion/ej2-base';
24
24
  import { remove, addClass, detach, removeClass, closest, append, attributes, setStyleAttribute } from '@syncfusion/ej2-base';
25
- import { isNullOrUndefined, formatUnit, getValue, extend, getUniqueID, blazorCultureFormats, ChildProperty } from '@syncfusion/ej2-base';
25
+ import { isNullOrUndefined, formatUnit, getValue, extend, getUniqueID, ChildProperty } from '@syncfusion/ej2-base';
26
26
  import { Popup } from '@syncfusion/ej2-popups';
27
27
  import { Input } from '@syncfusion/ej2-inputs';
28
28
  import { ListBase } from '@syncfusion/ej2-lists';
@@ -134,10 +134,8 @@ var TimePicker = /** @class */ (function (_super) {
134
134
  var _this = _super.call(this, options, element) || this;
135
135
  _this.liCollections = [];
136
136
  _this.timeCollections = [];
137
- _this.blazorTimeCollections = [];
138
137
  _this.disableItemCollection = [];
139
138
  _this.invalidValueString = null;
140
- _this.isBlazorServer = false;
141
139
  _this.isAngular = false;
142
140
  _this.preventChange = false;
143
141
  _this.maskedDateValue = '';
@@ -170,62 +168,35 @@ var TimePicker = /** @class */ (function (_super) {
170
168
  this.inputElement = this.element;
171
169
  this.angularTag = null;
172
170
  this.formElement = closest(this.element, 'form');
173
- this.isBlazorServer = (isBlazor() && this.isServerRendered && this.getModuleName() === 'timepicker') ? true : false;
174
- if (!this.isBlazorServer) {
175
- if (this.element.tagName === 'EJS-TIMEPICKER') {
176
- this.angularTag = this.element.tagName;
177
- this.inputElement = this.createElement('input');
178
- this.element.appendChild(this.inputElement);
179
- }
180
- this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
181
- this.element.removeAttribute('tabindex');
182
- this.openPopupEventArgs = {
183
- appendTo: document.body
184
- };
185
- }
171
+ if (this.element.tagName === 'EJS-TIMEPICKER') {
172
+ this.angularTag = this.element.tagName;
173
+ this.inputElement = this.createElement('input');
174
+ this.element.appendChild(this.inputElement);
175
+ }
176
+ this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
177
+ this.element.removeAttribute('tabindex');
178
+ this.openPopupEventArgs = {
179
+ appendTo: document.body
180
+ };
186
181
  };
187
182
  // element creation
188
183
  TimePicker.prototype.render = function () {
189
- if (!this.isBlazorServer) {
190
- this.initialize();
191
- this.createInputElement();
192
- this.updateHtmlAttributeToWrapper();
193
- this.setTimeAllowEdit();
194
- this.setEnable();
195
- this.validateInterval();
196
- }
197
- else {
198
- this.globalize = new Internationalization(this.locale);
199
- this.defaultCulture = new Internationalization('en');
200
- this.checkTimeFormat();
201
- var parentElement = this.element.parentElement;
202
- this.inputWrapper = {
203
- container: parentElement,
204
- clearButton: parentElement.querySelector('.' + CLEARICON),
205
- buttons: [parentElement.querySelector('.' + TIMEICON)]
206
- };
207
- Input.bindInitialEvent({
208
- element: this.inputElement,
209
- floatLabelType: this.floatLabelType
210
- });
211
- if (this.showClearButton && this.inputWrapper.clearButton) {
212
- Input.wireClearBtnEvents(this.inputElement, this.inputWrapper.clearButton, this.inputWrapper.container);
213
- }
214
- }
184
+ this.initialize();
185
+ this.createInputElement();
186
+ this.updateHtmlAttributeToWrapper();
187
+ this.setTimeAllowEdit();
188
+ this.setEnable();
189
+ this.validateInterval();
215
190
  this.bindEvents();
216
- if (!this.isBlazorServer) {
217
- this.validateDisable();
218
- this.setValue(this.getFormattedValue(this.value));
219
- if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType == 'Always' || !this.floatLabelType || !this.placeholder)) {
220
- this.updateInputValue(this.maskedDateValue);
221
- this.checkErrorState(this.maskedDateValue);
222
- }
191
+ this.validateDisable();
192
+ this.setValue(this.getFormattedValue(this.value));
193
+ if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType == 'Always' || !this.floatLabelType || !this.placeholder)) {
194
+ this.updateInputValue(this.maskedDateValue);
195
+ this.checkErrorState(this.maskedDateValue);
223
196
  }
224
197
  this.anchor = this.inputElement;
225
198
  this.inputElement.setAttribute('value', this.inputElement.value);
226
- if (!this.isBlazorServer) {
227
- this.inputEleValue = this.getDateObject(this.inputElement.value);
228
- }
199
+ this.inputEleValue = this.getDateObject(this.inputElement.value);
229
200
  this.renderComplete();
230
201
  };
231
202
  TimePicker.prototype.setTimeAllowEdit = function () {
@@ -383,7 +354,7 @@ var TimePicker = /** @class */ (function (_super) {
383
354
  TimePicker.prototype.getCldrDateTimeFormat = function () {
384
355
  var culture = new Internationalization(this.locale);
385
356
  var cldrTime;
386
- var dateFormat = culture.getDatePattern({ skeleton: isBlazor() ? 'd' : 'yMd' });
357
+ var dateFormat = culture.getDatePattern({ skeleton: 'yMd' });
387
358
  if (this.isNullOrEmpty(this.formatString)) {
388
359
  cldrTime = dateFormat + ' ' + this.cldrFormat('time');
389
360
  }
@@ -413,7 +384,7 @@ var TimePicker = /** @class */ (function (_super) {
413
384
  }));
414
385
  if (isNullOrUndefined(valueExpression)) {
415
386
  valueExpression = this.checkDateValue(this.globalize.parseDate(valueString, {
416
- format: this.formatString, type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
387
+ format: this.formatString, type: 'dateTime', skeleton: 'yMd'
417
388
  }));
418
389
  }
419
390
  }
@@ -462,8 +433,7 @@ var TimePicker = /** @class */ (function (_super) {
462
433
  TimePicker.prototype.cldrFormat = function (type) {
463
434
  var cldrDateTimeString;
464
435
  if (this.locale === 'en' || this.locale === 'en-US') {
465
- cldrDateTimeString = isBlazor() ? this.getBlazorCultureFormat('t') :
466
- (getValue('timeFormats.short', getDefaultDateObject()));
436
+ cldrDateTimeString = (getValue('timeFormats.short', getDefaultDateObject()));
467
437
  }
468
438
  else {
469
439
  cldrDateTimeString = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -472,48 +442,43 @@ var TimePicker = /** @class */ (function (_super) {
472
442
  };
473
443
  // destroy function
474
444
  TimePicker.prototype.destroy = function () {
475
- if (this.isBlazorServer) {
476
- this.unBindEvents();
477
- }
478
- else {
479
- this.hide();
480
- this.unBindEvents();
481
- var ariaAttribute = {
482
- 'aria-haspopup': 'true', 'aria-autocomplete': 'list', 'tabindex': '0', 'aria-activedescendant': 'null',
483
- 'aria-owns': this.element.id + '_options', 'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
484
- 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-disabled': 'true', 'aria-invalid': 'false'
485
- };
486
- if (this.inputElement) {
487
- Input.removeAttributes(ariaAttribute, this.inputElement);
488
- if (this.angularTag === null) {
489
- this.inputWrapper.container.parentElement.appendChild(this.inputElement);
490
- }
491
- if (!isNullOrUndefined(this.cloneElement.getAttribute('tabindex'))) {
492
- this.inputElement.setAttribute('tabindex', this.tabIndex);
493
- }
494
- else {
495
- this.inputElement.removeAttribute('tabindex');
496
- }
497
- this.ensureInputAttribute();
498
- this.enableElement([this.inputElement]);
499
- this.inputElement.classList.remove('e-input');
500
- if (isNullOrUndefined(this.cloneElement.getAttribute('disabled'))) {
501
- Input.setEnabled(true, this.inputElement, this.floatLabelType);
502
- }
445
+ this.hide();
446
+ this.unBindEvents();
447
+ var ariaAttribute = {
448
+ 'aria-haspopup': 'true', 'aria-autocomplete': 'list', 'tabindex': '0', 'aria-activedescendant': 'null',
449
+ 'aria-owns': this.element.id + '_options', 'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
450
+ 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-disabled': 'true', 'aria-invalid': 'false'
451
+ };
452
+ if (this.inputElement) {
453
+ Input.removeAttributes(ariaAttribute, this.inputElement);
454
+ if (this.angularTag === null) {
455
+ this.inputWrapper.container.parentElement.appendChild(this.inputElement);
503
456
  }
504
- if (this.inputWrapper.container) {
505
- detach(this.inputWrapper.container);
457
+ if (!isNullOrUndefined(this.cloneElement.getAttribute('tabindex'))) {
458
+ this.inputElement.setAttribute('tabindex', this.tabIndex);
506
459
  }
507
- this.inputWrapper = this.popupWrapper = this.cloneElement = undefined;
508
- this.liCollections = this.timeCollections = this.disableItemCollection = [];
509
- if (!isNullOrUndefined(this.rippleFn)) {
510
- this.rippleFn();
460
+ else {
461
+ this.inputElement.removeAttribute('tabindex');
511
462
  }
512
- _super.prototype.destroy.call(this);
513
- if (this.formElement) {
514
- EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
463
+ this.ensureInputAttribute();
464
+ this.enableElement([this.inputElement]);
465
+ this.inputElement.classList.remove('e-input');
466
+ if (isNullOrUndefined(this.cloneElement.getAttribute('disabled'))) {
467
+ Input.setEnabled(true, this.inputElement, this.floatLabelType);
515
468
  }
516
469
  }
470
+ if (this.inputWrapper.container) {
471
+ detach(this.inputWrapper.container);
472
+ }
473
+ this.inputWrapper = this.popupWrapper = this.cloneElement = undefined;
474
+ this.liCollections = this.timeCollections = this.disableItemCollection = [];
475
+ if (!isNullOrUndefined(this.rippleFn)) {
476
+ this.rippleFn();
477
+ }
478
+ _super.prototype.destroy.call(this);
479
+ if (this.formElement) {
480
+ EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
481
+ }
517
482
  };
518
483
  TimePicker.prototype.ensureInputAttribute = function () {
519
484
  var propertyList = [];
@@ -537,24 +502,18 @@ var TimePicker = /** @class */ (function (_super) {
537
502
  };
538
503
  //popup creation
539
504
  TimePicker.prototype.popupCreation = function () {
540
- if (!this.isBlazorServer) {
541
- this.popupWrapper = this.createElement('div', {
542
- className: ROOT + ' ' + POPUP,
543
- attrs: { 'id': this.element.id + '_popup', 'style': 'visibility:hidden' }
544
- });
545
- if (!isNullOrUndefined(this.cssClass)) {
546
- this.popupWrapper.className += ' ' + this.cssClass;
547
- }
548
- if (!isNullOrUndefined(this.step) && this.step > 0) {
549
- this.generateList();
550
- append([this.listWrapper], this.popupWrapper);
551
- }
552
- this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
505
+ this.popupWrapper = this.createElement('div', {
506
+ className: ROOT + ' ' + POPUP,
507
+ attrs: { 'id': this.element.id + '_popup', 'style': 'visibility:hidden' }
508
+ });
509
+ if (!isNullOrUndefined(this.cssClass)) {
510
+ this.popupWrapper.className += ' ' + this.cssClass;
553
511
  }
554
- else {
555
- this.popupWrapper = this.inputWrapper.container.nextElementSibling;
512
+ if (!isNullOrUndefined(this.step) && this.step > 0) {
556
513
  this.generateList();
514
+ append([this.listWrapper], this.popupWrapper);
557
515
  }
516
+ this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
558
517
  this.addSelection();
559
518
  this.renderPopup();
560
519
  detach(this.popupWrapper);
@@ -565,22 +524,11 @@ var TimePicker = /** @class */ (function (_super) {
565
524
  return popupHeight > height ? height : popupHeight;
566
525
  };
567
526
  TimePicker.prototype.generateList = function () {
568
- if (!this.isBlazorServer) {
569
- this.createListItems();
570
- }
571
- else {
572
- this.listWrapper = this.popupWrapper.querySelector('.e-content');
573
- }
527
+ this.createListItems();
574
528
  this.wireListEvents();
575
529
  var rippleModel = { duration: 300, selector: '.' + LISTCLASS };
576
530
  this.rippleFn = rippleEffect(this.listWrapper, rippleModel);
577
531
  this.liCollections = this.listWrapper.querySelectorAll('.' + LISTCLASS);
578
- if (this.isBlazorServer) {
579
- this.blazorTimeCollections = [];
580
- for (var index = 0; index < this.liCollections.length; index++) {
581
- this.blazorTimeCollections.push(this.liCollections[index].getAttribute('data-value'));
582
- }
583
- }
584
532
  };
585
533
  TimePicker.prototype.renderPopup = function () {
586
534
  var _this = this;
@@ -601,11 +549,9 @@ var TimePicker = /** @class */ (function (_super) {
601
549
  removeClass([_this.inputWrapper.buttons[0]], SELECTED);
602
550
  _this.unWireListEvents();
603
551
  _this.inputElement.setAttribute('aria-activedescendant', 'null');
604
- if (!_this.isBlazorServer) {
605
- remove(_this.popupObj.element);
606
- _this.popupObj.destroy();
607
- _this.popupWrapper.innerHTML = '';
608
- }
552
+ remove(_this.popupObj.element);
553
+ _this.popupObj.destroy();
554
+ _this.popupWrapper.innerHTML = '';
609
555
  _this.listWrapper = _this.popupWrapper = _this.listTag = undefined;
610
556
  }, targetExitViewport: function () {
611
557
  if (!Browser.isDevice) {
@@ -624,7 +570,7 @@ var TimePicker = /** @class */ (function (_super) {
624
570
  return null;
625
571
  }
626
572
  else {
627
- return this.globalize.formatDate(value, { skeleton: isBlazor() ? 't' : 'medium', type: 'time' });
573
+ return this.globalize.formatDate(value, { skeleton: 'medium', type: 'time' });
628
574
  }
629
575
  };
630
576
  TimePicker.prototype.getDateObject = function (text) {
@@ -727,12 +673,11 @@ var TimePicker = /** @class */ (function (_super) {
727
673
  TimePicker.prototype.getMeridianText = function () {
728
674
  var meridian;
729
675
  if (this.locale === 'en' || this.locale === 'en-US') {
730
- meridian = getValue((isBlazor() ? 'dayPeriods.wide' : 'dayPeriods.format.wide'), getDefaultDateObject());
676
+ meridian = getValue('dayPeriods.format.wide', getDefaultDateObject());
731
677
  }
732
678
  else {
733
- var gregorianFormat = (isBlazor() ? '.dates.dayPeriods.abbreviated' :
734
- '.dates.calendars.gregorian.dayPeriods.format.abbreviated');
735
- var mainVal = isBlazor() ? '' : 'main.';
679
+ var gregorianFormat = '.dates.calendars.gregorian.dayPeriods.format.abbreviated';
680
+ var mainVal = 'main.';
736
681
  meridian = getValue(mainVal + '' + this.locale + gregorianFormat, cldrData);
737
682
  }
738
683
  return meridian;
@@ -809,11 +754,8 @@ var TimePicker = /** @class */ (function (_super) {
809
754
  if (!isNullOrUndefined(this.popupWrapper)) {
810
755
  var items = this.popupWrapper.querySelectorAll('.' + LISTCLASS);
811
756
  if (items.length) {
812
- var initialTime = this.isBlazorServer ? new Date(new Date().toDateString() + ' ' +
813
- this.blazorTimeCollections[0]).setMilliseconds(0) : this.timeCollections[0];
814
- var scrollTime = this.isBlazorServer ? new Date(new Date().toDateString() + ' ' +
815
- this.scrollTo.toLocaleTimeString()).setMilliseconds(0) :
816
- this.getDateObject(this.checkDateValue(this.scrollTo)).getTime();
757
+ var initialTime = this.timeCollections[0];
758
+ var scrollTime = this.getDateObject(this.checkDateValue(this.scrollTo)).getTime();
817
759
  element = items[Math.round((scrollTime - initialTime) / (this.step * 60000))];
818
760
  }
819
761
  }
@@ -838,23 +780,18 @@ var TimePicker = /** @class */ (function (_super) {
838
780
  TimePicker.prototype.cldrDateFormat = function () {
839
781
  var cldrDate;
840
782
  if (this.locale === 'en' || this.locale === 'en-US') {
841
- cldrDate = isBlazor() ? (getValue('d', getValue(this.locale, blazorCultureFormats))) :
842
- (getValue('dateFormats.short', getDefaultDateObject()));
783
+ cldrDate = (getValue('dateFormats.short', getDefaultDateObject()));
843
784
  }
844
785
  else {
845
786
  cldrDate = (this.getCultureDateObject(cldrData, '' + this.locale));
846
787
  }
847
788
  return cldrDate;
848
789
  };
849
- TimePicker.prototype.getBlazorCultureFormat = function (formatVal) {
850
- return (getValue(formatVal, getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a');
851
- };
852
790
  TimePicker.prototype.cldrTimeFormat = function () {
853
791
  var cldrTime;
854
792
  if (this.isNullOrEmpty(this.formatString)) {
855
793
  if (this.locale === 'en' || this.locale === 'en-US') {
856
- cldrTime = isBlazor() ? this.getBlazorCultureFormat('t') :
857
- (getValue('timeFormats.short', getDefaultDateObject()));
794
+ cldrTime = (getValue('timeFormats.short', getDefaultDateObject()));
858
795
  }
859
796
  else {
860
797
  cldrTime = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -868,12 +805,10 @@ var TimePicker = /** @class */ (function (_super) {
868
805
  TimePicker.prototype.dateToNumeric = function () {
869
806
  var cldrTime;
870
807
  if (this.locale === 'en' || this.locale === 'en-US') {
871
- cldrTime = isBlazor() ? this.getBlazorCultureFormat('T') :
872
- (getValue('timeFormats.medium', getDefaultDateObject()));
808
+ cldrTime = (getValue('timeFormats.medium', getDefaultDateObject()));
873
809
  }
874
810
  else {
875
- cldrTime = isBlazor() ? this.getBlazorCultureFormat('T') :
876
- (getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.medium', cldrData));
811
+ cldrTime = (getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.medium', cldrData));
877
812
  }
878
813
  return cldrTime;
879
814
  };
@@ -921,9 +856,6 @@ var TimePicker = /** @class */ (function (_super) {
921
856
  e.preventDefault();
922
857
  this.interopAdaptor.invokeMethodAsync('OnTimeIconClick');
923
858
  };
924
- TimePicker.prototype.updateBlazorTimeCollections = function (listData) {
925
- this.blazorTimeCollections = listData;
926
- };
927
859
  TimePicker.prototype.popupHandler = function (e) {
928
860
  if (!this.enabled) {
929
861
  return;
@@ -931,10 +863,8 @@ var TimePicker = /** @class */ (function (_super) {
931
863
  if (Browser.isDevice) {
932
864
  this.inputElement.setAttribute('readonly', '');
933
865
  }
934
- if (!this.isBlazorServer) {
935
- e.preventDefault();
936
- }
937
- if (this.isPopupOpen() && !this.isBlazorServer) {
866
+ e.preventDefault();
867
+ if (this.isPopupOpen()) {
938
868
  this.closePopup(0, e);
939
869
  }
940
870
  else {
@@ -1032,22 +962,11 @@ var TimePicker = /** @class */ (function (_super) {
1032
962
  case 'enter':
1033
963
  if (this.isNavigate) {
1034
964
  this.selectedElement = this.liCollections[this.activeIndex];
1035
- if (!this.isBlazorServer) {
1036
- this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
1037
- this.updateValue(this.valueWithMinutes, event);
1038
- }
1039
- else {
1040
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
1041
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
1042
- }
965
+ this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
966
+ this.updateValue(this.valueWithMinutes, event);
1043
967
  }
1044
968
  else {
1045
- if (!this.isBlazorServer) {
1046
- this.updateValue(this.inputElement.value, event);
1047
- }
1048
- else {
1049
- this.interopAdaptor.invokeMethodAsync('OnStrictMode', this.inputElement.value);
1050
- }
969
+ this.updateValue(this.inputElement.value, event);
1051
970
  }
1052
971
  this.hide();
1053
972
  this.isNavigate = false;
@@ -1056,24 +975,17 @@ var TimePicker = /** @class */ (function (_super) {
1056
975
  }
1057
976
  break;
1058
977
  case 'open':
1059
- if (this.isBlazorServer) {
1060
- this.interopAdaptor.invokeMethodAsync('OnPopupHide', true);
1061
- }
1062
- else {
1063
- this.show(event);
1064
- }
978
+ this.show(event);
1065
979
  break;
1066
980
  case 'escape':
1067
- if (!this.isBlazorServer) {
1068
- this.updateInputValue(this.objToString(this.value));
1069
- if (this.enableMask) {
1070
- if (!this.value) {
1071
- this.updateInputValue(this.maskedDateValue);
1072
- }
1073
- this.createMask();
981
+ this.updateInputValue(this.objToString(this.value));
982
+ if (this.enableMask) {
983
+ if (!this.value) {
984
+ this.updateInputValue(this.maskedDateValue);
1074
985
  }
1075
- this.previousState(this.value);
986
+ this.createMask();
1076
987
  }
988
+ this.previousState(this.value);
1077
989
  this.hide();
1078
990
  break;
1079
991
  case 'close':
@@ -1112,7 +1024,7 @@ var TimePicker = /** @class */ (function (_super) {
1112
1024
  var _this = this;
1113
1025
  if (this.isPopupOpen() && this.popupWrapper) {
1114
1026
  var args = {
1115
- popup: this.isBlazorServer ? null : this.popupObj,
1027
+ popup: this.popupObj,
1116
1028
  event: e || null,
1117
1029
  cancel: false,
1118
1030
  name: 'open'
@@ -1129,12 +1041,6 @@ var TimePicker = /** @class */ (function (_super) {
1129
1041
  removeClass([_this.inputWrapper.container], [ICONANIMATION]);
1130
1042
  attributes(_this.inputElement, { 'aria-expanded': 'false' });
1131
1043
  EventHandler.remove(document, 'mousedown touchstart', _this.documentClickHandler);
1132
- if (_this.isBlazorServer) {
1133
- _this.disposeServerPopup();
1134
- _this.inputWrapper.container.parentElement.insertBefore(_this.popupWrapper, _this.inputWrapper.container.nextElementSibling);
1135
- _this.interopAdaptor.invokeMethodAsync('OnPopupHide', false);
1136
- _this.popupWrapper = _this.popupObj = null;
1137
- }
1138
1044
  }
1139
1045
  if (Browser.isDevice && _this.modal) {
1140
1046
  _this.modal.style.display = 'none';
@@ -1207,30 +1113,19 @@ var TimePicker = /** @class */ (function (_super) {
1207
1113
  }
1208
1114
  };
1209
1115
  TimePicker.prototype.setSelection = function (li, event) {
1210
- if (this.isValidLI(li) && !li.classList.contains(SELECTED)) {
1211
- if (!this.isBlazorServer) {
1212
- this.checkValue(li.getAttribute('data-value'));
1213
- if (this.enableMask) {
1214
- this.notify("setMaskSelection", {
1215
- module: "MaskedDateTime"
1216
- });
1217
- }
1218
- this.selectedElement = li;
1219
- this.activeIndex = Array.prototype.slice.call(this.liCollections).indexOf(li);
1220
- this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
1221
- addClass([this.selectedElement], SELECTED);
1222
- this.selectedElement.setAttribute('aria-selected', 'true');
1223
- this.checkValueChange(event, true);
1224
- }
1225
- else {
1226
- this.selectedElement = li;
1227
- this.activeIndex = Array.prototype.slice.call(this.liCollections).indexOf(li);
1228
- addClass([this.selectedElement], SELECTED);
1229
- this.selectedElement.setAttribute('aria-selected', 'true');
1230
- this.inputElement.setAttribute('value', li.getAttribute('data-value'));
1231
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, false);
1232
- this.addSelection();
1116
+ if (this.isValidLI(li)) {
1117
+ this.checkValue(li.getAttribute('data-value'));
1118
+ if (this.enableMask) {
1119
+ this.notify("setMaskSelection", {
1120
+ module: "MaskedDateTime"
1121
+ });
1233
1122
  }
1123
+ this.selectedElement = li;
1124
+ this.activeIndex = Array.prototype.slice.call(this.liCollections).indexOf(li);
1125
+ this.valueWithMinutes = new Date(this.timeCollections[this.activeIndex]);
1126
+ addClass([this.selectedElement], SELECTED);
1127
+ this.selectedElement.setAttribute('aria-selected', 'true');
1128
+ this.checkValueChange(event, true);
1234
1129
  }
1235
1130
  };
1236
1131
  TimePicker.prototype.onMouseLeave = function () {
@@ -1338,7 +1233,7 @@ var TimePicker = /** @class */ (function (_super) {
1338
1233
  return dateVal;
1339
1234
  };
1340
1235
  TimePicker.prototype.bindEvents = function () {
1341
- EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', (this.isBlazorServer ? this.preventEventBubbling : this.popupHandler), this);
1236
+ EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', this.popupHandler, this);
1342
1237
  EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
1343
1238
  EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
1344
1239
  EventHandler.add(this.inputElement, 'change', this.inputChangeHandler, this);
@@ -1384,18 +1279,16 @@ var TimePicker = /** @class */ (function (_super) {
1384
1279
  }
1385
1280
  if (!this.inputElement.disabled) {
1386
1281
  var timeValue = this.inputElement.getAttribute('value');
1387
- var val = this.isBlazorServer ? this.inputEleValue : this.checkDateValue(this.inputEleValue);
1282
+ var val = this.checkDateValue(this.inputEleValue);
1388
1283
  if (this.element.tagName === 'EJS-TIMEPICKER') {
1389
1284
  val = null;
1390
1285
  timeValue = '';
1391
1286
  this.inputElement.setAttribute('value', '');
1392
1287
  }
1393
- if (!this.isBlazorServer) {
1394
- this.setProperties({ value: val }, true);
1395
- this.prevDate = this.value;
1396
- this.valueWithMinutes = this.value;
1397
- this.initValue = this.value;
1398
- }
1288
+ this.setProperties({ value: val }, true);
1289
+ this.prevDate = this.value;
1290
+ this.valueWithMinutes = this.value;
1291
+ this.initValue = this.value;
1399
1292
  if (this.inputElement) {
1400
1293
  this.updateInputValue(timeValue);
1401
1294
  if (this.enableMask) {
@@ -1404,9 +1297,7 @@ var TimePicker = /** @class */ (function (_super) {
1404
1297
  }
1405
1298
  this.createMask();
1406
1299
  }
1407
- if (!this.isBlazorServer) {
1408
- this.checkErrorState(timeValue);
1409
- }
1300
+ this.checkErrorState(timeValue);
1410
1301
  this.prevValue = this.inputElement.value;
1411
1302
  }
1412
1303
  }
@@ -1426,7 +1317,7 @@ var TimePicker = /** @class */ (function (_super) {
1426
1317
  };
1427
1318
  TimePicker.prototype.unBindEvents = function () {
1428
1319
  if (this.inputWrapper) {
1429
- EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', (this.isBlazorServer ? this.preventEventBubbling : this.popupHandler));
1320
+ EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', this.popupHandler);
1430
1321
  }
1431
1322
  EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
1432
1323
  EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
@@ -1466,9 +1357,6 @@ var TimePicker = /** @class */ (function (_super) {
1466
1357
  this.resetState();
1467
1358
  this.raiseClearedEvent(e);
1468
1359
  }
1469
- if (this.isBlazorServer) {
1470
- this.interopAdaptor.invokeMethodAsync('OnValueCleared');
1471
- }
1472
1360
  if (this.popupWrapper) {
1473
1361
  this.popupWrapper.scrollTop = 0;
1474
1362
  }
@@ -1479,15 +1367,11 @@ var TimePicker = /** @class */ (function (_super) {
1479
1367
  }
1480
1368
  };
1481
1369
  TimePicker.prototype.clear = function (event) {
1482
- if (!this.isBlazorServer) {
1483
- this.setProperties({ value: null }, true);
1484
- }
1370
+ this.setProperties({ value: null }, true);
1485
1371
  this.initValue = null;
1486
1372
  this.resetState();
1487
1373
  this.raiseClearedEvent(event);
1488
- if (!this.isBlazorServer) {
1489
- this.changeEvent(event);
1490
- }
1374
+ this.changeEvent(event);
1491
1375
  };
1492
1376
  TimePicker.prototype.setZIndex = function () {
1493
1377
  if (this.popupObj) {
@@ -1532,34 +1416,28 @@ var TimePicker = /** @class */ (function (_super) {
1532
1416
  }
1533
1417
  break;
1534
1418
  case 'min':
1535
- if (!this.isBlazorServer) {
1536
- if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['min'] === undefined)) || isDynamic) {
1537
- value = new Date(this.inputElement.getAttribute(prop));
1538
- if (!isNullOrUndefined(this.checkDateValue(value))) {
1539
- this.setProperties({ min: value }, !isDynamic);
1540
- }
1419
+ if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['min'] === undefined)) || isDynamic) {
1420
+ value = new Date(this.inputElement.getAttribute(prop));
1421
+ if (!isNullOrUndefined(this.checkDateValue(value))) {
1422
+ this.setProperties({ min: value }, !isDynamic);
1541
1423
  }
1542
1424
  }
1543
1425
  break;
1544
1426
  case 'max':
1545
- if (!this.isBlazorServer) {
1546
- if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['max'] === undefined)) || isDynamic) {
1547
- value = new Date(this.inputElement.getAttribute(prop));
1548
- if (!isNullOrUndefined(this.checkDateValue(value))) {
1549
- this.setProperties({ max: value }, !isDynamic);
1550
- }
1427
+ if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['max'] === undefined)) || isDynamic) {
1428
+ value = new Date(this.inputElement.getAttribute(prop));
1429
+ if (!isNullOrUndefined(this.checkDateValue(value))) {
1430
+ this.setProperties({ max: value }, !isDynamic);
1551
1431
  }
1552
1432
  }
1553
1433
  break;
1554
1434
  case 'value':
1555
- if (!this.isBlazorServer) {
1556
- if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['value'] === undefined)) || isDynamic) {
1557
- value = new Date(this.inputElement.getAttribute(prop));
1558
- if (!isNullOrUndefined(this.checkDateValue(value))) {
1559
- this.initValue = value;
1560
- this.updateInput(false, this.initValue);
1561
- this.setProperties({ value: value }, !isDynamic);
1562
- }
1435
+ if ((isNullOrUndefined(this.timeOptions) || (this.timeOptions['value'] === undefined)) || isDynamic) {
1436
+ value = new Date(this.inputElement.getAttribute(prop));
1437
+ if (!isNullOrUndefined(this.checkDateValue(value))) {
1438
+ this.initValue = value;
1439
+ this.updateInput(false, this.initValue);
1440
+ this.setProperties({ value: value }, !isDynamic);
1563
1441
  }
1564
1442
  }
1565
1443
  break;
@@ -1627,7 +1505,7 @@ var TimePicker = /** @class */ (function (_super) {
1627
1505
  this.removeSelection();
1628
1506
  Input.setValue('', this.inputElement, this.floatLabelType, false);
1629
1507
  this.valueWithMinutes = this.activeIndex = null;
1630
- if (!this.strictMode && !this.isBlazorServer) {
1508
+ if (!this.strictMode) {
1631
1509
  this.checkErrorState(null);
1632
1510
  }
1633
1511
  };
@@ -1690,44 +1568,34 @@ var TimePicker = /** @class */ (function (_super) {
1690
1568
  };
1691
1569
  TimePicker.prototype.findNextElement = function (event) {
1692
1570
  var textVal = (this.inputElement).value;
1693
- var value = isNullOrUndefined(this.valueWithMinutes) || this.isBlazorServer ? this.createDateObj(textVal) :
1571
+ var value = isNullOrUndefined(this.valueWithMinutes) ? this.createDateObj(textVal) :
1694
1572
  this.getDateObject(this.valueWithMinutes);
1695
1573
  var timeVal = null;
1696
1574
  var count = this.liCollections.length;
1697
- var collections = this.isBlazorServer ? (isNullOrUndefined(this.blazorTimeCollections) ? [] :
1698
- this.blazorTimeCollections) : this.timeCollections;
1575
+ var collections = this.timeCollections;
1699
1576
  if (!isNullOrUndefined(this.checkDateValue(value)) || !isNullOrUndefined(this.activeIndex)) {
1700
1577
  if (event.action === 'home') {
1701
1578
  var index = this.validLiElement(0);
1702
- if (!this.isBlazorServer) {
1703
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1704
- }
1579
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1705
1580
  this.activeIndex = index;
1706
1581
  }
1707
1582
  else if (event.action === 'end') {
1708
1583
  var index = this.validLiElement(collections.length - 1, true);
1709
- if (!this.isBlazorServer) {
1710
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1711
- }
1584
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1712
1585
  this.activeIndex = index;
1713
1586
  }
1714
1587
  else {
1715
1588
  if (event.action === 'down') {
1716
1589
  for (var i = 0; i < count; i++) {
1717
- if (this.isBlazorServer ? (+value < +this.createDateObj(this.blazorTimeCollections[i])) :
1718
- (+value < this.timeCollections[i])) {
1590
+ if (+value < this.timeCollections[i]) {
1719
1591
  var index = this.validLiElement(i);
1720
- if (!this.isBlazorServer) {
1721
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1722
- }
1592
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1723
1593
  this.activeIndex = index;
1724
1594
  break;
1725
1595
  }
1726
1596
  else if (i === count - 1) {
1727
1597
  var index = this.validLiElement(0);
1728
- if (!this.isBlazorServer) {
1729
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1730
- }
1598
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1731
1599
  this.activeIndex = index;
1732
1600
  break;
1733
1601
  }
@@ -1735,20 +1603,15 @@ var TimePicker = /** @class */ (function (_super) {
1735
1603
  }
1736
1604
  else {
1737
1605
  for (var i = count - 1; i >= 0; i--) {
1738
- if (this.isBlazorServer ? (+value > +this.createDateObj(this.blazorTimeCollections[i])) :
1739
- (+value > this.timeCollections[i])) {
1606
+ if (+value > this.timeCollections[i]) {
1740
1607
  var index = this.validLiElement(i, true);
1741
- if (!this.isBlazorServer) {
1742
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1743
- }
1608
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1744
1609
  this.activeIndex = index;
1745
1610
  break;
1746
1611
  }
1747
1612
  else if (i === 0) {
1748
1613
  var index = this.validLiElement(count - 1);
1749
- if (!this.isBlazorServer) {
1750
- timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1751
- }
1614
+ timeVal = +(this.createDateObj(new Date(this.timeCollections[index])));
1752
1615
  this.activeIndex = index;
1753
1616
  break;
1754
1617
  }
@@ -1756,13 +1619,7 @@ var TimePicker = /** @class */ (function (_super) {
1756
1619
  }
1757
1620
  }
1758
1621
  this.selectedElement = this.liCollections[this.activeIndex];
1759
- if (this.isBlazorServer) {
1760
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
1761
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
1762
- }
1763
- else {
1764
- this.elementValue(isNullOrUndefined(timeVal) ? null : new Date(timeVal));
1765
- }
1622
+ this.elementValue(isNullOrUndefined(timeVal) ? null : new Date(timeVal));
1766
1623
  }
1767
1624
  else {
1768
1625
  this.selectNextItem(event);
@@ -1772,58 +1629,7 @@ var TimePicker = /** @class */ (function (_super) {
1772
1629
  var index = this.validLiElement(0, event.action === 'down' ? false : true);
1773
1630
  this.activeIndex = index;
1774
1631
  this.selectedElement = this.liCollections[index];
1775
- if (this.isBlazorServer) {
1776
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
1777
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', index, true);
1778
- }
1779
- else {
1780
- this.elementValue(new Date(this.timeCollections[index]));
1781
- }
1782
- };
1783
- TimePicker.prototype.findNextInBlazor = function (event) {
1784
- var count = isNullOrUndefined(this.blazorTimeCollections) ? 0 : this.blazorTimeCollections.length;
1785
- var index = 0;
1786
- var value = this.createDateObj(this.inputElement.value);
1787
- switch (event.action) {
1788
- case 'home':
1789
- this.activeIndex = index;
1790
- break;
1791
- case 'end':
1792
- index = count - 1;
1793
- this.activeIndex = index;
1794
- break;
1795
- case 'down':
1796
- for (var i = 0; i < count; i++) {
1797
- if (this.isBlazorServer ? (+value < +this.createDateObj(this.blazorTimeCollections[i])) :
1798
- (+value < this.timeCollections[i])) {
1799
- var index_1 = this.validLiElement(i);
1800
- this.activeIndex = index_1;
1801
- break;
1802
- }
1803
- else if (i === count - 1) {
1804
- var index_2 = this.validLiElement(0);
1805
- this.activeIndex = index_2;
1806
- break;
1807
- }
1808
- }
1809
- break;
1810
- case 'up':
1811
- for (var i = count - 1; i >= 0; i--) {
1812
- if (this.isBlazorServer ? (+value > +this.createDateObj(this.blazorTimeCollections[i])) :
1813
- (+value > this.timeCollections[i])) {
1814
- var index_3 = this.validLiElement(i, true);
1815
- this.activeIndex = index_3;
1816
- break;
1817
- }
1818
- else if (i === 0) {
1819
- var index_4 = this.validLiElement(count - 1);
1820
- this.activeIndex = index_4;
1821
- break;
1822
- }
1823
- }
1824
- break;
1825
- }
1826
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
1632
+ this.elementValue(new Date(this.timeCollections[index]));
1827
1633
  };
1828
1634
  TimePicker.prototype.elementValue = function (value) {
1829
1635
  if (!isNullOrUndefined(this.checkDateValue(value))) {
@@ -1832,53 +1638,34 @@ var TimePicker = /** @class */ (function (_super) {
1832
1638
  };
1833
1639
  TimePicker.prototype.validLiElement = function (index, backward) {
1834
1640
  var elementIndex = null;
1835
- if (this.isBlazorServer && isNullOrUndefined(this.popupWrapper)) {
1836
- var items = this.blazorTimeCollections;
1837
- if (items.length) {
1838
- if (backward) {
1839
- for (var i = index; i >= 0; i--) {
1641
+ var items = isNullOrUndefined(this.popupWrapper) ? this.liCollections :
1642
+ this.popupWrapper.querySelectorAll('.' + LISTCLASS);
1643
+ var isCheck = true;
1644
+ if (items.length) {
1645
+ if (backward) {
1646
+ for (var i = index; i >= 0; i--) {
1647
+ if (!items[i].classList.contains(DISABLED)) {
1840
1648
  elementIndex = i;
1841
1649
  break;
1842
1650
  }
1843
- }
1844
- else {
1845
- for (var i = index; i <= items.length - 1; i++) {
1846
- elementIndex = i;
1847
- break;
1651
+ else if (i === 0) {
1652
+ if (isCheck) {
1653
+ index = i = items.length;
1654
+ isCheck = false;
1655
+ }
1848
1656
  }
1849
1657
  }
1850
1658
  }
1851
- }
1852
- else {
1853
- var items = isNullOrUndefined(this.popupWrapper) ? this.liCollections :
1854
- this.popupWrapper.querySelectorAll('.' + LISTCLASS);
1855
- var isCheck = true;
1856
- if (items.length) {
1857
- if (backward) {
1858
- for (var i = index; i >= 0; i--) {
1859
- if (!items[i].classList.contains(DISABLED)) {
1860
- elementIndex = i;
1861
- break;
1862
- }
1863
- else if (i === 0) {
1864
- if (isCheck) {
1865
- index = i = items.length;
1866
- isCheck = false;
1867
- }
1868
- }
1659
+ else {
1660
+ for (var i = index; i <= items.length - 1; i++) {
1661
+ if (!items[i].classList.contains(DISABLED)) {
1662
+ elementIndex = i;
1663
+ break;
1869
1664
  }
1870
- }
1871
- else {
1872
- for (var i = index; i <= items.length - 1; i++) {
1873
- if (!items[i].classList.contains(DISABLED)) {
1874
- elementIndex = i;
1875
- break;
1876
- }
1877
- else if (i === items.length - 1) {
1878
- if (isCheck) {
1879
- index = i = -1;
1880
- isCheck = false;
1881
- }
1665
+ else if (i === items.length - 1) {
1666
+ if (isCheck) {
1667
+ index = i = -1;
1668
+ isCheck = false;
1882
1669
  }
1883
1670
  }
1884
1671
  }
@@ -1890,32 +1677,21 @@ var TimePicker = /** @class */ (function (_super) {
1890
1677
  if (isNullOrUndefined(this.step) || this.step <= 0 || this.inputWrapper.buttons[0].classList.contains(DISABLED)) {
1891
1678
  return;
1892
1679
  }
1893
- var count = this.isBlazorServer ? (isNullOrUndefined(this.blazorTimeCollections) ? 0 :
1894
- this.blazorTimeCollections.length) : this.timeCollections.length;
1680
+ var count = this.timeCollections.length;
1895
1681
  if (isNullOrUndefined(this.getActiveElement()) || this.getActiveElement().length === 0) {
1896
- if (isNullOrUndefined(this.popupObj) && this.isBlazorServer) {
1897
- if (isNullOrUndefined(this.activeIndex)) {
1682
+ if (this.liCollections.length > 0) {
1683
+ if (isNullOrUndefined(this.value) && isNullOrUndefined(this.activeIndex)) {
1898
1684
  var index = this.validLiElement(0, event.action === 'down' ? false : true);
1899
1685
  this.activeIndex = index;
1900
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', index, true);
1686
+ this.selectedElement = this.liCollections[index];
1687
+ this.elementValue(new Date(this.timeCollections[index]));
1901
1688
  }
1902
1689
  else {
1903
- this.findNextInBlazor(event);
1690
+ this.findNextElement(event);
1904
1691
  }
1905
1692
  }
1906
1693
  else {
1907
- if (this.liCollections.length > 0) {
1908
- if (this.isBlazorServer ? (isNullOrUndefined(this.activeIndex)) : (isNullOrUndefined(this.value) &&
1909
- isNullOrUndefined(this.activeIndex))) {
1910
- this.selectNextItem(event);
1911
- }
1912
- else {
1913
- this.findNextElement(event);
1914
- }
1915
- }
1916
- else {
1917
- this.findNextElement(event);
1918
- }
1694
+ this.findNextElement(event);
1919
1695
  }
1920
1696
  }
1921
1697
  else {
@@ -1926,50 +1702,34 @@ var TimePicker = /** @class */ (function (_super) {
1926
1702
  this.activeIndex = index = this.activeIndex < 0 ? (count - 1) : this.activeIndex;
1927
1703
  this.activeIndex = index = this.validLiElement(this.activeIndex, (event.keyCode === 40 || event.keyCode === 39) ?
1928
1704
  false : true);
1929
- if (!this.isBlazorServer) {
1930
- nextItem = isNullOrUndefined(this.timeCollections[index]) ? this.timeCollections[0] : this.timeCollections[index];
1931
- }
1705
+ nextItem = isNullOrUndefined(this.timeCollections[index]) ? this.timeCollections[0] : this.timeCollections[index];
1932
1706
  }
1933
1707
  else if (event.action === 'home') {
1934
1708
  var index = this.validLiElement(0);
1935
1709
  this.activeIndex = index;
1936
- if (!this.isBlazorServer) {
1937
- nextItem = this.timeCollections[index];
1938
- }
1710
+ nextItem = this.timeCollections[index];
1939
1711
  }
1940
1712
  else if (event.action === 'end') {
1941
1713
  var index = this.validLiElement(count - 1, true);
1942
1714
  this.activeIndex = index;
1943
- if (!this.isBlazorServer) {
1944
- nextItem = this.timeCollections[index];
1945
- }
1715
+ nextItem = this.timeCollections[index];
1946
1716
  }
1947
1717
  this.selectedElement = this.liCollections[this.activeIndex];
1948
- if (this.isBlazorServer) {
1949
- this.inputElement.setAttribute('value', this.selectedElement.getAttribute('data-value'));
1950
- this.interopAdaptor.invokeMethodAsync('OnListItemClick', this.activeIndex, true);
1951
- }
1952
- else {
1953
- this.elementValue(new Date(nextItem));
1954
- }
1718
+ this.elementValue(new Date(nextItem));
1955
1719
  }
1956
1720
  this.isNavigate = true;
1957
1721
  this.setHover(this.selectedElement, NAVIGATION);
1958
1722
  this.setActiveDescendant();
1959
- if (!this.isBlazorServer) {
1960
- this.selectInputText();
1961
- }
1723
+ this.selectInputText();
1962
1724
  if (this.isPopupOpen() && this.selectedElement !== null && (!event || event.type !== 'click')) {
1963
1725
  this.setScrollPosition();
1964
1726
  }
1965
1727
  };
1966
1728
  TimePicker.prototype.getCultureTimeObject = function (ld, c) {
1967
- return isBlazor() ? (getValue('t', getValue(c, blazorCultureFormats))).replace(/tt/, 'a') :
1968
- getValue('main.' + c + '.dates.calendars.gregorian.timeFormats.short', ld);
1729
+ return getValue('main.' + c + '.dates.calendars.gregorian.timeFormats.short', ld);
1969
1730
  };
1970
1731
  TimePicker.prototype.getCultureDateObject = function (ld, c) {
1971
- return isBlazor() ? (getValue('d', getValue(c, blazorCultureFormats))) :
1972
- getValue('main.' + c + '.dates.calendars.gregorian.dateFormats.short', ld);
1732
+ return getValue('main.' + c + '.dates.calendars.gregorian.dateFormats.short', ld);
1973
1733
  };
1974
1734
  TimePicker.prototype.wireListEvents = function () {
1975
1735
  EventHandler.add(this.listWrapper, 'click', this.onMouseClick, this);
@@ -2071,8 +1831,7 @@ var TimePicker = /** @class */ (function (_super) {
2071
1831
  var items = this.popupWrapper.querySelectorAll('.' + LISTCLASS);
2072
1832
  if (items.length) {
2073
1833
  for (var i = 0; i < items.length; i++) {
2074
- if ((!this.isBlazorServer && this.timeCollections[i] === +this.getDateObject(this.valueWithMinutes))
2075
- || (this.isBlazorServer && this.blazorTimeCollections[i] === this.blazorTimeCollections[this.activeIndex])) {
1834
+ if ((this.timeCollections[i] === +this.getDateObject(this.valueWithMinutes))) {
2076
1835
  items[i].setAttribute('aria-selected', 'true');
2077
1836
  this.selectedElement = items[i];
2078
1837
  this.activeIndex = i;
@@ -2095,9 +1854,7 @@ var TimePicker = /** @class */ (function (_super) {
2095
1854
  return (li && li.classList.contains(LISTCLASS) && !li.classList.contains(DISABLED));
2096
1855
  };
2097
1856
  TimePicker.prototype.createDateObj = function (val) {
2098
- var formatStr = isBlazor() ?
2099
- 'M' + getDefaultDateObject().dateSeperator + 'd' + getDefaultDateObject().dateSeperator + 'yy'
2100
- : null;
1857
+ var formatStr = null;
2101
1858
  var today = this.globalize.formatDate(new Date(), { format: formatStr, skeleton: 'short', type: 'date' });
2102
1859
  var value = null;
2103
1860
  if (typeof val === 'string') {
@@ -2240,18 +1997,15 @@ var TimePicker = /** @class */ (function (_super) {
2240
1997
  }
2241
1998
  removeClass([this.inputWrapper.container], [FOCUS]);
2242
1999
  var blurArguments = {
2243
- model: this.isBlazorServer ? null : this
2000
+ model: this
2244
2001
  };
2245
2002
  this.trigger('blur', blurArguments);
2246
- if (!this.isBlazorServer && this.getText() !== this.inputElement.value) {
2003
+ if (this.getText() !== this.inputElement.value) {
2247
2004
  this.updateValue((this.inputElement).value, e);
2248
2005
  }
2249
2006
  else if (this.inputElement.value.trim().length === 0) {
2250
2007
  this.resetState();
2251
2008
  }
2252
- if (this.isBlazorServer) {
2253
- this.interopAdaptor.invokeMethodAsync('OnStrictMode', this.inputElement.value);
2254
- }
2255
2009
  this.cursorDetails = null;
2256
2010
  this.isNavigate = false;
2257
2011
  if (this.inputElement.value === '') {
@@ -2268,7 +2022,7 @@ var TimePicker = /** @class */ (function (_super) {
2268
2022
  this.inputElement.blur();
2269
2023
  removeClass([this.inputWrapper.container], [FOCUS]);
2270
2024
  var blurArguments = {
2271
- model: this.isBlazorServer ? null : this
2025
+ model: this
2272
2026
  };
2273
2027
  this.trigger('blur', blurArguments);
2274
2028
  }
@@ -2284,7 +2038,7 @@ var TimePicker = /** @class */ (function (_super) {
2284
2038
  return;
2285
2039
  }
2286
2040
  var focusArguments = {
2287
- model: this.isBlazorServer ? null : this
2041
+ model: this
2288
2042
  };
2289
2043
  if (!this.readonly && !Browser.isDevice && !this.enableMask) {
2290
2044
  this.selectInputText();
@@ -2347,7 +2101,7 @@ var TimePicker = /** @class */ (function (_super) {
2347
2101
  document.body.appendChild(this.mobileTimePopupWrap);
2348
2102
  }
2349
2103
  this.openPopupEventArgs = {
2350
- popup: this.isBlazorServer ? null : (this.popupObj || null),
2104
+ popup: this.popupObj || null,
2351
2105
  cancel: false,
2352
2106
  event: event || null,
2353
2107
  name: 'open',
@@ -2355,19 +2109,8 @@ var TimePicker = /** @class */ (function (_super) {
2355
2109
  };
2356
2110
  var eventArgs = this.openPopupEventArgs;
2357
2111
  this.trigger('open', eventArgs, function (eventArgs) {
2358
- if ((isBlazor() && _this.isServerRendered)) {
2359
- eventArgs.popup = _this.popupObj || null;
2360
- }
2361
2112
  _this.openPopupEventArgs = eventArgs;
2362
2113
  if (!_this.openPopupEventArgs.cancel && !_this.inputWrapper.buttons[0].classList.contains(DISABLED)) {
2363
- if (_this.isBlazorServer) {
2364
- _this.popupWrapper.style.visibility = '';
2365
- _this.popupWrapper.style.width = _this.inputWrapper.container.offsetWidth + 'px';
2366
- _this.popupWrapper.style.height = 'auto';
2367
- }
2368
- if (_this.isBlazorServer) {
2369
- _this.openPopupEventArgs.popup = _this.popupObj;
2370
- }
2371
2114
  _this.openPopupEventArgs.appendTo.appendChild(_this.popupWrapper);
2372
2115
  _this.popupAlignment(_this.openPopupEventArgs);
2373
2116
  _this.setScrollPosition();
@@ -2393,11 +2136,6 @@ var TimePicker = /** @class */ (function (_super) {
2393
2136
  }
2394
2137
  else {
2395
2138
  _this.popupObj.destroy();
2396
- if (_this.isBlazorServer) {
2397
- _this.disposeServerPopup();
2398
- _this.inputWrapper.container.parentElement.insertBefore(_this.popupWrapper, _this.inputWrapper.container.nextElementSibling);
2399
- _this.interopAdaptor.invokeMethodAsync('OnPopupHide', false);
2400
- }
2401
2139
  _this.popupWrapper = _this.listTag = undefined;
2402
2140
  _this.liCollections = _this.timeCollections = _this.disableItemCollection = [];
2403
2141
  _this.popupObj = null;
@@ -2522,10 +2260,8 @@ var TimePicker = /** @class */ (function (_super) {
2522
2260
  this.setTimeAllowEdit();
2523
2261
  break;
2524
2262
  case 'enableRtl':
2525
- if (!this.isBlazorServer) {
2526
- this.setProperties({ enableRtl: newProp.enableRtl }, true);
2527
- this.setEnableRtl();
2528
- }
2263
+ this.setProperties({ enableRtl: newProp.enableRtl }, true);
2264
+ this.setEnableRtl();
2529
2265
  break;
2530
2266
  case 'cssClass':
2531
2267
  this.updateCssClass(newProp.cssClass, oldProp.cssClass);
@@ -2541,9 +2277,7 @@ var TimePicker = /** @class */ (function (_super) {
2541
2277
  break;
2542
2278
  case 'min':
2543
2279
  case 'max':
2544
- if (!this.isBlazorServer) {
2545
- this.getProperty(newProp, prop);
2546
- }
2280
+ this.getProperty(newProp, prop);
2547
2281
  break;
2548
2282
  case 'showClearButton':
2549
2283
  Input.setClearButton(this.showClearButton, this.inputElement, this.inputWrapper);
@@ -2554,13 +2288,11 @@ var TimePicker = /** @class */ (function (_super) {
2554
2288
  this.globalize = new Internationalization(this.locale);
2555
2289
  this.l10n.setLocale(this.locale);
2556
2290
  this.updatePlaceHolder();
2557
- if (!this.isBlazorServer) {
2558
- this.setValue(this.value);
2559
- if (this.enableMask) {
2560
- this.notify("createMask", {
2561
- module: "MaskedDateTime",
2562
- });
2563
- }
2291
+ this.setValue(this.value);
2292
+ if (this.enableMask) {
2293
+ this.notify("createMask", {
2294
+ module: "MaskedDateTime",
2295
+ });
2564
2296
  }
2565
2297
  break;
2566
2298
  case 'width':
@@ -2570,50 +2302,46 @@ var TimePicker = /** @class */ (function (_super) {
2570
2302
  case 'format':
2571
2303
  this.setProperties({ format: newProp.format }, true);
2572
2304
  this.checkTimeFormat();
2573
- if (!this.isBlazorServer) {
2574
- this.setValue(this.value);
2575
- if (this.enableMask) {
2576
- this.createMask();
2577
- if (!this.value) {
2578
- this.updateInputValue(this.maskedDateValue);
2579
- }
2305
+ this.setValue(this.value);
2306
+ if (this.enableMask) {
2307
+ this.createMask();
2308
+ if (!this.value) {
2309
+ this.updateInputValue(this.maskedDateValue);
2580
2310
  }
2581
2311
  }
2582
2312
  break;
2583
2313
  case 'value':
2584
- if (!this.isBlazorServer) {
2585
- this.invalidValueString = null;
2586
- this.checkInvalidValue(newProp.value);
2587
- newProp.value = this.value;
2588
- if (!this.invalidValueString) {
2589
- if (typeof newProp.value === 'string') {
2590
- this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
2591
- newProp.value = this.value;
2592
- }
2593
- else {
2594
- if ((newProp.value && +new Date(+newProp.value).setMilliseconds(0)) !== +this.value) {
2595
- newProp.value = this.checkDateValue(new Date('' + newProp.value));
2596
- }
2597
- }
2598
- this.initValue = newProp.value;
2599
- newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
2314
+ this.invalidValueString = null;
2315
+ this.checkInvalidValue(newProp.value);
2316
+ newProp.value = this.value;
2317
+ if (!this.invalidValueString) {
2318
+ if (typeof newProp.value === 'string') {
2319
+ this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
2320
+ newProp.value = this.value;
2600
2321
  }
2601
2322
  else {
2602
- this.updateInputValue(this.invalidValueString);
2603
- this.checkErrorState(this.invalidValueString);
2604
- }
2605
- this.checkValueChange(null, false);
2606
- if (this.isPopupOpen()) {
2607
- this.setScrollPosition();
2608
- }
2609
- if (this.isAngular && this.preventChange) {
2610
- this.preventChange = false;
2611
- }
2612
- if (this.enableMask) {
2613
- this.notify("createMask", {
2614
- module: "MaskedDateTime",
2615
- });
2323
+ if ((newProp.value && +new Date(+newProp.value).setMilliseconds(0)) !== +this.value) {
2324
+ newProp.value = this.checkDateValue(new Date('' + newProp.value));
2325
+ }
2616
2326
  }
2327
+ this.initValue = newProp.value;
2328
+ newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
2329
+ }
2330
+ else {
2331
+ this.updateInputValue(this.invalidValueString);
2332
+ this.checkErrorState(this.invalidValueString);
2333
+ }
2334
+ this.checkValueChange(null, false);
2335
+ if (this.isPopupOpen()) {
2336
+ this.setScrollPosition();
2337
+ }
2338
+ if (this.isAngular && this.preventChange) {
2339
+ this.preventChange = false;
2340
+ }
2341
+ if (this.enableMask) {
2342
+ this.notify("createMask", {
2343
+ module: "MaskedDateTime",
2344
+ });
2617
2345
  }
2618
2346
  break;
2619
2347
  case 'floatLabelType':
@@ -2622,32 +2350,23 @@ var TimePicker = /** @class */ (function (_super) {
2622
2350
  Input.addFloating(this.inputElement, this.floatLabelType, this.placeholder);
2623
2351
  break;
2624
2352
  case 'strictMode':
2625
- if (!this.isBlazorServer) {
2626
- this.invalidValueString = null;
2627
- if (newProp.strictMode) {
2628
- this.checkErrorState(null);
2629
- }
2630
- this.setProperties({ strictMode: newProp.strictMode }, true);
2631
- this.checkValue((this.inputElement).value);
2632
- this.checkValueChange(null, false);
2353
+ this.invalidValueString = null;
2354
+ if (newProp.strictMode) {
2355
+ this.checkErrorState(null);
2633
2356
  }
2357
+ this.setProperties({ strictMode: newProp.strictMode }, true);
2358
+ this.checkValue((this.inputElement).value);
2359
+ this.checkValueChange(null, false);
2634
2360
  break;
2635
2361
  case 'scrollTo':
2636
- if (!this.isBlazorServer) {
2637
- if (this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo)))) {
2638
- if (this.popupWrapper) {
2639
- this.setScrollTo();
2640
- }
2641
- this.setProperties({ scrollTo: this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo))) }, true);
2642
- }
2643
- else {
2644
- this.setProperties({ scrollTo: null }, true);
2645
- }
2646
- }
2647
- else {
2362
+ if (this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo)))) {
2648
2363
  if (this.popupWrapper) {
2649
2364
  this.setScrollTo();
2650
2365
  }
2366
+ this.setProperties({ scrollTo: this.checkDateValue(new Date(this.checkInValue(newProp.scrollTo))) }, true);
2367
+ }
2368
+ else {
2369
+ this.setProperties({ scrollTo: null }, true);
2651
2370
  }
2652
2371
  break;
2653
2372
  case 'enableMask':