@gravitee/ui-particles-angular 4.11.0 → 4.11.1-renovate-major-eslint-efe7049
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 +100 -21
- package/bundles/gravitee-ui-particles-angular.umd.js.map +1 -1
- package/esm2015/lib/gio-menu/gio-menu-selector/gio-menu-selector.harness.js +48 -0
- package/esm2015/lib/gio-menu/index.js +2 -1
- package/esm2015/lib/gio-submenu/gio-submenu.component.js +21 -19
- package/fesm2015/gravitee-ui-particles-angular.js +67 -19
- package/fesm2015/gravitee-ui-particles-angular.js.map +1 -1
- package/lib/gio-menu/gio-menu-selector/gio-menu-selector.harness.d.ts +8 -0
- package/lib/gio-menu/index.d.ts +1 -0
- package/lib/gio-submenu/gio-submenu.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('rxjs'), require('@angular/material/card'), require('@angular/material/button'), require('@angular/common'), require('@angular/cdk/testing'), require('@angular/cdk/coercion'), require('@angular/material/form-field'), require('lodash'), require('rxjs/operators'), require('@angular/forms'), require('@angular/cdk/a11y'), require('@angular/material/chips'), require('@angular/material/icon'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/autocomplete/testing'), require('@angular/material/chips/testing'), require('@angular/common/http'), require('@angular/platform-browser'), require('@angular/material/dialog'), require('@angular/material/button/testing'), require('@angular/material/input/testing'), require('@angular/cdk/text-field'), require('ngx-file-helpers'), require('jdenticon')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@gravitee/ui-particles-angular', ['exports', '@angular/animations', '@angular/core', 'rxjs', '@angular/material/card', '@angular/material/button', '@angular/common', '@angular/cdk/testing', '@angular/cdk/coercion', '@angular/material/form-field', 'lodash', 'rxjs/operators', '@angular/forms', '@angular/cdk/a11y', '@angular/material/chips', '@angular/material/icon', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/input', '@angular/material/select', '@angular/material/autocomplete/testing', '@angular/material/chips/testing', '@angular/common/http', '@angular/platform-browser', '@angular/material/dialog', '@angular/material/button/testing', '@angular/material/input/testing', '@angular/cdk/text-field', 'ngx-file-helpers', 'jdenticon'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.gravitee = global.gravitee || {}, global.gravitee["ui-particles-angular"] = {}), global.ng.animations, global.ng.core, global.rxjs, global.ng.material.card, global.ng.material.button, global.ng.common, global.ng.cdk.testing, global.ng.cdk.coercion, global.ng.material.formField, global.lodash, global.rxjs.operators, global.ng.forms, global.ng.cdk.a11y, global.ng.material.chips, global.ng.material.icon, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.input, global.ng.material.select, global.ng.material.autocomplete.testing, global.ng.material.chips.testing, global.ng.common.http, global.ng.platformBrowser, global.ng.material.dialog, global.ng.material.button.testing, global.ng.material.input.testing, global.ng.cdk.textField, global.i6$2, global.jdenticon));
|
|
5
|
-
})(this, (function (exports, animations, i0, rxjs, i1, i2, i2$1, testing, coercion, i3, lodash, operators, i7, i2$2, i3$1, i1$1, i5, i6, i6$1, i2$3, testing$2, testing$1, http, i2$4, i1$2, testing$3, testing$4, i10, i6$2, jdenticon) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('rxjs'), require('@angular/material/card'), require('@angular/material/button'), require('@angular/common'), require('@angular/cdk/testing'), require('@angular/cdk/coercion'), require('@angular/material/form-field'), require('lodash'), require('rxjs/operators'), require('@angular/forms'), require('@angular/cdk/a11y'), require('@angular/material/chips'), require('@angular/material/icon'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/autocomplete/testing'), require('@angular/material/chips/testing'), require('@angular/common/http'), require('@angular/platform-browser'), require('@angular/material/dialog'), require('@angular/material/button/testing'), require('@angular/material/input/testing'), require('@angular/cdk/text-field'), require('ngx-file-helpers'), require('@angular/material/select/testing'), require('jdenticon')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@gravitee/ui-particles-angular', ['exports', '@angular/animations', '@angular/core', 'rxjs', '@angular/material/card', '@angular/material/button', '@angular/common', '@angular/cdk/testing', '@angular/cdk/coercion', '@angular/material/form-field', 'lodash', 'rxjs/operators', '@angular/forms', '@angular/cdk/a11y', '@angular/material/chips', '@angular/material/icon', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/input', '@angular/material/select', '@angular/material/autocomplete/testing', '@angular/material/chips/testing', '@angular/common/http', '@angular/platform-browser', '@angular/material/dialog', '@angular/material/button/testing', '@angular/material/input/testing', '@angular/cdk/text-field', 'ngx-file-helpers', '@angular/material/select/testing', 'jdenticon'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.gravitee = global.gravitee || {}, global.gravitee["ui-particles-angular"] = {}), global.ng.animations, global.ng.core, global.rxjs, global.ng.material.card, global.ng.material.button, global.ng.common, global.ng.cdk.testing, global.ng.cdk.coercion, global.ng.material.formField, global.lodash, global.rxjs.operators, global.ng.forms, global.ng.cdk.a11y, global.ng.material.chips, global.ng.material.icon, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.input, global.ng.material.select, global.ng.material.autocomplete.testing, global.ng.material.chips.testing, global.ng.common.http, global.ng.platformBrowser, global.ng.material.dialog, global.ng.material.button.testing, global.ng.material.input.testing, global.ng.cdk.textField, global.i6$2, global.ng.material.select.testing, global.jdenticon));
|
|
5
|
+
})(this, (function (exports, animations, i0, rxjs, i1, i2, i2$1, testing, coercion, i3, lodash, operators, i7, i2$2, i3$1, i1$1, i5, i6, i6$1, i2$3, testing$2, testing$1, http, i2$4, i1$2, testing$3, testing$4, i10, i6$2, testing$5, jdenticon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -2820,6 +2820,68 @@
|
|
|
2820
2820
|
}]
|
|
2821
2821
|
}] });
|
|
2822
2822
|
|
|
2823
|
+
var GioMenuSelectorHarness = /** @class */ (function (_super) {
|
|
2824
|
+
__extends(GioMenuSelectorHarness, _super);
|
|
2825
|
+
function GioMenuSelectorHarness() {
|
|
2826
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2827
|
+
_this.getSelect = _this.locatorFor(testing$5.MatSelectHarness);
|
|
2828
|
+
return _this;
|
|
2829
|
+
}
|
|
2830
|
+
GioMenuSelectorHarness.prototype.availableOptions = function () {
|
|
2831
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2832
|
+
var select, options;
|
|
2833
|
+
return __generator(this, function (_a) {
|
|
2834
|
+
switch (_a.label) {
|
|
2835
|
+
case 0: return [4 /*yield*/, this.getSelect()];
|
|
2836
|
+
case 1:
|
|
2837
|
+
select = _a.sent();
|
|
2838
|
+
return [4 /*yield*/, select.open()];
|
|
2839
|
+
case 2:
|
|
2840
|
+
_a.sent();
|
|
2841
|
+
return [4 /*yield*/, select.getOptions()];
|
|
2842
|
+
case 3:
|
|
2843
|
+
options = _a.sent();
|
|
2844
|
+
return [2 /*return*/, Promise.all(options.map(function (o) { return o.getText(); }))];
|
|
2845
|
+
}
|
|
2846
|
+
});
|
|
2847
|
+
});
|
|
2848
|
+
};
|
|
2849
|
+
GioMenuSelectorHarness.prototype.selectedOption = function () {
|
|
2850
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2851
|
+
var select;
|
|
2852
|
+
return __generator(this, function (_a) {
|
|
2853
|
+
switch (_a.label) {
|
|
2854
|
+
case 0: return [4 /*yield*/, this.getSelect()];
|
|
2855
|
+
case 1:
|
|
2856
|
+
select = _a.sent();
|
|
2857
|
+
return [2 /*return*/, select.getValueText()];
|
|
2858
|
+
}
|
|
2859
|
+
});
|
|
2860
|
+
});
|
|
2861
|
+
};
|
|
2862
|
+
GioMenuSelectorHarness.prototype.selectOptionByIndex = function (index) {
|
|
2863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2864
|
+
var select, options;
|
|
2865
|
+
return __generator(this, function (_a) {
|
|
2866
|
+
switch (_a.label) {
|
|
2867
|
+
case 0: return [4 /*yield*/, this.getSelect()];
|
|
2868
|
+
case 1:
|
|
2869
|
+
select = _a.sent();
|
|
2870
|
+
return [4 /*yield*/, select.open()];
|
|
2871
|
+
case 2:
|
|
2872
|
+
_a.sent();
|
|
2873
|
+
return [4 /*yield*/, select.getOptions()];
|
|
2874
|
+
case 3:
|
|
2875
|
+
options = _a.sent();
|
|
2876
|
+
return [2 /*return*/, options[index].click()];
|
|
2877
|
+
}
|
|
2878
|
+
});
|
|
2879
|
+
});
|
|
2880
|
+
};
|
|
2881
|
+
return GioMenuSelectorHarness;
|
|
2882
|
+
}(testing.ComponentHarness));
|
|
2883
|
+
GioMenuSelectorHarness.hostSelector = 'gio-menu-selector';
|
|
2884
|
+
|
|
2823
2885
|
/*
|
|
2824
2886
|
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2825
2887
|
*
|
|
@@ -2836,6 +2898,21 @@
|
|
|
2836
2898
|
* limitations under the License.
|
|
2837
2899
|
*/
|
|
2838
2900
|
|
|
2901
|
+
/*
|
|
2902
|
+
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2903
|
+
*
|
|
2904
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2905
|
+
* you may not use this file except in compliance with the License.
|
|
2906
|
+
* You may obtain a copy of the License at
|
|
2907
|
+
*
|
|
2908
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2909
|
+
*
|
|
2910
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2911
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2912
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2913
|
+
* See the License for the specific language governing permissions and
|
|
2914
|
+
* limitations under the License.
|
|
2915
|
+
*/
|
|
2839
2916
|
var GioSubmenuTitleDirective = /** @class */ (function () {
|
|
2840
2917
|
function GioSubmenuTitleDirective() {
|
|
2841
2918
|
}
|
|
@@ -2858,25 +2935,26 @@
|
|
|
2858
2935
|
this.hover = false;
|
|
2859
2936
|
this.unsubscribe$ = new rxjs.Subject();
|
|
2860
2937
|
}
|
|
2861
|
-
GioSubmenuComponent.prototype.
|
|
2938
|
+
GioSubmenuComponent.prototype.ngAfterViewInit = function () {
|
|
2862
2939
|
var _this = this;
|
|
2863
|
-
|
|
2864
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.tap(function (
|
|
2865
|
-
|
|
2866
|
-
_this.reduced = reduced;
|
|
2940
|
+
this.gioMenuService.reduce
|
|
2941
|
+
.pipe(operators.takeUntil(this.unsubscribe$), operators.filter(function (reduced) { return reduced; }), operators.tap(function () {
|
|
2942
|
+
_this.reduced = true;
|
|
2867
2943
|
_this.loaded = true;
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2944
|
+
}), operators.switchMap(function () { return _this.gioMenuService.overlayObservable; }), operators.tap(function (overlayOptions) {
|
|
2945
|
+
var top = overlayOptions.top || 0;
|
|
2946
|
+
_this.overlayOptions = overlayOptions;
|
|
2947
|
+
_this.gioSubmenu.nativeElement.style.top = top + "px";
|
|
2948
|
+
_this.gioSubmenu.nativeElement.style.height = 'auto';
|
|
2949
|
+
_this.gioSubmenu.nativeElement.style.maxHeight = "calc(100vh - " + (top + 8) + "px)";
|
|
2950
|
+
}))
|
|
2951
|
+
.subscribe();
|
|
2952
|
+
this.gioMenuService.reduce
|
|
2953
|
+
.pipe(operators.takeUntil(this.unsubscribe$), operators.filter(function (reduced) { return !reduced; }), operators.tap(function () {
|
|
2954
|
+
_this.reduced = false;
|
|
2955
|
+
_this.loaded = true;
|
|
2956
|
+
_this.gioSubmenu.nativeElement.style.height = '100%';
|
|
2957
|
+
_this.gioSubmenu.nativeElement.style.maxHeight = 'none';
|
|
2880
2958
|
}))
|
|
2881
2959
|
.subscribe();
|
|
2882
2960
|
};
|
|
@@ -3488,6 +3566,7 @@
|
|
|
3488
3566
|
exports.GioMenuListComponent = GioMenuListComponent;
|
|
3489
3567
|
exports.GioMenuModule = GioMenuModule;
|
|
3490
3568
|
exports.GioMenuSelectorComponent = GioMenuSelectorComponent;
|
|
3569
|
+
exports.GioMenuSelectorHarness = GioMenuSelectorHarness;
|
|
3491
3570
|
exports.GioMenuService = GioMenuService;
|
|
3492
3571
|
exports.GioSaveBarComponent = GioSaveBarComponent;
|
|
3493
3572
|
exports.GioSaveBarHarness = GioSaveBarHarness;
|