@sgcloud-sgsistemas/base 1.0.11 → 1.0.13

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.11",
3
+ "version": "1.0.13",
4
4
  "description": "Base para os sistemas da mobiage",
5
5
  "repository": {
6
6
  "type": "private",
@@ -172,7 +172,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
172
172
  /* Busca por cada tipo de dado indexável */
173
173
  indexes.forEach((index) => {
174
174
  /* Caso tenha o dado indexável */
175
- if (index.name in element) {
175
+ if (index.name in element && !!element[index.name]) {
176
176
  const string = element[index.name].toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
177
177
  const tmpSearchString = searchString.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
178
178
  /* Procura pela string digitada */
@@ -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,