@bagelink/vue 1.15.232 → 1.15.238

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.
@@ -7,6 +7,7 @@ export interface NavLink {
7
7
  href?: string;
8
8
  localized?: string;
9
9
  children?: NavLink[];
10
+ exact?: boolean;
10
11
  action?: () => void;
11
12
  class?: string;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NavLink.d.ts","sourceRoot":"","sources":["../../src/types/NavLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,kBAAkB,CAAA;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd"}
1
+ {"version":3,"file":"NavLink.d.ts","sourceRoot":"","sources":["../../src/types/NavLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,kBAAkB,CAAA;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.15.232",
4
+ "version": "1.15.238",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -33,6 +33,8 @@ const route = useRoute()
33
33
  watch(
34
34
  () => route.fullPath,
35
35
  async () => {
36
+ // Hash-only / hash navigations scroll to the target — don't yank back to top.
37
+ if (route.hash) return
36
38
  await nextTick()
37
39
  const container = anchor.value?.closest('.pageContent') as HTMLElement | null
38
40
  if (container) container.scrollTop = 0
@@ -381,6 +381,9 @@ max-width: 30vw;
381
381
  .col:has(.bagel-input) {
382
382
  padding: 0rem 0.25rem;
383
383
  }
384
+ .col .bgl-checkbox {
385
+ margin-bottom: 0 !important;
386
+ }
384
387
 
385
388
  .col>div {
386
389
  display: flex;
@@ -8,6 +8,7 @@ import { resolveI18n } from '../../i18n'
8
8
  interface LinkWithAction extends NavLink {
9
9
  activeRoutes?: string[]
10
10
  children?: LinkWithAction[]
11
+ exact?: boolean
11
12
  action?: () => void
12
13
  }
13
14
 
@@ -34,6 +35,7 @@ function linkActive(link: LinkWithAction): boolean {
34
35
  p === '/' ? route.path === p : route.path === p || route.path.startsWith(`${p}/`))
35
36
  }
36
37
  if (!linkPath) return false
38
+ if (link.exact) return route.path === linkPath
37
39
  if (linkPath === '/') return route.path === linkPath
38
40
  return route.path === linkPath || route.path.startsWith(`${linkPath}/`)
39
41
  }
@@ -8,6 +8,7 @@ export interface NavLink {
8
8
  href?: string
9
9
  localized?: string
10
10
  children?: NavLink[]
11
+ exact?: boolean
11
12
  action?: () => void
12
13
  class?: string
13
14
  }