flexmonster 2.9.31 → 2.9.32

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 (54) hide show
  1. package/flexmonster.css +1 -1
  2. package/flexmonster.es5.full.js +202 -202
  3. package/flexmonster.es5.js +195 -195
  4. package/flexmonster.full.js +202 -202
  5. package/flexmonster.js +195 -195
  6. package/flexmonster.min.css +1 -1
  7. package/localizations/de.json +1 -0
  8. package/localizations/en.json +1 -0
  9. package/localizations/es.json +1 -0
  10. package/localizations/fr.json +1 -0
  11. package/localizations/hu.json +1 -0
  12. package/localizations/id.json +1 -0
  13. package/localizations/it.json +1 -0
  14. package/localizations/nl.json +1 -0
  15. package/localizations/pt.json +1 -0
  16. package/localizations/th.json +1 -0
  17. package/localizations/tr.json +1 -0
  18. package/localizations/uk.json +2 -1
  19. package/localizations/zh.json +1 -0
  20. package/package.json +1 -1
  21. package/theme/accessible/flexmonster.css +1 -1
  22. package/theme/accessible/flexmonster.min.css +1 -1
  23. package/theme/blackorange/flexmonster.css +1 -1
  24. package/theme/blackorange/flexmonster.min.css +1 -1
  25. package/theme/brightorange/flexmonster.css +1 -1
  26. package/theme/brightorange/flexmonster.min.css +1 -1
  27. package/theme/dark/flexmonster.css +1 -1
  28. package/theme/dark/flexmonster.min.css +1 -1
  29. package/theme/flexmonster-base.less +1 -1
  30. package/theme/green/flexmonster.css +1 -1
  31. package/theme/green/flexmonster.min.css +1 -1
  32. package/theme/lightblue/flexmonster.css +1 -1
  33. package/theme/lightblue/flexmonster.min.css +1 -1
  34. package/theme/macos/flexmonster.css +1 -1
  35. package/theme/macos/flexmonster.min.css +1 -1
  36. package/theme/midnight/flexmonster.css +1 -1
  37. package/theme/midnight/flexmonster.min.css +1 -1
  38. package/theme/old/flexmonster.css +1 -1
  39. package/theme/old/flexmonster.min.css +1 -1
  40. package/theme/orange/flexmonster.css +1 -1
  41. package/theme/orange/flexmonster.min.css +1 -1
  42. package/theme/purple/flexmonster.css +1 -1
  43. package/theme/purple/flexmonster.min.css +1 -1
  44. package/theme/softdefault/flexmonster.css +1 -1
  45. package/theme/softdefault/flexmonster.min.css +1 -1
  46. package/theme/stripedblue/flexmonster.css +1 -1
  47. package/theme/stripedblue/flexmonster.min.css +1 -1
  48. package/theme/stripedteal/flexmonster.css +1 -1
  49. package/theme/stripedteal/flexmonster.min.css +1 -1
  50. package/theme/teal/flexmonster.css +1 -1
  51. package/theme/teal/flexmonster.min.css +1 -1
  52. package/theme/yellow/flexmonster.css +1 -1
  53. package/theme/yellow/flexmonster.min.css +1 -1
  54. package/toolbar/flexmonster.toolbar.js +6 -9
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
3
- * August 2022 (v. 2.9.31)
3
+ * August 2022 (v. 2.9.32)
4
4
  * Copyright (c) 2022 Flexmonster. All rights reserved.
5
5
  *
6
6
  * Flexmonster Pivot Table & Charts commercial licenses may be obtained at
@@ -441,7 +441,8 @@ FlexmonsterToolbar.prototype.init = function () {
441
441
  }
442
442
 
443
443
  var enableToolbarScrolling = function () { //enables scrolling if possible
444
- if (_this.toolbar.scrollWidth - _this.toolbar.clientWidth > 0) {
444
+ var singleArrowWidth = 20;
445
+ if (_this.toolbar.scrollWidth - _this.toolbar.clientWidth > singleArrowWidth) {
445
446
  _this.leftScrollButton = document.createElement("div");
446
447
  _this.leftScrollButton.classList.add("fm-left-scroll-button");
447
448
  _this.rightScrollButton = document.createElement("div");
@@ -509,21 +510,17 @@ FlexmonsterToolbar.prototype.init = function () {
509
510
  }
510
511
  }
511
512
 
512
-
513
513
  _this._redrawToolbar = function () {
514
514
  clear();
515
-
516
515
  createToolbar();
517
-
518
516
  enableToolbarScrolling();
519
-
520
517
  if (_this.isFullscreen()) {
521
- document.querySelector("#fm-tab-fullscreen > a > div").innerHTML = _this.icons.minimize;
518
+ _this.pivotContainer.querySelector("#fm-tab-fullscreen > a > div").innerHTML = _this.icons.minimize;
519
+ _this.setText(_this.pivotContainer.querySelector("#fm-tab-fullscreen .fm-tab-label"), _this.Labels.minimize);
522
520
  }
523
521
  }
524
-
522
+
525
523
  _this._redrawToolbar();
526
-
527
524
  window.addEventListener("resize", _this._redrawToolbar);
528
525
  }
529
526