@wavemaker/app-ng-runtime 11.4.0-next.1417050 → 11.4.0-next.1417052
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.
- app-ng-runtime/components/base/bundles/index.umd.js +16 -0
- app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/base/esm2015/public_api.js +2 -2
- app-ng-runtime/components/base/esm2015/utils/widget-utils.js +16 -1
- app-ng-runtime/components/base/fesm2015/index.js +16 -1
- app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/index.metadata.json +1 -1
- app-ng-runtime/components/base/public_api.d.ts +1 -1
- app-ng-runtime/components/base/utils/widget-utils.d.ts +7 -0
- app-ng-runtime/components/data/list/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/list/esm2015/list.component.js +2 -2
- app-ng-runtime/components/data/list/fesm2015/index.js +1 -1
- app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +2 -2
- app-ng-runtime/components/data/pagination/fesm2015/index.js +1 -1
- app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +46 -8
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table.component.js +45 -9
- app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
- app-ng-runtime/components/data/table/fesm2015/index.js +46 -8
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/index.metadata.json +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +9 -0
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -6
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +13 -7
- app-ng-runtime/components/input/epoch/fesm2015/index.js +12 -6
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
- app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
- app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
- app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
- app-ng-runtime/core/bundles/index.umd.js +1 -1
- app-ng-runtime/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/core/esm2015/services/pagination.service.js +2 -2
- app-ng-runtime/core/fesm2015/index.js +1 -1
- app-ng-runtime/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +63 -13
|
@@ -450,6 +450,21 @@
|
|
|
450
450
|
var routeRegex = new RegExp('^(#\/|#)' + routeName + '$');
|
|
451
451
|
return routeRegex.test(link);
|
|
452
452
|
};
|
|
453
|
+
/**
|
|
454
|
+
* returns true if the menu has link to the current page.
|
|
455
|
+
* @param nodes
|
|
456
|
+
* @param routeUrl
|
|
457
|
+
*/
|
|
458
|
+
var hasLinkToCurrentPage = function (nodes, routeUrl) {
|
|
459
|
+
return nodes.some(function (node) {
|
|
460
|
+
if (isActiveNavItem(node.link, routeUrl)) {
|
|
461
|
+
return true;
|
|
462
|
+
}
|
|
463
|
+
if (node.children) {
|
|
464
|
+
return hasLinkToCurrentPage(node.children, routeUrl);
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
};
|
|
453
468
|
/**
|
|
454
469
|
* Returns the orderBy Expression based on the 'sort 'option in pageable object
|
|
455
470
|
* returned by backend
|
|
@@ -5471,6 +5486,7 @@
|
|
|
5471
5486
|
exports.getWidgetPropsByType = getWidgetPropsByType;
|
|
5472
5487
|
exports.groupData = groupData;
|
|
5473
5488
|
exports.handleHeaderClick = handleHeaderClick;
|
|
5489
|
+
exports.hasLinkToCurrentPage = hasLinkToCurrentPage;
|
|
5474
5490
|
exports.interpolateBindExpressions = interpolateBindExpressions;
|
|
5475
5491
|
exports.isActiveNavItem = isActiveNavItem;
|
|
5476
5492
|
exports.isBooleanAttr = isBooleanAttr;
|