ketekny-ui-kit 1.0.98 → 1.0.99

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.98",
4
+ "version": "1.0.99",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -137,10 +137,16 @@ export default {
137
137
  methods: {
138
138
  syncActiveFromMenu() {
139
139
  const routePath = this.$route?.path
140
+ const routeFullPath = this.$route?.fullPath
140
141
  const findMatch = (items, parentIds = []) => {
141
142
  for (const item of items) {
142
143
  const itemPath = item?.link?.to ?? item?.to ?? null
143
- if (routePath && itemPath === routePath) {
144
+ const normalizedItemPath = typeof itemPath === 'string' ? itemPath.split('?')[0] : null
145
+ const matchesPath =
146
+ (routeFullPath && itemPath === routeFullPath) ||
147
+ (routePath && normalizedItemPath === routePath)
148
+
149
+ if (matchesPath) {
144
150
  return {
145
151
  id: item.id,
146
152
  parentIds,
@@ -261,14 +267,14 @@ export default {
261
267
  v-if="collapsed"
262
268
  src="https://s3.ketekny.gr/public/web-apps/logos/logo-icon-dark.png"
263
269
  alt="Ketekny logo"
264
- class="size-9 shrink-0 rounded-lg object-contain"
270
+ class="size-9 shrink-0 rounded-lg object-contain cursor-pointer"
265
271
  @click="handleLogoClick"
266
272
  />
267
273
  <img
268
274
  v-else
269
275
  src="https://support.ketekny.gr/logo-dark.png"
270
276
  alt="Ketekny logo"
271
- class="h-10 min-w-0 flex-1 object-contain"
277
+ class="min-w-0 flex-1 object-contain cursor-pointer"
272
278
  @click="handleLogoClick"
273
279
  />
274
280
  </div>