@progress/kendo-react-common 13.4.0-develop.4 → 13.4.0-develop.5
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/dist/cdn/js/kendo-react-common.js +1 -1
- package/index.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +140 -132
- package/kendopaste/KendoPasteEvent.d.ts +49 -0
- package/kendopaste/KendoPasteEvent.js +8 -0
- package/kendopaste/KendoPasteEvent.mjs +36 -0
- package/kendopaste/index.d.ts +9 -0
- package/kendopaste/useKendoPaste.d.ts +111 -0
- package/kendopaste/useKendoPaste.js +8 -0
- package/kendopaste/useKendoPaste.mjs +60 -0
- package/package.json +1 -1
package/index.d.mts
CHANGED
package/index.d.ts
CHANGED
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 T=require("./tree-utils/itemIdUtils.js"),g=require("./contexts/ZIndexContext.js"),l=require("./contexts/AdaptiveModeContext.js"),S=require("./browser-support.service.js"),M=require("./canUseDOM.js"),f=require("./canUseRef.js"),E=require("./classNames.js"),n=require("./clone.js"),o=require("./trappedFocus.js"),B=require("./FormComponent.js"),y=require("./getTabIndex.js"),F=require("./getter.js"),L=require("./guid.js"),x=require("./keys.js"),N=require("./noop.js"),q=require("./scrollbarWidth.js"),w=require("./setter.js"),s=require("./constants/main.js"),a=require("./treeDataOperations.js"),p=require("./validate-package.js"),O=require("./hasRelativeStackingContext.js"),_=require("./watermark/WatermarkOverlay.js"),k=require("./apply-default-props.js"),R=require("./events/dispatchEvent.js"),U=require("./hocs/AsyncFocusBlur.js"),P=require("./hocs/withPropsContext.js"),K=require("./hocs/use-id-hoc.js"),W=require("./hocs/use-unstyled-hoc.js"),V=require("./hocs/use-adaptive-mode-hoc.js"),H=require("./hocs/withzIndexContext.js"),G=require("./hooks/useDir.js"),j=require("./hooks/useAsyncFocusBlur.js"),Z=require("./hooks/useRtl.js"),z=require("./hooks/useMouse.js"),X=require("./hooks/useCustomComponent.js"),Y=require("./hooks/usePropsContext.js"),b=require("./hooks/useCollection.js"),$=require("./hooks/useDocument.js"),J=require("./hooks/useWindow.js"),Q=require("./hooks/use-id.js"),ee=require("./hooks/use-isomorphic-layout-effect.js"),te=require("./hooks/use-immediate-inherit-state.js"),oe=require("./icons/Icon.js"),re=require("./icons/SvgIcon.js"),se=require("./icons/IconWrap.js"),ne=require("./icons/IconsContext.js"),m=require("./icons/utils.js"),ie=require("./typography/Typography.js"),ae=require("./drag-n-drop/index.js"),ue=require("./Draggable.js"),ce=require("./Droppable.js"),de=require("./hooks/useDraggable.js"),le=require("./hooks/useDroppable.js"),pe=require("./theme.js"),me=require("./memoize.js"),Ie=require("./navigation.js"),h=require("./getActiveElement.js"),Ce=require("./fileExtensionIcon.js"),ge=require("./tree-utils/FieldsService.js"),Ee=require("./tree-utils/SortedPublicItemIds.js"),t=require("./tree-utils/itemUtils.js"),A=require("./tree-utils/misc.js"),xe=require("./rowHeightService.js"),D=require("./unstyled/main.js"),I=require("./deep-merge.js"),qe=require("./unstyled/animations.js"),Pe=require("./unstyled/icons.js"),C=require("./unstyled/buttons.js"),u=require("./unstyled/dropdowns.js"),i=require("./unstyled/dateinputs.js"),r=require("./unstyled/inputs.js"),c=require("./unstyled/labels.js"),be=require("./unstyled/form.js"),he=require("./unstyled/popup.js"),Ae=require("./unstyled/grid.js"),e=require("./unstyled/json-classes.js"),d=require("./kendopaste/KendoPasteEvent.js"),v=require("./kendopaste/useKendoPaste.js");exports.treeIdUtils=T;exports.ZIndexContext=g.ZIndexContext;exports.useZIndexContext=g.useZIndexContext;exports.AdaptiveModeContext=l.AdaptiveModeContext;exports.defaultValue=l.defaultValue;exports.useAdaptiveModeContext=l.useAdaptiveModeContext;exports.BrowserSupportService=S.BrowserSupportService;exports.canUseDOM=M.canUseDOM;exports.canUseRef=f.canUseRef;exports.classNames=E.classNames;exports.strippedClassNames=E.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=B.FormComponent;exports.getTabIndex=y.getTabIndex;exports.getter=F.getter;exports.guid=L.guid;exports.KEYS=x.KEYS;exports.Keys=x.Keys;exports.noop=N.noop;exports.getScrollbarWidth=q.getScrollbarWidth;exports.setScrollbarWidth=q.setScrollbarWidth;exports.setter=w.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.getLicenseMessage=p.getLicenseMessage;exports.hasValidLicense=p.hasValidLicense;exports.validatePackage=p.validatePackage;exports.hasRelativeStackingContext=O.hasRelativeStackingContext;exports.WatermarkOverlay=_.WatermarkOverlay;exports.applyDefaultProps=k.applyDefaultProps;exports.dispatchEvent=R.dispatchEvent;exports.AsyncFocusBlur=U.AsyncFocusBlur;exports.createPropsContext=P.createPropsContext;exports.withPropsContext=P.withPropsContext;exports.withIdHOC=K.withIdHOC;exports.withUnstyledHOC=W.withUnstyledHOC;exports.withAdaptiveModeContext=V.withAdaptiveModeContext;exports.withZIndexContext=H.withZIndexContext;exports.useDir=G.useDir;exports.useAsyncFocusBlur=j.useAsyncFocusBlur;exports.useRtl=Z.useRtl;exports.useMouse=z.useMouse;exports.useCustomComponent=X.useCustomComponent;exports.usePropsContext=Y.usePropsContext;exports.COLLECTION_ACTION=b.COLLECTION_ACTION;exports.useCollection=b.useCollection;exports.useDocument=$.useDocument;exports.useWindow=J.useWindow;exports.useId=Q.useId;exports.useIsomorphicLayoutEffect=ee.useIsomorphicLayoutEffect;exports.useImmediateInheritState=te.useImmediateInheritState;exports.Icon=oe.Icon;exports.SvgIcon=re.SvgIcon;exports.IconWrap=se.IconWrap;exports.IconsContext=ne.IconsContext;exports.svgIconPropType=m.svgIconPropType;exports.toIconClass=m.toIconClass;exports.toIconName=m.toIconName;exports.Typography=ie.Typography;exports.DragAndDrop=ae.DragAndDrop;exports.Draggable=ue.Draggable;exports.Droppable=ce.Droppable;exports.useDraggable=de.useDraggable;exports.useDroppable=le.useDroppable;exports.kendoThemeMaps=pe.kendoThemeMaps;exports.memoizeOne=me.memoizeOne;exports.Navigation=Ie.Navigation;exports.getActiveElement=h.getActiveElement;exports.getInnerActiveElement=h.getInnerActiveElement;exports.getFileExtensionIcon=Ce.getFileExtensionIcon;exports.TreeFieldsService=ge.TreeFieldsService;exports.SortedPublicItemIds=Ee.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=xe.RowHeightService;exports.UnstyledContext=D.UnstyledContext;exports.useUnstyled=D.useUnstyled;exports.deepMerge=I.deepMerge;exports.isObject=I.isObject;exports.isPromise=I.isPromise;exports.uAnimation=qe.uAnimation;exports.uSvgIcon=Pe.uSvgIcon;exports.uButton=C.uButton;exports.uButtonGroup=C.uButtonGroup;exports.uDropDownButton=C.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=be.uForm;exports.uPopup=he.uPopup;exports.uGrid=Ae.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;exports.KENDO_PASTE_EVENT_NAME=d.KENDO_PASTE_EVENT_NAME;exports.createKendoPasteEvent=d.createKendoPasteEvent;exports.dispatchKendoPasteEvent=d.dispatchKendoPasteEvent;exports.getKendoPasteEventTarget=d.getKendoPasteEventTarget;exports.subscribeToKendoPaste=v.subscribeToKendoPaste;exports.useKendoPaste=v.useKendoPaste;
|
package/index.mjs
CHANGED
|
@@ -7,39 +7,39 @@
|
|
|
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 a, defaultValue as
|
|
10
|
+
import { AdaptiveModeContext as a, defaultValue as n, useAdaptiveModeContext as m } from "./contexts/AdaptiveModeContext.mjs";
|
|
11
11
|
import { BrowserSupportService as x } from "./browser-support.service.mjs";
|
|
12
|
-
import { canUseDOM as
|
|
13
|
-
import { canUseRef as
|
|
12
|
+
import { canUseDOM as d } from "./canUseDOM.mjs";
|
|
13
|
+
import { canUseRef as l } from "./canUseRef.mjs";
|
|
14
14
|
import { classNames as I, strippedClassNames as C } from "./classNames.mjs";
|
|
15
|
-
import { clone as
|
|
16
|
-
import { applyTrappedFocus as T, disableNavigatableContainer as
|
|
17
|
-
import { FormComponent as
|
|
18
|
-
import { getTabIndex as
|
|
19
|
-
import { getter as
|
|
20
|
-
import { guid as
|
|
21
|
-
import { KEYS as
|
|
15
|
+
import { clone as g, cloneArray as P, cloneDate as A, cloneObject as h, cloneValue as b } from "./clone.mjs";
|
|
16
|
+
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";
|
|
17
|
+
import { FormComponent as w } from "./FormComponent.mjs";
|
|
18
|
+
import { getTabIndex as k } from "./getTabIndex.mjs";
|
|
19
|
+
import { getter as U } from "./getter.mjs";
|
|
20
|
+
import { guid as V } from "./guid.mjs";
|
|
21
|
+
import { KEYS as G, Keys as H } from "./keys.mjs";
|
|
22
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 ae, getItemPath as
|
|
27
|
-
import { getLicenseMessage as fe, hasValidLicense as
|
|
26
|
+
import { extendDataItem as ae, getItemPath as ne, mapTree as me, mapTreeItem as ie } from "./treeDataOperations.mjs";
|
|
27
|
+
import { getLicenseMessage as fe, hasValidLicense as de, validatePackage as ue } from "./validate-package.mjs";
|
|
28
28
|
import { hasRelativeStackingContext as ce } from "./hasRelativeStackingContext.mjs";
|
|
29
29
|
import { WatermarkOverlay as Ce } from "./watermark/WatermarkOverlay.mjs";
|
|
30
|
-
import { applyDefaultProps as
|
|
30
|
+
import { applyDefaultProps as ge } from "./apply-default-props.mjs";
|
|
31
31
|
import { dispatchEvent as Ae } from "./events/dispatchEvent.mjs";
|
|
32
|
-
import { AsyncFocusBlur as
|
|
33
|
-
import { createPropsContext as Te, withPropsContext as
|
|
34
|
-
import { withIdHOC as
|
|
32
|
+
import { AsyncFocusBlur as be } from "./hocs/AsyncFocusBlur.mjs";
|
|
33
|
+
import { createPropsContext as Te, withPropsContext as ve } from "./hocs/withPropsContext.mjs";
|
|
34
|
+
import { withIdHOC as Se } from "./hocs/use-id-hoc.mjs";
|
|
35
35
|
import { withUnstyledHOC as Le } from "./hocs/use-unstyled-hoc.mjs";
|
|
36
|
-
import { withAdaptiveModeContext as
|
|
37
|
-
import { withZIndexContext as
|
|
38
|
-
import { useDir as
|
|
39
|
-
import { useAsyncFocusBlur as
|
|
40
|
-
import { useRtl as
|
|
41
|
-
import { useMouse as
|
|
42
|
-
import { useCustomComponent as
|
|
36
|
+
import { withAdaptiveModeContext as Ne } from "./hocs/use-adaptive-mode-hoc.mjs";
|
|
37
|
+
import { withZIndexContext as Oe } from "./hocs/withzIndexContext.mjs";
|
|
38
|
+
import { useDir as _e } from "./hooks/useDir.mjs";
|
|
39
|
+
import { useAsyncFocusBlur as Re } from "./hooks/useAsyncFocusBlur.mjs";
|
|
40
|
+
import { useRtl as Ke } from "./hooks/useRtl.mjs";
|
|
41
|
+
import { useMouse as We } from "./hooks/useMouse.mjs";
|
|
42
|
+
import { useCustomComponent as He } from "./hooks/useCustomComponent.mjs";
|
|
43
43
|
import { usePropsContext as Ze } from "./hooks/usePropsContext.mjs";
|
|
44
44
|
import { COLLECTION_ACTION as Xe, useCollection as Ye } from "./hooks/useCollection.mjs";
|
|
45
45
|
import { useDocument as Je } from "./hooks/useDocument.mjs";
|
|
@@ -47,214 +47,222 @@ import { useWindow as $e } from "./hooks/useWindow.mjs";
|
|
|
47
47
|
import { useId as oo } from "./hooks/use-id.mjs";
|
|
48
48
|
import { useIsomorphicLayoutEffect as to } from "./hooks/use-isomorphic-layout-effect.mjs";
|
|
49
49
|
import { useImmediateInheritState as so } from "./hooks/use-immediate-inherit-state.mjs";
|
|
50
|
-
import { Icon as
|
|
50
|
+
import { Icon as no } from "./icons/Icon.mjs";
|
|
51
51
|
import { SvgIcon as io } from "./icons/SvgIcon.mjs";
|
|
52
52
|
import { IconWrap as fo } from "./icons/IconWrap.mjs";
|
|
53
|
-
import { IconsContext as
|
|
54
|
-
import { svgIconPropType as Io, toIconClass as Co, toIconName as
|
|
55
|
-
import { Typography as
|
|
56
|
-
import { DragAndDrop as
|
|
57
|
-
import { Draggable as
|
|
58
|
-
import { Droppable as
|
|
59
|
-
import { useDraggable as
|
|
53
|
+
import { IconsContext as lo } from "./icons/IconsContext.mjs";
|
|
54
|
+
import { svgIconPropType as Io, toIconClass as Co, toIconName as Eo } from "./icons/utils.mjs";
|
|
55
|
+
import { Typography as Po } from "./typography/Typography.mjs";
|
|
56
|
+
import { DragAndDrop as ho } from "./drag-n-drop/index.mjs";
|
|
57
|
+
import { Draggable as Do } from "./Draggable.mjs";
|
|
58
|
+
import { Droppable as vo } from "./Droppable.mjs";
|
|
59
|
+
import { useDraggable as So } from "./hooks/useDraggable.mjs";
|
|
60
60
|
import { useDroppable as Lo } from "./hooks/useDroppable.mjs";
|
|
61
|
-
import { kendoThemeMaps as
|
|
62
|
-
import { memoizeOne as
|
|
63
|
-
import { Navigation as
|
|
64
|
-
import { getActiveElement as
|
|
65
|
-
import { getFileExtensionIcon as
|
|
66
|
-
import { TreeFieldsService as
|
|
61
|
+
import { kendoThemeMaps as No } from "./theme.mjs";
|
|
62
|
+
import { memoizeOne as Oo } from "./memoize.mjs";
|
|
63
|
+
import { Navigation as _o } from "./navigation.mjs";
|
|
64
|
+
import { getActiveElement as Ro, getInnerActiveElement as Uo } from "./getActiveElement.mjs";
|
|
65
|
+
import { getFileExtensionIcon as Vo } from "./fileExtensionIcon.mjs";
|
|
66
|
+
import { TreeFieldsService as Go } from "./tree-utils/FieldsService.mjs";
|
|
67
67
|
import { SortedPublicItemIds as jo } from "./tree-utils/SortedPublicItemIds.mjs";
|
|
68
68
|
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";
|
|
69
69
|
import { getNestedValue as sr, isArray as ar } from "./tree-utils/misc.mjs";
|
|
70
|
-
import { RowHeightService as
|
|
70
|
+
import { RowHeightService as mr } from "./rowHeightService.mjs";
|
|
71
71
|
import { UnstyledContext as xr, useUnstyled as fr } from "./unstyled/main.mjs";
|
|
72
|
-
import { deepMerge as ur, isObject as
|
|
72
|
+
import { deepMerge as ur, isObject as lr, isPromise as cr } from "./deep-merge.mjs";
|
|
73
73
|
import { uAnimation as Cr } from "./unstyled/animations.mjs";
|
|
74
|
-
import { uSvgIcon as
|
|
75
|
-
import { uButton as Ar, uButtonGroup as
|
|
76
|
-
import { uComboBox as Tr, uDropDownList as
|
|
77
|
-
import { uCalendar as Lr, uDateInput as Fr, uDateTimePicker as
|
|
78
|
-
import { radioButtonClasses as
|
|
79
|
-
import { uError as
|
|
74
|
+
import { uSvgIcon as gr } from "./unstyled/icons.mjs";
|
|
75
|
+
import { uButton as Ar, uButtonGroup as hr, uDropDownButton as br } from "./unstyled/buttons.mjs";
|
|
76
|
+
import { uComboBox as Tr, uDropDownList as vr, uDropDownsActionSheet as Mr, uDropDownsBase as Sr } from "./unstyled/dropdowns.mjs";
|
|
77
|
+
import { uCalendar as Lr, uDateInput as Fr, uDateTimePicker as Nr, uTime as yr, uTimePicker as Or } from "./unstyled/dateinputs.mjs";
|
|
78
|
+
import { radioButtonClasses as _r, radioGroupClasses as kr, uInput as Rr, uMaskedTextBox as Ur, uRadioButton as Kr, uRadioGroup as Vr, uTextBox as Wr } from "./unstyled/inputs.mjs";
|
|
79
|
+
import { uError as Hr, uFloatingLabel as jr, uHint as Zr, uLabel as zr } from "./unstyled/labels.mjs";
|
|
80
80
|
import { uForm as Yr } from "./unstyled/form.mjs";
|
|
81
81
|
import { uPopup as Jr } from "./unstyled/popup.mjs";
|
|
82
82
|
import { uGrid as $r } from "./unstyled/grid.mjs";
|
|
83
|
-
import { actions as ot, animationStyles as rt, base as tt, buttonPrefix as pt, calendarPrefix as st, comboBoxPrefix as at, components as
|
|
83
|
+
import { actions as ot, animationStyles as rt, base as tt, buttonPrefix as pt, calendarPrefix as st, comboBoxPrefix as at, components as nt, containers as mt, cssUtils as it, cursor as xt, dateInputs as ft, ddbPrefix as dt, dimensions as ut, directionMap as lt, dropDownListPrefix as ct, elements as It, fillModeMap as Ct, forms as Et, grid as gt, gridPrefix as Pt, gridRowReorder as At, icon as ht, inputPrefix as bt, inputs as Dt, jsonTheme as Tt, labels as vt, maskedPrefix as Mt, orientationMap as St, pickerPrefix as Bt, popup as Lt, radioPrefix as Ft, roundedMap as Nt, sizeMap as yt, states as Ot, themeColorMap as wt } from "./unstyled/json-classes.mjs";
|
|
84
|
+
import { KENDO_PASTE_EVENT_NAME as kt, createKendoPasteEvent as Rt, dispatchKendoPasteEvent as Ut, getKendoPasteEventTarget as Kt } from "./kendopaste/KendoPasteEvent.mjs";
|
|
85
|
+
import { subscribeToKendoPaste as Wt, useKendoPaste as Gt } from "./kendopaste/useKendoPaste.mjs";
|
|
84
86
|
export {
|
|
85
87
|
$ as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
86
88
|
ee as ADAPTIVE_SMALL_BREAKPOINT,
|
|
87
89
|
a as AdaptiveModeContext,
|
|
88
|
-
|
|
90
|
+
be as AsyncFocusBlur,
|
|
89
91
|
x as BrowserSupportService,
|
|
90
92
|
Xe as COLLECTION_ACTION,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
ho as DragAndDrop,
|
|
94
|
+
Do as Draggable,
|
|
95
|
+
vo as Droppable,
|
|
94
96
|
oe as FIELD_REGEX,
|
|
95
97
|
re as FOCUSABLE_ELEMENTS,
|
|
96
98
|
te as FOCUSABLE_ELEMENTS_BASE,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
w as FormComponent,
|
|
100
|
+
no as Icon,
|
|
99
101
|
fo as IconWrap,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
lo as IconsContext,
|
|
103
|
+
kt as KENDO_PASTE_EVENT_NAME,
|
|
104
|
+
G as KEYS,
|
|
105
|
+
H as Keys,
|
|
106
|
+
_o as Navigation,
|
|
107
|
+
mr as RowHeightService,
|
|
105
108
|
jo as SortedPublicItemIds,
|
|
106
109
|
io as SvgIcon,
|
|
107
110
|
pe as TABBABLE_ELEMENTS,
|
|
108
|
-
|
|
109
|
-
|
|
111
|
+
Go as TreeFieldsService,
|
|
112
|
+
Po as Typography,
|
|
110
113
|
xr as UnstyledContext,
|
|
111
114
|
Ce as WatermarkOverlay,
|
|
112
115
|
t as ZIndexContext,
|
|
113
116
|
ot as actions,
|
|
114
117
|
zo as addItem,
|
|
115
118
|
rt as animationStyles,
|
|
116
|
-
|
|
119
|
+
ge as applyDefaultProps,
|
|
117
120
|
T as applyTrappedFocus,
|
|
118
121
|
Xo as areAllDirectChildrenChecked,
|
|
119
122
|
tt as base,
|
|
120
123
|
pt as buttonPrefix,
|
|
121
124
|
st as calendarPrefix,
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
d as canUseDOM,
|
|
126
|
+
l as canUseRef,
|
|
124
127
|
I as classNames,
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
g as clone,
|
|
129
|
+
P as cloneArray,
|
|
127
130
|
A as cloneDate,
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
h as cloneObject,
|
|
132
|
+
b as cloneValue,
|
|
130
133
|
at as comboBoxPrefix,
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
nt as components,
|
|
135
|
+
mt as containers,
|
|
136
|
+
Rt as createKendoPasteEvent,
|
|
133
137
|
Te as createPropsContext,
|
|
134
138
|
it as cssUtils,
|
|
135
139
|
xt as cursor,
|
|
136
140
|
ft as dateInputs,
|
|
137
|
-
|
|
141
|
+
dt as ddbPrefix,
|
|
138
142
|
ur as deepMerge,
|
|
139
|
-
|
|
143
|
+
n as defaultValue,
|
|
140
144
|
ut as dimensions,
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
lt as directionMap,
|
|
146
|
+
v as disableNavigatableContainer,
|
|
143
147
|
Ae as dispatchEvent,
|
|
148
|
+
Ut as dispatchKendoPasteEvent,
|
|
144
149
|
ct as dropDownListPrefix,
|
|
145
150
|
It as elements,
|
|
146
|
-
|
|
151
|
+
M as enableNavigatableContainer,
|
|
147
152
|
ae as extendDataItem,
|
|
148
153
|
Ct as fillModeMap,
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
S as firstFocusableChild,
|
|
155
|
+
B as focusFirstFocusableChild,
|
|
151
156
|
L as focusLastFocusableChild,
|
|
152
157
|
F as focusableChildren,
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
Et as forms,
|
|
159
|
+
Ro as getActiveElement,
|
|
155
160
|
Yo as getAllDirectIndirectChildrenIds,
|
|
156
161
|
qo as getAllParents,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
Vo as getFileExtensionIcon,
|
|
163
|
+
Uo as getInnerActiveElement,
|
|
164
|
+
ne as getItemPath,
|
|
165
|
+
Kt as getKendoPasteEventTarget,
|
|
160
166
|
fe as getLicenseMessage,
|
|
161
167
|
sr as getNestedValue,
|
|
162
168
|
X as getScrollbarWidth,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
k as getTabIndex,
|
|
170
|
+
U as getter,
|
|
171
|
+
gt as grid,
|
|
172
|
+
Pt as gridPrefix,
|
|
167
173
|
At as gridRowReorder,
|
|
168
|
-
|
|
174
|
+
V as guid,
|
|
169
175
|
Jo as hasChildren,
|
|
170
176
|
ce as hasRelativeStackingContext,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
177
|
+
de as hasValidLicense,
|
|
178
|
+
ht as icon,
|
|
179
|
+
bt as inputPrefix,
|
|
180
|
+
Dt as inputs,
|
|
175
181
|
ar as isArray,
|
|
176
182
|
Qo as isEnabledAndAllParentsEnabled,
|
|
177
183
|
$o as isItemExpandedAndWithChildren,
|
|
178
|
-
|
|
184
|
+
lr as isObject,
|
|
179
185
|
cr as isPromise,
|
|
180
186
|
Tt as jsonTheme,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
187
|
+
N as keepFocusInContainer,
|
|
188
|
+
No as kendoThemeMaps,
|
|
189
|
+
vt as labels,
|
|
190
|
+
y as lastFocusableChild,
|
|
191
|
+
me as mapTree,
|
|
186
192
|
ie as mapTreeItem,
|
|
187
|
-
|
|
188
|
-
|
|
193
|
+
Mt as maskedPrefix,
|
|
194
|
+
Oo as memoizeOne,
|
|
189
195
|
Z as noop,
|
|
190
|
-
|
|
191
|
-
|
|
196
|
+
St as orientationMap,
|
|
197
|
+
Bt as pickerPrefix,
|
|
192
198
|
Lt as popup,
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
_r as radioButtonClasses,
|
|
200
|
+
kr as radioGroupClasses,
|
|
195
201
|
Ft as radioPrefix,
|
|
196
202
|
er as removeItem,
|
|
197
203
|
or as resolveItemId,
|
|
198
204
|
rr as resolveItemsIds,
|
|
199
|
-
|
|
205
|
+
Nt as roundedMap,
|
|
200
206
|
Y as setScrollbarWidth,
|
|
201
207
|
J as setter,
|
|
202
|
-
|
|
203
|
-
|
|
208
|
+
yt as sizeMap,
|
|
209
|
+
Ot as states,
|
|
204
210
|
C as strippedClassNames,
|
|
211
|
+
Wt as subscribeToKendoPaste,
|
|
205
212
|
Io as svgIconPropType,
|
|
206
|
-
|
|
213
|
+
wt as themeColorMap,
|
|
207
214
|
Co as toIconClass,
|
|
208
|
-
|
|
215
|
+
Eo as toIconName,
|
|
209
216
|
e as treeIdUtils,
|
|
210
217
|
Cr as uAnimation,
|
|
211
218
|
Ar as uButton,
|
|
212
|
-
|
|
219
|
+
hr as uButtonGroup,
|
|
213
220
|
Lr as uCalendar,
|
|
214
221
|
Tr as uComboBox,
|
|
215
222
|
Fr as uDateInput,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
223
|
+
Nr as uDateTimePicker,
|
|
224
|
+
br as uDropDownButton,
|
|
225
|
+
vr as uDropDownList,
|
|
226
|
+
Mr as uDropDownsActionSheet,
|
|
227
|
+
Sr as uDropDownsBase,
|
|
228
|
+
Hr as uError,
|
|
222
229
|
jr as uFloatingLabel,
|
|
223
230
|
Yr as uForm,
|
|
224
231
|
$r as uGrid,
|
|
225
232
|
Zr as uHint,
|
|
226
|
-
|
|
233
|
+
Rr as uInput,
|
|
227
234
|
zr as uLabel,
|
|
228
|
-
|
|
235
|
+
Ur as uMaskedTextBox,
|
|
229
236
|
Jr as uPopup,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
237
|
+
Kr as uRadioButton,
|
|
238
|
+
Vr as uRadioGroup,
|
|
239
|
+
gr as uSvgIcon,
|
|
240
|
+
Wr as uTextBox,
|
|
241
|
+
yr as uTime,
|
|
242
|
+
Or as uTimePicker,
|
|
236
243
|
tr as updateItem,
|
|
237
|
-
|
|
238
|
-
|
|
244
|
+
m as useAdaptiveModeContext,
|
|
245
|
+
Re as useAsyncFocusBlur,
|
|
239
246
|
Ye as useCollection,
|
|
240
|
-
|
|
241
|
-
|
|
247
|
+
He as useCustomComponent,
|
|
248
|
+
_e as useDir,
|
|
242
249
|
Je as useDocument,
|
|
243
|
-
|
|
250
|
+
So as useDraggable,
|
|
244
251
|
Lo as useDroppable,
|
|
245
252
|
oo as useId,
|
|
246
253
|
so as useImmediateInheritState,
|
|
247
254
|
to as useIsomorphicLayoutEffect,
|
|
248
|
-
|
|
255
|
+
Gt as useKendoPaste,
|
|
256
|
+
We as useMouse,
|
|
249
257
|
Ze as usePropsContext,
|
|
250
|
-
|
|
258
|
+
Ke as useRtl,
|
|
251
259
|
fr as useUnstyled,
|
|
252
260
|
$e as useWindow,
|
|
253
261
|
p as useZIndexContext,
|
|
254
262
|
ue as validatePackage,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
263
|
+
Ne as withAdaptiveModeContext,
|
|
264
|
+
Se as withIdHOC,
|
|
265
|
+
ve as withPropsContext,
|
|
258
266
|
Le as withUnstyledHOC,
|
|
259
|
-
|
|
267
|
+
Oe as withZIndexContext
|
|
260
268
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const KENDO_PASTE_EVENT_NAME = "kendo-populate-event";
|
|
12
|
+
/**
|
|
13
|
+
* Represents the detail payload for the KendoPopulateEvent.
|
|
14
|
+
*/
|
|
15
|
+
export interface KendoPopulateEventDetail {
|
|
16
|
+
/**
|
|
17
|
+
* A record of field names to their values to populate.
|
|
18
|
+
*/
|
|
19
|
+
fieldValues: Record<string, any>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Custom event type for smart paste population.
|
|
23
|
+
* Components can listen for this event to receive field values from the SmartPasteButton.
|
|
24
|
+
*/
|
|
25
|
+
export type KendoPopulateEvent = CustomEvent<KendoPopulateEventDetail>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a KendoPopulateEvent with the given field values.
|
|
28
|
+
*
|
|
29
|
+
* @param fieldValues - The field values to populate
|
|
30
|
+
* @returns A CustomEvent that can be dispatched
|
|
31
|
+
*/
|
|
32
|
+
export declare function createKendoPasteEvent(fieldValues: Record<string, any>): KendoPopulateEvent;
|
|
33
|
+
/**
|
|
34
|
+
* Dispatches a smart paste populate event from the given element.
|
|
35
|
+
* The event will bubble up through the DOM tree.
|
|
36
|
+
*
|
|
37
|
+
* @param element - The element to dispatch the event from
|
|
38
|
+
* @param fieldValues - The field values to populate
|
|
39
|
+
* @returns true if the event was not cancelled, false otherwise
|
|
40
|
+
*/
|
|
41
|
+
export declare function dispatchKendoPasteEvent(element: Element | null, fieldValues: Record<string, any>): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Finds the closest form element from a given element.
|
|
44
|
+
* Returns the element's closest <form>, Kendo Form wrapper, or the document body as fallback.
|
|
45
|
+
*
|
|
46
|
+
* @param element - The starting element
|
|
47
|
+
* @returns The closest form-like container or document body
|
|
48
|
+
*/
|
|
49
|
+
export declare function getKendoPasteEventTarget(element: Element | null): Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="kendo-populate-event";function r(e){return new CustomEvent(o,{bubbles:!0,cancelable:!0,detail:{fieldValues:e}})}function s(e,t){if(!e)return!1;const n=r(t);return e.dispatchEvent(n)}function a(e){if(!e)return document.body;const t=e.closest("form");if(t)return t;const n=e.closest(".k-form");return n||document.body}exports.KENDO_PASTE_EVENT_NAME=o;exports.createKendoPasteEvent=r;exports.dispatchKendoPasteEvent=s;exports.getKendoPasteEventTarget=a;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
const o = "kendo-populate-event";
|
|
9
|
+
function r(t) {
|
|
10
|
+
return new CustomEvent(o, {
|
|
11
|
+
bubbles: !0,
|
|
12
|
+
cancelable: !0,
|
|
13
|
+
detail: { fieldValues: t }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function u(t, e) {
|
|
17
|
+
if (!t)
|
|
18
|
+
return !1;
|
|
19
|
+
const n = r(e);
|
|
20
|
+
return t.dispatchEvent(n);
|
|
21
|
+
}
|
|
22
|
+
function c(t) {
|
|
23
|
+
if (!t)
|
|
24
|
+
return document.body;
|
|
25
|
+
const e = t.closest("form");
|
|
26
|
+
if (e)
|
|
27
|
+
return e;
|
|
28
|
+
const n = t.closest(".k-form");
|
|
29
|
+
return n || document.body;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
o as KENDO_PASTE_EVENT_NAME,
|
|
33
|
+
r as createKendoPasteEvent,
|
|
34
|
+
u as dispatchKendoPasteEvent,
|
|
35
|
+
c as getKendoPasteEventTarget
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export * from './KendoPasteEvent.js';
|
|
9
|
+
export * from './useKendoPaste.js';
|