@progress/kendo-react-grid 14.2.1-develop.2 → 14.2.1-develop.4
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/GridState.d.ts +1 -1
- package/GridState.js +1 -1
- package/GridState.mjs +41 -41
- package/cells/rowreordercell/GridRowReorderCell.d.ts +1 -1
- package/cells/rowreordercell/GridRowReorderCell.js +1 -1
- package/cells/rowreordercell/GridRowReorderCell.mjs +6 -6
- package/cells/rowreordercell/GridRowReorderCellServer.d.ts +1 -1
- package/cells/rowreordercell/GridRowReorderCellServer.js +1 -1
- package/cells/rowreordercell/GridRowReorderCellServer.mjs +3 -3
- package/columnMenu/adaptiveContent/GridActionSheetFooter.d.ts +1 -1
- package/columnMenu/adaptiveContent/GridActionSheetFooter.js +1 -1
- package/columnMenu/adaptiveContent/GridActionSheetFooter.mjs +3 -3
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.d.ts +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.d.ts +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.d.ts +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +7 -7
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.d.ts +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +3 -3
- package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.d.ts +1 -1
- package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.js +1 -1
- package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.mjs +6 -6
- package/components/GridDraggableRowsContainer.d.ts +1 -1
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +20 -20
- package/components/GridEditDialog.d.ts +1 -1
- package/components/GridEditDialog.js +1 -1
- package/components/GridEditDialog.mjs +7 -7
- package/components/icons/reorder-row-svg.d.ts +1 -1
- package/components/icons/reorder-row-svg.js +1 -1
- package/components/icons/reorder-row-svg.mjs +3 -3
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +5 -6
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +17 -17
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.d.ts +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.js +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.mjs +7 -7
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.d.ts +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.js +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.mjs +4 -4
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.d.ts +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.js +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.mjs +3 -3
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.d.ts +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.js +1 -1
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.mjs +5 -5
- package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.d.ts +1 -1
- package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.js +1 -1
- package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.mjs +6 -6
- package/utils/_serverModule.d.ts +1 -1
- package/utils/_serverModule.js +1 -1
- package/utils/_serverModule.mjs +1 -1
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),X=require("../utils/GridContext.js"),R=require("@progress/kendo-react-common"),n=require("./utils.js"),J=require("react-dom"),I=require("@progress/kendo-svg-icons"),K=require("../utils/index.js");function Q(u){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(u){for(const f in u)if(f!=="default"){const D=Object.getOwnPropertyDescriptor(u,f);Object.defineProperty(o,f,D.get?D:{enumerable:!0,get:()=>u[f]})}}return o.default=u,Object.freeze(o)}const e=Q(W),O={zIndex:"19000",position:"absolute",display:"none",visibility:"hidden"},T={zIndex:"20000",display:"flex",position:"fixed",visibility:"hidden",pointerEvents:"none"},U=u=>{const{rowReorderSettings:o,columns:f,unstyled:D}=u,{rowReorder:k,reorderRowDragTargetRef:d,reorderRowDropTargetRef:c,activeDragRowDataItemRef:g,tableBodyElementRef:N}=e.useContext(X.GridContext),[P,v]=e.useState(!1),[q,M]=e.useState(I.cancelIcon),C=e.useRef(null),p=e.useRef(null),s=e.useRef(null),E=e.useRef(null),m=e.useRef(!1),y=e.useRef(null),h=e.useRef(null),S=typeof o=="object"?o.enabled:o;e.useEffect(()=>{N.current=C.current},[]);const j=t=>{var l;const r=t.originalEvent.target;r.closest(".k-drag-cell")&&(E.current=t.offsetY,m.current=!0,d.current=r.closest(".k-table-row"),h.current=(l=d.current)==null?void 0:l.parentElement)},Y=t=>{!m.current||!S||!g.current||(d.current&&(d.current.style.userSelect="none"),v(!0))},B=t=>{if(!m.current&&!p.current)return;const{clientX:r,clientY:i}=t,l=E.current,b={x:r,y:i-l};p.current&&(p.current.style.left=`${b.x}px`,p.current.style.top=`${b.y}px`,p.current.style.visibility="visible"),G(t)},F=t=>{var i;if(!S||!g.current)return;v(!1);const r=Number((i=c.current)==null?void 0:i.getAttribute("absolute-row-index"));k(t,r,y.current),m.current=!1,h.current=null};R.useDraggable(C,{onPress:j,onDragStart:Y,onDrag:B,onDragEnd:F});const G=t=>{y.current=H(t),$()},$=()=>{var l;if(y.current===n.dropDirection.forbidden||!c.current){z();return}V();const t=n.getOffset(c.current);let r=t.top;const i=t.left+(((l=s.current)==null?void 0:l.offsetWidth)||0)/2;y.current===n.dropDirection.after&&(r+=c.current.offsetHeight),s.current&&(s.current.style.top=`${r}px`,s.current.style.left=`${i}px`,s.current.style.visibility="visible")},z=()=>{s.current&&(s.current.style.display="none")},V=()=>{s.current&&(s.current.style.display="")},_=()=>{if(g.current){if(o.dragClue){if(typeof o.dragClue=="string")return o.dragClue}else{const t=f.find(i=>!i.hidden&&i.columnType==="data");return g.current[t.field]}return o.dragClue(g.current)}},H=t=>{var w;if(c.current===d.current||!c.current||((w=c.current)==null?void 0:w.parentElement)!==h.current)return n.dropDirection.forbidden;const r=c.current.getBoundingClientRect(),l=r.height/2,b=t.clientY,x=r.top;let a=null;b<x+l?a=n.dropDirection.before:b>=x+r.height-l&&(a=n.dropDirection.after),(a===n.dropDirection.before&&c.current===d.current.nextElementSibling||a===n.dropDirection.after&&c.current===d.current.previousElementSibling)&&(a=n.dropDirection.forbidden);const L=a===n.dropDirection.forbidden?I.cancelIcon:I.insertMiddleIcon;return M(L),a},A=e.useMemo(_,[g.current]);return e.createElement(e.Fragment,null,P&&J.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{ref:s,style:O,className:R.classNames(D.rowReorder({dropIndicatorMain:!0,dropIndicatorDirection:!0}))},e.createElement("div",{className:"k-drop-hint-start"}),e.createElement("div",{className:"k-drop-hint-line"})),e.createElement("div",{ref:p,style:T,className:R.classNames(D.rowReorder({dragClueMain:!0,dragClueOperation:!0}))},e.createElement(R.SvgIcon,{className:"k-drag-status",icon:q}),A)),document.body),K.cloneReactElement(u.children,{ref:C}))};exports.GridReorderableRowsContainer=U;exports.dropIndicatorStyles=O;exports.hintClueStyles=T;
|
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import e from "react";
|
|
9
|
+
import * as e from "react";
|
|
10
10
|
import { GridContext as H } from "../utils/GridContext.mjs";
|
|
11
|
-
import { useDraggable as
|
|
12
|
-
import { dropDirection as o, getOffset as
|
|
13
|
-
import
|
|
14
|
-
import { cancelIcon as w, insertMiddleIcon as
|
|
15
|
-
import { cloneReactElement as
|
|
16
|
-
const
|
|
11
|
+
import { useDraggable as j, classNames as x, SvgIcon as A } from "@progress/kendo-react-common";
|
|
12
|
+
import { dropDirection as o, getOffset as L } from "./utils.mjs";
|
|
13
|
+
import W from "react-dom";
|
|
14
|
+
import { cancelIcon as w, insertMiddleIcon as X } from "@progress/kendo-svg-icons";
|
|
15
|
+
import { cloneReactElement as q } from "../utils/index.mjs";
|
|
16
|
+
const J = {
|
|
17
17
|
zIndex: "19000",
|
|
18
18
|
position: "absolute",
|
|
19
19
|
display: "none",
|
|
20
20
|
visibility: "hidden"
|
|
21
|
-
},
|
|
21
|
+
}, K = {
|
|
22
22
|
zIndex: "20000",
|
|
23
23
|
display: "flex",
|
|
24
24
|
position: "fixed",
|
|
25
25
|
visibility: "hidden",
|
|
26
26
|
pointerEvents: "none"
|
|
27
|
-
},
|
|
27
|
+
}, ce = (b) => {
|
|
28
28
|
const { rowReorderSettings: a, columns: S, unstyled: y } = b, {
|
|
29
29
|
rowReorder: T,
|
|
30
30
|
reorderRowDragTargetRef: u,
|
|
@@ -34,7 +34,7 @@ const q = {
|
|
|
34
34
|
} = e.useContext(H), [N, C] = e.useState(!1), [O, P] = e.useState(w), D = e.useRef(null), f = e.useRef(null), c = e.useRef(null), h = e.useRef(null), p = e.useRef(!1), m = e.useRef(null), R = e.useRef(null), E = typeof a == "object" ? a.enabled : a;
|
|
35
35
|
e.useEffect(() => {
|
|
36
36
|
k.current = D.current;
|
|
37
|
-
}, []),
|
|
37
|
+
}, []), j(D, {
|
|
38
38
|
onPress: (r) => {
|
|
39
39
|
var s;
|
|
40
40
|
const t = r.originalEvent.target;
|
|
@@ -67,7 +67,7 @@ const q = {
|
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
F();
|
|
70
|
-
const r =
|
|
70
|
+
const r = L(i.current);
|
|
71
71
|
let t = r.top;
|
|
72
72
|
const n = r.left + (((s = c.current) == null ? void 0 : s.offsetWidth) || 0) / 2;
|
|
73
73
|
m.current === o.after && (t += i.current.offsetHeight), c.current && (c.current.style.top = `${t}px`, c.current.style.left = `${n}px`, c.current.style.visibility = "visible");
|
|
@@ -95,15 +95,15 @@ const q = {
|
|
|
95
95
|
const t = i.current.getBoundingClientRect(), s = t.height / 2, g = r.clientY, I = t.top;
|
|
96
96
|
let l = null;
|
|
97
97
|
g < I + s ? l = o.before : g >= I + t.height - s && (l = o.after), l === o.before && i.current === u.current.nextElementSibling ? l = o.forbidden : l === o.after && i.current === u.current.previousElementSibling && (l = o.forbidden);
|
|
98
|
-
const G = l === o.forbidden ? w :
|
|
98
|
+
const G = l === o.forbidden ? w : X;
|
|
99
99
|
return P(G), l;
|
|
100
100
|
}, z = e.useMemo($, [d.current]);
|
|
101
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, N &&
|
|
101
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, N && W.createPortal(
|
|
102
102
|
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
105
|
ref: c,
|
|
106
|
-
style:
|
|
106
|
+
style: J,
|
|
107
107
|
className: x(
|
|
108
108
|
y.rowReorder({ dropIndicatorMain: !0, dropIndicatorDirection: !0 })
|
|
109
109
|
)
|
|
@@ -114,19 +114,19 @@ const q = {
|
|
|
114
114
|
"div",
|
|
115
115
|
{
|
|
116
116
|
ref: f,
|
|
117
|
-
style:
|
|
117
|
+
style: K,
|
|
118
118
|
className: x(y.rowReorder({ dragClueMain: !0, dragClueOperation: !0 }))
|
|
119
119
|
},
|
|
120
|
-
/* @__PURE__ */ e.createElement(
|
|
120
|
+
/* @__PURE__ */ e.createElement(A, { className: "k-drag-status", icon: O }),
|
|
121
121
|
z
|
|
122
122
|
)),
|
|
123
123
|
document.body
|
|
124
|
-
),
|
|
124
|
+
), q(b.children, {
|
|
125
125
|
ref: D
|
|
126
126
|
}));
|
|
127
127
|
};
|
|
128
128
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
ce as GridReorderableRowsContainer,
|
|
130
|
+
J as dropIndicatorStyles,
|
|
131
|
+
K as hintClueStyles
|
|
132
132
|
};
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as React } from 'react';
|
|
9
8
|
import { ExtendedColumnProps } from '../GridColumn.js';
|
|
10
9
|
import { GridEditDialogProps as CustomEditDialogProps } from '../interfaces/GridEditDialogProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),x=require("react-dom"),I=require("@progress/kendo-react-layout"),u=require("@progress/kendo-react-buttons"),r=require("@progress/kendo-react-labels"),M=require("@progress/kendo-react-intl"),_=require("@progress/kendo-react-dateinputs"),O=require("@progress/kendo-react-common"),E=require("@progress/kendo-svg-icons"),D=require("@progress/kendo-react-inputs"),C=require("@progress/kendo-react-data-tools"),B=require("@progress/kendo-react-dialogs"),c=require("@progress/kendo-react-form"),w=require("../utils/GridContext.js"),o=require("../messages/index.js");function z(n){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(d,l,i.get?i:{enumerable:!0,get:()=>n[l]})}}return d.default=n,Object.freeze(d)}const e=z(q),A=n=>{var h;const d=M.useLocalization(),l=O.useAdaptiveModeContext(),i=e.useContext(w.GridContext),g=(a,t)=>{i.onDialogEditSubmit&&i.onDialogEditSubmit({dataItem:a,syntheticEvent:t})},s=a=>{i.onDialogEditCancel&&i.onDialogEditCancel({syntheticEvent:a})},N=a=>{const{validationMessage:t,visited:P,id:f,valid:V,editor:F,value:b,label:k,...S}=a,T=i.mobileMode?"large":"medium";switch(F){case"numeric":return e.createElement(e.Fragment,null,e.createElement(r.Label,{editorId:f,className:"k-form-label"},k,":"),e.createElement("div",{className:"k-form-field-wrap"},e.createElement(D.NumericTextBox,{...S,size:T,value:b,[C.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(r.Error,null,t)));case"date":return e.createElement(e.Fragment,null,e.createElement(r.Label,{editorId:f,className:"k-form-label"},k,":"),e.createElement("div",{className:"k-form-field-wrap"},e.createElement(_.DatePicker,{valid:!0,...S,value:b,adaptive:i.mobileMode,size:T,[C.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(r.Error,null,t)));case"boolean":return e.createElement("div",{className:"k-form-field-wrap"},e.createElement(r.Label,{editorId:f,className:"k-form-label"},k,": ",e.createElement(D.Checkbox,{...S,size:T,value:b,[C.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(r.Error,null,t)));default:return e.createElement(e.Fragment,null,e.createElement(r.Label,{editorId:f,className:"k-form-label"},k,":"),e.createElement("div",{className:"k-form-field-wrap"},e.createElement(D.TextBox,{...S,size:T,value:b||"",[C.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(r.Error,null,t)))}},p=d.toLanguageString(o.editDialogTitle,o.messages[o.editDialogTitle]),L=d.toLanguageString(o.editDialogSaveButtonTitle,o.messages[o.editDialogSaveButtonTitle]),y=d.toLanguageString(o.editDialogCancelButtonTitle,o.messages[o.editDialogCancelButtonTitle]),R={animation:!0,navigatable:!1,navigatableElements:[],expand:!0,title:i.adpativeTitle||p,suffixActions:e.createElement(u.Button,{svgIcon:E.xIcon,onClick:s,fillMode:"flat"}),animationStyles:l&&i.adaptiveColumnMenuRef<=l.small?{top:0,width:"100%",height:"100%"}:void 0,className:"k-adaptive-actionsheet",position:l&&i.adaptiveColumnMenuRef<=l.small?"fullscreen":void 0},{customEditDialog:v}=n,m=(h=n.columns)==null?void 0:h.filter(a=>a.editable);return e.createElement(e.Fragment,null,x.createPortal(e.createElement(e.Fragment,null,i.mobileMode?e.createElement(e.Fragment,null,v?e.createElement(v,{columns:n.columns,dataItem:n.dataItem,onSubmit:g,onCancel:s}):e.createElement(c.Form,{initialValues:n.dataItem,onSubmit:g,id:"kendo-grid-edit-dialog",render:a=>e.createElement(I.ActionSheet,{...R},e.createElement(I.ActionSheetContent,null,e.createElement(c.FormElement,null,m==null?void 0:m.map(t=>e.createElement(c.FieldWrapper,{key:t.field},e.createElement(c.Field,{name:t.field,id:t.field,editor:t.editor,component:N,label:t.title||t.field,validator:t==null?void 0:t.validator}))))),e.createElement(I.ActionSheetFooter,null,e.createElement(u.Button,{onClick:s,type:"reset",icon:"cancel",size:"large",svgIcon:E.cancelIcon},y),e.createElement(u.Button,{type:"submit",themeColor:"primary",size:"large",disabled:!a.allowSubmit||!a.valid,onClick:a.onSubmit,icon:"save",svgIcon:E.saveIcon},L)))})):v?e.createElement(v,{columns:n.columns,dataItem:n.dataItem,onSubmit:g,onCancel:s}):e.createElement(c.Form,{initialValues:n.dataItem,onSubmit:g,id:"kendo-grid-edit-dialog",render:a=>e.createElement(B.Dialog,{title:p,width:450,onClose:t=>s(t.syntheticEvent)},e.createElement(c.FormElement,null,m==null?void 0:m.map(t=>e.createElement(c.FieldWrapper,{key:t.field},e.createElement(c.Field,{name:t.field,id:t.field,editor:t.editor,component:N,label:t.title||t.field,validator:t==null?void 0:t.validator})))),e.createElement(B.DialogActionsBar,{layout:"start"},e.createElement(u.Button,{type:"submit",themeColor:"primary",disabled:!a.allowSubmit||!a.valid,onClick:a.onSubmit,icon:"save",svgIcon:E.saveIcon},L),e.createElement(u.Button,{onClick:s,type:"reset",icon:"cancel",svgIcon:E.cancelIcon},y)))})),document.body))};exports.GridEditDialog=A;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import e from "react";
|
|
10
|
-
import
|
|
11
|
-
import { ActionSheet as
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import O from "react-dom";
|
|
11
|
+
import { ActionSheet as V, ActionSheetContent as _, ActionSheetFooter as G } from "@progress/kendo-react-layout";
|
|
12
12
|
import { Button as r } from "@progress/kendo-react-buttons";
|
|
13
13
|
import { Label as v, Error as b } from "@progress/kendo-react-labels";
|
|
14
14
|
import { useLocalization as W } from "@progress/kendo-react-intl";
|
|
@@ -21,7 +21,7 @@ import { Dialog as Q, DialogActionsBar as U } from "@progress/kendo-react-dialog
|
|
|
21
21
|
import { Form as T, FormElement as F, FieldWrapper as M, Field as w } from "@progress/kendo-react-form";
|
|
22
22
|
import { GridContext as X } from "../utils/GridContext.mjs";
|
|
23
23
|
import { editDialogTitle as z, messages as S, editDialogSaveButtonTitle as B, editDialogCancelButtonTitle as L } from "../messages/index.mjs";
|
|
24
|
-
const
|
|
24
|
+
const ue = (l) => {
|
|
25
25
|
var y;
|
|
26
26
|
const C = W(), m = q(), i = e.useContext(X), c = (a, t) => {
|
|
27
27
|
i.onDialogEditSubmit && i.onDialogEditSubmit({ dataItem: a, syntheticEvent: t });
|
|
@@ -90,7 +90,7 @@ const fe = (l) => {
|
|
|
90
90
|
className: "k-adaptive-actionsheet",
|
|
91
91
|
position: m && i.adaptiveColumnMenuRef <= m.small ? "fullscreen" : void 0
|
|
92
92
|
}, { customEditDialog: d } = l, o = (y = l.columns) == null ? void 0 : y.filter((a) => a.editable);
|
|
93
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
93
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, O.createPortal(
|
|
94
94
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
95
95
|
/* @__PURE__ */ e.createElement(e.Fragment, null, i.mobileMode ? (
|
|
96
96
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
@@ -108,7 +108,7 @@ const fe = (l) => {
|
|
|
108
108
|
initialValues: l.dataItem,
|
|
109
109
|
onSubmit: c,
|
|
110
110
|
id: "kendo-grid-edit-dialog",
|
|
111
|
-
render: (a) => /* @__PURE__ */ e.createElement(
|
|
111
|
+
render: (a) => /* @__PURE__ */ e.createElement(V, { ...A }, /* @__PURE__ */ e.createElement(_, null, /* @__PURE__ */ e.createElement(F, null, o == null ? void 0 : o.map((t) => /* @__PURE__ */ e.createElement(M, { key: t.field }, /* @__PURE__ */ e.createElement(
|
|
112
112
|
w,
|
|
113
113
|
{
|
|
114
114
|
name: t.field,
|
|
@@ -203,5 +203,5 @@ const fe = (l) => {
|
|
|
203
203
|
));
|
|
204
204
|
};
|
|
205
205
|
export {
|
|
206
|
-
|
|
206
|
+
ue as GridEditDialog
|
|
207
207
|
};
|
|
@@ -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
|
-
import
|
|
8
|
+
import * as React from 'react';
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),c=require("@progress/kendo-svg-icons"),a=require("@progress/kendo-react-common");function u(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=u(n),s=()=>i.createElement(a.SvgIcon,{icon:c.reorderIcon});exports.ReorderRowIcon=s;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import o from "react";
|
|
9
|
+
import * as o from "react";
|
|
10
10
|
import { reorderIcon as r } from "@progress/kendo-svg-icons";
|
|
11
11
|
import { SvgIcon as e } from "@progress/kendo-react-common";
|
|
12
|
-
const
|
|
12
|
+
const m = () => /* @__PURE__ */ o.createElement(e, { icon: r });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
m as ReorderRowIcon
|
|
15
15
|
};
|