@svgrid/grid-wc 3.0.49 → 3.0.50
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/GridFind-B5zpfGlk.js +39 -0
- package/dist/GridFooter-CSzuZWPH.js +142 -0
- package/dist/GridMenus-DGR1VkZL.js +1480 -0
- package/dist/PinSplitter-BbQwf4Eh.js +178 -0
- package/dist/{SvChartMenu-CztABicV.js → SvChartMenu-CFvrEIJf.js} +132 -132
- package/dist/{SvDateRangeInput-ByR-LFgf.js → SvDateRangeInput-B8uPcD0z.js} +107 -107
- package/dist/{SvDateTimePicker-8nq26l0z.js → SvDateTimePicker-D9MnooXn.js} +316 -316
- package/dist/{SvField-CtzxdF7J.js → SvField--1Px2j7E.js} +105 -105
- package/dist/SvGridCellEditor-BzLvoGRp.js +594 -0
- package/dist/SvGridChart-rvB4vvCB.js +3684 -0
- package/dist/{SvGridChartBuilder-BMPDRY0A.js → SvGridChartBuilder-C0HbpZhw.js} +385 -385
- package/dist/SvGridChartPanel-CftDsgLi.js +1689 -0
- package/dist/{SvGridChartView-D0Mk0N4Q.js → SvGridChartView-BMJf1fCo.js} +12 -12
- package/dist/SvGridDropdown-CZRv-0Cw.js +258 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +4 -2
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +2 -1
- package/dist/{chart-export-pdf-COD2Ugv7.js → chart-export-pdf-CFq7Y-pq.js} +1 -1
- package/dist/{shadow/client-OtsRxGjS.js → client-DeNKZvIV.js} +593 -581
- package/dist/{date-format-DngG1HJ5.js → date-format-B1XMOxlA.js} +309 -309
- package/dist/{grid-extension.svelte-DToFhcZv.js → grid-extension.svelte-B_gzYJQQ.js} +8 -8
- package/dist/{range-commit-C6Rogxem.js → range-commit-BriJZw_M.js} +1 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.js +1 -1
- package/dist/{shadow/row-drag-DLQMyiV3.js → row-drag-DevACK09.js} +1 -1
- package/dist/shadow/GridFind-CVqPCjPK.js +39 -0
- package/dist/shadow/GridFooter-DY9numnH.js +142 -0
- package/dist/shadow/GridMenus-Bl11jIy6.js +1480 -0
- package/dist/shadow/PinSplitter-DNjnUtbi.js +178 -0
- package/dist/shadow/{SvChartMenu-CFlDiKdq.js → SvChartMenu-Ca2hVFUA.js} +132 -132
- package/dist/shadow/{SvDateRangeInput-9Wq4E64y.js → SvDateRangeInput-CNXId95j.js} +107 -107
- package/dist/shadow/{SvDateTimePicker-J65ZmtSw.js → SvDateTimePicker-B6lwKYFq.js} +316 -316
- package/dist/shadow/{SvField-DGPj2clt.js → SvField-1OiD5dJA.js} +105 -105
- package/dist/shadow/SvGridCellEditor-CRImfWTE.js +594 -0
- package/dist/shadow/SvGridChart-_GY1Mgr4.js +3684 -0
- package/dist/shadow/{SvGridChartBuilder-BY64S-Zw.js → SvGridChartBuilder-Ci_GlCg3.js} +385 -385
- package/dist/shadow/SvGridChartPanel-BHczMJAe.js +1689 -0
- package/dist/shadow/{SvGridChartView-DwchQygE.js → SvGridChartView-BJEpaO8h.js} +12 -12
- package/dist/shadow/SvGridDropdown-giyKVcC0.js +258 -0
- package/dist/shadow/{chart-export-pdf-D9OfzqwS.js → chart-export-pdf-Ne0ET-JM.js} +1 -1
- package/dist/{client-OtsRxGjS.js → shadow/client-DeNKZvIV.js} +593 -581
- package/dist/shadow/{date-format-C9UkbCig.js → date-format-VCW-gATr.js} +309 -309
- package/dist/shadow/{grid-extension.svelte-DToFhcZv.js → grid-extension.svelte-B_gzYJQQ.js} +8 -8
- package/dist/shadow/{range-commit-C6Rogxem.js → range-commit-BriJZw_M.js} +1 -1
- package/dist/{row-drag-DLQMyiV3.js → shadow/row-drag-DevACK09.js} +1 -1
- package/dist/shadow/sv-grid-scrollbar-yHMClECS.js +228 -0
- package/dist/shadow/sv-grid-shadow-element.d.ts +2 -0
- package/dist/shadow/sv-grid-shadow-element.js +5686 -5829
- package/dist/{svelte-virtualizer.svelte-DWvD9wvL.js → shadow/svelte-virtualizer.svelte-D8oCAQUc.js} +4 -4
- package/dist/sv-grid-element.d.ts +2 -0
- package/dist/sv-grid-element.js +5668 -5811
- package/dist/sv-grid-scrollbar-yHMClECS.js +228 -0
- package/dist/{shadow/svelte-virtualizer.svelte-DWvD9wvL.js → svelte-virtualizer.svelte-D8oCAQUc.js} +4 -4
- package/dist/vue/index.d.ts +2 -1
- package/dist/vue/index.js +1 -1
- package/package.json +3 -3
- package/dist/GridFind-C1YbloFh.js +0 -39
- package/dist/GridFooter-DOR8m9GQ.js +0 -142
- package/dist/GridMenus-ac4ROLfR.js +0 -1461
- package/dist/PinSplitter-Du4ZF8T3.js +0 -178
- package/dist/SvGridCellEditor-3jq3ec38.js +0 -594
- package/dist/SvGridChart-CHMHUQto.js +0 -3684
- package/dist/SvGridChartPanel-Bk_xFAwN.js +0 -1689
- package/dist/SvGridDropdown-CnCQuXaI.js +0 -258
- package/dist/shadow/GridFind-CcoKoisE.js +0 -39
- package/dist/shadow/GridFooter-CDq71ytl.js +0 -142
- package/dist/shadow/GridMenus-hIMzQt3E.js +0 -1461
- package/dist/shadow/PinSplitter-BAYTAZtm.js +0 -178
- package/dist/shadow/SvGridCellEditor-DA5l3ENL.js +0 -594
- package/dist/shadow/SvGridChart-DgCuTYRq.js +0 -3684
- package/dist/shadow/SvGridChartPanel-CuRtOxSk.js +0 -1689
- package/dist/shadow/SvGridDropdown-B_5kqHQE.js +0 -258
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, et as t } from "./client-DeNKZvIV.js";
|
|
2
2
|
//#region ../grid/dist/filtering/filter-operator-catalogue.js
|
|
3
3
|
var n = ["isBlank", "isNotBlank"];
|
|
4
4
|
function r(e) {
|
|
@@ -6,12 +6,12 @@ function r(e) {
|
|
|
6
6
|
}
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region ../grid/dist/filter-operator-registry.js
|
|
9
|
-
var i = {}, a =
|
|
10
|
-
function o(
|
|
11
|
-
let r =
|
|
12
|
-
if (!r) return
|
|
13
|
-
let i = n ?? s(
|
|
14
|
-
return
|
|
9
|
+
var i = {}, a = t(null);
|
|
10
|
+
function o(t, n) {
|
|
11
|
+
let r = e(a)?.column;
|
|
12
|
+
if (!r) return t;
|
|
13
|
+
let i = n ?? s(t);
|
|
14
|
+
return t.map((e) => e?.columns?.length ? {
|
|
15
15
|
...e,
|
|
16
16
|
columns: o(e.columns, i)
|
|
17
17
|
} : e?.fieldType ? r(e, i) : e);
|
|
@@ -21,7 +21,7 @@ function s(e) {
|
|
|
21
21
|
}
|
|
22
22
|
var c = (e) => i[e], l = (e) => r(e) || !!c(e)?.valueless;
|
|
23
23
|
function u() {
|
|
24
|
-
return
|
|
24
|
+
return e(a);
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
export { l as i, o as n, u as r, c as t };
|
|
@@ -62,7 +62,7 @@ function n(n) {
|
|
|
62
62
|
let t = n.allRows[e];
|
|
63
63
|
if (!t) return !1;
|
|
64
64
|
let r = n.props.serverGroup;
|
|
65
|
-
return r ? !!r.isGroup(t.original) : typeof t.getCanExpand == "function" && t.getCanExpand();
|
|
65
|
+
return r ? !!r.isGroup(t.original) : t.__treeRow ? !0 : typeof t.getCanExpand == "function" && t.getCanExpand();
|
|
66
66
|
}
|
|
67
67
|
function g(e) {
|
|
68
68
|
if (n.rowDropIndex === e) {
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
//#region ../grid/dist/sv-grid-scrollbar.js
|
|
2
|
+
var e = 16, t = "http://www.w3.org/2000/svg";
|
|
3
|
+
function n() {
|
|
4
|
+
let e = document.createElementNS(t, "svg");
|
|
5
|
+
e.setAttribute("viewBox", "0 0 24 24"), e.setAttribute("fill", "none"), e.setAttribute("stroke", "currentColor"), e.setAttribute("stroke-width", "3"), e.setAttribute("stroke-linecap", "round"), e.setAttribute("stroke-linejoin", "round");
|
|
6
|
+
let n = document.createElementNS(t, "path");
|
|
7
|
+
return n.setAttribute("d", "M6 9l6 6 6-6"), e.appendChild(n), e;
|
|
8
|
+
}
|
|
9
|
+
var r = `
|
|
10
|
+
:host {
|
|
11
|
+
display: flex;
|
|
12
|
+
user-select: none;
|
|
13
|
+
background: var(--sg-scrollbar-bg, #eef2f8);
|
|
14
|
+
/* The 1px separator is drawn on the INNER edge only (the edge facing
|
|
15
|
+
the grid body) via the orientation rules below. A full inset box
|
|
16
|
+
here doubled up with the grid's own frame border on the outer edge,
|
|
17
|
+
reading as a 2px border - most visible in dense-gridline themes
|
|
18
|
+
like Excel, which should show a single 1px line. */
|
|
19
|
+
/* Start hidden + non-interactive - viewport/content sizes are 0 until
|
|
20
|
+
after the first layout pass, so without this default the scrollbar
|
|
21
|
+
paints visible for one frame and then JS hides it on mount. That
|
|
22
|
+
flicker is what shows up as a "flashing horizontal scrollbar"
|
|
23
|
+
every time a demo first renders. updateGeometry() switches us to
|
|
24
|
+
opacity 1 the moment the grid genuinely has overflow. */
|
|
25
|
+
opacity: 0;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
transition: opacity 120ms ease;
|
|
28
|
+
}
|
|
29
|
+
:host([orientation="vertical"]) {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
width: ${e}px;
|
|
32
|
+
/* LTR: vertical scrollbar sits at the right, inner edge is the left. */
|
|
33
|
+
box-shadow: inset 1px 0 0 0 var(--sg-scrollbar-border, rgba(15, 23, 42, 0.04));
|
|
34
|
+
}
|
|
35
|
+
:host([orientation="vertical"]:dir(rtl)) {
|
|
36
|
+
/* RTL flips the scrollbar to the left, so the inner edge is the right. */
|
|
37
|
+
box-shadow: inset -1px 0 0 0 var(--sg-scrollbar-border, rgba(15, 23, 42, 0.04));
|
|
38
|
+
}
|
|
39
|
+
:host([orientation="horizontal"]) {
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
height: ${e}px;
|
|
42
|
+
/* Horizontal scrollbar sits at the bottom, inner edge is the top. */
|
|
43
|
+
box-shadow: inset 0 1px 0 0 var(--sg-scrollbar-border, rgba(15, 23, 42, 0.04));
|
|
44
|
+
}
|
|
45
|
+
.arrow {
|
|
46
|
+
flex: none;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
width: ${e}px;
|
|
51
|
+
height: ${e}px;
|
|
52
|
+
margin: 0;
|
|
53
|
+
padding: 0;
|
|
54
|
+
border: 0;
|
|
55
|
+
border-radius: 3px;
|
|
56
|
+
background: transparent;
|
|
57
|
+
color: var(--sg-scrollbar-arrow, #64748b);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
transition: background-color 100ms ease, color 100ms ease;
|
|
60
|
+
}
|
|
61
|
+
.arrow:hover {
|
|
62
|
+
background: var(--sg-scrollbar-arrow-hover-bg, #dde4ee);
|
|
63
|
+
color: var(--sg-scrollbar-arrow-hover, #1f2937);
|
|
64
|
+
}
|
|
65
|
+
.arrow:active {
|
|
66
|
+
background: var(--sg-scrollbar-arrow-active-bg, #c7d1df);
|
|
67
|
+
color: var(--sg-scrollbar-arrow-active, #0f172a);
|
|
68
|
+
}
|
|
69
|
+
.arrow:disabled {
|
|
70
|
+
color: var(--sg-scrollbar-arrow-disabled, #cbd5e1);
|
|
71
|
+
cursor: default;
|
|
72
|
+
}
|
|
73
|
+
.arrow:disabled:hover {
|
|
74
|
+
background: transparent;
|
|
75
|
+
}
|
|
76
|
+
.arrow svg {
|
|
77
|
+
width: 10px;
|
|
78
|
+
height: 10px;
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
:host([orientation="vertical"]) .arrow-start svg {
|
|
82
|
+
transform: rotate(180deg);
|
|
83
|
+
}
|
|
84
|
+
:host([orientation="horizontal"]) .arrow-start svg {
|
|
85
|
+
transform: rotate(90deg);
|
|
86
|
+
}
|
|
87
|
+
:host([orientation="horizontal"]) .arrow-end svg {
|
|
88
|
+
transform: rotate(-90deg);
|
|
89
|
+
}
|
|
90
|
+
.track {
|
|
91
|
+
position: relative;
|
|
92
|
+
flex: 1 1 0;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
min-height: 0;
|
|
95
|
+
}
|
|
96
|
+
.thumb {
|
|
97
|
+
position: absolute;
|
|
98
|
+
border-radius: var(--sg-scrollbar-thumb-radius, 6px);
|
|
99
|
+
background: var(--sg-scrollbar-thumb, #b1bccd);
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
transition: background-color 100ms ease;
|
|
102
|
+
}
|
|
103
|
+
.thumb:hover {
|
|
104
|
+
background: var(--sg-scrollbar-thumb-hover, #8693a7);
|
|
105
|
+
}
|
|
106
|
+
.thumb:active {
|
|
107
|
+
background: var(--sg-scrollbar-thumb-active, #64748b);
|
|
108
|
+
}
|
|
109
|
+
:host([orientation="vertical"]) .thumb {
|
|
110
|
+
left: 3px;
|
|
111
|
+
right: 3px;
|
|
112
|
+
}
|
|
113
|
+
:host([orientation="horizontal"]) .thumb {
|
|
114
|
+
top: 3px;
|
|
115
|
+
bottom: 3px;
|
|
116
|
+
}
|
|
117
|
+
`, i = typeof HTMLElement < "u" ? HTMLElement : class {}, a = class e extends i {
|
|
118
|
+
constructor() {
|
|
119
|
+
super(...arguments), this.dragging = !1, this.dragStart = 0, this.valueStart = 0, this.holdTimer = null, this.resizeObserver = null, this.resizeFrame = 0, this.trackLength = 0, this.onArrowStartPointerDown = (e) => {
|
|
120
|
+
e.preventDefault(), this.startHold(-1);
|
|
121
|
+
}, this.onArrowEndPointerDown = (e) => {
|
|
122
|
+
e.preventDefault(), this.startHold(1);
|
|
123
|
+
}, this.stopHold = () => {
|
|
124
|
+
this.holdTimer !== null && (clearTimeout(this.holdTimer), clearInterval(this.holdTimer), this.holdTimer = null);
|
|
125
|
+
}, this.onThumbPointerDown = (e) => {
|
|
126
|
+
e.preventDefault(), this.dragging = !0, this.dragStart = this.orientation === "vertical" ? e.clientY : e.clientX, this.valueStart = this.value, document.addEventListener("pointermove", this.onPointerMove), document.addEventListener("pointerup", this.onPointerUp);
|
|
127
|
+
}, this.onTrackPointerDown = (e) => {
|
|
128
|
+
if (e.target === this.thumb) return;
|
|
129
|
+
let t = this.track.getBoundingClientRect(), n = this.orientation === "vertical" ? e.clientY - t.top : e.clientX - t.left, r = this.orientation === "vertical" ? t.height : t.width, i = this.computeThumbSize(r), a = Math.max(r - i, 1), o = Math.min(Math.max(n - i / 2, 0), a);
|
|
130
|
+
this.emitScroll(o / a * this.maxValue);
|
|
131
|
+
}, this.onPointerMove = (e) => {
|
|
132
|
+
if (!this.dragging) return;
|
|
133
|
+
let t = (this.orientation === "vertical" ? e.clientY : e.clientX) - this.dragStart, n = this.track.getBoundingClientRect(), r = this.orientation === "vertical" ? n.height : n.width, i = this.computeThumbSize(r), a = Math.max(r - i, 1);
|
|
134
|
+
this.emitScroll(this.valueStart + t / a * this.maxValue);
|
|
135
|
+
}, this.onPointerUp = () => {
|
|
136
|
+
this.dragging = !1, document.removeEventListener("pointermove", this.onPointerMove), document.removeEventListener("pointerup", this.onPointerUp);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
static get observedAttributes() {
|
|
140
|
+
return [
|
|
141
|
+
"orientation",
|
|
142
|
+
"viewport-size",
|
|
143
|
+
"content-size",
|
|
144
|
+
"value",
|
|
145
|
+
"step"
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
connectedCallback() {
|
|
149
|
+
if (this.shadowRoot) return;
|
|
150
|
+
let e = this.attachShadow({ mode: "open" }), t = document.createElement("style");
|
|
151
|
+
t.textContent = r, this.startArrow = this.createArrow("start"), this.endArrow = this.createArrow("end"), this.track = document.createElement("div"), this.track.className = "track", this.thumb = document.createElement("div"), this.thumb.className = "thumb", this.track.appendChild(this.thumb), e.append(t, this.startArrow, this.track, this.endArrow), this.thumb.addEventListener("pointerdown", this.onThumbPointerDown), this.track.addEventListener("pointerdown", this.onTrackPointerDown), this.startArrow.addEventListener("pointerdown", this.onArrowStartPointerDown), this.endArrow.addEventListener("pointerdown", this.onArrowEndPointerDown);
|
|
152
|
+
for (let e of [this.startArrow, this.endArrow]) e.addEventListener("pointerup", this.stopHold), e.addEventListener("pointerleave", this.stopHold), e.addEventListener("pointercancel", this.stopHold);
|
|
153
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
154
|
+
this.measureTrack(), !this.resizeFrame && (this.resizeFrame = requestAnimationFrame(() => {
|
|
155
|
+
this.resizeFrame = 0, this.render();
|
|
156
|
+
}));
|
|
157
|
+
}), this.resizeObserver.observe(this), this.render();
|
|
158
|
+
}
|
|
159
|
+
disconnectedCallback() {
|
|
160
|
+
this.stopHold(), this.resizeFrame && cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0, this.resizeObserver?.disconnect(), this.resizeObserver = null, document.removeEventListener("pointermove", this.onPointerMove), document.removeEventListener("pointerup", this.onPointerUp);
|
|
161
|
+
}
|
|
162
|
+
attributeChangedCallback() {
|
|
163
|
+
this.render();
|
|
164
|
+
}
|
|
165
|
+
get orientation() {
|
|
166
|
+
return this.getAttribute("orientation") === "horizontal" ? "horizontal" : "vertical";
|
|
167
|
+
}
|
|
168
|
+
get viewportSize() {
|
|
169
|
+
return Number(this.getAttribute("viewport-size") || "0");
|
|
170
|
+
}
|
|
171
|
+
get contentSize() {
|
|
172
|
+
return Number(this.getAttribute("content-size") || "0");
|
|
173
|
+
}
|
|
174
|
+
get value() {
|
|
175
|
+
return Number(this.getAttribute("value") || "0");
|
|
176
|
+
}
|
|
177
|
+
get step() {
|
|
178
|
+
let e = Number(this.getAttribute("step") || "40");
|
|
179
|
+
return e > 0 ? e : 40;
|
|
180
|
+
}
|
|
181
|
+
get maxValue() {
|
|
182
|
+
return Math.max(this.contentSize - this.viewportSize, 0);
|
|
183
|
+
}
|
|
184
|
+
measureTrack() {
|
|
185
|
+
if (!this.track) return;
|
|
186
|
+
let e = this.track.getBoundingClientRect();
|
|
187
|
+
this.trackLength = this.orientation === "vertical" ? e.height : e.width;
|
|
188
|
+
}
|
|
189
|
+
getTrackLength() {
|
|
190
|
+
return this.trackLength > 0 ? this.trackLength : Math.max(this.viewportSize - 32, 1);
|
|
191
|
+
}
|
|
192
|
+
static setStyle(e, t, n) {
|
|
193
|
+
e.style[t] !== n && (e.style[t] = n);
|
|
194
|
+
}
|
|
195
|
+
computeThumbSize(e) {
|
|
196
|
+
if (this.contentSize <= 0 || this.viewportSize <= 0 || e <= 0) return 0;
|
|
197
|
+
let t = Math.min(this.viewportSize / this.contentSize, 1);
|
|
198
|
+
return Math.max(20, t * e);
|
|
199
|
+
}
|
|
200
|
+
createArrow(e) {
|
|
201
|
+
let t = document.createElement("button");
|
|
202
|
+
return t.type = "button", t.className = `arrow arrow-${e}`, t.tabIndex = -1, t.setAttribute("aria-label", e === "start" ? "Scroll back" : "Scroll forward"), t.appendChild(n()), t;
|
|
203
|
+
}
|
|
204
|
+
startHold(e) {
|
|
205
|
+
this.stopHold();
|
|
206
|
+
let t = () => this.emitScroll(this.value + e * this.step);
|
|
207
|
+
t(), this.holdTimer = setTimeout(() => {
|
|
208
|
+
this.holdTimer = setInterval(t, 50);
|
|
209
|
+
}, 280);
|
|
210
|
+
}
|
|
211
|
+
emitScroll(e) {
|
|
212
|
+
let t = Math.min(Math.max(e, 0), this.maxValue);
|
|
213
|
+
this.dispatchEvent(new CustomEvent("scroll-change", {
|
|
214
|
+
detail: { value: t },
|
|
215
|
+
bubbles: !0,
|
|
216
|
+
composed: !0
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
render() {
|
|
220
|
+
if (!this.shadowRoot) return;
|
|
221
|
+
let t = e.setStyle, n = this.viewportSize, r = this.contentSize <= n || n <= 0;
|
|
222
|
+
t(this, "opacity", r ? "0" : "1"), t(this, "pointerEvents", r ? "none" : "auto");
|
|
223
|
+
let i = this.getTrackLength(), a = this.computeThumbSize(i), o = this.maxValue, s = (o > 0 ? this.value / o : 0) * Math.max(i - a, 0);
|
|
224
|
+
this.orientation === "vertical" ? (t(this.thumb, "height", `${a}px`), t(this.thumb, "transform", `translateY(${s}px)`)) : (t(this.thumb, "width", `${a}px`), t(this.thumb, "transform", `translateX(${s}px)`)), this.startArrow.disabled = r || this.value <= 0, this.endArrow.disabled = r || this.value >= o;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
typeof window < "u" && !customElements.get("sv-grid-scrollbar") && customElements.define("sv-grid-scrollbar", a);
|
|
228
|
+
//#endregion
|
|
@@ -46,6 +46,8 @@ export interface SvGridElement extends HTMLElement {
|
|
|
46
46
|
expandRows: boolean
|
|
47
47
|
/** attribute `pin-splitter` */
|
|
48
48
|
pinSplitter: boolean
|
|
49
|
+
/** attribute `max-pinned-column-width` */
|
|
50
|
+
maxPinnedColumnWidth: number
|
|
49
51
|
/** attribute `primary-field` */
|
|
50
52
|
primaryField: string
|
|
51
53
|
/** property only - an attribute cannot hold this */
|