@enki-tek/fms-web-components 0.0.67 → 0.0.69
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.
@@ -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: {
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
:global(.custom-field) {
|
8
8
|
box-shadow: none;
|
9
|
-
color: $gray-
|
9
|
+
color: $gray-900;
|
10
10
|
line-height: 20px;
|
11
11
|
display: flex;
|
12
12
|
align-items: center;
|
@@ -16,9 +16,7 @@
|
|
16
16
|
border: 1px solid $gray-300;
|
17
17
|
background: $white;
|
18
18
|
}
|
19
|
-
|
20
|
-
color: $gray-900;
|
21
|
-
}
|
19
|
+
|
22
20
|
:global(.form-control:focus) {
|
23
21
|
box-shadow: none;
|
24
22
|
border-color: $primary;
|
@@ -42,7 +42,7 @@
|
|
42
42
|
}
|
43
43
|
:global(.custom-field) {
|
44
44
|
box-shadow: none;
|
45
|
-
color: #
|
45
|
+
color: #212529;
|
46
46
|
line-height: 20px;
|
47
47
|
display: flex;
|
48
48
|
align-items: center;
|
@@ -52,9 +52,6 @@
|
|
52
52
|
border: 1px solid #DEE2E6;
|
53
53
|
background: #ffffff;
|
54
54
|
}
|
55
|
-
:global(input[type="date"]) {
|
56
|
-
color: #212529;
|
57
|
-
}
|
58
55
|
:global(.form-control:focus) {
|
59
56
|
box-shadow: none;
|
60
57
|
border-color: #00AEE5;
|