@progress/kendo-vue-data-tools 8.1.0-develop.4 → 8.1.0-develop.6

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.
@@ -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 { FOCUSABLE_ELEMENTS as E, TABBABLE_ELEMENTS as v } from "@progress/kendo-vue-common";
9
- import { KEYBOARD_NAV_EDIT_BUTTON_CLASS as B, KEYBOARD_NAV_CANCEL_BUTTON_CLASS as p, KEYBOARD_NAV_FILTER_COL_SUFFIX as w, KEYBOARD_NAV_DATA_ID as g, KEYBOARD_NAV_DATA_LEVEL as f, KEYBOARD_NAV_DATA_BODY as T, KEYBOARD_NAV_DATA_HEADER as h, KEYBOARD_NAV_DATA_SCOPE as $ } from "./constants.mjs";
10
- const F = (e, t, r = "cell") => `${t}_${e}_${r}`, R = (e) => {
8
+ import { FOCUSABLE_ELEMENTS as b, TABBABLE_ELEMENTS as k } from "@progress/kendo-vue-common";
9
+ import { KEYBOARD_NAV_EDIT_BUTTON_CLASS as v, KEYBOARD_NAV_CANCEL_BUTTON_CLASS as T, KEYBOARD_NAV_FILTER_COL_SUFFIX as p, KEYBOARD_NAV_DATA_ID as g, KEYBOARD_NAV_DATA_LEVEL as f, KEYBOARD_NAV_DATA_BOTTOM_PINNED as w, KEYBOARD_NAV_DATA_TOP_PINNED as $, KEYBOARD_NAV_DATA_BODY as h, KEYBOARD_NAV_DATA_HEADER as O, KEYBOARD_NAV_DATA_SCOPE as R } from "./constants.mjs";
10
+ const F = (e, t, r = "cell") => `${t}_${e}_${r}`, q = (e) => {
11
11
  if (e)
12
12
  return parseInt(e.getAttribute(f) || "", 10);
13
13
  }, m = (e) => {
@@ -15,11 +15,11 @@ const F = (e, t, r = "cell") => `${t}_${e}_${r}`, R = (e) => {
15
15
  return;
16
16
  const t = e.getAttribute(g);
17
17
  return t || void 0;
18
- }, A = (e) => e ? !!e.getAttribute(g) : !1, L = (e, t = { level: 0 }) => e.querySelector(`[${f}='${t.level}']`), _ = (e) => e.parentElement && e.parentElement.closest(`[${f}]`), x = (e, t) => e.querySelector(`[${g}='${t}']`), O = (e) => e.parentElement && e.parentElement.closest(`[${$}]`), q = (e) => {
18
+ }, A = (e) => e ? !!e.getAttribute(g) : !1, L = (e, t = { level: 0 }) => e.querySelector(`[${f}='${t.level}']`), D = (e) => e.parentElement && e.parentElement.closest(`[${f}]`), C = (e, t) => e.querySelector(`[${g}='${t}']`), K = (e) => e.parentElement && e.parentElement.closest(`[${R}]`), P = (e) => {
19
19
  var r;
20
20
  const t = ((r = e == null ? void 0 : e.parentElement) == null ? void 0 : r.closest(".k-grid-edit-row")) || null;
21
- return t == null ? void 0 : t.querySelector("." + p);
22
- }, K = (e) => document.querySelector(`[aria-rowindex="${e}"] .k-grid-remove-command`), i = (e) => document.querySelector(`[data-keyboardnavid="${e}"]`), V = (e) => {
21
+ return t == null ? void 0 : t.querySelector("." + T);
22
+ }, V = (e) => document.querySelector(`[aria-rowindex="${e}"] .k-grid-remove-command`), i = (e) => document.querySelector(`[data-keyboardnavid="${e}"]`), Y = (e) => {
23
23
  var n, l;
24
24
  const t = (n = e == null ? void 0 : e.parentElement) == null ? void 0 : n.closest(".k-table-row");
25
25
  let r;
@@ -44,26 +44,26 @@ async function y(e, t, r = 5e3) {
44
44
  }
45
45
  return !1;
46
46
  }
47
- const Y = async (e) => {
47
+ const U = async (e) => {
48
48
  var n;
49
49
  const t = ((n = e == null ? void 0 : e.parentElement) == null ? void 0 : n.closest(".k-grid-edit-row")) || null;
50
- return await y("." + B, t);
51
- }, P = (e) => (e == null ? void 0 : e.closest(".k-table-td")) || null, U = (e) => e.querySelector(`[${h}]`), j = (e) => e.querySelector(`[${T}]`), ae = (e) => e.querySelector(".k-grid-norecords"), W = (e, t) => {
50
+ return await y("." + v, t);
51
+ }, j = (e) => (e == null ? void 0 : e.closest(".k-table-td")) || null, M = (e) => e.querySelector(`[${O}]`), W = (e) => e.querySelector(`[${h}]`), H = (e) => e.querySelector(`[${$}]`), X = (e) => e.querySelector(`[${w}]`), Ae = (e) => e.querySelector(".k-grid-norecords"), z = (e, t) => {
52
52
  const { scope: r, navigation: n, kbContext: l } = e;
53
53
  if (!n || !r)
54
54
  return;
55
- const o = Z(n.navigationMatrix), s = x(r, o);
55
+ const o = ne(n.navigationMatrix), s = C(r, o);
56
56
  S({ elementForFocus: s, kbContext: l, event: t });
57
- }, D = (e, t = { focusable: !1 }) => {
58
- const r = t.focusable ? E : v;
57
+ }, B = (e, t = { focusable: !1 }) => {
58
+ const r = t.focusable ? b : k;
59
59
  return Array.from(e.querySelectorAll(r.join(",")));
60
- }, H = (e, t = { level: 0 }) => {
60
+ }, G = (e, t = { level: 0 }) => {
61
61
  if (!e)
62
62
  return [];
63
- const r = E.map((n) => n + `[${f}='${t.level}']`).join(",");
63
+ const r = b.map((n) => n + `[${f}='${t.level}']`).join(",");
64
64
  return Array.from(e.querySelectorAll(r));
65
- }, M = (e = { level: 0 }) => {
66
- const t = E.map((r) => r + `[${f}='${e.level}']`).join(",");
65
+ }, J = (e = { level: 0 }) => {
66
+ const t = b.map((r) => r + `[${f}='${e.level}']`).join(",");
67
67
  return (r) => r.matches(t);
68
68
  }, S = (e) => {
69
69
  const { elementForFocus: t, event: r, kbContext: n, prevElement: l } = e;
@@ -72,7 +72,7 @@ const Y = async (e) => {
72
72
  const o = t.querySelector(".k-checkbox-wrap .k-checkbox");
73
73
  o != null && o.focus ? o.focus() : t.focus(), A(t) && (t.setAttribute("tabIndex", "0"), n.activeId = m(t)), l && A(l) && l.setAttribute("tabIndex", "-1");
74
74
  }
75
- }, X = (e) => e ? e.idPrefix : "", z = (e, t, r, n, l) => {
75
+ }, Q = (e) => e ? e.idPrefix : "", Z = (e, t, r, n, l) => {
76
76
  if (!r)
77
77
  return [];
78
78
  let o = e + (l ? -1 : 1);
@@ -94,152 +94,156 @@ const Y = async (e) => {
94
94
  o = o + (l ? -1 : 1);
95
95
  }
96
96
  return [];
97
- }, b = (e, t) => {
97
+ }, E = (e, t) => {
98
98
  if (t) {
99
99
  for (let r = 0; r < e.length; r++)
100
100
  for (let n = 0; n < e[r].length; n++)
101
101
  if (e[r][n] === t)
102
102
  return [r, n];
103
103
  }
104
- }, I = (e, t, r) => {
104
+ }, _ = (e, t, r) => {
105
105
  let n;
106
106
  do
107
107
  if (e = e + 1, n = t[r - e], n != null && n.editable)
108
108
  break;
109
109
  while (r - e >= 0);
110
110
  return n;
111
- }, G = (e, t, r, n) => {
111
+ }, ee = (e, t, r, n) => {
112
112
  var N;
113
113
  let l;
114
114
  const [o, s] = e;
115
115
  let u;
116
116
  const c = 0, a = t.length;
117
- return u = I(c, t, s), u ? l = d(o, u.ariaColumnIndex, r, n, !0) : (u = I(c, t, a), l = d(o - 1, u.ariaColumnIndex, r, n, !0)), {
117
+ return u = _(c, t, s), u ? l = d(o, u.ariaColumnIndex, r, n, !0) : (u = _(c, t, a), l = d(o - 1, u.ariaColumnIndex, r, n, !0)), {
118
118
  prevCell: (l == null ? void 0 : l[0]) && i(l[0]),
119
119
  elementToFocus: (l == null ? void 0 : l[0]) && ((N = i(l[0])) == null ? void 0 : N.getAttribute("role"))
120
120
  };
121
- }, C = (e, t, r) => {
121
+ }, I = (e, t, r) => {
122
122
  let n;
123
123
  do
124
124
  if (e = e + 1, n = t[r + e], n != null && n.editable)
125
125
  break;
126
126
  while (r + e - 1 < t.length);
127
127
  return n;
128
- }, J = (e, t, r, n) => {
128
+ }, te = (e, t, r, n) => {
129
129
  var o;
130
130
  let l;
131
131
  if (e) {
132
132
  const [s, u] = e;
133
133
  let c, a = 0;
134
- c = C(a, t, u), c ? l = d(s, c.ariaColumnIndex, r, n, !0) : (a = -1, c = C(a, t, 0), l = d(s + 1, c.ariaColumnIndex, r, n, !0));
134
+ c = I(a, t, u), c ? l = d(s, c.ariaColumnIndex, r, n, !0) : (a = -1, c = I(a, t, 0), l = d(s + 1, c.ariaColumnIndex, r, n, !0));
135
135
  }
136
136
  return {
137
137
  nextCell: (l == null ? void 0 : l[0]) && i(l[0]),
138
138
  elementToFocus: (l == null ? void 0 : l[0]) && ((o = i(l[0])) == null ? void 0 : o.getAttribute("role"))
139
139
  };
140
- }, Q = (e) => {
140
+ }, re = (e) => {
141
141
  var t;
142
142
  return (t = e == null ? void 0 : e.navigationMatrix.length) != null ? t : 0;
143
- }, Z = (e) => e.flat().find((t) => t.endsWith("cell")), ie = (e) => e.flat().reverse().find((t) => t.endsWith("cell")), de = (e, t) => e[t][0], fe = (e, t) => Array.from(e[t]).reverse()[0], ee = (e) => e ? `${e}${w}` : "", Ae = (e, t, r) => {
143
+ }, ne = (e) => e.flat().find((t) => t.endsWith("cell")), Ee = (e) => e.flat().reverse().find((t) => t.endsWith("cell")), be = (e, t) => e[t][0], ge = (e, t) => Array.from(e[t]).reverse()[0], le = (e) => e ? `${e}${p}` : "", Ne = (e, t, r) => {
144
144
  let n;
145
145
  if (e != null && e.prevNavigationIndexes) {
146
146
  const [l, o] = e.prevNavigationIndexes, s = t[l];
147
- (s == null ? void 0 : s[o]) === r ? n = e.prevNavigationIndexes : n = b(t, r);
147
+ (s == null ? void 0 : s[o]) === r ? n = e.prevNavigationIndexes : n = E(t, r);
148
148
  } else
149
- n = b(t, r);
149
+ n = E(t, r);
150
150
  return n;
151
- }, te = (e) => {
151
+ }, oe = (e) => {
152
152
  var t;
153
- return ((t = _(e)) == null ? void 0 : t.getAttribute("data-keyboardnavid")) || e.getAttribute("data-keyboardnavid");
154
- }, re = (e) => e.closest(".k-grid-stack-cell"), k = (e) => D(e, { focusable: !0 }), ne = (e, t) => {
153
+ return ((t = D(e)) == null ? void 0 : t.getAttribute("data-keyboardnavid")) || e.getAttribute("data-keyboardnavid");
154
+ }, se = (e) => e.closest(".k-grid-stack-cell"), x = (e) => B(e, { focusable: !0 }), ce = (e, t) => {
155
155
  var o;
156
156
  const r = e.closest(".k-table-td");
157
157
  if (!r)
158
158
  return null;
159
159
  const n = Array.from(r.querySelectorAll(".k-grid-stack-cell")), l = n.indexOf(e);
160
160
  return l === -1 ? null : t === "next" ? l < n.length - 1 ? n[l + 1] : n[0] : l > 0 ? n[l - 1] : (o = n.at(-1)) != null ? o : null;
161
- }, le = (e) => e.closest(".k-table-td, td.k-table-td[tabindex]"), oe = (e, t = 0) => {
162
- const r = k(e);
161
+ }, ue = (e) => e.closest(".k-table-td, td.k-table-td[tabindex]"), ae = (e, t = 0) => {
162
+ const r = x(e);
163
163
  r.length > 0 ? (r[t] || r[0]).focus() : e.focus();
164
- }, be = {
164
+ }, _e = {
165
165
  generateNavigatableId: F,
166
166
  getNavigatableId: m,
167
- getNavigatableLevel: R,
167
+ getNavigatableLevel: q,
168
168
  getNavigatableElement: L,
169
- getClosestNavigatableElement: _,
170
- getActiveNavDataElement: x,
171
- getClosestScope: O,
172
- getHeaderElement: U,
173
- getBodyElement: j,
174
- getFocusableElements: D,
175
- getNavigatableElements: H,
176
- filterNavigatableElements: M,
169
+ getClosestNavigatableElement: D,
170
+ getActiveNavDataElement: C,
171
+ getClosestScope: K,
172
+ getHeaderElement: M,
173
+ getBodyElement: W,
174
+ getTopPinnedElement: H,
175
+ getBottomPinnedElement: X,
176
+ getFocusableElements: B,
177
+ getNavigatableElements: G,
178
+ filterNavigatableElements: J,
177
179
  focusElement: S,
178
- getIdPrefix: X,
180
+ getIdPrefix: Q,
179
181
  isNavigatable: A,
180
- findNextIdByRowIndex: z,
182
+ findNextIdByRowIndex: Z,
181
183
  findNextIdByCellIndex: d,
182
- findId: b,
183
- getNextNavigationIndex: Q,
184
- getFilterColumnId: ee,
185
- focusFirstDataElement: W,
186
- getClosestCancelButton: q,
187
- getClosestEditButton: Y,
188
- getRowAriaRowIndex: V,
189
- getRemoveButtonByAriaRowIndex: K,
184
+ findId: E,
185
+ getNextNavigationIndex: re,
186
+ getFilterColumnId: le,
187
+ focusFirstDataElement: z,
188
+ getClosestCancelButton: P,
189
+ getClosestEditButton: U,
190
+ getRowAriaRowIndex: Y,
191
+ getRemoveButtonByAriaRowIndex: V,
190
192
  getTableCellByKeyboardNavId: i,
191
- getParentCell: P,
193
+ getParentCell: j,
192
194
  waitForElementToBeVisible: y,
193
- getNextEditableCell: J,
194
- getPrevEditableCell: G,
195
- getClosestCellNavId: te,
196
- getStackedCellWrapper: re,
197
- getStackedCellFocusableElements: k,
198
- getNextStackedCell: ne,
199
- getStackedCellContainer: le,
200
- focusStackedCellElement: oe
195
+ getNextEditableCell: te,
196
+ getPrevEditableCell: ee,
197
+ getClosestCellNavId: oe,
198
+ getStackedCellWrapper: se,
199
+ getStackedCellFocusableElements: x,
200
+ getNextStackedCell: ce,
201
+ getStackedCellContainer: ue,
202
+ focusStackedCellElement: ae
201
203
  };
202
204
  export {
203
- M as filterNavigatableElements,
204
- b as findId,
205
+ J as filterNavigatableElements,
206
+ E as findId,
205
207
  d as findNextIdByCellIndex,
206
- z as findNextIdByRowIndex,
208
+ Z as findNextIdByRowIndex,
207
209
  S as focusElement,
208
- W as focusFirstDataElement,
209
- oe as focusStackedCellElement,
210
+ z as focusFirstDataElement,
211
+ ae as focusStackedCellElement,
210
212
  F as generateNavigatableId,
211
- x as getActiveNavDataElement,
212
- j as getBodyElement,
213
- q as getClosestCancelButton,
214
- te as getClosestCellNavId,
215
- Y as getClosestEditButton,
216
- _ as getClosestNavigatableElement,
217
- O as getClosestScope,
218
- Ae as getCurrentIdIndexes,
219
- ee as getFilterColumnId,
220
- Z as getFirstDataCell,
221
- de as getFirstRowDataCell,
222
- D as getFocusableElements,
223
- U as getHeaderElement,
224
- X as getIdPrefix,
225
- ie as getLastDataCell,
226
- fe as getLastRowDataCell,
213
+ C as getActiveNavDataElement,
214
+ W as getBodyElement,
215
+ X as getBottomPinnedElement,
216
+ P as getClosestCancelButton,
217
+ oe as getClosestCellNavId,
218
+ U as getClosestEditButton,
219
+ D as getClosestNavigatableElement,
220
+ K as getClosestScope,
221
+ Ne as getCurrentIdIndexes,
222
+ le as getFilterColumnId,
223
+ ne as getFirstDataCell,
224
+ be as getFirstRowDataCell,
225
+ B as getFocusableElements,
226
+ M as getHeaderElement,
227
+ Q as getIdPrefix,
228
+ Ee as getLastDataCell,
229
+ ge as getLastRowDataCell,
227
230
  L as getNavigatableElement,
228
- H as getNavigatableElements,
231
+ G as getNavigatableElements,
229
232
  m as getNavigatableId,
230
- R as getNavigatableLevel,
231
- J as getNextEditableCell,
232
- Q as getNextNavigationIndex,
233
- ne as getNextStackedCell,
234
- ae as getNoRecordsElement,
235
- P as getParentCell,
236
- G as getPrevEditableCell,
237
- K as getRemoveButtonByAriaRowIndex,
238
- V as getRowAriaRowIndex,
239
- le as getStackedCellContainer,
240
- k as getStackedCellFocusableElements,
241
- re as getStackedCellWrapper,
233
+ q as getNavigatableLevel,
234
+ te as getNextEditableCell,
235
+ re as getNextNavigationIndex,
236
+ ce as getNextStackedCell,
237
+ Ae as getNoRecordsElement,
238
+ j as getParentCell,
239
+ ee as getPrevEditableCell,
240
+ V as getRemoveButtonByAriaRowIndex,
241
+ Y as getRowAriaRowIndex,
242
+ ue as getStackedCellContainer,
243
+ x as getStackedCellFocusableElements,
244
+ se as getStackedCellWrapper,
242
245
  i as getTableCellByKeyboardNavId,
246
+ H as getTopPinnedElement,
243
247
  A as isNavigatable,
244
- be as tableKeyboardNavigationTools
248
+ _e as tableKeyboardNavigationTools
245
249
  };
@@ -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 e={name:"@progress/kendo-vue-data-tools",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1774865309,version:"8.1.0-develop.4",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-data-tools",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1774970394,version:"8.1.0-develop.6",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1774865309,
14
- version: "8.1.0-develop.4",
13
+ publishDate: 1774970394,
14
+ version: "8.1.0-develop.6",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-data-tools",
3
- "version": "8.1.0-develop.4",
3
+ "version": "8.1.0-develop.6",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -26,14 +26,14 @@
26
26
  "peerDependencies": {
27
27
  "@progress/kendo-data-query": "^1.7.0",
28
28
  "@progress/kendo-licensing": "^1.7.2",
29
- "@progress/kendo-vue-animation": "8.1.0-develop.4",
30
- "@progress/kendo-vue-buttons": "8.1.0-develop.4",
31
- "@progress/kendo-vue-common": "8.1.0-develop.4",
32
- "@progress/kendo-vue-dateinputs": "8.1.0-develop.4",
33
- "@progress/kendo-vue-dropdowns": "8.1.0-develop.4",
34
- "@progress/kendo-vue-inputs": "8.1.0-develop.4",
35
- "@progress/kendo-vue-intl": "8.1.0-develop.4",
36
- "@progress/kendo-vue-popup": "8.1.0-develop.4",
29
+ "@progress/kendo-vue-animation": "8.1.0-develop.6",
30
+ "@progress/kendo-vue-buttons": "8.1.0-develop.6",
31
+ "@progress/kendo-vue-common": "8.1.0-develop.6",
32
+ "@progress/kendo-vue-dateinputs": "8.1.0-develop.6",
33
+ "@progress/kendo-vue-dropdowns": "8.1.0-develop.6",
34
+ "@progress/kendo-vue-inputs": "8.1.0-develop.6",
35
+ "@progress/kendo-vue-intl": "8.1.0-develop.6",
36
+ "@progress/kendo-vue-popup": "8.1.0-develop.6",
37
37
  "@progress/kendo-svg-icons": "^4.4.0",
38
38
  "vue": "^3.0.2"
39
39
  },
@@ -54,7 +54,7 @@
54
54
  "package": {
55
55
  "productName": "Kendo UI for Vue",
56
56
  "productCode": "KENDOUIVUE",
57
- "publishDate": 1774865309,
57
+ "publishDate": 1774970394,
58
58
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
59
59
  }
60
60
  },
@@ -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 r=require("vue"),B=require("@progress/kendo-vue-common"),t=require("./utils.js"),G=r.defineComponent({name:"TableSelection",props:{selectable:Object},emits:{release:b=>!0},setup(b,{emit:T,slots:a}){const{enabled:S,drag:N,mode:E,cell:I}=t.getSelectionOptions(b.selectable),q=r.ref(null),X=r.ref(null),d=r.ref({clientX:0,clientY:0,scrollX:0,scrollY:0,pressedElement:null}),u=r.ref(null),Y=r.ref(void 0),f=r.ref(!1),m=r.ref(!1),F=(e,l)=>{if(m.value=t.isInNonSelectable(e.originalEvent.target),m.value||!l)return;Y.value=t.relativeContextElement(l);const n=l==null?void 0:l.ownerDocument;if(!n)return;e.originalEvent.stopImmediatePropagation();const o=n.elementFromPoint(e.clientX,e.clientY);d.value={clientY:e.clientY,clientX:e.clientX,scrollX:e.scrollX,scrollY:e.scrollY,pressedElement:o}},O=(e,l)=>{const{clientX:n,clientY:o}=d.value;if(!m.value&&!(!N||E==="single")&&((Math.abs(o-e.clientY)>5||Math.abs(n-e.clientX)>5)&&(f.value=!0),e.originalEvent.stopImmediatePropagation(),f.value)){const g=t.getOffset(Y.value);u.value={top:`${Math.min(o,e.clientY)-g.top}px`,left:`${Math.min(n,e.clientX)-g.left}px`,width:`${Math.abs(e.clientX-n)}px`,height:`${Math.abs(e.clientY-o)}px`}}},$=(e,l)=>{const{clientX:n,clientY:o,scrollX:g,scrollY:k,pressedElement:H}=d.value;if(m.value||!l)return;const y=l==null?void 0:l.ownerDocument;if(y){debugger;if(e.originalEvent.stopImmediatePropagation(),f.value){const s=e.scrollY-k,p=e.scrollX-g,x=Math.min(o,e.clientY),c=Math.min(n,e.clientX),i=Math.max(o,e.clientY),j=Math.max(n,e.clientX),h=X.value;if(!h)return;h.style.visibility="hidden";const V=y.elementFromPoint(c,x),R=s>0||p>0?H:V,D=y.elementFromPoint(j,i);if(h.style.visibility="",!R||!D)return;const K=t.closestTagName(R,"TD"),z=t.closestTagName(K,"TR"),M=t.closestTagName(D,"TD"),A=t.closestTagName(M,"TR"),P=t.getColumnIndex(K),w=t.getRowIndex(z),C=t.getColumnIndex(M),v=t.getRowIndex(A);P!==void 0&&w!==void 0&&C!==void 0&&v!==void 0&&T("release",{event:e.originalEvent,startRowIndex:w,startColIndex:P,endRowIndex:v,endColIndex:C,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:E,cell:I,isDrag:!0})}else{const s=y.elementFromPoint(n,o);if(!s)return;const p=t.closestTagName(s,"TD"),x=t.closestTagName(s,"TR"),c=t.getColumnIndex(p),i=t.getRowIndex(x);p&&x&&i!==void 0&&c!==void 0&&T("release",{event:e.originalEvent,startRowIndex:i,startColIndex:c,endRowIndex:i,endColIndex:c,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:E,cell:I,isDrag:!1})}u.value=null,f.value=!1,d.value={clientX:0,clientY:0,scrollX:0,scrollY:0,pressedElement:null}}};return()=>{var n,o;if(!S)return(n=a.default)==null?void 0:n.call(a);const e=(o=a.default)==null?void 0:o.call(a),l=u.value?r.h(r.Teleport,{to:"body"},r.h("div",{ref:X,style:{...u.value,position:"fixed"},class:"k-marquee k-marquee-color"})):null;return[r.h(B.Draggable,{ref:q,onPress:F,onDrag:O,onRelease:$},()=>e),l]}}});exports.TableSelection=G;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),B=require("@progress/kendo-vue-common"),t=require("./utils.js"),G=r.defineComponent({name:"TableSelection",props:{selectable:Object},emits:{release:b=>!0},setup(b,{emit:T,slots:a}){const{enabled:S,drag:N,mode:E,cell:I}=t.getSelectionOptions(b.selectable),q=r.ref(null),X=r.ref(null),d=r.ref({clientX:0,clientY:0,scrollX:0,scrollY:0,pressedElement:null}),u=r.ref(null),Y=r.ref(void 0),f=r.ref(!1),m=r.ref(!1),F=(e,l)=>{if(m.value=t.isInNonSelectable(e.originalEvent.target),m.value||!l)return;Y.value=t.relativeContextElement(l);const n=l==null?void 0:l.ownerDocument;if(!n)return;e.originalEvent.stopImmediatePropagation();const o=n.elementFromPoint(e.clientX,e.clientY);d.value={clientY:e.clientY,clientX:e.clientX,scrollX:e.scrollX,scrollY:e.scrollY,pressedElement:o}},O=(e,l)=>{const{clientX:n,clientY:o}=d.value;if(!m.value&&!(!N||E==="single")&&((Math.abs(o-e.clientY)>5||Math.abs(n-e.clientX)>5)&&(f.value=!0),e.originalEvent.stopImmediatePropagation(),f.value)){const g=t.getOffset(Y.value);u.value={top:`${Math.min(o,e.clientY)-g.top}px`,left:`${Math.min(n,e.clientX)-g.left}px`,width:`${Math.abs(e.clientX-n)}px`,height:`${Math.abs(e.clientY-o)}px`}}},$=(e,l)=>{const{clientX:n,clientY:o,scrollX:g,scrollY:k,pressedElement:H}=d.value;if(m.value||!l)return;const y=l==null?void 0:l.ownerDocument;if(y){if(e.originalEvent.stopImmediatePropagation(),f.value){const s=e.scrollY-k,p=e.scrollX-g,x=Math.min(o,e.clientY),c=Math.min(n,e.clientX),i=Math.max(o,e.clientY),j=Math.max(n,e.clientX),h=X.value;if(!h)return;h.style.visibility="hidden";const V=y.elementFromPoint(c,x),R=s>0||p>0?H:V,D=y.elementFromPoint(j,i);if(h.style.visibility="",!R||!D)return;const K=t.closestTagName(R,"TD"),z=t.closestTagName(K,"TR"),M=t.closestTagName(D,"TD"),A=t.closestTagName(M,"TR"),P=t.getColumnIndex(K),w=t.getRowIndex(z),C=t.getColumnIndex(M),v=t.getRowIndex(A);P!==void 0&&w!==void 0&&C!==void 0&&v!==void 0&&T("release",{event:e.originalEvent,startRowIndex:w,startColIndex:P,endRowIndex:v,endColIndex:C,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:E,cell:I,isDrag:!0})}else{const s=y.elementFromPoint(n,o);if(!s)return;const p=t.closestTagName(s,"TD"),x=t.closestTagName(s,"TR"),c=t.getColumnIndex(p),i=t.getRowIndex(x);p&&x&&i!==void 0&&c!==void 0&&T("release",{event:e.originalEvent,startRowIndex:i,startColIndex:c,endRowIndex:i,endColIndex:c,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,mode:E,cell:I,isDrag:!1})}u.value=null,f.value=!1,d.value={clientX:0,clientY:0,scrollX:0,scrollY:0,pressedElement:null}}};return()=>{var n,o;if(!S)return(n=a.default)==null?void 0:n.call(a);const e=(o=a.default)==null?void 0:o.call(a),l=u.value?r.h(r.Teleport,{to:"body"},r.h("div",{ref:X,style:{...u.value,position:"fixed"},class:"k-marquee k-marquee-color"})):null;return[r.h(B.Draggable,{ref:q,onPress:F,onDrag:O,onRelease:$},()=>e),l]}}});exports.TableSelection=G;
@@ -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 { defineComponent as Q, ref as o, h as b, Teleport as U } from "vue";
8
+ import { defineComponent as Q, ref as o, h as X, Teleport as U } from "vue";
9
9
  import { Draggable as V } from "@progress/kendo-vue-common";
10
- import { getSelectionOptions as W, closestTagName as a, getColumnIndex as X, getRowIndex as Y, getOffset as Z, isInNonSelectable as _, relativeContextElement as ee } from "./utils.mjs";
10
+ import { getSelectionOptions as W, closestTagName as a, getColumnIndex as Y, getRowIndex as b, getOffset as Z, isInNonSelectable as _, relativeContextElement as ee } from "./utils.mjs";
11
11
  const oe = /* @__PURE__ */ Q({
12
12
  name: "TableSelection",
13
13
  props: {
@@ -73,7 +73,6 @@ const oe = /* @__PURE__ */ Q({
73
73
  return;
74
74
  const p = t == null ? void 0 : t.ownerDocument;
75
75
  if (p) {
76
- debugger;
77
76
  if (e.originalEvent.stopImmediatePropagation(), f.value) {
78
77
  const i = e.scrollY - z, y = e.scrollX - g, E = Math.min(n, e.clientY), s = Math.min(l, e.clientX), c = Math.max(n, e.clientY), B = Math.max(l, e.clientX), x = R.value;
79
78
  if (!x)
@@ -82,7 +81,7 @@ const oe = /* @__PURE__ */ Q({
82
81
  const G = p.elementFromPoint(s, E), M = i > 0 || y > 0 ? A : G, P = p.elementFromPoint(B, c);
83
82
  if (x.style.visibility = "", !M || !P)
84
83
  return;
85
- const w = a(M, "TD"), J = a(w, "TR"), v = a(P, "TD"), L = a(v, "TR"), C = X(w), S = Y(J), F = X(v), $ = Y(L);
84
+ const w = a(M, "TD"), J = a(w, "TR"), v = a(P, "TD"), L = a(v, "TR"), C = Y(w), S = b(J), F = Y(v), $ = b(L);
86
85
  C !== void 0 && S !== void 0 && F !== void 0 && $ !== void 0 && I("release", {
87
86
  event: e.originalEvent,
88
87
  startRowIndex: S,
@@ -101,7 +100,7 @@ const oe = /* @__PURE__ */ Q({
101
100
  const i = p.elementFromPoint(l, n);
102
101
  if (!i)
103
102
  return;
104
- const y = a(i, "TD"), E = a(i, "TR"), s = X(y), c = Y(E);
103
+ const y = a(i, "TD"), E = a(i, "TR"), s = Y(y), c = b(E);
105
104
  y && E && c !== void 0 && s !== void 0 && I("release", {
106
105
  event: e.originalEvent,
107
106
  startRowIndex: c,
@@ -130,9 +129,9 @@ const oe = /* @__PURE__ */ Q({
130
129
  var l, n;
131
130
  if (!H)
132
131
  return (l = r.default) == null ? void 0 : l.call(r);
133
- const e = (n = r.default) == null ? void 0 : n.call(r), t = u.value ? b(U, {
132
+ const e = (n = r.default) == null ? void 0 : n.call(r), t = u.value ? X(U, {
134
133
  to: "body"
135
- }, b("div", {
134
+ }, X("div", {
136
135
  ref: R,
137
136
  style: {
138
137
  ...u.value,
@@ -140,7 +139,7 @@ const oe = /* @__PURE__ */ Q({
140
139
  },
141
140
  class: "k-marquee k-marquee-color"
142
141
  })) : null;
143
- return [b(V, {
142
+ return [X(V, {
144
143
  ref: k,
145
144
  onPress: q,
146
145
  onDrag: N,