@gravitee/ui-particles-angular 7.28.9 → 7.29.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,7 +1,7 @@
1
1
  import * as i2$1 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, SecurityContext, APP_ID, Component, Inject, Input, NgModule, EventEmitter, HostBinding, Output, HostListener, Optional, Self, ViewChild, Directive, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, Host, ContentChild, InjectionToken } from '@angular/core';
4
+ import { Injectable, SecurityContext, APP_ID, Component, Inject, Input, NgModule, EventEmitter, HostBinding, Output, HostListener, Optional, Self, ViewChild, Directive, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, Host, ContentChild, InjectionToken, Pipe } from '@angular/core';
5
5
  import * as i4 from '@angular/common/http';
6
6
  import { HttpClientModule } from '@angular/common/http';
7
7
  import { shareReplay, switchMap, catchError, takeUntil, tap, startWith, map, distinctUntilChanged, debounce, delay, filter, take, debounceTime } from 'rxjs/operators';
@@ -56,6 +56,7 @@ import * as i4$1 from '@angular/material/tooltip';
56
56
  import { MatTooltipModule } from '@angular/material/tooltip';
57
57
  import * as i3$4 from '@angular/cdk/clipboard';
58
58
  import { ClipboardModule } from '@angular/cdk/clipboard';
59
+ import { action } from '@storybook/addon-actions';
59
60
 
60
61
  /*
61
62
  * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
@@ -5287,6 +5288,420 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5287
5288
  }]
5288
5289
  }] });
5289
5290
 
5291
+ /*
5292
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5293
+ *
5294
+ * Licensed under the Apache License, Version 2.0 (the "License");
5295
+ * you may not use this file except in compliance with the License.
5296
+ * You may obtain a copy of the License at
5297
+ *
5298
+ * http://www.apache.org/licenses/LICENSE-2.0
5299
+ *
5300
+ * Unless required by applicable law or agreed to in writing, software
5301
+ * distributed under the License is distributed on an "AS IS" BASIS,
5302
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5303
+ * See the License for the specific language governing permissions and
5304
+ * limitations under the License.
5305
+ */
5306
+ class SafePipe {
5307
+ constructor(sanitizer) {
5308
+ this.sanitizer = sanitizer;
5309
+ }
5310
+ transform(value, type) {
5311
+ if (!value) {
5312
+ return '';
5313
+ }
5314
+ switch (type) {
5315
+ // No Sonar because the bypass is deliberate and should only be used with safe data
5316
+ case 'html':
5317
+ return this.sanitizer.bypassSecurityTrustHtml(value); // NOSONAR
5318
+ case 'style':
5319
+ return this.sanitizer.bypassSecurityTrustStyle(value); // NOSONAR
5320
+ case 'script':
5321
+ return this.sanitizer.bypassSecurityTrustScript(value); // NOSONAR
5322
+ case 'url':
5323
+ return this.sanitizer.bypassSecurityTrustUrl(value); // NOSONAR
5324
+ case 'resourceUrl':
5325
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value); // NOSONAR
5326
+ default:
5327
+ throw new Error(`Invalid safe type specified: ${type}`);
5328
+ }
5329
+ }
5330
+ }
5331
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SafePipe, deps: [{ token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
5332
+ SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SafePipe, name: "safe" });
5333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SafePipe, decorators: [{
5334
+ type: Pipe,
5335
+ args: [{
5336
+ name: 'safe',
5337
+ }]
5338
+ }], ctorParameters: function () { return [{ type: i3.DomSanitizer }]; } });
5339
+
5340
+ /*
5341
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5342
+ *
5343
+ * Licensed under the Apache License, Version 2.0 (the "License");
5344
+ * you may not use this file except in compliance with the License.
5345
+ * You may obtain a copy of the License at
5346
+ *
5347
+ * http://www.apache.org/licenses/LICENSE-2.0
5348
+ *
5349
+ * Unless required by applicable law or agreed to in writing, software
5350
+ * distributed under the License is distributed on an "AS IS" BASIS,
5351
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5352
+ * See the License for the specific language governing permissions and
5353
+ * limitations under the License.
5354
+ */
5355
+ class GioSafePipeModule {
5356
+ }
5357
+ GioSafePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioSafePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5358
+ GioSafePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioSafePipeModule, declarations: [SafePipe], exports: [SafePipe] });
5359
+ GioSafePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioSafePipeModule, imports: [[]] });
5360
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioSafePipeModule, decorators: [{
5361
+ type: NgModule,
5362
+ args: [{
5363
+ imports: [],
5364
+ declarations: [SafePipe],
5365
+ exports: [SafePipe],
5366
+ }]
5367
+ }] });
5368
+
5369
+ /*
5370
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5371
+ *
5372
+ * Licensed under the Apache License, Version 2.0 (the "License");
5373
+ * you may not use this file except in compliance with the License.
5374
+ * You may obtain a copy of the License at
5375
+ *
5376
+ * http://www.apache.org/licenses/LICENSE-2.0
5377
+ *
5378
+ * Unless required by applicable law or agreed to in writing, software
5379
+ * distributed under the License is distributed on an "AS IS" BASIS,
5380
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5381
+ * See the License for the specific language governing permissions and
5382
+ * limitations under the License.
5383
+ */
5384
+ class GioLicenseDialogComponent {
5385
+ constructor(dialogRef, dialogData) {
5386
+ this.dialogRef = dialogRef;
5387
+ this.featureInfo = dialogData === null || dialogData === void 0 ? void 0 : dialogData.featureInfo;
5388
+ this.trialURL = dialogData === null || dialogData === void 0 ? void 0 : dialogData.trialURL;
5389
+ }
5390
+ onClose() {
5391
+ this.dialogRef.close();
5392
+ }
5393
+ }
5394
+ GioLicenseDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDialogComponent, deps: [{ token: i1$2.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
5395
+ GioLicenseDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioLicenseDialogComponent, selector: "gio-license-dialog", ngImport: i0, template: "<!--\n\n Copyright (C) 2015 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-license-dialog__title\">\n <mat-icon class=\"gio-license-dialog__title__cancel\"></mat-icon>\n <button mat-icon-button [attr.aria-label]=\"'Close'\" (click)=\"onClose()\">\n <mat-icon class=\"gio-license-dialog__title__cancel\" svgIcon=\"gio:cancel\"> </mat-icon>\n </button>\n</div>\n\n<mat-dialog-content class=\"gio-license-dialog__content\">\n <img class=\"gio-license-dialog__content__image\" [src]=\"featureInfo.image\" [alt]=\"featureInfo.title || 'Unlock Gravitee Enterprise'\" />\n <h2 class=\"gio-license-dialog__content__title\" [innerHTML]=\"featureInfo.title || 'Unlock Gravitee Enterprise' | safe : 'html'\"></h2>\n <div class=\"gio-license-dialog__content__description\" [innerHTML]=\"featureInfo.description | safe : 'html'\"></div>\n <div class=\"gio-license-dialog__content__action\">\n <a class=\"gio-license-dialog__content__action__button\" mat-stroked-button color=\"accent\" target=\"_blank\" [href]=\"trialURL\">\n Request an enterprise license <mat-icon svgIcon=\"gio:external-link\"></mat-icon>\n </a>\n <div class=\"gio-license-dialog__content__action__info\">14 days trial</div>\n </div>\n</mat-dialog-content>\n", styles: [".gio-license-dialog__title{display:flex;justify-content:space-between}.gio-license-dialog__title__cancel{width:24px;height:24px;color:#8e8f9c}.gio-license-dialog__content{display:flex;width:600px;flex-direction:column;align-items:center;justify-content:center;padding:0}.gio-license-dialog__content__title{margin:0 0 24px;font:600 26px/36px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.gio-license-dialog__content__description{padding:0 50px 32px;color:#606274;font-weight:500;line-height:24px;text-align:center}.gio-license-dialog__content__action{display:flex;flex-direction:column;align-items:center;padding:0 40px}.gio-license-dialog__content__action__button{width:250px}.gio-license-dialog__content__action__info{margin-top:10px;color:#606274;text-align:center}\n"], components: [{ type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }], pipes: { "safe": SafePipe } });
5396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDialogComponent, decorators: [{
5397
+ type: Component,
5398
+ args: [{ selector: 'gio-license-dialog', template: "<!--\n\n Copyright (C) 2015 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-license-dialog__title\">\n <mat-icon class=\"gio-license-dialog__title__cancel\"></mat-icon>\n <button mat-icon-button [attr.aria-label]=\"'Close'\" (click)=\"onClose()\">\n <mat-icon class=\"gio-license-dialog__title__cancel\" svgIcon=\"gio:cancel\"> </mat-icon>\n </button>\n</div>\n\n<mat-dialog-content class=\"gio-license-dialog__content\">\n <img class=\"gio-license-dialog__content__image\" [src]=\"featureInfo.image\" [alt]=\"featureInfo.title || 'Unlock Gravitee Enterprise'\" />\n <h2 class=\"gio-license-dialog__content__title\" [innerHTML]=\"featureInfo.title || 'Unlock Gravitee Enterprise' | safe : 'html'\"></h2>\n <div class=\"gio-license-dialog__content__description\" [innerHTML]=\"featureInfo.description | safe : 'html'\"></div>\n <div class=\"gio-license-dialog__content__action\">\n <a class=\"gio-license-dialog__content__action__button\" mat-stroked-button color=\"accent\" target=\"_blank\" [href]=\"trialURL\">\n Request an enterprise license <mat-icon svgIcon=\"gio:external-link\"></mat-icon>\n </a>\n <div class=\"gio-license-dialog__content__action__info\">14 days trial</div>\n </div>\n</mat-dialog-content>\n", styles: [".gio-license-dialog__title{display:flex;justify-content:space-between}.gio-license-dialog__title__cancel{width:24px;height:24px;color:#8e8f9c}.gio-license-dialog__content{display:flex;width:600px;flex-direction:column;align-items:center;justify-content:center;padding:0}.gio-license-dialog__content__title{margin:0 0 24px;font:600 26px/36px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.gio-license-dialog__content__description{padding:0 50px 32px;color:#606274;font-weight:500;line-height:24px;text-align:center}.gio-license-dialog__content__action{display:flex;flex-direction:column;align-items:center;padding:0 40px}.gio-license-dialog__content__action__button{width:250px}.gio-license-dialog__content__action__info{margin-top:10px;color:#606274;text-align:center}\n"] }]
5399
+ }], ctorParameters: function () {
5400
+ return [{ type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
5401
+ type: Inject,
5402
+ args: [MAT_DIALOG_DATA]
5403
+ }] }];
5404
+ } });
5405
+
5406
+ class GioLicenseService {
5407
+ constructor(http, licenseConfiguration, matDialog) {
5408
+ this.http = http;
5409
+ this.licenseConfiguration = licenseConfiguration;
5410
+ this.matDialog = matDialog;
5411
+ this.loadLicense$ = this.http.get(licenseConfiguration.resourceURL).pipe(shareReplay(1));
5412
+ }
5413
+ getLicense$() {
5414
+ return this.loadLicense$;
5415
+ }
5416
+ isMissingFeature$(licenseOptions) {
5417
+ if ((licenseOptions === null || licenseOptions === void 0 ? void 0 : licenseOptions.deployed) === false) {
5418
+ return of(true);
5419
+ }
5420
+ if ((licenseOptions === null || licenseOptions === void 0 ? void 0 : licenseOptions.feature) == null || (licenseOptions === null || licenseOptions === void 0 ? void 0 : licenseOptions.deployed) === true) {
5421
+ return of(false);
5422
+ }
5423
+ return this.getLicense$().pipe(map(license => license == null || license.features.find(feat => feat === licenseOptions.feature) == null));
5424
+ }
5425
+ getFeatureInfo(licenseOptions) {
5426
+ if (!licenseOptions.feature) {
5427
+ throw new Error(`feature is undefined`);
5428
+ }
5429
+ const featureInfo = this.licenseConfiguration.featureInfoData[licenseOptions.feature];
5430
+ if (!featureInfo) {
5431
+ throw new Error(`Unknown Feature value ${licenseOptions.feature}. Expected one of ${Object.keys(this.licenseConfiguration.featureInfoData)}`);
5432
+ }
5433
+ return featureInfo;
5434
+ }
5435
+ getTrialURL(licenseOptions) {
5436
+ if (!licenseOptions.feature) {
5437
+ throw new Error(`feature is undefined`);
5438
+ }
5439
+ let url = `https://gravitee.io/self-hosted-trial?utm_source=${this.licenseConfiguration.utmSource}&utm_medium=${licenseOptions.feature}&utm_campaign=${this.licenseConfiguration.utmCampaign}`;
5440
+ if (licenseOptions.context) {
5441
+ url += `&utm_content=${licenseOptions.context}`;
5442
+ }
5443
+ return url;
5444
+ }
5445
+ openDialog(licenseOptions, event) {
5446
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
5447
+ event === null || event === void 0 ? void 0 : event.preventDefault();
5448
+ const featureInfo = this.getFeatureInfo(licenseOptions);
5449
+ const trialURL = this.getTrialURL(licenseOptions);
5450
+ return this.matDialog
5451
+ .open(GioLicenseDialogComponent, {
5452
+ data: {
5453
+ featureInfo,
5454
+ trialURL,
5455
+ },
5456
+ role: 'alertdialog',
5457
+ id: 'gioLicenseDialog',
5458
+ })
5459
+ .afterClosed()
5460
+ .subscribe();
5461
+ }
5462
+ }
5463
+ GioLicenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseService, deps: [{ token: i4.HttpClient }, { token: 'LicenseConfiguration' }, { token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
5464
+ GioLicenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseService, providedIn: 'root' });
5465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseService, decorators: [{
5466
+ type: Injectable,
5467
+ args: [{
5468
+ providedIn: 'root',
5469
+ }]
5470
+ }], ctorParameters: function () {
5471
+ return [{ type: i4.HttpClient }, { type: undefined, decorators: [{
5472
+ type: Inject,
5473
+ args: ['LicenseConfiguration']
5474
+ }] }, { type: i1$2.MatDialog }];
5475
+ } });
5476
+
5477
+ /*
5478
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5479
+ *
5480
+ * Licensed under the Apache License, Version 2.0 (the "License");
5481
+ * you may not use this file except in compliance with the License.
5482
+ * You may obtain a copy of the License at
5483
+ *
5484
+ * http://www.apache.org/licenses/LICENSE-2.0
5485
+ *
5486
+ * Unless required by applicable law or agreed to in writing, software
5487
+ * distributed under the License is distributed on an "AS IS" BASIS,
5488
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5489
+ * See the License for the specific language governing permissions and
5490
+ * limitations under the License.
5491
+ */
5492
+ class GioLicenseDirective {
5493
+ constructor(licenseService, matDialog, elRef) {
5494
+ this.licenseService = licenseService;
5495
+ this.matDialog = matDialog;
5496
+ this.elRef = elRef;
5497
+ this.gioLicense = {};
5498
+ this.featureInfo = {};
5499
+ this.trialURL = '';
5500
+ this.unsubscribe$ = new Subject();
5501
+ this.onClick = this.click.bind(this);
5502
+ }
5503
+ ngOnInit() {
5504
+ var _a;
5505
+ this.licenseService
5506
+ .isMissingFeature$(this.gioLicense)
5507
+ .pipe(tap(() => {
5508
+ this.elRef.nativeElement.removeEventListener('click', this.onClick, true);
5509
+ }), filter(notAllowed => this.gioLicense != null && notAllowed), map(() => this.licenseService.getFeatureInfo(this.gioLicense)), tap(featureInfo => {
5510
+ this.featureInfo = featureInfo;
5511
+ this.elRef.nativeElement.addEventListener('click', this.onClick, true);
5512
+ }), takeUntil(this.unsubscribe$))
5513
+ .subscribe();
5514
+ if ((_a = this.gioLicense) === null || _a === void 0 ? void 0 : _a.feature) {
5515
+ this.trialURL = this.licenseService.getTrialURL(this.gioLicense);
5516
+ }
5517
+ }
5518
+ ngOnDestroy() {
5519
+ this.elRef.nativeElement.removeEventListener('click', this.onClick, true);
5520
+ this.unsubscribe$.next(false);
5521
+ this.unsubscribe$.unsubscribe();
5522
+ }
5523
+ click($event) {
5524
+ $event.preventDefault();
5525
+ $event.stopPropagation();
5526
+ this.matDialog
5527
+ .open(GioLicenseDialogComponent, {
5528
+ data: {
5529
+ featureInfo: this.featureInfo,
5530
+ trialURL: this.trialURL,
5531
+ },
5532
+ role: 'alertdialog',
5533
+ id: 'gioLicenseDialog',
5534
+ })
5535
+ .afterClosed()
5536
+ .pipe(tap(confirmed => {
5537
+ action('confirmed?')(confirmed);
5538
+ }))
5539
+ .subscribe();
5540
+ return false;
5541
+ }
5542
+ }
5543
+ GioLicenseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDirective, deps: [{ token: GioLicenseService }, { token: i1$2.MatDialog }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
5544
+ GioLicenseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: GioLicenseDirective, selector: "[gioLicense]", inputs: { gioLicense: "gioLicense" }, ngImport: i0 });
5545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDirective, decorators: [{
5546
+ type: Directive,
5547
+ args: [{
5548
+ selector: '[gioLicense]',
5549
+ }]
5550
+ }], ctorParameters: function () { return [{ type: GioLicenseService }, { type: i1$2.MatDialog }, { type: i0.ElementRef }]; }, propDecorators: { gioLicense: [{
5551
+ type: Input
5552
+ }] } });
5553
+
5554
+ /*
5555
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5556
+ *
5557
+ * Licensed under the Apache License, Version 2.0 (the "License");
5558
+ * you may not use this file except in compliance with the License.
5559
+ * You may obtain a copy of the License at
5560
+ *
5561
+ * http://www.apache.org/licenses/LICENSE-2.0
5562
+ *
5563
+ * Unless required by applicable law or agreed to in writing, software
5564
+ * distributed under the License is distributed on an "AS IS" BASIS,
5565
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5566
+ * See the License for the specific language governing permissions and
5567
+ * limitations under the License.
5568
+ */
5569
+ class GioLicenseDialogModule {
5570
+ }
5571
+ GioLicenseDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5572
+ GioLicenseDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDialogModule, declarations: [GioLicenseDialogComponent], imports: [CommonModule, MatDialogModule, GioIconsModule, MatButtonModule, GioSafePipeModule], exports: [GioLicenseDialogComponent] });
5573
+ GioLicenseDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDialogModule, imports: [[CommonModule, MatDialogModule, GioIconsModule, MatButtonModule, GioSafePipeModule]] });
5574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseDialogModule, decorators: [{
5575
+ type: NgModule,
5576
+ args: [{
5577
+ imports: [CommonModule, MatDialogModule, GioIconsModule, MatButtonModule, GioSafePipeModule],
5578
+ declarations: [GioLicenseDialogComponent],
5579
+ exports: [GioLicenseDialogComponent],
5580
+ entryComponents: [GioLicenseDialogComponent],
5581
+ }]
5582
+ }] });
5583
+
5584
+ /*
5585
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5586
+ *
5587
+ * Licensed under the Apache License, Version 2.0 (the "License");
5588
+ * you may not use this file except in compliance with the License.
5589
+ * You may obtain a copy of the License at
5590
+ *
5591
+ * http://www.apache.org/licenses/LICENSE-2.0
5592
+ *
5593
+ * Unless required by applicable law or agreed to in writing, software
5594
+ * distributed under the License is distributed on an "AS IS" BASIS,
5595
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5596
+ * See the License for the specific language governing permissions and
5597
+ * limitations under the License.
5598
+ */
5599
+ class GioLicenseModule {
5600
+ }
5601
+ GioLicenseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5602
+ GioLicenseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseModule, declarations: [GioLicenseDirective], imports: [CommonModule, MatDialogModule, GioLicenseDialogModule], exports: [GioLicenseDirective] });
5603
+ GioLicenseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseModule, providers: [GioLicenseService], imports: [[CommonModule, MatDialogModule, GioLicenseDialogModule]] });
5604
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseModule, decorators: [{
5605
+ type: NgModule,
5606
+ args: [{
5607
+ imports: [CommonModule, MatDialogModule, GioLicenseDialogModule],
5608
+ declarations: [GioLicenseDirective],
5609
+ exports: [GioLicenseDirective],
5610
+ providers: [GioLicenseService],
5611
+ }]
5612
+ }] });
5613
+
5614
+ /*
5615
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
5616
+ *
5617
+ * Licensed under the Apache License, Version 2.0 (the "License");
5618
+ * you may not use this file except in compliance with the License.
5619
+ * You may obtain a copy of the License at
5620
+ *
5621
+ * http://www.apache.org/licenses/LICENSE-2.0
5622
+ *
5623
+ * Unless required by applicable law or agreed to in writing, software
5624
+ * distributed under the License is distributed on an "AS IS" BASIS,
5625
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5626
+ * See the License for the specific language governing permissions and
5627
+ * limitations under the License.
5628
+ */
5629
+ const LICENSE_CONFIGURATION_TESTING = {
5630
+ resourceURL: 'https://url.test:3000/license',
5631
+ utmSource: 'oss_utm_source_test',
5632
+ utmCampaign: 'oss_utm_campaign_test',
5633
+ featureInfoData: {
5634
+ foobar: {
5635
+ image: 'assets/gio-icons.svg',
5636
+ description: 'Foobar feature description',
5637
+ title: 'FOOBAR',
5638
+ },
5639
+ },
5640
+ };
5641
+ class GioLicenseTestingModule {
5642
+ static with(license) {
5643
+ return {
5644
+ ngModule: GioLicenseTestingModule,
5645
+ providers: [
5646
+ {
5647
+ provide: 'LicenseConfiguration',
5648
+ useValue: LICENSE_CONFIGURATION_TESTING,
5649
+ },
5650
+ {
5651
+ provide: GioLicenseService,
5652
+ useValue: {
5653
+ isMissingFeature$: () => of(!license),
5654
+ getFeatureInfo: () => ({}),
5655
+ getTrialURL: () => '',
5656
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
5657
+ openDialog: () => { },
5658
+ },
5659
+ },
5660
+ ],
5661
+ };
5662
+ }
5663
+ }
5664
+ GioLicenseTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5665
+ GioLicenseTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseTestingModule });
5666
+ GioLicenseTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseTestingModule, providers: [
5667
+ {
5668
+ provide: 'LicenseConfiguration',
5669
+ useValue: LICENSE_CONFIGURATION_TESTING,
5670
+ },
5671
+ {
5672
+ provide: GioLicenseService,
5673
+ useValue: {
5674
+ isMissingFeature$: () => of(true),
5675
+ getFeatureInfo: () => ({}),
5676
+ getTrialURL: () => '',
5677
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
5678
+ openDialog: () => { },
5679
+ },
5680
+ },
5681
+ ], imports: [[]] });
5682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLicenseTestingModule, decorators: [{
5683
+ type: NgModule,
5684
+ args: [{
5685
+ imports: [],
5686
+ providers: [
5687
+ {
5688
+ provide: 'LicenseConfiguration',
5689
+ useValue: LICENSE_CONFIGURATION_TESTING,
5690
+ },
5691
+ {
5692
+ provide: GioLicenseService,
5693
+ useValue: {
5694
+ isMissingFeature$: () => of(true),
5695
+ getFeatureInfo: () => ({}),
5696
+ getTrialURL: () => '',
5697
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
5698
+ openDialog: () => { },
5699
+ },
5700
+ },
5701
+ ],
5702
+ }]
5703
+ }] });
5704
+
5290
5705
  /*
5291
5706
  * Copyright (C) 2021 The Gravitee team (http://gravitee.io)
5292
5707
  *
@@ -5323,5 +5738,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5323
5738
  * Generated bundle index. Do not edit.
5324
5739
  */
5325
5740
 
5326
- export { GIO_DIALOG_WIDTH, GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR, GioAsciidoctorComponent, GioAsciidoctorModule, GioAsciidoctorService, GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBaseFormFocusInvalidDirective, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioButtonFocusInvalidButtonDirective, GioClipboardCopyIconComponent, GioClipboardCopyWrapperComponent, GioClipboardModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormFocusInvalidFormDirective, GioFormFocusInvalidIgnoreDirective, GioFormFocusInvalidModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormLabelComponent, GioFormPrefixDirective, GioFormSlideToggleComponent, GioFormSlideToggleDirective, GioFormSlideToggleModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioLoaderComponent, GioLoaderModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuListComponent, GioMenuModule, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioMonacoEditorComponent, GioMonacoEditorFormFieldDirective, GioMonacoEditorHarness, GioMonacoEditorModule, GioPrismJsService, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, NewFile };
5741
+ export { GIO_DIALOG_WIDTH, GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR, GioAsciidoctorComponent, GioAsciidoctorModule, GioAsciidoctorService, GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBaseFormFocusInvalidDirective, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioButtonFocusInvalidButtonDirective, GioClipboardCopyIconComponent, GioClipboardCopyWrapperComponent, GioClipboardModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormFocusInvalidFormDirective, GioFormFocusInvalidIgnoreDirective, GioFormFocusInvalidModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormLabelComponent, GioFormPrefixDirective, GioFormSlideToggleComponent, GioFormSlideToggleDirective, GioFormSlideToggleModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioLicenseDialogComponent, GioLicenseDialogModule, GioLicenseDirective, GioLicenseModule, GioLicenseService, GioLicenseTestingModule, GioLoaderComponent, GioLoaderModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuListComponent, GioMenuModule, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioMonacoEditorComponent, GioMonacoEditorFormFieldDirective, GioMonacoEditorHarness, GioMonacoEditorModule, GioPrismJsService, GioSafePipeModule, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, LICENSE_CONFIGURATION_TESTING, NewFile, SafePipe };
5327
5742
  //# sourceMappingURL=gravitee-ui-particles-angular.mjs.map