@ticatec/uniface-element 0.3.13 → 0.3.14
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.
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
export let closeConfirm: DialogCloseConfirm | null = null;
|
|
14
14
|
export let content$style: string = '';
|
|
15
15
|
|
|
16
|
+
export let hideClose: boolean = false;
|
|
17
|
+
|
|
16
18
|
export let closeAction: ButtonAction | null = null;
|
|
17
19
|
export let onClose: OnClose | null = null;
|
|
18
20
|
|
|
@@ -76,7 +78,9 @@
|
|
|
76
78
|
}
|
|
77
79
|
})
|
|
78
80
|
}
|
|
79
|
-
|
|
81
|
+
if (!hideClose) {
|
|
82
|
+
wa.push(closeAction);
|
|
83
|
+
}
|
|
80
84
|
return wa;
|
|
81
85
|
}
|
|
82
86
|
|
|
@@ -91,9 +95,11 @@
|
|
|
91
95
|
<div class="uniface-dialog-box" style="{dialog$style}; top: {top}px; left: {left}px; width: {width}; height: {height}; ">
|
|
92
96
|
<div class="title-bar" on:mousedown={handleMouseDown} on:mouseup={handleMouseUp} aria-hidden="true">
|
|
93
97
|
<div style="flex: 1 1 auto"><span>{title ?? 'New window'}</span></div>
|
|
94
|
-
|
|
95
|
-
<
|
|
96
|
-
|
|
98
|
+
{#if !hideClose}
|
|
99
|
+
<div style="flex: 0 0 auto; padding-left: 12px">
|
|
100
|
+
<i class="icon_google_clear dialog-action-button" aria-hidden="true" on:click={()=>close(ModalResult.Cancel)}></i>
|
|
101
|
+
</div>
|
|
102
|
+
{/if}
|
|
97
103
|
</div>
|
|
98
104
|
<div class="dialog-content" style={content$style}>
|
|
99
105
|
<slot></slot>
|
|
@@ -26,6 +26,7 @@ declare const Dialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWit
|
|
|
26
26
|
actions?: ButtonActions | null;
|
|
27
27
|
closeConfirm?: DialogCloseConfirm | null;
|
|
28
28
|
content$style?: string;
|
|
29
|
+
hideClose?: boolean;
|
|
29
30
|
closeAction?: ButtonAction | null;
|
|
30
31
|
onClose?: OnClose | null;
|
|
31
32
|
dialog$style?: string;
|
package/package.json
CHANGED