@progress/kendo-angular-dateinputs 21.3.1-develop.1 → 21.4.0-develop.10

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.
@@ -541,6 +541,7 @@ export declare class DateTimePickerComponent extends MultiTabStop implements OnI
541
541
  private get dateTabButton();
542
542
  private get timeTabButton();
543
543
  private get todayButton();
544
+ private get popupClasses();
544
545
  /**
545
546
  * @hidden
546
547
  */
@@ -7,7 +7,7 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
7
7
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { PopupService } from '@progress/kendo-angular-popup';
9
9
  import { cloneDate } from '@progress/kendo-date-math';
10
- import { hasObservers, isControlRequired, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective, normalizeKeys } from '@progress/kendo-angular-common';
10
+ import { hasObservers, isControlRequired, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective, normalizeKeys, parseCSSClassNames } from '@progress/kendo-angular-common';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import { packageMetadata } from '../package-metadata';
13
13
  import { MIN_DATE, MAX_DATE } from '../defaults';
@@ -869,10 +869,15 @@ export class DatePickerComponent extends MultiTabStop {
869
869
  * @hidden
870
870
  */
871
871
  get popupClasses() {
872
- return [
873
- 'k-datepicker-popup',
874
- 'k-calendar-container'
875
- ].concat(this.popupSettings.popupClass || []);
872
+ const popupClasses = ['k-datepicker-popup', 'k-calendar-container'];
873
+ if (!this.popupSettings.popupClass) {
874
+ return popupClasses;
875
+ }
876
+ const customClasses = parseCSSClassNames(this.popupSettings.popupClass);
877
+ if (customClasses?.length) {
878
+ popupClasses.push(...customClasses);
879
+ }
880
+ return popupClasses;
876
881
  }
877
882
  /**
878
883
  * @hidden
@@ -9,7 +9,7 @@ import { tap } from 'rxjs/operators';
9
9
  import { cloneDate, isEqual, getDate } from '@progress/kendo-date-math';
10
10
  import { PopupService } from '@progress/kendo-angular-popup';
11
11
  import { IntlService } from '@progress/kendo-angular-intl';
12
- import { hasObservers, isControlRequired, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective, normalizeKeys } from '@progress/kendo-angular-common';
12
+ import { hasObservers, isControlRequired, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective, normalizeKeys, parseCSSClassNames } from '@progress/kendo-angular-common';
13
13
  import { AdaptiveService } from '@progress/kendo-angular-utils';
14
14
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
15
15
  import { validatePackage } from '@progress/kendo-licensing';
@@ -745,6 +745,17 @@ export class DateTimePickerComponent extends MultiTabStop {
745
745
  return this.popupRef?.popup.instance.container.nativeElement.querySelector(TODAY_BUTTON_SELECTOR);
746
746
  }
747
747
  }
748
+ get popupClasses() {
749
+ const classes = ['k-datetime-container', 'k-datetimepicker-popup'];
750
+ if (!this.popupSettings.popupClass) {
751
+ return classes;
752
+ }
753
+ const parsedPopupClasses = parseCSSClassNames(this.popupSettings.popupClass);
754
+ if (parsedPopupClasses?.length) {
755
+ classes.push(...parsedPopupClasses);
756
+ }
757
+ return classes;
758
+ }
748
759
  /**
749
760
  * @hidden
750
761
  */
@@ -1364,7 +1375,7 @@ export class DateTimePickerComponent extends MultiTabStop {
1364
1375
  positionMode: appendToComponent ? 'fixed' : 'absolute',
1365
1376
  animate: this.popupSettings.animate,
1366
1377
  appendTo: this.appendTo,
1367
- popupClass: `k-datetime-container k-datetimepicker-popup ${this.popupSettings.popupClass || ''}`,
1378
+ popupClass: this.popupClasses,
1368
1379
  anchorAlign: { vertical: 'bottom', horizontal: direction },
1369
1380
  popupAlign: { vertical: 'top', horizontal: direction }
1370
1381
  });
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1765533019,
14
- version: '21.3.1-develop.1',
13
+ publishDate: 1766140329,
14
+ version: '21.4.0-develop.10',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -7,7 +7,7 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
7
7
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { PopupService } from '@progress/kendo-angular-popup';
9
9
  import { cloneDate, isEqual } from '@progress/kendo-date-math';
10
- import { hasObservers, isControlRequired, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective, normalizeKeys } from '@progress/kendo-angular-common';
10
+ import { hasObservers, isControlRequired, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective, normalizeKeys, parseCSSClassNames } from '@progress/kendo-angular-common';
11
11
  import { AdaptiveService } from '@progress/kendo-angular-utils';
12
12
  import { validatePackage } from '@progress/kendo-licensing';
13
13
  import { packageMetadata } from '../package-metadata';
@@ -760,9 +760,15 @@ export class TimePickerComponent extends MultiTabStop {
760
760
  * @hidden
761
761
  */
762
762
  get popupClasses() {
763
- return [
764
- 'k-timepicker-popup'
765
- ].concat(this.popupSettings.popupClass || []);
763
+ const popupClasses = ['k-timepicker-popup'];
764
+ if (!this.popupSettings.popupClass) {
765
+ return popupClasses;
766
+ }
767
+ const customClasses = parseCSSClassNames(this.popupSettings.popupClass);
768
+ if (customClasses?.length) {
769
+ popupClasses.push(...customClasses);
770
+ }
771
+ return popupClasses;
766
772
  }
767
773
  /**
768
774
  * @hidden
@@ -9,7 +9,7 @@ import * as i1$1 from '@progress/kendo-angular-l10n';
9
9
  import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
10
10
  import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, lastYearOfDecade, firstYearOfDecade, createDate, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
11
11
  import * as i19 from '@progress/kendo-angular-common';
12
- import { normalizeKeys, Keys, isDocumentAvailable, EventsOutsideAngularDirective, guid, hasObservers, isObject, KendoInput, ResizeSensorComponent, isObjectPresent, removeHTMLAttributes, parseAttributes, anyChanged, isControlRequired, setHTMLAttributes, MultiTabStop, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
12
+ import { normalizeKeys, Keys, isDocumentAvailable, EventsOutsideAngularDirective, guid, hasObservers, isObject, KendoInput, ResizeSensorComponent, isObjectPresent, removeHTMLAttributes, parseAttributes, anyChanged, isControlRequired, setHTMLAttributes, MultiTabStop, parseCSSClassNames, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
13
13
  export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
14
14
  import { validatePackage } from '@progress/kendo-licensing';
15
15
  import * as i1 from '@progress/kendo-angular-intl';
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCode: 'KENDOUIANGULAR',
38
38
  productCodes: ['KENDOUIANGULAR'],
39
- publishDate: 1765533019,
40
- version: '21.3.1-develop.1',
39
+ publishDate: 1766140329,
40
+ version: '21.4.0-develop.10',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -10753,10 +10753,15 @@ class DatePickerComponent extends MultiTabStop {
10753
10753
  * @hidden
10754
10754
  */
10755
10755
  get popupClasses() {
10756
- return [
10757
- 'k-datepicker-popup',
10758
- 'k-calendar-container'
10759
- ].concat(this.popupSettings.popupClass || []);
10756
+ const popupClasses = ['k-datepicker-popup', 'k-calendar-container'];
10757
+ if (!this.popupSettings.popupClass) {
10758
+ return popupClasses;
10759
+ }
10760
+ const customClasses = parseCSSClassNames(this.popupSettings.popupClass);
10761
+ if (customClasses?.length) {
10762
+ popupClasses.push(...customClasses);
10763
+ }
10764
+ return popupClasses;
10760
10765
  }
10761
10766
  /**
10762
10767
  * @hidden
@@ -14443,9 +14448,15 @@ class TimePickerComponent extends MultiTabStop {
14443
14448
  * @hidden
14444
14449
  */
14445
14450
  get popupClasses() {
14446
- return [
14447
- 'k-timepicker-popup'
14448
- ].concat(this.popupSettings.popupClass || []);
14451
+ const popupClasses = ['k-timepicker-popup'];
14452
+ if (!this.popupSettings.popupClass) {
14453
+ return popupClasses;
14454
+ }
14455
+ const customClasses = parseCSSClassNames(this.popupSettings.popupClass);
14456
+ if (customClasses?.length) {
14457
+ popupClasses.push(...customClasses);
14458
+ }
14459
+ return popupClasses;
14449
14460
  }
14450
14461
  /**
14451
14462
  * @hidden
@@ -16143,6 +16154,17 @@ class DateTimePickerComponent extends MultiTabStop {
16143
16154
  return this.popupRef?.popup.instance.container.nativeElement.querySelector(TODAY_BUTTON_SELECTOR);
16144
16155
  }
16145
16156
  }
16157
+ get popupClasses() {
16158
+ const classes = ['k-datetime-container', 'k-datetimepicker-popup'];
16159
+ if (!this.popupSettings.popupClass) {
16160
+ return classes;
16161
+ }
16162
+ const parsedPopupClasses = parseCSSClassNames(this.popupSettings.popupClass);
16163
+ if (parsedPopupClasses?.length) {
16164
+ classes.push(...parsedPopupClasses);
16165
+ }
16166
+ return classes;
16167
+ }
16146
16168
  /**
16147
16169
  * @hidden
16148
16170
  */
@@ -16762,7 +16784,7 @@ class DateTimePickerComponent extends MultiTabStop {
16762
16784
  positionMode: appendToComponent ? 'fixed' : 'absolute',
16763
16785
  animate: this.popupSettings.animate,
16764
16786
  appendTo: this.appendTo,
16765
- popupClass: `k-datetime-container k-datetimepicker-popup ${this.popupSettings.popupClass || ''}`,
16787
+ popupClass: this.popupClasses,
16766
16788
  anchorAlign: { vertical: 'bottom', horizontal: direction },
16767
16789
  popupAlign: { vertical: 'top', horizontal: direction }
16768
16790
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "21.3.1-develop.1",
3
+ "version": "21.4.0-develop.10",
4
4
  "description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -79,7 +79,7 @@
79
79
  "package": {
80
80
  "productName": "Kendo UI for Angular",
81
81
  "productCode": "KENDOUIANGULAR",
82
- "publishDate": 1765533019,
82
+ "publishDate": 1766140329,
83
83
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
84
84
  }
85
85
  },
@@ -90,19 +90,19 @@
90
90
  "@angular/forms": "18 - 21",
91
91
  "@angular/platform-browser": "18 - 21",
92
92
  "@progress/kendo-licensing": "^1.7.0",
93
- "@progress/kendo-angular-buttons": "21.3.1-develop.1",
94
- "@progress/kendo-angular-common": "21.3.1-develop.1",
95
- "@progress/kendo-angular-utils": "21.3.1-develop.1",
96
- "@progress/kendo-angular-intl": "21.3.1-develop.1",
97
- "@progress/kendo-angular-l10n": "21.3.1-develop.1",
98
- "@progress/kendo-angular-icons": "21.3.1-develop.1",
99
- "@progress/kendo-angular-popup": "21.3.1-develop.1",
100
- "@progress/kendo-angular-navigation": "21.3.1-develop.1",
93
+ "@progress/kendo-angular-buttons": "21.4.0-develop.10",
94
+ "@progress/kendo-angular-common": "21.4.0-develop.10",
95
+ "@progress/kendo-angular-utils": "21.4.0-develop.10",
96
+ "@progress/kendo-angular-intl": "21.4.0-develop.10",
97
+ "@progress/kendo-angular-l10n": "21.4.0-develop.10",
98
+ "@progress/kendo-angular-icons": "21.4.0-develop.10",
99
+ "@progress/kendo-angular-popup": "21.4.0-develop.10",
100
+ "@progress/kendo-angular-navigation": "21.4.0-develop.10",
101
101
  "rxjs": "^6.5.3 || ^7.0.0"
102
102
  },
103
103
  "dependencies": {
104
104
  "tslib": "^2.3.1",
105
- "@progress/kendo-angular-schematics": "21.3.1-develop.1",
105
+ "@progress/kendo-angular-schematics": "21.4.0-develop.10",
106
106
  "@progress/kendo-common": "^1.0.1",
107
107
  "@progress/kendo-date-math": "^1.1.0",
108
108
  "@progress/kendo-dateinputs-common": "^0.4.7"
@@ -24,5 +24,5 @@ export interface PopupSettings {
24
24
  /**
25
25
  * Specifies a list of CSS classes that are used for styling the popup.
26
26
  */
27
- popupClass?: string;
27
+ popupClass?: string | Array<string> | object | Set<string>;
28
28
  }