@progress/kendo-react-common 9.3.1 → 9.4.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.
- package/Draggable.js +2 -1
- package/Draggable.mjs +15 -15
- package/Droppable.js +2 -1
- package/Droppable.mjs +5 -5
- package/FormComponent.js +2 -1
- package/FormComponent.mjs +2 -2
- package/apply-default-props.js +1 -1
- package/apply-default-props.mjs +5 -6
- package/browser-support.service.js +1 -1
- package/browser-support.service.mjs +0 -1
- package/canUseDOM.js +1 -1
- package/canUseDOM.mjs +0 -1
- package/canUseRef.js +1 -1
- package/canUseRef.mjs +4 -5
- package/classNames.js +1 -1
- package/classNames.mjs +6 -7
- package/clone.js +1 -1
- package/clone.mjs +6 -7
- package/constants/main.js +1 -1
- package/constants/main.mjs +4 -5
- package/contexts/AdaptiveModeContext.js +2 -1
- package/contexts/AdaptiveModeContext.mjs +2 -2
- package/contexts/ZIndexContext.js +2 -1
- package/dist/cdn/js/kendo-react-common.js +8 -1
- package/drag-n-drop/context/index.js +2 -1
- package/drag-n-drop/index.js +2 -1
- package/drag-n-drop/index.mjs +3 -3
- package/events/dispatchEvent.js +1 -1
- package/events/dispatchEvent.mjs +2 -3
- package/fieldList.js +1 -1
- package/fieldList.mjs +5 -6
- package/getActiveElement.js +1 -1
- package/getActiveElement.mjs +0 -1
- package/getTabIndex.js +1 -1
- package/getTabIndex.mjs +5 -6
- package/getter.js +1 -1
- package/getter.mjs +4 -5
- package/guid.js +1 -1
- package/guid.mjs +5 -6
- package/hasRelativeStackingContext.js +1 -1
- package/hasRelativeStackingContext.mjs +2 -3
- package/hocs/AsyncFocusBlur.js +2 -1
- package/hocs/AsyncFocusBlur.mjs +4 -4
- package/hocs/use-adaptive-mode-hoc.js +2 -1
- package/hocs/use-adaptive-mode-hoc.mjs +2 -2
- package/hocs/use-id-hoc.js +2 -1
- package/hocs/use-id-hoc.mjs +6 -6
- package/hocs/use-unstyled-hoc.js +2 -1
- package/hocs/use-unstyled-hoc.mjs +5 -5
- package/hocs/withPropsContext.js +2 -1
- package/hooks/use-id.js +2 -1
- package/hooks/use-id.mjs +12 -12
- package/hooks/use-isomorphic-layout-effect.js +2 -1
- package/hooks/use-isomorphic-layout-effect.mjs +2 -2
- package/hooks/useAsyncFocusBlur.js +2 -1
- package/hooks/useAsyncFocusBlur.mjs +6 -6
- package/hooks/useCollection.js +2 -1
- package/hooks/useCollection.mjs +2 -2
- package/hooks/useControlledState.js +2 -1
- package/hooks/useControlledState.mjs +4 -4
- package/hooks/useCustomComponent.js +1 -1
- package/hooks/useCustomComponent.mjs +0 -1
- package/hooks/useDir.js +2 -1
- package/hooks/useDir.mjs +5 -5
- package/hooks/useDocument.js +2 -1
- package/hooks/useDraggable.js +2 -1
- package/hooks/useDroppable.js +2 -1
- package/hooks/useDroppable.mjs +12 -12
- package/hooks/useInheritedState.js +2 -1
- package/hooks/useInheritedState.mjs +2 -2
- package/hooks/useMouse.js +2 -1
- package/hooks/usePropsContext.js +2 -1
- package/hooks/useRtl.js +2 -1
- package/hooks/useRtl.mjs +5 -5
- package/hooks/useWindow.js +2 -1
- package/hooks/useWindow.mjs +6 -6
- package/icons/Icon.js +2 -1
- package/icons/Icon.mjs +10 -10
- package/icons/IconWrap.js +2 -1
- package/icons/IconWrap.mjs +8 -8
- package/icons/IconsContext.js +2 -1
- package/icons/SvgIcon.js +2 -1
- package/icons/constants.js +1 -1
- package/icons/constants.mjs +0 -1
- package/icons/utils.js +1 -1
- package/icons/utils.mjs +2 -3
- package/index.d.mts +13 -0
- package/index.d.ts +13 -0
- package/index.js +1 -1
- package/index.mjs +46 -46
- package/keys.js +1 -1
- package/keys.mjs +0 -1
- package/memoize.js +1 -1
- package/memoize.mjs +0 -1
- package/navigation.js +1 -1
- package/navigation.mjs +0 -1
- package/noop.js +1 -1
- package/noop.mjs +2 -3
- package/package.json +1 -1
- package/rowHeightService.js +1 -1
- package/rowHeightService.mjs +0 -1
- package/scrollbarWidth.js +1 -1
- package/scrollbarWidth.mjs +5 -6
- package/setter.js +1 -1
- package/setter.mjs +15 -16
- package/theme.js +1 -1
- package/theme.mjs +2 -3
- package/trappedFocus.js +1 -1
- package/trappedFocus.mjs +7 -8
- package/tree-utils/FieldsService.js +1 -1
- package/tree-utils/FieldsService.mjs +11 -12
- package/tree-utils/SortedPublicItemIds.js +1 -1
- package/tree-utils/SortedPublicItemIds.mjs +0 -1
- package/tree-utils/itemIdUtils.js +1 -1
- package/tree-utils/itemIdUtils.mjs +0 -1
- package/tree-utils/itemUtils.js +1 -1
- package/tree-utils/itemUtils.mjs +0 -1
- package/tree-utils/misc.js +1 -1
- package/tree-utils/misc.mjs +6 -7
- package/treeDataOperations.js +1 -1
- package/treeDataOperations.mjs +11 -12
- package/typography/Typography.js +2 -1
- package/typography/constants.js +1 -1
- package/typography/constants.mjs +0 -1
- package/unstyled/animations.js +1 -1
- package/unstyled/animations.mjs +0 -1
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +0 -1
- package/unstyled/dateinputs.js +1 -1
- package/unstyled/dateinputs.mjs +79 -80
- package/unstyled/dropdowns.js +1 -1
- package/unstyled/dropdowns.mjs +0 -1
- package/unstyled/form.js +1 -1
- package/unstyled/form.mjs +14 -15
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +106 -82
- package/unstyled/icons.js +1 -1
- package/unstyled/icons.mjs +0 -1
- package/unstyled/inputs.js +1 -1
- package/unstyled/inputs.mjs +0 -1
- package/unstyled/interfaces/common.js +1 -1
- package/unstyled/interfaces/common.mjs +3 -4
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +28 -20
- package/unstyled/labels.js +1 -1
- package/unstyled/labels.mjs +0 -1
- package/unstyled/main.js +1 -1
- package/unstyled/main.mjs +0 -1
- package/unstyled/popup.js +1 -1
- package/unstyled/popup.mjs +0 -1
- package/validate-package.js +1 -1
- package/validate-package.mjs +0 -1
- package/watermark/WatermarkOverlay.js +2 -1
package/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as e from "./tree-utils/itemIdUtils.mjs";
|
|
10
9
|
import { ZIndexContext as t, useZIndexContext as p } from "./contexts/ZIndexContext.mjs";
|
|
11
10
|
import { AdaptiveModeContext as m, defaultValue as s, useAdaptiveModeContext as n } from "./contexts/AdaptiveModeContext.mjs";
|
|
@@ -13,11 +12,11 @@ import { BrowserSupportService as x } from "./browser-support.service.mjs";
|
|
|
13
12
|
import { canUseDOM as l } from "./canUseDOM.mjs";
|
|
14
13
|
import { canUseRef as d } from "./canUseRef.mjs";
|
|
15
14
|
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
|
|
16
|
-
import { clone as E, cloneArray as h, cloneDate as
|
|
17
|
-
import { applyTrappedFocus as T, disableNavigatableContainer as v, enableNavigatableContainer as B, firstFocusableChild as S, focusFirstFocusableChild as M, focusLastFocusableChild as L, focusableChildren as y, keepFocusInContainer as F, lastFocusableChild as
|
|
15
|
+
import { clone as E, cloneArray as h, cloneDate as g, cloneObject as D, cloneValue as b } from "./clone.mjs";
|
|
16
|
+
import { applyTrappedFocus as T, disableNavigatableContainer as v, enableNavigatableContainer as B, firstFocusableChild as S, focusFirstFocusableChild as M, focusLastFocusableChild as L, focusableChildren as y, keepFocusInContainer as F, lastFocusableChild as w } from "./trappedFocus.mjs";
|
|
18
17
|
import { FormComponent as O } from "./FormComponent.mjs";
|
|
19
18
|
import { getTabIndex as k } from "./getTabIndex.mjs";
|
|
20
|
-
import { getter as
|
|
19
|
+
import { getter as _ } from "./getter.mjs";
|
|
21
20
|
import { guid as W } from "./guid.mjs";
|
|
22
21
|
import { KEYS as H, Keys as K } from "./keys.mjs";
|
|
23
22
|
import { noop as z } from "./noop.mjs";
|
|
@@ -30,15 +29,15 @@ import { hasRelativeStackingContext as de } from "./hasRelativeStackingContext.m
|
|
|
30
29
|
import { WatermarkOverlay as Ie } from "./watermark/WatermarkOverlay.mjs";
|
|
31
30
|
import { applyDefaultProps as Ae } from "./apply-default-props.mjs";
|
|
32
31
|
import { dispatchEvent as he } from "./events/dispatchEvent.mjs";
|
|
33
|
-
import { AsyncFocusBlur as
|
|
32
|
+
import { AsyncFocusBlur as De } from "./hocs/AsyncFocusBlur.mjs";
|
|
34
33
|
import { createPropsContext as Pe, withPropsContext as Te } from "./hocs/withPropsContext.mjs";
|
|
35
34
|
import { withIdHOC as Be } from "./hocs/use-id-hoc.mjs";
|
|
36
35
|
import { withUnstyledHOC as Me } from "./hocs/use-unstyled-hoc.mjs";
|
|
37
36
|
import { withAdaptiveModeContext as ye } from "./hocs/use-adaptive-mode-hoc.mjs";
|
|
38
|
-
import { useDir as
|
|
37
|
+
import { useDir as we } from "./hooks/useDir.mjs";
|
|
39
38
|
import { useAsyncFocusBlur as Oe } from "./hooks/useAsyncFocusBlur.mjs";
|
|
40
39
|
import { useRtl as ke } from "./hooks/useRtl.mjs";
|
|
41
|
-
import { useMouse as
|
|
40
|
+
import { useMouse as _e } from "./hooks/useMouse.mjs";
|
|
42
41
|
import { useCustomComponent as We } from "./hooks/useCustomComponent.mjs";
|
|
43
42
|
import { usePropsContext as He } from "./hooks/usePropsContext.mjs";
|
|
44
43
|
import { COLLECTION_ACTION as je, useCollection as ze } from "./hooks/useCollection.mjs";
|
|
@@ -54,15 +53,15 @@ import { svgIconPropType as xo, toIconClass as fo, toIconName as lo } from "./ic
|
|
|
54
53
|
import { Typography as co } from "./typography/Typography.mjs";
|
|
55
54
|
import { DragAndDrop as Co } from "./drag-n-drop/index.mjs";
|
|
56
55
|
import { Draggable as Eo } from "./Draggable.mjs";
|
|
57
|
-
import { Droppable as
|
|
58
|
-
import { useDraggable as
|
|
56
|
+
import { Droppable as go } from "./Droppable.mjs";
|
|
57
|
+
import { useDraggable as bo } from "./hooks/useDraggable.mjs";
|
|
59
58
|
import { useDroppable as To } from "./hooks/useDroppable.mjs";
|
|
60
59
|
import { kendoThemeMaps as Bo } from "./theme.mjs";
|
|
61
60
|
import { memoizeOne as Mo } from "./memoize.mjs";
|
|
62
61
|
import { Navigation as yo } from "./navigation.mjs";
|
|
63
|
-
import { getActiveElement as
|
|
62
|
+
import { getActiveElement as wo, getInnerActiveElement as No } from "./getActiveElement.mjs";
|
|
64
63
|
import { TreeFieldsService as Uo } from "./tree-utils/FieldsService.mjs";
|
|
65
|
-
import { SortedPublicItemIds as
|
|
64
|
+
import { SortedPublicItemIds as Ro } from "./tree-utils/SortedPublicItemIds.mjs";
|
|
66
65
|
import { addItem as Vo, areAllDirectChildrenChecked as Wo, getAllDirectIndirectChildrenIds as Go, getAllParents as Ho, hasChildren as Ko, isEnabledAndAllParentsEnabled as jo, isItemExpandedAndWithChildren as zo, removeItem as Zo, resolveItemId as Xo, resolveItemsIds as Yo, updateItem as qo } from "./tree-utils/itemUtils.mjs";
|
|
67
66
|
import { getNestedValue as Qo, isArray as $o } from "./tree-utils/misc.mjs";
|
|
68
67
|
import { RowHeightService as or } from "./rowHeightService.mjs";
|
|
@@ -71,23 +70,23 @@ import { uAnimation as mr } from "./unstyled/animations.mjs";
|
|
|
71
70
|
import { uSvgIcon as nr } from "./unstyled/icons.mjs";
|
|
72
71
|
import { uButton as xr, uButtonGroup as fr, uDropDownButton as lr } from "./unstyled/buttons.mjs";
|
|
73
72
|
import { uComboBox as dr, uDropDownList as cr, uDropDownsActionSheet as Ir, uDropDownsBase as Cr } from "./unstyled/dropdowns.mjs";
|
|
74
|
-
import { uCalendar as Er, uDateInput as hr, uDateTimePicker as
|
|
73
|
+
import { uCalendar as Er, uDateInput as hr, uDateTimePicker as gr, uTime as Dr, uTimePicker as br } from "./unstyled/dateinputs.mjs";
|
|
75
74
|
import { radioButtonClasses as Tr, radioGroupClasses as vr, uInput as Br, uMaskedTextBox as Sr, uRadioButton as Mr, uRadioGroup as Lr, uTextBox as yr } from "./unstyled/inputs.mjs";
|
|
76
|
-
import { uError as
|
|
77
|
-
import { uForm as
|
|
75
|
+
import { uError as wr, uFloatingLabel as Nr, uHint as Or, uLabel as Ur } from "./unstyled/labels.mjs";
|
|
76
|
+
import { uForm as Rr } from "./unstyled/form.mjs";
|
|
78
77
|
import { uPopup as Vr } from "./unstyled/popup.mjs";
|
|
79
78
|
import { uGrid as Gr } from "./unstyled/grid.mjs";
|
|
80
|
-
import { actions as Kr, animationStyles as jr, base as zr, buttonPrefix as Zr, calendarPrefix as Xr, comboBoxPrefix as Yr, components as qr, containers as Jr, cssUtils as Qr, cursor as $r, dateInputs as et, ddbPrefix as ot, dimensions as rt, directionMap as tt, dropDownListPrefix as pt, elements as at, fillModeMap as mt, forms as st, grid as nt, gridPrefix as it,
|
|
79
|
+
import { actions as Kr, animationStyles as jr, base as zr, buttonPrefix as Zr, calendarPrefix as Xr, comboBoxPrefix as Yr, components as qr, containers as Jr, cssUtils as Qr, cursor as $r, dateInputs as et, ddbPrefix as ot, dimensions as rt, directionMap as tt, dropDownListPrefix as pt, elements as at, fillModeMap as mt, forms as st, grid as nt, gridPrefix as it, gridRowReorder as xt, icon as ft, inputPrefix as lt, inputs as ut, jsonTheme as dt, labels as ct, maskedPrefix as It, orientationMap as Ct, pickerPrefix as At, popup as Et, radioPrefix as ht, roundedMap as gt, sizeMap as Dt, states as bt, themeColorMap as Pt } from "./unstyled/json-classes.mjs";
|
|
81
80
|
export {
|
|
82
81
|
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
83
82
|
ee as ADAPTIVE_SMALL_BREAKPOINT,
|
|
84
83
|
m as AdaptiveModeContext,
|
|
85
|
-
|
|
84
|
+
De as AsyncFocusBlur,
|
|
86
85
|
x as BrowserSupportService,
|
|
87
86
|
je as COLLECTION_ACTION,
|
|
88
87
|
Co as DragAndDrop,
|
|
89
88
|
Eo as Draggable,
|
|
90
|
-
|
|
89
|
+
go as Droppable,
|
|
91
90
|
oe as FIELD_REGEX,
|
|
92
91
|
re as FOCUSABLE_ELEMENTS,
|
|
93
92
|
te as FOCUSABLE_ELEMENTS_BASE,
|
|
@@ -99,7 +98,7 @@ export {
|
|
|
99
98
|
K as Keys,
|
|
100
99
|
yo as Navigation,
|
|
101
100
|
or as RowHeightService,
|
|
102
|
-
|
|
101
|
+
Ro as SortedPublicItemIds,
|
|
103
102
|
po as SvgIcon,
|
|
104
103
|
pe as TABBABLE_ELEMENTS,
|
|
105
104
|
Uo as TreeFieldsService,
|
|
@@ -121,9 +120,9 @@ export {
|
|
|
121
120
|
I as classNames,
|
|
122
121
|
E as clone,
|
|
123
122
|
h as cloneArray,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
g as cloneDate,
|
|
124
|
+
D as cloneObject,
|
|
125
|
+
b as cloneValue,
|
|
127
126
|
Yr as comboBoxPrefix,
|
|
128
127
|
qr as components,
|
|
129
128
|
Jr as containers,
|
|
@@ -147,46 +146,47 @@ export {
|
|
|
147
146
|
L as focusLastFocusableChild,
|
|
148
147
|
y as focusableChildren,
|
|
149
148
|
st as forms,
|
|
150
|
-
|
|
149
|
+
wo as getActiveElement,
|
|
151
150
|
Go as getAllDirectIndirectChildrenIds,
|
|
152
151
|
Ho as getAllParents,
|
|
153
|
-
|
|
152
|
+
No as getInnerActiveElement,
|
|
154
153
|
se as getItemPath,
|
|
155
154
|
Qo as getNestedValue,
|
|
156
155
|
X as getScrollbarWidth,
|
|
157
156
|
k as getTabIndex,
|
|
158
|
-
|
|
157
|
+
_ as getter,
|
|
159
158
|
nt as grid,
|
|
160
159
|
it as gridPrefix,
|
|
160
|
+
xt as gridRowReorder,
|
|
161
161
|
W as guid,
|
|
162
162
|
Ko as hasChildren,
|
|
163
163
|
de as hasRelativeStackingContext,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
ft as icon,
|
|
165
|
+
lt as inputPrefix,
|
|
166
|
+
ut as inputs,
|
|
167
167
|
$o as isArray,
|
|
168
168
|
jo as isEnabledAndAllParentsEnabled,
|
|
169
169
|
zo as isItemExpandedAndWithChildren,
|
|
170
|
-
|
|
170
|
+
dt as jsonTheme,
|
|
171
171
|
F as keepFocusInContainer,
|
|
172
172
|
Bo as kendoThemeMaps,
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
ct as labels,
|
|
174
|
+
w as lastFocusableChild,
|
|
175
175
|
ne as mapTree,
|
|
176
176
|
ie as mapTreeItem,
|
|
177
|
-
|
|
177
|
+
It as maskedPrefix,
|
|
178
178
|
Mo as memoizeOne,
|
|
179
179
|
z as noop,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
Ct as orientationMap,
|
|
181
|
+
At as pickerPrefix,
|
|
182
|
+
Et as popup,
|
|
183
183
|
Tr as radioButtonClasses,
|
|
184
184
|
vr as radioGroupClasses,
|
|
185
|
-
|
|
185
|
+
ht as radioPrefix,
|
|
186
186
|
Zo as removeItem,
|
|
187
187
|
Xo as resolveItemId,
|
|
188
188
|
Yo as resolveItemsIds,
|
|
189
|
-
|
|
189
|
+
gt as roundedMap,
|
|
190
190
|
Y as setScrollbarWidth,
|
|
191
191
|
J as setter,
|
|
192
192
|
fe as shouldShowValidationUI,
|
|
@@ -194,7 +194,7 @@ export {
|
|
|
194
194
|
bt as states,
|
|
195
195
|
C as strippedClassNames,
|
|
196
196
|
xo as svgIconPropType,
|
|
197
|
-
|
|
197
|
+
Pt as themeColorMap,
|
|
198
198
|
fo as toIconClass,
|
|
199
199
|
lo as toIconName,
|
|
200
200
|
e as treeIdUtils,
|
|
@@ -204,14 +204,14 @@ export {
|
|
|
204
204
|
Er as uCalendar,
|
|
205
205
|
dr as uComboBox,
|
|
206
206
|
hr as uDateInput,
|
|
207
|
-
|
|
207
|
+
gr as uDateTimePicker,
|
|
208
208
|
lr as uDropDownButton,
|
|
209
209
|
cr as uDropDownList,
|
|
210
210
|
Ir as uDropDownsActionSheet,
|
|
211
211
|
Cr as uDropDownsBase,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
wr as uError,
|
|
213
|
+
Nr as uFloatingLabel,
|
|
214
|
+
Rr as uForm,
|
|
215
215
|
Gr as uGrid,
|
|
216
216
|
Or as uHint,
|
|
217
217
|
Br as uInput,
|
|
@@ -222,20 +222,20 @@ export {
|
|
|
222
222
|
Lr as uRadioGroup,
|
|
223
223
|
nr as uSvgIcon,
|
|
224
224
|
yr as uTextBox,
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
Dr as uTime,
|
|
226
|
+
br as uTimePicker,
|
|
227
227
|
qo as updateItem,
|
|
228
228
|
n as useAdaptiveModeContext,
|
|
229
229
|
Oe as useAsyncFocusBlur,
|
|
230
230
|
ze as useCollection,
|
|
231
231
|
We as useCustomComponent,
|
|
232
|
-
|
|
232
|
+
we as useDir,
|
|
233
233
|
Xe as useDocument,
|
|
234
|
-
|
|
234
|
+
bo as useDraggable,
|
|
235
235
|
To as useDroppable,
|
|
236
236
|
Qe as useId,
|
|
237
237
|
eo as useIsomorphicLayoutEffect,
|
|
238
|
-
|
|
238
|
+
_e as useMouse,
|
|
239
239
|
He as usePropsContext,
|
|
240
240
|
ke as useRtl,
|
|
241
241
|
pr as useUnstyled,
|
package/keys.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},t={backspace:"Backspace",tab:"Tab",enter:"Enter",shift:"Shift",esc:"Escape",space:" ",pageUp:"PageUp",pageDown:"PageDown",end:"End",home:"Home",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",delete:"Delete"};exports.KEYS=t;exports.Keys=e;
|
package/keys.mjs
CHANGED
package/memoize.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t,l){return t===l||Number.isNaN(t)&&Number.isNaN(l)}function a(t,l){if(t.length!==l.length)return!1;for(let e=0;e<t.length;e++)if(!n(t[e],l[e]))return!1;return!0}function s(t,l=a){let e=null;function i(...r){if(e&&e.lastThis===this&&l(r,e.lastArgs))return e.lastResult;const u=t.apply(this,r);return e={lastResult:u,lastArgs:r,lastThis:this},u}return i.clear=function(){e=null},i}exports.memoizeOne=s;
|
package/memoize.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
function n(e, l) {
|
|
10
9
|
return e === l || Number.isNaN(e) && Number.isNaN(l);
|
|
11
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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{constructor(t){this.rovingTabIndex=!0,this.update=()=>{},this.setFocusClass=s=>{s.target.classList.add(this.focusClass)},this.disableTabindexForRest=s=>{this.elements.forEach(e=>{e!==s&&e.setAttribute("tabindex","-1")})},this.focusNextIndex=(s,e,i)=>{const n=e===1?this.next(s,i):this.previous(s,i);return this.focusElement(n,s),n},this.tabIndex=t.tabIndex||0,this.root=t.root,this.selectors=t.selectors,this.focusOptions=t.focusOptions||{preventScroll:!0},this.rovingTabIndex=t.rovingTabIndex!==void 0?t.rovingTabIndex:!0,this.mouseEvents=t.mouseEvents||{},this.keyboardEvents=t.keyboardEvents||{},this.focusClass=t.focusClass,this.lastFocused=null}get elements(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]}get first(){return this.root.current&&this.root.current.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}next(t,s){const e=s?this.customElements(s):this.elements;let i=e.indexOf(t)+1;return i=i<0?e.length-1:i,e[i%e.length]}previous(t,s){const e=s?this.customElements(s):this.elements;let i=e.indexOf(t)-1;return i=i<0?e.length-1:i,e[i%e.length]}focusNext(t,s){return this.focusNextIndex(t,1,s)}focusPrevious(t,s){return this.focusNextIndex(t,-1,s)}triggerKeyboardEvent(t,s){const e=this.target(t.target),i=e&&e.closest(this.selectors.join(",")),n=t.key===" "?"Space":t.key,r=t.nativeEvent.type;i&&this.keyboardEvents[r][n]&&this.keyboardEvents[r][n].call(void 0,i,this,t,s)}triggerMouseEvent(t){const s=this.target(t.target),e=s&&s.closest(this.selectors.join(",")),i=t.nativeEvent.type;e&&this.mouseEvents[i].call(void 0,e,this,t)}focusElement(t,s){t&&(s&&(this.rovingTabIndex&&s.setAttribute("tabindex","-1"),this.focusClass&&(this.removeFocusClass(s),s.removeEventListener("focus",this.setFocusClass))),this.rovingTabIndex&&t.setAttribute("tabindex",String(this.tabIndex)),this.focusClass&&(t.classList.add(this.focusClass),t.addEventListener("focus",this.setFocusClass)),t.focus(this.focusOptions),this.lastFocused=t)}initializeRovingTab(t){const s=t?this.elements[t]:this.first;s&&(this.focusClass&&s.addEventListener("focus",this.setFocusClass),s.setAttribute("tabindex",String(this.tabIndex)),this.disableTabindexForRest(s))}removeFocusListener(){this.lastFocused&&this.lastFocused.removeEventListener("focus",this.setFocusClass)}removeFocusClass(t){this.focusClass&&t.classList.remove(this.focusClass)}customElements(t){return this.root.current?Array.from(this.root.current.querySelectorAll(t.join(","))):[]}target(t){var n;const s=t,e=s&&s.ownerDocument||null,i=e&&((n=e==null?void 0:e.defaultView)==null?void 0:n.Element)||Element;return t instanceof i?t:null}}exports.Navigation=o;
|
package/navigation.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
class l {
|
|
10
9
|
constructor(t) {
|
|
11
10
|
this.rovingTabIndex = !0, this.update = () => {
|
package/noop.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=function(){};exports.noop=o;
|
package/noop.mjs
CHANGED
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
const n = function() {
|
|
8
|
+
const o = function() {
|
|
10
9
|
};
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
o as noop
|
|
13
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-common",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0-develop.10",
|
|
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",
|
package/rowHeightService.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{constructor(t=0,s,r,h){this.total=t,this.offsets=[],this.heights=[];let i=0;for(let e=0;e<t;e++){this.offsets.push(i);const f=h&&h[e].expanded&&h[e].rowType==="data"?r:s;i+=f,this.heights.push(f)}}height(t){return this.heights[t]}index(t){for(let s=0;s<this.offsets.length;s++){if(t===this.offsets[s])return s;if(t<this.offsets[s])return s-1}return this.total-1}offset(t){return this.offsets[t]}totalHeight(){const t=this.offsets[this.offsets.length-1],s=this.heights[this.heights.length-1];return t+s}}exports.RowHeightService=o;
|
package/rowHeightService.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
class g {
|
|
10
9
|
constructor(t = 0, s, r, h) {
|
|
11
10
|
this.total = t, this.offsets = [], this.heights = [];
|
package/scrollbarWidth.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./browser-support.service.js"),t=require("./canUseDOM.js"),c=()=>!t.canUseDOM||!document.body?!1:new e.BrowserSupportService().scrollbarWidth,s=r=>{if(!t.canUseDOM||!document.body)return!1;const o=r||new e.BrowserSupportService().scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",`${o}px`)};exports.getScrollbarWidth=c;exports.setScrollbarWidth=s;
|
package/scrollbarWidth.mjs
CHANGED
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (!o || !document.body)
|
|
8
|
+
import { BrowserSupportService as o } from "./browser-support.service.mjs";
|
|
9
|
+
import { canUseDOM as t } from "./canUseDOM.mjs";
|
|
10
|
+
const s = () => !t || !document.body ? !1 : new o().scrollbarWidth, d = (r) => {
|
|
11
|
+
if (!t || !document.body)
|
|
13
12
|
return !1;
|
|
14
|
-
const e = r || new
|
|
13
|
+
const e = r || new o().scrollbarWidth;
|
|
15
14
|
document.body.style.setProperty("--kendo-scrollbar-width", `${e}px`);
|
|
16
15
|
};
|
|
17
16
|
export {
|
package/setter.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./fieldList.js"),n={};n.undefined=t=>t;const l=(t,e)=>e&&e.arrays&&!isNaN(Number(t))?[]:{};function d(t){if(n[t])return n[t];const e=a.fieldList(t);return n[t]=(u,c,i)=>{let r=u;const o=e.length-1;for(let s=0;s<o&&r;s++)r=r[e[s]]=r[e[s]]||l(e[s+1],i);r[e[o]]=c},n[t]}exports.setter=d;
|
package/setter.mjs
CHANGED
|
@@ -5,23 +5,22 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return s[t] = (u, c, a) => {
|
|
8
|
+
import { fieldList as f } from "./fieldList.mjs";
|
|
9
|
+
const o = {};
|
|
10
|
+
o.undefined = (t) => t;
|
|
11
|
+
const i = (t, e) => e && e.arrays && !isNaN(Number(t)) ? [] : {};
|
|
12
|
+
function h(t) {
|
|
13
|
+
if (o[t])
|
|
14
|
+
return o[t];
|
|
15
|
+
const e = f(t);
|
|
16
|
+
return o[t] = (u, a, c) => {
|
|
18
17
|
let r = u;
|
|
19
|
-
const
|
|
20
|
-
for (let n = 0; n <
|
|
21
|
-
r = r[e[n]] = r[e[n]] ||
|
|
22
|
-
r[e[
|
|
23
|
-
},
|
|
18
|
+
const s = e.length - 1;
|
|
19
|
+
for (let n = 0; n < s && r; n++)
|
|
20
|
+
r = r[e[n]] = r[e[n]] || i(e[n + 1], c);
|
|
21
|
+
r[e[s]] = a;
|
|
22
|
+
}, o[t];
|
|
24
23
|
}
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
h as setter
|
|
27
26
|
};
|
package/theme.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};exports.kendoThemeMaps=e;
|
package/theme.mjs
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
const e = {
|
|
8
|
+
const a = {
|
|
10
9
|
sizeMap: {
|
|
11
10
|
small: "sm",
|
|
12
11
|
medium: "md",
|
|
@@ -23,5 +22,5 @@ const e = {
|
|
|
23
22
|
}
|
|
24
23
|
};
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
a as kendoThemeMaps
|
|
27
26
|
};
|
package/trappedFocus.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./keys.js"),l=require("./constants/main.js"),a=(s,o=l.FOCUSABLE_ELEMENTS)=>s.querySelectorAll(o.join(",")),r=(s,o=l.FOCUSABLE_ELEMENTS)=>{if(s){const t=a(s,o);if(t.length&&t[0].focus)return t[0]}},c=(s,o=l.FOCUSABLE_ELEMENTS)=>{if(s){const t=a(s,o);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},u=(s,o)=>{if(s){const t=r(s,o);t&&t.focus()}},b=(s,o)=>{if(s){const t=c(s,o);t&&t.focus()}},n=(s,o,t)=>{if(!(!o||s.keyCode!==f.Keys.tab)&&o){const e=r(o,t),i=c(o,t);e&&i&&!s.shiftKey&&s.target===i&&(s.preventDefault(),e.focus()),e&&i&&s.shiftKey&&s.target===e&&(s.preventDefault(),i.focus()),e||s.preventDefault()}},C=(s,o,t,e)=>{let i=!0;if(s.keyCode!==f.Keys.enter&&s.target===o){t&&t(!1);return}s.keyCode===f.Keys.enter&&s.target===o?(i=!0,setTimeout(()=>{u(o,e)},1)):s.keyCode===f.Keys.esc?(i=!1,o.focus()):n(s,o,e),t&&t(i)},d=(s,o)=>{const t=a(s,o);t&&t.forEach(e=>{e.tabIndex=0})},h=(s,o)=>{const t=a(s,o);t&&t.forEach(e=>{e.tabIndex=-1})};exports.applyTrappedFocus=C;exports.disableNavigatableContainer=h;exports.enableNavigatableContainer=d;exports.firstFocusableChild=r;exports.focusFirstFocusableChild=u;exports.focusLastFocusableChild=b;exports.focusableChildren=a;exports.keepFocusInContainer=n;exports.lastFocusableChild=c;
|
package/trappedFocus.mjs
CHANGED
|
@@ -5,16 +5,15 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import { Keys as r } from "./keys.mjs";
|
|
10
9
|
import { FOCUSABLE_ELEMENTS as u } from "./constants/main.mjs";
|
|
11
|
-
const c = (s, f = u) => s.querySelectorAll(f.join(",")),
|
|
10
|
+
const c = (s, f = u) => s.querySelectorAll(f.join(",")), a = (s, f = u) => {
|
|
12
11
|
if (s) {
|
|
13
12
|
const t = c(s, f);
|
|
14
13
|
if (t.length && t[0].focus)
|
|
15
14
|
return t[0];
|
|
16
15
|
}
|
|
17
|
-
},
|
|
16
|
+
}, l = (s, f = u) => {
|
|
18
17
|
if (s) {
|
|
19
18
|
const t = c(s, f);
|
|
20
19
|
if (t.length && t[t.length - 1].focus)
|
|
@@ -22,17 +21,17 @@ const c = (s, f = u) => s.querySelectorAll(f.join(",")), l = (s, f = u) => {
|
|
|
22
21
|
}
|
|
23
22
|
}, e = (s, f) => {
|
|
24
23
|
if (s) {
|
|
25
|
-
const t =
|
|
24
|
+
const t = a(s, f);
|
|
26
25
|
t && t.focus();
|
|
27
26
|
}
|
|
28
27
|
}, b = (s, f) => {
|
|
29
28
|
if (s) {
|
|
30
|
-
const t =
|
|
29
|
+
const t = l(s, f);
|
|
31
30
|
t && t.focus();
|
|
32
31
|
}
|
|
33
32
|
}, n = (s, f, t) => {
|
|
34
33
|
if (!(!f || s.keyCode !== r.tab) && f) {
|
|
35
|
-
const o =
|
|
34
|
+
const o = a(f, t), i = l(f, t);
|
|
36
35
|
o && i && !s.shiftKey && s.target === i && (s.preventDefault(), o.focus()), o && i && s.shiftKey && s.target === o && (s.preventDefault(), i.focus()), o || s.preventDefault();
|
|
37
36
|
}
|
|
38
37
|
}, d = (s, f, t, o) => {
|
|
@@ -59,10 +58,10 @@ export {
|
|
|
59
58
|
d as applyTrappedFocus,
|
|
60
59
|
y as disableNavigatableContainer,
|
|
61
60
|
g as enableNavigatableContainer,
|
|
62
|
-
|
|
61
|
+
a as firstFocusableChild,
|
|
63
62
|
e as focusFirstFocusableChild,
|
|
64
63
|
b as focusLastFocusableChild,
|
|
65
64
|
c as focusableChildren,
|
|
66
65
|
n as keepFocusInContainer,
|
|
67
|
-
|
|
66
|
+
l as lastFocusableChild
|
|
68
67
|
};
|
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./misc.js");class i{constructor(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}expanded(e){return d.getNestedValue(this.expandField,e)}selected(e){return d.getNestedValue(this.selectField,e)}text(e){return d.getNestedValue(this.textField,e)}disabled(e){return d.getNestedValue(this.disableField,e)}hasChildren(e){return d.getNestedValue(this.hasChildrenField,e)}children(e){const t=d.getNestedValue(this.childrenField,e);return t||[]}checked(e){return d.getNestedValue(this.checkField,e)}checkIndeterminate(e){return d.getNestedValue(this.checkIndeterminateField,e)}focusId(e){return this.focusIdField&&d.getNestedValue(this.focusIdField,e)}getChildrenField(){return this.childrenField}}exports.TreeFieldsService=i;
|
|
@@ -5,39 +5,38 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
import { getNestedValue as i } from "./misc.mjs";
|
|
8
|
+
import { getNestedValue as d } from "./misc.mjs";
|
|
10
9
|
class h {
|
|
11
10
|
constructor(e) {
|
|
12
11
|
this.expandField = e.expandField, this.selectField = e.selectField, this.hasChildrenField = e.hasChildrenField, this.childrenField = e.childrenField, this.textField = e.textField, this.disableField = e.disableField, this.checkField = e.checkField, this.checkIndeterminateField = e.checkIndeterminateField, this.focusIdField = e.focusIdField;
|
|
13
12
|
}
|
|
14
13
|
expanded(e) {
|
|
15
|
-
return
|
|
14
|
+
return d(this.expandField, e);
|
|
16
15
|
}
|
|
17
16
|
selected(e) {
|
|
18
|
-
return
|
|
17
|
+
return d(this.selectField, e);
|
|
19
18
|
}
|
|
20
19
|
text(e) {
|
|
21
|
-
return
|
|
20
|
+
return d(this.textField, e);
|
|
22
21
|
}
|
|
23
22
|
disabled(e) {
|
|
24
|
-
return
|
|
23
|
+
return d(this.disableField, e);
|
|
25
24
|
}
|
|
26
25
|
hasChildren(e) {
|
|
27
|
-
return
|
|
26
|
+
return d(this.hasChildrenField, e);
|
|
28
27
|
}
|
|
29
28
|
children(e) {
|
|
30
|
-
const
|
|
31
|
-
return
|
|
29
|
+
const i = d(this.childrenField, e);
|
|
30
|
+
return i || [];
|
|
32
31
|
}
|
|
33
32
|
checked(e) {
|
|
34
|
-
return
|
|
33
|
+
return d(this.checkField, e);
|
|
35
34
|
}
|
|
36
35
|
checkIndeterminate(e) {
|
|
37
|
-
return
|
|
36
|
+
return d(this.checkIndeterminateField, e);
|
|
38
37
|
}
|
|
39
38
|
focusId(e) {
|
|
40
|
-
return this.focusIdField &&
|
|
39
|
+
return this.focusIdField && d(this.focusIdField, e);
|
|
41
40
|
}
|
|
42
41
|
getChildrenField() {
|
|
43
42
|
return this.childrenField;
|
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=5e4;class r{constructor(){this.objects=[]}init(e){let t;for(let s=0;s<e.length;s++)s%o===0&&(t={},this.objects.push(t)),t[e[s]]=!0}hasId(e){return this.objects.some(t=>t[e])}}exports.SortedPublicItemIds=r;
|
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u="",l="0",e="_";function I(t,r,s){if(E(t))return r[Number(t)];const n=r[Number(g(t))],o=n&&n[s]||[];return o.length?I(c(t),o,s):void 0}function g(t){return a(t)?t:t.split(e)[0]}function c(t){if(a(t))return t;const r=t.indexOf(e);return t.substring(r+1)}function d(t){return S("0",t)}function S(t,r){return t=t.toString(),r?r+e+t:t}function b(t){const r=t.lastIndexOf(e);return r<0?u:t.substring(0,r)}function a(t){return t===u||t.indexOf(e)<0}function E(t){return t!==u&&t.indexOf(e)<0}function P(t){return t.split(e)}function f(t){const r=t.lastIndexOf(e);return r<0?t:t.substring(r+1)}function R(t){return f(t)===l}function h(t,r){const s=r;t="r"+e+t,r="r"+e+r;const n=b(t)+e;if(r.startsWith(n)){const o=r.substring(n.length);if(o){const i=g(o);if(Number(f(t))<Number(i)){const O=n+(Number(i)-1).toString()+o.substring(i.length);return c(O)}}}return s}exports.EMPTY_ID=u;exports.SEPARATOR=e;exports.ZERO_LEVEL_ZERO_NODE_ID=l;exports.createId=S;exports.getAllShortIds=P;exports.getDecrementedItemIdAfterRemoval=h;exports.getDirectParentId=b;exports.getFirstChildId=d;exports.getIdWithoutRootParentId=c;exports.getItemById=I;exports.getRootParentId=g;exports.getShortId=f;exports.isIdEmptyOrZeroLevel=a;exports.isIdZeroLevel=E;exports.isItemFirstFromSiblings=R;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
const c = "", l = "0", r = "_";
|
|
10
9
|
function S(t, n, s) {
|
|
11
10
|
if (x(t))
|