@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.
- package/esm2020/lib/gio-license/gio-license-dialog/gio-license-dialog.component.mjs +42 -0
- package/esm2020/lib/gio-license/gio-license-dialog/gio-license-dialog.module.mjs +38 -0
- package/esm2020/lib/gio-license/gio-license.directive.mjs +84 -0
- package/esm2020/lib/gio-license/gio-license.module.mjs +37 -0
- package/esm2020/lib/gio-license/gio-license.service.mjs +76 -0
- package/esm2020/lib/gio-license/gio-license.testing.module.mjs +95 -0
- package/esm2020/lib/gio-pipe/gio.pipe.module.mjs +32 -0
- package/esm2020/lib/gio-pipe/safe.pipe.mjs +52 -0
- package/esm2020/lib/public-api.mjs +9 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs +417 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +412 -2
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-license/gio-license-dialog/gio-license-dialog.component.d.ts +16 -0
- package/lib/gio-license/gio-license-dialog/gio-license-dialog.module.d.ts +12 -0
- package/lib/gio-license/gio-license.directive.d.ts +20 -0
- package/lib/gio-license/gio-license.module.d.ts +10 -0
- package/lib/gio-license/gio-license.service.d.ts +44 -0
- package/lib/gio-license/gio-license.testing.module.d.ts +23 -0
- package/lib/gio-pipe/gio.pipe.module.d.ts +7 -0
- package/lib/gio-pipe/safe.pipe.d.ts +10 -0
- package/lib/public-api.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { FeatureInfo } from '../gio-license.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare type GioLicenseDialogData = {
|
|
5
|
+
featureInfo: FeatureInfo;
|
|
6
|
+
trialURL: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class GioLicenseDialogComponent {
|
|
9
|
+
private readonly dialogRef;
|
|
10
|
+
featureInfo: FeatureInfo;
|
|
11
|
+
trialURL: string;
|
|
12
|
+
constructor(dialogRef: MatDialogRef<GioLicenseDialogData>, dialogData: GioLicenseDialogData);
|
|
13
|
+
onClose(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseDialogComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GioLicenseDialogComponent, "gio-license-dialog", never, {}, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./gio-license-dialog.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/dialog";
|
|
5
|
+
import * as i4 from "../../gio-icons/gio-icons.module";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "../../gio-pipe/gio.pipe.module";
|
|
8
|
+
export declare class GioLicenseDialogModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseDialogModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioLicenseDialogModule, [typeof i1.GioLicenseDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.GioIconsModule, typeof i5.MatButtonModule, typeof i6.GioSafePipeModule], [typeof i1.GioLicenseDialogComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GioLicenseDialogModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { GioLicenseService, LicenseOptions } from './gio-license.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GioLicenseDirective implements OnInit, OnDestroy {
|
|
6
|
+
private readonly licenseService;
|
|
7
|
+
private readonly matDialog;
|
|
8
|
+
private elRef;
|
|
9
|
+
gioLicense: LicenseOptions;
|
|
10
|
+
private featureInfo;
|
|
11
|
+
private trialURL;
|
|
12
|
+
private unsubscribe$;
|
|
13
|
+
private onClick;
|
|
14
|
+
constructor(licenseService: GioLicenseService, matDialog: MatDialog, elRef: ElementRef);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
private click;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GioLicenseDirective, "[gioLicense]", never, { "gioLicense": "gioLicense"; }, {}, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./gio-license.directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/dialog";
|
|
5
|
+
import * as i4 from "./gio-license-dialog/gio-license-dialog.module";
|
|
6
|
+
export declare class GioLicenseModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioLicenseModule, [typeof i1.GioLicenseDirective], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.GioLicenseDialogModule], [typeof i1.GioLicenseDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GioLicenseModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare type License = {
|
|
6
|
+
tier: string;
|
|
7
|
+
packs: Array<string>;
|
|
8
|
+
features: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
export interface LicenseConfiguration {
|
|
11
|
+
resourceURL: string;
|
|
12
|
+
featureInfoData: Record<string, FeatureInfo>;
|
|
13
|
+
utmSource: string;
|
|
14
|
+
utmCampaign: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UTM {
|
|
17
|
+
source: string;
|
|
18
|
+
medium: string;
|
|
19
|
+
campaign: string;
|
|
20
|
+
}
|
|
21
|
+
export interface LicenseOptions {
|
|
22
|
+
feature?: string;
|
|
23
|
+
deployed?: boolean;
|
|
24
|
+
context?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface FeatureInfo {
|
|
27
|
+
image?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class GioLicenseService {
|
|
32
|
+
private readonly http;
|
|
33
|
+
private readonly licenseConfiguration;
|
|
34
|
+
private readonly matDialog;
|
|
35
|
+
private readonly loadLicense$;
|
|
36
|
+
constructor(http: HttpClient, licenseConfiguration: LicenseConfiguration, matDialog: MatDialog);
|
|
37
|
+
getLicense$(): Observable<License>;
|
|
38
|
+
isMissingFeature$(licenseOptions: LicenseOptions | undefined): Observable<boolean>;
|
|
39
|
+
getFeatureInfo(licenseOptions: LicenseOptions): FeatureInfo;
|
|
40
|
+
getTrialURL(licenseOptions: LicenseOptions): string;
|
|
41
|
+
openDialog(licenseOptions: LicenseOptions, event?: Event): import("rxjs").Subscription;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GioLicenseService>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GioLicenseService, LicenseConfiguration } from './gio-license.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const LICENSE_CONFIGURATION_TESTING: LicenseConfiguration;
|
|
4
|
+
export declare class GioLicenseTestingModule {
|
|
5
|
+
static with(license: boolean): {
|
|
6
|
+
ngModule: typeof GioLicenseTestingModule;
|
|
7
|
+
providers: ({
|
|
8
|
+
provide: string;
|
|
9
|
+
useValue: LicenseConfiguration;
|
|
10
|
+
} | {
|
|
11
|
+
provide: typeof GioLicenseService;
|
|
12
|
+
useValue: {
|
|
13
|
+
isMissingFeature$: () => import("rxjs").Observable<boolean>;
|
|
14
|
+
getFeatureInfo: () => {};
|
|
15
|
+
getTrialURL: () => string;
|
|
16
|
+
openDialog: () => void;
|
|
17
|
+
};
|
|
18
|
+
})[];
|
|
19
|
+
};
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseTestingModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioLicenseTestingModule, never, never, never>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GioLicenseTestingModule>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./safe.pipe";
|
|
3
|
+
export declare class GioSafePipeModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GioSafePipeModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GioSafePipeModule, [typeof i1.SafePipe], never, [typeof i1.SafePipe]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GioSafePipeModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SafePipe implements PipeTransform {
|
|
5
|
+
protected sanitizer: DomSanitizer;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
transform(value: string | undefined, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe">;
|
|
10
|
+
}
|
package/lib/public-api.d.ts
CHANGED
|
@@ -46,3 +46,11 @@ export * from './gio-dialog/gio-dialog.constant';
|
|
|
46
46
|
export * from './gio-clipboard/gio-clipboard.module';
|
|
47
47
|
export * from './gio-clipboard/gio-clipboard-copy-icon.component';
|
|
48
48
|
export * from './gio-clipboard/gio-clipboard-copy-wrapper.component';
|
|
49
|
+
export * from './gio-pipe/gio.pipe.module';
|
|
50
|
+
export * from './gio-pipe/safe.pipe';
|
|
51
|
+
export * from './gio-license/gio-license.module';
|
|
52
|
+
export * from './gio-license/gio-license.service';
|
|
53
|
+
export * from './gio-license/gio-license.directive';
|
|
54
|
+
export * from './gio-license/gio-license-dialog/gio-license-dialog.module';
|
|
55
|
+
export * from './gio-license/gio-license-dialog/gio-license-dialog.component';
|
|
56
|
+
export * from './gio-license/gio-license.testing.module';
|