@ticatec/uniface-element 0.1.53 → 0.1.54
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.
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import Dialog from "./Dialog.svelte";
|
|
4
4
|
import type {ButtonAction, ButtonActions} from "../action-bar";
|
|
5
|
-
import type {DialogCloseConfirm, MouseClickHandler} from "..";
|
|
6
5
|
import i18n from "@ticatec/i18n";
|
|
6
|
+
import type {DialogCloseConfirm} from "./DialogCloseConfirm";
|
|
7
7
|
|
|
8
8
|
export let title: string;
|
|
9
9
|
export let closeConfirm: DialogCloseConfirm | null = null;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
let actions: ButtonActions = [confirmAction];
|
|
30
30
|
|
|
31
31
|
$: {
|
|
32
|
-
confirmAction.disabled = confirmHandler==null
|
|
32
|
+
confirmAction.disabled = confirmHandler==null || !enableConfirm;
|
|
33
33
|
actions = [...actions];
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DialogCloseConfirm } from "
|
|
1
|
+
import type { DialogCloseConfirm } from "./DialogCloseConfirm";
|
|
2
2
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
buttons = _buttons;
|
|
46
|
-
iconType = _type == null ? '
|
|
46
|
+
iconType = _type == null ? 'icon_google_warning' : _type == 'info' ? 'icon_google_info' : 'icon_google_help';
|
|
47
47
|
type = _type ?? "info";
|
|
48
48
|
visible = true;
|
|
49
49
|
return new Promise<any>(r => {
|