@finema/core 3.27.1 → 3.28.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
package/dist/module.mjs
CHANGED
|
@@ -20,6 +20,25 @@
|
|
|
20
20
|
>
|
|
21
21
|
{{ propsSafe.description }}
|
|
22
22
|
</AlertDialogDescription>
|
|
23
|
+
<div
|
|
24
|
+
v-if="propsSafe.details?.items?.length"
|
|
25
|
+
:class="theme.details()"
|
|
26
|
+
>
|
|
27
|
+
<p
|
|
28
|
+
v-if="propsSafe.details.title"
|
|
29
|
+
:class="theme.detailsTitle()"
|
|
30
|
+
>
|
|
31
|
+
{{ propsSafe.details.title }}
|
|
32
|
+
</p>
|
|
33
|
+
<ul :class="theme.detailsList()">
|
|
34
|
+
<li
|
|
35
|
+
v-for="item in propsSafe.details.items"
|
|
36
|
+
:key="item"
|
|
37
|
+
>
|
|
38
|
+
{{ item }}
|
|
39
|
+
</li>
|
|
40
|
+
</ul>
|
|
41
|
+
</div>
|
|
23
42
|
<div
|
|
24
43
|
v-if="propsSafe.type !== DialogType.LOADING"
|
|
25
44
|
:class="theme.buttonGroup()"
|
|
@@ -38,6 +57,7 @@
|
|
|
38
57
|
type="button"
|
|
39
58
|
:color="propsSafe.type"
|
|
40
59
|
:class="theme.confirmButton()"
|
|
60
|
+
:icon="propsSafe.confirmIcon"
|
|
41
61
|
@click="emits('close', true)"
|
|
42
62
|
>
|
|
43
63
|
{{ propsSafe.confirmText }}
|
|
@@ -15,6 +15,13 @@ export interface IDialogMetaItem {
|
|
|
15
15
|
isShowCancelBtn?: boolean;
|
|
16
16
|
isHideIcon?: boolean;
|
|
17
17
|
isConfirm?: boolean;
|
|
18
|
+
/** Bulleted "what happens next" box shown under the description */
|
|
19
|
+
details?: {
|
|
20
|
+
title?: string;
|
|
21
|
+
items: string[];
|
|
22
|
+
};
|
|
23
|
+
/** Icon shown inside the confirm button */
|
|
24
|
+
confirmIcon?: string;
|
|
18
25
|
}
|
|
19
26
|
export interface IDialog {
|
|
20
27
|
error: (payload: IDialogMetaItem) => Promise<boolean>;
|
|
@@ -26,6 +26,9 @@ export const dialogTheme = {
|
|
|
26
26
|
title: "font-bold text-lg mt-4",
|
|
27
27
|
description: "text-neutral-400 text-sm whitespace-pre-line",
|
|
28
28
|
buttonGroup: "flex items-center space-x-3 mt-4 justify-center w-full mt-6",
|
|
29
|
+
details: "w-full mt-4 rounded-xl border border-default bg-elevated/50 p-3 text-left",
|
|
30
|
+
detailsTitle: "font-semibold text-sm mb-1.5",
|
|
31
|
+
detailsList: "list-disc pl-5 space-y-1 text-sm text-neutral-500",
|
|
29
32
|
icon: "size-6",
|
|
30
33
|
confirmButton: "w-full justify-center",
|
|
31
34
|
cancelButton: "w-full justify-center"
|