erp-blocks 1.0.9 → 1.1.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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "erp-blocks",
3
3
  "configKey": "erp",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -20,11 +20,9 @@
20
20
  </template>
21
21
 
22
22
  <script setup>
23
- import { useCookie } from "#app";
23
+ import { useState } from "#app";
24
24
  import MainMenu from "./MainMenu.vue";
25
- const sidebarOpen = useCookie("sidebarOpen", {
26
- default: () => true
27
- });
25
+ const sidebarOpen = useState("sidebarOpen", () => true);
28
26
  function closeSidebar() {
29
27
  sidebarOpen.value = false;
30
28
  }
@@ -13,7 +13,10 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
13
13
  }> & import("vue").PublicProps;
14
14
  expose: (exposed: {}) => void;
15
15
  attrs: any;
16
- slots: {};
16
+ slots: {
17
+ [x: string]: ((props: any) => any) | undefined;
18
+ [x: number]: ((props: any) => any) | undefined;
19
+ };
17
20
  emit: (evt: "update:page", value: number | undefined) => void;
18
21
  }>) => import("vue").VNode & {
19
22
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -16,18 +16,26 @@ const page = defineModel("page", { type: Number });
16
16
  :data="data"
17
17
  :columns="columns"
18
18
  class="flex-1 border border-default rounded-lg grow"
19
- />
20
- <div class="flex items-center justify-between">
19
+ >
20
+ <template
21
+ v-for="(_, name) in $slots"
22
+ #[name]="slotProps"
23
+ >
24
+ <slot
25
+ :name="name"
26
+ v-bind="slotProps"
27
+ />
28
+ </template>
29
+ </UTable>
30
+ <div
31
+ v-if="data && totalRows"
32
+ class="flex items-center justify-between"
33
+ >
21
34
  <span
22
- v-if="data && totalRows"
23
35
  class="text-base text-dimmed"
24
36
  >
25
- {{ data.length }} of {{ totalRows }} rows
37
+ {{ data?.length }} of {{ totalRows }} rows
26
38
  </span>
27
- <div
28
- v-else
29
- class="h-6 w-25 animate-pulse bg-gray-200"
30
- />
31
39
  <UPagination
32
40
  v-model:page="page"
33
41
  active-color="neutral"
@@ -13,7 +13,10 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
13
13
  }> & import("vue").PublicProps;
14
14
  expose: (exposed: {}) => void;
15
15
  attrs: any;
16
- slots: {};
16
+ slots: {
17
+ [x: string]: ((props: any) => any) | undefined;
18
+ [x: number]: ((props: any) => any) | undefined;
19
+ };
17
20
  emit: (evt: "update:page", value: number | undefined) => void;
18
21
  }>) => import("vue").VNode & {
19
22
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -13,8 +13,6 @@
13
13
  </template>
14
14
 
15
15
  <script setup>
16
- import { useCookie } from "#app";
17
- const sidebarOpen = useCookie("sidebarOpen", {
18
- default: () => true
19
- });
16
+ import { useState } from "#app";
17
+ const sidebarOpen = useState("sidebarOpen", () => true);
20
18
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erp-blocks",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Ready-to-use UI layouts and components designed as ERP system elements ",
5
5
  "repository": {
6
6
  "type": "git",