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.
@@ -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: "🗙", attr: {
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: "🗙", attr: {
18
+ tag: "div", content: "✖" /*"🗙"*/, attr: {
19
19
  class: "overl-close-btn", click: function () {
20
20
  _this.close();
21
21
  }
@@ -6,6 +6,7 @@ export interface IStackPanelOptions {
6
6
  class?: string;
7
7
  style?: string;
8
8
  responsive?: boolean;
9
+ flexForChildren?: boolean;
9
10
  sizes?: Array<string | undefined>;
10
11
  wrap?: boolean;
11
12
  }
@@ -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
  };
@@ -16,9 +16,9 @@
16
16
  width: 100%;
17
17
  }
18
18
 
19
- .stackpanel-comp.hstackpanel:not(.responsive) > div {
20
- display: flex;
21
- }
19
+ // .stackpanel-comp.hstackpanel:not(.responsive) > div {
20
+ // display: flex;
21
+ // }
22
22
 
23
23
  @media (min-width: 70em) {
24
24
 
@@ -114,7 +114,12 @@ export interface ISlickGrid<T> {
114
114
  row: number;
115
115
  cell: number;
116
116
  }>;
117
- "onColumnsResized": ISlickEvent<any>;
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;
@@ -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 && c.rerenderOnResize) {
1805
- invalidateAllRows();
1806
- break;
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;