@sgcloud-sgsistemas/base 1.0.33 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sgcloud-sgsistemas/base",
3
- "version": "1.0.33",
3
+ "version": "1.1.0",
4
4
  "description": "Base para os sistemas da mobiage",
5
5
  "repository": {
6
6
  "type": "private",
@@ -5,22 +5,7 @@ const controller = function (MbgPageLoader, $timeout, $q, hotkeys, $scope) {
5
5
  vm.text = 'Carregando';
6
6
  vm.promise = undefined;
7
7
 
8
- const setHotkeys = () => {
9
- hotkeys.bindTo($scope).add({
10
- combo: 'esc',
11
- callback(event) {
12
- event.preventDefault();
13
- vm.close();
14
- }
15
- });
16
- };
17
-
18
- const removeHotkeys = () => {
19
- hotkeys.del('esc');
20
- };
21
-
22
8
  vm.open = (promise, title = 'Carregando') => {
23
- setHotkeys();
24
9
  vm.hide = false;
25
10
  vm.text = title;
26
11
  $timeout(() => {
@@ -30,7 +15,6 @@ const controller = function (MbgPageLoader, $timeout, $q, hotkeys, $scope) {
30
15
  };
31
16
 
32
17
  vm.close = () => {
33
- removeHotkeys();
34
18
  vm.active = false;
35
19
  $timeout(() => {
36
20
  vm.hide = true;
@@ -190,6 +190,8 @@ hotbar {
190
190
  white-space: nowrap;
191
191
  left: -100vw;
192
192
  position: absolute;
193
+ min-height: 50px;
194
+ min-width: 150px;
193
195
  width: max-content;
194
196
  display: flex;
195
197
  flex-direction: column;
@@ -223,6 +225,11 @@ hotbar {
223
225
  >div {
224
226
  color: var(--contrast);
225
227
  }
228
+
229
+ > .favorite-module {
230
+ min-width: 150px;
231
+ min-height: 50px;
232
+ }
226
233
  }
227
234
  }
228
235
 
@@ -254,6 +261,12 @@ hotbar {
254
261
  >div{
255
262
  color: var(--contrast);
256
263
  }
264
+
265
+ > .favorite-module {
266
+ min-width: 150px;
267
+ min-height: 50px;
268
+ }
269
+
257
270
  >sub-module {
258
271
  left: 100%;
259
272
  grid-template-columns: 1fr;
@@ -111,6 +111,7 @@ class HotbarController {
111
111
  let cssObj: any = {
112
112
  'max-height': `${hotbarHeight}px`,
113
113
  'transform': 'translateY(-40%)',
114
+ 'top': '',
114
115
  };
115
116
 
116
117
  const rectSG: DOMRect = this.sgElement[0].getBoundingClientRect();
@@ -5,7 +5,6 @@ import { MbSidemenuService } from "./../services/sidemenu-service";
5
5
  class SideMenuController {
6
6
  public menuOpen: boolean = false
7
7
  private watchConfig: Function
8
- private unWatchRootConfig: Function
9
8
 
10
9
  constructor(
11
10
  public $timeout: $Timeout,
@@ -23,12 +22,6 @@ class SideMenuController {
23
22
  this.$scope.quickMenu = config ? config.quickMenu : null;
24
23
  })
25
24
 
26
- this.unWatchRootConfig = this.$rootScope.$on('onChangeFavoritesConfig', (event: Event, config: Config): void => {
27
- if (this.$scope.vm) {
28
- this.$scope.vm.config = config
29
- }
30
- })
31
-
32
25
  this.mbSidemenuService.addCallback((value: boolean): any => {
33
26
  this.menuOpen = value
34
27
  })
@@ -36,7 +29,6 @@ class SideMenuController {
36
29
 
37
30
  $onDestroy(): void {
38
31
  this.__unWatch(this.watchConfig)
39
- this.__unWatch(this.unWatchRootConfig)
40
32
  }
41
33
 
42
34
  private __unWatch(watch: Function): void {