@enki-tek/fms-web-components 0.0.80 → 0.0.81
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,10 @@
|
|
4
4
|
import {Icon} from 'sveltestrap'
|
5
5
|
import { toastConfig } from "./ToastConfig";
|
6
6
|
|
7
|
-
export let type = '
|
7
|
+
export let type = '';
|
8
8
|
export let className='';
|
9
9
|
let iconName='';
|
10
|
+
export let label = '';
|
10
11
|
|
11
12
|
let toastStyle = [`toast-main`,className];
|
12
13
|
|
@@ -31,7 +32,15 @@
|
|
31
32
|
<Col sm=2 class=' d-flex justify-content-center align-items-center ps-0 pe-1'>
|
32
33
|
<Icon name={iconName}></Icon>
|
33
34
|
</Col>
|
34
|
-
<Col sm=10 class='ps-0 pt-0 pb-0 pe-2'>
|
35
|
+
<Col sm=10 class='ps-0 pt-0 pb-0 pe-2'>
|
36
|
+
<slot>
|
37
|
+
{#if label}
|
38
|
+
{label}
|
39
|
+
{:else}
|
40
|
+
<slot />
|
41
|
+
{/if}
|
42
|
+
</slot>
|
43
|
+
</Col>
|
35
44
|
</Row>
|
36
45
|
</div>
|
37
46
|
|
@@ -47,8 +56,9 @@
|
|
47
56
|
}
|
48
57
|
.toast-main {
|
49
58
|
position: fixed;
|
50
|
-
bottom:
|
51
|
-
right:
|
59
|
+
bottom: 14px;
|
60
|
+
right: 6px;
|
61
|
+
z-index: 2000;
|
52
62
|
min-width: 100px;
|
53
63
|
max-width: 500px;
|
54
64
|
border: 1px solid #000000;
|
@@ -3,10 +3,13 @@
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ToastSlots */
|
4
4
|
export default class Toast extends SvelteComponentTyped<{
|
5
5
|
type?: string | undefined;
|
6
|
+
label?: string | undefined;
|
6
7
|
className?: string | undefined;
|
7
8
|
}, {
|
8
9
|
[evt: string]: CustomEvent<any>;
|
9
|
-
}, {
|
10
|
+
}, {
|
11
|
+
default: {};
|
12
|
+
}> {
|
10
13
|
}
|
11
14
|
export type ToastProps = typeof __propDef.props;
|
12
15
|
export type ToastEvents = typeof __propDef.events;
|
@@ -15,11 +18,14 @@ import { SvelteComponentTyped } from "svelte";
|
|
15
18
|
declare const __propDef: {
|
16
19
|
props: {
|
17
20
|
type?: string | undefined;
|
21
|
+
label?: string | undefined;
|
18
22
|
className?: string | undefined;
|
19
23
|
};
|
20
24
|
events: {
|
21
25
|
[evt: string]: CustomEvent<any>;
|
22
26
|
};
|
23
|
-
slots: {
|
27
|
+
slots: {
|
28
|
+
default: {};
|
29
|
+
};
|
24
30
|
};
|
25
31
|
export {};
|