@sgcloud-sgsistemas/base 1.0.10 → 1.0.12
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
|
@@ -50,7 +50,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
|
|
|
50
50
|
decrementSelected();
|
|
51
51
|
},
|
|
52
52
|
allowIn: ['INPUT']
|
|
53
|
-
});
|
|
53
|
+
});
|
|
54
54
|
hotkeys.bindTo($scope).add({
|
|
55
55
|
combo: 'down',
|
|
56
56
|
callback(event) {
|
|
@@ -130,7 +130,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
// TO-DO (Limitar resultados parando o algoritmo ao chegar no limite de resultados)
|
|
133
|
-
return elements.
|
|
133
|
+
return elements.sort((a, b) => a.matchesCount > b.matchesCount).reverse();
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
/* Para cada tipo, faz um elemento no array */
|
|
@@ -215,7 +215,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
|
|
|
215
215
|
link.children.forEach((element) => {
|
|
216
216
|
prepareLink(element);
|
|
217
217
|
});
|
|
218
|
-
} else if (link.type === undefined || link.type === 'btn') {
|
|
218
|
+
} else if ((link.type === undefined || link.type === 'btn') && !link.hide) {
|
|
219
219
|
links.push({
|
|
220
220
|
type: 'Menu',
|
|
221
221
|
name: link.label,
|
|
@@ -224,13 +224,8 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
// prepareLink(element);
|
|
230
|
-
// });
|
|
231
|
-
// }
|
|
232
|
-
if (config.structure !== undefined && config.structure.length > 0) {
|
|
233
|
-
config.structure.forEach((element) => {
|
|
227
|
+
if (config.completeStructure !== undefined && config.completeStructure.length > 0) {
|
|
228
|
+
config.completeStructure.forEach((element) => {
|
|
234
229
|
prepareLink(element);
|
|
235
230
|
});
|
|
236
231
|
}
|