erp-blocks 1.1.2 → 1.1.4

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.2",
4
+ "version": "1.1.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,22 +1,38 @@
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-model:open="sidebarOpen"
5
+ :ui="{
6
+ root: 'max-lg:hidden',
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">
11
- <UIcon
12
- name="i-lucide-x"
13
- class="size-5 absolute z-50 top-4 right-4 cursor-pointer lg:hidden"
14
- @click="closeSidebar"
15
- />
16
- <MainMenu />
17
- </div>
18
- </template>
19
- </UCollapsible>
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-model:open="sidebarOpen"
23
+ direction="left"
24
+ :ui="{
25
+ overlay: 'lg:hidden',
26
+ content: 'lg:hidden'
27
+ }"
28
+ >
29
+ <template #content>
30
+ <div class="w-[40vw]">
31
+ <MainMenu />
32
+ </div>
33
+ </template>
34
+ </UDrawer>
35
+ </div>
20
36
  </template>
21
37
 
22
38
  <script setup>
@@ -1,7 +1,7 @@
1
1
  import type { TableProps } from '@nuxt/ui';
2
2
  declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<({
4
- tableProps: TableProps;
4
+ tableProps: TableProps<T>;
5
5
  totalRows?: number | undefined;
6
6
  itemsPerPage?: number;
7
7
  } & {
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import type { TableProps } from '@nuxt/ui';
2
2
  declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<({
4
- tableProps: TableProps;
4
+ tableProps: TableProps<T>;
5
5
  totalRows?: number | undefined;
6
6
  itemsPerPage?: number;
7
7
  } & {
@@ -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.2",
3
+ "version": "1.1.4",
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",