@octabits-io/nuxt-ui-kit 0.4.0 → 0.6.0
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/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.js +2 -0
- package/package.json +4 -4
- package/src/components/SubSidebar.vue +15 -2
package/dist/i18n/index.d.ts
CHANGED
package/dist/i18n/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const kitMessagesEn = {
|
|
|
7
7
|
validation_error: "Validation error",
|
|
8
8
|
unique_violation: "This value already exists",
|
|
9
9
|
foreign_key_violation: "Referenced record does not exist",
|
|
10
|
+
exclusion_violation: "This entry overlaps with an existing one",
|
|
10
11
|
service_unavailable: "Service temporarily unavailable. Please try again later."
|
|
11
12
|
},
|
|
12
13
|
auth: {
|
|
@@ -39,6 +40,7 @@ const kitMessagesDe = {
|
|
|
39
40
|
validation_error: "Validierungsfehler",
|
|
40
41
|
unique_violation: "Dieser Wert existiert bereits",
|
|
41
42
|
foreign_key_violation: "Der referenzierte Datensatz existiert nicht",
|
|
43
|
+
exclusion_violation: "Dieser Eintrag überschneidet sich mit einem bestehenden",
|
|
42
44
|
service_unavailable: "Dienst vorübergehend nicht verfügbar. Bitte versuche es später erneut."
|
|
43
45
|
},
|
|
44
46
|
auth: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octabits-io/nuxt-ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Frontend kit for Nuxt/Vue admin SPAs: OIDC session harness (oidc-client-ts), Eden Treaty client factory, auth/org store cores, and a route-guard builder — factory-style seams the app wires into its own plugins, stores, and middleware",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"elysia": "^1.4.29",
|
|
74
74
|
"oidc-client-ts": "^3.5.0",
|
|
75
75
|
"vitest": "^4.1.10",
|
|
76
|
-
"vue": "^3.5.
|
|
76
|
+
"vue": "^3.5.40",
|
|
77
77
|
"zod": "^4.4.3",
|
|
78
|
-
"@octabits-io/framework": "^0.
|
|
78
|
+
"@octabits-io/framework": "^0.4.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@elysiajs/eden": "^1.4.0",
|
|
82
|
-
"@octabits-io/framework": "^0.3.0",
|
|
83
82
|
"@internationalized/date": "^3",
|
|
84
83
|
"@nuxt/ui": "^4",
|
|
84
|
+
"@octabits-io/framework": ">=0.4.0 <1",
|
|
85
85
|
"date-fns": "^3 || ^4",
|
|
86
86
|
"elysia": ">=1.4 <3",
|
|
87
87
|
"oidc-client-ts": "^3.3.0",
|
|
@@ -18,9 +18,22 @@ const props = withDefaults(defineProps<{
|
|
|
18
18
|
* e.g. `?s=owner:42`) — the mobile slideover auto-closes when it changes.
|
|
19
19
|
*/
|
|
20
20
|
selectionQueryKey?: string
|
|
21
|
+
/**
|
|
22
|
+
* Visibility classes for the persistent rail `<aside>`. Override to drive
|
|
23
|
+
* the rail/slideover switch from something other than the viewport — e.g.
|
|
24
|
+
* a named container query (`'hidden @3xl/main:flex'`) so the rail collapses
|
|
25
|
+
* when a docked panel squeezes the content column. Must be complete class
|
|
26
|
+
* literals (Tailwind extracts literals only) and must pair with
|
|
27
|
+
* `toggleVisibilityClass` (the toggle shows exactly while the rail hides).
|
|
28
|
+
*/
|
|
29
|
+
railVisibilityClass?: string
|
|
30
|
+
/** Visibility classes for the toggle bar that opens the slideover. */
|
|
31
|
+
toggleVisibilityClass?: string
|
|
21
32
|
}>(), {
|
|
22
33
|
width: 'w-[240px]',
|
|
23
34
|
selectionQueryKey: 's',
|
|
35
|
+
railVisibilityClass: 'hidden lg:flex',
|
|
36
|
+
toggleVisibilityClass: 'lg:hidden',
|
|
24
37
|
})
|
|
25
38
|
|
|
26
39
|
const open = ref(false)
|
|
@@ -63,7 +76,7 @@ watch(
|
|
|
63
76
|
</USlideover>
|
|
64
77
|
|
|
65
78
|
<aside
|
|
66
|
-
:class="['
|
|
79
|
+
:class="['shrink-0 flex-col overflow-hidden border-r border-default', railVisibilityClass, width]"
|
|
67
80
|
>
|
|
68
81
|
<div v-if="!headerless" class="border-b border-default px-4 py-3">
|
|
69
82
|
<h2 class="font-display text-lg font-semibold tracking-tight">{{ title }}</h2>
|
|
@@ -75,7 +88,7 @@ watch(
|
|
|
75
88
|
</aside>
|
|
76
89
|
|
|
77
90
|
<div class="flex min-w-0 flex-1 flex-col overflow-hidden">
|
|
78
|
-
<div class="flex shrink-0 items-center gap-2 border-b border-default px-3 py-2
|
|
91
|
+
<div :class="['flex shrink-0 items-center gap-2 border-b border-default px-3 py-2', toggleVisibilityClass]">
|
|
79
92
|
<UButton
|
|
80
93
|
:label="buttonLabel"
|
|
81
94
|
icon="i-lucide-panel-left-open"
|