@antify/template-module 0.0.4 → 0.0.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 +1 -1
- package/dist/runtime/components/crud/CrudDetailActions.d.vue.ts +16 -2
- package/dist/runtime/components/crud/CrudDetailActions.vue +35 -5
- package/dist/runtime/components/crud/CrudDetailActions.vue.d.ts +16 -2
- package/dist/runtime/components/crud/CrudDetailNav.d.vue.ts +10 -2
- package/dist/runtime/components/crud/CrudDetailNav.vue +18 -2
- package/dist/runtime/components/crud/CrudDetailNav.vue.d.ts +10 -2
- package/dist/runtime/components/crud/CrudTableFilter.d.vue.ts +9 -1
- package/dist/runtime/components/crud/CrudTableFilter.vue +18 -2
- package/dist/runtime/components/crud/CrudTableFilter.vue.d.ts +9 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -6,8 +6,10 @@ type __VLS_Props = {
|
|
|
6
6
|
tooltipState?: InputState;
|
|
7
7
|
saveTooltipMessage?: string;
|
|
8
8
|
saveAndNewTooltipMessage?: string;
|
|
9
|
+
disabledTooltipMessage?: string;
|
|
10
|
+
invalidPermissionTooltipMessage?: string;
|
|
9
11
|
};
|
|
10
|
-
declare var __VLS_1: {}, __VLS_11: {}, __VLS_13: {},
|
|
12
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_13: {}, __VLS_24: {}, __VLS_27: {}, __VLS_30: {}, __VLS_41: {}, __VLS_44: {}, __VLS_47: {}, __VLS_49: {};
|
|
11
13
|
type __VLS_Slots = {} & {
|
|
12
14
|
'buttons-left'?: (props: typeof __VLS_1) => any;
|
|
13
15
|
} & {
|
|
@@ -15,7 +17,19 @@ type __VLS_Slots = {} & {
|
|
|
15
17
|
} & {
|
|
16
18
|
'buttons-right'?: (props: typeof __VLS_13) => any;
|
|
17
19
|
} & {
|
|
18
|
-
|
|
20
|
+
saveAndNewTooltipContent?: (props: typeof __VLS_24) => any;
|
|
21
|
+
} & {
|
|
22
|
+
saveAndNewDisabledTooltipContent?: (props: typeof __VLS_27) => any;
|
|
23
|
+
} & {
|
|
24
|
+
saveAndNewInvalidPermissionTooltipContent?: (props: typeof __VLS_30) => any;
|
|
25
|
+
} & {
|
|
26
|
+
saveTooltipContent?: (props: typeof __VLS_41) => any;
|
|
27
|
+
} & {
|
|
28
|
+
saveDisabledTooltipContent?: (props: typeof __VLS_44) => any;
|
|
29
|
+
} & {
|
|
30
|
+
saveInvalidPermissionTooltipContent?: (props: typeof __VLS_47) => any;
|
|
31
|
+
} & {
|
|
32
|
+
'after-buttons-right'?: (props: typeof __VLS_49) => any;
|
|
19
33
|
};
|
|
20
34
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
35
|
save: (...args: any[]) => void;
|
|
@@ -21,7 +21,9 @@ defineProps({
|
|
|
21
21
|
canSave: { type: Boolean, required: false, default: true },
|
|
22
22
|
tooltipState: { type: String, required: false },
|
|
23
23
|
saveTooltipMessage: { type: String, required: false },
|
|
24
|
-
saveAndNewTooltipMessage: { type: String, required: false }
|
|
24
|
+
saveAndNewTooltipMessage: { type: String, required: false },
|
|
25
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
26
|
+
invalidPermissionTooltipMessage: { type: String, required: false }
|
|
25
27
|
});
|
|
26
28
|
</script>
|
|
27
29
|
|
|
@@ -52,19 +54,47 @@ defineProps({
|
|
|
52
54
|
:skeleton="skeleton"
|
|
53
55
|
:disabled="disabled"
|
|
54
56
|
:can-save="canSave"
|
|
55
|
-
:
|
|
57
|
+
:tooltip-message="saveTooltipMessage"
|
|
58
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
59
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
56
60
|
:tooltip-state="tooltipState"
|
|
57
61
|
@click="$emit('save-and-new')"
|
|
58
|
-
|
|
62
|
+
>
|
|
63
|
+
<template #tooltipContent>
|
|
64
|
+
<slot name="saveAndNewTooltipContent" />
|
|
65
|
+
</template>
|
|
66
|
+
|
|
67
|
+
<template #disabledTooltipContent>
|
|
68
|
+
<slot name="saveAndNewDisabledTooltipContent" />
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<template #invalidPermissionTooltipContent>
|
|
72
|
+
<slot name="saveAndNewInvalidPermissionTooltipContent" />
|
|
73
|
+
</template>
|
|
74
|
+
</SaveAndNewButton>
|
|
59
75
|
|
|
60
76
|
<SaveButton
|
|
61
77
|
:skeleton="skeleton"
|
|
62
78
|
:disabled="disabled"
|
|
63
79
|
:can-save="canSave"
|
|
64
|
-
:
|
|
80
|
+
:tooltip-message="saveAndNewTooltipMessage"
|
|
81
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
82
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
65
83
|
:tooltip-state="tooltipState"
|
|
66
84
|
@click="$emit('save')"
|
|
67
|
-
|
|
85
|
+
>
|
|
86
|
+
<template #tooltipContent>
|
|
87
|
+
<slot name="saveTooltipContent" />
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<template #disabledTooltipContent>
|
|
91
|
+
<slot name="saveDisabledTooltipContent" />
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<template #invalidPermissionTooltipContent>
|
|
95
|
+
<slot name="saveInvalidPermissionTooltipContent" />
|
|
96
|
+
</template>
|
|
97
|
+
</SaveButton>
|
|
68
98
|
</slot>
|
|
69
99
|
<slot name="after-buttons-right" />
|
|
70
100
|
</div>
|
|
@@ -6,8 +6,10 @@ type __VLS_Props = {
|
|
|
6
6
|
tooltipState?: InputState;
|
|
7
7
|
saveTooltipMessage?: string;
|
|
8
8
|
saveAndNewTooltipMessage?: string;
|
|
9
|
+
disabledTooltipMessage?: string;
|
|
10
|
+
invalidPermissionTooltipMessage?: string;
|
|
9
11
|
};
|
|
10
|
-
declare var __VLS_1: {}, __VLS_11: {}, __VLS_13: {},
|
|
12
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_13: {}, __VLS_24: {}, __VLS_27: {}, __VLS_30: {}, __VLS_41: {}, __VLS_44: {}, __VLS_47: {}, __VLS_49: {};
|
|
11
13
|
type __VLS_Slots = {} & {
|
|
12
14
|
'buttons-left'?: (props: typeof __VLS_1) => any;
|
|
13
15
|
} & {
|
|
@@ -15,7 +17,19 @@ type __VLS_Slots = {} & {
|
|
|
15
17
|
} & {
|
|
16
18
|
'buttons-right'?: (props: typeof __VLS_13) => any;
|
|
17
19
|
} & {
|
|
18
|
-
|
|
20
|
+
saveAndNewTooltipContent?: (props: typeof __VLS_24) => any;
|
|
21
|
+
} & {
|
|
22
|
+
saveAndNewDisabledTooltipContent?: (props: typeof __VLS_27) => any;
|
|
23
|
+
} & {
|
|
24
|
+
saveAndNewInvalidPermissionTooltipContent?: (props: typeof __VLS_30) => any;
|
|
25
|
+
} & {
|
|
26
|
+
saveTooltipContent?: (props: typeof __VLS_41) => any;
|
|
27
|
+
} & {
|
|
28
|
+
saveDisabledTooltipContent?: (props: typeof __VLS_44) => any;
|
|
29
|
+
} & {
|
|
30
|
+
saveInvalidPermissionTooltipContent?: (props: typeof __VLS_47) => any;
|
|
31
|
+
} & {
|
|
32
|
+
'after-buttons-right'?: (props: typeof __VLS_49) => any;
|
|
19
33
|
};
|
|
20
34
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
35
|
save: (...args: any[]) => void;
|
|
@@ -7,9 +7,11 @@ type __VLS_Props = {
|
|
|
7
7
|
showDeleteButton?: boolean;
|
|
8
8
|
skeleton?: boolean;
|
|
9
9
|
deleteTooltipMessage?: string;
|
|
10
|
+
disabledTooltipMessage?: string;
|
|
11
|
+
invalidPermissionTooltipMessage?: string;
|
|
10
12
|
tooltipState?: InputState;
|
|
11
13
|
};
|
|
12
|
-
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {},
|
|
14
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_29: {};
|
|
13
15
|
type __VLS_Slots = {} & {
|
|
14
16
|
tabs?: (props: typeof __VLS_1) => any;
|
|
15
17
|
} & {
|
|
@@ -17,7 +19,13 @@ type __VLS_Slots = {} & {
|
|
|
17
19
|
} & {
|
|
18
20
|
'before-delete-button'?: (props: typeof __VLS_10) => any;
|
|
19
21
|
} & {
|
|
20
|
-
|
|
22
|
+
tooltipContent?: (props: typeof __VLS_21) => any;
|
|
23
|
+
} & {
|
|
24
|
+
disabledTooltipContent?: (props: typeof __VLS_24) => any;
|
|
25
|
+
} & {
|
|
26
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_27) => any;
|
|
27
|
+
} & {
|
|
28
|
+
'after-delete-button'?: (props: typeof __VLS_29) => any;
|
|
21
29
|
};
|
|
22
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
31
|
delete: (...args: any[]) => void;
|
|
@@ -20,6 +20,8 @@ defineProps({
|
|
|
20
20
|
showDeleteButton: { type: Boolean, required: false, default: true },
|
|
21
21
|
skeleton: { type: Boolean, required: false, default: false },
|
|
22
22
|
deleteTooltipMessage: { type: String, required: false },
|
|
23
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
24
|
+
invalidPermissionTooltipMessage: { type: String, required: false },
|
|
23
25
|
tooltipState: { type: String, required: false }
|
|
24
26
|
});
|
|
25
27
|
const dialogOpen = ref(false);
|
|
@@ -46,11 +48,25 @@ const dialogOpen = ref(false);
|
|
|
46
48
|
:disabled="deleteButtonDisabled || !canDelete"
|
|
47
49
|
:skeleton="skeleton"
|
|
48
50
|
:can-delete="canDelete"
|
|
49
|
-
:
|
|
51
|
+
:tooltip-message="deleteTooltipMessage"
|
|
52
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
53
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
50
54
|
:invalid-permission-tooltip-position="Position.left"
|
|
51
55
|
:tooltip-state="tooltipState"
|
|
52
56
|
@click="() => dialogOpen = true"
|
|
53
|
-
|
|
57
|
+
>
|
|
58
|
+
<template #tooltipContent>
|
|
59
|
+
<slot name="tooltipContent" />
|
|
60
|
+
</template>
|
|
61
|
+
|
|
62
|
+
<template #disabledTooltipContent>
|
|
63
|
+
<slot name="disabledTooltipContent" />
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<template #invalidPermissionTooltipContent>
|
|
67
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
68
|
+
</template>
|
|
69
|
+
</DeleteButton>
|
|
54
70
|
|
|
55
71
|
<slot name="after-delete-button" />
|
|
56
72
|
</slot>
|
|
@@ -7,9 +7,11 @@ type __VLS_Props = {
|
|
|
7
7
|
showDeleteButton?: boolean;
|
|
8
8
|
skeleton?: boolean;
|
|
9
9
|
deleteTooltipMessage?: string;
|
|
10
|
+
disabledTooltipMessage?: string;
|
|
11
|
+
invalidPermissionTooltipMessage?: string;
|
|
10
12
|
tooltipState?: InputState;
|
|
11
13
|
};
|
|
12
|
-
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {},
|
|
14
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_29: {};
|
|
13
15
|
type __VLS_Slots = {} & {
|
|
14
16
|
tabs?: (props: typeof __VLS_1) => any;
|
|
15
17
|
} & {
|
|
@@ -17,7 +19,13 @@ type __VLS_Slots = {} & {
|
|
|
17
19
|
} & {
|
|
18
20
|
'before-delete-button'?: (props: typeof __VLS_10) => any;
|
|
19
21
|
} & {
|
|
20
|
-
|
|
22
|
+
tooltipContent?: (props: typeof __VLS_21) => any;
|
|
23
|
+
} & {
|
|
24
|
+
disabledTooltipContent?: (props: typeof __VLS_24) => any;
|
|
25
|
+
} & {
|
|
26
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_27) => any;
|
|
27
|
+
} & {
|
|
28
|
+
'after-delete-button'?: (props: typeof __VLS_29) => any;
|
|
21
29
|
};
|
|
22
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
31
|
delete: (...args: any[]) => void;
|
|
@@ -10,15 +10,23 @@ type __VLS_Props = {
|
|
|
10
10
|
skeleton?: boolean;
|
|
11
11
|
searchPlaceholderText?: string;
|
|
12
12
|
createTooltipMessage?: string;
|
|
13
|
+
disabledTooltipMessage?: string;
|
|
14
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
15
|
tooltipState?: InputState;
|
|
14
16
|
};
|
|
15
|
-
declare var __VLS_1: {}, __VLS_29: {}, __VLS_31: {};
|
|
17
|
+
declare var __VLS_1: {}, __VLS_29: {}, __VLS_31: {}, __VLS_42: {}, __VLS_45: {}, __VLS_48: {};
|
|
16
18
|
type __VLS_Slots = {} & {
|
|
17
19
|
filter?: (props: typeof __VLS_1) => any;
|
|
18
20
|
} & {
|
|
19
21
|
dropdownContent?: (props: typeof __VLS_29) => any;
|
|
20
22
|
} & {
|
|
21
23
|
buttons?: (props: typeof __VLS_31) => any;
|
|
24
|
+
} & {
|
|
25
|
+
tooltipContent?: (props: typeof __VLS_42) => any;
|
|
26
|
+
} & {
|
|
27
|
+
disabledTooltipContent?: (props: typeof __VLS_45) => any;
|
|
28
|
+
} & {
|
|
29
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_48) => any;
|
|
22
30
|
};
|
|
23
31
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
32
|
search: (...args: any[]) => void;
|
|
@@ -33,6 +33,8 @@ const props = defineProps({
|
|
|
33
33
|
skeleton: { type: Boolean, required: false, default: false },
|
|
34
34
|
searchPlaceholderText: { type: String, required: false },
|
|
35
35
|
createTooltipMessage: { type: String, required: false },
|
|
36
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
37
|
+
invalidPermissionTooltipMessage: { type: String, required: false },
|
|
36
38
|
tooltipState: { type: String, required: false }
|
|
37
39
|
});
|
|
38
40
|
const emit = defineEmits([
|
|
@@ -143,10 +145,24 @@ watch(searchInputRef, (val) => {
|
|
|
143
145
|
:skeleton="skeleton"
|
|
144
146
|
:can-create="canCreate"
|
|
145
147
|
:invalid-permission-tooltip-position="Position.left"
|
|
146
|
-
:
|
|
148
|
+
:tooltip-message="createTooltipMessage"
|
|
149
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
150
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
147
151
|
:tooltip-state="tooltipState"
|
|
148
152
|
@click="() => emit('create')"
|
|
149
|
-
|
|
153
|
+
>
|
|
154
|
+
<template #tooltipContent>
|
|
155
|
+
<slot name="tooltipContent" />
|
|
156
|
+
</template>
|
|
157
|
+
|
|
158
|
+
<template #disabledTooltipContent>
|
|
159
|
+
<slot name="disabledTooltipContent" />
|
|
160
|
+
</template>
|
|
161
|
+
|
|
162
|
+
<template #invalidPermissionTooltipContent>
|
|
163
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
164
|
+
</template>
|
|
165
|
+
</CreateButton>
|
|
150
166
|
</slot>
|
|
151
167
|
</div>
|
|
152
168
|
</div>
|
|
@@ -10,15 +10,23 @@ type __VLS_Props = {
|
|
|
10
10
|
skeleton?: boolean;
|
|
11
11
|
searchPlaceholderText?: string;
|
|
12
12
|
createTooltipMessage?: string;
|
|
13
|
+
disabledTooltipMessage?: string;
|
|
14
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
15
|
tooltipState?: InputState;
|
|
14
16
|
};
|
|
15
|
-
declare var __VLS_1: {}, __VLS_29: {}, __VLS_31: {};
|
|
17
|
+
declare var __VLS_1: {}, __VLS_29: {}, __VLS_31: {}, __VLS_42: {}, __VLS_45: {}, __VLS_48: {};
|
|
16
18
|
type __VLS_Slots = {} & {
|
|
17
19
|
filter?: (props: typeof __VLS_1) => any;
|
|
18
20
|
} & {
|
|
19
21
|
dropdownContent?: (props: typeof __VLS_29) => any;
|
|
20
22
|
} & {
|
|
21
23
|
buttons?: (props: typeof __VLS_31) => any;
|
|
24
|
+
} & {
|
|
25
|
+
tooltipContent?: (props: typeof __VLS_42) => any;
|
|
26
|
+
} & {
|
|
27
|
+
disabledTooltipContent?: (props: typeof __VLS_45) => any;
|
|
28
|
+
} & {
|
|
29
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_48) => any;
|
|
22
30
|
};
|
|
23
31
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
32
|
search: (...args: any[]) => void;
|