@progress/kendo-vue-common 8.0.3-develop.4 → 8.1.0-develop.2
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/constants/main.d.ts +12 -0
- package/constants/main.js +1 -1
- package/constants/main.mjs +23 -4
- package/dist/cdn/js/kendo-vue-common.js +1 -1
- package/index.d.mts +3 -2
- package/index.d.ts +3 -2
- package/index.js +1 -1
- package/index.mjs +167 -158
- package/navigation.d.ts +0 -4
- package/navigation.js +1 -1
- package/navigation.mjs +4 -20
- package/package.json +1 -1
- package/refs.d.ts +4 -0
- package/refs.js +1 -1
- package/refs.mjs +13 -7
- package/trappedFocus.d.ts +44 -0
- package/trappedFocus.js +8 -0
- package/trappedFocus.mjs +63 -0
- package/validate-package.d.ts +11 -1
- package/validate-package.js +2 -2
- package/validate-package.mjs +14 -17
- package/watermark/WatermarkOverlay.d.ts +16 -31
- package/watermark/WatermarkOverlay.js +1 -1
- package/watermark/WatermarkOverlay.mjs +340 -86
package/index.mjs
CHANGED
|
@@ -8,166 +8,175 @@
|
|
|
8
8
|
import { classNames as r } from "./classNames.mjs";
|
|
9
9
|
import { guid as a } from "./guid.mjs";
|
|
10
10
|
import { Keys as p } from "./keys.mjs";
|
|
11
|
-
import { canUseDOM as
|
|
12
|
-
import {
|
|
13
|
-
import { firstFocusableChild as
|
|
14
|
-
import { Draggable as
|
|
15
|
-
import { clone as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
11
|
+
import { canUseDOM as m } from "./canUseDOM.mjs";
|
|
12
|
+
import { getComponentElementRef as f, getRef as x, setRef as u } from "./refs.mjs";
|
|
13
|
+
import { firstFocusableChild as c, focusContainer as d, focusFirstFocusableChild as g, focusLastFocusableChild as E, lastFocusableChild as b } from "./focus.mjs";
|
|
14
|
+
import { Draggable as I } from "./Draggable.mjs";
|
|
15
|
+
import { clone as T, cloneArray as B, cloneDate as S, cloneObject as A, cloneValue as C } from "./clone.mjs";
|
|
16
|
+
import { applyTrappedFocus as h, disableNavigatableContainer as L, enableNavigatableContainer as v, focusableChildren as R, keepFocusInContainer as F } from "./trappedFocus.mjs";
|
|
17
|
+
import { isObject as k } from "./isObject.mjs";
|
|
18
|
+
import { noop as _ } from "./noop.mjs";
|
|
19
|
+
import { getter as U } from "./getter.mjs";
|
|
20
|
+
import { setter as G } from "./setter.mjs";
|
|
21
|
+
import { getListeners as j, hasListener as K } from "./listeners.mjs";
|
|
22
|
+
import { getTemplate as H, templateDefinition as z, templateRendering as X } from "./templateRendering.mjs";
|
|
23
|
+
import { getTabIndex as J } from "./getTabIndex.mjs";
|
|
24
|
+
import { getDefaultSlots as Y } from "./defaultSlots.mjs";
|
|
25
|
+
import { getDir as $, isRtl as ee } from "./isRtl.mjs";
|
|
26
|
+
import { getLicenseMessage as re, shouldShowValidationUI as te, validatePackage as ae } from "./validate-package.mjs";
|
|
27
|
+
import { AdaptiveModeProvider as pe } from "./providers/AdaptiveModeProvider.mjs";
|
|
28
|
+
import { ADAPTIVE_MEDIUM_BREAKPOINT as me, ADAPTIVE_SMALL_BREAKPOINT as se, FIELD_REGEX as fe, FOCUSABLE_ELEMENTS as xe, FOCUSABLE_ELEMENTS_BASE as ue, TABBABLE_ELEMENTS as le } from "./constants/main.mjs";
|
|
29
|
+
import { kendoThemeMaps as de } from "./theme.mjs";
|
|
30
|
+
import { extendDataItem as Ee, getItemPath as be, getNestedValue as De, mapTree as Ie, mapTreeItem as Pe } from "./treeDataOperations.mjs";
|
|
31
|
+
import { BrowserSupportService as Be } from "./browser-support.service.mjs";
|
|
32
|
+
import { getScrollbarWidth as Ae, setScrollbarWidth as Ce } from "./scrollbarWidth.mjs";
|
|
33
|
+
import { hasRelativeStackingContext as he } from "./hasRelativeStackingContext.mjs";
|
|
34
|
+
import { Icon as ve } from "./icons/Icon.mjs";
|
|
35
|
+
import { FontIcon as Fe } from "./icons/FontIcon.mjs";
|
|
36
|
+
import { SvgIcon as ke } from "./icons/SvgIcon.mjs";
|
|
37
|
+
import { getIconName as _e } from "./icons/getIconName.mjs";
|
|
38
|
+
import { Navigation as Ue } from "./navigation.mjs";
|
|
39
|
+
import { getActiveElement as Ge, getInnerActiveElement as Ve } from "./getActiveElement.mjs";
|
|
40
|
+
import { WatermarkOverlay as Ke } from "./watermark/WatermarkOverlay.mjs";
|
|
41
|
+
import { RowHeightService as He } from "./rowHeightService.mjs";
|
|
42
|
+
import { actions as Xe, animationStyles as qe, base as Je, buttonPrefix as Qe, calendarPrefix as Ye, comboBoxPrefix as Ze, components as $e, containers as eo, cssUtils as oo, cursor as ro, dateInputs as to, ddbPrefix as ao, dimensions as io, directionMap as po, dropDownListPrefix as no, elements as mo, fillModeMap as so, forms as fo, grid as xo, gridPrefix as uo, gridRowReorder as lo, icon as co, inputPrefix as go, inputs as Eo, jsonTheme as bo, labels as Do, maskedPrefix as Io, orientationMap as Po, pickerPrefix as To, popup as Bo, radioPrefix as So, roundedMap as Ao, sizeMap as Co, states as Mo, themeColorMap as ho } from "./unstyled/json-classes.mjs";
|
|
43
|
+
import { radioButtonClasses as vo, radioGroupClasses as Ro, uInput as Fo, uMaskedTextBox as No, uRadioButton as ko, uRadioGroup as wo, uTextBox as _o } from "./unstyled/inputs.mjs";
|
|
44
|
+
import { uAnimation as Uo } from "./unstyled/animations.mjs";
|
|
45
|
+
import { uButton as Go, uButtonGroup as Vo, uDropDownButton as jo } from "./unstyled/buttons.mjs";
|
|
46
|
+
import { uCalendar as Wo, uDateInput as Ho, uDateTimePicker as zo, uTime as Xo, uTimePicker as qo } from "./unstyled/dateinputs.mjs";
|
|
47
|
+
import { uComboBox as Qo, uDropDownList as Yo, uDropDownsActionSheet as Zo, uDropDownsBase as $o } from "./unstyled/dropdowns.mjs";
|
|
48
|
+
import { uError as or, uFloatingLabel as rr, uHint as tr, uLabel as ar } from "./unstyled/labels.mjs";
|
|
49
|
+
import { uForm as pr } from "./unstyled/form.mjs";
|
|
50
|
+
import { uGrid as mr } from "./unstyled/grid.mjs";
|
|
51
|
+
import { uPopup as fr } from "./unstyled/popup.mjs";
|
|
52
|
+
import { uSvgIcon as ur } from "./unstyled/icons.mjs";
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
me as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
55
|
+
se as ADAPTIVE_SMALL_BREAKPOINT,
|
|
56
|
+
pe as AdaptiveModeProvider,
|
|
57
|
+
Be as BrowserSupportService,
|
|
58
|
+
I as Draggable,
|
|
59
|
+
fe as FIELD_REGEX,
|
|
60
|
+
xe as FOCUSABLE_ELEMENTS,
|
|
61
|
+
ue as FOCUSABLE_ELEMENTS_BASE,
|
|
62
|
+
Fe as FontIcon,
|
|
63
|
+
ve as Icon,
|
|
62
64
|
p as Keys,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
Ue as Navigation,
|
|
66
|
+
He as RowHeightService,
|
|
67
|
+
ke as SvgIcon,
|
|
68
|
+
le as TABBABLE_ELEMENTS,
|
|
69
|
+
Ke as WatermarkOverlay,
|
|
70
|
+
Xe as actions,
|
|
71
|
+
qe as animationStyles,
|
|
72
|
+
h as applyTrappedFocus,
|
|
73
|
+
Je as base,
|
|
74
|
+
Qe as buttonPrefix,
|
|
75
|
+
Ye as calendarPrefix,
|
|
76
|
+
m as canUseDOM,
|
|
73
77
|
r as classNames,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
j as
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
78
|
+
T as clone,
|
|
79
|
+
B as cloneArray,
|
|
80
|
+
S as cloneDate,
|
|
81
|
+
A as cloneObject,
|
|
82
|
+
C as cloneValue,
|
|
83
|
+
Ze as comboBoxPrefix,
|
|
84
|
+
$e as components,
|
|
85
|
+
eo as containers,
|
|
86
|
+
oo as cssUtils,
|
|
87
|
+
ro as cursor,
|
|
88
|
+
to as dateInputs,
|
|
89
|
+
ao as ddbPrefix,
|
|
90
|
+
io as dimensions,
|
|
91
|
+
po as directionMap,
|
|
92
|
+
L as disableNavigatableContainer,
|
|
93
|
+
no as dropDownListPrefix,
|
|
94
|
+
mo as elements,
|
|
95
|
+
v as enableNavigatableContainer,
|
|
96
|
+
Ee as extendDataItem,
|
|
97
|
+
so as fillModeMap,
|
|
98
|
+
c as firstFocusableChild,
|
|
99
|
+
d as focusContainer,
|
|
100
|
+
g as focusFirstFocusableChild,
|
|
101
|
+
E as focusLastFocusableChild,
|
|
102
|
+
R as focusableChildren,
|
|
103
|
+
fo as forms,
|
|
104
|
+
Ge as getActiveElement,
|
|
105
|
+
f as getComponentElementRef,
|
|
106
|
+
Y as getDefaultSlots,
|
|
107
|
+
$ as getDir,
|
|
108
|
+
_e as getIconName,
|
|
109
|
+
Ve as getInnerActiveElement,
|
|
110
|
+
be as getItemPath,
|
|
111
|
+
re as getLicenseMessage,
|
|
112
|
+
j as getListeners,
|
|
113
|
+
De as getNestedValue,
|
|
114
|
+
x as getRef,
|
|
115
|
+
Ae as getScrollbarWidth,
|
|
116
|
+
J as getTabIndex,
|
|
117
|
+
H as getTemplate,
|
|
118
|
+
U as getter,
|
|
119
|
+
xo as grid,
|
|
120
|
+
uo as gridPrefix,
|
|
121
|
+
lo as gridRowReorder,
|
|
114
122
|
a as guid,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
jo as
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
123
|
+
K as hasListener,
|
|
124
|
+
he as hasRelativeStackingContext,
|
|
125
|
+
co as icon,
|
|
126
|
+
go as inputPrefix,
|
|
127
|
+
Eo as inputs,
|
|
128
|
+
k as isObject,
|
|
129
|
+
ee as isRtl,
|
|
130
|
+
bo as jsonTheme,
|
|
131
|
+
F as keepFocusInContainer,
|
|
132
|
+
de as kendoThemeMaps,
|
|
133
|
+
Do as labels,
|
|
134
|
+
b as lastFocusableChild,
|
|
135
|
+
Ie as mapTree,
|
|
136
|
+
Pe as mapTreeItem,
|
|
137
|
+
Io as maskedPrefix,
|
|
138
|
+
_ as noop,
|
|
139
|
+
Po as orientationMap,
|
|
140
|
+
To as pickerPrefix,
|
|
141
|
+
Bo as popup,
|
|
142
|
+
vo as radioButtonClasses,
|
|
143
|
+
Ro as radioGroupClasses,
|
|
144
|
+
So as radioPrefix,
|
|
145
|
+
Ao as roundedMap,
|
|
146
|
+
u as setRef,
|
|
147
|
+
Ce as setScrollbarWidth,
|
|
148
|
+
G as setter,
|
|
149
|
+
te as shouldShowValidationUI,
|
|
150
|
+
Co as sizeMap,
|
|
151
|
+
Mo as states,
|
|
152
|
+
z as templateDefinition,
|
|
153
|
+
X as templateRendering,
|
|
154
|
+
ho as themeColorMap,
|
|
155
|
+
Uo as uAnimation,
|
|
156
|
+
Go as uButton,
|
|
157
|
+
Vo as uButtonGroup,
|
|
158
|
+
Wo as uCalendar,
|
|
159
|
+
Qo as uComboBox,
|
|
160
|
+
Ho as uDateInput,
|
|
161
|
+
zo as uDateTimePicker,
|
|
162
|
+
jo as uDropDownButton,
|
|
163
|
+
Yo as uDropDownList,
|
|
164
|
+
Zo as uDropDownsActionSheet,
|
|
165
|
+
$o as uDropDownsBase,
|
|
166
|
+
or as uError,
|
|
167
|
+
rr as uFloatingLabel,
|
|
168
|
+
pr as uForm,
|
|
169
|
+
mr as uGrid,
|
|
170
|
+
tr as uHint,
|
|
171
|
+
Fo as uInput,
|
|
172
|
+
ar as uLabel,
|
|
173
|
+
No as uMaskedTextBox,
|
|
174
|
+
fr as uPopup,
|
|
175
|
+
ko as uRadioButton,
|
|
176
|
+
wo as uRadioGroup,
|
|
177
|
+
ur as uSvgIcon,
|
|
178
|
+
_o as uTextBox,
|
|
179
|
+
Xo as uTime,
|
|
180
|
+
qo as uTimePicker,
|
|
181
|
+
ae as validatePackage
|
|
173
182
|
};
|
package/navigation.d.ts
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare const FOCUSABLE_ELEMENTS: string[];
|
|
12
8
|
/**
|
|
13
9
|
* @hidden
|
|
14
10
|
*/
|
package/navigation.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class i{constructor(t){this.rovingTabIndex=!0,this.update=()=>{},this.focusNextIndex=(e,n)=>{const s=this.elements;let r=s.indexOf(e)+n;r=r<0?s.length-1:r,this.focusElement(s[r%s.length],e)},this.tabIndex=t.tabIndex||0,this.root=t.root,this.selectors=t.selectors,this.rovingTabIndex=t.rovingTabIndex!==void 0?t.rovingTabIndex:!0,this.mouseEvents=t.mouseEvents||{},this.keyboardEvents=t.keyboardEvents||{}}get elements(){return this.root?Array.from(this.root.querySelectorAll(this.selectors.join(","))):[]}get first(){return this.root&&this.root.querySelector(this.selectors.join(","))||null}get last(){const t=this.elements;return t[t.length-1]||null}get current(){return this.elements.find(t=>t.matches(":focus"))||null}focusNext(t){this.focusNextIndex(t,1)}focusPrevious(t){this.focusNextIndex(t,-1)}triggerKeyboardEvent(t){const e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),n=t.key===" "?"Space":t.key,s=t.type;e&&this.keyboardEvents[s][n]&&this.keyboardEvents[s][n].call(void 0,e,this,t)}triggerMouseEvent(t){const e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),n=t.type;e&&this.mouseEvents[n].call(void 0,e,this,t)}focusElement(t,e){t&&(e&&(this.rovingTabIndex&&e.removeAttribute("tabindex"),e.classList.remove("k-focus")),this.rovingTabIndex&&t.setAttribute("tabindex",String(this.tabIndex)),t.focus({preventScroll:!0}))}}exports.Navigation=i;
|
package/navigation.mjs
CHANGED
|
@@ -5,28 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
"input:not([disabled]):not([type=hidden])",
|
|
10
|
-
"select:not([disabled])",
|
|
11
|
-
"textarea:not([disabled])",
|
|
12
|
-
"button:not([disabled])",
|
|
13
|
-
"a[href]",
|
|
14
|
-
"area[href]",
|
|
15
|
-
"summary",
|
|
16
|
-
"iframe",
|
|
17
|
-
"object",
|
|
18
|
-
"embed",
|
|
19
|
-
"audio[controls]",
|
|
20
|
-
"video[controls]",
|
|
21
|
-
"[contenteditable]"
|
|
22
|
-
];
|
|
23
|
-
class a {
|
|
8
|
+
class o {
|
|
24
9
|
constructor(t) {
|
|
25
10
|
this.rovingTabIndex = !0, this.update = () => {
|
|
26
11
|
}, this.focusNextIndex = (e, n) => {
|
|
27
12
|
const s = this.elements;
|
|
28
|
-
let
|
|
29
|
-
|
|
13
|
+
let r = s.indexOf(e) + n;
|
|
14
|
+
r = r < 0 ? s.length - 1 : r, this.focusElement(s[r % s.length], e);
|
|
30
15
|
}, this.tabIndex = t.tabIndex || 0, this.root = t.root, this.selectors = t.selectors, this.rovingTabIndex = t.rovingTabIndex !== void 0 ? t.rovingTabIndex : !0, this.mouseEvents = t.mouseEvents || {}, this.keyboardEvents = t.keyboardEvents || {};
|
|
31
16
|
}
|
|
32
17
|
get elements() {
|
|
@@ -61,6 +46,5 @@ class a {
|
|
|
61
46
|
}
|
|
62
47
|
}
|
|
63
48
|
export {
|
|
64
|
-
|
|
65
|
-
a as Navigation
|
|
49
|
+
o as Navigation
|
|
66
50
|
};
|
package/package.json
CHANGED
package/refs.d.ts
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare function getComponentElementRef(comp: any, refName: string): any;
|
|
8
12
|
/**
|
|
9
13
|
* @hidden
|
|
10
14
|
*/
|
package/refs.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(t,n){var o;const e=(o=t[`${n}Ref`])==null?void 0:o.$el;return e&&(e.nodeType===3||e.nodeType===8)?e.nextElementSibling:e}function r(t,n){return t[`${n}Ref`]}function l(t,n){return e=>{t[`${n}Ref`]=e}}exports.getComponentElementRef=f;exports.getRef=r;exports.setRef=l;
|
package/refs.mjs
CHANGED
|
@@ -5,15 +5,21 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
function n
|
|
9
|
-
|
|
8
|
+
function f(n, t) {
|
|
9
|
+
var o;
|
|
10
|
+
const e = (o = n[`${t}Ref`]) == null ? void 0 : o.$el;
|
|
11
|
+
return e && (e.nodeType === 3 || e.nodeType === 8) ? e.nextElementSibling : e;
|
|
10
12
|
}
|
|
11
|
-
function r(
|
|
12
|
-
return
|
|
13
|
-
|
|
13
|
+
function r(n, t) {
|
|
14
|
+
return n[`${t}Ref`];
|
|
15
|
+
}
|
|
16
|
+
function u(n, t) {
|
|
17
|
+
return (e) => {
|
|
18
|
+
n[`${t}Ref`] = e;
|
|
14
19
|
};
|
|
15
20
|
}
|
|
16
21
|
export {
|
|
17
|
-
|
|
18
|
-
r as
|
|
22
|
+
f as getComponentElementRef,
|
|
23
|
+
r as getRef,
|
|
24
|
+
u as setRef
|
|
19
25
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const focusableChildren: (element: HTMLElement, elementsSelectors?: string[]) => HTMLElement[] | [
|
|
12
|
+
];
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const firstFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => HTMLElement | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const lastFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => HTMLElement | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const focusFirstFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => void;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export declare const focusLastFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => void;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export declare const keepFocusInContainer: (e: KeyboardEvent, containerElement?: HTMLElement | null, elementsSelectors?: string[]) => void;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
export declare const applyTrappedFocus: (e: KeyboardEvent, containerElement: HTMLElement, updateFocusedState?: (isContainerFocused: boolean) => void, elementsSelectors?: string[]) => void;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
export declare const enableNavigatableContainer: (containerElement: HTMLElement, elementsSelectors?: string[]) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare const disableNavigatableContainer: (containerElement: HTMLElement, elementsSelectors?: string[]) => void;
|
package/trappedFocus.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./keys.js"),f=require("./constants/main.js"),e=(s,i=f.FOCUSABLE_ELEMENTS)=>s.querySelectorAll(i.join(",")),l=(s,i=f.FOCUSABLE_ELEMENTS)=>{if(s){const t=e(s,i);if(t.length&&t[0].focus)return t[0]}},n=(s,i=f.FOCUSABLE_ELEMENTS)=>{if(s){const t=e(s,i);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},u=(s,i)=>{if(s){const t=l(s,i);t&&t.focus()}},c=(s,i,t)=>{if(!(!i||s.keyCode!==a.Keys.tab)&&i){const o=l(i,t),r=n(i,t);o&&r&&!s.shiftKey&&s.target===r&&(s.preventDefault(),o.focus()),o&&r&&s.shiftKey&&s.target===o&&(s.preventDefault(),r.focus()),o||s.preventDefault()}},C=(s,i,t,o)=>{let r=!0;if(s.keyCode!==a.Keys.enter&&s.target===i){t&&t(!1);return}s.keyCode===a.Keys.enter&&s.target===i?setTimeout(()=>{u(i,o)},1):s.keyCode===a.Keys.esc?i.focus():c(s,i,o),t&&t(r)},b=(s,i)=>{const t=e(s,i);t==null||t.forEach(o=>{o.tabIndex=0})},d=(s,i)=>{const t=e(s,i);t==null||t.forEach(o=>{o.tabIndex=-1})};exports.applyTrappedFocus=C;exports.disableNavigatableContainer=d;exports.enableNavigatableContainer=b;exports.firstFocusableChild=l;exports.focusFirstFocusableChild=u;exports.focusableChildren=e;exports.keepFocusInContainer=c;exports.lastFocusableChild=n;
|
package/trappedFocus.mjs
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Keys as r } from "./keys.mjs";
|
|
9
|
+
import { FOCUSABLE_ELEMENTS as u } from "./constants/main.mjs";
|
|
10
|
+
const c = (t, s = u) => t.querySelectorAll(s.join(",")), a = (t, s = u) => {
|
|
11
|
+
if (t) {
|
|
12
|
+
const f = c(t, s);
|
|
13
|
+
if (f.length && f[0].focus)
|
|
14
|
+
return f[0];
|
|
15
|
+
}
|
|
16
|
+
}, n = (t, s = u) => {
|
|
17
|
+
if (t) {
|
|
18
|
+
const f = c(t, s);
|
|
19
|
+
if (f.length && f[f.length - 1].focus)
|
|
20
|
+
return f[f.length - 1];
|
|
21
|
+
}
|
|
22
|
+
}, l = (t, s) => {
|
|
23
|
+
if (t) {
|
|
24
|
+
const f = a(t, s);
|
|
25
|
+
f && f.focus();
|
|
26
|
+
}
|
|
27
|
+
}, h = (t, s, f) => {
|
|
28
|
+
if (!(!s || t.keyCode !== r.tab) && s) {
|
|
29
|
+
const o = a(s, f), i = n(s, f);
|
|
30
|
+
o && i && !t.shiftKey && t.target === i && (t.preventDefault(), o.focus()), o && i && t.shiftKey && t.target === o && (t.preventDefault(), i.focus()), o || t.preventDefault();
|
|
31
|
+
}
|
|
32
|
+
}, d = (t, s, f, o) => {
|
|
33
|
+
let i = !0;
|
|
34
|
+
if (t.keyCode !== r.enter && // NOSONAR
|
|
35
|
+
t.target === s) {
|
|
36
|
+
f && f(!1);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
t.keyCode === r.enter && // NOSONAR
|
|
40
|
+
t.target === s ? setTimeout(() => {
|
|
41
|
+
l(s, o);
|
|
42
|
+
}, 1) : t.keyCode === r.esc ? s.focus() : h(t, s, o), f && f(i);
|
|
43
|
+
}, g = (t, s) => {
|
|
44
|
+
const f = c(t, s);
|
|
45
|
+
f == null || f.forEach((o) => {
|
|
46
|
+
o.tabIndex = 0;
|
|
47
|
+
});
|
|
48
|
+
}, b = (t, s) => {
|
|
49
|
+
const f = c(t, s);
|
|
50
|
+
f == null || f.forEach((o) => {
|
|
51
|
+
o.tabIndex = -1;
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
d as applyTrappedFocus,
|
|
56
|
+
b as disableNavigatableContainer,
|
|
57
|
+
g as enableNavigatableContainer,
|
|
58
|
+
a as firstFocusableChild,
|
|
59
|
+
l as focusFirstFocusableChild,
|
|
60
|
+
c as focusableChildren,
|
|
61
|
+
h as keepFocusInContainer,
|
|
62
|
+
n as lastFocusableChild
|
|
63
|
+
};
|
package/validate-package.d.ts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface LicenseMessage {
|
|
12
|
+
code?: string;
|
|
13
|
+
licenseType?: string;
|
|
14
|
+
version?: string;
|
|
15
|
+
productName?: string;
|
|
16
|
+
expiration?: string;
|
|
17
|
+
}
|
|
8
18
|
/**
|
|
9
19
|
* @hidden
|
|
10
20
|
*/
|
|
@@ -18,4 +28,4 @@ export declare function shouldShowValidationUI(packageMetadata: any): boolean;
|
|
|
18
28
|
*
|
|
19
29
|
* Returns the notification message to display, if any.
|
|
20
30
|
*/
|
|
21
|
-
export declare const getLicenseMessage: (e: any) =>
|
|
31
|
+
export declare const getLicenseMessage: (e: any) => LicenseMessage | undefined;
|
package/validate-package.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-licensing");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@progress/kendo-licensing");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=l(c),r=["telerik.com","progress.com","stackblitz.io","csb.app","webcontainer.io"],s=i,o=typeof s!="undefined"&&s.validatePackage?s:s.default;function g(e){if(o&&o.validatePackage)o.validatePackage(e);else{let t=`License activation failed for ${e.name}
|
|
9
9
|
`;t+=`The @progress/kendo-licensing script is not loaded.
|
|
10
10
|
`,t+=`See ${e.licensingDocsUrl} for more information.
|
|
11
|
-
`,console.warn(t)}}function
|
|
11
|
+
`,console.warn(t)}}function d(e){return!r.some(n=>{var a;return(a=globalThis.document)==null?void 0:a.location.hostname.endsWith(n)})&&!(o&&o.validatePackage&&o.validatePackage(e))}const u=e=>i.getLicenseStatus(e).message;exports.getLicenseMessage=u;exports.shouldShowValidationUI=d;exports.validatePackage=g;
|