@progress/kendo-react-common 9.0.0-develop.2 → 9.0.0-develop.20

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/index.mjs CHANGED
@@ -8,12 +8,12 @@
8
8
  "use client";
9
9
  import * as e from "./tree-utils/itemIdUtils.mjs";
10
10
  import { ZIndexContext as t, useZIndexContext as p } from "./contexts/ZIndexContext.mjs";
11
- import { BrowserSupportService as a } from "./browser-support.service.mjs";
11
+ import { BrowserSupportService as s } from "./browser-support.service.mjs";
12
12
  import { canUseDOM as n } from "./canUseDOM.mjs";
13
13
  import { canUseRef as x } from "./canUseRef.mjs";
14
14
  import { classNames as l, strippedClassNames as u } from "./classNames.mjs";
15
15
  import { clone as c, cloneArray as I, cloneDate as C, cloneObject as h, cloneValue as b } from "./clone.mjs";
16
- import { applyTrappedFocus as E, disableNavigatableContainer as D, enableNavigatableContainer as P, firstFocusableChild as A, focusFirstFocusableChild as S, focusLastFocusableChild as T, focusableChildren as B, keepFocusInContainer as v, lastFocusableChild as F } from "./trappedFocus.mjs";
16
+ import { applyTrappedFocus as D, disableNavigatableContainer as E, enableNavigatableContainer as P, firstFocusableChild as A, focusFirstFocusableChild as S, focusLastFocusableChild as T, focusableChildren as B, keepFocusInContainer as v, lastFocusableChild as y } from "./trappedFocus.mjs";
17
17
  import { FormComponent as L } from "./FormComponent.mjs";
18
18
  import { getTabIndex as w } from "./getTabIndex.mjs";
19
19
  import { getter as k } from "./getter.mjs";
@@ -24,91 +24,93 @@ import { getScrollbarWidth as j, setScrollbarWidth as z } from "./scrollbarWidth
24
24
  import { setter as Z } from "./setter.mjs";
25
25
  import { FIELD_REGEX as Y, FOCUSABLE_ELEMENTS as q, FOCUSABLE_ELEMENTS_BASE as J, TABBABLE_ELEMENTS as Q } from "./constants/main.mjs";
26
26
  import { extendDataItem as ee, getItemPath as oe, mapTree as re, mapTreeItem as te } from "./treeDataOperations.mjs";
27
- import { shouldShowValidationUI as se, validatePackage as ae } from "./validate-package.mjs";
27
+ import { shouldShowValidationUI as ae, validatePackage as se } from "./validate-package.mjs";
28
28
  import { hasRelativeStackingContext as ne } from "./hasRelativeStackingContext.mjs";
29
29
  import { WatermarkOverlay as xe } from "./watermark/WatermarkOverlay.mjs";
30
- import { dispatchEvent as le } from "./events/dispatchEvent.mjs";
31
- import { AsyncFocusBlur as de } from "./hocs/AsyncFocusBlur.mjs";
32
- import { createPropsContext as Ie, withPropsContext as Ce } from "./hocs/withPropsContext.mjs";
33
- import { withIdHOC as be } from "./hocs/use-id-hoc.mjs";
34
- import { withUnstyledHOC as Ee } from "./hocs/use-unstyled-hoc.mjs";
35
- import { useDir as Pe } from "./hooks/useDir.mjs";
36
- import { useAsyncFocusBlur as Se } from "./hooks/useAsyncFocusBlur.mjs";
37
- import { useRtl as Be } from "./hooks/useRtl.mjs";
38
- import { useMouse as Fe } from "./hooks/useMouse.mjs";
39
- import { useCustomComponent as Le } from "./hooks/useCustomComponent.mjs";
40
- import { usePropsContext as we } from "./hooks/usePropsContext.mjs";
41
- import { COLLECTION_ACTION as ke, useCollection as Oe } from "./hooks/useCollection.mjs";
42
- import { useDocument as Re } from "./hooks/useDocument.mjs";
43
- import { useWindow as _e } from "./hooks/useWindow.mjs";
44
- import { useId as He } from "./hooks/use-id.mjs";
45
- import { useIsomorphicLayoutEffect as je } from "./hooks/use-isomorphic-layout-effect.mjs";
46
- import { Icon as Ke } from "./icons/Icon.mjs";
47
- import { SvgIcon as Xe } from "./icons/SvgIcon.mjs";
48
- import { IconWrap as qe } from "./icons/IconWrap.mjs";
49
- import { IconsContext as Qe } from "./icons/IconsContext.mjs";
50
- import { svgIconPropType as eo, toIconClass as oo, toIconName as ro } from "./icons/utils.mjs";
51
- import { Typography as po } from "./typography/Typography.mjs";
52
- import { DragAndDrop as ao } from "./drag-n-drop/index.mjs";
53
- import { Draggable as no } from "./Draggable.mjs";
54
- import { Droppable as xo } from "./Droppable.mjs";
55
- import { useDraggable as lo } from "./hooks/useDraggable.mjs";
56
- import { useDroppable as co } from "./hooks/useDroppable.mjs";
57
- import { kendoThemeMaps as Co } from "./theme.mjs";
58
- import { memoizeOne as bo } from "./memoize.mjs";
59
- import { Navigation as Eo } from "./navigation.mjs";
60
- import { getActiveElement as Po, getInnerActiveElement as Ao } from "./getActiveElement.mjs";
61
- import { TreeFieldsService as To } from "./tree-utils/FieldsService.mjs";
62
- import { SortedPublicItemIds as vo } from "./tree-utils/SortedPublicItemIds.mjs";
63
- import { addItem as yo, areAllDirectChildrenChecked as Lo, getAllDirectIndirectChildrenIds as Mo, getAllParents as wo, hasChildren as No, isEnabledAndAllParentsEnabled as ko, isItemExpandedAndWithChildren as Oo, removeItem as Uo, resolveItemId as Ro, resolveItemsIds as Wo, updateItem as _o } from "./tree-utils/itemUtils.mjs";
64
- import { getNestedValue as Ho, isArray as Vo } from "./tree-utils/misc.mjs";
65
- import { RowHeightService as zo } from "./rowHeightService.mjs";
66
- import { UnstyledContext as Zo, useUnstyled as Xo } from "./unstyled/main.mjs";
67
- import { uAnimation as qo } from "./unstyled/animations.mjs";
68
- import { uSvgIcon as Qo } from "./unstyled/icons.mjs";
69
- import { uButton as er, uButtonGroup as or, uDropDownButton as rr } from "./unstyled/buttons.mjs";
70
- import { uComboBox as pr, uDropDownList as sr, uDropDownsActionSheet as ar, uDropDownsBase as mr } from "./unstyled/dropdowns.mjs";
71
- import { uCalendar as ir, uDateInput as xr, uDateTimePicker as fr, uTime as lr, uTimePicker as ur } from "./unstyled/dateinputs.mjs";
72
- import { radioButtonClasses as cr, radioGroupClasses as Ir, uInput as Cr, uMaskedTextBox as hr, uRadioButton as br, uRadioGroup as gr, uTextBox as Er } from "./unstyled/inputs.mjs";
73
- import { uError as Pr, uFloatingLabel as Ar, uHint as Sr, uLabel as Tr } from "./unstyled/labels.mjs";
74
- import { uForm as vr } from "./unstyled/form.mjs";
75
- import { uPopup as yr } from "./unstyled/popup.mjs";
76
- import { uGrid as Mr } from "./unstyled/grid.mjs";
77
- import { actions as Nr, animationStyles as kr, base as Or, buttonPrefix as Ur, calendarPrefix as Rr, comboBoxPrefix as Wr, components as _r, containers as Gr, cssUtils as Hr, cursor as Vr, dateInputs as jr, ddbPrefix as zr, dimensions as Kr, directionMap as Zr, dropDownListPrefix as Xr, elements as Yr, fillModeMap as qr, forms as Jr, grid as Qr, gridPrefix as $r, icon as et, inputPrefix as ot, inputs as rt, jsonTheme as tt, labels as pt, maskedPrefix as st, orientationMap as at, pickerPrefix as mt, popup as nt, radioPrefix as it, roundedMap as xt, sizeMap as ft, states as lt, themeColorMap as ut } from "./unstyled/json-classes.mjs";
30
+ import { applyDefaultProps as le } from "./apply-default-props.mjs";
31
+ import { dispatchEvent as de } from "./events/dispatchEvent.mjs";
32
+ import { AsyncFocusBlur as Ie } from "./hocs/AsyncFocusBlur.mjs";
33
+ import { createPropsContext as he, withPropsContext as be } from "./hocs/withPropsContext.mjs";
34
+ import { withIdHOC as De } from "./hocs/use-id-hoc.mjs";
35
+ import { withUnstyledHOC as Pe } from "./hocs/use-unstyled-hoc.mjs";
36
+ import { useDir as Se } from "./hooks/useDir.mjs";
37
+ import { useAsyncFocusBlur as Be } from "./hooks/useAsyncFocusBlur.mjs";
38
+ import { useRtl as ye } from "./hooks/useRtl.mjs";
39
+ import { useMouse as Le } from "./hooks/useMouse.mjs";
40
+ import { useCustomComponent as we } from "./hooks/useCustomComponent.mjs";
41
+ import { usePropsContext as ke } from "./hooks/usePropsContext.mjs";
42
+ import { COLLECTION_ACTION as Ue, useCollection as Re } from "./hooks/useCollection.mjs";
43
+ import { useDocument as _e } from "./hooks/useDocument.mjs";
44
+ import { useWindow as He } from "./hooks/useWindow.mjs";
45
+ import { useId as je } from "./hooks/use-id.mjs";
46
+ import { useIsomorphicLayoutEffect as Ke } from "./hooks/use-isomorphic-layout-effect.mjs";
47
+ import { Icon as Xe } from "./icons/Icon.mjs";
48
+ import { SvgIcon as qe } from "./icons/SvgIcon.mjs";
49
+ import { IconWrap as Qe } from "./icons/IconWrap.mjs";
50
+ import { IconsContext as eo } from "./icons/IconsContext.mjs";
51
+ import { svgIconPropType as ro, toIconClass as to, toIconName as po } from "./icons/utils.mjs";
52
+ import { Typography as so } from "./typography/Typography.mjs";
53
+ import { DragAndDrop as no } from "./drag-n-drop/index.mjs";
54
+ import { Draggable as xo } from "./Draggable.mjs";
55
+ import { Droppable as lo } from "./Droppable.mjs";
56
+ import { useDraggable as co } from "./hooks/useDraggable.mjs";
57
+ import { useDroppable as Co } from "./hooks/useDroppable.mjs";
58
+ import { kendoThemeMaps as bo } from "./theme.mjs";
59
+ import { memoizeOne as Do } from "./memoize.mjs";
60
+ import { Navigation as Po } from "./navigation.mjs";
61
+ import { getActiveElement as So, getInnerActiveElement as To } from "./getActiveElement.mjs";
62
+ import { TreeFieldsService as vo } from "./tree-utils/FieldsService.mjs";
63
+ import { SortedPublicItemIds as Fo } from "./tree-utils/SortedPublicItemIds.mjs";
64
+ import { addItem as Mo, areAllDirectChildrenChecked as wo, getAllDirectIndirectChildrenIds as No, getAllParents as ko, hasChildren as Oo, isEnabledAndAllParentsEnabled as Uo, isItemExpandedAndWithChildren as Ro, removeItem as Wo, resolveItemId as _o, resolveItemsIds as Go, updateItem as Ho } from "./tree-utils/itemUtils.mjs";
65
+ import { getNestedValue as jo, isArray as zo } from "./tree-utils/misc.mjs";
66
+ import { RowHeightService as Zo } from "./rowHeightService.mjs";
67
+ import { UnstyledContext as Yo, useUnstyled as qo } from "./unstyled/main.mjs";
68
+ import { uAnimation as Qo } from "./unstyled/animations.mjs";
69
+ import { uSvgIcon as er } from "./unstyled/icons.mjs";
70
+ import { uButton as rr, uButtonGroup as tr, uDropDownButton as pr } from "./unstyled/buttons.mjs";
71
+ import { uComboBox as sr, uDropDownList as mr, uDropDownsActionSheet as nr, uDropDownsBase as ir } from "./unstyled/dropdowns.mjs";
72
+ import { uCalendar as fr, uDateInput as lr, uDateTimePicker as ur, uTime as dr, uTimePicker as cr } from "./unstyled/dateinputs.mjs";
73
+ import { radioButtonClasses as Cr, radioGroupClasses as hr, uInput as br, uMaskedTextBox as gr, uRadioButton as Dr, uRadioGroup as Er, uTextBox as Pr } from "./unstyled/inputs.mjs";
74
+ import { uError as Sr, uFloatingLabel as Tr, uHint as Br, uLabel as vr } from "./unstyled/labels.mjs";
75
+ import { uForm as Fr } from "./unstyled/form.mjs";
76
+ import { uPopup as Mr } from "./unstyled/popup.mjs";
77
+ import { uGrid as Nr } from "./unstyled/grid.mjs";
78
+ import { actions as Or, animationStyles as Ur, base as Rr, buttonPrefix as Wr, calendarPrefix as _r, comboBoxPrefix as Gr, components as Hr, containers as Vr, cssUtils as jr, cursor as zr, dateInputs as Kr, 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, icon as rt, inputPrefix as tt, inputs as pt, jsonTheme as at, labels as st, maskedPrefix as mt, orientationMap as nt, pickerPrefix as it, popup as xt, radioPrefix as ft, roundedMap as lt, sizeMap as ut, states as dt, themeColorMap as ct } from "./unstyled/json-classes.mjs";
78
79
  export {
79
- de as AsyncFocusBlur,
80
- a as BrowserSupportService,
81
- ke as COLLECTION_ACTION,
82
- ao as DragAndDrop,
83
- no as Draggable,
84
- xo as Droppable,
80
+ Ie as AsyncFocusBlur,
81
+ s as BrowserSupportService,
82
+ Ue as COLLECTION_ACTION,
83
+ no as DragAndDrop,
84
+ xo as Draggable,
85
+ lo as Droppable,
85
86
  Y as FIELD_REGEX,
86
87
  q as FOCUSABLE_ELEMENTS,
87
88
  J as FOCUSABLE_ELEMENTS_BASE,
88
89
  L as FormComponent,
89
- Ke as Icon,
90
- qe as IconWrap,
91
- Qe as IconsContext,
90
+ Xe as Icon,
91
+ Qe as IconWrap,
92
+ eo as IconsContext,
92
93
  W as KEYS,
93
94
  _ as Keys,
94
- Eo as Navigation,
95
- zo as RowHeightService,
96
- vo as SortedPublicItemIds,
97
- Xe as SvgIcon,
95
+ Po as Navigation,
96
+ Zo as RowHeightService,
97
+ Fo as SortedPublicItemIds,
98
+ qe as SvgIcon,
98
99
  Q as TABBABLE_ELEMENTS,
99
- To as TreeFieldsService,
100
- po as Typography,
101
- Zo as UnstyledContext,
100
+ vo as TreeFieldsService,
101
+ so as Typography,
102
+ Yo as UnstyledContext,
102
103
  xe as WatermarkOverlay,
103
104
  t as ZIndexContext,
104
- Nr as actions,
105
- yo as addItem,
106
- kr as animationStyles,
107
- E as applyTrappedFocus,
108
- Lo as areAllDirectChildrenChecked,
109
- Or as base,
110
- Ur as buttonPrefix,
111
- Rr as calendarPrefix,
105
+ Or as actions,
106
+ Mo as addItem,
107
+ Ur as animationStyles,
108
+ le as applyDefaultProps,
109
+ D as applyTrappedFocus,
110
+ wo as areAllDirectChildrenChecked,
111
+ Rr as base,
112
+ Wr as buttonPrefix,
113
+ _r as calendarPrefix,
112
114
  n as canUseDOM,
113
115
  x as canUseRef,
114
116
  l as classNames,
@@ -117,123 +119,123 @@ export {
117
119
  C as cloneDate,
118
120
  h as cloneObject,
119
121
  b as cloneValue,
120
- Wr as comboBoxPrefix,
121
- _r as components,
122
- Gr as containers,
123
- Ie as createPropsContext,
124
- Hr as cssUtils,
125
- Vr as cursor,
126
- jr as dateInputs,
127
- zr as ddbPrefix,
128
- Kr as dimensions,
129
- Zr as directionMap,
130
- D as disableNavigatableContainer,
131
- le as dispatchEvent,
132
- Xr as dropDownListPrefix,
133
- Yr as elements,
122
+ Gr as comboBoxPrefix,
123
+ Hr as components,
124
+ Vr as containers,
125
+ he as createPropsContext,
126
+ jr as cssUtils,
127
+ zr as cursor,
128
+ Kr as dateInputs,
129
+ Zr as ddbPrefix,
130
+ Xr as dimensions,
131
+ Yr as directionMap,
132
+ E as disableNavigatableContainer,
133
+ de as dispatchEvent,
134
+ qr as dropDownListPrefix,
135
+ Jr as elements,
134
136
  P as enableNavigatableContainer,
135
137
  ee as extendDataItem,
136
- qr as fillModeMap,
138
+ Qr as fillModeMap,
137
139
  A as firstFocusableChild,
138
140
  S as focusFirstFocusableChild,
139
141
  T as focusLastFocusableChild,
140
142
  B as focusableChildren,
141
- Jr as forms,
142
- Po as getActiveElement,
143
- Mo as getAllDirectIndirectChildrenIds,
144
- wo as getAllParents,
145
- Ao as getInnerActiveElement,
143
+ $r as forms,
144
+ So as getActiveElement,
145
+ No as getAllDirectIndirectChildrenIds,
146
+ ko as getAllParents,
147
+ To as getInnerActiveElement,
146
148
  oe as getItemPath,
147
- Ho as getNestedValue,
149
+ jo as getNestedValue,
148
150
  j as getScrollbarWidth,
149
151
  w as getTabIndex,
150
152
  k as getter,
151
- Qr as grid,
152
- $r as gridPrefix,
153
+ et as grid,
154
+ ot as gridPrefix,
153
155
  U as guid,
154
- No as hasChildren,
156
+ Oo as hasChildren,
155
157
  ne as hasRelativeStackingContext,
156
- et as icon,
157
- ot as inputPrefix,
158
- rt as inputs,
159
- Vo as isArray,
160
- ko as isEnabledAndAllParentsEnabled,
161
- Oo as isItemExpandedAndWithChildren,
162
- tt as jsonTheme,
158
+ rt as icon,
159
+ tt as inputPrefix,
160
+ pt as inputs,
161
+ zo as isArray,
162
+ Uo as isEnabledAndAllParentsEnabled,
163
+ Ro as isItemExpandedAndWithChildren,
164
+ at as jsonTheme,
163
165
  v as keepFocusInContainer,
164
- Co as kendoThemeMaps,
165
- pt as labels,
166
- F as lastFocusableChild,
166
+ bo as kendoThemeMaps,
167
+ st as labels,
168
+ y as lastFocusableChild,
167
169
  re as mapTree,
168
170
  te as mapTreeItem,
169
- st as maskedPrefix,
170
- bo as memoizeOne,
171
+ mt as maskedPrefix,
172
+ Do as memoizeOne,
171
173
  H as noop,
172
- at as orientationMap,
173
- mt as pickerPrefix,
174
- nt as popup,
175
- cr as radioButtonClasses,
176
- Ir as radioGroupClasses,
177
- it as radioPrefix,
178
- Uo as removeItem,
179
- Ro as resolveItemId,
180
- Wo as resolveItemsIds,
181
- xt as roundedMap,
174
+ nt as orientationMap,
175
+ it as pickerPrefix,
176
+ xt as popup,
177
+ Cr as radioButtonClasses,
178
+ hr as radioGroupClasses,
179
+ ft as radioPrefix,
180
+ Wo as removeItem,
181
+ _o as resolveItemId,
182
+ Go as resolveItemsIds,
183
+ lt as roundedMap,
182
184
  z as setScrollbarWidth,
183
185
  Z as setter,
184
- se as shouldShowValidationUI,
185
- ft as sizeMap,
186
- lt as states,
186
+ ae as shouldShowValidationUI,
187
+ ut as sizeMap,
188
+ dt as states,
187
189
  u as strippedClassNames,
188
- eo as svgIconPropType,
189
- ut as themeColorMap,
190
- oo as toIconClass,
191
- ro as toIconName,
190
+ ro as svgIconPropType,
191
+ ct as themeColorMap,
192
+ to as toIconClass,
193
+ po as toIconName,
192
194
  e as treeIdUtils,
193
- qo as uAnimation,
194
- er as uButton,
195
- or as uButtonGroup,
196
- ir as uCalendar,
197
- pr as uComboBox,
198
- xr as uDateInput,
199
- fr as uDateTimePicker,
200
- rr as uDropDownButton,
201
- sr as uDropDownList,
202
- ar as uDropDownsActionSheet,
203
- mr as uDropDownsBase,
204
- Pr as uError,
205
- Ar as uFloatingLabel,
206
- vr as uForm,
207
- Mr as uGrid,
208
- Sr as uHint,
209
- Cr as uInput,
210
- Tr as uLabel,
211
- hr as uMaskedTextBox,
212
- yr as uPopup,
213
- br as uRadioButton,
214
- gr as uRadioGroup,
215
- Qo as uSvgIcon,
216
- Er as uTextBox,
217
- lr as uTime,
218
- ur as uTimePicker,
219
- _o as updateItem,
220
- Se as useAsyncFocusBlur,
221
- Oe as useCollection,
222
- Le as useCustomComponent,
223
- Pe as useDir,
224
- Re as useDocument,
225
- lo as useDraggable,
226
- co as useDroppable,
227
- He as useId,
228
- je as useIsomorphicLayoutEffect,
229
- Fe as useMouse,
230
- we as usePropsContext,
231
- Be as useRtl,
232
- Xo as useUnstyled,
233
- _e as useWindow,
195
+ Qo as uAnimation,
196
+ rr as uButton,
197
+ tr as uButtonGroup,
198
+ fr as uCalendar,
199
+ sr as uComboBox,
200
+ lr as uDateInput,
201
+ ur as uDateTimePicker,
202
+ pr as uDropDownButton,
203
+ mr as uDropDownList,
204
+ nr as uDropDownsActionSheet,
205
+ ir as uDropDownsBase,
206
+ Sr as uError,
207
+ Tr as uFloatingLabel,
208
+ Fr as uForm,
209
+ Nr as uGrid,
210
+ Br as uHint,
211
+ br as uInput,
212
+ vr as uLabel,
213
+ gr as uMaskedTextBox,
214
+ Mr as uPopup,
215
+ Dr as uRadioButton,
216
+ Er as uRadioGroup,
217
+ er as uSvgIcon,
218
+ Pr as uTextBox,
219
+ dr as uTime,
220
+ cr as uTimePicker,
221
+ Ho as updateItem,
222
+ Be as useAsyncFocusBlur,
223
+ Re as useCollection,
224
+ we as useCustomComponent,
225
+ Se as useDir,
226
+ _e as useDocument,
227
+ co as useDraggable,
228
+ Co as useDroppable,
229
+ je as useId,
230
+ Ke as useIsomorphicLayoutEffect,
231
+ Le as useMouse,
232
+ ke as usePropsContext,
233
+ ye as useRtl,
234
+ qo as useUnstyled,
235
+ He as useWindow,
234
236
  p as useZIndexContext,
235
- ae as validatePackage,
236
- be as withIdHOC,
237
- Ce as withPropsContext,
238
- Ee as withUnstyledHOC
237
+ se as validatePackage,
238
+ De as withIdHOC,
239
+ be as withPropsContext,
240
+ Pe as withUnstyledHOC
239
241
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-common",
3
- "version": "9.0.0-develop.2",
3
+ "version": "9.0.0-develop.20",
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/trappedFocus.mjs CHANGED
@@ -45,18 +45,12 @@ const c = (s, f = u) => s.querySelectorAll(f.join(",")), l = (s, f = u) => {
45
45
  e(f, o);
46
46
  }, 1)) : s.keyCode === r.esc ? (i = !1, f.focus()) : n(s, f, o), t && t(i);
47
47
  }, g = (s, f) => {
48
- const t = c(
49
- s,
50
- f
51
- );
48
+ const t = c(s, f);
52
49
  t && t.forEach((o) => {
53
50
  o.tabIndex = 0;
54
51
  });
55
52
  }, y = (s, f) => {
56
- const t = c(
57
- s,
58
- f
59
- );
53
+ const t = c(s, f);
60
54
  t && t.forEach((o) => {
61
55
  o.tabIndex = -1;
62
56
  });
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u="",l="0",r="_";function I(t,e,s){if(E(t))return e[Number(t)];{const n=e[Number(c(t))],o=n&&n[s]||[];return o.length?I(g(t),o,s):void 0}}function c(t){return a(t)?t:t.split(r)[0]}function g(t){if(a(t))return t;{const e=t.indexOf(r);return t.substring(e+1)}}function d(t){return S("0",t)}function S(t,e){return t=t.toString(),e?e+r+t:t}function b(t){const e=t.lastIndexOf(r);return e<0?u:t.substring(0,e)}function a(t){return t===u||t.indexOf(r)<0}function E(t){return t!==u&&t.indexOf(r)<0}function P(t){return t.split(r)}function f(t){const e=t.lastIndexOf(r);return e<0?t:t.substring(e+1)}function R(t){return f(t)===l}function h(t,e){const s=e;t="r"+r+t,e="r"+r+e;const n=b(t)+r;if(e.startsWith(n)){const o=e.substring(n.length);if(o){const i=c(o);if(Number(f(t))<Number(i)){const O=n+(Number(i)-1).toString()+o.substring(i.length);return g(O)}}}return s}exports.EMPTY_ID=u;exports.SEPARATOR=r;exports.ZERO_LEVEL_ZERO_NODE_ID=l;exports.createId=S;exports.getAllShortIds=P;exports.getDecrementedItemIdAfterRemoval=h;exports.getDirectParentId=b;exports.getFirstChildId=d;exports.getIdWithoutRootParentId=g;exports.getItemById=I;exports.getRootParentId=c;exports.getShortId=f;exports.isIdEmptyOrZeroLevel=a;exports.isIdZeroLevel=E;exports.isItemFirstFromSiblings=R;
8
+ "use client";"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(c(t))],o=n&&n[s]||[];return o.length?I(g(t),o,s):void 0}function c(t){return a(t)?t:t.split(e)[0]}function g(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=c(o);if(Number(f(t))<Number(i)){const O=n+(Number(i)-1).toString()+o.substring(i.length);return g(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=g;exports.getItemById=I;exports.getRootParentId=c;exports.getShortId=f;exports.isIdEmptyOrZeroLevel=a;exports.isIdZeroLevel=E;exports.isItemFirstFromSiblings=R;
@@ -6,14 +6,12 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- const c = "", b = "0", r = "_";
10
- function S(t, n, o) {
9
+ const c = "", l = "0", r = "_";
10
+ function S(t, n, s) {
11
11
  if (x(t))
12
12
  return n[Number(t)];
13
- {
14
- const e = n[Number(f(t))], s = e && e[o] || [];
15
- return s.length ? S(i(t), s, o) : void 0;
16
- }
13
+ const e = n[Number(f(t))], o = e && e[s] || [];
14
+ return o.length ? S(i(t), o, s) : void 0;
17
15
  }
18
16
  function f(t) {
19
17
  return a(t) ? t : t.split(r)[0];
@@ -21,10 +19,8 @@ function f(t) {
21
19
  function i(t) {
22
20
  if (a(t))
23
21
  return t;
24
- {
25
- const n = t.indexOf(r);
26
- return t.substring(n + 1);
27
- }
22
+ const n = t.indexOf(r);
23
+ return t.substring(n + 1);
28
24
  }
29
25
  function E(t) {
30
26
  return O("0", t);
@@ -50,28 +46,28 @@ function g(t) {
50
46
  return n < 0 ? t : t.substring(n + 1);
51
47
  }
52
48
  function p(t) {
53
- return g(t) === b;
49
+ return g(t) === l;
54
50
  }
55
51
  function N(t, n) {
56
- const o = n;
52
+ const s = n;
57
53
  t = "r" + r + t, n = "r" + r + n;
58
54
  const e = h(t) + r;
59
55
  if (n.startsWith(e)) {
60
- const s = n.substring(e.length);
61
- if (s) {
62
- const u = f(s);
56
+ const o = n.substring(e.length);
57
+ if (o) {
58
+ const u = f(o);
63
59
  if (Number(g(t)) < Number(u)) {
64
- const l = e + (Number(u) - 1).toString() + s.substring(u.length);
65
- return i(l);
60
+ const b = e + (Number(u) - 1).toString() + o.substring(u.length);
61
+ return i(b);
66
62
  }
67
63
  }
68
64
  }
69
- return o;
65
+ return s;
70
66
  }
71
67
  export {
72
68
  c as EMPTY_ID,
73
69
  r as SEPARATOR,
74
- b as ZERO_LEVEL_ZERO_NODE_ID,
70
+ l as ZERO_LEVEL_ZERO_NODE_ID,
75
71
  O as createId,
76
72
  P as getAllShortIds,
77
73
  N as getDecrementedItemIdAfterRemoval,