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 +1 -1
- package/dist/runtime/components/CollapsibleSidebar.vue +2 -4
- package/dist/runtime/components/DataTable.d.vue.ts +4 -1
- package/dist/runtime/components/DataTable.vue +16 -8
- package/dist/runtime/components/DataTable.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarTrigger.vue +2 -4
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -20,11 +20,9 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
23
|
-
import {
|
|
23
|
+
import { useState } from "#app";
|
|
24
24
|
import MainMenu from "./MainMenu.vue";
|
|
25
|
-
const 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
|
-
|
|
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
|
|
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 {
|
|
17
|
-
const sidebarOpen =
|
|
18
|
-
default: () => true
|
|
19
|
-
});
|
|
16
|
+
import { useState } from "#app";
|
|
17
|
+
const sidebarOpen = useState("sidebarOpen", () => true);
|
|
20
18
|
</script>
|