@progress/kendo-react-common 11.0.0-develop.9 → 11.0.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/deep-merge.js +8 -0
- package/deep-merge.mjs +25 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/use-immediate-inherit-state.js +9 -0
- package/hooks/use-immediate-inherit-state.mjs +25 -0
- package/index.d.mts +24 -0
- package/index.d.ts +24 -0
- package/index.js +1 -1
- package/index.mjs +196 -189
- package/package.json +2 -2
- package/validate-package.js +3 -3
- package/validate-package.mjs +19 -18
package/index.d.mts
CHANGED
|
@@ -1070,6 +1070,9 @@ export declare interface DateTimeSpinnerClasses {
|
|
|
1070
1070
|
*/
|
|
1071
1071
|
export declare const ddbPrefix: string;
|
|
1072
1072
|
|
|
1073
|
+
/** @hidden */
|
|
1074
|
+
export declare const deepMerge: <T>(target: any, ...sources: any[]) => T;
|
|
1075
|
+
|
|
1073
1076
|
/** @hidden */
|
|
1074
1077
|
export declare const defaultValue: {
|
|
1075
1078
|
small: number;
|
|
@@ -2160,6 +2163,14 @@ export declare function hasChildren(item: any, childrenField: string): boolean;
|
|
|
2160
2163
|
/** @hidden */
|
|
2161
2164
|
export declare const hasRelativeStackingContext: (elementSource?: HTMLElement) => boolean;
|
|
2162
2165
|
|
|
2166
|
+
/**
|
|
2167
|
+
* @hidden
|
|
2168
|
+
*
|
|
2169
|
+
* Returns `true` if the license is valid, `false` otherwise.
|
|
2170
|
+
* Does not output any warnings to the console.
|
|
2171
|
+
*/
|
|
2172
|
+
export declare const hasValidLicense: (e: any) => boolean;
|
|
2173
|
+
|
|
2163
2174
|
export declare interface HintClasses {
|
|
2164
2175
|
/** Wrapper element configurations */
|
|
2165
2176
|
wrapper?: {
|
|
@@ -2386,6 +2397,12 @@ export declare function isItemExpandedAndWithChildren(item: any, fieldsSvc: Tree
|
|
|
2386
2397
|
*/
|
|
2387
2398
|
declare function isItemFirstFromSiblings(itemId: string): boolean;
|
|
2388
2399
|
|
|
2400
|
+
/** @hidden */
|
|
2401
|
+
export declare function isObject(item: any): any;
|
|
2402
|
+
|
|
2403
|
+
/** @hidden */
|
|
2404
|
+
export declare const isPromise: (value: any) => value is Promise<any>;
|
|
2405
|
+
|
|
2389
2406
|
/**
|
|
2390
2407
|
* @hidden
|
|
2391
2408
|
*/
|
|
@@ -3886,6 +3903,13 @@ export declare function useDroppable(ref: React_2.RefObject<HTMLElement | null |
|
|
|
3886
3903
|
/** @hidden */
|
|
3887
3904
|
export declare function useId(id?: string): any;
|
|
3888
3905
|
|
|
3906
|
+
/**
|
|
3907
|
+
* @hidden
|
|
3908
|
+
*/
|
|
3909
|
+
export declare const useImmediateInheritState: <T>(defaultValue: T, propValue?: T | undefined) => {
|
|
3910
|
+
value: T;
|
|
3911
|
+
};
|
|
3912
|
+
|
|
3889
3913
|
/** @hidden */
|
|
3890
3914
|
export declare const useIsomorphicLayoutEffect: typeof React_2.useEffect;
|
|
3891
3915
|
|
package/index.d.ts
CHANGED
|
@@ -1070,6 +1070,9 @@ export declare interface DateTimeSpinnerClasses {
|
|
|
1070
1070
|
*/
|
|
1071
1071
|
export declare const ddbPrefix: string;
|
|
1072
1072
|
|
|
1073
|
+
/** @hidden */
|
|
1074
|
+
export declare const deepMerge: <T>(target: any, ...sources: any[]) => T;
|
|
1075
|
+
|
|
1073
1076
|
/** @hidden */
|
|
1074
1077
|
export declare const defaultValue: {
|
|
1075
1078
|
small: number;
|
|
@@ -2160,6 +2163,14 @@ export declare function hasChildren(item: any, childrenField: string): boolean;
|
|
|
2160
2163
|
/** @hidden */
|
|
2161
2164
|
export declare const hasRelativeStackingContext: (elementSource?: HTMLElement) => boolean;
|
|
2162
2165
|
|
|
2166
|
+
/**
|
|
2167
|
+
* @hidden
|
|
2168
|
+
*
|
|
2169
|
+
* Returns `true` if the license is valid, `false` otherwise.
|
|
2170
|
+
* Does not output any warnings to the console.
|
|
2171
|
+
*/
|
|
2172
|
+
export declare const hasValidLicense: (e: any) => boolean;
|
|
2173
|
+
|
|
2163
2174
|
export declare interface HintClasses {
|
|
2164
2175
|
/** Wrapper element configurations */
|
|
2165
2176
|
wrapper?: {
|
|
@@ -2386,6 +2397,12 @@ export declare function isItemExpandedAndWithChildren(item: any, fieldsSvc: Tree
|
|
|
2386
2397
|
*/
|
|
2387
2398
|
declare function isItemFirstFromSiblings(itemId: string): boolean;
|
|
2388
2399
|
|
|
2400
|
+
/** @hidden */
|
|
2401
|
+
export declare function isObject(item: any): any;
|
|
2402
|
+
|
|
2403
|
+
/** @hidden */
|
|
2404
|
+
export declare const isPromise: (value: any) => value is Promise<any>;
|
|
2405
|
+
|
|
2389
2406
|
/**
|
|
2390
2407
|
* @hidden
|
|
2391
2408
|
*/
|
|
@@ -3886,6 +3903,13 @@ export declare function useDroppable(ref: React_2.RefObject<HTMLElement | null |
|
|
|
3886
3903
|
/** @hidden */
|
|
3887
3904
|
export declare function useId(id?: string): any;
|
|
3888
3905
|
|
|
3906
|
+
/**
|
|
3907
|
+
* @hidden
|
|
3908
|
+
*/
|
|
3909
|
+
export declare const useImmediateInheritState: <T>(defaultValue: T, propValue?: T | undefined) => {
|
|
3910
|
+
value: T;
|
|
3911
|
+
};
|
|
3912
|
+
|
|
3889
3913
|
/** @hidden */
|
|
3890
3914
|
export declare const useIsomorphicLayoutEffect: typeof React_2.useEffect;
|
|
3891
3915
|
|
package/index.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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./tree-utils/itemIdUtils.js"),I=require("./contexts/ZIndexContext.js"),l=require("./contexts/AdaptiveModeContext.js"),v=require("./browser-support.service.js"),S=require("./canUseDOM.js"),T=require("./canUseRef.js"),C=require("./classNames.js"),n=require("./clone.js"),o=require("./trappedFocus.js"),f=require("./FormComponent.js"),M=require("./getTabIndex.js"),B=require("./getter.js"),y=require("./guid.js"),x=require("./keys.js"),F=require("./noop.js"),g=require("./scrollbarWidth.js"),L=require("./setter.js"),s=require("./constants/main.js"),a=require("./treeDataOperations.js"),q=require("./validate-package.js"),w=require("./hasRelativeStackingContext.js"),O=require("./watermark/WatermarkOverlay.js"),N=require("./apply-default-props.js"),k=require("./events/dispatchEvent.js"),R=require("./hocs/AsyncFocusBlur.js"),h=require("./hocs/withPropsContext.js"),U=require("./hocs/use-id-hoc.js"),_=require("./hocs/use-unstyled-hoc.js"),W=require("./hocs/use-adaptive-mode-hoc.js"),H=require("./hocs/withzIndexContext.js"),V=require("./hooks/useDir.js"),G=require("./hooks/useAsyncFocusBlur.js"),j=require("./hooks/useRtl.js"),K=require("./hooks/useMouse.js"),Z=require("./hooks/useCustomComponent.js"),z=require("./hooks/usePropsContext.js"),b=require("./hooks/useCollection.js"),X=require("./hooks/useDocument.js"),Y=require("./hooks/useWindow.js"),$=require("./hooks/use-id.js"),J=require("./hooks/use-isomorphic-layout-effect.js"),Q=require("./hooks/use-immediate-inherit-state.js"),ee=require("./icons/Icon.js"),te=require("./icons/SvgIcon.js"),oe=require("./icons/IconWrap.js"),re=require("./icons/IconsContext.js"),d=require("./icons/utils.js"),se=require("./typography/Typography.js"),ne=require("./drag-n-drop/index.js"),ie=require("./Draggable.js"),ae=require("./Droppable.js"),ue=require("./hooks/useDraggable.js"),ce=require("./hooks/useDroppable.js"),le=require("./theme.js"),de=require("./memoize.js"),pe=require("./navigation.js"),A=require("./getActiveElement.js"),me=require("./tree-utils/FieldsService.js"),Ie=require("./tree-utils/SortedPublicItemIds.js"),t=require("./tree-utils/itemUtils.js"),D=require("./tree-utils/misc.js"),Ce=require("./rowHeightService.js"),E=require("./unstyled/main.js"),p=require("./deep-merge.js"),xe=require("./unstyled/animations.js"),ge=require("./unstyled/icons.js"),m=require("./unstyled/buttons.js"),u=require("./unstyled/dropdowns.js"),i=require("./unstyled/dateinputs.js"),r=require("./unstyled/inputs.js"),c=require("./unstyled/labels.js"),qe=require("./unstyled/form.js"),he=require("./unstyled/popup.js"),be=require("./unstyled/grid.js"),e=require("./unstyled/json-classes.js");exports.treeIdUtils=P;exports.ZIndexContext=I.ZIndexContext;exports.useZIndexContext=I.useZIndexContext;exports.AdaptiveModeContext=l.AdaptiveModeContext;exports.defaultValue=l.defaultValue;exports.useAdaptiveModeContext=l.useAdaptiveModeContext;exports.BrowserSupportService=v.BrowserSupportService;exports.canUseDOM=S.canUseDOM;exports.canUseRef=T.canUseRef;exports.classNames=C.classNames;exports.strippedClassNames=C.strippedClassNames;exports.clone=n.clone;exports.cloneArray=n.cloneArray;exports.cloneDate=n.cloneDate;exports.cloneObject=n.cloneObject;exports.cloneValue=n.cloneValue;exports.applyTrappedFocus=o.applyTrappedFocus;exports.disableNavigatableContainer=o.disableNavigatableContainer;exports.enableNavigatableContainer=o.enableNavigatableContainer;exports.firstFocusableChild=o.firstFocusableChild;exports.focusFirstFocusableChild=o.focusFirstFocusableChild;exports.focusLastFocusableChild=o.focusLastFocusableChild;exports.focusableChildren=o.focusableChildren;exports.keepFocusInContainer=o.keepFocusInContainer;exports.lastFocusableChild=o.lastFocusableChild;exports.FormComponent=f.FormComponent;exports.getTabIndex=M.getTabIndex;exports.getter=B.getter;exports.guid=y.guid;exports.KEYS=x.KEYS;exports.Keys=x.Keys;exports.noop=F.noop;exports.getScrollbarWidth=g.getScrollbarWidth;exports.setScrollbarWidth=g.setScrollbarWidth;exports.setter=L.setter;exports.ADAPTIVE_MEDIUM_BREAKPOINT=s.ADAPTIVE_MEDIUM_BREAKPOINT;exports.ADAPTIVE_SMALL_BREAKPOINT=s.ADAPTIVE_SMALL_BREAKPOINT;exports.FIELD_REGEX=s.FIELD_REGEX;exports.FOCUSABLE_ELEMENTS=s.FOCUSABLE_ELEMENTS;exports.FOCUSABLE_ELEMENTS_BASE=s.FOCUSABLE_ELEMENTS_BASE;exports.TABBABLE_ELEMENTS=s.TABBABLE_ELEMENTS;exports.extendDataItem=a.extendDataItem;exports.getItemPath=a.getItemPath;exports.mapTree=a.mapTree;exports.mapTreeItem=a.mapTreeItem;exports.hasValidLicense=q.hasValidLicense;exports.validatePackage=q.validatePackage;exports.hasRelativeStackingContext=w.hasRelativeStackingContext;exports.WatermarkOverlay=O.WatermarkOverlay;exports.applyDefaultProps=N.applyDefaultProps;exports.dispatchEvent=k.dispatchEvent;exports.AsyncFocusBlur=R.AsyncFocusBlur;exports.createPropsContext=h.createPropsContext;exports.withPropsContext=h.withPropsContext;exports.withIdHOC=U.withIdHOC;exports.withUnstyledHOC=_.withUnstyledHOC;exports.withAdaptiveModeContext=W.withAdaptiveModeContext;exports.withZIndexContext=H.withZIndexContext;exports.useDir=V.useDir;exports.useAsyncFocusBlur=G.useAsyncFocusBlur;exports.useRtl=j.useRtl;exports.useMouse=K.useMouse;exports.useCustomComponent=Z.useCustomComponent;exports.usePropsContext=z.usePropsContext;exports.COLLECTION_ACTION=b.COLLECTION_ACTION;exports.useCollection=b.useCollection;exports.useDocument=X.useDocument;exports.useWindow=Y.useWindow;exports.useId=$.useId;exports.useIsomorphicLayoutEffect=J.useIsomorphicLayoutEffect;exports.useImmediateInheritState=Q.useImmediateInheritState;exports.Icon=ee.Icon;exports.SvgIcon=te.SvgIcon;exports.IconWrap=oe.IconWrap;exports.IconsContext=re.IconsContext;exports.svgIconPropType=d.svgIconPropType;exports.toIconClass=d.toIconClass;exports.toIconName=d.toIconName;exports.Typography=se.Typography;exports.DragAndDrop=ne.DragAndDrop;exports.Draggable=ie.Draggable;exports.Droppable=ae.Droppable;exports.useDraggable=ue.useDraggable;exports.useDroppable=ce.useDroppable;exports.kendoThemeMaps=le.kendoThemeMaps;exports.memoizeOne=de.memoizeOne;exports.Navigation=pe.Navigation;exports.getActiveElement=A.getActiveElement;exports.getInnerActiveElement=A.getInnerActiveElement;exports.TreeFieldsService=me.TreeFieldsService;exports.SortedPublicItemIds=Ie.SortedPublicItemIds;exports.addItem=t.addItem;exports.areAllDirectChildrenChecked=t.areAllDirectChildrenChecked;exports.getAllDirectIndirectChildrenIds=t.getAllDirectIndirectChildrenIds;exports.getAllParents=t.getAllParents;exports.hasChildren=t.hasChildren;exports.isEnabledAndAllParentsEnabled=t.isEnabledAndAllParentsEnabled;exports.isItemExpandedAndWithChildren=t.isItemExpandedAndWithChildren;exports.removeItem=t.removeItem;exports.resolveItemId=t.resolveItemId;exports.resolveItemsIds=t.resolveItemsIds;exports.updateItem=t.updateItem;exports.getNestedValue=D.getNestedValue;exports.isArray=D.isArray;exports.RowHeightService=Ce.RowHeightService;exports.UnstyledContext=E.UnstyledContext;exports.useUnstyled=E.useUnstyled;exports.deepMerge=p.deepMerge;exports.isObject=p.isObject;exports.isPromise=p.isPromise;exports.uAnimation=xe.uAnimation;exports.uSvgIcon=ge.uSvgIcon;exports.uButton=m.uButton;exports.uButtonGroup=m.uButtonGroup;exports.uDropDownButton=m.uDropDownButton;exports.uComboBox=u.uComboBox;exports.uDropDownList=u.uDropDownList;exports.uDropDownsActionSheet=u.uDropDownsActionSheet;exports.uDropDownsBase=u.uDropDownsBase;exports.uCalendar=i.uCalendar;exports.uDateInput=i.uDateInput;exports.uDateTimePicker=i.uDateTimePicker;exports.uTime=i.uTime;exports.uTimePicker=i.uTimePicker;exports.radioButtonClasses=r.radioButtonClasses;exports.radioGroupClasses=r.radioGroupClasses;exports.uInput=r.uInput;exports.uMaskedTextBox=r.uMaskedTextBox;exports.uRadioButton=r.uRadioButton;exports.uRadioGroup=r.uRadioGroup;exports.uTextBox=r.uTextBox;exports.uError=c.uError;exports.uFloatingLabel=c.uFloatingLabel;exports.uHint=c.uHint;exports.uLabel=c.uLabel;exports.uForm=qe.uForm;exports.uPopup=he.uPopup;exports.uGrid=be.uGrid;exports.actions=e.actions;exports.animationStyles=e.animationStyles;exports.base=e.base;exports.buttonPrefix=e.buttonPrefix;exports.calendarPrefix=e.calendarPrefix;exports.comboBoxPrefix=e.comboBoxPrefix;exports.components=e.components;exports.containers=e.containers;exports.cssUtils=e.cssUtils;exports.cursor=e.cursor;exports.dateInputs=e.dateInputs;exports.ddbPrefix=e.ddbPrefix;exports.dimensions=e.dimensions;exports.directionMap=e.directionMap;exports.dropDownListPrefix=e.dropDownListPrefix;exports.elements=e.elements;exports.fillModeMap=e.fillModeMap;exports.forms=e.forms;exports.grid=e.grid;exports.gridPrefix=e.gridPrefix;exports.gridRowReorder=e.gridRowReorder;exports.icon=e.icon;exports.inputPrefix=e.inputPrefix;exports.inputs=e.inputs;exports.jsonTheme=e.jsonTheme;exports.labels=e.labels;exports.maskedPrefix=e.maskedPrefix;exports.orientationMap=e.orientationMap;exports.pickerPrefix=e.pickerPrefix;exports.popup=e.popup;exports.radioPrefix=e.radioPrefix;exports.roundedMap=e.roundedMap;exports.sizeMap=e.sizeMap;exports.states=e.states;exports.themeColorMap=e.themeColorMap;
|
package/index.mjs
CHANGED
|
@@ -7,244 +7,251 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "./tree-utils/itemIdUtils.mjs";
|
|
9
9
|
import { ZIndexContext as t, useZIndexContext as p } from "./contexts/ZIndexContext.mjs";
|
|
10
|
-
import { AdaptiveModeContext as m, defaultValue as
|
|
10
|
+
import { AdaptiveModeContext as m, defaultValue as s, useAdaptiveModeContext as n } from "./contexts/AdaptiveModeContext.mjs";
|
|
11
11
|
import { BrowserSupportService as x } from "./browser-support.service.mjs";
|
|
12
12
|
import { canUseDOM as l } from "./canUseDOM.mjs";
|
|
13
13
|
import { canUseRef as d } from "./canUseRef.mjs";
|
|
14
14
|
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
|
|
15
|
-
import { clone as
|
|
15
|
+
import { clone as A, cloneArray as E, cloneDate as g, cloneObject as b, cloneValue as D } from "./clone.mjs";
|
|
16
16
|
import { applyTrappedFocus as T, disableNavigatableContainer as v, enableNavigatableContainer as B, firstFocusableChild as M, focusFirstFocusableChild as S, focusLastFocusableChild as L, focusableChildren as y, keepFocusInContainer as F, lastFocusableChild as w } from "./trappedFocus.mjs";
|
|
17
17
|
import { FormComponent as O } from "./FormComponent.mjs";
|
|
18
18
|
import { getTabIndex as R } from "./getTabIndex.mjs";
|
|
19
19
|
import { getter as _ } from "./getter.mjs";
|
|
20
|
-
import { guid as
|
|
20
|
+
import { guid as W } from "./guid.mjs";
|
|
21
21
|
import { KEYS as H, Keys as K } 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
24
|
import { setter as J } from "./setter.mjs";
|
|
25
25
|
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";
|
|
26
|
-
import { extendDataItem as me, getItemPath as
|
|
27
|
-
import {
|
|
28
|
-
import { hasRelativeStackingContext as
|
|
29
|
-
import { WatermarkOverlay as
|
|
30
|
-
import { applyDefaultProps as
|
|
26
|
+
import { extendDataItem as me, getItemPath as se, mapTree as ne, mapTreeItem as ie } from "./treeDataOperations.mjs";
|
|
27
|
+
import { hasValidLicense as fe, validatePackage as le } from "./validate-package.mjs";
|
|
28
|
+
import { hasRelativeStackingContext as de } from "./hasRelativeStackingContext.mjs";
|
|
29
|
+
import { WatermarkOverlay as Ie } from "./watermark/WatermarkOverlay.mjs";
|
|
30
|
+
import { applyDefaultProps as he } from "./apply-default-props.mjs";
|
|
31
31
|
import { dispatchEvent as Ee } from "./events/dispatchEvent.mjs";
|
|
32
|
-
import { AsyncFocusBlur as
|
|
33
|
-
import { createPropsContext as
|
|
34
|
-
import { withIdHOC as
|
|
35
|
-
import { withUnstyledHOC as
|
|
36
|
-
import { withAdaptiveModeContext as
|
|
37
|
-
import { withZIndexContext as
|
|
38
|
-
import { useDir as
|
|
39
|
-
import { useAsyncFocusBlur as
|
|
40
|
-
import { useRtl as
|
|
32
|
+
import { AsyncFocusBlur as be } from "./hocs/AsyncFocusBlur.mjs";
|
|
33
|
+
import { createPropsContext as Pe, withPropsContext as Te } from "./hocs/withPropsContext.mjs";
|
|
34
|
+
import { withIdHOC as Be } from "./hocs/use-id-hoc.mjs";
|
|
35
|
+
import { withUnstyledHOC as Se } from "./hocs/use-unstyled-hoc.mjs";
|
|
36
|
+
import { withAdaptiveModeContext as ye } from "./hocs/use-adaptive-mode-hoc.mjs";
|
|
37
|
+
import { withZIndexContext as we } from "./hocs/withzIndexContext.mjs";
|
|
38
|
+
import { useDir as Oe } from "./hooks/useDir.mjs";
|
|
39
|
+
import { useAsyncFocusBlur as Re } from "./hooks/useAsyncFocusBlur.mjs";
|
|
40
|
+
import { useRtl as _e } from "./hooks/useRtl.mjs";
|
|
41
41
|
import { useMouse as We } from "./hooks/useMouse.mjs";
|
|
42
|
-
import { useCustomComponent as
|
|
43
|
-
import { usePropsContext as
|
|
44
|
-
import { COLLECTION_ACTION as
|
|
45
|
-
import { useDocument as
|
|
46
|
-
import { useWindow as
|
|
47
|
-
import { useId as
|
|
48
|
-
import { useIsomorphicLayoutEffect as
|
|
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 {
|
|
42
|
+
import { useCustomComponent as He } from "./hooks/useCustomComponent.mjs";
|
|
43
|
+
import { usePropsContext as je } from "./hooks/usePropsContext.mjs";
|
|
44
|
+
import { COLLECTION_ACTION as ze, useCollection as Xe } from "./hooks/useCollection.mjs";
|
|
45
|
+
import { useDocument as qe } from "./hooks/useDocument.mjs";
|
|
46
|
+
import { useWindow as Qe } from "./hooks/useWindow.mjs";
|
|
47
|
+
import { useId as eo } from "./hooks/use-id.mjs";
|
|
48
|
+
import { useIsomorphicLayoutEffect as ro } from "./hooks/use-isomorphic-layout-effect.mjs";
|
|
49
|
+
import { useImmediateInheritState as po } from "./hooks/use-immediate-inherit-state.mjs";
|
|
50
|
+
import { Icon as mo } from "./icons/Icon.mjs";
|
|
51
|
+
import { SvgIcon as no } from "./icons/SvgIcon.mjs";
|
|
52
|
+
import { IconWrap as xo } from "./icons/IconWrap.mjs";
|
|
53
|
+
import { IconsContext as lo } from "./icons/IconsContext.mjs";
|
|
54
|
+
import { svgIconPropType as co, toIconClass as Io, toIconName as Co } from "./icons/utils.mjs";
|
|
55
|
+
import { Typography as Ao } from "./typography/Typography.mjs";
|
|
56
|
+
import { DragAndDrop as go } from "./drag-n-drop/index.mjs";
|
|
57
|
+
import { Draggable as Do } from "./Draggable.mjs";
|
|
58
|
+
import { Droppable as To } from "./Droppable.mjs";
|
|
59
|
+
import { useDraggable as Bo } from "./hooks/useDraggable.mjs";
|
|
60
|
+
import { useDroppable as So } from "./hooks/useDroppable.mjs";
|
|
61
|
+
import { kendoThemeMaps as yo } from "./theme.mjs";
|
|
62
|
+
import { memoizeOne as wo } from "./memoize.mjs";
|
|
63
|
+
import { Navigation as Oo } from "./navigation.mjs";
|
|
64
|
+
import { getActiveElement as Ro, getInnerActiveElement as Uo } from "./getActiveElement.mjs";
|
|
65
|
+
import { TreeFieldsService as Vo } from "./tree-utils/FieldsService.mjs";
|
|
66
|
+
import { SortedPublicItemIds as Go } from "./tree-utils/SortedPublicItemIds.mjs";
|
|
67
|
+
import { addItem as Ko, areAllDirectChildrenChecked as jo, getAllDirectIndirectChildrenIds as Zo, getAllParents as zo, hasChildren as Xo, isEnabledAndAllParentsEnabled as Yo, isItemExpandedAndWithChildren as qo, removeItem as Jo, resolveItemId as Qo, resolveItemsIds as $o, updateItem as er } from "./tree-utils/itemUtils.mjs";
|
|
68
|
+
import { getNestedValue as rr, isArray as tr } from "./tree-utils/misc.mjs";
|
|
69
|
+
import { RowHeightService as ar } from "./rowHeightService.mjs";
|
|
70
|
+
import { UnstyledContext as sr, useUnstyled as nr } from "./unstyled/main.mjs";
|
|
71
|
+
import { deepMerge as xr, isObject as fr, isPromise as lr } from "./deep-merge.mjs";
|
|
72
|
+
import { uAnimation as dr } from "./unstyled/animations.mjs";
|
|
73
|
+
import { uSvgIcon as Ir } from "./unstyled/icons.mjs";
|
|
74
|
+
import { uButton as hr, uButtonGroup as Ar, uDropDownButton as Er } from "./unstyled/buttons.mjs";
|
|
75
|
+
import { uComboBox as br, uDropDownList as Dr, uDropDownsActionSheet as Pr, uDropDownsBase as Tr } from "./unstyled/dropdowns.mjs";
|
|
76
|
+
import { uCalendar as Br, uDateInput as Mr, uDateTimePicker as Sr, uTime as Lr, uTimePicker as yr } from "./unstyled/dateinputs.mjs";
|
|
77
|
+
import { radioButtonClasses as wr, radioGroupClasses as Nr, uInput as Or, uMaskedTextBox as kr, uRadioButton as Rr, uRadioGroup as Ur, uTextBox as _r } from "./unstyled/inputs.mjs";
|
|
78
|
+
import { uError as Wr, uFloatingLabel as Gr, uHint as Hr, uLabel as Kr } from "./unstyled/labels.mjs";
|
|
79
|
+
import { uForm as Zr } from "./unstyled/form.mjs";
|
|
80
|
+
import { uPopup as Xr } from "./unstyled/popup.mjs";
|
|
81
|
+
import { uGrid as qr } from "./unstyled/grid.mjs";
|
|
82
|
+
import { actions as Qr, animationStyles as $r, base as et, buttonPrefix as ot, calendarPrefix as rt, comboBoxPrefix as tt, components as pt, containers as at, cssUtils as mt, cursor as st, dateInputs as nt, ddbPrefix as it, dimensions as xt, directionMap as ft, dropDownListPrefix as lt, elements as ut, fillModeMap as dt, forms as ct, grid as It, gridPrefix as Ct, gridRowReorder as ht, icon as At, inputPrefix as Et, inputs as gt, jsonTheme as bt, labels as Dt, maskedPrefix as Pt, orientationMap as Tt, pickerPrefix as vt, popup as Bt, radioPrefix as Mt, roundedMap as St, sizeMap as Lt, states as yt, themeColorMap as Ft } from "./unstyled/json-classes.mjs";
|
|
81
83
|
export {
|
|
82
84
|
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
83
85
|
ee as ADAPTIVE_SMALL_BREAKPOINT,
|
|
84
86
|
m as AdaptiveModeContext,
|
|
85
|
-
|
|
87
|
+
be as AsyncFocusBlur,
|
|
86
88
|
x as BrowserSupportService,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
ze as COLLECTION_ACTION,
|
|
90
|
+
go as DragAndDrop,
|
|
91
|
+
Do as Draggable,
|
|
92
|
+
To as Droppable,
|
|
91
93
|
oe as FIELD_REGEX,
|
|
92
94
|
re as FOCUSABLE_ELEMENTS,
|
|
93
95
|
te as FOCUSABLE_ELEMENTS_BASE,
|
|
94
96
|
O as FormComponent,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
mo as Icon,
|
|
98
|
+
xo as IconWrap,
|
|
99
|
+
lo as IconsContext,
|
|
98
100
|
H as KEYS,
|
|
99
101
|
K as Keys,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
Oo as Navigation,
|
|
103
|
+
ar as RowHeightService,
|
|
104
|
+
Go as SortedPublicItemIds,
|
|
105
|
+
no as SvgIcon,
|
|
104
106
|
pe as TABBABLE_ELEMENTS,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
Vo as TreeFieldsService,
|
|
108
|
+
Ao as Typography,
|
|
109
|
+
sr as UnstyledContext,
|
|
110
|
+
Ie as WatermarkOverlay,
|
|
109
111
|
t as ZIndexContext,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
Qr as actions,
|
|
113
|
+
Ko as addItem,
|
|
114
|
+
$r as animationStyles,
|
|
115
|
+
he as applyDefaultProps,
|
|
114
116
|
T as applyTrappedFocus,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
jo as areAllDirectChildrenChecked,
|
|
118
|
+
et as base,
|
|
119
|
+
ot as buttonPrefix,
|
|
120
|
+
rt as calendarPrefix,
|
|
119
121
|
l as canUseDOM,
|
|
120
122
|
d as canUseRef,
|
|
121
123
|
I as classNames,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
A as clone,
|
|
125
|
+
E as cloneArray,
|
|
126
|
+
g as cloneDate,
|
|
127
|
+
b as cloneObject,
|
|
128
|
+
D as cloneValue,
|
|
129
|
+
tt as comboBoxPrefix,
|
|
130
|
+
pt as components,
|
|
131
|
+
at as containers,
|
|
132
|
+
Pe as createPropsContext,
|
|
133
|
+
mt as cssUtils,
|
|
134
|
+
st as cursor,
|
|
135
|
+
nt as dateInputs,
|
|
136
|
+
it as ddbPrefix,
|
|
137
|
+
xr as deepMerge,
|
|
138
|
+
s as defaultValue,
|
|
139
|
+
xt as dimensions,
|
|
140
|
+
ft as directionMap,
|
|
138
141
|
v as disableNavigatableContainer,
|
|
139
142
|
Ee as dispatchEvent,
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
lt as dropDownListPrefix,
|
|
144
|
+
ut as elements,
|
|
142
145
|
B as enableNavigatableContainer,
|
|
143
146
|
me as extendDataItem,
|
|
144
|
-
|
|
147
|
+
dt as fillModeMap,
|
|
145
148
|
M as firstFocusableChild,
|
|
146
149
|
S as focusFirstFocusableChild,
|
|
147
150
|
L as focusLastFocusableChild,
|
|
148
151
|
y as focusableChildren,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
ct as forms,
|
|
153
|
+
Ro as getActiveElement,
|
|
154
|
+
Zo as getAllDirectIndirectChildrenIds,
|
|
155
|
+
zo as getAllParents,
|
|
156
|
+
Uo as getInnerActiveElement,
|
|
157
|
+
se as getItemPath,
|
|
158
|
+
rr as getNestedValue,
|
|
156
159
|
X as getScrollbarWidth,
|
|
157
160
|
R as getTabIndex,
|
|
158
161
|
_ as getter,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
162
|
+
It as grid,
|
|
163
|
+
Ct as gridPrefix,
|
|
164
|
+
ht as gridRowReorder,
|
|
165
|
+
W as guid,
|
|
166
|
+
Xo as hasChildren,
|
|
167
|
+
de as hasRelativeStackingContext,
|
|
168
|
+
fe as hasValidLicense,
|
|
169
|
+
At as icon,
|
|
170
|
+
Et as inputPrefix,
|
|
171
|
+
gt as inputs,
|
|
172
|
+
tr as isArray,
|
|
173
|
+
Yo as isEnabledAndAllParentsEnabled,
|
|
174
|
+
qo as isItemExpandedAndWithChildren,
|
|
175
|
+
fr as isObject,
|
|
176
|
+
lr as isPromise,
|
|
177
|
+
bt as jsonTheme,
|
|
172
178
|
F as keepFocusInContainer,
|
|
173
|
-
|
|
174
|
-
|
|
179
|
+
yo as kendoThemeMaps,
|
|
180
|
+
Dt as labels,
|
|
175
181
|
w as lastFocusableChild,
|
|
176
|
-
|
|
182
|
+
ne as mapTree,
|
|
177
183
|
ie as mapTreeItem,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
184
|
+
Pt as maskedPrefix,
|
|
185
|
+
wo as memoizeOne,
|
|
186
|
+
Z as noop,
|
|
187
|
+
Tt as orientationMap,
|
|
188
|
+
vt as pickerPrefix,
|
|
189
|
+
Bt as popup,
|
|
190
|
+
wr as radioButtonClasses,
|
|
191
|
+
Nr as radioGroupClasses,
|
|
192
|
+
Mt as radioPrefix,
|
|
193
|
+
Jo as removeItem,
|
|
194
|
+
Qo as resolveItemId,
|
|
195
|
+
$o as resolveItemsIds,
|
|
196
|
+
St as roundedMap,
|
|
191
197
|
Y as setScrollbarWidth,
|
|
192
198
|
J as setter,
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
Lt as sizeMap,
|
|
200
|
+
yt as states,
|
|
195
201
|
C as strippedClassNames,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
202
|
+
co as svgIconPropType,
|
|
203
|
+
Ft as themeColorMap,
|
|
204
|
+
Io as toIconClass,
|
|
205
|
+
Co as toIconName,
|
|
200
206
|
e as treeIdUtils,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
207
|
+
dr as uAnimation,
|
|
208
|
+
hr as uButton,
|
|
209
|
+
Ar as uButtonGroup,
|
|
210
|
+
Br as uCalendar,
|
|
211
|
+
br as uComboBox,
|
|
212
|
+
Mr as uDateInput,
|
|
213
|
+
Sr as uDateTimePicker,
|
|
214
|
+
Er as uDropDownButton,
|
|
215
|
+
Dr as uDropDownList,
|
|
216
|
+
Pr as uDropDownsActionSheet,
|
|
217
|
+
Tr as uDropDownsBase,
|
|
218
|
+
Wr as uError,
|
|
219
|
+
Gr as uFloatingLabel,
|
|
220
|
+
Zr as uForm,
|
|
221
|
+
qr as uGrid,
|
|
222
|
+
Hr as uHint,
|
|
223
|
+
Or as uInput,
|
|
224
|
+
Kr as uLabel,
|
|
225
|
+
kr as uMaskedTextBox,
|
|
226
|
+
Xr as uPopup,
|
|
227
|
+
Rr as uRadioButton,
|
|
228
|
+
Ur as uRadioGroup,
|
|
229
|
+
Ir as uSvgIcon,
|
|
230
|
+
_r as uTextBox,
|
|
231
|
+
Lr as uTime,
|
|
232
|
+
yr as uTimePicker,
|
|
233
|
+
er as updateItem,
|
|
234
|
+
n as useAdaptiveModeContext,
|
|
235
|
+
Re as useAsyncFocusBlur,
|
|
236
|
+
Xe as useCollection,
|
|
237
|
+
He as useCustomComponent,
|
|
238
|
+
Oe as useDir,
|
|
239
|
+
qe as useDocument,
|
|
240
|
+
Bo as useDraggable,
|
|
241
|
+
So as useDroppable,
|
|
242
|
+
eo as useId,
|
|
243
|
+
po as useImmediateInheritState,
|
|
244
|
+
ro as useIsomorphicLayoutEffect,
|
|
238
245
|
We as useMouse,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
246
|
+
je as usePropsContext,
|
|
247
|
+
_e as useRtl,
|
|
248
|
+
nr as useUnstyled,
|
|
249
|
+
Qe as useWindow,
|
|
243
250
|
p as useZIndexContext,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
251
|
+
le as validatePackage,
|
|
252
|
+
ye as withAdaptiveModeContext,
|
|
253
|
+
Be as withIdHOC,
|
|
254
|
+
Te as withPropsContext,
|
|
255
|
+
Se as withUnstyledHOC,
|
|
256
|
+
we as withZIndexContext
|
|
250
257
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-common",
|
|
3
|
-
"version": "11.0.0
|
|
3
|
+
"version": "11.0.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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@progress/kendo-licensing": "^1.
|
|
28
|
+
"@progress/kendo-licensing": "^1.6.0",
|
|
29
29
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
30
30
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
31
31
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
package/validate-package.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@progress/kendo-licensing"),i=require("./canUseDOM.js"),m=["telerik.com","progress.com","stackblitz.io","csb.app"],u="https://www.telerik.com/kendo-react-ui/components/free?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium",t=new Map,l=()=>{const s=Array.from(t,([e,n])=>`- ${e}: ${Array.from(n).join(", ")||"all"}`).join(`
|
|
9
9
|
`);console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"),console.warn(`License check was triggered by these premium KendoReact components/features
|
|
10
|
-
${
|
|
11
|
-
See the full list of free and premium components here: ${u}`),console.groupEnd(),t.clear()},p=(
|
|
10
|
+
${s}
|
|
11
|
+
See the full list of free and premium components here: ${u}`),console.groupEnd(),t.clear()},p=(s,e)=>{const n=r.validatePackage(s),a=m.some(c=>{var o;return(o=globalThis.document)==null?void 0:o.location.hostname.endsWith(c)});if(!n&&i.canUseDOM&&e)if(t.size===0&&setTimeout(l,1e3),t.has(e.component)){const c=t.get(e.component)||[];t.set(e.component,new Set([...e.features||[],...c]))}else t.set(e.component,e.features||[]);return n||a},g=s=>r.getLicenseStatus(s).isLicenseValid;exports.hasValidLicense=g;exports.validatePackage=p;
|