@gravitee/ui-particles-angular 4.11.0-393-menu-position-887fef2 → 4.11.0-content-best-practices-165bdbf
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/gravitee-ui-particles-angular.umd.js +17 -33
- package/bundles/gravitee-ui-particles-angular.umd.js.map +1 -1
- package/esm2015/lib/gio-submenu/gio-submenu.component.js +19 -21
- package/fesm2015/gravitee-ui-particles-angular.js +18 -20
- package/fesm2015/gravitee-ui-particles-angular.js.map +1 -1
- package/lib/gio-submenu/gio-submenu.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -2836,21 +2836,6 @@
|
|
|
2836
2836
|
* limitations under the License.
|
|
2837
2837
|
*/
|
|
2838
2838
|
|
|
2839
|
-
/*
|
|
2840
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2841
|
-
*
|
|
2842
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2843
|
-
* you may not use this file except in compliance with the License.
|
|
2844
|
-
* You may obtain a copy of the License at
|
|
2845
|
-
*
|
|
2846
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2847
|
-
*
|
|
2848
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2849
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2850
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2851
|
-
* See the License for the specific language governing permissions and
|
|
2852
|
-
* limitations under the License.
|
|
2853
|
-
*/
|
|
2854
2839
|
var GioSubmenuTitleDirective = /** @class */ (function () {
|
|
2855
2840
|
function GioSubmenuTitleDirective() {
|
|
2856
2841
|
}
|
|
@@ -2873,26 +2858,25 @@
|
|
|
2873
2858
|
this.hover = false;
|
|
2874
2859
|
this.unsubscribe$ = new rxjs.Subject();
|
|
2875
2860
|
}
|
|
2876
|
-
GioSubmenuComponent.prototype.
|
|
2861
|
+
GioSubmenuComponent.prototype.ngOnInit = function () {
|
|
2877
2862
|
var _this = this;
|
|
2878
|
-
this.gioMenuService.reduce
|
|
2879
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.
|
|
2880
|
-
|
|
2863
|
+
rxjs.combineLatest([this.gioMenuService.reduce, this.gioMenuService.overlayObservable])
|
|
2864
|
+
.pipe(operators.takeUntil(this.unsubscribe$), operators.tap(function (_a) {
|
|
2865
|
+
var _b = __read(_a, 2), reduced = _b[0], overlayOptions = _b[1];
|
|
2866
|
+
_this.reduced = reduced;
|
|
2881
2867
|
_this.loaded = true;
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
_this.gioSubmenu.nativeElement.style.height = '100%';
|
|
2895
|
-
_this.gioSubmenu.nativeElement.style.maxHeight = 'none';
|
|
2868
|
+
if (_this.gioSubmenu) {
|
|
2869
|
+
_this.overlayOptions = overlayOptions;
|
|
2870
|
+
if (_this.reduced) {
|
|
2871
|
+
var top = overlayOptions.top || 0;
|
|
2872
|
+
_this.gioSubmenu.nativeElement.style.top = top + "px";
|
|
2873
|
+
_this.gioSubmenu.nativeElement.style.height = 'auto';
|
|
2874
|
+
_this.gioSubmenu.nativeElement.style.maxHeight = "calc(100vh - " + (top + 8) + "px)";
|
|
2875
|
+
return;
|
|
2876
|
+
}
|
|
2877
|
+
_this.gioSubmenu.nativeElement.style.height = '100%';
|
|
2878
|
+
_this.gioSubmenu.nativeElement.style.maxHeight = 'none';
|
|
2879
|
+
}
|
|
2896
2880
|
}))
|
|
2897
2881
|
.subscribe();
|
|
2898
2882
|
};
|