erp-blocks 1.1.3 → 1.1.5
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/module.json
CHANGED
|
@@ -1,27 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<UCollapsible
|
|
4
|
+
v-if="breakpoints.isGreaterOrEqual('lg')"
|
|
5
|
+
v-model:open="sidebarOpen"
|
|
6
|
+
:ui="{
|
|
6
7
|
content: 'max-lg:fixed z-40 max-lg:bg-white left-0 top-0 data-[state=open]:animate-collapsible-right data-[state=closed]:animate-collapsible-left border-r border-scn-sidebar-border dark:border-default'
|
|
7
8
|
}"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
>
|
|
10
|
+
<template #content>
|
|
11
|
+
<div class="relative h-screen w-3xs bg-scn-sidebar">
|
|
12
|
+
<UIcon
|
|
13
|
+
name="i-lucide-x"
|
|
14
|
+
class="size-5 absolute z-50 top-4 right-4 cursor-pointer lg:hidden"
|
|
15
|
+
@click="closeSidebar"
|
|
16
|
+
/>
|
|
17
|
+
<MainMenu />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
</UCollapsible>
|
|
21
|
+
<UDrawer
|
|
22
|
+
v-if="breakpoints.isSmaller('lg')"
|
|
23
|
+
v-model:open="sidebarOpen"
|
|
24
|
+
direction="left"
|
|
25
|
+
>
|
|
26
|
+
<template #content>
|
|
11
27
|
<UIcon
|
|
12
28
|
name="i-lucide-x"
|
|
13
29
|
class="size-5 absolute z-50 top-4 right-4 cursor-pointer lg:hidden"
|
|
14
30
|
@click="closeSidebar"
|
|
15
31
|
/>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
<div class="w-[40vw] mt-10">
|
|
33
|
+
<MainMenu />
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
</UDrawer>
|
|
37
|
+
</div>
|
|
20
38
|
</template>
|
|
21
39
|
|
|
22
40
|
<script setup>
|
|
23
41
|
import { useState } from "#app";
|
|
42
|
+
import { breakpointsTailwind, useBreakpoints } from "@vueuse/core";
|
|
24
43
|
import MainMenu from "./MainMenu.vue";
|
|
44
|
+
const breakpoints = useBreakpoints(breakpointsTailwind, {
|
|
45
|
+
ssrWidth: 768
|
|
46
|
+
});
|
|
25
47
|
const sidebarOpen = useState("sidebarOpen", () => true);
|
|
26
48
|
function closeSidebar() {
|
|
27
49
|
sidebarOpen.value = false;
|
|
@@ -12,7 +12,6 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
12
12
|
expose: (exposed: {}) => void;
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
15
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
16
15
|
[x: number]: ((props: any) => any) | undefined;
|
|
17
16
|
};
|
|
18
17
|
emit: (evt: "update:page", value: number | undefined) => void;
|
|
@@ -12,7 +12,6 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
12
12
|
expose: (exposed: {}) => void;
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
15
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
16
15
|
[x: number]: ((props: any) => any) | undefined;
|
|
17
16
|
};
|
|
18
17
|
emit: (evt: "update:page", value: number | undefined) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erp-blocks",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Ready-to-use UI layouts and components designed as ERP system elements ",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,9 @@
|
|
|
37
37
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@nuxt/kit": "^4.2.1"
|
|
40
|
+
"@nuxt/kit": "^4.2.1",
|
|
41
|
+
"better-sqlite3": "^12.5.0",
|
|
42
|
+
"user": "^0.0.0"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@nuxt/content": "3.8.1",
|