@enki-tek/fms-web-components 0.0.83 → 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/index.d.ts CHANGED
@@ -52,9 +52,10 @@ import Page from "./components/Layout/Page.svelte";
52
52
  import MainMenuHead from "./components/Layout/MainMenuHead.svelte";
53
53
  import Footer from "./components/Layout/Footer.svelte";
54
54
  import Toast from "./components/Toast/Toast.svelte";
55
+ import NotFound from "./components/NotFound/NotFound.svelte";
55
56
  import { i18nInit } from "./components/i18n/i18n";
56
57
  import { menuTypeStore } from "./components/Layout/menuStore.js";
57
58
  import { derivedStore } from "./components/Layout/menuStore.js";
58
59
  import { smallMenuwidth } from "./components/Layout/menuStore.js";
59
- export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
60
+ export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, NotFound, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
60
61
  export default i18nInit;
package/index.js CHANGED
@@ -53,9 +53,10 @@ import Page from "./components/Layout/Page.svelte";
53
53
  import MainMenuHead from "./components/Layout/MainMenuHead.svelte";
54
54
  import Footer from "./components/Layout/Footer.svelte";
55
55
  import Toast from "./components/Toast/Toast.svelte";
56
+ import NotFound from "./components/NotFound/NotFound.svelte";
56
57
  import { i18nInit } from "./components/i18n/i18n";
57
58
  import { menuTypeStore } from "./components/Layout/menuStore.js";
58
59
  import { derivedStore } from "./components/Layout/menuStore.js";
59
60
  import { smallMenuwidth } from "./components/Layout/menuStore.js";
60
- export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
61
+ export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, NotFound, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
61
62
  export default i18nInit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",