flexmonster 2.9.74 → 2.9.75

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 (40) hide show
  1. package/flexmonster.css +1 -1
  2. package/flexmonster.full.js +134 -134
  3. package/flexmonster.js +16 -16
  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 +16 -7
  40. package/types/flexmonster.d.ts +14 -0
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
3
- * April 2024 (v. 2.9.74)
3
+ * April 2024 (v. 2.9.75)
4
4
  * Copyright (c) 2024 Flexmonster. All rights reserved.
5
5
  *
6
6
  * Flexmonster Pivot Table & Charts commercial licenses may be obtained at
@@ -1826,16 +1826,19 @@ FlexmonsterToolbar.prototype.showConditionalFormattingDialog = function (measure
1826
1826
  _this.pivot.refresh();
1827
1827
  };
1828
1828
  var onAddConditionBtnClick = function () {
1829
- var condition = {
1830
- sign: "<",
1831
- value1: "0",
1832
- measures: measures,
1833
- format: {
1829
+ var conditionalFormat = _this.defaults.defaultConditionalFormat
1830
+ ? _this.defaults.defaultConditionalFormat
1831
+ : {
1834
1832
  fontFamily: 'Arial',
1835
1833
  fontSize: '12px',
1836
1834
  color: '#000000',
1837
1835
  backgroundColor: '#FFFFFF'
1838
- }
1836
+ };
1837
+ var condition = {
1838
+ sign: "<",
1839
+ value1: "0",
1840
+ measures: measures,
1841
+ format: conditionalFormat
1839
1842
  };
1840
1843
  conditions.unshift(condition);
1841
1844
  var item = _this.createConditionalFormattingItem(condition, conditions, isMSAS);
@@ -1992,6 +1995,12 @@ FlexmonsterToolbar.prototype.showConditionalFormattingDialog = function (measure
1992
1995
  dialog.setContent(content);
1993
1996
  this.popupManager.addPopup(dialog);
1994
1997
  };
1998
+ FlexmonsterToolbar.prototype.defaults.defaultConditionalFormat = {
1999
+ fontFamily: 'Arial',
2000
+ fontSize: '12px',
2001
+ color: '#000000',
2002
+ backgroundColor: '#FFFFFF'
2003
+ };
1995
2004
  FlexmonsterToolbar.prototype.defaults.fontSizes = ["8px", "9px", "10px", "11px", "12px", "13px", "14px"];
1996
2005
  FlexmonsterToolbar.prototype.defaults.fonts = ['Arial', 'Lucida Sans Unicode', 'Verdana', 'Courier New', 'Palatino Linotype', 'Tahoma', 'Impact', 'Trebuchet MS', 'Georgia', 'Times New Roman'];
1997
2006
  FlexmonsterToolbar.prototype.defaults.conditions = [{
@@ -725,6 +725,7 @@ declare namespace Flexmonster {
725
725
 
726
726
  interface Toolbar {
727
727
  getTabs: () => ToolbarTab[];
728
+ defaults: ToolbarDefaults;
728
729
  // Connect tab
729
730
  connectLocalCSVHandler: () => void;
730
731
  connectLocalJSONHandler: () => void;
@@ -790,6 +791,19 @@ declare namespace Flexmonster {
790
791
  showShareReportTab?: boolean;
791
792
  }
792
793
 
794
+ interface ToolbarDefaults {
795
+ defaultConditionalFormat: {
796
+ fontFamily: string;
797
+ fontSize: string;
798
+ color: string;
799
+ backgroundColor: string;
800
+ };
801
+ fonts: string[];
802
+ /** Ends with px. Example: ["8px", "9px"] */
803
+ fontSize: string[];
804
+
805
+ }
806
+
793
807
  interface ToolbarTab {
794
808
  android?: boolean;
795
809
  args?: any;