@progress/kendo-spreadsheet-common 1.2.11 → 1.2.12-develop.1

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/index-esm.js CHANGED
@@ -16597,13 +16597,14 @@ class Pane {
16597
16597
 
16598
16598
  filterIconRect(rect) {
16599
16599
  let BUTTON_SIZE = 22;
16600
- let BUTTON_OFFSET = 3;
16601
-
16600
+ let compactButton = rect.height < BUTTON_SIZE;
16601
+ let buttonSize = compactButton ? Math.max(rect.height - 2, 0) : BUTTON_SIZE;
16602
+
16602
16603
  return new Rectangle(
16603
- rect.right - BUTTON_SIZE - BUTTON_OFFSET,
16604
- rect.top + BUTTON_OFFSET,
16605
- BUTTON_SIZE,
16606
- BUTTON_SIZE
16604
+ rect.right - buttonSize,
16605
+ rect.bottom - buttonSize,
16606
+ buttonSize,
16607
+ buttonSize
16607
16608
  );
16608
16609
  }
16609
16610
 
@@ -16627,8 +16628,16 @@ class Pane {
16627
16628
  function filterButton(classNames, position, index) {
16628
16629
  let style = {
16629
16630
  left: position.left + "px",
16630
- top: position.top + "px"
16631
+ top: position.top + "px",
16632
+ width: position.width + "px",
16633
+ height: position.height + "px",
16634
+ padding: "0px",
16635
+ display: "flex",
16636
+ alignItems: "center",
16637
+ justifyContent: "center",
16638
+ boxSizing: "border-box"
16631
16639
  };
16640
+
16632
16641
  let filtered = filter && filter.columns.some(function(c) {
16633
16642
  return c.index === index;
16634
16643
  });
package/dist/index.js CHANGED
@@ -16598,13 +16598,14 @@
16598
16598
 
16599
16599
  filterIconRect(rect) {
16600
16600
  let BUTTON_SIZE = 22;
16601
- let BUTTON_OFFSET = 3;
16602
-
16601
+ let compactButton = rect.height < BUTTON_SIZE;
16602
+ let buttonSize = compactButton ? Math.max(rect.height - 2, 0) : BUTTON_SIZE;
16603
+
16603
16604
  return new Rectangle(
16604
- rect.right - BUTTON_SIZE - BUTTON_OFFSET,
16605
- rect.top + BUTTON_OFFSET,
16606
- BUTTON_SIZE,
16607
- BUTTON_SIZE
16605
+ rect.right - buttonSize,
16606
+ rect.bottom - buttonSize,
16607
+ buttonSize,
16608
+ buttonSize
16608
16609
  );
16609
16610
  }
16610
16611
 
@@ -16628,8 +16629,16 @@
16628
16629
  function filterButton(classNames, position, index) {
16629
16630
  let style = {
16630
16631
  left: position.left + "px",
16631
- top: position.top + "px"
16632
+ top: position.top + "px",
16633
+ width: position.width + "px",
16634
+ height: position.height + "px",
16635
+ padding: "0px",
16636
+ display: "flex",
16637
+ alignItems: "center",
16638
+ justifyContent: "center",
16639
+ boxSizing: "border-box"
16632
16640
  };
16641
+
16633
16642
  let filtered = filter && filter.columns.some(function(c) {
16634
16643
  return c.index === index;
16635
16644
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-spreadsheet-common",
3
3
  "description": "Kendo UI platform-independent Spreadsheet library",
4
- "version": "1.2.11",
4
+ "version": "1.2.12-develop.1",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],