@antify/template-module 0.0.2 → 0.0.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 +1 -1
- package/dist/module.mjs +4 -1
- package/dist/runtime/assets/main.css +1 -0
- package/dist/runtime/components/buttons/ActionButton.d.vue.ts +8 -3
- package/dist/runtime/components/buttons/ActionButton.vue +46 -11
- package/dist/runtime/components/buttons/ActionButton.vue.d.ts +8 -3
- package/dist/runtime/components/buttons/CreateButton.d.vue.ts +18 -2
- package/dist/runtime/components/buttons/CreateButton.vue +16 -11
- package/dist/runtime/components/buttons/CreateButton.vue.d.ts +18 -2
- package/dist/runtime/components/buttons/DeleteButton.d.vue.ts +18 -2
- package/dist/runtime/components/buttons/DeleteButton.vue +15 -10
- package/dist/runtime/components/buttons/DeleteButton.vue.d.ts +18 -2
- package/dist/runtime/components/buttons/DuplicateButton.d.vue.ts +18 -2
- package/dist/runtime/components/buttons/DuplicateButton.vue +15 -10
- package/dist/runtime/components/buttons/DuplicateButton.vue.d.ts +18 -2
- package/dist/runtime/components/buttons/EditButton.d.vue.ts +18 -2
- package/dist/runtime/components/buttons/EditButton.vue +15 -10
- package/dist/runtime/components/buttons/EditButton.vue.d.ts +18 -2
- package/dist/runtime/components/buttons/SaveAndNewButton.d.vue.ts +18 -2
- package/dist/runtime/components/buttons/SaveAndNewButton.vue +16 -11
- package/dist/runtime/components/buttons/SaveAndNewButton.vue.d.ts +18 -2
- package/dist/runtime/components/buttons/SaveButton.d.vue.ts +18 -1
- package/dist/runtime/components/buttons/SaveButton.vue +16 -10
- package/dist/runtime/components/buttons/SaveButton.vue.d.ts +18 -1
- package/dist/runtime/components/crud/CrudTableFilter.vue +1 -1
- package/dist/runtime/components/dialogs/DeleteDialog.vue +12 -12
- package/dist/runtime/composables/useUiClient.js +14 -4
- package/dist/runtime/plugins/template-module.js +9 -3
- package/dist/runtime/utils.d.ts +1 -1
- package/dist/runtime/utils.js +6 -2
- package/package.json +7 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -66,7 +66,9 @@ const module$1 = defineNuxtModule({
|
|
|
66
66
|
},
|
|
67
67
|
defaults: {},
|
|
68
68
|
async setup(options, nuxt) {
|
|
69
|
-
const {
|
|
69
|
+
const {
|
|
70
|
+
resolve
|
|
71
|
+
} = createResolver(import.meta.url);
|
|
70
72
|
const runtimeDir = resolve("./runtime");
|
|
71
73
|
nuxt.options.build.transpile.push(runtimeDir);
|
|
72
74
|
addPlugin(resolve(runtimeDir, "plugins/template-module"));
|
|
@@ -90,6 +92,7 @@ const module$1 = defineNuxtModule({
|
|
|
90
92
|
viteInlineConfig.plugins.push(tailwindcss());
|
|
91
93
|
});
|
|
92
94
|
nuxt.options.css.push(resolve(runtimeDir, "assets/antify.css"));
|
|
95
|
+
nuxt.options.css.push(resolve(runtimeDir, "index.css"));
|
|
93
96
|
if (options.tailwindCSSPath) {
|
|
94
97
|
const tailwindCSSPath = resolve(nuxt.options.rootDir, options.tailwindCSSPath);
|
|
95
98
|
nuxt.options.css.push(tailwindCSSPath);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@antify/ui";
|
|
@@ -20,14 +20,19 @@ type __VLS_Props = {
|
|
|
20
20
|
tooltipDelay?: number;
|
|
21
21
|
submit?: boolean;
|
|
22
22
|
dataE2e?: string;
|
|
23
|
+
tooltipMessage?: string;
|
|
24
|
+
disabledTooltipMessage?: string;
|
|
25
|
+
invalidPermissionTooltipMessage?: string;
|
|
23
26
|
};
|
|
24
|
-
declare var __VLS_11: {}, __VLS_14: {}, __VLS_16: {};
|
|
27
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {};
|
|
25
28
|
type __VLS_Slots = {} & {
|
|
26
29
|
default?: (props: typeof __VLS_11) => any;
|
|
27
30
|
} & {
|
|
28
|
-
|
|
31
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_14) => any;
|
|
29
32
|
} & {
|
|
30
|
-
|
|
33
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
34
|
+
} & {
|
|
35
|
+
tooltipContent?: (props: typeof __VLS_18) => any;
|
|
31
36
|
};
|
|
32
37
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
38
|
blur: (...args: any[]) => void;
|
|
@@ -31,11 +31,15 @@ const props = defineProps({
|
|
|
31
31
|
tooltipState: { type: String, required: false },
|
|
32
32
|
tooltipDelay: { type: Number, required: false },
|
|
33
33
|
submit: { type: Boolean, required: false, default: false },
|
|
34
|
-
dataE2e: { type: String, required: false, default: "action-button" }
|
|
34
|
+
dataE2e: { type: String, required: false, default: "action-button" },
|
|
35
|
+
tooltipMessage: { type: String, required: false },
|
|
36
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
37
|
+
invalidPermissionTooltipMessage: { type: String, required: false }
|
|
35
38
|
});
|
|
36
39
|
const slots = useSlots();
|
|
37
|
-
const hasTooltip = computed(() => !props.skeleton && !props.disabled && props.hasPermission && hasSlotContent(slots["tooltipContent"]));
|
|
38
|
-
const
|
|
40
|
+
const hasTooltip = computed(() => !props.skeleton && !props.disabled && props.hasPermission && (hasSlotContent(slots["tooltipContent"]) || props.tooltipMessage));
|
|
41
|
+
const hasDisabledTooltip = computed(() => !props.skeleton && props.disabled && props.hasPermission);
|
|
42
|
+
const hasPermissionTooltip = computed(() => !props.skeleton && !props.hasPermission);
|
|
39
43
|
</script>
|
|
40
44
|
|
|
41
45
|
<template>
|
|
@@ -60,15 +64,46 @@ const hasPermissionTooltip = computed(() => !props.skeleton && !(!props.disabled
|
|
|
60
64
|
<slot />
|
|
61
65
|
|
|
62
66
|
<template #tooltip-content>
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
<div v-if="hasPermissionTooltip">
|
|
68
|
+
<slot
|
|
69
|
+
v-if="hasSlotContent(slots['invalidPermissionTooltipContent'])"
|
|
70
|
+
name="invalidPermissionTooltipContent"
|
|
71
|
+
/>
|
|
67
72
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
<div v-else-if="invalidPermissionTooltipMessage">
|
|
74
|
+
{{ invalidPermissionTooltipMessage }}
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<div v-else>
|
|
78
|
+
[Platzhalter]
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div v-if="hasDisabledTooltip">
|
|
83
|
+
<slot
|
|
84
|
+
v-if="hasSlotContent(slots['disabledTooltipContent'])"
|
|
85
|
+
name="disabledTooltipContent"
|
|
86
|
+
/>
|
|
87
|
+
|
|
88
|
+
<div v-else-if="disabledTooltipMessage">
|
|
89
|
+
{{ disabledTooltipMessage }}
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div v-else>
|
|
93
|
+
[Platzhalter]
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div v-if="hasTooltip">
|
|
98
|
+
<slot
|
|
99
|
+
v-if="hasSlotContent(slots['tooltipContent'])"
|
|
100
|
+
name="tooltipContent"
|
|
101
|
+
/>
|
|
102
|
+
|
|
103
|
+
<div v-if="tooltipMessage">
|
|
104
|
+
{{ tooltipMessage }}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
72
107
|
</template>
|
|
73
108
|
</AntButton>
|
|
74
109
|
</template>
|
|
@@ -20,14 +20,19 @@ type __VLS_Props = {
|
|
|
20
20
|
tooltipDelay?: number;
|
|
21
21
|
submit?: boolean;
|
|
22
22
|
dataE2e?: string;
|
|
23
|
+
tooltipMessage?: string;
|
|
24
|
+
disabledTooltipMessage?: string;
|
|
25
|
+
invalidPermissionTooltipMessage?: string;
|
|
23
26
|
};
|
|
24
|
-
declare var __VLS_11: {}, __VLS_14: {}, __VLS_16: {};
|
|
27
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {};
|
|
25
28
|
type __VLS_Slots = {} & {
|
|
26
29
|
default?: (props: typeof __VLS_11) => any;
|
|
27
30
|
} & {
|
|
28
|
-
|
|
31
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_14) => any;
|
|
29
32
|
} & {
|
|
30
|
-
|
|
33
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
34
|
+
} & {
|
|
35
|
+
tooltipContent?: (props: typeof __VLS_18) => any;
|
|
31
36
|
};
|
|
32
37
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
38
|
blur: (...args: any[]) => void;
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canCreate?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
createTooltipMessage?: string;
|
|
12
11
|
tooltipState?: InputState;
|
|
12
|
+
tooltipMessage?: string;
|
|
13
|
+
disabledTooltipMessage?: string;
|
|
14
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canCreate: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -23,8 +23,10 @@ defineProps({
|
|
|
23
23
|
expanded: { type: Boolean, required: false },
|
|
24
24
|
canCreate: { type: Boolean, required: false, default: true },
|
|
25
25
|
tooltipPosition: { type: String, required: false },
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
tooltipState: { type: String, required: false },
|
|
27
|
+
tooltipMessage: { type: String, required: false },
|
|
28
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
29
|
+
invalidPermissionTooltipMessage: { type: String, required: false }
|
|
28
30
|
});
|
|
29
31
|
</script>
|
|
30
32
|
|
|
@@ -41,6 +43,9 @@ defineProps({
|
|
|
41
43
|
:has-permission="canCreate"
|
|
42
44
|
:tooltip-position="tooltipPosition"
|
|
43
45
|
:tooltip-state="tooltipState"
|
|
46
|
+
:tooltip-message="tooltipMessage"
|
|
47
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
48
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
44
49
|
data-e2e="create-button"
|
|
45
50
|
@click="$emit('click')"
|
|
46
51
|
@blur="$emit('blur')"
|
|
@@ -52,16 +57,16 @@ defineProps({
|
|
|
52
57
|
Erstellen
|
|
53
58
|
</template>
|
|
54
59
|
|
|
55
|
-
<template #
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
{{ createTooltipMessage }}
|
|
59
|
-
</template>
|
|
60
|
+
<template #tooltipContent>
|
|
61
|
+
<slot name="tooltipContent" />
|
|
62
|
+
</template>
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<template #disabledTooltipContent>
|
|
65
|
+
<slot name="disabledTooltipContent" />
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<template #invalidPermissionTooltipContent>
|
|
69
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
65
70
|
</template>
|
|
66
71
|
</ActionButton>
|
|
67
72
|
</template>
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canCreate?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
createTooltipMessage?: string;
|
|
12
11
|
tooltipState?: InputState;
|
|
12
|
+
tooltipMessage?: string;
|
|
13
|
+
disabledTooltipMessage?: string;
|
|
14
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canCreate: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canDelete?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
|
|
11
|
+
tooltipMessage?: string;
|
|
12
|
+
disabledTooltipMessage?: string;
|
|
13
|
+
invalidPermissionTooltipMessage?: string;
|
|
12
14
|
tooltipState?: InputState;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canDelete: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -23,7 +23,9 @@ defineProps({
|
|
|
23
23
|
expanded: { type: Boolean, required: false },
|
|
24
24
|
canDelete: { type: Boolean, required: false, default: true },
|
|
25
25
|
tooltipPosition: { type: String, required: false },
|
|
26
|
-
|
|
26
|
+
tooltipMessage: { type: String, required: false },
|
|
27
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
28
|
+
invalidPermissionTooltipMessage: { type: String, required: false },
|
|
27
29
|
tooltipState: { type: String, required: false }
|
|
28
30
|
});
|
|
29
31
|
</script>
|
|
@@ -41,6 +43,9 @@ defineProps({
|
|
|
41
43
|
:has-permission="canDelete"
|
|
42
44
|
:tooltip-position="tooltipPosition"
|
|
43
45
|
:tooltip-state="tooltipState"
|
|
46
|
+
:tooltip-message="tooltipMessage"
|
|
47
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
48
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
44
49
|
data-e2e="delete-button"
|
|
45
50
|
@click="$emit('click')"
|
|
46
51
|
@blur="$emit('blur')"
|
|
@@ -52,16 +57,16 @@ defineProps({
|
|
|
52
57
|
Löschen
|
|
53
58
|
</template>
|
|
54
59
|
|
|
55
|
-
<template #
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
{{ deleteTooltipMessage }}
|
|
59
|
-
</template>
|
|
60
|
+
<template #tooltipContent>
|
|
61
|
+
<slot name="tooltipContent" />
|
|
62
|
+
</template>
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<template #disabledTooltipContent>
|
|
65
|
+
<slot name="disabledTooltipContent" />
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<template #invalidPermissionTooltipContent>
|
|
69
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
65
70
|
</template>
|
|
66
71
|
</ActionButton>
|
|
67
72
|
</template>
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canDelete?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
|
|
11
|
+
tooltipMessage?: string;
|
|
12
|
+
disabledTooltipMessage?: string;
|
|
13
|
+
invalidPermissionTooltipMessage?: string;
|
|
12
14
|
tooltipState?: InputState;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canDelete: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canDuplicate?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
|
|
11
|
+
tooltipMessage?: string;
|
|
12
|
+
disabledTooltipMessage?: string;
|
|
13
|
+
invalidPermissionTooltipMessage?: string;
|
|
12
14
|
tooltipState?: InputState;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canDuplicate: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -23,7 +23,9 @@ defineProps({
|
|
|
23
23
|
expanded: { type: Boolean, required: false },
|
|
24
24
|
canDuplicate: { type: Boolean, required: false, default: true },
|
|
25
25
|
tooltipPosition: { type: String, required: false },
|
|
26
|
-
|
|
26
|
+
tooltipMessage: { type: String, required: false },
|
|
27
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
28
|
+
invalidPermissionTooltipMessage: { type: String, required: false },
|
|
27
29
|
tooltipState: { type: String, required: false }
|
|
28
30
|
});
|
|
29
31
|
</script>
|
|
@@ -41,6 +43,9 @@ defineProps({
|
|
|
41
43
|
:has-permission="canDuplicate"
|
|
42
44
|
:tooltip-position="tooltipPosition"
|
|
43
45
|
:tooltip-state="tooltipState"
|
|
46
|
+
:tooltip-message="tooltipMessage"
|
|
47
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
48
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
44
49
|
data-e2e="duplicate-button"
|
|
45
50
|
@click="$emit('click')"
|
|
46
51
|
@blur="$emit('blur')"
|
|
@@ -52,16 +57,16 @@ defineProps({
|
|
|
52
57
|
Duplizieren
|
|
53
58
|
</template>
|
|
54
59
|
|
|
55
|
-
<template #
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
{{ duplicateTooltipMessage }}
|
|
59
|
-
</template>
|
|
60
|
+
<template #tooltipContent>
|
|
61
|
+
<slot name="tooltipContent" />
|
|
62
|
+
</template>
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<template #disabledTooltipContent>
|
|
65
|
+
<slot name="disabledTooltipContent" />
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<template #invalidPermissionTooltipContent>
|
|
69
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
65
70
|
</template>
|
|
66
71
|
</ActionButton>
|
|
67
72
|
</template>
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canDuplicate?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
|
|
11
|
+
tooltipMessage?: string;
|
|
12
|
+
disabledTooltipMessage?: string;
|
|
13
|
+
invalidPermissionTooltipMessage?: string;
|
|
12
14
|
tooltipState?: InputState;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canDuplicate: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canEdit?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
|
|
11
|
+
tooltipMessage?: string;
|
|
12
|
+
disabledTooltipMessage?: string;
|
|
13
|
+
invalidPermissionTooltipMessage?: string;
|
|
12
14
|
tooltipState?: InputState;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canEdit: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -23,7 +23,9 @@ defineProps({
|
|
|
23
23
|
expanded: { type: Boolean, required: false },
|
|
24
24
|
canEdit: { type: Boolean, required: false, default: true },
|
|
25
25
|
tooltipPosition: { type: String, required: false },
|
|
26
|
-
|
|
26
|
+
tooltipMessage: { type: String, required: false },
|
|
27
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
28
|
+
invalidPermissionTooltipMessage: { type: String, required: false },
|
|
27
29
|
tooltipState: { type: String, required: false }
|
|
28
30
|
});
|
|
29
31
|
</script>
|
|
@@ -41,6 +43,9 @@ defineProps({
|
|
|
41
43
|
:has-permission="canEdit"
|
|
42
44
|
:tooltip-position="tooltipPosition"
|
|
43
45
|
:tooltip-state="tooltipState"
|
|
46
|
+
:tooltip-message="tooltipMessage"
|
|
47
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
48
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
44
49
|
data-e2e="edit-button"
|
|
45
50
|
@click="$emit('click')"
|
|
46
51
|
@blur="$emit('blur')"
|
|
@@ -52,16 +57,16 @@ defineProps({
|
|
|
52
57
|
Bearbeiten
|
|
53
58
|
</template>
|
|
54
59
|
|
|
55
|
-
<template #
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
{{ editTooltipMessage }}
|
|
59
|
-
</template>
|
|
60
|
+
<template #tooltipContent>
|
|
61
|
+
<slot name="tooltipContent" />
|
|
62
|
+
</template>
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<template #disabledTooltipContent>
|
|
65
|
+
<slot name="disabledTooltipContent" />
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<template #invalidPermissionTooltipContent>
|
|
69
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
65
70
|
</template>
|
|
66
71
|
</ActionButton>
|
|
67
72
|
</template>
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canEdit?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
|
|
11
|
+
tooltipMessage?: string;
|
|
12
|
+
disabledTooltipMessage?: string;
|
|
13
|
+
invalidPermissionTooltipMessage?: string;
|
|
12
14
|
tooltipState?: InputState;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canEdit: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canSave?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
saveTooltipMessage?: string;
|
|
12
11
|
tooltipState?: InputState;
|
|
12
|
+
tooltipMessage?: string;
|
|
13
|
+
disabledTooltipMessage?: string;
|
|
14
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canSave: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -24,8 +24,10 @@ defineProps({
|
|
|
24
24
|
expanded: { type: Boolean, required: false },
|
|
25
25
|
canSave: { type: Boolean, required: false, default: true },
|
|
26
26
|
tooltipPosition: { type: String, required: false },
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
tooltipState: { type: String, required: false },
|
|
28
|
+
tooltipMessage: { type: String, required: false },
|
|
29
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
30
|
+
invalidPermissionTooltipMessage: { type: String, required: false }
|
|
29
31
|
});
|
|
30
32
|
</script>
|
|
31
33
|
|
|
@@ -44,6 +46,9 @@ defineProps({
|
|
|
44
46
|
:has-permission="canSave"
|
|
45
47
|
:tooltip-position="tooltipPosition"
|
|
46
48
|
:tooltip-state="tooltipState"
|
|
49
|
+
:tooltip-message="tooltipMessage"
|
|
50
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
51
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
47
52
|
data-e2e="save-and-new-button"
|
|
48
53
|
@click="$emit('click')"
|
|
49
54
|
@blur="$emit('blur')"
|
|
@@ -55,16 +60,16 @@ defineProps({
|
|
|
55
60
|
Speichern und neu
|
|
56
61
|
</template>
|
|
57
62
|
|
|
58
|
-
<template #
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
{{ saveTooltipMessage }}
|
|
62
|
-
</template>
|
|
63
|
+
<template #tooltipContent>
|
|
64
|
+
<slot name="tooltipContent" />
|
|
65
|
+
</template>
|
|
63
66
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
<template #disabledTooltipContent>
|
|
68
|
+
<slot name="disabledTooltipContent" />
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<template #invalidPermissionTooltipContent>
|
|
72
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
68
73
|
</template>
|
|
69
74
|
</ActionButton>
|
|
70
75
|
</template>
|
|
@@ -8,10 +8,20 @@ type __VLS_Props = {
|
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
canSave?: boolean;
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
|
-
saveTooltipMessage?: string;
|
|
12
11
|
tooltipState?: InputState;
|
|
12
|
+
tooltipMessage?: string;
|
|
13
|
+
disabledTooltipMessage?: string;
|
|
14
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
15
|
};
|
|
14
|
-
declare
|
|
16
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
19
|
+
} & {
|
|
20
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
21
|
+
} & {
|
|
22
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
25
|
blur: (...args: any[]) => void;
|
|
16
26
|
click: (...args: any[]) => void;
|
|
17
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +31,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
31
|
iconVariant: boolean;
|
|
22
32
|
canSave: boolean;
|
|
23
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
35
|
declare const _default: typeof __VLS_export;
|
|
25
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -10,8 +10,19 @@ type __VLS_Props = {
|
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
11
|
saveTooltipMessage?: string;
|
|
12
12
|
tooltipState?: InputState;
|
|
13
|
+
tooltipMessage?: string;
|
|
14
|
+
disabledTooltipMessage?: string;
|
|
15
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
16
|
};
|
|
14
|
-
declare
|
|
17
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
20
|
+
} & {
|
|
21
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
22
|
+
} & {
|
|
23
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
26
|
blur: (...args: any[]) => void;
|
|
16
27
|
click: (...args: any[]) => void;
|
|
17
28
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +32,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
32
|
iconVariant: boolean;
|
|
22
33
|
canSave: boolean;
|
|
23
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
36
|
declare const _default: typeof __VLS_export;
|
|
25
37
|
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -24,7 +24,10 @@ defineProps({
|
|
|
24
24
|
canSave: { type: Boolean, required: false, default: true },
|
|
25
25
|
tooltipPosition: { type: String, required: false },
|
|
26
26
|
saveTooltipMessage: { type: String, required: false },
|
|
27
|
-
tooltipState: { type: String, required: false }
|
|
27
|
+
tooltipState: { type: String, required: false },
|
|
28
|
+
tooltipMessage: { type: String, required: false },
|
|
29
|
+
disabledTooltipMessage: { type: String, required: false },
|
|
30
|
+
invalidPermissionTooltipMessage: { type: String, required: false }
|
|
28
31
|
});
|
|
29
32
|
</script>
|
|
30
33
|
|
|
@@ -42,6 +45,9 @@ defineProps({
|
|
|
42
45
|
:has-permission="canSave"
|
|
43
46
|
:tooltip-position="tooltipPosition"
|
|
44
47
|
:tooltip-state="tooltipState"
|
|
48
|
+
:tooltip-message="tooltipMessage"
|
|
49
|
+
:disabled-tooltip-message="disabledTooltipMessage"
|
|
50
|
+
:invalid-permission-tooltip-message="invalidPermissionTooltipMessage"
|
|
45
51
|
data-e2e="save-button"
|
|
46
52
|
@click="$emit('click')"
|
|
47
53
|
@blur="$emit('blur')"
|
|
@@ -53,16 +59,16 @@ defineProps({
|
|
|
53
59
|
Speichern
|
|
54
60
|
</template>
|
|
55
61
|
|
|
56
|
-
<template #
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
{{ saveTooltipMessage }}
|
|
60
|
-
</template>
|
|
62
|
+
<template #tooltipContent>
|
|
63
|
+
<slot name="tooltipContent" />
|
|
64
|
+
</template>
|
|
61
65
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
<template #disabledTooltipContent>
|
|
67
|
+
<slot name="disabledTooltipContent" />
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<template #invalidPermissionTooltipContent>
|
|
71
|
+
<slot name="invalidPermissionTooltipContent" />
|
|
66
72
|
</template>
|
|
67
73
|
</ActionButton>
|
|
68
74
|
</template>
|
|
@@ -10,8 +10,19 @@ type __VLS_Props = {
|
|
|
10
10
|
tooltipPosition?: Position;
|
|
11
11
|
saveTooltipMessage?: string;
|
|
12
12
|
tooltipState?: InputState;
|
|
13
|
+
tooltipMessage?: string;
|
|
14
|
+
disabledTooltipMessage?: string;
|
|
15
|
+
invalidPermissionTooltipMessage?: string;
|
|
13
16
|
};
|
|
14
|
-
declare
|
|
17
|
+
declare var __VLS_13: {}, __VLS_16: {}, __VLS_19: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
tooltipContent?: (props: typeof __VLS_13) => any;
|
|
20
|
+
} & {
|
|
21
|
+
disabledTooltipContent?: (props: typeof __VLS_16) => any;
|
|
22
|
+
} & {
|
|
23
|
+
invalidPermissionTooltipContent?: (props: typeof __VLS_19) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
26
|
blur: (...args: any[]) => void;
|
|
16
27
|
click: (...args: any[]) => void;
|
|
17
28
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -21,5 +32,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
32
|
iconVariant: boolean;
|
|
22
33
|
canSave: boolean;
|
|
23
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
36
|
declare const _default: typeof __VLS_export;
|
|
25
37
|
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -129,7 +129,7 @@ watch(searchInputRef, (val) => {
|
|
|
129
129
|
</template>
|
|
130
130
|
</AntDropdown>
|
|
131
131
|
|
|
132
|
-
<!-- Temporary solution: Use backlayer instead of on click outside to solve the problem with popover over other popover -->
|
|
132
|
+
<!-- Temporary solution: Use backlayer instead of on click outside to solve the problem with popover over other popover -->
|
|
133
133
|
<div
|
|
134
134
|
v-if="showDropdown"
|
|
135
135
|
class="inset-0 absolute w-full h-full z-20"
|
|
@@ -45,19 +45,19 @@ function confirmDialog() {
|
|
|
45
45
|
<div
|
|
46
46
|
class="bg-base-100 gap-2 text-for-white-bg-font flex w-full justify-end"
|
|
47
47
|
>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
<AntButton
|
|
49
|
+
:state="State.base"
|
|
50
|
+
@click="closeDialog"
|
|
51
|
+
>
|
|
52
|
+
Abbrechen
|
|
53
|
+
</AntButton>
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
<DeleteButton
|
|
56
|
+
filled
|
|
57
|
+
@click="confirmDialog"
|
|
58
|
+
>
|
|
59
|
+
Löschen
|
|
60
|
+
</DeleteButton>
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</AntDialog>
|
|
@@ -8,8 +8,12 @@ import {
|
|
|
8
8
|
reactive,
|
|
9
9
|
ref
|
|
10
10
|
} from "#imports";
|
|
11
|
-
import {
|
|
12
|
-
|
|
11
|
+
import {
|
|
12
|
+
InputState
|
|
13
|
+
} from "@antify/ui";
|
|
14
|
+
import {
|
|
15
|
+
watchOnce
|
|
16
|
+
} from "@vueuse/core";
|
|
13
17
|
async function handleNotFoundResponse(response, fallbackUrl) {
|
|
14
18
|
if (response._data?.notFound) {
|
|
15
19
|
useNuxtApp().$templateModule.toaster.toastError("Entity not found. Maybe an other user deleted it.");
|
|
@@ -18,7 +22,11 @@ async function handleNotFoundResponse(response, fallbackUrl) {
|
|
|
18
22
|
}
|
|
19
23
|
function handleResponseError(error) {
|
|
20
24
|
if (error.value) {
|
|
21
|
-
throw createError({
|
|
25
|
+
throw createError({
|
|
26
|
+
...error.value?.data,
|
|
27
|
+
statusCode: 500,
|
|
28
|
+
fatal: true
|
|
29
|
+
});
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
32
|
function isFormDisabled(status) {
|
|
@@ -28,7 +36,9 @@ function isFormDisabled(status) {
|
|
|
28
36
|
return status.value === "pending";
|
|
29
37
|
}
|
|
30
38
|
function queryChanged(from, to, queryToWatch) {
|
|
31
|
-
const _queryToWatch = Array.isArray(queryToWatch) ? queryToWatch : [
|
|
39
|
+
const _queryToWatch = Array.isArray(queryToWatch) ? queryToWatch : [
|
|
40
|
+
queryToWatch
|
|
41
|
+
];
|
|
32
42
|
const changes = Object.keys(to).reduce((acc, key) => {
|
|
33
43
|
if (to[key] !== from[key]) {
|
|
34
44
|
acc[key] = to[key];
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
defineNuxtPlugin
|
|
3
|
+
} from "#app";
|
|
4
|
+
import {
|
|
5
|
+
FontAwesomeIcon
|
|
6
|
+
} from "@fortawesome/vue-fontawesome";
|
|
7
|
+
import {
|
|
8
|
+
useToaster
|
|
9
|
+
} from "@antify/ui";
|
|
4
10
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
11
|
const toaster = useToaster();
|
|
6
12
|
nuxtApp.vueApp.component("FaIcon", FontAwesomeIcon);
|
package/dist/runtime/utils.d.ts
CHANGED
package/dist/runtime/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antify/template-module",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/module.d.mts",
|
|
8
|
-
"import": "./dist/module.mjs"
|
|
9
|
-
|
|
8
|
+
"import": "./dist/module.mjs",
|
|
9
|
+
"style": "./dist/runtime/index.css"
|
|
10
|
+
},
|
|
11
|
+
"./style.css": "./dist/runtime/index.css"
|
|
10
12
|
},
|
|
11
13
|
"main": "./dist/module.mjs",
|
|
12
14
|
"types": "./dist/module.d.mts",
|
|
@@ -31,6 +33,8 @@
|
|
|
31
33
|
"@nuxt/module-builder": "latest",
|
|
32
34
|
"@nuxtjs/storybook": "8.3.5",
|
|
33
35
|
"@storybook/addon-essentials": "8.6.15",
|
|
36
|
+
"@storybook/addon-interactions": "8.6.15",
|
|
37
|
+
"@storybook/addon-links": "8.6.15",
|
|
34
38
|
"@storybook/vue3": "8.6.15",
|
|
35
39
|
"@stylistic/eslint-plugin": "^2.11.0",
|
|
36
40
|
"autoprefixer": "^10.4.20",
|