@nhealth/fhir-terminology 0.1.2 → 0.1.3
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.
|
@@ -12,6 +12,31 @@ type __VLS_Props = {
|
|
|
12
12
|
* - 'memory' — in-memory only (no URL change, ideal for embedded use)
|
|
13
13
|
*/
|
|
14
14
|
mode?: 'query' | 'hash' | 'memory';
|
|
15
|
+
/**
|
|
16
|
+
* The layout orientation of the component shell.
|
|
17
|
+
* - 'horizontal' — Navigation bar at the top (default)
|
|
18
|
+
* - 'vertical' — Navigation sidebar on the left
|
|
19
|
+
* @default 'horizontal'
|
|
20
|
+
*/
|
|
21
|
+
orientation?: 'horizontal' | 'vertical';
|
|
22
|
+
/**
|
|
23
|
+
* How navigation items are matched against the current route.
|
|
24
|
+
* - 'prefix' — matches if route starts with item path (default)
|
|
25
|
+
* - 'exact' — matches only exact path
|
|
26
|
+
* @default 'prefix'
|
|
27
|
+
*/
|
|
28
|
+
activeMatch?: 'exact' | 'prefix';
|
|
29
|
+
/**
|
|
30
|
+
* The offset applied to the shell container height (e.g., for fixed headers).
|
|
31
|
+
* Can be a string (CSS value) or number (in pixels).
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
pageOffset?: string | number;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to show the leading slot (branding/logo area).
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
showLeading?: boolean;
|
|
15
40
|
};
|
|
16
41
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
42
|
declare const _default: typeof __VLS_export;
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
:mode="mode"
|
|
7
7
|
>
|
|
8
8
|
<NUtilsComponentShell
|
|
9
|
-
orientation="
|
|
9
|
+
:orientation="orientation"
|
|
10
10
|
:items="navItems"
|
|
11
|
+
:active-match="activeMatch"
|
|
12
|
+
:page-offset="pageOffset"
|
|
11
13
|
>
|
|
12
|
-
<template #leading>
|
|
14
|
+
<template v-if="showLeading" #leading>
|
|
13
15
|
<div class="px-4 py-3 border-gray-200 dark:border-gray-800 flex items-center gap-2.5">
|
|
14
16
|
<div class="flex items-center justify-center w-7 h-7 rounded-lg bg-primary-100 dark:bg-primary-900/40 shrink-0">
|
|
15
17
|
<UIcon name="i-lucide-book-marked" class="w-4 h-4 text-primary-600 dark:text-primary-400" />
|
|
@@ -32,7 +34,11 @@ import PackageImportPage from "../pages/packages/[id]/import.vue";
|
|
|
32
34
|
import ServerPage from "../pages/server.vue";
|
|
33
35
|
defineProps({
|
|
34
36
|
base: { type: String, required: false, default: "view" },
|
|
35
|
-
mode: { type: String, required: false, default: "query" }
|
|
37
|
+
mode: { type: String, required: false, default: "query" },
|
|
38
|
+
orientation: { type: String, required: false, default: "horizontal" },
|
|
39
|
+
activeMatch: { type: String, required: false, default: "prefix" },
|
|
40
|
+
pageOffset: { type: [String, Number], required: false, default: 0 },
|
|
41
|
+
showLeading: { type: Boolean, required: false, default: true }
|
|
36
42
|
});
|
|
37
43
|
const navItems = [
|
|
38
44
|
[
|
|
@@ -12,6 +12,31 @@ type __VLS_Props = {
|
|
|
12
12
|
* - 'memory' — in-memory only (no URL change, ideal for embedded use)
|
|
13
13
|
*/
|
|
14
14
|
mode?: 'query' | 'hash' | 'memory';
|
|
15
|
+
/**
|
|
16
|
+
* The layout orientation of the component shell.
|
|
17
|
+
* - 'horizontal' — Navigation bar at the top (default)
|
|
18
|
+
* - 'vertical' — Navigation sidebar on the left
|
|
19
|
+
* @default 'horizontal'
|
|
20
|
+
*/
|
|
21
|
+
orientation?: 'horizontal' | 'vertical';
|
|
22
|
+
/**
|
|
23
|
+
* How navigation items are matched against the current route.
|
|
24
|
+
* - 'prefix' — matches if route starts with item path (default)
|
|
25
|
+
* - 'exact' — matches only exact path
|
|
26
|
+
* @default 'prefix'
|
|
27
|
+
*/
|
|
28
|
+
activeMatch?: 'exact' | 'prefix';
|
|
29
|
+
/**
|
|
30
|
+
* The offset applied to the shell container height (e.g., for fixed headers).
|
|
31
|
+
* Can be a string (CSS value) or number (in pixels).
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
pageOffset?: string | number;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to show the leading slot (branding/logo area).
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
showLeading?: boolean;
|
|
15
40
|
};
|
|
16
41
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
42
|
declare const _default: typeof __VLS_export;
|