@enki-tek/fms-web-components 0.0.80 → 0.0.82
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.
|
@@ -10,13 +10,22 @@ declare namespace _default {
|
|
|
10
10
|
}
|
|
11
11
|
const options: string[];
|
|
12
12
|
}
|
|
13
|
+
namespace label {
|
|
14
|
+
export namespace control_1 {
|
|
15
|
+
const type_2: string;
|
|
16
|
+
export { type_2 as type };
|
|
17
|
+
}
|
|
18
|
+
export { control_1 as control };
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
export default _default;
|
|
16
23
|
export namespace Default {
|
|
17
24
|
namespace args {
|
|
18
|
-
const
|
|
19
|
-
export {
|
|
25
|
+
const type_3: string;
|
|
26
|
+
export { type_3 as type };
|
|
27
|
+
const label_1: string;
|
|
28
|
+
export { label_1 as label };
|
|
20
29
|
}
|
|
21
30
|
}
|
|
22
31
|
import Toast from "./Toast.svelte";
|
|
@@ -8,13 +8,15 @@ export default{
|
|
|
8
8
|
type: {
|
|
9
9
|
control: {type:'select'},
|
|
10
10
|
options:['success','warning','danger','info']
|
|
11
|
-
}
|
|
11
|
+
},
|
|
12
|
+
label: { control: { type: 'text' } }
|
|
12
13
|
}
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
export const Default = {
|
|
17
18
|
args:{
|
|
18
|
-
type:'success'
|
|
19
|
+
type:'success',
|
|
20
|
+
label:'Toast message'
|
|
19
21
|
}
|
|
20
22
|
};
|
|
@@ -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 d-flex align-items-center'>
|
|
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 {};
|