@fishawack/lab-velocity 0.2.1 → 0.3.0

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/_variables.scss CHANGED
@@ -27,4 +27,5 @@ $color7: #666666;
27
27
  $color8: #f2f2f2; //Used
28
28
  $color9: #ff0000;
29
29
  $color10: #dcdbdb;
30
- $color11: #8C8C8C; //Used
30
+ $color11: #8C8C8C; //Used
31
+ $color12: #5C5C5C;
@@ -0,0 +1,38 @@
1
+ @import "element-plus/theme-chalk/el-breadcrumb";
2
+ @import "element-plus/theme-chalk/el-breadcrumb-item";
3
+
4
+ .el-breadcrumb__separator {
5
+ display: none;
6
+ margin:0px .8rem;
7
+ }
8
+
9
+ .el-breadcrumb__separator,
10
+ .el-breadcrumb__inner {
11
+ font-size: 1.6rem;
12
+ line-height: 2.4rem;
13
+ }
14
+
15
+ .el-breadcrumb__inner {
16
+ &.is-link {
17
+ text-decoration: underline;
18
+ font-weight: 500;
19
+ color: $color2;
20
+ text-transform: capitalize;
21
+
22
+ &:hover {
23
+ color:$color12;
24
+ }
25
+ }
26
+ }
27
+
28
+ .el-breadcrumb__item {
29
+ &:last-child {
30
+ .el-breadcrumb__inner {
31
+ &.is-link {
32
+ color: $color2;
33
+ font-weight: 400;
34
+ text-decoration: none;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -1,37 +1,5 @@
1
1
  @import "element-plus/theme-chalk/el-button";
2
2
 
3
- .vel-button {
4
- border-radius: 0px;
5
- &[disabled=true] {
6
- pointer-events: none !important;
7
- }
8
- &--iconRight {
9
- .vel-button__button {
10
- .el-icon {
11
- order: 2;
12
- }
13
- >span {
14
- order: 1;
15
- margin: 0 0.5rem 0 0;
16
- }
17
- }
18
- }
19
- &--iconOnly {
20
- .vel-button__button {
21
- > span {
22
- margin: 0;
23
- }
24
- .vel-icon{
25
- width: 1rem;
26
- height: 1rem;
27
- }
28
- svg {
29
- width: 100%;
30
- height: 100%;
31
- }
32
- }
33
- }
34
- }
35
3
 
36
4
  .el-button--default {
37
5
  border: solid 1px $color5;
@@ -152,4 +120,49 @@
152
120
  .el-button {
153
121
  height: auto;
154
122
  --el-border-radius-base: 0px;
123
+
124
+ &.is-circle {
125
+ width: auto;
126
+ padding: 1.5rem;
127
+ }
128
+ }
129
+
130
+ .vel-button {
131
+ &[disabled=true] {
132
+ pointer-events: none !important;
133
+ }
134
+ &--iconRight {
135
+ .vel-button__button {
136
+ .el-icon {
137
+ order: 2;
138
+ }
139
+ >span {
140
+ order: 1;
141
+ margin: 0 0.5rem 0 0;
142
+ }
143
+ }
144
+ }
145
+ &--iconOnly {
146
+ // padding: 1.5rem;
147
+
148
+ > span {
149
+ margin: 0;
150
+ }
151
+ .vel-icon{
152
+ width: 1.138rem;
153
+ height: 1.138rem;
154
+ }
155
+ svg {
156
+ width: 100%;
157
+ height: 100%;
158
+ }
159
+
160
+ &.el-button--small {
161
+ padding: .6rem 1.2rem;
162
+ }
163
+
164
+ &.el-button--large {
165
+ padding: 1.7rem 2rem;
166
+ }
167
+ }
155
168
  }
@@ -1,5 +1,9 @@
1
- @import "element-plus/theme-chalk/el-select";
2
1
  @import "element-plus/theme-chalk/el-tag";
2
+ @import "element-plus/theme-chalk/el-option";
3
+ @import "element-plus/theme-chalk/el-option-group";
4
+ @import "element-plus/theme-chalk/el-scrollbar";
5
+ @import "element-plus/theme-chalk/el-popper";
6
+ @import "element-plus/theme-chalk/el-select";
3
7
 
4
8
  .vel-select {
5
- }
9
+ }
@@ -0,0 +1,2 @@
1
+ @import "quill/dist/quill.snow";
2
+ @import "quill/dist/quill.core";
package/form/Select.vue CHANGED
@@ -19,7 +19,7 @@
19
19
  @blur="this.$emit('blur')"
20
20
  >
21
21
  <el-option
22
- v-if="!object"
22
+ v-if="!options[0]?.value"
23
23
  v-for="(label, value) in options"
24
24
  :key="value"
25
25
  :label="label"
@@ -27,7 +27,7 @@
27
27
  >
28
28
  </el-option>
29
29
  <el-option
30
- v-else-if="object"
30
+ v-else
31
31
  v-for="option in options"
32
32
  :key="option.value"
33
33
  :label="option.label"
@@ -77,11 +77,7 @@ export default {
77
77
  multiple: {
78
78
  type: Boolean,
79
79
  default: false,
80
- },
81
- object: {
82
- type: Boolean,
83
- default: false,
84
- },
80
+ }
85
81
  },
86
82
 
87
83
  components: {
package/form/input.vue CHANGED
@@ -10,7 +10,7 @@
10
10
  <slot />
11
11
 
12
12
  <div v-if="error" class="form__error" :class="{ [baseClass + '__error']: baseClass }">
13
- <small v-text="error"></small>
13
+ <small v-text="(error && typeof error === 'object' && error[name][0]) || (error || 'nbsp;')" />
14
14
  </div>
15
15
  </div>
16
16
  </template>
@@ -27,7 +27,7 @@ export default {
27
27
  default: null,
28
28
  },
29
29
  error: {
30
- type: String,
30
+ type: [String,Object],
31
31
  default: null,
32
32
  },
33
33
  baseClass: {
package/general.scss CHANGED
@@ -12,7 +12,9 @@
12
12
  @import "./components/_datepicker.scss";
13
13
  @import "./components/_link.scss";
14
14
  @import "./components/_cascader.scss";
15
+ @import "./components/_wysiwyg.scss";
15
16
 
17
+ @import "./components/_breadcrumbs.scss";
16
18
  @import "./components/_sidebar.scss";
17
19
  @import "./components/_typography.scss";
18
20
  @import "./components/_footer.scss";
package/index.js CHANGED
@@ -1,13 +1,16 @@
1
+ export { default as Button } from "./basic/Button.vue";
2
+ export { default as Link } from "./basic/link.vue";
3
+
1
4
  export { default as Basic } from "./form/basic.vue";
2
- export { default as Button } from "./form/Button.vue";
3
5
  export { default as Checkbox } from "./form/Checkbox.vue";
4
6
  export { default as CheckboxGroup } from "./form/CheckboxGroup.vue";
5
- export { default as color } from "./form/color.vue";
7
+ export { default as Color } from "./form/color.vue";
6
8
  export { default as DatePicker } from "./form/DatePicker.vue";
7
9
  export { default as file } from "./form/file.vue";
8
10
  export { default as Select } from "./form/Select.vue";
9
11
  export { default as Switch } from "./form/Switch.vue";
10
- export { default as wysiwyg } from "./form/wysiwyg.vue";
12
+ export { default as Wysiwyg } from "./form/wysiwyg.vue";
13
+
11
14
  export { default as SideBar } from "./layout/sideBar.vue";
12
15
  export { default as Footer } from "./layout/Footer.vue";
13
16
  export { default as Header } from "./layout/Header.vue";
@@ -16,6 +19,8 @@ export { default as Menu } from "./navigation/Menu.vue";
16
19
  export { default as MenuItem } from "./navigation/MenuItem.vue";
17
20
  export { default as MenuItemGroup } from "./navigation/MenuItemGroup.vue";
18
21
  export { default as SubMenu } from "./navigation/SubMenu.vue";
22
+ export { default as Breadcrumbs } from "./navigation/Breadcrumbs.vue";
23
+ export { default as BreadcrumbsItem } from "./navigation/BreadcrumbsItem.vue";
19
24
 
20
25
  export { default as Icon } from "./Icon.vue";
21
26
  export { default as Svg } from "./Svg.vue";
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <el-breadcrumb :seperator="''">
3
+ <slot name="default">
4
+ <template v-for="(crumb,index) in crumbs">
5
+ <el-breadcrumb-item :to="crumb.href">{{ crumb.text }} </el-breadcrumb-item>
6
+ <template v-if="index !== crumbs.length -1">
7
+ <span class="el-breadcrumb__item">
8
+ <span class="el-breadcrumb__separator inline-block" role="presentation">
9
+ <slot name="seperator">/</slot>
10
+ </span>
11
+ </span>
12
+ </template>
13
+ </template>
14
+ </slot>
15
+ </el-breadcrumb>
16
+ </template>
17
+
18
+ <script>
19
+ import { ElBreadcrumb } from "element-plus";
20
+ import ElBreadcrumbItem from "./BreadcrumbsItem.vue";
21
+ export default {
22
+ props: {
23
+ crumbs: {
24
+ required: false
25
+ }
26
+ },
27
+ components: {
28
+ ElBreadcrumb,
29
+ ElBreadcrumbItem
30
+ }
31
+ }
32
+ </script>
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <el-breadcrumb-item v-bind="$props">
3
+ <slot></slot>
4
+ </el-breadcrumb-item>
5
+ </template>
6
+
7
+ <script>
8
+ import { ElBreadcrumbItem } from "element-plus";
9
+ export default {
10
+ props: {
11
+ crumbs: {
12
+ required: false
13
+ }
14
+ },
15
+ components: {
16
+ ElBreadcrumbItem
17
+ }
18
+ }
19
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-velocity",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Avalere Health branded style system",
5
5
  "scripts": {
6
6
  "setup": "npm ci || npm i && npm run content",
package/form/Button.vue DELETED
@@ -1,118 +0,0 @@
1
- <template>
2
- <XInput v-bind="$props">
3
- <el-button
4
- :class="[`button ${baseClass}__button`]"
5
- :name="name"
6
- :id="name"
7
- :disabled="disabled"
8
- :round="round"
9
- :circle="circle"
10
- :size="size"
11
- :text="text"
12
- :tag="tag"
13
- :autofocus="autofocus"
14
- :native-type="nativeType"
15
- :type="type"
16
- :link="link"
17
- :plain="plain"
18
- :loading="loading"
19
- :customIcon="customIcon"
20
- v-model="content"
21
- :href="href"
22
- :target="target"
23
- @input="handleInput">
24
- <slot />
25
-
26
- </el-button>
27
- </XInput>
28
- </template>
29
-
30
- <script>
31
- import { ElButton } from "element-plus";
32
- import input from "./input.js";
33
- import XInput from "./input.vue";
34
- import {
35
- Check,
36
- Delete,
37
- Edit,
38
- Message,
39
- Search,
40
- Star,
41
- } from '@element-plus/icons-vue'
42
-
43
- export default {
44
- mixins: [input],
45
- props: {
46
- ...input.props,
47
- baseClass: {
48
- type: String,
49
- default: "vel-button",
50
- },
51
- inputType: {
52
- type: String,
53
- default: "button",
54
- },
55
- type: {
56
- type: String,
57
- default: null,
58
- },
59
- nativeType: {
60
- type: String,
61
- default: "button",
62
- },
63
- size: {
64
- type: String,
65
- default: "default",
66
- },
67
- round: {
68
- type: Boolean,
69
- default: false,
70
- },
71
- circle: {
72
- type: Boolean,
73
- default: false,
74
- },
75
- text: {
76
- type: Boolean,
77
- default: false,
78
- },
79
- link: {
80
- type: Boolean,
81
- default: false,
82
- },
83
- plain: {
84
- type: Boolean,
85
- default: false,
86
- },
87
- tag: {
88
- type: String,
89
- default: "button",
90
- },
91
- loading: {
92
- type: Boolean,
93
- default: false,
94
- },
95
- customIcon: {
96
- type: String,
97
- default: null,
98
- },
99
- iconClasses: {
100
- type: String,
101
- default: "",
102
- },
103
- href: {
104
- type: String,
105
- default: null,
106
- },
107
- target: {
108
- type: String,
109
- default: null,
110
- },
111
- },
112
-
113
- components: {
114
- XInput,
115
- ElButton
116
- },
117
- };
118
- </script>