jsl-ui 9.15.2 → 9.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,10 @@ export interface ISplitterComponentOptions {
|
|
|
5
5
|
minSizesInPX?: number[];
|
|
6
6
|
maxSizesInPX?: number[];
|
|
7
7
|
onResize?: EventHandler<void>;
|
|
8
|
-
onResizeDone?: EventHandler<
|
|
8
|
+
onResizeDone?: EventHandler<ISplitterDoneArgs>;
|
|
9
|
+
}
|
|
10
|
+
export interface ISplitterDoneArgs {
|
|
11
|
+
size1InPX?: number;
|
|
9
12
|
}
|
|
10
13
|
export declare class SplitterComponent implements IJSLComponent {
|
|
11
14
|
private static listenerRegistered;
|
|
@@ -79,7 +79,12 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
79
79
|
document.removeEventListener("mouseup", mousedown);
|
|
80
80
|
document.removeEventListener("touchend", mousedown);
|
|
81
81
|
var component = draggedEl._component;
|
|
82
|
-
|
|
82
|
+
var area1 = draggedEl.previousElementSibling;
|
|
83
|
+
var args = {};
|
|
84
|
+
if (area1 != null) {
|
|
85
|
+
args.size1InPX = area1.getBoundingClientRect().width;
|
|
86
|
+
}
|
|
87
|
+
(_a = component.options.onResizeDone) === null || _a === void 0 ? void 0 : _a.notify(args);
|
|
83
88
|
}
|
|
84
89
|
function mousedown(e) {
|
|
85
90
|
if (e.target.classList.contains("split-comp")) {
|