@sit-onyx/nuxt-docs 0.1.0-dev-20251112131902 → 0.1.0-dev-20251118074438
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.
|
@@ -64,12 +64,21 @@ const searchResults = computed<SearchGroup[]>(() => {
|
|
|
64
64
|
.map<SearchGroup>(([label, options]) => ({ label, options }));
|
|
65
65
|
|
|
66
66
|
// add custom system wide actions
|
|
67
|
+
const systemOptions: OnyxGlobalSearchOptionProps[] = [
|
|
68
|
+
{ label: t("onyx.colorScheme.headline"), value: "colorScheme", icon: iconCircleContrast },
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
if (locales.value.length > 1) {
|
|
72
|
+
systemOptions.unshift({
|
|
73
|
+
label: t("onyx.languageSelect.headline"),
|
|
74
|
+
value: "locale",
|
|
75
|
+
icon: iconTranslate,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
67
79
|
groups.push({
|
|
68
80
|
label: t("onyx.globalSearch.system"),
|
|
69
|
-
options:
|
|
70
|
-
{ label: t("onyx.languageSelect.headline"), value: "locale", icon: iconTranslate },
|
|
71
|
-
{ label: t("onyx.colorScheme.headline"), value: "colorScheme", icon: iconCircleContrast },
|
|
72
|
-
],
|
|
81
|
+
options: systemOptions,
|
|
73
82
|
});
|
|
74
83
|
|
|
75
84
|
return groups;
|
|
@@ -113,7 +122,7 @@ const filteredSearchResults = computed(() => {
|
|
|
113
122
|
:skeleton="status === 'pending'"
|
|
114
123
|
>
|
|
115
124
|
<template v-for="option in group.options" :key="option.value">
|
|
116
|
-
<LazyLocaleSwitch v-if="option.value === 'locale'
|
|
125
|
+
<LazyLocaleSwitch v-if="option.value === 'locale'">
|
|
117
126
|
<template #default="{ trigger }">
|
|
118
127
|
<OnyxUnstableGlobalSearchOption v-bind="mergeVueProps(trigger, option)" />
|
|
119
128
|
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sit-onyx/nuxt-docs",
|
|
3
|
-
"version": "0.1.0-dev-
|
|
3
|
+
"version": "0.1.0-dev-20251118074438",
|
|
4
4
|
"description": "Nuxt layer/template for creating documentations with the onyx design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Schwarz IT KG",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@nuxtjs/color-mode": ">= 3",
|
|
31
31
|
"@nuxtjs/i18n": ">= 10",
|
|
32
32
|
"sass-embedded": ">= 1",
|
|
33
|
-
"@sit-onyx/icons": "^1.2.0-dev-
|
|
33
|
+
"@sit-onyx/icons": "^1.2.0-dev-20251118074438",
|
|
34
34
|
"@sit-onyx/nuxt": "^1.0.1",
|
|
35
|
-
"sit-onyx": "^1.4.0-dev-
|
|
35
|
+
"sit-onyx": "^1.4.0-dev-20251118074438"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@fontsource-variable/source-code-pro": ">= 5",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"sass-embedded": "1.93.3",
|
|
48
48
|
"typescript": "5.9.3",
|
|
49
49
|
"vue": "3.5.23",
|
|
50
|
-
"@sit-onyx/icons": "^1.2.0-dev-
|
|
50
|
+
"@sit-onyx/icons": "^1.2.0-dev-20251118074438",
|
|
51
51
|
"@sit-onyx/nuxt": "^1.0.1",
|
|
52
52
|
"@sit-onyx/shared": "^0.1.0",
|
|
53
|
-
"sit-onyx": "^1.4.0-dev-
|
|
53
|
+
"sit-onyx": "^1.4.0-dev-20251118074438"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"dev": "pnpm dev:prepare && nuxi dev playground",
|