@progress/kendo-react-common 11.0.0-develop.1 → 11.0.0-develop.11
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 +18 -1
- package/index.d.ts +18 -1
- package/index.js +1 -1
- package/index.mjs +158 -152
- package/package.json +1 -1
- package/rowHeightService.js +1 -1
- package/rowHeightService.mjs +12 -7
- package/unstyled/dropdowns.js +1 -1
- package/unstyled/dropdowns.mjs +3 -3
- package/watermark/WatermarkOverlay.js +1 -1
- package/watermark/WatermarkOverlay.mjs +11 -34
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;
|
|
@@ -2386,6 +2389,12 @@ export declare function isItemExpandedAndWithChildren(item: any, fieldsSvc: Tree
|
|
|
2386
2389
|
*/
|
|
2387
2390
|
declare function isItemFirstFromSiblings(itemId: string): boolean;
|
|
2388
2391
|
|
|
2392
|
+
/** @hidden */
|
|
2393
|
+
export declare function isObject(item: any): any;
|
|
2394
|
+
|
|
2395
|
+
/** @hidden */
|
|
2396
|
+
export declare const isPromise: (value: any) => value is Promise<any>;
|
|
2397
|
+
|
|
2389
2398
|
/**
|
|
2390
2399
|
* @hidden
|
|
2391
2400
|
*/
|
|
@@ -3005,11 +3014,12 @@ export declare class RowHeightService {
|
|
|
3005
3014
|
private total;
|
|
3006
3015
|
private offsets;
|
|
3007
3016
|
private heights;
|
|
3008
|
-
constructor(total: number, rowHeight: number
|
|
3017
|
+
constructor(total: number, rowHeight: number);
|
|
3009
3018
|
height(rowIndex: number): number;
|
|
3010
3019
|
index(position: number): number;
|
|
3011
3020
|
offset(rowIndex: number): number;
|
|
3012
3021
|
totalHeight(): number;
|
|
3022
|
+
update(startIndex: number, rowHeights: Array<number>): void;
|
|
3013
3023
|
}
|
|
3014
3024
|
|
|
3015
3025
|
/**
|
|
@@ -3885,6 +3895,13 @@ export declare function useDroppable(ref: React_2.RefObject<HTMLElement | null |
|
|
|
3885
3895
|
/** @hidden */
|
|
3886
3896
|
export declare function useId(id?: string): any;
|
|
3887
3897
|
|
|
3898
|
+
/**
|
|
3899
|
+
* @hidden
|
|
3900
|
+
*/
|
|
3901
|
+
export declare const useImmediateInheritState: <T>(defaultValue: T, propValue?: T | undefined) => {
|
|
3902
|
+
value: T;
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3888
3905
|
/** @hidden */
|
|
3889
3906
|
export declare const useIsomorphicLayoutEffect: typeof React_2.useEffect;
|
|
3890
3907
|
|
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;
|
|
@@ -2386,6 +2389,12 @@ export declare function isItemExpandedAndWithChildren(item: any, fieldsSvc: Tree
|
|
|
2386
2389
|
*/
|
|
2387
2390
|
declare function isItemFirstFromSiblings(itemId: string): boolean;
|
|
2388
2391
|
|
|
2392
|
+
/** @hidden */
|
|
2393
|
+
export declare function isObject(item: any): any;
|
|
2394
|
+
|
|
2395
|
+
/** @hidden */
|
|
2396
|
+
export declare const isPromise: (value: any) => value is Promise<any>;
|
|
2397
|
+
|
|
2389
2398
|
/**
|
|
2390
2399
|
* @hidden
|
|
2391
2400
|
*/
|
|
@@ -3005,11 +3014,12 @@ export declare class RowHeightService {
|
|
|
3005
3014
|
private total;
|
|
3006
3015
|
private offsets;
|
|
3007
3016
|
private heights;
|
|
3008
|
-
constructor(total: number, rowHeight: number
|
|
3017
|
+
constructor(total: number, rowHeight: number);
|
|
3009
3018
|
height(rowIndex: number): number;
|
|
3010
3019
|
index(position: number): number;
|
|
3011
3020
|
offset(rowIndex: number): number;
|
|
3012
3021
|
totalHeight(): number;
|
|
3022
|
+
update(startIndex: number, rowHeights: Array<number>): void;
|
|
3013
3023
|
}
|
|
3014
3024
|
|
|
3015
3025
|
/**
|
|
@@ -3885,6 +3895,13 @@ export declare function useDroppable(ref: React_2.RefObject<HTMLElement | null |
|
|
|
3885
3895
|
/** @hidden */
|
|
3886
3896
|
export declare function useId(id?: string): any;
|
|
3887
3897
|
|
|
3898
|
+
/**
|
|
3899
|
+
* @hidden
|
|
3900
|
+
*/
|
|
3901
|
+
export declare const useImmediateInheritState: <T>(defaultValue: T, propValue?: T | undefined) => {
|
|
3902
|
+
value: T;
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3888
3905
|
/** @hidden */
|
|
3889
3906
|
export declare const useIsomorphicLayoutEffect: typeof React_2.useEffect;
|
|
3890
3907
|
|
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 E=require("./tree-utils/itemIdUtils.js"),I=require("./contexts/ZIndexContext.js"),l=require("./contexts/AdaptiveModeContext.js"),P=require("./browser-support.service.js"),v=require("./canUseDOM.js"),S=require("./canUseRef.js"),C=require("./classNames.js"),n=require("./clone.js"),o=require("./trappedFocus.js"),T=require("./FormComponent.js"),f=require("./getTabIndex.js"),M=require("./getter.js"),B=require("./guid.js"),x=require("./keys.js"),y=require("./noop.js"),g=require("./scrollbarWidth.js"),F=require("./setter.js"),s=require("./constants/main.js"),u=require("./treeDataOperations.js"),L=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"),q=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"),G=require("./hooks/useDir.js"),V=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"),ue=require("./Droppable.js"),ae=require("./hooks/useDraggable.js"),ce=require("./hooks/useDroppable.js"),le=require("./theme.js"),de=require("./memoize.js"),pe=require("./navigation.js"),h=require("./getActiveElement.js"),me=require("./tree-utils/FieldsService.js"),Ie=require("./tree-utils/SortedPublicItemIds.js"),t=require("./tree-utils/itemUtils.js"),A=require("./tree-utils/misc.js"),Ce=require("./rowHeightService.js"),D=require("./unstyled/main.js"),p=require("./deep-merge.js"),xe=require("./unstyled/animations.js"),ge=require("./unstyled/icons.js"),m=require("./unstyled/buttons.js"),a=require("./unstyled/dropdowns.js"),i=require("./unstyled/dateinputs.js"),r=require("./unstyled/inputs.js"),c=require("./unstyled/labels.js"),qe=require("./unstyled/form.js"),be=require("./unstyled/popup.js"),he=require("./unstyled/grid.js"),e=require("./unstyled/json-classes.js");exports.treeIdUtils=E;exports.ZIndexContext=I.ZIndexContext;exports.useZIndexContext=I.useZIndexContext;exports.AdaptiveModeContext=l.AdaptiveModeContext;exports.defaultValue=l.defaultValue;exports.useAdaptiveModeContext=l.useAdaptiveModeContext;exports.BrowserSupportService=P.BrowserSupportService;exports.canUseDOM=v.canUseDOM;exports.canUseRef=S.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=T.FormComponent;exports.getTabIndex=f.getTabIndex;exports.getter=M.getter;exports.guid=B.guid;exports.KEYS=x.KEYS;exports.Keys=x.Keys;exports.noop=y.noop;exports.getScrollbarWidth=g.getScrollbarWidth;exports.setScrollbarWidth=g.setScrollbarWidth;exports.setter=F.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=u.extendDataItem;exports.getItemPath=u.getItemPath;exports.mapTree=u.mapTree;exports.mapTreeItem=u.mapTreeItem;exports.validatePackage=L.validatePackage;exports.hasRelativeStackingContext=w.hasRelativeStackingContext;exports.WatermarkOverlay=O.WatermarkOverlay;exports.applyDefaultProps=N.applyDefaultProps;exports.dispatchEvent=k.dispatchEvent;exports.AsyncFocusBlur=R.AsyncFocusBlur;exports.createPropsContext=q.createPropsContext;exports.withPropsContext=q.withPropsContext;exports.withIdHOC=U.withIdHOC;exports.withUnstyledHOC=_.withUnstyledHOC;exports.withAdaptiveModeContext=W.withAdaptiveModeContext;exports.withZIndexContext=H.withZIndexContext;exports.useDir=G.useDir;exports.useAsyncFocusBlur=V.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=ue.Droppable;exports.useDraggable=ae.useDraggable;exports.useDroppable=ce.useDroppable;exports.kendoThemeMaps=le.kendoThemeMaps;exports.memoizeOne=de.memoizeOne;exports.Navigation=pe.Navigation;exports.getActiveElement=h.getActiveElement;exports.getInnerActiveElement=h.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=A.getNestedValue;exports.isArray=A.isArray;exports.RowHeightService=Ce.RowHeightService;exports.UnstyledContext=D.UnstyledContext;exports.useUnstyled=D.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=a.uComboBox;exports.uDropDownList=a.uDropDownList;exports.uDropDownsActionSheet=a.uDropDownsActionSheet;exports.uDropDownsBase=a.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=be.uPopup;exports.uGrid=he.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,30 +7,30 @@
|
|
|
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
|
|
10
|
+
import { AdaptiveModeContext as a, defaultValue as s, useAdaptiveModeContext as n } from "./contexts/AdaptiveModeContext.mjs";
|
|
11
11
|
import { BrowserSupportService as x } from "./browser-support.service.mjs";
|
|
12
|
-
import { canUseDOM as
|
|
12
|
+
import { canUseDOM as u } 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 E, cloneArray as g, cloneDate as h, cloneObject as
|
|
15
|
+
import { clone as E, cloneArray as g, cloneDate as h, 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
20
|
import { guid as G } 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
|
|
26
|
+
import { extendDataItem as ae, getItemPath as se, mapTree as ne, mapTreeItem as ie } from "./treeDataOperations.mjs";
|
|
27
27
|
import { validatePackage as fe } from "./validate-package.mjs";
|
|
28
|
-
import { hasRelativeStackingContext as
|
|
28
|
+
import { hasRelativeStackingContext as le } from "./hasRelativeStackingContext.mjs";
|
|
29
29
|
import { WatermarkOverlay as ce } from "./watermark/WatermarkOverlay.mjs";
|
|
30
30
|
import { applyDefaultProps as Ce } from "./apply-default-props.mjs";
|
|
31
31
|
import { dispatchEvent as Ee } from "./events/dispatchEvent.mjs";
|
|
32
32
|
import { AsyncFocusBlur as he } from "./hocs/AsyncFocusBlur.mjs";
|
|
33
|
-
import { createPropsContext as
|
|
33
|
+
import { createPropsContext as De, withPropsContext as Pe } from "./hocs/withPropsContext.mjs";
|
|
34
34
|
import { withIdHOC as ve } from "./hocs/use-id-hoc.mjs";
|
|
35
35
|
import { withUnstyledHOC as Me } from "./hocs/use-unstyled-hoc.mjs";
|
|
36
36
|
import { withAdaptiveModeContext as Le } from "./hocs/use-adaptive-mode-hoc.mjs";
|
|
@@ -41,204 +41,210 @@ import { useRtl as Ue } from "./hooks/useRtl.mjs";
|
|
|
41
41
|
import { useMouse as We } from "./hooks/useMouse.mjs";
|
|
42
42
|
import { useCustomComponent as Ve } from "./hooks/useCustomComponent.mjs";
|
|
43
43
|
import { usePropsContext as Ke } from "./hooks/usePropsContext.mjs";
|
|
44
|
-
import { COLLECTION_ACTION as
|
|
44
|
+
import { COLLECTION_ACTION as Ze, useCollection as ze } from "./hooks/useCollection.mjs";
|
|
45
45
|
import { useDocument as Ye } from "./hooks/useDocument.mjs";
|
|
46
46
|
import { useWindow as Je } from "./hooks/useWindow.mjs";
|
|
47
47
|
import { useId as $e } from "./hooks/use-id.mjs";
|
|
48
48
|
import { useIsomorphicLayoutEffect as oo } from "./hooks/use-isomorphic-layout-effect.mjs";
|
|
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 {
|
|
49
|
+
import { useImmediateInheritState as to } from "./hooks/use-immediate-inherit-state.mjs";
|
|
50
|
+
import { Icon as mo } from "./icons/Icon.mjs";
|
|
51
|
+
import { SvgIcon as so } from "./icons/SvgIcon.mjs";
|
|
52
|
+
import { IconWrap as io } from "./icons/IconWrap.mjs";
|
|
53
|
+
import { IconsContext as fo } from "./icons/IconsContext.mjs";
|
|
54
|
+
import { svgIconPropType as lo, toIconClass as co, toIconName as Io } 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 bo } from "./Draggable.mjs";
|
|
58
|
+
import { Droppable as Po } from "./Droppable.mjs";
|
|
59
|
+
import { useDraggable as vo } from "./hooks/useDraggable.mjs";
|
|
60
|
+
import { useDroppable as Mo } from "./hooks/useDroppable.mjs";
|
|
61
|
+
import { kendoThemeMaps as Lo } from "./theme.mjs";
|
|
62
|
+
import { memoizeOne as Fo } from "./memoize.mjs";
|
|
63
|
+
import { Navigation as No } from "./navigation.mjs";
|
|
64
|
+
import { getActiveElement as ko, getInnerActiveElement as Ro } from "./getActiveElement.mjs";
|
|
65
|
+
import { TreeFieldsService as _o } from "./tree-utils/FieldsService.mjs";
|
|
66
|
+
import { SortedPublicItemIds as Go } from "./tree-utils/SortedPublicItemIds.mjs";
|
|
67
|
+
import { addItem as Ho, areAllDirectChildrenChecked as Ko, getAllDirectIndirectChildrenIds as jo, getAllParents as Zo, hasChildren as zo, isEnabledAndAllParentsEnabled as Xo, isItemExpandedAndWithChildren as Yo, removeItem as qo, resolveItemId as Jo, resolveItemsIds as Qo, updateItem as $o } from "./tree-utils/itemUtils.mjs";
|
|
68
|
+
import { getNestedValue as or, isArray as rr } from "./tree-utils/misc.mjs";
|
|
69
|
+
import { RowHeightService as pr } from "./rowHeightService.mjs";
|
|
70
|
+
import { UnstyledContext as ar, useUnstyled as sr } from "./unstyled/main.mjs";
|
|
71
|
+
import { deepMerge as ir, isObject as xr, isPromise as fr } from "./deep-merge.mjs";
|
|
72
|
+
import { uAnimation as lr } from "./unstyled/animations.mjs";
|
|
73
|
+
import { uSvgIcon as cr } from "./unstyled/icons.mjs";
|
|
74
|
+
import { uButton as Cr, uButtonGroup as Ar, uDropDownButton as Er } from "./unstyled/buttons.mjs";
|
|
75
|
+
import { uComboBox as hr, uDropDownList as br, uDropDownsActionSheet as Dr, uDropDownsBase as Pr } from "./unstyled/dropdowns.mjs";
|
|
76
|
+
import { uCalendar as vr, uDateInput as Br, uDateTimePicker as Mr, uTime as Sr, uTimePicker as Lr } from "./unstyled/dateinputs.mjs";
|
|
77
|
+
import { radioButtonClasses as Fr, radioGroupClasses as wr, uInput as Nr, uMaskedTextBox as Or, uRadioButton as kr, uRadioGroup as Rr, uTextBox as Ur } from "./unstyled/inputs.mjs";
|
|
78
|
+
import { uError as Wr, uFloatingLabel as Gr, uHint as Vr, uLabel as Hr } from "./unstyled/labels.mjs";
|
|
79
|
+
import { uForm as jr } from "./unstyled/form.mjs";
|
|
80
|
+
import { uPopup as zr } from "./unstyled/popup.mjs";
|
|
81
|
+
import { uGrid as Yr } from "./unstyled/grid.mjs";
|
|
82
|
+
import { actions as Jr, animationStyles as Qr, base as $r, buttonPrefix as et, calendarPrefix as ot, comboBoxPrefix as rt, components as tt, containers as pt, cssUtils as mt, cursor as at, dateInputs as st, ddbPrefix as nt, dimensions as it, directionMap as xt, dropDownListPrefix as ft, elements as ut, fillModeMap as lt, forms as dt, grid as ct, gridPrefix as It, gridRowReorder as Ct, icon as At, inputPrefix as Et, inputs as gt, jsonTheme as ht, labels as bt, maskedPrefix as Dt, orientationMap as Pt, pickerPrefix as Tt, popup as vt, radioPrefix as Bt, roundedMap as Mt, sizeMap as St, states as Lt, themeColorMap as yt } from "./unstyled/json-classes.mjs";
|
|
81
83
|
export {
|
|
82
84
|
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
83
85
|
ee as ADAPTIVE_SMALL_BREAKPOINT,
|
|
84
|
-
|
|
86
|
+
a as AdaptiveModeContext,
|
|
85
87
|
he as AsyncFocusBlur,
|
|
86
88
|
x as BrowserSupportService,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Ze as COLLECTION_ACTION,
|
|
90
|
+
go as DragAndDrop,
|
|
91
|
+
bo as Draggable,
|
|
92
|
+
Po 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
|
+
io as IconWrap,
|
|
99
|
+
fo as IconsContext,
|
|
98
100
|
H as KEYS,
|
|
99
101
|
K as Keys,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
No as Navigation,
|
|
103
|
+
pr as RowHeightService,
|
|
104
|
+
Go as SortedPublicItemIds,
|
|
105
|
+
so as SvgIcon,
|
|
104
106
|
pe as TABBABLE_ELEMENTS,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
_o as TreeFieldsService,
|
|
108
|
+
Ao as Typography,
|
|
109
|
+
ar as UnstyledContext,
|
|
108
110
|
ce as WatermarkOverlay,
|
|
109
111
|
t as ZIndexContext,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
Jr as actions,
|
|
113
|
+
Ho as addItem,
|
|
114
|
+
Qr as animationStyles,
|
|
113
115
|
Ce as applyDefaultProps,
|
|
114
116
|
T as applyTrappedFocus,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
Ko as areAllDirectChildrenChecked,
|
|
118
|
+
$r as base,
|
|
119
|
+
et as buttonPrefix,
|
|
120
|
+
ot as calendarPrefix,
|
|
121
|
+
u as canUseDOM,
|
|
120
122
|
d as canUseRef,
|
|
121
123
|
I as classNames,
|
|
122
124
|
E as clone,
|
|
123
125
|
g as cloneArray,
|
|
124
126
|
h as cloneDate,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
127
|
+
b as cloneObject,
|
|
128
|
+
D as cloneValue,
|
|
129
|
+
rt as comboBoxPrefix,
|
|
130
|
+
tt as components,
|
|
131
|
+
pt as containers,
|
|
132
|
+
De as createPropsContext,
|
|
133
|
+
mt as cssUtils,
|
|
134
|
+
at as cursor,
|
|
135
|
+
st as dateInputs,
|
|
136
|
+
nt as ddbPrefix,
|
|
137
|
+
ir as deepMerge,
|
|
138
|
+
s as defaultValue,
|
|
139
|
+
it as dimensions,
|
|
140
|
+
xt as directionMap,
|
|
138
141
|
v as disableNavigatableContainer,
|
|
139
142
|
Ee as dispatchEvent,
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
ft as dropDownListPrefix,
|
|
144
|
+
ut as elements,
|
|
142
145
|
B as enableNavigatableContainer,
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
ae as extendDataItem,
|
|
147
|
+
lt 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
|
+
dt as forms,
|
|
153
|
+
ko as getActiveElement,
|
|
154
|
+
jo as getAllDirectIndirectChildrenIds,
|
|
155
|
+
Zo as getAllParents,
|
|
156
|
+
Ro as getInnerActiveElement,
|
|
157
|
+
se as getItemPath,
|
|
158
|
+
or as getNestedValue,
|
|
156
159
|
X as getScrollbarWidth,
|
|
157
160
|
R as getTabIndex,
|
|
158
161
|
_ as getter,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
ct as grid,
|
|
163
|
+
It as gridPrefix,
|
|
164
|
+
Ct as gridRowReorder,
|
|
162
165
|
G as guid,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
zo as hasChildren,
|
|
167
|
+
le as hasRelativeStackingContext,
|
|
168
|
+
At as icon,
|
|
169
|
+
Et as inputPrefix,
|
|
170
|
+
gt as inputs,
|
|
171
|
+
rr as isArray,
|
|
172
|
+
Xo as isEnabledAndAllParentsEnabled,
|
|
173
|
+
Yo as isItemExpandedAndWithChildren,
|
|
174
|
+
xr as isObject,
|
|
175
|
+
fr as isPromise,
|
|
176
|
+
ht as jsonTheme,
|
|
172
177
|
F as keepFocusInContainer,
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
Lo as kendoThemeMaps,
|
|
179
|
+
bt as labels,
|
|
175
180
|
w as lastFocusableChild,
|
|
176
|
-
|
|
181
|
+
ne as mapTree,
|
|
177
182
|
ie as mapTreeItem,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
Dt as maskedPrefix,
|
|
184
|
+
Fo as memoizeOne,
|
|
185
|
+
Z as noop,
|
|
186
|
+
Pt as orientationMap,
|
|
187
|
+
Tt as pickerPrefix,
|
|
188
|
+
vt as popup,
|
|
189
|
+
Fr as radioButtonClasses,
|
|
190
|
+
wr as radioGroupClasses,
|
|
191
|
+
Bt as radioPrefix,
|
|
192
|
+
qo as removeItem,
|
|
193
|
+
Jo as resolveItemId,
|
|
194
|
+
Qo as resolveItemsIds,
|
|
195
|
+
Mt as roundedMap,
|
|
191
196
|
Y as setScrollbarWidth,
|
|
192
197
|
J as setter,
|
|
193
|
-
|
|
194
|
-
|
|
198
|
+
St as sizeMap,
|
|
199
|
+
Lt as states,
|
|
195
200
|
C as strippedClassNames,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
201
|
+
lo as svgIconPropType,
|
|
202
|
+
yt as themeColorMap,
|
|
203
|
+
co as toIconClass,
|
|
204
|
+
Io as toIconName,
|
|
200
205
|
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
|
-
|
|
206
|
+
lr as uAnimation,
|
|
207
|
+
Cr as uButton,
|
|
208
|
+
Ar as uButtonGroup,
|
|
209
|
+
vr as uCalendar,
|
|
210
|
+
hr as uComboBox,
|
|
211
|
+
Br as uDateInput,
|
|
212
|
+
Mr as uDateTimePicker,
|
|
213
|
+
Er as uDropDownButton,
|
|
214
|
+
br as uDropDownList,
|
|
215
|
+
Dr as uDropDownsActionSheet,
|
|
216
|
+
Pr as uDropDownsBase,
|
|
217
|
+
Wr as uError,
|
|
218
|
+
Gr as uFloatingLabel,
|
|
219
|
+
jr as uForm,
|
|
220
|
+
Yr as uGrid,
|
|
221
|
+
Vr as uHint,
|
|
222
|
+
Nr as uInput,
|
|
223
|
+
Hr as uLabel,
|
|
224
|
+
Or as uMaskedTextBox,
|
|
225
|
+
zr as uPopup,
|
|
226
|
+
kr as uRadioButton,
|
|
227
|
+
Rr as uRadioGroup,
|
|
228
|
+
cr as uSvgIcon,
|
|
229
|
+
Ur as uTextBox,
|
|
230
|
+
Sr as uTime,
|
|
231
|
+
Lr as uTimePicker,
|
|
232
|
+
$o as updateItem,
|
|
233
|
+
n as useAdaptiveModeContext,
|
|
229
234
|
ke as useAsyncFocusBlur,
|
|
230
235
|
ze as useCollection,
|
|
231
236
|
Ve as useCustomComponent,
|
|
232
237
|
Ne as useDir,
|
|
233
238
|
Ye as useDocument,
|
|
234
|
-
|
|
235
|
-
|
|
239
|
+
vo as useDraggable,
|
|
240
|
+
Mo as useDroppable,
|
|
236
241
|
$e as useId,
|
|
242
|
+
to as useImmediateInheritState,
|
|
237
243
|
oo as useIsomorphicLayoutEffect,
|
|
238
244
|
We as useMouse,
|
|
239
245
|
Ke as usePropsContext,
|
|
240
246
|
Ue as useRtl,
|
|
241
|
-
|
|
247
|
+
sr as useUnstyled,
|
|
242
248
|
Je as useWindow,
|
|
243
249
|
p as useZIndexContext,
|
|
244
250
|
fe as validatePackage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-common",
|
|
3
|
-
"version": "11.0.0-develop.
|
|
3
|
+
"version": "11.0.0-develop.11",
|
|
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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class f{constructor(t=0,s){this.total=t,this.offsets=[],this.heights=[];let h=0;for(let e=0;e<t;e++)this.offsets.push(h),h+=s,this.heights.push(s)}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}update(t,s){let h=this.offsets[t];for(let e=t;e<this.heights.length;e++){this.offsets[e]=h;const i=s[e-t]||this.heights[e];h+=i,this.heights[e]=i}}}exports.RowHeightService=f;
|
package/rowHeightService.mjs
CHANGED
|
@@ -6,14 +6,11 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
class g {
|
|
9
|
-
constructor(t = 0, s
|
|
9
|
+
constructor(t = 0, s) {
|
|
10
10
|
this.total = t, this.offsets = [], this.heights = [];
|
|
11
|
-
let
|
|
12
|
-
for (let
|
|
13
|
-
this.offsets.push(
|
|
14
|
-
const f = h && h[e].expanded && h[e].rowType === "data" ? r : s;
|
|
15
|
-
i += f, this.heights.push(f);
|
|
16
|
-
}
|
|
11
|
+
let e = 0;
|
|
12
|
+
for (let h = 0; h < t; h++)
|
|
13
|
+
this.offsets.push(e), e += s, this.heights.push(s);
|
|
17
14
|
}
|
|
18
15
|
height(t) {
|
|
19
16
|
return this.heights[t];
|
|
@@ -34,6 +31,14 @@ class g {
|
|
|
34
31
|
const t = this.offsets[this.offsets.length - 1], s = this.heights[this.heights.length - 1];
|
|
35
32
|
return t + s;
|
|
36
33
|
}
|
|
34
|
+
update(t, s) {
|
|
35
|
+
let e = this.offsets[t];
|
|
36
|
+
for (let h = t; h < this.heights.length; h++) {
|
|
37
|
+
this.offsets[h] = e;
|
|
38
|
+
const i = s[h - t] || this.heights[h];
|
|
39
|
+
e += i, this.heights[h] = i;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
export {
|
|
39
44
|
g as RowHeightService
|