@syncfusion/ej2-calendars 24.2.9 → 25.1.35

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 (73) hide show
  1. package/CHANGELOG.md +0 -56
  2. package/dist/ej2-calendars.min.js +2 -2
  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 +39 -7
  6. package/dist/es6/ej2-calendars.es2015.js.map +1 -1
  7. package/dist/es6/ej2-calendars.es5.js +39 -7
  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 +11 -11
  13. package/src/calendar/calendar.js +3 -3
  14. package/src/datepicker/datepicker.d.ts +1 -0
  15. package/src/datepicker/datepicker.js +10 -2
  16. package/src/daterangepicker/daterangepicker.d.ts +1 -0
  17. package/src/daterangepicker/daterangepicker.js +8 -0
  18. package/src/datetimepicker/datetimepicker.js +10 -2
  19. package/src/timepicker/timepicker.d.ts +1 -0
  20. package/src/timepicker/timepicker.js +8 -0
  21. package/styles/bootstrap-dark.css +1 -1
  22. package/styles/bootstrap.css +1 -1
  23. package/styles/bootstrap4.css +1 -1
  24. package/styles/bootstrap5-dark.css +1 -1
  25. package/styles/bootstrap5.css +1 -1
  26. package/styles/calendar/_bds-definition.scss +272 -0
  27. package/styles/calendar/_bootstrap-definition.scss +1 -1
  28. package/styles/calendar/_fabric-dark-definition.scss +1 -1
  29. package/styles/calendar/_fabric-definition.scss +1 -1
  30. package/styles/calendar/_fluent-definition.scss +2 -2
  31. package/styles/calendar/_fusionnew-definition.scss +1 -1
  32. package/styles/calendar/_highcontrast-definition.scss +1 -1
  33. package/styles/calendar/_material-dark-definition.scss +1 -1
  34. package/styles/calendar/_tailwind-definition.scss +1 -1
  35. package/styles/calendar/_theme.scss +1 -1
  36. package/styles/calendar/bootstrap-dark.css +1 -1
  37. package/styles/calendar/bootstrap.css +1 -1
  38. package/styles/calendar/bootstrap4.css +1 -1
  39. package/styles/calendar/bootstrap5-dark.css +1 -1
  40. package/styles/calendar/bootstrap5.css +1 -1
  41. package/styles/calendar/fabric-dark.css +1 -1
  42. package/styles/calendar/fabric.css +1 -1
  43. package/styles/calendar/fluent-dark.css +11 -11
  44. package/styles/calendar/fluent.css +11 -11
  45. package/styles/calendar/highcontrast-light.css +1 -1
  46. package/styles/calendar/highcontrast.css +1 -1
  47. package/styles/calendar/icons/_bds.scss +13 -0
  48. package/styles/calendar/material-dark.css +1 -1
  49. package/styles/calendar/material.css +1 -1
  50. package/styles/calendar/material3-dark.css +1 -1
  51. package/styles/calendar/material3.css +1 -1
  52. package/styles/calendar/tailwind-dark.css +1 -1
  53. package/styles/calendar/tailwind.css +1 -1
  54. package/styles/datepicker/_bds-definition.scss +105 -0
  55. package/styles/datepicker/icons/_bds.scss +76 -0
  56. package/styles/daterangepicker/_bds-definition.scss +294 -0
  57. package/styles/daterangepicker/icons/_bds.scss +92 -0
  58. package/styles/datetimepicker/_bds-definition.scss +65 -0
  59. package/styles/datetimepicker/icons/_bds.scss +11 -0
  60. package/styles/fabric-dark.css +1 -1
  61. package/styles/fabric.css +1 -1
  62. package/styles/fluent-dark.css +11 -11
  63. package/styles/fluent.css +11 -11
  64. package/styles/highcontrast-light.css +1 -1
  65. package/styles/highcontrast.css +1 -1
  66. package/styles/material-dark.css +1 -1
  67. package/styles/material.css +1 -1
  68. package/styles/material3-dark.css +1 -1
  69. package/styles/material3.css +1 -1
  70. package/styles/tailwind-dark.css +1 -1
  71. package/styles/tailwind.css +1 -1
  72. package/styles/timepicker/_bds-definition.scss +84 -0
  73. package/styles/timepicker/icons/_bds.scss +24 -0
@@ -32,7 +32,7 @@ var DEVICE = 'e-device';
32
32
  var HEADER = 'e-header';
33
33
  var RTL = 'e-rtl';
34
34
  var CONTENT = 'e-content';
35
- var CONTENTTABLE = 'e-calandar-content-table';
35
+ var CONTENTTABLE = 'e-calendar-content-table';
36
36
  var YEAR = 'e-year';
37
37
  var MONTH = 'e-month';
38
38
  var DECADE = 'e-decade';
@@ -1242,8 +1242,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1242
1242
  */
1243
1243
  CalendarBase.prototype.requiredModules = function () {
1244
1244
  var modules = [];
1245
- if (this) {
1246
- modules.push({ args: [this], member: 'islamic' });
1245
+ if (this.calendarMode === 'Islamic') {
1246
+ modules.push({ args: [this], member: 'islamic', name: 'Islamic' });
1247
1247
  }
1248
1248
  return modules;
1249
1249
  };
@@ -4439,8 +4439,8 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4439
4439
  };
4440
4440
  DatePicker.prototype.requiredModules = function () {
4441
4441
  var modules = [];
4442
- if (this) {
4443
- modules.push({ args: [this], member: 'islamic' });
4442
+ if (this.calendarMode === 'Islamic') {
4443
+ modules.push({ args: [this], member: 'islamic', name: 'Islamic' });
4444
4444
  }
4445
4445
  if (this.enableMask) {
4446
4446
  modules.push({ args: [this], member: 'MaskedDateTime' });
@@ -4716,7 +4716,15 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4716
4716
  */
4717
4717
  DatePicker.prototype.destroy = function () {
4718
4718
  this.unBindEvents();
4719
+ if (this.showClearButton) {
4720
+ this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
4721
+ }
4719
4722
  _super.prototype.destroy.call(this);
4723
+ Input.destroy({
4724
+ element: this.inputElement,
4725
+ floatLabelType: this.floatLabelType,
4726
+ properties: this.properties
4727
+ }, this.clearButton);
4720
4728
  if (!isNullOrUndefined(this.keyboardModules)) {
4721
4729
  this.keyboardModules.destroy();
4722
4730
  }
@@ -9199,6 +9207,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
9199
9207
  */
9200
9208
  DateRangePicker.prototype.destroy = function () {
9201
9209
  this.unBindEvents();
9210
+ if (this.showClearButton) {
9211
+ this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
9212
+ }
9202
9213
  this.hide(null);
9203
9214
  var ariaAttrs = {
9204
9215
  'tabindex': '0', 'aria-expanded': 'false', 'role': 'combobox',
@@ -9233,6 +9244,11 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
9233
9244
  this.clearCalendarEvents();
9234
9245
  }
9235
9246
  }
9247
+ Input.destroy({
9248
+ element: this.inputElement,
9249
+ floatLabelType: this.floatLabelType,
9250
+ properties: this.properties
9251
+ }, this.clearButton);
9236
9252
  _super.prototype.destroy.call(this);
9237
9253
  this.inputWrapper = this.popupWrapper = this.popupObj = this.cloneElement = this.presetElement = null;
9238
9254
  if (this.formElement) {
@@ -10422,6 +10438,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10422
10438
  // destroy function
10423
10439
  TimePicker.prototype.destroy = function () {
10424
10440
  this.hide();
10441
+ if (this.showClearButton) {
10442
+ this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
10443
+ }
10425
10444
  this.unBindEvents();
10426
10445
  var ariaAttribute = {
10427
10446
  'aria-autocomplete': 'list', 'tabindex': '0',
@@ -10455,6 +10474,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10455
10474
  if (!isNullOrUndefined(this.rippleFn)) {
10456
10475
  this.rippleFn();
10457
10476
  }
10477
+ Input.destroy({
10478
+ element: this.inputElement,
10479
+ floatLabelType: this.floatLabelType,
10480
+ properties: this.properties
10481
+ }, this.clearButton);
10458
10482
  _super.prototype.destroy.call(this);
10459
10483
  if (this.formElement) {
10460
10484
  EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
@@ -12688,6 +12712,9 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12688
12712
  * @returns {void}
12689
12713
  */
12690
12714
  DateTimePicker.prototype.destroy = function () {
12715
+ if (this.showClearButton) {
12716
+ this.clearButton = document.getElementsByClassName('e-clear-icon')[0];
12717
+ }
12691
12718
  if (this.popupObject && this.popupObject.element.classList.contains(POPUP$3)) {
12692
12719
  this.popupObject.destroy();
12693
12720
  detach(this.dateTimeWrapper);
@@ -12721,6 +12748,11 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12721
12748
  this.popupObject = null;
12722
12749
  this.preventArgs = null;
12723
12750
  this.keyboardModule = null;
12751
+ Input.destroy({
12752
+ element: this.inputElement,
12753
+ floatLabelType: this.floatLabelType,
12754
+ properties: this.properties
12755
+ }, this.clearButton);
12724
12756
  _super.prototype.destroy.call(this);
12725
12757
  };
12726
12758
  /**
@@ -13744,8 +13776,8 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
13744
13776
  };
13745
13777
  DateTimePicker.prototype.requiredModules = function () {
13746
13778
  var modules = [];
13747
- if (this) {
13748
- modules.push({ args: [this], member: 'islamic' });
13779
+ if (this.calendarMode === 'Islamic') {
13780
+ modules.push({ args: [this], member: 'islamic', name: 'Islamic' });
13749
13781
  }
13750
13782
  if (this.enableMask) {
13751
13783
  modules.push(this.maskedDateModule());