ps-toolkit-ui 0.0.78 → 0.0.79
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/bundles/ps-toolkit-ui.umd.js +5 -6
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/layout/layout.component.js +3 -3
- package/esm2015/lib/components/sidebar/sidebar.component.js +4 -5
- package/fesm2015/ps-toolkit-ui.js +5 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/layout/layout.component.d.ts +1 -1
- package/lib/components/sidebar/sidebar.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2141,12 +2141,11 @@
|
|
|
2141
2141
|
}
|
|
2142
2142
|
});
|
|
2143
2143
|
}
|
|
2144
|
+
SidebarComponent.prototype.changeActive = function (active) {
|
|
2145
|
+
this.currentSidebar = this.getSidebarActive(this.sidebar, active);
|
|
2146
|
+
};
|
|
2144
2147
|
SidebarComponent.prototype.setActive = function () {
|
|
2145
|
-
console.log(11111111);
|
|
2146
|
-
console.log(this.router.routerState);
|
|
2147
2148
|
var active = HelperClass.getData('active', this.router.routerState, this.router.routerState.root)[0];
|
|
2148
|
-
console.log(active);
|
|
2149
|
-
console.log(this.getSidebarActive(this.sidebar, active));
|
|
2150
2149
|
this.currentSidebar = this.getSidebarActive(this.sidebar, active);
|
|
2151
2150
|
};
|
|
2152
2151
|
SidebarComponent.prototype.ngOnInit = function () {
|
|
@@ -6857,8 +6856,8 @@
|
|
|
6857
6856
|
function LayoutComponent() {
|
|
6858
6857
|
this.permissions = [];
|
|
6859
6858
|
}
|
|
6860
|
-
LayoutComponent.prototype.changeSidebarActive = function () {
|
|
6861
|
-
this.sidebar.
|
|
6859
|
+
LayoutComponent.prototype.changeSidebarActive = function (active) {
|
|
6860
|
+
this.sidebar.changeActive(active);
|
|
6862
6861
|
};
|
|
6863
6862
|
LayoutComponent.prototype.toggleSidebar = function () {
|
|
6864
6863
|
$__namespace('#Layout .panel').toggleClass('open-sidebar').toggleClass('close-sidebar');
|