@endge/ui-vue 0.25.2 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{edit.utils-3ZbhQCv_-CBOvR_lX.js → edit.utils-Dnnbd0xG-B4Hy-fKi.js} +1 -1
- package/dist/{main-DaAnRozo.js → main-jn_O1Op8.js} +18892 -19557
- package/dist/main.d.ts +20 -18
- package/dist/{domain/core → model/kernel}/endge-vue.d.ts +1 -1
- package/dist/model/render/register-vue-ui-renderer.d.ts +7 -0
- package/dist/model/render/sfc/SFCVueRenderInspection.d.ts +1 -1
- package/dist/model/render/sfc/SFCVueRuntimeBridge.d.ts +1 -1
- package/dist/model/render/sfc/native-vue-sfc-adapter.d.ts +1 -1
- package/dist/{domain/types/sfc-render.type.d.ts → model/render/sfc/sfc-vue-render.type.d.ts} +9 -9
- package/dist/reactive/use-subscribable-ref.d.ts +9 -0
- package/dist/revo-grid.entry-rg6K9ZHx.js +1615 -0
- package/dist/{revogr-attribution_7.entry-BT5lTuRW.js → revogr-attribution_7.entry-JV2go8j1.js} +102 -122
- package/dist/{revogr-clipboard_3.entry-C-dE9MUm.js → revogr-clipboard_3.entry-Bm3dUuH5.js} +9 -9
- package/dist/{revogr-data_4.entry-C9qNfzLe.js → revogr-data_4.entry-BIPbaA6y.js} +177 -231
- package/dist/revogr-filter-panel.entry-CxOW5xLi.js +329 -0
- package/dist/store/domain.d.ts +35 -0
- package/dist/test/model/render/register-vue-ui-renderer.test.d.ts +1 -0
- package/dist/test/reactive/use-subscribable-ref.test.d.ts +1 -0
- package/dist/throttle-Cpk1LoGk-DEv3RB-T.js +183 -0
- package/dist/ui/filter/EndgeFilterControlRenderer.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Adapter.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Badge.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Base.d.ts +2 -2
- package/dist/ui/render/sfc/SFCRender_Box.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Checkbox.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Component.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Context.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_DateTime.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Divider.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Dot.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Editable.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Evaluator.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Flex.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Grid.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Icon.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Input.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Interaction.d.ts +2 -2
- package/dist/ui/render/sfc/SFCRender_Node.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Number.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Select.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Table.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_TableMenu.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_TableStyle.d.ts +3 -3
- package/dist/ui/render/sfc/SFCRender_Text.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Textarea.d.ts +1 -1
- package/dist/ui/render/sfc/SFCRender_Tooltip.d.ts +1 -1
- package/dist/ui/render/sfc/SFC_Renderer.vue.d.ts +1 -1
- package/dist/ui/render/sfc/SFC_RuntimeRenderer.vue.d.ts +1 -1
- package/dist/vue.css +1 -1
- package/dist/vue.js +39 -36
- package/package.json +24 -25
- package/dist/revo-grid.entry-raK8rO6x.js +0 -1793
- package/dist/revogr-filter-panel.entry-Belk-lw4.js +0 -335
- package/dist/throttle-3rhqdcLy-E1CC2r0m.js +0 -183
- package/dist/ui/render/entities/EndgePage.vue.d.ts +0 -1187
package/dist/{revogr-attribution_7.entry-BT5lTuRW.js → revogr-attribution_7.entry-JV2go8j1.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { v as
|
|
3
|
-
import { i as z, a as
|
|
1
|
+
import { r as f, h as c, H as S, c as l, q as O, f as E, N as L, O as p, P as H, Q as T, U as W, W as m, X as A, Y as u, V as B, p as P, Z as V, _ as D, $ as N, a0 as $, o as b, t as K, a1 as U, l as X, a2 as Y, R as G, a3 as _ } from "./main-jn_O1Op8.js";
|
|
2
|
+
import { v as Z, g as C } from "./events-BvSmBueA-Doh7RyHn.js";
|
|
3
|
+
import { i as z, a as j, b as q, c as Q, d as J, e as ee, f as te, g as ie, h as se } from "./edit.utils-Dnnbd0xG-B4Hy-fKi.js";
|
|
4
4
|
import { H as oe } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
|
|
5
|
-
import { L as ne, a as re, g as le, t as ae } from "./throttle-
|
|
5
|
+
import { L as ne, a as re, g as le, t as ae } from "./throttle-Cpk1LoGk-DEv3RB-T.js";
|
|
6
6
|
/*!
|
|
7
7
|
* Built by Revolist OU ❤️
|
|
8
8
|
*/
|
|
9
9
|
const _e = class {
|
|
10
10
|
constructor(t) {
|
|
11
|
-
|
|
11
|
+
f(this, t);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return c(
|
|
14
|
+
return c(S, { key: "3d66475a019010c24b6c610ccc047e01c35178f9" }, c("a", { key: "777afddffef0309a697b9c14ee73c0001ac22b71", href: "https://rv-grid.com/guide/attribution", target: "_blank", rel: "noopener noreferrer", title: "Made with ❤️ by Revolist OU Team", class: "value" }, "RevoGrid"));
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, je = class {
|
|
17
17
|
constructor(t) {
|
|
18
|
-
|
|
18
|
+
f(this, t), this.nodes = [], this.update = 1;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Refreshes the extra component. Useful if you want to manually
|
|
@@ -50,7 +50,7 @@ function M(t, e) {
|
|
|
50
50
|
}
|
|
51
51
|
return i;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function k(t, e) {
|
|
54
54
|
if (t.defaultPrevented)
|
|
55
55
|
return null;
|
|
56
56
|
const i = C(t, "clientX"), s = C(t, "clientY");
|
|
@@ -60,16 +60,16 @@ function j(t, e) {
|
|
|
60
60
|
return w(o, e.lastCell) ? null : o;
|
|
61
61
|
}
|
|
62
62
|
function F({ x: t, y: e }, { el: i, rows: s, cols: o }) {
|
|
63
|
-
const { top: n, left: r, height:
|
|
63
|
+
const { top: n, left: r, height: a, width: h } = i.getBoundingClientRect();
|
|
64
64
|
let d = e - n, g = t - r;
|
|
65
|
-
d >=
|
|
66
|
-
const
|
|
67
|
-
return R.itemIndex < 0 && (R.itemIndex = 0),
|
|
65
|
+
d >= a && (d = a - 1), g >= h && (g = h - 1);
|
|
66
|
+
const v = _(s, d + (s.renderOffset || 0)), R = _(o, g + (o.renderOffset || 0));
|
|
67
|
+
return R.itemIndex < 0 && (R.itemIndex = 0), v.itemIndex < 0 && (v.itemIndex = 0), { x: R.itemIndex, y: v.itemIndex };
|
|
68
68
|
}
|
|
69
69
|
function ce(t, e, i, s = !1) {
|
|
70
70
|
const o = (n, r = 0) => {
|
|
71
|
-
const
|
|
72
|
-
return d[n] += r, { start:
|
|
71
|
+
const a = { x: t.x, y: t.y }, h = s ? { x: t.x1, y: t.y1 } : a, d = h[n] > e[n] ? h : a;
|
|
72
|
+
return d[n] += r, { start: a, end: h };
|
|
73
73
|
};
|
|
74
74
|
return i.x ? o("x", i.x) : i.y ? o("y", i.y) : null;
|
|
75
75
|
}
|
|
@@ -88,19 +88,19 @@ function x(t) {
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
function y({ x: t, y: e, x1: i, y1: s }, o, n) {
|
|
91
|
-
const r = o.renderOffset || 0,
|
|
91
|
+
const r = o.renderOffset || 0, a = n.renderOffset || 0, h = b(o, e).start - r, d = b(n, t).start - a, g = b(o, s).end - r, v = b(n, i).end - a;
|
|
92
92
|
return {
|
|
93
93
|
left: d,
|
|
94
|
-
right:
|
|
94
|
+
right: v,
|
|
95
95
|
top: h,
|
|
96
96
|
bottom: g,
|
|
97
|
-
width:
|
|
97
|
+
width: v - d,
|
|
98
98
|
height: g - h
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
const he = () => "revogr-focus.focused-cell{box-shadow:-1px 0 0
|
|
101
|
+
const he = () => "revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block !important}", de = class {
|
|
102
102
|
constructor(e) {
|
|
103
|
-
|
|
103
|
+
f(this, e), this.beforeFocusRender = l(this, "beforefocusrender", 7), this.beforeScrollIntoView = l(this, "beforescrollintoview", 7), this.afterFocus = l(this, "afterfocus", 7), this.focusTemplate = null, this.activeFocus = null;
|
|
104
104
|
}
|
|
105
105
|
componentDidRender() {
|
|
106
106
|
var e, i;
|
|
@@ -137,11 +137,11 @@ const he = () => "revogr-focus.focused-cell{box-shadow:-1px 0 0 var(--rg-theme-s
|
|
|
137
137
|
});
|
|
138
138
|
if (o.defaultPrevented)
|
|
139
139
|
return c("slot", null);
|
|
140
|
-
const { detail: n } = o, r = y(n.range, o.detail.rowDimension, o.detail.colDimension),
|
|
140
|
+
const { detail: n } = o, r = y(n.range, o.detail.rowDimension, o.detail.colDimension), a = x(r), h = (e = this.focusTemplate) === null || e === void 0 ? void 0 : e.call(this, c, n), d = {
|
|
141
141
|
class: { [$]: !0 },
|
|
142
|
-
style:
|
|
142
|
+
style: a
|
|
143
143
|
};
|
|
144
|
-
return c(
|
|
144
|
+
return c(S, Object.assign({}, d), c("slot", null), h);
|
|
145
145
|
}
|
|
146
146
|
get el() {
|
|
147
147
|
return E(this);
|
|
@@ -157,21 +157,17 @@ const ue = [
|
|
|
157
157
|
];
|
|
158
158
|
class ge {
|
|
159
159
|
constructor(e) {
|
|
160
|
-
this.sv = e
|
|
161
|
-
}
|
|
162
|
-
/** Cancel delayed directional input after focus or edit context changes externally. */
|
|
163
|
-
invalidatePendingChanges() {
|
|
164
|
-
this.applyingKeyChange || (this.keyChangeGeneration += 1);
|
|
160
|
+
this.sv = e;
|
|
165
161
|
}
|
|
166
162
|
/**
|
|
167
163
|
* Appends printable key input that arrives after edit mode was requested
|
|
168
164
|
* but before the editor input has mounted or received focus.
|
|
169
165
|
*/
|
|
170
166
|
appendPendingEditValue(e) {
|
|
171
|
-
if (
|
|
167
|
+
if (j(e) || e.key.length !== 1 || e.target instanceof HTMLElement && z(e.target))
|
|
172
168
|
return !1;
|
|
173
169
|
const i = this.sv.selectionStore.get("edit");
|
|
174
|
-
return typeof (i == null ? void 0 : i.val) != "string" ? !1 : (
|
|
170
|
+
return typeof (i == null ? void 0 : i.val) != "string" ? !1 : (this.sv.selectionStore.set("edit", Object.assign(Object.assign({}, i), { val: `${i.val}${e.key}` })), !0);
|
|
175
171
|
}
|
|
176
172
|
async keyDown(e, i, s, { range: o, focus: n }) {
|
|
177
173
|
if (s) {
|
|
@@ -187,12 +183,12 @@ class ge {
|
|
|
187
183
|
}
|
|
188
184
|
return;
|
|
189
185
|
}
|
|
190
|
-
if (o &&
|
|
186
|
+
if (o && q(e.code)) {
|
|
191
187
|
this.sv.clearCell();
|
|
192
188
|
return;
|
|
193
189
|
}
|
|
194
190
|
if (n) {
|
|
195
|
-
if (
|
|
191
|
+
if (Q(e.code)) {
|
|
196
192
|
this.keyChangeSelection(e, i);
|
|
197
193
|
return;
|
|
198
194
|
}
|
|
@@ -209,8 +205,8 @@ class ge {
|
|
|
209
205
|
i && this.selectAll(e);
|
|
210
206
|
return;
|
|
211
207
|
}
|
|
212
|
-
if (!
|
|
213
|
-
this.sv.change(e.key)
|
|
208
|
+
if (!j(e) && e.key.length === 1) {
|
|
209
|
+
this.sv.change(e.key);
|
|
214
210
|
return;
|
|
215
211
|
}
|
|
216
212
|
await this.keyChangeSelection(e, i);
|
|
@@ -225,24 +221,9 @@ class ge {
|
|
|
225
221
|
const s = this.changeDirectionKey(e, i);
|
|
226
222
|
if (!s)
|
|
227
223
|
return !1;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if (o !== this.keyChangeGeneration)
|
|
232
|
-
return !1;
|
|
233
|
-
const l = this.sv.selectionStore.get("range"), h = this.sv.selectionStore.get("focus");
|
|
234
|
-
this.applyingKeyChange = !0;
|
|
235
|
-
let d;
|
|
236
|
-
try {
|
|
237
|
-
d = this.keyPositionChange(s.changes, l, h, s.isMulti);
|
|
238
|
-
} finally {
|
|
239
|
-
this.applyingKeyChange = !1;
|
|
240
|
-
}
|
|
241
|
-
return await new Promise((g) => requestAnimationFrame(() => {
|
|
242
|
-
requestAnimationFrame(() => g());
|
|
243
|
-
})), d;
|
|
244
|
-
}, r = this.keyChangeQueue.then(n, n);
|
|
245
|
-
return this.keyChangeQueue = r.catch(() => !1), r;
|
|
224
|
+
await K(G + 30);
|
|
225
|
+
const o = this.sv.selectionStore.get("range"), n = this.sv.selectionStore.get("focus");
|
|
226
|
+
return this.keyPositionChange(s.changes, o, n, s.isMulti);
|
|
246
227
|
}
|
|
247
228
|
keyPositionChange(e, i, s, o = !1) {
|
|
248
229
|
if (!i || !s)
|
|
@@ -280,7 +261,7 @@ class ge {
|
|
|
280
261
|
}
|
|
281
262
|
}
|
|
282
263
|
}
|
|
283
|
-
class
|
|
264
|
+
class fe {
|
|
284
265
|
constructor(e) {
|
|
285
266
|
this.sv = e, this.autoFillType = null, this.autoFillInitial = null, this.autoFillStart = null, this.autoFillLast = null;
|
|
286
267
|
}
|
|
@@ -310,7 +291,7 @@ class ve {
|
|
|
310
291
|
* Process mouse move events
|
|
311
292
|
*/
|
|
312
293
|
selectionMouseMove(e) {
|
|
313
|
-
this.onMouseMoveAutofill || (this.onMouseMoveAutofill =
|
|
294
|
+
this.onMouseMoveAutofill || (this.onMouseMoveAutofill = X((i, s) => this.doAutofillMouseMove(i, s), 5)), this.isAutoFill && this.onMouseMoveAutofill(e, this.sv.getData());
|
|
314
295
|
}
|
|
315
296
|
getFocus(e, i) {
|
|
316
297
|
return !e && i && (e = { x: i.x, y: i.y }), e || null;
|
|
@@ -331,9 +312,9 @@ class ve {
|
|
|
331
312
|
if (this.autoFillLast = n, n.x === this.autoFillInitial.x && n.y === this.autoFillInitial.y)
|
|
332
313
|
this.sv.setTempRange(null);
|
|
333
314
|
else {
|
|
334
|
-
const
|
|
315
|
+
const a = m(this.autoFillInitial, this.autoFillLast);
|
|
335
316
|
this.sv.setTempRange({
|
|
336
|
-
area:
|
|
317
|
+
area: a,
|
|
337
318
|
type: this.autoFillType
|
|
338
319
|
});
|
|
339
320
|
}
|
|
@@ -416,7 +397,7 @@ class ve {
|
|
|
416
397
|
this.sv.setRange(s);
|
|
417
398
|
}
|
|
418
399
|
}
|
|
419
|
-
function
|
|
400
|
+
function ve(t, e) {
|
|
420
401
|
var i;
|
|
421
402
|
if (!pe(e))
|
|
422
403
|
return null;
|
|
@@ -435,9 +416,9 @@ function me(t) {
|
|
|
435
416
|
function ye(t) {
|
|
436
417
|
return !t || t.every((e) => e === "");
|
|
437
418
|
}
|
|
438
|
-
const
|
|
419
|
+
const Se = () => 'revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:14px;height:14px;margin-left:-13px;margin-top:-13px;z-index:10;cursor:crosshair}revogr-overlay-selection .autofill-handle::before{content:"";position:absolute;right:0;bottom:0;width:10px;height:10px;background:#0d63e8;border:1px solid white;box-sizing:border-box}revogr-overlay-selection.mobile .autofill-handle{position:absolute;width:30px;height:30px;margin-left:-29px;margin-top:-29px;z-index:10;cursor:crosshair}revogr-overlay-selection.mobile .autofill-handle::before{content:"";position:absolute;right:0;bottom:0;width:12px;height:12px;background:#0d63e8;border:1px solid white;box-sizing:border-box}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9;box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection .selection-border-range .range-handlers{height:100%;background-color:transparent;width:75%;max-width:50px;min-width:20px;left:50%;transform:translateX(-50%);position:absolute}revogr-overlay-selection .selection-border-range .range-handlers>span{pointer-events:auto;height:20px;width:20px;position:absolute;left:50%;transform:translateX(-50%)}revogr-overlay-selection .selection-border-range .range-handlers>span:before,revogr-overlay-selection .selection-border-range .range-handlers>span:after{position:absolute;border-radius:5px;width:15px;height:5px;left:50%;transform:translateX(-50%);background-color:rgba(0, 0, 0, 0.2)}revogr-overlay-selection .selection-border-range .range-handlers>span:first-child{top:-7px}revogr-overlay-selection .selection-border-range .range-handlers>span:first-child:before{content:"";top:0}revogr-overlay-selection .selection-border-range .range-handlers>span:last-child{bottom:-7px}revogr-overlay-selection .selection-border-range .range-handlers>span:last-child:after{content:"";bottom:0}revogr-overlay-selection revogr-edit{z-index:10}', be = class {
|
|
439
420
|
constructor(t) {
|
|
440
|
-
|
|
421
|
+
f(this, t), this.beforeCopyRegion = l(this, "beforecopyregion", 7), this.beforeRegionPaste = l(this, "beforepasteregion", 7), this.cellEditApply = l(this, "celleditapply", 7), this.beforeFocusCell = l(this, "beforecellfocusinit", 7), this.beforeNextViewportFocus = l(this, "beforenextvpfocus", 7), this.setEdit = l(this, "setedit", 7), this.beforeApplyRange = l(this, "beforeapplyrange", 7), this.beforeSetRange = l(this, "beforesetrange", 7), this.setRange = l(this, "setrange", 7), this.beforeEditRender = l(this, "beforeeditrender", 7), this.selectAll = l(this, "selectall", 7), this.cancelEdit = l(this, "canceledit", 7), this.setTempRange = l(this, "settemprange", 7), this.beforeSetTempRange = l(this, "beforesettemprange", 7), this.applyFocus = l(this, "applyfocus", 7), this.focusCell = l(this, "focuscell", 7), this.beforeRangeDataApply = l(this, "beforerangedataapply", 7), this.selectionChange = l(this, "selectionchangeinit", 7), this.beforeRangeCopyApply = l(this, "beforerangecopyapply", 7), this.rangeEditApply = l(this, "rangeeditapply", 7), this.rangeClipboardCopy = l(this, "clipboardrangecopy", 7), this.rangeClipboardPaste = l(this, "clipboardrangepaste", 7), this.beforeKeyDown = l(this, "beforekeydown", 7), this.beforeKeyUp = l(this, "beforekeyup", 7), this.beforeCellSave = l(this, "beforecellsave", 7), this.cellEditDone = l(this, "celledit", 7), this.applyChangesOnClose = !1, this.keyboardService = null, this.autoFillService = null, this.unsubscribeSelectionStore = [];
|
|
441
422
|
}
|
|
442
423
|
// #endregion
|
|
443
424
|
// #region Listeners
|
|
@@ -485,31 +466,26 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
485
466
|
* Selection & Keyboard
|
|
486
467
|
*/
|
|
487
468
|
selectionServiceSet(t) {
|
|
488
|
-
|
|
489
|
-
(e = this.keyboardService) === null || e === void 0 || e.invalidatePendingChanges(), this.unsubscribeSelectionStore.forEach((i) => i()), this.unsubscribeSelectionStore.length = 0, this.unsubscribeSelectionStore.push(t.onChange("nextFocus", (i) => i && this.doFocus(i, i))), this.keyboardService = new ge({
|
|
469
|
+
this.unsubscribeSelectionStore.forEach((e) => e()), this.unsubscribeSelectionStore.length = 0, this.unsubscribeSelectionStore.push(t.onChange("nextFocus", (e) => e && this.doFocus(e, e))), this.keyboardService = new ge({
|
|
490
470
|
selectionStore: t,
|
|
491
|
-
range: (
|
|
492
|
-
focus: (i, s
|
|
493
|
-
change: (
|
|
471
|
+
range: (e) => !!e && this.triggerRangeEvent(e),
|
|
472
|
+
focus: (e, i, s) => s ? (this.beforeNextViewportFocus.emit(e), !1) : this.doFocus(e, e, i),
|
|
473
|
+
change: (e) => {
|
|
474
|
+
this.readonly || this.doEdit(e);
|
|
475
|
+
},
|
|
494
476
|
cancel: async () => {
|
|
495
|
-
var
|
|
496
|
-
await ((
|
|
477
|
+
var e;
|
|
478
|
+
await ((e = this.revogrEdit) === null || e === void 0 ? void 0 : e.cancelChanges()), this.closeEdit();
|
|
497
479
|
},
|
|
498
480
|
clearCell: () => !this.readonly && this.clearCell(),
|
|
499
481
|
internalPaste: () => !this.readonly && this.beforeRegionPaste.emit(),
|
|
500
482
|
getData: () => this.getData(),
|
|
501
483
|
selectAll: () => this.selectAll.emit()
|
|
502
|
-
}), this.
|
|
503
|
-
var i;
|
|
504
|
-
return (i = this.keyboardService) === null || i === void 0 ? void 0 : i.invalidatePendingChanges();
|
|
505
|
-
}), t.onChange("edit", () => {
|
|
506
|
-
var i;
|
|
507
|
-
return (i = this.keyboardService) === null || i === void 0 ? void 0 : i.invalidatePendingChanges();
|
|
508
|
-
})), this.createAutoFillService();
|
|
484
|
+
}), this.createAutoFillService();
|
|
509
485
|
}
|
|
510
486
|
/** Autofill */
|
|
511
487
|
createAutoFillService() {
|
|
512
|
-
this.autoFillService = new
|
|
488
|
+
this.autoFillService = new fe({
|
|
513
489
|
dimensionRow: this.dimensionRow,
|
|
514
490
|
dimensionCol: this.dimensionCol,
|
|
515
491
|
columnService: this.columnService,
|
|
@@ -535,8 +511,8 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
535
511
|
this.columnServiceSet(), this.selectionServiceSet(this.selectionStore);
|
|
536
512
|
}
|
|
537
513
|
disconnectedCallback() {
|
|
538
|
-
var t
|
|
539
|
-
|
|
514
|
+
var t;
|
|
515
|
+
this.unsubscribeSelectionStore.forEach((e) => e()), this.unsubscribeSelectionStore.length = 0, (t = this.columnService) === null || t === void 0 || t.destroy();
|
|
540
516
|
}
|
|
541
517
|
async componentWillRender() {
|
|
542
518
|
var t, e;
|
|
@@ -544,7 +520,9 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
544
520
|
}
|
|
545
521
|
renderRange(t) {
|
|
546
522
|
const e = y(t, this.dimensionRow.state, this.dimensionCol.state), i = x(e);
|
|
547
|
-
return
|
|
523
|
+
return [
|
|
524
|
+
c("div", { class: H, style: i }, this.isMobileDevice && c("div", { class: "range-handlers" }, c("span", { class: p }), c("span", { class: p })))
|
|
525
|
+
];
|
|
548
526
|
}
|
|
549
527
|
renderEditor() {
|
|
550
528
|
const t = this.selectionStore.get("edit");
|
|
@@ -571,10 +549,10 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
571
549
|
e.push(i);
|
|
572
550
|
else {
|
|
573
551
|
const s = this.selectionStore.get("range"), o = this.selectionStore.get("focus");
|
|
574
|
-
(s || o) && this.useClipboard && e.push(c("revogr-clipboard", { readonly: this.readonly, onCopyregion: (n) => this.onCopy(n.detail), onClearregion: () => !this.readonly && this.clearCell(), ref: (n) => this.clipboard = n, onPasteregion: (n) => this.onPaste(n.detail) })), s && e.push(this.renderRange(s)), o && !this.readonly && this.range && e.push((t = this.autoFillService) === null || t === void 0 ? void 0 : t.renderAutofill(s, o, this.isMobileDevice)), this.canDrag && e.push(c("revogr-order-editor", { ref: (n) => this.orderEditor = n, dataStore: this.dataStore, dimensionRow: this.dimensionRow, dimensionCol: this.dimensionCol, parent: this.element, rowType: this.types.rowType, onRowdragstartinit: (n) => this.rowDragStart(n) }));
|
|
552
|
+
(s || o) && this.useClipboard && e.push(c("revogr-clipboard", { readonly: this.readonly, onCopyregion: (n) => this.onCopy(n.detail), onClearregion: () => !this.readonly && this.clearCell(), ref: (n) => this.clipboard = n, onPasteregion: (n) => this.onPaste(n.detail) })), s && e.push(...this.renderRange(s)), o && !this.readonly && this.range && e.push((t = this.autoFillService) === null || t === void 0 ? void 0 : t.renderAutofill(s, o, this.isMobileDevice)), this.canDrag && e.push(c("revogr-order-editor", { ref: (n) => this.orderEditor = n, dataStore: this.dataStore, dimensionRow: this.dimensionRow, dimensionCol: this.dimensionCol, parent: this.element, rowType: this.types.rowType, onRowdragstartinit: (n) => this.rowDragStart(n) }));
|
|
575
553
|
}
|
|
576
|
-
return c(
|
|
577
|
-
key: "
|
|
554
|
+
return c(S, {
|
|
555
|
+
key: "ff303c39d59e4ef217421fa11b9a80de07311b07",
|
|
578
556
|
class: { mobile: this.isMobileDevice },
|
|
579
557
|
onDblClick: (s) => this.onElementDblClick(s),
|
|
580
558
|
onMouseDown: (s) => this.onElementMouseDown(s),
|
|
@@ -582,7 +560,7 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
582
560
|
onCloseedit: (s) => this.closeEdit(s),
|
|
583
561
|
// it's done to be able to throw events from different levels, not just from editor
|
|
584
562
|
onCelledit: (s) => this.onEditCell(s)
|
|
585
|
-
}, e, c("slot", { key: "
|
|
563
|
+
}, e, c("slot", { key: "3cbe4c3ad7d447f779e9e20f73eec2e3107275e0", name: "data" }));
|
|
586
564
|
}
|
|
587
565
|
/**
|
|
588
566
|
* Executes the focus operation on the specified range of cells.
|
|
@@ -594,13 +572,13 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
594
572
|
const n = Object.assign(Object.assign({ range: Object.assign(Object.assign({}, t), { x1: e.x, y1: e.y }), next: i }, this.types), { rowDimension: Object.assign({}, this.dimensionRow.state), colDimension: Object.assign({}, this.dimensionCol.state), originalEvent: s }), r = this.applyFocus.emit(n);
|
|
595
573
|
if (r.defaultPrevented)
|
|
596
574
|
return !1;
|
|
597
|
-
const { range:
|
|
575
|
+
const { range: a } = r.detail;
|
|
598
576
|
return !this.focusCell.emit(Object.assign({ focus: {
|
|
599
|
-
x:
|
|
600
|
-
y:
|
|
577
|
+
x: a.x,
|
|
578
|
+
y: a.y
|
|
601
579
|
}, end: {
|
|
602
|
-
x:
|
|
603
|
-
y:
|
|
580
|
+
x: a.x1,
|
|
581
|
+
y: a.y1
|
|
604
582
|
} }, r.detail)).defaultPrevented;
|
|
605
583
|
}
|
|
606
584
|
triggerRangeEvent(t, e) {
|
|
@@ -618,7 +596,7 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
618
596
|
if (t.defaultPrevented)
|
|
619
597
|
return;
|
|
620
598
|
const e = this.getData();
|
|
621
|
-
|
|
599
|
+
k(t, e) && this.doEdit();
|
|
622
600
|
}
|
|
623
601
|
/**
|
|
624
602
|
* Handle mouse down event on Host element
|
|
@@ -628,20 +606,21 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
628
606
|
const s = t.target;
|
|
629
607
|
if (z(s) || t.defaultPrevented)
|
|
630
608
|
return;
|
|
631
|
-
const o = this.getData(), n =
|
|
632
|
-
n && (this.focus(n, this.range && t.shiftKey, t), this.range && (s && ((i = this.autoFillService) === null || i === void 0 || i.selectionStart(s, this.getData())), e ?
|
|
609
|
+
const o = this.getData(), n = k(t, o);
|
|
610
|
+
n && (this.focus(n, this.range && t.shiftKey, t), this.range && (s && ((i = this.autoFillService) === null || i === void 0 || i.selectionStart(s, this.getData())), e ? Z(t.touches[0], p) && t.preventDefault() : t.preventDefault()));
|
|
633
611
|
}
|
|
634
612
|
/**
|
|
635
613
|
* Start cell editing
|
|
636
614
|
*/
|
|
637
615
|
doEdit(t = "") {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
616
|
+
var e;
|
|
617
|
+
if (this.canEdit()) {
|
|
618
|
+
const i = this.selectionStore.get("focus");
|
|
619
|
+
if (!i)
|
|
620
|
+
return;
|
|
621
|
+
const s = this.columnService.getSaveData(i.y, i.x);
|
|
622
|
+
(e = this.setEdit) === null || e === void 0 || e.emit(Object.assign(Object.assign({}, s), { val: t }));
|
|
623
|
+
}
|
|
645
624
|
}
|
|
646
625
|
/**
|
|
647
626
|
* Close editor event triggered
|
|
@@ -670,12 +649,12 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
670
649
|
return !1;
|
|
671
650
|
let o;
|
|
672
651
|
if (i) {
|
|
673
|
-
const { data: n, mapping: r } = this.columnService.copyRangeArray(i, this.dataStore),
|
|
652
|
+
const { data: n, mapping: r } = this.columnService.copyRangeArray(i, this.dataStore), a = this.rangeClipboardCopy.emit(Object.assign({
|
|
674
653
|
range: i,
|
|
675
654
|
data: n,
|
|
676
655
|
mapping: r
|
|
677
656
|
}, this.types));
|
|
678
|
-
|
|
657
|
+
a.defaultPrevented || (o = a.detail.data);
|
|
679
658
|
}
|
|
680
659
|
return (e = this.clipboard) === null || e === void 0 || e.doCopy(t, o), !0;
|
|
681
660
|
}
|
|
@@ -684,14 +663,14 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
684
663
|
const i = this.selectionStore.get("focus"), s = this.selectionStore.get("edit") !== null;
|
|
685
664
|
if (!i || s)
|
|
686
665
|
return;
|
|
687
|
-
const o =
|
|
688
|
-
let { changed: r, range:
|
|
666
|
+
const o = ve(t, this.useClipboard), n = o ? this.getClipboardPasteTargetRange() : null;
|
|
667
|
+
let { changed: r, range: a } = this.columnService.getTransformedDataToApply({
|
|
689
668
|
start: i,
|
|
690
669
|
data: o || t,
|
|
691
670
|
targetRange: n
|
|
692
671
|
});
|
|
693
|
-
const { defaultPrevented: h } = this.rangeClipboardPaste.emit(Object.assign({ data: r, models: M(r, this.dataStore), range:
|
|
694
|
-
h || (e = this.autoFillService) === null || e === void 0 || e.onRangeApply(r,
|
|
672
|
+
const { defaultPrevented: h } = this.rangeClipboardPaste.emit(Object.assign({ data: r, models: M(r, this.dataStore), range: a }, this.types));
|
|
673
|
+
h || (e = this.autoFillService) === null || e === void 0 || e.onRangeApply(r, a, a);
|
|
695
674
|
}
|
|
696
675
|
getClipboardPasteTargetRange() {
|
|
697
676
|
const t = this.selectionStore.get("range");
|
|
@@ -705,11 +684,12 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
705
684
|
}
|
|
706
685
|
clearCell() {
|
|
707
686
|
var t;
|
|
708
|
-
const e = this.selectionStore.get("range")
|
|
709
|
-
if (e &&
|
|
710
|
-
const
|
|
711
|
-
(t = this.autoFillService) === null || t === void 0 || t.onRangeApply(
|
|
687
|
+
const e = this.selectionStore.get("range");
|
|
688
|
+
if (e && !A(e)) {
|
|
689
|
+
const i = this.columnService.getRangeStaticData(e, "");
|
|
690
|
+
(t = this.autoFillService) === null || t === void 0 || t.onRangeApply(i, e, e);
|
|
712
691
|
} else if (this.canEdit()) {
|
|
692
|
+
const i = this.selectionStore.get("focus");
|
|
713
693
|
if (!i)
|
|
714
694
|
return;
|
|
715
695
|
const s = this.columnService.getSaveData(i.y, i.x);
|
|
@@ -795,17 +775,17 @@ const be = () => 'revogr-overlay-selection{display:block;position:relative;width
|
|
|
795
775
|
};
|
|
796
776
|
}
|
|
797
777
|
};
|
|
798
|
-
|
|
778
|
+
be.style = Se();
|
|
799
779
|
const Ce = (t) => (e, { rowIndex: i }) => t + i, Ie = class {
|
|
800
780
|
constructor(t) {
|
|
801
|
-
|
|
781
|
+
f(this, t), this.scrollViewport = l(this, "scrollview", 3), this.elementToScroll = l(this, "ref", 3), this.jobsBeforeRender = [];
|
|
802
782
|
}
|
|
803
783
|
render() {
|
|
804
784
|
const t = [], e = new B("colPinStart");
|
|
805
785
|
let i = 1;
|
|
806
786
|
for (let r of this.dataPorts) {
|
|
807
|
-
const
|
|
808
|
-
d.updateData([g]), t.push(c("revogr-data", Object.assign({}, r, { colType: "rowHeaders", jobsBeforeRender: this.jobsBeforeRender, rowClass: this.rowClass, dataStore: h.store, colData: d.store, viewportCol: e.store, readonly: !0, range: !1 }))), i +=
|
|
787
|
+
const a = r.dataStore.get("items").length, h = new P(r.type, Object.assign({}, r.dataStore.state)), d = new P("colPinStart"), g = Object.assign({ cellTemplate: Ce(i) }, this.rowHeaderColumn);
|
|
788
|
+
d.updateData([g]), t.push(c("revogr-data", Object.assign({}, r, { colType: "rowHeaders", jobsBeforeRender: this.jobsBeforeRender, rowClass: this.rowClass, dataStore: h.store, colData: d.store, viewportCol: e.store, readonly: !0, range: !1 }))), i += a;
|
|
809
789
|
}
|
|
810
790
|
const s = V(i, this.rowHeaderColumn);
|
|
811
791
|
e.setViewport({
|
|
@@ -837,7 +817,7 @@ const Ce = (t) => (e, { rowIndex: i }) => t + i, Ie = class {
|
|
|
837
817
|
// parent,
|
|
838
818
|
slot: oe
|
|
839
819
|
});
|
|
840
|
-
return c(
|
|
820
|
+
return c(S, { class: { [D]: !0 }, key: D }, c("revogr-viewport-scroll", Object.assign({ key: "c401e82e02e4bdb7afb25f2f49c6776f2e115c81" }, o, { "row-header": !0 }), c("revogr-header", Object.assign({ key: "3c73d27bd96e23a34fc0cf47eda4d2e65751df98" }, n)), t));
|
|
841
821
|
}
|
|
842
822
|
};
|
|
843
823
|
class we {
|
|
@@ -868,7 +848,7 @@ class we {
|
|
|
868
848
|
}
|
|
869
849
|
const xe = () => "revogr-scroll-virtual[autohide]{position:absolute;z-index:100 !important}revogr-scroll-virtual[autohide].vertical{top:0;right:0}revogr-scroll-virtual[autohide].vertical[visible]{min-width:20px !important}revogr-scroll-virtual[autohide].horizontal{bottom:0;left:0}revogr-scroll-virtual[autohide].horizontal[visible]{min-height:20px !important}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}", Re = class {
|
|
870
850
|
constructor(t) {
|
|
871
|
-
|
|
851
|
+
f(this, t), this.scrollVirtual = l(this, "scrollvirtual", 7), this.dimension = "rgRow", this.scrollSize = 0;
|
|
872
852
|
}
|
|
873
853
|
async setScroll(t) {
|
|
874
854
|
var e;
|
|
@@ -902,7 +882,7 @@ const xe = () => "revogr-scroll-virtual[autohide]{position:absolute;z-index:100
|
|
|
902
882
|
this.autohideScrollPlugin.clear();
|
|
903
883
|
}
|
|
904
884
|
componentWillLoad() {
|
|
905
|
-
this.scrollSize =
|
|
885
|
+
this.scrollSize = N(document);
|
|
906
886
|
}
|
|
907
887
|
componentDidRender() {
|
|
908
888
|
let t = 0;
|
|
@@ -926,7 +906,7 @@ const xe = () => "revogr-scroll-virtual[autohide]{position:absolute;z-index:100
|
|
|
926
906
|
}
|
|
927
907
|
render() {
|
|
928
908
|
const t = le(this.realSize, this.dimension === "rgRow" ? this.element.clientHeight : this.element.clientWidth, this.clientSize);
|
|
929
|
-
return c(
|
|
909
|
+
return c(S, { key: "7213817ef941eee4050b714266598ec0c2961ee9", onScroll: (e) => this.onScroll(e) }, c("div", { key: "501da49c63253ab943172494b9dbf5399be56cee", style: {
|
|
930
910
|
[this.dimension === "rgRow" ? "height" : "width"]: `${t}px`
|
|
931
911
|
} }));
|
|
932
912
|
}
|
|
@@ -935,9 +915,9 @@ const xe = () => "revogr-scroll-virtual[autohide]{position:absolute;z-index:100
|
|
|
935
915
|
}
|
|
936
916
|
};
|
|
937
917
|
Re.style = xe();
|
|
938
|
-
const De = () => ".temp-bg-range{display:block !important;position:absolute;pointer-events:none;z-index:9;border:1px solid
|
|
918
|
+
const De = () => ".temp-bg-range{display:block !important;position:absolute;pointer-events:none;z-index:9;border:1px solid rgb(255, 94, 0);box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}", Oe = class {
|
|
939
919
|
constructor(t) {
|
|
940
|
-
|
|
920
|
+
f(this, t), this.onChange = ae((e) => this.doChange(e), 300);
|
|
941
921
|
}
|
|
942
922
|
doChange(t) {
|
|
943
923
|
t == null || t.scrollIntoView({
|
|
@@ -957,15 +937,15 @@ const De = () => ".temp-bg-range{display:block !important;position:absolute;poin
|
|
|
957
937
|
if (!o)
|
|
958
938
|
return;
|
|
959
939
|
t.y < o.y && (i = "top"), t.x < o.x && (s = "left");
|
|
960
|
-
const n = `${s} ${i}`, r = y(t, this.dimensionRow.state, this.dimensionCol.state),
|
|
940
|
+
const n = `${s} ${i}`, r = y(t, this.dimensionRow.state, this.dimensionCol.state), a = x(r), h = {
|
|
961
941
|
class: {
|
|
962
|
-
[
|
|
942
|
+
[Y]: !0,
|
|
963
943
|
[e || ""]: !0
|
|
964
944
|
},
|
|
965
|
-
style:
|
|
945
|
+
style: a,
|
|
966
946
|
hidden: !1
|
|
967
947
|
};
|
|
968
|
-
return c(
|
|
948
|
+
return c(S, Object.assign({}, h), c("div", { class: n, ref: (d) => this.el = d }));
|
|
969
949
|
}
|
|
970
950
|
getRange() {
|
|
971
951
|
const t = this.selectionStore.get("range");
|
|
@@ -978,9 +958,9 @@ const De = () => ".temp-bg-range{display:block !important;position:absolute;poin
|
|
|
978
958
|
Oe.style = De();
|
|
979
959
|
export {
|
|
980
960
|
_e as revogr_attribution,
|
|
981
|
-
|
|
961
|
+
je as revogr_extra,
|
|
982
962
|
de as revogr_focus,
|
|
983
|
-
|
|
963
|
+
be as revogr_overlay_selection,
|
|
984
964
|
Ie as revogr_row_headers,
|
|
985
965
|
Re as revogr_scroll_virtual,
|
|
986
966
|
Oe as revogr_temp_range
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as f, r as
|
|
2
|
-
import { d as E, c as D, j as S } from "./edit.utils-
|
|
1
|
+
import { t as f, r as h, c as n, h as v, a4 as g, H as m, f as y, l as w, a5 as b, q as C, a3 as c } from "./main-jn_O1Op8.js";
|
|
2
|
+
import { d as E, c as D, j as S } from "./edit.utils-Dnnbd0xG-B4Hy-fKi.js";
|
|
3
3
|
/*!
|
|
4
4
|
* Built by Revolist OU ❤️
|
|
5
5
|
*/
|
|
@@ -60,7 +60,7 @@ class O {
|
|
|
60
60
|
*/
|
|
61
61
|
const A = class {
|
|
62
62
|
constructor(t) {
|
|
63
|
-
|
|
63
|
+
h(this, t), this.beforePaste = n(this, "beforepaste", 7), this.beforePasteApply = n(this, "beforepasteapply", 7), this.pasteRegion = n(this, "pasteregion", 7), this.afterPasteApply = n(this, "afterpasteapply", 7), this.beforeCut = n(this, "beforecut", 7), this.clearRegion = n(this, "clearregion", 7), this.beforeCopy = n(this, "beforecopy", 7), this.beforeCopyApply = n(this, "beforecopyapply", 7), this.copyRegion = n(this, "copyregion", 7);
|
|
64
64
|
}
|
|
65
65
|
onPaste(t) {
|
|
66
66
|
if (this.readonly)
|
|
@@ -142,9 +142,9 @@ const A = class {
|
|
|
142
142
|
getData(t) {
|
|
143
143
|
return t.clipboardData || (globalThis == null ? void 0 : globalThis.clipboardData);
|
|
144
144
|
}
|
|
145
|
-
}, R = () => "revogr-edit{display:block;position:absolute;background-color:var(--
|
|
145
|
+
}, R = () => "revogr-edit{display:block;position:absolute;background-color:var(--revo-grid-background, #fff)}revogr-edit input{height:100%;width:100%;box-sizing:border-box;background-color:var(--revo-grid-background, transparent)}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}", x = class {
|
|
146
146
|
constructor(t) {
|
|
147
|
-
|
|
147
|
+
h(this, t), this.cellEdit = n(this, "celleditinit", 7), this.closeEdit = n(this, "closeedit", 7), this.saveOnClose = !1, this.currentEditor = null, this.preventSaveOnClose = !1;
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* Cancel pending changes flag. Editor will be closed without autosave.
|
|
@@ -251,7 +251,7 @@ class P {
|
|
|
251
251
|
}
|
|
252
252
|
/** Calculate cell based on x, y position */
|
|
253
253
|
getRow(e, { el: i, rows: r }) {
|
|
254
|
-
const { top: s } = i.getBoundingClientRect(), o = e - s, a = r.renderOffset || 0, l =
|
|
254
|
+
const { top: s } = i.getBoundingClientRect(), o = e - s, a = r.renderOffset || 0, l = c(r, o + a);
|
|
255
255
|
return {
|
|
256
256
|
itemIndex: l.itemIndex,
|
|
257
257
|
start: l.start - a + s,
|
|
@@ -260,13 +260,13 @@ class P {
|
|
|
260
260
|
}
|
|
261
261
|
/** Calculate cell based on x, y position */
|
|
262
262
|
getCell({ x: e, y: i }, { el: r, rows: s, cols: o }) {
|
|
263
|
-
const { top: a, left: l } = r.getBoundingClientRect(), d = i - a, u = e - l, p =
|
|
264
|
-
return { x:
|
|
263
|
+
const { top: a, left: l } = r.getBoundingClientRect(), d = i - a, u = e - l, p = c(s, d + (s.renderOffset || 0));
|
|
264
|
+
return { x: c(o, u + (o.renderOffset || 0)).itemIndex, y: p.itemIndex };
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
const k = class {
|
|
268
268
|
constructor(t) {
|
|
269
|
-
|
|
269
|
+
h(this, t), this.rowDragStart = n(this, "rowdragstartinit", 7), this.rowDragEnd = n(this, "rowdragendinit", 7), this.rowDrag = n(this, "rowdragmoveinit", 7), this.rowMouseMove = n(this, "rowdragmousemove", 7), this.rowDropped = n(this, "rowdropinit", 7), this.rowOrderChange = n(this, "roworderchange", 7), this.events = [], this.rowMoveFunc = w((e) => {
|
|
270
270
|
const i = this.rowOrderService.move(e, this.getData());
|
|
271
271
|
i !== null && this.rowDrag.emit(Object.assign(Object.assign({}, i), { rowType: this.rowType }));
|
|
272
272
|
}, 5);
|