@progress/kendo-angular-common 20.1.0 → 20.1.1-develop.1

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.
@@ -20,7 +20,7 @@ export class EventsOutsideAngularDirective {
20
20
  this.renderer = renderer;
21
21
  }
22
22
  ngOnInit() {
23
- if (!this.element || !this.element.nativeElement) {
23
+ if (!this.element?.nativeElement) {
24
24
  return;
25
25
  }
26
26
  const events = this.events;
@@ -20,7 +20,7 @@ export const isSafari = (userAgent) => {
20
20
  export const isFirefox = (userAgent) => {
21
21
  const desktopBrowser = detectDesktopBrowser(userAgent);
22
22
  const mobileOS = detectMobileOS(userAgent);
23
- return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
23
+ return desktopBrowser?.mozilla || mobileOS?.browser === 'firefox';
24
24
  };
25
25
  /**
26
26
  * @hidden
@@ -40,7 +40,7 @@ export class WatermarkOverlayComponent {
40
40
  this.isOpen = false;
41
41
  }
42
42
  get isBannerRendered() {
43
- return isDocumentAvailable() && this.banner && this.banner.nativeElement;
43
+ return isDocumentAvailable() && !!this.banner?.nativeElement;
44
44
  }
45
45
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
46
46
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", inputs: { licenseMessage: "licenseMessage" }, host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
@@ -76,7 +76,7 @@ const isSafari = (userAgent) => {
76
76
  const isFirefox = (userAgent) => {
77
77
  const desktopBrowser = detectDesktopBrowser(userAgent);
78
78
  const mobileOS = detectMobileOS(userAgent);
79
- return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
79
+ return desktopBrowser?.mozilla || mobileOS?.browser === 'firefox';
80
80
  };
81
81
  /**
82
82
  * @hidden
@@ -435,7 +435,7 @@ class EventsOutsideAngularDirective {
435
435
  this.renderer = renderer;
436
436
  }
437
437
  ngOnInit() {
438
- if (!this.element || !this.element.nativeElement) {
438
+ if (!this.element?.nativeElement) {
439
439
  return;
440
440
  }
441
441
  const events = this.events;
@@ -1056,7 +1056,7 @@ class WatermarkOverlayComponent {
1056
1056
  this.isOpen = false;
1057
1057
  }
1058
1058
  get isBannerRendered() {
1059
- return isDocumentAvailable() && this.banner && this.banner.nativeElement;
1059
+ return isDocumentAvailable() && !!this.banner?.nativeElement;
1060
1060
  }
1061
1061
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1062
1062
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", inputs: { licenseMessage: "licenseMessage" }, host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-common",
3
- "version": "20.1.0",
3
+ "version": "20.1.1-develop.1",
4
4
  "description": "Kendo UI for Angular - Utility Package",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,7 +23,7 @@
23
23
  "@progress/kendo-common": "^1.0.1",
24
24
  "@progress/kendo-draggable": "^3.0.2",
25
25
  "tslib": "^2.3.1",
26
- "@progress/kendo-angular-schematics": "20.1.0"
26
+ "@progress/kendo-angular-schematics": "20.1.1-develop.1"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"