@sgcloud-sgsistemas/base 1.0.14 → 1.0.16
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/dist/mobiage-base.min.css +2 -0
- package/dist/mobiage-base.min.css.map +1 -0
- package/dist/mobiage-base.min.js +8 -0
- package/dist/mobiage-base.min.js.map +1 -0
- package/package.json +1 -1
- package/src/modules/base/components/container/container.style.scss +1 -2
- package/src/modules/base/components/content-container/content-container.style.scss +6 -5
- package/src/modules/base/components/content-container/content-container.template.html +1 -0
- package/src/modules/base/components/content-container/content-container.ts +38 -0
- package/src/modules/base/index.js +1 -1
- package/src/modules/side-menu/components/hotbar/hotbar.html +10 -0
- package/src/modules/side-menu/components/hotbar/hotbar.scss +229 -0
- package/src/modules/side-menu/components/hotbar/hotbar.ts +299 -0
- package/src/modules/side-menu/components/hotbar/interface/angular-interface/angular.ts +54 -0
- package/src/modules/side-menu/components/hotbar/interface/config.ts +55 -0
- package/src/modules/side-menu/components/hotbar/interface/coordenates.ts +8 -0
- package/src/modules/side-menu/components/hotbar/interface/rect.ts +14 -0
- package/src/modules/side-menu/components/hotbar/utils/element-utils.ts +55 -0
- package/src/modules/side-menu/controllers/sideMenu.ts +37 -0
- package/src/modules/side-menu/index.js +6 -16
- package/src/modules/side-menu/services/sidemenu-service.ts +63 -0
- package/src/modules/side-menu/styles/side-menu.style.scss +9 -80
- package/src/modules/side-menu/templates/side-menu.template.html +29 -29
- package/src/modules/themes/themes.style.scss +4 -0
- package/src/modules/topbar/controllers/topbar.controller.js +1 -1
- package/src/modules/topbar/styles/topbar.style.scss +16 -15
- package/src/modules/topbar/templates/topbar.template.html +8 -11
- package/src/modules/side-menu/components/btn/btn.controller.js +0 -13
- package/src/modules/side-menu/components/btn/btn.style.scss +0 -75
- package/src/modules/side-menu/components/btn/btn.template.html +0 -43
- package/src/modules/side-menu/components/btn/index.js +0 -26
- package/src/modules/side-menu/components/category/category.style.scss +0 -47
- package/src/modules/side-menu/components/category/category.template.html +0 -23
- package/src/modules/side-menu/components/category/index.js +0 -13
- package/src/modules/side-menu/components/item/index.js +0 -29
- package/src/modules/side-menu/components/item/item.template.html +0 -40
- package/src/modules/side-menu/components/link/index.js +0 -18
- package/src/modules/side-menu/components/link/link.controller.js +0 -48
- package/src/modules/side-menu/components/link/link.style.scss +0 -10
- package/src/modules/side-menu/components/link/link.template.html +0 -21
- package/src/modules/side-menu/components/quick-menu/index.js +0 -14
- package/src/modules/side-menu/components/quick-menu/quick-menu.controller.js +0 -67
- package/src/modules/side-menu/components/quick-menu/quick-menu.style.scss +0 -151
- package/src/modules/side-menu/components/quick-menu/quick-menu.template.html +0 -44
- package/src/modules/side-menu/components/sub-category/index.js +0 -20
- package/src/modules/side-menu/components/sub-category/sub-category.controller.js +0 -16
- package/src/modules/side-menu/components/sub-category/sub-category.style.scss +0 -50
- package/src/modules/side-menu/components/sub-category/sub-category.template.html +0 -47
- package/src/modules/side-menu/controllers/sideMenu.js +0 -71
- package/src/modules/side-menu/services/sideMenu.js +0 -12
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import template from './btn.template.html';
|
|
2
|
-
import './btn.style.scss';
|
|
3
|
-
import controller from './btn.controller';
|
|
4
|
-
|
|
5
|
-
const btn = {
|
|
6
|
-
bindings: {
|
|
7
|
-
label: '@',
|
|
8
|
-
icon: '@',
|
|
9
|
-
iconSrc: '@',
|
|
10
|
-
iconSize: '@',
|
|
11
|
-
action: '<',
|
|
12
|
-
actionType: '<',
|
|
13
|
-
iconSide: '@',
|
|
14
|
-
firstChild: '<',
|
|
15
|
-
lastChild: '<',
|
|
16
|
-
tag: '=?',
|
|
17
|
-
config: '=?',
|
|
18
|
-
hotkey: '@',
|
|
19
|
-
keys: '=?'
|
|
20
|
-
},
|
|
21
|
-
template,
|
|
22
|
-
controller,
|
|
23
|
-
controllerAs: 'vm'
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default btn;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@import '../../../themes/themes.style.scss';
|
|
2
|
-
|
|
3
|
-
.mb[sm-category] {
|
|
4
|
-
user-select: none;
|
|
5
|
-
padding-bottom: 5px;
|
|
6
|
-
|
|
7
|
-
> .mb-smc-title {
|
|
8
|
-
font-weight: 700;
|
|
9
|
-
vertical-align: middle;
|
|
10
|
-
display: inline-block;
|
|
11
|
-
|
|
12
|
-
> .mb-smc-dot {
|
|
13
|
-
height: 7px;
|
|
14
|
-
width: 7px;
|
|
15
|
-
border-radius: 3.5px;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
vertical-align: middle;
|
|
18
|
-
background-color: #00bdc1;
|
|
19
|
-
@include themify(background-color, color4);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
> .mb-smc-title-text {
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
font-weight: 700;
|
|
25
|
-
color: #00bdc1;
|
|
26
|
-
@include themify(color, color4);
|
|
27
|
-
display: inline-block;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
> .mb-smc-detail-container {
|
|
32
|
-
width: 100%;
|
|
33
|
-
|
|
34
|
-
> .mbg-smc-detail {
|
|
35
|
-
width: 50px;
|
|
36
|
-
|
|
37
|
-
> .mbg-smc-detail-path {
|
|
38
|
-
fill: #ccc;
|
|
39
|
-
@include themify(fill, font3);
|
|
40
|
-
stroke: #ccc;
|
|
41
|
-
@include themify(stroke, font3);
|
|
42
|
-
stroke-miterlimit: 10;
|
|
43
|
-
stroke-width: 2px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<div class="mb"
|
|
2
|
-
sm-category>
|
|
3
|
-
<div class="mb-smc-title" ng-show="vm.label">
|
|
4
|
-
<div class="mb-smc-dot"></div>
|
|
5
|
-
<div class="mb-smc-title-text">
|
|
6
|
-
{{ vm.label }}
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
<div ng-transclude>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</div>
|
|
13
|
-
<div class="mb-smc-detail-container">
|
|
14
|
-
<svg class="mbg-smc-detail"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
viewBox="0 0 78.56 7.99">
|
|
17
|
-
<path class="mbg-smc-detail-path"
|
|
18
|
-
d="M11.82,5A9.21,9.21,0,0,0,23.76,5a7.23,7.23,0,0,1,9.59,0,9.21,9.21,0,0,0,11.9,0,7.24,7.24,0,0,1,9.56,0,9.21,9.21,0,0,0,12,0,7,7,0,0,1,4.78-1.8A6.47,6.47,0,0,1,75.68,4.5c.48-.47.95-1,1.41-1.45a8.6,8.6,0,0,0-5.55-1.88,8.94,8.94,0,0,0-6,2.2,7.24,7.24,0,0,1-9.56,0A9.21,9.21,0,0,0,44,3.37a7.23,7.23,0,0,1-9.55,0,9.21,9.21,0,0,0-11.94,0,7.23,7.23,0,0,1-9.55,0,8.94,8.94,0,0,0-6-2.2A8.58,8.58,0,0,0,1.51,3c.46.49.93,1,1.41,1.45A6.46,6.46,0,0,1,7,3.17,7,7,0,0,1,11.82,5Z"
|
|
19
|
-
|
|
20
|
-
transform="translate(-0.04 -0.16)" />
|
|
21
|
-
</svg>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import template from './item.template.html';
|
|
2
|
-
|
|
3
|
-
const item = {
|
|
4
|
-
bindings: {
|
|
5
|
-
config: '<',
|
|
6
|
-
keys: '=?',
|
|
7
|
-
firstChild: '<',
|
|
8
|
-
lastChild: '<'
|
|
9
|
-
},
|
|
10
|
-
template,
|
|
11
|
-
controllerAs: 'vm',
|
|
12
|
-
controller: ['$scope', function ($scope) {
|
|
13
|
-
const vm = this
|
|
14
|
-
|
|
15
|
-
vm.$onInit = () => {
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
vm.showSubCategory = () => {
|
|
19
|
-
return true
|
|
20
|
-
// if (vm.config && vm.config.children) {
|
|
21
|
-
// return vm.config.children.filter((children) => !children.key || (vm.keys || []).indexOf(children.key) !== -1).length > 0
|
|
22
|
-
// }
|
|
23
|
-
// return true
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}]
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default item;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<mb-sm-category ng-if="vm.config.type === 'category'"
|
|
2
|
-
label="{{vm.config.label}}">
|
|
3
|
-
<mb-sm-item ng-repeat="item in vm.config.children"
|
|
4
|
-
first-child="$first"
|
|
5
|
-
last-child="$last"
|
|
6
|
-
keys="vm.keys"
|
|
7
|
-
config="item">
|
|
8
|
-
</mb-sm-item>
|
|
9
|
-
</mb-sm-category>
|
|
10
|
-
<mb-sm-subcategory qtd-sub-itens="vm.config.children.length"
|
|
11
|
-
show-itens="vm.config.showItens"
|
|
12
|
-
icon-src="{{vm.config.iconSrc}}"
|
|
13
|
-
icon="{{vm.config.icon}}"
|
|
14
|
-
icon-size="{{vm.config.iconSize}}"
|
|
15
|
-
ng-if="vm.config.type === 'sub-category' && vm.showSubCategory()"
|
|
16
|
-
label="{{vm.config.label}}">
|
|
17
|
-
<mb-sm-item ng-repeat="item in vm.config.children"
|
|
18
|
-
first-child="$first"
|
|
19
|
-
last-child="$last"
|
|
20
|
-
keys="vm.keys"
|
|
21
|
-
config="item">
|
|
22
|
-
</mb-sm-item>
|
|
23
|
-
</mb-sm-subcategory>
|
|
24
|
-
<mb-sm-btn ng-if="vm.config.type === 'btn'"
|
|
25
|
-
icon-src="{{vm.config.iconSrc}}"
|
|
26
|
-
icon="{{vm.config.icon}}"
|
|
27
|
-
icon-size="{{vm.config.iconSize}}"
|
|
28
|
-
label="{{vm.config.label}}"
|
|
29
|
-
action="vm.config.action"
|
|
30
|
-
action-type="vm.config.actionType"
|
|
31
|
-
hotkey="{{vm.config.hotkey}}"
|
|
32
|
-
config="vm.config"
|
|
33
|
-
first-child="vm.firstChild"
|
|
34
|
-
tag="vm.config.tag"
|
|
35
|
-
keys="vm.keys"
|
|
36
|
-
last-child="vm.lastChild">
|
|
37
|
-
</mb-sm-btn>
|
|
38
|
-
<mb-sm-html ng-if="vm.config.type === 'html'"
|
|
39
|
-
html="vm.config.html">
|
|
40
|
-
</mb-sm-html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import controller from './link.controller';
|
|
2
|
-
import template from './link.template.html';
|
|
3
|
-
import './link.style.scss';
|
|
4
|
-
|
|
5
|
-
const component = {
|
|
6
|
-
bindings: {
|
|
7
|
-
actionType: '<',
|
|
8
|
-
action: '<',
|
|
9
|
-
keys: '=?',
|
|
10
|
-
config: '=?'
|
|
11
|
-
},
|
|
12
|
-
controller,
|
|
13
|
-
controllerAs: 'vm',
|
|
14
|
-
template,
|
|
15
|
-
transclude: true
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default component;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
const controller = function ($state, mbSidemenuService, MbgNotification, $timeout) {
|
|
2
|
-
this.$onInit = () => {
|
|
3
|
-
// console.log(this);
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
this.pressBtn = async (vm) => {
|
|
7
|
-
let access = true
|
|
8
|
-
if (vm.config && !!vm.config.key && (vm.keys || []).indexOf(vm.config.key) === -1) {
|
|
9
|
-
access = await this.authAccess(vm.config)
|
|
10
|
-
}
|
|
11
|
-
if (access) {
|
|
12
|
-
switch (vm.actionType) {
|
|
13
|
-
case 'state':
|
|
14
|
-
const regexParams = new RegExp(/\((.*?)\)/gm).exec(vm.action)
|
|
15
|
-
const state = vm.action.replace(new RegExp(/\((.*?)\)/, 'gm'), '')
|
|
16
|
-
const params = (regexParams || []).length > 0 ? JSON.parse(regexParams[1].replace(new RegExp(/'/, 'gm'), `"`)) : {}
|
|
17
|
-
$state.go(state, params)
|
|
18
|
-
break
|
|
19
|
-
case 'link':
|
|
20
|
-
location.href = vm.action
|
|
21
|
-
break
|
|
22
|
-
case 'function':
|
|
23
|
-
vm.action()
|
|
24
|
-
break
|
|
25
|
-
}
|
|
26
|
-
} else {
|
|
27
|
-
$timeout(() => {
|
|
28
|
-
MbgNotification.openNotification({
|
|
29
|
-
type: 'error',
|
|
30
|
-
variation: 'toast',
|
|
31
|
-
duration: 3000,
|
|
32
|
-
text: 'Acesso negado'
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
this.authAccess = async (data) => {
|
|
39
|
-
const config = mbSidemenuService.getMenuConfig()
|
|
40
|
-
if (config.authAccess) {
|
|
41
|
-
return config.authAccess(data)
|
|
42
|
-
} else {
|
|
43
|
-
return true
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default controller;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<a tabindex="-1"
|
|
2
|
-
class="mb"
|
|
3
|
-
smb-link
|
|
4
|
-
ng-transclude
|
|
5
|
-
ng-if="vm.actionType === 'state'"
|
|
6
|
-
ng-click="vm.pressBtn(vm)">
|
|
7
|
-
</a>
|
|
8
|
-
<a tabindex="-1"
|
|
9
|
-
class="mb"
|
|
10
|
-
smb-link
|
|
11
|
-
ng-transclude
|
|
12
|
-
ng-if="vm.actionType === 'link'"
|
|
13
|
-
ng-click="vm.pressBtn(vm)">
|
|
14
|
-
</a>
|
|
15
|
-
<a tabindex="-1"
|
|
16
|
-
class="mb"
|
|
17
|
-
smb-link
|
|
18
|
-
ng-transclude
|
|
19
|
-
ng-if="vm.actionType === 'function'"
|
|
20
|
-
ng-click="vm.pressBtn(vm)">
|
|
21
|
-
</a>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import template from './quick-menu.template.html';
|
|
2
|
-
import './quick-menu.style.scss';
|
|
3
|
-
import controller from './quick-menu.controller';
|
|
4
|
-
|
|
5
|
-
const quickMenu = {
|
|
6
|
-
bindings: {
|
|
7
|
-
config: '=?'
|
|
8
|
-
},
|
|
9
|
-
controller,
|
|
10
|
-
controllerAs: 'vm',
|
|
11
|
-
template
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default quickMenu;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const controller = function ($scope, $timeout, $interval) {
|
|
2
|
-
|
|
3
|
-
$scope.state = {
|
|
4
|
-
quickMenuOpen: false,
|
|
5
|
-
animationInProgress: false,
|
|
6
|
-
menuBottomY: 0
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
$timeout(() => {
|
|
10
|
-
if (this.config.enableAutoToggle && !$scope.debounce) {
|
|
11
|
-
$scope.debounce = true
|
|
12
|
-
$scope.toggleQuickMenu()
|
|
13
|
-
$timeout(() => {
|
|
14
|
-
$scope.toggleQuickMenu()
|
|
15
|
-
$scope.debounce = false
|
|
16
|
-
}, 2000)
|
|
17
|
-
}
|
|
18
|
-
}, 1000)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const toggleAnimationInProgress = () => {
|
|
22
|
-
$scope.state.animationInProgress = true;
|
|
23
|
-
$timeout(() => {
|
|
24
|
-
$scope.state.animationInProgress = false;
|
|
25
|
-
}, 475);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const toggleMenuBottom = (state) => {
|
|
29
|
-
if (state === true) {
|
|
30
|
-
$scope.state.menuBottomY = (this.config.links.length * 43) + 5;
|
|
31
|
-
} else {
|
|
32
|
-
$scope.state.menuBottomY = 0;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const onClickOutside = () => {
|
|
37
|
-
$timeout(() => {
|
|
38
|
-
$scope.toggleQuickMenu();
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
$scope.toggleQuickMenu = () => {
|
|
43
|
-
if ($scope.state.animationInProgress === false) {
|
|
44
|
-
if ($scope.state.quickMenuOpen === true) {
|
|
45
|
-
$scope.state.quickMenuOpen = false;
|
|
46
|
-
toggleMenuBottom($scope.state.quickMenuOpen);
|
|
47
|
-
|
|
48
|
-
document.removeEventListener('click', onClickOutside);
|
|
49
|
-
|
|
50
|
-
toggleAnimationInProgress();
|
|
51
|
-
} else if ($scope.state.quickMenuOpen === false) {
|
|
52
|
-
$scope.state.quickMenuOpen = true;
|
|
53
|
-
|
|
54
|
-
document.addEventListener('click', onClickOutside);
|
|
55
|
-
|
|
56
|
-
toggleMenuBottom($scope.state.quickMenuOpen);
|
|
57
|
-
toggleAnimationInProgress();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
this.$onDestroy = () => {
|
|
63
|
-
document.removeEventListener('click', onClickOutside);
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export default controller;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
@import "../../../themes/themes.style.scss";
|
|
2
|
-
|
|
3
|
-
/* Quick Menu */
|
|
4
|
-
.mb[sm-quick-menu] {
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 40px;
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
> .mb-smqm-button {
|
|
10
|
-
background-color: #ff0758;
|
|
11
|
-
|
|
12
|
-
@include themify(background-color, quickMenuBtnBackground);
|
|
13
|
-
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 40px;
|
|
16
|
-
border-radius: 20px;
|
|
17
|
-
text-align: center;
|
|
18
|
-
transform: translate3d(0px, 0px, 0px);
|
|
19
|
-
position: relative;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
align-items: center;
|
|
24
|
-
z-index: 603;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
box-shadow: 0px 3px 30px rgba(0, 0, 0, 0.1);
|
|
27
|
-
user-select: none;
|
|
28
|
-
|
|
29
|
-
> .mb-smqm-button-text {
|
|
30
|
-
margin-left: 15px;
|
|
31
|
-
margin-right: 10px;
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
color: #ffffff;
|
|
34
|
-
font-weight: 700;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
> .mb-smqm-button-arrow-container {
|
|
38
|
-
width: 30px;
|
|
39
|
-
height: 30px;
|
|
40
|
-
background-color: white;
|
|
41
|
-
vertical-align: middle;
|
|
42
|
-
transform: rotateZ(0deg);
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
margin-right: 5px;
|
|
48
|
-
transition: transform 500ms cubic-bezier(0.475, 0.01, 0.195, 1.035);
|
|
49
|
-
|
|
50
|
-
> .mb-smqm-button-arrow {
|
|
51
|
-
color: #ff0758;
|
|
52
|
-
|
|
53
|
-
@include themify(color, quickMenuBtnBackground);
|
|
54
|
-
|
|
55
|
-
transform: translate(0px, 1px);
|
|
56
|
-
user-select: none;
|
|
57
|
-
font-size: 17px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.mb-smqm-active {
|
|
61
|
-
transform: rotateZ(180deg);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
> .mb-smqm-menu {
|
|
67
|
-
width: 100%;
|
|
68
|
-
height: 120px;
|
|
69
|
-
background-color: #de0440;
|
|
70
|
-
|
|
71
|
-
@include themify(background-color, quickMenuBackground);
|
|
72
|
-
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: 20px;
|
|
75
|
-
transform: scaleY(0);
|
|
76
|
-
transform-origin: 50% 0%;
|
|
77
|
-
transition: transform 500ms cubic-bezier(0.475, 0.01, 0.195, 1.035);
|
|
78
|
-
padding: 20px 15px 0px 15px;
|
|
79
|
-
z-index: 602;
|
|
80
|
-
|
|
81
|
-
&.mb-smqm-active {
|
|
82
|
-
transform: scaleY(1);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
> .mb-smqm-content {
|
|
86
|
-
width: 100%;
|
|
87
|
-
position: relative;
|
|
88
|
-
transition: opacity 500ms linear;
|
|
89
|
-
opacity: 0;
|
|
90
|
-
|
|
91
|
-
&.mb-smqm-active {
|
|
92
|
-
transition: opacity 500ms 100ms linear;
|
|
93
|
-
opacity: 1;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.mb[side-menu-btn] {
|
|
97
|
-
display: flex;
|
|
98
|
-
justify-content: space-between;
|
|
99
|
-
align-items: center;
|
|
100
|
-
height: auto;
|
|
101
|
-
padding-top: 10px;
|
|
102
|
-
padding-bottom: 10px;
|
|
103
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
104
|
-
transform: none;
|
|
105
|
-
position: relative;
|
|
106
|
-
|
|
107
|
-
> .mb-smb-text {
|
|
108
|
-
color: white;
|
|
109
|
-
transition: 100ms opacity linear;
|
|
110
|
-
opacity: 0.7;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
> .mb-smb-icon {
|
|
114
|
-
color: white;
|
|
115
|
-
transition: 100ms opacity linear;
|
|
116
|
-
opacity: 0.7;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&:hover {
|
|
120
|
-
> .mb-smb-text {
|
|
121
|
-
opacity: 1;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
> .mb-smb-icon {
|
|
125
|
-
opacity: 1;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.lastChild {
|
|
130
|
-
border-bottom: none;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
> .mb-smqm-menu-bottom {
|
|
137
|
-
position: absolute;
|
|
138
|
-
top: 0px;
|
|
139
|
-
width: 100%;
|
|
140
|
-
height: 40px;
|
|
141
|
-
transform: translate3d(0px, 0px, 0px);
|
|
142
|
-
transition: transform 500ms cubic-bezier(0.475, 0.01, 0.195, 1.035);
|
|
143
|
-
background-color: #de0440;
|
|
144
|
-
|
|
145
|
-
@include themify(background-color, quickMenuBackground);
|
|
146
|
-
|
|
147
|
-
border-radius: 20px;
|
|
148
|
-
z-index: 600;
|
|
149
|
-
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.15);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<div class="mb"
|
|
2
|
-
tabindex="-1"
|
|
3
|
-
sm-quick-menu>
|
|
4
|
-
<div class="mb-smqm-button"
|
|
5
|
-
tabindex="-1"
|
|
6
|
-
title="{{vm.config.buttonText + ' (c)'}}"
|
|
7
|
-
ng-click="toggleQuickMenu()">
|
|
8
|
-
<div class="mb-smqm-button-text" tabindex="-1">
|
|
9
|
-
{{ vm.config.buttonText }}
|
|
10
|
-
</div>
|
|
11
|
-
<div class="mb-smqm-button-arrow-container"
|
|
12
|
-
tabindex="-1"
|
|
13
|
-
ng-class="{'mb-smqm-active' : state.quickMenuOpen}">
|
|
14
|
-
<div class="mb-smqm-button-arrow" tabindex="-1">
|
|
15
|
-
<i class="fas fa-caret-down" tabindex="-1"></i>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="mb-smqm-menu"
|
|
20
|
-
tabindex="-1"
|
|
21
|
-
ng-style="{'height': (5 + (vm.config.links.length * 43)) + 'px'}"
|
|
22
|
-
ng-class="{'mb-smqm-active' : state.quickMenuOpen}">
|
|
23
|
-
<div class="mb-smqm-content"
|
|
24
|
-
tabindex="-1"
|
|
25
|
-
ng-class="{'mb-smqm-active' : state.quickMenuOpen}">
|
|
26
|
-
<mb-sm-btn ng-repeat="link in vm.config.links"
|
|
27
|
-
tabindex="-1"
|
|
28
|
-
icon-src="{{link.iconSrc}}"
|
|
29
|
-
icon="{{link.icon}}"
|
|
30
|
-
icon-size="{{link.iconSize}}"
|
|
31
|
-
label="{{link.label}}"
|
|
32
|
-
action="link.action"
|
|
33
|
-
action-type="link.actionType"
|
|
34
|
-
icon-side="right"
|
|
35
|
-
hotkey="{{link.hotkey}}"
|
|
36
|
-
first-child="$first"
|
|
37
|
-
last-child="$last">
|
|
38
|
-
</mb-sm-btn>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="mb-smqm-menu-bottom"
|
|
42
|
-
tabindex="-1"
|
|
43
|
-
ng-style="{'transform': 'translate3d(0px,' + state.menuBottomY + 'px, 0px)'}"></div>
|
|
44
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import template from './sub-category.template.html';
|
|
2
|
-
import './sub-category.style.scss';
|
|
3
|
-
import controller from './sub-category.controller';
|
|
4
|
-
|
|
5
|
-
const subCategory = {
|
|
6
|
-
bindings: {
|
|
7
|
-
label: '@',
|
|
8
|
-
icon: '@',
|
|
9
|
-
iconSrc: '@',
|
|
10
|
-
iconSize: '@',
|
|
11
|
-
showItens: '<?',
|
|
12
|
-
qtdSubItens: '<?'
|
|
13
|
-
},
|
|
14
|
-
controller,
|
|
15
|
-
controllerAs: 'vm',
|
|
16
|
-
template,
|
|
17
|
-
transclude: true
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default subCategory;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const controller = function () {
|
|
2
|
-
const vm = this;
|
|
3
|
-
vm.opened = false;
|
|
4
|
-
vm.btnHeight = 25;
|
|
5
|
-
|
|
6
|
-
vm.toggle = () => {
|
|
7
|
-
if (vm.opened === true) {
|
|
8
|
-
vm.opened = false;
|
|
9
|
-
} else {
|
|
10
|
-
vm.opened = true;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default controller;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@import "../../../themes/themes.style.scss";
|
|
2
|
-
|
|
3
|
-
.mb[sm-sub-category] {
|
|
4
|
-
padding-top: 7.5px;
|
|
5
|
-
padding-bottom: 7.5px;
|
|
6
|
-
|
|
7
|
-
> .mbg-smsc-title {
|
|
8
|
-
padding-bottom: 5px;
|
|
9
|
-
display: flex;
|
|
10
|
-
|
|
11
|
-
> .mb-smsc-icon {
|
|
12
|
-
display: inline-block;
|
|
13
|
-
color: #9136ca;
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
vertical-align: middle;
|
|
16
|
-
|
|
17
|
-
@include themify(color, color1);
|
|
18
|
-
margin-right: 2px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
> .mbg-smsc-text {
|
|
22
|
-
color: #9136ca;
|
|
23
|
-
|
|
24
|
-
@include themify(color, color1);
|
|
25
|
-
|
|
26
|
-
display: inline-block;
|
|
27
|
-
vertical-align: middle;
|
|
28
|
-
font-size: 15px;
|
|
29
|
-
font-weight: 700;
|
|
30
|
-
padding-left: 3px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.mg-smsc-container {
|
|
35
|
-
// background-color: purple;
|
|
36
|
-
transition: max-height 0.5s ease;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
// padding-left: 30px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.mg-smsc-seemore {
|
|
42
|
-
font-size: 12px;
|
|
43
|
-
text-decoration: underline;
|
|
44
|
-
color: #ccc;
|
|
45
|
-
@include themify(color, font2);
|
|
46
|
-
padding-top: 10px;
|
|
47
|
-
padding-left: 30px;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
}
|