@tekkare/auriga 0.1.141 → 0.1.143
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/module.json +1 -1
- package/dist/runtime/components/argDropdownBtn.vue +0 -1
- package/dist/runtime/components/argDropdownBtn.vue.d.ts +2 -7
- package/dist/runtime/components/argHybridChart.vue +15 -8
- package/dist/runtime/components/argHybridChart.vue.d.ts +1 -1
- package/dist/runtime/components/argNoSelectedScope.vue.d.ts +2 -2
- package/dist/runtime/components/argScopeChange.vue.d.ts +2 -2
- package/dist/runtime/components/argToolbarContent.vue +12 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -27,7 +27,6 @@ export default defineComponent({
|
|
|
27
27
|
props: {
|
|
28
28
|
btnStyle: { type: String, default: "primary-fill" }
|
|
29
29
|
},
|
|
30
|
-
emits: ["changeScope", "update:Scope", "onNewScope", "onClear"],
|
|
31
30
|
setup(props, { emit }) {
|
|
32
31
|
const isDisplay = ref(false);
|
|
33
32
|
function closeDropdown() {
|
|
@@ -7,17 +7,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
isDisplay: import("vue").Ref<boolean>;
|
|
8
8
|
closeDropdown: () => void;
|
|
9
9
|
changeDisplay: () => void;
|
|
10
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
btnStyle: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
}
|
|
16
|
-
onChangeScope?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
18
|
-
onOnNewScope?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
onOnClear?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
}, {
|
|
15
|
+
}>>, {
|
|
21
16
|
btnStyle: string;
|
|
22
17
|
}, {}>;
|
|
23
18
|
export default _default;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
class="oip_hybrid_chart__bar"
|
|
26
26
|
:style="{
|
|
27
27
|
background: barColor + '1a',
|
|
28
|
-
width: `${getPercentage(row.values[1]
|
|
28
|
+
width: `${getPercentage(row.values[1])}%`,
|
|
29
29
|
}"
|
|
30
30
|
></div>
|
|
31
31
|
<arg-tooltip
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
.format(val.value)
|
|
48
48
|
.replace(",", ".")
|
|
49
49
|
}}
|
|
50
|
-
<span
|
|
50
|
+
<span
|
|
51
|
+
class="oip_hybrid_chart__bar_percentage"
|
|
52
|
+
v-if="val.percentage"
|
|
51
53
|
>({{ val.percentage }} %)</span
|
|
52
54
|
>
|
|
53
55
|
</p>
|
|
@@ -165,14 +167,19 @@ export default defineComponent({
|
|
|
165
167
|
emit("showState", val);
|
|
166
168
|
}
|
|
167
169
|
function getPercentage(value) {
|
|
168
|
-
if (
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
if (value === maxValue.value) {
|
|
172
|
-
return 100;
|
|
170
|
+
if (value.percentage) {
|
|
171
|
+
if (maxValue.value === 100) {
|
|
172
|
+
return value.percentage;
|
|
173
173
|
} else {
|
|
174
|
-
|
|
174
|
+
if (value.percentage === maxValue.value) {
|
|
175
|
+
return 100;
|
|
176
|
+
} else {
|
|
177
|
+
return value.percentage * 100 / maxValue.value;
|
|
178
|
+
}
|
|
175
179
|
}
|
|
180
|
+
} else {
|
|
181
|
+
const all = props.contents.map((a) => a.values[1].value).reduce((acc, current) => acc + current, 0);
|
|
182
|
+
return value.value * 100 / all;
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
185
|
return {
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
showAll: import("vue").Ref<boolean>;
|
|
21
21
|
getMaxValue: () => void;
|
|
22
22
|
changeShowState: (val: boolean) => void;
|
|
23
|
-
getPercentage: (value:
|
|
23
|
+
getPercentage: (value: any) => any;
|
|
24
24
|
tableBody: import("vue").ComputedRef<never[]>;
|
|
25
25
|
isEllipsisActive: (value: string) => boolean | undefined;
|
|
26
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "showState"[], "showState", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
selectedScope: import("vue").Ref<any>;
|
|
14
14
|
selectScope: () => void;
|
|
15
15
|
createNewScope: () => void;
|
|
16
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectScope" | "update:Scope" | "onCreateScope")[], "onSelectScope" | "update:Scope" | "onCreateScope", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
lang: {
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
@@ -24,8 +24,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
default: () => never[];
|
|
25
25
|
};
|
|
26
26
|
}>> & {
|
|
27
|
-
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
28
27
|
onOnSelectScope?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
onOnCreateScope?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
lang: string;
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
selectedScope: import("vue").Ref<any>;
|
|
60
60
|
newScope: () => void;
|
|
61
61
|
clearScope: () => void;
|
|
62
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
62
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Scope" | "changeScope" | "onNewScope" | "onClear")[], "update:Scope" | "changeScope" | "onNewScope" | "onClear", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
scopes: {
|
|
64
64
|
type: {
|
|
65
65
|
(arrayLength: number): string[];
|
|
@@ -112,8 +112,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
112
|
default: boolean;
|
|
113
113
|
};
|
|
114
114
|
}>> & {
|
|
115
|
-
onChangeScope?: ((...args: any[]) => any) | undefined;
|
|
116
115
|
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onChangeScope?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
onOnNewScope?: ((...args: any[]) => any) | undefined;
|
|
118
118
|
onOnClear?: ((...args: any[]) => any) | undefined;
|
|
119
119
|
}, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
class="info_main_container"
|
|
4
4
|
:class="infoOpen ? 'info_main_container_open' : ''"
|
|
5
5
|
>
|
|
6
|
-
<div class="oip_info_container">
|
|
6
|
+
<div class="oip_info_container" @click.stop>
|
|
7
7
|
<div v-if="infoOpen" class="oip_info_close" @click="closeInfo()">
|
|
8
8
|
<arg-icon name="X" size="20" />
|
|
9
9
|
<p>Close</p>
|
|
@@ -103,6 +103,17 @@ export default defineComponent({
|
|
|
103
103
|
trueActiveMenu.value = new_active_menu;
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
|
+
watch(
|
|
107
|
+
() => infoOpen.value,
|
|
108
|
+
() => {
|
|
109
|
+
if (infoOpen.value) {
|
|
110
|
+
setTimeout(() => {
|
|
111
|
+
document.addEventListener("click", closeInfo);
|
|
112
|
+
}, 500);
|
|
113
|
+
} else
|
|
114
|
+
document.removeEventListener("click", closeInfo);
|
|
115
|
+
}
|
|
116
|
+
);
|
|
106
117
|
onMounted(() => {
|
|
107
118
|
trueActiveMenu.value = props.activeMenu;
|
|
108
119
|
infoOpen.value = props.toolbarOpen;
|