@sgcloud-sgsistemas/base 1.0.27 → 1.0.29

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.27",
3
+ "version": "1.0.29",
4
4
  "description": "Base para os sistemas da mobiage",
5
5
  "repository": {
6
6
  "type": "private",
@@ -67,6 +67,11 @@ hotbar {
67
67
  >div {
68
68
  @include delayOnBack(opacity, false, (grid-template-columns, color), (300ms, 200ms));
69
69
  grid-template-columns: max-content 1fr;
70
+ gap: 4px;
71
+ i {
72
+ display: flex;
73
+ align-items: center;
74
+ }
70
75
  label {
71
76
  font-size: 16px;
72
77
  white-space: break-spaces;
@@ -163,7 +163,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
163
163
 
164
164
  /* Caso a search string seja maior que zero */
165
165
  if (searchString.length > 0) {
166
- const result = [];
166
+ let result = [];
167
167
  /* Para cada item do conteudo */
168
168
  $scope.data.forEach((element) => {
169
169
  const elementTmp = element;
@@ -188,6 +188,11 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
188
188
  result.push(elementTmp);
189
189
  }
190
190
  });
191
+
192
+ result = result.filter((subModule, index) =>
193
+ result.findIndex(subModule2 => subModule.name == subModule2.name) == index
194
+ )
195
+
191
196
  $scope.result = makeAutocompleteObject(result);
192
197
  $scope.selected = [0, 0];
193
198
  }