@endge/ui-vue 0.25.2 → 0.26.7
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-B2MJ_Yae.js} +1 -1
- package/dist/{main-DaAnRozo.js → main-B3Z2i5_A.js} +16842 -17507
- 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/model/style/EndgeDOMStyleRuntime.d.ts +4 -4
- package/dist/reactive/use-subscribable-ref.d.ts +9 -0
- package/dist/revo-grid.entry-Ckekabm7.js +1615 -0
- package/dist/{revogr-attribution_7.entry-BT5lTuRW.js → revogr-attribution_7.entry-BMfwqKL1.js} +102 -122
- package/dist/{revogr-clipboard_3.entry-C-dE9MUm.js → revogr-clipboard_3.entry-EnTOTF4w.js} +9 -9
- package/dist/{revogr-data_4.entry-C9qNfzLe.js → revogr-data_4.entry-D9fwtWG_.js} +177 -231
- package/dist/revogr-filter-panel.entry-BY-6jg6p.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-DU_okVhx.js +183 -0
- package/dist/ui/filter/EndgeFilterControlRenderer.d.ts +1 -1
- package/dist/ui/overlay/tooltip/endge-tooltip-manager.d.ts +16 -16
- 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/ui/table/NativeTablePagination.vue.d.ts +4 -4
- 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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as
|
|
3
|
-
import { H as
|
|
1
|
+
import { a7 as W, a8 as B, a9 as U, h as a, aa as V, ab as E, ac as z, ad as F, ae as N, af as X, ag as K, ah as Y, r as x, c as v, N as Z, q, ai as J, aj as T, H, f as R, o as L, ak as D, al as Q, am as m, an as ee, ao as I, a0 as te, ap as re, aq as P, ar as M } from "./main-B3Z2i5_A.js";
|
|
2
|
+
import { L as ie, a as oe, g as k, t as le } from "./throttle-Cpk1LoGk-DU_okVhx.js";
|
|
3
|
+
import { H as se, C as ne, F as ae } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
|
|
4
4
|
/*!
|
|
5
5
|
* Built by Revolist OU ❤️
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const de = ({ column: e }) => {
|
|
8
8
|
var t;
|
|
9
9
|
const r = { class: "sort-indicator" }, i = { class: (t = e == null ? void 0 : e.order) !== null && t !== void 0 ? t : "sort-off" }, o = { class: "sort-order-index" };
|
|
10
|
-
return
|
|
10
|
+
return a("span", Object.assign({}, r), a("i", Object.assign({}, i)), e != null && e.sortIndex ? a("sup", Object.assign({}, o), e.sortIndex) : null);
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var ce = function(e, t) {
|
|
13
13
|
var r = {};
|
|
14
14
|
for (var i in e)
|
|
15
15
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -18,18 +18,18 @@ var pe = function(e, t) {
|
|
|
18
18
|
t.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[o]) && (r[i[o]] = e[i[o]]);
|
|
19
19
|
return r;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
var { rowClass: r, index: i, size: o, start: l, depth: s, groupingLevel:
|
|
23
|
-
const
|
|
24
|
-
return
|
|
21
|
+
const j = 10, _ = (e, t) => {
|
|
22
|
+
var { rowClass: r, index: i, size: o, start: l, depth: s, groupingLevel: d } = e, h = ce(e, ["rowClass", "index", "size", "start", "depth", "groupingLevel"]);
|
|
23
|
+
const n = Object.assign(Object.assign(Object.assign({}, h), { [E]: i }), typeof d == "number" ? { "data-level": d } : {});
|
|
24
|
+
return a("div", Object.assign({}, n, { class: `rgRow ${r || ""}`, style: {
|
|
25
25
|
height: `${o}px`,
|
|
26
26
|
transform: `translateY(${l}px)`,
|
|
27
|
-
paddingLeft: s ? `${
|
|
27
|
+
paddingLeft: s ? `${j * s}px` : void 0
|
|
28
28
|
} }), t);
|
|
29
29
|
};
|
|
30
|
-
function
|
|
30
|
+
function $(e, t, r) {
|
|
31
31
|
var i;
|
|
32
|
-
const o = new CustomEvent(
|
|
32
|
+
const o = new CustomEvent(Y, {
|
|
33
33
|
detail: {
|
|
34
34
|
model: t,
|
|
35
35
|
virtualIndex: r
|
|
@@ -39,110 +39,61 @@ function D(e, t, r) {
|
|
|
39
39
|
});
|
|
40
40
|
(i = e.target) === null || i === void 0 || i.dispatchEvent(o);
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
const {
|
|
44
|
-
if (!s)
|
|
45
|
-
return [];
|
|
46
|
-
const v = n.viewport.get("renderOffset") || 0, w = n.data.get("source"), b = { itemIndex: h, size: g, start: m, end: u }, z = (f) => D(f, c, h);
|
|
47
|
-
return l.map((f) => {
|
|
48
|
-
const C = P(n.columns, f.itemIndex);
|
|
49
|
-
if (!C)
|
|
50
|
-
return null;
|
|
51
|
-
const S = X(C), R = {
|
|
52
|
-
prop: C.prop,
|
|
53
|
-
model: c,
|
|
54
|
-
data: w,
|
|
55
|
-
column: C,
|
|
56
|
-
rowIndex: h,
|
|
57
|
-
colIndex: f.itemIndex,
|
|
58
|
-
colType: n.colType,
|
|
59
|
-
type: n.type,
|
|
60
|
-
value: Y(c, C),
|
|
61
|
-
providers: n,
|
|
62
|
-
columnItem: f,
|
|
63
|
-
rowItem: b,
|
|
64
|
-
group: {
|
|
65
|
-
name: t,
|
|
66
|
-
depth: i,
|
|
67
|
-
expanded: r,
|
|
68
|
-
prop: c[K],
|
|
69
|
-
isLabelColumn: S,
|
|
70
|
-
canExpand: a,
|
|
71
|
-
onExpand: z
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return d("div", {
|
|
75
|
-
key: f.itemIndex,
|
|
76
|
-
class: {
|
|
77
|
-
[Z]: !0,
|
|
78
|
-
groupingCell: !0,
|
|
79
|
-
groupingLabelCell: S
|
|
80
|
-
},
|
|
81
|
-
[$]: f.itemIndex,
|
|
82
|
-
[k]: h,
|
|
83
|
-
style: {
|
|
84
|
-
width: `${f.size}px`,
|
|
85
|
-
transform: `translateX(${f.start - v}px)`,
|
|
86
|
-
height: g ? `${g}px` : void 0
|
|
87
|
-
}
|
|
88
|
-
}, s(d, R, o));
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
const me = (e) => {
|
|
92
|
-
const { model: t, itemIndex: r, hasExpand: i, groupingCustomRenderer: o, groupingCellRenderer: l } = e, s = t[U], a = t[V], h = parseInt(t[F], 10) || 0, c = {
|
|
42
|
+
const he = (e) => {
|
|
43
|
+
const { model: t, itemIndex: r, hasExpand: i, groupingCustomRenderer: o } = e, l = t[W], s = t[B], d = parseInt(t[U], 10) || 0, h = {
|
|
93
44
|
rowClass: "groupingRow",
|
|
94
|
-
depth:
|
|
95
|
-
expanded:
|
|
45
|
+
depth: d,
|
|
46
|
+
expanded: s
|
|
96
47
|
};
|
|
97
|
-
return
|
|
48
|
+
return o ? a(_, Object.assign({}, e, h), a("div", { onClick: (n) => $(n, t, r) }, o(a, Object.assign(Object.assign({}, e), {
|
|
98
49
|
colType: e.providers.colType,
|
|
99
|
-
name:
|
|
100
|
-
expanded:
|
|
101
|
-
depth:
|
|
102
|
-
})))) :
|
|
103
|
-
|
|
104
|
-
|
|
50
|
+
name: l,
|
|
51
|
+
expanded: s,
|
|
52
|
+
depth: d
|
|
53
|
+
})))) : a(_, Object.assign({}, e, h), i && [
|
|
54
|
+
a("button", { class: { [V]: !0 }, onClick: (n) => $(n, t, r) }, ge(s)),
|
|
55
|
+
l
|
|
105
56
|
]);
|
|
106
|
-
},
|
|
107
|
-
function
|
|
57
|
+
}, ge = (e = !1) => a("svg", { "aria-hidden": "true", style: { transform: `rotate(${e ? 0 : -90}deg)` }, focusable: "false", viewBox: "0 0 448 512" }, a("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }));
|
|
58
|
+
function ve(e) {
|
|
108
59
|
var t;
|
|
109
60
|
const r = [], i = (t = e.schemaModel.column) === null || t === void 0 ? void 0 : t.cellTemplate;
|
|
110
61
|
if (i)
|
|
111
|
-
r.push(i(
|
|
62
|
+
r.push(i(a, e.schemaModel, e.additionalData));
|
|
112
63
|
else {
|
|
113
64
|
if (!e.schemaModel.column)
|
|
114
|
-
return !(
|
|
115
|
-
e.schemaModel.column.rowDrag &&
|
|
65
|
+
return !(z === null || z === void 0) && z.isDev && console.error("Investigate column problem.", e.schemaModel), "";
|
|
66
|
+
e.schemaModel.column.rowDrag && F(e.schemaModel.column.rowDrag, e.schemaModel) && r.push(a("span", { class: X, onMouseDown: (o) => {
|
|
116
67
|
var l;
|
|
117
68
|
return (l = e.dragStartCell) === null || l === void 0 ? void 0 : l.emit({
|
|
118
69
|
originalEvent: o,
|
|
119
70
|
model: e.schemaModel
|
|
120
71
|
});
|
|
121
|
-
} },
|
|
72
|
+
} }, a("span", { class: N }))), r.push(`${K(e.schemaModel.model, e.schemaModel.column)}`);
|
|
122
73
|
}
|
|
123
74
|
return r;
|
|
124
75
|
}
|
|
125
|
-
const
|
|
126
|
-
const r =
|
|
127
|
-
return
|
|
76
|
+
const ue = ({ renderProps: e, cellProps: t }) => {
|
|
77
|
+
const r = ve.bind(null, e);
|
|
78
|
+
return a("div", Object.assign({}, t, { redraw: r }), r());
|
|
128
79
|
};
|
|
129
80
|
/*!
|
|
130
81
|
* Built by Revolist OU ❤️
|
|
131
82
|
*/
|
|
132
|
-
class
|
|
83
|
+
class pe {
|
|
133
84
|
constructor() {
|
|
134
85
|
this.currentRange = null;
|
|
135
86
|
}
|
|
136
87
|
selectionChange(t, r) {
|
|
137
88
|
if (this.currentRange && r.forEach((i, o) => {
|
|
138
89
|
var l;
|
|
139
|
-
t && o >= t.y && o <= t.y1 || i && i.$elm$ instanceof HTMLElement && i.$elm$.classList.contains(
|
|
90
|
+
t && o >= t.y && o <= t.y1 || i && i.$elm$ instanceof HTMLElement && i.$elm$.classList.contains(m) && (i.$elm$.classList.remove(m), !((l = i.$attrs$) === null || l === void 0) && l.class.includes(m) && (i.$attrs$.class = i.$attrs$.class.replace(m, "")));
|
|
140
91
|
}), t)
|
|
141
92
|
for (let i = t.y; i <= t.y1; i++) {
|
|
142
93
|
const o = r.get(i);
|
|
143
|
-
if (o && o.$elm$ instanceof HTMLElement && !o.$elm$.classList.contains(
|
|
94
|
+
if (o && o.$elm$ instanceof HTMLElement && !o.$elm$.classList.contains(m)) {
|
|
144
95
|
const l = o.$attrs$ = o.$attrs$ || {};
|
|
145
|
-
l.class = (l.class || "") + " " +
|
|
96
|
+
l.class = (l.class || "") + " " + m, o.$elm$.classList.add(m);
|
|
146
97
|
}
|
|
147
98
|
}
|
|
148
99
|
this.currentRange = t;
|
|
@@ -151,7 +102,7 @@ class xe {
|
|
|
151
102
|
return this.currentRange && t >= this.currentRange.y && t <= this.currentRange.y1;
|
|
152
103
|
}
|
|
153
104
|
}
|
|
154
|
-
function
|
|
105
|
+
function fe(e, t) {
|
|
155
106
|
return new Promise((r) => {
|
|
156
107
|
const i = document.createElement("vnode-html");
|
|
157
108
|
e.appendChild(i), i.redraw = t, i.addEventListener("html", (o) => {
|
|
@@ -159,9 +110,9 @@ function Se(e, t) {
|
|
|
159
110
|
});
|
|
160
111
|
});
|
|
161
112
|
}
|
|
162
|
-
const
|
|
113
|
+
const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before{content:"::";display:inline-block}.revo-alt-icon{-webkit-mask-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600;text-align:left}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent;vertical-align:middle;padding-left:5px;display:inline-flex}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer;display:inline-flex}revogr-data .revo-draggable:hover>.revo-drag-icon{opacity:1;zoom:1.2;font-weight:600}revogr-data .revo-draggable>.revo-drag-icon{pointer-events:none;transition:opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, zoom 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;left:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;outline:none}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}`, we = class {
|
|
163
114
|
constructor(e) {
|
|
164
|
-
|
|
115
|
+
x(this, e), this.beforerowrender = v(this, "beforerowrender", 7), this.afterrender = v(this, "afterrender", 7), this.beforeCellRender = v(this, "beforecellrender", 7), this.beforeDataRender = v(this, "beforedatarender", 7), this.dragStartCell = v(this, "dragstartcell", 7), this.jobsBeforeRender = [], this.renderedRows = /* @__PURE__ */ new Map();
|
|
165
116
|
}
|
|
166
117
|
/**
|
|
167
118
|
* Pointed cell update.
|
|
@@ -170,7 +121,7 @@ const Re = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
170
121
|
var t, r, i;
|
|
171
122
|
const o = (r = (t = this.renderedRows.get(e.row)) === null || t === void 0 ? void 0 : t.$children$) === null || r === void 0 ? void 0 : r[e.col];
|
|
172
123
|
if (!((i = o == null ? void 0 : o.$attrs$) === null || i === void 0) && i.redraw) {
|
|
173
|
-
const l = await
|
|
124
|
+
const l = await fe(this.element, o.$attrs$.redraw);
|
|
174
125
|
o.$elm$.innerHTML = l.html, o.$key$ = Math.random();
|
|
175
126
|
}
|
|
176
127
|
}
|
|
@@ -182,7 +133,7 @@ const Re = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
182
133
|
}
|
|
183
134
|
onStoreChange() {
|
|
184
135
|
var e, t;
|
|
185
|
-
(e = this.columnService) === null || e === void 0 || e.destroy(), this.columnService = new
|
|
136
|
+
(e = this.columnService) === null || e === void 0 || e.destroy(), this.columnService = new Z(this.dataStore, this.colData), this.providers = {
|
|
186
137
|
type: this.type,
|
|
187
138
|
colType: this.colType,
|
|
188
139
|
readonly: this.readonly,
|
|
@@ -194,7 +145,7 @@ const Re = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
194
145
|
}, (t = this.rangeUnsubscribe) === null || t === void 0 || t.call(this), this.rangeUnsubscribe = this.rowSelectionStore.onChange("range", (r) => this.rowHighlightPlugin.selectionChange(r, this.renderedRows));
|
|
195
146
|
}
|
|
196
147
|
connectedCallback() {
|
|
197
|
-
this.rowHighlightPlugin = new
|
|
148
|
+
this.rowHighlightPlugin = new pe(), this.onStoreChange();
|
|
198
149
|
}
|
|
199
150
|
disconnectedCallback() {
|
|
200
151
|
var e, t;
|
|
@@ -218,62 +169,57 @@ const Re = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
218
169
|
const r = this.viewportCol.get("items");
|
|
219
170
|
if (!r.length)
|
|
220
171
|
return;
|
|
221
|
-
const i = [], o = this.dataStore.get("groupingDepth"), l = this.dataStore.get("groupingCustomRenderer"), s = this.
|
|
172
|
+
const i = [], o = this.dataStore.get("groupingDepth"), l = this.dataStore.get("groupingCustomRenderer"), s = this.columnService.hasGrouping ? o : 0, d = this.viewportRow.get("renderOffset") || 0, h = this.viewportCol.get("renderOffset") || 0;
|
|
222
173
|
for (let n of t) {
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
225
|
-
const
|
|
226
|
-
start: n.start -
|
|
174
|
+
const c = q(this.dataStore, n.itemIndex);
|
|
175
|
+
if (J(c)) {
|
|
176
|
+
const g = Object.assign(Object.assign({}, n), {
|
|
177
|
+
start: n.start - d,
|
|
227
178
|
index: n.itemIndex,
|
|
228
|
-
model:
|
|
179
|
+
model: c,
|
|
229
180
|
groupingCustomRenderer: l,
|
|
230
|
-
groupingCellRenderer: s,
|
|
231
|
-
additionalData: this.additionalData,
|
|
232
181
|
// Only show expand button if grouping is enabled and not in row headers
|
|
233
182
|
hasExpand: this.columnService.hasGrouping && this.colType !== "rowHeaders",
|
|
234
183
|
columnItems: r,
|
|
235
184
|
providers: this.providers
|
|
236
|
-
})
|
|
237
|
-
|
|
185
|
+
});
|
|
186
|
+
i.push(a(he, Object.assign({}, g)));
|
|
238
187
|
continue;
|
|
239
188
|
}
|
|
240
|
-
const
|
|
241
|
-
for (let
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
189
|
+
const p = [];
|
|
190
|
+
for (let g of r) {
|
|
191
|
+
const w = Object.assign(Object.assign({}, this.columnService.rowDataModel(n.itemIndex, g.itemIndex)), { providers: this.providers }), b = this.triggerBeforeCellRender(w, n, g);
|
|
192
|
+
if (b.defaultPrevented)
|
|
244
193
|
continue;
|
|
245
|
-
const { detail: { column:
|
|
246
|
-
[
|
|
247
|
-
[
|
|
194
|
+
const { detail: { column: C, row: S, model: O } } = b, y = {
|
|
195
|
+
[T]: C.itemIndex,
|
|
196
|
+
[E]: S.itemIndex,
|
|
248
197
|
style: {
|
|
249
|
-
width: `${
|
|
250
|
-
transform: `translateX(${
|
|
251
|
-
height:
|
|
198
|
+
width: `${C.size}px`,
|
|
199
|
+
transform: `translateX(${C.start - h}px)`,
|
|
200
|
+
height: S.size ? `${S.size}px` : void 0
|
|
252
201
|
}
|
|
253
202
|
};
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
schemaModel:
|
|
203
|
+
s && !C.itemIndex && y.style && (y.style.paddingLeft = `${j * s}px`);
|
|
204
|
+
const G = this.columnService.mergeProperties(S.itemIndex, C.itemIndex, y, O), A = a(ue, { renderProps: {
|
|
205
|
+
schemaModel: O,
|
|
257
206
|
additionalData: this.additionalData,
|
|
258
207
|
dragStartCell: this.dragStartCell
|
|
259
|
-
}, cellProps:
|
|
260
|
-
|
|
208
|
+
}, cellProps: G });
|
|
209
|
+
p.push(A);
|
|
261
210
|
}
|
|
262
|
-
let
|
|
263
|
-
this.rowHighlightPlugin.isRowFocused(n.itemIndex) && (
|
|
264
|
-
const
|
|
265
|
-
this.
|
|
211
|
+
let f = this.rowClass ? this.columnService.getRowClass(n.itemIndex, this.rowClass) : "";
|
|
212
|
+
this.rowHighlightPlugin.isRowFocused(n.itemIndex) && (f += ` ${m}`);
|
|
213
|
+
const u = a(_, { index: n.itemIndex, rowClass: f, size: n.size, start: n.start - d, groupingLevel: s || void 0 }, p);
|
|
214
|
+
this.beforerowrender.emit({
|
|
215
|
+
node: u,
|
|
216
|
+
item: n,
|
|
217
|
+
model: c,
|
|
218
|
+
colType: this.columnService.type,
|
|
219
|
+
rowType: this.type
|
|
220
|
+
}), i.push(u), this.renderedRows.set(n.itemIndex, u);
|
|
266
221
|
}
|
|
267
|
-
return
|
|
268
|
-
}
|
|
269
|
-
triggerBeforeRowRender(e, t, r) {
|
|
270
|
-
this.beforerowrender.emit({
|
|
271
|
-
node: e,
|
|
272
|
-
item: t,
|
|
273
|
-
model: r,
|
|
274
|
-
colType: this.colType,
|
|
275
|
-
rowType: this.type
|
|
276
|
-
});
|
|
222
|
+
return a(H, null, a("slot", null), i);
|
|
277
223
|
}
|
|
278
224
|
triggerBeforeCellRender(e, t, r) {
|
|
279
225
|
const i = {
|
|
@@ -286,7 +232,7 @@ const Re = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
286
232
|
return this.beforeCellRender.emit(i);
|
|
287
233
|
}
|
|
288
234
|
get element() {
|
|
289
|
-
return
|
|
235
|
+
return R(this);
|
|
290
236
|
}
|
|
291
237
|
static get watchers() {
|
|
292
238
|
return {
|
|
@@ -299,55 +245,55 @@ const Re = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
299
245
|
};
|
|
300
246
|
}
|
|
301
247
|
};
|
|
302
|
-
|
|
303
|
-
const
|
|
304
|
-
var t, r, i, o, l, s,
|
|
305
|
-
const
|
|
306
|
-
[
|
|
307
|
-
[
|
|
248
|
+
we.style = me();
|
|
249
|
+
const Ce = (e) => {
|
|
250
|
+
var t, r, i, o, l, s, d, h, n, c;
|
|
251
|
+
const p = !!(!((t = e.data) === null || t === void 0) && t.sortable || !((r = e.data) === null || r === void 0) && r.order || !((i = e.data) === null || i === void 0) && i.sortIndex), f = {
|
|
252
|
+
[M]: !0,
|
|
253
|
+
[ee]: !!(!((o = e.data) === null || o === void 0) && o.sortable)
|
|
308
254
|
};
|
|
309
|
-
!((l = e.data) === null || l === void 0) && l.order && (
|
|
255
|
+
!((l = e.data) === null || l === void 0) && l.order && (f[e.data.order] = !0);
|
|
310
256
|
const u = {
|
|
311
|
-
key: String((
|
|
312
|
-
[
|
|
257
|
+
key: String((d = (s = e.data) === null || s === void 0 ? void 0 : s.prop) !== null && d !== void 0 ? d : e.column.itemIndex),
|
|
258
|
+
[T]: e.column.itemIndex,
|
|
313
259
|
canResize: e.canResize,
|
|
314
|
-
minWidth: ((h = e.data) === null || h === void 0 ? void 0 : h.minSize) ||
|
|
315
|
-
maxWidth: (
|
|
260
|
+
minWidth: ((h = e.data) === null || h === void 0 ? void 0 : h.minSize) || I,
|
|
261
|
+
maxWidth: (n = e.data) === null || n === void 0 ? void 0 : n.maxSize,
|
|
316
262
|
active: e.active || ["r"],
|
|
317
|
-
class:
|
|
263
|
+
class: f,
|
|
318
264
|
style: {
|
|
319
265
|
width: `${e.column.size}px`,
|
|
320
266
|
transform: `translateX(${e.column.start - (e.renderOffset || 0)}px)`
|
|
321
267
|
},
|
|
322
268
|
onResize: e.onResize,
|
|
323
|
-
onDblClick(
|
|
269
|
+
onDblClick(g) {
|
|
324
270
|
var w;
|
|
325
271
|
(w = e.onDblClick) === null || w === void 0 || w.call(e, {
|
|
326
272
|
column: e.data,
|
|
327
273
|
index: e.column.itemIndex,
|
|
328
|
-
originalEvent:
|
|
274
|
+
originalEvent: g,
|
|
329
275
|
providers: e.data.providers
|
|
330
276
|
});
|
|
331
277
|
},
|
|
332
|
-
onClick(
|
|
333
|
-
|
|
278
|
+
onClick(g) {
|
|
279
|
+
g.defaultPrevented || !e.onClick || e.onClick({
|
|
334
280
|
column: e.data,
|
|
335
281
|
index: e.column.itemIndex,
|
|
336
|
-
originalEvent:
|
|
282
|
+
originalEvent: g,
|
|
337
283
|
providers: e.data.providers
|
|
338
284
|
});
|
|
339
285
|
}
|
|
340
286
|
};
|
|
341
|
-
return e.range && e.column.itemIndex >= e.range.x && e.column.itemIndex <= e.range.x1 && typeof u.class == "object" && (u.class[
|
|
342
|
-
},
|
|
287
|
+
return e.range && e.column.itemIndex >= e.range.x && e.column.itemIndex <= e.range.x1 && typeof u.class == "object" && (u.class[te] = !0), a(P, { data: e.data, props: u, additionalData: e.additionalData }, p ? a(de, { column: e.data }) : null, e.canFilter && ((c = e.data) === null || c === void 0 ? void 0 : c.filter) !== !1 ? a(re, { column: e.data }) : "");
|
|
288
|
+
}, be = (e) => {
|
|
343
289
|
const t = {
|
|
344
290
|
key: `${e.group.name}-${e.group.indexes.join("-")}`,
|
|
345
291
|
canResize: e.canResize,
|
|
346
|
-
minWidth: e.group.indexes.length *
|
|
292
|
+
minWidth: e.group.indexes.length * I,
|
|
347
293
|
maxWidth: 0,
|
|
348
294
|
active: e.active || ["r"],
|
|
349
295
|
class: {
|
|
350
|
-
[
|
|
296
|
+
[M]: !0
|
|
351
297
|
},
|
|
352
298
|
style: {
|
|
353
299
|
transform: `translateX(${e.start - (e.renderOffset || 0)}px)`,
|
|
@@ -355,10 +301,10 @@ const ye = (e) => {
|
|
|
355
301
|
},
|
|
356
302
|
onResize: e.onResize
|
|
357
303
|
};
|
|
358
|
-
return
|
|
359
|
-
},
|
|
304
|
+
return a(P, { data: Object.assign(Object.assign({}, e.group), { prop: "", providers: e.providers, index: e.start }), props: t, additionalData: e.additionalData });
|
|
305
|
+
}, Se = () => '@charset "UTF-8";revogr-header{position:relative;z-index:5;display:block}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative;overflow:hidden}revogr-header .rgHeaderCell{position:absolute;box-sizing:border-box;height:100%;z-index:1;display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell .sort-indicator{display:inline-flex;align-items:flex-start;gap:1px}revogr-header .rgHeaderCell .sort-indicator i.asc:after,revogr-header .rgHeaderCell .sort-indicator i.desc:after{font-size:13px}revogr-header .rgHeaderCell .sort-indicator i.asc:after{content:"↑"}revogr-header .rgHeaderCell .sort-indicator i.desc:after{content:"↓"}revogr-header .rgHeaderCell .sort-indicator .sort-order-index{font-size:10px;line-height:1;top:0}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}', xe = class {
|
|
360
306
|
constructor(e) {
|
|
361
|
-
|
|
307
|
+
x(this, e), this.initialHeaderClick = v(this, "beforeheaderclick", 7), this.headerresize = v(this, "headerresize", 7), this.beforeResize = v(this, "beforeheaderresize", 7), this.headerdblClick = v(this, "headerdblclick", 7), this.beforeHeaderRender = v(this, "beforeheaderrender", 7), this.beforeGroupHeaderRender = v(this, "beforegroupheaderrender", 7), this.afterHeaderRender = v(this, "afterheaderrender", 7), this.groupingDepth = 0, this.additionalData = {};
|
|
362
308
|
}
|
|
363
309
|
onResize({ width: e }, t) {
|
|
364
310
|
const r = this.colData[t];
|
|
@@ -369,7 +315,7 @@ const ye = (e) => {
|
|
|
369
315
|
onResizeGroup(e, t, r) {
|
|
370
316
|
const i = {}, o = e / (r - t + 1);
|
|
371
317
|
for (let l = t; l <= r; l++) {
|
|
372
|
-
const s =
|
|
318
|
+
const s = L(this.dimensionCol.state, l);
|
|
373
319
|
i[l] = s.end - s.start + o;
|
|
374
320
|
}
|
|
375
321
|
this.headerresize.emit(i);
|
|
@@ -381,30 +327,30 @@ const ye = (e) => {
|
|
|
381
327
|
var e;
|
|
382
328
|
const t = this.viewportCol.get("items"), r = (e = this.selectionStore) === null || e === void 0 ? void 0 : e.get("range"), { cells: i } = this.renderHeaderColumns(t, r), o = this.renderGroupingColumns();
|
|
383
329
|
return [
|
|
384
|
-
|
|
385
|
-
|
|
330
|
+
a("div", { key: "3cc466db6bc4df0cd61c47a22c3a0473318e5dd8", class: "group-rgRow" }, o),
|
|
331
|
+
a("div", { key: "9742a3fa4d4b75073aef5544806f42386ebffdea", class: `${D} ${Q}` }, i)
|
|
386
332
|
];
|
|
387
333
|
}
|
|
388
334
|
renderHeaderColumns(e, t) {
|
|
389
335
|
const r = [], i = this.viewportCol.get("renderOffset") || 0;
|
|
390
336
|
for (let s of e) {
|
|
391
|
-
const
|
|
337
|
+
const d = this.colData[s.itemIndex], h = {
|
|
392
338
|
range: t,
|
|
393
339
|
column: s,
|
|
394
|
-
data: Object.assign(Object.assign({},
|
|
340
|
+
data: Object.assign(Object.assign({}, d), { index: s.itemIndex, providers: this.providers }),
|
|
395
341
|
canFilter: !!this.columnFilter,
|
|
396
342
|
canResize: this.canResize,
|
|
397
343
|
renderOffset: i,
|
|
398
344
|
active: this.resizeHandler,
|
|
399
345
|
additionalData: this.additionalData,
|
|
400
|
-
onResize: (
|
|
401
|
-
onDblClick: (
|
|
402
|
-
onClick: (
|
|
403
|
-
},
|
|
404
|
-
|
|
346
|
+
onResize: (c) => this.onResize(c, s.itemIndex),
|
|
347
|
+
onDblClick: (c) => this.headerdblClick.emit(c),
|
|
348
|
+
onClick: (c) => this.initialHeaderClick.emit(c)
|
|
349
|
+
}, n = this.beforeHeaderRender.emit(h);
|
|
350
|
+
n.defaultPrevented || r.push(n.detail);
|
|
405
351
|
}
|
|
406
352
|
const o = this.getDuplicateHeaderProps(r);
|
|
407
|
-
return { cells: r.map((s) =>
|
|
353
|
+
return { cells: r.map((s) => a(Ce, Object.assign({ key: this.getHeaderCellKey(s.data, this.type, o) }, s))) };
|
|
408
354
|
}
|
|
409
355
|
renderGroupingColumns() {
|
|
410
356
|
const e = this.getVisibleGroupRange();
|
|
@@ -413,10 +359,10 @@ const ye = (e) => {
|
|
|
413
359
|
renderGroupRow(e, t) {
|
|
414
360
|
return [
|
|
415
361
|
...(this.groups[e] || []).map((i) => this.renderGroupColumn(i, e, t)).filter((i) => !!i),
|
|
416
|
-
|
|
362
|
+
a("div", {
|
|
417
363
|
key: `group-row-${e}`,
|
|
418
364
|
class: {
|
|
419
|
-
[
|
|
365
|
+
[D]: !0,
|
|
420
366
|
group: !0
|
|
421
367
|
}
|
|
422
368
|
})
|
|
@@ -433,22 +379,22 @@ const ye = (e) => {
|
|
|
433
379
|
active: this.resizeHandler,
|
|
434
380
|
canResize: this.canResize,
|
|
435
381
|
additionalData: this.additionalData,
|
|
436
|
-
onResize: (
|
|
437
|
-
var
|
|
438
|
-
return i ? this.onResizeGroup((
|
|
382
|
+
onResize: (n) => {
|
|
383
|
+
var c;
|
|
384
|
+
return i ? this.onResizeGroup((c = n.changedX) !== null && c !== void 0 ? c : 0, i.startIndex, i.endIndex) : void 0;
|
|
439
385
|
}
|
|
440
386
|
}, s = this.beforeGroupHeaderRender.emit(l);
|
|
441
387
|
if (s.defaultPrevented)
|
|
442
388
|
return;
|
|
443
|
-
const
|
|
444
|
-
if (!
|
|
389
|
+
const d = this.getGroupIndexRange(s.detail.group);
|
|
390
|
+
if (!d || !r || !Re(d.startIndex, d.endIndex, r))
|
|
445
391
|
return;
|
|
446
|
-
s.detail.onResize === l.onResize && (s.detail.onResize = (
|
|
447
|
-
var
|
|
448
|
-
return this.onResizeGroup((
|
|
392
|
+
s.detail.onResize === l.onResize && (s.detail.onResize = (n) => {
|
|
393
|
+
var c;
|
|
394
|
+
return this.onResizeGroup((c = n.changedX) !== null && c !== void 0 ? c : 0, d.startIndex, d.endIndex);
|
|
449
395
|
});
|
|
450
|
-
const h = this.getGroupBounds(
|
|
451
|
-
return s.detail.start === l.start && (s.detail.start = h.start), s.detail.end === l.end && (s.detail.end = h.end),
|
|
396
|
+
const h = this.getGroupBounds(d);
|
|
397
|
+
return s.detail.start === l.start && (s.detail.start = h.start), s.detail.end === l.end && (s.detail.end = h.end), a(be, Object.assign({ key: this.getGroupHeaderCellKey(s.detail.group, t) }, s.detail));
|
|
452
398
|
}
|
|
453
399
|
getGroupIndexRange(e) {
|
|
454
400
|
var t;
|
|
@@ -463,8 +409,8 @@ const ye = (e) => {
|
|
|
463
409
|
}
|
|
464
410
|
getGroupBounds(e) {
|
|
465
411
|
return e ? {
|
|
466
|
-
start:
|
|
467
|
-
end:
|
|
412
|
+
start: L(this.dimensionCol.state, e.startIndex).start,
|
|
413
|
+
end: L(this.dimensionCol.state, e.endIndex).end
|
|
468
414
|
} : { start: 0, end: 0 };
|
|
469
415
|
}
|
|
470
416
|
getVisibleGroupRange() {
|
|
@@ -507,25 +453,25 @@ const ye = (e) => {
|
|
|
507
453
|
};
|
|
508
454
|
}
|
|
509
455
|
get element() {
|
|
510
|
-
return
|
|
456
|
+
return R(this);
|
|
511
457
|
}
|
|
512
458
|
};
|
|
513
|
-
function
|
|
459
|
+
function Re(e, t, r) {
|
|
514
460
|
return e <= r.end && t >= r.start;
|
|
515
461
|
}
|
|
516
|
-
|
|
517
|
-
class
|
|
462
|
+
xe.style = Se();
|
|
463
|
+
class ye {
|
|
518
464
|
constructor(t, r, i) {
|
|
519
465
|
this.resize = r, this.resizeObserver = null, this.previousSize = {
|
|
520
466
|
width: 0,
|
|
521
467
|
height: 0
|
|
522
|
-
}, this.apply =
|
|
468
|
+
}, this.apply = le((l) => {
|
|
523
469
|
var s;
|
|
524
|
-
const
|
|
470
|
+
const d = {
|
|
525
471
|
width: l.width,
|
|
526
472
|
height: l.height
|
|
527
473
|
};
|
|
528
|
-
(s = this.resize) === null || s === void 0 || s.call(this,
|
|
474
|
+
(s = this.resize) === null || s === void 0 || s.call(this, d, this.previousSize), this.previousSize = d;
|
|
529
475
|
}, 40, {
|
|
530
476
|
leading: !1,
|
|
531
477
|
trailing: !0
|
|
@@ -548,9 +494,9 @@ class De {
|
|
|
548
494
|
this.apply.cancel(), (t = this.resizeObserver) === null || t === void 0 || t.disconnect(), this.resizeObserver = null;
|
|
549
495
|
}
|
|
550
496
|
}
|
|
551
|
-
const
|
|
497
|
+
const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.colPinEnd:has(.active){overflow:visible}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;outline:none;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}", Le = class {
|
|
552
498
|
constructor(e) {
|
|
553
|
-
|
|
499
|
+
x(this, e), this.scrollViewport = v(this, "scrollviewport", 7), this.resizeViewport = v(this, "resizeviewport", 7), this.scrollchange = v(this, "scrollchange", 7), this.silentScroll = v(this, "scrollviewportsilent", 7), this.contentWidth = 0, this.contentHeight = 0, this.noHorizontalScrollTransfer = !1;
|
|
554
500
|
}
|
|
555
501
|
async setScroll(e) {
|
|
556
502
|
var t;
|
|
@@ -605,7 +551,7 @@ const ke = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
605
551
|
this.applyOnScroll(e, t, !0);
|
|
606
552
|
}
|
|
607
553
|
connectedCallback() {
|
|
608
|
-
this.verticalMouseWheel = this.onVerticalMouseWheel.bind(this, "rgRow", "deltaY"), this.horizontalMouseWheel = this.onHorizontalMouseWheel.bind(this, "rgCol", "deltaX"), this.localScrollTimer = new
|
|
554
|
+
this.verticalMouseWheel = this.onVerticalMouseWheel.bind(this, "rgRow", "deltaY"), this.horizontalMouseWheel = this.onHorizontalMouseWheel.bind(this, "rgCol", "deltaX"), this.localScrollTimer = new ie("ontouchstart" in document.documentElement ? 0 : 10), this.localScrollService = new oe({
|
|
609
555
|
// to improve safari smoothnes on scroll
|
|
610
556
|
// skipAnimationFrame: isSafariDesktop(),
|
|
611
557
|
runScroll: (e) => this.scrollViewport.emit(e),
|
|
@@ -622,34 +568,34 @@ const ke = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
622
568
|
});
|
|
623
569
|
}
|
|
624
570
|
componentDidLoad() {
|
|
625
|
-
this.resizeService = new
|
|
626
|
-
var t, r, i, o, l, s,
|
|
627
|
-
const
|
|
628
|
-
let
|
|
629
|
-
|
|
630
|
-
size:
|
|
571
|
+
this.resizeService = new ye(this.horizontalScroll, (e) => {
|
|
572
|
+
var t, r, i, o, l, s, d, h;
|
|
573
|
+
const n = {};
|
|
574
|
+
let c = e.height || 0;
|
|
575
|
+
c && (c -= ((r = (t = this.header) === null || t === void 0 ? void 0 : t.clientHeight) !== null && r !== void 0 ? r : 0) + ((o = (i = this.footer) === null || i === void 0 ? void 0 : i.clientHeight) !== null && o !== void 0 ? o : 0)), n.rgRow = {
|
|
576
|
+
size: c,
|
|
631
577
|
contentSize: this.contentHeight,
|
|
632
578
|
scroll: (s = (l = this.verticalScroll) === null || l === void 0 ? void 0 : l.scrollTop) !== null && s !== void 0 ? s : 0,
|
|
633
579
|
noScroll: !1
|
|
634
580
|
};
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
size:
|
|
581
|
+
const p = e.width || 0;
|
|
582
|
+
n.rgCol = {
|
|
583
|
+
size: p,
|
|
638
584
|
contentSize: this.contentWidth,
|
|
639
585
|
scroll: this.horizontalScroll.scrollLeft,
|
|
640
586
|
noScroll: this.colType !== "rgCol"
|
|
641
587
|
}, this.setScrollParams({
|
|
642
|
-
rgRow:
|
|
643
|
-
rgCol:
|
|
588
|
+
rgRow: c,
|
|
589
|
+
rgCol: p
|
|
644
590
|
});
|
|
645
|
-
const
|
|
646
|
-
for (const u of
|
|
647
|
-
const
|
|
648
|
-
|
|
591
|
+
const f = ["rgCol", "rgRow"];
|
|
592
|
+
for (const u of f) {
|
|
593
|
+
const g = n[u];
|
|
594
|
+
g && (this.resizeViewport.emit({
|
|
649
595
|
dimension: u,
|
|
650
|
-
size:
|
|
596
|
+
size: g.size,
|
|
651
597
|
rowHeader: this.rowHeader
|
|
652
|
-
}), !
|
|
598
|
+
}), !g.noScroll && ((d = this.localScrollService) === null || d === void 0 || d.scroll((h = g.scroll) !== null && h !== void 0 ? h : 0, u, !0), this.setScrollVisibility(u, g.size, g.contentSize)));
|
|
653
599
|
}
|
|
654
600
|
}, [this.footer, this.header]);
|
|
655
601
|
}
|
|
@@ -698,8 +644,8 @@ const ke = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
698
644
|
}
|
|
699
645
|
render() {
|
|
700
646
|
var e, t;
|
|
701
|
-
const r = (t = (e = this.verticalScroll) === null || e === void 0 ? void 0 : e.clientHeight) !== null && t !== void 0 ? t : 0, i = this.contentHeight < r ? Math.max(this.contentHeight, 0) :
|
|
702
|
-
return
|
|
647
|
+
const r = (t = (e = this.verticalScroll) === null || e === void 0 ? void 0 : e.clientHeight) !== null && t !== void 0 ? t : 0, i = this.contentHeight < r ? Math.max(this.contentHeight, 0) : k(this.contentHeight, r), o = k(this.contentWidth, 0);
|
|
648
|
+
return a(H, { key: "3dd9d29cf26743d7aa4995f51180d56008526e54", onWheel: this.horizontalMouseWheel, onScroll: (l) => this.applyScroll("rgCol", l) }, a("div", { key: "af75428e845044c33eba2fecd1ec04a9177b9b5c", class: "inner-content-table", style: { width: `${o}px` } }, a("div", { key: "a0149f597588371e1fafe69efc3bd4411379a017", class: "header-wrapper", ref: (l) => this.header = l }, a("slot", { key: "e5d2570bf93897cd97ef702141c83bb8c0e13ee2", name: se })), a("div", { key: "d1388ff0d721dd8ce925b934bb2128fddc1ac17b", class: "vertical-inner", ref: (l) => this.verticalScroll = l, onWheel: this.verticalMouseWheel, onScroll: (l) => this.applyScroll("rgRow", l) }, a("div", { key: "a306ff56f62279402e2a881a081e3224341d5bdf", class: "content-wrapper", style: { height: `${i}px` } }, a("slot", { key: "898bda8e9429da06c9ff2bd41626ac27f3cde3cc", name: ne }))), a("div", { key: "5e9eba1edd5fca07a964971054a7900e4dd84099", class: "footer-wrapper", ref: (l) => this.footer = l }, a("slot", { key: "f233ad1c23b3f692c45e1db235cfef4704a80726", name: ae }))));
|
|
703
649
|
}
|
|
704
650
|
/**
|
|
705
651
|
* Extra layer for scroll event monitoring, where MouseWheel event is not passing
|
|
@@ -740,11 +686,11 @@ const ke = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
740
686
|
* @param e
|
|
741
687
|
*/
|
|
742
688
|
onVerticalMouseWheel(e, t, r) {
|
|
743
|
-
var i, o, l, s,
|
|
744
|
-
const
|
|
745
|
-
!
|
|
746
|
-
const b =
|
|
747
|
-
(
|
|
689
|
+
var i, o, l, s, d, h, n, c;
|
|
690
|
+
const p = (o = (i = this.verticalScroll) === null || i === void 0 ? void 0 : i.scrollTop) !== null && o !== void 0 ? o : 0, f = (s = (l = this.verticalScroll) === null || l === void 0 ? void 0 : l.clientHeight) !== null && s !== void 0 ? s : 0, u = (h = (d = this.verticalScroll) === null || d === void 0 ? void 0 : d.scrollHeight) !== null && h !== void 0 ? h : 0, g = p + f >= u && r.deltaY > 0, w = p === 0 && r.deltaY < 0;
|
|
691
|
+
!g && !w && ((n = r.preventDefault) === null || n === void 0 || n.call(r));
|
|
692
|
+
const b = p + r[t];
|
|
693
|
+
(c = this.localScrollService) === null || c === void 0 || c.scroll(b, e, void 0, r[t]), this.localScrollTimer.latestScrollUpdate(e);
|
|
748
694
|
}
|
|
749
695
|
/**
|
|
750
696
|
* On horizontal mousewheel event
|
|
@@ -756,26 +702,26 @@ const ke = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
756
702
|
var i, o, l, s;
|
|
757
703
|
if (!r.deltaX)
|
|
758
704
|
return;
|
|
759
|
-
const { scrollLeft:
|
|
705
|
+
const { scrollLeft: d, scrollWidth: h, clientWidth: n } = this.horizontalScroll, c = d + n >= h && r.deltaX > 0, p = d === 0 && r.deltaX < 0;
|
|
760
706
|
if (this.noHorizontalScrollTransfer) {
|
|
761
|
-
if (!
|
|
762
|
-
const u =
|
|
707
|
+
if (!c && !p) {
|
|
708
|
+
const u = d + r[t];
|
|
763
709
|
(i = r.preventDefault) === null || i === void 0 || i.call(r), this.horizontalScroll.scrollLeft = u, (o = this.localScrollService) === null || o === void 0 || o.scroll(this.horizontalScroll.scrollLeft, e, void 0, r[t]), this.localScrollTimer.latestScrollUpdate(e);
|
|
764
710
|
}
|
|
765
711
|
return;
|
|
766
712
|
}
|
|
767
|
-
!
|
|
768
|
-
const
|
|
769
|
-
(s = this.localScrollService) === null || s === void 0 || s.scroll(
|
|
713
|
+
!c && !p && ((l = r.preventDefault) === null || l === void 0 || l.call(r));
|
|
714
|
+
const f = d + r[t];
|
|
715
|
+
(s = this.localScrollService) === null || s === void 0 || s.scroll(f, e, void 0, r[t]), this.localScrollTimer.latestScrollUpdate(e);
|
|
770
716
|
}
|
|
771
717
|
get horizontalScroll() {
|
|
772
|
-
return
|
|
718
|
+
return R(this);
|
|
773
719
|
}
|
|
774
720
|
};
|
|
775
|
-
|
|
776
|
-
const
|
|
721
|
+
Le.style = ze();
|
|
722
|
+
const De = class {
|
|
777
723
|
constructor(e) {
|
|
778
|
-
|
|
724
|
+
x(this, e), this.html = v(this, "html", 7), this.redraw = null, this.vnodes = [];
|
|
779
725
|
}
|
|
780
726
|
componentDidRender() {
|
|
781
727
|
this.html.emit({
|
|
@@ -785,15 +731,15 @@ const Pe = class {
|
|
|
785
731
|
}
|
|
786
732
|
render() {
|
|
787
733
|
var e, t;
|
|
788
|
-
return this.vnodes = (t = (e = this.redraw) === null || e === void 0 ? void 0 : e.call(this)) !== null && t !== void 0 ? t : null,
|
|
734
|
+
return this.vnodes = (t = (e = this.redraw) === null || e === void 0 ? void 0 : e.call(this)) !== null && t !== void 0 ? t : null, a(H, { key: "11b76ca8a86ebf279add88bbd86ef9eb5149605a", style: { visibility: "hidden", position: "absolute" } }, this.vnodes);
|
|
789
735
|
}
|
|
790
736
|
get el() {
|
|
791
|
-
return
|
|
737
|
+
return R(this);
|
|
792
738
|
}
|
|
793
739
|
};
|
|
794
740
|
export {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
741
|
+
we as revogr_data,
|
|
742
|
+
xe as revogr_header,
|
|
743
|
+
Le as revogr_viewport_scroll,
|
|
744
|
+
De as vnode_html
|
|
799
745
|
};
|