@antify/template-module 0.0.6 → 0.0.8
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/crud/CrudDetailNav.d.vue.ts +4 -2
- package/dist/runtime/components/crud/CrudDetailNav.vue +5 -3
- package/dist/runtime/components/crud/CrudDetailNav.vue.d.ts +4 -2
- package/dist/runtime/components/dialogs/DeleteDialog.d.vue.ts +12 -2
- package/dist/runtime/components/dialogs/DeleteDialog.vue +6 -4
- package/dist/runtime/components/dialogs/DeleteDialog.vue.d.ts +12 -2
- package/package.json +2 -2
package/dist/module.json
CHANGED
|
@@ -2,7 +2,7 @@ import { type TabItem, InputState } from '@antify/ui';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tabItems?: TabItem[];
|
|
4
4
|
deleteButtonDisabled?: boolean;
|
|
5
|
-
|
|
5
|
+
entityName?: string;
|
|
6
6
|
canDelete?: boolean;
|
|
7
7
|
showDeleteButton?: boolean;
|
|
8
8
|
skeleton?: boolean;
|
|
@@ -11,7 +11,7 @@ type __VLS_Props = {
|
|
|
11
11
|
invalidPermissionTooltipMessage?: string;
|
|
12
12
|
tooltipState?: InputState;
|
|
13
13
|
};
|
|
14
|
-
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_29: {};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_29: {}, __VLS_39: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
16
|
tabs?: (props: typeof __VLS_1) => any;
|
|
17
17
|
} & {
|
|
@@ -26,6 +26,8 @@ type __VLS_Slots = {} & {
|
|
|
26
26
|
invalidPermissionTooltipContent?: (props: typeof __VLS_27) => any;
|
|
27
27
|
} & {
|
|
28
28
|
'after-delete-button'?: (props: typeof __VLS_29) => any;
|
|
29
|
+
} & {
|
|
30
|
+
'delete-message'?: (props: typeof __VLS_39) => any;
|
|
29
31
|
};
|
|
30
32
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
33
|
delete: (...args: any[]) => void;
|
|
@@ -15,7 +15,7 @@ defineEmits([
|
|
|
15
15
|
defineProps({
|
|
16
16
|
tabItems: { type: Array, required: false, default: () => [] },
|
|
17
17
|
deleteButtonDisabled: { type: Boolean, required: false, default: false },
|
|
18
|
-
|
|
18
|
+
entityName: { type: String, required: false },
|
|
19
19
|
canDelete: { type: Boolean, required: false, default: true },
|
|
20
20
|
showDeleteButton: { type: Boolean, required: false, default: true },
|
|
21
21
|
skeleton: { type: Boolean, required: false, default: false },
|
|
@@ -74,8 +74,10 @@ const dialogOpen = ref(false);
|
|
|
74
74
|
|
|
75
75
|
<DeleteDialog
|
|
76
76
|
v-model:open="dialogOpen"
|
|
77
|
-
:entity="
|
|
77
|
+
:entity="entityName"
|
|
78
78
|
@confirm="$emit('delete')"
|
|
79
|
-
|
|
79
|
+
>
|
|
80
|
+
<slot name="delete-message" />
|
|
81
|
+
</DeleteDialog>
|
|
80
82
|
</div>
|
|
81
83
|
</template>
|
|
@@ -2,7 +2,7 @@ import { type TabItem, InputState } from '@antify/ui';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tabItems?: TabItem[];
|
|
4
4
|
deleteButtonDisabled?: boolean;
|
|
5
|
-
|
|
5
|
+
entityName?: string;
|
|
6
6
|
canDelete?: boolean;
|
|
7
7
|
showDeleteButton?: boolean;
|
|
8
8
|
skeleton?: boolean;
|
|
@@ -11,7 +11,7 @@ type __VLS_Props = {
|
|
|
11
11
|
invalidPermissionTooltipMessage?: string;
|
|
12
12
|
tooltipState?: InputState;
|
|
13
13
|
};
|
|
14
|
-
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_29: {};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_29: {}, __VLS_39: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
16
|
tabs?: (props: typeof __VLS_1) => any;
|
|
17
17
|
} & {
|
|
@@ -26,6 +26,8 @@ type __VLS_Slots = {} & {
|
|
|
26
26
|
invalidPermissionTooltipContent?: (props: typeof __VLS_27) => any;
|
|
27
27
|
} & {
|
|
28
28
|
'after-delete-button'?: (props: typeof __VLS_29) => any;
|
|
29
|
+
} & {
|
|
30
|
+
'delete-message'?: (props: typeof __VLS_39) => any;
|
|
29
31
|
};
|
|
30
32
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
33
|
delete: (...args: any[]) => void;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
open: boolean;
|
|
3
|
-
entity
|
|
3
|
+
entity?: string;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
5
|
+
declare var __VLS_10: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
10
|
close: (...args: any[]) => void;
|
|
7
11
|
"update:open": (...args: any[]) => void;
|
|
8
12
|
confirm: (...args: any[]) => void;
|
|
@@ -11,5 +15,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
15
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
12
16
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
13
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
19
|
declare const _default: typeof __VLS_export;
|
|
15
20
|
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -16,7 +16,7 @@ const emit = defineEmits([
|
|
|
16
16
|
]);
|
|
17
17
|
const props = defineProps({
|
|
18
18
|
open: { type: Boolean, required: true },
|
|
19
|
-
entity: { type: String, required:
|
|
19
|
+
entity: { type: String, required: false }
|
|
20
20
|
});
|
|
21
21
|
const _open = useVModel(props, "open", emit);
|
|
22
22
|
function closeDialog() {
|
|
@@ -37,9 +37,11 @@ function confirmDialog() {
|
|
|
37
37
|
data-e2e="delete-dialog"
|
|
38
38
|
@close="() => $emit('close')"
|
|
39
39
|
>
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
<slot>
|
|
41
|
+
<div>
|
|
42
|
+
Möchtest du wirklich <span class="font-semibold">{{ entity }}</span> löschen?
|
|
43
|
+
</div>
|
|
44
|
+
</slot>
|
|
43
45
|
|
|
44
46
|
<template #footer>
|
|
45
47
|
<div
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
open: boolean;
|
|
3
|
-
entity
|
|
3
|
+
entity?: string;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
5
|
+
declare var __VLS_10: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
10
|
close: (...args: any[]) => void;
|
|
7
11
|
"update:open": (...args: any[]) => void;
|
|
8
12
|
confirm: (...args: any[]) => void;
|
|
@@ -11,5 +15,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
15
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
12
16
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
13
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
19
|
declare const _default: typeof __VLS_export;
|
|
15
20
|
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antify/template-module",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@antify/ui": "4.1.
|
|
19
|
+
"@antify/ui": "4.1.26",
|
|
20
20
|
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
|
21
21
|
"@nuxt/kit": "3.16.2",
|
|
22
22
|
"@tailwindcss/vite": "4.0.7",
|