@enki-tek/fms-web-components 0.0.68 → 0.0.69
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ let badgeStyles = [`m-0`, `mt-1`, `custom-badge`, className];
|
|
6
6
|
if (badgeConfig.hasOwnProperty(config)) {
|
7
7
|
badgeStyles = [...badgeConfig[config], ...badgeStyles];
|
8
8
|
}
|
9
|
+
console.log("badgeStyles:", badgeStyles);
|
9
10
|
</script>
|
10
11
|
|
11
12
|
<Badge pill color="none" class={badgeStyles.join(' ')}>
|
@@ -1,12 +1,18 @@
|
|
1
1
|
<script>
|
2
2
|
export let className = '';
|
3
|
-
|
3
|
+
export let onClick =null;
|
4
4
|
|
5
|
-
|
5
|
+
function handleClick(event) {
|
6
|
+
event.preventDefault();
|
7
|
+
if (onClick) onClick(event);
|
8
|
+
}
|
9
|
+
</script>
|
10
|
+
|
11
|
+
<tr {...$$restProps} class={className} on:click={handleClick}>
|
6
12
|
<slot />
|
7
|
-
</tr>
|
8
|
-
|
9
|
-
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
13
|
+
</tr>
|
14
|
+
|
15
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
10
16
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
11
17
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
12
18
|
.td-div, .th-div {
|
@@ -33,3 +39,4 @@
|
|
33
39
|
font-size: 15px;
|
34
40
|
}
|
35
41
|
}</style>
|
42
|
+
|
@@ -4,9 +4,8 @@
|
|
4
4
|
export default class TableRow extends SvelteComponentTyped<{
|
5
5
|
[x: string]: any;
|
6
6
|
className?: string | undefined;
|
7
|
+
onClick?: null | undefined;
|
7
8
|
}, {
|
8
|
-
click: MouseEvent;
|
9
|
-
} & {
|
10
9
|
[evt: string]: CustomEvent<any>;
|
11
10
|
}, {
|
12
11
|
default: {};
|
@@ -20,10 +19,9 @@ declare const __propDef: {
|
|
20
19
|
props: {
|
21
20
|
[x: string]: any;
|
22
21
|
className?: string | undefined;
|
22
|
+
onClick?: null | undefined;
|
23
23
|
};
|
24
24
|
events: {
|
25
|
-
click: MouseEvent;
|
26
|
-
} & {
|
27
25
|
[evt: string]: CustomEvent<any>;
|
28
26
|
};
|
29
27
|
slots: {
|