ketekny-ui-kit 1.0.80 → 1.0.82
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/package.json
CHANGED
|
@@ -273,7 +273,7 @@ export default {
|
|
|
273
273
|
const onLeave = () => hide()
|
|
274
274
|
const onScrollOrResize = () => {
|
|
275
275
|
// If visible, keep it clamped while scrolling/resizing
|
|
276
|
-
if (bubble
|
|
276
|
+
if (state.nodes?.bubble?.classList.contains('opacity-100')) positionAndShow()
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
el.addEventListener('mouseenter', onEnter)
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
:show-contact-info="showContactInfo"
|
|
44
44
|
:account="account"
|
|
45
45
|
:contact-email="contactEmail"
|
|
46
|
+
:help-url="helpUrl"
|
|
46
47
|
:collapsed="isSidebarCollapsed"
|
|
47
48
|
@logo-click="handleLogoClick"
|
|
48
49
|
@signin="handleSignin"
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
:show-contact-info="showContactInfo"
|
|
96
97
|
:account="account"
|
|
97
98
|
:contact-email="contactEmail"
|
|
99
|
+
:help-url="helpUrl"
|
|
98
100
|
:collapsed="false"
|
|
99
101
|
@logo-click="handleLogoClick"
|
|
100
102
|
@item-click="closeMobileMenu"
|
|
@@ -155,6 +157,7 @@ export default {
|
|
|
155
157
|
showContactInfo: { type: Boolean, default: false },
|
|
156
158
|
account: { type: Object, default: null },
|
|
157
159
|
contactEmail: { type: String, default: "grammateia@ketekny.gr" },
|
|
160
|
+
helpUrl: { type: String, default: "" },
|
|
158
161
|
},
|
|
159
162
|
data() {
|
|
160
163
|
return {
|
|
@@ -23,10 +23,22 @@
|
|
|
23
23
|
{{ title }}
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
|
+
<div v-if="helpUrl && !collapsed" class="px-4 pb-2">
|
|
27
|
+
<a
|
|
28
|
+
:href="helpUrl"
|
|
29
|
+
target="_blank"
|
|
30
|
+
rel="noreferrer"
|
|
31
|
+
class="inline-flex items-center gap-2 rounded-md px-2 py-1.5 text-sm font-semibold text-white/85 transition hover:bg-white/10 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/70"
|
|
32
|
+
>
|
|
33
|
+
<kIcon name="HelpCircle" size="16" color="#ffffff" />
|
|
34
|
+
<span>Χρειάζεστε βοήθεια;</span>
|
|
35
|
+
</a>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
26
38
|
<slot name="sidebar-header" />
|
|
27
39
|
</div>
|
|
28
40
|
|
|
29
|
-
<div class="flex-1 pt-
|
|
41
|
+
<div class="flex-1 pt-1">
|
|
30
42
|
<div v-if="collapsed" class="flex flex-col items-center gap-2 mx-1 mt-3">
|
|
31
43
|
<component
|
|
32
44
|
:is="menuItemComponent(item)"
|
|
@@ -88,6 +100,19 @@
|
|
|
88
100
|
class="px-1 pb-4 border-b shrink-0 border-white/10 bg-slate-900/80 text-white/90"
|
|
89
101
|
>
|
|
90
102
|
<div v-if="collapsed" class="flex flex-col gap-3">
|
|
103
|
+
<div v-if="helpUrl" class="flex flex-col items-center gap-2">
|
|
104
|
+
<a
|
|
105
|
+
:href="helpUrl"
|
|
106
|
+
target="_blank"
|
|
107
|
+
rel="noreferrer"
|
|
108
|
+
aria-label="Χρειάζεστε βοήθεια;"
|
|
109
|
+
title="Χρειάζεστε βοήθεια;"
|
|
110
|
+
class="relative flex items-center justify-center text-white transition border group h-14 w-14 rounded-xl border-white/15 bg-white/5 hover:border-cyan-400/40 hover:bg-white/10"
|
|
111
|
+
v-tooltip.right="'Χρειάζεστε βοήθεια;'"
|
|
112
|
+
>
|
|
113
|
+
<kIcon name="HelpCircle" size="20" color="#ffffff" />
|
|
114
|
+
</a>
|
|
115
|
+
</div>
|
|
91
116
|
<div v-if="account.loggedIn" class="flex flex-col items-center gap-2">
|
|
92
117
|
<button
|
|
93
118
|
type="button"
|
|
@@ -243,6 +268,7 @@ const LABELS = {
|
|
|
243
268
|
contactAddress: "Βερανζέρου 13, 10677, Αθήνα",
|
|
244
269
|
};
|
|
245
270
|
|
|
271
|
+
|
|
246
272
|
export default {
|
|
247
273
|
name: "TwoColSidebarPanel",
|
|
248
274
|
components: {
|
|
@@ -271,6 +297,7 @@ export default {
|
|
|
271
297
|
showContactInfo: { type: Boolean, default: false },
|
|
272
298
|
account: { type: Object, default: null },
|
|
273
299
|
contactEmail: { type: String, default: "grammateia@ketekny.gr" },
|
|
300
|
+
helpUrl: { type: String, default: "" },
|
|
274
301
|
collapsed: { type: Boolean, default: false },
|
|
275
302
|
},
|
|
276
303
|
computed: {
|