@enki-tek/fms-web-components 0.0.84 → 0.0.85

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,21 @@
1
1
  <script>
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 = ['table' ,className];
11
- if (tableTypes.hasOwnProperty(type.trim())) {
12
- tableClasses.push(tableTypes[type.trim()]);
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} size = {size} class={tableClasses.join(' ')} >
18
- <slot />
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,6 +25,17 @@
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
+ overflow: hidden;
31
+ }
32
+ :global(.table-scroll) {
33
+ position: relative !important;
34
+ }
35
+ :global(.table-scroll thead) {
36
+ top: 0;
37
+ position: sticky !important;
38
+ z-index: 1;
30
39
  }
31
40
  .th-div {
32
41
  font-size: 17px;
@@ -1,32 +1,45 @@
1
1
  @import './../variable.scss';
2
2
 
3
3
  %common-fonts {
4
- color: $Title-Color;
5
- font-size: 16px;
6
- font-style: normal;
7
- font-weight: 700;
8
- font-family: $bodyFonts !important;
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
+ overflow: hidden;
12
+ }
13
+
14
+ :global(.table-scroll) {
15
+ position: relative !important;
16
+ }
17
+
18
+ :global(.table-scroll thead) {
19
+ top: 0;
20
+ position: sticky !important;
21
+ z-index: 1;
9
22
  }
10
23
 
11
24
  .th-div {
12
- @extend %common-fonts;
13
- font-size: 17px;
14
- text-wrap: nowrap;
15
- text-transform: capitalize;
16
- padding-right: 40px !important;
25
+ @extend %common-fonts;
26
+ font-size: 17px;
27
+ text-wrap: nowrap;
28
+ text-transform: capitalize;
29
+ padding-right: 40px !important;
17
30
  }
18
31
 
19
32
  .td-div {
20
- width: 12.5rem;
21
- padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
22
- @extend %common-fonts;
23
- font-weight: 400;
24
- vertical-align: top;
25
- text-wrap: balance;
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
- .th-div {
30
- font-size: 15px;
31
- }
32
- }
41
+ @media (max-width: 768px) {
42
+ .th-div {
43
+ font-size: 15px;
44
+ }
45
+ }
@@ -15,6 +15,17 @@
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
+ overflow: hidden;
21
+ }
22
+ :global(.table-scroll) {
23
+ position: relative !important;
24
+ }
25
+ :global(.table-scroll thead) {
26
+ top: 0;
27
+ position: sticky !important;
28
+ z-index: 1;
18
29
  }
19
30
  .th-div {
20
31
  font-size: 17px;
@@ -17,6 +17,17 @@ 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
+ overflow: hidden;
23
+ }
24
+ :global(.table-scroll) {
25
+ position: relative !important;
26
+ }
27
+ :global(.table-scroll thead) {
28
+ top: 0;
29
+ position: sticky !important;
30
+ z-index: 1;
20
31
  }
21
32
  .th-div {
22
33
  font-size: 17px;
@@ -14,6 +14,17 @@
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
+ overflow: hidden;
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;
17
28
  }
18
29
  .th-div {
19
30
  font-size: 17px;
@@ -17,6 +17,17 @@
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
+ overflow: hidden;
23
+ }
24
+ :global(.table-scroll) {
25
+ position: relative !important;
26
+ }
27
+ :global(.table-scroll thead) {
28
+ top: 0;
29
+ position: sticky !important;
30
+ z-index: 1;
20
31
  }
21
32
  .th-div {
22
33
  font-size: 17px;
@@ -21,6 +21,17 @@
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
+ overflow: hidden;
27
+ }
28
+ :global(.table-scroll) {
29
+ position: relative !important;
30
+ }
31
+ :global(.table-scroll thead) {
32
+ top: 0;
33
+ position: sticky !important;
34
+ z-index: 1;
24
35
  }
25
36
  .th-div {
26
37
  font-size: 17px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",