@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
269 lines (268 loc) • 11.5 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as e from "./tree-utils/itemIdUtils.mjs";
import { ZIndexContext as t, useZIndexContext as p } from "./contexts/ZIndexContext.mjs";
import { AdaptiveModeContext as a, defaultValue as n, useAdaptiveModeContext as m } from "./contexts/AdaptiveModeContext.mjs";
import { BrowserSupportService as x } from "./browser-support.service.mjs";
import { canUseDOM as d } from "./canUseDOM.mjs";
import { canUseRef as l } from "./canUseRef.mjs";
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
import { clone as g, cloneArray as P, cloneDate as A, cloneObject as h, cloneValue as b } from "./clone.mjs";
import { applyTrappedFocus as T, disableNavigatableContainer as v, enableNavigatableContainer as M, firstFocusableChild as S, focusFirstFocusableChild as B, focusLastFocusableChild as L, focusableChildren as F, keepFocusInContainer as N, lastFocusableChild as y } from "./trappedFocus.mjs";
import { FormComponent as w } from "./FormComponent.mjs";
import { getTabIndex as k } from "./getTabIndex.mjs";
import { getter as U } from "./getter.mjs";
import { guid as V } from "./guid.mjs";
import { KEYS as G, Keys as H } from "./keys.mjs";
import { noop as Z } from "./noop.mjs";
import { getScrollbarWidth as X, setScrollbarWidth as Y } from "./scrollbarWidth.mjs";
import { setter as J } from "./setter.mjs";
import { ADAPTIVE_MEDIUM_BREAKPOINT as $, ADAPTIVE_SMALL_BREAKPOINT as ee, FIELD_REGEX as oe, FOCUSABLE_ELEMENTS as re, FOCUSABLE_ELEMENTS_BASE as te, TABBABLE_ELEMENTS as pe } from "./constants/main.mjs";
import { extendDataItem as ae, getItemPath as ne, mapTree as me, mapTreeItem as ie } from "./treeDataOperations.mjs";
import { getLicenseMessage as fe, hasValidLicense as de, validatePackage as ue } from "./validate-package.mjs";
import { hasRelativeStackingContext as ce } from "./hasRelativeStackingContext.mjs";
import { WatermarkOverlay as Ce } from "./watermark/WatermarkOverlay.mjs";
import { applyDefaultProps as ge } from "./apply-default-props.mjs";
import { dispatchEvent as Ae } from "./events/dispatchEvent.mjs";
import { AsyncFocusBlur as be } from "./hocs/AsyncFocusBlur.mjs";
import { createPropsContext as Te, withPropsContext as ve } from "./hocs/withPropsContext.mjs";
import { withIdHOC as Se } from "./hocs/use-id-hoc.mjs";
import { withUnstyledHOC as Le } from "./hocs/use-unstyled-hoc.mjs";
import { withAdaptiveModeContext as Ne } from "./hocs/use-adaptive-mode-hoc.mjs";
import { withZIndexContext as Oe } from "./hocs/withzIndexContext.mjs";
import { useDir as _e } from "./hooks/useDir.mjs";
import { useAsyncFocusBlur as Re } from "./hooks/useAsyncFocusBlur.mjs";
import { useRtl as Ke } from "./hooks/useRtl.mjs";
import { useMouse as We } from "./hooks/useMouse.mjs";
import { useCustomComponent as He } from "./hooks/useCustomComponent.mjs";
import { usePropsContext as Ze } from "./hooks/usePropsContext.mjs";
import { COLLECTION_ACTION as Xe, useCollection as Ye } from "./hooks/useCollection.mjs";
import { useDocument as Je } from "./hooks/useDocument.mjs";
import { useWindow as $e } from "./hooks/useWindow.mjs";
import { useId as oo } from "./hooks/use-id.mjs";
import { useIsomorphicLayoutEffect as to } from "./hooks/use-isomorphic-layout-effect.mjs";
import { useImmediateInheritState as so } from "./hooks/use-immediate-inherit-state.mjs";
import { Icon as no } from "./icons/Icon.mjs";
import { SvgIcon as io } from "./icons/SvgIcon.mjs";
import { IconWrap as fo } from "./icons/IconWrap.mjs";
import { IconsContext as lo } from "./icons/IconsContext.mjs";
import { svgIconPropType as Io, toIconClass as Co, toIconName as Eo } from "./icons/utils.mjs";
import { Typography as Po } from "./typography/Typography.mjs";
import { DragAndDrop as ho } from "./drag-n-drop/index.mjs";
import { Draggable as Do } from "./Draggable.mjs";
import { Droppable as vo } from "./Droppable.mjs";
import { useDraggable as So } from "./hooks/useDraggable.mjs";
import { useDroppable as Lo } from "./hooks/useDroppable.mjs";
import { kendoThemeMaps as No } from "./theme.mjs";
import { memoizeOne as Oo } from "./memoize.mjs";
import { Navigation as _o } from "./navigation.mjs";
import { getActiveElement as Ro, getInnerActiveElement as Uo } from "./getActiveElement.mjs";
import { getFileExtensionIcon as Vo } from "./fileExtensionIcon.mjs";
import { TreeFieldsService as Go } from "./tree-utils/FieldsService.mjs";
import { SortedPublicItemIds as jo } from "./tree-utils/SortedPublicItemIds.mjs";
import { addItem as zo, areAllDirectChildrenChecked as Xo, getAllDirectIndirectChildrenIds as Yo, getAllParents as qo, hasChildren as Jo, isEnabledAndAllParentsEnabled as Qo, isItemExpandedAndWithChildren as $o, removeItem as er, resolveItemId as or, resolveItemsIds as rr, updateItem as tr } from "./tree-utils/itemUtils.mjs";
import { getNestedValue as sr, isArray as ar } from "./tree-utils/misc.mjs";
import { RowHeightService as mr } from "./rowHeightService.mjs";
import { deepMerge as xr, isObject as fr, isPromise as dr } from "./deep-merge.mjs";
import { KENDO_PASTE_EVENT_NAME as lr, createKendoPasteEvent as cr, dispatchKendoPasteEvent as Ir, getKendoPasteEventTarget as Cr } from "./kendopaste/KendoPasteEvent.mjs";
import { UnstyledContext as gr, useUnstyled as Pr } from "./unstyled/unstyled-context.mjs";
import { actions as hr, animationStyles as br, base as Dr, buttonPrefix as Tr, calendarPrefix as vr, comboBoxPrefix as Mr, components as Sr, containers as Br, cssUtils as Lr, cursor as Fr, dateInputs as Nr, ddbPrefix as yr, dimensions as Or, directionMap as wr, dropDownListPrefix as _r, elements as kr, fillModeMap as Rr, forms as Ur, grid as Kr, gridPrefix as Vr, gridRowReorder as Wr, icon as Gr, inputPrefix as Hr, inputs as jr, jsonTheme as Zr, labels as zr, maskedPrefix as Xr, orientationMap as Yr, pickerPrefix as qr, popup as Jr, radioPrefix as Qr, roundedMap as $r, sizeMap as et, states as ot, themeColorMap as rt } from "./unstyled/json-classes.mjs";
import { radioButtonClasses as pt, radioGroupClasses as st, uInput as at, uMaskedTextBox as nt, uRadioButton as mt, uRadioGroup as it, uTextBox as xt } from "./unstyled/inputs.mjs";
import { subscribeToKendoPaste as dt, useKendoPaste as ut } from "./kendopaste/useKendoPaste.mjs";
import { uAnimation as ct } from "./unstyled/animations.mjs";
import { uButton as Ct, uButtonGroup as Et, uDropDownButton as gt } from "./unstyled/buttons.mjs";
import { uCalendar as At, uDateInput as ht, uDateTimePicker as bt, uTime as Dt, uTimePicker as Tt } from "./unstyled/dateinputs.mjs";
import { uComboBox as Mt, uDropDownList as St, uDropDownsActionSheet as Bt, uDropDownsBase as Lt } from "./unstyled/dropdowns.mjs";
import { uError as Nt, uFloatingLabel as yt, uHint as Ot, uLabel as wt } from "./unstyled/labels.mjs";
import { uForm as kt } from "./unstyled/form.mjs";
import { uGrid as Ut } from "./unstyled/grid.mjs";
import { uPopup as Vt } from "./unstyled/popup.mjs";
import { uSvgIcon as Gt } from "./unstyled/icons.mjs";
export {
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
ee as ADAPTIVE_SMALL_BREAKPOINT,
a as AdaptiveModeContext,
be as AsyncFocusBlur,
x as BrowserSupportService,
Xe as COLLECTION_ACTION,
ho as DragAndDrop,
Do as Draggable,
vo as Droppable,
oe as FIELD_REGEX,
re as FOCUSABLE_ELEMENTS,
te as FOCUSABLE_ELEMENTS_BASE,
w as FormComponent,
no as Icon,
fo as IconWrap,
lo as IconsContext,
lr as KENDO_PASTE_EVENT_NAME,
G as KEYS,
H as Keys,
_o as Navigation,
mr as RowHeightService,
jo as SortedPublicItemIds,
io as SvgIcon,
pe as TABBABLE_ELEMENTS,
Go as TreeFieldsService,
Po as Typography,
gr as UnstyledContext,
Ce as WatermarkOverlay,
t as ZIndexContext,
hr as actions,
zo as addItem,
br as animationStyles,
ge as applyDefaultProps,
T as applyTrappedFocus,
Xo as areAllDirectChildrenChecked,
Dr as base,
Tr as buttonPrefix,
vr as calendarPrefix,
d as canUseDOM,
l as canUseRef,
I as classNames,
g as clone,
P as cloneArray,
A as cloneDate,
h as cloneObject,
b as cloneValue,
Mr as comboBoxPrefix,
Sr as components,
Br as containers,
cr as createKendoPasteEvent,
Te as createPropsContext,
Lr as cssUtils,
Fr as cursor,
Nr as dateInputs,
yr as ddbPrefix,
xr as deepMerge,
n as defaultValue,
Or as dimensions,
wr as directionMap,
v as disableNavigatableContainer,
Ae as dispatchEvent,
Ir as dispatchKendoPasteEvent,
_r as dropDownListPrefix,
kr as elements,
M as enableNavigatableContainer,
ae as extendDataItem,
Rr as fillModeMap,
S as firstFocusableChild,
B as focusFirstFocusableChild,
L as focusLastFocusableChild,
F as focusableChildren,
Ur as forms,
Ro as getActiveElement,
Yo as getAllDirectIndirectChildrenIds,
qo as getAllParents,
Vo as getFileExtensionIcon,
Uo as getInnerActiveElement,
ne as getItemPath,
Cr as getKendoPasteEventTarget,
fe as getLicenseMessage,
sr as getNestedValue,
X as getScrollbarWidth,
k as getTabIndex,
U as getter,
Kr as grid,
Vr as gridPrefix,
Wr as gridRowReorder,
V as guid,
Jo as hasChildren,
ce as hasRelativeStackingContext,
de as hasValidLicense,
Gr as icon,
Hr as inputPrefix,
jr as inputs,
ar as isArray,
Qo as isEnabledAndAllParentsEnabled,
$o as isItemExpandedAndWithChildren,
fr as isObject,
dr as isPromise,
Zr as jsonTheme,
N as keepFocusInContainer,
No as kendoThemeMaps,
zr as labels,
y as lastFocusableChild,
me as mapTree,
ie as mapTreeItem,
Xr as maskedPrefix,
Oo as memoizeOne,
Z as noop,
Yr as orientationMap,
qr as pickerPrefix,
Jr as popup,
pt as radioButtonClasses,
st as radioGroupClasses,
Qr as radioPrefix,
er as removeItem,
or as resolveItemId,
rr as resolveItemsIds,
$r as roundedMap,
Y as setScrollbarWidth,
J as setter,
et as sizeMap,
ot as states,
C as strippedClassNames,
dt as subscribeToKendoPaste,
Io as svgIconPropType,
rt as themeColorMap,
Co as toIconClass,
Eo as toIconName,
e as treeIdUtils,
ct as uAnimation,
Ct as uButton,
Et as uButtonGroup,
At as uCalendar,
Mt as uComboBox,
ht as uDateInput,
bt as uDateTimePicker,
gt as uDropDownButton,
St as uDropDownList,
Bt as uDropDownsActionSheet,
Lt as uDropDownsBase,
Nt as uError,
yt as uFloatingLabel,
kt as uForm,
Ut as uGrid,
Ot as uHint,
at as uInput,
wt as uLabel,
nt as uMaskedTextBox,
Vt as uPopup,
mt as uRadioButton,
it as uRadioGroup,
Gt as uSvgIcon,
xt as uTextBox,
Dt as uTime,
Tt as uTimePicker,
tr as updateItem,
m as useAdaptiveModeContext,
Re as useAsyncFocusBlur,
Ye as useCollection,
He as useCustomComponent,
_e as useDir,
Je as useDocument,
So as useDraggable,
Lo as useDroppable,
oo as useId,
so as useImmediateInheritState,
to as useIsomorphicLayoutEffect,
ut as useKendoPaste,
We as useMouse,
Ze as usePropsContext,
Ke as useRtl,
Pr as useUnstyled,
$e as useWindow,
p as useZIndexContext,
ue as validatePackage,
Ne as withAdaptiveModeContext,
Se as withIdHOC,
ve as withPropsContext,
Le as withUnstyledHOC,
Oe as withZIndexContext
};