@ajuarezso/sui-design-system 0.10.0 → 0.10.1
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.
|
@@ -14422,6 +14422,7 @@ class SuiSidebar {
|
|
|
14422
14422
|
/**
|
|
14423
14423
|
* Resuelve cuándo un item sin route está "activo" via activeRoute.
|
|
14424
14424
|
* Match por prefijo: '/master/inicio' activa también '/master/inicio/sub'.
|
|
14425
|
+
* Para items sin route, acepta el `value` del item ('inicio').
|
|
14425
14426
|
*/
|
|
14426
14427
|
resolvedActiveValue = computed(() => {
|
|
14427
14428
|
const route = this.activeRoute();
|
|
@@ -14432,6 +14433,10 @@ class SuiSidebar {
|
|
|
14432
14433
|
if (it.route && (route === it.route || route.startsWith(it.route + '/'))) {
|
|
14433
14434
|
return true;
|
|
14434
14435
|
}
|
|
14436
|
+
/* Items SIN route (contextos sin router: demos, apps no-Angular-router):
|
|
14437
|
+
activeRoute puede nombrar directamente el `value` del item. */
|
|
14438
|
+
if (!it.route && it.value === route)
|
|
14439
|
+
return true;
|
|
14435
14440
|
return false;
|
|
14436
14441
|
});
|
|
14437
14442
|
return match?.value ?? null;
|