@progress/kendo-angular-common 22.1.0-develop.16 → 22.1.0-develop.17
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.
|
@@ -3,3 +3,4 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export declare const isFocusable: (element: any) => boolean;
|
|
6
|
+
export declare const hasFocusableParent: (element: HTMLElement, container?: HTMLElement) => boolean;
|
package/dom-queries.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { findFocusable } from './dom-queries/find-focusable';
|
|
|
11
11
|
export { hasClasses } from './dom-queries/has-classes';
|
|
12
12
|
export { isFocusableWithTabKey } from './dom-queries/is-focusable-with-tab-key';
|
|
13
13
|
export { isFocusable } from './dom-queries/is-focusable';
|
|
14
|
+
export { hasFocusableParent } from './dom-queries/is-focusable';
|
|
14
15
|
export { isVisible } from './dom-queries/is-visible';
|
|
15
16
|
export { matchesClasses } from './dom-queries/matches-classes';
|
|
16
17
|
export { matchesNodeName } from './dom-queries/matches-node-name';
|
|
@@ -357,6 +357,18 @@ const isFocusable = (element) => {
|
|
|
357
357
|
const focusable = !element.disabled && focusableRegex.test(tagName);
|
|
358
358
|
return focusable || hasTabIndex;
|
|
359
359
|
};
|
|
360
|
+
const hasFocusableParent = (element, container) => {
|
|
361
|
+
let currentElement = element;
|
|
362
|
+
let hasFocusableParent = false;
|
|
363
|
+
while (currentElement && currentElement !== container) {
|
|
364
|
+
if (isFocusable(currentElement)) {
|
|
365
|
+
hasFocusableParent = true;
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
currentElement = currentElement.parentElement;
|
|
369
|
+
}
|
|
370
|
+
return hasFocusableParent;
|
|
371
|
+
};
|
|
360
372
|
|
|
361
373
|
const isVisible = (element) => {
|
|
362
374
|
const rect = element.getBoundingClientRect();
|
|
@@ -2028,5 +2040,5 @@ const replaceMessagePlaceholder = (message, name, value) => (message ?? '').repl
|
|
|
2028
2040
|
* Generated bundle index. Do not edit.
|
|
2029
2041
|
*/
|
|
2030
2042
|
|
|
2031
|
-
export { DraggableDirective, EventsOutsideAngularDirective, KENDO_ADORNMENTS, KENDO_COMMON, KENDO_DRAGGABLE, KENDO_EVENTS, KENDO_RESIZESENSOR, KENDO_TEMPLATE_CONTEXT, KENDO_TOGGLEBUTTONTABSTOP, KENDO_WATERMARK, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, TemplateContextDirective, ToggleButtonTabStopDirective, WatermarkOverlayComponent, anyChanged, applyAttributes, areObjectsEqual, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, firefoxMaxHeight, focusableSelector, getLicenseMessage, getter, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isSet, isString, isVisible, matchesClasses, matchesNodeName, normalizeKeys, parseAttributes, parseCSSClassNames, processCssValue, removeHTMLAttributes, replaceMessagePlaceholder, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, setter, shouldShowValidationUI, splitStringToArray };
|
|
2043
|
+
export { DraggableDirective, EventsOutsideAngularDirective, KENDO_ADORNMENTS, KENDO_COMMON, KENDO_DRAGGABLE, KENDO_EVENTS, KENDO_RESIZESENSOR, KENDO_TEMPLATE_CONTEXT, KENDO_TOGGLEBUTTONTABSTOP, KENDO_WATERMARK, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, TemplateContextDirective, ToggleButtonTabStopDirective, WatermarkOverlayComponent, anyChanged, applyAttributes, areObjectsEqual, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, firefoxMaxHeight, focusableSelector, getLicenseMessage, getter, guid, hasClasses, hasFocusableParent, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isSet, isString, isVisible, matchesClasses, matchesNodeName, normalizeKeys, parseAttributes, parseCSSClassNames, processCssValue, removeHTMLAttributes, replaceMessagePlaceholder, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, setter, shouldShowValidationUI, splitStringToArray };
|
|
2032
2044
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "22.1.0-develop.
|
|
3
|
+
"version": "22.1.0-develop.17",
|
|
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": "22.1.0-develop.
|
|
26
|
+
"@progress/kendo-angular-schematics": "22.1.0-develop.17"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|