@progress/kendo-angular-buttons 7.0.0-dev.202201180832 → 7.0.0-dev.202201181837
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/dist/cdn/js/kendo-angular-buttons.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/button/button.directive.js +6 -12
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/button/button.directive.d.ts +0 -1
- package/dist/es2015/button/button.directive.js +6 -8
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +6 -8
- package/dist/fesm5/index.js +6 -12
- package/dist/npm/button/button.directive.js +5 -11
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-buttons.js +1 -1
- package/package.json +2 -1
|
@@ -9,7 +9,7 @@ import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/ke
|
|
|
9
9
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { packageMetadata } from '../package-metadata';
|
|
12
|
-
import { getStylingClasses, getThemeColorClasses } from '../util';
|
|
12
|
+
import { getStylingClasses, getThemeColorClasses, isPresent } from '../util';
|
|
13
13
|
var SPAN_TAG_NAME = 'SPAN';
|
|
14
14
|
/**
|
|
15
15
|
* Represents the Kendo UI Button component for Angular.
|
|
@@ -491,15 +491,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
491
491
|
return false;
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
-
Object.defineProperty(ButtonDirective.prototype, "text", {
|
|
495
|
-
get: function () {
|
|
496
|
-
if (isDocumentAvailable()) {
|
|
497
|
-
return this.element.innerHTML.trim();
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
enumerable: true,
|
|
501
|
-
configurable: true
|
|
502
|
-
});
|
|
503
494
|
ButtonDirective.prototype.addImgIcon = function (imageUrl) {
|
|
504
495
|
var renderer = this.renderer;
|
|
505
496
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -529,8 +520,11 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
529
520
|
}
|
|
530
521
|
};
|
|
531
522
|
ButtonDirective.prototype.addTextSpan = function () {
|
|
532
|
-
if (isDocumentAvailable() && this.hasText()) {
|
|
533
|
-
|
|
523
|
+
if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
|
|
524
|
+
var span = this.renderer.createElement('span');
|
|
525
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
526
|
+
span.append.apply(span, Array.from(this.element.childNodes));
|
|
527
|
+
this.element.append(span);
|
|
534
528
|
}
|
|
535
529
|
};
|
|
536
530
|
ButtonDirective.prototype.prependChild = function (node) {
|
|
@@ -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:
|
|
12
|
+
publishDate: 1642530954,
|
|
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
|
};
|
|
@@ -202,7 +202,6 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
|
|
|
202
202
|
setSelected(value: boolean): void;
|
|
203
203
|
private toggleAriaPressed;
|
|
204
204
|
private hasText;
|
|
205
|
-
private readonly text;
|
|
206
205
|
private addImgIcon;
|
|
207
206
|
private addIcon;
|
|
208
207
|
private addTextSpan;
|
|
@@ -9,7 +9,7 @@ import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/ke
|
|
|
9
9
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { packageMetadata } from '../package-metadata';
|
|
12
|
-
import { getStylingClasses, getThemeColorClasses } from '../util';
|
|
12
|
+
import { getStylingClasses, getThemeColorClasses, isPresent } from '../util';
|
|
13
13
|
const SPAN_TAG_NAME = 'SPAN';
|
|
14
14
|
/**
|
|
15
15
|
* Represents the Kendo UI Button component for Angular.
|
|
@@ -398,11 +398,6 @@ let ButtonDirective = class ButtonDirective {
|
|
|
398
398
|
return false;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
get text() {
|
|
402
|
-
if (isDocumentAvailable()) {
|
|
403
|
-
return this.element.innerHTML.trim();
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
401
|
addImgIcon(imageUrl) {
|
|
407
402
|
let renderer = this.renderer;
|
|
408
403
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -432,8 +427,11 @@ let ButtonDirective = class ButtonDirective {
|
|
|
432
427
|
}
|
|
433
428
|
}
|
|
434
429
|
addTextSpan() {
|
|
435
|
-
if (isDocumentAvailable() && this.hasText()) {
|
|
436
|
-
|
|
430
|
+
if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
|
|
431
|
+
const span = this.renderer.createElement('span');
|
|
432
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
433
|
+
span.append(...Array.from(this.element.childNodes));
|
|
434
|
+
this.element.append(span);
|
|
437
435
|
}
|
|
438
436
|
}
|
|
439
437
|
prependChild(node) {
|
|
@@ -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:
|
|
12
|
+
publishDate: 1642530954,
|
|
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
|
};
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const packageMetadata = {
|
|
|
39
39
|
name: '@progress/kendo-angular-buttons',
|
|
40
40
|
productName: 'Kendo UI for Angular',
|
|
41
41
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
42
|
-
publishDate:
|
|
42
|
+
publishDate: 1642530954,
|
|
43
43
|
version: '',
|
|
44
44
|
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'
|
|
45
45
|
};
|
|
@@ -524,11 +524,6 @@ let ButtonDirective = class ButtonDirective {
|
|
|
524
524
|
return false;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
get text() {
|
|
528
|
-
if (isDocumentAvailable()) {
|
|
529
|
-
return this.element.innerHTML.trim();
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
527
|
addImgIcon(imageUrl) {
|
|
533
528
|
let renderer = this.renderer;
|
|
534
529
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -558,8 +553,11 @@ let ButtonDirective = class ButtonDirective {
|
|
|
558
553
|
}
|
|
559
554
|
}
|
|
560
555
|
addTextSpan() {
|
|
561
|
-
if (isDocumentAvailable() && this.hasText()) {
|
|
562
|
-
|
|
556
|
+
if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
|
|
557
|
+
const span = this.renderer.createElement('span');
|
|
558
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
559
|
+
span.append(...Array.from(this.element.childNodes));
|
|
560
|
+
this.element.append(span);
|
|
563
561
|
}
|
|
564
562
|
}
|
|
565
563
|
prependChild(node) {
|
package/dist/fesm5/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var packageMetadata = {
|
|
|
37
37
|
name: '@progress/kendo-angular-buttons',
|
|
38
38
|
productName: 'Kendo UI for Angular',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
40
|
-
publishDate:
|
|
40
|
+
publishDate: 1642530954,
|
|
41
41
|
version: '',
|
|
42
42
|
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'
|
|
43
43
|
};
|
|
@@ -617,15 +617,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
617
617
|
return false;
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
|
-
Object.defineProperty(ButtonDirective.prototype, "text", {
|
|
621
|
-
get: function () {
|
|
622
|
-
if (isDocumentAvailable()) {
|
|
623
|
-
return this.element.innerHTML.trim();
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
enumerable: true,
|
|
627
|
-
configurable: true
|
|
628
|
-
});
|
|
629
620
|
ButtonDirective.prototype.addImgIcon = function (imageUrl) {
|
|
630
621
|
var renderer = this.renderer;
|
|
631
622
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -655,8 +646,11 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
655
646
|
}
|
|
656
647
|
};
|
|
657
648
|
ButtonDirective.prototype.addTextSpan = function () {
|
|
658
|
-
if (isDocumentAvailable() && this.hasText()) {
|
|
659
|
-
|
|
649
|
+
if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
|
|
650
|
+
var span = this.renderer.createElement('span');
|
|
651
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
652
|
+
span.append.apply(span, Array.from(this.element.childNodes));
|
|
653
|
+
this.element.append(span);
|
|
660
654
|
}
|
|
661
655
|
};
|
|
662
656
|
ButtonDirective.prototype.prependChild = function (node) {
|
|
@@ -493,15 +493,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
493
493
|
return false;
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
Object.defineProperty(ButtonDirective.prototype, "text", {
|
|
497
|
-
get: function () {
|
|
498
|
-
if (kendo_angular_common_1.isDocumentAvailable()) {
|
|
499
|
-
return this.element.innerHTML.trim();
|
|
500
|
-
}
|
|
501
|
-
},
|
|
502
|
-
enumerable: true,
|
|
503
|
-
configurable: true
|
|
504
|
-
});
|
|
505
496
|
ButtonDirective.prototype.addImgIcon = function (imageUrl) {
|
|
506
497
|
var renderer = this.renderer;
|
|
507
498
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -531,8 +522,11 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
531
522
|
}
|
|
532
523
|
};
|
|
533
524
|
ButtonDirective.prototype.addTextSpan = function () {
|
|
534
|
-
if (kendo_angular_common_1.isDocumentAvailable() && this.hasText()) {
|
|
535
|
-
|
|
525
|
+
if (kendo_angular_common_1.isDocumentAvailable() && this.hasText() && util_1.isPresent(this.element.append)) {
|
|
526
|
+
var span = this.renderer.createElement('span');
|
|
527
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
528
|
+
span.append.apply(span, Array.from(this.element.childNodes));
|
|
529
|
+
this.element.append(span);
|
|
536
530
|
}
|
|
537
531
|
};
|
|
538
532
|
ButtonDirective.prototype.prependChild = function (node) {
|
|
@@ -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:
|
|
14
|
+
publishDate: 1642530954,
|
|
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
|
};
|