@tekkare/auriga 0.2.186 → 0.2.187
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
|
@@ -14,11 +14,7 @@
|
|
|
14
14
|
: 'arg_sidebar_header_small',
|
|
15
15
|
]"
|
|
16
16
|
>
|
|
17
|
-
<
|
|
18
|
-
v-if="homeLink !== null"
|
|
19
|
-
:to="homeLink"
|
|
20
|
-
class="arg_sidebar_home"
|
|
21
|
-
>
|
|
17
|
+
<div v-if="homeLink !== null" class="arg_sidebar_home" @click="goHome()">
|
|
22
18
|
<arg-tooltip
|
|
23
19
|
:tooltip-text="langData === null ? '' : langData?.home"
|
|
24
20
|
:disable="sidebarOpen"
|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
<arg-icon name="House" color="var(--primary)" />
|
|
32
28
|
</arg-tooltip>
|
|
33
29
|
<span v-if="sidebarOpen"> {{ langData?.home }} </span>
|
|
34
|
-
</
|
|
30
|
+
</div>
|
|
35
31
|
<div class="sidebar_toggle" @click="toggleSidebar()">
|
|
36
32
|
<arg-tooltip
|
|
37
33
|
:tooltip-text="langData === null ? '' : langData?.open"
|
|
@@ -134,14 +130,20 @@ export default defineComponent({
|
|
|
134
130
|
emit("update:Sidebar", !sidebarOpen.value);
|
|
135
131
|
sidebarOpen.value = !sidebarOpen.value;
|
|
136
132
|
}
|
|
133
|
+
function goHome() {
|
|
134
|
+
if (props.homeLink !== null) {
|
|
135
|
+
window.location.href = props.homeLink;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
137
138
|
return {
|
|
138
139
|
sidebarOpen,
|
|
139
140
|
toggleSidebar,
|
|
141
|
+
goHome,
|
|
140
142
|
langData
|
|
141
143
|
};
|
|
142
144
|
}
|
|
143
145
|
});
|
|
144
146
|
</script>
|
|
145
147
|
<style scoped>
|
|
146
|
-
.arg_sidebar{align-items:flex-start;background:var(--lightest);border-right:1px solid var(--light,#ececf2);box-sizing:border-box;display:flex;flex-direction:column;gap:16px;height:100vh;left:0;padding:16px 8px;position:fixed;top:0;transition:all .3s ease;width:54px;z-index:98}.arg_sidebar_open{width:200px}.arg_sidebar_header_full{align-items:center;align-self:stretch;display:flex}.arg_sidebar_header_full.center{display:flex;justify-content:space-between}.arg_sidebar_header_full.end{display:flex;justify-content:flex-end}.arg_sidebar_header_small{align-items:center;display:flex;flex-direction:column;gap:var(--xxs,4px)}.arg_sidebar_home{background:var(--transparent);border-radius:4px;color:var(--primary);font-size:14px;font-weight:400;gap:6px;height:32px;line-height:160%;padding:6px}.arg_sidebar_home,.arg_sidebar_title{align-items:center;display:flex;font-style:normal}.arg_sidebar_title{align-self:stretch;flex-direction:row;font-size:20px;font-weight:900;gap:8px;line-height:normal;margin-bottom:16px;padding:0 8px}.arg_sidebar_body{display:flex;flex-direction:column;gap:16px;height:100%;justify-content:space-between;width:100%}.arg_sidebar_content{display:flex;flex-direction:column;gap:8px;max-height:632px;overflow-y:scroll}.arg_sidebar_content::-webkit-scrollbar{height:5px;width:5px}.arg_sidebar_content::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.arg_sidebar_content::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.sidebar_toggle{align-items:center;align-self:flex-end;background:transparent;border-radius:4px;cursor:pointer;display:flex;justify-content:center;padding:6px}.link_menu_tooltip_icon{flex:1 1 100%}.tooltip_display{display:flex!important}.arg_sidebar_home:hover,.sidebar_toggle:hover{background:var(--light,#ececf2)!important}
|
|
148
|
+
.arg_sidebar{align-items:flex-start;background:var(--lightest);border-right:1px solid var(--light,#ececf2);box-sizing:border-box;display:flex;flex-direction:column;gap:16px;height:100vh;left:0;padding:16px 8px;position:fixed;top:0;transition:all .3s ease;width:54px;z-index:98}.arg_sidebar_open{width:200px}.arg_sidebar_header_full{align-items:center;align-self:stretch;display:flex}.arg_sidebar_header_full.center{display:flex;justify-content:space-between}.arg_sidebar_header_full.end{display:flex;justify-content:flex-end}.arg_sidebar_header_small{align-items:center;display:flex;flex-direction:column;gap:var(--xxs,4px)}.arg_sidebar_home{background:var(--transparent);border-radius:4px;color:var(--primary);cursor:pointer;font-size:14px;font-weight:400;gap:6px;height:32px;line-height:160%;padding:6px}.arg_sidebar_home,.arg_sidebar_title{align-items:center;display:flex;font-style:normal}.arg_sidebar_title{align-self:stretch;flex-direction:row;font-size:20px;font-weight:900;gap:8px;line-height:normal;margin-bottom:16px;padding:0 8px}.arg_sidebar_body{display:flex;flex-direction:column;gap:16px;height:100%;justify-content:space-between;width:100%}.arg_sidebar_content{display:flex;flex-direction:column;gap:8px;max-height:632px;overflow-y:scroll}.arg_sidebar_content::-webkit-scrollbar{height:5px;width:5px}.arg_sidebar_content::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.arg_sidebar_content::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.sidebar_toggle{align-items:center;align-self:flex-end;background:transparent;border-radius:4px;cursor:pointer;display:flex;justify-content:center;padding:6px}.link_menu_tooltip_icon{flex:1 1 100%}.tooltip_display{display:flex!important}.arg_sidebar_home:hover,.sidebar_toggle:hover{background:var(--light,#ececf2)!important}
|
|
147
149
|
</style>
|
|
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
}>, {
|
|
20
20
|
sidebarOpen: import("vue").Ref<boolean, boolean>;
|
|
21
21
|
toggleSidebar: () => void;
|
|
22
|
+
goHome: () => void;
|
|
22
23
|
langData: import("vue").Ref<any, any>;
|
|
23
24
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSidebarChange" | "update:Sidebar")[], "onSidebarChange" | "update:Sidebar", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
25
|
name: {
|