@enki-tek/fms-web-components 0.0.84 → 0.0.86
Sign up to get free protection for your applications and to get access to all the features.
- package/components/EnkiTable/EnkiTable.svelte +25 -16
- package/components/EnkiTable/Table.scss +34 -21
- package/components/EnkiTable/TableBody.svelte +11 -0
- package/components/EnkiTable/TableCell.svelte +11 -0
- package/components/EnkiTable/TableHead.svelte +11 -0
- package/components/EnkiTable/TableHeadCell.svelte +11 -0
- package/components/EnkiTable/TableRow.svelte +11 -0
- package/package.json +1 -1
@@ -1,23 +1,21 @@
|
|
1
1
|
<script>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
export let className =''
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
import { Table } from 'sveltestrap';
|
3
|
+
export let size = 'lg';
|
4
|
+
export let type = ' ';
|
5
|
+
export let className = '';
|
6
|
+
const tableTypes = {
|
7
|
+
hover: 'table-hover',
|
8
|
+
striped: 'table-striped'
|
9
|
+
};
|
10
|
+
let tableClasses = [className];
|
11
|
+
if (tableTypes.hasOwnProperty(type.trim())) {
|
12
|
+
tableClasses.push(tableTypes[type.trim()]);
|
13
|
+
}
|
15
14
|
</script>
|
16
15
|
|
17
|
-
<Table {...$$restProps}
|
18
|
-
|
16
|
+
<Table {...$$restProps} {size} class={tableClasses.join(' ')} >
|
17
|
+
<slot />
|
19
18
|
</Table>
|
20
|
-
|
21
19
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
22
20
|
@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");
|
23
21
|
@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");
|
@@ -27,12 +25,23 @@
|
|
27
25
|
font-style: normal;
|
28
26
|
font-weight: 700;
|
29
27
|
font-family: Roboto !important;
|
28
|
+
text-overflow: ellipsis;
|
29
|
+
white-space: nowrap;
|
30
|
+
}
|
31
|
+
:global(.table-scroll) {
|
32
|
+
position: relative !important;
|
33
|
+
}
|
34
|
+
:global(.table-scroll thead) {
|
35
|
+
top: 0;
|
36
|
+
position: sticky !important;
|
37
|
+
z-index: 1;
|
30
38
|
}
|
31
39
|
.th-div {
|
32
40
|
font-size: 17px;
|
33
41
|
text-wrap: nowrap;
|
34
42
|
text-transform: capitalize;
|
35
43
|
padding-right: 40px !important;
|
44
|
+
overflow: hidden;
|
36
45
|
}
|
37
46
|
.td-div {
|
38
47
|
width: 12.5rem;
|
@@ -1,32 +1,45 @@
|
|
1
1
|
@import './../variable.scss';
|
2
2
|
|
3
3
|
%common-fonts {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
color: $Title-Color;
|
5
|
+
font-size: 16px;
|
6
|
+
font-style: normal;
|
7
|
+
font-weight: 700;
|
8
|
+
font-family: $bodyFonts !important;
|
9
|
+
text-overflow: ellipsis;
|
10
|
+
white-space: nowrap;
|
11
|
+
}
|
12
|
+
|
13
|
+
:global(.table-scroll) {
|
14
|
+
position: relative !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
:global(.table-scroll thead) {
|
18
|
+
top: 0;
|
19
|
+
position: sticky !important;
|
20
|
+
z-index: 1;
|
9
21
|
}
|
10
22
|
|
11
23
|
.th-div {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
24
|
+
@extend %common-fonts;
|
25
|
+
font-size: 17px;
|
26
|
+
text-wrap: nowrap;
|
27
|
+
text-transform: capitalize;
|
28
|
+
padding-right: 40px !important;
|
29
|
+
overflow: hidden;
|
17
30
|
}
|
18
31
|
|
19
32
|
.td-div {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
33
|
+
width: 12.5rem;
|
34
|
+
padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
|
35
|
+
@extend %common-fonts;
|
36
|
+
font-weight: 400;
|
37
|
+
vertical-align: top;
|
38
|
+
text-wrap: balance;
|
26
39
|
}
|
27
40
|
|
28
|
-
@media (max-width:768px){
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
41
|
+
@media (max-width: 768px) {
|
42
|
+
.th-div {
|
43
|
+
font-size: 15px;
|
44
|
+
}
|
45
|
+
}
|
@@ -15,12 +15,23 @@
|
|
15
15
|
font-style: normal;
|
16
16
|
font-weight: 700;
|
17
17
|
font-family: Roboto !important;
|
18
|
+
text-overflow: ellipsis;
|
19
|
+
white-space: nowrap;
|
20
|
+
}
|
21
|
+
:global(.table-scroll) {
|
22
|
+
position: relative !important;
|
23
|
+
}
|
24
|
+
:global(.table-scroll thead) {
|
25
|
+
top: 0;
|
26
|
+
position: sticky !important;
|
27
|
+
z-index: 1;
|
18
28
|
}
|
19
29
|
.th-div {
|
20
30
|
font-size: 17px;
|
21
31
|
text-wrap: nowrap;
|
22
32
|
text-transform: capitalize;
|
23
33
|
padding-right: 40px !important;
|
34
|
+
overflow: hidden;
|
24
35
|
}
|
25
36
|
.td-div {
|
26
37
|
width: 12.5rem;
|
@@ -17,12 +17,23 @@ let tdStyles = ['td-div', className]
|
|
17
17
|
font-style: normal;
|
18
18
|
font-weight: 700;
|
19
19
|
font-family: Roboto !important;
|
20
|
+
text-overflow: ellipsis;
|
21
|
+
white-space: nowrap;
|
22
|
+
}
|
23
|
+
:global(.table-scroll) {
|
24
|
+
position: relative !important;
|
25
|
+
}
|
26
|
+
:global(.table-scroll thead) {
|
27
|
+
top: 0;
|
28
|
+
position: sticky !important;
|
29
|
+
z-index: 1;
|
20
30
|
}
|
21
31
|
.th-div {
|
22
32
|
font-size: 17px;
|
23
33
|
text-wrap: nowrap;
|
24
34
|
text-transform: capitalize;
|
25
35
|
padding-right: 40px !important;
|
36
|
+
overflow: hidden;
|
26
37
|
}
|
27
38
|
.td-div {
|
28
39
|
width: 12.5rem;
|
@@ -14,12 +14,23 @@
|
|
14
14
|
font-style: normal;
|
15
15
|
font-weight: 700;
|
16
16
|
font-family: Roboto !important;
|
17
|
+
text-overflow: ellipsis;
|
18
|
+
white-space: nowrap;
|
19
|
+
}
|
20
|
+
:global(.table-scroll) {
|
21
|
+
position: relative !important;
|
22
|
+
}
|
23
|
+
:global(.table-scroll thead) {
|
24
|
+
top: 0;
|
25
|
+
position: sticky !important;
|
26
|
+
z-index: 1;
|
17
27
|
}
|
18
28
|
.th-div {
|
19
29
|
font-size: 17px;
|
20
30
|
text-wrap: nowrap;
|
21
31
|
text-transform: capitalize;
|
22
32
|
padding-right: 40px !important;
|
33
|
+
overflow: hidden;
|
23
34
|
}
|
24
35
|
.td-div {
|
25
36
|
width: 12.5rem;
|
@@ -17,12 +17,23 @@
|
|
17
17
|
font-style: normal;
|
18
18
|
font-weight: 700;
|
19
19
|
font-family: Roboto !important;
|
20
|
+
text-overflow: ellipsis;
|
21
|
+
white-space: nowrap;
|
22
|
+
}
|
23
|
+
:global(.table-scroll) {
|
24
|
+
position: relative !important;
|
25
|
+
}
|
26
|
+
:global(.table-scroll thead) {
|
27
|
+
top: 0;
|
28
|
+
position: sticky !important;
|
29
|
+
z-index: 1;
|
20
30
|
}
|
21
31
|
.th-div {
|
22
32
|
font-size: 17px;
|
23
33
|
text-wrap: nowrap;
|
24
34
|
text-transform: capitalize;
|
25
35
|
padding-right: 40px !important;
|
36
|
+
overflow: hidden;
|
26
37
|
}
|
27
38
|
.td-div {
|
28
39
|
width: 12.5rem;
|
@@ -21,12 +21,23 @@
|
|
21
21
|
font-style: normal;
|
22
22
|
font-weight: 700;
|
23
23
|
font-family: Roboto !important;
|
24
|
+
text-overflow: ellipsis;
|
25
|
+
white-space: nowrap;
|
26
|
+
}
|
27
|
+
:global(.table-scroll) {
|
28
|
+
position: relative !important;
|
29
|
+
}
|
30
|
+
:global(.table-scroll thead) {
|
31
|
+
top: 0;
|
32
|
+
position: sticky !important;
|
33
|
+
z-index: 1;
|
24
34
|
}
|
25
35
|
.th-div {
|
26
36
|
font-size: 17px;
|
27
37
|
text-wrap: nowrap;
|
28
38
|
text-transform: capitalize;
|
29
39
|
padding-right: 40px !important;
|
40
|
+
overflow: hidden;
|
30
41
|
}
|
31
42
|
.td-div {
|
32
43
|
width: 12.5rem;
|