From b9198e3717f74e01cb6f6ab78e5482c643179003 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 21 Sep 2017 12:08:52 +0300 Subject: [PATCH] Entirely changed the navigation model structure (sorry!) + Fixed: Horizontal and Vertical navigation must be able to use the same model structure + Fixed: Collapsable nav item that has the active menu shouldn't be collapsed when other collapsables toggles --- .../nav-horizontal-collapse.component.html | 5 +- .../navigation/navigation.component.html | 21 +- .../navigation/navigation.component.ts | 6 +- .../navigation/navigation.module.ts | 4 +- .../navigation/navigation.service.ts | 14 +- .../nav-vertical-collapse.component.html | 4 +- .../nav-vertical-collapse.component.ts | 12 +- .../nav-vertical-group.component.html | 10 + .../nav-vertical-group.component.scss | 23 + .../nav-group/nav-vertical-group.component.ts | 21 + .../nav-vertical-subheader.component.html | 1 - .../nav-vertical-subheader.component.scss | 20 - .../nav-vertical-subheader.component.ts | 21 - src/app/core/scss/partials/_navigation.scss | 40 ++ src/app/navigation.model.ts | 557 +++--------------- 15 files changed, 215 insertions(+), 544 deletions(-) create mode 100644 src/app/core/components/navigation/vertical/nav-group/nav-vertical-group.component.html create mode 100644 src/app/core/components/navigation/vertical/nav-group/nav-vertical-group.component.scss create mode 100644 src/app/core/components/navigation/vertical/nav-group/nav-vertical-group.component.ts delete mode 100644 src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.html delete mode 100644 src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.scss delete mode 100644 src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.ts diff --git a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html index 045e077d..4f061e79 100644 --- a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html +++ b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html @@ -9,9 +9,8 @@
- - + +
diff --git a/src/app/core/components/navigation/navigation.component.html b/src/app/core/components/navigation/navigation.component.html index 12b31aff..d2cb94b2 100644 --- a/src/app/core/components/navigation/navigation.component.html +++ b/src/app/core/components/navigation/navigation.component.html @@ -1,27 +1,32 @@ -