@fishawack/lab-velocity 1.11.1 → 2.0.0-beta.1

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.
Files changed (95) hide show
  1. package/README.md +13 -7
  2. package/_base.scss +1 -1
  3. package/_defaults.scss +2 -3
  4. package/_variables.scss +16 -18
  5. package/components/_alert.scss +2 -2
  6. package/components/_basic.scss +5 -4
  7. package/components/_breadcrumbs.scss +7 -8
  8. package/components/_button.scss +11 -12
  9. package/components/_cascader.scss +1 -1
  10. package/components/_checkbox.scss +27 -26
  11. package/components/_chip.scss +24 -0
  12. package/components/_collapse.scss +2 -3
  13. package/components/_datepicker.scss +7 -6
  14. package/components/_footer.scss +1 -1
  15. package/components/_form.scss +6 -4
  16. package/components/_header.scss +4 -5
  17. package/components/_icon.scss +4 -3
  18. package/components/_inputNumber.scss +4 -3
  19. package/components/_link.scss +7 -7
  20. package/components/_loader.scss +3 -4
  21. package/components/_menu.scss +22 -22
  22. package/components/_pageTitle.scss +3 -3
  23. package/components/_permissionLegend.scss +18 -0
  24. package/components/_select.scss +3 -2
  25. package/components/_sidebar.scss +5 -6
  26. package/components/_switch.scss +2 -2
  27. package/components/_table.scss +3 -3
  28. package/components/_tooltip.scss +2 -2
  29. package/components/_typography.scss +71 -62
  30. package/components/_upload.scss +1 -1
  31. package/components/_wysiwyg.scss +3 -2
  32. package/components/_wysiwyg2.scss +37 -31
  33. package/general.scss +1 -2
  34. package/index.js +38 -30
  35. package/modules/_AuthModule.scss +32 -29
  36. package/modules/_AuthVariables.scss +3 -3
  37. package/modules/_modal.scss +3 -3
  38. package/package.json +109 -102
  39. package/vendor.scss +2 -2
  40. package/AuthModule/components/AuthModal.vue +0 -110
  41. package/AuthModule/components/VPasswordValidation.vue +0 -66
  42. package/AuthModule/js/AuthAxios.js +0 -59
  43. package/AuthModule/js/AuthRoutes.js +0 -186
  44. package/AuthModule/js/AuthStore.js +0 -99
  45. package/AuthModule/js/FakeAPI.js +0 -84
  46. package/AuthModule/routes/account-exists.vue +0 -35
  47. package/AuthModule/routes/change-password.vue +0 -162
  48. package/AuthModule/routes/container.vue +0 -38
  49. package/AuthModule/routes/expired-reset.vue +0 -76
  50. package/AuthModule/routes/expired-verification.vue +0 -100
  51. package/AuthModule/routes/force-reset.vue +0 -142
  52. package/AuthModule/routes/forgot.vue +0 -87
  53. package/AuthModule/routes/login.vue +0 -138
  54. package/AuthModule/routes/logincallback.vue +0 -46
  55. package/AuthModule/routes/loginheadless.vue +0 -16
  56. package/AuthModule/routes/loginsso.vue +0 -127
  57. package/AuthModule/routes/logout.vue +0 -21
  58. package/AuthModule/routes/register.vue +0 -156
  59. package/AuthModule/routes/reset.vue +0 -123
  60. package/AuthModule/routes/success-forgot.vue +0 -117
  61. package/AuthModule/routes/success-reset.vue +0 -35
  62. package/AuthModule/routes/success-verify.vue +0 -29
  63. package/AuthModule/routes/verify.vue +0 -110
  64. package/Icon.vue +0 -33
  65. package/Svg.vue +0 -40
  66. package/basic/Button.vue +0 -111
  67. package/basic/link.vue +0 -63
  68. package/form/Cascader.vue +0 -85
  69. package/form/Checkbox.vue +0 -39
  70. package/form/CheckboxGroup.vue +0 -69
  71. package/form/DatePicker.vue +0 -100
  72. package/form/InputNumber.vue +0 -90
  73. package/form/Select.vue +0 -110
  74. package/form/Switch.vue +0 -63
  75. package/form/Upload.vue +0 -103
  76. package/form/Wysiwyg.vue +0 -127
  77. package/form/Wysiwyg2.vue +0 -278
  78. package/form/basic.vue +0 -88
  79. package/form/color.vue +0 -22
  80. package/form/file.vue +0 -89
  81. package/form/input.js +0 -79
  82. package/form/input.vue +0 -85
  83. package/layout/Alert.vue +0 -38
  84. package/layout/Footer.vue +0 -35
  85. package/layout/Header.vue +0 -15
  86. package/layout/Loader.vue +0 -39
  87. package/layout/Tooltip.vue +0 -46
  88. package/layout/pageTitle.vue +0 -18
  89. package/layout/sideBar.vue +0 -27
  90. package/navigation/Breadcrumbs.vue +0 -32
  91. package/navigation/BreadcrumbsItem.vue +0 -19
  92. package/navigation/Menu.vue +0 -16
  93. package/navigation/MenuItem.vue +0 -20
  94. package/navigation/MenuItemGroup.vue +0 -20
  95. package/navigation/SubMenu.vue +0 -20
package/README.md CHANGED
@@ -16,16 +16,19 @@ Prevent code repetition.
16
16
  npm install @fishawack/lab-velocity
17
17
  ```
18
18
 
19
-
20
19
  ### Auth Module
20
+
21
21
  Frontend files to to work with the Hydrate Module.
22
+
22
23
  #### Installation
23
24
 
24
- ##### Import Axios File
25
+ ##### Import Axios File
26
+
25
27
  import axios from "axios";
26
28
  import "@fishawack/lab-velocity/AuthModule/js/AuthAxios.js";
27
29
 
28
30
  ##### Import Routes File
31
+
29
32
  Inside Router.js file
30
33
  import { authRoutes, configureRoutes } from "@fishawack/lab-velocity/AuthModule/js/AuthRoutes";
31
34
 
@@ -34,7 +37,9 @@ npm install @fishawack/lab-velocity
34
37
 
35
38
  add method call after createRouter
36
39
  configureRoutes(router);
37
- ##### Import Store
40
+
41
+ ##### Import Store
42
+
38
43
  import AuthStore from "@fishawack/lab-velocity/AuthModule/js/AuthStore.js";
39
44
  Inside createStore method add
40
45
  modules: {
@@ -43,9 +48,11 @@ npm install @fishawack/lab-velocity
43
48
  Inside VuexPersistedState add
44
49
  paths:["auth"]
45
50
 
46
- At bottom of file set
51
+ At bottom of file set
47
52
  window.store = store;
53
+
48
54
  ##### SVGS
55
+
49
56
  Ensure Content has Velocity pulled in
50
57
  {
51
58
  "lftp": "ftp-fishawack.egnyte.com",
@@ -54,15 +61,14 @@ npm install @fishawack/lab-velocity
54
61
  Copy out the svg folder contents into the svg files within vue.
55
62
 
56
63
  ##### ENV VARS
64
+
57
65
  HYDRATE_LOGO=example-logo
58
- HYDRATE_REDIRECT=index
59
66
 
60
67
  HYDRATE_LOGO=example-logo(No Default set, name of svg logo to display on page)
61
- HYDRATE_ROUTE=(Default auth if not configured)
62
68
  HYDRATE_REDIRECT=(Default index if not configured)
63
- HYDRATE_ADMIN=true (DO NOT use unless on Admin site and want to disable auth flows and only use sso login)
64
69
  HYDRATE_CONTACT=(Default mailto:EP@avalerehealth, Email for contact us button)
65
70
 
66
71
  ##### Verify dependencies are installed
72
+
67
73
  Axios
68
74
  form-backend-validation
package/_base.scss CHANGED
@@ -3,4 +3,4 @@
3
3
  @import "element-plus/theme-chalk/el-message";
4
4
  @import "element-plus/theme-chalk/el-notification";
5
5
  @import "element-plus/theme-chalk/el-overlay";
6
- @import "./components/input.scss";
6
+ @import "./components/input.scss";
package/_defaults.scss CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  @import "@fishawack/lab-ui/_defaults.scss";
4
4
 
5
- $colors: variables.dynamic('color', module-variables("variables"));
5
+ $colors: variables.dynamic("color", module-variables("variables"));
6
6
 
7
7
  // Override lab-ui defaults here, e.g $button: $color6;
8
8
  $spacing: 8px;
@@ -11,11 +11,10 @@ $spacing: 8px;
11
11
  padding: 0px 5 * $spacing;
12
12
  }
13
13
 
14
-
15
14
  body {
16
15
  font-family: $primaryFont, sans-serif;
17
16
  font-size: get-ratio(16px);
18
17
  line-height: 1.5;
19
18
  color: $color1;
20
19
  background-color: $color3;
21
- }
20
+ }
package/_variables.scss CHANGED
@@ -2,24 +2,22 @@
2
2
  // Set global variables here, e.g $color6: red;
3
3
  @import "./modules/AuthVariables";
4
4
 
5
+ $primaryFont: "Inter";
6
+ $primaryFontThin: "Inter-Thin";
7
+ $primaryFontExtraLight: "Inter-ExtraLight";
8
+ $primaryFontLight: "Inter-Light";
9
+ $primaryFontRegular: "Inter-Regular";
10
+ $primaryFontMedium: "Inter-Medium";
11
+ $primaryFontSemiBold: "Inter-SemiBold";
12
+ $primaryFontBold: "Inter-Bold";
5
13
 
6
- $primaryFont: 'Inter';
7
- $primaryFontThin: 'Inter-Thin';
8
- $primaryFontExtraLight: 'Inter-ExtraLight';
9
- $primaryFontLight: 'Inter-Light';
10
- $primaryFontRegular: 'Inter-Regular';
11
- $primaryFontMedium: 'Inter-Medium';
12
- $primaryFontSemiBold: 'Inter-SemiBold';
13
- $primaryFontBold: 'Inter-Bold';
14
-
15
-
16
- $secondaryFont: 'NotoSerif';
17
- $secondaryFontMedium: 'NotoSerif-Medium';
14
+ $secondaryFont: "NotoSerif";
15
+ $secondaryFontMedium: "NotoSerif-Medium";
18
16
  // Colors
19
17
 
20
- $color1: #2D2D2D;
18
+ $color1: #2d2d2d;
21
19
  $color2: #333333;
22
- $color3: #F7F7F7;
20
+ $color3: #f7f7f7;
23
21
  $color4: #e6e6e6;
24
22
  $color5: #cccccc;
25
23
  $color6: #999999;
@@ -27,7 +25,7 @@ $color7: #666666;
27
25
  $color8: #f2f2f2; //Used
28
26
  $color9: #ff0000;
29
27
  $color10: #dcdbdb;
30
- $color11: #8C8C8C; //Used
31
- $color12: #5C5C5C;
32
- $color13: #3C976E;
33
- $colorAlert: #D53A3A;
28
+ $color11: #8c8c8c; //Used
29
+ $color12: #5c5c5c;
30
+ $color13: #3c976e;
31
+ $colorAlert: #d53a3a;
@@ -1,5 +1,5 @@
1
1
  @import "element-plus/theme-chalk/el-alert";
2
2
 
3
3
  .vel-alert {
4
- --el-color-error: #D53A3A;
5
- }
4
+ --el-color-error: #d53a3a;
5
+ }
@@ -8,9 +8,10 @@
8
8
  }
9
9
 
10
10
  .el-input__inner {
11
- --el-input-inner-height:46px
11
+ --el-input-inner-height: 46px;
12
12
  }
13
- .el-input-group__append, .el-input-group__prepend {
13
+ .el-input-group__append,
14
+ .el-input-group__prepend {
14
15
  padding: 0 2 * $spacing;
15
16
  }
16
17
  }
@@ -49,6 +50,6 @@
49
50
  width: 24px;
50
51
  min-width: 24px;
51
52
  padding: 0px !important;
52
- fill: #cfd8dd !important
53
+ fill: #cfd8dd !important;
53
54
  }
54
- }
55
+ }
@@ -1,31 +1,30 @@
1
1
  @import "element-plus/theme-chalk/el-breadcrumb";
2
2
  @import "element-plus/theme-chalk/el-breadcrumb-item";
3
3
  .vel-breadcrumb {
4
-
5
4
  .el-breadcrumb__separator {
6
5
  display: none;
7
- margin:0px $spacing;
6
+ margin: 0px $spacing;
8
7
  }
9
-
8
+
10
9
  .el-breadcrumb__separator,
11
10
  .el-breadcrumb__inner {
12
11
  font-size: get-ratio(16px);
13
12
  line-height: get-ratio(24px);
14
13
  }
15
-
14
+
16
15
  .el-breadcrumb__inner {
17
16
  &.is-link {
18
17
  text-decoration: underline;
19
18
  font-weight: 500;
20
19
  color: $color2;
21
20
  text-transform: capitalize;
22
-
21
+
23
22
  &:hover {
24
- color:$color12;
23
+ color: $color12;
25
24
  }
26
25
  }
27
26
  }
28
-
27
+
29
28
  .el-breadcrumb__item {
30
29
  &:last-child {
31
30
  .el-breadcrumb__inner {
@@ -37,4 +36,4 @@
37
36
  }
38
37
  }
39
38
  }
40
- }
39
+ }
@@ -231,10 +231,11 @@
231
231
 
232
232
  // shapes
233
233
 
234
- &.is-circle, &.is-square {
234
+ &.is-circle,
235
+ &.is-square {
235
236
  width: auto;
236
- & [class*=el-icon] + span {
237
- margin-left: 0;
237
+ & [class*="el-icon"] + span {
238
+ margin-left: 0;
238
239
  }
239
240
  &.el-button--default,
240
241
  &.el-button--primary,
@@ -252,11 +253,9 @@
252
253
  &.el-button--small {
253
254
  padding: get-ratio(5px);
254
255
  }
255
-
256
256
  }
257
257
  // Fix for improper spacing
258
258
  .el-icon.is-loading {
259
-
260
259
  + span:empty {
261
260
  margin-left: 0px;
262
261
  }
@@ -269,14 +268,14 @@
269
268
  }
270
269
 
271
270
  &--iconRight {
272
- .el-icon {
273
- order: 2;
274
- }
271
+ .el-icon {
272
+ order: 2;
273
+ }
275
274
 
276
- > span {
277
- order: 1;
278
- margin: 0 0.5rem 0 0;
279
- }
275
+ > span {
276
+ order: 1;
277
+ margin: 0 0.5rem 0 0;
278
+ }
280
279
  }
281
280
 
282
281
  &--iconOnly1 {
@@ -9,4 +9,4 @@
9
9
  .el-cascader-node {
10
10
  line-height: get-ratio(40px);
11
11
  height: get-ratio(40px);
12
- }
12
+ }
@@ -1,40 +1,41 @@
1
1
  @import "element-plus/theme-chalk/el-checkbox";
2
2
  @import "element-plus/theme-chalk/el-checkbox-button";
3
3
 
4
- .vel-checkbox, .el-checkbox {
5
- display: flex;
6
- flex-direction: row;
7
- align-items: center;
8
- gap: $spacing * .5;
9
- flex-wrap: wrap ;
10
- align-items: baseline;
11
-
12
- &__label{
13
- order: 2;
14
- }
15
- &__checkbox {
16
- order: 1;
17
- .el-checkbox__input {
18
- &.is-checked {
19
- .el-checkbox__inner {
20
- background-color: black;
21
- }
4
+ .vel-checkbox,
5
+ .el-checkbox {
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+ gap: $spacing * 0.5;
10
+ flex-wrap: wrap;
11
+ align-items: baseline;
12
+
13
+ &__label {
14
+ order: 2;
15
+ }
16
+ &__checkbox {
17
+ order: 1;
18
+ .el-checkbox__input {
19
+ &.is-checked {
20
+ .el-checkbox__inner {
21
+ background-color: black;
22
22
  }
23
23
  }
24
24
  }
25
- &__error {
26
- order: 3;
27
- flex-basis: 100%;
28
- color: $colorAlert;
29
- }
25
+ }
26
+ &__error {
27
+ order: 3;
28
+ flex-basis: 100%;
29
+ color: $colorAlert;
30
+ }
30
31
  }
31
32
 
32
- .vel-checkbox-group, .vel-checkbox {
33
+ .vel-checkbox-group,
34
+ .vel-checkbox {
33
35
  &--vertical {
34
36
  .vel-checkbox-group__wrapper {
35
37
  display: flex;
36
38
  flex-direction: column;
37
39
  }
38
40
  }
39
-
40
- }
41
+ }
@@ -0,0 +1,24 @@
1
+ .chip {
2
+ border: solid 1px currentColor;
3
+ border-radius: 4px;
4
+ background-color: #f0f9eb;
5
+ padding: get-ratio(2px) get-ratio(10px);
6
+ font-size: get-ratio(12px);
7
+ line-height: get-ratio(18px);
8
+ box-sizing: border-box;
9
+
10
+ &.deactive,
11
+ &--inherited {
12
+ color: #909399 !important;
13
+ border-color: #dedfe0 !important;
14
+ background-color: #f4f4f5 !important;
15
+ }
16
+ }
17
+
18
+ .chip--round {
19
+ display: inline-block;
20
+ text-indent: -100000px;
21
+ width: get-ratio(22px);
22
+ height: get-ratio(22px);
23
+ border-radius: 100%;
24
+ }
@@ -1,10 +1,9 @@
1
-
2
1
  @import "element-plus/theme-chalk/el-collapse";
3
2
  @import "element-plus/theme-chalk/el-collapse-item";
4
3
 
5
4
  .el-collapse-item__header {
6
5
  align-items: center;
7
- --el-collapse-header-font-size:get-ratio(16px);
6
+ --el-collapse-header-font-size: get-ratio(16px);
8
7
  .vel-icon {
9
8
  vertical-align: middle;
10
9
  width: 13px;
@@ -22,4 +21,4 @@
22
21
  --el-collapse-header-bg-color: transparent;
23
22
  --el-collapse-content-bg-color: transparent;
24
23
  --el-collapse-border-color: transparent;
25
- }
24
+ }
@@ -4,7 +4,7 @@
4
4
  // --el-input-height:38px;
5
5
 
6
6
  // &.el-input--large {
7
- --el-input-height:46px;
7
+ --el-input-height: 46px;
8
8
  // }
9
9
 
10
10
  &__error {
@@ -13,16 +13,16 @@
13
13
  }
14
14
 
15
15
  .vel-popper {
16
- @include breakpoint (max-width $mobileMax) {
16
+ @include breakpoint(max-width $mobileMax) {
17
17
  min-width: 280px;
18
18
  max-width: 325px;
19
19
  width: auto;
20
- .el-date-range-picker{
20
+ .el-date-range-picker {
21
21
  width: 100%;
22
22
  .el-picker-panel__body {
23
23
  width: 100%;
24
24
  min-width: 100%;
25
- &>div {
25
+ & > div {
26
26
  width: auto;
27
27
  min-width: auto;
28
28
  border: none;
@@ -32,7 +32,8 @@
32
32
  }
33
33
  }
34
34
 
35
- .vel-date-picker, .el-date-picker {
35
+ .vel-date-picker,
36
+ .el-date-picker {
36
37
  &.has-sidebar {
37
38
  width: auto;
38
39
 
@@ -48,4 +49,4 @@
48
49
  margin-left: 0px;
49
50
  position: relative !important;
50
51
  }
51
- }
52
+ }
@@ -25,7 +25,7 @@
25
25
  flex-basis: 100%;
26
26
  justify-content: space-between;
27
27
  margin-top: 3.5 * $spacing;
28
-
28
+
29
29
  > * {
30
30
  max-width: 50%;
31
31
  flex-basis: 50%;
@@ -7,16 +7,18 @@
7
7
  }
8
8
 
9
9
  &:not(:last-child) {
10
- margin-bottom: 2.5 * $spacing;
10
+ margin-bottom: 2.5 * $spacing;
11
11
  }
12
12
  }
13
13
 
14
14
  .form__group--error {
15
-
16
- .el-select__wrapper, .el-select__wrapper:hover, .el-input__wrapper, .el-input__wrapper:hover {
15
+ .el-select__wrapper,
16
+ .el-select__wrapper:hover,
17
+ .el-input__wrapper,
18
+ .el-input__wrapper:hover {
17
19
  box-shadow: 0 0 0 1px $colorAlert inset;
18
20
  .el-select__icon {
19
21
  color: $colorAlert;
20
22
  }
21
23
  }
22
- }
24
+ }
@@ -15,7 +15,6 @@
15
15
  max-width: 50%;
16
16
  flex-basis: 50%;
17
17
  justify-content: flex-end !important;
18
-
19
18
  }
20
19
 
21
20
  .icon {
@@ -23,7 +22,7 @@
23
22
  max-width: $spacing * 2.5;
24
23
  width: $spacing * 2.5;
25
24
  height: $spacing * 2.5;
26
- margin-right: .5 * $spacing;
25
+ margin-right: 0.5 * $spacing;
27
26
  }
28
27
  }
29
28
 
@@ -43,13 +42,13 @@
43
42
  position: relative;
44
43
  &::after {
45
44
  position: absolute;
46
- content:"";
45
+ content: "";
47
46
  border-right: solid get-ratio(1px) $color4;
48
47
  height: 75%;
49
48
  transform: translateY(-50%);
50
49
  top: 50%;
51
- right:0px;
50
+ right: 0px;
52
51
  }
53
52
  }
54
53
  }
55
- }
54
+ }
@@ -1,8 +1,9 @@
1
1
  // @import "@fishawack/lab-ui/_icon.scss";
2
2
 
3
3
  .vel-icon {
4
-
5
- .vel-link &, .vel-button &, .vel-basic & {
4
+ .vel-link &,
5
+ .vel-button &,
6
+ .vel-basic & {
6
7
  width: get-ratio(16px);
7
8
  min-width: get-ratio(16px);
8
9
  max-height: get-ratio(16px);
@@ -21,4 +22,4 @@
21
22
  padding-bottom: 0px;
22
23
  line-height: 0px;
23
24
  }
24
- }
25
+ }
@@ -9,13 +9,14 @@
9
9
  }
10
10
 
11
11
  .el-input__inner {
12
- --el-input-inner-height:38px
12
+ --el-input-inner-height: 38px;
13
13
  }
14
- .el-input-group__append, .el-input-group__prepend {
14
+ .el-input-group__append,
15
+ .el-input-group__prepend {
15
16
  padding: 0 2 * $spacing;
16
17
  }
17
18
 
18
19
  &__error {
19
20
  color: $colorAlert;
20
21
  }
21
- }
22
+ }
@@ -1,9 +1,9 @@
1
1
  @import "element-plus/theme-chalk/el-link";
2
2
 
3
3
  .vel-link.el-link--default {
4
- &:hover{
5
- color:currentColor;
6
- &:after{
4
+ &:hover {
5
+ color: currentColor;
6
+ &:after {
7
7
  border-color: currentColor;
8
8
  }
9
9
  }
@@ -19,9 +19,9 @@
19
19
  right: 0;
20
20
  border-color: currentColor;
21
21
  }
22
- &:hover{
23
- color:currentColor;
24
- &:after{
22
+ &:hover {
23
+ color: currentColor;
24
+ &:after {
25
25
  border-color: currentColor;
26
26
  }
27
27
  }
@@ -41,4 +41,4 @@
41
41
 
42
42
  .vel-link--xsmall {
43
43
  font-size: get-ratio(12px);
44
- }
44
+ }
@@ -5,7 +5,7 @@
5
5
  height: 6rem;
6
6
  border-radius: 50%;
7
7
  background-color: inherit;
8
-
8
+
9
9
  svg {
10
10
  .circle {
11
11
  animation: 2s spinning cubic-bezier(0.41, 0.26, 0.2, 0.62) infinite;
@@ -22,7 +22,7 @@
22
22
  border-width: 0.6rem;
23
23
  }
24
24
 
25
- @include breakpoint (max-width $mobileMax) {
25
+ @include breakpoint(max-width $mobileMax) {
26
26
  width: 6rem;
27
27
  height: 6rem;
28
28
 
@@ -32,7 +32,6 @@
32
32
  }
33
33
  }
34
34
 
35
-
36
35
  @keyframes spinning {
37
36
  from {
38
37
  transform: rotate(0);
@@ -41,4 +40,4 @@
41
40
  to {
42
41
  transform: rotate(2turn);
43
42
  }
44
- }
43
+ }