evui 3.4.45 → 3.4.46
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/dist/evui.common.js +151 -146
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +151 -146
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/scale/scale.js +3 -1
- package/src/components/chart/scale/scale.linear.js +4 -3
- package/src/components/chart/scale/scale.logarithmic.js +7 -4
- package/src/components/chart/scale/scale.time.category.js +4 -3
- package/src/components/chart/scale/scale.time.js +4 -3
- package/src/components/checkbox/Checkbox.vue +3 -0
- package/src/components/grid/Grid.vue +0 -6
- package/src/components/grid/uses.js +1 -1
- package/src/components/treeGrid/uses.js +1 -1
package/package.json
CHANGED
|
@@ -70,6 +70,7 @@ class Scale {
|
|
|
70
70
|
calculateScaleRange(minMax, scrollbarOpt) {
|
|
71
71
|
let maxValue;
|
|
72
72
|
let minValue;
|
|
73
|
+
let isDefaultMaxSameAsMin = false;
|
|
73
74
|
|
|
74
75
|
const range = scrollbarOpt?.use ? scrollbarOpt?.range : this.range;
|
|
75
76
|
if (range?.length === 2) {
|
|
@@ -95,10 +96,11 @@ class Scale {
|
|
|
95
96
|
|
|
96
97
|
if (maxValue === minValue) {
|
|
97
98
|
maxValue += 1;
|
|
99
|
+
isDefaultMaxSameAsMin = true;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
const minLabel = this.getLabelFormat(minValue);
|
|
101
|
-
const maxLabel = this.getLabelFormat(maxValue);
|
|
103
|
+
const maxLabel = this.getLabelFormat(maxValue, isDefaultMaxSameAsMin);
|
|
102
104
|
|
|
103
105
|
return {
|
|
104
106
|
min: minValue,
|
|
@@ -4,13 +4,14 @@ import Util from '../helpers/helpers.util';
|
|
|
4
4
|
class LinearScale extends Scale {
|
|
5
5
|
/**
|
|
6
6
|
* Transforming label by designated format
|
|
7
|
-
* @param {number} value
|
|
7
|
+
* @param {number} value label value
|
|
8
|
+
* @param {boolean} isMaxValueSameAsMin is default max value same as min value
|
|
8
9
|
*
|
|
9
10
|
* @returns {string} formatted label
|
|
10
11
|
*/
|
|
11
|
-
getLabelFormat(value) {
|
|
12
|
+
getLabelFormat(value, isMaxValueSameAsMin) {
|
|
12
13
|
if (this.formatter) {
|
|
13
|
-
const formattedLabel = this.formatter(value);
|
|
14
|
+
const formattedLabel = this.formatter(value, isMaxValueSameAsMin);
|
|
14
15
|
|
|
15
16
|
if (typeof formattedLabel === 'string') {
|
|
16
17
|
return formattedLabel;
|
|
@@ -11,6 +11,7 @@ class LogarithmicScale extends Scale {
|
|
|
11
11
|
calculateScaleRange(minMax) {
|
|
12
12
|
let maxValue;
|
|
13
13
|
let minValue;
|
|
14
|
+
let isDefaultMaxSameAsMin = false;
|
|
14
15
|
if (this.range && this.range.length === 2) {
|
|
15
16
|
maxValue = this.range[1];
|
|
16
17
|
minValue = this.range[0];
|
|
@@ -28,10 +29,11 @@ class LogarithmicScale extends Scale {
|
|
|
28
29
|
|
|
29
30
|
if (maxValue === minValue) {
|
|
30
31
|
maxValue += 1;
|
|
32
|
+
isDefaultMaxSameAsMin = true;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
const minLabel = this.getLabelFormat(minValue);
|
|
34
|
-
const maxLabel = this.getLabelFormat(maxValue);
|
|
36
|
+
const maxLabel = this.getLabelFormat(maxValue, isDefaultMaxSameAsMin);
|
|
35
37
|
|
|
36
38
|
return {
|
|
37
39
|
min: minValue,
|
|
@@ -96,13 +98,14 @@ class LogarithmicScale extends Scale {
|
|
|
96
98
|
|
|
97
99
|
/**
|
|
98
100
|
* Transforming label by designated format
|
|
99
|
-
* @param {
|
|
101
|
+
* @param {number} value label value
|
|
102
|
+
* @param {boolean} isMaxValueSameAsMin is default max value same as min value
|
|
100
103
|
*
|
|
101
104
|
* @returns {string} formatted label
|
|
102
105
|
*/
|
|
103
|
-
getLabelFormat(value) {
|
|
106
|
+
getLabelFormat(value, isMaxValueSameAsMin) {
|
|
104
107
|
if (this.formatter) {
|
|
105
|
-
const formattedLabel = this.formatter(value);
|
|
108
|
+
const formattedLabel = this.formatter(value, isMaxValueSameAsMin);
|
|
106
109
|
|
|
107
110
|
if (typeof formattedLabel === 'string') {
|
|
108
111
|
return formattedLabel;
|
|
@@ -12,13 +12,14 @@ class TimeCategoryScale extends Scale {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Transforming label by designated format
|
|
15
|
-
* @param {number} value
|
|
15
|
+
* @param {number} value label value
|
|
16
|
+
* @param {boolean} isMaxValueSameAsMin is default max value same as min value
|
|
16
17
|
*
|
|
17
18
|
* @returns {string} formatted label
|
|
18
19
|
*/
|
|
19
|
-
getLabelFormat(value) {
|
|
20
|
+
getLabelFormat(value, isMaxValueSameAsMin) {
|
|
20
21
|
if (this.formatter) {
|
|
21
|
-
const formattedLabel = this.formatter(value);
|
|
22
|
+
const formattedLabel = this.formatter(value, isMaxValueSameAsMin);
|
|
22
23
|
|
|
23
24
|
if (typeof formattedLabel === 'string') {
|
|
24
25
|
return formattedLabel;
|
|
@@ -5,13 +5,14 @@ import Scale from './scale';
|
|
|
5
5
|
class TimeScale extends Scale {
|
|
6
6
|
/**
|
|
7
7
|
* Transforming label by designated format
|
|
8
|
-
* @param {number} value
|
|
8
|
+
* @param {number} value label value
|
|
9
|
+
* @param {boolean} isMaxValueSameAsMin is default max value same as min value
|
|
9
10
|
*
|
|
10
11
|
* @returns {string} formatted label
|
|
11
12
|
*/
|
|
12
|
-
getLabelFormat(value) {
|
|
13
|
+
getLabelFormat(value, isMaxValueSameAsMin) {
|
|
13
14
|
if (this.formatter) {
|
|
14
|
-
const formattedLabel = this.formatter(value);
|
|
15
|
+
const formattedLabel = this.formatter(value, isMaxValueSameAsMin);
|
|
15
16
|
|
|
16
17
|
if (typeof formattedLabel === 'string') {
|
|
17
18
|
return formattedLabel;
|
|
@@ -1413,13 +1413,7 @@ export default {
|
|
|
1413
1413
|
|
|
1414
1414
|
onBeforeMount(() => initWrapperDiv());
|
|
1415
1415
|
|
|
1416
|
-
const getWidth = (w) => {
|
|
1417
|
-
console.log(w);
|
|
1418
|
-
return w;
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
1416
|
return {
|
|
1422
|
-
getWidth,
|
|
1423
1417
|
summaryScroll,
|
|
1424
1418
|
showHeader,
|
|
1425
1419
|
stripeStyle,
|
|
@@ -1119,7 +1119,7 @@ export const contextMenuEvent = (params) => {
|
|
|
1119
1119
|
const onGridSettingContextMenu = (e) => {
|
|
1120
1120
|
const { useDefaultColumnSetting, columnSettingTextInfo } = columnSettingInfo;
|
|
1121
1121
|
const columnListMenu = {
|
|
1122
|
-
text: columnSettingTextInfo?.
|
|
1122
|
+
text: columnSettingTextInfo?.title ?? 'Column List',
|
|
1123
1123
|
isShowMenu: true,
|
|
1124
1124
|
click: () => {
|
|
1125
1125
|
columnSettingInfo.isShowColumnSetting = true;
|
|
@@ -668,7 +668,7 @@ export const contextMenuEvent = (params) => {
|
|
|
668
668
|
const onGridSettingContextMenu = (e) => {
|
|
669
669
|
const { useDefaultColumnSetting, columnSettingTextInfo } = columnSettingInfo;
|
|
670
670
|
const columnListMenu = {
|
|
671
|
-
text: columnSettingTextInfo?.
|
|
671
|
+
text: columnSettingTextInfo?.title ?? 'Column List',
|
|
672
672
|
isShowMenu: true,
|
|
673
673
|
click: () => {
|
|
674
674
|
columnSettingInfo.isShowColumnSetting = true;
|