@gravitee/ui-particles-angular 10.1.0 → 10.2.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/esm2022/lib/gio-license/gio-license.directive.mjs +10 -4
- package/esm2022/lib/gio-license/gio-license.service.mjs +4 -3
- package/fesm2022/gravitee-ui-particles-angular.mjs +11 -5
- package/fesm2022/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-license/gio-license.directive.d.ts +3 -2
- package/lib/gio-license/gio-license.service.d.ts +8 -2
- package/package.json +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { GioLicenseService, LicenseOptions } from './gio-license.service';
|
|
3
|
+
import { GioLicenseService, LicenseOptions, LicensePluginOptions } from './gio-license.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GioLicenseDirective implements OnInit, OnDestroy {
|
|
6
6
|
private readonly licenseService;
|
|
7
7
|
private readonly matDialog;
|
|
8
8
|
private elRef;
|
|
9
|
-
gioLicense: LicenseOptions;
|
|
9
|
+
gioLicense: LicenseOptions | LicensePluginOptions;
|
|
10
10
|
private featureInfo;
|
|
11
11
|
private trialURL;
|
|
12
12
|
private unsubscribe$;
|
|
13
13
|
private onClick;
|
|
14
14
|
constructor(licenseService: GioLicenseService, matDialog: MatDialog, elRef: ElementRef);
|
|
15
15
|
ngOnInit(): void;
|
|
16
|
+
private isMissingFeature$;
|
|
16
17
|
ngOnDestroy(): void;
|
|
17
18
|
private click;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<GioLicenseDirective, never>;
|
|
@@ -8,6 +8,7 @@ export type License = {
|
|
|
8
8
|
features: Array<string>;
|
|
9
9
|
expiresAt?: Date;
|
|
10
10
|
scope?: string;
|
|
11
|
+
isExpired?: boolean;
|
|
11
12
|
};
|
|
12
13
|
export interface LicenseConfiguration {
|
|
13
14
|
resourceURL: string;
|
|
@@ -21,10 +22,15 @@ export interface UTM {
|
|
|
21
22
|
medium: string;
|
|
22
23
|
campaign: string;
|
|
23
24
|
}
|
|
24
|
-
export
|
|
25
|
+
export type LicenseOptionsBase = {
|
|
25
26
|
feature?: string;
|
|
26
27
|
context?: string;
|
|
27
|
-
}
|
|
28
|
+
};
|
|
29
|
+
export type LicensePluginOptions = LicenseOptionsBase & {
|
|
30
|
+
deployed: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type LicenseOptions = LicenseOptionsBase | LicensePluginOptions;
|
|
33
|
+
export declare const isLicensePluginOptions: (licenseOptions: LicenseOptions) => licenseOptions is LicensePluginOptions;
|
|
28
34
|
export interface FeatureInfo {
|
|
29
35
|
image?: string;
|
|
30
36
|
description?: string;
|