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,7 +1,7 @@
1
1
  {
2
2
  "name": "erp-blocks",
3
3
  "configKey": "erp",
4
- "version": "1.1.3",
4
+ "version": "1.1.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,27 +1,49 @@
1
1
  <template>
2
- <!-- TODO: Change UCollapsible to UDrawer in mobile -->
3
- <UCollapsible
4
- v-model:open="sidebarOpen"
5
- :ui="{
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
- <template #content>
10
- <div class="relative h-screen w-3xs bg-scn-sidebar">
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
- <MainMenu />
17
- </div>
18
- </template>
19
- </UCollapsible>
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;
@@ -3,6 +3,9 @@
3
3
  orientation="vertical"
4
4
  :items="items"
5
5
  class="data-[orientation=vertical]:w-full py-12 px-2 gap-2"
6
+ :ui="{
7
+ linkLabel: 'text-clip text-left'
8
+ }"
6
9
  />
7
10
  </template>
8
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erp-blocks",
3
- "version": "1.1.3",
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",