@fishawack/lab-velocity 0.6.2 → 0.6.4
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.
- package/_defaults.scss +0 -8
- package/basic/Button.vue +12 -0
- package/basic/link.vue +14 -2
- package/components/_basic.scss +3 -0
- package/components/_footer.scss +34 -5
- package/components/_form.scss +1 -0
- package/components/_header.scss +23 -0
- package/components/_icon.scss +1 -1
- package/components/_link.scss +6 -6
- package/components/_menu.scss +19 -2
- package/form/basic.vue +9 -4
- package/form/input.js +1 -1
- package/general.scss +9 -1
- package/layout/Footer.vue +13 -7
- package/layout/Header.vue +2 -2
- package/layout/pageTitle.vue +1 -1
- package/navigation/Menu.vue +0 -2
- package/navigation/MenuItem.vue +3 -2
- package/navigation/MenuItemGroup.vue +5 -4
- package/navigation/SubMenu.vue +3 -2
- package/package.json +1 -1
package/_defaults.scss
CHANGED
|
@@ -6,14 +6,6 @@ $colors: variables.dynamic('color', module-variables("variables"));
|
|
|
6
6
|
|
|
7
7
|
// Override lab-ui defaults here, e.g $button: $color6;
|
|
8
8
|
$spacing: get-ratio(8px);
|
|
9
|
-
|
|
10
|
-
body {
|
|
11
|
-
font-family: $primaryFont, sans-serif;
|
|
12
|
-
font-size: get-ratio(16px);
|
|
13
|
-
line-height: 1.5;
|
|
14
|
-
color: $color1;
|
|
15
|
-
background-color: $color3;
|
|
16
|
-
}
|
|
17
9
|
.container {
|
|
18
10
|
margin-left: 0;
|
|
19
11
|
padding: 0px 5 * $spacing;
|
package/basic/Button.vue
CHANGED
|
@@ -38,6 +38,10 @@ export default {
|
|
|
38
38
|
type: String,
|
|
39
39
|
default: null,
|
|
40
40
|
},
|
|
41
|
+
name: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: null,
|
|
44
|
+
},
|
|
41
45
|
nativeType: {
|
|
42
46
|
type: String,
|
|
43
47
|
default: "button",
|
|
@@ -54,6 +58,14 @@ export default {
|
|
|
54
58
|
type: Boolean,
|
|
55
59
|
default: false,
|
|
56
60
|
},
|
|
61
|
+
disabled: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false,
|
|
64
|
+
},
|
|
65
|
+
autofocus: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false,
|
|
68
|
+
},
|
|
57
69
|
text: {
|
|
58
70
|
type: Boolean,
|
|
59
71
|
default: false,
|
package/basic/link.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<el-link
|
|
3
3
|
:class="[`link ${baseClass} vel-link--${size} ${ underline ? 'vel-link--underline' : ''}`]"
|
|
4
4
|
:name="name"
|
|
5
|
-
:underline="
|
|
5
|
+
:underline="underline"
|
|
6
6
|
:id="name"
|
|
7
7
|
:disabled="disabled"
|
|
8
8
|
:href="href"
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
},
|
|
29
29
|
underline: {
|
|
30
30
|
type: Boolean,
|
|
31
|
-
default:
|
|
31
|
+
default: true
|
|
32
32
|
},
|
|
33
33
|
href: {
|
|
34
34
|
type: String,
|
|
@@ -42,6 +42,18 @@ export default {
|
|
|
42
42
|
type: String,
|
|
43
43
|
default: "default",
|
|
44
44
|
},
|
|
45
|
+
name: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: null,
|
|
48
|
+
},
|
|
49
|
+
disabled: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: false,
|
|
52
|
+
},
|
|
53
|
+
autofocus: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false,
|
|
56
|
+
},
|
|
45
57
|
},
|
|
46
58
|
|
|
47
59
|
components: {
|
package/components/_basic.scss
CHANGED
package/components/_footer.scss
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
footer {
|
|
1
|
+
.vel-footer {
|
|
2
2
|
background-color: $color1;
|
|
3
|
-
|
|
4
|
-
min-height: $spacing * 20.5;
|
|
5
|
-
padding: $spacing * 5 $spacing * 3;
|
|
3
|
+
padding: $spacing * 3 $spacing * 3 $spacing * 2 $spacing * 3;
|
|
6
4
|
box-sizing: border-box;
|
|
7
5
|
width: 100%;
|
|
8
6
|
|
|
@@ -13,5 +11,36 @@ footer {
|
|
|
13
11
|
display: inline-block;
|
|
14
12
|
margin-right: $spacing;
|
|
15
13
|
}
|
|
14
|
+
* {
|
|
15
|
+
font-size: get-ratio(14px);
|
|
16
|
+
line-height: get-ratio(21px);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.vel-footer__bottom {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
align-items: stretch;
|
|
24
|
+
align-content: stretch;
|
|
25
|
+
flex-basis: 100%;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
margin-top: 3.5 * $spacing;
|
|
28
|
+
|
|
29
|
+
> * {
|
|
30
|
+
max-width: 50%;
|
|
31
|
+
flex-basis: 50%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.vel-footer__bottom__links {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
align-items: self-end;
|
|
38
|
+
flex-basis: 100%;
|
|
39
|
+
}
|
|
16
40
|
|
|
17
|
-
|
|
41
|
+
.vel-footer__bottom__end {
|
|
42
|
+
justify-content: end;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
align-items: self-end;
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
package/components/_form.scss
CHANGED
package/components/_header.scss
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
background-color: $color0;
|
|
4
4
|
width: 100%;
|
|
5
5
|
box-sizing: border-box;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
align-content: center;
|
|
10
|
+
flex-basis: 100%;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
padding: 1.5 * $spacing 3 * $spacing;
|
|
13
|
+
|
|
14
|
+
> * {
|
|
15
|
+
max-width: 50%;
|
|
16
|
+
flex-basis: 50%;
|
|
17
|
+
justify-content: flex-end !important;
|
|
18
|
+
|
|
19
|
+
}
|
|
6
20
|
|
|
7
21
|
.icon {
|
|
8
22
|
min-width: $spacing * 2.5;
|
|
@@ -14,6 +28,15 @@
|
|
|
14
28
|
}
|
|
15
29
|
|
|
16
30
|
.vel-header__list {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
align-content: stretch;
|
|
35
|
+
flex-basis: 100%;
|
|
36
|
+
padding-right: 1.5 * $spacing;
|
|
37
|
+
margin-left: -1.5 * $spacing;
|
|
38
|
+
margin-right: -1.5 * $spacing;
|
|
39
|
+
|
|
17
40
|
> div {
|
|
18
41
|
align-items: center;
|
|
19
42
|
&:not(:last-child) {
|
package/components/_icon.scss
CHANGED
package/components/_link.scss
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
.vel-link.el-link--default {
|
|
4
4
|
&:hover{
|
|
5
|
-
color
|
|
5
|
+
color:currentColor;
|
|
6
6
|
&:after{
|
|
7
|
-
border-color:
|
|
7
|
+
border-color: currentColor;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
.vel-link--underline.vel-link {
|
|
12
12
|
&:after {
|
|
13
|
-
border-bottom: 1px solid
|
|
13
|
+
border-bottom: 1px solid currentColor;
|
|
14
14
|
bottom: 0;
|
|
15
15
|
content: "";
|
|
16
16
|
height: 0;
|
|
17
17
|
left: 0;
|
|
18
18
|
position: absolute;
|
|
19
19
|
right: 0;
|
|
20
|
-
border-color:
|
|
20
|
+
border-color: currentColor;
|
|
21
21
|
}
|
|
22
22
|
&:hover{
|
|
23
|
-
color
|
|
23
|
+
color:currentColor;
|
|
24
24
|
&:after{
|
|
25
|
-
border-color:
|
|
25
|
+
border-color: currentColor;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
package/components/_menu.scss
CHANGED
|
@@ -10,7 +10,7 @@ ul.vel-menu {
|
|
|
10
10
|
.el-sub-menu__title, a, .el-menu-item > * {
|
|
11
11
|
font-size: get-ratio(18px);
|
|
12
12
|
border-left: solid .5 * $spacing transparent;
|
|
13
|
-
padding: 0 2.5 * $spacing
|
|
13
|
+
padding: 0 2.5 * $spacing;
|
|
14
14
|
width: 100%;
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
@@ -28,6 +28,10 @@ ul.vel-menu {
|
|
|
28
28
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
.el-sub-menu__title {
|
|
32
|
+
padding: 0 2.5 * $spacing !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
a {
|
|
32
36
|
height: 100%;
|
|
33
37
|
box-sizing: border-box;
|
|
@@ -92,4 +96,17 @@ ul.vel-menu {
|
|
|
92
96
|
margin-top: auto;
|
|
93
97
|
margin-bottom: 0px;
|
|
94
98
|
}
|
|
95
|
-
|
|
99
|
+
|
|
100
|
+
.el-sub-menu {
|
|
101
|
+
|
|
102
|
+
.vel-menu-item {
|
|
103
|
+
a.active {
|
|
104
|
+
border-left-color: transparent;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
.vel-menu-item a{
|
|
108
|
+
padding-left: 0px;
|
|
109
|
+
padding-right: 0px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
package/form/basic.vue
CHANGED
|
@@ -20,8 +20,13 @@
|
|
|
20
20
|
:parser="parser"
|
|
21
21
|
:formatter="formatter"
|
|
22
22
|
>
|
|
23
|
-
|
|
24
|
-
<template v-if="
|
|
23
|
+
|
|
24
|
+
<template v-if="prepend" #prepend>
|
|
25
|
+
<slot name="prepend" />
|
|
26
|
+
</template>
|
|
27
|
+
<template v-if="append" #append>
|
|
28
|
+
<slot name="append" />
|
|
29
|
+
</template>
|
|
25
30
|
</el-input>
|
|
26
31
|
</XInput>
|
|
27
32
|
</template>
|
|
@@ -56,11 +61,11 @@ export default {
|
|
|
56
61
|
default: null,
|
|
57
62
|
},
|
|
58
63
|
parser: {
|
|
59
|
-
type:
|
|
64
|
+
type: Function,
|
|
60
65
|
default: null,
|
|
61
66
|
},
|
|
62
67
|
formatter: {
|
|
63
|
-
type:
|
|
68
|
+
type: Function,
|
|
64
69
|
default: null,
|
|
65
70
|
},
|
|
66
71
|
},
|
package/form/input.js
CHANGED
package/general.scss
CHANGED
|
@@ -25,4 +25,12 @@
|
|
|
25
25
|
@import "./components/_form.scss";
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
@import "./_base.scss";
|
|
28
|
+
@import "./_base.scss";
|
|
29
|
+
|
|
30
|
+
body {
|
|
31
|
+
font-family: $primaryFont, sans-serif;
|
|
32
|
+
font-size: get-ratio(16px);
|
|
33
|
+
line-height: 1.5;
|
|
34
|
+
color: $color1;
|
|
35
|
+
background-color: $color3;
|
|
36
|
+
}
|
package/layout/Footer.vue
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<footer class="vel-footer">
|
|
3
3
|
<div>
|
|
4
|
-
<h5 class="color-0
|
|
4
|
+
<h5 class="color-0">
|
|
5
5
|
<slot/>
|
|
6
6
|
</h5>
|
|
7
7
|
</div>
|
|
8
|
-
<div class="
|
|
9
|
-
<div class="
|
|
10
|
-
<p class="color-0">© 2024 Avalere Avalere Health</p>
|
|
11
|
-
<
|
|
8
|
+
<div class="vel-footer__bottom">
|
|
9
|
+
<div class="vel-footer__bottom__links">
|
|
10
|
+
<p class="color-0">© 2024 Avalere. Part of Avalere Health</p>
|
|
11
|
+
<el-link underline class="color-0 ml" href="https://avalerehealth.com/privacy-policy/" target="_blank">Privacy Policy</el-link>
|
|
12
|
+
<el-link underline class="color-0 ml" href="https://avalerehealth.com/privacy-policy/" target="_blank">Terms of Use</el-link>
|
|
12
13
|
</div>
|
|
13
|
-
<div class="
|
|
14
|
-
<p class="color-0">Have a question
|
|
14
|
+
<div class="vel-footer__bottom__end">
|
|
15
|
+
<p class="color-0">Have a question?</p><el-link underline class="color-0 ml" :href="contact">Contact our Support Team</el-link>
|
|
15
16
|
</div>
|
|
16
17
|
</div>
|
|
17
18
|
</footer>
|
|
18
19
|
</template>
|
|
19
20
|
|
|
20
21
|
<script>
|
|
22
|
+
import elLink from "../basic/link.vue";
|
|
23
|
+
|
|
21
24
|
export default {
|
|
22
25
|
props: {
|
|
23
26
|
contact: {
|
|
24
27
|
required:true,
|
|
25
28
|
type:String
|
|
26
29
|
}
|
|
30
|
+
},
|
|
31
|
+
components: {
|
|
32
|
+
elLink
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
</script>
|
package/layout/Header.vue
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<header class="vel-header
|
|
2
|
+
<header class="vel-header">
|
|
3
3
|
<slot/>
|
|
4
4
|
|
|
5
|
-
<div class="
|
|
5
|
+
<div class="vel-header__list">
|
|
6
6
|
<slot name="links"/>
|
|
7
7
|
</div>
|
|
8
8
|
</header>
|
package/layout/pageTitle.vue
CHANGED
package/navigation/Menu.vue
CHANGED
package/navigation/MenuItem.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-menu-item class="vel-menu-item" v-bind="$props">
|
|
2
|
+
<el-menu-item :index="index" class="vel-menu-item" v-bind="$props">
|
|
3
3
|
<template #title>
|
|
4
4
|
<slot name="title" />
|
|
5
5
|
</template>
|
|
@@ -14,6 +14,7 @@ import { ElMenuItem } from "element-plus";
|
|
|
14
14
|
export default {
|
|
15
15
|
components: {
|
|
16
16
|
ElMenuItem
|
|
17
|
-
}
|
|
17
|
+
},
|
|
18
|
+
props: ['index']
|
|
18
19
|
}
|
|
19
20
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-sub-menu v-bind="$props">
|
|
2
|
+
<el-sub-menu :index="index" v-bind="$props">
|
|
3
3
|
<template #title>
|
|
4
4
|
<slot name="title" />
|
|
5
5
|
</template>
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script>
|
|
13
|
-
import
|
|
13
|
+
import ElSubMenu from "./SubMenu.vue";
|
|
14
14
|
export default {
|
|
15
15
|
components: {
|
|
16
|
-
|
|
17
|
-
}
|
|
16
|
+
ElSubMenu
|
|
17
|
+
},
|
|
18
|
+
props:['index']
|
|
18
19
|
}
|
|
19
20
|
</script>
|
package/navigation/SubMenu.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-sub-menu class="vel-sub-menu"
|
|
2
|
+
<el-sub-menu :index="index" class="vel-sub-menu" >
|
|
3
3
|
<template #title>
|
|
4
4
|
<slot name="title" />
|
|
5
5
|
</template>
|
|
@@ -14,6 +14,7 @@ import { ElSubMenu } from "element-plus";
|
|
|
14
14
|
export default {
|
|
15
15
|
components: {
|
|
16
16
|
ElSubMenu
|
|
17
|
-
}
|
|
17
|
+
},
|
|
18
|
+
props: ['index']
|
|
18
19
|
}
|
|
19
20
|
</script>
|