@endge/ui-vue 0.23.13 → 0.25.2
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-Dnnbd0xG-CzKoj46-.js → edit.utils-3ZbhQCv_-CBOvR_lX.js} +1 -1
- package/dist/{main-DL0N54th.js → main-DaAnRozo.js} +7009 -6022
- package/dist/revo-grid.entry-raK8rO6x.js +1793 -0
- package/dist/{revogr-attribution_7.entry-9jgtacZw.js → revogr-attribution_7.entry-BT5lTuRW.js} +147 -127
- package/dist/{revogr-clipboard_3.entry-xeNDm0Ry.js → revogr-clipboard_3.entry-C-dE9MUm.js} +6 -6
- package/dist/{revogr-data_4.entry-Ci95TT-j.js → revogr-data_4.entry-C9qNfzLe.js} +232 -178
- package/dist/revogr-filter-panel.entry-Belk-lw4.js +335 -0
- package/dist/throttle-3rhqdcLy-E1CC2r0m.js +183 -0
- package/dist/ui/filter/EndgeFilterField.vue.d.ts +3 -2
- package/dist/ui/filter/EndgeFilterRenderer.vue.d.ts +2 -1
- package/dist/ui/layout/EndgeShell.vue.d.ts +13 -15
- package/dist/ui/overlay/EndgeContextMenuRoot.vue.d.ts +2 -3
- package/dist/ui/overlay/context-menu-manager.d.ts +1 -0
- package/dist/ui/overlay/tooltip/EndgeTooltipRoot.vue.d.ts +2 -3
- package/dist/ui/render/entities/EndgePage.vue.d.ts +1098 -1219
- package/dist/ui/render/sfc/NativeMultiSelect.vue.d.ts +2 -6
- package/dist/ui/render/sfc/SFC_Renderer.vue.d.ts +2 -1
- package/dist/ui/render/sfc/SFC_RuntimeRenderer.vue.d.ts +2 -1
- package/dist/ui/table/NativeTablePagination.vue.d.ts +3 -2
- package/dist/vue.css +1 -1
- package/dist/vue.js +32 -32
- package/package.json +15 -14
- package/dist/revo-grid.entry-C90sIVoA.js +0 -1602
- package/dist/revogr-filter-panel.entry-DKMCmYqv.js +0 -314
- package/dist/store/domain.d.ts +0 -91
- package/dist/throttle-CaUDyxyU-DHZPo3J7.js +0 -180
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as
|
|
3
|
-
import { H as
|
|
1
|
+
import { a8 as U, a9 as V, aa as F, h as d, ab as N, ac as k, u as P, ad as X, ae as K, af as Y, ag as $, ah as Z, ai as H, aj as q, ak as J, al as Q, am as ee, an as te, r as L, c as p, O as re, ao as ie, H as E, f as _, q as O, ap as T, aq as oe, ar as x, as as le, at as M, a1 as se, au as ne, av as G, aw as j } from "./main-DaAnRozo.js";
|
|
2
|
+
import { L as ae, a as de, g as I, t as ce } from "./throttle-3rhqdcLy-E1CC2r0m.js";
|
|
3
|
+
import { H as he, C as ge, F as ve } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
|
|
4
4
|
/*!
|
|
5
5
|
* Built by Revolist OU ❤️
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const ue = ({ 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 d("span", Object.assign({}, r), d("i", Object.assign({}, i)), e != null && e.sortIndex ? d("sup", Object.assign({}, o), e.sortIndex) : null);
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var pe = 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 ce = 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 A = 10, y = (e, t) => {
|
|
22
|
+
var { rowClass: r, index: i, size: o, start: l, depth: s, groupingLevel: a } = e, h = pe(e, ["rowClass", "index", "size", "start", "depth", "groupingLevel"]);
|
|
23
|
+
const c = Object.assign(Object.assign(Object.assign({}, h), { [k]: i }), typeof a == "number" ? { "data-level": a } : {});
|
|
24
|
+
return d("div", Object.assign({}, c, { class: `rgRow ${r || ""}`, style: {
|
|
25
25
|
height: `${o}px`,
|
|
26
26
|
transform: `translateY(${l}px)`,
|
|
27
|
-
paddingLeft: s ? `${
|
|
27
|
+
paddingLeft: s ? `${A * s}px` : void 0
|
|
28
28
|
} }), t);
|
|
29
29
|
};
|
|
30
|
-
function
|
|
30
|
+
function D(e, t, r) {
|
|
31
31
|
var i;
|
|
32
|
-
const o = new CustomEvent(
|
|
32
|
+
const o = new CustomEvent(te, {
|
|
33
33
|
detail: {
|
|
34
34
|
model: t,
|
|
35
35
|
virtualIndex: r
|
|
@@ -39,61 +39,110 @@ function $(e, t, r) {
|
|
|
39
39
|
});
|
|
40
40
|
(i = e.target) === null || i === void 0 || i.dispatchEvent(o);
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
const {
|
|
42
|
+
function fe(e, { name: t, expanded: r, depth: i }) {
|
|
43
|
+
const { additionalData: o, columnItems: l, groupingCellRenderer: s, hasExpand: a, itemIndex: h, model: c, providers: n, size: g, start: m, end: u } = e;
|
|
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 = {
|
|
44
93
|
rowClass: "groupingRow",
|
|
45
|
-
depth:
|
|
46
|
-
expanded:
|
|
94
|
+
depth: h,
|
|
95
|
+
expanded: a
|
|
47
96
|
};
|
|
48
|
-
return
|
|
97
|
+
return l ? d(y, Object.assign({ index: e.index, size: e.size, start: e.start }, c), fe(e, { name: s, expanded: a, depth: h })) : o ? d(y, Object.assign({}, e, c), d("div", { onClick: (n) => D(n, t, r) }, o(d, Object.assign(Object.assign({}, e), {
|
|
49
98
|
colType: e.providers.colType,
|
|
50
|
-
name:
|
|
51
|
-
expanded:
|
|
52
|
-
depth:
|
|
53
|
-
})))) :
|
|
54
|
-
|
|
55
|
-
|
|
99
|
+
name: s,
|
|
100
|
+
expanded: a,
|
|
101
|
+
depth: h
|
|
102
|
+
})))) : d(y, Object.assign({}, e, c), i && [
|
|
103
|
+
d("button", { type: "button", class: { [N]: !0 }, onClick: (n) => D(n, t, r) }, we(a)),
|
|
104
|
+
String(s)
|
|
56
105
|
]);
|
|
57
|
-
},
|
|
58
|
-
function
|
|
106
|
+
}, we = (e = !1) => d("svg", { "aria-hidden": "true", style: { transform: `rotate(${e ? 0 : -90}deg)` }, focusable: "false", viewBox: "0 0 448 512" }, d("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" }));
|
|
107
|
+
function Ce(e) {
|
|
59
108
|
var t;
|
|
60
109
|
const r = [], i = (t = e.schemaModel.column) === null || t === void 0 ? void 0 : t.cellTemplate;
|
|
61
110
|
if (i)
|
|
62
|
-
r.push(i(
|
|
111
|
+
r.push(i(d, e.schemaModel, e.additionalData));
|
|
63
112
|
else {
|
|
64
113
|
if (!e.schemaModel.column)
|
|
65
|
-
return !(
|
|
66
|
-
e.schemaModel.column.rowDrag &&
|
|
114
|
+
return !(H === null || H === void 0) && H.isDev && console.error("Investigate column problem.", e.schemaModel), "";
|
|
115
|
+
e.schemaModel.column.rowDrag && q(e.schemaModel.column.rowDrag, e.schemaModel) && r.push(d("span", { class: Q, onMouseDown: (o) => {
|
|
67
116
|
var l;
|
|
68
117
|
return (l = e.dragStartCell) === null || l === void 0 ? void 0 : l.emit({
|
|
69
118
|
originalEvent: o,
|
|
70
119
|
model: e.schemaModel
|
|
71
120
|
});
|
|
72
|
-
} },
|
|
121
|
+
} }, d("span", { class: J }))), r.push(`${ee(e.schemaModel.model, e.schemaModel.column)}`);
|
|
73
122
|
}
|
|
74
123
|
return r;
|
|
75
124
|
}
|
|
76
|
-
const
|
|
77
|
-
const r =
|
|
78
|
-
return
|
|
125
|
+
const be = ({ renderProps: e, cellProps: t }) => {
|
|
126
|
+
const r = Ce.bind(null, e);
|
|
127
|
+
return d("div", Object.assign({}, t, { redraw: r }), r());
|
|
79
128
|
};
|
|
80
129
|
/*!
|
|
81
130
|
* Built by Revolist OU ❤️
|
|
82
131
|
*/
|
|
83
|
-
class
|
|
132
|
+
class xe {
|
|
84
133
|
constructor() {
|
|
85
134
|
this.currentRange = null;
|
|
86
135
|
}
|
|
87
136
|
selectionChange(t, r) {
|
|
88
137
|
if (this.currentRange && r.forEach((i, o) => {
|
|
89
138
|
var l;
|
|
90
|
-
t && o >= t.y && o <= t.y1 || i && i.$elm$ instanceof HTMLElement && i.$elm$.classList.contains(
|
|
139
|
+
t && o >= t.y && o <= t.y1 || i && i.$elm$ instanceof HTMLElement && i.$elm$.classList.contains(x) && (i.$elm$.classList.remove(x), !((l = i.$attrs$) === null || l === void 0) && l.class.includes(x) && (i.$attrs$.class = i.$attrs$.class.replace(x, "")));
|
|
91
140
|
}), t)
|
|
92
141
|
for (let i = t.y; i <= t.y1; i++) {
|
|
93
142
|
const o = r.get(i);
|
|
94
|
-
if (o && o.$elm$ instanceof HTMLElement && !o.$elm$.classList.contains(
|
|
143
|
+
if (o && o.$elm$ instanceof HTMLElement && !o.$elm$.classList.contains(x)) {
|
|
95
144
|
const l = o.$attrs$ = o.$attrs$ || {};
|
|
96
|
-
l.class = (l.class || "") + " " +
|
|
145
|
+
l.class = (l.class || "") + " " + x, o.$elm$.classList.add(x);
|
|
97
146
|
}
|
|
98
147
|
}
|
|
99
148
|
this.currentRange = t;
|
|
@@ -102,7 +151,7 @@ class pe {
|
|
|
102
151
|
return this.currentRange && t >= this.currentRange.y && t <= this.currentRange.y1;
|
|
103
152
|
}
|
|
104
153
|
}
|
|
105
|
-
function
|
|
154
|
+
function Se(e, t) {
|
|
106
155
|
return new Promise((r) => {
|
|
107
156
|
const i = document.createElement("vnode-html");
|
|
108
157
|
e.appendChild(i), i.redraw = t, i.addEventListener("html", (o) => {
|
|
@@ -110,9 +159,9 @@ function fe(e, t) {
|
|
|
110
159
|
});
|
|
111
160
|
});
|
|
112
161
|
}
|
|
113
|
-
const
|
|
162
|
+
const Re = () => `.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>.row-resize-handle{position:absolute;z-index:2;right:0;bottom:-3px;left:0;height:7px;cursor:row-resize;touch-action:none;user-select:none}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}`, ze = class {
|
|
114
163
|
constructor(e) {
|
|
115
|
-
|
|
164
|
+
L(this, e), this.beforerowrender = p(this, "beforerowrender", 7), this.afterrender = p(this, "afterrender", 7), this.beforeCellRender = p(this, "beforecellrender", 7), this.beforeDataRender = p(this, "beforedatarender", 7), this.dragStartCell = p(this, "dragstartcell", 7), this.jobsBeforeRender = [], this.renderedRows = /* @__PURE__ */ new Map();
|
|
116
165
|
}
|
|
117
166
|
/**
|
|
118
167
|
* Pointed cell update.
|
|
@@ -121,7 +170,7 @@ const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
121
170
|
var t, r, i;
|
|
122
171
|
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];
|
|
123
172
|
if (!((i = o == null ? void 0 : o.$attrs$) === null || i === void 0) && i.redraw) {
|
|
124
|
-
const l = await
|
|
173
|
+
const l = await Se(this.element, o.$attrs$.redraw);
|
|
125
174
|
o.$elm$.innerHTML = l.html, o.$key$ = Math.random();
|
|
126
175
|
}
|
|
127
176
|
}
|
|
@@ -133,7 +182,7 @@ const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
133
182
|
}
|
|
134
183
|
onStoreChange() {
|
|
135
184
|
var e, t;
|
|
136
|
-
(e = this.columnService) === null || e === void 0 || e.destroy(), this.columnService = new
|
|
185
|
+
(e = this.columnService) === null || e === void 0 || e.destroy(), this.columnService = new re(this.dataStore, this.colData), this.providers = {
|
|
137
186
|
type: this.type,
|
|
138
187
|
colType: this.colType,
|
|
139
188
|
readonly: this.readonly,
|
|
@@ -145,7 +194,7 @@ const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
145
194
|
}, (t = this.rangeUnsubscribe) === null || t === void 0 || t.call(this), this.rangeUnsubscribe = this.rowSelectionStore.onChange("range", (r) => this.rowHighlightPlugin.selectionChange(r, this.renderedRows));
|
|
146
195
|
}
|
|
147
196
|
connectedCallback() {
|
|
148
|
-
this.rowHighlightPlugin = new
|
|
197
|
+
this.rowHighlightPlugin = new xe(), this.onStoreChange();
|
|
149
198
|
}
|
|
150
199
|
disconnectedCallback() {
|
|
151
200
|
var e, t;
|
|
@@ -169,57 +218,62 @@ const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
169
218
|
const r = this.viewportCol.get("items");
|
|
170
219
|
if (!r.length)
|
|
171
220
|
return;
|
|
172
|
-
const i = [], o = this.dataStore.get("groupingDepth"), l = this.dataStore.get("groupingCustomRenderer"), s = this.columnService.hasGrouping ? o : 0,
|
|
221
|
+
const i = [], o = this.dataStore.get("groupingDepth"), l = this.dataStore.get("groupingCustomRenderer"), s = this.dataStore.get("groupingCellRenderer"), a = this.columnService.hasGrouping ? o : 0, h = this.viewportRow.get("renderOffset") || 0, c = this.viewportCol.get("renderOffset") || 0;
|
|
173
222
|
for (let n of t) {
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
start: n.start -
|
|
223
|
+
const g = P(this.dataStore, n.itemIndex);
|
|
224
|
+
if (ie(g)) {
|
|
225
|
+
const w = Object.assign(Object.assign({}, n), {
|
|
226
|
+
start: n.start - h,
|
|
178
227
|
index: n.itemIndex,
|
|
179
|
-
model:
|
|
228
|
+
model: g,
|
|
180
229
|
groupingCustomRenderer: l,
|
|
230
|
+
groupingCellRenderer: s,
|
|
231
|
+
additionalData: this.additionalData,
|
|
181
232
|
// Only show expand button if grouping is enabled and not in row headers
|
|
182
233
|
hasExpand: this.columnService.hasGrouping && this.colType !== "rowHeaders",
|
|
183
234
|
columnItems: r,
|
|
184
235
|
providers: this.providers
|
|
185
|
-
});
|
|
186
|
-
i.push(
|
|
236
|
+
}), b = d(me, Object.assign({}, w));
|
|
237
|
+
this.triggerBeforeRowRender(b, n, g), i.push(b), this.renderedRows.set(n.itemIndex, b);
|
|
187
238
|
continue;
|
|
188
239
|
}
|
|
189
|
-
const
|
|
190
|
-
for (let
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
240
|
+
const m = [];
|
|
241
|
+
for (let w of r) {
|
|
242
|
+
const b = Object.assign(Object.assign({}, this.columnService.rowDataModel(n.itemIndex, w.itemIndex)), { providers: this.providers }), z = this.triggerBeforeCellRender(b, n, w);
|
|
243
|
+
if (z.defaultPrevented)
|
|
193
244
|
continue;
|
|
194
|
-
const { detail: { column:
|
|
195
|
-
[
|
|
196
|
-
[
|
|
245
|
+
const { detail: { column: f, row: C, model: S } } = z, R = {
|
|
246
|
+
[$]: f.itemIndex,
|
|
247
|
+
[k]: C.itemIndex,
|
|
197
248
|
style: {
|
|
198
|
-
width: `${
|
|
199
|
-
transform: `translateX(${
|
|
200
|
-
height:
|
|
249
|
+
width: `${f.size}px`,
|
|
250
|
+
transform: `translateX(${f.start - c}px)`,
|
|
251
|
+
height: C.size ? `${C.size}px` : void 0
|
|
201
252
|
}
|
|
202
253
|
};
|
|
203
|
-
|
|
204
|
-
const
|
|
205
|
-
schemaModel:
|
|
254
|
+
a && !f.itemIndex && R.style && (R.style.paddingLeft = `${A * a}px`);
|
|
255
|
+
const W = this.columnService.mergeProperties(C.itemIndex, f.itemIndex, R, S), B = d(be, { renderProps: {
|
|
256
|
+
schemaModel: S,
|
|
206
257
|
additionalData: this.additionalData,
|
|
207
258
|
dragStartCell: this.dragStartCell
|
|
208
|
-
}, cellProps:
|
|
209
|
-
|
|
259
|
+
}, cellProps: W });
|
|
260
|
+
m.push(B);
|
|
210
261
|
}
|
|
211
|
-
let
|
|
212
|
-
this.rowHighlightPlugin.isRowFocused(n.itemIndex) && (
|
|
213
|
-
const
|
|
214
|
-
this.
|
|
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);
|
|
262
|
+
let u = this.rowClass ? this.columnService.getRowClass(n.itemIndex, this.rowClass) : "";
|
|
263
|
+
this.rowHighlightPlugin.isRowFocused(n.itemIndex) && (u += ` ${x}`);
|
|
264
|
+
const v = d(y, { index: n.itemIndex, rowClass: u, size: n.size, start: n.start - h, groupingLevel: a || void 0 }, m);
|
|
265
|
+
this.triggerBeforeRowRender(v, n, g), i.push(v), this.renderedRows.set(n.itemIndex, v);
|
|
221
266
|
}
|
|
222
|
-
return
|
|
267
|
+
return d(E, null, d("slot", null), i);
|
|
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
|
+
});
|
|
223
277
|
}
|
|
224
278
|
triggerBeforeCellRender(e, t, r) {
|
|
225
279
|
const i = {
|
|
@@ -232,7 +286,7 @@ const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
232
286
|
return this.beforeCellRender.emit(i);
|
|
233
287
|
}
|
|
234
288
|
get element() {
|
|
235
|
-
return
|
|
289
|
+
return _(this);
|
|
236
290
|
}
|
|
237
291
|
static get watchers() {
|
|
238
292
|
return {
|
|
@@ -245,55 +299,55 @@ const me = () => `.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before
|
|
|
245
299
|
};
|
|
246
300
|
}
|
|
247
301
|
};
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
var t, r, i, o, l, s,
|
|
251
|
-
const
|
|
252
|
-
[
|
|
253
|
-
[
|
|
302
|
+
ze.style = Re();
|
|
303
|
+
const ye = (e) => {
|
|
304
|
+
var t, r, i, o, l, s, a, h, c, n;
|
|
305
|
+
const g = !!(!((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), m = {
|
|
306
|
+
[j]: !0,
|
|
307
|
+
[le]: !!(!((o = e.data) === null || o === void 0) && o.sortable)
|
|
254
308
|
};
|
|
255
|
-
!((l = e.data) === null || l === void 0) && l.order && (
|
|
309
|
+
!((l = e.data) === null || l === void 0) && l.order && (m[e.data.order] = !0);
|
|
256
310
|
const u = {
|
|
257
|
-
key: String((
|
|
258
|
-
[
|
|
311
|
+
key: String((a = (s = e.data) === null || s === void 0 ? void 0 : s.prop) !== null && a !== void 0 ? a : e.column.itemIndex),
|
|
312
|
+
[$]: e.column.itemIndex,
|
|
259
313
|
canResize: e.canResize,
|
|
260
|
-
minWidth: ((h = e.data) === null || h === void 0 ? void 0 : h.minSize) ||
|
|
261
|
-
maxWidth: (
|
|
314
|
+
minWidth: ((h = e.data) === null || h === void 0 ? void 0 : h.minSize) || M,
|
|
315
|
+
maxWidth: (c = e.data) === null || c === void 0 ? void 0 : c.maxSize,
|
|
262
316
|
active: e.active || ["r"],
|
|
263
|
-
class:
|
|
317
|
+
class: m,
|
|
264
318
|
style: {
|
|
265
319
|
width: `${e.column.size}px`,
|
|
266
320
|
transform: `translateX(${e.column.start - (e.renderOffset || 0)}px)`
|
|
267
321
|
},
|
|
268
322
|
onResize: e.onResize,
|
|
269
|
-
onDblClick(
|
|
323
|
+
onDblClick(v) {
|
|
270
324
|
var w;
|
|
271
325
|
(w = e.onDblClick) === null || w === void 0 || w.call(e, {
|
|
272
326
|
column: e.data,
|
|
273
327
|
index: e.column.itemIndex,
|
|
274
|
-
originalEvent:
|
|
328
|
+
originalEvent: v,
|
|
275
329
|
providers: e.data.providers
|
|
276
330
|
});
|
|
277
331
|
},
|
|
278
|
-
onClick(
|
|
279
|
-
|
|
332
|
+
onClick(v) {
|
|
333
|
+
v.defaultPrevented || !e.onClick || e.onClick({
|
|
280
334
|
column: e.data,
|
|
281
335
|
index: e.column.itemIndex,
|
|
282
|
-
originalEvent:
|
|
336
|
+
originalEvent: v,
|
|
283
337
|
providers: e.data.providers
|
|
284
338
|
});
|
|
285
339
|
}
|
|
286
340
|
};
|
|
287
|
-
return e.range && e.column.itemIndex >= e.range.x && e.column.itemIndex <= e.range.x1 && typeof u.class == "object" && (u.class[
|
|
288
|
-
},
|
|
341
|
+
return e.range && e.column.itemIndex >= e.range.x && e.column.itemIndex <= e.range.x1 && typeof u.class == "object" && (u.class[se] = !0), d(G, { data: e.data, props: u, additionalData: e.additionalData }, g ? d(ue, { column: e.data }) : null, e.canFilter && ((n = e.data) === null || n === void 0 ? void 0 : n.filter) !== !1 ? d(ne, { column: e.data }) : "");
|
|
342
|
+
}, Le = (e) => {
|
|
289
343
|
const t = {
|
|
290
344
|
key: `${e.group.name}-${e.group.indexes.join("-")}`,
|
|
291
345
|
canResize: e.canResize,
|
|
292
|
-
minWidth: e.group.indexes.length *
|
|
346
|
+
minWidth: e.group.indexes.length * M,
|
|
293
347
|
maxWidth: 0,
|
|
294
348
|
active: e.active || ["r"],
|
|
295
349
|
class: {
|
|
296
|
-
[
|
|
350
|
+
[j]: !0
|
|
297
351
|
},
|
|
298
352
|
style: {
|
|
299
353
|
transform: `translateX(${e.start - (e.renderOffset || 0)}px)`,
|
|
@@ -301,10 +355,10 @@ const Ce = (e) => {
|
|
|
301
355
|
},
|
|
302
356
|
onResize: e.onResize
|
|
303
357
|
};
|
|
304
|
-
return
|
|
305
|
-
},
|
|
358
|
+
return d(G, { data: Object.assign(Object.assign({}, e.group), { prop: "", providers: e.providers, index: e.start }), props: t, additionalData: e.additionalData });
|
|
359
|
+
}, _e = () => '@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;text-align:var(--rg-theme-header-text-align, center)}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:var(--rg-theme-header-resize-hover)}revogr-header .rgHeaderCell .header-content{position:absolute;z-index:0;inset:0;box-sizing:border-box;padding:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell>span:first-of-type{position:relative;z-index:1;margin-left:auto}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:var(--rg-theme-header-resize-hover)}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}', He = class {
|
|
306
360
|
constructor(e) {
|
|
307
|
-
|
|
361
|
+
L(this, e), this.initialHeaderClick = p(this, "beforeheaderclick", 7), this.headerresize = p(this, "headerresize", 7), this.beforeResize = p(this, "beforeheaderresize", 7), this.headerdblClick = p(this, "headerdblclick", 7), this.beforeHeaderRender = p(this, "beforeheaderrender", 7), this.beforeGroupHeaderRender = p(this, "beforegroupheaderrender", 7), this.afterHeaderRender = p(this, "afterheaderrender", 7), this.groupingDepth = 0, this.additionalData = {};
|
|
308
362
|
}
|
|
309
363
|
onResize({ width: e }, t) {
|
|
310
364
|
const r = this.colData[t];
|
|
@@ -315,7 +369,7 @@ const Ce = (e) => {
|
|
|
315
369
|
onResizeGroup(e, t, r) {
|
|
316
370
|
const i = {}, o = e / (r - t + 1);
|
|
317
371
|
for (let l = t; l <= r; l++) {
|
|
318
|
-
const s =
|
|
372
|
+
const s = O(this.dimensionCol.state, l);
|
|
319
373
|
i[l] = s.end - s.start + o;
|
|
320
374
|
}
|
|
321
375
|
this.headerresize.emit(i);
|
|
@@ -327,30 +381,30 @@ const Ce = (e) => {
|
|
|
327
381
|
var e;
|
|
328
382
|
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();
|
|
329
383
|
return [
|
|
330
|
-
|
|
331
|
-
|
|
384
|
+
d("div", { key: "3cc466db6bc4df0cd61c47a22c3a0473318e5dd8", class: "group-rgRow" }, o),
|
|
385
|
+
d("div", { key: "9742a3fa4d4b75073aef5544806f42386ebffdea", class: `${T} ${oe}` }, i)
|
|
332
386
|
];
|
|
333
387
|
}
|
|
334
388
|
renderHeaderColumns(e, t) {
|
|
335
389
|
const r = [], i = this.viewportCol.get("renderOffset") || 0;
|
|
336
390
|
for (let s of e) {
|
|
337
|
-
const
|
|
391
|
+
const a = this.colData[s.itemIndex], h = {
|
|
338
392
|
range: t,
|
|
339
393
|
column: s,
|
|
340
|
-
data: Object.assign(Object.assign({},
|
|
394
|
+
data: Object.assign(Object.assign({}, a), { index: s.itemIndex, providers: this.providers }),
|
|
341
395
|
canFilter: !!this.columnFilter,
|
|
342
396
|
canResize: this.canResize,
|
|
343
397
|
renderOffset: i,
|
|
344
398
|
active: this.resizeHandler,
|
|
345
399
|
additionalData: this.additionalData,
|
|
346
|
-
onResize: (
|
|
347
|
-
onDblClick: (
|
|
348
|
-
onClick: (
|
|
349
|
-
},
|
|
350
|
-
|
|
400
|
+
onResize: (n) => this.onResize(n, s.itemIndex),
|
|
401
|
+
onDblClick: (n) => this.headerdblClick.emit(n),
|
|
402
|
+
onClick: (n) => this.initialHeaderClick.emit(n)
|
|
403
|
+
}, c = this.beforeHeaderRender.emit(h);
|
|
404
|
+
c.defaultPrevented || r.push(c.detail);
|
|
351
405
|
}
|
|
352
406
|
const o = this.getDuplicateHeaderProps(r);
|
|
353
|
-
return { cells: r.map((s) =>
|
|
407
|
+
return { cells: r.map((s) => d(ye, Object.assign({ key: this.getHeaderCellKey(s.data, this.type, o) }, s))) };
|
|
354
408
|
}
|
|
355
409
|
renderGroupingColumns() {
|
|
356
410
|
const e = this.getVisibleGroupRange();
|
|
@@ -359,10 +413,10 @@ const Ce = (e) => {
|
|
|
359
413
|
renderGroupRow(e, t) {
|
|
360
414
|
return [
|
|
361
415
|
...(this.groups[e] || []).map((i) => this.renderGroupColumn(i, e, t)).filter((i) => !!i),
|
|
362
|
-
|
|
416
|
+
d("div", {
|
|
363
417
|
key: `group-row-${e}`,
|
|
364
418
|
class: {
|
|
365
|
-
[
|
|
419
|
+
[T]: !0,
|
|
366
420
|
group: !0
|
|
367
421
|
}
|
|
368
422
|
})
|
|
@@ -379,22 +433,22 @@ const Ce = (e) => {
|
|
|
379
433
|
active: this.resizeHandler,
|
|
380
434
|
canResize: this.canResize,
|
|
381
435
|
additionalData: this.additionalData,
|
|
382
|
-
onResize: (
|
|
383
|
-
var
|
|
384
|
-
return i ? this.onResizeGroup((
|
|
436
|
+
onResize: (c) => {
|
|
437
|
+
var n;
|
|
438
|
+
return i ? this.onResizeGroup((n = c.changedX) !== null && n !== void 0 ? n : 0, i.startIndex, i.endIndex) : void 0;
|
|
385
439
|
}
|
|
386
440
|
}, s = this.beforeGroupHeaderRender.emit(l);
|
|
387
441
|
if (s.defaultPrevented)
|
|
388
442
|
return;
|
|
389
|
-
const
|
|
390
|
-
if (!
|
|
443
|
+
const a = this.getGroupIndexRange(s.detail.group);
|
|
444
|
+
if (!a || !r || !Oe(a.startIndex, a.endIndex, r))
|
|
391
445
|
return;
|
|
392
|
-
s.detail.onResize === l.onResize && (s.detail.onResize = (
|
|
393
|
-
var
|
|
394
|
-
return this.onResizeGroup((
|
|
446
|
+
s.detail.onResize === l.onResize && (s.detail.onResize = (c) => {
|
|
447
|
+
var n;
|
|
448
|
+
return this.onResizeGroup((n = c.changedX) !== null && n !== void 0 ? n : 0, a.startIndex, a.endIndex);
|
|
395
449
|
});
|
|
396
|
-
const h = this.getGroupBounds(
|
|
397
|
-
return s.detail.start === l.start && (s.detail.start = h.start), s.detail.end === l.end && (s.detail.end = h.end),
|
|
450
|
+
const h = this.getGroupBounds(a);
|
|
451
|
+
return s.detail.start === l.start && (s.detail.start = h.start), s.detail.end === l.end && (s.detail.end = h.end), d(Le, Object.assign({ key: this.getGroupHeaderCellKey(s.detail.group, t) }, s.detail));
|
|
398
452
|
}
|
|
399
453
|
getGroupIndexRange(e) {
|
|
400
454
|
var t;
|
|
@@ -409,8 +463,8 @@ const Ce = (e) => {
|
|
|
409
463
|
}
|
|
410
464
|
getGroupBounds(e) {
|
|
411
465
|
return e ? {
|
|
412
|
-
start:
|
|
413
|
-
end:
|
|
466
|
+
start: O(this.dimensionCol.state, e.startIndex).start,
|
|
467
|
+
end: O(this.dimensionCol.state, e.endIndex).end
|
|
414
468
|
} : { start: 0, end: 0 };
|
|
415
469
|
}
|
|
416
470
|
getVisibleGroupRange() {
|
|
@@ -453,25 +507,25 @@ const Ce = (e) => {
|
|
|
453
507
|
};
|
|
454
508
|
}
|
|
455
509
|
get element() {
|
|
456
|
-
return
|
|
510
|
+
return _(this);
|
|
457
511
|
}
|
|
458
512
|
};
|
|
459
|
-
function
|
|
513
|
+
function Oe(e, t, r) {
|
|
460
514
|
return e <= r.end && t >= r.start;
|
|
461
515
|
}
|
|
462
|
-
|
|
463
|
-
class
|
|
516
|
+
He.style = _e();
|
|
517
|
+
class De {
|
|
464
518
|
constructor(t, r, i) {
|
|
465
519
|
this.resize = r, this.resizeObserver = null, this.previousSize = {
|
|
466
520
|
width: 0,
|
|
467
521
|
height: 0
|
|
468
|
-
}, this.apply =
|
|
522
|
+
}, this.apply = ce((l) => {
|
|
469
523
|
var s;
|
|
470
|
-
const
|
|
524
|
+
const a = {
|
|
471
525
|
width: l.width,
|
|
472
526
|
height: l.height
|
|
473
527
|
};
|
|
474
|
-
(s = this.resize) === null || s === void 0 || s.call(this,
|
|
528
|
+
(s = this.resize) === null || s === void 0 || s.call(this, a, this.previousSize), this.previousSize = a;
|
|
475
529
|
}, 40, {
|
|
476
530
|
leading: !1,
|
|
477
531
|
trailing: !0
|
|
@@ -494,9 +548,9 @@ class ye {
|
|
|
494
548
|
this.apply.cancel(), (t = this.resizeObserver) === null || t === void 0 || t.disconnect(), this.resizeObserver = null;
|
|
495
549
|
}
|
|
496
550
|
}
|
|
497
|
-
const
|
|
551
|
+
const ke = () => ".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;}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;position:relative;z-index:1;height:100%}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%}", $e = class {
|
|
498
552
|
constructor(e) {
|
|
499
|
-
|
|
553
|
+
L(this, e), this.scrollViewport = p(this, "scrollviewport", 7), this.resizeViewport = p(this, "resizeviewport", 7), this.scrollchange = p(this, "scrollchange", 7), this.silentScroll = p(this, "scrollviewportsilent", 7), this.contentWidth = 0, this.contentHeight = 0, this.noHorizontalScrollTransfer = !1;
|
|
500
554
|
}
|
|
501
555
|
async setScroll(e) {
|
|
502
556
|
var t;
|
|
@@ -551,7 +605,7 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
551
605
|
this.applyOnScroll(e, t, !0);
|
|
552
606
|
}
|
|
553
607
|
connectedCallback() {
|
|
554
|
-
this.verticalMouseWheel = this.onVerticalMouseWheel.bind(this, "rgRow", "deltaY"), this.horizontalMouseWheel = this.onHorizontalMouseWheel.bind(this, "rgCol", "deltaX"), this.localScrollTimer = new
|
|
608
|
+
this.verticalMouseWheel = this.onVerticalMouseWheel.bind(this, "rgRow", "deltaY"), this.horizontalMouseWheel = this.onHorizontalMouseWheel.bind(this, "rgCol", "deltaX"), this.localScrollTimer = new ae("ontouchstart" in document.documentElement ? 0 : 10), this.localScrollService = new de({
|
|
555
609
|
// to improve safari smoothnes on scroll
|
|
556
610
|
// skipAnimationFrame: isSafariDesktop(),
|
|
557
611
|
runScroll: (e) => this.scrollViewport.emit(e),
|
|
@@ -568,34 +622,34 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
568
622
|
});
|
|
569
623
|
}
|
|
570
624
|
componentDidLoad() {
|
|
571
|
-
this.resizeService = new
|
|
572
|
-
var t, r, i, o, l, s,
|
|
573
|
-
const
|
|
574
|
-
let
|
|
575
|
-
|
|
576
|
-
size:
|
|
625
|
+
this.resizeService = new De(this.horizontalScroll, (e) => {
|
|
626
|
+
var t, r, i, o, l, s, a, h;
|
|
627
|
+
const c = {};
|
|
628
|
+
let n = e.height || 0;
|
|
629
|
+
n && (n -= ((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)), c.rgRow = {
|
|
630
|
+
size: n,
|
|
577
631
|
contentSize: this.contentHeight,
|
|
578
632
|
scroll: (s = (l = this.verticalScroll) === null || l === void 0 ? void 0 : l.scrollTop) !== null && s !== void 0 ? s : 0,
|
|
579
633
|
noScroll: !1
|
|
580
634
|
};
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
size:
|
|
635
|
+
const g = e.width || 0;
|
|
636
|
+
c.rgCol = {
|
|
637
|
+
size: g,
|
|
584
638
|
contentSize: this.contentWidth,
|
|
585
639
|
scroll: this.horizontalScroll.scrollLeft,
|
|
586
640
|
noScroll: this.colType !== "rgCol"
|
|
587
641
|
}, this.setScrollParams({
|
|
588
|
-
rgRow:
|
|
589
|
-
rgCol:
|
|
642
|
+
rgRow: n,
|
|
643
|
+
rgCol: g
|
|
590
644
|
});
|
|
591
|
-
const
|
|
592
|
-
for (const u of
|
|
593
|
-
const
|
|
594
|
-
|
|
645
|
+
const m = ["rgCol", "rgRow"];
|
|
646
|
+
for (const u of m) {
|
|
647
|
+
const v = c[u];
|
|
648
|
+
v && (this.resizeViewport.emit({
|
|
595
649
|
dimension: u,
|
|
596
|
-
size:
|
|
650
|
+
size: v.size,
|
|
597
651
|
rowHeader: this.rowHeader
|
|
598
|
-
}), !
|
|
652
|
+
}), !v.noScroll && ((a = this.localScrollService) === null || a === void 0 || a.scroll((h = v.scroll) !== null && h !== void 0 ? h : 0, u, !0), this.setScrollVisibility(u, v.size, v.contentSize)));
|
|
599
653
|
}
|
|
600
654
|
}, [this.footer, this.header]);
|
|
601
655
|
}
|
|
@@ -644,8 +698,8 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
644
698
|
}
|
|
645
699
|
render() {
|
|
646
700
|
var e, t;
|
|
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) :
|
|
648
|
-
return
|
|
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) : I(this.contentHeight, r), o = I(this.contentWidth, 0);
|
|
702
|
+
return d(E, { key: "3dd9d29cf26743d7aa4995f51180d56008526e54", onWheel: this.horizontalMouseWheel, onScroll: (l) => this.applyScroll("rgCol", l) }, d("div", { key: "af75428e845044c33eba2fecd1ec04a9177b9b5c", class: "inner-content-table", style: { width: `${o}px` } }, d("div", { key: "a0149f597588371e1fafe69efc3bd4411379a017", class: "header-wrapper", ref: (l) => this.header = l }, d("slot", { key: "e5d2570bf93897cd97ef702141c83bb8c0e13ee2", name: he })), d("div", { key: "d1388ff0d721dd8ce925b934bb2128fddc1ac17b", class: "vertical-inner", ref: (l) => this.verticalScroll = l, onWheel: this.verticalMouseWheel, onScroll: (l) => this.applyScroll("rgRow", l) }, d("div", { key: "a306ff56f62279402e2a881a081e3224341d5bdf", class: "content-wrapper", style: { height: `${i}px` } }, d("slot", { key: "898bda8e9429da06c9ff2bd41626ac27f3cde3cc", name: ge }))), d("div", { key: "5e9eba1edd5fca07a964971054a7900e4dd84099", class: "footer-wrapper", ref: (l) => this.footer = l }, d("slot", { key: "f233ad1c23b3f692c45e1db235cfef4704a80726", name: ve }))));
|
|
649
703
|
}
|
|
650
704
|
/**
|
|
651
705
|
* Extra layer for scroll event monitoring, where MouseWheel event is not passing
|
|
@@ -675,7 +729,7 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
675
729
|
applyOnScroll(e, t, r = !1) {
|
|
676
730
|
const i = () => {
|
|
677
731
|
var o;
|
|
678
|
-
(o = this.localScrollService) === null || o === void 0 || o.scroll(t, e, void 0, void 0, r);
|
|
732
|
+
(o = this.localScrollService) === null || o === void 0 || o.scroll(t, e, void 0, void 0, r), this.localScrollTimer.setCoordinateFromScroll({ dimension: e, coordinate: t });
|
|
679
733
|
};
|
|
680
734
|
this.localScrollTimer.isReady(e, t) ? i() : this.localScrollTimer.throttleLastScrollUpdate(e, t, () => i());
|
|
681
735
|
}
|
|
@@ -686,11 +740,11 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
686
740
|
* @param e
|
|
687
741
|
*/
|
|
688
742
|
onVerticalMouseWheel(e, t, r) {
|
|
689
|
-
var i, o, l, s,
|
|
690
|
-
const
|
|
691
|
-
!
|
|
692
|
-
const b =
|
|
693
|
-
(
|
|
743
|
+
var i, o, l, s, a, h, c, n;
|
|
744
|
+
const g = (o = (i = this.verticalScroll) === null || i === void 0 ? void 0 : i.scrollTop) !== null && o !== void 0 ? o : 0, m = (s = (l = this.verticalScroll) === null || l === void 0 ? void 0 : l.clientHeight) !== null && s !== void 0 ? s : 0, u = (h = (a = this.verticalScroll) === null || a === void 0 ? void 0 : a.scrollHeight) !== null && h !== void 0 ? h : 0, v = g + m >= u && r.deltaY > 0, w = g === 0 && r.deltaY < 0;
|
|
745
|
+
!v && !w && ((c = r.preventDefault) === null || c === void 0 || c.call(r));
|
|
746
|
+
const b = g + r[t];
|
|
747
|
+
(n = this.localScrollService) === null || n === void 0 || n.scroll(b, e, void 0, r[t]), this.localScrollTimer.latestScrollUpdate(e);
|
|
694
748
|
}
|
|
695
749
|
/**
|
|
696
750
|
* On horizontal mousewheel event
|
|
@@ -702,26 +756,26 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
|
|
|
702
756
|
var i, o, l, s;
|
|
703
757
|
if (!r.deltaX)
|
|
704
758
|
return;
|
|
705
|
-
const { scrollLeft:
|
|
759
|
+
const { scrollLeft: a, scrollWidth: h, clientWidth: c } = this.horizontalScroll, n = a + c >= h && r.deltaX > 0, g = a === 0 && r.deltaX < 0;
|
|
706
760
|
if (this.noHorizontalScrollTransfer) {
|
|
707
|
-
if (!
|
|
708
|
-
const u =
|
|
761
|
+
if (!n && !g) {
|
|
762
|
+
const u = a + r[t];
|
|
709
763
|
(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);
|
|
710
764
|
}
|
|
711
765
|
return;
|
|
712
766
|
}
|
|
713
|
-
!
|
|
714
|
-
const
|
|
715
|
-
(s = this.localScrollService) === null || s === void 0 || s.scroll(
|
|
767
|
+
!n && !g && ((l = r.preventDefault) === null || l === void 0 || l.call(r));
|
|
768
|
+
const m = a + r[t];
|
|
769
|
+
(s = this.localScrollService) === null || s === void 0 || s.scroll(m, e, void 0, r[t]), this.localScrollTimer.latestScrollUpdate(e);
|
|
716
770
|
}
|
|
717
771
|
get horizontalScroll() {
|
|
718
|
-
return
|
|
772
|
+
return _(this);
|
|
719
773
|
}
|
|
720
774
|
};
|
|
721
|
-
|
|
722
|
-
const
|
|
775
|
+
$e.style = ke();
|
|
776
|
+
const Pe = class {
|
|
723
777
|
constructor(e) {
|
|
724
|
-
|
|
778
|
+
L(this, e), this.html = p(this, "html", 7), this.redraw = null, this.vnodes = [];
|
|
725
779
|
}
|
|
726
780
|
componentDidRender() {
|
|
727
781
|
this.html.emit({
|
|
@@ -731,15 +785,15 @@ const De = class {
|
|
|
731
785
|
}
|
|
732
786
|
render() {
|
|
733
787
|
var e, t;
|
|
734
|
-
return this.vnodes = (t = (e = this.redraw) === null || e === void 0 ? void 0 : e.call(this)) !== null && t !== void 0 ? t : null,
|
|
788
|
+
return this.vnodes = (t = (e = this.redraw) === null || e === void 0 ? void 0 : e.call(this)) !== null && t !== void 0 ? t : null, d(E, { key: "11b76ca8a86ebf279add88bbd86ef9eb5149605a", style: { visibility: "hidden", position: "absolute" } }, this.vnodes);
|
|
735
789
|
}
|
|
736
790
|
get el() {
|
|
737
|
-
return
|
|
791
|
+
return _(this);
|
|
738
792
|
}
|
|
739
793
|
};
|
|
740
794
|
export {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
795
|
+
ze as revogr_data,
|
|
796
|
+
He as revogr_header,
|
|
797
|
+
$e as revogr_viewport_scroll,
|
|
798
|
+
Pe as vnode_html
|
|
745
799
|
};
|