@progress/kendo-angular-dateinputs 11.4.1-develop.3 → 11.4.1-develop.5

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.
package/common/utils.d.ts CHANGED
@@ -18,6 +18,10 @@ export declare const currentFocusTarget: (blurArgs: any) => any;
18
18
  * @hidden
19
19
  */
20
20
  export declare const isPresent: (value: any) => boolean;
21
+ /**
22
+ * @hidden
23
+ */
24
+ export declare const isTruthy: (value: any) => boolean;
21
25
  /**
22
26
  * @hidden
23
27
  *
@@ -19,6 +19,10 @@ export const currentFocusTarget = (blurArgs) => blurArgs.relatedTarget || docume
19
19
  * @hidden
20
20
  */
21
21
  export const isPresent = (value) => value !== undefined && value !== null;
22
+ /**
23
+ * @hidden
24
+ */
25
+ export const isTruthy = (value) => !!value;
22
26
  /**
23
27
  * @hidden
24
28
  *
@@ -15,7 +15,7 @@ import { validatePackage } from '@progress/kendo-licensing';
15
15
  import { packageMetadata } from '../package-metadata';
16
16
  import { PickerService } from '../common/picker.service';
17
17
  import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
18
- import { attributeNames, isPresent } from '../common/utils';
18
+ import { attributeNames, isPresent, isTruthy } from '../common/utils';
19
19
  import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE, windowSize } from '../util';
20
20
  import { PreventableEvent } from '../preventable-event';
21
21
  import { minValidator } from '../validators/min.validator';
@@ -403,7 +403,7 @@ export class DateTimePickerComponent {
403
403
  if (!this.isAdaptive) {
404
404
  return isPresent(this.popupRef);
405
405
  }
406
- return this.actionSheet && this.actionSheet.expanded;
406
+ return isTruthy(this.actionSheet?.expanded);
407
407
  }
408
408
  /**
409
409
  * Indicates whether the component or its popup content is focused.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1679040031,
13
- version: '11.4.1-develop.3',
12
+ publishDate: 1679328674,
13
+ version: '11.4.1-develop.5',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  name: '@progress/kendo-angular-dateinputs',
37
37
  productName: 'Kendo UI for Angular',
38
38
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
39
- publishDate: 1679040031,
40
- version: '11.4.1-develop.3',
39
+ publishDate: 1679328674,
40
+ version: '11.4.1-develop.5',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -114,6 +114,10 @@ const currentFocusTarget = (blurArgs) => blurArgs.relatedTarget || document.acti
114
114
  * @hidden
115
115
  */
116
116
  const isPresent = (value) => value !== undefined && value !== null;
117
+ /**
118
+ * @hidden
119
+ */
120
+ const isTruthy = (value) => !!value;
117
121
  /**
118
122
  * @hidden
119
123
  *
@@ -13834,10 +13838,11 @@ class DateTimePickerComponent {
13834
13838
  * Indicates whether the component is currently open. That is when the popup or actionSheet is open.
13835
13839
  */
13836
13840
  get isOpen() {
13841
+ var _a;
13837
13842
  if (!this.isAdaptive) {
13838
13843
  return isPresent(this.popupRef);
13839
13844
  }
13840
- return this.actionSheet && this.actionSheet.expanded;
13845
+ return isTruthy((_a = this.actionSheet) === null || _a === void 0 ? void 0 : _a.expanded);
13841
13846
  }
13842
13847
  /**
13843
13848
  * Indicates whether the component or its popup content is focused.
@@ -36,8 +36,8 @@ const packageMetadata = {
36
36
  name: '@progress/kendo-angular-dateinputs',
37
37
  productName: 'Kendo UI for Angular',
38
38
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
39
- publishDate: 1679040031,
40
- version: '11.4.1-develop.3',
39
+ publishDate: 1679328674,
40
+ version: '11.4.1-develop.5',
41
41
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
42
42
  };
43
43
 
@@ -101,6 +101,10 @@ const currentFocusTarget = (blurArgs) => blurArgs.relatedTarget || document.acti
101
101
  * @hidden
102
102
  */
103
103
  const isPresent = (value) => value !== undefined && value !== null;
104
+ /**
105
+ * @hidden
106
+ */
107
+ const isTruthy = (value) => !!value;
104
108
  /**
105
109
  * @hidden
106
110
  *
@@ -13819,7 +13823,7 @@ class DateTimePickerComponent {
13819
13823
  if (!this.isAdaptive) {
13820
13824
  return isPresent(this.popupRef);
13821
13825
  }
13822
- return this.actionSheet && this.actionSheet.expanded;
13826
+ return isTruthy(this.actionSheet?.expanded);
13823
13827
  }
13824
13828
  /**
13825
13829
  * Indicates whether the component or its popup content is focused.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "11.4.1-develop.3",
3
+ "version": "11.4.1-develop.5",
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",
@@ -33,20 +33,20 @@
33
33
  "@angular/core": "13 - 15",
34
34
  "@angular/platform-browser": "13 - 15",
35
35
  "@progress/kendo-licensing": "^1.0.2",
36
- "@progress/kendo-angular-common": "11.4.1-develop.3",
37
- "@progress/kendo-angular-intl": "11.4.1-develop.3",
38
- "@progress/kendo-angular-l10n": "11.4.1-develop.3",
39
- "@progress/kendo-angular-icons": "11.4.1-develop.3",
40
- "@progress/kendo-angular-popup": "11.4.1-develop.3",
41
- "@progress/kendo-angular-navigation": "11.4.1-develop.3",
36
+ "@progress/kendo-angular-common": "11.4.1-develop.5",
37
+ "@progress/kendo-angular-intl": "11.4.1-develop.5",
38
+ "@progress/kendo-angular-l10n": "11.4.1-develop.5",
39
+ "@progress/kendo-angular-icons": "11.4.1-develop.5",
40
+ "@progress/kendo-angular-popup": "11.4.1-develop.5",
41
+ "@progress/kendo-angular-navigation": "11.4.1-develop.5",
42
42
  "rxjs": "^6.5.3 || ^7.0.0",
43
- "@progress/kendo-angular-buttons": "11.4.1-develop.3",
44
- "@progress/kendo-angular-inputs": "11.4.1-develop.3",
45
- "@progress/kendo-angular-label": "11.4.1-develop.3"
43
+ "@progress/kendo-angular-buttons": "11.4.1-develop.5",
44
+ "@progress/kendo-angular-inputs": "11.4.1-develop.5",
45
+ "@progress/kendo-angular-label": "11.4.1-develop.5"
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "^2.3.1",
49
- "@progress/kendo-angular-schematics": "11.4.1-develop.3",
49
+ "@progress/kendo-angular-schematics": "11.4.1-develop.5",
50
50
  "@progress/kendo-common": "^0.2.0",
51
51
  "@progress/kendo-date-math": "^1.1.0"
52
52
  },