flexmonster 2.9.85 → 2.9.86

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.
Files changed (39) hide show
  1. package/flexmonster.css +1 -1
  2. package/flexmonster.full.js +2470 -2509
  3. package/flexmonster.js +2456 -2495
  4. package/flexmonster.min.css +1 -1
  5. package/package.json +1 -1
  6. package/theme/accessible/flexmonster.css +1 -1
  7. package/theme/accessible/flexmonster.min.css +1 -1
  8. package/theme/blackorange/flexmonster.css +1 -1
  9. package/theme/blackorange/flexmonster.min.css +1 -1
  10. package/theme/brightorange/flexmonster.css +1 -1
  11. package/theme/brightorange/flexmonster.min.css +1 -1
  12. package/theme/dark/flexmonster.css +1 -1
  13. package/theme/dark/flexmonster.min.css +1 -1
  14. package/theme/flexmonster-base.less +1 -1
  15. package/theme/green/flexmonster.css +1 -1
  16. package/theme/green/flexmonster.min.css +1 -1
  17. package/theme/lightblue/flexmonster.css +1 -1
  18. package/theme/lightblue/flexmonster.min.css +1 -1
  19. package/theme/macos/flexmonster.css +1 -1
  20. package/theme/macos/flexmonster.min.css +1 -1
  21. package/theme/midnight/flexmonster.css +1 -1
  22. package/theme/midnight/flexmonster.min.css +1 -1
  23. package/theme/old/flexmonster.css +1 -1
  24. package/theme/old/flexmonster.min.css +1 -1
  25. package/theme/orange/flexmonster.css +1 -1
  26. package/theme/orange/flexmonster.min.css +1 -1
  27. package/theme/purple/flexmonster.css +1 -1
  28. package/theme/purple/flexmonster.min.css +1 -1
  29. package/theme/softdefault/flexmonster.css +1 -1
  30. package/theme/softdefault/flexmonster.min.css +1 -1
  31. package/theme/stripedblue/flexmonster.css +1 -1
  32. package/theme/stripedblue/flexmonster.min.css +1 -1
  33. package/theme/stripedteal/flexmonster.css +1 -1
  34. package/theme/stripedteal/flexmonster.min.css +1 -1
  35. package/theme/teal/flexmonster.css +1 -1
  36. package/theme/teal/flexmonster.min.css +1 -1
  37. package/theme/yellow/flexmonster.css +1 -1
  38. package/theme/yellow/flexmonster.min.css +1 -1
  39. package/toolbar/flexmonster.toolbar.js +13 -16
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
3
- * September 2024 (v. 2.9.85)
3
+ * September 2024 (v. 2.9.86)
4
4
  * Copyright (c) 2024 Flexmonster. All rights reserved.
5
5
  *
6
6
  * Flexmonster Pivot Table & Charts commercial licenses may be obtained at
@@ -3211,7 +3211,8 @@ FlexmonsterToolbar.prototype.createTabMenu = function (dataProvider, parentTab)
3211
3211
 
3212
3212
  var _activeItemIndex = -1;
3213
3213
 
3214
- parentTab.querySelector("a").addEventListener("click", function () {
3214
+ parentTab.querySelector("a").addEventListener("click", function (e) {
3215
+ e.preventDefault();
3215
3216
  var _isOpen = parentTab.classList.contains("fm-opened");
3216
3217
  _isOpen ? hide() : show();
3217
3218
  });
@@ -3601,7 +3602,7 @@ FlexmonsterToolbar.ColorPicker = function (toolbar, popupContainer) {
3601
3602
  });
3602
3603
  this.popup.addEventListener("keydown", function (e) {
3603
3604
  if (e.keyCode == 27) {
3604
- _this.closePopup();
3605
+ _this.closePopup(_this.cancelHandler);
3605
3606
  e.stopImmediatePropagation();
3606
3607
  }
3607
3608
  });
@@ -3748,14 +3749,14 @@ FlexmonsterToolbar.ColorPicker = function (toolbar, popupContainer) {
3748
3749
 
3749
3750
  function onBodyClick(event) {
3750
3751
  if (_this.isOpened()) {
3751
- _this.closePopup();
3752
+ _this.closePopup(_this.cancelHandler);
3752
3753
  }
3753
3754
  }
3754
3755
 
3755
3756
  function onColorButtonClick(event) {
3756
3757
  event.stopPropagation();
3757
3758
  if (_this.isOpened()) {
3758
- _this.closePopup();
3759
+ _this.closePopup(_this.cancelHandler);
3759
3760
  } else {
3760
3761
  _this.openPopup();
3761
3762
  }
@@ -3793,19 +3794,11 @@ FlexmonsterToolbar.ColorPicker = function (toolbar, popupContainer) {
3793
3794
  }
3794
3795
 
3795
3796
  function onApplyClick(e) {
3796
- _this.closePopup();
3797
- if (_this.applyHandler) {
3798
- _this.applyHandler();
3799
- }
3800
- _this.colorPickerButton.focus();
3797
+ _this.closePopup(_this.applyHandler);
3801
3798
  }
3802
3799
 
3803
3800
  function onCancelClick(e) {
3804
- _this.closePopup();
3805
- if (_this.cancelHandler) {
3806
- _this.cancelHandler();
3807
- }
3808
- _this.colorPickerButton.focus();
3801
+ _this.closePopup(_this.cancelHandler);
3809
3802
  }
3810
3803
  }
3811
3804
  FlexmonsterToolbar.ColorPicker.prototype.colors = {
@@ -3912,7 +3905,7 @@ FlexmonsterToolbar.ColorPicker.prototype.findMain = function (color) {
3912
3905
  FlexmonsterToolbar.ColorPicker.prototype.isColor = function (value) {
3913
3906
  return value.match(/^#?[0-9A-Fa-f]{6}$/g);
3914
3907
  }
3915
- FlexmonsterToolbar.ColorPicker.prototype.closePopup = function () {
3908
+ FlexmonsterToolbar.ColorPicker.prototype.closePopup = function (callback) {
3916
3909
  if (!this.popup.parentElement) {
3917
3910
  return;
3918
3911
  }
@@ -3923,6 +3916,10 @@ FlexmonsterToolbar.ColorPicker.prototype.closePopup = function () {
3923
3916
  setTimeout(function () {
3924
3917
  _this.justClosed = false;
3925
3918
  }, 100);
3919
+ if (callback) {
3920
+ callback();
3921
+ }
3922
+ this.colorPickerButton.focus();
3926
3923
  }
3927
3924
  FlexmonsterToolbar.ColorPicker.prototype.openPopup = function () {
3928
3925
  if (this.justClosed) {