flexmonster 2.9.79 → 2.9.80

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 (52) hide show
  1. package/flexmonster.css +1 -1
  2. package/flexmonster.full.js +2472 -2428
  3. package/flexmonster.js +2361 -2317
  4. package/flexmonster.min.css +1 -1
  5. package/localizations/de.json +1 -0
  6. package/localizations/en.json +1 -0
  7. package/localizations/es.json +1 -0
  8. package/localizations/fr.json +1 -0
  9. package/localizations/hu.json +1 -0
  10. package/localizations/id.json +1 -0
  11. package/localizations/it.json +1 -0
  12. package/localizations/nl.json +1 -0
  13. package/localizations/pt.json +2 -1
  14. package/localizations/th.json +1 -0
  15. package/localizations/tr.json +1 -0
  16. package/localizations/uk.json +571 -570
  17. package/localizations/zh.json +1 -0
  18. package/package.json +1 -1
  19. package/theme/accessible/flexmonster.css +1 -1
  20. package/theme/accessible/flexmonster.min.css +1 -1
  21. package/theme/blackorange/flexmonster.css +1 -1
  22. package/theme/blackorange/flexmonster.min.css +1 -1
  23. package/theme/brightorange/flexmonster.css +1 -1
  24. package/theme/brightorange/flexmonster.min.css +1 -1
  25. package/theme/dark/flexmonster.css +1 -1
  26. package/theme/dark/flexmonster.min.css +1 -1
  27. package/theme/flexmonster-base.less +1 -1
  28. package/theme/green/flexmonster.css +1 -1
  29. package/theme/green/flexmonster.min.css +1 -1
  30. package/theme/lightblue/flexmonster.css +1 -1
  31. package/theme/lightblue/flexmonster.min.css +1 -1
  32. package/theme/macos/flexmonster.css +1 -1
  33. package/theme/macos/flexmonster.min.css +1 -1
  34. package/theme/midnight/flexmonster.css +1 -1
  35. package/theme/midnight/flexmonster.min.css +1 -1
  36. package/theme/old/flexmonster.css +1 -1
  37. package/theme/old/flexmonster.min.css +1 -1
  38. package/theme/orange/flexmonster.css +1 -1
  39. package/theme/orange/flexmonster.min.css +1 -1
  40. package/theme/purple/flexmonster.css +1 -1
  41. package/theme/purple/flexmonster.min.css +1 -1
  42. package/theme/softdefault/flexmonster.css +1 -1
  43. package/theme/softdefault/flexmonster.min.css +1 -1
  44. package/theme/stripedblue/flexmonster.css +1 -1
  45. package/theme/stripedblue/flexmonster.min.css +1 -1
  46. package/theme/stripedteal/flexmonster.css +1 -1
  47. package/theme/stripedteal/flexmonster.min.css +1 -1
  48. package/theme/teal/flexmonster.css +1 -1
  49. package/theme/teal/flexmonster.min.css +1 -1
  50. package/theme/yellow/flexmonster.css +1 -1
  51. package/theme/yellow/flexmonster.min.css +1 -1
  52. package/toolbar/flexmonster.toolbar.js +16 -6
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
3
- * June 2024 (v. 2.9.79)
3
+ * June 2024 (v. 2.9.80)
4
4
  * Copyright (c) 2024 Flexmonster. All rights reserved.
5
5
  *
6
6
  * Flexmonster Pivot Table & Charts commercial licenses may be obtained at
@@ -3098,6 +3098,7 @@ FlexmonsterToolbar.prototype.createTab = function (data, parent) {
3098
3098
  if (data.hasOwnProperty("class_attr")) {
3099
3099
  tabLink.setAttribute("class", data.class_attr);
3100
3100
  }
3101
+ tabLink.setAttribute("href", "#");
3101
3102
 
3102
3103
  if (data.icon) {
3103
3104
  var svgIcon = document.createElement("div");
@@ -3113,14 +3114,23 @@ FlexmonsterToolbar.prototype.createTab = function (data, parent) {
3113
3114
  tabLink.appendChild(title);
3114
3115
  var _this = this;
3115
3116
  var _handler = typeof data.handler == "function" ? data.handler : this[data.handler];
3117
+ var _args = data.args;
3116
3118
  var _onShowHandler = typeof data.onShowHandler == "function" ? data.onShowHandler : this[data.onShowHandler];
3117
3119
  if (!this.nullOrUndefined(_handler)) {
3118
- tabLink.onclick =
3119
- function (handler, args) {
3120
+ tabLink.onclick = function (event) {
3121
+ event.preventDefault();
3122
+ return function () {
3123
+ _handler.call(_this, _args);
3124
+ }();
3125
+ };
3126
+ tabLink.onkeydown = function (event) {
3127
+ if (event.key == "Enter" || event.code == "Space") {
3128
+ event.preventDefault();
3120
3129
  return function () {
3121
- handler.call(_this, args);
3122
- }
3123
- }(_handler, data.args);
3130
+ _handler.call(_this, _args);
3131
+ }();
3132
+ }
3133
+ }
3124
3134
  }
3125
3135
  if (!this.nullOrUndefined(_onShowHandler)) {
3126
3136
  tabLink.onmouseover =