@progress/kendo-react-data-tools 16.2.0-develop.2 → 16.2.0-develop.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-data-tools",
3
- "version": "16.2.0-develop.2",
3
+ "version": "16.2.0-develop.20",
4
4
  "description": "Includes React Pager & React Filter component, an intuitive interface to create complex filter descriptions. KendoReact Data Tools package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -28,14 +28,14 @@
28
28
  "@progress/kendo-data-query": "^1.7.2",
29
29
  "@progress/kendo-drawing": "^1.25.5",
30
30
  "@progress/kendo-licensing": "^1.7.2",
31
- "@progress/kendo-react-animation": "16.2.0-develop.2",
32
- "@progress/kendo-react-buttons": "16.2.0-develop.2",
33
- "@progress/kendo-react-common": "16.2.0-develop.2",
34
- "@progress/kendo-react-dateinputs": "16.2.0-develop.2",
35
- "@progress/kendo-react-dropdowns": "16.2.0-develop.2",
36
- "@progress/kendo-react-inputs": "16.2.0-develop.2",
37
- "@progress/kendo-react-intl": "16.2.0-develop.2",
38
- "@progress/kendo-react-popup": "16.2.0-develop.2",
31
+ "@progress/kendo-react-animation": "16.2.0-develop.20",
32
+ "@progress/kendo-react-buttons": "16.2.0-develop.20",
33
+ "@progress/kendo-react-common": "16.2.0-develop.20",
34
+ "@progress/kendo-react-dateinputs": "16.2.0-develop.20",
35
+ "@progress/kendo-react-dropdowns": "16.2.0-develop.20",
36
+ "@progress/kendo-react-inputs": "16.2.0-develop.20",
37
+ "@progress/kendo-react-intl": "16.2.0-develop.20",
38
+ "@progress/kendo-react-popup": "16.2.0-develop.20",
39
39
  "@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
40
40
  "react": "^18.0.0 || ^19.0.0",
41
41
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -65,7 +65,7 @@
65
65
  "package": {
66
66
  "productName": "KendoReact",
67
67
  "productCode": "KENDOUIREACT",
68
- "publishDate": 1789037020,
68
+ "publishDate": 1791301621,
69
69
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
70
70
  }
71
71
  },
@@ -75,10 +75,5 @@
75
75
  },
76
76
  "publishConfig": {
77
77
  "access": "public"
78
- },
79
- "peerDependenciesMeta": {
80
- "@progress/kendo-svg-icons": {
81
- "optional": true
82
- }
83
78
  }
84
79
  }
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),U=require("react-dom"),X=require("@progress/kendo-react-common"),n=require("./utils.js");function H(l){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const c in l)if(c!=="default"){const b=Object.getOwnPropertyDescriptor(l,c);Object.defineProperty(s,c,b.get?b:{enumerable:!0,get:()=>l[c]})}}return s.default=l,Object.freeze(s)}const t=H(G),V=H(U),k=5,B=300,J=l=>{var Y;const{onRelease:s,childRef:c}=l,{enabled:b,drag:P,mode:f,cell:h}=n.getSelectionOptions(l.selectable),i=t.useRef(null),p=t.useRef(null),D=t.useRef({clientX:0,clientY:0,pressedElement:null}),[w,C]=t.useState(null),N=t.useRef(void 0),I=t.useRef(!1),T=t.useRef(!1),x=t.useCallback(()=>{C(null),I.current=!1,D.current={clientX:0,clientY:0,pressedElement:null}},[]),q=t.useCallback(g=>{var u;const{event:e}=g;if(T.current=n.isInNonSelectable(e.originalEvent.target),T.current||!i.current)return;N.current=n.relativeContextElement(i.current.element);const r=(u=i.current.element)==null?void 0:u.ownerDocument;if(!r)return;e.originalEvent.stopImmediatePropagation();const o=r.elementFromPoint(e.clientX,e.clientY);D.current={clientY:e.clientY,clientX:e.clientX,pressedElement:o}},[]),j=t.useCallback(g=>{const{event:e}=g,{clientX:r,clientY:o}=D.current;if(T.current||!P||f==="single")return;const u=Math.abs(r-e.clientX),d=Math.abs(o-e.clientY);if((u>k||d>k)&&(I.current=!0),e.originalEvent.stopImmediatePropagation(),I.current){const E=n.getOffset(N.current);C({top:Math.min(o,e.clientY)-E.top,left:Math.min(r,e.clientX)-E.left,width:Math.abs(e.clientX-r),height:Math.abs(e.clientY-o)})}},[C,P,f]),F=t.useCallback(g=>{var E;const{event:e}=g,{clientX:r,clientY:o,pressedElement:u}=D.current;if(T.current||!i.current)return;const d=(E=i.current.element)==null?void 0:E.ownerDocument;if(d){e.originalEvent.stopImmediatePropagation();try{if(I.current){const a=p.current;if(!a)return;a.style.visibility="hidden";const y=u||d.elementFromPoint(r,o),R=d.elementFromPoint(e.clientX,e.clientY);if(a.style.visibility="",!y||!R)return;const m=n.closestTagName(y,"TD"),v=n.closestTagName(m,"TR"),_=n.closestTagName(R,"TD"),z=n.closestTagName(_,"TR"),S=n.getColumnIndex(m),M=n.getRowIndex(v),O=n.getColumnIndex(_),K=n.getRowIndex(z);S!==void 0&&M!==void 0&&O!==void 0&&K!==void 0&&s({nativeEvent:e.originalEvent,startRowIndex:Math.min(M,K),startColIndex:Math.min(S,O),endRowIndex:Math.max(M,K),endColIndex:Math.max(S,O),altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:f,cell:h,isDrag:!0})}else{const a=d.elementFromPoint(r,o);if(!a)return;const y=n.closestTagName(a,"TD"),R=n.closestTagName(a,"TR"),m=n.getColumnIndex(y),v=n.getRowIndex(R);y&&R&&v!==void 0&&m!==void 0&&s({nativeEvent:e.originalEvent,startRowIndex:v,startColIndex:m,endRowIndex:v,endColIndex:m,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:f,cell:h,isDrag:!1})}}finally{x()}}},[f,h,s,x]),L=t.useCallback(()=>{x()},[x]),A=X.useDocument(p);return b?t.createElement(t.Fragment,null,t.createElement(X.Draggable,{onPress:q,onDrag:j,onRelease:F,onDragEnd:L,ref:i,autoTouchAction:!1,pressHoldDelay:B,childRef:c},l.children),w&&V.createPortal(t.createElement("div",{ref:p,style:{...w,position:"fixed"},className:"k-marquee k-marquee-color"}),(Y=A())==null?void 0:Y.body)):t.cloneElement(t.Children.only(l.children),{ref:c})};exports.TableSelection=J;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),U=require("react-dom"),X=require("@progress/kendo-react-common"),n=require("./utils.js");function H(l){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const c in l)if(c!=="default"){const I=Object.getOwnPropertyDescriptor(l,c);Object.defineProperty(s,c,I.get?I:{enumerable:!0,get:()=>l[c]})}}return s.default=l,Object.freeze(s)}const t=H(G),V=H(U),k=5,B=300,J=l=>{var Y;const{onRelease:s,childRef:c}=l,{enabled:I,drag:T,mode:f,cell:p}=n.getSelectionOptions(l.selectable),i=t.useRef(null),C=t.useRef(null),x=t.useRef({clientX:0,clientY:0,pressedElement:null}),[w,S]=t.useState(null),N=t.useRef(void 0),g=t.useRef(!1),h=t.useRef(!1),E=t.useCallback(()=>{S(null),g.current=!1,x.current={clientX:0,clientY:0,pressedElement:null}},[]),q=t.useCallback(y=>{var u;const{event:e}=y;if(h.current=n.isInNonSelectable(e.originalEvent.target),h.current||!i.current)return;N.current=n.relativeContextElement(i.current.element);const r=(u=i.current.element)==null?void 0:u.ownerDocument;if(!r)return;e.originalEvent.stopImmediatePropagation();const o=r.elementFromPoint(e.clientX,e.clientY);x.current={clientY:e.clientY,clientX:e.clientX,pressedElement:o}},[]),j=t.useCallback(y=>{const{event:e}=y,{clientX:r,clientY:o}=x.current;if(h.current)return;const u=Math.abs(r-e.clientX),d=Math.abs(o-e.clientY);if((u>k||d>k)&&(g.current=!0),!(!T||f==="single")&&(e.originalEvent.stopImmediatePropagation(),g.current)){const R=n.getOffset(N.current);S({top:Math.min(o,e.clientY)-R.top,left:Math.min(r,e.clientX)-R.left,width:Math.abs(e.clientX-r),height:Math.abs(e.clientY-o)})}},[S,T,f]),F=t.useCallback(y=>{var R;const{event:e}=y,{clientX:r,clientY:o,pressedElement:u}=x.current;if(h.current||!i.current)return;const d=(R=i.current.element)==null?void 0:R.ownerDocument;if(d){if(g.current&&!T){E();return}e.originalEvent.stopImmediatePropagation();try{if(g.current){const a=C.current;if(!a)return;a.style.visibility="hidden";const v=u||d.elementFromPoint(r,o),b=d.elementFromPoint(e.clientX,e.clientY);if(a.style.visibility="",!v||!b)return;const m=n.closestTagName(v,"TD"),D=n.closestTagName(m,"TR"),_=n.closestTagName(b,"TD"),z=n.closestTagName(_,"TR"),M=n.getColumnIndex(m),O=n.getRowIndex(D),K=n.getColumnIndex(_),P=n.getRowIndex(z);M!==void 0&&O!==void 0&&K!==void 0&&P!==void 0&&s({nativeEvent:e.originalEvent,startRowIndex:Math.min(O,P),startColIndex:Math.min(M,K),endRowIndex:Math.max(O,P),endColIndex:Math.max(M,K),altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:f,cell:p,isDrag:!0})}else{const a=d.elementFromPoint(r,o);if(!a)return;const v=n.closestTagName(a,"TD"),b=n.closestTagName(a,"TR"),m=n.getColumnIndex(v),D=n.getRowIndex(b);v&&b&&D!==void 0&&m!==void 0&&s({nativeEvent:e.originalEvent,startRowIndex:D,startColIndex:m,endRowIndex:D,endColIndex:m,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:f,cell:p,isDrag:!1})}}finally{E()}}},[T,f,p,s,E]),L=t.useCallback(()=>{E()},[E]),A=X.useDocument(C);return I?t.createElement(t.Fragment,null,t.createElement(X.Draggable,{onPress:q,onDrag:j,onRelease:F,onDragEnd:L,ref:i,autoTouchAction:!1,pressHoldDelay:B,childRef:c},l.children),w&&V.createPortal(t.createElement("div",{ref:C,style:{...w,position:"fixed"},className:"k-marquee k-marquee-color"}),(Y=A())==null?void 0:Y.body)):t.cloneElement(t.Children.only(l.children),{ref:c})};exports.TableSelection=J;
@@ -9,114 +9,118 @@
9
9
  import * as t from "react";
10
10
  import * as V from "react-dom";
11
11
  import { useDocument as j, Draggable as z } from "@progress/kendo-react-common";
12
- import { getSelectionOptions as B, isInNonSelectable as J, relativeContextElement as Q, getOffset as W, closestTagName as i, getColumnIndex as P, getRowIndex as S } from "./utils.mjs";
13
- const _ = 5, Z = 300, te = (y) => {
12
+ import { getSelectionOptions as B, isInNonSelectable as J, relativeContextElement as Q, getOffset as W, closestTagName as i, getColumnIndex as S, getRowIndex as Y } from "./utils.mjs";
13
+ const _ = 5, Z = 300, te = (v) => {
14
14
  var H;
15
- const { onRelease: x, childRef: Y } = y, {
15
+ const { onRelease: I, childRef: w } = v, {
16
16
  enabled: N,
17
- drag: w,
17
+ drag: D,
18
18
  mode: m,
19
- cell: I
20
- } = B(y.selectable), o = t.useRef(null), b = t.useRef(null), R = t.useRef({ clientX: 0, clientY: 0, pressedElement: null }), [X, p] = t.useState(null), O = t.useRef(void 0), v = t.useRef(!1), D = t.useRef(!1), h = t.useCallback(() => {
21
- p(null), v.current = !1, R.current = { clientX: 0, clientY: 0, pressedElement: null };
22
- }, []), F = t.useCallback((d) => {
19
+ cell: b
20
+ } = B(v.selectable), o = t.useRef(null), p = t.useRef(null), h = t.useRef({ clientX: 0, clientY: 0, pressedElement: null }), [X, C] = t.useState(null), O = t.useRef(void 0), u = t.useRef(!1), x = t.useRef(!1), d = t.useCallback(() => {
21
+ C(null), u.current = !1, h.current = { clientX: 0, clientY: 0, pressedElement: null };
22
+ }, []), F = t.useCallback((f) => {
23
23
  var s;
24
- const { event: e } = d;
25
- if (D.current = J(e.originalEvent.target), D.current || !o.current)
24
+ const { event: e } = f;
25
+ if (x.current = J(e.originalEvent.target), x.current || !o.current)
26
26
  return;
27
27
  O.current = Q(o.current.element);
28
28
  const n = (s = o.current.element) == null ? void 0 : s.ownerDocument;
29
29
  if (!n)
30
30
  return;
31
31
  e.originalEvent.stopImmediatePropagation();
32
- const l = n.elementFromPoint(e.clientX, e.clientY);
33
- R.current = {
32
+ const r = n.elementFromPoint(e.clientX, e.clientY);
33
+ h.current = {
34
34
  clientY: e.clientY,
35
35
  clientX: e.clientX,
36
- pressedElement: l
36
+ pressedElement: r
37
37
  };
38
38
  }, []), L = t.useCallback(
39
- (d) => {
40
- const { event: e } = d, { clientX: n, clientY: l } = R.current;
41
- if (D.current || !w || m === "single")
39
+ (f) => {
40
+ const { event: e } = f, { clientX: n, clientY: r } = h.current;
41
+ if (x.current)
42
42
  return;
43
- const s = Math.abs(n - e.clientX), c = Math.abs(l - e.clientY);
44
- if ((s > _ || c > _) && (v.current = !0), e.originalEvent.stopImmediatePropagation(), v.current) {
45
- const u = W(O.current);
46
- p({
47
- top: Math.min(l, e.clientY) - u.top,
48
- left: Math.min(n, e.clientX) - u.left,
43
+ const s = Math.abs(n - e.clientX), c = Math.abs(r - e.clientY);
44
+ if ((s > _ || c > _) && (u.current = !0), !(!D || m === "single") && (e.originalEvent.stopImmediatePropagation(), u.current)) {
45
+ const E = W(O.current);
46
+ C({
47
+ top: Math.min(r, e.clientY) - E.top,
48
+ left: Math.min(n, e.clientX) - E.left,
49
49
  width: Math.abs(e.clientX - n),
50
- height: Math.abs(e.clientY - l)
50
+ height: Math.abs(e.clientY - r)
51
51
  });
52
52
  }
53
53
  },
54
- [p, w, m]
54
+ [C, D, m]
55
55
  ), A = t.useCallback(
56
- (d) => {
57
- var u;
58
- const { event: e } = d, { clientX: n, clientY: l, pressedElement: s } = R.current;
59
- if (D.current || !o.current)
56
+ (f) => {
57
+ var E;
58
+ const { event: e } = f, { clientX: n, clientY: r, pressedElement: s } = h.current;
59
+ if (x.current || !o.current)
60
60
  return;
61
- const c = (u = o.current.element) == null ? void 0 : u.ownerDocument;
61
+ const c = (E = o.current.element) == null ? void 0 : E.ownerDocument;
62
62
  if (c) {
63
+ if (u.current && !D) {
64
+ d();
65
+ return;
66
+ }
63
67
  e.originalEvent.stopImmediatePropagation();
64
68
  try {
65
- if (v.current) {
66
- const r = b.current;
67
- if (!r)
69
+ if (u.current) {
70
+ const l = p.current;
71
+ if (!l)
68
72
  return;
69
- r.style.visibility = "hidden";
70
- const f = s || c.elementFromPoint(n, l), E = c.elementFromPoint(
73
+ l.style.visibility = "hidden";
74
+ const g = s || c.elementFromPoint(n, r), y = c.elementFromPoint(
71
75
  e.clientX,
72
76
  e.clientY
73
77
  );
74
- if (r.style.visibility = "", !f || !E)
78
+ if (l.style.visibility = "", !g || !y)
75
79
  return;
76
- const a = i(f, "TD"), g = i(a, "TR"), k = i(E, "TD"), U = i(k, "TR"), C = P(a), T = S(g), K = P(k), M = S(U);
77
- C !== void 0 && T !== void 0 && K !== void 0 && M !== void 0 && x({
80
+ const a = i(g, "TD"), R = i(a, "TR"), k = i(y, "TD"), U = i(k, "TR"), T = S(a), K = Y(R), M = S(k), P = Y(U);
81
+ T !== void 0 && K !== void 0 && M !== void 0 && P !== void 0 && I({
78
82
  nativeEvent: e.originalEvent,
79
- startRowIndex: Math.min(T, M),
80
- startColIndex: Math.min(C, K),
81
- endRowIndex: Math.max(T, M),
82
- endColIndex: Math.max(C, K),
83
+ startRowIndex: Math.min(K, P),
84
+ startColIndex: Math.min(T, M),
85
+ endRowIndex: Math.max(K, P),
86
+ endColIndex: Math.max(T, M),
83
87
  altKey: e.altKey,
84
88
  shiftKey: e.shiftKey,
85
89
  ctrlKey: e.ctrlKey,
86
90
  metaKey: e.metaKey,
87
91
  mode: m,
88
- cell: I,
92
+ cell: b,
89
93
  isDrag: !0
90
94
  });
91
95
  } else {
92
- const r = c.elementFromPoint(n, l);
93
- if (!r)
96
+ const l = c.elementFromPoint(n, r);
97
+ if (!l)
94
98
  return;
95
- const f = i(r, "TD"), E = i(r, "TR"), a = P(f), g = S(E);
96
- f && E && g !== void 0 && a !== void 0 && x({
99
+ const g = i(l, "TD"), y = i(l, "TR"), a = S(g), R = Y(y);
100
+ g && y && R !== void 0 && a !== void 0 && I({
97
101
  nativeEvent: e.originalEvent,
98
- startRowIndex: g,
102
+ startRowIndex: R,
99
103
  startColIndex: a,
100
- endRowIndex: g,
104
+ endRowIndex: R,
101
105
  endColIndex: a,
102
106
  altKey: e.altKey,
103
107
  shiftKey: e.shiftKey,
104
108
  ctrlKey: e.ctrlKey,
105
109
  metaKey: e.metaKey,
106
110
  mode: m,
107
- cell: I,
111
+ cell: b,
108
112
  isDrag: !1
109
113
  });
110
114
  }
111
115
  } finally {
112
- h();
116
+ d();
113
117
  }
114
118
  }
115
119
  },
116
- [m, I, x, h]
120
+ [D, m, b, I, d]
117
121
  ), q = t.useCallback(() => {
118
- h();
119
- }, [h]), G = j(b);
122
+ d();
123
+ }, [d]), G = j(p);
120
124
  return N ? /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
121
125
  z,
122
126
  {
@@ -127,20 +131,20 @@ const _ = 5, Z = 300, te = (y) => {
127
131
  ref: o,
128
132
  autoTouchAction: !1,
129
133
  pressHoldDelay: Z,
130
- childRef: Y
134
+ childRef: w
131
135
  },
132
- y.children
136
+ v.children
133
137
  ), X && V.createPortal(
134
138
  /* @__PURE__ */ t.createElement(
135
139
  "div",
136
140
  {
137
- ref: b,
141
+ ref: p,
138
142
  style: { ...X, position: "fixed" },
139
143
  className: "k-marquee k-marquee-color"
140
144
  }
141
145
  ),
142
146
  (H = G()) == null ? void 0 : H.body
143
- )) : t.cloneElement(t.Children.only(y.children), { ref: Y });
147
+ )) : t.cloneElement(t.Children.only(v.children), { ref: w });
144
148
  };
145
149
  export {
146
150
  te as TableSelection