@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.
Files changed (60) hide show
  1. package/GridState.d.ts +1 -1
  2. package/GridState.js +1 -1
  3. package/GridState.mjs +41 -41
  4. package/cells/rowreordercell/GridRowReorderCell.d.ts +1 -1
  5. package/cells/rowreordercell/GridRowReorderCell.js +1 -1
  6. package/cells/rowreordercell/GridRowReorderCell.mjs +6 -6
  7. package/cells/rowreordercell/GridRowReorderCellServer.d.ts +1 -1
  8. package/cells/rowreordercell/GridRowReorderCellServer.js +1 -1
  9. package/cells/rowreordercell/GridRowReorderCellServer.mjs +3 -3
  10. package/columnMenu/adaptiveContent/GridActionSheetFooter.d.ts +1 -1
  11. package/columnMenu/adaptiveContent/GridActionSheetFooter.js +1 -1
  12. package/columnMenu/adaptiveContent/GridActionSheetFooter.mjs +3 -3
  13. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.d.ts +1 -1
  14. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +1 -1
  15. package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +1 -1
  16. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.d.ts +1 -1
  17. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +1 -1
  18. package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +1 -1
  19. package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.d.ts +1 -1
  20. package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +1 -1
  21. package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +7 -7
  22. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.d.ts +1 -1
  23. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +1 -1
  24. package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +3 -3
  25. package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.d.ts +1 -1
  26. package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.js +1 -1
  27. package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.mjs +6 -6
  28. package/components/GridDraggableRowsContainer.d.ts +1 -1
  29. package/components/GridDraggableRowsContainer.js +1 -1
  30. package/components/GridDraggableRowsContainer.mjs +20 -20
  31. package/components/GridEditDialog.d.ts +1 -1
  32. package/components/GridEditDialog.js +1 -1
  33. package/components/GridEditDialog.mjs +7 -7
  34. package/components/icons/reorder-row-svg.d.ts +1 -1
  35. package/components/icons/reorder-row-svg.js +1 -1
  36. package/components/icons/reorder-row-svg.mjs +3 -3
  37. package/dist/cdn/js/kendo-react-grid.js +1 -1
  38. package/footer/Footer.js +1 -1
  39. package/footer/Footer.mjs +5 -6
  40. package/package-metadata.js +1 -1
  41. package/package-metadata.mjs +1 -1
  42. package/package.json +17 -17
  43. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.d.ts +1 -1
  44. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.js +1 -1
  45. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.mjs +7 -7
  46. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.d.ts +1 -1
  47. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.js +1 -1
  48. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.mjs +4 -4
  49. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.d.ts +1 -1
  50. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.js +1 -1
  51. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.mjs +3 -3
  52. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.d.ts +1 -1
  53. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.js +1 -1
  54. package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.mjs +5 -5
  55. package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.d.ts +1 -1
  56. package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.js +1 -1
  57. package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.mjs +6 -6
  58. package/utils/_serverModule.d.ts +1 -1
  59. package/utils/_serverModule.js +1 -1
  60. 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 e=require("react"),X=require("../utils/GridContext.js"),m=require("@progress/kendo-react-common"),n=require("./utils.js"),J=require("react-dom"),b=require("@progress/kendo-svg-icons"),K=require("../utils/index.js"),w={zIndex:"19000",position:"absolute",display:"none",visibility:"hidden"},T={zIndex:"20000",display:"flex",position:"fixed",visibility:"hidden",pointerEvents:"none"},Q=C=>{const{rowReorderSettings:u,columns:k,unstyled:h}=C,{rowReorder:N,reorderRowDragTargetRef:a,reorderRowDropTargetRef:i,activeDragRowDataItemRef:d,tableBodyElementRef:O}=e.useContext(X.GridContext),[q,I]=e.useState(!1),[P,M]=e.useState(b.cancelIcon),y=e.useRef(null),f=e.useRef(null),c=e.useRef(null),v=e.useRef(null),p=e.useRef(!1),D=e.useRef(null),R=e.useRef(null),E=typeof u=="object"?u.enabled:u;e.useEffect(()=>{O.current=y.current},[]);const Y=r=>{var s;const t=r.originalEvent.target;t.closest(".k-drag-cell")&&(v.current=r.offsetY,p.current=!0,a.current=t.closest(".k-table-row"),R.current=(s=a.current)==null?void 0:s.parentElement)},B=r=>{!p.current||!E||!d.current||(a.current&&(a.current.style.userSelect="none"),I(!0))},F=r=>{if(!p.current&&!f.current)return;const{clientX:t,clientY:o}=r,s=v.current,g={x:t,y:o-s};f.current&&(f.current.style.left=`${g.x}px`,f.current.style.top=`${g.y}px`,f.current.style.visibility="visible"),$(r)},G=r=>{var o;if(!E||!d.current)return;I(!1);const t=Number((o=i.current)==null?void 0:o.getAttribute("absolute-row-index"));N(r,t,D.current),p.current=!1,R.current=null};m.useDraggable(y,{onPress:Y,onDragStart:B,onDrag:F,onDragEnd:G});const $=r=>{D.current=A(r),V()},V=()=>{var s;if(D.current===n.dropDirection.forbidden||!i.current){j();return}z();const r=n.getOffset(i.current);let t=r.top;const o=r.left+(((s=c.current)==null?void 0:s.offsetWidth)||0)/2;D.current===n.dropDirection.after&&(t+=i.current.offsetHeight),c.current&&(c.current.style.top=`${t}px`,c.current.style.left=`${o}px`,c.current.style.visibility="visible")},j=()=>{c.current&&(c.current.style.display="none")},z=()=>{c.current&&(c.current.style.display="")},H=()=>{if(d.current){if(u.dragClue){if(typeof u.dragClue=="string")return u.dragClue}else{const r=k.find(o=>!o.hidden&&o.columnType==="data");return d.current[r.field]}return u.dragClue(d.current)}},A=r=>{var S;if(i.current===a.current||!i.current||((S=i.current)==null?void 0:S.parentElement)!==R.current)return n.dropDirection.forbidden;const t=i.current.getBoundingClientRect(),s=t.height/2,g=r.clientY,x=t.top;let l=null;g<x+s?l=n.dropDirection.before:g>=x+t.height-s&&(l=n.dropDirection.after),(l===n.dropDirection.before&&i.current===a.current.nextElementSibling||l===n.dropDirection.after&&i.current===a.current.previousElementSibling)&&(l=n.dropDirection.forbidden);const W=l===n.dropDirection.forbidden?b.cancelIcon:b.insertMiddleIcon;return M(W),l},L=e.useMemo(H,[d.current]);return e.createElement(e.Fragment,null,q&&J.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{ref:c,style:w,className:m.classNames(h.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:f,style:T,className:m.classNames(h.rowReorder({dragClueMain:!0,dragClueOperation:!0}))},e.createElement(m.SvgIcon,{className:"k-drag-status",icon:P}),L)),document.body),K.cloneReactElement(C.children,{ref:y}))};exports.GridReorderableRowsContainer=Q;exports.dropIndicatorStyles=w;exports.hintClueStyles=T;
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 _, classNames as x, SvgIcon as j } from "@progress/kendo-react-common";
12
- import { dropDirection as o, getOffset as A } from "./utils.mjs";
13
- import L from "react-dom";
14
- import { cancelIcon as w, insertMiddleIcon as W } from "@progress/kendo-svg-icons";
15
- import { cloneReactElement as X } from "../utils/index.mjs";
16
- const q = {
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
- }, J = {
21
+ }, K = {
22
22
  zIndex: "20000",
23
23
  display: "flex",
24
24
  position: "fixed",
25
25
  visibility: "hidden",
26
26
  pointerEvents: "none"
27
- }, se = (b) => {
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
- }, []), _(D, {
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 = A(i.current);
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 : 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 && L.createPortal(
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: q,
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: J,
117
+ style: K,
118
118
  className: x(y.rowReorder({ dragClueMain: !0, dragClueOperation: !0 }))
119
119
  },
120
- /* @__PURE__ */ e.createElement(j, { className: "k-drag-status", icon: O }),
120
+ /* @__PURE__ */ e.createElement(A, { className: "k-drag-status", icon: O }),
121
121
  z
122
122
  )),
123
123
  document.body
124
- ), X(b.children, {
124
+ ), q(b.children, {
125
125
  ref: D
126
126
  }));
127
127
  };
128
128
  export {
129
- se as GridReorderableRowsContainer,
130
- q as dropIndicatorStyles,
131
- J as hintClueStyles
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 e=require("react"),q=require("react-dom"),I=require("@progress/kendo-react-layout"),s=require("@progress/kendo-react-buttons"),o=require("@progress/kendo-react-labels"),x=require("@progress/kendo-react-intl"),M=require("@progress/kendo-react-dateinputs"),_=require("@progress/kendo-react-common"),m=require("@progress/kendo-svg-icons"),L=require("@progress/kendo-react-inputs"),T=require("@progress/kendo-react-data-tools"),y=require("@progress/kendo-react-dialogs"),r=require("@progress/kendo-react-form"),A=require("../utils/GridContext.js"),i=require("../messages/index.js"),w=l=>{var R;const S=x.useLocalization(),E=_.useAdaptiveModeContext(),n=e.useContext(A.GridContext),u=(a,t)=>{n.onDialogEditSubmit&&n.onDialogEditSubmit({dataItem:a,syntheticEvent:t})},c=a=>{n.onDialogEditCancel&&n.onDialogEditCancel({syntheticEvent:a})},N=a=>{const{validationMessage:t,visited:z,id:v,valid:O,editor:p,value:b,label:f,...k}=a,C=n.mobileMode?"large":"medium";switch(p){case"numeric":return e.createElement(e.Fragment,null,e.createElement(o.Label,{editorId:v,className:"k-form-label"},f,":"),e.createElement("div",{className:"k-form-field-wrap"},e.createElement(L.NumericTextBox,{...k,size:C,value:b,[T.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(o.Error,null,t)));case"date":return e.createElement(e.Fragment,null,e.createElement(o.Label,{editorId:v,className:"k-form-label"},f,":"),e.createElement("div",{className:"k-form-field-wrap"},e.createElement(M.DatePicker,{valid:!0,...k,value:b,adaptive:n.mobileMode,size:C,[T.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(o.Error,null,t)));case"boolean":return e.createElement("div",{className:"k-form-field-wrap"},e.createElement(o.Label,{editorId:v,className:"k-form-label"},f,":  ",e.createElement(L.Checkbox,{...k,size:C,value:b,[T.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(o.Error,null,t)));default:return e.createElement(e.Fragment,null,e.createElement(o.Label,{editorId:v,className:"k-form-label"},f,":"),e.createElement("div",{className:"k-form-field-wrap"},e.createElement(L.TextBox,{...k,size:C,value:b||"",[T.TABLE_PREVENT_SELECTION_ELEMENT]:!0}),t&&e.createElement(o.Error,null,t)))}},D=S.toLanguageString(i.editDialogTitle,i.messages[i.editDialogTitle]),h=S.toLanguageString(i.editDialogSaveButtonTitle,i.messages[i.editDialogSaveButtonTitle]),B=S.toLanguageString(i.editDialogCancelButtonTitle,i.messages[i.editDialogCancelButtonTitle]),F={animation:!0,navigatable:!1,navigatableElements:[],expand:!0,title:n.adpativeTitle||D,suffixActions:e.createElement(s.Button,{svgIcon:m.xIcon,onClick:c,fillMode:"flat"}),animationStyles:E&&n.adaptiveColumnMenuRef<=E.small?{top:0,width:"100%",height:"100%"}:void 0,className:"k-adaptive-actionsheet",position:E&&n.adaptiveColumnMenuRef<=E.small?"fullscreen":void 0},{customEditDialog:g}=l,d=(R=l.columns)==null?void 0:R.filter(a=>a.editable);return e.createElement(e.Fragment,null,q.createPortal(e.createElement(e.Fragment,null,n.mobileMode?e.createElement(e.Fragment,null,g?e.createElement(g,{columns:l.columns,dataItem:l.dataItem,onSubmit:u,onCancel:c}):e.createElement(r.Form,{initialValues:l.dataItem,onSubmit:u,id:"kendo-grid-edit-dialog",render:a=>e.createElement(I.ActionSheet,{...F},e.createElement(I.ActionSheetContent,null,e.createElement(r.FormElement,null,d==null?void 0:d.map(t=>e.createElement(r.FieldWrapper,{key:t.field},e.createElement(r.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(s.Button,{onClick:c,type:"reset",icon:"cancel",size:"large",svgIcon:m.cancelIcon},B),e.createElement(s.Button,{type:"submit",themeColor:"primary",size:"large",disabled:!a.allowSubmit||!a.valid,onClick:a.onSubmit,icon:"save",svgIcon:m.saveIcon},h)))})):g?e.createElement(g,{columns:l.columns,dataItem:l.dataItem,onSubmit:u,onCancel:c}):e.createElement(r.Form,{initialValues:l.dataItem,onSubmit:u,id:"kendo-grid-edit-dialog",render:a=>e.createElement(y.Dialog,{title:D,width:450,onClose:t=>c(t.syntheticEvent)},e.createElement(r.FormElement,null,d==null?void 0:d.map(t=>e.createElement(r.FieldWrapper,{key:t.field},e.createElement(r.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(y.DialogActionsBar,{layout:"start"},e.createElement(s.Button,{type:"submit",themeColor:"primary",disabled:!a.allowSubmit||!a.valid,onClick:a.onSubmit,icon:"save",svgIcon:m.saveIcon},h),e.createElement(s.Button,{onClick:c,type:"reset",icon:"cancel",svgIcon:m.cancelIcon},B)))})),document.body))};exports.GridEditDialog=w;
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 _ from "react-dom";
11
- import { ActionSheet as O, ActionSheetContent as V, ActionSheetFooter as G } from "@progress/kendo-react-layout";
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 fe = (l) => {
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, _.createPortal(
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(O, { ...A }, /* @__PURE__ */ e.createElement(V, null, /* @__PURE__ */ e.createElement(F, null, o == null ? void 0 : o.map((t) => /* @__PURE__ */ e.createElement(M, { key: t.field }, /* @__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
- fe as GridEditDialog
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 { default as React } from 'react';
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 e=require("react"),o=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common"),n=()=>e.createElement(r.SvgIcon,{icon:o.reorderIcon});exports.ReorderRowIcon=n;
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 n = () => /* @__PURE__ */ o.createElement(e, { icon: r });
12
+ const m = () => /* @__PURE__ */ o.createElement(e, { icon: r });
13
13
  export {
14
- n as ReorderRowIcon
14
+ m as ReorderRowIcon
15
15
  };