@progress/kendo-react-common 16.2.0-develop.9 → 16.2.0
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/EULA.pdf +0 -0
- package/EULA.rtf +2730 -0
- package/EULA.txt +292 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/drag-n-drop/context/index.d.ts +2 -0
- package/drag-n-drop/context/index.js +1 -1
- package/drag-n-drop/context/index.mjs +4 -2
- package/drag-n-drop/index.js +1 -1
- package/drag-n-drop/index.mjs +43 -39
- package/fileExtensionIcon.js +1 -1
- package/fileExtensionIcon.mjs +16 -16
- package/hooks/useDraggable.js +1 -1
- package/hooks/useDraggable.mjs +171 -155
- package/index.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +233 -229
- package/package.json +1 -6
- package/sanitizeUrl.d.ts +23 -0
- package/sanitizeUrl.js +8 -0
- package/sanitizeUrl.mjs +30 -0
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +1 -1
- package/validate-package.js +2 -2
- package/validate-package.mjs +21 -25
package/index.mjs
CHANGED
|
@@ -10,269 +10,273 @@ import { ZIndexContext as t, useZIndexContext as p } from "./contexts/ZIndexCont
|
|
|
10
10
|
import { AdaptiveModeContext as a, defaultValue as n, useAdaptiveModeContext as m } from "./contexts/AdaptiveModeContext.mjs";
|
|
11
11
|
import { BrowserSupportService as x } from "./browser-support.service.mjs";
|
|
12
12
|
import { canUseDOM as d } from "./canUseDOM.mjs";
|
|
13
|
-
import { canUseRef as
|
|
13
|
+
import { canUseRef as u } from "./canUseRef.mjs";
|
|
14
14
|
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
|
|
15
|
-
import { clone as
|
|
15
|
+
import { clone as E, cloneArray as P, cloneDate as b, cloneObject as A, cloneValue as h } from "./clone.mjs";
|
|
16
16
|
import { applyTrappedFocus as M, disableNavigatableContainer as T, enableNavigatableContainer as v, firstFocusableChild as S, focusFirstFocusableChild as B, focusLastFocusableChild as L, focusableChildren as F, keepFocusInContainer as N, lastFocusableChild as y } from "./trappedFocus.mjs";
|
|
17
17
|
import { FormComponent as O } from "./FormComponent.mjs";
|
|
18
|
-
import { getTabIndex as
|
|
19
|
-
import { getter as
|
|
18
|
+
import { getTabIndex as U } from "./getTabIndex.mjs";
|
|
19
|
+
import { getter as k } from "./getter.mjs";
|
|
20
20
|
import { guid as W } from "./guid.mjs";
|
|
21
21
|
import { KEYS as G, Keys as H } from "./keys.mjs";
|
|
22
|
-
import { noop as
|
|
22
|
+
import { noop as z } from "./noop.mjs";
|
|
23
23
|
import { getScrollbarWidth as X, setScrollbarWidth as Y } from "./scrollbarWidth.mjs";
|
|
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 {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
24
|
+
import { isSafeImageUrl as J, isSafeUrl as Q, sanitizeUrl as $ } from "./sanitizeUrl.mjs";
|
|
25
|
+
import { setter as oe } from "./setter.mjs";
|
|
26
|
+
import { ADAPTIVE_MEDIUM_BREAKPOINT as te, ADAPTIVE_SMALL_BREAKPOINT as pe, FIELD_REGEX as se, FOCUSABLE_ELEMENTS as ae, FOCUSABLE_ELEMENTS_BASE as ne, TABBABLE_ELEMENTS as me } from "./constants/main.mjs";
|
|
27
|
+
import { extendDataItem as xe, getItemPath as fe, mapTree as de, mapTreeItem as le } from "./treeDataOperations.mjs";
|
|
28
|
+
import { getLicenseMessage as ce, hasValidLicense as Ie, validatePackage as Ce } from "./validate-package.mjs";
|
|
29
|
+
import { hasRelativeStackingContext as Ee } from "./hasRelativeStackingContext.mjs";
|
|
30
|
+
import { WatermarkOverlay as be } from "./watermark/WatermarkOverlay.mjs";
|
|
31
|
+
import { applyDefaultProps as he } from "./apply-default-props.mjs";
|
|
32
|
+
import { dispatchEvent as Me } from "./events/dispatchEvent.mjs";
|
|
33
|
+
import { AsyncFocusBlur as ve } from "./hocs/AsyncFocusBlur.mjs";
|
|
34
|
+
import { createPropsContext as Be, withPropsContext as Le } from "./hocs/withPropsContext.mjs";
|
|
35
|
+
import { withIdHOC as Ne } from "./hocs/use-id-hoc.mjs";
|
|
36
|
+
import { withUnstyledHOC as we } from "./hocs/use-unstyled-hoc.mjs";
|
|
37
|
+
import { withAdaptiveModeContext as Re } from "./hocs/use-adaptive-mode-hoc.mjs";
|
|
38
|
+
import { withZIndexContext as _e } from "./hocs/withzIndexContext.mjs";
|
|
39
|
+
import { useDir as Ke } from "./hooks/useDir.mjs";
|
|
40
|
+
import { useAsyncFocusBlur as Ve } from "./hooks/useAsyncFocusBlur.mjs";
|
|
41
|
+
import { useRtl as He } from "./hooks/useRtl.mjs";
|
|
42
|
+
import { useMouse as ze } from "./hooks/useMouse.mjs";
|
|
43
|
+
import { useCustomComponent as Xe } from "./hooks/useCustomComponent.mjs";
|
|
44
|
+
import { usePropsContext as qe } from "./hooks/usePropsContext.mjs";
|
|
45
|
+
import { COLLECTION_ACTION as Qe, useCollection as $e } from "./hooks/useCollection.mjs";
|
|
46
|
+
import { useDocument as oo } from "./hooks/useDocument.mjs";
|
|
47
|
+
import { useWindow as to } from "./hooks/useWindow.mjs";
|
|
48
|
+
import { useId as so } from "./hooks/use-id.mjs";
|
|
49
|
+
import { useIsomorphicLayoutEffect as no } from "./hooks/use-isomorphic-layout-effect.mjs";
|
|
50
|
+
import { useImmediateInheritState as io } from "./hooks/use-immediate-inherit-state.mjs";
|
|
51
|
+
import { usePaidChildrenWatermark as fo } from "./hooks/usePaidChildrenWatermark.mjs";
|
|
52
|
+
import { useMergedRef as uo } from "./hooks/useMergedRef.mjs";
|
|
53
|
+
import { Icon as Io } from "./icons/Icon.mjs";
|
|
54
|
+
import { SvgIcon as go } from "./icons/SvgIcon.mjs";
|
|
55
|
+
import { IconWrap as Po } from "./icons/IconWrap.mjs";
|
|
56
|
+
import { IconsContext as Ao } from "./icons/IconsContext.mjs";
|
|
57
|
+
import { svgIconPropType as Do, toIconClass as Mo, toIconName as To } from "./icons/utils.mjs";
|
|
58
|
+
import { Typography as So } from "./typography/Typography.mjs";
|
|
59
|
+
import { DragAndDrop as Lo } from "./drag-n-drop/index.mjs";
|
|
60
|
+
import { Draggable as No } from "./Draggable.mjs";
|
|
61
|
+
import { Droppable as wo } from "./Droppable.mjs";
|
|
62
|
+
import { useDraggable as Ro } from "./hooks/useDraggable.mjs";
|
|
63
|
+
import { useDroppable as _o } from "./hooks/useDroppable.mjs";
|
|
64
|
+
import { kendoThemeMaps as Ko } from "./theme.mjs";
|
|
65
|
+
import { memoizeOne as Vo } from "./memoize.mjs";
|
|
66
|
+
import { Navigation as Ho } from "./navigation.mjs";
|
|
67
|
+
import { getActiveElement as zo, getInnerActiveElement as Zo } from "./getActiveElement.mjs";
|
|
68
|
+
import { getFileExtensionIcon as Yo } from "./fileExtensionIcon.mjs";
|
|
69
|
+
import { TreeFieldsService as Jo } from "./tree-utils/FieldsService.mjs";
|
|
70
|
+
import { SortedPublicItemIds as $o } from "./tree-utils/SortedPublicItemIds.mjs";
|
|
71
|
+
import { addItem as or, areAllDirectChildrenChecked as rr, getAllDirectIndirectChildrenIds as tr, getAllParents as pr, hasChildren as sr, isEnabledAndAllParentsEnabled as ar, isItemExpandedAndWithChildren as nr, removeItem as mr, resolveItemId as ir, resolveItemsIds as xr, updateItem as fr } from "./tree-utils/itemUtils.mjs";
|
|
72
|
+
import { getAbsoluteVirtualRowIndex as lr } from "./virtualRow.mjs";
|
|
73
|
+
import { getNestedValue as cr, isArray as Ir } from "./tree-utils/misc.mjs";
|
|
74
|
+
import { RowHeightService as gr } from "./rowHeightService.mjs";
|
|
75
|
+
import { deepMerge as Pr, isObject as br, isPromise as Ar } from "./deep-merge.mjs";
|
|
76
|
+
import { WebMcpContext as Dr, WebMcpProvider as Mr, getModelContext as Tr, useWebMcpRegister as vr } from "./WebMcpProvider.mjs";
|
|
77
|
+
import { KENDO_PASTE_EVENT_NAME as Br, createKendoPasteEvent as Lr, dispatchKendoPasteEvent as Fr, getKendoPasteEventTarget as Nr } from "./kendopaste/KendoPasteEvent.mjs";
|
|
78
|
+
import { UnstyledContext as wr, useUnstyled as Or } from "./unstyled/unstyled-context.mjs";
|
|
79
|
+
import { actions as Ur, animationStyles as _r, base as kr, buttonPrefix as Kr, calendarPrefix as Wr, comboBoxPrefix as Vr, components as Gr, containers as Hr, cssUtils as jr, dateInputs as zr, ddbPrefix as Zr, dimensions as Xr, directionMap as Yr, dropDownListPrefix as qr, elements as Jr, fillModeMap as Qr, forms as $r, grid as et, gridPrefix as ot, gridRowReorder as rt, icon as tt, inputPrefix as pt, inputs as st, jsonTheme as at, labels as nt, maskedPrefix as mt, orientationMap as it, pickerPrefix as xt, popup as ft, radioPrefix as dt, roundedMap as lt, sizeMap as ut, states as ct, themeColorMap as It } from "./unstyled/json-classes.mjs";
|
|
80
|
+
import { radioButtonClasses as gt, radioGroupClasses as Et, uInput as Pt, uMaskedTextBox as bt, uRadioButton as At, uRadioGroup as ht, uTextBox as Dt } from "./unstyled/inputs.mjs";
|
|
81
|
+
import { subscribeToKendoPaste as Tt, useKendoPaste as vt } from "./kendopaste/useKendoPaste.mjs";
|
|
82
|
+
import { uAnimation as Bt } from "./unstyled/animations.mjs";
|
|
83
|
+
import { uButton as Ft, uButtonGroup as Nt, uDropDownButton as yt } from "./unstyled/buttons.mjs";
|
|
84
|
+
import { uCalendar as Ot, uDateInput as Rt, uDateTimePicker as Ut, uTime as _t, uTimePicker as kt } from "./unstyled/dateinputs.mjs";
|
|
85
|
+
import { uComboBox as Wt, uDropDownList as Vt, uDropDownsActionSheet as Gt, uDropDownsBase as Ht } from "./unstyled/dropdowns.mjs";
|
|
86
|
+
import { uError as zt, uFloatingLabel as Zt, uHint as Xt, uLabel as Yt } from "./unstyled/labels.mjs";
|
|
87
|
+
import { uForm as Jt } from "./unstyled/form.mjs";
|
|
88
|
+
import { uGrid as $t } from "./unstyled/grid.mjs";
|
|
89
|
+
import { uPopup as op } from "./unstyled/popup.mjs";
|
|
90
|
+
import { uSvgIcon as tp } from "./unstyled/icons.mjs";
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
te as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
93
|
+
pe as ADAPTIVE_SMALL_BREAKPOINT,
|
|
93
94
|
a as AdaptiveModeContext,
|
|
94
|
-
|
|
95
|
+
ve as AsyncFocusBlur,
|
|
95
96
|
x as BrowserSupportService,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
Qe as COLLECTION_ACTION,
|
|
98
|
+
Lo as DragAndDrop,
|
|
99
|
+
No as Draggable,
|
|
100
|
+
wo as Droppable,
|
|
101
|
+
se as FIELD_REGEX,
|
|
102
|
+
ae as FOCUSABLE_ELEMENTS,
|
|
103
|
+
ne as FOCUSABLE_ELEMENTS_BASE,
|
|
103
104
|
O as FormComponent,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
Io as Icon,
|
|
106
|
+
Po as IconWrap,
|
|
107
|
+
Ao as IconsContext,
|
|
108
|
+
Br as KENDO_PASTE_EVENT_NAME,
|
|
108
109
|
G as KEYS,
|
|
109
110
|
H as Keys,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
Ho as Navigation,
|
|
112
|
+
gr as RowHeightService,
|
|
113
|
+
$o as SortedPublicItemIds,
|
|
114
|
+
go as SvgIcon,
|
|
115
|
+
me as TABBABLE_ELEMENTS,
|
|
116
|
+
Jo as TreeFieldsService,
|
|
117
|
+
So as Typography,
|
|
118
|
+
wr as UnstyledContext,
|
|
119
|
+
be as WatermarkOverlay,
|
|
120
|
+
Dr as WebMcpContext,
|
|
121
|
+
Mr as WebMcpProvider,
|
|
121
122
|
t as ZIndexContext,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
Ur as actions,
|
|
124
|
+
or as addItem,
|
|
125
|
+
_r as animationStyles,
|
|
126
|
+
he as applyDefaultProps,
|
|
126
127
|
M as applyTrappedFocus,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
rr as areAllDirectChildrenChecked,
|
|
129
|
+
kr as base,
|
|
130
|
+
Kr as buttonPrefix,
|
|
131
|
+
Wr as calendarPrefix,
|
|
131
132
|
d as canUseDOM,
|
|
132
|
-
|
|
133
|
+
u as canUseRef,
|
|
133
134
|
I as classNames,
|
|
134
|
-
|
|
135
|
+
E as clone,
|
|
135
136
|
P as cloneArray,
|
|
136
137
|
b as cloneDate,
|
|
137
138
|
A as cloneObject,
|
|
138
139
|
h as cloneValue,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
Vr as comboBoxPrefix,
|
|
141
|
+
Gr as components,
|
|
142
|
+
Hr as containers,
|
|
143
|
+
Lr as createKendoPasteEvent,
|
|
144
|
+
Be as createPropsContext,
|
|
145
|
+
jr as cssUtils,
|
|
146
|
+
zr as dateInputs,
|
|
147
|
+
Zr as ddbPrefix,
|
|
148
|
+
Pr as deepMerge,
|
|
148
149
|
n as defaultValue,
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
Xr as dimensions,
|
|
151
|
+
Yr as directionMap,
|
|
151
152
|
T as disableNavigatableContainer,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
Me as dispatchEvent,
|
|
154
|
+
Fr as dispatchKendoPasteEvent,
|
|
155
|
+
qr as dropDownListPrefix,
|
|
156
|
+
Jr as elements,
|
|
156
157
|
v as enableNavigatableContainer,
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
xe as extendDataItem,
|
|
159
|
+
Qr as fillModeMap,
|
|
159
160
|
S as firstFocusableChild,
|
|
160
161
|
B as focusFirstFocusableChild,
|
|
161
162
|
L as focusLastFocusableChild,
|
|
162
163
|
F as focusableChildren,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
164
|
+
$r as forms,
|
|
165
|
+
lr as getAbsoluteVirtualRowIndex,
|
|
166
|
+
zo as getActiveElement,
|
|
167
|
+
tr as getAllDirectIndirectChildrenIds,
|
|
168
|
+
pr as getAllParents,
|
|
169
|
+
Yo as getFileExtensionIcon,
|
|
170
|
+
Zo as getInnerActiveElement,
|
|
171
|
+
fe as getItemPath,
|
|
172
|
+
Nr as getKendoPasteEventTarget,
|
|
173
|
+
ce as getLicenseMessage,
|
|
174
|
+
Tr as getModelContext,
|
|
175
|
+
cr as getNestedValue,
|
|
175
176
|
X as getScrollbarWidth,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
U as getTabIndex,
|
|
178
|
+
k as getter,
|
|
179
|
+
et as grid,
|
|
180
|
+
ot as gridPrefix,
|
|
181
|
+
rt as gridRowReorder,
|
|
181
182
|
W as guid,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
183
|
+
sr as hasChildren,
|
|
184
|
+
Ee as hasRelativeStackingContext,
|
|
185
|
+
Ie as hasValidLicense,
|
|
186
|
+
tt as icon,
|
|
187
|
+
pt as inputPrefix,
|
|
188
|
+
st as inputs,
|
|
189
|
+
Ir as isArray,
|
|
190
|
+
ar as isEnabledAndAllParentsEnabled,
|
|
191
|
+
nr as isItemExpandedAndWithChildren,
|
|
192
|
+
br as isObject,
|
|
193
|
+
Ar as isPromise,
|
|
194
|
+
J as isSafeImageUrl,
|
|
195
|
+
Q as isSafeUrl,
|
|
196
|
+
at as jsonTheme,
|
|
194
197
|
N as keepFocusInContainer,
|
|
195
|
-
|
|
196
|
-
|
|
198
|
+
Ko as kendoThemeMaps,
|
|
199
|
+
nt as labels,
|
|
197
200
|
y as lastFocusableChild,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
201
|
+
de as mapTree,
|
|
202
|
+
le as mapTreeItem,
|
|
203
|
+
mt as maskedPrefix,
|
|
204
|
+
Vo as memoizeOne,
|
|
205
|
+
z as noop,
|
|
206
|
+
it as orientationMap,
|
|
207
|
+
xt as pickerPrefix,
|
|
208
|
+
ft as popup,
|
|
209
|
+
gt as radioButtonClasses,
|
|
210
|
+
Et as radioGroupClasses,
|
|
211
|
+
dt as radioPrefix,
|
|
212
|
+
mr as removeItem,
|
|
213
|
+
ir as resolveItemId,
|
|
214
|
+
xr as resolveItemsIds,
|
|
215
|
+
lt as roundedMap,
|
|
216
|
+
$ as sanitizeUrl,
|
|
213
217
|
Y as setScrollbarWidth,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
oe as setter,
|
|
219
|
+
ut as sizeMap,
|
|
220
|
+
ct as states,
|
|
217
221
|
C as strippedClassNames,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
Tt as subscribeToKendoPaste,
|
|
223
|
+
Do as svgIconPropType,
|
|
224
|
+
It as themeColorMap,
|
|
225
|
+
Mo as toIconClass,
|
|
226
|
+
To as toIconName,
|
|
223
227
|
e as treeIdUtils,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
228
|
+
Bt as uAnimation,
|
|
229
|
+
Ft as uButton,
|
|
230
|
+
Nt as uButtonGroup,
|
|
231
|
+
Ot as uCalendar,
|
|
232
|
+
Wt as uComboBox,
|
|
233
|
+
Rt as uDateInput,
|
|
234
|
+
Ut as uDateTimePicker,
|
|
235
|
+
yt as uDropDownButton,
|
|
236
|
+
Vt as uDropDownList,
|
|
237
|
+
Gt as uDropDownsActionSheet,
|
|
238
|
+
Ht as uDropDownsBase,
|
|
239
|
+
zt as uError,
|
|
240
|
+
Zt as uFloatingLabel,
|
|
241
|
+
Jt as uForm,
|
|
242
|
+
$t as uGrid,
|
|
243
|
+
Xt as uHint,
|
|
244
|
+
Pt as uInput,
|
|
245
|
+
Yt as uLabel,
|
|
246
|
+
bt as uMaskedTextBox,
|
|
247
|
+
op as uPopup,
|
|
248
|
+
At as uRadioButton,
|
|
249
|
+
ht as uRadioGroup,
|
|
250
|
+
tp as uSvgIcon,
|
|
251
|
+
Dt as uTextBox,
|
|
252
|
+
_t as uTime,
|
|
253
|
+
kt as uTimePicker,
|
|
254
|
+
fr as updateItem,
|
|
251
255
|
m as useAdaptiveModeContext,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
256
|
+
Ve as useAsyncFocusBlur,
|
|
257
|
+
$e as useCollection,
|
|
258
|
+
Xe as useCustomComponent,
|
|
259
|
+
Ke as useDir,
|
|
260
|
+
oo as useDocument,
|
|
261
|
+
Ro as useDraggable,
|
|
262
|
+
_o as useDroppable,
|
|
263
|
+
so as useId,
|
|
264
|
+
io as useImmediateInheritState,
|
|
265
|
+
no as useIsomorphicLayoutEffect,
|
|
266
|
+
vt as useKendoPaste,
|
|
267
|
+
uo as useMergedRef,
|
|
268
|
+
ze as useMouse,
|
|
269
|
+
fo as usePaidChildrenWatermark,
|
|
270
|
+
qe as usePropsContext,
|
|
271
|
+
He as useRtl,
|
|
272
|
+
Or as useUnstyled,
|
|
273
|
+
vr as useWebMcpRegister,
|
|
274
|
+
to as useWindow,
|
|
271
275
|
p as useZIndexContext,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
Ce as validatePackage,
|
|
277
|
+
Re as withAdaptiveModeContext,
|
|
278
|
+
Ne as withIdHOC,
|
|
279
|
+
Le as withPropsContext,
|
|
280
|
+
we as withUnstyledHOC,
|
|
281
|
+
_e as withZIndexContext
|
|
278
282
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-common",
|
|
3
|
-
"version": "16.2.0
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -82,10 +82,5 @@
|
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
|
-
},
|
|
86
|
-
"peerDependenciesMeta": {
|
|
87
|
-
"@progress/kendo-svg-icons": {
|
|
88
|
-
"optional": true
|
|
89
|
-
}
|
|
90
85
|
}
|
|
91
86
|
}
|
package/sanitizeUrl.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Returns `true` for relative references and URLs using an allow-listed scheme.
|
|
11
|
+
* Callers can pass additional scheme names without a trailing colon.
|
|
12
|
+
*/
|
|
13
|
+
export declare const isSafeUrl: (url: string | null | undefined, extraSchemes?: readonly string[]) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
* Same as {@link isSafeUrl}, but also accepts raster image data URLs and rejects SVG data URLs.
|
|
17
|
+
*/
|
|
18
|
+
export declare const isSafeImageUrl: (url: string | null | undefined) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
* Removes potentially unsafe URL schemes and preserves relative URLs and fragments.
|
|
22
|
+
*/
|
|
23
|
+
export declare const sanitizeUrl: (url?: string | null) => string;
|
package/sanitizeUrl.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 c=new Set(["http:","https:","ftp:","ftps:","mailto:","tel:","sms:"]),u=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/g,f=/^([a-zA-Z][a-zA-Z\d+.-]*):/,l=/^[a-z][a-z\d+.-]*$/i,E=/^data:image\/([a-z0-9.+-]+)(?:;[^,]*)?,/i,S=new Set(["png","jpeg","gif","webp","bmp","tiff","avif","x-icon","vnd.microsoft.icon"]),i=t=>String(t).replace(u,"").trim(),r=(t,e)=>{var s;const n=f.exec(t);if(!n)return!0;const o=n[1].toLowerCase();return c.has(`${o}:`)?!0:(s=e==null?void 0:e.some(a=>l.test(a)&&a.toLowerCase()===o))!=null?s:!1},d=(t,e)=>t==null?!0:r(i(t),e),g=t=>{if(t==null)return!0;const e=i(t),n=E.exec(e);return n?S.has(n[1].toLowerCase()):r(e)},m=t=>{if(!t)return"";const e=i(t);return e===""?"":r(e)?e:""};exports.isSafeImageUrl=g;exports.isSafeUrl=d;exports.sanitizeUrl=m;
|
package/sanitizeUrl.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
const c = /* @__PURE__ */ new Set(["http:", "https:", "ftp:", "ftps:", "mailto:", "tel:", "sms:"]), u = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/g, f = /^([a-zA-Z][a-zA-Z\d+.-]*):/, E = /^[a-z][a-z\d+.-]*$/i, l = /^data:image\/([a-z0-9.+-]+)(?:;[^,]*)?,/i, p = /* @__PURE__ */ new Set(["png", "jpeg", "gif", "webp", "bmp", "tiff", "avif", "x-icon", "vnd.microsoft.icon"]), o = (t) => String(t).replace(u, "").trim(), r = (t, n) => {
|
|
9
|
+
var s;
|
|
10
|
+
const e = f.exec(t);
|
|
11
|
+
if (!e)
|
|
12
|
+
return !0;
|
|
13
|
+
const i = e[1].toLowerCase();
|
|
14
|
+
return c.has(`${i}:`) ? !0 : (s = n == null ? void 0 : n.some((a) => E.test(a) && a.toLowerCase() === i)) != null ? s : !1;
|
|
15
|
+
}, z = (t, n) => t == null ? !0 : r(o(t), n), A = (t) => {
|
|
16
|
+
if (t == null)
|
|
17
|
+
return !0;
|
|
18
|
+
const n = o(t), e = l.exec(n);
|
|
19
|
+
return e ? p.has(e[1].toLowerCase()) : r(n);
|
|
20
|
+
}, d = (t) => {
|
|
21
|
+
if (!t)
|
|
22
|
+
return "";
|
|
23
|
+
const n = o(t);
|
|
24
|
+
return n === "" ? "" : r(n) ? n : "";
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
A as isSafeImageUrl,
|
|
28
|
+
z as isSafeUrl,
|
|
29
|
+
d as sanitizeUrl
|
|
30
|
+
};
|