@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
259 lines (258 loc) • 10.9 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 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 s, defaultValue as m, useAdaptiveModeContext as n } from "./contexts/AdaptiveModeContext.mjs";
import { BrowserSupportService as x } from "./browser-support.service.mjs";
import { canUseDOM as l } from "./canUseDOM.mjs";
import { canUseRef as d } from "./canUseRef.mjs";
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
import { clone as h, cloneArray as A, cloneDate as E, cloneObject as b, cloneValue as D } from "./clone.mjs";
import { applyTrappedFocus as T, disableNavigatableContainer as M, enableNavigatableContainer as v, firstFocusableChild as B, focusFirstFocusableChild as S, focusLastFocusableChild as L, focusableChildren as y, keepFocusInContainer as F, lastFocusableChild as w } from "./trappedFocus.mjs";
import { FormComponent as O } from "./FormComponent.mjs";
import { getTabIndex as R } from "./getTabIndex.mjs";
import { getter as _ } from "./getter.mjs";
import { guid as W } from "./guid.mjs";
import { KEYS as H, Keys as K } 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 se, getItemPath as me, mapTree as ne, mapTreeItem as ie } from "./treeDataOperations.mjs";
import { getLicenseMessage as fe, hasValidLicense as le, 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 he } from "./apply-default-props.mjs";
import { dispatchEvent as Ee } from "./events/dispatchEvent.mjs";
import { AsyncFocusBlur as De } from "./hocs/AsyncFocusBlur.mjs";
import { createPropsContext as Te, withPropsContext as Me } from "./hocs/withPropsContext.mjs";
import { withIdHOC as Be } from "./hocs/use-id-hoc.mjs";
import { withUnstyledHOC as Le } from "./hocs/use-unstyled-hoc.mjs";
import { withAdaptiveModeContext as Fe } from "./hocs/use-adaptive-mode-hoc.mjs";
import { withZIndexContext as Ne } from "./hocs/withzIndexContext.mjs";
import { useDir as ke } from "./hooks/useDir.mjs";
import { useAsyncFocusBlur as Ue } from "./hooks/useAsyncFocusBlur.mjs";
import { useRtl as Ve } from "./hooks/useRtl.mjs";
import { useMouse as Ge } from "./hooks/useMouse.mjs";
import { useCustomComponent as Ke } 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 ao } from "./hooks/use-immediate-inherit-state.mjs";
import { Icon as mo } from "./icons/Icon.mjs";
import { SvgIcon as io } from "./icons/SvgIcon.mjs";
import { IconWrap as fo } from "./icons/IconWrap.mjs";
import { IconsContext as uo } from "./icons/IconsContext.mjs";
import { svgIconPropType as Io, toIconClass as Co, toIconName as go } from "./icons/utils.mjs";
import { Typography as Ao } from "./typography/Typography.mjs";
import { DragAndDrop as bo } from "./drag-n-drop/index.mjs";
import { Draggable as Po } from "./Draggable.mjs";
import { Droppable as Mo } from "./Droppable.mjs";
import { useDraggable as Bo } from "./hooks/useDraggable.mjs";
import { useDroppable as Lo } from "./hooks/useDroppable.mjs";
import { kendoThemeMaps as Fo } from "./theme.mjs";
import { memoizeOne as No } from "./memoize.mjs";
import { Navigation as ko } from "./navigation.mjs";
import { getActiveElement as Uo, getInnerActiveElement as _o } from "./getActiveElement.mjs";
import { TreeFieldsService as Wo } from "./tree-utils/FieldsService.mjs";
import { SortedPublicItemIds as Ho } from "./tree-utils/SortedPublicItemIds.mjs";
import { addItem as jo, areAllDirectChildrenChecked as Zo, getAllDirectIndirectChildrenIds as zo, getAllParents as Xo, hasChildren as Yo, isEnabledAndAllParentsEnabled as qo, isItemExpandedAndWithChildren as Jo, removeItem as Qo, resolveItemId as $o, resolveItemsIds as er, updateItem as or } from "./tree-utils/itemUtils.mjs";
import { getNestedValue as tr, isArray as pr } from "./tree-utils/misc.mjs";
import { RowHeightService as sr } from "./rowHeightService.mjs";
import { UnstyledContext as nr, useUnstyled as ir } from "./unstyled/main.mjs";
import { deepMerge as fr, isObject as lr, isPromise as ur } from "./deep-merge.mjs";
import { uAnimation as cr } from "./unstyled/animations.mjs";
import { uSvgIcon as Cr } from "./unstyled/icons.mjs";
import { uButton as hr, uButtonGroup as Ar, uDropDownButton as Er } from "./unstyled/buttons.mjs";
import { uComboBox as Dr, uDropDownList as Pr, uDropDownsActionSheet as Tr, uDropDownsBase as Mr } from "./unstyled/dropdowns.mjs";
import { uCalendar as Br, uDateInput as Sr, uDateTimePicker as Lr, uTime as yr, uTimePicker as Fr } from "./unstyled/dateinputs.mjs";
import { radioButtonClasses as Nr, radioGroupClasses as Or, uInput as kr, uMaskedTextBox as Rr, uRadioButton as Ur, uRadioGroup as _r, uTextBox as Vr } from "./unstyled/inputs.mjs";
import { uError as Gr, uFloatingLabel as Hr, uHint as Kr, uLabel as jr } from "./unstyled/labels.mjs";
import { uForm as zr } from "./unstyled/form.mjs";
import { uPopup as Yr } from "./unstyled/popup.mjs";
import { uGrid as Jr } from "./unstyled/grid.mjs";
import { actions as $r, animationStyles as et, base as ot, buttonPrefix as rt, calendarPrefix as tt, comboBoxPrefix as pt, components as at, containers as st, cssUtils as mt, cursor as nt, dateInputs as it, ddbPrefix as xt, dimensions as ft, directionMap as lt, dropDownListPrefix as ut, elements as dt, fillModeMap as ct, forms as It, grid as Ct, gridPrefix as gt, gridRowReorder as ht, icon as At, inputPrefix as Et, inputs as bt, jsonTheme as Dt, labels as Pt, maskedPrefix as Tt, orientationMap as Mt, pickerPrefix as vt, popup as Bt, radioPrefix as St, roundedMap as Lt, sizeMap as yt, states as Ft, themeColorMap as wt } from "./unstyled/json-classes.mjs";
export {
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
ee as ADAPTIVE_SMALL_BREAKPOINT,
s as AdaptiveModeContext,
De as AsyncFocusBlur,
x as BrowserSupportService,
Xe as COLLECTION_ACTION,
bo as DragAndDrop,
Po as Draggable,
Mo as Droppable,
oe as FIELD_REGEX,
re as FOCUSABLE_ELEMENTS,
te as FOCUSABLE_ELEMENTS_BASE,
O as FormComponent,
mo as Icon,
fo as IconWrap,
uo as IconsContext,
H as KEYS,
K as Keys,
ko as Navigation,
sr as RowHeightService,
Ho as SortedPublicItemIds,
io as SvgIcon,
pe as TABBABLE_ELEMENTS,
Wo as TreeFieldsService,
Ao as Typography,
nr as UnstyledContext,
Ce as WatermarkOverlay,
t as ZIndexContext,
$r as actions,
jo as addItem,
et as animationStyles,
he as applyDefaultProps,
T as applyTrappedFocus,
Zo as areAllDirectChildrenChecked,
ot as base,
rt as buttonPrefix,
tt as calendarPrefix,
l as canUseDOM,
d as canUseRef,
I as classNames,
h as clone,
A as cloneArray,
E as cloneDate,
b as cloneObject,
D as cloneValue,
pt as comboBoxPrefix,
at as components,
st as containers,
Te as createPropsContext,
mt as cssUtils,
nt as cursor,
it as dateInputs,
xt as ddbPrefix,
fr as deepMerge,
m as defaultValue,
ft as dimensions,
lt as directionMap,
M as disableNavigatableContainer,
Ee as dispatchEvent,
ut as dropDownListPrefix,
dt as elements,
v as enableNavigatableContainer,
se as extendDataItem,
ct as fillModeMap,
B as firstFocusableChild,
S as focusFirstFocusableChild,
L as focusLastFocusableChild,
y as focusableChildren,
It as forms,
Uo as getActiveElement,
zo as getAllDirectIndirectChildrenIds,
Xo as getAllParents,
_o as getInnerActiveElement,
me as getItemPath,
fe as getLicenseMessage,
tr as getNestedValue,
X as getScrollbarWidth,
R as getTabIndex,
_ as getter,
Ct as grid,
gt as gridPrefix,
ht as gridRowReorder,
W as guid,
Yo as hasChildren,
ce as hasRelativeStackingContext,
le as hasValidLicense,
At as icon,
Et as inputPrefix,
bt as inputs,
pr as isArray,
qo as isEnabledAndAllParentsEnabled,
Jo as isItemExpandedAndWithChildren,
lr as isObject,
ur as isPromise,
Dt as jsonTheme,
F as keepFocusInContainer,
Fo as kendoThemeMaps,
Pt as labels,
w as lastFocusableChild,
ne as mapTree,
ie as mapTreeItem,
Tt as maskedPrefix,
No as memoizeOne,
Z as noop,
Mt as orientationMap,
vt as pickerPrefix,
Bt as popup,
Nr as radioButtonClasses,
Or as radioGroupClasses,
St as radioPrefix,
Qo as removeItem,
$o as resolveItemId,
er as resolveItemsIds,
Lt as roundedMap,
Y as setScrollbarWidth,
J as setter,
yt as sizeMap,
Ft as states,
C as strippedClassNames,
Io as svgIconPropType,
wt as themeColorMap,
Co as toIconClass,
go as toIconName,
e as treeIdUtils,
cr as uAnimation,
hr as uButton,
Ar as uButtonGroup,
Br as uCalendar,
Dr as uComboBox,
Sr as uDateInput,
Lr as uDateTimePicker,
Er as uDropDownButton,
Pr as uDropDownList,
Tr as uDropDownsActionSheet,
Mr as uDropDownsBase,
Gr as uError,
Hr as uFloatingLabel,
zr as uForm,
Jr as uGrid,
Kr as uHint,
kr as uInput,
jr as uLabel,
Rr as uMaskedTextBox,
Yr as uPopup,
Ur as uRadioButton,
_r as uRadioGroup,
Cr as uSvgIcon,
Vr as uTextBox,
yr as uTime,
Fr as uTimePicker,
or as updateItem,
n as useAdaptiveModeContext,
Ue as useAsyncFocusBlur,
Ye as useCollection,
Ke as useCustomComponent,
ke as useDir,
Je as useDocument,
Bo as useDraggable,
Lo as useDroppable,
oo as useId,
ao as useImmediateInheritState,
to as useIsomorphicLayoutEffect,
Ge as useMouse,
Ze as usePropsContext,
Ve as useRtl,
ir as useUnstyled,
$e as useWindow,
p as useZIndexContext,
ue as validatePackage,
Fe as withAdaptiveModeContext,
Be as withIdHOC,
Me as withPropsContext,
Le as withUnstyledHOC,
Ne as withZIndexContext
};