@enki-tek/fms-web-components 0.0.39 → 0.0.40

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.
@@ -1,11 +1,10 @@
1
1
  <script>import { Alert } from "sveltestrap";
2
2
  export let color = "info";
3
- export let message = "I am an alert and I can be dismissed!";
4
3
  </script>
5
4
 
6
5
  <Alert class={`alert-${color}`} dismissible>
7
6
  <slot />
8
- {message}
7
+
9
8
  </Alert>
10
9
 
11
10
 
@@ -2,7 +2,6 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  color?: "info" | "success" | "danger" | "warning" | undefined;
5
- message?: string | undefined;
6
5
  };
7
6
  events: {
8
7
  [evt: string]: CustomEvent<any>;
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { Offcanvas } from 'sveltestrap';
3
3
  import Icon from '../Icon/Icon.svelte';
4
- export let companyName = 'Vertfarm';
4
+ export let companyName = 'ENKITEK';
5
5
  export let isOpen = true;
6
6
  export let backdrop = false;
7
7
  import { menuTypeStore } from '../lay-out/menuStore.js';
@@ -35,7 +35,15 @@
35
35
  <div class="sidebar-menu">
36
36
  <Offcanvas class="offcanvas offcanvas-start" scroll {isOpen} {backdrop}>
37
37
  <div class="offcanvas-header">
38
- <h5 class="offcanvas-title efs-small" id="offcanvasScrollingLabel">{companyName}</h5>
38
+ <h5 class="offcanvas-title efs-small" id="offcanvasScrollingLabel">
39
+ <slot>
40
+ {#if companyName}
41
+ {companyName}
42
+ {:else}
43
+ <slot name="company-name"/>
44
+ {/if}
45
+ </slot>
46
+ </h5>
39
47
  <button
40
48
  type="button"
41
49
  class="toggle-button"
@@ -131,6 +139,7 @@
131
139
  }
132
140
  .offcanvas-header {
133
141
  padding: 1.5rem 1.5rem;
142
+ display: flex;
134
143
  }
135
144
  .line-open {
136
145
  width: 274px;
@@ -9,6 +9,8 @@ export default class EnkiSidebar extends SvelteComponentTyped<{
9
9
  [evt: string]: CustomEvent<any>;
10
10
  }, {
11
11
  'nav-icons': {};
12
+ default: {};
13
+ 'company-name': {};
12
14
  'nav-item': {};
13
15
  }> {
14
16
  }
@@ -27,6 +29,8 @@ declare const __propDef: {
27
29
  };
28
30
  slots: {
29
31
  'nav-icons': {};
32
+ default: {};
33
+ 'company-name': {};
30
34
  'nav-item': {};
31
35
  };
32
36
  };
@@ -78,6 +78,7 @@
78
78
  }
79
79
  .offcanvas-header {
80
80
  padding: 1.5rem 1.5rem;
81
+ display: flex;
81
82
  }
82
83
  .line-open {
83
84
  width: 274px;
@@ -80,6 +80,7 @@
80
80
  }
81
81
  .offcanvas-header {
82
82
  padding: 1.5rem 1.5rem;
83
+ display: flex;
83
84
  }
84
85
  .line-open {
85
86
  width: 274px;
@@ -88,6 +88,7 @@
88
88
  }
89
89
  .offcanvas-header {
90
90
  padding: 1.5rem 1.5rem;
91
+ display: flex;
91
92
  }
92
93
  .line-open {
93
94
  width: 274px;
@@ -119,6 +119,7 @@
119
119
 
120
120
  .offcanvas-header {
121
121
  padding: 1.5rem 1.5rem;
122
+ display: flex;
122
123
  }
123
124
 
124
125
  .line-open {
@@ -35,4 +35,5 @@
35
35
  width: 12.5rem;
36
36
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
37
37
  font-weight: 400;
38
+ vertical-align: middle;
38
39
  }</style>
@@ -13,11 +13,10 @@
13
13
  font-size: 17px;
14
14
  }
15
15
 
16
-
17
-
18
16
  .td-div {
19
17
  width: 12.5rem;
20
18
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
21
19
  @extend %common-fonts;
22
20
  font-weight: 400;
21
+ vertical-align: middle;
23
22
  }
@@ -23,4 +23,5 @@
23
23
  width: 12.5rem;
24
24
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
25
25
  font-weight: 400;
26
+ vertical-align: middle;
26
27
  }</style>
@@ -25,4 +25,5 @@ let tdStyles = ['td-div', className]
25
25
  width: 12.5rem;
26
26
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
27
27
  font-weight: 400;
28
+ vertical-align: middle;
28
29
  }</style>
@@ -22,4 +22,5 @@
22
22
  width: 12.5rem;
23
23
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
24
24
  font-weight: 400;
25
+ vertical-align: middle;
25
26
  }</style>
@@ -25,4 +25,5 @@
25
25
  width: 12.5rem;
26
26
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
27
27
  font-weight: 400;
28
+ vertical-align: middle;
28
29
  }</style>
@@ -23,4 +23,5 @@
23
23
  width: 12.5rem;
24
24
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
25
25
  font-weight: 400;
26
+ vertical-align: middle;
26
27
  }</style>
@@ -1,31 +1,21 @@
1
1
  <script>
2
- import { Col, Row, Button } from "sveltestrap";
3
- import { menuTypeStore } from './menuStore.js';
4
-
5
-
6
- const setState = () =>{
7
- menuTypeStore.set($menuTypeStore ? '': 'show');
8
- }
9
-
10
-
11
-
2
+ import { Col, Row } from 'sveltestrap';
12
3
  </script>
13
4
 
14
- <!-- <section>
15
- <div class="container-fluid mb-2">
16
- <Row class="border-bottom py-1">
17
- <Col>
18
- <header>
19
- <div class="d-flex flex-row justify-content-start">
20
- <a href="{"javascript:{}"}" on:click={setState }><i class="material-icons">menu</i></a>
21
- <slot name="title" />
22
- </div>
23
- </header>
24
- </Col>
25
- <Col class="mt-1">
26
- <slot name="actions" />
27
- </Col>
28
- </Row>
29
- </div>
30
- </section> -->
5
+ <section>
6
+ <div class="container-fluid mb-2">
7
+ <Row class="border-bottom py-1">
8
+ <Col>
9
+ <header>
10
+ <div class="d-flex flex-row justify-content-start">
11
+ <slot name="title" />
12
+ </div>
13
+ </header>
14
+ </Col>
15
+ <Col class="mt-1">
16
+ <slot name="actions" />
17
+ </Col>
18
+ </Row>
19
+ </div>
20
+ </section>
31
21
  <slot name="content" />
@@ -6,6 +6,8 @@ export default class Page extends SvelteComponentTyped<{
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
9
+ title: {};
10
+ actions: {};
9
11
  content: {};
10
12
  }> {
11
13
  }
@@ -21,6 +23,8 @@ declare const __propDef: {
21
23
  [evt: string]: CustomEvent<any>;
22
24
  };
23
25
  slots: {
26
+ title: {};
27
+ actions: {};
24
28
  content: {};
25
29
  };
26
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",
@@ -138,7 +138,6 @@
138
138
  "./components/i18n/ShiftLanguage.svelte": "./components/i18n/ShiftLanguage.svelte",
139
139
  "./components/i18n/i18n": "./components/i18n/i18n.js",
140
140
  "./components/lay-out/Footer.svelte": "./components/lay-out/Footer.svelte",
141
- "./components/lay-out/LayOut.spec": "./components/lay-out/LayOut.spec.js",
142
141
  "./components/lay-out/LayOut.stories": "./components/lay-out/LayOut.stories.js",
143
142
  "./components/lay-out/LayOut.svelte": "./components/lay-out/LayOut.svelte",
144
143
  "./components/lay-out/MainMenuHead.svelte": "./components/lay-out/MainMenuHead.svelte",
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import LayOut from "./LayOut.svelte";
2
- import { render, cleanup } from '@testing-library/svelte';
3
- beforeEach(cleanup);
4
- describe('LayOut', () => {
5
- test('should render correctly', () => {
6
- const { container } = render(LayOut);
7
- const component = container.querySelector('.wrapper');
8
- expect(component && component.className).toBe('wrapper');
9
- });
10
- });