@tekkare/auriga 0.2.166 → 0.2.167
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
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
size="20"
|
|
27
27
|
:color="trueActiveMenu === item.name ? '' : 'var(--dark)'"
|
|
28
28
|
/>
|
|
29
|
-
<p>{{ item.name }}</p>
|
|
29
|
+
<p>{{ getLabel(item.name) }}</p>
|
|
30
30
|
</div>
|
|
31
31
|
<div
|
|
32
32
|
v-if="item.name === 'Sources' && sourceAmount > 0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
trueActiveMenu === item.name ? '' : 'hide',
|
|
46
46
|
]"
|
|
47
47
|
>
|
|
48
|
-
<slot :name="item.name
|
|
48
|
+
<slot :name="item.name" />
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
@@ -145,9 +145,11 @@ export default defineComponent({
|
|
|
145
145
|
infoOpen.value = props.toolbarOpen;
|
|
146
146
|
});
|
|
147
147
|
function toggleBodyOverflow(state) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
if (typeof window !== "undefined") {
|
|
149
|
+
const body = document.querySelector("html");
|
|
150
|
+
if (body) {
|
|
151
|
+
state ? body.style.setProperty("overflow", "hidden") : body.style.removeProperty("overflow");
|
|
152
|
+
}
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
155
|
watch(infoOpen, toggleBodyOverflow, { immediate: true });
|
|
@@ -155,6 +157,9 @@ export default defineComponent({
|
|
|
155
157
|
trueActiveMenu.value = item;
|
|
156
158
|
emit("update:Menu", trueActiveMenu.value);
|
|
157
159
|
}
|
|
160
|
+
function getLabel(item) {
|
|
161
|
+
return item.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (str) => str.toUpperCase());
|
|
162
|
+
}
|
|
158
163
|
function closeInfo() {
|
|
159
164
|
infoOpen.value = false;
|
|
160
165
|
emit("update:Open", infoOpen.value);
|
|
@@ -164,7 +169,8 @@ export default defineComponent({
|
|
|
164
169
|
trueActiveMenu,
|
|
165
170
|
openMenu,
|
|
166
171
|
closeInfo,
|
|
167
|
-
langData
|
|
172
|
+
langData,
|
|
173
|
+
getLabel
|
|
168
174
|
};
|
|
169
175
|
}
|
|
170
176
|
});
|
|
@@ -29,6 +29,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
29
29
|
openMenu: (item: string) => void;
|
|
30
30
|
closeInfo: () => void;
|
|
31
31
|
langData: import("vue").Ref<any, any>;
|
|
32
|
+
getLabel: (item: string) => string;
|
|
32
33
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Menu" | "update:Open")[], "update:Menu" | "update:Open", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
34
|
toolbarOpen: {
|
|
34
35
|
type: BooleanConstructor;
|