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.
- package/flexmonster.css +1 -1
- package/flexmonster.full.js +134 -134
- package/flexmonster.js +16 -16
- package/flexmonster.min.css +1 -1
- package/package.json +1 -1
- package/theme/accessible/flexmonster.css +1 -1
- package/theme/accessible/flexmonster.min.css +1 -1
- package/theme/blackorange/flexmonster.css +1 -1
- package/theme/blackorange/flexmonster.min.css +1 -1
- package/theme/brightorange/flexmonster.css +1 -1
- package/theme/brightorange/flexmonster.min.css +1 -1
- package/theme/dark/flexmonster.css +1 -1
- package/theme/dark/flexmonster.min.css +1 -1
- package/theme/flexmonster-base.less +1 -1
- package/theme/green/flexmonster.css +1 -1
- package/theme/green/flexmonster.min.css +1 -1
- package/theme/lightblue/flexmonster.css +1 -1
- package/theme/lightblue/flexmonster.min.css +1 -1
- package/theme/macos/flexmonster.css +1 -1
- package/theme/macos/flexmonster.min.css +1 -1
- package/theme/midnight/flexmonster.css +1 -1
- package/theme/midnight/flexmonster.min.css +1 -1
- package/theme/old/flexmonster.css +1 -1
- package/theme/old/flexmonster.min.css +1 -1
- package/theme/orange/flexmonster.css +1 -1
- package/theme/orange/flexmonster.min.css +1 -1
- package/theme/purple/flexmonster.css +1 -1
- package/theme/purple/flexmonster.min.css +1 -1
- package/theme/softdefault/flexmonster.css +1 -1
- package/theme/softdefault/flexmonster.min.css +1 -1
- package/theme/stripedblue/flexmonster.css +1 -1
- package/theme/stripedblue/flexmonster.min.css +1 -1
- package/theme/stripedteal/flexmonster.css +1 -1
- package/theme/stripedteal/flexmonster.min.css +1 -1
- package/theme/teal/flexmonster.css +1 -1
- package/theme/teal/flexmonster.min.css +1 -1
- package/theme/yellow/flexmonster.css +1 -1
- package/theme/yellow/flexmonster.min.css +1 -1
- package/toolbar/flexmonster.toolbar.js +16 -7
- 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.
|
|
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
|
|
1830
|
-
|
|
1831
|
-
|
|
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 = [{
|
package/types/flexmonster.d.ts
CHANGED
|
@@ -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;
|