@progress/kendo-angular-common 22.1.0-develop.9 → 23.0.0-develop.10

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.
@@ -5,7 +5,7 @@
5
5
  import { TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies the adornments in the prefix container of the [Inputs](slug:adornments_textbox#toc-prefix-adornments) and [DropDowns](slug:adornments_multiselect#toc-prefix-adornments).
8
+ * Specifies the adornments in the prefix container of the [Inputs](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#prefix-adornments) and [DropDowns](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/adornments#prefix-adornments).
9
9
  * ```html
10
10
  * <kendo-textbox>
11
11
  * <ng-template kendoPrefixTemplate>
@@ -5,7 +5,7 @@
5
5
  import { SeparatorOrientation } from './separator-orientation';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies a separator in the content of the [Inputs]({% slug adornments_textbox %}#toc-separator) and [DropDowns]({% slug adornments_multiselect %}#toc-separator).
8
+ * Specifies a separator in the content of the [Inputs](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#separator) and [DropDowns](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/adornments#separator).
9
9
  * @example
10
10
  * ```ts-no-run
11
11
  * _@Component({
@@ -25,7 +25,7 @@ import * as i0 from "@angular/core";
25
25
  */
26
26
  export declare class SeparatorComponent {
27
27
  /**
28
- * Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent).
28
+ * Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textareacomponent).
29
29
  *
30
30
  * @default 'vertical'
31
31
  */
@@ -9,8 +9,8 @@ import * as i0 from "@angular/core";
9
9
  *
10
10
  * Use the `kendoSuffixTemplate` directive to add custom content to the suffix container.
11
11
  *
12
- * * See [Inputs Suffix Adornments](slug:adornments_textbox#toc-suffix-adornments)
13
- * * See [DropDowns Suffix Adornments](slug:adornments_multiselect#toc-suffix-adornments)
12
+ * * See [Inputs Suffix Adornments](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#suffix-adornments)
13
+ * * See [DropDowns Suffix Adornments](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/adornments#suffix-adornments)
14
14
  *
15
15
  * @example
16
16
  * ```html
@@ -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();
@@ -1452,7 +1464,7 @@ function getLicenseMessage(meta) {
1452
1464
  }
1453
1465
 
1454
1466
  /**
1455
- * Specifies the adornments in the prefix container of the [Inputs](slug:adornments_textbox#toc-prefix-adornments) and [DropDowns](slug:adornments_multiselect#toc-prefix-adornments).
1467
+ * Specifies the adornments in the prefix container of the [Inputs](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#prefix-adornments) and [DropDowns](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/adornments#prefix-adornments).
1456
1468
  * ```html
1457
1469
  * <kendo-textbox>
1458
1470
  * <ng-template kendoPrefixTemplate>
@@ -1504,8 +1516,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
1504
1516
  *
1505
1517
  * Use the `kendoSuffixTemplate` directive to add custom content to the suffix container.
1506
1518
  *
1507
- * * See [Inputs Suffix Adornments](slug:adornments_textbox#toc-suffix-adornments)
1508
- * * See [DropDowns Suffix Adornments](slug:adornments_multiselect#toc-suffix-adornments)
1519
+ * * See [Inputs Suffix Adornments](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#suffix-adornments)
1520
+ * * See [DropDowns Suffix Adornments](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/adornments#suffix-adornments)
1509
1521
  *
1510
1522
  * @example
1511
1523
  * ```html
@@ -1554,7 +1566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
1554
1566
  }] } });
1555
1567
 
1556
1568
  /**
1557
- * Specifies a separator in the content of the [Inputs]({% slug adornments_textbox %}#toc-separator) and [DropDowns]({% slug adornments_multiselect %}#toc-separator).
1569
+ * Specifies a separator in the content of the [Inputs](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#separator) and [DropDowns](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/adornments#separator).
1558
1570
  * @example
1559
1571
  * ```ts-no-run
1560
1572
  * _@Component({
@@ -1574,7 +1586,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
1574
1586
  */
1575
1587
  class SeparatorComponent {
1576
1588
  /**
1577
- * Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent).
1589
+ * Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textareacomponent).
1578
1590
  *
1579
1591
  * @default 'vertical'
1580
1592
  */
@@ -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.9",
3
+ "version": "23.0.0-develop.10",
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.9"
26
+ "@progress/kendo-angular-schematics": "23.0.0-develop.10"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"