@fishawack/lab-velocity 1.11.1 → 2.0.0-beta.2
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/README.md +13 -7
- package/_Build/vue/components/Icon.vue +33 -0
- package/_Build/vue/components/Svg.vue +45 -0
- package/{basic → _Build/vue/components/basic}/Button.vue +16 -18
- package/{basic → _Build/vue/components/basic}/link.vue +8 -7
- package/{form → _Build/vue/components/form}/Cascader.vue +13 -13
- package/{form → _Build/vue/components/form}/CheckboxGroup.vue +28 -6
- package/{form → _Build/vue/components/form}/DatePicker.vue +23 -7
- package/{form → _Build/vue/components/form}/InputNumber.vue +1 -2
- package/{form → _Build/vue/components/form}/Select.vue +8 -9
- package/{form → _Build/vue/components/form}/Switch.vue +2 -2
- package/{form → _Build/vue/components/form}/Upload.vue +4 -6
- package/{form → _Build/vue/components/form}/Wysiwyg.vue +14 -14
- package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
- package/{form → _Build/vue/components/form}/basic.vue +25 -7
- package/{form → _Build/vue/components/form}/file.vue +1 -1
- package/{form → _Build/vue/components/form}/input.js +2 -2
- package/{form → _Build/vue/components/form}/input.vue +31 -11
- package/{layout → _Build/vue/components/layout}/Alert.vue +10 -10
- package/_Build/vue/components/layout/Footer.vue +50 -0
- package/{layout → _Build/vue/components/layout}/Header.vue +5 -7
- package/_Build/vue/components/layout/Loader.vue +59 -0
- package/{layout → _Build/vue/components/layout}/Tooltip.vue +12 -12
- package/{layout → _Build/vue/components/layout}/pageTitle.vue +4 -4
- package/{layout → _Build/vue/components/layout}/sideBar.vue +4 -6
- package/{navigation → _Build/vue/components/navigation}/Breadcrumbs.vue +15 -10
- package/{navigation → _Build/vue/components/navigation}/BreadcrumbsItem.vue +6 -6
- package/_Build/vue/components/navigation/Menu.vue +14 -0
- package/_Build/vue/components/navigation/MenuItem.vue +20 -0
- package/_Build/vue/components/navigation/MenuItemGroup.vue +20 -0
- package/_Build/vue/components/navigation/SubMenu.vue +20 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +251 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +62 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +98 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +90 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/partials/form.vue +173 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +262 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +112 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +103 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +169 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +120 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/components/AuthModal.vue +30 -35
- package/_Build/vue/modules/AuthModule/components/Chip.vue +70 -0
- package/_Build/vue/modules/AuthModule/components/Chips.vue +26 -0
- package/_Build/vue/modules/AuthModule/components/FormRole.vue +115 -0
- package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +32 -0
- package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +46 -0
- package/_Build/vue/modules/AuthModule/components/VPageHeader.vue +38 -0
- package/_Build/vue/modules/AuthModule/components/VPasswordValidation.vue +106 -0
- package/_Build/vue/modules/AuthModule/components/VRoleLegend.vue +43 -0
- package/_Build/vue/modules/AuthModule/components/VTable.vue +127 -0
- package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +240 -0
- package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
- package/_Build/vue/modules/AuthModule/js/axios.js +62 -0
- package/_Build/vue/modules/AuthModule/js/router.js +295 -0
- package/_Build/vue/modules/AuthModule/js/store.js +62 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/account-exists.vue +5 -7
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/change-password.vue +28 -25
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/container.vue +4 -8
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-reset.vue +13 -11
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-verification.vue +12 -12
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/force-reset.vue +36 -26
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/forgot.vue +11 -7
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/login.vue +20 -15
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logincallback.vue +5 -10
- package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/loginsso.vue +32 -25
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logout.vue +6 -6
- package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +27 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/register.vue +43 -25
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/reset.vue +24 -14
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-forgot.vue +14 -12
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-reset.vue +4 -4
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-verify.vue +10 -7
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/verify.vue +15 -12
- package/_base.scss +1 -1
- package/_defaults.scss +2 -3
- package/_variables.scss +16 -18
- package/general.scss +1 -2
- package/index.js +38 -30
- package/package.json +103 -102
- package/vendor.scss +2 -2
- package/AuthModule/components/VPasswordValidation.vue +0 -66
- package/AuthModule/js/AuthAxios.js +0 -59
- package/AuthModule/js/AuthRoutes.js +0 -186
- package/AuthModule/js/AuthStore.js +0 -99
- package/AuthModule/js/FakeAPI.js +0 -84
- package/AuthModule/routes/loginheadless.vue +0 -16
- package/Icon.vue +0 -33
- package/Svg.vue +0 -40
- package/components/_alert.scss +0 -5
- package/components/_basic.scss +0 -54
- package/components/_breadcrumbs.scss +0 -40
- package/components/_button.scss +0 -305
- package/components/_cascader.scss +0 -12
- package/components/_checkbox.scss +0 -40
- package/components/_collapse.scss +0 -25
- package/components/_datepicker.scss +0 -51
- package/components/_footer.scss +0 -46
- package/components/_form.scss +0 -22
- package/components/_header.scss +0 -55
- package/components/_icon.scss +0 -24
- package/components/_input.scss +0 -0
- package/components/_inputNumber.scss +0 -21
- package/components/_link.scss +0 -44
- package/components/_loader.scss +0 -44
- package/components/_menu.scss +0 -112
- package/components/_pageTitle.scss +0 -8
- package/components/_select.scss +0 -28
- package/components/_sidebar.scss +0 -57
- package/components/_switch.scss +0 -14
- package/components/_table.scss +0 -20
- package/components/_tooltip.scss +0 -4
- package/components/_typography.scss +0 -153
- package/components/_upload.scss +0 -15
- package/components/_wysiwyg.scss +0 -6
- package/components/_wysiwyg2.scss +0 -136
- package/form/Wysiwyg2.vue +0 -278
- package/layout/Footer.vue +0 -35
- package/layout/Loader.vue +0 -39
- package/modules/_AuthModule.scss +0 -209
- package/modules/_AuthVariables.scss +0 -7
- package/modules/_modal.scss +0 -24
- package/navigation/Menu.vue +0 -16
- package/navigation/MenuItem.vue +0 -20
- package/navigation/MenuItemGroup.vue +0 -20
- package/navigation/SubMenu.vue +0 -20
- /package/{form → _Build/vue/components/form}/Checkbox.vue +0 -0
- /package/{form → _Build/vue/components/form}/color.vue +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import axios from "axios";
|
|
3
|
-
|
|
4
|
-
const store = {
|
|
5
|
-
state() {
|
|
6
|
-
return {
|
|
7
|
-
authBase : process.env.HYDRATE_ROUTE ?? 'auth',
|
|
8
|
-
authenticated : false,
|
|
9
|
-
forcePasswordChange: false,
|
|
10
|
-
intended: null,
|
|
11
|
-
user: null,
|
|
12
|
-
subscriptions: [],
|
|
13
|
-
isSuperAdmin: false,
|
|
14
|
-
redirect: process.env.HYDRATE_REDIRECT ?? 'index',
|
|
15
|
-
postLoginRedirect: process.env.HYDRATE_FRONTENDREDIRECT ?? process.env.HYDRATE_REDIRECT ?? 'index',
|
|
16
|
-
autoLogin: process.env.HYDRATE_ADMIN === 'true' ? true: false,
|
|
17
|
-
platformName: process.env.HYDRATE_PLATFORM ?? 'Expert Partnership',
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
mutations: {
|
|
22
|
-
setAuth(state, value) {
|
|
23
|
-
state.authenticated = value;
|
|
24
|
-
|
|
25
|
-
if (!value) {
|
|
26
|
-
this.commit("setUser", null);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setUser(state, value) {
|
|
30
|
-
state.user = value;
|
|
31
|
-
|
|
32
|
-
if(window.dataLayer){
|
|
33
|
-
window.dataLayer.push({ event: "logic", user: value });
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
setIntended(state, value) {
|
|
37
|
-
state.intended = value;
|
|
38
|
-
},
|
|
39
|
-
setForcePasswordChange(state, value) {
|
|
40
|
-
state.forcePasswordChange = value;
|
|
41
|
-
},
|
|
42
|
-
setIsSuperAdmin(state, value) {
|
|
43
|
-
state.isSuperAdmin = value;
|
|
44
|
-
},
|
|
45
|
-
setSubscriptions(state, value) {
|
|
46
|
-
state.subscriptions = value;
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
actions: {
|
|
51
|
-
getUser({ commit }, { errors, query = "" }) {
|
|
52
|
-
return axios
|
|
53
|
-
.get(`/api/users/self${query}`, {
|
|
54
|
-
params: {
|
|
55
|
-
include: "company"
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
.then((res) => {
|
|
59
|
-
commit("setUser", res.data.data);
|
|
60
|
-
|
|
61
|
-
const isSuperAdmin = (data) => {
|
|
62
|
-
const roles = data.roles.map(r => r.name);
|
|
63
|
-
const permissions = data.permissions.map(p => p.name);
|
|
64
|
-
|
|
65
|
-
return roles.includes('administrator') && permissions.includes('write content');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
commit("setAuth",true);
|
|
69
|
-
|
|
70
|
-
commit("setIsSuperAdmin", isSuperAdmin(res.data.data));
|
|
71
|
-
commit("setForcePasswordChange",res.data.data?.force_password_change);
|
|
72
|
-
|
|
73
|
-
return res.data.data;
|
|
74
|
-
})
|
|
75
|
-
.catch(errors);
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
getSubscriptions({ commit }, { errors, query = "" }) {
|
|
79
|
-
return axios
|
|
80
|
-
.get(`/api/users/self/subscriptions${query}`)
|
|
81
|
-
.then((res) => {
|
|
82
|
-
commit("setSubscriptions", res.data.data);
|
|
83
|
-
return res.data;
|
|
84
|
-
})
|
|
85
|
-
.catch(errors);
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
logout({ commit }, { errors }) {
|
|
89
|
-
commit("setAuth", false);
|
|
90
|
-
commit("setUser", null);
|
|
91
|
-
commit("setSubscriptions", []);
|
|
92
|
-
commit("setIsSuperAdmin", false);
|
|
93
|
-
commit("setForcePasswordChange", false);
|
|
94
|
-
|
|
95
|
-
return axios.post("/logout");
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
export default store;
|
package/AuthModule/js/FakeAPI.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
axios.interceptors.request.use(
|
|
5
|
-
request => {
|
|
6
|
-
throw { isLocal: true, data: retrieveResponse(request) };
|
|
7
|
-
},
|
|
8
|
-
error => {
|
|
9
|
-
return Promise.resolve(error);
|
|
10
|
-
}
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
axios.interceptors.response.use(
|
|
14
|
-
response => {
|
|
15
|
-
return response;
|
|
16
|
-
},
|
|
17
|
-
error => {
|
|
18
|
-
return Promise.resolve(error);
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
function retrieveResponse(request) {
|
|
23
|
-
return fakes[request.url][request.method];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const fakes = {
|
|
27
|
-
"/api/users/self": {
|
|
28
|
-
"get" : {
|
|
29
|
-
"data":{
|
|
30
|
-
"id": 2,
|
|
31
|
-
"company_id": 1,
|
|
32
|
-
"created_at": "2025-04-14T15:11:11.000000Z",
|
|
33
|
-
"updated_at": "2025-04-16T16:45:55.000000Z",
|
|
34
|
-
"newsletter": null,
|
|
35
|
-
"admin": 1,
|
|
36
|
-
"name": "Jeremy Viner",
|
|
37
|
-
"email": "jeremy.viner@avalerehealth.com",
|
|
38
|
-
"email_verified_at": "2025-04-16T16:45:55.000000Z",
|
|
39
|
-
"brands": [],
|
|
40
|
-
"company": {
|
|
41
|
-
"id": 1,
|
|
42
|
-
"name": "Company 0",
|
|
43
|
-
"created_at": "2025-04-14T15:08:50.000000Z",
|
|
44
|
-
"updated_at": "2025-04-14T15:08:50.000000Z",
|
|
45
|
-
"domains": [
|
|
46
|
-
"okuneva.com",
|
|
47
|
-
"bogisich.info",
|
|
48
|
-
"avalerehealth.com"
|
|
49
|
-
],
|
|
50
|
-
"brands": [
|
|
51
|
-
1
|
|
52
|
-
],
|
|
53
|
-
"events": [],
|
|
54
|
-
"therapy_areas": [],
|
|
55
|
-
"event_therapy_areas": [],
|
|
56
|
-
"event_therapy_area_media_types": [],
|
|
57
|
-
"users_count": null,
|
|
58
|
-
"sso_client_id": "5ea409fc-8dcf-423e-b7fa-867422859ea4",
|
|
59
|
-
"sso_client_secret": "aSS8Q~ss0r-uh.fPLHUXVXp2kIs5IfwTjzomrb_I",
|
|
60
|
-
"sso_tenant": "4a33c544-865e-44a4-836f-bc51800f6c5e",
|
|
61
|
-
"sso_type": "azure"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"/user/password": {
|
|
67
|
-
"put": {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"/logged-in": {
|
|
72
|
-
"get":{"logged-in":true},
|
|
73
|
-
},
|
|
74
|
-
"/logout": {
|
|
75
|
-
"post": {
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"/login" : {
|
|
80
|
-
"post": {
|
|
81
|
-
"two_factor": false
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
package/Icon.vue
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vel-icon">
|
|
3
|
-
<VSvg v-bind="$props" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import VSvg from "./Svg.vue";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
props: {
|
|
12
|
-
name: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true,
|
|
15
|
-
},
|
|
16
|
-
embed: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: false,
|
|
19
|
-
},
|
|
20
|
-
asis: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: false,
|
|
23
|
-
},
|
|
24
|
-
artboard: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
components: {
|
|
30
|
-
VSvg
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
</script>
|
package/Svg.vue
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
v-if="embed">
|
|
4
|
-
<component v-if="embed" :is="icon" class="vel-svg"/>
|
|
5
|
-
</div>
|
|
6
|
-
<svg v-else class="vel-svg">
|
|
7
|
-
<use :xlink:href="'#' + name" />
|
|
8
|
-
</svg>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
import { defineAsyncComponent } from 'vue';
|
|
13
|
-
export default {
|
|
14
|
-
|
|
15
|
-
props: {
|
|
16
|
-
name: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
embed: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: false,
|
|
23
|
-
},
|
|
24
|
-
asis: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
icons: import.meta.glob(`../../handlebars/generated/embed/**/*.svg`, { query: '?component' })
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
computed: {
|
|
35
|
-
icon() {
|
|
36
|
-
return defineAsyncComponent(() => this.icons[`../../handlebars/generated/embed/svg${this.asis ? '--asis' : ''}--${this.name}.svg`]())
|
|
37
|
-
},
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
</script>
|
package/components/_alert.scss
DELETED
package/components/_basic.scss
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
@import "element-plus/theme-chalk/el-input";
|
|
2
|
-
|
|
3
|
-
.el-input {
|
|
4
|
-
font-size: 1rem;
|
|
5
|
-
|
|
6
|
-
.el-input__wrapper {
|
|
7
|
-
// padding: .5 * $spacing $spacing;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.el-input__inner {
|
|
11
|
-
--el-input-inner-height:46px
|
|
12
|
-
}
|
|
13
|
-
.el-input-group__append, .el-input-group__prepend {
|
|
14
|
-
padding: 0 2 * $spacing;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.vel-basic {
|
|
19
|
-
&__error {
|
|
20
|
-
color: $colorAlert;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.form__icon-container {
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 50%;
|
|
27
|
-
right: 12px;
|
|
28
|
-
transform: translateY(-50%);
|
|
29
|
-
display: flex;
|
|
30
|
-
|
|
31
|
-
.icon {
|
|
32
|
-
display: flex;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.input--password {
|
|
37
|
-
.el-input-group__append {
|
|
38
|
-
border: none;
|
|
39
|
-
box-shadow: none;
|
|
40
|
-
background-color: transparent;
|
|
41
|
-
position: absolute;
|
|
42
|
-
right: 0px;
|
|
43
|
-
top: 0px;
|
|
44
|
-
padding: 0px;
|
|
45
|
-
height: 40px;
|
|
46
|
-
min-height: fit-content;
|
|
47
|
-
}
|
|
48
|
-
.icon {
|
|
49
|
-
width: 24px;
|
|
50
|
-
min-width: 24px;
|
|
51
|
-
padding: 0px !important;
|
|
52
|
-
fill: #cfd8dd !important
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
@import "element-plus/theme-chalk/el-breadcrumb";
|
|
2
|
-
@import "element-plus/theme-chalk/el-breadcrumb-item";
|
|
3
|
-
.vel-breadcrumb {
|
|
4
|
-
|
|
5
|
-
.el-breadcrumb__separator {
|
|
6
|
-
display: none;
|
|
7
|
-
margin:0px $spacing;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.el-breadcrumb__separator,
|
|
11
|
-
.el-breadcrumb__inner {
|
|
12
|
-
font-size: get-ratio(16px);
|
|
13
|
-
line-height: get-ratio(24px);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.el-breadcrumb__inner {
|
|
17
|
-
&.is-link {
|
|
18
|
-
text-decoration: underline;
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
color: $color2;
|
|
21
|
-
text-transform: capitalize;
|
|
22
|
-
|
|
23
|
-
&:hover {
|
|
24
|
-
color:$color12;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.el-breadcrumb__item {
|
|
30
|
-
&:last-child {
|
|
31
|
-
.el-breadcrumb__inner {
|
|
32
|
-
&.is-link {
|
|
33
|
-
color: $color2;
|
|
34
|
-
font-weight: 400;
|
|
35
|
-
text-decoration: none;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
package/components/_button.scss
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
@import "element-plus/theme-chalk/el-button";
|
|
2
|
-
|
|
3
|
-
.vel-button {
|
|
4
|
-
height: auto;
|
|
5
|
-
--el-border-radius-base: 0px;
|
|
6
|
-
--el-font-size-base: get-ratio(16px);
|
|
7
|
-
|
|
8
|
-
.is-round {
|
|
9
|
-
--el-border-radius-base: 999px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// colors
|
|
13
|
-
&.el-button--default {
|
|
14
|
-
--el-color-primary: #ffffff;
|
|
15
|
-
|
|
16
|
-
// text color
|
|
17
|
-
--el-text-color-regular: #{$color2};
|
|
18
|
-
--el-button-hover-text-color: #{$color1};
|
|
19
|
-
--el-button-active-text-color: #{$color1};
|
|
20
|
-
--el-button-disabled-text-color: #bdbdbd;
|
|
21
|
-
|
|
22
|
-
// background color
|
|
23
|
-
--el-button-bg-color: #ffffff;
|
|
24
|
-
--el-button-hover-bg-color: #{$color8};
|
|
25
|
-
--el-button-active-text-color: #{$color1};
|
|
26
|
-
--el-button-disabled-bg-color: #ffffff;
|
|
27
|
-
|
|
28
|
-
// border color
|
|
29
|
-
--el-button-border-color: #{$color5};
|
|
30
|
-
--el-button-hover-border-color: #afafaf;
|
|
31
|
-
--el-button-active-border-color: #{$color1};
|
|
32
|
-
--el-button-disabled-border-color: #{$color4};
|
|
33
|
-
|
|
34
|
-
&.is-loading {
|
|
35
|
-
--el-text-color-regular: #a4a4a4;
|
|
36
|
-
--el-button-border-color: #{$color4};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.is-plain {
|
|
40
|
-
--el-color-primary: #ffffff;
|
|
41
|
-
|
|
42
|
-
// text color
|
|
43
|
-
--el-text-color-regular: #{$color2};
|
|
44
|
-
--el-button-hover-text-color: #{$color1};
|
|
45
|
-
--el-button-active-text-color: #{$color1};
|
|
46
|
-
--el-button-disabled-text-color: #bdbdbd;
|
|
47
|
-
|
|
48
|
-
// background color
|
|
49
|
-
--el-button-bg-color: #ffffff;
|
|
50
|
-
--el-button-hover-bg-color: ##ffffff;
|
|
51
|
-
--el-button-active-text-color: #{$color1};
|
|
52
|
-
--el-button-disabled-bg-color: #ffffff;
|
|
53
|
-
|
|
54
|
-
// border color
|
|
55
|
-
--el-button-border-color: #{$color5};
|
|
56
|
-
--el-button-hover-border-color: #{$color1};
|
|
57
|
-
--el-button-active-border-color: #{$color1};
|
|
58
|
-
--el-button-disabled-border-color: #{$color4};
|
|
59
|
-
|
|
60
|
-
&.is-loading {
|
|
61
|
-
--el-text-color-regular: #a4a4a4;
|
|
62
|
-
--el-button-border-color: #{$color4};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.el-button--primary {
|
|
68
|
-
--el-color-primary: #{$color1};
|
|
69
|
-
|
|
70
|
-
// text color
|
|
71
|
-
--el-text-color-regular: #ffffff;
|
|
72
|
-
--el-button-hover-text-color: #ffffff;
|
|
73
|
-
--el-button-active-text-color: #ffffff;
|
|
74
|
-
--el-button-disabled-text-color: #ffffff;
|
|
75
|
-
|
|
76
|
-
// background color
|
|
77
|
-
--el-button-bg-color: #{$color1};
|
|
78
|
-
--el-button-hover-bg-color: #{$color12};
|
|
79
|
-
--el-button-active-bg-color: #090909;
|
|
80
|
-
--el-button-disabled-bg-color: #afafaf;
|
|
81
|
-
|
|
82
|
-
// border color
|
|
83
|
-
--el-button-border-color: transparent;
|
|
84
|
-
--el-button-hover-border-color: transparent;
|
|
85
|
-
--el-button-active-border-color: transparent;
|
|
86
|
-
--el-button-disabled-border-color: transparent;
|
|
87
|
-
|
|
88
|
-
&.is-loading {
|
|
89
|
-
--el-text-color-regular: #a4a4a4;
|
|
90
|
-
--el-button-border-color: transparent;
|
|
91
|
-
--el-button-bg-color: #5c5c5c;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&.is-plain {
|
|
95
|
-
--el-color-primary: #{$color1};
|
|
96
|
-
|
|
97
|
-
// text color
|
|
98
|
-
--el-text-color-regular: #{$color1};
|
|
99
|
-
--el-button-hover-text-color: #ffffff;
|
|
100
|
-
--el-button-active-text-color: #ffffff;
|
|
101
|
-
--el-button-disabled-text-color: #ffffff;
|
|
102
|
-
--el-color-primary-light-5: #757575;
|
|
103
|
-
|
|
104
|
-
// background color
|
|
105
|
-
--el-button-bg-color: #f2f2f2;
|
|
106
|
-
--el-button-hover-bg-color: #{$color1};
|
|
107
|
-
--el-button-active-bg-color: #090909;
|
|
108
|
-
--el-button-disabled-bg-color: #{$color8};
|
|
109
|
-
--el-color-primary-light-9: #{$color8};
|
|
110
|
-
|
|
111
|
-
// border color
|
|
112
|
-
--el-button-border-color: #757575;
|
|
113
|
-
--el-button-hover-border-color: transparent;
|
|
114
|
-
--el-button-active-border-color: transparent;
|
|
115
|
-
--el-button-disabled-border-color: #d5d5d5;
|
|
116
|
-
--el-color-primary-light-8: #d5d5d5;
|
|
117
|
-
|
|
118
|
-
&.is-loading {
|
|
119
|
-
--el-text-color-regular: #{$color12};
|
|
120
|
-
--el-button-border-color: #757575;
|
|
121
|
-
--el-button-bg-color: #{$color8};
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.is-text,
|
|
126
|
-
&.is-link {
|
|
127
|
-
// text color
|
|
128
|
-
--el-button-hover-link-text-color: #{$color12};
|
|
129
|
-
--el-button-active-color: #090909;
|
|
130
|
-
|
|
131
|
-
&.is-disabled {
|
|
132
|
-
--el-color-primary-light-5: #bdbdbd;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&.el-button--danger {
|
|
138
|
-
--el-color-primary: #{$colorAlert};
|
|
139
|
-
|
|
140
|
-
// text color
|
|
141
|
-
--el-text-color-regular: #ffffff;
|
|
142
|
-
--el-button-hover-text-color: #ffffff;
|
|
143
|
-
--el-button-active-text-color: #ffffff;
|
|
144
|
-
--el-button-disabled-text-color: #ffffff;
|
|
145
|
-
|
|
146
|
-
// background color
|
|
147
|
-
--el-button-bg-color: #{$colorAlert};
|
|
148
|
-
--el-button-hover-bg-color: #df6b6b;
|
|
149
|
-
--el-button-active-bg-color: #b42929;
|
|
150
|
-
--el-button-disabled-bg-color: #ea9c9c;
|
|
151
|
-
|
|
152
|
-
// border color
|
|
153
|
-
--el-button-border-color: transparent;
|
|
154
|
-
--el-button-hover-border-color: transparent;
|
|
155
|
-
--el-button-active-border-color: transparent;
|
|
156
|
-
--el-button-disabled-border-color: transparent;
|
|
157
|
-
|
|
158
|
-
&.is-loading {
|
|
159
|
-
--el-text-color-regular: #ffffff;
|
|
160
|
-
--el-button-border-color: transparent;
|
|
161
|
-
--el-button-bg-color: #df6b6b;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&.is-plain {
|
|
165
|
-
// border: 2px solid orange !important;
|
|
166
|
-
--el-color-primary: #{$colorAlert};
|
|
167
|
-
|
|
168
|
-
// text color
|
|
169
|
-
--el-button-text-color: #d53a3a;
|
|
170
|
-
--el-text-color-regular: #d53a3a;
|
|
171
|
-
--el-button-hover-text-color: #ffffff;
|
|
172
|
-
--el-button-active-text-color: #ffffff;
|
|
173
|
-
--el-button-disabled-text-color: ##ea9c9c;
|
|
174
|
-
|
|
175
|
-
// background color
|
|
176
|
-
--el-button-bg-color: #fcf1f1;
|
|
177
|
-
--el-button-hover-bg-color: #d53a3a;
|
|
178
|
-
--el-button-active-bg-color: #b42929;
|
|
179
|
-
--el-button-disabled-bg-color: #fcf1f1;
|
|
180
|
-
|
|
181
|
-
// border color
|
|
182
|
-
--el-button-border-color: #ea9c9c;
|
|
183
|
-
--el-button-hover-border-color: transparent;
|
|
184
|
-
--el-button-active-border-color: transparent;
|
|
185
|
-
--el-button-disabled-border-color: #f9e1e1;
|
|
186
|
-
|
|
187
|
-
&.is-loading {
|
|
188
|
-
--el-text-color-regular: ##df6b6b;
|
|
189
|
-
--el-button-border-color: #ea9c9c;
|
|
190
|
-
--el-button-bg-color: #fcf1f1;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&.el-button--success {
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&.el-button--info {
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&.el-button--warning {
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.vel-icon {
|
|
205
|
-
fill: currentColor;
|
|
206
|
-
path {
|
|
207
|
-
fill: currentColor;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// sizes & spacing
|
|
212
|
-
&.el-button--default,
|
|
213
|
-
&.el-button--primary,
|
|
214
|
-
&.el-button--danger,
|
|
215
|
-
&.el-button--success,
|
|
216
|
-
&.el-button--warning,
|
|
217
|
-
&.el-button--info {
|
|
218
|
-
// line-height: 1;
|
|
219
|
-
padding: get-ratio(11px) $spacing * 2;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&.el-button--large {
|
|
223
|
-
// line-height: 1;
|
|
224
|
-
padding: get-ratio(15px) $spacing * 2;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&.el-button--small {
|
|
228
|
-
// line-height: 1;
|
|
229
|
-
padding: get-ratio(5px) $spacing;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// shapes
|
|
233
|
-
|
|
234
|
-
&.is-circle, &.is-square {
|
|
235
|
-
width: auto;
|
|
236
|
-
& [class*=el-icon] + span {
|
|
237
|
-
margin-left: 0;
|
|
238
|
-
}
|
|
239
|
-
&.el-button--default,
|
|
240
|
-
&.el-button--primary,
|
|
241
|
-
&.el-button--danger,
|
|
242
|
-
&.el-button--success,
|
|
243
|
-
&.el-button--warning,
|
|
244
|
-
&.el-button--info {
|
|
245
|
-
padding: get-ratio(11px);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
&.el-button--large {
|
|
249
|
-
padding: get-ratio(15px);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
&.el-button--small {
|
|
253
|
-
padding: get-ratio(5px);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
// Fix for improper spacing
|
|
258
|
-
.el-icon.is-loading {
|
|
259
|
-
|
|
260
|
-
+ span:empty {
|
|
261
|
-
margin-left: 0px;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.vel-button {
|
|
267
|
-
&[disabled="true"] {
|
|
268
|
-
pointer-events: none !important;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
&--iconRight {
|
|
272
|
-
.el-icon {
|
|
273
|
-
order: 2;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
> span {
|
|
277
|
-
order: 1;
|
|
278
|
-
margin: 0 0.5rem 0 0;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
&--iconOnly1 {
|
|
283
|
-
> span {
|
|
284
|
-
margin: 0;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.vel-icon {
|
|
288
|
-
width: 1.5 * $spacing;
|
|
289
|
-
height: 1.5 * $spacing;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
svg {
|
|
293
|
-
width: 100%;
|
|
294
|
-
height: 100%;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
&.el-button--small {
|
|
298
|
-
padding: $spacing $spacing * 2;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
&.el-button--large {
|
|
302
|
-
padding: 2 * $spacing 2.5 * $spacing;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@import "element-plus/theme-chalk/el-cascader";
|
|
2
|
-
@import "element-plus/theme-chalk/el-cascader-panel";
|
|
3
|
-
@import "element-plus/theme-chalk/el-popper";
|
|
4
|
-
|
|
5
|
-
.el-cascader-panel {
|
|
6
|
-
font-size: 1rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.el-cascader-node {
|
|
10
|
-
line-height: get-ratio(40px);
|
|
11
|
-
height: get-ratio(40px);
|
|
12
|
-
}
|