@progress/kendo-angular-buttons 7.0.5-dev.202203211505 → 7.0.6-dev.202203280558

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.
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-buttons',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1647875044,
12
+ publishDate: 1648447016,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -136,7 +136,7 @@ let ButtonDirective = class ButtonDirective {
136
136
  */
137
137
  set disabled(disabled) {
138
138
  //Required, because in FF focused buttons are not blurred on disabled
139
- if (isFirefox(navigator.userAgent) && disabled) {
139
+ if (disabled && isDocumentAvailable() && isFirefox(navigator.userAgent)) {
140
140
  this.blur();
141
141
  }
142
142
  this.isDisabled = disabled;
@@ -400,8 +400,10 @@ let ButtonDirective = class ButtonDirective {
400
400
  }
401
401
  addImgIcon(imageUrl) {
402
402
  let renderer = this.renderer;
403
- this.iconSpanNode = renderer.createElement('span');
404
- renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
403
+ if (!this.iconSpanNode) {
404
+ this.iconSpanNode = renderer.createElement('span');
405
+ renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
406
+ }
405
407
  if (this.imageNode) {
406
408
  renderer.setProperty(this.imageNode, 'src', imageUrl);
407
409
  }
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-buttons',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1647875044,
12
+ publishDate: 1648447016,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -5,7 +5,7 @@
5
5
  import { __decorate, __metadata, __param } from 'tslib';
6
6
  import { Injectable, EventEmitter, Input, Output, HostBinding, HostListener, Directive, Optional, ElementRef, Renderer2, NgZone, isDevMode, ContentChildren, QueryList, Component, NgModule, TemplateRef, ViewContainerRef, InjectionToken, Inject, ContentChild, ViewChild, ChangeDetectorRef, forwardRef } from '@angular/core';
7
7
  import { Subject, fromEvent, merge, Subscription } from 'rxjs';
8
- import { Keys, isChanged, isDocumentAvailable, hasObservers, guid, EventsModule } from '@progress/kendo-angular-common';
8
+ import { isDocumentAvailable, Keys, isChanged, hasObservers, guid, EventsModule } from '@progress/kendo-angular-common';
9
9
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
@@ -40,7 +40,7 @@ const packageMetadata = {
40
40
  name: '@progress/kendo-angular-buttons',
41
41
  productName: 'Kendo UI for Angular',
42
42
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
43
- publishDate: 1647875044,
43
+ publishDate: 1648447016,
44
44
  version: '',
45
45
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
46
46
  };
@@ -272,7 +272,7 @@ let ButtonDirective = class ButtonDirective {
272
272
  */
273
273
  set disabled(disabled) {
274
274
  //Required, because in FF focused buttons are not blurred on disabled
275
- if (isFirefox(navigator.userAgent) && disabled) {
275
+ if (disabled && isDocumentAvailable() && isFirefox(navigator.userAgent)) {
276
276
  this.blur();
277
277
  }
278
278
  this.isDisabled = disabled;
@@ -536,8 +536,10 @@ let ButtonDirective = class ButtonDirective {
536
536
  }
537
537
  addImgIcon(imageUrl) {
538
538
  let renderer = this.renderer;
539
- this.iconSpanNode = renderer.createElement('span');
540
- renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
539
+ if (!this.iconSpanNode) {
540
+ this.iconSpanNode = renderer.createElement('span');
541
+ renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
542
+ }
541
543
  if (this.imageNode) {
542
544
  renderer.setProperty(this.imageNode, 'src', imageUrl);
543
545
  }
@@ -5,7 +5,7 @@
5
5
  import { __decorate, __metadata, __param, __extends } from 'tslib';
6
6
  import { Injectable, Input, Output, EventEmitter, HostBinding, HostListener, Directive, Optional, ElementRef, Renderer2, NgZone, isDevMode, ContentChildren, QueryList, Component, NgModule, TemplateRef, ViewContainerRef, InjectionToken, Inject, ContentChild, ViewChild, ChangeDetectorRef, forwardRef } from '@angular/core';
7
7
  import { Subject, fromEvent, merge, Subscription } from 'rxjs';
8
- import { Keys, isChanged, isDocumentAvailable, hasObservers, guid, EventsModule } from '@progress/kendo-angular-common';
8
+ import { isDocumentAvailable, Keys, isChanged, hasObservers, guid, EventsModule } from '@progress/kendo-angular-common';
9
9
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
@@ -38,7 +38,7 @@ var packageMetadata = {
38
38
  name: '@progress/kendo-angular-buttons',
39
39
  productName: 'Kendo UI for Angular',
40
40
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
41
- publishDate: 1647875044,
41
+ publishDate: 1648447016,
42
42
  version: '',
43
43
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
44
44
  };
@@ -306,7 +306,7 @@ var ButtonDirective = /** @class */ (function () {
306
306
  */
307
307
  set: function (disabled) {
308
308
  //Required, because in FF focused buttons are not blurred on disabled
309
- if (isFirefox(navigator.userAgent) && disabled) {
309
+ if (disabled && isDocumentAvailable() && isFirefox(navigator.userAgent)) {
310
310
  this.blur();
311
311
  }
312
312
  this.isDisabled = disabled;
@@ -629,8 +629,10 @@ var ButtonDirective = /** @class */ (function () {
629
629
  };
630
630
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
631
631
  var renderer = this.renderer;
632
- this.iconSpanNode = renderer.createElement('span');
633
- renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
632
+ if (!this.iconSpanNode) {
633
+ this.iconSpanNode = renderer.createElement('span');
634
+ renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
635
+ }
634
636
  if (this.imageNode) {
635
637
  renderer.setProperty(this.imageNode, 'src', imageUrl);
636
638
  }
@@ -172,7 +172,7 @@ var ButtonDirective = /** @class */ (function () {
172
172
  */
173
173
  set: function (disabled) {
174
174
  //Required, because in FF focused buttons are not blurred on disabled
175
- if (util_1.isFirefox(navigator.userAgent) && disabled) {
175
+ if (disabled && kendo_angular_common_1.isDocumentAvailable() && util_1.isFirefox(navigator.userAgent)) {
176
176
  this.blur();
177
177
  }
178
178
  this.isDisabled = disabled;
@@ -495,8 +495,10 @@ var ButtonDirective = /** @class */ (function () {
495
495
  };
496
496
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
497
497
  var renderer = this.renderer;
498
- this.iconSpanNode = renderer.createElement('span');
499
- renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
498
+ if (!this.iconSpanNode) {
499
+ this.iconSpanNode = renderer.createElement('span');
500
+ renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
501
+ }
500
502
  if (this.imageNode) {
501
503
  renderer.setProperty(this.imageNode, 'src', imageUrl);
502
504
  }
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-buttons',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1647875044,
14
+ publishDate: 1648447016,
15
15
  version: '',
16
16
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
17
17
  };