jsl-ui 9.10.0 → 9.12.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.
- package/lib/components/dialog/DialogComponent.js +1 -1
- package/lib/components/overlay/OverlayComponent.js +1 -1
- package/lib/components/stack-panel/StackPanelComponent.d.ts +1 -0
- package/lib/components/stack-panel/StackPanelComponent.js +1 -1
- package/lib/components/stack-panel/StackPanelStyle.scss +3 -3
- package/lib/grid/slick.grid.d.ts +6 -1
- package/lib/grid/slick.grid.js +12 -4
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ var DialogComponent = /** @class */ (function () {
|
|
|
19
19
|
function DialogComponent(options) {
|
|
20
20
|
var _this = this;
|
|
21
21
|
this.closeIcon = {
|
|
22
|
-
tag: "div", content: "🗙"
|
|
22
|
+
tag: "div", content: "✖" /*"🗙"*/, attr: {
|
|
23
23
|
class: "dlg-close-btn", click: function () {
|
|
24
24
|
_this.ref.close();
|
|
25
25
|
}
|
|
@@ -15,7 +15,7 @@ var OverlayComponent = /** @class */ (function () {
|
|
|
15
15
|
function OverlayComponent(options) {
|
|
16
16
|
var _this = this;
|
|
17
17
|
this.closeIcon = {
|
|
18
|
-
tag: "div", content: "🗙"
|
|
18
|
+
tag: "div", content: "✖" /*"🗙"*/, attr: {
|
|
19
19
|
class: "overl-close-btn", click: function () {
|
|
20
20
|
_this.close();
|
|
21
21
|
}
|
|
@@ -39,7 +39,7 @@ var StackPanelComponent = /** @class */ (function () {
|
|
|
39
39
|
tag: "div", attr: { class: c, style: s },
|
|
40
40
|
children: this.children.map(function (x, idx) { return x != null && x._is_splitter === true ? x : ({
|
|
41
41
|
tag: "div",
|
|
42
|
-
attr: { style: _this.getSize(idx) },
|
|
42
|
+
attr: { style: _this.getSize(idx) + (_this.options.flexForChildren ? ";display:flex" : "") },
|
|
43
43
|
children: [x]
|
|
44
44
|
}); })
|
|
45
45
|
};
|
package/lib/grid/slick.grid.d.ts
CHANGED
|
@@ -114,7 +114,12 @@ export interface ISlickGrid<T> {
|
|
|
114
114
|
row: number;
|
|
115
115
|
cell: number;
|
|
116
116
|
}>;
|
|
117
|
-
"onColumnsResized": ISlickEvent<
|
|
117
|
+
"onColumnsResized": ISlickEvent<{
|
|
118
|
+
cell: number;
|
|
119
|
+
width: number;
|
|
120
|
+
previousWidth: number;
|
|
121
|
+
column: ISlickColumn;
|
|
122
|
+
}>;
|
|
118
123
|
"onAppendCell": ISlickEvent<{
|
|
119
124
|
row: number;
|
|
120
125
|
cell: number;
|
package/lib/grid/slick.grid.js
CHANGED
|
@@ -1795,21 +1795,29 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
function finishColumnResize() {
|
|
1798
|
+
var changedColumns = [];
|
|
1798
1799
|
var newWidth;
|
|
1799
1800
|
var columnElements = $headers.children();
|
|
1800
1801
|
$headers.find(".slick-header-column-active").removeClass("slick-header-column-active");
|
|
1801
1802
|
for (var j = 0; j < columns.length; j++) {
|
|
1802
1803
|
var c = columns[j];
|
|
1803
1804
|
newWidth = $(columnElements[j]).width();
|
|
1804
|
-
if (c.previousWidth !== newWidth
|
|
1805
|
-
|
|
1806
|
-
|
|
1805
|
+
if (c.previousWidth !== newWidth) {
|
|
1806
|
+
changedColumns.push({ cell: j,
|
|
1807
|
+
width: newWidth,
|
|
1808
|
+
previousWidth: c.previousWidth,
|
|
1809
|
+
column: c
|
|
1810
|
+
});
|
|
1811
|
+
if (c.rerenderOnResize) {
|
|
1812
|
+
invalidateAllRows();
|
|
1813
|
+
break;
|
|
1814
|
+
}
|
|
1807
1815
|
}
|
|
1808
1816
|
}
|
|
1809
1817
|
updateCanvasWidth(true);
|
|
1810
1818
|
resizeCanvas();
|
|
1811
1819
|
handleScroll();
|
|
1812
|
-
trigger(self.onColumnsResized,
|
|
1820
|
+
trigger(self.onColumnsResized, changedColumns);
|
|
1813
1821
|
}
|
|
1814
1822
|
// function setupColumnResize() {
|
|
1815
1823
|
// if (1) return;
|