@gravitee/ui-particles-angular 4.11.1 → 4.12.0

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.
@@ -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
  *
@@ -3432,6 +3494,119 @@
3432
3494
  * limitations under the License.
3433
3495
  */
3434
3496
 
3497
+ /*
3498
+ * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
3499
+ *
3500
+ * Licensed under the Apache License, Version 2.0 (the "License");
3501
+ * you may not use this file except in compliance with the License.
3502
+ * You may obtain a copy of the License at
3503
+ *
3504
+ * http://www.apache.org/licenses/LICENSE-2.0
3505
+ *
3506
+ * Unless required by applicable law or agreed to in writing, software
3507
+ * distributed under the License is distributed on an "AS IS" BASIS,
3508
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3509
+ * See the License for the specific language governing permissions and
3510
+ * limitations under the License.
3511
+ */
3512
+ var GioBreadcrumbItemDirective = /** @class */ (function () {
3513
+ function GioBreadcrumbItemDirective(templateRef) {
3514
+ this.templateRef = templateRef;
3515
+ }
3516
+ return GioBreadcrumbItemDirective;
3517
+ }());
3518
+ GioBreadcrumbItemDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbItemDirective, deps: [{ token: i0__namespace.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
3519
+ GioBreadcrumbItemDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: GioBreadcrumbItemDirective, selector: "[gioBreadcrumbItem]", ngImport: i0__namespace });
3520
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbItemDirective, decorators: [{
3521
+ type: i0.Directive,
3522
+ args: [{
3523
+ selector: '[gioBreadcrumbItem]',
3524
+ }]
3525
+ }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }]; } });
3526
+
3527
+ /*
3528
+ * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
3529
+ *
3530
+ * Licensed under the Apache License, Version 2.0 (the "License");
3531
+ * you may not use this file except in compliance with the License.
3532
+ * You may obtain a copy of the License at
3533
+ *
3534
+ * http://www.apache.org/licenses/LICENSE-2.0
3535
+ *
3536
+ * Unless required by applicable law or agreed to in writing, software
3537
+ * distributed under the License is distributed on an "AS IS" BASIS,
3538
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3539
+ * See the License for the specific language governing permissions and
3540
+ * limitations under the License.
3541
+ */
3542
+ var GioBreadcrumbComponent = /** @class */ (function () {
3543
+ function GioBreadcrumbComponent() {
3544
+ }
3545
+ return GioBreadcrumbComponent;
3546
+ }());
3547
+ GioBreadcrumbComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
3548
+ GioBreadcrumbComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBreadcrumbComponent, selector: "gio-breadcrumb", queries: [{ propertyName: "itemDirectives", predicate: GioBreadcrumbItemDirective }], ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-breadcrumb\">\n <ng-container *ngFor=\"let item of itemDirectives; let first = first\">\n <mat-icon *ngIf=\"!first\" svgIcon=\"gio:nav-arrow-right\" class=\"gio-breadcrumb__icon\"></mat-icon>\n <ng-container *ngTemplateOutlet=\"item.templateRef\"></ng-container>\n </ng-container>\n</div>\n", styles: [".gio-breadcrumb{display:flex;flex-flow:wrap;align-items:center;margin:2px}.gio-breadcrumb__content{display:flex;align-items:center;color:#606274}.gio-breadcrumb__content:last-child{font-weight:bold}.gio-breadcrumb__icon{width:12px;height:12px;margin:0 6px;color:#bbbcc4;line-height:12px}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
3549
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbComponent, decorators: [{
3550
+ type: i0.Component,
3551
+ args: [{
3552
+ selector: 'gio-breadcrumb',
3553
+ templateUrl: './gio-breadcrumb.component.html',
3554
+ styleUrls: ['./gio-breadcrumb.component.scss'],
3555
+ }]
3556
+ }], propDecorators: { itemDirectives: [{
3557
+ type: i0.ContentChildren,
3558
+ args: [GioBreadcrumbItemDirective]
3559
+ }] } });
3560
+
3561
+ /*
3562
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
3563
+ *
3564
+ * Licensed under the Apache License, Version 2.0 (the "License");
3565
+ * you may not use this file except in compliance with the License.
3566
+ * You may obtain a copy of the License at
3567
+ *
3568
+ * http://www.apache.org/licenses/LICENSE-2.0
3569
+ *
3570
+ * Unless required by applicable law or agreed to in writing, software
3571
+ * distributed under the License is distributed on an "AS IS" BASIS,
3572
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3573
+ * See the License for the specific language governing permissions and
3574
+ * limitations under the License.
3575
+ */
3576
+ var GioBreadcrumbModule = /** @class */ (function () {
3577
+ function GioBreadcrumbModule() {
3578
+ }
3579
+ return GioBreadcrumbModule;
3580
+ }());
3581
+ GioBreadcrumbModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3582
+ GioBreadcrumbModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, declarations: [GioBreadcrumbComponent, GioBreadcrumbItemDirective], imports: [i2$1.CommonModule, GioIconsModule], exports: [GioBreadcrumbComponent, GioBreadcrumbItemDirective] });
3583
+ GioBreadcrumbModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, imports: [[i2$1.CommonModule, GioIconsModule]] });
3584
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, decorators: [{
3585
+ type: i0.NgModule,
3586
+ args: [{
3587
+ imports: [i2$1.CommonModule, GioIconsModule],
3588
+ declarations: [GioBreadcrumbComponent, GioBreadcrumbItemDirective],
3589
+ exports: [GioBreadcrumbComponent, GioBreadcrumbItemDirective],
3590
+ entryComponents: [GioBreadcrumbComponent],
3591
+ }]
3592
+ }] });
3593
+
3594
+ /*
3595
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
3596
+ *
3597
+ * Licensed under the Apache License, Version 2.0 (the "License");
3598
+ * you may not use this file except in compliance with the License.
3599
+ * You may obtain a copy of the License at
3600
+ *
3601
+ * http://www.apache.org/licenses/LICENSE-2.0
3602
+ *
3603
+ * Unless required by applicable law or agreed to in writing, software
3604
+ * distributed under the License is distributed on an "AS IS" BASIS,
3605
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3606
+ * See the License for the specific language governing permissions and
3607
+ * limitations under the License.
3608
+ */
3609
+
3435
3610
  /*
3436
3611
  * Copyright (C) 2021 The Gravitee team (http://gravitee.io)
3437
3612
  *
@@ -3478,6 +3653,9 @@
3478
3653
  exports.GioBannerModule = GioBannerModule;
3479
3654
  exports.GioBannerSuccessComponent = GioBannerSuccessComponent;
3480
3655
  exports.GioBannerWarningComponent = GioBannerWarningComponent;
3656
+ exports.GioBreadcrumbComponent = GioBreadcrumbComponent;
3657
+ exports.GioBreadcrumbItemDirective = GioBreadcrumbItemDirective;
3658
+ exports.GioBreadcrumbModule = GioBreadcrumbModule;
3481
3659
  exports.GioConfirmAndValidateDialogComponent = GioConfirmAndValidateDialogComponent;
3482
3660
  exports.GioConfirmAndValidateDialogHarness = GioConfirmAndValidateDialogHarness;
3483
3661
  exports.GioConfirmAndValidateDialogModule = GioConfirmAndValidateDialogModule;
@@ -3504,6 +3682,7 @@
3504
3682
  exports.GioMenuListComponent = GioMenuListComponent;
3505
3683
  exports.GioMenuModule = GioMenuModule;
3506
3684
  exports.GioMenuSelectorComponent = GioMenuSelectorComponent;
3685
+ exports.GioMenuSelectorHarness = GioMenuSelectorHarness;
3507
3686
  exports.GioMenuService = GioMenuService;
3508
3687
  exports.GioSaveBarComponent = GioSaveBarComponent;
3509
3688
  exports.GioSaveBarHarness = GioSaveBarHarness;