@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
@@ -23,7 +23,7 @@ import { EventHandler, Internationalization, Property, NotifyPropertyChanges, Br
23
23
  import { Animation, Event, cldrData, getDefaultDateObject, detach } from '@syncfusion/ej2-base';
24
24
  import { createElement, remove, addClass, L10n, removeClass, closest, append, attributes } from '@syncfusion/ej2-base';
25
25
  import { KeyboardEvents, isNullOrUndefined, formatUnit, getValue, rippleEffect } from '@syncfusion/ej2-base';
26
- import { extend, isBlazor, blazorCultureFormats } from '@syncfusion/ej2-base';
26
+ import { extend } from '@syncfusion/ej2-base';
27
27
  import { Popup } from '@syncfusion/ej2-popups';
28
28
  import { Input } from '@syncfusion/ej2-inputs';
29
29
  import { DatePicker } from '../datepicker/datepicker';
@@ -124,7 +124,7 @@ var DateTimePicker = /** @class */ (function (_super) {
124
124
  }
125
125
  removeClass([this.inputWrapper.container], INPUTFOCUS);
126
126
  var blurArguments = {
127
- model: (isBlazor() && this.isServerRendered) ? null : this
127
+ model: this
128
128
  };
129
129
  if (this.isTimePopupOpen()) {
130
130
  this.hide(e);
@@ -303,7 +303,7 @@ var DateTimePicker = /** @class */ (function (_super) {
303
303
  var dateOptions;
304
304
  if (!isNullOrUndefined(value)) {
305
305
  if (this.calendarMode === 'Gregorian') {
306
- dateOptions = { format: this.cldrDateTimeFormat(), type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd' };
306
+ dateOptions = { format: this.cldrDateTimeFormat(), type: 'dateTime', skeleton: 'yMd' };
307
307
  }
308
308
  else {
309
309
  dateOptions = { format: this.cldrDateTimeFormat(), type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
@@ -354,8 +354,7 @@ var DateTimePicker = /** @class */ (function (_super) {
354
354
  var cldrTime;
355
355
  if (this.isNullOrEmpty(this.timeFormat)) {
356
356
  if (this.locale === 'en' || this.locale === 'en-US') {
357
- cldrTime = isBlazor() ? (getValue('t', getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a') :
358
- (getValue('timeFormats.short', getDefaultDateObject()));
357
+ cldrTime = (getValue('timeFormats.short', getDefaultDateObject()));
359
358
  }
360
359
  else {
361
360
  cldrTime = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -369,7 +368,7 @@ var DateTimePicker = /** @class */ (function (_super) {
369
368
  DateTimePicker.prototype.cldrDateTimeFormat = function () {
370
369
  var cldrTime;
371
370
  var culture = new Internationalization(this.locale);
372
- var dateFormat = culture.getDatePattern({ skeleton: isBlazor() ? 'd' : 'yMd' });
371
+ var dateFormat = culture.getDatePattern({ skeleton: 'yMd' });
373
372
  if (this.isNullOrEmpty(this.formatString)) {
374
373
  cldrTime = dateFormat + ' ' + this.getCldrFormat('time');
375
374
  }
@@ -382,8 +381,7 @@ var DateTimePicker = /** @class */ (function (_super) {
382
381
  DateTimePicker.prototype.getCldrFormat = function (type) {
383
382
  var cldrDateTime;
384
383
  if (this.locale === 'en' || this.locale === 'en-US') {
385
- cldrDateTime = isBlazor() ? (getValue('t', getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a') :
386
- (getValue('timeFormats.short', getDefaultDateObject()));
384
+ cldrDateTime = (getValue('timeFormats.short', getDefaultDateObject()));
387
385
  }
388
386
  else {
389
387
  cldrDateTime = (this.getCultureTimeObject(cldrData, '' + this.locale));
@@ -401,8 +399,7 @@ var DateTimePicker = /** @class */ (function (_super) {
401
399
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
402
400
  DateTimePicker.prototype.getCultureTimeObject = function (ld, c) {
403
401
  if (this.calendarMode === 'Gregorian') {
404
- return isBlazor() ? (getValue('t', getValue(this.locale, blazorCultureFormats))).replace(/tt/, 'a') :
405
- (getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.short', ld));
402
+ return getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.timeFormats.short', ld);
406
403
  }
407
404
  else {
408
405
  return getValue('main.' + '' + this.locale + '.dates.calendars.islamic.timeFormats.short', ld);
@@ -549,7 +546,7 @@ var DateTimePicker = /** @class */ (function (_super) {
549
546
  var _this = this;
550
547
  this.preventArgs = {
551
548
  cancel: false,
552
- popup: (isBlazor() && this.isServerRendered) ? null : this.popupObject,
549
+ popup: this.popupObject,
553
550
  event: e || null
554
551
  };
555
552
  var eventArgs = this.preventArgs;
@@ -958,7 +955,7 @@ var DateTimePicker = /** @class */ (function (_super) {
958
955
  if (this.popupObj || this.dateTimeWrapper) {
959
956
  this.preventArgs = {
960
957
  cancel: false,
961
- popup: (isBlazor() && this.isServerRendered) ? null : this.popupObj || this.popupObject,
958
+ popup: this.popupObj || this.popupObject,
962
959
  event: e || null
963
960
  };
964
961
  var eventArgs = this.preventArgs;
@@ -1199,7 +1196,7 @@ var DateTimePicker = /** @class */ (function (_super) {
1199
1196
  if (this.calendarMode === 'Gregorian') {
1200
1197
  dateString = this.globalize.formatDate(time, {
1201
1198
  format: !isNullOrUndefined(this.formatString) ? this.formatString : this.cldrDateTimeFormat(),
1202
- type: 'dateTime', skeleton: isBlazor() ? 'd' : 'yMd'
1199
+ type: 'dateTime', skeleton: 'yMd'
1203
1200
  });
1204
1201
  }
1205
1202
  else {
@@ -30,6 +30,11 @@ export declare class MaskedDateTime {
30
30
  private isDeletion;
31
31
  private isShortYear;
32
32
  private isDeleteKey;
33
+ private isDateZero;
34
+ private isMonthZero;
35
+ private isYearZero;
36
+ private dayTypeCount;
37
+ private monthTypeCount;
33
38
  constructor(parent?: IMaskedDateTime);
34
39
  getModuleName(): string;
35
40
  addEventListener(): void;
@@ -45,6 +50,7 @@ export declare class MaskedDateTime {
45
50
  private maskInputHandler;
46
51
  private navigateSelection;
47
52
  private roundOff;
53
+ private zeroCheck;
48
54
  private handleDeletion;
49
55
  private dateAlteration;
50
56
  private getCulturedValue;
@@ -37,9 +37,14 @@ var MaskedDateTime = /** @class */ (function () {
37
37
  this.isDeletion = false;
38
38
  this.isShortYear = false;
39
39
  this.isDeleteKey = false;
40
+ this.isDateZero = false;
41
+ this.isMonthZero = false;
42
+ this.isYearZero = false;
43
+ this.dayTypeCount = 0;
44
+ this.monthTypeCount = 0;
40
45
  this.parent = parent;
41
46
  this.dateformat = this.getCulturedFormat();
42
- this.maskDateValue = this.parent.value != null ? this.parent.value : new Date();
47
+ this.maskDateValue = this.parent.value != null ? new Date(+this.parent.value) : new Date();
43
48
  this.maskDateValue.setMonth(0);
44
49
  this.maskDateValue.setHours(0);
45
50
  this.maskDateValue.setMinutes(0);
@@ -197,6 +202,7 @@ var MaskedDateTime = /** @class */ (function () {
197
202
  switch (this.previousHiddenMask[start - 1]) {
198
203
  case 'd':
199
204
  var date = (this.isDayPart && newDateValue.getDate().toString().length < 2 ? newDateValue.getDate() * 10 : 0) + parseInt(newVal[start - 1], 10);
205
+ this.isDateZero = (newVal[start - 1] == '0');
200
206
  if (isNaN(date)) {
201
207
  return;
202
208
  }
@@ -211,9 +217,11 @@ var MaskedDateTime = /** @class */ (function () {
211
217
  return;
212
218
  }
213
219
  this.isDayPart = true;
220
+ this.dayTypeCount = this.dayTypeCount + 1;
214
221
  }
215
222
  else {
216
223
  this.isDayPart = false;
224
+ this.dayTypeCount = this.isDateZero ? this.dayTypeCount + 1 : this.dayTypeCount;
217
225
  }
218
226
  break;
219
227
  case 'M':
@@ -224,6 +232,7 @@ var MaskedDateTime = /** @class */ (function () {
224
232
  else {
225
233
  month = parseInt(newVal[start - 1], 10);
226
234
  }
235
+ this.isMonthZero = (newVal[start - 1] == '0');
227
236
  if (!isNaN(month)) {
228
237
  while (month > 12) {
229
238
  month = parseInt(month.toString().slice(1), 10);
@@ -244,10 +253,12 @@ var MaskedDateTime = /** @class */ (function () {
244
253
  }
245
254
  this.previousDate = new Date(newDateValue.getFullYear(), newDateValue.getMonth(), newDateValue.getDate());
246
255
  this.isMonthPart = true;
256
+ this.monthTypeCount = this.monthTypeCount + 1;
247
257
  }
248
258
  else {
249
259
  newDateValue.setMonth(0);
250
260
  this.isMonthPart = false;
261
+ this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
251
262
  }
252
263
  }
253
264
  else { // let monthString: string[] = <string[]>(getValue('months[stand-alone].wide', getDefaultDateObject()));
@@ -273,6 +284,7 @@ var MaskedDateTime = /** @class */ (function () {
273
284
  case 'y':
274
285
  var year = (this.isYearPart && (newDateValue.getFullYear().toString().length < 4 && !this.isShortYear) ? newDateValue.getFullYear() * 10 : 0) + parseInt(newVal[start - 1], 10);
275
286
  this.isShortYear = false;
287
+ this.isYearZero = (newVal[start - 1] == '0');
276
288
  if (isNaN(year)) {
277
289
  return;
278
290
  }
@@ -381,9 +393,15 @@ var MaskedDateTime = /** @class */ (function () {
381
393
  case 'dddd':
382
394
  case 'd':
383
395
  result = proxy.isDayPart ? proxy.maskDateValue.getDate().toString() : proxy.defaultConstant['day'].toString();
396
+ result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
384
397
  break;
385
398
  case 'dd':
386
399
  result = proxy.isDayPart ? proxy.roundOff(proxy.maskDateValue.getDate(), 2) : proxy.defaultConstant['day'].toString();
400
+ result = proxy.zeroCheck(proxy.isDateZero, proxy.isDayPart, result);
401
+ if (proxy.dayTypeCount == 2) {
402
+ proxy.isNavigate = true;
403
+ proxy.dayTypeCount = 0;
404
+ }
387
405
  break;
388
406
  case 'E':
389
407
  case 'EE':
@@ -398,9 +416,15 @@ var MaskedDateTime = /** @class */ (function () {
398
416
  break;
399
417
  case 'M':
400
418
  result = proxy.isMonthPart ? (proxy.maskDateValue.getMonth() + 1).toString() : proxy.defaultConstant['month'].toString();
419
+ result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
401
420
  break;
402
421
  case 'MM':
403
422
  result = proxy.isMonthPart ? proxy.roundOff(proxy.maskDateValue.getMonth() + 1, 2) : proxy.defaultConstant['month'].toString();
423
+ result = proxy.zeroCheck(proxy.isMonthZero, proxy.isMonthPart, result);
424
+ if (proxy.monthTypeCount == 2) {
425
+ proxy.isNavigate = true;
426
+ proxy.monthTypeCount = 0;
427
+ }
404
428
  break;
405
429
  case 'MMM':
406
430
  result = proxy.isMonthPart ? monthAbbreviated[proxy.maskDateValue.getMonth() + 1] : proxy.defaultConstant['month'].toString();
@@ -410,6 +434,7 @@ var MaskedDateTime = /** @class */ (function () {
410
434
  break;
411
435
  case 'yy':
412
436
  result = proxy.isYearPart ? proxy.roundOff(proxy.maskDateValue.getFullYear() % 100, 2) : proxy.defaultConstant['year'].toString();
437
+ result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);
413
438
  if (proxy.isYearPart) {
414
439
  proxy.isNavigate = proxy.isShortYear = (proxy.maskDateValue.getFullYear() % 100).toString().length === 2;
415
440
  }
@@ -417,6 +442,7 @@ var MaskedDateTime = /** @class */ (function () {
417
442
  case 'y':
418
443
  case 'yyyy':
419
444
  result = proxy.isYearPart ? proxy.roundOff(proxy.maskDateValue.getFullYear(), 4) : proxy.defaultConstant['year'].toString();
445
+ result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);
420
446
  break;
421
447
  case 'h':
422
448
  result = proxy.isHourPart ? (proxy.maskDateValue.getHours() % 12 || 12).toString() : proxy.defaultConstant['hour'].toString();
@@ -492,6 +518,7 @@ var MaskedDateTime = /** @class */ (function () {
492
518
  inputValue = this.dateformat.replace(this.formatRegex, this.formatCheck());
493
519
  this.isHiddenMask = true;
494
520
  this.hiddenMask = this.dateformat.replace(this.formatRegex, this.formatCheck());
521
+ this.isDateZero = this.isMonthZero = this.isYearZero = false;
495
522
  this.isHiddenMask = false;
496
523
  this.previousHiddenMask = this.hiddenMask;
497
524
  this.previousValue = inputValue;
@@ -528,6 +555,13 @@ var MaskedDateTime = /** @class */ (function () {
528
555
  }
529
556
  return result + valueText;
530
557
  };
558
+ MaskedDateTime.prototype.zeroCheck = function (isZero, isDayPart, resultValue) {
559
+ var result = resultValue;
560
+ if (isZero && !isDayPart) {
561
+ result = '0';
562
+ }
563
+ return result;
564
+ };
531
565
  MaskedDateTime.prototype.handleDeletion = function (format, isSegment) {
532
566
  switch (format) {
533
567
  case 'd':
@@ -1,4 +1,4 @@
1
- import { EventHandler, Property, Internationalization, NotifyPropertyChanges, isBlazor } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, AnimationModel, Browser, BaseEventArgs } from '@syncfusion/ej2-base';import { EmitType, cldrData, L10n, Component, getDefaultDateObject, rippleEffect, RippleOptions, Event } from '@syncfusion/ej2-base';import { remove, addClass, detach, removeClass, closest, append, attributes, setStyleAttribute } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, getValue, extend, getUniqueID, blazorCultureFormats, ModuleDeclaration, ChildProperty } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { FocusEventArgs, BlurEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase, ListBaseOptions, createElementParams } from '@syncfusion/ej2-lists';
1
+ import { EventHandler, Property, Internationalization, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, AnimationModel, Browser, BaseEventArgs } from '@syncfusion/ej2-base';import { EmitType, cldrData, L10n, Component, getDefaultDateObject, rippleEffect, RippleOptions, Event } from '@syncfusion/ej2-base';import { remove, addClass, detach, removeClass, closest, append, attributes, setStyleAttribute } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, getValue, extend, getUniqueID, ModuleDeclaration, ChildProperty } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { FocusEventArgs, BlurEventArgs, ClearedEventArgs } from '../calendar/calendar';import { Input, InputObject, IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { ListBase, ListBaseOptions, createElementParams } from '@syncfusion/ej2-lists';
2
2
  import {TimeFormatObject,ChangeEventArgs,PopupEventArgs,ItemEventArgs} from "./timepicker";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -146,7 +146,6 @@ export interface TimePickerModel extends ComponentModel{
146
146
  * {% codeBlock src='timepicker/keyConfigs/index.md' %}{% endcodeBlock %}
147
147
  *
148
148
  * @default null
149
- * @blazorType object
150
149
  */
151
150
  keyConfigs?: { [key: string]: string };
152
151
 
@@ -159,7 +158,6 @@ export interface TimePickerModel extends ComponentModel{
159
158
  *
160
159
  * @default null
161
160
  * @aspType string
162
- * @blazorType string
163
161
  */
164
162
  format?: string | TimeFormatObject;
165
163
 
@@ -195,7 +193,6 @@ export interface TimePickerModel extends ComponentModel{
195
193
  *
196
194
  * @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
197
195
  * @aspType Syncfusion.EJ2.Inputs.FloatLabelType
198
- * @blazorType Syncfusion.Blazor.Inputs.FloatLabelType
199
196
  * @isEnumeration true
200
197
  */
201
198
  floatLabelType?: FloatLabelType | string;
@@ -212,7 +209,6 @@ export interface TimePickerModel extends ComponentModel{
212
209
  *
213
210
  * @default 1000
214
211
  * @aspType int
215
- * @blazorType int
216
212
  */
217
213
  zIndex?: number;
218
214
 
@@ -237,7 +233,6 @@ export interface TimePickerModel extends ComponentModel{
237
233
  * [`Format`](../../timepicker/getting-started#setting-the-time-format)documentation.
238
234
  *
239
235
  * @default 30
240
- * @blazorType int
241
236
  *
242
237
  */
243
238
  step?: number;
@@ -250,7 +245,6 @@ export interface TimePickerModel extends ComponentModel{
250
245
  * {% codeBlock src='timepicker/scrollTo/index.md' %}{% endcodeBlock %}
251
246
  *
252
247
  * @default null
253
- * @isBlazorNullableType true
254
248
  */
255
249
  scrollTo?: Date;
256
250
 
@@ -268,7 +262,6 @@ export interface TimePickerModel extends ComponentModel{
268
262
  * [`Time Range`](../../timepicker/time-range/) documentation.
269
263
  *
270
264
  * @default 00:00
271
- * @blazorDefaultValue new DateTime(1900, 01, 01, 00, 00, 00)
272
265
  */
273
266
  min?: Date;
274
267
 
@@ -278,7 +271,6 @@ export interface TimePickerModel extends ComponentModel{
278
271
  * [`Time Range`](../../timepicker/time-range/) documentation.
279
272
  *
280
273
  * @default 00:00
281
- * @blazorDefaultValue new DateTime(2099, 12, 31, 23, 59, 59)
282
274
  */
283
275
  max?: Date;
284
276
 
@@ -321,7 +313,6 @@ export interface TimePickerModel extends ComponentModel{
321
313
  * Triggers when the value is changed.
322
314
  *
323
315
  * @event change
324
- * @blazorProperty 'ValueChange'
325
316
  */
326
317
  change?: EmitType<ChangeEventArgs>;
327
318
 
@@ -329,7 +320,6 @@ export interface TimePickerModel extends ComponentModel{
329
320
  * Triggers when the component is created.
330
321
  *
331
322
  * @event created
332
- * @blazorProperty 'Created'
333
323
  */
334
324
  created?: EmitType<Object>;
335
325
 
@@ -337,7 +327,6 @@ export interface TimePickerModel extends ComponentModel{
337
327
  * Triggers when the component is destroyed.
338
328
  *
339
329
  * @event destroyed
340
- * @blazorProperty 'Destroyed'
341
330
  */
342
331
  destroyed?: EmitType<Object>;
343
332
 
@@ -345,7 +334,6 @@ export interface TimePickerModel extends ComponentModel{
345
334
  * Triggers when the popup is opened.
346
335
  *
347
336
  * @event open
348
- * @blazorProperty 'OnOpen'
349
337
  */
350
338
  open?: EmitType<PopupEventArgs>;
351
339
 
@@ -353,7 +341,6 @@ export interface TimePickerModel extends ComponentModel{
353
341
  * Triggers while rendering the each popup list item.
354
342
  *
355
343
  * @event itemRender
356
- * @blazorProperty 'OnItemRender'
357
344
  */
358
345
  itemRender?: EmitType<ItemEventArgs>;
359
346
 
@@ -361,7 +348,6 @@ export interface TimePickerModel extends ComponentModel{
361
348
  * Triggers when the popup is closed.
362
349
  *
363
350
  * @event close
364
- * @blazorProperty 'OnClose'
365
351
  */
366
352
  close?: EmitType<PopupEventArgs>;
367
353
 
@@ -159,7 +159,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
159
159
  private cursorDetails;
160
160
  private activeIndex;
161
161
  private timeCollections;
162
- private blazorTimeCollections;
163
162
  private isNavigate;
164
163
  private disableItemCollection;
165
164
  protected isPreventBlur: boolean;
@@ -184,7 +183,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
184
183
  };
185
184
  private timeOptions;
186
185
  private mobileTimePopupWrap;
187
- private isBlazorServer;
188
186
  protected isAngular: boolean;
189
187
  protected preventChange: boolean;
190
188
  protected maskedDateValue: string;
@@ -269,7 +267,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
269
267
  * {% codeBlock src='timepicker/keyConfigs/index.md' %}{% endcodeBlock %}
270
268
  *
271
269
  * @default null
272
- * @blazorType object
273
270
  */
274
271
  keyConfigs: {
275
272
  [key: string]: string;
@@ -283,7 +280,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
283
280
  *
284
281
  * @default null
285
282
  * @aspType string
286
- * @blazorType string
287
283
  */
288
284
  format: string | TimeFormatObject;
289
285
  /**
@@ -317,7 +313,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
317
313
  *
318
314
  * @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
319
315
  * @aspType Syncfusion.EJ2.Inputs.FloatLabelType
320
- * @blazorType Syncfusion.Blazor.Inputs.FloatLabelType
321
316
  * @isEnumeration true
322
317
  */
323
318
  floatLabelType: FloatLabelType | string;
@@ -332,7 +327,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
332
327
  *
333
328
  * @default 1000
334
329
  * @aspType int
335
- * @blazorType int
336
330
  */
337
331
  zIndex: number;
338
332
  /**
@@ -354,7 +348,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
354
348
  * [`Format`](../../timepicker/getting-started#setting-the-time-format)documentation.
355
349
  *
356
350
  * @default 30
357
- * @blazorType int
358
351
  *
359
352
  */
360
353
  step: number;
@@ -366,7 +359,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
366
359
  * {% codeBlock src='timepicker/scrollTo/index.md' %}{% endcodeBlock %}
367
360
  *
368
361
  * @default null
369
- * @isBlazorNullableType true
370
362
  */
371
363
  scrollTo: Date;
372
364
  /**
@@ -382,7 +374,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
382
374
  * [`Time Range`](../../timepicker/time-range/) documentation.
383
375
  *
384
376
  * @default 00:00
385
- * @blazorDefaultValue new DateTime(1900, 01, 01, 00, 00, 00)
386
377
  */
387
378
  min: Date;
388
379
  /**
@@ -391,7 +382,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
391
382
  * [`Time Range`](../../timepicker/time-range/) documentation.
392
383
  *
393
384
  * @default 00:00
394
- * @blazorDefaultValue new DateTime(2099, 12, 31, 23, 59, 59)
395
385
  */
396
386
  max: Date;
397
387
  /**
@@ -429,42 +419,36 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
429
419
  * Triggers when the value is changed.
430
420
  *
431
421
  * @event change
432
- * @blazorProperty 'ValueChange'
433
422
  */
434
423
  change: EmitType<ChangeEventArgs>;
435
424
  /**
436
425
  * Triggers when the component is created.
437
426
  *
438
427
  * @event created
439
- * @blazorProperty 'Created'
440
428
  */
441
429
  created: EmitType<Object>;
442
430
  /**
443
431
  * Triggers when the component is destroyed.
444
432
  *
445
433
  * @event destroyed
446
- * @blazorProperty 'Destroyed'
447
434
  */
448
435
  destroyed: EmitType<Object>;
449
436
  /**
450
437
  * Triggers when the popup is opened.
451
438
  *
452
439
  * @event open
453
- * @blazorProperty 'OnOpen'
454
440
  */
455
441
  open: EmitType<PopupEventArgs>;
456
442
  /**
457
443
  * Triggers while rendering the each popup list item.
458
444
  *
459
445
  * @event itemRender
460
- * @blazorProperty 'OnItemRender'
461
446
  */
462
447
  itemRender: EmitType<ItemEventArgs>;
463
448
  /**
464
449
  * Triggers when the popup is closed.
465
450
  *
466
451
  * @event close
467
- * @blazorProperty 'OnClose'
468
452
  */
469
453
  close: EmitType<PopupEventArgs>;
470
454
  /**
@@ -544,7 +528,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
544
528
  private getText;
545
529
  private getValue;
546
530
  private cldrDateFormat;
547
- private getBlazorCultureFormat;
548
531
  private cldrTimeFormat;
549
532
  private dateToNumeric;
550
533
  private getExactDateTime;
@@ -553,7 +536,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
553
536
  private updatePlaceHolder;
554
537
  private updateInputValue;
555
538
  private preventEventBubbling;
556
- private updateBlazorTimeCollections;
557
539
  private popupHandler;
558
540
  private mouseDownHandler;
559
541
  private mouseUpHandler;
@@ -596,7 +578,6 @@ export declare class TimePicker extends Component<HTMLElement> implements IInput
596
578
  private createMask;
597
579
  protected findNextElement(event: KeyboardEventArgs): void;
598
580
  protected selectNextItem(event: KeyboardEventArgs): void;
599
- private findNextInBlazor;
600
581
  protected elementValue(value: Date): void;
601
582
  private validLiElement;
602
583
  protected keyHandler(event: KeyboardEventArgs): void;