@progress/kendo-angular-common 20.1.0-develop.9 → 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.
- package/esm2022/events/events-outside-angular.directive.mjs +1 -1
- package/esm2022/toggle-button-tab-stop/toggle-button-tab-stop.directive.mjs +2 -2
- package/esm2022/utils/detect-browser.mjs +1 -1
- package/esm2022/watermark/watermark.component.mjs +1 -1
- package/fesm2022/progress-kendo-angular-common.mjs +5 -5
- package/package.json +2 -2
|
@@ -121,9 +121,9 @@ export class ToggleButtonTabStopDirective {
|
|
|
121
121
|
const el = this.hostEl.nativeElement;
|
|
122
122
|
const tabindex = el.querySelector('button:not([tabindex^="-"]), input:not([tabindex^="-"])')?.getAttribute('tabindex');
|
|
123
123
|
this.button = el.querySelector('.k-input-button, .k-split-button-arrow');
|
|
124
|
+
this.button && this.renderer.removeAttribute(this.button, 'role');
|
|
124
125
|
this.button && this.renderer.setAttribute(this.button, 'tabindex', tabindex);
|
|
125
126
|
this.button && this.renderer.setAttribute(this.button, 'aria-label', this.toggleButtonAriaLabel);
|
|
126
|
-
this.button && this.renderer.removeAttribute(this.button, 'aria-hidden');
|
|
127
127
|
if (!this.observer) {
|
|
128
128
|
this.initializeObserver(el);
|
|
129
129
|
}
|
|
@@ -131,8 +131,8 @@ export class ToggleButtonTabStopDirective {
|
|
|
131
131
|
this.addListeners();
|
|
132
132
|
}
|
|
133
133
|
deactivateButton() {
|
|
134
|
+
this.button && this.renderer.setAttribute(this.button, 'role', 'presentation');
|
|
134
135
|
this.button && this.renderer.setAttribute(this.button, 'tabindex', '-1');
|
|
135
|
-
this.button && this.renderer.setAttribute(this.button, 'aria-hidden', 'true');
|
|
136
136
|
this.button && this.renderer.removeAttribute(this.button, 'aria-label');
|
|
137
137
|
this.removeListeners();
|
|
138
138
|
this.observer && this.observer.disconnect();
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: `
|
|
@@ -1481,9 +1481,9 @@ class ToggleButtonTabStopDirective {
|
|
|
1481
1481
|
const el = this.hostEl.nativeElement;
|
|
1482
1482
|
const tabindex = el.querySelector('button:not([tabindex^="-"]), input:not([tabindex^="-"])')?.getAttribute('tabindex');
|
|
1483
1483
|
this.button = el.querySelector('.k-input-button, .k-split-button-arrow');
|
|
1484
|
+
this.button && this.renderer.removeAttribute(this.button, 'role');
|
|
1484
1485
|
this.button && this.renderer.setAttribute(this.button, 'tabindex', tabindex);
|
|
1485
1486
|
this.button && this.renderer.setAttribute(this.button, 'aria-label', this.toggleButtonAriaLabel);
|
|
1486
|
-
this.button && this.renderer.removeAttribute(this.button, 'aria-hidden');
|
|
1487
1487
|
if (!this.observer) {
|
|
1488
1488
|
this.initializeObserver(el);
|
|
1489
1489
|
}
|
|
@@ -1491,8 +1491,8 @@ class ToggleButtonTabStopDirective {
|
|
|
1491
1491
|
this.addListeners();
|
|
1492
1492
|
}
|
|
1493
1493
|
deactivateButton() {
|
|
1494
|
+
this.button && this.renderer.setAttribute(this.button, 'role', 'presentation');
|
|
1494
1495
|
this.button && this.renderer.setAttribute(this.button, 'tabindex', '-1');
|
|
1495
|
-
this.button && this.renderer.setAttribute(this.button, 'aria-hidden', 'true');
|
|
1496
1496
|
this.button && this.renderer.removeAttribute(this.button, 'aria-label');
|
|
1497
1497
|
this.removeListeners();
|
|
1498
1498
|
this.observer && this.observer.disconnect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "20.1.
|
|
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.
|
|
26
|
+
"@progress/kendo-angular-schematics": "20.1.1-develop.1"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|